[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07-autoscan-macros.patch
From: |
Akim Demaille |
Subject: |
07-autoscan-macros.patch |
Date: |
Mon, 30 Sep 2002 09:32:59 +0200 |
The `diff -w' change of this patch onto autoscan.list results in:
# ~ace % prdiff ace lib/autoscan/autoscan.list -- -w
# prcs: Producing diffs from 0.884 to 0.884(w).
# Index: lib/autoscan/autoscan.list
# 0a1
# > # Automatically Generated: do not edit this file
# 4c5
# <
# ---
# > #
# 9c10
# <
# ---
# > #
# 14c15
# <
# ---
# > #
# 23a25
# > function: _doprnt AC_FUNC_VPRINTF
# 34a37
# > function: closedir AC_FUNC_CLOSEDIR_VOID
# 62a66
# > function: getmntent AC_FUNC_GETMNTENT
# 81a86
# > function: lstat AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
# 121a127
# > function: select AC_FUNC_SELECT_ARGTYPES
# 157d162
# < function: utime AC_CHECK_FUNCS
# 158a164
# > function: utime AC_CHECK_FUNCS
#
Index: ChangeLog
from Akim Demaille <address@hidden>
* 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.
Index: lib/freeze.mk
--- lib/freeze.mk Fri, 27 Sep 2002 21:39:50 +0200 akim
+++ lib/freeze.mk Sat, 28 Sep 2002 10:48:54 +0200 akim
@@ -41,8 +41,6 @@ .m4.m4f:
$(MY_AUTOM4TE) \
--language=$* \
--freeze \
- --include=$(srcdir)/.. \
- --include=.. \
--output=$@
# Factor the dependencies between all the frozen files.
@@ -73,6 +71,7 @@ .m4.m4f:
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: lib/autoconf/Makefile.am
--- lib/autoconf/Makefile.am Sun, 09 Jun 2002 10:50:29 +0200 akim
+++ lib/autoconf/Makefile.am Sat, 28 Sep 2002 09:22:57 +0200 akim
@@ -21,7 +21,7 @@
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: lib/autoconf/autoconf.m4
--- lib/autoconf/autoconf.m4 Mon, 20 May 2002 15:30:45 +0200 akim
+++ lib/autoconf/autoconf.m4 Sat, 28 Sep 2002 09:22:57 +0200 akim
@@ -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])
Index: lib/autoconf/functions.m4
--- lib/autoconf/functions.m4 Fri, 27 Sep 2002 20:14:45 +0200 akim
+++ lib/autoconf/functions.m4 Sat, 28 Sep 2002 10:15:16 +0200 akim
@@ -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 @@ AC_DEFUN([AC_TRY_LINK_FUNC],
+## ------------------------------------------- ##
+## 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 @@ m4_define([_AC_LIBOBJ_ALLOCA],
# 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 @@ AC_DEFUN([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 @@ AC_DEFUN([AC_FUNC_CHOWN],
# ---------------------
# 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 @@ AC_DEFUN([AC_FUNC_CLOSEDIR_VOID],
# 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 @@ AC_DEFUN([AC_FUNC_FNMATCH_GNU],
# 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 @@ AC_DEFUN([AC_FUNC_FSEEKO],
# -----------------
# 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 @@ m4_define([_AC_LIBOBJ_GETLOADAVG],
# 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 @@ AC_DEFUN([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_DEFUN([AC_FUNC_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 @@ AC_DEFUN([AC_FUNC_GETPGRP],
# 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 @@ AC_DEFUN([_AC_FUNC_MALLOC_IF],
# --------------
# 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 @@ AC_DEFUN([AC_FUNC_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 @@ AC_DEFUN([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 @@ AC_DEFUN([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 @@ AC_DEFUN([_AC_FUNC_REALLOC_IF],
# ---------------
# 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 @@ AC_DEFUN([AC_FUNC_SELECT_ARGTYPES],
# 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 @@ m4_define([_AC_FUNC_STAT],
# 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 @@ m4_define([_AC_LIBOBJ_STRTOD],
# 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 @@ AC_DEFUN([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 @@ AC_DEFUN([AC_FUNC_STRERROR_R],
# 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 @@ AC_DEFUN([AC_FUNC_STRFTIME],
# 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 @@ AC_DEFUN([AC_FUNC_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 @@ AC_DEFUN([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 @@ AC_DEFUN([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 @@ AC_DEFUN([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 @@ AC_DEFUN([_AC_FUNC_VFORK],
# ---------------
# 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 @@ AC_DEFUN([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: lib/autoconf/headers.m4
--- lib/autoconf/headers.m4 Mon, 20 May 2002 15:30:45 +0200 akim
+++ lib/autoconf/headers.m4 Sat, 28 Sep 2002 09:43:57 +0200 akim
@@ -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 @@ AC_DEFUN([AC_CHECK_HEADERS],
-
## --------------------- ##
## 2. Default includes. ##
## --------------------- ##
@@ -274,8 +274,71 @@ AC_DEFUN([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 @@ AC_DEFUN([AC_HEADER_MAJOR],
# 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: lib/autoscan/Makefile.am
--- lib/autoscan/Makefile.am Sat, 28 Sep 2002 09:19:48 +0200 akim
+++ lib/autoscan/Makefile.am Sat, 28 Sep 2002 10:53:12 +0200 akim
@@ -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: lib/autoscan/autoscan.list
--- lib/autoscan/autoscan.list Sat, 28 Sep 2002 10:29:44 +0200 akim
+++ lib/autoscan/autoscan.list Sat, 28 Sep 2002 10:53:22 +0200 akim
@@ -1,247 +1,253 @@
-# 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
Index: lib/autoscan/autoscan.pre
--- lib/autoscan/autoscan.pre Sat, 28 Sep 2002 11:00:11 +0200 akim
+++ lib/autoscan/autoscan.pre Sat, 28 Sep 2002 10:37:46 +0200 akim
@@ -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
--- /dev/null Mon Nov 12 20:50:53 2001
+++ lib/autoconf/autoscan.m4 Sat Sep 28 15:01:25 2002
@@ -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: TODO
--- TODO Sat, 03 Aug 2002 15:01:59 +0200 akim
+++ TODO Sat, 28 Sep 2002 15:18:57 +0200 akim
@@ -58,19 +58,6 @@
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,22 +173,12 @@ limitation: we really need something mor
* 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
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,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- 07-autoscan-macros.patch,
Akim Demaille <=