From 4fdfc6e4dc455167fd174950a0f240bb521dac05 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 6 Jan 2011 12:02:40 +0000 Subject: [PATCH] - add -std=c99 to CFLAGS if compiler is gcc - bugfix in AIX test --- configure.ac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 6a0c1c1..b04f6c7 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ # Every configure script must call AC_INIT before doing anything else. # AC_INIT (package, version, [bug-report], [tarname]) -AC_INIT([H5hut], [1.99.0], [h5part@lists.psi.ch], H5hut) +AC_INIT([H5hut], [1.99.1], [h5part@lists.psi.ch], H5hut) # Ensure that a recent enough version of Autoconf is being used. @@ -121,7 +121,7 @@ AC_CANONICAL_HOST uname=`uname -s` -if test $uname = "AIX"; then +if test "x$uname" = "xAIX"; then AC_MSG_CHECKING([if system is AIX]) AC_MSG_RESULT([OK]) @@ -153,6 +153,9 @@ AC_PROG_CXX(pgCC pathCC icc cc_r g++ gcc cc) # Otherwise, set INSTALL to `dir/install-sh -c` AC_PROG_INSTALL +if test "x$CC" = "xgcc"; then + CFLAGS="$CFLAGS -std=c99" +fi # AM_INIT_AUTOMAKE is required to use autoconf with automake AM_INIT_AUTOMAKE()