$ git clone http://tcclient.ion.nu/tc_client.git
commit 63eaddb60f2dd1b9f344429b6599479a6f4372ed
Author: Alicia <...>
Date: Fri Dec 2 22:53:29 2016 +0100
configure: skip looking for libraries used for the GUI applications when building on msys.
diff --git a/ChangeLog b/ChangeLog
index eba3d59..7c82a54 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,7 @@ tc_client-gtk: build fixes for windows.
dist/appimage.sh: fix audio in appimages by building ffmpeg with support for nellymoser and speex, and depending on the system's libao and libpulse instead of including it in the appimage.
libcamera(escapi): handle failure to open camera more gracefully.
irchack: pass along "<user> cammed up" notifications.
+configure: skip looking for libraries used for the GUI applications when building on msys.
0.40:
Moved the backward compatibility code for avcodec_{send,receive}_{frame,packet} into a separate source file to avoid pulling libavcodec into utilities that don't use it.
Improved the RTMP acknowledgement code: counting the format 3 headers which were previously skipped, setting a more reasonable acknowledgement interval at startup and giving the server some margin before dropping outgoing video packets.
diff --git a/configure b/configure
index 7616e16..5f7982c 100755
--- a/configure
+++ b/configure
@@ -94,6 +94,8 @@ if ! testbuild 'dprintf' 'dprintf(1,"test");' 'stdio.h'; then
echo '#define NO_DPRINTF 1' >> config.h
fi
+if ! uname -s | grep -q MSYS; then # Skip all the GUI stuff when building on msys
+
if ! testpkgconfig 'gtk+-3.0' GTK; then
testpkgconfig 'gtk+-2.0' GTK
fi
@@ -212,6 +214,12 @@ if "$haveresample"; then
testpkgconfig ao AO
fi
+testpkgconfig libv4l2 LIBV4L2
+testpkgconfig x11 LIBX11
+testpkgconfig libpulse-simple PULSE
+
+fi # Skip all the GUI stuff when building on msys
+
printf 'Checking for ncurses... '
notfound=true
for version in 7 6 5 4; do
@@ -259,10 +267,6 @@ else
fi
rm -f polltest.c polltest
-testpkgconfig libv4l2 LIBV4L2
-testpkgconfig x11 LIBX11
-testpkgconfig libpulse-simple PULSE
-
# TODO: handle crosscompiling better
printf 'Checking if endianness macros work... '
echo '#include <stdio.h>' > endiantest.c