From 5ab542c360e4ee119be713dd4ecd3e71f1bfba40 Mon Sep 17 00:00:00 2001 From: jtc Date: Tue, 29 Jul 2008 22:26:04 +0000 Subject: ChangeLogTag: Tue Jul 29 22:23:08 UTC 2008 J.T. Conklin --- ACE/m4/ace.m4 | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) (limited to 'ACE/m4') diff --git a/ACE/m4/ace.m4 b/ACE/m4/ace.m4 index 83864201f0a..880e5e16598 100644 --- a/ACE/m4/ace.m4 +++ b/ACE/m4/ace.m4 @@ -545,6 +545,7 @@ AC_DEFUN([ACE_CONFIGURATION_OPTIONS], # placeholder for WxWindows/wxWidgets support AM_CONDITIONAL([BUILD_WXWINDOWS], false) + ACE_PATH_BZIP2 ACE_PATH_ZLIB ACE_PATH_ZZIP @@ -1355,6 +1356,60 @@ AM_CONDITIONAL([BUILD_X11], [test X$no_x != Xyes]) ]) +# ACE_PATH_BZIP2 +#--------------------------------------------------------------------------- +# Find bzip2 Libraries, flags, etc. +AC_DEFUN([ACE_PATH_BZIP2], +[ +ACE_BZIP2_CPPFLAGS="" +ACE_BZIP2_LDFLAGS="" + +dnl TODO: default to false, at least until we add a check to see if +dnl the bzip2 library is usable. +AC_ARG_WITH([bzip2], + AS_HELP_STRING([--with-bzip2@<:@=DIR@:>@], + [root directory of bzip2 installation]), + [ + ace_with_bzip2="${withval}" + if test "${ace_with_bzip2}" != yes; then + ace_bzip2_include="${ace_with_bzip2}/include" + ace_bzip2_libdir="${ace_with_bzip2}/lib" + fi + ],[ace_with_bzip2=no]) + +dnl TODO: let's wait and see before adding options to specify header +dnl and library location separately. +dnl +dnl AC_ARG_WITH([bzip2_include], +dnl AS_HELP_STRING([--with-bzip2-include=DIR], +dnl [specify exact include dir for bzip2 headers]), +dnl [ace_bzip2_include="$withval"]) +dnl +dnl AC_ARG_WITH([bzip2_libdir], +dnl AS_HELP_STRING([--with-bzip2-libdir=DIR], +dnl [specify exact include dir for bzip2 libraries]), +dnl [ace_bzip2_libdir="$withval"]) + +if test "${ace_bzip2_include}"; then + ACE_BZIP2_CPPFLAGS="-I$ace_bzip2_include" +fi + +if test "${ace_bzip2_libdir}"; then + ACE_BZIP2_LDFLAGS="-L$ace_bzip2_libdir" +fi + +ACE_BZIP2_CPPFLAGS="${ACE_BZIP2_CPPFLAGS} -DBZIP2" + +if test "${ace_with_bzip2}" != no; then + ACE_BZIP2_LIBS="-lbz2" + AC_SUBST(ACE_BZIP2_CPPFLAGS) + AC_SUBST(ACE_BZIP2_LDFLAGS) + AC_SUBST(ACE_BZIP2_LIBS) +fi +AM_CONDITIONAL([BUILD_BZIP2], test "${ace_with_bzip2}" != no) +]) + + # ACE_PATH_ZLIB #--------------------------------------------------------------------------- # Find zlib Libraries, flags, etc. -- cgit v1.2.1