Permalink
Browse files

check for pkg-config and disable external ffmpeg when it was not foun…

…d. closes #66
  • Loading branch information...
1 parent 05e432c commit 8fc9b126f9a6cef81012848c765c5afb7a284cfb Lars Op den Kamp committed Oct 16, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 configure.ac
View
@@ -14,7 +14,7 @@ AC_PROG_CXX
AC_PROG_CPP
AC_PROG_LIBTOOL
-AC_SEARCH_LIBS([pthread_create],[pthread],, AC_MSG_ERROR("required library 'pthread' is missing"))
+AC_SEARCH_LIBS([pthread_create],[pthread],, AC_MSG_ERROR([required library 'pthread' is missing]))
AC_ARG_ENABLE([release],
[AS_HELP_STRING([--enable-release],
@@ -34,6 +34,12 @@ if test "$use_release" = "yes"; then
BUILD_TYPE="release"
fi
+AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes)
+if test "x$HAVE_PKG_CONFIG" != "xyes" ; then
+ AC_MSG_WARN([pkg-config was not found on your system. external ffmpeg will be disabled])
+ use_external_ffmpeg="no"
+fi
+
OS="unknown"
ARCHITECTURE="unknown"
HOST_INCLUDES=""

0 comments on commit 8fc9b12

Please sign in to comment.