diff options
author | ted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2011-02-28 14:05:22 +0000 |
---|---|---|
committer | ted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2011-02-28 14:05:22 +0000 |
commit | dbf409ca209b0cd2723ef617a8de024e2a65009b (patch) | |
tree | bb73df293f3ad2fee445e3772d3f5015da56e41a /configure.ac | |
parent | Fix breakpad compilation on ubuntu 10.10. (diff) | |
download | breakpad-dbf409ca209b0cd2723ef617a8de024e2a65009b.tar.xz |
Make programs in src/tools/linux build via the automake build system
R=jimb at http://breakpad.appspot.com/265001
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@775 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 8379a50e..58e417dc 100644 --- a/configure.ac +++ b/configure.ac @@ -49,6 +49,7 @@ AC_PROG_RANLIB AC_HEADER_STDC m4_include(m4/ax_pthread.m4) AX_PTHREAD +AC_CHECK_HEADERS([a.out.h]) # Only build Linux client libs when compiling for Linux case $host in @@ -95,8 +96,26 @@ AC_ARG_ENABLE(processor, [disable_processor=false]) AM_CONDITIONAL(DISABLE_PROCESSOR, test x$disable_processor = xtrue) -if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue; then - AC_MSG_ERROR([--disable-processor was specified, and not building for Linux. Nothing to build!]) +AC_ARG_ENABLE(tools, + AS_HELP_STRING([--disable-tools], + [Don't build tool binaries] + [(default is no)]), + [case "${enableval}" in + yes) + disable_tools=false + ;; + no) + disable_tools=true + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --disable-tools) + ;; + esac], + [disable_tools=false]) +AM_CONDITIONAL(DISABLE_TOOLS, test x$disable_tools = xtrue) + +if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue -a x$disable_tools = xtrue; then + AC_MSG_ERROR([--disable-processor and --disable-tools were specified, and not building for Linux. Nothing to build!]) fi AC_CHECK_MEMBER(struct sockaddr.sa_len, |