diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2008-10-15 09:59:12 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2008-10-15 09:59:12 +0000 |
commit | 87b8602128817be3ce864b12408ed32669b441bf (patch) | |
tree | e7a262bd042f1832f1c2122f8b29f2c77c573823 | |
parent | 8e33548633d59f7b9c49b39dda5a48aa64d5496b (diff) |
do complete version check for SpanDSP, since the app_fax code is not compatible with 0.0.6 yet
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@149426 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | configure | 23 | ||||
-rw-r--r-- | configure.ac | 5 |
2 files changed, 20 insertions, 8 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac Revision: 147306 . +# From configure.ac Revision: 147807 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61 for asterisk 1.6. # @@ -205,7 +205,7 @@ if as_func_ret_failure; then echo as_func_ret_failure succeeded. fi -if (set x; as_func_ret_success y && test x = \"\$1\" ); then +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 @@ -409,7 +409,7 @@ if as_func_ret_failure; then echo as_func_ret_failure succeeded. fi -if (set x; as_func_ret_success y && test x = \"\$1\" ); then +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 @@ -6586,7 +6586,7 @@ else GNU_MAKE_VERSION_MINOR=0 ; for a in make gmake gnumake ; do if test -z "$a" ; then continue ; fi ; - if (sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then + if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then GNU_MAKE=$a ; GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'` GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2` @@ -39971,19 +39971,25 @@ fi if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then - if test "xminimum version of SpanDSP" != "x"; then - { echo "$as_me:$LINENO: checking for minimum version of SpanDSP" >&5 -echo $ECHO_N "checking for minimum version of SpanDSP... $ECHO_C" >&6; } + if test "xcompatible version of SpanDSP" != "x"; then + { echo "$as_me:$LINENO: checking for compatible version of SpanDSP" >&5 +echo $ECHO_N "checking for compatible version of SpanDSP... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking if \" #if SPANDSP_RELEASE_DATE < 20080516 #error \"spandsp 0.0.5 or greater is required\" #endif + #if SPANDSP_RELEASE_DATE >= 20081012 + #error \"spandsp 0.0.6 or greater is not supported; use 0.0.5\" + #endif \" compiles using spandsp/version.h" >&5 echo $ECHO_N "checking if \" #if SPANDSP_RELEASE_DATE < 20080516 #error \"spandsp 0.0.5 or greater is required\" #endif + #if SPANDSP_RELEASE_DATE >= 20081012 + #error \"spandsp 0.0.6 or greater is not supported; use 0.0.5\" + #endif \" compiles using spandsp/version.h... $ECHO_C" >&6; } fi saved_cppflags="${CPPFLAGS}" @@ -40006,6 +40012,9 @@ main () #if SPANDSP_RELEASE_DATE < 20080516 #error "spandsp 0.0.5 or greater is required" #endif + #if SPANDSP_RELEASE_DATE >= 20081012 + #error "spandsp 0.0.6 or greater is not supported; use 0.0.5" + #endif ; ; diff --git a/configure.ac b/configure.ac index 30bcd9db2..ad44318bd 100644 --- a/configure.ac +++ b/configure.ac @@ -1350,7 +1350,10 @@ AST_C_COMPILE_CHECK([SPANDSP], [ #if SPANDSP_RELEASE_DATE < 20080516 #error "spandsp 0.0.5 or greater is required" #endif - ], [spandsp/version.h], , [minimum version of SpanDSP]) + #if SPANDSP_RELEASE_DATE >= 20081012 + #error "spandsp 0.0.6 or greater is not supported; use 0.0.5" + #endif + ], [spandsp/version.h], , [compatible version of SpanDSP]) if test "x${PBX_SPANDSP}" = "x1" ; then # We found the correct version in the header, now let's make sure it links |