3079
# Check whether --enable-shared or --disable-shared was given.
3080
if test "${enable_shared+set}" = set; then
3081
enableval="$enable_shared"
3082
p=${PACKAGE-default}
3084
yes) enable_shared=yes ;;
3085
no) enable_shared=no ;;
3088
# Look at the argument we got. We use all the common list separators.
3089
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3090
for pkg in $enableval; do
3092
if test "X$pkg" = "X$p"; then
3103
# Check whether --enable-static or --disable-static was given.
3104
if test "${enable_static+set}" = set; then
3105
enableval="$enable_static"
3106
p=${PACKAGE-default}
3108
yes) enable_static=yes ;;
3109
no) enable_static=no ;;
3112
# Look at the argument we got. We use all the common list separators.
3113
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3114
for pkg in $enableval; do
3116
if test "X$pkg" = "X$p"; then
3127
# Check whether --enable-fast-install or --disable-fast-install was given.
3128
if test "${enable_fast_install+set}" = set; then
3129
enableval="$enable_fast_install"
3130
p=${PACKAGE-default}
3132
yes) enable_fast_install=yes ;;
3133
no) enable_fast_install=no ;;
3135
enable_fast_install=no
3136
# Look at the argument we got. We use all the common list separators.
3137
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3138
for pkg in $enableval; do
3140
if test "X$pkg" = "X$p"; then
3141
enable_fast_install=yes
3148
enable_fast_install=yes
3151
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3152
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3153
if test "${lt_cv_path_SED+set}" = set; then
3154
echo $ECHO_N "(cached) $ECHO_C" >&6
3156
# Loop through the user's path and test for sed and gsed.
3157
# Then use that list of sed's as ones to test for truncation.
3158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162
test -z "$as_dir" && as_dir=.
3163
for lt_ac_prog in sed gsed; do
3164
for ac_exec_ext in '' $ac_executable_extensions; do
3165
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3166
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3173
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3174
# along with /bin/sed that truncates output.
3175
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3176
test ! -f $lt_ac_sed && continue
3177
cat /dev/null > conftest.in
3179
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3180
# Check for GNU sed and select it if it is found.
3181
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3182
lt_cv_path_SED=$lt_ac_sed
3186
cat conftest.in conftest.in >conftest.tmp
3187
mv conftest.tmp conftest.in
3188
cp conftest.in conftest.nl
3190
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3191
cmp -s conftest.out conftest.nl || break
3192
# 10000 chars as input seems more than enough
3193
test $lt_ac_count -gt 10 && break
3194
lt_ac_count=`expr $lt_ac_count + 1`
3195
if test $lt_ac_count -gt $lt_ac_max; then
3196
lt_ac_max=$lt_ac_count
3197
lt_cv_path_SED=$lt_ac_sed
3205
echo "$as_me:$LINENO: result: $SED" >&5
3206
echo "${ECHO_T}$SED" >&6
3209
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3210
if test "${with_gnu_ld+set}" = set; then
3211
withval="$with_gnu_ld"
3212
test "$withval" = no || with_gnu_ld=yes
3217
if test "$GCC" = yes; then
3218
# Check if gcc -print-prog-name=ld gives a path.
3219
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3220
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3223
# gcc leaves a trailing carriage return which upsets mingw
3224
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3226
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3229
# Accept absolute paths.
3231
re_direlt='/[^/][^/]*/\.\./'
3232
# Canonicalize the pathname of ld
3233
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3234
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3235
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3237
test -z "$LD" && LD="$ac_prog"
3240
# If it fails, then pretend we aren't using GCC.
3244
# If it is relative, then search for the first ld in PATH.
3248
elif test "$with_gnu_ld" = yes; then
3249
echo "$as_me:$LINENO: checking for GNU ld" >&5
3250
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3252
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3253
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3255
if test "${lt_cv_path_LD+set}" = set; then
3256
echo $ECHO_N "(cached) $ECHO_C" >&6
3258
if test -z "$LD"; then
3259
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3260
for ac_dir in $PATH; do
3262
test -z "$ac_dir" && ac_dir=.
3263
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3264
lt_cv_path_LD="$ac_dir/$ac_prog"
3265
# Check to see if the program is GNU ld. I'd rather use --version,
3266
# but apparently some GNU ld's only accept -v.
3267
# Break only if it was the GNU/non-GNU ld that we prefer.
3268
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3269
*GNU* | *'with BFD'*)
3270
test "$with_gnu_ld" != no && break
3273
test "$with_gnu_ld" != yes && break
3280
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3285
if test -n "$LD"; then
3286
echo "$as_me:$LINENO: result: $LD" >&5
3287
echo "${ECHO_T}$LD" >&6
3289
echo "$as_me:$LINENO: result: no" >&5
3290
echo "${ECHO_T}no" >&6
3292
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3293
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3294
{ (exit 1); exit 1; }; }
3295
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3296
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3297
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3298
echo $ECHO_N "(cached) $ECHO_C" >&6
3300
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3301
case `$LD -v 2>&1 </dev/null` in
3302
*GNU* | *'with BFD'*)
3303
lt_cv_prog_gnu_ld=yes
3306
lt_cv_prog_gnu_ld=no
3310
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3311
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3312
with_gnu_ld=$lt_cv_prog_gnu_ld
3315
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3316
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3317
if test "${lt_cv_ld_reload_flag+set}" = set; then
3318
echo $ECHO_N "(cached) $ECHO_C" >&6
3320
lt_cv_ld_reload_flag='-r'
3322
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3323
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3324
reload_flag=$lt_cv_ld_reload_flag
3325
case $reload_flag in
3327
*) reload_flag=" $reload_flag" ;;
3329
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3332
if test "$GCC" = yes; then
3333
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3335
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3340
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3341
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3342
if test "${lt_cv_path_NM+set}" = set; then
3343
echo $ECHO_N "(cached) $ECHO_C" >&6
3345
if test -n "$NM"; then
3346
# Let the user override the test.
3349
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3350
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3352
test -z "$ac_dir" && ac_dir=.
3353
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3354
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3355
# Check to see if the nm accepts a BSD-compat flag.
3356
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3357
# nm: unknown option "B" ignored
3358
# Tru64's nm complains that /dev/null is an invalid object file
3359
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3360
*/dev/null* | *'Invalid file or object type'*)
3361
lt_cv_path_NM="$tmp_nm -B"
3365
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3367
lt_cv_path_NM="$tmp_nm -p"
3371
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3372
continue # so that we can try to find one that supports BSD flags
3379
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3382
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3383
echo "${ECHO_T}$lt_cv_path_NM" >&6
3386
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3387
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3389
if test "$LN_S" = "ln -s"; then
3390
echo "$as_me:$LINENO: result: yes" >&5
3391
echo "${ECHO_T}yes" >&6
3393
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3394
echo "${ECHO_T}no, using $LN_S" >&6
3397
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3398
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3399
if test "${lt_cv_deplibs_check_method+set}" = set; then
3400
echo $ECHO_N "(cached) $ECHO_C" >&6
3402
lt_cv_file_magic_cmd='$MAGIC_CMD'
3403
lt_cv_file_magic_test_file=
3404
lt_cv_deplibs_check_method='unknown'
3405
# Need to set the preceding variable on all platforms that support
3406
# interlibrary dependencies.
3407
# 'none' -- dependencies not supported.
3408
# `unknown' -- same as none, but documents that we really don't know.
3409
# 'pass_all' -- all dependencies passed with no checks.
3410
# 'test_compile' -- check by making test program.
3411
# 'file_magic [[regex]]' -- check by looking for files in library path
3412
# which responds to the $file_magic_cmd with a given extended regex.
3413
# If you have `file' or equivalent on your system and you're not sure
3414
# whether `pass_all' will *always* work, you probably want this one.
3418
lt_cv_deplibs_check_method=pass_all
3422
lt_cv_deplibs_check_method=pass_all
3426
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3427
lt_cv_file_magic_cmd='/usr/bin/file -L'
3428
lt_cv_file_magic_test_file=/shlib/libc.so
3432
# func_win32_libid is a shell function defined in ltmain.sh
3433
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3434
lt_cv_file_magic_cmd='func_win32_libid'
3438
# Base MSYS/MinGW do not provide the 'file' command needed by
3439
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
3440
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3441
lt_cv_file_magic_cmd='$OBJDUMP -f'
3444
darwin* | rhapsody*)
3445
lt_cv_deplibs_check_method=pass_all
3448
freebsd* | kfreebsd*-gnu | dragonfly*)
3449
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3452
# Not sure whether the presence of OpenBSD here was a mistake.
3453
# Let's accept both of them until this is cleared up.
3454
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3455
lt_cv_file_magic_cmd=/usr/bin/file
3456
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3460
lt_cv_deplibs_check_method=pass_all
3465
lt_cv_deplibs_check_method=pass_all
3468
hpux10.20* | hpux11*)
3469
lt_cv_file_magic_cmd=/usr/bin/file
3472
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3473
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3476
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]'
3477
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3480
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3481
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3486
irix5* | irix6* | nonstopux*)
3488
*-32|*"-32 ") libmagic=32-bit;;
3489
*-n32|*"-n32 ") libmagic=N32;;
3490
*-64|*"-64 ") libmagic=64-bit;;
3491
*) libmagic=never-match;;
3493
lt_cv_deplibs_check_method=pass_all
3496
# This must be Linux ELF.
3498
lt_cv_deplibs_check_method=pass_all
3502
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3503
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3505
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3510
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3511
lt_cv_file_magic_cmd=/usr/bin/file
3512
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3516
lt_cv_deplibs_check_method=unknown
3520
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3521
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3523
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3527
osf3* | osf4* | osf5*)
3528
lt_cv_deplibs_check_method=pass_all
3532
lt_cv_deplibs_check_method=pass_all
3536
lt_cv_deplibs_check_method=pass_all
3539
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3540
case $host_vendor in
3542
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]'
3543
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3546
lt_cv_deplibs_check_method=pass_all
3549
lt_cv_file_magic_cmd='/bin/file'
3550
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3553
lt_cv_file_magic_cmd='/bin/file'
3554
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3555
lt_cv_file_magic_test_file=/lib/libc.so
3558
lt_cv_deplibs_check_method=pass_all
3563
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3564
lt_cv_deplibs_check_method=pass_all
3569
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3570
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3571
file_magic_cmd=$lt_cv_file_magic_cmd
3572
deplibs_check_method=$lt_cv_deplibs_check_method
3573
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3578
# If no C compiler was specified, use CC.
3581
# Allow CC to be a program name with arguments.
3584
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3585
if test "${enable_libtool_lock+set}" = set; then
3586
enableval="$enable_libtool_lock"
3589
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3591
# Some flags need to be propagated to the compiler or linker for good
3595
# Find out which ABI we are using.
3596
echo 'int i;' > conftest.$ac_ext
3597
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598
(eval $ac_compile) 2>&5
3600
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601
(exit $ac_status); }; then
3602
case `/usr/bin/file conftest.$ac_objext` in
3614
# Find out which ABI we are using.
3615
echo '#line 3615 "configure"' > conftest.$ac_ext
3616
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617
(eval $ac_compile) 2>&5
3619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620
(exit $ac_status); }; then
3621
if test "$lt_cv_prog_gnu_ld" = yes; then
3622
case `/usr/bin/file conftest.$ac_objext` in
3624
LD="${LD-ld} -melf32bsmip"
3627
LD="${LD-ld} -melf32bmipn32"
3630
LD="${LD-ld} -melf64bmip"
3634
case `/usr/bin/file conftest.$ac_objext` in
3650
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3651
# Find out which ABI we are using.
3652
echo 'int i;' > conftest.$ac_ext
3653
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654
(eval $ac_compile) 2>&5
3656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657
(exit $ac_status); }; then
3658
case "`/usr/bin/file conftest.o`" in
3662
LD="${LD-ld} -m elf_i386"
3664
ppc64-*linux*|powerpc64-*linux*)
3665
LD="${LD-ld} -m elf32ppclinux"
3668
LD="${LD-ld} -m elf_s390"
3671
LD="${LD-ld} -m elf32_sparc"
3678
LD="${LD-ld} -m elf_x86_64"
3680
ppc*-*linux*|powerpc*-*linux*)
3681
LD="${LD-ld} -m elf64ppc"
3684
LD="${LD-ld} -m elf64_s390"
3687
LD="${LD-ld} -m elf64_sparc"
3697
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
3698
SAVE_CFLAGS="$CFLAGS"
3699
CFLAGS="$CFLAGS -belf"
3700
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3701
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3702
if test "${lt_cv_cc_needs_belf+set}" = set; then
3703
echo $ECHO_N "(cached) $ECHO_C" >&6
3706
ac_cpp='$CPP $CPPFLAGS'
3707
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711
cat >conftest.$ac_ext <<_ACEOF
3714
cat confdefs.h >>conftest.$ac_ext
3715
cat >>conftest.$ac_ext <<_ACEOF
3716
/* end confdefs.h. */
3726
rm -f conftest.$ac_objext conftest$ac_exeext
3727
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3728
(eval $ac_link) 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); } &&
3735
{ ac_try='test -z "$ac_c_werror_flag"
3736
|| test ! -s conftest.err'
3737
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741
(exit $ac_status); }; } &&
3742
{ ac_try='test -s conftest$ac_exeext'
3743
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747
(exit $ac_status); }; }; then
3748
lt_cv_cc_needs_belf=yes
3750
echo "$as_me: failed program was:" >&5
3751
sed 's/^/| /' conftest.$ac_ext >&5
3753
lt_cv_cc_needs_belf=no
3755
rm -f conftest.err conftest.$ac_objext \
3756
conftest$ac_exeext conftest.$ac_ext
3758
ac_cpp='$CPP $CPPFLAGS'
3759
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3765
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3766
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3767
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3768
CFLAGS="$SAVE_CFLAGS"
3774
need_locks="$enable_libtool_lock"
3777
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3778
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3779
if test "${ac_cv_header_stdc+set}" = set; then
3780
echo $ECHO_N "(cached) $ECHO_C" >&6
3782
cat >conftest.$ac_ext <<_ACEOF
3785
cat confdefs.h >>conftest.$ac_ext
3786
cat >>conftest.$ac_ext <<_ACEOF
3787
/* end confdefs.h. */
3801
rm -f conftest.$ac_objext
3802
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3803
(eval $ac_compile) 2>conftest.er1
3805
grep -v '^ *+' conftest.er1 >conftest.err
3807
cat conftest.err >&5
3808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809
(exit $ac_status); } &&
3810
{ ac_try='test -z "$ac_c_werror_flag"
3811
|| test ! -s conftest.err'
3812
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816
(exit $ac_status); }; } &&
3817
{ ac_try='test -s conftest.$ac_objext'
3818
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822
(exit $ac_status); }; }; then
3823
ac_cv_header_stdc=yes
3825
echo "$as_me: failed program was:" >&5
3826
sed 's/^/| /' conftest.$ac_ext >&5
3828
ac_cv_header_stdc=no
3830
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3832
if test $ac_cv_header_stdc = yes; then
3833
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3834
cat >conftest.$ac_ext <<_ACEOF
3837
cat confdefs.h >>conftest.$ac_ext
3838
cat >>conftest.$ac_ext <<_ACEOF
3839
/* end confdefs.h. */
3843
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3844
$EGREP "memchr" >/dev/null 2>&1; then
3847
ac_cv_header_stdc=no
3853
if test $ac_cv_header_stdc = yes; then
3854
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3855
cat >conftest.$ac_ext <<_ACEOF
3858
cat confdefs.h >>conftest.$ac_ext
3859
cat >>conftest.$ac_ext <<_ACEOF
3860
/* end confdefs.h. */
3864
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3865
$EGREP "free" >/dev/null 2>&1; then
3868
ac_cv_header_stdc=no
3874
if test $ac_cv_header_stdc = yes; then
3875
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3876
if test "$cross_compiling" = yes; then
3879
cat >conftest.$ac_ext <<_ACEOF
3882
cat confdefs.h >>conftest.$ac_ext
3883
cat >>conftest.$ac_ext <<_ACEOF
3884
/* end confdefs.h. */
3886
#if ((' ' & 0x0FF) == 0x020)
3887
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3888
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3890
# define ISLOWER(c) \
3891
(('a' <= (c) && (c) <= 'i') \
3892
|| ('j' <= (c) && (c) <= 'r') \
3893
|| ('s' <= (c) && (c) <= 'z'))
3894
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3897
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3902
for (i = 0; i < 256; i++)
3903
if (XOR (islower (i), ISLOWER (i))
3904
|| toupper (i) != TOUPPER (i))
3909
rm -f conftest$ac_exeext
3910
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3911
(eval $ac_link) 2>&5
3913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3915
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919
(exit $ac_status); }; }; then
3922
echo "$as_me: program exited with status $ac_status" >&5
3923
echo "$as_me: failed program was:" >&5
3924
sed 's/^/| /' conftest.$ac_ext >&5
3927
ac_cv_header_stdc=no
3929
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3933
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3934
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3935
if test $ac_cv_header_stdc = yes; then
3937
cat >>confdefs.h <<\_ACEOF
3938
#define STDC_HEADERS 1
3943
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3953
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3954
inttypes.h stdint.h unistd.h
3956
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3957
echo "$as_me:$LINENO: checking for $ac_header" >&5
3958
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3959
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3960
echo $ECHO_N "(cached) $ECHO_C" >&6
3962
cat >conftest.$ac_ext <<_ACEOF
3965
cat confdefs.h >>conftest.$ac_ext
3966
cat >>conftest.$ac_ext <<_ACEOF
3967
/* end confdefs.h. */
3968
$ac_includes_default
3970
#include <$ac_header>
3972
rm -f conftest.$ac_objext
3973
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3974
(eval $ac_compile) 2>conftest.er1
3976
grep -v '^ *+' conftest.er1 >conftest.err
3978
cat conftest.err >&5
3979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980
(exit $ac_status); } &&
3981
{ ac_try='test -z "$ac_c_werror_flag"
3982
|| test ! -s conftest.err'
3983
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987
(exit $ac_status); }; } &&
3988
{ ac_try='test -s conftest.$ac_objext'
3989
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993
(exit $ac_status); }; }; then
3994
eval "$as_ac_Header=yes"
3996
echo "$as_me: failed program was:" >&5
3997
sed 's/^/| /' conftest.$ac_ext >&5
3999
eval "$as_ac_Header=no"
4001
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4003
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4004
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4005
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4006
cat >>confdefs.h <<_ACEOF
4007
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4016
for ac_header in dlfcn.h
4018
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4019
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4020
echo "$as_me:$LINENO: checking for $ac_header" >&5
4021
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4022
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4023
echo $ECHO_N "(cached) $ECHO_C" >&6
4025
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4026
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4028
# Is the header compilable?
4029
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4030
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4031
cat >conftest.$ac_ext <<_ACEOF
4034
cat confdefs.h >>conftest.$ac_ext
4035
cat >>conftest.$ac_ext <<_ACEOF
4036
/* end confdefs.h. */
4037
$ac_includes_default
4038
#include <$ac_header>
4040
rm -f conftest.$ac_objext
4041
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042
(eval $ac_compile) 2>conftest.er1
4044
grep -v '^ *+' conftest.er1 >conftest.err
4046
cat conftest.err >&5
4047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048
(exit $ac_status); } &&
4049
{ ac_try='test -z "$ac_c_werror_flag"
4050
|| test ! -s conftest.err'
4051
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055
(exit $ac_status); }; } &&
4056
{ ac_try='test -s conftest.$ac_objext'
4057
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061
(exit $ac_status); }; }; then
4062
ac_header_compiler=yes
4064
echo "$as_me: failed program was:" >&5
4065
sed 's/^/| /' conftest.$ac_ext >&5
4067
ac_header_compiler=no
4069
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4070
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4071
echo "${ECHO_T}$ac_header_compiler" >&6
4073
# Is the header present?
4074
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4075
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4076
cat >conftest.$ac_ext <<_ACEOF
4079
cat confdefs.h >>conftest.$ac_ext
4080
cat >>conftest.$ac_ext <<_ACEOF
4081
/* end confdefs.h. */
4082
#include <$ac_header>
4084
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4085
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4087
grep -v '^ *+' conftest.er1 >conftest.err
4089
cat conftest.err >&5
4090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091
(exit $ac_status); } >/dev/null; then
4092
if test -s conftest.err; then
4093
ac_cpp_err=$ac_c_preproc_warn_flag
4094
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4101
if test -z "$ac_cpp_err"; then
4102
ac_header_preproc=yes
4104
echo "$as_me: failed program was:" >&5
4105
sed 's/^/| /' conftest.$ac_ext >&5
4107
ac_header_preproc=no
4109
rm -f conftest.err conftest.$ac_ext
4110
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4111
echo "${ECHO_T}$ac_header_preproc" >&6
4113
# So? What about this header?
4114
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4116
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4117
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4118
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4119
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4120
ac_header_preproc=yes
4123
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4124
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4125
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4126
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4127
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4128
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4129
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4130
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4131
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4132
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4133
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4134
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4137
## ------------------------------------------ ##
4138
## Report this to the AC_PACKAGE_NAME lists. ##
4139
## ------------------------------------------ ##
4142
sed "s/^/$as_me: WARNING: /" >&2
4145
echo "$as_me:$LINENO: checking for $ac_header" >&5
4146
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4147
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4148
echo $ECHO_N "(cached) $ECHO_C" >&6
4150
eval "$as_ac_Header=\$ac_header_preproc"
4152
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4153
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4156
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4157
cat >>confdefs.h <<_ACEOF
4158
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4166
ac_cpp='$CXXCPP $CPPFLAGS'
4167
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4170
if test -n "$ac_tool_prefix"; then
4171
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4173
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4174
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4175
echo "$as_me:$LINENO: checking for $ac_word" >&5
4176
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4177
if test "${ac_cv_prog_CXX+set}" = set; then
4178
echo $ECHO_N "(cached) $ECHO_C" >&6
4180
if test -n "$CXX"; then
4181
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4183
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187
test -z "$as_dir" && as_dir=.
4188
for ac_exec_ext in '' $ac_executable_extensions; do
4189
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4190
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4191
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4200
if test -n "$CXX"; then
4201
echo "$as_me:$LINENO: result: $CXX" >&5
4202
echo "${ECHO_T}$CXX" >&6
4204
echo "$as_me:$LINENO: result: no" >&5
4205
echo "${ECHO_T}no" >&6
4208
test -n "$CXX" && break
4211
if test -z "$CXX"; then
4213
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4215
# Extract the first word of "$ac_prog", so it can be a program name with args.
4216
set dummy $ac_prog; ac_word=$2
4217
echo "$as_me:$LINENO: checking for $ac_word" >&5
4218
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4219
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4220
echo $ECHO_N "(cached) $ECHO_C" >&6
4222
if test -n "$ac_ct_CXX"; then
4223
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4225
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229
test -z "$as_dir" && as_dir=.
4230
for ac_exec_ext in '' $ac_executable_extensions; do
4231
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232
ac_cv_prog_ac_ct_CXX="$ac_prog"
4233
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4241
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4242
if test -n "$ac_ct_CXX"; then
4243
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4244
echo "${ECHO_T}$ac_ct_CXX" >&6
4246
echo "$as_me:$LINENO: result: no" >&5
4247
echo "${ECHO_T}no" >&6
4250
test -n "$ac_ct_CXX" && break
4252
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4258
# Provide some information about the compiler.
4259
echo "$as_me:$LINENO:" \
4260
"checking for C++ compiler version" >&5
4261
ac_compiler=`set X $ac_compile; echo $2`
4262
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4263
(eval $ac_compiler --version </dev/null >&5) 2>&5
4265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266
(exit $ac_status); }
4267
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4268
(eval $ac_compiler -v </dev/null >&5) 2>&5
4270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271
(exit $ac_status); }
4272
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4273
(eval $ac_compiler -V </dev/null >&5) 2>&5
4275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276
(exit $ac_status); }
4278
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4279
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4280
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4281
echo $ECHO_N "(cached) $ECHO_C" >&6
4283
cat >conftest.$ac_ext <<_ACEOF
4286
cat confdefs.h >>conftest.$ac_ext
4287
cat >>conftest.$ac_ext <<_ACEOF
4288
/* end confdefs.h. */
4301
rm -f conftest.$ac_objext
4302
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4303
(eval $ac_compile) 2>conftest.er1
4305
grep -v '^ *+' conftest.er1 >conftest.err
4307
cat conftest.err >&5
4308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309
(exit $ac_status); } &&
4310
{ ac_try='test -z "$ac_cxx_werror_flag"
4311
|| test ! -s conftest.err'
4312
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316
(exit $ac_status); }; } &&
4317
{ ac_try='test -s conftest.$ac_objext'
4318
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322
(exit $ac_status); }; }; then
4325
echo "$as_me: failed program was:" >&5
4326
sed 's/^/| /' conftest.$ac_ext >&5
4330
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4331
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4334
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4335
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4336
GXX=`test $ac_compiler_gnu = yes && echo yes`
4337
ac_test_CXXFLAGS=${CXXFLAGS+set}
4338
ac_save_CXXFLAGS=$CXXFLAGS
4340
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4341
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4342
if test "${ac_cv_prog_cxx_g+set}" = set; then
4343
echo $ECHO_N "(cached) $ECHO_C" >&6
4345
cat >conftest.$ac_ext <<_ACEOF
4348
cat confdefs.h >>conftest.$ac_ext
4349
cat >>conftest.$ac_ext <<_ACEOF
4350
/* end confdefs.h. */
4360
rm -f conftest.$ac_objext
4361
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362
(eval $ac_compile) 2>conftest.er1
4364
grep -v '^ *+' conftest.er1 >conftest.err
4366
cat conftest.err >&5
4367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368
(exit $ac_status); } &&
4369
{ ac_try='test -z "$ac_cxx_werror_flag"
4370
|| test ! -s conftest.err'
4371
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375
(exit $ac_status); }; } &&
4376
{ ac_try='test -s conftest.$ac_objext'
4377
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381
(exit $ac_status); }; }; then
4382
ac_cv_prog_cxx_g=yes
4384
echo "$as_me: failed program was:" >&5
4385
sed 's/^/| /' conftest.$ac_ext >&5
4389
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4391
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4392
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4393
if test "$ac_test_CXXFLAGS" = set; then
4394
CXXFLAGS=$ac_save_CXXFLAGS
4395
elif test $ac_cv_prog_cxx_g = yes; then
4396
if test "$GXX" = yes; then
4402
if test "$GXX" = yes; then
4408
for ac_declaration in \
4410
'extern "C" void std::exit (int) throw (); using std::exit;' \
4411
'extern "C" void std::exit (int); using std::exit;' \
4412
'extern "C" void exit (int) throw ();' \
4413
'extern "C" void exit (int);' \
4416
cat >conftest.$ac_ext <<_ACEOF
4419
cat confdefs.h >>conftest.$ac_ext
4420
cat >>conftest.$ac_ext <<_ACEOF
4421
/* end confdefs.h. */
4432
rm -f conftest.$ac_objext
4433
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4434
(eval $ac_compile) 2>conftest.er1
4436
grep -v '^ *+' conftest.er1 >conftest.err
4438
cat conftest.err >&5
4439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440
(exit $ac_status); } &&
4441
{ ac_try='test -z "$ac_cxx_werror_flag"
4442
|| test ! -s conftest.err'
4443
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447
(exit $ac_status); }; } &&
4448
{ ac_try='test -s conftest.$ac_objext'
4449
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453
(exit $ac_status); }; }; then
4456
echo "$as_me: failed program was:" >&5
4457
sed 's/^/| /' conftest.$ac_ext >&5
4461
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4462
cat >conftest.$ac_ext <<_ACEOF
4465
cat confdefs.h >>conftest.$ac_ext
4466
cat >>conftest.$ac_ext <<_ACEOF
4467
/* end confdefs.h. */
4477
rm -f conftest.$ac_objext
4478
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479
(eval $ac_compile) 2>conftest.er1
4481
grep -v '^ *+' conftest.er1 >conftest.err
4483
cat conftest.err >&5
4484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485
(exit $ac_status); } &&
4486
{ ac_try='test -z "$ac_cxx_werror_flag"
4487
|| test ! -s conftest.err'
4488
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492
(exit $ac_status); }; } &&
4493
{ ac_try='test -s conftest.$ac_objext'
4494
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498
(exit $ac_status); }; }; then
4501
echo "$as_me: failed program was:" >&5
4502
sed 's/^/| /' conftest.$ac_ext >&5
4505
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4508
if test -n "$ac_declaration"; then
4509
echo '#ifdef __cplusplus' >>confdefs.h
4510
echo $ac_declaration >>confdefs.h
4511
echo '#endif' >>confdefs.h
4515
ac_cpp='$CXXCPP $CPPFLAGS'
4516
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4522
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4523
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4524
(test "X$CXX" != "Xg++"))) ; then
4526
ac_cpp='$CXXCPP $CPPFLAGS'
4527
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4530
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4531
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4532
if test -z "$CXXCPP"; then
4533
if test "${ac_cv_prog_CXXCPP+set}" = set; then
4534
echo $ECHO_N "(cached) $ECHO_C" >&6
4536
# Double quotes because CXXCPP needs to be expanded
4537
for CXXCPP in "$CXX -E" "/lib/cpp"
4540
for ac_cxx_preproc_warn_flag in '' yes
4542
# Use a header file that comes with gcc, so configuring glibc
4543
# with a fresh cross-compiler works.
4544
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4545
# <limits.h> exists even on freestanding compilers.
4546
# On the NeXT, cc -E runs the code through the compiler's parser,
4547
# not just through cpp. "Syntax error" is here to catch this case.
4548
cat >conftest.$ac_ext <<_ACEOF
4551
cat confdefs.h >>conftest.$ac_ext
4552
cat >>conftest.$ac_ext <<_ACEOF
4553
/* end confdefs.h. */
4555
# include <limits.h>
4557
# include <assert.h>
4561
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4562
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4564
grep -v '^ *+' conftest.er1 >conftest.err
4566
cat conftest.err >&5
4567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568
(exit $ac_status); } >/dev/null; then
4569
if test -s conftest.err; then
4570
ac_cpp_err=$ac_cxx_preproc_warn_flag
4571
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4578
if test -z "$ac_cpp_err"; then
4581
echo "$as_me: failed program was:" >&5
4582
sed 's/^/| /' conftest.$ac_ext >&5
4584
# Broken: fails on valid input.
4587
rm -f conftest.err conftest.$ac_ext
4589
# OK, works on sane cases. Now check whether non-existent headers
4590
# can be detected and how.
4591
cat >conftest.$ac_ext <<_ACEOF
4594
cat confdefs.h >>conftest.$ac_ext
4595
cat >>conftest.$ac_ext <<_ACEOF
4596
/* end confdefs.h. */
4597
#include <ac_nonexistent.h>
4599
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4600
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4602
grep -v '^ *+' conftest.er1 >conftest.err
4604
cat conftest.err >&5
4605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606
(exit $ac_status); } >/dev/null; then
4607
if test -s conftest.err; then
4608
ac_cpp_err=$ac_cxx_preproc_warn_flag
4609
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4616
if test -z "$ac_cpp_err"; then
4617
# Broken: success on invalid input.
4620
echo "$as_me: failed program was:" >&5
4621
sed 's/^/| /' conftest.$ac_ext >&5
4623
# Passes both tests.
4627
rm -f conftest.err conftest.$ac_ext
4630
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4631
rm -f conftest.err conftest.$ac_ext
4632
if $ac_preproc_ok; then
4637
ac_cv_prog_CXXCPP=$CXXCPP
4640
CXXCPP=$ac_cv_prog_CXXCPP
4642
ac_cv_prog_CXXCPP=$CXXCPP
4644
echo "$as_me:$LINENO: result: $CXXCPP" >&5
4645
echo "${ECHO_T}$CXXCPP" >&6
4647
for ac_cxx_preproc_warn_flag in '' yes
4649
# Use a header file that comes with gcc, so configuring glibc
4650
# with a fresh cross-compiler works.
4651
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4652
# <limits.h> exists even on freestanding compilers.
4653
# On the NeXT, cc -E runs the code through the compiler's parser,
4654
# not just through cpp. "Syntax error" is here to catch this case.
4655
cat >conftest.$ac_ext <<_ACEOF
4658
cat confdefs.h >>conftest.$ac_ext
4659
cat >>conftest.$ac_ext <<_ACEOF
4660
/* end confdefs.h. */
4662
# include <limits.h>
4664
# include <assert.h>
4668
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4669
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4671
grep -v '^ *+' conftest.er1 >conftest.err
4673
cat conftest.err >&5
4674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675
(exit $ac_status); } >/dev/null; then
4676
if test -s conftest.err; then
4677
ac_cpp_err=$ac_cxx_preproc_warn_flag
4678
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4685
if test -z "$ac_cpp_err"; then
4688
echo "$as_me: failed program was:" >&5
4689
sed 's/^/| /' conftest.$ac_ext >&5
4691
# Broken: fails on valid input.
4694
rm -f conftest.err conftest.$ac_ext
4696
# OK, works on sane cases. Now check whether non-existent headers
4697
# can be detected and how.
4698
cat >conftest.$ac_ext <<_ACEOF
4701
cat confdefs.h >>conftest.$ac_ext
4702
cat >>conftest.$ac_ext <<_ACEOF
4703
/* end confdefs.h. */
4704
#include <ac_nonexistent.h>
4706
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4707
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4709
grep -v '^ *+' conftest.er1 >conftest.err
4711
cat conftest.err >&5
4712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713
(exit $ac_status); } >/dev/null; then
4714
if test -s conftest.err; then
4715
ac_cpp_err=$ac_cxx_preproc_warn_flag
4716
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4723
if test -z "$ac_cpp_err"; then
4724
# Broken: success on invalid input.
4727
echo "$as_me: failed program was:" >&5
4728
sed 's/^/| /' conftest.$ac_ext >&5
4730
# Passes both tests.
4734
rm -f conftest.err conftest.$ac_ext
4737
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4738
rm -f conftest.err conftest.$ac_ext
4739
if $ac_preproc_ok; then
4742
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4743
See \`config.log' for more details." >&5
4744
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4745
See \`config.log' for more details." >&2;}
4746
{ (exit 1); exit 1; }; }
4750
ac_cpp='$CXXCPP $CPPFLAGS'
4751
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4759
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4760
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4762
if test -n "$ac_tool_prefix"; then
4763
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4765
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4766
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4767
echo "$as_me:$LINENO: checking for $ac_word" >&5
4768
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4769
if test "${ac_cv_prog_F77+set}" = set; then
4770
echo $ECHO_N "(cached) $ECHO_C" >&6
4772
if test -n "$F77"; then
4773
ac_cv_prog_F77="$F77" # Let the user override the test.
4775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779
test -z "$as_dir" && as_dir=.
4780
for ac_exec_ext in '' $ac_executable_extensions; do
4781
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4782
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4783
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792
if test -n "$F77"; then
4793
echo "$as_me:$LINENO: result: $F77" >&5
4794
echo "${ECHO_T}$F77" >&6
4796
echo "$as_me:$LINENO: result: no" >&5
4797
echo "${ECHO_T}no" >&6
4800
test -n "$F77" && break
4803
if test -z "$F77"; then
4805
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4807
# Extract the first word of "$ac_prog", so it can be a program name with args.
4808
set dummy $ac_prog; ac_word=$2
4809
echo "$as_me:$LINENO: checking for $ac_word" >&5
4810
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4811
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4812
echo $ECHO_N "(cached) $ECHO_C" >&6
4814
if test -n "$ac_ct_F77"; then
4815
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4817
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821
test -z "$as_dir" && as_dir=.
4822
for ac_exec_ext in '' $ac_executable_extensions; do
4823
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824
ac_cv_prog_ac_ct_F77="$ac_prog"
4825
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833
ac_ct_F77=$ac_cv_prog_ac_ct_F77
4834
if test -n "$ac_ct_F77"; then
4835
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4836
echo "${ECHO_T}$ac_ct_F77" >&6
4838
echo "$as_me:$LINENO: result: no" >&5
4839
echo "${ECHO_T}no" >&6
4842
test -n "$ac_ct_F77" && break
4849
# Provide some information about the compiler.
4850
echo "$as_me:4850:" \
4851
"checking for Fortran 77 compiler version" >&5
4852
ac_compiler=`set X $ac_compile; echo $2`
4853
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4854
(eval $ac_compiler --version </dev/null >&5) 2>&5
4856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857
(exit $ac_status); }
4858
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4859
(eval $ac_compiler -v </dev/null >&5) 2>&5
4861
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862
(exit $ac_status); }
4863
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4864
(eval $ac_compiler -V </dev/null >&5) 2>&5
4866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867
(exit $ac_status); }
4870
# If we don't use `.F' as extension, the preprocessor is not run on the
4871
# input file. (Note that this only needs to work for GNU compilers.)
4874
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4875
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4876
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4877
echo $ECHO_N "(cached) $ECHO_C" >&6
4879
cat >conftest.$ac_ext <<_ACEOF
4887
rm -f conftest.$ac_objext
4888
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4889
(eval $ac_compile) 2>conftest.er1
4891
grep -v '^ *+' conftest.er1 >conftest.err
4893
cat conftest.err >&5
4894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895
(exit $ac_status); } &&
4896
{ ac_try='test -z "$ac_f77_werror_flag"
4897
|| test ! -s conftest.err'
4898
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902
(exit $ac_status); }; } &&
4903
{ ac_try='test -s conftest.$ac_objext'
4904
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908
(exit $ac_status); }; }; then
4911
echo "$as_me: failed program was:" >&5
4912
sed 's/^/| /' conftest.$ac_ext >&5
4916
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4917
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4920
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4921
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4923
ac_test_FFLAGS=${FFLAGS+set}
4924
ac_save_FFLAGS=$FFLAGS
4926
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4927
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4928
if test "${ac_cv_prog_f77_g+set}" = set; then
4929
echo $ECHO_N "(cached) $ECHO_C" >&6
4932
cat >conftest.$ac_ext <<_ACEOF
4937
rm -f conftest.$ac_objext
4938
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4939
(eval $ac_compile) 2>conftest.er1
4941
grep -v '^ *+' conftest.er1 >conftest.err
4943
cat conftest.err >&5
4944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945
(exit $ac_status); } &&
4946
{ ac_try='test -z "$ac_f77_werror_flag"
4947
|| test ! -s conftest.err'
4948
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952
(exit $ac_status); }; } &&
4953
{ ac_try='test -s conftest.$ac_objext'
4954
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958
(exit $ac_status); }; }; then
4959
ac_cv_prog_f77_g=yes
4961
echo "$as_me: failed program was:" >&5
4962
sed 's/^/| /' conftest.$ac_ext >&5
4966
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4969
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4970
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4971
if test "$ac_test_FFLAGS" = set; then
4972
FFLAGS=$ac_save_FFLAGS
4973
elif test $ac_cv_prog_f77_g = yes; then
4974
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4980
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4987
G77=`test $ac_compiler_gnu = yes && echo yes`
4989
ac_cpp='$CPP $CPPFLAGS'
4990
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4998
# find the maximum length of command line arguments
4999
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5000
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5001
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5002
echo $ECHO_N "(cached) $ECHO_C" >&6
5009
# On DJGPP, this test can blow up pretty badly due to problems in libc
5010
# (any single argument exceeding 2000 bytes causes a buffer overrun
5011
# during glob expansion). Even if it were fixed, the result of this
5012
# check would be larger than it should be.
5013
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5017
# Under GNU Hurd, this test is not required because there is
5018
# no limit to the length of command line arguments.
5019
# Libtool will interpret -1 as no limit whatsoever
5020
lt_cv_sys_max_cmd_len=-1;
5024
# On Win9x/ME, this test blows up -- it succeeds, but takes
5025
# about 5 minutes as the teststring grows exponentially.
5026
# Worse, since 9x/ME are not pre-emptively multitasking,
5027
# you end up with a "frozen" computer, even though with patience
5028
# the test eventually succeeds (with a max line length of 256k).
5029
# Instead, let's just punt: use the minimum linelength reported by
5030
# all of the supported platforms: 8192 (on NT/2K/XP).
5031
lt_cv_sys_max_cmd_len=8192;
5035
# On AmigaOS with pdksh, this test takes hours, literally.
5036
# So we just punt and use a minimum line length of 8192.
5037
lt_cv_sys_max_cmd_len=8192;
5040
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5041
# This has been around since 386BSD, at least. Likely further.
5042
if test -x /sbin/sysctl; then
5043
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5044
elif test -x /usr/sbin/sysctl; then
5045
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5047
lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5049
# And add a safety zone
5050
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5053
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5054
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5055
# nice to cause kernel panics so lets avoid the loop below.
5056
# First set a reasonable default.
5057
lt_cv_sys_max_cmd_len=16384
5059
if test -x /sbin/sysconfig; then
5060
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5061
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5066
# If test is not a shell built-in, we'll probably end up computing a
5067
# maximum length that is only half of the actual maximum length, but
5069
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5070
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5071
= "XX$teststring") >/dev/null 2>&1 &&
5072
new_result=`expr "X$teststring" : ".*" 2>&1` &&
5073
lt_cv_sys_max_cmd_len=$new_result &&
5074
test $i != 17 # 1/2 MB should be enough
5077
teststring=$teststring$teststring
5080
# Add a significant safety factor because C++ compilers can tack on massive
5081
# amounts of additional arguments before passing them to the linker.
5082
# It appears as though 1/2 is a usable value.
5083
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5089
if test -n $lt_cv_sys_max_cmd_len ; then
5090
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5091
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5093
echo "$as_me:$LINENO: result: none" >&5
5094
echo "${ECHO_T}none" >&6
5100
# Check for command to grab the raw symbol name followed by C symbol from nm.
5101
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5102
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5103
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5104
echo $ECHO_N "(cached) $ECHO_C" >&6
5107
# These are sane defaults that work on at least a few old systems.
5108
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5110
# Character class describing NM global symbol codes.
5111
symcode='[BCDEGRST]'
5113
# Regexp to match symbols that can be accessed directly from C.
5114
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5116
# Transform an extracted symbol line into a proper C declaration
5117
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5119
# Transform an extracted symbol line into symbol name and symbol address
5120
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'"
5122
# Define system-specific variables.
5127
cygwin* | mingw* | pw32*)
5128
symcode='[ABCDGISTW]'
5130
hpux*) # Its linker distinguishes data from code symbols
5131
if test "$host_cpu" = ia64; then
5132
symcode='[ABCDEGRST]'
5134
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5135
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'"
5138
if test "$host_cpu" = ia64; then
5139
symcode='[ABCDGIRSTW]'
5140
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5141
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'"
5145
symcode='[BCDEGRST]'
5148
symcode='[BCDEGQRST]'
5158
# Handle CRLF in mingw tool chain
5162
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5166
# If we're using GNU nm, then use its standard symbol codes.
5167
case `$NM -V 2>&1` in
5168
*GNU* | *'with BFD'*)
5169
symcode='[ABCDGIRSTW]' ;;
5172
# Try without a prefix undercore, then with it.
5173
for ac_symprfx in "" "_"; do
5175
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5176
symxfrm="\\1 $ac_symprfx\\2 \\2"
5178
# Write the raw and C identifiers.
5179
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5181
# Check to see that the pipe works correctly.
5185
cat > conftest.$ac_ext <<EOF
5190
void nm_test_func(){}
5194
int main(){nm_test_var='a';nm_test_func();return(0);}
5197
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5198
(eval $ac_compile) 2>&5
5200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201
(exit $ac_status); }; then
5202
# Now try to grab the symbols.
5204
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5205
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208
(exit $ac_status); } && test -s "$nlist"; then
5209
# Try sorting and uniquifying the output.
5210
if sort "$nlist" | uniq > "$nlist"T; then
5211
mv -f "$nlist"T "$nlist"
5216
# Make sure that we snagged all the symbols we need.
5217
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5218
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5219
cat <<EOF > conftest.$ac_ext
5225
# Now generate the symbol file.
5226
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5228
cat <<EOF >> conftest.$ac_ext
5229
#if defined (__STDC__) && __STDC__
5230
# define lt_ptr_t void *
5232
# define lt_ptr_t char *
5236
/* The mapping between symbol names and symbols. */
5241
lt_preloaded_symbols[] =
5244
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5245
cat <<\EOF >> conftest.$ac_ext
5253
# Now try linking the two files.
5254
mv conftest.$ac_objext conftstm.$ac_objext
5255
lt_save_LIBS="$LIBS"
5256
lt_save_CFLAGS="$CFLAGS"
5257
LIBS="conftstm.$ac_objext"
5258
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5259
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5260
(eval $ac_link) 2>&5
5262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5266
LIBS="$lt_save_LIBS"
5267
CFLAGS="$lt_save_CFLAGS"
5269
echo "cannot find nm_test_func in $nlist" >&5
5272
echo "cannot find nm_test_var in $nlist" >&5
5275
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5278
echo "$progname: failed program was:" >&5
5279
cat conftest.$ac_ext >&5
5281
rm -f conftest* conftst*
5283
# Do not use the global_symbol_pipe unless it works.
5284
if test "$pipe_works" = yes; then
5287
lt_cv_sys_global_symbol_pipe=
5293
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5294
lt_cv_sys_global_symbol_to_cdecl=
5296
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5297
echo "$as_me:$LINENO: result: failed" >&5
5298
echo "${ECHO_T}failed" >&6
5300
echo "$as_me:$LINENO: result: ok" >&5
5301
echo "${ECHO_T}ok" >&6
5304
echo "$as_me:$LINENO: checking for objdir" >&5
5305
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5306
if test "${lt_cv_objdir+set}" = set; then
5307
echo $ECHO_N "(cached) $ECHO_C" >&6
5309
rm -f .libs 2>/dev/null
5310
mkdir .libs 2>/dev/null
5311
if test -d .libs; then
5314
# MS-DOS does not allow filenames that begin with a dot.
5317
rmdir .libs 2>/dev/null
5319
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5320
echo "${ECHO_T}$lt_cv_objdir" >&6
5321
objdir=$lt_cv_objdir
5329
# AIX sometimes has problems with the GCC collect2 program. For some
5330
# reason, if we set the COLLECT_NAMES environment variable, the problems
5331
# vanish in a puff of smoke.
5332
if test "X${COLLECT_NAMES+set}" != Xset; then
5334
export COLLECT_NAMES
5339
# Sed substitution that helps us do robust quoting. It backslashifies
5340
# metacharacters that are still active within double-quoted strings.
5341
Xsed='sed -e s/^X//'
5342
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5344
# Same as above, but do not quote variable references.
5345
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5347
# Sed substitution to delay expansion of an escaped shell variable in a
5348
# double_quote_subst'ed string.
5349
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5351
# Sed substitution to avoid accidental globbing in evaled expressions
5352
no_glob_subst='s/\*/\\\*/g'
5358
default_ofile=libtool
5359
can_build_shared=yes
5361
# All known linkers require a `.a' archive for static linking (except M$VC,
5362
# which needs '.lib').
5364
ltmain="$ac_aux_dir/ltmain.sh"
5365
ofile="$default_ofile"
5366
with_gnu_ld="$lt_cv_prog_gnu_ld"
5368
if test -n "$ac_tool_prefix"; then
5369
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5370
set dummy ${ac_tool_prefix}ar; ac_word=$2
5371
echo "$as_me:$LINENO: checking for $ac_word" >&5
5372
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5373
if test "${ac_cv_prog_AR+set}" = set; then
5374
echo $ECHO_N "(cached) $ECHO_C" >&6
5376
if test -n "$AR"; then
5377
ac_cv_prog_AR="$AR" # Let the user override the test.
5379
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383
test -z "$as_dir" && as_dir=.
5384
for ac_exec_ext in '' $ac_executable_extensions; do
5385
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5386
ac_cv_prog_AR="${ac_tool_prefix}ar"
5387
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396
if test -n "$AR"; then
5397
echo "$as_me:$LINENO: result: $AR" >&5
5398
echo "${ECHO_T}$AR" >&6
5400
echo "$as_me:$LINENO: result: no" >&5
5401
echo "${ECHO_T}no" >&6
5405
if test -z "$ac_cv_prog_AR"; then
5407
# Extract the first word of "ar", so it can be a program name with args.
5408
set dummy ar; ac_word=$2
5409
echo "$as_me:$LINENO: checking for $ac_word" >&5
5410
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5411
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5412
echo $ECHO_N "(cached) $ECHO_C" >&6
5414
if test -n "$ac_ct_AR"; then
5415
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5417
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421
test -z "$as_dir" && as_dir=.
5422
for ac_exec_ext in '' $ac_executable_extensions; do
5423
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424
ac_cv_prog_ac_ct_AR="ar"
5425
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5431
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5434
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5435
if test -n "$ac_ct_AR"; then
5436
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5437
echo "${ECHO_T}$ac_ct_AR" >&6
5439
echo "$as_me:$LINENO: result: no" >&5
5440
echo "${ECHO_T}no" >&6
5448
if test -n "$ac_tool_prefix"; then
5449
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5450
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5451
echo "$as_me:$LINENO: checking for $ac_word" >&5
5452
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5453
if test "${ac_cv_prog_RANLIB+set}" = set; then
5454
echo $ECHO_N "(cached) $ECHO_C" >&6
5456
if test -n "$RANLIB"; then
5457
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5459
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463
test -z "$as_dir" && as_dir=.
5464
for ac_exec_ext in '' $ac_executable_extensions; do
5465
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5467
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475
RANLIB=$ac_cv_prog_RANLIB
5476
if test -n "$RANLIB"; then
5477
echo "$as_me:$LINENO: result: $RANLIB" >&5
5478
echo "${ECHO_T}$RANLIB" >&6
5480
echo "$as_me:$LINENO: result: no" >&5
5481
echo "${ECHO_T}no" >&6
5485
if test -z "$ac_cv_prog_RANLIB"; then
5486
ac_ct_RANLIB=$RANLIB
5487
# Extract the first word of "ranlib", so it can be a program name with args.
5488
set dummy ranlib; ac_word=$2
5489
echo "$as_me:$LINENO: checking for $ac_word" >&5
5490
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5491
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5492
echo $ECHO_N "(cached) $ECHO_C" >&6
5494
if test -n "$ac_ct_RANLIB"; then
5495
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5497
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501
test -z "$as_dir" && as_dir=.
5502
for ac_exec_ext in '' $ac_executable_extensions; do
5503
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5504
ac_cv_prog_ac_ct_RANLIB="ranlib"
5505
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5511
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5514
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5515
if test -n "$ac_ct_RANLIB"; then
5516
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5517
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5519
echo "$as_me:$LINENO: result: no" >&5
5520
echo "${ECHO_T}no" >&6
5523
RANLIB=$ac_ct_RANLIB
5525
RANLIB="$ac_cv_prog_RANLIB"
5528
if test -n "$ac_tool_prefix"; then
5529
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5530
set dummy ${ac_tool_prefix}strip; ac_word=$2
5531
echo "$as_me:$LINENO: checking for $ac_word" >&5
5532
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5533
if test "${ac_cv_prog_STRIP+set}" = set; then
5534
echo $ECHO_N "(cached) $ECHO_C" >&6
5536
if test -n "$STRIP"; then
5537
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5539
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543
test -z "$as_dir" && as_dir=.
5544
for ac_exec_ext in '' $ac_executable_extensions; do
5545
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5546
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5547
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555
STRIP=$ac_cv_prog_STRIP
5556
if test -n "$STRIP"; then
5557
echo "$as_me:$LINENO: result: $STRIP" >&5
5558
echo "${ECHO_T}$STRIP" >&6
5560
echo "$as_me:$LINENO: result: no" >&5
5561
echo "${ECHO_T}no" >&6
5565
if test -z "$ac_cv_prog_STRIP"; then
5567
# Extract the first word of "strip", so it can be a program name with args.
5568
set dummy strip; ac_word=$2
5569
echo "$as_me:$LINENO: checking for $ac_word" >&5
5570
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5571
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5572
echo $ECHO_N "(cached) $ECHO_C" >&6
5574
if test -n "$ac_ct_STRIP"; then
5575
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5577
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581
test -z "$as_dir" && as_dir=.
5582
for ac_exec_ext in '' $ac_executable_extensions; do
5583
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584
ac_cv_prog_ac_ct_STRIP="strip"
5585
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5591
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5594
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5595
if test -n "$ac_ct_STRIP"; then
5596
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5597
echo "${ECHO_T}$ac_ct_STRIP" >&6
5599
echo "$as_me:$LINENO: result: no" >&5
5600
echo "${ECHO_T}no" >&6
5605
STRIP="$ac_cv_prog_STRIP"
5610
old_CFLAGS="$CFLAGS"
5612
# Set sane defaults for various variables
5613
test -z "$AR" && AR=ar
5614
test -z "$AR_FLAGS" && AR_FLAGS=cru
5615
test -z "$AS" && AS=as
5616
test -z "$CC" && CC=cc
5617
test -z "$LTCC" && LTCC=$CC
5618
test -z "$DLLTOOL" && DLLTOOL=dlltool
5619
test -z "$LD" && LD=ld
5620
test -z "$LN_S" && LN_S="ln -s"
5621
test -z "$MAGIC_CMD" && MAGIC_CMD=file
5622
test -z "$NM" && NM=nm
5623
test -z "$SED" && SED=sed
5624
test -z "$OBJDUMP" && OBJDUMP=objdump
5625
test -z "$RANLIB" && RANLIB=:
5626
test -z "$STRIP" && STRIP=:
5627
test -z "$ac_objext" && ac_objext=o
5629
# Determine commands to create old-style static archives.
5630
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5631
old_postinstall_cmds='chmod 644 $oldlib'
5632
old_postuninstall_cmds=
5634
if test -n "$RANLIB"; then
5637
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5640
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5643
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5646
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5648
# Only perform the check for file, if the check method requires it
5649
case $deplibs_check_method in
5651
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5652
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5653
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5654
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5655
echo $ECHO_N "(cached) $ECHO_C" >&6
5659
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5662
lt_save_MAGIC_CMD="$MAGIC_CMD"
5663
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5664
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5665
for ac_dir in $ac_dummy; do
5667
test -z "$ac_dir" && ac_dir=.
5668
if test -f $ac_dir/${ac_tool_prefix}file; then
5669
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5670
if test -n "$file_magic_test_file"; then
5671
case $deplibs_check_method in
5673
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5674
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5675
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5676
$EGREP "$file_magic_regex" > /dev/null; then
5681
*** Warning: the command libtool uses to detect shared libraries,
5682
*** $file_magic_cmd, produces output that libtool cannot recognize.
5683
*** The result is that libtool may fail to recognize shared libraries
5684
*** as such. This will affect the creation of libtool libraries that
5685
*** depend on shared libraries, but programs linked with such libtool
5686
*** libraries will work regardless of this problem. Nevertheless, you
5687
*** may want to report the problem to your system manager and/or to
5688
*** bug-libtool@gnu.org
5698
MAGIC_CMD="$lt_save_MAGIC_CMD"
5703
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5704
if test -n "$MAGIC_CMD"; then
5705
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5706
echo "${ECHO_T}$MAGIC_CMD" >&6
5708
echo "$as_me:$LINENO: result: no" >&5
5709
echo "${ECHO_T}no" >&6
5712
if test -z "$lt_cv_path_MAGIC_CMD"; then
5713
if test -n "$ac_tool_prefix"; then
5714
echo "$as_me:$LINENO: checking for file" >&5
5715
echo $ECHO_N "checking for file... $ECHO_C" >&6
5716
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5717
echo $ECHO_N "(cached) $ECHO_C" >&6
5721
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5724
lt_save_MAGIC_CMD="$MAGIC_CMD"
5725
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5726
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5727
for ac_dir in $ac_dummy; do
5729
test -z "$ac_dir" && ac_dir=.
5730
if test -f $ac_dir/file; then
5731
lt_cv_path_MAGIC_CMD="$ac_dir/file"
5732
if test -n "$file_magic_test_file"; then
5733
case $deplibs_check_method in
5735
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5736
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5737
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5738
$EGREP "$file_magic_regex" > /dev/null; then
5743
*** Warning: the command libtool uses to detect shared libraries,
5744
*** $file_magic_cmd, produces output that libtool cannot recognize.
5745
*** The result is that libtool may fail to recognize shared libraries
5746
*** as such. This will affect the creation of libtool libraries that
5747
*** depend on shared libraries, but programs linked with such libtool
5748
*** libraries will work regardless of this problem. Nevertheless, you
5749
*** may want to report the problem to your system manager and/or to
5750
*** bug-libtool@gnu.org
5760
MAGIC_CMD="$lt_save_MAGIC_CMD"
5765
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5766
if test -n "$MAGIC_CMD"; then
5767
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5768
echo "${ECHO_T}$MAGIC_CMD" >&6
5770
echo "$as_me:$LINENO: result: no" >&5
5771
echo "${ECHO_T}no" >&6
5786
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5787
if test "${enable_libtool_lock+set}" = set; then
5788
enableval="$enable_libtool_lock"
5791
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5794
# Check whether --with-pic or --without-pic was given.
5795
if test "${with_pic+set}" = set; then
5801
test -z "$pic_mode" && pic_mode=default
5803
# Use C for the default configuration in the libtool script
5807
ac_cpp='$CPP $CPPFLAGS'
5808
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5813
# Source file extension for C test sources.
5816
# Object file extension for compiled C test sources.
5820
# Code to be used in simple compile tests
5821
lt_simple_compile_test_code="int some_variable = 0;\n"
5823
# Code to be used in simple link tests
5824
lt_simple_link_test_code='int main(){return(0);}\n'
5827
# If no C compiler was specified, use CC.
5830
# Allow CC to be a program name with arguments.
5835
# Check for any special shared library compilation flags.
5838
if test "$GCC" = no; then
5841
lt_prog_cc_shlib='-belf'
5845
if test -n "$lt_prog_cc_shlib"; then
5846
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5847
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5848
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5850
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5851
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5852
lt_cv_prog_cc_can_build_shared=no
5858
# Check to make sure the static flag actually works.
5860
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5861
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5862
if test "${lt_prog_compiler_static_works+set}" = set; then
5863
echo $ECHO_N "(cached) $ECHO_C" >&6
5865
lt_prog_compiler_static_works=no
5866
save_LDFLAGS="$LDFLAGS"
5867
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5868
printf "$lt_simple_link_test_code" > conftest.$ac_ext
5869
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5870
# The compiler can only warn and ignore the option if not recognized
5871
# So say no if there are warnings
5872
if test -s conftest.err; then
5873
# Append any errors to the config.log.
5874
cat conftest.err 1>&5
5876
lt_prog_compiler_static_works=yes
5880
LDFLAGS="$save_LDFLAGS"
5883
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5884
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5886
if test x"$lt_prog_compiler_static_works" = xyes; then
5889
lt_prog_compiler_static=
5895
## There is no encapsulation within the following macros, do not change
5896
## the running order or otherwise move them around unless you know exactly
5897
## what you are doing...
5899
lt_prog_compiler_no_builtin_flag=
5901
if test "$GCC" = yes; then
5902
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5905
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5906
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5907
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5908
echo $ECHO_N "(cached) $ECHO_C" >&6
5910
lt_cv_prog_compiler_rtti_exceptions=no
5911
ac_outfile=conftest.$ac_objext
5912
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5913
lt_compiler_flag="-fno-rtti -fno-exceptions"
5914
# Insert the option either (1) after the last *FLAGS variable, or
5915
# (2) before a word containing "conftest.", or (3) at the end.
5916
# Note that $ac_compile itself does not contain backslashes and begins
5917
# with a dollar sign (not a hyphen), so the echo should work correctly.
5918
# The option is referenced via a variable to avoid confusing sed.
5919
lt_compile=`echo "$ac_compile" | $SED \
5920
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5921
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5922
-e 's:$: $lt_compiler_flag:'`
5923
(eval echo "\"\$as_me:5923: $lt_compile\"" >&5)
5924
(eval "$lt_compile" 2>conftest.err)
5926
cat conftest.err >&5
5927
echo "$as_me:5927: \$? = $ac_status" >&5
5928
if (exit $ac_status) && test -s "$ac_outfile"; then
5929
# The compiler can only warn and ignore the option if not recognized
5930
# So say no if there are warnings
5931
if test ! -s conftest.err; then
5932
lt_cv_prog_compiler_rtti_exceptions=yes
5938
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5939
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5941
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5942
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5949
lt_prog_compiler_wl=
5950
lt_prog_compiler_pic=
5951
lt_prog_compiler_static=
5953
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5954
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5956
if test "$GCC" = yes; then
5957
lt_prog_compiler_wl='-Wl,'
5958
lt_prog_compiler_static='-static'
5962
# All AIX code is PIC.
5963
if test "$host_cpu" = ia64; then
5964
# AIX 5 now supports IA64 processor
5965
lt_prog_compiler_static='-Bstatic'
5970
# FIXME: we need at least 68020 code to build shared libraries, but
5971
# adding the `-m68020' flag to GCC prevents building anything better,
5973
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5976
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5977
# PIC is the default for these OSes.
5980
mingw* | pw32* | os2*)
5981
# This hack is so that the source file can tell whether it is being
5982
# built for inclusion in a dll (and should export symbols for example).
5983
lt_prog_compiler_pic='-DDLL_EXPORT'
5986
darwin* | rhapsody*)
5987
# PIC is the default on this platform
5988
# Common symbols not allowed in MH_DYLIB files
5989
lt_prog_compiler_pic='-fno-common'
5993
# Just because we use GCC doesn't mean we suddenly get shared libraries
5994
# on systems that don't support them.
5995
lt_prog_compiler_can_build_shared=no
6000
if test -d /usr/nec; then
6001
lt_prog_compiler_pic=-Kconform_pic
6006
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6013
lt_prog_compiler_pic='-fPIC'
6019
lt_prog_compiler_pic='-fPIC'
6023
# PORTME Check for flag to pass linker flags through the system compiler.
6026
lt_prog_compiler_wl='-Wl,'
6027
if test "$host_cpu" = ia64; then
6028
# AIX 5 now supports IA64 processor
6029
lt_prog_compiler_static='-Bstatic'
6031
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6035
# PIC is the default on this platform
6036
# Common symbols not allowed in MH_DYLIB files
6037
case "$cc_basename" in
6039
lt_prog_compiler_pic='-qnocommon'
6040
lt_prog_compiler_wl='-Wl,'
6045
mingw* | pw32* | os2*)
6046
# This hack is so that the source file can tell whether it is being
6047
# built for inclusion in a dll (and should export symbols for example).
6048
lt_prog_compiler_pic='-DDLL_EXPORT'
6051
hpux9* | hpux10* | hpux11*)
6052
lt_prog_compiler_wl='-Wl,'
6053
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6060
lt_prog_compiler_pic='+Z'
6063
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6064
lt_prog_compiler_static='${wl}-a ${wl}archive'
6067
irix5* | irix6* | nonstopux*)
6068
lt_prog_compiler_wl='-Wl,'
6069
# PIC (with -KPIC) is the default.
6070
lt_prog_compiler_static='-non_shared'
6074
lt_prog_compiler_pic='-KPIC'
6075
lt_prog_compiler_static='-Bstatic'
6079
case $cc_basename in
6081
lt_prog_compiler_wl='-Wl,'
6082
lt_prog_compiler_pic='-KPIC'
6083
lt_prog_compiler_static='-static'
6085
pgcc | pgf77 | pgf90)
6086
# Portland Group compilers (*not* the Pentium gcc compiler,
6087
# which looks to be a dead project)
6088
lt_prog_compiler_wl='-Wl,'
6089
lt_prog_compiler_pic='-fpic'
6090
lt_prog_compiler_static='-static'
6093
lt_prog_compiler_wl='-Wl,'
6094
# All Alpha code is PIC.
6095
lt_prog_compiler_static='-non_shared'
6100
osf3* | osf4* | osf5*)
6101
lt_prog_compiler_wl='-Wl,'
6102
# All OSF/1 code is PIC.
6103
lt_prog_compiler_static='-non_shared'
6107
lt_prog_compiler_pic='-Kpic'
6108
lt_prog_compiler_static='-dn'
6112
lt_prog_compiler_wl='-Wl,'
6113
lt_prog_compiler_pic='-KPIC'
6114
lt_prog_compiler_static='-Bstatic'
6118
lt_prog_compiler_wl='-Qoption ld '
6119
lt_prog_compiler_pic='-PIC'
6120
lt_prog_compiler_static='-Bstatic'
6123
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6124
lt_prog_compiler_wl='-Wl,'
6125
lt_prog_compiler_pic='-KPIC'
6126
lt_prog_compiler_static='-Bstatic'
6130
if test -d /usr/nec ;then
6131
lt_prog_compiler_pic='-Kconform_pic'
6132
lt_prog_compiler_static='-Bstatic'
6137
lt_prog_compiler_wl='-Wl,'
6138
lt_prog_compiler_can_build_shared=no
6142
lt_prog_compiler_pic='-pic'
6143
lt_prog_compiler_static='-Bstatic'
6147
lt_prog_compiler_can_build_shared=no
6152
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6153
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6156
# Check to make sure the PIC flag actually works.
6158
if test -n "$lt_prog_compiler_pic"; then
6160
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6161
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6162
if test "${lt_prog_compiler_pic_works+set}" = set; then
6163
echo $ECHO_N "(cached) $ECHO_C" >&6
6165
lt_prog_compiler_pic_works=no
6166
ac_outfile=conftest.$ac_objext
6167
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6168
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6169
# Insert the option either (1) after the last *FLAGS variable, or
6170
# (2) before a word containing "conftest.", or (3) at the end.
6171
# Note that $ac_compile itself does not contain backslashes and begins
6172
# with a dollar sign (not a hyphen), so the echo should work correctly.
6173
# The option is referenced via a variable to avoid confusing sed.
6174
lt_compile=`echo "$ac_compile" | $SED \
6175
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6176
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6177
-e 's:$: $lt_compiler_flag:'`
6178
(eval echo "\"\$as_me:6178: $lt_compile\"" >&5)
6179
(eval "$lt_compile" 2>conftest.err)
6181
cat conftest.err >&5
6182
echo "$as_me:6182: \$? = $ac_status" >&5
6183
if (exit $ac_status) && test -s "$ac_outfile"; then
6184
# The compiler can only warn and ignore the option if not recognized
6185
# So say no if there are warnings
6186
if test ! -s conftest.err; then
6187
lt_prog_compiler_pic_works=yes
6193
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6194
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6196
if test x"$lt_prog_compiler_pic_works" = xyes; then
6197
case $lt_prog_compiler_pic in
6199
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6202
lt_prog_compiler_pic=
6203
lt_prog_compiler_can_build_shared=no
6208
# For platforms which do not support PIC, -DPIC is meaningless:
6210
lt_prog_compiler_pic=
6213
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6217
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6218
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6219
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6220
echo $ECHO_N "(cached) $ECHO_C" >&6
6222
lt_cv_prog_compiler_c_o=no
6223
$rm -r conftest 2>/dev/null
6227
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6229
lt_compiler_flag="-o out/conftest2.$ac_objext"
6230
# Insert the option either (1) after the last *FLAGS variable, or
6231
# (2) before a word containing "conftest.", or (3) at the end.
6232
# Note that $ac_compile itself does not contain backslashes and begins
6233
# with a dollar sign (not a hyphen), so the echo should work correctly.
6234
lt_compile=`echo "$ac_compile" | $SED \
6235
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6236
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6237
-e 's:$: $lt_compiler_flag:'`
6238
(eval echo "\"\$as_me:6238: $lt_compile\"" >&5)
6239
(eval "$lt_compile" 2>out/conftest.err)
6241
cat out/conftest.err >&5
6242
echo "$as_me:6242: \$? = $ac_status" >&5
6243
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6245
# The compiler can only warn and ignore the option if not recognized
6246
# So say no if there are warnings
6247
if test ! -s out/conftest.err; then
6248
lt_cv_prog_compiler_c_o=yes
6253
# SGI C++ compiler will create directory out/ii_files/ for
6254
# template instantiation
6255
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6256
$rm out/* && rmdir out
6262
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6263
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6266
hard_links="nottested"
6267
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6268
# do not overwrite the value of need_locks provided by the user
6269
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6270
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6273
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6275
ln conftest.a conftest.b 2>&5 || hard_links=no
6276
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6277
echo "$as_me:$LINENO: result: $hard_links" >&5
6278
echo "${ECHO_T}$hard_links" >&6
6279
if test "$hard_links" = no; then
6280
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6281
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6288
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6289
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6292
allow_undefined_flag=
6293
enable_shared_with_static_runtimes=no
6295
archive_expsym_cmds=
6296
old_archive_From_new_cmds=
6297
old_archive_from_expsyms_cmds=
6298
export_dynamic_flag_spec=
6299
whole_archive_flag_spec=
6300
thread_safe_flag_spec=
6301
hardcode_libdir_flag_spec=
6302
hardcode_libdir_flag_spec_ld=
6303
hardcode_libdir_separator=
6306
hardcode_shlibpath_var=unsupported
6307
link_all_deplibs=unknown
6308
hardcode_automatic=no
6311
always_export_symbols=no
6312
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6313
# include_expsyms should be a list of space-separated symbols to be *always*
6314
# included in the symbol list
6316
# exclude_expsyms can be an extended regexp of symbols to exclude
6317
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6318
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6319
# as well as any symbol that contains `d'.
6320
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6321
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6322
# platforms (ab)use it in PIC code, but their linkers get confused if
6323
# the symbol is explicitly referenced. Since portable code cannot
6324
# rely on this symbol name, it's probably fine to never include it in
6325
# preloaded symbol tables.
6326
extract_expsyms_cmds=
6329
cygwin* | mingw* | pw32*)
6330
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6331
# When not using gcc, we currently assume that we are using
6332
# Microsoft Visual C++.
6333
if test "$GCC" != yes; then
6343
if test "$with_gnu_ld" = yes; then
6344
# If archive_cmds runs LD, not CC, wlarc should be empty
6347
# See if GNU ld supports shared libraries.
6349
aix3* | aix4* | aix5*)
6350
# On AIX/PPC, the GNU linker is very broken
6351
if test "$host_cpu" != ia64; then
6355
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6356
*** to be unable to reliably create shared libraries on AIX.
6357
*** Therefore, libtool is disabling shared libraries support. If you
6358
*** really care for shared libraries, you may want to modify your PATH
6359
*** so that a non-GNU linker is found, and then restart.
6366
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)'
6367
hardcode_libdir_flag_spec='-L$libdir'
6368
hardcode_minus_L=yes
6370
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6371
# that the semantics of dynamic libraries on AmigaOS, at least up
6372
# to version 4, is to share data among multiple programs linked
6373
# with the same dynamic library. Since this doesn't match the
6374
# behavior of shared libraries on other platforms, we can't use
6380
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6381
allow_undefined_flag=unsupported
6382
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6383
# support --undefined. This deserves some investigation. FIXME
6384
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6390
cygwin* | mingw* | pw32*)
6391
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6392
# as there is no search path for DLLs.
6393
hardcode_libdir_flag_spec='-L$libdir'
6394
allow_undefined_flag=unsupported
6395
always_export_symbols=no
6396
enable_shared_with_static_runtimes=yes
6397
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6399
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6400
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6401
# If the export-symbols file already is a .def file (1st line
6402
# is EXPORTS), use it as is; otherwise, prepend...
6403
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6404
cp $export_symbols $output_objdir/$soname.def;
6406
echo EXPORTS > $output_objdir/$soname.def;
6407
cat $export_symbols >> $output_objdir/$soname.def;
6409
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6416
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6417
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6420
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6421
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6426
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6430
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6431
*** create shared libraries on Solaris systems. Therefore, libtool
6432
*** is disabling shared libraries support. We urge you to upgrade GNU
6433
*** binutils to release 2.9.1 or newer. Another option is to modify
6434
*** your PATH or compiler configuration so that the native linker is
6435
*** used, and then restart.
6438
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6439
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6440
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6447
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6450
hardcode_shlibpath_var=no
6454
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6456
case $CC,$host_cpu in
6457
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
6458
tmp_addflag=' -fpic' ;;
6459
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6460
tmp_addflag=' -i_dynamic' ;;
6461
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6462
tmp_addflag=' -i_dynamic -nofor_main' ;;
6463
ifc* | ifort*) # Intel Fortran compiler
6464
tmp_addflag=' -nofor_main' ;;
6466
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6467
supports_anon_versioning=no
6468
case `$LD -v 2>/dev/null` in
6469
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6470
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6471
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6472
*\ 2.11.*) ;; # other 2.11 versions
6473
*) supports_anon_versioning=yes ;;
6475
if test $supports_anon_versioning = yes; then
6476
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6477
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6478
$echo "local: *; };" >> $output_objdir/$libname.ver~
6479
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6481
archive_expsym_cmds=$archive_cmds
6489
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6490
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6491
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6498
if test "$ld_shlibs" = yes; then
6499
runpath_var=LD_RUN_PATH
6500
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6501
export_dynamic_flag_spec='${wl}--export-dynamic'
6502
# ancient GNU ld didn't support --whole-archive et. al.
6503
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6504
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6506
whole_archive_flag_spec=
6510
# PORTME fill in a description of your system's linker (not GNU ld)
6513
allow_undefined_flag=unsupported
6514
always_export_symbols=yes
6515
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'
6516
# Note: this linker hardcodes the directories in LIBPATH if there
6517
# are no directories specified by -L.
6518
hardcode_minus_L=yes
6519
if test "$GCC" = yes && test -z "$link_static_flag"; then
6520
# Neither direct hardcoding nor static linking is supported with a
6522
hardcode_direct=unsupported
6527
if test "$host_cpu" = ia64; then
6528
# On IA64, the linker does run time linking by default, so we don't
6529
# have to do anything special.
6530
aix_use_runtimelinking=no
6531
exp_sym_flag='-Bexport'
6534
# If we're using GNU nm, then we don't want the "-C" option.
6535
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6536
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6537
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'
6539
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'
6541
aix_use_runtimelinking=no
6543
# Test if we are trying to use run time linking or normal
6544
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6545
# need to do runtime linking.
6546
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6547
for ld_flag in $LDFLAGS; do
6548
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6549
aix_use_runtimelinking=yes
6555
exp_sym_flag='-bexport'
6556
no_entry_flag='-bnoentry'
6559
# When large executables or shared objects are built, AIX ld can
6560
# have problems creating the table of contents. If linking a library
6561
# or program results in "error TOC overflow" add -mminimal-toc to
6562
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6563
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6567
hardcode_libdir_separator=':'
6568
link_all_deplibs=yes
6570
if test "$GCC" = yes; then
6571
case $host_os in aix4.[012]|aix4.[012].*)
6572
# We only want to do this on AIX 4.2 and lower, the check
6573
# below for broken collect2 doesn't work under 4.3+
6574
collect2name=`${CC} -print-prog-name=collect2`
6575
if test -f "$collect2name" && \
6576
strings "$collect2name" | grep resolve_lib_name >/dev/null
6578
# We have reworked collect2
6581
# We have old collect2
6582
hardcode_direct=unsupported
6583
# It fails to find uninstalled libraries when the uninstalled
6584
# path is not listed in the libpath. Setting hardcode_minus_L
6585
# to unsupported forces relinking
6586
hardcode_minus_L=yes
6587
hardcode_libdir_flag_spec='-L$libdir'
6588
hardcode_libdir_separator=
6591
shared_flag='-shared'
6592
if test "$aix_use_runtimelinking" = yes; then
6593
shared_flag="$shared_flag "'${wl}-G'
6597
if test "$host_cpu" = ia64; then
6598
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6599
# chokes on -Wl,-G. The following line is correct:
6602
if test "$aix_use_runtimelinking" = yes; then
6603
shared_flag='${wl}-G'
6605
shared_flag='${wl}-bM:SRE'
6610
# It seems that -bexpall does not export symbols beginning with
6611
# underscore (_), so it is better to generate a list of symbols to export.
6612
always_export_symbols=yes
6613
if test "$aix_use_runtimelinking" = yes; then
6614
# Warning - without using the other runtime loading flags (-brtl),
6615
# -berok will link without error, but may produce a broken library.
6616
allow_undefined_flag='-berok'
6617
# Determine the default libpath from the value encoded in an empty executable.
6618
cat >conftest.$ac_ext <<_ACEOF
6621
cat confdefs.h >>conftest.$ac_ext
6622
cat >>conftest.$ac_ext <<_ACEOF
6623
/* end confdefs.h. */
6633
rm -f conftest.$ac_objext conftest$ac_exeext
6634
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6635
(eval $ac_link) 2>conftest.er1
6637
grep -v '^ *+' conftest.er1 >conftest.err
6639
cat conftest.err >&5
6640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641
(exit $ac_status); } &&
6642
{ ac_try='test -z "$ac_c_werror_flag"
6643
|| test ! -s conftest.err'
6644
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648
(exit $ac_status); }; } &&
6649
{ ac_try='test -s conftest$ac_exeext'
6650
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654
(exit $ac_status); }; }; then
6656
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6658
# Check for a 64-bit object if we didn't find anything.
6659
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6662
echo "$as_me: failed program was:" >&5
6663
sed 's/^/| /' conftest.$ac_ext >&5
6666
rm -f conftest.err conftest.$ac_objext \
6667
conftest$ac_exeext conftest.$ac_ext
6668
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6670
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6671
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6673
if test "$host_cpu" = ia64; then
6674
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6675
allow_undefined_flag="-z nodefs"
6676
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6678
# Determine the default libpath from the value encoded in an empty executable.
6679
cat >conftest.$ac_ext <<_ACEOF
6682
cat confdefs.h >>conftest.$ac_ext
6683
cat >>conftest.$ac_ext <<_ACEOF
6684
/* end confdefs.h. */
6694
rm -f conftest.$ac_objext conftest$ac_exeext
6695
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6696
(eval $ac_link) 2>conftest.er1
6698
grep -v '^ *+' conftest.er1 >conftest.err
6700
cat conftest.err >&5
6701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702
(exit $ac_status); } &&
6703
{ ac_try='test -z "$ac_c_werror_flag"
6704
|| test ! -s conftest.err'
6705
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709
(exit $ac_status); }; } &&
6710
{ ac_try='test -s conftest$ac_exeext'
6711
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715
(exit $ac_status); }; }; then
6717
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6719
# Check for a 64-bit object if we didn't find anything.
6720
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6723
echo "$as_me: failed program was:" >&5
6724
sed 's/^/| /' conftest.$ac_ext >&5
6727
rm -f conftest.err conftest.$ac_objext \
6728
conftest$ac_exeext conftest.$ac_ext
6729
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6731
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6732
# Warning - without using the other run time loading flags,
6733
# -berok will link without error, but may produce a broken library.
6734
no_undefined_flag=' ${wl}-bernotok'
6735
allow_undefined_flag=' ${wl}-berok'
6736
# -bexpall does not export symbols beginning with underscore (_)
6737
always_export_symbols=yes
6738
# Exported symbols can be pulled into shared objects from archives
6739
whole_archive_flag_spec=' '
6740
archive_cmds_need_lc=yes
6741
# This is similar to how AIX traditionally builds it's shared libraries.
6742
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6748
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)'
6749
hardcode_libdir_flag_spec='-L$libdir'
6750
hardcode_minus_L=yes
6751
# see comment about different semantics on the GNU ld section
6756
export_dynamic_flag_spec=-rdynamic
6759
cygwin* | mingw* | pw32*)
6760
# When not using gcc, we currently assume that we are using
6761
# Microsoft Visual C++.
6762
# hardcode_libdir_flag_spec is actually meaningless, as there is
6763
# no search path for DLLs.
6764
hardcode_libdir_flag_spec=' '
6765
allow_undefined_flag=unsupported
6766
# Tell ltmain to make .lib files, not .a files.
6768
# Tell ltmain to make .dll files, not .so files.
6770
# FIXME: Setting linknames here is a bad hack.
6771
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6772
# The linker will automatically build a .lib file if we build a DLL.
6773
old_archive_From_new_cmds='true'
6774
# FIXME: Should let the user specify the lib program.
6775
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6776
fix_srcfile_path='`cygpath -w "$srcfile"`'
6777
enable_shared_with_static_runtimes=yes
6780
darwin* | rhapsody*)
6782
rhapsody* | darwin1.[012])
6783
allow_undefined_flag='${wl}-undefined ${wl}suppress'
6786
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6787
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6789
case ${MACOSX_DEPLOYMENT_TARGET} in
6791
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6794
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6800
archive_cmds_need_lc=no
6802
hardcode_automatic=yes
6803
hardcode_shlibpath_var=unsupported
6804
whole_archive_flag_spec=''
6805
link_all_deplibs=yes
6806
if test "$GCC" = yes ; then
6807
output_verbose_link_cmd='echo'
6808
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6809
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6810
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6811
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6812
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}'
6814
case "$cc_basename" in
6816
output_verbose_link_cmd='echo'
6817
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6818
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6819
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6820
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6821
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}'
6831
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6832
hardcode_libdir_flag_spec='-L$libdir'
6833
hardcode_shlibpath_var=no
6840
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6841
# support. Future versions do this automatically, but an explicit c++rt0.o
6842
# does not break anything, and helps significantly (at the cost of a little
6845
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6846
hardcode_libdir_flag_spec='-R$libdir'
6848
hardcode_shlibpath_var=no
6851
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6853
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6855
hardcode_minus_L=yes
6856
hardcode_shlibpath_var=no
6859
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6860
freebsd* | kfreebsd*-gnu | dragonfly*)
6861
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6862
hardcode_libdir_flag_spec='-R$libdir'
6864
hardcode_shlibpath_var=no
6868
if test "$GCC" = yes; then
6869
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'
6871
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'
6873
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6874
hardcode_libdir_separator=:
6877
# hardcode_minus_L: Not really in the search PATH,
6878
# but as the default location of the library.
6879
hardcode_minus_L=yes
6880
export_dynamic_flag_spec='${wl}-E'
6884
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6887
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6890
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6896
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6899
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6903
if test "$with_gnu_ld" = no; then
6906
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6907
hardcode_libdir_flag_spec_ld='+b $libdir'
6908
hardcode_libdir_separator=:
6910
hardcode_shlibpath_var=no
6913
hardcode_libdir_flag_spec='-L$libdir'
6915
hardcode_shlibpath_var=no
6917
# hardcode_minus_L: Not really in the search PATH,
6918
# but as the default location of the library.
6919
hardcode_minus_L=yes
6922
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6923
hardcode_libdir_separator=:
6925
export_dynamic_flag_spec='${wl}-E'
6927
# hardcode_minus_L: Not really in the search PATH,
6928
# but as the default location of the library.
6929
hardcode_minus_L=yes
6935
irix5* | irix6* | nonstopux*)
6936
if test "$GCC" = yes; then
6937
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'
6939
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'
6940
hardcode_libdir_flag_spec_ld='-rpath $libdir'
6942
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6943
hardcode_libdir_separator=:
6944
link_all_deplibs=yes
6948
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6949
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6951
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6953
hardcode_libdir_flag_spec='-R$libdir'
6955
hardcode_shlibpath_var=no
6959
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6961
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6962
hardcode_libdir_separator=:
6963
hardcode_shlibpath_var=no
6968
hardcode_shlibpath_var=no
6969
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6970
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6971
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6972
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6973
export_dynamic_flag_spec='${wl}-E'
6976
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6977
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6978
hardcode_libdir_flag_spec='-R$libdir'
6981
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6982
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6989
hardcode_libdir_flag_spec='-L$libdir'
6990
hardcode_minus_L=yes
6991
allow_undefined_flag=unsupported
6992
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'
6993
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6997
if test "$GCC" = yes; then
6998
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6999
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'
7001
allow_undefined_flag=' -expect_unresolved \*'
7002
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'
7004
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7005
hardcode_libdir_separator=:
7008
osf4* | osf5*) # as osf3* with the addition of -msym flag
7009
if test "$GCC" = yes; then
7010
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7011
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'
7012
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7014
allow_undefined_flag=' -expect_unresolved \*'
7015
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'
7016
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7017
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7019
# Both c and cxx compiler support -rpath directly
7020
hardcode_libdir_flag_spec='-rpath $libdir'
7022
hardcode_libdir_separator=:
7026
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7027
hardcode_shlibpath_var=no
7028
export_dynamic_flag_spec='${wl}-Bexport'
7029
runpath_var=LD_RUN_PATH
7030
hardcode_runpath_var=yes
7034
no_undefined_flag=' -z text'
7035
if test "$GCC" = yes; then
7036
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7037
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7038
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7040
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7041
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7042
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7044
hardcode_libdir_flag_spec='-R$libdir'
7045
hardcode_shlibpath_var=no
7047
solaris2.[0-5] | solaris2.[0-5].*) ;;
7048
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
7049
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
7051
link_all_deplibs=yes
7055
if test "x$host_vendor" = xsequent; then
7056
# Use $CC to link under sequent, because it throws in some extra .o
7057
# files that make .init and .fini sections work.
7058
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7060
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7062
hardcode_libdir_flag_spec='-L$libdir'
7064
hardcode_minus_L=yes
7065
hardcode_shlibpath_var=no
7069
case $host_vendor in
7071
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7072
hardcode_direct=yes # is this really true???
7075
## LD is ld it makes a PLAMLIB
7076
## CC just makes a GrossModule.
7077
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7078
reload_cmds='$CC -r -o $output$reload_objs'
7082
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7083
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7086
runpath_var='LD_RUN_PATH'
7087
hardcode_shlibpath_var=no
7091
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7092
hardcode_shlibpath_var=no
7093
export_dynamic_flag_spec='-Bexport'
7097
if test -d /usr/nec; then
7098
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7099
hardcode_shlibpath_var=no
7100
runpath_var=LD_RUN_PATH
7101
hardcode_runpath_var=yes
7107
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7110
hardcode_shlibpath_var=no
7111
hardcode_runpath_var=yes
7112
runpath_var=LD_RUN_PATH
7115
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7116
no_undefined_flag='${wl}-z ${wl}text'
7117
if test "$GCC" = yes; then
7118
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7120
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7122
runpath_var='LD_RUN_PATH'
7123
hardcode_shlibpath_var=no
7127
no_undefined_flag=' -z text'
7128
# $CC -shared without GNU ld will not create a library from C++
7129
# object files and a static libstdc++, better avoid it by now
7130
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7131
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7132
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7133
hardcode_libdir_flag_spec=
7134
hardcode_shlibpath_var=no
7135
runpath_var='LD_RUN_PATH'
7139
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7140
hardcode_libdir_flag_spec='-L$libdir'
7141
hardcode_shlibpath_var=no
7150
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7151
echo "${ECHO_T}$ld_shlibs" >&6
7152
test "$ld_shlibs" = no && can_build_shared=no
7154
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7155
if test "$GCC" = yes; then
7156
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7160
# Do we need to explicitly link libc?
7162
case "x$archive_cmds_need_lc" in
7164
# Assume -lc should be added
7165
archive_cmds_need_lc=yes
7167
if test "$enable_shared" = yes && test "$GCC" = yes; then
7168
case $archive_cmds in
7170
# FIXME: we may have to deal with multi-command sequences.
7173
# Test whether the compiler implicitly links with -lc since on some
7174
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7175
# to ld, don't add -lc before -lgcc.
7176
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7177
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7179
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7181
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7182
(eval $ac_compile) 2>&5
7184
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185
(exit $ac_status); } 2>conftest.err; then
7188
libobjs=conftest.$ac_objext
7190
wl=$lt_prog_compiler_wl
7196
lt_save_allow_undefined_flag=$allow_undefined_flag
7197
allow_undefined_flag=
7198
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7199
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202
(exit $ac_status); }
7204
archive_cmds_need_lc=no
7206
archive_cmds_need_lc=yes
7208
allow_undefined_flag=$lt_save_allow_undefined_flag
7210
cat conftest.err 1>&5
7213
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7214
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7221
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7222
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7224
libname_spec='lib$name'
7232
shlibpath_overrides_runpath=unknown
7234
dynamic_linker="$host_os ld.so"
7235
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7236
if test "$GCC" = yes; then
7237
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7238
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7239
# if the path contains ";" then we assume it to be the separator
7240
# otherwise default to the standard path separator (i.e. ":") - it is
7241
# assumed that no part of a normal pathname contains ";" but that should
7242
# okay in the real world where ";" in dirpaths is itself problematic.
7243
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7245
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7248
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7250
need_lib_prefix=unknown
7251
hardcode_into_libs=no
7253
# when you set need_version to no, make sure it does not cause -set_version
7254
# flags to be left without arguments
7255
need_version=unknown
7260
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7261
shlibpath_var=LIBPATH
7263
# AIX 3 has no versioning support, so we append a major version to the name.
7264
soname_spec='${libname}${release}${shared_ext}$major'
7271
hardcode_into_libs=yes
7272
if test "$host_cpu" = ia64; then
7273
# AIX 5 supports IA64
7274
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7275
shlibpath_var=LD_LIBRARY_PATH
7277
# With GCC up to 2.95.x, collect2 would create an import file
7278
# for dependence libraries. The import file would start with
7279
# the line `#! .'. This would cause the generated library to
7280
# depend on `.', always an invalid library. This was fixed in
7281
# development snapshots of GCC prior to 3.0.
7283
aix4 | aix4.[01] | aix4.[01].*)
7284
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7286
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7293
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7294
# soname into executable. Probably we can add versioning support to
7295
# collect2, so additional links can be useful in future.
7296
if test "$aix_use_runtimelinking" = yes; then
7297
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7298
# instead of lib<name>.a to let people know that these are not
7299
# typical AIX shared libraries.
7300
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7302
# We preserve .a as extension for shared libraries through AIX4.2
7303
# and later when we are not doing run time linking.
7304
library_names_spec='${libname}${release}.a $libname.a'
7305
soname_spec='${libname}${release}${shared_ext}$major'
7307
shlibpath_var=LIBPATH
7312
library_names_spec='$libname.ixlibrary $libname.a'
7313
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7314
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'
7318
library_names_spec='${libname}${shared_ext}'
7319
dynamic_linker="$host_os ld.so"
7320
shlibpath_var=LIBRARY_PATH
7326
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7327
soname_spec='${libname}${release}${shared_ext}$major'
7328
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7329
shlibpath_var=LD_LIBRARY_PATH
7330
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7331
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7332
# the default ld.so.conf also contains /usr/contrib/lib and
7333
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7334
# libtool to hard-code these into programs
7337
cygwin* | mingw* | pw32*)
7338
version_type=windows
7343
case $GCC,$host_os in
7344
yes,cygwin* | yes,mingw* | yes,pw32*)
7345
library_names_spec='$libname.dll.a'
7346
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7347
postinstall_cmds='base_file=`basename \${file}`~
7348
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7349
dldir=$destdir/`dirname \$dlpath`~
7350
test -d \$dldir || mkdir -p \$dldir~
7351
$install_prog $dir/$dlname \$dldir/$dlname'
7352
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7353
dlpath=$dir/\$dldll~
7355
shlibpath_overrides_runpath=yes
7359
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7360
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7361
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7364
# MinGW DLLs use traditional 'lib' prefix
7365
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7366
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7367
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7368
# It is most probably a Windows format PATH printed by
7369
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7370
# path with ; separators, and with drive letters. We can handle the
7371
# drive letters (cygwin fileutils understands them), so leave them,
7372
# especially as we might pass files found there to a mingw objdump,
7373
# which wouldn't understand a cygwinified path. Ahh.
7374
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7376
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7380
# pw32 DLLs use 'pw' prefix rather than 'lib'
7381
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7387
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7390
dynamic_linker='Win32 ld.exe'
7391
# FIXME: first we should search . and the directory the executable is in
7395
darwin* | rhapsody*)
7396
dynamic_linker="$host_os dyld"
7400
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7401
soname_spec='${libname}${release}${major}$shared_ext'
7402
shlibpath_overrides_runpath=yes
7403
shlibpath_var=DYLD_LIBRARY_PATH
7404
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7405
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7406
if test "$GCC" = yes; then
7407
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7409
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7411
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7418
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7419
soname_spec='${libname}${release}${shared_ext}$major'
7420
shlibpath_var=LD_LIBRARY_PATH
7431
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7432
soname_spec='${libname}${release}${shared_ext}$major'
7433
shlibpath_var=LD_LIBRARY_PATH
7434
shlibpath_overrides_runpath=no
7435
hardcode_into_libs=yes
7436
dynamic_linker='GNU ld.so'
7439
freebsd* | dragonfly*)
7440
# DragonFly does not have aout. When/if they implement a new
7441
# versioning mechanism, adjust this.
7442
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7443
version_type=freebsd-$objformat
7444
case $version_type in
7446
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7451
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7455
shlibpath_var=LD_LIBRARY_PATH
7458
shlibpath_overrides_runpath=yes
7460
freebsd3.[01]* | freebsdelf3.[01]*)
7461
shlibpath_overrides_runpath=yes
7462
hardcode_into_libs=yes
7465
shlibpath_overrides_runpath=no
7466
hardcode_into_libs=yes
7475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7476
soname_spec='${libname}${release}${shared_ext}$major'
7477
shlibpath_var=LD_LIBRARY_PATH
7478
hardcode_into_libs=yes
7481
hpux9* | hpux10* | hpux11*)
7482
# Give a soname corresponding to the major version so that dld.sl refuses to
7483
# link against other versions.
7490
hardcode_into_libs=yes
7491
dynamic_linker="$host_os dld.so"
7492
shlibpath_var=LD_LIBRARY_PATH
7493
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7494
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7495
soname_spec='${libname}${release}${shared_ext}$major'
7496
if test "X$HPUX_IA64_MODE" = X32; then
7497
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7499
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7501
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7505
hardcode_into_libs=yes
7506
dynamic_linker="$host_os dld.sl"
7507
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7508
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7509
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7510
soname_spec='${libname}${release}${shared_ext}$major'
7511
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7512
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7516
dynamic_linker="$host_os dld.sl"
7517
shlibpath_var=SHLIB_PATH
7518
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7519
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7520
soname_spec='${libname}${release}${shared_ext}$major'
7523
# HP-UX runs *really* slowly unless shared libraries are mode 555.
7524
postinstall_cmds='chmod 555 $lib'
7527
irix5* | irix6* | nonstopux*)
7529
nonstopux*) version_type=nonstopux ;;
7531
if test "$lt_cv_prog_gnu_ld" = yes; then
7539
soname_spec='${libname}${release}${shared_ext}$major'
7540
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7542
irix5* | nonstopux*)
7546
case $LD in # libtool.m4 will add one of these switches to LD
7547
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7548
libsuff= shlibsuff= libmagic=32-bit;;
7549
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7550
libsuff=32 shlibsuff=N32 libmagic=N32;;
7551
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7552
libsuff=64 shlibsuff=64 libmagic=64-bit;;
7553
*) libsuff= shlibsuff= libmagic=never-match;;
7557
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7558
shlibpath_overrides_runpath=no
7559
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7560
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7561
hardcode_into_libs=yes
7564
# No shared lib support for Linux oldld, aout, or coff.
7565
linux*oldld* | linux*aout* | linux*coff*)
7569
# This must be Linux ELF.
7574
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7575
soname_spec='${libname}${release}${shared_ext}$major'
7576
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7577
shlibpath_var=LD_LIBRARY_PATH
7578
shlibpath_overrides_runpath=no
7579
# This implies no fast_install, which is unacceptable.
7580
# Some rework will be needed to allow for fast_install
7581
# before this can be enabled.
7582
hardcode_into_libs=yes
7584
# Append ld.so.conf contents to the search path
7585
if test -f /etc/ld.so.conf; then
7586
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7587
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7590
# We used to test for /lib/ld.so.1 and disable shared libraries on
7591
# powerpc, because MkLinux only supported shared libraries with the
7592
# GNU dynamic linker. Since this was broken with cross compilers,
7593
# most powerpc-linux boxes support dynamic linking these days and
7594
# people can always --disable-shared, the test was removed, and we
7595
# assume the GNU/Linux dynamic linker is in use.
7596
dynamic_linker='GNU/Linux ld.so'
7603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7604
soname_spec='${libname}${release}${shared_ext}$major'
7605
shlibpath_var=LD_LIBRARY_PATH
7606
shlibpath_overrides_runpath=no
7607
hardcode_into_libs=yes
7608
dynamic_linker='GNU ld.so'
7615
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7616
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7617
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7618
dynamic_linker='NetBSD (a.out) ld.so'
7620
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7621
soname_spec='${libname}${release}${shared_ext}$major'
7622
dynamic_linker='NetBSD ld.elf_so'
7624
shlibpath_var=LD_LIBRARY_PATH
7625
shlibpath_overrides_runpath=yes
7626
hardcode_into_libs=yes
7631
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7632
shlibpath_var=LD_LIBRARY_PATH
7633
shlibpath_overrides_runpath=yes
7640
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7641
soname_spec='${libname}${release}${shared_ext}$major'
7642
shlibpath_var=LD_LIBRARY_PATH
7643
shlibpath_overrides_runpath=yes
7650
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7651
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7652
shlibpath_var=LD_LIBRARY_PATH
7653
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7655
openbsd2.[89] | openbsd2.[89].*)
7656
shlibpath_overrides_runpath=no
7659
shlibpath_overrides_runpath=yes
7663
shlibpath_overrides_runpath=yes
7668
libname_spec='$name'
7671
library_names_spec='$libname${shared_ext} $libname.a'
7672
dynamic_linker='OS/2 ld.exe'
7673
shlibpath_var=LIBPATH
7676
osf3* | osf4* | osf5*)
7680
soname_spec='${libname}${release}${shared_ext}$major'
7681
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7682
shlibpath_var=LD_LIBRARY_PATH
7683
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7684
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7689
soname_spec='${libname}${release}${shared_ext}$major'
7690
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7691
shlibpath_var=LD_LIBRARY_PATH
7698
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7699
soname_spec='${libname}${release}${shared_ext}$major'
7700
shlibpath_var=LD_LIBRARY_PATH
7701
shlibpath_overrides_runpath=yes
7702
hardcode_into_libs=yes
7703
# ldd complains unless libraries are executable
7704
postinstall_cmds='chmod +x $lib'
7709
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7710
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7711
shlibpath_var=LD_LIBRARY_PATH
7712
shlibpath_overrides_runpath=yes
7713
if test "$with_gnu_ld" = yes; then
7719
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7721
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7722
soname_spec='${libname}${release}${shared_ext}$major'
7723
shlibpath_var=LD_LIBRARY_PATH
7724
case $host_vendor in
7726
shlibpath_overrides_runpath=no
7728
export_dynamic_flag_spec='${wl}-Blargedynsym'
7729
runpath_var=LD_RUN_PATH
7737
shlibpath_overrides_runpath=no
7738
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7744
if test -d /usr/nec ;then
7746
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7747
soname_spec='$libname${shared_ext}.$major'
7748
shlibpath_var=LD_LIBRARY_PATH
7754
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7755
soname_spec='${libname}${release}${shared_ext}$major'
7756
shlibpath_var=LD_LIBRARY_PATH
7763
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7764
echo "${ECHO_T}$dynamic_linker" >&6
7765
test "$dynamic_linker" = no && can_build_shared=no
7767
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7768
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7770
if test -n "$hardcode_libdir_flag_spec" || \
7771
test -n "$runpath_var" || \
7772
test "X$hardcode_automatic" = "Xyes" ; then
7774
# We can hardcode non-existant directories.
7775
if test "$hardcode_direct" != no &&
7776
# If the only mechanism to avoid hardcoding is shlibpath_var, we
7777
# have to relink, otherwise we might link with an installed library
7778
# when we should be linking with a yet-to-be-installed one
7779
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7780
test "$hardcode_minus_L" != no; then
7781
# Linking always hardcodes the temporary library directory.
7782
hardcode_action=relink
7784
# We can link without hardcoding, and we can hardcode nonexisting dirs.
7785
hardcode_action=immediate
7788
# We cannot hardcode anything, or else we can only hardcode existing
7790
hardcode_action=unsupported
7792
echo "$as_me:$LINENO: result: $hardcode_action" >&5
7793
echo "${ECHO_T}$hardcode_action" >&6
7795
if test "$hardcode_action" = relink; then
7796
# Fast installation is not supported
7797
enable_fast_install=no
7798
elif test "$shlibpath_overrides_runpath" = yes ||
7799
test "$enable_shared" = no; then
7800
# Fast installation is not necessary
7801
enable_fast_install=needless
7806
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7807
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7808
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7809
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7810
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7811
echo "$as_me:$LINENO: result: yes" >&5
7812
echo "${ECHO_T}yes" >&6
7814
# FIXME - insert some real tests, host_os isn't really good enough
7817
if test -n "$STRIP" ; then
7818
striplib="$STRIP -x"
7819
echo "$as_me:$LINENO: result: yes" >&5
7820
echo "${ECHO_T}yes" >&6
7822
echo "$as_me:$LINENO: result: no" >&5
7823
echo "${ECHO_T}no" >&6
7827
echo "$as_me:$LINENO: result: no" >&5
7828
echo "${ECHO_T}no" >&6
7833
if test "x$enable_dlopen" != xyes; then
7834
enable_dlopen=unknown
7835
enable_dlopen_self=unknown
7836
enable_dlopen_self_static=unknown
7843
lt_cv_dlopen="load_add_on"
7845
lt_cv_dlopen_self=yes
7849
lt_cv_dlopen="LoadLibrary"
7854
lt_cv_dlopen="dlopen"
7859
# if libdl is installed we need to link against it
7860
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7861
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7862
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7863
echo $ECHO_N "(cached) $ECHO_C" >&6
7865
ac_check_lib_save_LIBS=$LIBS
7867
cat >conftest.$ac_ext <<_ACEOF
7870
cat confdefs.h >>conftest.$ac_ext
7871
cat >>conftest.$ac_ext <<_ACEOF
7872
/* end confdefs.h. */
7874
/* Override any gcc2 internal prototype to avoid an error. */
7878
/* We use char because int might match the return type of a gcc2
7879
builtin and then its argument prototype would still apply. */
7889
rm -f conftest.$ac_objext conftest$ac_exeext
7890
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891
(eval $ac_link) 2>conftest.er1
7893
grep -v '^ *+' conftest.er1 >conftest.err
7895
cat conftest.err >&5
7896
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897
(exit $ac_status); } &&
7898
{ ac_try='test -z "$ac_c_werror_flag"
7899
|| test ! -s conftest.err'
7900
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904
(exit $ac_status); }; } &&
7905
{ ac_try='test -s conftest$ac_exeext'
7906
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910
(exit $ac_status); }; }; then
7911
ac_cv_lib_dl_dlopen=yes
7913
echo "$as_me: failed program was:" >&5
7914
sed 's/^/| /' conftest.$ac_ext >&5
7916
ac_cv_lib_dl_dlopen=no
7918
rm -f conftest.err conftest.$ac_objext \
7919
conftest$ac_exeext conftest.$ac_ext
7920
LIBS=$ac_check_lib_save_LIBS
7922
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7923
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7924
if test $ac_cv_lib_dl_dlopen = yes; then
7925
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7930
lt_cv_dlopen_self=yes
7937
echo "$as_me:$LINENO: checking for shl_load" >&5
7938
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7939
if test "${ac_cv_func_shl_load+set}" = set; then
7940
echo $ECHO_N "(cached) $ECHO_C" >&6
7942
cat >conftest.$ac_ext <<_ACEOF
7945
cat confdefs.h >>conftest.$ac_ext
7946
cat >>conftest.$ac_ext <<_ACEOF
7947
/* end confdefs.h. */
7948
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7949
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7950
#define shl_load innocuous_shl_load
7952
/* System header to define __stub macros and hopefully few prototypes,
7953
which can conflict with char shl_load (); below.
7954
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7955
<limits.h> exists even on freestanding compilers. */
7958
# include <limits.h>
7960
# include <assert.h>
7965
/* Override any gcc2 internal prototype to avoid an error. */
7970
/* We use char because int might match the return type of a gcc2
7971
builtin and then its argument prototype would still apply. */
7973
/* The GNU C library defines this for functions which it implements
7974
to always fail with ENOSYS. Some functions are actually named
7975
something starting with __ and the normal name is an alias. */
7976
#if defined (__stub_shl_load) || defined (__stub___shl_load)
7979
char (*f) () = shl_load;
7988
return f != shl_load;
7993
rm -f conftest.$ac_objext conftest$ac_exeext
7994
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7995
(eval $ac_link) 2>conftest.er1
7997
grep -v '^ *+' conftest.er1 >conftest.err
7999
cat conftest.err >&5
8000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001
(exit $ac_status); } &&
8002
{ ac_try='test -z "$ac_c_werror_flag"
8003
|| test ! -s conftest.err'
8004
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008
(exit $ac_status); }; } &&
8009
{ ac_try='test -s conftest$ac_exeext'
8010
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014
(exit $ac_status); }; }; then
8015
ac_cv_func_shl_load=yes
8017
echo "$as_me: failed program was:" >&5
8018
sed 's/^/| /' conftest.$ac_ext >&5
8020
ac_cv_func_shl_load=no
8022
rm -f conftest.err conftest.$ac_objext \
8023
conftest$ac_exeext conftest.$ac_ext
8025
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8026
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8027
if test $ac_cv_func_shl_load = yes; then
8028
lt_cv_dlopen="shl_load"
8030
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8031
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8032
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8033
echo $ECHO_N "(cached) $ECHO_C" >&6
8035
ac_check_lib_save_LIBS=$LIBS
8037
cat >conftest.$ac_ext <<_ACEOF
8040
cat confdefs.h >>conftest.$ac_ext
8041
cat >>conftest.$ac_ext <<_ACEOF
8042
/* end confdefs.h. */
8044
/* Override any gcc2 internal prototype to avoid an error. */
8048
/* We use char because int might match the return type of a gcc2
8049
builtin and then its argument prototype would still apply. */
8059
rm -f conftest.$ac_objext conftest$ac_exeext
8060
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8061
(eval $ac_link) 2>conftest.er1
8063
grep -v '^ *+' conftest.er1 >conftest.err
8065
cat conftest.err >&5
8066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067
(exit $ac_status); } &&
8068
{ ac_try='test -z "$ac_c_werror_flag"
8069
|| test ! -s conftest.err'
8070
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074
(exit $ac_status); }; } &&
8075
{ ac_try='test -s conftest$ac_exeext'
8076
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080
(exit $ac_status); }; }; then
8081
ac_cv_lib_dld_shl_load=yes
8083
echo "$as_me: failed program was:" >&5
8084
sed 's/^/| /' conftest.$ac_ext >&5
8086
ac_cv_lib_dld_shl_load=no
8088
rm -f conftest.err conftest.$ac_objext \
8089
conftest$ac_exeext conftest.$ac_ext
8090
LIBS=$ac_check_lib_save_LIBS
8092
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8093
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8094
if test $ac_cv_lib_dld_shl_load = yes; then
8095
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8097
echo "$as_me:$LINENO: checking for dlopen" >&5
8098
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8099
if test "${ac_cv_func_dlopen+set}" = set; then
8100
echo $ECHO_N "(cached) $ECHO_C" >&6
8102
cat >conftest.$ac_ext <<_ACEOF
8105
cat confdefs.h >>conftest.$ac_ext
8106
cat >>conftest.$ac_ext <<_ACEOF
8107
/* end confdefs.h. */
8108
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8109
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8110
#define dlopen innocuous_dlopen
8112
/* System header to define __stub macros and hopefully few prototypes,
8113
which can conflict with char dlopen (); below.
8114
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8115
<limits.h> exists even on freestanding compilers. */
8118
# include <limits.h>
8120
# include <assert.h>
8125
/* Override any gcc2 internal prototype to avoid an error. */
8130
/* We use char because int might match the return type of a gcc2
8131
builtin and then its argument prototype would still apply. */
8133
/* The GNU C library defines this for functions which it implements
8134
to always fail with ENOSYS. Some functions are actually named
8135
something starting with __ and the normal name is an alias. */
8136
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8139
char (*f) () = dlopen;
8153
rm -f conftest.$ac_objext conftest$ac_exeext
8154
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8155
(eval $ac_link) 2>conftest.er1
8157
grep -v '^ *+' conftest.er1 >conftest.err
8159
cat conftest.err >&5
8160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161
(exit $ac_status); } &&
8162
{ ac_try='test -z "$ac_c_werror_flag"
8163
|| test ! -s conftest.err'
8164
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168
(exit $ac_status); }; } &&
8169
{ ac_try='test -s conftest$ac_exeext'
8170
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174
(exit $ac_status); }; }; then
8175
ac_cv_func_dlopen=yes
8177
echo "$as_me: failed program was:" >&5
8178
sed 's/^/| /' conftest.$ac_ext >&5
8180
ac_cv_func_dlopen=no
8182
rm -f conftest.err conftest.$ac_objext \
8183
conftest$ac_exeext conftest.$ac_ext
8185
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8186
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8187
if test $ac_cv_func_dlopen = yes; then
8188
lt_cv_dlopen="dlopen"
8190
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8191
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8192
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8193
echo $ECHO_N "(cached) $ECHO_C" >&6
8195
ac_check_lib_save_LIBS=$LIBS
8197
cat >conftest.$ac_ext <<_ACEOF
8200
cat confdefs.h >>conftest.$ac_ext
8201
cat >>conftest.$ac_ext <<_ACEOF
8202
/* end confdefs.h. */
8204
/* Override any gcc2 internal prototype to avoid an error. */
8208
/* We use char because int might match the return type of a gcc2
8209
builtin and then its argument prototype would still apply. */
8219
rm -f conftest.$ac_objext conftest$ac_exeext
8220
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8221
(eval $ac_link) 2>conftest.er1
8223
grep -v '^ *+' conftest.er1 >conftest.err
8225
cat conftest.err >&5
8226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227
(exit $ac_status); } &&
8228
{ ac_try='test -z "$ac_c_werror_flag"
8229
|| test ! -s conftest.err'
8230
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234
(exit $ac_status); }; } &&
8235
{ ac_try='test -s conftest$ac_exeext'
8236
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240
(exit $ac_status); }; }; then
8241
ac_cv_lib_dl_dlopen=yes
8243
echo "$as_me: failed program was:" >&5
8244
sed 's/^/| /' conftest.$ac_ext >&5
8246
ac_cv_lib_dl_dlopen=no
8248
rm -f conftest.err conftest.$ac_objext \
8249
conftest$ac_exeext conftest.$ac_ext
8250
LIBS=$ac_check_lib_save_LIBS
8252
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8253
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8254
if test $ac_cv_lib_dl_dlopen = yes; then
8255
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8257
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8258
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8259
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8260
echo $ECHO_N "(cached) $ECHO_C" >&6
8262
ac_check_lib_save_LIBS=$LIBS
8264
cat >conftest.$ac_ext <<_ACEOF
8267
cat confdefs.h >>conftest.$ac_ext
8268
cat >>conftest.$ac_ext <<_ACEOF
8269
/* end confdefs.h. */
8271
/* Override any gcc2 internal prototype to avoid an error. */
8275
/* We use char because int might match the return type of a gcc2
8276
builtin and then its argument prototype would still apply. */
8286
rm -f conftest.$ac_objext conftest$ac_exeext
8287
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8288
(eval $ac_link) 2>conftest.er1
8290
grep -v '^ *+' conftest.er1 >conftest.err
8292
cat conftest.err >&5
8293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294
(exit $ac_status); } &&
8295
{ ac_try='test -z "$ac_c_werror_flag"
8296
|| test ! -s conftest.err'
8297
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301
(exit $ac_status); }; } &&
8302
{ ac_try='test -s conftest$ac_exeext'
8303
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307
(exit $ac_status); }; }; then
8308
ac_cv_lib_svld_dlopen=yes
8310
echo "$as_me: failed program was:" >&5
8311
sed 's/^/| /' conftest.$ac_ext >&5
8313
ac_cv_lib_svld_dlopen=no
8315
rm -f conftest.err conftest.$ac_objext \
8316
conftest$ac_exeext conftest.$ac_ext
8317
LIBS=$ac_check_lib_save_LIBS
8319
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8320
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8321
if test $ac_cv_lib_svld_dlopen = yes; then
8322
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8324
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8325
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8326
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8327
echo $ECHO_N "(cached) $ECHO_C" >&6
8329
ac_check_lib_save_LIBS=$LIBS
8331
cat >conftest.$ac_ext <<_ACEOF
8334
cat confdefs.h >>conftest.$ac_ext
8335
cat >>conftest.$ac_ext <<_ACEOF
8336
/* end confdefs.h. */
8338
/* Override any gcc2 internal prototype to avoid an error. */
8342
/* We use char because int might match the return type of a gcc2
8343
builtin and then its argument prototype would still apply. */
8353
rm -f conftest.$ac_objext conftest$ac_exeext
8354
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8355
(eval $ac_link) 2>conftest.er1
8357
grep -v '^ *+' conftest.er1 >conftest.err
8359
cat conftest.err >&5
8360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361
(exit $ac_status); } &&
8362
{ ac_try='test -z "$ac_c_werror_flag"
8363
|| test ! -s conftest.err'
8364
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368
(exit $ac_status); }; } &&
8369
{ ac_try='test -s conftest$ac_exeext'
8370
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374
(exit $ac_status); }; }; then
8375
ac_cv_lib_dld_dld_link=yes
8377
echo "$as_me: failed program was:" >&5
8378
sed 's/^/| /' conftest.$ac_ext >&5
8380
ac_cv_lib_dld_dld_link=no
8382
rm -f conftest.err conftest.$ac_objext \
8383
conftest$ac_exeext conftest.$ac_ext
8384
LIBS=$ac_check_lib_save_LIBS
8386
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8387
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8388
if test $ac_cv_lib_dld_dld_link = yes; then
8389
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8410
if test "x$lt_cv_dlopen" != xno; then
8416
case $lt_cv_dlopen in
8418
save_CPPFLAGS="$CPPFLAGS"
8419
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8421
save_LDFLAGS="$LDFLAGS"
8422
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8425
LIBS="$lt_cv_dlopen_libs $LIBS"
8427
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8428
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8429
if test "${lt_cv_dlopen_self+set}" = set; then
8430
echo $ECHO_N "(cached) $ECHO_C" >&6
8432
if test "$cross_compiling" = yes; then :
8433
lt_cv_dlopen_self=cross
8435
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8436
lt_status=$lt_dlunknown
8437
cat > conftest.$ac_ext <<EOF
8438
#line 8438 "configure"
8439
#include "confdefs.h"
8448
# define LT_DLGLOBAL RTLD_GLOBAL
8451
# define LT_DLGLOBAL DL_GLOBAL
8453
# define LT_DLGLOBAL 0
8457
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8458
find out it does not work in some platform. */
8459
#ifndef LT_DLLAZY_OR_NOW
8461
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8464
# define LT_DLLAZY_OR_NOW DL_LAZY
8467
# define LT_DLLAZY_OR_NOW RTLD_NOW
8470
# define LT_DLLAZY_OR_NOW DL_NOW
8472
# define LT_DLLAZY_OR_NOW 0
8480
extern "C" void exit (int);
8483
void fnord() { int i=42;}
8486
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8487
int status = $lt_dlunknown;
8491
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8492
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8493
/* dlclose (self); */
8499
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8500
(eval $ac_link) 2>&5
8502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8504
(./conftest; exit; ) 2>/dev/null
8507
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8508
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8509
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8512
# compilation failed
8513
lt_cv_dlopen_self=no
8520
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8521
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8523
if test "x$lt_cv_dlopen_self" = xyes; then
8524
LDFLAGS="$LDFLAGS $link_static_flag"
8525
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8526
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8527
if test "${lt_cv_dlopen_self_static+set}" = set; then
8528
echo $ECHO_N "(cached) $ECHO_C" >&6
8530
if test "$cross_compiling" = yes; then :
8531
lt_cv_dlopen_self_static=cross
8533
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8534
lt_status=$lt_dlunknown
8535
cat > conftest.$ac_ext <<EOF
8536
#line 8536 "configure"
8537
#include "confdefs.h"
8546
# define LT_DLGLOBAL RTLD_GLOBAL
8549
# define LT_DLGLOBAL DL_GLOBAL
8551
# define LT_DLGLOBAL 0
8555
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8556
find out it does not work in some platform. */
8557
#ifndef LT_DLLAZY_OR_NOW
8559
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8562
# define LT_DLLAZY_OR_NOW DL_LAZY
8565
# define LT_DLLAZY_OR_NOW RTLD_NOW
8568
# define LT_DLLAZY_OR_NOW DL_NOW
8570
# define LT_DLLAZY_OR_NOW 0
8578
extern "C" void exit (int);
8581
void fnord() { int i=42;}
8584
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8585
int status = $lt_dlunknown;
8589
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8590
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8591
/* dlclose (self); */
8597
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8598
(eval $ac_link) 2>&5
8600
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8602
(./conftest; exit; ) 2>/dev/null
8605
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8606
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8607
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8610
# compilation failed
8611
lt_cv_dlopen_self_static=no
8618
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8619
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8622
CPPFLAGS="$save_CPPFLAGS"
8623
LDFLAGS="$save_LDFLAGS"
8628
case $lt_cv_dlopen_self in
8629
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8630
*) enable_dlopen_self=unknown ;;
8633
case $lt_cv_dlopen_self_static in
8634
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8635
*) enable_dlopen_self_static=unknown ;;
8640
# Report which librarie types wil actually be built
8641
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8642
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8643
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8644
echo "${ECHO_T}$can_build_shared" >&6
8646
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8647
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8648
test "$can_build_shared" = "no" && enable_shared=no
8650
# On AIX, shared libraries and static libraries use the same namespace, and
8651
# are all built from PIC.
8654
test "$enable_shared" = yes && enable_static=no
8655
if test -n "$RANLIB"; then
8656
archive_cmds="$archive_cmds~\$RANLIB \$lib"
8657
postinstall_cmds='$RANLIB $lib'
8662
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8663
test "$enable_shared" = yes && enable_static=no
8667
echo "$as_me:$LINENO: result: $enable_shared" >&5
8668
echo "${ECHO_T}$enable_shared" >&6
8670
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8671
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8672
# Make sure either enable_shared or enable_static is yes.
8673
test "$enable_shared" = yes || enable_static=yes
8674
echo "$as_me:$LINENO: result: $enable_static" >&5
8675
echo "${ECHO_T}$enable_static" >&6
8677
# The else clause should only fire when bootstrapping the
8678
# libtool distribution, otherwise you forgot to ship ltmain.sh
8679
# with your package, and you will get complaints that there are
8680
# no rules to generate ltmain.sh.
8681
if test -f "$ltmain"; then
8682
# See if we are running on zsh, and set the options which allow our commands through
8683
# without removal of \ escapes.
8684
if test -n "${ZSH_VERSION+set}" ; then
8685
setopt NO_GLOB_SUBST
8687
# Now quote all the things that may contain metacharacters while being
8688
# careful not to overquote the AC_SUBSTed values. We take copies of the
8689
# variables and quote the copies for generation of the libtool script.
8690
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8692
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8693
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8694
deplibs_check_method reload_flag reload_cmds need_locks \
8695
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8696
lt_cv_sys_global_symbol_to_c_name_address \
8697
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8698
old_postinstall_cmds old_postuninstall_cmds \
8702
lt_prog_compiler_wl \
8703
lt_prog_compiler_pic \
8704
lt_prog_compiler_static \
8705
lt_prog_compiler_no_builtin_flag \
8706
export_dynamic_flag_spec \
8707
thread_safe_flag_spec \
8708
whole_archive_flag_spec \
8709
enable_shared_with_static_runtimes \
8711
old_archive_from_new_cmds \
8716
compiler_lib_search_path \
8718
archive_expsym_cmds \
8720
postuninstall_cmds \
8721
old_archive_from_expsyms_cmds \
8722
allow_undefined_flag \
8724
export_symbols_cmds \
8725
hardcode_libdir_flag_spec \
8726
hardcode_libdir_flag_spec_ld \
8727
hardcode_libdir_separator \
8728
hardcode_automatic \
8730
module_expsym_cmds \
8731
lt_cv_prog_compiler_c_o \
8736
old_archive_cmds | \
8737
old_archive_from_new_cmds | \
8739
archive_expsym_cmds | \
8741
module_expsym_cmds | \
8742
old_archive_from_expsyms_cmds | \
8743
export_symbols_cmds | \
8744
extract_expsyms_cmds | reload_cmds | finish_cmds | \
8745
postinstall_cmds | postuninstall_cmds | \
8746
old_postinstall_cmds | old_postuninstall_cmds | \
8747
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8748
# Double-quote double-evaled strings.
8749
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8752
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8758
*'\$0 --fallback-echo"')
8759
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8764
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8766
{ echo "$as_me:$LINENO: creating $ofile" >&5
8767
echo "$as_me: creating $ofile" >&6;}
8769
cat <<__EOF__ >> "$cfgfile"
8772
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8773
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8774
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8776
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8777
# Free Software Foundation, Inc.
8779
# This file is part of GNU Libtool:
8780
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8782
# This program is free software; you can redistribute it and/or modify
8783
# it under the terms of the GNU General Public License as published by
8784
# the Free Software Foundation; either version 2 of the License, or
8785
# (at your option) any later version.
8787
# This program is distributed in the hope that it will be useful, but
8788
# WITHOUT ANY WARRANTY; without even the implied warranty of
8789
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8790
# General Public License for more details.
8792
# You should have received a copy of the GNU General Public License
8793
# along with this program; if not, write to the Free Software
8794
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8796
# As a special exception to the GNU General Public License, if you
8797
# distribute this file as part of a program that contains a
8798
# configuration script generated by Autoconf, you may include it under
8799
# the same distribution terms that you use for the rest of that program.
8801
# A sed program that does not truncate output.
8804
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8805
Xsed="$SED -e s/^X//"
8807
# The HP-UX ksh and POSIX shell print the target directory to stdout
8809
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8811
# The names of the tagged configurations supported by this script.
8814
# ### BEGIN LIBTOOL CONFIG
8816
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8818
# Shell to use when invoking shell scripts.
8821
# Whether or not to build shared libraries.
8822
build_libtool_libs=$enable_shared
8824
# Whether or not to build static libraries.
8825
build_old_libs=$enable_static
8827
# Whether or not to add -lc for building shared libraries.
8828
build_libtool_need_lc=$archive_cmds_need_lc
8830
# Whether or not to disallow shared libs when runtime libs are static
8831
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8833
# Whether or not to optimize for fast installation.
8834
fast_install=$enable_fast_install
8837
host_alias=$host_alias
8842
build_alias=$build_alias
8846
# An echo program that does not interpret backslashes.
8851
AR_FLAGS=$lt_AR_FLAGS
8856
# A language-specific compiler.
8859
# Is the compiler the GNU C compiler?
8865
# The linker used to build libraries.
8868
# Whether we need hard or soft links.
8871
# A BSD-compatible nm program.
8874
# A symbol stripping program
8877
# Used to examine libraries when file_magic_cmd begins "file"
8878
MAGIC_CMD=$MAGIC_CMD
8880
# Used on cygwin: DLL creation program.
8883
# Used on cygwin: object dumper.
8886
# Used on cygwin: assembler.
8889
# The name of the directory that contains temporary libtool files.
8892
# How to create reloadable object files.
8893
reload_flag=$lt_reload_flag
8894
reload_cmds=$lt_reload_cmds
8896
# How to pass a linker flag through the compiler.
8897
wl=$lt_lt_prog_compiler_wl
8899
# Object file suffix (normally "o").
8902
# Old archive suffix (normally "a").
8905
# Shared library suffix (normally ".so").
8906
shrext_cmds='$shrext_cmds'
8908
# Executable file suffix (normally "").
8911
# Additional compiler flags for building library objects.
8912
pic_flag=$lt_lt_prog_compiler_pic
8915
# What is the maximum length of a command?
8916
max_cmd_len=$lt_cv_sys_max_cmd_len
8918
# Does compiler simultaneously support -c and -o options?
8919
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8921
# Must we lock files when doing compilation ?
8922
need_locks=$lt_need_locks
8924
# Do we need the lib prefix for modules?
8925
need_lib_prefix=$need_lib_prefix
8927
# Do we need a version for libraries?
8928
need_version=$need_version
8930
# Whether dlopen is supported.
8931
dlopen_support=$enable_dlopen
8933
# Whether dlopen of programs is supported.
8934
dlopen_self=$enable_dlopen_self
8936
# Whether dlopen of statically linked programs is supported.
8937
dlopen_self_static=$enable_dlopen_self_static
8939
# Compiler flag to prevent dynamic linking.
8940
link_static_flag=$lt_lt_prog_compiler_static
8942
# Compiler flag to turn off builtin functions.
8943
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8945
# Compiler flag to allow reflexive dlopens.
8946
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8948
# Compiler flag to generate shared objects directly from archives.
8949
whole_archive_flag_spec=$lt_whole_archive_flag_spec
8951
# Compiler flag to generate thread-safe objects.
8952
thread_safe_flag_spec=$lt_thread_safe_flag_spec
8954
# Library versioning type.
8955
version_type=$version_type
8957
# Format of library name prefix.
8958
libname_spec=$lt_libname_spec
8960
# List of archive names. First name is the real one, the rest are links.
8961
# The last name is the one that the linker finds with -lNAME.
8962
library_names_spec=$lt_library_names_spec
8964
# The coded name of the library, if different from the real name.
8965
soname_spec=$lt_soname_spec
8967
# Commands used to build and install an old-style archive.
8969
old_archive_cmds=$lt_old_archive_cmds
8970
old_postinstall_cmds=$lt_old_postinstall_cmds
8971
old_postuninstall_cmds=$lt_old_postuninstall_cmds
8973
# Create an old-style archive from a shared archive.
8974
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8976
# Create a temporary old-style archive to link instead of a shared archive.
8977
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8979
# Commands used to build and install a shared archive.
8980
archive_cmds=$lt_archive_cmds
8981
archive_expsym_cmds=$lt_archive_expsym_cmds
8982
postinstall_cmds=$lt_postinstall_cmds
8983
postuninstall_cmds=$lt_postuninstall_cmds
8985
# Commands used to build a loadable module (assumed same as above if empty)
8986
module_cmds=$lt_module_cmds
8987
module_expsym_cmds=$lt_module_expsym_cmds
8989
# Commands to strip libraries.
8990
old_striplib=$lt_old_striplib
8991
striplib=$lt_striplib
8993
# Dependencies to place before the objects being linked to create a
8995
predep_objects=$lt_predep_objects
8997
# Dependencies to place after the objects being linked to create a
8999
postdep_objects=$lt_postdep_objects
9001
# Dependencies to place before the objects being linked to create a
9005
# Dependencies to place after the objects being linked to create a
9007
postdeps=$lt_postdeps
9009
# The library search path used internally by the compiler when linking
9011
compiler_lib_search_path=$lt_compiler_lib_search_path
9013
# Method to check whether dependent libraries are shared objects.
9014
deplibs_check_method=$lt_deplibs_check_method
9016
# Command to use when deplibs_check_method == file_magic.
9017
file_magic_cmd=$lt_file_magic_cmd
9019
# Flag that allows shared libraries with undefined symbols to be built.
9020
allow_undefined_flag=$lt_allow_undefined_flag
9022
# Flag that forces no undefined symbols.
9023
no_undefined_flag=$lt_no_undefined_flag
9025
# Commands used to finish a libtool library installation in a directory.
9026
finish_cmds=$lt_finish_cmds
9028
# Same as above, but a single script fragment to be evaled but not shown.
9029
finish_eval=$lt_finish_eval
9031
# Take the output of nm and produce a listing of raw symbols and C names.
9032
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9034
# Transform the output of nm in a proper C declaration
9035
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9037
# Transform the output of nm in a C name address pair
9038
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9040
# This is the shared library runtime path variable.
9041
runpath_var=$runpath_var
9043
# This is the shared library path variable.
9044
shlibpath_var=$shlibpath_var
9046
# Is shlibpath searched before the hard-coded library search path?
9047
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9049
# How to hardcode a shared library path into an executable.
9050
hardcode_action=$hardcode_action
9052
# Whether we should hardcode library paths into libraries.
9053
hardcode_into_libs=$hardcode_into_libs
9055
# Flag to hardcode \$libdir into a binary during linking.
9056
# This must work even if \$libdir does not exist.
9057
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9059
# If ld is used when linking, flag to hardcode \$libdir into
9060
# a binary during linking. This must work even if \$libdir does
9062
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9064
# Whether we need a single -rpath flag with a separated argument.
9065
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9067
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9069
hardcode_direct=$hardcode_direct
9071
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9073
hardcode_minus_L=$hardcode_minus_L
9075
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9076
# the resulting binary.
9077
hardcode_shlibpath_var=$hardcode_shlibpath_var
9079
# Set to yes if building a shared library automatically hardcodes DIR into the library
9080
# and all subsequent libraries and executables linked against it.
9081
hardcode_automatic=$hardcode_automatic
9083
# Variables whose values should be saved in libtool wrapper scripts and
9084
# restored at relink time.
9085
variables_saved_for_relink="$variables_saved_for_relink"
9087
# Whether libtool must link a program against all its dependency libraries.
9088
link_all_deplibs=$link_all_deplibs
9090
# Compile-time system search path for libraries
9091
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9093
# Run-time system search path for libraries
9094
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9096
# Fix the shell variable \$srcfile for the compiler.
9097
fix_srcfile_path="$fix_srcfile_path"
9099
# Set to yes if exported symbols are required.
9100
always_export_symbols=$always_export_symbols
9102
# The commands to list exported symbols.
9103
export_symbols_cmds=$lt_export_symbols_cmds
9105
# The commands to extract the exported symbol list from a shared archive.
9106
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9108
# Symbols that should not be listed in the preloaded symbols.
9109
exclude_expsyms=$lt_exclude_expsyms
9111
# Symbols that must always be exported.
9112
include_expsyms=$lt_include_expsyms
9114
# ### END LIBTOOL CONFIG
9121
cat <<\EOF >> "$cfgfile"
9123
# AIX sometimes has problems with the GCC collect2 program. For some
9124
# reason, if we set the COLLECT_NAMES environment variable, the problems
9125
# vanish in a puff of smoke.
9126
if test "X${COLLECT_NAMES+set}" != Xset; then
9128
export COLLECT_NAMES
9134
# We use sed instead of cat because bash on DJGPP gets confused if
9135
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9136
# text mode, it properly converts lines to CR/LF. This bash problem
9137
# is reportedly fixed, but why not run on old versions too?
9138
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9140
mv -f "$cfgfile" "$ofile" || \
9141
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9145
# If there is no Makefile yet, we rely on a make rule to execute
9146
# `config.status --recheck' to rerun these tests and create the
9147
# libtool script then.
9148
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9149
if test -f "$ltmain_in"; then
9150
test -f Makefile && make "$ltmain"
9156
ac_cpp='$CPP $CPPFLAGS'
9157
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9158
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9159
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9164
# Check whether --with-tags or --without-tags was given.
9165
if test "${with_tags+set}" = set; then
9166
withval="$with_tags"
9170
if test -f "$ltmain" && test -n "$tagnames"; then
9171
if test ! -f "${ofile}"; then
9172
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9173
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9176
if test -z "$LTCC"; then
9177
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9178
if test -z "$LTCC"; then
9179
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9180
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9182
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9183
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9187
# Extract list of available tagged configurations in $ofile.
9188
# Note that this assumes the entire list is on one line.
9189
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9191
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9192
for tagname in $tagnames; do
9194
# Check whether tagname contains only valid characters
9195
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9197
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9198
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9199
{ (exit 1); exit 1; }; }
9203
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9205
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9206
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9207
{ (exit 1); exit 1; }; }
9210
# Update the list of available tags.
9211
if test -n "$tagname"; then
9212
echo appending configuration tag \"$tagname\" to $ofile
9216
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9217
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9218
(test "X$CXX" != "Xg++"))) ; then
9220
ac_cpp='$CXXCPP $CPPFLAGS'
9221
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9222
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9223
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9228
archive_cmds_need_lc_CXX=no
9229
allow_undefined_flag_CXX=
9230
always_export_symbols_CXX=no
9231
archive_expsym_cmds_CXX=
9232
export_dynamic_flag_spec_CXX=
9233
hardcode_direct_CXX=no
9234
hardcode_libdir_flag_spec_CXX=
9235
hardcode_libdir_flag_spec_ld_CXX=
9236
hardcode_libdir_separator_CXX=
9237
hardcode_minus_L_CXX=no
9238
hardcode_automatic_CXX=no
9240
module_expsym_cmds_CXX=
9241
link_all_deplibs_CXX=unknown
9242
old_archive_cmds_CXX=$old_archive_cmds
9243
no_undefined_flag_CXX=
9244
whole_archive_flag_spec_CXX=
9245
enable_shared_with_static_runtimes_CXX=no
9247
# Dependencies to place before and after the object being linked:
9249
postdep_objects_CXX=
9252
compiler_lib_search_path_CXX=
9254
# Source file extension for C++ test sources.
9257
# Object file extension for compiled C++ test sources.
9261
# Code to be used in simple compile tests
9262
lt_simple_compile_test_code="int some_variable = 0;\n"
9264
# Code to be used in simple link tests
9265
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9267
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9269
# If no C compiler was specified, use CC.
9272
# Allow CC to be a program name with arguments.
9276
# Allow CC to be a program name with arguments.
9281
lt_save_with_gnu_ld=$with_gnu_ld
9282
lt_save_path_LD=$lt_cv_path_LD
9283
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9284
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9286
unset lt_cv_prog_gnu_ld
9288
if test -n "${lt_cv_path_LDCXX+set}"; then
9289
lt_cv_path_LD=$lt_cv_path_LDCXX
9293
test -z "${LDCXX+set}" || LD=$LDCXX
9297
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9299
# We don't want -fno-exception wen compiling C++ code, so set the
9300
# no_builtin_flag separately
9301
if test "$GXX" = yes; then
9302
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9304
lt_prog_compiler_no_builtin_flag_CXX=
9307
if test "$GXX" = yes; then
9308
# Set up default GNU C++ configuration
9311
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9312
if test "${with_gnu_ld+set}" = set; then
9313
withval="$with_gnu_ld"
9314
test "$withval" = no || with_gnu_ld=yes
9319
if test "$GCC" = yes; then
9320
# Check if gcc -print-prog-name=ld gives a path.
9321
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9322
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9325
# gcc leaves a trailing carriage return which upsets mingw
9326
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9328
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9331
# Accept absolute paths.
9333
re_direlt='/[^/][^/]*/\.\./'
9334
# Canonicalize the pathname of ld
9335
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9336
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9337
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9339
test -z "$LD" && LD="$ac_prog"
9342
# If it fails, then pretend we aren't using GCC.
9346
# If it is relative, then search for the first ld in PATH.
9350
elif test "$with_gnu_ld" = yes; then
9351
echo "$as_me:$LINENO: checking for GNU ld" >&5
9352
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9354
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9355
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9357
if test "${lt_cv_path_LD+set}" = set; then
9358
echo $ECHO_N "(cached) $ECHO_C" >&6
9360
if test -z "$LD"; then
9361
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9362
for ac_dir in $PATH; do
9364
test -z "$ac_dir" && ac_dir=.
9365
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9366
lt_cv_path_LD="$ac_dir/$ac_prog"
9367
# Check to see if the program is GNU ld. I'd rather use --version,
9368
# but apparently some GNU ld's only accept -v.
9369
# Break only if it was the GNU/non-GNU ld that we prefer.
9370
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9371
*GNU* | *'with BFD'*)
9372
test "$with_gnu_ld" != no && break
9375
test "$with_gnu_ld" != yes && break
9382
lt_cv_path_LD="$LD" # Let the user override the test with a path.
9387
if test -n "$LD"; then
9388
echo "$as_me:$LINENO: result: $LD" >&5
9389
echo "${ECHO_T}$LD" >&6
9391
echo "$as_me:$LINENO: result: no" >&5
9392
echo "${ECHO_T}no" >&6
9394
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9395
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9396
{ (exit 1); exit 1; }; }
9397
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9398
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9399
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9400
echo $ECHO_N "(cached) $ECHO_C" >&6
9402
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
9403
case `$LD -v 2>&1 </dev/null` in
9404
*GNU* | *'with BFD'*)
9405
lt_cv_prog_gnu_ld=yes
9408
lt_cv_prog_gnu_ld=no
9412
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9413
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9414
with_gnu_ld=$lt_cv_prog_gnu_ld
9418
# Check if GNU C++ uses GNU ld as the underlying linker, since the
9419
# archiving commands below assume that GNU ld is being used.
9420
if test "$with_gnu_ld" = yes; then
9421
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422
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'
9424
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9425
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9427
# If archive_cmds runs LD, not CC, wlarc should be empty
9428
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9429
# investigate it a little bit more. (MM)
9432
# ancient GNU ld didn't support --whole-archive et. al.
9433
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9434
grep 'no-whole-archive' > /dev/null; then
9435
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9437
whole_archive_flag_spec_CXX=
9443
# A generic and very simple default shared library creation
9444
# command for GNU C++ for the case where it uses the native
9445
# linker, instead of GNU ld. If possible, this setting should
9446
# overridden to take advantage of the native linker features on
9447
# the platform it is being used on.
9448
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9451
# Commands to make compiler produce verbose output that lists
9452
# what "hidden" libraries, object files and flags are used when
9453
# linking a shared library.
9454
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9462
# PORTME: fill in a description of your system's C++ link characteristics
9463
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9464
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9468
# FIXME: insert proper C++ library support
9472
if test "$host_cpu" = ia64; then
9473
# On IA64, the linker does run time linking by default, so we don't
9474
# have to do anything special.
9475
aix_use_runtimelinking=no
9476
exp_sym_flag='-Bexport'
9479
aix_use_runtimelinking=no
9481
# Test if we are trying to use run time linking or normal
9482
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9483
# need to do runtime linking.
9484
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9485
for ld_flag in $LDFLAGS; do
9488
aix_use_runtimelinking=yes
9495
exp_sym_flag='-bexport'
9496
no_entry_flag='-bnoentry'
9499
# When large executables or shared objects are built, AIX ld can
9500
# have problems creating the table of contents. If linking a library
9501
# or program results in "error TOC overflow" add -mminimal-toc to
9502
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9503
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9506
hardcode_direct_CXX=yes
9507
hardcode_libdir_separator_CXX=':'
9508
link_all_deplibs_CXX=yes
9510
if test "$GXX" = yes; then
9511
case $host_os in aix4.[012]|aix4.[012].*)
9512
# We only want to do this on AIX 4.2 and lower, the check
9513
# below for broken collect2 doesn't work under 4.3+
9514
collect2name=`${CC} -print-prog-name=collect2`
9515
if test -f "$collect2name" && \
9516
strings "$collect2name" | grep resolve_lib_name >/dev/null
9518
# We have reworked collect2
9519
hardcode_direct_CXX=yes
9521
# We have old collect2
9522
hardcode_direct_CXX=unsupported
9523
# It fails to find uninstalled libraries when the uninstalled
9524
# path is not listed in the libpath. Setting hardcode_minus_L
9525
# to unsupported forces relinking
9526
hardcode_minus_L_CXX=yes
9527
hardcode_libdir_flag_spec_CXX='-L$libdir'
9528
hardcode_libdir_separator_CXX=
9531
shared_flag='-shared'
9532
if test "$aix_use_runtimelinking" = yes; then
9533
shared_flag="$shared_flag "'${wl}-G'
9537
if test "$host_cpu" = ia64; then
9538
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9539
# chokes on -Wl,-G. The following line is correct:
9542
if test "$aix_use_runtimelinking" = yes; then
9543
shared_flag='${wl}-G'
9545
shared_flag='${wl}-bM:SRE'
9550
# It seems that -bexpall does not export symbols beginning with
9551
# underscore (_), so it is better to generate a list of symbols to export.
9552
always_export_symbols_CXX=yes
9553
if test "$aix_use_runtimelinking" = yes; then
9554
# Warning - without using the other runtime loading flags (-brtl),
9555
# -berok will link without error, but may produce a broken library.
9556
allow_undefined_flag_CXX='-berok'
9557
# Determine the default libpath from the value encoded in an empty executable.
9558
cat >conftest.$ac_ext <<_ACEOF
9561
cat confdefs.h >>conftest.$ac_ext
9562
cat >>conftest.$ac_ext <<_ACEOF
9563
/* end confdefs.h. */
9573
rm -f conftest.$ac_objext conftest$ac_exeext
9574
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575
(eval $ac_link) 2>conftest.er1
9577
grep -v '^ *+' conftest.er1 >conftest.err
9579
cat conftest.err >&5
9580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581
(exit $ac_status); } &&
9582
{ ac_try='test -z "$ac_cxx_werror_flag"
9583
|| test ! -s conftest.err'
9584
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588
(exit $ac_status); }; } &&
9589
{ ac_try='test -s conftest$ac_exeext'
9590
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594
(exit $ac_status); }; }; then
9596
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9598
# Check for a 64-bit object if we didn't find anything.
9599
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9602
echo "$as_me: failed program was:" >&5
9603
sed 's/^/| /' conftest.$ac_ext >&5
9606
rm -f conftest.err conftest.$ac_objext \
9607
conftest$ac_exeext conftest.$ac_ext
9608
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9610
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9612
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9614
if test "$host_cpu" = ia64; then
9615
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9616
allow_undefined_flag_CXX="-z nodefs"
9617
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9619
# Determine the default libpath from the value encoded in an empty executable.
9620
cat >conftest.$ac_ext <<_ACEOF
9623
cat confdefs.h >>conftest.$ac_ext
9624
cat >>conftest.$ac_ext <<_ACEOF
9625
/* end confdefs.h. */
9635
rm -f conftest.$ac_objext conftest$ac_exeext
9636
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9637
(eval $ac_link) 2>conftest.er1
9639
grep -v '^ *+' conftest.er1 >conftest.err
9641
cat conftest.err >&5
9642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643
(exit $ac_status); } &&
9644
{ ac_try='test -z "$ac_cxx_werror_flag"
9645
|| test ! -s conftest.err'
9646
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650
(exit $ac_status); }; } &&
9651
{ ac_try='test -s conftest$ac_exeext'
9652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656
(exit $ac_status); }; }; then
9658
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9660
# Check for a 64-bit object if we didn't find anything.
9661
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9664
echo "$as_me: failed program was:" >&5
9665
sed 's/^/| /' conftest.$ac_ext >&5
9668
rm -f conftest.err conftest.$ac_objext \
9669
conftest$ac_exeext conftest.$ac_ext
9670
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9672
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9673
# Warning - without using the other run time loading flags,
9674
# -berok will link without error, but may produce a broken library.
9675
no_undefined_flag_CXX=' ${wl}-bernotok'
9676
allow_undefined_flag_CXX=' ${wl}-berok'
9677
# -bexpall does not export symbols beginning with underscore (_)
9678
always_export_symbols_CXX=yes
9679
# Exported symbols can be pulled into shared objects from archives
9680
whole_archive_flag_spec_CXX=' '
9681
archive_cmds_need_lc_CXX=yes
9682
# This is similar to how AIX traditionally builds it's shared libraries.
9683
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9688
case $cc_basename in
9690
# FIXME: insert proper C++ library support
9697
cygwin* | mingw* | pw32*)
9698
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9699
# as there is no search path for DLLs.
9700
hardcode_libdir_flag_spec_CXX='-L$libdir'
9701
allow_undefined_flag_CXX=unsupported
9702
always_export_symbols_CXX=no
9703
enable_shared_with_static_runtimes_CXX=yes
9705
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9706
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9707
# If the export-symbols file already is a .def file (1st line
9708
# is EXPORTS), use it as is; otherwise, prepend...
9709
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9710
cp $export_symbols $output_objdir/$soname.def;
9712
echo EXPORTS > $output_objdir/$soname.def;
9713
cat $export_symbols >> $output_objdir/$soname.def;
9715
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9720
darwin* | rhapsody*)
9722
rhapsody* | darwin1.[012])
9723
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9726
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9727
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9729
case ${MACOSX_DEPLOYMENT_TARGET} in
9731
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9734
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9740
archive_cmds_need_lc_CXX=no
9741
hardcode_direct_CXX=no
9742
hardcode_automatic_CXX=yes
9743
hardcode_shlibpath_var_CXX=unsupported
9744
whole_archive_flag_spec_CXX=''
9745
link_all_deplibs_CXX=yes
9747
if test "$GXX" = yes ; then
9748
lt_int_apple_cc_single_mod=no
9749
output_verbose_link_cmd='echo'
9750
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9751
lt_int_apple_cc_single_mod=yes
9753
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9754
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9756
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'
9758
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9759
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9760
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9761
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9763
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9765
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}'
9767
case "$cc_basename" in
9769
output_verbose_link_cmd='echo'
9770
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9771
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9772
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9773
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9774
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}'
9784
case $cc_basename in
9786
# FIXME: insert proper C++ library support
9790
# Green Hills C++ Compiler
9791
# FIXME: insert proper C++ library support
9795
# FIXME: insert proper C++ library support
9801
# C++ shared libraries reported to be fairly broken before switch to ELF
9805
archive_cmds_need_lc_CXX=no
9807
freebsd* | kfreebsd*-gnu | dragonfly*)
9808
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9815
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9816
hardcode_libdir_separator_CXX=:
9817
export_dynamic_flag_spec_CXX='${wl}-E'
9818
hardcode_direct_CXX=yes
9819
hardcode_minus_L_CXX=yes # Not in the search PATH,
9820
# but as the default
9821
# location of the library.
9823
case $cc_basename in
9825
# FIXME: insert proper C++ library support
9829
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'
9830
# Commands to make compiler produce verbose output that lists
9831
# what "hidden" libraries, object files and flags are used when
9832
# linking a shared library.
9834
# There doesn't appear to be a way to prevent this compiler from
9835
# explicitly linking system object files so we need to strip them
9836
# from the output so that they don't get included in the library
9838
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'
9841
if test "$GXX" = yes; then
9842
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'
9844
# FIXME: insert proper C++ library support
9851
if test $with_gnu_ld = no; then
9854
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9855
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9856
hardcode_libdir_separator_CXX=:
9859
hardcode_libdir_flag_spec_CXX='-L$libdir'
9862
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9863
hardcode_libdir_separator_CXX=:
9864
export_dynamic_flag_spec_CXX='${wl}-E'
9870
hardcode_direct_CXX=no
9871
hardcode_shlibpath_var_CXX=no
9874
hardcode_direct_CXX=no
9875
hardcode_shlibpath_var_CXX=no
9876
hardcode_minus_L_CXX=yes # Not in the search PATH,
9877
# but as the default
9878
# location of the library.
9881
hardcode_direct_CXX=yes
9882
hardcode_minus_L_CXX=yes # Not in the search PATH,
9883
# but as the default
9884
# location of the library.
9888
case $cc_basename in
9890
# FIXME: insert proper C++ library support
9896
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9899
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9902
# Commands to make compiler produce verbose output that lists
9903
# what "hidden" libraries, object files and flags are used when
9904
# linking a shared library.
9906
# There doesn't appear to be a way to prevent this compiler from
9907
# explicitly linking system object files so we need to strip them
9908
# from the output so that they don't get included in the library
9910
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'
9913
if test "$GXX" = yes; then
9914
if test $with_gnu_ld = no; then
9917
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9920
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'
9925
# FIXME: insert proper C++ library support
9932
case $cc_basename in
9935
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 ${objdir}/so_locations -o $lib'
9937
# Archives containing C++ object files must be created using
9938
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
9939
# necessary to make sure instantiated templates are included
9941
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9944
if test "$GXX" = yes; then
9945
if test "$with_gnu_ld" = no; then
9946
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}${objdir}/so_locations -o $lib'
9948
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'
9951
link_all_deplibs_CXX=yes
9954
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9955
hardcode_libdir_separator_CXX=:
9958
case $cc_basename in
9960
# Kuck and Associates, Inc. (KAI) C++ Compiler
9962
# KCC will only create a shared library if the output file
9963
# ends with ".so" (or ".sl" for HP-UX), so rename the library
9964
# to its proper name (with version) after linking.
9965
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'
9966
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'
9967
# Commands to make compiler produce verbose output that lists
9968
# what "hidden" libraries, object files and flags are used when
9969
# linking a shared library.
9971
# There doesn't appear to be a way to prevent this compiler from
9972
# explicitly linking system object files so we need to strip them
9973
# from the output so that they don't get included in the library
9975
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'
9977
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9978
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9980
# Archives containing C++ object files must be created using
9981
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
9982
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9987
# version 8.0 and above of icpc choke on multiply defined symbols
9988
# if we add $predep_objects and $postdep_objects, however 7.1 and
9989
# earlier do not add the objects themselves.
9990
case `$CC -V 2>&1` in
9992
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9993
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'
9995
*) # Version 8.0 or newer
9998
ia64*) tmp_idyn=' -i_dynamic';;
10000
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10001
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'
10004
archive_cmds_need_lc_CXX=no
10005
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10006
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10007
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10010
# Portland Group C++ compiler
10011
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10012
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'
10014
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10015
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10019
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10020
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'
10022
runpath_var=LD_RUN_PATH
10023
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10024
hardcode_libdir_separator_CXX=:
10026
# Commands to make compiler produce verbose output that lists
10027
# what "hidden" libraries, object files and flags are used when
10028
# linking a shared library.
10030
# There doesn't appear to be a way to prevent this compiler from
10031
# explicitly linking system object files so we need to strip them
10032
# from the output so that they don't get included in the library
10034
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'
10039
# FIXME: insert proper C++ library support
10043
# FIXME: insert proper C++ library support
10047
case $cc_basename in
10049
# FIXME: insert proper C++ library support
10053
# FIXME: insert proper C++ library support
10059
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10060
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10062
hardcode_libdir_flag_spec_CXX='-R$libdir'
10063
hardcode_direct_CXX=yes
10064
hardcode_shlibpath_var_CXX=no
10066
# Workaround some broken pre-1.5 toolchains
10067
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10070
# C++ shared libraries are fairly broken
10074
hardcode_direct_CXX=yes
10075
hardcode_shlibpath_var_CXX=no
10076
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10077
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10078
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10079
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10080
export_dynamic_flag_spec_CXX='${wl}-E'
10081
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10083
output_verbose_link_cmd='echo'
10086
case $cc_basename in
10088
# Kuck and Associates, Inc. (KAI) C++ Compiler
10090
# KCC will only create a shared library if the output file
10091
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10092
# to its proper name (with version) after linking.
10093
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'
10095
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10096
hardcode_libdir_separator_CXX=:
10098
# Archives containing C++ object files must be created using
10099
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10100
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10104
# Rational C++ 2.4.1
10105
# FIXME: insert proper C++ library support
10109
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10110
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 ${objdir}/so_locations -o $lib'
10112
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10113
hardcode_libdir_separator_CXX=:
10115
# Commands to make compiler produce verbose output that lists
10116
# what "hidden" libraries, object files and flags are used when
10117
# linking a shared library.
10119
# There doesn't appear to be a way to prevent this compiler from
10120
# explicitly linking system object files so we need to strip them
10121
# from the output so that they don't get included in the library
10123
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'
10126
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10127
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10128
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}${objdir}/so_locations -o $lib'
10130
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10131
hardcode_libdir_separator_CXX=:
10133
# Commands to make compiler produce verbose output that lists
10134
# what "hidden" libraries, object files and flags are used when
10135
# linking a shared library.
10136
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10139
# FIXME: insert proper C++ library support
10146
case $cc_basename in
10148
# Kuck and Associates, Inc. (KAI) C++ Compiler
10150
# KCC will only create a shared library if the output file
10151
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10152
# to its proper name (with version) after linking.
10153
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'
10155
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10156
hardcode_libdir_separator_CXX=:
10158
# Archives containing C++ object files must be created using
10159
# the KAI C++ compiler.
10160
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10163
# Rational C++ 2.4.1
10164
# FIXME: insert proper C++ library support
10168
allow_undefined_flag_CXX=' -expect_unresolved \*'
10169
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 ${objdir}/so_locations -o $lib'
10170
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10171
echo "-hidden">> $lib.exp~
10172
$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 $objdir/so_locations -o $lib~
10175
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10176
hardcode_libdir_separator_CXX=:
10178
# Commands to make compiler produce verbose output that lists
10179
# what "hidden" libraries, object files and flags are used when
10180
# linking a shared library.
10182
# There doesn't appear to be a way to prevent this compiler from
10183
# explicitly linking system object files so we need to strip them
10184
# from the output so that they don't get included in the library
10186
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'
10189
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10190
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10191
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}${objdir}/so_locations -o $lib'
10193
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10194
hardcode_libdir_separator_CXX=:
10196
# Commands to make compiler produce verbose output that lists
10197
# what "hidden" libraries, object files and flags are used when
10198
# linking a shared library.
10199
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10202
# FIXME: insert proper C++ library support
10209
# FIXME: insert proper C++ library support
10213
archive_cmds_need_lc_CXX=no
10214
case $cc_basename in
10216
# FIXME: insert proper C++ library support
10220
# FIXME: insert proper C++ library support
10226
case $cc_basename in
10229
# FIXME: insert proper C++ library support
10234
# FIXME: insert proper C++ library support
10238
# FIXME: insert proper C++ library support
10244
case $cc_basename in
10246
# Sun C++ 4.2, 5.x and Centerline C++
10247
no_undefined_flag_CXX=' -zdefs'
10248
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10249
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10250
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10252
hardcode_libdir_flag_spec_CXX='-R$libdir'
10253
hardcode_shlibpath_var_CXX=no
10255
solaris2.[0-5] | solaris2.[0-5].*) ;;
10257
# The C++ compiler is used as linker so we must use $wl
10258
# flag to pass the commands to the underlying system
10260
# Supported since Solaris 2.6 (maybe 2.5.1?)
10261
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10264
link_all_deplibs_CXX=yes
10266
# Commands to make compiler produce verbose output that lists
10267
# what "hidden" libraries, object files and flags are used when
10268
# linking a shared library.
10270
# There doesn't appear to be a way to prevent this compiler from
10271
# explicitly linking system object files so we need to strip them
10272
# from the output so that they don't get included in the library
10274
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10276
# Archives containing C++ object files must be created using
10277
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10278
# necessary to make sure instantiated templates are included
10280
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10283
# Green Hills C++ Compiler
10284
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10286
# The C++ compiler must be used to create the archive.
10287
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10290
# GNU C++ compiler with Solaris linker
10291
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10292
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10293
if $CC --version | grep -v '^2\.7' > /dev/null; then
10294
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10295
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10296
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10298
# Commands to make compiler produce verbose output that lists
10299
# what "hidden" libraries, object files and flags are used when
10300
# linking a shared library.
10301
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10303
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10305
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10306
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10307
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10309
# Commands to make compiler produce verbose output that lists
10310
# what "hidden" libraries, object files and flags are used when
10311
# linking a shared library.
10312
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10315
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10320
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10321
archive_cmds_need_lc_CXX=no
10324
case $cc_basename in
10326
# NonStop-UX NCC 3.20
10327
# FIXME: insert proper C++ library support
10331
# FIXME: insert proper C++ library support
10337
# FIXME: insert proper C++ library support
10341
# FIXME: insert proper C++ library support
10345
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10346
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10347
test "$ld_shlibs_CXX" = no && can_build_shared=no
10353
## There is no encapsulation within the following macros, do not change
10354
## the running order or otherwise move them around unless you know exactly
10355
## what you are doing...
10357
cat > conftest.$ac_ext <<EOF
10361
Foo (void) { a = 0; }
10367
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10368
(eval $ac_compile) 2>&5
10370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371
(exit $ac_status); }; then
10372
# Parse the compiler output and extract the necessary
10373
# objects, libraries and library flags.
10375
# Sentinel used to keep track of whether or not we are before
10376
# the conftest object file.
10377
pre_test_object_deps_done=no
10379
# The `*' in the case matches for architectures that use `case' in
10380
# $output_verbose_cmd can trigger glob expansion during the loop
10381
# eval without this substitution.
10382
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10384
for p in `eval $output_verbose_link_cmd`; do
10388
# Some compilers place space between "-{L,R}" and the path.
10389
# Remove the space.
10390
if test $p = "-L" \
10391
|| test $p = "-R"; then
10398
if test "$pre_test_object_deps_done" = no; then
10401
# Internal compiler library paths should come after those
10402
# provided the user. The postdeps already come after the
10403
# user supplied libs so there is no need to process them.
10404
if test -z "$compiler_lib_search_path_CXX"; then
10405
compiler_lib_search_path_CXX="${prev}${p}"
10407
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10410
# The "-l" case would never come before the object being
10411
# linked, so don't bother handling this case.
10414
if test -z "$postdeps_CXX"; then
10415
postdeps_CXX="${prev}${p}"
10417
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10423
# This assumes that the test object file only shows up
10424
# once in the compiler output.
10425
if test "$p" = "conftest.$objext"; then
10426
pre_test_object_deps_done=yes
10430
if test "$pre_test_object_deps_done" = no; then
10431
if test -z "$predep_objects_CXX"; then
10432
predep_objects_CXX="$p"
10434
predep_objects_CXX="$predep_objects_CXX $p"
10437
if test -z "$postdep_objects_CXX"; then
10438
postdep_objects_CXX="$p"
10440
postdep_objects_CXX="$postdep_objects_CXX $p"
10445
*) ;; # Ignore the rest.
10453
echo "libtool.m4: error: problem compiling CXX test program"
10456
$rm -f confest.$objext
10458
case " $postdeps_CXX " in
10459
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10462
lt_prog_compiler_wl_CXX=
10463
lt_prog_compiler_pic_CXX=
10464
lt_prog_compiler_static_CXX=
10466
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10467
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10469
# C++ specific cases for pic, static, wl, etc.
10470
if test "$GXX" = yes; then
10471
lt_prog_compiler_wl_CXX='-Wl,'
10472
lt_prog_compiler_static_CXX='-static'
10476
# All AIX code is PIC.
10477
if test "$host_cpu" = ia64; then
10478
# AIX 5 now supports IA64 processor
10479
lt_prog_compiler_static_CXX='-Bstatic'
10483
# FIXME: we need at least 68020 code to build shared libraries, but
10484
# adding the `-m68020' flag to GCC prevents building anything better,
10486
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10488
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10489
# PIC is the default for these OSes.
10491
mingw* | os2* | pw32*)
10492
# This hack is so that the source file can tell whether it is being
10493
# built for inclusion in a dll (and should export symbols for example).
10494
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10496
darwin* | rhapsody*)
10497
# PIC is the default on this platform
10498
# Common symbols not allowed in MH_DYLIB files
10499
lt_prog_compiler_pic_CXX='-fno-common'
10502
# DJGPP does not support shared libraries at all
10503
lt_prog_compiler_pic_CXX=
10506
if test -d /usr/nec; then
10507
lt_prog_compiler_pic_CXX=-Kconform_pic
10511
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10512
# not for PA HP-UX.
10513
case "$host_cpu" in
10517
lt_prog_compiler_pic_CXX='-fPIC'
10522
lt_prog_compiler_pic_CXX='-fPIC'
10528
# All AIX code is PIC.
10529
if test "$host_cpu" = ia64; then
10530
# AIX 5 now supports IA64 processor
10531
lt_prog_compiler_static_CXX='-Bstatic'
10533
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10537
case $cc_basename in
10539
# Green Hills C++ Compiler
10540
# _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"
10545
# PIC is the default on this platform
10546
# Common symbols not allowed in MH_DYLIB files
10547
case "$cc_basename" in
10549
lt_prog_compiler_pic_CXX='-qnocommon'
10550
lt_prog_compiler_wl_CXX='-Wl,'
10555
case $cc_basename in
10557
lt_prog_compiler_pic_CXX='-KPIC'
10560
# Green Hills C++ Compiler
10561
lt_prog_compiler_pic_CXX='-pic'
10567
freebsd* | kfreebsd*-gnu | dragonfly*)
10568
# FreeBSD uses GNU C++
10570
hpux9* | hpux10* | hpux11*)
10571
case $cc_basename in
10573
lt_prog_compiler_wl_CXX='-Wl,'
10574
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10575
if test "$host_cpu" != ia64; then
10576
lt_prog_compiler_pic_CXX='+Z'
10580
lt_prog_compiler_wl_CXX='-Wl,'
10581
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10582
case "$host_cpu" in
10587
lt_prog_compiler_pic_CXX='+Z'
10595
irix5* | irix6* | nonstopux*)
10596
case $cc_basename in
10598
lt_prog_compiler_wl_CXX='-Wl,'
10599
lt_prog_compiler_static_CXX='-non_shared'
10600
# CC pic flag -KPIC is the default.
10607
case $cc_basename in
10610
lt_prog_compiler_wl_CXX='--backend -Wl,'
10611
lt_prog_compiler_pic_CXX='-fPIC'
10615
lt_prog_compiler_wl_CXX='-Wl,'
10616
lt_prog_compiler_pic_CXX='-KPIC'
10617
lt_prog_compiler_static_CXX='-static'
10620
# Portland Group C++ compiler.
10621
lt_prog_compiler_wl_CXX='-Wl,'
10622
lt_prog_compiler_pic_CXX='-fpic'
10623
lt_prog_compiler_static_CXX='-static'
10627
# Make sure the PIC flag is empty. It appears that all Alpha
10628
# Linux and Compaq Tru64 Unix objects are PIC.
10629
lt_prog_compiler_pic_CXX=
10630
lt_prog_compiler_static_CXX='-non_shared'
10641
case $cc_basename in
10643
lt_prog_compiler_pic_CXX='-W c,exportall'
10651
osf3* | osf4* | osf5*)
10652
case $cc_basename in
10654
lt_prog_compiler_wl_CXX='--backend -Wl,'
10657
# Rational C++ 2.4.1
10658
lt_prog_compiler_pic_CXX='-pic'
10661
# Digital/Compaq C++
10662
lt_prog_compiler_wl_CXX='-Wl,'
10663
# Make sure the PIC flag is empty. It appears that all Alpha
10664
# Linux and Compaq Tru64 Unix objects are PIC.
10665
lt_prog_compiler_pic_CXX=
10666
lt_prog_compiler_static_CXX='-non_shared'
10675
case $cc_basename in
10677
lt_prog_compiler_pic_CXX='-fPIC'
10684
case $cc_basename in
10686
# Sun C++ 4.2, 5.x and Centerline C++
10687
lt_prog_compiler_pic_CXX='-KPIC'
10688
lt_prog_compiler_static_CXX='-Bstatic'
10689
lt_prog_compiler_wl_CXX='-Qoption ld '
10692
# Green Hills C++ Compiler
10693
lt_prog_compiler_pic_CXX='-PIC'
10700
case $cc_basename in
10703
lt_prog_compiler_pic_CXX='-pic'
10704
lt_prog_compiler_static_CXX='-Bstatic'
10708
lt_prog_compiler_pic_CXX='-pic'
10715
case $cc_basename in
10717
# NonStop-UX NCC 3.20
10718
lt_prog_compiler_pic_CXX='-KPIC'
10729
lt_prog_compiler_can_build_shared_CXX=no
10734
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10735
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10738
# Check to make sure the PIC flag actually works.
10740
if test -n "$lt_prog_compiler_pic_CXX"; then
10742
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10743
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10744
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10745
echo $ECHO_N "(cached) $ECHO_C" >&6
10747
lt_prog_compiler_pic_works_CXX=no
10748
ac_outfile=conftest.$ac_objext
10749
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10750
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10751
# Insert the option either (1) after the last *FLAGS variable, or
10752
# (2) before a word containing "conftest.", or (3) at the end.
10753
# Note that $ac_compile itself does not contain backslashes and begins
10754
# with a dollar sign (not a hyphen), so the echo should work correctly.
10755
# The option is referenced via a variable to avoid confusing sed.
10756
lt_compile=`echo "$ac_compile" | $SED \
10757
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10758
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10759
-e 's:$: $lt_compiler_flag:'`
10760
(eval echo "\"\$as_me:10760: $lt_compile\"" >&5)
10761
(eval "$lt_compile" 2>conftest.err)
10763
cat conftest.err >&5
10764
echo "$as_me:10764: \$? = $ac_status" >&5
10765
if (exit $ac_status) && test -s "$ac_outfile"; then
10766
# The compiler can only warn and ignore the option if not recognized
10767
# So say no if there are warnings
10768
if test ! -s conftest.err; then
10769
lt_prog_compiler_pic_works_CXX=yes
10775
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10776
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10778
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10779
case $lt_prog_compiler_pic_CXX in
10781
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10784
lt_prog_compiler_pic_CXX=
10785
lt_prog_compiler_can_build_shared_CXX=no
10790
# For platforms which do not support PIC, -DPIC is meaningless:
10792
lt_prog_compiler_pic_CXX=
10795
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10799
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10800
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10801
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10802
echo $ECHO_N "(cached) $ECHO_C" >&6
10804
lt_cv_prog_compiler_c_o_CXX=no
10805
$rm -r conftest 2>/dev/null
10809
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10811
lt_compiler_flag="-o out/conftest2.$ac_objext"
10812
# Insert the option either (1) after the last *FLAGS variable, or
10813
# (2) before a word containing "conftest.", or (3) at the end.
10814
# Note that $ac_compile itself does not contain backslashes and begins
10815
# with a dollar sign (not a hyphen), so the echo should work correctly.
10816
lt_compile=`echo "$ac_compile" | $SED \
10817
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10818
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10819
-e 's:$: $lt_compiler_flag:'`
10820
(eval echo "\"\$as_me:10820: $lt_compile\"" >&5)
10821
(eval "$lt_compile" 2>out/conftest.err)
10823
cat out/conftest.err >&5
10824
echo "$as_me:10824: \$? = $ac_status" >&5
10825
if (exit $ac_status) && test -s out/conftest2.$ac_objext
10827
# The compiler can only warn and ignore the option if not recognized
10828
# So say no if there are warnings
10829
if test ! -s out/conftest.err; then
10830
lt_cv_prog_compiler_c_o_CXX=yes
10835
# SGI C++ compiler will create directory out/ii_files/ for
10836
# template instantiation
10837
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10838
$rm out/* && rmdir out
10844
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10845
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10848
hard_links="nottested"
10849
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10850
# do not overwrite the value of need_locks provided by the user
10851
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10852
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10855
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10857
ln conftest.a conftest.b 2>&5 || hard_links=no
10858
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10859
echo "$as_me:$LINENO: result: $hard_links" >&5
10860
echo "${ECHO_T}$hard_links" >&6
10861
if test "$hard_links" = no; then
10862
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10863
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10870
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10871
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10873
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10876
# If we're using GNU nm, then we don't want the "-C" option.
10877
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10878
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10879
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'
10881
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'
10885
export_symbols_cmds_CXX="$ltdll_cmds"
10888
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'
10891
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10895
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10896
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10897
test "$ld_shlibs_CXX" = no && can_build_shared=no
10899
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10900
if test "$GCC" = yes; then
10901
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10905
# Do we need to explicitly link libc?
10907
case "x$archive_cmds_need_lc_CXX" in
10909
# Assume -lc should be added
10910
archive_cmds_need_lc_CXX=yes
10912
if test "$enable_shared" = yes && test "$GCC" = yes; then
10913
case $archive_cmds_CXX in
10915
# FIXME: we may have to deal with multi-command sequences.
10918
# Test whether the compiler implicitly links with -lc since on some
10919
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10920
# to ld, don't add -lc before -lgcc.
10921
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10922
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10924
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10926
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10927
(eval $ac_compile) 2>&5
10929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930
(exit $ac_status); } 2>conftest.err; then
10933
libobjs=conftest.$ac_objext
10935
wl=$lt_prog_compiler_wl_CXX
10941
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10942
allow_undefined_flag_CXX=
10943
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10944
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947
(exit $ac_status); }
10949
archive_cmds_need_lc_CXX=no
10951
archive_cmds_need_lc_CXX=yes
10953
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10955
cat conftest.err 1>&5
10958
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10959
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10966
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10967
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10968
library_names_spec=
10969
libname_spec='lib$name'
10973
postuninstall_cmds=
10977
shlibpath_overrides_runpath=unknown
10979
dynamic_linker="$host_os ld.so"
10980
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10981
if test "$GCC" = yes; then
10982
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10983
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10984
# if the path contains ";" then we assume it to be the separator
10985
# otherwise default to the standard path separator (i.e. ":") - it is
10986
# assumed that no part of a normal pathname contains ";" but that should
10987
# okay in the real world where ";" in dirpaths is itself problematic.
10988
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10990
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10993
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10995
need_lib_prefix=unknown
10996
hardcode_into_libs=no
10998
# when you set need_version to no, make sure it does not cause -set_version
10999
# flags to be left without arguments
11000
need_version=unknown
11005
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11006
shlibpath_var=LIBPATH
11008
# AIX 3 has no versioning support, so we append a major version to the name.
11009
soname_spec='${libname}${release}${shared_ext}$major'
11016
hardcode_into_libs=yes
11017
if test "$host_cpu" = ia64; then
11018
# AIX 5 supports IA64
11019
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11020
shlibpath_var=LD_LIBRARY_PATH
11022
# With GCC up to 2.95.x, collect2 would create an import file
11023
# for dependence libraries. The import file would start with
11024
# the line `#! .'. This would cause the generated library to
11025
# depend on `.', always an invalid library. This was fixed in
11026
# development snapshots of GCC prior to 3.0.
11028
aix4 | aix4.[01] | aix4.[01].*)
11029
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11031
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11034
can_build_shared=no
11038
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11039
# soname into executable. Probably we can add versioning support to
11040
# collect2, so additional links can be useful in future.
11041
if test "$aix_use_runtimelinking" = yes; then
11042
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11043
# instead of lib<name>.a to let people know that these are not
11044
# typical AIX shared libraries.
11045
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047
# We preserve .a as extension for shared libraries through AIX4.2
11048
# and later when we are not doing run time linking.
11049
library_names_spec='${libname}${release}.a $libname.a'
11050
soname_spec='${libname}${release}${shared_ext}$major'
11052
shlibpath_var=LIBPATH
11057
library_names_spec='$libname.ixlibrary $libname.a'
11058
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11059
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'
11063
library_names_spec='${libname}${shared_ext}'
11064
dynamic_linker="$host_os ld.so"
11065
shlibpath_var=LIBRARY_PATH
11071
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11072
soname_spec='${libname}${release}${shared_ext}$major'
11073
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11074
shlibpath_var=LD_LIBRARY_PATH
11075
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11076
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11077
# the default ld.so.conf also contains /usr/contrib/lib and
11078
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11079
# libtool to hard-code these into programs
11082
cygwin* | mingw* | pw32*)
11083
version_type=windows
11088
case $GCC,$host_os in
11089
yes,cygwin* | yes,mingw* | yes,pw32*)
11090
library_names_spec='$libname.dll.a'
11091
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11092
postinstall_cmds='base_file=`basename \${file}`~
11093
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11094
dldir=$destdir/`dirname \$dlpath`~
11095
test -d \$dldir || mkdir -p \$dldir~
11096
$install_prog $dir/$dlname \$dldir/$dlname'
11097
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11098
dlpath=$dir/\$dldll~
11100
shlibpath_overrides_runpath=yes
11104
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11105
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11106
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11109
# MinGW DLLs use traditional 'lib' prefix
11110
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11111
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11112
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11113
# It is most probably a Windows format PATH printed by
11114
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11115
# path with ; separators, and with drive letters. We can handle the
11116
# drive letters (cygwin fileutils understands them), so leave them,
11117
# especially as we might pass files found there to a mingw objdump,
11118
# which wouldn't understand a cygwinified path. Ahh.
11119
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11121
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11125
# pw32 DLLs use 'pw' prefix rather than 'lib'
11126
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11132
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11135
dynamic_linker='Win32 ld.exe'
11136
# FIXME: first we should search . and the directory the executable is in
11140
darwin* | rhapsody*)
11141
dynamic_linker="$host_os dyld"
11142
version_type=darwin
11145
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11146
soname_spec='${libname}${release}${major}$shared_ext'
11147
shlibpath_overrides_runpath=yes
11148
shlibpath_var=DYLD_LIBRARY_PATH
11149
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11150
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11151
if test "$GCC" = yes; then
11152
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11154
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11156
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11163
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11164
soname_spec='${libname}${release}${shared_ext}$major'
11165
shlibpath_var=LD_LIBRARY_PATH
11176
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11177
soname_spec='${libname}${release}${shared_ext}$major'
11178
shlibpath_var=LD_LIBRARY_PATH
11179
shlibpath_overrides_runpath=no
11180
hardcode_into_libs=yes
11181
dynamic_linker='GNU ld.so'
11184
freebsd* | dragonfly*)
11185
# DragonFly does not have aout. When/if they implement a new
11186
# versioning mechanism, adjust this.
11187
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11188
version_type=freebsd-$objformat
11189
case $version_type in
11191
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11196
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11200
shlibpath_var=LD_LIBRARY_PATH
11203
shlibpath_overrides_runpath=yes
11205
freebsd3.[01]* | freebsdelf3.[01]*)
11206
shlibpath_overrides_runpath=yes
11207
hardcode_into_libs=yes
11210
shlibpath_overrides_runpath=no
11211
hardcode_into_libs=yes
11220
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11221
soname_spec='${libname}${release}${shared_ext}$major'
11222
shlibpath_var=LD_LIBRARY_PATH
11223
hardcode_into_libs=yes
11226
hpux9* | hpux10* | hpux11*)
11227
# Give a soname corresponding to the major version so that dld.sl refuses to
11228
# link against other versions.
11232
case "$host_cpu" in
11235
hardcode_into_libs=yes
11236
dynamic_linker="$host_os dld.so"
11237
shlibpath_var=LD_LIBRARY_PATH
11238
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11239
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11240
soname_spec='${libname}${release}${shared_ext}$major'
11241
if test "X$HPUX_IA64_MODE" = X32; then
11242
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11244
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11246
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11250
hardcode_into_libs=yes
11251
dynamic_linker="$host_os dld.sl"
11252
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11253
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11254
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11255
soname_spec='${libname}${release}${shared_ext}$major'
11256
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11257
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11261
dynamic_linker="$host_os dld.sl"
11262
shlibpath_var=SHLIB_PATH
11263
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11264
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11265
soname_spec='${libname}${release}${shared_ext}$major'
11268
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11269
postinstall_cmds='chmod 555 $lib'
11272
irix5* | irix6* | nonstopux*)
11274
nonstopux*) version_type=nonstopux ;;
11276
if test "$lt_cv_prog_gnu_ld" = yes; then
11284
soname_spec='${libname}${release}${shared_ext}$major'
11285
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11287
irix5* | nonstopux*)
11288
libsuff= shlibsuff=
11291
case $LD in # libtool.m4 will add one of these switches to LD
11292
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11293
libsuff= shlibsuff= libmagic=32-bit;;
11294
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11295
libsuff=32 shlibsuff=N32 libmagic=N32;;
11296
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11297
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11298
*) libsuff= shlibsuff= libmagic=never-match;;
11302
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11303
shlibpath_overrides_runpath=no
11304
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11305
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11306
hardcode_into_libs=yes
11309
# No shared lib support for Linux oldld, aout, or coff.
11310
linux*oldld* | linux*aout* | linux*coff*)
11314
# This must be Linux ELF.
11319
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320
soname_spec='${libname}${release}${shared_ext}$major'
11321
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11322
shlibpath_var=LD_LIBRARY_PATH
11323
shlibpath_overrides_runpath=no
11324
# This implies no fast_install, which is unacceptable.
11325
# Some rework will be needed to allow for fast_install
11326
# before this can be enabled.
11327
hardcode_into_libs=yes
11329
# Append ld.so.conf contents to the search path
11330
if test -f /etc/ld.so.conf; then
11331
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11332
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11335
# We used to test for /lib/ld.so.1 and disable shared libraries on
11336
# powerpc, because MkLinux only supported shared libraries with the
11337
# GNU dynamic linker. Since this was broken with cross compilers,
11338
# most powerpc-linux boxes support dynamic linking these days and
11339
# people can always --disable-shared, the test was removed, and we
11340
# assume the GNU/Linux dynamic linker is in use.
11341
dynamic_linker='GNU/Linux ld.so'
11348
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11349
soname_spec='${libname}${release}${shared_ext}$major'
11350
shlibpath_var=LD_LIBRARY_PATH
11351
shlibpath_overrides_runpath=no
11352
hardcode_into_libs=yes
11353
dynamic_linker='GNU ld.so'
11360
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11361
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11362
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11363
dynamic_linker='NetBSD (a.out) ld.so'
11365
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11366
soname_spec='${libname}${release}${shared_ext}$major'
11367
dynamic_linker='NetBSD ld.elf_so'
11369
shlibpath_var=LD_LIBRARY_PATH
11370
shlibpath_overrides_runpath=yes
11371
hardcode_into_libs=yes
11376
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11377
shlibpath_var=LD_LIBRARY_PATH
11378
shlibpath_overrides_runpath=yes
11385
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386
soname_spec='${libname}${release}${shared_ext}$major'
11387
shlibpath_var=LD_LIBRARY_PATH
11388
shlibpath_overrides_runpath=yes
11395
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11396
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11397
shlibpath_var=LD_LIBRARY_PATH
11398
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11400
openbsd2.[89] | openbsd2.[89].*)
11401
shlibpath_overrides_runpath=no
11404
shlibpath_overrides_runpath=yes
11408
shlibpath_overrides_runpath=yes
11413
libname_spec='$name'
11416
library_names_spec='$libname${shared_ext} $libname.a'
11417
dynamic_linker='OS/2 ld.exe'
11418
shlibpath_var=LIBPATH
11421
osf3* | osf4* | osf5*)
11425
soname_spec='${libname}${release}${shared_ext}$major'
11426
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11427
shlibpath_var=LD_LIBRARY_PATH
11428
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11429
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11434
soname_spec='${libname}${release}${shared_ext}$major'
11435
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436
shlibpath_var=LD_LIBRARY_PATH
11443
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444
soname_spec='${libname}${release}${shared_ext}$major'
11445
shlibpath_var=LD_LIBRARY_PATH
11446
shlibpath_overrides_runpath=yes
11447
hardcode_into_libs=yes
11448
# ldd complains unless libraries are executable
11449
postinstall_cmds='chmod +x $lib'
11454
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11455
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11456
shlibpath_var=LD_LIBRARY_PATH
11457
shlibpath_overrides_runpath=yes
11458
if test "$with_gnu_ld" = yes; then
11464
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11466
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11467
soname_spec='${libname}${release}${shared_ext}$major'
11468
shlibpath_var=LD_LIBRARY_PATH
11469
case $host_vendor in
11471
shlibpath_overrides_runpath=no
11473
export_dynamic_flag_spec='${wl}-Blargedynsym'
11474
runpath_var=LD_RUN_PATH
11482
shlibpath_overrides_runpath=no
11483
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11489
if test -d /usr/nec ;then
11491
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11492
soname_spec='$libname${shared_ext}.$major'
11493
shlibpath_var=LD_LIBRARY_PATH
11499
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500
soname_spec='${libname}${release}${shared_ext}$major'
11501
shlibpath_var=LD_LIBRARY_PATH
11508
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11509
echo "${ECHO_T}$dynamic_linker" >&6
11510
test "$dynamic_linker" = no && can_build_shared=no
11512
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11513
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11514
hardcode_action_CXX=
11515
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11516
test -n "$runpath_var_CXX" || \
11517
test "X$hardcode_automatic_CXX" = "Xyes" ; then
11519
# We can hardcode non-existant directories.
11520
if test "$hardcode_direct_CXX" != no &&
11521
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11522
# have to relink, otherwise we might link with an installed library
11523
# when we should be linking with a yet-to-be-installed one
11524
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11525
test "$hardcode_minus_L_CXX" != no; then
11526
# Linking always hardcodes the temporary library directory.
11527
hardcode_action_CXX=relink
11529
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11530
hardcode_action_CXX=immediate
11533
# We cannot hardcode anything, or else we can only hardcode existing
11535
hardcode_action_CXX=unsupported
11537
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11538
echo "${ECHO_T}$hardcode_action_CXX" >&6
11540
if test "$hardcode_action_CXX" = relink; then
11541
# Fast installation is not supported
11542
enable_fast_install=no
11543
elif test "$shlibpath_overrides_runpath" = yes ||
11544
test "$enable_shared" = no; then
11545
# Fast installation is not necessary
11546
enable_fast_install=needless
11551
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11552
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11553
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11554
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11555
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11556
echo "$as_me:$LINENO: result: yes" >&5
11557
echo "${ECHO_T}yes" >&6
11559
# FIXME - insert some real tests, host_os isn't really good enough
11562
if test -n "$STRIP" ; then
11563
striplib="$STRIP -x"
11564
echo "$as_me:$LINENO: result: yes" >&5
11565
echo "${ECHO_T}yes" >&6
11567
echo "$as_me:$LINENO: result: no" >&5
11568
echo "${ECHO_T}no" >&6
11572
echo "$as_me:$LINENO: result: no" >&5
11573
echo "${ECHO_T}no" >&6
11578
if test "x$enable_dlopen" != xyes; then
11579
enable_dlopen=unknown
11580
enable_dlopen_self=unknown
11581
enable_dlopen_self_static=unknown
11588
lt_cv_dlopen="load_add_on"
11590
lt_cv_dlopen_self=yes
11594
lt_cv_dlopen="LoadLibrary"
11599
lt_cv_dlopen="dlopen"
11604
# if libdl is installed we need to link against it
11605
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11606
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11607
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11608
echo $ECHO_N "(cached) $ECHO_C" >&6
11610
ac_check_lib_save_LIBS=$LIBS
11612
cat >conftest.$ac_ext <<_ACEOF
11615
cat confdefs.h >>conftest.$ac_ext
11616
cat >>conftest.$ac_ext <<_ACEOF
11617
/* end confdefs.h. */
11619
/* Override any gcc2 internal prototype to avoid an error. */
11623
/* We use char because int might match the return type of a gcc2
11624
builtin and then its argument prototype would still apply. */
11634
rm -f conftest.$ac_objext conftest$ac_exeext
11635
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11636
(eval $ac_link) 2>conftest.er1
11638
grep -v '^ *+' conftest.er1 >conftest.err
11640
cat conftest.err >&5
11641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642
(exit $ac_status); } &&
11643
{ ac_try='test -z "$ac_cxx_werror_flag"
11644
|| test ! -s conftest.err'
11645
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646
(eval $ac_try) 2>&5
11648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649
(exit $ac_status); }; } &&
11650
{ ac_try='test -s conftest$ac_exeext'
11651
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652
(eval $ac_try) 2>&5
11654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655
(exit $ac_status); }; }; then
11656
ac_cv_lib_dl_dlopen=yes
11658
echo "$as_me: failed program was:" >&5
11659
sed 's/^/| /' conftest.$ac_ext >&5
11661
ac_cv_lib_dl_dlopen=no
11663
rm -f conftest.err conftest.$ac_objext \
11664
conftest$ac_exeext conftest.$ac_ext
11665
LIBS=$ac_check_lib_save_LIBS
11667
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11668
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11669
if test $ac_cv_lib_dl_dlopen = yes; then
11670
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11673
lt_cv_dlopen="dyld"
11675
lt_cv_dlopen_self=yes
11682
echo "$as_me:$LINENO: checking for shl_load" >&5
11683
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11684
if test "${ac_cv_func_shl_load+set}" = set; then
11685
echo $ECHO_N "(cached) $ECHO_C" >&6
11687
cat >conftest.$ac_ext <<_ACEOF
11690
cat confdefs.h >>conftest.$ac_ext
11691
cat >>conftest.$ac_ext <<_ACEOF
11692
/* end confdefs.h. */
11693
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11694
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11695
#define shl_load innocuous_shl_load
11697
/* System header to define __stub macros and hopefully few prototypes,
11698
which can conflict with char shl_load (); below.
11699
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11700
<limits.h> exists even on freestanding compilers. */
11703
# include <limits.h>
11705
# include <assert.h>
11710
/* Override any gcc2 internal prototype to avoid an error. */
11715
/* We use char because int might match the return type of a gcc2
11716
builtin and then its argument prototype would still apply. */
11718
/* The GNU C library defines this for functions which it implements
11719
to always fail with ENOSYS. Some functions are actually named
11720
something starting with __ and the normal name is an alias. */
11721
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11724
char (*f) () = shl_load;
11733
return f != shl_load;
11738
rm -f conftest.$ac_objext conftest$ac_exeext
11739
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11740
(eval $ac_link) 2>conftest.er1
11742
grep -v '^ *+' conftest.er1 >conftest.err
11744
cat conftest.err >&5
11745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746
(exit $ac_status); } &&
11747
{ ac_try='test -z "$ac_cxx_werror_flag"
11748
|| test ! -s conftest.err'
11749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750
(eval $ac_try) 2>&5
11752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753
(exit $ac_status); }; } &&
11754
{ ac_try='test -s conftest$ac_exeext'
11755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756
(eval $ac_try) 2>&5
11758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759
(exit $ac_status); }; }; then
11760
ac_cv_func_shl_load=yes
11762
echo "$as_me: failed program was:" >&5
11763
sed 's/^/| /' conftest.$ac_ext >&5
11765
ac_cv_func_shl_load=no
11767
rm -f conftest.err conftest.$ac_objext \
11768
conftest$ac_exeext conftest.$ac_ext
11770
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11771
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11772
if test $ac_cv_func_shl_load = yes; then
11773
lt_cv_dlopen="shl_load"
11775
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11776
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11777
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11778
echo $ECHO_N "(cached) $ECHO_C" >&6
11780
ac_check_lib_save_LIBS=$LIBS
11782
cat >conftest.$ac_ext <<_ACEOF
11785
cat confdefs.h >>conftest.$ac_ext
11786
cat >>conftest.$ac_ext <<_ACEOF
11787
/* end confdefs.h. */
11789
/* Override any gcc2 internal prototype to avoid an error. */
11793
/* We use char because int might match the return type of a gcc2
11794
builtin and then its argument prototype would still apply. */
11804
rm -f conftest.$ac_objext conftest$ac_exeext
11805
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11806
(eval $ac_link) 2>conftest.er1
11808
grep -v '^ *+' conftest.er1 >conftest.err
11810
cat conftest.err >&5
11811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812
(exit $ac_status); } &&
11813
{ ac_try='test -z "$ac_cxx_werror_flag"
11814
|| test ! -s conftest.err'
11815
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816
(eval $ac_try) 2>&5
11818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819
(exit $ac_status); }; } &&
11820
{ ac_try='test -s conftest$ac_exeext'
11821
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822
(eval $ac_try) 2>&5
11824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825
(exit $ac_status); }; }; then
11826
ac_cv_lib_dld_shl_load=yes
11828
echo "$as_me: failed program was:" >&5
11829
sed 's/^/| /' conftest.$ac_ext >&5
11831
ac_cv_lib_dld_shl_load=no
11833
rm -f conftest.err conftest.$ac_objext \
11834
conftest$ac_exeext conftest.$ac_ext
11835
LIBS=$ac_check_lib_save_LIBS
11837
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11838
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11839
if test $ac_cv_lib_dld_shl_load = yes; then
11840
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11842
echo "$as_me:$LINENO: checking for dlopen" >&5
11843
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11844
if test "${ac_cv_func_dlopen+set}" = set; then
11845
echo $ECHO_N "(cached) $ECHO_C" >&6
11847
cat >conftest.$ac_ext <<_ACEOF
11850
cat confdefs.h >>conftest.$ac_ext
11851
cat >>conftest.$ac_ext <<_ACEOF
11852
/* end confdefs.h. */
11853
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11854
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11855
#define dlopen innocuous_dlopen
11857
/* System header to define __stub macros and hopefully few prototypes,
11858
which can conflict with char dlopen (); below.
11859
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11860
<limits.h> exists even on freestanding compilers. */
11863
# include <limits.h>
11865
# include <assert.h>
11870
/* Override any gcc2 internal prototype to avoid an error. */
11875
/* We use char because int might match the return type of a gcc2
11876
builtin and then its argument prototype would still apply. */
11878
/* The GNU C library defines this for functions which it implements
11879
to always fail with ENOSYS. Some functions are actually named
11880
something starting with __ and the normal name is an alias. */
11881
#if defined (__stub_dlopen) || defined (__stub___dlopen)
11884
char (*f) () = dlopen;
11893
return f != dlopen;
11898
rm -f conftest.$ac_objext conftest$ac_exeext
11899
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11900
(eval $ac_link) 2>conftest.er1
11902
grep -v '^ *+' conftest.er1 >conftest.err
11904
cat conftest.err >&5
11905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906
(exit $ac_status); } &&
11907
{ ac_try='test -z "$ac_cxx_werror_flag"
11908
|| test ! -s conftest.err'
11909
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910
(eval $ac_try) 2>&5
11912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913
(exit $ac_status); }; } &&
11914
{ ac_try='test -s conftest$ac_exeext'
11915
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916
(eval $ac_try) 2>&5
11918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919
(exit $ac_status); }; }; then
11920
ac_cv_func_dlopen=yes
11922
echo "$as_me: failed program was:" >&5
11923
sed 's/^/| /' conftest.$ac_ext >&5
11925
ac_cv_func_dlopen=no
11927
rm -f conftest.err conftest.$ac_objext \
11928
conftest$ac_exeext conftest.$ac_ext
11930
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11931
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11932
if test $ac_cv_func_dlopen = yes; then
11933
lt_cv_dlopen="dlopen"
11935
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11936
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11937
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11938
echo $ECHO_N "(cached) $ECHO_C" >&6
11940
ac_check_lib_save_LIBS=$LIBS
11942
cat >conftest.$ac_ext <<_ACEOF
11945
cat confdefs.h >>conftest.$ac_ext
11946
cat >>conftest.$ac_ext <<_ACEOF
11947
/* end confdefs.h. */
11949
/* Override any gcc2 internal prototype to avoid an error. */
11953
/* We use char because int might match the return type of a gcc2
11954
builtin and then its argument prototype would still apply. */
11964
rm -f conftest.$ac_objext conftest$ac_exeext
11965
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11966
(eval $ac_link) 2>conftest.er1
11968
grep -v '^ *+' conftest.er1 >conftest.err
11970
cat conftest.err >&5
11971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972
(exit $ac_status); } &&
11973
{ ac_try='test -z "$ac_cxx_werror_flag"
11974
|| test ! -s conftest.err'
11975
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976
(eval $ac_try) 2>&5
11978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979
(exit $ac_status); }; } &&
11980
{ ac_try='test -s conftest$ac_exeext'
11981
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982
(eval $ac_try) 2>&5
11984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985
(exit $ac_status); }; }; then
11986
ac_cv_lib_dl_dlopen=yes
11988
echo "$as_me: failed program was:" >&5
11989
sed 's/^/| /' conftest.$ac_ext >&5
11991
ac_cv_lib_dl_dlopen=no
11993
rm -f conftest.err conftest.$ac_objext \
11994
conftest$ac_exeext conftest.$ac_ext
11995
LIBS=$ac_check_lib_save_LIBS
11997
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11998
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11999
if test $ac_cv_lib_dl_dlopen = yes; then
12000
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12002
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12003
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12004
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12005
echo $ECHO_N "(cached) $ECHO_C" >&6
12007
ac_check_lib_save_LIBS=$LIBS
12008
LIBS="-lsvld $LIBS"
12009
cat >conftest.$ac_ext <<_ACEOF
12012
cat confdefs.h >>conftest.$ac_ext
12013
cat >>conftest.$ac_ext <<_ACEOF
12014
/* end confdefs.h. */
12016
/* Override any gcc2 internal prototype to avoid an error. */
12020
/* We use char because int might match the return type of a gcc2
12021
builtin and then its argument prototype would still apply. */
12031
rm -f conftest.$ac_objext conftest$ac_exeext
12032
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033
(eval $ac_link) 2>conftest.er1
12035
grep -v '^ *+' conftest.er1 >conftest.err
12037
cat conftest.err >&5
12038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039
(exit $ac_status); } &&
12040
{ ac_try='test -z "$ac_cxx_werror_flag"
12041
|| test ! -s conftest.err'
12042
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043
(eval $ac_try) 2>&5
12045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046
(exit $ac_status); }; } &&
12047
{ ac_try='test -s conftest$ac_exeext'
12048
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049
(eval $ac_try) 2>&5
12051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052
(exit $ac_status); }; }; then
12053
ac_cv_lib_svld_dlopen=yes
12055
echo "$as_me: failed program was:" >&5
12056
sed 's/^/| /' conftest.$ac_ext >&5
12058
ac_cv_lib_svld_dlopen=no
12060
rm -f conftest.err conftest.$ac_objext \
12061
conftest$ac_exeext conftest.$ac_ext
12062
LIBS=$ac_check_lib_save_LIBS
12064
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12065
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12066
if test $ac_cv_lib_svld_dlopen = yes; then
12067
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12069
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12070
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12071
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12072
echo $ECHO_N "(cached) $ECHO_C" >&6
12074
ac_check_lib_save_LIBS=$LIBS
12076
cat >conftest.$ac_ext <<_ACEOF
12079
cat confdefs.h >>conftest.$ac_ext
12080
cat >>conftest.$ac_ext <<_ACEOF
12081
/* end confdefs.h. */
12083
/* Override any gcc2 internal prototype to avoid an error. */
12087
/* We use char because int might match the return type of a gcc2
12088
builtin and then its argument prototype would still apply. */
12098
rm -f conftest.$ac_objext conftest$ac_exeext
12099
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12100
(eval $ac_link) 2>conftest.er1
12102
grep -v '^ *+' conftest.er1 >conftest.err
12104
cat conftest.err >&5
12105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106
(exit $ac_status); } &&
12107
{ ac_try='test -z "$ac_cxx_werror_flag"
12108
|| test ! -s conftest.err'
12109
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110
(eval $ac_try) 2>&5
12112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113
(exit $ac_status); }; } &&
12114
{ ac_try='test -s conftest$ac_exeext'
12115
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116
(eval $ac_try) 2>&5
12118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119
(exit $ac_status); }; }; then
12120
ac_cv_lib_dld_dld_link=yes
12122
echo "$as_me: failed program was:" >&5
12123
sed 's/^/| /' conftest.$ac_ext >&5
12125
ac_cv_lib_dld_dld_link=no
12127
rm -f conftest.err conftest.$ac_objext \
12128
conftest$ac_exeext conftest.$ac_ext
12129
LIBS=$ac_check_lib_save_LIBS
12131
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12132
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12133
if test $ac_cv_lib_dld_dld_link = yes; then
12134
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12155
if test "x$lt_cv_dlopen" != xno; then
12161
case $lt_cv_dlopen in
12163
save_CPPFLAGS="$CPPFLAGS"
12164
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12166
save_LDFLAGS="$LDFLAGS"
12167
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12170
LIBS="$lt_cv_dlopen_libs $LIBS"
12172
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12173
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12174
if test "${lt_cv_dlopen_self+set}" = set; then
12175
echo $ECHO_N "(cached) $ECHO_C" >&6
12177
if test "$cross_compiling" = yes; then :
12178
lt_cv_dlopen_self=cross
12180
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12181
lt_status=$lt_dlunknown
12182
cat > conftest.$ac_ext <<EOF
12183
#line 12183 "configure"
12184
#include "confdefs.h"
12193
# define LT_DLGLOBAL RTLD_GLOBAL
12196
# define LT_DLGLOBAL DL_GLOBAL
12198
# define LT_DLGLOBAL 0
12202
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12203
find out it does not work in some platform. */
12204
#ifndef LT_DLLAZY_OR_NOW
12206
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12209
# define LT_DLLAZY_OR_NOW DL_LAZY
12212
# define LT_DLLAZY_OR_NOW RTLD_NOW
12215
# define LT_DLLAZY_OR_NOW DL_NOW
12217
# define LT_DLLAZY_OR_NOW 0
12225
extern "C" void exit (int);
12228
void fnord() { int i=42;}
12231
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12232
int status = $lt_dlunknown;
12236
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12237
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12238
/* dlclose (self); */
12244
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12245
(eval $ac_link) 2>&5
12247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12249
(./conftest; exit; ) 2>/dev/null
12251
case x$lt_status in
12252
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12253
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12254
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12257
# compilation failed
12258
lt_cv_dlopen_self=no
12265
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12266
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12268
if test "x$lt_cv_dlopen_self" = xyes; then
12269
LDFLAGS="$LDFLAGS $link_static_flag"
12270
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12271
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12272
if test "${lt_cv_dlopen_self_static+set}" = set; then
12273
echo $ECHO_N "(cached) $ECHO_C" >&6
12275
if test "$cross_compiling" = yes; then :
12276
lt_cv_dlopen_self_static=cross
12278
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12279
lt_status=$lt_dlunknown
12280
cat > conftest.$ac_ext <<EOF
12281
#line 12281 "configure"
12282
#include "confdefs.h"
12291
# define LT_DLGLOBAL RTLD_GLOBAL
12294
# define LT_DLGLOBAL DL_GLOBAL
12296
# define LT_DLGLOBAL 0
12300
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12301
find out it does not work in some platform. */
12302
#ifndef LT_DLLAZY_OR_NOW
12304
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12307
# define LT_DLLAZY_OR_NOW DL_LAZY
12310
# define LT_DLLAZY_OR_NOW RTLD_NOW
12313
# define LT_DLLAZY_OR_NOW DL_NOW
12315
# define LT_DLLAZY_OR_NOW 0
12323
extern "C" void exit (int);
12326
void fnord() { int i=42;}
12329
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12330
int status = $lt_dlunknown;
12334
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12335
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12336
/* dlclose (self); */
12342
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12343
(eval $ac_link) 2>&5
12345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12347
(./conftest; exit; ) 2>/dev/null
12349
case x$lt_status in
12350
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12351
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12352
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12355
# compilation failed
12356
lt_cv_dlopen_self_static=no
12363
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12364
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12367
CPPFLAGS="$save_CPPFLAGS"
12368
LDFLAGS="$save_LDFLAGS"
12373
case $lt_cv_dlopen_self in
12374
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12375
*) enable_dlopen_self=unknown ;;
12378
case $lt_cv_dlopen_self_static in
12379
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12380
*) enable_dlopen_self_static=unknown ;;
12385
# The else clause should only fire when bootstrapping the
12386
# libtool distribution, otherwise you forgot to ship ltmain.sh
12387
# with your package, and you will get complaints that there are
12388
# no rules to generate ltmain.sh.
12389
if test -f "$ltmain"; then
12390
# See if we are running on zsh, and set the options which allow our commands through
12391
# without removal of \ escapes.
12392
if test -n "${ZSH_VERSION+set}" ; then
12393
setopt NO_GLOB_SUBST
12395
# Now quote all the things that may contain metacharacters while being
12396
# careful not to overquote the AC_SUBSTed values. We take copies of the
12397
# variables and quote the copies for generation of the libtool script.
12398
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12400
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12401
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12402
deplibs_check_method reload_flag reload_cmds need_locks \
12403
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12404
lt_cv_sys_global_symbol_to_c_name_address \
12405
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12406
old_postinstall_cmds old_postuninstall_cmds \
12410
lt_prog_compiler_wl_CXX \
12411
lt_prog_compiler_pic_CXX \
12412
lt_prog_compiler_static_CXX \
12413
lt_prog_compiler_no_builtin_flag_CXX \
12414
export_dynamic_flag_spec_CXX \
12415
thread_safe_flag_spec_CXX \
12416
whole_archive_flag_spec_CXX \
12417
enable_shared_with_static_runtimes_CXX \
12418
old_archive_cmds_CXX \
12419
old_archive_from_new_cmds_CXX \
12420
predep_objects_CXX \
12421
postdep_objects_CXX \
12424
compiler_lib_search_path_CXX \
12426
archive_expsym_cmds_CXX \
12427
postinstall_cmds_CXX \
12428
postuninstall_cmds_CXX \
12429
old_archive_from_expsyms_cmds_CXX \
12430
allow_undefined_flag_CXX \
12431
no_undefined_flag_CXX \
12432
export_symbols_cmds_CXX \
12433
hardcode_libdir_flag_spec_CXX \
12434
hardcode_libdir_flag_spec_ld_CXX \
12435
hardcode_libdir_separator_CXX \
12436
hardcode_automatic_CXX \
12438
module_expsym_cmds_CXX \
12439
lt_cv_prog_compiler_c_o_CXX \
12440
exclude_expsyms_CXX \
12441
include_expsyms_CXX; do
12444
old_archive_cmds_CXX | \
12445
old_archive_from_new_cmds_CXX | \
12446
archive_cmds_CXX | \
12447
archive_expsym_cmds_CXX | \
12448
module_cmds_CXX | \
12449
module_expsym_cmds_CXX | \
12450
old_archive_from_expsyms_cmds_CXX | \
12451
export_symbols_cmds_CXX | \
12452
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12453
postinstall_cmds | postuninstall_cmds | \
12454
old_postinstall_cmds | old_postuninstall_cmds | \
12455
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12456
# Double-quote double-evaled strings.
12457
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12460
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12466
*'\$0 --fallback-echo"')
12467
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12473
cat <<__EOF__ >> "$cfgfile"
12474
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12476
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12478
# Shell to use when invoking shell scripts.
12481
# Whether or not to build shared libraries.
12482
build_libtool_libs=$enable_shared
12484
# Whether or not to build static libraries.
12485
build_old_libs=$enable_static
12487
# Whether or not to add -lc for building shared libraries.
12488
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12490
# Whether or not to disallow shared libs when runtime libs are static
12491
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12493
# Whether or not to optimize for fast installation.
12494
fast_install=$enable_fast_install
12497
host_alias=$host_alias
12501
# The build system.
12502
build_alias=$build_alias
12506
# An echo program that does not interpret backslashes.
12511
AR_FLAGS=$lt_AR_FLAGS
12516
# A language-specific compiler.
12517
CC=$lt_compiler_CXX
12519
# Is the compiler the GNU C compiler?
12525
# The linker used to build libraries.
12528
# Whether we need hard or soft links.
12531
# A BSD-compatible nm program.
12534
# A symbol stripping program
12537
# Used to examine libraries when file_magic_cmd begins "file"
12538
MAGIC_CMD=$MAGIC_CMD
12540
# Used on cygwin: DLL creation program.
12543
# Used on cygwin: object dumper.
12546
# Used on cygwin: assembler.
12549
# The name of the directory that contains temporary libtool files.
12552
# How to create reloadable object files.
12553
reload_flag=$lt_reload_flag
12554
reload_cmds=$lt_reload_cmds
12556
# How to pass a linker flag through the compiler.
12557
wl=$lt_lt_prog_compiler_wl_CXX
12559
# Object file suffix (normally "o").
12560
objext="$ac_objext"
12562
# Old archive suffix (normally "a").
12565
# Shared library suffix (normally ".so").
12566
shrext_cmds='$shrext_cmds'
12568
# Executable file suffix (normally "").
12571
# Additional compiler flags for building library objects.
12572
pic_flag=$lt_lt_prog_compiler_pic_CXX
12575
# What is the maximum length of a command?
12576
max_cmd_len=$lt_cv_sys_max_cmd_len
12578
# Does compiler simultaneously support -c and -o options?
12579
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12581
# Must we lock files when doing compilation ?
12582
need_locks=$lt_need_locks
12584
# Do we need the lib prefix for modules?
12585
need_lib_prefix=$need_lib_prefix
12587
# Do we need a version for libraries?
12588
need_version=$need_version
12590
# Whether dlopen is supported.
12591
dlopen_support=$enable_dlopen
12593
# Whether dlopen of programs is supported.
12594
dlopen_self=$enable_dlopen_self
12596
# Whether dlopen of statically linked programs is supported.
12597
dlopen_self_static=$enable_dlopen_self_static
12599
# Compiler flag to prevent dynamic linking.
12600
link_static_flag=$lt_lt_prog_compiler_static_CXX
12602
# Compiler flag to turn off builtin functions.
12603
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12605
# Compiler flag to allow reflexive dlopens.
12606
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12608
# Compiler flag to generate shared objects directly from archives.
12609
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12611
# Compiler flag to generate thread-safe objects.
12612
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12614
# Library versioning type.
12615
version_type=$version_type
12617
# Format of library name prefix.
12618
libname_spec=$lt_libname_spec
12620
# List of archive names. First name is the real one, the rest are links.
12621
# The last name is the one that the linker finds with -lNAME.
12622
library_names_spec=$lt_library_names_spec
12624
# The coded name of the library, if different from the real name.
12625
soname_spec=$lt_soname_spec
12627
# Commands used to build and install an old-style archive.
12629
old_archive_cmds=$lt_old_archive_cmds_CXX
12630
old_postinstall_cmds=$lt_old_postinstall_cmds
12631
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12633
# Create an old-style archive from a shared archive.
12634
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12636
# Create a temporary old-style archive to link instead of a shared archive.
12637
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12639
# Commands used to build and install a shared archive.
12640
archive_cmds=$lt_archive_cmds_CXX
12641
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12642
postinstall_cmds=$lt_postinstall_cmds
12643
postuninstall_cmds=$lt_postuninstall_cmds
12645
# Commands used to build a loadable module (assumed same as above if empty)
12646
module_cmds=$lt_module_cmds_CXX
12647
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12649
# Commands to strip libraries.
12650
old_striplib=$lt_old_striplib
12651
striplib=$lt_striplib
12653
# Dependencies to place before the objects being linked to create a
12655
predep_objects=$lt_predep_objects_CXX
12657
# Dependencies to place after the objects being linked to create a
12659
postdep_objects=$lt_postdep_objects_CXX
12661
# Dependencies to place before the objects being linked to create a
12663
predeps=$lt_predeps_CXX
12665
# Dependencies to place after the objects being linked to create a
12667
postdeps=$lt_postdeps_CXX
12669
# The library search path used internally by the compiler when linking
12670
# a shared library.
12671
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12673
# Method to check whether dependent libraries are shared objects.
12674
deplibs_check_method=$lt_deplibs_check_method
12676
# Command to use when deplibs_check_method == file_magic.
12677
file_magic_cmd=$lt_file_magic_cmd
12679
# Flag that allows shared libraries with undefined symbols to be built.
12680
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12682
# Flag that forces no undefined symbols.
12683
no_undefined_flag=$lt_no_undefined_flag_CXX
12685
# Commands used to finish a libtool library installation in a directory.
12686
finish_cmds=$lt_finish_cmds
12688
# Same as above, but a single script fragment to be evaled but not shown.
12689
finish_eval=$lt_finish_eval
12691
# Take the output of nm and produce a listing of raw symbols and C names.
12692
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12694
# Transform the output of nm in a proper C declaration
12695
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12697
# Transform the output of nm in a C name address pair
12698
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12700
# This is the shared library runtime path variable.
12701
runpath_var=$runpath_var
12703
# This is the shared library path variable.
12704
shlibpath_var=$shlibpath_var
12706
# Is shlibpath searched before the hard-coded library search path?
12707
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12709
# How to hardcode a shared library path into an executable.
12710
hardcode_action=$hardcode_action_CXX
12712
# Whether we should hardcode library paths into libraries.
12713
hardcode_into_libs=$hardcode_into_libs
12715
# Flag to hardcode \$libdir into a binary during linking.
12716
# This must work even if \$libdir does not exist.
12717
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12719
# If ld is used when linking, flag to hardcode \$libdir into
12720
# a binary during linking. This must work even if \$libdir does
12722
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12724
# Whether we need a single -rpath flag with a separated argument.
12725
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12727
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12728
# resulting binary.
12729
hardcode_direct=$hardcode_direct_CXX
12731
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12732
# resulting binary.
12733
hardcode_minus_L=$hardcode_minus_L_CXX
12735
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12736
# the resulting binary.
12737
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12739
# Set to yes if building a shared library automatically hardcodes DIR into the library
12740
# and all subsequent libraries and executables linked against it.
12741
hardcode_automatic=$hardcode_automatic_CXX
12743
# Variables whose values should be saved in libtool wrapper scripts and
12744
# restored at relink time.
12745
variables_saved_for_relink="$variables_saved_for_relink"
12747
# Whether libtool must link a program against all its dependency libraries.
12748
link_all_deplibs=$link_all_deplibs_CXX
12750
# Compile-time system search path for libraries
12751
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12753
# Run-time system search path for libraries
12754
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12756
# Fix the shell variable \$srcfile for the compiler.
12757
fix_srcfile_path="$fix_srcfile_path_CXX"
12759
# Set to yes if exported symbols are required.
12760
always_export_symbols=$always_export_symbols_CXX
12762
# The commands to list exported symbols.
12763
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12765
# The commands to extract the exported symbol list from a shared archive.
12766
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12768
# Symbols that should not be listed in the preloaded symbols.
12769
exclude_expsyms=$lt_exclude_expsyms_CXX
12771
# Symbols that must always be exported.
12772
include_expsyms=$lt_include_expsyms_CXX
12774
# ### END LIBTOOL TAG CONFIG: $tagname
12780
# If there is no Makefile yet, we rely on a make rule to execute
12781
# `config.status --recheck' to rerun these tests and create the
12782
# libtool script then.
12783
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12784
if test -f "$ltmain_in"; then
12785
test -f Makefile && make "$ltmain"
12791
ac_cpp='$CPP $CPPFLAGS'
12792
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12793
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12794
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12800
with_gnu_ldcxx=$with_gnu_ld
12801
with_gnu_ld=$lt_save_with_gnu_ld
12802
lt_cv_path_LDCXX=$lt_cv_path_LD
12803
lt_cv_path_LD=$lt_save_path_LD
12804
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12805
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12813
if test -n "$F77" && test "X$F77" != "Xno"; then
12816
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12817
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12818
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12821
archive_cmds_need_lc_F77=no
12822
allow_undefined_flag_F77=
12823
always_export_symbols_F77=no
12824
archive_expsym_cmds_F77=
12825
export_dynamic_flag_spec_F77=
12826
hardcode_direct_F77=no
12827
hardcode_libdir_flag_spec_F77=
12828
hardcode_libdir_flag_spec_ld_F77=
12829
hardcode_libdir_separator_F77=
12830
hardcode_minus_L_F77=no
12831
hardcode_automatic_F77=no
12833
module_expsym_cmds_F77=
12834
link_all_deplibs_F77=unknown
12835
old_archive_cmds_F77=$old_archive_cmds
12836
no_undefined_flag_F77=
12837
whole_archive_flag_spec_F77=
12838
enable_shared_with_static_runtimes_F77=no
12840
# Source file extension for f77 test sources.
12843
# Object file extension for compiled f77 test sources.
12847
# Code to be used in simple compile tests
12848
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12850
# Code to be used in simple link tests
12851
lt_simple_link_test_code=" program t\n end\n"
12853
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12855
# If no C compiler was specified, use CC.
12858
# Allow CC to be a program name with arguments.
12862
# Allow CC to be a program name with arguments.
12867
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12869
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12870
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12871
echo "$as_me:$LINENO: result: $can_build_shared" >&5
12872
echo "${ECHO_T}$can_build_shared" >&6
12874
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12875
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12876
test "$can_build_shared" = "no" && enable_shared=no
12878
# On AIX, shared libraries and static libraries use the same namespace, and
12879
# are all built from PIC.
12882
test "$enable_shared" = yes && enable_static=no
12883
if test -n "$RANLIB"; then
12884
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12885
postinstall_cmds='$RANLIB $lib'
12889
test "$enable_shared" = yes && enable_static=no
12892
echo "$as_me:$LINENO: result: $enable_shared" >&5
12893
echo "${ECHO_T}$enable_shared" >&6
12895
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12896
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12897
# Make sure either enable_shared or enable_static is yes.
12898
test "$enable_shared" = yes || enable_static=yes
12899
echo "$as_me:$LINENO: result: $enable_static" >&5
12900
echo "${ECHO_T}$enable_static" >&6
12902
test "$ld_shlibs_F77" = no && can_build_shared=no
12907
lt_prog_compiler_wl_F77=
12908
lt_prog_compiler_pic_F77=
12909
lt_prog_compiler_static_F77=
12911
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12912
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12914
if test "$GCC" = yes; then
12915
lt_prog_compiler_wl_F77='-Wl,'
12916
lt_prog_compiler_static_F77='-static'
12920
# All AIX code is PIC.
12921
if test "$host_cpu" = ia64; then
12922
# AIX 5 now supports IA64 processor
12923
lt_prog_compiler_static_F77='-Bstatic'
12928
# FIXME: we need at least 68020 code to build shared libraries, but
12929
# adding the `-m68020' flag to GCC prevents building anything better,
12931
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12934
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12935
# PIC is the default for these OSes.
12938
mingw* | pw32* | os2*)
12939
# This hack is so that the source file can tell whether it is being
12940
# built for inclusion in a dll (and should export symbols for example).
12941
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12944
darwin* | rhapsody*)
12945
# PIC is the default on this platform
12946
# Common symbols not allowed in MH_DYLIB files
12947
lt_prog_compiler_pic_F77='-fno-common'
12951
# Just because we use GCC doesn't mean we suddenly get shared libraries
12952
# on systems that don't support them.
12953
lt_prog_compiler_can_build_shared_F77=no
12958
if test -d /usr/nec; then
12959
lt_prog_compiler_pic_F77=-Kconform_pic
12964
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12965
# not for PA HP-UX.
12966
case "$host_cpu" in
12971
lt_prog_compiler_pic_F77='-fPIC'
12977
lt_prog_compiler_pic_F77='-fPIC'
12981
# PORTME Check for flag to pass linker flags through the system compiler.
12984
lt_prog_compiler_wl_F77='-Wl,'
12985
if test "$host_cpu" = ia64; then
12986
# AIX 5 now supports IA64 processor
12987
lt_prog_compiler_static_F77='-Bstatic'
12989
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12993
# PIC is the default on this platform
12994
# Common symbols not allowed in MH_DYLIB files
12995
case "$cc_basename" in
12997
lt_prog_compiler_pic_F77='-qnocommon'
12998
lt_prog_compiler_wl_F77='-Wl,'
13003
mingw* | pw32* | os2*)
13004
# This hack is so that the source file can tell whether it is being
13005
# built for inclusion in a dll (and should export symbols for example).
13006
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13009
hpux9* | hpux10* | hpux11*)
13010
lt_prog_compiler_wl_F77='-Wl,'
13011
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13012
# not for PA HP-UX.
13013
case "$host_cpu" in
13018
lt_prog_compiler_pic_F77='+Z'
13021
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13022
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13025
irix5* | irix6* | nonstopux*)
13026
lt_prog_compiler_wl_F77='-Wl,'
13027
# PIC (with -KPIC) is the default.
13028
lt_prog_compiler_static_F77='-non_shared'
13032
lt_prog_compiler_pic_F77='-KPIC'
13033
lt_prog_compiler_static_F77='-Bstatic'
13037
case $cc_basename in
13039
lt_prog_compiler_wl_F77='-Wl,'
13040
lt_prog_compiler_pic_F77='-KPIC'
13041
lt_prog_compiler_static_F77='-static'
13043
pgcc | pgf77 | pgf90)
13044
# Portland Group compilers (*not* the Pentium gcc compiler,
13045
# which looks to be a dead project)
13046
lt_prog_compiler_wl_F77='-Wl,'
13047
lt_prog_compiler_pic_F77='-fpic'
13048
lt_prog_compiler_static_F77='-static'
13051
lt_prog_compiler_wl_F77='-Wl,'
13052
# All Alpha code is PIC.
13053
lt_prog_compiler_static_F77='-non_shared'
13058
osf3* | osf4* | osf5*)
13059
lt_prog_compiler_wl_F77='-Wl,'
13060
# All OSF/1 code is PIC.
13061
lt_prog_compiler_static_F77='-non_shared'
13065
lt_prog_compiler_pic_F77='-Kpic'
13066
lt_prog_compiler_static_F77='-dn'
13070
lt_prog_compiler_wl_F77='-Wl,'
13071
lt_prog_compiler_pic_F77='-KPIC'
13072
lt_prog_compiler_static_F77='-Bstatic'
13076
lt_prog_compiler_wl_F77='-Qoption ld '
13077
lt_prog_compiler_pic_F77='-PIC'
13078
lt_prog_compiler_static_F77='-Bstatic'
13081
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13082
lt_prog_compiler_wl_F77='-Wl,'
13083
lt_prog_compiler_pic_F77='-KPIC'
13084
lt_prog_compiler_static_F77='-Bstatic'
13088
if test -d /usr/nec ;then
13089
lt_prog_compiler_pic_F77='-Kconform_pic'
13090
lt_prog_compiler_static_F77='-Bstatic'
13095
lt_prog_compiler_wl_F77='-Wl,'
13096
lt_prog_compiler_can_build_shared_F77=no
13100
lt_prog_compiler_pic_F77='-pic'
13101
lt_prog_compiler_static_F77='-Bstatic'
13105
lt_prog_compiler_can_build_shared_F77=no
13110
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13111
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13114
# Check to make sure the PIC flag actually works.
13116
if test -n "$lt_prog_compiler_pic_F77"; then
13118
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13119
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13120
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13121
echo $ECHO_N "(cached) $ECHO_C" >&6
13123
lt_prog_compiler_pic_works_F77=no
13124
ac_outfile=conftest.$ac_objext
13125
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13126
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13127
# Insert the option either (1) after the last *FLAGS variable, or
13128
# (2) before a word containing "conftest.", or (3) at the end.
13129
# Note that $ac_compile itself does not contain backslashes and begins
13130
# with a dollar sign (not a hyphen), so the echo should work correctly.
13131
# The option is referenced via a variable to avoid confusing sed.
13132
lt_compile=`echo "$ac_compile" | $SED \
13133
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13134
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13135
-e 's:$: $lt_compiler_flag:'`
13136
(eval echo "\"\$as_me:13136: $lt_compile\"" >&5)
13137
(eval "$lt_compile" 2>conftest.err)
13139
cat conftest.err >&5
13140
echo "$as_me:13140: \$? = $ac_status" >&5
13141
if (exit $ac_status) && test -s "$ac_outfile"; then
13142
# The compiler can only warn and ignore the option if not recognized
13143
# So say no if there are warnings
13144
if test ! -s conftest.err; then
13145
lt_prog_compiler_pic_works_F77=yes
13151
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13152
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13154
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13155
case $lt_prog_compiler_pic_F77 in
13157
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13160
lt_prog_compiler_pic_F77=
13161
lt_prog_compiler_can_build_shared_F77=no
13166
# For platforms which do not support PIC, -DPIC is meaningless:
13168
lt_prog_compiler_pic_F77=
13171
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13175
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13176
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13177
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13178
echo $ECHO_N "(cached) $ECHO_C" >&6
13180
lt_cv_prog_compiler_c_o_F77=no
13181
$rm -r conftest 2>/dev/null
13185
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13187
lt_compiler_flag="-o out/conftest2.$ac_objext"
13188
# Insert the option either (1) after the last *FLAGS variable, or
13189
# (2) before a word containing "conftest.", or (3) at the end.
13190
# Note that $ac_compile itself does not contain backslashes and begins
13191
# with a dollar sign (not a hyphen), so the echo should work correctly.
13192
lt_compile=`echo "$ac_compile" | $SED \
13193
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13194
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13195
-e 's:$: $lt_compiler_flag:'`
13196
(eval echo "\"\$as_me:13196: $lt_compile\"" >&5)
13197
(eval "$lt_compile" 2>out/conftest.err)
13199
cat out/conftest.err >&5
13200
echo "$as_me:13200: \$? = $ac_status" >&5
13201
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13203
# The compiler can only warn and ignore the option if not recognized
13204
# So say no if there are warnings
13205
if test ! -s out/conftest.err; then
13206
lt_cv_prog_compiler_c_o_F77=yes
13211
# SGI C++ compiler will create directory out/ii_files/ for
13212
# template instantiation
13213
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13214
$rm out/* && rmdir out
13220
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13221
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13224
hard_links="nottested"
13225
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13226
# do not overwrite the value of need_locks provided by the user
13227
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13228
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13231
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13233
ln conftest.a conftest.b 2>&5 || hard_links=no
13234
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13235
echo "$as_me:$LINENO: result: $hard_links" >&5
13236
echo "${ECHO_T}$hard_links" >&6
13237
if test "$hard_links" = no; then
13238
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13239
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13246
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13247
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13250
allow_undefined_flag_F77=
13251
enable_shared_with_static_runtimes_F77=no
13253
archive_expsym_cmds_F77=
13254
old_archive_From_new_cmds_F77=
13255
old_archive_from_expsyms_cmds_F77=
13256
export_dynamic_flag_spec_F77=
13257
whole_archive_flag_spec_F77=
13258
thread_safe_flag_spec_F77=
13259
hardcode_libdir_flag_spec_F77=
13260
hardcode_libdir_flag_spec_ld_F77=
13261
hardcode_libdir_separator_F77=
13262
hardcode_direct_F77=no
13263
hardcode_minus_L_F77=no
13264
hardcode_shlibpath_var_F77=unsupported
13265
link_all_deplibs_F77=unknown
13266
hardcode_automatic_F77=no
13268
module_expsym_cmds_F77=
13269
always_export_symbols_F77=no
13270
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13271
# include_expsyms should be a list of space-separated symbols to be *always*
13272
# included in the symbol list
13273
include_expsyms_F77=
13274
# exclude_expsyms can be an extended regexp of symbols to exclude
13275
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13276
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13277
# as well as any symbol that contains `d'.
13278
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13279
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13280
# platforms (ab)use it in PIC code, but their linkers get confused if
13281
# the symbol is explicitly referenced. Since portable code cannot
13282
# rely on this symbol name, it's probably fine to never include it in
13283
# preloaded symbol tables.
13284
extract_expsyms_cmds=
13287
cygwin* | mingw* | pw32*)
13288
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13289
# When not using gcc, we currently assume that we are using
13290
# Microsoft Visual C++.
13291
if test "$GCC" != yes; then
13301
if test "$with_gnu_ld" = yes; then
13302
# If archive_cmds runs LD, not CC, wlarc should be empty
13305
# See if GNU ld supports shared libraries.
13307
aix3* | aix4* | aix5*)
13308
# On AIX/PPC, the GNU linker is very broken
13309
if test "$host_cpu" != ia64; then
13313
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13314
*** to be unable to reliably create shared libraries on AIX.
13315
*** Therefore, libtool is disabling shared libraries support. If you
13316
*** really care for shared libraries, you may want to modify your PATH
13317
*** so that a non-GNU linker is found, and then restart.
13324
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)'
13325
hardcode_libdir_flag_spec_F77='-L$libdir'
13326
hardcode_minus_L_F77=yes
13328
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13329
# that the semantics of dynamic libraries on AmigaOS, at least up
13330
# to version 4, is to share data among multiple programs linked
13331
# with the same dynamic library. Since this doesn't match the
13332
# behavior of shared libraries on other platforms, we can't use
13338
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13339
allow_undefined_flag_F77=unsupported
13340
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13341
# support --undefined. This deserves some investigation. FIXME
13342
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13348
cygwin* | mingw* | pw32*)
13349
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13350
# as there is no search path for DLLs.
13351
hardcode_libdir_flag_spec_F77='-L$libdir'
13352
allow_undefined_flag_F77=unsupported
13353
always_export_symbols_F77=no
13354
enable_shared_with_static_runtimes_F77=yes
13355
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13357
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13358
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13359
# If the export-symbols file already is a .def file (1st line
13360
# is EXPORTS), use it as is; otherwise, prepend...
13361
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13362
cp $export_symbols $output_objdir/$soname.def;
13364
echo EXPORTS > $output_objdir/$soname.def;
13365
cat $export_symbols >> $output_objdir/$soname.def;
13367
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13374
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13375
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13378
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13379
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13384
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13388
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13389
*** create shared libraries on Solaris systems. Therefore, libtool
13390
*** is disabling shared libraries support. We urge you to upgrade GNU
13391
*** binutils to release 2.9.1 or newer. Another option is to modify
13392
*** your PATH or compiler configuration so that the native linker is
13393
*** used, and then restart.
13396
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13397
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13398
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13405
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13407
hardcode_direct_F77=yes
13408
hardcode_shlibpath_var_F77=no
13412
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13414
case $CC,$host_cpu in
13415
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
13416
tmp_addflag=' -fpic' ;;
13417
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13418
tmp_addflag=' -i_dynamic' ;;
13419
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13420
tmp_addflag=' -i_dynamic -nofor_main' ;;
13421
ifc* | ifort*) # Intel Fortran compiler
13422
tmp_addflag=' -nofor_main' ;;
13424
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13425
supports_anon_versioning=no
13426
case `$LD -v 2>/dev/null` in
13427
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13428
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13429
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13430
*\ 2.11.*) ;; # other 2.11 versions
13431
*) supports_anon_versioning=yes ;;
13433
if test $supports_anon_versioning = yes; then
13434
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13435
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13436
$echo "local: *; };" >> $output_objdir/$libname.ver~
13437
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13439
archive_expsym_cmds_F77=$archive_cmds_F77
13447
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13448
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13449
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13456
if test "$ld_shlibs_F77" = yes; then
13457
runpath_var=LD_RUN_PATH
13458
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13459
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13460
# ancient GNU ld didn't support --whole-archive et. al.
13461
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13462
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13464
whole_archive_flag_spec_F77=
13468
# PORTME fill in a description of your system's linker (not GNU ld)
13471
allow_undefined_flag_F77=unsupported
13472
always_export_symbols_F77=yes
13473
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'
13474
# Note: this linker hardcodes the directories in LIBPATH if there
13475
# are no directories specified by -L.
13476
hardcode_minus_L_F77=yes
13477
if test "$GCC" = yes && test -z "$link_static_flag"; then
13478
# Neither direct hardcoding nor static linking is supported with a
13480
hardcode_direct_F77=unsupported
13485
if test "$host_cpu" = ia64; then
13486
# On IA64, the linker does run time linking by default, so we don't
13487
# have to do anything special.
13488
aix_use_runtimelinking=no
13489
exp_sym_flag='-Bexport'
13492
# If we're using GNU nm, then we don't want the "-C" option.
13493
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13494
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13495
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'
13497
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'
13499
aix_use_runtimelinking=no
13501
# Test if we are trying to use run time linking or normal
13502
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13503
# need to do runtime linking.
13504
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13505
for ld_flag in $LDFLAGS; do
13506
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13507
aix_use_runtimelinking=yes
13513
exp_sym_flag='-bexport'
13514
no_entry_flag='-bnoentry'
13517
# When large executables or shared objects are built, AIX ld can
13518
# have problems creating the table of contents. If linking a library
13519
# or program results in "error TOC overflow" add -mminimal-toc to
13520
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13521
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13523
archive_cmds_F77=''
13524
hardcode_direct_F77=yes
13525
hardcode_libdir_separator_F77=':'
13526
link_all_deplibs_F77=yes
13528
if test "$GCC" = yes; then
13529
case $host_os in aix4.[012]|aix4.[012].*)
13530
# We only want to do this on AIX 4.2 and lower, the check
13531
# below for broken collect2 doesn't work under 4.3+
13532
collect2name=`${CC} -print-prog-name=collect2`
13533
if test -f "$collect2name" && \
13534
strings "$collect2name" | grep resolve_lib_name >/dev/null
13536
# We have reworked collect2
13537
hardcode_direct_F77=yes
13539
# We have old collect2
13540
hardcode_direct_F77=unsupported
13541
# It fails to find uninstalled libraries when the uninstalled
13542
# path is not listed in the libpath. Setting hardcode_minus_L
13543
# to unsupported forces relinking
13544
hardcode_minus_L_F77=yes
13545
hardcode_libdir_flag_spec_F77='-L$libdir'
13546
hardcode_libdir_separator_F77=
13549
shared_flag='-shared'
13550
if test "$aix_use_runtimelinking" = yes; then
13551
shared_flag="$shared_flag "'${wl}-G'
13555
if test "$host_cpu" = ia64; then
13556
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13557
# chokes on -Wl,-G. The following line is correct:
13560
if test "$aix_use_runtimelinking" = yes; then
13561
shared_flag='${wl}-G'
13563
shared_flag='${wl}-bM:SRE'
13568
# It seems that -bexpall does not export symbols beginning with
13569
# underscore (_), so it is better to generate a list of symbols to export.
13570
always_export_symbols_F77=yes
13571
if test "$aix_use_runtimelinking" = yes; then
13572
# Warning - without using the other runtime loading flags (-brtl),
13573
# -berok will link without error, but may produce a broken library.
13574
allow_undefined_flag_F77='-berok'
13575
# Determine the default libpath from the value encoded in an empty executable.
13576
cat >conftest.$ac_ext <<_ACEOF
13581
rm -f conftest.$ac_objext conftest$ac_exeext
13582
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13583
(eval $ac_link) 2>conftest.er1
13585
grep -v '^ *+' conftest.er1 >conftest.err
13587
cat conftest.err >&5
13588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589
(exit $ac_status); } &&
13590
{ ac_try='test -z "$ac_f77_werror_flag"
13591
|| test ! -s conftest.err'
13592
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593
(eval $ac_try) 2>&5
13595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596
(exit $ac_status); }; } &&
13597
{ ac_try='test -s conftest$ac_exeext'
13598
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599
(eval $ac_try) 2>&5
13601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602
(exit $ac_status); }; }; then
13604
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13606
# Check for a 64-bit object if we didn't find anything.
13607
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13610
echo "$as_me: failed program was:" >&5
13611
sed 's/^/| /' conftest.$ac_ext >&5
13614
rm -f conftest.err conftest.$ac_objext \
13615
conftest$ac_exeext conftest.$ac_ext
13616
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13618
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13619
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13621
if test "$host_cpu" = ia64; then
13622
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13623
allow_undefined_flag_F77="-z nodefs"
13624
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13626
# Determine the default libpath from the value encoded in an empty executable.
13627
cat >conftest.$ac_ext <<_ACEOF
13632
rm -f conftest.$ac_objext conftest$ac_exeext
13633
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13634
(eval $ac_link) 2>conftest.er1
13636
grep -v '^ *+' conftest.er1 >conftest.err
13638
cat conftest.err >&5
13639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640
(exit $ac_status); } &&
13641
{ ac_try='test -z "$ac_f77_werror_flag"
13642
|| test ! -s conftest.err'
13643
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644
(eval $ac_try) 2>&5
13646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647
(exit $ac_status); }; } &&
13648
{ ac_try='test -s conftest$ac_exeext'
13649
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650
(eval $ac_try) 2>&5
13652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653
(exit $ac_status); }; }; then
13655
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13657
# Check for a 64-bit object if we didn't find anything.
13658
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13661
echo "$as_me: failed program was:" >&5
13662
sed 's/^/| /' conftest.$ac_ext >&5
13665
rm -f conftest.err conftest.$ac_objext \
13666
conftest$ac_exeext conftest.$ac_ext
13667
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13669
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13670
# Warning - without using the other run time loading flags,
13671
# -berok will link without error, but may produce a broken library.
13672
no_undefined_flag_F77=' ${wl}-bernotok'
13673
allow_undefined_flag_F77=' ${wl}-berok'
13674
# -bexpall does not export symbols beginning with underscore (_)
13675
always_export_symbols_F77=yes
13676
# Exported symbols can be pulled into shared objects from archives
13677
whole_archive_flag_spec_F77=' '
13678
archive_cmds_need_lc_F77=yes
13679
# This is similar to how AIX traditionally builds it's shared libraries.
13680
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13686
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)'
13687
hardcode_libdir_flag_spec_F77='-L$libdir'
13688
hardcode_minus_L_F77=yes
13689
# see comment about different semantics on the GNU ld section
13694
export_dynamic_flag_spec_F77=-rdynamic
13697
cygwin* | mingw* | pw32*)
13698
# When not using gcc, we currently assume that we are using
13699
# Microsoft Visual C++.
13700
# hardcode_libdir_flag_spec is actually meaningless, as there is
13701
# no search path for DLLs.
13702
hardcode_libdir_flag_spec_F77=' '
13703
allow_undefined_flag_F77=unsupported
13704
# Tell ltmain to make .lib files, not .a files.
13706
# Tell ltmain to make .dll files, not .so files.
13708
# FIXME: Setting linknames here is a bad hack.
13709
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13710
# The linker will automatically build a .lib file if we build a DLL.
13711
old_archive_From_new_cmds_F77='true'
13712
# FIXME: Should let the user specify the lib program.
13713
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13714
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13715
enable_shared_with_static_runtimes_F77=yes
13718
darwin* | rhapsody*)
13720
rhapsody* | darwin1.[012])
13721
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13724
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13725
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13727
case ${MACOSX_DEPLOYMENT_TARGET} in
13729
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13732
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13738
archive_cmds_need_lc_F77=no
13739
hardcode_direct_F77=no
13740
hardcode_automatic_F77=yes
13741
hardcode_shlibpath_var_F77=unsupported
13742
whole_archive_flag_spec_F77=''
13743
link_all_deplibs_F77=yes
13744
if test "$GCC" = yes ; then
13745
output_verbose_link_cmd='echo'
13746
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13747
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13748
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13749
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13750
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}'
13752
case "$cc_basename" in
13754
output_verbose_link_cmd='echo'
13755
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13756
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13757
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13758
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13759
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}'
13769
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13770
hardcode_libdir_flag_spec_F77='-L$libdir'
13771
hardcode_shlibpath_var_F77=no
13778
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13779
# support. Future versions do this automatically, but an explicit c++rt0.o
13780
# does not break anything, and helps significantly (at the cost of a little
13783
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13784
hardcode_libdir_flag_spec_F77='-R$libdir'
13785
hardcode_direct_F77=yes
13786
hardcode_shlibpath_var_F77=no
13789
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
13791
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13792
hardcode_direct_F77=yes
13793
hardcode_minus_L_F77=yes
13794
hardcode_shlibpath_var_F77=no
13797
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13798
freebsd* | kfreebsd*-gnu | dragonfly*)
13799
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13800
hardcode_libdir_flag_spec_F77='-R$libdir'
13801
hardcode_direct_F77=yes
13802
hardcode_shlibpath_var_F77=no
13806
if test "$GCC" = yes; then
13807
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'
13809
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'
13811
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13812
hardcode_libdir_separator_F77=:
13813
hardcode_direct_F77=yes
13815
# hardcode_minus_L: Not really in the search PATH,
13816
# but as the default location of the library.
13817
hardcode_minus_L_F77=yes
13818
export_dynamic_flag_spec_F77='${wl}-E'
13822
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13823
case "$host_cpu" in
13825
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13828
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13832
case "$host_cpu" in
13834
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13837
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13841
if test "$with_gnu_ld" = no; then
13842
case "$host_cpu" in
13844
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13845
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13846
hardcode_libdir_separator_F77=:
13847
hardcode_direct_F77=no
13848
hardcode_shlibpath_var_F77=no
13851
hardcode_libdir_flag_spec_F77='-L$libdir'
13852
hardcode_direct_F77=no
13853
hardcode_shlibpath_var_F77=no
13855
# hardcode_minus_L: Not really in the search PATH,
13856
# but as the default location of the library.
13857
hardcode_minus_L_F77=yes
13860
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13861
hardcode_libdir_separator_F77=:
13862
hardcode_direct_F77=yes
13863
export_dynamic_flag_spec_F77='${wl}-E'
13865
# hardcode_minus_L: Not really in the search PATH,
13866
# but as the default location of the library.
13867
hardcode_minus_L_F77=yes
13873
irix5* | irix6* | nonstopux*)
13874
if test "$GCC" = yes; then
13875
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'
13877
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'
13878
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13880
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13881
hardcode_libdir_separator_F77=:
13882
link_all_deplibs_F77=yes
13886
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13887
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13889
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13891
hardcode_libdir_flag_spec_F77='-R$libdir'
13892
hardcode_direct_F77=yes
13893
hardcode_shlibpath_var_F77=no
13897
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13898
hardcode_direct_F77=yes
13899
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13900
hardcode_libdir_separator_F77=:
13901
hardcode_shlibpath_var_F77=no
13905
hardcode_direct_F77=yes
13906
hardcode_shlibpath_var_F77=no
13907
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13908
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13909
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13910
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13911
export_dynamic_flag_spec_F77='${wl}-E'
13914
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13915
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13916
hardcode_libdir_flag_spec_F77='-R$libdir'
13919
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13920
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13927
hardcode_libdir_flag_spec_F77='-L$libdir'
13928
hardcode_minus_L_F77=yes
13929
allow_undefined_flag_F77=unsupported
13930
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'
13931
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13935
if test "$GCC" = yes; then
13936
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13937
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'
13939
allow_undefined_flag_F77=' -expect_unresolved \*'
13940
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'
13942
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13943
hardcode_libdir_separator_F77=:
13946
osf4* | osf5*) # as osf3* with the addition of -msym flag
13947
if test "$GCC" = yes; then
13948
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13949
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'
13950
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13952
allow_undefined_flag_F77=' -expect_unresolved \*'
13953
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'
13954
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~
13955
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13957
# Both c and cxx compiler support -rpath directly
13958
hardcode_libdir_flag_spec_F77='-rpath $libdir'
13960
hardcode_libdir_separator_F77=:
13964
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13965
hardcode_shlibpath_var_F77=no
13966
export_dynamic_flag_spec_F77='${wl}-Bexport'
13967
runpath_var=LD_RUN_PATH
13968
hardcode_runpath_var=yes
13972
no_undefined_flag_F77=' -z text'
13973
if test "$GCC" = yes; then
13974
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13975
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13976
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13978
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13979
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13980
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13982
hardcode_libdir_flag_spec_F77='-R$libdir'
13983
hardcode_shlibpath_var_F77=no
13985
solaris2.[0-5] | solaris2.[0-5].*) ;;
13986
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
13987
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
13989
link_all_deplibs_F77=yes
13993
if test "x$host_vendor" = xsequent; then
13994
# Use $CC to link under sequent, because it throws in some extra .o
13995
# files that make .init and .fini sections work.
13996
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13998
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14000
hardcode_libdir_flag_spec_F77='-L$libdir'
14001
hardcode_direct_F77=yes
14002
hardcode_minus_L_F77=yes
14003
hardcode_shlibpath_var_F77=no
14007
case $host_vendor in
14009
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14010
hardcode_direct_F77=yes # is this really true???
14013
## LD is ld it makes a PLAMLIB
14014
## CC just makes a GrossModule.
14015
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14016
reload_cmds_F77='$CC -r -o $output$reload_objs'
14017
hardcode_direct_F77=no
14020
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14021
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14024
runpath_var='LD_RUN_PATH'
14025
hardcode_shlibpath_var_F77=no
14029
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14030
hardcode_shlibpath_var_F77=no
14031
export_dynamic_flag_spec_F77='-Bexport'
14035
if test -d /usr/nec; then
14036
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14037
hardcode_shlibpath_var_F77=no
14038
runpath_var=LD_RUN_PATH
14039
hardcode_runpath_var=yes
14045
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14046
hardcode_direct_F77=yes
14047
hardcode_minus_L_F77=no
14048
hardcode_shlibpath_var_F77=no
14049
hardcode_runpath_var=yes
14050
runpath_var=LD_RUN_PATH
14053
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14054
no_undefined_flag_F77='${wl}-z ${wl}text'
14055
if test "$GCC" = yes; then
14056
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14058
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14060
runpath_var='LD_RUN_PATH'
14061
hardcode_shlibpath_var_F77=no
14065
no_undefined_flag_F77=' -z text'
14066
# $CC -shared without GNU ld will not create a library from C++
14067
# object files and a static libstdc++, better avoid it by now
14068
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14069
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14070
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14071
hardcode_libdir_flag_spec_F77=
14072
hardcode_shlibpath_var_F77=no
14073
runpath_var='LD_RUN_PATH'
14077
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14078
hardcode_libdir_flag_spec_F77='-L$libdir'
14079
hardcode_shlibpath_var_F77=no
14088
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14089
echo "${ECHO_T}$ld_shlibs_F77" >&6
14090
test "$ld_shlibs_F77" = no && can_build_shared=no
14092
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14093
if test "$GCC" = yes; then
14094
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14098
# Do we need to explicitly link libc?
14100
case "x$archive_cmds_need_lc_F77" in
14102
# Assume -lc should be added
14103
archive_cmds_need_lc_F77=yes
14105
if test "$enable_shared" = yes && test "$GCC" = yes; then
14106
case $archive_cmds_F77 in
14108
# FIXME: we may have to deal with multi-command sequences.
14111
# Test whether the compiler implicitly links with -lc since on some
14112
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14113
# to ld, don't add -lc before -lgcc.
14114
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14115
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14117
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14119
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14120
(eval $ac_compile) 2>&5
14122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123
(exit $ac_status); } 2>conftest.err; then
14126
libobjs=conftest.$ac_objext
14128
wl=$lt_prog_compiler_wl_F77
14134
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14135
allow_undefined_flag_F77=
14136
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14137
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140
(exit $ac_status); }
14142
archive_cmds_need_lc_F77=no
14144
archive_cmds_need_lc_F77=yes
14146
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14148
cat conftest.err 1>&5
14151
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14152
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14159
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14160
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14161
library_names_spec=
14162
libname_spec='lib$name'
14166
postuninstall_cmds=
14170
shlibpath_overrides_runpath=unknown
14172
dynamic_linker="$host_os ld.so"
14173
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14174
if test "$GCC" = yes; then
14175
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14176
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14177
# if the path contains ";" then we assume it to be the separator
14178
# otherwise default to the standard path separator (i.e. ":") - it is
14179
# assumed that no part of a normal pathname contains ";" but that should
14180
# okay in the real world where ";" in dirpaths is itself problematic.
14181
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14183
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14186
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14188
need_lib_prefix=unknown
14189
hardcode_into_libs=no
14191
# when you set need_version to no, make sure it does not cause -set_version
14192
# flags to be left without arguments
14193
need_version=unknown
14198
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14199
shlibpath_var=LIBPATH
14201
# AIX 3 has no versioning support, so we append a major version to the name.
14202
soname_spec='${libname}${release}${shared_ext}$major'
14209
hardcode_into_libs=yes
14210
if test "$host_cpu" = ia64; then
14211
# AIX 5 supports IA64
14212
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14213
shlibpath_var=LD_LIBRARY_PATH
14215
# With GCC up to 2.95.x, collect2 would create an import file
14216
# for dependence libraries. The import file would start with
14217
# the line `#! .'. This would cause the generated library to
14218
# depend on `.', always an invalid library. This was fixed in
14219
# development snapshots of GCC prior to 3.0.
14221
aix4 | aix4.[01] | aix4.[01].*)
14222
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14224
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14227
can_build_shared=no
14231
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14232
# soname into executable. Probably we can add versioning support to
14233
# collect2, so additional links can be useful in future.
14234
if test "$aix_use_runtimelinking" = yes; then
14235
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14236
# instead of lib<name>.a to let people know that these are not
14237
# typical AIX shared libraries.
14238
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14240
# We preserve .a as extension for shared libraries through AIX4.2
14241
# and later when we are not doing run time linking.
14242
library_names_spec='${libname}${release}.a $libname.a'
14243
soname_spec='${libname}${release}${shared_ext}$major'
14245
shlibpath_var=LIBPATH
14250
library_names_spec='$libname.ixlibrary $libname.a'
14251
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14252
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'
14256
library_names_spec='${libname}${shared_ext}'
14257
dynamic_linker="$host_os ld.so"
14258
shlibpath_var=LIBRARY_PATH
14264
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14265
soname_spec='${libname}${release}${shared_ext}$major'
14266
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14267
shlibpath_var=LD_LIBRARY_PATH
14268
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14269
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14270
# the default ld.so.conf also contains /usr/contrib/lib and
14271
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14272
# libtool to hard-code these into programs
14275
cygwin* | mingw* | pw32*)
14276
version_type=windows
14281
case $GCC,$host_os in
14282
yes,cygwin* | yes,mingw* | yes,pw32*)
14283
library_names_spec='$libname.dll.a'
14284
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14285
postinstall_cmds='base_file=`basename \${file}`~
14286
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14287
dldir=$destdir/`dirname \$dlpath`~
14288
test -d \$dldir || mkdir -p \$dldir~
14289
$install_prog $dir/$dlname \$dldir/$dlname'
14290
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14291
dlpath=$dir/\$dldll~
14293
shlibpath_overrides_runpath=yes
14297
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14298
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14299
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14302
# MinGW DLLs use traditional 'lib' prefix
14303
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14304
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14305
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14306
# It is most probably a Windows format PATH printed by
14307
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14308
# path with ; separators, and with drive letters. We can handle the
14309
# drive letters (cygwin fileutils understands them), so leave them,
14310
# especially as we might pass files found there to a mingw objdump,
14311
# which wouldn't understand a cygwinified path. Ahh.
14312
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14314
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14318
# pw32 DLLs use 'pw' prefix rather than 'lib'
14319
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14325
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14328
dynamic_linker='Win32 ld.exe'
14329
# FIXME: first we should search . and the directory the executable is in
14333
darwin* | rhapsody*)
14334
dynamic_linker="$host_os dyld"
14335
version_type=darwin
14338
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14339
soname_spec='${libname}${release}${major}$shared_ext'
14340
shlibpath_overrides_runpath=yes
14341
shlibpath_var=DYLD_LIBRARY_PATH
14342
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14343
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14344
if test "$GCC" = yes; then
14345
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14347
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14349
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14356
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14357
soname_spec='${libname}${release}${shared_ext}$major'
14358
shlibpath_var=LD_LIBRARY_PATH
14369
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14370
soname_spec='${libname}${release}${shared_ext}$major'
14371
shlibpath_var=LD_LIBRARY_PATH
14372
shlibpath_overrides_runpath=no
14373
hardcode_into_libs=yes
14374
dynamic_linker='GNU ld.so'
14377
freebsd* | dragonfly*)
14378
# DragonFly does not have aout. When/if they implement a new
14379
# versioning mechanism, adjust this.
14380
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14381
version_type=freebsd-$objformat
14382
case $version_type in
14384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14389
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14393
shlibpath_var=LD_LIBRARY_PATH
14396
shlibpath_overrides_runpath=yes
14398
freebsd3.[01]* | freebsdelf3.[01]*)
14399
shlibpath_overrides_runpath=yes
14400
hardcode_into_libs=yes
14403
shlibpath_overrides_runpath=no
14404
hardcode_into_libs=yes
14413
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14414
soname_spec='${libname}${release}${shared_ext}$major'
14415
shlibpath_var=LD_LIBRARY_PATH
14416
hardcode_into_libs=yes
14419
hpux9* | hpux10* | hpux11*)
14420
# Give a soname corresponding to the major version so that dld.sl refuses to
14421
# link against other versions.
14425
case "$host_cpu" in
14428
hardcode_into_libs=yes
14429
dynamic_linker="$host_os dld.so"
14430
shlibpath_var=LD_LIBRARY_PATH
14431
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14432
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14433
soname_spec='${libname}${release}${shared_ext}$major'
14434
if test "X$HPUX_IA64_MODE" = X32; then
14435
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14437
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14439
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14443
hardcode_into_libs=yes
14444
dynamic_linker="$host_os dld.sl"
14445
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14446
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14447
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448
soname_spec='${libname}${release}${shared_ext}$major'
14449
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14450
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14454
dynamic_linker="$host_os dld.sl"
14455
shlibpath_var=SHLIB_PATH
14456
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14457
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14458
soname_spec='${libname}${release}${shared_ext}$major'
14461
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14462
postinstall_cmds='chmod 555 $lib'
14465
irix5* | irix6* | nonstopux*)
14467
nonstopux*) version_type=nonstopux ;;
14469
if test "$lt_cv_prog_gnu_ld" = yes; then
14477
soname_spec='${libname}${release}${shared_ext}$major'
14478
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14480
irix5* | nonstopux*)
14481
libsuff= shlibsuff=
14484
case $LD in # libtool.m4 will add one of these switches to LD
14485
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14486
libsuff= shlibsuff= libmagic=32-bit;;
14487
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14488
libsuff=32 shlibsuff=N32 libmagic=N32;;
14489
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14490
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14491
*) libsuff= shlibsuff= libmagic=never-match;;
14495
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14496
shlibpath_overrides_runpath=no
14497
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14498
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14499
hardcode_into_libs=yes
14502
# No shared lib support for Linux oldld, aout, or coff.
14503
linux*oldld* | linux*aout* | linux*coff*)
14507
# This must be Linux ELF.
14512
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14513
soname_spec='${libname}${release}${shared_ext}$major'
14514
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14515
shlibpath_var=LD_LIBRARY_PATH
14516
shlibpath_overrides_runpath=no
14517
# This implies no fast_install, which is unacceptable.
14518
# Some rework will be needed to allow for fast_install
14519
# before this can be enabled.
14520
hardcode_into_libs=yes
14522
# Append ld.so.conf contents to the search path
14523
if test -f /etc/ld.so.conf; then
14524
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14525
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14528
# We used to test for /lib/ld.so.1 and disable shared libraries on
14529
# powerpc, because MkLinux only supported shared libraries with the
14530
# GNU dynamic linker. Since this was broken with cross compilers,
14531
# most powerpc-linux boxes support dynamic linking these days and
14532
# people can always --disable-shared, the test was removed, and we
14533
# assume the GNU/Linux dynamic linker is in use.
14534
dynamic_linker='GNU/Linux ld.so'
14541
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14542
soname_spec='${libname}${release}${shared_ext}$major'
14543
shlibpath_var=LD_LIBRARY_PATH
14544
shlibpath_overrides_runpath=no
14545
hardcode_into_libs=yes
14546
dynamic_linker='GNU ld.so'
14553
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14554
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14555
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14556
dynamic_linker='NetBSD (a.out) ld.so'
14558
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14559
soname_spec='${libname}${release}${shared_ext}$major'
14560
dynamic_linker='NetBSD ld.elf_so'
14562
shlibpath_var=LD_LIBRARY_PATH
14563
shlibpath_overrides_runpath=yes
14564
hardcode_into_libs=yes
14569
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14570
shlibpath_var=LD_LIBRARY_PATH
14571
shlibpath_overrides_runpath=yes
14578
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579
soname_spec='${libname}${release}${shared_ext}$major'
14580
shlibpath_var=LD_LIBRARY_PATH
14581
shlibpath_overrides_runpath=yes
14588
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14589
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14590
shlibpath_var=LD_LIBRARY_PATH
14591
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14593
openbsd2.[89] | openbsd2.[89].*)
14594
shlibpath_overrides_runpath=no
14597
shlibpath_overrides_runpath=yes
14601
shlibpath_overrides_runpath=yes
14606
libname_spec='$name'
14609
library_names_spec='$libname${shared_ext} $libname.a'
14610
dynamic_linker='OS/2 ld.exe'
14611
shlibpath_var=LIBPATH
14614
osf3* | osf4* | osf5*)
14618
soname_spec='${libname}${release}${shared_ext}$major'
14619
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14620
shlibpath_var=LD_LIBRARY_PATH
14621
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14622
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14627
soname_spec='${libname}${release}${shared_ext}$major'
14628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14629
shlibpath_var=LD_LIBRARY_PATH
14636
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14637
soname_spec='${libname}${release}${shared_ext}$major'
14638
shlibpath_var=LD_LIBRARY_PATH
14639
shlibpath_overrides_runpath=yes
14640
hardcode_into_libs=yes
14641
# ldd complains unless libraries are executable
14642
postinstall_cmds='chmod +x $lib'
14647
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14648
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14649
shlibpath_var=LD_LIBRARY_PATH
14650
shlibpath_overrides_runpath=yes
14651
if test "$with_gnu_ld" = yes; then
14657
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14659
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14660
soname_spec='${libname}${release}${shared_ext}$major'
14661
shlibpath_var=LD_LIBRARY_PATH
14662
case $host_vendor in
14664
shlibpath_overrides_runpath=no
14666
export_dynamic_flag_spec='${wl}-Blargedynsym'
14667
runpath_var=LD_RUN_PATH
14675
shlibpath_overrides_runpath=no
14676
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14682
if test -d /usr/nec ;then
14684
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14685
soname_spec='$libname${shared_ext}.$major'
14686
shlibpath_var=LD_LIBRARY_PATH
14692
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14693
soname_spec='${libname}${release}${shared_ext}$major'
14694
shlibpath_var=LD_LIBRARY_PATH
14701
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14702
echo "${ECHO_T}$dynamic_linker" >&6
14703
test "$dynamic_linker" = no && can_build_shared=no
14705
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14706
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14707
hardcode_action_F77=
14708
if test -n "$hardcode_libdir_flag_spec_F77" || \
14709
test -n "$runpath_var_F77" || \
14710
test "X$hardcode_automatic_F77" = "Xyes" ; then
14712
# We can hardcode non-existant directories.
14713
if test "$hardcode_direct_F77" != no &&
14714
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14715
# have to relink, otherwise we might link with an installed library
14716
# when we should be linking with a yet-to-be-installed one
14717
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14718
test "$hardcode_minus_L_F77" != no; then
14719
# Linking always hardcodes the temporary library directory.
14720
hardcode_action_F77=relink
14722
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14723
hardcode_action_F77=immediate
14726
# We cannot hardcode anything, or else we can only hardcode existing
14728
hardcode_action_F77=unsupported
14730
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14731
echo "${ECHO_T}$hardcode_action_F77" >&6
14733
if test "$hardcode_action_F77" = relink; then
14734
# Fast installation is not supported
14735
enable_fast_install=no
14736
elif test "$shlibpath_overrides_runpath" = yes ||
14737
test "$enable_shared" = no; then
14738
# Fast installation is not necessary
14739
enable_fast_install=needless
14744
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14745
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14746
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14747
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14748
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14749
echo "$as_me:$LINENO: result: yes" >&5
14750
echo "${ECHO_T}yes" >&6
14752
# FIXME - insert some real tests, host_os isn't really good enough
14755
if test -n "$STRIP" ; then
14756
striplib="$STRIP -x"
14757
echo "$as_me:$LINENO: result: yes" >&5
14758
echo "${ECHO_T}yes" >&6
14760
echo "$as_me:$LINENO: result: no" >&5
14761
echo "${ECHO_T}no" >&6
14765
echo "$as_me:$LINENO: result: no" >&5
14766
echo "${ECHO_T}no" >&6
14773
# The else clause should only fire when bootstrapping the
14774
# libtool distribution, otherwise you forgot to ship ltmain.sh
14775
# with your package, and you will get complaints that there are
14776
# no rules to generate ltmain.sh.
14777
if test -f "$ltmain"; then
14778
# See if we are running on zsh, and set the options which allow our commands through
14779
# without removal of \ escapes.
14780
if test -n "${ZSH_VERSION+set}" ; then
14781
setopt NO_GLOB_SUBST
14783
# Now quote all the things that may contain metacharacters while being
14784
# careful not to overquote the AC_SUBSTed values. We take copies of the
14785
# variables and quote the copies for generation of the libtool script.
14786
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14788
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14789
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14790
deplibs_check_method reload_flag reload_cmds need_locks \
14791
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14792
lt_cv_sys_global_symbol_to_c_name_address \
14793
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14794
old_postinstall_cmds old_postuninstall_cmds \
14798
lt_prog_compiler_wl_F77 \
14799
lt_prog_compiler_pic_F77 \
14800
lt_prog_compiler_static_F77 \
14801
lt_prog_compiler_no_builtin_flag_F77 \
14802
export_dynamic_flag_spec_F77 \
14803
thread_safe_flag_spec_F77 \
14804
whole_archive_flag_spec_F77 \
14805
enable_shared_with_static_runtimes_F77 \
14806
old_archive_cmds_F77 \
14807
old_archive_from_new_cmds_F77 \
14808
predep_objects_F77 \
14809
postdep_objects_F77 \
14812
compiler_lib_search_path_F77 \
14814
archive_expsym_cmds_F77 \
14815
postinstall_cmds_F77 \
14816
postuninstall_cmds_F77 \
14817
old_archive_from_expsyms_cmds_F77 \
14818
allow_undefined_flag_F77 \
14819
no_undefined_flag_F77 \
14820
export_symbols_cmds_F77 \
14821
hardcode_libdir_flag_spec_F77 \
14822
hardcode_libdir_flag_spec_ld_F77 \
14823
hardcode_libdir_separator_F77 \
14824
hardcode_automatic_F77 \
14826
module_expsym_cmds_F77 \
14827
lt_cv_prog_compiler_c_o_F77 \
14828
exclude_expsyms_F77 \
14829
include_expsyms_F77; do
14832
old_archive_cmds_F77 | \
14833
old_archive_from_new_cmds_F77 | \
14834
archive_cmds_F77 | \
14835
archive_expsym_cmds_F77 | \
14836
module_cmds_F77 | \
14837
module_expsym_cmds_F77 | \
14838
old_archive_from_expsyms_cmds_F77 | \
14839
export_symbols_cmds_F77 | \
14840
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14841
postinstall_cmds | postuninstall_cmds | \
14842
old_postinstall_cmds | old_postuninstall_cmds | \
14843
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14844
# Double-quote double-evaled strings.
14845
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14848
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14854
*'\$0 --fallback-echo"')
14855
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14861
cat <<__EOF__ >> "$cfgfile"
14862
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14864
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14866
# Shell to use when invoking shell scripts.
14869
# Whether or not to build shared libraries.
14870
build_libtool_libs=$enable_shared
14872
# Whether or not to build static libraries.
14873
build_old_libs=$enable_static
14875
# Whether or not to add -lc for building shared libraries.
14876
build_libtool_need_lc=$archive_cmds_need_lc_F77
14878
# Whether or not to disallow shared libs when runtime libs are static
14879
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14881
# Whether or not to optimize for fast installation.
14882
fast_install=$enable_fast_install
14885
host_alias=$host_alias
14889
# The build system.
14890
build_alias=$build_alias
14894
# An echo program that does not interpret backslashes.
14899
AR_FLAGS=$lt_AR_FLAGS
14904
# A language-specific compiler.
14905
CC=$lt_compiler_F77
14907
# Is the compiler the GNU C compiler?
14913
# The linker used to build libraries.
14916
# Whether we need hard or soft links.
14919
# A BSD-compatible nm program.
14922
# A symbol stripping program
14925
# Used to examine libraries when file_magic_cmd begins "file"
14926
MAGIC_CMD=$MAGIC_CMD
14928
# Used on cygwin: DLL creation program.
14931
# Used on cygwin: object dumper.
14934
# Used on cygwin: assembler.
14937
# The name of the directory that contains temporary libtool files.
14940
# How to create reloadable object files.
14941
reload_flag=$lt_reload_flag
14942
reload_cmds=$lt_reload_cmds
14944
# How to pass a linker flag through the compiler.
14945
wl=$lt_lt_prog_compiler_wl_F77
14947
# Object file suffix (normally "o").
14948
objext="$ac_objext"
14950
# Old archive suffix (normally "a").
14953
# Shared library suffix (normally ".so").
14954
shrext_cmds='$shrext_cmds'
14956
# Executable file suffix (normally "").
14959
# Additional compiler flags for building library objects.
14960
pic_flag=$lt_lt_prog_compiler_pic_F77
14963
# What is the maximum length of a command?
14964
max_cmd_len=$lt_cv_sys_max_cmd_len
14966
# Does compiler simultaneously support -c and -o options?
14967
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14969
# Must we lock files when doing compilation ?
14970
need_locks=$lt_need_locks
14972
# Do we need the lib prefix for modules?
14973
need_lib_prefix=$need_lib_prefix
14975
# Do we need a version for libraries?
14976
need_version=$need_version
14978
# Whether dlopen is supported.
14979
dlopen_support=$enable_dlopen
14981
# Whether dlopen of programs is supported.
14982
dlopen_self=$enable_dlopen_self
14984
# Whether dlopen of statically linked programs is supported.
14985
dlopen_self_static=$enable_dlopen_self_static
14987
# Compiler flag to prevent dynamic linking.
14988
link_static_flag=$lt_lt_prog_compiler_static_F77
14990
# Compiler flag to turn off builtin functions.
14991
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14993
# Compiler flag to allow reflexive dlopens.
14994
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14996
# Compiler flag to generate shared objects directly from archives.
14997
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14999
# Compiler flag to generate thread-safe objects.
15000
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15002
# Library versioning type.
15003
version_type=$version_type
15005
# Format of library name prefix.
15006
libname_spec=$lt_libname_spec
15008
# List of archive names. First name is the real one, the rest are links.
15009
# The last name is the one that the linker finds with -lNAME.
15010
library_names_spec=$lt_library_names_spec
15012
# The coded name of the library, if different from the real name.
15013
soname_spec=$lt_soname_spec
15015
# Commands used to build and install an old-style archive.
15017
old_archive_cmds=$lt_old_archive_cmds_F77
15018
old_postinstall_cmds=$lt_old_postinstall_cmds
15019
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15021
# Create an old-style archive from a shared archive.
15022
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15024
# Create a temporary old-style archive to link instead of a shared archive.
15025
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15027
# Commands used to build and install a shared archive.
15028
archive_cmds=$lt_archive_cmds_F77
15029
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15030
postinstall_cmds=$lt_postinstall_cmds
15031
postuninstall_cmds=$lt_postuninstall_cmds
15033
# Commands used to build a loadable module (assumed same as above if empty)
15034
module_cmds=$lt_module_cmds_F77
15035
module_expsym_cmds=$lt_module_expsym_cmds_F77
15037
# Commands to strip libraries.
15038
old_striplib=$lt_old_striplib
15039
striplib=$lt_striplib
15041
# Dependencies to place before the objects being linked to create a
15043
predep_objects=$lt_predep_objects_F77
15045
# Dependencies to place after the objects being linked to create a
15047
postdep_objects=$lt_postdep_objects_F77
15049
# Dependencies to place before the objects being linked to create a
15051
predeps=$lt_predeps_F77
15053
# Dependencies to place after the objects being linked to create a
15055
postdeps=$lt_postdeps_F77
15057
# The library search path used internally by the compiler when linking
15058
# a shared library.
15059
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15061
# Method to check whether dependent libraries are shared objects.
15062
deplibs_check_method=$lt_deplibs_check_method
15064
# Command to use when deplibs_check_method == file_magic.
15065
file_magic_cmd=$lt_file_magic_cmd
15067
# Flag that allows shared libraries with undefined symbols to be built.
15068
allow_undefined_flag=$lt_allow_undefined_flag_F77
15070
# Flag that forces no undefined symbols.
15071
no_undefined_flag=$lt_no_undefined_flag_F77
15073
# Commands used to finish a libtool library installation in a directory.
15074
finish_cmds=$lt_finish_cmds
15076
# Same as above, but a single script fragment to be evaled but not shown.
15077
finish_eval=$lt_finish_eval
15079
# Take the output of nm and produce a listing of raw symbols and C names.
15080
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15082
# Transform the output of nm in a proper C declaration
15083
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15085
# Transform the output of nm in a C name address pair
15086
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15088
# This is the shared library runtime path variable.
15089
runpath_var=$runpath_var
15091
# This is the shared library path variable.
15092
shlibpath_var=$shlibpath_var
15094
# Is shlibpath searched before the hard-coded library search path?
15095
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15097
# How to hardcode a shared library path into an executable.
15098
hardcode_action=$hardcode_action_F77
15100
# Whether we should hardcode library paths into libraries.
15101
hardcode_into_libs=$hardcode_into_libs
15103
# Flag to hardcode \$libdir into a binary during linking.
15104
# This must work even if \$libdir does not exist.
15105
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15107
# If ld is used when linking, flag to hardcode \$libdir into
15108
# a binary during linking. This must work even if \$libdir does
15110
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15112
# Whether we need a single -rpath flag with a separated argument.
15113
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15115
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15116
# resulting binary.
15117
hardcode_direct=$hardcode_direct_F77
15119
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15120
# resulting binary.
15121
hardcode_minus_L=$hardcode_minus_L_F77
15123
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15124
# the resulting binary.
15125
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15127
# Set to yes if building a shared library automatically hardcodes DIR into the library
15128
# and all subsequent libraries and executables linked against it.
15129
hardcode_automatic=$hardcode_automatic_F77
15131
# Variables whose values should be saved in libtool wrapper scripts and
15132
# restored at relink time.
15133
variables_saved_for_relink="$variables_saved_for_relink"
15135
# Whether libtool must link a program against all its dependency libraries.
15136
link_all_deplibs=$link_all_deplibs_F77
15138
# Compile-time system search path for libraries
15139
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15141
# Run-time system search path for libraries
15142
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15144
# Fix the shell variable \$srcfile for the compiler.
15145
fix_srcfile_path="$fix_srcfile_path_F77"
15147
# Set to yes if exported symbols are required.
15148
always_export_symbols=$always_export_symbols_F77
15150
# The commands to list exported symbols.
15151
export_symbols_cmds=$lt_export_symbols_cmds_F77
15153
# The commands to extract the exported symbol list from a shared archive.
15154
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15156
# Symbols that should not be listed in the preloaded symbols.
15157
exclude_expsyms=$lt_exclude_expsyms_F77
15159
# Symbols that must always be exported.
15160
include_expsyms=$lt_include_expsyms_F77
15162
# ### END LIBTOOL TAG CONFIG: $tagname
15168
# If there is no Makefile yet, we rely on a make rule to execute
15169
# `config.status --recheck' to rerun these tests and create the
15170
# libtool script then.
15171
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15172
if test -f "$ltmain_in"; then
15173
test -f Makefile && make "$ltmain"
15179
ac_cpp='$CPP $CPPFLAGS'
15180
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15181
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15182
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15192
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15196
# Source file extension for Java test sources.
15199
# Object file extension for compiled Java test sources.
15203
# Code to be used in simple compile tests
15204
lt_simple_compile_test_code="class foo {}\n"
15206
# Code to be used in simple link tests
15207
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15209
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15211
# If no C compiler was specified, use CC.
15214
# Allow CC to be a program name with arguments.
15218
# Allow CC to be a program name with arguments.
15224
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15225
archive_cmds_need_lc_GCJ=no
15228
## There is no encapsulation within the following macros, do not change
15229
## the running order or otherwise move them around unless you know exactly
15230
## what you are doing...
15232
lt_prog_compiler_no_builtin_flag_GCJ=
15234
if test "$GCC" = yes; then
15235
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15238
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15239
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15240
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15241
echo $ECHO_N "(cached) $ECHO_C" >&6
15243
lt_cv_prog_compiler_rtti_exceptions=no
15244
ac_outfile=conftest.$ac_objext
15245
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15246
lt_compiler_flag="-fno-rtti -fno-exceptions"
15247
# Insert the option either (1) after the last *FLAGS variable, or
15248
# (2) before a word containing "conftest.", or (3) at the end.
15249
# Note that $ac_compile itself does not contain backslashes and begins
15250
# with a dollar sign (not a hyphen), so the echo should work correctly.
15251
# The option is referenced via a variable to avoid confusing sed.
15252
lt_compile=`echo "$ac_compile" | $SED \
15253
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15254
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15255
-e 's:$: $lt_compiler_flag:'`
15256
(eval echo "\"\$as_me:15256: $lt_compile\"" >&5)
15257
(eval "$lt_compile" 2>conftest.err)
15259
cat conftest.err >&5
15260
echo "$as_me:15260: \$? = $ac_status" >&5
15261
if (exit $ac_status) && test -s "$ac_outfile"; then
15262
# The compiler can only warn and ignore the option if not recognized
15263
# So say no if there are warnings
15264
if test ! -s conftest.err; then
15265
lt_cv_prog_compiler_rtti_exceptions=yes
15271
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15272
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15274
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15275
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15282
lt_prog_compiler_wl_GCJ=
15283
lt_prog_compiler_pic_GCJ=
15284
lt_prog_compiler_static_GCJ=
15286
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15287
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15289
if test "$GCC" = yes; then
15290
lt_prog_compiler_wl_GCJ='-Wl,'
15291
lt_prog_compiler_static_GCJ='-static'
15295
# All AIX code is PIC.
15296
if test "$host_cpu" = ia64; then
15297
# AIX 5 now supports IA64 processor
15298
lt_prog_compiler_static_GCJ='-Bstatic'
15303
# FIXME: we need at least 68020 code to build shared libraries, but
15304
# adding the `-m68020' flag to GCC prevents building anything better,
15306
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15309
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15310
# PIC is the default for these OSes.
15313
mingw* | pw32* | os2*)
15314
# This hack is so that the source file can tell whether it is being
15315
# built for inclusion in a dll (and should export symbols for example).
15316
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15319
darwin* | rhapsody*)
15320
# PIC is the default on this platform
15321
# Common symbols not allowed in MH_DYLIB files
15322
lt_prog_compiler_pic_GCJ='-fno-common'
15326
# Just because we use GCC doesn't mean we suddenly get shared libraries
15327
# on systems that don't support them.
15328
lt_prog_compiler_can_build_shared_GCJ=no
15333
if test -d /usr/nec; then
15334
lt_prog_compiler_pic_GCJ=-Kconform_pic
15339
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15340
# not for PA HP-UX.
15341
case "$host_cpu" in
15346
lt_prog_compiler_pic_GCJ='-fPIC'
15352
lt_prog_compiler_pic_GCJ='-fPIC'
15356
# PORTME Check for flag to pass linker flags through the system compiler.
15359
lt_prog_compiler_wl_GCJ='-Wl,'
15360
if test "$host_cpu" = ia64; then
15361
# AIX 5 now supports IA64 processor
15362
lt_prog_compiler_static_GCJ='-Bstatic'
15364
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15368
# PIC is the default on this platform
15369
# Common symbols not allowed in MH_DYLIB files
15370
case "$cc_basename" in
15372
lt_prog_compiler_pic_GCJ='-qnocommon'
15373
lt_prog_compiler_wl_GCJ='-Wl,'
15378
mingw* | pw32* | os2*)
15379
# This hack is so that the source file can tell whether it is being
15380
# built for inclusion in a dll (and should export symbols for example).
15381
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15384
hpux9* | hpux10* | hpux11*)
15385
lt_prog_compiler_wl_GCJ='-Wl,'
15386
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15387
# not for PA HP-UX.
15388
case "$host_cpu" in
15393
lt_prog_compiler_pic_GCJ='+Z'
15396
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15397
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15400
irix5* | irix6* | nonstopux*)
15401
lt_prog_compiler_wl_GCJ='-Wl,'
15402
# PIC (with -KPIC) is the default.
15403
lt_prog_compiler_static_GCJ='-non_shared'
15407
lt_prog_compiler_pic_GCJ='-KPIC'
15408
lt_prog_compiler_static_GCJ='-Bstatic'
15412
case $cc_basename in
15414
lt_prog_compiler_wl_GCJ='-Wl,'
15415
lt_prog_compiler_pic_GCJ='-KPIC'
15416
lt_prog_compiler_static_GCJ='-static'
15418
pgcc | pgf77 | pgf90)
15419
# Portland Group compilers (*not* the Pentium gcc compiler,
15420
# which looks to be a dead project)
15421
lt_prog_compiler_wl_GCJ='-Wl,'
15422
lt_prog_compiler_pic_GCJ='-fpic'
15423
lt_prog_compiler_static_GCJ='-static'
15426
lt_prog_compiler_wl_GCJ='-Wl,'
15427
# All Alpha code is PIC.
15428
lt_prog_compiler_static_GCJ='-non_shared'
15433
osf3* | osf4* | osf5*)
15434
lt_prog_compiler_wl_GCJ='-Wl,'
15435
# All OSF/1 code is PIC.
15436
lt_prog_compiler_static_GCJ='-non_shared'
15440
lt_prog_compiler_pic_GCJ='-Kpic'
15441
lt_prog_compiler_static_GCJ='-dn'
15445
lt_prog_compiler_wl_GCJ='-Wl,'
15446
lt_prog_compiler_pic_GCJ='-KPIC'
15447
lt_prog_compiler_static_GCJ='-Bstatic'
15451
lt_prog_compiler_wl_GCJ='-Qoption ld '
15452
lt_prog_compiler_pic_GCJ='-PIC'
15453
lt_prog_compiler_static_GCJ='-Bstatic'
15456
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15457
lt_prog_compiler_wl_GCJ='-Wl,'
15458
lt_prog_compiler_pic_GCJ='-KPIC'
15459
lt_prog_compiler_static_GCJ='-Bstatic'
15463
if test -d /usr/nec ;then
15464
lt_prog_compiler_pic_GCJ='-Kconform_pic'
15465
lt_prog_compiler_static_GCJ='-Bstatic'
15470
lt_prog_compiler_wl_GCJ='-Wl,'
15471
lt_prog_compiler_can_build_shared_GCJ=no
15475
lt_prog_compiler_pic_GCJ='-pic'
15476
lt_prog_compiler_static_GCJ='-Bstatic'
15480
lt_prog_compiler_can_build_shared_GCJ=no
15485
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15486
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15489
# Check to make sure the PIC flag actually works.
15491
if test -n "$lt_prog_compiler_pic_GCJ"; then
15493
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15494
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15495
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15496
echo $ECHO_N "(cached) $ECHO_C" >&6
15498
lt_prog_compiler_pic_works_GCJ=no
15499
ac_outfile=conftest.$ac_objext
15500
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15501
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15502
# Insert the option either (1) after the last *FLAGS variable, or
15503
# (2) before a word containing "conftest.", or (3) at the end.
15504
# Note that $ac_compile itself does not contain backslashes and begins
15505
# with a dollar sign (not a hyphen), so the echo should work correctly.
15506
# The option is referenced via a variable to avoid confusing sed.
15507
lt_compile=`echo "$ac_compile" | $SED \
15508
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15509
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15510
-e 's:$: $lt_compiler_flag:'`
15511
(eval echo "\"\$as_me:15511: $lt_compile\"" >&5)
15512
(eval "$lt_compile" 2>conftest.err)
15514
cat conftest.err >&5
15515
echo "$as_me:15515: \$? = $ac_status" >&5
15516
if (exit $ac_status) && test -s "$ac_outfile"; then
15517
# The compiler can only warn and ignore the option if not recognized
15518
# So say no if there are warnings
15519
if test ! -s conftest.err; then
15520
lt_prog_compiler_pic_works_GCJ=yes
15526
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15527
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15529
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15530
case $lt_prog_compiler_pic_GCJ in
15532
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15535
lt_prog_compiler_pic_GCJ=
15536
lt_prog_compiler_can_build_shared_GCJ=no
15541
# For platforms which do not support PIC, -DPIC is meaningless:
15543
lt_prog_compiler_pic_GCJ=
15546
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15550
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15551
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15552
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15553
echo $ECHO_N "(cached) $ECHO_C" >&6
15555
lt_cv_prog_compiler_c_o_GCJ=no
15556
$rm -r conftest 2>/dev/null
15560
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15562
lt_compiler_flag="-o out/conftest2.$ac_objext"
15563
# Insert the option either (1) after the last *FLAGS variable, or
15564
# (2) before a word containing "conftest.", or (3) at the end.
15565
# Note that $ac_compile itself does not contain backslashes and begins
15566
# with a dollar sign (not a hyphen), so the echo should work correctly.
15567
lt_compile=`echo "$ac_compile" | $SED \
15568
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15569
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15570
-e 's:$: $lt_compiler_flag:'`
15571
(eval echo "\"\$as_me:15571: $lt_compile\"" >&5)
15572
(eval "$lt_compile" 2>out/conftest.err)
15574
cat out/conftest.err >&5
15575
echo "$as_me:15575: \$? = $ac_status" >&5
15576
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15578
# The compiler can only warn and ignore the option if not recognized
15579
# So say no if there are warnings
15580
if test ! -s out/conftest.err; then
15581
lt_cv_prog_compiler_c_o_GCJ=yes
15586
# SGI C++ compiler will create directory out/ii_files/ for
15587
# template instantiation
15588
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15589
$rm out/* && rmdir out
15595
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15596
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15599
hard_links="nottested"
15600
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15601
# do not overwrite the value of need_locks provided by the user
15602
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15603
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15606
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15608
ln conftest.a conftest.b 2>&5 || hard_links=no
15609
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15610
echo "$as_me:$LINENO: result: $hard_links" >&5
15611
echo "${ECHO_T}$hard_links" >&6
15612
if test "$hard_links" = no; then
15613
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15614
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15621
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15622
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15625
allow_undefined_flag_GCJ=
15626
enable_shared_with_static_runtimes_GCJ=no
15628
archive_expsym_cmds_GCJ=
15629
old_archive_From_new_cmds_GCJ=
15630
old_archive_from_expsyms_cmds_GCJ=
15631
export_dynamic_flag_spec_GCJ=
15632
whole_archive_flag_spec_GCJ=
15633
thread_safe_flag_spec_GCJ=
15634
hardcode_libdir_flag_spec_GCJ=
15635
hardcode_libdir_flag_spec_ld_GCJ=
15636
hardcode_libdir_separator_GCJ=
15637
hardcode_direct_GCJ=no
15638
hardcode_minus_L_GCJ=no
15639
hardcode_shlibpath_var_GCJ=unsupported
15640
link_all_deplibs_GCJ=unknown
15641
hardcode_automatic_GCJ=no
15643
module_expsym_cmds_GCJ=
15644
always_export_symbols_GCJ=no
15645
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15646
# include_expsyms should be a list of space-separated symbols to be *always*
15647
# included in the symbol list
15648
include_expsyms_GCJ=
15649
# exclude_expsyms can be an extended regexp of symbols to exclude
15650
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15651
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15652
# as well as any symbol that contains `d'.
15653
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15654
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15655
# platforms (ab)use it in PIC code, but their linkers get confused if
15656
# the symbol is explicitly referenced. Since portable code cannot
15657
# rely on this symbol name, it's probably fine to never include it in
15658
# preloaded symbol tables.
15659
extract_expsyms_cmds=
15662
cygwin* | mingw* | pw32*)
15663
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15664
# When not using gcc, we currently assume that we are using
15665
# Microsoft Visual C++.
15666
if test "$GCC" != yes; then
15676
if test "$with_gnu_ld" = yes; then
15677
# If archive_cmds runs LD, not CC, wlarc should be empty
15680
# See if GNU ld supports shared libraries.
15682
aix3* | aix4* | aix5*)
15683
# On AIX/PPC, the GNU linker is very broken
15684
if test "$host_cpu" != ia64; then
15688
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15689
*** to be unable to reliably create shared libraries on AIX.
15690
*** Therefore, libtool is disabling shared libraries support. If you
15691
*** really care for shared libraries, you may want to modify your PATH
15692
*** so that a non-GNU linker is found, and then restart.
15699
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)'
15700
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15701
hardcode_minus_L_GCJ=yes
15703
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15704
# that the semantics of dynamic libraries on AmigaOS, at least up
15705
# to version 4, is to share data among multiple programs linked
15706
# with the same dynamic library. Since this doesn't match the
15707
# behavior of shared libraries on other platforms, we can't use
15713
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15714
allow_undefined_flag_GCJ=unsupported
15715
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15716
# support --undefined. This deserves some investigation. FIXME
15717
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15723
cygwin* | mingw* | pw32*)
15724
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15725
# as there is no search path for DLLs.
15726
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15727
allow_undefined_flag_GCJ=unsupported
15728
always_export_symbols_GCJ=no
15729
enable_shared_with_static_runtimes_GCJ=yes
15730
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15732
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15733
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15734
# If the export-symbols file already is a .def file (1st line
15735
# is EXPORTS), use it as is; otherwise, prepend...
15736
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15737
cp $export_symbols $output_objdir/$soname.def;
15739
echo EXPORTS > $output_objdir/$soname.def;
15740
cat $export_symbols >> $output_objdir/$soname.def;
15742
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15749
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15750
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15753
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15754
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15759
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15763
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15764
*** create shared libraries on Solaris systems. Therefore, libtool
15765
*** is disabling shared libraries support. We urge you to upgrade GNU
15766
*** binutils to release 2.9.1 or newer. Another option is to modify
15767
*** your PATH or compiler configuration so that the native linker is
15768
*** used, and then restart.
15771
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15772
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15773
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15780
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15782
hardcode_direct_GCJ=yes
15783
hardcode_shlibpath_var_GCJ=no
15787
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15789
case $CC,$host_cpu in
15790
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
15791
tmp_addflag=' -fpic' ;;
15792
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15793
tmp_addflag=' -i_dynamic' ;;
15794
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15795
tmp_addflag=' -i_dynamic -nofor_main' ;;
15796
ifc* | ifort*) # Intel Fortran compiler
15797
tmp_addflag=' -nofor_main' ;;
15799
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15800
supports_anon_versioning=no
15801
case `$LD -v 2>/dev/null` in
15802
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15803
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15804
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15805
*\ 2.11.*) ;; # other 2.11 versions
15806
*) supports_anon_versioning=yes ;;
15808
if test $supports_anon_versioning = yes; then
15809
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15810
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15811
$echo "local: *; };" >> $output_objdir/$libname.ver~
15812
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15814
archive_expsym_cmds_GCJ=$archive_cmds_GCJ
15822
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15823
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15824
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15831
if test "$ld_shlibs_GCJ" = yes; then
15832
runpath_var=LD_RUN_PATH
15833
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15834
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15835
# ancient GNU ld didn't support --whole-archive et. al.
15836
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15837
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15839
whole_archive_flag_spec_GCJ=
15843
# PORTME fill in a description of your system's linker (not GNU ld)
15846
allow_undefined_flag_GCJ=unsupported
15847
always_export_symbols_GCJ=yes
15848
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'
15849
# Note: this linker hardcodes the directories in LIBPATH if there
15850
# are no directories specified by -L.
15851
hardcode_minus_L_GCJ=yes
15852
if test "$GCC" = yes && test -z "$link_static_flag"; then
15853
# Neither direct hardcoding nor static linking is supported with a
15855
hardcode_direct_GCJ=unsupported
15860
if test "$host_cpu" = ia64; then
15861
# On IA64, the linker does run time linking by default, so we don't
15862
# have to do anything special.
15863
aix_use_runtimelinking=no
15864
exp_sym_flag='-Bexport'
15867
# If we're using GNU nm, then we don't want the "-C" option.
15868
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15869
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15870
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'
15872
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'
15874
aix_use_runtimelinking=no
15876
# Test if we are trying to use run time linking or normal
15877
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15878
# need to do runtime linking.
15879
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15880
for ld_flag in $LDFLAGS; do
15881
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15882
aix_use_runtimelinking=yes
15888
exp_sym_flag='-bexport'
15889
no_entry_flag='-bnoentry'
15892
# When large executables or shared objects are built, AIX ld can
15893
# have problems creating the table of contents. If linking a library
15894
# or program results in "error TOC overflow" add -mminimal-toc to
15895
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15896
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15898
archive_cmds_GCJ=''
15899
hardcode_direct_GCJ=yes
15900
hardcode_libdir_separator_GCJ=':'
15901
link_all_deplibs_GCJ=yes
15903
if test "$GCC" = yes; then
15904
case $host_os in aix4.[012]|aix4.[012].*)
15905
# We only want to do this on AIX 4.2 and lower, the check
15906
# below for broken collect2 doesn't work under 4.3+
15907
collect2name=`${CC} -print-prog-name=collect2`
15908
if test -f "$collect2name" && \
15909
strings "$collect2name" | grep resolve_lib_name >/dev/null
15911
# We have reworked collect2
15912
hardcode_direct_GCJ=yes
15914
# We have old collect2
15915
hardcode_direct_GCJ=unsupported
15916
# It fails to find uninstalled libraries when the uninstalled
15917
# path is not listed in the libpath. Setting hardcode_minus_L
15918
# to unsupported forces relinking
15919
hardcode_minus_L_GCJ=yes
15920
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15921
hardcode_libdir_separator_GCJ=
15924
shared_flag='-shared'
15925
if test "$aix_use_runtimelinking" = yes; then
15926
shared_flag="$shared_flag "'${wl}-G'
15930
if test "$host_cpu" = ia64; then
15931
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15932
# chokes on -Wl,-G. The following line is correct:
15935
if test "$aix_use_runtimelinking" = yes; then
15936
shared_flag='${wl}-G'
15938
shared_flag='${wl}-bM:SRE'
15943
# It seems that -bexpall does not export symbols beginning with
15944
# underscore (_), so it is better to generate a list of symbols to export.
15945
always_export_symbols_GCJ=yes
15946
if test "$aix_use_runtimelinking" = yes; then
15947
# Warning - without using the other runtime loading flags (-brtl),
15948
# -berok will link without error, but may produce a broken library.
15949
allow_undefined_flag_GCJ='-berok'
15950
# Determine the default libpath from the value encoded in an empty executable.
15951
cat >conftest.$ac_ext <<_ACEOF
15954
cat confdefs.h >>conftest.$ac_ext
15955
cat >>conftest.$ac_ext <<_ACEOF
15956
/* end confdefs.h. */
15966
rm -f conftest.$ac_objext conftest$ac_exeext
15967
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15968
(eval $ac_link) 2>conftest.er1
15970
grep -v '^ *+' conftest.er1 >conftest.err
15972
cat conftest.err >&5
15973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974
(exit $ac_status); } &&
15975
{ ac_try='test -z "$ac_c_werror_flag"
15976
|| test ! -s conftest.err'
15977
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978
(eval $ac_try) 2>&5
15980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981
(exit $ac_status); }; } &&
15982
{ ac_try='test -s conftest$ac_exeext'
15983
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984
(eval $ac_try) 2>&5
15986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987
(exit $ac_status); }; }; then
15989
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15991
# Check for a 64-bit object if we didn't find anything.
15992
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15995
echo "$as_me: failed program was:" >&5
15996
sed 's/^/| /' conftest.$ac_ext >&5
15999
rm -f conftest.err conftest.$ac_objext \
16000
conftest$ac_exeext conftest.$ac_ext
16001
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16003
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16004
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16006
if test "$host_cpu" = ia64; then
16007
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16008
allow_undefined_flag_GCJ="-z nodefs"
16009
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16011
# Determine the default libpath from the value encoded in an empty executable.
16012
cat >conftest.$ac_ext <<_ACEOF
16015
cat confdefs.h >>conftest.$ac_ext
16016
cat >>conftest.$ac_ext <<_ACEOF
16017
/* end confdefs.h. */
16027
rm -f conftest.$ac_objext conftest$ac_exeext
16028
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16029
(eval $ac_link) 2>conftest.er1
16031
grep -v '^ *+' conftest.er1 >conftest.err
16033
cat conftest.err >&5
16034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035
(exit $ac_status); } &&
16036
{ ac_try='test -z "$ac_c_werror_flag"
16037
|| test ! -s conftest.err'
16038
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039
(eval $ac_try) 2>&5
16041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042
(exit $ac_status); }; } &&
16043
{ ac_try='test -s conftest$ac_exeext'
16044
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045
(eval $ac_try) 2>&5
16047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048
(exit $ac_status); }; }; then
16050
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16052
# Check for a 64-bit object if we didn't find anything.
16053
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16056
echo "$as_me: failed program was:" >&5
16057
sed 's/^/| /' conftest.$ac_ext >&5
16060
rm -f conftest.err conftest.$ac_objext \
16061
conftest$ac_exeext conftest.$ac_ext
16062
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16064
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16065
# Warning - without using the other run time loading flags,
16066
# -berok will link without error, but may produce a broken library.
16067
no_undefined_flag_GCJ=' ${wl}-bernotok'
16068
allow_undefined_flag_GCJ=' ${wl}-berok'
16069
# -bexpall does not export symbols beginning with underscore (_)
16070
always_export_symbols_GCJ=yes
16071
# Exported symbols can be pulled into shared objects from archives
16072
whole_archive_flag_spec_GCJ=' '
16073
archive_cmds_need_lc_GCJ=yes
16074
# This is similar to how AIX traditionally builds it's shared libraries.
16075
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16081
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)'
16082
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16083
hardcode_minus_L_GCJ=yes
16084
# see comment about different semantics on the GNU ld section
16089
export_dynamic_flag_spec_GCJ=-rdynamic
16092
cygwin* | mingw* | pw32*)
16093
# When not using gcc, we currently assume that we are using
16094
# Microsoft Visual C++.
16095
# hardcode_libdir_flag_spec is actually meaningless, as there is
16096
# no search path for DLLs.
16097
hardcode_libdir_flag_spec_GCJ=' '
16098
allow_undefined_flag_GCJ=unsupported
16099
# Tell ltmain to make .lib files, not .a files.
16101
# Tell ltmain to make .dll files, not .so files.
16103
# FIXME: Setting linknames here is a bad hack.
16104
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16105
# The linker will automatically build a .lib file if we build a DLL.
16106
old_archive_From_new_cmds_GCJ='true'
16107
# FIXME: Should let the user specify the lib program.
16108
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16109
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16110
enable_shared_with_static_runtimes_GCJ=yes
16113
darwin* | rhapsody*)
16115
rhapsody* | darwin1.[012])
16116
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16119
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16120
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16122
case ${MACOSX_DEPLOYMENT_TARGET} in
16124
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16127
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16133
archive_cmds_need_lc_GCJ=no
16134
hardcode_direct_GCJ=no
16135
hardcode_automatic_GCJ=yes
16136
hardcode_shlibpath_var_GCJ=unsupported
16137
whole_archive_flag_spec_GCJ=''
16138
link_all_deplibs_GCJ=yes
16139
if test "$GCC" = yes ; then
16140
output_verbose_link_cmd='echo'
16141
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16142
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16143
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16144
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16145
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}'
16147
case "$cc_basename" in
16149
output_verbose_link_cmd='echo'
16150
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16151
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16152
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16153
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16154
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}'
16164
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16165
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16166
hardcode_shlibpath_var_GCJ=no
16173
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16174
# support. Future versions do this automatically, but an explicit c++rt0.o
16175
# does not break anything, and helps significantly (at the cost of a little
16178
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16179
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16180
hardcode_direct_GCJ=yes
16181
hardcode_shlibpath_var_GCJ=no
16184
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16186
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16187
hardcode_direct_GCJ=yes
16188
hardcode_minus_L_GCJ=yes
16189
hardcode_shlibpath_var_GCJ=no
16192
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16193
freebsd* | kfreebsd*-gnu | dragonfly*)
16194
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16195
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16196
hardcode_direct_GCJ=yes
16197
hardcode_shlibpath_var_GCJ=no
16201
if test "$GCC" = yes; then
16202
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'
16204
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'
16206
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16207
hardcode_libdir_separator_GCJ=:
16208
hardcode_direct_GCJ=yes
16210
# hardcode_minus_L: Not really in the search PATH,
16211
# but as the default location of the library.
16212
hardcode_minus_L_GCJ=yes
16213
export_dynamic_flag_spec_GCJ='${wl}-E'
16217
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16218
case "$host_cpu" in
16220
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16223
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16227
case "$host_cpu" in
16229
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16232
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16236
if test "$with_gnu_ld" = no; then
16237
case "$host_cpu" in
16239
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16240
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16241
hardcode_libdir_separator_GCJ=:
16242
hardcode_direct_GCJ=no
16243
hardcode_shlibpath_var_GCJ=no
16246
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16247
hardcode_direct_GCJ=no
16248
hardcode_shlibpath_var_GCJ=no
16250
# hardcode_minus_L: Not really in the search PATH,
16251
# but as the default location of the library.
16252
hardcode_minus_L_GCJ=yes
16255
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16256
hardcode_libdir_separator_GCJ=:
16257
hardcode_direct_GCJ=yes
16258
export_dynamic_flag_spec_GCJ='${wl}-E'
16260
# hardcode_minus_L: Not really in the search PATH,
16261
# but as the default location of the library.
16262
hardcode_minus_L_GCJ=yes
16268
irix5* | irix6* | nonstopux*)
16269
if test "$GCC" = yes; then
16270
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'
16272
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'
16273
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16275
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16276
hardcode_libdir_separator_GCJ=:
16277
link_all_deplibs_GCJ=yes
16281
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16282
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16284
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16286
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16287
hardcode_direct_GCJ=yes
16288
hardcode_shlibpath_var_GCJ=no
16292
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16293
hardcode_direct_GCJ=yes
16294
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16295
hardcode_libdir_separator_GCJ=:
16296
hardcode_shlibpath_var_GCJ=no
16300
hardcode_direct_GCJ=yes
16301
hardcode_shlibpath_var_GCJ=no
16302
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16303
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16304
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16305
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16306
export_dynamic_flag_spec_GCJ='${wl}-E'
16309
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16310
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16311
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16314
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16315
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16322
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16323
hardcode_minus_L_GCJ=yes
16324
allow_undefined_flag_GCJ=unsupported
16325
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'
16326
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16330
if test "$GCC" = yes; then
16331
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16332
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'
16334
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16335
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'
16337
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16338
hardcode_libdir_separator_GCJ=:
16341
osf4* | osf5*) # as osf3* with the addition of -msym flag
16342
if test "$GCC" = yes; then
16343
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16344
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'
16345
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16347
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16348
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'
16349
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~
16350
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16352
# Both c and cxx compiler support -rpath directly
16353
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16355
hardcode_libdir_separator_GCJ=:
16359
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16360
hardcode_shlibpath_var_GCJ=no
16361
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16362
runpath_var=LD_RUN_PATH
16363
hardcode_runpath_var=yes
16367
no_undefined_flag_GCJ=' -z text'
16368
if test "$GCC" = yes; then
16369
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16370
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16371
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16373
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16374
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16375
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16377
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16378
hardcode_shlibpath_var_GCJ=no
16380
solaris2.[0-5] | solaris2.[0-5].*) ;;
16381
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
16382
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
16384
link_all_deplibs_GCJ=yes
16388
if test "x$host_vendor" = xsequent; then
16389
# Use $CC to link under sequent, because it throws in some extra .o
16390
# files that make .init and .fini sections work.
16391
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16393
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16395
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16396
hardcode_direct_GCJ=yes
16397
hardcode_minus_L_GCJ=yes
16398
hardcode_shlibpath_var_GCJ=no
16402
case $host_vendor in
16404
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16405
hardcode_direct_GCJ=yes # is this really true???
16408
## LD is ld it makes a PLAMLIB
16409
## CC just makes a GrossModule.
16410
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16411
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16412
hardcode_direct_GCJ=no
16415
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16416
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16419
runpath_var='LD_RUN_PATH'
16420
hardcode_shlibpath_var_GCJ=no
16424
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16425
hardcode_shlibpath_var_GCJ=no
16426
export_dynamic_flag_spec_GCJ='-Bexport'
16430
if test -d /usr/nec; then
16431
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16432
hardcode_shlibpath_var_GCJ=no
16433
runpath_var=LD_RUN_PATH
16434
hardcode_runpath_var=yes
16440
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16441
hardcode_direct_GCJ=yes
16442
hardcode_minus_L_GCJ=no
16443
hardcode_shlibpath_var_GCJ=no
16444
hardcode_runpath_var=yes
16445
runpath_var=LD_RUN_PATH
16448
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16449
no_undefined_flag_GCJ='${wl}-z ${wl}text'
16450
if test "$GCC" = yes; then
16451
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16453
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16455
runpath_var='LD_RUN_PATH'
16456
hardcode_shlibpath_var_GCJ=no
16460
no_undefined_flag_GCJ=' -z text'
16461
# $CC -shared without GNU ld will not create a library from C++
16462
# object files and a static libstdc++, better avoid it by now
16463
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16464
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16465
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16466
hardcode_libdir_flag_spec_GCJ=
16467
hardcode_shlibpath_var_GCJ=no
16468
runpath_var='LD_RUN_PATH'
16472
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16473
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16474
hardcode_shlibpath_var_GCJ=no
16483
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16484
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16485
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16487
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16488
if test "$GCC" = yes; then
16489
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16493
# Do we need to explicitly link libc?
16495
case "x$archive_cmds_need_lc_GCJ" in
16497
# Assume -lc should be added
16498
archive_cmds_need_lc_GCJ=yes
16500
if test "$enable_shared" = yes && test "$GCC" = yes; then
16501
case $archive_cmds_GCJ in
16503
# FIXME: we may have to deal with multi-command sequences.
16506
# Test whether the compiler implicitly links with -lc since on some
16507
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16508
# to ld, don't add -lc before -lgcc.
16509
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16510
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16512
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16514
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16515
(eval $ac_compile) 2>&5
16517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518
(exit $ac_status); } 2>conftest.err; then
16521
libobjs=conftest.$ac_objext
16523
wl=$lt_prog_compiler_wl_GCJ
16529
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16530
allow_undefined_flag_GCJ=
16531
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16532
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535
(exit $ac_status); }
16537
archive_cmds_need_lc_GCJ=no
16539
archive_cmds_need_lc_GCJ=yes
16541
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16543
cat conftest.err 1>&5
16546
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16547
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16554
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16555
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16556
library_names_spec=
16557
libname_spec='lib$name'
16561
postuninstall_cmds=
16565
shlibpath_overrides_runpath=unknown
16567
dynamic_linker="$host_os ld.so"
16568
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16569
if test "$GCC" = yes; then
16570
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16571
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16572
# if the path contains ";" then we assume it to be the separator
16573
# otherwise default to the standard path separator (i.e. ":") - it is
16574
# assumed that no part of a normal pathname contains ";" but that should
16575
# okay in the real world where ";" in dirpaths is itself problematic.
16576
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16578
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16581
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16583
need_lib_prefix=unknown
16584
hardcode_into_libs=no
16586
# when you set need_version to no, make sure it does not cause -set_version
16587
# flags to be left without arguments
16588
need_version=unknown
16593
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16594
shlibpath_var=LIBPATH
16596
# AIX 3 has no versioning support, so we append a major version to the name.
16597
soname_spec='${libname}${release}${shared_ext}$major'
16604
hardcode_into_libs=yes
16605
if test "$host_cpu" = ia64; then
16606
# AIX 5 supports IA64
16607
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16608
shlibpath_var=LD_LIBRARY_PATH
16610
# With GCC up to 2.95.x, collect2 would create an import file
16611
# for dependence libraries. The import file would start with
16612
# the line `#! .'. This would cause the generated library to
16613
# depend on `.', always an invalid library. This was fixed in
16614
# development snapshots of GCC prior to 3.0.
16616
aix4 | aix4.[01] | aix4.[01].*)
16617
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16619
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16622
can_build_shared=no
16626
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16627
# soname into executable. Probably we can add versioning support to
16628
# collect2, so additional links can be useful in future.
16629
if test "$aix_use_runtimelinking" = yes; then
16630
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16631
# instead of lib<name>.a to let people know that these are not
16632
# typical AIX shared libraries.
16633
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16635
# We preserve .a as extension for shared libraries through AIX4.2
16636
# and later when we are not doing run time linking.
16637
library_names_spec='${libname}${release}.a $libname.a'
16638
soname_spec='${libname}${release}${shared_ext}$major'
16640
shlibpath_var=LIBPATH
16645
library_names_spec='$libname.ixlibrary $libname.a'
16646
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16647
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'
16651
library_names_spec='${libname}${shared_ext}'
16652
dynamic_linker="$host_os ld.so"
16653
shlibpath_var=LIBRARY_PATH
16659
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16660
soname_spec='${libname}${release}${shared_ext}$major'
16661
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16662
shlibpath_var=LD_LIBRARY_PATH
16663
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16664
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16665
# the default ld.so.conf also contains /usr/contrib/lib and
16666
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16667
# libtool to hard-code these into programs
16670
cygwin* | mingw* | pw32*)
16671
version_type=windows
16676
case $GCC,$host_os in
16677
yes,cygwin* | yes,mingw* | yes,pw32*)
16678
library_names_spec='$libname.dll.a'
16679
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16680
postinstall_cmds='base_file=`basename \${file}`~
16681
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16682
dldir=$destdir/`dirname \$dlpath`~
16683
test -d \$dldir || mkdir -p \$dldir~
16684
$install_prog $dir/$dlname \$dldir/$dlname'
16685
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16686
dlpath=$dir/\$dldll~
16688
shlibpath_overrides_runpath=yes
16692
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16693
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16694
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16697
# MinGW DLLs use traditional 'lib' prefix
16698
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16699
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16700
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16701
# It is most probably a Windows format PATH printed by
16702
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16703
# path with ; separators, and with drive letters. We can handle the
16704
# drive letters (cygwin fileutils understands them), so leave them,
16705
# especially as we might pass files found there to a mingw objdump,
16706
# which wouldn't understand a cygwinified path. Ahh.
16707
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16709
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16713
# pw32 DLLs use 'pw' prefix rather than 'lib'
16714
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16720
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16723
dynamic_linker='Win32 ld.exe'
16724
# FIXME: first we should search . and the directory the executable is in
16728
darwin* | rhapsody*)
16729
dynamic_linker="$host_os dyld"
16730
version_type=darwin
16733
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16734
soname_spec='${libname}${release}${major}$shared_ext'
16735
shlibpath_overrides_runpath=yes
16736
shlibpath_var=DYLD_LIBRARY_PATH
16737
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16738
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16739
if test "$GCC" = yes; then
16740
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16742
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16744
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16751
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16752
soname_spec='${libname}${release}${shared_ext}$major'
16753
shlibpath_var=LD_LIBRARY_PATH
16764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16765
soname_spec='${libname}${release}${shared_ext}$major'
16766
shlibpath_var=LD_LIBRARY_PATH
16767
shlibpath_overrides_runpath=no
16768
hardcode_into_libs=yes
16769
dynamic_linker='GNU ld.so'
16772
freebsd* | dragonfly*)
16773
# DragonFly does not have aout. When/if they implement a new
16774
# versioning mechanism, adjust this.
16775
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16776
version_type=freebsd-$objformat
16777
case $version_type in
16779
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16784
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16788
shlibpath_var=LD_LIBRARY_PATH
16791
shlibpath_overrides_runpath=yes
16793
freebsd3.[01]* | freebsdelf3.[01]*)
16794
shlibpath_overrides_runpath=yes
16795
hardcode_into_libs=yes
16798
shlibpath_overrides_runpath=no
16799
hardcode_into_libs=yes
16808
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16809
soname_spec='${libname}${release}${shared_ext}$major'
16810
shlibpath_var=LD_LIBRARY_PATH
16811
hardcode_into_libs=yes
16814
hpux9* | hpux10* | hpux11*)
16815
# Give a soname corresponding to the major version so that dld.sl refuses to
16816
# link against other versions.
16820
case "$host_cpu" in
16823
hardcode_into_libs=yes
16824
dynamic_linker="$host_os dld.so"
16825
shlibpath_var=LD_LIBRARY_PATH
16826
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16827
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16828
soname_spec='${libname}${release}${shared_ext}$major'
16829
if test "X$HPUX_IA64_MODE" = X32; then
16830
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16832
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16834
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16838
hardcode_into_libs=yes
16839
dynamic_linker="$host_os dld.sl"
16840
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16841
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16842
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843
soname_spec='${libname}${release}${shared_ext}$major'
16844
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16845
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16849
dynamic_linker="$host_os dld.sl"
16850
shlibpath_var=SHLIB_PATH
16851
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16852
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16853
soname_spec='${libname}${release}${shared_ext}$major'
16856
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16857
postinstall_cmds='chmod 555 $lib'
16860
irix5* | irix6* | nonstopux*)
16862
nonstopux*) version_type=nonstopux ;;
16864
if test "$lt_cv_prog_gnu_ld" = yes; then
16872
soname_spec='${libname}${release}${shared_ext}$major'
16873
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16875
irix5* | nonstopux*)
16876
libsuff= shlibsuff=
16879
case $LD in # libtool.m4 will add one of these switches to LD
16880
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16881
libsuff= shlibsuff= libmagic=32-bit;;
16882
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16883
libsuff=32 shlibsuff=N32 libmagic=N32;;
16884
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16885
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16886
*) libsuff= shlibsuff= libmagic=never-match;;
16890
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16891
shlibpath_overrides_runpath=no
16892
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16893
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16894
hardcode_into_libs=yes
16897
# No shared lib support for Linux oldld, aout, or coff.
16898
linux*oldld* | linux*aout* | linux*coff*)
16902
# This must be Linux ELF.
16907
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908
soname_spec='${libname}${release}${shared_ext}$major'
16909
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16910
shlibpath_var=LD_LIBRARY_PATH
16911
shlibpath_overrides_runpath=no
16912
# This implies no fast_install, which is unacceptable.
16913
# Some rework will be needed to allow for fast_install
16914
# before this can be enabled.
16915
hardcode_into_libs=yes
16917
# Append ld.so.conf contents to the search path
16918
if test -f /etc/ld.so.conf; then
16919
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16920
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16923
# We used to test for /lib/ld.so.1 and disable shared libraries on
16924
# powerpc, because MkLinux only supported shared libraries with the
16925
# GNU dynamic linker. Since this was broken with cross compilers,
16926
# most powerpc-linux boxes support dynamic linking these days and
16927
# people can always --disable-shared, the test was removed, and we
16928
# assume the GNU/Linux dynamic linker is in use.
16929
dynamic_linker='GNU/Linux ld.so'
16936
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16937
soname_spec='${libname}${release}${shared_ext}$major'
16938
shlibpath_var=LD_LIBRARY_PATH
16939
shlibpath_overrides_runpath=no
16940
hardcode_into_libs=yes
16941
dynamic_linker='GNU ld.so'
16948
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16949
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16950
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16951
dynamic_linker='NetBSD (a.out) ld.so'
16953
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16954
soname_spec='${libname}${release}${shared_ext}$major'
16955
dynamic_linker='NetBSD ld.elf_so'
16957
shlibpath_var=LD_LIBRARY_PATH
16958
shlibpath_overrides_runpath=yes
16959
hardcode_into_libs=yes
16964
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16965
shlibpath_var=LD_LIBRARY_PATH
16966
shlibpath_overrides_runpath=yes
16973
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16974
soname_spec='${libname}${release}${shared_ext}$major'
16975
shlibpath_var=LD_LIBRARY_PATH
16976
shlibpath_overrides_runpath=yes
16983
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16984
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16985
shlibpath_var=LD_LIBRARY_PATH
16986
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16988
openbsd2.[89] | openbsd2.[89].*)
16989
shlibpath_overrides_runpath=no
16992
shlibpath_overrides_runpath=yes
16996
shlibpath_overrides_runpath=yes
17001
libname_spec='$name'
17004
library_names_spec='$libname${shared_ext} $libname.a'
17005
dynamic_linker='OS/2 ld.exe'
17006
shlibpath_var=LIBPATH
17009
osf3* | osf4* | osf5*)
17013
soname_spec='${libname}${release}${shared_ext}$major'
17014
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17015
shlibpath_var=LD_LIBRARY_PATH
17016
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17017
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17022
soname_spec='${libname}${release}${shared_ext}$major'
17023
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17024
shlibpath_var=LD_LIBRARY_PATH
17031
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17032
soname_spec='${libname}${release}${shared_ext}$major'
17033
shlibpath_var=LD_LIBRARY_PATH
17034
shlibpath_overrides_runpath=yes
17035
hardcode_into_libs=yes
17036
# ldd complains unless libraries are executable
17037
postinstall_cmds='chmod +x $lib'
17042
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17043
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17044
shlibpath_var=LD_LIBRARY_PATH
17045
shlibpath_overrides_runpath=yes
17046
if test "$with_gnu_ld" = yes; then
17052
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17054
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055
soname_spec='${libname}${release}${shared_ext}$major'
17056
shlibpath_var=LD_LIBRARY_PATH
17057
case $host_vendor in
17059
shlibpath_overrides_runpath=no
17061
export_dynamic_flag_spec='${wl}-Blargedynsym'
17062
runpath_var=LD_RUN_PATH
17070
shlibpath_overrides_runpath=no
17071
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17077
if test -d /usr/nec ;then
17079
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17080
soname_spec='$libname${shared_ext}.$major'
17081
shlibpath_var=LD_LIBRARY_PATH
17087
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17088
soname_spec='${libname}${release}${shared_ext}$major'
17089
shlibpath_var=LD_LIBRARY_PATH
17096
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17097
echo "${ECHO_T}$dynamic_linker" >&6
17098
test "$dynamic_linker" = no && can_build_shared=no
17100
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17101
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17102
hardcode_action_GCJ=
17103
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17104
test -n "$runpath_var_GCJ" || \
17105
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17107
# We can hardcode non-existant directories.
17108
if test "$hardcode_direct_GCJ" != no &&
17109
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17110
# have to relink, otherwise we might link with an installed library
17111
# when we should be linking with a yet-to-be-installed one
17112
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17113
test "$hardcode_minus_L_GCJ" != no; then
17114
# Linking always hardcodes the temporary library directory.
17115
hardcode_action_GCJ=relink
17117
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17118
hardcode_action_GCJ=immediate
17121
# We cannot hardcode anything, or else we can only hardcode existing
17123
hardcode_action_GCJ=unsupported
17125
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17126
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17128
if test "$hardcode_action_GCJ" = relink; then
17129
# Fast installation is not supported
17130
enable_fast_install=no
17131
elif test "$shlibpath_overrides_runpath" = yes ||
17132
test "$enable_shared" = no; then
17133
# Fast installation is not necessary
17134
enable_fast_install=needless
17139
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17140
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17141
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17142
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17143
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17144
echo "$as_me:$LINENO: result: yes" >&5
17145
echo "${ECHO_T}yes" >&6
17147
# FIXME - insert some real tests, host_os isn't really good enough
17150
if test -n "$STRIP" ; then
17151
striplib="$STRIP -x"
17152
echo "$as_me:$LINENO: result: yes" >&5
17153
echo "${ECHO_T}yes" >&6
17155
echo "$as_me:$LINENO: result: no" >&5
17156
echo "${ECHO_T}no" >&6
17160
echo "$as_me:$LINENO: result: no" >&5
17161
echo "${ECHO_T}no" >&6
17166
if test "x$enable_dlopen" != xyes; then
17167
enable_dlopen=unknown
17168
enable_dlopen_self=unknown
17169
enable_dlopen_self_static=unknown
17176
lt_cv_dlopen="load_add_on"
17178
lt_cv_dlopen_self=yes
17182
lt_cv_dlopen="LoadLibrary"
17187
lt_cv_dlopen="dlopen"
17192
# if libdl is installed we need to link against it
17193
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17194
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17195
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17196
echo $ECHO_N "(cached) $ECHO_C" >&6
17198
ac_check_lib_save_LIBS=$LIBS
17200
cat >conftest.$ac_ext <<_ACEOF
17203
cat confdefs.h >>conftest.$ac_ext
17204
cat >>conftest.$ac_ext <<_ACEOF
17205
/* end confdefs.h. */
17207
/* Override any gcc2 internal prototype to avoid an error. */
17211
/* We use char because int might match the return type of a gcc2
17212
builtin and then its argument prototype would still apply. */
17222
rm -f conftest.$ac_objext conftest$ac_exeext
17223
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17224
(eval $ac_link) 2>conftest.er1
17226
grep -v '^ *+' conftest.er1 >conftest.err
17228
cat conftest.err >&5
17229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230
(exit $ac_status); } &&
17231
{ ac_try='test -z "$ac_c_werror_flag"
17232
|| test ! -s conftest.err'
17233
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234
(eval $ac_try) 2>&5
17236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237
(exit $ac_status); }; } &&
17238
{ ac_try='test -s conftest$ac_exeext'
17239
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240
(eval $ac_try) 2>&5
17242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243
(exit $ac_status); }; }; then
17244
ac_cv_lib_dl_dlopen=yes
17246
echo "$as_me: failed program was:" >&5
17247
sed 's/^/| /' conftest.$ac_ext >&5
17249
ac_cv_lib_dl_dlopen=no
17251
rm -f conftest.err conftest.$ac_objext \
17252
conftest$ac_exeext conftest.$ac_ext
17253
LIBS=$ac_check_lib_save_LIBS
17255
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17256
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17257
if test $ac_cv_lib_dl_dlopen = yes; then
17258
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17261
lt_cv_dlopen="dyld"
17263
lt_cv_dlopen_self=yes
17270
echo "$as_me:$LINENO: checking for shl_load" >&5
17271
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17272
if test "${ac_cv_func_shl_load+set}" = set; then
17273
echo $ECHO_N "(cached) $ECHO_C" >&6
17275
cat >conftest.$ac_ext <<_ACEOF
17278
cat confdefs.h >>conftest.$ac_ext
17279
cat >>conftest.$ac_ext <<_ACEOF
17280
/* end confdefs.h. */
17281
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17282
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17283
#define shl_load innocuous_shl_load
17285
/* System header to define __stub macros and hopefully few prototypes,
17286
which can conflict with char shl_load (); below.
17287
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17288
<limits.h> exists even on freestanding compilers. */
17291
# include <limits.h>
17293
# include <assert.h>
17298
/* Override any gcc2 internal prototype to avoid an error. */
17303
/* We use char because int might match the return type of a gcc2
17304
builtin and then its argument prototype would still apply. */
17306
/* The GNU C library defines this for functions which it implements
17307
to always fail with ENOSYS. Some functions are actually named
17308
something starting with __ and the normal name is an alias. */
17309
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17312
char (*f) () = shl_load;
17321
return f != shl_load;
17326
rm -f conftest.$ac_objext conftest$ac_exeext
17327
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17328
(eval $ac_link) 2>conftest.er1
17330
grep -v '^ *+' conftest.er1 >conftest.err
17332
cat conftest.err >&5
17333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334
(exit $ac_status); } &&
17335
{ ac_try='test -z "$ac_c_werror_flag"
17336
|| test ! -s conftest.err'
17337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17338
(eval $ac_try) 2>&5
17340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341
(exit $ac_status); }; } &&
17342
{ ac_try='test -s conftest$ac_exeext'
17343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344
(eval $ac_try) 2>&5
17346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347
(exit $ac_status); }; }; then
17348
ac_cv_func_shl_load=yes
17350
echo "$as_me: failed program was:" >&5
17351
sed 's/^/| /' conftest.$ac_ext >&5
17353
ac_cv_func_shl_load=no
17355
rm -f conftest.err conftest.$ac_objext \
17356
conftest$ac_exeext conftest.$ac_ext
17358
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17359
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17360
if test $ac_cv_func_shl_load = yes; then
17361
lt_cv_dlopen="shl_load"
17363
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17364
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17365
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17366
echo $ECHO_N "(cached) $ECHO_C" >&6
17368
ac_check_lib_save_LIBS=$LIBS
17370
cat >conftest.$ac_ext <<_ACEOF
17373
cat confdefs.h >>conftest.$ac_ext
17374
cat >>conftest.$ac_ext <<_ACEOF
17375
/* end confdefs.h. */
17377
/* Override any gcc2 internal prototype to avoid an error. */
17381
/* We use char because int might match the return type of a gcc2
17382
builtin and then its argument prototype would still apply. */
17392
rm -f conftest.$ac_objext conftest$ac_exeext
17393
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17394
(eval $ac_link) 2>conftest.er1
17396
grep -v '^ *+' conftest.er1 >conftest.err
17398
cat conftest.err >&5
17399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400
(exit $ac_status); } &&
17401
{ ac_try='test -z "$ac_c_werror_flag"
17402
|| test ! -s conftest.err'
17403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404
(eval $ac_try) 2>&5
17406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407
(exit $ac_status); }; } &&
17408
{ ac_try='test -s conftest$ac_exeext'
17409
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410
(eval $ac_try) 2>&5
17412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413
(exit $ac_status); }; }; then
17414
ac_cv_lib_dld_shl_load=yes
17416
echo "$as_me: failed program was:" >&5
17417
sed 's/^/| /' conftest.$ac_ext >&5
17419
ac_cv_lib_dld_shl_load=no
17421
rm -f conftest.err conftest.$ac_objext \
17422
conftest$ac_exeext conftest.$ac_ext
17423
LIBS=$ac_check_lib_save_LIBS
17425
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17426
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17427
if test $ac_cv_lib_dld_shl_load = yes; then
17428
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17430
echo "$as_me:$LINENO: checking for dlopen" >&5
17431
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17432
if test "${ac_cv_func_dlopen+set}" = set; then
17433
echo $ECHO_N "(cached) $ECHO_C" >&6
17435
cat >conftest.$ac_ext <<_ACEOF
17438
cat confdefs.h >>conftest.$ac_ext
17439
cat >>conftest.$ac_ext <<_ACEOF
17440
/* end confdefs.h. */
17441
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17442
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17443
#define dlopen innocuous_dlopen
17445
/* System header to define __stub macros and hopefully few prototypes,
17446
which can conflict with char dlopen (); below.
17447
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17448
<limits.h> exists even on freestanding compilers. */
17451
# include <limits.h>
17453
# include <assert.h>
17458
/* Override any gcc2 internal prototype to avoid an error. */
17463
/* We use char because int might match the return type of a gcc2
17464
builtin and then its argument prototype would still apply. */
17466
/* The GNU C library defines this for functions which it implements
17467
to always fail with ENOSYS. Some functions are actually named
17468
something starting with __ and the normal name is an alias. */
17469
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17472
char (*f) () = dlopen;
17481
return f != dlopen;
17486
rm -f conftest.$ac_objext conftest$ac_exeext
17487
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17488
(eval $ac_link) 2>conftest.er1
17490
grep -v '^ *+' conftest.er1 >conftest.err
17492
cat conftest.err >&5
17493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494
(exit $ac_status); } &&
17495
{ ac_try='test -z "$ac_c_werror_flag"
17496
|| test ! -s conftest.err'
17497
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498
(eval $ac_try) 2>&5
17500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501
(exit $ac_status); }; } &&
17502
{ ac_try='test -s conftest$ac_exeext'
17503
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504
(eval $ac_try) 2>&5
17506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507
(exit $ac_status); }; }; then
17508
ac_cv_func_dlopen=yes
17510
echo "$as_me: failed program was:" >&5
17511
sed 's/^/| /' conftest.$ac_ext >&5
17513
ac_cv_func_dlopen=no
17515
rm -f conftest.err conftest.$ac_objext \
17516
conftest$ac_exeext conftest.$ac_ext
17518
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17519
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17520
if test $ac_cv_func_dlopen = yes; then
17521
lt_cv_dlopen="dlopen"
17523
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17524
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17525
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17526
echo $ECHO_N "(cached) $ECHO_C" >&6
17528
ac_check_lib_save_LIBS=$LIBS
17530
cat >conftest.$ac_ext <<_ACEOF
17533
cat confdefs.h >>conftest.$ac_ext
17534
cat >>conftest.$ac_ext <<_ACEOF
17535
/* end confdefs.h. */
17537
/* Override any gcc2 internal prototype to avoid an error. */
17541
/* We use char because int might match the return type of a gcc2
17542
builtin and then its argument prototype would still apply. */
17552
rm -f conftest.$ac_objext conftest$ac_exeext
17553
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17554
(eval $ac_link) 2>conftest.er1
17556
grep -v '^ *+' conftest.er1 >conftest.err
17558
cat conftest.err >&5
17559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560
(exit $ac_status); } &&
17561
{ ac_try='test -z "$ac_c_werror_flag"
17562
|| test ! -s conftest.err'
17563
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564
(eval $ac_try) 2>&5
17566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567
(exit $ac_status); }; } &&
17568
{ ac_try='test -s conftest$ac_exeext'
17569
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570
(eval $ac_try) 2>&5
17572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573
(exit $ac_status); }; }; then
17574
ac_cv_lib_dl_dlopen=yes
17576
echo "$as_me: failed program was:" >&5
17577
sed 's/^/| /' conftest.$ac_ext >&5
17579
ac_cv_lib_dl_dlopen=no
17581
rm -f conftest.err conftest.$ac_objext \
17582
conftest$ac_exeext conftest.$ac_ext
17583
LIBS=$ac_check_lib_save_LIBS
17585
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17586
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17587
if test $ac_cv_lib_dl_dlopen = yes; then
17588
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17590
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17591
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17592
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17593
echo $ECHO_N "(cached) $ECHO_C" >&6
17595
ac_check_lib_save_LIBS=$LIBS
17596
LIBS="-lsvld $LIBS"
17597
cat >conftest.$ac_ext <<_ACEOF
17600
cat confdefs.h >>conftest.$ac_ext
17601
cat >>conftest.$ac_ext <<_ACEOF
17602
/* end confdefs.h. */
17604
/* Override any gcc2 internal prototype to avoid an error. */
17608
/* We use char because int might match the return type of a gcc2
17609
builtin and then its argument prototype would still apply. */
17619
rm -f conftest.$ac_objext conftest$ac_exeext
17620
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17621
(eval $ac_link) 2>conftest.er1
17623
grep -v '^ *+' conftest.er1 >conftest.err
17625
cat conftest.err >&5
17626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627
(exit $ac_status); } &&
17628
{ ac_try='test -z "$ac_c_werror_flag"
17629
|| test ! -s conftest.err'
17630
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631
(eval $ac_try) 2>&5
17633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634
(exit $ac_status); }; } &&
17635
{ ac_try='test -s conftest$ac_exeext'
17636
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17637
(eval $ac_try) 2>&5
17639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640
(exit $ac_status); }; }; then
17641
ac_cv_lib_svld_dlopen=yes
17643
echo "$as_me: failed program was:" >&5
17644
sed 's/^/| /' conftest.$ac_ext >&5
17646
ac_cv_lib_svld_dlopen=no
17648
rm -f conftest.err conftest.$ac_objext \
17649
conftest$ac_exeext conftest.$ac_ext
17650
LIBS=$ac_check_lib_save_LIBS
17652
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17653
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17654
if test $ac_cv_lib_svld_dlopen = yes; then
17655
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17657
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17658
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17659
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17660
echo $ECHO_N "(cached) $ECHO_C" >&6
17662
ac_check_lib_save_LIBS=$LIBS
17664
cat >conftest.$ac_ext <<_ACEOF
17667
cat confdefs.h >>conftest.$ac_ext
17668
cat >>conftest.$ac_ext <<_ACEOF
17669
/* end confdefs.h. */
17671
/* Override any gcc2 internal prototype to avoid an error. */
17675
/* We use char because int might match the return type of a gcc2
17676
builtin and then its argument prototype would still apply. */
17686
rm -f conftest.$ac_objext conftest$ac_exeext
17687
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17688
(eval $ac_link) 2>conftest.er1
17690
grep -v '^ *+' conftest.er1 >conftest.err
17692
cat conftest.err >&5
17693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694
(exit $ac_status); } &&
17695
{ ac_try='test -z "$ac_c_werror_flag"
17696
|| test ! -s conftest.err'
17697
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698
(eval $ac_try) 2>&5
17700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701
(exit $ac_status); }; } &&
17702
{ ac_try='test -s conftest$ac_exeext'
17703
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704
(eval $ac_try) 2>&5
17706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707
(exit $ac_status); }; }; then
17708
ac_cv_lib_dld_dld_link=yes
17710
echo "$as_me: failed program was:" >&5
17711
sed 's/^/| /' conftest.$ac_ext >&5
17713
ac_cv_lib_dld_dld_link=no
17715
rm -f conftest.err conftest.$ac_objext \
17716
conftest$ac_exeext conftest.$ac_ext
17717
LIBS=$ac_check_lib_save_LIBS
17719
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17720
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17721
if test $ac_cv_lib_dld_dld_link = yes; then
17722
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17743
if test "x$lt_cv_dlopen" != xno; then
17749
case $lt_cv_dlopen in
17751
save_CPPFLAGS="$CPPFLAGS"
17752
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17754
save_LDFLAGS="$LDFLAGS"
17755
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17758
LIBS="$lt_cv_dlopen_libs $LIBS"
17760
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17761
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17762
if test "${lt_cv_dlopen_self+set}" = set; then
17763
echo $ECHO_N "(cached) $ECHO_C" >&6
17765
if test "$cross_compiling" = yes; then :
17766
lt_cv_dlopen_self=cross
17768
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17769
lt_status=$lt_dlunknown
17770
cat > conftest.$ac_ext <<EOF
17771
#line 17771 "configure"
17772
#include "confdefs.h"
17781
# define LT_DLGLOBAL RTLD_GLOBAL
17784
# define LT_DLGLOBAL DL_GLOBAL
17786
# define LT_DLGLOBAL 0
17790
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17791
find out it does not work in some platform. */
17792
#ifndef LT_DLLAZY_OR_NOW
17794
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17797
# define LT_DLLAZY_OR_NOW DL_LAZY
17800
# define LT_DLLAZY_OR_NOW RTLD_NOW
17803
# define LT_DLLAZY_OR_NOW DL_NOW
17805
# define LT_DLLAZY_OR_NOW 0
17813
extern "C" void exit (int);
17816
void fnord() { int i=42;}
17819
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17820
int status = $lt_dlunknown;
17824
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17825
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17826
/* dlclose (self); */
17832
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17833
(eval $ac_link) 2>&5
17835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17837
(./conftest; exit; ) 2>/dev/null
17839
case x$lt_status in
17840
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17841
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17842
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17845
# compilation failed
17846
lt_cv_dlopen_self=no
17853
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17854
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17856
if test "x$lt_cv_dlopen_self" = xyes; then
17857
LDFLAGS="$LDFLAGS $link_static_flag"
17858
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17859
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17860
if test "${lt_cv_dlopen_self_static+set}" = set; then
17861
echo $ECHO_N "(cached) $ECHO_C" >&6
17863
if test "$cross_compiling" = yes; then :
17864
lt_cv_dlopen_self_static=cross
17866
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17867
lt_status=$lt_dlunknown
17868
cat > conftest.$ac_ext <<EOF
17869
#line 17869 "configure"
17870
#include "confdefs.h"
17879
# define LT_DLGLOBAL RTLD_GLOBAL
17882
# define LT_DLGLOBAL DL_GLOBAL
17884
# define LT_DLGLOBAL 0
17888
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17889
find out it does not work in some platform. */
17890
#ifndef LT_DLLAZY_OR_NOW
17892
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17895
# define LT_DLLAZY_OR_NOW DL_LAZY
17898
# define LT_DLLAZY_OR_NOW RTLD_NOW
17901
# define LT_DLLAZY_OR_NOW DL_NOW
17903
# define LT_DLLAZY_OR_NOW 0
17911
extern "C" void exit (int);
17914
void fnord() { int i=42;}
17917
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17918
int status = $lt_dlunknown;
17922
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17923
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17924
/* dlclose (self); */
17930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17931
(eval $ac_link) 2>&5
17933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17935
(./conftest; exit; ) 2>/dev/null
17937
case x$lt_status in
17938
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17939
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17940
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17943
# compilation failed
17944
lt_cv_dlopen_self_static=no
17951
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17952
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17955
CPPFLAGS="$save_CPPFLAGS"
17956
LDFLAGS="$save_LDFLAGS"
17961
case $lt_cv_dlopen_self in
17962
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17963
*) enable_dlopen_self=unknown ;;
17966
case $lt_cv_dlopen_self_static in
17967
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17968
*) enable_dlopen_self_static=unknown ;;
17973
# The else clause should only fire when bootstrapping the
17974
# libtool distribution, otherwise you forgot to ship ltmain.sh
17975
# with your package, and you will get complaints that there are
17976
# no rules to generate ltmain.sh.
17977
if test -f "$ltmain"; then
17978
# See if we are running on zsh, and set the options which allow our commands through
17979
# without removal of \ escapes.
17980
if test -n "${ZSH_VERSION+set}" ; then
17981
setopt NO_GLOB_SUBST
17983
# Now quote all the things that may contain metacharacters while being
17984
# careful not to overquote the AC_SUBSTed values. We take copies of the
17985
# variables and quote the copies for generation of the libtool script.
17986
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17988
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17989
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17990
deplibs_check_method reload_flag reload_cmds need_locks \
17991
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17992
lt_cv_sys_global_symbol_to_c_name_address \
17993
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17994
old_postinstall_cmds old_postuninstall_cmds \
17998
lt_prog_compiler_wl_GCJ \
17999
lt_prog_compiler_pic_GCJ \
18000
lt_prog_compiler_static_GCJ \
18001
lt_prog_compiler_no_builtin_flag_GCJ \
18002
export_dynamic_flag_spec_GCJ \
18003
thread_safe_flag_spec_GCJ \
18004
whole_archive_flag_spec_GCJ \
18005
enable_shared_with_static_runtimes_GCJ \
18006
old_archive_cmds_GCJ \
18007
old_archive_from_new_cmds_GCJ \
18008
predep_objects_GCJ \
18009
postdep_objects_GCJ \
18012
compiler_lib_search_path_GCJ \
18014
archive_expsym_cmds_GCJ \
18015
postinstall_cmds_GCJ \
18016
postuninstall_cmds_GCJ \
18017
old_archive_from_expsyms_cmds_GCJ \
18018
allow_undefined_flag_GCJ \
18019
no_undefined_flag_GCJ \
18020
export_symbols_cmds_GCJ \
18021
hardcode_libdir_flag_spec_GCJ \
18022
hardcode_libdir_flag_spec_ld_GCJ \
18023
hardcode_libdir_separator_GCJ \
18024
hardcode_automatic_GCJ \
18026
module_expsym_cmds_GCJ \
18027
lt_cv_prog_compiler_c_o_GCJ \
18028
exclude_expsyms_GCJ \
18029
include_expsyms_GCJ; do
18032
old_archive_cmds_GCJ | \
18033
old_archive_from_new_cmds_GCJ | \
18034
archive_cmds_GCJ | \
18035
archive_expsym_cmds_GCJ | \
18036
module_cmds_GCJ | \
18037
module_expsym_cmds_GCJ | \
18038
old_archive_from_expsyms_cmds_GCJ | \
18039
export_symbols_cmds_GCJ | \
18040
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18041
postinstall_cmds | postuninstall_cmds | \
18042
old_postinstall_cmds | old_postuninstall_cmds | \
18043
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18044
# Double-quote double-evaled strings.
18045
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18048
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18054
*'\$0 --fallback-echo"')
18055
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18061
cat <<__EOF__ >> "$cfgfile"
18062
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18064
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18066
# Shell to use when invoking shell scripts.
18069
# Whether or not to build shared libraries.
18070
build_libtool_libs=$enable_shared
18072
# Whether or not to build static libraries.
18073
build_old_libs=$enable_static
18075
# Whether or not to add -lc for building shared libraries.
18076
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18078
# Whether or not to disallow shared libs when runtime libs are static
18079
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18081
# Whether or not to optimize for fast installation.
18082
fast_install=$enable_fast_install
18085
host_alias=$host_alias
18089
# The build system.
18090
build_alias=$build_alias
18094
# An echo program that does not interpret backslashes.
18099
AR_FLAGS=$lt_AR_FLAGS
18104
# A language-specific compiler.
18105
CC=$lt_compiler_GCJ
18107
# Is the compiler the GNU C compiler?
18113
# The linker used to build libraries.
18116
# Whether we need hard or soft links.
18119
# A BSD-compatible nm program.
18122
# A symbol stripping program
18125
# Used to examine libraries when file_magic_cmd begins "file"
18126
MAGIC_CMD=$MAGIC_CMD
18128
# Used on cygwin: DLL creation program.
18131
# Used on cygwin: object dumper.
18134
# Used on cygwin: assembler.
18137
# The name of the directory that contains temporary libtool files.
18140
# How to create reloadable object files.
18141
reload_flag=$lt_reload_flag
18142
reload_cmds=$lt_reload_cmds
18144
# How to pass a linker flag through the compiler.
18145
wl=$lt_lt_prog_compiler_wl_GCJ
18147
# Object file suffix (normally "o").
18148
objext="$ac_objext"
18150
# Old archive suffix (normally "a").
18153
# Shared library suffix (normally ".so").
18154
shrext_cmds='$shrext_cmds'
18156
# Executable file suffix (normally "").
18159
# Additional compiler flags for building library objects.
18160
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18163
# What is the maximum length of a command?
18164
max_cmd_len=$lt_cv_sys_max_cmd_len
18166
# Does compiler simultaneously support -c and -o options?
18167
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18169
# Must we lock files when doing compilation ?
18170
need_locks=$lt_need_locks
18172
# Do we need the lib prefix for modules?
18173
need_lib_prefix=$need_lib_prefix
18175
# Do we need a version for libraries?
18176
need_version=$need_version
18178
# Whether dlopen is supported.
18179
dlopen_support=$enable_dlopen
18181
# Whether dlopen of programs is supported.
18182
dlopen_self=$enable_dlopen_self
18184
# Whether dlopen of statically linked programs is supported.
18185
dlopen_self_static=$enable_dlopen_self_static
18187
# Compiler flag to prevent dynamic linking.
18188
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18190
# Compiler flag to turn off builtin functions.
18191
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18193
# Compiler flag to allow reflexive dlopens.
18194
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18196
# Compiler flag to generate shared objects directly from archives.
18197
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18199
# Compiler flag to generate thread-safe objects.
18200
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18202
# Library versioning type.
18203
version_type=$version_type
18205
# Format of library name prefix.
18206
libname_spec=$lt_libname_spec
18208
# List of archive names. First name is the real one, the rest are links.
18209
# The last name is the one that the linker finds with -lNAME.
18210
library_names_spec=$lt_library_names_spec
18212
# The coded name of the library, if different from the real name.
18213
soname_spec=$lt_soname_spec
18215
# Commands used to build and install an old-style archive.
18217
old_archive_cmds=$lt_old_archive_cmds_GCJ
18218
old_postinstall_cmds=$lt_old_postinstall_cmds
18219
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18221
# Create an old-style archive from a shared archive.
18222
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18224
# Create a temporary old-style archive to link instead of a shared archive.
18225
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18227
# Commands used to build and install a shared archive.
18228
archive_cmds=$lt_archive_cmds_GCJ
18229
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18230
postinstall_cmds=$lt_postinstall_cmds
18231
postuninstall_cmds=$lt_postuninstall_cmds
18233
# Commands used to build a loadable module (assumed same as above if empty)
18234
module_cmds=$lt_module_cmds_GCJ
18235
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18237
# Commands to strip libraries.
18238
old_striplib=$lt_old_striplib
18239
striplib=$lt_striplib
18241
# Dependencies to place before the objects being linked to create a
18243
predep_objects=$lt_predep_objects_GCJ
18245
# Dependencies to place after the objects being linked to create a
18247
postdep_objects=$lt_postdep_objects_GCJ
18249
# Dependencies to place before the objects being linked to create a
18251
predeps=$lt_predeps_GCJ
18253
# Dependencies to place after the objects being linked to create a
18255
postdeps=$lt_postdeps_GCJ
18257
# The library search path used internally by the compiler when linking
18258
# a shared library.
18259
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18261
# Method to check whether dependent libraries are shared objects.
18262
deplibs_check_method=$lt_deplibs_check_method
18264
# Command to use when deplibs_check_method == file_magic.
18265
file_magic_cmd=$lt_file_magic_cmd
18267
# Flag that allows shared libraries with undefined symbols to be built.
18268
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18270
# Flag that forces no undefined symbols.
18271
no_undefined_flag=$lt_no_undefined_flag_GCJ
18273
# Commands used to finish a libtool library installation in a directory.
18274
finish_cmds=$lt_finish_cmds
18276
# Same as above, but a single script fragment to be evaled but not shown.
18277
finish_eval=$lt_finish_eval
18279
# Take the output of nm and produce a listing of raw symbols and C names.
18280
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18282
# Transform the output of nm in a proper C declaration
18283
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18285
# Transform the output of nm in a C name address pair
18286
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18288
# This is the shared library runtime path variable.
18289
runpath_var=$runpath_var
18291
# This is the shared library path variable.
18292
shlibpath_var=$shlibpath_var
18294
# Is shlibpath searched before the hard-coded library search path?
18295
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18297
# How to hardcode a shared library path into an executable.
18298
hardcode_action=$hardcode_action_GCJ
18300
# Whether we should hardcode library paths into libraries.
18301
hardcode_into_libs=$hardcode_into_libs
18303
# Flag to hardcode \$libdir into a binary during linking.
18304
# This must work even if \$libdir does not exist.
18305
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18307
# If ld is used when linking, flag to hardcode \$libdir into
18308
# a binary during linking. This must work even if \$libdir does
18310
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18312
# Whether we need a single -rpath flag with a separated argument.
18313
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18315
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18316
# resulting binary.
18317
hardcode_direct=$hardcode_direct_GCJ
18319
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18320
# resulting binary.
18321
hardcode_minus_L=$hardcode_minus_L_GCJ
18323
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18324
# the resulting binary.
18325
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18327
# Set to yes if building a shared library automatically hardcodes DIR into the library
18328
# and all subsequent libraries and executables linked against it.
18329
hardcode_automatic=$hardcode_automatic_GCJ
18331
# Variables whose values should be saved in libtool wrapper scripts and
18332
# restored at relink time.
18333
variables_saved_for_relink="$variables_saved_for_relink"
18335
# Whether libtool must link a program against all its dependency libraries.
18336
link_all_deplibs=$link_all_deplibs_GCJ
18338
# Compile-time system search path for libraries
18339
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18341
# Run-time system search path for libraries
18342
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18344
# Fix the shell variable \$srcfile for the compiler.
18345
fix_srcfile_path="$fix_srcfile_path_GCJ"
18347
# Set to yes if exported symbols are required.
18348
always_export_symbols=$always_export_symbols_GCJ
18350
# The commands to list exported symbols.
18351
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18353
# The commands to extract the exported symbol list from a shared archive.
18354
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18356
# Symbols that should not be listed in the preloaded symbols.
18357
exclude_expsyms=$lt_exclude_expsyms_GCJ
18359
# Symbols that must always be exported.
18360
include_expsyms=$lt_include_expsyms_GCJ
18362
# ### END LIBTOOL TAG CONFIG: $tagname
18368
# If there is no Makefile yet, we rely on a make rule to execute
18369
# `config.status --recheck' to rerun these tests and create the
18370
# libtool script then.
18371
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18372
if test -f "$ltmain_in"; then
18373
test -f Makefile && make "$ltmain"
18379
ac_cpp='$CPP $CPPFLAGS'
18380
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18381
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18382
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18395
# Source file extension for RC test sources.
18398
# Object file extension for compiled RC test sources.
18402
# Code to be used in simple compile tests
18403
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18405
# Code to be used in simple link tests
18406
lt_simple_link_test_code="$lt_simple_compile_test_code"
18408
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18410
# If no C compiler was specified, use CC.
18413
# Allow CC to be a program name with arguments.
18417
# Allow CC to be a program name with arguments.
18422
lt_cv_prog_compiler_c_o_RC=yes
18424
# The else clause should only fire when bootstrapping the
18425
# libtool distribution, otherwise you forgot to ship ltmain.sh
18426
# with your package, and you will get complaints that there are
18427
# no rules to generate ltmain.sh.
18428
if test -f "$ltmain"; then
18429
# See if we are running on zsh, and set the options which allow our commands through
18430
# without removal of \ escapes.
18431
if test -n "${ZSH_VERSION+set}" ; then
18432
setopt NO_GLOB_SUBST
18434
# Now quote all the things that may contain metacharacters while being
18435
# careful not to overquote the AC_SUBSTed values. We take copies of the
18436
# variables and quote the copies for generation of the libtool script.
18437
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18439
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18440
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18441
deplibs_check_method reload_flag reload_cmds need_locks \
18442
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18443
lt_cv_sys_global_symbol_to_c_name_address \
18444
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18445
old_postinstall_cmds old_postuninstall_cmds \
18449
lt_prog_compiler_wl_RC \
18450
lt_prog_compiler_pic_RC \
18451
lt_prog_compiler_static_RC \
18452
lt_prog_compiler_no_builtin_flag_RC \
18453
export_dynamic_flag_spec_RC \
18454
thread_safe_flag_spec_RC \
18455
whole_archive_flag_spec_RC \
18456
enable_shared_with_static_runtimes_RC \
18457
old_archive_cmds_RC \
18458
old_archive_from_new_cmds_RC \
18459
predep_objects_RC \
18460
postdep_objects_RC \
18463
compiler_lib_search_path_RC \
18465
archive_expsym_cmds_RC \
18466
postinstall_cmds_RC \
18467
postuninstall_cmds_RC \
18468
old_archive_from_expsyms_cmds_RC \
18469
allow_undefined_flag_RC \
18470
no_undefined_flag_RC \
18471
export_symbols_cmds_RC \
18472
hardcode_libdir_flag_spec_RC \
18473
hardcode_libdir_flag_spec_ld_RC \
18474
hardcode_libdir_separator_RC \
18475
hardcode_automatic_RC \
18477
module_expsym_cmds_RC \
18478
lt_cv_prog_compiler_c_o_RC \
18479
exclude_expsyms_RC \
18480
include_expsyms_RC; do
18483
old_archive_cmds_RC | \
18484
old_archive_from_new_cmds_RC | \
18485
archive_cmds_RC | \
18486
archive_expsym_cmds_RC | \
18488
module_expsym_cmds_RC | \
18489
old_archive_from_expsyms_cmds_RC | \
18490
export_symbols_cmds_RC | \
18491
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18492
postinstall_cmds | postuninstall_cmds | \
18493
old_postinstall_cmds | old_postuninstall_cmds | \
18494
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18495
# Double-quote double-evaled strings.
18496
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18499
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18505
*'\$0 --fallback-echo"')
18506
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18512
cat <<__EOF__ >> "$cfgfile"
18513
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18515
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18517
# Shell to use when invoking shell scripts.
18520
# Whether or not to build shared libraries.
18521
build_libtool_libs=$enable_shared
18523
# Whether or not to build static libraries.
18524
build_old_libs=$enable_static
18526
# Whether or not to add -lc for building shared libraries.
18527
build_libtool_need_lc=$archive_cmds_need_lc_RC
18529
# Whether or not to disallow shared libs when runtime libs are static
18530
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18532
# Whether or not to optimize for fast installation.
18533
fast_install=$enable_fast_install
18536
host_alias=$host_alias
18540
# The build system.
18541
build_alias=$build_alias
18545
# An echo program that does not interpret backslashes.
18550
AR_FLAGS=$lt_AR_FLAGS
18555
# A language-specific compiler.
18558
# Is the compiler the GNU C compiler?
18564
# The linker used to build libraries.
18567
# Whether we need hard or soft links.
18570
# A BSD-compatible nm program.
18573
# A symbol stripping program
18576
# Used to examine libraries when file_magic_cmd begins "file"
18577
MAGIC_CMD=$MAGIC_CMD
18579
# Used on cygwin: DLL creation program.
18582
# Used on cygwin: object dumper.
18585
# Used on cygwin: assembler.
18588
# The name of the directory that contains temporary libtool files.
18591
# How to create reloadable object files.
18592
reload_flag=$lt_reload_flag
18593
reload_cmds=$lt_reload_cmds
18595
# How to pass a linker flag through the compiler.
18596
wl=$lt_lt_prog_compiler_wl_RC
18598
# Object file suffix (normally "o").
18599
objext="$ac_objext"
18601
# Old archive suffix (normally "a").
18604
# Shared library suffix (normally ".so").
18605
shrext_cmds='$shrext_cmds'
18607
# Executable file suffix (normally "").
18610
# Additional compiler flags for building library objects.
18611
pic_flag=$lt_lt_prog_compiler_pic_RC
18614
# What is the maximum length of a command?
18615
max_cmd_len=$lt_cv_sys_max_cmd_len
18617
# Does compiler simultaneously support -c and -o options?
18618
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18620
# Must we lock files when doing compilation ?
18621
need_locks=$lt_need_locks
18623
# Do we need the lib prefix for modules?
18624
need_lib_prefix=$need_lib_prefix
18626
# Do we need a version for libraries?
18627
need_version=$need_version
18629
# Whether dlopen is supported.
18630
dlopen_support=$enable_dlopen
18632
# Whether dlopen of programs is supported.
18633
dlopen_self=$enable_dlopen_self
18635
# Whether dlopen of statically linked programs is supported.
18636
dlopen_self_static=$enable_dlopen_self_static
18638
# Compiler flag to prevent dynamic linking.
18639
link_static_flag=$lt_lt_prog_compiler_static_RC
18641
# Compiler flag to turn off builtin functions.
18642
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18644
# Compiler flag to allow reflexive dlopens.
18645
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18647
# Compiler flag to generate shared objects directly from archives.
18648
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18650
# Compiler flag to generate thread-safe objects.
18651
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18653
# Library versioning type.
18654
version_type=$version_type
18656
# Format of library name prefix.
18657
libname_spec=$lt_libname_spec
18659
# List of archive names. First name is the real one, the rest are links.
18660
# The last name is the one that the linker finds with -lNAME.
18661
library_names_spec=$lt_library_names_spec
18663
# The coded name of the library, if different from the real name.
18664
soname_spec=$lt_soname_spec
18666
# Commands used to build and install an old-style archive.
18668
old_archive_cmds=$lt_old_archive_cmds_RC
18669
old_postinstall_cmds=$lt_old_postinstall_cmds
18670
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18672
# Create an old-style archive from a shared archive.
18673
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18675
# Create a temporary old-style archive to link instead of a shared archive.
18676
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18678
# Commands used to build and install a shared archive.
18679
archive_cmds=$lt_archive_cmds_RC
18680
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18681
postinstall_cmds=$lt_postinstall_cmds
18682
postuninstall_cmds=$lt_postuninstall_cmds
18684
# Commands used to build a loadable module (assumed same as above if empty)
18685
module_cmds=$lt_module_cmds_RC
18686
module_expsym_cmds=$lt_module_expsym_cmds_RC
18688
# Commands to strip libraries.
18689
old_striplib=$lt_old_striplib
18690
striplib=$lt_striplib
18692
# Dependencies to place before the objects being linked to create a
18694
predep_objects=$lt_predep_objects_RC
18696
# Dependencies to place after the objects being linked to create a
18698
postdep_objects=$lt_postdep_objects_RC
18700
# Dependencies to place before the objects being linked to create a
18702
predeps=$lt_predeps_RC
18704
# Dependencies to place after the objects being linked to create a
18706
postdeps=$lt_postdeps_RC
18708
# The library search path used internally by the compiler when linking
18709
# a shared library.
18710
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18712
# Method to check whether dependent libraries are shared objects.
18713
deplibs_check_method=$lt_deplibs_check_method
18715
# Command to use when deplibs_check_method == file_magic.
18716
file_magic_cmd=$lt_file_magic_cmd
18718
# Flag that allows shared libraries with undefined symbols to be built.
18719
allow_undefined_flag=$lt_allow_undefined_flag_RC
18721
# Flag that forces no undefined symbols.
18722
no_undefined_flag=$lt_no_undefined_flag_RC
18724
# Commands used to finish a libtool library installation in a directory.
18725
finish_cmds=$lt_finish_cmds
18727
# Same as above, but a single script fragment to be evaled but not shown.
18728
finish_eval=$lt_finish_eval
18730
# Take the output of nm and produce a listing of raw symbols and C names.
18731
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18733
# Transform the output of nm in a proper C declaration
18734
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18736
# Transform the output of nm in a C name address pair
18737
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18739
# This is the shared library runtime path variable.
18740
runpath_var=$runpath_var
18742
# This is the shared library path variable.
18743
shlibpath_var=$shlibpath_var
18745
# Is shlibpath searched before the hard-coded library search path?
18746
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18748
# How to hardcode a shared library path into an executable.
18749
hardcode_action=$hardcode_action_RC
18751
# Whether we should hardcode library paths into libraries.
18752
hardcode_into_libs=$hardcode_into_libs
18754
# Flag to hardcode \$libdir into a binary during linking.
18755
# This must work even if \$libdir does not exist.
18756
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18758
# If ld is used when linking, flag to hardcode \$libdir into
18759
# a binary during linking. This must work even if \$libdir does
18761
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18763
# Whether we need a single -rpath flag with a separated argument.
18764
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18766
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18767
# resulting binary.
18768
hardcode_direct=$hardcode_direct_RC
18770
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18771
# resulting binary.
18772
hardcode_minus_L=$hardcode_minus_L_RC
18774
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18775
# the resulting binary.
18776
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18778
# Set to yes if building a shared library automatically hardcodes DIR into the library
18779
# and all subsequent libraries and executables linked against it.
18780
hardcode_automatic=$hardcode_automatic_RC
18782
# Variables whose values should be saved in libtool wrapper scripts and
18783
# restored at relink time.
18784
variables_saved_for_relink="$variables_saved_for_relink"
18786
# Whether libtool must link a program against all its dependency libraries.
18787
link_all_deplibs=$link_all_deplibs_RC
18789
# Compile-time system search path for libraries
18790
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18792
# Run-time system search path for libraries
18793
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18795
# Fix the shell variable \$srcfile for the compiler.
18796
fix_srcfile_path="$fix_srcfile_path_RC"
18798
# Set to yes if exported symbols are required.
18799
always_export_symbols=$always_export_symbols_RC
18801
# The commands to list exported symbols.
18802
export_symbols_cmds=$lt_export_symbols_cmds_RC
18804
# The commands to extract the exported symbol list from a shared archive.
18805
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18807
# Symbols that should not be listed in the preloaded symbols.
18808
exclude_expsyms=$lt_exclude_expsyms_RC
18810
# Symbols that must always be exported.
18811
include_expsyms=$lt_include_expsyms_RC
18813
# ### END LIBTOOL TAG CONFIG: $tagname
18819
# If there is no Makefile yet, we rely on a make rule to execute
18820
# `config.status --recheck' to rerun these tests and create the
18821
# libtool script then.
18822
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18823
if test -f "$ltmain_in"; then
18824
test -f Makefile && make "$ltmain"
18830
ac_cpp='$CPP $CPPFLAGS'
18831
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18832
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18833
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18840
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18841
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18842
{ (exit 1); exit 1; }; }
18846
# Append the new tag name to the list of available tags.
18847
if test -n "$tagname" ; then
18848
available_tags="$available_tags $tagname"
18854
# Now substitute the updated list of available tags.
18855
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18856
mv "${ofile}T" "$ofile"
18860
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18861
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18862
{ (exit 1); exit 1; }; }
18868
# This can be used to rebuild libtool when needed
18869
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18871
# Always use our own libtool.
18872
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18874
# Prevent multiple expansion
18897
2998
case "$host_os" in
18898
2999
*win32) exeext='.exe';;
18899
3000
*) exeext='';;