]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/autoscan.m4: New file.
authorAkim Demaille <akim@epita.fr>
Sat, 28 Sep 2002 14:06:07 +0000 (14:06 +0000)
committerAkim Demaille <akim@epita.fr>
Sat, 28 Sep 2002 14:06:07 +0000 (14:06 +0000)
* lib/autoconf/autoconf.m4: Include it.
* lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
that were listed in the original autoscan.list.
* lib/autoconf/headers.m4: Similarly with headers.
* lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
(.m4.m4f): Don't pass --prepend-include, since that's done by
tests/autom4te itself.
* lib/autoscan/Makefile.am: Include freeze.mk.
(autoscan.list): New target --this file is no longer a source.
(autoscan.pre): New file.

26 files changed:
ChangeLog
Makefile.in
TODO
aclocal.m4
bin/Makefile.in
config/Makefile.in
configure
doc/Makefile.in
lib/Autom4te/Makefile.in
lib/Makefile.in
lib/autoconf/Makefile.am
lib/autoconf/Makefile.in
lib/autoconf/autoconf.m4
lib/autoconf/autoscan.m4 [new file with mode: 0644]
lib/autoconf/functions.m4
lib/autoconf/headers.m4
lib/autoscan/Makefile.am
lib/autoscan/Makefile.in
lib/autoscan/autoscan.list
lib/autoscan/autoscan.pre [new file with mode: 0644]
lib/autotest/Makefile.in
lib/emacs/Makefile.in
lib/freeze.mk
lib/m4sugar/Makefile.in
man/Makefile.in
tests/Makefile.in

index 9b096adb087f1d8c7b33c978e288784cfb3c13ff..50a8fd485daac5d03960832b49c5f19a860e3e25 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2002-09-28  Akim Demaille  <akim@epita.fr>
+
+       * lib/autoconf/autoscan.m4: New file.
+       * lib/autoconf/autoconf.m4: Include it.
+       * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
+       that were listed in the original autoscan.list.
+       * lib/autoconf/headers.m4: Similarly with headers.
+       * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
+       (.m4.m4f): Don't pass --prepend-include, since that's done by
+       tests/autom4te itself.
+       * lib/autoscan/Makefile.am: Include freeze.mk.
+       (autoscan.list): New target --this file is no longer a source.
+       (autoscan.pre): New file.
+
 2002-09-28  Akim Demaille  <akim@epita.fr>
 
        * bin/autoscan.in (@kinds): Make them singular.
index 3933fb9a58b1615452865b9dfa0c1d905c389355..72f39198395c3b02bf76b4d7fb39f9e20ad31c3a 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated by automake 1.6c from Makefile.am.
+# Makefile.in generated by automake 1.7a from Makefile.am.
 # @configure_input@
 
 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
@@ -307,6 +307,7 @@ am__remove_distdir = \
          && rm -fr $(distdir); }; }
 
 GZIP_ENV = --best
+distuninstallcheck_listfiles = find . -type f -print
 distcleancheck_listfiles = find . -type f -print
 
 distdir: $(DISTFILES)
@@ -386,6 +387,7 @@ distcheck: dist
        chmod a-w $(distdir)
        dc_install_base=`$(am__cd) $(distdir)/=inst && pwd` \
          && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
+         && $(mkinstalldirs) $$dc_destdir \
          && cd $(distdir)/=build \
          && ../configure --srcdir=.. --prefix="$$dc_install_base" \
            $(DISTCHECK_CONFIGURE_FLAGS) \
@@ -395,17 +397,13 @@ distcheck: dist
          && $(MAKE) $(AM_MAKEFLAGS) install \
          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
          && $(MAKE) $(AM_MAKEFLAGS) uninstall \
-         && (test `find "$$dc_install_base" -type f -print | wc -l` -le 1 \
-             || { echo "ERROR: files left after uninstall:" ; \
-                  find $$dc_install_base -type f -print ; \
-                  exit 1; } >&2 ) \
+         && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
+               distuninstallcheck \
          && chmod -R a-w "$$dc_install_base" \
          && ({   $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
               && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
-              && (test `find "$$dc_destdir" -type f -print | wc -l` -le 1 \
-                  || { echo "ERROR: files left after uninstall (check DESTDIR support):" ; \
-                       find "$$dc_destdir" -type f -print ; \
-                       exit 1; } >&2 ); \
+              && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
+                   distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
              } || { rm -rf "$$dc_destdir"; exit 1; }) \
          && rm -rf "$$dc_destdir" \
          && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
@@ -414,13 +412,22 @@ distcheck: dist
        $(am__remove_distdir)
        @echo "$(distdir).tar.gz is ready for distribution" | \
          sed 'h;s/./=/g;p;x;p;x'
+distuninstallcheck:
+       cd $(distuninstallcheck_dir) \
+       && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
+          || { echo "ERROR: files left after uninstall:" ; \
+               if test -n "$(DESTDIR)"; then \
+                 echo "  (check DESTDIR support)"; \
+               fi ; \
+               $(distuninstallcheck_listfiles) ; \
+               exit 1; } >&2
 distcleancheck: distclean
        if test '$(srcdir)' = . ; then \
          echo "ERROR: distcleancheck can only run from a VPATH build" ; \
          exit 1 ; \
        fi
        test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
-         || { echo "ERROR: files left after distclean:" ; \
+         || { echo "ERROR: files left in build directory after distclean:" ; \
               $(distcleancheck_listfiles) ; \
               exit 1; } >&2
 check-am: all-am
@@ -506,14 +513,14 @@ uninstall-info: uninstall-info-recursive
        clean-generic clean-recursive ctags ctags-recursive dist \
        dist-all dist-bzip2 dist-gzip distcheck distclean \
        distclean-generic distclean-recursive distclean-tags \
-       distcleancheck distdir dvi dvi-am dvi-recursive info info-am \
-       info-recursive install install-am install-data install-data-am \
-       install-data-recursive install-exec install-exec-am \
-       install-exec-recursive install-info install-info-am \
-       install-info-recursive install-man install-pkgdataDATA \
-       install-recursive install-strip installcheck installcheck-am \
-       installdirs installdirs-am installdirs-recursive \
-       maintainer-clean maintainer-clean-generic \
+       distcleancheck distdir distuninstallcheck dvi dvi-am \
+       dvi-recursive info info-am info-recursive install install-am \
+       install-data install-data-am install-data-recursive \
+       install-exec install-exec-am install-exec-recursive \
+       install-info install-info-am install-info-recursive install-man \
+       install-pkgdataDATA install-recursive install-strip \
+       installcheck installcheck-am installdirs installdirs-am \
+       installdirs-recursive maintainer-clean maintainer-clean-generic \
        maintainer-clean-recursive mostlyclean mostlyclean-generic \
        mostlyclean-recursive pdf pdf-am pdf-recursive ps ps-am \
        ps-recursive tags tags-recursive uninstall uninstall-am \
diff --git a/TODO b/TODO
index f21629735b4a1f88012c70f2862bb0414b0e1a55..75618463123a87146cb538204e545c7c81b6eadc 100644 (file)
--- a/TODO
+++ b/TODO
@@ -58,19 +58,6 @@ extensions.
 Deprecate these, as they will be superseded by the AC_PROG_CC changes.
 
 
-** Automake 1.6
-*** AC_LIBOBJ_DECL
-Decide with the Automake team whether this macro should list only `.c'
-files, or it should include the `.h' too.  For instance the
-AC_FUNC_GNU_GETOPT macro could provide the three files, likewise for
-the macro which allows to choose a regex engine.
-
-*** Auxiliary files
-It is AC_PROG_LIBTOOL that should tell Automake what are the files to
-ship.  We need something similar to AC_LIBOBJ_DECL for all these
-situations.
-
-
 * Later
 
 ** config.site
@@ -186,12 +173,6 @@ autoupdate do its job on old configure.ac.
 
 * Even later
 
-** Autoscan macros
-Can be introduced even before specializing macros.  It just means that
-specializing macros will call them.  OTOH, this doubles our work,
-since specializing macros will save us from additional typing.  But
-the more powerful autoscan is, the better...
-
 ** Pentateuch
 Heck, there is nothing after `Deuteronomy'!  We're stuck, but we
 _must_ update the `history' section.  Can't go to `New testament', we
@@ -199,10 +180,6 @@ might hurt feelings?  In addition, it means that the Messiah has come,
 which might be slightly presumptuous :).  Still, someone fluent in
 English should write it.
 
-** AC_FUNC_GETLOADAVG
-We must find a solution for this macro which needs to find
-`getloadavg.c'.
-
 ** AC_PATH_X
 Hi Robert,
 
index 550ec504e78025a07a50264fba69b326e4d6d648..add2e7c53f08f211c385cd2c92cc87a6028a88ae 100644 (file)
@@ -1,4 +1,4 @@
-# generated automatically by aclocal 1.6c -*- Autoconf -*-
+# generated automatically by aclocal 1.7a -*- Autoconf -*-
 
 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
 # Free Software Foundation, Inc.
@@ -43,7 +43,7 @@
 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
 
-AC_PREREQ([2.53b])
+AC_PREREQ([2.54])
 
 # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
 # the ones we care about.
@@ -153,14 +153,14 @@ echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 # ----------------------------
 # Automake X.Y traces this macro to ensure aclocal.m4 has been
 # generated from the m4 files accompanying Automake X.Y.
-AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6c"])
+AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7a"])
 
 # AM_SET_CURRENT_AUTOMAKE_VERSION
 # -------------------------------
 # Call AM_AUTOMAKE_VERSION so it can be traced.
 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
-        [AM_AUTOMAKE_VERSION([1.6c])])
+        [AM_AUTOMAKE_VERSION([1.7a])])
 
 # Helper functions for option handling.                    -*- Autoconf -*-
 
@@ -779,7 +779,7 @@ else
 fi
 AC_CONFIG_COMMANDS_PRE(
 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
-  AC_MSG_ERROR([conditional \"$1\" was never defined.
+  AC_MSG_ERROR([conditional "$1" was never defined.
 Usually this means the macro was only invoked conditionally.])
 fi])])
 
index 9fa24ada35a214c6a210643b15455ac8b4ca9cd9..120a1efcd9ade5aa9a210ee7657c9776f2386ab3 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated by automake 1.6c from Makefile.am.
+# Makefile.in generated by automake 1.7a from Makefile.am.
 # @configure_input@
 
 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
index c5b2dfb9ec74d2e234dfb0315532d46370d1e822..5f12202ec58f3203f07e90f9739d5fc2327f8250 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated by automake 1.6c from Makefile.am.
+# Makefile.in generated by automake 1.7a from Makefile.am.
 # @configure_input@
 
 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
index da33d2c63a3cc282395827351bb704029dea9434..1af53c93387450f10667cdfc1576d52c5b9df4d7 100755 (executable)
--- a/configure
+++ b/configure
@@ -1204,7 +1204,7 @@ ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
           ac_config_files="$ac_config_files config/Makefile"
 
 
-am__api_version="1.6c"
+am__api_version="1.7a"
 # Find a good install program.  We prefer a C program (faster),
 # so one script is as good as another.  But avoid the broken or
 # incompatible versions:
index cd2bedcdca79aa0ffb935d036134e320855bf5f4..7e702b605f17b7809afad16258319396f9f2a9ce 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated by automake 1.6c from Makefile.am.
+# Makefile.in generated by automake 1.7a from Makefile.am.
 # @configure_input@
 
 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
@@ -143,9 +143,9 @@ Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
        TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
        MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \
        $(TEXI2PDF) `test -f '$<' || echo '$(srcdir)/'`$<
-autoconf.info: version.texi $(autoconf_TEXINFOS)
-autoconf.dvi: version.texi $(autoconf_TEXINFOS)
-autoconf.pdf: version.texi $(autoconf_TEXINFOS)
+autoconf.info: autoconf.texi version.texi $(autoconf_TEXINFOS)
+autoconf.dvi: autoconf.texi version.texi $(autoconf_TEXINFOS)
+autoconf.pdf: autoconf.texi version.texi $(autoconf_TEXINFOS)
 version.texi:  stamp-vti
 stamp-vti: autoconf.texi $(top_srcdir)/configure.ac
        @(dir=.; test -f ./autoconf.texi || dir=$(srcdir); \
@@ -165,9 +165,9 @@ mostlyclean-vti:
 
 maintainer-clean-vti:
        -rm -f stamp-vti version.texi
-standards.info: $(standards_TEXINFOS)
-standards.dvi: $(standards_TEXINFOS)
-standards.pdf: $(standards_TEXINFOS)
+standards.info: standards.texi $(standards_TEXINFOS)
+standards.dvi: standards.texi $(standards_TEXINFOS)
+standards.pdf: standards.texi $(standards_TEXINFOS)
 TEXI2DVI = texi2dvi
 
 TEXI2PDF = $(TEXI2DVI) --pdf --batch
index ea7c1e4ad48dfd94d6db2e2eaef173dd5aabc438..0747cd9254080f9629cf14f24cb0c78ba9789ea2 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated by automake 1.6c from Makefile.am.
+# Makefile.in generated by automake 1.7a from Makefile.am.
 # @configure_input@
 
 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
index cd2dc599b2bd935d52e5d3845832f50d39279c4f..cd621d0d475cc6a61172bec83d5ea030cce7669c 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated by automake 1.6c from Makefile.am.
+# Makefile.in generated by automake 1.7a from Makefile.am.
 # @configure_input@
 
 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
index 23292e9308e26d88b33b0a90f291f84ce63cc6f6..ab379763a79cc67fd06cb9c73082951ec5857024 100644 (file)
@@ -21,7 +21,7 @@ autoconflibdir = $(pkgdatadir)/autoconf
 dist_autoconflib_DATA = \
        autoconf.m4 \
         general.m4 status.m4 oldnames.m4 specific.m4 \
-       autoheader.m4 autoupdate.m4 autotest.m4 \
+       autoheader.m4 autoupdate.m4 autotest.m4 autoscan.m4 \
        lang.m4 c.m4 fortran.m4 \
         functions.m4 headers.m4 types.m4 libs.m4 programs.m4
 
index b0983edf09b4a16282a3deed83eb7538e0eea09c..d952be59a1ede4480d4900de40cdce0920d521b2 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated by automake 1.6c from Makefile.am.
+# Makefile.in generated by automake 1.7a from Makefile.am.
 # @configure_input@
 
 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
@@ -95,7 +95,7 @@ autoconflibdir = $(pkgdatadir)/autoconf
 dist_autoconflib_DATA = \
        autoconf.m4 \
         general.m4 status.m4 oldnames.m4 specific.m4 \
-       autoheader.m4 autoupdate.m4 autotest.m4 \
+       autoheader.m4 autoupdate.m4 autotest.m4 autoscan.m4 \
        lang.m4 c.m4 fortran.m4 \
         functions.m4 headers.m4 types.m4 libs.m4 programs.m4
 
@@ -146,6 +146,7 @@ autotest_m4f_dependencies = \
 
 autoconf_m4f_dependencies = \
        $(m4sh_m4f_dependencies)                \
+       $(src_libdir)/autoconf/autoscan.m4      \
        $(src_libdir)/autoconf/general.m4       \
        $(src_libdir)/autoconf/autoheader.m4    \
        $(src_libdir)/autoconf/autoupdate.m4    \
@@ -169,8 +170,8 @@ CONFIG_CLEAN_FILES =
 DIST_SOURCES =
 DATA = $(dist_autoconflib_DATA) $(nodist_autoconflib_DATA)
 
-DIST_COMMON = $(dist_autoconflib_DATA) ../freeze.mk Makefile.am \
-       Makefile.in
+DIST_COMMON = $(dist_autoconflib_DATA) $(srcdir)/../freeze.mk \
+       Makefile.am Makefile.in
 all: all-am
 
 .SUFFIXES:
@@ -277,7 +278,7 @@ top_distdir = ../..
 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
 
 distdir: $(DISTFILES)
-       $(mkinstalldirs) $(distdir)/..
+       $(mkinstalldirs) $(distdir)/$(srcdir)/..
        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
        list='$(DISTFILES)'; for file in $$list; do \
          case $$file in \
@@ -421,8 +422,6 @@ $(AUTOM4TE_CFG):
        $(MY_AUTOM4TE)                          \
                --language=$*                   \
                --freeze                        \
-               --include=$(srcdir)/..          \
-               --include=..                    \
                --output=$@
 
 # For parallel builds.
index 3816c10f3041e2a6da74d6d7f80394b8420e6a61..e6722d0a3210a32928ce363c682e19c6bc4e1ba7 100644 (file)
@@ -52,7 +52,7 @@
 
 # general includes some AU_DEFUN.
 m4_include([autoconf/autoupdate.m4])
-
+m4_include([autoconf/autoscan.m4])
 m4_include([autoconf/general.m4])
 m4_include([autoconf/status.m4])
 m4_include([autoconf/autoheader.m4])
diff --git a/lib/autoconf/autoscan.m4 b/lib/autoconf/autoscan.m4
new file mode 100644 (file)
index 0000000..f3b354a
--- /dev/null
@@ -0,0 +1,72 @@
+# This file is part of Autoconf.                       -*- Autoconf -*-
+# Interface with autoscan.
+
+# Copyright (C) 2002 Free Software Foundation, Inc.
+
+# 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.
+
+# As a special exception, the Free Software Foundation gives unlimited
+# permission to copy, distribute and modify the configure scripts that
+# are the output of Autoconf.  You need not follow the terms of the GNU
+# General Public License when using or distributing such scripts, even
+# though portions of the text of Autoconf appear in them.  The GNU
+# General Public License (GPL) does govern all other use of the material
+# that constitutes the Autoconf program.
+#
+# Certain portions of the Autoconf source text are designed to be copied
+# (in certain cases, depending on the input) into the output of
+# Autoconf.  We call these the "data" portions.  The rest of the Autoconf
+# source text consists of comments plus executable code that decides which
+# of the data portions to output in any given case.  We call these
+# comments and executable code the "non-data" portions.  Autoconf never
+# copies any of the non-data portions into its output.
+#
+# This special exception to the GPL applies to versions of Autoconf
+# released by the Free Software Foundation.  When you make and
+# distribute a modified version of Autoconf, you may extend this special
+# exception to the GPL to apply to your modified version as well, *unless*
+# your modified version has the potential to copy into its output some
+# of the text that was the non-data portion of the version that you started
+# with.  (In other words, unless your change moves or copies text from
+# the non-data portions to the data portions.)  If your modification has
+# such potential, you must delete any notice of this special exception
+# to the GPL from your modified version.
+
+# Written by Akim Demaille.
+
+# The prefix `AN' is chosen after `AutoscaN'.
+
+# AN_OUTPUT(KIND, WORD, MACROS)
+# -----------------------------
+# Declare that the WORD, used as a KIND, requires triggering the MACROS.
+m4_define([AN_OUTPUT], [])
+
+
+# AN_FUNCTION(NAME, MACROS)
+# AN_HEADER(NAME, MACROS)
+# AN_IDENTIFIER(NAME, MACROS)
+# AN_LIBRARY(NAME, MACROS)
+# AN_MAKEVAR(NAME, MACROS)
+# AN_PROGRAM(NAME, MACROS)
+# ---------------------------
+# If the FUNCTION/HEADER etc. is used in the package, then the MACROS
+# should be invoked from configure.ac.
+m4_define([AN_FUNCTION],   [AN_OUTPUT([function], $@)])
+m4_define([AN_HEADER],     [AN_OUTPUT([header], $@)])
+m4_define([AN_IDENTIFIER], [AN_OUTPUT([identifier], $@)])
+m4_define([AN_LIBRARY],    [AN_OUTPUT([library], $@)])
+m4_define([AN_MAKEVAR],    [AN_OUTPUT([makevar], $@)])
+m4_define([AN_PROGRAM],    [AN_OUTPUT([program], $@)])
index 06761c0a7e8568f2504cd1555be20447770626ef..9d2bc1d184ea6420d531c3f66f63430e8a93eb9a 100644 (file)
@@ -52,7 +52,8 @@
 # Table of contents
 #
 # 1. Generic tests for functions.
-# 2. Tests for specific functions.
+# 2. Functions to check with AC_CHECK_FUNCS
+# 3. Tests for specific functions.
 
 
 ## -------------------------------- ##
@@ -117,8 +118,107 @@ AU_ALIAS([AC_HAVE_FUNCS], [AC_CHECK_FUNCS])
 
 
 
+## ------------------------------------------- ##
+## 2. Functions to check with AC_CHECK_FUNCS.  ##
+## ------------------------------------------- ##
+
+AN_FUNCTION([__argz_count],            [AC_CHECK_FUNCS])
+AN_FUNCTION([__argz_next],             [AC_CHECK_FUNCS])
+AN_FUNCTION([__argz_stringify],        [AC_CHECK_FUNCS])
+AN_FUNCTION([__fpending],              [AC_CHECK_FUNCS])
+AN_FUNCTION([acl],                     [AC_CHECK_FUNCS])
+AN_FUNCTION([alarm],                   [AC_CHECK_FUNCS])
+AN_FUNCTION([atexit],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([btowc],                   [AC_CHECK_FUNCS])
+AN_FUNCTION([clock_gettime],           [AC_CHECK_FUNCS])
+AN_FUNCTION([doprnt],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([dup2],                    [AC_CHECK_FUNCS])
+AN_FUNCTION([endgrent],                [AC_CHECK_FUNCS])
+AN_FUNCTION([endpwent],                [AC_CHECK_FUNCS])
+AN_FUNCTION([euidaccess],              [AC_CHECK_FUNCS])
+AN_FUNCTION([fchdir],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([fdatasync],               [AC_CHECK_FUNCS])
+AN_FUNCTION([fesetround],              [AC_CHECK_FUNCS])
+AN_FUNCTION([floor],                   [AC_CHECK_FUNCS])
+AN_FUNCTION([fs_stat_dev],             [AC_CHECK_FUNCS])
+AN_FUNCTION([ftime],                   [AC_CHECK_FUNCS])
+AN_FUNCTION([ftruncate],               [AC_CHECK_FUNCS])
+AN_FUNCTION([getcwd],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([getdelim],                [AC_CHECK_FUNCS])
+AN_FUNCTION([gethostbyaddr],           [AC_CHECK_FUNCS])
+AN_FUNCTION([gethostbyname],           [AC_CHECK_FUNCS])
+AN_FUNCTION([gethostname],             [AC_CHECK_FUNCS])
+AN_FUNCTION([gethrtime],               [AC_CHECK_FUNCS])
+AN_FUNCTION([getmntent],               [AC_CHECK_FUNCS])
+AN_FUNCTION([getmntinfo],              [AC_CHECK_FUNCS])
+AN_FUNCTION([getpagesize],             [AC_CHECK_FUNCS])
+AN_FUNCTION([getpass],                 [AC_CHECK_FUNCS])
+AN_FUNCTION([getspnam],                [AC_CHECK_FUNCS])
+AN_FUNCTION([gettimeofday],            [AC_CHECK_FUNCS])
+AN_FUNCTION([getusershell],            [AC_CHECK_FUNCS])
+AN_FUNCTION([hasmntopt],               [AC_CHECK_FUNCS])
+AN_FUNCTION([inet_ntoa],               [AC_CHECK_FUNCS])
+AN_FUNCTION([isascii],                 [AC_CHECK_FUNCS])
+AN_FUNCTION([iswprint],                [AC_CHECK_FUNCS])
+AN_FUNCTION([lchown],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([listmntent],              [AC_CHECK_FUNCS])
+AN_FUNCTION([localeconv],              [AC_CHECK_FUNCS])
+AN_FUNCTION([localtime_r],             [AC_CHECK_FUNCS])
+AN_FUNCTION([mblen],                   [AC_CHECK_FUNCS])
+AN_FUNCTION([mbrlen],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([mempcpy],                 [AC_CHECK_FUNCS])
+AN_FUNCTION([mkdir],                   [AC_CHECK_FUNCS])
+AN_FUNCTION([mkfifo],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([modf],                    [AC_CHECK_FUNCS])
+AN_FUNCTION([munmap],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([next_dev],                [AC_CHECK_FUNCS])
+AN_FUNCTION([nl_langinfo],             [AC_CHECK_FUNCS])
+AN_FUNCTION([pathconf],                [AC_CHECK_FUNCS])
+AN_FUNCTION([pow],                     [AC_CHECK_FUNCS])
+AN_FUNCTION([pstat_getdynamic],        [AC_CHECK_FUNCS])
+AN_FUNCTION([putenv],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([re_comp],                 [AC_CHECK_FUNCS])
+AN_FUNCTION([realpath],                [AC_CHECK_FUNCS])
+AN_FUNCTION([regcmp],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([regcomp],                 [AC_CHECK_FUNCS])
+AN_FUNCTION([resolvepath],             [AC_CHECK_FUNCS])
+AN_FUNCTION([rint],                    [AC_CHECK_FUNCS])
+AN_FUNCTION([rmdir],                   [AC_CHECK_FUNCS])
+AN_FUNCTION([rpmatch],                 [AC_CHECK_FUNCS])
+AN_FUNCTION([select],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([setenv],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([sethostname],             [AC_CHECK_FUNCS])
+AN_FUNCTION([setlocale],               [AC_CHECK_FUNCS])
+AN_FUNCTION([socket],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([sqrt],                    [AC_CHECK_FUNCS])
+AN_FUNCTION([stime],                   [AC_CHECK_FUNCS])
+AN_FUNCTION([stpcpy],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([strcasecmp],              [AC_CHECK_FUNCS])
+AN_FUNCTION([strchr],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([strcspn],                 [AC_CHECK_FUNCS])
+AN_FUNCTION([strdup],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([strerror],                [AC_CHECK_FUNCS])
+AN_FUNCTION([strncasecmp],             [AC_CHECK_FUNCS])
+AN_FUNCTION([strndup],                 [AC_CHECK_FUNCS])
+AN_FUNCTION([strpbrk],                 [AC_CHECK_FUNCS])
+AN_FUNCTION([strrchr],                 [AC_CHECK_FUNCS])
+AN_FUNCTION([strspn],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([strstr],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([strtol],                  [AC_CHECK_FUNCS])
+AN_FUNCTION([strtoul],                 [AC_CHECK_FUNCS])
+AN_FUNCTION([strtoull],                [AC_CHECK_FUNCS])
+AN_FUNCTION([strtoumax],               [AC_CHECK_FUNCS])
+AN_FUNCTION([strverscmp],              [AC_CHECK_FUNCS])
+AN_FUNCTION([sysinfo],                 [AC_CHECK_FUNCS])
+AN_FUNCTION([tzset],                   [AC_CHECK_FUNCS])
+AN_FUNCTION([uname],                   [AC_CHECK_FUNCS])
+AN_FUNCTION([utmpname],                [AC_CHECK_FUNCS])
+AN_FUNCTION([utmpxname],               [AC_CHECK_FUNCS])
+AN_FUNCTION([wcwidth],                 [AC_CHECK_FUNCS])
+
+
 ## --------------------------------- ##
-## 2. Tests for specific functions.  ##
+## 3. Tests for specific functions.  ##
 ## --------------------------------- ##
 
 
@@ -206,6 +306,7 @@ AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction)
 
 # AC_FUNC_ALLOCA
 # --------------
+AN_FUNCTION([alloca], [AC_FUNC_ALLOCA])
 AC_DEFUN([AC_FUNC_ALLOCA],
 [# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 # for constant arguments.  Useless!
@@ -264,6 +365,7 @@ AU_ALIAS([AC_ALLOCA], [AC_FUNC_ALLOCA])
 # AC_FUNC_CHOWN
 # -------------
 # Determine whether chown accepts arguments of -1 for uid and gid.
+AN_FUNCTION([chown], [AC_FUNC_CHOWN])
 AC_DEFUN([AC_FUNC_CHOWN],
 [AC_REQUIRE([AC_TYPE_UID_T])dnl
 AC_CHECK_HEADERS(unistd.h)
@@ -301,6 +403,7 @@ fi
 # ---------------------
 # Check whether closedir returns void, and #define CLOSEDIR_VOID in
 # that case.
+AN_FUNCTION([closedir], [AC_FUNC_CLOSEDIR_VOID])
 AC_DEFUN([AC_FUNC_CLOSEDIR_VOID],
 [AC_REQUIRE([AC_HEADER_DIRENT])dnl
 AC_CACHE_CHECK([whether closedir returns void],
@@ -325,6 +428,7 @@ fi
 
 # AC_FUNC_ERROR_AT_LINE
 # ---------------------
+AN_FUNCTION([error_at_line], [AC_FUNC_ERROR_AT_LINE])
 AC_DEFUN([AC_FUNC_ERROR_AT_LINE],
 [AC_LIBSOURCES([error.h, error.c])dnl
 AC_CACHE_CHECK([for error_at_line], ac_cv_lib_error_at_line,
@@ -437,6 +541,8 @@ AU_ALIAS([fp_FUNC_FNMATCH], [AC_FUNC_FNMATCH])
 
 # AC_FUNC_FSEEKO
 # --------------
+AN_FUNCTION([ftello], [AC_FUNC_FSEEKO])
+AN_FUNCTION([fseeko], [AC_FUNC_FSEEKO])
 AC_DEFUN([AC_FUNC_FSEEKO],
 [_AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, 1,
    [ac_cv_sys_largefile_source],
@@ -462,6 +568,7 @@ fi
 # -----------------
 # Try to find `getgroups', and check that it works.
 # When cross-compiling, assume getgroups is broken.
+AN_FUNCTION([getgroups], [AC_FUNC_GETGROUPS])
 AC_DEFUN([AC_FUNC_GETGROUPS],
 [AC_REQUIRE([AC_TYPE_GETGROUPS])dnl
 AC_REQUIRE([AC_TYPE_SIZE_T])dnl
@@ -549,6 +656,7 @@ AC_CHECK_HEADERS(nlist.h,
 
 # AC_FUNC_GETLOADAVG
 # ------------------
+AN_FUNCTION([getloadavg], [AC_FUNC_GETLOADAVG])
 AC_DEFUN([AC_FUNC_GETLOADAVG],
 [ac_have_func=no # yes means we've found a way to get the load average.
 
@@ -647,6 +755,7 @@ AU_ALIAS([AC_GETLOADAVG], [AC_FUNC_GETLOADAVG])
 
 # AC_FUNC_GETMNTENT
 # -----------------
+AN_FUNCTION([getmntent], [AC_FUNC_GETMNTENT])
 AC_DEFUN([AC_FUNC_GETMNTENT],
 [# getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
 AC_CHECK_LIB(sun, getmntent, LIBS="-lsun $LIBS",
@@ -659,6 +768,7 @@ AC_CHECK_FUNCS(getmntent)
 # AC_FUNC_GETPGRP
 # ---------------
 # Figure out whether getpgrp requires zero arguments.
+AN_FUNCTION([getpgrp], [AC_FUNC_GETPGRP])
 AC_DEFUN([AC_FUNC_GETPGRP],
 [AC_CACHE_CHECK(whether getpgrp requires zero arguments,
  ac_cv_func_getpgrp_void,
@@ -679,6 +789,7 @@ fi
 # When cross-compiling, be pessimistic so we will end up using the
 # replacement version of lstat that checks for trailing slashes and
 # calls lstat a second time when necessary.
+AN_FUNCTION([lstat], [AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])
 AC_DEFUN([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK],
 [AC_CACHE_CHECK(
        [whether lstat dereferences a symlink specified with a trailing slash],
@@ -741,6 +852,7 @@ AS_IF([test $ac_cv_func_malloc_works = yes], [$1], [$2])
 # --------------
 # Report whether `malloc (0)' properly handled, and replace malloc if
 # needed.
+AN_FUNCTION([malloc], [AC_FUNC_MALLOC])
 AC_DEFUN([AC_FUNC_MALLOC],
 [_AC_FUNC_MALLOC_IF(
   [AC_DEFINE([HAVE_MALLOC], 1,
@@ -755,6 +867,7 @@ AC_DEFUN([AC_FUNC_MALLOC],
 
 # AC_FUNC_MBRTOWC
 # ---------------
+AN_FUNCTION([mbrtowc], [AC_FUNC_MBRTOWC])
 AC_DEFUN([AC_FUNC_MBRTOWC],
 [
   AC_CACHE_CHECK([whether mbrtowc and mbstate_t are properly declared],
@@ -774,6 +887,7 @@ AC_DEFUN([AC_FUNC_MBRTOWC],
 
 # AC_FUNC_MEMCMP
 # --------------
+AN_FUNCTION([memcmp], [AC_FUNC_MEMCMP])
 AC_DEFUN([AC_FUNC_MEMCMP],
 [AC_CACHE_CHECK([for working memcmp], ac_cv_func_memcmp_working,
 [AC_RUN_IFELSE([AC_LANG_PROGRAM([], [[
@@ -810,6 +924,7 @@ test $ac_cv_func_memcmp_working = no && AC_LIBOBJ([memcmp])
 
 # AC_FUNC_MKTIME
 # --------------
+AN_FUNCTION([mktime], [AC_FUNC_MKTIME])
 AC_DEFUN([AC_FUNC_MKTIME],
 [AC_REQUIRE([AC_HEADER_TIME])dnl
 AC_CHECK_HEADERS(sys/time.h unistd.h)
@@ -977,6 +1092,7 @@ AU_ALIAS([AM_FUNC_MKTIME], [AC_FUNC_MKTIME])
 
 # AC_FUNC_MMAP
 # ------------
+AN_FUNCTION([mmap], [AC_FUNC_MMAP])
 AC_DEFUN([AC_FUNC_MMAP],
 [AC_CHECK_HEADERS(stdlib.h unistd.h)
 AC_CHECK_FUNCS(getpagesize)
@@ -1126,6 +1242,7 @@ AU_ALIAS([AC_MMAP], [AC_FUNC_MMAP])
 # AC_FUNC_OBSTACK
 # ---------------
 # Ensure obstack support.  Yeah, this is not exactly a `FUNC' check.
+AN_FUNCTION([obstack_init], [AC_FUNC_OBSTACK])
 AC_DEFUN([AC_FUNC_OBSTACK],
 [AC_LIBSOURCES([obstack.h, obstack.c])dnl
 AC_CACHE_CHECK([for obstacks], ac_cv_func_obstack,
@@ -1175,6 +1292,7 @@ AS_IF([test $ac_cv_func_realloc_works = yes], [$1], [$2])
 # ---------------
 # Report whether `realloc (0, 0)' properly handled, and replace realloc if
 # needed.
+AN_FUNCTION([realloc], [AC_FUNC_REALLOC])
 AC_DEFUN([AC_FUNC_REALLOC],
 [_AC_FUNC_REALLOC_IF(
   [AC_DEFINE([HAVE_REALLOC], 1,
@@ -1192,6 +1310,7 @@ AC_DEFUN([AC_FUNC_REALLOC],
 # Determine the correct type to be passed to each of the `select'
 # function's arguments, and define those types in `SELECT_TYPE_ARG1',
 # `SELECT_TYPE_ARG234', and `SELECT_TYPE_ARG5'.
+AN_FUNCTION([select], [AC_FUNC_SELECT_ARGTYPES])
 AC_DEFUN([AC_FUNC_SELECT_ARGTYPES],
 [AC_CHECK_HEADERS(sys/select.h sys/socket.h)
 AC_CACHE_CHECK([types of arguments for select],
@@ -1235,6 +1354,7 @@ rm -f conftest*
 
 # AC_FUNC_SETPGRP
 # ---------------
+AN_FUNCTION([setpgrp], [AC_FUNC_SETPGRP])
 AC_DEFUN([AC_FUNC_SETPGRP],
 [AC_CACHE_CHECK(whether setpgrp takes no argument, ac_cv_func_setpgrp_void,
 [AC_RUN_IFELSE(
@@ -1287,7 +1407,9 @@ fi
 
 # AC_FUNC_STAT & AC_FUNC_LSTAT
 # ----------------------------
+AN_FUNCTION([stat], [AC_FUNC_STAT])
 AC_DEFUN([AC_FUNC_STAT],  [_AC_FUNC_STAT(stat)])
+AN_FUNCTION([lstat], [AC_FUNC_LSTAT])
 AC_DEFUN([AC_FUNC_LSTAT], [_AC_FUNC_STAT(lstat)])
 
 
@@ -1306,6 +1428,7 @@ fi
 
 # AC_FUNC_STRTOD
 # --------------
+AN_FUNCTION([strtod], [AC_FUNC_STRTOD])
 AC_DEFUN([AC_FUNC_STRTOD],
 [AC_SUBST(POW_LIB)dnl
 AC_CACHE_CHECK(for working strtod, ac_cv_func_strtod,
@@ -1352,6 +1475,7 @@ AU_ALIAS([AM_FUNC_STRTOD], [AC_FUNC_STRTOD])
 
 # AC_FUNC_STRERROR_R
 # ------------------
+AN_FUNCTION([strerror_r], [AC_FUNC_STRERROR_R])
 AC_DEFUN([AC_FUNC_STRERROR_R],
 [AC_CHECK_DECLS([strerror_r])
 AC_CHECK_FUNCS([strerror_r])
@@ -1391,6 +1515,7 @@ fi
 
 # AC_FUNC_STRFTIME
 # ----------------
+AN_FUNCTION([strftime], [AC_FUNC_STRFTIME])
 AC_DEFUN([AC_FUNC_STRFTIME],
 [AC_CHECK_FUNCS(strftime, [],
 [# strftime is in -lintl on SCO UNIX.
@@ -1402,6 +1527,7 @@ LIBS="-lintl $LIBS"])])dnl
 
 # AC_FUNC_STRNLEN
 # --------------
+AN_FUNCTION([strnlen], [AC_FUNC_STRNLEN])
 AC_DEFUN([AC_FUNC_STRNLEN],
 [AC_CACHE_CHECK([for working strnlen], ac_cv_func_strnlen_working,
 [AC_RUN_IFELSE([AC_LANG_PROGRAM([], [[
@@ -1429,6 +1555,7 @@ test $ac_cv_func_strnlen_working = no && AC_LIBOBJ([strnlen])
 
 # AC_FUNC_SETVBUF_REVERSED
 # ------------------------
+AN_FUNCTION([setvbuf], [AC_FUNC_SETVBUF_REVERSED])
 AC_DEFUN([AC_FUNC_SETVBUF_REVERSED],
 [AC_REQUIRE([AC_C_PROTOTYPES])dnl
 AC_CACHE_CHECK(whether setvbuf arguments are reversed,
@@ -1482,6 +1609,7 @@ AU_ALIAS([AC_SETVBUF_REVERSED], [AC_FUNC_SETVBUF_REVERSED])
 
 # AC_FUNC_STRCOLL
 # ---------------
+AN_FUNCTION([strcoll], [AC_FUNC_STRCOLL])
 AC_DEFUN([AC_FUNC_STRCOLL],
 [AC_CACHE_CHECK(for working strcoll, ac_cv_func_strcoll_works,
 [AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
@@ -1506,6 +1634,7 @@ AU_ALIAS([AC_STRCOLL], [AC_FUNC_STRCOLL])
 
 # AC_FUNC_UTIME_NULL
 # ------------------
+AN_FUNCTION([utime], [AC_FUNC_UTIME_NULL])
 AC_DEFUN([AC_FUNC_UTIME_NULL],
 [AC_CACHE_CHECK(whether utime accepts a null argument, ac_cv_func_utime_null,
 [rm -f conftest.data; >conftest.data
@@ -1537,6 +1666,7 @@ AU_ALIAS([AC_UTIME_NULL], [AC_FUNC_UTIME_NULL])
 
 # AC_FUNC_FORK
 # -------------
+AN_FUNCTION([fork], [AC_FUNC_FORK])
 AC_DEFUN([AC_FUNC_FORK],
 [AC_REQUIRE([AC_TYPE_PID_T])dnl
 AC_CHECK_HEADERS(unistd.h vfork.h)
@@ -1716,6 +1846,10 @@ AU_ALIAS([AC_VFORK], [AC_FUNC_FORK])
 # ---------------
 # Why the heck is that _doprnt does not define HAVE__DOPRNT???
 # That the logical name!
+AN_FUNCTION([vfprintf], [AC_FUNC_VPRINTF])
+AN_FUNCTION([vprintf],  [AC_FUNC_VPRINTF])
+AN_FUNCTION([vsprintf], [AC_FUNC_VPRINTF])
+AN_FUNCTION([_doprnt],  [AC_FUNC_VPRINTF])
 AC_DEFUN([AC_FUNC_VPRINTF],
 [AC_CHECK_FUNCS(vprintf, []
 [AC_CHECK_FUNC(_doprnt,
@@ -1735,6 +1869,7 @@ AU_ALIAS([AC_VPRINTF], [AC_FUNC_VPRINTF])
 # Don't bother too hard maintaining this macro, as it's obsoleted.
 # We don't AU define it, since we don't have any alternative to propose,
 # any invocation should be removed, and the code adjusted.
+AN_FUNCTION([wait3], [AC_FUNC_WAIT3])
 AC_DEFUN([AC_FUNC_WAIT3],
 [AC_DIAGNOSE([obsolete],
 [$0: `wait3' is being removed from the Open Group standards.
index cc18a08cf5ddca4f7ec8f7a978a80e47f1c5bfda..a7511a25f333084eee9af2fdd877061154ca4286 100644 (file)
@@ -54,7 +54,8 @@
 #
 # 1. Generic tests for headers
 # 2. Default includes
-# 3. Tests for specific headers
+# 3. Headers to tests with AC_CHECK_HEADERS
+# 4. Tests for specific headers
 
 
 ## ------------------------------ ##
@@ -195,7 +196,6 @@ done
 
 
 
-
 ## --------------------- ##
 ## 2. Default includes.  ##
 ## --------------------- ##
@@ -274,8 +274,71 @@ $ac_includes_default])])
 
 
 
+## ------------------------------------------- ##
+## 3. Headers to check with AC_CHECK_HEADERS.  ##
+## ------------------------------------------- ##
+
+# errno.h is portable.
+
+AN_HEADER([OS.h],               [AC_CHECK_HEADERS])
+AN_HEADER([argz.h],             [AC_CHECK_HEADERS])
+AN_HEADER([arpa/inet.h],        [AC_CHECK_HEADERS])
+AN_HEADER([fcntl.h],            [AC_CHECK_HEADERS])
+AN_HEADER([fenv.h],             [AC_CHECK_HEADERS])
+AN_HEADER([fs_info.h],          [AC_CHECK_HEADERS])
+AN_HEADER([inttypes.h],         [AC_CHECK_HEADERS])
+AN_HEADER([langinfo.h],         [AC_CHECK_HEADERS])
+AN_HEADER([libintl.h],          [AC_CHECK_HEADERS])
+AN_HEADER([limits.h],           [AC_CHECK_HEADERS])
+AN_HEADER([locale.h],           [AC_CHECK_HEADERS])
+AN_HEADER([mach/mach.h],        [AC_CHECK_HEADERS])
+AN_HEADER([malloc.h],           [AC_CHECK_HEADERS])
+AN_HEADER([memory.h],           [AC_CHECK_HEADERS])
+AN_HEADER([mntent.h],           [AC_CHECK_HEADERS])
+AN_HEADER([mnttab.h],           [AC_CHECK_HEADERS])
+AN_HEADER([netdb.h],            [AC_CHECK_HEADERS])
+AN_HEADER([netinet/in.h],       [AC_CHECK_HEADERS])
+AN_HEADER([nl_types.h],         [AC_CHECK_HEADERS])
+AN_HEADER([nlist.h],            [AC_CHECK_HEADERS])
+AN_HEADER([paths.h],            [AC_CHECK_HEADERS])
+AN_HEADER([sgtty.h],            [AC_CHECK_HEADERS])
+AN_HEADER([shadow.h],           [AC_CHECK_HEADERS])
+AN_HEADER([stdint.h],           [AC_CHECK_HEADERS])
+AN_HEADER([stdio_ext.h],        [AC_CHECK_HEADERS])
+AN_HEADER([strings.h],          [AC_CHECK_HEADERS])
+AN_HEADER([sys/acl.h],          [AC_CHECK_HEADERS])
+AN_HEADER([sys/file.h],         [AC_CHECK_HEADERS])
+AN_HEADER([sys/filsys.h],       [AC_CHECK_HEADERS])
+AN_HEADER([sys/fs/s5param.h],   [AC_CHECK_HEADERS])
+AN_HEADER([sys/fs_types.h],     [AC_CHECK_HEADERS])
+AN_HEADER([sys/fstyp.h],        [AC_CHECK_HEADERS])
+AN_HEADER([sys/ioctl.h],        [AC_CHECK_HEADERS])
+AN_HEADER([sys/mntent.h],       [AC_CHECK_HEADERS])
+AN_HEADER([sys/mount.h],        [AC_CHECK_HEADERS])
+AN_HEADER([sys/param.h],        [AC_CHECK_HEADERS])
+AN_HEADER([sys/socket.h],       [AC_CHECK_HEADERS])
+AN_HEADER([sys/statfs.h],       [AC_CHECK_HEADERS])
+AN_HEADER([sys/statvfs.h],      [AC_CHECK_HEADERS])
+AN_HEADER([sys/systeminfo.h],   [AC_CHECK_HEADERS])
+AN_HEADER([sys/time.h],         [AC_CHECK_HEADERS])
+AN_HEADER([sys/timeb.h],        [AC_CHECK_HEADERS])
+AN_HEADER([sys/vfs.h],          [AC_CHECK_HEADERS])
+AN_HEADER([sys/window.h],       [AC_CHECK_HEADERS])
+AN_HEADER([syslog.h],           [AC_CHECK_HEADERS])
+AN_HEADER([termio.h],           [AC_CHECK_HEADERS])
+AN_HEADER([termios.h],          [AC_CHECK_HEADERS])
+AN_HEADER([unistd.h],           [AC_CHECK_HEADERS])
+AN_HEADER([utime.h],            [AC_CHECK_HEADERS])
+AN_HEADER([utmp.h],             [AC_CHECK_HEADERS])
+AN_HEADER([utmpx.h],            [AC_CHECK_HEADERS])
+AN_HEADER([values.h],           [AC_CHECK_HEADERS])
+AN_HEADER([wchar.h],            [AC_CHECK_HEADERS])
+AN_HEADER([wctype.h],           [AC_CHECK_HEADERS])
+
+
+
 ## ------------------------------- ##
-## 3. Tests for specific headers.  ##
+## 4. Tests for specific headers.  ##
 ## ------------------------------- ##
 
 
@@ -357,6 +420,13 @@ fi
 # AC_HEADER_STAT
 # --------------
 # FIXME: Shouldn't this be named AC_HEADER_SYS_STAT?
+AN_IDENTIFIER([S_ISBLK], [AC_HEADER_STAT])
+AN_IDENTIFIER([S_ISCHR], [AC_HEADER_STAT])
+AN_IDENTIFIER([S_ISDIR], [AC_HEADER_STAT])
+AN_IDENTIFIER([S_ISFIFO], [AC_HEADER_STAT])
+AN_IDENTIFIER([S_ISLNK], [AC_HEADER_STAT])
+AN_IDENTIFIER([S_ISREG], [AC_HEADER_STAT])
+AN_IDENTIFIER([S_ISSOCK], [AC_HEADER_STAT])
 AC_DEFUN([AC_HEADER_STAT],
 [AC_CACHE_CHECK(whether stat file-mode macros are broken,
   ac_cv_header_stat_broken,
index 21e02290204b9e33a86bd91508d3b60294837547..1be81e132eb70beb6ca84c28f0a23809150c7988 100644 (file)
@@ -1,5 +1,41 @@
 ## Process this file with automake to create Makefile.in
 
+## Copyright 2001, 2002 Free Software Foundation, Inc.
+##
+## 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.
+
 autoscanlibdir = $(pkgdatadir)/autoscan
 
-dist_autoscanlib_DATA = autoscan.list
+dist_autoscanlib_DATA = autoscan.pre autoscan.list
+
+
+## ------------------------ ##
+## Building autoscan.list.  ##
+## ------------------------ ##
+
+## autoscan.list might change when autoconf.m4f sources change.
+## Therefore we want the same dependencies as autoconf.m4f, which
+## are listed in freeze.mk.  It also ensure that tests/autom4te
+## is built (we need it in the command below).
+include ../freeze.mk
+
+autoscan.list: Makefile.am autoscan.pre $(autoconf_m4f_dependencies)
+       echo '# Automatically Generated: do not edit this file' > autoscan.list
+       sed '/^[#]/!q' autoscan.pre >>autoscan.list
+       ( \
+         sed -n '/^[^#]/p' autoscan.pre; \
+         $(MY_AUTOM4TE) -M -l autoconf -t'AN_OUTPUT:$$1: $$2           $$3' \
+       ) | sort >>autoscan.list
index f4efcc4841c4eb40b42ae580967b574decdad0f1..5efa65c7aa968d054b63621b8f179e120f109e12 100644 (file)
@@ -93,18 +93,76 @@ target_alias = @target_alias@
 
 autoscanlibdir = $(pkgdatadir)/autoscan
 
-dist_autoscanlib_DATA = autoscan.list
+dist_autoscanlib_DATA = autoscan.pre autoscan.list
+
+SUFFIXES = .m4 .m4f
+
+# Do not use AUTOM4TE here, since Makefile.maint (my-distcheck)
+# checks if we are independent of Autoconf by defining AUTOM4TE (and
+# others) to `false'.  But we _ship_ tests/autom4te, so it doesn't
+# apply to us.
+MY_AUTOM4TE = $(top_builddir)/tests/autom4te
+
+AUTOM4TE_CFG = $(top_builddir)/lib/autom4te.cfg
+
+# Factor the dependencies between all the frozen files.
+# Some day we should explain to Automake how to use autom4te to compute
+# the dependencies...
+src_libdir = $(top_srcdir)/lib
+build_libdir = $(top_builddir)/lib
+
+m4f_dependencies = $(MY_AUTOM4TE) $(AUTOM4TE_CFG)
+
+m4sugar_m4f_dependencies = \
+       $(m4f_dependencies)                     \
+       $(src_libdir)/m4sugar/m4sugar.m4        \
+       $(build_libdir)/m4sugar/version.m4
+
+
+m4sh_m4f_dependencies = \
+       $(m4sugar_m4f_dependencies)             \
+       $(src_libdir)/m4sugar/m4sh.m4
+
+
+autotest_m4f_dependencies = \
+       $(m4sh_m4f_dependencies)                \
+       $(src_libdir)/autotest/autotest.m4      \
+       $(src_libdir)/autotest/general.m4
+
+
+autoconf_m4f_dependencies = \
+       $(m4sh_m4f_dependencies)                \
+       $(src_libdir)/autoconf/autoscan.m4      \
+       $(src_libdir)/autoconf/general.m4       \
+       $(src_libdir)/autoconf/autoheader.m4    \
+       $(src_libdir)/autoconf/autoupdate.m4    \
+       $(src_libdir)/autoconf/autotest.m4      \
+       $(src_libdir)/autoconf/status.m4        \
+       $(src_libdir)/autoconf/oldnames.m4      \
+       $(src_libdir)/autoconf/specific.m4      \
+       $(src_libdir)/autoconf/lang.m4          \
+       $(src_libdir)/autoconf/c.m4             \
+       $(src_libdir)/autoconf/fortran.m4       \
+       $(src_libdir)/autoconf/functions.m4     \
+       $(src_libdir)/autoconf/headers.m4       \
+       $(src_libdir)/autoconf/types.m4         \
+       $(src_libdir)/autoconf/libs.m4          \
+       $(src_libdir)/autoconf/programs.m4      \
+       $(src_libdir)/autoconf/autoconf.m4
+
 subdir = lib/autoscan
 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
 CONFIG_CLEAN_FILES =
 DIST_SOURCES =
 DATA = $(dist_autoscanlib_DATA)
 
-DIST_COMMON = $(dist_autoscanlib_DATA) Makefile.am Makefile.in
+DIST_COMMON = $(dist_autoscanlib_DATA) $(srcdir)/../freeze.mk \
+       Makefile.am Makefile.in
 all: all-am
 
 .SUFFIXES:
-$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
+.SUFFIXES: .m4 .m4f
+$(srcdir)/Makefile.in:  Makefile.am $(srcdir)/../freeze.mk $(top_srcdir)/configure.ac $(ACLOCAL_M4)
        cd $(top_srcdir) && \
          $(AUTOMAKE) --gnu  lib/autoscan/Makefile
 Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
@@ -140,6 +198,7 @@ top_distdir = ../..
 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
 
 distdir: $(DISTFILES)
+       $(mkinstalldirs) $(distdir)/$(srcdir)/..
        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
        list='$(DISTFILES)'; for file in $$list; do \
          case $$file in \
@@ -249,6 +308,34 @@ uninstall-am: uninstall-dist_autoscanlibDATA uninstall-info-am
        pdf-am ps ps-am uninstall uninstall-am \
        uninstall-dist_autoscanlibDATA uninstall-info-am
 
+$(MY_AUTOM4TE):
+       cd $(top_builddir)/tests && $(MAKE) $(AM_MAKEFLAGS) autom4te
+$(AUTOM4TE_CFG):
+       cd $(top_builddir)/lib && $(MAKE) $(AM_MAKEFLAGS) autom4te.cfg
+
+# When processing the file with diversion disabled, there must be no
+# output but comments and empty lines.
+# If freezing produces output, something went wrong: a bad `divert',
+# or an improper paren etc.
+# It may happen that the output does not end with a end of line, hence
+# force an end of line when reporting errors.
+.m4.m4f:
+       $(MY_AUTOM4TE)                          \
+               --language=$*                   \
+               --freeze                        \
+               --output=$@
+
+# For parallel builds.
+$(build_libdir)/m4sugar/version.m4:
+       cd $(build_libdir)/m4sugar && $(MAKE) $(AM_MAKEFLAGS) version.m4
+
+autoscan.list: Makefile.am autoscan.pre $(autoconf_m4f_dependencies)
+       echo '# Automatically Generated: do not edit this file' > autoscan.list
+       sed '/^[#]/!q' autoscan.pre >>autoscan.list
+       ( \
+         sed -n '/^[^#]/p' autoscan.pre; \
+         $(MY_AUTOM4TE) -M -l autoconf -t'AN_OUTPUT:$$1: $$2           $$3' \
+       ) | sort >>autoscan.list
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
index f302520fb6ed354e6f9078d2ea2541a2000f1ff5..5b446094cbdd6a3c232669c7e8d6e79ca2e61261 100644 (file)
-# autoscan's mapping to Autoconf macros          -*- Makefile -*-
+# Automatically Generated: do not edit this file
+# autoscan's mapping to Autoconf macros      -*- Makefile -*-
 # Copyright (C) 1992, 1993, 1994, 1996, 1999, 2000, 2001, 2002
 # Free Software Foundation, Inc.
-
+#
 # 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.
 
-function: __argz_count            AC_CHECK_FUNCS
-function: __argz_next             AC_CHECK_FUNCS
-function: __argz_stringify        AC_CHECK_FUNCS
-function: __fpending              AC_CHECK_FUNCS
-function: acl                     AC_CHECK_FUNCS
-function: alarm                   AC_CHECK_FUNCS
-function: alloca                  AC_FUNC_ALLOCA
-function: atexit                  AC_CHECK_FUNCS
+function: __argz_count         AC_CHECK_FUNCS
+function: __argz_next          AC_CHECK_FUNCS
+function: __argz_stringify             AC_CHECK_FUNCS
+function: __fpending           AC_CHECK_FUNCS
+function: _doprnt              AC_FUNC_VPRINTF
+function: acl          AC_CHECK_FUNCS
+function: alarm                AC_CHECK_FUNCS
+function: alloca               AC_FUNC_ALLOCA
+function: atexit               AC_CHECK_FUNCS
 function: bcmp                    AC_HEADER_STDC
 function: bcopy                   AC_HEADER_STDC
-function: btowc                   AC_CHECK_FUNCS
+function: btowc                AC_CHECK_FUNCS
 function: bzero                   AC_CHECK_FUNCS
 function: bzero                   AC_HEADER_STDC
-function: chown                   AC_FUNC_CHOWN
-function: clock_gettime           AC_CHECK_FUNCS
+function: chown                AC_FUNC_CHOWN
+function: clock_gettime                AC_CHECK_FUNCS
+function: closedir             AC_FUNC_CLOSEDIR_VOID
 function: dcgettext               AM_GNU_GETTEXT
-function: doprnt                  AC_CHECK_FUNCS
-function: dup2                    AC_CHECK_FUNCS
-function: endgrent                AC_CHECK_FUNCS
-function: endpwent                AC_CHECK_FUNCS
+function: doprnt               AC_CHECK_FUNCS
+function: dup2         AC_CHECK_FUNCS
+function: endgrent             AC_CHECK_FUNCS
+function: endpwent             AC_CHECK_FUNCS
 function: error                   AC_FUNC_ERROR_AT_LINE
-function: error_at_line           AC_FUNC_ERROR_AT_LINE
-function: euidaccess              AC_CHECK_FUNCS
-function: fchdir                  AC_CHECK_FUNCS
-function: fdatasync               AC_CHECK_FUNCS
-function: fesetround              AC_CHECK_FUNCS
-function: floor                   AC_CHECK_FUNCS
+function: error_at_line                AC_FUNC_ERROR_AT_LINE
+function: euidaccess           AC_CHECK_FUNCS
+function: fchdir               AC_CHECK_FUNCS
+function: fdatasync            AC_CHECK_FUNCS
+function: fesetround           AC_CHECK_FUNCS
+function: floor                AC_CHECK_FUNCS
 function: fnmatch                 AC_FUNC_FNMATCH
-function: fork                    AC_FUNC_FORK
-function: fs_stat_dev             AC_CHECK_FUNCS
-function: fseeko                  AC_FUNC_FSEEKO
-function: ftello                  AC_FUNC_FSEEKO
-function: ftime                   AC_CHECK_FUNCS
-function: ftruncate               AC_CHECK_FUNCS
-function: getcwd                  AC_CHECK_FUNCS
-function: getdelim                AC_CHECK_FUNCS
-function: getgroups               AC_FUNC_GETGROUPS
-function: gethostbyaddr           AC_CHECK_FUNCS
-function: gethostbyname           AC_CHECK_FUNCS
-function: gethostname             AC_CHECK_FUNCS
-function: gethrtime               AC_CHECK_FUNCS
-function: getloadavg              AC_FUNC_GETLOADAVG
-function: getmntent               AC_CHECK_FUNCS
-function: getmntinfo              AC_CHECK_FUNCS
-function: getpagesize             AC_CHECK_FUNCS
-function: getpass                 AC_CHECK_FUNCS
-function: getpgrp                 AC_FUNC_GETPGRP
-function: getspnam                AC_CHECK_FUNCS
-function: gettimeofday            AC_CHECK_FUNCS
-function: getusershell            AC_CHECK_FUNCS
+function: fork         AC_FUNC_FORK
+function: fs_stat_dev          AC_CHECK_FUNCS
+function: fseeko               AC_FUNC_FSEEKO
+function: ftello               AC_FUNC_FSEEKO
+function: ftime                AC_CHECK_FUNCS
+function: ftruncate            AC_CHECK_FUNCS
+function: getcwd               AC_CHECK_FUNCS
+function: getdelim             AC_CHECK_FUNCS
+function: getgroups            AC_FUNC_GETGROUPS
+function: gethostbyaddr                AC_CHECK_FUNCS
+function: gethostbyname                AC_CHECK_FUNCS
+function: gethostname          AC_CHECK_FUNCS
+function: gethrtime            AC_CHECK_FUNCS
+function: getloadavg           AC_FUNC_GETLOADAVG
+function: getmntent            AC_CHECK_FUNCS
+function: getmntent            AC_FUNC_GETMNTENT
+function: getmntinfo           AC_CHECK_FUNCS
+function: getpagesize          AC_CHECK_FUNCS
+function: getpass              AC_CHECK_FUNCS
+function: getpgrp              AC_FUNC_GETPGRP
+function: getspnam             AC_CHECK_FUNCS
+function: gettimeofday         AC_CHECK_FUNCS
+function: getusershell         AC_CHECK_FUNCS
 function: getwd          warn: getwd is deprecated, use getcwd instead
-function: hasmntopt               AC_CHECK_FUNCS
+function: hasmntopt            AC_CHECK_FUNCS
 function: index                   AC_HEADER_STDC
-function: inet_ntoa               AC_CHECK_FUNCS
+function: inet_ntoa            AC_CHECK_FUNCS
 function: ioctl                   AC_PROG_GCC_TRADITIONAL
-function: isascii                 AC_CHECK_FUNCS
-function: iswprint                AC_CHECK_FUNCS
-function: lchown                  AC_CHECK_FUNCS
-function: listmntent              AC_CHECK_FUNCS
-function: localeconv              AC_CHECK_FUNCS
-function: localtime_r             AC_CHECK_FUNCS
-function: lstat                   AC_FUNC_LSTAT
+function: isascii              AC_CHECK_FUNCS
+function: iswprint             AC_CHECK_FUNCS
+function: lchown               AC_CHECK_FUNCS
+function: listmntent           AC_CHECK_FUNCS
+function: localeconv           AC_CHECK_FUNCS
+function: localtime_r          AC_CHECK_FUNCS
+function: lstat                AC_FUNC_LSTAT
+function: lstat                AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
 function: major                   AC_HEADER_MAJOR
 function: makedev                 AC_HEADER_MAJOR
-function: malloc                  AC_FUNC_MALLOC
-function: mblen                   AC_CHECK_FUNCS
-function: mbrlen                  AC_CHECK_FUNCS
-function: mbrtowc                 AC_FUNC_MBRTOWC
+function: malloc               AC_FUNC_MALLOC
+function: mblen                AC_CHECK_FUNCS
+function: mbrlen               AC_CHECK_FUNCS
+function: mbrtowc              AC_FUNC_MBRTOWC
 function: memchr                  AC_CHECK_FUNCS
 function: memchr                  AC_HEADER_STDC
-function: memcmp                  AC_FUNC_MEMCMP
+function: memcmp               AC_FUNC_MEMCMP
 function: memcpy                  AC_HEADER_STDC
 function: memmove                 AC_CHECK_FUNCS
 function: memmove                 AC_HEADER_STDC
-function: mempcpy                 AC_CHECK_FUNCS
+function: mempcpy              AC_CHECK_FUNCS
 function: memset                  AC_CHECK_FUNCS
 function: memset                  AC_HEADER_STDC
 function: minor                   AC_HEADER_MAJOR
-function: mkdir                   AC_CHECK_FUNCS
-function: mkfifo                  AC_CHECK_FUNCS
-function: mktime                  AC_FUNC_MKTIME
-function: mmap                    AC_FUNC_MMAP
-function: modf                    AC_CHECK_FUNCS
-function: munmap                  AC_CHECK_FUNCS
-function: next_dev                AC_CHECK_FUNCS
-function: nl_langinfo             AC_CHECK_FUNCS
-function: obstack_init            AC_FUNC_OBSTACK
-function: pathconf                AC_CHECK_FUNCS
-function: pow                     AC_CHECK_FUNCS
-function: pstat_getdynamic        AC_CHECK_FUNCS
-function: putenv                  AC_CHECK_FUNCS
-function: re_comp                 AC_CHECK_FUNCS
-function: realloc                 AC_FUNC_REALLOC
-function: realpath                AC_CHECK_FUNCS
-function: regcmp                  AC_CHECK_FUNCS
-function: regcomp                 AC_CHECK_FUNCS
-function: resolvepath             AC_CHECK_FUNCS
+function: mkdir                AC_CHECK_FUNCS
+function: mkfifo               AC_CHECK_FUNCS
+function: mktime               AC_FUNC_MKTIME
+function: mmap         AC_FUNC_MMAP
+function: modf         AC_CHECK_FUNCS
+function: munmap               AC_CHECK_FUNCS
+function: next_dev             AC_CHECK_FUNCS
+function: nl_langinfo          AC_CHECK_FUNCS
+function: obstack_init         AC_FUNC_OBSTACK
+function: pathconf             AC_CHECK_FUNCS
+function: pow          AC_CHECK_FUNCS
+function: pstat_getdynamic             AC_CHECK_FUNCS
+function: putenv               AC_CHECK_FUNCS
+function: re_comp              AC_CHECK_FUNCS
+function: realloc              AC_FUNC_REALLOC
+function: realpath             AC_CHECK_FUNCS
+function: regcmp               AC_CHECK_FUNCS
+function: regcomp              AC_CHECK_FUNCS
+function: resolvepath          AC_CHECK_FUNCS
 function: rindex                  AC_HEADER_STDC
-function: rint                    AC_CHECK_FUNCS
-function: rmdir                   AC_CHECK_FUNCS
-function: rpmatch                 AC_CHECK_FUNCS
-function: select                  AC_CHECK_FUNCS
-function: setenv                  AC_CHECK_FUNCS
-function: sethostname             AC_CHECK_FUNCS
-function: setlocale               AC_CHECK_FUNCS
-function: setpgrp                 AC_FUNC_SETPGRP
-function: setvbuf                 AC_FUNC_SETVBUF_REVERSED
+function: rint         AC_CHECK_FUNCS
+function: rmdir                AC_CHECK_FUNCS
+function: rpmatch              AC_CHECK_FUNCS
+function: select               AC_CHECK_FUNCS
+function: select               AC_FUNC_SELECT_ARGTYPES
+function: setenv               AC_CHECK_FUNCS
+function: sethostname          AC_CHECK_FUNCS
+function: setlocale            AC_CHECK_FUNCS
+function: setpgrp              AC_FUNC_SETPGRP
+function: setvbuf              AC_FUNC_SETVBUF_REVERSED
 function: signal                  AC_TYPE_SIGNAL
-function: socket                  AC_CHECK_FUNCS
-function: sqrt                    AC_CHECK_FUNCS
-function: stat                    AC_FUNC_STAT
-function: stime                   AC_CHECK_FUNCS
-function: stpcpy                  AC_CHECK_FUNCS
-function: strcasecmp              AC_CHECK_FUNCS
-function: strchr                  AC_CHECK_FUNCS
-function: strcoll                 AC_FUNC_STRCOLL
-function: strcspn                 AC_CHECK_FUNCS
-function: strdup                  AC_CHECK_FUNCS
-function: strerror                AC_CHECK_FUNCS
-function: strerror_r              AC_FUNC_STRERROR_R
-function: strftime                AC_FUNC_STRFTIME
-function: strncasecmp             AC_CHECK_FUNCS
-function: strndup                 AC_CHECK_FUNCS
-function: strnlen                 AC_FUNC_STRNLEN
-function: strpbrk                 AC_CHECK_FUNCS
-function: strrchr                 AC_CHECK_FUNCS
-function: strspn                  AC_CHECK_FUNCS
-function: strstr                  AC_CHECK_FUNCS
-function: strtod                  AC_FUNC_STRTOD
-function: strtol                  AC_CHECK_FUNCS
-function: strtoul                 AC_CHECK_FUNCS
-function: strtoull                AC_CHECK_FUNCS
-function: strtoumax               AC_CHECK_FUNCS
-function: strverscmp              AC_CHECK_FUNCS
-function: sysinfo                 AC_CHECK_FUNCS
-function: tzset                   AC_CHECK_FUNCS
-function: uname                   AC_CHECK_FUNCS
+function: socket               AC_CHECK_FUNCS
+function: sqrt         AC_CHECK_FUNCS
+function: stat         AC_FUNC_STAT
+function: stime                AC_CHECK_FUNCS
+function: stpcpy               AC_CHECK_FUNCS
+function: strcasecmp           AC_CHECK_FUNCS
+function: strchr               AC_CHECK_FUNCS
+function: strcoll              AC_FUNC_STRCOLL
+function: strcspn              AC_CHECK_FUNCS
+function: strdup               AC_CHECK_FUNCS
+function: strerror             AC_CHECK_FUNCS
+function: strerror_r           AC_FUNC_STRERROR_R
+function: strftime             AC_FUNC_STRFTIME
+function: strncasecmp          AC_CHECK_FUNCS
+function: strndup              AC_CHECK_FUNCS
+function: strnlen              AC_FUNC_STRNLEN
+function: strpbrk              AC_CHECK_FUNCS
+function: strrchr              AC_CHECK_FUNCS
+function: strspn               AC_CHECK_FUNCS
+function: strstr               AC_CHECK_FUNCS
+function: strtod               AC_FUNC_STRTOD
+function: strtol               AC_CHECK_FUNCS
+function: strtoul              AC_CHECK_FUNCS
+function: strtoull             AC_CHECK_FUNCS
+function: strtoumax            AC_CHECK_FUNCS
+function: strverscmp           AC_CHECK_FUNCS
+function: sysinfo              AC_CHECK_FUNCS
+function: tzset                AC_CHECK_FUNCS
+function: uname                AC_CHECK_FUNCS
+function: utime                AC_FUNC_UTIME_NULL
 function: utime                   AC_CHECK_FUNCS
-function: utime                   AC_FUNC_UTIME_NULL
-function: utmpname                AC_CHECK_FUNCS
-function: utmpxname               AC_CHECK_FUNCS
+function: utmpname             AC_CHECK_FUNCS
+function: utmpxname            AC_CHECK_FUNCS
 function: vfork                   AC_FUNC_FORK
-function: vfprintf                AC_FUNC_VPRINTF
-function: vprintf                 AC_FUNC_VPRINTF
-function: vsprintf                AC_FUNC_VPRINTF
-function: wait3                   AC_FUNC_WAIT3
-function: wcwidth                 AC_CHECK_FUNCS
-header: OS.h                    AC_CHECK_HEADERS
+function: vfprintf             AC_FUNC_VPRINTF
+function: vprintf              AC_FUNC_VPRINTF
+function: vsprintf             AC_FUNC_VPRINTF
+function: wait3                AC_FUNC_WAIT3
+function: wcwidth              AC_CHECK_FUNCS
+header: OS.h           AC_CHECK_HEADERS
 header: X11/Xlib.h      AC_PATH_X
 header: alloca.h        AC_FUNC_ALLOCA
-header: argz.h                  AC_CHECK_HEADERS
-header: arpa/inet.h             AC_CHECK_HEADERS
+header: argz.h         AC_CHECK_HEADERS
+header: arpa/inet.h            AC_CHECK_HEADERS
 header: dirent.h        AC_HEADER_DIRENT
-header: fcntl.h                 AC_CHECK_HEADERS
-header: fenv.h                  AC_CHECK_HEADERS
+header: fcntl.h                AC_CHECK_HEADERS
+header: fenv.h         AC_CHECK_HEADERS
 header: float.h         AC_CHECK_HEADERS
 header: float.h         AC_HEADER_STDC
-header: fs_info.h               AC_CHECK_HEADERS
-header: inttypes.h              AC_CHECK_HEADERS
-header: langinfo.h              AC_CHECK_HEADERS
-header: libintl.h               AC_CHECK_HEADERS
-header: limits.h                AC_CHECK_HEADERS
-header: locale.h                AC_CHECK_HEADERS
-header: mach/mach.h             AC_CHECK_HEADERS
-header: malloc.h                AC_CHECK_HEADERS
-header: memory.h                AC_CHECK_HEADERS
-header: mntent.h                AC_CHECK_HEADERS
-header: mnttab.h                AC_CHECK_HEADERS
+header: fs_info.h              AC_CHECK_HEADERS
+header: inttypes.h             AC_CHECK_HEADERS
+header: langinfo.h             AC_CHECK_HEADERS
+header: libintl.h              AC_CHECK_HEADERS
+header: limits.h               AC_CHECK_HEADERS
+header: locale.h               AC_CHECK_HEADERS
+header: mach/mach.h            AC_CHECK_HEADERS
+header: malloc.h               AC_CHECK_HEADERS
+header: memory.h               AC_CHECK_HEADERS
+header: mntent.h               AC_CHECK_HEADERS
+header: mnttab.h               AC_CHECK_HEADERS
 header: ndir.h          AC_HEADER_DIRENT
-header: netdb.h                 AC_CHECK_HEADERS
-header: netinet/in.h            AC_CHECK_HEADERS
-header: nl_types.h              AC_CHECK_HEADERS
-header: nlist.h                 AC_CHECK_HEADERS
-header: paths.h                 AC_CHECK_HEADERS
-header: sgtty.h                 AC_CHECK_HEADERS
-header: shadow.h                AC_CHECK_HEADERS
+header: netdb.h                AC_CHECK_HEADERS
+header: netinet/in.h           AC_CHECK_HEADERS
+header: nl_types.h             AC_CHECK_HEADERS
+header: nlist.h                AC_CHECK_HEADERS
+header: paths.h                AC_CHECK_HEADERS
+header: sgtty.h                AC_CHECK_HEADERS
+header: shadow.h               AC_CHECK_HEADERS
 header: stdarg.h        AC_HEADER_STDC
 header: stddef.h        AC_CHECK_HEADERS
 header: stddef.h        AC_HEADER_STDC
-header: stdint.h                AC_CHECK_HEADERS
-header: stdio_ext.h             AC_CHECK_HEADERS
+header: stdint.h               AC_CHECK_HEADERS
+header: stdio_ext.h            AC_CHECK_HEADERS
 header: stdlib.h        AC_CHECK_HEADERS
 header: stdlib.h        AC_HEADER_STDC
 header: string.h        AC_CHECK_HEADERS
 header: string.h        AC_HEADER_STDC
-header: strings.h               AC_CHECK_HEADERS
-header: sys/acl.h               AC_CHECK_HEADERS
+header: strings.h              AC_CHECK_HEADERS
+header: sys/acl.h              AC_CHECK_HEADERS
 header: sys/dir.h       AC_HEADER_DIRENT
-header: sys/file.h              AC_CHECK_HEADERS
-header: sys/filsys.h            AC_CHECK_HEADERS
-header: sys/fs/s5param.h        AC_CHECK_HEADERS
-header: sys/fs_types.h          AC_CHECK_HEADERS
-header: sys/fstyp.h             AC_CHECK_HEADERS
-header: sys/ioctl.h             AC_CHECK_HEADERS
+header: sys/file.h             AC_CHECK_HEADERS
+header: sys/filsys.h           AC_CHECK_HEADERS
+header: sys/fs/s5param.h               AC_CHECK_HEADERS
+header: sys/fs_types.h         AC_CHECK_HEADERS
+header: sys/fstyp.h            AC_CHECK_HEADERS
+header: sys/ioctl.h            AC_CHECK_HEADERS
 header: sys/mkdev.h     AC_HEADER_MAJOR
-header: sys/mntent.h            AC_CHECK_HEADERS
-header: sys/mount.h             AC_CHECK_HEADERS
+header: sys/mntent.h           AC_CHECK_HEADERS
+header: sys/mount.h            AC_CHECK_HEADERS
 header: sys/ndir.h      AC_HEADER_DIRENT
-header: sys/param.h             AC_CHECK_HEADERS
-header: sys/socket.h            AC_CHECK_HEADERS
-header: sys/statfs.h            AC_CHECK_HEADERS
-header: sys/statvfs.h           AC_CHECK_HEADERS
-header: sys/systeminfo.h        AC_CHECK_HEADERS
-header: sys/time.h              AC_CHECK_HEADERS
-header: sys/timeb.h             AC_CHECK_HEADERS
-header: sys/vfs.h               AC_CHECK_HEADERS
+header: sys/param.h            AC_CHECK_HEADERS
+header: sys/socket.h           AC_CHECK_HEADERS
+header: sys/statfs.h           AC_CHECK_HEADERS
+header: sys/statvfs.h          AC_CHECK_HEADERS
+header: sys/systeminfo.h               AC_CHECK_HEADERS
+header: sys/time.h             AC_CHECK_HEADERS
+header: sys/timeb.h            AC_CHECK_HEADERS
+header: sys/vfs.h              AC_CHECK_HEADERS
 header: sys/wait.h      AC_HEADER_SYS_WAIT
-header: sys/window.h            AC_CHECK_HEADERS
-header: syslog.h                AC_CHECK_HEADERS
-header: termio.h                AC_CHECK_HEADERS
-header: termios.h               AC_CHECK_HEADERS
-header: unistd.h                AC_CHECK_HEADERS
-header: utime.h                 AC_CHECK_HEADERS
-header: utmp.h                  AC_CHECK_HEADERS
-header: utmpx.h                 AC_CHECK_HEADERS
-header: values.h                AC_CHECK_HEADERS
-header: wchar.h                 AC_CHECK_HEADERS
-header: wctype.h                AC_CHECK_HEADERS
-identifier: S_ISBLK         AC_HEADER_STAT
-identifier: S_ISCHR         AC_HEADER_STAT
-identifier: S_ISDIR         AC_HEADER_STAT
-identifier: S_ISFIFO        AC_HEADER_STAT
-identifier: S_ISLNK         AC_HEADER_STAT
-identifier: S_ISREG         AC_HEADER_STAT
-identifier: S_ISSOCK        AC_HEADER_STAT
+header: sys/window.h           AC_CHECK_HEADERS
+header: syslog.h               AC_CHECK_HEADERS
+header: termio.h               AC_CHECK_HEADERS
+header: termios.h              AC_CHECK_HEADERS
+header: unistd.h               AC_CHECK_HEADERS
+header: utime.h                AC_CHECK_HEADERS
+header: utmp.h         AC_CHECK_HEADERS
+header: utmpx.h                AC_CHECK_HEADERS
+header: values.h               AC_CHECK_HEADERS
+header: wchar.h                AC_CHECK_HEADERS
+header: wctype.h               AC_CHECK_HEADERS
+identifier: S_ISBLK            AC_HEADER_STAT
+identifier: S_ISCHR            AC_HEADER_STAT
+identifier: S_ISDIR            AC_HEADER_STAT
+identifier: S_ISFIFO           AC_HEADER_STAT
+identifier: S_ISLNK            AC_HEADER_STAT
+identifier: S_ISREG            AC_HEADER_STAT
+identifier: S_ISSOCK           AC_HEADER_STAT
 identifier: const           AC_C_CONST
 identifier: gid_t           AC_TYPE_UID_T
 identifier: inline          AC_C_INLINE
diff --git a/lib/autoscan/autoscan.pre b/lib/autoscan/autoscan.pre
new file mode 100644 (file)
index 0000000..2878eac
--- /dev/null
@@ -0,0 +1,125 @@
+# autoscan's mapping to Autoconf macros      -*- Makefile -*-
+# Copyright (C) 1992, 1993, 1994, 1996, 1999, 2000, 2001, 2002
+# Free Software Foundation, Inc.
+#
+# 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.
+
+# Functions that have their own macros.
+function: bcmp                    AC_HEADER_STDC
+function: bcopy                   AC_HEADER_STDC
+function: bzero                   AC_CHECK_FUNCS
+function: bzero                   AC_HEADER_STDC
+function: dcgettext               AM_GNU_GETTEXT
+function: error                   AC_FUNC_ERROR_AT_LINE
+function: fnmatch                 AC_FUNC_FNMATCH
+function: index                   AC_HEADER_STDC
+function: ioctl                   AC_PROG_GCC_TRADITIONAL
+function: major                   AC_HEADER_MAJOR
+function: makedev                 AC_HEADER_MAJOR
+function: memchr                  AC_CHECK_FUNCS
+function: memchr                  AC_HEADER_STDC
+function: memcpy                  AC_HEADER_STDC
+function: memmove                 AC_CHECK_FUNCS
+function: memmove                 AC_HEADER_STDC
+function: memset                  AC_CHECK_FUNCS
+function: memset                  AC_HEADER_STDC
+function: minor                   AC_HEADER_MAJOR
+function: rindex                  AC_HEADER_STDC
+function: signal                  AC_TYPE_SIGNAL
+function: utime                   AC_CHECK_FUNCS
+function: vfork                   AC_FUNC_FORK
+
+# Functions we should no longer use.
+function: getwd          warn: getwd is deprecated, use getcwd instead
+
+
+
+# Headers with specific macros.
+header: X11/Xlib.h      AC_PATH_X
+header: alloca.h        AC_FUNC_ALLOCA
+header: dirent.h        AC_HEADER_DIRENT
+header: float.h         AC_CHECK_HEADERS
+header: float.h         AC_HEADER_STDC
+header: ndir.h          AC_HEADER_DIRENT
+header: stdarg.h        AC_HEADER_STDC
+header: stddef.h        AC_CHECK_HEADERS
+header: stddef.h        AC_HEADER_STDC
+header: stdlib.h        AC_CHECK_HEADERS
+header: stdlib.h        AC_HEADER_STDC
+header: string.h        AC_CHECK_HEADERS
+header: string.h        AC_HEADER_STDC
+header: sys/dir.h       AC_HEADER_DIRENT
+header: sys/mkdev.h     AC_HEADER_MAJOR
+header: sys/ndir.h      AC_HEADER_DIRENT
+header: sys/wait.h      AC_HEADER_SYS_WAIT
+
+# Keywords.
+identifier: const           AC_C_CONST
+identifier: inline          AC_C_INLINE
+
+# Variables.
+identifier: sys_siglist     AC_DECL_SYS_SIGLIST
+
+# Types.
+identifier: gid_t           AC_TYPE_UID_T
+identifier: mode_t          AC_TYPE_MODE_T
+identifier: obstack         AC_FUNC_OBSTACK
+identifier: off_t           AC_TYPE_OFF_T
+identifier: pid_t           AC_TYPE_PID_T
+identifier: ptrdiff_t       AC_CHECK_TYPES
+identifier: size_t          AC_TYPE_SIZE_T
+identifier: timeval         AC_HEADER_TIME
+identifier: tm              AC_STRUCT_TM
+identifier: uid_t           AC_TYPE_UID_T
+
+
+# Members of structures.
+identifier: st_blksize      AC_CHECK_MEMBERS([struct stat.st_blksize])
+identifier: st_blocks       AC_STRUCT_ST_BLOCKS
+identifier: st_rdev         AC_CHECK_MEMBERS([struct stat.st_rdev])
+identifier: tm_zone         AC_STRUCT_TIMEZONE
+
+makevar: AWK             AC_PROG_AWK
+makevar: BISON           AC_PROG_YACC
+makevar: CC              AC_PROG_CC
+makevar: CPP             AC_PROG_CPP
+makevar: CXX             AC_PROG_CXX
+makevar: INSTALL         AC_PROG_INSTALL
+makevar: LEX             AC_PROG_LEX
+makevar: LN              AC_PROG_LN_S
+makevar: MAKE            AC_PROG_MAKE_SET
+makevar: RANLIB          AC_PROG_RANLIB
+makevar: YACC            AC_PROG_YACC
+
+program: CC              AC_PROG_CXX
+program: awk             AC_PROG_AWK
+program: bison           AC_PROG_YACC
+program: byacc           AC_PROG_YACC
+program: c++             AC_PROG_CXX
+program: cc              AC_PROG_CC
+program: cpp             AC_PROG_CPP
+program: flex            AC_PROG_LEX
+program: g++             AC_PROG_CXX
+program: gawk            AC_PROG_AWK
+program: gcc             AC_PROG_CC
+program: install         AC_PROG_INSTALL
+program: lex             AC_PROG_LEX
+program: ln              AC_PROG_LN_S
+program: make            AC_PROG_MAKE_SET
+program: mawk            AC_PROG_AWK
+program: nawk            AC_PROG_AWK
+program: ranlib          AC_PROG_RANLIB
+program: yacc            AC_PROG_YACC
index 2ce0fe659f7c6c3b53a90220e87ccc9c47c15834..2bc6c61029cc1eb1f96e137d55d5aef44b458bff 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated by automake 1.6c from Makefile.am.
+# Makefile.in generated by automake 1.7a from Makefile.am.
 # @configure_input@
 
 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
@@ -139,6 +139,7 @@ autotest_m4f_dependencies = \
 
 autoconf_m4f_dependencies = \
        $(m4sh_m4f_dependencies)                \
+       $(src_libdir)/autoconf/autoscan.m4      \
        $(src_libdir)/autoconf/general.m4       \
        $(src_libdir)/autoconf/autoheader.m4    \
        $(src_libdir)/autoconf/autoupdate.m4    \
@@ -162,8 +163,8 @@ CONFIG_CLEAN_FILES =
 DIST_SOURCES =
 DATA = $(dist_autotestlib_DATA) $(nodist_autotestlib_DATA)
 
-DIST_COMMON = $(dist_autotestlib_DATA) ../freeze.mk Makefile.am \
-       Makefile.in
+DIST_COMMON = $(dist_autotestlib_DATA) $(srcdir)/../freeze.mk \
+       Makefile.am Makefile.in
 all: all-am
 
 .SUFFIXES:
@@ -270,7 +271,7 @@ top_distdir = ../..
 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
 
 distdir: $(DISTFILES)
-       $(mkinstalldirs) $(distdir)/..
+       $(mkinstalldirs) $(distdir)/$(srcdir)/..
        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
        list='$(DISTFILES)'; for file in $$list; do \
          case $$file in \
@@ -414,8 +415,6 @@ $(AUTOM4TE_CFG):
        $(MY_AUTOM4TE)                          \
                --language=$*                   \
                --freeze                        \
-               --include=$(srcdir)/..          \
-               --include=..                    \
                --output=$@
 
 # For parallel builds.
index 577e84341e64bbabf97aa35b926c191e0f09f706..25ad42c36a29edd1e53ecbeb8ea6147cae7a7adc 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated by automake 1.6c from Makefile.am.
+# Makefile.in generated by automake 1.7a from Makefile.am.
 # @configure_input@
 
 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
index b93bb1b77a249747ed8357d587bc93b41fdd166e..4a4a4c661ab864d621bbf0c656fddd0fc02963a9 100644 (file)
@@ -41,8 +41,6 @@ $(AUTOM4TE_CFG):
        $(MY_AUTOM4TE)                          \
                --language=$*                   \
                --freeze                        \
-               --include=$(srcdir)/..          \
-               --include=..                    \
                --output=$@
 
 # Factor the dependencies between all the frozen files.
@@ -73,6 +71,7 @@ autotest_m4f_dependencies =                   \
 
 autoconf_m4f_dependencies =                    \
        $(m4sh_m4f_dependencies)                \
+       $(src_libdir)/autoconf/autoscan.m4      \
        $(src_libdir)/autoconf/general.m4       \
        $(src_libdir)/autoconf/autoheader.m4    \
        $(src_libdir)/autoconf/autoupdate.m4    \
index 27983426dcb388e3754ec3efbcc4066c5e41b438..edc0e066edccb205c21776a4ce36b9af635b2322 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated by automake 1.6c from Makefile.am.
+# Makefile.in generated by automake 1.7a from Makefile.am.
 # @configure_input@
 
 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
@@ -139,6 +139,7 @@ autotest_m4f_dependencies = \
 
 autoconf_m4f_dependencies = \
        $(m4sh_m4f_dependencies)                \
+       $(src_libdir)/autoconf/autoscan.m4      \
        $(src_libdir)/autoconf/general.m4       \
        $(src_libdir)/autoconf/autoheader.m4    \
        $(src_libdir)/autoconf/autoupdate.m4    \
@@ -162,8 +163,8 @@ CONFIG_CLEAN_FILES =
 DIST_SOURCES =
 DATA = $(dist_m4sugarlib_DATA) $(nodist_m4sugarlib_DATA)
 
-DIST_COMMON = $(dist_m4sugarlib_DATA) ../freeze.mk Makefile.am \
-       Makefile.in
+DIST_COMMON = $(dist_m4sugarlib_DATA) $(srcdir)/../freeze.mk \
+       Makefile.am Makefile.in
 all: all-am
 
 .SUFFIXES:
@@ -270,7 +271,7 @@ top_distdir = ../..
 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
 
 distdir: $(DISTFILES)
-       $(mkinstalldirs) $(distdir)/..
+       $(mkinstalldirs) $(distdir)/$(srcdir)/..
        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
        list='$(DISTFILES)'; for file in $$list; do \
          case $$file in \
@@ -429,8 +430,6 @@ $(AUTOM4TE_CFG):
        $(MY_AUTOM4TE)                          \
                --language=$*                   \
                --freeze                        \
-               --include=$(srcdir)/..          \
-               --include=..                    \
                --output=$@
 
 # For parallel builds.
index 7fe506bbf9fbc2750487d9f45e0e20f24058587f..f7967e78ce3be217a49a03d44984c3d7d5ab78f6 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated by automake 1.6c from Makefile.am.
+# Makefile.in generated by automake 1.7a from Makefile.am.
 # @configure_input@
 
 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
index ee126203d1f7156a05d8f02069b5f82c9caeb582..63853b3996a729ff8c03829ad7032f8ab1542aab 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated by automake 1.6c from Makefile.am.
+# Makefile.in generated by automake 1.7a from Makefile.am.
 # @configure_input@
 
 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
@@ -139,6 +139,7 @@ autotest_m4f_dependencies = \
 
 autoconf_m4f_dependencies = \
        $(m4sh_m4f_dependencies)                \
+       $(src_libdir)/autoconf/autoscan.m4      \
        $(src_libdir)/autoconf/general.m4       \
        $(src_libdir)/autoconf/autoheader.m4    \
        $(src_libdir)/autoconf/autoupdate.m4    \
@@ -210,8 +211,8 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
 CONFIG_CLEAN_FILES = atlocal autoconf autoheader autom4te autoreconf \
        autoscan autoupdate ifnames
 DIST_SOURCES =
-DIST_COMMON = ../lib/freeze.mk Makefile.am Makefile.in atlocal.in \
-       wrapper.in
+DIST_COMMON = $(srcdir)/../lib/freeze.mk Makefile.am Makefile.in \
+       atlocal.in wrapper.in
 all: all-am
 
 .SUFFIXES:
@@ -250,7 +251,7 @@ top_distdir = ..
 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
 
 distdir: $(DISTFILES)
-       $(mkinstalldirs) $(distdir)/../lib
+       $(mkinstalldirs) $(distdir)/$(srcdir)/../lib
        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
        list='$(DISTFILES)'; for file in $$list; do \
          case $$file in \
@@ -378,8 +379,6 @@ $(AUTOM4TE_CFG):
        $(MY_AUTOM4TE)                          \
                --language=$*                   \
                --freeze                        \
-               --include=$(srcdir)/..          \
-               --include=..                    \
                --output=$@
 
 # For parallel builds.