[asterisk-commits] qwell: branch 1.4 r180941 - in /branches/1.4: ./ autoconf/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 10 17:02:21 CDT 2009


Author: qwell
Date: Tue Mar 10 17:02:18 2009
New Revision: 180941

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=180941
Log:
Make things happier when using autoconf 2.62+

Modified:
    branches/1.4/autoconf/ast_check_gnu_make.m4
    branches/1.4/autoconf/ast_prog_sed.m4
    branches/1.4/configure
    branches/1.4/configure.ac

Modified: branches/1.4/autoconf/ast_check_gnu_make.m4
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/autoconf/ast_check_gnu_make.m4?view=diff&rev=180941&r1=180940&r2=180941
==============================================================================
--- branches/1.4/autoconf/ast_check_gnu_make.m4 (original)
+++ branches/1.4/autoconf/ast_check_gnu_make.m4 Tue Mar 10 17:02:18 2009
@@ -1,20 +1,20 @@
-AC_DEFUN([AST_CHECK_GNU_MAKE], [AC_CACHE_CHECK(for GNU make, GNU_MAKE,
-   GNU_MAKE='Not Found' ;
-   GNU_MAKE_VERSION_MAJOR=0 ;
-   GNU_MAKE_VERSION_MINOR=0 ;
+AC_DEFUN([AST_CHECK_GNU_MAKE], [AC_CACHE_CHECK([for GNU make], [ac_cv_GNU_MAKE],
+   ac_cv_GNU_MAKE='Not Found' ;
+   ac_cv_GNU_MAKE_VERSION_MAJOR=0 ;
+   ac_cv_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
-         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`
+         ac_cv_GNU_MAKE=$a ;
+         ac_cv_GNU_MAKE_VERSION_MAJOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
+         ac_cv_GNU_MAKE_VERSION_MINOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
          break;
       fi
    done ;
 ) ;
-if test  "x$GNU_MAKE" = "xNot Found"  ; then
+if test  "x$ac_cv_GNU_MAKE" = "xNot Found"  ; then
    AC_MSG_ERROR( *** Please install GNU make.  It is required to build Asterisk!)
    exit 1
 fi
-AC_SUBST([GNU_MAKE])
+AC_SUBST([GNU_MAKE], [$ac_cv_GNU_MAKE])
 ])

Modified: branches/1.4/autoconf/ast_prog_sed.m4
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/autoconf/ast_prog_sed.m4?view=diff&rev=180941&r1=180940&r2=180941
==============================================================================
--- branches/1.4/autoconf/ast_prog_sed.m4 (original)
+++ branches/1.4/autoconf/ast_prog_sed.m4 Tue Mar 10 17:02:18 2009
@@ -12,8 +12,7 @@
      done
      echo "$ac_script" | sed 99q >conftest.sed
      $as_unset ac_script || ac_script=
-     ifdef([_AC_PATH_PROGS_FEATURE_CHECK],[],[define([_AC_PATH_PROGS_FEATURE_CHECK],defn([_AC_PATH_PROG_FEATURE_CHECK]))])
-     _AC_PATH_PROGS_FEATURE_CHECK(SED, [sed gsed],
+     ifdef([_AC_PATH_PROGS_FEATURE_CHECK], [_AC_PATH_PROGS_FEATURE_CHECK], [_AC_PATH_PROG_FEATURE_CHECK])(SED, [sed gsed],
 	[_AC_FEATURE_CHECK_LENGTH([ac_path_SED], [ac_cv_path_SED],
 		["$ac_path_SED" -f conftest.sed])])])
  SED="$ac_cv_path_SED"

Modified: branches/1.4/configure.ac
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/configure.ac?view=diff&rev=180941&r1=180940&r2=180941
==============================================================================
--- branches/1.4/configure.ac (original)
+++ branches/1.4/configure.ac Tue Mar 10 17:02:18 2009
@@ -17,7 +17,6 @@
 AC_COPYRIGHT("Asterisk")
 AC_REVISION($Revision$)
 
-AC_GNU_SOURCE
 AC_USE_SYSTEM_EXTENSIONS	# note- does not work on FreeBSD
 
 case "${host_os}" in




More information about the asterisk-commits mailing list