mirror of
https://github.com/transmission/transmission
synced 2024-12-27 18:18:10 +00:00
parent
357cccb9cf
commit
b21a6140e9
1 changed files with 3 additions and 5 deletions
|
@ -390,14 +390,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 MINIUPNPC_API_VERSION and we won't have to figure
|
||||||
dnl it out on our own
|
dnl it out on our own
|
||||||
if test "x$upnp_version" = "xunknown" ; then
|
if test "x$upnp_version" = "xunknown" ; then
|
||||||
AC_RUN_IFELSE(
|
AC_COMPILE_IFELSE(
|
||||||
[AC_LANG_PROGRAM(
|
[AC_LANG_PROGRAM(
|
||||||
[#include <stdlib.h>
|
[#include <stdlib.h>
|
||||||
#include <miniupnpc/miniupnpc.h>],
|
#include <miniupnpc/miniupnpc.h>],
|
||||||
[#ifdef MINIUPNPC_API_VERSION
|
[#ifndef MINIUPNPC_API_VERSION
|
||||||
return EXIT_SUCCESS;
|
#error MINIUPNPC_API_VERSION undefined
|
||||||
#else
|
|
||||||
return EXIT_FAILURE;
|
|
||||||
#endif]
|
#endif]
|
||||||
)],
|
)],
|
||||||
[upnp_version=">= 1.7"]
|
[upnp_version=">= 1.7"]
|
||||||
|
|
Loading…
Reference in a new issue