1999-10-31 09:54:28 +08:00
|
|
|
## Process this file with automake to create Makefile.in.
|
|
|
|
|
|
|
|
## Makefile for Autoconf.
|
Create libm4.m4.
* Makefile.am: Adjusted for libm4.m4.
* acgeneral.m4 (m4_errprint, m4_warn, m4_fatal, m4_prefix,
m4_eval, m4_shift, m4_format, m4_include_unique, m4_include,
m4_sinclude, m4_quote, m4_split, m4_join, m4_strip, m4_append,
m4_list_append, ifval, ifset, m4_default, m4_case, m4_match,
m4_foreach): Moved from here, to...
* libm4.m4: here.
* acgeneral.m4 (AC_WRAP): Moved from here, to...
* libm4.m4 (m4_wrap): here. All callers changed.
* acgeneral.m4: Don't include acversion.m4.
* autoconf.m4: Include libm4.m4 and acversion.m4.
* autoheader.m4: Likewise.
2000-02-08 01:42:03 +08:00
|
|
|
## Copyright (C) 1999, 2000 Free Software Foundation, Inc.
|
1999-10-31 09:54:28 +08:00
|
|
|
|
|
|
|
## This program is free software; you can redistribute it and/or modify
|
|
|
|
## it under the terms of the GNU General Public License as published by
|
|
|
|
## the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
## any later version.
|
|
|
|
|
|
|
|
## This program is distributed in the hope that it will be useful,
|
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
## GNU General Public License for more details.
|
|
|
|
|
|
|
|
## You should have received a copy of the GNU General Public License
|
|
|
|
## along with this program; if not, write to the Free Software
|
|
|
|
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
## 02111-1307, USA.
|
|
|
|
|
2000-02-10 01:05:21 +08:00
|
|
|
AUTOMAKE_OPTIONS = check-news 1.4 readme-alpha
|
1999-10-31 09:54:28 +08:00
|
|
|
|
2000-02-17 18:57:00 +08:00
|
|
|
SUBDIRS = . m4 man doc tests
|
1999-10-31 09:54:28 +08:00
|
|
|
|
|
|
|
SUFFIXES = .m4 .m4f .pl .sh
|
2000-01-29 18:30:15 +08:00
|
|
|
## There is currently no means with Automake not to run aclocal.
|
|
|
|
ACLOCAL_AMFLAGS = --version >/dev/null && touch aclocal.m4
|
1999-10-31 09:54:28 +08:00
|
|
|
|
|
|
|
bin_SCRIPTS = autoconf autoheader autoreconf autoupdate ifnames @PERLSCRIPTS@
|
|
|
|
EXTRA_SCRIPTS = autoscan
|
|
|
|
|
1999-12-22 00:44:10 +08:00
|
|
|
# FIXME:
|
|
|
|
# s/distpackageDATA/dist_pkgdata_DATA/
|
|
|
|
# s/nodistpackageDATA/nodist_pkgdata_DATA/
|
|
|
|
# and adapt dependencies once we use a more recent Automake
|
|
|
|
|
|
|
|
distpkgdataDATA = \
|
1999-12-21 19:46:41 +08:00
|
|
|
acfunctions acheaders acidentifiers acmakevars acprograms \
|
2000-03-30 00:48:00 +08:00
|
|
|
libm4.m4 acgeneral.m4 acoldnames.m4 acspecific.m4 autoconf.m4 \
|
Move all the language dependent macros into aclang.m4.
* aclang.m4: New file.
* autoconf.m4: Include it.
* autoheader.m4: Likewise.
* autoupdate.m4: Likewise.
* Makefile.am: Adjust.
* test/Makefile.am: Likewise.
* acgeneral.m4 (AC_LANG_CASE,AC_LANG_SAVE, _AC_LANG_DISPATCH,
AC_LANG, _AC_LANG_CURRENT, AC_LANG_SOURCE, AC_LANG_PROGRAM,
AC_LANG_CALL, AC_LANG(C), AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C),
AC_LANG_CALL(C), AC_LANG(C++), AC_LANG_SOURCE(C++),
AC_LANG_PROGRAM(C++), AC_LANG_CALL(C++), AC_LANG(FORTRAN77),
AC_LANG_SOURCE(FORTRAN77), AC_LANG_PROGRAM(FORTRAN77),
AC_LANG_CALL(FORTRAN77): Move to...
* aclang.m4: here.
* acspecific.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77,
AC_PROG_CC_WORKS, AC_PROG_CXX_WORKS, AC_PROG_F77_WORKS,
AC_PROG_CC_GNU, AC_PROG_CXX_GNU, AC_PROG_F77_GNU, AC_PROG_CC_G,
AC_PROG_CXX_G, AC_PROG_F77_G, AC_PROG_GCC_TRADITIONAL,
AC_PROG_CC_C_O, AC_PROG_F77_C_O, AC_PROG_CC_STDC, AC_PROG_CPP,
AC_PROG_CXXCPP, AC_REQUIRE_CPP, AC_PROG_LEX, AC_TYPE_MODE_T,
AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE, AC_C_BIGENDIAN,
AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE, AC_C_STRINGIZE,
AC_C_PROTOTYPES, AC_F77_LIBRARY_LDFLAGS, AC_F77_NAME_MANGLING,
AC_F77_WRAPPERS): Move to...
* aclang.m4: here.
2000-03-27 20:26:33 +08:00
|
|
|
autoupdate.m4 aclang.m4
|
1999-12-21 19:46:41 +08:00
|
|
|
|
2000-03-30 00:48:00 +08:00
|
|
|
nodistpkgdataDATA = autoconf.m4f autoupdate.m4f acversion.m4
|
1999-12-22 00:44:10 +08:00
|
|
|
|
|
|
|
pkgdata_DATA = $(distpkgdataDATA) $(nodistpkgdataDATA)
|
1999-10-31 09:54:28 +08:00
|
|
|
|
|
|
|
OLDCHANGELOGS = ChangeLog.0 ChangeLog.1
|
|
|
|
EXTRA_DIST = $(OLDCHANGELOGS) \
|
1999-12-22 00:44:10 +08:00
|
|
|
autoconf.sh autoheader.sh autoreconf.sh autoupdate.sh \
|
|
|
|
ifnames.sh autoscan.pl INSTALL.txt \
|
|
|
|
$(distpkgdataDATA)
|
1999-10-31 09:54:28 +08:00
|
|
|
|
2000-02-17 18:57:00 +08:00
|
|
|
# Files that should be removed, but which Automake does not know:
|
|
|
|
# the frozen files and the scripts.
|
2000-03-30 00:48:00 +08:00
|
|
|
CLEANFILES = autoconf.m4f autoupdate.m4f \
|
2000-02-17 18:57:00 +08:00
|
|
|
$(bin_SCRIPTS)
|
1999-10-31 10:17:01 +08:00
|
|
|
|
1999-10-31 09:54:28 +08:00
|
|
|
# INSTALL is a special case. Automake seems to have a single name space
|
|
|
|
# for both targets and variables. If we just use INSTALL, then the var
|
|
|
|
# $(INSTALL) is not defined, and the install target fails.
|
|
|
|
|
2000-02-17 18:57:00 +08:00
|
|
|
INSTALL.txt: $(top_srcdir)/doc/install.texi
|
2000-02-29 16:49:17 +08:00
|
|
|
$(MAKEINFO) $< --no-headers --no-validate --no-split --output=$@
|
1999-10-31 09:54:28 +08:00
|
|
|
|
|
|
|
install-data-hook: INSTALL.txt
|
|
|
|
@$(NORMAL_INSTALL)
|
|
|
|
@list='INSTALL'; for p in $$list; do \
|
|
|
|
if test -f "$$p.txt"; then d= ; else d="$(srcdir)/"; fi; \
|
|
|
|
f="`echo $$p | sed -e 's|^.*/||'`"; \
|
|
|
|
echo " $(INSTALL_DATA) $$d$$p.txt $(DESTDIR)$(pkgdatadir)/$$f"; \
|
|
|
|
$(INSTALL_DATA) $$d$$p.txt $(DESTDIR)$(pkgdatadir)/$$f; \
|
|
|
|
done
|
|
|
|
|
|
|
|
# The scripts.
|
|
|
|
|
1999-10-31 10:17:01 +08:00
|
|
|
editsh = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e \
|
1999-10-31 09:54:28 +08:00
|
|
|
's,@''M4''@,$(M4),g' -e 's,@''AWK''@,$(AWK),g' \
|
2000-01-10 18:11:57 +08:00
|
|
|
-e 's,@''SHELL''@,$(SHELL),g' \
|
|
|
|
-e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
|
|
|
|
editpl = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e 's,@''PERL''@,$(PERL),g' \
|
|
|
|
-e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
|
1999-10-31 09:54:28 +08:00
|
|
|
|
|
|
|
.sh:
|
|
|
|
rm -f $@ $@.tmp
|
|
|
|
$(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
|
|
|
|
|
|
|
|
.pl:
|
|
|
|
rm -f $@ $@.tmp
|
|
|
|
$(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
|
|
|
|
|
|
|
|
.m4.m4f:
|
|
|
|
@case `$(M4) --help </dev/null 2>&1` in \
|
|
|
|
*reload-state*) echo freezing $*.m4; \
|
Create libm4.m4.
* Makefile.am: Adjusted for libm4.m4.
* acgeneral.m4 (m4_errprint, m4_warn, m4_fatal, m4_prefix,
m4_eval, m4_shift, m4_format, m4_include_unique, m4_include,
m4_sinclude, m4_quote, m4_split, m4_join, m4_strip, m4_append,
m4_list_append, ifval, ifset, m4_default, m4_case, m4_match,
m4_foreach): Moved from here, to...
* libm4.m4: here.
* acgeneral.m4 (AC_WRAP): Moved from here, to...
* libm4.m4 (m4_wrap): here. All callers changed.
* acgeneral.m4: Don't include acversion.m4.
* autoconf.m4: Include libm4.m4 and acversion.m4.
* autoheader.m4: Likewise.
2000-02-08 01:42:03 +08:00
|
|
|
$(M4) -F $*.m4f -I$(srcdir) $(srcdir)/$*.m4 ;; \
|
|
|
|
*) echo Error: Autoconf requires GNU m4 1.4 or later; exit 1 ;; \
|
1999-10-31 09:54:28 +08:00
|
|
|
esac
|
|
|
|
|
Move all the language dependent macros into aclang.m4.
* aclang.m4: New file.
* autoconf.m4: Include it.
* autoheader.m4: Likewise.
* autoupdate.m4: Likewise.
* Makefile.am: Adjust.
* test/Makefile.am: Likewise.
* acgeneral.m4 (AC_LANG_CASE,AC_LANG_SAVE, _AC_LANG_DISPATCH,
AC_LANG, _AC_LANG_CURRENT, AC_LANG_SOURCE, AC_LANG_PROGRAM,
AC_LANG_CALL, AC_LANG(C), AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C),
AC_LANG_CALL(C), AC_LANG(C++), AC_LANG_SOURCE(C++),
AC_LANG_PROGRAM(C++), AC_LANG_CALL(C++), AC_LANG(FORTRAN77),
AC_LANG_SOURCE(FORTRAN77), AC_LANG_PROGRAM(FORTRAN77),
AC_LANG_CALL(FORTRAN77): Move to...
* aclang.m4: here.
* acspecific.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77,
AC_PROG_CC_WORKS, AC_PROG_CXX_WORKS, AC_PROG_F77_WORKS,
AC_PROG_CC_GNU, AC_PROG_CXX_GNU, AC_PROG_F77_GNU, AC_PROG_CC_G,
AC_PROG_CXX_G, AC_PROG_F77_G, AC_PROG_GCC_TRADITIONAL,
AC_PROG_CC_C_O, AC_PROG_F77_C_O, AC_PROG_CC_STDC, AC_PROG_CPP,
AC_PROG_CXXCPP, AC_REQUIRE_CPP, AC_PROG_LEX, AC_TYPE_MODE_T,
AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE, AC_C_BIGENDIAN,
AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE, AC_C_STRINGIZE,
AC_C_PROTOTYPES, AC_F77_LIBRARY_LDFLAGS, AC_F77_NAME_MANGLING,
AC_F77_WRAPPERS): Move to...
* aclang.m4: here.
2000-03-27 20:26:33 +08:00
|
|
|
common = libm4.m4 acgeneral.m4 acspecific.m4 acoldnames.m4 acversion.m4 \
|
|
|
|
aclang.m4
|
2000-02-08 21:25:49 +08:00
|
|
|
|
|
|
|
autoconf.m4f: autoconf.m4 $(common)
|
|
|
|
autoupdate.m4f: autoupdate.m4 $(common)
|