add a --disable-processor configure arg to skip building processor libs and just build client libs

R=nealsid at http://breakpad.appspot.com/209001/show

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@708 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
ted.mielczarek 2010-10-05 19:38:22 +00:00
parent f801709a68
commit e574a2adc6
5 changed files with 1450 additions and 1057 deletions

View file

@ -78,6 +78,28 @@ AC_ARG_ENABLE(m32,
esac],
[usem32=false])
AC_ARG_ENABLE(processor,
AS_HELP_STRING([--disable-processor],
[Don't build processor library]
[(default is no)]),
[case "${enableval}" in
yes)
disable_processor=false
;;
no)
disable_processor=true
;;
*)
AC_MSG_ERROR(bad value ${enableval} for --disable-processor)
;;
esac],
[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!])
fi
AC_CHECK_MEMBER(struct sockaddr.sa_len,
[AC_DEFINE([GET_SA_LEN(X)],[(((struct sockaddr*)&(X))->sa_len)],
[actual length of specific struct sockaddr])],