summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLim Siew Hoon <siew.hoon.lim@intel.com>2015-10-16 20:21:50 +0800
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2015-10-19 16:05:25 +0200
commit3a2430c78902181325632919c3bc383d44c40048 (patch)
tree9da317a79daf4b3fbadb473c004dac34aa463344
parenta8c973e9600d0b9bd805fc33cabc5cc50ae68197 (diff)
downloadgst-vaapi-3a2430c78902181325632919c3bc383d44c40048.tar.gz
build: check for patch and fix yasm check
Add configure checking for GNU patch tools and fixed configure checking YASM to correct sequence. Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com> https://bugzilla.gnome.org/show_bug.cgi?id=756690
-rw-r--r--configure.ac22
1 files changed, 16 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 2c567d59..1c538a38 100644
--- a/configure.ac
+++ b/configure.ac
@@ -96,12 +96,6 @@ AC_ARG_VAR([GIT], [Path to git program, if any])
AC_PATH_PROG([GIT], [git])
AM_CONDITIONAL([HAVE_GIT], [test -n "$GIT"])
-AC_ARG_VAR([YASM], [Path to yasm program, if any])
-AC_PATH_PROG([YASM], [yasm])
-if test -z "$YASM" -a "$enable_builtin_libvpx" = "yes"; then
- AC_MSG_ERROR([yasm is needed to build libvpx sources])
-fi
-
dnl Initialize libtool
LT_PREREQ([2.2])
LT_INIT
@@ -156,6 +150,22 @@ AC_ARG_WITH([glapi],
[build with the specified OpenGL APIs @<:@default=default_glapi@:>@]),
[GLAPI="$with_glapi"], [GLAPI=default_glapi])
+
+dnl Check fr YASM
+AC_ARG_VAR([YASM], [Path to yasm program, if any])
+AC_PATH_PROG([YASM], [yasm])
+if test -z "$YASM" -a "$enable_builtin_libvpx" = "yes"; then
+ AC_MSG_ERROR([yasm is needed to build libvpx sources])
+fi
+
+dnl Check for PATCH
+AC_ARG_VAR([PATCH], [Path to patch program, if any])
+AC_PATH_PROG([PATCH], [patch])
+if test -z "$PATCH" -a "$enable_builtin_videoparsers" = "yes"; then
+ AC_MSG_ERROR([patch is needed to apply patches for built videoparsers
+sources])
+fi
+
dnl Check for basic libraries
AC_CHECK_LIB(m, tan)