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"
8 AM_INIT_AUTOMAKE(findutils, 4.1.3)
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"])
21 dnl Checks for programs.
32 dnl Try to get a POSIX.1 environment.
34 dnl Checks for libraries.
35 AC_CHECK_LIB(sun, getpwnam)
37 dnl Checks for header files.
38 AC_CHECK_HEADERS(fcntl.h string.h limits.h unistd.h errno.h)
45 AC_MSG_CHECKING(how to get filesystem type)
47 # The order of these tests is important.
48 AC_TRY_CPP([#include <sys/statvfs.h>
49 #include <sys/fstyp.h>], AC_DEFINE(FSTYPE_STATVFS) fstype=SVR4)
50 if test $fstype = no; then
51 AC_TRY_CPP([#include <sys/statfs.h>
52 #include <sys/fstyp.h>], AC_DEFINE(FSTYPE_USG_STATFS) fstype=SVR3)
54 if test $fstype = no; then
55 AC_TRY_CPP([#include <sys/statfs.h>
56 #include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=AIX)
58 if test $fstype = no; then
59 AC_TRY_CPP([#include <mntent.h>], AC_DEFINE(FSTYPE_MNTENT) fstype=4.3BSD)
61 if test $fstype = no; then
62 AC_EGREP_HEADER(f_type;, sys/mount.h, AC_DEFINE(FSTYPE_STATFS) fstype=4.4BSD/OSF1)
64 if test $fstype = no; then
65 AC_TRY_CPP([#include <sys/mount.h>
66 #include <sys/fs_types.h>], AC_DEFINE(FSTYPE_GETMNT) fstype=Ultrix)
68 AC_MSG_RESULT($fstype)
70 dnl Checks for typedefs, structures, and compiler characteristics.
75 AC_CHECK_TYPE(ino_t, unsigned long)
76 AC_CHECK_TYPE(dev_t, unsigned long)
84 dnl Checks for library functions.
87 AC_REPLACE_FUNCS(memcmp memset mktime stpcpy strdup strftime strspn strstr strtol)
91 dnl AC_CHECK_FUNC(getstr, ,
92 dnl LIBOBJS="$LIBOBJS getline.o"
93 dnl AC_SUBST(LIBOBJS)dnl
96 AC_CHECK_FUNCS(fchdir getcwd strerror basename endgrent endpwent)
100 AC_FUNC_CLOSEDIR_VOID
102 dnl internationalization macros
105 # This is necessary so that .o files in LIBOBJS are also built via
106 # the ANSI2KNR-filtering rules.
107 LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
108 AC_OUTPUT(Makefile lib/Makefile find/Makefile find/testsuite/Makefile
109 xargs/Makefile xargs/testsuite/Makefile locate/Makefile
111 intl/Makefile po/Makefile.in
112 doc/Makefile m4/Makefile,