]> granicus.if.org Git - apache/commitdiff
* modules/mappers/config9.m4: Substitute INSTALL_DSO as "yes" if
authorJoe Orton <jorton@apache.org>
Wed, 8 Jun 2005 16:07:46 +0000 (16:07 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 8 Jun 2005 16:07:46 +0000 (16:07 +0000)
mod_so is linked in, or "no" otherwise.

* build/special.mk: Remove hack to guess whether mod_so is linked in
based on BUILTIN_LIBS; rely on INSTALL_DSO definition from
config_vars.mk.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@189603 13f79535-47bb-0310-9956-ffa450edef68

build/special.mk
modules/mappers/config9.m4

index 87a2e67bcbd0de7d6a1d090c0b86d87504dc5242..548656a62f0fe43e89c6ee366609d5c4b18e35e4 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2000-2004 The Apache Software Foundation
+# Copyright 2000-2005 The Apache Software Foundation
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 all: all-recursive
 
 include $(builddir)/modules.mk
+
 TARGETS = $(static)
 SHARED_TARGETS = $(shared)
-INSTALL_TARGETS = install-modules
-
-install-modules:
-       @test -d $(DESTDIR)$(libexecdir) || $(MKINSTALLDIRS) $(DESTDIR)$(libexecdir)
-       @builtin='$(BUILTIN_LIBS)'; \
-       has_mod_so=`echo $$builtin|sed 's/^.*libmod_so.*$$/has_mod_so/'`; \
-       if [ "x$$has_mod_so" = "xhas_mod_so" ]; then \
-               list='$(shared)'; \
-               for i in $$list; do \
-                       $(top_srcdir)/build/instdso.sh SH_LIBTOOL='$(SH_LIBTOOL)' $$i $(DESTDIR)$(libexecdir); \
-               done; \
-       fi      
+INSTALL_TARGETS = install-modules-$(INSTALL_DSO)
 
 include $(top_builddir)/build/rules.mk
 
+install-modules-yes:
+       @$(MKINSTALLDIRS) $(DESTDIR)$(libexecdir)
+       @list='$(shared)'; for i in $$list; do \
+         $(top_srcdir)/build/instdso.sh SH_LIBTOOL='$(SH_LIBTOOL)' $$i $(DESTDIR)$(libexecdir); \
+       done
+
+install-modules-no:
+
index 49bcd680dbfd8ed80e3c6eb24b7e807d0413dffb..abf4fcdcf5fb6bf8a195e6a35b9d1fc98bfb41ae 100644 (file)
@@ -43,7 +43,11 @@ fi
 
 if test "x$enable_so" = "xstatic"; then
     APR_ADDTO(HTTPD_LDFLAGS, [-export-dynamic])
+    INSTALL_DSO=yes
+else
+    INSTALL_DSO=no
 fi
+APACHE_SUBST(INSTALL_DSO)
 
 if test "$sharedobjs" = "yes"; then
     if test $ac_cv_define_APR_HAS_DSO = "no"; then