From 6f667500c1f163a7fd9cb15945078c3fef622ab1 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Fri, 17 Jan 2003 00:21:57 -0500 Subject: [svn-r6293] Purpose: Another patch Description: libtool will fail if pgcc compiler is used. Now apply the patch if gcc is NOT used. Platforms tested: Tested only on eirene because I am sure it is correct and am trying to beat the daily test checkout. --- configure | 8 +++++--- configure.in | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 0b1b659..9f5cbaf 100755 --- a/configure +++ b/configure @@ -7284,9 +7284,11 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtool' case $host_os in linux*) - # If an Intel compiler is used, it needs to set $wl to use "-Wl," - if $CC -V 2>&1 | grep '^Intel(R)' > /dev/null ; then - echo 'fix $wl in' $ofile + # If gcc is not used, need to set $wl to use "-Wl," + if $CC -v 2>&1 | grep '^gcc' > /dev/null ; then + : using gcc + else + echo 'fix $wl in' $ofile ed - $ofile < /dev/null /^wl=""/s//wl="-Wl,"/ w diff --git a/configure.in b/configure.in index aeaaa39..7b29de6 100644 --- a/configure.in +++ b/configure.in @@ -281,9 +281,11 @@ AC_PROG_LIBTOOL dnl Post processing to patch up some deficiencies in libtool case $host_os in linux*) - # If an Intel compiler is used, it needs to set $wl to use "-Wl," - if $CC -V 2>&1 | grep '^Intel(R)' > /dev/null ; then - echo 'fix $wl in' $ofile + # If gcc is not used, need to set $wl to use "-Wl," + if $CC -v 2>&1 | grep '^gcc' > /dev/null ; then + : using gcc + else + echo 'fix $wl in' $ofile ed - $ofile < /dev/null /^wl=""/s//wl="-Wl,"/ w -- cgit v0.12