2 AC_INIT([shibboleth],[2.5.0],[https://issues.shibboleth.net/],[shibboleth-sp])
3 AC_CONFIG_SRCDIR(shibsp)
4 AC_CONFIG_AUX_DIR(build-aux)
5 AC_CONFIG_MACRO_DIR(m4)
19 DX_INIT_DOXYGEN(shibboleth, doxygen.cfg, doc/api)
23 AS_HELP_STRING([--enable-debug],[Have GCC compile with symbols (Default = no)]),
24 enable_debug=$enableval, enable_debug=no)
26 if test "$enable_debug" = "yes" ; then
27 GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
28 GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
30 GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
31 GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
34 AC_CONFIG_HEADERS([config.h shibsp/config_pub.h])
35 AC_CONFIG_FILES([shibboleth.spec])
37 AC_PROG_CC([gcc gcc3 cc])
38 AC_PROG_CXX([g++ g++3 c++ CC])
41 if test "$GCC" = "yes" ; then
42 # AC_HAVE_GCC_VERSION(4,0,0,0,
44 # AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
45 # [Define to enable class visibility control in gcc.])
46 # GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
47 # GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
49 CFLAGS="-Wall $GCC_CFLAGS"
50 CXXFLAGS="-Wall $GCC_CXXFLAGS"
53 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
54 # Also enables POSIX semantics for some functions.
55 case "${host_cpu}-${host_os}" in
57 CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
58 CXXFLAGS="$CXXFLAGS -D_POSIX_PTHREAD_SEMANTICS"
59 if test "$CXX" = "CC" ; then
60 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
64 CXXFLAGS="$CXXFLAGS -D_POSIX_PII_SOCKET"
70 # Checks for typedefs, structures, and compiler characteristics.
75 # Checks for library functions.
78 AC_CHECK_HEADERS([sys/utsname.h grp.h pwd.h])
79 AC_CHECK_HEADERS([sys/socket.h], [AC_DEFINE([SHIBSP_HAVE_SYS_SOCKET_H],[1],[Define to 1 if you have the <sys/socket> header file.])], [])
80 AC_CHECK_FUNCS([strchr strdup strstr timegm gmtime_r localtime_r strtok_r strcasecmp getpwnam getgrnam])
81 AC_CHECK_TYPES([struct sockaddr_storage], [], [], [[#include <sys/socket.h>]])
82 AC_CHECK_MEMBERS([struct sockaddr.sa_len], [], [], [[#include <sys/socket.h>]])
86 ACX_PTHREAD([enable_threads="pthread"],[enable_threads="no"])
87 if test $enable_threads != "pthread"; then
88 AC_MSG_ERROR([unable to find pthreads, currently this is required])
90 AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])
91 LIBS="$PTHREAD_LIBS $LIBS"
92 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
93 CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
98 AS_HELP_STRING([--with-openssl=PATH],[where openssl is installed]),
99 [if test x_$with_openssl != x_/usr; then
100 SSLFLAGS="-I${with_openssl}/include"
103 if test "x$with_openssl" = "x" ; then
104 AC_PATH_PROG(PKG_CONFIG, pkg-config)
105 if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
106 if pkg-config openssl ; then
107 SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
109 AC_MSG_WARN([OpenSSL not supported by pkg-config, try --with-openssl instead])
114 AC_MSG_CHECKING(for OpenSSL cflags)
115 AC_MSG_RESULT($SSLFLAGS)
116 CPPFLAGS="$SSLFLAGS $CPPFLAGS"
118 AC_CHECK_HEADER([openssl/x509.h],,AC_MSG_ERROR([unable to find openssl header files]))
134 CPPFLAGS="$BOOST_CPPFLAGS $CPPFLAGS"
136 # Thank you Solaris, really.
137 AC_MSG_CHECKING(for ctime_r)
138 if test -z "$ac_cv_ctime_args"; then
140 [AC_LANG_PROGRAM([[#include <time.h>]], [[time_t clock; char buf[26]; ctime_r(&clock, buf);]])],
141 [ac_cv_ctime_args=2],[])
144 [AC_LANG_PROGRAM([[#include <time.h>]], [[time_t clock; char buf[26]; ctime_r(&clock, buf, 26);]])],
145 [ac_cv_ctime_args=3],[])
147 if test -z "$ac_cv_ctime_args"; then
150 if test "$ac_cv_ctime_args" = 2; then
151 AC_DEFINE([HAVE_CTIME_R_2],[1],[Define if ctime_r is present with 2 parameters.])
152 elif test "$ac_cv_ctime_args" = 3; then
153 AC_DEFINE([HAVE_CTIME_R_3],[1],[Define if ctime_r is present with 3 parameters.])
155 AC_MSG_RESULT([yes, and it takes $ac_cv_ctime_args arguments])
158 # log4shib settings (favor this version over the log4cpp code)
159 AC_PATH_PROG(LOG4SHIB_CONFIG,log4shib-config)
160 AC_ARG_WITH(log4shib,
161 AS_HELP_STRING([--with-log4shib=PATH],[where log4shib-config is installed]),
163 LOG4SHIB_CONFIG="${with_log4shib}"
164 if ! test -f "${LOG4SHIB_CONFIG}"; then
165 LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
168 if test -f "${LOG4SHIB_CONFIG}" ; then
169 LIBS="`${LOG4SHIB_CONFIG} --libs` $LIBS"
170 CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
171 AC_CHECK_HEADER([log4shib/CategoryStream.hh],,AC_MSG_ERROR([unable to find log4shib header files]))
173 [AC_LANG_PROGRAM([[#include <log4shib/Category.hh>
174 #include <log4shib/CategoryStream.hh>]],
175 [[log4shib::Category::getInstance("foo").errorStream() << log4shib::eol]])],
176 [AC_DEFINE([SHIBSP_LOG4SHIB],[1],[Define to 1 if log4shib library is used.])],
177 [AC_MSG_ERROR([unable to link with log4shib])])
179 AC_MSG_WARN([log4shib-config not found, may need to use --with-log4shib option])
180 AC_MSG_WARN([will look for original log4cpp library])
183 AC_PATH_PROG(LOG4CPP_CONFIG,log4cpp-config)
185 AS_HELP_STRING([--with-log4cpp=PATH],[where log4cpp-config is installed]),
187 LOG4CPP_CONFIG="${with_log4cpp}"
188 if ! test -f "${LOG4CPP_CONFIG}"; then
189 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
192 if test -f "${LOG4CPP_CONFIG}"; then
193 AC_MSG_WARN([will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe])
194 LIBS="`${LOG4CPP_CONFIG} --libs` $LIBS"
195 CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
196 AC_CHECK_HEADER([log4cpp/CategoryStream.hh],,AC_MSG_ERROR([unable to find log4cpp header files]))
198 [AC_LANG_PROGRAM([[#include <log4cpp/Category.hh>
199 #include <log4cpp/CategoryStream.hh>]],
200 [[log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol]])],
201 [AC_DEFINE([SHIBSP_LOG4CPP],[1],[Define to 1 if log4cpp library is used.])],
202 [AC_MSG_ERROR([unable to link with log4cpp, need version 1.0 or later])])
204 AC_MSG_ERROR([log4cpp-config not found, may need to use --with-log4cpp option])
210 AS_HELP_STRING([--with-xerces=PATH],[where xerces-c is installed]),,
212 if test x_$with_xerces != x_/usr; then
213 CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
214 LIBS="-L${with_xerces}/lib -lxerces-c $LIBS"
216 LIBS="-lxerces-c $LIBS"
219 AC_CHECK_HEADER([xercesc/dom/DOM.hpp],,AC_MSG_ERROR([unable to find xerces header files]))
220 AC_MSG_CHECKING([Xerces version])
222 [AC_LANG_PROGRAM([#include <xercesc/util/XercesVersion.hpp>],
223 [#if _XERCES_VERSION >= 20700
226 #error version 2.7.0 or above required
229 [AC_MSG_FAILURE([Xerces-C v2.7.0 or higher is required, v3.x preferred])])
231 [AC_LANG_PROGRAM([[#include <xercesc/util/PlatformUtils.hpp>]],[[xercesc::XMLPlatformUtils::Initialize()]])],
232 ,[AC_MSG_ERROR([unable to link with Xerces])])
234 AC_MSG_CHECKING([whether Xerces XMLString::release(XMLByte**) exists])
236 [AC_LANG_PROGRAM([[#include <xercesc/util/XMLString.hpp>]],
237 [[using namespace XERCES_CPP_NAMESPACE; XMLByte* buf=NULL; XMLString::release(&buf);]])],
238 [AC_MSG_RESULT([yes])AC_DEFINE([SHIBSP_XERCESC_HAS_XMLBYTE_RELEASE],[1],[Define to 1 if Xerces XMLString includes XMLByte release.])],
239 [AC_MSG_RESULT([no])])
241 AC_MSG_CHECKING([whether Xerces DOMNodeFilter API returns a short])
243 [AC_LANG_PROGRAM([[#include <xercesc/dom/DOM.hpp>]],
244 [[using namespace XERCES_CPP_NAMESPACE;
245 class Blocker : public DOMNodeFilter {
247 short acceptNode(const DOMNode* node) const {
248 return FILTER_REJECT;
251 static Blocker g_Blocker;
253 [AC_MSG_RESULT([yes])AC_DEFINE([SHIBSP_XERCESC_SHORT_ACCEPTNODE],[1],[Define to 1 if Xerces DOMNodeFilter API returns a short.])],
254 [AC_MSG_RESULT([no])])
256 # XML-Security settings
258 AS_HELP_STRING([--with-xmlsec=PATH],[where xmlsec is installed]),,
260 if test x_$with_xmlsec != x_/usr; then
261 CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
262 XMLSEC_LIBS="-L${with_xmlsec}/lib -lxml-security-c $XMLSEC_LIBS"
264 XMLSEC_LIBS="-lxml-security-c $XMLSEC_LIBS"
267 # save and append master libs
269 LIBS="$XMLSEC_LIBS $LIBS"
271 AC_CHECK_HEADER([xsec/utils/XSECPlatformUtils.hpp],,AC_MSG_ERROR([unable to find XML-Security-C header files]))
272 AC_MSG_CHECKING([XML-Security-C version])
274 [AC_LANG_PROGRAM([#include <xsec/utils/XSECPlatformUtils.hpp>],
275 [#if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
278 #error need version 1.4.0 or later
281 [AC_MSG_FAILURE([XML-Security-C version 1.4.0 or greater is required.])])
283 [AC_LANG_PROGRAM([[#include <xsec/utils/XSECPlatformUtils.hpp>]],
284 [[XSECPlatformUtils::Initialise()]])],,
285 [AC_MSG_ERROR([unable to link with XML-Security])])
287 AC_MSG_CHECKING([whether XML-Security-C supports white/blacklisting of algorithms])
288 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <xsec/framework/XSECAlgorithmMapper.hpp>]], [[XSECAlgorithmMapper* mapper; mapper->whitelistAlgorithm(NULL);]])],[AC_MSG_RESULT([yes])
289 AC_DEFINE([SHIBSP_XMLSEC_WHITELISTING],[1],[Define to 1 if XML-Security-C supports white/blacklisting algorithms.])],[AC_MSG_RESULT([no])])
291 # restore master libs
294 #XML-Tooling settings
295 AC_ARG_WITH(xmltooling,
296 AS_HELP_STRING([--with-xmltooling=PATH],[where xmltooling is installed]),,
297 [with_xmltooling=/usr])
298 if test x_$with_xmltooling != x_/usr; then
299 CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
300 DX_INCLUDE="${with_xmltooling}/include"
301 LITE_LIBS="-L${with_xmltooling}/lib -lxmltooling-lite"
302 XMLSEC_LIBS="-L${with_xmltooling}/lib -lxmltooling $XMLSEC_LIBS"
304 LITE_LIBS="-lxmltooling-lite"
305 XMLSEC_LIBS="-lxmltooling $XMLSEC_LIBS"
308 AC_CHECK_HEADER([xmltooling/base.h],,AC_MSG_ERROR([unable to find xmltooling header files]))
310 # save and append master libs
312 LIBS="$XMLSEC_LIBS $LIBS"
315 [AC_LANG_PROGRAM([[#include <xmltooling/XMLToolingConfig.h>
316 #include <xmltooling/version.h>]],
317 [[#if _XMLTOOLING_VERSION >= 10500
318 xmltooling::XMLToolingConfig::getConfig();
320 #error Need XMLTooling version 1.5 or higher
322 ,[AC_MSG_ERROR([unable to link with XMLTooling, or version was too old])])
324 # restore master libs
327 # Establish location of xmltooling catalog.
329 if test "x$with_xmltooling" = "x" ; then
330 with_xmltooling="/usr"
332 if test -f $with_xmltooling/share/xml/xmltooling/catalog.xml ; then
333 XMLTOOLINGXMLDIR="$with_xmltooling"
334 elif test -f $with_xerces/share/xml/xmltooling/catalog.xml ; then
335 XMLTOOLINGXMLDIR="$with_xerces"
336 elif test -f $with_log4shib/share/xml/xmltooling/catalog.xml ; then
337 XMLTOOLINGXMLDIR="$with_log4shib"
339 if test "x$XMLTOOLINGXMLDIR" = "x" ; then
340 AC_MSG_ERROR([xmltooling XML catalog not found, may need to use --with-xmltooling option])
342 XMLTOOLINGXMLDIR="$XMLTOOLINGXMLDIR/share/xml/xmltooling"
343 AC_SUBST(XMLTOOLINGXMLDIR)
347 AS_HELP_STRING([--with-saml=PATH],[where opensaml is installed]),,
349 if test x_$with_xmltooling != x_/usr; then
350 CPPFLAGS="-I${with_saml}/include $CPPFLAGS"
351 DX_INCLUDE="$DX_INCLUDE ${with_saml}/include"
352 XMLSEC_LIBS="-L${with_saml}/lib -lsaml $XMLSEC_LIBS"
354 XMLSEC_LIBS="-lsaml $XMLSEC_LIBS"
357 # save and append master libs
359 LIBS="$XMLSEC_LIBS $LIBS"
361 AC_CHECK_HEADER([saml/saml2/metadata/Metadata.h],,AC_MSG_ERROR([unable to find OpenSAML header files]))
363 [AC_LANG_PROGRAM([[#include <saml/SAMLConfig.h>
364 #include <saml/version.h>]],
365 [[#if _OPENSAML_VERSION >= 20500
366 opensaml::SAMLConfig::getConfig();
368 #error Need OpenSAML version 2.5 or higher
370 ,[AC_MSG_ERROR([unable to link with OpenSAML, or version was too old])
373 # restore master libs
376 # Establish location of opensaml catalogs.
378 if test "x$with_saml" = "x" ; then
381 if test -f $with_saml/share/xml/opensaml/saml20-catalog.xml ; then
382 OPENSAMLXMLDIR="$with_saml"
383 elif test -f $with_xmltooling/share/xml/opensaml/saml20-catalog.xml ; then
384 OPENSAMLXMLDIR="$with_xmltooling"
385 elif test -f $with_xerces/share/xml/opensaml/saml20-catalog.xml ; then
386 OPENSAMLXMLDIR="$with_xerces"
387 elif test -f $with_log4shib/share/xml/opensaml/saml20-catalog.xml ; then
388 OPENSAMLXMLDIR="$with_log4shib"
390 if test "x$OPENSAMLXMLDIR" = "x" ; then
391 AC_MSG_ERROR([opensaml XML catalogs not found, may need to use --with-saml option])
393 OPENSAMLXMLDIR="$OPENSAMLXMLDIR/share/xml/opensaml"
394 AC_SUBST(OPENSAMLXMLDIR)
397 AC_SUBST(XMLSEC_LIBS)
399 # output the underlying makefiles
400 WANT_SUBDIRS="doc schemas configs shibsp plugins shibd util"
401 AC_CONFIG_FILES([Makefile doc/Makefile schemas/Makefile \
402 configs/Makefile shibsp/Makefile plugins/Makefile \
403 shibd/Makefile util/Makefile selinux/Makefile])
406 AC_CONFIG_FILES([adfs/Makefile])
407 AC_ARG_ENABLE([adfs],
408 AS_HELP_STRING([--disable-adfs],[don't build the ADFS module]),
409 [adfs_enabled=$enableval], [adfs_enabled=yes])
410 if test "x$adfs_enabled" = "x" ; then
413 AC_MSG_CHECKING(whether to build the ADFS module)
414 if test "$adfs_enabled" = "no" ; then
418 WANT_SUBDIRS="$WANT_SUBDIRS adfs"
423 # Build NSAPI module?
425 AC_MSG_CHECKING(for NSAPI module option)
427 AS_HELP_STRING([--with-nsapi=DIR],[Build NSAPI module for Netscape/iPlanet/SunONE]),
428 [WANT_NSAPI=$withval],[WANT_NSAPI=no])
429 AC_MSG_RESULT($WANT_NSAPI)
431 if test "$WANT_NSAPI" != "no"; then
432 if test ! -d $WANT_NSAPI/bin ; then
433 AC_MSG_ERROR([Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR])
435 AC_MSG_CHECKING(for NSAPI include files)
436 if test -d $WANT_NSAPI/include ; then
437 NSAPI_INCLUDE=$WANT_NSAPI/include
438 AC_MSG_RESULT(Netscape-Enterprise 3.x style)
439 AC_CHECK_HEADERS([$NSAPI_INCLUDE/nsapi.h],,,[#define XP_UNIX])
440 NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
442 if test -d $WANT_NSAPI/plugins/include ; then
443 test -n "$NSAPI_INCLUDE" && NSAPI_INC_DIR="-I$NSAPI_INCLUDE"
444 NSAPI_INCLUDE="$WANT_NSAPI/plugins/include"
445 AC_MSG_RESULT(iPlanet 4.x / SunONE 6.x style)
446 AC_CHECK_HEADERS([$NSAPI_INCLUDE/nsapi.h],,,[#define XP_UNIX])
447 NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
449 if test "$NSAPI_INCLUDE" = ""; then
450 AC_MSG_ERROR([Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include])
454 AC_SUBST(NSAPI_INCLUDE)
456 # always output the Makefile, even if you don't use it
457 AC_CONFIG_FILES([nsapi_shib/Makefile])
458 AM_CONDITIONAL(BUILD_NSAPI,test ! "$WANT_NSAPI" = "no")
460 # add the NSAPI module to the list of wanted subdirs..
461 if test ! "$WANT_NSAPI" = "no" ; then
462 WANT_SUBDIRS="$WANT_SUBDIRS nsapi_shib"
467 # Build FastCGI support?
469 AC_MSG_CHECKING(for FastCGI support)
471 AS_HELP_STRING([--with-fastcgi=DIR],[Build FastCGI support]),
472 [WANT_FASTCGI=$withval],[WANT_FASTCGI=no])
473 AC_MSG_RESULT($WANT_FASTCGI)
475 if test "$WANT_FASTCGI" != "no"; then
476 if test "$WANT_FASTCGI" != "yes"; then
477 if test x_$WANT_FASTCGI != x_/usr; then
478 FASTCGI_INCLUDE="-I$WANT_FASTCGI/include"
479 FASTCGI_LDFLAGS="-L$WANT_FASTCGI/lib"
482 AC_CHECK_HEADER([fcgio.h],,AC_MSG_ERROR([unable to find FastCGI header files]))
483 FASTCGI_LIBS="-lfcgi -lfcgi++"
486 AC_SUBST(FASTCGI_INCLUDE)
487 AC_SUBST(FASTCGI_LDFLAGS)
488 AC_SUBST(FASTCGI_LIBS)
490 # always output the Makefile, even if you don't use it
491 AC_CONFIG_FILES([fastcgi/Makefile])
492 AM_CONDITIONAL(BUILD_FASTCGI,test ! "$WANT_FASTCGI" = "no")
494 if test ! "$WANT_FASTCGI" = "no" ; then
495 WANT_SUBDIRS="$WANT_SUBDIRS fastcgi"
499 # Build Memcached support?
501 AC_MSG_CHECKING(for Memcached support)
502 AC_ARG_WITH(memcached,
503 AS_HELP_STRING([--with-memcached=DIR],[Build Memcached support]),
504 [WANT_MEMCACHED=$withval],[WANT_MEMCACHED=no])
505 AC_MSG_RESULT($WANT_MEMCACHED)
507 if test "$WANT_MEMCACHED" != "no"; then
508 if test "$WANT_MEMCACHED" != "yes"; then
509 if test x_$WANT_MEMCACHED != x_/usr; then
510 MEMCACHED_INCLUDE="-I$WANT_MEMCACHED/include"
511 MEMCACHED_LDFLAGS="-L$WANT_MEMCACHED/lib"
514 AC_CHECK_HEADER([libmemcached/memcached.h],,
515 AC_MSG_ERROR([unable to find Memcached header files]))
516 AC_CHECK_DECL([memcached_last_error_message],
517 [AC_DEFINE([HAVE_MEMCACHED_LAST_ERROR_MESSAGE],[1],[Define to 1 if libmemcached supports error handling function.])],,
518 [#include <libmemcached/memcached.h>])
519 MEMCACHED_LIBS="-lmemcached"
522 AC_SUBST(MEMCACHED_INCLUDE)
523 AC_SUBST(MEMCACHED_LDFLAGS)
524 AC_SUBST(MEMCACHED_LIBS)
526 # always output the Makefile, even if you don't use it
527 AC_CONFIG_FILES([memcache-store/Makefile])
528 AM_CONDITIONAL(BUILD_MEMCACHED,test ! "$WANT_MEMCACHED" = "no")
530 if test ! "$WANT_MEMCACHED" = "no" ; then
531 WANT_SUBDIRS="$WANT_SUBDIRS memcache-store"
536 # If no --enable-apache-xx specified
537 # find a default and fake the specific parameters
540 # simple macro to peek at an enable or a with
542 if test "[${[$1]_][$2]+set}" = set; then
543 peekval="${[$1]_[$2]}"
548 AC_MSG_CHECKING(if default apache needed)
550 Peek(enable,apache_13,need_default=no)
551 Peek(enable,apache_20,need_default=no)
552 Peek(enable,apache_22,need_default=no)
553 AC_MSG_RESULT($need_default)
555 if test "$need_default" = "yes"; then
556 # find an apxs, then the httpd
558 Peek(with,apxs,xs="$peekval")
559 Peek(with,apxs2,xs="$peekval")
560 Peek(with,apxs22,xs="$peekval")
561 if test "x$xs" = "x"; then
562 AC_PATH_PROGS(xs, apxs2 apxs,
563 AC_MSG_ERROR(No apxs, no apache found. Try --with-apxs),
564 [/usr/local/apache2/bin:/usr/local/apache/bin:/usr/sbin:$PATH])
566 # ask the daemon for the version and set parameters
567 AC_MSG_CHECKING(default apache version)
568 httpd="`$xs -q SBINDIR`/`$xs -q TARGET`"
569 if test "x$httpd" != "x" && test -f $httpd ; then
570 v=`$httpd -v|$SED -n -e 's/.*Apache\/\.*//p'`
572 1.3*) [enable_apache_13]=yes
576 2.0*) [enable_apache_20]=yes
580 2.2*) [enable_apache_22]=yes
584 *) AC_MSG_ERROR(unusable apache versions: $v. Try setting --with-apxs)
587 AC_MSG_RESULT(cannot determine version. Try setting --with-apxs)
591 # Apache 1.3 (mod_shib_13)
593 # --with-apxs (DSO build, the normal way, uses apxs to derive build flags)
595 AC_ARG_ENABLE(apache-13,
596 AS_HELP_STRING([--enable-apache-13],[enable the Apache 1.3 module]),
597 [if test "x$enableval" = "x" ; then
600 WANT_APACHE_13="$enableval"
602 ],[ WANT_APACHE_13=no ])
603 AC_MSG_CHECKING(whether to build Apache 1.3 module)
604 if test "$WANT_APACHE_13" != yes && test "$WANT_APACHE_13" != no ; then
607 AC_MSG_RESULT($WANT_APACHE_13)
609 if test "$WANT_APACHE_13" = "yes" ; then
611 AS_HELP_STRING([--with-apxs=FILE],[Specifies where to find the Apache 1.3 apxs script.]),
613 AC_MSG_CHECKING(for user-specified apxs name/location)
614 if test "$withval" != "no" ; then
615 if test "$withval" != "yes"; then
617 AC_MSG_RESULT("$withval")
622 AC_PATH_PROG(APXS, apxs, no)
623 if test "$APXS" = "no" ; then
624 for i in /usr/sbin /usr/local/apache/bin ; do
625 if test "$APXS" = "no" && test -f "$i/apxs"; then
632 AC_MSG_CHECKING([to see if apxs was located])
633 if test ! -f "$APXS" ; then
635 AC_MSG_ERROR([Unable to locate apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs option.])
640 # extract settings we need from APXS -q
641 APXS_CC="`$APXS -q CC`"
642 APXS_CFLAGS="`$APXS -q CFLAGS` `$APXS -q CFLAGS_SHLIB`"
643 APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
646 AC_SUBST(APXS_CFLAGS)
647 AC_SUBST(APXS_INCLUDE)
650 # Apache 2.0 (mod_shib_20)
652 # --with-apxs2 (DSO build, the normal way, uses apxs to derive build flags)
653 # --with-apr (DSO build, APR development package installed separately)
654 # --with-apu (DSO build, APR-UTIL development package installed separately)
656 AC_ARG_ENABLE(apache-20,
657 AS_HELP_STRING([--enable-apache-20],[enable the Apache 2.0 module]),
658 [if test "x$enableval" = "x" ; then
661 WANT_APACHE_20="$enableval"
663 ],[ WANT_APACHE_20=no ])
664 AC_MSG_CHECKING(whether to build Apache 2.0 module)
665 if test "$WANT_APACHE_20" != yes && test "$WANT_APACHE_20" != no ; then
668 AC_MSG_RESULT($WANT_APACHE_20)
670 if test "$WANT_APACHE_20" = "yes" ; then
672 AS_HELP_STRING([--with-apxs2=FILE],[Specifies where to find the Apache 2.0 apxs script.]),
674 AC_MSG_CHECKING(for user-specified Apache 2.0 apxs name/location)
675 if test "$withval" != "no" ; then
676 if test "$withval" != "yes"; then
678 AC_MSG_RESULT("$withval")
683 AC_PATH_PROG(APXS2, apxs2, no)
684 if test "$APXS2" = "no" ; then
685 AC_PATH_PROG(APXS2, apxs, no)
687 if test "$APXS2" = "no" ; then
688 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
689 if test "$APXS2" = "no" && test -f "$i/apxs2" ; then
693 if test "$APXS2" = "no" ; then
694 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
695 if test "$APXS2" = "no" && test -f "$i/apxs" ; then
703 AC_MSG_CHECKING([to see if Apache 2.0 apxs was located])
704 if test ! -f "$APXS2" ; then
706 AC_MSG_ERROR([Unable to locate Apache 2.0 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs2 option.])
708 AC_MSG_RESULT($APXS2)
713 AS_HELP_STRING([--with-apr=PATH],[where apr-config is installed]),
715 AC_MSG_CHECKING(for user-specified apr-config name/location)
716 if test "$withval" != "no" ; then
717 if test "$withval" != "yes"; then
719 AC_MSG_RESULT("$withval")
724 AC_PATH_PROG(APR_CONFIG, apr-config,,[`$APXS2 -q SBINDIR`]:[$PATH])
726 if test -f "${APR_CONFIG}"; then
727 APR_CFLAGS="`${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags` `${APR_CONFIG} --includes`"
729 AC_MSG_ERROR([Unable to locate apr-config, may need --with-apr option.])
734 AS_HELP_STRING([--with-apu=PATH],[where apu-config is installed]),
736 AC_MSG_CHECKING(for user-specified apu-config name/location)
737 if test "$withval" != "no" ; then
738 if test "$withval" != "yes"; then
740 AC_MSG_RESULT("$withval")
745 AC_PATH_PROG(APU_CONFIG, apu-config,,[`$APXS2 -q SBINDIR`]:[$PATH])
747 if test -f "${APU_CONFIG}"; then
748 APU_CFLAGS="`${APU_CONFIG} --includes`"
750 AC_MSG_ERROR([Unable to locate apu-config, may need --with-apu option.])
753 # extract settings we need from APXS2 -q
754 APXS2_CC="`$APXS2 -q CC`"
755 APXS2_CFLAGS="`$APXS2 -q CPPFLAGS` `$APXS2 -q CFLAGS` $APR_CFLAGS $APU_CFLAGS"
756 APXS2_INCLUDE="`$APXS2 -q INCLUDEDIR`"
759 AC_SUBST(APXS2_CFLAGS)
760 AC_SUBST(APXS2_INCLUDE)
763 # Apache 2.2 (mod_shib_22)
765 # --with-apxs22 (DSO build, the normal way, uses apxs to derive build flags)
766 # --with-apr1 (DSO build, APR development package installed separately)
767 # --with-apu1 (DSO build, APR-UTIL development package installed separately)
769 AC_ARG_ENABLE(apache-22,
770 AS_HELP_STRING([--enable-apache-22],[enable the Apache 2.2 module]),
771 [if test "x$enableval" = "x" ; then
774 WANT_APACHE_22="$enableval"
776 ],[ WANT_APACHE_22=no ])
777 AC_MSG_CHECKING(whether to build Apache 2.2 module)
778 if test "$WANT_APACHE_22" != yes && test "$WANT_APACHE_22" != no ; then
781 AC_MSG_RESULT($WANT_APACHE_22)
783 if test "$WANT_APACHE_22" = "yes" ; then
785 AS_HELP_STRING([--with-apxs22=FILE],[Specifies where to find the Apache 2.2 apxs script.]),
787 AC_MSG_CHECKING(for user-specified Apache 2.2 apxs name/location)
788 if test "$withval" != "no" ; then
789 if test "$withval" != "yes"; then
791 AC_MSG_RESULT("$withval")
796 AC_PATH_PROG(APXS22, apxs2, no)
797 if test "$APXS22" = "no" ; then
798 AC_PATH_PROG(APXS22, apxs, no)
800 if test "$APXS22" = "no" ; then
801 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
802 if test "$APXS22" = "no" && test -f "$i/apxs2" ; then
806 if test "$APXS22" = "no" ; then
807 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
808 if test "$APXS22" = "no" && test -f "$i/apxs" ; then
816 AC_MSG_CHECKING([to see if Apache 2.2 apxs was located])
817 if test ! -f "$APXS22" ; then
819 AC_MSG_ERROR([Unable to locate Apache 2.2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs22 option.])
821 AC_MSG_RESULT($APXS22)
826 AS_HELP_STRING([--with-apr1=PATH],[where apr-1-config is installed]),
828 AC_MSG_CHECKING(for user-specified apr-1-config name/location)
829 if test "$withval" != "no" ; then
830 if test "$withval" != "yes"; then
832 AC_MSG_RESULT("$withval")
837 AC_PATH_PROG(APR1_CONFIG, apr-1-config,,[`$APXS22 -q SBINDIR`]:[$PATH])
839 if test -f "${APR1_CONFIG}"; then
840 APR1_CFLAGS="`${APR1_CONFIG} --cflags` `${APR1_CONFIG} --cppflags` `${APR1_CONFIG} --includes`"
842 AC_MSG_ERROR([Unable to locate apr-1-config, may need --with-apr1 option.])
847 AS_HELP_STRING([--with-apu1=PATH],[where apu-1-config is installed]),
849 AC_MSG_CHECKING(for user-specified apu-1-config name/location)
850 if test "$withval" != "no" ; then
851 if test "$withval" != "yes"; then
853 AC_MSG_RESULT("$withval")
858 AC_PATH_PROG(APU1_CONFIG, apu-1-config,,[`$APXS22 -q SBINDIR`]:[$PATH])
860 if test -f "${APU1_CONFIG}"; then
861 APU1_CFLAGS="`${APU1_CONFIG} --includes`"
863 AC_MSG_ERROR([Unable to locate apu-1-config, may need --with-apu1 option.])
866 # extract settings we need from APXS22 -q
867 APXS22_CC="`$APXS22 -q CC`"
868 APXS22_CFLAGS="`$APXS22 -q CPPFLAGS` `$APXS22 -q CFLAGS` $APR1_CFLAGS $APU1_CFLAGS"
869 APXS22_INCLUDE="`$APXS22 -q INCLUDEDIR`"
872 AC_SUBST(APXS22_CFLAGS)
873 AC_SUBST(APXS22_INCLUDE)
875 # Apache 2.4 (mod_shib_24)
877 # --with-apxs24 (DSO build, the normal way, uses apxs to derive build flags)
878 # --with-apr1 (DSO build, APR development package installed separately)
879 # --with-apu1 (DSO build, APR-UTIL development package installed separately)
881 AC_ARG_ENABLE(apache-24,
882 AS_HELP_STRING([--enable-apache-24],[enable the Apache 2.4 module]),
883 [if test "x$enableval" = "x" ; then
886 WANT_APACHE_24="$enableval"
888 ],[ WANT_APACHE_24=no ])
889 AC_MSG_CHECKING(whether to build Apache 2.4 module)
890 if test "$WANT_APACHE_24" != yes && test "$WANT_APACHE_24" != no ; then
893 AC_MSG_RESULT($WANT_APACHE_24)
895 if test "$WANT_APACHE_24" = "yes" ; then
897 AS_HELP_STRING([--with-apxs24=FILE],[Specifies where to find the Apache 2.4 apxs script.]),
899 AC_MSG_CHECKING(for user-specified Apache 2.4 apxs name/location)
900 if test "$withval" != "no" ; then
901 if test "$withval" != "yes"; then
903 AC_MSG_RESULT("$withval")
908 AC_PATH_PROG(APXS24, apxs2, no)
909 if test "$APXS24" = "no" ; then
910 AC_PATH_PROG(APXS24, apxs, no)
912 if test "$APXS24" = "no" ; then
913 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
914 if test "$APXS24" = "no" && test -f "$i/apxs2" ; then
918 if test "$APXS24" = "no" ; then
919 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
920 if test "$APXS24" = "no" && test -f "$i/apxs" ; then
928 AC_MSG_CHECKING([to see if Apache 2.4 apxs was located])
929 if test ! -f "$APXS24" ; then
931 AC_MSG_ERROR([Unable to locate Apache 2.4 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs24 option.])
933 AC_MSG_RESULT($APXS24)
936 # extract settings we need from APXS24 -q
937 APXS24_CC="`$APXS24 -q CC`"
938 APXS24_CFLAGS="`$APXS24 -q CPPFLAGS` `$APXS24 -q CFLAGS` $APR1_CFLAGS $APU1_CFLAGS"
939 APXS24_INCLUDE="`$APXS24 -q INCLUDEDIR`"
942 AC_SUBST(APXS24_CFLAGS)
943 AC_SUBST(APXS24_INCLUDE)
945 # always output the Makefile, even if you don't use it
946 AC_CONFIG_FILES([apache/Makefile])
947 AM_CONDITIONAL(BUILD_AP13,test "$WANT_APACHE_13" = "yes")
948 AM_CONDITIONAL(BUILD_AP20,test "$WANT_APACHE_20" = "yes")
949 AM_CONDITIONAL(BUILD_AP22,test "$WANT_APACHE_22" = "yes")
950 AM_CONDITIONAL(BUILD_AP24,test "$WANT_APACHE_24" = "yes")
952 # add the apache module to the list of wanted subdirs..
953 if test "$WANT_APACHE_13" = "yes" || test "$WANT_APACHE_20" = "yes" || test "$WANT_APACHE_22" = "yes" || test "$WANT_APACHE_24" = "yes" ; then
954 WANT_SUBDIRS="$WANT_SUBDIRS apache"
959 # Implement the checks of the ODBC Storage Service
961 # 1) Assume the user wants ODBC; if it's not found then just continue without
962 # 2) If the user specifically requested odbc, look for it and ERROR if not found
963 # 3) If the user specifically requested no odbc, don't build it.
966 AC_CONFIG_FILES([odbc-store/Makefile])
968 # determine whether we should enable the odbc ccache
969 AC_ARG_ENABLE([odbc],
970 AS_HELP_STRING([--disable-odbc],[disable the ODBC Storage Service]),
971 [odbc_enabled=$enableval], [odbc_enabled=default])
972 if test "x$odbc_enabled" = "x" ; then
976 # Are we trying to build ODBC?
977 AC_MSG_CHECKING(whether to build the ODBC storage service)
978 if test "$odbc_enabled" = "yes" ; then
981 elif test "$odbc_enabled" = "default" ; then
983 AC_MSG_RESULT([yes, if it can be found])
989 # If we're trying to build ODBC, try to find the odbc_config program.
990 if test "$build_odbc" = "yes" ; then
993 AS_HELP_STRING([--with-odbc=PATH],[directory where odbc is installed]),
994 [if test "$with_odbc" = no ; then
995 AC_MSG_ERROR([Try running --disable-odbc instead.])
996 elif test "$with_odbc" != yes ; then
997 odbc_dir="$with_odbc/bin"
998 if test "$with_odbc" != /usr ; then
999 ODBC_CFLAGS="-I$with_odbc/include"
1000 ODBC_LIBS="-L$with_odbc/lib"
1004 AC_PATH_PROG(ODBC_CONFIG, odbc_config, no, $odbc_dir $PATH )
1005 if test "$ODBC_CONFIG" = no ; then
1006 AC_MSG_WARN([Cannot find odbc_config, will try to guess settings.])
1007 ODBC_LIBS="$ODBC_LIBS -lodbc"
1009 ODBC_CFLAGS=`$ODBC_CONFIG --cflags`
1010 ODBC_LIBS=`$ODBC_CONFIG --libs`
1013 save_CPPFLAGS="$CPPFLAGS"
1014 CPPFLAGS="$CPPFLAGS $ODBC_CFLAGS"
1016 AC_CHECK_HEADER([sql.h], [have_sql_h=yes], [have_sql_h=no])
1017 if test "$have_sql_h" = no -a "$odbc_enabled" = "yes" ; then
1018 AC_MSG_ERROR(unable to find ODBC header files)
1021 if test "$have_sql_h" = yes ; then
1023 LIBS="$LIBS $ODBC_LIBS"
1024 AC_MSG_CHECKING(if we can link againt ODBC)
1026 [AC_LANG_PROGRAM([[#include <sql.h>
1028 #include <stdio.h>]],
1029 [[SQLSetEnvAttr(SQL_NULL_HANDLE, SQL_ATTR_CONNECTION_POOLING, (void*)SQL_CP_ONE_PER_HENV, 0)]])],
1030 [have_odbc_libs=yes],[have_odbc_libs=no])
1032 if test "$have_odbc_libs" = no ; then
1033 if test "$odbc_enabled" = "yes" ; then
1034 AC_MSG_ERROR([unable to link with ODBC Library])
1036 AC_MSG_RESULT([no, skipping ODBC])
1041 CPPFLAGS="$save_CPPFLAGS"
1044 # if have_odbc_libs=yes then go ahead with building ODBC
1045 if test "$have_odbc_libs" = yes ; then
1046 # this AC_MSG_RESULT is from above!
1048 WANT_SUBDIRS="$WANT_SUBDIRS odbc-store"
1049 AC_SUBST(ODBC_CFLAGS)
1056 AC_ARG_WITH(gssapi-includes,
1057 AS_HELP_STRING([--with-gssapi-includes=DIR],[Specify location of GSSAPI header]),
1058 [ GSSAPI_INCS="-I$withval"
1062 AC_ARG_WITH(gssapi-libs,
1063 AS_HELP_STRING([--with-gssapi-libs=DIR],[Specify location of GSSAPI libs]),
1064 [ GSSAPI_LIB_DIR="-L$withval"
1069 AS_HELP_STRING([--with-gssapi=DIR],[Where to look for GSSAPI]),
1070 [ GSSAPI_ROOT="$withval"
1071 if test x"$GSSAPI_ROOT" != xno; then
1073 if test x"$GSSAPI_ROOT" = xyes; then
1074 dnl if yes, then use default root
1080 save_CPPFLAGS="$CPPFLAGS"
1081 AC_MSG_CHECKING([if GSSAPI support is requested])
1082 if test x"$want_gss" = xyes; then
1085 if test -z "$GSSAPI_INCS"; then
1086 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
1087 GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
1088 elif test "$GSSAPI_ROOT" != "yes"; then
1089 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
1093 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
1095 AC_CHECK_HEADER(gss.h,
1097 dnl found in the given dirs
1098 AC_DEFINE([SHIBSP_HAVE_GSSGNU],[1],[if you have the GNU gssapi libraries])
1102 dnl not found, check Heimdal or MIT
1103 AC_CHECK_HEADERS([gssapi/gssapi.h], [], [not_mit=1])
1105 [gssapi/gssapi_generic.h gssapi/gssapi_krb5.h],
1110 #ifdef HAVE_GSSAPI_GSSAPI_H
1111 #include <gssapi/gssapi.h>
1114 if test "x$not_mit" = "x1"; then
1115 dnl MIT not found, check for Heimdal
1116 AC_CHECK_HEADER([gssapi.h],
1119 AC_DEFINE([SHIBSP_HAVE_GSSHEIMDAL],[1],[if you have the Heimdal gssapi libraries])
1122 dnl no header found, disabling GSS
1124 AC_MSG_WARN([disabling GSSAPI since no header files was found])
1129 AC_DEFINE([SHIBSP_HAVE_GSSMIT],[1],[if you have the MIT gssapi libraries])
1130 dnl check if we have a really old MIT kerberos (<= 1.2)
1131 AC_MSG_CHECKING([if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE])
1134 #include <gssapi/gssapi.h>
1135 #include <gssapi/gssapi_generic.h>
1136 #include <gssapi/gssapi_krb5.h>
1141 GSS_C_NT_HOSTBASED_SERVICE,
1145 AC_MSG_RESULT([yes])
1148 AC_DEFINE([HAVE_OLD_GSSMIT],[1],[if you have an old MIT gssapi library, lacking GSS_C_NT_HOSTBASED_SERVICE])
1156 if test x"$want_gss" = xyes; then
1157 AC_DEFINE([SHIBSP_HAVE_GSSAPI],[1],[if you have the gssapi libraries])
1159 if test -n "$gnu_gss"; then
1160 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
1163 if test -z "$GSSAPI_LIB_DIR"; then
1164 GSSAPI_LIB_DIR="$GSSAPI_ROOT/lib$libsuff"
1166 if test "$GSSAPI_ROOT" != "yes"; then
1167 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
1169 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
1170 dnl krb5-config doesn't have --libs-only-L or similar, put everything
1172 gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
1174 if test "x$not_mit" = "x1"; then
1177 gss_libs="-lgssapi_krb5"
1180 LIBS="$LIBS $gss_libs"
1183 AC_MSG_CHECKING([whether GSS-API naming extensions are available])
1186 #ifdef SHIBSP_HAVE_GSSGNU
1188 #elif defined SHIBSP_HAVE_GSSMIT
1189 # include <gssapi/gssapi.h>
1190 # include <gssapi/gssapi_ext.h>
1192 # include <gssapi.h>
1194 [[gss_get_name_attribute(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);]])],
1195 [AC_MSG_RESULT([yes])AC_DEFINE([HAVE_GSSAPI_NAMINGEXTS],[1],[Define to 1 if GSS-API naming extensions are available.])],
1196 [AC_MSG_RESULT([no])])
1198 AC_MSG_CHECKING([whether GSS-API composite name import is available])
1201 #ifdef SHIBSP_HAVE_GSSGNU
1203 #elif defined SHIBSP_HAVE_GSSMIT
1204 # include <gssapi/gssapi.h>
1205 # include <gssapi/gssapi_ext.h>
1207 # include <gssapi.h>
1212 gss_buffer_desc importbuf;
1213 gss_import_name(&minor, &importbuf, GSS_C_NT_EXPORT_NAME_COMPOSITE, &srcname);
1215 [AC_MSG_RESULT([yes])AC_DEFINE([HAVE_GSSAPI_COMPOSITE_NAME],[1],[Define to 1 if GSS-API composite name import is available.])],
1216 [AC_MSG_RESULT([no])])
1219 CPPFLAGS="$save_CPPFLAGS"
1223 AC_SUBST(WANT_SUBDIRS)
1225 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
1226 echo "=================================================================="
1227 echo "WARNING: You have chosen to compile Apache-1.3 modules with a different"
1228 echo " compiler than the one used to compile Apache."
1230 echo " Current compiler: $CC"
1231 echo " Apache's compiler: $APXS_CC"
1233 echo "This could cause problems."
1234 echo "=================================================================="
1237 if test -n "$APXS2_CC" && test "$APXS2_CC" != "$CC" ; then
1238 echo "=================================================================="
1239 echo "WARNING: You have chosen to compile Apache-2.0 modules with a different"
1240 echo " compiler than the one used to compile Apache."
1242 echo " Current compiler: $CC"
1243 echo " Apache's compiler: $APXS2_CC"
1245 echo "This could cause problems."
1246 echo "=================================================================="
1249 if test -n "$APXS22_CC" && test "$APXS22_CC" != "$CC" ; then
1250 echo "=================================================================="
1251 echo "WARNING: You have chosen to compile Apache-2.2 modules with a different"
1252 echo " compiler than the one used to compile Apache."
1254 echo " Current compiler: $CC"
1255 echo " Apache's compiler: $APXS22_CC"
1257 echo "This could cause problems."
1258 echo "=================================================================="
1261 if test -n "$APXS24_CC" && test "$APXS24_CC" != "$CC" ; then
1262 echo "=================================================================="
1263 echo "WARNING: You have chosen to compile Apache-2.4 modules with a different"
1264 echo " compiler than the one used to compile Apache."
1266 echo " Current compiler: $CC"
1267 echo " Apache's compiler: $APXS24_CC"
1269 echo "This could cause problems."
1270 echo "=================================================================="
1273 LIBTOOL="$LIBTOOL --silent"