summaryrefslogtreecommitdiff
path: root/libmu_scm/Makefile.am
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-08-28 09:38:18 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2009-08-28 09:38:18 +0300
commit496bdf7228403ee3e571280891e76e7cb5fd7ca7 (patch)
tree62bb6143dafa648657a4ec88fc88f841ab2540e6 /libmu_scm/Makefile.am
parent3bacf09e35159982a35f0e30a13cc1771c95da90 (diff)
downloadmailutils-496bdf7228403ee3e571280891e76e7cb5fd7ca7.tar.gz
mailutils-496bdf7228403ee3e571280891e76e7cb5fd7ca7.tar.bz2
Minor fix
* libmu_scm/Makefile.am (install-data-hook): Make sure libguile-mailutils links to the versioned .so file.
Diffstat (limited to 'libmu_scm/Makefile.am')
-rw-r--r--libmu_scm/Makefile.am8
1 files changed, 5 insertions, 3 deletions
diff --git a/libmu_scm/Makefile.am b/libmu_scm/Makefile.am
index 5d7185be4..2c4c5ed4b 100644
--- a/libmu_scm/Makefile.am
+++ b/libmu_scm/Makefile.am
@@ -128,10 +128,12 @@ mailutils.scm: mailutils.scm.in $(C_SRCS:.c=.inc)
MKDEP = $(CC) -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
install-data-hook:
- @here=`pwd`; \
+ @here=`pwd`; \
cd $(DESTDIR)$(libdir);\
- if test -f libmu_scm.so; then \
- $(LN_S) -f libmu_scm.so libguile-mailutils-v-$(VERSION).so; \
+ if test -f libmu_scm.la; then \
+ dlname=`sed -n 's/dlname='\''\(.*\)'\''/\1/p' libmu_scm.la`; \
+ test -z "$dlname" && dlname='libmu_scm.so'; \
+ $(LN_S) -f "$$dlname" libguile-mailutils-v-$(VERSION).so; \
fi; \
cd $$here

Return to:

Send suggestions and report system problems to the System administrator.