summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-01-11 09:35:55 +0000
committerJim Meyering <jim@meyering.net>2003-01-11 09:35:55 +0000
commit23ad418ba6957375cec2d163b0e95050056d4825 (patch)
treeb1a90285d857dc7997fd2ac5d60cafcbb49abaab
parent5d33b7498fe1a3d221757791bf37fed114c62dad (diff)
downloadcoreutils-23ad418ba6957375cec2d163b0e95050056d4825.tar.xz
add prereqs
-rw-r--r--m4/canonicalize.m414
1 files changed, 9 insertions, 5 deletions
diff --git a/m4/canonicalize.m4 b/m4/canonicalize.m4
index d859de6d0..7e6276c5d 100644
--- a/m4/canonicalize.m4
+++ b/m4/canonicalize.m4
@@ -1,9 +1,13 @@
#serial 1
-# This would simply be AC_REPLACE_FUNC([canonicalize_file_name])
-# if the function name weren't so long. Besides, I would rather
-# not have underscores in file names.
AC_DEFUN([AC_FUNC_CANONICALIZE_FILE_NAME],
[
- dnl FIXME: add prerequisites here
- AC_CHECK_FUNC(canonicalize_file_name, , [AC_LIBOBJ(canonicalize)])
+ AC_REQUIRE([AC_HEADER_STDC])
+ AC_CHECK_HEADERS(string.h sys/param.h stddef.h)
+ AC_CHECK_FUNCS(resolvepath)
+ AC_REQUIRE([AC_HEADER_STAT])
+
+ # This would simply be AC_REPLACE_FUNC([canonicalize_file_name])
+ # if the function name weren't so long. Besides, I would rather
+ # not have underscores in file names.
+ AC_CHECK_FUNC([canonicalize_file_name], , [AC_LIBOBJ(canonicalize)])
])