aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac6
2 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 4ff89e6..b4352c1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -101,10 +101,12 @@ install-data-local: $(macrosfiles) $(pkg_gconfig)
$(install_sh_DATA) $${i}.macros $(DESTDIR)$(RPMVENDORDIR)/$${i}-$(RPMOS)/macros; \
done
[ -d $(DESTDIR)$(RPMSYSCONFDIR) ] || $(mkinstalldirs) $(DESTDIR)$(RPMSYSCONFDIR)
+if RPMPLATFORM
for i in $(pkg_gconfig); do \
$(install_sh_DATA) $${i} $(DESTDIR)$(RPMSYSCONFDIR)/$${i}; \
done
$(install_sh_SCRIPT) rpmgenplatform $(DESTDIR)$(bindir)/rpmgenplatform
+endif
.PHONY: ChangeLog test
diff --git a/configure.ac b/configure.ac
index 8605103..f28b9c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,7 +4,7 @@
# $Id$
AC_PREREQ(2.59)
-AC_INIT(rpm-mandriva-setup, 1.64, nanardon@mandriva.org)
+AC_INIT(rpm-mandriva-setup, 1.65, nanardon@mandriva.org)
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE(1.9)
AC_CONFIG_SRCDIR
@@ -116,4 +116,8 @@ if test $with_rpmsysconfdir; then
fi
AC_SUBST(RPMSYSCONFDIR)
+
+AC_ARG_WITH(rpmplatform, [ --with-rpmplatform use /etc/rpm/platform ])
+AM_CONDITIONAL([RPMPLATFORM],[test $with_rpmplatform])
+
AC_OUTPUT