X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=libtool.m4;h=aa7e62a0e678a891270a91d03bfb64db021a93bf;hb=e2d46a8c2cf62913e7676a0e01b7e2eb415f9a47;hp=324676aab3f11abcf7d3bd51ea61f47dbaf3d908;hpb=469b781cfb777bb37eeefbc2614adb35b4d3c199;p=deliverable%2Fbinutils-gdb.git diff --git a/libtool.m4 b/libtool.m4 index 324676aab3..aa7e62a0e6 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -536,8 +536,15 @@ cygwin* | mingw* |pw32*) darwin* | rhapsody*) lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` + lt_cv_file_magic_cmd='/usr/bin/file -L' + case "$host_os" in + rhapsody* | darwin1.[012]) + lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' + ;; + *) # Darwin 1.3 on + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' + ;; + esac ;; freebsd* ) @@ -590,7 +597,7 @@ irix5* | irix6*) # This must be Linux ELF. linux-gnu*) case $host_cpu in - alpha* | i*86 | powerpc* | sparc* | ia64* ) + alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) lt_cv_deplibs_check_method=pass_all ;; *) # glibc up to 2.1.1 does not perform some relocations on ARM @@ -601,12 +608,10 @@ linux-gnu*) netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - [lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'] + [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'] else - [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'] + [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'] fi - lt_cv_file_magic_cmd='/usr/bin/file -L' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; newsos6) @@ -631,6 +636,10 @@ solaris*) lt_cv_file_magic_test_file=/lib/libc.so ;; +[sysv5uw[78]* | sysv4*uw2*)] + lt_cv_deplibs_check_method=pass_all + ;; + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) case $host_vendor in ncr)