From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hongzhan Chen Subject: [PATCH v5 1/3] build: Add c++ build support Date: Tue, 8 Mar 2022 21:30:18 -0500 Message-Id: <20220309023020.4883-1-hongzhan.chen@intel.com> List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org, jan.kiszka@siemens.com, florian.bezdeka@siemens.com Add c++ build support or use specific c++ compiler Signed-off-by: Hongzhan Chen --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configure.ac b/configure.ac index 0389cf008..16cffd8f8 100644 --- a/configure.ac +++ b/configure.ac @@ -79,6 +79,18 @@ AC_ARG_WITH(cc, ]) AC_PROG_CC +AC_ARG_WITH(cxx, + AS_HELP_STRING([--with-cxx=compiler],[use specific C++ compiler]), + [ + case "$withval" in + "" | y | ye | yes | n | no) + AC_MSG_ERROR([You must supply an argument to --with-cxx]) + ;; + esac + CXX="$withval" + ]) +AC_PROG_CXX + # Do not let autoconf set the default value of CFLAGS if $XENO_EMPTY_CFLAGS; then CFLAGS="" -- 2.17.1