[Box Backup-commit] COMMIT r2758 - box/trunk/infrastructure/m4
subversion at boxbackup.org
subversion at boxbackup.org
Wed Sep 29 18:54:09 BST 2010
Author: chris
Date: 2010-09-29 18:54:09 +0100 (Wed, 29 Sep 2010)
New Revision: 2758
Modified:
box/trunk/infrastructure/m4/vl_lib_readline.m4
Log:
Workaround for Mac OSX where readline.h doesn't compile if stdio.h is
not included first.
Modified: box/trunk/infrastructure/m4/vl_lib_readline.m4
===================================================================
--- box/trunk/infrastructure/m4/vl_lib_readline.m4 2010-09-27 23:55:35 UTC (rev 2757)
+++ box/trunk/infrastructure/m4/vl_lib_readline.m4 2010-09-29 17:54:09 UTC (rev 2758)
@@ -128,6 +128,18 @@
])
fi
+ AC_TRY_LINK([$vl_cv_lib_includes], [(void) readline;],
+ [vl_compiles=yes], [vl_compiles=no])
+ if test "x$vl_compiles" = "xno"; then
+ AC_TRY_LINK([#include <stdio.h>
+ $vl_cv_lib_includes], [(void) readline;],
+ [vl_compiles_with_stdio=yes], [vl_compiles_with_stdio=no])
+ if test "x$vl_compiles_with_stdio" = "xyes"; then
+ vl_cv_lib_includes="#include <stdio.h>
+$vl_cv_lib_includes"
+ fi
+ fi
+
if test "x$vl_cv_lib_readline_compat_found" = "xyes"; then
BOX_CHECK_VAR([rl_completion_matches], [in readline headers],
[$vl_cv_lib_includes])
More information about the Boxbackup-commit
mailing list