Mercurial > hg > sv-dependency-builds
annotate src/libsndfile-1.0.27/M4/gcc_version.m4 @ 168:ceec0dd9ec9c
Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Fri, 07 Feb 2020 11:51:13 +0000 |
parents | cd6cdf86811e |
children |
rev | line source |
---|---|
cannam@125 | 1 dnl @synopsis MN_GCC_VERSION |
cannam@125 | 2 dnl |
cannam@125 | 3 dnl Find the version of gcc. |
cannam@125 | 4 dnl @version 1.0 Nov 05 2007 |
cannam@125 | 5 dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com> |
cannam@125 | 6 dnl |
cannam@125 | 7 dnl Permission to use, copy, modify, distribute, and sell this file for any |
cannam@125 | 8 dnl purpose is hereby granted without fee, provided that the above copyright |
cannam@125 | 9 dnl and this permission notice appear in all copies. No representations are |
cannam@125 | 10 dnl made about the suitability of this software for any purpose. It is |
cannam@125 | 11 dnl provided "as is" without express or implied warranty. |
cannam@125 | 12 dnl |
cannam@125 | 13 |
cannam@125 | 14 AC_DEFUN([MN_GCC_VERSION], |
cannam@125 | 15 [ |
cannam@125 | 16 if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then |
cannam@125 | 17 |
cannam@125 | 18 AC_MSG_CHECKING([for version of $CC]) |
cannam@125 | 19 GCC_VERSION=`$CC -dumpversion` |
cannam@125 | 20 AC_MSG_RESULT($GCC_VERSION) |
cannam@125 | 21 |
cannam@125 | 22 changequote(,)dnl |
cannam@125 | 23 GCC_MAJOR_VERSION=`echo $GCC_VERSION | sed "s/\..*//"` |
cannam@125 | 24 GCC_MINOR_VERSION=`echo $GCC_VERSION | sed "s/$GCC_MAJOR_VERSION\.//" | sed "s/\..*//"` |
cannam@125 | 25 changequote([,])dnl |
cannam@125 | 26 fi |
cannam@125 | 27 |
cannam@125 | 28 AC_SUBST(GCC_VERSION) |
cannam@125 | 29 AC_SUBST(GCC_MAJOR_VERSION) |
cannam@125 | 30 AC_SUBST(GCC_MINOR_VERSION) |
cannam@125 | 31 |
cannam@125 | 32 ])# MN_GCC_VERSION |
cannam@125 | 33 |