bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .m4 dependencies: automake is smarter than aclocal


From: Paul Eggert
Subject: Re: .m4 dependencies: automake is smarter than aclocal
Date: Mon, 03 May 2004 16:12:14 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Jim Meyering <address@hidden> writes:

> In any case, as what I hope is just a temporary measure, I've
> commented out the above part of gettext.m4 as well as the body
> of the AM_INTL_SUBDIR macro, and now aclocal works once again.

I do something similar in the Bison bootstrap script, as follows.
This works around the problem that you mentioned, as well as the
"No rule to make target `/config.status'" gettext problem noted in
<http://mail.gnu.org/archive/html/bug-gnu-utils/2002-06/msg00066.html>.
It also removes unnecessary source files (perhaps this is just a
convenience when developing, but it means I don't have to worry about
those files escaping into a tarball somehow).

Would you like to try something similar with coreutils?  The basic
idea is that you needn't put into coreutils CVS something that is
already available automatically from gnulib, gettext, etc.  If you'd
like to try it I could send you a bootstrap script.



# Reconfigure, getting other files.

echo "$0: autoreconf --verbose --install --force ..."
autoreconf --verbose --install --force || exit


# We don't need intl, so remove it.
# Remove aclocal.m4 too, so that it gets rebuilt.
intl_files_to_remove='
  aclocal.m4
  intl
  m4/codeset.m4
  m4/glibc21.m4
  m4/intdiv0.m4
  m4/intmax.m4
  m4/inttypes_h.m4
  m4/inttypes.m4
  m4/inttypes-pri.m4
  m4/isc-posix.m4
  m4/lcmessage.m4
  m4/longdouble.m4
  m4/longlong.m4
  m4/printf-posix.m4
  m4/signed.m4
  m4/size_max.m4
  m4/stdint_h.m4
  m4/uintmax_t.m4
  m4/ulonglong.m4
  m4/wchar_t.m4
  m4/wint_t.m4
  m4/xsize.m4
'
echo $0: rm -fr $intl_files_to_remove ...
rm -fr $intl_files_to_remove || exit

echo "$0: patching m4/gettext.m4 so that AM_INTL_SUBDIR is empty ..."
sed '
  /^AC_DEFUN(\[AM_INTL_SUBDIR],/,/^]/c\
    AC_DEFUN([AM_INTL_SUBDIR], [])
' m4/gettext.m4 >m4/gettext.m4t &&
mv m4/gettext.m4t m4/gettext.m4 || exit

# Patch what appears to be a bug in gettext 0.14.1;
# remove this once the bug is fixed.
grep @top_builddir@ po/Makefile.in.in >/dev/null || {
  echo "$0: prepending 'address@hidden@' to po/Makefile.in.in ... "
  old_contents=$(cat po/Makefile.in.in) || exit
  cat >po/Makefile.in.in <<EOF
address@hidden@
$old_contents
EOF
}

# Put bug-reporting address into po/Makevars.
echo "$0: sed '/^MSGID_BUGS_ADDRESS *=/s/=.*/= address@hidden/' 
po/Makevars.template >po/Makevars ..."
sed '/^MSGID_BUGS_ADDRESS *=/s/=.*/= address@hidden/' po/Makevars.template 
>po/Makevars




reply via email to

[Prev in Thread] Current Thread [Next in Thread]