[shibboleth-sp2] 44/100: New platform-based RPC switch

Ferenc Wágner wferi-guest at moszumanska.debian.org
Tue Jan 26 21:29:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

wferi-guest pushed a commit to annotated tag 1.2.1
in repository shibboleth-sp2.

commit beaf06bdc345674802109d59d739763dc4d922cf
Author: Scott Cantor <cantor.2 at osu.edu>
Date:   Mon Oct 18 20:45:31 2004 +0000

    New platform-based RPC switch
---
 configure.ac | 35 +++++++++++++++++++++++++++++------
 1 file changed, 29 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 6ab8c8e..42df24f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,8 +66,33 @@ else
     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
 fi
 
-# Test RPC now -- deal with it later
-ACX_RPCTEST([rpctest="yes"],[rpctest="no"])
+# what SunRPC library should we use?
+AC_MSG_NOTICE([checking for which SunRPC library to use])
+AC_ARG_ENABLE(native-rpc,
+			AC_HELP_STRING([--enable-native-rpc, [Use the OS-supplied Sun RPC library]),
+			[if test "x$enableval" = "x" ; then
+            	enable_native_rpc=yes
+            else
+				enable_native_rpc="$enableval"
+			fi],
+			[enable_native_rpc=unknown])
+AC_CANONICAL_HOST
+case "${host}" in
+        *-*-linux*)     if test $enable_native_rpc = "no" ; then
+        					AC_MSG_WARN([appears to be Linux, but you said not to use native RPC library])
+        				elif test $enable_native_rpc = "unknown" ; then
+        					enable_native_rpc=yes
+        				fi
+        ;;
+        
+        *)				if test $enable_native_rpc = "yes" ; then
+        					AC_MSG_ERROR([Native RPC library not known to be safe on any non-Linux platform])
+        				elif test $enable_native_rpc = "unknown" ; then
+        					enable_native_rpc=no
+        				fi
+        ;;
+esac
+AC_MSG_NOTICE([using native SunRPC library: $enable_native_rpc])
 
 AC_ARG_WITH(dmalloc,
             AC_HELP_STRING([--with-dmalloc=PATH], [where dmalloc is installed]),
@@ -196,13 +221,11 @@ AC_CONFIG_FILES([Makefile doc/Makefile shib/Makefile schemas/Makefile \
 		 shib-target/Makefile shar/Makefile siterefresh/Makefile \
 		 test/Makefile xmlproviders/Makefile])
 
-
-# now deal with the rpc library, to see if we need to build our own
-if test $rpctest = "no"; then
+if test $enable_native_rpc = "no"; then
     WANT_SUBDIRS="oncrpc $WANT_SUBDIRS"
 	AC_DEFINE(USE_OUR_ONCRPC,1,[Define if using embedded version of ONC RPC.])
 fi
-AM_CONDITIONAL(USE_OUR_ONCRPC,test "$rpctest" = "no")
+AM_CONDITIONAL(USE_OUR_ONCRPC,test "$enable_native_rpc" = "no")
 
 
 # Apache 1.3 (mod_shib_13)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git



More information about the Pkg-shibboleth-devel mailing list