dnl ========================================================================= dnl dnl The Apache Software License, Version 1.1 dnl dnl Copyright (c) 1 -2001 The Apache Software Foundation. dnl All rights reserved. dnl dnl ========================================================================= dnl dnl Redistribution and use in source and binary forms, with or without modi- dnl fication, are permitted provided that the following conditions are met: dnl dnl 1. Redistributions of source code must retain the above copyright notice dnl notice, this list of conditions and the following disclaimer. dnl dnl 2. Redistributions in binary form must reproduce the above copyright dnl notice, this list of conditions and the following disclaimer in the dnl documentation and/or other materials provided with the distribution. dnl dnl 3. The end-user documentation included with the redistribution, if any, dnl must include the following acknowlegement: dnl dnl "This product includes software developed by the Apache Software dnl Foundation ." dnl dnl Alternately, this acknowlegement may appear in the software itself, if dnl and wherever such third-party acknowlegements normally appear. dnl dnl 4. The names "The Jakarta Project", "Apache WebApp Module", and "Apache dnl Software Foundation" must not be used to endorse or promote products dnl derived from this software without prior written permission. For dnl written permission, please contact . dnl dnl 5. Products derived from this software may not be called "Apache" nor may dnl "Apache" appear in their names without prior written permission of the dnl Apache Software Foundation. dnl dnl THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES dnl INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY dnl AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL dnl THE APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY dnl DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL dnl DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS dnl OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) dnl HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, dnl STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN dnl ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE dnl POSSIBILITY OF SUCH DAMAGE. dnl dnl ========================================================================= dnl dnl This software consists of voluntary contributions made by many indivi- dnl duals on behalf of the Apache Software Foundation. For more information dnl on the Apache Software Foundation, please see . dnl dnl ========================================================================= dnl -------------------------------------------------------------------------- dnl Author Henri Gomez dnl dnl Version $Id$ dnl -------------------------------------------------------------------------- dnl sinclude(../support/jk_apache_static.m4) sinclude(../support/jk_apxs.m4) sinclude(../support/jk_ws.m4) sinclude(../support/jk_apr.m4) sinclude(../support/jk_tchome.m4) sinclude(../support/jk_java.m4) sinclude(../support/jk_pcre.m4) dnl dnl Process this file with autoconf to produce a configure script dnl AC_REVISION($Id$)dnl AC_PREREQ(2.13) AC_INIT(common/jk_config.c) AC_CONFIG_AUX_DIR(scripts/build/unix) dnl package and version. (synchronization with common/jk_version.h ?) PACKAGE=mod_jk2 VERSION=2.0.2 AM_INIT_AUTOMAKE(${PACKAGE}, ${VERSION}) AC_PROG_CC AC_PROG_LD dnl Not sure what it does, but the libtool manual seems to require this dnl It should use the native platform dlopen ( if available ) AC_LIBTOOL_DLOPEN dnl AM_PROG_LIBTOOL often causes problems. dnl I have solved them once using aclocal --acdir=/usr/local/share/aclocal/ AM_PROG_LIBTOOL AC_PATH_PROG(TEST,test,$PATH)dnl AC_SUBST(TEST) AC_PATH_PROG(RM,rm,$PATH)dnl AC_SUBST(RM) AC_PATH_PROG(GREP,grep,$PATH)dnl AC_SUBST(GREP) AC_PATH_PROG(ECHO,echo,echo,$PATH)dnl AC_SUBST(ECHO) AC_PATH_PROG(SED,sed,$PATH)dnl AC_SUBST(SED) AC_PATH_PROG(CP,cp,$PATH)dnl AC_SUBST(CP) AC_PATH_PROG(MKDIR,mkdir,$PATH)dnl AC_SUBST(MKDIR) dnl APXS settings JK_APXS([], [location of apxs for Apache 1.3]) JK_APXS([2], [location of apxs for Apache 2.0]) dnl APACHE13 settings JK_WS_DIR([apache13], [src/include/httpd.h]) JK_WS_INCDIR([apache13], [httpd.h]) JK_WS_LIBDIR([apache13]) dnl APACHE2 settings JK_WS_DIR([apache2], [include/httpd.h]) JK_WS_INCDIR([apache2], [httpd.h]) JK_WS_LIBDIR([apache2]) dnl IIS settings JK_WS_DIR([iis], [.]) JK_WS_INCDIR([iis], [.]) JK_WS_LIBDIR([iis]) AC_SUBST(IIS_CFLAGS) AC_SUBST(IIS_DIR) AC_SUBST(IIS_HOME) AC_SUBST(IIS_INCDIR) AC_SUBST(IIS_LDFLAGS) AC_SUBST(IIS_LIBDIR) dnl iPlanet settings JK_WS_DIR([iplanet], [.]) JK_WS_INCDIR([iplanet], [.]) JK_WS_LIBDIR([iplanet]) AC_SUBST(IPLANET_CFLAGS) AC_SUBST(IPLANET_DIR) AC_SUBST(IPLANET_HOME) AC_SUBST(IPLANET_INCDIR) AC_SUBST(IPLANET_LDFLAGS) AC_SUBST(IPLANET_LIBDIR) dnl TOMCATs settings JK_TCHOME([tomcat33], [TOMCAT33_HOME], [lib/tomcat.jar]) JK_TCHOME([tomcat40], [TOMCAT40_HOME], [server/lib/catalina.jar]) JK_TCHOME([tomcat41], [TOMCAT41_HOME], [server/lib/catalina.jar]) AC_SUBST(TOMCAT33_HOME) AC_SUBST(TOMCAT40_HOME) AC_SUBST(TOMCAT41_HOME) dnl APR settings JK_APR([include/apr.h.in]) JK_APR_INCDIR([apr.h]) JK_APR_LIBDIR() dnl Set these to empty until we know what to do with them AC_SUBST(APR_UTIL_INCL) AC_SUBST(APR_UTIL_LIB) dnl Java settings JK_JDK() JK_JDK_OS() JK_JNI() JK_PCRE() AC_SUBST(JAVA_HOME) AC_SUBST(JAVA_PLATFORM) AC_SUBST(OS) AC_SUBST(HAVE_JNI) AC_SUBST(HAS_PCRE) AC_SUBST(PCRE_LIBS) dnl Check that at least one WEBSERVER has been given if ${TEST} -z "$WEBSERVERS" ; then AC_MSG_ERROR(Cannot find any WebServer) fi AC_SUBST(WEBSERVERS) dnl check if apache 1.3 selected with jni support if ! ${TEST} -z "$APACHE_HOME" ; then dnl check jni wanted if ${TEST} "${use_jni}" = "true"; then if ! ${TEST} "${use_apr}" = "true"; then AC_MSG_ERROR(Apache 1.3 need apr to use jni) fi fi fi AC_SUBST(APACHE20_OEXT) AC_SUBST(LIB_JK_TYPE) AC_SUBST(INSTALL_TYPE) dnl set APR defs AC_SUBST(APR_BUILD) AC_SUBST(APR_CFLAGS) AC_SUBST(APR_CLEAN) AC_SUBST(APR_DIR) AC_SUBST(APR_HOME) AC_SUBST(APR_INCDIR) AC_SUBST(APR_LIBDIR) AC_SUBST(APR_LDFLAGS) AC_SUBST(COMMON_APR_OBJECTS) dnl automake needs the path it does not work with $WEBSERVER dnl that why useless Makefiles are build. AC_OUTPUT([ Makefile server/apache13/Makefile server/apache13/Makefile.apxs server/apache2/Makefile server/apache2/Makefile.apxs ../build.properties:../build.properties.autoconf scripts/build/unix/dummy ])