]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - m4/package_blkid.m4
xfsprogs: build: remove home-baked long/ptr size detection
[thirdparty/xfsprogs-dev.git] / m4 / package_blkid.m4
1 #
2 # See if blkid has the topology bits
3 #
4
5 AC_DEFUN([AC_HAVE_BLKID_TOPO],
6 [
7 enable_blkid="$1"
8 if test "$enable_blkid" = "yes"; then
9 AC_SEARCH_LIBS([blkid_probe_all], [blkid])
10 AC_CHECK_FUNCS(blkid_probe_get_topology)
11 if test $ac_cv_func_blkid_probe_get_topology = yes; then
12 libblkid="-lblkid"
13 else
14 libblkd=""
15 enable_blkid="no"
16 AC_SUBST(enable_blkid)
17 fi
18 fi
19 AC_SUBST(libblkid)
20 ])