[svn] assuan - r193 - trunk
svn author marcus
cvs at cvs.gnupg.org
Sat Oct 8 02:25:12 CEST 2005
Author: marcus
Date: 2005-10-08 02:25:12 +0200 (Sat, 08 Oct 2005)
New Revision: 193
Modified:
trunk/ChangeLog
trunk/configure.ac
Log:
2005-10-08 Marcus Brinkmann <marcus at g10code.de>
* configure.ac: Check for socket library and add it to
LIBASSUAN_CONFIG_LIBS if necessary.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2005-10-08 00:21:54 UTC (rev 192)
+++ trunk/ChangeLog 2005-10-08 00:25:12 UTC (rev 193)
@@ -1,3 +1,15 @@
+2005-10-08 Marcus Brinkmann <marcus at g10code.de>
+
+ * configure.ac: Check for socket library and add it to
+ LIBASSUAN_CONFIG_LIBS if necessary.
+
+2005-10-07 Marcus Brinkmann <marcus at g10code.de>
+
+ * configure.ac: Invoke AC_CANONICAL_HOST. Define _XOPEN_SOURCE,
+ _XOPEN_SOURCE_EXTENDED and __EXTENSIONS__ on Solaris.
+ Add stpcy as replacement function.
+ Add setenv as replacement function (and check for unistd.h).
+
2005-06-20 Werner Koch <wk at g10code.com>
Released 0.6.10.
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2005-10-08 00:21:54 UTC (rev 192)
+++ trunk/configure.ac 2005-10-08 00:25:12 UTC (rev 193)
@@ -34,6 +34,7 @@
AC_CONFIG_SRCDIR(src/assuan.h)
AM_CONFIG_HEADER(config.h)
+AC_CANONICAL_HOST
AC_GNU_SOURCE
@@ -77,6 +78,11 @@
have_dosish_system=yes
have_w32_system=yes
;;
+ *-solaris*)
+ AC_DEFINE(_XOPEN_SOURCE, 500, Activate extensions on Solaris)
+ AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, Activate extensions on Solaris)
+ AC_DEFINE(__EXTENSIONS__, 1, Activate extensions on Solaris)
+ ;;
esac
if test "$have_dosish_system" = yes; then
@@ -92,14 +98,20 @@
fi
dnl AM_CONDITIONAL(HAVE_W32_SYSTEM, test "$have_w32_system" = yes)
+# Check for network libraries.
+NETLIBS=
+AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt,
+ [NETLIBS="-lsocket"]))
-
# For src/libassuan-config.in
LIBASSUAN_CONFIG_LIBS="-lassuan"
LIBASSUAN_CONFIG_CFLAGS=""
if test "$have_w32_system" = yes; then
LIBASSUAN_CONFIG_LIBS="$LIBASSUAN_CONFIG_LIBS -lwsock32"
fi
+if test x"$NETLIBS" != x; then
+ LIBASSUAN_CONFIG_LIBS="$LIBASSUAN_CONFIG_LIBS $NETLIBS"
+fi
AC_SUBST(LIBASSUAN_CONFIG_LIBS)
AC_SUBST(LIBASSUAN_CONFIG_CFLAGS)
@@ -139,6 +151,10 @@
AC_REPLACE_FUNCS(isascii)
AC_REPLACE_FUNCS(putc_unlocked)
AC_REPLACE_FUNCS(memrchr)
+AC_REPLACE_FUNCS(stpcpy)
+# Check for unistd.h for setenv replacement function.
+AC_CHECK_HEADERS(unistd.h)
+AC_REPLACE_FUNCS(setenv)
# Create the config files.
AC_CONFIG_FILES([Makefile])
More information about the Gnupg-commits
mailing list