2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for cryptsetup 1.0.6.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
23
case `(set -o) 2>/dev/null` in
24
*posix*) set -o posix ;;
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
40
# The user is always right.
41
if test "${PATH_SEPARATOR+set}" != set; then
42
echo "#! /bin/sh" >conf$$.sh
43
echo "exit 0" >>conf$$.sh
45
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53
# Support unset when possible.
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62
# We need space, tab and new line, in precisely that order. Quoting is
63
# there to prevent editors from complaining about space-tab.
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
# splitting by setting IFS to empty value.)
70
# Find who we are. Look in the path if we contain no directory separator.
72
*[\\/]* ) as_myself=$0 ;;
73
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77
test -z "$as_dir" && as_dir=.
78
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
85
# in which case we are not to be found in the path.
86
if test "x$as_myself" = x; then
89
if test ! -f "$as_myself"; then
90
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94
# Work around bugs in pre-3.0 UWIN ksh.
95
for as_var in ENV MAIL MAILPATH
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
eval $as_var=C; export $as_var
111
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115
# Required to use basename.
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
117
test "X`expr 00001 : '.*\(...\)'`" = X001; then
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130
# Name of the executable.
131
as_me=`$as_basename -- "$0" ||
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
X"$0" : 'X\(//\)$' \| \
134
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136
sed '/^.*\/\([^/][^/]*\)\/*$/{
154
if test "x$CONFIG_SHELL" = x; then
155
if (eval ":") 2>/dev/null; then
161
if test $as_have_required = yes && (eval ":
171
as_func_ret_success () {
174
as_func_ret_failure () {
179
if as_func_success; then
183
echo as_func_success failed.
186
if as_func_failure; then
188
echo as_func_failure succeeded.
191
if as_func_ret_success; then
195
echo as_func_ret_success failed.
198
if as_func_ret_failure; then
200
echo as_func_ret_failure succeeded.
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207
echo positional parameters were not saved.
210
test \$exitcode = 0) || { (exit 1); exit 1; }
215
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
") 2> /dev/null; then
221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
test -z "$as_dir" && as_dir=.
228
for as_base in sh bash ksh sh5; do
229
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236
for as_shell in $as_candidate_shells $SHELL; do
237
# Try only shells that exist, to save several forks.
238
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
{ ("$as_shell") 2> /dev/null <<\_ASEOF
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
# is contrary to our usage. Disable this feature.
245
alias -g '${1+"$@"}'='"$@"'
248
case `(set -o) 2>/dev/null` in
249
*posix*) set -o posix ;;
258
CONFIG_SHELL=$as_shell
260
if { "$as_shell" 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
286
as_func_ret_success () {
289
as_func_ret_failure () {
294
if as_func_success; then
298
echo as_func_success failed.
301
if as_func_failure; then
303
echo as_func_failure succeeded.
306
if as_func_ret_success; then
310
echo as_func_ret_success failed.
313
if as_func_ret_failure; then
315
echo as_func_ret_failure succeeded.
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
echo positional parameters were not saved.
325
test $exitcode = 0) || { (exit 1); exit 1; }
330
test "x$as_lineno_1" != "x$as_lineno_2" &&
331
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342
if test "x$CONFIG_SHELL" != x; then
343
for as_var in BASH_ENV ENV
344
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
if test $as_have_required = no; then
352
echo This script requires a shell more modern than all the
353
echo shells that I found on your system. Please install a
354
echo modern shell, or manually run the script under such a
355
echo shell if you do have one.
356
{ (exit 1); exit 1; }
366
(eval "as_func_return () {
375
as_func_ret_success () {
378
as_func_ret_failure () {
383
if as_func_success; then
387
echo as_func_success failed.
390
if as_func_failure; then
392
echo as_func_failure succeeded.
395
if as_func_ret_success; then
399
echo as_func_ret_success failed.
402
if as_func_ret_failure; then
404
echo as_func_ret_failure succeeded.
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
echo positional parameters were not saved.
414
test \$exitcode = 0") || {
415
echo No shell found that supports shell functions.
416
echo Please tell autoconf@gnu.org about your system,
417
echo including any error possibly output before this
425
test "x$as_lineno_1" != "x$as_lineno_2" &&
426
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429
# uniformly replaced by the line number. The first 'sed' inserts a
430
# line-number line after each line using $LINENO; the second 'sed'
431
# does the real work. The second script uses 'N' to pair each
432
# line-number line with the line containing $LINENO, and appends
433
# trailing '-' during substitution so that $LINENO is not a special
435
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436
# scripts with optimization help from Paolo Bonzini. Blame Lee
437
# E. McMahon (1931-1989) for sed's syntax. :-)
449
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453
chmod +x "$as_me.lineno" ||
454
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455
{ (exit 1); exit 1; }; }
457
# Don't try to exec as it changes $[0], causing all sort of problems
458
# (the dirname of $[0] is not the place where we might find the
459
# original and so on. Autoconf is especially sensitive to this).
461
# Exit status is that of the last command.
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472
ECHO_C= ECHO_N= ECHO_T=
476
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
test "X`expr 00001 : '.*\(...\)'`" = X001; then
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
rm -f conf$$.dir/conf$$.file
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
500
# ... but there are two gotchas:
501
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
# In both cases, we have to default to `cp -p'.
504
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506
elif ln conf$$.file conf$$ 2>/dev/null; then
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
514
if mkdir -p . 2>/dev/null; then
517
test -d ./-p && rmdir ./-p
521
if test -x / >/dev/null 2>&1; then
524
if ls -dL / >/dev/null 2>&1; then
531
if test -d "$1"; then
537
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538
???[sx]*):;;*)false;;esac;fi
542
as_executable_p=$as_test_x
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
# Check that we are running under the correct shell.
554
SHELL=${CONFIG_SHELL-/bin/sh}
558
# Remove one level of quotation (which was required for Make).
559
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564
if test "X$1" = X--no-reexec; then
565
# Discard the --no-reexec flag, and continue.
567
elif test "X$1" = X--fallback-echo; then
568
# Avoid inline document here, it may be left over
570
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571
# Yippee, $echo works!
574
# Restart under the correct shell.
575
exec $SHELL "$0" --no-reexec ${1+"$@"}
578
if test "X$1" = X--fallback-echo; then
579
# used as fallback echo
587
# The HP-UX ksh and POSIX shell print the target directory to stdout
589
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591
if test -z "$ECHO"; then
592
if test "X${echo_test_string+set}" != Xset; then
593
# find a string as large as possible, as long as the shell can cope with it
594
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597
echo_test_string=`eval $cmd` &&
598
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607
test "X$echo_testing_string" = "X$echo_test_string"; then
610
# The Solaris, AIX, and Digital Unix default echo programs unquote
611
# backslashes. This makes it impossible to quote backslashes using
612
# echo "$something" | sed 's/\\/\\\\/g'
614
# So, first we look for a working echo in the user's PATH.
616
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617
for dir in $PATH /usr/ucb; do
619
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622
test "X$echo_testing_string" = "X$echo_test_string"; then
629
if test "X$echo" = Xecho; then
630
# We didn't find a better echo, so look for alternatives.
631
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633
test "X$echo_testing_string" = "X$echo_test_string"; then
634
# This shell has a builtin print -r that does the trick.
636
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637
test "X$CONFIG_SHELL" != X/bin/ksh; then
638
# If we have ksh, try running configure again with it.
639
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640
export ORIGINAL_CONFIG_SHELL
641
CONFIG_SHELL=/bin/ksh
643
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649
test "X$echo_testing_string" = "X$echo_test_string"; then
652
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653
test "X$echo_testing_string" = 'X\t' &&
654
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655
test "X$echo_testing_string" = "X$echo_test_string"; then
656
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658
SHELL="$CONFIG_SHELL"
660
echo="$CONFIG_SHELL $0 --fallback-echo"
661
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662
test "X$echo_testing_string" = 'X\t' &&
663
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664
test "X$echo_testing_string" = "X$echo_test_string"; then
665
echo="$CONFIG_SHELL $0 --fallback-echo"
667
# maybe with a smaller string...
670
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678
if test "$prev" != 'sed 50q "$0"'; then
679
echo_test_string=`eval $prev`
680
export echo_test_string
681
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683
# Oops. We lost completely, so just stick with echo.
692
# Copy echo and quote the copy suitably for passing to libtool from
693
# the Makefile, instead of quoting the original, which is used later.
695
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702
tagnames=${tagnames+${tagnames},}CXX
704
tagnames=${tagnames+${tagnames},}F77
706
exec 7<&0 </dev/null 6>&1
709
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710
# so uname gets run too.
711
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716
ac_default_prefix=/usr/local
718
ac_config_libobj_dir=.
724
SHELL=${CONFIG_SHELL-/bin/sh}
726
# Identity of this package.
727
PACKAGE_NAME='cryptsetup'
728
PACKAGE_TARNAME='cryptsetup'
729
PACKAGE_VERSION='1.0.6'
730
PACKAGE_STRING='cryptsetup 1.0.6'
733
ac_unique_file="src/cryptsetup.c"
734
ac_default_prefix=/usr
735
# Factoring default headers for most tests.
736
ac_includes_default="\
738
#ifdef HAVE_SYS_TYPES_H
739
# include <sys/types.h>
741
#ifdef HAVE_SYS_STAT_H
742
# include <sys/stat.h>
748
# ifdef HAVE_STDLIB_H
753
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758
#ifdef HAVE_STRINGS_H
759
# include <strings.h>
761
#ifdef HAVE_INTTYPES_H
762
# include <inttypes.h>
780
program_transform_name
821
INSTALL_STRIP_PROGRAM
898
BUILD_LIBGCRYPT_FALSE
899
SHARED_LIBGCRYPT_TRUE
900
SHARED_LIBGCRYPT_FALSE
903
BUILD_LIBDEVMAPPER_TRUE
904
BUILD_LIBDEVMAPPER_FALSE
905
SHARED_LIBDEVMAPPER_TRUE
906
SHARED_LIBDEVMAPPER_FALSE
907
STATIC_CRYPTSETUP_TRUE
908
STATIC_CRYPTSETUP_FALSE
909
DYNAMIC_CRYPTSETUP_TRUE
910
DYNAMIC_CRYPTSETUP_FALSE
914
ac_precious_vars='build_alias
931
# Initialize some variables set by options.
933
ac_init_version=false
934
# The variables have the same names as the options, with
935
# dashes changed to underlines.
943
program_transform_name=s,x,x,
951
# Installation directory options.
952
# These are left unexpanded so users can "make install exec_prefix=/foo"
953
# and all the variables that are supposed to be based on exec_prefix
954
# by default will actually change.
955
# Use braces instead of parens because sh, perl, etc. also accept them.
956
# (The list follows the same order as the GNU Coding Standards.)
957
bindir='${exec_prefix}/bin'
958
sbindir='${exec_prefix}/sbin'
959
libexecdir='${exec_prefix}/libexec'
960
datarootdir='${prefix}/share'
961
datadir='${datarootdir}'
962
sysconfdir='${prefix}/etc'
963
sharedstatedir='${prefix}/com'
964
localstatedir='${prefix}/var'
965
includedir='${prefix}/include'
966
oldincludedir='/usr/include'
967
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
968
infodir='${datarootdir}/info'
973
libdir='${exec_prefix}/lib'
974
localedir='${datarootdir}/locale'
975
mandir='${datarootdir}/man'
981
# If the previous option needs an argument, assign it.
982
if test -n "$ac_prev"; then
983
eval $ac_prev=\$ac_option
989
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
993
# Accept the important Cygnus configure options, so we can diagnose typos.
995
case $ac_dashdash$ac_option in
999
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1001
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1002
bindir=$ac_optarg ;;
1004
-build | --build | --buil | --bui | --bu)
1005
ac_prev=build_alias ;;
1006
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1007
build_alias=$ac_optarg ;;
1009
-cache-file | --cache-file | --cache-fil | --cache-fi \
1010
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1011
ac_prev=cache_file ;;
1012
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1013
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1014
cache_file=$ac_optarg ;;
1016
--config-cache | -C)
1017
cache_file=config.cache ;;
1019
-datadir | --datadir | --datadi | --datad)
1021
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1022
datadir=$ac_optarg ;;
1024
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1025
| --dataroo | --dataro | --datar)
1026
ac_prev=datarootdir ;;
1027
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1028
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1029
datarootdir=$ac_optarg ;;
1031
-disable-* | --disable-*)
1032
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1033
# Reject names that are not valid shell variable names.
1034
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1035
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1036
{ (exit 1); exit 1; }; }
1037
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1038
eval enable_$ac_feature=no ;;
1040
-docdir | --docdir | --docdi | --doc | --do)
1042
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043
docdir=$ac_optarg ;;
1045
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048
dvidir=$ac_optarg ;;
1050
-enable-* | --enable-*)
1051
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052
# Reject names that are not valid shell variable names.
1053
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1054
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1055
{ (exit 1); exit 1; }; }
1056
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1057
eval enable_$ac_feature=\$ac_optarg ;;
1059
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1060
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1061
| --exec | --exe | --ex)
1062
ac_prev=exec_prefix ;;
1063
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1064
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1065
| --exec=* | --exe=* | --ex=*)
1066
exec_prefix=$ac_optarg ;;
1068
-gas | --gas | --ga | --g)
1069
# Obsolete; use --with-gas.
1072
-help | --help | --hel | --he | -h)
1073
ac_init_help=long ;;
1074
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1075
ac_init_help=recursive ;;
1076
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1077
ac_init_help=short ;;
1079
-host | --host | --hos | --ho)
1080
ac_prev=host_alias ;;
1081
-host=* | --host=* | --hos=* | --ho=*)
1082
host_alias=$ac_optarg ;;
1084
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088
htmldir=$ac_optarg ;;
1090
-includedir | --includedir | --includedi | --included | --include \
1091
| --includ | --inclu | --incl | --inc)
1092
ac_prev=includedir ;;
1093
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1094
| --includ=* | --inclu=* | --incl=* | --inc=*)
1095
includedir=$ac_optarg ;;
1097
-infodir | --infodir | --infodi | --infod | --info | --inf)
1099
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1100
infodir=$ac_optarg ;;
1102
-libdir | --libdir | --libdi | --libd)
1104
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1105
libdir=$ac_optarg ;;
1107
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1108
| --libexe | --libex | --libe)
1109
ac_prev=libexecdir ;;
1110
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1111
| --libexe=* | --libex=* | --libe=*)
1112
libexecdir=$ac_optarg ;;
1114
-localedir | --localedir | --localedi | --localed | --locale)
1115
ac_prev=localedir ;;
1116
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1117
localedir=$ac_optarg ;;
1119
-localstatedir | --localstatedir | --localstatedi | --localstated \
1120
| --localstate | --localstat | --localsta | --localst | --locals)
1121
ac_prev=localstatedir ;;
1122
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1123
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1124
localstatedir=$ac_optarg ;;
1126
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1129
mandir=$ac_optarg ;;
1131
-nfp | --nfp | --nf)
1132
# Obsolete; use --without-fp.
1135
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1136
| --no-cr | --no-c | -n)
1139
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1140
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1144
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1145
| --oldin | --oldi | --old | --ol | --o)
1146
ac_prev=oldincludedir ;;
1147
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1148
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1149
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1150
oldincludedir=$ac_optarg ;;
1152
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1155
prefix=$ac_optarg ;;
1157
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1158
| --program-pre | --program-pr | --program-p)
1159
ac_prev=program_prefix ;;
1160
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1161
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1162
program_prefix=$ac_optarg ;;
1164
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1165
| --program-suf | --program-su | --program-s)
1166
ac_prev=program_suffix ;;
1167
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1168
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1169
program_suffix=$ac_optarg ;;
1171
-program-transform-name | --program-transform-name \
1172
| --program-transform-nam | --program-transform-na \
1173
| --program-transform-n | --program-transform- \
1174
| --program-transform | --program-transfor \
1175
| --program-transfo | --program-transf \
1176
| --program-trans | --program-tran \
1177
| --progr-tra | --program-tr | --program-t)
1178
ac_prev=program_transform_name ;;
1179
-program-transform-name=* | --program-transform-name=* \
1180
| --program-transform-nam=* | --program-transform-na=* \
1181
| --program-transform-n=* | --program-transform-=* \
1182
| --program-transform=* | --program-transfor=* \
1183
| --program-transfo=* | --program-transf=* \
1184
| --program-trans=* | --program-tran=* \
1185
| --progr-tra=* | --program-tr=* | --program-t=*)
1186
program_transform_name=$ac_optarg ;;
1188
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1191
pdfdir=$ac_optarg ;;
1193
-psdir | --psdir | --psdi | --psd | --ps)
1195
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1199
| -silent | --silent | --silen | --sile | --sil)
1202
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206
sbindir=$ac_optarg ;;
1208
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1209
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210
| --sharedst | --shareds | --shared | --share | --shar \
1212
ac_prev=sharedstatedir ;;
1213
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217
sharedstatedir=$ac_optarg ;;
1219
-site | --site | --sit)
1221
-site=* | --site=* | --sit=*)
1224
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1227
srcdir=$ac_optarg ;;
1229
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230
| --syscon | --sysco | --sysc | --sys | --sy)
1231
ac_prev=sysconfdir ;;
1232
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1234
sysconfdir=$ac_optarg ;;
1236
-target | --target | --targe | --targ | --tar | --ta | --t)
1237
ac_prev=target_alias ;;
1238
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1239
target_alias=$ac_optarg ;;
1241
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1244
-version | --version | --versio | --versi | --vers | -V)
1245
ac_init_version=: ;;
1248
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249
# Reject names that are not valid shell variable names.
1250
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1252
{ (exit 1); exit 1; }; }
1253
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1254
eval with_$ac_package=\$ac_optarg ;;
1256
-without-* | --without-*)
1257
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1258
# Reject names that are not valid shell variable names.
1259
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1261
{ (exit 1); exit 1; }; }
1262
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1263
eval with_$ac_package=no ;;
1266
# Obsolete; use --with-x.
1269
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1270
| --x-incl | --x-inc | --x-in | --x-i)
1271
ac_prev=x_includes ;;
1272
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1273
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1274
x_includes=$ac_optarg ;;
1276
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1277
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1278
ac_prev=x_libraries ;;
1279
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1280
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1281
x_libraries=$ac_optarg ;;
1283
-*) { echo "$as_me: error: unrecognized option: $ac_option
1284
Try \`$0 --help' for more information." >&2
1285
{ (exit 1); exit 1; }; }
1289
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290
# Reject names that are not valid shell variable names.
1291
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1292
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1293
{ (exit 1); exit 1; }; }
1294
eval $ac_envvar=\$ac_optarg
1295
export $ac_envvar ;;
1298
# FIXME: should be removed in autoconf 3.0.
1299
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1300
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1302
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1308
if test -n "$ac_prev"; then
1309
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1310
{ echo "$as_me: error: missing argument to $ac_option" >&2
1311
{ (exit 1); exit 1; }; }
1314
# Be sure to have absolute directory names.
1315
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1316
datadir sysconfdir sharedstatedir localstatedir includedir \
1317
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1318
libdir localedir mandir
1320
eval ac_val=\$$ac_var
1322
[\\/$]* | ?:[\\/]* ) continue;;
1323
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1325
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1326
{ (exit 1); exit 1; }; }
1329
# There might be people who depend on the old broken behavior: `$host'
1330
# used to hold the argument of --host etc.
1331
# FIXME: To remove some day.
1334
target=$target_alias
1336
# FIXME: To remove some day.
1337
if test "x$host_alias" != x; then
1338
if test "x$build_alias" = x; then
1339
cross_compiling=maybe
1340
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1341
If a cross compiler is detected then cross compile mode will be used." >&2
1342
elif test "x$build_alias" != "x$host_alias"; then
1348
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350
test "$silent" = yes && exec 6>/dev/null
1353
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354
ac_ls_di=`ls -di .` &&
1355
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1356
{ echo "$as_me: error: Working directory cannot be determined" >&2
1357
{ (exit 1); exit 1; }; }
1358
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1360
{ (exit 1); exit 1; }; }
1363
# Find the source files, if location was not specified.
1364
if test -z "$srcdir"; then
1365
ac_srcdir_defaulted=yes
1366
# Try the directory containing this script, then the parent directory.
1367
ac_confdir=`$as_dirname -- "$0" ||
1368
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1369
X"$0" : 'X\(//\)[^/]' \| \
1370
X"$0" : 'X\(//\)$' \| \
1371
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1373
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391
if test ! -r "$srcdir/$ac_unique_file"; then
1395
ac_srcdir_defaulted=no
1397
if test ! -r "$srcdir/$ac_unique_file"; then
1398
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1399
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1400
{ (exit 1); exit 1; }; }
1402
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1404
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1405
{ (exit 1); exit 1; }; }
1407
# When building in place, set srcdir=.
1408
if test "$ac_abs_confdir" = "$ac_pwd"; then
1411
# Remove unnecessary trailing slashes from srcdir.
1412
# Double slashes in file names in object file debugging info
1413
# mess up M-x gdb in Emacs.
1415
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417
for ac_var in $ac_precious_vars; do
1418
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419
eval ac_env_${ac_var}_value=\$${ac_var}
1420
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425
# Report the --help message.
1427
if test "$ac_init_help" = "long"; then
1428
# Omit some internal or obsolete options to make the list less imposing.
1429
# This message is too long to be a string in the A/UX 3.1 sh.
1431
\`configure' configures cryptsetup 1.0.6 to adapt to many kinds of systems.
1433
Usage: $0 [OPTION]... [VAR=VALUE]...
1435
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436
VAR=VALUE. See below for descriptions of some of the useful variables.
1438
Defaults for the options are specified in brackets.
1441
-h, --help display this help and exit
1442
--help=short display options specific to this package
1443
--help=recursive display the short help of all the included packages
1444
-V, --version display version information and exit
1445
-q, --quiet, --silent do not print \`checking...' messages
1446
--cache-file=FILE cache test results in FILE [disabled]
1447
-C, --config-cache alias for \`--cache-file=config.cache'
1448
-n, --no-create do not create output files
1449
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1451
Installation directories:
1452
--prefix=PREFIX install architecture-independent files in PREFIX
1453
[$ac_default_prefix]
1454
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1457
By default, \`make install' will install all the files in
1458
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1459
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1460
for instance \`--prefix=\$HOME'.
1462
For better control, use the options below.
1464
Fine tuning of the installation directories:
1465
--bindir=DIR user executables [EPREFIX/bin]
1466
--sbindir=DIR system admin executables [EPREFIX/sbin]
1467
--libexecdir=DIR program executables [EPREFIX/libexec]
1468
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1469
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1470
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1471
--libdir=DIR object code libraries [EPREFIX/lib]
1472
--includedir=DIR C header files [PREFIX/include]
1473
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1474
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1475
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1476
--infodir=DIR info documentation [DATAROOTDIR/info]
1477
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1478
--mandir=DIR man documentation [DATAROOTDIR/man]
1479
--docdir=DIR documentation root [DATAROOTDIR/doc/cryptsetup]
1480
--htmldir=DIR html documentation [DOCDIR]
1481
--dvidir=DIR dvi documentation [DOCDIR]
1482
--pdfdir=DIR pdf documentation [DOCDIR]
1483
--psdir=DIR ps documentation [DOCDIR]
1489
--program-prefix=PREFIX prepend PREFIX to installed program names
1490
--program-suffix=SUFFIX append SUFFIX to installed program names
1491
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1494
--build=BUILD configure for building on BUILD [guessed]
1495
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1499
if test -n "$ac_init_help"; then
1500
case $ac_init_help in
1501
short | recursive ) echo "Configuration of cryptsetup 1.0.6:";;
1506
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1507
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1508
--disable-dependency-tracking speeds up one-time build
1509
--enable-dependency-tracking do not reject slow dependency extractors
1510
--enable-static[=PKGS] build static libraries [default=no]
1511
--enable-shared[=PKGS] build shared libraries [default=yes]
1512
--enable-fast-install[=PKGS]
1513
optimize for fast installation [default=yes]
1514
--disable-libtool-lock avoid locking (might break parallel builds)
1515
--disable-largefile omit support for large files
1516
--disable-nls do not use Native Language Support
1517
--disable-rpath do not hardcode runtime library paths
1518
--disable-shared-library
1519
disable building of shared cryptsetup library
1520
--enable-plugins disable shared library plugins
1523
--with-MODULE[=shared] builds the module MODULE as a shared library plugin
1525
--disable-all disable all modules built by default
1526
--enable-libgcrypt enable libgcrypt crypto functions [default=auto]
1527
--enable-libdevmapper enable dm-crypt backend through libdevmapper
1531
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1532
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1533
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1534
--with-pic try to use only PIC/non-PIC objects [default=use
1536
--with-tags[=TAGS] include additional configurations [automatic]
1537
--with-gnu-ld assume the C compiler uses GNU ld default=no
1538
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1539
--without-libiconv-prefix don't search for libiconv in includedir and libdir
1540
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1541
--without-libintl-prefix don't search for libintl in includedir and libdir
1542
--with-libgcrypt-prefix=PFX
1543
prefix where LIBGCRYPT is installed (optional)
1545
Some influential environment variables:
1546
CC C compiler command
1547
CFLAGS C compiler flags
1548
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1549
nonstandard directory <lib dir>
1550
LIBS libraries to pass to the linker, e.g. -l<library>
1551
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1552
you have headers in a nonstandard directory <include dir>
1554
CXX C++ compiler command
1555
CXXFLAGS C++ compiler flags
1556
CXXCPP C++ preprocessor
1557
F77 Fortran 77 compiler command
1558
FFLAGS Fortran 77 compiler flags
1560
Use these variables to override the choices made by `configure' or to help
1561
it to find libraries and programs with nonstandard names/locations.
1567
if test "$ac_init_help" = "recursive"; then
1568
# If there are subdirs, report their specific --help.
1569
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570
test -d "$ac_dir" || continue
1574
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1577
# A ".." for each directory in $ac_dir_suffix.
1578
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1579
case $ac_top_builddir_sub in
1580
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584
ac_abs_top_builddir=$ac_pwd
1585
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1586
# for backward compatibility:
1587
ac_top_builddir=$ac_top_build_prefix
1590
.) # We are building in place.
1592
ac_top_srcdir=$ac_top_builddir_sub
1593
ac_abs_top_srcdir=$ac_pwd ;;
1594
[\\/]* | ?:[\\/]* ) # Absolute name.
1595
ac_srcdir=$srcdir$ac_dir_suffix;
1596
ac_top_srcdir=$srcdir
1597
ac_abs_top_srcdir=$srcdir ;;
1599
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1600
ac_top_srcdir=$ac_top_build_prefix$srcdir
1601
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
cd "$ac_dir" || { ac_status=$?; continue; }
1606
# Check for guested configure.
1607
if test -f "$ac_srcdir/configure.gnu"; then
1609
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610
elif test -f "$ac_srcdir/configure"; then
1612
$SHELL "$ac_srcdir/configure" --help=recursive
1614
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616
cd "$ac_pwd" || { ac_status=$?; break; }
1620
test -n "$ac_init_help" && exit $ac_status
1621
if $ac_init_version; then
1623
cryptsetup configure 1.0.6
1624
generated by GNU Autoconf 2.61
1626
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1627
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1628
This configure script is free software; the Free Software Foundation
1629
gives unlimited permission to copy, distribute and modify it.
1633
cat >config.log <<_ACEOF
1634
This file contains any messages produced by compilers while
1635
running configure, to aid debugging if configure makes a mistake.
1637
It was created by cryptsetup $as_me 1.0.6, which was
1638
generated by GNU Autoconf 2.61. Invocation command line was
1650
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1651
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1652
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1653
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1654
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1656
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1657
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1659
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1660
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1661
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1662
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1663
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1664
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1665
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1669
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673
test -z "$as_dir" && as_dir=.
1674
echo "PATH: $as_dir"
1690
# Keep a trace of the command line.
1691
# Strip out --no-create and --no-recursion so they do not pile up.
1692
# Strip out --silent because we don't want to record it for future runs.
1693
# Also quote any args containing shell meta-characters.
1694
# Make two passes to allow for proper duplicate-argument suppression.
1698
ac_must_keep_next=false
1704
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1705
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1706
| -silent | --silent | --silen | --sile | --sil)
1709
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1712
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1714
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1715
if test $ac_must_keep_next = true; then
1716
ac_must_keep_next=false # Got value, back to normal.
1719
*=* | --config-cache | -C | -disable-* | --disable-* \
1720
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1721
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1722
| -with-* | --with-* | -without-* | --without-* | --x)
1723
case "$ac_configure_args0 " in
1724
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1727
-* ) ac_must_keep_next=true ;;
1730
ac_configure_args="$ac_configure_args '$ac_arg'"
1735
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1736
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1738
# When interrupted or exit'd, cleanup temporary files, and complete
1739
# config.log. We remove comments because anyway the quotes in there
1740
# would cause problems or look ugly.
1741
# WARNING: Use '\'' to represent an apostrophe within the trap.
1742
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1743
trap 'exit_status=$?
1744
# Save into config.log some information that might help in debugging.
1749
## ---------------- ##
1750
## Cache variables. ##
1751
## ---------------- ##
1754
# The following way of writing the cache mishandles newlines in values,
1756
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1757
eval ac_val=\$$ac_var
1761
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1762
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1765
_ | IFS | as_nl) ;; #(
1766
*) $as_unset $ac_var ;;
1771
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1772
*${as_nl}ac_space=\ *)
1774
"s/'\''/'\''\\\\'\'''\''/g;
1775
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1778
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1786
## ----------------- ##
1787
## Output variables. ##
1788
## ----------------- ##
1791
for ac_var in $ac_subst_vars
1793
eval ac_val=\$$ac_var
1795
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1797
echo "$ac_var='\''$ac_val'\''"
1801
if test -n "$ac_subst_files"; then
1803
## ------------------- ##
1804
## File substitutions. ##
1805
## ------------------- ##
1808
for ac_var in $ac_subst_files
1810
eval ac_val=\$$ac_var
1812
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814
echo "$ac_var='\''$ac_val'\''"
1819
if test -s confdefs.h; then
1829
test "$ac_signal" != 0 &&
1830
echo "$as_me: caught signal $ac_signal"
1831
echo "$as_me: exit $exit_status"
1833
rm -f core *.core core.conftest.* &&
1834
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1837
for ac_signal in 1 2 13 15; do
1838
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1842
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1843
rm -f -r conftest* confdefs.h
1845
# Predefined preprocessor variables.
1847
cat >>confdefs.h <<_ACEOF
1848
#define PACKAGE_NAME "$PACKAGE_NAME"
1852
cat >>confdefs.h <<_ACEOF
1853
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1857
cat >>confdefs.h <<_ACEOF
1858
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1862
cat >>confdefs.h <<_ACEOF
1863
#define PACKAGE_STRING "$PACKAGE_STRING"
1867
cat >>confdefs.h <<_ACEOF
1868
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1872
# Let the site file select an alternate cache file if it wants to.
1873
# Prefer explicitly selected file to automatically selected ones.
1874
if test -n "$CONFIG_SITE"; then
1875
set x "$CONFIG_SITE"
1876
elif test "x$prefix" != xNONE; then
1877
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1879
set x "$ac_default_prefix/share/config.site" \
1880
"$ac_default_prefix/etc/config.site"
1885
if test -r "$ac_site_file"; then
1886
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1887
echo "$as_me: loading site script $ac_site_file" >&6;}
1888
sed 's/^/| /' "$ac_site_file" >&5
1893
if test -r "$cache_file"; then
1894
# Some versions of bash will fail to source /dev/null (special
1895
# files actually), so we avoid doing that.
1896
if test -f "$cache_file"; then
1897
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1898
echo "$as_me: loading cache $cache_file" >&6;}
1900
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1901
*) . "./$cache_file";;
1905
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1906
echo "$as_me: creating cache $cache_file" >&6;}
1910
# Check that the precious variables saved in the cache have kept the same
1912
ac_cache_corrupted=false
1913
for ac_var in $ac_precious_vars; do
1914
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1915
eval ac_new_set=\$ac_env_${ac_var}_set
1916
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1917
eval ac_new_val=\$ac_env_${ac_var}_value
1918
case $ac_old_set,$ac_new_set in
1920
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1921
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1922
ac_cache_corrupted=: ;;
1924
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1925
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1926
ac_cache_corrupted=: ;;
1929
if test "x$ac_old_val" != "x$ac_new_val"; then
1930
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1931
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1932
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1933
echo "$as_me: former value: $ac_old_val" >&2;}
1934
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1935
echo "$as_me: current value: $ac_new_val" >&2;}
1936
ac_cache_corrupted=:
1939
# Pass precious variables to config.status.
1940
if test "$ac_new_set" = set; then
1942
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1943
*) ac_arg=$ac_var=$ac_new_val ;;
1945
case " $ac_configure_args " in
1946
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1947
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1951
if $ac_cache_corrupted; then
1952
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1953
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1954
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1955
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1956
{ (exit 1); exit 1; }; }
1984
ac_cpp='$CPP $CPPFLAGS'
1985
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1992
ac_config_headers="$ac_config_headers config.h:config.h.in"
1994
am__api_version="1.9"
1996
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1997
if test -f "$ac_dir/install-sh"; then
1999
ac_install_sh="$ac_aux_dir/install-sh -c"
2001
elif test -f "$ac_dir/install.sh"; then
2003
ac_install_sh="$ac_aux_dir/install.sh -c"
2005
elif test -f "$ac_dir/shtool"; then
2007
ac_install_sh="$ac_aux_dir/shtool install -c"
2011
if test -z "$ac_aux_dir"; then
2012
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2013
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2014
{ (exit 1); exit 1; }; }
2017
# These three variables are undocumented and unsupported,
2018
# and are intended to be withdrawn in a future Autoconf release.
2019
# They can cause serious problems if a builder's source tree is in a directory
2020
# whose full name contains unusual characters.
2021
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2022
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2023
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2026
# Find a good install program. We prefer a C program (faster),
2027
# so one script is as good as another. But avoid the broken or
2028
# incompatible versions:
2029
# SysV /etc/install, /usr/sbin/install
2030
# SunOS /usr/etc/install
2031
# IRIX /sbin/install
2033
# AmigaOS /C/install, which installs bootblocks on floppy discs
2034
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2035
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2036
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2037
# OS/2's system install, which has a completely different semantic
2038
# ./install, which can be erroneously created by make from ./install.sh.
2039
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2040
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2041
if test -z "$INSTALL"; then
2042
if test "${ac_cv_path_install+set}" = set; then
2043
echo $ECHO_N "(cached) $ECHO_C" >&6
2045
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049
test -z "$as_dir" && as_dir=.
2050
# Account for people who put trailing slashes in PATH elements.
2052
./ | .// | /cC/* | \
2053
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2054
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2057
# OSF1 and SCO ODT 3.0 have their own names for install.
2058
# Don't use installbsd from OSF since it installs stuff as root
2060
for ac_prog in ginstall scoinst install; do
2061
for ac_exec_ext in '' $ac_executable_extensions; do
2062
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2063
if test $ac_prog = install &&
2064
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2065
# AIX install. It has an incompatible calling convention.
2067
elif test $ac_prog = install &&
2068
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2069
# program-specific install script used by HP pwplus--don't use.
2072
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2085
if test "${ac_cv_path_install+set}" = set; then
2086
INSTALL=$ac_cv_path_install
2088
# As a last resort, use the slow shell script. Don't cache a
2089
# value for INSTALL within a source directory, because that will
2090
# break other packages using the cache if that directory is
2091
# removed, or if the value is a relative name.
2092
INSTALL=$ac_install_sh
2095
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2096
echo "${ECHO_T}$INSTALL" >&6; }
2098
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2099
# It thinks the first close brace ends the variable substitution.
2100
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2102
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2104
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2106
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2107
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2110
echo timestamp > conftest.file
2111
# Do `set' in a subshell so we don't clobber the current shell's
2112
# arguments. Must try -L first in case configure is actually a
2113
# symlink; some systems play weird games with the mod time of symlinks
2114
# (eg FreeBSD returns the mod time of the symlink's containing
2117
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2118
if test "$*" = "X"; then
2120
set X `ls -t $srcdir/configure conftest.file`
2123
if test "$*" != "X $srcdir/configure conftest.file" \
2124
&& test "$*" != "X conftest.file $srcdir/configure"; then
2126
# If neither matched, then we have a broken ls. This can happen
2127
# if, for instance, CONFIG_SHELL is bash and it inherits a
2128
# broken ls alias from the environment. This has actually
2129
# happened. Such a system could not be considered "sane".
2130
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2131
alias in your environment" >&5
2132
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2133
alias in your environment" >&2;}
2134
{ (exit 1); exit 1; }; }
2137
test "$2" = conftest.file
2143
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2144
Check your system clock" >&5
2145
echo "$as_me: error: newly created file is older than distributed files!
2146
Check your system clock" >&2;}
2147
{ (exit 1); exit 1; }; }
2149
{ echo "$as_me:$LINENO: result: yes" >&5
2150
echo "${ECHO_T}yes" >&6; }
2151
test "$program_prefix" != NONE &&
2152
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2153
# Use a double $ so make ignores it.
2154
test "$program_suffix" != NONE &&
2155
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2156
# Double any \ or $. echo might interpret backslashes.
2157
# By default was `s,x,x', remove it if useless.
2158
cat <<\_ACEOF >conftest.sed
2159
s/[\\$]/&&/g;s/;s,x,x,$//
2161
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2164
# expand $ac_aux_dir to an absolute path
2165
am_aux_dir=`cd $ac_aux_dir && pwd`
2167
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2168
# Use eval to expand $SHELL
2169
if eval "$MISSING --run true"; then
2170
am_missing_run="$MISSING --run "
2173
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2174
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2177
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2178
# We used to keeping the `.' as first argument, in order to
2179
# allow $(mkdir_p) to be used without argument. As in
2180
# $(mkdir_p) $(somedir)
2181
# where $(somedir) is conditionally defined. However this is wrong
2183
# 1. if the package is installed by a user who cannot write `.'
2184
# make install will fail,
2185
# 2. the above comment should most certainly read
2186
# $(mkdir_p) $(DESTDIR)$(somedir)
2187
# so it does not work when $(somedir) is undefined and
2188
# $(DESTDIR) is not.
2189
# To support the latter case, we have to write
2190
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2191
# so the `.' trick is pointless.
2192
mkdir_p='mkdir -p --'
2194
# On NextStep and OpenStep, the `mkdir' command does not
2195
# recognize any option. It will interpret all options as
2196
# directories to create, and then abort because `.' already
2198
for d in ./-p ./--version;
2200
test -d $d && rmdir $d
2202
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2203
if test -f "$ac_aux_dir/mkinstalldirs"; then
2204
mkdir_p='$(mkinstalldirs)'
2206
mkdir_p='$(install_sh) -d'
2210
for ac_prog in gawk mawk nawk awk
2212
# Extract the first word of "$ac_prog", so it can be a program name with args.
2213
set dummy $ac_prog; ac_word=$2
2214
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2215
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2216
if test "${ac_cv_prog_AWK+set}" = set; then
2217
echo $ECHO_N "(cached) $ECHO_C" >&6
2219
if test -n "$AWK"; then
2220
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2222
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226
test -z "$as_dir" && as_dir=.
2227
for ac_exec_ext in '' $ac_executable_extensions; do
2228
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2229
ac_cv_prog_AWK="$ac_prog"
2230
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240
if test -n "$AWK"; then
2241
{ echo "$as_me:$LINENO: result: $AWK" >&5
2242
echo "${ECHO_T}$AWK" >&6; }
2244
{ echo "$as_me:$LINENO: result: no" >&5
2245
echo "${ECHO_T}no" >&6; }
2249
test -n "$AWK" && break
2252
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2253
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2254
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2255
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2256
echo $ECHO_N "(cached) $ECHO_C" >&6
2258
cat >conftest.make <<\_ACEOF
2261
@echo '@@@%%%=$(MAKE)=@@@%%%'
2263
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2264
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2266
eval ac_cv_prog_make_${ac_make}_set=yes;;
2268
eval ac_cv_prog_make_${ac_make}_set=no;;
2272
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2273
{ echo "$as_me:$LINENO: result: yes" >&5
2274
echo "${ECHO_T}yes" >&6; }
2277
{ echo "$as_me:$LINENO: result: no" >&5
2278
echo "${ECHO_T}no" >&6; }
2279
SET_MAKE="MAKE=${MAKE-make}"
2282
rm -rf .tst 2>/dev/null
2283
mkdir .tst 2>/dev/null
2284
if test -d .tst; then
2289
rmdir .tst 2>/dev/null
2291
# test to see if srcdir already configured
2292
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2293
test -f $srcdir/config.status; then
2294
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2295
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2296
{ (exit 1); exit 1; }; }
2299
# test whether we have cygpath
2300
if test -z "$CYGPATH_W"; then
2301
if (cygpath --version) >/dev/null 2>/dev/null; then
2302
CYGPATH_W='cygpath -w'
2309
# Define the identity of the package.
2310
PACKAGE='cryptsetup'
2314
cat >>confdefs.h <<_ACEOF
2315
#define PACKAGE "$PACKAGE"
2319
cat >>confdefs.h <<_ACEOF
2320
#define VERSION "$VERSION"
2323
# Some tools Automake needs.
2325
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2328
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2331
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2334
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2337
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2339
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2341
# Installed binaries are usually stripped using `strip' when the user
2342
# run `make install-strip'. However `strip' might not be the right
2343
# tool to use in cross-compilation environments, therefore Automake
2344
# will honor the `STRIP' environment variable to overrule this program.
2345
if test "$cross_compiling" != no; then
2346
if test -n "$ac_tool_prefix"; then
2347
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2348
set dummy ${ac_tool_prefix}strip; ac_word=$2
2349
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2350
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351
if test "${ac_cv_prog_STRIP+set}" = set; then
2352
echo $ECHO_N "(cached) $ECHO_C" >&6
2354
if test -n "$STRIP"; then
2355
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2357
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361
test -z "$as_dir" && as_dir=.
2362
for ac_exec_ext in '' $ac_executable_extensions; do
2363
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2365
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374
STRIP=$ac_cv_prog_STRIP
2375
if test -n "$STRIP"; then
2376
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2377
echo "${ECHO_T}$STRIP" >&6; }
2379
{ echo "$as_me:$LINENO: result: no" >&5
2380
echo "${ECHO_T}no" >&6; }
2385
if test -z "$ac_cv_prog_STRIP"; then
2387
# Extract the first word of "strip", so it can be a program name with args.
2388
set dummy strip; ac_word=$2
2389
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2390
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2392
echo $ECHO_N "(cached) $ECHO_C" >&6
2394
if test -n "$ac_ct_STRIP"; then
2395
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2397
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401
test -z "$as_dir" && as_dir=.
2402
for ac_exec_ext in '' $ac_executable_extensions; do
2403
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404
ac_cv_prog_ac_ct_STRIP="strip"
2405
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2415
if test -n "$ac_ct_STRIP"; then
2416
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2417
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2419
{ echo "$as_me:$LINENO: result: no" >&5
2420
echo "${ECHO_T}no" >&6; }
2423
if test "x$ac_ct_STRIP" = x; then
2426
case $cross_compiling:$ac_tool_warned in
2428
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429
whose name does not start with the host triplet. If you think this
2430
configuration is useful to you, please write to autoconf@gnu.org." >&5
2431
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432
whose name does not start with the host triplet. If you think this
2433
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2434
ac_tool_warned=yes ;;
2439
STRIP="$ac_cv_prog_STRIP"
2443
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2445
# We need awk for the "check" target. The system "awk" is bad on
2447
# Always define AMTAR for backward compatibility.
2449
AMTAR=${AMTAR-"${am_missing_run}tar"}
2451
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2458
if test "x$prefix" = "xNONE"; then
2463
# Make sure we can run config.sub.
2464
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2465
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2466
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2467
{ (exit 1); exit 1; }; }
2469
{ echo "$as_me:$LINENO: checking build system type" >&5
2470
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2471
if test "${ac_cv_build+set}" = set; then
2472
echo $ECHO_N "(cached) $ECHO_C" >&6
2474
ac_build_alias=$build_alias
2475
test "x$ac_build_alias" = x &&
2476
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2477
test "x$ac_build_alias" = x &&
2478
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2479
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2480
{ (exit 1); exit 1; }; }
2481
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2482
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2483
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2484
{ (exit 1); exit 1; }; }
2487
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2488
echo "${ECHO_T}$ac_cv_build" >&6; }
2489
case $ac_cv_build in
2491
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2492
echo "$as_me: error: invalid value of canonical build" >&2;}
2493
{ (exit 1); exit 1; }; };;
2496
ac_save_IFS=$IFS; IFS='-'
2502
# Remember, the first character of IFS is used to create $*,
2503
# except with old shells:
2506
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2509
{ echo "$as_me:$LINENO: checking host system type" >&5
2510
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2511
if test "${ac_cv_host+set}" = set; then
2512
echo $ECHO_N "(cached) $ECHO_C" >&6
2514
if test "x$host_alias" = x; then
2515
ac_cv_host=$ac_cv_build
2517
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2518
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2519
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2520
{ (exit 1); exit 1; }; }
2524
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2525
echo "${ECHO_T}$ac_cv_host" >&6; }
2528
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2529
echo "$as_me: error: invalid value of canonical host" >&2;}
2530
{ (exit 1); exit 1; }; };;
2533
ac_save_IFS=$IFS; IFS='-'
2539
# Remember, the first character of IFS is used to create $*,
2540
# except with old shells:
2543
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2547
cat >>confdefs.h <<\_ACEOF
2548
#define _GNU_SOURCE 1
2553
ac_cpp='$CPP $CPPFLAGS'
2554
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557
if test -n "$ac_tool_prefix"; then
2558
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2559
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2560
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2561
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2562
if test "${ac_cv_prog_CC+set}" = set; then
2563
echo $ECHO_N "(cached) $ECHO_C" >&6
2565
if test -n "$CC"; then
2566
ac_cv_prog_CC="$CC" # Let the user override the test.
2568
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572
test -z "$as_dir" && as_dir=.
2573
for ac_exec_ext in '' $ac_executable_extensions; do
2574
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2576
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586
if test -n "$CC"; then
2587
{ echo "$as_me:$LINENO: result: $CC" >&5
2588
echo "${ECHO_T}$CC" >&6; }
2590
{ echo "$as_me:$LINENO: result: no" >&5
2591
echo "${ECHO_T}no" >&6; }
2596
if test -z "$ac_cv_prog_CC"; then
2598
# Extract the first word of "gcc", so it can be a program name with args.
2599
set dummy gcc; ac_word=$2
2600
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2601
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2603
echo $ECHO_N "(cached) $ECHO_C" >&6
2605
if test -n "$ac_ct_CC"; then
2606
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612
test -z "$as_dir" && as_dir=.
2613
for ac_exec_ext in '' $ac_executable_extensions; do
2614
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615
ac_cv_prog_ac_ct_CC="gcc"
2616
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2626
if test -n "$ac_ct_CC"; then
2627
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2628
echo "${ECHO_T}$ac_ct_CC" >&6; }
2630
{ echo "$as_me:$LINENO: result: no" >&5
2631
echo "${ECHO_T}no" >&6; }
2634
if test "x$ac_ct_CC" = x; then
2637
case $cross_compiling:$ac_tool_warned in
2639
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2640
whose name does not start with the host triplet. If you think this
2641
configuration is useful to you, please write to autoconf@gnu.org." >&5
2642
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2643
whose name does not start with the host triplet. If you think this
2644
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2645
ac_tool_warned=yes ;;
2653
if test -z "$CC"; then
2654
if test -n "$ac_tool_prefix"; then
2655
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2656
set dummy ${ac_tool_prefix}cc; ac_word=$2
2657
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2658
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2659
if test "${ac_cv_prog_CC+set}" = set; then
2660
echo $ECHO_N "(cached) $ECHO_C" >&6
2662
if test -n "$CC"; then
2663
ac_cv_prog_CC="$CC" # Let the user override the test.
2665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669
test -z "$as_dir" && as_dir=.
2670
for ac_exec_ext in '' $ac_executable_extensions; do
2671
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672
ac_cv_prog_CC="${ac_tool_prefix}cc"
2673
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2683
if test -n "$CC"; then
2684
{ echo "$as_me:$LINENO: result: $CC" >&5
2685
echo "${ECHO_T}$CC" >&6; }
2687
{ echo "$as_me:$LINENO: result: no" >&5
2688
echo "${ECHO_T}no" >&6; }
2694
if test -z "$CC"; then
2695
# Extract the first word of "cc", so it can be a program name with args.
2696
set dummy cc; ac_word=$2
2697
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2698
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2699
if test "${ac_cv_prog_CC+set}" = set; then
2700
echo $ECHO_N "(cached) $ECHO_C" >&6
2702
if test -n "$CC"; then
2703
ac_cv_prog_CC="$CC" # Let the user override the test.
2706
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710
test -z "$as_dir" && as_dir=.
2711
for ac_exec_ext in '' $ac_executable_extensions; do
2712
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2714
ac_prog_rejected=yes
2718
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725
if test $ac_prog_rejected = yes; then
2726
# We found a bogon in the path, so make sure we never use it.
2727
set dummy $ac_cv_prog_CC
2729
if test $# != 0; then
2730
# We chose a different compiler from the bogus one.
2731
# However, it has the same basename, so the bogon will be chosen
2732
# first if we set CC to just the basename; use the full file name.
2734
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2740
if test -n "$CC"; then
2741
{ echo "$as_me:$LINENO: result: $CC" >&5
2742
echo "${ECHO_T}$CC" >&6; }
2744
{ echo "$as_me:$LINENO: result: no" >&5
2745
echo "${ECHO_T}no" >&6; }
2750
if test -z "$CC"; then
2751
if test -n "$ac_tool_prefix"; then
2752
for ac_prog in cl.exe
2754
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2755
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2756
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2757
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2758
if test "${ac_cv_prog_CC+set}" = set; then
2759
echo $ECHO_N "(cached) $ECHO_C" >&6
2761
if test -n "$CC"; then
2762
ac_cv_prog_CC="$CC" # Let the user override the test.
2764
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768
test -z "$as_dir" && as_dir=.
2769
for ac_exec_ext in '' $ac_executable_extensions; do
2770
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2772
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2782
if test -n "$CC"; then
2783
{ echo "$as_me:$LINENO: result: $CC" >&5
2784
echo "${ECHO_T}$CC" >&6; }
2786
{ echo "$as_me:$LINENO: result: no" >&5
2787
echo "${ECHO_T}no" >&6; }
2791
test -n "$CC" && break
2794
if test -z "$CC"; then
2796
for ac_prog in cl.exe
2798
# Extract the first word of "$ac_prog", so it can be a program name with args.
2799
set dummy $ac_prog; ac_word=$2
2800
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2801
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2802
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2803
echo $ECHO_N "(cached) $ECHO_C" >&6
2805
if test -n "$ac_ct_CC"; then
2806
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2808
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812
test -z "$as_dir" && as_dir=.
2813
for ac_exec_ext in '' $ac_executable_extensions; do
2814
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815
ac_cv_prog_ac_ct_CC="$ac_prog"
2816
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2826
if test -n "$ac_ct_CC"; then
2827
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2828
echo "${ECHO_T}$ac_ct_CC" >&6; }
2830
{ echo "$as_me:$LINENO: result: no" >&5
2831
echo "${ECHO_T}no" >&6; }
2835
test -n "$ac_ct_CC" && break
2838
if test "x$ac_ct_CC" = x; then
2841
case $cross_compiling:$ac_tool_warned in
2843
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2844
whose name does not start with the host triplet. If you think this
2845
configuration is useful to you, please write to autoconf@gnu.org." >&5
2846
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2847
whose name does not start with the host triplet. If you think this
2848
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2849
ac_tool_warned=yes ;;
2858
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2859
See \`config.log' for more details." >&5
2860
echo "$as_me: error: no acceptable C compiler found in \$PATH
2861
See \`config.log' for more details." >&2;}
2862
{ (exit 1); exit 1; }; }
2864
# Provide some information about the compiler.
2865
echo "$as_me:$LINENO: checking for C compiler version" >&5
2866
ac_compiler=`set X $ac_compile; echo $2`
2867
{ (ac_try="$ac_compiler --version >&5"
2869
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870
*) ac_try_echo=$ac_try;;
2872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2873
(eval "$ac_compiler --version >&5") 2>&5
2875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876
(exit $ac_status); }
2877
{ (ac_try="$ac_compiler -v >&5"
2879
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880
*) ac_try_echo=$ac_try;;
2882
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883
(eval "$ac_compiler -v >&5") 2>&5
2885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886
(exit $ac_status); }
2887
{ (ac_try="$ac_compiler -V >&5"
2889
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890
*) ac_try_echo=$ac_try;;
2892
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893
(eval "$ac_compiler -V >&5") 2>&5
2895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896
(exit $ac_status); }
2898
cat >conftest.$ac_ext <<_ACEOF
2901
cat confdefs.h >>conftest.$ac_ext
2902
cat >>conftest.$ac_ext <<_ACEOF
2903
/* end confdefs.h. */
2913
ac_clean_files_save=$ac_clean_files
2914
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2915
# Try to create an executable without -o first, disregard a.out.
2916
# It will help us diagnose broken compilers, and finding out an intuition
2918
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2919
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2920
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2922
# List of possible output files, starting from the most likely.
2923
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2924
# only as a last resort. b.out is created by i960 compilers.
2925
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2927
# The IRIX 6 linker writes into existing files which may not be
2928
# executable, retaining their permissions. Remove them first so a
2929
# subsequent execution test works.
2931
for ac_file in $ac_files
2934
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2935
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2940
if { (ac_try="$ac_link_default"
2942
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943
*) ac_try_echo=$ac_try;;
2945
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946
(eval "$ac_link_default") 2>&5
2948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949
(exit $ac_status); }; then
2950
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2951
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2952
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2953
# so that the user can short-circuit this test for compilers unknown to
2955
for ac_file in $ac_files ''
2957
test -f "$ac_file" || continue
2959
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2962
# We found the default executable, but exeext='' is most
2966
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2968
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2970
# We set ac_cv_exeext here because the later test for it is not
2971
# safe: cross compilers may not add the suffix if given an `-o'
2972
# argument, so we may need to know it at that point already.
2973
# Even if this section looks crufty: it has the advantage of
2980
test "$ac_cv_exeext" = no && ac_cv_exeext=
2986
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2987
echo "${ECHO_T}$ac_file" >&6; }
2988
if test -z "$ac_file"; then
2989
echo "$as_me: failed program was:" >&5
2990
sed 's/^/| /' conftest.$ac_ext >&5
2992
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2993
See \`config.log' for more details." >&5
2994
echo "$as_me: error: C compiler cannot create executables
2995
See \`config.log' for more details." >&2;}
2996
{ (exit 77); exit 77; }; }
2999
ac_exeext=$ac_cv_exeext
3001
# Check that the compiler produces executables we can run. If not, either
3002
# the compiler is broken, or we cross compile.
3003
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3004
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3005
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3006
# If not cross compiling, check that we can run a simple program.
3007
if test "$cross_compiling" != yes; then
3008
if { ac_try='./$ac_file'
3009
{ (case "(($ac_try" in
3010
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011
*) ac_try_echo=$ac_try;;
3013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014
(eval "$ac_try") 2>&5
3016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017
(exit $ac_status); }; }; then
3020
if test "$cross_compiling" = maybe; then
3023
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3024
If you meant to cross compile, use \`--host'.
3025
See \`config.log' for more details." >&5
3026
echo "$as_me: error: cannot run C compiled programs.
3027
If you meant to cross compile, use \`--host'.
3028
See \`config.log' for more details." >&2;}
3029
{ (exit 1); exit 1; }; }
3033
{ echo "$as_me:$LINENO: result: yes" >&5
3034
echo "${ECHO_T}yes" >&6; }
3036
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3037
ac_clean_files=$ac_clean_files_save
3038
# Check that the compiler produces executables we can run. If not, either
3039
# the compiler is broken, or we cross compile.
3040
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3041
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3042
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3043
echo "${ECHO_T}$cross_compiling" >&6; }
3045
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3046
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3047
if { (ac_try="$ac_link"
3049
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050
*) ac_try_echo=$ac_try;;
3052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053
(eval "$ac_link") 2>&5
3055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056
(exit $ac_status); }; then
3057
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3058
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3059
# work properly (i.e., refer to `conftest.exe'), while it won't with
3061
for ac_file in conftest.exe conftest conftest.*; do
3062
test -f "$ac_file" || continue
3064
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3065
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3072
See \`config.log' for more details." >&5
3073
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3074
See \`config.log' for more details." >&2;}
3075
{ (exit 1); exit 1; }; }
3078
rm -f conftest$ac_cv_exeext
3079
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3080
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3082
rm -f conftest.$ac_ext
3083
EXEEXT=$ac_cv_exeext
3085
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3086
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3087
if test "${ac_cv_objext+set}" = set; then
3088
echo $ECHO_N "(cached) $ECHO_C" >&6
3090
cat >conftest.$ac_ext <<_ACEOF
3093
cat confdefs.h >>conftest.$ac_ext
3094
cat >>conftest.$ac_ext <<_ACEOF
3095
/* end confdefs.h. */
3105
rm -f conftest.o conftest.obj
3106
if { (ac_try="$ac_compile"
3108
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109
*) ac_try_echo=$ac_try;;
3111
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112
(eval "$ac_compile") 2>&5
3114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115
(exit $ac_status); }; then
3116
for ac_file in conftest.o conftest.obj conftest.*; do
3117
test -f "$ac_file" || continue;
3119
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3120
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3125
echo "$as_me: failed program was:" >&5
3126
sed 's/^/| /' conftest.$ac_ext >&5
3128
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3129
See \`config.log' for more details." >&5
3130
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3131
See \`config.log' for more details." >&2;}
3132
{ (exit 1); exit 1; }; }
3135
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3137
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3138
echo "${ECHO_T}$ac_cv_objext" >&6; }
3139
OBJEXT=$ac_cv_objext
3141
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3142
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3143
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3144
echo $ECHO_N "(cached) $ECHO_C" >&6
3146
cat >conftest.$ac_ext <<_ACEOF
3149
cat confdefs.h >>conftest.$ac_ext
3150
cat >>conftest.$ac_ext <<_ACEOF
3151
/* end confdefs.h. */
3164
rm -f conftest.$ac_objext
3165
if { (ac_try="$ac_compile"
3167
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168
*) ac_try_echo=$ac_try;;
3170
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171
(eval "$ac_compile") 2>conftest.er1
3173
grep -v '^ *+' conftest.er1 >conftest.err
3175
cat conftest.err >&5
3176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177
(exit $ac_status); } && {
3178
test -z "$ac_c_werror_flag" ||
3179
test ! -s conftest.err
3180
} && test -s conftest.$ac_objext; then
3183
echo "$as_me: failed program was:" >&5
3184
sed 's/^/| /' conftest.$ac_ext >&5
3189
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3193
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3194
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3195
GCC=`test $ac_compiler_gnu = yes && echo yes`
3196
ac_test_CFLAGS=${CFLAGS+set}
3197
ac_save_CFLAGS=$CFLAGS
3198
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3199
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3200
if test "${ac_cv_prog_cc_g+set}" = set; then
3201
echo $ECHO_N "(cached) $ECHO_C" >&6
3203
ac_save_c_werror_flag=$ac_c_werror_flag
3204
ac_c_werror_flag=yes
3207
cat >conftest.$ac_ext <<_ACEOF
3210
cat confdefs.h >>conftest.$ac_ext
3211
cat >>conftest.$ac_ext <<_ACEOF
3212
/* end confdefs.h. */
3222
rm -f conftest.$ac_objext
3223
if { (ac_try="$ac_compile"
3225
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226
*) ac_try_echo=$ac_try;;
3228
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229
(eval "$ac_compile") 2>conftest.er1
3231
grep -v '^ *+' conftest.er1 >conftest.err
3233
cat conftest.err >&5
3234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235
(exit $ac_status); } && {
3236
test -z "$ac_c_werror_flag" ||
3237
test ! -s conftest.err
3238
} && test -s conftest.$ac_objext; then
3241
echo "$as_me: failed program was:" >&5
3242
sed 's/^/| /' conftest.$ac_ext >&5
3245
cat >conftest.$ac_ext <<_ACEOF
3248
cat confdefs.h >>conftest.$ac_ext
3249
cat >>conftest.$ac_ext <<_ACEOF
3250
/* end confdefs.h. */
3260
rm -f conftest.$ac_objext
3261
if { (ac_try="$ac_compile"
3263
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264
*) ac_try_echo=$ac_try;;
3266
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3267
(eval "$ac_compile") 2>conftest.er1
3269
grep -v '^ *+' conftest.er1 >conftest.err
3271
cat conftest.err >&5
3272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273
(exit $ac_status); } && {
3274
test -z "$ac_c_werror_flag" ||
3275
test ! -s conftest.err
3276
} && test -s conftest.$ac_objext; then
3279
echo "$as_me: failed program was:" >&5
3280
sed 's/^/| /' conftest.$ac_ext >&5
3282
ac_c_werror_flag=$ac_save_c_werror_flag
3284
cat >conftest.$ac_ext <<_ACEOF
3287
cat confdefs.h >>conftest.$ac_ext
3288
cat >>conftest.$ac_ext <<_ACEOF
3289
/* end confdefs.h. */
3299
rm -f conftest.$ac_objext
3300
if { (ac_try="$ac_compile"
3302
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303
*) ac_try_echo=$ac_try;;
3305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306
(eval "$ac_compile") 2>conftest.er1
3308
grep -v '^ *+' conftest.er1 >conftest.err
3310
cat conftest.err >&5
3311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312
(exit $ac_status); } && {
3313
test -z "$ac_c_werror_flag" ||
3314
test ! -s conftest.err
3315
} && test -s conftest.$ac_objext; then
3318
echo "$as_me: failed program was:" >&5
3319
sed 's/^/| /' conftest.$ac_ext >&5
3324
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331
ac_c_werror_flag=$ac_save_c_werror_flag
3333
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3334
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3335
if test "$ac_test_CFLAGS" = set; then
3336
CFLAGS=$ac_save_CFLAGS
3337
elif test $ac_cv_prog_cc_g = yes; then
3338
if test "$GCC" = yes; then
3344
if test "$GCC" = yes; then
3350
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3351
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3352
if test "${ac_cv_prog_cc_c89+set}" = set; then
3353
echo $ECHO_N "(cached) $ECHO_C" >&6
3355
ac_cv_prog_cc_c89=no
3357
cat >conftest.$ac_ext <<_ACEOF
3360
cat confdefs.h >>conftest.$ac_ext
3361
cat >>conftest.$ac_ext <<_ACEOF
3362
/* end confdefs.h. */
3365
#include <sys/types.h>
3366
#include <sys/stat.h>
3367
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3368
struct buf { int x; };
3369
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3370
static char *e (p, i)
3376
static char *f (char * (*g) (char **, int), char **p, ...)
3381
s = g (p, va_arg (v,int));
3386
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3387
function prototypes and stuff, but not '\xHH' hex character constants.
3388
These don't provoke an error unfortunately, instead are silently treated
3389
as 'x'. The following induces an error, until -std is added to get
3390
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3391
array size at least. It's necessary to write '\x00'==0 to get something
3392
that's true only with -std. */
3393
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3395
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3396
inside strings and character constants. */
3398
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3400
int test (int i, double x);
3401
struct s1 {int (*f) (int a);};
3402
struct s2 {int (*f) (double a);};
3403
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3409
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3414
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3415
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3417
CC="$ac_save_CC $ac_arg"
3418
rm -f conftest.$ac_objext
3419
if { (ac_try="$ac_compile"
3421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422
*) ac_try_echo=$ac_try;;
3424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425
(eval "$ac_compile") 2>conftest.er1
3427
grep -v '^ *+' conftest.er1 >conftest.err
3429
cat conftest.err >&5
3430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431
(exit $ac_status); } && {
3432
test -z "$ac_c_werror_flag" ||
3433
test ! -s conftest.err
3434
} && test -s conftest.$ac_objext; then
3435
ac_cv_prog_cc_c89=$ac_arg
3437
echo "$as_me: failed program was:" >&5
3438
sed 's/^/| /' conftest.$ac_ext >&5
3443
rm -f core conftest.err conftest.$ac_objext
3444
test "x$ac_cv_prog_cc_c89" != "xno" && break
3446
rm -f conftest.$ac_ext
3451
case "x$ac_cv_prog_cc_c89" in
3453
{ echo "$as_me:$LINENO: result: none needed" >&5
3454
echo "${ECHO_T}none needed" >&6; } ;;
3456
{ echo "$as_me:$LINENO: result: unsupported" >&5
3457
echo "${ECHO_T}unsupported" >&6; } ;;
3459
CC="$CC $ac_cv_prog_cc_c89"
3460
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3461
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3466
ac_cpp='$CPP $CPPFLAGS'
3467
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470
DEPDIR="${am__leading_dot}deps"
3472
ac_config_commands="$ac_config_commands depfiles"
3475
am_make=${MAKE-make}
3476
cat > confinc << 'END'
3481
# If we don't find an include directive, just comment out the code.
3482
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3483
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3487
# First try GNU make style include.
3488
echo "include confinc" > confmf
3489
# We grep out `Entering directory' and `Leaving directory'
3490
# messages which can occur if `w' ends up in MAKEFLAGS.
3491
# In particular we don't look at `^make:' because GNU make might
3492
# be invoked under some other name (usually "gmake"), in which
3493
# case it prints its new name instead of `make'.
3494
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3499
# Now try BSD make style include.
3500
if test "$am__include" = "#"; then
3501
echo '.include "confinc"' > confmf
3502
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3503
am__include=.include
3510
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3511
echo "${ECHO_T}$_am_result" >&6; }
3512
rm -f confinc confmf
3514
# Check whether --enable-dependency-tracking was given.
3515
if test "${enable_dependency_tracking+set}" = set; then
3516
enableval=$enable_dependency_tracking;
3519
if test "x$enable_dependency_tracking" != xno; then
3520
am_depcomp="$ac_aux_dir/depcomp"
3525
if test "x$enable_dependency_tracking" != xno; then
3536
depcc="$CC" am_compiler_list=
3538
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3539
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3540
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3541
echo $ECHO_N "(cached) $ECHO_C" >&6
3543
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3544
# We make a subdir and do the tests there. Otherwise we can end up
3545
# making bogus files that we don't know about and never remove. For
3546
# instance it was reported that on HP-UX the gcc test will end up
3547
# making a dummy file named `D' -- because `-MD' means `put the output
3550
# Copy depcomp to subdir because otherwise we won't find it if we're
3551
# using a relative directory.
3552
cp "$am_depcomp" conftest.dir
3554
# We will build objects and dependencies in a subdirectory because
3555
# it helps to detect inapplicable dependency modes. For instance
3556
# both Tru64's cc and ICC support -MD to output dependencies as a
3557
# side effect of compilation, but ICC will put the dependencies in
3558
# the current directory while Tru64 will put them in the object
3562
am_cv_CC_dependencies_compiler_type=none
3563
if test "$am_compiler_list" = ""; then
3564
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3566
for depmode in $am_compiler_list; do
3567
# Setup a source with many dependencies, because some compilers
3568
# like to wrap large dependency lists on column 80 (with \), and
3569
# we should not choose a depcomp mode which is confused by this.
3571
# We need to recreate these files for each test, as the compiler may
3572
# overwrite some of them when testing with obscure command lines.
3573
# This happens at least with the AIX C compiler.
3575
for i in 1 2 3 4 5 6; do
3576
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3577
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3578
# Solaris 8's {/usr,}/bin/sh.
3579
touch sub/conftst$i.h
3581
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3585
# after this tag, mechanisms are not by side-effect, so they'll
3586
# only be used when explicitly requested
3587
if test "x$enable_dependency_tracking" = xyes; then
3595
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3596
# mode. It turns out that the SunPro C++ compiler does not properly
3597
# handle `-M -o', and we need to detect this.
3598
if depmode=$depmode \
3599
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3600
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3601
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3602
>/dev/null 2>conftest.err &&
3603
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3604
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3605
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3606
# icc doesn't choke on unknown options, it will just issue warnings
3607
# or remarks (even with -Werror). So we grep stderr for any message
3608
# that says an option was ignored or not supported.
3609
# When given -MP, icc 7.0 and 7.1 complain thusly:
3610
# icc: Command line warning: ignoring option '-M'; no argument required
3611
# The diagnosis changed in icc 8.0:
3612
# icc: Command line remark: option '-MP' not supported
3613
if (grep 'ignoring option' conftest.err ||
3614
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3615
am_cv_CC_dependencies_compiler_type=$depmode
3624
am_cv_CC_dependencies_compiler_type=none
3628
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3629
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3630
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3635
test "x$enable_dependency_tracking" != xno \
3636
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3638
am__fastdepCC_FALSE='#'
3640
am__fastdepCC_TRUE='#'
3641
am__fastdepCC_FALSE=
3646
ac_cpp='$CPP $CPPFLAGS'
3647
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3651
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3652
# On Suns, sometimes $CPP names a directory.
3653
if test -n "$CPP" && test -d "$CPP"; then
3656
if test -z "$CPP"; then
3657
if test "${ac_cv_prog_CPP+set}" = set; then
3658
echo $ECHO_N "(cached) $ECHO_C" >&6
3660
# Double quotes because CPP needs to be expanded
3661
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3664
for ac_c_preproc_warn_flag in '' yes
3666
# Use a header file that comes with gcc, so configuring glibc
3667
# with a fresh cross-compiler works.
3668
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3669
# <limits.h> exists even on freestanding compilers.
3670
# On the NeXT, cc -E runs the code through the compiler's parser,
3671
# not just through cpp. "Syntax error" is here to catch this case.
3672
cat >conftest.$ac_ext <<_ACEOF
3675
cat confdefs.h >>conftest.$ac_ext
3676
cat >>conftest.$ac_ext <<_ACEOF
3677
/* end confdefs.h. */
3679
# include <limits.h>
3681
# include <assert.h>
3685
if { (ac_try="$ac_cpp conftest.$ac_ext"
3687
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688
*) ac_try_echo=$ac_try;;
3690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3693
grep -v '^ *+' conftest.er1 >conftest.err
3695
cat conftest.err >&5
3696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697
(exit $ac_status); } >/dev/null && {
3698
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3699
test ! -s conftest.err
3703
echo "$as_me: failed program was:" >&5
3704
sed 's/^/| /' conftest.$ac_ext >&5
3706
# Broken: fails on valid input.
3710
rm -f conftest.err conftest.$ac_ext
3712
# OK, works on sane cases. Now check whether nonexistent headers
3713
# can be detected and how.
3714
cat >conftest.$ac_ext <<_ACEOF
3717
cat confdefs.h >>conftest.$ac_ext
3718
cat >>conftest.$ac_ext <<_ACEOF
3719
/* end confdefs.h. */
3720
#include <ac_nonexistent.h>
3722
if { (ac_try="$ac_cpp conftest.$ac_ext"
3724
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725
*) ac_try_echo=$ac_try;;
3727
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3730
grep -v '^ *+' conftest.er1 >conftest.err
3732
cat conftest.err >&5
3733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734
(exit $ac_status); } >/dev/null && {
3735
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3736
test ! -s conftest.err
3738
# Broken: success on invalid input.
3741
echo "$as_me: failed program was:" >&5
3742
sed 's/^/| /' conftest.$ac_ext >&5
3744
# Passes both tests.
3749
rm -f conftest.err conftest.$ac_ext
3752
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3753
rm -f conftest.err conftest.$ac_ext
3754
if $ac_preproc_ok; then
3766
{ echo "$as_me:$LINENO: result: $CPP" >&5
3767
echo "${ECHO_T}$CPP" >&6; }
3769
for ac_c_preproc_warn_flag in '' yes
3771
# Use a header file that comes with gcc, so configuring glibc
3772
# with a fresh cross-compiler works.
3773
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3774
# <limits.h> exists even on freestanding compilers.
3775
# On the NeXT, cc -E runs the code through the compiler's parser,
3776
# not just through cpp. "Syntax error" is here to catch this case.
3777
cat >conftest.$ac_ext <<_ACEOF
3780
cat confdefs.h >>conftest.$ac_ext
3781
cat >>conftest.$ac_ext <<_ACEOF
3782
/* end confdefs.h. */
3784
# include <limits.h>
3786
# include <assert.h>
3790
if { (ac_try="$ac_cpp conftest.$ac_ext"
3792
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793
*) ac_try_echo=$ac_try;;
3795
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3798
grep -v '^ *+' conftest.er1 >conftest.err
3800
cat conftest.err >&5
3801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802
(exit $ac_status); } >/dev/null && {
3803
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3804
test ! -s conftest.err
3808
echo "$as_me: failed program was:" >&5
3809
sed 's/^/| /' conftest.$ac_ext >&5
3811
# Broken: fails on valid input.
3815
rm -f conftest.err conftest.$ac_ext
3817
# OK, works on sane cases. Now check whether nonexistent headers
3818
# can be detected and how.
3819
cat >conftest.$ac_ext <<_ACEOF
3822
cat confdefs.h >>conftest.$ac_ext
3823
cat >>conftest.$ac_ext <<_ACEOF
3824
/* end confdefs.h. */
3825
#include <ac_nonexistent.h>
3827
if { (ac_try="$ac_cpp conftest.$ac_ext"
3829
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830
*) ac_try_echo=$ac_try;;
3832
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3835
grep -v '^ *+' conftest.er1 >conftest.err
3837
cat conftest.err >&5
3838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839
(exit $ac_status); } >/dev/null && {
3840
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3841
test ! -s conftest.err
3843
# Broken: success on invalid input.
3846
echo "$as_me: failed program was:" >&5
3847
sed 's/^/| /' conftest.$ac_ext >&5
3849
# Passes both tests.
3854
rm -f conftest.err conftest.$ac_ext
3857
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3858
rm -f conftest.err conftest.$ac_ext
3859
if $ac_preproc_ok; then
3862
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3863
See \`config.log' for more details." >&5
3864
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3865
See \`config.log' for more details." >&2;}
3866
{ (exit 1); exit 1; }; }
3870
ac_cpp='$CPP $CPPFLAGS'
3871
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875
# Find a good install program. We prefer a C program (faster),
3876
# so one script is as good as another. But avoid the broken or
3877
# incompatible versions:
3878
# SysV /etc/install, /usr/sbin/install
3879
# SunOS /usr/etc/install
3880
# IRIX /sbin/install
3882
# AmigaOS /C/install, which installs bootblocks on floppy discs
3883
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3884
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3885
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3886
# OS/2's system install, which has a completely different semantic
3887
# ./install, which can be erroneously created by make from ./install.sh.
3888
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3889
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3890
if test -z "$INSTALL"; then
3891
if test "${ac_cv_path_install+set}" = set; then
3892
echo $ECHO_N "(cached) $ECHO_C" >&6
3894
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898
test -z "$as_dir" && as_dir=.
3899
# Account for people who put trailing slashes in PATH elements.
3901
./ | .// | /cC/* | \
3902
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3903
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3906
# OSF1 and SCO ODT 3.0 have their own names for install.
3907
# Don't use installbsd from OSF since it installs stuff as root
3909
for ac_prog in ginstall scoinst install; do
3910
for ac_exec_ext in '' $ac_executable_extensions; do
3911
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3912
if test $ac_prog = install &&
3913
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3914
# AIX install. It has an incompatible calling convention.
3916
elif test $ac_prog = install &&
3917
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3918
# program-specific install script used by HP pwplus--don't use.
3921
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3934
if test "${ac_cv_path_install+set}" = set; then
3935
INSTALL=$ac_cv_path_install
3937
# As a last resort, use the slow shell script. Don't cache a
3938
# value for INSTALL within a source directory, because that will
3939
# break other packages using the cache if that directory is
3940
# removed, or if the value is a relative name.
3941
INSTALL=$ac_install_sh
3944
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3945
echo "${ECHO_T}$INSTALL" >&6; }
3947
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3948
# It thinks the first close brace ends the variable substitution.
3949
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3951
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3953
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3955
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3956
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3957
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3958
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3959
echo $ECHO_N "(cached) $ECHO_C" >&6
3961
cat >conftest.make <<\_ACEOF
3964
@echo '@@@%%%=$(MAKE)=@@@%%%'
3966
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3967
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3969
eval ac_cv_prog_make_${ac_make}_set=yes;;
3971
eval ac_cv_prog_make_${ac_make}_set=no;;
3975
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3976
{ echo "$as_me:$LINENO: result: yes" >&5
3977
echo "${ECHO_T}yes" >&6; }
3980
{ echo "$as_me:$LINENO: result: no" >&5
3981
echo "${ECHO_T}no" >&6; }
3982
SET_MAKE="MAKE=${MAKE-make}"
3985
# Check whether --enable-static was given.
3986
if test "${enable_static+set}" = set; then
3987
enableval=$enable_static; p=${PACKAGE-default}
3989
yes) enable_static=yes ;;
3990
no) enable_static=no ;;
3993
# Look at the argument we got. We use all the common list separators.
3994
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3995
for pkg in $enableval; do
3997
if test "X$pkg" = "X$p"; then
4009
# Check whether --enable-shared was given.
4010
if test "${enable_shared+set}" = set; then
4011
enableval=$enable_shared; p=${PACKAGE-default}
4013
yes) enable_shared=yes ;;
4014
no) enable_shared=no ;;
4017
# Look at the argument we got. We use all the common list separators.
4018
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4019
for pkg in $enableval; do
4021
if test "X$pkg" = "X$p"; then
4033
# Check whether --enable-fast-install was given.
4034
if test "${enable_fast_install+set}" = set; then
4035
enableval=$enable_fast_install; p=${PACKAGE-default}
4037
yes) enable_fast_install=yes ;;
4038
no) enable_fast_install=no ;;
4040
enable_fast_install=no
4041
# Look at the argument we got. We use all the common list separators.
4042
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4043
for pkg in $enableval; do
4045
if test "X$pkg" = "X$p"; then
4046
enable_fast_install=yes
4053
enable_fast_install=yes
4057
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4058
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4059
if test "${lt_cv_path_SED+set}" = set; then
4060
echo $ECHO_N "(cached) $ECHO_C" >&6
4062
# Loop through the user's path and test for sed and gsed.
4063
# Then use that list of sed's as ones to test for truncation.
4064
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068
test -z "$as_dir" && as_dir=.
4069
for lt_ac_prog in sed gsed; do
4070
for ac_exec_ext in '' $ac_executable_extensions; do
4071
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4072
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4080
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4081
# along with /bin/sed that truncates output.
4082
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4083
test ! -f $lt_ac_sed && continue
4084
cat /dev/null > conftest.in
4086
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4087
# Check for GNU sed and select it if it is found.
4088
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4089
lt_cv_path_SED=$lt_ac_sed
4093
cat conftest.in conftest.in >conftest.tmp
4094
mv conftest.tmp conftest.in
4095
cp conftest.in conftest.nl
4097
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4098
cmp -s conftest.out conftest.nl || break
4099
# 10000 chars as input seems more than enough
4100
test $lt_ac_count -gt 10 && break
4101
lt_ac_count=`expr $lt_ac_count + 1`
4102
if test $lt_ac_count -gt $lt_ac_max; then
4103
lt_ac_max=$lt_ac_count
4104
lt_cv_path_SED=$lt_ac_sed
4113
{ echo "$as_me:$LINENO: result: $SED" >&5
4114
echo "${ECHO_T}$SED" >&6; }
4116
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4117
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4118
if test "${ac_cv_path_GREP+set}" = set; then
4119
echo $ECHO_N "(cached) $ECHO_C" >&6
4121
# Extract the first word of "grep ggrep" to use in msg output
4122
if test -z "$GREP"; then
4123
set dummy grep ggrep; ac_prog_name=$2
4124
if test "${ac_cv_path_GREP+set}" = set; then
4125
echo $ECHO_N "(cached) $ECHO_C" >&6
4127
ac_path_GREP_found=false
4128
# Loop through the user's path and test for each of PROGNAME-LIST
4129
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4133
test -z "$as_dir" && as_dir=.
4134
for ac_prog in grep ggrep; do
4135
for ac_exec_ext in '' $ac_executable_extensions; do
4136
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4137
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4138
# Check for GNU ac_path_GREP and select it if it is found.
4139
# Check for GNU $ac_path_GREP
4140
case `"$ac_path_GREP" --version 2>&1` in
4142
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4145
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4148
cat "conftest.in" "conftest.in" >"conftest.tmp"
4149
mv "conftest.tmp" "conftest.in"
4150
cp "conftest.in" "conftest.nl"
4151
echo 'GREP' >> "conftest.nl"
4152
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4153
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4154
ac_count=`expr $ac_count + 1`
4155
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4156
# Best one so far, save it but keep looking for a better one
4157
ac_cv_path_GREP="$ac_path_GREP"
4158
ac_path_GREP_max=$ac_count
4160
# 10*(2^10) chars as input seems more than enough
4161
test $ac_count -gt 10 && break
4163
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4167
$ac_path_GREP_found && break 3
4177
GREP="$ac_cv_path_GREP"
4178
if test -z "$GREP"; then
4179
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4180
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4181
{ (exit 1); exit 1; }; }
4185
ac_cv_path_GREP=$GREP
4190
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4191
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4192
GREP="$ac_cv_path_GREP"
4195
{ echo "$as_me:$LINENO: checking for egrep" >&5
4196
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4197
if test "${ac_cv_path_EGREP+set}" = set; then
4198
echo $ECHO_N "(cached) $ECHO_C" >&6
4200
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4201
then ac_cv_path_EGREP="$GREP -E"
4203
# Extract the first word of "egrep" to use in msg output
4204
if test -z "$EGREP"; then
4205
set dummy egrep; ac_prog_name=$2
4206
if test "${ac_cv_path_EGREP+set}" = set; then
4207
echo $ECHO_N "(cached) $ECHO_C" >&6
4209
ac_path_EGREP_found=false
4210
# Loop through the user's path and test for each of PROGNAME-LIST
4211
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4215
test -z "$as_dir" && as_dir=.
4216
for ac_prog in egrep; do
4217
for ac_exec_ext in '' $ac_executable_extensions; do
4218
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4219
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4220
# Check for GNU ac_path_EGREP and select it if it is found.
4221
# Check for GNU $ac_path_EGREP
4222
case `"$ac_path_EGREP" --version 2>&1` in
4224
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4227
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4230
cat "conftest.in" "conftest.in" >"conftest.tmp"
4231
mv "conftest.tmp" "conftest.in"
4232
cp "conftest.in" "conftest.nl"
4233
echo 'EGREP' >> "conftest.nl"
4234
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4235
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4236
ac_count=`expr $ac_count + 1`
4237
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4238
# Best one so far, save it but keep looking for a better one
4239
ac_cv_path_EGREP="$ac_path_EGREP"
4240
ac_path_EGREP_max=$ac_count
4242
# 10*(2^10) chars as input seems more than enough
4243
test $ac_count -gt 10 && break
4245
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4249
$ac_path_EGREP_found && break 3
4259
EGREP="$ac_cv_path_EGREP"
4260
if test -z "$EGREP"; then
4261
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4262
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4263
{ (exit 1); exit 1; }; }
4267
ac_cv_path_EGREP=$EGREP
4273
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4274
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4275
EGREP="$ac_cv_path_EGREP"
4279
# Check whether --with-gnu-ld was given.
4280
if test "${with_gnu_ld+set}" = set; then
4281
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4287
if test "$GCC" = yes; then
4288
# Check if gcc -print-prog-name=ld gives a path.
4289
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4290
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4293
# gcc leaves a trailing carriage return which upsets mingw
4294
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4296
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4299
# Accept absolute paths.
4301
re_direlt='/[^/][^/]*/\.\./'
4302
# Canonicalize the pathname of ld
4303
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4304
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4305
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4307
test -z "$LD" && LD="$ac_prog"
4310
# If it fails, then pretend we aren't using GCC.
4314
# If it is relative, then search for the first ld in PATH.
4318
elif test "$with_gnu_ld" = yes; then
4319
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
4320
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4322
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4323
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4325
if test "${lt_cv_path_LD+set}" = set; then
4326
echo $ECHO_N "(cached) $ECHO_C" >&6
4328
if test -z "$LD"; then
4329
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4330
for ac_dir in $PATH; do
4332
test -z "$ac_dir" && ac_dir=.
4333
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4334
lt_cv_path_LD="$ac_dir/$ac_prog"
4335
# Check to see if the program is GNU ld. I'd rather use --version,
4336
# but apparently some variants of GNU ld only accept -v.
4337
# Break only if it was the GNU/non-GNU ld that we prefer.
4338
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4339
*GNU* | *'with BFD'*)
4340
test "$with_gnu_ld" != no && break
4343
test "$with_gnu_ld" != yes && break
4350
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4355
if test -n "$LD"; then
4356
{ echo "$as_me:$LINENO: result: $LD" >&5
4357
echo "${ECHO_T}$LD" >&6; }
4359
{ echo "$as_me:$LINENO: result: no" >&5
4360
echo "${ECHO_T}no" >&6; }
4362
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4363
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4364
{ (exit 1); exit 1; }; }
4365
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4366
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4367
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4368
echo $ECHO_N "(cached) $ECHO_C" >&6
4370
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4371
case `$LD -v 2>&1 </dev/null` in
4372
*GNU* | *'with BFD'*)
4373
lt_cv_prog_gnu_ld=yes
4376
lt_cv_prog_gnu_ld=no
4380
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4381
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4382
with_gnu_ld=$lt_cv_prog_gnu_ld
4385
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4386
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4387
if test "${lt_cv_ld_reload_flag+set}" = set; then
4388
echo $ECHO_N "(cached) $ECHO_C" >&6
4390
lt_cv_ld_reload_flag='-r'
4392
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4393
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4394
reload_flag=$lt_cv_ld_reload_flag
4395
case $reload_flag in
4397
*) reload_flag=" $reload_flag" ;;
4399
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4402
if test "$GCC" = yes; then
4403
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4405
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4410
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4411
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4412
if test "${lt_cv_path_NM+set}" = set; then
4413
echo $ECHO_N "(cached) $ECHO_C" >&6
4415
if test -n "$NM"; then
4416
# Let the user override the test.
4419
lt_nm_to_check="${ac_tool_prefix}nm"
4420
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4421
lt_nm_to_check="$lt_nm_to_check nm"
4423
for lt_tmp_nm in $lt_nm_to_check; do
4424
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4425
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4427
test -z "$ac_dir" && ac_dir=.
4428
tmp_nm="$ac_dir/$lt_tmp_nm"
4429
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4430
# Check to see if the nm accepts a BSD-compat flag.
4431
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4432
# nm: unknown option "B" ignored
4433
# Tru64's nm complains that /dev/null is an invalid object file
4434
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4435
*/dev/null* | *'Invalid file or object type'*)
4436
lt_cv_path_NM="$tmp_nm -B"
4440
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4442
lt_cv_path_NM="$tmp_nm -p"
4446
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4447
continue # so that we can try to find one that supports BSD flags
4456
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4459
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4460
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4463
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4464
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4466
if test "$LN_S" = "ln -s"; then
4467
{ echo "$as_me:$LINENO: result: yes" >&5
4468
echo "${ECHO_T}yes" >&6; }
4470
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4471
echo "${ECHO_T}no, using $LN_S" >&6; }
4474
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4475
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4476
if test "${lt_cv_deplibs_check_method+set}" = set; then
4477
echo $ECHO_N "(cached) $ECHO_C" >&6
4479
lt_cv_file_magic_cmd='$MAGIC_CMD'
4480
lt_cv_file_magic_test_file=
4481
lt_cv_deplibs_check_method='unknown'
4482
# Need to set the preceding variable on all platforms that support
4483
# interlibrary dependencies.
4484
# 'none' -- dependencies not supported.
4485
# `unknown' -- same as none, but documents that we really don't know.
4486
# 'pass_all' -- all dependencies passed with no checks.
4487
# 'test_compile' -- check by making test program.
4488
# 'file_magic [[regex]]' -- check by looking for files in library path
4489
# which responds to the $file_magic_cmd with a given extended regex.
4490
# If you have `file' or equivalent on your system and you're not sure
4491
# whether `pass_all' will *always* work, you probably want this one.
4495
lt_cv_deplibs_check_method=pass_all
4499
lt_cv_deplibs_check_method=pass_all
4503
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4504
lt_cv_file_magic_cmd='/usr/bin/file -L'
4505
lt_cv_file_magic_test_file=/shlib/libc.so
4509
# func_win32_libid is a shell function defined in ltmain.sh
4510
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4511
lt_cv_file_magic_cmd='func_win32_libid'
4515
# Base MSYS/MinGW do not provide the 'file' command needed by
4516
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4517
# unless we find 'file', for example because we are cross-compiling.
4518
if ( file / ) >/dev/null 2>&1; then
4519
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4520
lt_cv_file_magic_cmd='func_win32_libid'
4522
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4523
lt_cv_file_magic_cmd='$OBJDUMP -f'
4527
darwin* | rhapsody*)
4528
lt_cv_deplibs_check_method=pass_all
4531
freebsd* | dragonfly*)
4532
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4535
# Not sure whether the presence of OpenBSD here was a mistake.
4536
# Let's accept both of them until this is cleared up.
4537
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4538
lt_cv_file_magic_cmd=/usr/bin/file
4539
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4543
lt_cv_deplibs_check_method=pass_all
4548
lt_cv_deplibs_check_method=pass_all
4551
hpux10.20* | hpux11*)
4552
lt_cv_file_magic_cmd=/usr/bin/file
4555
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4556
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4559
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4560
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4563
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4564
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4570
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4571
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4574
irix5* | irix6* | nonstopux*)
4576
*-32|*"-32 ") libmagic=32-bit;;
4577
*-n32|*"-n32 ") libmagic=N32;;
4578
*-64|*"-64 ") libmagic=64-bit;;
4579
*) libmagic=never-match;;
4581
lt_cv_deplibs_check_method=pass_all
4584
# This must be Linux ELF.
4585
linux* | k*bsd*-gnu)
4586
lt_cv_deplibs_check_method=pass_all
4590
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4591
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4593
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4598
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4599
lt_cv_file_magic_cmd=/usr/bin/file
4600
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4604
lt_cv_deplibs_check_method=unknown
4608
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4609
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4611
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4615
osf3* | osf4* | osf5*)
4616
lt_cv_deplibs_check_method=pass_all
4620
lt_cv_deplibs_check_method=pass_all
4624
lt_cv_deplibs_check_method=pass_all
4628
case $host_vendor in
4630
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]'
4631
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4634
lt_cv_deplibs_check_method=pass_all
4637
lt_cv_file_magic_cmd='/bin/file'
4638
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4641
lt_cv_file_magic_cmd='/bin/file'
4642
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4643
lt_cv_file_magic_test_file=/lib/libc.so
4646
lt_cv_deplibs_check_method=pass_all
4649
lt_cv_deplibs_check_method=pass_all
4654
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4655
lt_cv_deplibs_check_method=pass_all
4660
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4661
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4662
file_magic_cmd=$lt_cv_file_magic_cmd
4663
deplibs_check_method=$lt_cv_deplibs_check_method
4664
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4669
# If no C compiler was specified, use CC.
4672
# If no C compiler flags were specified, use CFLAGS.
4673
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4675
# Allow CC to be a program name with arguments.
4679
# Check whether --enable-libtool-lock was given.
4680
if test "${enable_libtool_lock+set}" = set; then
4681
enableval=$enable_libtool_lock;
4684
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4686
# Some flags need to be propagated to the compiler or linker for good
4690
# Find out which ABI we are using.
4691
echo 'int i;' > conftest.$ac_ext
4692
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4693
(eval $ac_compile) 2>&5
4695
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696
(exit $ac_status); }; then
4697
case `/usr/bin/file conftest.$ac_objext` in
4709
# Find out which ABI we are using.
4710
echo '#line 4710 "configure"' > conftest.$ac_ext
4711
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712
(eval $ac_compile) 2>&5
4714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715
(exit $ac_status); }; then
4716
if test "$lt_cv_prog_gnu_ld" = yes; then
4717
case `/usr/bin/file conftest.$ac_objext` in
4719
LD="${LD-ld} -melf32bsmip"
4722
LD="${LD-ld} -melf32bmipn32"
4725
LD="${LD-ld} -melf64bmip"
4729
case `/usr/bin/file conftest.$ac_objext` in
4745
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4746
s390*-*linux*|sparc*-*linux*)
4747
# Find out which ABI we are using.
4748
echo 'int i;' > conftest.$ac_ext
4749
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750
(eval $ac_compile) 2>&5
4752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753
(exit $ac_status); }; then
4754
case `/usr/bin/file conftest.o` in
4757
x86_64-*kfreebsd*-gnu)
4758
LD="${LD-ld} -m elf_i386_fbsd"
4761
LD="${LD-ld} -m elf_i386"
4763
ppc64-*linux*|powerpc64-*linux*)
4764
LD="${LD-ld} -m elf32ppclinux"
4767
LD="${LD-ld} -m elf_s390"
4770
LD="${LD-ld} -m elf32_sparc"
4776
x86_64-*kfreebsd*-gnu)
4777
LD="${LD-ld} -m elf_x86_64_fbsd"
4780
LD="${LD-ld} -m elf_x86_64"
4782
ppc*-*linux*|powerpc*-*linux*)
4783
LD="${LD-ld} -m elf64ppc"
4786
LD="${LD-ld} -m elf64_s390"
4789
LD="${LD-ld} -m elf64_sparc"
4799
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4800
SAVE_CFLAGS="$CFLAGS"
4801
CFLAGS="$CFLAGS -belf"
4802
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4803
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4804
if test "${lt_cv_cc_needs_belf+set}" = set; then
4805
echo $ECHO_N "(cached) $ECHO_C" >&6
4808
ac_cpp='$CPP $CPPFLAGS'
4809
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4810
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4811
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813
cat >conftest.$ac_ext <<_ACEOF
4816
cat confdefs.h >>conftest.$ac_ext
4817
cat >>conftest.$ac_ext <<_ACEOF
4818
/* end confdefs.h. */
4828
rm -f conftest.$ac_objext conftest$ac_exeext
4829
if { (ac_try="$ac_link"
4831
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832
*) ac_try_echo=$ac_try;;
4834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835
(eval "$ac_link") 2>conftest.er1
4837
grep -v '^ *+' conftest.er1 >conftest.err
4839
cat conftest.err >&5
4840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841
(exit $ac_status); } && {
4842
test -z "$ac_c_werror_flag" ||
4843
test ! -s conftest.err
4844
} && test -s conftest$ac_exeext &&
4845
$as_test_x conftest$ac_exeext; then
4846
lt_cv_cc_needs_belf=yes
4848
echo "$as_me: failed program was:" >&5
4849
sed 's/^/| /' conftest.$ac_ext >&5
4851
lt_cv_cc_needs_belf=no
4854
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4855
conftest$ac_exeext conftest.$ac_ext
4857
ac_cpp='$CPP $CPPFLAGS'
4858
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4863
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4864
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4865
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4866
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4867
CFLAGS="$SAVE_CFLAGS"
4871
# Find out which ABI we are using.
4872
echo 'int i;' > conftest.$ac_ext
4873
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874
(eval $ac_compile) 2>&5
4876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877
(exit $ac_status); }; then
4878
case `/usr/bin/file conftest.o` in
4880
case $lt_cv_prog_gnu_ld in
4881
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4883
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4897
need_locks="$enable_libtool_lock"
4901
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4902
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4903
if test "${ac_cv_header_stdc+set}" = set; then
4904
echo $ECHO_N "(cached) $ECHO_C" >&6
4906
cat >conftest.$ac_ext <<_ACEOF
4909
cat confdefs.h >>conftest.$ac_ext
4910
cat >>conftest.$ac_ext <<_ACEOF
4911
/* end confdefs.h. */
4925
rm -f conftest.$ac_objext
4926
if { (ac_try="$ac_compile"
4928
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929
*) ac_try_echo=$ac_try;;
4931
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932
(eval "$ac_compile") 2>conftest.er1
4934
grep -v '^ *+' conftest.er1 >conftest.err
4936
cat conftest.err >&5
4937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938
(exit $ac_status); } && {
4939
test -z "$ac_c_werror_flag" ||
4940
test ! -s conftest.err
4941
} && test -s conftest.$ac_objext; then
4942
ac_cv_header_stdc=yes
4944
echo "$as_me: failed program was:" >&5
4945
sed 's/^/| /' conftest.$ac_ext >&5
4947
ac_cv_header_stdc=no
4950
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952
if test $ac_cv_header_stdc = yes; then
4953
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4954
cat >conftest.$ac_ext <<_ACEOF
4957
cat confdefs.h >>conftest.$ac_ext
4958
cat >>conftest.$ac_ext <<_ACEOF
4959
/* end confdefs.h. */
4963
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4964
$EGREP "memchr" >/dev/null 2>&1; then
4967
ac_cv_header_stdc=no
4973
if test $ac_cv_header_stdc = yes; then
4974
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4975
cat >conftest.$ac_ext <<_ACEOF
4978
cat confdefs.h >>conftest.$ac_ext
4979
cat >>conftest.$ac_ext <<_ACEOF
4980
/* end confdefs.h. */
4984
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4985
$EGREP "free" >/dev/null 2>&1; then
4988
ac_cv_header_stdc=no
4994
if test $ac_cv_header_stdc = yes; then
4995
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4996
if test "$cross_compiling" = yes; then
4999
cat >conftest.$ac_ext <<_ACEOF
5002
cat confdefs.h >>conftest.$ac_ext
5003
cat >>conftest.$ac_ext <<_ACEOF
5004
/* end confdefs.h. */
5007
#if ((' ' & 0x0FF) == 0x020)
5008
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5009
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5011
# define ISLOWER(c) \
5012
(('a' <= (c) && (c) <= 'i') \
5013
|| ('j' <= (c) && (c) <= 'r') \
5014
|| ('s' <= (c) && (c) <= 'z'))
5015
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5018
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5023
for (i = 0; i < 256; i++)
5024
if (XOR (islower (i), ISLOWER (i))
5025
|| toupper (i) != TOUPPER (i))
5030
rm -f conftest$ac_exeext
5031
if { (ac_try="$ac_link"
5033
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034
*) ac_try_echo=$ac_try;;
5036
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5037
(eval "$ac_link") 2>&5
5039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5041
{ (case "(($ac_try" in
5042
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043
*) ac_try_echo=$ac_try;;
5045
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046
(eval "$ac_try") 2>&5
5048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049
(exit $ac_status); }; }; then
5052
echo "$as_me: program exited with status $ac_status" >&5
5053
echo "$as_me: failed program was:" >&5
5054
sed 's/^/| /' conftest.$ac_ext >&5
5057
ac_cv_header_stdc=no
5059
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5065
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5066
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5067
if test $ac_cv_header_stdc = yes; then
5069
cat >>confdefs.h <<\_ACEOF
5070
#define STDC_HEADERS 1
5075
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5085
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5086
inttypes.h stdint.h unistd.h
5088
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5089
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5090
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5091
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5092
echo $ECHO_N "(cached) $ECHO_C" >&6
5094
cat >conftest.$ac_ext <<_ACEOF
5097
cat confdefs.h >>conftest.$ac_ext
5098
cat >>conftest.$ac_ext <<_ACEOF
5099
/* end confdefs.h. */
5100
$ac_includes_default
5102
#include <$ac_header>
5104
rm -f conftest.$ac_objext
5105
if { (ac_try="$ac_compile"
5107
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108
*) ac_try_echo=$ac_try;;
5110
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111
(eval "$ac_compile") 2>conftest.er1
5113
grep -v '^ *+' conftest.er1 >conftest.err
5115
cat conftest.err >&5
5116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117
(exit $ac_status); } && {
5118
test -z "$ac_c_werror_flag" ||
5119
test ! -s conftest.err
5120
} && test -s conftest.$ac_objext; then
5121
eval "$as_ac_Header=yes"
5123
echo "$as_me: failed program was:" >&5
5124
sed 's/^/| /' conftest.$ac_ext >&5
5126
eval "$as_ac_Header=no"
5129
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5131
ac_res=`eval echo '${'$as_ac_Header'}'`
5132
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5133
echo "${ECHO_T}$ac_res" >&6; }
5134
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5135
cat >>confdefs.h <<_ACEOF
5136
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5145
for ac_header in dlfcn.h
5147
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5148
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5149
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5150
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5151
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5152
echo $ECHO_N "(cached) $ECHO_C" >&6
5154
ac_res=`eval echo '${'$as_ac_Header'}'`
5155
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5156
echo "${ECHO_T}$ac_res" >&6; }
5158
# Is the header compilable?
5159
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5160
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5161
cat >conftest.$ac_ext <<_ACEOF
5164
cat confdefs.h >>conftest.$ac_ext
5165
cat >>conftest.$ac_ext <<_ACEOF
5166
/* end confdefs.h. */
5167
$ac_includes_default
5168
#include <$ac_header>
5170
rm -f conftest.$ac_objext
5171
if { (ac_try="$ac_compile"
5173
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174
*) ac_try_echo=$ac_try;;
5176
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5177
(eval "$ac_compile") 2>conftest.er1
5179
grep -v '^ *+' conftest.er1 >conftest.err
5181
cat conftest.err >&5
5182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183
(exit $ac_status); } && {
5184
test -z "$ac_c_werror_flag" ||
5185
test ! -s conftest.err
5186
} && test -s conftest.$ac_objext; then
5187
ac_header_compiler=yes
5189
echo "$as_me: failed program was:" >&5
5190
sed 's/^/| /' conftest.$ac_ext >&5
5192
ac_header_compiler=no
5195
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5197
echo "${ECHO_T}$ac_header_compiler" >&6; }
5199
# Is the header present?
5200
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5201
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5202
cat >conftest.$ac_ext <<_ACEOF
5205
cat confdefs.h >>conftest.$ac_ext
5206
cat >>conftest.$ac_ext <<_ACEOF
5207
/* end confdefs.h. */
5208
#include <$ac_header>
5210
if { (ac_try="$ac_cpp conftest.$ac_ext"
5212
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213
*) ac_try_echo=$ac_try;;
5215
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5216
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5218
grep -v '^ *+' conftest.er1 >conftest.err
5220
cat conftest.err >&5
5221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222
(exit $ac_status); } >/dev/null && {
5223
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5224
test ! -s conftest.err
5226
ac_header_preproc=yes
5228
echo "$as_me: failed program was:" >&5
5229
sed 's/^/| /' conftest.$ac_ext >&5
5231
ac_header_preproc=no
5234
rm -f conftest.err conftest.$ac_ext
5235
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5236
echo "${ECHO_T}$ac_header_preproc" >&6; }
5238
# So? What about this header?
5239
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5241
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5242
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5243
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5244
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5245
ac_header_preproc=yes
5248
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5249
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5250
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5251
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5252
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5253
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5254
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5255
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5256
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5257
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5258
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5259
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5263
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5264
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5265
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5266
echo $ECHO_N "(cached) $ECHO_C" >&6
5268
eval "$as_ac_Header=\$ac_header_preproc"
5270
ac_res=`eval echo '${'$as_ac_Header'}'`
5271
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5272
echo "${ECHO_T}$ac_res" >&6; }
5275
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5276
cat >>confdefs.h <<_ACEOF
5277
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5285
ac_cpp='$CXXCPP $CPPFLAGS'
5286
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5287
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5288
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5289
if test -z "$CXX"; then
5290
if test -n "$CCC"; then
5293
if test -n "$ac_tool_prefix"; then
5294
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5296
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5297
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5298
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5299
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5300
if test "${ac_cv_prog_CXX+set}" = set; then
5301
echo $ECHO_N "(cached) $ECHO_C" >&6
5303
if test -n "$CXX"; then
5304
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5306
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310
test -z "$as_dir" && as_dir=.
5311
for ac_exec_ext in '' $ac_executable_extensions; do
5312
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5313
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5314
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324
if test -n "$CXX"; then
5325
{ echo "$as_me:$LINENO: result: $CXX" >&5
5326
echo "${ECHO_T}$CXX" >&6; }
5328
{ echo "$as_me:$LINENO: result: no" >&5
5329
echo "${ECHO_T}no" >&6; }
5333
test -n "$CXX" && break
5336
if test -z "$CXX"; then
5338
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5340
# Extract the first word of "$ac_prog", so it can be a program name with args.
5341
set dummy $ac_prog; ac_word=$2
5342
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5343
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5344
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5345
echo $ECHO_N "(cached) $ECHO_C" >&6
5347
if test -n "$ac_ct_CXX"; then
5348
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354
test -z "$as_dir" && as_dir=.
5355
for ac_exec_ext in '' $ac_executable_extensions; do
5356
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357
ac_cv_prog_ac_ct_CXX="$ac_prog"
5358
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5368
if test -n "$ac_ct_CXX"; then
5369
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5370
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5372
{ echo "$as_me:$LINENO: result: no" >&5
5373
echo "${ECHO_T}no" >&6; }
5377
test -n "$ac_ct_CXX" && break
5380
if test "x$ac_ct_CXX" = x; then
5383
case $cross_compiling:$ac_tool_warned in
5385
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5386
whose name does not start with the host triplet. If you think this
5387
configuration is useful to you, please write to autoconf@gnu.org." >&5
5388
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5389
whose name does not start with the host triplet. If you think this
5390
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5391
ac_tool_warned=yes ;;
5399
# Provide some information about the compiler.
5400
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5401
ac_compiler=`set X $ac_compile; echo $2`
5402
{ (ac_try="$ac_compiler --version >&5"
5404
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405
*) ac_try_echo=$ac_try;;
5407
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408
(eval "$ac_compiler --version >&5") 2>&5
5410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411
(exit $ac_status); }
5412
{ (ac_try="$ac_compiler -v >&5"
5414
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415
*) ac_try_echo=$ac_try;;
5417
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418
(eval "$ac_compiler -v >&5") 2>&5
5420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421
(exit $ac_status); }
5422
{ (ac_try="$ac_compiler -V >&5"
5424
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425
*) ac_try_echo=$ac_try;;
5427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428
(eval "$ac_compiler -V >&5") 2>&5
5430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431
(exit $ac_status); }
5433
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5434
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5435
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5436
echo $ECHO_N "(cached) $ECHO_C" >&6
5438
cat >conftest.$ac_ext <<_ACEOF
5441
cat confdefs.h >>conftest.$ac_ext
5442
cat >>conftest.$ac_ext <<_ACEOF
5443
/* end confdefs.h. */
5456
rm -f conftest.$ac_objext
5457
if { (ac_try="$ac_compile"
5459
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460
*) ac_try_echo=$ac_try;;
5462
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463
(eval "$ac_compile") 2>conftest.er1
5465
grep -v '^ *+' conftest.er1 >conftest.err
5467
cat conftest.err >&5
5468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469
(exit $ac_status); } && {
5470
test -z "$ac_cxx_werror_flag" ||
5471
test ! -s conftest.err
5472
} && test -s conftest.$ac_objext; then
5475
echo "$as_me: failed program was:" >&5
5476
sed 's/^/| /' conftest.$ac_ext >&5
5481
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5485
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5486
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5487
GXX=`test $ac_compiler_gnu = yes && echo yes`
5488
ac_test_CXXFLAGS=${CXXFLAGS+set}
5489
ac_save_CXXFLAGS=$CXXFLAGS
5490
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5491
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5492
if test "${ac_cv_prog_cxx_g+set}" = set; then
5493
echo $ECHO_N "(cached) $ECHO_C" >&6
5495
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5496
ac_cxx_werror_flag=yes
5499
cat >conftest.$ac_ext <<_ACEOF
5502
cat confdefs.h >>conftest.$ac_ext
5503
cat >>conftest.$ac_ext <<_ACEOF
5504
/* end confdefs.h. */
5514
rm -f conftest.$ac_objext
5515
if { (ac_try="$ac_compile"
5517
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518
*) ac_try_echo=$ac_try;;
5520
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521
(eval "$ac_compile") 2>conftest.er1
5523
grep -v '^ *+' conftest.er1 >conftest.err
5525
cat conftest.err >&5
5526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527
(exit $ac_status); } && {
5528
test -z "$ac_cxx_werror_flag" ||
5529
test ! -s conftest.err
5530
} && test -s conftest.$ac_objext; then
5531
ac_cv_prog_cxx_g=yes
5533
echo "$as_me: failed program was:" >&5
5534
sed 's/^/| /' conftest.$ac_ext >&5
5537
cat >conftest.$ac_ext <<_ACEOF
5540
cat confdefs.h >>conftest.$ac_ext
5541
cat >>conftest.$ac_ext <<_ACEOF
5542
/* end confdefs.h. */
5552
rm -f conftest.$ac_objext
5553
if { (ac_try="$ac_compile"
5555
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556
*) ac_try_echo=$ac_try;;
5558
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559
(eval "$ac_compile") 2>conftest.er1
5561
grep -v '^ *+' conftest.er1 >conftest.err
5563
cat conftest.err >&5
5564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565
(exit $ac_status); } && {
5566
test -z "$ac_cxx_werror_flag" ||
5567
test ! -s conftest.err
5568
} && test -s conftest.$ac_objext; then
5571
echo "$as_me: failed program was:" >&5
5572
sed 's/^/| /' conftest.$ac_ext >&5
5574
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5576
cat >conftest.$ac_ext <<_ACEOF
5579
cat confdefs.h >>conftest.$ac_ext
5580
cat >>conftest.$ac_ext <<_ACEOF
5581
/* end confdefs.h. */
5591
rm -f conftest.$ac_objext
5592
if { (ac_try="$ac_compile"
5594
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595
*) ac_try_echo=$ac_try;;
5597
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598
(eval "$ac_compile") 2>conftest.er1
5600
grep -v '^ *+' conftest.er1 >conftest.err
5602
cat conftest.err >&5
5603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604
(exit $ac_status); } && {
5605
test -z "$ac_cxx_werror_flag" ||
5606
test ! -s conftest.err
5607
} && test -s conftest.$ac_objext; then
5608
ac_cv_prog_cxx_g=yes
5610
echo "$as_me: failed program was:" >&5
5611
sed 's/^/| /' conftest.$ac_ext >&5
5616
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5625
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5626
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5627
if test "$ac_test_CXXFLAGS" = set; then
5628
CXXFLAGS=$ac_save_CXXFLAGS
5629
elif test $ac_cv_prog_cxx_g = yes; then
5630
if test "$GXX" = yes; then
5636
if test "$GXX" = yes; then
5643
ac_cpp='$CXXCPP $CPPFLAGS'
5644
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5648
depcc="$CXX" am_compiler_list=
5650
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5651
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5652
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5653
echo $ECHO_N "(cached) $ECHO_C" >&6
5655
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5656
# We make a subdir and do the tests there. Otherwise we can end up
5657
# making bogus files that we don't know about and never remove. For
5658
# instance it was reported that on HP-UX the gcc test will end up
5659
# making a dummy file named `D' -- because `-MD' means `put the output
5662
# Copy depcomp to subdir because otherwise we won't find it if we're
5663
# using a relative directory.
5664
cp "$am_depcomp" conftest.dir
5666
# We will build objects and dependencies in a subdirectory because
5667
# it helps to detect inapplicable dependency modes. For instance
5668
# both Tru64's cc and ICC support -MD to output dependencies as a
5669
# side effect of compilation, but ICC will put the dependencies in
5670
# the current directory while Tru64 will put them in the object
5674
am_cv_CXX_dependencies_compiler_type=none
5675
if test "$am_compiler_list" = ""; then
5676
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5678
for depmode in $am_compiler_list; do
5679
# Setup a source with many dependencies, because some compilers
5680
# like to wrap large dependency lists on column 80 (with \), and
5681
# we should not choose a depcomp mode which is confused by this.
5683
# We need to recreate these files for each test, as the compiler may
5684
# overwrite some of them when testing with obscure command lines.
5685
# This happens at least with the AIX C compiler.
5687
for i in 1 2 3 4 5 6; do
5688
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5689
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5690
# Solaris 8's {/usr,}/bin/sh.
5691
touch sub/conftst$i.h
5693
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5697
# after this tag, mechanisms are not by side-effect, so they'll
5698
# only be used when explicitly requested
5699
if test "x$enable_dependency_tracking" = xyes; then
5707
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5708
# mode. It turns out that the SunPro C++ compiler does not properly
5709
# handle `-M -o', and we need to detect this.
5710
if depmode=$depmode \
5711
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5712
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5713
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5714
>/dev/null 2>conftest.err &&
5715
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5716
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5717
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5718
# icc doesn't choke on unknown options, it will just issue warnings
5719
# or remarks (even with -Werror). So we grep stderr for any message
5720
# that says an option was ignored or not supported.
5721
# When given -MP, icc 7.0 and 7.1 complain thusly:
5722
# icc: Command line warning: ignoring option '-M'; no argument required
5723
# The diagnosis changed in icc 8.0:
5724
# icc: Command line remark: option '-MP' not supported
5725
if (grep 'ignoring option' conftest.err ||
5726
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5727
am_cv_CXX_dependencies_compiler_type=$depmode
5736
am_cv_CXX_dependencies_compiler_type=none
5740
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5741
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5742
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5747
test "x$enable_dependency_tracking" != xno \
5748
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5749
am__fastdepCXX_TRUE=
5750
am__fastdepCXX_FALSE='#'
5752
am__fastdepCXX_TRUE='#'
5753
am__fastdepCXX_FALSE=
5759
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5760
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5761
(test "X$CXX" != "Xg++"))) ; then
5763
ac_cpp='$CXXCPP $CPPFLAGS'
5764
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5765
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5766
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5767
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5768
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5769
if test -z "$CXXCPP"; then
5770
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5771
echo $ECHO_N "(cached) $ECHO_C" >&6
5773
# Double quotes because CXXCPP needs to be expanded
5774
for CXXCPP in "$CXX -E" "/lib/cpp"
5777
for ac_cxx_preproc_warn_flag in '' yes
5779
# Use a header file that comes with gcc, so configuring glibc
5780
# with a fresh cross-compiler works.
5781
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5782
# <limits.h> exists even on freestanding compilers.
5783
# On the NeXT, cc -E runs the code through the compiler's parser,
5784
# not just through cpp. "Syntax error" is here to catch this case.
5785
cat >conftest.$ac_ext <<_ACEOF
5788
cat confdefs.h >>conftest.$ac_ext
5789
cat >>conftest.$ac_ext <<_ACEOF
5790
/* end confdefs.h. */
5792
# include <limits.h>
5794
# include <assert.h>
5798
if { (ac_try="$ac_cpp conftest.$ac_ext"
5800
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801
*) ac_try_echo=$ac_try;;
5803
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5806
grep -v '^ *+' conftest.er1 >conftest.err
5808
cat conftest.err >&5
5809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810
(exit $ac_status); } >/dev/null && {
5811
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5812
test ! -s conftest.err
5816
echo "$as_me: failed program was:" >&5
5817
sed 's/^/| /' conftest.$ac_ext >&5
5819
# Broken: fails on valid input.
5823
rm -f conftest.err conftest.$ac_ext
5825
# OK, works on sane cases. Now check whether nonexistent headers
5826
# can be detected and how.
5827
cat >conftest.$ac_ext <<_ACEOF
5830
cat confdefs.h >>conftest.$ac_ext
5831
cat >>conftest.$ac_ext <<_ACEOF
5832
/* end confdefs.h. */
5833
#include <ac_nonexistent.h>
5835
if { (ac_try="$ac_cpp conftest.$ac_ext"
5837
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838
*) ac_try_echo=$ac_try;;
5840
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5841
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5843
grep -v '^ *+' conftest.er1 >conftest.err
5845
cat conftest.err >&5
5846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847
(exit $ac_status); } >/dev/null && {
5848
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5849
test ! -s conftest.err
5851
# Broken: success on invalid input.
5854
echo "$as_me: failed program was:" >&5
5855
sed 's/^/| /' conftest.$ac_ext >&5
5857
# Passes both tests.
5862
rm -f conftest.err conftest.$ac_ext
5865
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5866
rm -f conftest.err conftest.$ac_ext
5867
if $ac_preproc_ok; then
5872
ac_cv_prog_CXXCPP=$CXXCPP
5875
CXXCPP=$ac_cv_prog_CXXCPP
5877
ac_cv_prog_CXXCPP=$CXXCPP
5879
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5880
echo "${ECHO_T}$CXXCPP" >&6; }
5882
for ac_cxx_preproc_warn_flag in '' yes
5884
# Use a header file that comes with gcc, so configuring glibc
5885
# with a fresh cross-compiler works.
5886
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5887
# <limits.h> exists even on freestanding compilers.
5888
# On the NeXT, cc -E runs the code through the compiler's parser,
5889
# not just through cpp. "Syntax error" is here to catch this case.
5890
cat >conftest.$ac_ext <<_ACEOF
5893
cat confdefs.h >>conftest.$ac_ext
5894
cat >>conftest.$ac_ext <<_ACEOF
5895
/* end confdefs.h. */
5897
# include <limits.h>
5899
# include <assert.h>
5903
if { (ac_try="$ac_cpp conftest.$ac_ext"
5905
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906
*) ac_try_echo=$ac_try;;
5908
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5911
grep -v '^ *+' conftest.er1 >conftest.err
5913
cat conftest.err >&5
5914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915
(exit $ac_status); } >/dev/null && {
5916
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5917
test ! -s conftest.err
5921
echo "$as_me: failed program was:" >&5
5922
sed 's/^/| /' conftest.$ac_ext >&5
5924
# Broken: fails on valid input.
5928
rm -f conftest.err conftest.$ac_ext
5930
# OK, works on sane cases. Now check whether nonexistent headers
5931
# can be detected and how.
5932
cat >conftest.$ac_ext <<_ACEOF
5935
cat confdefs.h >>conftest.$ac_ext
5936
cat >>conftest.$ac_ext <<_ACEOF
5937
/* end confdefs.h. */
5938
#include <ac_nonexistent.h>
5940
if { (ac_try="$ac_cpp conftest.$ac_ext"
5942
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943
*) ac_try_echo=$ac_try;;
5945
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5948
grep -v '^ *+' conftest.er1 >conftest.err
5950
cat conftest.err >&5
5951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952
(exit $ac_status); } >/dev/null && {
5953
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5954
test ! -s conftest.err
5956
# Broken: success on invalid input.
5959
echo "$as_me: failed program was:" >&5
5960
sed 's/^/| /' conftest.$ac_ext >&5
5962
# Passes both tests.
5967
rm -f conftest.err conftest.$ac_ext
5970
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5971
rm -f conftest.err conftest.$ac_ext
5972
if $ac_preproc_ok; then
5975
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5976
See \`config.log' for more details." >&5
5977
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5978
See \`config.log' for more details." >&2;}
5979
{ (exit 1); exit 1; }; }
5983
ac_cpp='$CXXCPP $CPPFLAGS'
5984
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5985
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5986
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5992
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5993
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5995
if test -n "$ac_tool_prefix"; then
5996
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5998
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5999
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6000
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6001
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002
if test "${ac_cv_prog_F77+set}" = set; then
6003
echo $ECHO_N "(cached) $ECHO_C" >&6
6005
if test -n "$F77"; then
6006
ac_cv_prog_F77="$F77" # Let the user override the test.
6008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012
test -z "$as_dir" && as_dir=.
6013
for ac_exec_ext in '' $ac_executable_extensions; do
6014
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6016
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026
if test -n "$F77"; then
6027
{ echo "$as_me:$LINENO: result: $F77" >&5
6028
echo "${ECHO_T}$F77" >&6; }
6030
{ echo "$as_me:$LINENO: result: no" >&5
6031
echo "${ECHO_T}no" >&6; }
6035
test -n "$F77" && break
6038
if test -z "$F77"; then
6040
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6042
# Extract the first word of "$ac_prog", so it can be a program name with args.
6043
set dummy $ac_prog; ac_word=$2
6044
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6045
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6046
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6047
echo $ECHO_N "(cached) $ECHO_C" >&6
6049
if test -n "$ac_ct_F77"; then
6050
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056
test -z "$as_dir" && as_dir=.
6057
for ac_exec_ext in '' $ac_executable_extensions; do
6058
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059
ac_cv_prog_ac_ct_F77="$ac_prog"
6060
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6070
if test -n "$ac_ct_F77"; then
6071
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6072
echo "${ECHO_T}$ac_ct_F77" >&6; }
6074
{ echo "$as_me:$LINENO: result: no" >&5
6075
echo "${ECHO_T}no" >&6; }
6079
test -n "$ac_ct_F77" && break
6082
if test "x$ac_ct_F77" = x; then
6085
case $cross_compiling:$ac_tool_warned in
6087
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6088
whose name does not start with the host triplet. If you think this
6089
configuration is useful to you, please write to autoconf@gnu.org." >&5
6090
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6091
whose name does not start with the host triplet. If you think this
6092
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6093
ac_tool_warned=yes ;;
6100
# Provide some information about the compiler.
6101
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6102
ac_compiler=`set X $ac_compile; echo $2`
6103
{ (ac_try="$ac_compiler --version >&5"
6105
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106
*) ac_try_echo=$ac_try;;
6108
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109
(eval "$ac_compiler --version >&5") 2>&5
6111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112
(exit $ac_status); }
6113
{ (ac_try="$ac_compiler -v >&5"
6115
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116
*) ac_try_echo=$ac_try;;
6118
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119
(eval "$ac_compiler -v >&5") 2>&5
6121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122
(exit $ac_status); }
6123
{ (ac_try="$ac_compiler -V >&5"
6125
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126
*) ac_try_echo=$ac_try;;
6128
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129
(eval "$ac_compiler -V >&5") 2>&5
6131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132
(exit $ac_status); }
6135
# If we don't use `.F' as extension, the preprocessor is not run on the
6136
# input file. (Note that this only needs to work for GNU compilers.)
6139
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6140
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6141
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6142
echo $ECHO_N "(cached) $ECHO_C" >&6
6144
cat >conftest.$ac_ext <<_ACEOF
6152
rm -f conftest.$ac_objext
6153
if { (ac_try="$ac_compile"
6155
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156
*) ac_try_echo=$ac_try;;
6158
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159
(eval "$ac_compile") 2>conftest.er1
6161
grep -v '^ *+' conftest.er1 >conftest.err
6163
cat conftest.err >&5
6164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165
(exit $ac_status); } && {
6166
test -z "$ac_f77_werror_flag" ||
6167
test ! -s conftest.err
6168
} && test -s conftest.$ac_objext; then
6171
echo "$as_me: failed program was:" >&5
6172
sed 's/^/| /' conftest.$ac_ext >&5
6177
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6181
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6182
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6184
ac_test_FFLAGS=${FFLAGS+set}
6185
ac_save_FFLAGS=$FFLAGS
6187
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6188
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6189
if test "${ac_cv_prog_f77_g+set}" = set; then
6190
echo $ECHO_N "(cached) $ECHO_C" >&6
6193
cat >conftest.$ac_ext <<_ACEOF
6198
rm -f conftest.$ac_objext
6199
if { (ac_try="$ac_compile"
6201
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202
*) ac_try_echo=$ac_try;;
6204
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6205
(eval "$ac_compile") 2>conftest.er1
6207
grep -v '^ *+' conftest.er1 >conftest.err
6209
cat conftest.err >&5
6210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211
(exit $ac_status); } && {
6212
test -z "$ac_f77_werror_flag" ||
6213
test ! -s conftest.err
6214
} && test -s conftest.$ac_objext; then
6215
ac_cv_prog_f77_g=yes
6217
echo "$as_me: failed program was:" >&5
6218
sed 's/^/| /' conftest.$ac_ext >&5
6223
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6227
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6228
if test "$ac_test_FFLAGS" = set; then
6229
FFLAGS=$ac_save_FFLAGS
6230
elif test $ac_cv_prog_f77_g = yes; then
6231
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6237
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6244
G77=`test $ac_compiler_gnu = yes && echo yes`
6246
ac_cpp='$CPP $CPPFLAGS'
6247
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6248
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6249
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6253
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6254
# find the maximum length of command line arguments
6255
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6256
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6257
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6258
echo $ECHO_N "(cached) $ECHO_C" >&6
6265
# On DJGPP, this test can blow up pretty badly due to problems in libc
6266
# (any single argument exceeding 2000 bytes causes a buffer overrun
6267
# during glob expansion). Even if it were fixed, the result of this
6268
# check would be larger than it should be.
6269
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6273
# Under GNU Hurd, this test is not required because there is
6274
# no limit to the length of command line arguments.
6275
# Libtool will interpret -1 as no limit whatsoever
6276
lt_cv_sys_max_cmd_len=-1;
6280
# On Win9x/ME, this test blows up -- it succeeds, but takes
6281
# about 5 minutes as the teststring grows exponentially.
6282
# Worse, since 9x/ME are not pre-emptively multitasking,
6283
# you end up with a "frozen" computer, even though with patience
6284
# the test eventually succeeds (with a max line length of 256k).
6285
# Instead, let's just punt: use the minimum linelength reported by
6286
# all of the supported platforms: 8192 (on NT/2K/XP).
6287
lt_cv_sys_max_cmd_len=8192;
6291
# On AmigaOS with pdksh, this test takes hours, literally.
6292
# So we just punt and use a minimum line length of 8192.
6293
lt_cv_sys_max_cmd_len=8192;
6296
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6297
# This has been around since 386BSD, at least. Likely further.
6298
if test -x /sbin/sysctl; then
6299
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6300
elif test -x /usr/sbin/sysctl; then
6301
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6303
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6305
# And add a safety zone
6306
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6307
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6311
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6312
lt_cv_sys_max_cmd_len=196608
6316
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6317
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6318
# nice to cause kernel panics so lets avoid the loop below.
6319
# First set a reasonable default.
6320
lt_cv_sys_max_cmd_len=16384
6322
if test -x /sbin/sysconfig; then
6323
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6324
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6329
lt_cv_sys_max_cmd_len=102400
6331
sysv5* | sco5v6* | sysv4.2uw2*)
6332
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6333
if test -n "$kargmax"; then
6334
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6336
lt_cv_sys_max_cmd_len=32768
6340
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6341
if test -n "$lt_cv_sys_max_cmd_len"; then
6342
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6343
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6345
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6346
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6347
= "XX$teststring") >/dev/null 2>&1 &&
6348
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6349
lt_cv_sys_max_cmd_len=$new_result &&
6350
test $i != 17 # 1/2 MB should be enough
6353
teststring=$teststring$teststring
6356
# Add a significant safety factor because C++ compilers can tack on massive
6357
# amounts of additional arguments before passing them to the linker.
6358
# It appears as though 1/2 is a usable value.
6359
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6366
if test -n $lt_cv_sys_max_cmd_len ; then
6367
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6368
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6370
{ echo "$as_me:$LINENO: result: none" >&5
6371
echo "${ECHO_T}none" >&6; }
6378
# Check for command to grab the raw symbol name followed by C symbol from nm.
6379
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6380
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6381
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6382
echo $ECHO_N "(cached) $ECHO_C" >&6
6385
# These are sane defaults that work on at least a few old systems.
6386
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6388
# Character class describing NM global symbol codes.
6389
symcode='[BCDEGRST]'
6391
# Regexp to match symbols that can be accessed directly from C.
6392
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6394
# Transform an extracted symbol line into a proper C declaration
6395
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6397
# Transform an extracted symbol line into symbol name and symbol address
6398
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6400
# Define system-specific variables.
6405
cygwin* | mingw* | pw32*)
6406
symcode='[ABCDGISTW]'
6408
hpux*) # Its linker distinguishes data from code symbols
6409
if test "$host_cpu" = ia64; then
6410
symcode='[ABCDEGRST]'
6412
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6413
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6415
linux* | k*bsd*-gnu)
6416
if test "$host_cpu" = ia64; then
6417
symcode='[ABCDGIRSTW]'
6418
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6419
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6423
symcode='[BCDEGRST]'
6426
symcode='[BCDEGQRST]'
6437
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6445
# Handle CRLF in mingw tool chain
6449
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6453
# If we're using GNU nm, then use its standard symbol codes.
6454
case `$NM -V 2>&1` in
6455
*GNU* | *'with BFD'*)
6456
symcode='[ABCDGIRSTW]' ;;
6459
# Try without a prefix undercore, then with it.
6460
for ac_symprfx in "" "_"; do
6462
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6463
symxfrm="\\1 $ac_symprfx\\2 \\2"
6465
# Write the raw and C identifiers.
6466
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6468
# Check to see that the pipe works correctly.
6472
cat > conftest.$ac_ext <<EOF
6477
void nm_test_func(){}
6481
int main(){nm_test_var='a';nm_test_func();return(0);}
6484
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6485
(eval $ac_compile) 2>&5
6487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488
(exit $ac_status); }; then
6489
# Now try to grab the symbols.
6491
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6492
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495
(exit $ac_status); } && test -s "$nlist"; then
6496
# Try sorting and uniquifying the output.
6497
if sort "$nlist" | uniq > "$nlist"T; then
6498
mv -f "$nlist"T "$nlist"
6503
# Make sure that we snagged all the symbols we need.
6504
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6505
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6506
cat <<EOF > conftest.$ac_ext
6512
# Now generate the symbol file.
6513
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6515
cat <<EOF >> conftest.$ac_ext
6516
#if defined (__STDC__) && __STDC__
6517
# define lt_ptr_t void *
6519
# define lt_ptr_t char *
6523
/* The mapping between symbol names and symbols. */
6528
lt_preloaded_symbols[] =
6531
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6532
cat <<\EOF >> conftest.$ac_ext
6540
# Now try linking the two files.
6541
mv conftest.$ac_objext conftstm.$ac_objext
6542
lt_save_LIBS="$LIBS"
6543
lt_save_CFLAGS="$CFLAGS"
6544
LIBS="conftstm.$ac_objext"
6545
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6546
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547
(eval $ac_link) 2>&5
6549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6553
LIBS="$lt_save_LIBS"
6554
CFLAGS="$lt_save_CFLAGS"
6556
echo "cannot find nm_test_func in $nlist" >&5
6559
echo "cannot find nm_test_var in $nlist" >&5
6562
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6565
echo "$progname: failed program was:" >&5
6566
cat conftest.$ac_ext >&5
6568
rm -rf conftest* conftst*
6570
# Do not use the global_symbol_pipe unless it works.
6571
if test "$pipe_works" = yes; then
6574
lt_cv_sys_global_symbol_pipe=
6580
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6581
lt_cv_sys_global_symbol_to_cdecl=
6583
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6584
{ echo "$as_me:$LINENO: result: failed" >&5
6585
echo "${ECHO_T}failed" >&6; }
6587
{ echo "$as_me:$LINENO: result: ok" >&5
6588
echo "${ECHO_T}ok" >&6; }
6591
{ echo "$as_me:$LINENO: checking for objdir" >&5
6592
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6593
if test "${lt_cv_objdir+set}" = set; then
6594
echo $ECHO_N "(cached) $ECHO_C" >&6
6596
rm -f .libs 2>/dev/null
6597
mkdir .libs 2>/dev/null
6598
if test -d .libs; then
6601
# MS-DOS does not allow filenames that begin with a dot.
6604
rmdir .libs 2>/dev/null
6606
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6607
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6608
objdir=$lt_cv_objdir
6616
# AIX sometimes has problems with the GCC collect2 program. For some
6617
# reason, if we set the COLLECT_NAMES environment variable, the problems
6618
# vanish in a puff of smoke.
6619
if test "X${COLLECT_NAMES+set}" != Xset; then
6621
export COLLECT_NAMES
6626
# Sed substitution that helps us do robust quoting. It backslashifies
6627
# metacharacters that are still active within double-quoted strings.
6628
Xsed='sed -e 1s/^X//'
6629
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6631
# Same as above, but do not quote variable references.
6632
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6634
# Sed substitution to delay expansion of an escaped shell variable in a
6635
# double_quote_subst'ed string.
6636
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6638
# Sed substitution to avoid accidental globbing in evaled expressions
6639
no_glob_subst='s/\*/\\\*/g'
6645
default_ofile=libtool
6646
can_build_shared=yes
6648
# All known linkers require a `.a' archive for static linking (except MSVC,
6649
# which needs '.lib').
6651
ltmain="$ac_aux_dir/ltmain.sh"
6652
ofile="$default_ofile"
6653
with_gnu_ld="$lt_cv_prog_gnu_ld"
6655
if test -n "$ac_tool_prefix"; then
6656
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6657
set dummy ${ac_tool_prefix}ar; ac_word=$2
6658
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6659
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660
if test "${ac_cv_prog_AR+set}" = set; then
6661
echo $ECHO_N "(cached) $ECHO_C" >&6
6663
if test -n "$AR"; then
6664
ac_cv_prog_AR="$AR" # Let the user override the test.
6666
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670
test -z "$as_dir" && as_dir=.
6671
for ac_exec_ext in '' $ac_executable_extensions; do
6672
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673
ac_cv_prog_AR="${ac_tool_prefix}ar"
6674
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684
if test -n "$AR"; then
6685
{ echo "$as_me:$LINENO: result: $AR" >&5
6686
echo "${ECHO_T}$AR" >&6; }
6688
{ echo "$as_me:$LINENO: result: no" >&5
6689
echo "${ECHO_T}no" >&6; }
6694
if test -z "$ac_cv_prog_AR"; then
6696
# Extract the first word of "ar", so it can be a program name with args.
6697
set dummy ar; ac_word=$2
6698
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6699
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6701
echo $ECHO_N "(cached) $ECHO_C" >&6
6703
if test -n "$ac_ct_AR"; then
6704
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6706
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710
test -z "$as_dir" && as_dir=.
6711
for ac_exec_ext in '' $ac_executable_extensions; do
6712
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713
ac_cv_prog_ac_ct_AR="ar"
6714
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6724
if test -n "$ac_ct_AR"; then
6725
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6726
echo "${ECHO_T}$ac_ct_AR" >&6; }
6728
{ echo "$as_me:$LINENO: result: no" >&5
6729
echo "${ECHO_T}no" >&6; }
6732
if test "x$ac_ct_AR" = x; then
6735
case $cross_compiling:$ac_tool_warned in
6737
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6738
whose name does not start with the host triplet. If you think this
6739
configuration is useful to you, please write to autoconf@gnu.org." >&5
6740
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6741
whose name does not start with the host triplet. If you think this
6742
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6743
ac_tool_warned=yes ;;
6751
if test -n "$ac_tool_prefix"; then
6752
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6753
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6754
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6755
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756
if test "${ac_cv_prog_RANLIB+set}" = set; then
6757
echo $ECHO_N "(cached) $ECHO_C" >&6
6759
if test -n "$RANLIB"; then
6760
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766
test -z "$as_dir" && as_dir=.
6767
for ac_exec_ext in '' $ac_executable_extensions; do
6768
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6769
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6770
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779
RANLIB=$ac_cv_prog_RANLIB
6780
if test -n "$RANLIB"; then
6781
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
6782
echo "${ECHO_T}$RANLIB" >&6; }
6784
{ echo "$as_me:$LINENO: result: no" >&5
6785
echo "${ECHO_T}no" >&6; }
6790
if test -z "$ac_cv_prog_RANLIB"; then
6791
ac_ct_RANLIB=$RANLIB
6792
# Extract the first word of "ranlib", so it can be a program name with args.
6793
set dummy ranlib; ac_word=$2
6794
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6795
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6797
echo $ECHO_N "(cached) $ECHO_C" >&6
6799
if test -n "$ac_ct_RANLIB"; then
6800
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6802
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806
test -z "$as_dir" && as_dir=.
6807
for ac_exec_ext in '' $ac_executable_extensions; do
6808
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809
ac_cv_prog_ac_ct_RANLIB="ranlib"
6810
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6820
if test -n "$ac_ct_RANLIB"; then
6821
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6822
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6824
{ echo "$as_me:$LINENO: result: no" >&5
6825
echo "${ECHO_T}no" >&6; }
6828
if test "x$ac_ct_RANLIB" = x; then
6831
case $cross_compiling:$ac_tool_warned in
6833
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6834
whose name does not start with the host triplet. If you think this
6835
configuration is useful to you, please write to autoconf@gnu.org." >&5
6836
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6837
whose name does not start with the host triplet. If you think this
6838
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6839
ac_tool_warned=yes ;;
6841
RANLIB=$ac_ct_RANLIB
6844
RANLIB="$ac_cv_prog_RANLIB"
6847
if test -n "$ac_tool_prefix"; then
6848
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6849
set dummy ${ac_tool_prefix}strip; ac_word=$2
6850
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6851
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852
if test "${ac_cv_prog_STRIP+set}" = set; then
6853
echo $ECHO_N "(cached) $ECHO_C" >&6
6855
if test -n "$STRIP"; then
6856
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6858
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862
test -z "$as_dir" && as_dir=.
6863
for ac_exec_ext in '' $ac_executable_extensions; do
6864
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6865
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6866
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875
STRIP=$ac_cv_prog_STRIP
6876
if test -n "$STRIP"; then
6877
{ echo "$as_me:$LINENO: result: $STRIP" >&5
6878
echo "${ECHO_T}$STRIP" >&6; }
6880
{ echo "$as_me:$LINENO: result: no" >&5
6881
echo "${ECHO_T}no" >&6; }
6886
if test -z "$ac_cv_prog_STRIP"; then
6888
# Extract the first word of "strip", so it can be a program name with args.
6889
set dummy strip; ac_word=$2
6890
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6891
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6893
echo $ECHO_N "(cached) $ECHO_C" >&6
6895
if test -n "$ac_ct_STRIP"; then
6896
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6898
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902
test -z "$as_dir" && as_dir=.
6903
for ac_exec_ext in '' $ac_executable_extensions; do
6904
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6905
ac_cv_prog_ac_ct_STRIP="strip"
6906
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6916
if test -n "$ac_ct_STRIP"; then
6917
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6918
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6920
{ echo "$as_me:$LINENO: result: no" >&5
6921
echo "${ECHO_T}no" >&6; }
6924
if test "x$ac_ct_STRIP" = x; then
6927
case $cross_compiling:$ac_tool_warned in
6929
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6930
whose name does not start with the host triplet. If you think this
6931
configuration is useful to you, please write to autoconf@gnu.org." >&5
6932
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6933
whose name does not start with the host triplet. If you think this
6934
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6935
ac_tool_warned=yes ;;
6940
STRIP="$ac_cv_prog_STRIP"
6945
old_CFLAGS="$CFLAGS"
6947
# Set sane defaults for various variables
6948
test -z "$AR" && AR=ar
6949
test -z "$AR_FLAGS" && AR_FLAGS=cru
6950
test -z "$AS" && AS=as
6951
test -z "$CC" && CC=cc
6952
test -z "$LTCC" && LTCC=$CC
6953
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6954
test -z "$DLLTOOL" && DLLTOOL=dlltool
6955
test -z "$LD" && LD=ld
6956
test -z "$LN_S" && LN_S="ln -s"
6957
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6958
test -z "$NM" && NM=nm
6959
test -z "$SED" && SED=sed
6960
test -z "$OBJDUMP" && OBJDUMP=objdump
6961
test -z "$RANLIB" && RANLIB=:
6962
test -z "$STRIP" && STRIP=:
6963
test -z "$ac_objext" && ac_objext=o
6965
# Determine commands to create old-style static archives.
6966
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6967
old_postinstall_cmds='chmod 644 $oldlib'
6968
old_postuninstall_cmds=
6970
if test -n "$RANLIB"; then
6973
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6976
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6979
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6982
for cc_temp in $compiler""; do
6984
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6985
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6990
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6993
# Only perform the check for file, if the check method requires it
6994
case $deplibs_check_method in
6996
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6997
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6998
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6999
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7000
echo $ECHO_N "(cached) $ECHO_C" >&6
7004
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7007
lt_save_MAGIC_CMD="$MAGIC_CMD"
7008
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7009
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7010
for ac_dir in $ac_dummy; do
7012
test -z "$ac_dir" && ac_dir=.
7013
if test -f $ac_dir/${ac_tool_prefix}file; then
7014
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7015
if test -n "$file_magic_test_file"; then
7016
case $deplibs_check_method in
7018
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7019
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7020
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7021
$EGREP "$file_magic_regex" > /dev/null; then
7026
*** Warning: the command libtool uses to detect shared libraries,
7027
*** $file_magic_cmd, produces output that libtool cannot recognize.
7028
*** The result is that libtool may fail to recognize shared libraries
7029
*** as such. This will affect the creation of libtool libraries that
7030
*** depend on shared libraries, but programs linked with such libtool
7031
*** libraries will work regardless of this problem. Nevertheless, you
7032
*** may want to report the problem to your system manager and/or to
7033
*** bug-libtool@gnu.org
7043
MAGIC_CMD="$lt_save_MAGIC_CMD"
7048
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7049
if test -n "$MAGIC_CMD"; then
7050
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7051
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7053
{ echo "$as_me:$LINENO: result: no" >&5
7054
echo "${ECHO_T}no" >&6; }
7057
if test -z "$lt_cv_path_MAGIC_CMD"; then
7058
if test -n "$ac_tool_prefix"; then
7059
{ echo "$as_me:$LINENO: checking for file" >&5
7060
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7061
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7062
echo $ECHO_N "(cached) $ECHO_C" >&6
7066
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7069
lt_save_MAGIC_CMD="$MAGIC_CMD"
7070
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7071
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7072
for ac_dir in $ac_dummy; do
7074
test -z "$ac_dir" && ac_dir=.
7075
if test -f $ac_dir/file; then
7076
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7077
if test -n "$file_magic_test_file"; then
7078
case $deplibs_check_method in
7080
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7081
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7082
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7083
$EGREP "$file_magic_regex" > /dev/null; then
7088
*** Warning: the command libtool uses to detect shared libraries,
7089
*** $file_magic_cmd, produces output that libtool cannot recognize.
7090
*** The result is that libtool may fail to recognize shared libraries
7091
*** as such. This will affect the creation of libtool libraries that
7092
*** depend on shared libraries, but programs linked with such libtool
7093
*** libraries will work regardless of this problem. Nevertheless, you
7094
*** may want to report the problem to your system manager and/or to
7095
*** bug-libtool@gnu.org
7105
MAGIC_CMD="$lt_save_MAGIC_CMD"
7110
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7111
if test -n "$MAGIC_CMD"; then
7112
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7113
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7115
{ echo "$as_me:$LINENO: result: no" >&5
7116
echo "${ECHO_T}no" >&6; }
7130
rhapsody* | darwin*)
7131
if test -n "$ac_tool_prefix"; then
7132
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7133
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7134
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7135
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7136
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7137
echo $ECHO_N "(cached) $ECHO_C" >&6
7139
if test -n "$DSYMUTIL"; then
7140
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7142
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146
test -z "$as_dir" && as_dir=.
7147
for ac_exec_ext in '' $ac_executable_extensions; do
7148
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7150
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7160
if test -n "$DSYMUTIL"; then
7161
{ echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7162
echo "${ECHO_T}$DSYMUTIL" >&6; }
7164
{ echo "$as_me:$LINENO: result: no" >&5
7165
echo "${ECHO_T}no" >&6; }
7170
if test -z "$ac_cv_prog_DSYMUTIL"; then
7171
ac_ct_DSYMUTIL=$DSYMUTIL
7172
# Extract the first word of "dsymutil", so it can be a program name with args.
7173
set dummy dsymutil; ac_word=$2
7174
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7175
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7177
echo $ECHO_N "(cached) $ECHO_C" >&6
7179
if test -n "$ac_ct_DSYMUTIL"; then
7180
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186
test -z "$as_dir" && as_dir=.
7187
for ac_exec_ext in '' $ac_executable_extensions; do
7188
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7189
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7190
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7200
if test -n "$ac_ct_DSYMUTIL"; then
7201
{ echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7202
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7204
{ echo "$as_me:$LINENO: result: no" >&5
7205
echo "${ECHO_T}no" >&6; }
7208
if test "x$ac_ct_DSYMUTIL" = x; then
7211
case $cross_compiling:$ac_tool_warned in
7213
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7214
whose name does not start with the host triplet. If you think this
7215
configuration is useful to you, please write to autoconf@gnu.org." >&5
7216
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7217
whose name does not start with the host triplet. If you think this
7218
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7219
ac_tool_warned=yes ;;
7221
DSYMUTIL=$ac_ct_DSYMUTIL
7224
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7227
if test -n "$ac_tool_prefix"; then
7228
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7229
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7230
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7231
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7232
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7233
echo $ECHO_N "(cached) $ECHO_C" >&6
7235
if test -n "$NMEDIT"; then
7236
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7238
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242
test -z "$as_dir" && as_dir=.
7243
for ac_exec_ext in '' $ac_executable_extensions; do
7244
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7246
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255
NMEDIT=$ac_cv_prog_NMEDIT
7256
if test -n "$NMEDIT"; then
7257
{ echo "$as_me:$LINENO: result: $NMEDIT" >&5
7258
echo "${ECHO_T}$NMEDIT" >&6; }
7260
{ echo "$as_me:$LINENO: result: no" >&5
7261
echo "${ECHO_T}no" >&6; }
7266
if test -z "$ac_cv_prog_NMEDIT"; then
7267
ac_ct_NMEDIT=$NMEDIT
7268
# Extract the first word of "nmedit", so it can be a program name with args.
7269
set dummy nmedit; ac_word=$2
7270
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7271
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7272
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7273
echo $ECHO_N "(cached) $ECHO_C" >&6
7275
if test -n "$ac_ct_NMEDIT"; then
7276
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7278
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282
test -z "$as_dir" && as_dir=.
7283
for ac_exec_ext in '' $ac_executable_extensions; do
7284
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7285
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7286
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7296
if test -n "$ac_ct_NMEDIT"; then
7297
{ echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7298
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7300
{ echo "$as_me:$LINENO: result: no" >&5
7301
echo "${ECHO_T}no" >&6; }
7304
if test "x$ac_ct_NMEDIT" = x; then
7307
case $cross_compiling:$ac_tool_warned in
7309
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7310
whose name does not start with the host triplet. If you think this
7311
configuration is useful to you, please write to autoconf@gnu.org." >&5
7312
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7313
whose name does not start with the host triplet. If you think this
7314
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7315
ac_tool_warned=yes ;;
7317
NMEDIT=$ac_ct_NMEDIT
7320
NMEDIT="$ac_cv_prog_NMEDIT"
7324
{ echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7325
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7326
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7327
echo $ECHO_N "(cached) $ECHO_C" >&6
7329
lt_cv_apple_cc_single_mod=no
7330
if test -z "${LT_MULTI_MODULE}"; then
7331
# By default we will add the -single_module flag. You can override
7332
# by either setting the environment variable LT_MULTI_MODULE
7333
# non-empty at configure time, or by adding -multi_module to the
7335
echo "int foo(void){return 1;}" > conftest.c
7336
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7337
-dynamiclib ${wl}-single_module conftest.c
7338
if test -f libconftest.dylib; then
7339
lt_cv_apple_cc_single_mod=yes
7340
rm -rf libconftest.dylib*
7345
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7346
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7347
{ echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7348
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7349
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7350
echo $ECHO_N "(cached) $ECHO_C" >&6
7352
lt_cv_ld_exported_symbols_list=no
7353
save_LDFLAGS=$LDFLAGS
7354
echo "_main" > conftest.sym
7355
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7356
cat >conftest.$ac_ext <<_ACEOF
7359
cat confdefs.h >>conftest.$ac_ext
7360
cat >>conftest.$ac_ext <<_ACEOF
7361
/* end confdefs.h. */
7371
rm -f conftest.$ac_objext conftest$ac_exeext
7372
if { (ac_try="$ac_link"
7374
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375
*) ac_try_echo=$ac_try;;
7377
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7378
(eval "$ac_link") 2>conftest.er1
7380
grep -v '^ *+' conftest.er1 >conftest.err
7382
cat conftest.err >&5
7383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384
(exit $ac_status); } && {
7385
test -z "$ac_c_werror_flag" ||
7386
test ! -s conftest.err
7387
} && test -s conftest$ac_exeext &&
7388
$as_test_x conftest$ac_exeext; then
7389
lt_cv_ld_exported_symbols_list=yes
7391
echo "$as_me: failed program was:" >&5
7392
sed 's/^/| /' conftest.$ac_ext >&5
7394
lt_cv_ld_exported_symbols_list=no
7397
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7398
conftest$ac_exeext conftest.$ac_ext
7399
LDFLAGS="$save_LDFLAGS"
7402
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7403
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7405
rhapsody* | darwin1.[0123])
7406
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7408
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7410
# if running on 10.5 or later, the deployment target defaults
7411
# to the OS version, if on x86, and 10.4, the deployment
7412
# target defaults to 10.4. Don't you love it?
7413
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7414
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7415
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7417
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7419
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7423
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7424
_lt_dar_single_mod='$single_module'
7426
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7427
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7429
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7431
if test "$DSYMUTIL" != ":"; then
7432
_lt_dsymutil="~$DSYMUTIL \$lib || :"
7443
# Check whether --enable-libtool-lock was given.
7444
if test "${enable_libtool_lock+set}" = set; then
7445
enableval=$enable_libtool_lock;
7448
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7451
# Check whether --with-pic was given.
7452
if test "${with_pic+set}" = set; then
7453
withval=$with_pic; pic_mode="$withval"
7458
test -z "$pic_mode" && pic_mode=default
7460
# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
7462
# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
7463
# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
7464
# calls AC_LIBTOOL_CONFIG and creates libtool.
7466
{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
7467
echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
7468
if test "x$ltmain" = "x" ; then
7469
{ echo "$as_me:$LINENO: result: no" >&5
7470
echo "${ECHO_T}no" >&6; }
7471
{ { echo "$as_me:$LINENO: error:
7473
*** [Gentoo] sanity check failed! ***
7474
*** \$ltmain is not defined, please check the patch for consistency! ***
7476
echo "$as_me: error:
7478
*** [Gentoo] sanity check failed! ***
7479
*** \$ltmain is not defined, please check the patch for consistency! ***
7481
{ (exit 1); exit 1; }; }
7483
gentoo_lt_version="1.5.26"
7484
gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
7485
if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
7486
{ echo "$as_me:$LINENO: result: no" >&5
7487
echo "${ECHO_T}no" >&6; }
7488
{ { echo "$as_me:$LINENO: error:
7490
*** [Gentoo] sanity check failed! ***
7491
*** libtool.m4 and ltmain.sh have a version mismatch! ***
7492
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7496
libtoolize --copy --force
7498
if appropriate, please contact the maintainer of this
7499
package (or your distribution) for help.
7501
echo "$as_me: error:
7503
*** [Gentoo] sanity check failed! ***
7504
*** libtool.m4 and ltmain.sh have a version mismatch! ***
7505
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7509
libtoolize --copy --force
7511
if appropriate, please contact the maintainer of this
7512
package (or your distribution) for help.
7514
{ (exit 1); exit 1; }; }
7516
{ echo "$as_me:$LINENO: result: yes" >&5
7517
echo "${ECHO_T}yes" >&6; }
7521
# Use C for the default configuration in the libtool script
7525
ac_cpp='$CPP $CPPFLAGS'
7526
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7527
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7528
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7531
# Source file extension for C test sources.
7534
# Object file extension for compiled C test sources.
7538
# Code to be used in simple compile tests
7539
lt_simple_compile_test_code="int some_variable = 0;"
7541
# Code to be used in simple link tests
7542
lt_simple_link_test_code='int main(){return(0);}'
7545
# If no C compiler was specified, use CC.
7548
# If no C compiler flags were specified, use CFLAGS.
7549
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7551
# Allow CC to be a program name with arguments.
7555
# save warnings/boilerplate of simple test code
7556
ac_outfile=conftest.$ac_objext
7557
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7558
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7559
_lt_compiler_boilerplate=`cat conftest.err`
7562
ac_outfile=conftest.$ac_objext
7563
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7564
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7565
_lt_linker_boilerplate=`cat conftest.err`
7570
lt_prog_compiler_no_builtin_flag=
7572
if test "$GCC" = yes; then
7573
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7576
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7577
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7578
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7579
echo $ECHO_N "(cached) $ECHO_C" >&6
7581
lt_cv_prog_compiler_rtti_exceptions=no
7582
ac_outfile=conftest.$ac_objext
7583
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7584
lt_compiler_flag="-fno-rtti -fno-exceptions"
7585
# Insert the option either (1) after the last *FLAGS variable, or
7586
# (2) before a word containing "conftest.", or (3) at the end.
7587
# Note that $ac_compile itself does not contain backslashes and begins
7588
# with a dollar sign (not a hyphen), so the echo should work correctly.
7589
# The option is referenced via a variable to avoid confusing sed.
7590
lt_compile=`echo "$ac_compile" | $SED \
7591
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7592
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7593
-e 's:$: $lt_compiler_flag:'`
7594
(eval echo "\"\$as_me:7594: $lt_compile\"" >&5)
7595
(eval "$lt_compile" 2>conftest.err)
7597
cat conftest.err >&5
7598
echo "$as_me:7598: \$? = $ac_status" >&5
7599
if (exit $ac_status) && test -s "$ac_outfile"; then
7600
# The compiler can only warn and ignore the option if not recognized
7601
# So say no if there are warnings other than the usual output.
7602
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7603
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7604
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7605
lt_cv_prog_compiler_rtti_exceptions=yes
7611
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7612
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7614
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7615
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7622
lt_prog_compiler_wl=
7623
lt_prog_compiler_pic=
7624
lt_prog_compiler_static=
7626
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7627
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7629
if test "$GCC" = yes; then
7630
lt_prog_compiler_wl='-Wl,'
7631
lt_prog_compiler_static='-static'
7635
# All AIX code is PIC.
7636
if test "$host_cpu" = ia64; then
7637
# AIX 5 now supports IA64 processor
7638
lt_prog_compiler_static='-Bstatic'
7643
# FIXME: we need at least 68020 code to build shared libraries, but
7644
# adding the `-m68020' flag to GCC prevents building anything better,
7646
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7649
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7650
# PIC is the default for these OSes.
7653
mingw* | cygwin* | pw32* | os2*)
7654
# This hack is so that the source file can tell whether it is being
7655
# built for inclusion in a dll (and should export symbols for example).
7656
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7657
# (--disable-auto-import) libraries
7658
lt_prog_compiler_pic='-DDLL_EXPORT'
7661
darwin* | rhapsody*)
7662
# PIC is the default on this platform
7663
# Common symbols not allowed in MH_DYLIB files
7664
lt_prog_compiler_pic='-fno-common'
7668
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7669
# Instead, we relocate shared libraries at runtime.
7673
# Just because we use GCC doesn't mean we suddenly get shared libraries
7674
# on systems that don't support them.
7675
lt_prog_compiler_can_build_shared=no
7680
if test -d /usr/nec; then
7681
lt_prog_compiler_pic=-Kconform_pic
7686
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7693
lt_prog_compiler_pic='-fPIC'
7699
lt_prog_compiler_pic='-fPIC'
7703
# PORTME Check for flag to pass linker flags through the system compiler.
7706
lt_prog_compiler_wl='-Wl,'
7707
if test "$host_cpu" = ia64; then
7708
# AIX 5 now supports IA64 processor
7709
lt_prog_compiler_static='-Bstatic'
7711
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7715
# PIC is the default on this platform
7716
# Common symbols not allowed in MH_DYLIB files
7717
case $cc_basename in
7719
lt_prog_compiler_pic='-qnocommon'
7720
lt_prog_compiler_wl='-Wl,'
7725
mingw* | cygwin* | pw32* | os2*)
7726
# This hack is so that the source file can tell whether it is being
7727
# built for inclusion in a dll (and should export symbols for example).
7728
lt_prog_compiler_pic='-DDLL_EXPORT'
7731
hpux9* | hpux10* | hpux11*)
7732
lt_prog_compiler_wl='-Wl,'
7733
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7740
lt_prog_compiler_pic='+Z'
7743
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7744
lt_prog_compiler_static='${wl}-a ${wl}archive'
7747
irix5* | irix6* | nonstopux*)
7748
lt_prog_compiler_wl='-Wl,'
7749
# PIC (with -KPIC) is the default.
7750
lt_prog_compiler_static='-non_shared'
7754
lt_prog_compiler_pic='-KPIC'
7755
lt_prog_compiler_static='-Bstatic'
7758
linux* | k*bsd*-gnu)
7759
case $cc_basename in
7761
lt_prog_compiler_wl='-Wl,'
7762
lt_prog_compiler_pic='-KPIC'
7763
lt_prog_compiler_static='-static'
7765
pgcc* | pgf77* | pgf90* | pgf95*)
7766
# Portland Group compilers (*not* the Pentium gcc compiler,
7767
# which looks to be a dead project)
7768
lt_prog_compiler_wl='-Wl,'
7769
lt_prog_compiler_pic='-fpic'
7770
lt_prog_compiler_static='-Bstatic'
7773
lt_prog_compiler_wl='-Wl,'
7774
# All Alpha code is PIC.
7775
lt_prog_compiler_static='-non_shared'
7778
case `$CC -V 2>&1 | sed 5q` in
7781
lt_prog_compiler_pic='-KPIC'
7782
lt_prog_compiler_static='-Bstatic'
7783
lt_prog_compiler_wl='-Wl,'
7786
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7787
lt_prog_compiler_pic='-KPIC'
7788
lt_prog_compiler_static='-Bstatic'
7789
lt_prog_compiler_wl=''
7796
osf3* | osf4* | osf5*)
7797
lt_prog_compiler_wl='-Wl,'
7798
# All OSF/1 code is PIC.
7799
lt_prog_compiler_static='-non_shared'
7803
lt_prog_compiler_static='-non_shared'
7807
lt_prog_compiler_pic='-KPIC'
7808
lt_prog_compiler_static='-Bstatic'
7809
case $cc_basename in
7811
lt_prog_compiler_wl='-Qoption ld ';;
7813
lt_prog_compiler_wl='-Wl,';;
7818
lt_prog_compiler_wl='-Qoption ld '
7819
lt_prog_compiler_pic='-PIC'
7820
lt_prog_compiler_static='-Bstatic'
7823
sysv4 | sysv4.2uw2* | sysv4.3*)
7824
lt_prog_compiler_wl='-Wl,'
7825
lt_prog_compiler_pic='-KPIC'
7826
lt_prog_compiler_static='-Bstatic'
7830
if test -d /usr/nec ;then
7831
lt_prog_compiler_pic='-Kconform_pic'
7832
lt_prog_compiler_static='-Bstatic'
7836
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7837
lt_prog_compiler_wl='-Wl,'
7838
lt_prog_compiler_pic='-KPIC'
7839
lt_prog_compiler_static='-Bstatic'
7843
lt_prog_compiler_wl='-Wl,'
7844
lt_prog_compiler_can_build_shared=no
7848
lt_prog_compiler_pic='-pic'
7849
lt_prog_compiler_static='-Bstatic'
7853
lt_prog_compiler_can_build_shared=no
7858
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7859
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7862
# Check to make sure the PIC flag actually works.
7864
if test -n "$lt_prog_compiler_pic"; then
7866
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7867
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7868
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7869
echo $ECHO_N "(cached) $ECHO_C" >&6
7871
lt_cv_prog_compiler_pic_works=no
7872
ac_outfile=conftest.$ac_objext
7873
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7874
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7875
# Insert the option either (1) after the last *FLAGS variable, or
7876
# (2) before a word containing "conftest.", or (3) at the end.
7877
# Note that $ac_compile itself does not contain backslashes and begins
7878
# with a dollar sign (not a hyphen), so the echo should work correctly.
7879
# The option is referenced via a variable to avoid confusing sed.
7880
lt_compile=`echo "$ac_compile" | $SED \
7881
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7882
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7883
-e 's:$: $lt_compiler_flag:'`
7884
(eval echo "\"\$as_me:7884: $lt_compile\"" >&5)
7885
(eval "$lt_compile" 2>conftest.err)
7887
cat conftest.err >&5
7888
echo "$as_me:7888: \$? = $ac_status" >&5
7889
if (exit $ac_status) && test -s "$ac_outfile"; then
7890
# The compiler can only warn and ignore the option if not recognized
7891
# So say no if there are warnings other than the usual output.
7892
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7893
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7894
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7895
lt_cv_prog_compiler_pic_works=yes
7901
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7902
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7904
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7905
case $lt_prog_compiler_pic in
7907
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7910
lt_prog_compiler_pic=
7911
lt_prog_compiler_can_build_shared=no
7916
# For platforms which do not support PIC, -DPIC is meaningless:
7918
lt_prog_compiler_pic=
7921
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7926
# Check to make sure the static flag actually works.
7928
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7929
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7930
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7931
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7932
echo $ECHO_N "(cached) $ECHO_C" >&6
7934
lt_cv_prog_compiler_static_works=no
7935
save_LDFLAGS="$LDFLAGS"
7936
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7937
echo "$lt_simple_link_test_code" > conftest.$ac_ext
7938
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7939
# The linker can only warn and ignore the option if not recognized
7940
# So say no if there are warnings
7941
if test -s conftest.err; then
7942
# Append any errors to the config.log.
7943
cat conftest.err 1>&5
7944
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7945
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7946
if diff conftest.exp conftest.er2 >/dev/null; then
7947
lt_cv_prog_compiler_static_works=yes
7950
lt_cv_prog_compiler_static_works=yes
7954
LDFLAGS="$save_LDFLAGS"
7957
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7958
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7960
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7963
lt_prog_compiler_static=
7967
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7968
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7969
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7970
echo $ECHO_N "(cached) $ECHO_C" >&6
7972
lt_cv_prog_compiler_c_o=no
7973
$rm -r conftest 2>/dev/null
7977
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7979
lt_compiler_flag="-o out/conftest2.$ac_objext"
7980
# Insert the option either (1) after the last *FLAGS variable, or
7981
# (2) before a word containing "conftest.", or (3) at the end.
7982
# Note that $ac_compile itself does not contain backslashes and begins
7983
# with a dollar sign (not a hyphen), so the echo should work correctly.
7984
lt_compile=`echo "$ac_compile" | $SED \
7985
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7986
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7987
-e 's:$: $lt_compiler_flag:'`
7988
(eval echo "\"\$as_me:7988: $lt_compile\"" >&5)
7989
(eval "$lt_compile" 2>out/conftest.err)
7991
cat out/conftest.err >&5
7992
echo "$as_me:7992: \$? = $ac_status" >&5
7993
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7995
# The compiler can only warn and ignore the option if not recognized
7996
# So say no if there are warnings
7997
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7998
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7999
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8000
lt_cv_prog_compiler_c_o=yes
8005
# SGI C++ compiler will create directory out/ii_files/ for
8006
# template instantiation
8007
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8008
$rm out/* && rmdir out
8014
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8015
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8018
hard_links="nottested"
8019
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8020
# do not overwrite the value of need_locks provided by the user
8021
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8022
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8025
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8027
ln conftest.a conftest.b 2>&5 || hard_links=no
8028
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8029
{ echo "$as_me:$LINENO: result: $hard_links" >&5
8030
echo "${ECHO_T}$hard_links" >&6; }
8031
if test "$hard_links" = no; then
8032
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8033
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8040
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8041
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8044
allow_undefined_flag=
8045
enable_shared_with_static_runtimes=no
8047
archive_expsym_cmds=
8048
old_archive_From_new_cmds=
8049
old_archive_from_expsyms_cmds=
8050
export_dynamic_flag_spec=
8051
whole_archive_flag_spec=
8052
thread_safe_flag_spec=
8053
hardcode_libdir_flag_spec=
8054
hardcode_libdir_flag_spec_ld=
8055
hardcode_libdir_separator=
8058
hardcode_shlibpath_var=unsupported
8059
link_all_deplibs=unknown
8060
hardcode_automatic=no
8063
always_export_symbols=no
8064
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8065
# include_expsyms should be a list of space-separated symbols to be *always*
8066
# included in the symbol list
8068
# exclude_expsyms can be an extended regexp of symbols to exclude
8069
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8070
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8071
# as well as any symbol that contains `d'.
8072
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8073
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8074
# platforms (ab)use it in PIC code, but their linkers get confused if
8075
# the symbol is explicitly referenced. Since portable code cannot
8076
# rely on this symbol name, it's probably fine to never include it in
8077
# preloaded symbol tables.
8078
# Exclude shared library initialization/finalization symbols.
8079
extract_expsyms_cmds=
8080
# Just being paranoid about ensuring that cc_basename is set.
8081
for cc_temp in $compiler""; do
8083
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8084
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8089
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8092
cygwin* | mingw* | pw32*)
8093
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8094
# When not using gcc, we currently assume that we are using
8095
# Microsoft Visual C++.
8096
if test "$GCC" != yes; then
8101
# we just hope/assume this is gcc and not c89 (= MSVC++)
8110
if test "$with_gnu_ld" = yes; then
8111
# If archive_cmds runs LD, not CC, wlarc should be empty
8114
# Set some defaults for GNU ld with shared library support. These
8115
# are reset later if shared libraries are not supported. Putting them
8116
# here allows them to be overridden if necessary.
8117
runpath_var=LD_RUN_PATH
8118
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8119
export_dynamic_flag_spec='${wl}--export-dynamic'
8120
# ancient GNU ld didn't support --whole-archive et. al.
8121
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8122
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8124
whole_archive_flag_spec=
8126
supports_anon_versioning=no
8127
case `$LD -v 2>/dev/null` in
8128
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8129
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8130
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8131
*\ 2.11.*) ;; # other 2.11 versions
8132
*) supports_anon_versioning=yes ;;
8135
# See if GNU ld supports shared libraries.
8138
# On AIX/PPC, the GNU linker is very broken
8139
if test "$host_cpu" != ia64; then
8143
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8144
*** to be unable to reliably create shared libraries on AIX.
8145
*** Therefore, libtool is disabling shared libraries support. If you
8146
*** really care for shared libraries, you may want to modify your PATH
8147
*** so that a non-GNU linker is found, and then restart.
8154
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)'
8155
hardcode_libdir_flag_spec='-L$libdir'
8156
hardcode_minus_L=yes
8158
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8159
# that the semantics of dynamic libraries on AmigaOS, at least up
8160
# to version 4, is to share data among multiple programs linked
8161
# with the same dynamic library. Since this doesn't match the
8162
# behavior of shared libraries on other platforms, we can't use
8168
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8169
allow_undefined_flag=unsupported
8170
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8171
# support --undefined. This deserves some investigation. FIXME
8172
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8178
cygwin* | mingw* | pw32*)
8179
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8180
# as there is no search path for DLLs.
8181
hardcode_libdir_flag_spec='-L$libdir'
8182
allow_undefined_flag=unsupported
8183
always_export_symbols=no
8184
enable_shared_with_static_runtimes=yes
8185
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8187
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8188
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8189
# If the export-symbols file already is a .def file (1st line
8190
# is EXPORTS), use it as is; otherwise, prepend...
8191
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8192
cp $export_symbols $output_objdir/$soname.def;
8194
echo EXPORTS > $output_objdir/$soname.def;
8195
cat $export_symbols >> $output_objdir/$soname.def;
8197
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8205
hardcode_shlibpath_var=no
8206
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8207
export_dynamic_flag_spec='${wl}-E'
8208
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8209
# Instead, shared libraries are loaded at an image base (0x10000000 by
8210
# default) and relocated if they conflict, which is a slow very memory
8211
# consuming and fragmenting process. To avoid this, we pick a random,
8212
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8213
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8214
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8215
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'
8218
gnu* | linux* | k*bsd*-gnu)
8219
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8221
case $cc_basename,$host_cpu in
8222
pgcc*) # Portland Group C compiler
8223
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8224
tmp_addflag=' $pic_flag'
8226
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8227
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8228
tmp_addflag=' $pic_flag -Mnomain' ;;
8229
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8230
tmp_addflag=' -i_dynamic' ;;
8231
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8232
tmp_addflag=' -i_dynamic -nofor_main' ;;
8233
ifc* | ifort*) # Intel Fortran compiler
8234
tmp_addflag=' -nofor_main' ;;
8236
case `$CC -V 2>&1 | sed 5q` in
8237
*Sun\ C*) # Sun C 5.9
8238
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8239
tmp_sharedflag='-G' ;;
8240
*Sun\ F*) # Sun Fortran 8.3
8241
tmp_sharedflag='-G' ;;
8243
tmp_sharedflag='-shared' ;;
8245
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8247
if test $supports_anon_versioning = yes; then
8248
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8249
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8250
$echo "local: *; };" >> $output_objdir/$libname.ver~
8251
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8259
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8260
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8263
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8264
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8269
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8273
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8274
*** create shared libraries on Solaris systems. Therefore, libtool
8275
*** is disabling shared libraries support. We urge you to upgrade GNU
8276
*** binutils to release 2.9.1 or newer. Another option is to modify
8277
*** your PATH or compiler configuration so that the native linker is
8278
*** used, and then restart.
8281
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8282
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8283
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8289
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8290
case `$LD -v 2>&1` in
8291
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8295
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8296
*** reliably create shared libraries on SCO systems. Therefore, libtool
8297
*** is disabling shared libraries support. We urge you to upgrade GNU
8298
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8299
*** your PATH or compiler configuration so that the native linker is
8300
*** used, and then restart.
8305
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8306
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8307
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8308
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8317
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8320
hardcode_shlibpath_var=no
8324
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8325
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8326
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8333
if test "$ld_shlibs" = no; then
8335
hardcode_libdir_flag_spec=
8336
export_dynamic_flag_spec=
8337
whole_archive_flag_spec=
8340
# PORTME fill in a description of your system's linker (not GNU ld)
8343
allow_undefined_flag=unsupported
8344
always_export_symbols=yes
8345
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'
8346
# Note: this linker hardcodes the directories in LIBPATH if there
8347
# are no directories specified by -L.
8348
hardcode_minus_L=yes
8349
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8350
# Neither direct hardcoding nor static linking is supported with a
8352
hardcode_direct=unsupported
8357
if test "$host_cpu" = ia64; then
8358
# On IA64, the linker does run time linking by default, so we don't
8359
# have to do anything special.
8360
aix_use_runtimelinking=no
8361
exp_sym_flag='-Bexport'
8364
# If we're using GNU nm, then we don't want the "-C" option.
8365
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8366
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8367
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8369
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'
8371
aix_use_runtimelinking=no
8373
# Test if we are trying to use run time linking or normal
8374
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8375
# need to do runtime linking.
8376
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8377
for ld_flag in $LDFLAGS; do
8378
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8379
aix_use_runtimelinking=yes
8386
exp_sym_flag='-bexport'
8387
no_entry_flag='-bnoentry'
8390
# When large executables or shared objects are built, AIX ld can
8391
# have problems creating the table of contents. If linking a library
8392
# or program results in "error TOC overflow" add -mminimal-toc to
8393
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8394
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8398
hardcode_libdir_separator=':'
8399
link_all_deplibs=yes
8401
if test "$GCC" = yes; then
8402
case $host_os in aix4.[012]|aix4.[012].*)
8403
# We only want to do this on AIX 4.2 and lower, the check
8404
# below for broken collect2 doesn't work under 4.3+
8405
collect2name=`${CC} -print-prog-name=collect2`
8406
if test -f "$collect2name" && \
8407
strings "$collect2name" | grep resolve_lib_name >/dev/null
8409
# We have reworked collect2
8412
# We have old collect2
8413
hardcode_direct=unsupported
8414
# It fails to find uninstalled libraries when the uninstalled
8415
# path is not listed in the libpath. Setting hardcode_minus_L
8416
# to unsupported forces relinking
8417
hardcode_minus_L=yes
8418
hardcode_libdir_flag_spec='-L$libdir'
8419
hardcode_libdir_separator=
8423
shared_flag='-shared'
8424
if test "$aix_use_runtimelinking" = yes; then
8425
shared_flag="$shared_flag "'${wl}-G'
8429
if test "$host_cpu" = ia64; then
8430
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8431
# chokes on -Wl,-G. The following line is correct:
8434
if test "$aix_use_runtimelinking" = yes; then
8435
shared_flag='${wl}-G'
8437
shared_flag='${wl}-bM:SRE'
8442
# It seems that -bexpall does not export symbols beginning with
8443
# underscore (_), so it is better to generate a list of symbols to export.
8444
always_export_symbols=yes
8445
if test "$aix_use_runtimelinking" = yes; then
8446
# Warning - without using the other runtime loading flags (-brtl),
8447
# -berok will link without error, but may produce a broken library.
8448
allow_undefined_flag='-berok'
8449
# Determine the default libpath from the value encoded in an empty executable.
8450
cat >conftest.$ac_ext <<_ACEOF
8453
cat confdefs.h >>conftest.$ac_ext
8454
cat >>conftest.$ac_ext <<_ACEOF
8455
/* end confdefs.h. */
8465
rm -f conftest.$ac_objext conftest$ac_exeext
8466
if { (ac_try="$ac_link"
8468
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469
*) ac_try_echo=$ac_try;;
8471
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472
(eval "$ac_link") 2>conftest.er1
8474
grep -v '^ *+' conftest.er1 >conftest.err
8476
cat conftest.err >&5
8477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478
(exit $ac_status); } && {
8479
test -z "$ac_c_werror_flag" ||
8480
test ! -s conftest.err
8481
} && test -s conftest$ac_exeext &&
8482
$as_test_x conftest$ac_exeext; then
8484
lt_aix_libpath_sed='
8485
/Import File Strings/,/^$/ {
8491
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8492
# Check for a 64-bit object if we didn't find anything.
8493
if test -z "$aix_libpath"; then
8494
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8497
echo "$as_me: failed program was:" >&5
8498
sed 's/^/| /' conftest.$ac_ext >&5
8503
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8504
conftest$ac_exeext conftest.$ac_ext
8505
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8507
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8508
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8510
if test "$host_cpu" = ia64; then
8511
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8512
allow_undefined_flag="-z nodefs"
8513
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"
8515
# Determine the default libpath from the value encoded in an empty executable.
8516
cat >conftest.$ac_ext <<_ACEOF
8519
cat confdefs.h >>conftest.$ac_ext
8520
cat >>conftest.$ac_ext <<_ACEOF
8521
/* end confdefs.h. */
8531
rm -f conftest.$ac_objext conftest$ac_exeext
8532
if { (ac_try="$ac_link"
8534
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535
*) ac_try_echo=$ac_try;;
8537
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538
(eval "$ac_link") 2>conftest.er1
8540
grep -v '^ *+' conftest.er1 >conftest.err
8542
cat conftest.err >&5
8543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544
(exit $ac_status); } && {
8545
test -z "$ac_c_werror_flag" ||
8546
test ! -s conftest.err
8547
} && test -s conftest$ac_exeext &&
8548
$as_test_x conftest$ac_exeext; then
8550
lt_aix_libpath_sed='
8551
/Import File Strings/,/^$/ {
8557
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8558
# Check for a 64-bit object if we didn't find anything.
8559
if test -z "$aix_libpath"; then
8560
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8563
echo "$as_me: failed program was:" >&5
8564
sed 's/^/| /' conftest.$ac_ext >&5
8569
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8570
conftest$ac_exeext conftest.$ac_ext
8571
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8573
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8574
# Warning - without using the other run time loading flags,
8575
# -berok will link without error, but may produce a broken library.
8576
no_undefined_flag=' ${wl}-bernotok'
8577
allow_undefined_flag=' ${wl}-berok'
8578
# Exported symbols can be pulled into shared objects from archives
8579
whole_archive_flag_spec='$convenience'
8580
archive_cmds_need_lc=yes
8581
# This is similar to how AIX traditionally builds its shared libraries.
8582
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'
8588
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)'
8589
hardcode_libdir_flag_spec='-L$libdir'
8590
hardcode_minus_L=yes
8591
# see comment about different semantics on the GNU ld section
8596
export_dynamic_flag_spec=-rdynamic
8599
cygwin* | mingw* | pw32*)
8600
# When not using gcc, we currently assume that we are using
8601
# Microsoft Visual C++.
8602
# hardcode_libdir_flag_spec is actually meaningless, as there is
8603
# no search path for DLLs.
8604
hardcode_libdir_flag_spec=' '
8605
allow_undefined_flag=unsupported
8606
# Tell ltmain to make .lib files, not .a files.
8608
# Tell ltmain to make .dll files, not .so files.
8610
# FIXME: Setting linknames here is a bad hack.
8611
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8612
# The linker will automatically build a .lib file if we build a DLL.
8613
old_archive_From_new_cmds='true'
8614
# FIXME: Should let the user specify the lib program.
8615
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8616
fix_srcfile_path='`cygpath -w "$srcfile"`'
8617
enable_shared_with_static_runtimes=yes
8620
darwin* | rhapsody*)
8622
rhapsody* | darwin1.[012])
8623
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8626
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8627
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8629
case ${MACOSX_DEPLOYMENT_TARGET} in
8631
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8634
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8640
archive_cmds_need_lc=no
8642
hardcode_automatic=yes
8643
hardcode_shlibpath_var=unsupported
8644
whole_archive_flag_spec=''
8645
link_all_deplibs=yes
8646
if test "$GCC" = yes ; then
8647
output_verbose_link_cmd='echo'
8648
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8649
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8650
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}"
8651
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}"
8653
case $cc_basename in
8655
output_verbose_link_cmd='echo'
8656
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8657
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8658
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8659
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8660
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8670
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8671
hardcode_libdir_flag_spec='-L$libdir'
8672
hardcode_shlibpath_var=no
8679
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8680
# support. Future versions do this automatically, but an explicit c++rt0.o
8681
# does not break anything, and helps significantly (at the cost of a little
8684
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8685
hardcode_libdir_flag_spec='-R$libdir'
8687
hardcode_shlibpath_var=no
8690
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8692
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8694
hardcode_minus_L=yes
8695
hardcode_shlibpath_var=no
8698
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8699
freebsd* | dragonfly*)
8700
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8701
hardcode_libdir_flag_spec='-R$libdir'
8703
hardcode_shlibpath_var=no
8707
if test "$GCC" = yes; then
8708
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8710
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'
8712
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8713
hardcode_libdir_separator=:
8716
# hardcode_minus_L: Not really in the search PATH,
8717
# but as the default location of the library.
8718
hardcode_minus_L=yes
8719
export_dynamic_flag_spec='${wl}-E'
8723
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8724
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8726
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8728
if test "$with_gnu_ld" = no; then
8729
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8730
hardcode_libdir_separator=:
8733
export_dynamic_flag_spec='${wl}-E'
8735
# hardcode_minus_L: Not really in the search PATH,
8736
# but as the default location of the library.
8737
hardcode_minus_L=yes
8742
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8745
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8748
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8751
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8757
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8760
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8763
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8767
if test "$with_gnu_ld" = no; then
8768
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8769
hardcode_libdir_separator=:
8773
hardcode_libdir_flag_spec_ld='+b $libdir'
8775
hardcode_shlibpath_var=no
8779
export_dynamic_flag_spec='${wl}-E'
8781
# hardcode_minus_L: Not really in the search PATH,
8782
# but as the default location of the library.
8783
hardcode_minus_L=yes
8789
irix5* | irix6* | nonstopux*)
8790
if test "$GCC" = yes; then
8791
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8793
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8794
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8796
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8797
hardcode_libdir_separator=:
8798
link_all_deplibs=yes
8802
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8803
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8805
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8807
hardcode_libdir_flag_spec='-R$libdir'
8809
hardcode_shlibpath_var=no
8813
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8815
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8816
hardcode_libdir_separator=:
8817
hardcode_shlibpath_var=no
8821
if test -f /usr/libexec/ld.so; then
8823
hardcode_shlibpath_var=no
8824
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8825
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8826
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8827
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8828
export_dynamic_flag_spec='${wl}-E'
8831
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8832
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8833
hardcode_libdir_flag_spec='-R$libdir'
8836
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8837
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8847
hardcode_libdir_flag_spec='-L$libdir'
8848
hardcode_minus_L=yes
8849
allow_undefined_flag=unsupported
8850
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'
8851
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8855
if test "$GCC" = yes; then
8856
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8857
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8859
allow_undefined_flag=' -expect_unresolved \*'
8860
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8862
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8863
hardcode_libdir_separator=:
8866
osf4* | osf5*) # as osf3* with the addition of -msym flag
8867
if test "$GCC" = yes; then
8868
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8869
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8870
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8872
allow_undefined_flag=' -expect_unresolved \*'
8873
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8874
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8875
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8877
# Both c and cxx compiler support -rpath directly
8878
hardcode_libdir_flag_spec='-rpath $libdir'
8880
hardcode_libdir_separator=:
8884
no_undefined_flag=' -z text'
8885
if test "$GCC" = yes; then
8887
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8888
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8889
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8892
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8893
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8894
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8896
hardcode_libdir_flag_spec='-R$libdir'
8897
hardcode_shlibpath_var=no
8899
solaris2.[0-5] | solaris2.[0-5].*) ;;
8901
# The compiler driver will combine and reorder linker options,
8902
# but understands `-z linker_flag'. GCC discards it without `$wl',
8903
# but is careful enough not to reorder.
8904
# Supported since Solaris 2.6 (maybe 2.5.1?)
8905
if test "$GCC" = yes; then
8906
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8908
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8912
link_all_deplibs=yes
8916
if test "x$host_vendor" = xsequent; then
8917
# Use $CC to link under sequent, because it throws in some extra .o
8918
# files that make .init and .fini sections work.
8919
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8921
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8923
hardcode_libdir_flag_spec='-L$libdir'
8925
hardcode_minus_L=yes
8926
hardcode_shlibpath_var=no
8930
case $host_vendor in
8932
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933
hardcode_direct=yes # is this really true???
8936
## LD is ld it makes a PLAMLIB
8937
## CC just makes a GrossModule.
8938
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8939
reload_cmds='$CC -r -o $output$reload_objs'
8943
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8944
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8947
runpath_var='LD_RUN_PATH'
8948
hardcode_shlibpath_var=no
8952
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8953
hardcode_shlibpath_var=no
8954
export_dynamic_flag_spec='-Bexport'
8958
if test -d /usr/nec; then
8959
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8960
hardcode_shlibpath_var=no
8961
runpath_var=LD_RUN_PATH
8962
hardcode_runpath_var=yes
8967
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8968
no_undefined_flag='${wl}-z,text'
8969
archive_cmds_need_lc=no
8970
hardcode_shlibpath_var=no
8971
runpath_var='LD_RUN_PATH'
8973
if test "$GCC" = yes; then
8974
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8975
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8977
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8978
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8982
sysv5* | sco3.2v5* | sco5v6*)
8983
# Note: We can NOT use -z defs as we might desire, because we do not
8984
# link with -lc, and that would cause any symbols used from libc to
8985
# always be unresolved, which means just about no library would
8986
# ever link correctly. If we're not using GNU ld we use -z text
8987
# though, which does catch some bad symbols but isn't as heavy-handed
8989
no_undefined_flag='${wl}-z,text'
8990
allow_undefined_flag='${wl}-z,nodefs'
8991
archive_cmds_need_lc=no
8992
hardcode_shlibpath_var=no
8993
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8994
hardcode_libdir_separator=':'
8995
link_all_deplibs=yes
8996
export_dynamic_flag_spec='${wl}-Bexport'
8997
runpath_var='LD_RUN_PATH'
8999
if test "$GCC" = yes; then
9000
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9001
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9003
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9004
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9009
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9010
hardcode_libdir_flag_spec='-L$libdir'
9011
hardcode_shlibpath_var=no
9020
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9021
echo "${ECHO_T}$ld_shlibs" >&6; }
9022
test "$ld_shlibs" = no && can_build_shared=no
9025
# Do we need to explicitly link libc?
9027
case "x$archive_cmds_need_lc" in
9029
# Assume -lc should be added
9030
archive_cmds_need_lc=yes
9032
if test "$enable_shared" = yes && test "$GCC" = yes; then
9033
case $archive_cmds in
9035
# FIXME: we may have to deal with multi-command sequences.
9038
# Test whether the compiler implicitly links with -lc since on some
9039
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9040
# to ld, don't add -lc before -lgcc.
9041
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9042
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9044
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9046
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9047
(eval $ac_compile) 2>&5
9049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050
(exit $ac_status); } 2>conftest.err; then
9053
libobjs=conftest.$ac_objext
9055
wl=$lt_prog_compiler_wl
9056
pic_flag=$lt_prog_compiler_pic
9062
lt_save_allow_undefined_flag=$allow_undefined_flag
9063
allow_undefined_flag=
9064
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9065
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068
(exit $ac_status); }
9070
archive_cmds_need_lc=no
9072
archive_cmds_need_lc=yes
9074
allow_undefined_flag=$lt_save_allow_undefined_flag
9076
cat conftest.err 1>&5
9079
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9080
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9087
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9088
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9090
libname_spec='lib$name'
9098
shlibpath_overrides_runpath=unknown
9100
dynamic_linker="$host_os ld.so"
9101
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9103
if test "$GCC" = yes; then
9105
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9106
*) lt_awk_arg="/^libraries:/" ;;
9108
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9109
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9110
# if the path contains ";" then we assume it to be the separator
9111
# otherwise default to the standard path separator (i.e. ":") - it is
9112
# assumed that no part of a normal pathname contains ";" but that should
9113
# okay in the real world where ";" in dirpaths is itself problematic.
9114
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9116
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9118
# Ok, now we have the path, separated by spaces, we can step through it
9119
# and add multilib dir if necessary.
9120
lt_tmp_lt_search_path_spec=
9121
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9122
for lt_sys_path in $lt_search_path_spec; do
9123
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9124
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9126
test -d "$lt_sys_path" && \
9127
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9130
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9131
BEGIN {RS=" "; FS="/|\n";} {
9134
for (lt_i = NF; lt_i > 0; lt_i--) {
9135
if ($lt_i != "" && $lt_i != ".") {
9136
if ($lt_i == "..") {
9139
if (lt_count == 0) {
9140
lt_foo="/" $lt_i lt_foo;
9147
if (lt_foo != "") { lt_freq[lt_foo]++; }
9148
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9150
sys_lib_search_path_spec=`echo $lt_search_path_spec`
9152
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9154
need_lib_prefix=unknown
9155
hardcode_into_libs=no
9157
# when you set need_version to no, make sure it does not cause -set_version
9158
# flags to be left without arguments
9159
need_version=unknown
9164
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9165
shlibpath_var=LIBPATH
9167
# AIX 3 has no versioning support, so we append a major version to the name.
9168
soname_spec='${libname}${release}${shared_ext}$major'
9175
hardcode_into_libs=yes
9176
if test "$host_cpu" = ia64; then
9177
# AIX 5 supports IA64
9178
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9179
shlibpath_var=LD_LIBRARY_PATH
9181
# With GCC up to 2.95.x, collect2 would create an import file
9182
# for dependence libraries. The import file would start with
9183
# the line `#! .'. This would cause the generated library to
9184
# depend on `.', always an invalid library. This was fixed in
9185
# development snapshots of GCC prior to 3.0.
9187
aix4 | aix4.[01] | aix4.[01].*)
9188
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9190
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9197
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9198
# soname into executable. Probably we can add versioning support to
9199
# collect2, so additional links can be useful in future.
9200
if test "$aix_use_runtimelinking" = yes; then
9201
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9202
# instead of lib<name>.a to let people know that these are not
9203
# typical AIX shared libraries.
9204
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9206
# We preserve .a as extension for shared libraries through AIX4.2
9207
# and later when we are not doing run time linking.
9208
library_names_spec='${libname}${release}.a $libname.a'
9209
soname_spec='${libname}${release}${shared_ext}$major'
9211
shlibpath_var=LIBPATH
9216
library_names_spec='$libname.ixlibrary $libname.a'
9217
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9218
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
9222
library_names_spec='${libname}${shared_ext}'
9223
dynamic_linker="$host_os ld.so"
9224
shlibpath_var=LIBRARY_PATH
9230
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231
soname_spec='${libname}${release}${shared_ext}$major'
9232
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9233
shlibpath_var=LD_LIBRARY_PATH
9234
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9235
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9236
# the default ld.so.conf also contains /usr/contrib/lib and
9237
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9238
# libtool to hard-code these into programs
9241
cygwin* | mingw* | pw32*)
9242
version_type=windows
9247
case $GCC,$host_os in
9248
yes,cygwin* | yes,mingw* | yes,pw32*)
9249
library_names_spec='$libname.dll.a'
9250
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9251
postinstall_cmds='base_file=`basename \${file}`~
9252
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9253
dldir=$destdir/`dirname \$dlpath`~
9254
test -d \$dldir || mkdir -p \$dldir~
9255
$install_prog $dir/$dlname \$dldir/$dlname~
9256
chmod a+x \$dldir/$dlname'
9257
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9258
dlpath=$dir/\$dldll~
9260
shlibpath_overrides_runpath=yes
9264
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9265
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9266
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9269
# MinGW DLLs use traditional 'lib' prefix
9270
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9271
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9272
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9273
# It is most probably a Windows format PATH printed by
9274
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9275
# path with ; separators, and with drive letters. We can handle the
9276
# drive letters (cygwin fileutils understands them), so leave them,
9277
# especially as we might pass files found there to a mingw objdump,
9278
# which wouldn't understand a cygwinified path. Ahh.
9279
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9281
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9285
# pw32 DLLs use 'pw' prefix rather than 'lib'
9286
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9292
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9295
dynamic_linker='Win32 ld.exe'
9296
# FIXME: first we should search . and the directory the executable is in
9300
darwin* | rhapsody*)
9301
dynamic_linker="$host_os dyld"
9305
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9306
soname_spec='${libname}${release}${major}$shared_ext'
9307
shlibpath_overrides_runpath=yes
9308
shlibpath_var=DYLD_LIBRARY_PATH
9309
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9311
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9312
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9319
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9320
soname_spec='${libname}${release}${shared_ext}$major'
9321
shlibpath_var=LD_LIBRARY_PATH
9328
freebsd* | dragonfly*)
9329
# DragonFly does not have aout. When/if they implement a new
9330
# versioning mechanism, adjust this.
9331
if test -x /usr/bin/objformat; then
9332
objformat=`/usr/bin/objformat`
9335
freebsd[123]*) objformat=aout ;;
9339
# Handle Gentoo/FreeBSD as it was Linux
9340
case $host_vendor in
9342
version_type=linux ;;
9344
version_type=freebsd-$objformat ;;
9347
case $version_type in
9349
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9354
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9358
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9359
soname_spec='${libname}${release}${shared_ext}$major'
9364
shlibpath_var=LD_LIBRARY_PATH
9367
shlibpath_overrides_runpath=yes
9369
freebsd3.[01]* | freebsdelf3.[01]*)
9370
shlibpath_overrides_runpath=yes
9371
hardcode_into_libs=yes
9373
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9374
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9375
shlibpath_overrides_runpath=no
9376
hardcode_into_libs=yes
9378
*) # from 4.6 on, and DragonFly
9379
shlibpath_overrides_runpath=yes
9380
hardcode_into_libs=yes
9389
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9390
soname_spec='${libname}${release}${shared_ext}$major'
9391
shlibpath_var=LD_LIBRARY_PATH
9392
hardcode_into_libs=yes
9395
hpux9* | hpux10* | hpux11*)
9396
# Give a soname corresponding to the major version so that dld.sl refuses to
9397
# link against other versions.
9404
hardcode_into_libs=yes
9405
dynamic_linker="$host_os dld.so"
9406
shlibpath_var=LD_LIBRARY_PATH
9407
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9408
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409
soname_spec='${libname}${release}${shared_ext}$major'
9410
if test "X$HPUX_IA64_MODE" = X32; then
9411
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9413
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9415
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9419
hardcode_into_libs=yes
9420
dynamic_linker="$host_os dld.sl"
9421
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9422
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9423
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9424
soname_spec='${libname}${release}${shared_ext}$major'
9425
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9426
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9430
dynamic_linker="$host_os dld.sl"
9431
shlibpath_var=SHLIB_PATH
9432
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434
soname_spec='${libname}${release}${shared_ext}$major'
9437
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9438
postinstall_cmds='chmod 555 $lib'
9445
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9446
soname_spec='${libname}${release}${shared_ext}$major'
9447
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9448
shlibpath_var=LD_LIBRARY_PATH
9449
shlibpath_overrides_runpath=no
9450
hardcode_into_libs=yes
9453
irix5* | irix6* | nonstopux*)
9455
nonstopux*) version_type=nonstopux ;;
9457
if test "$lt_cv_prog_gnu_ld" = yes; then
9465
soname_spec='${libname}${release}${shared_ext}$major'
9466
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9468
irix5* | nonstopux*)
9472
case $LD in # libtool.m4 will add one of these switches to LD
9473
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9474
libsuff= shlibsuff= libmagic=32-bit;;
9475
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9476
libsuff=32 shlibsuff=N32 libmagic=N32;;
9477
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9478
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9479
*) libsuff= shlibsuff= libmagic=never-match;;
9483
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9484
shlibpath_overrides_runpath=no
9485
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9486
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9487
hardcode_into_libs=yes
9490
# No shared lib support for Linux oldld, aout, or coff.
9491
linux*oldld* | linux*aout* | linux*coff*)
9495
# This must be Linux ELF.
9496
linux* | k*bsd*-gnu)
9500
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9501
soname_spec='${libname}${release}${shared_ext}$major'
9502
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9503
shlibpath_var=LD_LIBRARY_PATH
9504
shlibpath_overrides_runpath=no
9505
# This implies no fast_install, which is unacceptable.
9506
# Some rework will be needed to allow for fast_install
9507
# before this can be enabled.
9508
hardcode_into_libs=yes
9510
# Append ld.so.conf contents to the search path
9511
if test -f /etc/ld.so.conf; then
9512
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;/^$/d' | tr '\n' ' '`
9513
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9516
# We used to test for /lib/ld.so.1 and disable shared libraries on
9517
# powerpc, because MkLinux only supported shared libraries with the
9518
# GNU dynamic linker. Since this was broken with cross compilers,
9519
# most powerpc-linux boxes support dynamic linking these days and
9520
# people can always --disable-shared, the test was removed, and we
9521
# assume the GNU/Linux dynamic linker is in use.
9522
dynamic_linker='GNU/Linux ld.so'
9529
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9530
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9531
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9532
dynamic_linker='NetBSD (a.out) ld.so'
9534
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9535
soname_spec='${libname}${release}${shared_ext}$major'
9536
dynamic_linker='NetBSD ld.elf_so'
9538
shlibpath_var=LD_LIBRARY_PATH
9539
shlibpath_overrides_runpath=yes
9540
hardcode_into_libs=yes
9545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9546
shlibpath_var=LD_LIBRARY_PATH
9547
shlibpath_overrides_runpath=yes
9554
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9555
soname_spec='${libname}${release}${shared_ext}$major'
9556
shlibpath_var=LD_LIBRARY_PATH
9557
shlibpath_overrides_runpath=yes
9562
sys_lib_dlsearch_path_spec="/usr/lib"
9564
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9566
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9567
*) need_version=no ;;
9569
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9570
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9571
shlibpath_var=LD_LIBRARY_PATH
9572
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9574
openbsd2.[89] | openbsd2.[89].*)
9575
shlibpath_overrides_runpath=no
9578
shlibpath_overrides_runpath=yes
9582
shlibpath_overrides_runpath=yes
9587
libname_spec='$name'
9590
library_names_spec='$libname${shared_ext} $libname.a'
9591
dynamic_linker='OS/2 ld.exe'
9592
shlibpath_var=LIBPATH
9595
osf3* | osf4* | osf5*)
9599
soname_spec='${libname}${release}${shared_ext}$major'
9600
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601
shlibpath_var=LD_LIBRARY_PATH
9602
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9603
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9614
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9615
soname_spec='${libname}${release}${shared_ext}$major'
9616
shlibpath_var=LD_LIBRARY_PATH
9617
shlibpath_overrides_runpath=yes
9618
hardcode_into_libs=yes
9619
# ldd complains unless libraries are executable
9620
postinstall_cmds='chmod +x $lib'
9625
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9626
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9627
shlibpath_var=LD_LIBRARY_PATH
9628
shlibpath_overrides_runpath=yes
9629
if test "$with_gnu_ld" = yes; then
9637
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638
soname_spec='${libname}${release}${shared_ext}$major'
9639
shlibpath_var=LD_LIBRARY_PATH
9640
case $host_vendor in
9642
shlibpath_overrides_runpath=no
9644
export_dynamic_flag_spec='${wl}-Blargedynsym'
9645
runpath_var=LD_RUN_PATH
9653
shlibpath_overrides_runpath=no
9654
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9660
if test -d /usr/nec ;then
9662
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9663
soname_spec='$libname${shared_ext}.$major'
9664
shlibpath_var=LD_LIBRARY_PATH
9668
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9669
version_type=freebsd-elf
9672
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9673
soname_spec='${libname}${release}${shared_ext}$major'
9674
shlibpath_var=LD_LIBRARY_PATH
9675
hardcode_into_libs=yes
9676
if test "$with_gnu_ld" = yes; then
9677
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9678
shlibpath_overrides_runpath=no
9680
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9681
shlibpath_overrides_runpath=yes
9684
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9688
sys_lib_dlsearch_path_spec='/usr/lib'
9693
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9694
soname_spec='${libname}${release}${shared_ext}$major'
9695
shlibpath_var=LD_LIBRARY_PATH
9702
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9703
echo "${ECHO_T}$dynamic_linker" >&6; }
9704
test "$dynamic_linker" = no && can_build_shared=no
9706
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9707
echo $ECHO_N "(cached) $ECHO_C" >&6
9709
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9712
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9713
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9714
echo $ECHO_N "(cached) $ECHO_C" >&6
9716
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9719
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9721
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9722
if test "$GCC" = yes; then
9723
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9726
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9727
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9729
if test -n "$hardcode_libdir_flag_spec" || \
9730
test -n "$runpath_var" || \
9731
test "X$hardcode_automatic" = "Xyes" ; then
9733
# We can hardcode non-existant directories.
9734
if test "$hardcode_direct" != no &&
9735
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9736
# have to relink, otherwise we might link with an installed library
9737
# when we should be linking with a yet-to-be-installed one
9738
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9739
test "$hardcode_minus_L" != no; then
9740
# Linking always hardcodes the temporary library directory.
9741
hardcode_action=relink
9743
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9744
hardcode_action=immediate
9747
# We cannot hardcode anything, or else we can only hardcode existing
9749
hardcode_action=unsupported
9751
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9752
echo "${ECHO_T}$hardcode_action" >&6; }
9754
if test "$hardcode_action" = relink; then
9755
# Fast installation is not supported
9756
enable_fast_install=no
9757
elif test "$shlibpath_overrides_runpath" = yes ||
9758
test "$enable_shared" = no; then
9759
# Fast installation is not necessary
9760
enable_fast_install=needless
9765
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9766
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9767
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9768
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9769
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9770
{ echo "$as_me:$LINENO: result: yes" >&5
9771
echo "${ECHO_T}yes" >&6; }
9773
# FIXME - insert some real tests, host_os isn't really good enough
9776
if test -n "$STRIP" ; then
9777
striplib="$STRIP -x"
9778
old_striplib="$STRIP -S"
9779
{ echo "$as_me:$LINENO: result: yes" >&5
9780
echo "${ECHO_T}yes" >&6; }
9782
{ echo "$as_me:$LINENO: result: no" >&5
9783
echo "${ECHO_T}no" >&6; }
9787
{ echo "$as_me:$LINENO: result: no" >&5
9788
echo "${ECHO_T}no" >&6; }
9793
if test "x$enable_dlopen" != xyes; then
9794
enable_dlopen=unknown
9795
enable_dlopen_self=unknown
9796
enable_dlopen_self_static=unknown
9803
lt_cv_dlopen="load_add_on"
9805
lt_cv_dlopen_self=yes
9809
lt_cv_dlopen="LoadLibrary"
9814
lt_cv_dlopen="dlopen"
9819
# if libdl is installed we need to link against it
9820
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9821
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9822
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9823
echo $ECHO_N "(cached) $ECHO_C" >&6
9825
ac_check_lib_save_LIBS=$LIBS
9827
cat >conftest.$ac_ext <<_ACEOF
9830
cat confdefs.h >>conftest.$ac_ext
9831
cat >>conftest.$ac_ext <<_ACEOF
9832
/* end confdefs.h. */
9834
/* Override any GCC internal prototype to avoid an error.
9835
Use char because int might match the return type of a GCC
9836
builtin and then its argument prototype would still apply. */
9849
rm -f conftest.$ac_objext conftest$ac_exeext
9850
if { (ac_try="$ac_link"
9852
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853
*) ac_try_echo=$ac_try;;
9855
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856
(eval "$ac_link") 2>conftest.er1
9858
grep -v '^ *+' conftest.er1 >conftest.err
9860
cat conftest.err >&5
9861
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862
(exit $ac_status); } && {
9863
test -z "$ac_c_werror_flag" ||
9864
test ! -s conftest.err
9865
} && test -s conftest$ac_exeext &&
9866
$as_test_x conftest$ac_exeext; then
9867
ac_cv_lib_dl_dlopen=yes
9869
echo "$as_me: failed program was:" >&5
9870
sed 's/^/| /' conftest.$ac_ext >&5
9872
ac_cv_lib_dl_dlopen=no
9875
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9876
conftest$ac_exeext conftest.$ac_ext
9877
LIBS=$ac_check_lib_save_LIBS
9879
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9880
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9881
if test $ac_cv_lib_dl_dlopen = yes; then
9882
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9887
lt_cv_dlopen_self=yes
9894
{ echo "$as_me:$LINENO: checking for shl_load" >&5
9895
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9896
if test "${ac_cv_func_shl_load+set}" = set; then
9897
echo $ECHO_N "(cached) $ECHO_C" >&6
9899
cat >conftest.$ac_ext <<_ACEOF
9902
cat confdefs.h >>conftest.$ac_ext
9903
cat >>conftest.$ac_ext <<_ACEOF
9904
/* end confdefs.h. */
9905
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9906
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9907
#define shl_load innocuous_shl_load
9909
/* System header to define __stub macros and hopefully few prototypes,
9910
which can conflict with char shl_load (); below.
9911
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9912
<limits.h> exists even on freestanding compilers. */
9915
# include <limits.h>
9917
# include <assert.h>
9922
/* Override any GCC internal prototype to avoid an error.
9923
Use char because int might match the return type of a GCC
9924
builtin and then its argument prototype would still apply. */
9929
/* The GNU C library defines this for functions which it implements
9930
to always fail with ENOSYS. Some functions are actually named
9931
something starting with __ and the normal name is an alias. */
9932
#if defined __stub_shl_load || defined __stub___shl_load
9944
rm -f conftest.$ac_objext conftest$ac_exeext
9945
if { (ac_try="$ac_link"
9947
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948
*) ac_try_echo=$ac_try;;
9950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951
(eval "$ac_link") 2>conftest.er1
9953
grep -v '^ *+' conftest.er1 >conftest.err
9955
cat conftest.err >&5
9956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957
(exit $ac_status); } && {
9958
test -z "$ac_c_werror_flag" ||
9959
test ! -s conftest.err
9960
} && test -s conftest$ac_exeext &&
9961
$as_test_x conftest$ac_exeext; then
9962
ac_cv_func_shl_load=yes
9964
echo "$as_me: failed program was:" >&5
9965
sed 's/^/| /' conftest.$ac_ext >&5
9967
ac_cv_func_shl_load=no
9970
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9971
conftest$ac_exeext conftest.$ac_ext
9973
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9974
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9975
if test $ac_cv_func_shl_load = yes; then
9976
lt_cv_dlopen="shl_load"
9978
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9979
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9980
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9981
echo $ECHO_N "(cached) $ECHO_C" >&6
9983
ac_check_lib_save_LIBS=$LIBS
9985
cat >conftest.$ac_ext <<_ACEOF
9988
cat confdefs.h >>conftest.$ac_ext
9989
cat >>conftest.$ac_ext <<_ACEOF
9990
/* end confdefs.h. */
9992
/* Override any GCC internal prototype to avoid an error.
9993
Use char because int might match the return type of a GCC
9994
builtin and then its argument prototype would still apply. */
10002
return shl_load ();
10007
rm -f conftest.$ac_objext conftest$ac_exeext
10008
if { (ac_try="$ac_link"
10009
case "(($ac_try" in
10010
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011
*) ac_try_echo=$ac_try;;
10013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10014
(eval "$ac_link") 2>conftest.er1
10016
grep -v '^ *+' conftest.er1 >conftest.err
10018
cat conftest.err >&5
10019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020
(exit $ac_status); } && {
10021
test -z "$ac_c_werror_flag" ||
10022
test ! -s conftest.err
10023
} && test -s conftest$ac_exeext &&
10024
$as_test_x conftest$ac_exeext; then
10025
ac_cv_lib_dld_shl_load=yes
10027
echo "$as_me: failed program was:" >&5
10028
sed 's/^/| /' conftest.$ac_ext >&5
10030
ac_cv_lib_dld_shl_load=no
10033
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10034
conftest$ac_exeext conftest.$ac_ext
10035
LIBS=$ac_check_lib_save_LIBS
10037
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10038
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10039
if test $ac_cv_lib_dld_shl_load = yes; then
10040
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10042
{ echo "$as_me:$LINENO: checking for dlopen" >&5
10043
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10044
if test "${ac_cv_func_dlopen+set}" = set; then
10045
echo $ECHO_N "(cached) $ECHO_C" >&6
10047
cat >conftest.$ac_ext <<_ACEOF
10050
cat confdefs.h >>conftest.$ac_ext
10051
cat >>conftest.$ac_ext <<_ACEOF
10052
/* end confdefs.h. */
10053
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10054
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10055
#define dlopen innocuous_dlopen
10057
/* System header to define __stub macros and hopefully few prototypes,
10058
which can conflict with char dlopen (); below.
10059
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10060
<limits.h> exists even on freestanding compilers. */
10063
# include <limits.h>
10065
# include <assert.h>
10070
/* Override any GCC internal prototype to avoid an error.
10071
Use char because int might match the return type of a GCC
10072
builtin and then its argument prototype would still apply. */
10077
/* The GNU C library defines this for functions which it implements
10078
to always fail with ENOSYS. Some functions are actually named
10079
something starting with __ and the normal name is an alias. */
10080
#if defined __stub_dlopen || defined __stub___dlopen
10092
rm -f conftest.$ac_objext conftest$ac_exeext
10093
if { (ac_try="$ac_link"
10094
case "(($ac_try" in
10095
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096
*) ac_try_echo=$ac_try;;
10098
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099
(eval "$ac_link") 2>conftest.er1
10101
grep -v '^ *+' conftest.er1 >conftest.err
10103
cat conftest.err >&5
10104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105
(exit $ac_status); } && {
10106
test -z "$ac_c_werror_flag" ||
10107
test ! -s conftest.err
10108
} && test -s conftest$ac_exeext &&
10109
$as_test_x conftest$ac_exeext; then
10110
ac_cv_func_dlopen=yes
10112
echo "$as_me: failed program was:" >&5
10113
sed 's/^/| /' conftest.$ac_ext >&5
10115
ac_cv_func_dlopen=no
10118
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10119
conftest$ac_exeext conftest.$ac_ext
10121
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10122
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10123
if test $ac_cv_func_dlopen = yes; then
10124
lt_cv_dlopen="dlopen"
10126
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10127
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10128
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10129
echo $ECHO_N "(cached) $ECHO_C" >&6
10131
ac_check_lib_save_LIBS=$LIBS
10133
cat >conftest.$ac_ext <<_ACEOF
10136
cat confdefs.h >>conftest.$ac_ext
10137
cat >>conftest.$ac_ext <<_ACEOF
10138
/* end confdefs.h. */
10140
/* Override any GCC internal prototype to avoid an error.
10141
Use char because int might match the return type of a GCC
10142
builtin and then its argument prototype would still apply. */
10155
rm -f conftest.$ac_objext conftest$ac_exeext
10156
if { (ac_try="$ac_link"
10157
case "(($ac_try" in
10158
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159
*) ac_try_echo=$ac_try;;
10161
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162
(eval "$ac_link") 2>conftest.er1
10164
grep -v '^ *+' conftest.er1 >conftest.err
10166
cat conftest.err >&5
10167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168
(exit $ac_status); } && {
10169
test -z "$ac_c_werror_flag" ||
10170
test ! -s conftest.err
10171
} && test -s conftest$ac_exeext &&
10172
$as_test_x conftest$ac_exeext; then
10173
ac_cv_lib_dl_dlopen=yes
10175
echo "$as_me: failed program was:" >&5
10176
sed 's/^/| /' conftest.$ac_ext >&5
10178
ac_cv_lib_dl_dlopen=no
10181
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10182
conftest$ac_exeext conftest.$ac_ext
10183
LIBS=$ac_check_lib_save_LIBS
10185
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10186
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10187
if test $ac_cv_lib_dl_dlopen = yes; then
10188
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10190
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10191
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10192
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10193
echo $ECHO_N "(cached) $ECHO_C" >&6
10195
ac_check_lib_save_LIBS=$LIBS
10196
LIBS="-lsvld $LIBS"
10197
cat >conftest.$ac_ext <<_ACEOF
10200
cat confdefs.h >>conftest.$ac_ext
10201
cat >>conftest.$ac_ext <<_ACEOF
10202
/* end confdefs.h. */
10204
/* Override any GCC internal prototype to avoid an error.
10205
Use char because int might match the return type of a GCC
10206
builtin and then its argument prototype would still apply. */
10219
rm -f conftest.$ac_objext conftest$ac_exeext
10220
if { (ac_try="$ac_link"
10221
case "(($ac_try" in
10222
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223
*) ac_try_echo=$ac_try;;
10225
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10226
(eval "$ac_link") 2>conftest.er1
10228
grep -v '^ *+' conftest.er1 >conftest.err
10230
cat conftest.err >&5
10231
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232
(exit $ac_status); } && {
10233
test -z "$ac_c_werror_flag" ||
10234
test ! -s conftest.err
10235
} && test -s conftest$ac_exeext &&
10236
$as_test_x conftest$ac_exeext; then
10237
ac_cv_lib_svld_dlopen=yes
10239
echo "$as_me: failed program was:" >&5
10240
sed 's/^/| /' conftest.$ac_ext >&5
10242
ac_cv_lib_svld_dlopen=no
10245
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10246
conftest$ac_exeext conftest.$ac_ext
10247
LIBS=$ac_check_lib_save_LIBS
10249
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10250
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10251
if test $ac_cv_lib_svld_dlopen = yes; then
10252
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10254
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10255
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10256
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10257
echo $ECHO_N "(cached) $ECHO_C" >&6
10259
ac_check_lib_save_LIBS=$LIBS
10261
cat >conftest.$ac_ext <<_ACEOF
10264
cat confdefs.h >>conftest.$ac_ext
10265
cat >>conftest.$ac_ext <<_ACEOF
10266
/* end confdefs.h. */
10268
/* Override any GCC internal prototype to avoid an error.
10269
Use char because int might match the return type of a GCC
10270
builtin and then its argument prototype would still apply. */
10278
return dld_link ();
10283
rm -f conftest.$ac_objext conftest$ac_exeext
10284
if { (ac_try="$ac_link"
10285
case "(($ac_try" in
10286
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287
*) ac_try_echo=$ac_try;;
10289
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290
(eval "$ac_link") 2>conftest.er1
10292
grep -v '^ *+' conftest.er1 >conftest.err
10294
cat conftest.err >&5
10295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296
(exit $ac_status); } && {
10297
test -z "$ac_c_werror_flag" ||
10298
test ! -s conftest.err
10299
} && test -s conftest$ac_exeext &&
10300
$as_test_x conftest$ac_exeext; then
10301
ac_cv_lib_dld_dld_link=yes
10303
echo "$as_me: failed program was:" >&5
10304
sed 's/^/| /' conftest.$ac_ext >&5
10306
ac_cv_lib_dld_dld_link=no
10309
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10310
conftest$ac_exeext conftest.$ac_ext
10311
LIBS=$ac_check_lib_save_LIBS
10313
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10314
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10315
if test $ac_cv_lib_dld_dld_link = yes; then
10316
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10337
if test "x$lt_cv_dlopen" != xno; then
10343
case $lt_cv_dlopen in
10345
save_CPPFLAGS="$CPPFLAGS"
10346
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10348
save_LDFLAGS="$LDFLAGS"
10349
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10352
LIBS="$lt_cv_dlopen_libs $LIBS"
10354
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10355
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10356
if test "${lt_cv_dlopen_self+set}" = set; then
10357
echo $ECHO_N "(cached) $ECHO_C" >&6
10359
if test "$cross_compiling" = yes; then :
10360
lt_cv_dlopen_self=cross
10362
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10363
lt_status=$lt_dlunknown
10364
cat > conftest.$ac_ext <<EOF
10365
#line 10365 "configure"
10366
#include "confdefs.h"
10375
# define LT_DLGLOBAL RTLD_GLOBAL
10378
# define LT_DLGLOBAL DL_GLOBAL
10380
# define LT_DLGLOBAL 0
10384
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10385
find out it does not work in some platform. */
10386
#ifndef LT_DLLAZY_OR_NOW
10388
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10391
# define LT_DLLAZY_OR_NOW DL_LAZY
10394
# define LT_DLLAZY_OR_NOW RTLD_NOW
10397
# define LT_DLLAZY_OR_NOW DL_NOW
10399
# define LT_DLLAZY_OR_NOW 0
10407
extern "C" void exit (int);
10410
void fnord() { int i=42;}
10413
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10414
int status = $lt_dlunknown;
10418
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10419
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10420
/* dlclose (self); */
10428
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10429
(eval $ac_link) 2>&5
10431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10433
(./conftest; exit; ) >&5 2>/dev/null
10435
case x$lt_status in
10436
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10437
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10438
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10441
# compilation failed
10442
lt_cv_dlopen_self=no
10449
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10450
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10452
if test "x$lt_cv_dlopen_self" = xyes; then
10453
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10454
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10455
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10456
if test "${lt_cv_dlopen_self_static+set}" = set; then
10457
echo $ECHO_N "(cached) $ECHO_C" >&6
10459
if test "$cross_compiling" = yes; then :
10460
lt_cv_dlopen_self_static=cross
10462
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10463
lt_status=$lt_dlunknown
10464
cat > conftest.$ac_ext <<EOF
10465
#line 10465 "configure"
10466
#include "confdefs.h"
10475
# define LT_DLGLOBAL RTLD_GLOBAL
10478
# define LT_DLGLOBAL DL_GLOBAL
10480
# define LT_DLGLOBAL 0
10484
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10485
find out it does not work in some platform. */
10486
#ifndef LT_DLLAZY_OR_NOW
10488
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10491
# define LT_DLLAZY_OR_NOW DL_LAZY
10494
# define LT_DLLAZY_OR_NOW RTLD_NOW
10497
# define LT_DLLAZY_OR_NOW DL_NOW
10499
# define LT_DLLAZY_OR_NOW 0
10507
extern "C" void exit (int);
10510
void fnord() { int i=42;}
10513
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10514
int status = $lt_dlunknown;
10518
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10519
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10520
/* dlclose (self); */
10528
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10529
(eval $ac_link) 2>&5
10531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10533
(./conftest; exit; ) >&5 2>/dev/null
10535
case x$lt_status in
10536
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10537
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10538
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10541
# compilation failed
10542
lt_cv_dlopen_self_static=no
10549
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10550
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10553
CPPFLAGS="$save_CPPFLAGS"
10554
LDFLAGS="$save_LDFLAGS"
10559
case $lt_cv_dlopen_self in
10560
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10561
*) enable_dlopen_self=unknown ;;
10564
case $lt_cv_dlopen_self_static in
10565
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10566
*) enable_dlopen_self_static=unknown ;;
10571
# Report which library types will actually be built
10572
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10573
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10574
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10575
echo "${ECHO_T}$can_build_shared" >&6; }
10577
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10578
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10579
test "$can_build_shared" = "no" && enable_shared=no
10581
# On AIX, shared libraries and static libraries use the same namespace, and
10582
# are all built from PIC.
10585
test "$enable_shared" = yes && enable_static=no
10586
if test -n "$RANLIB"; then
10587
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10588
postinstall_cmds='$RANLIB $lib'
10593
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10594
test "$enable_shared" = yes && enable_static=no
10598
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10599
echo "${ECHO_T}$enable_shared" >&6; }
10601
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10602
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10603
# Make sure either enable_shared or enable_static is yes.
10604
test "$enable_shared" = yes || enable_static=yes
10605
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10606
echo "${ECHO_T}$enable_static" >&6; }
10608
# The else clause should only fire when bootstrapping the
10609
# libtool distribution, otherwise you forgot to ship ltmain.sh
10610
# with your package, and you will get complaints that there are
10611
# no rules to generate ltmain.sh.
10612
if test -f "$ltmain"; then
10613
# See if we are running on zsh, and set the options which allow our commands through
10614
# without removal of \ escapes.
10615
if test -n "${ZSH_VERSION+set}" ; then
10616
setopt NO_GLOB_SUBST
10618
# Now quote all the things that may contain metacharacters while being
10619
# careful not to overquote the AC_SUBSTed values. We take copies of the
10620
# variables and quote the copies for generation of the libtool script.
10621
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10623
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10624
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10625
deplibs_check_method reload_flag reload_cmds need_locks \
10626
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10627
lt_cv_sys_global_symbol_to_c_name_address \
10628
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10629
old_postinstall_cmds old_postuninstall_cmds \
10633
lt_prog_compiler_wl \
10634
lt_prog_compiler_pic \
10635
lt_prog_compiler_static \
10636
lt_prog_compiler_no_builtin_flag \
10637
export_dynamic_flag_spec \
10638
thread_safe_flag_spec \
10639
whole_archive_flag_spec \
10640
enable_shared_with_static_runtimes \
10642
old_archive_from_new_cmds \
10647
compiler_lib_search_path \
10648
compiler_lib_search_dirs \
10650
archive_expsym_cmds \
10652
postuninstall_cmds \
10653
old_archive_from_expsyms_cmds \
10654
allow_undefined_flag \
10655
no_undefined_flag \
10656
export_symbols_cmds \
10657
hardcode_libdir_flag_spec \
10658
hardcode_libdir_flag_spec_ld \
10659
hardcode_libdir_separator \
10660
hardcode_automatic \
10662
module_expsym_cmds \
10663
lt_cv_prog_compiler_c_o \
10666
include_expsyms; do
10669
old_archive_cmds | \
10670
old_archive_from_new_cmds | \
10672
archive_expsym_cmds | \
10674
module_expsym_cmds | \
10675
old_archive_from_expsyms_cmds | \
10676
export_symbols_cmds | \
10677
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10678
postinstall_cmds | postuninstall_cmds | \
10679
old_postinstall_cmds | old_postuninstall_cmds | \
10680
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10681
# Double-quote double-evaled strings.
10682
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10685
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10691
*'\$0 --fallback-echo"')
10692
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10696
cfgfile="${ofile}T"
10697
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10699
{ echo "$as_me:$LINENO: creating $ofile" >&5
10700
echo "$as_me: creating $ofile" >&6;}
10702
cat <<__EOF__ >> "$cfgfile"
10705
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10706
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10707
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10709
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10710
# Free Software Foundation, Inc.
10712
# This file is part of GNU Libtool:
10713
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10715
# This program is free software; you can redistribute it and/or modify
10716
# it under the terms of the GNU General Public License as published by
10717
# the Free Software Foundation; either version 2 of the License, or
10718
# (at your option) any later version.
10720
# This program is distributed in the hope that it will be useful, but
10721
# WITHOUT ANY WARRANTY; without even the implied warranty of
10722
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10723
# General Public License for more details.
10725
# You should have received a copy of the GNU General Public License
10726
# along with this program; if not, write to the Free Software
10727
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10729
# As a special exception to the GNU General Public License, if you
10730
# distribute this file as part of a program that contains a
10731
# configuration script generated by Autoconf, you may include it under
10732
# the same distribution terms that you use for the rest of that program.
10734
# A sed program that does not truncate output.
10737
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10738
Xsed="$SED -e 1s/^X//"
10740
# The HP-UX ksh and POSIX shell print the target directory to stdout
10741
# if CDPATH is set.
10742
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10744
# The names of the tagged configurations supported by this script.
10747
# ### BEGIN LIBTOOL CONFIG
10749
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10751
# Shell to use when invoking shell scripts.
10754
# Whether or not to build shared libraries.
10755
build_libtool_libs=$enable_shared
10757
# Whether or not to build static libraries.
10758
build_old_libs=$enable_static
10760
# Whether or not to add -lc for building shared libraries.
10761
build_libtool_need_lc=$archive_cmds_need_lc
10763
# Whether or not to disallow shared libs when runtime libs are static
10764
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10766
# Whether or not to optimize for fast installation.
10767
fast_install=$enable_fast_install
10770
host_alias=$host_alias
10774
# The build system.
10775
build_alias=$build_alias
10779
# An echo program that does not interpret backslashes.
10784
AR_FLAGS=$lt_AR_FLAGS
10789
# LTCC compiler flags.
10790
LTCFLAGS=$lt_LTCFLAGS
10792
# A language-specific compiler.
10795
# Is the compiler the GNU C compiler?
10801
# The linker used to build libraries.
10804
# Whether we need hard or soft links.
10807
# A BSD-compatible nm program.
10810
# A symbol stripping program
10813
# Used to examine libraries when file_magic_cmd begins "file"
10814
MAGIC_CMD=$MAGIC_CMD
10816
# Used on cygwin: DLL creation program.
10819
# Used on cygwin: object dumper.
10822
# Used on cygwin: assembler.
10825
# The name of the directory that contains temporary libtool files.
10828
# How to create reloadable object files.
10829
reload_flag=$lt_reload_flag
10830
reload_cmds=$lt_reload_cmds
10832
# How to pass a linker flag through the compiler.
10833
wl=$lt_lt_prog_compiler_wl
10835
# Object file suffix (normally "o").
10836
objext="$ac_objext"
10838
# Old archive suffix (normally "a").
10841
# Shared library suffix (normally ".so").
10842
shrext_cmds='$shrext_cmds'
10844
# Executable file suffix (normally "").
10847
# Additional compiler flags for building library objects.
10848
pic_flag=$lt_lt_prog_compiler_pic
10851
# What is the maximum length of a command?
10852
max_cmd_len=$lt_cv_sys_max_cmd_len
10854
# Does compiler simultaneously support -c and -o options?
10855
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10857
# Must we lock files when doing compilation?
10858
need_locks=$lt_need_locks
10860
# Do we need the lib prefix for modules?
10861
need_lib_prefix=$need_lib_prefix
10863
# Do we need a version for libraries?
10864
need_version=$need_version
10866
# Whether dlopen is supported.
10867
dlopen_support=$enable_dlopen
10869
# Whether dlopen of programs is supported.
10870
dlopen_self=$enable_dlopen_self
10872
# Whether dlopen of statically linked programs is supported.
10873
dlopen_self_static=$enable_dlopen_self_static
10875
# Compiler flag to prevent dynamic linking.
10876
link_static_flag=$lt_lt_prog_compiler_static
10878
# Compiler flag to turn off builtin functions.
10879
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10881
# Compiler flag to allow reflexive dlopens.
10882
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10884
# Compiler flag to generate shared objects directly from archives.
10885
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10887
# Compiler flag to generate thread-safe objects.
10888
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10890
# Library versioning type.
10891
version_type=$version_type
10893
# Format of library name prefix.
10894
libname_spec=$lt_libname_spec
10896
# List of archive names. First name is the real one, the rest are links.
10897
# The last name is the one that the linker finds with -lNAME.
10898
library_names_spec=$lt_library_names_spec
10900
# The coded name of the library, if different from the real name.
10901
soname_spec=$lt_soname_spec
10903
# Commands used to build and install an old-style archive.
10905
old_archive_cmds=$lt_old_archive_cmds
10906
old_postinstall_cmds=$lt_old_postinstall_cmds
10907
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10909
# Create an old-style archive from a shared archive.
10910
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10912
# Create a temporary old-style archive to link instead of a shared archive.
10913
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10915
# Commands used to build and install a shared archive.
10916
archive_cmds=$lt_archive_cmds
10917
archive_expsym_cmds=$lt_archive_expsym_cmds
10918
postinstall_cmds=$lt_postinstall_cmds
10919
postuninstall_cmds=$lt_postuninstall_cmds
10921
# Commands used to build a loadable module (assumed same as above if empty)
10922
module_cmds=$lt_module_cmds
10923
module_expsym_cmds=$lt_module_expsym_cmds
10925
# Commands to strip libraries.
10926
old_striplib=$lt_old_striplib
10927
striplib=$lt_striplib
10929
# Dependencies to place before the objects being linked to create a
10931
predep_objects=$lt_predep_objects
10933
# Dependencies to place after the objects being linked to create a
10935
postdep_objects=$lt_postdep_objects
10937
# Dependencies to place before the objects being linked to create a
10939
predeps=$lt_predeps
10941
# Dependencies to place after the objects being linked to create a
10943
postdeps=$lt_postdeps
10945
# The directories searched by this compiler when creating a shared
10947
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10949
# The library search path used internally by the compiler when linking
10950
# a shared library.
10951
compiler_lib_search_path=$lt_compiler_lib_search_path
10953
# Method to check whether dependent libraries are shared objects.
10954
deplibs_check_method=$lt_deplibs_check_method
10956
# Command to use when deplibs_check_method == file_magic.
10957
file_magic_cmd=$lt_file_magic_cmd
10959
# Flag that allows shared libraries with undefined symbols to be built.
10960
allow_undefined_flag=$lt_allow_undefined_flag
10962
# Flag that forces no undefined symbols.
10963
no_undefined_flag=$lt_no_undefined_flag
10965
# Commands used to finish a libtool library installation in a directory.
10966
finish_cmds=$lt_finish_cmds
10968
# Same as above, but a single script fragment to be evaled but not shown.
10969
finish_eval=$lt_finish_eval
10971
# Take the output of nm and produce a listing of raw symbols and C names.
10972
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10974
# Transform the output of nm in a proper C declaration
10975
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10977
# Transform the output of nm in a C name address pair
10978
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10980
# This is the shared library runtime path variable.
10981
runpath_var=$runpath_var
10983
# This is the shared library path variable.
10984
shlibpath_var=$shlibpath_var
10986
# Is shlibpath searched before the hard-coded library search path?
10987
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10989
# How to hardcode a shared library path into an executable.
10990
hardcode_action=$hardcode_action
10992
# Whether we should hardcode library paths into libraries.
10993
hardcode_into_libs=$hardcode_into_libs
10995
# Flag to hardcode \$libdir into a binary during linking.
10996
# This must work even if \$libdir does not exist.
10997
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10999
# If ld is used when linking, flag to hardcode \$libdir into
11000
# a binary during linking. This must work even if \$libdir does
11002
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11004
# Whether we need a single -rpath flag with a separated argument.
11005
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11007
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11008
# resulting binary.
11009
hardcode_direct=$hardcode_direct
11011
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11012
# resulting binary.
11013
hardcode_minus_L=$hardcode_minus_L
11015
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11016
# the resulting binary.
11017
hardcode_shlibpath_var=$hardcode_shlibpath_var
11019
# Set to yes if building a shared library automatically hardcodes DIR into the library
11020
# and all subsequent libraries and executables linked against it.
11021
hardcode_automatic=$hardcode_automatic
11023
# Variables whose values should be saved in libtool wrapper scripts and
11024
# restored at relink time.
11025
variables_saved_for_relink="$variables_saved_for_relink"
11027
# Whether libtool must link a program against all its dependency libraries.
11028
link_all_deplibs=$link_all_deplibs
11030
# Compile-time system search path for libraries
11031
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11033
# Run-time system search path for libraries
11034
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11036
# Fix the shell variable \$srcfile for the compiler.
11037
fix_srcfile_path=$lt_fix_srcfile_path
11039
# Set to yes if exported symbols are required.
11040
always_export_symbols=$always_export_symbols
11042
# The commands to list exported symbols.
11043
export_symbols_cmds=$lt_export_symbols_cmds
11045
# The commands to extract the exported symbol list from a shared archive.
11046
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11048
# Symbols that should not be listed in the preloaded symbols.
11049
exclude_expsyms=$lt_exclude_expsyms
11051
# Symbols that must always be exported.
11052
include_expsyms=$lt_include_expsyms
11054
# ### END LIBTOOL CONFIG
11061
cat <<\EOF >> "$cfgfile"
11063
# AIX sometimes has problems with the GCC collect2 program. For some
11064
# reason, if we set the COLLECT_NAMES environment variable, the problems
11065
# vanish in a puff of smoke.
11066
if test "X${COLLECT_NAMES+set}" != Xset; then
11068
export COLLECT_NAMES
11074
# We use sed instead of cat because bash on DJGPP gets confused if
11075
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11076
# text mode, it properly converts lines to CR/LF. This bash problem
11077
# is reportedly fixed, but why not run on old versions too?
11078
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11080
mv -f "$cfgfile" "$ofile" || \
11081
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11085
# If there is no Makefile yet, we rely on a make rule to execute
11086
# `config.status --recheck' to rerun these tests and create the
11087
# libtool script then.
11088
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11089
if test -f "$ltmain_in"; then
11090
test -f Makefile && make "$ltmain"
11096
ac_cpp='$CPP $CPPFLAGS'
11097
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11098
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11099
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11104
# Check whether --with-tags was given.
11105
if test "${with_tags+set}" = set; then
11106
withval=$with_tags; tagnames="$withval"
11110
if test -f "$ltmain" && test -n "$tagnames"; then
11111
if test ! -f "${ofile}"; then
11112
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11113
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11116
if test -z "$LTCC"; then
11117
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11118
if test -z "$LTCC"; then
11119
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11120
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11122
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11123
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11126
if test -z "$LTCFLAGS"; then
11127
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11130
# Extract list of available tagged configurations in $ofile.
11131
# Note that this assumes the entire list is on one line.
11132
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11134
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11135
for tagname in $tagnames; do
11137
# Check whether tagname contains only valid characters
11138
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11140
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11141
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11142
{ (exit 1); exit 1; }; }
11146
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11148
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11149
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11150
{ (exit 1); exit 1; }; }
11153
# Update the list of available tags.
11154
if test -n "$tagname"; then
11155
echo appending configuration tag \"$tagname\" to $ofile
11159
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11160
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11161
(test "X$CXX" != "Xg++"))) ; then
11163
ac_cpp='$CXXCPP $CPPFLAGS'
11164
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11165
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11166
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11171
archive_cmds_need_lc_CXX=no
11172
allow_undefined_flag_CXX=
11173
always_export_symbols_CXX=no
11174
archive_expsym_cmds_CXX=
11175
export_dynamic_flag_spec_CXX=
11176
hardcode_direct_CXX=no
11177
hardcode_libdir_flag_spec_CXX=
11178
hardcode_libdir_flag_spec_ld_CXX=
11179
hardcode_libdir_separator_CXX=
11180
hardcode_minus_L_CXX=no
11181
hardcode_shlibpath_var_CXX=unsupported
11182
hardcode_automatic_CXX=no
11184
module_expsym_cmds_CXX=
11185
link_all_deplibs_CXX=unknown
11186
old_archive_cmds_CXX=$old_archive_cmds
11187
no_undefined_flag_CXX=
11188
whole_archive_flag_spec_CXX=
11189
enable_shared_with_static_runtimes_CXX=no
11191
# Dependencies to place before and after the object being linked:
11192
predep_objects_CXX=
11193
postdep_objects_CXX=
11196
compiler_lib_search_path_CXX=
11197
compiler_lib_search_dirs_CXX=
11199
# Source file extension for C++ test sources.
11202
# Object file extension for compiled C++ test sources.
11206
# Code to be used in simple compile tests
11207
lt_simple_compile_test_code="int some_variable = 0;"
11209
# Code to be used in simple link tests
11210
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11212
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11214
# If no C compiler was specified, use CC.
11217
# If no C compiler flags were specified, use CFLAGS.
11218
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11220
# Allow CC to be a program name with arguments.
11224
# save warnings/boilerplate of simple test code
11225
ac_outfile=conftest.$ac_objext
11226
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11227
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11228
_lt_compiler_boilerplate=`cat conftest.err`
11231
ac_outfile=conftest.$ac_objext
11232
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11233
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11234
_lt_linker_boilerplate=`cat conftest.err`
11238
# Allow CC to be a program name with arguments.
11243
lt_save_with_gnu_ld=$with_gnu_ld
11244
lt_save_path_LD=$lt_cv_path_LD
11245
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11246
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11248
$as_unset lt_cv_prog_gnu_ld
11250
if test -n "${lt_cv_path_LDCXX+set}"; then
11251
lt_cv_path_LD=$lt_cv_path_LDCXX
11253
$as_unset lt_cv_path_LD
11255
test -z "${LDCXX+set}" || LD=$LDCXX
11259
for cc_temp in $compiler""; do
11261
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11262
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11267
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11270
# We don't want -fno-exception wen compiling C++ code, so set the
11271
# no_builtin_flag separately
11272
if test "$GXX" = yes; then
11273
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11275
lt_prog_compiler_no_builtin_flag_CXX=
11278
if test "$GXX" = yes; then
11279
# Set up default GNU C++ configuration
11282
# Check whether --with-gnu-ld was given.
11283
if test "${with_gnu_ld+set}" = set; then
11284
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11290
if test "$GCC" = yes; then
11291
# Check if gcc -print-prog-name=ld gives a path.
11292
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11293
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11296
# gcc leaves a trailing carriage return which upsets mingw
11297
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11299
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11302
# Accept absolute paths.
11304
re_direlt='/[^/][^/]*/\.\./'
11305
# Canonicalize the pathname of ld
11306
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11307
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11308
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11310
test -z "$LD" && LD="$ac_prog"
11313
# If it fails, then pretend we aren't using GCC.
11317
# If it is relative, then search for the first ld in PATH.
11318
with_gnu_ld=unknown
11321
elif test "$with_gnu_ld" = yes; then
11322
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11323
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11325
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11326
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11328
if test "${lt_cv_path_LD+set}" = set; then
11329
echo $ECHO_N "(cached) $ECHO_C" >&6
11331
if test -z "$LD"; then
11332
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11333
for ac_dir in $PATH; do
11335
test -z "$ac_dir" && ac_dir=.
11336
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11337
lt_cv_path_LD="$ac_dir/$ac_prog"
11338
# Check to see if the program is GNU ld. I'd rather use --version,
11339
# but apparently some variants of GNU ld only accept -v.
11340
# Break only if it was the GNU/non-GNU ld that we prefer.
11341
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11342
*GNU* | *'with BFD'*)
11343
test "$with_gnu_ld" != no && break
11346
test "$with_gnu_ld" != yes && break
11353
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11357
LD="$lt_cv_path_LD"
11358
if test -n "$LD"; then
11359
{ echo "$as_me:$LINENO: result: $LD" >&5
11360
echo "${ECHO_T}$LD" >&6; }
11362
{ echo "$as_me:$LINENO: result: no" >&5
11363
echo "${ECHO_T}no" >&6; }
11365
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11366
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11367
{ (exit 1); exit 1; }; }
11368
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11369
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11370
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11371
echo $ECHO_N "(cached) $ECHO_C" >&6
11373
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11374
case `$LD -v 2>&1 </dev/null` in
11375
*GNU* | *'with BFD'*)
11376
lt_cv_prog_gnu_ld=yes
11379
lt_cv_prog_gnu_ld=no
11383
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11384
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11385
with_gnu_ld=$lt_cv_prog_gnu_ld
11389
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11390
# archiving commands below assume that GNU ld is being used.
11391
if test "$with_gnu_ld" = yes; then
11392
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11393
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11395
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11396
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11398
# If archive_cmds runs LD, not CC, wlarc should be empty
11399
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11400
# investigate it a little bit more. (MM)
11403
# ancient GNU ld didn't support --whole-archive et. al.
11404
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11405
grep 'no-whole-archive' > /dev/null; then
11406
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11408
whole_archive_flag_spec_CXX=
11414
# A generic and very simple default shared library creation
11415
# command for GNU C++ for the case where it uses the native
11416
# linker, instead of GNU ld. If possible, this setting should
11417
# overridden to take advantage of the native linker features on
11418
# the platform it is being used on.
11419
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11422
# Commands to make compiler produce verbose output that lists
11423
# what "hidden" libraries, object files and flags are used when
11424
# linking a shared library.
11425
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11433
# PORTME: fill in a description of your system's C++ link characteristics
11434
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11435
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11439
# FIXME: insert proper C++ library support
11443
if test "$host_cpu" = ia64; then
11444
# On IA64, the linker does run time linking by default, so we don't
11445
# have to do anything special.
11446
aix_use_runtimelinking=no
11447
exp_sym_flag='-Bexport'
11450
aix_use_runtimelinking=no
11452
# Test if we are trying to use run time linking or normal
11453
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11454
# need to do runtime linking.
11455
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11456
for ld_flag in $LDFLAGS; do
11459
aix_use_runtimelinking=yes
11467
exp_sym_flag='-bexport'
11468
no_entry_flag='-bnoentry'
11471
# When large executables or shared objects are built, AIX ld can
11472
# have problems creating the table of contents. If linking a library
11473
# or program results in "error TOC overflow" add -mminimal-toc to
11474
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11475
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11477
archive_cmds_CXX=''
11478
hardcode_direct_CXX=yes
11479
hardcode_libdir_separator_CXX=':'
11480
link_all_deplibs_CXX=yes
11482
if test "$GXX" = yes; then
11483
case $host_os in aix4.[012]|aix4.[012].*)
11484
# We only want to do this on AIX 4.2 and lower, the check
11485
# below for broken collect2 doesn't work under 4.3+
11486
collect2name=`${CC} -print-prog-name=collect2`
11487
if test -f "$collect2name" && \
11488
strings "$collect2name" | grep resolve_lib_name >/dev/null
11490
# We have reworked collect2
11493
# We have old collect2
11494
hardcode_direct_CXX=unsupported
11495
# It fails to find uninstalled libraries when the uninstalled
11496
# path is not listed in the libpath. Setting hardcode_minus_L
11497
# to unsupported forces relinking
11498
hardcode_minus_L_CXX=yes
11499
hardcode_libdir_flag_spec_CXX='-L$libdir'
11500
hardcode_libdir_separator_CXX=
11504
shared_flag='-shared'
11505
if test "$aix_use_runtimelinking" = yes; then
11506
shared_flag="$shared_flag "'${wl}-G'
11510
if test "$host_cpu" = ia64; then
11511
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11512
# chokes on -Wl,-G. The following line is correct:
11515
if test "$aix_use_runtimelinking" = yes; then
11516
shared_flag='${wl}-G'
11518
shared_flag='${wl}-bM:SRE'
11523
# It seems that -bexpall does not export symbols beginning with
11524
# underscore (_), so it is better to generate a list of symbols to export.
11525
always_export_symbols_CXX=yes
11526
if test "$aix_use_runtimelinking" = yes; then
11527
# Warning - without using the other runtime loading flags (-brtl),
11528
# -berok will link without error, but may produce a broken library.
11529
allow_undefined_flag_CXX='-berok'
11530
# Determine the default libpath from the value encoded in an empty executable.
11531
cat >conftest.$ac_ext <<_ACEOF
11534
cat confdefs.h >>conftest.$ac_ext
11535
cat >>conftest.$ac_ext <<_ACEOF
11536
/* end confdefs.h. */
11546
rm -f conftest.$ac_objext conftest$ac_exeext
11547
if { (ac_try="$ac_link"
11548
case "(($ac_try" in
11549
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550
*) ac_try_echo=$ac_try;;
11552
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553
(eval "$ac_link") 2>conftest.er1
11555
grep -v '^ *+' conftest.er1 >conftest.err
11557
cat conftest.err >&5
11558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559
(exit $ac_status); } && {
11560
test -z "$ac_cxx_werror_flag" ||
11561
test ! -s conftest.err
11562
} && test -s conftest$ac_exeext &&
11563
$as_test_x conftest$ac_exeext; then
11565
lt_aix_libpath_sed='
11566
/Import File Strings/,/^$/ {
11572
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11573
# Check for a 64-bit object if we didn't find anything.
11574
if test -z "$aix_libpath"; then
11575
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11578
echo "$as_me: failed program was:" >&5
11579
sed 's/^/| /' conftest.$ac_ext >&5
11584
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11585
conftest$ac_exeext conftest.$ac_ext
11586
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11588
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11590
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11592
if test "$host_cpu" = ia64; then
11593
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11594
allow_undefined_flag_CXX="-z nodefs"
11595
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11597
# Determine the default libpath from the value encoded in an empty executable.
11598
cat >conftest.$ac_ext <<_ACEOF
11601
cat confdefs.h >>conftest.$ac_ext
11602
cat >>conftest.$ac_ext <<_ACEOF
11603
/* end confdefs.h. */
11613
rm -f conftest.$ac_objext conftest$ac_exeext
11614
if { (ac_try="$ac_link"
11615
case "(($ac_try" in
11616
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617
*) ac_try_echo=$ac_try;;
11619
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620
(eval "$ac_link") 2>conftest.er1
11622
grep -v '^ *+' conftest.er1 >conftest.err
11624
cat conftest.err >&5
11625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626
(exit $ac_status); } && {
11627
test -z "$ac_cxx_werror_flag" ||
11628
test ! -s conftest.err
11629
} && test -s conftest$ac_exeext &&
11630
$as_test_x conftest$ac_exeext; then
11632
lt_aix_libpath_sed='
11633
/Import File Strings/,/^$/ {
11639
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11640
# Check for a 64-bit object if we didn't find anything.
11641
if test -z "$aix_libpath"; then
11642
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11645
echo "$as_me: failed program was:" >&5
11646
sed 's/^/| /' conftest.$ac_ext >&5
11651
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11652
conftest$ac_exeext conftest.$ac_ext
11653
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11655
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11656
# Warning - without using the other run time loading flags,
11657
# -berok will link without error, but may produce a broken library.
11658
no_undefined_flag_CXX=' ${wl}-bernotok'
11659
allow_undefined_flag_CXX=' ${wl}-berok'
11660
# Exported symbols can be pulled into shared objects from archives
11661
whole_archive_flag_spec_CXX='$convenience'
11662
archive_cmds_need_lc_CXX=yes
11663
# This is similar to how AIX traditionally builds its shared libraries.
11664
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11670
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11671
allow_undefined_flag_CXX=unsupported
11672
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11673
# support --undefined. This deserves some investigation. FIXME
11674
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11681
case $cc_basename in
11683
# FIXME: insert proper C++ library support
11689
cygwin* | mingw* | pw32*)
11690
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11691
# as there is no search path for DLLs.
11692
hardcode_libdir_flag_spec_CXX='-L$libdir'
11693
allow_undefined_flag_CXX=unsupported
11694
always_export_symbols_CXX=no
11695
enable_shared_with_static_runtimes_CXX=yes
11697
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11698
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11699
# If the export-symbols file already is a .def file (1st line
11700
# is EXPORTS), use it as is; otherwise, prepend...
11701
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11702
cp $export_symbols $output_objdir/$soname.def;
11704
echo EXPORTS > $output_objdir/$soname.def;
11705
cat $export_symbols >> $output_objdir/$soname.def;
11707
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11712
darwin* | rhapsody*)
11713
archive_cmds_need_lc_CXX=no
11714
hardcode_direct_CXX=no
11715
hardcode_automatic_CXX=yes
11716
hardcode_shlibpath_var_CXX=unsupported
11717
whole_archive_flag_spec_CXX=''
11718
link_all_deplibs_CXX=yes
11719
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11720
if test "$GXX" = yes ; then
11721
output_verbose_link_cmd='echo'
11722
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11723
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11724
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11725
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11726
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11727
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11728
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11731
case $cc_basename in
11733
output_verbose_link_cmd='echo'
11734
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11735
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11736
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11737
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11738
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11748
case $cc_basename in
11750
# FIXME: insert proper C++ library support
11754
# Green Hills C++ Compiler
11755
# FIXME: insert proper C++ library support
11759
# FIXME: insert proper C++ library support
11765
# C++ shared libraries reported to be fairly broken before switch to ELF
11769
archive_cmds_need_lc_CXX=no
11771
freebsd* | dragonfly*)
11772
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11779
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11780
hardcode_libdir_separator_CXX=:
11781
export_dynamic_flag_spec_CXX='${wl}-E'
11782
hardcode_direct_CXX=yes
11783
hardcode_minus_L_CXX=yes # Not in the search PATH,
11784
# but as the default
11785
# location of the library.
11787
case $cc_basename in
11789
# FIXME: insert proper C++ library support
11793
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11794
# Commands to make compiler produce verbose output that lists
11795
# what "hidden" libraries, object files and flags are used when
11796
# linking a shared library.
11798
# There doesn't appear to be a way to prevent this compiler from
11799
# explicitly linking system object files so we need to strip them
11800
# from the output so that they don't get included in the library
11802
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11805
if test "$GXX" = yes; then
11806
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11808
# FIXME: insert proper C++ library support
11815
if test $with_gnu_ld = no; then
11816
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11817
hardcode_libdir_separator_CXX=:
11822
export_dynamic_flag_spec_CXX='${wl}-E'
11828
hardcode_direct_CXX=no
11829
hardcode_shlibpath_var_CXX=no
11832
hardcode_direct_CXX=yes
11833
hardcode_minus_L_CXX=yes # Not in the search PATH,
11834
# but as the default
11835
# location of the library.
11839
case $cc_basename in
11841
# FIXME: insert proper C++ library support
11847
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11850
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11853
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11856
# Commands to make compiler produce verbose output that lists
11857
# what "hidden" libraries, object files and flags are used when
11858
# linking a shared library.
11860
# There doesn't appear to be a way to prevent this compiler from
11861
# explicitly linking system object files so we need to strip them
11862
# from the output so that they don't get included in the library
11864
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11867
if test "$GXX" = yes; then
11868
if test $with_gnu_ld = no; then
11871
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11874
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11877
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11882
# FIXME: insert proper C++ library support
11889
hardcode_direct_CXX=no
11890
hardcode_shlibpath_var_CXX=no
11891
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11892
export_dynamic_flag_spec_CXX='${wl}-E'
11893
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11894
# Instead, shared libraries are loaded at an image base (0x10000000 by
11895
# default) and relocated if they conflict, which is a slow very memory
11896
# consuming and fragmenting process. To avoid this, we pick a random,
11897
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11898
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11899
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11900
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11903
case $cc_basename in
11906
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11908
# Archives containing C++ object files must be created using
11909
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11910
# necessary to make sure instantiated templates are included
11912
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11915
if test "$GXX" = yes; then
11916
if test "$with_gnu_ld" = no; then
11917
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11919
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11922
link_all_deplibs_CXX=yes
11925
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11926
hardcode_libdir_separator_CXX=:
11928
linux* | k*bsd*-gnu)
11929
case $cc_basename in
11931
# Kuck and Associates, Inc. (KAI) C++ Compiler
11933
# KCC will only create a shared library if the output file
11934
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11935
# to its proper name (with version) after linking.
11936
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11937
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11938
# Commands to make compiler produce verbose output that lists
11939
# what "hidden" libraries, object files and flags are used when
11940
# linking a shared library.
11942
# There doesn't appear to be a way to prevent this compiler from
11943
# explicitly linking system object files so we need to strip them
11944
# from the output so that they don't get included in the library
11946
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11948
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11949
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11951
# Archives containing C++ object files must be created using
11952
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11953
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11958
# version 8.0 and above of icpc choke on multiply defined symbols
11959
# if we add $predep_objects and $postdep_objects, however 7.1 and
11960
# earlier do not add the objects themselves.
11961
case `$CC -V 2>&1` in
11963
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11964
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11966
*) # Version 8.0 or newer
11969
ia64*) tmp_idyn=' -i_dynamic';;
11971
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11972
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11975
archive_cmds_need_lc_CXX=no
11976
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11977
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11978
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11981
# Portland Group C++ compiler
11982
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11983
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11985
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11986
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11987
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11991
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11992
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11994
runpath_var=LD_RUN_PATH
11995
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11996
hardcode_libdir_separator_CXX=:
11998
# Commands to make compiler produce verbose output that lists
11999
# what "hidden" libraries, object files and flags are used when
12000
# linking a shared library.
12002
# There doesn't appear to be a way to prevent this compiler from
12003
# explicitly linking system object files so we need to strip them
12004
# from the output so that they don't get included in the library
12006
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12009
case `$CC -V 2>&1 | sed 5q` in
12012
no_undefined_flag_CXX=' -zdefs'
12013
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12014
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12015
hardcode_libdir_flag_spec_CXX='-R$libdir'
12016
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12018
# Not sure whether something based on
12019
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12021
output_verbose_link_cmd='echo'
12023
# Archives containing C++ object files must be created using
12024
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12025
# necessary to make sure instantiated templates are included
12027
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12034
# FIXME: insert proper C++ library support
12038
# FIXME: insert proper C++ library support
12042
case $cc_basename in
12044
# FIXME: insert proper C++ library support
12048
# FIXME: insert proper C++ library support
12054
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12055
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12057
hardcode_libdir_flag_spec_CXX='-R$libdir'
12058
hardcode_direct_CXX=yes
12059
hardcode_shlibpath_var_CXX=no
12061
# Workaround some broken pre-1.5 toolchains
12062
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12065
# C++ shared libraries are fairly broken
12069
if test -f /usr/libexec/ld.so; then
12070
hardcode_direct_CXX=yes
12071
hardcode_shlibpath_var_CXX=no
12072
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12073
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12074
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12075
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12076
export_dynamic_flag_spec_CXX='${wl}-E'
12077
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12079
output_verbose_link_cmd='echo'
12085
case $cc_basename in
12087
# Kuck and Associates, Inc. (KAI) C++ Compiler
12089
# KCC will only create a shared library if the output file
12090
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12091
# to its proper name (with version) after linking.
12092
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12094
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12095
hardcode_libdir_separator_CXX=:
12097
# Archives containing C++ object files must be created using
12098
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12099
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12103
# Rational C++ 2.4.1
12104
# FIXME: insert proper C++ library support
12108
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12109
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12111
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12112
hardcode_libdir_separator_CXX=:
12114
# Commands to make compiler produce verbose output that lists
12115
# what "hidden" libraries, object files and flags are used when
12116
# linking a shared library.
12118
# There doesn't appear to be a way to prevent this compiler from
12119
# explicitly linking system object files so we need to strip them
12120
# from the output so that they don't get included in the library
12122
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12125
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12126
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12127
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12129
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12130
hardcode_libdir_separator_CXX=:
12132
# Commands to make compiler produce verbose output that lists
12133
# what "hidden" libraries, object files and flags are used when
12134
# linking a shared library.
12135
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12138
# FIXME: insert proper C++ library support
12145
case $cc_basename in
12147
# Kuck and Associates, Inc. (KAI) C++ Compiler
12149
# KCC will only create a shared library if the output file
12150
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12151
# to its proper name (with version) after linking.
12152
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12154
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12155
hardcode_libdir_separator_CXX=:
12157
# Archives containing C++ object files must be created using
12158
# the KAI C++ compiler.
12159
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12162
# Rational C++ 2.4.1
12163
# FIXME: insert proper C++ library support
12167
allow_undefined_flag_CXX=' -expect_unresolved \*'
12168
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12169
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12170
echo "-hidden">> $lib.exp~
12171
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12174
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12175
hardcode_libdir_separator_CXX=:
12177
# Commands to make compiler produce verbose output that lists
12178
# what "hidden" libraries, object files and flags are used when
12179
# linking a shared library.
12181
# There doesn't appear to be a way to prevent this compiler from
12182
# explicitly linking system object files so we need to strip them
12183
# from the output so that they don't get included in the library
12185
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12188
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12189
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12190
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12192
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12193
hardcode_libdir_separator_CXX=:
12195
# Commands to make compiler produce verbose output that lists
12196
# what "hidden" libraries, object files and flags are used when
12197
# linking a shared library.
12198
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12201
# FIXME: insert proper C++ library support
12208
# FIXME: insert proper C++ library support
12212
case $cc_basename in
12215
# FIXME: insert proper C++ library support
12220
# FIXME: insert proper C++ library support
12224
# FIXME: insert proper C++ library support
12230
case $cc_basename in
12232
# Sun C++ 4.2, 5.x and Centerline C++
12233
archive_cmds_need_lc_CXX=yes
12234
no_undefined_flag_CXX=' -zdefs'
12235
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12236
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12237
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12239
hardcode_libdir_flag_spec_CXX='-R$libdir'
12240
hardcode_shlibpath_var_CXX=no
12242
solaris2.[0-5] | solaris2.[0-5].*) ;;
12244
# The compiler driver will combine and reorder linker options,
12245
# but understands `-z linker_flag'.
12246
# Supported since Solaris 2.6 (maybe 2.5.1?)
12247
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12250
link_all_deplibs_CXX=yes
12252
output_verbose_link_cmd='echo'
12254
# Archives containing C++ object files must be created using
12255
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12256
# necessary to make sure instantiated templates are included
12258
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12261
# Green Hills C++ Compiler
12262
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12264
# The C++ compiler must be used to create the archive.
12265
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12268
# GNU C++ compiler with Solaris linker
12269
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12270
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12271
if $CC --version | grep -v '^2\.7' > /dev/null; then
12272
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12273
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12274
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12276
# Commands to make compiler produce verbose output that lists
12277
# what "hidden" libraries, object files and flags are used when
12278
# linking a shared library.
12279
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12281
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12283
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12284
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12285
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12287
# Commands to make compiler produce verbose output that lists
12288
# what "hidden" libraries, object files and flags are used when
12289
# linking a shared library.
12290
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12293
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12295
solaris2.[0-5] | solaris2.[0-5].*) ;;
12297
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12304
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12305
no_undefined_flag_CXX='${wl}-z,text'
12306
archive_cmds_need_lc_CXX=no
12307
hardcode_shlibpath_var_CXX=no
12308
runpath_var='LD_RUN_PATH'
12310
case $cc_basename in
12312
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12313
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12316
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12317
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12321
sysv5* | sco3.2v5* | sco5v6*)
12322
# Note: We can NOT use -z defs as we might desire, because we do not
12323
# link with -lc, and that would cause any symbols used from libc to
12324
# always be unresolved, which means just about no library would
12325
# ever link correctly. If we're not using GNU ld we use -z text
12326
# though, which does catch some bad symbols but isn't as heavy-handed
12328
# For security reasons, it is highly recommended that you always
12329
# use absolute paths for naming shared libraries, and exclude the
12330
# DT_RUNPATH tag from executables and libraries. But doing so
12331
# requires that you compile everything twice, which is a pain.
12332
# So that behaviour is only enabled if SCOABSPATH is set to a
12333
# non-empty value in the environment. Most likely only useful for
12334
# creating official distributions of packages.
12335
# This is a hack until libtool officially supports absolute path
12336
# names for shared libraries.
12337
no_undefined_flag_CXX='${wl}-z,text'
12338
allow_undefined_flag_CXX='${wl}-z,nodefs'
12339
archive_cmds_need_lc_CXX=no
12340
hardcode_shlibpath_var_CXX=no
12341
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12342
hardcode_libdir_separator_CXX=':'
12343
link_all_deplibs_CXX=yes
12344
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12345
runpath_var='LD_RUN_PATH'
12347
case $cc_basename in
12349
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12350
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12353
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12354
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12359
case $cc_basename in
12361
# NonStop-UX NCC 3.20
12362
# FIXME: insert proper C++ library support
12366
# FIXME: insert proper C++ library support
12372
# FIXME: insert proper C++ library support
12376
# FIXME: insert proper C++ library support
12380
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12381
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12382
test "$ld_shlibs_CXX" = no && can_build_shared=no
12387
cat > conftest.$ac_ext <<EOF
12391
Foo (void) { a = 0; }
12397
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12398
(eval $ac_compile) 2>&5
12400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401
(exit $ac_status); }; then
12402
# Parse the compiler output and extract the necessary
12403
# objects, libraries and library flags.
12405
# Sentinel used to keep track of whether or not we are before
12406
# the conftest object file.
12407
pre_test_object_deps_done=no
12409
# The `*' in the case matches for architectures that use `case' in
12410
# $output_verbose_cmd can trigger glob expansion during the loop
12411
# eval without this substitution.
12412
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12414
for p in `eval $output_verbose_link_cmd`; do
12418
# Some compilers place space between "-{L,R}" and the path.
12419
# Remove the space.
12420
if test $p = "-L" \
12421
|| test $p = "-R"; then
12428
if test "$pre_test_object_deps_done" = no; then
12431
# Internal compiler library paths should come after those
12432
# provided the user. The postdeps already come after the
12433
# user supplied libs so there is no need to process them.
12434
if test -z "$compiler_lib_search_path_CXX"; then
12435
compiler_lib_search_path_CXX="${prev}${p}"
12437
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12440
# The "-l" case would never come before the object being
12441
# linked, so don't bother handling this case.
12444
if test -z "$postdeps_CXX"; then
12445
postdeps_CXX="${prev}${p}"
12447
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12453
# This assumes that the test object file only shows up
12454
# once in the compiler output.
12455
if test "$p" = "conftest.$objext"; then
12456
pre_test_object_deps_done=yes
12460
if test "$pre_test_object_deps_done" = no; then
12461
if test -z "$predep_objects_CXX"; then
12462
predep_objects_CXX="$p"
12464
predep_objects_CXX="$predep_objects_CXX $p"
12467
if test -z "$postdep_objects_CXX"; then
12468
postdep_objects_CXX="$p"
12470
postdep_objects_CXX="$postdep_objects_CXX $p"
12475
*) ;; # Ignore the rest.
12483
echo "libtool.m4: error: problem compiling CXX test program"
12486
$rm -f confest.$objext
12488
compiler_lib_search_dirs_CXX=
12489
if test -n "$compiler_lib_search_path_CXX"; then
12490
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12493
# PORTME: override above test on systems where it is broken
12496
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12497
# hack all around it, let's just trust "g++" to DTRT.
12498
predep_objects_CXX=
12499
postdep_objects_CXX=
12504
case `$CC -V 2>&1 | sed 5q` in
12508
# The more standards-conforming stlport4 library is
12509
# incompatible with the Cstd library. Avoid specifying
12510
# it if it's in CXXFLAGS. Ignore libCrun as
12511
# -library=stlport4 depends on it.
12512
case " $CXX $CXXFLAGS " in
12513
*" -library=stlport4 "*)
12514
solaris_use_stlport4=yes
12517
if test "$solaris_use_stlport4" != yes; then
12518
postdeps_CXX='-library=Cstd -library=Crun'
12525
case $cc_basename in
12527
# The more standards-conforming stlport4 library is
12528
# incompatible with the Cstd library. Avoid specifying
12529
# it if it's in CXXFLAGS. Ignore libCrun as
12530
# -library=stlport4 depends on it.
12531
case " $CXX $CXXFLAGS " in
12532
*" -library=stlport4 "*)
12533
solaris_use_stlport4=yes
12537
# Adding this requires a known-good setup of shared libraries for
12538
# Sun compiler versions before 5.6, else PIC objects from an old
12539
# archive will be linked into the output, leading to subtle bugs.
12540
if test "$solaris_use_stlport4" != yes; then
12541
postdeps_CXX='-library=Cstd -library=Crun'
12548
case " $postdeps_CXX " in
12549
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12552
lt_prog_compiler_wl_CXX=
12553
lt_prog_compiler_pic_CXX=
12554
lt_prog_compiler_static_CXX=
12556
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12557
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12559
# C++ specific cases for pic, static, wl, etc.
12560
if test "$GXX" = yes; then
12561
lt_prog_compiler_wl_CXX='-Wl,'
12562
lt_prog_compiler_static_CXX='-static'
12566
# All AIX code is PIC.
12567
if test "$host_cpu" = ia64; then
12568
# AIX 5 now supports IA64 processor
12569
lt_prog_compiler_static_CXX='-Bstatic'
12573
# FIXME: we need at least 68020 code to build shared libraries, but
12574
# adding the `-m68020' flag to GCC prevents building anything better,
12576
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12578
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12579
# PIC is the default for these OSes.
12581
mingw* | cygwin* | os2* | pw32*)
12582
# This hack is so that the source file can tell whether it is being
12583
# built for inclusion in a dll (and should export symbols for example).
12584
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12585
# (--disable-auto-import) libraries
12586
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12588
darwin* | rhapsody*)
12589
# PIC is the default on this platform
12590
# Common symbols not allowed in MH_DYLIB files
12591
lt_prog_compiler_pic_CXX='-fno-common'
12594
# DJGPP does not support shared libraries at all
12595
lt_prog_compiler_pic_CXX=
12598
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12599
# Instead, we relocate shared libraries at runtime.
12602
if test -d /usr/nec; then
12603
lt_prog_compiler_pic_CXX=-Kconform_pic
12607
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12608
# not for PA HP-UX.
12613
lt_prog_compiler_pic_CXX='-fPIC'
12618
lt_prog_compiler_pic_CXX='-fPIC'
12624
# All AIX code is PIC.
12625
if test "$host_cpu" = ia64; then
12626
# AIX 5 now supports IA64 processor
12627
lt_prog_compiler_static_CXX='-Bstatic'
12629
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12633
case $cc_basename in
12635
# Green Hills C++ Compiler
12636
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12641
# PIC is the default on this platform
12642
# Common symbols not allowed in MH_DYLIB files
12643
case $cc_basename in
12645
lt_prog_compiler_pic_CXX='-qnocommon'
12646
lt_prog_compiler_wl_CXX='-Wl,'
12651
case $cc_basename in
12653
lt_prog_compiler_pic_CXX='-KPIC'
12656
# Green Hills C++ Compiler
12657
lt_prog_compiler_pic_CXX='-pic'
12663
freebsd* | dragonfly*)
12664
# FreeBSD uses GNU C++
12666
hpux9* | hpux10* | hpux11*)
12667
case $cc_basename in
12669
lt_prog_compiler_wl_CXX='-Wl,'
12670
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12671
if test "$host_cpu" != ia64; then
12672
lt_prog_compiler_pic_CXX='+Z'
12676
lt_prog_compiler_wl_CXX='-Wl,'
12677
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12683
lt_prog_compiler_pic_CXX='+Z'
12692
# This is c89, which is MS Visual C++ (no shared libs)
12693
# Anyone wants to do a port?
12695
irix5* | irix6* | nonstopux*)
12696
case $cc_basename in
12698
lt_prog_compiler_wl_CXX='-Wl,'
12699
lt_prog_compiler_static_CXX='-non_shared'
12700
# CC pic flag -KPIC is the default.
12706
linux* | k*bsd*-gnu)
12707
case $cc_basename in
12710
lt_prog_compiler_wl_CXX='--backend -Wl,'
12711
lt_prog_compiler_pic_CXX='-fPIC'
12715
lt_prog_compiler_wl_CXX='-Wl,'
12716
lt_prog_compiler_pic_CXX='-KPIC'
12717
lt_prog_compiler_static_CXX='-static'
12720
# Portland Group C++ compiler.
12721
lt_prog_compiler_wl_CXX='-Wl,'
12722
lt_prog_compiler_pic_CXX='-fpic'
12723
lt_prog_compiler_static_CXX='-Bstatic'
12727
# Make sure the PIC flag is empty. It appears that all Alpha
12728
# Linux and Compaq Tru64 Unix objects are PIC.
12729
lt_prog_compiler_pic_CXX=
12730
lt_prog_compiler_static_CXX='-non_shared'
12733
case `$CC -V 2>&1 | sed 5q` in
12736
lt_prog_compiler_pic_CXX='-KPIC'
12737
lt_prog_compiler_static_CXX='-Bstatic'
12738
lt_prog_compiler_wl_CXX='-Qoption ld '
12749
case $cc_basename in
12751
lt_prog_compiler_pic_CXX='-W c,exportall'
12759
osf3* | osf4* | osf5*)
12760
case $cc_basename in
12762
lt_prog_compiler_wl_CXX='--backend -Wl,'
12765
# Rational C++ 2.4.1
12766
lt_prog_compiler_pic_CXX='-pic'
12769
# Digital/Compaq C++
12770
lt_prog_compiler_wl_CXX='-Wl,'
12771
# Make sure the PIC flag is empty. It appears that all Alpha
12772
# Linux and Compaq Tru64 Unix objects are PIC.
12773
lt_prog_compiler_pic_CXX=
12774
lt_prog_compiler_static_CXX='-non_shared'
12783
case $cc_basename in
12785
# Sun C++ 4.2, 5.x and Centerline C++
12786
lt_prog_compiler_pic_CXX='-KPIC'
12787
lt_prog_compiler_static_CXX='-Bstatic'
12788
lt_prog_compiler_wl_CXX='-Qoption ld '
12791
# Green Hills C++ Compiler
12792
lt_prog_compiler_pic_CXX='-PIC'
12799
case $cc_basename in
12802
lt_prog_compiler_pic_CXX='-pic'
12803
lt_prog_compiler_static_CXX='-Bstatic'
12807
lt_prog_compiler_pic_CXX='-pic'
12814
case $cc_basename in
12816
# NonStop-UX NCC 3.20
12817
lt_prog_compiler_pic_CXX='-KPIC'
12823
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12824
case $cc_basename in
12826
lt_prog_compiler_wl_CXX='-Wl,'
12827
lt_prog_compiler_pic_CXX='-KPIC'
12828
lt_prog_compiler_static_CXX='-Bstatic'
12835
lt_prog_compiler_can_build_shared_CXX=no
12840
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12841
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12844
# Check to make sure the PIC flag actually works.
12846
if test -n "$lt_prog_compiler_pic_CXX"; then
12848
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12849
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12850
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12851
echo $ECHO_N "(cached) $ECHO_C" >&6
12853
lt_cv_prog_compiler_pic_works_CXX=no
12854
ac_outfile=conftest.$ac_objext
12855
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12856
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12857
# Insert the option either (1) after the last *FLAGS variable, or
12858
# (2) before a word containing "conftest.", or (3) at the end.
12859
# Note that $ac_compile itself does not contain backslashes and begins
12860
# with a dollar sign (not a hyphen), so the echo should work correctly.
12861
# The option is referenced via a variable to avoid confusing sed.
12862
lt_compile=`echo "$ac_compile" | $SED \
12863
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12864
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12865
-e 's:$: $lt_compiler_flag:'`
12866
(eval echo "\"\$as_me:12866: $lt_compile\"" >&5)
12867
(eval "$lt_compile" 2>conftest.err)
12869
cat conftest.err >&5
12870
echo "$as_me:12870: \$? = $ac_status" >&5
12871
if (exit $ac_status) && test -s "$ac_outfile"; then
12872
# The compiler can only warn and ignore the option if not recognized
12873
# So say no if there are warnings other than the usual output.
12874
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12875
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12876
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12877
lt_cv_prog_compiler_pic_works_CXX=yes
12883
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12884
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12886
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12887
case $lt_prog_compiler_pic_CXX in
12889
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12892
lt_prog_compiler_pic_CXX=
12893
lt_prog_compiler_can_build_shared_CXX=no
12898
# For platforms which do not support PIC, -DPIC is meaningless:
12900
lt_prog_compiler_pic_CXX=
12903
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12908
# Check to make sure the static flag actually works.
12910
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12911
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12912
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12913
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12914
echo $ECHO_N "(cached) $ECHO_C" >&6
12916
lt_cv_prog_compiler_static_works_CXX=no
12917
save_LDFLAGS="$LDFLAGS"
12918
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12919
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12920
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12921
# The linker can only warn and ignore the option if not recognized
12922
# So say no if there are warnings
12923
if test -s conftest.err; then
12924
# Append any errors to the config.log.
12925
cat conftest.err 1>&5
12926
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12927
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12928
if diff conftest.exp conftest.er2 >/dev/null; then
12929
lt_cv_prog_compiler_static_works_CXX=yes
12932
lt_cv_prog_compiler_static_works_CXX=yes
12936
LDFLAGS="$save_LDFLAGS"
12939
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12940
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12942
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12945
lt_prog_compiler_static_CXX=
12949
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12950
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12951
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12952
echo $ECHO_N "(cached) $ECHO_C" >&6
12954
lt_cv_prog_compiler_c_o_CXX=no
12955
$rm -r conftest 2>/dev/null
12959
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12961
lt_compiler_flag="-o out/conftest2.$ac_objext"
12962
# Insert the option either (1) after the last *FLAGS variable, or
12963
# (2) before a word containing "conftest.", or (3) at the end.
12964
# Note that $ac_compile itself does not contain backslashes and begins
12965
# with a dollar sign (not a hyphen), so the echo should work correctly.
12966
lt_compile=`echo "$ac_compile" | $SED \
12967
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12968
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12969
-e 's:$: $lt_compiler_flag:'`
12970
(eval echo "\"\$as_me:12970: $lt_compile\"" >&5)
12971
(eval "$lt_compile" 2>out/conftest.err)
12973
cat out/conftest.err >&5
12974
echo "$as_me:12974: \$? = $ac_status" >&5
12975
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12977
# The compiler can only warn and ignore the option if not recognized
12978
# So say no if there are warnings
12979
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12980
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12981
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12982
lt_cv_prog_compiler_c_o_CXX=yes
12987
# SGI C++ compiler will create directory out/ii_files/ for
12988
# template instantiation
12989
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12990
$rm out/* && rmdir out
12996
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12997
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13000
hard_links="nottested"
13001
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13002
# do not overwrite the value of need_locks provided by the user
13003
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13004
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13007
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13009
ln conftest.a conftest.b 2>&5 || hard_links=no
13010
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13011
{ echo "$as_me:$LINENO: result: $hard_links" >&5
13012
echo "${ECHO_T}$hard_links" >&6; }
13013
if test "$hard_links" = no; then
13014
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13015
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13022
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13023
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13025
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13028
# If we're using GNU nm, then we don't want the "-C" option.
13029
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13030
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13031
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13033
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13037
export_symbols_cmds_CXX="$ltdll_cmds"
13040
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13043
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13046
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13048
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13049
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13050
test "$ld_shlibs_CXX" = no && can_build_shared=no
13053
# Do we need to explicitly link libc?
13055
case "x$archive_cmds_need_lc_CXX" in
13057
# Assume -lc should be added
13058
archive_cmds_need_lc_CXX=yes
13060
if test "$enable_shared" = yes && test "$GCC" = yes; then
13061
case $archive_cmds_CXX in
13063
# FIXME: we may have to deal with multi-command sequences.
13066
# Test whether the compiler implicitly links with -lc since on some
13067
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13068
# to ld, don't add -lc before -lgcc.
13069
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13070
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13072
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13074
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13075
(eval $ac_compile) 2>&5
13077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078
(exit $ac_status); } 2>conftest.err; then
13081
libobjs=conftest.$ac_objext
13083
wl=$lt_prog_compiler_wl_CXX
13084
pic_flag=$lt_prog_compiler_pic_CXX
13090
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13091
allow_undefined_flag_CXX=
13092
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13093
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096
(exit $ac_status); }
13098
archive_cmds_need_lc_CXX=no
13100
archive_cmds_need_lc_CXX=yes
13102
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13104
cat conftest.err 1>&5
13107
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13108
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13115
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13116
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13117
library_names_spec=
13118
libname_spec='lib$name'
13122
postuninstall_cmds=
13126
shlibpath_overrides_runpath=unknown
13128
dynamic_linker="$host_os ld.so"
13129
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13131
need_lib_prefix=unknown
13132
hardcode_into_libs=no
13134
# when you set need_version to no, make sure it does not cause -set_version
13135
# flags to be left without arguments
13136
need_version=unknown
13141
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13142
shlibpath_var=LIBPATH
13144
# AIX 3 has no versioning support, so we append a major version to the name.
13145
soname_spec='${libname}${release}${shared_ext}$major'
13152
hardcode_into_libs=yes
13153
if test "$host_cpu" = ia64; then
13154
# AIX 5 supports IA64
13155
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13156
shlibpath_var=LD_LIBRARY_PATH
13158
# With GCC up to 2.95.x, collect2 would create an import file
13159
# for dependence libraries. The import file would start with
13160
# the line `#! .'. This would cause the generated library to
13161
# depend on `.', always an invalid library. This was fixed in
13162
# development snapshots of GCC prior to 3.0.
13164
aix4 | aix4.[01] | aix4.[01].*)
13165
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13167
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13170
can_build_shared=no
13174
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13175
# soname into executable. Probably we can add versioning support to
13176
# collect2, so additional links can be useful in future.
13177
if test "$aix_use_runtimelinking" = yes; then
13178
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13179
# instead of lib<name>.a to let people know that these are not
13180
# typical AIX shared libraries.
13181
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13183
# We preserve .a as extension for shared libraries through AIX4.2
13184
# and later when we are not doing run time linking.
13185
library_names_spec='${libname}${release}.a $libname.a'
13186
soname_spec='${libname}${release}${shared_ext}$major'
13188
shlibpath_var=LIBPATH
13193
library_names_spec='$libname.ixlibrary $libname.a'
13194
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13195
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
13199
library_names_spec='${libname}${shared_ext}'
13200
dynamic_linker="$host_os ld.so"
13201
shlibpath_var=LIBRARY_PATH
13207
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13208
soname_spec='${libname}${release}${shared_ext}$major'
13209
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13210
shlibpath_var=LD_LIBRARY_PATH
13211
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13212
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13213
# the default ld.so.conf also contains /usr/contrib/lib and
13214
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13215
# libtool to hard-code these into programs
13218
cygwin* | mingw* | pw32*)
13219
version_type=windows
13224
case $GCC,$host_os in
13225
yes,cygwin* | yes,mingw* | yes,pw32*)
13226
library_names_spec='$libname.dll.a'
13227
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13228
postinstall_cmds='base_file=`basename \${file}`~
13229
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13230
dldir=$destdir/`dirname \$dlpath`~
13231
test -d \$dldir || mkdir -p \$dldir~
13232
$install_prog $dir/$dlname \$dldir/$dlname~
13233
chmod a+x \$dldir/$dlname'
13234
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13235
dlpath=$dir/\$dldll~
13237
shlibpath_overrides_runpath=yes
13241
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13242
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13243
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13246
# MinGW DLLs use traditional 'lib' prefix
13247
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13248
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13249
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13250
# It is most probably a Windows format PATH printed by
13251
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13252
# path with ; separators, and with drive letters. We can handle the
13253
# drive letters (cygwin fileutils understands them), so leave them,
13254
# especially as we might pass files found there to a mingw objdump,
13255
# which wouldn't understand a cygwinified path. Ahh.
13256
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13258
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13262
# pw32 DLLs use 'pw' prefix rather than 'lib'
13263
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13269
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13272
dynamic_linker='Win32 ld.exe'
13273
# FIXME: first we should search . and the directory the executable is in
13277
darwin* | rhapsody*)
13278
dynamic_linker="$host_os dyld"
13279
version_type=darwin
13282
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13283
soname_spec='${libname}${release}${major}$shared_ext'
13284
shlibpath_overrides_runpath=yes
13285
shlibpath_var=DYLD_LIBRARY_PATH
13286
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13288
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13295
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13296
soname_spec='${libname}${release}${shared_ext}$major'
13297
shlibpath_var=LD_LIBRARY_PATH
13304
freebsd* | dragonfly*)
13305
# DragonFly does not have aout. When/if they implement a new
13306
# versioning mechanism, adjust this.
13307
if test -x /usr/bin/objformat; then
13308
objformat=`/usr/bin/objformat`
13311
freebsd[123]*) objformat=aout ;;
13312
*) objformat=elf ;;
13315
# Handle Gentoo/FreeBSD as it was Linux
13316
case $host_vendor in
13318
version_type=linux ;;
13320
version_type=freebsd-$objformat ;;
13323
case $version_type in
13325
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13330
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13334
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13335
soname_spec='${libname}${release}${shared_ext}$major'
13340
shlibpath_var=LD_LIBRARY_PATH
13343
shlibpath_overrides_runpath=yes
13345
freebsd3.[01]* | freebsdelf3.[01]*)
13346
shlibpath_overrides_runpath=yes
13347
hardcode_into_libs=yes
13349
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13350
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13351
shlibpath_overrides_runpath=no
13352
hardcode_into_libs=yes
13354
*) # from 4.6 on, and DragonFly
13355
shlibpath_overrides_runpath=yes
13356
hardcode_into_libs=yes
13365
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13366
soname_spec='${libname}${release}${shared_ext}$major'
13367
shlibpath_var=LD_LIBRARY_PATH
13368
hardcode_into_libs=yes
13371
hpux9* | hpux10* | hpux11*)
13372
# Give a soname corresponding to the major version so that dld.sl refuses to
13373
# link against other versions.
13380
hardcode_into_libs=yes
13381
dynamic_linker="$host_os dld.so"
13382
shlibpath_var=LD_LIBRARY_PATH
13383
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13385
soname_spec='${libname}${release}${shared_ext}$major'
13386
if test "X$HPUX_IA64_MODE" = X32; then
13387
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13389
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13391
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13395
hardcode_into_libs=yes
13396
dynamic_linker="$host_os dld.sl"
13397
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13398
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13399
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13400
soname_spec='${libname}${release}${shared_ext}$major'
13401
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13402
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13406
dynamic_linker="$host_os dld.sl"
13407
shlibpath_var=SHLIB_PATH
13408
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13409
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13410
soname_spec='${libname}${release}${shared_ext}$major'
13413
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13414
postinstall_cmds='chmod 555 $lib'
13421
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13422
soname_spec='${libname}${release}${shared_ext}$major'
13423
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13424
shlibpath_var=LD_LIBRARY_PATH
13425
shlibpath_overrides_runpath=no
13426
hardcode_into_libs=yes
13429
irix5* | irix6* | nonstopux*)
13431
nonstopux*) version_type=nonstopux ;;
13433
if test "$lt_cv_prog_gnu_ld" = yes; then
13441
soname_spec='${libname}${release}${shared_ext}$major'
13442
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13444
irix5* | nonstopux*)
13445
libsuff= shlibsuff=
13448
case $LD in # libtool.m4 will add one of these switches to LD
13449
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13450
libsuff= shlibsuff= libmagic=32-bit;;
13451
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13452
libsuff=32 shlibsuff=N32 libmagic=N32;;
13453
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13454
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13455
*) libsuff= shlibsuff= libmagic=never-match;;
13459
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13460
shlibpath_overrides_runpath=no
13461
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13462
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13463
hardcode_into_libs=yes
13466
# No shared lib support for Linux oldld, aout, or coff.
13467
linux*oldld* | linux*aout* | linux*coff*)
13471
# This must be Linux ELF.
13472
linux* | k*bsd*-gnu)
13476
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477
soname_spec='${libname}${release}${shared_ext}$major'
13478
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13479
shlibpath_var=LD_LIBRARY_PATH
13480
shlibpath_overrides_runpath=no
13481
# This implies no fast_install, which is unacceptable.
13482
# Some rework will be needed to allow for fast_install
13483
# before this can be enabled.
13484
hardcode_into_libs=yes
13486
# Append ld.so.conf contents to the search path
13487
if test -f /etc/ld.so.conf; then
13488
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;/^$/d' | tr '\n' ' '`
13489
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13492
# We used to test for /lib/ld.so.1 and disable shared libraries on
13493
# powerpc, because MkLinux only supported shared libraries with the
13494
# GNU dynamic linker. Since this was broken with cross compilers,
13495
# most powerpc-linux boxes support dynamic linking these days and
13496
# people can always --disable-shared, the test was removed, and we
13497
# assume the GNU/Linux dynamic linker is in use.
13498
dynamic_linker='GNU/Linux ld.so'
13505
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13506
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13507
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13508
dynamic_linker='NetBSD (a.out) ld.so'
13510
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13511
soname_spec='${libname}${release}${shared_ext}$major'
13512
dynamic_linker='NetBSD ld.elf_so'
13514
shlibpath_var=LD_LIBRARY_PATH
13515
shlibpath_overrides_runpath=yes
13516
hardcode_into_libs=yes
13521
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13522
shlibpath_var=LD_LIBRARY_PATH
13523
shlibpath_overrides_runpath=yes
13530
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13531
soname_spec='${libname}${release}${shared_ext}$major'
13532
shlibpath_var=LD_LIBRARY_PATH
13533
shlibpath_overrides_runpath=yes
13538
sys_lib_dlsearch_path_spec="/usr/lib"
13540
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13542
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13543
*) need_version=no ;;
13545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13546
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13547
shlibpath_var=LD_LIBRARY_PATH
13548
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13550
openbsd2.[89] | openbsd2.[89].*)
13551
shlibpath_overrides_runpath=no
13554
shlibpath_overrides_runpath=yes
13558
shlibpath_overrides_runpath=yes
13563
libname_spec='$name'
13566
library_names_spec='$libname${shared_ext} $libname.a'
13567
dynamic_linker='OS/2 ld.exe'
13568
shlibpath_var=LIBPATH
13571
osf3* | osf4* | osf5*)
13575
soname_spec='${libname}${release}${shared_ext}$major'
13576
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577
shlibpath_var=LD_LIBRARY_PATH
13578
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13579
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13590
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13591
soname_spec='${libname}${release}${shared_ext}$major'
13592
shlibpath_var=LD_LIBRARY_PATH
13593
shlibpath_overrides_runpath=yes
13594
hardcode_into_libs=yes
13595
# ldd complains unless libraries are executable
13596
postinstall_cmds='chmod +x $lib'
13601
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13602
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13603
shlibpath_var=LD_LIBRARY_PATH
13604
shlibpath_overrides_runpath=yes
13605
if test "$with_gnu_ld" = yes; then
13613
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13614
soname_spec='${libname}${release}${shared_ext}$major'
13615
shlibpath_var=LD_LIBRARY_PATH
13616
case $host_vendor in
13618
shlibpath_overrides_runpath=no
13620
export_dynamic_flag_spec='${wl}-Blargedynsym'
13621
runpath_var=LD_RUN_PATH
13629
shlibpath_overrides_runpath=no
13630
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13636
if test -d /usr/nec ;then
13638
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13639
soname_spec='$libname${shared_ext}.$major'
13640
shlibpath_var=LD_LIBRARY_PATH
13644
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13645
version_type=freebsd-elf
13648
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13649
soname_spec='${libname}${release}${shared_ext}$major'
13650
shlibpath_var=LD_LIBRARY_PATH
13651
hardcode_into_libs=yes
13652
if test "$with_gnu_ld" = yes; then
13653
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13654
shlibpath_overrides_runpath=no
13656
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13657
shlibpath_overrides_runpath=yes
13660
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13664
sys_lib_dlsearch_path_spec='/usr/lib'
13669
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13670
soname_spec='${libname}${release}${shared_ext}$major'
13671
shlibpath_var=LD_LIBRARY_PATH
13678
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13679
echo "${ECHO_T}$dynamic_linker" >&6; }
13680
test "$dynamic_linker" = no && can_build_shared=no
13682
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13683
echo $ECHO_N "(cached) $ECHO_C" >&6
13685
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13688
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13689
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13690
echo $ECHO_N "(cached) $ECHO_C" >&6
13692
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13695
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13697
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13698
if test "$GCC" = yes; then
13699
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13702
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13703
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13704
hardcode_action_CXX=
13705
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13706
test -n "$runpath_var_CXX" || \
13707
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13709
# We can hardcode non-existant directories.
13710
if test "$hardcode_direct_CXX" != no &&
13711
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13712
# have to relink, otherwise we might link with an installed library
13713
# when we should be linking with a yet-to-be-installed one
13714
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13715
test "$hardcode_minus_L_CXX" != no; then
13716
# Linking always hardcodes the temporary library directory.
13717
hardcode_action_CXX=relink
13719
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13720
hardcode_action_CXX=immediate
13723
# We cannot hardcode anything, or else we can only hardcode existing
13725
hardcode_action_CXX=unsupported
13727
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13728
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13730
if test "$hardcode_action_CXX" = relink; then
13731
# Fast installation is not supported
13732
enable_fast_install=no
13733
elif test "$shlibpath_overrides_runpath" = yes ||
13734
test "$enable_shared" = no; then
13735
# Fast installation is not necessary
13736
enable_fast_install=needless
13740
# The else clause should only fire when bootstrapping the
13741
# libtool distribution, otherwise you forgot to ship ltmain.sh
13742
# with your package, and you will get complaints that there are
13743
# no rules to generate ltmain.sh.
13744
if test -f "$ltmain"; then
13745
# See if we are running on zsh, and set the options which allow our commands through
13746
# without removal of \ escapes.
13747
if test -n "${ZSH_VERSION+set}" ; then
13748
setopt NO_GLOB_SUBST
13750
# Now quote all the things that may contain metacharacters while being
13751
# careful not to overquote the AC_SUBSTed values. We take copies of the
13752
# variables and quote the copies for generation of the libtool script.
13753
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13755
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13756
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13757
deplibs_check_method reload_flag reload_cmds need_locks \
13758
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13759
lt_cv_sys_global_symbol_to_c_name_address \
13760
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13761
old_postinstall_cmds old_postuninstall_cmds \
13765
lt_prog_compiler_wl_CXX \
13766
lt_prog_compiler_pic_CXX \
13767
lt_prog_compiler_static_CXX \
13768
lt_prog_compiler_no_builtin_flag_CXX \
13769
export_dynamic_flag_spec_CXX \
13770
thread_safe_flag_spec_CXX \
13771
whole_archive_flag_spec_CXX \
13772
enable_shared_with_static_runtimes_CXX \
13773
old_archive_cmds_CXX \
13774
old_archive_from_new_cmds_CXX \
13775
predep_objects_CXX \
13776
postdep_objects_CXX \
13779
compiler_lib_search_path_CXX \
13780
compiler_lib_search_dirs_CXX \
13782
archive_expsym_cmds_CXX \
13783
postinstall_cmds_CXX \
13784
postuninstall_cmds_CXX \
13785
old_archive_from_expsyms_cmds_CXX \
13786
allow_undefined_flag_CXX \
13787
no_undefined_flag_CXX \
13788
export_symbols_cmds_CXX \
13789
hardcode_libdir_flag_spec_CXX \
13790
hardcode_libdir_flag_spec_ld_CXX \
13791
hardcode_libdir_separator_CXX \
13792
hardcode_automatic_CXX \
13794
module_expsym_cmds_CXX \
13795
lt_cv_prog_compiler_c_o_CXX \
13796
fix_srcfile_path_CXX \
13797
exclude_expsyms_CXX \
13798
include_expsyms_CXX; do
13801
old_archive_cmds_CXX | \
13802
old_archive_from_new_cmds_CXX | \
13803
archive_cmds_CXX | \
13804
archive_expsym_cmds_CXX | \
13805
module_cmds_CXX | \
13806
module_expsym_cmds_CXX | \
13807
old_archive_from_expsyms_cmds_CXX | \
13808
export_symbols_cmds_CXX | \
13809
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13810
postinstall_cmds | postuninstall_cmds | \
13811
old_postinstall_cmds | old_postuninstall_cmds | \
13812
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13813
# Double-quote double-evaled strings.
13814
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13817
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13823
*'\$0 --fallback-echo"')
13824
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13830
cat <<__EOF__ >> "$cfgfile"
13831
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13833
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13835
# Shell to use when invoking shell scripts.
13838
# Whether or not to build shared libraries.
13839
build_libtool_libs=$enable_shared
13841
# Whether or not to build static libraries.
13842
build_old_libs=$enable_static
13844
# Whether or not to add -lc for building shared libraries.
13845
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13847
# Whether or not to disallow shared libs when runtime libs are static
13848
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13850
# Whether or not to optimize for fast installation.
13851
fast_install=$enable_fast_install
13854
host_alias=$host_alias
13858
# The build system.
13859
build_alias=$build_alias
13863
# An echo program that does not interpret backslashes.
13868
AR_FLAGS=$lt_AR_FLAGS
13873
# LTCC compiler flags.
13874
LTCFLAGS=$lt_LTCFLAGS
13876
# A language-specific compiler.
13877
CC=$lt_compiler_CXX
13879
# Is the compiler the GNU C compiler?
13885
# The linker used to build libraries.
13888
# Whether we need hard or soft links.
13891
# A BSD-compatible nm program.
13894
# A symbol stripping program
13897
# Used to examine libraries when file_magic_cmd begins "file"
13898
MAGIC_CMD=$MAGIC_CMD
13900
# Used on cygwin: DLL creation program.
13903
# Used on cygwin: object dumper.
13906
# Used on cygwin: assembler.
13909
# The name of the directory that contains temporary libtool files.
13912
# How to create reloadable object files.
13913
reload_flag=$lt_reload_flag
13914
reload_cmds=$lt_reload_cmds
13916
# How to pass a linker flag through the compiler.
13917
wl=$lt_lt_prog_compiler_wl_CXX
13919
# Object file suffix (normally "o").
13920
objext="$ac_objext"
13922
# Old archive suffix (normally "a").
13925
# Shared library suffix (normally ".so").
13926
shrext_cmds='$shrext_cmds'
13928
# Executable file suffix (normally "").
13931
# Additional compiler flags for building library objects.
13932
pic_flag=$lt_lt_prog_compiler_pic_CXX
13935
# What is the maximum length of a command?
13936
max_cmd_len=$lt_cv_sys_max_cmd_len
13938
# Does compiler simultaneously support -c and -o options?
13939
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13941
# Must we lock files when doing compilation?
13942
need_locks=$lt_need_locks
13944
# Do we need the lib prefix for modules?
13945
need_lib_prefix=$need_lib_prefix
13947
# Do we need a version for libraries?
13948
need_version=$need_version
13950
# Whether dlopen is supported.
13951
dlopen_support=$enable_dlopen
13953
# Whether dlopen of programs is supported.
13954
dlopen_self=$enable_dlopen_self
13956
# Whether dlopen of statically linked programs is supported.
13957
dlopen_self_static=$enable_dlopen_self_static
13959
# Compiler flag to prevent dynamic linking.
13960
link_static_flag=$lt_lt_prog_compiler_static_CXX
13962
# Compiler flag to turn off builtin functions.
13963
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13965
# Compiler flag to allow reflexive dlopens.
13966
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13968
# Compiler flag to generate shared objects directly from archives.
13969
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13971
# Compiler flag to generate thread-safe objects.
13972
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13974
# Library versioning type.
13975
version_type=$version_type
13977
# Format of library name prefix.
13978
libname_spec=$lt_libname_spec
13980
# List of archive names. First name is the real one, the rest are links.
13981
# The last name is the one that the linker finds with -lNAME.
13982
library_names_spec=$lt_library_names_spec
13984
# The coded name of the library, if different from the real name.
13985
soname_spec=$lt_soname_spec
13987
# Commands used to build and install an old-style archive.
13989
old_archive_cmds=$lt_old_archive_cmds_CXX
13990
old_postinstall_cmds=$lt_old_postinstall_cmds
13991
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13993
# Create an old-style archive from a shared archive.
13994
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13996
# Create a temporary old-style archive to link instead of a shared archive.
13997
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13999
# Commands used to build and install a shared archive.
14000
archive_cmds=$lt_archive_cmds_CXX
14001
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14002
postinstall_cmds=$lt_postinstall_cmds
14003
postuninstall_cmds=$lt_postuninstall_cmds
14005
# Commands used to build a loadable module (assumed same as above if empty)
14006
module_cmds=$lt_module_cmds_CXX
14007
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14009
# Commands to strip libraries.
14010
old_striplib=$lt_old_striplib
14011
striplib=$lt_striplib
14013
# Dependencies to place before the objects being linked to create a
14015
predep_objects=$lt_predep_objects_CXX
14017
# Dependencies to place after the objects being linked to create a
14019
postdep_objects=$lt_postdep_objects_CXX
14021
# Dependencies to place before the objects being linked to create a
14023
predeps=$lt_predeps_CXX
14025
# Dependencies to place after the objects being linked to create a
14027
postdeps=$lt_postdeps_CXX
14029
# The directories searched by this compiler when creating a shared
14031
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14033
# The library search path used internally by the compiler when linking
14034
# a shared library.
14035
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14037
# Method to check whether dependent libraries are shared objects.
14038
deplibs_check_method=$lt_deplibs_check_method
14040
# Command to use when deplibs_check_method == file_magic.
14041
file_magic_cmd=$lt_file_magic_cmd
14043
# Flag that allows shared libraries with undefined symbols to be built.
14044
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14046
# Flag that forces no undefined symbols.
14047
no_undefined_flag=$lt_no_undefined_flag_CXX
14049
# Commands used to finish a libtool library installation in a directory.
14050
finish_cmds=$lt_finish_cmds
14052
# Same as above, but a single script fragment to be evaled but not shown.
14053
finish_eval=$lt_finish_eval
14055
# Take the output of nm and produce a listing of raw symbols and C names.
14056
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14058
# Transform the output of nm in a proper C declaration
14059
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14061
# Transform the output of nm in a C name address pair
14062
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14064
# This is the shared library runtime path variable.
14065
runpath_var=$runpath_var
14067
# This is the shared library path variable.
14068
shlibpath_var=$shlibpath_var
14070
# Is shlibpath searched before the hard-coded library search path?
14071
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14073
# How to hardcode a shared library path into an executable.
14074
hardcode_action=$hardcode_action_CXX
14076
# Whether we should hardcode library paths into libraries.
14077
hardcode_into_libs=$hardcode_into_libs
14079
# Flag to hardcode \$libdir into a binary during linking.
14080
# This must work even if \$libdir does not exist.
14081
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14083
# If ld is used when linking, flag to hardcode \$libdir into
14084
# a binary during linking. This must work even if \$libdir does
14086
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14088
# Whether we need a single -rpath flag with a separated argument.
14089
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14091
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14092
# resulting binary.
14093
hardcode_direct=$hardcode_direct_CXX
14095
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14096
# resulting binary.
14097
hardcode_minus_L=$hardcode_minus_L_CXX
14099
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14100
# the resulting binary.
14101
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14103
# Set to yes if building a shared library automatically hardcodes DIR into the library
14104
# and all subsequent libraries and executables linked against it.
14105
hardcode_automatic=$hardcode_automatic_CXX
14107
# Variables whose values should be saved in libtool wrapper scripts and
14108
# restored at relink time.
14109
variables_saved_for_relink="$variables_saved_for_relink"
14111
# Whether libtool must link a program against all its dependency libraries.
14112
link_all_deplibs=$link_all_deplibs_CXX
14114
# Compile-time system search path for libraries
14115
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14117
# Run-time system search path for libraries
14118
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14120
# Fix the shell variable \$srcfile for the compiler.
14121
fix_srcfile_path=$lt_fix_srcfile_path
14123
# Set to yes if exported symbols are required.
14124
always_export_symbols=$always_export_symbols_CXX
14126
# The commands to list exported symbols.
14127
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14129
# The commands to extract the exported symbol list from a shared archive.
14130
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14132
# Symbols that should not be listed in the preloaded symbols.
14133
exclude_expsyms=$lt_exclude_expsyms_CXX
14135
# Symbols that must always be exported.
14136
include_expsyms=$lt_include_expsyms_CXX
14138
# ### END LIBTOOL TAG CONFIG: $tagname
14144
# If there is no Makefile yet, we rely on a make rule to execute
14145
# `config.status --recheck' to rerun these tests and create the
14146
# libtool script then.
14147
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14148
if test -f "$ltmain_in"; then
14149
test -f Makefile && make "$ltmain"
14155
ac_cpp='$CPP $CPPFLAGS'
14156
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14157
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14158
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14164
with_gnu_ldcxx=$with_gnu_ld
14165
with_gnu_ld=$lt_save_with_gnu_ld
14166
lt_cv_path_LDCXX=$lt_cv_path_LD
14167
lt_cv_path_LD=$lt_save_path_LD
14168
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14169
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14177
if test -n "$F77" && test "X$F77" != "Xno"; then
14180
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14181
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14182
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14185
archive_cmds_need_lc_F77=no
14186
allow_undefined_flag_F77=
14187
always_export_symbols_F77=no
14188
archive_expsym_cmds_F77=
14189
export_dynamic_flag_spec_F77=
14190
hardcode_direct_F77=no
14191
hardcode_libdir_flag_spec_F77=
14192
hardcode_libdir_flag_spec_ld_F77=
14193
hardcode_libdir_separator_F77=
14194
hardcode_minus_L_F77=no
14195
hardcode_automatic_F77=no
14197
module_expsym_cmds_F77=
14198
link_all_deplibs_F77=unknown
14199
old_archive_cmds_F77=$old_archive_cmds
14200
no_undefined_flag_F77=
14201
whole_archive_flag_spec_F77=
14202
enable_shared_with_static_runtimes_F77=no
14204
# Source file extension for f77 test sources.
14207
# Object file extension for compiled f77 test sources.
14211
# Code to be used in simple compile tests
14212
lt_simple_compile_test_code="\
14218
# Code to be used in simple link tests
14219
lt_simple_link_test_code="\
14224
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14226
# If no C compiler was specified, use CC.
14229
# If no C compiler flags were specified, use CFLAGS.
14230
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14232
# Allow CC to be a program name with arguments.
14236
# save warnings/boilerplate of simple test code
14237
ac_outfile=conftest.$ac_objext
14238
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14239
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14240
_lt_compiler_boilerplate=`cat conftest.err`
14243
ac_outfile=conftest.$ac_objext
14244
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14245
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14246
_lt_linker_boilerplate=`cat conftest.err`
14250
# Allow CC to be a program name with arguments.
14255
for cc_temp in $compiler""; do
14257
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14258
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14263
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14266
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14267
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14268
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14269
echo "${ECHO_T}$can_build_shared" >&6; }
14271
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14272
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14273
test "$can_build_shared" = "no" && enable_shared=no
14275
# On AIX, shared libraries and static libraries use the same namespace, and
14276
# are all built from PIC.
14279
test "$enable_shared" = yes && enable_static=no
14280
if test -n "$RANLIB"; then
14281
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14282
postinstall_cmds='$RANLIB $lib'
14286
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14287
test "$enable_shared" = yes && enable_static=no
14291
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14292
echo "${ECHO_T}$enable_shared" >&6; }
14294
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14295
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14296
# Make sure either enable_shared or enable_static is yes.
14297
test "$enable_shared" = yes || enable_static=yes
14298
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14299
echo "${ECHO_T}$enable_static" >&6; }
14304
lt_prog_compiler_wl_F77=
14305
lt_prog_compiler_pic_F77=
14306
lt_prog_compiler_static_F77=
14308
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14309
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14311
if test "$GCC" = yes; then
14312
lt_prog_compiler_wl_F77='-Wl,'
14313
lt_prog_compiler_static_F77='-static'
14317
# All AIX code is PIC.
14318
if test "$host_cpu" = ia64; then
14319
# AIX 5 now supports IA64 processor
14320
lt_prog_compiler_static_F77='-Bstatic'
14325
# FIXME: we need at least 68020 code to build shared libraries, but
14326
# adding the `-m68020' flag to GCC prevents building anything better,
14328
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14331
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14332
# PIC is the default for these OSes.
14335
mingw* | cygwin* | pw32* | os2*)
14336
# This hack is so that the source file can tell whether it is being
14337
# built for inclusion in a dll (and should export symbols for example).
14338
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14339
# (--disable-auto-import) libraries
14340
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14343
darwin* | rhapsody*)
14344
# PIC is the default on this platform
14345
# Common symbols not allowed in MH_DYLIB files
14346
lt_prog_compiler_pic_F77='-fno-common'
14350
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14351
# Instead, we relocate shared libraries at runtime.
14355
# Just because we use GCC doesn't mean we suddenly get shared libraries
14356
# on systems that don't support them.
14357
lt_prog_compiler_can_build_shared_F77=no
14362
if test -d /usr/nec; then
14363
lt_prog_compiler_pic_F77=-Kconform_pic
14368
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14369
# not for PA HP-UX.
14375
lt_prog_compiler_pic_F77='-fPIC'
14381
lt_prog_compiler_pic_F77='-fPIC'
14385
# PORTME Check for flag to pass linker flags through the system compiler.
14388
lt_prog_compiler_wl_F77='-Wl,'
14389
if test "$host_cpu" = ia64; then
14390
# AIX 5 now supports IA64 processor
14391
lt_prog_compiler_static_F77='-Bstatic'
14393
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14397
# PIC is the default on this platform
14398
# Common symbols not allowed in MH_DYLIB files
14399
case $cc_basename in
14401
lt_prog_compiler_pic_F77='-qnocommon'
14402
lt_prog_compiler_wl_F77='-Wl,'
14407
mingw* | cygwin* | pw32* | os2*)
14408
# This hack is so that the source file can tell whether it is being
14409
# built for inclusion in a dll (and should export symbols for example).
14410
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14413
hpux9* | hpux10* | hpux11*)
14414
lt_prog_compiler_wl_F77='-Wl,'
14415
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14416
# not for PA HP-UX.
14422
lt_prog_compiler_pic_F77='+Z'
14425
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14426
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14429
irix5* | irix6* | nonstopux*)
14430
lt_prog_compiler_wl_F77='-Wl,'
14431
# PIC (with -KPIC) is the default.
14432
lt_prog_compiler_static_F77='-non_shared'
14436
lt_prog_compiler_pic_F77='-KPIC'
14437
lt_prog_compiler_static_F77='-Bstatic'
14440
linux* | k*bsd*-gnu)
14441
case $cc_basename in
14443
lt_prog_compiler_wl_F77='-Wl,'
14444
lt_prog_compiler_pic_F77='-KPIC'
14445
lt_prog_compiler_static_F77='-static'
14447
pgcc* | pgf77* | pgf90* | pgf95*)
14448
# Portland Group compilers (*not* the Pentium gcc compiler,
14449
# which looks to be a dead project)
14450
lt_prog_compiler_wl_F77='-Wl,'
14451
lt_prog_compiler_pic_F77='-fpic'
14452
lt_prog_compiler_static_F77='-Bstatic'
14455
lt_prog_compiler_wl_F77='-Wl,'
14456
# All Alpha code is PIC.
14457
lt_prog_compiler_static_F77='-non_shared'
14460
case `$CC -V 2>&1 | sed 5q` in
14463
lt_prog_compiler_pic_F77='-KPIC'
14464
lt_prog_compiler_static_F77='-Bstatic'
14465
lt_prog_compiler_wl_F77='-Wl,'
14468
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14469
lt_prog_compiler_pic_F77='-KPIC'
14470
lt_prog_compiler_static_F77='-Bstatic'
14471
lt_prog_compiler_wl_F77=''
14478
osf3* | osf4* | osf5*)
14479
lt_prog_compiler_wl_F77='-Wl,'
14480
# All OSF/1 code is PIC.
14481
lt_prog_compiler_static_F77='-non_shared'
14485
lt_prog_compiler_static_F77='-non_shared'
14489
lt_prog_compiler_pic_F77='-KPIC'
14490
lt_prog_compiler_static_F77='-Bstatic'
14491
case $cc_basename in
14492
f77* | f90* | f95*)
14493
lt_prog_compiler_wl_F77='-Qoption ld ';;
14495
lt_prog_compiler_wl_F77='-Wl,';;
14500
lt_prog_compiler_wl_F77='-Qoption ld '
14501
lt_prog_compiler_pic_F77='-PIC'
14502
lt_prog_compiler_static_F77='-Bstatic'
14505
sysv4 | sysv4.2uw2* | sysv4.3*)
14506
lt_prog_compiler_wl_F77='-Wl,'
14507
lt_prog_compiler_pic_F77='-KPIC'
14508
lt_prog_compiler_static_F77='-Bstatic'
14512
if test -d /usr/nec ;then
14513
lt_prog_compiler_pic_F77='-Kconform_pic'
14514
lt_prog_compiler_static_F77='-Bstatic'
14518
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14519
lt_prog_compiler_wl_F77='-Wl,'
14520
lt_prog_compiler_pic_F77='-KPIC'
14521
lt_prog_compiler_static_F77='-Bstatic'
14525
lt_prog_compiler_wl_F77='-Wl,'
14526
lt_prog_compiler_can_build_shared_F77=no
14530
lt_prog_compiler_pic_F77='-pic'
14531
lt_prog_compiler_static_F77='-Bstatic'
14535
lt_prog_compiler_can_build_shared_F77=no
14540
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14541
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14544
# Check to make sure the PIC flag actually works.
14546
if test -n "$lt_prog_compiler_pic_F77"; then
14548
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14549
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14550
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14551
echo $ECHO_N "(cached) $ECHO_C" >&6
14553
lt_cv_prog_compiler_pic_works_F77=no
14554
ac_outfile=conftest.$ac_objext
14555
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14556
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14557
# Insert the option either (1) after the last *FLAGS variable, or
14558
# (2) before a word containing "conftest.", or (3) at the end.
14559
# Note that $ac_compile itself does not contain backslashes and begins
14560
# with a dollar sign (not a hyphen), so the echo should work correctly.
14561
# The option is referenced via a variable to avoid confusing sed.
14562
lt_compile=`echo "$ac_compile" | $SED \
14563
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14564
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14565
-e 's:$: $lt_compiler_flag:'`
14566
(eval echo "\"\$as_me:14566: $lt_compile\"" >&5)
14567
(eval "$lt_compile" 2>conftest.err)
14569
cat conftest.err >&5
14570
echo "$as_me:14570: \$? = $ac_status" >&5
14571
if (exit $ac_status) && test -s "$ac_outfile"; then
14572
# The compiler can only warn and ignore the option if not recognized
14573
# So say no if there are warnings other than the usual output.
14574
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14575
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14576
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14577
lt_cv_prog_compiler_pic_works_F77=yes
14583
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14584
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14586
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14587
case $lt_prog_compiler_pic_F77 in
14589
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14592
lt_prog_compiler_pic_F77=
14593
lt_prog_compiler_can_build_shared_F77=no
14598
# For platforms which do not support PIC, -DPIC is meaningless:
14600
lt_prog_compiler_pic_F77=
14603
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14608
# Check to make sure the static flag actually works.
14610
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14611
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14612
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14613
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14614
echo $ECHO_N "(cached) $ECHO_C" >&6
14616
lt_cv_prog_compiler_static_works_F77=no
14617
save_LDFLAGS="$LDFLAGS"
14618
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14619
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14620
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14621
# The linker can only warn and ignore the option if not recognized
14622
# So say no if there are warnings
14623
if test -s conftest.err; then
14624
# Append any errors to the config.log.
14625
cat conftest.err 1>&5
14626
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14627
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14628
if diff conftest.exp conftest.er2 >/dev/null; then
14629
lt_cv_prog_compiler_static_works_F77=yes
14632
lt_cv_prog_compiler_static_works_F77=yes
14636
LDFLAGS="$save_LDFLAGS"
14639
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14640
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14642
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14645
lt_prog_compiler_static_F77=
14649
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14650
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14651
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14652
echo $ECHO_N "(cached) $ECHO_C" >&6
14654
lt_cv_prog_compiler_c_o_F77=no
14655
$rm -r conftest 2>/dev/null
14659
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14661
lt_compiler_flag="-o out/conftest2.$ac_objext"
14662
# Insert the option either (1) after the last *FLAGS variable, or
14663
# (2) before a word containing "conftest.", or (3) at the end.
14664
# Note that $ac_compile itself does not contain backslashes and begins
14665
# with a dollar sign (not a hyphen), so the echo should work correctly.
14666
lt_compile=`echo "$ac_compile" | $SED \
14667
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14668
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14669
-e 's:$: $lt_compiler_flag:'`
14670
(eval echo "\"\$as_me:14670: $lt_compile\"" >&5)
14671
(eval "$lt_compile" 2>out/conftest.err)
14673
cat out/conftest.err >&5
14674
echo "$as_me:14674: \$? = $ac_status" >&5
14675
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14677
# The compiler can only warn and ignore the option if not recognized
14678
# So say no if there are warnings
14679
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14680
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14681
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14682
lt_cv_prog_compiler_c_o_F77=yes
14687
# SGI C++ compiler will create directory out/ii_files/ for
14688
# template instantiation
14689
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14690
$rm out/* && rmdir out
14696
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14697
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14700
hard_links="nottested"
14701
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14702
# do not overwrite the value of need_locks provided by the user
14703
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14704
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14707
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14709
ln conftest.a conftest.b 2>&5 || hard_links=no
14710
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14711
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14712
echo "${ECHO_T}$hard_links" >&6; }
14713
if test "$hard_links" = no; then
14714
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14715
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14722
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14723
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14726
allow_undefined_flag_F77=
14727
enable_shared_with_static_runtimes_F77=no
14729
archive_expsym_cmds_F77=
14730
old_archive_From_new_cmds_F77=
14731
old_archive_from_expsyms_cmds_F77=
14732
export_dynamic_flag_spec_F77=
14733
whole_archive_flag_spec_F77=
14734
thread_safe_flag_spec_F77=
14735
hardcode_libdir_flag_spec_F77=
14736
hardcode_libdir_flag_spec_ld_F77=
14737
hardcode_libdir_separator_F77=
14738
hardcode_direct_F77=no
14739
hardcode_minus_L_F77=no
14740
hardcode_shlibpath_var_F77=unsupported
14741
link_all_deplibs_F77=unknown
14742
hardcode_automatic_F77=no
14744
module_expsym_cmds_F77=
14745
always_export_symbols_F77=no
14746
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14747
# include_expsyms should be a list of space-separated symbols to be *always*
14748
# included in the symbol list
14749
include_expsyms_F77=
14750
# exclude_expsyms can be an extended regexp of symbols to exclude
14751
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14752
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14753
# as well as any symbol that contains `d'.
14754
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14755
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14756
# platforms (ab)use it in PIC code, but their linkers get confused if
14757
# the symbol is explicitly referenced. Since portable code cannot
14758
# rely on this symbol name, it's probably fine to never include it in
14759
# preloaded symbol tables.
14760
# Exclude shared library initialization/finalization symbols.
14761
extract_expsyms_cmds=
14762
# Just being paranoid about ensuring that cc_basename is set.
14763
for cc_temp in $compiler""; do
14765
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14766
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14771
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14774
cygwin* | mingw* | pw32*)
14775
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14776
# When not using gcc, we currently assume that we are using
14777
# Microsoft Visual C++.
14778
if test "$GCC" != yes; then
14783
# we just hope/assume this is gcc and not c89 (= MSVC++)
14792
if test "$with_gnu_ld" = yes; then
14793
# If archive_cmds runs LD, not CC, wlarc should be empty
14796
# Set some defaults for GNU ld with shared library support. These
14797
# are reset later if shared libraries are not supported. Putting them
14798
# here allows them to be overridden if necessary.
14799
runpath_var=LD_RUN_PATH
14800
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14801
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14802
# ancient GNU ld didn't support --whole-archive et. al.
14803
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14804
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14806
whole_archive_flag_spec_F77=
14808
supports_anon_versioning=no
14809
case `$LD -v 2>/dev/null` in
14810
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14811
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14812
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14813
*\ 2.11.*) ;; # other 2.11 versions
14814
*) supports_anon_versioning=yes ;;
14817
# See if GNU ld supports shared libraries.
14820
# On AIX/PPC, the GNU linker is very broken
14821
if test "$host_cpu" != ia64; then
14825
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14826
*** to be unable to reliably create shared libraries on AIX.
14827
*** Therefore, libtool is disabling shared libraries support. If you
14828
*** really care for shared libraries, you may want to modify your PATH
14829
*** so that a non-GNU linker is found, and then restart.
14836
archive_cmds_F77='$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)'
14837
hardcode_libdir_flag_spec_F77='-L$libdir'
14838
hardcode_minus_L_F77=yes
14840
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14841
# that the semantics of dynamic libraries on AmigaOS, at least up
14842
# to version 4, is to share data among multiple programs linked
14843
# with the same dynamic library. Since this doesn't match the
14844
# behavior of shared libraries on other platforms, we can't use
14850
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14851
allow_undefined_flag_F77=unsupported
14852
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14853
# support --undefined. This deserves some investigation. FIXME
14854
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14860
cygwin* | mingw* | pw32*)
14861
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14862
# as there is no search path for DLLs.
14863
hardcode_libdir_flag_spec_F77='-L$libdir'
14864
allow_undefined_flag_F77=unsupported
14865
always_export_symbols_F77=no
14866
enable_shared_with_static_runtimes_F77=yes
14867
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14869
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14870
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14871
# If the export-symbols file already is a .def file (1st line
14872
# is EXPORTS), use it as is; otherwise, prepend...
14873
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14874
cp $export_symbols $output_objdir/$soname.def;
14876
echo EXPORTS > $output_objdir/$soname.def;
14877
cat $export_symbols >> $output_objdir/$soname.def;
14879
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14886
hardcode_direct_F77=no
14887
hardcode_shlibpath_var_F77=no
14888
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14889
export_dynamic_flag_spec_F77='${wl}-E'
14890
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14891
# Instead, shared libraries are loaded at an image base (0x10000000 by
14892
# default) and relocated if they conflict, which is a slow very memory
14893
# consuming and fragmenting process. To avoid this, we pick a random,
14894
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14895
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14896
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14897
archive_expsym_cmds_F77='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'
14900
gnu* | linux* | k*bsd*-gnu)
14901
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14903
case $cc_basename,$host_cpu in
14904
pgcc*) # Portland Group C compiler
14905
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14906
tmp_addflag=' $pic_flag'
14908
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14909
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14910
tmp_addflag=' $pic_flag -Mnomain' ;;
14911
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14912
tmp_addflag=' -i_dynamic' ;;
14913
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14914
tmp_addflag=' -i_dynamic -nofor_main' ;;
14915
ifc* | ifort*) # Intel Fortran compiler
14916
tmp_addflag=' -nofor_main' ;;
14918
case `$CC -V 2>&1 | sed 5q` in
14919
*Sun\ C*) # Sun C 5.9
14920
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14921
tmp_sharedflag='-G' ;;
14922
*Sun\ F*) # Sun Fortran 8.3
14923
tmp_sharedflag='-G' ;;
14925
tmp_sharedflag='-shared' ;;
14927
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14929
if test $supports_anon_versioning = yes; then
14930
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14931
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14932
$echo "local: *; };" >> $output_objdir/$libname.ver~
14933
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14941
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14942
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14945
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14946
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14951
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14955
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14956
*** create shared libraries on Solaris systems. Therefore, libtool
14957
*** is disabling shared libraries support. We urge you to upgrade GNU
14958
*** binutils to release 2.9.1 or newer. Another option is to modify
14959
*** your PATH or compiler configuration so that the native linker is
14960
*** used, and then restart.
14963
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14964
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14965
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14971
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14972
case `$LD -v 2>&1` in
14973
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14977
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14978
*** reliably create shared libraries on SCO systems. Therefore, libtool
14979
*** is disabling shared libraries support. We urge you to upgrade GNU
14980
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14981
*** your PATH or compiler configuration so that the native linker is
14982
*** used, and then restart.
14987
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14988
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14989
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14990
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14999
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15001
hardcode_direct_F77=yes
15002
hardcode_shlibpath_var_F77=no
15006
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15007
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15008
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15015
if test "$ld_shlibs_F77" = no; then
15017
hardcode_libdir_flag_spec_F77=
15018
export_dynamic_flag_spec_F77=
15019
whole_archive_flag_spec_F77=
15022
# PORTME fill in a description of your system's linker (not GNU ld)
15025
allow_undefined_flag_F77=unsupported
15026
always_export_symbols_F77=yes
15027
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15028
# Note: this linker hardcodes the directories in LIBPATH if there
15029
# are no directories specified by -L.
15030
hardcode_minus_L_F77=yes
15031
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15032
# Neither direct hardcoding nor static linking is supported with a
15034
hardcode_direct_F77=unsupported
15039
if test "$host_cpu" = ia64; then
15040
# On IA64, the linker does run time linking by default, so we don't
15041
# have to do anything special.
15042
aix_use_runtimelinking=no
15043
exp_sym_flag='-Bexport'
15046
# If we're using GNU nm, then we don't want the "-C" option.
15047
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15048
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15049
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15051
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15053
aix_use_runtimelinking=no
15055
# Test if we are trying to use run time linking or normal
15056
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15057
# need to do runtime linking.
15058
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15059
for ld_flag in $LDFLAGS; do
15060
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15061
aix_use_runtimelinking=yes
15068
exp_sym_flag='-bexport'
15069
no_entry_flag='-bnoentry'
15072
# When large executables or shared objects are built, AIX ld can
15073
# have problems creating the table of contents. If linking a library
15074
# or program results in "error TOC overflow" add -mminimal-toc to
15075
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15076
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15078
archive_cmds_F77=''
15079
hardcode_direct_F77=yes
15080
hardcode_libdir_separator_F77=':'
15081
link_all_deplibs_F77=yes
15083
if test "$GCC" = yes; then
15084
case $host_os in aix4.[012]|aix4.[012].*)
15085
# We only want to do this on AIX 4.2 and lower, the check
15086
# below for broken collect2 doesn't work under 4.3+
15087
collect2name=`${CC} -print-prog-name=collect2`
15088
if test -f "$collect2name" && \
15089
strings "$collect2name" | grep resolve_lib_name >/dev/null
15091
# We have reworked collect2
15094
# We have old collect2
15095
hardcode_direct_F77=unsupported
15096
# It fails to find uninstalled libraries when the uninstalled
15097
# path is not listed in the libpath. Setting hardcode_minus_L
15098
# to unsupported forces relinking
15099
hardcode_minus_L_F77=yes
15100
hardcode_libdir_flag_spec_F77='-L$libdir'
15101
hardcode_libdir_separator_F77=
15105
shared_flag='-shared'
15106
if test "$aix_use_runtimelinking" = yes; then
15107
shared_flag="$shared_flag "'${wl}-G'
15111
if test "$host_cpu" = ia64; then
15112
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15113
# chokes on -Wl,-G. The following line is correct:
15116
if test "$aix_use_runtimelinking" = yes; then
15117
shared_flag='${wl}-G'
15119
shared_flag='${wl}-bM:SRE'
15124
# It seems that -bexpall does not export symbols beginning with
15125
# underscore (_), so it is better to generate a list of symbols to export.
15126
always_export_symbols_F77=yes
15127
if test "$aix_use_runtimelinking" = yes; then
15128
# Warning - without using the other runtime loading flags (-brtl),
15129
# -berok will link without error, but may produce a broken library.
15130
allow_undefined_flag_F77='-berok'
15131
# Determine the default libpath from the value encoded in an empty executable.
15132
cat >conftest.$ac_ext <<_ACEOF
15137
rm -f conftest.$ac_objext conftest$ac_exeext
15138
if { (ac_try="$ac_link"
15139
case "(($ac_try" in
15140
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141
*) ac_try_echo=$ac_try;;
15143
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144
(eval "$ac_link") 2>conftest.er1
15146
grep -v '^ *+' conftest.er1 >conftest.err
15148
cat conftest.err >&5
15149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150
(exit $ac_status); } && {
15151
test -z "$ac_f77_werror_flag" ||
15152
test ! -s conftest.err
15153
} && test -s conftest$ac_exeext &&
15154
$as_test_x conftest$ac_exeext; then
15156
lt_aix_libpath_sed='
15157
/Import File Strings/,/^$/ {
15163
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15164
# Check for a 64-bit object if we didn't find anything.
15165
if test -z "$aix_libpath"; then
15166
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15169
echo "$as_me: failed program was:" >&5
15170
sed 's/^/| /' conftest.$ac_ext >&5
15175
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15176
conftest$ac_exeext conftest.$ac_ext
15177
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15179
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15180
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15182
if test "$host_cpu" = ia64; then
15183
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15184
allow_undefined_flag_F77="-z nodefs"
15185
archive_expsym_cmds_F77="\$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"
15187
# Determine the default libpath from the value encoded in an empty executable.
15188
cat >conftest.$ac_ext <<_ACEOF
15193
rm -f conftest.$ac_objext conftest$ac_exeext
15194
if { (ac_try="$ac_link"
15195
case "(($ac_try" in
15196
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197
*) ac_try_echo=$ac_try;;
15199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200
(eval "$ac_link") 2>conftest.er1
15202
grep -v '^ *+' conftest.er1 >conftest.err
15204
cat conftest.err >&5
15205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206
(exit $ac_status); } && {
15207
test -z "$ac_f77_werror_flag" ||
15208
test ! -s conftest.err
15209
} && test -s conftest$ac_exeext &&
15210
$as_test_x conftest$ac_exeext; then
15212
lt_aix_libpath_sed='
15213
/Import File Strings/,/^$/ {
15219
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15220
# Check for a 64-bit object if we didn't find anything.
15221
if test -z "$aix_libpath"; then
15222
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15225
echo "$as_me: failed program was:" >&5
15226
sed 's/^/| /' conftest.$ac_ext >&5
15231
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15232
conftest$ac_exeext conftest.$ac_ext
15233
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15235
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15236
# Warning - without using the other run time loading flags,
15237
# -berok will link without error, but may produce a broken library.
15238
no_undefined_flag_F77=' ${wl}-bernotok'
15239
allow_undefined_flag_F77=' ${wl}-berok'
15240
# Exported symbols can be pulled into shared objects from archives
15241
whole_archive_flag_spec_F77='$convenience'
15242
archive_cmds_need_lc_F77=yes
15243
# This is similar to how AIX traditionally builds its shared libraries.
15244
archive_expsym_cmds_F77="\$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'
15250
archive_cmds_F77='$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)'
15251
hardcode_libdir_flag_spec_F77='-L$libdir'
15252
hardcode_minus_L_F77=yes
15253
# see comment about different semantics on the GNU ld section
15258
export_dynamic_flag_spec_F77=-rdynamic
15261
cygwin* | mingw* | pw32*)
15262
# When not using gcc, we currently assume that we are using
15263
# Microsoft Visual C++.
15264
# hardcode_libdir_flag_spec is actually meaningless, as there is
15265
# no search path for DLLs.
15266
hardcode_libdir_flag_spec_F77=' '
15267
allow_undefined_flag_F77=unsupported
15268
# Tell ltmain to make .lib files, not .a files.
15270
# Tell ltmain to make .dll files, not .so files.
15272
# FIXME: Setting linknames here is a bad hack.
15273
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15274
# The linker will automatically build a .lib file if we build a DLL.
15275
old_archive_From_new_cmds_F77='true'
15276
# FIXME: Should let the user specify the lib program.
15277
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15278
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15279
enable_shared_with_static_runtimes_F77=yes
15282
darwin* | rhapsody*)
15284
rhapsody* | darwin1.[012])
15285
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15288
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15289
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15291
case ${MACOSX_DEPLOYMENT_TARGET} in
15293
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15296
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15302
archive_cmds_need_lc_F77=no
15303
hardcode_direct_F77=no
15304
hardcode_automatic_F77=yes
15305
hardcode_shlibpath_var_F77=unsupported
15306
whole_archive_flag_spec_F77=''
15307
link_all_deplibs_F77=yes
15308
if test "$GCC" = yes ; then
15309
output_verbose_link_cmd='echo'
15310
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15311
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15312
archive_expsym_cmds_F77="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}"
15313
module_expsym_cmds_F77="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}"
15315
case $cc_basename in
15317
output_verbose_link_cmd='echo'
15318
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15319
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15320
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15321
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15322
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15332
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15333
hardcode_libdir_flag_spec_F77='-L$libdir'
15334
hardcode_shlibpath_var_F77=no
15341
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15342
# support. Future versions do this automatically, but an explicit c++rt0.o
15343
# does not break anything, and helps significantly (at the cost of a little
15346
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15347
hardcode_libdir_flag_spec_F77='-R$libdir'
15348
hardcode_direct_F77=yes
15349
hardcode_shlibpath_var_F77=no
15352
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15354
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15355
hardcode_direct_F77=yes
15356
hardcode_minus_L_F77=yes
15357
hardcode_shlibpath_var_F77=no
15360
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15361
freebsd* | dragonfly*)
15362
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15363
hardcode_libdir_flag_spec_F77='-R$libdir'
15364
hardcode_direct_F77=yes
15365
hardcode_shlibpath_var_F77=no
15369
if test "$GCC" = yes; then
15370
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15372
archive_cmds_F77='$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'
15374
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15375
hardcode_libdir_separator_F77=:
15376
hardcode_direct_F77=yes
15378
# hardcode_minus_L: Not really in the search PATH,
15379
# but as the default location of the library.
15380
hardcode_minus_L_F77=yes
15381
export_dynamic_flag_spec_F77='${wl}-E'
15385
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15386
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15388
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15390
if test "$with_gnu_ld" = no; then
15391
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15392
hardcode_libdir_separator_F77=:
15394
hardcode_direct_F77=yes
15395
export_dynamic_flag_spec_F77='${wl}-E'
15397
# hardcode_minus_L: Not really in the search PATH,
15398
# but as the default location of the library.
15399
hardcode_minus_L_F77=yes
15404
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15407
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15410
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15413
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15419
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15422
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15425
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15429
if test "$with_gnu_ld" = no; then
15430
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15431
hardcode_libdir_separator_F77=:
15435
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15436
hardcode_direct_F77=no
15437
hardcode_shlibpath_var_F77=no
15440
hardcode_direct_F77=yes
15441
export_dynamic_flag_spec_F77='${wl}-E'
15443
# hardcode_minus_L: Not really in the search PATH,
15444
# but as the default location of the library.
15445
hardcode_minus_L_F77=yes
15451
irix5* | irix6* | nonstopux*)
15452
if test "$GCC" = yes; then
15453
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15455
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15456
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15458
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15459
hardcode_libdir_separator_F77=:
15460
link_all_deplibs_F77=yes
15464
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15465
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15467
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15469
hardcode_libdir_flag_spec_F77='-R$libdir'
15470
hardcode_direct_F77=yes
15471
hardcode_shlibpath_var_F77=no
15475
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15476
hardcode_direct_F77=yes
15477
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15478
hardcode_libdir_separator_F77=:
15479
hardcode_shlibpath_var_F77=no
15483
if test -f /usr/libexec/ld.so; then
15484
hardcode_direct_F77=yes
15485
hardcode_shlibpath_var_F77=no
15486
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15487
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15488
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15489
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15490
export_dynamic_flag_spec_F77='${wl}-E'
15493
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15494
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15495
hardcode_libdir_flag_spec_F77='-R$libdir'
15498
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15499
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15509
hardcode_libdir_flag_spec_F77='-L$libdir'
15510
hardcode_minus_L_F77=yes
15511
allow_undefined_flag_F77=unsupported
15512
archive_cmds_F77='$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'
15513
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15517
if test "$GCC" = yes; then
15518
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15519
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15521
allow_undefined_flag_F77=' -expect_unresolved \*'
15522
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15524
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15525
hardcode_libdir_separator_F77=:
15528
osf4* | osf5*) # as osf3* with the addition of -msym flag
15529
if test "$GCC" = yes; then
15530
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15531
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15532
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15534
allow_undefined_flag_F77=' -expect_unresolved \*'
15535
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15536
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15537
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15539
# Both c and cxx compiler support -rpath directly
15540
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15542
hardcode_libdir_separator_F77=:
15546
no_undefined_flag_F77=' -z text'
15547
if test "$GCC" = yes; then
15549
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15550
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15551
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15554
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15555
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15556
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15558
hardcode_libdir_flag_spec_F77='-R$libdir'
15559
hardcode_shlibpath_var_F77=no
15561
solaris2.[0-5] | solaris2.[0-5].*) ;;
15563
# The compiler driver will combine and reorder linker options,
15564
# but understands `-z linker_flag'. GCC discards it without `$wl',
15565
# but is careful enough not to reorder.
15566
# Supported since Solaris 2.6 (maybe 2.5.1?)
15567
if test "$GCC" = yes; then
15568
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15570
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15574
link_all_deplibs_F77=yes
15578
if test "x$host_vendor" = xsequent; then
15579
# Use $CC to link under sequent, because it throws in some extra .o
15580
# files that make .init and .fini sections work.
15581
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15583
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15585
hardcode_libdir_flag_spec_F77='-L$libdir'
15586
hardcode_direct_F77=yes
15587
hardcode_minus_L_F77=yes
15588
hardcode_shlibpath_var_F77=no
15592
case $host_vendor in
15594
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15595
hardcode_direct_F77=yes # is this really true???
15598
## LD is ld it makes a PLAMLIB
15599
## CC just makes a GrossModule.
15600
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15601
reload_cmds_F77='$CC -r -o $output$reload_objs'
15602
hardcode_direct_F77=no
15605
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15606
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15609
runpath_var='LD_RUN_PATH'
15610
hardcode_shlibpath_var_F77=no
15614
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15615
hardcode_shlibpath_var_F77=no
15616
export_dynamic_flag_spec_F77='-Bexport'
15620
if test -d /usr/nec; then
15621
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15622
hardcode_shlibpath_var_F77=no
15623
runpath_var=LD_RUN_PATH
15624
hardcode_runpath_var=yes
15629
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15630
no_undefined_flag_F77='${wl}-z,text'
15631
archive_cmds_need_lc_F77=no
15632
hardcode_shlibpath_var_F77=no
15633
runpath_var='LD_RUN_PATH'
15635
if test "$GCC" = yes; then
15636
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15637
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15639
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15640
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15644
sysv5* | sco3.2v5* | sco5v6*)
15645
# Note: We can NOT use -z defs as we might desire, because we do not
15646
# link with -lc, and that would cause any symbols used from libc to
15647
# always be unresolved, which means just about no library would
15648
# ever link correctly. If we're not using GNU ld we use -z text
15649
# though, which does catch some bad symbols but isn't as heavy-handed
15651
no_undefined_flag_F77='${wl}-z,text'
15652
allow_undefined_flag_F77='${wl}-z,nodefs'
15653
archive_cmds_need_lc_F77=no
15654
hardcode_shlibpath_var_F77=no
15655
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15656
hardcode_libdir_separator_F77=':'
15657
link_all_deplibs_F77=yes
15658
export_dynamic_flag_spec_F77='${wl}-Bexport'
15659
runpath_var='LD_RUN_PATH'
15661
if test "$GCC" = yes; then
15662
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15663
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15665
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15666
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15671
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15672
hardcode_libdir_flag_spec_F77='-L$libdir'
15673
hardcode_shlibpath_var_F77=no
15682
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15683
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15684
test "$ld_shlibs_F77" = no && can_build_shared=no
15687
# Do we need to explicitly link libc?
15689
case "x$archive_cmds_need_lc_F77" in
15691
# Assume -lc should be added
15692
archive_cmds_need_lc_F77=yes
15694
if test "$enable_shared" = yes && test "$GCC" = yes; then
15695
case $archive_cmds_F77 in
15697
# FIXME: we may have to deal with multi-command sequences.
15700
# Test whether the compiler implicitly links with -lc since on some
15701
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15702
# to ld, don't add -lc before -lgcc.
15703
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15704
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15706
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15708
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15709
(eval $ac_compile) 2>&5
15711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712
(exit $ac_status); } 2>conftest.err; then
15715
libobjs=conftest.$ac_objext
15717
wl=$lt_prog_compiler_wl_F77
15718
pic_flag=$lt_prog_compiler_pic_F77
15724
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15725
allow_undefined_flag_F77=
15726
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15727
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730
(exit $ac_status); }
15732
archive_cmds_need_lc_F77=no
15734
archive_cmds_need_lc_F77=yes
15736
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15738
cat conftest.err 1>&5
15741
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15742
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15749
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15750
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15751
library_names_spec=
15752
libname_spec='lib$name'
15756
postuninstall_cmds=
15760
shlibpath_overrides_runpath=unknown
15762
dynamic_linker="$host_os ld.so"
15763
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15765
need_lib_prefix=unknown
15766
hardcode_into_libs=no
15768
# when you set need_version to no, make sure it does not cause -set_version
15769
# flags to be left without arguments
15770
need_version=unknown
15775
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15776
shlibpath_var=LIBPATH
15778
# AIX 3 has no versioning support, so we append a major version to the name.
15779
soname_spec='${libname}${release}${shared_ext}$major'
15786
hardcode_into_libs=yes
15787
if test "$host_cpu" = ia64; then
15788
# AIX 5 supports IA64
15789
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15790
shlibpath_var=LD_LIBRARY_PATH
15792
# With GCC up to 2.95.x, collect2 would create an import file
15793
# for dependence libraries. The import file would start with
15794
# the line `#! .'. This would cause the generated library to
15795
# depend on `.', always an invalid library. This was fixed in
15796
# development snapshots of GCC prior to 3.0.
15798
aix4 | aix4.[01] | aix4.[01].*)
15799
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15801
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15804
can_build_shared=no
15808
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15809
# soname into executable. Probably we can add versioning support to
15810
# collect2, so additional links can be useful in future.
15811
if test "$aix_use_runtimelinking" = yes; then
15812
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15813
# instead of lib<name>.a to let people know that these are not
15814
# typical AIX shared libraries.
15815
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15817
# We preserve .a as extension for shared libraries through AIX4.2
15818
# and later when we are not doing run time linking.
15819
library_names_spec='${libname}${release}.a $libname.a'
15820
soname_spec='${libname}${release}${shared_ext}$major'
15822
shlibpath_var=LIBPATH
15827
library_names_spec='$libname.ixlibrary $libname.a'
15828
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15829
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
15833
library_names_spec='${libname}${shared_ext}'
15834
dynamic_linker="$host_os ld.so"
15835
shlibpath_var=LIBRARY_PATH
15841
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842
soname_spec='${libname}${release}${shared_ext}$major'
15843
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15844
shlibpath_var=LD_LIBRARY_PATH
15845
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15846
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15847
# the default ld.so.conf also contains /usr/contrib/lib and
15848
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15849
# libtool to hard-code these into programs
15852
cygwin* | mingw* | pw32*)
15853
version_type=windows
15858
case $GCC,$host_os in
15859
yes,cygwin* | yes,mingw* | yes,pw32*)
15860
library_names_spec='$libname.dll.a'
15861
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15862
postinstall_cmds='base_file=`basename \${file}`~
15863
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15864
dldir=$destdir/`dirname \$dlpath`~
15865
test -d \$dldir || mkdir -p \$dldir~
15866
$install_prog $dir/$dlname \$dldir/$dlname~
15867
chmod a+x \$dldir/$dlname'
15868
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15869
dlpath=$dir/\$dldll~
15871
shlibpath_overrides_runpath=yes
15875
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15876
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15877
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15880
# MinGW DLLs use traditional 'lib' prefix
15881
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15882
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15883
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15884
# It is most probably a Windows format PATH printed by
15885
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15886
# path with ; separators, and with drive letters. We can handle the
15887
# drive letters (cygwin fileutils understands them), so leave them,
15888
# especially as we might pass files found there to a mingw objdump,
15889
# which wouldn't understand a cygwinified path. Ahh.
15890
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15892
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15896
# pw32 DLLs use 'pw' prefix rather than 'lib'
15897
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15903
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15906
dynamic_linker='Win32 ld.exe'
15907
# FIXME: first we should search . and the directory the executable is in
15911
darwin* | rhapsody*)
15912
dynamic_linker="$host_os dyld"
15913
version_type=darwin
15916
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15917
soname_spec='${libname}${release}${major}$shared_ext'
15918
shlibpath_overrides_runpath=yes
15919
shlibpath_var=DYLD_LIBRARY_PATH
15920
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15922
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15929
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15930
soname_spec='${libname}${release}${shared_ext}$major'
15931
shlibpath_var=LD_LIBRARY_PATH
15938
freebsd* | dragonfly*)
15939
# DragonFly does not have aout. When/if they implement a new
15940
# versioning mechanism, adjust this.
15941
if test -x /usr/bin/objformat; then
15942
objformat=`/usr/bin/objformat`
15945
freebsd[123]*) objformat=aout ;;
15946
*) objformat=elf ;;
15949
# Handle Gentoo/FreeBSD as it was Linux
15950
case $host_vendor in
15952
version_type=linux ;;
15954
version_type=freebsd-$objformat ;;
15957
case $version_type in
15959
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15964
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15968
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15969
soname_spec='${libname}${release}${shared_ext}$major'
15974
shlibpath_var=LD_LIBRARY_PATH
15977
shlibpath_overrides_runpath=yes
15979
freebsd3.[01]* | freebsdelf3.[01]*)
15980
shlibpath_overrides_runpath=yes
15981
hardcode_into_libs=yes
15983
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15984
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15985
shlibpath_overrides_runpath=no
15986
hardcode_into_libs=yes
15988
*) # from 4.6 on, and DragonFly
15989
shlibpath_overrides_runpath=yes
15990
hardcode_into_libs=yes
15999
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16000
soname_spec='${libname}${release}${shared_ext}$major'
16001
shlibpath_var=LD_LIBRARY_PATH
16002
hardcode_into_libs=yes
16005
hpux9* | hpux10* | hpux11*)
16006
# Give a soname corresponding to the major version so that dld.sl refuses to
16007
# link against other versions.
16014
hardcode_into_libs=yes
16015
dynamic_linker="$host_os dld.so"
16016
shlibpath_var=LD_LIBRARY_PATH
16017
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16018
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019
soname_spec='${libname}${release}${shared_ext}$major'
16020
if test "X$HPUX_IA64_MODE" = X32; then
16021
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16023
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16025
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16029
hardcode_into_libs=yes
16030
dynamic_linker="$host_os dld.sl"
16031
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16032
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16033
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16034
soname_spec='${libname}${release}${shared_ext}$major'
16035
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16036
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16040
dynamic_linker="$host_os dld.sl"
16041
shlibpath_var=SHLIB_PATH
16042
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16043
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16044
soname_spec='${libname}${release}${shared_ext}$major'
16047
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16048
postinstall_cmds='chmod 555 $lib'
16055
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16056
soname_spec='${libname}${release}${shared_ext}$major'
16057
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16058
shlibpath_var=LD_LIBRARY_PATH
16059
shlibpath_overrides_runpath=no
16060
hardcode_into_libs=yes
16063
irix5* | irix6* | nonstopux*)
16065
nonstopux*) version_type=nonstopux ;;
16067
if test "$lt_cv_prog_gnu_ld" = yes; then
16075
soname_spec='${libname}${release}${shared_ext}$major'
16076
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16078
irix5* | nonstopux*)
16079
libsuff= shlibsuff=
16082
case $LD in # libtool.m4 will add one of these switches to LD
16083
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16084
libsuff= shlibsuff= libmagic=32-bit;;
16085
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16086
libsuff=32 shlibsuff=N32 libmagic=N32;;
16087
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16088
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16089
*) libsuff= shlibsuff= libmagic=never-match;;
16093
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16094
shlibpath_overrides_runpath=no
16095
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16096
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16097
hardcode_into_libs=yes
16100
# No shared lib support for Linux oldld, aout, or coff.
16101
linux*oldld* | linux*aout* | linux*coff*)
16105
# This must be Linux ELF.
16106
linux* | k*bsd*-gnu)
16110
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16111
soname_spec='${libname}${release}${shared_ext}$major'
16112
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16113
shlibpath_var=LD_LIBRARY_PATH
16114
shlibpath_overrides_runpath=no
16115
# This implies no fast_install, which is unacceptable.
16116
# Some rework will be needed to allow for fast_install
16117
# before this can be enabled.
16118
hardcode_into_libs=yes
16120
# Append ld.so.conf contents to the search path
16121
if test -f /etc/ld.so.conf; then
16122
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;/^$/d' | tr '\n' ' '`
16123
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16126
# We used to test for /lib/ld.so.1 and disable shared libraries on
16127
# powerpc, because MkLinux only supported shared libraries with the
16128
# GNU dynamic linker. Since this was broken with cross compilers,
16129
# most powerpc-linux boxes support dynamic linking these days and
16130
# people can always --disable-shared, the test was removed, and we
16131
# assume the GNU/Linux dynamic linker is in use.
16132
dynamic_linker='GNU/Linux ld.so'
16139
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16140
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16141
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16142
dynamic_linker='NetBSD (a.out) ld.so'
16144
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16145
soname_spec='${libname}${release}${shared_ext}$major'
16146
dynamic_linker='NetBSD ld.elf_so'
16148
shlibpath_var=LD_LIBRARY_PATH
16149
shlibpath_overrides_runpath=yes
16150
hardcode_into_libs=yes
16155
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16156
shlibpath_var=LD_LIBRARY_PATH
16157
shlibpath_overrides_runpath=yes
16164
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16165
soname_spec='${libname}${release}${shared_ext}$major'
16166
shlibpath_var=LD_LIBRARY_PATH
16167
shlibpath_overrides_runpath=yes
16172
sys_lib_dlsearch_path_spec="/usr/lib"
16174
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16176
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16177
*) need_version=no ;;
16179
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16180
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16181
shlibpath_var=LD_LIBRARY_PATH
16182
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16184
openbsd2.[89] | openbsd2.[89].*)
16185
shlibpath_overrides_runpath=no
16188
shlibpath_overrides_runpath=yes
16192
shlibpath_overrides_runpath=yes
16197
libname_spec='$name'
16200
library_names_spec='$libname${shared_ext} $libname.a'
16201
dynamic_linker='OS/2 ld.exe'
16202
shlibpath_var=LIBPATH
16205
osf3* | osf4* | osf5*)
16209
soname_spec='${libname}${release}${shared_ext}$major'
16210
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16211
shlibpath_var=LD_LIBRARY_PATH
16212
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16213
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16224
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16225
soname_spec='${libname}${release}${shared_ext}$major'
16226
shlibpath_var=LD_LIBRARY_PATH
16227
shlibpath_overrides_runpath=yes
16228
hardcode_into_libs=yes
16229
# ldd complains unless libraries are executable
16230
postinstall_cmds='chmod +x $lib'
16235
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16236
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16237
shlibpath_var=LD_LIBRARY_PATH
16238
shlibpath_overrides_runpath=yes
16239
if test "$with_gnu_ld" = yes; then
16247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248
soname_spec='${libname}${release}${shared_ext}$major'
16249
shlibpath_var=LD_LIBRARY_PATH
16250
case $host_vendor in
16252
shlibpath_overrides_runpath=no
16254
export_dynamic_flag_spec='${wl}-Blargedynsym'
16255
runpath_var=LD_RUN_PATH
16263
shlibpath_overrides_runpath=no
16264
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16270
if test -d /usr/nec ;then
16272
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16273
soname_spec='$libname${shared_ext}.$major'
16274
shlibpath_var=LD_LIBRARY_PATH
16278
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16279
version_type=freebsd-elf
16282
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16283
soname_spec='${libname}${release}${shared_ext}$major'
16284
shlibpath_var=LD_LIBRARY_PATH
16285
hardcode_into_libs=yes
16286
if test "$with_gnu_ld" = yes; then
16287
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16288
shlibpath_overrides_runpath=no
16290
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16291
shlibpath_overrides_runpath=yes
16294
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16298
sys_lib_dlsearch_path_spec='/usr/lib'
16303
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16304
soname_spec='${libname}${release}${shared_ext}$major'
16305
shlibpath_var=LD_LIBRARY_PATH
16312
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16313
echo "${ECHO_T}$dynamic_linker" >&6; }
16314
test "$dynamic_linker" = no && can_build_shared=no
16316
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16317
echo $ECHO_N "(cached) $ECHO_C" >&6
16319
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16322
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16323
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16324
echo $ECHO_N "(cached) $ECHO_C" >&6
16326
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16329
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16331
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16332
if test "$GCC" = yes; then
16333
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16336
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16337
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16338
hardcode_action_F77=
16339
if test -n "$hardcode_libdir_flag_spec_F77" || \
16340
test -n "$runpath_var_F77" || \
16341
test "X$hardcode_automatic_F77" = "Xyes" ; then
16343
# We can hardcode non-existant directories.
16344
if test "$hardcode_direct_F77" != no &&
16345
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16346
# have to relink, otherwise we might link with an installed library
16347
# when we should be linking with a yet-to-be-installed one
16348
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16349
test "$hardcode_minus_L_F77" != no; then
16350
# Linking always hardcodes the temporary library directory.
16351
hardcode_action_F77=relink
16353
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16354
hardcode_action_F77=immediate
16357
# We cannot hardcode anything, or else we can only hardcode existing
16359
hardcode_action_F77=unsupported
16361
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16362
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16364
if test "$hardcode_action_F77" = relink; then
16365
# Fast installation is not supported
16366
enable_fast_install=no
16367
elif test "$shlibpath_overrides_runpath" = yes ||
16368
test "$enable_shared" = no; then
16369
# Fast installation is not necessary
16370
enable_fast_install=needless
16374
# The else clause should only fire when bootstrapping the
16375
# libtool distribution, otherwise you forgot to ship ltmain.sh
16376
# with your package, and you will get complaints that there are
16377
# no rules to generate ltmain.sh.
16378
if test -f "$ltmain"; then
16379
# See if we are running on zsh, and set the options which allow our commands through
16380
# without removal of \ escapes.
16381
if test -n "${ZSH_VERSION+set}" ; then
16382
setopt NO_GLOB_SUBST
16384
# Now quote all the things that may contain metacharacters while being
16385
# careful not to overquote the AC_SUBSTed values. We take copies of the
16386
# variables and quote the copies for generation of the libtool script.
16387
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16389
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16390
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16391
deplibs_check_method reload_flag reload_cmds need_locks \
16392
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16393
lt_cv_sys_global_symbol_to_c_name_address \
16394
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16395
old_postinstall_cmds old_postuninstall_cmds \
16399
lt_prog_compiler_wl_F77 \
16400
lt_prog_compiler_pic_F77 \
16401
lt_prog_compiler_static_F77 \
16402
lt_prog_compiler_no_builtin_flag_F77 \
16403
export_dynamic_flag_spec_F77 \
16404
thread_safe_flag_spec_F77 \
16405
whole_archive_flag_spec_F77 \
16406
enable_shared_with_static_runtimes_F77 \
16407
old_archive_cmds_F77 \
16408
old_archive_from_new_cmds_F77 \
16409
predep_objects_F77 \
16410
postdep_objects_F77 \
16413
compiler_lib_search_path_F77 \
16414
compiler_lib_search_dirs_F77 \
16416
archive_expsym_cmds_F77 \
16417
postinstall_cmds_F77 \
16418
postuninstall_cmds_F77 \
16419
old_archive_from_expsyms_cmds_F77 \
16420
allow_undefined_flag_F77 \
16421
no_undefined_flag_F77 \
16422
export_symbols_cmds_F77 \
16423
hardcode_libdir_flag_spec_F77 \
16424
hardcode_libdir_flag_spec_ld_F77 \
16425
hardcode_libdir_separator_F77 \
16426
hardcode_automatic_F77 \
16428
module_expsym_cmds_F77 \
16429
lt_cv_prog_compiler_c_o_F77 \
16430
fix_srcfile_path_F77 \
16431
exclude_expsyms_F77 \
16432
include_expsyms_F77; do
16435
old_archive_cmds_F77 | \
16436
old_archive_from_new_cmds_F77 | \
16437
archive_cmds_F77 | \
16438
archive_expsym_cmds_F77 | \
16439
module_cmds_F77 | \
16440
module_expsym_cmds_F77 | \
16441
old_archive_from_expsyms_cmds_F77 | \
16442
export_symbols_cmds_F77 | \
16443
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16444
postinstall_cmds | postuninstall_cmds | \
16445
old_postinstall_cmds | old_postuninstall_cmds | \
16446
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16447
# Double-quote double-evaled strings.
16448
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16451
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16457
*'\$0 --fallback-echo"')
16458
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16464
cat <<__EOF__ >> "$cfgfile"
16465
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16467
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16469
# Shell to use when invoking shell scripts.
16472
# Whether or not to build shared libraries.
16473
build_libtool_libs=$enable_shared
16475
# Whether or not to build static libraries.
16476
build_old_libs=$enable_static
16478
# Whether or not to add -lc for building shared libraries.
16479
build_libtool_need_lc=$archive_cmds_need_lc_F77
16481
# Whether or not to disallow shared libs when runtime libs are static
16482
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16484
# Whether or not to optimize for fast installation.
16485
fast_install=$enable_fast_install
16488
host_alias=$host_alias
16492
# The build system.
16493
build_alias=$build_alias
16497
# An echo program that does not interpret backslashes.
16502
AR_FLAGS=$lt_AR_FLAGS
16507
# LTCC compiler flags.
16508
LTCFLAGS=$lt_LTCFLAGS
16510
# A language-specific compiler.
16511
CC=$lt_compiler_F77
16513
# Is the compiler the GNU C compiler?
16519
# The linker used to build libraries.
16522
# Whether we need hard or soft links.
16525
# A BSD-compatible nm program.
16528
# A symbol stripping program
16531
# Used to examine libraries when file_magic_cmd begins "file"
16532
MAGIC_CMD=$MAGIC_CMD
16534
# Used on cygwin: DLL creation program.
16537
# Used on cygwin: object dumper.
16540
# Used on cygwin: assembler.
16543
# The name of the directory that contains temporary libtool files.
16546
# How to create reloadable object files.
16547
reload_flag=$lt_reload_flag
16548
reload_cmds=$lt_reload_cmds
16550
# How to pass a linker flag through the compiler.
16551
wl=$lt_lt_prog_compiler_wl_F77
16553
# Object file suffix (normally "o").
16554
objext="$ac_objext"
16556
# Old archive suffix (normally "a").
16559
# Shared library suffix (normally ".so").
16560
shrext_cmds='$shrext_cmds'
16562
# Executable file suffix (normally "").
16565
# Additional compiler flags for building library objects.
16566
pic_flag=$lt_lt_prog_compiler_pic_F77
16569
# What is the maximum length of a command?
16570
max_cmd_len=$lt_cv_sys_max_cmd_len
16572
# Does compiler simultaneously support -c and -o options?
16573
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16575
# Must we lock files when doing compilation?
16576
need_locks=$lt_need_locks
16578
# Do we need the lib prefix for modules?
16579
need_lib_prefix=$need_lib_prefix
16581
# Do we need a version for libraries?
16582
need_version=$need_version
16584
# Whether dlopen is supported.
16585
dlopen_support=$enable_dlopen
16587
# Whether dlopen of programs is supported.
16588
dlopen_self=$enable_dlopen_self
16590
# Whether dlopen of statically linked programs is supported.
16591
dlopen_self_static=$enable_dlopen_self_static
16593
# Compiler flag to prevent dynamic linking.
16594
link_static_flag=$lt_lt_prog_compiler_static_F77
16596
# Compiler flag to turn off builtin functions.
16597
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16599
# Compiler flag to allow reflexive dlopens.
16600
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16602
# Compiler flag to generate shared objects directly from archives.
16603
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16605
# Compiler flag to generate thread-safe objects.
16606
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16608
# Library versioning type.
16609
version_type=$version_type
16611
# Format of library name prefix.
16612
libname_spec=$lt_libname_spec
16614
# List of archive names. First name is the real one, the rest are links.
16615
# The last name is the one that the linker finds with -lNAME.
16616
library_names_spec=$lt_library_names_spec
16618
# The coded name of the library, if different from the real name.
16619
soname_spec=$lt_soname_spec
16621
# Commands used to build and install an old-style archive.
16623
old_archive_cmds=$lt_old_archive_cmds_F77
16624
old_postinstall_cmds=$lt_old_postinstall_cmds
16625
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16627
# Create an old-style archive from a shared archive.
16628
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16630
# Create a temporary old-style archive to link instead of a shared archive.
16631
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16633
# Commands used to build and install a shared archive.
16634
archive_cmds=$lt_archive_cmds_F77
16635
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16636
postinstall_cmds=$lt_postinstall_cmds
16637
postuninstall_cmds=$lt_postuninstall_cmds
16639
# Commands used to build a loadable module (assumed same as above if empty)
16640
module_cmds=$lt_module_cmds_F77
16641
module_expsym_cmds=$lt_module_expsym_cmds_F77
16643
# Commands to strip libraries.
16644
old_striplib=$lt_old_striplib
16645
striplib=$lt_striplib
16647
# Dependencies to place before the objects being linked to create a
16649
predep_objects=$lt_predep_objects_F77
16651
# Dependencies to place after the objects being linked to create a
16653
postdep_objects=$lt_postdep_objects_F77
16655
# Dependencies to place before the objects being linked to create a
16657
predeps=$lt_predeps_F77
16659
# Dependencies to place after the objects being linked to create a
16661
postdeps=$lt_postdeps_F77
16663
# The directories searched by this compiler when creating a shared
16665
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16667
# The library search path used internally by the compiler when linking
16668
# a shared library.
16669
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16671
# Method to check whether dependent libraries are shared objects.
16672
deplibs_check_method=$lt_deplibs_check_method
16674
# Command to use when deplibs_check_method == file_magic.
16675
file_magic_cmd=$lt_file_magic_cmd
16677
# Flag that allows shared libraries with undefined symbols to be built.
16678
allow_undefined_flag=$lt_allow_undefined_flag_F77
16680
# Flag that forces no undefined symbols.
16681
no_undefined_flag=$lt_no_undefined_flag_F77
16683
# Commands used to finish a libtool library installation in a directory.
16684
finish_cmds=$lt_finish_cmds
16686
# Same as above, but a single script fragment to be evaled but not shown.
16687
finish_eval=$lt_finish_eval
16689
# Take the output of nm and produce a listing of raw symbols and C names.
16690
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16692
# Transform the output of nm in a proper C declaration
16693
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16695
# Transform the output of nm in a C name address pair
16696
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16698
# This is the shared library runtime path variable.
16699
runpath_var=$runpath_var
16701
# This is the shared library path variable.
16702
shlibpath_var=$shlibpath_var
16704
# Is shlibpath searched before the hard-coded library search path?
16705
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16707
# How to hardcode a shared library path into an executable.
16708
hardcode_action=$hardcode_action_F77
16710
# Whether we should hardcode library paths into libraries.
16711
hardcode_into_libs=$hardcode_into_libs
16713
# Flag to hardcode \$libdir into a binary during linking.
16714
# This must work even if \$libdir does not exist.
16715
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16717
# If ld is used when linking, flag to hardcode \$libdir into
16718
# a binary during linking. This must work even if \$libdir does
16720
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16722
# Whether we need a single -rpath flag with a separated argument.
16723
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16725
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16726
# resulting binary.
16727
hardcode_direct=$hardcode_direct_F77
16729
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16730
# resulting binary.
16731
hardcode_minus_L=$hardcode_minus_L_F77
16733
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16734
# the resulting binary.
16735
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16737
# Set to yes if building a shared library automatically hardcodes DIR into the library
16738
# and all subsequent libraries and executables linked against it.
16739
hardcode_automatic=$hardcode_automatic_F77
16741
# Variables whose values should be saved in libtool wrapper scripts and
16742
# restored at relink time.
16743
variables_saved_for_relink="$variables_saved_for_relink"
16745
# Whether libtool must link a program against all its dependency libraries.
16746
link_all_deplibs=$link_all_deplibs_F77
16748
# Compile-time system search path for libraries
16749
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16751
# Run-time system search path for libraries
16752
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16754
# Fix the shell variable \$srcfile for the compiler.
16755
fix_srcfile_path=$lt_fix_srcfile_path
16757
# Set to yes if exported symbols are required.
16758
always_export_symbols=$always_export_symbols_F77
16760
# The commands to list exported symbols.
16761
export_symbols_cmds=$lt_export_symbols_cmds_F77
16763
# The commands to extract the exported symbol list from a shared archive.
16764
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16766
# Symbols that should not be listed in the preloaded symbols.
16767
exclude_expsyms=$lt_exclude_expsyms_F77
16769
# Symbols that must always be exported.
16770
include_expsyms=$lt_include_expsyms_F77
16772
# ### END LIBTOOL TAG CONFIG: $tagname
16778
# If there is no Makefile yet, we rely on a make rule to execute
16779
# `config.status --recheck' to rerun these tests and create the
16780
# libtool script then.
16781
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16782
if test -f "$ltmain_in"; then
16783
test -f Makefile && make "$ltmain"
16789
ac_cpp='$CPP $CPPFLAGS'
16790
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16791
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16792
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16802
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16805
# Source file extension for Java test sources.
16808
# Object file extension for compiled Java test sources.
16812
# Code to be used in simple compile tests
16813
lt_simple_compile_test_code="class foo {}"
16815
# Code to be used in simple link tests
16816
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16818
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16820
# If no C compiler was specified, use CC.
16823
# If no C compiler flags were specified, use CFLAGS.
16824
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16826
# Allow CC to be a program name with arguments.
16830
# save warnings/boilerplate of simple test code
16831
ac_outfile=conftest.$ac_objext
16832
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16833
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16834
_lt_compiler_boilerplate=`cat conftest.err`
16837
ac_outfile=conftest.$ac_objext
16838
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16839
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16840
_lt_linker_boilerplate=`cat conftest.err`
16844
# Allow CC to be a program name with arguments.
16849
for cc_temp in $compiler""; do
16851
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16852
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16857
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16860
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16861
archive_cmds_need_lc_GCJ=no
16863
old_archive_cmds_GCJ=$old_archive_cmds
16866
lt_prog_compiler_no_builtin_flag_GCJ=
16868
if test "$GCC" = yes; then
16869
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16872
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16873
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16874
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16875
echo $ECHO_N "(cached) $ECHO_C" >&6
16877
lt_cv_prog_compiler_rtti_exceptions=no
16878
ac_outfile=conftest.$ac_objext
16879
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16880
lt_compiler_flag="-fno-rtti -fno-exceptions"
16881
# Insert the option either (1) after the last *FLAGS variable, or
16882
# (2) before a word containing "conftest.", or (3) at the end.
16883
# Note that $ac_compile itself does not contain backslashes and begins
16884
# with a dollar sign (not a hyphen), so the echo should work correctly.
16885
# The option is referenced via a variable to avoid confusing sed.
16886
lt_compile=`echo "$ac_compile" | $SED \
16887
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16888
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16889
-e 's:$: $lt_compiler_flag:'`
16890
(eval echo "\"\$as_me:16890: $lt_compile\"" >&5)
16891
(eval "$lt_compile" 2>conftest.err)
16893
cat conftest.err >&5
16894
echo "$as_me:16894: \$? = $ac_status" >&5
16895
if (exit $ac_status) && test -s "$ac_outfile"; then
16896
# The compiler can only warn and ignore the option if not recognized
16897
# So say no if there are warnings other than the usual output.
16898
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16899
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16900
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16901
lt_cv_prog_compiler_rtti_exceptions=yes
16907
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16908
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16910
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16911
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16918
lt_prog_compiler_wl_GCJ=
16919
lt_prog_compiler_pic_GCJ=
16920
lt_prog_compiler_static_GCJ=
16922
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16923
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16925
if test "$GCC" = yes; then
16926
lt_prog_compiler_wl_GCJ='-Wl,'
16927
lt_prog_compiler_static_GCJ='-static'
16931
# All AIX code is PIC.
16932
if test "$host_cpu" = ia64; then
16933
# AIX 5 now supports IA64 processor
16934
lt_prog_compiler_static_GCJ='-Bstatic'
16939
# FIXME: we need at least 68020 code to build shared libraries, but
16940
# adding the `-m68020' flag to GCC prevents building anything better,
16942
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16945
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16946
# PIC is the default for these OSes.
16949
mingw* | cygwin* | pw32* | os2*)
16950
# This hack is so that the source file can tell whether it is being
16951
# built for inclusion in a dll (and should export symbols for example).
16952
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16953
# (--disable-auto-import) libraries
16957
darwin* | rhapsody*)
16958
# PIC is the default on this platform
16959
# Common symbols not allowed in MH_DYLIB files
16960
lt_prog_compiler_pic_GCJ='-fno-common'
16964
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16965
# Instead, we relocate shared libraries at runtime.
16969
# Just because we use GCC doesn't mean we suddenly get shared libraries
16970
# on systems that don't support them.
16971
lt_prog_compiler_can_build_shared_GCJ=no
16976
if test -d /usr/nec; then
16977
lt_prog_compiler_pic_GCJ=-Kconform_pic
16982
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16983
# not for PA HP-UX.
16989
lt_prog_compiler_pic_GCJ='-fPIC'
16995
lt_prog_compiler_pic_GCJ='-fPIC'
16999
# PORTME Check for flag to pass linker flags through the system compiler.
17002
lt_prog_compiler_wl_GCJ='-Wl,'
17003
if test "$host_cpu" = ia64; then
17004
# AIX 5 now supports IA64 processor
17005
lt_prog_compiler_static_GCJ='-Bstatic'
17007
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17011
# PIC is the default on this platform
17012
# Common symbols not allowed in MH_DYLIB files
17013
case $cc_basename in
17015
lt_prog_compiler_pic_GCJ='-qnocommon'
17016
lt_prog_compiler_wl_GCJ='-Wl,'
17021
mingw* | cygwin* | pw32* | os2*)
17022
# This hack is so that the source file can tell whether it is being
17023
# built for inclusion in a dll (and should export symbols for example).
17027
hpux9* | hpux10* | hpux11*)
17028
lt_prog_compiler_wl_GCJ='-Wl,'
17029
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17030
# not for PA HP-UX.
17036
lt_prog_compiler_pic_GCJ='+Z'
17039
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17040
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17043
irix5* | irix6* | nonstopux*)
17044
lt_prog_compiler_wl_GCJ='-Wl,'
17045
# PIC (with -KPIC) is the default.
17046
lt_prog_compiler_static_GCJ='-non_shared'
17050
lt_prog_compiler_pic_GCJ='-KPIC'
17051
lt_prog_compiler_static_GCJ='-Bstatic'
17054
linux* | k*bsd*-gnu)
17055
case $cc_basename in
17057
lt_prog_compiler_wl_GCJ='-Wl,'
17058
lt_prog_compiler_pic_GCJ='-KPIC'
17059
lt_prog_compiler_static_GCJ='-static'
17061
pgcc* | pgf77* | pgf90* | pgf95*)
17062
# Portland Group compilers (*not* the Pentium gcc compiler,
17063
# which looks to be a dead project)
17064
lt_prog_compiler_wl_GCJ='-Wl,'
17065
lt_prog_compiler_pic_GCJ='-fpic'
17066
lt_prog_compiler_static_GCJ='-Bstatic'
17069
lt_prog_compiler_wl_GCJ='-Wl,'
17070
# All Alpha code is PIC.
17071
lt_prog_compiler_static_GCJ='-non_shared'
17074
case `$CC -V 2>&1 | sed 5q` in
17077
lt_prog_compiler_pic_GCJ='-KPIC'
17078
lt_prog_compiler_static_GCJ='-Bstatic'
17079
lt_prog_compiler_wl_GCJ='-Wl,'
17082
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17083
lt_prog_compiler_pic_GCJ='-KPIC'
17084
lt_prog_compiler_static_GCJ='-Bstatic'
17085
lt_prog_compiler_wl_GCJ=''
17092
osf3* | osf4* | osf5*)
17093
lt_prog_compiler_wl_GCJ='-Wl,'
17094
# All OSF/1 code is PIC.
17095
lt_prog_compiler_static_GCJ='-non_shared'
17099
lt_prog_compiler_static_GCJ='-non_shared'
17103
lt_prog_compiler_pic_GCJ='-KPIC'
17104
lt_prog_compiler_static_GCJ='-Bstatic'
17105
case $cc_basename in
17106
f77* | f90* | f95*)
17107
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17109
lt_prog_compiler_wl_GCJ='-Wl,';;
17114
lt_prog_compiler_wl_GCJ='-Qoption ld '
17115
lt_prog_compiler_pic_GCJ='-PIC'
17116
lt_prog_compiler_static_GCJ='-Bstatic'
17119
sysv4 | sysv4.2uw2* | sysv4.3*)
17120
lt_prog_compiler_wl_GCJ='-Wl,'
17121
lt_prog_compiler_pic_GCJ='-KPIC'
17122
lt_prog_compiler_static_GCJ='-Bstatic'
17126
if test -d /usr/nec ;then
17127
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17128
lt_prog_compiler_static_GCJ='-Bstatic'
17132
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17133
lt_prog_compiler_wl_GCJ='-Wl,'
17134
lt_prog_compiler_pic_GCJ='-KPIC'
17135
lt_prog_compiler_static_GCJ='-Bstatic'
17139
lt_prog_compiler_wl_GCJ='-Wl,'
17140
lt_prog_compiler_can_build_shared_GCJ=no
17144
lt_prog_compiler_pic_GCJ='-pic'
17145
lt_prog_compiler_static_GCJ='-Bstatic'
17149
lt_prog_compiler_can_build_shared_GCJ=no
17154
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17155
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17158
# Check to make sure the PIC flag actually works.
17160
if test -n "$lt_prog_compiler_pic_GCJ"; then
17162
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17163
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17164
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17165
echo $ECHO_N "(cached) $ECHO_C" >&6
17167
lt_cv_prog_compiler_pic_works_GCJ=no
17168
ac_outfile=conftest.$ac_objext
17169
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17170
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17171
# Insert the option either (1) after the last *FLAGS variable, or
17172
# (2) before a word containing "conftest.", or (3) at the end.
17173
# Note that $ac_compile itself does not contain backslashes and begins
17174
# with a dollar sign (not a hyphen), so the echo should work correctly.
17175
# The option is referenced via a variable to avoid confusing sed.
17176
lt_compile=`echo "$ac_compile" | $SED \
17177
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17178
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17179
-e 's:$: $lt_compiler_flag:'`
17180
(eval echo "\"\$as_me:17180: $lt_compile\"" >&5)
17181
(eval "$lt_compile" 2>conftest.err)
17183
cat conftest.err >&5
17184
echo "$as_me:17184: \$? = $ac_status" >&5
17185
if (exit $ac_status) && test -s "$ac_outfile"; then
17186
# The compiler can only warn and ignore the option if not recognized
17187
# So say no if there are warnings other than the usual output.
17188
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17189
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17190
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17191
lt_cv_prog_compiler_pic_works_GCJ=yes
17197
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17198
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17200
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17201
case $lt_prog_compiler_pic_GCJ in
17203
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17206
lt_prog_compiler_pic_GCJ=
17207
lt_prog_compiler_can_build_shared_GCJ=no
17212
# For platforms which do not support PIC, -DPIC is meaningless:
17214
lt_prog_compiler_pic_GCJ=
17217
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17222
# Check to make sure the static flag actually works.
17224
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17225
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17226
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17227
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17228
echo $ECHO_N "(cached) $ECHO_C" >&6
17230
lt_cv_prog_compiler_static_works_GCJ=no
17231
save_LDFLAGS="$LDFLAGS"
17232
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17233
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17234
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17235
# The linker can only warn and ignore the option if not recognized
17236
# So say no if there are warnings
17237
if test -s conftest.err; then
17238
# Append any errors to the config.log.
17239
cat conftest.err 1>&5
17240
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17241
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17242
if diff conftest.exp conftest.er2 >/dev/null; then
17243
lt_cv_prog_compiler_static_works_GCJ=yes
17246
lt_cv_prog_compiler_static_works_GCJ=yes
17250
LDFLAGS="$save_LDFLAGS"
17253
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17254
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17256
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17259
lt_prog_compiler_static_GCJ=
17263
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17264
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17265
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17266
echo $ECHO_N "(cached) $ECHO_C" >&6
17268
lt_cv_prog_compiler_c_o_GCJ=no
17269
$rm -r conftest 2>/dev/null
17273
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17275
lt_compiler_flag="-o out/conftest2.$ac_objext"
17276
# Insert the option either (1) after the last *FLAGS variable, or
17277
# (2) before a word containing "conftest.", or (3) at the end.
17278
# Note that $ac_compile itself does not contain backslashes and begins
17279
# with a dollar sign (not a hyphen), so the echo should work correctly.
17280
lt_compile=`echo "$ac_compile" | $SED \
17281
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17282
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17283
-e 's:$: $lt_compiler_flag:'`
17284
(eval echo "\"\$as_me:17284: $lt_compile\"" >&5)
17285
(eval "$lt_compile" 2>out/conftest.err)
17287
cat out/conftest.err >&5
17288
echo "$as_me:17288: \$? = $ac_status" >&5
17289
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17291
# The compiler can only warn and ignore the option if not recognized
17292
# So say no if there are warnings
17293
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17294
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17295
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17296
lt_cv_prog_compiler_c_o_GCJ=yes
17301
# SGI C++ compiler will create directory out/ii_files/ for
17302
# template instantiation
17303
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17304
$rm out/* && rmdir out
17310
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17311
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17314
hard_links="nottested"
17315
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17316
# do not overwrite the value of need_locks provided by the user
17317
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17318
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17321
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17323
ln conftest.a conftest.b 2>&5 || hard_links=no
17324
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17325
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17326
echo "${ECHO_T}$hard_links" >&6; }
17327
if test "$hard_links" = no; then
17328
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17329
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17336
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17337
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17340
allow_undefined_flag_GCJ=
17341
enable_shared_with_static_runtimes_GCJ=no
17343
archive_expsym_cmds_GCJ=
17344
old_archive_From_new_cmds_GCJ=
17345
old_archive_from_expsyms_cmds_GCJ=
17346
export_dynamic_flag_spec_GCJ=
17347
whole_archive_flag_spec_GCJ=
17348
thread_safe_flag_spec_GCJ=
17349
hardcode_libdir_flag_spec_GCJ=
17350
hardcode_libdir_flag_spec_ld_GCJ=
17351
hardcode_libdir_separator_GCJ=
17352
hardcode_direct_GCJ=no
17353
hardcode_minus_L_GCJ=no
17354
hardcode_shlibpath_var_GCJ=unsupported
17355
link_all_deplibs_GCJ=unknown
17356
hardcode_automatic_GCJ=no
17358
module_expsym_cmds_GCJ=
17359
always_export_symbols_GCJ=no
17360
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17361
# include_expsyms should be a list of space-separated symbols to be *always*
17362
# included in the symbol list
17363
include_expsyms_GCJ=
17364
# exclude_expsyms can be an extended regexp of symbols to exclude
17365
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17366
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17367
# as well as any symbol that contains `d'.
17368
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17369
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17370
# platforms (ab)use it in PIC code, but their linkers get confused if
17371
# the symbol is explicitly referenced. Since portable code cannot
17372
# rely on this symbol name, it's probably fine to never include it in
17373
# preloaded symbol tables.
17374
# Exclude shared library initialization/finalization symbols.
17375
extract_expsyms_cmds=
17376
# Just being paranoid about ensuring that cc_basename is set.
17377
for cc_temp in $compiler""; do
17379
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17380
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17385
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17388
cygwin* | mingw* | pw32*)
17389
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17390
# When not using gcc, we currently assume that we are using
17391
# Microsoft Visual C++.
17392
if test "$GCC" != yes; then
17397
# we just hope/assume this is gcc and not c89 (= MSVC++)
17406
if test "$with_gnu_ld" = yes; then
17407
# If archive_cmds runs LD, not CC, wlarc should be empty
17410
# Set some defaults for GNU ld with shared library support. These
17411
# are reset later if shared libraries are not supported. Putting them
17412
# here allows them to be overridden if necessary.
17413
runpath_var=LD_RUN_PATH
17414
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17415
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17416
# ancient GNU ld didn't support --whole-archive et. al.
17417
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17418
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17420
whole_archive_flag_spec_GCJ=
17422
supports_anon_versioning=no
17423
case `$LD -v 2>/dev/null` in
17424
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17425
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17426
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17427
*\ 2.11.*) ;; # other 2.11 versions
17428
*) supports_anon_versioning=yes ;;
17431
# See if GNU ld supports shared libraries.
17434
# On AIX/PPC, the GNU linker is very broken
17435
if test "$host_cpu" != ia64; then
17439
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17440
*** to be unable to reliably create shared libraries on AIX.
17441
*** Therefore, libtool is disabling shared libraries support. If you
17442
*** really care for shared libraries, you may want to modify your PATH
17443
*** so that a non-GNU linker is found, and then restart.
17450
archive_cmds_GCJ='$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)'
17451
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17452
hardcode_minus_L_GCJ=yes
17454
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17455
# that the semantics of dynamic libraries on AmigaOS, at least up
17456
# to version 4, is to share data among multiple programs linked
17457
# with the same dynamic library. Since this doesn't match the
17458
# behavior of shared libraries on other platforms, we can't use
17464
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17465
allow_undefined_flag_GCJ=unsupported
17466
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17467
# support --undefined. This deserves some investigation. FIXME
17468
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17474
cygwin* | mingw* | pw32*)
17475
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17476
# as there is no search path for DLLs.
17477
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17478
allow_undefined_flag_GCJ=unsupported
17479
always_export_symbols_GCJ=no
17480
enable_shared_with_static_runtimes_GCJ=yes
17481
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17483
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17484
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17485
# If the export-symbols file already is a .def file (1st line
17486
# is EXPORTS), use it as is; otherwise, prepend...
17487
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17488
cp $export_symbols $output_objdir/$soname.def;
17490
echo EXPORTS > $output_objdir/$soname.def;
17491
cat $export_symbols >> $output_objdir/$soname.def;
17493
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17500
hardcode_direct_GCJ=no
17501
hardcode_shlibpath_var_GCJ=no
17502
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17503
export_dynamic_flag_spec_GCJ='${wl}-E'
17504
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17505
# Instead, shared libraries are loaded at an image base (0x10000000 by
17506
# default) and relocated if they conflict, which is a slow very memory
17507
# consuming and fragmenting process. To avoid this, we pick a random,
17508
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17509
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17510
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17511
archive_expsym_cmds_GCJ='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'
17514
gnu* | linux* | k*bsd*-gnu)
17515
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17517
case $cc_basename,$host_cpu in
17518
pgcc*) # Portland Group C compiler
17519
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17520
tmp_addflag=' $pic_flag'
17522
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17523
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17524
tmp_addflag=' $pic_flag -Mnomain' ;;
17525
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17526
tmp_addflag=' -i_dynamic' ;;
17527
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17528
tmp_addflag=' -i_dynamic -nofor_main' ;;
17529
ifc* | ifort*) # Intel Fortran compiler
17530
tmp_addflag=' -nofor_main' ;;
17532
case `$CC -V 2>&1 | sed 5q` in
17533
*Sun\ C*) # Sun C 5.9
17534
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17535
tmp_sharedflag='-G' ;;
17536
*Sun\ F*) # Sun Fortran 8.3
17537
tmp_sharedflag='-G' ;;
17539
tmp_sharedflag='-shared' ;;
17541
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17543
if test $supports_anon_versioning = yes; then
17544
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17545
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17546
$echo "local: *; };" >> $output_objdir/$libname.ver~
17547
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17555
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17556
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17559
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17560
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17565
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17569
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17570
*** create shared libraries on Solaris systems. Therefore, libtool
17571
*** is disabling shared libraries support. We urge you to upgrade GNU
17572
*** binutils to release 2.9.1 or newer. Another option is to modify
17573
*** your PATH or compiler configuration so that the native linker is
17574
*** used, and then restart.
17577
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17578
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17579
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17585
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17586
case `$LD -v 2>&1` in
17587
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17591
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17592
*** reliably create shared libraries on SCO systems. Therefore, libtool
17593
*** is disabling shared libraries support. We urge you to upgrade GNU
17594
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17595
*** your PATH or compiler configuration so that the native linker is
17596
*** used, and then restart.
17601
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17602
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17603
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17604
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17613
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17615
hardcode_direct_GCJ=yes
17616
hardcode_shlibpath_var_GCJ=no
17620
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17621
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17622
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17629
if test "$ld_shlibs_GCJ" = no; then
17631
hardcode_libdir_flag_spec_GCJ=
17632
export_dynamic_flag_spec_GCJ=
17633
whole_archive_flag_spec_GCJ=
17636
# PORTME fill in a description of your system's linker (not GNU ld)
17639
allow_undefined_flag_GCJ=unsupported
17640
always_export_symbols_GCJ=yes
17641
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17642
# Note: this linker hardcodes the directories in LIBPATH if there
17643
# are no directories specified by -L.
17644
hardcode_minus_L_GCJ=yes
17645
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17646
# Neither direct hardcoding nor static linking is supported with a
17648
hardcode_direct_GCJ=unsupported
17653
if test "$host_cpu" = ia64; then
17654
# On IA64, the linker does run time linking by default, so we don't
17655
# have to do anything special.
17656
aix_use_runtimelinking=no
17657
exp_sym_flag='-Bexport'
17660
# If we're using GNU nm, then we don't want the "-C" option.
17661
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17662
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17663
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17665
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17667
aix_use_runtimelinking=no
17669
# Test if we are trying to use run time linking or normal
17670
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17671
# need to do runtime linking.
17672
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17673
for ld_flag in $LDFLAGS; do
17674
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17675
aix_use_runtimelinking=yes
17682
exp_sym_flag='-bexport'
17683
no_entry_flag='-bnoentry'
17686
# When large executables or shared objects are built, AIX ld can
17687
# have problems creating the table of contents. If linking a library
17688
# or program results in "error TOC overflow" add -mminimal-toc to
17689
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17690
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17692
archive_cmds_GCJ=''
17693
hardcode_direct_GCJ=yes
17694
hardcode_libdir_separator_GCJ=':'
17695
link_all_deplibs_GCJ=yes
17697
if test "$GCC" = yes; then
17698
case $host_os in aix4.[012]|aix4.[012].*)
17699
# We only want to do this on AIX 4.2 and lower, the check
17700
# below for broken collect2 doesn't work under 4.3+
17701
collect2name=`${CC} -print-prog-name=collect2`
17702
if test -f "$collect2name" && \
17703
strings "$collect2name" | grep resolve_lib_name >/dev/null
17705
# We have reworked collect2
17708
# We have old collect2
17709
hardcode_direct_GCJ=unsupported
17710
# It fails to find uninstalled libraries when the uninstalled
17711
# path is not listed in the libpath. Setting hardcode_minus_L
17712
# to unsupported forces relinking
17713
hardcode_minus_L_GCJ=yes
17714
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17715
hardcode_libdir_separator_GCJ=
17719
shared_flag='-shared'
17720
if test "$aix_use_runtimelinking" = yes; then
17721
shared_flag="$shared_flag "'${wl}-G'
17725
if test "$host_cpu" = ia64; then
17726
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17727
# chokes on -Wl,-G. The following line is correct:
17730
if test "$aix_use_runtimelinking" = yes; then
17731
shared_flag='${wl}-G'
17733
shared_flag='${wl}-bM:SRE'
17738
# It seems that -bexpall does not export symbols beginning with
17739
# underscore (_), so it is better to generate a list of symbols to export.
17740
always_export_symbols_GCJ=yes
17741
if test "$aix_use_runtimelinking" = yes; then
17742
# Warning - without using the other runtime loading flags (-brtl),
17743
# -berok will link without error, but may produce a broken library.
17744
allow_undefined_flag_GCJ='-berok'
17745
# Determine the default libpath from the value encoded in an empty executable.
17746
cat >conftest.$ac_ext <<_ACEOF
17749
cat confdefs.h >>conftest.$ac_ext
17750
cat >>conftest.$ac_ext <<_ACEOF
17751
/* end confdefs.h. */
17761
rm -f conftest.$ac_objext conftest$ac_exeext
17762
if { (ac_try="$ac_link"
17763
case "(($ac_try" in
17764
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765
*) ac_try_echo=$ac_try;;
17767
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768
(eval "$ac_link") 2>conftest.er1
17770
grep -v '^ *+' conftest.er1 >conftest.err
17772
cat conftest.err >&5
17773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774
(exit $ac_status); } && {
17775
test -z "$ac_c_werror_flag" ||
17776
test ! -s conftest.err
17777
} && test -s conftest$ac_exeext &&
17778
$as_test_x conftest$ac_exeext; then
17780
lt_aix_libpath_sed='
17781
/Import File Strings/,/^$/ {
17787
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17788
# Check for a 64-bit object if we didn't find anything.
17789
if test -z "$aix_libpath"; then
17790
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17793
echo "$as_me: failed program was:" >&5
17794
sed 's/^/| /' conftest.$ac_ext >&5
17799
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17800
conftest$ac_exeext conftest.$ac_ext
17801
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17803
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17804
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17806
if test "$host_cpu" = ia64; then
17807
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17808
allow_undefined_flag_GCJ="-z nodefs"
17809
archive_expsym_cmds_GCJ="\$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"
17811
# Determine the default libpath from the value encoded in an empty executable.
17812
cat >conftest.$ac_ext <<_ACEOF
17815
cat confdefs.h >>conftest.$ac_ext
17816
cat >>conftest.$ac_ext <<_ACEOF
17817
/* end confdefs.h. */
17827
rm -f conftest.$ac_objext conftest$ac_exeext
17828
if { (ac_try="$ac_link"
17829
case "(($ac_try" in
17830
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831
*) ac_try_echo=$ac_try;;
17833
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834
(eval "$ac_link") 2>conftest.er1
17836
grep -v '^ *+' conftest.er1 >conftest.err
17838
cat conftest.err >&5
17839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840
(exit $ac_status); } && {
17841
test -z "$ac_c_werror_flag" ||
17842
test ! -s conftest.err
17843
} && test -s conftest$ac_exeext &&
17844
$as_test_x conftest$ac_exeext; then
17846
lt_aix_libpath_sed='
17847
/Import File Strings/,/^$/ {
17853
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17854
# Check for a 64-bit object if we didn't find anything.
17855
if test -z "$aix_libpath"; then
17856
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17859
echo "$as_me: failed program was:" >&5
17860
sed 's/^/| /' conftest.$ac_ext >&5
17865
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17866
conftest$ac_exeext conftest.$ac_ext
17867
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17869
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17870
# Warning - without using the other run time loading flags,
17871
# -berok will link without error, but may produce a broken library.
17872
no_undefined_flag_GCJ=' ${wl}-bernotok'
17873
allow_undefined_flag_GCJ=' ${wl}-berok'
17874
# Exported symbols can be pulled into shared objects from archives
17875
whole_archive_flag_spec_GCJ='$convenience'
17876
archive_cmds_need_lc_GCJ=yes
17877
# This is similar to how AIX traditionally builds its shared libraries.
17878
archive_expsym_cmds_GCJ="\$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'
17884
archive_cmds_GCJ='$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)'
17885
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17886
hardcode_minus_L_GCJ=yes
17887
# see comment about different semantics on the GNU ld section
17892
export_dynamic_flag_spec_GCJ=-rdynamic
17895
cygwin* | mingw* | pw32*)
17896
# When not using gcc, we currently assume that we are using
17897
# Microsoft Visual C++.
17898
# hardcode_libdir_flag_spec is actually meaningless, as there is
17899
# no search path for DLLs.
17900
hardcode_libdir_flag_spec_GCJ=' '
17901
allow_undefined_flag_GCJ=unsupported
17902
# Tell ltmain to make .lib files, not .a files.
17904
# Tell ltmain to make .dll files, not .so files.
17906
# FIXME: Setting linknames here is a bad hack.
17907
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17908
# The linker will automatically build a .lib file if we build a DLL.
17909
old_archive_From_new_cmds_GCJ='true'
17910
# FIXME: Should let the user specify the lib program.
17911
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17912
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17913
enable_shared_with_static_runtimes_GCJ=yes
17916
darwin* | rhapsody*)
17918
rhapsody* | darwin1.[012])
17919
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17922
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17923
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17925
case ${MACOSX_DEPLOYMENT_TARGET} in
17927
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17930
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17936
archive_cmds_need_lc_GCJ=no
17937
hardcode_direct_GCJ=no
17938
hardcode_automatic_GCJ=yes
17939
hardcode_shlibpath_var_GCJ=unsupported
17940
whole_archive_flag_spec_GCJ=''
17941
link_all_deplibs_GCJ=yes
17942
if test "$GCC" = yes ; then
17943
output_verbose_link_cmd='echo'
17944
archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17945
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17946
archive_expsym_cmds_GCJ="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}"
17947
module_expsym_cmds_GCJ="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}"
17949
case $cc_basename in
17951
output_verbose_link_cmd='echo'
17952
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17953
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17954
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17955
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17956
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17966
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17967
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17968
hardcode_shlibpath_var_GCJ=no
17975
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17976
# support. Future versions do this automatically, but an explicit c++rt0.o
17977
# does not break anything, and helps significantly (at the cost of a little
17980
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17981
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17982
hardcode_direct_GCJ=yes
17983
hardcode_shlibpath_var_GCJ=no
17986
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17988
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17989
hardcode_direct_GCJ=yes
17990
hardcode_minus_L_GCJ=yes
17991
hardcode_shlibpath_var_GCJ=no
17994
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17995
freebsd* | dragonfly*)
17996
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17997
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17998
hardcode_direct_GCJ=yes
17999
hardcode_shlibpath_var_GCJ=no
18003
if test "$GCC" = yes; then
18004
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18006
archive_cmds_GCJ='$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'
18008
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18009
hardcode_libdir_separator_GCJ=:
18010
hardcode_direct_GCJ=yes
18012
# hardcode_minus_L: Not really in the search PATH,
18013
# but as the default location of the library.
18014
hardcode_minus_L_GCJ=yes
18015
export_dynamic_flag_spec_GCJ='${wl}-E'
18019
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18020
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18022
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18024
if test "$with_gnu_ld" = no; then
18025
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18026
hardcode_libdir_separator_GCJ=:
18028
hardcode_direct_GCJ=yes
18029
export_dynamic_flag_spec_GCJ='${wl}-E'
18031
# hardcode_minus_L: Not really in the search PATH,
18032
# but as the default location of the library.
18033
hardcode_minus_L_GCJ=yes
18038
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18041
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18044
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18047
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18053
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18056
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18059
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18063
if test "$with_gnu_ld" = no; then
18064
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18065
hardcode_libdir_separator_GCJ=:
18069
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18070
hardcode_direct_GCJ=no
18071
hardcode_shlibpath_var_GCJ=no
18074
hardcode_direct_GCJ=yes
18075
export_dynamic_flag_spec_GCJ='${wl}-E'
18077
# hardcode_minus_L: Not really in the search PATH,
18078
# but as the default location of the library.
18079
hardcode_minus_L_GCJ=yes
18085
irix5* | irix6* | nonstopux*)
18086
if test "$GCC" = yes; then
18087
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18089
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18090
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18092
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18093
hardcode_libdir_separator_GCJ=:
18094
link_all_deplibs_GCJ=yes
18098
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18099
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18101
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18103
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18104
hardcode_direct_GCJ=yes
18105
hardcode_shlibpath_var_GCJ=no
18109
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18110
hardcode_direct_GCJ=yes
18111
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18112
hardcode_libdir_separator_GCJ=:
18113
hardcode_shlibpath_var_GCJ=no
18117
if test -f /usr/libexec/ld.so; then
18118
hardcode_direct_GCJ=yes
18119
hardcode_shlibpath_var_GCJ=no
18120
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18121
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18122
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18123
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18124
export_dynamic_flag_spec_GCJ='${wl}-E'
18127
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18128
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18129
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18132
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18133
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18143
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18144
hardcode_minus_L_GCJ=yes
18145
allow_undefined_flag_GCJ=unsupported
18146
archive_cmds_GCJ='$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'
18147
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18151
if test "$GCC" = yes; then
18152
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18153
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18155
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18156
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18158
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18159
hardcode_libdir_separator_GCJ=:
18162
osf4* | osf5*) # as osf3* with the addition of -msym flag
18163
if test "$GCC" = yes; then
18164
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18165
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18166
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18168
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18169
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18170
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18171
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18173
# Both c and cxx compiler support -rpath directly
18174
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18176
hardcode_libdir_separator_GCJ=:
18180
no_undefined_flag_GCJ=' -z text'
18181
if test "$GCC" = yes; then
18183
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18184
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18185
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18188
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18189
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18190
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18192
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18193
hardcode_shlibpath_var_GCJ=no
18195
solaris2.[0-5] | solaris2.[0-5].*) ;;
18197
# The compiler driver will combine and reorder linker options,
18198
# but understands `-z linker_flag'. GCC discards it without `$wl',
18199
# but is careful enough not to reorder.
18200
# Supported since Solaris 2.6 (maybe 2.5.1?)
18201
if test "$GCC" = yes; then
18202
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18204
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18208
link_all_deplibs_GCJ=yes
18212
if test "x$host_vendor" = xsequent; then
18213
# Use $CC to link under sequent, because it throws in some extra .o
18214
# files that make .init and .fini sections work.
18215
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18217
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18219
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18220
hardcode_direct_GCJ=yes
18221
hardcode_minus_L_GCJ=yes
18222
hardcode_shlibpath_var_GCJ=no
18226
case $host_vendor in
18228
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18229
hardcode_direct_GCJ=yes # is this really true???
18232
## LD is ld it makes a PLAMLIB
18233
## CC just makes a GrossModule.
18234
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18235
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18236
hardcode_direct_GCJ=no
18239
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18240
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18243
runpath_var='LD_RUN_PATH'
18244
hardcode_shlibpath_var_GCJ=no
18248
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18249
hardcode_shlibpath_var_GCJ=no
18250
export_dynamic_flag_spec_GCJ='-Bexport'
18254
if test -d /usr/nec; then
18255
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18256
hardcode_shlibpath_var_GCJ=no
18257
runpath_var=LD_RUN_PATH
18258
hardcode_runpath_var=yes
18263
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18264
no_undefined_flag_GCJ='${wl}-z,text'
18265
archive_cmds_need_lc_GCJ=no
18266
hardcode_shlibpath_var_GCJ=no
18267
runpath_var='LD_RUN_PATH'
18269
if test "$GCC" = yes; then
18270
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18271
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18273
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18274
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18278
sysv5* | sco3.2v5* | sco5v6*)
18279
# Note: We can NOT use -z defs as we might desire, because we do not
18280
# link with -lc, and that would cause any symbols used from libc to
18281
# always be unresolved, which means just about no library would
18282
# ever link correctly. If we're not using GNU ld we use -z text
18283
# though, which does catch some bad symbols but isn't as heavy-handed
18285
no_undefined_flag_GCJ='${wl}-z,text'
18286
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18287
archive_cmds_need_lc_GCJ=no
18288
hardcode_shlibpath_var_GCJ=no
18289
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18290
hardcode_libdir_separator_GCJ=':'
18291
link_all_deplibs_GCJ=yes
18292
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18293
runpath_var='LD_RUN_PATH'
18295
if test "$GCC" = yes; then
18296
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18297
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18299
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18300
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18305
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18306
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18307
hardcode_shlibpath_var_GCJ=no
18316
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18317
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18318
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18321
# Do we need to explicitly link libc?
18323
case "x$archive_cmds_need_lc_GCJ" in
18325
# Assume -lc should be added
18326
archive_cmds_need_lc_GCJ=yes
18328
if test "$enable_shared" = yes && test "$GCC" = yes; then
18329
case $archive_cmds_GCJ in
18331
# FIXME: we may have to deal with multi-command sequences.
18334
# Test whether the compiler implicitly links with -lc since on some
18335
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18336
# to ld, don't add -lc before -lgcc.
18337
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18338
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18340
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18342
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18343
(eval $ac_compile) 2>&5
18345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346
(exit $ac_status); } 2>conftest.err; then
18349
libobjs=conftest.$ac_objext
18351
wl=$lt_prog_compiler_wl_GCJ
18352
pic_flag=$lt_prog_compiler_pic_GCJ
18358
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18359
allow_undefined_flag_GCJ=
18360
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18361
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364
(exit $ac_status); }
18366
archive_cmds_need_lc_GCJ=no
18368
archive_cmds_need_lc_GCJ=yes
18370
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18372
cat conftest.err 1>&5
18375
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18376
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18383
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18384
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18385
library_names_spec=
18386
libname_spec='lib$name'
18390
postuninstall_cmds=
18394
shlibpath_overrides_runpath=unknown
18396
dynamic_linker="$host_os ld.so"
18397
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18399
need_lib_prefix=unknown
18400
hardcode_into_libs=no
18402
# when you set need_version to no, make sure it does not cause -set_version
18403
# flags to be left without arguments
18404
need_version=unknown
18409
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18410
shlibpath_var=LIBPATH
18412
# AIX 3 has no versioning support, so we append a major version to the name.
18413
soname_spec='${libname}${release}${shared_ext}$major'
18420
hardcode_into_libs=yes
18421
if test "$host_cpu" = ia64; then
18422
# AIX 5 supports IA64
18423
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18424
shlibpath_var=LD_LIBRARY_PATH
18426
# With GCC up to 2.95.x, collect2 would create an import file
18427
# for dependence libraries. The import file would start with
18428
# the line `#! .'. This would cause the generated library to
18429
# depend on `.', always an invalid library. This was fixed in
18430
# development snapshots of GCC prior to 3.0.
18432
aix4 | aix4.[01] | aix4.[01].*)
18433
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18435
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18438
can_build_shared=no
18442
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18443
# soname into executable. Probably we can add versioning support to
18444
# collect2, so additional links can be useful in future.
18445
if test "$aix_use_runtimelinking" = yes; then
18446
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18447
# instead of lib<name>.a to let people know that these are not
18448
# typical AIX shared libraries.
18449
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18451
# We preserve .a as extension for shared libraries through AIX4.2
18452
# and later when we are not doing run time linking.
18453
library_names_spec='${libname}${release}.a $libname.a'
18454
soname_spec='${libname}${release}${shared_ext}$major'
18456
shlibpath_var=LIBPATH
18461
library_names_spec='$libname.ixlibrary $libname.a'
18462
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18463
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
18467
library_names_spec='${libname}${shared_ext}'
18468
dynamic_linker="$host_os ld.so"
18469
shlibpath_var=LIBRARY_PATH
18475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18476
soname_spec='${libname}${release}${shared_ext}$major'
18477
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18478
shlibpath_var=LD_LIBRARY_PATH
18479
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18480
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18481
# the default ld.so.conf also contains /usr/contrib/lib and
18482
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18483
# libtool to hard-code these into programs
18486
cygwin* | mingw* | pw32*)
18487
version_type=windows
18492
case $GCC,$host_os in
18493
yes,cygwin* | yes,mingw* | yes,pw32*)
18494
library_names_spec='$libname.dll.a'
18495
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18496
postinstall_cmds='base_file=`basename \${file}`~
18497
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18498
dldir=$destdir/`dirname \$dlpath`~
18499
test -d \$dldir || mkdir -p \$dldir~
18500
$install_prog $dir/$dlname \$dldir/$dlname~
18501
chmod a+x \$dldir/$dlname'
18502
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18503
dlpath=$dir/\$dldll~
18505
shlibpath_overrides_runpath=yes
18509
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18510
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18511
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18514
# MinGW DLLs use traditional 'lib' prefix
18515
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18516
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18517
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18518
# It is most probably a Windows format PATH printed by
18519
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18520
# path with ; separators, and with drive letters. We can handle the
18521
# drive letters (cygwin fileutils understands them), so leave them,
18522
# especially as we might pass files found there to a mingw objdump,
18523
# which wouldn't understand a cygwinified path. Ahh.
18524
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18526
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18530
# pw32 DLLs use 'pw' prefix rather than 'lib'
18531
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18537
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18540
dynamic_linker='Win32 ld.exe'
18541
# FIXME: first we should search . and the directory the executable is in
18545
darwin* | rhapsody*)
18546
dynamic_linker="$host_os dyld"
18547
version_type=darwin
18550
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18551
soname_spec='${libname}${release}${major}$shared_ext'
18552
shlibpath_overrides_runpath=yes
18553
shlibpath_var=DYLD_LIBRARY_PATH
18554
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18556
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18563
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18564
soname_spec='${libname}${release}${shared_ext}$major'
18565
shlibpath_var=LD_LIBRARY_PATH
18572
freebsd* | dragonfly*)
18573
# DragonFly does not have aout. When/if they implement a new
18574
# versioning mechanism, adjust this.
18575
if test -x /usr/bin/objformat; then
18576
objformat=`/usr/bin/objformat`
18579
freebsd[123]*) objformat=aout ;;
18580
*) objformat=elf ;;
18583
# Handle Gentoo/FreeBSD as it was Linux
18584
case $host_vendor in
18586
version_type=linux ;;
18588
version_type=freebsd-$objformat ;;
18591
case $version_type in
18593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18598
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18602
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18603
soname_spec='${libname}${release}${shared_ext}$major'
18608
shlibpath_var=LD_LIBRARY_PATH
18611
shlibpath_overrides_runpath=yes
18613
freebsd3.[01]* | freebsdelf3.[01]*)
18614
shlibpath_overrides_runpath=yes
18615
hardcode_into_libs=yes
18617
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18618
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18619
shlibpath_overrides_runpath=no
18620
hardcode_into_libs=yes
18622
*) # from 4.6 on, and DragonFly
18623
shlibpath_overrides_runpath=yes
18624
hardcode_into_libs=yes
18633
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18634
soname_spec='${libname}${release}${shared_ext}$major'
18635
shlibpath_var=LD_LIBRARY_PATH
18636
hardcode_into_libs=yes
18639
hpux9* | hpux10* | hpux11*)
18640
# Give a soname corresponding to the major version so that dld.sl refuses to
18641
# link against other versions.
18648
hardcode_into_libs=yes
18649
dynamic_linker="$host_os dld.so"
18650
shlibpath_var=LD_LIBRARY_PATH
18651
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18652
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18653
soname_spec='${libname}${release}${shared_ext}$major'
18654
if test "X$HPUX_IA64_MODE" = X32; then
18655
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18657
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18659
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18663
hardcode_into_libs=yes
18664
dynamic_linker="$host_os dld.sl"
18665
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18666
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18667
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18668
soname_spec='${libname}${release}${shared_ext}$major'
18669
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18670
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18674
dynamic_linker="$host_os dld.sl"
18675
shlibpath_var=SHLIB_PATH
18676
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18677
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18678
soname_spec='${libname}${release}${shared_ext}$major'
18681
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18682
postinstall_cmds='chmod 555 $lib'
18689
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18690
soname_spec='${libname}${release}${shared_ext}$major'
18691
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18692
shlibpath_var=LD_LIBRARY_PATH
18693
shlibpath_overrides_runpath=no
18694
hardcode_into_libs=yes
18697
irix5* | irix6* | nonstopux*)
18699
nonstopux*) version_type=nonstopux ;;
18701
if test "$lt_cv_prog_gnu_ld" = yes; then
18709
soname_spec='${libname}${release}${shared_ext}$major'
18710
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18712
irix5* | nonstopux*)
18713
libsuff= shlibsuff=
18716
case $LD in # libtool.m4 will add one of these switches to LD
18717
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18718
libsuff= shlibsuff= libmagic=32-bit;;
18719
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18720
libsuff=32 shlibsuff=N32 libmagic=N32;;
18721
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18722
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18723
*) libsuff= shlibsuff= libmagic=never-match;;
18727
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18728
shlibpath_overrides_runpath=no
18729
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18730
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18731
hardcode_into_libs=yes
18734
# No shared lib support for Linux oldld, aout, or coff.
18735
linux*oldld* | linux*aout* | linux*coff*)
18739
# This must be Linux ELF.
18740
linux* | k*bsd*-gnu)
18744
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18745
soname_spec='${libname}${release}${shared_ext}$major'
18746
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18747
shlibpath_var=LD_LIBRARY_PATH
18748
shlibpath_overrides_runpath=no
18749
# This implies no fast_install, which is unacceptable.
18750
# Some rework will be needed to allow for fast_install
18751
# before this can be enabled.
18752
hardcode_into_libs=yes
18754
# Append ld.so.conf contents to the search path
18755
if test -f /etc/ld.so.conf; then
18756
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;/^$/d' | tr '\n' ' '`
18757
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18760
# We used to test for /lib/ld.so.1 and disable shared libraries on
18761
# powerpc, because MkLinux only supported shared libraries with the
18762
# GNU dynamic linker. Since this was broken with cross compilers,
18763
# most powerpc-linux boxes support dynamic linking these days and
18764
# people can always --disable-shared, the test was removed, and we
18765
# assume the GNU/Linux dynamic linker is in use.
18766
dynamic_linker='GNU/Linux ld.so'
18773
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18774
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18775
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18776
dynamic_linker='NetBSD (a.out) ld.so'
18778
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18779
soname_spec='${libname}${release}${shared_ext}$major'
18780
dynamic_linker='NetBSD ld.elf_so'
18782
shlibpath_var=LD_LIBRARY_PATH
18783
shlibpath_overrides_runpath=yes
18784
hardcode_into_libs=yes
18789
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18790
shlibpath_var=LD_LIBRARY_PATH
18791
shlibpath_overrides_runpath=yes
18798
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18799
soname_spec='${libname}${release}${shared_ext}$major'
18800
shlibpath_var=LD_LIBRARY_PATH
18801
shlibpath_overrides_runpath=yes
18806
sys_lib_dlsearch_path_spec="/usr/lib"
18808
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18810
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18811
*) need_version=no ;;
18813
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18814
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18815
shlibpath_var=LD_LIBRARY_PATH
18816
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18818
openbsd2.[89] | openbsd2.[89].*)
18819
shlibpath_overrides_runpath=no
18822
shlibpath_overrides_runpath=yes
18826
shlibpath_overrides_runpath=yes
18831
libname_spec='$name'
18834
library_names_spec='$libname${shared_ext} $libname.a'
18835
dynamic_linker='OS/2 ld.exe'
18836
shlibpath_var=LIBPATH
18839
osf3* | osf4* | osf5*)
18843
soname_spec='${libname}${release}${shared_ext}$major'
18844
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18845
shlibpath_var=LD_LIBRARY_PATH
18846
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18847
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18858
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18859
soname_spec='${libname}${release}${shared_ext}$major'
18860
shlibpath_var=LD_LIBRARY_PATH
18861
shlibpath_overrides_runpath=yes
18862
hardcode_into_libs=yes
18863
# ldd complains unless libraries are executable
18864
postinstall_cmds='chmod +x $lib'
18869
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18870
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18871
shlibpath_var=LD_LIBRARY_PATH
18872
shlibpath_overrides_runpath=yes
18873
if test "$with_gnu_ld" = yes; then
18881
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18882
soname_spec='${libname}${release}${shared_ext}$major'
18883
shlibpath_var=LD_LIBRARY_PATH
18884
case $host_vendor in
18886
shlibpath_overrides_runpath=no
18888
export_dynamic_flag_spec='${wl}-Blargedynsym'
18889
runpath_var=LD_RUN_PATH
18897
shlibpath_overrides_runpath=no
18898
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18904
if test -d /usr/nec ;then
18906
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18907
soname_spec='$libname${shared_ext}.$major'
18908
shlibpath_var=LD_LIBRARY_PATH
18912
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18913
version_type=freebsd-elf
18916
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18917
soname_spec='${libname}${release}${shared_ext}$major'
18918
shlibpath_var=LD_LIBRARY_PATH
18919
hardcode_into_libs=yes
18920
if test "$with_gnu_ld" = yes; then
18921
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18922
shlibpath_overrides_runpath=no
18924
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18925
shlibpath_overrides_runpath=yes
18928
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18932
sys_lib_dlsearch_path_spec='/usr/lib'
18937
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18938
soname_spec='${libname}${release}${shared_ext}$major'
18939
shlibpath_var=LD_LIBRARY_PATH
18946
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18947
echo "${ECHO_T}$dynamic_linker" >&6; }
18948
test "$dynamic_linker" = no && can_build_shared=no
18950
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18951
echo $ECHO_N "(cached) $ECHO_C" >&6
18953
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18956
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18957
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18958
echo $ECHO_N "(cached) $ECHO_C" >&6
18960
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18963
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18965
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18966
if test "$GCC" = yes; then
18967
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18970
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18971
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18972
hardcode_action_GCJ=
18973
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18974
test -n "$runpath_var_GCJ" || \
18975
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18977
# We can hardcode non-existant directories.
18978
if test "$hardcode_direct_GCJ" != no &&
18979
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18980
# have to relink, otherwise we might link with an installed library
18981
# when we should be linking with a yet-to-be-installed one
18982
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18983
test "$hardcode_minus_L_GCJ" != no; then
18984
# Linking always hardcodes the temporary library directory.
18985
hardcode_action_GCJ=relink
18987
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18988
hardcode_action_GCJ=immediate
18991
# We cannot hardcode anything, or else we can only hardcode existing
18993
hardcode_action_GCJ=unsupported
18995
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18996
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18998
if test "$hardcode_action_GCJ" = relink; then
18999
# Fast installation is not supported
19000
enable_fast_install=no
19001
elif test "$shlibpath_overrides_runpath" = yes ||
19002
test "$enable_shared" = no; then
19003
# Fast installation is not necessary
19004
enable_fast_install=needless
19008
# The else clause should only fire when bootstrapping the
19009
# libtool distribution, otherwise you forgot to ship ltmain.sh
19010
# with your package, and you will get complaints that there are
19011
# no rules to generate ltmain.sh.
19012
if test -f "$ltmain"; then
19013
# See if we are running on zsh, and set the options which allow our commands through
19014
# without removal of \ escapes.
19015
if test -n "${ZSH_VERSION+set}" ; then
19016
setopt NO_GLOB_SUBST
19018
# Now quote all the things that may contain metacharacters while being
19019
# careful not to overquote the AC_SUBSTed values. We take copies of the
19020
# variables and quote the copies for generation of the libtool script.
19021
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19023
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19024
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19025
deplibs_check_method reload_flag reload_cmds need_locks \
19026
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19027
lt_cv_sys_global_symbol_to_c_name_address \
19028
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19029
old_postinstall_cmds old_postuninstall_cmds \
19033
lt_prog_compiler_wl_GCJ \
19034
lt_prog_compiler_pic_GCJ \
19035
lt_prog_compiler_static_GCJ \
19036
lt_prog_compiler_no_builtin_flag_GCJ \
19037
export_dynamic_flag_spec_GCJ \
19038
thread_safe_flag_spec_GCJ \
19039
whole_archive_flag_spec_GCJ \
19040
enable_shared_with_static_runtimes_GCJ \
19041
old_archive_cmds_GCJ \
19042
old_archive_from_new_cmds_GCJ \
19043
predep_objects_GCJ \
19044
postdep_objects_GCJ \
19047
compiler_lib_search_path_GCJ \
19048
compiler_lib_search_dirs_GCJ \
19050
archive_expsym_cmds_GCJ \
19051
postinstall_cmds_GCJ \
19052
postuninstall_cmds_GCJ \
19053
old_archive_from_expsyms_cmds_GCJ \
19054
allow_undefined_flag_GCJ \
19055
no_undefined_flag_GCJ \
19056
export_symbols_cmds_GCJ \
19057
hardcode_libdir_flag_spec_GCJ \
19058
hardcode_libdir_flag_spec_ld_GCJ \
19059
hardcode_libdir_separator_GCJ \
19060
hardcode_automatic_GCJ \
19062
module_expsym_cmds_GCJ \
19063
lt_cv_prog_compiler_c_o_GCJ \
19064
fix_srcfile_path_GCJ \
19065
exclude_expsyms_GCJ \
19066
include_expsyms_GCJ; do
19069
old_archive_cmds_GCJ | \
19070
old_archive_from_new_cmds_GCJ | \
19071
archive_cmds_GCJ | \
19072
archive_expsym_cmds_GCJ | \
19073
module_cmds_GCJ | \
19074
module_expsym_cmds_GCJ | \
19075
old_archive_from_expsyms_cmds_GCJ | \
19076
export_symbols_cmds_GCJ | \
19077
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19078
postinstall_cmds | postuninstall_cmds | \
19079
old_postinstall_cmds | old_postuninstall_cmds | \
19080
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19081
# Double-quote double-evaled strings.
19082
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19085
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19091
*'\$0 --fallback-echo"')
19092
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19098
cat <<__EOF__ >> "$cfgfile"
19099
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19101
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19103
# Shell to use when invoking shell scripts.
19106
# Whether or not to build shared libraries.
19107
build_libtool_libs=$enable_shared
19109
# Whether or not to build static libraries.
19110
build_old_libs=$enable_static
19112
# Whether or not to add -lc for building shared libraries.
19113
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19115
# Whether or not to disallow shared libs when runtime libs are static
19116
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19118
# Whether or not to optimize for fast installation.
19119
fast_install=$enable_fast_install
19122
host_alias=$host_alias
19126
# The build system.
19127
build_alias=$build_alias
19131
# An echo program that does not interpret backslashes.
19136
AR_FLAGS=$lt_AR_FLAGS
19141
# LTCC compiler flags.
19142
LTCFLAGS=$lt_LTCFLAGS
19144
# A language-specific compiler.
19145
CC=$lt_compiler_GCJ
19147
# Is the compiler the GNU C compiler?
19153
# The linker used to build libraries.
19156
# Whether we need hard or soft links.
19159
# A BSD-compatible nm program.
19162
# A symbol stripping program
19165
# Used to examine libraries when file_magic_cmd begins "file"
19166
MAGIC_CMD=$MAGIC_CMD
19168
# Used on cygwin: DLL creation program.
19171
# Used on cygwin: object dumper.
19174
# Used on cygwin: assembler.
19177
# The name of the directory that contains temporary libtool files.
19180
# How to create reloadable object files.
19181
reload_flag=$lt_reload_flag
19182
reload_cmds=$lt_reload_cmds
19184
# How to pass a linker flag through the compiler.
19185
wl=$lt_lt_prog_compiler_wl_GCJ
19187
# Object file suffix (normally "o").
19188
objext="$ac_objext"
19190
# Old archive suffix (normally "a").
19193
# Shared library suffix (normally ".so").
19194
shrext_cmds='$shrext_cmds'
19196
# Executable file suffix (normally "").
19199
# Additional compiler flags for building library objects.
19200
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19203
# What is the maximum length of a command?
19204
max_cmd_len=$lt_cv_sys_max_cmd_len
19206
# Does compiler simultaneously support -c and -o options?
19207
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19209
# Must we lock files when doing compilation?
19210
need_locks=$lt_need_locks
19212
# Do we need the lib prefix for modules?
19213
need_lib_prefix=$need_lib_prefix
19215
# Do we need a version for libraries?
19216
need_version=$need_version
19218
# Whether dlopen is supported.
19219
dlopen_support=$enable_dlopen
19221
# Whether dlopen of programs is supported.
19222
dlopen_self=$enable_dlopen_self
19224
# Whether dlopen of statically linked programs is supported.
19225
dlopen_self_static=$enable_dlopen_self_static
19227
# Compiler flag to prevent dynamic linking.
19228
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19230
# Compiler flag to turn off builtin functions.
19231
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19233
# Compiler flag to allow reflexive dlopens.
19234
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19236
# Compiler flag to generate shared objects directly from archives.
19237
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19239
# Compiler flag to generate thread-safe objects.
19240
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19242
# Library versioning type.
19243
version_type=$version_type
19245
# Format of library name prefix.
19246
libname_spec=$lt_libname_spec
19248
# List of archive names. First name is the real one, the rest are links.
19249
# The last name is the one that the linker finds with -lNAME.
19250
library_names_spec=$lt_library_names_spec
19252
# The coded name of the library, if different from the real name.
19253
soname_spec=$lt_soname_spec
19255
# Commands used to build and install an old-style archive.
19257
old_archive_cmds=$lt_old_archive_cmds_GCJ
19258
old_postinstall_cmds=$lt_old_postinstall_cmds
19259
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19261
# Create an old-style archive from a shared archive.
19262
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19264
# Create a temporary old-style archive to link instead of a shared archive.
19265
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19267
# Commands used to build and install a shared archive.
19268
archive_cmds=$lt_archive_cmds_GCJ
19269
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19270
postinstall_cmds=$lt_postinstall_cmds
19271
postuninstall_cmds=$lt_postuninstall_cmds
19273
# Commands used to build a loadable module (assumed same as above if empty)
19274
module_cmds=$lt_module_cmds_GCJ
19275
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19277
# Commands to strip libraries.
19278
old_striplib=$lt_old_striplib
19279
striplib=$lt_striplib
19281
# Dependencies to place before the objects being linked to create a
19283
predep_objects=$lt_predep_objects_GCJ
19285
# Dependencies to place after the objects being linked to create a
19287
postdep_objects=$lt_postdep_objects_GCJ
19289
# Dependencies to place before the objects being linked to create a
19291
predeps=$lt_predeps_GCJ
19293
# Dependencies to place after the objects being linked to create a
19295
postdeps=$lt_postdeps_GCJ
19297
# The directories searched by this compiler when creating a shared
19299
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19301
# The library search path used internally by the compiler when linking
19302
# a shared library.
19303
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19305
# Method to check whether dependent libraries are shared objects.
19306
deplibs_check_method=$lt_deplibs_check_method
19308
# Command to use when deplibs_check_method == file_magic.
19309
file_magic_cmd=$lt_file_magic_cmd
19311
# Flag that allows shared libraries with undefined symbols to be built.
19312
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19314
# Flag that forces no undefined symbols.
19315
no_undefined_flag=$lt_no_undefined_flag_GCJ
19317
# Commands used to finish a libtool library installation in a directory.
19318
finish_cmds=$lt_finish_cmds
19320
# Same as above, but a single script fragment to be evaled but not shown.
19321
finish_eval=$lt_finish_eval
19323
# Take the output of nm and produce a listing of raw symbols and C names.
19324
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19326
# Transform the output of nm in a proper C declaration
19327
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19329
# Transform the output of nm in a C name address pair
19330
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19332
# This is the shared library runtime path variable.
19333
runpath_var=$runpath_var
19335
# This is the shared library path variable.
19336
shlibpath_var=$shlibpath_var
19338
# Is shlibpath searched before the hard-coded library search path?
19339
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19341
# How to hardcode a shared library path into an executable.
19342
hardcode_action=$hardcode_action_GCJ
19344
# Whether we should hardcode library paths into libraries.
19345
hardcode_into_libs=$hardcode_into_libs
19347
# Flag to hardcode \$libdir into a binary during linking.
19348
# This must work even if \$libdir does not exist.
19349
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19351
# If ld is used when linking, flag to hardcode \$libdir into
19352
# a binary during linking. This must work even if \$libdir does
19354
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19356
# Whether we need a single -rpath flag with a separated argument.
19357
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19359
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19360
# resulting binary.
19361
hardcode_direct=$hardcode_direct_GCJ
19363
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19364
# resulting binary.
19365
hardcode_minus_L=$hardcode_minus_L_GCJ
19367
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19368
# the resulting binary.
19369
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19371
# Set to yes if building a shared library automatically hardcodes DIR into the library
19372
# and all subsequent libraries and executables linked against it.
19373
hardcode_automatic=$hardcode_automatic_GCJ
19375
# Variables whose values should be saved in libtool wrapper scripts and
19376
# restored at relink time.
19377
variables_saved_for_relink="$variables_saved_for_relink"
19379
# Whether libtool must link a program against all its dependency libraries.
19380
link_all_deplibs=$link_all_deplibs_GCJ
19382
# Compile-time system search path for libraries
19383
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19385
# Run-time system search path for libraries
19386
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19388
# Fix the shell variable \$srcfile for the compiler.
19389
fix_srcfile_path=$lt_fix_srcfile_path
19391
# Set to yes if exported symbols are required.
19392
always_export_symbols=$always_export_symbols_GCJ
19394
# The commands to list exported symbols.
19395
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19397
# The commands to extract the exported symbol list from a shared archive.
19398
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19400
# Symbols that should not be listed in the preloaded symbols.
19401
exclude_expsyms=$lt_exclude_expsyms_GCJ
19403
# Symbols that must always be exported.
19404
include_expsyms=$lt_include_expsyms_GCJ
19406
# ### END LIBTOOL TAG CONFIG: $tagname
19412
# If there is no Makefile yet, we rely on a make rule to execute
19413
# `config.status --recheck' to rerun these tests and create the
19414
# libtool script then.
19415
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19416
if test -f "$ltmain_in"; then
19417
test -f Makefile && make "$ltmain"
19423
ac_cpp='$CPP $CPPFLAGS'
19424
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19425
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19426
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19438
# Source file extension for RC test sources.
19441
# Object file extension for compiled RC test sources.
19445
# Code to be used in simple compile tests
19446
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19448
# Code to be used in simple link tests
19449
lt_simple_link_test_code="$lt_simple_compile_test_code"
19451
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19453
# If no C compiler was specified, use CC.
19456
# If no C compiler flags were specified, use CFLAGS.
19457
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19459
# Allow CC to be a program name with arguments.
19463
# save warnings/boilerplate of simple test code
19464
ac_outfile=conftest.$ac_objext
19465
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19466
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19467
_lt_compiler_boilerplate=`cat conftest.err`
19470
ac_outfile=conftest.$ac_objext
19471
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19472
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19473
_lt_linker_boilerplate=`cat conftest.err`
19477
# Allow CC to be a program name with arguments.
19482
for cc_temp in $compiler""; do
19484
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19485
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19490
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19492
lt_cv_prog_compiler_c_o_RC=yes
19494
# The else clause should only fire when bootstrapping the
19495
# libtool distribution, otherwise you forgot to ship ltmain.sh
19496
# with your package, and you will get complaints that there are
19497
# no rules to generate ltmain.sh.
19498
if test -f "$ltmain"; then
19499
# See if we are running on zsh, and set the options which allow our commands through
19500
# without removal of \ escapes.
19501
if test -n "${ZSH_VERSION+set}" ; then
19502
setopt NO_GLOB_SUBST
19504
# Now quote all the things that may contain metacharacters while being
19505
# careful not to overquote the AC_SUBSTed values. We take copies of the
19506
# variables and quote the copies for generation of the libtool script.
19507
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19509
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19510
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19511
deplibs_check_method reload_flag reload_cmds need_locks \
19512
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19513
lt_cv_sys_global_symbol_to_c_name_address \
19514
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19515
old_postinstall_cmds old_postuninstall_cmds \
19519
lt_prog_compiler_wl_RC \
19520
lt_prog_compiler_pic_RC \
19521
lt_prog_compiler_static_RC \
19522
lt_prog_compiler_no_builtin_flag_RC \
19523
export_dynamic_flag_spec_RC \
19524
thread_safe_flag_spec_RC \
19525
whole_archive_flag_spec_RC \
19526
enable_shared_with_static_runtimes_RC \
19527
old_archive_cmds_RC \
19528
old_archive_from_new_cmds_RC \
19529
predep_objects_RC \
19530
postdep_objects_RC \
19533
compiler_lib_search_path_RC \
19534
compiler_lib_search_dirs_RC \
19536
archive_expsym_cmds_RC \
19537
postinstall_cmds_RC \
19538
postuninstall_cmds_RC \
19539
old_archive_from_expsyms_cmds_RC \
19540
allow_undefined_flag_RC \
19541
no_undefined_flag_RC \
19542
export_symbols_cmds_RC \
19543
hardcode_libdir_flag_spec_RC \
19544
hardcode_libdir_flag_spec_ld_RC \
19545
hardcode_libdir_separator_RC \
19546
hardcode_automatic_RC \
19548
module_expsym_cmds_RC \
19549
lt_cv_prog_compiler_c_o_RC \
19550
fix_srcfile_path_RC \
19551
exclude_expsyms_RC \
19552
include_expsyms_RC; do
19555
old_archive_cmds_RC | \
19556
old_archive_from_new_cmds_RC | \
19557
archive_cmds_RC | \
19558
archive_expsym_cmds_RC | \
19560
module_expsym_cmds_RC | \
19561
old_archive_from_expsyms_cmds_RC | \
19562
export_symbols_cmds_RC | \
19563
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19564
postinstall_cmds | postuninstall_cmds | \
19565
old_postinstall_cmds | old_postuninstall_cmds | \
19566
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19567
# Double-quote double-evaled strings.
19568
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19571
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19577
*'\$0 --fallback-echo"')
19578
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19584
cat <<__EOF__ >> "$cfgfile"
19585
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19587
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19589
# Shell to use when invoking shell scripts.
19592
# Whether or not to build shared libraries.
19593
build_libtool_libs=$enable_shared
19595
# Whether or not to build static libraries.
19596
build_old_libs=$enable_static
19598
# Whether or not to add -lc for building shared libraries.
19599
build_libtool_need_lc=$archive_cmds_need_lc_RC
19601
# Whether or not to disallow shared libs when runtime libs are static
19602
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19604
# Whether or not to optimize for fast installation.
19605
fast_install=$enable_fast_install
19608
host_alias=$host_alias
19612
# The build system.
19613
build_alias=$build_alias
19617
# An echo program that does not interpret backslashes.
19622
AR_FLAGS=$lt_AR_FLAGS
19627
# LTCC compiler flags.
19628
LTCFLAGS=$lt_LTCFLAGS
19630
# A language-specific compiler.
19633
# Is the compiler the GNU C compiler?
19639
# The linker used to build libraries.
19642
# Whether we need hard or soft links.
19645
# A BSD-compatible nm program.
19648
# A symbol stripping program
19651
# Used to examine libraries when file_magic_cmd begins "file"
19652
MAGIC_CMD=$MAGIC_CMD
19654
# Used on cygwin: DLL creation program.
19657
# Used on cygwin: object dumper.
19660
# Used on cygwin: assembler.
19663
# The name of the directory that contains temporary libtool files.
19666
# How to create reloadable object files.
19667
reload_flag=$lt_reload_flag
19668
reload_cmds=$lt_reload_cmds
19670
# How to pass a linker flag through the compiler.
19671
wl=$lt_lt_prog_compiler_wl_RC
19673
# Object file suffix (normally "o").
19674
objext="$ac_objext"
19676
# Old archive suffix (normally "a").
19679
# Shared library suffix (normally ".so").
19680
shrext_cmds='$shrext_cmds'
19682
# Executable file suffix (normally "").
19685
# Additional compiler flags for building library objects.
19686
pic_flag=$lt_lt_prog_compiler_pic_RC
19689
# What is the maximum length of a command?
19690
max_cmd_len=$lt_cv_sys_max_cmd_len
19692
# Does compiler simultaneously support -c and -o options?
19693
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19695
# Must we lock files when doing compilation?
19696
need_locks=$lt_need_locks
19698
# Do we need the lib prefix for modules?
19699
need_lib_prefix=$need_lib_prefix
19701
# Do we need a version for libraries?
19702
need_version=$need_version
19704
# Whether dlopen is supported.
19705
dlopen_support=$enable_dlopen
19707
# Whether dlopen of programs is supported.
19708
dlopen_self=$enable_dlopen_self
19710
# Whether dlopen of statically linked programs is supported.
19711
dlopen_self_static=$enable_dlopen_self_static
19713
# Compiler flag to prevent dynamic linking.
19714
link_static_flag=$lt_lt_prog_compiler_static_RC
19716
# Compiler flag to turn off builtin functions.
19717
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19719
# Compiler flag to allow reflexive dlopens.
19720
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19722
# Compiler flag to generate shared objects directly from archives.
19723
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19725
# Compiler flag to generate thread-safe objects.
19726
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19728
# Library versioning type.
19729
version_type=$version_type
19731
# Format of library name prefix.
19732
libname_spec=$lt_libname_spec
19734
# List of archive names. First name is the real one, the rest are links.
19735
# The last name is the one that the linker finds with -lNAME.
19736
library_names_spec=$lt_library_names_spec
19738
# The coded name of the library, if different from the real name.
19739
soname_spec=$lt_soname_spec
19741
# Commands used to build and install an old-style archive.
19743
old_archive_cmds=$lt_old_archive_cmds_RC
19744
old_postinstall_cmds=$lt_old_postinstall_cmds
19745
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19747
# Create an old-style archive from a shared archive.
19748
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19750
# Create a temporary old-style archive to link instead of a shared archive.
19751
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19753
# Commands used to build and install a shared archive.
19754
archive_cmds=$lt_archive_cmds_RC
19755
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19756
postinstall_cmds=$lt_postinstall_cmds
19757
postuninstall_cmds=$lt_postuninstall_cmds
19759
# Commands used to build a loadable module (assumed same as above if empty)
19760
module_cmds=$lt_module_cmds_RC
19761
module_expsym_cmds=$lt_module_expsym_cmds_RC
19763
# Commands to strip libraries.
19764
old_striplib=$lt_old_striplib
19765
striplib=$lt_striplib
19767
# Dependencies to place before the objects being linked to create a
19769
predep_objects=$lt_predep_objects_RC
19771
# Dependencies to place after the objects being linked to create a
19773
postdep_objects=$lt_postdep_objects_RC
19775
# Dependencies to place before the objects being linked to create a
19777
predeps=$lt_predeps_RC
19779
# Dependencies to place after the objects being linked to create a
19781
postdeps=$lt_postdeps_RC
19783
# The directories searched by this compiler when creating a shared
19785
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19787
# The library search path used internally by the compiler when linking
19788
# a shared library.
19789
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19791
# Method to check whether dependent libraries are shared objects.
19792
deplibs_check_method=$lt_deplibs_check_method
19794
# Command to use when deplibs_check_method == file_magic.
19795
file_magic_cmd=$lt_file_magic_cmd
19797
# Flag that allows shared libraries with undefined symbols to be built.
19798
allow_undefined_flag=$lt_allow_undefined_flag_RC
19800
# Flag that forces no undefined symbols.
19801
no_undefined_flag=$lt_no_undefined_flag_RC
19803
# Commands used to finish a libtool library installation in a directory.
19804
finish_cmds=$lt_finish_cmds
19806
# Same as above, but a single script fragment to be evaled but not shown.
19807
finish_eval=$lt_finish_eval
19809
# Take the output of nm and produce a listing of raw symbols and C names.
19810
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19812
# Transform the output of nm in a proper C declaration
19813
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19815
# Transform the output of nm in a C name address pair
19816
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19818
# This is the shared library runtime path variable.
19819
runpath_var=$runpath_var
19821
# This is the shared library path variable.
19822
shlibpath_var=$shlibpath_var
19824
# Is shlibpath searched before the hard-coded library search path?
19825
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19827
# How to hardcode a shared library path into an executable.
19828
hardcode_action=$hardcode_action_RC
19830
# Whether we should hardcode library paths into libraries.
19831
hardcode_into_libs=$hardcode_into_libs
19833
# Flag to hardcode \$libdir into a binary during linking.
19834
# This must work even if \$libdir does not exist.
19835
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19837
# If ld is used when linking, flag to hardcode \$libdir into
19838
# a binary during linking. This must work even if \$libdir does
19840
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19842
# Whether we need a single -rpath flag with a separated argument.
19843
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19845
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19846
# resulting binary.
19847
hardcode_direct=$hardcode_direct_RC
19849
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19850
# resulting binary.
19851
hardcode_minus_L=$hardcode_minus_L_RC
19853
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19854
# the resulting binary.
19855
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19857
# Set to yes if building a shared library automatically hardcodes DIR into the library
19858
# and all subsequent libraries and executables linked against it.
19859
hardcode_automatic=$hardcode_automatic_RC
19861
# Variables whose values should be saved in libtool wrapper scripts and
19862
# restored at relink time.
19863
variables_saved_for_relink="$variables_saved_for_relink"
19865
# Whether libtool must link a program against all its dependency libraries.
19866
link_all_deplibs=$link_all_deplibs_RC
19868
# Compile-time system search path for libraries
19869
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19871
# Run-time system search path for libraries
19872
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19874
# Fix the shell variable \$srcfile for the compiler.
19875
fix_srcfile_path=$lt_fix_srcfile_path
19877
# Set to yes if exported symbols are required.
19878
always_export_symbols=$always_export_symbols_RC
19880
# The commands to list exported symbols.
19881
export_symbols_cmds=$lt_export_symbols_cmds_RC
19883
# The commands to extract the exported symbol list from a shared archive.
19884
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19886
# Symbols that should not be listed in the preloaded symbols.
19887
exclude_expsyms=$lt_exclude_expsyms_RC
19889
# Symbols that must always be exported.
19890
include_expsyms=$lt_include_expsyms_RC
19892
# ### END LIBTOOL TAG CONFIG: $tagname
19898
# If there is no Makefile yet, we rely on a make rule to execute
19899
# `config.status --recheck' to rerun these tests and create the
19900
# libtool script then.
19901
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19902
if test -f "$ltmain_in"; then
19903
test -f Makefile && make "$ltmain"
19909
ac_cpp='$CPP $CPPFLAGS'
19910
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19911
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19912
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19919
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19920
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19921
{ (exit 1); exit 1; }; }
19925
# Append the new tag name to the list of available tags.
19926
if test -n "$tagname" ; then
19927
available_tags="$available_tags $tagname"
19933
# Now substitute the updated list of available tags.
19934
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19935
mv "${ofile}T" "$ofile"
19939
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19940
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19941
{ (exit 1); exit 1; }; }
19947
# This can be used to rebuild libtool when needed
19948
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19950
# Always use our own libtool.
19951
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19953
# Prevent multiple expansion
19980
ac_header_dirent=no
19981
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19982
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19983
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19984
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19985
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19986
echo $ECHO_N "(cached) $ECHO_C" >&6
19988
cat >conftest.$ac_ext <<_ACEOF
19991
cat confdefs.h >>conftest.$ac_ext
19992
cat >>conftest.$ac_ext <<_ACEOF
19993
/* end confdefs.h. */
19994
#include <sys/types.h>
20006
rm -f conftest.$ac_objext
20007
if { (ac_try="$ac_compile"
20008
case "(($ac_try" in
20009
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010
*) ac_try_echo=$ac_try;;
20012
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20013
(eval "$ac_compile") 2>conftest.er1
20015
grep -v '^ *+' conftest.er1 >conftest.err
20017
cat conftest.err >&5
20018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019
(exit $ac_status); } && {
20020
test -z "$ac_c_werror_flag" ||
20021
test ! -s conftest.err
20022
} && test -s conftest.$ac_objext; then
20023
eval "$as_ac_Header=yes"
20025
echo "$as_me: failed program was:" >&5
20026
sed 's/^/| /' conftest.$ac_ext >&5
20028
eval "$as_ac_Header=no"
20031
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20033
ac_res=`eval echo '${'$as_ac_Header'}'`
20034
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20035
echo "${ECHO_T}$ac_res" >&6; }
20036
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20037
cat >>confdefs.h <<_ACEOF
20038
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20041
ac_header_dirent=$ac_hdr; break
20045
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20046
if test $ac_header_dirent = dirent.h; then
20047
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
20048
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20049
if test "${ac_cv_search_opendir+set}" = set; then
20050
echo $ECHO_N "(cached) $ECHO_C" >&6
20052
ac_func_search_save_LIBS=$LIBS
20053
cat >conftest.$ac_ext <<_ACEOF
20056
cat confdefs.h >>conftest.$ac_ext
20057
cat >>conftest.$ac_ext <<_ACEOF
20058
/* end confdefs.h. */
20060
/* Override any GCC internal prototype to avoid an error.
20061
Use char because int might match the return type of a GCC
20062
builtin and then its argument prototype would still apply. */
20075
for ac_lib in '' dir; do
20076
if test -z "$ac_lib"; then
20077
ac_res="none required"
20080
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20082
rm -f conftest.$ac_objext conftest$ac_exeext
20083
if { (ac_try="$ac_link"
20084
case "(($ac_try" in
20085
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20086
*) ac_try_echo=$ac_try;;
20088
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20089
(eval "$ac_link") 2>conftest.er1
20091
grep -v '^ *+' conftest.er1 >conftest.err
20093
cat conftest.err >&5
20094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095
(exit $ac_status); } && {
20096
test -z "$ac_c_werror_flag" ||
20097
test ! -s conftest.err
20098
} && test -s conftest$ac_exeext &&
20099
$as_test_x conftest$ac_exeext; then
20100
ac_cv_search_opendir=$ac_res
20102
echo "$as_me: failed program was:" >&5
20103
sed 's/^/| /' conftest.$ac_ext >&5
20108
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20110
if test "${ac_cv_search_opendir+set}" = set; then
20114
if test "${ac_cv_search_opendir+set}" = set; then
20117
ac_cv_search_opendir=no
20119
rm conftest.$ac_ext
20120
LIBS=$ac_func_search_save_LIBS
20122
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20123
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20124
ac_res=$ac_cv_search_opendir
20125
if test "$ac_res" != no; then
20126
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20131
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
20132
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20133
if test "${ac_cv_search_opendir+set}" = set; then
20134
echo $ECHO_N "(cached) $ECHO_C" >&6
20136
ac_func_search_save_LIBS=$LIBS
20137
cat >conftest.$ac_ext <<_ACEOF
20140
cat confdefs.h >>conftest.$ac_ext
20141
cat >>conftest.$ac_ext <<_ACEOF
20142
/* end confdefs.h. */
20144
/* Override any GCC internal prototype to avoid an error.
20145
Use char because int might match the return type of a GCC
20146
builtin and then its argument prototype would still apply. */
20159
for ac_lib in '' x; do
20160
if test -z "$ac_lib"; then
20161
ac_res="none required"
20164
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20166
rm -f conftest.$ac_objext conftest$ac_exeext
20167
if { (ac_try="$ac_link"
20168
case "(($ac_try" in
20169
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170
*) ac_try_echo=$ac_try;;
20172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173
(eval "$ac_link") 2>conftest.er1
20175
grep -v '^ *+' conftest.er1 >conftest.err
20177
cat conftest.err >&5
20178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179
(exit $ac_status); } && {
20180
test -z "$ac_c_werror_flag" ||
20181
test ! -s conftest.err
20182
} && test -s conftest$ac_exeext &&
20183
$as_test_x conftest$ac_exeext; then
20184
ac_cv_search_opendir=$ac_res
20186
echo "$as_me: failed program was:" >&5
20187
sed 's/^/| /' conftest.$ac_ext >&5
20192
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20194
if test "${ac_cv_search_opendir+set}" = set; then
20198
if test "${ac_cv_search_opendir+set}" = set; then
20201
ac_cv_search_opendir=no
20203
rm conftest.$ac_ext
20204
LIBS=$ac_func_search_save_LIBS
20206
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20207
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20208
ac_res=$ac_cv_search_opendir
20209
if test "$ac_res" != no; then
20210
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20216
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20217
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20218
if test "${ac_cv_header_stdc+set}" = set; then
20219
echo $ECHO_N "(cached) $ECHO_C" >&6
20221
cat >conftest.$ac_ext <<_ACEOF
20224
cat confdefs.h >>conftest.$ac_ext
20225
cat >>conftest.$ac_ext <<_ACEOF
20226
/* end confdefs.h. */
20227
#include <stdlib.h>
20228
#include <stdarg.h>
20229
#include <string.h>
20240
rm -f conftest.$ac_objext
20241
if { (ac_try="$ac_compile"
20242
case "(($ac_try" in
20243
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20244
*) ac_try_echo=$ac_try;;
20246
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20247
(eval "$ac_compile") 2>conftest.er1
20249
grep -v '^ *+' conftest.er1 >conftest.err
20251
cat conftest.err >&5
20252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253
(exit $ac_status); } && {
20254
test -z "$ac_c_werror_flag" ||
20255
test ! -s conftest.err
20256
} && test -s conftest.$ac_objext; then
20257
ac_cv_header_stdc=yes
20259
echo "$as_me: failed program was:" >&5
20260
sed 's/^/| /' conftest.$ac_ext >&5
20262
ac_cv_header_stdc=no
20265
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20267
if test $ac_cv_header_stdc = yes; then
20268
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20269
cat >conftest.$ac_ext <<_ACEOF
20272
cat confdefs.h >>conftest.$ac_ext
20273
cat >>conftest.$ac_ext <<_ACEOF
20274
/* end confdefs.h. */
20275
#include <string.h>
20278
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20279
$EGREP "memchr" >/dev/null 2>&1; then
20282
ac_cv_header_stdc=no
20288
if test $ac_cv_header_stdc = yes; then
20289
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20290
cat >conftest.$ac_ext <<_ACEOF
20293
cat confdefs.h >>conftest.$ac_ext
20294
cat >>conftest.$ac_ext <<_ACEOF
20295
/* end confdefs.h. */
20296
#include <stdlib.h>
20299
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20300
$EGREP "free" >/dev/null 2>&1; then
20303
ac_cv_header_stdc=no
20309
if test $ac_cv_header_stdc = yes; then
20310
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20311
if test "$cross_compiling" = yes; then
20314
cat >conftest.$ac_ext <<_ACEOF
20317
cat confdefs.h >>conftest.$ac_ext
20318
cat >>conftest.$ac_ext <<_ACEOF
20319
/* end confdefs.h. */
20321
#include <stdlib.h>
20322
#if ((' ' & 0x0FF) == 0x020)
20323
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20324
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20326
# define ISLOWER(c) \
20327
(('a' <= (c) && (c) <= 'i') \
20328
|| ('j' <= (c) && (c) <= 'r') \
20329
|| ('s' <= (c) && (c) <= 'z'))
20330
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20333
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20338
for (i = 0; i < 256; i++)
20339
if (XOR (islower (i), ISLOWER (i))
20340
|| toupper (i) != TOUPPER (i))
20345
rm -f conftest$ac_exeext
20346
if { (ac_try="$ac_link"
20347
case "(($ac_try" in
20348
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349
*) ac_try_echo=$ac_try;;
20351
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352
(eval "$ac_link") 2>&5
20354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20356
{ (case "(($ac_try" in
20357
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20358
*) ac_try_echo=$ac_try;;
20360
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20361
(eval "$ac_try") 2>&5
20363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364
(exit $ac_status); }; }; then
20367
echo "$as_me: program exited with status $ac_status" >&5
20368
echo "$as_me: failed program was:" >&5
20369
sed 's/^/| /' conftest.$ac_ext >&5
20371
( exit $ac_status )
20372
ac_cv_header_stdc=no
20374
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20380
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20381
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20382
if test $ac_cv_header_stdc = yes; then
20384
cat >>confdefs.h <<\_ACEOF
20385
#define STDC_HEADERS 1
20398
for ac_header in fcntl.h malloc.h inttypes.h sys/ioctl.h sys/mman.h \
20399
ctype.h unistd.h locale.h
20401
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20402
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20403
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20404
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20405
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20406
echo $ECHO_N "(cached) $ECHO_C" >&6
20408
ac_res=`eval echo '${'$as_ac_Header'}'`
20409
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20410
echo "${ECHO_T}$ac_res" >&6; }
20412
# Is the header compilable?
20413
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20414
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20415
cat >conftest.$ac_ext <<_ACEOF
20418
cat confdefs.h >>conftest.$ac_ext
20419
cat >>conftest.$ac_ext <<_ACEOF
20420
/* end confdefs.h. */
20421
$ac_includes_default
20422
#include <$ac_header>
20424
rm -f conftest.$ac_objext
20425
if { (ac_try="$ac_compile"
20426
case "(($ac_try" in
20427
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428
*) ac_try_echo=$ac_try;;
20430
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431
(eval "$ac_compile") 2>conftest.er1
20433
grep -v '^ *+' conftest.er1 >conftest.err
20435
cat conftest.err >&5
20436
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437
(exit $ac_status); } && {
20438
test -z "$ac_c_werror_flag" ||
20439
test ! -s conftest.err
20440
} && test -s conftest.$ac_objext; then
20441
ac_header_compiler=yes
20443
echo "$as_me: failed program was:" >&5
20444
sed 's/^/| /' conftest.$ac_ext >&5
20446
ac_header_compiler=no
20449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20450
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20451
echo "${ECHO_T}$ac_header_compiler" >&6; }
20453
# Is the header present?
20454
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20455
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20456
cat >conftest.$ac_ext <<_ACEOF
20459
cat confdefs.h >>conftest.$ac_ext
20460
cat >>conftest.$ac_ext <<_ACEOF
20461
/* end confdefs.h. */
20462
#include <$ac_header>
20464
if { (ac_try="$ac_cpp conftest.$ac_ext"
20465
case "(($ac_try" in
20466
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467
*) ac_try_echo=$ac_try;;
20469
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20470
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20472
grep -v '^ *+' conftest.er1 >conftest.err
20474
cat conftest.err >&5
20475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476
(exit $ac_status); } >/dev/null && {
20477
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20478
test ! -s conftest.err
20480
ac_header_preproc=yes
20482
echo "$as_me: failed program was:" >&5
20483
sed 's/^/| /' conftest.$ac_ext >&5
20485
ac_header_preproc=no
20488
rm -f conftest.err conftest.$ac_ext
20489
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20490
echo "${ECHO_T}$ac_header_preproc" >&6; }
20492
# So? What about this header?
20493
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20495
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20496
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20497
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20498
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20499
ac_header_preproc=yes
20502
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20503
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20504
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20505
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20506
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20507
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20508
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20509
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20510
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20511
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20512
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20513
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20517
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20518
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20519
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20520
echo $ECHO_N "(cached) $ECHO_C" >&6
20522
eval "$as_ac_Header=\$ac_header_preproc"
20524
ac_res=`eval echo '${'$as_ac_Header'}'`
20525
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20526
echo "${ECHO_T}$ac_res" >&6; }
20529
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20530
cat >>confdefs.h <<_ACEOF
20531
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20540
for ac_header in uuid/uuid.h
20542
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20543
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20544
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20545
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20546
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20547
echo $ECHO_N "(cached) $ECHO_C" >&6
20549
ac_res=`eval echo '${'$as_ac_Header'}'`
20550
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20551
echo "${ECHO_T}$ac_res" >&6; }
20553
# Is the header compilable?
20554
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20555
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20556
cat >conftest.$ac_ext <<_ACEOF
20559
cat confdefs.h >>conftest.$ac_ext
20560
cat >>conftest.$ac_ext <<_ACEOF
20561
/* end confdefs.h. */
20562
$ac_includes_default
20563
#include <$ac_header>
20565
rm -f conftest.$ac_objext
20566
if { (ac_try="$ac_compile"
20567
case "(($ac_try" in
20568
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569
*) ac_try_echo=$ac_try;;
20571
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20572
(eval "$ac_compile") 2>conftest.er1
20574
grep -v '^ *+' conftest.er1 >conftest.err
20576
cat conftest.err >&5
20577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578
(exit $ac_status); } && {
20579
test -z "$ac_c_werror_flag" ||
20580
test ! -s conftest.err
20581
} && test -s conftest.$ac_objext; then
20582
ac_header_compiler=yes
20584
echo "$as_me: failed program was:" >&5
20585
sed 's/^/| /' conftest.$ac_ext >&5
20587
ac_header_compiler=no
20590
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20591
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20592
echo "${ECHO_T}$ac_header_compiler" >&6; }
20594
# Is the header present?
20595
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20596
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20597
cat >conftest.$ac_ext <<_ACEOF
20600
cat confdefs.h >>conftest.$ac_ext
20601
cat >>conftest.$ac_ext <<_ACEOF
20602
/* end confdefs.h. */
20603
#include <$ac_header>
20605
if { (ac_try="$ac_cpp conftest.$ac_ext"
20606
case "(($ac_try" in
20607
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608
*) ac_try_echo=$ac_try;;
20610
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20613
grep -v '^ *+' conftest.er1 >conftest.err
20615
cat conftest.err >&5
20616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617
(exit $ac_status); } >/dev/null && {
20618
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20619
test ! -s conftest.err
20621
ac_header_preproc=yes
20623
echo "$as_me: failed program was:" >&5
20624
sed 's/^/| /' conftest.$ac_ext >&5
20626
ac_header_preproc=no
20629
rm -f conftest.err conftest.$ac_ext
20630
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20631
echo "${ECHO_T}$ac_header_preproc" >&6; }
20633
# So? What about this header?
20634
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20636
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20637
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20638
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20639
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20640
ac_header_preproc=yes
20643
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20644
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20645
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20646
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20647
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20648
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20649
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20650
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20651
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20652
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20653
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20654
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20658
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20659
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20660
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20661
echo $ECHO_N "(cached) $ECHO_C" >&6
20663
eval "$as_ac_Header=\$ac_header_preproc"
20665
ac_res=`eval echo '${'$as_ac_Header'}'`
20666
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20667
echo "${ECHO_T}$ac_res" >&6; }
20670
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20671
cat >>confdefs.h <<_ACEOF
20672
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20676
{ { echo "$as_me:$LINENO: error: 'You need the uuid library (from e2fsprogs)'" >&5
20677
echo "$as_me: error: 'You need the uuid library (from e2fsprogs)'" >&2;}
20678
{ (exit 1); exit 1; }; }
20686
{ echo "$as_me:$LINENO: checking for uuid_clear in -luuid" >&5
20687
echo $ECHO_N "checking for uuid_clear in -luuid... $ECHO_C" >&6; }
20688
if test "${ac_cv_lib_uuid_uuid_clear+set}" = set; then
20689
echo $ECHO_N "(cached) $ECHO_C" >&6
20691
ac_check_lib_save_LIBS=$LIBS
20692
LIBS="-luuid $LIBS"
20693
cat >conftest.$ac_ext <<_ACEOF
20696
cat confdefs.h >>conftest.$ac_ext
20697
cat >>conftest.$ac_ext <<_ACEOF
20698
/* end confdefs.h. */
20700
/* Override any GCC internal prototype to avoid an error.
20701
Use char because int might match the return type of a GCC
20702
builtin and then its argument prototype would still apply. */
20706
char uuid_clear ();
20710
return uuid_clear ();
20715
rm -f conftest.$ac_objext conftest$ac_exeext
20716
if { (ac_try="$ac_link"
20717
case "(($ac_try" in
20718
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719
*) ac_try_echo=$ac_try;;
20721
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722
(eval "$ac_link") 2>conftest.er1
20724
grep -v '^ *+' conftest.er1 >conftest.err
20726
cat conftest.err >&5
20727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728
(exit $ac_status); } && {
20729
test -z "$ac_c_werror_flag" ||
20730
test ! -s conftest.err
20731
} && test -s conftest$ac_exeext &&
20732
$as_test_x conftest$ac_exeext; then
20733
ac_cv_lib_uuid_uuid_clear=yes
20735
echo "$as_me: failed program was:" >&5
20736
sed 's/^/| /' conftest.$ac_ext >&5
20738
ac_cv_lib_uuid_uuid_clear=no
20741
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20742
conftest$ac_exeext conftest.$ac_ext
20743
LIBS=$ac_check_lib_save_LIBS
20745
{ echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_clear" >&5
20746
echo "${ECHO_T}$ac_cv_lib_uuid_uuid_clear" >&6; }
20747
if test $ac_cv_lib_uuid_uuid_clear = yes; then
20748
cat >>confdefs.h <<_ACEOF
20749
#define HAVE_LIBUUID 1
20752
LIBS="-luuid $LIBS"
20755
{ { echo "$as_me:$LINENO: error: 'You need the uuid library (from e2fsprogs)'" >&5
20756
echo "$as_me: error: 'You need the uuid library (from e2fsprogs)'" >&2;}
20757
{ (exit 1); exit 1; }; }
20765
for ac_func in setlocale
20767
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20768
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20769
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20770
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20771
echo $ECHO_N "(cached) $ECHO_C" >&6
20773
cat >conftest.$ac_ext <<_ACEOF
20776
cat confdefs.h >>conftest.$ac_ext
20777
cat >>conftest.$ac_ext <<_ACEOF
20778
/* end confdefs.h. */
20779
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20780
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20781
#define $ac_func innocuous_$ac_func
20783
/* System header to define __stub macros and hopefully few prototypes,
20784
which can conflict with char $ac_func (); below.
20785
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20786
<limits.h> exists even on freestanding compilers. */
20789
# include <limits.h>
20791
# include <assert.h>
20796
/* Override any GCC internal prototype to avoid an error.
20797
Use char because int might match the return type of a GCC
20798
builtin and then its argument prototype would still apply. */
20803
/* The GNU C library defines this for functions which it implements
20804
to always fail with ENOSYS. Some functions are actually named
20805
something starting with __ and the normal name is an alias. */
20806
#if defined __stub_$ac_func || defined __stub___$ac_func
20813
return $ac_func ();
20818
rm -f conftest.$ac_objext conftest$ac_exeext
20819
if { (ac_try="$ac_link"
20820
case "(($ac_try" in
20821
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822
*) ac_try_echo=$ac_try;;
20824
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825
(eval "$ac_link") 2>conftest.er1
20827
grep -v '^ *+' conftest.er1 >conftest.err
20829
cat conftest.err >&5
20830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831
(exit $ac_status); } && {
20832
test -z "$ac_c_werror_flag" ||
20833
test ! -s conftest.err
20834
} && test -s conftest$ac_exeext &&
20835
$as_test_x conftest$ac_exeext; then
20836
eval "$as_ac_var=yes"
20838
echo "$as_me: failed program was:" >&5
20839
sed 's/^/| /' conftest.$ac_ext >&5
20841
eval "$as_ac_var=no"
20844
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20845
conftest$ac_exeext conftest.$ac_ext
20847
ac_res=`eval echo '${'$as_ac_var'}'`
20848
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20849
echo "${ECHO_T}$ac_res" >&6; }
20850
if test `eval echo '${'$as_ac_var'}'` = yes; then
20851
cat >>confdefs.h <<_ACEOF
20852
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20860
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20861
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20862
if test "${ac_cv_c_const+set}" = set; then
20863
echo $ECHO_N "(cached) $ECHO_C" >&6
20865
cat >conftest.$ac_ext <<_ACEOF
20868
cat confdefs.h >>conftest.$ac_ext
20869
cat >>conftest.$ac_ext <<_ACEOF
20870
/* end confdefs.h. */
20875
/* FIXME: Include the comments suggested by Paul. */
20876
#ifndef __cplusplus
20877
/* Ultrix mips cc rejects this. */
20878
typedef int charset[2];
20880
/* SunOS 4.1.1 cc rejects this. */
20881
char const *const *pcpcc;
20883
/* NEC SVR4.0.2 mips cc rejects this. */
20884
struct point {int x, y;};
20885
static struct point const zero = {0,0};
20886
/* AIX XL C 1.02.0.0 rejects this.
20887
It does not let you subtract one const X* pointer from another in
20888
an arm of an if-expression whose if-part is not a constant
20890
const char *g = "string";
20891
pcpcc = &g + (g ? g-g : 0);
20892
/* HPUX 7.0 cc rejects these. */
20894
ppc = (char**) pcpcc;
20895
pcpcc = (char const *const *) ppc;
20896
{ /* SCO 3.2v4 cc rejects this. */
20898
char const *s = 0 ? (char *) 0 : (char const *) 0;
20903
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20904
int x[] = {25, 17};
20905
const int *foo = &x[0];
20908
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20909
typedef const int *iptr;
20913
{ /* AIX XL C 1.02.0.0 rejects this saying
20914
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20915
struct s { int j; const int *ap[3]; };
20916
struct s *b; b->j = 5;
20918
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20919
const int foo = 10;
20920
if (!foo) return 0;
20922
return !cs[0] && !zero.x;
20929
rm -f conftest.$ac_objext
20930
if { (ac_try="$ac_compile"
20931
case "(($ac_try" in
20932
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933
*) ac_try_echo=$ac_try;;
20935
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936
(eval "$ac_compile") 2>conftest.er1
20938
grep -v '^ *+' conftest.er1 >conftest.err
20940
cat conftest.err >&5
20941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942
(exit $ac_status); } && {
20943
test -z "$ac_c_werror_flag" ||
20944
test ! -s conftest.err
20945
} && test -s conftest.$ac_objext; then
20948
echo "$as_me: failed program was:" >&5
20949
sed 's/^/| /' conftest.$ac_ext >&5
20954
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20956
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20957
echo "${ECHO_T}$ac_cv_c_const" >&6; }
20958
if test $ac_cv_c_const = no; then
20960
cat >>confdefs.h <<\_ACEOF
20966
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20967
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20968
if test "${ac_cv_c_bigendian+set}" = set; then
20969
echo $ECHO_N "(cached) $ECHO_C" >&6
20971
# See if sys/param.h defines the BYTE_ORDER macro.
20972
cat >conftest.$ac_ext <<_ACEOF
20975
cat confdefs.h >>conftest.$ac_ext
20976
cat >>conftest.$ac_ext <<_ACEOF
20977
/* end confdefs.h. */
20978
#include <sys/types.h>
20979
#include <sys/param.h>
20984
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
20985
&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
20986
bogus endian macros
20993
rm -f conftest.$ac_objext
20994
if { (ac_try="$ac_compile"
20995
case "(($ac_try" in
20996
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997
*) ac_try_echo=$ac_try;;
20999
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000
(eval "$ac_compile") 2>conftest.er1
21002
grep -v '^ *+' conftest.er1 >conftest.err
21004
cat conftest.err >&5
21005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006
(exit $ac_status); } && {
21007
test -z "$ac_c_werror_flag" ||
21008
test ! -s conftest.err
21009
} && test -s conftest.$ac_objext; then
21010
# It does; now see whether it defined to BIG_ENDIAN or not.
21011
cat >conftest.$ac_ext <<_ACEOF
21014
cat confdefs.h >>conftest.$ac_ext
21015
cat >>conftest.$ac_ext <<_ACEOF
21016
/* end confdefs.h. */
21017
#include <sys/types.h>
21018
#include <sys/param.h>
21023
#if BYTE_ORDER != BIG_ENDIAN
21031
rm -f conftest.$ac_objext
21032
if { (ac_try="$ac_compile"
21033
case "(($ac_try" in
21034
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035
*) ac_try_echo=$ac_try;;
21037
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21038
(eval "$ac_compile") 2>conftest.er1
21040
grep -v '^ *+' conftest.er1 >conftest.err
21042
cat conftest.err >&5
21043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044
(exit $ac_status); } && {
21045
test -z "$ac_c_werror_flag" ||
21046
test ! -s conftest.err
21047
} && test -s conftest.$ac_objext; then
21048
ac_cv_c_bigendian=yes
21050
echo "$as_me: failed program was:" >&5
21051
sed 's/^/| /' conftest.$ac_ext >&5
21053
ac_cv_c_bigendian=no
21056
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21058
echo "$as_me: failed program was:" >&5
21059
sed 's/^/| /' conftest.$ac_ext >&5
21061
# It does not; compile a test program.
21062
if test "$cross_compiling" = yes; then
21063
# try to guess the endianness by grepping values into an object file
21064
ac_cv_c_bigendian=unknown
21065
cat >conftest.$ac_ext <<_ACEOF
21068
cat confdefs.h >>conftest.$ac_ext
21069
cat >>conftest.$ac_ext <<_ACEOF
21070
/* end confdefs.h. */
21071
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21072
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21073
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21074
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21075
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21076
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21080
_ascii (); _ebcdic ();
21085
rm -f conftest.$ac_objext
21086
if { (ac_try="$ac_compile"
21087
case "(($ac_try" in
21088
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21089
*) ac_try_echo=$ac_try;;
21091
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21092
(eval "$ac_compile") 2>conftest.er1
21094
grep -v '^ *+' conftest.er1 >conftest.err
21096
cat conftest.err >&5
21097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098
(exit $ac_status); } && {
21099
test -z "$ac_c_werror_flag" ||
21100
test ! -s conftest.err
21101
} && test -s conftest.$ac_objext; then
21102
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21103
ac_cv_c_bigendian=yes
21105
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21106
if test "$ac_cv_c_bigendian" = unknown; then
21107
ac_cv_c_bigendian=no
21109
# finding both strings is unlikely to happen, but who knows?
21110
ac_cv_c_bigendian=unknown
21114
echo "$as_me: failed program was:" >&5
21115
sed 's/^/| /' conftest.$ac_ext >&5
21120
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21122
cat >conftest.$ac_ext <<_ACEOF
21125
cat confdefs.h >>conftest.$ac_ext
21126
cat >>conftest.$ac_ext <<_ACEOF
21127
/* end confdefs.h. */
21128
$ac_includes_default
21133
/* Are we little or big endian? From Harbison&Steele. */
21137
char c[sizeof (long int)];
21140
return u.c[sizeof (long int) - 1] == 1;
21146
rm -f conftest$ac_exeext
21147
if { (ac_try="$ac_link"
21148
case "(($ac_try" in
21149
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150
*) ac_try_echo=$ac_try;;
21152
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153
(eval "$ac_link") 2>&5
21155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21157
{ (case "(($ac_try" in
21158
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159
*) ac_try_echo=$ac_try;;
21161
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162
(eval "$ac_try") 2>&5
21164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165
(exit $ac_status); }; }; then
21166
ac_cv_c_bigendian=no
21168
echo "$as_me: program exited with status $ac_status" >&5
21169
echo "$as_me: failed program was:" >&5
21170
sed 's/^/| /' conftest.$ac_ext >&5
21172
( exit $ac_status )
21173
ac_cv_c_bigendian=yes
21175
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21181
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21183
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21184
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21185
case $ac_cv_c_bigendian in
21188
cat >>confdefs.h <<\_ACEOF
21189
#define WORDS_BIGENDIAN 1
21195
{ { echo "$as_me:$LINENO: error: unknown endianness
21196
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21197
echo "$as_me: error: unknown endianness
21198
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21199
{ (exit 1); exit 1; }; } ;;
21202
{ echo "$as_me:$LINENO: checking for off_t" >&5
21203
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21204
if test "${ac_cv_type_off_t+set}" = set; then
21205
echo $ECHO_N "(cached) $ECHO_C" >&6
21207
cat >conftest.$ac_ext <<_ACEOF
21210
cat confdefs.h >>conftest.$ac_ext
21211
cat >>conftest.$ac_ext <<_ACEOF
21212
/* end confdefs.h. */
21213
$ac_includes_default
21214
typedef off_t ac__type_new_;
21218
if ((ac__type_new_ *) 0)
21220
if (sizeof (ac__type_new_))
21226
rm -f conftest.$ac_objext
21227
if { (ac_try="$ac_compile"
21228
case "(($ac_try" in
21229
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230
*) ac_try_echo=$ac_try;;
21232
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233
(eval "$ac_compile") 2>conftest.er1
21235
grep -v '^ *+' conftest.er1 >conftest.err
21237
cat conftest.err >&5
21238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239
(exit $ac_status); } && {
21240
test -z "$ac_c_werror_flag" ||
21241
test ! -s conftest.err
21242
} && test -s conftest.$ac_objext; then
21243
ac_cv_type_off_t=yes
21245
echo "$as_me: failed program was:" >&5
21246
sed 's/^/| /' conftest.$ac_ext >&5
21248
ac_cv_type_off_t=no
21251
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21254
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21255
if test $ac_cv_type_off_t = yes; then
21259
cat >>confdefs.h <<_ACEOF
21260
#define off_t long int
21265
{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21266
echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21267
if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21268
echo $ECHO_N "(cached) $ECHO_C" >&6
21270
cat >conftest.$ac_ext <<_ACEOF
21273
cat confdefs.h >>conftest.$ac_ext
21274
cat >>conftest.$ac_ext <<_ACEOF
21275
/* end confdefs.h. */
21276
$ac_includes_default
21280
static struct stat ac_aggr;
21281
if (ac_aggr.st_rdev)
21287
rm -f conftest.$ac_objext
21288
if { (ac_try="$ac_compile"
21289
case "(($ac_try" in
21290
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21291
*) ac_try_echo=$ac_try;;
21293
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21294
(eval "$ac_compile") 2>conftest.er1
21296
grep -v '^ *+' conftest.er1 >conftest.err
21298
cat conftest.err >&5
21299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300
(exit $ac_status); } && {
21301
test -z "$ac_c_werror_flag" ||
21302
test ! -s conftest.err
21303
} && test -s conftest.$ac_objext; then
21304
ac_cv_member_struct_stat_st_rdev=yes
21306
echo "$as_me: failed program was:" >&5
21307
sed 's/^/| /' conftest.$ac_ext >&5
21309
cat >conftest.$ac_ext <<_ACEOF
21312
cat confdefs.h >>conftest.$ac_ext
21313
cat >>conftest.$ac_ext <<_ACEOF
21314
/* end confdefs.h. */
21315
$ac_includes_default
21319
static struct stat ac_aggr;
21320
if (sizeof ac_aggr.st_rdev)
21326
rm -f conftest.$ac_objext
21327
if { (ac_try="$ac_compile"
21328
case "(($ac_try" in
21329
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21330
*) ac_try_echo=$ac_try;;
21332
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21333
(eval "$ac_compile") 2>conftest.er1
21335
grep -v '^ *+' conftest.er1 >conftest.err
21337
cat conftest.err >&5
21338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339
(exit $ac_status); } && {
21340
test -z "$ac_c_werror_flag" ||
21341
test ! -s conftest.err
21342
} && test -s conftest.$ac_objext; then
21343
ac_cv_member_struct_stat_st_rdev=yes
21345
echo "$as_me: failed program was:" >&5
21346
sed 's/^/| /' conftest.$ac_ext >&5
21348
ac_cv_member_struct_stat_st_rdev=no
21351
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21354
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21356
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21357
echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21358
if test $ac_cv_member_struct_stat_st_rdev = yes; then
21360
cat >>confdefs.h <<_ACEOF
21361
#define HAVE_STRUCT_STAT_ST_RDEV 1
21365
cat >>confdefs.h <<\_ACEOF
21366
#define HAVE_ST_RDEV 1
21372
# Check whether --enable-largefile was given.
21373
if test "${enable_largefile+set}" = set; then
21374
enableval=$enable_largefile;
21377
if test "$enable_largefile" != no; then
21379
{ echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
21380
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
21381
if test "${ac_cv_sys_largefile_CC+set}" = set; then
21382
echo $ECHO_N "(cached) $ECHO_C" >&6
21384
ac_cv_sys_largefile_CC=no
21385
if test "$GCC" != yes; then
21388
# IRIX 6.2 and later do not support large files by default,
21389
# so use the C compiler's -n32 option if that helps.
21390
cat >conftest.$ac_ext <<_ACEOF
21393
cat confdefs.h >>conftest.$ac_ext
21394
cat >>conftest.$ac_ext <<_ACEOF
21395
/* end confdefs.h. */
21396
#include <sys/types.h>
21397
/* Check that off_t can represent 2**63 - 1 correctly.
21398
We can't simply define LARGE_OFF_T to be 9223372036854775807,
21399
since some C++ compilers masquerading as C compilers
21400
incorrectly reject 9223372036854775807. */
21401
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21402
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21403
&& LARGE_OFF_T % 2147483647 == 1)
21413
rm -f conftest.$ac_objext
21414
if { (ac_try="$ac_compile"
21415
case "(($ac_try" in
21416
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417
*) ac_try_echo=$ac_try;;
21419
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420
(eval "$ac_compile") 2>conftest.er1
21422
grep -v '^ *+' conftest.er1 >conftest.err
21424
cat conftest.err >&5
21425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426
(exit $ac_status); } && {
21427
test -z "$ac_c_werror_flag" ||
21428
test ! -s conftest.err
21429
} && test -s conftest.$ac_objext; then
21432
echo "$as_me: failed program was:" >&5
21433
sed 's/^/| /' conftest.$ac_ext >&5
21438
rm -f core conftest.err conftest.$ac_objext
21440
rm -f conftest.$ac_objext
21441
if { (ac_try="$ac_compile"
21442
case "(($ac_try" in
21443
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21444
*) ac_try_echo=$ac_try;;
21446
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21447
(eval "$ac_compile") 2>conftest.er1
21449
grep -v '^ *+' conftest.er1 >conftest.err
21451
cat conftest.err >&5
21452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453
(exit $ac_status); } && {
21454
test -z "$ac_c_werror_flag" ||
21455
test ! -s conftest.err
21456
} && test -s conftest.$ac_objext; then
21457
ac_cv_sys_largefile_CC=' -n32'; break
21459
echo "$as_me: failed program was:" >&5
21460
sed 's/^/| /' conftest.$ac_ext >&5
21465
rm -f core conftest.err conftest.$ac_objext
21469
rm -f conftest.$ac_ext
21472
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
21473
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
21474
if test "$ac_cv_sys_largefile_CC" != no; then
21475
CC=$CC$ac_cv_sys_largefile_CC
21478
{ echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21479
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
21480
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21481
echo $ECHO_N "(cached) $ECHO_C" >&6
21484
cat >conftest.$ac_ext <<_ACEOF
21487
cat confdefs.h >>conftest.$ac_ext
21488
cat >>conftest.$ac_ext <<_ACEOF
21489
/* end confdefs.h. */
21490
#include <sys/types.h>
21491
/* Check that off_t can represent 2**63 - 1 correctly.
21492
We can't simply define LARGE_OFF_T to be 9223372036854775807,
21493
since some C++ compilers masquerading as C compilers
21494
incorrectly reject 9223372036854775807. */
21495
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21496
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21497
&& LARGE_OFF_T % 2147483647 == 1)
21507
rm -f conftest.$ac_objext
21508
if { (ac_try="$ac_compile"
21509
case "(($ac_try" in
21510
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21511
*) ac_try_echo=$ac_try;;
21513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21514
(eval "$ac_compile") 2>conftest.er1
21516
grep -v '^ *+' conftest.er1 >conftest.err
21518
cat conftest.err >&5
21519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520
(exit $ac_status); } && {
21521
test -z "$ac_c_werror_flag" ||
21522
test ! -s conftest.err
21523
} && test -s conftest.$ac_objext; then
21524
ac_cv_sys_file_offset_bits=no; break
21526
echo "$as_me: failed program was:" >&5
21527
sed 's/^/| /' conftest.$ac_ext >&5
21532
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21533
cat >conftest.$ac_ext <<_ACEOF
21536
cat confdefs.h >>conftest.$ac_ext
21537
cat >>conftest.$ac_ext <<_ACEOF
21538
/* end confdefs.h. */
21539
#define _FILE_OFFSET_BITS 64
21540
#include <sys/types.h>
21541
/* Check that off_t can represent 2**63 - 1 correctly.
21542
We can't simply define LARGE_OFF_T to be 9223372036854775807,
21543
since some C++ compilers masquerading as C compilers
21544
incorrectly reject 9223372036854775807. */
21545
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21546
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21547
&& LARGE_OFF_T % 2147483647 == 1)
21557
rm -f conftest.$ac_objext
21558
if { (ac_try="$ac_compile"
21559
case "(($ac_try" in
21560
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561
*) ac_try_echo=$ac_try;;
21563
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21564
(eval "$ac_compile") 2>conftest.er1
21566
grep -v '^ *+' conftest.er1 >conftest.err
21568
cat conftest.err >&5
21569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570
(exit $ac_status); } && {
21571
test -z "$ac_c_werror_flag" ||
21572
test ! -s conftest.err
21573
} && test -s conftest.$ac_objext; then
21574
ac_cv_sys_file_offset_bits=64; break
21576
echo "$as_me: failed program was:" >&5
21577
sed 's/^/| /' conftest.$ac_ext >&5
21582
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21583
ac_cv_sys_file_offset_bits=unknown
21587
{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21588
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
21589
case $ac_cv_sys_file_offset_bits in #(
21592
cat >>confdefs.h <<_ACEOF
21593
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21598
if test $ac_cv_sys_file_offset_bits = unknown; then
21599
{ echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21600
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
21601
if test "${ac_cv_sys_large_files+set}" = set; then
21602
echo $ECHO_N "(cached) $ECHO_C" >&6
21605
cat >conftest.$ac_ext <<_ACEOF
21608
cat confdefs.h >>conftest.$ac_ext
21609
cat >>conftest.$ac_ext <<_ACEOF
21610
/* end confdefs.h. */
21611
#include <sys/types.h>
21612
/* Check that off_t can represent 2**63 - 1 correctly.
21613
We can't simply define LARGE_OFF_T to be 9223372036854775807,
21614
since some C++ compilers masquerading as C compilers
21615
incorrectly reject 9223372036854775807. */
21616
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21617
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21618
&& LARGE_OFF_T % 2147483647 == 1)
21628
rm -f conftest.$ac_objext
21629
if { (ac_try="$ac_compile"
21630
case "(($ac_try" in
21631
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21632
*) ac_try_echo=$ac_try;;
21634
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21635
(eval "$ac_compile") 2>conftest.er1
21637
grep -v '^ *+' conftest.er1 >conftest.err
21639
cat conftest.err >&5
21640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641
(exit $ac_status); } && {
21642
test -z "$ac_c_werror_flag" ||
21643
test ! -s conftest.err
21644
} && test -s conftest.$ac_objext; then
21645
ac_cv_sys_large_files=no; break
21647
echo "$as_me: failed program was:" >&5
21648
sed 's/^/| /' conftest.$ac_ext >&5
21653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21654
cat >conftest.$ac_ext <<_ACEOF
21657
cat confdefs.h >>conftest.$ac_ext
21658
cat >>conftest.$ac_ext <<_ACEOF
21659
/* end confdefs.h. */
21660
#define _LARGE_FILES 1
21661
#include <sys/types.h>
21662
/* Check that off_t can represent 2**63 - 1 correctly.
21663
We can't simply define LARGE_OFF_T to be 9223372036854775807,
21664
since some C++ compilers masquerading as C compilers
21665
incorrectly reject 9223372036854775807. */
21666
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21667
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21668
&& LARGE_OFF_T % 2147483647 == 1)
21678
rm -f conftest.$ac_objext
21679
if { (ac_try="$ac_compile"
21680
case "(($ac_try" in
21681
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21682
*) ac_try_echo=$ac_try;;
21684
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21685
(eval "$ac_compile") 2>conftest.er1
21687
grep -v '^ *+' conftest.er1 >conftest.err
21689
cat conftest.err >&5
21690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691
(exit $ac_status); } && {
21692
test -z "$ac_c_werror_flag" ||
21693
test ! -s conftest.err
21694
} && test -s conftest.$ac_objext; then
21695
ac_cv_sys_large_files=1; break
21697
echo "$as_me: failed program was:" >&5
21698
sed 's/^/| /' conftest.$ac_ext >&5
21703
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21704
ac_cv_sys_large_files=unknown
21708
{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21709
echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
21710
case $ac_cv_sys_large_files in #(
21713
cat >>confdefs.h <<_ACEOF
21714
#define _LARGE_FILES $ac_cv_sys_large_files
21723
if test $ac_cv_c_compiler_gnu = yes; then
21724
{ echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21725
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
21726
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21727
echo $ECHO_N "(cached) $ECHO_C" >&6
21729
ac_pattern="Autoconf.*'x'"
21730
cat >conftest.$ac_ext <<_ACEOF
21733
cat confdefs.h >>conftest.$ac_ext
21734
cat >>conftest.$ac_ext <<_ACEOF
21735
/* end confdefs.h. */
21739
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21740
$EGREP "$ac_pattern" >/dev/null 2>&1; then
21741
ac_cv_prog_gcc_traditional=yes
21743
ac_cv_prog_gcc_traditional=no
21748
if test $ac_cv_prog_gcc_traditional = no; then
21749
cat >conftest.$ac_ext <<_ACEOF
21752
cat confdefs.h >>conftest.$ac_ext
21753
cat >>conftest.$ac_ext <<_ACEOF
21754
/* end confdefs.h. */
21755
#include <termio.h>
21758
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21759
$EGREP "$ac_pattern" >/dev/null 2>&1; then
21760
ac_cv_prog_gcc_traditional=yes
21766
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21767
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
21768
if test $ac_cv_prog_gcc_traditional = yes; then
21769
CC="$CC -traditional"
21775
GETTEXT_PACKAGE=cryptsetup-luks
21778
cat >>confdefs.h <<_ACEOF
21779
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
21784
{ echo "$as_me:$LINENO: checking whether NLS is requested" >&5
21785
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
21786
# Check whether --enable-nls was given.
21787
if test "${enable_nls+set}" = set; then
21788
enableval=$enable_nls; USE_NLS=$enableval
21793
{ echo "$as_me:$LINENO: result: $USE_NLS" >&5
21794
echo "${ECHO_T}$USE_NLS" >&6; }
21801
# Prepare PATH_SEPARATOR.
21802
# The user is always right.
21803
if test "${PATH_SEPARATOR+set}" != set; then
21804
echo "#! /bin/sh" >conf$$.sh
21805
echo "exit 0" >>conf$$.sh
21807
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21815
# Find out how to test for executable files. Don't use a zero-byte file,
21816
# as systems may use methods other than mode bits to determine executability.
21817
cat >conf$$.file <<_ASEOF
21821
chmod +x conf$$.file
21822
if test -x conf$$.file >/dev/null 2>&1; then
21823
ac_executable_p="test -x"
21825
ac_executable_p="test -f"
21829
# Extract the first word of "msgfmt", so it can be a program name with args.
21830
set dummy msgfmt; ac_word=$2
21831
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21832
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21833
if test "${ac_cv_path_MSGFMT+set}" = set; then
21834
echo $ECHO_N "(cached) $ECHO_C" >&6
21838
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21841
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21842
for ac_dir in $PATH; do
21844
test -z "$ac_dir" && ac_dir=.
21845
for ac_exec_ext in '' $ac_executable_extensions; do
21846
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21847
echo "$as_me: trying $ac_dir/$ac_word..." >&5
21848
if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
21849
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21850
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
21857
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
21861
MSGFMT="$ac_cv_path_MSGFMT"
21862
if test "$MSGFMT" != ":"; then
21863
{ echo "$as_me:$LINENO: result: $MSGFMT" >&5
21864
echo "${ECHO_T}$MSGFMT" >&6; }
21866
{ echo "$as_me:$LINENO: result: no" >&5
21867
echo "${ECHO_T}no" >&6; }
21870
# Extract the first word of "gmsgfmt", so it can be a program name with args.
21871
set dummy gmsgfmt; ac_word=$2
21872
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21873
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21874
if test "${ac_cv_path_GMSGFMT+set}" = set; then
21875
echo $ECHO_N "(cached) $ECHO_C" >&6
21879
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21882
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21883
for as_dir in $PATH
21886
test -z "$as_dir" && as_dir=.
21887
for ac_exec_ext in '' $ac_executable_extensions; do
21888
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21889
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21890
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21897
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
21901
GMSGFMT=$ac_cv_path_GMSGFMT
21902
if test -n "$GMSGFMT"; then
21903
{ echo "$as_me:$LINENO: result: $GMSGFMT" >&5
21904
echo "${ECHO_T}$GMSGFMT" >&6; }
21906
{ echo "$as_me:$LINENO: result: no" >&5
21907
echo "${ECHO_T}no" >&6; }
21912
case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21913
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
21914
*) MSGFMT_015=$MSGFMT ;;
21917
case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21918
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
21919
*) GMSGFMT_015=$GMSGFMT ;;
21924
# Prepare PATH_SEPARATOR.
21925
# The user is always right.
21926
if test "${PATH_SEPARATOR+set}" != set; then
21927
echo "#! /bin/sh" >conf$$.sh
21928
echo "exit 0" >>conf$$.sh
21930
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21938
# Find out how to test for executable files. Don't use a zero-byte file,
21939
# as systems may use methods other than mode bits to determine executability.
21940
cat >conf$$.file <<_ASEOF
21944
chmod +x conf$$.file
21945
if test -x conf$$.file >/dev/null 2>&1; then
21946
ac_executable_p="test -x"
21948
ac_executable_p="test -f"
21952
# Extract the first word of "xgettext", so it can be a program name with args.
21953
set dummy xgettext; ac_word=$2
21954
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21955
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21956
if test "${ac_cv_path_XGETTEXT+set}" = set; then
21957
echo $ECHO_N "(cached) $ECHO_C" >&6
21959
case "$XGETTEXT" in
21961
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21964
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21965
for ac_dir in $PATH; do
21967
test -z "$ac_dir" && ac_dir=.
21968
for ac_exec_ext in '' $ac_executable_extensions; do
21969
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21970
echo "$as_me: trying $ac_dir/$ac_word..." >&5
21971
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
21972
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21973
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
21980
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21984
XGETTEXT="$ac_cv_path_XGETTEXT"
21985
if test "$XGETTEXT" != ":"; then
21986
{ echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21987
echo "${ECHO_T}$XGETTEXT" >&6; }
21989
{ echo "$as_me:$LINENO: result: no" >&5
21990
echo "${ECHO_T}no" >&6; }
21995
case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21996
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
21997
*) XGETTEXT_015=$XGETTEXT ;;
22002
# Prepare PATH_SEPARATOR.
22003
# The user is always right.
22004
if test "${PATH_SEPARATOR+set}" != set; then
22005
echo "#! /bin/sh" >conf$$.sh
22006
echo "exit 0" >>conf$$.sh
22008
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22016
# Find out how to test for executable files. Don't use a zero-byte file,
22017
# as systems may use methods other than mode bits to determine executability.
22018
cat >conf$$.file <<_ASEOF
22022
chmod +x conf$$.file
22023
if test -x conf$$.file >/dev/null 2>&1; then
22024
ac_executable_p="test -x"
22026
ac_executable_p="test -f"
22030
# Extract the first word of "msgmerge", so it can be a program name with args.
22031
set dummy msgmerge; ac_word=$2
22032
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22033
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22034
if test "${ac_cv_path_MSGMERGE+set}" = set; then
22035
echo $ECHO_N "(cached) $ECHO_C" >&6
22037
case "$MSGMERGE" in
22039
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22042
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22043
for ac_dir in $PATH; do
22045
test -z "$ac_dir" && ac_dir=.
22046
for ac_exec_ext in '' $ac_executable_extensions; do
22047
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22048
echo "$as_me: trying $ac_dir/$ac_word..." >&5
22049
if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
22050
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22057
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
22061
MSGMERGE="$ac_cv_path_MSGMERGE"
22062
if test "$MSGMERGE" != ":"; then
22063
{ echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22064
echo "${ECHO_T}$MSGMERGE" >&6; }
22066
{ echo "$as_me:$LINENO: result: no" >&5
22067
echo "${ECHO_T}no" >&6; }
22071
test -n "$localedir" || localedir='${datadir}/locale'
22074
ac_config_commands="$ac_config_commands po-directories"
22078
if test "X$prefix" = "XNONE"; then
22079
acl_final_prefix="$ac_default_prefix"
22081
acl_final_prefix="$prefix"
22083
if test "X$exec_prefix" = "XNONE"; then
22084
acl_final_exec_prefix='${prefix}'
22086
acl_final_exec_prefix="$exec_prefix"
22088
acl_save_prefix="$prefix"
22089
prefix="$acl_final_prefix"
22090
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22091
prefix="$acl_save_prefix"
22094
# Check whether --with-gnu-ld was given.
22095
if test "${with_gnu_ld+set}" = set; then
22096
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22101
# Prepare PATH_SEPARATOR.
22102
# The user is always right.
22103
if test "${PATH_SEPARATOR+set}" != set; then
22104
echo "#! /bin/sh" >conf$$.sh
22105
echo "exit 0" >>conf$$.sh
22107
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22115
if test "$GCC" = yes; then
22116
# Check if gcc -print-prog-name=ld gives a path.
22117
{ echo "$as_me:$LINENO: checking for ld used by GCC" >&5
22118
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
22121
# gcc leaves a trailing carriage return which upsets mingw
22122
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22124
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22127
# Accept absolute paths.
22128
[\\/]* | [A-Za-z]:[\\/]*)
22129
re_direlt='/[^/][^/]*/\.\./'
22130
# Canonicalize the path of ld
22131
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
22132
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22133
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22135
test -z "$LD" && LD="$ac_prog"
22138
# If it fails, then pretend we aren't using GCC.
22142
# If it is relative, then search for the first ld in PATH.
22143
with_gnu_ld=unknown
22146
elif test "$with_gnu_ld" = yes; then
22147
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
22148
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
22150
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22151
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
22153
if test "${acl_cv_path_LD+set}" = set; then
22154
echo $ECHO_N "(cached) $ECHO_C" >&6
22156
if test -z "$LD"; then
22157
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
22158
for ac_dir in $PATH; do
22159
test -z "$ac_dir" && ac_dir=.
22160
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22161
acl_cv_path_LD="$ac_dir/$ac_prog"
22162
# Check to see if the program is GNU ld. I'd rather use --version,
22163
# but apparently some GNU ld's only accept -v.
22164
# Break only if it was the GNU/non-GNU ld that we prefer.
22165
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
22166
*GNU* | *'with BFD'*)
22167
test "$with_gnu_ld" != no && break ;;
22169
test "$with_gnu_ld" != yes && break ;;
22175
acl_cv_path_LD="$LD" # Let the user override the test with a path.
22179
LD="$acl_cv_path_LD"
22180
if test -n "$LD"; then
22181
{ echo "$as_me:$LINENO: result: $LD" >&5
22182
echo "${ECHO_T}$LD" >&6; }
22184
{ echo "$as_me:$LINENO: result: no" >&5
22185
echo "${ECHO_T}no" >&6; }
22187
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22188
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22189
{ (exit 1); exit 1; }; }
22190
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22191
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
22192
if test "${acl_cv_prog_gnu_ld+set}" = set; then
22193
echo $ECHO_N "(cached) $ECHO_C" >&6
22195
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
22196
case `$LD -v 2>&1 </dev/null` in
22197
*GNU* | *'with BFD'*)
22198
acl_cv_prog_gnu_ld=yes ;;
22200
acl_cv_prog_gnu_ld=no ;;
22203
{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
22204
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
22205
with_gnu_ld=$acl_cv_prog_gnu_ld
22210
{ echo "$as_me:$LINENO: checking for shared library run path origin" >&5
22211
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
22212
if test "${acl_cv_rpath+set}" = set; then
22213
echo $ECHO_N "(cached) $ECHO_C" >&6
22216
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22217
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22219
rm -f ./conftest.sh
22223
{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
22224
echo "${ECHO_T}$acl_cv_rpath" >&6; }
22226
libext="$acl_cv_libext"
22227
shlibext="$acl_cv_shlibext"
22228
hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22229
hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22230
hardcode_direct="$acl_cv_hardcode_direct"
22231
hardcode_minus_L="$acl_cv_hardcode_minus_L"
22232
# Check whether --enable-rpath was given.
22233
if test "${enable_rpath+set}" = set; then
22234
enableval=$enable_rpath; :
22242
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
22243
if test -n "$searchpath"; then
22244
acl_save_IFS="${IFS= }"; IFS=":"
22245
for searchdir in $searchpath; do
22246
if test -d "$searchdir"; then
22247
case "$searchdir" in
22248
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
22249
*) searchdir=`cd "$searchdir" && pwd`
22250
case "$searchdir" in
22251
*/lib64 ) acl_libdirstem=lib64 ;;
22256
IFS="$acl_save_IFS"
22268
acl_save_prefix="$prefix"
22269
prefix="$acl_final_prefix"
22270
acl_save_exec_prefix="$exec_prefix"
22271
exec_prefix="$acl_final_exec_prefix"
22273
eval additional_includedir=\"$includedir\"
22274
eval additional_libdir=\"$libdir\"
22276
exec_prefix="$acl_save_exec_prefix"
22277
prefix="$acl_save_prefix"
22280
# Check whether --with-libiconv-prefix was given.
22281
if test "${with_libiconv_prefix+set}" = set; then
22282
withval=$with_libiconv_prefix;
22283
if test "X$withval" = "Xno"; then
22286
if test "X$withval" = "X"; then
22288
acl_save_prefix="$prefix"
22289
prefix="$acl_final_prefix"
22290
acl_save_exec_prefix="$exec_prefix"
22291
exec_prefix="$acl_final_exec_prefix"
22293
eval additional_includedir=\"$includedir\"
22294
eval additional_libdir=\"$libdir\"
22296
exec_prefix="$acl_save_exec_prefix"
22297
prefix="$acl_save_prefix"
22300
additional_includedir="$withval/include"
22301
additional_libdir="$withval/$acl_libdirstem"
22312
names_already_handled=
22313
names_next_round='iconv '
22314
while test -n "$names_next_round"; do
22315
names_this_round="$names_next_round"
22317
for name in $names_this_round; do
22319
for n in $names_already_handled; do
22320
if test "$n" = "$name"; then
22321
already_handled=yes
22325
if test -z "$already_handled"; then
22326
names_already_handled="$names_already_handled $name"
22327
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22328
eval value=\"\$HAVE_LIB$uppername\"
22329
if test -n "$value"; then
22330
if test "$value" = yes; then
22331
eval value=\"\$LIB$uppername\"
22332
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22333
eval value=\"\$LTLIB$uppername\"
22334
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22343
if test $use_additional = yes; then
22344
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22345
found_dir="$additional_libdir"
22346
found_so="$additional_libdir/lib$name.$shlibext"
22347
if test -f "$additional_libdir/lib$name.la"; then
22348
found_la="$additional_libdir/lib$name.la"
22351
if test -f "$additional_libdir/lib$name.$libext"; then
22352
found_dir="$additional_libdir"
22353
found_a="$additional_libdir/lib$name.$libext"
22354
if test -f "$additional_libdir/lib$name.la"; then
22355
found_la="$additional_libdir/lib$name.la"
22360
if test "X$found_dir" = "X"; then
22361
for x in $LDFLAGS $LTLIBICONV; do
22363
acl_save_prefix="$prefix"
22364
prefix="$acl_final_prefix"
22365
acl_save_exec_prefix="$exec_prefix"
22366
exec_prefix="$acl_final_exec_prefix"
22368
exec_prefix="$acl_save_exec_prefix"
22369
prefix="$acl_save_prefix"
22373
dir=`echo "X$x" | sed -e 's/^X-L//'`
22374
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22376
found_so="$dir/lib$name.$shlibext"
22377
if test -f "$dir/lib$name.la"; then
22378
found_la="$dir/lib$name.la"
22381
if test -f "$dir/lib$name.$libext"; then
22383
found_a="$dir/lib$name.$libext"
22384
if test -f "$dir/lib$name.la"; then
22385
found_la="$dir/lib$name.la"
22391
if test "X$found_dir" != "X"; then
22396
if test "X$found_dir" != "X"; then
22397
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22398
if test "X$found_so" != "X"; then
22399
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
22400
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22403
for x in $ltrpathdirs; do
22404
if test "X$x" = "X$found_dir"; then
22409
if test -z "$haveit"; then
22410
ltrpathdirs="$ltrpathdirs $found_dir"
22412
if test "$hardcode_direct" = yes; then
22413
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22415
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22416
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22418
for x in $rpathdirs; do
22419
if test "X$x" = "X$found_dir"; then
22424
if test -z "$haveit"; then
22425
rpathdirs="$rpathdirs $found_dir"
22429
for x in $LDFLAGS $LIBICONV; do
22431
acl_save_prefix="$prefix"
22432
prefix="$acl_final_prefix"
22433
acl_save_exec_prefix="$exec_prefix"
22434
exec_prefix="$acl_final_exec_prefix"
22436
exec_prefix="$acl_save_exec_prefix"
22437
prefix="$acl_save_prefix"
22439
if test "X$x" = "X-L$found_dir"; then
22444
if test -z "$haveit"; then
22445
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22447
if test "$hardcode_minus_L" != no; then
22448
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22450
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22456
if test "X$found_a" != "X"; then
22457
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22459
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22462
additional_includedir=
22463
case "$found_dir" in
22464
*/$acl_libdirstem | */$acl_libdirstem/)
22465
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
22466
additional_includedir="$basedir/include"
22469
if test "X$additional_includedir" != "X"; then
22470
if test "X$additional_includedir" != "X/usr/include"; then
22472
if test "X$additional_includedir" = "X/usr/local/include"; then
22473
if test -n "$GCC"; then
22475
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22479
if test -z "$haveit"; then
22480
for x in $CPPFLAGS $INCICONV; do
22482
acl_save_prefix="$prefix"
22483
prefix="$acl_final_prefix"
22484
acl_save_exec_prefix="$exec_prefix"
22485
exec_prefix="$acl_final_exec_prefix"
22487
exec_prefix="$acl_save_exec_prefix"
22488
prefix="$acl_save_prefix"
22490
if test "X$x" = "X-I$additional_includedir"; then
22495
if test -z "$haveit"; then
22496
if test -d "$additional_includedir"; then
22497
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22503
if test -n "$found_la"; then
22504
save_libdir="$libdir"
22505
case "$found_la" in
22506
*/* | *\\*) . "$found_la" ;;
22507
*) . "./$found_la" ;;
22509
libdir="$save_libdir"
22510
for dep in $dependency_libs; do
22513
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22514
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
22516
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
22517
if test -n "$GCC"; then
22519
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22523
if test -z "$haveit"; then
22525
for x in $LDFLAGS $LIBICONV; do
22527
acl_save_prefix="$prefix"
22528
prefix="$acl_final_prefix"
22529
acl_save_exec_prefix="$exec_prefix"
22530
exec_prefix="$acl_final_exec_prefix"
22532
exec_prefix="$acl_save_exec_prefix"
22533
prefix="$acl_save_prefix"
22535
if test "X$x" = "X-L$additional_libdir"; then
22540
if test -z "$haveit"; then
22541
if test -d "$additional_libdir"; then
22542
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22546
for x in $LDFLAGS $LTLIBICONV; do
22548
acl_save_prefix="$prefix"
22549
prefix="$acl_final_prefix"
22550
acl_save_exec_prefix="$exec_prefix"
22551
exec_prefix="$acl_final_exec_prefix"
22553
exec_prefix="$acl_save_exec_prefix"
22554
prefix="$acl_save_prefix"
22556
if test "X$x" = "X-L$additional_libdir"; then
22561
if test -z "$haveit"; then
22562
if test -d "$additional_libdir"; then
22563
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22570
dir=`echo "X$dep" | sed -e 's/^X-R//'`
22571
if test "$enable_rpath" != no; then
22573
for x in $rpathdirs; do
22574
if test "X$x" = "X$dir"; then
22579
if test -z "$haveit"; then
22580
rpathdirs="$rpathdirs $dir"
22583
for x in $ltrpathdirs; do
22584
if test "X$x" = "X$dir"; then
22589
if test -z "$haveit"; then
22590
ltrpathdirs="$ltrpathdirs $dir"
22595
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22598
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22601
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22602
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22608
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22609
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22615
if test "X$rpathdirs" != "X"; then
22616
if test -n "$hardcode_libdir_separator"; then
22618
for found_dir in $rpathdirs; do
22619
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22621
acl_save_libdir="$libdir"
22623
eval flag=\"$hardcode_libdir_flag_spec\"
22624
libdir="$acl_save_libdir"
22625
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22627
for found_dir in $rpathdirs; do
22628
acl_save_libdir="$libdir"
22629
libdir="$found_dir"
22630
eval flag=\"$hardcode_libdir_flag_spec\"
22631
libdir="$acl_save_libdir"
22632
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22636
if test "X$ltrpathdirs" != "X"; then
22637
for found_dir in $ltrpathdirs; do
22638
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22659
{ echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
22660
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
22661
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
22662
echo $ECHO_N "(cached) $ECHO_C" >&6
22664
gt_save_LIBS="$LIBS"
22665
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
22666
cat >conftest.$ac_ext <<_ACEOF
22669
cat confdefs.h >>conftest.$ac_ext
22670
cat >>conftest.$ac_ext <<_ACEOF
22671
/* end confdefs.h. */
22672
#include <CoreFoundation/CFPreferences.h>
22676
CFPreferencesCopyAppValue(NULL, NULL)
22681
rm -f conftest.$ac_objext conftest$ac_exeext
22682
if { (ac_try="$ac_link"
22683
case "(($ac_try" in
22684
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685
*) ac_try_echo=$ac_try;;
22687
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688
(eval "$ac_link") 2>conftest.er1
22690
grep -v '^ *+' conftest.er1 >conftest.err
22692
cat conftest.err >&5
22693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694
(exit $ac_status); } && {
22695
test -z "$ac_c_werror_flag" ||
22696
test ! -s conftest.err
22697
} && test -s conftest$ac_exeext &&
22698
$as_test_x conftest$ac_exeext; then
22699
gt_cv_func_CFPreferencesCopyAppValue=yes
22701
echo "$as_me: failed program was:" >&5
22702
sed 's/^/| /' conftest.$ac_ext >&5
22704
gt_cv_func_CFPreferencesCopyAppValue=no
22707
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22708
conftest$ac_exeext conftest.$ac_ext
22709
LIBS="$gt_save_LIBS"
22711
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
22712
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
22713
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
22715
cat >>confdefs.h <<\_ACEOF
22716
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
22720
{ echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
22721
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
22722
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
22723
echo $ECHO_N "(cached) $ECHO_C" >&6
22725
gt_save_LIBS="$LIBS"
22726
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
22727
cat >conftest.$ac_ext <<_ACEOF
22730
cat confdefs.h >>conftest.$ac_ext
22731
cat >>conftest.$ac_ext <<_ACEOF
22732
/* end confdefs.h. */
22733
#include <CoreFoundation/CFLocale.h>
22737
CFLocaleCopyCurrent();
22742
rm -f conftest.$ac_objext conftest$ac_exeext
22743
if { (ac_try="$ac_link"
22744
case "(($ac_try" in
22745
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22746
*) ac_try_echo=$ac_try;;
22748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22749
(eval "$ac_link") 2>conftest.er1
22751
grep -v '^ *+' conftest.er1 >conftest.err
22753
cat conftest.err >&5
22754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755
(exit $ac_status); } && {
22756
test -z "$ac_c_werror_flag" ||
22757
test ! -s conftest.err
22758
} && test -s conftest$ac_exeext &&
22759
$as_test_x conftest$ac_exeext; then
22760
gt_cv_func_CFLocaleCopyCurrent=yes
22762
echo "$as_me: failed program was:" >&5
22763
sed 's/^/| /' conftest.$ac_ext >&5
22765
gt_cv_func_CFLocaleCopyCurrent=no
22768
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22769
conftest$ac_exeext conftest.$ac_ext
22770
LIBS="$gt_save_LIBS"
22772
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
22773
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
22774
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
22776
cat >>confdefs.h <<\_ACEOF
22777
#define HAVE_CFLOCALECOPYCURRENT 1
22782
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
22783
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
22795
if test "$USE_NLS" = "yes"; then
22796
gt_use_preinstalled_gnugettext=no
22803
{ echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
22804
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
22805
if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
22806
echo $ECHO_N "(cached) $ECHO_C" >&6
22808
cat >conftest.$ac_ext <<_ACEOF
22811
cat confdefs.h >>conftest.$ac_ext
22812
cat >>conftest.$ac_ext <<_ACEOF
22813
/* end confdefs.h. */
22814
#include <libintl.h>
22815
extern int _nl_msg_cat_cntr;
22816
extern int *_nl_domain_bindings;
22820
bindtextdomain ("", "");
22821
return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
22826
rm -f conftest.$ac_objext conftest$ac_exeext
22827
if { (ac_try="$ac_link"
22828
case "(($ac_try" in
22829
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830
*) ac_try_echo=$ac_try;;
22832
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22833
(eval "$ac_link") 2>conftest.er1
22835
grep -v '^ *+' conftest.er1 >conftest.err
22837
cat conftest.err >&5
22838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839
(exit $ac_status); } && {
22840
test -z "$ac_c_werror_flag" ||
22841
test ! -s conftest.err
22842
} && test -s conftest$ac_exeext &&
22843
$as_test_x conftest$ac_exeext; then
22844
gt_cv_func_gnugettext2_libc=yes
22846
echo "$as_me: failed program was:" >&5
22847
sed 's/^/| /' conftest.$ac_ext >&5
22849
gt_cv_func_gnugettext2_libc=no
22852
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22853
conftest$ac_exeext conftest.$ac_ext
22855
{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
22856
echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6; }
22858
if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
22864
am_save_CPPFLAGS="$CPPFLAGS"
22866
for element in $INCICONV; do
22868
for x in $CPPFLAGS; do
22870
acl_save_prefix="$prefix"
22871
prefix="$acl_final_prefix"
22872
acl_save_exec_prefix="$exec_prefix"
22873
exec_prefix="$acl_final_exec_prefix"
22875
exec_prefix="$acl_save_exec_prefix"
22876
prefix="$acl_save_prefix"
22878
if test "X$x" = "X$element"; then
22883
if test -z "$haveit"; then
22884
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22889
{ echo "$as_me:$LINENO: checking for iconv" >&5
22890
echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22891
if test "${am_cv_func_iconv+set}" = set; then
22892
echo $ECHO_N "(cached) $ECHO_C" >&6
22895
am_cv_func_iconv="no, consider installing GNU libiconv"
22897
cat >conftest.$ac_ext <<_ACEOF
22900
cat confdefs.h >>conftest.$ac_ext
22901
cat >>conftest.$ac_ext <<_ACEOF
22902
/* end confdefs.h. */
22903
#include <stdlib.h>
22908
iconv_t cd = iconv_open("","");
22909
iconv(cd,NULL,NULL,NULL,NULL);
22915
rm -f conftest.$ac_objext conftest$ac_exeext
22916
if { (ac_try="$ac_link"
22917
case "(($ac_try" in
22918
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919
*) ac_try_echo=$ac_try;;
22921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22922
(eval "$ac_link") 2>conftest.er1
22924
grep -v '^ *+' conftest.er1 >conftest.err
22926
cat conftest.err >&5
22927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928
(exit $ac_status); } && {
22929
test -z "$ac_c_werror_flag" ||
22930
test ! -s conftest.err
22931
} && test -s conftest$ac_exeext &&
22932
$as_test_x conftest$ac_exeext; then
22933
am_cv_func_iconv=yes
22935
echo "$as_me: failed program was:" >&5
22936
sed 's/^/| /' conftest.$ac_ext >&5
22941
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22942
conftest$ac_exeext conftest.$ac_ext
22943
if test "$am_cv_func_iconv" != yes; then
22944
am_save_LIBS="$LIBS"
22945
LIBS="$LIBS $LIBICONV"
22946
cat >conftest.$ac_ext <<_ACEOF
22949
cat confdefs.h >>conftest.$ac_ext
22950
cat >>conftest.$ac_ext <<_ACEOF
22951
/* end confdefs.h. */
22952
#include <stdlib.h>
22957
iconv_t cd = iconv_open("","");
22958
iconv(cd,NULL,NULL,NULL,NULL);
22964
rm -f conftest.$ac_objext conftest$ac_exeext
22965
if { (ac_try="$ac_link"
22966
case "(($ac_try" in
22967
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968
*) ac_try_echo=$ac_try;;
22970
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971
(eval "$ac_link") 2>conftest.er1
22973
grep -v '^ *+' conftest.er1 >conftest.err
22975
cat conftest.err >&5
22976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977
(exit $ac_status); } && {
22978
test -z "$ac_c_werror_flag" ||
22979
test ! -s conftest.err
22980
} && test -s conftest$ac_exeext &&
22981
$as_test_x conftest$ac_exeext; then
22982
am_cv_lib_iconv=yes
22983
am_cv_func_iconv=yes
22985
echo "$as_me: failed program was:" >&5
22986
sed 's/^/| /' conftest.$ac_ext >&5
22991
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22992
conftest$ac_exeext conftest.$ac_ext
22993
LIBS="$am_save_LIBS"
22997
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22998
echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22999
if test "$am_cv_func_iconv" = yes; then
23001
cat >>confdefs.h <<\_ACEOF
23002
#define HAVE_ICONV 1
23006
if test "$am_cv_lib_iconv" = yes; then
23007
{ echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23008
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
23009
{ echo "$as_me:$LINENO: result: $LIBICONV" >&5
23010
echo "${ECHO_T}$LIBICONV" >&6; }
23012
CPPFLAGS="$am_save_CPPFLAGS"
23025
acl_save_prefix="$prefix"
23026
prefix="$acl_final_prefix"
23027
acl_save_exec_prefix="$exec_prefix"
23028
exec_prefix="$acl_final_exec_prefix"
23030
eval additional_includedir=\"$includedir\"
23031
eval additional_libdir=\"$libdir\"
23033
exec_prefix="$acl_save_exec_prefix"
23034
prefix="$acl_save_prefix"
23037
# Check whether --with-libintl-prefix was given.
23038
if test "${with_libintl_prefix+set}" = set; then
23039
withval=$with_libintl_prefix;
23040
if test "X$withval" = "Xno"; then
23043
if test "X$withval" = "X"; then
23045
acl_save_prefix="$prefix"
23046
prefix="$acl_final_prefix"
23047
acl_save_exec_prefix="$exec_prefix"
23048
exec_prefix="$acl_final_exec_prefix"
23050
eval additional_includedir=\"$includedir\"
23051
eval additional_libdir=\"$libdir\"
23053
exec_prefix="$acl_save_exec_prefix"
23054
prefix="$acl_save_prefix"
23057
additional_includedir="$withval/include"
23058
additional_libdir="$withval/$acl_libdirstem"
23069
names_already_handled=
23070
names_next_round='intl '
23071
while test -n "$names_next_round"; do
23072
names_this_round="$names_next_round"
23074
for name in $names_this_round; do
23076
for n in $names_already_handled; do
23077
if test "$n" = "$name"; then
23078
already_handled=yes
23082
if test -z "$already_handled"; then
23083
names_already_handled="$names_already_handled $name"
23084
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23085
eval value=\"\$HAVE_LIB$uppername\"
23086
if test -n "$value"; then
23087
if test "$value" = yes; then
23088
eval value=\"\$LIB$uppername\"
23089
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23090
eval value=\"\$LTLIB$uppername\"
23091
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23100
if test $use_additional = yes; then
23101
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23102
found_dir="$additional_libdir"
23103
found_so="$additional_libdir/lib$name.$shlibext"
23104
if test -f "$additional_libdir/lib$name.la"; then
23105
found_la="$additional_libdir/lib$name.la"
23108
if test -f "$additional_libdir/lib$name.$libext"; then
23109
found_dir="$additional_libdir"
23110
found_a="$additional_libdir/lib$name.$libext"
23111
if test -f "$additional_libdir/lib$name.la"; then
23112
found_la="$additional_libdir/lib$name.la"
23117
if test "X$found_dir" = "X"; then
23118
for x in $LDFLAGS $LTLIBINTL; do
23120
acl_save_prefix="$prefix"
23121
prefix="$acl_final_prefix"
23122
acl_save_exec_prefix="$exec_prefix"
23123
exec_prefix="$acl_final_exec_prefix"
23125
exec_prefix="$acl_save_exec_prefix"
23126
prefix="$acl_save_prefix"
23130
dir=`echo "X$x" | sed -e 's/^X-L//'`
23131
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23133
found_so="$dir/lib$name.$shlibext"
23134
if test -f "$dir/lib$name.la"; then
23135
found_la="$dir/lib$name.la"
23138
if test -f "$dir/lib$name.$libext"; then
23140
found_a="$dir/lib$name.$libext"
23141
if test -f "$dir/lib$name.la"; then
23142
found_la="$dir/lib$name.la"
23148
if test "X$found_dir" != "X"; then
23153
if test "X$found_dir" != "X"; then
23154
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23155
if test "X$found_so" != "X"; then
23156
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
23157
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23160
for x in $ltrpathdirs; do
23161
if test "X$x" = "X$found_dir"; then
23166
if test -z "$haveit"; then
23167
ltrpathdirs="$ltrpathdirs $found_dir"
23169
if test "$hardcode_direct" = yes; then
23170
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23172
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23173
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23175
for x in $rpathdirs; do
23176
if test "X$x" = "X$found_dir"; then
23181
if test -z "$haveit"; then
23182
rpathdirs="$rpathdirs $found_dir"
23186
for x in $LDFLAGS $LIBINTL; do
23188
acl_save_prefix="$prefix"
23189
prefix="$acl_final_prefix"
23190
acl_save_exec_prefix="$exec_prefix"
23191
exec_prefix="$acl_final_exec_prefix"
23193
exec_prefix="$acl_save_exec_prefix"
23194
prefix="$acl_save_prefix"
23196
if test "X$x" = "X-L$found_dir"; then
23201
if test -z "$haveit"; then
23202
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23204
if test "$hardcode_minus_L" != no; then
23205
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23207
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23213
if test "X$found_a" != "X"; then
23214
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23216
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23219
additional_includedir=
23220
case "$found_dir" in
23221
*/$acl_libdirstem | */$acl_libdirstem/)
23222
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
23223
additional_includedir="$basedir/include"
23226
if test "X$additional_includedir" != "X"; then
23227
if test "X$additional_includedir" != "X/usr/include"; then
23229
if test "X$additional_includedir" = "X/usr/local/include"; then
23230
if test -n "$GCC"; then
23232
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23236
if test -z "$haveit"; then
23237
for x in $CPPFLAGS $INCINTL; do
23239
acl_save_prefix="$prefix"
23240
prefix="$acl_final_prefix"
23241
acl_save_exec_prefix="$exec_prefix"
23242
exec_prefix="$acl_final_exec_prefix"
23244
exec_prefix="$acl_save_exec_prefix"
23245
prefix="$acl_save_prefix"
23247
if test "X$x" = "X-I$additional_includedir"; then
23252
if test -z "$haveit"; then
23253
if test -d "$additional_includedir"; then
23254
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23260
if test -n "$found_la"; then
23261
save_libdir="$libdir"
23262
case "$found_la" in
23263
*/* | *\\*) . "$found_la" ;;
23264
*) . "./$found_la" ;;
23266
libdir="$save_libdir"
23267
for dep in $dependency_libs; do
23270
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23271
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
23273
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
23274
if test -n "$GCC"; then
23276
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23280
if test -z "$haveit"; then
23282
for x in $LDFLAGS $LIBINTL; do
23284
acl_save_prefix="$prefix"
23285
prefix="$acl_final_prefix"
23286
acl_save_exec_prefix="$exec_prefix"
23287
exec_prefix="$acl_final_exec_prefix"
23289
exec_prefix="$acl_save_exec_prefix"
23290
prefix="$acl_save_prefix"
23292
if test "X$x" = "X-L$additional_libdir"; then
23297
if test -z "$haveit"; then
23298
if test -d "$additional_libdir"; then
23299
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23303
for x in $LDFLAGS $LTLIBINTL; do
23305
acl_save_prefix="$prefix"
23306
prefix="$acl_final_prefix"
23307
acl_save_exec_prefix="$exec_prefix"
23308
exec_prefix="$acl_final_exec_prefix"
23310
exec_prefix="$acl_save_exec_prefix"
23311
prefix="$acl_save_prefix"
23313
if test "X$x" = "X-L$additional_libdir"; then
23318
if test -z "$haveit"; then
23319
if test -d "$additional_libdir"; then
23320
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23327
dir=`echo "X$dep" | sed -e 's/^X-R//'`
23328
if test "$enable_rpath" != no; then
23330
for x in $rpathdirs; do
23331
if test "X$x" = "X$dir"; then
23336
if test -z "$haveit"; then
23337
rpathdirs="$rpathdirs $dir"
23340
for x in $ltrpathdirs; do
23341
if test "X$x" = "X$dir"; then
23346
if test -z "$haveit"; then
23347
ltrpathdirs="$ltrpathdirs $dir"
23352
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23355
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23358
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23359
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23365
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23366
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23372
if test "X$rpathdirs" != "X"; then
23373
if test -n "$hardcode_libdir_separator"; then
23375
for found_dir in $rpathdirs; do
23376
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23378
acl_save_libdir="$libdir"
23380
eval flag=\"$hardcode_libdir_flag_spec\"
23381
libdir="$acl_save_libdir"
23382
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23384
for found_dir in $rpathdirs; do
23385
acl_save_libdir="$libdir"
23386
libdir="$found_dir"
23387
eval flag=\"$hardcode_libdir_flag_spec\"
23388
libdir="$acl_save_libdir"
23389
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23393
if test "X$ltrpathdirs" != "X"; then
23394
for found_dir in $ltrpathdirs; do
23395
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23399
{ echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23400
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23401
if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
23402
echo $ECHO_N "(cached) $ECHO_C" >&6
23404
gt_save_CPPFLAGS="$CPPFLAGS"
23405
CPPFLAGS="$CPPFLAGS $INCINTL"
23406
gt_save_LIBS="$LIBS"
23407
LIBS="$LIBS $LIBINTL"
23408
cat >conftest.$ac_ext <<_ACEOF
23411
cat confdefs.h >>conftest.$ac_ext
23412
cat >>conftest.$ac_ext <<_ACEOF
23413
/* end confdefs.h. */
23414
#include <libintl.h>
23415
extern int _nl_msg_cat_cntr;
23420
const char *_nl_expand_alias (const char *);
23424
bindtextdomain ("", "");
23425
return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23430
rm -f conftest.$ac_objext conftest$ac_exeext
23431
if { (ac_try="$ac_link"
23432
case "(($ac_try" in
23433
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434
*) ac_try_echo=$ac_try;;
23436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437
(eval "$ac_link") 2>conftest.er1
23439
grep -v '^ *+' conftest.er1 >conftest.err
23441
cat conftest.err >&5
23442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443
(exit $ac_status); } && {
23444
test -z "$ac_c_werror_flag" ||
23445
test ! -s conftest.err
23446
} && test -s conftest$ac_exeext &&
23447
$as_test_x conftest$ac_exeext; then
23448
gt_cv_func_gnugettext2_libintl=yes
23450
echo "$as_me: failed program was:" >&5
23451
sed 's/^/| /' conftest.$ac_ext >&5
23453
gt_cv_func_gnugettext2_libintl=no
23456
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23457
conftest$ac_exeext conftest.$ac_ext
23458
if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
23459
LIBS="$LIBS $LIBICONV"
23460
cat >conftest.$ac_ext <<_ACEOF
23463
cat confdefs.h >>conftest.$ac_ext
23464
cat >>conftest.$ac_ext <<_ACEOF
23465
/* end confdefs.h. */
23466
#include <libintl.h>
23467
extern int _nl_msg_cat_cntr;
23472
const char *_nl_expand_alias (const char *);
23476
bindtextdomain ("", "");
23477
return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23482
rm -f conftest.$ac_objext conftest$ac_exeext
23483
if { (ac_try="$ac_link"
23484
case "(($ac_try" in
23485
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23486
*) ac_try_echo=$ac_try;;
23488
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23489
(eval "$ac_link") 2>conftest.er1
23491
grep -v '^ *+' conftest.er1 >conftest.err
23493
cat conftest.err >&5
23494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495
(exit $ac_status); } && {
23496
test -z "$ac_c_werror_flag" ||
23497
test ! -s conftest.err
23498
} && test -s conftest$ac_exeext &&
23499
$as_test_x conftest$ac_exeext; then
23500
LIBINTL="$LIBINTL $LIBICONV"
23501
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23502
gt_cv_func_gnugettext2_libintl=yes
23505
echo "$as_me: failed program was:" >&5
23506
sed 's/^/| /' conftest.$ac_ext >&5
23511
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23512
conftest$ac_exeext conftest.$ac_ext
23514
CPPFLAGS="$gt_save_CPPFLAGS"
23515
LIBS="$gt_save_LIBS"
23517
{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
23518
echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6; }
23521
if test "$gt_cv_func_gnugettext2_libc" = "yes" \
23522
|| { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
23523
&& test "$PACKAGE" != gettext-runtime \
23524
&& test "$PACKAGE" != gettext-tools; }; then
23525
gt_use_preinstalled_gnugettext=yes
23534
if test -n "$INTL_MACOSX_LIBS"; then
23535
if test "$gt_use_preinstalled_gnugettext" = "yes" \
23536
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
23537
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23538
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23542
if test "$gt_use_preinstalled_gnugettext" = "yes" \
23543
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
23545
cat >>confdefs.h <<\_ACEOF
23546
#define ENABLE_NLS 1
23554
{ echo "$as_me:$LINENO: checking whether to use NLS" >&5
23555
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23556
{ echo "$as_me:$LINENO: result: $USE_NLS" >&5
23557
echo "${ECHO_T}$USE_NLS" >&6; }
23558
if test "$USE_NLS" = "yes"; then
23559
{ echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23560
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23561
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23562
if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23563
gt_source="external libintl"
23568
gt_source="included intl directory"
23570
{ echo "$as_me:$LINENO: result: $gt_source" >&5
23571
echo "${ECHO_T}$gt_source" >&6; }
23574
if test "$USE_NLS" = "yes"; then
23576
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23577
if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23578
{ echo "$as_me:$LINENO: checking how to link with libintl" >&5
23579
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23580
{ echo "$as_me:$LINENO: result: $LIBINTL" >&5
23581
echo "${ECHO_T}$LIBINTL" >&6; }
23583
for element in $INCINTL; do
23585
for x in $CPPFLAGS; do
23587
acl_save_prefix="$prefix"
23588
prefix="$acl_final_prefix"
23589
acl_save_exec_prefix="$exec_prefix"
23590
exec_prefix="$acl_final_exec_prefix"
23592
exec_prefix="$acl_save_exec_prefix"
23593
prefix="$acl_save_prefix"
23595
if test "X$x" = "X$element"; then
23600
if test -z "$haveit"; then
23601
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23608
cat >>confdefs.h <<\_ACEOF
23609
#define HAVE_GETTEXT 1
23613
cat >>confdefs.h <<\_ACEOF
23614
#define HAVE_DCGETTEXT 1
23624
INTLLIBS="$LIBINTL"
23636
{ echo "$as_me:$LINENO: checking for poptConfigFileToString in -lpopt" >&5
23637
echo $ECHO_N "checking for poptConfigFileToString in -lpopt... $ECHO_C" >&6; }
23638
if test "${ac_cv_lib_popt_poptConfigFileToString+set}" = set; then
23639
echo $ECHO_N "(cached) $ECHO_C" >&6
23641
ac_check_lib_save_LIBS=$LIBS
23642
LIBS="-lpopt $LIBS"
23643
cat >conftest.$ac_ext <<_ACEOF
23646
cat confdefs.h >>conftest.$ac_ext
23647
cat >>conftest.$ac_ext <<_ACEOF
23648
/* end confdefs.h. */
23650
/* Override any GCC internal prototype to avoid an error.
23651
Use char because int might match the return type of a GCC
23652
builtin and then its argument prototype would still apply. */
23656
char poptConfigFileToString ();
23660
return poptConfigFileToString ();
23665
rm -f conftest.$ac_objext conftest$ac_exeext
23666
if { (ac_try="$ac_link"
23667
case "(($ac_try" in
23668
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23669
*) ac_try_echo=$ac_try;;
23671
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23672
(eval "$ac_link") 2>conftest.er1
23674
grep -v '^ *+' conftest.er1 >conftest.err
23676
cat conftest.err >&5
23677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678
(exit $ac_status); } && {
23679
test -z "$ac_c_werror_flag" ||
23680
test ! -s conftest.err
23681
} && test -s conftest$ac_exeext &&
23682
$as_test_x conftest$ac_exeext; then
23683
ac_cv_lib_popt_poptConfigFileToString=yes
23685
echo "$as_me: failed program was:" >&5
23686
sed 's/^/| /' conftest.$ac_ext >&5
23688
ac_cv_lib_popt_poptConfigFileToString=no
23691
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23692
conftest$ac_exeext conftest.$ac_ext
23693
LIBS=$ac_check_lib_save_LIBS
23695
{ echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptConfigFileToString" >&5
23696
echo "${ECHO_T}$ac_cv_lib_popt_poptConfigFileToString" >&6; }
23697
if test $ac_cv_lib_popt_poptConfigFileToString = yes; then
23698
cat >>confdefs.h <<_ACEOF
23699
#define HAVE_LIBPOPT 1
23702
LIBS="-lpopt $LIBS"
23705
{ { echo "$as_me:$LINENO: error: You need popt 1.7 or newer to compile." >&5
23706
echo "$as_me: error: You need popt 1.7 or newer to compile." >&2;}
23707
{ (exit 1); exit 1; }; }
23715
# Check whether --enable-shared-library was given.
23716
if test "${enable_shared_library+set}" = set; then
23717
enableval=$enable_shared_library;
23719
enable_shared_library=yes
23724
if test x$enable_shared_library = xno; then
23725
STATIC_LIBRARY_TRUE=
23726
STATIC_LIBRARY_FALSE='#'
23728
STATIC_LIBRARY_TRUE='#'
23729
STATIC_LIBRARY_FALSE=
23733
# Check whether --enable-plugins was given.
23734
if test "${enable_plugins+set}" = set; then
23735
enableval=$enable_plugins;
23740
if test "x$enable_plugins" = xyes; then
23742
cat >>confdefs.h <<\_ACEOF
23743
#define USE_PLUGINS 1
23748
# Check whether --enable- was given.
23749
if test "${enable_+set}" = set; then
23750
enableval=$enable_;
23754
# Check whether --enable-all was given.
23755
if test "${enable_all+set}" = set; then
23756
enableval=$enable_all;
23764
# Check whether --enable-libgcrypt was given.
23765
if test "${enable_libgcrypt+set}" = set; then
23766
enableval=$enable_libgcrypt;
23769
if test "x${enable_all}" = "xdefault"; then
23770
enable_libgcrypt=auto
23772
enable_libgcrypt="${enable_all}"
23777
if test "x${enable_libgcrypt}" != "xno"; then
23780
# Check whether --with-libgcrypt-prefix was given.
23781
if test "${with_libgcrypt_prefix+set}" = set; then
23782
withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
23784
libgcrypt_config_prefix=""
23787
if test x$libgcrypt_config_prefix != x ; then
23788
if test x${LIBGCRYPT_CONFIG+set} != xset ; then
23789
LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
23793
# Extract the first word of "libgcrypt-config", so it can be a program name with args.
23794
set dummy libgcrypt-config; ac_word=$2
23795
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23796
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23797
if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
23798
echo $ECHO_N "(cached) $ECHO_C" >&6
23800
case $LIBGCRYPT_CONFIG in
23802
ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
23805
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23806
for as_dir in $PATH
23809
test -z "$as_dir" && as_dir=.
23810
for ac_exec_ext in '' $ac_executable_extensions; do
23811
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23812
ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23813
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23820
test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
23824
LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
23825
if test -n "$LIBGCRYPT_CONFIG"; then
23826
{ echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
23827
echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
23829
{ echo "$as_me:$LINENO: result: no" >&5
23830
echo "${ECHO_T}no" >&6; }
23835
if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
23836
req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
23837
min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
23839
req_libgcrypt_api=0
23840
min_libgcrypt_version="$tmp"
23843
{ echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
23844
echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
23846
if test "$LIBGCRYPT_CONFIG" != "no" ; then
23847
req_major=`echo $min_libgcrypt_version | \
23848
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
23849
req_minor=`echo $min_libgcrypt_version | \
23850
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
23851
req_micro=`echo $min_libgcrypt_version | \
23852
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
23853
libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
23854
major=`echo $libgcrypt_config_version | \
23855
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
23856
minor=`echo $libgcrypt_config_version | \
23857
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
23858
micro=`echo $libgcrypt_config_version | \
23859
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
23860
if test "$major" -gt "$req_major"; then
23863
if test "$major" -eq "$req_major"; then
23864
if test "$minor" -gt "$req_minor"; then
23867
if test "$minor" -eq "$req_minor"; then
23868
if test "$micro" -ge "$req_micro"; then
23876
if test $ok = yes; then
23877
{ echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
23878
echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
23880
{ echo "$as_me:$LINENO: result: no" >&5
23881
echo "${ECHO_T}no" >&6; }
23883
if test $ok = yes; then
23884
# If we have a recent libgcrypt, we should also check that the
23885
# API is compatible
23886
if test "$req_libgcrypt_api" -gt 0 ; then
23887
tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
23888
if test "$tmp" -gt 0 ; then
23889
{ echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
23890
echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
23891
if test "$req_libgcrypt_api" -eq "$tmp" ; then
23892
{ echo "$as_me:$LINENO: result: okay" >&5
23893
echo "${ECHO_T}okay" >&6; }
23896
{ echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
23897
echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
23902
if test $ok = yes; then
23903
LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
23904
LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
23907
LIBGCRYPT_CFLAGS=""
23915
{ echo "$as_me:$LINENO: checking whether to build libgcrypt module" >&5
23916
echo $ECHO_N "checking whether to build libgcrypt module... $ECHO_C" >&6; }
23917
if test -n "${have_module+set}"; then
23918
if test "x${enable_libgcrypt}" = "xauto"; then
23919
if test "x${enable_plugins}" != "xno"; then
23920
{ echo "$as_me:$LINENO: result: yes, as plugin" >&5
23921
echo "${ECHO_T}yes, as plugin" >&6; }
23925
{ echo "$as_me:$LINENO: result: yes" >&5
23926
echo "${ECHO_T}yes" >&6; }
23930
elif test "x${enable_libgcrypt}" = "xshared"; then
23931
if test "x${enable_plugins}" != "xno"; then
23932
{ echo "$as_me:$LINENO: result: yes, as plugin" >&5
23933
echo "${ECHO_T}yes, as plugin" >&6; }
23937
{ echo "$as_me:$LINENO: result: no" >&5
23938
echo "${ECHO_T}no" >&6; }
23939
{ { echo "$as_me:$LINENO: error: Can't build libgcrypt module, plugins are disabled" >&5
23940
echo "$as_me: error: Can't build libgcrypt module, plugins are disabled" >&2;}
23941
{ (exit 1); exit 1; }; }
23944
{ echo "$as_me:$LINENO: result: yes" >&5
23945
echo "${ECHO_T}yes" >&6; }
23949
elif test "x${enable_libgcrypt}" != "xauto"; then
23950
{ echo "$as_me:$LINENO: result: no" >&5
23951
echo "${ECHO_T}no" >&6; }
23952
{ { echo "$as_me:$LINENO: error: Unable to build libgcrypt plugin, see messages above" >&5
23953
echo "$as_me: error: Unable to build libgcrypt plugin, see messages above" >&2;}
23954
{ (exit 1); exit 1; }; }
23956
{ echo "$as_me:$LINENO: result: no" >&5
23957
echo "${ECHO_T}no" >&6; }
23962
{ echo "$as_me:$LINENO: checking whether to build libgcrypt module" >&5
23963
echo $ECHO_N "checking whether to build libgcrypt module... $ECHO_C" >&6; }
23964
{ echo "$as_me:$LINENO: result: no" >&5
23965
echo "${ECHO_T}no" >&6; }
23972
if test x$build_static = xyes; then
23973
BUILD_LIBGCRYPT_TRUE=
23974
BUILD_LIBGCRYPT_FALSE='#'
23976
BUILD_LIBGCRYPT_TRUE='#'
23977
BUILD_LIBGCRYPT_FALSE=
23982
if test x$build_shared = xyes; then
23983
SHARED_LIBGCRYPT_TRUE=
23984
SHARED_LIBGCRYPT_FALSE='#'
23986
SHARED_LIBGCRYPT_TRUE='#'
23987
SHARED_LIBGCRYPT_FALSE=
23993
# Check whether --enable-libdevmapper was given.
23994
if test "${enable_libdevmapper+set}" = set; then
23995
enableval=$enable_libdevmapper;
23998
if test "x${enable_all}" = "xdefault"; then
23999
enable_libdevmapper=auto
24001
enable_libdevmapper="${enable_all}"
24006
if test "x${enable_libdevmapper}" != "xno"; then
24011
{ echo "$as_me:$LINENO: checking for sepol_bool_set in -lsepol" >&5
24012
echo $ECHO_N "checking for sepol_bool_set in -lsepol... $ECHO_C" >&6; }
24013
if test "${ac_cv_lib_sepol_sepol_bool_set+set}" = set; then
24014
echo $ECHO_N "(cached) $ECHO_C" >&6
24016
ac_check_lib_save_LIBS=$LIBS
24017
LIBS="-lsepol $LIBS"
24018
cat >conftest.$ac_ext <<_ACEOF
24021
cat confdefs.h >>conftest.$ac_ext
24022
cat >>conftest.$ac_ext <<_ACEOF
24023
/* end confdefs.h. */
24025
/* Override any GCC internal prototype to avoid an error.
24026
Use char because int might match the return type of a GCC
24027
builtin and then its argument prototype would still apply. */
24031
char sepol_bool_set ();
24035
return sepol_bool_set ();
24040
rm -f conftest.$ac_objext conftest$ac_exeext
24041
if { (ac_try="$ac_link"
24042
case "(($ac_try" in
24043
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24044
*) ac_try_echo=$ac_try;;
24046
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24047
(eval "$ac_link") 2>conftest.er1
24049
grep -v '^ *+' conftest.er1 >conftest.err
24051
cat conftest.err >&5
24052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053
(exit $ac_status); } && {
24054
test -z "$ac_c_werror_flag" ||
24055
test ! -s conftest.err
24056
} && test -s conftest$ac_exeext &&
24057
$as_test_x conftest$ac_exeext; then
24058
ac_cv_lib_sepol_sepol_bool_set=yes
24060
echo "$as_me: failed program was:" >&5
24061
sed 's/^/| /' conftest.$ac_ext >&5
24063
ac_cv_lib_sepol_sepol_bool_set=no
24066
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24067
conftest$ac_exeext conftest.$ac_ext
24068
LIBS=$ac_check_lib_save_LIBS
24070
{ echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_bool_set" >&5
24071
echo "${ECHO_T}$ac_cv_lib_sepol_sepol_bool_set" >&6; }
24072
if test $ac_cv_lib_sepol_sepol_bool_set = yes; then
24073
cat >>confdefs.h <<_ACEOF
24074
#define HAVE_LIBSEPOL 1
24077
LIBS="-lsepol $LIBS"
24082
{ echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
24083
echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
24084
if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
24085
echo $ECHO_N "(cached) $ECHO_C" >&6
24087
ac_check_lib_save_LIBS=$LIBS
24088
LIBS="-lselinux $LIBS"
24089
cat >conftest.$ac_ext <<_ACEOF
24092
cat confdefs.h >>conftest.$ac_ext
24093
cat >>conftest.$ac_ext <<_ACEOF
24094
/* end confdefs.h. */
24096
/* Override any GCC internal prototype to avoid an error.
24097
Use char because int might match the return type of a GCC
24098
builtin and then its argument prototype would still apply. */
24102
char is_selinux_enabled ();
24106
return is_selinux_enabled ();
24111
rm -f conftest.$ac_objext conftest$ac_exeext
24112
if { (ac_try="$ac_link"
24113
case "(($ac_try" in
24114
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24115
*) ac_try_echo=$ac_try;;
24117
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24118
(eval "$ac_link") 2>conftest.er1
24120
grep -v '^ *+' conftest.er1 >conftest.err
24122
cat conftest.err >&5
24123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124
(exit $ac_status); } && {
24125
test -z "$ac_c_werror_flag" ||
24126
test ! -s conftest.err
24127
} && test -s conftest$ac_exeext &&
24128
$as_test_x conftest$ac_exeext; then
24129
ac_cv_lib_selinux_is_selinux_enabled=yes
24131
echo "$as_me: failed program was:" >&5
24132
sed 's/^/| /' conftest.$ac_ext >&5
24134
ac_cv_lib_selinux_is_selinux_enabled=no
24137
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24138
conftest$ac_exeext conftest.$ac_ext
24139
LIBS=$ac_check_lib_save_LIBS
24141
{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
24142
echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
24143
if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
24144
cat >>confdefs.h <<_ACEOF
24145
#define HAVE_LIBSELINUX 1
24148
LIBS="-lselinux $LIBS"
24153
{ echo "$as_me:$LINENO: checking for dm_task_set_name in -ldevmapper" >&5
24154
echo $ECHO_N "checking for dm_task_set_name in -ldevmapper... $ECHO_C" >&6; }
24155
if test "${ac_cv_lib_devmapper_dm_task_set_name+set}" = set; then
24156
echo $ECHO_N "(cached) $ECHO_C" >&6
24158
ac_check_lib_save_LIBS=$LIBS
24159
LIBS="-ldevmapper $LIBS"
24160
cat >conftest.$ac_ext <<_ACEOF
24163
cat confdefs.h >>conftest.$ac_ext
24164
cat >>conftest.$ac_ext <<_ACEOF
24165
/* end confdefs.h. */
24167
/* Override any GCC internal prototype to avoid an error.
24168
Use char because int might match the return type of a GCC
24169
builtin and then its argument prototype would still apply. */
24173
char dm_task_set_name ();
24177
return dm_task_set_name ();
24182
rm -f conftest.$ac_objext conftest$ac_exeext
24183
if { (ac_try="$ac_link"
24184
case "(($ac_try" in
24185
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24186
*) ac_try_echo=$ac_try;;
24188
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24189
(eval "$ac_link") 2>conftest.er1
24191
grep -v '^ *+' conftest.er1 >conftest.err
24193
cat conftest.err >&5
24194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195
(exit $ac_status); } && {
24196
test -z "$ac_c_werror_flag" ||
24197
test ! -s conftest.err
24198
} && test -s conftest$ac_exeext &&
24199
$as_test_x conftest$ac_exeext; then
24200
ac_cv_lib_devmapper_dm_task_set_name=yes
24202
echo "$as_me: failed program was:" >&5
24203
sed 's/^/| /' conftest.$ac_ext >&5
24205
ac_cv_lib_devmapper_dm_task_set_name=no
24208
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24209
conftest$ac_exeext conftest.$ac_ext
24210
LIBS=$ac_check_lib_save_LIBS
24212
{ echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_task_set_name" >&5
24213
echo "${ECHO_T}$ac_cv_lib_devmapper_dm_task_set_name" >&6; }
24214
if test $ac_cv_lib_devmapper_dm_task_set_name = yes; then
24215
cat >>confdefs.h <<_ACEOF
24216
#define HAVE_LIBDEVMAPPER 1
24219
LIBS="-ldevmapper $LIBS"
24225
if test "${ac_cv_header_libdevmapper_h+set}" = set; then
24226
{ echo "$as_me:$LINENO: checking for libdevmapper.h" >&5
24227
echo $ECHO_N "checking for libdevmapper.h... $ECHO_C" >&6; }
24228
if test "${ac_cv_header_libdevmapper_h+set}" = set; then
24229
echo $ECHO_N "(cached) $ECHO_C" >&6
24231
{ echo "$as_me:$LINENO: result: $ac_cv_header_libdevmapper_h" >&5
24232
echo "${ECHO_T}$ac_cv_header_libdevmapper_h" >&6; }
24234
# Is the header compilable?
24235
{ echo "$as_me:$LINENO: checking libdevmapper.h usability" >&5
24236
echo $ECHO_N "checking libdevmapper.h usability... $ECHO_C" >&6; }
24237
cat >conftest.$ac_ext <<_ACEOF
24240
cat confdefs.h >>conftest.$ac_ext
24241
cat >>conftest.$ac_ext <<_ACEOF
24242
/* end confdefs.h. */
24243
$ac_includes_default
24244
#include <libdevmapper.h>
24246
rm -f conftest.$ac_objext
24247
if { (ac_try="$ac_compile"
24248
case "(($ac_try" in
24249
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24250
*) ac_try_echo=$ac_try;;
24252
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24253
(eval "$ac_compile") 2>conftest.er1
24255
grep -v '^ *+' conftest.er1 >conftest.err
24257
cat conftest.err >&5
24258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24259
(exit $ac_status); } && {
24260
test -z "$ac_c_werror_flag" ||
24261
test ! -s conftest.err
24262
} && test -s conftest.$ac_objext; then
24263
ac_header_compiler=yes
24265
echo "$as_me: failed program was:" >&5
24266
sed 's/^/| /' conftest.$ac_ext >&5
24268
ac_header_compiler=no
24271
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24272
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24273
echo "${ECHO_T}$ac_header_compiler" >&6; }
24275
# Is the header present?
24276
{ echo "$as_me:$LINENO: checking libdevmapper.h presence" >&5
24277
echo $ECHO_N "checking libdevmapper.h presence... $ECHO_C" >&6; }
24278
cat >conftest.$ac_ext <<_ACEOF
24281
cat confdefs.h >>conftest.$ac_ext
24282
cat >>conftest.$ac_ext <<_ACEOF
24283
/* end confdefs.h. */
24284
#include <libdevmapper.h>
24286
if { (ac_try="$ac_cpp conftest.$ac_ext"
24287
case "(($ac_try" in
24288
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24289
*) ac_try_echo=$ac_try;;
24291
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24292
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24294
grep -v '^ *+' conftest.er1 >conftest.err
24296
cat conftest.err >&5
24297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298
(exit $ac_status); } >/dev/null && {
24299
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24300
test ! -s conftest.err
24302
ac_header_preproc=yes
24304
echo "$as_me: failed program was:" >&5
24305
sed 's/^/| /' conftest.$ac_ext >&5
24307
ac_header_preproc=no
24310
rm -f conftest.err conftest.$ac_ext
24311
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24312
echo "${ECHO_T}$ac_header_preproc" >&6; }
24314
# So? What about this header?
24315
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24317
{ echo "$as_me:$LINENO: WARNING: libdevmapper.h: accepted by the compiler, rejected by the preprocessor!" >&5
24318
echo "$as_me: WARNING: libdevmapper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24319
{ echo "$as_me:$LINENO: WARNING: libdevmapper.h: proceeding with the compiler's result" >&5
24320
echo "$as_me: WARNING: libdevmapper.h: proceeding with the compiler's result" >&2;}
24321
ac_header_preproc=yes
24324
{ echo "$as_me:$LINENO: WARNING: libdevmapper.h: present but cannot be compiled" >&5
24325
echo "$as_me: WARNING: libdevmapper.h: present but cannot be compiled" >&2;}
24326
{ echo "$as_me:$LINENO: WARNING: libdevmapper.h: check for missing prerequisite headers?" >&5
24327
echo "$as_me: WARNING: libdevmapper.h: check for missing prerequisite headers?" >&2;}
24328
{ echo "$as_me:$LINENO: WARNING: libdevmapper.h: see the Autoconf documentation" >&5
24329
echo "$as_me: WARNING: libdevmapper.h: see the Autoconf documentation" >&2;}
24330
{ echo "$as_me:$LINENO: WARNING: libdevmapper.h: section \"Present But Cannot Be Compiled\"" >&5
24331
echo "$as_me: WARNING: libdevmapper.h: section \"Present But Cannot Be Compiled\"" >&2;}
24332
{ echo "$as_me:$LINENO: WARNING: libdevmapper.h: proceeding with the preprocessor's result" >&5
24333
echo "$as_me: WARNING: libdevmapper.h: proceeding with the preprocessor's result" >&2;}
24334
{ echo "$as_me:$LINENO: WARNING: libdevmapper.h: in the future, the compiler will take precedence" >&5
24335
echo "$as_me: WARNING: libdevmapper.h: in the future, the compiler will take precedence" >&2;}
24339
{ echo "$as_me:$LINENO: checking for libdevmapper.h" >&5
24340
echo $ECHO_N "checking for libdevmapper.h... $ECHO_C" >&6; }
24341
if test "${ac_cv_header_libdevmapper_h+set}" = set; then
24342
echo $ECHO_N "(cached) $ECHO_C" >&6
24344
ac_cv_header_libdevmapper_h=$ac_header_preproc
24346
{ echo "$as_me:$LINENO: result: $ac_cv_header_libdevmapper_h" >&5
24347
echo "${ECHO_T}$ac_cv_header_libdevmapper_h" >&6; }
24350
if test $ac_cv_header_libdevmapper_h = yes; then
24357
LIBDEVMAPPER_LIBS="$LIBS"
24362
{ echo "$as_me:$LINENO: checking whether to build libdevmapper module" >&5
24363
echo $ECHO_N "checking whether to build libdevmapper module... $ECHO_C" >&6; }
24364
if test -n "${have_module+set}"; then
24365
if test "x${enable_libdevmapper}" = "xauto"; then
24366
if test "x${enable_plugins}" != "xno"; then
24367
{ echo "$as_me:$LINENO: result: yes, as plugin" >&5
24368
echo "${ECHO_T}yes, as plugin" >&6; }
24372
{ echo "$as_me:$LINENO: result: yes" >&5
24373
echo "${ECHO_T}yes" >&6; }
24377
elif test "x${enable_libdevmapper}" = "xshared"; then
24378
if test "x${enable_plugins}" != "xno"; then
24379
{ echo "$as_me:$LINENO: result: yes, as plugin" >&5
24380
echo "${ECHO_T}yes, as plugin" >&6; }
24384
{ echo "$as_me:$LINENO: result: no" >&5
24385
echo "${ECHO_T}no" >&6; }
24386
{ { echo "$as_me:$LINENO: error: Can't build libdevmapper module, plugins are disabled" >&5
24387
echo "$as_me: error: Can't build libdevmapper module, plugins are disabled" >&2;}
24388
{ (exit 1); exit 1; }; }
24391
{ echo "$as_me:$LINENO: result: yes" >&5
24392
echo "${ECHO_T}yes" >&6; }
24396
elif test "x${enable_libdevmapper}" != "xauto"; then
24397
{ echo "$as_me:$LINENO: result: no" >&5
24398
echo "${ECHO_T}no" >&6; }
24399
{ { echo "$as_me:$LINENO: error: Unable to build libdevmapper plugin, see messages above" >&5
24400
echo "$as_me: error: Unable to build libdevmapper plugin, see messages above" >&2;}
24401
{ (exit 1); exit 1; }; }
24403
{ echo "$as_me:$LINENO: result: no" >&5
24404
echo "${ECHO_T}no" >&6; }
24409
{ echo "$as_me:$LINENO: checking whether to build libdevmapper module" >&5
24410
echo $ECHO_N "checking whether to build libdevmapper module... $ECHO_C" >&6; }
24411
{ echo "$as_me:$LINENO: result: no" >&5
24412
echo "${ECHO_T}no" >&6; }
24419
if test x$build_static = xyes; then
24420
BUILD_LIBDEVMAPPER_TRUE=
24421
BUILD_LIBDEVMAPPER_FALSE='#'
24423
BUILD_LIBDEVMAPPER_TRUE='#'
24424
BUILD_LIBDEVMAPPER_FALSE=
24429
if test x$build_shared = xyes; then
24430
SHARED_LIBDEVMAPPER_TRUE=
24431
SHARED_LIBDEVMAPPER_FALSE='#'
24433
SHARED_LIBDEVMAPPER_TRUE='#'
24434
SHARED_LIBDEVMAPPER_FALSE=
24441
if test x$enable_static = xyes; then
24442
STATIC_CRYPTSETUP_TRUE=
24443
STATIC_CRYPTSETUP_FALSE='#'
24445
STATIC_CRYPTSETUP_TRUE='#'
24446
STATIC_CRYPTSETUP_FALSE=
24451
if test x$enable_static = xno; then
24452
DYNAMIC_CRYPTSETUP_TRUE=
24453
DYNAMIC_CRYPTSETUP_FALSE='#'
24455
DYNAMIC_CRYPTSETUP_TRUE='#'
24456
DYNAMIC_CRYPTSETUP_FALSE=
24461
ac_config_files="$ac_config_files m4/Makefile Makefile lib/Makefile src/Makefile po/Makefile.in luks/Makefile man/Makefile"
24463
cat >confcache <<\_ACEOF
24464
# This file is a shell script that caches the results of configure
24465
# tests run on this system so they can be shared between configure
24466
# scripts and configure runs, see configure's option --config-cache.
24467
# It is not useful on other systems. If it contains results you don't
24468
# want to keep, you may remove or edit it.
24470
# config.status only pays attention to the cache file if you give it
24471
# the --recheck option to rerun configure.
24473
# `ac_cv_env_foo' variables (set or unset) will be overridden when
24474
# loading this file, other *unset* `ac_cv_foo' will be assigned the
24475
# following values.
24479
# The following way of writing the cache mishandles newlines in values,
24480
# but we know of no workaround that is simple, portable, and efficient.
24481
# So, we kill variables containing newlines.
24482
# Ultrix sh set writes to stderr and can't be redirected directly,
24483
# and sets the high bit in the cache file unless we assign to the vars.
24485
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24486
eval ac_val=\$$ac_var
24490
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24491
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24494
_ | IFS | as_nl) ;; #(
24495
*) $as_unset $ac_var ;;
24501
case $as_nl`(ac_space=' '; set) 2>&1` in #(
24502
*${as_nl}ac_space=\ *)
24503
# `set' does not quote correctly, so add quotes (double-quote
24504
# substitution turns \\\\ into \\, and sed turns \\ into \).
24507
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24510
# `set' quotes correctly as required by POSIX, so do not add quotes.
24511
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24520
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24522
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24524
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24525
if test -w "$cache_file"; then
24526
test "x$cache_file" != "x/dev/null" &&
24527
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
24528
echo "$as_me: updating cache $cache_file" >&6;}
24529
cat confcache >$cache_file
24531
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24532
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24537
test "x$prefix" = xNONE && prefix=$ac_default_prefix
24538
# Let make expand exec_prefix.
24539
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24541
DEFS=-DHAVE_CONFIG_H
24545
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24546
# 1. Remove the extension, and $U if already installed.
24547
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24548
ac_i=`echo "$ac_i" | sed "$ac_script"`
24549
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24550
# will be set to the directory where LIBOBJS objects are built.
24551
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24552
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24554
LIBOBJS=$ac_libobjs
24556
LTLIBOBJS=$ac_ltlibobjs
24559
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24560
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24561
Usually this means the macro was only invoked conditionally." >&5
24562
echo "$as_me: error: conditional \"AMDEP\" was never defined.
24563
Usually this means the macro was only invoked conditionally." >&2;}
24564
{ (exit 1); exit 1; }; }
24566
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24567
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24568
Usually this means the macro was only invoked conditionally." >&5
24569
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24570
Usually this means the macro was only invoked conditionally." >&2;}
24571
{ (exit 1); exit 1; }; }
24573
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24574
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24575
Usually this means the macro was only invoked conditionally." >&5
24576
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24577
Usually this means the macro was only invoked conditionally." >&2;}
24578
{ (exit 1); exit 1; }; }
24580
if test -z "${STATIC_LIBRARY_TRUE}" && test -z "${STATIC_LIBRARY_FALSE}"; then
24581
{ { echo "$as_me:$LINENO: error: conditional \"STATIC_LIBRARY\" was never defined.
24582
Usually this means the macro was only invoked conditionally." >&5
24583
echo "$as_me: error: conditional \"STATIC_LIBRARY\" was never defined.
24584
Usually this means the macro was only invoked conditionally." >&2;}
24585
{ (exit 1); exit 1; }; }
24587
if test -z "${BUILD_LIBGCRYPT_TRUE}" && test -z "${BUILD_LIBGCRYPT_FALSE}"; then
24588
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBGCRYPT\" was never defined.
24589
Usually this means the macro was only invoked conditionally." >&5
24590
echo "$as_me: error: conditional \"BUILD_LIBGCRYPT\" was never defined.
24591
Usually this means the macro was only invoked conditionally." >&2;}
24592
{ (exit 1); exit 1; }; }
24594
if test -z "${SHARED_LIBGCRYPT_TRUE}" && test -z "${SHARED_LIBGCRYPT_FALSE}"; then
24595
{ { echo "$as_me:$LINENO: error: conditional \"SHARED_LIBGCRYPT\" was never defined.
24596
Usually this means the macro was only invoked conditionally." >&5
24597
echo "$as_me: error: conditional \"SHARED_LIBGCRYPT\" was never defined.
24598
Usually this means the macro was only invoked conditionally." >&2;}
24599
{ (exit 1); exit 1; }; }
24601
if test -z "${BUILD_LIBDEVMAPPER_TRUE}" && test -z "${BUILD_LIBDEVMAPPER_FALSE}"; then
24602
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBDEVMAPPER\" was never defined.
24603
Usually this means the macro was only invoked conditionally." >&5
24604
echo "$as_me: error: conditional \"BUILD_LIBDEVMAPPER\" was never defined.
24605
Usually this means the macro was only invoked conditionally." >&2;}
24606
{ (exit 1); exit 1; }; }
24608
if test -z "${SHARED_LIBDEVMAPPER_TRUE}" && test -z "${SHARED_LIBDEVMAPPER_FALSE}"; then
24609
{ { echo "$as_me:$LINENO: error: conditional \"SHARED_LIBDEVMAPPER\" was never defined.
24610
Usually this means the macro was only invoked conditionally." >&5
24611
echo "$as_me: error: conditional \"SHARED_LIBDEVMAPPER\" was never defined.
24612
Usually this means the macro was only invoked conditionally." >&2;}
24613
{ (exit 1); exit 1; }; }
24615
if test -z "${STATIC_CRYPTSETUP_TRUE}" && test -z "${STATIC_CRYPTSETUP_FALSE}"; then
24616
{ { echo "$as_me:$LINENO: error: conditional \"STATIC_CRYPTSETUP\" was never defined.
24617
Usually this means the macro was only invoked conditionally." >&5
24618
echo "$as_me: error: conditional \"STATIC_CRYPTSETUP\" was never defined.
24619
Usually this means the macro was only invoked conditionally." >&2;}
24620
{ (exit 1); exit 1; }; }
24622
if test -z "${DYNAMIC_CRYPTSETUP_TRUE}" && test -z "${DYNAMIC_CRYPTSETUP_FALSE}"; then
24623
{ { echo "$as_me:$LINENO: error: conditional \"DYNAMIC_CRYPTSETUP\" was never defined.
24624
Usually this means the macro was only invoked conditionally." >&5
24625
echo "$as_me: error: conditional \"DYNAMIC_CRYPTSETUP\" was never defined.
24626
Usually this means the macro was only invoked conditionally." >&2;}
24627
{ (exit 1); exit 1; }; }
24630
: ${CONFIG_STATUS=./config.status}
24631
ac_clean_files_save=$ac_clean_files
24632
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24633
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24634
echo "$as_me: creating $CONFIG_STATUS" >&6;}
24635
cat >$CONFIG_STATUS <<_ACEOF
24637
# Generated by $as_me.
24638
# Run this file to recreate the current configuration.
24639
# Compiler output produced by configure, useful for debugging
24640
# configure, is in config.log if it exists.
24643
ac_cs_recheck=false
24645
SHELL=\${CONFIG_SHELL-$SHELL}
24648
cat >>$CONFIG_STATUS <<\_ACEOF
24649
## --------------------- ##
24650
## M4sh Initialization. ##
24651
## --------------------- ##
24653
# Be more Bourne compatible
24654
DUALCASE=1; export DUALCASE # for MKS sh
24655
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24658
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24659
# is contrary to our usage. Disable this feature.
24660
alias -g '${1+"$@"}'='"$@"'
24661
setopt NO_GLOB_SUBST
24663
case `(set -o) 2>/dev/null` in
24664
*posix*) set -o posix ;;
24673
# Avoid depending upon Character Ranges.
24674
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24675
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24676
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24677
as_cr_digits='0123456789'
24678
as_cr_alnum=$as_cr_Letters$as_cr_digits
24680
# The user is always right.
24681
if test "${PATH_SEPARATOR+set}" != set; then
24682
echo "#! /bin/sh" >conf$$.sh
24683
echo "exit 0" >>conf$$.sh
24685
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24693
# Support unset when possible.
24694
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24702
# We need space, tab and new line, in precisely that order. Quoting is
24703
# there to prevent editors from complaining about space-tab.
24704
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24705
# splitting by setting IFS to empty value.)
24710
# Find who we are. Look in the path if we contain no directory separator.
24712
*[\\/]* ) as_myself=$0 ;;
24713
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24714
for as_dir in $PATH
24717
test -z "$as_dir" && as_dir=.
24718
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24724
# We did not find ourselves, most probably we were run as `sh COMMAND'
24725
# in which case we are not to be found in the path.
24726
if test "x$as_myself" = x; then
24729
if test ! -f "$as_myself"; then
24730
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24731
{ (exit 1); exit 1; }
24734
# Work around bugs in pre-3.0 UWIN ksh.
24735
for as_var in ENV MAIL MAILPATH
24736
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24744
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24745
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24746
LC_TELEPHONE LC_TIME
24748
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24749
eval $as_var=C; export $as_var
24751
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24755
# Required to use basename.
24756
if expr a : '\(a\)' >/dev/null 2>&1 &&
24757
test "X`expr 00001 : '.*\(...\)'`" = X001; then
24763
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24764
as_basename=basename
24770
# Name of the executable.
24771
as_me=`$as_basename -- "$0" ||
24772
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24773
X"$0" : 'X\(//\)$' \| \
24774
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24776
sed '/^.*\/\([^/][^/]*\)\/*$/{
24795
as_lineno_1=$LINENO
24796
as_lineno_2=$LINENO
24797
test "x$as_lineno_1" != "x$as_lineno_2" &&
24798
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24800
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24801
# uniformly replaced by the line number. The first 'sed' inserts a
24802
# line-number line after each line using $LINENO; the second 'sed'
24803
# does the real work. The second script uses 'N' to pair each
24804
# line-number line with the line containing $LINENO, and appends
24805
# trailing '-' during substitution so that $LINENO is not a special
24806
# case at line end.
24807
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24808
# scripts with optimization help from Paolo Bonzini. Blame Lee
24809
# E. McMahon (1931-1989) for sed's syntax. :-)
24821
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24824
' >$as_me.lineno &&
24825
chmod +x "$as_me.lineno" ||
24826
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24827
{ (exit 1); exit 1; }; }
24829
# Don't try to exec as it changes $[0], causing all sort of problems
24830
# (the dirname of $[0] is not the place where we might find the
24831
# original and so on. Autoconf is especially sensitive to this).
24832
. "./$as_me.lineno"
24833
# Exit status is that of the last command.
24838
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24844
ECHO_C= ECHO_N= ECHO_T=
24845
case `echo -n x` in
24847
case `echo 'x\c'` in
24848
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
24855
if expr a : '\(a\)' >/dev/null 2>&1 &&
24856
test "X`expr 00001 : '.*\(...\)'`" = X001; then
24862
rm -f conf$$ conf$$.exe conf$$.file
24863
if test -d conf$$.dir; then
24864
rm -f conf$$.dir/conf$$.file
24870
if ln -s conf$$.file conf$$ 2>/dev/null; then
24872
# ... but there are two gotchas:
24873
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24874
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24875
# In both cases, we have to default to `cp -p'.
24876
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24878
elif ln conf$$.file conf$$ 2>/dev/null; then
24883
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24884
rmdir conf$$.dir 2>/dev/null
24886
if mkdir -p . 2>/dev/null; then
24889
test -d ./-p && rmdir ./-p
24893
if test -x / >/dev/null 2>&1; then
24894
as_test_x='test -x'
24896
if ls -dL / >/dev/null 2>&1; then
24903
if test -d "$1"; then
24909
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24910
???[sx]*):;;*)false;;esac;fi
24914
as_executable_p=$as_test_x
24916
# Sed expression to map a string onto a valid CPP name.
24917
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24919
# Sed expression to map a string onto a valid variable name.
24920
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24925
# Save the log message, to keep $[0] and so on meaningful, and to
24926
# report actual input values of CONFIG_FILES etc. instead of their
24927
# values after options handling.
24929
This file was extended by cryptsetup $as_me 1.0.6, which was
24930
generated by GNU Autoconf 2.61. Invocation command line was
24932
CONFIG_FILES = $CONFIG_FILES
24933
CONFIG_HEADERS = $CONFIG_HEADERS
24934
CONFIG_LINKS = $CONFIG_LINKS
24935
CONFIG_COMMANDS = $CONFIG_COMMANDS
24938
on `(hostname || uname -n) 2>/dev/null | sed 1q`
24943
cat >>$CONFIG_STATUS <<_ACEOF
24944
# Files that config.status was made for.
24945
config_files="$ac_config_files"
24946
config_headers="$ac_config_headers"
24947
config_commands="$ac_config_commands"
24951
cat >>$CONFIG_STATUS <<\_ACEOF
24953
\`$as_me' instantiates files from templates according to the
24954
current configuration.
24956
Usage: $0 [OPTIONS] [FILE]...
24958
-h, --help print this help, then exit
24959
-V, --version print version number and configuration settings, then exit
24960
-q, --quiet do not print progress messages
24961
-d, --debug don't remove temporary files
24962
--recheck update $as_me by reconfiguring in the same conditions
24963
--file=FILE[:TEMPLATE]
24964
instantiate the configuration file FILE
24965
--header=FILE[:TEMPLATE]
24966
instantiate the configuration header FILE
24968
Configuration files:
24971
Configuration headers:
24974
Configuration commands:
24977
Report bugs to <bug-autoconf@gnu.org>."
24980
cat >>$CONFIG_STATUS <<_ACEOF
24982
cryptsetup config.status 1.0.6
24983
configured by $0, generated by GNU Autoconf 2.61,
24984
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24986
Copyright (C) 2006 Free Software Foundation, Inc.
24987
This config.status script is free software; the Free Software Foundation
24988
gives unlimited permission to copy, distribute and modify it."
24995
cat >>$CONFIG_STATUS <<\_ACEOF
24996
# If no file are specified by the user, then we need to provide default
24997
# value. By we need to know if files were specified by the user.
25003
ac_option=`expr "X$1" : 'X\([^=]*\)='`
25004
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25015
# Handling of the options.
25016
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25018
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25019
echo "$ac_cs_version"; exit ;;
25020
--debug | --debu | --deb | --de | --d | -d )
25022
--file | --fil | --fi | --f )
25024
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25025
ac_need_defaults=false;;
25026
--header | --heade | --head | --hea )
25028
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25029
ac_need_defaults=false;;
25031
# Conflict between --help and --header
25032
{ echo "$as_me: error: ambiguous option: $1
25033
Try \`$0 --help' for more information." >&2
25034
{ (exit 1); exit 1; }; };;
25035
--help | --hel | -h )
25036
echo "$ac_cs_usage"; exit ;;
25037
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
25038
| -silent | --silent | --silen | --sile | --sil | --si | --s)
25041
# This is an error.
25042
-*) { echo "$as_me: error: unrecognized option: $1
25043
Try \`$0 --help' for more information." >&2
25044
{ (exit 1); exit 1; }; } ;;
25046
*) ac_config_targets="$ac_config_targets $1"
25047
ac_need_defaults=false ;;
25053
ac_configure_extra_args=
25055
if $ac_cs_silent; then
25057
ac_configure_extra_args="$ac_configure_extra_args --silent"
25061
cat >>$CONFIG_STATUS <<_ACEOF
25062
if \$ac_cs_recheck; then
25063
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25064
CONFIG_SHELL=$SHELL
25065
export CONFIG_SHELL
25066
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25070
cat >>$CONFIG_STATUS <<\_ACEOF
25074
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25075
## Running $as_me. ##
25081
cat >>$CONFIG_STATUS <<_ACEOF
25085
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25086
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
25087
# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
25088
# from automake < 1.5.
25089
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
25090
# Capture the value of LINGUAS because we need it to compute CATALOGS.
25091
LINGUAS="${LINGUAS-%UNSET%}"
25096
cat >>$CONFIG_STATUS <<\_ACEOF
25098
# Handling of arguments.
25099
for ac_config_target in $ac_config_targets
25101
case $ac_config_target in
25102
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
25103
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25104
"po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
25105
"m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
25106
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25107
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25108
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25109
"po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
25110
"luks/Makefile") CONFIG_FILES="$CONFIG_FILES luks/Makefile" ;;
25111
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
25113
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25114
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25115
{ (exit 1); exit 1; }; };;
25120
# If the user did not use the arguments to specify the items to instantiate,
25121
# then the envvar interface is used. Set only those that are not.
25122
# We use the long form for the default assignment because of an extremely
25123
# bizarre bug on SunOS 4.1.3.
25124
if $ac_need_defaults; then
25125
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25126
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25127
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25130
# Have a temporary directory for convenience. Make it in the build tree
25131
# simply because there is no reason against having it here, and in addition,
25132
# creating and moving files from /tmp can sometimes cause problems.
25133
# Hook for its removal unless debugging.
25134
# Note that there is a small window in which the directory will not be cleaned:
25135
# after its creation but before its name has been assigned to `$tmp'.
25139
trap 'exit_status=$?
25140
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25142
trap '{ (exit 1); exit 1; }' 1 2 13 15
25144
# Create a (secure) tmp directory for tmp files.
25147
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25148
test -n "$tmp" && test -d "$tmp"
25151
tmp=./conf$$-$RANDOM
25152
(umask 077 && mkdir "$tmp")
25155
echo "$me: cannot create a temporary directory in ." >&2
25156
{ (exit 1); exit 1; }
25160
# Set up the sed scripts for CONFIG_FILES section.
25163
# No need to generate the scripts if there are no CONFIG_FILES.
25164
# This happens for instance when ./config.status config.h
25165
if test -n "$CONFIG_FILES"; then
25172
for ac_last_try in false false false false false :; do
25173
cat >conf$$subs.sed <<_ACEOF
25174
SHELL!$SHELL$ac_delim
25175
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25176
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25177
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25178
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25179
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25180
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25181
exec_prefix!$exec_prefix$ac_delim
25182
prefix!$prefix$ac_delim
25183
program_transform_name!$program_transform_name$ac_delim
25184
bindir!$bindir$ac_delim
25185
sbindir!$sbindir$ac_delim
25186
libexecdir!$libexecdir$ac_delim
25187
datarootdir!$datarootdir$ac_delim
25188
datadir!$datadir$ac_delim
25189
sysconfdir!$sysconfdir$ac_delim
25190
sharedstatedir!$sharedstatedir$ac_delim
25191
localstatedir!$localstatedir$ac_delim
25192
includedir!$includedir$ac_delim
25193
oldincludedir!$oldincludedir$ac_delim
25194
docdir!$docdir$ac_delim
25195
infodir!$infodir$ac_delim
25196
htmldir!$htmldir$ac_delim
25197
dvidir!$dvidir$ac_delim
25198
pdfdir!$pdfdir$ac_delim
25199
psdir!$psdir$ac_delim
25200
libdir!$libdir$ac_delim
25201
localedir!$localedir$ac_delim
25202
mandir!$mandir$ac_delim
25203
DEFS!$DEFS$ac_delim
25204
ECHO_C!$ECHO_C$ac_delim
25205
ECHO_N!$ECHO_N$ac_delim
25206
ECHO_T!$ECHO_T$ac_delim
25207
LIBS!$LIBS$ac_delim
25208
build_alias!$build_alias$ac_delim
25209
host_alias!$host_alias$ac_delim
25210
target_alias!$target_alias$ac_delim
25211
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25212
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25213
INSTALL_DATA!$INSTALL_DATA$ac_delim
25214
CYGPATH_W!$CYGPATH_W$ac_delim
25215
PACKAGE!$PACKAGE$ac_delim
25216
VERSION!$VERSION$ac_delim
25217
ACLOCAL!$ACLOCAL$ac_delim
25218
AUTOCONF!$AUTOCONF$ac_delim
25219
AUTOMAKE!$AUTOMAKE$ac_delim
25220
AUTOHEADER!$AUTOHEADER$ac_delim
25221
MAKEINFO!$MAKEINFO$ac_delim
25222
install_sh!$install_sh$ac_delim
25223
STRIP!$STRIP$ac_delim
25224
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25225
mkdir_p!$mkdir_p$ac_delim
25227
SET_MAKE!$SET_MAKE$ac_delim
25228
am__leading_dot!$am__leading_dot$ac_delim
25229
AMTAR!$AMTAR$ac_delim
25230
am__tar!$am__tar$ac_delim
25231
am__untar!$am__untar$ac_delim
25232
build!$build$ac_delim
25233
build_cpu!$build_cpu$ac_delim
25234
build_vendor!$build_vendor$ac_delim
25235
build_os!$build_os$ac_delim
25236
host!$host$ac_delim
25237
host_cpu!$host_cpu$ac_delim
25238
host_vendor!$host_vendor$ac_delim
25239
host_os!$host_os$ac_delim
25241
CFLAGS!$CFLAGS$ac_delim
25242
LDFLAGS!$LDFLAGS$ac_delim
25243
CPPFLAGS!$CPPFLAGS$ac_delim
25244
ac_ct_CC!$ac_ct_CC$ac_delim
25245
EXEEXT!$EXEEXT$ac_delim
25246
OBJEXT!$OBJEXT$ac_delim
25247
DEPDIR!$DEPDIR$ac_delim
25248
am__include!$am__include$ac_delim
25249
am__quote!$am__quote$ac_delim
25250
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25251
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25252
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25253
CCDEPMODE!$CCDEPMODE$ac_delim
25254
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25255
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25258
GREP!$GREP$ac_delim
25259
EGREP!$EGREP$ac_delim
25260
LN_S!$LN_S$ac_delim
25261
ECHO!$ECHO$ac_delim
25263
RANLIB!$RANLIB$ac_delim
25264
DSYMUTIL!$DSYMUTIL$ac_delim
25265
NMEDIT!$NMEDIT$ac_delim
25267
CXXFLAGS!$CXXFLAGS$ac_delim
25268
ac_ct_CXX!$ac_ct_CXX$ac_delim
25269
CXXDEPMODE!$CXXDEPMODE$ac_delim
25270
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25273
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25275
elif $ac_last_try; then
25276
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25277
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25278
{ (exit 1); exit 1; }; }
25280
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25284
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25285
if test -n "$ac_eof"; then
25286
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25287
ac_eof=`expr $ac_eof + 1`
25290
cat >>$CONFIG_STATUS <<_ACEOF
25291
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25292
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25295
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25296
s/^/s,@/; s/!/@,|#_!!_#|/
25299
s/'"$ac_delim"'$/,g/; t
25301
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25302
' >>$CONFIG_STATUS <conf$$subs.sed
25303
rm -f conf$$subs.sed
25304
cat >>$CONFIG_STATUS <<_ACEOF
25310
for ac_last_try in false false false false false :; do
25311
cat >conf$$subs.sed <<_ACEOF
25312
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25313
CXXCPP!$CXXCPP$ac_delim
25315
FFLAGS!$FFLAGS$ac_delim
25316
ac_ct_F77!$ac_ct_F77$ac_delim
25317
LIBTOOL!$LIBTOOL$ac_delim
25318
UUID_LIBS!$UUID_LIBS$ac_delim
25319
GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
25320
USE_NLS!$USE_NLS$ac_delim
25321
MSGFMT!$MSGFMT$ac_delim
25322
GMSGFMT!$GMSGFMT$ac_delim
25323
MSGFMT_015!$MSGFMT_015$ac_delim
25324
GMSGFMT_015!$GMSGFMT_015$ac_delim
25325
XGETTEXT!$XGETTEXT$ac_delim
25326
XGETTEXT_015!$XGETTEXT_015$ac_delim
25327
MSGMERGE!$MSGMERGE$ac_delim
25328
INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
25329
LIBICONV!$LIBICONV$ac_delim
25330
LTLIBICONV!$LTLIBICONV$ac_delim
25331
INTLLIBS!$INTLLIBS$ac_delim
25332
LIBINTL!$LIBINTL$ac_delim
25333
LTLIBINTL!$LTLIBINTL$ac_delim
25334
POSUB!$POSUB$ac_delim
25335
POPT_LIBS!$POPT_LIBS$ac_delim
25336
STATIC_LIBRARY_TRUE!$STATIC_LIBRARY_TRUE$ac_delim
25337
STATIC_LIBRARY_FALSE!$STATIC_LIBRARY_FALSE$ac_delim
25338
LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
25339
LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
25340
LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
25341
BUILD_LIBGCRYPT_TRUE!$BUILD_LIBGCRYPT_TRUE$ac_delim
25342
BUILD_LIBGCRYPT_FALSE!$BUILD_LIBGCRYPT_FALSE$ac_delim
25343
SHARED_LIBGCRYPT_TRUE!$SHARED_LIBGCRYPT_TRUE$ac_delim
25344
SHARED_LIBGCRYPT_FALSE!$SHARED_LIBGCRYPT_FALSE$ac_delim
25345
LIBDEVMAPPER_LIBS!$LIBDEVMAPPER_LIBS$ac_delim
25346
LIBDEVMAPPER_CFLAGS!$LIBDEVMAPPER_CFLAGS$ac_delim
25347
BUILD_LIBDEVMAPPER_TRUE!$BUILD_LIBDEVMAPPER_TRUE$ac_delim
25348
BUILD_LIBDEVMAPPER_FALSE!$BUILD_LIBDEVMAPPER_FALSE$ac_delim
25349
SHARED_LIBDEVMAPPER_TRUE!$SHARED_LIBDEVMAPPER_TRUE$ac_delim
25350
SHARED_LIBDEVMAPPER_FALSE!$SHARED_LIBDEVMAPPER_FALSE$ac_delim
25351
STATIC_CRYPTSETUP_TRUE!$STATIC_CRYPTSETUP_TRUE$ac_delim
25352
STATIC_CRYPTSETUP_FALSE!$STATIC_CRYPTSETUP_FALSE$ac_delim
25353
DYNAMIC_CRYPTSETUP_TRUE!$DYNAMIC_CRYPTSETUP_TRUE$ac_delim
25354
DYNAMIC_CRYPTSETUP_FALSE!$DYNAMIC_CRYPTSETUP_FALSE$ac_delim
25355
LIBOBJS!$LIBOBJS$ac_delim
25356
LTLIBOBJS!$LTLIBOBJS$ac_delim
25359
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then
25361
elif $ac_last_try; then
25362
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25363
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25364
{ (exit 1); exit 1; }; }
25366
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25370
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25371
if test -n "$ac_eof"; then
25372
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25373
ac_eof=`expr $ac_eof + 1`
25376
cat >>$CONFIG_STATUS <<_ACEOF
25377
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25378
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25381
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25382
s/^/s,@/; s/!/@,|#_!!_#|/
25385
s/'"$ac_delim"'$/,g/; t
25387
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25388
' >>$CONFIG_STATUS <conf$$subs.sed
25389
rm -f conf$$subs.sed
25390
cat >>$CONFIG_STATUS <<_ACEOF
25397
# VPATH may cause trouble with some makes, so we remove $(srcdir),
25398
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25399
# trailing colons and then remove the whole line if VPATH becomes empty
25400
# (actually we leave an empty line to preserve line numbers).
25401
if test "x$srcdir" = x.; then
25402
ac_vpsub='/^[ ]*VPATH[ ]*=/{
25403
s/:*\$(srcdir):*/:/
25404
s/:*\${srcdir}:*/:/
25406
s/^\([^=]*=[ ]*\):*/\1/
25412
cat >>$CONFIG_STATUS <<\_ACEOF
25413
fi # test -n "$CONFIG_FILES"
25416
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25419
:[FHLC]) ac_mode=$ac_tag; continue;;
25421
case $ac_mode$ac_tag in
25423
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25424
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25425
{ (exit 1); exit 1; }; };;
25426
:[FH]-) ac_tag=-:-;;
25427
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25444
-) ac_f="$tmp/stdin";;
25445
*) # Look for the file first in the build tree, then in the source tree
25446
# (if the path is not absolute). The absolute path cannot be DOS-style,
25447
# because $ac_f cannot contain `:'.
25451
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25453
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25454
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25455
{ (exit 1); exit 1; }; };;
25457
ac_file_inputs="$ac_file_inputs $ac_f"
25460
# Let's still pretend it is `configure' which instantiates (i.e., don't
25461
# use $as_me), people would be surprised to read:
25462
# /* config.h. Generated by config.status. */
25463
configure_input="Generated from "`IFS=:
25464
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25465
if test x"$ac_file" != x-; then
25466
configure_input="$ac_file. $configure_input"
25467
{ echo "$as_me:$LINENO: creating $ac_file" >&5
25468
echo "$as_me: creating $ac_file" >&6;}
25472
*:-:* | *:-) cat >"$tmp/stdin";;
25477
ac_dir=`$as_dirname -- "$ac_file" ||
25478
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25479
X"$ac_file" : 'X\(//\)[^/]' \| \
25480
X"$ac_file" : 'X\(//\)$' \| \
25481
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25483
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25487
/^X\(\/\/\)[^/].*/{
25502
-*) as_dir=./$as_dir;;
25504
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25508
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25509
*) as_qdir=$as_dir;;
25511
as_dirs="'$as_qdir' $as_dirs"
25512
as_dir=`$as_dirname -- "$as_dir" ||
25513
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25514
X"$as_dir" : 'X\(//\)[^/]' \| \
25515
X"$as_dir" : 'X\(//\)$' \| \
25516
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25518
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25522
/^X\(\/\/\)[^/].*/{
25535
test -d "$as_dir" && break
25537
test -z "$as_dirs" || eval "mkdir $as_dirs"
25538
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25539
echo "$as_me: error: cannot create directory $as_dir" >&2;}
25540
{ (exit 1); exit 1; }; }; }
25544
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25546
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25547
# A ".." for each directory in $ac_dir_suffix.
25548
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25549
case $ac_top_builddir_sub in
25550
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25551
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25554
ac_abs_top_builddir=$ac_pwd
25555
ac_abs_builddir=$ac_pwd$ac_dir_suffix
25556
# for backward compatibility:
25557
ac_top_builddir=$ac_top_build_prefix
25560
.) # We are building in place.
25562
ac_top_srcdir=$ac_top_builddir_sub
25563
ac_abs_top_srcdir=$ac_pwd ;;
25564
[\\/]* | ?:[\\/]* ) # Absolute name.
25565
ac_srcdir=$srcdir$ac_dir_suffix;
25566
ac_top_srcdir=$srcdir
25567
ac_abs_top_srcdir=$srcdir ;;
25568
*) # Relative name.
25569
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25570
ac_top_srcdir=$ac_top_build_prefix$srcdir
25571
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25573
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25583
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25584
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25588
cat >>$CONFIG_STATUS <<\_ACEOF
25589
# If the template does not know about datarootdir, expand it.
25590
# FIXME: This hack should be removed a few years after 2.60.
25591
ac_datarootdir_hack=; ac_datarootdir_seen=
25593
case `sed -n '/datarootdir/ {
25602
' $ac_file_inputs` in
25603
*datarootdir*) ac_datarootdir_seen=yes;;
25604
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25605
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25606
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25608
cat >>$CONFIG_STATUS <<_ACEOF
25609
ac_datarootdir_hack='
25610
s&@datadir@&$datadir&g
25611
s&@docdir@&$docdir&g
25612
s&@infodir@&$infodir&g
25613
s&@localedir@&$localedir&g
25614
s&@mandir@&$mandir&g
25615
s&\\\${datarootdir}&$datarootdir&g' ;;
25619
# Neutralize VPATH when `$srcdir' = `.'.
25620
# Shell code in configure.ac might set extrasub.
25621
# FIXME: do we really want to maintain this feature?
25622
cat >>$CONFIG_STATUS <<_ACEOF
25626
cat >>$CONFIG_STATUS <<\_ACEOF
25628
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25629
s&@configure_input@&$configure_input&;t t
25630
s&@top_builddir@&$ac_top_builddir_sub&;t t
25631
s&@srcdir@&$ac_srcdir&;t t
25632
s&@abs_srcdir@&$ac_abs_srcdir&;t t
25633
s&@top_srcdir@&$ac_top_srcdir&;t t
25634
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25635
s&@builddir@&$ac_builddir&;t t
25636
s&@abs_builddir@&$ac_abs_builddir&;t t
25637
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25638
s&@INSTALL@&$ac_INSTALL&;t t
25639
$ac_datarootdir_hack
25640
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25642
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25643
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25644
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25645
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25646
which seems to be undefined. Please make sure it is defined." >&5
25647
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25648
which seems to be undefined. Please make sure it is defined." >&2;}
25652
-) cat "$tmp/out"; rm -f "$tmp/out";;
25653
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25662
# Transform confdefs.h into a sed script `conftest.defines', that
25663
# substitutes the proper values into config.h.in to produce config.h.
25664
rm -f conftest.defines conftest.tail
25665
# First, append a space to every undef/define line, to ease matching.
25666
echo 's/$/ /' >conftest.defines
25667
# Then, protect against being on the right side of a sed subst, or in
25668
# an unquoted here document, in config.status. If some macros were
25669
# called several times there might be several #defines for the same
25670
# symbol, which is useless. But do not sort them, since the last
25671
# AC_DEFINE must be honored.
25672
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25673
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25674
# NAME is the cpp macro being defined, VALUE is the value it is being given.
25675
# PARAMS is the parameter list in the macro definition--in most cases, it's
25676
# just an empty string.
25677
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25678
ac_dB='\\)[ (].*,\\1define\\2'
25686
s/^[ ]*#[ ]*define[ ][ ]*//
25691
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25692
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25693
' >>conftest.defines
25695
# Remove the space that was appended to ease matching.
25696
# Then replace #undef with comments. This is necessary, for
25697
# example, in the case of _POSIX_SOURCE, which is predefined and required
25698
# on some systems where configure will not decide to define it.
25699
# (The regexp can be short, since the line contains either #define or #undef.)
25701
s,^[ #]*u.*,/* & */,' >>conftest.defines
25703
# Break up conftest.defines:
25704
ac_max_sed_lines=50
25706
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25707
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25708
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25710
ac_in='$ac_file_inputs'
25711
ac_out='"$tmp/out1"'
25712
ac_nxt='"$tmp/out2"'
25716
# Write a here document:
25717
cat >>$CONFIG_STATUS <<_ACEOF
25718
# First, check the format of the line:
25719
cat >"\$tmp/defines.sed" <<\\CEOF
25720
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25721
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25725
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25727
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25728
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25729
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25730
grep . conftest.tail >/dev/null || break
25731
rm -f conftest.defines
25732
mv conftest.tail conftest.defines
25734
rm -f conftest.defines conftest.tail
25736
echo "ac_result=$ac_in" >>$CONFIG_STATUS
25737
cat >>$CONFIG_STATUS <<\_ACEOF
25738
if test x"$ac_file" != x-; then
25739
echo "/* $configure_input */" >"$tmp/config.h"
25740
cat "$ac_result" >>"$tmp/config.h"
25741
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25742
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25743
echo "$as_me: $ac_file is unchanged" >&6;}
25746
mv "$tmp/config.h" $ac_file
25749
echo "/* $configure_input */"
25753
# Compute $ac_file's index in $config_headers.
25755
for _am_header in $config_headers :; do
25756
case $_am_header in
25757
$ac_file | $ac_file:* )
25760
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
25763
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25764
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25765
X$ac_file : 'X\(//\)[^/]' \| \
25766
X$ac_file : 'X\(//\)$' \| \
25767
X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25769
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25773
/^X\(\/\/\)[^/].*/{
25785
s/.*/./; q'`/stamp-h$_am_stamp_count
25788
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25789
echo "$as_me: executing $ac_file commands" >&6;}
25794
case $ac_file$ac_mode in
25795
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25796
# Strip MF so we end up with the name of the file.
25797
mf=`echo "$mf" | sed -e 's/:.*$//'`
25798
# Check whether this is an Automake generated Makefile or not.
25799
# We used to match only the files named `Makefile.in', but
25800
# some people rename them; so instead we look at the file content.
25801
# Grep'ing the first line is not enough: some people post-process
25802
# each Makefile.in and add a new line on top of each file to say so.
25803
# So let's grep whole file.
25804
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25805
dirpart=`$as_dirname -- "$mf" ||
25806
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25807
X"$mf" : 'X\(//\)[^/]' \| \
25808
X"$mf" : 'X\(//\)$' \| \
25809
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25811
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25815
/^X\(\/\/\)[^/].*/{
25831
# Extract the definition of DEPDIR, am__include, and am__quote
25832
# from the Makefile without running `make'.
25833
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25834
test -z "$DEPDIR" && continue
25835
am__include=`sed -n 's/^am__include = //p' < "$mf"`
25836
test -z "am__include" && continue
25837
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25838
# When using ansi2knr, U may be empty or an underscore; expand it
25839
U=`sed -n 's/^U = //p' < "$mf"`
25840
# Find all dependency output files, they are included files with
25841
# $(DEPDIR) in their names. We invoke sed twice because it is the
25842
# simplest approach to changing $(DEPDIR) to its actual value in the
25844
for file in `sed -n "
25845
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25846
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25847
# Make sure the directory exists.
25848
test -f "$dirpart/$file" && continue
25849
fdir=`$as_dirname -- "$file" ||
25850
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25851
X"$file" : 'X\(//\)[^/]' \| \
25852
X"$file" : 'X\(//\)$' \| \
25853
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25855
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25859
/^X\(\/\/\)[^/].*/{
25872
{ as_dir=$dirpart/$fdir
25874
-*) as_dir=./$as_dir;;
25876
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25880
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25881
*) as_qdir=$as_dir;;
25883
as_dirs="'$as_qdir' $as_dirs"
25884
as_dir=`$as_dirname -- "$as_dir" ||
25885
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25886
X"$as_dir" : 'X\(//\)[^/]' \| \
25887
X"$as_dir" : 'X\(//\)$' \| \
25888
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25890
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25894
/^X\(\/\/\)[^/].*/{
25907
test -d "$as_dir" && break
25909
test -z "$as_dirs" || eval "mkdir $as_dirs"
25910
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25911
echo "$as_me: error: cannot create directory $as_dir" >&2;}
25912
{ (exit 1); exit 1; }; }; }
25913
# echo "creating $dirpart/$file"
25914
echo '# dummy' > "$dirpart/$file"
25918
"po-directories":C)
25919
for ac_file in $CONFIG_FILES; do
25920
# Support "outfile[:infile[:infile...]]"
25922
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25924
# PO directories have a Makefile.in generated from Makefile.in.in.
25925
case "$ac_file" in */Makefile.in)
25926
# Adjust a relative srcdir.
25927
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25928
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25929
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25930
# In autoconf-2.13 it is called $ac_given_srcdir.
25931
# In autoconf-2.50 it is called $srcdir.
25932
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25933
case "$ac_given_srcdir" in
25934
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25935
/*) top_srcdir="$ac_given_srcdir" ;;
25936
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25938
# Treat a directory as a PO directory if and only if it has a
25939
# POTFILES.in file. This allows packages to have multiple PO
25940
# directories under different names or in different locations.
25941
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25942
rm -f "$ac_dir/POTFILES"
25943
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25944
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25945
POMAKEFILEDEPS="POTFILES.in"
25946
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25947
# on $ac_dir but don't depend on user-specified configuration
25949
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25950
# The LINGUAS file contains the set of available languages.
25951
if test -n "$OBSOLETE_ALL_LINGUAS"; then
25952
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25954
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25955
# Hide the ALL_LINGUAS assigment from automake < 1.5.
25956
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25957
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25959
# The set of available languages was given in configure.in.
25960
# Hide the ALL_LINGUAS assigment from automake < 1.5.
25961
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25964
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25965
# Compute UPDATEPOFILES
25966
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25967
# Compute DUMMYPOFILES
25968
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25970
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25971
case "$ac_given_srcdir" in
25973
*) srcdirpre='$(srcdir)/' ;;
25979
for lang in $ALL_LINGUAS; do
25980
POFILES="$POFILES $srcdirpre$lang.po"
25981
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25982
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25983
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25985
# CATALOGS depends on both $ac_dir and the user's LINGUAS
25986
# environment variable.
25988
if test -n "$ALL_LINGUAS"; then
25989
for presentlang in $ALL_LINGUAS; do
25991
if test "%UNSET%" != "$LINGUAS"; then
25992
desiredlanguages="$LINGUAS"
25994
desiredlanguages="$ALL_LINGUAS"
25996
for desiredlang in $desiredlanguages; do
25997
# Use the presentlang catalog if desiredlang is
25998
# a. equal to presentlang, or
25999
# b. a variant of presentlang (because in this case,
26000
# presentlang can be used as a fallback for messages
26001
# which are not translated in the desiredlang catalog).
26002
case "$desiredlang" in
26003
"$presentlang"*) useit=yes;;
26006
if test $useit = yes; then
26007
INST_LINGUAS="$INST_LINGUAS $presentlang"
26012
if test -n "$INST_LINGUAS"; then
26013
for lang in $INST_LINGUAS; do
26014
CATALOGS="$CATALOGS $lang.gmo"
26017
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
26018
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
26019
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
26020
if test -f "$f"; then
26022
*.orig | *.bak | *~) ;;
26023
*) cat "$f" >> "$ac_dir/Makefile" ;;
26036
{ (exit 0); exit 0; }
26038
chmod +x $CONFIG_STATUS
26039
ac_clean_files=$ac_clean_files_save
26042
# configure is writing to config.log, and then calls config.status.
26043
# config.status does its own redirection, appending to config.log.
26044
# Unfortunately, on DOS this fails, as config.log is still kept open
26045
# by configure, so config.status won't be able to write to it; its
26046
# output is simply discarded. So we exec the FD to /dev/null,
26047
# effectively closing config.log, so it can be properly (re)opened and
26048
# appended to by config.status. When coming back to configure, we
26049
# need to make the FD available again.
26050
if test "$no_create" != yes; then
26052
ac_config_status_args=
26053
test "$silent" = yes &&
26054
ac_config_status_args="$ac_config_status_args --quiet"
26056
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26058
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
26059
# would make configure fail if this is the last instruction.
26060
$ac_cs_success || { (exit 1); exit 1; }