Tests for module 'printf-frexpl'.
[gnulib.git] / m4 / readlink.m4
index fd73d49..0834565 100644 (file)
@@ -1,22 +1,22 @@
-# readlink.m4 serial 1
-dnl Copyright (C) 2003 Free Software Foundation, Inc.
-dnl This file is free software, distributed under the terms of the GNU
-dnl General Public License.  As a special exception to the GNU General
-dnl Public License, this file may be distributed as part of a program
-dnl that contains a configuration script generated by Autoconf, under
-dnl the same distribution terms as the rest of that program.
+# readlink.m4 serial 3
+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,
+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)
   if test $ac_cv_func_readlink = no; then
+    HAVE_READLINK=0
     AC_LIBOBJ(readlink)
     gl_PREREQ_READLINK
   fi
 ])
 
 # Prerequisites of lib/readlink.c.
-AC_DEFUN([gl_PREREQ_READLINE],
+AC_DEFUN([gl_PREREQ_READLINK],
 [
   :
 ])