~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_have_libuuid.m4

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-13 01:03:01 UTC
  • mto: (1126.9.2 captain-20090915-01)
  • mto: This revision was merged to the branch mainline in revision 1133.
  • Revision ID: osullivan.padraig@gmail.com-20090913010301-tcvvezipx1124acy
Added calls to the dtrace delete begin/end probes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl  Copyright (C) 2009 Sun Microsystems
2
 
dnl This file is free software; Sun Microsystems
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
 
#--------------------------------------------------------------------
7
 
# Check for libuuid
8
 
#--------------------------------------------------------------------
9
 
 
10
 
 
11
 
AC_DEFUN([_PANDORA_SEARCH_LIBUUID],[
12
 
  AC_REQUIRE([AC_LIB_PREFIX])
13
 
 
14
 
  dnl Do this by hand. Need to check for uuid/uuid.h, but uuid may or may
15
 
  dnl not be a lib is weird.
16
 
  AC_CHECK_HEADERS(uuid/uuid.h)
17
 
  AC_LIB_HAVE_LINKFLAGS(uuid,,
18
 
  [
19
 
    #include <uuid/uuid.h>
20
 
  ],
21
 
  [
22
 
    uuid_t uout;
23
 
    uuid_generate(uout);
24
 
  ])
25
 
 
26
 
  AM_CONDITIONAL(HAVE_LIBUUID, [test "x${ac_cv_libuuid}" = "xyes"])
27
 
])
28
 
 
29
 
AC_DEFUN([_PANDORA_HAVE_LIBUUID],[
30
 
 
31
 
  AC_ARG_ENABLE([libuuid],
32
 
    [AS_HELP_STRING([--disable-libuuid],
33
 
      [Build with libuuid support @<:@default=on@:>@])],
34
 
    [ac_enable_libuuid="$enableval"],
35
 
    [ac_enable_libuuid="yes"])
36
 
 
37
 
  _PANDORA_SEARCH_LIBUUID
38
 
])
39
 
 
40
 
 
41
 
AC_DEFUN([PANDORA_HAVE_LIBUUID],[
42
 
  AC_REQUIRE([_PANDORA_HAVE_LIBUUID])
43
 
])
44
 
 
45
 
AC_DEFUN([_PANDORA_REQUIRE_LIBUUID],[
46
 
  ac_enable_libuuid="yes"
47
 
  _PANDORA_SEARCH_LIBUUID
48
 
  AS_IF([test "x$ac_cv_header_uuid_uuid_h" = "xno"],[
49
 
    AC_MSG_ERROR([Couldn't find uuid/uuid.h. On Debian this can be found in uuid-dev. On Redhat this can be found in e2fsprogs-devel.])
50
 
  ])
51
 
])
52
 
 
53
 
AC_DEFUN([PANDORA_REQUIRE_LIBUUID],[
54
 
  AC_REQUIRE([_PANDORA_REQUIRE_LIBUUID])
55
 
])