]> git.decadent.org.uk Git - nfs-utils.git/blob - aclocal/libblkid.m4
Introduce IPv6-enabled version of get_client_address. The legacy mount
[nfs-utils.git] / aclocal / libblkid.m4
1 dnl *************************** libblkid needs version 1.40 or later ***********************
2 AC_DEFUN([AC_BLKID_VERS], [
3   AC_MSG_CHECKING(for suitable libblkid version)
4   AC_CACHE_VAL(libblkid_is_recent,
5    [
6     saved_LIBS="$LIBS"
7     LIBS=-lblkid
8     AC_TRY_RUN([
9         #include <blkid/blkid.h>
10         int main()
11         {
12                 int vers = blkid_get_library_version(0, 0);
13                 return vers >= 140 ? 0 : 1;
14         }
15        ], libblkid_is_recent=yes, libblkid_is_recent=no,
16        libblkid_is_recent=unknown)
17     LIBS="$saved_LIBS"
18     ])dnl
19   AC_MSG_RESULT($libblkid_is_recent)
20 ])dnl