Translate the ":" character to a "_", which allows checking for member

functions in C++ libraries.
This commit is contained in:
Matthew D. Langston 1999-05-27 08:21:27 +00:00
parent d571a354b0
commit 6926ab1514
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
1999-05-27 Matthew D. Langston <langston@SLAC.Stanford.EDU>
* 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 <hjl@gnu.org>
* config.guess (dummy): Changed to $dummy.

View File

@ -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"

View File

@ -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"