On 9/9/06, Jeff Trawick <[EMAIL PROTECTED]> wrote:
On 9/9/06, Eric Covener <[EMAIL PROTECTED]> wrote:
> Adds ability to link htcacheclean, httxt2dbm, and fcgistarter with
> static apr/apr-util like the older support programs.
Committed to trunk...
The changes for all but fcgistarter should work with 2.2.x. Care to
post a patch?
patch for 2.2.x attached (same as trunk but w/o fcgistarter)
Thanks,
--
Eric Covener
[EMAIL PROTECTED]
Index: support/config.m4
===================================================================
--- support/config.m4 (revision 441843)
+++ support/config.m4 (working copy)
@@ -5,6 +5,8 @@
htdbm_LTFLAGS=""
ab_LTFLAGS=""
checkgid_LTFLAGS=""
+htcacheclean_LTFLAGS=""
+httxt2dbm_LTFLAGS=""
AC_ARG_ENABLE(static-support,APACHE_HELP_STRING(--enable-static-support,Build a statically linked version of the support binaries),[
if test "$enableval" = "yes" ; then
@@ -15,6 +17,8 @@
APR_ADDTO(htdbm_LTFLAGS, [-static])
APR_ADDTO(ab_LTFLAGS, [-static])
APR_ADDTO(checkgid_LTFLAGS, [-static])
+ APR_ADDTO(htcacheclean_LTFLAGS, [-static])
+ APR_ADDTO(httxt2dbm_LTFLAGS, [-static])
fi
])
@@ -81,6 +85,24 @@
])
APACHE_SUBST(checkgid_LTFLAGS)
+AC_ARG_ENABLE(static-htcacheclean,APACHE_HELP_STRING(--enable-static-htcacheclean,Build a statically linked version of htcacheclean),[
+if test "$enableval" = "yes" ; then
+ APR_ADDTO(htcacheclean_LTFLAGS, [-static])
+else
+ APR_REMOVEFROM(htcacheclean_LTFLAGS, [-static])
+fi
+])
+APACHE_SUBST(htcacheclean_LTFLAGS)
+
+AC_ARG_ENABLE(static-httxt2dbm,APACHE_HELP_STRING(--enable-static-httxt2dbm,Build a statically linked version of httxt2dbm),[
+if test "$enableval" = "yes" ; then
+ APR_ADDTO(httxt2dbm_LTFLAGS, [-static])
+else
+ APR_REMOVEFROM(httxt2dbm, [-static])
+fi
+])
+APACHE_SUBST(httxt2dbm_LTFLAGS)
+
case $host in
*aix*)
# this works in any locale, unlike the default command below, which