]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Temporarily reset the test language to C just before calling
authorOssama Othman <othman@cs.wustl.edu>
Mon, 6 Dec 1999 01:50:10 +0000 (01:50 +0000)
committerOssama Othman <ossama@debian.org>
Mon, 6 Dec 1999 01:50:10 +0000 (01:50 +0000)
AC_OBJEXT and AC_EXEEXT and then restore the previous one when
done, instead of doing an AC_BEFORE(...AC_LANG_CPLUSPLUS...).  A
warning would always occur anyway because AC_PROG_CXX calls
AC_LANG_CPLUSPLUS.

libtool.m4

index e46ec05c12a0480ad2f9a9aaae5eff7e9eef39ff..ed3e0508f1aa401f29cb21149a64d2456607efaa 100644 (file)
@@ -56,13 +56,6 @@ exec 5>>./config.log
 
 AC_DEFUN(AC_LIBTOOL_SETUP,
 [AC_PREREQ(2.13)dnl
-# Autoconf's AC_EXEEXT macro only works for C compilers.  AC_EXEEXT
-# gets confused and thinks that an extension such as the C++ source
-# file extenstion ".C" is an executable file extension, which screws
-# up the libtool configuration.
-AC_BEFORE([AC_LIBTOOL_SETUP],[AC_LANG_CPLUSPLUS])
-AC_BEFORE([AC_LIBTOOL_SETUP],[AC_LANG_FORTRAN77])
-#
 AC_REQUIRE([AC_ENABLE_SHARED])dnl
 AC_REQUIRE([AC_ENABLE_STATIC])dnl
 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
@@ -74,8 +67,12 @@ AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
 AC_REQUIRE([AC_PROG_NM])dnl
 AC_REQUIRE([AC_PROG_LN_S])dnl
 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
+# Autoconf's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
+AC_LANG_SAVE
+AC_LANG_C
 AC_REQUIRE([AC_OBJEXT])dnl
 AC_REQUIRE([AC_EXEEXT])dnl
+AC_LANG_RESTORE
 dnl
 
 # Only perform the check for file, if the check method requires it