X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=configure.ac;h=99f2220193fb7f9549697bceb102137f3bf550c4;hp=74d0cb7af227ac84ec62602d47c1f08955c574ca;hb=94a54f75bfc4b0c798e760d0f81ad9c9ba37869c;hpb=2700e7ee1d181e75ca5f21c9dde32ca3fa33d395 diff --git a/configure.ac b/configure.ac index 74d0cb7..99f2220 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ AC_PREREQ([2.50]) -AC_INIT([opensaml],[2.5],[https://issues.shibboleth.net/],[opensaml]) +AC_INIT([opensaml],[2.5.4],[https://issues.shibboleth.net/],[opensaml]) AC_CONFIG_SRCDIR(saml) AC_CONFIG_AUX_DIR(build-aux) AC_CONFIG_MACRO_DIR(m4) @@ -49,17 +49,20 @@ if test "$GCC" = "yes" ; then # ]) CFLAGS="$GCC_CFLAGS" CXXFLAGS="$GCC_CXXFLAGS" -else -# Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993 - case "${host_cpu}-${host_os}" in - *solaris*) - if test "$CXX" = "CC" ; then - CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp" - fi - ;; - esac fi +# Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993 +# Also enables POSIX semantics for some functions. +case "${host_cpu}-${host_os}" in + *solaris*) + CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS" + CXXFLAGS="$CXXFLAGS -D_POSIX_PTHREAD_SEMANTICS" + if test "$CXX" = "CC" ; then + CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp" + fi + ;; +esac + # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T @@ -67,7 +70,6 @@ AC_HEADER_DIRENT # Checks for library functions. AC_CHECK_FUNCS([strchr strdup strstr]) -AC_CHECK_SIZEOF(time_t) # checks for pthreads ACX_PTHREAD([enable_threads="pthread"],[enable_threads="no"]) @@ -102,7 +104,11 @@ else fi AC_CHECK_HEADER([zlib.h],,AC_MSG_ERROR([unable to find zlib header files])) -AC_CHECK_LIB([z],[deflateInit2_],[],AC_MSG_ERROR([unable to link with zlib library])) +AC_LINK_IFELSE( + [AC_LANG_PROGRAM([[#include ]], + [[zlibVersion()]])],, + [AC_MSG_ERROR([unable to link with zlib])]) + # OpenSSL settings AC_ARG_WITH(openssl, @@ -134,6 +140,15 @@ AC_LANG([C++]) AC_CXX_NAMESPACES AC_CXX_REQUIRE_STL +# Boost +BOOST_REQUIRE +BOOST_BIND +BOOST_LAMBDA +BOOST_PTR_CONTAINER +BOOST_SMART_PTR +BOOST_STRING_ALGO +CPPFLAGS="$BOOST_CPPFLAGS $CPPFLAGS" + # log4shib settings (favor this version over the log4cpp code) AC_PATH_PROG(LOG4SHIB_CONFIG,log4shib-config) AC_ARG_WITH(log4shib,