httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sander Temme <scte...@covalent.net>
Subject Re: cvs commit: apache-1.3/src/support README ab.8 ab.c
Date Tue, 03 Apr 2001 03:23:30 GMT
on 4/2/01 8:05 PM, Marc Slemko at marcs@znep.com wrote:

> And what is the best way to add it in for ab?  Right now, it doesn't
> compile on FreeBSD, etc.

Use this on the src/support/Makefile.tmpl:

--- Makefile.tmpl-dist  Thu Dec  9 09:19:48 1999
+++ Makefile.tmpl       Sun Mar 11 12:39:23 2001
@@ -1,6 +1,12 @@
 
-CFLAGS=$(OPTIM) $(CFLAGS1) $(EXTRA_CFLAGS)
-LIBS=-lap -los $(EXTRA_LIBS) $(LIBS1)
+# SSL lines
+#
+#CFLAGS=$(OPTIM) $(CFLAGS1) $(EXTRA_CFLAGS) -DUSE_SSL
+#LIBS=-L/usr/local/ssl -lap -los $(EXTRA_LIBS) $(LIBS1) -lssl -lcrypto
+
+ CFLAGS=$(OPTIM) $(CFLAGS1) $(EXTRA_CFLAGS)
+ LIBS=-lap -los $(EXTRA_LIBS) $(LIBS1)
+
 INCLUDES=$(INCLUDES1) $(INCLUDES0) $(EXTRA_INCLUDES)
 LDFLAGS=$(LDFLAGS1) $(EXTRA_LDFLAGS) -L$(OSDIR) -L$(SRCDIR)/ap
 
@@ -26,7 +32,7 @@
        $(CC) $(CFLAGS) -o logresolve $(LDFLAGS) logresolve.o $(LIBS)
 
 ab: ab.o
-       $(CC) $(CFLAGS) -o ab $(LDFLAGS) ab.o $(LIBS)
+       $(CC) $(CFLAGS) -o ab $(LDFLAGS) ab.o $(LIBS) -lm
 
 apxs: apxs.pl
        sed <apxs.pl >apxs \

This should probably also go into CVS. I haven't looked into how this works
in 2.0: there probably be autoconf checks for the functions and -lm is
incantated as necessary.

S. 

-- 
Covalent Technologies                             sctemme@covalent.net
Engineering group                                Voice: (415) 536 5214
706 Mission St.                                    Fax: (415) 536 5210
San Francisco CA 94103

   PGP Fingerprint: 1E74 4E58 DFAC 2CF5 6A03  5531 AFB1 96AF B584 0AB1



Mime
View raw message