source: build-files/ports-overlay/sysutils/grub2/files/patch-configure.ac @ 2dfacf2

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since 2dfacf2 was 2dfacf2, checked in by Kris Moore <kris@…>, 17 months ago

Add updated grub2 port, and set some options when we build it.

Remove a defunct port from gnome-meta-utils

  • Property mode set to 100644
File size: 1.2 KB
Line 
1--- configure.ac.orig
2+++ configure.ac
3@@ -1044,19 +1044,19 @@ fi
4 
5 if test x"$libzfs_excuse" = x ; then
6   # Only check for system headers if libzfs support has not been disabled.
7-  AC_CHECK_HEADERS(libzfs.h libnvpair.h)
8+  AC_CHECK_HEADERS(libzfs.h libnvpair.h, [], [], [typedef int boolean_t;])
9 fi
10 
11 if test x"$libzfs_excuse" = x ; then
12   AC_CHECK_LIB([zfs], [libzfs_init],
13                [],
14-               [libzfs_excuse="need zfs library"])
15+               [libzfs_excuse="need zfs library"], [-lavl -lnvpair -luutil -lm])
16 fi
17 
18 if test x"$libzfs_excuse" = x ; then
19   AC_CHECK_LIB([nvpair], [nvlist_print],
20                [],
21-               [libzfs_excuse="need nvpair library"])
22+               [libzfs_excuse="need nvpair library"], [-lavl -lnvpair -luutil -lm])
23 fi
24 
25 if test x"$enable_libzfs" = xyes && test x"$libzfs_excuse" != x ; then
26@@ -1069,6 +1069,9 @@ if test x"$libzfs_excuse" = x ; then
27   AC_DEFINE([HAVE_LIBZFS], [1],
28             [Define to 1 if you have the ZFS library.])
29   LIBNVPAIR="-lnvpair"
30+  if test x$host_kernel = xkfreebsd; then
31+    LIBNVPAIR="$LIBNVPAIR -lavl -luutil -lm"
32+  fi
33   AC_DEFINE([HAVE_LIBNVPAIR], [1],
34             [Define to 1 if you have the NVPAIR library.])
35 fi
Note: See TracBrowser for help on using the repository browser.