From 5a9e7e66d70b979dbcb3d7f78dc7ae1eae191604 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 29 Jan 2015 10:36:19 +0100 Subject: [PATCH] Add /usr/include for MinGW at the end of the CPPFLAGS. --- configure.ac | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 6edb22499..d165231d7 100644 --- a/configure.ac +++ b/configure.ac @@ -62,9 +62,6 @@ case $target in *mingw*) CFLAGS="$CFLAGS -DORTP_STATIC -D_WIN32_WINNT=0x0501 " CXXFLAGS="$CXXFLAGS -DORTP_STATIC -D_WIN32_WINNT=0x0501" - dnl Workaround for mingw, whose compiler does not check in /usr/include ... - CPPFLAGS="$CPPFLAGS -I/usr/include" - LDFLAGS="$LDFLAGS -L/usr/lib" LIBS="$LIBS -lws2_32" GUI_FLAGS="-mwindows" CONSOLE_FLAGS="-mconsole" @@ -946,6 +943,15 @@ case "$target_os" in ;; esac +case $target in + *mingw*) + dnl Workaround for mingw, whose compiler does not check in /usr/include ... + CPPFLAGS="$CPPFLAGS -I/usr/include" + LDFLAGS="$LDFLAGS -L/usr/lib" + ;; +esac + + dnl ################################################## dnl # Check for doxygen dnl ##################################################