From bf47365df496a7df349b5b2a14a2eb20956acb9e Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Tue, 4 Dec 2012 06:18:01 -0500 Subject: [PATCH] Fix binary lookup --- libtest/unittest.cc | 4 ++-- m4/libgearman.m4 | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libtest/unittest.cc b/libtest/unittest.cc index f8e1aa8c..0d504477 100644 --- a/libtest/unittest.cc +++ b/libtest/unittest.cc @@ -771,10 +771,10 @@ static test_return_t check_for_gearman(void *) { test_skip(true, HAVE_LIBGEARMAN); test_skip(true, has_gearmand()); -#if defined(GEARMAND_BINARY) +#if defined(HAVE_GEARMAND_BINARY) && HAVE_GEARMAND_BINARY if (GEARMAND_BINARY) { - test_skip(0, access(GEARMAND_BINARY, X_OK )); + test_zero(access(GEARMAND_BINARY, X_OK )); } else { diff --git a/m4/libgearman.m4 b/m4/libgearman.m4 index f4c5d3b0..3e3c96d3 100644 --- a/m4/libgearman.m4 +++ b/m4/libgearman.m4 @@ -1,4 +1,5 @@ # serial 2 AC_DEFUN([CHECK_FOR_LIBGEARMAND], - [AX_CHECK_LIBRARY([LIBGEARMAN],[libgearman/gearman.h],[gearman]) - ]) + [AX_CHECK_LIBRARY([LIBGEARMAN],[libgearman/gearman.h],[gearman],, + [AC_DEFINE([HAVE_LIBGEARMAN],[0],[Define to 1 to compile in libgearman support])]) + ]) -- 2.30.2