]>
Commit | Line | Data |
---|---|---|
0686de0f | 1 | AC_DEFUN([AC_PACKAGE_NEED_UUID_H], |
c0211f67 NS |
2 | [ AC_CHECK_HEADERS([uuid.h sys/uuid.h uuid/uuid.h]) |
3 | if test $ac_cv_header_uuid_h = no -a \ | |
4 | $ac_cv_header_sys_uuid_h = no -a \ | |
5 | $ac_cv_header_uuid_uuid_h = no; then | |
16c44ed2 NS |
6 | echo |
7 | echo 'FATAL ERROR: could not find a valid UUID header.' | |
8 | echo 'Install the Universally Unique Identifiers development package.' | |
c0211f67 | 9 | exit 1 |
0686de0f | 10 | fi |
16c44ed2 NS |
11 | ]) |
12 | ||
7b9d2be9 | 13 | AC_DEFUN([AC_PACKAGE_NEED_UUIDCOMPARE], |
0686de0f | 14 | [ AC_CHECK_FUNCS(uuid_compare) |
d0194869 NS |
15 | if test $ac_cv_func_uuid_compare = yes; then |
16 | libuuid="" | |
7b9d2be9 NS |
17 | else |
18 | AC_CHECK_LIB(uuid, uuid_compare,, [ | |
d0194869 NS |
19 | echo |
20 | echo 'FATAL ERROR: could not find a valid UUID library.' | |
21 | echo 'Install the Universally Unique Identifiers library package.' | |
7b9d2be9 | 22 | exit 1]) |
d0194869 | 23 | libuuid="-luuid" |
0686de0f | 24 | fi |
7b9d2be9 | 25 | AC_SUBST(libuuid) |
0686de0f | 26 | ]) |