1 # fixautomake.m4 serial 3 (gettext-0.13)
2 dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
3 dnl This file is free software, distributed under the terms of the GNU
4 dnl General Public License. As a special exception to the GNU General
5 dnl Public License, this file may be distributed as part of a program
6 dnl that contains a configuration script generated by Autoconf, under
7 dnl the same distribution terms as the rest of that program.
11 dnl Fix unesthetic build commands generated by automake.
12 AC_DEFUN([FIX_MAKEFILE_COMPILE], [
13 sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
14 mv $ac_file.tmp $ac_file
17 dnl Fix an automake-1.5-1.7.2 bug: the distrib rule is omitted.
18 AC_DEFUN([FIX_MAKEFILE_DISTRIB], [
19 sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
20 mv $ac_file.tmp $ac_file
23 dnl Fix an automake-1.5-1.7.2 bug: all info files are erased by "make".
24 AC_DEFUN([FIX_MAKEFILE_INFO], [
25 sed -e '/@rm -f \$''@/d' < $ac_file > $ac_file.tmp
26 mv $ac_file.tmp $ac_file