aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-17 01:49:26 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-17 01:49:26 +0000
commit7e662cf783c5d1f1e4e2e5a92516c2ce37ba1168 (patch)
tree49cd37c1852af9c598c40eb2816646efaf839d2b /acinclude.m4
parent5a50119d9d5e728e123453c408b032c1ec7f7a7e (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: http://svn.digium.com/svn/asterisk/trunk@89351 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m417
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' ;