Add idiot test to stop the installing of versions with plugin srcdir enabled.

Original commit message from CVS:
Add idiot test to stop the installing of versions with plugin srcdir
enabled.
This commit is contained in:
Richard Boulton 2001-05-29 16:38:29 +00:00
parent efef6b28ba
commit 769318c1d0
3 changed files with 17 additions and 0 deletions

View file

@ -40,3 +40,18 @@ dist-hook:
rpm: dist
rpm -ta $(distdir).tar.gz
# Idiot test to stop the installing of versions with plugin srcdir enabled
install-exec-hook:
if PLUGINS_USE_SRCDIR
@echo "*** ERROR: Cannot install:" 2>&1
@echo "GStreamer was configured using the --enable-plugin-srcdir option." 2>&1
@echo
@echo "This option is for development purposes only: binaries built with" 2>&1
@echo "it should be used with code in the build tree only. To build an"
@echo "installable version, use ./configure without the --enable-plugin-srcdir"
@echo "option. Note that the autogen.sh script supplies the plugin srcdir"
@echo "option automatically - it cannot be used to configure installable builds"
@echo
@/bin/false
endif

View file

@ -913,6 +913,7 @@ AM_CONDITIONAL(HAVE_LIBAA, test "x$HAVE_LIBAA" = "xyes")
AM_CONDITIONAL(HAVE_GNOME_VFS, test "x$HAVE_GNOME_VFS" = "xyes")
AM_CONDITIONAL(HAVE_LIBOPENQUICKTIME, test "x$HAVE_LIBOPENQUICKTIME" = "xyes")
AM_CONDITIONAL(HAVE_LIBGSM, test "x$HAVE_LIBGSM" = "xyes")
AM_CONDITIONAL(PLUGINS_USE_SRCDIR, test "x$PLUGINS_USE_SRCDIR" = "xyes")
dnl ############################

View file

@ -908,6 +908,7 @@ AM_CONDITIONAL(HAVE_LIBAA, test "x$HAVE_LIBAA" = "xyes")
AM_CONDITIONAL(HAVE_GNOME_VFS, test "x$HAVE_GNOME_VFS" = "xyes")
AM_CONDITIONAL(HAVE_LIBOPENQUICKTIME, test "x$HAVE_LIBOPENQUICKTIME" = "xyes")
AM_CONDITIONAL(HAVE_LIBGSM, test "x$HAVE_LIBGSM" = "xyes")
AM_CONDITIONAL(PLUGINS_USE_SRCDIR, test "x$PLUGINS_USE_SRCDIR" = "xyes")
dnl ############################