• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1dnl
2dnl Copyright (c) 2014 Oracle and/or its affiliates. All Rights Reserved.
3dnl
4dnl This program is free software; you can redistribute it and/or
5dnl modify it under the terms of the GNU General Public License as
6dnl published by the Free Software Foundation; either version 2 of
7dnl the License, or (at your option) any later version.
8dnl
9dnl This program is distributed in the hope that it would be useful,
10dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12dnl GNU General Public License for more details.
13dnl
14dnl You should have received a copy of the GNU General Public License
15dnl along with this program; if not, write the Free Software Foundation,
16dnl Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17dnl
18
19dnl
20dnl LTP_CHECK_TIRPC
21dnl ----------------------------
22dnl
23AC_DEFUN([LTP_CHECK_TIRPC],[
24	TIRPC_CPPFLAGS=""
25	TIRPC_LIBS=""
26
27	AC_CHECK_HEADERS([tirpc/netconfig.h netconfig.h], [
28		TIRPC_CPPFLAGS="-I${SYSROOT}/usr/include/tirpc"
29		AC_DEFINE(HAVE_LIBTIRPC, 1, [Define to 1 if you have libtirpc headers installed])
30		AC_CHECK_LIB(tirpc, rpcb_set, [TIRPC_LIBS="-ltirpc"])])
31
32	AC_SUBST(TIRPC_CPPFLAGS)
33	AC_SUBST(TIRPC_LIBS)
34])
35