configure.ac
[roojspacker] / configure.ac
1
2 dnl Process this file with autoconf to produce a configure script.
3 AC_PREREQ([2.68])
4
5 AC_INIT([roojspacker], [4.0.0])
6
7 AC_CONFIG_HEADERS([config.h])
8 m4_ifdef([AC_CONFIG_MACRO_DIRS], [ 
9         AC_CONFIG_MACRO_DIRS([m4])
10 ])
11
12
13 AM_INIT_AUTOMAKE([1.11 subdir-objects])
14 AM_MAINTAINER_MODE([enable])
15
16
17
18 AM_SILENT_RULES([yes])
19
20 AC_PROG_CC
21
22 AM_PROG_VALAC([0.16.0])
23
24 LT_PREREQ([2.2.6])
25 LT_INIT([disable-static])
26
27
28 AC_CHECK_LIB([m],[cos])
29
30 dnl GOBJECT_INTROSPECTION_CHECK([1.30.0])
31
32
33 dnl we need to check these exist, then it will generate a compile string for them.
34
35 PKG_CHECK_MODULES(ROOJSPACKER, [
36                  glib-2.0 >= 2.28.0
37                  gobject-2.0 >= 2.28.0
38                  gee-1.0  
39                  gio-2.0  >= 2.28.0
40                  gthread-2.0
41                  json-glib-1.0
42 ])
43
44
45 dnl  -- javascriptcoregtk-4.0  ** might add this later -- verify compilation.
46
47
48 dnl PKG_CHECK_MODULES(JAVASCRIPTCOREGTK, [javascriptcoregtk-4.0],
49 dnl                             [javascriptcoregtk_4_0_enabled=yes],
50 dnl                             [javascriptcoregtk_4_0_enabled=no])
51 dnl
52 dnl if test $javascriptcoregtk_4_0_enabled = yes; then
53 dnl             AC_DEFINE(HAVE_JAVASCRIPTCOREGTK4,1,[javascriptcoregtk 4.0 support])
54 dnl else
55 dnl             PKG_CHECK_MODULES(JAVASCRIPTCOREGTK, [javascriptcoregtk-3.0],
56 dnl                             [javascriptcoregtk_3_0_enabled=yes] )
57 dnl             AC_DEFINE(HAVE_JAVASCRIPTCOREGTK3,1,[javascriptcoregtk 3.0 support])
58 dnl        
59 dnl
60 dnl fi
61 dnl AM_CONDITIONAL(HAVE_JAVASCRIPTCOREGTK3, test "$javascriptcoregtk_3_0_enabled" = "yes")
62 dnl AM_CONDITIONAL(HAVE_JAVASCRIPTCOREGTK4, test "$javascriptcoregtk_4_0_enabled" = "yes")
63
64  
65 AC_CONFIG_FILES([
66         Makefile
67         src/Makefile
68 ])
69
70   
71 AC_SUBST(ROOJSPACKER_CFLAGS)
72 AC_SUBST(ROOJSPACKER_LIBS)
73
74
75 AC_OUTPUT([roojspacker-1.0.pc])