From 527596d0269c3e0c9da5c2b80c9673caddf8493c Mon Sep 17 00:00:00 2001 From: Gergely POLONKAI Date: Sat, 19 May 2012 12:40:07 +0200 Subject: [PATCH] Added the libgiosmtp module, and hence libtool support Signed-off-by: Gergely POLONKAI --- Makefile.am | 3 ++- autogen.sh | 3 ++- configure.ac | 3 ++- libgiosmtp/Makefile.am | 5 +++++ libgiosmtp/gioextension.c | 1 + libgiosmtp/giomodule.c | 2 ++ 6 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 libgiosmtp/Makefile.am create mode 100644 libgiosmtp/gioextension.c create mode 100644 libgiosmtp/giomodule.c diff --git a/Makefile.am b/Makefile.am index 7a99525..e17f38f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,2 +1,3 @@ -SUBDIRS = wmud docs/reference/wmud +ACLOCAL_AMFLAGS = -I m4 +SUBDIRS = libgiosmtp wmud docs/reference/wmud DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc diff --git a/autogen.sh b/autogen.sh index 7b47e8f..cc3bd90 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,7 +1,8 @@ #! /bin/sh mkdir m4 &> /dev/null -gtkdocize || exit 1 +gtkdocize --copy || exit 1 +libtoolize --install --copy || exit 1 autoheader || exit 1 aclocal || exit 1 autoconf || exit 1 diff --git a/configure.ac b/configure.ac index 989d703..d4840e0 100644 --- a/configure.ac +++ b/configure.ac @@ -6,6 +6,7 @@ AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([wMUD], [0.1.0]) AC_PROG_CC +AC_PROG_LIBTOOL PKG_PROG_PKG_CONFIG AC_CHECK_HEADERS([crypt.h]) @@ -49,4 +50,4 @@ if test "$libcurl_protocol_SMTP" != "yes"; then exit 1 fi -AC_OUTPUT(Makefile wmud/Makefile docs/reference/wmud/Makefile create-world.sh drop-world.sh) +AC_OUTPUT(Makefile libgiosmtp/Makefile wmud/Makefile docs/reference/wmud/Makefile create-world.sh drop-world.sh) diff --git a/libgiosmtp/Makefile.am b/libgiosmtp/Makefile.am new file mode 100644 index 0000000..57a79c3 --- /dev/null +++ b/libgiosmtp/Makefile.am @@ -0,0 +1,5 @@ +lib_LTLIBRARIES = libgiosmtp-1.0.la +AM_CPPFLAGS = $(CURL_CFLAGS) + +libgiosmtp_1_0_la_SOURCES = gioextension.c giomodule.c +libgiosmtp_1_0_la_LIBADD = $(CURL_LIBS) diff --git a/libgiosmtp/gioextension.c b/libgiosmtp/gioextension.c new file mode 100644 index 0000000..10a1780 --- /dev/null +++ b/libgiosmtp/gioextension.c @@ -0,0 +1 @@ +#include diff --git a/libgiosmtp/giomodule.c b/libgiosmtp/giomodule.c new file mode 100644 index 0000000..361170d --- /dev/null +++ b/libgiosmtp/giomodule.c @@ -0,0 +1,2 @@ +#include +#include