7090
7303
darwin* | rhapsody*)
7091
if test "$GXX" = yes ; then
7305
rhapsody* | darwin1.[012])
7306
allow_undefined_flag='${wl}-undefined ${wl}suppress'
7309
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7310
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7312
case ${MACOSX_DEPLOYMENT_TARGET} in
7314
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7317
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7092
7323
archive_cmds_need_lc=no
7094
rhapsody* | darwin1.[012])
7095
allow_undefined_flag='-undefined suppress'
7098
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7099
allow_undefined_flag='-flat_namespace -undefined suppress'
7101
case ${MACOSX_DEPLOYMENT_TARGET} in
7103
allow_undefined_flag='-flat_namespace -undefined suppress'
7106
allow_undefined_flag='-undefined dynamic_lookup'
7112
lt_int_apple_cc_single_mod=no
7113
output_verbose_link_cmd='echo'
7114
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7115
lt_int_apple_cc_single_mod=yes
7117
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7118
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7120
archive_cmds='$CC -r ${wl}-bind_at_load -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'
7122
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7123
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7124
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7125
archive_expsym_cmds='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}'
7127
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7129
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}'
7130
7324
hardcode_direct=no
7131
7325
hardcode_automatic=yes
7132
7326
hardcode_shlibpath_var=unsupported
7133
whole_archive_flag_spec='-all_load $convenience'
7327
whole_archive_flag_spec=''
7134
7328
link_all_deplibs=yes
7329
if test "$GCC" = yes ; then
7330
output_verbose_link_cmd='echo'
7331
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7332
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7333
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7334
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}'
7335
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}'
7337
case $cc_basename in
7339
output_verbose_link_cmd='echo'
7340
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7341
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7342
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7343
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}'
7344
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}'
10065
10370
echo EXPORTS > $output_objdir/$soname.def;
10066
10371
cat $export_symbols >> $output_objdir/$soname.def;
10068
$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'
10373
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10070
10375
ld_shlibs_CXX=no
10074
darwin* | rhapsody*)
10075
if test "$GXX" = yes; then
10076
archive_cmds_need_lc_CXX=no
10078
rhapsody* | darwin1.[012])
10079
allow_undefined_flag_CXX='-undefined suppress'
10082
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10083
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10085
case ${MACOSX_DEPLOYMENT_TARGET} in
10087
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10090
allow_undefined_flag_CXX='-undefined dynamic_lookup'
10378
darwin* | rhapsody*)
10380
rhapsody* | darwin1.[012])
10381
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10384
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10385
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10387
case ${MACOSX_DEPLOYMENT_TARGET} in
10389
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10392
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10096
lt_int_apple_cc_single_mod=no
10097
output_verbose_link_cmd='echo'
10098
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10099
lt_int_apple_cc_single_mod=yes
10101
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10102
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10104
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10106
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10398
archive_cmds_need_lc_CXX=no
10399
hardcode_direct_CXX=no
10400
hardcode_automatic_CXX=yes
10401
hardcode_shlibpath_var_CXX=unsupported
10402
whole_archive_flag_spec_CXX=''
10403
link_all_deplibs_CXX=yes
10108
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10109
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10110
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}'
10112
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10114
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}'
10115
hardcode_direct_CXX=no
10116
hardcode_automatic_CXX=yes
10117
hardcode_shlibpath_var_CXX=unsupported
10118
whole_archive_flag_spec_CXX='-all_load $convenience'
10119
link_all_deplibs_CXX=yes
10405
if test "$GXX" = yes ; then
10406
lt_int_apple_cc_single_mod=no
10407
output_verbose_link_cmd='echo'
10408
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10409
lt_int_apple_cc_single_mod=yes
10411
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10412
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10414
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'
10416
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10417
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10418
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10419
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}'
10421
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}'
10423
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}'
10425
case $cc_basename in
10427
output_verbose_link_cmd='echo'
10428
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'
10429
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10430
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10431
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}'
10432
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}'
10126
10442
case $cc_basename in
10128
10444
# FIXME: insert proper C++ library support
10129
10445
ld_shlibs_CXX=no
10132
10448
# Green Hills C++ Compiler
10133
10449
# FIXME: insert proper C++ library support
10134
10450
ld_shlibs_CXX=no
11848
12385
enable_fast_install=needless
11853
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11854
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11855
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11856
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11857
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11858
echo "$as_me:$LINENO: result: yes" >&5
11859
echo "${ECHO_T}yes" >&6
11861
# FIXME - insert some real tests, host_os isn't really good enough
11864
if test -n "$STRIP" ; then
11865
striplib="$STRIP -x"
11866
echo "$as_me:$LINENO: result: yes" >&5
11867
echo "${ECHO_T}yes" >&6
11869
echo "$as_me:$LINENO: result: no" >&5
11870
echo "${ECHO_T}no" >&6
11874
echo "$as_me:$LINENO: result: no" >&5
11875
echo "${ECHO_T}no" >&6
11880
if test "x$enable_dlopen" != xyes; then
11881
enable_dlopen=unknown
11882
enable_dlopen_self=unknown
11883
enable_dlopen_self_static=unknown
11890
lt_cv_dlopen="load_add_on"
11892
lt_cv_dlopen_self=yes
11896
lt_cv_dlopen="LoadLibrary"
11901
lt_cv_dlopen="dlopen"
11906
# if libdl is installed we need to link against it
11907
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11908
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11909
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11910
echo $ECHO_N "(cached) $ECHO_C" >&6
11912
ac_check_lib_save_LIBS=$LIBS
11914
cat >conftest.$ac_ext <<_ACEOF
11917
cat confdefs.h >>conftest.$ac_ext
11918
cat >>conftest.$ac_ext <<_ACEOF
11919
/* end confdefs.h. */
11921
/* Override any gcc2 internal prototype to avoid an error. */
11925
/* We use char because int might match the return type of a gcc2
11926
builtin and then its argument prototype would still apply. */
11936
rm -f conftest.$ac_objext conftest$ac_exeext
11937
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11938
(eval $ac_link) 2>conftest.er1
11940
grep -v '^ *+' conftest.er1 >conftest.err
11942
cat conftest.err >&5
11943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944
(exit $ac_status); } &&
11945
{ ac_try='test -z "$ac_cxx_werror_flag"
11946
|| test ! -s conftest.err'
11947
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948
(eval $ac_try) 2>&5
11950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951
(exit $ac_status); }; } &&
11952
{ ac_try='test -s conftest$ac_exeext'
11953
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954
(eval $ac_try) 2>&5
11956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957
(exit $ac_status); }; }; then
11958
ac_cv_lib_dl_dlopen=yes
11960
echo "$as_me: failed program was:" >&5
11961
sed 's/^/| /' conftest.$ac_ext >&5
11963
ac_cv_lib_dl_dlopen=no
11965
rm -f conftest.err conftest.$ac_objext \
11966
conftest$ac_exeext conftest.$ac_ext
11967
LIBS=$ac_check_lib_save_LIBS
11969
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11970
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11971
if test $ac_cv_lib_dl_dlopen = yes; then
11972
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11975
lt_cv_dlopen="dyld"
11977
lt_cv_dlopen_self=yes
11984
echo "$as_me:$LINENO: checking for shl_load" >&5
11985
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11986
if test "${ac_cv_func_shl_load+set}" = set; then
11987
echo $ECHO_N "(cached) $ECHO_C" >&6
11989
cat >conftest.$ac_ext <<_ACEOF
11992
cat confdefs.h >>conftest.$ac_ext
11993
cat >>conftest.$ac_ext <<_ACEOF
11994
/* end confdefs.h. */
11995
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11996
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11997
#define shl_load innocuous_shl_load
11999
/* System header to define __stub macros and hopefully few prototypes,
12000
which can conflict with char shl_load (); below.
12001
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12002
<limits.h> exists even on freestanding compilers. */
12005
# include <limits.h>
12007
# include <assert.h>
12012
/* Override any gcc2 internal prototype to avoid an error. */
12017
/* We use char because int might match the return type of a gcc2
12018
builtin and then its argument prototype would still apply. */
12020
/* The GNU C library defines this for functions which it implements
12021
to always fail with ENOSYS. Some functions are actually named
12022
something starting with __ and the normal name is an alias. */
12023
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12026
char (*f) () = shl_load;
12035
return f != shl_load;
12040
rm -f conftest.$ac_objext conftest$ac_exeext
12041
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12042
(eval $ac_link) 2>conftest.er1
12044
grep -v '^ *+' conftest.er1 >conftest.err
12046
cat conftest.err >&5
12047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048
(exit $ac_status); } &&
12049
{ ac_try='test -z "$ac_cxx_werror_flag"
12050
|| test ! -s conftest.err'
12051
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052
(eval $ac_try) 2>&5
12054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055
(exit $ac_status); }; } &&
12056
{ ac_try='test -s conftest$ac_exeext'
12057
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058
(eval $ac_try) 2>&5
12060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061
(exit $ac_status); }; }; then
12062
ac_cv_func_shl_load=yes
12064
echo "$as_me: failed program was:" >&5
12065
sed 's/^/| /' conftest.$ac_ext >&5
12067
ac_cv_func_shl_load=no
12069
rm -f conftest.err conftest.$ac_objext \
12070
conftest$ac_exeext conftest.$ac_ext
12072
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12073
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12074
if test $ac_cv_func_shl_load = yes; then
12075
lt_cv_dlopen="shl_load"
12077
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12078
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12079
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12080
echo $ECHO_N "(cached) $ECHO_C" >&6
12082
ac_check_lib_save_LIBS=$LIBS
12084
cat >conftest.$ac_ext <<_ACEOF
12087
cat confdefs.h >>conftest.$ac_ext
12088
cat >>conftest.$ac_ext <<_ACEOF
12089
/* end confdefs.h. */
12091
/* Override any gcc2 internal prototype to avoid an error. */
12095
/* We use char because int might match the return type of a gcc2
12096
builtin and then its argument prototype would still apply. */
12106
rm -f conftest.$ac_objext conftest$ac_exeext
12107
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108
(eval $ac_link) 2>conftest.er1
12110
grep -v '^ *+' conftest.er1 >conftest.err
12112
cat conftest.err >&5
12113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114
(exit $ac_status); } &&
12115
{ ac_try='test -z "$ac_cxx_werror_flag"
12116
|| test ! -s conftest.err'
12117
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118
(eval $ac_try) 2>&5
12120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121
(exit $ac_status); }; } &&
12122
{ ac_try='test -s conftest$ac_exeext'
12123
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124
(eval $ac_try) 2>&5
12126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127
(exit $ac_status); }; }; then
12128
ac_cv_lib_dld_shl_load=yes
12130
echo "$as_me: failed program was:" >&5
12131
sed 's/^/| /' conftest.$ac_ext >&5
12133
ac_cv_lib_dld_shl_load=no
12135
rm -f conftest.err conftest.$ac_objext \
12136
conftest$ac_exeext conftest.$ac_ext
12137
LIBS=$ac_check_lib_save_LIBS
12139
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12140
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12141
if test $ac_cv_lib_dld_shl_load = yes; then
12142
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12144
echo "$as_me:$LINENO: checking for dlopen" >&5
12145
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12146
if test "${ac_cv_func_dlopen+set}" = set; then
12147
echo $ECHO_N "(cached) $ECHO_C" >&6
12149
cat >conftest.$ac_ext <<_ACEOF
12152
cat confdefs.h >>conftest.$ac_ext
12153
cat >>conftest.$ac_ext <<_ACEOF
12154
/* end confdefs.h. */
12155
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12156
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12157
#define dlopen innocuous_dlopen
12159
/* System header to define __stub macros and hopefully few prototypes,
12160
which can conflict with char dlopen (); below.
12161
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12162
<limits.h> exists even on freestanding compilers. */
12165
# include <limits.h>
12167
# include <assert.h>
12172
/* Override any gcc2 internal prototype to avoid an error. */
12177
/* We use char because int might match the return type of a gcc2
12178
builtin and then its argument prototype would still apply. */
12180
/* The GNU C library defines this for functions which it implements
12181
to always fail with ENOSYS. Some functions are actually named
12182
something starting with __ and the normal name is an alias. */
12183
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12186
char (*f) () = dlopen;
12195
return f != dlopen;
12200
rm -f conftest.$ac_objext conftest$ac_exeext
12201
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12202
(eval $ac_link) 2>conftest.er1
12204
grep -v '^ *+' conftest.er1 >conftest.err
12206
cat conftest.err >&5
12207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208
(exit $ac_status); } &&
12209
{ ac_try='test -z "$ac_cxx_werror_flag"
12210
|| test ! -s conftest.err'
12211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212
(eval $ac_try) 2>&5
12214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215
(exit $ac_status); }; } &&
12216
{ ac_try='test -s conftest$ac_exeext'
12217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218
(eval $ac_try) 2>&5
12220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221
(exit $ac_status); }; }; then
12222
ac_cv_func_dlopen=yes
12224
echo "$as_me: failed program was:" >&5
12225
sed 's/^/| /' conftest.$ac_ext >&5
12227
ac_cv_func_dlopen=no
12229
rm -f conftest.err conftest.$ac_objext \
12230
conftest$ac_exeext conftest.$ac_ext
12232
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12233
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12234
if test $ac_cv_func_dlopen = yes; then
12235
lt_cv_dlopen="dlopen"
12237
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12238
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12239
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12240
echo $ECHO_N "(cached) $ECHO_C" >&6
12242
ac_check_lib_save_LIBS=$LIBS
12244
cat >conftest.$ac_ext <<_ACEOF
12247
cat confdefs.h >>conftest.$ac_ext
12248
cat >>conftest.$ac_ext <<_ACEOF
12249
/* end confdefs.h. */
12251
/* Override any gcc2 internal prototype to avoid an error. */
12255
/* We use char because int might match the return type of a gcc2
12256
builtin and then its argument prototype would still apply. */
12266
rm -f conftest.$ac_objext conftest$ac_exeext
12267
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12268
(eval $ac_link) 2>conftest.er1
12270
grep -v '^ *+' conftest.er1 >conftest.err
12272
cat conftest.err >&5
12273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274
(exit $ac_status); } &&
12275
{ ac_try='test -z "$ac_cxx_werror_flag"
12276
|| test ! -s conftest.err'
12277
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278
(eval $ac_try) 2>&5
12280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281
(exit $ac_status); }; } &&
12282
{ ac_try='test -s conftest$ac_exeext'
12283
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284
(eval $ac_try) 2>&5
12286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287
(exit $ac_status); }; }; then
12288
ac_cv_lib_dl_dlopen=yes
12290
echo "$as_me: failed program was:" >&5
12291
sed 's/^/| /' conftest.$ac_ext >&5
12293
ac_cv_lib_dl_dlopen=no
12295
rm -f conftest.err conftest.$ac_objext \
12296
conftest$ac_exeext conftest.$ac_ext
12297
LIBS=$ac_check_lib_save_LIBS
12299
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12300
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12301
if test $ac_cv_lib_dl_dlopen = yes; then
12302
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12304
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12305
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12306
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12307
echo $ECHO_N "(cached) $ECHO_C" >&6
12309
ac_check_lib_save_LIBS=$LIBS
12310
LIBS="-lsvld $LIBS"
12311
cat >conftest.$ac_ext <<_ACEOF
12314
cat confdefs.h >>conftest.$ac_ext
12315
cat >>conftest.$ac_ext <<_ACEOF
12316
/* end confdefs.h. */
12318
/* Override any gcc2 internal prototype to avoid an error. */
12322
/* We use char because int might match the return type of a gcc2
12323
builtin and then its argument prototype would still apply. */
12333
rm -f conftest.$ac_objext conftest$ac_exeext
12334
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12335
(eval $ac_link) 2>conftest.er1
12337
grep -v '^ *+' conftest.er1 >conftest.err
12339
cat conftest.err >&5
12340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341
(exit $ac_status); } &&
12342
{ ac_try='test -z "$ac_cxx_werror_flag"
12343
|| test ! -s conftest.err'
12344
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345
(eval $ac_try) 2>&5
12347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348
(exit $ac_status); }; } &&
12349
{ ac_try='test -s conftest$ac_exeext'
12350
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351
(eval $ac_try) 2>&5
12353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354
(exit $ac_status); }; }; then
12355
ac_cv_lib_svld_dlopen=yes
12357
echo "$as_me: failed program was:" >&5
12358
sed 's/^/| /' conftest.$ac_ext >&5
12360
ac_cv_lib_svld_dlopen=no
12362
rm -f conftest.err conftest.$ac_objext \
12363
conftest$ac_exeext conftest.$ac_ext
12364
LIBS=$ac_check_lib_save_LIBS
12366
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12367
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12368
if test $ac_cv_lib_svld_dlopen = yes; then
12369
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12371
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12372
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12373
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12374
echo $ECHO_N "(cached) $ECHO_C" >&6
12376
ac_check_lib_save_LIBS=$LIBS
12378
cat >conftest.$ac_ext <<_ACEOF
12381
cat confdefs.h >>conftest.$ac_ext
12382
cat >>conftest.$ac_ext <<_ACEOF
12383
/* end confdefs.h. */
12385
/* Override any gcc2 internal prototype to avoid an error. */
12389
/* We use char because int might match the return type of a gcc2
12390
builtin and then its argument prototype would still apply. */
12400
rm -f conftest.$ac_objext conftest$ac_exeext
12401
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12402
(eval $ac_link) 2>conftest.er1
12404
grep -v '^ *+' conftest.er1 >conftest.err
12406
cat conftest.err >&5
12407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408
(exit $ac_status); } &&
12409
{ ac_try='test -z "$ac_cxx_werror_flag"
12410
|| test ! -s conftest.err'
12411
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412
(eval $ac_try) 2>&5
12414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415
(exit $ac_status); }; } &&
12416
{ ac_try='test -s conftest$ac_exeext'
12417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418
(eval $ac_try) 2>&5
12420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421
(exit $ac_status); }; }; then
12422
ac_cv_lib_dld_dld_link=yes
12424
echo "$as_me: failed program was:" >&5
12425
sed 's/^/| /' conftest.$ac_ext >&5
12427
ac_cv_lib_dld_dld_link=no
12429
rm -f conftest.err conftest.$ac_objext \
12430
conftest$ac_exeext conftest.$ac_ext
12431
LIBS=$ac_check_lib_save_LIBS
12433
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12434
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12435
if test $ac_cv_lib_dld_dld_link = yes; then
12436
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12457
if test "x$lt_cv_dlopen" != xno; then
12463
case $lt_cv_dlopen in
12465
save_CPPFLAGS="$CPPFLAGS"
12466
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12468
save_LDFLAGS="$LDFLAGS"
12469
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12472
LIBS="$lt_cv_dlopen_libs $LIBS"
12474
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12475
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12476
if test "${lt_cv_dlopen_self+set}" = set; then
12477
echo $ECHO_N "(cached) $ECHO_C" >&6
12479
if test "$cross_compiling" = yes; then :
12480
lt_cv_dlopen_self=cross
12482
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12483
lt_status=$lt_dlunknown
12484
cat > conftest.$ac_ext <<EOF
12485
#line 12485 "configure"
12486
#include "confdefs.h"
12495
# define LT_DLGLOBAL RTLD_GLOBAL
12498
# define LT_DLGLOBAL DL_GLOBAL
12500
# define LT_DLGLOBAL 0
12504
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12505
find out it does not work in some platform. */
12506
#ifndef LT_DLLAZY_OR_NOW
12508
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12511
# define LT_DLLAZY_OR_NOW DL_LAZY
12514
# define LT_DLLAZY_OR_NOW RTLD_NOW
12517
# define LT_DLLAZY_OR_NOW DL_NOW
12519
# define LT_DLLAZY_OR_NOW 0
12527
extern "C" void exit (int);
12530
void fnord() { int i=42;}
12533
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12534
int status = $lt_dlunknown;
12538
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12539
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12540
/* dlclose (self); */
12546
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12547
(eval $ac_link) 2>&5
12549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12551
(./conftest; exit; ) 2>/dev/null
12553
case x$lt_status in
12554
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12555
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12556
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12559
# compilation failed
12560
lt_cv_dlopen_self=no
12567
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12568
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12570
if test "x$lt_cv_dlopen_self" = xyes; then
12571
LDFLAGS="$LDFLAGS $link_static_flag"
12572
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12573
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12574
if test "${lt_cv_dlopen_self_static+set}" = set; then
12575
echo $ECHO_N "(cached) $ECHO_C" >&6
12577
if test "$cross_compiling" = yes; then :
12578
lt_cv_dlopen_self_static=cross
12580
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12581
lt_status=$lt_dlunknown
12582
cat > conftest.$ac_ext <<EOF
12583
#line 12583 "configure"
12584
#include "confdefs.h"
12593
# define LT_DLGLOBAL RTLD_GLOBAL
12596
# define LT_DLGLOBAL DL_GLOBAL
12598
# define LT_DLGLOBAL 0
12602
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12603
find out it does not work in some platform. */
12604
#ifndef LT_DLLAZY_OR_NOW
12606
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12609
# define LT_DLLAZY_OR_NOW DL_LAZY
12612
# define LT_DLLAZY_OR_NOW RTLD_NOW
12615
# define LT_DLLAZY_OR_NOW DL_NOW
12617
# define LT_DLLAZY_OR_NOW 0
12625
extern "C" void exit (int);
12628
void fnord() { int i=42;}
12631
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12632
int status = $lt_dlunknown;
12636
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12637
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12638
/* dlclose (self); */
12644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12645
(eval $ac_link) 2>&5
12647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12649
(./conftest; exit; ) 2>/dev/null
12651
case x$lt_status in
12652
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12653
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12654
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12657
# compilation failed
12658
lt_cv_dlopen_self_static=no
12665
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12666
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12669
CPPFLAGS="$save_CPPFLAGS"
12670
LDFLAGS="$save_LDFLAGS"
12675
case $lt_cv_dlopen_self in
12676
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12677
*) enable_dlopen_self=unknown ;;
12680
case $lt_cv_dlopen_self_static in
12681
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12682
*) enable_dlopen_self_static=unknown ;;
12687
12389
# The else clause should only fire when bootstrapping the
12688
12390
# libtool distribution, otherwise you forgot to ship ltmain.sh
13972
13868
old_archive_From_new_cmds_F77='true'
13973
13869
# FIXME: Should let the user specify the lib program.
13974
13870
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13975
fix_srcfile_path='`cygpath -w "$srcfile"`'
13871
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13976
13872
enable_shared_with_static_runtimes_F77=yes
13979
13875
darwin* | rhapsody*)
13980
if test "$GXX" = yes ; then
13877
rhapsody* | darwin1.[012])
13878
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13881
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13882
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13884
case ${MACOSX_DEPLOYMENT_TARGET} in
13886
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13889
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13981
13895
archive_cmds_need_lc_F77=no
13983
rhapsody* | darwin1.[012])
13984
allow_undefined_flag_F77='-undefined suppress'
13987
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13988
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13990
case ${MACOSX_DEPLOYMENT_TARGET} in
13992
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13995
allow_undefined_flag_F77='-undefined dynamic_lookup'
14001
lt_int_apple_cc_single_mod=no
14002
output_verbose_link_cmd='echo'
14003
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14004
lt_int_apple_cc_single_mod=yes
14006
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14007
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14009
archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14011
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14012
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14013
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14014
archive_expsym_cmds_F77='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}'
14016
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
14018
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}'
14019
13896
hardcode_direct_F77=no
14020
13897
hardcode_automatic_F77=yes
14021
13898
hardcode_shlibpath_var_F77=unsupported
14022
whole_archive_flag_spec_F77='-all_load $convenience'
13899
whole_archive_flag_spec_F77=''
14023
13900
link_all_deplibs_F77=yes
13901
if test "$GCC" = yes ; then
13902
output_verbose_link_cmd='echo'
13903
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13904
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13905
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13906
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}'
13907
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}'
13909
case $cc_basename in
13911
output_verbose_link_cmd='echo'
13912
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13913
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13914
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13915
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}'
13916
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}'
16340
16483
old_archive_From_new_cmds_GCJ='true'
16341
16484
# FIXME: Should let the user specify the lib program.
16342
16485
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16343
fix_srcfile_path='`cygpath -w "$srcfile"`'
16486
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16344
16487
enable_shared_with_static_runtimes_GCJ=yes
16347
16490
darwin* | rhapsody*)
16348
if test "$GXX" = yes ; then
16492
rhapsody* | darwin1.[012])
16493
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16496
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16497
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16499
case ${MACOSX_DEPLOYMENT_TARGET} in
16501
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16504
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16349
16510
archive_cmds_need_lc_GCJ=no
16351
rhapsody* | darwin1.[012])
16352
allow_undefined_flag_GCJ='-undefined suppress'
16355
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16356
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16358
case ${MACOSX_DEPLOYMENT_TARGET} in
16360
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16363
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16369
lt_int_apple_cc_single_mod=no
16370
output_verbose_link_cmd='echo'
16371
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16372
lt_int_apple_cc_single_mod=yes
16374
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16375
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16377
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16379
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16380
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16381
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16382
archive_expsym_cmds_GCJ='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}'
16384
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16386
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}'
16387
16511
hardcode_direct_GCJ=no
16388
16512
hardcode_automatic_GCJ=yes
16389
16513
hardcode_shlibpath_var_GCJ=unsupported
16390
whole_archive_flag_spec_GCJ='-all_load $convenience'
16514
whole_archive_flag_spec_GCJ=''
16391
16515
link_all_deplibs_GCJ=yes
16516
if test "$GCC" = yes ; then
16517
output_verbose_link_cmd='echo'
16518
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16519
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16520
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16521
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}'
16522
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}'
16524
case $cc_basename in
16526
output_verbose_link_cmd='echo'
16527
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16528
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16529
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16530
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}'
16531
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}'
17386
17607
enable_fast_install=needless
17391
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17392
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17393
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17394
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17395
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17396
echo "$as_me:$LINENO: result: yes" >&5
17397
echo "${ECHO_T}yes" >&6
17399
# FIXME - insert some real tests, host_os isn't really good enough
17402
if test -n "$STRIP" ; then
17403
striplib="$STRIP -x"
17404
echo "$as_me:$LINENO: result: yes" >&5
17405
echo "${ECHO_T}yes" >&6
17407
echo "$as_me:$LINENO: result: no" >&5
17408
echo "${ECHO_T}no" >&6
17412
echo "$as_me:$LINENO: result: no" >&5
17413
echo "${ECHO_T}no" >&6
17418
if test "x$enable_dlopen" != xyes; then
17419
enable_dlopen=unknown
17420
enable_dlopen_self=unknown
17421
enable_dlopen_self_static=unknown
17428
lt_cv_dlopen="load_add_on"
17430
lt_cv_dlopen_self=yes
17434
lt_cv_dlopen="LoadLibrary"
17439
lt_cv_dlopen="dlopen"
17444
# if libdl is installed we need to link against it
17445
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17446
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17447
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17448
echo $ECHO_N "(cached) $ECHO_C" >&6
17450
ac_check_lib_save_LIBS=$LIBS
17452
cat >conftest.$ac_ext <<_ACEOF
17455
cat confdefs.h >>conftest.$ac_ext
17456
cat >>conftest.$ac_ext <<_ACEOF
17457
/* end confdefs.h. */
17459
/* 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. */
17474
rm -f conftest.$ac_objext conftest$ac_exeext
17475
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17476
(eval $ac_link) 2>conftest.er1
17478
grep -v '^ *+' conftest.er1 >conftest.err
17480
cat conftest.err >&5
17481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482
(exit $ac_status); } &&
17483
{ ac_try='test -z "$ac_c_werror_flag"
17484
|| test ! -s conftest.err'
17485
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486
(eval $ac_try) 2>&5
17488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489
(exit $ac_status); }; } &&
17490
{ ac_try='test -s conftest$ac_exeext'
17491
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492
(eval $ac_try) 2>&5
17494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495
(exit $ac_status); }; }; then
17496
ac_cv_lib_dl_dlopen=yes
17498
echo "$as_me: failed program was:" >&5
17499
sed 's/^/| /' conftest.$ac_ext >&5
17501
ac_cv_lib_dl_dlopen=no
17503
rm -f conftest.err conftest.$ac_objext \
17504
conftest$ac_exeext conftest.$ac_ext
17505
LIBS=$ac_check_lib_save_LIBS
17507
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17508
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17509
if test $ac_cv_lib_dl_dlopen = yes; then
17510
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17513
lt_cv_dlopen="dyld"
17515
lt_cv_dlopen_self=yes
17522
echo "$as_me:$LINENO: checking for shl_load" >&5
17523
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17524
if test "${ac_cv_func_shl_load+set}" = set; then
17525
echo $ECHO_N "(cached) $ECHO_C" >&6
17527
cat >conftest.$ac_ext <<_ACEOF
17530
cat confdefs.h >>conftest.$ac_ext
17531
cat >>conftest.$ac_ext <<_ACEOF
17532
/* end confdefs.h. */
17533
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17534
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17535
#define shl_load innocuous_shl_load
17537
/* System header to define __stub macros and hopefully few prototypes,
17538
which can conflict with char shl_load (); below.
17539
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17540
<limits.h> exists even on freestanding compilers. */
17543
# include <limits.h>
17545
# include <assert.h>
17550
/* Override any gcc2 internal prototype to avoid an error. */
17555
/* We use char because int might match the return type of a gcc2
17556
builtin and then its argument prototype would still apply. */
17558
/* The GNU C library defines this for functions which it implements
17559
to always fail with ENOSYS. Some functions are actually named
17560
something starting with __ and the normal name is an alias. */
17561
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17564
char (*f) () = shl_load;
17573
return f != shl_load;
17578
rm -f conftest.$ac_objext conftest$ac_exeext
17579
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17580
(eval $ac_link) 2>conftest.er1
17582
grep -v '^ *+' conftest.er1 >conftest.err
17584
cat conftest.err >&5
17585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586
(exit $ac_status); } &&
17587
{ ac_try='test -z "$ac_c_werror_flag"
17588
|| test ! -s conftest.err'
17589
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590
(eval $ac_try) 2>&5
17592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593
(exit $ac_status); }; } &&
17594
{ ac_try='test -s conftest$ac_exeext'
17595
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596
(eval $ac_try) 2>&5
17598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599
(exit $ac_status); }; }; then
17600
ac_cv_func_shl_load=yes
17602
echo "$as_me: failed program was:" >&5
17603
sed 's/^/| /' conftest.$ac_ext >&5
17605
ac_cv_func_shl_load=no
17607
rm -f conftest.err conftest.$ac_objext \
17608
conftest$ac_exeext conftest.$ac_ext
17610
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17611
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17612
if test $ac_cv_func_shl_load = yes; then
17613
lt_cv_dlopen="shl_load"
17615
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17616
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17617
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17618
echo $ECHO_N "(cached) $ECHO_C" >&6
17620
ac_check_lib_save_LIBS=$LIBS
17622
cat >conftest.$ac_ext <<_ACEOF
17625
cat confdefs.h >>conftest.$ac_ext
17626
cat >>conftest.$ac_ext <<_ACEOF
17627
/* end confdefs.h. */
17629
/* Override any gcc2 internal prototype to avoid an error. */
17633
/* We use char because int might match the return type of a gcc2
17634
builtin and then its argument prototype would still apply. */
17644
rm -f conftest.$ac_objext conftest$ac_exeext
17645
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17646
(eval $ac_link) 2>conftest.er1
17648
grep -v '^ *+' conftest.er1 >conftest.err
17650
cat conftest.err >&5
17651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652
(exit $ac_status); } &&
17653
{ ac_try='test -z "$ac_c_werror_flag"
17654
|| test ! -s conftest.err'
17655
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656
(eval $ac_try) 2>&5
17658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659
(exit $ac_status); }; } &&
17660
{ ac_try='test -s conftest$ac_exeext'
17661
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662
(eval $ac_try) 2>&5
17664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665
(exit $ac_status); }; }; then
17666
ac_cv_lib_dld_shl_load=yes
17668
echo "$as_me: failed program was:" >&5
17669
sed 's/^/| /' conftest.$ac_ext >&5
17671
ac_cv_lib_dld_shl_load=no
17673
rm -f conftest.err conftest.$ac_objext \
17674
conftest$ac_exeext conftest.$ac_ext
17675
LIBS=$ac_check_lib_save_LIBS
17677
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17678
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17679
if test $ac_cv_lib_dld_shl_load = yes; then
17680
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17682
echo "$as_me:$LINENO: checking for dlopen" >&5
17683
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17684
if test "${ac_cv_func_dlopen+set}" = set; then
17685
echo $ECHO_N "(cached) $ECHO_C" >&6
17687
cat >conftest.$ac_ext <<_ACEOF
17690
cat confdefs.h >>conftest.$ac_ext
17691
cat >>conftest.$ac_ext <<_ACEOF
17692
/* end confdefs.h. */
17693
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17694
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17695
#define dlopen innocuous_dlopen
17697
/* System header to define __stub macros and hopefully few prototypes,
17698
which can conflict with char dlopen (); below.
17699
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17700
<limits.h> exists even on freestanding compilers. */
17703
# include <limits.h>
17705
# include <assert.h>
17710
/* Override any gcc2 internal prototype to avoid an error. */
17715
/* We use char because int might match the return type of a gcc2
17716
builtin and then its argument prototype would still apply. */
17718
/* The GNU C library defines this for functions which it implements
17719
to always fail with ENOSYS. Some functions are actually named
17720
something starting with __ and the normal name is an alias. */
17721
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17724
char (*f) () = dlopen;
17733
return f != dlopen;
17738
rm -f conftest.$ac_objext conftest$ac_exeext
17739
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17740
(eval $ac_link) 2>conftest.er1
17742
grep -v '^ *+' conftest.er1 >conftest.err
17744
cat conftest.err >&5
17745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746
(exit $ac_status); } &&
17747
{ ac_try='test -z "$ac_c_werror_flag"
17748
|| test ! -s conftest.err'
17749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750
(eval $ac_try) 2>&5
17752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753
(exit $ac_status); }; } &&
17754
{ ac_try='test -s conftest$ac_exeext'
17755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756
(eval $ac_try) 2>&5
17758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759
(exit $ac_status); }; }; then
17760
ac_cv_func_dlopen=yes
17762
echo "$as_me: failed program was:" >&5
17763
sed 's/^/| /' conftest.$ac_ext >&5
17765
ac_cv_func_dlopen=no
17767
rm -f conftest.err conftest.$ac_objext \
17768
conftest$ac_exeext conftest.$ac_ext
17770
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17771
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17772
if test $ac_cv_func_dlopen = yes; then
17773
lt_cv_dlopen="dlopen"
17775
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17776
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17777
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17778
echo $ECHO_N "(cached) $ECHO_C" >&6
17780
ac_check_lib_save_LIBS=$LIBS
17782
cat >conftest.$ac_ext <<_ACEOF
17785
cat confdefs.h >>conftest.$ac_ext
17786
cat >>conftest.$ac_ext <<_ACEOF
17787
/* end confdefs.h. */
17789
/* Override any gcc2 internal prototype to avoid an error. */
17793
/* We use char because int might match the return type of a gcc2
17794
builtin and then its argument prototype would still apply. */
17804
rm -f conftest.$ac_objext conftest$ac_exeext
17805
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17806
(eval $ac_link) 2>conftest.er1
17808
grep -v '^ *+' conftest.er1 >conftest.err
17810
cat conftest.err >&5
17811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812
(exit $ac_status); } &&
17813
{ ac_try='test -z "$ac_c_werror_flag"
17814
|| test ! -s conftest.err'
17815
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816
(eval $ac_try) 2>&5
17818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819
(exit $ac_status); }; } &&
17820
{ ac_try='test -s conftest$ac_exeext'
17821
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822
(eval $ac_try) 2>&5
17824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825
(exit $ac_status); }; }; then
17826
ac_cv_lib_dl_dlopen=yes
17828
echo "$as_me: failed program was:" >&5
17829
sed 's/^/| /' conftest.$ac_ext >&5
17831
ac_cv_lib_dl_dlopen=no
17833
rm -f conftest.err conftest.$ac_objext \
17834
conftest$ac_exeext conftest.$ac_ext
17835
LIBS=$ac_check_lib_save_LIBS
17837
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17838
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17839
if test $ac_cv_lib_dl_dlopen = yes; then
17840
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17842
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17843
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17844
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17845
echo $ECHO_N "(cached) $ECHO_C" >&6
17847
ac_check_lib_save_LIBS=$LIBS
17848
LIBS="-lsvld $LIBS"
17849
cat >conftest.$ac_ext <<_ACEOF
17852
cat confdefs.h >>conftest.$ac_ext
17853
cat >>conftest.$ac_ext <<_ACEOF
17854
/* end confdefs.h. */
17856
/* Override any gcc2 internal prototype to avoid an error. */
17860
/* We use char because int might match the return type of a gcc2
17861
builtin and then its argument prototype would still apply. */
17871
rm -f conftest.$ac_objext conftest$ac_exeext
17872
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17873
(eval $ac_link) 2>conftest.er1
17875
grep -v '^ *+' conftest.er1 >conftest.err
17877
cat conftest.err >&5
17878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879
(exit $ac_status); } &&
17880
{ ac_try='test -z "$ac_c_werror_flag"
17881
|| test ! -s conftest.err'
17882
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883
(eval $ac_try) 2>&5
17885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886
(exit $ac_status); }; } &&
17887
{ ac_try='test -s conftest$ac_exeext'
17888
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889
(eval $ac_try) 2>&5
17891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892
(exit $ac_status); }; }; then
17893
ac_cv_lib_svld_dlopen=yes
17895
echo "$as_me: failed program was:" >&5
17896
sed 's/^/| /' conftest.$ac_ext >&5
17898
ac_cv_lib_svld_dlopen=no
17900
rm -f conftest.err conftest.$ac_objext \
17901
conftest$ac_exeext conftest.$ac_ext
17902
LIBS=$ac_check_lib_save_LIBS
17904
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17905
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17906
if test $ac_cv_lib_svld_dlopen = yes; then
17907
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17909
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17910
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17911
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17912
echo $ECHO_N "(cached) $ECHO_C" >&6
17914
ac_check_lib_save_LIBS=$LIBS
17916
cat >conftest.$ac_ext <<_ACEOF
17919
cat confdefs.h >>conftest.$ac_ext
17920
cat >>conftest.$ac_ext <<_ACEOF
17921
/* end confdefs.h. */
17923
/* Override any gcc2 internal prototype to avoid an error. */
17927
/* We use char because int might match the return type of a gcc2
17928
builtin and then its argument prototype would still apply. */
17938
rm -f conftest.$ac_objext conftest$ac_exeext
17939
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17940
(eval $ac_link) 2>conftest.er1
17942
grep -v '^ *+' conftest.er1 >conftest.err
17944
cat conftest.err >&5
17945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946
(exit $ac_status); } &&
17947
{ ac_try='test -z "$ac_c_werror_flag"
17948
|| test ! -s conftest.err'
17949
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950
(eval $ac_try) 2>&5
17952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953
(exit $ac_status); }; } &&
17954
{ ac_try='test -s conftest$ac_exeext'
17955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956
(eval $ac_try) 2>&5
17958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959
(exit $ac_status); }; }; then
17960
ac_cv_lib_dld_dld_link=yes
17962
echo "$as_me: failed program was:" >&5
17963
sed 's/^/| /' conftest.$ac_ext >&5
17965
ac_cv_lib_dld_dld_link=no
17967
rm -f conftest.err conftest.$ac_objext \
17968
conftest$ac_exeext conftest.$ac_ext
17969
LIBS=$ac_check_lib_save_LIBS
17971
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17972
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17973
if test $ac_cv_lib_dld_dld_link = yes; then
17974
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17995
if test "x$lt_cv_dlopen" != xno; then
18001
case $lt_cv_dlopen in
18003
save_CPPFLAGS="$CPPFLAGS"
18004
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18006
save_LDFLAGS="$LDFLAGS"
18007
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18010
LIBS="$lt_cv_dlopen_libs $LIBS"
18012
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18013
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18014
if test "${lt_cv_dlopen_self+set}" = set; then
18015
echo $ECHO_N "(cached) $ECHO_C" >&6
18017
if test "$cross_compiling" = yes; then :
18018
lt_cv_dlopen_self=cross
18020
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18021
lt_status=$lt_dlunknown
18022
cat > conftest.$ac_ext <<EOF
18023
#line 18023 "configure"
18024
#include "confdefs.h"
18033
# define LT_DLGLOBAL RTLD_GLOBAL
18036
# define LT_DLGLOBAL DL_GLOBAL
18038
# define LT_DLGLOBAL 0
18042
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18043
find out it does not work in some platform. */
18044
#ifndef LT_DLLAZY_OR_NOW
18046
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18049
# define LT_DLLAZY_OR_NOW DL_LAZY
18052
# define LT_DLLAZY_OR_NOW RTLD_NOW
18055
# define LT_DLLAZY_OR_NOW DL_NOW
18057
# define LT_DLLAZY_OR_NOW 0
18065
extern "C" void exit (int);
18068
void fnord() { int i=42;}
18071
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18072
int status = $lt_dlunknown;
18076
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18077
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18078
/* dlclose (self); */
18084
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18085
(eval $ac_link) 2>&5
18087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18089
(./conftest; exit; ) 2>/dev/null
18091
case x$lt_status in
18092
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18093
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18094
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18097
# compilation failed
18098
lt_cv_dlopen_self=no
18105
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18106
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18108
if test "x$lt_cv_dlopen_self" = xyes; then
18109
LDFLAGS="$LDFLAGS $link_static_flag"
18110
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18111
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18112
if test "${lt_cv_dlopen_self_static+set}" = set; then
18113
echo $ECHO_N "(cached) $ECHO_C" >&6
18115
if test "$cross_compiling" = yes; then :
18116
lt_cv_dlopen_self_static=cross
18118
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18119
lt_status=$lt_dlunknown
18120
cat > conftest.$ac_ext <<EOF
18121
#line 18121 "configure"
18122
#include "confdefs.h"
18131
# define LT_DLGLOBAL RTLD_GLOBAL
18134
# define LT_DLGLOBAL DL_GLOBAL
18136
# define LT_DLGLOBAL 0
18140
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18141
find out it does not work in some platform. */
18142
#ifndef LT_DLLAZY_OR_NOW
18144
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18147
# define LT_DLLAZY_OR_NOW DL_LAZY
18150
# define LT_DLLAZY_OR_NOW RTLD_NOW
18153
# define LT_DLLAZY_OR_NOW DL_NOW
18155
# define LT_DLLAZY_OR_NOW 0
18163
extern "C" void exit (int);
18166
void fnord() { int i=42;}
18169
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18170
int status = $lt_dlunknown;
18174
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18175
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18176
/* dlclose (self); */
18182
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18183
(eval $ac_link) 2>&5
18185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18187
(./conftest; exit; ) 2>/dev/null
18189
case x$lt_status in
18190
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18191
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18192
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18195
# compilation failed
18196
lt_cv_dlopen_self_static=no
18203
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18204
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18207
CPPFLAGS="$save_CPPFLAGS"
18208
LDFLAGS="$save_LDFLAGS"
18213
case $lt_cv_dlopen_self in
18214
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18215
*) enable_dlopen_self=unknown ;;
18218
case $lt_cv_dlopen_self_static in
18219
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18220
*) enable_dlopen_self_static=unknown ;;
18225
17611
# The else clause should only fire when bootstrapping the
18226
17612
# libtool distribution, otherwise you forgot to ship ltmain.sh