1 dnl Process this file with autoconf to produce a configure script.
3 AM_CONFIG_HEADER(config.h)
5 dnl Set of available languages.
6 ALL_LINGUAS=" de es fr it ko nl pl pt_BR ru sv gl et"
8 AM_INIT_AUTOMAKE(findutils, 4.1.4)
11 AC_ARG_ENABLE(id-cache,
12 [ --enable-id-cache cache all UIDs & GIDs; avoid if using NIS or Hesiod],
15 [ --with-afs support -fstype afs],
17 CPPFLAGS="$CPPFLAGS -I/usr/afsws/include"
18 LIBS="$LIBS -L/usr/afsws/lib -L/usr/afsws/lib/afs -lsys -lrx -llwp"])
20 dnl Checks for programs.
34 dnl Try to get a POSIX.1 environment.
36 dnl Checks for libraries.
37 AC_CHECK_LIB(sun, getpwnam)
39 dnl Checks for header files.
40 AC_CHECK_HEADERS(fcntl.h string.h limits.h unistd.h errno.h)
47 AC_MSG_CHECKING(how to get filesystem type)
49 # The order of these tests is important.
50 AC_TRY_CPP([#include <sys/statvfs.h>
51 #include <sys/fstyp.h>], AC_DEFINE(FSTYPE_STATVFS) fstype=SVR4)
52 if test $fstype = no; then
53 AC_TRY_CPP([#include <sys/statfs.h>
54 #include <sys/fstyp.h>], AC_DEFINE(FSTYPE_USG_STATFS) fstype=SVR3)
56 if test $fstype = no; then
57 AC_TRY_CPP([#include <sys/statfs.h>
58 #include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=AIX)
60 if test $fstype = no; then
61 AC_TRY_CPP([#include <mntent.h>], AC_DEFINE(FSTYPE_MNTENT) fstype=4.3BSD)
63 if test $fstype = no; then
64 AC_EGREP_HEADER(f_type;, sys/mount.h, AC_DEFINE(FSTYPE_STATFS) fstype=4.4BSD/OSF1)
66 if test $fstype = no; then
67 AC_TRY_CPP([#include <sys/mount.h>
68 #include <sys/fs_types.h>], AC_DEFINE(FSTYPE_GETMNT) fstype=Ultrix)
70 AC_MSG_RESULT($fstype)
72 dnl Checks for typedefs, structures, and compiler characteristics.
77 AC_CHECK_TYPE(ino_t, unsigned long)
78 AC_CHECK_TYPE(dev_t, unsigned long)
81 AC_CHECK_MEMBERS((struct stat.st_rdev))
85 dnl Checks for library functions.
88 AC_REPLACE_FUNCS(memcmp memset stpcpy strdup strftime strspn strstr \
93 dnl AC_CHECK_FUNC(getstr, ,
94 dnl LIBOBJS="$LIBOBJS getline.o"
95 dnl AC_SUBST(LIBOBJS)dnl
98 AC_CHECK_FUNCS(fchdir getcwd strerror basename endgrent endpwent)
103 AC_FUNC_CLOSEDIR_VOID
105 dnl internationalization macros
108 # This is necessary so that .o files in LIBOBJS are also built via
109 # the ANSI2KNR-filtering rules.
110 LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
112 Makefile lib/Makefile find/Makefile find/testsuite/Makefile
113 xargs/Makefile xargs/testsuite/Makefile locate/Makefile
114 intl/Makefile po/Makefile.in
115 doc/Makefile m4/Makefile