AC_SUBST(DBUS_LIBS)
AC_SUBST([GDBUS_CFLAGS], ['$(DBUS_CFLAGS) -I$(top_srcdir)/gdbus'])
-AC_SUBST([GDBUS_LIBS], ['$(top_builddir)/gdbus/libgdbus.a $(DBUS_LIBS)'])
+AC_SUBST([GDBUS_LIBS], ['$(top_builddir)/gdbus/libgdbus.la $(DBUS_LIBS)'])
PKG_CHECK_MODULES(HAL, hal >= 0.5.8, hal_found=yes, hal_found=no)
AC_SUBST(HAL_CFLAGS)
-noinst_LIBRARIES = libgdbus.a
+noinst_LTLIBRARIES = libgdbus.la
-libgdbus_a_SOURCES = gdbus.h mainloop.c object.c watch.c
+libgdbus_la_SOURCES = gdbus.h mainloop.c object.c watch.c
AM_CFLAGS = @DBUS_CFLAGS@ @GLIB_CFLAGS@