]> git.lyx.org Git - lyx.git/commitdiff
Get full version of gcc
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 12 Jun 2019 18:17:55 +0000 (20:17 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 12 Jun 2019 18:35:11 +0000 (20:35 +0200)
Recent gcc versions return a short version with -dumpversion, e.g. 9.

In this case, use -dumpfullversion, which gives something like 9.1.0.

This makes the gcc 9 detection work properly.

config/lyxinclude.m4

index f77e3480f623d5db9fd451644f18a7d1f5a86654..9fe42e884747490912f170b7145d670a4feade83 100644 (file)
@@ -381,6 +381,10 @@ if test x$GXX = xyes; then
   if test x$CLANG = xno; then
     dnl Useful for global version info
     gxx_version=`${CXX} -dumpversion`
+    case $gxx_version in
+       *.*) ;;
+       *) gxx_version=`${CXX} -dumpfullversion` ;;
+    esac
     CXX_VERSION="($gxx_version)"
   else
     gxx_version=clang-$clang_version