summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2010-10-29 12:49:08 +0100
committerJonny Lamb <jonny.lamb@collabora.co.uk>2010-10-29 12:49:08 +0100
commit7c272e4808db52e31449523cf784f5228d651f56 (patch)
tree73a94535591ab26cff7ddc00fcea67e988156e4c
parent82d22559f42c0e1bc3786687c0261d72e20ea2ac (diff)
configure: change --enable-shared-library to --enable-library-suffix
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--configure.ac11
-rw-r--r--telepathy-yell/Makefile.am1
2 files changed, 7 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index ffe87f1..b5157c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,12 +83,13 @@ AC_ARG_ENABLE(coding-style-checks,
AC_SUBST([ENABLE_CODING_STYLE_CHECKS])
dnl shared library
-AC_ARG_ENABLE(shared-library,
- AC_HELP_STRING([--enable-shared-library],
- [produce a shared library to install]),
- [enable_shared_library=$enableval], [enable_shared_library=no])
+AC_ARG_ENABLE(library-suffix,
+ AC_HELP_STRING([--enable-library-suffix=foo-0.2],
+ [produce a shared library to install and give it this suffix]),
+ [LIBRARY_SUFFIX=$enableval], [LIBRARY_SUFFIX=no])
-AM_CONDITIONAL(ENABLE_SHARED_LIBRARY, test "x$enable_shared_library" != "xno")
+AM_CONDITIONAL(ENABLE_SHARED_LIBRARY, test "x$LIBRARY_SUFFIX" != "xno")
+AC_SUBST([LIBRARY_SUFFIX])
dnl Check for Glib
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.26, gobject-2.0 >= 2.26])
diff --git a/telepathy-yell/Makefile.am b/telepathy-yell/Makefile.am
index 53c1c3f..03913f7 100644
--- a/telepathy-yell/Makefile.am
+++ b/telepathy-yell/Makefile.am
@@ -12,6 +12,7 @@ EXTRA_DIST = \
if ENABLE_SHARED_LIBRARY
lib_LTLIBRARIES = libtelepathy-yell.la
+libtelepathy_yell_la_LDFLAGS = -release $(LIBRARY_SUFFIX)
else
noinst_LTLIBRARIES = libtelepathy-yell.la
libtelepathy_yell_la_LDFLAGS = -static