This should fix the bug where file transfer with compression failed with
[rsync/rsync.git] / configure.in
CommitLineData
c627d613
AT
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(byteorder.h)
3AC_CONFIG_HEADER(config.h)
4
5dnl Checks for programs.
6AC_PROG_CC
7AC_PROG_INSTALL
8AC_SUBST(SHELL)
9
10AC_HEADER_DIRENT
c627d613
AT
11AC_HEADER_TIME
12AC_HEADER_SYS_WAIT
13AC_CHECK_HEADERS(sys/fcntl.h fcntl.h sys/time.h unistd.h utime.h grp.h)
94481d91 14AC_CHECK_HEADERS(compat.h sys/param.h ctype.h sys/wait.h sys/ioctl.h)
d7b305fd 15AC_CHECK_HEADERS(sys/filio.h string.h stdlib.h)
c627d613
AT
16
17AC_CHECK_SIZEOF(int)
18AC_CHECK_SIZEOF(long)
19AC_CHECK_SIZEOF(short)
20
21AC_C_INLINE
22
23AC_TYPE_SIGNAL
24AC_TYPE_UID_T
25AC_TYPE_MODE_T
26AC_TYPE_OFF_T
27AC_TYPE_SIZE_T
28AC_TYPE_PID_T
29AC_STRUCT_ST_RDEV
dc5ddbcc 30AC_CHECK_TYPE(ino_t,unsigned)
c627d613 31
e260d7fb 32echo $ac_n "checking for errno in errno.h... $ac_c"
c627d613
AT
33AC_TRY_COMPILE([#include <errno.h>],[int i = errno],
34echo yes; AC_DEFINE(HAVE_ERRNO_DECL),
35echo no)
36
37AC_FUNC_MEMCMP
38AC_FUNC_MMAP
39AC_FUNC_UTIME_NULL
40AC_CHECK_FUNCS(waitpid strtok pipe getcwd mkdir strdup strerror chown chmod mknod)
dc5ddbcc 41AC_CHECK_FUNCS(fchmod fstat strchr bcopy bzero readlink link utime utimes)
94481d91 42AC_CHECK_FUNCS(memmove getopt_long)
c627d613 43
e260d7fb 44echo $ac_n "checking for working fnmatch... $ac_c"
c627d613
AT
45AC_TRY_RUN([#include <fnmatch.h>
46main() { exit(fnmatch("*.o", "x.o", 0) == 0? 0: 1); }],
47echo yes;AC_DEFINE(HAVE_FNMATCH),
48echo no)
49
50AC_OUTPUT(Makefile)