Commit 62a39c7d authored by Paul Eggert's avatar Paul Eggert

Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files.

parent 966f3076
2005-03-21 Jim Meyering <jim@meyering.net>
and Paul Eggert <eggert@cs.ucla.edu>
* acl.m4, backupfile.m4, c-strtod.m4, canon-host.m4, canonicalize.m4,
cloexec.m4, closeout.m4, dirfd.m4, dirname.m4, exclude.m4,
exitfail.m4, file-type.m4, filemode.m4, fpending.m4, fsusage.m4,
getcwd.m4, getdate.m4, getline.m4, getpagesize.m4, getpass.m4,
getugroups.m4, group-member.m4, hard-locale.m4, hash.m4, human.m4,
idcache.m4, inttostr.m4, long-options.m4, makepath.m4, md5.m4,
memcasecmp.m4, memcoll.m4, modechange.m4, mountlist.m4, nanosleep.m4,
path-concat.m4, pathmax.m4, physmem.m4, posixtm.m4, posixver.m4,
quote.m4, quotearg.m4, readtokens.m4, readutmp.m4, safe-read.m4,
safe-write.m4, same.m4, savedir.m4, settime.m4, sha1.m4, sig2str.m4,
strdup.m4, strftime.m4, strndup.m4, strverscmp.m4, timespec.m4,
unlocked-io.m4, userspec.m4, utimecmp.m4, utimens.m4, xalloc.m4,
xnanosleep.m4, xstrtol.m4, yesno.m4:
Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
for these modules.
2005-03-21 Jim Meyering <jim@meyering.net>
* chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
* memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
2005-03-16 Bruno Haible <bruno@clisp.org>
* stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
......
# acl.m4 - check for access control list (ACL) primitives
# Copyright (C) 2002, 2004 Free Software Foundation, Inc.
# Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
......@@ -9,6 +9,9 @@
AC_DEFUN([AC_FUNC_ACL],
[
AC_LIBSOURCES([acl.c, acl.h])
AC_LIBOBJ([acl])
dnl Prerequisites of lib/acl.c.
AC_CHECK_HEADERS(sys/acl.h)
AC_CHECK_FUNCS(acl)
......
# backupfile.m4 serial 6
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
# backupfile.m4 serial 7
dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_BACKUPFILE],
[
AC_LIBSOURCES([backupfile.c, backupfile.h])
AC_LIBOBJ([backupfile])
dnl Prerequisites of lib/backupfile.c.
AC_REQUIRE([AC_HEADER_DIRENT])
AC_REQUIRE([gl_CHECK_TYPE_STRUCT_DIRENT_D_INO])
......
# c-strtod.m4 serial 5
# c-strtod.m4 serial 6
# Copyright (C) 2004 Free Software Foundation, Inc.
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
......@@ -35,6 +35,9 @@ AC_DEFUN([gl_C99_STRTOLD],
AC_DEFUN([gl_C_STRTOD],
[
AC_LIBSOURCES([c-strtod.c, c-strtod.h])
AC_LIBOBJ([c-strtod])
dnl Prerequisites of lib/c-strtod.c.
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
:
......@@ -42,6 +45,9 @@ AC_DEFUN([gl_C_STRTOD],
AC_DEFUN([gl_C_STRTOLD],
[
AC_LIBSOURCES([c-strtold.c, c-strtod.h])
AC_LIBOBJ([c-strtold])
dnl Prerequisites of lib/c-strtold.c.
AC_REQUIRE([gl_C_STRTOD])
AC_REQUIRE([gl_C99_STRTOLD])
......
# canon-host.m4 serial 5
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
# canon-host.m4 serial 6
dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_CANON_HOST],
[
AC_LIBSOURCES([canon-host.c])
AC_LIBOBJ([canon-host])
dnl Prerequisites of lib/canon-host.c.
AC_CHECK_HEADERS_ONCE(unistd.h)
AC_CHECK_HEADERS(netdb.h sys/socket.h netinet/in.h arpa/inet.h)
......
#serial 4
#serial 6
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
......@@ -9,6 +9,9 @@
AC_DEFUN([AC_FUNC_CANONICALIZE_FILE_NAME],
[
AC_LIBSOURCES([canonicalize.c, canonicalize.h, stat-macros.h])
AC_LIBOBJ([canonicalize])
AC_REQUIRE([AC_HEADER_STDC])
AC_CHECK_HEADERS(string.h sys/param.h stddef.h)
AC_CHECK_FUNCS(resolvepath canonicalize_file_name)
......
# cloexec.m4 serial 2
dnl Copyright (C) 2004 Free Software Foundation, Inc.
# cloexec.m4 serial 3
dnl Copyright (C) 2004, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_CLOEXEC],
[
AC_LIBSOURCES([cloexec.c, cloexec.h])
AC_LIBOBJ([cloexec])
dnl Prerequisites of lib/cloexec.c.
AC_CHECK_HEADERS_ONCE(fcntl.h unistd.h)
])
# closeout.m4 serial 3
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# closeout.m4 serial 4
dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_CLOSEOUT],
[
AC_LIBSOURCES([closeout.c, closeout.h])
AC_LIBOBJ([closeout])
dnl Prerequisites of lib/closeout.c.
:
])
#serial 9
#serial 10
dnl Find out how to get the file descriptor associated with an open DIR*.
# Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
# Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
......@@ -11,6 +11,8 @@ dnl From Jim Meyering
AC_DEFUN([gl_FUNC_DIRFD],
[
AC_LIBSOURCES([dirfd.c, dirfd.h])
dnl Work around a bug of AC_EGREP_CPP in autoconf-2.57.
AC_REQUIRE([AC_PROG_CPP])
AC_REQUIRE([AC_PROG_EGREP])
......
# dirname.m4 serial 4
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
# dirname.m4 serial 5
dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_DIRNAME],
[
AC_LIBSOURCES([dirname.c, dirname.h])
AC_LIBOBJ([dirname])
dnl Prerequisites of lib/dirname.h.
AC_REQUIRE([gl_AC_DOS])
......
# exclude.m4 serial 4
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# exclude.m4 serial 5
dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_EXCLUDE],
[
AC_LIBSOURCES([exclude.c, exclude.h])
AC_LIBOBJ([exclude])
dnl Prerequisites of lib/exclude.c.
AC_REQUIRE([AC_C_INLINE])
AC_REQUIRE([AC_HEADER_STDC])
......
# exitfail.m4 serial 4
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# exitfail.m4 serial 5
dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_EXITFAIL],
[
AC_LIBSOURCES([exitfail.c, exitfail.h])
AC_LIBOBJ([exitfail])
dnl No prerequisites of lib/exitfail.c.
:
])
# file-type.m4 serial 2
dnl Copyright (C) 2002 Free Software Foundation, Inc.
# file-type.m4 serial 4
dnl Copyright (C) 2002, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_FILE_TYPE],
[
AC_LIBSOURCES([file-type.c, file-type.h, stat-macros.h])
AC_LIBOBJ([file-type])
dnl Prerequisites of lib/file-type.h.
AC_REQUIRE([AC_HEADER_STAT])
])
# filemode.m4 serial 2
dnl Copyright (C) 2002 Free Software Foundation, Inc.
# filemode.m4 serial 4
dnl Copyright (C) 2002, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_FILEMODE],
[
AC_LIBSOURCES([filemode.c, filemode.h, stat-macros.h])
AC_LIBOBJ([filemode])
dnl Prerequisites of lib/filemode.c.
AC_REQUIRE([AC_HEADER_STAT])
])
#serial 5
#serial 6
# Copyright (C) 2000, 2001, 2004 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2004, 2005 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
......@@ -15,6 +15,8 @@ dnl we have to grub around in the FILE struct.
AC_DEFUN([gl_FUNC_FPENDING],
[
AC_LIBSOURCES([__fpending.c, __fpending.h])
AC_CHECK_HEADERS(stdio_ext.h)
AC_REPLACE_FUNCS([__fpending])
fp_headers='
......
# fsusage.m4 serial 14
# fsusage.m4 serial 15
# Obtaining file system usage information.
# Copyright (C) 1997, 1998, 2000, 2001, 2003, 2004 Free Software
# Copyright (C) 1997, 1998, 2000, 2001, 2003, 2004, 2005 Free Software
# Foundation, Inc.
#
# This file is free software; the Free Software Foundation
......@@ -12,6 +12,8 @@
AC_DEFUN([gl_FSUSAGE],
[
AC_LIBSOURCES([fsusage.c, fsusage.h])
AC_CHECK_HEADERS_ONCE(sys/param.h)
AC_CHECK_HEADERS_ONCE(sys/vfs.h sys/fs_types.h)
AC_CHECK_HEADERS(sys/mount.h, [], [],
......
# getcwd.m4 - check for working getcwd that is compatible with glibc
# Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc.
# Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
......@@ -9,6 +9,8 @@
AC_DEFUN([gl_FUNC_GETCWD_NULL],
[
AC_LIBSOURCES([getcwd.c, getcwd.h])
AC_CHECK_HEADERS_ONCE(unistd.h)
AC_CACHE_CHECK([whether getcwd (NULL, 0) allocates memory for result],
[gl_cv_func_getcwd_null],
......
# getdate.m4 serial 6
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
# getdate.m4 serial 7
dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_GETDATE],
[
AC_LIBSOURCES([getdate.h, getdate.y])
AC_LIBOBJ([getdate])
dnl Prerequisites of lib/getdate.h.
AC_REQUIRE([AM_STDBOOL_H])
AC_REQUIRE([gl_TIMESPEC])
......
# getline.m4 serial 11
# getline.m4 serial 12
dnl Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software
dnl Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005 Free Software
dnl Foundation, Inc.
dnl
dnl This file is free software; the Free Software Foundation
......@@ -15,6 +15,8 @@ dnl have a function by that name in -linet that doesn't have anything
dnl to do with the function we need.
AC_DEFUN([AM_FUNC_GETLINE],
[
AC_LIBSOURCES([getline.c, getline.h])
dnl Persuade glibc <stdio.h> to declare getline() and getdelim().
AC_REQUIRE([AC_GNU_SOURCE])
......
# getpagesize.m4 serial 3
dnl Copyright (C) 2002, 2004 Free Software Foundation, Inc.
# getpagesize.m4 serial 4
dnl Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_GETPAGESIZE],
[
AC_LIBSOURCES([getpagesize.h])
dnl Prerequisites of lib/getpagesize.h.
AC_CHECK_HEADERS_ONCE(sys/param.h unistd.h)
AC_CHECK_HEADERS(OS.h)
......
# getpass.m4 serial 5
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
# getpass.m4 serial 6
dnl Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
......@@ -18,6 +18,8 @@ AC_DEFUN([gl_FUNC_GETPASS],
# arbitrary length (not just 8 bytes as on HP-UX).
AC_DEFUN([gl_FUNC_GETPASS_GNU],
[
AC_LIBSOURCES([getpass.c, getpass.h])
AC_CHECK_DECLS_ONCE(getpass)
dnl TODO: Detect when GNU getpass() is already found in glibc.
AC_LIBOBJ(getpass)
......
# getugroups.m4 serial 3
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# getugroups.m4 serial 4
dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_GETUGROUPS],
[
AC_LIBSOURCES([getugroups.c])
AC_LIBOBJ([getugroups])
dnl Prerequisites of lib/getugroups.c.
AC_CHECK_HEADERS_ONCE(unistd.h)
AC_TYPE_GETGROUPS
......
#serial 7
#serial 8
# Copyright (C) 1999, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
......@@ -9,6 +9,8 @@ dnl Written by Jim Meyering
AC_DEFUN([gl_FUNC_GROUP_MEMBER],
[
AC_LIBSOURCES([group-member.c, group-member.h])
dnl Persuade glibc <unistd.h> to declare group_member().
AC_REQUIRE([AC_GNU_SOURCE])
......
# hard-locale.m4 serial 5
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
# hard-locale.m4 serial 6
dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl No prerequisites of lib/hard-locale.c.
AC_DEFUN([gl_HARD_LOCALE], [:])
AC_DEFUN([gl_HARD_LOCALE],
[
AC_LIBSOURCES([hard-locale.c, hard-locale.h])
AC_LIBOBJ([hard-locale])
])
# hash.m4 serial 4
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# hash.m4 serial 5
dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_HASH],
[
AC_LIBSOURCES([hash.c, hash.h])
AC_LIBOBJ([hash])
dnl Prerequisites of lib/hash.c.
AC_REQUIRE([AM_STDBOOL_H])
])
# human.m4 serial 7
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
#serial 9
dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_HUMAN],
[
AC_LIBSOURCES([human.c, human.h, intprops.h])
AC_LIBOBJ([human])
dnl Prerequisites of lib/human.h.
AC_REQUIRE([AM_STDBOOL_H])
AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])
......
# idcache.m4 serial 3
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# idcache.m4 serial 4
dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_IDCACHE],
[
AC_LIBSOURCES([idcache.c])
AC_LIBOBJ([idcache])
dnl Prerequisites of lib/idcache.c.
AC_CHECK_HEADERS_ONCE(unistd.h)
])
# inttostr.m4 serial 3
dnl Copyright (C) 2004 Free Software Foundation, Inc.
#serial 5
dnl Copyright (C) 2004, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_INTTOSTR],
[
AC_LIBSOURCES([inttostr.c, inttostr.h, intprops.h])
dnl We don't technically need to list the following .c files, since their
dnl functions are named in the AC_LIBOBJ calls, but this is an unusual
dnl module and it seems a little clearer to do so.
AC_LIBSOURCES([imaxtostr.c, offtostr.c, umaxtostr.c])
AC_LIBOBJ([imaxtostr])
AC_LIBOBJ([offtostr])
AC_LIBOBJ([umaxtostr])
gl_PREREQ_INTTOSTR
gl_PREREQ_IMAXTOSTR
gl_PREREQ_OFFTOSTR
......
# long-options.m4 serial 3
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# long-options.m4 serial 4
dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_LONG_OPTIONS],
[
AC_LIBSOURCES([long-options.c, long-options.h])
AC_LIBOBJ([long-options])
dnl Prerequisites of lib/long-options.c.
:
])
# makepath.m4 serial 4
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
# makepath.m4 serial 6
dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_MAKEPATH],
[
AC_LIBSOURCES([makepath.c, makepath.h, stat-macros.h])
AC_LIBOBJ([makepath])
dnl Prerequisites of lib/makepath.c.
AC_REQUIRE([AC_FUNC_ALLOCA])
AC_CHECK_HEADERS_ONCE(unistd.h)
......
# md5.m4 serial 6
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
# md5.m4 serial 7
dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_MD5],
[
AC_LIBSOURCES([md5.c, md5.h])
AC_LIBOBJ([md5])
dnl Prerequisites of lib/md5.h.
AC_REQUIRE([gl_AC_TYPE_UINT32_T])
......
# memcasecmp.m4 serial 2
dnl Copyright (C) 2002 Free Software Foundation, Inc.
#serial 3
dnl Copyright (C) 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_MEMCASECMP],
[
AC_LIBSOURCES([memcasecmp.c, memcasecmp.h])
AC_LIBOBJ([memcasecmp])
dnl Prerequisites of lib/memcasecmp.c.
AC_REQUIRE([AC_HEADER_STDC])
AC_CHECK_FUNCS_ONCE(isascii)
......
# memcoll.m4 serial 4
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# memcoll.m4 serial 5
dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_MEMCOLL],
[
AC_LIBSOURCES([memcoll.c, memcoll.h])
AC_LIBOBJ([memcoll])
dnl Prerequisites of lib/memcoll.c.
AC_REQUIRE([AC_FUNC_MEMCMP])
AC_FUNC_STRCOLL
......
# modechange.m4 serial 3
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# modechange.m4 serial 4
dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_MODECHANGE],
[
AC_LIBSOURCES([modechange.c, modechange.h])
AC_LIBOBJ([modechange])
AC_REQUIRE([AC_HEADER_STAT])
])
# mountlist.m4 serial 5
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
# mountlist.m4 serial 6
dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_MOUNTLIST],
[
AC_LIBSOURCES([mountlist.c, mountlist.h])
gl_LIST_MOUNTED_FILE_SYSTEMS([gl_cv_list_mounted_fs=yes],
[gl_cv_list_mounted_fs=no])
if test $gl_cv_list_mounted_fs = yes; then
......
#serial 11
#serial 12
dnl From Jim Meyering.
dnl Check for the nanosleep function.
dnl If not found, use the supplied replacement.
dnl
# Copyright (C) 1999, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_FUNC_NANOSLEEP],
[
AC_LIBSOURCES([nanosleep.c])
nanosleep_save_libs=$LIBS
# Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
......
# path-concat.m4 serial 5
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
# path-concat.m4 serial 6
dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_PATH_CONCAT],
[
AC_LIBSOURCES([path-concat.c, path-concat.h])
AC_LIBOBJ([path-concat])
dnl Prerequisites of lib/path-concat.c.
AC_CHECK_FUNCS_ONCE(mempcpy)
])
# pathmax.m4 serial 3
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# pathmax.m4 serial 4
dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_PATHMAX],
[
AC_LIBSOURCES([pathmax.h])
dnl Prerequisites of lib/pathmax.h.
AC_CHECK_HEADERS_ONCE(sys/param.h unistd.h)
])
# physmem.m4 serial 3
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# physmem.m4 serial 4
dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
......@@ -26,6 +26,9 @@ AC_DEFUN([gl_SYS__SYSTEM_CONFIGURATION],
AC_DEFUN([gl_PHYSMEM],
[
AC_LIBSOURCES([physmem.c, physmem.h])
AC_LIBOBJ([physmem])
# Prerequisites of lib/physmem.c.
AC_CHECK_HEADERS_ONCE(unistd.h)
AC_CHECK_HEADERS([sys/pstat.h sys/sysmp.h sys/sysinfo.h \
......
# posixtm.m4 serial 3
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# posixtm.m4 serial 4
dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_POSIXTM],
[
AC_LIBSOURCES([posixtm.c, posixtm.h])
AC_LIBOBJ(posixtm)
dnl Prerequisites of lib/posixtm.c.
AC_STRUCT_TM
])
# posixver.m4 serial 5
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
# posixver.m4 serial 6
dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_POSIXVER],
[
AC_LIBSOURCES([posixver.c, posixver.h])
AC_LIBOBJ([posixver])
AC_CHECK_HEADERS_ONCE(unistd.h)
AC_REQUIRE([gl_DEFAULT_POSIX2_VERSION])
])
......
# quote.m4 serial 3
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# quote.m4 serial 4
dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_QUOTE],
[
AC_LIBSOURCES([quote.c, quote.h])
AC_LIBOBJ([quote])
dnl Prerequisites of lib/quote.c.
dnl (none)
])
# quotearg.m4 serial 3
dnl Copyright (C) 2002, 2004 Free Software Foundation, Inc.
# quotearg.m4 serial 4
dnl Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_QUOTEARG],
[
AC_LIBSOURCES([quotearg.c, quotearg.h])
AC_LIBOBJ([quotearg])