$OpenBSD: patch-client_Makefile_in,v 1.16 2016/04/25 10:14:40 ajacoutot Exp $
--- client/Makefile.in.orig	Wed Mar 23 14:54:53 2016
+++ client/Makefile.in	Mon Apr 25 12:08:24 2016
@@ -89,7 +89,7 @@ POST_INSTALL = :
 NORMAL_UNINSTALL = :
 PRE_UNINSTALL = :
 POST_UNINSTALL = :
-shlib_PROGRAMS = libdconf.so.1.0.0$(EXEEXT)
+shlib_PROGRAMS = libdconf.so.${LIBdconf_VERSION}$(EXEEXT)
 subdir = client
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 am__aclocal_m4_deps = $(top_srcdir)/m4/gtk-doc.m4 \
@@ -337,7 +337,7 @@ top_srcdir = @top_srcdir@
 # initialize variables for unconditional += appending
 TEST_PROGS = 
 shlibdir = $(libdir)
-nodist_noinst_DATA = libdconf.so.1 libdconf.so
+nodist_noinst_DATA =
 noinst_LIBRARIES = libdconf-client.a
 dconfinclude_HEADERS = dconf.h
 dconfclientinclude_HEADERS = dconf-client.h
@@ -355,7 +355,7 @@ libdconf_so_1_0_0_LDADD = \
 	../shm/libdconf-shm-shared.a			\
 	$(gio_LIBS)
 
-libdconf_so_1_0_0_LDFLAGS = -shared -Wl,-soname=libdconf.so.1
+libdconf_so_1_0_0_LDFLAGS = -shared -Wl,-soname=libdconf.so.${LIBdconf_VERSION}
 libdconf_so_1_0_0_SOURCES = $(libdconf_client_a_SOURCES)
 EXTRA_DIST = dconf.vapi dconf.deps
 vapi_DATA = dconf.vapi dconf.deps
@@ -450,8 +450,8 @@ uninstall-shlibPROGRAMS:
 clean-shlibPROGRAMS:
 	-test -z "$(shlib_PROGRAMS)" || rm -f $(shlib_PROGRAMS)
 
-libdconf.so.1.0.0$(EXEEXT): $(libdconf_so_1_0_0_OBJECTS) $(libdconf_so_1_0_0_DEPENDENCIES) $(EXTRA_libdconf_so_1_0_0_DEPENDENCIES) 
-	@rm -f libdconf.so.1.0.0$(EXEEXT)
+libdconf.so.${LIBdconf_VERSION}$(EXEEXT): $(libdconf_so_1_0_0_OBJECTS) $(libdconf_so_1_0_0_DEPENDENCIES) $(EXTRA_libdconf_so_1_0_0_DEPENDENCIES) 
+	@rm -f libdconf.so.${LIBdconf_VERSION}$(EXEEXT)
 	$(AM_V_CCLD)$(libdconf_so_1_0_0_LINK) $(libdconf_so_1_0_0_OBJECTS) $(libdconf_so_1_0_0_LDADD) $(LIBS)
 
 mostlyclean-compile:
@@ -874,13 +874,6 @@ test-report perf-report full-report:	${TEST_PROGS}
 
 # run tests in cwd as part of make check
 check-local: test-nonrecursive
-
-libdconf.so.1 libdconf.so: libdconf.so.1.0.0
-	$(AM_V_GEN) ln -fs libdconf.so.1.0.0 $@
-
-install-data-hook:
-	ln -fs libdconf.so.1.0.0 $(DESTDIR)$(shlibdir)/libdconf.so.1
-	ln -fs libdconf.so.1.0.0 $(DESTDIR)$(shlibdir)/libdconf.so
 
 uninstall-hook:
 	rm -f $(DESTDIR)$(shlibdir)/libdconf.so.1
