ortp: Fix the version check for ORTP by not using the cached result

The second check used the cached result for ORTP. Store the result
in ORTP_VERSION and my system properly detects that it is running
on < 0.21.

The HAVE_ORTP_021 will always be defined so just use #if and not
the #ifdef to fix the build.
diff --git a/configure.ac b/configure.ac
index c285dad..3dac502 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,7 +35,7 @@
 PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 0.3.10)
 PKG_CHECK_MODULES([ORTP], [ortp >= 0.13.1],
 	[
-	 	PKG_CHECK_MODULES([ORTP], [ortp >= 0.21],
+		PKG_CHECK_MODULES([ORTP_VERSION], [ortp >= 0.21],
 				  [AC_DEFINE(HAVE_ORTP_021, 1,
 				   	     [libortp >= 0.21])],
 				  [AC_DEFINE(HAVE_ORTP_021, 0,
diff --git a/src/trau/osmo_ortp.c b/src/trau/osmo_ortp.c
index 7dcff60..2f2f26c 100644
--- a/src/trau/osmo_ortp.c
+++ b/src/trau/osmo_ortp.c
@@ -349,7 +349,7 @@
 int osmo_rtp_socket_bind(struct osmo_rtp_socket *rs, const char *ip, int port)
 {
 	int rc;
-#ifdef HAVE_ORTP_021
+#if HAVE_ORTP_021
 	rc = rtp_session_set_local_addr(rs->sess, ip, port, port+1);
 #else
 	rc = rtp_session_set_local_addr(rs->sess, ip, port);