2007-07-04 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Wed, 4 Jul 2007 20:02:38 +0000 (20:02 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Wed, 4 Jul 2007 20:02:38 +0000 (20:02 +0000)
* autogen.sh: Use = not == in test.

ChangeLog
configure.ac

index 402a885dc6989d1f11fd237800bc7e49daf027e3..a2fd496ac530938767dff71755c7d6a890342d42 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-07-04  Marcus Brinkmann  <marcus@g10code.de>
+
+       * autogen.sh: Use = not == in test.
+
 2007-03-05  Werner Koch  <wk@g10code.com>
 
        Released 1.1.4.
index d4f7f7ef0194e7c80023693925b130040947f6a5..dc67682e270780d898eb697bddfd3d073489d822 100644 (file)
@@ -538,6 +538,22 @@ AC_DEFINE_UNQUOTED(USE_DESCRIPTOR_PASSING, $fd_passing,
           [Defined if descriptor passing is enabled and supported])
 AM_CONDITIONAL(USE_DESCRIPTOR_PASSING, test "$use_descriptor_passing" = "yes")
 
+# Assuan check for the getsockopt SO_PEERCRED
+AC_MSG_CHECKING(for SO_PEERCRED)
+AC_CACHE_VAL(assuan_cv_sys_so_peercred,
+      [AC_TRY_COMPILE([#include <sys/socket.h>], 
+         [struct ucred cr; 
+          int cl = sizeof cr;
+          getsockopt (1, SOL_SOCKET, SO_PEERCRED, &cr, &cl);],
+          assuan_cv_sys_so_peercred=yes,
+          assuan_cv_sys_so_peercred=no)
+       ])
+AC_MSG_RESULT($assuan_cv_sys_so_peercred) 
+if test $assuan_cv_sys_so_peercred = yes; then
+  AC_DEFINE(HAVE_SO_PEERCRED, 1,
+            [Defined if SO_PEERCRED is supported (Linux specific)])
+fi
+
 # End of assuan checks.
 
 AM_CONDITIONAL(BUILD_COMPLUS, test "$component_system" = "COM+")