8286
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8287
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8292
macro_version='2.4.2'
8293
macro_revision='1.3337'
8307
ltmain="$ac_aux_dir/ltmain.sh"
8309
# Backslashify metacharacters that are still active within
8310
# double-quoted strings.
8311
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8313
# Same as above, but do not quote variable references.
8314
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8316
# Sed substitution to delay expansion of an escaped shell variable in a
8317
# double_quote_subst'ed string.
8318
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8320
# Sed substitution to delay expansion of an escaped single quote.
8321
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8323
# Sed substitution to avoid accidental globbing in evaled expressions
8324
no_glob_subst='s/\*/\\\*/g'
8326
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8327
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8328
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8330
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8331
$as_echo_n "checking how to print strings... " >&6; }
8332
# Test print first, because it will be a builtin if present.
8333
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8334
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8336
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8339
# Use this function as a fallback that always works.
8340
func_fallback_echo ()
8342
eval 'cat <<_LTECHO_EOF
8346
ECHO='func_fallback_echo'
8349
# func_echo_all arg...
8350
# Invoke $ECHO with all args, space-separated.
8357
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8358
$as_echo "printf" >&6; } ;;
8359
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8360
$as_echo "print -r" >&6; } ;;
8361
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8362
$as_echo "cat" >&6; } ;;
8378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8379
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8380
if ${ac_cv_path_SED+:} false; then :
8381
$as_echo_n "(cached) " >&6
8383
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8384
for ac_i in 1 2 3 4 5 6 7; do
8385
ac_script="$ac_script$as_nl$ac_script"
8387
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8388
{ ac_script=; unset ac_script;}
8389
if test -z "$SED"; then
8390
ac_path_SED_found=false
8391
# Loop through the user's path and test for each of PROGNAME-LIST
8392
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396
test -z "$as_dir" && as_dir=.
8397
for ac_prog in sed gsed; do
8398
for ac_exec_ext in '' $ac_executable_extensions; do
8399
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8400
as_fn_executable_p "$ac_path_SED" || continue
8401
# Check for GNU ac_path_SED and select it if it is found.
8402
# Check for GNU $ac_path_SED
8403
case `"$ac_path_SED" --version 2>&1` in
8405
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8408
$as_echo_n 0123456789 >"conftest.in"
8411
cat "conftest.in" "conftest.in" >"conftest.tmp"
8412
mv "conftest.tmp" "conftest.in"
8413
cp "conftest.in" "conftest.nl"
8414
$as_echo '' >> "conftest.nl"
8415
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8416
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8417
as_fn_arith $ac_count + 1 && ac_count=$as_val
8418
if test $ac_count -gt ${ac_path_SED_max-0}; then
8419
# Best one so far, save it but keep looking for a better one
8420
ac_cv_path_SED="$ac_path_SED"
8421
ac_path_SED_max=$ac_count
8423
# 10*(2^10) chars as input seems more than enough
8424
test $ac_count -gt 10 && break
8426
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8429
$ac_path_SED_found && break 3
8434
if test -z "$ac_cv_path_SED"; then
8435
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8442
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8443
$as_echo "$ac_cv_path_SED" >&6; }
8444
SED="$ac_cv_path_SED"
8447
test -z "$SED" && SED=sed
8448
Xsed="$SED -e 1s/^X//"
8460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8461
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
8462
if ${ac_cv_path_GREP+:} false; then :
8463
$as_echo_n "(cached) " >&6
8465
if test -z "$GREP"; then
8466
ac_path_GREP_found=false
8467
# Loop through the user's path and test for each of PROGNAME-LIST
8468
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8472
test -z "$as_dir" && as_dir=.
8473
for ac_prog in grep ggrep; do
8474
for ac_exec_ext in '' $ac_executable_extensions; do
8475
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8476
as_fn_executable_p "$ac_path_GREP" || continue
8477
# Check for GNU ac_path_GREP and select it if it is found.
8478
# Check for GNU $ac_path_GREP
8479
case `"$ac_path_GREP" --version 2>&1` in
8481
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8484
$as_echo_n 0123456789 >"conftest.in"
8487
cat "conftest.in" "conftest.in" >"conftest.tmp"
8488
mv "conftest.tmp" "conftest.in"
8489
cp "conftest.in" "conftest.nl"
8490
$as_echo 'GREP' >> "conftest.nl"
8491
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8492
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8493
as_fn_arith $ac_count + 1 && ac_count=$as_val
8494
if test $ac_count -gt ${ac_path_GREP_max-0}; then
8495
# Best one so far, save it but keep looking for a better one
8496
ac_cv_path_GREP="$ac_path_GREP"
8497
ac_path_GREP_max=$ac_count
8499
# 10*(2^10) chars as input seems more than enough
8500
test $ac_count -gt 10 && break
8502
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8505
$ac_path_GREP_found && break 3
8510
if test -z "$ac_cv_path_GREP"; then
8511
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8514
ac_cv_path_GREP=$GREP
8518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8519
$as_echo "$ac_cv_path_GREP" >&6; }
8520
GREP="$ac_cv_path_GREP"
8523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8524
$as_echo_n "checking for egrep... " >&6; }
8525
if ${ac_cv_path_EGREP+:} false; then :
8526
$as_echo_n "(cached) " >&6
8528
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8529
then ac_cv_path_EGREP="$GREP -E"
8531
if test -z "$EGREP"; then
8532
ac_path_EGREP_found=false
8533
# Loop through the user's path and test for each of PROGNAME-LIST
8534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8538
test -z "$as_dir" && as_dir=.
8539
for ac_prog in egrep; do
8540
for ac_exec_ext in '' $ac_executable_extensions; do
8541
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8542
as_fn_executable_p "$ac_path_EGREP" || continue
8543
# Check for GNU ac_path_EGREP and select it if it is found.
8544
# Check for GNU $ac_path_EGREP
8545
case `"$ac_path_EGREP" --version 2>&1` in
8547
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8550
$as_echo_n 0123456789 >"conftest.in"
8553
cat "conftest.in" "conftest.in" >"conftest.tmp"
8554
mv "conftest.tmp" "conftest.in"
8555
cp "conftest.in" "conftest.nl"
8556
$as_echo 'EGREP' >> "conftest.nl"
8557
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8558
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8559
as_fn_arith $ac_count + 1 && ac_count=$as_val
8560
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8561
# Best one so far, save it but keep looking for a better one
8562
ac_cv_path_EGREP="$ac_path_EGREP"
8563
ac_path_EGREP_max=$ac_count
8565
# 10*(2^10) chars as input seems more than enough
8566
test $ac_count -gt 10 && break
8568
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8571
$ac_path_EGREP_found && break 3
8576
if test -z "$ac_cv_path_EGREP"; then
8577
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8580
ac_cv_path_EGREP=$EGREP
8585
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8586
$as_echo "$ac_cv_path_EGREP" >&6; }
8587
EGREP="$ac_cv_path_EGREP"
8590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8591
$as_echo_n "checking for fgrep... " >&6; }
8592
if ${ac_cv_path_FGREP+:} false; then :
8593
$as_echo_n "(cached) " >&6
8595
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8596
then ac_cv_path_FGREP="$GREP -F"
8598
if test -z "$FGREP"; then
8599
ac_path_FGREP_found=false
8600
# Loop through the user's path and test for each of PROGNAME-LIST
8601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8605
test -z "$as_dir" && as_dir=.
8606
for ac_prog in fgrep; do
8607
for ac_exec_ext in '' $ac_executable_extensions; do
8608
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8609
as_fn_executable_p "$ac_path_FGREP" || continue
8610
# Check for GNU ac_path_FGREP and select it if it is found.
8611
# Check for GNU $ac_path_FGREP
8612
case `"$ac_path_FGREP" --version 2>&1` in
8614
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8617
$as_echo_n 0123456789 >"conftest.in"
8620
cat "conftest.in" "conftest.in" >"conftest.tmp"
8621
mv "conftest.tmp" "conftest.in"
8622
cp "conftest.in" "conftest.nl"
8623
$as_echo 'FGREP' >> "conftest.nl"
8624
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8625
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8626
as_fn_arith $ac_count + 1 && ac_count=$as_val
8627
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8628
# Best one so far, save it but keep looking for a better one
8629
ac_cv_path_FGREP="$ac_path_FGREP"
8630
ac_path_FGREP_max=$ac_count
8632
# 10*(2^10) chars as input seems more than enough
8633
test $ac_count -gt 10 && break
8635
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8638
$ac_path_FGREP_found && break 3
8643
if test -z "$ac_cv_path_FGREP"; then
8644
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8647
ac_cv_path_FGREP=$FGREP
8652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8653
$as_echo "$ac_cv_path_FGREP" >&6; }
8654
FGREP="$ac_cv_path_FGREP"
8657
test -z "$GREP" && GREP=grep
8677
# Check whether --with-gnu-ld was given.
8678
if test "${with_gnu_ld+set}" = set; then :
8679
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8685
if test "$GCC" = yes; then
8686
# Check if gcc -print-prog-name=ld gives a path.
8687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8688
$as_echo_n "checking for ld used by $CC... " >&6; }
8691
# gcc leaves a trailing carriage return which upsets mingw
8692
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8694
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8697
# Accept absolute paths.
8699
re_direlt='/[^/][^/]*/\.\./'
8700
# Canonicalize the pathname of ld
8701
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8702
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8703
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8705
test -z "$LD" && LD="$ac_prog"
8708
# If it fails, then pretend we aren't using GCC.
8712
# If it is relative, then search for the first ld in PATH.
8716
elif test "$with_gnu_ld" = yes; then
8717
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8718
$as_echo_n "checking for GNU ld... " >&6; }
8720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8721
$as_echo_n "checking for non-GNU ld... " >&6; }
8723
if ${lt_cv_path_LD+:} false; then :
8724
$as_echo_n "(cached) " >&6
8726
if test -z "$LD"; then
8727
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8728
for ac_dir in $PATH; do
8730
test -z "$ac_dir" && ac_dir=.
8731
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8732
lt_cv_path_LD="$ac_dir/$ac_prog"
8733
# Check to see if the program is GNU ld. I'd rather use --version,
8734
# but apparently some variants of GNU ld only accept -v.
8735
# Break only if it was the GNU/non-GNU ld that we prefer.
8736
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8737
*GNU* | *'with BFD'*)
8738
test "$with_gnu_ld" != no && break
8741
test "$with_gnu_ld" != yes && break
8748
lt_cv_path_LD="$LD" # Let the user override the test with a path.
8753
if test -n "$LD"; then
8754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8755
$as_echo "$LD" >&6; }
8757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758
$as_echo "no" >&6; }
8760
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8761
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8762
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8763
if ${lt_cv_prog_gnu_ld+:} false; then :
8764
$as_echo_n "(cached) " >&6
8766
# I'd rather use --version here, but apparently some GNU lds only accept -v.
8767
case `$LD -v 2>&1 </dev/null` in
8768
*GNU* | *'with BFD'*)
8769
lt_cv_prog_gnu_ld=yes
8772
lt_cv_prog_gnu_ld=no
8776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8777
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8778
with_gnu_ld=$lt_cv_prog_gnu_ld
8788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8789
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8790
if ${lt_cv_path_NM+:} false; then :
8791
$as_echo_n "(cached) " >&6
8793
if test -n "$NM"; then
8794
# Let the user override the test.
8797
lt_nm_to_check="${ac_tool_prefix}nm"
8798
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8799
lt_nm_to_check="$lt_nm_to_check nm"
8801
for lt_tmp_nm in $lt_nm_to_check; do
8802
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8803
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8805
test -z "$ac_dir" && ac_dir=.
8806
tmp_nm="$ac_dir/$lt_tmp_nm"
8807
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8808
# Check to see if the nm accepts a BSD-compat flag.
8809
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
8810
# nm: unknown option "B" ignored
8811
# Tru64's nm complains that /dev/null is an invalid object file
8812
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8813
*/dev/null* | *'Invalid file or object type'*)
8814
lt_cv_path_NM="$tmp_nm -B"
8818
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8820
lt_cv_path_NM="$tmp_nm -p"
8824
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8825
continue # so that we can try to find one that supports BSD flags
8834
: ${lt_cv_path_NM=no}
8837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8838
$as_echo "$lt_cv_path_NM" >&6; }
8839
if test "$lt_cv_path_NM" != "no"; then
8842
# Didn't find any BSD compatible name lister, look for dumpbin.
8843
if test -n "$DUMPBIN"; then :
8844
# Let the user override the test.
8846
if test -n "$ac_tool_prefix"; then
8847
for ac_prog in dumpbin "link -dump"
8849
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8850
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8852
$as_echo_n "checking for $ac_word... " >&6; }
8853
if ${ac_cv_prog_DUMPBIN+:} false; then :
8854
$as_echo_n "(cached) " >&6
8856
if test -n "$DUMPBIN"; then
8857
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8863
test -z "$as_dir" && as_dir=.
8864
for ac_exec_ext in '' $ac_executable_extensions; do
8865
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8866
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8867
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8876
DUMPBIN=$ac_cv_prog_DUMPBIN
8877
if test -n "$DUMPBIN"; then
8878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8879
$as_echo "$DUMPBIN" >&6; }
8881
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8882
$as_echo "no" >&6; }
8886
test -n "$DUMPBIN" && break
8889
if test -z "$DUMPBIN"; then
8890
ac_ct_DUMPBIN=$DUMPBIN
8891
for ac_prog in dumpbin "link -dump"
8893
# Extract the first word of "$ac_prog", so it can be a program name with args.
8894
set dummy $ac_prog; ac_word=$2
8895
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896
$as_echo_n "checking for $ac_word... " >&6; }
8897
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8898
$as_echo_n "(cached) " >&6
8900
if test -n "$ac_ct_DUMPBIN"; then
8901
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8903
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907
test -z "$as_dir" && as_dir=.
8908
for ac_exec_ext in '' $ac_executable_extensions; do
8909
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8911
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8920
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8921
if test -n "$ac_ct_DUMPBIN"; then
8922
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8923
$as_echo "$ac_ct_DUMPBIN" >&6; }
8925
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926
$as_echo "no" >&6; }
8930
test -n "$ac_ct_DUMPBIN" && break
8933
if test "x$ac_ct_DUMPBIN" = x; then
8936
case $cross_compiling:$ac_tool_warned in
8938
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8939
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8940
ac_tool_warned=yes ;;
8942
DUMPBIN=$ac_ct_DUMPBIN
8946
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8948
DUMPBIN="$DUMPBIN -symbols"
8956
if test "$DUMPBIN" != ":"; then
8960
test -z "$NM" && NM=nm
8967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8968
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8969
if ${lt_cv_nm_interface+:} false; then :
8970
$as_echo_n "(cached) " >&6
8972
lt_cv_nm_interface="BSD nm"
8973
echo "int some_variable = 0;" > conftest.$ac_ext
8974
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8975
(eval "$ac_compile" 2>conftest.err)
8976
cat conftest.err >&5
8977
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8978
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8979
cat conftest.err >&5
8980
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
8981
cat conftest.out >&5
8982
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8983
lt_cv_nm_interface="MS dumpbin"
8987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8988
$as_echo "$lt_cv_nm_interface" >&6; }
8990
# find the maximum length of command line arguments
8991
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8992
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8993
if ${lt_cv_sys_max_cmd_len+:} false; then :
8994
$as_echo_n "(cached) " >&6
9001
# On DJGPP, this test can blow up pretty badly due to problems in libc
9002
# (any single argument exceeding 2000 bytes causes a buffer overrun
9003
# during glob expansion). Even if it were fixed, the result of this
9004
# check would be larger than it should be.
9005
lt_cv_sys_max_cmd_len=12288; # 12K is about right
9009
# Under GNU Hurd, this test is not required because there is
9010
# no limit to the length of command line arguments.
9011
# Libtool will interpret -1 as no limit whatsoever
9012
lt_cv_sys_max_cmd_len=-1;
9015
cygwin* | mingw* | cegcc*)
9016
# On Win9x/ME, this test blows up -- it succeeds, but takes
9017
# about 5 minutes as the teststring grows exponentially.
9018
# Worse, since 9x/ME are not pre-emptively multitasking,
9019
# you end up with a "frozen" computer, even though with patience
9020
# the test eventually succeeds (with a max line length of 256k).
9021
# Instead, let's just punt: use the minimum linelength reported by
9022
# all of the supported platforms: 8192 (on NT/2K/XP).
9023
lt_cv_sys_max_cmd_len=8192;
9027
# On MiNT this can take a long time and run out of memory.
9028
lt_cv_sys_max_cmd_len=8192;
9032
# On AmigaOS with pdksh, this test takes hours, literally.
9033
# So we just punt and use a minimum line length of 8192.
9034
lt_cv_sys_max_cmd_len=8192;
9037
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9038
# This has been around since 386BSD, at least. Likely further.
9039
if test -x /sbin/sysctl; then
9040
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9041
elif test -x /usr/sbin/sysctl; then
9042
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9044
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9046
# And add a safety zone
9047
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9048
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9052
# We know the value 262144 and hardcode it with a safety zone (like BSD)
9053
lt_cv_sys_max_cmd_len=196608
9057
# The test takes a long time on OS/2.
9058
lt_cv_sys_max_cmd_len=8192
9062
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9063
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9064
# nice to cause kernel panics so lets avoid the loop below.
9065
# First set a reasonable default.
9066
lt_cv_sys_max_cmd_len=16384
9068
if test -x /sbin/sysconfig; then
9069
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9070
*1*) lt_cv_sys_max_cmd_len=-1 ;;
9075
lt_cv_sys_max_cmd_len=102400
9077
sysv5* | sco5v6* | sysv4.2uw2*)
9078
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9079
if test -n "$kargmax"; then
9080
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9082
lt_cv_sys_max_cmd_len=32768
9086
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9087
if test -n "$lt_cv_sys_max_cmd_len"; then
9088
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9089
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9091
# Make teststring a little bigger before we do anything with it.
9092
# a 1K string should be a reasonable start.
9093
for i in 1 2 3 4 5 6 7 8 ; do
9094
teststring=$teststring$teststring
9096
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9097
# If test is not a shell built-in, we'll probably end up computing a
9098
# maximum length that is only half of the actual maximum length, but
9100
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
9101
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
9102
test $i != 17 # 1/2 MB should be enough
9105
teststring=$teststring$teststring
9107
# Only check the string length outside the loop.
9108
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9110
# Add a significant safety factor because C++ compilers can tack on
9111
# massive amounts of additional arguments before passing them to the
9112
# linker. It appears as though 1/2 is a usable value.
9113
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9120
if test -n $lt_cv_sys_max_cmd_len ; then
9121
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9122
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9125
$as_echo "none" >&6; }
9127
max_cmd_len=$lt_cv_sys_max_cmd_len
9138
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9139
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9140
# Try some XSI features
9143
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9145
&& eval 'test $(( 1 + 1 )) -eq 2 \
9146
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9149
$as_echo "$xsi_shell" >&6; }
9152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9153
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9155
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9157
&& lt_shell_append=yes
9158
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9159
$as_echo "$lt_shell_append" >&6; }
9162
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9172
# test EBCDIC or ASCII
9173
case `echo X|tr X '\101'` in
9174
A) # ASCII based system
9175
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9176
lt_SP2NL='tr \040 \012'
9177
lt_NL2SP='tr \015\012 \040\040'
9179
*) # EBCDIC based system
9180
lt_SP2NL='tr \100 \n'
9181
lt_NL2SP='tr \r\n \100\100'
9193
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9194
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9195
if ${lt_cv_to_host_file_cmd+:} false; then :
9196
$as_echo_n "(cached) " >&6
9201
*-*-mingw* ) # actually msys
9202
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9205
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9207
* ) # otherwise, assume *nix
9208
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9214
*-*-mingw* ) # actually msys
9215
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9218
lt_cv_to_host_file_cmd=func_convert_file_noop
9220
* ) # otherwise, assume *nix
9221
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9225
* ) # unhandled hosts (and "normal" native builds)
9226
lt_cv_to_host_file_cmd=func_convert_file_noop
9232
to_host_file_cmd=$lt_cv_to_host_file_cmd
9233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9234
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9240
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9241
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9242
if ${lt_cv_to_tool_file_cmd+:} false; then :
9243
$as_echo_n "(cached) " >&6
9245
#assume ordinary cross tools, or native build.
9246
lt_cv_to_tool_file_cmd=func_convert_file_noop
9250
*-*-mingw* ) # actually msys
9251
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9259
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9260
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9261
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9267
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9268
$as_echo_n "checking for $LD option to reload object files... " >&6; }
9269
if ${lt_cv_ld_reload_flag+:} false; then :
9270
$as_echo_n "(cached) " >&6
9272
lt_cv_ld_reload_flag='-r'
9274
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9275
$as_echo "$lt_cv_ld_reload_flag" >&6; }
9276
reload_flag=$lt_cv_ld_reload_flag
9277
case $reload_flag in
9279
*) reload_flag=" $reload_flag" ;;
9281
reload_cmds='$LD$reload_flag -o $output$reload_objs'
9283
cygwin* | mingw* | pw32* | cegcc*)
9284
if test "$GCC" != yes; then
9289
if test "$GCC" = yes; then
9290
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9292
reload_cmds='$LD$reload_flag -o $output$reload_objs'
9305
if test -n "$ac_tool_prefix"; then
9306
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9307
set dummy ${ac_tool_prefix}objdump; ac_word=$2
9308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9309
$as_echo_n "checking for $ac_word... " >&6; }
9310
if ${ac_cv_prog_OBJDUMP+:} false; then :
9311
$as_echo_n "(cached) " >&6
9313
if test -n "$OBJDUMP"; then
9314
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9316
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320
test -z "$as_dir" && as_dir=.
9321
for ac_exec_ext in '' $ac_executable_extensions; do
9322
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9323
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9324
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9333
OBJDUMP=$ac_cv_prog_OBJDUMP
9334
if test -n "$OBJDUMP"; then
9335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9336
$as_echo "$OBJDUMP" >&6; }
9338
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9339
$as_echo "no" >&6; }
9344
if test -z "$ac_cv_prog_OBJDUMP"; then
9345
ac_ct_OBJDUMP=$OBJDUMP
9346
# Extract the first word of "objdump", so it can be a program name with args.
9347
set dummy objdump; ac_word=$2
9348
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9349
$as_echo_n "checking for $ac_word... " >&6; }
9350
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9351
$as_echo_n "(cached) " >&6
9353
if test -n "$ac_ct_OBJDUMP"; then
9354
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9356
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9360
test -z "$as_dir" && as_dir=.
9361
for ac_exec_ext in '' $ac_executable_extensions; do
9362
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9363
ac_cv_prog_ac_ct_OBJDUMP="objdump"
9364
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9373
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9374
if test -n "$ac_ct_OBJDUMP"; then
9375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9376
$as_echo "$ac_ct_OBJDUMP" >&6; }
9378
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9379
$as_echo "no" >&6; }
9382
if test "x$ac_ct_OBJDUMP" = x; then
9385
case $cross_compiling:$ac_tool_warned in
9387
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9388
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9389
ac_tool_warned=yes ;;
9391
OBJDUMP=$ac_ct_OBJDUMP
9394
OBJDUMP="$ac_cv_prog_OBJDUMP"
9397
test -z "$OBJDUMP" && OBJDUMP=objdump
9407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9408
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9409
if ${lt_cv_deplibs_check_method+:} false; then :
9410
$as_echo_n "(cached) " >&6
9412
lt_cv_file_magic_cmd='$MAGIC_CMD'
9413
lt_cv_file_magic_test_file=
9414
lt_cv_deplibs_check_method='unknown'
9415
# Need to set the preceding variable on all platforms that support
9416
# interlibrary dependencies.
9417
# 'none' -- dependencies not supported.
9418
# `unknown' -- same as none, but documents that we really don't know.
9419
# 'pass_all' -- all dependencies passed with no checks.
9420
# 'test_compile' -- check by making test program.
9421
# 'file_magic [[regex]]' -- check by looking for files in library path
9422
# which responds to the $file_magic_cmd with a given extended regex.
9423
# If you have `file' or equivalent on your system and you're not sure
9424
# whether `pass_all' will *always* work, you probably want this one.
9428
lt_cv_deplibs_check_method=pass_all
9432
lt_cv_deplibs_check_method=pass_all
9436
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9437
lt_cv_file_magic_cmd='/usr/bin/file -L'
9438
lt_cv_file_magic_test_file=/shlib/libc.so
9442
# func_win32_libid is a shell function defined in ltmain.sh
9443
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9444
lt_cv_file_magic_cmd='func_win32_libid'
9448
# Base MSYS/MinGW do not provide the 'file' command needed by
9449
# func_win32_libid shell function, so use a weaker test based on 'objdump',
9450
# unless we find 'file', for example because we are cross-compiling.
9451
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
9452
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
9453
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9454
lt_cv_file_magic_cmd='func_win32_libid'
9456
# Keep this pattern in sync with the one in func_win32_libid.
9457
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9458
lt_cv_file_magic_cmd='$OBJDUMP -f'
9463
# use the weaker test based on 'objdump'. See mingw*.
9464
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9465
lt_cv_file_magic_cmd='$OBJDUMP -f'
9468
darwin* | rhapsody*)
9469
lt_cv_deplibs_check_method=pass_all
9472
freebsd* | dragonfly*)
9473
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9476
# Not sure whether the presence of OpenBSD here was a mistake.
9477
# Let's accept both of them until this is cleared up.
9478
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9479
lt_cv_file_magic_cmd=/usr/bin/file
9480
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9484
lt_cv_deplibs_check_method=pass_all
9489
lt_cv_deplibs_check_method=pass_all
9493
lt_cv_deplibs_check_method=pass_all
9496
hpux10.20* | hpux11*)
9497
lt_cv_file_magic_cmd=/usr/bin/file
9500
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9501
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9504
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]'
9505
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9508
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9509
lt_cv_file_magic_test_file=/usr/lib/libc.sl
9515
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9516
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9519
irix5* | irix6* | nonstopux*)
9521
*-32|*"-32 ") libmagic=32-bit;;
9522
*-n32|*"-n32 ") libmagic=N32;;
9523
*-64|*"-64 ") libmagic=64-bit;;
9524
*) libmagic=never-match;;
9526
lt_cv_deplibs_check_method=pass_all
9529
# This must be glibc/ELF.
9530
linux* | k*bsd*-gnu | kopensolaris*-gnu)
9531
lt_cv_deplibs_check_method=pass_all
9535
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9536
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9538
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9543
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9544
lt_cv_file_magic_cmd=/usr/bin/file
9545
lt_cv_file_magic_test_file=/usr/lib/libnls.so
9549
lt_cv_deplibs_check_method=pass_all
9553
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9554
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9556
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9560
osf3* | osf4* | osf5*)
9561
lt_cv_deplibs_check_method=pass_all
9565
lt_cv_deplibs_check_method=pass_all
9569
lt_cv_deplibs_check_method=pass_all
9572
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9573
lt_cv_deplibs_check_method=pass_all
9577
case $host_vendor in
9579
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]'
9580
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9583
lt_cv_deplibs_check_method=pass_all
9586
lt_cv_file_magic_cmd='/bin/file'
9587
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9590
lt_cv_file_magic_cmd='/bin/file'
9591
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9592
lt_cv_file_magic_test_file=/lib/libc.so
9595
lt_cv_deplibs_check_method=pass_all
9598
lt_cv_deplibs_check_method=pass_all
9604
lt_cv_deplibs_check_method=pass_all
9609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9610
$as_echo "$lt_cv_deplibs_check_method" >&6; }
9614
if test "$build" = "$host"; then
9617
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9620
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9626
file_magic_cmd=$lt_cv_file_magic_cmd
9627
deplibs_check_method=$lt_cv_deplibs_check_method
9628
test -z "$deplibs_check_method" && deplibs_check_method=unknown
9651
if test -n "$ac_tool_prefix"; then
9652
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9653
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9655
$as_echo_n "checking for $ac_word... " >&6; }
9656
if ${ac_cv_prog_DLLTOOL+:} false; then :
9657
$as_echo_n "(cached) " >&6
9659
if test -n "$DLLTOOL"; then
9660
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666
test -z "$as_dir" && as_dir=.
9667
for ac_exec_ext in '' $ac_executable_extensions; do
9668
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9669
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9670
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9679
DLLTOOL=$ac_cv_prog_DLLTOOL
9680
if test -n "$DLLTOOL"; then
9681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9682
$as_echo "$DLLTOOL" >&6; }
9684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685
$as_echo "no" >&6; }
9690
if test -z "$ac_cv_prog_DLLTOOL"; then
9691
ac_ct_DLLTOOL=$DLLTOOL
9692
# Extract the first word of "dlltool", so it can be a program name with args.
9693
set dummy dlltool; ac_word=$2
9694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9695
$as_echo_n "checking for $ac_word... " >&6; }
9696
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9697
$as_echo_n "(cached) " >&6
9699
if test -n "$ac_ct_DLLTOOL"; then
9700
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9702
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706
test -z "$as_dir" && as_dir=.
9707
for ac_exec_ext in '' $ac_executable_extensions; do
9708
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9709
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9710
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9719
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9720
if test -n "$ac_ct_DLLTOOL"; then
9721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9722
$as_echo "$ac_ct_DLLTOOL" >&6; }
9724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725
$as_echo "no" >&6; }
9728
if test "x$ac_ct_DLLTOOL" = x; then
9731
case $cross_compiling:$ac_tool_warned in
9733
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9734
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9735
ac_tool_warned=yes ;;
9737
DLLTOOL=$ac_ct_DLLTOOL
9740
DLLTOOL="$ac_cv_prog_DLLTOOL"
9743
test -z "$DLLTOOL" && DLLTOOL=dlltool
9754
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9755
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9756
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9757
$as_echo_n "(cached) " >&6
9759
lt_cv_sharedlib_from_linklib_cmd='unknown'
9762
cygwin* | mingw* | pw32* | cegcc*)
9763
# two different shell functions defined in ltmain.sh
9764
# decide which to use based on capabilities of $DLLTOOL
9765
case `$DLLTOOL --help 2>&1` in
9766
*--identify-strict*)
9767
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9770
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9775
# fallback: assume linklib IS sharedlib
9776
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9782
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9783
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9784
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9792
if test -n "$ac_tool_prefix"; then
9795
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9796
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9798
$as_echo_n "checking for $ac_word... " >&6; }
9799
if ${ac_cv_prog_AR+:} false; then :
9800
$as_echo_n "(cached) " >&6
9802
if test -n "$AR"; then
9803
ac_cv_prog_AR="$AR" # Let the user override the test.
9805
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9809
test -z "$as_dir" && as_dir=.
9810
for ac_exec_ext in '' $ac_executable_extensions; do
9811
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9812
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9813
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9823
if test -n "$AR"; then
9824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9825
$as_echo "$AR" >&6; }
9827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828
$as_echo "no" >&6; }
9832
test -n "$AR" && break
9835
if test -z "$AR"; then
9839
# Extract the first word of "$ac_prog", so it can be a program name with args.
9840
set dummy $ac_prog; ac_word=$2
9841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9842
$as_echo_n "checking for $ac_word... " >&6; }
9843
if ${ac_cv_prog_ac_ct_AR+:} false; then :
9844
$as_echo_n "(cached) " >&6
9846
if test -n "$ac_ct_AR"; then
9847
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9849
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9853
test -z "$as_dir" && as_dir=.
9854
for ac_exec_ext in '' $ac_executable_extensions; do
9855
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9856
ac_cv_prog_ac_ct_AR="$ac_prog"
9857
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9866
ac_ct_AR=$ac_cv_prog_ac_ct_AR
9867
if test -n "$ac_ct_AR"; then
9868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9869
$as_echo "$ac_ct_AR" >&6; }
9871
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872
$as_echo "no" >&6; }
9876
test -n "$ac_ct_AR" && break
9879
if test "x$ac_ct_AR" = x; then
9882
case $cross_compiling:$ac_tool_warned in
9884
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9885
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9886
ac_tool_warned=yes ;;
9905
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9906
$as_echo_n "checking for archiver @FILE support... " >&6; }
9907
if ${lt_cv_ar_at_file+:} false; then :
9908
$as_echo_n "(cached) " >&6
9911
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912
/* end confdefs.h. */
9922
if ac_fn_c_try_compile "$LINENO"; then :
9923
echo conftest.$ac_objext > conftest.lst
9924
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9925
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9926
(eval $lt_ar_try) 2>&5
9928
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9929
test $ac_status = 0; }
9930
if test "$ac_status" -eq 0; then
9931
# Ensure the archiver fails upon bogus file names.
9932
rm -f conftest.$ac_objext libconftest.a
9933
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9934
(eval $lt_ar_try) 2>&5
9936
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9937
test $ac_status = 0; }
9938
if test "$ac_status" -ne 0; then
9942
rm -f conftest.* libconftest.a
9945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9948
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9949
$as_echo "$lt_cv_ar_at_file" >&6; }
9951
if test "x$lt_cv_ar_at_file" = xno; then
9954
archiver_list_spec=$lt_cv_ar_at_file
9963
if test -n "$ac_tool_prefix"; then
9964
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9965
set dummy ${ac_tool_prefix}strip; ac_word=$2
9966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9967
$as_echo_n "checking for $ac_word... " >&6; }
9968
if ${ac_cv_prog_STRIP+:} false; then :
9969
$as_echo_n "(cached) " >&6
9971
if test -n "$STRIP"; then
9972
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9974
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9978
test -z "$as_dir" && as_dir=.
9979
for ac_exec_ext in '' $ac_executable_extensions; do
9980
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9981
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9982
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9991
STRIP=$ac_cv_prog_STRIP
9992
if test -n "$STRIP"; then
9993
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9994
$as_echo "$STRIP" >&6; }
9996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997
$as_echo "no" >&6; }
10002
if test -z "$ac_cv_prog_STRIP"; then
10004
# Extract the first word of "strip", so it can be a program name with args.
10005
set dummy strip; ac_word=$2
10006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10007
$as_echo_n "checking for $ac_word... " >&6; }
10008
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10009
$as_echo_n "(cached) " >&6
10011
if test -n "$ac_ct_STRIP"; then
10012
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10014
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10015
for as_dir in $PATH
10018
test -z "$as_dir" && as_dir=.
10019
for ac_exec_ext in '' $ac_executable_extensions; do
10020
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10021
ac_cv_prog_ac_ct_STRIP="strip"
10022
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10031
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10032
if test -n "$ac_ct_STRIP"; then
10033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10034
$as_echo "$ac_ct_STRIP" >&6; }
10036
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10037
$as_echo "no" >&6; }
10040
if test "x$ac_ct_STRIP" = x; then
10043
case $cross_compiling:$ac_tool_warned in
10045
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10046
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10047
ac_tool_warned=yes ;;
10052
STRIP="$ac_cv_prog_STRIP"
10055
test -z "$STRIP" && STRIP=:
10062
if test -n "$ac_tool_prefix"; then
10063
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10064
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10066
$as_echo_n "checking for $ac_word... " >&6; }
10067
if ${ac_cv_prog_RANLIB+:} false; then :
10068
$as_echo_n "(cached) " >&6
10070
if test -n "$RANLIB"; then
10071
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10073
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10074
for as_dir in $PATH
10077
test -z "$as_dir" && as_dir=.
10078
for ac_exec_ext in '' $ac_executable_extensions; do
10079
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10080
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10081
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10090
RANLIB=$ac_cv_prog_RANLIB
10091
if test -n "$RANLIB"; then
10092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10093
$as_echo "$RANLIB" >&6; }
10095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10096
$as_echo "no" >&6; }
10101
if test -z "$ac_cv_prog_RANLIB"; then
10102
ac_ct_RANLIB=$RANLIB
10103
# Extract the first word of "ranlib", so it can be a program name with args.
10104
set dummy ranlib; ac_word=$2
10105
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10106
$as_echo_n "checking for $ac_word... " >&6; }
10107
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10108
$as_echo_n "(cached) " >&6
10110
if test -n "$ac_ct_RANLIB"; then
10111
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10113
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114
for as_dir in $PATH
10117
test -z "$as_dir" && as_dir=.
10118
for ac_exec_ext in '' $ac_executable_extensions; do
10119
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10120
ac_cv_prog_ac_ct_RANLIB="ranlib"
10121
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10130
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10131
if test -n "$ac_ct_RANLIB"; then
10132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10133
$as_echo "$ac_ct_RANLIB" >&6; }
10135
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10136
$as_echo "no" >&6; }
10139
if test "x$ac_ct_RANLIB" = x; then
10142
case $cross_compiling:$ac_tool_warned in
10144
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10145
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10146
ac_tool_warned=yes ;;
10148
RANLIB=$ac_ct_RANLIB
10151
RANLIB="$ac_cv_prog_RANLIB"
10154
test -z "$RANLIB" && RANLIB=:
10161
# Determine commands to create old-style static archives.
10162
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10163
old_postinstall_cmds='chmod 644 $oldlib'
10164
old_postuninstall_cmds=
10166
if test -n "$RANLIB"; then
10169
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10172
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10175
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10180
lock_old_archive_extraction=yes ;;
10182
lock_old_archive_extraction=no ;;
10223
# If no C compiler was specified, use CC.
10226
# If no C compiler flags were specified, use CFLAGS.
10227
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10229
# Allow CC to be a program name with arguments.
10233
# Check for command to grab the raw symbol name followed by C symbol from nm.
10234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10235
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10236
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10237
$as_echo_n "(cached) " >&6
10240
# These are sane defaults that work on at least a few old systems.
10241
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10243
# Character class describing NM global symbol codes.
10244
symcode='[BCDEGRST]'
10246
# Regexp to match symbols that can be accessed directly from C.
10247
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10249
# Define system-specific variables.
10254
cygwin* | mingw* | pw32* | cegcc*)
10255
symcode='[ABCDGISTW]'
10258
if test "$host_cpu" = ia64; then
10259
symcode='[ABCDEGRST]'
10262
irix* | nonstopux*)
10263
symcode='[BCDEGRST]'
10266
symcode='[BCDEGQRST]'
10277
sysv5* | sco5v6* | unixware* | OpenUNIX*)
10285
# If we're using GNU nm, then use its standard symbol codes.
10286
case `$NM -V 2>&1` in
10287
*GNU* | *'with BFD'*)
10288
symcode='[ABCDGIRSTW]' ;;
10291
# Transform an extracted symbol line into a proper C declaration.
10292
# Some systems (esp. on ia64) link data and code symbols differently,
10293
# so use this general approach.
10294
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10296
# Transform an extracted symbol line into symbol name and symbol address
10297
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10298
lt_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'"
10300
# Handle CRLF in mingw tool chain
10304
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10308
# Try without a prefix underscore, then with it.
10309
for ac_symprfx in "" "_"; do
10311
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10312
symxfrm="\\1 $ac_symprfx\\2 \\2"
10314
# Write the raw and C identifiers.
10315
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10316
# Fake it for dumpbin and say T for any non-static function
10317
# and D for any global variable.
10318
# Also find C++ and __fastcall symbols from MSVC++,
10319
# which start with @ or ?.
10320
lt_cv_sys_global_symbol_pipe="$AWK '"\
10321
" {last_section=section; section=\$ 3};"\
10322
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10323
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10324
" \$ 0!~/External *\|/{next};"\
10325
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10326
" {if(hide[section]) next};"\
10327
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10328
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10329
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10330
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10331
" ' prfx=^$ac_symprfx"
10333
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10335
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10337
# Check to see that the pipe works correctly.
10341
cat > conftest.$ac_ext <<_LT_EOF
10346
void nm_test_func(void);
10347
void nm_test_func(void){}
10351
int main(){nm_test_var='a';nm_test_func();return(0);}
10354
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10355
(eval $ac_compile) 2>&5
10357
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10358
test $ac_status = 0; }; then
10359
# Now try to grab the symbols.
10361
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10362
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10364
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10365
test $ac_status = 0; } && test -s "$nlist"; then
10366
# Try sorting and uniquifying the output.
10367
if sort "$nlist" | uniq > "$nlist"T; then
10368
mv -f "$nlist"T "$nlist"
10373
# Make sure that we snagged all the symbols we need.
10374
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10375
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10376
cat <<_LT_EOF > conftest.$ac_ext
10377
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10378
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
10379
/* DATA imports from DLLs on WIN32 con't be const, because runtime
10380
relocations are performed -- see ld's documentation on pseudo-relocs. */
10381
# define LT_DLSYM_CONST
10382
#elif defined(__osf__)
10383
/* This system does not cope well with relocations in const data. */
10384
# define LT_DLSYM_CONST
10386
# define LT_DLSYM_CONST const
10394
# Now generate the symbol file.
10395
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10397
cat <<_LT_EOF >> conftest.$ac_ext
10399
/* The mapping between symbol names and symbols. */
10400
LT_DLSYM_CONST struct {
10404
lt__PROGRAM__LTX_preloaded_symbols[] =
10406
{ "@PROGRAM@", (void *) 0 },
10408
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10409
cat <<\_LT_EOF >> conftest.$ac_ext
10413
/* This works around a problem in FreeBSD linker */
10414
#ifdef FREEBSD_WORKAROUND
10415
static const void *lt_preloaded_setup() {
10416
return lt__PROGRAM__LTX_preloaded_symbols;
10424
# Now try linking the two files.
10425
mv conftest.$ac_objext conftstm.$ac_objext
10426
lt_globsym_save_LIBS=$LIBS
10427
lt_globsym_save_CFLAGS=$CFLAGS
10428
LIBS="conftstm.$ac_objext"
10429
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10430
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10431
(eval $ac_link) 2>&5
10433
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10434
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10437
LIBS=$lt_globsym_save_LIBS
10438
CFLAGS=$lt_globsym_save_CFLAGS
10440
echo "cannot find nm_test_func in $nlist" >&5
10443
echo "cannot find nm_test_var in $nlist" >&5
10446
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10449
echo "$progname: failed program was:" >&5
10450
cat conftest.$ac_ext >&5
10452
rm -rf conftest* conftst*
10454
# Do not use the global_symbol_pipe unless it works.
10455
if test "$pipe_works" = yes; then
10458
lt_cv_sys_global_symbol_pipe=
10464
if test -z "$lt_cv_sys_global_symbol_pipe"; then
10465
lt_cv_sys_global_symbol_to_cdecl=
10467
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10469
$as_echo "failed" >&6; }
10471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10472
$as_echo "ok" >&6; }
10475
# Response file support.
10476
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10477
nm_file_list_spec='@'
10478
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10479
nm_file_list_spec='@'
10508
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10509
$as_echo_n "checking for sysroot... " >&6; }
10511
# Check whether --with-sysroot was given.
10512
if test "${with_sysroot+set}" = set; then :
10513
withval=$with_sysroot;
10520
case ${with_sysroot} in #(
10522
if test "$GCC" = yes; then
10523
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10527
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
10533
$as_echo "${with_sysroot}" >&6; }
10534
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10538
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10539
$as_echo "${lt_sysroot:-no}" >&6; }
10545
# Check whether --enable-libtool-lock was given.
10546
if test "${enable_libtool_lock+set}" = set; then :
10547
enableval=$enable_libtool_lock;
10550
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10552
# Some flags need to be propagated to the compiler or linker for good
10556
# Find out which ABI we are using.
10557
echo 'int i;' > conftest.$ac_ext
10558
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10559
(eval $ac_compile) 2>&5
10561
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10562
test $ac_status = 0; }; then
10563
case `/usr/bin/file conftest.$ac_objext` in
10565
HPUX_IA64_MODE="32"
10568
HPUX_IA64_MODE="64"
10575
# Find out which ABI we are using.
10576
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10577
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10578
(eval $ac_compile) 2>&5
10580
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10581
test $ac_status = 0; }; then
10582
if test "$lt_cv_prog_gnu_ld" = yes; then
10583
case `/usr/bin/file conftest.$ac_objext` in
10585
LD="${LD-ld} -melf32bsmip"
10588
LD="${LD-ld} -melf32bmipn32"
10591
LD="${LD-ld} -melf64bmip"
10595
case `/usr/bin/file conftest.$ac_objext` in
10611
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10612
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10613
# Find out which ABI we are using.
10614
echo 'int i;' > conftest.$ac_ext
10615
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10616
(eval $ac_compile) 2>&5
10618
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10619
test $ac_status = 0; }; then
10620
case `/usr/bin/file conftest.o` in
10623
x86_64-*kfreebsd*-gnu)
10624
LD="${LD-ld} -m elf_i386_fbsd"
10627
LD="${LD-ld} -m elf_i386"
10629
ppc64-*linux*|powerpc64-*linux*)
10630
LD="${LD-ld} -m elf32ppclinux"
10633
LD="${LD-ld} -m elf_s390"
10636
LD="${LD-ld} -m elf32_sparc"
10642
x86_64-*kfreebsd*-gnu)
10643
LD="${LD-ld} -m elf_x86_64_fbsd"
10646
LD="${LD-ld} -m elf_x86_64"
10648
ppc*-*linux*|powerpc*-*linux*)
10649
LD="${LD-ld} -m elf64ppc"
10651
s390*-*linux*|s390*-*tpf*)
10652
LD="${LD-ld} -m elf64_s390"
10655
LD="${LD-ld} -m elf64_sparc"
10665
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
10666
SAVE_CFLAGS="$CFLAGS"
10667
CFLAGS="$CFLAGS -belf"
10668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10669
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10670
if ${lt_cv_cc_needs_belf+:} false; then :
10671
$as_echo_n "(cached) " >&6
10674
ac_cpp='$CPP $CPPFLAGS'
10675
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10676
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10677
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10679
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680
/* end confdefs.h. */
10690
if ac_fn_c_try_link "$LINENO"; then :
10691
lt_cv_cc_needs_belf=yes
10693
lt_cv_cc_needs_belf=no
10695
rm -f core conftest.err conftest.$ac_objext \
10696
conftest$ac_exeext conftest.$ac_ext
10698
ac_cpp='$CPP $CPPFLAGS'
10699
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10700
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10701
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10705
$as_echo "$lt_cv_cc_needs_belf" >&6; }
10706
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10707
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10708
CFLAGS="$SAVE_CFLAGS"
10712
# Find out which ABI we are using.
10713
echo 'int i;' > conftest.$ac_ext
10714
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10715
(eval $ac_compile) 2>&5
10717
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10718
test $ac_status = 0; }; then
10719
case `/usr/bin/file conftest.o` in
10721
case $lt_cv_prog_gnu_ld in
10725
LD="${LD-ld} -m elf_x86_64"
10728
LD="${LD-ld} -m elf64_sparc"
10731
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10732
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10737
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10749
need_locks="$enable_libtool_lock"
10751
if test -n "$ac_tool_prefix"; then
10752
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10753
set dummy ${ac_tool_prefix}mt; ac_word=$2
10754
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10755
$as_echo_n "checking for $ac_word... " >&6; }
10756
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10757
$as_echo_n "(cached) " >&6
10759
if test -n "$MANIFEST_TOOL"; then
10760
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763
for as_dir in $PATH
10766
test -z "$as_dir" && as_dir=.
10767
for ac_exec_ext in '' $ac_executable_extensions; do
10768
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10769
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10770
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10779
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10780
if test -n "$MANIFEST_TOOL"; then
10781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10782
$as_echo "$MANIFEST_TOOL" >&6; }
10784
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785
$as_echo "no" >&6; }
10790
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10791
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10792
# Extract the first word of "mt", so it can be a program name with args.
10793
set dummy mt; ac_word=$2
10794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10795
$as_echo_n "checking for $ac_word... " >&6; }
10796
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10797
$as_echo_n "(cached) " >&6
10799
if test -n "$ac_ct_MANIFEST_TOOL"; then
10800
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10802
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803
for as_dir in $PATH
10806
test -z "$as_dir" && as_dir=.
10807
for ac_exec_ext in '' $ac_executable_extensions; do
10808
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10809
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10810
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10819
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10820
if test -n "$ac_ct_MANIFEST_TOOL"; then
10821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10822
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825
$as_echo "no" >&6; }
10828
if test "x$ac_ct_MANIFEST_TOOL" = x; then
10831
case $cross_compiling:$ac_tool_warned in
10833
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10834
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10835
ac_tool_warned=yes ;;
10837
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10840
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10843
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10844
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10845
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10846
if ${lt_cv_path_mainfest_tool+:} false; then :
10847
$as_echo_n "(cached) " >&6
10849
lt_cv_path_mainfest_tool=no
10850
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10851
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10852
cat conftest.err >&5
10853
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10854
lt_cv_path_mainfest_tool=yes
10858
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10859
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10860
if test "x$lt_cv_path_mainfest_tool" != xyes; then
10870
rhapsody* | darwin*)
10871
if test -n "$ac_tool_prefix"; then
10872
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10873
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10875
$as_echo_n "checking for $ac_word... " >&6; }
10876
if ${ac_cv_prog_DSYMUTIL+:} false; then :
10877
$as_echo_n "(cached) " >&6
10879
if test -n "$DSYMUTIL"; then
10880
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10882
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883
for as_dir in $PATH
10886
test -z "$as_dir" && as_dir=.
10887
for ac_exec_ext in '' $ac_executable_extensions; do
10888
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10889
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10890
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10899
DSYMUTIL=$ac_cv_prog_DSYMUTIL
10900
if test -n "$DSYMUTIL"; then
10901
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10902
$as_echo "$DSYMUTIL" >&6; }
10904
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905
$as_echo "no" >&6; }
10910
if test -z "$ac_cv_prog_DSYMUTIL"; then
10911
ac_ct_DSYMUTIL=$DSYMUTIL
10912
# Extract the first word of "dsymutil", so it can be a program name with args.
10913
set dummy dsymutil; ac_word=$2
10914
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915
$as_echo_n "checking for $ac_word... " >&6; }
10916
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10917
$as_echo_n "(cached) " >&6
10919
if test -n "$ac_ct_DSYMUTIL"; then
10920
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10922
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923
for as_dir in $PATH
10926
test -z "$as_dir" && as_dir=.
10927
for ac_exec_ext in '' $ac_executable_extensions; do
10928
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10929
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10930
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10939
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10940
if test -n "$ac_ct_DSYMUTIL"; then
10941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10942
$as_echo "$ac_ct_DSYMUTIL" >&6; }
10944
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945
$as_echo "no" >&6; }
10948
if test "x$ac_ct_DSYMUTIL" = x; then
10951
case $cross_compiling:$ac_tool_warned in
10953
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10954
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10955
ac_tool_warned=yes ;;
10957
DSYMUTIL=$ac_ct_DSYMUTIL
10960
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10963
if test -n "$ac_tool_prefix"; then
10964
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10965
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967
$as_echo_n "checking for $ac_word... " >&6; }
10968
if ${ac_cv_prog_NMEDIT+:} false; then :
10969
$as_echo_n "(cached) " >&6
10971
if test -n "$NMEDIT"; then
10972
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10974
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975
for as_dir in $PATH
10978
test -z "$as_dir" && as_dir=.
10979
for ac_exec_ext in '' $ac_executable_extensions; do
10980
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10981
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10982
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10991
NMEDIT=$ac_cv_prog_NMEDIT
10992
if test -n "$NMEDIT"; then
10993
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10994
$as_echo "$NMEDIT" >&6; }
10996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997
$as_echo "no" >&6; }
11002
if test -z "$ac_cv_prog_NMEDIT"; then
11003
ac_ct_NMEDIT=$NMEDIT
11004
# Extract the first word of "nmedit", so it can be a program name with args.
11005
set dummy nmedit; ac_word=$2
11006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11007
$as_echo_n "checking for $ac_word... " >&6; }
11008
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11009
$as_echo_n "(cached) " >&6
11011
if test -n "$ac_ct_NMEDIT"; then
11012
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11014
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015
for as_dir in $PATH
11018
test -z "$as_dir" && as_dir=.
11019
for ac_exec_ext in '' $ac_executable_extensions; do
11020
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11021
ac_cv_prog_ac_ct_NMEDIT="nmedit"
11022
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11031
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11032
if test -n "$ac_ct_NMEDIT"; then
11033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11034
$as_echo "$ac_ct_NMEDIT" >&6; }
11036
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037
$as_echo "no" >&6; }
11040
if test "x$ac_ct_NMEDIT" = x; then
11043
case $cross_compiling:$ac_tool_warned in
11045
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11046
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11047
ac_tool_warned=yes ;;
11049
NMEDIT=$ac_ct_NMEDIT
11052
NMEDIT="$ac_cv_prog_NMEDIT"
11055
if test -n "$ac_tool_prefix"; then
11056
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11057
set dummy ${ac_tool_prefix}lipo; ac_word=$2
11058
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11059
$as_echo_n "checking for $ac_word... " >&6; }
11060
if ${ac_cv_prog_LIPO+:} false; then :
11061
$as_echo_n "(cached) " >&6
11063
if test -n "$LIPO"; then
11064
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067
for as_dir in $PATH
11070
test -z "$as_dir" && as_dir=.
11071
for ac_exec_ext in '' $ac_executable_extensions; do
11072
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11073
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11074
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11083
LIPO=$ac_cv_prog_LIPO
11084
if test -n "$LIPO"; then
11085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11086
$as_echo "$LIPO" >&6; }
11088
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089
$as_echo "no" >&6; }
11094
if test -z "$ac_cv_prog_LIPO"; then
11096
# Extract the first word of "lipo", so it can be a program name with args.
11097
set dummy lipo; ac_word=$2
11098
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11099
$as_echo_n "checking for $ac_word... " >&6; }
11100
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11101
$as_echo_n "(cached) " >&6
11103
if test -n "$ac_ct_LIPO"; then
11104
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107
for as_dir in $PATH
11110
test -z "$as_dir" && as_dir=.
11111
for ac_exec_ext in '' $ac_executable_extensions; do
11112
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11113
ac_cv_prog_ac_ct_LIPO="lipo"
11114
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11123
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11124
if test -n "$ac_ct_LIPO"; then
11125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11126
$as_echo "$ac_ct_LIPO" >&6; }
11128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129
$as_echo "no" >&6; }
11132
if test "x$ac_ct_LIPO" = x; then
11135
case $cross_compiling:$ac_tool_warned in
11137
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11138
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11139
ac_tool_warned=yes ;;
11144
LIPO="$ac_cv_prog_LIPO"
11147
if test -n "$ac_tool_prefix"; then
11148
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11149
set dummy ${ac_tool_prefix}otool; ac_word=$2
11150
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11151
$as_echo_n "checking for $ac_word... " >&6; }
11152
if ${ac_cv_prog_OTOOL+:} false; then :
11153
$as_echo_n "(cached) " >&6
11155
if test -n "$OTOOL"; then
11156
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159
for as_dir in $PATH
11162
test -z "$as_dir" && as_dir=.
11163
for ac_exec_ext in '' $ac_executable_extensions; do
11164
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11165
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11166
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11175
OTOOL=$ac_cv_prog_OTOOL
11176
if test -n "$OTOOL"; then
11177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11178
$as_echo "$OTOOL" >&6; }
11180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181
$as_echo "no" >&6; }
11186
if test -z "$ac_cv_prog_OTOOL"; then
11188
# Extract the first word of "otool", so it can be a program name with args.
11189
set dummy otool; ac_word=$2
11190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11191
$as_echo_n "checking for $ac_word... " >&6; }
11192
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11193
$as_echo_n "(cached) " >&6
11195
if test -n "$ac_ct_OTOOL"; then
11196
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11198
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199
for as_dir in $PATH
11202
test -z "$as_dir" && as_dir=.
11203
for ac_exec_ext in '' $ac_executable_extensions; do
11204
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11205
ac_cv_prog_ac_ct_OTOOL="otool"
11206
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11215
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11216
if test -n "$ac_ct_OTOOL"; then
11217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11218
$as_echo "$ac_ct_OTOOL" >&6; }
11220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221
$as_echo "no" >&6; }
11224
if test "x$ac_ct_OTOOL" = x; then
11227
case $cross_compiling:$ac_tool_warned in
11229
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11230
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11231
ac_tool_warned=yes ;;
11236
OTOOL="$ac_cv_prog_OTOOL"
11239
if test -n "$ac_tool_prefix"; then
11240
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11241
set dummy ${ac_tool_prefix}otool64; ac_word=$2
11242
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11243
$as_echo_n "checking for $ac_word... " >&6; }
11244
if ${ac_cv_prog_OTOOL64+:} false; then :
11245
$as_echo_n "(cached) " >&6
11247
if test -n "$OTOOL64"; then
11248
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11250
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251
for as_dir in $PATH
11254
test -z "$as_dir" && as_dir=.
11255
for ac_exec_ext in '' $ac_executable_extensions; do
11256
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11257
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11258
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11267
OTOOL64=$ac_cv_prog_OTOOL64
11268
if test -n "$OTOOL64"; then
11269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11270
$as_echo "$OTOOL64" >&6; }
11272
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273
$as_echo "no" >&6; }
11278
if test -z "$ac_cv_prog_OTOOL64"; then
11279
ac_ct_OTOOL64=$OTOOL64
11280
# Extract the first word of "otool64", so it can be a program name with args.
11281
set dummy otool64; ac_word=$2
11282
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11283
$as_echo_n "checking for $ac_word... " >&6; }
11284
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11285
$as_echo_n "(cached) " >&6
11287
if test -n "$ac_ct_OTOOL64"; then
11288
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11290
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11291
for as_dir in $PATH
11294
test -z "$as_dir" && as_dir=.
11295
for ac_exec_ext in '' $ac_executable_extensions; do
11296
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11297
ac_cv_prog_ac_ct_OTOOL64="otool64"
11298
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11307
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11308
if test -n "$ac_ct_OTOOL64"; then
11309
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11310
$as_echo "$ac_ct_OTOOL64" >&6; }
11312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313
$as_echo "no" >&6; }
11316
if test "x$ac_ct_OTOOL64" = x; then
11319
case $cross_compiling:$ac_tool_warned in
11321
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11322
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11323
ac_tool_warned=yes ;;
11325
OTOOL64=$ac_ct_OTOOL64
11328
OTOOL64="$ac_cv_prog_OTOOL64"
11357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11358
$as_echo_n "checking for -single_module linker flag... " >&6; }
11359
if ${lt_cv_apple_cc_single_mod+:} false; then :
11360
$as_echo_n "(cached) " >&6
11362
lt_cv_apple_cc_single_mod=no
11363
if test -z "${LT_MULTI_MODULE}"; then
11364
# By default we will add the -single_module flag. You can override
11365
# by either setting the environment variable LT_MULTI_MODULE
11366
# non-empty at configure time, or by adding -multi_module to the
11368
rm -rf libconftest.dylib*
11369
echo "int foo(void){return 1;}" > conftest.c
11370
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11371
-dynamiclib -Wl,-single_module conftest.c" >&5
11372
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11373
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11375
# If there is a non-empty error log, and "single_module"
11376
# appears in it, assume the flag caused a linker warning
11377
if test -s conftest.err && $GREP single_module conftest.err; then
11378
cat conftest.err >&5
11379
# Otherwise, if the output was created with a 0 exit code from
11380
# the compiler, it worked.
11381
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
11382
lt_cv_apple_cc_single_mod=yes
11384
cat conftest.err >&5
11386
rm -rf libconftest.dylib*
11390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11391
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11393
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11394
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11395
if ${lt_cv_ld_exported_symbols_list+:} false; then :
11396
$as_echo_n "(cached) " >&6
11398
lt_cv_ld_exported_symbols_list=no
11399
save_LDFLAGS=$LDFLAGS
11400
echo "_main" > conftest.sym
11401
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11402
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403
/* end confdefs.h. */
11413
if ac_fn_c_try_link "$LINENO"; then :
11414
lt_cv_ld_exported_symbols_list=yes
11416
lt_cv_ld_exported_symbols_list=no
11418
rm -f core conftest.err conftest.$ac_objext \
11419
conftest$ac_exeext conftest.$ac_ext
11420
LDFLAGS="$save_LDFLAGS"
11423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11424
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11426
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11427
$as_echo_n "checking for -force_load linker flag... " >&6; }
11428
if ${lt_cv_ld_force_load+:} false; then :
11429
$as_echo_n "(cached) " >&6
11431
lt_cv_ld_force_load=no
11432
cat > conftest.c << _LT_EOF
11433
int forced_loaded() { return 2;}
11435
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11436
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11437
echo "$AR cru libconftest.a conftest.o" >&5
11438
$AR cru libconftest.a conftest.o 2>&5
11439
echo "$RANLIB libconftest.a" >&5
11440
$RANLIB libconftest.a 2>&5
11441
cat > conftest.c << _LT_EOF
11442
int main() { return 0;}
11444
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11445
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11447
if test -s conftest.err && $GREP force_load conftest.err; then
11448
cat conftest.err >&5
11449
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
11450
lt_cv_ld_force_load=yes
11452
cat conftest.err >&5
11454
rm -f conftest.err libconftest.a conftest conftest.c
11455
rm -rf conftest.dSYM
11458
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11459
$as_echo "$lt_cv_ld_force_load" >&6; }
11461
rhapsody* | darwin1.[012])
11462
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11464
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11465
darwin*) # darwin 5.x on
11466
# if running on 10.5 or later, the deployment target defaults
11467
# to the OS version, if on x86, and 10.4, the deployment
11468
# target defaults to 10.4. Don't you love it?
11469
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11470
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11471
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11473
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11475
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11479
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11480
_lt_dar_single_mod='$single_module'
11482
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11483
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11485
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11487
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11488
_lt_dsymutil='~$DSYMUTIL $lib || :'
11496
ac_cpp='$CPP $CPPFLAGS'
11497
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11498
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11499
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11501
$as_echo_n "checking how to run the C preprocessor... " >&6; }
11502
# On Suns, sometimes $CPP names a directory.
11503
if test -n "$CPP" && test -d "$CPP"; then
11506
if test -z "$CPP"; then
11507
if ${ac_cv_prog_CPP+:} false; then :
11508
$as_echo_n "(cached) " >&6
11510
# Double quotes because CPP needs to be expanded
11511
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11513
ac_preproc_ok=false
11514
for ac_c_preproc_warn_flag in '' yes
11516
# Use a header file that comes with gcc, so configuring glibc
11517
# with a fresh cross-compiler works.
11518
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11519
# <limits.h> exists even on freestanding compilers.
11520
# On the NeXT, cc -E runs the code through the compiler's parser,
11521
# not just through cpp. "Syntax error" is here to catch this case.
11522
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523
/* end confdefs.h. */
11525
# include <limits.h>
11527
# include <assert.h>
11531
if ac_fn_c_try_cpp "$LINENO"; then :
11534
# Broken: fails on valid input.
11537
rm -f conftest.err conftest.i conftest.$ac_ext
11539
# OK, works on sane cases. Now check whether nonexistent headers
11540
# can be detected and how.
11541
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542
/* end confdefs.h. */
11543
#include <ac_nonexistent.h>
11545
if ac_fn_c_try_cpp "$LINENO"; then :
11546
# Broken: success on invalid input.
11549
# Passes both tests.
11553
rm -f conftest.err conftest.i conftest.$ac_ext
11556
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11557
rm -f conftest.i conftest.err conftest.$ac_ext
11558
if $ac_preproc_ok; then :
11563
ac_cv_prog_CPP=$CPP
11566
CPP=$ac_cv_prog_CPP
11568
ac_cv_prog_CPP=$CPP
11570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11571
$as_echo "$CPP" >&6; }
11572
ac_preproc_ok=false
11573
for ac_c_preproc_warn_flag in '' yes
11575
# Use a header file that comes with gcc, so configuring glibc
11576
# with a fresh cross-compiler works.
11577
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11578
# <limits.h> exists even on freestanding compilers.
11579
# On the NeXT, cc -E runs the code through the compiler's parser,
11580
# not just through cpp. "Syntax error" is here to catch this case.
11581
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582
/* end confdefs.h. */
11584
# include <limits.h>
11586
# include <assert.h>
11590
if ac_fn_c_try_cpp "$LINENO"; then :
11593
# Broken: fails on valid input.
11596
rm -f conftest.err conftest.i conftest.$ac_ext
11598
# OK, works on sane cases. Now check whether nonexistent headers
11599
# can be detected and how.
11600
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601
/* end confdefs.h. */
11602
#include <ac_nonexistent.h>
11604
if ac_fn_c_try_cpp "$LINENO"; then :
11605
# Broken: success on invalid input.
11608
# Passes both tests.
11612
rm -f conftest.err conftest.i conftest.$ac_ext
11615
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11616
rm -f conftest.i conftest.err conftest.$ac_ext
11617
if $ac_preproc_ok; then :
11620
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11621
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11622
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11623
See \`config.log' for more details" "$LINENO" 5; }
11627
ac_cpp='$CPP $CPPFLAGS'
11628
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11629
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11630
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11634
$as_echo_n "checking for ANSI C header files... " >&6; }
11635
if ${ac_cv_header_stdc+:} false; then :
11636
$as_echo_n "(cached) " >&6
11638
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639
/* end confdefs.h. */
11640
#include <stdlib.h>
11641
#include <stdarg.h>
11642
#include <string.h>
11653
if ac_fn_c_try_compile "$LINENO"; then :
11654
ac_cv_header_stdc=yes
11656
ac_cv_header_stdc=no
11658
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660
if test $ac_cv_header_stdc = yes; then
11661
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11662
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663
/* end confdefs.h. */
11664
#include <string.h>
11667
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11668
$EGREP "memchr" >/dev/null 2>&1; then :
11671
ac_cv_header_stdc=no
11677
if test $ac_cv_header_stdc = yes; then
11678
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11679
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11680
/* end confdefs.h. */
11681
#include <stdlib.h>
11684
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11685
$EGREP "free" >/dev/null 2>&1; then :
11688
ac_cv_header_stdc=no
11694
if test $ac_cv_header_stdc = yes; then
11695
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11696
if test "$cross_compiling" = yes; then :
11699
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700
/* end confdefs.h. */
11702
#include <stdlib.h>
11703
#if ((' ' & 0x0FF) == 0x020)
11704
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11705
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11707
# define ISLOWER(c) \
11708
(('a' <= (c) && (c) <= 'i') \
11709
|| ('j' <= (c) && (c) <= 'r') \
11710
|| ('s' <= (c) && (c) <= 'z'))
11711
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11714
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11719
for (i = 0; i < 256; i++)
11720
if (XOR (islower (i), ISLOWER (i))
11721
|| toupper (i) != TOUPPER (i))
11726
if ac_fn_c_try_run "$LINENO"; then :
11729
ac_cv_header_stdc=no
11731
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11732
conftest.$ac_objext conftest.beam conftest.$ac_ext
11737
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11738
$as_echo "$ac_cv_header_stdc" >&6; }
11739
if test $ac_cv_header_stdc = yes; then
11741
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11745
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
11746
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11747
inttypes.h stdint.h unistd.h
11749
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11750
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11752
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11753
cat >>confdefs.h <<_ACEOF
11754
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11762
for ac_header in dlfcn.h
11764
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11766
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11767
cat >>confdefs.h <<_ACEOF
11768
#define HAVE_DLFCN_H 1
11780
# Check whether --enable-static was given.
11781
if test "${enable_static+set}" = set; then :
11782
enableval=$enable_static; p=${PACKAGE-default}
11784
yes) enable_static=yes ;;
11785
no) enable_static=no ;;
11788
# Look at the argument we got. We use all the common list separators.
11789
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11790
for pkg in $enableval; do
11792
if test "X$pkg" = "X$p"; then
11815
enable_win32_dll=no
11818
# Check whether --enable-shared was given.
11819
if test "${enable_shared+set}" = set; then :
11820
enableval=$enable_shared; p=${PACKAGE-default}
11822
yes) enable_shared=yes ;;
11823
no) enable_shared=no ;;
11826
# Look at the argument we got. We use all the common list separators.
11827
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11828
for pkg in $enableval; do
11830
if test "X$pkg" = "X$p"; then
11851
# Check whether --with-pic was given.
11852
if test "${with_pic+set}" = set; then :
11853
withval=$with_pic; lt_p=${PACKAGE-default}
11855
yes|no) pic_mode=$withval ;;
11858
# Look at the argument we got. We use all the common list separators.
11859
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11860
for lt_pkg in $withval; do
11862
if test "X$lt_pkg" = "X$lt_p"; then
11874
test -z "$pic_mode" && pic_mode=default
11882
# Check whether --enable-fast-install was given.
11883
if test "${enable_fast_install+set}" = set; then :
11884
enableval=$enable_fast_install; p=${PACKAGE-default}
11886
yes) enable_fast_install=yes ;;
11887
no) enable_fast_install=no ;;
11889
enable_fast_install=no
11890
# Look at the argument we got. We use all the common list separators.
11891
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11892
for pkg in $enableval; do
11894
if test "X$pkg" = "X$p"; then
11895
enable_fast_install=yes
11902
enable_fast_install=yes
11915
# This can be used to rebuild libtool when needed
11916
LIBTOOL_DEPS="$ltmain"
11918
# Always use our own libtool.
11919
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11950
test -z "$LN_S" && LN_S="ln -s"
11965
if test -n "${ZSH_VERSION+set}" ; then
11966
setopt NO_GLOB_SUBST
11969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11970
$as_echo_n "checking for objdir... " >&6; }
11971
if ${lt_cv_objdir+:} false; then :
11972
$as_echo_n "(cached) " >&6
11974
rm -f .libs 2>/dev/null
11975
mkdir .libs 2>/dev/null
11976
if test -d .libs; then
11979
# MS-DOS does not allow filenames that begin with a dot.
11982
rmdir .libs 2>/dev/null
11984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11985
$as_echo "$lt_cv_objdir" >&6; }
11986
objdir=$lt_cv_objdir
11992
cat >>confdefs.h <<_ACEOF
11993
#define LT_OBJDIR "$lt_cv_objdir/"
12001
# AIX sometimes has problems with the GCC collect2 program. For some
12002
# reason, if we set the COLLECT_NAMES environment variable, the problems
12003
# vanish in a puff of smoke.
12004
if test "X${COLLECT_NAMES+set}" != Xset; then
12006
export COLLECT_NAMES
12011
# Global variables:
12013
can_build_shared=yes
12015
# All known linkers require a `.a' archive for static linking (except MSVC,
12016
# which needs '.lib').
12019
with_gnu_ld="$lt_cv_prog_gnu_ld"
12022
old_CFLAGS="$CFLAGS"
12024
# Set sane defaults for various variables
12025
test -z "$CC" && CC=cc
12026
test -z "$LTCC" && LTCC=$CC
12027
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12028
test -z "$LD" && LD=ld
12029
test -z "$ac_objext" && ac_objext=o
12031
for cc_temp in $compiler""; do
12033
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12034
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12039
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12042
# Only perform the check for file, if the check method requires it
12043
test -z "$MAGIC_CMD" && MAGIC_CMD=file
12044
case $deplibs_check_method in
12046
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12048
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12049
if ${lt_cv_path_MAGIC_CMD+:} false; then :
12050
$as_echo_n "(cached) " >&6
12054
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12057
lt_save_MAGIC_CMD="$MAGIC_CMD"
12058
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12059
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12060
for ac_dir in $ac_dummy; do
12062
test -z "$ac_dir" && ac_dir=.
12063
if test -f $ac_dir/${ac_tool_prefix}file; then
12064
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12065
if test -n "$file_magic_test_file"; then
12066
case $deplibs_check_method in
12068
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12069
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12070
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12071
$EGREP "$file_magic_regex" > /dev/null; then
12076
*** Warning: the command libtool uses to detect shared libraries,
12077
*** $file_magic_cmd, produces output that libtool cannot recognize.
12078
*** The result is that libtool may fail to recognize shared libraries
12079
*** as such. This will affect the creation of libtool libraries that
12080
*** depend on shared libraries, but programs linked with such libtool
12081
*** libraries will work regardless of this problem. Nevertheless, you
12082
*** may want to report the problem to your system manager and/or to
12083
*** bug-libtool@gnu.org
12093
MAGIC_CMD="$lt_save_MAGIC_CMD"
12098
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12099
if test -n "$MAGIC_CMD"; then
12100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12101
$as_echo "$MAGIC_CMD" >&6; }
12103
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104
$as_echo "no" >&6; }
12111
if test -z "$lt_cv_path_MAGIC_CMD"; then
12112
if test -n "$ac_tool_prefix"; then
12113
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12114
$as_echo_n "checking for file... " >&6; }
12115
if ${lt_cv_path_MAGIC_CMD+:} false; then :
12116
$as_echo_n "(cached) " >&6
12120
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12123
lt_save_MAGIC_CMD="$MAGIC_CMD"
12124
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12125
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12126
for ac_dir in $ac_dummy; do
12128
test -z "$ac_dir" && ac_dir=.
12129
if test -f $ac_dir/file; then
12130
lt_cv_path_MAGIC_CMD="$ac_dir/file"
12131
if test -n "$file_magic_test_file"; then
12132
case $deplibs_check_method in
12134
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12135
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12136
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12137
$EGREP "$file_magic_regex" > /dev/null; then
12142
*** Warning: the command libtool uses to detect shared libraries,
12143
*** $file_magic_cmd, produces output that libtool cannot recognize.
12144
*** The result is that libtool may fail to recognize shared libraries
12145
*** as such. This will affect the creation of libtool libraries that
12146
*** depend on shared libraries, but programs linked with such libtool
12147
*** libraries will work regardless of this problem. Nevertheless, you
12148
*** may want to report the problem to your system manager and/or to
12149
*** bug-libtool@gnu.org
12159
MAGIC_CMD="$lt_save_MAGIC_CMD"
12164
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12165
if test -n "$MAGIC_CMD"; then
12166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12167
$as_echo "$MAGIC_CMD" >&6; }
12169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170
$as_echo "no" >&6; }
12183
# Use C for the default configuration in the libtool script
12187
ac_cpp='$CPP $CPPFLAGS'
12188
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12189
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12190
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12193
# Source file extension for C test sources.
12196
# Object file extension for compiled C test sources.
12200
# Code to be used in simple compile tests
12201
lt_simple_compile_test_code="int some_variable = 0;"
12203
# Code to be used in simple link tests
12204
lt_simple_link_test_code='int main(){return(0);}'
12212
# If no C compiler was specified, use CC.
12215
# If no C compiler flags were specified, use CFLAGS.
12216
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12218
# Allow CC to be a program name with arguments.
12221
# Save the default compiler, since it gets overwritten when the other
12222
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12223
compiler_DEFAULT=$CC
12225
# save warnings/boilerplate of simple test code
12226
ac_outfile=conftest.$ac_objext
12227
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12228
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12229
_lt_compiler_boilerplate=`cat conftest.err`
12232
ac_outfile=conftest.$ac_objext
12233
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12234
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12235
_lt_linker_boilerplate=`cat conftest.err`
12240
## There is no encapsulation within the following macros, do not change
12241
## the running order or otherwise move them around unless you know exactly
12242
## what you are doing...
12243
if test -n "$compiler"; then
12245
lt_prog_compiler_no_builtin_flag=
12247
if test "$GCC" = yes; then
12248
case $cc_basename in
12250
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12252
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12255
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12256
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12257
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12258
$as_echo_n "(cached) " >&6
12260
lt_cv_prog_compiler_rtti_exceptions=no
12261
ac_outfile=conftest.$ac_objext
12262
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12263
lt_compiler_flag="-fno-rtti -fno-exceptions"
12264
# Insert the option either (1) after the last *FLAGS variable, or
12265
# (2) before a word containing "conftest.", or (3) at the end.
12266
# Note that $ac_compile itself does not contain backslashes and begins
12267
# with a dollar sign (not a hyphen), so the echo should work correctly.
12268
# The option is referenced via a variable to avoid confusing sed.
12269
lt_compile=`echo "$ac_compile" | $SED \
12270
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12271
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12272
-e 's:$: $lt_compiler_flag:'`
12273
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12274
(eval "$lt_compile" 2>conftest.err)
12276
cat conftest.err >&5
12277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278
if (exit $ac_status) && test -s "$ac_outfile"; then
12279
# The compiler can only warn and ignore the option if not recognized
12280
# So say no if there are warnings other than the usual output.
12281
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12282
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12283
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12284
lt_cv_prog_compiler_rtti_exceptions=yes
12290
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12291
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12293
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12294
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12306
lt_prog_compiler_wl=
12307
lt_prog_compiler_pic=
12308
lt_prog_compiler_static=
12311
if test "$GCC" = yes; then
12312
lt_prog_compiler_wl='-Wl,'
12313
lt_prog_compiler_static='-static'
12317
# All AIX code is PIC.
12318
if test "$host_cpu" = ia64; then
12319
# AIX 5 now supports IA64 processor
12320
lt_prog_compiler_static='-Bstatic'
12327
# see comment about AmigaOS4 .so support
12328
lt_prog_compiler_pic='-fPIC'
12331
# FIXME: we need at least 68020 code to build shared libraries, but
12332
# adding the `-m68020' flag to GCC prevents building anything better,
12334
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12339
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12340
# PIC is the default for these OSes.
12343
mingw* | cygwin* | pw32* | os2* | cegcc*)
12344
# This hack is so that the source file can tell whether it is being
12345
# built for inclusion in a dll (and should export symbols for example).
12346
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12347
# (--disable-auto-import) libraries
12348
lt_prog_compiler_pic='-DDLL_EXPORT'
12351
darwin* | rhapsody*)
12352
# PIC is the default on this platform
12353
# Common symbols not allowed in MH_DYLIB files
12354
lt_prog_compiler_pic='-fno-common'
12358
# PIC is the default for Haiku.
12359
# The "-static" flag exists, but is broken.
12360
lt_prog_compiler_static=
12364
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12365
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12366
# sets the default TLS model and affects inlining.
12372
lt_prog_compiler_pic='-fPIC'
12378
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12379
# Instead, we relocate shared libraries at runtime.
12383
# Just because we use GCC doesn't mean we suddenly get shared libraries
12384
# on systems that don't support them.
12385
lt_prog_compiler_can_build_shared=no
12390
# QNX uses GNU C++, but need to define -shared option too, otherwise
12391
# it will coredump.
12392
lt_prog_compiler_pic='-fPIC -shared'
12396
if test -d /usr/nec; then
12397
lt_prog_compiler_pic=-Kconform_pic
12402
lt_prog_compiler_pic='-fPIC'
12406
case $cc_basename in
12407
nvcc*) # Cuda Compiler Driver 2.2
12408
lt_prog_compiler_wl='-Xlinker '
12409
if test -n "$lt_prog_compiler_pic"; then
12410
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12415
# PORTME Check for flag to pass linker flags through the system compiler.
12418
lt_prog_compiler_wl='-Wl,'
12419
if test "$host_cpu" = ia64; then
12420
# AIX 5 now supports IA64 processor
12421
lt_prog_compiler_static='-Bstatic'
12423
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12427
mingw* | cygwin* | pw32* | os2* | cegcc*)
12428
# This hack is so that the source file can tell whether it is being
12429
# built for inclusion in a dll (and should export symbols for example).
12430
lt_prog_compiler_pic='-DDLL_EXPORT'
12433
hpux9* | hpux10* | hpux11*)
12434
lt_prog_compiler_wl='-Wl,'
12435
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12436
# not for PA HP-UX.
12442
lt_prog_compiler_pic='+Z'
12445
# Is there a better lt_prog_compiler_static that works with the bundled CC?
12446
lt_prog_compiler_static='${wl}-a ${wl}archive'
12449
irix5* | irix6* | nonstopux*)
12450
lt_prog_compiler_wl='-Wl,'
12451
# PIC (with -KPIC) is the default.
12452
lt_prog_compiler_static='-non_shared'
12455
linux* | k*bsd*-gnu | kopensolaris*-gnu)
12456
case $cc_basename in
12457
# old Intel for x86_64 which still supported -KPIC.
12459
lt_prog_compiler_wl='-Wl,'
12460
lt_prog_compiler_pic='-KPIC'
12461
lt_prog_compiler_static='-static'
12463
# icc used to be incompatible with GCC.
12464
# ICC 10 doesn't accept -KPIC any more.
12466
lt_prog_compiler_wl='-Wl,'
12467
lt_prog_compiler_pic='-fPIC'
12468
lt_prog_compiler_static='-static'
12470
# Lahey Fortran 8.1.
12472
lt_prog_compiler_wl='-Wl,'
12473
lt_prog_compiler_pic='--shared'
12474
lt_prog_compiler_static='--static'
12477
# NAG Fortran compiler
12478
lt_prog_compiler_wl='-Wl,-Wl,,'
12479
lt_prog_compiler_pic='-PIC'
12480
lt_prog_compiler_static='-Bstatic'
12482
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12483
# Portland Group compilers (*not* the Pentium gcc compiler,
12484
# which looks to be a dead project)
12485
lt_prog_compiler_wl='-Wl,'
12486
lt_prog_compiler_pic='-fpic'
12487
lt_prog_compiler_static='-Bstatic'
12490
lt_prog_compiler_wl='-Wl,'
12491
# All Alpha code is PIC.
12492
lt_prog_compiler_static='-non_shared'
12494
xl* | bgxl* | bgf* | mpixl*)
12495
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12496
lt_prog_compiler_wl='-Wl,'
12497
lt_prog_compiler_pic='-qpic'
12498
lt_prog_compiler_static='-qstaticlink'
12501
case `$CC -V 2>&1 | sed 5q` in
12502
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12503
# Sun Fortran 8.3 passes all unrecognized flags to the linker
12504
lt_prog_compiler_pic='-KPIC'
12505
lt_prog_compiler_static='-Bstatic'
12506
lt_prog_compiler_wl=''
12508
*Sun\ F* | *Sun*Fortran*)
12509
lt_prog_compiler_pic='-KPIC'
12510
lt_prog_compiler_static='-Bstatic'
12511
lt_prog_compiler_wl='-Qoption ld '
12515
lt_prog_compiler_pic='-KPIC'
12516
lt_prog_compiler_static='-Bstatic'
12517
lt_prog_compiler_wl='-Wl,'
12519
*Intel*\ [CF]*Compiler*)
12520
lt_prog_compiler_wl='-Wl,'
12521
lt_prog_compiler_pic='-fPIC'
12522
lt_prog_compiler_static='-static'
12525
lt_prog_compiler_wl='-Wl,'
12526
lt_prog_compiler_pic='-fpic'
12527
lt_prog_compiler_static='-Bstatic'
12535
lt_prog_compiler_pic='-KPIC'
12536
lt_prog_compiler_static='-Bstatic'
12540
# QNX uses GNU C++, but need to define -shared option too, otherwise
12541
# it will coredump.
12542
lt_prog_compiler_pic='-fPIC -shared'
12545
osf3* | osf4* | osf5*)
12546
lt_prog_compiler_wl='-Wl,'
12547
# All OSF/1 code is PIC.
12548
lt_prog_compiler_static='-non_shared'
12552
lt_prog_compiler_static='-non_shared'
12556
lt_prog_compiler_pic='-KPIC'
12557
lt_prog_compiler_static='-Bstatic'
12558
case $cc_basename in
12559
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12560
lt_prog_compiler_wl='-Qoption ld ';;
12562
lt_prog_compiler_wl='-Wl,';;
12567
lt_prog_compiler_wl='-Qoption ld '
12568
lt_prog_compiler_pic='-PIC'
12569
lt_prog_compiler_static='-Bstatic'
12572
sysv4 | sysv4.2uw2* | sysv4.3*)
12573
lt_prog_compiler_wl='-Wl,'
12574
lt_prog_compiler_pic='-KPIC'
12575
lt_prog_compiler_static='-Bstatic'
12579
if test -d /usr/nec ;then
12580
lt_prog_compiler_pic='-Kconform_pic'
12581
lt_prog_compiler_static='-Bstatic'
12585
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12586
lt_prog_compiler_wl='-Wl,'
12587
lt_prog_compiler_pic='-KPIC'
12588
lt_prog_compiler_static='-Bstatic'
12592
lt_prog_compiler_wl='-Wl,'
12593
lt_prog_compiler_can_build_shared=no
12597
lt_prog_compiler_pic='-pic'
12598
lt_prog_compiler_static='-Bstatic'
12602
lt_prog_compiler_can_build_shared=no
12608
# For platforms which do not support PIC, -DPIC is meaningless:
12610
lt_prog_compiler_pic=
12613
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12618
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12619
if ${lt_cv_prog_compiler_pic+:} false; then :
12620
$as_echo_n "(cached) " >&6
12622
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12625
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12626
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12629
# Check to make sure the PIC flag actually works.
12631
if test -n "$lt_prog_compiler_pic"; then
12632
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12633
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12634
if ${lt_cv_prog_compiler_pic_works+:} false; then :
12635
$as_echo_n "(cached) " >&6
12637
lt_cv_prog_compiler_pic_works=no
12638
ac_outfile=conftest.$ac_objext
12639
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12640
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12641
# Insert the option either (1) after the last *FLAGS variable, or
12642
# (2) before a word containing "conftest.", or (3) at the end.
12643
# Note that $ac_compile itself does not contain backslashes and begins
12644
# with a dollar sign (not a hyphen), so the echo should work correctly.
12645
# The option is referenced via a variable to avoid confusing sed.
12646
lt_compile=`echo "$ac_compile" | $SED \
12647
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12648
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12649
-e 's:$: $lt_compiler_flag:'`
12650
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12651
(eval "$lt_compile" 2>conftest.err)
12653
cat conftest.err >&5
12654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655
if (exit $ac_status) && test -s "$ac_outfile"; then
12656
# The compiler can only warn and ignore the option if not recognized
12657
# So say no if there are warnings other than the usual output.
12658
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12659
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12660
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12661
lt_cv_prog_compiler_pic_works=yes
12667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12668
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12670
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12671
case $lt_prog_compiler_pic in
12673
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12676
lt_prog_compiler_pic=
12677
lt_prog_compiler_can_build_shared=no
12693
# Check to make sure the static flag actually works.
12695
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12696
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12697
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12698
if ${lt_cv_prog_compiler_static_works+:} false; then :
12699
$as_echo_n "(cached) " >&6
12701
lt_cv_prog_compiler_static_works=no
12702
save_LDFLAGS="$LDFLAGS"
12703
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12704
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12705
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12706
# The linker can only warn and ignore the option if not recognized
12707
# So say no if there are warnings
12708
if test -s conftest.err; then
12709
# Append any errors to the config.log.
12710
cat conftest.err 1>&5
12711
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12712
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12713
if diff conftest.exp conftest.er2 >/dev/null; then
12714
lt_cv_prog_compiler_static_works=yes
12717
lt_cv_prog_compiler_static_works=yes
12721
LDFLAGS="$save_LDFLAGS"
12724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12725
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12727
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12730
lt_prog_compiler_static=
12739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12740
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12741
if ${lt_cv_prog_compiler_c_o+:} false; then :
12742
$as_echo_n "(cached) " >&6
12744
lt_cv_prog_compiler_c_o=no
12745
$RM -r conftest 2>/dev/null
12749
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12751
lt_compiler_flag="-o out/conftest2.$ac_objext"
12752
# Insert the option either (1) after the last *FLAGS variable, or
12753
# (2) before a word containing "conftest.", or (3) at the end.
12754
# Note that $ac_compile itself does not contain backslashes and begins
12755
# with a dollar sign (not a hyphen), so the echo should work correctly.
12756
lt_compile=`echo "$ac_compile" | $SED \
12757
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12758
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12759
-e 's:$: $lt_compiler_flag:'`
12760
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12761
(eval "$lt_compile" 2>out/conftest.err)
12763
cat out/conftest.err >&5
12764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12767
# The compiler can only warn and ignore the option if not recognized
12768
# So say no if there are warnings
12769
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12770
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12771
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12772
lt_cv_prog_compiler_c_o=yes
12777
# SGI C++ compiler will create directory out/ii_files/ for
12778
# template instantiation
12779
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12780
$RM out/* && rmdir out
12786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12787
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12795
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12796
if ${lt_cv_prog_compiler_c_o+:} false; then :
12797
$as_echo_n "(cached) " >&6
12799
lt_cv_prog_compiler_c_o=no
12800
$RM -r conftest 2>/dev/null
12804
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12806
lt_compiler_flag="-o out/conftest2.$ac_objext"
12807
# Insert the option either (1) after the last *FLAGS variable, or
12808
# (2) before a word containing "conftest.", or (3) at the end.
12809
# Note that $ac_compile itself does not contain backslashes and begins
12810
# with a dollar sign (not a hyphen), so the echo should work correctly.
12811
lt_compile=`echo "$ac_compile" | $SED \
12812
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12813
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12814
-e 's:$: $lt_compiler_flag:'`
12815
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12816
(eval "$lt_compile" 2>out/conftest.err)
12818
cat out/conftest.err >&5
12819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12822
# The compiler can only warn and ignore the option if not recognized
12823
# So say no if there are warnings
12824
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12825
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12826
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12827
lt_cv_prog_compiler_c_o=yes
12832
# SGI C++ compiler will create directory out/ii_files/ for
12833
# template instantiation
12834
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12835
$RM out/* && rmdir out
12841
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12842
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12847
hard_links="nottested"
12848
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12849
# do not overwrite the value of need_locks provided by the user
12850
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12851
$as_echo_n "checking if we can lock with hard links... " >&6; }
12854
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12856
ln conftest.a conftest.b 2>&5 || hard_links=no
12857
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12858
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12859
$as_echo "$hard_links" >&6; }
12860
if test "$hard_links" = no; then
12861
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12862
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12875
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12878
allow_undefined_flag=
12879
always_export_symbols=no
12881
archive_expsym_cmds=
12882
compiler_needs_object=no
12883
enable_shared_with_static_runtimes=no
12884
export_dynamic_flag_spec=
12885
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12886
hardcode_automatic=no
12888
hardcode_direct_absolute=no
12889
hardcode_libdir_flag_spec=
12890
hardcode_libdir_separator=
12891
hardcode_minus_L=no
12892
hardcode_shlibpath_var=unsupported
12894
link_all_deplibs=unknown
12896
module_expsym_cmds=
12897
old_archive_from_new_cmds=
12898
old_archive_from_expsyms_cmds=
12899
thread_safe_flag_spec=
12900
whole_archive_flag_spec=
12901
# include_expsyms should be a list of space-separated symbols to be *always*
12902
# included in the symbol list
12904
# exclude_expsyms can be an extended regexp of symbols to exclude
12905
# it will be wrapped by ` (' and `)$', so one must not match beginning or
12906
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12907
# as well as any symbol that contains `d'.
12908
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12909
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12910
# platforms (ab)use it in PIC code, but their linkers get confused if
12911
# the symbol is explicitly referenced. Since portable code cannot
12912
# rely on this symbol name, it's probably fine to never include it in
12913
# preloaded symbol tables.
12914
# Exclude shared library initialization/finalization symbols.
12915
extract_expsyms_cmds=
12918
cygwin* | mingw* | pw32* | cegcc*)
12919
# FIXME: the MSVC++ port hasn't been tested in a loooong time
12920
# When not using gcc, we currently assume that we are using
12921
# Microsoft Visual C++.
12922
if test "$GCC" != yes; then
12927
# we just hope/assume this is gcc and not c89 (= MSVC++)
12937
# On some targets, GNU ld is compatible enough with the native linker
12938
# that we're better off using the native interface for both.
12939
lt_use_gnu_ld_interface=no
12940
if test "$with_gnu_ld" = yes; then
12943
# The AIX port of GNU ld has always aspired to compatibility
12944
# with the native linker. However, as the warning in the GNU ld
12945
# block says, versions before 2.19.5* couldn't really create working
12946
# shared libraries, regardless of the interface used.
12947
case `$LD -v 2>&1` in
12948
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12949
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12950
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
12952
lt_use_gnu_ld_interface=yes
12957
lt_use_gnu_ld_interface=yes
12962
if test "$lt_use_gnu_ld_interface" = yes; then
12963
# If archive_cmds runs LD, not CC, wlarc should be empty
12966
# Set some defaults for GNU ld with shared library support. These
12967
# are reset later if shared libraries are not supported. Putting them
12968
# here allows them to be overridden if necessary.
12969
runpath_var=LD_RUN_PATH
12970
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12971
export_dynamic_flag_spec='${wl}--export-dynamic'
12972
# ancient GNU ld didn't support --whole-archive et. al.
12973
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12974
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12976
whole_archive_flag_spec=
12978
supports_anon_versioning=no
12979
case `$LD -v 2>&1` in
12980
*GNU\ gold*) supports_anon_versioning=yes ;;
12981
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12982
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12983
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12984
*\ 2.11.*) ;; # other 2.11 versions
12985
*) supports_anon_versioning=yes ;;
12988
# See if GNU ld supports shared libraries.
12991
# On AIX/PPC, the GNU linker is very broken
12992
if test "$host_cpu" != ia64; then
12996
*** Warning: the GNU linker, at least up to release 2.19, is reported
12997
*** to be unable to reliably create shared libraries on AIX.
12998
*** Therefore, libtool is disabling shared libraries support. If you
12999
*** really care for shared libraries, you may want to install binutils
13000
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13001
*** You will then need to restart the configuration process.
13010
# see comment about AmigaOS4 .so support
13011
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13012
archive_expsym_cmds=''
13015
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)'
13016
hardcode_libdir_flag_spec='-L$libdir'
13017
hardcode_minus_L=yes
13023
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13024
allow_undefined_flag=unsupported
13025
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13026
# support --undefined. This deserves some investigation. FIXME
13027
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13033
cygwin* | mingw* | pw32* | cegcc*)
13034
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13035
# as there is no search path for DLLs.
13036
hardcode_libdir_flag_spec='-L$libdir'
13037
export_dynamic_flag_spec='${wl}--export-all-symbols'
13038
allow_undefined_flag=unsupported
13039
always_export_symbols=no
13040
enable_shared_with_static_runtimes=yes
13041
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'
13042
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13044
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13045
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13046
# If the export-symbols file already is a .def file (1st line
13047
# is EXPORTS), use it as is; otherwise, prepend...
13048
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13049
cp $export_symbols $output_objdir/$soname.def;
13051
echo EXPORTS > $output_objdir/$soname.def;
13052
cat $export_symbols >> $output_objdir/$soname.def;
13054
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13061
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13062
link_all_deplibs=yes
13067
hardcode_shlibpath_var=no
13068
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13069
export_dynamic_flag_spec='${wl}-E'
13070
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13071
# Instead, shared libraries are loaded at an image base (0x10000000 by
13072
# default) and relocated if they conflict, which is a slow very memory
13073
# consuming and fragmenting process. To avoid this, we pick a random,
13074
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13075
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13076
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13077
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'
13080
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13082
if test "$host_os" = linux-dietlibc; then
13083
case $cc_basename in
13084
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13087
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13088
&& test "$tmp_diet" = no
13090
tmp_addflag=' $pic_flag'
13091
tmp_sharedflag='-shared'
13092
case $cc_basename,$host_cpu in
13093
pgcc*) # Portland Group C compiler
13094
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'
13095
tmp_addflag=' $pic_flag'
13097
pgf77* | pgf90* | pgf95* | pgfortran*)
13098
# Portland Group f77 and f90 compilers
13099
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'
13100
tmp_addflag=' $pic_flag -Mnomain' ;;
13101
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13102
tmp_addflag=' -i_dynamic' ;;
13103
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13104
tmp_addflag=' -i_dynamic -nofor_main' ;;
13105
ifc* | ifort*) # Intel Fortran compiler
13106
tmp_addflag=' -nofor_main' ;;
13107
lf95*) # Lahey Fortran 8.1
13108
whole_archive_flag_spec=
13109
tmp_sharedflag='--shared' ;;
13110
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13111
tmp_sharedflag='-qmkshrobj'
13113
nvcc*) # Cuda Compiler Driver 2.2
13114
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'
13115
compiler_needs_object=yes
13118
case `$CC -V 2>&1 | sed 5q` in
13119
*Sun\ C*) # Sun C 5.9
13120
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'
13121
compiler_needs_object=yes
13122
tmp_sharedflag='-G' ;;
13123
*Sun\ F*) # Sun Fortran 8.3
13124
tmp_sharedflag='-G' ;;
13126
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13128
if test "x$supports_anon_versioning" = xyes; then
13129
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13130
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13131
echo "local: *; };" >> $output_objdir/$libname.ver~
13132
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13135
case $cc_basename in
13136
xlf* | bgf* | bgxlf* | mpixlf*)
13137
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13138
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13139
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13140
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13141
if test "x$supports_anon_versioning" = xyes; then
13142
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13143
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13144
echo "local: *; };" >> $output_objdir/$libname.ver~
13145
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13155
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13156
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13159
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13160
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13165
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13169
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13170
*** create shared libraries on Solaris systems. Therefore, libtool
13171
*** is disabling shared libraries support. We urge you to upgrade GNU
13172
*** binutils to release 2.9.1 or newer. Another option is to modify
13173
*** your PATH or compiler configuration so that the native linker is
13174
*** used, and then restart.
13177
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13178
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13179
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13185
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13186
case `$LD -v 2>&1` in
13187
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13191
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13192
*** reliably create shared libraries on SCO systems. Therefore, libtool
13193
*** is disabling shared libraries support. We urge you to upgrade GNU
13194
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13195
*** your PATH or compiler configuration so that the native linker is
13196
*** used, and then restart.
13201
# For security reasons, it is highly recommended that you always
13202
# use absolute paths for naming shared libraries, and exclude the
13203
# DT_RUNPATH tag from executables and libraries. But doing so
13204
# requires that you compile everything twice, which is a pain.
13205
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13206
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13207
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13208
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13217
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13219
hardcode_direct=yes
13220
hardcode_shlibpath_var=no
13224
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13225
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13226
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13233
if test "$ld_shlibs" = no; then
13235
hardcode_libdir_flag_spec=
13236
export_dynamic_flag_spec=
13237
whole_archive_flag_spec=
13240
# PORTME fill in a description of your system's linker (not GNU ld)
13243
allow_undefined_flag=unsupported
13244
always_export_symbols=yes
13245
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'
13246
# Note: this linker hardcodes the directories in LIBPATH if there
13247
# are no directories specified by -L.
13248
hardcode_minus_L=yes
13249
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13250
# Neither direct hardcoding nor static linking is supported with a
13252
hardcode_direct=unsupported
13257
if test "$host_cpu" = ia64; then
13258
# On IA64, the linker does run time linking by default, so we don't
13259
# have to do anything special.
13260
aix_use_runtimelinking=no
13261
exp_sym_flag='-Bexport'
13264
# If we're using GNU nm, then we don't want the "-C" option.
13265
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13266
# Also, AIX nm treats weak defined symbols like other global
13267
# defined symbols, whereas GNU nm marks them as "W".
13268
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13269
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'
13271
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'
13273
aix_use_runtimelinking=no
13275
# Test if we are trying to use run time linking or normal
13276
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13277
# need to do runtime linking.
13278
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13279
for ld_flag in $LDFLAGS; do
13280
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13281
aix_use_runtimelinking=yes
13288
exp_sym_flag='-bexport'
13289
no_entry_flag='-bnoentry'
13292
# When large executables or shared objects are built, AIX ld can
13293
# have problems creating the table of contents. If linking a library
13294
# or program results in "error TOC overflow" add -mminimal-toc to
13295
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13296
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13299
hardcode_direct=yes
13300
hardcode_direct_absolute=yes
13301
hardcode_libdir_separator=':'
13302
link_all_deplibs=yes
13303
file_list_spec='${wl}-f,'
13305
if test "$GCC" = yes; then
13306
case $host_os in aix4.[012]|aix4.[012].*)
13307
# We only want to do this on AIX 4.2 and lower, the check
13308
# below for broken collect2 doesn't work under 4.3+
13309
collect2name=`${CC} -print-prog-name=collect2`
13310
if test -f "$collect2name" &&
13311
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13313
# We have reworked collect2
13316
# We have old collect2
13317
hardcode_direct=unsupported
13318
# It fails to find uninstalled libraries when the uninstalled
13319
# path is not listed in the libpath. Setting hardcode_minus_L
13320
# to unsupported forces relinking
13321
hardcode_minus_L=yes
13322
hardcode_libdir_flag_spec='-L$libdir'
13323
hardcode_libdir_separator=
13327
shared_flag='-shared'
13328
if test "$aix_use_runtimelinking" = yes; then
13329
shared_flag="$shared_flag "'${wl}-G'
13333
if test "$host_cpu" = ia64; then
13334
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13335
# chokes on -Wl,-G. The following line is correct:
13338
if test "$aix_use_runtimelinking" = yes; then
13339
shared_flag='${wl}-G'
13341
shared_flag='${wl}-bM:SRE'
13346
export_dynamic_flag_spec='${wl}-bexpall'
13347
# It seems that -bexpall does not export symbols beginning with
13348
# underscore (_), so it is better to generate a list of symbols to export.
13349
always_export_symbols=yes
13350
if test "$aix_use_runtimelinking" = yes; then
13351
# Warning - without using the other runtime loading flags (-brtl),
13352
# -berok will link without error, but may produce a broken library.
13353
allow_undefined_flag='-berok'
13354
# Determine the default libpath from the value encoded in an
13355
# empty executable.
13356
if test "${lt_cv_aix_libpath+set}" = set; then
13357
aix_libpath=$lt_cv_aix_libpath
13359
if ${lt_cv_aix_libpath_+:} false; then :
13360
$as_echo_n "(cached) " >&6
13362
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13363
/* end confdefs.h. */
13373
if ac_fn_c_try_link "$LINENO"; then :
13375
lt_aix_libpath_sed='
13376
/Import File Strings/,/^$/ {
13378
s/^0 *\([^ ]*\) *$/\1/
13382
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13383
# Check for a 64-bit object if we didn't find anything.
13384
if test -z "$lt_cv_aix_libpath_"; then
13385
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13388
rm -f core conftest.err conftest.$ac_objext \
13389
conftest$ac_exeext conftest.$ac_ext
13390
if test -z "$lt_cv_aix_libpath_"; then
13391
lt_cv_aix_libpath_="/usr/lib:/lib"
13396
aix_libpath=$lt_cv_aix_libpath_
13399
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13400
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"
13402
if test "$host_cpu" = ia64; then
13403
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13404
allow_undefined_flag="-z nodefs"
13405
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"
13407
# Determine the default libpath from the value encoded in an
13408
# empty executable.
13409
if test "${lt_cv_aix_libpath+set}" = set; then
13410
aix_libpath=$lt_cv_aix_libpath
13412
if ${lt_cv_aix_libpath_+:} false; then :
13413
$as_echo_n "(cached) " >&6
13415
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13416
/* end confdefs.h. */
13426
if ac_fn_c_try_link "$LINENO"; then :
13428
lt_aix_libpath_sed='
13429
/Import File Strings/,/^$/ {
13431
s/^0 *\([^ ]*\) *$/\1/
13435
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13436
# Check for a 64-bit object if we didn't find anything.
13437
if test -z "$lt_cv_aix_libpath_"; then
13438
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13441
rm -f core conftest.err conftest.$ac_objext \
13442
conftest$ac_exeext conftest.$ac_ext
13443
if test -z "$lt_cv_aix_libpath_"; then
13444
lt_cv_aix_libpath_="/usr/lib:/lib"
13449
aix_libpath=$lt_cv_aix_libpath_
13452
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13453
# Warning - without using the other run time loading flags,
13454
# -berok will link without error, but may produce a broken library.
13455
no_undefined_flag=' ${wl}-bernotok'
13456
allow_undefined_flag=' ${wl}-berok'
13457
if test "$with_gnu_ld" = yes; then
13458
# We only use this code for GNU lds that support --whole-archive.
13459
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13461
# Exported symbols can be pulled into shared objects from archives
13462
whole_archive_flag_spec='$convenience'
13464
archive_cmds_need_lc=yes
13465
# This is similar to how AIX traditionally builds its shared libraries.
13466
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'
13474
# see comment about AmigaOS4 .so support
13475
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13476
archive_expsym_cmds=''
13479
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)'
13480
hardcode_libdir_flag_spec='-L$libdir'
13481
hardcode_minus_L=yes
13487
export_dynamic_flag_spec=-rdynamic
13490
cygwin* | mingw* | pw32* | cegcc*)
13491
# When not using gcc, we currently assume that we are using
13492
# Microsoft Visual C++.
13493
# hardcode_libdir_flag_spec is actually meaningless, as there is
13494
# no search path for DLLs.
13495
case $cc_basename in
13498
hardcode_libdir_flag_spec=' '
13499
allow_undefined_flag=unsupported
13500
always_export_symbols=yes
13502
# Tell ltmain to make .lib files, not .a files.
13504
# Tell ltmain to make .dll files, not .so files.
13506
# FIXME: Setting linknames here is a bad hack.
13507
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13508
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13509
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13511
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13513
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13515
# The linker will not automatically build a static lib if we build a DLL.
13516
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13517
enable_shared_with_static_runtimes=yes
13518
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13519
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13521
old_postinstall_cmds='chmod 644 $oldlib'
13522
postlink_cmds='lt_outputfile="@OUTPUT@"~
13523
lt_tool_outputfile="@TOOL_OUTPUT@"~
13524
case $lt_outputfile in
13527
lt_outputfile="$lt_outputfile.exe"
13528
lt_tool_outputfile="$lt_tool_outputfile.exe"
13531
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13532
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13533
$RM "$lt_outputfile.manifest";
13537
# Assume MSVC wrapper
13538
hardcode_libdir_flag_spec=' '
13539
allow_undefined_flag=unsupported
13540
# Tell ltmain to make .lib files, not .a files.
13542
# Tell ltmain to make .dll files, not .so files.
13544
# FIXME: Setting linknames here is a bad hack.
13545
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13546
# The linker will automatically build a .lib file if we build a DLL.
13547
old_archive_from_new_cmds='true'
13548
# FIXME: Should let the user specify the lib program.
13549
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13550
enable_shared_with_static_runtimes=yes
13555
darwin* | rhapsody*)
13558
archive_cmds_need_lc=no
13560
hardcode_automatic=yes
13561
hardcode_shlibpath_var=unsupported
13562
if test "$lt_cv_ld_force_load" = "yes"; then
13563
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\"`'
13566
whole_archive_flag_spec=''
13568
link_all_deplibs=yes
13569
allow_undefined_flag="$_lt_dar_allow_undefined"
13570
case $cc_basename in
13571
ifort*) _lt_dar_can_shared=yes ;;
13572
*) _lt_dar_can_shared=$GCC ;;
13574
if test "$_lt_dar_can_shared" = "yes"; then
13575
output_verbose_link_cmd=func_echo_all
13576
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13577
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13578
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}"
13579
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}"
13588
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13589
hardcode_libdir_flag_spec='-L$libdir'
13590
hardcode_shlibpath_var=no
13593
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13594
# support. Future versions do this automatically, but an explicit c++rt0.o
13595
# does not break anything, and helps significantly (at the cost of a little
13598
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13599
hardcode_libdir_flag_spec='-R$libdir'
13600
hardcode_direct=yes
13601
hardcode_shlibpath_var=no
13604
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
13606
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13607
hardcode_direct=yes
13608
hardcode_minus_L=yes
13609
hardcode_shlibpath_var=no
13612
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13613
freebsd* | dragonfly*)
13614
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13615
hardcode_libdir_flag_spec='-R$libdir'
13616
hardcode_direct=yes
13617
hardcode_shlibpath_var=no
13621
if test "$GCC" = yes; then
13622
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'
13624
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'
13626
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13627
hardcode_libdir_separator=:
13628
hardcode_direct=yes
13630
# hardcode_minus_L: Not really in the search PATH,
13631
# but as the default location of the library.
13632
hardcode_minus_L=yes
13633
export_dynamic_flag_spec='${wl}-E'
13637
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13638
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13640
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13642
if test "$with_gnu_ld" = no; then
13643
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13644
hardcode_libdir_separator=:
13645
hardcode_direct=yes
13646
hardcode_direct_absolute=yes
13647
export_dynamic_flag_spec='${wl}-E'
13648
# hardcode_minus_L: Not really in the search PATH,
13649
# but as the default location of the library.
13650
hardcode_minus_L=yes
13655
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13658
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13661
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13664
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13670
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13673
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13677
# Older versions of the 11.00 compiler do not understand -b yet
13678
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13680
$as_echo_n "checking if $CC understands -b... " >&6; }
13681
if ${lt_cv_prog_compiler__b+:} false; then :
13682
$as_echo_n "(cached) " >&6
13684
lt_cv_prog_compiler__b=no
13685
save_LDFLAGS="$LDFLAGS"
13686
LDFLAGS="$LDFLAGS -b"
13687
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13688
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13689
# The linker can only warn and ignore the option if not recognized
13690
# So say no if there are warnings
13691
if test -s conftest.err; then
13692
# Append any errors to the config.log.
13693
cat conftest.err 1>&5
13694
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13695
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13696
if diff conftest.exp conftest.er2 >/dev/null; then
13697
lt_cv_prog_compiler__b=yes
13700
lt_cv_prog_compiler__b=yes
13704
LDFLAGS="$save_LDFLAGS"
13707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13708
$as_echo "$lt_cv_prog_compiler__b" >&6; }
13710
if test x"$lt_cv_prog_compiler__b" = xyes; then
13711
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13713
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13719
if test "$with_gnu_ld" = no; then
13720
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13721
hardcode_libdir_separator=:
13726
hardcode_shlibpath_var=no
13729
hardcode_direct=yes
13730
hardcode_direct_absolute=yes
13731
export_dynamic_flag_spec='${wl}-E'
13733
# hardcode_minus_L: Not really in the search PATH,
13734
# but as the default location of the library.
13735
hardcode_minus_L=yes
13741
irix5* | irix6* | nonstopux*)
13742
if test "$GCC" = yes; then
13743
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'
13744
# Try to use the -exported_symbol ld option, if it does not
13745
# work, assume that -exports_file does not work either and
13746
# implicitly export all symbols.
13747
# This should be the same for all languages, so no per-tag cache variable.
13748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13749
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13750
if ${lt_cv_irix_exported_symbol+:} false; then :
13751
$as_echo_n "(cached) " >&6
13753
save_LDFLAGS="$LDFLAGS"
13754
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13755
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756
/* end confdefs.h. */
13757
int foo (void) { return 0; }
13759
if ac_fn_c_try_link "$LINENO"; then :
13760
lt_cv_irix_exported_symbol=yes
13762
lt_cv_irix_exported_symbol=no
13764
rm -f core conftest.err conftest.$ac_objext \
13765
conftest$ac_exeext conftest.$ac_ext
13766
LDFLAGS="$save_LDFLAGS"
13768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13769
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13770
if test "$lt_cv_irix_exported_symbol" = yes; then
13771
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'
13774
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'
13775
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'
13777
archive_cmds_need_lc='no'
13778
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13779
hardcode_libdir_separator=:
13781
link_all_deplibs=yes
13785
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13786
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13788
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13790
hardcode_libdir_flag_spec='-R$libdir'
13791
hardcode_direct=yes
13792
hardcode_shlibpath_var=no
13796
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13797
hardcode_direct=yes
13798
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13799
hardcode_libdir_separator=:
13800
hardcode_shlibpath_var=no
13807
if test -f /usr/libexec/ld.so; then
13808
hardcode_direct=yes
13809
hardcode_shlibpath_var=no
13810
hardcode_direct_absolute=yes
13811
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13812
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13813
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13814
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13815
export_dynamic_flag_spec='${wl}-E'
13818
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13819
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13820
hardcode_libdir_flag_spec='-R$libdir'
13823
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13824
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13834
hardcode_libdir_flag_spec='-L$libdir'
13835
hardcode_minus_L=yes
13836
allow_undefined_flag=unsupported
13837
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'
13838
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13842
if test "$GCC" = yes; then
13843
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13844
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'
13846
allow_undefined_flag=' -expect_unresolved \*'
13847
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'
13849
archive_cmds_need_lc='no'
13850
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13851
hardcode_libdir_separator=:
13854
osf4* | osf5*) # as osf3* with the addition of -msym flag
13855
if test "$GCC" = yes; then
13856
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13857
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'
13858
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13860
allow_undefined_flag=' -expect_unresolved \*'
13861
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'
13862
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~
13863
$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'
13865
# Both c and cxx compiler support -rpath directly
13866
hardcode_libdir_flag_spec='-rpath $libdir'
13868
archive_cmds_need_lc='no'
13869
hardcode_libdir_separator=:
13873
no_undefined_flag=' -z defs'
13874
if test "$GCC" = yes; then
13876
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13877
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13878
$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'
13880
case `$CC -V 2>&1` in
13883
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13884
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13885
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13889
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13890
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13891
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13895
hardcode_libdir_flag_spec='-R$libdir'
13896
hardcode_shlibpath_var=no
13898
solaris2.[0-5] | solaris2.[0-5].*) ;;
13900
# The compiler driver will combine and reorder linker options,
13901
# but understands `-z linker_flag'. GCC discards it without `$wl',
13902
# but is careful enough not to reorder.
13903
# Supported since Solaris 2.6 (maybe 2.5.1?)
13904
if test "$GCC" = yes; then
13905
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13907
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13911
link_all_deplibs=yes
13915
if test "x$host_vendor" = xsequent; then
13916
# Use $CC to link under sequent, because it throws in some extra .o
13917
# files that make .init and .fini sections work.
13918
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13920
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13922
hardcode_libdir_flag_spec='-L$libdir'
13923
hardcode_direct=yes
13924
hardcode_minus_L=yes
13925
hardcode_shlibpath_var=no
13929
case $host_vendor in
13931
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13932
hardcode_direct=yes # is this really true???
13935
## LD is ld it makes a PLAMLIB
13936
## CC just makes a GrossModule.
13937
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13938
reload_cmds='$CC -r -o $output$reload_objs'
13942
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13943
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13946
runpath_var='LD_RUN_PATH'
13947
hardcode_shlibpath_var=no
13951
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13952
hardcode_shlibpath_var=no
13953
export_dynamic_flag_spec='-Bexport'
13957
if test -d /usr/nec; then
13958
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13959
hardcode_shlibpath_var=no
13960
runpath_var=LD_RUN_PATH
13961
hardcode_runpath_var=yes
13966
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13967
no_undefined_flag='${wl}-z,text'
13968
archive_cmds_need_lc=no
13969
hardcode_shlibpath_var=no
13970
runpath_var='LD_RUN_PATH'
13972
if test "$GCC" = yes; then
13973
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13974
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13976
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13977
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13981
sysv5* | sco3.2v5* | sco5v6*)
13982
# Note: We can NOT use -z defs as we might desire, because we do not
13983
# link with -lc, and that would cause any symbols used from libc to
13984
# always be unresolved, which means just about no library would
13985
# ever link correctly. If we're not using GNU ld we use -z text
13986
# though, which does catch some bad symbols but isn't as heavy-handed
13988
no_undefined_flag='${wl}-z,text'
13989
allow_undefined_flag='${wl}-z,nodefs'
13990
archive_cmds_need_lc=no
13991
hardcode_shlibpath_var=no
13992
hardcode_libdir_flag_spec='${wl}-R,$libdir'
13993
hardcode_libdir_separator=':'
13994
link_all_deplibs=yes
13995
export_dynamic_flag_spec='${wl}-Bexport'
13996
runpath_var='LD_RUN_PATH'
13998
if test "$GCC" = yes; then
13999
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14000
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14002
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14003
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14008
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14009
hardcode_libdir_flag_spec='-L$libdir'
14010
hardcode_shlibpath_var=no
14018
if test x$host_vendor = xsni; then
14020
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14021
export_dynamic_flag_spec='${wl}-Blargedynsym'
14027
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14028
$as_echo "$ld_shlibs" >&6; }
14029
test "$ld_shlibs" = no && can_build_shared=no
14031
with_gnu_ld=$with_gnu_ld
14048
# Do we need to explicitly link libc?
14050
case "x$archive_cmds_need_lc" in
14052
# Assume -lc should be added
14053
archive_cmds_need_lc=yes
14055
if test "$enable_shared" = yes && test "$GCC" = yes; then
14056
case $archive_cmds in
14058
# FIXME: we may have to deal with multi-command sequences.
14061
# Test whether the compiler implicitly links with -lc since on some
14062
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14063
# to ld, don't add -lc before -lgcc.
14064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14065
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14066
if ${lt_cv_archive_cmds_need_lc+:} false; then :
14067
$as_echo_n "(cached) " >&6
14070
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14072
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14073
(eval $ac_compile) 2>&5
14075
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14076
test $ac_status = 0; } 2>conftest.err; then
14079
libobjs=conftest.$ac_objext
14081
wl=$lt_prog_compiler_wl
14082
pic_flag=$lt_prog_compiler_pic
14088
lt_save_allow_undefined_flag=$allow_undefined_flag
14089
allow_undefined_flag=
14090
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14091
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14093
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14094
test $ac_status = 0; }
14096
lt_cv_archive_cmds_need_lc=no
14098
lt_cv_archive_cmds_need_lc=yes
14100
allow_undefined_flag=$lt_save_allow_undefined_flag
14102
cat conftest.err 1>&5
14107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14108
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14109
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14267
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14268
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14270
if test "$GCC" = yes; then
14272
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14273
*) lt_awk_arg="/^libraries:/" ;;
14276
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14277
*) lt_sed_strip_eq="s,=/,/,g" ;;
14279
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14280
case $lt_search_path_spec in
14282
# if the path contains ";" then we assume it to be the separator
14283
# otherwise default to the standard path separator (i.e. ":") - it is
14284
# assumed that no part of a normal pathname contains ";" but that should
14285
# okay in the real world where ";" in dirpaths is itself problematic.
14286
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14289
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14292
# Ok, now we have the path, separated by spaces, we can step through it
14293
# and add multilib dir if necessary.
14294
lt_tmp_lt_search_path_spec=
14295
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14296
for lt_sys_path in $lt_search_path_spec; do
14297
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14298
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14300
test -d "$lt_sys_path" && \
14301
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14304
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14305
BEGIN {RS=" "; FS="/|\n";} {
14308
for (lt_i = NF; lt_i > 0; lt_i--) {
14309
if ($lt_i != "" && $lt_i != ".") {
14310
if ($lt_i == "..") {
14313
if (lt_count == 0) {
14314
lt_foo="/" $lt_i lt_foo;
14321
if (lt_foo != "") { lt_freq[lt_foo]++; }
14322
if (lt_freq[lt_foo] == 1) { print lt_foo; }
14324
# AWK program above erroneously prepends '/' to C:/dos/paths
14327
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14328
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
14330
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14332
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14334
library_names_spec=
14335
libname_spec='lib$name'
14339
postuninstall_cmds=
14343
shlibpath_overrides_runpath=unknown
14345
dynamic_linker="$host_os ld.so"
14346
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14347
need_lib_prefix=unknown
14348
hardcode_into_libs=no
14350
# when you set need_version to no, make sure it does not cause -set_version
14351
# flags to be left without arguments
14352
need_version=unknown
14356
version_type=linux # correct to gnu/linux during the next big refactor
14357
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14358
shlibpath_var=LIBPATH
14360
# AIX 3 has no versioning support, so we append a major version to the name.
14361
soname_spec='${libname}${release}${shared_ext}$major'
14365
version_type=linux # correct to gnu/linux during the next big refactor
14368
hardcode_into_libs=yes
14369
if test "$host_cpu" = ia64; then
14370
# AIX 5 supports IA64
14371
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14372
shlibpath_var=LD_LIBRARY_PATH
14374
# With GCC up to 2.95.x, collect2 would create an import file
14375
# for dependence libraries. The import file would start with
14376
# the line `#! .'. This would cause the generated library to
14377
# depend on `.', always an invalid library. This was fixed in
14378
# development snapshots of GCC prior to 3.0.
14380
aix4 | aix4.[01] | aix4.[01].*)
14381
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14383
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14386
can_build_shared=no
14390
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14391
# soname into executable. Probably we can add versioning support to
14392
# collect2, so additional links can be useful in future.
14393
if test "$aix_use_runtimelinking" = yes; then
14394
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14395
# instead of lib<name>.a to let people know that these are not
14396
# typical AIX shared libraries.
14397
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14399
# We preserve .a as extension for shared libraries through AIX4.2
14400
# and later when we are not doing run time linking.
14401
library_names_spec='${libname}${release}.a $libname.a'
14402
soname_spec='${libname}${release}${shared_ext}$major'
14404
shlibpath_var=LIBPATH
14411
# Since July 2007 AmigaOS4 officially supports .so libraries.
14412
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14413
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14416
library_names_spec='$libname.ixlibrary $libname.a'
14417
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14418
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'
14424
library_names_spec='${libname}${shared_ext}'
14425
dynamic_linker="$host_os ld.so"
14426
shlibpath_var=LIBRARY_PATH
14430
version_type=linux # correct to gnu/linux during the next big refactor
14432
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14433
soname_spec='${libname}${release}${shared_ext}$major'
14434
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14435
shlibpath_var=LD_LIBRARY_PATH
14436
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14437
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14438
# the default ld.so.conf also contains /usr/contrib/lib and
14439
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14440
# libtool to hard-code these into programs
14443
cygwin* | mingw* | pw32* | cegcc*)
14444
version_type=windows
14449
case $GCC,$cc_basename in
14452
library_names_spec='$libname.dll.a'
14453
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14454
postinstall_cmds='base_file=`basename \${file}`~
14455
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14456
dldir=$destdir/`dirname \$dlpath`~
14457
test -d \$dldir || mkdir -p \$dldir~
14458
$install_prog $dir/$dlname \$dldir/$dlname~
14459
chmod a+x \$dldir/$dlname~
14460
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14461
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14463
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14464
dlpath=$dir/\$dldll~
14466
shlibpath_overrides_runpath=yes
14470
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14471
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14473
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14476
# MinGW DLLs use traditional 'lib' prefix
14477
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14480
# pw32 DLLs use 'pw' prefix rather than 'lib'
14481
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14484
dynamic_linker='Win32 ld.exe'
14489
libname_spec='$name'
14490
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14491
library_names_spec='${libname}.dll.lib'
14495
sys_lib_search_path_spec=
14498
for lt_path in $LIB
14501
# Let DOS variable expansion print the short 8.3 style file name.
14502
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14503
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14506
# Convert to MSYS style.
14507
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14510
# Convert to unix form, then to dos form, then back to unix form
14511
# but this time dos style (no spaces!) so that the unix form looks
14512
# like /cygdrive/c/PROGRA~1:/cygdr...
14513
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14514
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14515
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14518
sys_lib_search_path_spec="$LIB"
14519
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14520
# It is most probably a Windows format PATH.
14521
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14523
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14525
# FIXME: find the short name or the path components, as spaces are
14526
# common. (e.g. "Program Files" -> "PROGRA~1")
14530
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14531
postinstall_cmds='base_file=`basename \${file}`~
14532
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14533
dldir=$destdir/`dirname \$dlpath`~
14534
test -d \$dldir || mkdir -p \$dldir~
14535
$install_prog $dir/$dlname \$dldir/$dlname'
14536
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14537
dlpath=$dir/\$dldll~
14539
shlibpath_overrides_runpath=yes
14540
dynamic_linker='Win32 link.exe'
14544
# Assume MSVC wrapper
14545
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14546
dynamic_linker='Win32 ld.exe'
14549
# FIXME: first we should search . and the directory the executable is in
14553
darwin* | rhapsody*)
14554
dynamic_linker="$host_os dyld"
14555
version_type=darwin
14558
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14559
soname_spec='${libname}${release}${major}$shared_ext'
14560
shlibpath_overrides_runpath=yes
14561
shlibpath_var=DYLD_LIBRARY_PATH
14562
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14564
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14565
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14569
version_type=linux # correct to gnu/linux during the next big refactor
14572
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14573
soname_spec='${libname}${release}${shared_ext}$major'
14574
shlibpath_var=LD_LIBRARY_PATH
14577
freebsd* | dragonfly*)
14578
# DragonFly does not have aout. When/if they implement a new
14579
# versioning mechanism, adjust this.
14580
if test -x /usr/bin/objformat; then
14581
objformat=`/usr/bin/objformat`
14584
freebsd[23].*) objformat=aout ;;
14585
*) objformat=elf ;;
14588
version_type=freebsd-$objformat
14589
case $version_type in
14591
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14596
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14600
shlibpath_var=LD_LIBRARY_PATH
14603
shlibpath_overrides_runpath=yes
14605
freebsd3.[01]* | freebsdelf3.[01]*)
14606
shlibpath_overrides_runpath=yes
14607
hardcode_into_libs=yes
14609
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14610
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14611
shlibpath_overrides_runpath=no
14612
hardcode_into_libs=yes
14614
*) # from 4.6 on, and DragonFly
14615
shlibpath_overrides_runpath=yes
14616
hardcode_into_libs=yes
14622
version_type=linux # correct to gnu/linux during the next big refactor
14625
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14626
soname_spec='${libname}${release}${shared_ext}$major'
14627
shlibpath_var=LD_LIBRARY_PATH
14628
shlibpath_overrides_runpath=no
14629
hardcode_into_libs=yes
14633
version_type=linux # correct to gnu/linux during the next big refactor
14636
dynamic_linker="$host_os runtime_loader"
14637
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14638
soname_spec='${libname}${release}${shared_ext}$major'
14639
shlibpath_var=LIBRARY_PATH
14640
shlibpath_overrides_runpath=yes
14641
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14642
hardcode_into_libs=yes
14645
hpux9* | hpux10* | hpux11*)
14646
# Give a soname corresponding to the major version so that dld.sl refuses to
14647
# link against other versions.
14654
hardcode_into_libs=yes
14655
dynamic_linker="$host_os dld.so"
14656
shlibpath_var=LD_LIBRARY_PATH
14657
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14658
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14659
soname_spec='${libname}${release}${shared_ext}$major'
14660
if test "X$HPUX_IA64_MODE" = X32; then
14661
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14663
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14665
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14669
hardcode_into_libs=yes
14670
dynamic_linker="$host_os dld.sl"
14671
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14672
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14673
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14674
soname_spec='${libname}${release}${shared_ext}$major'
14675
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14676
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14680
dynamic_linker="$host_os dld.sl"
14681
shlibpath_var=SHLIB_PATH
14682
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14684
soname_spec='${libname}${release}${shared_ext}$major'
14687
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14688
postinstall_cmds='chmod 555 $lib'
14689
# or fails outright, so override atomically:
14690
install_override_mode=555
14694
version_type=linux # correct to gnu/linux during the next big refactor
14697
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14698
soname_spec='${libname}${release}${shared_ext}$major'
14699
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14700
shlibpath_var=LD_LIBRARY_PATH
14701
shlibpath_overrides_runpath=no
14702
hardcode_into_libs=yes
14705
irix5* | irix6* | nonstopux*)
14707
nonstopux*) version_type=nonstopux ;;
14709
if test "$lt_cv_prog_gnu_ld" = yes; then
14710
version_type=linux # correct to gnu/linux during the next big refactor
14717
soname_spec='${libname}${release}${shared_ext}$major'
14718
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14720
irix5* | nonstopux*)
14721
libsuff= shlibsuff=
14724
case $LD in # libtool.m4 will add one of these switches to LD
14725
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14726
libsuff= shlibsuff= libmagic=32-bit;;
14727
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14728
libsuff=32 shlibsuff=N32 libmagic=N32;;
14729
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14730
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14731
*) libsuff= shlibsuff= libmagic=never-match;;
14735
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14736
shlibpath_overrides_runpath=no
14737
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14738
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14739
hardcode_into_libs=yes
14742
# No shared lib support for Linux oldld, aout, or coff.
14743
linux*oldld* | linux*aout* | linux*coff*)
14747
# This must be glibc/ELF.
14748
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14749
version_type=linux # correct to gnu/linux during the next big refactor
14752
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14753
soname_spec='${libname}${release}${shared_ext}$major'
14754
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14755
shlibpath_var=LD_LIBRARY_PATH
14756
shlibpath_overrides_runpath=no
14758
# Some binutils ld are patched to set DT_RUNPATH
14759
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14760
$as_echo_n "(cached) " >&6
14762
lt_cv_shlibpath_overrides_runpath=no
14763
save_LDFLAGS=$LDFLAGS
14764
save_libdir=$libdir
14765
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14766
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14767
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768
/* end confdefs.h. */
14778
if ac_fn_c_try_link "$LINENO"; then :
14779
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14780
lt_cv_shlibpath_overrides_runpath=yes
14783
rm -f core conftest.err conftest.$ac_objext \
14784
conftest$ac_exeext conftest.$ac_ext
14785
LDFLAGS=$save_LDFLAGS
14786
libdir=$save_libdir
14790
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14792
# This implies no fast_install, which is unacceptable.
14793
# Some rework will be needed to allow for fast_install
14794
# before this can be enabled.
14795
hardcode_into_libs=yes
14797
# Add ABI-specific directories to the system library path.
14798
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14800
# Append ld.so.conf contents to the search path
14801
if test -f /etc/ld.so.conf; then
14802
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' ' '`
14803
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14807
# We used to test for /lib/ld.so.1 and disable shared libraries on
14808
# powerpc, because MkLinux only supported shared libraries with the
14809
# GNU dynamic linker. Since this was broken with cross compilers,
14810
# most powerpc-linux boxes support dynamic linking these days and
14811
# people can always --disable-shared, the test was removed, and we
14812
# assume the GNU/Linux dynamic linker is in use.
14813
dynamic_linker='GNU/Linux ld.so'
14820
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14821
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14822
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14823
dynamic_linker='NetBSD (a.out) ld.so'
14825
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14826
soname_spec='${libname}${release}${shared_ext}$major'
14827
dynamic_linker='NetBSD ld.elf_so'
14829
shlibpath_var=LD_LIBRARY_PATH
14830
shlibpath_overrides_runpath=yes
14831
hardcode_into_libs=yes
14835
version_type=linux # correct to gnu/linux during the next big refactor
14836
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14837
shlibpath_var=LD_LIBRARY_PATH
14838
shlibpath_overrides_runpath=yes
14845
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14846
soname_spec='${libname}${release}${shared_ext}$major'
14847
shlibpath_var=LD_LIBRARY_PATH
14848
shlibpath_overrides_runpath=no
14849
hardcode_into_libs=yes
14850
dynamic_linker='ldqnx.so'
14855
sys_lib_dlsearch_path_spec="/usr/lib"
14857
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14859
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14860
*) need_version=no ;;
14862
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14863
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14864
shlibpath_var=LD_LIBRARY_PATH
14865
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14867
openbsd2.[89] | openbsd2.[89].*)
14868
shlibpath_overrides_runpath=no
14871
shlibpath_overrides_runpath=yes
14875
shlibpath_overrides_runpath=yes
14880
libname_spec='$name'
14883
library_names_spec='$libname${shared_ext} $libname.a'
14884
dynamic_linker='OS/2 ld.exe'
14885
shlibpath_var=LIBPATH
14888
osf3* | osf4* | osf5*)
14892
soname_spec='${libname}${release}${shared_ext}$major'
14893
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14894
shlibpath_var=LD_LIBRARY_PATH
14895
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14896
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14904
version_type=linux # correct to gnu/linux during the next big refactor
14907
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908
soname_spec='${libname}${release}${shared_ext}$major'
14909
shlibpath_var=LD_LIBRARY_PATH
14910
shlibpath_overrides_runpath=yes
14911
hardcode_into_libs=yes
14912
# ldd complains unless libraries are executable
14913
postinstall_cmds='chmod +x $lib'
14918
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14919
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14920
shlibpath_var=LD_LIBRARY_PATH
14921
shlibpath_overrides_runpath=yes
14922
if test "$with_gnu_ld" = yes; then
14929
version_type=linux # correct to gnu/linux during the next big refactor
14930
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14931
soname_spec='${libname}${release}${shared_ext}$major'
14932
shlibpath_var=LD_LIBRARY_PATH
14933
case $host_vendor in
14935
shlibpath_overrides_runpath=no
14937
runpath_var=LD_RUN_PATH
14945
shlibpath_overrides_runpath=no
14946
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14952
if test -d /usr/nec ;then
14953
version_type=linux # correct to gnu/linux during the next big refactor
14954
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14955
soname_spec='$libname${shared_ext}.$major'
14956
shlibpath_var=LD_LIBRARY_PATH
14960
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14961
version_type=freebsd-elf
14964
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14965
soname_spec='${libname}${release}${shared_ext}$major'
14966
shlibpath_var=LD_LIBRARY_PATH
14967
shlibpath_overrides_runpath=yes
14968
hardcode_into_libs=yes
14969
if test "$with_gnu_ld" = yes; then
14970
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14972
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14975
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14979
sys_lib_dlsearch_path_spec='/usr/lib'
14983
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14984
version_type=linux # correct to gnu/linux during the next big refactor
14987
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988
shlibpath_var=LD_LIBRARY_PATH
14989
shlibpath_overrides_runpath=no
14990
hardcode_into_libs=yes
14994
version_type=linux # correct to gnu/linux during the next big refactor
14995
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996
soname_spec='${libname}${release}${shared_ext}$major'
14997
shlibpath_var=LD_LIBRARY_PATH
15004
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15005
$as_echo "$dynamic_linker" >&6; }
15006
test "$dynamic_linker" = no && can_build_shared=no
15008
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15009
if test "$GCC" = yes; then
15010
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15013
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15014
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15016
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15017
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15112
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15114
if test -n "$hardcode_libdir_flag_spec" ||
15115
test -n "$runpath_var" ||
15116
test "X$hardcode_automatic" = "Xyes" ; then
15118
# We can hardcode non-existent directories.
15119
if test "$hardcode_direct" != no &&
15120
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15121
# have to relink, otherwise we might link with an installed library
15122
# when we should be linking with a yet-to-be-installed one
15123
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15124
test "$hardcode_minus_L" != no; then
15125
# Linking always hardcodes the temporary library directory.
15126
hardcode_action=relink
15128
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15129
hardcode_action=immediate
15132
# We cannot hardcode anything, or else we can only hardcode existing
15134
hardcode_action=unsupported
15136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15137
$as_echo "$hardcode_action" >&6; }
15139
if test "$hardcode_action" = relink ||
15140
test "$inherit_rpath" = yes; then
15141
# Fast installation is not supported
15142
enable_fast_install=no
15143
elif test "$shlibpath_overrides_runpath" = yes ||
15144
test "$enable_shared" = no; then
15145
# Fast installation is not necessary
15146
enable_fast_install=needless
15154
if test "x$enable_dlopen" != xyes; then
15155
enable_dlopen=unknown
15156
enable_dlopen_self=unknown
15157
enable_dlopen_self_static=unknown
15164
lt_cv_dlopen="load_add_on"
15166
lt_cv_dlopen_self=yes
15169
mingw* | pw32* | cegcc*)
15170
lt_cv_dlopen="LoadLibrary"
15175
lt_cv_dlopen="dlopen"
15180
# if libdl is installed we need to link against it
15181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15182
$as_echo_n "checking for dlopen in -ldl... " >&6; }
15183
if ${ac_cv_lib_dl_dlopen+:} false; then :
15184
$as_echo_n "(cached) " >&6
15186
ac_check_lib_save_LIBS=$LIBS
15188
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189
/* end confdefs.h. */
15191
/* Override any GCC internal prototype to avoid an error.
15192
Use char because int might match the return type of a GCC
15193
builtin and then its argument prototype would still apply. */
15206
if ac_fn_c_try_link "$LINENO"; then :
15207
ac_cv_lib_dl_dlopen=yes
15209
ac_cv_lib_dl_dlopen=no
15211
rm -f core conftest.err conftest.$ac_objext \
15212
conftest$ac_exeext conftest.$ac_ext
15213
LIBS=$ac_check_lib_save_LIBS
15215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15216
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15217
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15218
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15221
lt_cv_dlopen="dyld"
15223
lt_cv_dlopen_self=yes
15230
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15231
if test "x$ac_cv_func_shl_load" = xyes; then :
15232
lt_cv_dlopen="shl_load"
15234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15235
$as_echo_n "checking for shl_load in -ldld... " >&6; }
15236
if ${ac_cv_lib_dld_shl_load+:} false; then :
15237
$as_echo_n "(cached) " >&6
15239
ac_check_lib_save_LIBS=$LIBS
15241
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15242
/* end confdefs.h. */
15244
/* Override any GCC internal prototype to avoid an error.
15245
Use char because int might match the return type of a GCC
15246
builtin and then its argument prototype would still apply. */
15254
return shl_load ();
15259
if ac_fn_c_try_link "$LINENO"; then :
15260
ac_cv_lib_dld_shl_load=yes
15262
ac_cv_lib_dld_shl_load=no
15264
rm -f core conftest.err conftest.$ac_objext \
15265
conftest$ac_exeext conftest.$ac_ext
15266
LIBS=$ac_check_lib_save_LIBS
15268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15269
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15270
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15271
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15273
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15274
if test "x$ac_cv_func_dlopen" = xyes; then :
15275
lt_cv_dlopen="dlopen"
15277
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15278
$as_echo_n "checking for dlopen in -ldl... " >&6; }
15279
if ${ac_cv_lib_dl_dlopen+:} false; then :
15280
$as_echo_n "(cached) " >&6
15282
ac_check_lib_save_LIBS=$LIBS
15284
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285
/* end confdefs.h. */
15287
/* Override any GCC internal prototype to avoid an error.
15288
Use char because int might match the return type of a GCC
15289
builtin and then its argument prototype would still apply. */
15302
if ac_fn_c_try_link "$LINENO"; then :
15303
ac_cv_lib_dl_dlopen=yes
15305
ac_cv_lib_dl_dlopen=no
15307
rm -f core conftest.err conftest.$ac_objext \
15308
conftest$ac_exeext conftest.$ac_ext
15309
LIBS=$ac_check_lib_save_LIBS
15311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15312
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15313
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15314
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15317
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15318
if ${ac_cv_lib_svld_dlopen+:} false; then :
15319
$as_echo_n "(cached) " >&6
15321
ac_check_lib_save_LIBS=$LIBS
15322
LIBS="-lsvld $LIBS"
15323
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15324
/* end confdefs.h. */
15326
/* Override any GCC internal prototype to avoid an error.
15327
Use char because int might match the return type of a GCC
15328
builtin and then its argument prototype would still apply. */
15341
if ac_fn_c_try_link "$LINENO"; then :
15342
ac_cv_lib_svld_dlopen=yes
15344
ac_cv_lib_svld_dlopen=no
15346
rm -f core conftest.err conftest.$ac_objext \
15347
conftest$ac_exeext conftest.$ac_ext
15348
LIBS=$ac_check_lib_save_LIBS
15350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15351
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15352
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15353
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15356
$as_echo_n "checking for dld_link in -ldld... " >&6; }
15357
if ${ac_cv_lib_dld_dld_link+:} false; then :
15358
$as_echo_n "(cached) " >&6
15360
ac_check_lib_save_LIBS=$LIBS
15362
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363
/* end confdefs.h. */
15365
/* Override any GCC internal prototype to avoid an error.
15366
Use char because int might match the return type of a GCC
15367
builtin and then its argument prototype would still apply. */
15375
return dld_link ();
15380
if ac_fn_c_try_link "$LINENO"; then :
15381
ac_cv_lib_dld_dld_link=yes
15383
ac_cv_lib_dld_dld_link=no
15385
rm -f core conftest.err conftest.$ac_objext \
15386
conftest$ac_exeext conftest.$ac_ext
15387
LIBS=$ac_check_lib_save_LIBS
15389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15390
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15391
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15392
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15413
if test "x$lt_cv_dlopen" != xno; then
15419
case $lt_cv_dlopen in
15421
save_CPPFLAGS="$CPPFLAGS"
15422
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15424
save_LDFLAGS="$LDFLAGS"
15425
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15428
LIBS="$lt_cv_dlopen_libs $LIBS"
15430
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15431
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15432
if ${lt_cv_dlopen_self+:} false; then :
15433
$as_echo_n "(cached) " >&6
15435
if test "$cross_compiling" = yes; then :
15436
lt_cv_dlopen_self=cross
15438
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15439
lt_status=$lt_dlunknown
15440
cat > conftest.$ac_ext <<_LT_EOF
15441
#line $LINENO "configure"
15442
#include "confdefs.h"
15451
# define LT_DLGLOBAL RTLD_GLOBAL
15454
# define LT_DLGLOBAL DL_GLOBAL
15456
# define LT_DLGLOBAL 0
15460
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15461
find out it does not work in some platform. */
15462
#ifndef LT_DLLAZY_OR_NOW
15464
# define LT_DLLAZY_OR_NOW RTLD_LAZY
15467
# define LT_DLLAZY_OR_NOW DL_LAZY
15470
# define LT_DLLAZY_OR_NOW RTLD_NOW
15473
# define LT_DLLAZY_OR_NOW DL_NOW
15475
# define LT_DLLAZY_OR_NOW 0
15482
/* When -fvisbility=hidden is used, assume the code has been annotated
15483
correspondingly for the symbols needed. */
15484
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15485
int fnord () __attribute__((visibility("default")));
15488
int fnord () { return 42; }
15491
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15492
int status = $lt_dlunknown;
15496
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15499
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15500
else puts (dlerror ());
15502
/* dlclose (self); */
15510
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15511
(eval $ac_link) 2>&5
15513
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15514
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15515
(./conftest; exit; ) >&5 2>/dev/null
15517
case x$lt_status in
15518
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15519
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15520
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15523
# compilation failed
15524
lt_cv_dlopen_self=no
15531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15532
$as_echo "$lt_cv_dlopen_self" >&6; }
15534
if test "x$lt_cv_dlopen_self" = xyes; then
15535
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15536
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15537
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15538
if ${lt_cv_dlopen_self_static+:} false; then :
15539
$as_echo_n "(cached) " >&6
15541
if test "$cross_compiling" = yes; then :
15542
lt_cv_dlopen_self_static=cross
15544
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15545
lt_status=$lt_dlunknown
15546
cat > conftest.$ac_ext <<_LT_EOF
15547
#line $LINENO "configure"
15548
#include "confdefs.h"
15557
# define LT_DLGLOBAL RTLD_GLOBAL
15560
# define LT_DLGLOBAL DL_GLOBAL
15562
# define LT_DLGLOBAL 0
15566
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15567
find out it does not work in some platform. */
15568
#ifndef LT_DLLAZY_OR_NOW
15570
# define LT_DLLAZY_OR_NOW RTLD_LAZY
15573
# define LT_DLLAZY_OR_NOW DL_LAZY
15576
# define LT_DLLAZY_OR_NOW RTLD_NOW
15579
# define LT_DLLAZY_OR_NOW DL_NOW
15581
# define LT_DLLAZY_OR_NOW 0
15588
/* When -fvisbility=hidden is used, assume the code has been annotated
15589
correspondingly for the symbols needed. */
15590
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15591
int fnord () __attribute__((visibility("default")));
15594
int fnord () { return 42; }
15597
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15598
int status = $lt_dlunknown;
15602
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15605
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15606
else puts (dlerror ());
15608
/* dlclose (self); */
15616
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15617
(eval $ac_link) 2>&5
15619
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15620
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15621
(./conftest; exit; ) >&5 2>/dev/null
15623
case x$lt_status in
15624
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15625
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15626
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15629
# compilation failed
15630
lt_cv_dlopen_self_static=no
15637
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15638
$as_echo "$lt_cv_dlopen_self_static" >&6; }
15641
CPPFLAGS="$save_CPPFLAGS"
15642
LDFLAGS="$save_LDFLAGS"
15647
case $lt_cv_dlopen_self in
15648
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15649
*) enable_dlopen_self=unknown ;;
15652
case $lt_cv_dlopen_self_static in
15653
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15654
*) enable_dlopen_self_static=unknown ;;
15676
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15677
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15678
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15679
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15680
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15682
$as_echo "yes" >&6; }
15684
# FIXME - insert some real tests, host_os isn't really good enough
15687
if test -n "$STRIP" ; then
15688
striplib="$STRIP -x"
15689
old_striplib="$STRIP -S"
15690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15691
$as_echo "yes" >&6; }
15693
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15694
$as_echo "no" >&6; }
15698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15699
$as_echo "no" >&6; }
15715
# Report which library types will actually be built
15716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15717
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15718
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15719
$as_echo "$can_build_shared" >&6; }
15721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15722
$as_echo_n "checking whether to build shared libraries... " >&6; }
15723
test "$can_build_shared" = "no" && enable_shared=no
15725
# On AIX, shared libraries and static libraries use the same namespace, and
15726
# are all built from PIC.
15729
test "$enable_shared" = yes && enable_static=no
15730
if test -n "$RANLIB"; then
15731
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15732
postinstall_cmds='$RANLIB $lib'
15737
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15738
test "$enable_shared" = yes && enable_static=no
15742
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15743
$as_echo "$enable_shared" >&6; }
15745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15746
$as_echo_n "checking whether to build static libraries... " >&6; }
15747
# Make sure either enable_shared or enable_static is yes.
15748
test "$enable_shared" = yes || enable_static=yes
15749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15750
$as_echo "$enable_static" >&6; }
15757
ac_cpp='$CPP $CPPFLAGS'
15758
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15759
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15760
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15778
ac_config_commands="$ac_config_commands libtool"
15783
# Only expand once:
15789
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
15790
# These system don't have libm, or don't need it
15793
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
15794
$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
15795
if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
15796
$as_echo_n "(cached) " >&6
15798
ac_check_lib_save_LIBS=$LIBS
15800
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15801
/* end confdefs.h. */
15803
/* Override any GCC internal prototype to avoid an error.
15804
Use char because int might match the return type of a GCC
15805
builtin and then its argument prototype would still apply. */
15809
char _mwvalidcheckl ();
15813
return _mwvalidcheckl ();
15818
if ac_fn_c_try_link "$LINENO"; then :
15819
ac_cv_lib_mw__mwvalidcheckl=yes
15821
ac_cv_lib_mw__mwvalidcheckl=no
15823
rm -f core conftest.err conftest.$ac_objext \
15824
conftest$ac_exeext conftest.$ac_ext
15825
LIBS=$ac_check_lib_save_LIBS
15827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
15828
$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
15829
if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
15833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
15834
$as_echo_n "checking for cos in -lm... " >&6; }
15835
if ${ac_cv_lib_m_cos+:} false; then :
15836
$as_echo_n "(cached) " >&6
15838
ac_check_lib_save_LIBS=$LIBS
15840
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841
/* end confdefs.h. */
15843
/* Override any GCC internal prototype to avoid an error.
15844
Use char because int might match the return type of a GCC
15845
builtin and then its argument prototype would still apply. */
15858
if ac_fn_c_try_link "$LINENO"; then :
15859
ac_cv_lib_m_cos=yes
15863
rm -f core conftest.err conftest.$ac_objext \
15864
conftest$ac_exeext conftest.$ac_ext
15865
LIBS=$ac_check_lib_save_LIBS
15867
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
15868
$as_echo "$ac_cv_lib_m_cos" >&6; }
15869
if test "x$ac_cv_lib_m_cos" = xyes; then :
15875
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
15876
$as_echo_n "checking for cos in -lm... " >&6; }
15877
if ${ac_cv_lib_m_cos+:} false; then :
15878
$as_echo_n "(cached) " >&6
15880
ac_check_lib_save_LIBS=$LIBS
15882
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883
/* end confdefs.h. */
15885
/* Override any GCC internal prototype to avoid an error.
15886
Use char because int might match the return type of a GCC
15887
builtin and then its argument prototype would still apply. */
15900
if ac_fn_c_try_link "$LINENO"; then :
15901
ac_cv_lib_m_cos=yes
15905
rm -f core conftest.err conftest.$ac_objext \
15906
conftest$ac_exeext conftest.$ac_ext
15907
LIBS=$ac_check_lib_save_LIBS
15909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
15910
$as_echo "$ac_cv_lib_m_cos" >&6; }
15911
if test "x$ac_cv_lib_m_cos" = xyes; then :
15921
LIBGD_MODULE_DIR=libgd
15927
LIBGD_MODULES="gtk+-3.0 >= 3.7.10"
15928
LIBGD_GIR_INCLUDES="Gtk-3.0"
15933
LIBGD_STATIC_FALSE='#'
15935
LIBGD_STATIC_TRUE='#'
15936
LIBGD_STATIC_FALSE=
15940
# gtk-hacks: collection of Gtk+ hacks and workarounds
15942
LIBGD_GTK_HACKS_TRUE=
15943
LIBGD_GTK_HACKS_FALSE='#'
15945
LIBGD_GTK_HACKS_TRUE='#'
15946
LIBGD_GTK_HACKS_FALSE=
15953
LIBGD_MAIN_VIEW_TRUE=
15954
LIBGD_MAIN_VIEW_FALSE='#'
15956
LIBGD_MAIN_VIEW_TRUE='#'
15957
LIBGD_MAIN_VIEW_FALSE=
15964
LIBGD_MAIN_ICON_VIEW_TRUE=
15965
LIBGD_MAIN_ICON_VIEW_FALSE='#'
15967
LIBGD_MAIN_ICON_VIEW_TRUE='#'
15968
LIBGD_MAIN_ICON_VIEW_FALSE=
15975
LIBGD_MAIN_LIST_VIEW_TRUE=
15976
LIBGD_MAIN_LIST_VIEW_FALSE='#'
15978
LIBGD_MAIN_LIST_VIEW_TRUE='#'
15979
LIBGD_MAIN_LIST_VIEW_FALSE=
15986
LIBGD_MAIN_TOOLBAR_TRUE=
15987
LIBGD_MAIN_TOOLBAR_FALSE='#'
15989
LIBGD_MAIN_TOOLBAR_TRUE='#'
15990
LIBGD_MAIN_TOOLBAR_FALSE=
15997
LIBGD_HEADER_BAR_TRUE=
15998
LIBGD_HEADER_BAR_FALSE='#'
16000
LIBGD_HEADER_BAR_TRUE='#'
16001
LIBGD_HEADER_BAR_FALSE=
16007
$as_echo "#define LIBGD_HEADER_BAR 1" >>confdefs.h
16011
# margin-container:
16013
LIBGD_MARGIN_CONTAINER_TRUE=
16014
LIBGD_MARGIN_CONTAINER_FALSE='#'
16016
LIBGD_MARGIN_CONTAINER_TRUE='#'
16017
LIBGD_MARGIN_CONTAINER_FALSE=
16024
LIBGD_NOTIFICATION_TRUE=
16025
LIBGD_NOTIFICATION_FALSE='#'
16027
LIBGD_NOTIFICATION_TRUE='#'
16028
LIBGD_NOTIFICATION_FALSE=
16035
LIBGD_REVEALER_TRUE=
16036
LIBGD_REVEALER_FALSE='#'
16038
LIBGD_REVEALER_TRUE='#'
16039
LIBGD_REVEALER_FALSE=
16047
LIBGD_STACK_FALSE='#'
16049
LIBGD_STACK_TRUE='#'
16056
$as_echo "#define LIBGD_STACK 1" >>confdefs.h
16060
# tagged-entry: Gtk+ widget
16062
LIBGD_TAGGED_ENTRY_TRUE=
16063
LIBGD_TAGGED_ENTRY_FALSE='#'
16065
LIBGD_TAGGED_ENTRY_TRUE='#'
16066
LIBGD_TAGGED_ENTRY_FALSE=
16071
# vapi: vala bindings support
16074
LIBGD_VAPI_FALSE='#'
16076
LIBGD_VAPI_TRUE='#'
16082
# Extract the first word of "vapigen", so it can be a program name with args.
16083
set dummy vapigen; ac_word=$2
16084
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16085
$as_echo_n "checking for $ac_word... " >&6; }
16086
if ${ac_cv_path_VAPIGEN+:} false; then :
16087
$as_echo_n "(cached) " >&6
16091
ac_cv_path_VAPIGEN="$VAPIGEN" # Let the user override the test with a path.
16094
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16095
for as_dir in $PATH
16098
test -z "$as_dir" && as_dir=.
16099
for ac_exec_ext in '' $ac_executable_extensions; do
16100
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16101
ac_cv_path_VAPIGEN="$as_dir/$ac_word$ac_exec_ext"
16102
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16109
test -z "$ac_cv_path_VAPIGEN" && ac_cv_path_VAPIGEN="no"
16113
VAPIGEN=$ac_cv_path_VAPIGEN
16114
if test -n "$VAPIGEN"; then
16115
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VAPIGEN" >&5
16116
$as_echo "$VAPIGEN" >&6; }
16118
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16119
$as_echo "no" >&6; }
16123
if test x$VAPIGEN = "xno"; then :
16124
as_fn_error $? "Cannot find the \"vapigen compiler in your PATH" "$LINENO" 5
16128
# gir: gobject introspection support
16131
LIBGD_GIR_FALSE='#'
16141
enable_introspection=yes
16143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
16144
$as_echo_n "checking for gobject-introspection... " >&6; }
16146
case $enable_introspection in #(
16148
found_introspection="no (disabled, use --enable-introspection to enable)"
16151
if test -n "$PKG_CONFIG" && \
16152
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
16153
($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
16155
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16156
test $ac_status = 0; }; then
16159
as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
16161
if test -n "$PKG_CONFIG" && \
16162
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.6\""; } >&5
16163
($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.6") 2>&5
16165
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16166
test $ac_status = 0; }; then
16167
found_introspection=yes
16169
as_fn_error $? "You need to have gobject-introspection >= 0.9.6 installed to build baobab" "$LINENO" 5
16173
if test -n "$PKG_CONFIG" && \
16174
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.6\""; } >&5
16175
($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.6") 2>&5
16177
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16178
test $ac_status = 0; }; then
16179
found_introspection=yes
16181
found_introspection=no
16183
enable_introspection=$found_introspection
16186
as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
16189
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
16190
$as_echo "$found_introspection" >&6; }
16192
INTROSPECTION_SCANNER=
16193
INTROSPECTION_COMPILER=
16194
INTROSPECTION_GENERATE=
16195
INTROSPECTION_GIRDIR=
16196
INTROSPECTION_TYPELIBDIR=
16197
if test "x$found_introspection" = "xyes"; then
16198
INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
16199
INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
16200
INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
16201
INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
16202
INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
16203
INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
16204
INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
16205
INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
16216
if test "x$found_introspection" = "xyes"; then
16217
HAVE_INTROSPECTION_TRUE=
16218
HAVE_INTROSPECTION_FALSE='#'
16220
HAVE_INTROSPECTION_TRUE='#'
16221
HAVE_INTROSPECTION_FALSE=
16230
LIBGD__HEADER_BUTTON_TRUE=
16231
LIBGD__HEADER_BUTTON_FALSE='#'
16233
LIBGD__HEADER_BUTTON_TRUE='#'
16234
LIBGD__HEADER_BUTTON_FALSE=
16239
$as_echo "#define LIBGD__HEADER_BUTTON 1" >>confdefs.h
16245
LIBGD__VIEW_COMMON_TRUE=
16246
LIBGD__VIEW_COMMON_FALSE='#'
16248
LIBGD__VIEW_COMMON_TRUE='#'
16249
LIBGD__VIEW_COMMON_FALSE=
16256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGD" >&5
16257
$as_echo_n "checking for LIBGD... " >&6; }
16259
if test -n "$LIBGD_CFLAGS"; then
16260
pkg_cv_LIBGD_CFLAGS="$LIBGD_CFLAGS"
16261
elif test -n "$PKG_CONFIG"; then
16262
if test -n "$PKG_CONFIG" && \
16263
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" \$LIBGD_MODULES \""; } >&5
16264
($PKG_CONFIG --exists --print-errors " $LIBGD_MODULES ") 2>&5
16266
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16267
test $ac_status = 0; }; then
16268
pkg_cv_LIBGD_CFLAGS=`$PKG_CONFIG --cflags " $LIBGD_MODULES " 2>/dev/null`
16269
test "x$?" != "x0" && pkg_failed=yes
16276
if test -n "$LIBGD_LIBS"; then
16277
pkg_cv_LIBGD_LIBS="$LIBGD_LIBS"
16278
elif test -n "$PKG_CONFIG"; then
16279
if test -n "$PKG_CONFIG" && \
16280
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" \$LIBGD_MODULES \""; } >&5
16281
($PKG_CONFIG --exists --print-errors " $LIBGD_MODULES ") 2>&5
16283
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16284
test $ac_status = 0; }; then
16285
pkg_cv_LIBGD_LIBS=`$PKG_CONFIG --libs " $LIBGD_MODULES " 2>/dev/null`
16286
test "x$?" != "x0" && pkg_failed=yes
16296
if test $pkg_failed = yes; then
16297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16298
$as_echo "no" >&6; }
16300
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16301
_pkg_short_errors_supported=yes
16303
_pkg_short_errors_supported=no
16305
if test $_pkg_short_errors_supported = yes; then
16306
LIBGD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " $LIBGD_MODULES " 2>&1`
16308
LIBGD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " $LIBGD_MODULES " 2>&1`
16310
# Put the nasty error message in config.log where it belongs
16311
echo "$LIBGD_PKG_ERRORS" >&5
16313
as_fn_error $? "Package requirements ( $LIBGD_MODULES ) were not met:
16317
Consider adjusting the PKG_CONFIG_PATH environment variable if you
16318
installed software in a non-standard prefix.
16320
Alternatively, you may set the environment variables LIBGD_CFLAGS
16321
and LIBGD_LIBS to avoid the need to call pkg-config.
16322
See the pkg-config man page for more details." "$LINENO" 5
16323
elif test $pkg_failed = untried; then
16324
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16325
$as_echo "no" >&6; }
16326
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16327
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16328
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16329
is in your PATH or set the PKG_CONFIG environment variable to the full
16330
path to pkg-config.
16332
Alternatively, you may set the environment variables LIBGD_CFLAGS
16333
and LIBGD_LIBS to avoid the need to call pkg-config.
16334
See the pkg-config man page for more details.
16336
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16337
See \`config.log' for more details" "$LINENO" 5; }
16339
LIBGD_CFLAGS=$pkg_cv_LIBGD_CFLAGS
16340
LIBGD_LIBS=$pkg_cv_LIBGD_LIBS
16341
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16342
$as_echo "yes" >&6; }
16349
ac_config_files="$ac_config_files Makefile data/Makefile help/Makefile pixmaps/Makefile src/Makefile libgd/Makefile po/Makefile.in"
8101
ac_config_files="$ac_config_files Makefile data/Makefile data/org.gnome.baobab.gschema.xml.in help/Makefile pixmaps/Makefile src/Makefile po/Makefile.in"
16352
8104
cat >confcache <<\_ACEOF