~drizzle-trunk/drizzle/jenkins-Drizzle-Builder-98

« back to all changes in this revision

Viewing changes to m4/pandora_have_libuuid.m4

  • Committer: Continuous Integration
  • Date: 2012-10-22 19:03:54 UTC
  • mfrom: (2603.1.4 drizzle-7.2)
  • Revision ID: ci@drizzle.org-20121022190354-45lo8eosmtevyep3
Merge lp:~brianaker/drizzle/bootstrap Build: jenkins-Drizzle-Builder-88

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl  Copyright (C) 2009 Sun Microsystems, Inc.
2
 
dnl This file is free software; Sun Microsystems, Inc.
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
 
    PANDORA_MSG_ERROR([Couldn't find uuid/uuid.h. On Debian this can be found in uuid-dev. On RHEL 4 this can be found in e2fsprogs-devel and Fedora/RHEL 6 in libuuid-devel.])
50
 
  ])
51
 
])
52
 
 
53
 
AC_DEFUN([PANDORA_REQUIRE_LIBUUID],[
54
 
  AC_REQUIRE([_PANDORA_REQUIRE_LIBUUID])
55
 
])