summaryrefslogtreecommitdiffstats
path: root/config/user-libaio.m4
blob: d7a7cb508df80196eb2037d8442e12a9391ee172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
dnl #
dnl # Check for libaio - only used for libaiot test cases.
dnl #
AC_DEFUN([ZFS_AC_CONFIG_USER_LIBAIO], [
	LIBAIO=

	AC_CHECK_HEADER([libaio.h], [
	    user_libaio=yes
	    AC_SUBST([LIBAIO], ["-laio"])
	    AC_DEFINE([HAVE_LIBAIO], 1, [Define if you have libaio])
	], [
	    user_libaio=no
	])
])