Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
.gitignore | 1 +
Makefile.am | 2 ++
configure.ac | 6 ++++++
3 files changed, 9 insertions(+)
diff --git a/.gitignore b/.gitignore
index 95c45bb..698e97d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,6 +22,7 @@ depcomp
docs/*.html
docs/*.html.in
autom4te.cache/
+m4/
src/*.so
stamp-h1
tools/generate-api-docs
diff --git a/Makefile.am b/Makefile.am
index c4cc7a1..bab66e4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,5 @@
SUBDIRS = tools src docs tests
+ACLOCAL_AMFLAGS = -I m4
+
EXTRA_DIST = libvirt-php.spec.in
diff --git a/configure.ac b/configure.ac
index 7099f9d..4584385 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,6 +3,12 @@ AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability])
AC_CONFIG_FILES([Makefile tools/Makefile src/Makefile tests/Makefile docs/Makefile])
AM_MAINTAINER_MODE([enable])
+m4_ifndef([LT_INIT], [
+ AM_PROG_LIBTOOL
+], [
+ LT_INIT([shared disable-static])
+])
+
dnl Checks for programs.
AC_PROG_CC
AC_LANG([C])
--
2.3.6