summaryrefslogtreecommitdiff
path: root/apr-config.in
diff options
context:
space:
mode:
authorJustin Erenkrantz <jerenkrantz@apache.org>2003-03-06 00:14:41 +0000
committerJustin Erenkrantz <jerenkrantz@apache.org>2003-03-06 00:14:41 +0000
commit35f63f4cd947a61cc104e6eca03ce60adf3e9677 (patch)
tree6608bc08880dc6055d03950d3376fba4cb542a3a /apr-config.in
parent26a1251cd50b032176c0c5d9bb6626c1a2b7bb52 (diff)
downloadapr-35f63f4cd947a61cc104e6eca03ce60adf3e9677.tar.gz
Add --installbuilddir option to apr-config
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64398 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'apr-config.in')
-rw-r--r--apr-config.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/apr-config.in b/apr-config.in
index 643d0d79d..ed7bbfabb 100644
--- a/apr-config.in
+++ b/apr-config.in
@@ -95,6 +95,7 @@ Known values for OPTION are:
--ldflags print linker flags
--libs print additional libraries to link against
--srcdir print APR source directory
+ --installbuilddir print APR build helper directory
--link-ld print link switch(es) for linking to APR
--link-libtool print the libtool inputs for linking to APR
--shlib-path-var print the name of the shared library path env var
@@ -207,6 +208,17 @@ while test $# -gt 0; do
echo $APR_SOURCE_DIR
exit 0
;;
+ --installbuilddir)
+ if test "$location" = "installed"; then
+ echo "${installbuilddir}"
+ elif test "$location" = "source"; then
+ echo "$APR_SOURCE_DIR/build"
+ else
+ # this is for VPATH builds
+ echo "$thisdir/build"
+ fi
+ exit 0
+ ;;
--version)
echo $APR_DOTTED_VERSION
exit 0