diff --git a/configure.ac b/configure.ac index 3e49527..c350673 100644 --- a/configure.ac +++ b/configure.ac @@ -650,7 +650,7 @@ case "${canonical}" in i[3456]86-*-* ) case "${canonical}" in *-darwin* ) opsys=darwin ;; - *-mingw32 ) + *-mingw* ) opsys=mingw32 # MinGW overrides and adds some system headers in nt/inc. GCC_TEST_OPTIONS="-I $srcdir/nt/inc" @@ -665,7 +665,7 @@ case "${canonical}" in # MinGW64 x86_64-*-* ) case "${canonical}" in - *-mingw32 ) + *-mingw* ) opsys=mingw32 # MinGW overrides and adds some system headers in nt/inc. GCC_TEST_OPTIONS="-I $srcdir/nt/inc" @@ -1323,7 +1323,7 @@ test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \ C_SWITCH_SYSTEM="-ma -qmaxmem=4000" if test "$opsys" = "mingw32"; then case "$canonical" in - x86_64-*-mingw32) C_SWITCH_SYSTEM="-mtune=generic" ;; + x86_64-*-mingw*) C_SWITCH_SYSTEM="-mtune=generic" ;; *) C_SWITCH_SYSTEM="-mtune=pentium4" ;; esac fi @@ -3066,11 +3066,13 @@ fi ### run time). if test "${opsys}" = "mingw32"; then if test "${with_xpm}" != "no"; then + CPPFLAGS="$CPPFLAGS -I/mingw64/include/noX" AC_CHECK_HEADER(X11/xpm.h, HAVE_XPM=yes, HAVE_XPM=no, [ #define FOR_MSW 1]) fi if test "${HAVE_XPM}" = "yes"; then + REAL_CPPFLAGS="$REAL_CPPFLAGS -I/mingw64/include/noX" AC_DEFINE(HAVE_XPM, 1, [Define to 1 if you have the Xpm library (-lXpm).]) fi fi