diff -u ./lib/replace/libreplace_macros.m4.orig ./lib/replace/libreplace_macros.m4 --- ./lib/replace/libreplace_macros.m4.orig 2010-05-17 06:51:23.000000000 -0500 +++ ./lib/replace/libreplace_macros.m4 2010-05-31 12:02:49.000000000 -0500 @@ -55,6 +55,15 @@ ], [AC_MSG_RESULT(yes); c99_init=yes],[AC_MSG_RESULT(no)]) fi +if test x"$c99_init" = x"no"; then + AC_MSG_CHECKING(for C99 designated initializers with -Wc99lite) + CFLAGS="$saved_CFLAGS -Wc99lite" + AC_TRY_COMPILE([#include ], + [ struct foo {int x;char y;}; + struct foo bar = { .y = 'X', .x = 1 }; + ], + [AC_MSG_RESULT(yes); c99_init=yes],[AC_MSG_RESULT(no)]) +fi if test "`uname`" = "HP-UX"; then if test "$ac_cv_c_compiler_gnu" = no; then