diff options
author | Thomas Hellström <totte67@users.sourceforge.net> | 2005-05-02 09:13:37 +0000 |
---|---|---|
committer | Thomas Hellström <totte67@users.sourceforge.net> | 2005-05-02 09:13:37 +0000 |
commit | d53774bcbda5319e132566e7bf42243946b6d3b1 (patch) | |
tree | 93d68a1745a70f6e64c70ed71e37a13aa7e0836a | |
parent | 6577d991e34cbe82430b04396f3dfa985a123e54 (diff) | |
download | xine-lib-d53774bcbda5319e132566e7bf42243946b6d3b1.tar.gz xine-lib-d53774bcbda5319e132566e7bf42243946b6d3b1.tar.bz2 |
** BUGFIX **
Fix X include file search for X[xv]MC when $x_includes is empty.
Pointed out by Diego Pettenò, who also provided a patch.
CVS patchset: 7512
CVS date: 2005/05/02 09:13:37
-rw-r--r-- | configure.ac | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 841a10efd..77792e25a 100644 --- a/configure.ac +++ b/configure.ac @@ -560,15 +560,20 @@ dnl Check if we can enable the xxmc plugin. dnl if test x$no_x = "x"; then + AC_ARG_WITH(xxmc-path, AC_HELP_STRING([--with-xxmc-path=path], [where libXvMC libraries for the xxmc plugin are installed. Defalts to the default X library path.]), xxmc_path="$withval", xxmc_path="$x_libraries") AC_ARG_WITH(xxmc-lib, AC_HELP_STRING([--with-xxmc-lib=XXXX], [The name of the XvMC library libXXXX.so for the xxmc plugin.]),xxmc_stub="$withval", xxmc_stub="XvMCW") + saved_libs="$LIBS" saved_CPPFLAGS="$CPPFLAGS" -CPPFLAGS="$CPPFLAGS -I$x_includes" +if test x$x_includes != "x"; then + CPPFLAGS="$CPPFLAGS -I$x_includes" +fi + XXMC_LIB="-L$xxmc_path -l$xxmc_stub" AC_MSG_CHECKING(whether to enable the xxmc plugin with vld extensions) AC_MSG_RESULT() @@ -593,7 +598,7 @@ else fi if test x$ac_have_xxmc = "xyes"; then - AC_CHECK_HEADERS($x_includes/X11/extensions/vldXvMC.h, + AC_CHECK_HEADERS(X11/extensions/vldXvMC.h, [ac_have_vldxvmc_h="yes"], ac_have_xxmc="no",) if test "x$ac_have_vldxvmc_h" = "xyes"; then @@ -623,7 +628,7 @@ if test x$ac_have_xxmc = "xno"; then fi fi if test x$ac_have_xxmc = "xyes"; then - AC_CHECK_HEADERS($x_includes/X11/extensions/XvMC.h,, + AC_CHECK_HEADERS(X11/extensions/XvMC.h,, ac_have_xxmc="no",) fi if test x$ac_have_xxmc = "xyes"; then @@ -676,7 +681,7 @@ else fi fi if test x$ac_have_xvmc = "xyes"; then - AC_CHECK_HEADERS($x_includes/X11/extensions/XvMC.h,, + AC_CHECK_HEADERS(X11/extensions/XvMC.h,, ac_have_xvmc="no",) fi if test x$ac_have_xvmc = "xyes"; then |