aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.ac
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-03-18 22:56:34 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2013-03-18 22:56:34 +0100
commitace94503b4572d854ae326273a3ecdc37d978400 (patch)
tree615d475dc268323a40eab8849a21445a0f08eddb /configure.ac
parent2af7a570fb52a2e8aff02f3a2f39b38dd096d373 (diff)
downloadsciteco-ace94503b4572d854ae326273a3ecdc37d978400.tar.gz
add check for CLang: use clang-specific warnings only when compiling with CLang
* fixes gcc-4.4 which does not have -Wno-mismatched-tags and no -Wunknown-warning
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3cd4e0b..2e56b74 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,8 +24,11 @@ LT_INIT
AC_PROG_CXX
AC_PROG_CC
AC_PROG_CC_C99
+AC_PROG_GREP
AC_PROG_INSTALL
+AM_CONDITIONAL(CLANG, [$CXX --version | $GREP clang >/dev/null])
+
AC_CHECK_PROG(DATE, date, date)
if [[ x$DATE = x ]]; then
AC_MSG_ERROR([Required tool date not found!])