changeset 3594:f1b407e8debb HEAD

And more changes to get _XPG6 stuff working right
author Timo Sirainen <tss@iki.fi>
date Sun, 18 Sep 2005 20:50:09 +0300
parents fa4cbca22d26
children 4d2ee2274c70
files configure.in src/auth/mycrypt.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Sun Sep 18 20:37:17 2005 +0300
+++ b/configure.in	Sun Sep 18 20:50:09 2005 +0300
@@ -957,6 +957,7 @@
 
 dnl * Check for crypt() if unistd.h compiles with _XOPEN_SOURCE + _XPG6
 dnl * Add other macros there too "just in case".
+AC_MSG_CHECKING([if we should use _XPG6 macro for crypt()])
 AC_TRY_COMPILE([
   #define _XOPEN_SOURCE 4
   #define _XOPEN_SOURCE_EXTENDED 1
@@ -968,6 +969,9 @@
   crypt("a", "b");
 ], [
   AC_DEFINE(CRYPT_USE_XPG6,, Define if _XPG6 macro is needed for crypt())
+  AC_MSG_RESULT(yes)
+], [
+  AC_MSG_RESULT(no)
 ])
 
 dnl ***
--- a/src/auth/mycrypt.c	Sun Sep 18 20:37:17 2005 +0300
+++ b/src/auth/mycrypt.c	Sun Sep 18 20:50:09 2005 +0300
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
 #define _XOPEN_SOURCE 4
 #define _XOPEN_SOURCE_EXTENDED 1 /* 1 needed for AIX */
 #define _XOPEN_VERSION 4