]> code.citadel.org Git - citadel.git/blobdiff - citadel/configure.ac
Checked in matt's patches for TCP performance on Mac OS:
[citadel.git] / citadel / configure.ac
index d7bd4ed5b70a9f1dfdc8adc91b3013da48d4cb37..c9ebd67cc946a014af79c84a2172d3736dfad6a8 100644 (file)
@@ -682,7 +682,19 @@ AC_CACHE_CHECK([under the bed], ac_cv_under_the_bed, [
                ;;
        esac
        ])
-
+AC_CANONICAL_HOST
+AC_MSG_CHECKING([for reality distorion field])
+case "$host" in
+       dnl TCP buffering isn't ideal under OS X. This define should also be
+       dnl checked in other cases of OS X-Linux differences.
+       *-*-darwin*)
+               AC_DEFINE(HAVE_DARWIN)
+               AC_MSG_RESULT([present])
+       ;;
+       *)
+               AC_MSG_RESULT([missing])
+       ;;
+esac
 dnl Done! Now write the Makefile and sysdep.h
 AC_SUBST(AUTH)
 AC_SUBST(CHKPWD)