2 dnl Process this file with autoconf to produce a configure script.
5 AC_INIT([roojspacker], [4.0.0])
8 AC_CONFIG_HEADERS([config.h])
10 AM_INIT_AUTOMAKE([1.11 subdir-objects])
11 AM_MAINTAINER_MODE([enable])
13 AM_SILENT_RULES([yes])
18 AM_PROG_VALAC([0.16.0])
21 AC_CHECK_LIB([m],[cos])
23 dnl we need to check these exist, then it will generate a compile string for them.
25 PKG_CHECK_MODULES(ROOJSPACKER, [
34 dnl -- javascriptcoregtk-4.0 ** might add this later -- verify compilation.
37 dnl PKG_CHECK_MODULES(JAVASCRIPTCOREGTK, [javascriptcoregtk-4.0],
38 dnl [javascriptcoregtk_4_0_enabled=yes],
39 dnl [javascriptcoregtk_4_0_enabled=no])
41 dnl if test $javascriptcoregtk_4_0_enabled = yes; then
42 dnl AC_DEFINE(HAVE_JAVASCRIPTCOREGTK4,1,[javascriptcoregtk 4.0 support])
44 dnl PKG_CHECK_MODULES(JAVASCRIPTCOREGTK, [javascriptcoregtk-3.0],
45 dnl [javascriptcoregtk_3_0_enabled=yes] )
46 dnl AC_DEFINE(HAVE_JAVASCRIPTCOREGTK3,1,[javascriptcoregtk 3.0 support])
50 dnl AM_CONDITIONAL(HAVE_JAVASCRIPTCOREGTK3, test "$javascriptcoregtk_3_0_enabled" = "yes")
51 dnl AM_CONDITIONAL(HAVE_JAVASCRIPTCOREGTK4, test "$javascriptcoregtk_4_0_enabled" = "yes")
60 AC_SUBST(ROOJSPACKER_CFLAGS)
61 AC_SUBST(ROOJSPACKER_LIBS)