nat-pmp: use same rule for define and conditional

If we add the define, we must also build the file.

Change-Id: Id336770ed7f7df02e26074b01aed25bad75f9288
This commit is contained in:
Adrien Beraud
2023-03-05 11:08:35 -05:00
committed by Sébastien Blin
parent 5eb9247b91
commit a9b373ae39

View File

@ -621,7 +621,7 @@ AS_IF([test "x$with_natpmp" != xno],
AC_DEFINE_UNQUOTED([HAVE_LIBNATPMP],
`if test "x$with_natpmp" != xno; then echo 1; else echo 0; fi`,
[Define if you have libnatpmp])
AM_CONDITIONAL([BUILD_NATPMP], test "x$with_natpmp" = "xyes")
AM_CONDITIONAL([BUILD_NATPMP], test "x$with_natpmp" != "xno")
# SHM
dnl check for shm