aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-08-31 15:09:01 +0000
committerted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-08-31 15:09:01 +0000
commit53a8b1a204145bdf4e8dcd50c20d9df50a002327 (patch)
tree1a3a2156240d62d776c9252cc3f48a6f6ac1264a /configure.ac
parentIssue 370 - fix PDBSourceLineWriter::GetModuleInfo's CPU detection (diff)
downloadbreakpad-53a8b1a204145bdf4e8dcd50c20d9df50a002327.tar.xz
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
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 70baccb0..2a3ed2c8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,6 +34,8 @@ AC_INIT(breakpad, 0.1, opensource@google.com)
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 @@ AC_HEADER_STDC
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]