X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/a746eb9de03c3a988e3ce3038fabd427bba98a44..efb2f6bf626c4379065431bc207b47a4b824a7f3:/configure.in diff --git a/configure.in b/configure.in index 2d48d001..511620af 100644 --- a/configure.in +++ b/configure.in @@ -40,8 +40,6 @@ echo no) AC_FUNC_MEMCMP AC_FUNC_MMAP AC_FUNC_UTIME_NULL -AC_FUNC_SETPGRP -AC_FUNC_GETPGRP AC_CHECK_FUNCS(waitpid strtok pipe getcwd mkdir strdup strerror chown chmod mknod) AC_CHECK_FUNCS(fchmod fstat strchr bcopy bzero readlink link utime utimes) AC_CHECK_FUNCS(memmove getopt_long lchown setlinebuf) @@ -52,9 +50,16 @@ main() { exit(fnmatch("*.o", "x.o", 0) == 0? 0: 1); }], echo yes;AC_DEFINE(HAVE_FNMATCH), echo no) -echo $ac_n "checking for long long... $ac_c" +echo $ac_n "checking for long long ... $ac_c" AC_TRY_RUN([#include -main() { long long x = 1000000000000; char b[20]; sprintf(b,"%lld", x); exit(strcmp("1000000000000", b) == 0? 0: 1); }], +main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }], +echo yes;AC_DEFINE(HAVE_LONGLONG), +echo no) + +echo $ac_n "checking for off64_t ... $ac_c" +AC_TRY_RUN([#include +#include +main() { struct stat64 st; off64_t s; exit((lstat64("/dev/null", &st)==0)?0:1); }], echo yes;AC_DEFINE(HAVE_LONGLONG), echo no)