2 dnl Process this file with autoconf to produce a configure script.
5 AC_INIT([roojspacker], [4.0.0])
7 AC_CONFIG_HEADERS([config.h])
8 m4_ifdef([AC_CONFIG_MACRO_DIRS], [
9 AC_CONFIG_MACRO_DIRS([m4])
13 AM_INIT_AUTOMAKE([1.11 subdir-objects])
14 AM_MAINTAINER_MODE([enable])
18 AM_SILENT_RULES([yes])
22 AM_PROG_VALAC([0.16.0])
25 LT_INIT([disable-static])
28 AC_CHECK_LIB([m],[cos])
30 dnl GOBJECT_INTROSPECTION_CHECK([1.30.0])
33 dnl we need to check these exist, then it will generate a compile string for them.
35 PKG_CHECK_MODULES(ROOJSPACKER, [
44 PKG_CHECK_MODULES(JAVASCRIPTCOREGTK, [json-glib-1.0],
45 [json_glib_enabled=yes],
46 [json_glib_enabled=no])
48 if test $json_glib_enabled = yes; then
49 AC_DEFINE(HAVE_JSON_GLIB,1,[json-glib support])
51 AM_CONDITIONAL(HAVE_JSON_GLIB, test "$json-glib support" = "yes")
55 dnl -- javascriptcoregtk-4.0 ** might add this later -- verify compilation.
58 dnl PKG_CHECK_MODULES(JAVASCRIPTCOREGTK, [javascriptcoregtk-4.0],
59 dnl [javascriptcoregtk_4_0_enabled=yes],
60 dnl [javascriptcoregtk_4_0_enabled=no])
62 dnl if test $javascriptcoregtk_4_0_enabled = yes; then
63 dnl AC_DEFINE(HAVE_JAVASCRIPTCOREGTK4,1,[javascriptcoregtk 4.0 support])
65 dnl PKG_CHECK_MODULES(JAVASCRIPTCOREGTK, [javascriptcoregtk-3.0],
66 dnl [javascriptcoregtk_3_0_enabled=yes] )
67 dnl AC_DEFINE(HAVE_JAVASCRIPTCOREGTK3,1,[javascriptcoregtk 3.0 support])
71 dnl AM_CONDITIONAL(HAVE_JAVASCRIPTCOREGTK3, test "$javascriptcoregtk_3_0_enabled" = "yes")
72 dnl AM_CONDITIONAL(HAVE_JAVASCRIPTCOREGTK4, test "$javascriptcoregtk_4_0_enabled" = "yes")
81 AC_SUBST(ROOJSPACKER_CFLAGS)
82 AC_SUBST(ROOJSPACKER_LIBS)
85 AC_OUTPUT([roojspacker-1.0.pc])