Install the aclocal macros for use by Winelib apps.
diff --git a/Make.rules.in b/Make.rules.in
index ccd9585..f07b8d1 100644
--- a/Make.rules.in
+++ b/Make.rules.in
@@ -101,6 +101,7 @@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
+datadir = @datadir@
infodir = @infodir@
mandir = @mandir@
sysconfdir = @sysconfdir@
diff --git a/Makefile.in b/Makefile.in
index 7012b11..edca0b9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -82,11 +82,15 @@
# Installation rules
+install-aclocal: dummy
+ $(MKINSTALLDIRS) $(datadir)/aclocal
+ $(INSTALL_DATA) $(SRCDIR)/aclocal.m4 $(datadir)/aclocal/wine.m4
+
install-lib:: $(INSTALLLIBSUBDIRS:%=%/__install__)
-install-dev:: $(INSTALLDEVSUBDIRS:%=%/__install__)
+install-dev:: $(INSTALLDEVSUBDIRS:%=%/__install__) install-aclocal
-install::
+install:: install-aclocal
-$(LDCONFIG)
@if test -n "`LANG=C $(LDD) $(bindir)/wine|grep not.found`"; \
then \
@@ -100,7 +104,11 @@
echo "*************************************************" ; \
fi
-.PHONY: install-lib install-dev
+uninstall::
+ $(RM) $(datadir)/aclocal/wine.m4
+ -rmdir $(datadir)/aclocal
+
+.PHONY: install-aclocal install-lib install-dev
# Dependencies between directories
diff --git a/aclocal.m4 b/aclocal.m4
index af46003..2c9692c 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -16,6 +16,11 @@
dnl License along with this library; if not, write to the Free Software
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
dnl
+dnl As a special exception to the GNU Lesser General Public License,
+dnl if you distribute this file as part of a program that contains a
+dnl configuration script generated by Autoconf, you may include it
+dnl under the same distribution terms that you use for the rest of
+dnl that program.
dnl **** Get the ldd program name; used by WINE_GET_SONAME ****
dnl