httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <...@engelschall.com>
Subject Re: 2.0 don't build
Date Fri, 10 Sep 1999 12:59:11 GMT

In article <Pine.LNX.4.04.9909100648410.13027-100000@chosondo.raleigh.ibm.com> you wrote:
 
> Are you remembering to link with the apr libraries?  I changed the
> EXTRA_LIBS line in Configuration.mpm, to link with the APR libs.  I don't
> see those listed anywhere in your example.
> 
> We have to build APR manually because I decided not to put too much effort
> into the current Configure scripts/Makefiles, until we know if we are
> using them or autoconf for 2.0.  I have a lot to do to get APR into
> Apache, and I had to make a decision between figuring out what the current
> stuff does (and potentially wasting my time because it is removed three
> days later), or continuing to get APR into Apache.  I chose the latter.

Hmmm... IMHO it's useless if one cannot even compile the beast.
So here is an adjustment for src/Configure which works for me (only
the src/support/ stuff needs also a change):

Index: src/Configure
===================================================================
RCS file: /e/apache/REPOS/apache-2.0/src/Configure,v
retrieving revision 1.3
diff -u -r1.3 Configure
--- src/Configure	1999/08/31 05:31:58	1.3
+++ src/Configure	1999/09/10 12:43:16
@@ -844,8 +844,7 @@
 ##
 echo >>Makefile.config "OSDIR=\$(SRCDIR)/$OSDIR"
 echo >>Makefile.config "INCDIR=\$(SRCDIR)/include"
-echo >>Makefile.config "APRINCDIR=\$(SRCDIR)/lib/apr/include"
-echo >>Makefile.config "INCLUDES0=-I\$(OSDIR) -I\$(INCDIR) -I\$(APRINCDIR) -I\$(SRCDIR)/modules/mpm/$MPM_METHOD"
+echo >>Makefile.config "INCLUDES0=-I\$(OSDIR) -I\$(INCDIR) -I\$(SRCDIR)/modules/mpm/$MPM_METHOD"
 echo >>Makefile.config "SHELL=$SHELL"
 
 ####################################################################
@@ -1727,6 +1726,20 @@
 SUBDIRS="$SUBDIRS"
 
 ####################################################################
+## Add in the APR library.
+##
+if [ -d ./lib/apr ]; then
+    echo " + configuring Apache Portable Runtime (APR)"
+    (cd lib/apr && CC="$CC" CFLAGS="$CFLAGS" ./configure >/dev/null)
+    APRLIB=""
+    for lib in apr file network lock misc sig threadproc time; do
+         APRLIB="$APRLIB lib/apr/libs/lib${lib}.a"
+    done
+    CFLAGS="$CFLAGS -I\$(SRCDIR)/lib/apr/include"
+    APLIBDIRS="apr $APLIBDIRS"
+fi
+
+####################################################################
 ## Add in the Expat library if needed/wanted.
 ##
 if [ -d ./lib/expat-lite/ ]; then
@@ -1997,6 +2010,7 @@
 echo "LDFLAGS1=$LDFLAGS" >>Makefile.config
 echo "MFLAGS_STATIC=$MFLAGS_STATIC" >>Makefile.config
 echo "REGLIB=$REGLIB" >>Makefile.config
+echo "APRLIB=$APRLIB" >>Makefile.config
 echo "EXPATLIB=$EXPATLIB" >>Makefile.config
 echo "RANLIB=$RANLIB" >>Makefile.config
 
@@ -2247,6 +2261,7 @@
 ##
 
 for dir in $APLIBDIRS ; do
+    test ! -f lib/$dir/Makefile.tmpl && continue
 	echo Creating Makefile in lib/$dir
 	./helpers/mfhead lib/$dir $file > lib/$dir/Makefile
 	$CAT Makefile.config lib/$dir/Makefile.tmpl |\

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message