From: Albert Chin-A-Young Date: Wed, 29 Jan 2003 04:57:52 +0000 (+0000) Subject: * libtool.m4: Allow compiler variable, CC, CXX, etc. to X-Git-Tag: release-1-5~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7a29495574015dadaddde610a49c9e65bc499a1;p=thirdparty%2Flibtool.git * libtool.m4: Allow compiler variable, CC, CXX, etc. to be a program name with arguments. Original version stripped arguments for CC. --- diff --git a/ChangeLog b/ChangeLog index 70392296b..81ca13da1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-01-28 Albert Chin-A-Young + + * libtool.m4: Allow compiler variable, CC, CXX, etc. to + be a program name with arguments. Original version stripped + arguments for CC. + 2003-01-28 Charles Wilson * ltmain.in: add code for a binary wrapper diff --git a/libtool.m4 b/libtool.m4 index 04d54e7ca..bf2e2687c 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -240,8 +240,7 @@ AC_DEFUN([_LT_AC_SYS_COMPILER], LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. -set dummy $CC -compiler="[$]2" +compiler=$CC ])# _LT_AC_SYS_COMPILER @@ -2541,8 +2540,7 @@ _LT_AC_SYS_COMPILER # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${CXX-"c++"} -set dummy $CC -compiler="[$]2" +compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` @@ -3510,8 +3508,7 @@ _LT_AC_SYS_COMPILER # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${F77-"f77"} -set dummy $CC -compiler="[$]2" +compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` @@ -3590,8 +3587,7 @@ _LT_AC_SYS_COMPILER # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${GCJ-"gcj"} -set dummy $CC -compiler="[$]2" +compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC # GCJ did not exist at the time GCC didn't implicitly link libc in. @@ -3646,8 +3642,7 @@ _LT_AC_SYS_COMPILER # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${RC-"windres"} -set dummy $CC -compiler="[$]2" +compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes