Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 4024 invoked from network); 19 Jan 2009 21:42:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jan 2009 21:42:19 -0000 Received: (qmail 5153 invoked by uid 500); 19 Jan 2009 21:42:09 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 5140 invoked by uid 500); 19 Jan 2009 21:42:09 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 5127 invoked by uid 99); 19 Jan 2009 21:42:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jan 2009 13:42:09 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of je44ery@gmail.com designates 72.14.220.158 as permitted sender) Received: from [72.14.220.158] (HELO fg-out-1718.google.com) (72.14.220.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jan 2009 21:42:02 +0000 Received: by fg-out-1718.google.com with SMTP id 16so1463028fgg.40 for ; Mon, 19 Jan 2009 13:41:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=INK8iAH5KmemA5M0mIK0r3EqZ6nYBgvWg4tzKNKbA8E=; b=RXzRj9B0g6JPvPRwauFjowXs6unx1AiKCH+YTgg97GLyvfAHg6AJ13sN0WxzRWLKDf 1eB0k2ib31UPg8jt/xECiy00VeEe0prRLoZmIT17gTXb8H4gkAL6wGUx1Wy+DPHV6qPw fZvVOTIjOBt3sfw2yW8booc99W3kmcSvWJvRU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=SN24C4zQir38Itdbt9NgRNgw2fVQuDtUmtPBu1DfN/hE5tkce52OP3RMX+ZMAkzyTc BM+sPM1DaPXuopfGQCU+Ex63PGwWjsGM6kOkklljn+pz6bqYorfO/XzzZkhLmaLCFmzD fBhTBjQZ+Vb2OVE6ZXXsT5+e/uDimCK9gR/Pg= MIME-Version: 1.0 Received: by 10.86.82.6 with SMTP id f6mr3814754fgb.42.1232401301245; Mon, 19 Jan 2009 13:41:41 -0800 (PST) In-Reply-To: <269d5f420901191221m2ee497b1nd19f30af4c137080@mail.gmail.com> References: <269d5f420901191221m2ee497b1nd19f30af4c137080@mail.gmail.com> Date: Mon, 19 Jan 2009 16:41:41 -0500 Message-ID: <269d5f420901191341n2f6284o9e58c9c2c18a894c@mail.gmail.com> From: Jeffery Martin To: users@httpd.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Re: Short and easy flag to have configure compile default modules as shared objects? I'm not sure why I didn't think of this before, but I added that one line to 'configure'. me@mybox:~/httpd-2.2.11.jeff-1 $ diff configure configure.1 8162d8161 < module_default=3Dshared And I ran: ./configure --enable-mods-shared And after I run 'make' I find what I was hoping for: all the default modules compiled as shared objects. $ find . -name '*.so' ./modules/mappers/.libs/mod_alias.so ./modules/mappers/.libs/mod_negotiation.so ./modules/mappers/.libs/mod_userdir.so ./modules/mappers/.libs/mod_actions.so ./modules/mappers/.libs/mod_dir.so ./modules/http/.libs/mod_mime.so ./modules/loggers/.libs/mod_log_config.so ./modules/filters/.libs/mod_include.so ./modules/filters/.libs/mod_filter.so ./modules/metadata/.libs/mod_setenvif.so ./modules/metadata/.libs/mod_env.so ./modules/generators/.libs/mod_status.so ./modules/generators/.libs/mod_asis.so ./modules/generators/.libs/mod_autoindex.so ./modules/generators/.libs/mod_cgi.so ./modules/aaa/.libs/mod_authn_file.so ./modules/aaa/.libs/mod_authz_groupfile.so ./modules/aaa/.libs/mod_authz_host.so ./modules/aaa/.libs/mod_auth_basic.so ./modules/aaa/.libs/mod_authz_default.so ./modules/aaa/.libs/mod_authn_default.so ./modules/aaa/.libs/mod_authz_user.so ./srclib/apr/.libs/libapr-1.so ./srclib/apr-util/.libs/libaprutil-1.so ./srclib/apr-util/xml/expat/lib/.libs/libexpat.so After I don't modify 'configure' and do the same thing, then I get: $ find . -name '*.so' ./srclib/apr/.libs/libapr-1.so ./srclib/apr-util/.libs/libaprutil-1.so ./srclib/apr-util/xml/expat/lib/.libs/libexpat.so So that one change gave me what I was looking for. However, did I just add a feature I wanted or fix a small 'configure' bug? Does this belong on the Developer list instead? On Mon, Jan 19, 2009 at 3:21 PM, Jeffery Martin wrote: > Howdy Folks, > > I was wondering if 'configure' had a short and sweet flag to tell it > to do the following: > > * Compile the default modules, but compile them as shared objects > instead of staticly. > > I see no short and easy way to do this. > > I could use --enable-mods-shared, but I'd have to then list every > default module as the args to that flag. > > I tried --enable-mods-shared _without_ arguments, but it had no effect. > > I took a look at 'configure' and sure enough, that is how it is designed. > > > 8154 # Check whether --enable-mods-shared was given. > 8155 if test "${enable_mods_shared+set}" =3D set; then > 8156 enableval=3D$enable_mods_shared; > 8157 for i in $enableval; do > 8158 if test "$i" =3D "all" -o "$i" =3D "most"; then > 8159 module_selection=3D$i > 8160 module_default=3Dshared > 8161 else > 8162 i=3D`echo $i | sed 's/-/_/g'` > 8163 eval "enable_$i=3Dshared" > 8164 fi > 8165 done > 8166 > 8167 fi > > > Is there some reason why the line 'module_default=3Dshared' is not also > in the 'else' stanza? > > I do not want to use the 'most' or 'all' arguments to the > --enable-mods-shared flag because that compiles more modules than the > default. For example, the speling module will be compiled under > 'most'. > > Ideally, what I'd like to do is issue the command: > > ./configure --enable-mods-shared > > ...and have all the default modules compiled as shared objects (except > http, of course). > > I'm using the latest sources 2.2.11. > > $ md5sum configure > 293fc4bd74532892f5c9220b2292509b configure > > Thanks, All. > > > > -- > Jeffery > --=20 Jeffery Martin "When life hands you lemons, you squeeze them. Hard." =96Dr. Impossible --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org