diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
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" |