]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Fix non-Windows compilation. I hate autoconf.
authorDavid Woodhouse <dwmw2@infradead.org>
Sat, 27 Mar 2021 10:31:55 +0000 (10:31 +0000)
committerDavid Woodhouse <dwmw2@infradead.org>
Sat, 27 Mar 2021 10:31:55 +0000 (10:31 +0000)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
configure.ac

index b741b3a666166b48c3250eaf1eef04bcad4f21d4..8dc46994590d3a74cc15162337ad053e85bc63bb 100644 (file)
@@ -27,6 +27,11 @@ symver_asprintf=
 symver_vasprintf=
 symver_win32_strerror=
 
+# Autoconf is stupid and if the first time it needs to find the C compiler
+# is conditional (as it is here for some of the MinGW checks), it forgets
+# to ever look for one in the other code paths. Do it explicitly here.
+AC_PROG_CC
+
 case $host_os in
  *linux* | *gnu* | *nacl*)
     AC_MSG_NOTICE([Applying feature macros for GNU build])