summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid Wragg <david@rabbitmq.com>2010-11-04 13:55:48 +0000
committerDavid Wragg <david@rabbitmq.com>2010-11-04 13:55:48 +0000
commit5f1a3cf8f27043a6f7860552cb78f1f194a33b10 (patch)
treeb51c17cd61240aab011a92d12c7d163c8f572cdd /configure.ac
parent5b41470ca661d528dbafadb5865eaaa2a4342c21 (diff)
downloadrabbitmq-c-github-ask-bug23472.tar.gz
Don't use ac_abs_confdir in autoconf.acbug23472
It's only available in recent versions of autoconf, and is not documented. Instead use things like srcdir and top_srcdir, which are documented long-standing features of autoconf.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index be7e695..e501df4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,8 +49,10 @@ AC_ARG_ENABLE(64-bit,
)
AC_MSG_CHECKING(location of AMQP codegen directory)
-sibling_codegen_dir="$ac_abs_confdir/../rabbitmq-codegen"
-AMQP_CODEGEN_DIR=$(test -d "$sibling_codegen_dir" && echo "$sibling_codegen_dir" || echo "$ac_abs_confdir/codegen")
+for d in ../rabbitmq-codegen codegen ; do
+ AMQP_CODEGEN_DIR="$d"
+ test -d "$srcdir/$AMQP_CODEGEN_DIR" && break
+done
AMQP_SPEC_JSON_PATH="$AMQP_CODEGEN_DIR/amqp-rabbitmq-0.9.1.json"
if test -f "$AMQP_SPEC_JSON_PATH"