7883
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7884
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7886
libname_spec='lib$name'
7894
shlibpath_overrides_runpath=unknown
7896
dynamic_linker="$host_os ld.so"
7897
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7898
if test "$GCC" = yes; then
7899
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7900
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7901
# if the path contains ";" then we assume it to be the separator
7902
# otherwise default to the standard path separator (i.e. ":") - it is
7903
# assumed that no part of a normal pathname contains ";" but that should
7904
# okay in the real world where ";" in dirpaths is itself problematic.
7905
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7907
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7910
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7912
need_lib_prefix=unknown
7913
hardcode_into_libs=no
7915
# when you set need_version to no, make sure it does not cause -set_version
7916
# flags to be left without arguments
7917
need_version=unknown
7922
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7923
shlibpath_var=LIBPATH
7925
# AIX 3 has no versioning support, so we append a major version to the name.
7926
soname_spec='${libname}${release}${shared_ext}$major'
7933
hardcode_into_libs=yes
7934
if test "$host_cpu" = ia64; then
7935
# AIX 5 supports IA64
7936
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7937
shlibpath_var=LD_LIBRARY_PATH
7939
# With GCC up to 2.95.x, collect2 would create an import file
7940
# for dependence libraries. The import file would start with
7941
# the line `#! .'. This would cause the generated library to
7942
# depend on `.', always an invalid library. This was fixed in
7943
# development snapshots of GCC prior to 3.0.
7945
aix4 | aix4.[01] | aix4.[01].*)
7946
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7948
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7955
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7956
# soname into executable. Probably we can add versioning support to
7957
# collect2, so additional links can be useful in future.
7958
if test "$aix_use_runtimelinking" = yes; then
7959
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7960
# instead of lib<name>.a to let people know that these are not
7961
# typical AIX shared libraries.
7962
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7964
# We preserve .a as extension for shared libraries through AIX4.2
7965
# and later when we are not doing run time linking.
7966
library_names_spec='${libname}${release}.a $libname.a'
7967
soname_spec='${libname}${release}${shared_ext}$major'
7969
shlibpath_var=LIBPATH
7974
library_names_spec='$libname.ixlibrary $libname.a'
7975
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7976
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'
7980
library_names_spec='${libname}${shared_ext}'
7981
dynamic_linker="$host_os ld.so"
7982
shlibpath_var=LIBRARY_PATH
7988
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7989
soname_spec='${libname}${release}${shared_ext}$major'
7990
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7991
shlibpath_var=LD_LIBRARY_PATH
7992
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7993
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7994
# the default ld.so.conf also contains /usr/contrib/lib and
7995
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7996
# libtool to hard-code these into programs
7999
cygwin* | mingw* | pw32*)
8000
version_type=windows
8005
case $GCC,$host_os in
8006
yes,cygwin* | yes,mingw* | yes,pw32*)
8007
library_names_spec='$libname.dll.a'
8008
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8009
postinstall_cmds='base_file=`basename \${file}`~
8010
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8011
dldir=$destdir/`dirname \$dlpath`~
8012
test -d \$dldir || mkdir -p \$dldir~
8013
$install_prog $dir/$dlname \$dldir/$dlname~
8014
chmod a+x \$dldir/$dlname'
8015
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8016
dlpath=$dir/\$dldll~
8018
shlibpath_overrides_runpath=yes
8022
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8023
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8024
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8027
# MinGW DLLs use traditional 'lib' prefix
8028
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8029
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8030
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8031
# It is most probably a Windows format PATH printed by
8032
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8033
# path with ; separators, and with drive letters. We can handle the
8034
# drive letters (cygwin fileutils understands them), so leave them,
8035
# especially as we might pass files found there to a mingw objdump,
8036
# which wouldn't understand a cygwinified path. Ahh.
8037
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8039
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8043
# pw32 DLLs use 'pw' prefix rather than 'lib'
8044
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8050
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8053
dynamic_linker='Win32 ld.exe'
8054
# FIXME: first we should search . and the directory the executable is in
8058
darwin* | rhapsody*)
8059
dynamic_linker="$host_os dyld"
8063
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8064
soname_spec='${libname}${release}${major}$shared_ext'
8065
shlibpath_overrides_runpath=yes
8066
shlibpath_var=DYLD_LIBRARY_PATH
8067
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8068
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8069
if test "$GCC" = yes; then
8070
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"`
8072
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8074
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8081
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8082
soname_spec='${libname}${release}${shared_ext}$major'
8083
shlibpath_var=LD_LIBRARY_PATH
8094
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8095
soname_spec='${libname}${release}${shared_ext}$major'
8096
shlibpath_var=LD_LIBRARY_PATH
8097
shlibpath_overrides_runpath=no
8098
hardcode_into_libs=yes
8099
dynamic_linker='GNU ld.so'
8102
freebsd* | dragonfly*)
8103
# DragonFly does not have aout. When/if they implement a new
8104
# versioning mechanism, adjust this.
8105
if test -x /usr/bin/objformat; then
8106
objformat=`/usr/bin/objformat`
8109
freebsd[123]*) objformat=aout ;;
8113
version_type=freebsd-$objformat
8114
case $version_type in
8116
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8121
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8125
shlibpath_var=LD_LIBRARY_PATH
8128
shlibpath_overrides_runpath=yes
8130
freebsd3.[01]* | freebsdelf3.[01]*)
8131
shlibpath_overrides_runpath=yes
8132
hardcode_into_libs=yes
8134
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8135
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8136
shlibpath_overrides_runpath=no
8137
hardcode_into_libs=yes
8139
freebsd*) # from 4.6 on
8140
shlibpath_overrides_runpath=yes
8141
hardcode_into_libs=yes
8150
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8151
soname_spec='${libname}${release}${shared_ext}$major'
8152
shlibpath_var=LD_LIBRARY_PATH
8153
hardcode_into_libs=yes
8156
hpux9* | hpux10* | hpux11*)
8157
# Give a soname corresponding to the major version so that dld.sl refuses to
8158
# link against other versions.
8165
hardcode_into_libs=yes
8166
dynamic_linker="$host_os dld.so"
8167
shlibpath_var=LD_LIBRARY_PATH
8168
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8169
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8170
soname_spec='${libname}${release}${shared_ext}$major'
8171
if test "X$HPUX_IA64_MODE" = X32; then
8172
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8174
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8176
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8180
hardcode_into_libs=yes
8181
dynamic_linker="$host_os dld.sl"
8182
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8183
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8184
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8185
soname_spec='${libname}${release}${shared_ext}$major'
8186
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8187
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8191
dynamic_linker="$host_os dld.sl"
8192
shlibpath_var=SHLIB_PATH
8193
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8194
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8195
soname_spec='${libname}${release}${shared_ext}$major'
8198
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8199
postinstall_cmds='chmod 555 $lib'
8206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8207
soname_spec='${libname}${release}${shared_ext}$major'
8208
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8209
shlibpath_var=LD_LIBRARY_PATH
8210
shlibpath_overrides_runpath=no
8211
hardcode_into_libs=yes
8214
irix5* | irix6* | nonstopux*)
8216
nonstopux*) version_type=nonstopux ;;
8218
if test "$lt_cv_prog_gnu_ld" = yes; then
8226
soname_spec='${libname}${release}${shared_ext}$major'
8227
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8229
irix5* | nonstopux*)
8233
case $LD in # libtool.m4 will add one of these switches to LD
8234
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8235
libsuff= shlibsuff= libmagic=32-bit;;
8236
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8237
libsuff=32 shlibsuff=N32 libmagic=N32;;
8238
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8239
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8240
*) libsuff= shlibsuff= libmagic=never-match;;
8244
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8245
shlibpath_overrides_runpath=no
8246
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8247
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8248
hardcode_into_libs=yes
8251
# No shared lib support for Linux oldld, aout, or coff.
8252
linux*oldld* | linux*aout* | linux*coff*)
8256
# This must be Linux ELF.
8261
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8262
soname_spec='${libname}${release}${shared_ext}$major'
8263
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8264
shlibpath_var=LD_LIBRARY_PATH
8265
shlibpath_overrides_runpath=no
8266
# This implies no fast_install, which is unacceptable.
8267
# Some rework will be needed to allow for fast_install
8268
# before this can be enabled.
8269
hardcode_into_libs=yes
8271
# find out which ABI we are using
8274
x86_64*|s390x*|powerpc64*)
8275
echo '#line 8275 "configure"' > conftest.$ac_ext
8276
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8277
(eval $ac_compile) 2>&5
8279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280
(exit $ac_status); }; then
8281
case `/usr/bin/file conftest.$ac_objext` in
8284
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8292
# Append ld.so.conf contents to the search path
8293
if test -f /etc/ld.so.conf; then
8294
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8295
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8298
# We used to test for /lib/ld.so.1 and disable shared libraries on
8299
# powerpc, because MkLinux only supported shared libraries with the
8300
# GNU dynamic linker. Since this was broken with cross compilers,
8301
# most powerpc-linux boxes support dynamic linking these days and
8302
# people can always --disable-shared, the test was removed, and we
8303
# assume the GNU/Linux dynamic linker is in use.
8304
dynamic_linker='GNU/Linux ld.so'
8311
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8312
soname_spec='${libname}${release}${shared_ext}$major'
8313
shlibpath_var=LD_LIBRARY_PATH
8314
shlibpath_overrides_runpath=no
8315
hardcode_into_libs=yes
8316
dynamic_linker='GNU ld.so'
8323
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8324
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8325
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8326
dynamic_linker='NetBSD (a.out) ld.so'
8328
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8329
soname_spec='${libname}${release}${shared_ext}$major'
8330
dynamic_linker='NetBSD ld.elf_so'
8332
shlibpath_var=LD_LIBRARY_PATH
8333
shlibpath_overrides_runpath=yes
8334
hardcode_into_libs=yes
8339
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8340
shlibpath_var=LD_LIBRARY_PATH
8341
shlibpath_overrides_runpath=yes
8348
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8349
soname_spec='${libname}${release}${shared_ext}$major'
8350
shlibpath_var=LD_LIBRARY_PATH
8351
shlibpath_overrides_runpath=yes
8356
sys_lib_dlsearch_path_spec="/usr/lib"
8358
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8360
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8361
*) need_version=no ;;
8363
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8364
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8365
shlibpath_var=LD_LIBRARY_PATH
8366
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8368
openbsd2.[89] | openbsd2.[89].*)
8369
shlibpath_overrides_runpath=no
8372
shlibpath_overrides_runpath=yes
8376
shlibpath_overrides_runpath=yes
8381
libname_spec='$name'
8384
library_names_spec='$libname${shared_ext} $libname.a'
8385
dynamic_linker='OS/2 ld.exe'
8386
shlibpath_var=LIBPATH
8389
osf3* | osf4* | osf5*)
8393
soname_spec='${libname}${release}${shared_ext}$major'
8394
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8395
shlibpath_var=LD_LIBRARY_PATH
8396
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8397
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8404
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8405
soname_spec='${libname}${release}${shared_ext}$major'
8406
shlibpath_var=LD_LIBRARY_PATH
8407
shlibpath_overrides_runpath=yes
8408
hardcode_into_libs=yes
8409
# ldd complains unless libraries are executable
8410
postinstall_cmds='chmod +x $lib'
8415
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8416
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8417
shlibpath_var=LD_LIBRARY_PATH
8418
shlibpath_overrides_runpath=yes
8419
if test "$with_gnu_ld" = yes; then
8427
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8428
soname_spec='${libname}${release}${shared_ext}$major'
8429
shlibpath_var=LD_LIBRARY_PATH
8430
case $host_vendor in
8432
shlibpath_overrides_runpath=no
8434
export_dynamic_flag_spec='${wl}-Blargedynsym'
8435
runpath_var=LD_RUN_PATH
8443
shlibpath_overrides_runpath=no
8444
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8450
if test -d /usr/nec ;then
8452
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8453
soname_spec='$libname${shared_ext}.$major'
8454
shlibpath_var=LD_LIBRARY_PATH
8458
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8459
version_type=freebsd-elf
8462
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8463
soname_spec='${libname}${release}${shared_ext}$major'
8464
shlibpath_var=LD_LIBRARY_PATH
8465
hardcode_into_libs=yes
8466
if test "$with_gnu_ld" = yes; then
8467
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8468
shlibpath_overrides_runpath=no
8470
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8471
shlibpath_overrides_runpath=yes
8474
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8478
sys_lib_dlsearch_path_spec='/usr/lib'
8483
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8484
soname_spec='${libname}${release}${shared_ext}$major'
8485
shlibpath_var=LD_LIBRARY_PATH
8492
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8493
echo "${ECHO_T}$dynamic_linker" >&6
8494
test "$dynamic_linker" = no && can_build_shared=no
8496
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8497
if test "$GCC" = yes; then
8498
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7551
8501
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7552
8502
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7553
8503
hardcode_action=
7554
8504
if test -n "$hardcode_libdir_flag_spec" || \
7555
test -n "$runpath_var " || \
7556
test "X$hardcode_automatic"="Xyes" ; then
8505
test -n "$runpath_var" || \
8506
test "X$hardcode_automatic" = "Xyes" ; then
7558
8508
# We can hardcode non-existant directories.
7559
8509
if test "$hardcode_direct" != no &&
7617
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7618
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7620
libname_spec='lib$name'
7628
shlibpath_overrides_runpath=unknown
7630
dynamic_linker="$host_os ld.so"
7631
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7632
if test "$GCC" = yes; then
7633
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7634
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7635
# if the path contains ";" then we assume it to be the separator
7636
# otherwise default to the standard path separator (i.e. ":") - it is
7637
# assumed that no part of a normal pathname contains ";" but that should
7638
# okay in the real world where ";" in dirpaths is itself problematic.
7639
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7641
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7644
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7646
need_lib_prefix=unknown
7647
hardcode_into_libs=no
7649
# when you set need_version to no, make sure it does not cause -set_version
7650
# flags to be left without arguments
7651
need_version=unknown
7656
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7657
shlibpath_var=LIBPATH
7659
# AIX 3 has no versioning support, so we append a major version to the name.
7660
soname_spec='${libname}${release}${shared_ext}$major'
7667
hardcode_into_libs=yes
7668
if test "$host_cpu" = ia64; then
7669
# AIX 5 supports IA64
7670
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7671
shlibpath_var=LD_LIBRARY_PATH
7673
# With GCC up to 2.95.x, collect2 would create an import file
7674
# for dependence libraries. The import file would start with
7675
# the line `#! .'. This would cause the generated library to
7676
# depend on `.', always an invalid library. This was fixed in
7677
# development snapshots of GCC prior to 3.0.
7679
aix4 | aix4.[01] | aix4.[01].*)
7680
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7682
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7689
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7690
# soname into executable. Probably we can add versioning support to
7691
# collect2, so additional links can be useful in future.
7692
if test "$aix_use_runtimelinking" = yes; then
7693
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7694
# instead of lib<name>.a to let people know that these are not
7695
# typical AIX shared libraries.
7696
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7698
# We preserve .a as extension for shared libraries through AIX4.2
7699
# and later when we are not doing run time linking.
7700
library_names_spec='${libname}${release}.a $libname.a'
7701
soname_spec='${libname}${release}${shared_ext}$major'
7703
shlibpath_var=LIBPATH
7708
library_names_spec='$libname.ixlibrary $libname.a'
7709
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7710
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'
7714
library_names_spec='${libname}${shared_ext}'
7715
dynamic_linker="$host_os ld.so"
7716
shlibpath_var=LIBRARY_PATH
7722
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7723
soname_spec='${libname}${release}${shared_ext}$major'
7724
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7725
shlibpath_var=LD_LIBRARY_PATH
7726
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7727
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7728
# the default ld.so.conf also contains /usr/contrib/lib and
7729
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7730
# libtool to hard-code these into programs
7733
cygwin* | mingw* | pw32*)
7734
version_type=windows
7739
case $GCC,$host_os in
7740
yes,cygwin* | yes,mingw* | yes,pw32*)
7741
library_names_spec='$libname.dll.a'
7742
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7743
postinstall_cmds='base_file=`basename \${file}`~
7744
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7745
dldir=$destdir/`dirname \$dlpath`~
7746
test -d \$dldir || mkdir -p \$dldir~
7747
$install_prog $dir/$dlname \$dldir/$dlname'
7748
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7749
dlpath=$dir/\$dldll~
7751
shlibpath_overrides_runpath=yes
7755
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7756
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7757
sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7760
# MinGW DLLs use traditional 'lib' prefix
7761
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7762
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7763
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7764
# It is most probably a Windows format PATH printed by
7765
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7766
# path with ; separators, and with drive letters. We can handle the
7767
# drive letters (cygwin fileutils understands them), so leave them,
7768
# especially as we might pass files found there to a mingw objdump,
7769
# which wouldn't understand a cygwinified path. Ahh.
7770
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7772
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7776
# pw32 DLLs use 'pw' prefix rather than 'lib'
7777
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7783
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7786
dynamic_linker='Win32 ld.exe'
7787
# FIXME: first we should search . and the directory the executable is in
7791
darwin* | rhapsody*)
7792
dynamic_linker="$host_os dyld"
7796
# FIXME: Relying on posixy $() will cause problems for
7797
# cross-compilation, but unfortunately the echo tests do not
7798
# yet detect zsh echo's removal of \ escapes.
7799
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7800
soname_spec='${libname}${release}${major}$shared_ext'
7801
shlibpath_overrides_runpath=yes
7802
shlibpath_var=DYLD_LIBRARY_PATH
7803
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7804
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7805
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7806
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"`
7808
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7815
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7816
soname_spec='${libname}${release}${shared_ext}$major'
7817
shlibpath_var=LD_LIBRARY_PATH
7825
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7826
version_type=freebsd-$objformat
7827
case $version_type in
7829
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7834
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7838
shlibpath_var=LD_LIBRARY_PATH
7841
shlibpath_overrides_runpath=yes
7843
freebsd3.01* | freebsdelf3.01*)
7844
shlibpath_overrides_runpath=yes
7845
hardcode_into_libs=yes
7848
shlibpath_overrides_runpath=no
7849
hardcode_into_libs=yes
7858
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7859
soname_spec='${libname}${release}${shared_ext}$major'
7860
shlibpath_var=LD_LIBRARY_PATH
7861
hardcode_into_libs=yes
7864
hpux9* | hpux10* | hpux11*)
7865
# Give a soname corresponding to the major version so that dld.sl refuses to
7866
# link against other versions.
7873
hardcode_into_libs=yes
7874
dynamic_linker="$host_os dld.so"
7875
shlibpath_var=LD_LIBRARY_PATH
7876
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7877
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7878
soname_spec='${libname}${release}${shared_ext}$major'
7879
if test "X$HPUX_IA64_MODE" = X32; then
7880
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7882
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7884
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7888
hardcode_into_libs=yes
7889
dynamic_linker="$host_os dld.sl"
7890
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7891
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7892
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7893
soname_spec='${libname}${release}${shared_ext}$major'
7894
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7895
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7899
dynamic_linker="$host_os dld.sl"
7900
shlibpath_var=SHLIB_PATH
7901
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7902
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7903
soname_spec='${libname}${release}${shared_ext}$major'
7906
# HP-UX runs *really* slowly unless shared libraries are mode 555.
7907
postinstall_cmds='chmod 555 $lib'
7910
irix5* | irix6* | nonstopux*)
7912
nonstopux*) version_type=nonstopux ;;
7914
if test "$lt_cv_prog_gnu_ld" = yes; then
7922
soname_spec='${libname}${release}${shared_ext}$major'
7923
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7925
irix5* | nonstopux*)
7929
case $LD in # libtool.m4 will add one of these switches to LD
7930
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7931
libsuff= shlibsuff= libmagic=32-bit;;
7932
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7933
libsuff=32 shlibsuff=N32 libmagic=N32;;
7934
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7935
libsuff=64 shlibsuff=64 libmagic=64-bit;;
7936
*) libsuff= shlibsuff= libmagic=never-match;;
7940
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7941
shlibpath_overrides_runpath=no
7942
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7943
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7944
hardcode_into_libs=yes
7947
# No shared lib support for Linux oldld, aout, or coff.
7948
linux*oldld* | linux*aout* | linux*coff*)
7952
# This must be Linux ELF.
7957
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7958
soname_spec='${libname}${release}${shared_ext}$major'
7959
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7960
shlibpath_var=LD_LIBRARY_PATH
7961
shlibpath_overrides_runpath=no
7962
# This implies no fast_install, which is unacceptable.
7963
# Some rework will be needed to allow for fast_install
7964
# before this can be enabled.
7965
hardcode_into_libs=yes
7967
# We used to test for /lib/ld.so.1 and disable shared libraries on
7968
# powerpc, because MkLinux only supported shared libraries with the
7969
# GNU dynamic linker. Since this was broken with cross compilers,
7970
# most powerpc-linux boxes support dynamic linking these days and
7971
# people can always --disable-shared, the test was removed, and we
7972
# assume the GNU/Linux dynamic linker is in use.
7973
dynamic_linker='GNU/Linux ld.so'
7975
# Find out which ABI we are using (multilib Linux x86_64 hack).
7978
x86_64*|s390x*|powerpc64*)
7979
echo '#line 7979 "configure"' > conftest.$ac_ext
7980
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7981
(eval $ac_compile) 2>&5
7983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984
(exit $ac_status); }; then
7985
case `/usr/bin/file conftest.$ac_objext` in
7996
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7997
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8004
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8005
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8006
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8007
dynamic_linker='NetBSD (a.out) ld.so'
8009
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8010
soname_spec='${libname}${release}${shared_ext}$major'
8011
dynamic_linker='NetBSD ld.elf_so'
8013
shlibpath_var=LD_LIBRARY_PATH
8014
shlibpath_overrides_runpath=yes
8015
hardcode_into_libs=yes
8020
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8021
shlibpath_var=LD_LIBRARY_PATH
8022
shlibpath_overrides_runpath=yes
8029
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8030
soname_spec='${libname}${release}${shared_ext}$major'
8031
shlibpath_var=LD_LIBRARY_PATH
8032
shlibpath_overrides_runpath=yes
8039
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8040
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8041
shlibpath_var=LD_LIBRARY_PATH
8042
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8044
openbsd2.[89] | openbsd2.[89].*)
8045
shlibpath_overrides_runpath=no
8048
shlibpath_overrides_runpath=yes
8052
shlibpath_overrides_runpath=yes
8057
libname_spec='$name'
8060
library_names_spec='$libname${shared_ext} $libname.a'
8061
dynamic_linker='OS/2 ld.exe'
8062
shlibpath_var=LIBPATH
8065
osf3* | osf4* | osf5*)
8069
soname_spec='${libname}${release}${shared_ext}$major'
8070
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8071
shlibpath_var=LD_LIBRARY_PATH
8072
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8073
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8078
soname_spec='${libname}${release}${shared_ext}$major'
8079
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8080
shlibpath_var=LD_LIBRARY_PATH
8087
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8088
soname_spec='${libname}${release}${shared_ext}$major'
8089
shlibpath_var=LD_LIBRARY_PATH
8090
shlibpath_overrides_runpath=yes
8091
hardcode_into_libs=yes
8092
# ldd complains unless libraries are executable
8093
postinstall_cmds='chmod +x $lib'
8098
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8099
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8100
shlibpath_var=LD_LIBRARY_PATH
8101
shlibpath_overrides_runpath=yes
8102
if test "$with_gnu_ld" = yes; then
8108
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8110
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8111
soname_spec='${libname}${release}${shared_ext}$major'
8112
shlibpath_var=LD_LIBRARY_PATH
8113
case $host_vendor in
8115
shlibpath_overrides_runpath=no
8117
export_dynamic_flag_spec='${wl}-Blargedynsym'
8118
runpath_var=LD_RUN_PATH
8126
shlibpath_overrides_runpath=no
8127
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8133
if test -d /usr/nec ;then
8135
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8136
soname_spec='$libname${shared_ext}.$major'
8137
shlibpath_var=LD_LIBRARY_PATH
8143
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8144
soname_spec='${libname}${release}${shared_ext}$major'
8145
shlibpath_var=LD_LIBRARY_PATH
8152
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8153
echo "${ECHO_T}$dynamic_linker" >&6
8154
test "$dynamic_linker" = no && can_build_shared=no
8156
8567
if test "x$enable_dlopen" != xyes; then
8157
8568
enable_dlopen=unknown
8158
8569
enable_dlopen_self=unknown
11863
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11864
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11865
library_names_spec=
11866
libname_spec='lib$name'
11870
postuninstall_cmds=
11874
shlibpath_overrides_runpath=unknown
11876
dynamic_linker="$host_os ld.so"
11877
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11878
if test "$GCC" = yes; then
11879
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11880
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11881
# if the path contains ";" then we assume it to be the separator
11882
# otherwise default to the standard path separator (i.e. ":") - it is
11883
# assumed that no part of a normal pathname contains ";" but that should
11884
# okay in the real world where ";" in dirpaths is itself problematic.
11885
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11887
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11890
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11892
need_lib_prefix=unknown
11893
hardcode_into_libs=no
11895
# when you set need_version to no, make sure it does not cause -set_version
11896
# flags to be left without arguments
11897
need_version=unknown
11902
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11903
shlibpath_var=LIBPATH
11905
# AIX 3 has no versioning support, so we append a major version to the name.
11906
soname_spec='${libname}${release}${shared_ext}$major'
11913
hardcode_into_libs=yes
11914
if test "$host_cpu" = ia64; then
11915
# AIX 5 supports IA64
11916
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11917
shlibpath_var=LD_LIBRARY_PATH
11919
# With GCC up to 2.95.x, collect2 would create an import file
11920
# for dependence libraries. The import file would start with
11921
# the line `#! .'. This would cause the generated library to
11922
# depend on `.', always an invalid library. This was fixed in
11923
# development snapshots of GCC prior to 3.0.
11925
aix4 | aix4.[01] | aix4.[01].*)
11926
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11928
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11931
can_build_shared=no
11935
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11936
# soname into executable. Probably we can add versioning support to
11937
# collect2, so additional links can be useful in future.
11938
if test "$aix_use_runtimelinking" = yes; then
11939
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11940
# instead of lib<name>.a to let people know that these are not
11941
# typical AIX shared libraries.
11942
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11944
# We preserve .a as extension for shared libraries through AIX4.2
11945
# and later when we are not doing run time linking.
11946
library_names_spec='${libname}${release}.a $libname.a'
11947
soname_spec='${libname}${release}${shared_ext}$major'
11949
shlibpath_var=LIBPATH
11954
library_names_spec='$libname.ixlibrary $libname.a'
11955
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11956
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'
11960
library_names_spec='${libname}${shared_ext}'
11961
dynamic_linker="$host_os ld.so"
11962
shlibpath_var=LIBRARY_PATH
11968
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11969
soname_spec='${libname}${release}${shared_ext}$major'
11970
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11971
shlibpath_var=LD_LIBRARY_PATH
11972
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11973
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11974
# the default ld.so.conf also contains /usr/contrib/lib and
11975
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11976
# libtool to hard-code these into programs
11979
cygwin* | mingw* | pw32*)
11980
version_type=windows
11985
case $GCC,$host_os in
11986
yes,cygwin* | yes,mingw* | yes,pw32*)
11987
library_names_spec='$libname.dll.a'
11988
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11989
postinstall_cmds='base_file=`basename \${file}`~
11990
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11991
dldir=$destdir/`dirname \$dlpath`~
11992
test -d \$dldir || mkdir -p \$dldir~
11993
$install_prog $dir/$dlname \$dldir/$dlname~
11994
chmod a+x \$dldir/$dlname'
11995
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11996
dlpath=$dir/\$dldll~
11998
shlibpath_overrides_runpath=yes
12002
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12003
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12004
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12007
# MinGW DLLs use traditional 'lib' prefix
12008
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12009
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12010
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12011
# It is most probably a Windows format PATH printed by
12012
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12013
# path with ; separators, and with drive letters. We can handle the
12014
# drive letters (cygwin fileutils understands them), so leave them,
12015
# especially as we might pass files found there to a mingw objdump,
12016
# which wouldn't understand a cygwinified path. Ahh.
12017
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12019
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12023
# pw32 DLLs use 'pw' prefix rather than 'lib'
12024
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12030
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12033
dynamic_linker='Win32 ld.exe'
12034
# FIXME: first we should search . and the directory the executable is in
12038
darwin* | rhapsody*)
12039
dynamic_linker="$host_os dyld"
12040
version_type=darwin
12043
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12044
soname_spec='${libname}${release}${major}$shared_ext'
12045
shlibpath_overrides_runpath=yes
12046
shlibpath_var=DYLD_LIBRARY_PATH
12047
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12048
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12049
if test "$GCC" = yes; then
12050
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"`
12052
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12054
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12061
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12062
soname_spec='${libname}${release}${shared_ext}$major'
12063
shlibpath_var=LD_LIBRARY_PATH
12074
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12075
soname_spec='${libname}${release}${shared_ext}$major'
12076
shlibpath_var=LD_LIBRARY_PATH
12077
shlibpath_overrides_runpath=no
12078
hardcode_into_libs=yes
12079
dynamic_linker='GNU ld.so'
12082
freebsd* | dragonfly*)
12083
# DragonFly does not have aout. When/if they implement a new
12084
# versioning mechanism, adjust this.
12085
if test -x /usr/bin/objformat; then
12086
objformat=`/usr/bin/objformat`
12089
freebsd[123]*) objformat=aout ;;
12090
*) objformat=elf ;;
12093
version_type=freebsd-$objformat
12094
case $version_type in
12096
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12101
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12105
shlibpath_var=LD_LIBRARY_PATH
12108
shlibpath_overrides_runpath=yes
12110
freebsd3.[01]* | freebsdelf3.[01]*)
12111
shlibpath_overrides_runpath=yes
12112
hardcode_into_libs=yes
12114
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12115
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12116
shlibpath_overrides_runpath=no
12117
hardcode_into_libs=yes
12119
freebsd*) # from 4.6 on
12120
shlibpath_overrides_runpath=yes
12121
hardcode_into_libs=yes
12130
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12131
soname_spec='${libname}${release}${shared_ext}$major'
12132
shlibpath_var=LD_LIBRARY_PATH
12133
hardcode_into_libs=yes
12136
hpux9* | hpux10* | hpux11*)
12137
# Give a soname corresponding to the major version so that dld.sl refuses to
12138
# link against other versions.
12145
hardcode_into_libs=yes
12146
dynamic_linker="$host_os dld.so"
12147
shlibpath_var=LD_LIBRARY_PATH
12148
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12149
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12150
soname_spec='${libname}${release}${shared_ext}$major'
12151
if test "X$HPUX_IA64_MODE" = X32; then
12152
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12154
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12156
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12160
hardcode_into_libs=yes
12161
dynamic_linker="$host_os dld.sl"
12162
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12163
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12164
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12165
soname_spec='${libname}${release}${shared_ext}$major'
12166
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12167
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12171
dynamic_linker="$host_os dld.sl"
12172
shlibpath_var=SHLIB_PATH
12173
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12174
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12175
soname_spec='${libname}${release}${shared_ext}$major'
12178
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12179
postinstall_cmds='chmod 555 $lib'
12186
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12187
soname_spec='${libname}${release}${shared_ext}$major'
12188
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12189
shlibpath_var=LD_LIBRARY_PATH
12190
shlibpath_overrides_runpath=no
12191
hardcode_into_libs=yes
12194
irix5* | irix6* | nonstopux*)
12196
nonstopux*) version_type=nonstopux ;;
12198
if test "$lt_cv_prog_gnu_ld" = yes; then
12206
soname_spec='${libname}${release}${shared_ext}$major'
12207
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12209
irix5* | nonstopux*)
12210
libsuff= shlibsuff=
12213
case $LD in # libtool.m4 will add one of these switches to LD
12214
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12215
libsuff= shlibsuff= libmagic=32-bit;;
12216
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12217
libsuff=32 shlibsuff=N32 libmagic=N32;;
12218
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12219
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12220
*) libsuff= shlibsuff= libmagic=never-match;;
12224
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12225
shlibpath_overrides_runpath=no
12226
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12227
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12228
hardcode_into_libs=yes
12231
# No shared lib support for Linux oldld, aout, or coff.
12232
linux*oldld* | linux*aout* | linux*coff*)
12236
# This must be Linux ELF.
12241
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12242
soname_spec='${libname}${release}${shared_ext}$major'
12243
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12244
shlibpath_var=LD_LIBRARY_PATH
12245
shlibpath_overrides_runpath=no
12246
# This implies no fast_install, which is unacceptable.
12247
# Some rework will be needed to allow for fast_install
12248
# before this can be enabled.
12249
hardcode_into_libs=yes
12251
# find out which ABI we are using
12253
case "$host_cpu" in
12254
x86_64*|s390x*|powerpc64*)
12255
echo '#line 12255 "configure"' > conftest.$ac_ext
12256
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12257
(eval $ac_compile) 2>&5
12259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260
(exit $ac_status); }; then
12261
case `/usr/bin/file conftest.$ac_objext` in
12264
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12272
# Append ld.so.conf contents to the search path
12273
if test -f /etc/ld.so.conf; then
12274
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12275
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12278
# We used to test for /lib/ld.so.1 and disable shared libraries on
12279
# powerpc, because MkLinux only supported shared libraries with the
12280
# GNU dynamic linker. Since this was broken with cross compilers,
12281
# most powerpc-linux boxes support dynamic linking these days and
12282
# people can always --disable-shared, the test was removed, and we
12283
# assume the GNU/Linux dynamic linker is in use.
12284
dynamic_linker='GNU/Linux ld.so'
12291
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12292
soname_spec='${libname}${release}${shared_ext}$major'
12293
shlibpath_var=LD_LIBRARY_PATH
12294
shlibpath_overrides_runpath=no
12295
hardcode_into_libs=yes
12296
dynamic_linker='GNU ld.so'
12303
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12304
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12305
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12306
dynamic_linker='NetBSD (a.out) ld.so'
12308
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12309
soname_spec='${libname}${release}${shared_ext}$major'
12310
dynamic_linker='NetBSD ld.elf_so'
12312
shlibpath_var=LD_LIBRARY_PATH
12313
shlibpath_overrides_runpath=yes
12314
hardcode_into_libs=yes
12319
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12320
shlibpath_var=LD_LIBRARY_PATH
12321
shlibpath_overrides_runpath=yes
12328
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12329
soname_spec='${libname}${release}${shared_ext}$major'
12330
shlibpath_var=LD_LIBRARY_PATH
12331
shlibpath_overrides_runpath=yes
12336
sys_lib_dlsearch_path_spec="/usr/lib"
12338
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12340
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12341
*) need_version=no ;;
12343
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12344
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12345
shlibpath_var=LD_LIBRARY_PATH
12346
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12348
openbsd2.[89] | openbsd2.[89].*)
12349
shlibpath_overrides_runpath=no
12352
shlibpath_overrides_runpath=yes
12356
shlibpath_overrides_runpath=yes
12361
libname_spec='$name'
12364
library_names_spec='$libname${shared_ext} $libname.a'
12365
dynamic_linker='OS/2 ld.exe'
12366
shlibpath_var=LIBPATH
12369
osf3* | osf4* | osf5*)
12373
soname_spec='${libname}${release}${shared_ext}$major'
12374
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12375
shlibpath_var=LD_LIBRARY_PATH
12376
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12377
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12385
soname_spec='${libname}${release}${shared_ext}$major'
12386
shlibpath_var=LD_LIBRARY_PATH
12387
shlibpath_overrides_runpath=yes
12388
hardcode_into_libs=yes
12389
# ldd complains unless libraries are executable
12390
postinstall_cmds='chmod +x $lib'
12395
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12396
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12397
shlibpath_var=LD_LIBRARY_PATH
12398
shlibpath_overrides_runpath=yes
12399
if test "$with_gnu_ld" = yes; then
12407
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12408
soname_spec='${libname}${release}${shared_ext}$major'
12409
shlibpath_var=LD_LIBRARY_PATH
12410
case $host_vendor in
12412
shlibpath_overrides_runpath=no
12414
export_dynamic_flag_spec='${wl}-Blargedynsym'
12415
runpath_var=LD_RUN_PATH
12423
shlibpath_overrides_runpath=no
12424
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12430
if test -d /usr/nec ;then
12432
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12433
soname_spec='$libname${shared_ext}.$major'
12434
shlibpath_var=LD_LIBRARY_PATH
12438
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12439
version_type=freebsd-elf
12442
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12443
soname_spec='${libname}${release}${shared_ext}$major'
12444
shlibpath_var=LD_LIBRARY_PATH
12445
hardcode_into_libs=yes
12446
if test "$with_gnu_ld" = yes; then
12447
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12448
shlibpath_overrides_runpath=no
12450
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12451
shlibpath_overrides_runpath=yes
12454
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12458
sys_lib_dlsearch_path_spec='/usr/lib'
12463
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12464
soname_spec='${libname}${release}${shared_ext}$major'
12465
shlibpath_var=LD_LIBRARY_PATH
12472
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12473
echo "${ECHO_T}$dynamic_linker" >&6
12474
test "$dynamic_linker" = no && can_build_shared=no
12476
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12477
if test "$GCC" = yes; then
12478
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11221
12481
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11222
12482
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11223
12483
hardcode_action_CXX=
11224
12484
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11225
test -n "$runpath_var CXX" || \
11226
test "X$hardcode_automatic_CXX"="Xyes" ; then
12485
test -n "$runpath_var_CXX" || \
12486
test "X$hardcode_automatic_CXX" = "Xyes" ; then
11228
12488
# We can hardcode non-existant directories.
11229
12489
if test "$hardcode_direct_CXX" != no &&
11255
12515
enable_fast_install=needless
11260
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11261
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11262
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11263
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11264
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11265
echo "$as_me:$LINENO: result: yes" >&5
11266
echo "${ECHO_T}yes" >&6
11268
# FIXME - insert some real tests, host_os isn't really good enough
11271
if test -n "$STRIP" ; then
11272
striplib="$STRIP -x"
11273
echo "$as_me:$LINENO: result: yes" >&5
11274
echo "${ECHO_T}yes" >&6
11276
echo "$as_me:$LINENO: result: no" >&5
11277
echo "${ECHO_T}no" >&6
11281
echo "$as_me:$LINENO: result: no" >&5
11282
echo "${ECHO_T}no" >&6
11287
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11288
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11289
library_names_spec=
11290
libname_spec='lib$name'
11294
postuninstall_cmds=
11298
shlibpath_overrides_runpath=unknown
11300
dynamic_linker="$host_os ld.so"
11301
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11302
if test "$GCC" = yes; then
11303
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11304
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11305
# if the path contains ";" then we assume it to be the separator
11306
# otherwise default to the standard path separator (i.e. ":") - it is
11307
# assumed that no part of a normal pathname contains ";" but that should
11308
# okay in the real world where ";" in dirpaths is itself problematic.
11309
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11311
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11314
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11316
need_lib_prefix=unknown
11317
hardcode_into_libs=no
11319
# when you set need_version to no, make sure it does not cause -set_version
11320
# flags to be left without arguments
11321
need_version=unknown
11326
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11327
shlibpath_var=LIBPATH
11329
# AIX 3 has no versioning support, so we append a major version to the name.
11330
soname_spec='${libname}${release}${shared_ext}$major'
11337
hardcode_into_libs=yes
11338
if test "$host_cpu" = ia64; then
11339
# AIX 5 supports IA64
11340
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11341
shlibpath_var=LD_LIBRARY_PATH
11343
# With GCC up to 2.95.x, collect2 would create an import file
11344
# for dependence libraries. The import file would start with
11345
# the line `#! .'. This would cause the generated library to
11346
# depend on `.', always an invalid library. This was fixed in
11347
# development snapshots of GCC prior to 3.0.
11349
aix4 | aix4.[01] | aix4.[01].*)
11350
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11352
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11355
can_build_shared=no
11359
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11360
# soname into executable. Probably we can add versioning support to
11361
# collect2, so additional links can be useful in future.
11362
if test "$aix_use_runtimelinking" = yes; then
11363
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11364
# instead of lib<name>.a to let people know that these are not
11365
# typical AIX shared libraries.
11366
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11368
# We preserve .a as extension for shared libraries through AIX4.2
11369
# and later when we are not doing run time linking.
11370
library_names_spec='${libname}${release}.a $libname.a'
11371
soname_spec='${libname}${release}${shared_ext}$major'
11373
shlibpath_var=LIBPATH
11378
library_names_spec='$libname.ixlibrary $libname.a'
11379
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11380
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'
11384
library_names_spec='${libname}${shared_ext}'
11385
dynamic_linker="$host_os ld.so"
11386
shlibpath_var=LIBRARY_PATH
11392
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11393
soname_spec='${libname}${release}${shared_ext}$major'
11394
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11395
shlibpath_var=LD_LIBRARY_PATH
11396
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11397
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11398
# the default ld.so.conf also contains /usr/contrib/lib and
11399
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11400
# libtool to hard-code these into programs
11403
cygwin* | mingw* | pw32*)
11404
version_type=windows
11409
case $GCC,$host_os in
11410
yes,cygwin* | yes,mingw* | yes,pw32*)
11411
library_names_spec='$libname.dll.a'
11412
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11413
postinstall_cmds='base_file=`basename \${file}`~
11414
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11415
dldir=$destdir/`dirname \$dlpath`~
11416
test -d \$dldir || mkdir -p \$dldir~
11417
$install_prog $dir/$dlname \$dldir/$dlname'
11418
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11419
dlpath=$dir/\$dldll~
11421
shlibpath_overrides_runpath=yes
11425
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11426
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11427
sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11430
# MinGW DLLs use traditional 'lib' prefix
11431
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11432
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11433
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11434
# It is most probably a Windows format PATH printed by
11435
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11436
# path with ; separators, and with drive letters. We can handle the
11437
# drive letters (cygwin fileutils understands them), so leave them,
11438
# especially as we might pass files found there to a mingw objdump,
11439
# which wouldn't understand a cygwinified path. Ahh.
11440
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11442
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11446
# pw32 DLLs use 'pw' prefix rather than 'lib'
11447
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11453
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11456
dynamic_linker='Win32 ld.exe'
11457
# FIXME: first we should search . and the directory the executable is in
11461
darwin* | rhapsody*)
11462
dynamic_linker="$host_os dyld"
11463
version_type=darwin
11466
# FIXME: Relying on posixy $() will cause problems for
11467
# cross-compilation, but unfortunately the echo tests do not
11468
# yet detect zsh echo's removal of \ escapes.
11469
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11470
soname_spec='${libname}${release}${major}$shared_ext'
11471
shlibpath_overrides_runpath=yes
11472
shlibpath_var=DYLD_LIBRARY_PATH
11473
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11474
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11475
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11476
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"`
11478
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11485
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11486
soname_spec='${libname}${release}${shared_ext}$major'
11487
shlibpath_var=LD_LIBRARY_PATH
11495
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11496
version_type=freebsd-$objformat
11497
case $version_type in
11499
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11504
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11508
shlibpath_var=LD_LIBRARY_PATH
11511
shlibpath_overrides_runpath=yes
11513
freebsd3.01* | freebsdelf3.01*)
11514
shlibpath_overrides_runpath=yes
11515
hardcode_into_libs=yes
11518
shlibpath_overrides_runpath=no
11519
hardcode_into_libs=yes
11528
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11529
soname_spec='${libname}${release}${shared_ext}$major'
11530
shlibpath_var=LD_LIBRARY_PATH
11531
hardcode_into_libs=yes
11534
hpux9* | hpux10* | hpux11*)
11535
# Give a soname corresponding to the major version so that dld.sl refuses to
11536
# link against other versions.
11540
case "$host_cpu" in
11543
hardcode_into_libs=yes
11544
dynamic_linker="$host_os dld.so"
11545
shlibpath_var=LD_LIBRARY_PATH
11546
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11547
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11548
soname_spec='${libname}${release}${shared_ext}$major'
11549
if test "X$HPUX_IA64_MODE" = X32; then
11550
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11552
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11554
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11558
hardcode_into_libs=yes
11559
dynamic_linker="$host_os dld.sl"
11560
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11561
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11562
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11563
soname_spec='${libname}${release}${shared_ext}$major'
11564
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11565
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11569
dynamic_linker="$host_os dld.sl"
11570
shlibpath_var=SHLIB_PATH
11571
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11572
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573
soname_spec='${libname}${release}${shared_ext}$major'
11576
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11577
postinstall_cmds='chmod 555 $lib'
11580
irix5* | irix6* | nonstopux*)
11582
nonstopux*) version_type=nonstopux ;;
11584
if test "$lt_cv_prog_gnu_ld" = yes; then
11592
soname_spec='${libname}${release}${shared_ext}$major'
11593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11595
irix5* | nonstopux*)
11596
libsuff= shlibsuff=
11599
case $LD in # libtool.m4 will add one of these switches to LD
11600
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11601
libsuff= shlibsuff= libmagic=32-bit;;
11602
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11603
libsuff=32 shlibsuff=N32 libmagic=N32;;
11604
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11605
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11606
*) libsuff= shlibsuff= libmagic=never-match;;
11610
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11611
shlibpath_overrides_runpath=no
11612
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11613
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11614
hardcode_into_libs=yes
11617
# No shared lib support for Linux oldld, aout, or coff.
11618
linux*oldld* | linux*aout* | linux*coff*)
11622
# This must be Linux ELF.
11627
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628
soname_spec='${libname}${release}${shared_ext}$major'
11629
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11630
shlibpath_var=LD_LIBRARY_PATH
11631
shlibpath_overrides_runpath=no
11632
# This implies no fast_install, which is unacceptable.
11633
# Some rework will be needed to allow for fast_install
11634
# before this can be enabled.
11635
hardcode_into_libs=yes
11637
# We used to test for /lib/ld.so.1 and disable shared libraries on
11638
# powerpc, because MkLinux only supported shared libraries with the
11639
# GNU dynamic linker. Since this was broken with cross compilers,
11640
# most powerpc-linux boxes support dynamic linking these days and
11641
# people can always --disable-shared, the test was removed, and we
11642
# assume the GNU/Linux dynamic linker is in use.
11643
dynamic_linker='GNU/Linux ld.so'
11645
# Find out which ABI we are using (multilib Linux x86_64 hack).
11647
case "$host_cpu" in
11648
x86_64*|s390x*|powerpc64*)
11649
echo '#line 11649 "configure"' > conftest.$ac_ext
11650
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11651
(eval $ac_compile) 2>&5
11653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654
(exit $ac_status); }; then
11655
case `/usr/bin/file conftest.$ac_objext` in
11666
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11667
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11674
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11675
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11676
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11677
dynamic_linker='NetBSD (a.out) ld.so'
11679
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11680
soname_spec='${libname}${release}${shared_ext}$major'
11681
dynamic_linker='NetBSD ld.elf_so'
11683
shlibpath_var=LD_LIBRARY_PATH
11684
shlibpath_overrides_runpath=yes
11685
hardcode_into_libs=yes
11690
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11691
shlibpath_var=LD_LIBRARY_PATH
11692
shlibpath_overrides_runpath=yes
11699
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700
soname_spec='${libname}${release}${shared_ext}$major'
11701
shlibpath_var=LD_LIBRARY_PATH
11702
shlibpath_overrides_runpath=yes
11709
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11710
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11711
shlibpath_var=LD_LIBRARY_PATH
11712
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11714
openbsd2.[89] | openbsd2.[89].*)
11715
shlibpath_overrides_runpath=no
11718
shlibpath_overrides_runpath=yes
11722
shlibpath_overrides_runpath=yes
11727
libname_spec='$name'
11730
library_names_spec='$libname${shared_ext} $libname.a'
11731
dynamic_linker='OS/2 ld.exe'
11732
shlibpath_var=LIBPATH
11735
osf3* | osf4* | osf5*)
11739
soname_spec='${libname}${release}${shared_ext}$major'
11740
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11741
shlibpath_var=LD_LIBRARY_PATH
11742
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11743
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11748
soname_spec='${libname}${release}${shared_ext}$major'
11749
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11750
shlibpath_var=LD_LIBRARY_PATH
11757
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758
soname_spec='${libname}${release}${shared_ext}$major'
11759
shlibpath_var=LD_LIBRARY_PATH
11760
shlibpath_overrides_runpath=yes
11761
hardcode_into_libs=yes
11762
# ldd complains unless libraries are executable
11763
postinstall_cmds='chmod +x $lib'
11768
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11769
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11770
shlibpath_var=LD_LIBRARY_PATH
11771
shlibpath_overrides_runpath=yes
11772
if test "$with_gnu_ld" = yes; then
11778
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11780
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781
soname_spec='${libname}${release}${shared_ext}$major'
11782
shlibpath_var=LD_LIBRARY_PATH
11783
case $host_vendor in
11785
shlibpath_overrides_runpath=no
11787
export_dynamic_flag_spec='${wl}-Blargedynsym'
11788
runpath_var=LD_RUN_PATH
11796
shlibpath_overrides_runpath=no
11797
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11803
if test -d /usr/nec ;then
11805
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11806
soname_spec='$libname${shared_ext}.$major'
11807
shlibpath_var=LD_LIBRARY_PATH
11813
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11814
soname_spec='${libname}${release}${shared_ext}$major'
11815
shlibpath_var=LD_LIBRARY_PATH
11822
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11823
echo "${ECHO_T}$dynamic_linker" >&6
11824
test "$dynamic_linker" = no && can_build_shared=no
11826
if test "x$enable_dlopen" != xyes; then
11827
enable_dlopen=unknown
11828
enable_dlopen_self=unknown
11829
enable_dlopen_self_static=unknown
11836
lt_cv_dlopen="load_add_on"
11838
lt_cv_dlopen_self=yes
11842
lt_cv_dlopen="LoadLibrary"
11847
lt_cv_dlopen="dlopen"
11852
# if libdl is installed we need to link against it
11853
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11854
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11855
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11856
echo $ECHO_N "(cached) $ECHO_C" >&6
11858
ac_check_lib_save_LIBS=$LIBS
11860
cat >conftest.$ac_ext <<_ACEOF
11863
cat confdefs.h >>conftest.$ac_ext
11864
cat >>conftest.$ac_ext <<_ACEOF
11865
/* end confdefs.h. */
11867
/* Override any gcc2 internal prototype to avoid an error. */
11871
/* We use char because int might match the return type of a gcc2
11872
builtin and then its argument prototype would still apply. */
11882
rm -f conftest.$ac_objext conftest$ac_exeext
11883
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11884
(eval $ac_link) 2>conftest.er1
11886
grep -v '^ *+' conftest.er1 >conftest.err
11888
cat conftest.err >&5
11889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890
(exit $ac_status); } &&
11891
{ ac_try='test -z "$ac_cxx_werror_flag"
11892
|| test ! -s conftest.err'
11893
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894
(eval $ac_try) 2>&5
11896
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897
(exit $ac_status); }; } &&
11898
{ ac_try='test -s conftest$ac_exeext'
11899
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900
(eval $ac_try) 2>&5
11902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903
(exit $ac_status); }; }; then
11904
ac_cv_lib_dl_dlopen=yes
11906
echo "$as_me: failed program was:" >&5
11907
sed 's/^/| /' conftest.$ac_ext >&5
11909
ac_cv_lib_dl_dlopen=no
11911
rm -f conftest.err conftest.$ac_objext \
11912
conftest$ac_exeext conftest.$ac_ext
11913
LIBS=$ac_check_lib_save_LIBS
11915
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11916
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11917
if test $ac_cv_lib_dl_dlopen = yes; then
11918
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11921
lt_cv_dlopen="dyld"
11923
lt_cv_dlopen_self=yes
11930
echo "$as_me:$LINENO: checking for shl_load" >&5
11931
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11932
if test "${ac_cv_func_shl_load+set}" = set; then
11933
echo $ECHO_N "(cached) $ECHO_C" >&6
11935
cat >conftest.$ac_ext <<_ACEOF
11938
cat confdefs.h >>conftest.$ac_ext
11939
cat >>conftest.$ac_ext <<_ACEOF
11940
/* end confdefs.h. */
11941
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11942
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11943
#define shl_load innocuous_shl_load
11945
/* System header to define __stub macros and hopefully few prototypes,
11946
which can conflict with char shl_load (); below.
11947
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11948
<limits.h> exists even on freestanding compilers. */
11951
# include <limits.h>
11953
# include <assert.h>
11958
/* Override any gcc2 internal prototype to avoid an error. */
11963
/* We use char because int might match the return type of a gcc2
11964
builtin and then its argument prototype would still apply. */
11966
/* The GNU C library defines this for functions which it implements
11967
to always fail with ENOSYS. Some functions are actually named
11968
something starting with __ and the normal name is an alias. */
11969
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11972
char (*f) () = shl_load;
11981
return f != shl_load;
11986
rm -f conftest.$ac_objext conftest$ac_exeext
11987
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11988
(eval $ac_link) 2>conftest.er1
11990
grep -v '^ *+' conftest.er1 >conftest.err
11992
cat conftest.err >&5
11993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994
(exit $ac_status); } &&
11995
{ ac_try='test -z "$ac_cxx_werror_flag"
11996
|| test ! -s conftest.err'
11997
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998
(eval $ac_try) 2>&5
12000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001
(exit $ac_status); }; } &&
12002
{ ac_try='test -s conftest$ac_exeext'
12003
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004
(eval $ac_try) 2>&5
12006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007
(exit $ac_status); }; }; then
12008
ac_cv_func_shl_load=yes
12010
echo "$as_me: failed program was:" >&5
12011
sed 's/^/| /' conftest.$ac_ext >&5
12013
ac_cv_func_shl_load=no
12015
rm -f conftest.err conftest.$ac_objext \
12016
conftest$ac_exeext conftest.$ac_ext
12018
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12019
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12020
if test $ac_cv_func_shl_load = yes; then
12021
lt_cv_dlopen="shl_load"
12023
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12024
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12025
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12026
echo $ECHO_N "(cached) $ECHO_C" >&6
12028
ac_check_lib_save_LIBS=$LIBS
12030
cat >conftest.$ac_ext <<_ACEOF
12033
cat confdefs.h >>conftest.$ac_ext
12034
cat >>conftest.$ac_ext <<_ACEOF
12035
/* end confdefs.h. */
12037
/* Override any gcc2 internal prototype to avoid an error. */
12041
/* We use char because int might match the return type of a gcc2
12042
builtin and then its argument prototype would still apply. */
12052
rm -f conftest.$ac_objext conftest$ac_exeext
12053
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12054
(eval $ac_link) 2>conftest.er1
12056
grep -v '^ *+' conftest.er1 >conftest.err
12058
cat conftest.err >&5
12059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060
(exit $ac_status); } &&
12061
{ ac_try='test -z "$ac_cxx_werror_flag"
12062
|| test ! -s conftest.err'
12063
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064
(eval $ac_try) 2>&5
12066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067
(exit $ac_status); }; } &&
12068
{ ac_try='test -s conftest$ac_exeext'
12069
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070
(eval $ac_try) 2>&5
12072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073
(exit $ac_status); }; }; then
12074
ac_cv_lib_dld_shl_load=yes
12076
echo "$as_me: failed program was:" >&5
12077
sed 's/^/| /' conftest.$ac_ext >&5
12079
ac_cv_lib_dld_shl_load=no
12081
rm -f conftest.err conftest.$ac_objext \
12082
conftest$ac_exeext conftest.$ac_ext
12083
LIBS=$ac_check_lib_save_LIBS
12085
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12086
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12087
if test $ac_cv_lib_dld_shl_load = yes; then
12088
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12090
echo "$as_me:$LINENO: checking for dlopen" >&5
12091
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12092
if test "${ac_cv_func_dlopen+set}" = set; then
12093
echo $ECHO_N "(cached) $ECHO_C" >&6
12095
cat >conftest.$ac_ext <<_ACEOF
12098
cat confdefs.h >>conftest.$ac_ext
12099
cat >>conftest.$ac_ext <<_ACEOF
12100
/* end confdefs.h. */
12101
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12102
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12103
#define dlopen innocuous_dlopen
12105
/* System header to define __stub macros and hopefully few prototypes,
12106
which can conflict with char dlopen (); below.
12107
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12108
<limits.h> exists even on freestanding compilers. */
12111
# include <limits.h>
12113
# include <assert.h>
12118
/* Override any gcc2 internal prototype to avoid an error. */
12123
/* We use char because int might match the return type of a gcc2
12124
builtin and then its argument prototype would still apply. */
12126
/* The GNU C library defines this for functions which it implements
12127
to always fail with ENOSYS. Some functions are actually named
12128
something starting with __ and the normal name is an alias. */
12129
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12132
char (*f) () = dlopen;
12141
return f != dlopen;
12146
rm -f conftest.$ac_objext conftest$ac_exeext
12147
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12148
(eval $ac_link) 2>conftest.er1
12150
grep -v '^ *+' conftest.er1 >conftest.err
12152
cat conftest.err >&5
12153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154
(exit $ac_status); } &&
12155
{ ac_try='test -z "$ac_cxx_werror_flag"
12156
|| test ! -s conftest.err'
12157
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158
(eval $ac_try) 2>&5
12160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161
(exit $ac_status); }; } &&
12162
{ ac_try='test -s conftest$ac_exeext'
12163
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164
(eval $ac_try) 2>&5
12166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167
(exit $ac_status); }; }; then
12168
ac_cv_func_dlopen=yes
12170
echo "$as_me: failed program was:" >&5
12171
sed 's/^/| /' conftest.$ac_ext >&5
12173
ac_cv_func_dlopen=no
12175
rm -f conftest.err conftest.$ac_objext \
12176
conftest$ac_exeext conftest.$ac_ext
12178
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12179
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12180
if test $ac_cv_func_dlopen = yes; then
12181
lt_cv_dlopen="dlopen"
12183
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12184
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12185
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12186
echo $ECHO_N "(cached) $ECHO_C" >&6
12188
ac_check_lib_save_LIBS=$LIBS
12190
cat >conftest.$ac_ext <<_ACEOF
12193
cat confdefs.h >>conftest.$ac_ext
12194
cat >>conftest.$ac_ext <<_ACEOF
12195
/* end confdefs.h. */
12197
/* Override any gcc2 internal prototype to avoid an error. */
12201
/* We use char because int might match the return type of a gcc2
12202
builtin and then its argument prototype would still apply. */
12212
rm -f conftest.$ac_objext conftest$ac_exeext
12213
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12214
(eval $ac_link) 2>conftest.er1
12216
grep -v '^ *+' conftest.er1 >conftest.err
12218
cat conftest.err >&5
12219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220
(exit $ac_status); } &&
12221
{ ac_try='test -z "$ac_cxx_werror_flag"
12222
|| test ! -s conftest.err'
12223
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224
(eval $ac_try) 2>&5
12226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227
(exit $ac_status); }; } &&
12228
{ ac_try='test -s conftest$ac_exeext'
12229
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230
(eval $ac_try) 2>&5
12232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233
(exit $ac_status); }; }; then
12234
ac_cv_lib_dl_dlopen=yes
12236
echo "$as_me: failed program was:" >&5
12237
sed 's/^/| /' conftest.$ac_ext >&5
12239
ac_cv_lib_dl_dlopen=no
12241
rm -f conftest.err conftest.$ac_objext \
12242
conftest$ac_exeext conftest.$ac_ext
12243
LIBS=$ac_check_lib_save_LIBS
12245
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12246
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12247
if test $ac_cv_lib_dl_dlopen = yes; then
12248
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12250
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12251
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12252
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12253
echo $ECHO_N "(cached) $ECHO_C" >&6
12255
ac_check_lib_save_LIBS=$LIBS
12256
LIBS="-lsvld $LIBS"
12257
cat >conftest.$ac_ext <<_ACEOF
12260
cat confdefs.h >>conftest.$ac_ext
12261
cat >>conftest.$ac_ext <<_ACEOF
12262
/* end confdefs.h. */
12264
/* Override any gcc2 internal prototype to avoid an error. */
12268
/* We use char because int might match the return type of a gcc2
12269
builtin and then its argument prototype would still apply. */
12279
rm -f conftest.$ac_objext conftest$ac_exeext
12280
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12281
(eval $ac_link) 2>conftest.er1
12283
grep -v '^ *+' conftest.er1 >conftest.err
12285
cat conftest.err >&5
12286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287
(exit $ac_status); } &&
12288
{ ac_try='test -z "$ac_cxx_werror_flag"
12289
|| test ! -s conftest.err'
12290
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291
(eval $ac_try) 2>&5
12293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294
(exit $ac_status); }; } &&
12295
{ ac_try='test -s conftest$ac_exeext'
12296
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297
(eval $ac_try) 2>&5
12299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300
(exit $ac_status); }; }; then
12301
ac_cv_lib_svld_dlopen=yes
12303
echo "$as_me: failed program was:" >&5
12304
sed 's/^/| /' conftest.$ac_ext >&5
12306
ac_cv_lib_svld_dlopen=no
12308
rm -f conftest.err conftest.$ac_objext \
12309
conftest$ac_exeext conftest.$ac_ext
12310
LIBS=$ac_check_lib_save_LIBS
12312
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12313
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12314
if test $ac_cv_lib_svld_dlopen = yes; then
12315
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12317
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12318
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12319
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12320
echo $ECHO_N "(cached) $ECHO_C" >&6
12322
ac_check_lib_save_LIBS=$LIBS
12324
cat >conftest.$ac_ext <<_ACEOF
12327
cat confdefs.h >>conftest.$ac_ext
12328
cat >>conftest.$ac_ext <<_ACEOF
12329
/* end confdefs.h. */
12331
/* Override any gcc2 internal prototype to avoid an error. */
12335
/* We use char because int might match the return type of a gcc2
12336
builtin and then its argument prototype would still apply. */
12346
rm -f conftest.$ac_objext conftest$ac_exeext
12347
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12348
(eval $ac_link) 2>conftest.er1
12350
grep -v '^ *+' conftest.er1 >conftest.err
12352
cat conftest.err >&5
12353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354
(exit $ac_status); } &&
12355
{ ac_try='test -z "$ac_cxx_werror_flag"
12356
|| test ! -s conftest.err'
12357
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358
(eval $ac_try) 2>&5
12360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361
(exit $ac_status); }; } &&
12362
{ ac_try='test -s conftest$ac_exeext'
12363
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364
(eval $ac_try) 2>&5
12366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367
(exit $ac_status); }; }; then
12368
ac_cv_lib_dld_dld_link=yes
12370
echo "$as_me: failed program was:" >&5
12371
sed 's/^/| /' conftest.$ac_ext >&5
12373
ac_cv_lib_dld_dld_link=no
12375
rm -f conftest.err conftest.$ac_objext \
12376
conftest$ac_exeext conftest.$ac_ext
12377
LIBS=$ac_check_lib_save_LIBS
12379
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12380
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12381
if test $ac_cv_lib_dld_dld_link = yes; then
12382
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12403
if test "x$lt_cv_dlopen" != xno; then
12409
case $lt_cv_dlopen in
12411
save_CPPFLAGS="$CPPFLAGS"
12412
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12414
save_LDFLAGS="$LDFLAGS"
12415
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12418
LIBS="$lt_cv_dlopen_libs $LIBS"
12420
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12421
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12422
if test "${lt_cv_dlopen_self+set}" = set; then
12423
echo $ECHO_N "(cached) $ECHO_C" >&6
12425
if test "$cross_compiling" = yes; then :
12426
lt_cv_dlopen_self=cross
12428
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12429
lt_status=$lt_dlunknown
12430
cat > conftest.$ac_ext <<EOF
12431
#line 12431 "configure"
12432
#include "confdefs.h"
12441
# define LT_DLGLOBAL RTLD_GLOBAL
12444
# define LT_DLGLOBAL DL_GLOBAL
12446
# define LT_DLGLOBAL 0
12450
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12451
find out it does not work in some platform. */
12452
#ifndef LT_DLLAZY_OR_NOW
12454
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12457
# define LT_DLLAZY_OR_NOW DL_LAZY
12460
# define LT_DLLAZY_OR_NOW RTLD_NOW
12463
# define LT_DLLAZY_OR_NOW DL_NOW
12465
# define LT_DLLAZY_OR_NOW 0
12473
extern "C" void exit (int);
12476
void fnord() { int i=42;}
12479
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12480
int status = $lt_dlunknown;
12484
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12485
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12486
/* dlclose (self); */
12492
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12493
(eval $ac_link) 2>&5
12495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12497
(./conftest; exit; ) 2>/dev/null
12499
case x$lt_status in
12500
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12501
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12502
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12505
# compilation failed
12506
lt_cv_dlopen_self=no
12513
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12514
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12516
if test "x$lt_cv_dlopen_self" = xyes; then
12517
LDFLAGS="$LDFLAGS $link_static_flag"
12518
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12519
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12520
if test "${lt_cv_dlopen_self_static+set}" = set; then
12521
echo $ECHO_N "(cached) $ECHO_C" >&6
12523
if test "$cross_compiling" = yes; then :
12524
lt_cv_dlopen_self_static=cross
12526
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12527
lt_status=$lt_dlunknown
12528
cat > conftest.$ac_ext <<EOF
12529
#line 12529 "configure"
12530
#include "confdefs.h"
12539
# define LT_DLGLOBAL RTLD_GLOBAL
12542
# define LT_DLGLOBAL DL_GLOBAL
12544
# define LT_DLGLOBAL 0
12548
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12549
find out it does not work in some platform. */
12550
#ifndef LT_DLLAZY_OR_NOW
12552
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12555
# define LT_DLLAZY_OR_NOW DL_LAZY
12558
# define LT_DLLAZY_OR_NOW RTLD_NOW
12561
# define LT_DLLAZY_OR_NOW DL_NOW
12563
# define LT_DLLAZY_OR_NOW 0
12571
extern "C" void exit (int);
12574
void fnord() { int i=42;}
12577
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12578
int status = $lt_dlunknown;
12582
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12583
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12584
/* dlclose (self); */
12590
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12591
(eval $ac_link) 2>&5
12593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12595
(./conftest; exit; ) 2>/dev/null
12597
case x$lt_status in
12598
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12599
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12600
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12603
# compilation failed
12604
lt_cv_dlopen_self_static=no
12611
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12612
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12615
CPPFLAGS="$save_CPPFLAGS"
12616
LDFLAGS="$save_LDFLAGS"
12621
case $lt_cv_dlopen_self in
12622
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12623
*) enable_dlopen_self=unknown ;;
12626
case $lt_cv_dlopen_self_static in
12627
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12628
*) enable_dlopen_self_static=unknown ;;
12633
12519
# The else clause should only fire when bootstrapping the
12634
12520
# libtool distribution, otherwise you forgot to ship ltmain.sh
14474
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14475
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14476
library_names_spec=
14477
libname_spec='lib$name'
14481
postuninstall_cmds=
14485
shlibpath_overrides_runpath=unknown
14487
dynamic_linker="$host_os ld.so"
14488
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14489
if test "$GCC" = yes; then
14490
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14491
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14492
# if the path contains ";" then we assume it to be the separator
14493
# otherwise default to the standard path separator (i.e. ":") - it is
14494
# assumed that no part of a normal pathname contains ";" but that should
14495
# okay in the real world where ";" in dirpaths is itself problematic.
14496
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14498
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14501
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14503
need_lib_prefix=unknown
14504
hardcode_into_libs=no
14506
# when you set need_version to no, make sure it does not cause -set_version
14507
# flags to be left without arguments
14508
need_version=unknown
14513
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14514
shlibpath_var=LIBPATH
14516
# AIX 3 has no versioning support, so we append a major version to the name.
14517
soname_spec='${libname}${release}${shared_ext}$major'
14524
hardcode_into_libs=yes
14525
if test "$host_cpu" = ia64; then
14526
# AIX 5 supports IA64
14527
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14528
shlibpath_var=LD_LIBRARY_PATH
14530
# With GCC up to 2.95.x, collect2 would create an import file
14531
# for dependence libraries. The import file would start with
14532
# the line `#! .'. This would cause the generated library to
14533
# depend on `.', always an invalid library. This was fixed in
14534
# development snapshots of GCC prior to 3.0.
14536
aix4 | aix4.[01] | aix4.[01].*)
14537
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14539
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14542
can_build_shared=no
14546
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14547
# soname into executable. Probably we can add versioning support to
14548
# collect2, so additional links can be useful in future.
14549
if test "$aix_use_runtimelinking" = yes; then
14550
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14551
# instead of lib<name>.a to let people know that these are not
14552
# typical AIX shared libraries.
14553
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14555
# We preserve .a as extension for shared libraries through AIX4.2
14556
# and later when we are not doing run time linking.
14557
library_names_spec='${libname}${release}.a $libname.a'
14558
soname_spec='${libname}${release}${shared_ext}$major'
14560
shlibpath_var=LIBPATH
14565
library_names_spec='$libname.ixlibrary $libname.a'
14566
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14567
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'
14571
library_names_spec='${libname}${shared_ext}'
14572
dynamic_linker="$host_os ld.so"
14573
shlibpath_var=LIBRARY_PATH
14579
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14580
soname_spec='${libname}${release}${shared_ext}$major'
14581
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14582
shlibpath_var=LD_LIBRARY_PATH
14583
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14584
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14585
# the default ld.so.conf also contains /usr/contrib/lib and
14586
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14587
# libtool to hard-code these into programs
14590
cygwin* | mingw* | pw32*)
14591
version_type=windows
14596
case $GCC,$host_os in
14597
yes,cygwin* | yes,mingw* | yes,pw32*)
14598
library_names_spec='$libname.dll.a'
14599
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14600
postinstall_cmds='base_file=`basename \${file}`~
14601
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14602
dldir=$destdir/`dirname \$dlpath`~
14603
test -d \$dldir || mkdir -p \$dldir~
14604
$install_prog $dir/$dlname \$dldir/$dlname~
14605
chmod a+x \$dldir/$dlname'
14606
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14607
dlpath=$dir/\$dldll~
14609
shlibpath_overrides_runpath=yes
14613
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14614
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14615
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14618
# MinGW DLLs use traditional 'lib' prefix
14619
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14620
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14621
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14622
# It is most probably a Windows format PATH printed by
14623
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14624
# path with ; separators, and with drive letters. We can handle the
14625
# drive letters (cygwin fileutils understands them), so leave them,
14626
# especially as we might pass files found there to a mingw objdump,
14627
# which wouldn't understand a cygwinified path. Ahh.
14628
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14630
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14634
# pw32 DLLs use 'pw' prefix rather than 'lib'
14635
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14641
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14644
dynamic_linker='Win32 ld.exe'
14645
# FIXME: first we should search . and the directory the executable is in
14649
darwin* | rhapsody*)
14650
dynamic_linker="$host_os dyld"
14651
version_type=darwin
14654
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14655
soname_spec='${libname}${release}${major}$shared_ext'
14656
shlibpath_overrides_runpath=yes
14657
shlibpath_var=DYLD_LIBRARY_PATH
14658
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14659
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14660
if test "$GCC" = yes; then
14661
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"`
14663
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14665
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14672
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14673
soname_spec='${libname}${release}${shared_ext}$major'
14674
shlibpath_var=LD_LIBRARY_PATH
14685
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14686
soname_spec='${libname}${release}${shared_ext}$major'
14687
shlibpath_var=LD_LIBRARY_PATH
14688
shlibpath_overrides_runpath=no
14689
hardcode_into_libs=yes
14690
dynamic_linker='GNU ld.so'
14693
freebsd* | dragonfly*)
14694
# DragonFly does not have aout. When/if they implement a new
14695
# versioning mechanism, adjust this.
14696
if test -x /usr/bin/objformat; then
14697
objformat=`/usr/bin/objformat`
14700
freebsd[123]*) objformat=aout ;;
14701
*) objformat=elf ;;
14704
version_type=freebsd-$objformat
14705
case $version_type in
14707
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14712
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14716
shlibpath_var=LD_LIBRARY_PATH
14719
shlibpath_overrides_runpath=yes
14721
freebsd3.[01]* | freebsdelf3.[01]*)
14722
shlibpath_overrides_runpath=yes
14723
hardcode_into_libs=yes
14725
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14726
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14727
shlibpath_overrides_runpath=no
14728
hardcode_into_libs=yes
14730
freebsd*) # from 4.6 on
14731
shlibpath_overrides_runpath=yes
14732
hardcode_into_libs=yes
14741
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14742
soname_spec='${libname}${release}${shared_ext}$major'
14743
shlibpath_var=LD_LIBRARY_PATH
14744
hardcode_into_libs=yes
14747
hpux9* | hpux10* | hpux11*)
14748
# Give a soname corresponding to the major version so that dld.sl refuses to
14749
# link against other versions.
14756
hardcode_into_libs=yes
14757
dynamic_linker="$host_os dld.so"
14758
shlibpath_var=LD_LIBRARY_PATH
14759
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14760
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761
soname_spec='${libname}${release}${shared_ext}$major'
14762
if test "X$HPUX_IA64_MODE" = X32; then
14763
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14765
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14767
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14771
hardcode_into_libs=yes
14772
dynamic_linker="$host_os dld.sl"
14773
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14774
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14775
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14776
soname_spec='${libname}${release}${shared_ext}$major'
14777
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14778
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14782
dynamic_linker="$host_os dld.sl"
14783
shlibpath_var=SHLIB_PATH
14784
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14785
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14786
soname_spec='${libname}${release}${shared_ext}$major'
14789
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14790
postinstall_cmds='chmod 555 $lib'
14797
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14798
soname_spec='${libname}${release}${shared_ext}$major'
14799
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14800
shlibpath_var=LD_LIBRARY_PATH
14801
shlibpath_overrides_runpath=no
14802
hardcode_into_libs=yes
14805
irix5* | irix6* | nonstopux*)
14807
nonstopux*) version_type=nonstopux ;;
14809
if test "$lt_cv_prog_gnu_ld" = yes; then
14817
soname_spec='${libname}${release}${shared_ext}$major'
14818
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14820
irix5* | nonstopux*)
14821
libsuff= shlibsuff=
14824
case $LD in # libtool.m4 will add one of these switches to LD
14825
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14826
libsuff= shlibsuff= libmagic=32-bit;;
14827
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14828
libsuff=32 shlibsuff=N32 libmagic=N32;;
14829
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14830
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14831
*) libsuff= shlibsuff= libmagic=never-match;;
14835
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14836
shlibpath_overrides_runpath=no
14837
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14838
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14839
hardcode_into_libs=yes
14842
# No shared lib support for Linux oldld, aout, or coff.
14843
linux*oldld* | linux*aout* | linux*coff*)
14847
# This must be Linux ELF.
14852
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14853
soname_spec='${libname}${release}${shared_ext}$major'
14854
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14855
shlibpath_var=LD_LIBRARY_PATH
14856
shlibpath_overrides_runpath=no
14857
# This implies no fast_install, which is unacceptable.
14858
# Some rework will be needed to allow for fast_install
14859
# before this can be enabled.
14860
hardcode_into_libs=yes
14862
# find out which ABI we are using
14864
case "$host_cpu" in
14865
x86_64*|s390x*|powerpc64*)
14866
echo '#line 14866 "configure"' > conftest.$ac_ext
14867
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14868
(eval $ac_compile) 2>&5
14870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871
(exit $ac_status); }; then
14872
case `/usr/bin/file conftest.$ac_objext` in
14875
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14883
# Append ld.so.conf contents to the search path
14884
if test -f /etc/ld.so.conf; then
14885
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14886
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14889
# We used to test for /lib/ld.so.1 and disable shared libraries on
14890
# powerpc, because MkLinux only supported shared libraries with the
14891
# GNU dynamic linker. Since this was broken with cross compilers,
14892
# most powerpc-linux boxes support dynamic linking these days and
14893
# people can always --disable-shared, the test was removed, and we
14894
# assume the GNU/Linux dynamic linker is in use.
14895
dynamic_linker='GNU/Linux ld.so'
14902
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14903
soname_spec='${libname}${release}${shared_ext}$major'
14904
shlibpath_var=LD_LIBRARY_PATH
14905
shlibpath_overrides_runpath=no
14906
hardcode_into_libs=yes
14907
dynamic_linker='GNU ld.so'
14914
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14915
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14916
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14917
dynamic_linker='NetBSD (a.out) ld.so'
14919
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14920
soname_spec='${libname}${release}${shared_ext}$major'
14921
dynamic_linker='NetBSD ld.elf_so'
14923
shlibpath_var=LD_LIBRARY_PATH
14924
shlibpath_overrides_runpath=yes
14925
hardcode_into_libs=yes
14930
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14931
shlibpath_var=LD_LIBRARY_PATH
14932
shlibpath_overrides_runpath=yes
14939
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14940
soname_spec='${libname}${release}${shared_ext}$major'
14941
shlibpath_var=LD_LIBRARY_PATH
14942
shlibpath_overrides_runpath=yes
14947
sys_lib_dlsearch_path_spec="/usr/lib"
14949
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14951
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14952
*) need_version=no ;;
14954
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14955
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14956
shlibpath_var=LD_LIBRARY_PATH
14957
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14959
openbsd2.[89] | openbsd2.[89].*)
14960
shlibpath_overrides_runpath=no
14963
shlibpath_overrides_runpath=yes
14967
shlibpath_overrides_runpath=yes
14972
libname_spec='$name'
14975
library_names_spec='$libname${shared_ext} $libname.a'
14976
dynamic_linker='OS/2 ld.exe'
14977
shlibpath_var=LIBPATH
14980
osf3* | osf4* | osf5*)
14984
soname_spec='${libname}${release}${shared_ext}$major'
14985
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14986
shlibpath_var=LD_LIBRARY_PATH
14987
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14988
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14995
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996
soname_spec='${libname}${release}${shared_ext}$major'
14997
shlibpath_var=LD_LIBRARY_PATH
14998
shlibpath_overrides_runpath=yes
14999
hardcode_into_libs=yes
15000
# ldd complains unless libraries are executable
15001
postinstall_cmds='chmod +x $lib'
15006
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15007
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15008
shlibpath_var=LD_LIBRARY_PATH
15009
shlibpath_overrides_runpath=yes
15010
if test "$with_gnu_ld" = yes; then
15018
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15019
soname_spec='${libname}${release}${shared_ext}$major'
15020
shlibpath_var=LD_LIBRARY_PATH
15021
case $host_vendor in
15023
shlibpath_overrides_runpath=no
15025
export_dynamic_flag_spec='${wl}-Blargedynsym'
15026
runpath_var=LD_RUN_PATH
15034
shlibpath_overrides_runpath=no
15035
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15041
if test -d /usr/nec ;then
15043
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15044
soname_spec='$libname${shared_ext}.$major'
15045
shlibpath_var=LD_LIBRARY_PATH
15049
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15050
version_type=freebsd-elf
15053
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15054
soname_spec='${libname}${release}${shared_ext}$major'
15055
shlibpath_var=LD_LIBRARY_PATH
15056
hardcode_into_libs=yes
15057
if test "$with_gnu_ld" = yes; then
15058
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15059
shlibpath_overrides_runpath=no
15061
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15062
shlibpath_overrides_runpath=yes
15065
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15069
sys_lib_dlsearch_path_spec='/usr/lib'
15074
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15075
soname_spec='${libname}${release}${shared_ext}$major'
15076
shlibpath_var=LD_LIBRARY_PATH
15083
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15084
echo "${ECHO_T}$dynamic_linker" >&6
15085
test "$dynamic_linker" = no && can_build_shared=no
15087
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15088
if test "$GCC" = yes; then
15089
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14355
15092
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14356
15093
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14357
15094
hardcode_action_F77=
14358
15095
if test -n "$hardcode_libdir_flag_spec_F77" || \
14359
test -n "$runpath_var F77" || \
14360
test "X$hardcode_automatic_F77"="Xyes" ; then
15096
test -n "$runpath_var_F77" || \
15097
test "X$hardcode_automatic_F77" = "Xyes" ; then
14362
15099
# We can hardcode non-existant directories.
14363
15100
if test "$hardcode_direct_F77" != no &&
14389
15126
enable_fast_install=needless
14394
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14395
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14396
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14397
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14398
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14399
echo "$as_me:$LINENO: result: yes" >&5
14400
echo "${ECHO_T}yes" >&6
14402
# FIXME - insert some real tests, host_os isn't really good enough
14405
if test -n "$STRIP" ; then
14406
striplib="$STRIP -x"
14407
echo "$as_me:$LINENO: result: yes" >&5
14408
echo "${ECHO_T}yes" >&6
14410
echo "$as_me:$LINENO: result: no" >&5
14411
echo "${ECHO_T}no" >&6
14415
echo "$as_me:$LINENO: result: no" >&5
14416
echo "${ECHO_T}no" >&6
14421
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14422
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14423
library_names_spec=
14424
libname_spec='lib$name'
14428
postuninstall_cmds=
14432
shlibpath_overrides_runpath=unknown
14434
dynamic_linker="$host_os ld.so"
14435
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14436
if test "$GCC" = yes; then
14437
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14438
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14439
# if the path contains ";" then we assume it to be the separator
14440
# otherwise default to the standard path separator (i.e. ":") - it is
14441
# assumed that no part of a normal pathname contains ";" but that should
14442
# okay in the real world where ";" in dirpaths is itself problematic.
14443
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14445
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14448
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14450
need_lib_prefix=unknown
14451
hardcode_into_libs=no
14453
# when you set need_version to no, make sure it does not cause -set_version
14454
# flags to be left without arguments
14455
need_version=unknown
14460
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14461
shlibpath_var=LIBPATH
14463
# AIX 3 has no versioning support, so we append a major version to the name.
14464
soname_spec='${libname}${release}${shared_ext}$major'
14471
hardcode_into_libs=yes
14472
if test "$host_cpu" = ia64; then
14473
# AIX 5 supports IA64
14474
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14475
shlibpath_var=LD_LIBRARY_PATH
14477
# With GCC up to 2.95.x, collect2 would create an import file
14478
# for dependence libraries. The import file would start with
14479
# the line `#! .'. This would cause the generated library to
14480
# depend on `.', always an invalid library. This was fixed in
14481
# development snapshots of GCC prior to 3.0.
14483
aix4 | aix4.[01] | aix4.[01].*)
14484
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14486
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14489
can_build_shared=no
14493
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14494
# soname into executable. Probably we can add versioning support to
14495
# collect2, so additional links can be useful in future.
14496
if test "$aix_use_runtimelinking" = yes; then
14497
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14498
# instead of lib<name>.a to let people know that these are not
14499
# typical AIX shared libraries.
14500
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14502
# We preserve .a as extension for shared libraries through AIX4.2
14503
# and later when we are not doing run time linking.
14504
library_names_spec='${libname}${release}.a $libname.a'
14505
soname_spec='${libname}${release}${shared_ext}$major'
14507
shlibpath_var=LIBPATH
14512
library_names_spec='$libname.ixlibrary $libname.a'
14513
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14514
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'
14518
library_names_spec='${libname}${shared_ext}'
14519
dynamic_linker="$host_os ld.so"
14520
shlibpath_var=LIBRARY_PATH
14526
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14527
soname_spec='${libname}${release}${shared_ext}$major'
14528
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14529
shlibpath_var=LD_LIBRARY_PATH
14530
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14531
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14532
# the default ld.so.conf also contains /usr/contrib/lib and
14533
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14534
# libtool to hard-code these into programs
14537
cygwin* | mingw* | pw32*)
14538
version_type=windows
14543
case $GCC,$host_os in
14544
yes,cygwin* | yes,mingw* | yes,pw32*)
14545
library_names_spec='$libname.dll.a'
14546
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14547
postinstall_cmds='base_file=`basename \${file}`~
14548
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14549
dldir=$destdir/`dirname \$dlpath`~
14550
test -d \$dldir || mkdir -p \$dldir~
14551
$install_prog $dir/$dlname \$dldir/$dlname'
14552
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14553
dlpath=$dir/\$dldll~
14555
shlibpath_overrides_runpath=yes
14559
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14560
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14561
sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14564
# MinGW DLLs use traditional 'lib' prefix
14565
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14566
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14567
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14568
# It is most probably a Windows format PATH printed by
14569
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14570
# path with ; separators, and with drive letters. We can handle the
14571
# drive letters (cygwin fileutils understands them), so leave them,
14572
# especially as we might pass files found there to a mingw objdump,
14573
# which wouldn't understand a cygwinified path. Ahh.
14574
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14576
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14580
# pw32 DLLs use 'pw' prefix rather than 'lib'
14581
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14587
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14590
dynamic_linker='Win32 ld.exe'
14591
# FIXME: first we should search . and the directory the executable is in
14595
darwin* | rhapsody*)
14596
dynamic_linker="$host_os dyld"
14597
version_type=darwin
14600
# FIXME: Relying on posixy $() will cause problems for
14601
# cross-compilation, but unfortunately the echo tests do not
14602
# yet detect zsh echo's removal of \ escapes.
14603
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14604
soname_spec='${libname}${release}${major}$shared_ext'
14605
shlibpath_overrides_runpath=yes
14606
shlibpath_var=DYLD_LIBRARY_PATH
14607
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14608
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14609
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14610
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"`
14612
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14619
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14620
soname_spec='${libname}${release}${shared_ext}$major'
14621
shlibpath_var=LD_LIBRARY_PATH
14629
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14630
version_type=freebsd-$objformat
14631
case $version_type in
14633
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14638
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14642
shlibpath_var=LD_LIBRARY_PATH
14645
shlibpath_overrides_runpath=yes
14647
freebsd3.01* | freebsdelf3.01*)
14648
shlibpath_overrides_runpath=yes
14649
hardcode_into_libs=yes
14652
shlibpath_overrides_runpath=no
14653
hardcode_into_libs=yes
14662
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14663
soname_spec='${libname}${release}${shared_ext}$major'
14664
shlibpath_var=LD_LIBRARY_PATH
14665
hardcode_into_libs=yes
14668
hpux9* | hpux10* | hpux11*)
14669
# Give a soname corresponding to the major version so that dld.sl refuses to
14670
# link against other versions.
14674
case "$host_cpu" in
14677
hardcode_into_libs=yes
14678
dynamic_linker="$host_os dld.so"
14679
shlibpath_var=LD_LIBRARY_PATH
14680
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14681
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682
soname_spec='${libname}${release}${shared_ext}$major'
14683
if test "X$HPUX_IA64_MODE" = X32; then
14684
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14686
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14688
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14692
hardcode_into_libs=yes
14693
dynamic_linker="$host_os dld.sl"
14694
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14695
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14696
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697
soname_spec='${libname}${release}${shared_ext}$major'
14698
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14699
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14703
dynamic_linker="$host_os dld.sl"
14704
shlibpath_var=SHLIB_PATH
14705
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14706
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707
soname_spec='${libname}${release}${shared_ext}$major'
14710
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14711
postinstall_cmds='chmod 555 $lib'
14714
irix5* | irix6* | nonstopux*)
14716
nonstopux*) version_type=nonstopux ;;
14718
if test "$lt_cv_prog_gnu_ld" = yes; then
14726
soname_spec='${libname}${release}${shared_ext}$major'
14727
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14729
irix5* | nonstopux*)
14730
libsuff= shlibsuff=
14733
case $LD in # libtool.m4 will add one of these switches to LD
14734
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14735
libsuff= shlibsuff= libmagic=32-bit;;
14736
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14737
libsuff=32 shlibsuff=N32 libmagic=N32;;
14738
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14739
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14740
*) libsuff= shlibsuff= libmagic=never-match;;
14744
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14745
shlibpath_overrides_runpath=no
14746
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14747
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14748
hardcode_into_libs=yes
14751
# No shared lib support for Linux oldld, aout, or coff.
14752
linux*oldld* | linux*aout* | linux*coff*)
14756
# This must be Linux ELF.
14761
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14762
soname_spec='${libname}${release}${shared_ext}$major'
14763
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14764
shlibpath_var=LD_LIBRARY_PATH
14765
shlibpath_overrides_runpath=no
14766
# This implies no fast_install, which is unacceptable.
14767
# Some rework will be needed to allow for fast_install
14768
# before this can be enabled.
14769
hardcode_into_libs=yes
14771
# We used to test for /lib/ld.so.1 and disable shared libraries on
14772
# powerpc, because MkLinux only supported shared libraries with the
14773
# GNU dynamic linker. Since this was broken with cross compilers,
14774
# most powerpc-linux boxes support dynamic linking these days and
14775
# people can always --disable-shared, the test was removed, and we
14776
# assume the GNU/Linux dynamic linker is in use.
14777
dynamic_linker='GNU/Linux ld.so'
14779
# Find out which ABI we are using (multilib Linux x86_64 hack).
14781
case "$host_cpu" in
14782
x86_64*|s390x*|powerpc64*)
14783
echo '#line 14783 "configure"' > conftest.$ac_ext
14784
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785
(eval $ac_compile) 2>&5
14787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788
(exit $ac_status); }; then
14789
case `/usr/bin/file conftest.$ac_objext` in
14800
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
14801
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14808
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14809
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14810
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14811
dynamic_linker='NetBSD (a.out) ld.so'
14813
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14814
soname_spec='${libname}${release}${shared_ext}$major'
14815
dynamic_linker='NetBSD ld.elf_so'
14817
shlibpath_var=LD_LIBRARY_PATH
14818
shlibpath_overrides_runpath=yes
14819
hardcode_into_libs=yes
14824
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14825
shlibpath_var=LD_LIBRARY_PATH
14826
shlibpath_overrides_runpath=yes
14833
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14834
soname_spec='${libname}${release}${shared_ext}$major'
14835
shlibpath_var=LD_LIBRARY_PATH
14836
shlibpath_overrides_runpath=yes
14843
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14844
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14845
shlibpath_var=LD_LIBRARY_PATH
14846
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14848
openbsd2.[89] | openbsd2.[89].*)
14849
shlibpath_overrides_runpath=no
14852
shlibpath_overrides_runpath=yes
14856
shlibpath_overrides_runpath=yes
14861
libname_spec='$name'
14864
library_names_spec='$libname${shared_ext} $libname.a'
14865
dynamic_linker='OS/2 ld.exe'
14866
shlibpath_var=LIBPATH
14869
osf3* | osf4* | osf5*)
14873
soname_spec='${libname}${release}${shared_ext}$major'
14874
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14875
shlibpath_var=LD_LIBRARY_PATH
14876
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14877
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14882
soname_spec='${libname}${release}${shared_ext}$major'
14883
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884
shlibpath_var=LD_LIBRARY_PATH
14891
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14892
soname_spec='${libname}${release}${shared_ext}$major'
14893
shlibpath_var=LD_LIBRARY_PATH
14894
shlibpath_overrides_runpath=yes
14895
hardcode_into_libs=yes
14896
# ldd complains unless libraries are executable
14897
postinstall_cmds='chmod +x $lib'
14902
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14903
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14904
shlibpath_var=LD_LIBRARY_PATH
14905
shlibpath_overrides_runpath=yes
14906
if test "$with_gnu_ld" = yes; then
14912
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14914
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915
soname_spec='${libname}${release}${shared_ext}$major'
14916
shlibpath_var=LD_LIBRARY_PATH
14917
case $host_vendor in
14919
shlibpath_overrides_runpath=no
14921
export_dynamic_flag_spec='${wl}-Blargedynsym'
14922
runpath_var=LD_RUN_PATH
14930
shlibpath_overrides_runpath=no
14931
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14937
if test -d /usr/nec ;then
14939
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14940
soname_spec='$libname${shared_ext}.$major'
14941
shlibpath_var=LD_LIBRARY_PATH
14947
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948
soname_spec='${libname}${release}${shared_ext}$major'
14949
shlibpath_var=LD_LIBRARY_PATH
14956
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14957
echo "${ECHO_T}$dynamic_linker" >&6
14958
test "$dynamic_linker" = no && can_build_shared=no
14961
15130
# The else clause should only fire when bootstrapping the
14962
15131
# libtool distribution, otherwise you forgot to ship ltmain.sh
17093
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17094
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17095
library_names_spec=
17096
libname_spec='lib$name'
17100
postuninstall_cmds=
17104
shlibpath_overrides_runpath=unknown
17106
dynamic_linker="$host_os ld.so"
17107
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17108
if test "$GCC" = yes; then
17109
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17110
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17111
# if the path contains ";" then we assume it to be the separator
17112
# otherwise default to the standard path separator (i.e. ":") - it is
17113
# assumed that no part of a normal pathname contains ";" but that should
17114
# okay in the real world where ";" in dirpaths is itself problematic.
17115
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17117
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17120
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17122
need_lib_prefix=unknown
17123
hardcode_into_libs=no
17125
# when you set need_version to no, make sure it does not cause -set_version
17126
# flags to be left without arguments
17127
need_version=unknown
17132
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17133
shlibpath_var=LIBPATH
17135
# AIX 3 has no versioning support, so we append a major version to the name.
17136
soname_spec='${libname}${release}${shared_ext}$major'
17143
hardcode_into_libs=yes
17144
if test "$host_cpu" = ia64; then
17145
# AIX 5 supports IA64
17146
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17147
shlibpath_var=LD_LIBRARY_PATH
17149
# With GCC up to 2.95.x, collect2 would create an import file
17150
# for dependence libraries. The import file would start with
17151
# the line `#! .'. This would cause the generated library to
17152
# depend on `.', always an invalid library. This was fixed in
17153
# development snapshots of GCC prior to 3.0.
17155
aix4 | aix4.[01] | aix4.[01].*)
17156
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17158
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17161
can_build_shared=no
17165
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17166
# soname into executable. Probably we can add versioning support to
17167
# collect2, so additional links can be useful in future.
17168
if test "$aix_use_runtimelinking" = yes; then
17169
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17170
# instead of lib<name>.a to let people know that these are not
17171
# typical AIX shared libraries.
17172
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17174
# We preserve .a as extension for shared libraries through AIX4.2
17175
# and later when we are not doing run time linking.
17176
library_names_spec='${libname}${release}.a $libname.a'
17177
soname_spec='${libname}${release}${shared_ext}$major'
17179
shlibpath_var=LIBPATH
17184
library_names_spec='$libname.ixlibrary $libname.a'
17185
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17186
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'
17190
library_names_spec='${libname}${shared_ext}'
17191
dynamic_linker="$host_os ld.so"
17192
shlibpath_var=LIBRARY_PATH
17198
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17199
soname_spec='${libname}${release}${shared_ext}$major'
17200
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17201
shlibpath_var=LD_LIBRARY_PATH
17202
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17203
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17204
# the default ld.so.conf also contains /usr/contrib/lib and
17205
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17206
# libtool to hard-code these into programs
17209
cygwin* | mingw* | pw32*)
17210
version_type=windows
17215
case $GCC,$host_os in
17216
yes,cygwin* | yes,mingw* | yes,pw32*)
17217
library_names_spec='$libname.dll.a'
17218
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17219
postinstall_cmds='base_file=`basename \${file}`~
17220
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17221
dldir=$destdir/`dirname \$dlpath`~
17222
test -d \$dldir || mkdir -p \$dldir~
17223
$install_prog $dir/$dlname \$dldir/$dlname~
17224
chmod a+x \$dldir/$dlname'
17225
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17226
dlpath=$dir/\$dldll~
17228
shlibpath_overrides_runpath=yes
17232
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17233
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17234
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17237
# MinGW DLLs use traditional 'lib' prefix
17238
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17239
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17240
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17241
# It is most probably a Windows format PATH printed by
17242
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17243
# path with ; separators, and with drive letters. We can handle the
17244
# drive letters (cygwin fileutils understands them), so leave them,
17245
# especially as we might pass files found there to a mingw objdump,
17246
# which wouldn't understand a cygwinified path. Ahh.
17247
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17249
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17253
# pw32 DLLs use 'pw' prefix rather than 'lib'
17254
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17260
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17263
dynamic_linker='Win32 ld.exe'
17264
# FIXME: first we should search . and the directory the executable is in
17268
darwin* | rhapsody*)
17269
dynamic_linker="$host_os dyld"
17270
version_type=darwin
17273
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17274
soname_spec='${libname}${release}${major}$shared_ext'
17275
shlibpath_overrides_runpath=yes
17276
shlibpath_var=DYLD_LIBRARY_PATH
17277
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17278
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17279
if test "$GCC" = yes; then
17280
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"`
17282
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17284
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17291
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17292
soname_spec='${libname}${release}${shared_ext}$major'
17293
shlibpath_var=LD_LIBRARY_PATH
17304
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17305
soname_spec='${libname}${release}${shared_ext}$major'
17306
shlibpath_var=LD_LIBRARY_PATH
17307
shlibpath_overrides_runpath=no
17308
hardcode_into_libs=yes
17309
dynamic_linker='GNU ld.so'
17312
freebsd* | dragonfly*)
17313
# DragonFly does not have aout. When/if they implement a new
17314
# versioning mechanism, adjust this.
17315
if test -x /usr/bin/objformat; then
17316
objformat=`/usr/bin/objformat`
17319
freebsd[123]*) objformat=aout ;;
17320
*) objformat=elf ;;
17323
version_type=freebsd-$objformat
17324
case $version_type in
17326
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17331
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17335
shlibpath_var=LD_LIBRARY_PATH
17338
shlibpath_overrides_runpath=yes
17340
freebsd3.[01]* | freebsdelf3.[01]*)
17341
shlibpath_overrides_runpath=yes
17342
hardcode_into_libs=yes
17344
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17345
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17346
shlibpath_overrides_runpath=no
17347
hardcode_into_libs=yes
17349
freebsd*) # from 4.6 on
17350
shlibpath_overrides_runpath=yes
17351
hardcode_into_libs=yes
17360
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17361
soname_spec='${libname}${release}${shared_ext}$major'
17362
shlibpath_var=LD_LIBRARY_PATH
17363
hardcode_into_libs=yes
17366
hpux9* | hpux10* | hpux11*)
17367
# Give a soname corresponding to the major version so that dld.sl refuses to
17368
# link against other versions.
17375
hardcode_into_libs=yes
17376
dynamic_linker="$host_os dld.so"
17377
shlibpath_var=LD_LIBRARY_PATH
17378
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17379
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17380
soname_spec='${libname}${release}${shared_ext}$major'
17381
if test "X$HPUX_IA64_MODE" = X32; then
17382
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17384
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17386
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17390
hardcode_into_libs=yes
17391
dynamic_linker="$host_os dld.sl"
17392
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17393
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17394
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17395
soname_spec='${libname}${release}${shared_ext}$major'
17396
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17397
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17401
dynamic_linker="$host_os dld.sl"
17402
shlibpath_var=SHLIB_PATH
17403
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17404
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17405
soname_spec='${libname}${release}${shared_ext}$major'
17408
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17409
postinstall_cmds='chmod 555 $lib'
17416
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17417
soname_spec='${libname}${release}${shared_ext}$major'
17418
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17419
shlibpath_var=LD_LIBRARY_PATH
17420
shlibpath_overrides_runpath=no
17421
hardcode_into_libs=yes
17424
irix5* | irix6* | nonstopux*)
17426
nonstopux*) version_type=nonstopux ;;
17428
if test "$lt_cv_prog_gnu_ld" = yes; then
17436
soname_spec='${libname}${release}${shared_ext}$major'
17437
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17439
irix5* | nonstopux*)
17440
libsuff= shlibsuff=
17443
case $LD in # libtool.m4 will add one of these switches to LD
17444
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17445
libsuff= shlibsuff= libmagic=32-bit;;
17446
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17447
libsuff=32 shlibsuff=N32 libmagic=N32;;
17448
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17449
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17450
*) libsuff= shlibsuff= libmagic=never-match;;
17454
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17455
shlibpath_overrides_runpath=no
17456
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17457
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17458
hardcode_into_libs=yes
17461
# No shared lib support for Linux oldld, aout, or coff.
17462
linux*oldld* | linux*aout* | linux*coff*)
17466
# This must be Linux ELF.
17471
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17472
soname_spec='${libname}${release}${shared_ext}$major'
17473
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17474
shlibpath_var=LD_LIBRARY_PATH
17475
shlibpath_overrides_runpath=no
17476
# This implies no fast_install, which is unacceptable.
17477
# Some rework will be needed to allow for fast_install
17478
# before this can be enabled.
17479
hardcode_into_libs=yes
17481
# find out which ABI we are using
17483
case "$host_cpu" in
17484
x86_64*|s390x*|powerpc64*)
17485
echo '#line 17485 "configure"' > conftest.$ac_ext
17486
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17487
(eval $ac_compile) 2>&5
17489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490
(exit $ac_status); }; then
17491
case `/usr/bin/file conftest.$ac_objext` in
17494
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17502
# Append ld.so.conf contents to the search path
17503
if test -f /etc/ld.so.conf; then
17504
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17505
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17508
# We used to test for /lib/ld.so.1 and disable shared libraries on
17509
# powerpc, because MkLinux only supported shared libraries with the
17510
# GNU dynamic linker. Since this was broken with cross compilers,
17511
# most powerpc-linux boxes support dynamic linking these days and
17512
# people can always --disable-shared, the test was removed, and we
17513
# assume the GNU/Linux dynamic linker is in use.
17514
dynamic_linker='GNU/Linux ld.so'
17521
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17522
soname_spec='${libname}${release}${shared_ext}$major'
17523
shlibpath_var=LD_LIBRARY_PATH
17524
shlibpath_overrides_runpath=no
17525
hardcode_into_libs=yes
17526
dynamic_linker='GNU ld.so'
17533
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17534
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17535
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17536
dynamic_linker='NetBSD (a.out) ld.so'
17538
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17539
soname_spec='${libname}${release}${shared_ext}$major'
17540
dynamic_linker='NetBSD ld.elf_so'
17542
shlibpath_var=LD_LIBRARY_PATH
17543
shlibpath_overrides_runpath=yes
17544
hardcode_into_libs=yes
17549
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17550
shlibpath_var=LD_LIBRARY_PATH
17551
shlibpath_overrides_runpath=yes
17558
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17559
soname_spec='${libname}${release}${shared_ext}$major'
17560
shlibpath_var=LD_LIBRARY_PATH
17561
shlibpath_overrides_runpath=yes
17566
sys_lib_dlsearch_path_spec="/usr/lib"
17568
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17570
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17571
*) need_version=no ;;
17573
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17574
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17575
shlibpath_var=LD_LIBRARY_PATH
17576
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17578
openbsd2.[89] | openbsd2.[89].*)
17579
shlibpath_overrides_runpath=no
17582
shlibpath_overrides_runpath=yes
17586
shlibpath_overrides_runpath=yes
17591
libname_spec='$name'
17594
library_names_spec='$libname${shared_ext} $libname.a'
17595
dynamic_linker='OS/2 ld.exe'
17596
shlibpath_var=LIBPATH
17599
osf3* | osf4* | osf5*)
17603
soname_spec='${libname}${release}${shared_ext}$major'
17604
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17605
shlibpath_var=LD_LIBRARY_PATH
17606
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17607
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17614
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17615
soname_spec='${libname}${release}${shared_ext}$major'
17616
shlibpath_var=LD_LIBRARY_PATH
17617
shlibpath_overrides_runpath=yes
17618
hardcode_into_libs=yes
17619
# ldd complains unless libraries are executable
17620
postinstall_cmds='chmod +x $lib'
17625
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17626
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17627
shlibpath_var=LD_LIBRARY_PATH
17628
shlibpath_overrides_runpath=yes
17629
if test "$with_gnu_ld" = yes; then
17637
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17638
soname_spec='${libname}${release}${shared_ext}$major'
17639
shlibpath_var=LD_LIBRARY_PATH
17640
case $host_vendor in
17642
shlibpath_overrides_runpath=no
17644
export_dynamic_flag_spec='${wl}-Blargedynsym'
17645
runpath_var=LD_RUN_PATH
17653
shlibpath_overrides_runpath=no
17654
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17660
if test -d /usr/nec ;then
17662
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17663
soname_spec='$libname${shared_ext}.$major'
17664
shlibpath_var=LD_LIBRARY_PATH
17668
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17669
version_type=freebsd-elf
17672
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17673
soname_spec='${libname}${release}${shared_ext}$major'
17674
shlibpath_var=LD_LIBRARY_PATH
17675
hardcode_into_libs=yes
17676
if test "$with_gnu_ld" = yes; then
17677
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17678
shlibpath_overrides_runpath=no
17680
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17681
shlibpath_overrides_runpath=yes
17684
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17688
sys_lib_dlsearch_path_spec='/usr/lib'
17693
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17694
soname_spec='${libname}${release}${shared_ext}$major'
17695
shlibpath_var=LD_LIBRARY_PATH
17702
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17703
echo "${ECHO_T}$dynamic_linker" >&6
17704
test "$dynamic_linker" = no && can_build_shared=no
17706
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17707
if test "$GCC" = yes; then
17708
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16685
17711
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16686
17712
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16687
17713
hardcode_action_GCJ=
16688
17714
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16689
test -n "$runpath_var GCJ" || \
16690
test "X$hardcode_automatic_GCJ"="Xyes" ; then
17715
test -n "$runpath_var_GCJ" || \
17716
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
16692
17718
# We can hardcode non-existant directories.
16693
17719
if test "$hardcode_direct_GCJ" != no &&
16719
17745
enable_fast_install=needless
16724
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16725
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16726
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16727
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16728
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16729
echo "$as_me:$LINENO: result: yes" >&5
16730
echo "${ECHO_T}yes" >&6
16732
# FIXME - insert some real tests, host_os isn't really good enough
16735
if test -n "$STRIP" ; then
16736
striplib="$STRIP -x"
16737
echo "$as_me:$LINENO: result: yes" >&5
16738
echo "${ECHO_T}yes" >&6
16740
echo "$as_me:$LINENO: result: no" >&5
16741
echo "${ECHO_T}no" >&6
16745
echo "$as_me:$LINENO: result: no" >&5
16746
echo "${ECHO_T}no" >&6
16751
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16752
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16753
library_names_spec=
16754
libname_spec='lib$name'
16758
postuninstall_cmds=
16762
shlibpath_overrides_runpath=unknown
16764
dynamic_linker="$host_os ld.so"
16765
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16766
if test "$GCC" = yes; then
16767
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16768
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16769
# if the path contains ";" then we assume it to be the separator
16770
# otherwise default to the standard path separator (i.e. ":") - it is
16771
# assumed that no part of a normal pathname contains ";" but that should
16772
# okay in the real world where ";" in dirpaths is itself problematic.
16773
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16775
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16778
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16780
need_lib_prefix=unknown
16781
hardcode_into_libs=no
16783
# when you set need_version to no, make sure it does not cause -set_version
16784
# flags to be left without arguments
16785
need_version=unknown
16790
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16791
shlibpath_var=LIBPATH
16793
# AIX 3 has no versioning support, so we append a major version to the name.
16794
soname_spec='${libname}${release}${shared_ext}$major'
16801
hardcode_into_libs=yes
16802
if test "$host_cpu" = ia64; then
16803
# AIX 5 supports IA64
16804
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16805
shlibpath_var=LD_LIBRARY_PATH
16807
# With GCC up to 2.95.x, collect2 would create an import file
16808
# for dependence libraries. The import file would start with
16809
# the line `#! .'. This would cause the generated library to
16810
# depend on `.', always an invalid library. This was fixed in
16811
# development snapshots of GCC prior to 3.0.
16813
aix4 | aix4.[01] | aix4.[01].*)
16814
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16816
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16819
can_build_shared=no
16823
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16824
# soname into executable. Probably we can add versioning support to
16825
# collect2, so additional links can be useful in future.
16826
if test "$aix_use_runtimelinking" = yes; then
16827
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16828
# instead of lib<name>.a to let people know that these are not
16829
# typical AIX shared libraries.
16830
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16832
# We preserve .a as extension for shared libraries through AIX4.2
16833
# and later when we are not doing run time linking.
16834
library_names_spec='${libname}${release}.a $libname.a'
16835
soname_spec='${libname}${release}${shared_ext}$major'
16837
shlibpath_var=LIBPATH
16842
library_names_spec='$libname.ixlibrary $libname.a'
16843
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16844
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'
16848
library_names_spec='${libname}${shared_ext}'
16849
dynamic_linker="$host_os ld.so"
16850
shlibpath_var=LIBRARY_PATH
16856
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16857
soname_spec='${libname}${release}${shared_ext}$major'
16858
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16859
shlibpath_var=LD_LIBRARY_PATH
16860
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16861
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16862
# the default ld.so.conf also contains /usr/contrib/lib and
16863
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16864
# libtool to hard-code these into programs
16867
cygwin* | mingw* | pw32*)
16868
version_type=windows
16873
case $GCC,$host_os in
16874
yes,cygwin* | yes,mingw* | yes,pw32*)
16875
library_names_spec='$libname.dll.a'
16876
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16877
postinstall_cmds='base_file=`basename \${file}`~
16878
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16879
dldir=$destdir/`dirname \$dlpath`~
16880
test -d \$dldir || mkdir -p \$dldir~
16881
$install_prog $dir/$dlname \$dldir/$dlname'
16882
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16883
dlpath=$dir/\$dldll~
16885
shlibpath_overrides_runpath=yes
16889
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16890
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16891
sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16894
# MinGW DLLs use traditional 'lib' prefix
16895
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16896
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16897
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16898
# It is most probably a Windows format PATH printed by
16899
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16900
# path with ; separators, and with drive letters. We can handle the
16901
# drive letters (cygwin fileutils understands them), so leave them,
16902
# especially as we might pass files found there to a mingw objdump,
16903
# which wouldn't understand a cygwinified path. Ahh.
16904
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16906
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16910
# pw32 DLLs use 'pw' prefix rather than 'lib'
16911
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16917
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16920
dynamic_linker='Win32 ld.exe'
16921
# FIXME: first we should search . and the directory the executable is in
16925
darwin* | rhapsody*)
16926
dynamic_linker="$host_os dyld"
16927
version_type=darwin
16930
# FIXME: Relying on posixy $() will cause problems for
16931
# cross-compilation, but unfortunately the echo tests do not
16932
# yet detect zsh echo's removal of \ escapes.
16933
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16934
soname_spec='${libname}${release}${major}$shared_ext'
16935
shlibpath_overrides_runpath=yes
16936
shlibpath_var=DYLD_LIBRARY_PATH
16937
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16938
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16939
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16940
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"`
16942
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16949
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16950
soname_spec='${libname}${release}${shared_ext}$major'
16951
shlibpath_var=LD_LIBRARY_PATH
16959
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16960
version_type=freebsd-$objformat
16961
case $version_type in
16963
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16968
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16972
shlibpath_var=LD_LIBRARY_PATH
16975
shlibpath_overrides_runpath=yes
16977
freebsd3.01* | freebsdelf3.01*)
16978
shlibpath_overrides_runpath=yes
16979
hardcode_into_libs=yes
16982
shlibpath_overrides_runpath=no
16983
hardcode_into_libs=yes
16992
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16993
soname_spec='${libname}${release}${shared_ext}$major'
16994
shlibpath_var=LD_LIBRARY_PATH
16995
hardcode_into_libs=yes
16998
hpux9* | hpux10* | hpux11*)
16999
# Give a soname corresponding to the major version so that dld.sl refuses to
17000
# link against other versions.
17004
case "$host_cpu" in
17007
hardcode_into_libs=yes
17008
dynamic_linker="$host_os dld.so"
17009
shlibpath_var=LD_LIBRARY_PATH
17010
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17011
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17012
soname_spec='${libname}${release}${shared_ext}$major'
17013
if test "X$HPUX_IA64_MODE" = X32; then
17014
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17016
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17018
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17022
hardcode_into_libs=yes
17023
dynamic_linker="$host_os dld.sl"
17024
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17025
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17026
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17027
soname_spec='${libname}${release}${shared_ext}$major'
17028
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17029
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17033
dynamic_linker="$host_os dld.sl"
17034
shlibpath_var=SHLIB_PATH
17035
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17036
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17037
soname_spec='${libname}${release}${shared_ext}$major'
17040
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17041
postinstall_cmds='chmod 555 $lib'
17044
irix5* | irix6* | nonstopux*)
17046
nonstopux*) version_type=nonstopux ;;
17048
if test "$lt_cv_prog_gnu_ld" = yes; then
17056
soname_spec='${libname}${release}${shared_ext}$major'
17057
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17059
irix5* | nonstopux*)
17060
libsuff= shlibsuff=
17063
case $LD in # libtool.m4 will add one of these switches to LD
17064
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17065
libsuff= shlibsuff= libmagic=32-bit;;
17066
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17067
libsuff=32 shlibsuff=N32 libmagic=N32;;
17068
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17069
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17070
*) libsuff= shlibsuff= libmagic=never-match;;
17074
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17075
shlibpath_overrides_runpath=no
17076
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17077
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17078
hardcode_into_libs=yes
17081
# No shared lib support for Linux oldld, aout, or coff.
17082
linux*oldld* | linux*aout* | linux*coff*)
17086
# This must be Linux ELF.
17091
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092
soname_spec='${libname}${release}${shared_ext}$major'
17093
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17094
shlibpath_var=LD_LIBRARY_PATH
17095
shlibpath_overrides_runpath=no
17096
# This implies no fast_install, which is unacceptable.
17097
# Some rework will be needed to allow for fast_install
17098
# before this can be enabled.
17099
hardcode_into_libs=yes
17101
# We used to test for /lib/ld.so.1 and disable shared libraries on
17102
# powerpc, because MkLinux only supported shared libraries with the
17103
# GNU dynamic linker. Since this was broken with cross compilers,
17104
# most powerpc-linux boxes support dynamic linking these days and
17105
# people can always --disable-shared, the test was removed, and we
17106
# assume the GNU/Linux dynamic linker is in use.
17107
dynamic_linker='GNU/Linux ld.so'
17109
# Find out which ABI we are using (multilib Linux x86_64 hack).
17111
case "$host_cpu" in
17112
x86_64*|s390x*|powerpc64*)
17113
echo '#line 17113 "configure"' > conftest.$ac_ext
17114
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17115
(eval $ac_compile) 2>&5
17117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118
(exit $ac_status); }; then
17119
case `/usr/bin/file conftest.$ac_objext` in
17130
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
17131
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17138
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17139
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17140
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17141
dynamic_linker='NetBSD (a.out) ld.so'
17143
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17144
soname_spec='${libname}${release}${shared_ext}$major'
17145
dynamic_linker='NetBSD ld.elf_so'
17147
shlibpath_var=LD_LIBRARY_PATH
17148
shlibpath_overrides_runpath=yes
17149
hardcode_into_libs=yes
17154
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155
shlibpath_var=LD_LIBRARY_PATH
17156
shlibpath_overrides_runpath=yes
17163
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17164
soname_spec='${libname}${release}${shared_ext}$major'
17165
shlibpath_var=LD_LIBRARY_PATH
17166
shlibpath_overrides_runpath=yes
17173
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17174
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17175
shlibpath_var=LD_LIBRARY_PATH
17176
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17178
openbsd2.[89] | openbsd2.[89].*)
17179
shlibpath_overrides_runpath=no
17182
shlibpath_overrides_runpath=yes
17186
shlibpath_overrides_runpath=yes
17191
libname_spec='$name'
17194
library_names_spec='$libname${shared_ext} $libname.a'
17195
dynamic_linker='OS/2 ld.exe'
17196
shlibpath_var=LIBPATH
17199
osf3* | osf4* | osf5*)
17203
soname_spec='${libname}${release}${shared_ext}$major'
17204
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17205
shlibpath_var=LD_LIBRARY_PATH
17206
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17207
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17212
soname_spec='${libname}${release}${shared_ext}$major'
17213
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214
shlibpath_var=LD_LIBRARY_PATH
17221
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222
soname_spec='${libname}${release}${shared_ext}$major'
17223
shlibpath_var=LD_LIBRARY_PATH
17224
shlibpath_overrides_runpath=yes
17225
hardcode_into_libs=yes
17226
# ldd complains unless libraries are executable
17227
postinstall_cmds='chmod +x $lib'
17232
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17233
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17234
shlibpath_var=LD_LIBRARY_PATH
17235
shlibpath_overrides_runpath=yes
17236
if test "$with_gnu_ld" = yes; then
17242
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17244
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17245
soname_spec='${libname}${release}${shared_ext}$major'
17246
shlibpath_var=LD_LIBRARY_PATH
17247
case $host_vendor in
17249
shlibpath_overrides_runpath=no
17251
export_dynamic_flag_spec='${wl}-Blargedynsym'
17252
runpath_var=LD_RUN_PATH
17260
shlibpath_overrides_runpath=no
17261
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17267
if test -d /usr/nec ;then
17269
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17270
soname_spec='$libname${shared_ext}.$major'
17271
shlibpath_var=LD_LIBRARY_PATH
17277
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278
soname_spec='${libname}${release}${shared_ext}$major'
17279
shlibpath_var=LD_LIBRARY_PATH
17286
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17287
echo "${ECHO_T}$dynamic_linker" >&6
17288
test "$dynamic_linker" = no && can_build_shared=no
17290
if test "x$enable_dlopen" != xyes; then
17291
enable_dlopen=unknown
17292
enable_dlopen_self=unknown
17293
enable_dlopen_self_static=unknown
17300
lt_cv_dlopen="load_add_on"
17302
lt_cv_dlopen_self=yes
17306
lt_cv_dlopen="LoadLibrary"
17311
lt_cv_dlopen="dlopen"
17316
# if libdl is installed we need to link against it
17317
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17318
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17319
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17320
echo $ECHO_N "(cached) $ECHO_C" >&6
17322
ac_check_lib_save_LIBS=$LIBS
17324
cat >conftest.$ac_ext <<_ACEOF
17327
cat confdefs.h >>conftest.$ac_ext
17328
cat >>conftest.$ac_ext <<_ACEOF
17329
/* end confdefs.h. */
17331
/* Override any gcc2 internal prototype to avoid an error. */
17335
/* We use char because int might match the return type of a gcc2
17336
builtin and then its argument prototype would still apply. */
17346
rm -f conftest.$ac_objext conftest$ac_exeext
17347
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17348
(eval $ac_link) 2>conftest.er1
17350
grep -v '^ *+' conftest.er1 >conftest.err
17352
cat conftest.err >&5
17353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354
(exit $ac_status); } &&
17355
{ ac_try='test -z "$ac_c_werror_flag"
17356
|| test ! -s conftest.err'
17357
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358
(eval $ac_try) 2>&5
17360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361
(exit $ac_status); }; } &&
17362
{ ac_try='test -s conftest$ac_exeext'
17363
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364
(eval $ac_try) 2>&5
17366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367
(exit $ac_status); }; }; then
17368
ac_cv_lib_dl_dlopen=yes
17370
echo "$as_me: failed program was:" >&5
17371
sed 's/^/| /' conftest.$ac_ext >&5
17373
ac_cv_lib_dl_dlopen=no
17375
rm -f conftest.err conftest.$ac_objext \
17376
conftest$ac_exeext conftest.$ac_ext
17377
LIBS=$ac_check_lib_save_LIBS
17379
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17380
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17381
if test $ac_cv_lib_dl_dlopen = yes; then
17382
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17385
lt_cv_dlopen="dyld"
17387
lt_cv_dlopen_self=yes
17394
echo "$as_me:$LINENO: checking for shl_load" >&5
17395
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17396
if test "${ac_cv_func_shl_load+set}" = set; then
17397
echo $ECHO_N "(cached) $ECHO_C" >&6
17399
cat >conftest.$ac_ext <<_ACEOF
17402
cat confdefs.h >>conftest.$ac_ext
17403
cat >>conftest.$ac_ext <<_ACEOF
17404
/* end confdefs.h. */
17405
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17406
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17407
#define shl_load innocuous_shl_load
17409
/* System header to define __stub macros and hopefully few prototypes,
17410
which can conflict with char shl_load (); below.
17411
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17412
<limits.h> exists even on freestanding compilers. */
17415
# include <limits.h>
17417
# include <assert.h>
17422
/* Override any gcc2 internal prototype to avoid an error. */
17427
/* We use char because int might match the return type of a gcc2
17428
builtin and then its argument prototype would still apply. */
17430
/* The GNU C library defines this for functions which it implements
17431
to always fail with ENOSYS. Some functions are actually named
17432
something starting with __ and the normal name is an alias. */
17433
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17436
char (*f) () = shl_load;
17445
return f != shl_load;
17450
rm -f conftest.$ac_objext conftest$ac_exeext
17451
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17452
(eval $ac_link) 2>conftest.er1
17454
grep -v '^ *+' conftest.er1 >conftest.err
17456
cat conftest.err >&5
17457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458
(exit $ac_status); } &&
17459
{ ac_try='test -z "$ac_c_werror_flag"
17460
|| test ! -s conftest.err'
17461
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462
(eval $ac_try) 2>&5
17464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465
(exit $ac_status); }; } &&
17466
{ ac_try='test -s conftest$ac_exeext'
17467
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468
(eval $ac_try) 2>&5
17470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471
(exit $ac_status); }; }; then
17472
ac_cv_func_shl_load=yes
17474
echo "$as_me: failed program was:" >&5
17475
sed 's/^/| /' conftest.$ac_ext >&5
17477
ac_cv_func_shl_load=no
17479
rm -f conftest.err conftest.$ac_objext \
17480
conftest$ac_exeext conftest.$ac_ext
17482
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17483
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17484
if test $ac_cv_func_shl_load = yes; then
17485
lt_cv_dlopen="shl_load"
17487
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17488
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17489
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17490
echo $ECHO_N "(cached) $ECHO_C" >&6
17492
ac_check_lib_save_LIBS=$LIBS
17494
cat >conftest.$ac_ext <<_ACEOF
17497
cat confdefs.h >>conftest.$ac_ext
17498
cat >>conftest.$ac_ext <<_ACEOF
17499
/* end confdefs.h. */
17501
/* Override any gcc2 internal prototype to avoid an error. */
17505
/* We use char because int might match the return type of a gcc2
17506
builtin and then its argument prototype would still apply. */
17516
rm -f conftest.$ac_objext conftest$ac_exeext
17517
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17518
(eval $ac_link) 2>conftest.er1
17520
grep -v '^ *+' conftest.er1 >conftest.err
17522
cat conftest.err >&5
17523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524
(exit $ac_status); } &&
17525
{ ac_try='test -z "$ac_c_werror_flag"
17526
|| test ! -s conftest.err'
17527
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528
(eval $ac_try) 2>&5
17530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531
(exit $ac_status); }; } &&
17532
{ ac_try='test -s conftest$ac_exeext'
17533
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534
(eval $ac_try) 2>&5
17536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537
(exit $ac_status); }; }; then
17538
ac_cv_lib_dld_shl_load=yes
17540
echo "$as_me: failed program was:" >&5
17541
sed 's/^/| /' conftest.$ac_ext >&5
17543
ac_cv_lib_dld_shl_load=no
17545
rm -f conftest.err conftest.$ac_objext \
17546
conftest$ac_exeext conftest.$ac_ext
17547
LIBS=$ac_check_lib_save_LIBS
17549
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17550
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17551
if test $ac_cv_lib_dld_shl_load = yes; then
17552
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17554
echo "$as_me:$LINENO: checking for dlopen" >&5
17555
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17556
if test "${ac_cv_func_dlopen+set}" = set; then
17557
echo $ECHO_N "(cached) $ECHO_C" >&6
17559
cat >conftest.$ac_ext <<_ACEOF
17562
cat confdefs.h >>conftest.$ac_ext
17563
cat >>conftest.$ac_ext <<_ACEOF
17564
/* end confdefs.h. */
17565
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17566
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17567
#define dlopen innocuous_dlopen
17569
/* System header to define __stub macros and hopefully few prototypes,
17570
which can conflict with char dlopen (); below.
17571
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17572
<limits.h> exists even on freestanding compilers. */
17575
# include <limits.h>
17577
# include <assert.h>
17582
/* Override any gcc2 internal prototype to avoid an error. */
17587
/* We use char because int might match the return type of a gcc2
17588
builtin and then its argument prototype would still apply. */
17590
/* The GNU C library defines this for functions which it implements
17591
to always fail with ENOSYS. Some functions are actually named
17592
something starting with __ and the normal name is an alias. */
17593
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17596
char (*f) () = dlopen;
17605
return f != dlopen;
17610
rm -f conftest.$ac_objext conftest$ac_exeext
17611
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17612
(eval $ac_link) 2>conftest.er1
17614
grep -v '^ *+' conftest.er1 >conftest.err
17616
cat conftest.err >&5
17617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618
(exit $ac_status); } &&
17619
{ ac_try='test -z "$ac_c_werror_flag"
17620
|| test ! -s conftest.err'
17621
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622
(eval $ac_try) 2>&5
17624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625
(exit $ac_status); }; } &&
17626
{ ac_try='test -s conftest$ac_exeext'
17627
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628
(eval $ac_try) 2>&5
17630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631
(exit $ac_status); }; }; then
17632
ac_cv_func_dlopen=yes
17634
echo "$as_me: failed program was:" >&5
17635
sed 's/^/| /' conftest.$ac_ext >&5
17637
ac_cv_func_dlopen=no
17639
rm -f conftest.err conftest.$ac_objext \
17640
conftest$ac_exeext conftest.$ac_ext
17642
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17643
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17644
if test $ac_cv_func_dlopen = yes; then
17645
lt_cv_dlopen="dlopen"
17647
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17648
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17649
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17650
echo $ECHO_N "(cached) $ECHO_C" >&6
17652
ac_check_lib_save_LIBS=$LIBS
17654
cat >conftest.$ac_ext <<_ACEOF
17657
cat confdefs.h >>conftest.$ac_ext
17658
cat >>conftest.$ac_ext <<_ACEOF
17659
/* end confdefs.h. */
17661
/* Override any gcc2 internal prototype to avoid an error. */
17665
/* We use char because int might match the return type of a gcc2
17666
builtin and then its argument prototype would still apply. */
17676
rm -f conftest.$ac_objext conftest$ac_exeext
17677
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17678
(eval $ac_link) 2>conftest.er1
17680
grep -v '^ *+' conftest.er1 >conftest.err
17682
cat conftest.err >&5
17683
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684
(exit $ac_status); } &&
17685
{ ac_try='test -z "$ac_c_werror_flag"
17686
|| test ! -s conftest.err'
17687
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688
(eval $ac_try) 2>&5
17690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691
(exit $ac_status); }; } &&
17692
{ ac_try='test -s conftest$ac_exeext'
17693
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694
(eval $ac_try) 2>&5
17696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697
(exit $ac_status); }; }; then
17698
ac_cv_lib_dl_dlopen=yes
17700
echo "$as_me: failed program was:" >&5
17701
sed 's/^/| /' conftest.$ac_ext >&5
17703
ac_cv_lib_dl_dlopen=no
17705
rm -f conftest.err conftest.$ac_objext \
17706
conftest$ac_exeext conftest.$ac_ext
17707
LIBS=$ac_check_lib_save_LIBS
17709
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17710
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17711
if test $ac_cv_lib_dl_dlopen = yes; then
17712
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17714
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17715
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17716
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17717
echo $ECHO_N "(cached) $ECHO_C" >&6
17719
ac_check_lib_save_LIBS=$LIBS
17720
LIBS="-lsvld $LIBS"
17721
cat >conftest.$ac_ext <<_ACEOF
17724
cat confdefs.h >>conftest.$ac_ext
17725
cat >>conftest.$ac_ext <<_ACEOF
17726
/* end confdefs.h. */
17728
/* Override any gcc2 internal prototype to avoid an error. */
17732
/* We use char because int might match the return type of a gcc2
17733
builtin and then its argument prototype would still apply. */
17743
rm -f conftest.$ac_objext conftest$ac_exeext
17744
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17745
(eval $ac_link) 2>conftest.er1
17747
grep -v '^ *+' conftest.er1 >conftest.err
17749
cat conftest.err >&5
17750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751
(exit $ac_status); } &&
17752
{ ac_try='test -z "$ac_c_werror_flag"
17753
|| test ! -s conftest.err'
17754
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755
(eval $ac_try) 2>&5
17757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758
(exit $ac_status); }; } &&
17759
{ ac_try='test -s conftest$ac_exeext'
17760
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761
(eval $ac_try) 2>&5
17763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764
(exit $ac_status); }; }; then
17765
ac_cv_lib_svld_dlopen=yes
17767
echo "$as_me: failed program was:" >&5
17768
sed 's/^/| /' conftest.$ac_ext >&5
17770
ac_cv_lib_svld_dlopen=no
17772
rm -f conftest.err conftest.$ac_objext \
17773
conftest$ac_exeext conftest.$ac_ext
17774
LIBS=$ac_check_lib_save_LIBS
17776
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17777
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17778
if test $ac_cv_lib_svld_dlopen = yes; then
17779
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17781
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17782
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17783
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17784
echo $ECHO_N "(cached) $ECHO_C" >&6
17786
ac_check_lib_save_LIBS=$LIBS
17788
cat >conftest.$ac_ext <<_ACEOF
17791
cat confdefs.h >>conftest.$ac_ext
17792
cat >>conftest.$ac_ext <<_ACEOF
17793
/* end confdefs.h. */
17795
/* Override any gcc2 internal prototype to avoid an error. */
17799
/* We use char because int might match the return type of a gcc2
17800
builtin and then its argument prototype would still apply. */
17810
rm -f conftest.$ac_objext conftest$ac_exeext
17811
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17812
(eval $ac_link) 2>conftest.er1
17814
grep -v '^ *+' conftest.er1 >conftest.err
17816
cat conftest.err >&5
17817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818
(exit $ac_status); } &&
17819
{ ac_try='test -z "$ac_c_werror_flag"
17820
|| test ! -s conftest.err'
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); }; } &&
17826
{ ac_try='test -s conftest$ac_exeext'
17827
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828
(eval $ac_try) 2>&5
17830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831
(exit $ac_status); }; }; then
17832
ac_cv_lib_dld_dld_link=yes
17834
echo "$as_me: failed program was:" >&5
17835
sed 's/^/| /' conftest.$ac_ext >&5
17837
ac_cv_lib_dld_dld_link=no
17839
rm -f conftest.err conftest.$ac_objext \
17840
conftest$ac_exeext conftest.$ac_ext
17841
LIBS=$ac_check_lib_save_LIBS
17843
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17844
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17845
if test $ac_cv_lib_dld_dld_link = yes; then
17846
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17867
if test "x$lt_cv_dlopen" != xno; then
17873
case $lt_cv_dlopen in
17875
save_CPPFLAGS="$CPPFLAGS"
17876
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17878
save_LDFLAGS="$LDFLAGS"
17879
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17882
LIBS="$lt_cv_dlopen_libs $LIBS"
17884
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17885
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17886
if test "${lt_cv_dlopen_self+set}" = set; then
17887
echo $ECHO_N "(cached) $ECHO_C" >&6
17889
if test "$cross_compiling" = yes; then :
17890
lt_cv_dlopen_self=cross
17892
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17893
lt_status=$lt_dlunknown
17894
cat > conftest.$ac_ext <<EOF
17895
#line 17895 "configure"
17896
#include "confdefs.h"
17905
# define LT_DLGLOBAL RTLD_GLOBAL
17908
# define LT_DLGLOBAL DL_GLOBAL
17910
# define LT_DLGLOBAL 0
17914
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17915
find out it does not work in some platform. */
17916
#ifndef LT_DLLAZY_OR_NOW
17918
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17921
# define LT_DLLAZY_OR_NOW DL_LAZY
17924
# define LT_DLLAZY_OR_NOW RTLD_NOW
17927
# define LT_DLLAZY_OR_NOW DL_NOW
17929
# define LT_DLLAZY_OR_NOW 0
17937
extern "C" void exit (int);
17940
void fnord() { int i=42;}
17943
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17944
int status = $lt_dlunknown;
17948
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17949
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17950
/* dlclose (self); */
17956
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17957
(eval $ac_link) 2>&5
17959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17961
(./conftest; exit; ) 2>/dev/null
17963
case x$lt_status in
17964
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17965
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17966
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17969
# compilation failed
17970
lt_cv_dlopen_self=no
17977
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17978
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17980
if test "x$lt_cv_dlopen_self" = xyes; then
17981
LDFLAGS="$LDFLAGS $link_static_flag"
17982
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17983
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17984
if test "${lt_cv_dlopen_self_static+set}" = set; then
17985
echo $ECHO_N "(cached) $ECHO_C" >&6
17987
if test "$cross_compiling" = yes; then :
17988
lt_cv_dlopen_self_static=cross
17990
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17991
lt_status=$lt_dlunknown
17992
cat > conftest.$ac_ext <<EOF
17993
#line 17993 "configure"
17994
#include "confdefs.h"
18003
# define LT_DLGLOBAL RTLD_GLOBAL
18006
# define LT_DLGLOBAL DL_GLOBAL
18008
# define LT_DLGLOBAL 0
18012
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18013
find out it does not work in some platform. */
18014
#ifndef LT_DLLAZY_OR_NOW
18016
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18019
# define LT_DLLAZY_OR_NOW DL_LAZY
18022
# define LT_DLLAZY_OR_NOW RTLD_NOW
18025
# define LT_DLLAZY_OR_NOW DL_NOW
18027
# define LT_DLLAZY_OR_NOW 0
18035
extern "C" void exit (int);
18038
void fnord() { int i=42;}
18041
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18042
int status = $lt_dlunknown;
18046
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18047
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18048
/* dlclose (self); */
18054
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18055
(eval $ac_link) 2>&5
18057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18059
(./conftest; exit; ) 2>/dev/null
18061
case x$lt_status in
18062
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18063
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18064
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18067
# compilation failed
18068
lt_cv_dlopen_self_static=no
18075
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18076
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18079
CPPFLAGS="$save_CPPFLAGS"
18080
LDFLAGS="$save_LDFLAGS"
18085
case $lt_cv_dlopen_self in
18086
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18087
*) enable_dlopen_self=unknown ;;
18090
case $lt_cv_dlopen_self_static in
18091
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18092
*) enable_dlopen_self_static=unknown ;;
18097
17749
# The else clause should only fire when bootstrapping the
18098
17750
# libtool distribution, otherwise you forgot to ship ltmain.sh
21310
if test -z "$PKG_CONFIG"; then
21311
# Extract the first word of "pkg-config", so it can be a program name with args.
21312
set dummy pkg-config; ac_word=$2
21313
echo "$as_me:$LINENO: checking for $ac_word" >&5
21314
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21315
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21316
echo $ECHO_N "(cached) $ECHO_C" >&6
21318
case $PKG_CONFIG in
21320
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21324
for as_dir in $PATH
21327
test -z "$as_dir" && as_dir=.
21328
for ac_exec_ext in '' $ac_executable_extensions; do
21329
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21330
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21331
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21337
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21341
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21343
if test -n "$PKG_CONFIG"; then
21344
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21345
echo "${ECHO_T}$PKG_CONFIG" >&6
21347
echo "$as_me:$LINENO: result: no" >&5
21348
echo "${ECHO_T}no" >&6
21353
if test "$PKG_CONFIG" = "no" ; then
21354
echo "*** The pkg-config script could not be found. Make sure it is"
21355
echo "*** in your path, or set the PKG_CONFIG environment variable"
21356
echo "*** to the full path to pkg-config."
21357
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21359
PKG_CONFIG_MIN_VERSION=0.9.0
21360
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21361
echo "$as_me:$LINENO: checking for glib-2.0" >&5
21362
echo $ECHO_N "checking for glib-2.0... $ECHO_C" >&6
21364
if $PKG_CONFIG --exists "glib-2.0" ; then
21365
echo "$as_me:$LINENO: result: yes" >&5
21366
echo "${ECHO_T}yes" >&6
21369
echo "$as_me:$LINENO: checking DAEMON_CFLAGS" >&5
21370
echo $ECHO_N "checking DAEMON_CFLAGS... $ECHO_C" >&6
21371
DAEMON_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
21372
echo "$as_me:$LINENO: result: $DAEMON_CFLAGS" >&5
21373
echo "${ECHO_T}$DAEMON_CFLAGS" >&6
21375
echo "$as_me:$LINENO: checking DAEMON_LIBS" >&5
21376
echo $ECHO_N "checking DAEMON_LIBS... $ECHO_C" >&6
21377
DAEMON_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
21378
echo "$as_me:$LINENO: result: $DAEMON_LIBS" >&5
21379
echo "${ECHO_T}$DAEMON_LIBS" >&6
21383
## If we have a custom action on failure, don't print errors, but
21384
## do set a variable so people can do so.
21385
DAEMON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
21386
echo $DAEMON_PKG_ERRORS
21392
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21393
echo "*** See http://www.freedesktop.org/software/pkgconfig"
21397
if test $succeeded = yes; then
21400
{ { echo "$as_me:$LINENO: error: Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
21401
echo "$as_me: error: Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
21402
{ (exit 1); exit 1; }; }
21411
if test -z "$PKG_CONFIG"; then
21412
# Extract the first word of "pkg-config", so it can be a program name with args.
21413
set dummy pkg-config; ac_word=$2
21414
echo "$as_me:$LINENO: checking for $ac_word" >&5
21415
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21416
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21417
echo $ECHO_N "(cached) $ECHO_C" >&6
21419
case $PKG_CONFIG in
21421
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21424
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21425
for as_dir in $PATH
21428
test -z "$as_dir" && as_dir=.
21429
for ac_exec_ext in '' $ac_executable_extensions; do
21430
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21431
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21432
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21438
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21442
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21444
if test -n "$PKG_CONFIG"; then
21445
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21446
echo "${ECHO_T}$PKG_CONFIG" >&6
21448
echo "$as_me:$LINENO: result: no" >&5
21449
echo "${ECHO_T}no" >&6
21454
if test "$PKG_CONFIG" = "no" ; then
21455
echo "*** The pkg-config script could not be found. Make sure it is"
21456
echo "*** in your path, or set the PKG_CONFIG environment variable"
21457
echo "*** to the full path to pkg-config."
21458
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21460
PKG_CONFIG_MIN_VERSION=0.9.0
21461
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21462
echo "$as_me:$LINENO: checking for glib-2.0" >&5
21463
echo $ECHO_N "checking for glib-2.0... $ECHO_C" >&6
21465
if $PKG_CONFIG --exists "glib-2.0" ; then
21466
echo "$as_me:$LINENO: result: yes" >&5
21467
echo "${ECHO_T}yes" >&6
21470
echo "$as_me:$LINENO: checking LIBGAMIN_CFLAGS" >&5
21471
echo $ECHO_N "checking LIBGAMIN_CFLAGS... $ECHO_C" >&6
21472
LIBGAMIN_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
21473
echo "$as_me:$LINENO: result: $LIBGAMIN_CFLAGS" >&5
21474
echo "${ECHO_T}$LIBGAMIN_CFLAGS" >&6
21476
echo "$as_me:$LINENO: checking LIBGAMIN_LIBS" >&5
21477
echo $ECHO_N "checking LIBGAMIN_LIBS... $ECHO_C" >&6
21478
LIBGAMIN_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
21479
echo "$as_me:$LINENO: result: $LIBGAMIN_LIBS" >&5
21480
echo "${ECHO_T}$LIBGAMIN_LIBS" >&6
21484
## If we have a custom action on failure, don't print errors, but
21485
## do set a variable so people can do so.
21486
LIBGAMIN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
21487
echo $LIBGAMIN_PKG_ERRORS
21493
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21494
echo "*** See http://www.freedesktop.org/software/pkgconfig"
21498
if test $succeeded = yes; then
21501
{ { echo "$as_me:$LINENO: error: Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
21502
echo "$as_me: error: Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
21503
{ (exit 1); exit 1; }; }
21512
if test -z "$PKG_CONFIG"; then
21513
# Extract the first word of "pkg-config", so it can be a program name with args.
21514
set dummy pkg-config; ac_word=$2
21515
echo "$as_me:$LINENO: checking for $ac_word" >&5
21516
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21517
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21518
echo $ECHO_N "(cached) $ECHO_C" >&6
21520
case $PKG_CONFIG in
21522
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21525
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21526
for as_dir in $PATH
21529
test -z "$as_dir" && as_dir=.
21530
for ac_exec_ext in '' $ac_executable_extensions; do
21531
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21532
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21533
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21539
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21543
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21545
if test -n "$PKG_CONFIG"; then
21546
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21547
echo "${ECHO_T}$PKG_CONFIG" >&6
21549
echo "$as_me:$LINENO: result: no" >&5
21550
echo "${ECHO_T}no" >&6
21555
if test "$PKG_CONFIG" = "no" ; then
21556
echo "*** The pkg-config script could not be found. Make sure it is"
21557
echo "*** in your path, or set the PKG_CONFIG environment variable"
21558
echo "*** to the full path to pkg-config."
21559
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21561
PKG_CONFIG_MIN_VERSION=0.9.0
21562
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21563
echo "$as_me:$LINENO: checking for glib-2.0" >&5
21564
echo $ECHO_N "checking for glib-2.0... $ECHO_C" >&6
21566
if $PKG_CONFIG --exists "glib-2.0" ; then
21567
echo "$as_me:$LINENO: result: yes" >&5
21568
echo "${ECHO_T}yes" >&6
21571
echo "$as_me:$LINENO: checking TEST_CFLAGS" >&5
21572
echo $ECHO_N "checking TEST_CFLAGS... $ECHO_C" >&6
21573
TEST_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
21574
echo "$as_me:$LINENO: result: $TEST_CFLAGS" >&5
21575
echo "${ECHO_T}$TEST_CFLAGS" >&6
21577
echo "$as_me:$LINENO: checking TEST_LIBS" >&5
21578
echo $ECHO_N "checking TEST_LIBS... $ECHO_C" >&6
21579
TEST_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
21580
echo "$as_me:$LINENO: result: $TEST_LIBS" >&5
21581
echo "${ECHO_T}$TEST_LIBS" >&6
21585
## If we have a custom action on failure, don't print errors, but
21586
## do set a variable so people can do so.
21587
TEST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
21588
echo $TEST_PKG_ERRORS
21594
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21595
echo "*** See http://www.freedesktop.org/software/pkgconfig"
21599
if test $succeeded = yes; then
21602
{ { echo "$as_me:$LINENO: error: Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
21603
echo "$as_me: error: Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
21604
{ (exit 1); exit 1; }; }
21000
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21001
if test -n "$ac_tool_prefix"; then
21002
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21003
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21004
echo "$as_me:$LINENO: checking for $ac_word" >&5
21005
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21006
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21007
echo $ECHO_N "(cached) $ECHO_C" >&6
21009
case $PKG_CONFIG in
21011
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21014
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21015
for as_dir in $PATH
21018
test -z "$as_dir" && as_dir=.
21019
for ac_exec_ext in '' $ac_executable_extensions; do
21020
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21021
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21022
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21031
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21033
if test -n "$PKG_CONFIG"; then
21034
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21035
echo "${ECHO_T}$PKG_CONFIG" >&6
21037
echo "$as_me:$LINENO: result: no" >&5
21038
echo "${ECHO_T}no" >&6
21042
if test -z "$ac_cv_path_PKG_CONFIG"; then
21043
ac_pt_PKG_CONFIG=$PKG_CONFIG
21044
# Extract the first word of "pkg-config", so it can be a program name with args.
21045
set dummy pkg-config; ac_word=$2
21046
echo "$as_me:$LINENO: checking for $ac_word" >&5
21047
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21048
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21049
echo $ECHO_N "(cached) $ECHO_C" >&6
21051
case $ac_pt_PKG_CONFIG in
21053
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21056
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21057
for as_dir in $PATH
21060
test -z "$as_dir" && as_dir=.
21061
for ac_exec_ext in '' $ac_executable_extensions; do
21062
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21063
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21064
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21073
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21075
if test -n "$ac_pt_PKG_CONFIG"; then
21076
echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21077
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
21079
echo "$as_me:$LINENO: result: no" >&5
21080
echo "${ECHO_T}no" >&6
21083
PKG_CONFIG=$ac_pt_PKG_CONFIG
21085
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21089
if test -n "$PKG_CONFIG"; then
21090
_pkg_min_version=0.9.0
21091
echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21092
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
21093
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21094
echo "$as_me:$LINENO: result: yes" >&5
21095
echo "${ECHO_T}yes" >&6
21097
echo "$as_me:$LINENO: result: no" >&5
21098
echo "${ECHO_T}no" >&6
21105
echo "$as_me:$LINENO: checking for DAEMON" >&5
21106
echo $ECHO_N "checking for DAEMON... $ECHO_C" >&6
21108
if test -n "$PKG_CONFIG"; then
21109
if test -n "$DAEMON_CFLAGS"; then
21110
pkg_cv_DAEMON_CFLAGS="$DAEMON_CFLAGS"
21112
if test -n "$PKG_CONFIG" && \
21113
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
21114
($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
21116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117
(exit $ac_status); }; then
21118
pkg_cv_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
21126
if test -n "$PKG_CONFIG"; then
21127
if test -n "$DAEMON_LIBS"; then
21128
pkg_cv_DAEMON_LIBS="$DAEMON_LIBS"
21130
if test -n "$PKG_CONFIG" && \
21131
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
21132
($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
21134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135
(exit $ac_status); }; then
21136
pkg_cv_DAEMON_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
21147
if test $pkg_failed = yes; then
21149
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21150
_pkg_short_errors_supported=yes
21152
_pkg_short_errors_supported=no
21154
if test $_pkg_short_errors_supported = yes; then
21155
DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
21157
DAEMON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
21159
# Put the nasty error message in config.log where it belongs
21160
echo "$DAEMON_PKG_ERRORS" >&5
21162
{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
21166
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21167
installed software in a non-standard prefix.
21169
Alternatively, you may set the environment variables DAEMON_CFLAGS
21170
and DAEMON_LIBS to avoid the need to call pkg-config.
21171
See the pkg-config man page for more details.
21173
echo "$as_me: error: Package requirements (glib-2.0) were not met:
21177
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21178
installed software in a non-standard prefix.
21180
Alternatively, you may set the environment variables DAEMON_CFLAGS
21181
and DAEMON_LIBS to avoid the need to call pkg-config.
21182
See the pkg-config man page for more details.
21184
{ (exit 1); exit 1; }; }
21185
elif test $pkg_failed = untried; then
21186
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21187
is in your PATH or set the PKG_CONFIG environment variable to the full
21188
path to pkg-config.
21190
Alternatively, you may set the environment variables DAEMON_CFLAGS
21191
and DAEMON_LIBS to avoid the need to call pkg-config.
21192
See the pkg-config man page for more details.
21194
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21195
See \`config.log' for more details." >&5
21196
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21197
is in your PATH or set the PKG_CONFIG environment variable to the full
21198
path to pkg-config.
21200
Alternatively, you may set the environment variables DAEMON_CFLAGS
21201
and DAEMON_LIBS to avoid the need to call pkg-config.
21202
See the pkg-config man page for more details.
21204
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21205
See \`config.log' for more details." >&2;}
21206
{ (exit 1); exit 1; }; }
21208
DAEMON_CFLAGS=$pkg_cv_DAEMON_CFLAGS
21209
DAEMON_LIBS=$pkg_cv_DAEMON_LIBS
21210
echo "$as_me:$LINENO: result: yes" >&5
21211
echo "${ECHO_T}yes" >&6
21219
echo "$as_me:$LINENO: checking for LIBGAMIN" >&5
21220
echo $ECHO_N "checking for LIBGAMIN... $ECHO_C" >&6
21222
if test -n "$PKG_CONFIG"; then
21223
if test -n "$LIBGAMIN_CFLAGS"; then
21224
pkg_cv_LIBGAMIN_CFLAGS="$LIBGAMIN_CFLAGS"
21226
if test -n "$PKG_CONFIG" && \
21227
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
21228
($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
21230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231
(exit $ac_status); }; then
21232
pkg_cv_LIBGAMIN_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
21240
if test -n "$PKG_CONFIG"; then
21241
if test -n "$LIBGAMIN_LIBS"; then
21242
pkg_cv_LIBGAMIN_LIBS="$LIBGAMIN_LIBS"
21244
if test -n "$PKG_CONFIG" && \
21245
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
21246
($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
21248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249
(exit $ac_status); }; then
21250
pkg_cv_LIBGAMIN_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
21261
if test $pkg_failed = yes; then
21263
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21264
_pkg_short_errors_supported=yes
21266
_pkg_short_errors_supported=no
21268
if test $_pkg_short_errors_supported = yes; then
21269
LIBGAMIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
21271
LIBGAMIN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
21273
# Put the nasty error message in config.log where it belongs
21274
echo "$LIBGAMIN_PKG_ERRORS" >&5
21276
{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
21278
$LIBGAMIN_PKG_ERRORS
21280
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21281
installed software in a non-standard prefix.
21283
Alternatively, you may set the environment variables LIBGAMIN_CFLAGS
21284
and LIBGAMIN_LIBS to avoid the need to call pkg-config.
21285
See the pkg-config man page for more details.
21287
echo "$as_me: error: Package requirements (glib-2.0) were not met:
21289
$LIBGAMIN_PKG_ERRORS
21291
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21292
installed software in a non-standard prefix.
21294
Alternatively, you may set the environment variables LIBGAMIN_CFLAGS
21295
and LIBGAMIN_LIBS to avoid the need to call pkg-config.
21296
See the pkg-config man page for more details.
21298
{ (exit 1); exit 1; }; }
21299
elif test $pkg_failed = untried; then
21300
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21301
is in your PATH or set the PKG_CONFIG environment variable to the full
21302
path to pkg-config.
21304
Alternatively, you may set the environment variables LIBGAMIN_CFLAGS
21305
and LIBGAMIN_LIBS to avoid the need to call pkg-config.
21306
See the pkg-config man page for more details.
21308
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21309
See \`config.log' for more details." >&5
21310
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21311
is in your PATH or set the PKG_CONFIG environment variable to the full
21312
path to pkg-config.
21314
Alternatively, you may set the environment variables LIBGAMIN_CFLAGS
21315
and LIBGAMIN_LIBS to avoid the need to call pkg-config.
21316
See the pkg-config man page for more details.
21318
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21319
See \`config.log' for more details." >&2;}
21320
{ (exit 1); exit 1; }; }
21322
LIBGAMIN_CFLAGS=$pkg_cv_LIBGAMIN_CFLAGS
21323
LIBGAMIN_LIBS=$pkg_cv_LIBGAMIN_LIBS
21324
echo "$as_me:$LINENO: result: yes" >&5
21325
echo "${ECHO_T}yes" >&6
21333
echo "$as_me:$LINENO: checking for TEST" >&5
21334
echo $ECHO_N "checking for TEST... $ECHO_C" >&6
21336
if test -n "$PKG_CONFIG"; then
21337
if test -n "$TEST_CFLAGS"; then
21338
pkg_cv_TEST_CFLAGS="$TEST_CFLAGS"
21340
if test -n "$PKG_CONFIG" && \
21341
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
21342
($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
21344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345
(exit $ac_status); }; then
21346
pkg_cv_TEST_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
21354
if test -n "$PKG_CONFIG"; then
21355
if test -n "$TEST_LIBS"; then
21356
pkg_cv_TEST_LIBS="$TEST_LIBS"
21358
if test -n "$PKG_CONFIG" && \
21359
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
21360
($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
21362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363
(exit $ac_status); }; then
21364
pkg_cv_TEST_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
21375
if test $pkg_failed = yes; then
21377
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21378
_pkg_short_errors_supported=yes
21380
_pkg_short_errors_supported=no
21382
if test $_pkg_short_errors_supported = yes; then
21383
TEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
21385
TEST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
21387
# Put the nasty error message in config.log where it belongs
21388
echo "$TEST_PKG_ERRORS" >&5
21390
{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
21394
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21395
installed software in a non-standard prefix.
21397
Alternatively, you may set the environment variables TEST_CFLAGS
21398
and TEST_LIBS to avoid the need to call pkg-config.
21399
See the pkg-config man page for more details.
21401
echo "$as_me: error: Package requirements (glib-2.0) were not met:
21405
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21406
installed software in a non-standard prefix.
21408
Alternatively, you may set the environment variables TEST_CFLAGS
21409
and TEST_LIBS to avoid the need to call pkg-config.
21410
See the pkg-config man page for more details.
21412
{ (exit 1); exit 1; }; }
21413
elif test $pkg_failed = untried; then
21414
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21415
is in your PATH or set the PKG_CONFIG environment variable to the full
21416
path to pkg-config.
21418
Alternatively, you may set the environment variables TEST_CFLAGS
21419
and TEST_LIBS to avoid the need to call pkg-config.
21420
See the pkg-config man page for more details.
21422
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21423
See \`config.log' for more details." >&5
21424
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21425
is in your PATH or set the PKG_CONFIG environment variable to the full
21426
path to pkg-config.
21428
Alternatively, you may set the environment variables TEST_CFLAGS
21429
and TEST_LIBS to avoid the need to call pkg-config.
21430
See the pkg-config man page for more details.
21432
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21433
See \`config.log' for more details." >&2;}
21434
{ (exit 1); exit 1; }; }
21436
TEST_CFLAGS=$pkg_cv_TEST_CFLAGS
21437
TEST_LIBS=$pkg_cv_TEST_LIBS
21438
echo "$as_me:$LINENO: result: yes" >&5
21439
echo "${ECHO_T}yes" >&6
21612
21445
# Check whether --enable-more-warnings or --disable-more-warnings was given.
21613
21446
if test "${enable_more_warnings+set}" = set; then
21614
21447
enableval="$enable_more_warnings"
21615
set_more_warnings="$enableval"
21448
set_more_warnings="${enableval}"
21618
if test -f $srcdir/CVSVERSION; then
21619
is_cvs_version=true
21620
set_more_warnings=yes
21622
set_more_warnings=no
21451
# if test -d $srcdir/CVS; then
21452
warnings_default=yes
21454
# warnings_default=no
21626
echo "$as_me:$LINENO: checking for more warnings" >&5
21627
echo $ECHO_N "checking for more warnings... $ECHO_C" >&6
21628
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
21629
echo "$as_me:$LINENO: result: yes" >&5
21630
echo "${ECHO_T}yes" >&6
21633
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
21638
for option in -Wsign-promo -Wno-sign-compare; do
21639
SAVE_CFLAGS="$CFLAGS"
21640
CFLAGS="$option $CFLAGS"
21641
echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
21642
echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6
21643
cat >conftest.$ac_ext <<_ACEOF
21646
cat confdefs.h >>conftest.$ac_ext
21647
cat >>conftest.$ac_ext <<_ACEOF
21648
/* end confdefs.h. */
21658
rm -f conftest.$ac_objext
21659
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21660
(eval $ac_compile) 2>conftest.er1
21662
grep -v '^ *+' conftest.er1 >conftest.err
21664
cat conftest.err >&5
21665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666
(exit $ac_status); } &&
21667
{ ac_try='test -z "$ac_c_werror_flag"
21668
|| test ! -s conftest.err'
21669
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670
(eval $ac_try) 2>&5
21672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673
(exit $ac_status); }; } &&
21674
{ ac_try='test -s conftest.$ac_objext'
21675
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676
(eval $ac_try) 2>&5
21678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679
(exit $ac_status); }; }; then
21682
echo "$as_me: failed program was:" >&5
21683
sed 's/^/| /' conftest.$ac_ext >&5
21687
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21688
if test $has_option = no; then
21689
CFLAGS="$SAVE_CFLAGS"
21691
echo "$as_me:$LINENO: result: $has_option" >&5
21692
echo "${ECHO_T}$has_option" >&6
21698
echo "$as_me:$LINENO: result: no" >&5
21699
echo "${ECHO_T}no" >&6
21702
21459
# Check whether --enable-debug or --disable-debug was given.
21703
21460
if test "${enable_debug+set}" = set; then
21704
21461
enableval="$enable_debug"
21705
case "${enableval}" in
21708
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
21709
echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
21710
{ (exit 1); exit 1; }; } ;;
21467
if test x$debug = xyes ; then
21717
21469
cat >>confdefs.h <<\_ACEOF
21718
#define GAMIN_DEBUG test x$debug = xyes
21470
#define GAMIN_DEBUG
21723
21477
if test x$debug = xyes; then
22016
22026
backends="${backends}, inotify"
22029
if test x$os = xlinux-gnu; then
22030
# Check whether --enable-dnotify or --disable-dnotify was given.
22031
if test "${enable_dnotify+set}" = set; then
22032
enableval="$enable_dnotify"
22033
dnotify="${enableval}"
22038
if test x$dnotify = xyes; then
22040
elif test x$dnotify = xno; then
22042
elif test x$dnotify != xtrue; then
22043
{ { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-dnotify" >&5
22044
echo "$as_me: error: bad value ${enableval} for --disable-dnotify" >&2;}
22045
{ (exit 1); exit 1; }; }
22049
if test x$dnotify = xfalse; then
22050
if test x$inotify = xtrue; then
22051
echo "When using inotify, gamin sometimes needs dnotify as a fallback"
22052
echo "so dnotify support will be enabled"
22059
if test x$dnotify = xtrue; then
22060
ENABLE_DNOTIFY_TRUE=
22061
ENABLE_DNOTIFY_FALSE='#'
22063
ENABLE_DNOTIFY_TRUE='#'
22064
ENABLE_DNOTIFY_FALSE=
22068
if test x$dnotify = xtrue; then
22070
cat >>confdefs.h <<\_ACEOF
22071
#define ENABLE_DNOTIFY 1
22074
backends="${backends}, dnotify"
22077
if test x$os != xBogusOS; then
22078
echo "$as_me:$LINENO: checking for kevent" >&5
22079
echo $ECHO_N "checking for kevent... $ECHO_C" >&6
22080
if test "${ac_cv_func_kevent+set}" = set; then
22081
echo $ECHO_N "(cached) $ECHO_C" >&6
22083
cat >conftest.$ac_ext <<_ACEOF
22086
cat confdefs.h >>conftest.$ac_ext
22087
cat >>conftest.$ac_ext <<_ACEOF
22088
/* end confdefs.h. */
22089
/* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
22090
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22091
#define kevent innocuous_kevent
22093
/* System header to define __stub macros and hopefully few prototypes,
22094
which can conflict with char kevent (); below.
22095
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22096
<limits.h> exists even on freestanding compilers. */
22099
# include <limits.h>
22101
# include <assert.h>
22106
/* Override any gcc2 internal prototype to avoid an error. */
22111
/* We use char because int might match the return type of a gcc2
22112
builtin and then its argument prototype would still apply. */
22114
/* The GNU C library defines this for functions which it implements
22115
to always fail with ENOSYS. Some functions are actually named
22116
something starting with __ and the normal name is an alias. */
22117
#if defined (__stub_kevent) || defined (__stub___kevent)
22120
char (*f) () = kevent;
22129
return f != kevent;
22134
rm -f conftest.$ac_objext conftest$ac_exeext
22135
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22136
(eval $ac_link) 2>conftest.er1
22138
grep -v '^ *+' conftest.er1 >conftest.err
22140
cat conftest.err >&5
22141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142
(exit $ac_status); } &&
22143
{ ac_try='test -z "$ac_c_werror_flag"
22144
|| test ! -s conftest.err'
22145
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22146
(eval $ac_try) 2>&5
22148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149
(exit $ac_status); }; } &&
22150
{ ac_try='test -s conftest$ac_exeext'
22151
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22152
(eval $ac_try) 2>&5
22154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155
(exit $ac_status); }; }; then
22156
ac_cv_func_kevent=yes
22158
echo "$as_me: failed program was:" >&5
22159
sed 's/^/| /' conftest.$ac_ext >&5
22161
ac_cv_func_kevent=no
22163
rm -f conftest.err conftest.$ac_objext \
22164
conftest$ac_exeext conftest.$ac_ext
22166
echo "$as_me:$LINENO: result: $ac_cv_func_kevent" >&5
22167
echo "${ECHO_T}$ac_cv_func_kevent" >&6
22168
if test $ac_cv_func_kevent = yes; then
22172
if test x$have_kevent = x1 ; then
22173
# Check whether --enable-kqueue or --disable-kqueue was given.
22174
if test "${enable_kqueue+set}" = set; then
22175
enableval="$enable_kqueue"
22176
kqueue="${enableval}"
22181
if test x$kqueue = xyes; then
22183
elif test x$kqueue = xno; then
22185
elif test x$kqueue != xtrue; then
22186
{ { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-kqueue" >&5
22187
echo "$as_me: error: bad value ${enableval} for --disable-kqueue" >&2;}
22188
{ (exit 1); exit 1; }; }
22195
if test x$kqueue = xtrue; then
22196
ENABLE_KQUEUE_TRUE=
22197
ENABLE_KQUEUE_FALSE='#'
22199
ENABLE_KQUEUE_TRUE='#'
22200
ENABLE_KQUEUE_FALSE=
22204
if test x$kqueue = xtrue; then
22206
for ac_header in sys/event.h
22208
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22209
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22210
echo "$as_me:$LINENO: checking for $ac_header" >&5
22211
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22212
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22213
echo $ECHO_N "(cached) $ECHO_C" >&6
22215
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22216
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22218
# Is the header compilable?
22219
echo "$as_me:$LINENO: checking $ac_header usability" >&5
22220
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22221
cat >conftest.$ac_ext <<_ACEOF
22224
cat confdefs.h >>conftest.$ac_ext
22225
cat >>conftest.$ac_ext <<_ACEOF
22226
/* end confdefs.h. */
22227
$ac_includes_default
22228
#include <$ac_header>
22230
rm -f conftest.$ac_objext
22231
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22232
(eval $ac_compile) 2>conftest.er1
22234
grep -v '^ *+' conftest.er1 >conftest.err
22236
cat conftest.err >&5
22237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238
(exit $ac_status); } &&
22239
{ ac_try='test -z "$ac_c_werror_flag"
22240
|| test ! -s conftest.err'
22241
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22242
(eval $ac_try) 2>&5
22244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245
(exit $ac_status); }; } &&
22246
{ ac_try='test -s conftest.$ac_objext'
22247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248
(eval $ac_try) 2>&5
22250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251
(exit $ac_status); }; }; then
22252
ac_header_compiler=yes
22254
echo "$as_me: failed program was:" >&5
22255
sed 's/^/| /' conftest.$ac_ext >&5
22257
ac_header_compiler=no
22259
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22260
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22261
echo "${ECHO_T}$ac_header_compiler" >&6
22263
# Is the header present?
22264
echo "$as_me:$LINENO: checking $ac_header presence" >&5
22265
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22266
cat >conftest.$ac_ext <<_ACEOF
22269
cat confdefs.h >>conftest.$ac_ext
22270
cat >>conftest.$ac_ext <<_ACEOF
22271
/* end confdefs.h. */
22272
#include <$ac_header>
22274
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22275
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22277
grep -v '^ *+' conftest.er1 >conftest.err
22279
cat conftest.err >&5
22280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281
(exit $ac_status); } >/dev/null; then
22282
if test -s conftest.err; then
22283
ac_cpp_err=$ac_c_preproc_warn_flag
22284
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22291
if test -z "$ac_cpp_err"; then
22292
ac_header_preproc=yes
22294
echo "$as_me: failed program was:" >&5
22295
sed 's/^/| /' conftest.$ac_ext >&5
22297
ac_header_preproc=no
22299
rm -f conftest.err conftest.$ac_ext
22300
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22301
echo "${ECHO_T}$ac_header_preproc" >&6
22303
# So? What about this header?
22304
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22306
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22307
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22308
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22309
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22310
ac_header_preproc=yes
22313
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22314
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22315
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22316
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22317
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22318
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22319
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22320
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22321
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22322
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22323
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22324
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22327
## ------------------------------------------ ##
22328
## Report this to the AC_PACKAGE_NAME lists. ##
22329
## ------------------------------------------ ##
22332
sed "s/^/$as_me: WARNING: /" >&2
22335
echo "$as_me:$LINENO: checking for $ac_header" >&5
22336
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22337
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22338
echo $ECHO_N "(cached) $ECHO_C" >&6
22340
eval "$as_ac_Header=\$ac_header_preproc"
22342
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22343
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22346
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22347
cat >>confdefs.h <<_ACEOF
22348
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22356
cat >>confdefs.h <<\_ACEOF
22357
#define ENABLE_KQUEUE 1
22360
backends="${backends}, kqueue"
22364
# Check whether --with-threads or --without-threads was given.
22365
if test "${with_threads+set}" = set; then
22366
withval="$with_threads"
22370
if test "$with_threads" = "no" ; then
22371
echo Disabling multithreaded support
22373
echo Enabling multithreaded support
22375
if test "${ac_cv_header_pthread_h+set}" = set; then
22376
echo "$as_me:$LINENO: checking for pthread.h" >&5
22377
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
22378
if test "${ac_cv_header_pthread_h+set}" = set; then
22379
echo $ECHO_N "(cached) $ECHO_C" >&6
22381
echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22382
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
22384
# Is the header compilable?
22385
echo "$as_me:$LINENO: checking pthread.h usability" >&5
22386
echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
22387
cat >conftest.$ac_ext <<_ACEOF
22390
cat confdefs.h >>conftest.$ac_ext
22391
cat >>conftest.$ac_ext <<_ACEOF
22392
/* end confdefs.h. */
22393
$ac_includes_default
22394
#include <pthread.h>
22396
rm -f conftest.$ac_objext
22397
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22398
(eval $ac_compile) 2>conftest.er1
22400
grep -v '^ *+' conftest.er1 >conftest.err
22402
cat conftest.err >&5
22403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404
(exit $ac_status); } &&
22405
{ ac_try='test -z "$ac_c_werror_flag"
22406
|| test ! -s conftest.err'
22407
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22408
(eval $ac_try) 2>&5
22410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411
(exit $ac_status); }; } &&
22412
{ ac_try='test -s conftest.$ac_objext'
22413
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22414
(eval $ac_try) 2>&5
22416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417
(exit $ac_status); }; }; then
22418
ac_header_compiler=yes
22420
echo "$as_me: failed program was:" >&5
22421
sed 's/^/| /' conftest.$ac_ext >&5
22423
ac_header_compiler=no
22425
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22426
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22427
echo "${ECHO_T}$ac_header_compiler" >&6
22429
# Is the header present?
22430
echo "$as_me:$LINENO: checking pthread.h presence" >&5
22431
echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
22432
cat >conftest.$ac_ext <<_ACEOF
22435
cat confdefs.h >>conftest.$ac_ext
22436
cat >>conftest.$ac_ext <<_ACEOF
22437
/* end confdefs.h. */
22438
#include <pthread.h>
22440
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22441
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22443
grep -v '^ *+' conftest.er1 >conftest.err
22445
cat conftest.err >&5
22446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447
(exit $ac_status); } >/dev/null; then
22448
if test -s conftest.err; then
22449
ac_cpp_err=$ac_c_preproc_warn_flag
22450
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22457
if test -z "$ac_cpp_err"; then
22458
ac_header_preproc=yes
22460
echo "$as_me: failed program was:" >&5
22461
sed 's/^/| /' conftest.$ac_ext >&5
22463
ac_header_preproc=no
22465
rm -f conftest.err conftest.$ac_ext
22466
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22467
echo "${ECHO_T}$ac_header_preproc" >&6
22469
# So? What about this header?
22470
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22472
{ echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
22473
echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22474
{ echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
22475
echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
22476
ac_header_preproc=yes
22479
{ echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
22480
echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
22481
{ echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
22482
echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
22483
{ echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
22484
echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
22485
{ echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
22486
echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
22487
{ echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
22488
echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
22489
{ echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
22490
echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
22493
## ------------------------------------------ ##
22494
## Report this to the AC_PACKAGE_NAME lists. ##
22495
## ------------------------------------------ ##
22498
sed "s/^/$as_me: WARNING: /" >&2
22501
echo "$as_me:$LINENO: checking for pthread.h" >&5
22502
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
22503
if test "${ac_cv_header_pthread_h+set}" = set; then
22504
echo $ECHO_N "(cached) $ECHO_C" >&6
22506
ac_cv_header_pthread_h=$ac_header_preproc
22508
echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22509
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
22512
if test $ac_cv_header_pthread_h = yes; then
22513
echo "$as_me:$LINENO: checking for pthread_mutexattr_settype in -lpthread" >&5
22514
echo $ECHO_N "checking for pthread_mutexattr_settype in -lpthread... $ECHO_C" >&6
22515
if test "${ac_cv_lib_pthread_pthread_mutexattr_settype+set}" = set; then
22516
echo $ECHO_N "(cached) $ECHO_C" >&6
22518
ac_check_lib_save_LIBS=$LIBS
22519
LIBS="-lpthread $LIBS"
22520
cat >conftest.$ac_ext <<_ACEOF
22523
cat confdefs.h >>conftest.$ac_ext
22524
cat >>conftest.$ac_ext <<_ACEOF
22525
/* end confdefs.h. */
22527
/* Override any gcc2 internal prototype to avoid an error. */
22531
/* We use char because int might match the return type of a gcc2
22532
builtin and then its argument prototype would still apply. */
22533
char pthread_mutexattr_settype ();
22537
pthread_mutexattr_settype ();
22542
rm -f conftest.$ac_objext conftest$ac_exeext
22543
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22544
(eval $ac_link) 2>conftest.er1
22546
grep -v '^ *+' conftest.er1 >conftest.err
22548
cat conftest.err >&5
22549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550
(exit $ac_status); } &&
22551
{ ac_try='test -z "$ac_c_werror_flag"
22552
|| test ! -s conftest.err'
22553
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22554
(eval $ac_try) 2>&5
22556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557
(exit $ac_status); }; } &&
22558
{ ac_try='test -s conftest$ac_exeext'
22559
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560
(eval $ac_try) 2>&5
22562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563
(exit $ac_status); }; }; then
22564
ac_cv_lib_pthread_pthread_mutexattr_settype=yes
22566
echo "$as_me: failed program was:" >&5
22567
sed 's/^/| /' conftest.$ac_ext >&5
22569
ac_cv_lib_pthread_pthread_mutexattr_settype=no
22571
rm -f conftest.err conftest.$ac_objext \
22572
conftest$ac_exeext conftest.$ac_ext
22573
LIBS=$ac_check_lib_save_LIBS
22575
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutexattr_settype" >&5
22576
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutexattr_settype" >&6
22577
if test $ac_cv_lib_pthread_pthread_mutexattr_settype = yes; then
22579
THREAD_LIBS="-lpthread"
22581
cat >>confdefs.h <<\_ACEOF
22582
#define HAVE_LIBPTHREAD
22586
cat >>confdefs.h <<\_ACEOF
22587
#define HAVE_PTHREAD_H
22598
if test x$os = xlinux-gnu -a x$WITH_THREADS = x1 ; then
22599
if test "${CC}" = "gcc" ; then
22600
echo Use weak symbols !
22607
# It may just be gnu but it could also be gnu0.3, etc.
22608
# if echo x$os | grep -E -e '^xgnu[0-9]*\.?[0-9]*$' >/dev/null;
22609
# won't work as m4 eats the []s.
22610
if case x$os in xgnu*) true;; *) false;; esac; then
22611
# Check whether --enable-kqueue or --disable-kqueue was given.
22612
if test "${enable_kqueue+set}" = set; then
22613
enableval="$enable_kqueue"
22614
hurd_mach_notify="${enableval}"
22616
hurd_mach_notify=true
22619
if test x$hurd_mach_notify = xyes; then
22620
hurd_mach_notify=true
22621
elif test x$hurd_mach_notify = xno; then
22622
hurd_mach_notify=false
22623
elif test x$hurd_mach_notify != xtrue; then
22624
{ { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-hurd_mach_notify" >&5
22625
echo "$as_me: error: bad value ${enableval} for --disable-hurd_mach_notify" >&2;}
22626
{ (exit 1); exit 1; }; }
22632
if test x$hurd_mach_notify = xtrue; then
22633
ENABLE_HURD_MACH_NOTIFY_TRUE=
22634
ENABLE_HURD_MACH_NOTIFY_FALSE='#'
22636
ENABLE_HURD_MACH_NOTIFY_TRUE='#'
22637
ENABLE_HURD_MACH_NOTIFY_FALSE=
22641
if test x$hurd_mach_notify = xtrue; then
22642
# <hurd/ports.h> requires _GNU_SOURCE.
22643
old_CPPFLAGS="$CPPFLAGS"
22644
CPPFLAGS="$old_CPPFLAGS -D_GNU_SOURCE"
22646
for ac_header in hurd/ports.h
22648
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22649
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22650
echo "$as_me:$LINENO: checking for $ac_header" >&5
22651
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22652
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22653
echo $ECHO_N "(cached) $ECHO_C" >&6
22655
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22656
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22658
# Is the header compilable?
22659
echo "$as_me:$LINENO: checking $ac_header usability" >&5
22660
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22661
cat >conftest.$ac_ext <<_ACEOF
22664
cat confdefs.h >>conftest.$ac_ext
22665
cat >>conftest.$ac_ext <<_ACEOF
22666
/* end confdefs.h. */
22667
$ac_includes_default
22668
#include <$ac_header>
22670
rm -f conftest.$ac_objext
22671
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22672
(eval $ac_compile) 2>conftest.er1
22674
grep -v '^ *+' conftest.er1 >conftest.err
22676
cat conftest.err >&5
22677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678
(exit $ac_status); } &&
22679
{ ac_try='test -z "$ac_c_werror_flag"
22680
|| test ! -s conftest.err'
22681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22682
(eval $ac_try) 2>&5
22684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685
(exit $ac_status); }; } &&
22686
{ ac_try='test -s conftest.$ac_objext'
22687
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688
(eval $ac_try) 2>&5
22690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691
(exit $ac_status); }; }; then
22692
ac_header_compiler=yes
22694
echo "$as_me: failed program was:" >&5
22695
sed 's/^/| /' conftest.$ac_ext >&5
22697
ac_header_compiler=no
22699
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22700
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22701
echo "${ECHO_T}$ac_header_compiler" >&6
22703
# Is the header present?
22704
echo "$as_me:$LINENO: checking $ac_header presence" >&5
22705
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22706
cat >conftest.$ac_ext <<_ACEOF
22709
cat confdefs.h >>conftest.$ac_ext
22710
cat >>conftest.$ac_ext <<_ACEOF
22711
/* end confdefs.h. */
22712
#include <$ac_header>
22714
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22715
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22717
grep -v '^ *+' conftest.er1 >conftest.err
22719
cat conftest.err >&5
22720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721
(exit $ac_status); } >/dev/null; then
22722
if test -s conftest.err; then
22723
ac_cpp_err=$ac_c_preproc_warn_flag
22724
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22731
if test -z "$ac_cpp_err"; then
22732
ac_header_preproc=yes
22734
echo "$as_me: failed program was:" >&5
22735
sed 's/^/| /' conftest.$ac_ext >&5
22737
ac_header_preproc=no
22739
rm -f conftest.err conftest.$ac_ext
22740
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22741
echo "${ECHO_T}$ac_header_preproc" >&6
22743
# So? What about this header?
22744
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22746
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22747
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22748
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22749
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22750
ac_header_preproc=yes
22753
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22754
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22755
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22756
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22757
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22758
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22759
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22760
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22761
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22762
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22763
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22764
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22767
## ------------------------------------------ ##
22768
## Report this to the AC_PACKAGE_NAME lists. ##
22769
## ------------------------------------------ ##
22772
sed "s/^/$as_me: WARNING: /" >&2
22775
echo "$as_me:$LINENO: checking for $ac_header" >&5
22776
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22777
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22778
echo $ECHO_N "(cached) $ECHO_C" >&6
22780
eval "$as_ac_Header=\$ac_header_preproc"
22782
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22783
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22786
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22787
cat >>confdefs.h <<_ACEOF
22788
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22792
{ { echo "$as_me:$LINENO: error: <hurd/ports.h> not found but required to build hurd_mach_notify backend." >&5
22793
echo "$as_me: error: <hurd/ports.h> not found but required to build hurd_mach_notify backend." >&2;}
22794
{ (exit 1); exit 1; }; }
22799
CPPFLAGS="$old_CPPFLAGS"
22801
echo "$as_me:$LINENO: checking for ports_create_port in -lports" >&5
22802
echo $ECHO_N "checking for ports_create_port in -lports... $ECHO_C" >&6
22803
if test "${ac_cv_lib_ports_ports_create_port+set}" = set; then
22804
echo $ECHO_N "(cached) $ECHO_C" >&6
22806
ac_check_lib_save_LIBS=$LIBS
22807
LIBS="-lports -lthreads $LIBS"
22808
cat >conftest.$ac_ext <<_ACEOF
22811
cat confdefs.h >>conftest.$ac_ext
22812
cat >>conftest.$ac_ext <<_ACEOF
22813
/* end confdefs.h. */
22815
/* Override any gcc2 internal prototype to avoid an error. */
22819
/* We use char because int might match the return type of a gcc2
22820
builtin and then its argument prototype would still apply. */
22821
char ports_create_port ();
22825
ports_create_port ();
22830
rm -f conftest.$ac_objext conftest$ac_exeext
22831
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22832
(eval $ac_link) 2>conftest.er1
22834
grep -v '^ *+' conftest.er1 >conftest.err
22836
cat conftest.err >&5
22837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838
(exit $ac_status); } &&
22839
{ ac_try='test -z "$ac_c_werror_flag"
22840
|| test ! -s conftest.err'
22841
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22842
(eval $ac_try) 2>&5
22844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845
(exit $ac_status); }; } &&
22846
{ ac_try='test -s conftest$ac_exeext'
22847
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22848
(eval $ac_try) 2>&5
22850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851
(exit $ac_status); }; }; then
22852
ac_cv_lib_ports_ports_create_port=yes
22854
echo "$as_me: failed program was:" >&5
22855
sed 's/^/| /' conftest.$ac_ext >&5
22857
ac_cv_lib_ports_ports_create_port=no
22859
rm -f conftest.err conftest.$ac_objext \
22860
conftest$ac_exeext conftest.$ac_ext
22861
LIBS=$ac_check_lib_save_LIBS
22863
echo "$as_me:$LINENO: result: $ac_cv_lib_ports_ports_create_port" >&5
22864
echo "${ECHO_T}$ac_cv_lib_ports_ports_create_port" >&6
22865
if test $ac_cv_lib_ports_ports_create_port = yes; then
22868
{ { echo "$as_me:$LINENO: error: libports not found but required to build hurd_mach_notify backend." >&5
22869
echo "$as_me: error: libports not found but required to build hurd_mach_notify backend." >&2;}
22870
{ (exit 1); exit 1; }; }
22874
if test -n "$ac_tool_prefix"; then
22875
# Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
22876
set dummy ${ac_tool_prefix}mig; ac_word=$2
22877
echo "$as_me:$LINENO: checking for $ac_word" >&5
22878
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22879
if test "${ac_cv_prog_MIG+set}" = set; then
22880
echo $ECHO_N "(cached) $ECHO_C" >&6
22882
if test -n "$MIG"; then
22883
ac_cv_prog_MIG="$MIG" # Let the user override the test.
22885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22886
for as_dir in $PATH
22889
test -z "$as_dir" && as_dir=.
22890
for ac_exec_ext in '' $ac_executable_extensions; do
22891
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22892
ac_cv_prog_MIG="${ac_tool_prefix}mig"
22893
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22901
MIG=$ac_cv_prog_MIG
22902
if test -n "$MIG"; then
22903
echo "$as_me:$LINENO: result: $MIG" >&5
22904
echo "${ECHO_T}$MIG" >&6
22906
echo "$as_me:$LINENO: result: no" >&5
22907
echo "${ECHO_T}no" >&6
22911
if test -z "$ac_cv_prog_MIG"; then
22913
# Extract the first word of "mig", so it can be a program name with args.
22914
set dummy mig; ac_word=$2
22915
echo "$as_me:$LINENO: checking for $ac_word" >&5
22916
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22917
if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
22918
echo $ECHO_N "(cached) $ECHO_C" >&6
22920
if test -n "$ac_ct_MIG"; then
22921
ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
22923
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22924
for as_dir in $PATH
22927
test -z "$as_dir" && as_dir=.
22928
for ac_exec_ext in '' $ac_executable_extensions; do
22929
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22930
ac_cv_prog_ac_ct_MIG="mig"
22931
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22937
test -z "$ac_cv_prog_ac_ct_MIG" && ac_cv_prog_ac_ct_MIG="{ { echo "$as_me:$LINENO: error: mig not found but required to build hurd_mach_notify backend." >&5
22938
echo "$as_me: error: mig not found but required to build hurd_mach_notify backend." >&2;}
22939
{ (exit 1); exit 1; }; }"
22942
ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
22943
if test -n "$ac_ct_MIG"; then
22944
echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
22945
echo "${ECHO_T}$ac_ct_MIG" >&6
22947
echo "$as_me:$LINENO: result: no" >&5
22948
echo "${ECHO_T}no" >&6
22953
MIG="$ac_cv_prog_MIG"
22959
cat >>confdefs.h <<\_ACEOF
22960
#define ENABLE_HURD_MACH_NOTIFY 1
22963
backends="${backends}, hurd_mach_notify"
22019
22966
echo "$as_me:$LINENO: checking for ISO C99 varargs macros in C" >&5
22020
22967
echo $ECHO_N "checking for ISO C99 varargs macros in C... $ECHO_C" >&6
22021
22968
cat >conftest.$ac_ext <<_ACEOF