~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_have_libgearman.m4

  • Committer: Brian Aker
  • Date: 2009-08-06 15:04:21 UTC
  • mfrom: (1093.1.52 captain)
  • Revision ID: brian@gaz-20090806150421-w8yrasl1m8exorxs
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
  dnl  Check for libgearman
11
11
  dnl --------------------------------------------------------------------
12
12
 
13
 
  AC_LIB_HAVE_LINKFLAGS(gearman,, 
14
 
    [#include <libgearman/gearman.h>],[ 
15
 
      gearman_client_st gearman_client; 
16
 
      gearman_version(); 
17
 
    ]) 
 
13
  AC_ARG_ENABLE([libgearman],
 
14
    [AS_HELP_STRING([--disable-libgearman],
 
15
      [Build with libgearman support @<:@default=on@:>@])],
 
16
    [ac_enable_libgearman="$enableval"],
 
17
    [ac_enable_libgearman="yes"])
 
18
 
 
19
  AS_IF([test "x$ac_enable_libgearman" = "xyes"],[
 
20
    AC_LIB_HAVE_LINKFLAGS(gearman,,[
 
21
      #include <libgearman/gearman.h>
 
22
    ],[
 
23
      gearman_client_st gearman_client;
 
24
      gearman_version();
 
25
    ])
 
26
  ],[
 
27
    ac_cv_libgearman="no"
 
28
  ])
18
29
 
19
30
  AM_CONDITIONAL(HAVE_LIBGEARMAN, [test "x${ac_cv_libgearman}" = "xyes"])
20
 
  
21
31
])
22
32
 
23
33
AC_DEFUN([PANDORA_HAVE_LIBGEARMAN],[
26
36
 
27
37
AC_DEFUN([PANDORA_REQUIRE_LIBGEARMAN],[
28
38
  AC_REQUIRE([PANDORA_HAVE_LIBGEARMAN])
29
 
  AS_IF([test x$ac_cv_libgearman = xno],
 
39
  AS_IF([test "x${ac_cv_libgearman}" = "xno"],
30
40
      AC_MSG_ERROR([libgearman is required for ${PACKAGE}]))
31
41
])