Simpler fix for the libuuid problem from awhile ago, works with all autoconf versions.

This commit is contained in:
Nathan Scott
2004-03-19 01:59:30 +00:00
parent 7ee547a8ad
commit c4112b799e
2 changed files with 18 additions and 20 deletions
+9 -10
View File
@@ -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=""
])