PKG_CHECK_MODULES(POLKIT, polkit-dbus >= 0.7, polkit_found=yes, polkit_found=no)
AC_SUBST(POLKIT_CFLAGS)
AC_SUBST(POLKIT_LIBS)
+AM_CONDITIONAL(POLKIT, test "${polkit_found}" = "yes")
PKG_CHECK_MODULES(SQLITE, sqlite3, sqlite_found=yes, sqlite_found=no)
AC_SUBST(SQLITE_CFLAGS)
plugin_LTLIBRARIES = rtnllink.la ethernet.la wifi.la bluetooth.la \
dhclient.la ipv4.la resolvconf.la resolvfile.la
-if HAL
-plugin_LTLIBRARIES += hal.la
-
-hal_la_SOURCES = hal.c
-hal_la_LIBADD = @HAL_LIBS@
-hal_la_CFLAGS = @GLIB_CFLAGS@ @HAL_CFLAGS@
-endif
-
rtnllink_la_SOURCES = rtnllink.c
ethernet_la_SOURCES = ethernet.c
resolvfile_la_SOURCES = resolvfile.c
+if HAL
+plugin_LTLIBRARIES += hal.la
+
+hal_la_SOURCES = hal.c
+hal_la_LIBADD = @HAL_LIBS@
+hal_la_CFLAGS = @GLIB_CFLAGS@ @HAL_CFLAGS@
+endif
+
+if POLKIT
+plugin_LTLIBRARIES += polkit.la
+
+polkit_la_SOURCES = polkit.c
+polkit_la_LIBADD = @POLKIT_LIBS@
+polkit_la_CFLAGS = @GLIB_CFLAGS@ @POLKIT_CFLAGS@
+endif
+
AM_LDFLAGS = -no-undefined -module -avoid-version \
-export-symbols-regex connman_plugin_desc
--- /dev/null
+/*
+ *
+ * Connection Manager
+ *
+ * Copyright (C) 2007-2008 Intel Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <connman/plugin.h>
+#include <connman/log.h>
+
+static int polkit_init(void)
+{
+ return 0;
+}
+
+static void polkit_exit(void)
+{
+}
+
+CONNMAN_PLUGIN_DEFINE("polkit", "PolicyKit authorization plugin", VERSION,
+ polkit_init, polkit_exit)