From: Joe Orton Date: Wed, 8 Jun 2005 16:07:46 +0000 (+0000) Subject: * modules/mappers/config9.m4: Substitute INSTALL_DSO as "yes" if X-Git-Tag: 2.1.5~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eab819d612d1996585f3d16154cb247de0355baf;p=apache * modules/mappers/config9.m4: Substitute INSTALL_DSO as "yes" if 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 --- diff --git a/build/special.mk b/build/special.mk index 87a2e67bcb..548656a62f 100644 --- a/build/special.mk +++ b/build/special.mk @@ -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. @@ -18,20 +18,18 @@ 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: + diff --git a/modules/mappers/config9.m4 b/modules/mappers/config9.m4 index 49bcd680db..abf4fcdcf5 100644 --- a/modules/mappers/config9.m4 +++ b/modules/mappers/config9.m4 @@ -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