diff options
author | Bruno Haible <bruno@clisp.org> | 2005-03-22 15:14:00 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:12:26 +0200 |
commit | d3f4fe8d456e843fec4eae4bc1f3d66ef98fbf33 (patch) | |
tree | 83e67790ebe6b4d9f8e14fb93a219308aabab493 /m4 | |
parent | e9258ec43c77e90c3df3a9705c4d0fb850b93c62 (diff) | |
download | external_gettext-d3f4fe8d456e843fec4eae4bc1f3d66ef98fbf33.zip external_gettext-d3f4fe8d456e843fec4eae4bc1f3d66ef98fbf33.tar.gz external_gettext-d3f4fe8d456e843fec4eae4bc1f3d66ef98fbf33.tar.bz2 |
Move config/m4/fixautomake.m4 to m4/fixautomake.m4.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/fixautomake.m4 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/m4/fixautomake.m4 b/m4/fixautomake.m4 new file mode 100644 index 0000000..be6bf8b --- /dev/null +++ b/m4/fixautomake.m4 @@ -0,0 +1,27 @@ +# fixautomake.m4 serial 3 (gettext-0.13) +dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Bruno Haible + +dnl Fix unesthetic build commands generated by automake. +AC_DEFUN([FIX_MAKEFILE_COMPILE], [ + sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp + mv $ac_file.tmp $ac_file +]) + +dnl Fix an automake-1.5-1.7.2 bug: the distrib rule is omitted. +AC_DEFUN([FIX_MAKEFILE_DISTRIB], [ + sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp + mv $ac_file.tmp $ac_file +]) + +dnl Fix an automake-1.5-1.7.2 bug: all info files are erased by "make". +AC_DEFUN([FIX_MAKEFILE_INFO], [ + sed -e '/@rm -f \$''@/d' < $ac_file > $ac_file.tmp + mv $ac_file.tmp $ac_file +]) |