From 493296171c0c7e50f8ea33f5bbeb492128edf3f0 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Mon, 28 Mar 2005 09:33:57 +0000 Subject: [PATCH] * m4/libtool.m4 (AC_LIBTOOL_LANG_GCJ_CONFIG, AC_LIBTOOL_LANG_RC_CONFIG): Set $cc_basename. --- ChangeLog | 5 +++++ libtool.m4 | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9f5f8eccf..ab13e5544 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-03-28 Ralf Wildenhues + + * m4/libtool.m4 (AC_LIBTOOL_LANG_GCJ_CONFIG, AC_LIBTOOL_LANG_RC_CONFIG): + Set $cc_basename. + 2005-05-22 Ralf Wildenhues * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): Move linux entry to diff --git a/libtool.m4 b/libtool.m4 index 076a08d90..bb189307c 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -3816,6 +3816,8 @@ lt_save_CC="$CC" CC=${GCJ-"gcj"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC +cc_basename=`$echo "X$compiler" \ + | $Xsed -e 's%.*/%%;s%^[ ]*\([^ ]*\).*$%\1%'` # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no @@ -3871,6 +3873,8 @@ lt_save_CC="$CC" CC=${RC-"windres"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC +cc_basename=`$echo "X$compiler" \ + | $Xsed -e 's%.*/%%;s%^[ ]*\([^ ]*\).*$%\1%'` _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes AC_LIBTOOL_CONFIG($1) -- 2.47.3