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])
9 AM_INIT_AUTOMAKE([1.11 subdir-objects])
10 AM_MAINTAINER_MODE([enable])
12 AM_SILENT_RULES([yes])
16 AM_PROG_VALAC([0.22.0])
19 AC_CHECK_LIB([m],[cos])
21 dnl we need to check these exist, then it will generate a compile string for them.
23 PKG_CHECK_MODULES(ROOJSPACKER, [
31 dnl -- javascriptcoregtk-4.0 ** might add this later -- verify compilation.
34 dnl PKG_CHECK_MODULES(JAVASCRIPTCOREGTK, [javascriptcoregtk-4.0],
35 dnl [javascriptcoregtk_4_0_enabled=yes],
36 dnl [javascriptcoregtk_4_0_enabled=no])
38 dnl if test $javascriptcoregtk_4_0_enabled = yes; then
39 dnl AC_DEFINE(HAVE_JAVASCRIPTCOREGTK4,1,[javascriptcoregtk 4.0 support])
41 dnl PKG_CHECK_MODULES(JAVASCRIPTCOREGTK, [javascriptcoregtk-3.0],
42 dnl [javascriptcoregtk_3_0_enabled=yes] )
43 dnl AC_DEFINE(HAVE_JAVASCRIPTCOREGTK3,1,[javascriptcoregtk 3.0 support])
47 dnl AM_CONDITIONAL(HAVE_JAVASCRIPTCOREGTK3, test "$javascriptcoregtk_3_0_enabled" = "yes")
48 dnl AM_CONDITIONAL(HAVE_JAVASCRIPTCOREGTK4, test "$javascriptcoregtk_4_0_enabled" = "yes")
57 AC_SUBST(ROOJSPACKER_CFLAGS)
58 AC_SUBST(ROOJSPACKER_LIBS)