Issue 378 - Don't compile Linux client libraries on non-Linux systems
R=nealsid at http://breakpad.appspot.com/173001/show
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@679 4c0a9323-5329-0410-9bdc-e9ce6186880e
diff --git a/configure.ac b/configure.ac
index 70baccb..2a3ed2c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,6 +34,8 @@
dnl Sanity check: the argument is just a file that should exist.
AC_CONFIG_SRCDIR(README)
AC_CONFIG_AUX_DIR(autotools)
+AC_CONFIG_MACRO_DIR([m4])
+AC_CANONICAL_HOST
AM_INIT_AUTOMAKE(subdir-objects tar-ustar 1.11.1)
AM_CONFIG_HEADER(src/config.h)
@@ -49,6 +51,14 @@
m4_include(m4/ax_pthread.m4)
AX_PTHREAD
+# Only build Linux client libs when compiling for Linux
+case $host in
+ *-*-linux*)
+ LINUX_HOST=true
+ ;;
+esac
+AM_CONDITIONAL(LINUX_HOST, test x$LINUX_HOST = xtrue)
+
AC_ARG_ENABLE(m32,
AS_HELP_STRING([--enable-m32],
[Compile/build with -m32]