Imported Upstream version 0.0~git20110724.48593f5 upstream/0.0_git20110724.48593f5
authorAndres Mejia <mcitadel@gmail.com>
Sun, 24 Jul 2011 18:15:59 +0000 (14:15 -0400)
committerAndres Mejia <mcitadel@gmail.com>
Sun, 24 Jul 2011 18:15:59 +0000 (14:15 -0400)
README
configure
configure.ac
include/Makefile.am
include/Makefile.in

diff --git a/README b/README
index edfd8e145cecaf6875dd2df2681e8d8c21b7cfa2..cab6aa646a563dd53c50120bdd4cf549bc067721 100644 (file)
--- a/README
+++ b/README
@@ -35,10 +35,18 @@ ports from connecting.
 These servers require you use the "insecure" export option in /etc/exports
 in order to allow libnfs clients to be able to connect.
 
-PLATTFORM support
+PLATFORM support
 =================
 As of now this is tested with linux, MacOSX and Apple iOS.
 
 Linux:  - tested with Ubuntu 10.04 - should work with others aswell
+Cygwin: - tested under 64bit win2k8.
 MacOSX: - tested with SDK 10.4 (under Snow Leopard) - should also work with later SDKs and 64Bit
 iOS:    - tested with iOS SDK 4.2 - running on iOS 4.3.x
+FreeBSD:- tested with 8.2
+
+
+Cygwin
+------
+Configure with './configure --enable-tirpc' since cygwin only supports ti-rpc and not classic rpc.
+
index 63d9564107d2bb6712d7c271b105eb4d905e5f7d..efa3b78e6ac682e464b6da12a3b8e37e7a3398e7 100755 (executable)
--- a/configure
+++ b/configure
@@ -734,6 +734,7 @@ with_gnu_ld
 with_sysroot
 enable_libtool_lock
 enable_examples
+enable_tirpc
 '
       ac_precious_vars='build_alias
 host_alias
@@ -1372,6 +1373,7 @@ Optional Features:
                           optimize for fast installation [default=yes]
   --disable-libtool-lock  avoid locking (might break parallel builds)
   --enable-examples       Build example programs
+  --enable-tirpc          enable use of TI-RPC [default=no]
 
 Optional Packages:
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
@@ -11450,10 +11452,21 @@ if test x$ENABLE_EXAMPLES = xyes; then
 fi
 
 
+# Check whether --enable-tirpc was given.
+if test "${enable_tirpc+set}" = set; then :
+  enableval=$enable_tirpc; enable_tirpc=$enableval
+else
+  enable_tirpc='no'
+fi
+
+
 case $host in
   *darwin*)
     RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t"
     ;;
+  *cygwin*)
+    RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t"
+    ;;
   *solaris*)
     for ac_header in sys/filio.h
 do :
@@ -11571,6 +11584,12 @@ $as_echo "#define HAVE_SOCKADDR_LEN 1" >>confdefs.h
 fi
 
 
+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="$ac_config_files Makefile include/Makefile lib/Makefile mount/Makefile nfs/Makefile portmap/Makefile rquota/Makefile examples/Makefile"
 
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]
index 31fc37ad8e93eaadce31210119421fa678e37d4e..6efb8f59ce0f8ca8e2c1834c562513478cb304d9 100644 (file)
@@ -3,4 +3,8 @@ dist_nfsc_HEADERS = \
        libnfs.h \
        libnfs-private.h \
        libnfs-raw.h \
-       slist.h
+       slist.h \
+       ${abs_top_srcdir}/mount/libnfs-raw-mount.h \
+       ${abs_top_srcdir}/portmap/libnfs-raw-portmap.h \
+       ${abs_top_srcdir}/nfs/libnfs-raw-nfs.h \
+       ${abs_top_srcdir}/rquota/libnfs-raw-rquota.h
index 774be6bfc52649b36857b8f219d2f51691b63121..87157ca05d5d6063ea407fe3c925f0fa63043df0 100644 (file)
@@ -194,7 +194,11 @@ dist_nfsc_HEADERS = \
        libnfs.h \
        libnfs-private.h \
        libnfs-raw.h \
-       slist.h
+       slist.h \
+       ${abs_top_srcdir}/mount/libnfs-raw-mount.h \
+       ${abs_top_srcdir}/portmap/libnfs-raw-portmap.h \
+       ${abs_top_srcdir}/nfs/libnfs-raw-nfs.h \
+       ${abs_top_srcdir}/rquota/libnfs-raw-rquota.h
 
 all: all-am