httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30559] - Feature Request: "apxs -q DATADIR"
Date Fri, 17 Sep 2004 13:59:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30559>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30559

Feature Request: "apxs -q DATADIR"





------- Additional Comments From andrew.benham@thus.net  2004-09-17 13:59 -------
I didn't mean DocumentRoot, I meant what the Apache configure script calls
'datadir'.

./configure --help
....
    --datadir=DIR      read-only architecture-independent data [PREFIX/share]
....


Some Apache modules call this "top_builddir" in their Makefiles - so the
module's Makefile can do:

include ${top_builddir}/build/special.mk


I can script the automatic build of such modules:

    INCLUDES=`${APXS} -q INCLUDEDIR`

    $MAKE top_dir=${APACHE2DIR} top_builddir=${DATADIR} INCLUDES=-I${INCLUDES} 
  APXS=${APXS}

but I have to hard-code DATADIR.

It struck me that apxs knows exactly where "datadir" is - because line 35 reads:

     my $datadir        = get_vars("datadir");

but there's no switch to report back to the user on its value.

It would just have saved me hard-coding the value on a per-platform basis.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message