summaryrefslogtreecommitdiff
path: root/m4/libwrap.m4
blob: 5ad3df19bc9723587052dad61c8444c4c570946a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
dnl
dnl Usage:
dnl AC_CHECK_LIBWRAP([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
dnl

AC_DEFUN([AC_CHECK_LIBWRAP],[
	AC_CHECK_HEADERS([tcpd.h],
		AC_CHECK_LIB([wrap], [request_init],
			[LIBWRAP_CFLAGS=""
			LIBWRAP_LDFLAGS="-lwrap"
			$1],
			$2),
		$2)
])