]> granicus.if.org Git - transmission/commitdiff
Fix FTCBFS due to AC_RUN_IFELSE (patch by Helmut Grohne)
authorMike Gelfand <mikedld@mikedld.com>
Fri, 26 Jan 2018 05:31:16 +0000 (08:31 +0300)
committerMike Gelfand <mikedld@mikedld.com>
Fri, 26 Jan 2018 05:31:16 +0000 (08:31 +0300)
Fixes: #475
configure.ac

index 086e0fba0f82528d915ca970c30f7e77ee594ecb..0d3b7897fd259e5664ee9d124de93bc5943c94c0 100644 (file)
@@ -394,14 +394,12 @@ dnl Let's hope it's 1.7 or higher, since it provides
 dnl MINIUPNPC_API_VERSION and we won't have to figure
 dnl it out on our own
 if test "x$upnp_version" = "xunknown" ; then
-  AC_RUN_IFELSE(
+  AC_COMPILE_IFELSE(
     [AC_LANG_PROGRAM(
       [#include <stdlib.h>
        #include <miniupnpc/miniupnpc.h>],
-      [#ifdef MINIUPNPC_API_VERSION
-       return EXIT_SUCCESS;
-       #else
-       return EXIT_FAILURE;
+      [#ifndef MINIUPNPC_API_VERSION
+       #error MINIUPNPC_API_VERSION undefined
        #endif]
     )],
     [upnp_version=">= 1.7"]