fixing up X test and general features test

Original commit message from CVS:
fixing up X test and general features test
This commit is contained in:
Thomas Vander Stichele 2003-12-03 12:23:37 +00:00
parent 14b7f6edf3
commit a7158f85ae
4 changed files with 30 additions and 20 deletions

View File

@ -1,3 +1,9 @@
2003-12-03 set REAL_NAME environment variable <thomas at apestaart dot org>
* common/m4/gst-feature.m4: *** instead of newline when not built
* configure.ac: fix X detection when no X stuff present
* gst-libs/gst/Makefile.am: put X dependencies inside conditional
2003-07-12 Thomas Vander Stichele <thomas at apestaart dot org> 2003-07-12 Thomas Vander Stichele <thomas at apestaart dot org>
* gst-plugins.spec.in: fix up spec file * gst-plugins.spec.in: fix up spec file

2
common

@ -1 +1 @@
Subproject commit b5288e8215c6eacf0782880f6c5b6dea8f445a34 Subproject commit fcdc6ccbcc674dd487021d87a0313abf02bae396

View File

@ -489,9 +489,13 @@ dnl ;;
]) ])
dnl Check for X11 dnl Check for X11
translit(dnm, m, l) AM_CONDITIONAL(USE_X, true)
GST_CHECK_FEATURE(X, [X libraries and plugins],
[ximagesink], [
AC_PATH_XTRA AC_PATH_XTRA
if test "-DX_DISPLAY_MISSING" = "$X_CFLAGS"; then if test "x$X_CFLAGS" == "x" -o "$X_CFLAGS" == "-DX_DISPLAY_MISSING"
AC_MSG_NOTICE([cannot find X11, the build system needs fixage]) then
AC_MSG_NOTICE([cannot find X11 development files])
HAVE_X="no" HAVE_X="no"
else else
dnl this is much more than we want dnl this is much more than we want
@ -501,10 +505,10 @@ else
X_LIBS="$X_LIBS -lX11" X_LIBS="$X_LIBS -lX11"
AC_SUBST(X_CFLAGS) AC_SUBST(X_CFLAGS)
AC_SUBST(X_LIBS) AC_SUBST(X_LIBS)
HAVE_X="yes"; HAVE_X="yes"
fi fi
AC_SUBST(HAVE_X) AC_SUBST(HAVE_X)
AM_CONDITIONAL(USE_X, test "-DX_DISPLAY_MISSING" != "$X_CFLAGS") ])
dnl *** XVideo *** dnl *** XVideo ***
dnl Look for the PIC library first, Debian requires it. dnl Look for the PIC library first, Debian requires it.

View File

@ -5,7 +5,7 @@ GCONF_DIR=
endif endif
if USE_X if USE_X
X_DIR=xwindowlistener X_DIR=xwindowlistener xoverlay
else else
X_DIR= X_DIR=
endif endif
@ -14,7 +14,7 @@ SUBDIRS = audio colorbalance floatcast \
$(GCONF_DIR) idct media-info \ $(GCONF_DIR) idct media-info \
mixer navigation play propertyprobe \ mixer navigation play propertyprobe \
resample riff tuner video \ resample riff tuner video \
xoverlay $(X_DIR) $(X_DIR)
DIST_SUBDIRS = audio colorbalance floatcast \ DIST_SUBDIRS = audio colorbalance floatcast \
gconf idct media-info \ gconf idct media-info \