]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (_LT_AC_LTCONFIG_HACK): with_gcc is only useful in
authorGary V. Vaughan <gary@gnu.org>
Thu, 7 Sep 2000 20:14:45 +0000 (20:14 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 7 Sep 2000 20:14:45 +0000 (20:14 +0000)
ltmain.sh as it has not yet been set in libtool.m4.  Use
$ac_cv_prog_gcc instead.

ChangeLog
libtool.m4

index 59999411506b04cee4fe1e3cdd65ba030b822e5c..0da2bc730f03dc047bf6c43df7d8743a14142199 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2000-09-07  Gary V. Vaughan  <gvv@techie.com>
 
+       * libtool.m4 (_LT_AC_LTCONFIG_HACK): with_gcc is only useful in
+       ltmain.sh as it has not yet been set in libtool.m4.  Use
+       $ac_cv_prog_gcc instead.
+
        * doc/PLATFORMS: Updated.
 
        * configure.in (AC_PROG_AWK): Removed -- no longer required by
index 83132848d8a81bf68ccef686d97c894755b22d2b..5d6acaf856d99f67c830a27e133a5b9a70ed1bfa 100644 (file)
@@ -722,7 +722,7 @@ fi
 
 ## FIXME: this should be a separate macro
 ##
-if test "$with_gcc" = yes; then
+if test "$ac_cv_prog_gcc" = yes; then
   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
   AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
   echo "int some_variable = 0;" > conftest.c
@@ -798,7 +798,7 @@ cygwin* | mingw*)
   # FIXME: the MSVC++ port hasn't been tested in a loooong time
   # When not using gcc, we currently assume that we are using
   # Microsoft Visual C++.
-  if test "$with_gcc" != yes; then
+  if test "$ac_cv_prog_gcc" != yes; then
     with_gnu_ld=no
   fi
   ;;
@@ -1001,7 +1001,7 @@ else
     # Note: this linker hardcodes the directories in LIBPATH if there
     # are no directories specified by -L.
     hardcode_minus_L=yes
-    if test "$with_gcc" = yes && test -z "$link_static_flag"; then
+    if test "$ac_cv_prog_gcc" = yes && test -z "$link_static_flag"; then
       # Neither direct hardcoding nor static linking is supported with a
       # broken collect2.
       hardcode_direct=unsupported
@@ -1011,7 +1011,7 @@ else
   aix4*)
     hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
     hardcode_libdir_separator=':'
-    if test "$with_gcc" = yes; then
+    if test "$ac_cv_prog_gcc" = yes; then
       collect2name=`${CC} -print-prog-name=collect2`
       if test -f "$collect2name" && \
         strings "$collect2name" | grep resolve_lib_name >/dev/null
@@ -1113,7 +1113,7 @@ else
     ;;
 
   irix5* | irix6*)
-    if test "$with_gcc" = yes; then
+    if test "$ac_cv_prog_gcc" = yes; then
       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     else
       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
@@ -1150,7 +1150,7 @@ else
     ;;
 
   osf3*)
-    if test "$with_gcc" = yes; then
+    if test "$ac_cv_prog_gcc" = yes; then
       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     else
@@ -1162,7 +1162,7 @@ else
     ;;
 
   osf4* | osf5*)       # as osf3* with the addition of -msym flag
-    if test "$with_gcc" = yes; then
+    if test "$ac_cv_prog_gcc" = yes; then
       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     else
@@ -1413,7 +1413,7 @@ cygwin* | mingw*)
   need_version=no
   need_lib_prefix=no
 changequote(,)dnl
-  if test "$with_gcc" = yes; then
+  if test "$ac_cv_prog_gcc" = yes; then
     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
   else
     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
@@ -1863,7 +1863,7 @@ elif test "$shlibpath_overrides_runpath" = yes ||
 fi
 
 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
-if test "$with_gcc" = yes; then
+if test "$ac_cv_prog_gcc" = yes; then
   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 fi
 
@@ -2129,7 +2129,7 @@ AR_FLAGS=$lt_AR_FLAGS
 CC=$lt_CC
 
 # Is the compiler the GNU C compiler?
-with_gcc=$with_gcc
+with_gcc=$ac_cv_prog_gcc
 
 # The linker used to build libraries.
 LD=$lt_LD