1*600f14f4SXin Lidnl @synopsis XIPH_GCC_VERSION 2*600f14f4SXin Lidnl 3*600f14f4SXin Lidnl Find the version of gcc. 4*600f14f4SXin Lidnl @version 1.0 Nov 05 2007 5*600f14f4SXin Lidnl @version 1.1 Mar 10 2013 6*600f14f4SXin Lidnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com> 7*600f14f4SXin Lidnl 8*600f14f4SXin Lidnl Permission to use, copy, modify, distribute, and sell this file for any 9*600f14f4SXin Lidnl purpose is hereby granted without fee, provided that the above copyright 10*600f14f4SXin Lidnl and this permission notice appear in all copies. No representations are 11*600f14f4SXin Lidnl made about the suitability of this software for any purpose. It is 12*600f14f4SXin Lidnl provided "as is" without express or implied warranty. 13*600f14f4SXin Lidnl 14*600f14f4SXin Li 15*600f14f4SXin LiAC_DEFUN([XIPH_GCC_VERSION], 16*600f14f4SXin Li[ 17*600f14f4SXin Liif test "x$ac_cv_c_compiler_gnu" = "xyes" ; then 18*600f14f4SXin Li 19*600f14f4SXin Li AC_MSG_CHECKING([for version of $CC]) 20*600f14f4SXin Li GCC_VERSION=`$CC -dumpversion` 21*600f14f4SXin Li AC_MSG_RESULT($GCC_VERSION) 22*600f14f4SXin Li 23*600f14f4SXin Li GCC_MAJOR_VERSION=`echo $GCC_VERSION | cut -d. -f 1` 24*600f14f4SXin Li GCC_MINOR_VERSION=`echo $GCC_VERSION | cut -d. -f 2` 25*600f14f4SXin Lielse 26*600f14f4SXin Li GCC_MAJOR_VERSION=0 27*600f14f4SXin Li GCC_MINOR_VERSION=0 28*600f14f4SXin Li fi 29*600f14f4SXin Li 30*600f14f4SXin LiAC_SUBST(GCC_VERSION) 31*600f14f4SXin LiAC_SUBST(GCC_MAJOR_VERSION) 32*600f14f4SXin LiAC_SUBST(GCC_MINOR_VERSION) 33*600f14f4SXin Li 34*600f14f4SXin Li])# XIPH_GCC_VERSION 35