New macro gl_FUNC_READLINK_SEPARATE for the relocatable wrapper program.
authorBruno Haible <bruno@clisp.org>
Sat, 3 Mar 2007 19:32:53 +0000 (19:32 +0000)
committerBruno Haible <bruno@clisp.org>
Sat, 3 Mar 2007 19:32:53 +0000 (19:32 +0000)
ChangeLog
m4/readlink.m4

index 51b9c28..3754e7c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-03-03  Bruno Haible  <bruno@clisp.org>
 
+       * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
+       (gl_FUNC_READLINK): Update.
+
        * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
 
 2007-03-03  Bruno Haible  <bruno@clisp.org>
index 0834565..1c347a0 100644 (file)
@@ -1,4 +1,4 @@
-# readlink.m4 serial 3
+# readlink.m4 serial 4
 dnl Copyright (C) 2003, 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,
@@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_READLINK],
 [
   AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
-  AC_CHECK_FUNCS(readlink)
+  AC_CHECK_FUNCS_ONCE([readlink])
   if test $ac_cv_func_readlink = no; then
     HAVE_READLINK=0
     AC_LIBOBJ(readlink)
@@ -15,6 +15,13 @@ AC_DEFUN([gl_FUNC_READLINK],
   fi
 ])
 
+# Like gl_FUNC_READLINK, except prepare for separate compilation (no AC_LIBOBJ).
+AC_DEFUN([gl_FUNC_READLINK_SEPARATE],
+[
+  AC_CHECK_FUNCS_ONCE([readlink])
+  gl_PREREQ_READLINK
+])
+
 # Prerequisites of lib/readlink.c.
 AC_DEFUN([gl_PREREQ_READLINK],
 [