testsuite: i386 regression for funcargs.exp
[deliverable/binutils-gdb.git] / gdb / build-with-cxx.m4
CommitLineData
618f726f 1dnl Copyright (C) 2014-2016 Free Software Foundation, Inc.
3bc3d82a
PA
2dnl
3dnl This file is part of GDB.
4dnl
5dnl This program is free software; you can redistribute it and/or modify
6dnl it under the terms of the GNU General Public License as published by
7dnl the Free Software Foundation; either version 3 of the License, or
8dnl (at your option) any later version.
9dnl
10dnl This program is distributed in the hope that it will be useful,
11dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13dnl GNU General Public License for more details.
14dnl
15dnl You should have received a copy of the GNU General Public License
16dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18dnl GDB_AC_BUILD_WITH_CXX()
19dnl Provide an --enable-build-with-cxx/--disable-build-with-cxx set of options
20dnl allowing a user to build with a C++ compiler.
21
22AC_DEFUN([GDB_AC_BUILD_WITH_CXX],
23[
24 AC_ARG_ENABLE(build-with-cxx,
25 AS_HELP_STRING([--enable-build-with-cxx], [build with C++ compiler instead of C compiler]),
26 [case $enableval in
27 yes | no)
28 ;;
29 *)
30 AC_MSG_ERROR([bad value $enableval for --enable-build-with-cxx]) ;;
31 esac],
32 [enable_build_with_cxx=no])
33
34 if test "$enable_build_with_cxx" = "yes"; then
dad44a1f 35 COMPILER='$(CXX)'
3bc3d82a
PA
36 else
37 COMPILER='$(CC)'
38 fi
39 AC_SUBST(COMPILER)
40])
This page took 0.085547 seconds and 4 git commands to generate.