mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
26 lines
690 B
Plaintext
26 lines
690 B
Plaintext
AC_DEFUN([AC_PACKAGE_NEED_UUID_H],
|
|
[ AC_CHECK_HEADERS(uuid.h)
|
|
if test $ac_cv_header_uuid_h = no; then
|
|
AC_CHECK_HEADERS(uuid/uuid.h,, [
|
|
echo
|
|
echo 'FATAL ERROR: could not find a valid UUID header.'
|
|
echo 'Install the Universally Unique Identifiers development package.'
|
|
exit 1])
|
|
fi
|
|
])
|
|
|
|
AC_DEFUN([AC_PACKAGE_NEED_UUIDCOMPARE],
|
|
[ AC_CHECK_FUNCS(uuid_compare)
|
|
if test $ac_cv_func_uuid_compare = yes; then
|
|
libuuid=""
|
|
else
|
|
AC_CHECK_LIB(uuid, uuid_compare,, [
|
|
echo
|
|
echo 'FATAL ERROR: could not find a valid UUID library.'
|
|
echo 'Install the Universally Unique Identifiers library package.'
|
|
exit 1])
|
|
libuuid="-luuid"
|
|
fi
|
|
AC_SUBST(libuuid)
|
|
])
|