1 # fixautomake.m4 serial 8 (gettext-0.18)
2 dnl Copyright (C) 2002-2003, 2006, 2009 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 an automake-1.5-1.11 bug: the distrib rule is omitted.
12 AC_DEFUN([FIX_MAKEFILE_DISTRIB], [
13 sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
14 mv $ac_file.tmp $ac_file
17 dnl Fix an automake-1.9-1.11 bug: the distrib rule is not extensible.
18 dnl Insert a invocation of the distdir1 target inside the distdir commands,
19 dnl after $(distdir) has been erased and re-created.
20 AC_DEFUN([FIX_MAKEFILE_TOPDIR_DISTRIB], [
21 sed_script='/mkdir "*\$(distdir)"*$/{a\
24 sed -e "$sed_script" < $ac_file > $ac_file.tmp
25 mv $ac_file.tmp $ac_file