From 8729af342f42a68893ac473841373002e2a06e9d Mon Sep 17 00:00:00 2001 From: Julien Date: Thu, 16 Jun 2011 11:57:06 -0400 Subject: CONFIGURE: Disable check for unity when compiling with mingw (pkg-config is not available) --- configure | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'configure') diff --git a/configure b/configure index ef13e0d14f..3f3eeb852a 100755 --- a/configure +++ b/configure @@ -2943,18 +2943,26 @@ if test "$_unix" = no || test "$_taskbar" = no; then _libunity=no else if test "$_libunity" = auto ; then - # Unity has a lots of dependencies, update the libs and cflags var with them - LIBUNITY_LIBS="$LIBUNITY_LIBS $(pkg-config --libs unity)" - LIBUNITY_CFLAGS="$LIBUNITY_CFLAGS $(pkg-config --cflags unity)" - _libunity=no - cat > $TMPC << EOF + case $_host_os in + mingw*) + # pkgconfig and unity are not supported on mingw + _libunity=no + ;; + *) + # Unity has a lots of dependencies, update the libs and cflags var with them + LIBUNITY_LIBS="$LIBUNITY_LIBS $(pkg-config --libs unity)" + LIBUNITY_CFLAGS="$LIBUNITY_CFLAGS $(pkg-config --cflags unity)" + _libunity=no + cat > $TMPC << EOF #include int main(void) { unity_launcher_entry_get_for_desktop_id("scummvm.desktop"); return 0; } EOF - cc_check $LIBUNITY_CFLAGS $LIBUNITY_LIBS -lunity && _libunity=yes + cc_check $LIBUNITY_CFLAGS $LIBUNITY_LIBS -lunity && _libunity=yes + ;; + esac fi if test "$_libunity" = yes ; then LIBS="$LIBS $LIBUNITY_LIBS -lunity" -- cgit v1.2.3