Changeset 440 for trunk/aclocal.m4


Ignore:
Timestamp:
Aug 30, 2013, 9:36:58 PM (11 years ago)
Author:
katerina
Message:

Fix for ticket #344 (Problems with Ubuntu 13.04)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/aclocal.m4

    r415 r440  
    21162116])])
    21172117
    2118 
     2118AC_DEFUN([SH_GCC_VERSION], [
     2119  GCC_VERSION=""
     2120  gcc_VERSION_MAJOR=0
     2121  gcc_VERSION_MINOR=0
     2122  AC_MSG_CHECKING([for gcc version])
     2123  if test "x$GCC" = "xyes"
     2124  then
     2125        $CC -dumpversion >/dev/null 2>&1
     2126        if test $? -eq 0
     2127        then
     2128                GCC_VERSION=`$CC -dumpversion`
     2129                gcc_VERSION_MAJOR=`echo $GCC_VERSION | cut -d'.' -f1`
     2130                gcc_VERSION_MINOR=`echo $GCC_VERSION | cut -d'.' -f2`
     2131                AC_DEFINE_UNQUOTED(GCC_VERSION_MAJOR, [${gcc_VERSION_MAJOR}], [gcc version major])
     2132                AC_DEFINE_UNQUOTED(GCC_VERSION_MINOR, [${gcc_VERSION_MINOR}], [gcc version minor])
     2133                AC_MSG_RESULT([$GCC_VERSION])
     2134        else
     2135                AC_MSG_RESULT([$CC -dumpversion working])
     2136        fi
     2137  else
     2138        AC_MSG_RESULT([compiler is not gcc])
     2139  fi
     2140])
    21192141
    21202142
Note: See TracChangeset for help on using the changeset viewer.