diff options
author | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2010-08-09 08:50:33 +0200 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2010-08-10 08:25:29 +0200 |
commit | e5d0069c8f2b047b062df03052b7a997ab30c3ca (patch) | |
tree | c83abf5be73a5cbaa1304eb3761ccb2d595a030c | |
parent | aec82e2edd6344310958e9b038a4bb17bcbba5b7 (diff) |
Avoid -Werror problems on cygwin.
-rw-r--r-- | configure.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 5a386413..733fe58d 100644 --- a/configure.in +++ b/configure.in @@ -72,6 +72,7 @@ AC_PROG_MKDIR_P # Set some internal variables depending on the platform for later use. dbus_win=no +dbus_cygwin=no dbus_unix=no case "${host}" in *-mingw32ce*) @@ -81,6 +82,10 @@ case "${host}" in *-mingw32*) dbus_win=yes ;; + *-cygwin*) + dbus_cygwin=yes + dbus_unix=yes + ;; *) dbus_unix=yes ;; @@ -1084,7 +1089,7 @@ ld_supports_flag() { } # Don't bother with -Werror on Windows for now, too many warnings -if test x$dbus_win != xyes -a x$USE_MAINTAINER_MODE = xyes; then +if test x$dbus_win != xyes -a x$dbus_cygwin != xyes -a x$USE_MAINTAINER_MODE = xyes; then if cc_supports_flag "-Werror"; then CFLAGS="$CFLAGS -Werror" fi |