get rid of m4-safe

and don't copy the .m4 files recommended by glib-gettextize either
This commit is contained in:
John Cupitt 2016-05-18 13:41:31 +01:00
parent 95b9c2aeb6
commit 10cfbc553f
10 changed files with 17 additions and 17 deletions

7
.gitignore vendored
View File

@ -48,7 +48,12 @@ libtool
libvips/include/vips/version.h libvips/include/vips/version.h
fred fred
ltmain.sh ltmain.sh
m4 m4/gtk-doc.m4
m4/libtool.m4
m4/lt~obsolete.m4
m4/ltoptions.m4
m4/ltsugar.m4
m4/ltversion.m4
missing missing
mkinstalldirs mkinstalldirs
po/Makefile.in.in po/Makefile.in.in

View File

@ -5,11 +5,15 @@
# a bunch of cleaning up ... make certain everything will be regenerated # a bunch of cleaning up ... make certain everything will be regenerated
rm -f Makefile Makefile.in aclocal.m4 rm -f Makefile Makefile.in aclocal.m4
rm -rf autom4te.cache rm -rf autom4te.cache
# m4/ contains only stuff from the build system ... the m4 files we have
# written and maintain are in m4-safe # remove m4/ macros put there by libtool etc.
rm -rf m4 rm -f m4/libtool.m4
mkdir m4 rm -f m4/lt~obsolete.m4
cp m4-safe/* m4/ rm -f m4/ltoptions.m4
rm -f m4/ltsugar.m4
rm -f m4/ltversion.m4
rm -f m4/gtk-doc.m4
rm -f config.* configure depcomp rm -f config.* configure depcomp
rm -f install-sh intltool-* libtool ltmain.sh missing mkinstalldirs rm -f install-sh intltool-* libtool ltmain.sh missing mkinstalldirs
rm -f stamp-* vipsCC-7.19.pc vips-7.19.spec vips-7.19.pc rm -f stamp-* vipsCC-7.19.pc vips-7.19.spec vips-7.19.pc
@ -35,18 +39,10 @@ if [ -e $ACDIR/dirlist ]; then
ACDIR=`cat $ACDIR/dirlist` ACDIR=`cat $ACDIR/dirlist`
fi fi
# glib-gettextize asks us to copy these files to m4 if they aren't there:
files="codeset gettext glibc21 iconv isc-posix lcmessage progtest introspection"
for dir in $ACDIR; do
test -d $dir && for file in $files; do
test -e $dir/$file.m4 && cp $dir/$file.m4 m4
done
done
gtkdocize --copy --docdir doc --flavour no-tmpl || exit 1 gtkdocize --copy --docdir doc --flavour no-tmpl || exit 1
# some systems need libtoolize, some glibtoolize ... how annoying # some systems need libtoolize, some glibtoolize ... how annoying
echo testing for glibtoolize ... echo -n "testing for glibtoolize ... "
if glibtoolize --version >/dev/null 2>&1; then if glibtoolize --version >/dev/null 2>&1; then
LIBTOOLIZE=glibtoolize LIBTOOLIZE=glibtoolize
echo using glibtoolize echo using glibtoolize
@ -60,8 +56,7 @@ test -r aclocal.m4 || touch aclocal.m4
# it ... hopefully any errors will go to stderr and not be hidden # it ... hopefully any errors will go to stderr and not be hidden
glib-gettextize --force --copy > /dev/null glib-gettextize --force --copy > /dev/null
test -r aclocal.m4 && chmod u+w aclocal.m4 test -r aclocal.m4 && chmod u+w aclocal.m4
# intltoolize --copy --force --automake intltoolize --copy --force --automake
aclocal -I m4
autoconf autoconf
autoheader autoheader
$LIBTOOLIZE --copy --force --automake $LIBTOOLIZE --copy --force --automake