+# check for SIP
+AC_ARG_WITH([sip],
+ [AS_HELP_STRING([--with-sip],
+ [compile with SIP support (sofia-sip is required) @<:@default=no@:>@])
+ ],
+ [],
+ [with_sip="check"])
+
+AM_CONDITIONAL(ENABLE_SIP, test "x$with_sip" == "xyes" )
+
+AS_IF([test "x$with_sip" == xyes -o "x$with_sip" == xyes], [
+ PKG_CHECK_MODULES(SOFIA, sofia-sip-ua >= 1.12)
+ ])
+