+2010-10-12 Gary V. Vaughan <gary@gnu.org>
+
+ gnulib-tool: transform hard-coded libgnu.a to $libname.l?a
+ * gnulib-tool (func_emit_lib_Makefile_am): transform hard-coded
+ `libgnu.a' in Makefile.am snippets to be either `$libname.a' or
+ `$libname.la', depending on whether --libtool/--no-libtool options
+ were given.
+
2010-10-12 Sam Steingold <sds@gnu.org>
Gary V. Vaughan <gary@gnu.org>
echo
uses_subdirs=
{
+ if test false = "$libtool"; then
+ sed_transform_libgnu_a="s, libgnu\\.a, $libname.a,g"
+ else
+ sed_transform_libgnu_a="s, libgnu\\.a, $libname.la,g"
+ fi
for module in $modules; do
func_verify_nontests_module
if test -n "$module"; then
-e 's,lib_\([A-Z][A-Z]*\),'"${libname}_${libext}"'_\1,g' \
-e 's,lib%_LIBRARIES,lib_LIBRARIES,g' \
-e 's,lib%_LTLIBRARIES,lib_LTLIBRARIES,g' \
+ -e "$sed_transform_libgnu_a" \
-e "$sed_transform_check_PROGRAMS"
if test "$module" = 'alloca'; then
echo "${libname}_${libext}_LIBADD += @${perhapsLT}ALLOCA@"