From cfcf9a76dfadd99b394eeef2e795c88e028e2c5d Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Tue, 17 Sep 2002 16:13:25 +0000 Subject: [PATCH] * Makefile.am: Add m4 to SUBDIRS. Set ACLOCAL_AMFLAGS so that m4 directory is used by aclocal. * m4/Makefile.am: New file. * configure.in: Substitute m4/Makefile. * autogen.sh: Don't copy any macro files, use m4 directory. --- ChangeLog | 6 ++++++ Makefile.am | 4 +++- autogen.sh | 21 ++------------------- configure.in | 4 +++- m4/Makefile.am | 22 ++++++++++++++++++++++ 5 files changed, 36 insertions(+), 21 deletions(-) create mode 100644 m4/Makefile.am diff --git a/ChangeLog b/ChangeLog index e330a06f8..84fdc2e6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2002-08-17 Pavel Roskin + * Makefile.am: Add m4 to SUBDIRS. Set ACLOCAL_AMFLAGS so that + m4 directory is used by aclocal. + * m4/Makefile.am: New file. + * configure.in: Substitute m4/Makefile. + * autogen.sh: Don't copy any macro files, use m4 directory. + * syntax/Makefile.am: Add js.syntax. * configure.in: Add support for glib 2.x. Right now, it has to diff --git a/Makefile.am b/Makefile.am index c2d6f5b6c..be021da17 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,12 +2,14 @@ AUTOMAKE_OPTIONS = 1.5 -SUBDIRS = intl po vfs slang edit src lib doc syntax pc +SUBDIRS = intl po m4 vfs slang edit src lib doc syntax pc EXTRA_DIST = FAQ INSTALL.FAST MAINTAINERS \ README.PC README.QNX extraconf.h noinst_DATA = mc.spec +ACLOCAL_AMFLAGS = -I m4 + dist-hook: cp mc.spec $(distdir) diff --git a/autogen.sh b/autogen.sh index 1df067127..482df7736 100755 --- a/autogen.sh +++ b/autogen.sh @@ -37,31 +37,14 @@ if test $gettext_ver -ge 01100; then fi $AUTOPOINT || exit 1 else - $GETTEXTIZE --copy --force >tmpout || exit 1 + $GETTEXTIZE --copy --force || exit 1 if test -e po/ChangeLog~; then rm -f po/ChangeLog mv po/ChangeLog~ po/ChangeLog fi fi -rm -f aclocal.m4 -if test -f `aclocal --print-ac-dir`/gettext.m4; then - : # gettext macro files are available to aclocal. -else - # gettext macro files are not available. - # Find them and copy to a local directory. - # Ugly way to parse the instructions gettexize gives us. - m4files="`cat tmpout | sed -n -e '/^Please/,/^from/s/^ *//p'`" - fromdir=`cat tmpout | sed -n -e '/^Please/,/^from/s/^from the \([^ ]*\) .*$/\1/p'` - rm -rf gettext.m4 - mkdir gettext.m4 - for i in $m4files; do - cp -f $fromdir/$i gettext.m4 - done - ACLOCAL_INCLUDES="-I gettext.m4" -fi - -rm -f tmpout +ACLOCAL_INCLUDES="-I m4" # Some old version of GNU build tools fail to set error codes. # Check that they generate some of the files they should. diff --git a/configure.in b/configure.in index 97275003f..26f8b863b 100644 --- a/configure.in +++ b/configure.in @@ -680,6 +680,7 @@ slang/Makefile edit/Makefile syntax/Makefile pc/Makefile +m4/Makefile lib/mc.ext lib/mc.sh @@ -702,7 +703,8 @@ doc/it/mc.1 doc/it/Makefile doc/pl/mc.1 doc/pl/Makefile doc/ru/mc.1 doc/ru/Makefile -intl/Makefile po/Makefile.in +intl/Makefile +po/Makefile.in ]) AC_OUTPUT diff --git a/m4/Makefile.am b/m4/Makefile.am new file mode 100644 index 000000000..1872982b3 --- /dev/null +++ b/m4/Makefile.am @@ -0,0 +1,22 @@ +m4files = \ + codeset.m4 \ + gettext.m4 \ + glib.m4 \ + glibc21.m4 \ + iconv.m4 \ + intdiv0.m4 \ + inttypes-pri.m4 \ + inttypes.m4 \ + inttypes_h.m4 \ + isc-posix.m4 \ + lcmessage.m4 \ + lib-ld.m4 \ + lib-link.m4 \ + lib-prefix.m4 \ + pkg.m4 \ + progtest.m4 \ + stdint_h.m4 \ + uintmax_t.m4 \ + ulonglong.m4 + +EXTRA_DIST = README $(m4files)