Imported Upstream version 0.0~git20110724.48593f5
[deb_libnfs.git] / configure.ac
index 70203ee1594b4b89fa3d20c819c5ed73e1211353..309f73fc28fe8134743a832c2abe692c266ff335 100644 (file)
@@ -34,10 +34,19 @@ 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"
     ;;
+  *cygwin*)
+    RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t"
+    ;;
   *solaris*)
     AC_CHECK_HEADERS([sys/filio.h])
     if test x$ENABLE_EXAMPLES = xyes; then
@@ -61,6 +70,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]