]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltdl.m4, ltcf-c.sh, libtool.m4: Use $ac_ext and $ac_objext
authorGary V. Vaughan <gary@gnu.org>
Sat, 11 Nov 2000 13:42:59 +0000 (13:42 +0000)
committerGary V. Vaughan <gary@gnu.org>
Sat, 11 Nov 2000 13:42:59 +0000 (13:42 +0000)
respectively for conftest sources and objects.
Reported by Carlo Wood <carlo@alinoe.com>

ChangeLog
libtool.m4
ltcf-c.sh
ltdl.m4

index f255564ecad1f8baef77e1e93e3b618d92e1bbef..fd7128f722a20fc5531097c891d390dfc0f526de 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
-2000-11-12  Gary V. Vaughan  <gvv@techie.com>
+2000-11-11  Gary V. Vaughan  <gvv@techie.com>
+
+       * ltdl.m4, ltcf-c.sh, libtool.m4: Use $ac_ext and $ac_objext
+       respectively for conftest sources and objects.
+       Reported by Carlo Wood <carlo@alinoe.com>
 
        * doc/fdl.texi: New file.  The license for distributing the
        libtool manual.
index ece3c54c15ef3e3d995a77f49c38621a080e12a4..dfcf75801332de5c8a5770b3035b1254e2c25ae4 100644 (file)
@@ -143,7 +143,7 @@ case "$host" in
   # Find out which ABI we are using.
   echo '[#]line __oline__ "configure"' > conftest.$ac_ext
   if AC_TRY_EVAL(ac_compile); then
-    case "`/usr/bin/file conftest.o`" in
+    case "`/usr/bin/file conftest.$ac_objext`" in
     *32-bit*)
       LD="${LD-ld} -32"
       ;;
index 5dda45bee09708f07446f3312605ea1dc75e58d7..f766c5bc8ae79ce4649ba02717b8076b6f24bc3f 100644 (file)
--- a/ltcf-c.sh
+++ b/ltcf-c.sh
@@ -665,7 +665,7 @@ if test "$enable_shared" = yes && test "$with_gcc" = yes; then
        cat conftest.err 1>&5
        soname=conftest
        lib=conftest
-       libobjs=conftest.o
+       libobjs=conftest.$ac_objext
        deplibs=
        wl=$ac_cv_prog_cc_wl
        compiler_flags=-v
diff --git a/ltdl.m4 b/ltdl.m4
index a2bcb46aef47a19d2b3891fea45d9b2cf0c09dd6..bc78d60719b8cd83f63be3d1251f9afd5edf01d3 100644 (file)
--- a/ltdl.m4
+++ b/ltdl.m4
@@ -270,16 +270,16 @@ EOF
       # Make sure that we snagged all the symbols we need.
       if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
        if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
-         cat <<EOF > conftest.c
+         cat <<EOF > conftest.$ac_ext
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 EOF
          # Now generate the symbol file.
-         eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
+         eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.$ac_ext'
 
-         cat <<EOF >> conftest.c
+         cat <<EOF >> conftest.$ac_ext
 #if defined (__STDC__) && __STDC__
 # define lt_ptr_t void *
 #else
@@ -297,8 +297,8 @@ lt_preloaded_symbols[] =
 changequote([,])dnl
 {
 EOF
-       sed 's/^. \(.*\) \(.*\)$/  {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
-       cat <<\EOF >> conftest.c
+       sed 's/^. \(.*\) \(.*\)$/  {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.$ac_ext
+       cat <<\EOF >> conftest.$ac_ext
   {0, (lt_ptr_t) 0}
 };
 
@@ -316,7 +316,7 @@ EOF
            ac_pipe_works=yes
          else
            echo "configure: failed program was:" >&AC_FD_CC
-           cat conftest.c >&AC_FD_CC
+           cat conftest.$ac_ext >&AC_FD_CC
          fi
          LIBS="$ac_save_LIBS"
          CFLAGS="$ac_save_CFLAGS"
@@ -331,7 +331,7 @@ EOF
     fi
   else
     echo "$progname: failed program was:" >&AC_FD_CC
-    cat conftest.c >&AC_FD_CC
+    cat conftest.$ac_ext >&AC_FD_CC
   fi
   rm -rf conftest* conftst*
 
@@ -385,7 +385,7 @@ if AC_TRY_EVAL(ac_compile); then
   fi
 else
   echo "configure: failed program was:" >&AC_FD_CC
-  cat conftest.c >&AC_FD_CC
+  cat conftest.$ac_ext >&AC_FD_CC
 fi
 rm -rf conftest*
 ])