From 8088815922a1c8fb185f4e4a7b57ddaf0f13f340 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 18 Oct 2007 18:15:18 -0700 Subject: [PATCH] configure: Undefine __STRICT_ANSI__ for mingw's benefit mingw makes a bunch of prototypes unavailable if __STRICT_ANSI__ is defined. However, they are still detected by configure, which causes us pain. --- configure.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.in b/configure.in index 93759fd8..8cbde3ca 100644 --- a/configure.in +++ b/configure.in @@ -67,6 +67,9 @@ PA_ADD_CFLAGS([-W]) PA_ADD_CFLAGS([-Wall]) PA_ADD_CFLAGS([-std=c99]) PA_ADD_CFLAGS([-pedantic]) +dnl mingw disables a bunch of features if __STRICT_ANSI__ is defined, +dnl and -std=c99 defines __STRICT_ANSI__ +PA_ADD_CFLAGS([-U__STRICT_ANSI__]) dnl Look for "nroff" or "groff" AC_CHECK_PROGS(NROFF, nroff, echo)