~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_have_libdrizzle.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:
9
9
  dnl --------------------------------------------------------------------
10
10
  dnl  Check for libdrizzle
11
11
  dnl --------------------------------------------------------------------
12
 
  
13
 
  AC_LIB_HAVE_LINKFLAGS(drizzle,,[
14
 
    #include <libdrizzle/drizzle_client.h>
 
12
 
 
13
  AC_ARG_ENABLE([libdrizzle],
 
14
    [AS_HELP_STRING([--disable-libdrizzle],
 
15
      [Build with libdrizzle support @<:@default=on@:>@])],
 
16
    [ac_enable_libdrizzle="$enableval"],
 
17
    [ac_enable_libdrizzle="yes"])
 
18
 
 
19
  AS_IF([test "x$ac_enable_libdrizzle" = "xyes"],[
 
20
    AC_LIB_HAVE_LINKFLAGS(drizzle,,[
 
21
      #include <libdrizzle/drizzle_client.h>
 
22
    ],[
 
23
      drizzle_st drizzle;
 
24
      drizzle_version();
 
25
    ])
15
26
  ],[
16
 
    drizzle_st drizzle;
17
 
    drizzle_version();
 
27
    ac_cv_libdrizzle="no"
18
28
  ])
19
29
  
20
30
  AM_CONDITIONAL(HAVE_LIBDRIZZLE, [test "x${ac_cv_libdrizzle}" = "xyes"])
21
 
 
22
31
])
23
32
 
24
33
AC_DEFUN([PANDORA_HAVE_LIBDRIZZLE],[
27
36
 
28
37
AC_DEFUN([PANDORA_REQUIRE_LIBDRIZZLE],[
29
38
  AC_REQUIRE([PANDORA_HAVE_LIBDRIZZLE])
30
 
  AS_IF([test x$ac_cv_libdrizzle = xno],
 
39
  AS_IF([test "x${ac_cv_libdrizzle}" = "xno"],
31
40
      AC_MSG_ERROR([libdrizzle is required for ${PACKAGE}]))
32
41
])
33
42