octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Requiring C++11 in configure.ac


From: Mike Miller
Subject: Re: Requiring C++11 in configure.ac
Date: Tue, 20 Jun 2017 10:20:10 -0700
User-agent: NeoMutt/20170306 (1.8.0)

On Tue, Jun 20, 2017 at 09:14:01 -0700, Rik wrote:
> We now require C++11 to build Octave, but is there a test for that in
> configure.ac?

The configure script has tests for C++11 features and adds the options
to the compiler command line if needed to enable those, but there is no
error if those tests fail, it just falls back to whatever flavor of C++
the compiler handles by default.

There are variables we could use, for example

  if test x"$ac_prog_cxx_stdcxx" != xcxx11; then
    AC_MSG_ERROR([a C++11 compiler is required to build Octave])
  fi

This will probably change in the future if/when Autoconf decides to add
feature tests for C++14 or C++17.

-- 
mike



reply via email to

[Prev in Thread] Current Thread [Next in Thread]