diff options
author | Luigi Rizzo <rizzo@icir.org> | 2007-11-17 01:49:26 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2007-11-17 01:49:26 +0000 |
commit | 732c1d30c3cf2b4c9745810bdc35403d4099ca65 (patch) | |
tree | 49cd37c1852af9c598c40eb2816646efaf839d2b /acinclude.m4 | |
parent | d209cb090e23d03c88bdb3ad95061d6abbabc0d2 (diff) |
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
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index ca589d312..6fc394a7e 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -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' ; |