[PATCH app-xdm 8/9] config: relocate key_setnet in section "Check for header files"

Gaetan Nadon memsize at videotron.ca
Fri Nov 12 16:59:33 PST 2010


No configuration changes

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 configure.ac |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/configure.ac b/configure.ac
index 59bc5ee..a12d142 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,6 +84,13 @@ AC_SEARCH_LIBS(crypt, crypt)
 
 # Checks for header files.
 AC_CHECK_HEADERS([grp.h syslog.h sys/param.h])
+AC_CHECK_DECL(key_setnet, 
+	AC_DEFINE(HAVE_DECL_KEY_SETNET,1,
+	     [Define to 1 if your headers define the key_setnet() function.]),
+	[],[
+#include <rpc/rpc.h>
+#include <rpc/key_prot.h>
+])
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_TYPE_SIGNAL
@@ -108,15 +115,6 @@ XTRANS_CONNECTION_FLAGS
 XTRANS_SECURE_RPC_FLAGS
 AM_CONDITIONAL(HAS_SECURE_RPC, test x$SECURE_RPC = xyes)
 
-dnl Is key_setnet defined in a header file?
-AC_CHECK_DECL(key_setnet, 
-	AC_DEFINE(HAVE_DECL_KEY_SETNET,1,
-	     [Define to 1 if your headers define the key_setnet() function.]),
-	[],[
-#include <rpc/rpc.h>
-#include <rpc/key_prot.h>
-])
-
 # Check for pluggable authentication modules (PAM) support
 AC_ARG_WITH(pam, AS_HELP_STRING([--with-pam],
 	[Use PAM for authentication (default is autodected)]),
-- 
1.6.0.4



More information about the xorg-devel mailing list