From: Guillem Jover Date: Thu, 8 Oct 2009 11:40:06 +0000 (+0200) Subject: build-sys: detect if const is available X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85b4c147718e0618a0747c8e42c83648350725a0;p=util-linux build-sys: detect if const is available Some systems define __STDC__ and do not have a working const, some do not define the macro but do have a working const. Use AC_C_CONST to check for its presence. Signed-off-by: Guillem Jover --- diff --git a/configure.ac b/configure.ac index 7bf8bcd4..f61102c8 100644 --- a/configure.ac +++ b/configure.ac @@ -70,6 +70,7 @@ AC_SUBST([usrlib_execdir]) AC_PROG_CC_STDC AC_GNU_SOURCE AC_CANONICAL_HOST +AC_C_CONST AC_C_BIGENDIAN dnl libtool-2 diff --git a/fsck/fsck.h b/fsck/fsck.h index 8a0f70e3..45b78446 100644 --- a/fsck/fsck.h +++ b/fsck/fsck.h @@ -8,7 +8,6 @@ #define NOARGS void #else #define NOARGS -#define const #endif #ifdef __GNUC__