]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (lt_cv_deplibs_check_method, freebsd): Do not depend
authorAlexandre Oliva <aoliva@lsd.ic.unicamp.br>
Mon, 10 Jul 2000 06:09:13 +0000 (06:09 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 10 Jul 2000 06:09:13 +0000 (06:09 +0000)
on $version_type; check for ELF support as in other BSDs.

ChangeLog
libtool.m4

index e95f3c8032fa87a81cb21f5c5f023ad548184d24..9f0828f28f399a7529fe5e4b9b9e42f8264a62dc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-07-10  Alexandre Oliva  <aoliva@lsd.ic.unicamp.br>
 
+       * libtool.m4 (lt_cv_deplibs_check_method, freebsd): Do not depend
+       on $version_type; check for ELF support as in other BSDs.
+
        * libtool.m4 (AC_LIBTOOL_GCJ): Require either AC_PROG_GCJ or
        AM_PROG_GCJ.
        (AC_PROG_LIBTOOL): Change internal comments to dnl, so that they
index 8501515cad8e75bdfbd873c92492e1033e3a6e95..6c92985e2bda5190c37c05c06b818c6b3ad2dd06 100644 (file)
@@ -529,11 +529,7 @@ cygwin* | mingw*)
   ;;
 
 freebsd* )
-  case "$version_type" in
-  freebsd-elf*)
-    lt_cv_deplibs_check_method=pass_all
-    ;;
-  *)
+  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
     case "$host_cpu" in
     i*86 )
       changequote(,)dnl
@@ -543,8 +539,9 @@ freebsd* )
       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
       ;;
     esac
-    ;;
-  esac
+  else
+    lt_cv_deplibs_check_method=pass_all
+  fi
   ;;
 
 gnu*)