diff options
author | Jim Meyering <jim@meyering.net> | 2003-01-22 15:50:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-01-22 15:50:54 +0000 |
commit | c7753e456b9dbbe5c262c3b5164b592cfca3d311 (patch) | |
tree | 3fc12aeea11e0e45bc94e0d129893cc7dfc5c604 | |
parent | 6046409989b8fe1f439d76a70b9cd6ed2f2f88b6 (diff) | |
download | coreutils-c7753e456b9dbbe5c262c3b5164b592cfca3d311.tar.xz |
.
-rw-r--r-- | aclocal.m4 | 14 | ||||
-rw-r--r-- | lib/Makefile.in | 6 |
2 files changed, 14 insertions, 6 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 5028fb439..5093bca74 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -2557,7 +2557,7 @@ AC_DEFUN([AC_FUNC_ACL], AC_CHECK_FUNCS(acl)]) #serial 1 -# Use replacement ftw.c if the one in the C library is inadequate or buggy. +# Use the replacement ftw.c if the one in the C library is inadequate or buggy. # From Jim Meyering AC_DEFUN([AC_FUNC_FTW], @@ -2566,14 +2566,17 @@ AC_DEFUN([AC_FUNC_FTW], AC_REQUIRE([AC_HEADER_DIRENT]) AC_CHECK_HEADERS(sys/param.h) AC_CHECK_DECLS([stpcpy]) + + # In the event that we have to use the replacement ftw.c, + # see if we'll also need the replacement tsearch.c. AC_CHECK_FUNC([tdestroy], , [need_tdestroy=1]) + AC_CACHE_CHECK([for working GNU ftw], ac_cv_func_ftw_working, [ - # The following test would fail prior to glibc-2.3.2, because `depth' # would be 2 rather than 4. mkdir -p conftest.dir/a/b/c - AC_RUN_IFELSE([AC_LANG_SOURCE([], [[ + AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <string.h> #include <stdlib.h> #include <ftw.h> @@ -2602,11 +2605,16 @@ main () [ac_cv_func_ftw_working=yes], [ac_cv_func_ftw_working=no], [ac_cv_func_ftw_working=no])]) + rm -rf conftest.dir if test $ac_cv_func_ftw_working = no; then AC_LIBOBJ([ftw]) + AC_CONFIG_LINKS([$ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h]) # Add tsearch.o IFF we have to use the replacement ftw.c. if test -n "$need_tdestroy"; then AC_LIBOBJ([tsearch]) + # Link search.h to search_.h if we use the replacement tsearch.c. + AC_CONFIG_LINKS( + [$ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h]) fi fi ])# AC_FUNC_FTW diff --git a/lib/Makefile.in b/lib/Makefile.in index bc4b27361..01fe68e51 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -188,7 +188,7 @@ libfetish_a_SOURCES = \ fnmatch_.h \ fopen-safer.c \ fsusage.h \ - ftw.h \ + ftw_.h \ full-read.c full-read.h \ full-write.c full-write.h \ getline.h \ @@ -228,7 +228,7 @@ libfetish_a_SOURCES = \ same.c same.h \ save-cwd.c save-cwd.h \ savedir.c savedir.h \ - search.h \ + search_.h \ settime.c \ sha.c sha.h \ sig2str.h \ @@ -273,7 +273,7 @@ charset_tmp = $(DESTDIR)$(libdir)/charset.tmp SUFFIXES = .sed .sin -CLEANFILES = charset.alias ref-add.sed ref-del.sed +CLEANFILES = charset.alias ref-add.sed ref-del.sed ftw.h search.h subdir = lib mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h |