+2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Bruno Haible <bruno@clisp.org>
+
+ Make gnulib-tool work with native 'sed' on AIX.
+ * gnulib-tool (sed_noop): New variable.
+ (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
+ func_add_or_update, func_create_testdir): Use it to initialize sed
+ script variables.
+ Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
+
2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
Bruno Haible <bruno@clisp.org>
alias sed='sed --posix'
fi
+# sed_noop is a sed expression that does nothing.
+# An empty expression does not with the native 'sed' on AIX 6.1.
+sed_noop='s,x,x,'
+
# func_usage
# outputs to stdout the --help usage message.
func_usage ()
if test "$libtool" = true; then
libext=la
perhapsLT=LT
- sed_eliminate_LDFLAGS=
+ sed_eliminate_LDFLAGS="$sed_noop"
else
libext=a
perhapsLT=
# situation. Turn check_PROGRAMS into noinst_PROGRAMS.
sed_transform_check_PROGRAMS='s,check_PROGRAMS,noinst_PROGRAMS,g'
else
- sed_transform_check_PROGRAMS=
+ sed_transform_check_PROGRAMS="$sed_noop"
fi
echo "## DO NOT EDIT! GENERATED AUTOMATICALLY!"
echo "## Process this file with automake to produce Makefile.in."
{
if test "$libtool" = true; then
libext=la
- sed_eliminate_LDFLAGS=
+ sed_eliminate_LDFLAGS="$sed_noop"
else
libext=a
sed_eliminate_LDFLAGS='/^lib_LDFLAGS[ ]*+=/d'
# situation. Turn check_PROGRAMS into noinst_PROGRAMS.
sed_transform_check_PROGRAMS='s,check_PROGRAMS,noinst_PROGRAMS,g'
else
- sed_transform_check_PROGRAMS=
+ sed_transform_check_PROGRAMS="$sed_noop"
fi
testsbase_inverse=`echo "$testsbase" | sed -e 's,/$,,' | sed -e 's,[^/][^/]*,..,g'`
echo "## DO NOT EDIT! GENERATED AUTOMATICALLY!"
ba
}'
else
- sed_replace_build_aux=
+ sed_replace_build_aux="$sed_noop"
fi
func_emit_initmacro_start $macro_prefix
echo " gl_source_base='$sourcebase'"
ba
}'
else
- sed_replace_build_aux=
+ sed_replace_build_aux="$sed_noop"
fi
func_emit_initmacro_start $macro_prefix
echo "gl_source_base='$sourcebase'"