From 6926ab15140402fa5d8e64341b498e0dbd285208 Mon Sep 17 00:00:00 2001 From: "Matthew D. Langston" Date: Thu, 27 May 1999 08:21:27 +0000 Subject: [PATCH] Translate the ":" character to a "_", which allows checking for member functions in C++ libraries. --- ChangeLog | 5 +++++ acgeneral.m4 | 2 +- lib/autoconf/general.m4 | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c29944cf..e12b6188 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-05-27 Matthew D. Langston + + * acgeneral.m4 (AC_CHECK_LIB): Translate the ":" character to a + "_", which allows checking for member functions in C++ libraries. + 1995-05-25 H.J. Lu * config.guess (dummy): Changed to $dummy. diff --git a/acgeneral.m4 b/acgeneral.m4 index d51d26a1..4e0eaedb 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -1564,7 +1564,7 @@ dnl Use a cache variable name containing both the library and function name, dnl because the test really is for library $1 defining function $2, not dnl just for library $1. Separate tests with the same $1 and different $2s dnl may have different results. -ac_lib_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'` +ac_lib_var=`echo $1['_']$2 | sed 'y%./+-:%__p__%'` AC_CACHE_VAL(ac_cv_lib_$ac_lib_var, [ac_save_LIBS="$LIBS" LIBS="-l$1 $5 $LIBS" diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index d51d26a1..4e0eaedb 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -1564,7 +1564,7 @@ dnl Use a cache variable name containing both the library and function name, dnl because the test really is for library $1 defining function $2, not dnl just for library $1. Separate tests with the same $1 and different $2s dnl may have different results. -ac_lib_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'` +ac_lib_var=`echo $1['_']$2 | sed 'y%./+-:%__p__%'` AC_CACHE_VAL(ac_cv_lib_$ac_lib_var, [ac_save_LIBS="$LIBS" LIBS="-l$1 $5 $LIBS"