[svn] gpgme - r1179 - in trunk: . gpgme
svn author marcus
cvs at cvs.gnupg.org
Sat Jul 29 16:40:18 CEST 2006
Author: marcus
Date: 2006-07-29 16:40:16 +0200 (Sat, 29 Jul 2006)
New Revision: 1179
Modified:
trunk/ChangeLog
trunk/configure.ac
trunk/gpgme/ChangeLog
trunk/gpgme/Makefile.am
trunk/gpgme/gpgme-config.in
Log:
2006-07-29 Marcus Brinkmann <marcus at g10code.de>
* configure.ac: Check for network libraries and set NETLIBS.
gpgme/
2006-07-29 Marcus Brinkmann <marcus at g10code.de>
* gpgme-config.in (Options): Add NETLIBS.
* Makefile.am (libgpgme_la_LIBADD, libgpgme_pthread_la_LIBADD,
libgpgme_pth_la_LIBADD, libgpgme_glib_la_LIBADD): Add NETLIBS.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-07-29 13:42:10 UTC (rev 1178)
+++ trunk/ChangeLog 2006-07-29 14:40:16 UTC (rev 1179)
@@ -1,3 +1,7 @@
+2006-07-29 Marcus Brinkmann <marcus at g10code.de>
+
+ * configure.ac: Check for network libraries and set NETLIBS.
+
2006-07-06 Marcus Brinkmann <marcus at g10code.de>
* lang, lang/cl: New subdirectories.
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2006-07-29 13:42:10 UTC (rev 1178)
+++ trunk/configure.ac 2006-07-29 14:40:16 UTC (rev 1179)
@@ -192,6 +192,12 @@
fi
fi
+# Network library fun.
+AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname,
+ [NETLIBS="-lnsl $NETLIBS"]))
+AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt,
+ [NETLIBS="-lsocket $NETLIBS"]))
+AC_SUBST(NETLIBS)
# Checks for library functions.
AC_FUNC_FSEEKO
Modified: trunk/gpgme/ChangeLog
===================================================================
--- trunk/gpgme/ChangeLog 2006-07-29 13:42:10 UTC (rev 1178)
+++ trunk/gpgme/ChangeLog 2006-07-29 14:40:16 UTC (rev 1179)
@@ -1,5 +1,9 @@
2006-07-29 Marcus Brinkmann <marcus at g10code.de>
+ * gpgme-config.in (Options): Add NETLIBS.
+ * Makefile.am (libgpgme_la_LIBADD, libgpgme_pthread_la_LIBADD,
+ libgpgme_pth_la_LIBADD, libgpgme_glib_la_LIBADD): Add NETLIBS.
+
* rungpg.c (read_status): Fix comparison disguising as an
assignment.
Modified: trunk/gpgme/Makefile.am
===================================================================
--- trunk/gpgme/Makefile.am 2006-07-29 13:42:10 UTC (rev 1178)
+++ trunk/gpgme/Makefile.am 2006-07-29 14:40:16 UTC (rev 1179)
@@ -144,14 +144,14 @@
libgpgme_la_DEPENDENCIES = libgpgme-real.la $(assuan_libobjs) \
@LTLIBOBJS@ $(srcdir)/libgpgme.vers $(gpgme_deps)
libgpgme_la_LIBADD = libgpgme-real.la $(assuan_libobjs) @LTLIBOBJS@ \
- @GPG_ERROR_LIBS@
+ @GPG_ERROR_LIBS@ @NETLIBS@
libgpgme_pthread_la_LDFLAGS = $(libgpgme_version_script_cmd) -version-info \
@LIBGPGME_LT_CURRENT@:@LIBGPGME_LT_REVISION@:@LIBGPGME_LT_AGE@
libgpgme_pthread_la_DEPENDENCIES = libgpgme-real.la $(assuan_libobjs) \
@LTLIBOBJS@ $(srcdir)/libgpgme.vers
libgpgme_pthread_la_LIBADD = libgpgme-real.la $(assuan_libobjs) @LTLIBOBJS@ \
- -lpthread @GPG_ERROR_LIBS@
+ -lpthread @GPG_ERROR_LIBS@ @NETLIBS@
libgpgme_pth_la_CFLAGS = $(AM_CFLAGS) @PTH_CFLAGS@
libgpgme_pth_la_CPPFLAGS = $(AM_CPPFLAGS) @PTH_CPPFLAGS@
@@ -161,7 +161,7 @@
libgpgme_pth_la_DEPENDENCIES = libgpgme-real.la $(assuan_libobjs) \
@LTLIBOBJS@ $(srcdir)/libgpgme.vers
libgpgme_pth_la_LIBADD = libgpgme-real.la $(assuan_libobjs) @LTLIBOBJS@ \
- @PTH_LIBS@ @GPG_ERROR_LIBS@
+ @PTH_LIBS@ @GPG_ERROR_LIBS@ @NETLIBS@
if BUILD_W32_GLIB
libgpgme_glib_la_LDFLAGS = $(gpgme_res_ldflag) $(no_undefined) \
@@ -171,7 +171,7 @@
libgpgme_glib_la_DEPENDENCIES = libgpgme-real.la $(assuan_libobjs) \
@LTLIBOBJS@ $(srcdir)/libgpgme.vers $(gpgme_deps)
libgpgme_glib_la_LIBADD = libgpgme-real.la $(assuan_libobjs) @LTLIBOBJS@ \
- @GPG_ERROR_LIBS@ @GLIB_LIBS@
+ @GPG_ERROR_LIBS@ @GLIB_LIBS@ @NETLIBS@
endif
status-table.h : gpgme.h
Modified: trunk/gpgme/gpgme-config.in
===================================================================
--- trunk/gpgme/gpgme-config.in 2006-07-29 13:42:10 UTC (rev 1178)
+++ trunk/gpgme/gpgme-config.in 2006-07-29 14:40:16 UTC (rev 1179)
@@ -14,6 +14,9 @@
includedir=@includedir@
libdir=@libdir@
+# Network libraries.
+netlibs="@NETLIBS@"
+
# Configure libgpg-error.
gpg_error_cflags="@GPG_ERROR_CFLAGS@"
gpg_error_libs="@GPG_ERROR_LIBS@"
@@ -126,7 +129,7 @@
fi
;;
esac
- output="$output $gpg_error_libs"
+ output="$output $gpg_error_libs $netlibs"
if test "x$with_glib" = "xyes"; then
output="$output $glib_cflags"
fi
More information about the Gnupg-commits
mailing list