fix #7968 - language server support for syntax check and completion
[roobuilder] / configure.ac
1
2 dnl Process this file with autoconf to produce a configure script.
3 AC_PREREQ([2.68])
4
5 AC_INIT([roobuilder], [4.2.0])
6
7 AC_CONFIG_HEADERS([config.h])
8
9 AM_INIT_AUTOMAKE([1.11 subdir-objects])
10 AM_MAINTAINER_MODE([enable])
11
12 AM_SILENT_RULES([yes])
13
14 AC_PROG_CC
15
16 AM_PROG_VALAC([0.36.0])
17
18
19 AC_CHECK_LIB([m],[cos])
20
21 dnl we need to check these exist, then it will generate a compile string for them.
22
23 dnl  we add zlib in to pad the listof libraries (as for some reason -L is injected on the final stage without argument
24 dnl and it breaks the build...
25
26 PKG_CHECK_MODULES(ROOBUILDER, [ zlib
27                  glib-2.0 >= 2.24.1
28                  gobject-2.0 >= 2.24.1
29                  gtk4  >= 3.11.3
30                  gtksourceview-5
31                  json-glib-1.0
32                  gee-0.8
33                  libxml-2.0
34                  libsoup-3.0 
35                  roojspacker-1.4
36                  jsonrpc-glib-1.0
37                  gio-unix-2.0
38 ]) 
39
40 dnl --- libvala -- needs to find matching really..
41
42 dnl -   supported version is 0.36  and  0.56
43
44 PKG_CHECK_MODULES(LIBVALA, [libvala-0.56],
45                 [vala_5_6_enabled=yes],
46                 [vala_5_6_enabled=no]) 
47 if test $vala_5_6_enabled = yes; then
48         AC_DEFINE(HAVE_LIBVALA56,1,[libvala 0.56 support])
49 else
50
51          PKG_CHECK_MODULES(LIBVALA, [libvala-0.36],
52                                  [vala_3_6_enabled=yes],
53                                  [vala_3_6_enabled=no]) 
54          if test $vala_3_6_enabled = yes; then
55                  AC_DEFINE(HAVE_LIBVALA36,1,[libvala 0.36 support])
56          fi
57          
58  fi
59
60 AM_CONDITIONAL(HAVE_LIBVALA56, test "$vala_5_6_enabled" = "yes")
61 AM_CONDITIONAL(HAVE_LIBVALA36, test "$vala_3_6_enabled" = "yes")
62
63
64   
65
66 dnl --- gda
67
68
69
70 PKG_CHECK_MODULES(GDA, [libgda-5.0],
71                                 [gda_5_0_enabled=yes],
72                                 [gda_5_0_enabled=no])
73
74 if test $gda_5_0_enabled = yes; then
75                 AC_DEFINE(HAVE_GDA5,1,[libgda 5.0 support])
76 else
77                 PKG_CHECK_MODULES(GDA, [libgda-4.0],
78                                 [gda_4_0_enabled=yes] )
79                 AC_DEFINE(HAVE_GDA4,1,[libgda 4.0 support])
80 fi
81 AM_CONDITIONAL(HAVE_GDA4, test "$gda_4_0_enabled" = "yes")
82 AM_CONDITIONAL(HAVE_GDA5, test "$gda_5_0_enabled" = "yes")
83
84
85 dnl  -- webkit-4.0 
86
87
88 PKG_CHECK_MODULES(WEBKIT, [webkitgtk-6.0],
89                                 [webkit_6_0_enabled=yes],
90                                 [webkit_6_0_enabled=no])
91
92 if test $webkit_6_0_enabled = yes; then
93                 AC_DEFINE(HAVE_WEBKIT6,1,[webkit 6.0 support])
94            
95
96 fi
97
98 AM_CONDITIONAL(HAVE_WEBKIT6, test "$webkit_6_0_enabled" = "yes")
99
100
101
102 dnl  -- javascriptcoregtk-6.0  ** not sure if this is needed....
103
104
105 PKG_CHECK_MODULES(JAVASCRIPTCOREGTK, [javascriptcoregtk-6.0],
106                                 [javascriptcoregtk_6_0_enabled=yes],
107                                 [javascriptcoregtk_6_0_enabled=no])
108
109 if test $javascriptcoregtk_6_0_enabled = yes; then
110                 AC_DEFINE(HAVE_JAVASCRIPTCOREGTK6,1,[javascriptcoregtk 6.0 support])
111
112 fi
113
114 AM_CONDITIONAL(HAVE_JAVASCRIPTCOREGTK6, test "$javascriptcoregtk_6_0_enabled" = "yes")
115
116
117
118 dnl --- vte -- fixme - its not used yet.. not sure if we will use it....
119  
120
121 PKG_CHECK_MODULES(VTE, [vte-2.91],
122                                 [vte_2_91_enabled=yes],
123                                 [vte_2_91_enabled=no])
124                                 
125 if test $vte_2_91_enabled = yes; then
126                 AC_DEFINE(HAVE_VTE_2_91,1,[libvte 2.91 support])
127 else
128                 PKG_CHECK_MODULES(VTE, [vte-2.90],
129                                 [vte_2_90_enabled=yes]
130                 )
131                 AC_DEFINE(HAVE_VTE_2_90,1,[libvte 2.90 support])
132 fi
133
134 AM_CONDITIONAL(HAVE_VTE_2_90, test "$vte_2_90_enabled" = "yes")
135 AM_CONDITIONAL(HAVE_VTE_2_91, test "$vte_2_91_enabled" = "yes")
136
137 AC_CONFIG_FILES([
138         Makefile
139         src/Makefile
140         pixmaps/Makefile
141 ])
142
143   
144 AC_SUBST(ROOBUILDER_CFLAGS)
145 AC_SUBST(ROOBUILDER_LIBS)
146
147
148 AC_OUTPUT