acinclude.m4: add a function to help checking sdl-config, gtk-config

and the like (this could be used for gtk and gtk2 as well)
Other files: add tests for sdl, sdl_image and avcodec and regenerate
	configure and autoconfig.h.in



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Luigi Rizzo
2007-11-17 01:49:26 +00:00
parent d209cb090e
commit 732c1d30c3
5 changed files with 1171 additions and 20 deletions

View File

@@ -152,6 +152,23 @@ fi
])
# check for a tool using xxx-config
# AST_EXT_TOOL_CHECK([package symbol name], [package library name], [symbol], [version])
AC_DEFUN([AST_EXT_TOOL_CHECK],
[
PBX_$1=0
AC_CHECK_TOOL(CONFIG_$1, $2-config, No)
if test ! "x${CONFIG_$1}" = xNo; then
$1_INCLUDE=$(${CONFIG_$1} --cflags $3)
$1_LIB=$(${CONFIG_$1} --libs $3)
PBX_$1=1
AC_DEFINE([HAVE_$1], 1, [Define if your system has the $1 libraries.])
fi
AC_SUBST(PBX_$1)
AC_SUBST($1_INCLUDE)
AC_SUBST($1_LIB)
])
AC_DEFUN(
[AST_CHECK_GNU_MAKE], [AC_CACHE_CHECK(for GNU make, GNU_MAKE,
GNU_MAKE='Not Found' ;