summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJussi Laako <jussi.laako@linux.intel.com>2014-05-19 12:33:46 (GMT)
committerJussi Laako <jussi.laako@linux.intel.com>2014-05-19 12:33:46 (GMT)
commit0557bb8a7f90347a3a0e49a12db0259500794d1e (patch)
tree4bb5cfc8ee3d4c1de8317af929b988de59fb2bb0 /configure.ac
downloadlibtlm-nfc-master.zip
libtlm-nfc-master.tar.gz
libtlm-nfc-master.tar.bz2
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac46
1 files changed, 46 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..eaa621c
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,46 @@
+AC_INIT([libtlm-nfc], [0.0.0],[],[],[http://tizen.org])
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_MACRO_DIR([m4])
+AC_CONFIG_AUX_DIR([build-aux])
+
+AM_INIT_AUTOMAKE([subdir-objects])
+
+LT_INIT([disable-static])
+
+# Checks for libraries.
+PKG_CHECK_MODULES([TLM_NFC],
+ [glib-2.0 >= 2.30
+ gio-2.0
+ gio-unix-2.0
+ gmodule-2.0
+ ])
+AC_SUBST(TLM_NFC_CFLAGS)
+AC_SUBST(TLM_NFC_LIBS)
+
+
+# AM_PATH_CHECK() is deprecated, but check documentation fails to tell that :-/
+PKG_CHECK_MODULES([CHECK], [check >= 0.9.4], [have_check=yes], [have_check=no])
+AC_SUBST(CHECK_CFLAGS)
+AC_SUBST(CHECK_LIBS)
+AM_CONDITIONAL(HAVE_CHECK, [test x$have_check = xyes])
+
+# gtk-doc
+GTK_DOC_CHECK([1.18],[--flavour no-tmpl])
+
+AC_ARG_ENABLE([coverage],
+ [AS_HELP_STRING([--enable-coverage], [compile with coverage info])])
+AS_IF([test "x$enable_coverage" = "xyes"],
+ [CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"])
+
+# Checks for typedefs, structures, and compiler characteristics.
+TLM_NFC_CFLAGS="$TLM_NFC_CFLAGS -Wall -Werror -DG_LOG_DOMAIN=\\\"tlm-nfc\\\""
+
+AC_OUTPUT([
+Makefile
+${PACKAGE_NAME}.pc
+${PACKAGE_NAME}-uninstalled.pc
+docs/Makefile
+src/Makefile
+test/Makefile
+])
+