Add a flag --enable-tirpc to the configure script

libnfs-4.0.0-vitalif
Ronnie Sahlberg 2011-07-17 16:32:45 +10:00
parent 8c27363e21
commit fc4bdc2269
1 changed files with 12 additions and 0 deletions

View File

@ -34,6 +34,12 @@ if test x$ENABLE_EXAMPLES = xyes; then
fi
AC_SUBST(MAYBE_EXAMPLES)
AC_ARG_ENABLE(tirpc,
[AC_HELP_STRING([--enable-tirpc],
[enable use of TI-RPC @<:@default=no@:>@])],
enable_tirpc=$enableval,
enable_tirpc='no')
case $host in
*darwin*)
RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t"
@ -61,6 +67,12 @@ AC_CHECK_MEMBER([struct sockaddr.sa_len],
#include <sys/socket.h>
])
echo "Use TI-RPC: $enable_tirpc"
if test "$enable_tirpc" = "yes"; then
CFLAGS="${CFLAGS} -I /usr/include/tirpc"
LDFLAGS="${LDFLAGS} -ltirpc"
fi
#output
AC_CONFIG_FILES([Makefile]
[include/Makefile]