no longer use mmap() in rsync because of the risk of a SIGBUS when
[rsync/rsync.git] / configure.in
index 4d96eca..79aab77 100644 (file)
@@ -49,7 +49,7 @@ fi
 
 AC_FUNC_MEMCMP
 AC_FUNC_UTIME_NULL
-AC_CHECK_FUNCS(mmap munmap waitpid getcwd strdup strerror chown chmod mknod)
+AC_CHECK_FUNCS(waitpid getcwd strdup strerror chown chmod mknod)
 AC_CHECK_FUNCS(fchmod fstat strchr readlink link utime utimes strftime)
 AC_CHECK_FUNCS(memmove getopt_long lchown vsnprintf snprintf setsid glob strpbrk)
 AC_CHECK_FUNCS(strlcat strlcpy)
@@ -162,6 +162,14 @@ if test x"$ac_cv_func_connect" = x"no"; then
     fi
 fi
 
+# 
+# if we can't find strcasecmp, look in -lresolv (for Unixware at least)
+#
+AC_CHECK_FUNCS(strcasecmp)
+if test x"$ac_cv_func_strcasecmp" = x"no"; then
+    AC_CHECK_LIB(resolv, strcasecmp)
+fi
+
 #
 # The following test was mostly taken from the tcl/tk plus patches
 #