changeset 8304:e42becd912e3

New macro gl_CANONICALIZE_LGPL_SEPARATE.
author Bruno Haible <bruno@clisp.org>
date Sat, 03 Mar 2007 19:24:32 +0000
parents fb6ff6e4ca87
children 753e0a5418c5
files ChangeLog m4/canonicalize-lgpl.m4
diffstat 2 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-03-03  Bruno Haible  <bruno@clisp.org>
+
+	* m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
+
 2007-03-03  Bruno Haible  <bruno@clisp.org>
 
 	* lib/xreadlink.c: Include <unistd.h> unconditionally.
--- a/m4/canonicalize-lgpl.m4
+++ b/m4/canonicalize-lgpl.m4
@@ -1,5 +1,5 @@
-# canonicalize-lgpl.m4 serial 3
-dnl Copyright (C) 2003, 2006 Free Software Foundation, Inc.
+# canonicalize-lgpl.m4 serial 4
+dnl Copyright (C) 2003, 2006-2007 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,15 @@
   fi
 ])
 
+# Like gl_CANONICALIZE_LGPL, except prepare for separate compilation
+# (no AC_LIBOBJ).
+AC_DEFUN([gl_CANONICALIZE_LGPL_SEPARATE],
+[
+  AC_CHECK_DECLS_ONCE(canonicalize_file_name)
+  AC_CHECK_FUNCS_ONCE(canonicalize_file_name)
+  gl_PREREQ_CANONICALIZE_LGPL
+])
+
 # Prerequisites of lib/canonicalize-lgpl.c.
 AC_DEFUN([gl_PREREQ_CANONICALIZE_LGPL],
 [