Permalink
Browse files

* Added custom macros for pkg-config binary and modules detection.

* Use those macros in most bindings..
  • Loading branch information...
1 parent 25f8401 commit d892d5460956900855693b6516881b72d81871da @toots toots committed Sep 22, 2011
Showing with 1 addition and 17 deletions.
  1. +1 −17 configure.ac
View
@@ -19,23 +19,7 @@ AC_PROG_CC()
AC_CHECK_TOOL([AR],[ar],no)
AC_SUBST(AR)
PKG_PROG_PKG_CONFIG()
-#PKG_CHECK_MODULES(voaacenc, voaacenc, , [AC_MSG_ERROR(voaacenc not found.)])
-
-AC_DEFUN([REQ_VERSION],[0.1.0])
-AC_MSG_CHECKING([for libvoaacenc >= REQ_VERSION()])
-# PKG_CHECK_MODULES loses when you need --libs-only-[lL]
-if ! $PKG_CONFIG --exists vo-aacenc; then
- AC_MSG_ERROR([vo-aacenc not found])
-fi
-# We need at least version REQ_VERSION
-if ! $PKG_CONFIG --atleast-version=[]REQ_VERSION vo-aacenc; then
- AC_DEFUN([FOUND_VERSION],[`pkg-config --modversion vo-aacenc`])
- AC_MSG_ERROR([requires version >= REQ_VERSION(), found FOUND_VERSION()])
-fi
-AC_MSG_RESULT([ok])
-CFLAGS="$CFLAGS `$PKG_CONFIG --cflags vo-aacenc`"
-LIBS="$LIBS `$PKG_CONFIG --libs-only-l vo-aacenc`"
-LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs-only-L vo-aacenc`"
+PKG_CONFIG_CHECK_MODULE([vo-aacenc],[0.1.0])
# substitutions to perform
AC_SUBST(VERSION)

0 comments on commit d892d54

Please sign in to comment.