1 dnl 2 dnl Copyright (c) 2014 Oracle and/or its affiliates. All Rights Reserved. 3 dnl 4 dnl This program is free software; you can redistribute it and/or 5 dnl modify it under the terms of the GNU General Public License as 6 dnl published by the Free Software Foundation; either version 2 of 7 dnl the License, or (at your option) any later version. 8 dnl 9 dnl This program is distributed in the hope that it would be useful, 10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 dnl GNU General Public License for more details. 13 dnl 14 dnl You should have received a copy of the GNU General Public License 15 dnl along with this program; if not, write the Free Software Foundation, 16 dnl Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 dnl 18 19 dnl 20 dnl LTP_CHECK_TIRPC 21 dnl ---------------------------- 22 dnl 23 AC_DEFUN([LTP_CHECK_TIRPC],[ 24 TIRPC_CPPFLAGS="" 25 TIRPC_LIBS="" 26 27 AC_CHECK_HEADER(tirpc/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