summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-04-11 13:46:21 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-04-11 13:46:21 +0200
commitc590b099e14273535afbe66eb450bb5c2bdf85d6 (patch)
tree493a35e7fda212a4d0c1c5f1dff564417913577a /configure.ac
parent1f42c92ca563b598d2df84834a4a7839e65cfd34 (diff)
configure.ac: use g++ when checking additional CXXFLAGS
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 7695708..4604769 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,8 +3,9 @@
AC_PREREQ([2.59])
AC_INIT([testdisk],[7.0-WIP],[grenier@cgsecurity.org])
+AC_LANG(C)
sinclude(acx_pthread.m4)
-TESTDISKDATE="October 2014"
+TESTDISKDATE="April 2015"
AC_SUBST(TESTDISKDATE)
AC_DEFINE_UNQUOTED([TESTDISKDATE],"$TESTDISKDATE",[Date of release])
AC_CONFIG_AUX_DIR(config)
@@ -787,6 +788,7 @@ do
done
unset option
+AC_LANG_PUSH([C++])
for option in -Wall -MD -Wpointer-arith -Wmissing-declarations -Wshadow -Wwrite-strings -W -Wcast-align -Wcast-qual -Wundef -Wredundant-decls -Wsign-compare -Winline -Wdisabled-optimization -Wmissing-format-attribute -Wmultichar -Wformat=2
do
SAVE_CXXFLAGS="$CXXFLAGS"
@@ -800,6 +802,7 @@ do
unset SAVE_CXXFLAGS
done
unset option
+AC_LANG_POP([C++])
#if defined __GNUC__ && !defined _FORTIFY_SOURCE
AC_DEFINE([_FORTIFY_SOURCE], 2, [enable compile-time and run-time bounds-checking, and some warnings])