Avoid the need for AC_LIBSOURCES in m4 macros.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 22 Aug 2006 17:15:28 +0000 (17:15 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 22 Aug 2006 17:15:28 +0000 (17:15 +0000)
* modules/arcfour (EXTRA_DIST): Add arcfour.h.
* modules/arctwo (EXTRA_DIST): Add arctwo.h.
* modules/check-version (EXTRA_DIST): Add check-version.h.
* modules/crc (EXTRA_DIST): Add crc.h.
* modules/des (EXTRA_DIST): Add des.h.
* modules/gc (EXTRA_DIST): Add gc.h.
* modules/getdelim (EXTRA_DIST): Add getdelim.h.
* modules/getline (EXTRA_DIST): Add getline.h.
* modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
* modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
* modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
* modules/md2 (EXTRA_DIST): Add md2.h.
* modules/md4 (EXTRA_DIST): Add md4.h.
* modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
* modules/read-file (EXTRA_DIST): Add read-file.h.
* modules/readline (EXTRA_DIST): Add readline.h.
* modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
rijndael-api-fst.h.

* m4/rijndael.m4 (gl_ARCFOUR):
* m4/arctwo.m4 (gl_ARCTWO):
* m4/check-version.m4 (gl_CHECK_VERSION):
* m4/crc.m4 (gl_CRC):
* m4/des.m4 (gl_DES):
* m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
* m4/gc.m4 (gl_GC):
* m4/getdelim.m4 (gl_FUNC_GETDELIM):
* m4/getline.m4 (gl_FUNC_GETLINE):
* m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
* m4/hmac-md5.m4 (gl_HMAC_MD5):
* m4/hmac-sha1.m4 (gl_HMAC_SHA1):
* m4/md2.m4 (gl_MD2):
* m4/md4.m4 (gl_MD4):
* m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
* m4/read-file.m4 (gl_FUNC_READ_FILE):
* m4/readline.m4 (gl_FUNC_READLINE):
* m4/rijndael.m4 (gl_RIJNDAEL):
Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
to get the necessary .h files and whatnot.

37 files changed:
ChangeLog
m4/ChangeLog
m4/arcfour.m4
m4/arctwo.m4
m4/check-version.m4
m4/crc.m4
m4/des.m4
m4/gc-pbkdf2-sha1.m4
m4/gc.m4
m4/getdelim.m4
m4/getline.m4
m4/getlogin_r.m4
m4/hmac-md5.m4
m4/hmac-sha1.m4
m4/md2.m4
m4/md4.m4
m4/pagealign_alloc.m4
m4/read-file.m4
m4/readline.m4
m4/rijndael.m4
modules/arcfour
modules/arctwo
modules/check-version
modules/crc
modules/des
modules/gc
modules/getdelim
modules/getline
modules/getlogin_r
modules/hmac-md5
modules/hmac-sha1
modules/md2
modules/md4
modules/pagealign_alloc
modules/read-file
modules/readline
modules/rijndael

index d67c441..8ed60d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,25 @@
+2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Avoid the need for AC_LIBSOURCES in m4 macros.
+       * modules/arcfour (EXTRA_DIST): Add arcfour.h.
+       * modules/arctwo (EXTRA_DIST): Add arctwo.h.
+       * modules/check-version (EXTRA_DIST): Add check-version.h.
+       * modules/crc (EXTRA_DIST): Add crc.h.
+       * modules/des (EXTRA_DIST): Add des.h.
+       * modules/gc (EXTRA_DIST): Add gc.h.
+       * modules/getdelim (EXTRA_DIST): Add getdelim.h.
+       * modules/getline (EXTRA_DIST): Add getline.h.
+       * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
+       * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
+       * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
+       * modules/md2 (EXTRA_DIST): Add md2.h.
+       * modules/md4 (EXTRA_DIST): Add md4.h.
+       * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
+       * modules/read-file (EXTRA_DIST): Add read-file.h.
+       * modules/readline (EXTRA_DIST): Add readline.h.
+       * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
+       rijndael-api-fst.h.
+
 2006-08-22  Simon Josefsson  <jas@extundo.com>
 
        * MODULES.html.sh: Add "Support for maintaining and release
index 41d7152..f3adfbb 100644 (file)
@@ -1,3 +1,26 @@
+2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * rijndael.m4 (gl_ARCFOUR):
+       * arctwo.m4 (gl_ARCTWO):
+       * check-version.m4 (gl_CHECK_VERSION):
+       * crc.m4 (gl_CRC):
+       * des.m4 (gl_DES):
+       * gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
+       * gc.m4 (gl_GC):
+       * getdelim.m4 (gl_FUNC_GETDELIM):
+       * getline.m4 (gl_FUNC_GETLINE):
+       * getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
+       * hmac-md5.m4 (gl_HMAC_MD5):
+       * hmac-sha1.m4 (gl_HMAC_SHA1):
+       * md2.m4 (gl_MD2):
+       * md4.m4 (gl_MD4):
+       * pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
+       * read-file.m4 (gl_FUNC_READ_FILE):
+       * readline.m4 (gl_FUNC_READLINE):
+       * rijndael.m4 (gl_RIJNDAEL):
+       Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
+       to get the necessary .h files and whatnot.
+
 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
 
        * mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
index 17150e6..905251a 100644 (file)
@@ -1,11 +1,10 @@
-# arcfour.m4 serial 1
-dnl Copyright (C) 2005 Free Software Foundation, Inc.
+# arcfour.m4 serial 2
+dnl Copyright (C) 2005, 2006 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_ARCFOUR],
 [
-  AC_LIBSOURCES([arcfour.c, arcfour.h])
   AC_LIBOBJ([arcfour])
 ])
index a4dcc62..7ea189f 100644 (file)
@@ -1,12 +1,11 @@
-# arctwo.m4 serial 1
-dnl Copyright (C) 2005 Free Software Foundation, Inc.
+# arctwo.m4 serial 2
+dnl Copyright (C) 2005, 2006 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_ARCTWO],
 [
-  AC_LIBSOURCES([arctwo.c, arctwo.h])
   AC_LIBOBJ([arctwo])
   # Prerequisites of lib/arctwo.c.
   AC_REQUIRE([AC_C_INLINE])
index 42b23a4..8c6cf93 100644 (file)
@@ -1,11 +1,10 @@
-#serial 1
-dnl Copyright (C) 2005 Free Software Foundation, Inc.
+#serial 2
+dnl Copyright (C) 2005, 2006 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_CHECK_VERSION],
 [
-  AC_LIBSOURCES([check-version.c, check-version.h])
   AC_LIBOBJ([check-version])
 ])
index 84441e0..757fad7 100644 (file)
--- a/m4/crc.m4
+++ b/m4/crc.m4
@@ -1,11 +1,10 @@
-# crc.m4 serial 1
-dnl Copyright (C) 2005 Free Software Foundation, Inc.
+# crc.m4 serial 2
+dnl Copyright (C) 2005, 2006 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_CRC],
 [
-  AC_LIBSOURCES([crc.h, crc.c])
   AC_LIBOBJ([crc])
 ])
index 1a3bd50..dc71132 100644 (file)
--- a/m4/des.m4
+++ b/m4/des.m4
@@ -1,11 +1,10 @@
-# des.m4 serial 1
-dnl Copyright (C) 2005 Free Software Foundation, Inc.
+# des.m4 serial 2
+dnl Copyright (C) 2005, 2006 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_DES],
 [
-  AC_LIBSOURCES([des.c, des.h])
   AC_LIBOBJ([des])
 ])
index 674f739..05fc881 100644 (file)
@@ -1,11 +1,10 @@
-# gc-pbkdf2-sha1.m4 serial 1
-dnl Copyright (C) 2005 Free Software Foundation, Inc.
+# gc-pbkdf2-sha1.m4 serial 2
+dnl Copyright (C) 2005, 2006 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_GC_PBKDF2_SHA1],
 [
-  AC_LIBSOURCES([gc-pbkdf2-sha1.c])
   AC_LIBOBJ([gc-pbkdf2-sha1])
 ])
index 359b9f1..1d6b379 100644 (file)
--- a/m4/gc.m4
+++ b/m4/gc.m4
@@ -1,4 +1,4 @@
-# gc.m4 serial 3
+# gc.m4 serial 4
 dnl Copyright (C) 2005, 2006 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,7 +6,6 @@ dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_GC],
 [
-  AC_LIBSOURCES([gc.h, gc-gnulib.c, gc-libgcrypt.c])
   AC_ARG_WITH(libgcrypt,
     AS_HELP_STRING([--with-libgcrypt], [use libgcrypt for low-level crypto]),
     libgcrypt=$withval, libgcrypt=no)
index 340bb71..2a738f6 100644 (file)
@@ -1,6 +1,6 @@
-# getdelim.m4 serial 1
+# getdelim.m4 serial 2
 
-dnl Copyright (C) 2005 Free Software dnl Foundation, Inc.
+dnl Copyright (C) 2005, 2006 Free Software dnl Foundation, Inc.
 dnl
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -10,7 +10,6 @@ AC_PREREQ(2.52)
 
 AC_DEFUN([gl_FUNC_GETDELIM],
 [
-  AC_LIBSOURCES([getdelim.c, getdelim.h])
 
   dnl Persuade glibc <stdio.h> to declare getdelim().
   AC_REQUIRE([AC_GNU_SOURCE])
index f49c50e..5b55c30 100644 (file)
@@ -1,4 +1,4 @@
-# getline.m4 serial 14
+# getline.m4 serial 15
 
 dnl Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006 Free Software
 dnl Foundation, Inc.
@@ -15,8 +15,6 @@ dnl have a function by that name in -linet that doesn't have anything
 dnl to do with the function we need.
 AC_DEFUN([gl_FUNC_GETLINE],
 [
-  AC_LIBSOURCES([getline.c, getline.h])
-
   dnl Persuade glibc <stdio.h> to declare getline().
   AC_REQUIRE([AC_GNU_SOURCE])
 
index 2e99c96..589d626 100644 (file)
@@ -1,4 +1,4 @@
-#serial 2
+#serial 3
 
 # Copyright (C) 2005, 2006 Free Software Foundation, Inc.
 #
@@ -14,7 +14,6 @@ dnl
 AC_DEFUN([gl_GETLOGIN_R_SUBSTITUTE],
 [
   gl_PREREQ_GETLOGIN_R
-  AC_LIBSOURCE([getlogin_r.h])
   AC_LIBOBJ([getlogin_r])
 ])
 
index 71cb9a6..729c6bf 100644 (file)
@@ -1,11 +1,10 @@
-# hmac-md5.m4 serial 1
-dnl Copyright (C) 2005 Free Software Foundation, Inc.
+# hmac-md5.m4 serial 2
+dnl Copyright (C) 2005, 2006 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_HMAC_MD5],
 [
-  AC_LIBSOURCES([hmac.h, hmac-md5.c])
   AC_LIBOBJ([hmac-md5])
 ])
index 1e95822..74c9366 100644 (file)
@@ -1,11 +1,10 @@
-# hmac-sha1.m4 serial 1
-dnl Copyright (C) 2005 Free Software Foundation, Inc.
+# hmac-sha1.m4 serial 2
+dnl Copyright (C) 2005, 2006 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_HMAC_SHA1],
 [
-  AC_LIBSOURCES([hmac.h, hmac-sha1.c])
   AC_LIBOBJ([hmac-sha1])
 ])
index 81612c8..03e1ea3 100644 (file)
--- a/m4/md2.m4
+++ b/m4/md2.m4
@@ -1,11 +1,10 @@
-# md2.m4 serial 1
-dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+# md2.m4 serial 2
+dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 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_MD2],
 [
-  AC_LIBSOURCES([md2.c, md2.h])
   AC_LIBOBJ([md2])
 ])
index 1df2e3e..22a7bde 100644 (file)
--- a/m4/md4.m4
+++ b/m4/md4.m4
@@ -1,12 +1,11 @@
-# md4.m4 serial 1
-dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+# md4.m4 serial 2
+dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 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_MD4],
 [
-  AC_LIBSOURCES([md4.c, md4.h])
   AC_LIBOBJ([md4])
 
   dnl Prerequisites of lib/md4.c.
index b8cdfa9..6fafef2 100644 (file)
@@ -1,5 +1,5 @@
-#serial 2
-dnl Copyright (C) 2005 Free Software Foundation, Inc.
+#serial 3
+dnl Copyright (C) 2005, 2006 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.
@@ -9,7 +9,6 @@ AC_DEFUN([gl_PAGEALIGN_ALLOC],
   dnl Persuade glibc <sys/mman.h> to define MAP_ANONYMOUS.
   AC_REQUIRE([AC_GNU_SOURCE])
 
-  AC_LIBSOURCE([pagealign_alloc.h])
   AC_LIBOBJ([pagealign_alloc])
   gl_PREREQ_PAGEALIGN_ALLOC
 ])
index 15bcad9..8d1b8f3 100644 (file)
@@ -1,4 +1,4 @@
-# read-file.m4 serial 1
+# read-file.m4 serial 2
 dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,7 +6,6 @@ dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_FUNC_READ_FILE],
 [
-  AC_LIBSOURCES([read-file.c, read-file.h])
   AC_LIBOBJ([read-file])
   gl_PREREQ_READ_FILE
 ])
index 5830088..4c82a7f 100644 (file)
@@ -1,4 +1,4 @@
-# readline.m4 serial 4
+# readline.m4 serial 5
 dnl Copyright (C) 2005, 2006 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -9,8 +9,6 @@ dnl Liljeblad.
 
 AC_DEFUN([gl_FUNC_READLINE],
 [
-  AC_LIBSOURCES([readline.c, readline.h])
-
   dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
   AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
   AC_REQUIRE([AC_LIB_RPATH])
index ba5c933..f7bb8d3 100644 (file)
@@ -1,13 +1,11 @@
-# rijndael.m4 serial 1
-dnl Copyright (C) 2005 Free Software Foundation, Inc.
+# rijndael.m4 serial 2
+dnl Copyright (C) 2005, 2006 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_RIJNDAEL],
 [
-  AC_LIBSOURCES([rijndael-alg-fst.c, rijndael-alg-fst.h])
   AC_LIBOBJ([rijndael-alg-fst])
-  AC_LIBSOURCES([rijndael-api-fst.c, rijndael-api-fst.h])
   AC_LIBOBJ([rijndael-api-fst])
 ])
index a37ec0b..8751385 100644 (file)
@@ -13,6 +13,7 @@ configure.ac:
 gl_ARCFOUR
 
 Makefile.am:
+EXTRA_DIST += arcfour.h
 
 Include:
 "arcfour.h"
index 5589222..fbb653a 100644 (file)
@@ -13,6 +13,7 @@ configure.ac:
 gl_ARCTWO
 
 Makefile.am:
+EXTRA_DIST += arctwo.h
 
 Include:
 "arctwo.h"
index bbde4f9..fdeec09 100644 (file)
@@ -13,6 +13,7 @@ configure.ac:
 gl_CHECK_VERSION
 
 Makefile.am:
+EXTRA_DIST += check-version.h
 
 Include:
 "check-version.h"
index d2dccbb..5a56aad 100644 (file)
@@ -13,6 +13,7 @@ configure.ac:
 gl_CRC
 
 Makefile.am:
+EXTRA_DIST += crc.h
 
 Include:
 "crc.h"
index 107796c..5a9555a 100644 (file)
@@ -14,6 +14,7 @@ configure.ac:
 gl_DES
 
 Makefile.am:
+EXTRA_DIST += des.h
 
 Include:
 "des.h"
index f084b8f..fee4e77 100644 (file)
@@ -14,6 +14,7 @@ configure.ac:
 gl_GC
 
 Makefile.am:
+EXTRA_DIST += gc.h
 if GL_COND_LIBTOOL
 lib_LIBADD += $(LTLIBGCRYPT)
 else
index a635ccb..41d4917 100644 (file)
@@ -12,6 +12,7 @@ configure.ac:
 gl_FUNC_GETDELIM
 
 Makefile.am:
+EXTRA_DIST += getdelim.h
 
 Include:
 "getdelim.h"
index 0f2f43f..13b9046 100644 (file)
@@ -13,6 +13,7 @@ configure.ac:
 gl_FUNC_GETLINE
 
 Makefile.am:
+EXTRA_DIST += getline.h
 
 Include:
 "getline.h"
index fc21faf..dd626e9 100644 (file)
@@ -13,6 +13,7 @@ configure.ac:
 gl_GETLOGIN_R
 
 Makefile.am:
+EXTRA_DIST += getlogin_r.h
 
 Include:
 "getlogin_r.h"
index acfce4b..34ea579 100644 (file)
@@ -14,6 +14,7 @@ configure.ac:
 gl_HMAC_MD5
 
 Makefile.am:
+EXTRA_DIST += hmac.h
 
 Include:
 "hmac.h"
index 9b630c5..cb1e517 100644 (file)
@@ -14,6 +14,7 @@ configure.ac:
 gl_HMAC_SHA1
 
 Makefile.am:
+EXTRA_DIST += hmac.h
 
 Include:
 "hmac.h"
index f3fa344..5495344 100644 (file)
@@ -13,6 +13,7 @@ configure.ac:
 gl_MD2
 
 Makefile.am:
+EXTRA_DIST += md2.h
 
 Include:
 "md2.h"
index 9ecfd61..bb47911 100644 (file)
@@ -13,6 +13,7 @@ configure.ac:
 gl_MD4
 
 Makefile.am:
+EXTRA_DIST += md4.h
 
 Include:
 "md4.h"
index 78e6d70..6a81949 100644 (file)
@@ -19,6 +19,7 @@ configure.ac:
 gl_PAGEALIGN_ALLOC
 
 Makefile.am:
+EXTRA_DIST += pagealign_alloc.h
 
 Include:
 #include "pagealign_alloc.h"
index 1b7263e..f75f758 100644 (file)
@@ -12,6 +12,7 @@ configure.ac:
 gl_FUNC_READ_FILE
 
 Makefile.am:
+EXTRA_DIST += read-file.h
 
 Include:
 "read-file.h"
index 24bbec9..325d135 100644 (file)
@@ -14,6 +14,7 @@ configure.ac:
 gl_FUNC_READLINE
 
 Makefile.am:
+EXTRA_DIST += readline.h
 
 Include:
 "readline.h"
index 21579bf..1218712 100644 (file)
@@ -15,6 +15,7 @@ configure.ac:
 gl_RIJNDAEL
 
 Makefile.am:
+EXTRA_DIST += rijndael-alg-fst.h rijndael-api-fst.h
 
 Include:
 "rijndael-alg-fst.h"