Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 78277 invoked by uid 500); 14 May 2001 17:34:10 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: tomcat-dev@jakarta.apache.org Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 78212 invoked from network); 14 May 2001 17:33:57 -0000 Sender: jfclere@vtxrm2.bcn.fsc.net Message-ID: <3B001A35.5E40B13B@fujitsu-siemens.com> Date: Mon, 14 May 2001 19:47:33 +0200 From: jean-frederic clere X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.4.0 i586) X-Accept-Language: en MIME-Version: 1.0 To: "tomcat-dev@jakarta.apache.org" CC: GOMEZ Henri Subject: configure for jakarta-tomcat-connectors Content-Type: multipart/mixed; boundary="------------744370F4AE4C7FF42CF1E316" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This is a multi-part message in MIME format. --------------744370F4AE4C7FF42CF1E316 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I have started a configure.in and makefile(s).in for the jakarta-tomcat-connectors. Currently I have just prepared it for Apache2.0 and Apache1.3, before going on I have some questions: - The idea is to have one configure.in in jakarta-tomcat-connectors/jk/src/native and a makefile.in for each supported WebServer. Does it sound Ok? - Should I already think of using APR? - Just that some of my plateform are not (yet) supported and I am reluctant of adding more #idef in the code - - What should I do with the other WebServers (netscape, jni etc)? The configure.in assumes that the Apache connectors sub-directories are apache-1.3 and apache-2.0. I think that more consistant with mod_webapp. Please, have a look to the attached files and make comments :=) Cheers Jean-frederic --------------744370F4AE4C7FF42CF1E316 Content-Type: text/plain; charset=us-ascii; name="Makefile.in" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Makefile.in" SUBDIRS = @WEBSERVER@ all: target="all"; \ list='$(SUBDIRS)'; \ for i in $$list; do \ echo "Making $$target in $$i"; \ if test "$$i" != "."; then \ (cd $$i && $(MAKE) $$target) || exit 1; \ fi; \ done; --------------744370F4AE4C7FF42CF1E316 Content-Type: text/plain; charset=us-ascii; name="configure.in" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="configure.in" dnl dnl Process this file with autoconf to produce a configure script dnl AC_PREREQ(2.13) AC_INIT(common/jk_ajp13.h) AC_PROG_CC AC_PATH_PROG(TEST,test,$PATH)dnl AC_SUBST(TEST) AC_PATH_PROG(RM,rm,$PATH)dnl AC_SUBST(RM) WEBSERVER="" AC_ARG_WITH(apxs, [ --with-apxs[=FILE] Build shared Apache module. FILE is the optional pathname to the apxs tool; defaults to finding apxs in your PATH.], [ case "${withval}" in y | yes | true) find_apxs=true ;; n | no | false) find_apxs=false ;; *) find_apxs=false ;; esac if ${TEST} ${find_apxs} ; then AC_MSG_RESULT([need to check for Perl first, apxs depends on it...]) AC_PATH_PROG(PERL,perl,$PATH)dnl if ${TEST} ${find_apxs} ; then APXS=${withval} else AC_PATH_PROG(APXS,apxs,$PATH)dnl fi if ${TEST} -n "${APXS}" ; then dnl Seems that we have it, but have to check if it is OK first if ${TEST} ! -x "${APXS}" ; then AC_MSG_ERROR(Invalid location for apxs: '${APXS}') fi $APXS -q PREFIX >/dev/null 2>/dev/null || apxs_support=false if ${TEST} "${apxs_support}" = "false" ; then AC_MSG_RESULT(could not find apxs) AC_MSG_ERROR(You must specify a valid --with-apxs path) fi dnl test apache version $RM -rf test $APXS -n test -g APA=`grep STANDARD20 test/mod_test.c` $RM -rf test if ${TEST} -z "$APA" ; then WEBSERVER="apache-1.3" else WEBSERVER="apache-2.0" fi AC_MSG_RESULT([building connector for \"$WEBSERVER\"]) AC_SUBST(APXS) fi fi ], [ AC_MSG_RESULT(no apxs given) ]) if ${TEST} -z "$WEBSERVER" ; then AC_MSG_ERROR(Cannot find the WebServer) fi AC_SUBST(WEBSERVER) AC_OUTPUT([ Makefile $WEBSERVER/Makefile ]) --------------744370F4AE4C7FF42CF1E316 Content-Type: text/plain; charset=us-ascii; name="Makefile.in1.3" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Makefile.in1.3" ## configure should make the Makefile out of this file. APXS=@APXS@ JK=../common/ SRCS=${JK}/jk_ajp12_worker.c ${JK}/jk_connect.c ${JK}/jk_msg_buff.c ${JK}/jk_util.c ${JK}/jk_ajp13.c \ ${JK}/jk_jni_worker.c ${JK}/jk_pool.c ${JK}/jk_worker.c ${JK}/jk_ajp13_worker.c ${JK}/jk_lb_worker.c \ ${JK}/jk_sockbuf.c ${JK}/jk_map.c ${JK}/jk_uri_worker_map.c all: mod_jk.so mod_jk.so: $(APXS) -I ${JK} -c -o $@ mod_jk.c $(SRCS) clean: rm *.o *.so --------------744370F4AE4C7FF42CF1E316 Content-Type: text/plain; charset=us-ascii; name="Makefile.in2.0" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Makefile.in2.0" ## APXS=@APXS@ JK=../common SRCS=${JK}/jk_ajp12_worker.c ${JK}/jk_connect.c ${JK}/jk_msg_buff.c ${JK}/jk_util.c ${JK}/jk_ajp13.c \ ${JK}/jk_jni_worker.c ${JK}/jk_pool.c ${JK}/jk_worker.c ${JK}/jk_ajp13_worker.c ${JK}/jk_lb_worker.c \ ${JK}/jk_sockbuf.c ${JK}/jk_map.c ${JK}/jk_uri_worker_map.c LSRCS=jk_ajp12_worker.c jk_connect.c jk_msg_buff.c jk_util.c jk_ajp13.c \ jk_jni_worker.c jk_pool.c jk_worker.c jk_ajp13_worker.c jk_lb_worker.c \ jk_sockbuf.c jk_map.c jk_uri_worker_map.c all: mod_jk.so mod_jk.so: $(APXS) -I ${JK} ${JAVA_INCL} -c -o mod_jk.la mod_jk.c $(SRCS) mv .libs/mod_jk.so . clean: rm -f *.o *.so *.lo *.la *.slo ${JK}/*.o ${JK}/*.so ${JK}/*.lo ${JK}/*.la ${JK}/*.slo rm -rf .libs --------------744370F4AE4C7FF42CF1E316--