- add -std=c99 to CFLAGS if compiler is gcc

- bugfix in AIX test
This commit is contained in:
2011-01-06 12:02:40 +00:00
parent 27c19efe59
commit 4fdfc6e4dc
+5 -2
View File
@@ -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()