mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Simpler fix for the libuuid problem from awhile ago, works with all autoconf versions.
This commit is contained in:
Vendored
+9
-10
@@ -186,20 +186,19 @@ AC_DEFUN([AC_PACKAGE_NEED_UUID_H],
|
||||
|
||||
AC_DEFUN([AC_PACKAGE_NEED_UUIDCOMPARE],
|
||||
[ AC_CHECK_FUNCS(uuid_compare)
|
||||
if test $ac_cv_func_uuid_compare = no; then
|
||||
AC_CHECK_LIB(uuid, uuid_compare, [libuuid=/usr/lib/libuuid.a], [
|
||||
echo
|
||||
echo 'FATAL ERROR: could not find a valid UUID library.'
|
||||
echo 'Install the Universally Unique Identifiers library package.'
|
||||
exit 1])
|
||||
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)
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_PACKAGE_CHECK_LIBUUID],
|
||||
[ test $pkg_platform = freebsd && libuuid=""
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_PACKAGE_NEED_XFS_LIBXFS_H],
|
||||
[ AC_CHECK_HEADERS([xfs/libxfs.h])
|
||||
if test "$ac_cv_header_xfs_libxfs_h" != "yes"; then
|
||||
|
||||
+9
-10
@@ -11,16 +11,15 @@ AC_DEFUN([AC_PACKAGE_NEED_UUID_H],
|
||||
|
||||
AC_DEFUN([AC_PACKAGE_NEED_UUIDCOMPARE],
|
||||
[ AC_CHECK_FUNCS(uuid_compare)
|
||||
if test $ac_cv_func_uuid_compare = no; then
|
||||
AC_CHECK_LIB(uuid, uuid_compare, [libuuid=/usr/lib/libuuid.a], [
|
||||
echo
|
||||
echo 'FATAL ERROR: could not find a valid UUID library.'
|
||||
echo 'Install the Universally Unique Identifiers library package.'
|
||||
exit 1])
|
||||
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)
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_PACKAGE_CHECK_LIBUUID],
|
||||
[ test $pkg_platform = freebsd && libuuid=""
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user