~drizzle-trunk/drizzle/development

1999.6.1 by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file
1
dnl  Copyright (C) 2009 Sun Microsystems, Inc.
2
dnl This file is free software; Sun Microsystems, Inc.
1093.2.1 by Monty Taylor
pandora-build v0.16
3
dnl gives unlimited permission to copy and/or distribute it,
4
dnl with or without modifications, as long as this notice is preserved.
5
6
AC_DEFUN([_PANDORA_SEARCH_LIBDRIZZLE],[
7
  AC_REQUIRE([AC_LIB_PREFIX])
8
9
  dnl --------------------------------------------------------------------
10
  dnl  Check for libdrizzle
11
  dnl --------------------------------------------------------------------
1093.9.2 by Monty Taylor
pandora-build v0.35
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
    ])
1093.2.1 by Monty Taylor
pandora-build v0.16
26
  ],[
1093.9.2 by Monty Taylor
pandora-build v0.35
27
    ac_cv_libdrizzle="no"
1093.2.1 by Monty Taylor
pandora-build v0.16
28
  ])
29
  
30
  AM_CONDITIONAL(HAVE_LIBDRIZZLE, [test "x${ac_cv_libdrizzle}" = "xyes"])
31
])
32
33
AC_DEFUN([PANDORA_HAVE_LIBDRIZZLE],[
34
  AC_REQUIRE([_PANDORA_SEARCH_LIBDRIZZLE])
35
])
36
37
AC_DEFUN([PANDORA_REQUIRE_LIBDRIZZLE],[
38
  AC_REQUIRE([PANDORA_HAVE_LIBDRIZZLE])
1377.3.2 by Monty Taylor
Up the requirement on libdrizzle to 0.8.
39
  AS_IF([test "x${ac_cv_libdrizzle}" = "xno"],[
2221.1.8 by Monty Taylor
Adds ability to just build libdrizzle without needing all of the rest of the
40
    PANDORA_MSG_ERROR([libdrizzle is required for ${PACKAGE}])
1377.3.2 by Monty Taylor
Up the requirement on libdrizzle to 0.8.
41
  ],[
1377.3.5 by Monty Taylor
The requirement for 0.8 is only on Solaris non-sparc.
42
    dnl We need at least 0.8 on Solaris non-sparc
43
    AS_IF([test "$target_cpu" != "sparc" -a "x${TARGET_SOLARIS}" = "xtrue"],[
44
      PANDORA_LIBDRIZZLE_RECENT
45
    ])
1377.3.2 by Monty Taylor
Up the requirement on libdrizzle to 0.8.
46
  ])
1093.2.1 by Monty Taylor
pandora-build v0.16
47
])
48
1377.3.2 by Monty Taylor
Up the requirement on libdrizzle to 0.8.
49
AC_DEFUN([PANDORA_LIBDRIZZLE_RECENT],[
50
  AC_CACHE_CHECK([if libdrizzle is recent enough],
51
    [pandora_cv_libdrizzle_recent],
1093.2.1 by Monty Taylor
pandora-build v0.16
52
    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
53
#include <libdrizzle/drizzle.h>
1377.3.2 by Monty Taylor
Up the requirement on libdrizzle to 0.8.
54
drizzle_con_options_t foo= DRIZZLE_CON_EXPERIMENTAL;
1093.2.1 by Monty Taylor
pandora-build v0.16
55
    ]])],
1377.3.2 by Monty Taylor
Up the requirement on libdrizzle to 0.8.
56
    [pandora_cv_libdrizzle_recent=yes],
57
    [pandora_cv_libdrizzle_recent=no])])
58
  AS_IF([test "$pandora_cv_libdrizzle_recent" = "no"],[
2221.1.8 by Monty Taylor
Adds ability to just build libdrizzle without needing all of the rest of the
59
    PANDORA_MSG_ERROR([Your version of libdrizzle is too old. ${PACKAGE} requires at least version 0.8])
1093.2.1 by Monty Taylor
pandora-build v0.16
60
  ])
61
])