--- NetworkManager-openvpn-1.2.4/configure.ac.orig	2016-08-12 10:25:07.404430045 +0200
+++ NetworkManager-openvpn-1.2.4/configure.ac	2016-08-12 10:25:16.846396578 +0200
@@ -38,6 +38,9 @@
 AC_PROG_GCC_TRADITIONAL
 AC_FUNC_MEMCMP
 AC_CHECK_FUNCS(select socket uname)
+AC_SEARCH_LIBS([dlopen], [dl dld], [], [
+  AC_MSG_ERROR([unable to find the dlopen() function])
+])
 
 dnl ensure that when the Automake generated makefile calls aclocal,
 dnl it honours the $ACLOCAL_FLAGS environment variable
--- NetworkManager-openvpn-1.2.4/properties/Makefile.am.orig	2016-08-12 21:37:48.449707353 +0200
+++ NetworkManager-openvpn-1.2.4/properties/Makefile.am	2016-08-12 21:37:31.616570454 +0200
@@ -57,7 +57,8 @@
         $(LIBNM_CFLAGS)
 
 libnm_vpn_plugin_openvpn_la_LIBADD = \
-        $(LIBNM_LIBS)
+        $(LIBNM_LIBS) \
+        $(DLOPEN)
 
 libnm_vpn_plugin_openvpn_la_LDFLAGS = \
         -avoid-version \
