Removed doubled file
[anjuta-git-plugin.git] / configure.in
blob1668195aa2ed6233d03b8daa447eabcd236c965a
1 dnl Process this file with autoconf to produce a configure script.
3 AC_PREREQ(2.59)
5 m4_define(anjuta_major_version,  2)
6 m4_define(anjuta_minor_version, 3)
7 m4_define(anjuta_micro_version,  0)
8 m4_define(anjuta_version, anjuta_major_version.anjuta_minor_version.anjuta_micro_version)
10 AC_INIT(anjuta, anjuta_version, http://bugzilla.gnome.org/enter_bug.cgi?product=anjuta)
11 AC_CONFIG_SRCDIR(src/main.c)
13 AC_DEFINE(ANJUTA_MAJOR_VERSION, anjuta_major_version, [Anjuta major version])
14 AC_SUBST(ANJUTA_MAJOR_VERSION, anjuta_major_version)
15 AC_DEFINE(ANJUTA_MINOR_VERSION, anjuta_minor_version, [Anjuta minor version])
16 AC_SUBST(ANJUTA_MINOR_VERSION, anjuta_minor_version)
17 AC_DEFINE(ANJUTA_MICRO_VERSION, anjuta_micro_version, [Anjuta micro version])
18 AC_SUBST(ANJUTA_MICRO_VERSION, anjuta_micro_version)
19 AC_DEFINE(ANJUTA_VERSION, anjuta_version, [Anjuta version])
20 AC_SUBST(ANJUTA_VERSION)
22 GLIB_REQUIRED=2.8.0
23 GOBJECT_REQUIRED=2.8.0
24 GMODULE_REQUIRED=2.8.0
25 GTHREAD_REQUIRED=2.8.0
26 GDK_PIXBUF_REQUIRED=2.0.0
27 GTK_REQUIRED=2.8.0
28 ORBIT_REQUIRED=2.6.0
29 LIBGLADE_REQUIRED=2.3.0
30 GNOME_REQUIRED=2.12.0
31 GNOME_CANVAS_REQUIRED=2.12.0
32 GNOME_UI_REQUIRED=2.12.0
33 GNOME_PRINT_REQUIRED=2.12.0
34 GNOME_PRINT_UI_REQUIRED=2.12.0
35 GNOME_VFS_REQUIRED=2.14.0
36 GCONF_REQUIRED=2.12.0
37 VTE_REQUIRED=0.9.0
38 VTE_NEW_REQUIRED=0.13.1
39 LIBXML_REQUIRED=2.4.23
40 PANGO_REQUIRED=1.1.1
41 PCRE_REQUIRED=3.9
42 LIBDEVHELP_REQUIRED=0.13
43 GDL_REQUIRED=0.7.3
44 GNOMEBUILD_REQUIRED=0.2.0
45 GLADEUI_REQUIRED=3.2.0
46 LIBGRAPHVIZ_REQUIRED=1.0
47 NEON_REQUIRED=0.24.5
48 SUBVERSION_REQUIRED=1.0.2
49 GTKSOURCEVIEW_REQUIRED=1.4.0
50 GTKSOURCEVIEW_GNOME_REQUIRED=2.14
51 GTKSOURCEVIEW_GTK_REQUIRED=2.10
52 BINUTILS_REQUIRED=2.15.92
53 LIBWNCK_REQUIRED=2.12
54 GDA_REQUIRED=3.0
56 dnl LIBGTODO_REQUIRED=0.15
58 AC_SUBST(GLIB_REQUIRED)
59 AC_SUBST(GOBJECT_REQUIRED)
60 AC_SUBST(GMODULE_REQUIRED)
61 AC_SUBST(GDK_PIXBUF_REQUIRED)
62 AC_SUBST(GTK_REQUIRED)
63 AC_SUBST(ORBIT_REQUIRED)
64 AC_SUBST(LIBGLADE_REQUIRED)
65 AC_SUBST(GNOME_REQUIRED)
66 AC_SUBST(GNOME_CANVAS_REQUIRED)
67 AC_SUBST(GNOME_UI_REQUIRED)
68 AC_SUBST(GNOME_PRINT_REQUIRED)
69 AC_SUBST(GNOME_PRINT_UI_REQUIRED)
70 AC_SUBST(GNOME_VFS_REQUIRED)
71 AC_SUBST(GCONF_REQUIRED)
72 AC_SUBST(VTE_REQUIRED)
73 AC_SUBST(LIBXML_REQUIRED)
74 AC_SUBST(PANGO_REQUIRED)
75 AC_SUBST(VTE_NEW_REQUIRED)
76 AC_SUBST(PCRE_REQUIRED)
77 AC_SUBST(LIBDEVHELP_REQUIRED)
78 AC_SUBST(GDL_REQUIRED)
79 AC_SUBST(GNOMEBUILD_REQUIRED)
80 AC_SUBST(GLADEUI_REQUIRED)
81 AC_SUBST(GLADEUI_SVN_REQUIRED)
82 AC_SUBST(LIBGRAPHVIZ_REQUIRED)
83 AC_SUBST(NEON_REQUIRED)
84 AC_SUBST(SUBVERSION_REQUIRED)
85 AC_SUBST(GTKSOURCEVIEW_REQUIRED)
86 AC_SUBST(GTKSOURCEVIEW_GNOME_REQUIRED)
87 AC_SUBST(GTKSOURCEVIEW_GTK_REQUIRED)
88 AC_SUBST(BINUTILS_REQUIRED)
89 AC_SUBST(LIBWNCK_REQUIRED)
90 AC_SUBST(GDA_REQUIRED)
92 dnl AC_SUBST(LIBGTODO_REQUIRED)
94 AM_INIT_AUTOMAKE([1.9 dist-bzip2 no-dist-gzip])
95 AC_CONFIG_HEADERS(config.h)
96 AC_DISABLE_STATIC
97 AM_MAINTAINER_MODE
98 GNOME_DOC_INIT
100 #Check for C Compiler
101 AC_PROG_CC
102 AC_PROG_CPP
103 AC_LANG_C
105 #Check for C++ Compiler
106 AC_PROG_CXX
107 AC_LANG_CPLUSPLUS
109 GNOME_COMPILE_WARNINGS(maximum)
110 GNOME_CXX_WARNINGS(yes)
111 AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS"
112 AM_CXXFLAGS="$AM_CXXFLAGS $WARN_CXXFLAGS"
114 dnl Enable debugging mode
115 AC_ARG_ENABLE(debug,
116   [  --enable-debug           Enable debug messages],
117   AM_CFLAGS="$AM_CFLAGS -DDEBUG"
118   AM_CXXFLAGS="$AM_CXXFLAGS -DDEBUG")
119 AC_SUBST(AM_CFLAGS)
120 AC_SUBST(AM_CXXFLAGS)
122 ANJUTA_LDFLAGS="-no-undefined"
123 ANJUTA_PLUGIN_LDFLAGS="-module -avoid-version -no-undefined"
124 AC_SUBST(ANJUTA_LDFLAG)
125 AC_SUBST(ANJUTA_PLUGIN_LDFLAGS)
127 dnl Disable deprecated APIs
128 AC_ARG_ENABLE(deprecated,
129   [  --disable-deprecated     Disable deprecated APIs],
130   [ if test "$enableval" = "no"; then
131     DEPRECATED_FLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED"
132   fi ],
133  [ DEPRECATED_FLAGS="" ])
134 AC_SUBST(DEPRECATED_FLAGS)
136 dnl Enable versioned user preferences directory
137 AC_ARG_WITH(pref-suffix,
138   [  --with-pref-suffix=VALUE Suffix to add to user preferences dir.],
139   PREF_SUFFIX="$withval")
141 AC_SUBST(PREF_SUFFIX)
142 AC_DEFINE_UNQUOTED(PREF_SUFFIX,
143       "${PREF_SUFFIX}",
144           [Suffix to add to preferences directory])
146 AC_ISC_POSIX
147 AC_HEADER_STDC
148 AM_DISABLE_STATIC
149 AM_PROG_LIBTOOL
151 AC_TYPE_SIGNAL
153 dnl ***************************************************************************
154 dnl Check for GConf stuff to handle schema installation
155 dnl ***************************************************************************
156 AC_PATH_PROG(GCONFTOOL, gconftool-2)
157 AM_GCONF_SOURCE_2
159 dnl ***************************************************************************
160 dnl Check for pkgconfig
161 dnl ***************************************************************************
162 AC_PATH_PROG(PKGCONFIG_CONFIG, pkg-config,no)
163 if test x$PKGCONFIG_CONFIG = xno; then
164   AC_MSG_ERROR(Please install the pkg-config package from http://www.freedesktop.org/software/pkgconfig/)
167 dnl pkg checks are split into separate packages instead of single package
168 dnl because different plugins have different requirements.
170 PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED)
171 AC_SUBST(GLIB_CFLAGS)
172 AC_SUBST(GLIB_LIBS)
174 PKG_CHECK_MODULES(GOBJECT, gobject-2.0 >= $GOBJECT_REQUIRED)
175 AC_SUBST(GOBJECT_CFLAGS)
176 AC_SUBST(GOBJECT_LIBS)
178 PKG_CHECK_MODULES(GMODULE, gmodule-2.0 >= $GMODULE_REQUIRED)
179 AC_SUBST(GMODULE_CFLAGS)
180 AC_SUBST(GMODULE_LIBS)
182 PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= $GTHREAD_REQUIRED)
183 AC_SUBST(GTHREAD_CFLAGS)
184 AC_SUBST(GTHREAD_LIBS)
186 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED)
187 AC_SUBST(GTK_CFLAGS)
188 AC_SUBST(GTK_LIBS)
190 PKG_CHECK_MODULES(GDK_PIXBUF, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED)
191 AC_SUBST(GDK_PIXBUF_CFLAGS)
192 AC_SUBST(GDK_PIXBUF_LIBS)
194 PKG_CHECK_MODULES(ORBIT, ORBit-2.0 >= $ORBIT_REQUIRED)
195 AC_SUBST(ORBIT_CFLAGS)
196 AC_SUBST(ORBIT_LIBS)
198 PKG_CHECK_MODULES(GLADE, libglade-2.0 >= $LIBGLADE_REQUIRED)
199 AC_SUBST(GLADE_CFLAGS)
200 AC_SUBST(GLADE_LIBS)
202 PKG_CHECK_MODULES(GNOME, libgnome-2.0 >= $GNOME_REQUIRED)
203 AC_SUBST(GNOME_CFLAGS)
204 AC_SUBST(GNOME_LIBS)
206 PKG_CHECK_MODULES(GNOME_CANVAS, libgnomecanvas-2.0 >= $GNOME_CANVAS_REQUIRED)
207 AC_SUBST(GNOME_CANVAS_CFLAGS)
208 AC_SUBST(GNOME_CANVAS_LIBS)
210 PKG_CHECK_MODULES(GNOME_UI, libgnomeui-2.0 >= $GNOME_UI_REQUIRED)
211 AC_SUBST(GNOME_UI_CFLAGS)
212 AC_SUBST(GNOME_UI_LIBS)
214 PKG_CHECK_MODULES(GNOME_PRINT, libgnomeprint-2.2 >= $GNOME_PRINT_REQUIRED)
215 AC_SUBST(GNOME_PRINT_CFLAGS)
216 AC_SUBST(GNOME_PRINT_LIBS)
218 PKG_CHECK_MODULES(GNOME_PRINT_UI, libgnomeprintui-2.2 >= $GNOME_PRINT_UI_REQUIRED)
219 AC_SUBST(GNOME_PRINT_UI_CFLAGS)
220 AC_SUBST(GNOME_PRINT_UI_LIBS)
222 PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED)
223 AC_SUBST(GNOME_VFS_CFLAGS)
224 AC_SUBST(GNOME_VFS_LIBS)
226 PKG_CHECK_MODULES(GNOME_VFS_MODULE, gnome-vfs-module-2.0 >= $GNOME_VFS_REQUIRED)
227 AC_SUBST(GNOME_VFS_MODULE_CFLAGS)
228 AC_SUBST(GNOME_VFS_MODULE_LIBS)
230 PKG_CHECK_MODULES(GCONF, gconf-2.0 >= $GCONF_REQUIRED)
231 AC_SUBST(GCONF_CFLAGS)
232 AC_SUBST(GCONF_LIBS)
234 PKG_CHECK_MODULES(VTE, vte >= $VTE_REQUIRED)
235 AC_SUBST(VTE_CFLAGS)
236 AC_SUBST(VTE_LIBS)
238 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED)
239 AC_SUBST(LIBXML_CFLAGS)
240 AC_SUBST(LIBXML_LIBS)
242 PKG_CHECK_MODULES(PANGO, pango >= $PANGO_REQUIRED)
243 AC_SUBST(PANGO_CFLAGS)
244 AC_SUBST(PANGO_LIBS)
246 PKG_CHECK_MODULES(GDL, gdl-1.0 >= $GDL_REQUIRED gdl-gnome-1.0 >= $GDL_REQUIRED)
247 AC_SUBST(GDL_CFLAGS)
248 AC_SUBST(GDL_LIBS)
250 PKG_CHECK_MODULES(LIBXSLT, libxslt)
251 AC_SUBST(LIBXSLT_CFLAGS)
252 AC_SUBST(LIBXSLT_LIBS)
254 dnl Check for autogen
255 dnl -----------------
256 AC_PATH_PROG(AUTOGEN_PATH, autogen,no)
257 if test x$AUTOGEN_PATH = xno; then
258    AC_MSG_ERROR([Couldn't find autogen, please install the autogen package. You can get it from http://autogen.sourceforge.net/])
261 dnl Check for Devhelp
262 dnl -----------------
264 AC_ARG_ENABLE(plugin-devhelp,
265   [  --disable-plugin-devhelp        Disable devhelp plugin support in Anjuta.],
266   [ if test "$enableval" = "no"; then
267        user_disabled_devhelp=1
268     fi ],
269   [ user_disabled_devhelp=0 ] )
271 AC_MSG_CHECKING(if devhelp plugin is disabled)
272 if test "$user_disabled_devhelp" = 1; then
273         AC_MSG_RESULT(yes)
274         devhelp_enabled="no"
275 else
276         AC_MSG_RESULT(no)
277         devhelp_old=yes
278         PKG_CHECK_MODULES(PLUGIN_DEVHELP, 
279                                 [libdevhelp-1.0 >= $LIBDEVHELP_REQUIRED],
280                                          [
281                                             devhelp_old=no
282                                                 devhelp_enabled=yes
283                                          ], [
284                                                    AC_MSG_RESULT([version >= 0.11 not found])
285                                                    devhelp_old=yes
286                                                    devhelp_enabled=no
287                                          ])
288         if test x$devhelp_old = xyes; then
289           PKG_CHECK_MODULES(PLUGIN_DEVHELP, [libdevhelp-1.0 >= 0.9], [devhelp_enabled=yes], [devhelp_enabled=no])
290                 if test x$devhelp_enabled = xyes; then
291               AC_DEFINE(HAVE_OLD_DEVHELP, 1, [If old devhelp (>= 0.9 < 0.11) is installed])
292                 fi
293         fi
294         AC_SUBST(PLUGIN_DEVHELP_CFLAGS)
295         AC_SUBST(PLUGIN_DEVHELP_LIBS)
298 if test x$devhelp_enabled = xyes; then
299         GECKO_HOME=`$PKGCONFIG_CONFIG --variable=gecko_home libdevhelp-1.0`
300         if test x$GECKO_HOME != x; then
301                 ANJUTA_LDFLAGS="$ANJUTA_LDFLAGS -R$GECKO_HOME"
302         fi
304 AC_SUBST(ANJUTA_LDFLAGS)
306 AM_CONDITIONAL(HAVE_PLUGIN_DEVHELP, [test x$devhelp_enabled = xyes])
308 dnl Check for GTodo
309 dnl -----------------
310 dnl PKG_CHECK_MODULES(PLUGIN_GTODO, libgtodo-1.0 >= $LIBGTODO_REQUIRED)
311 dnl AC_SUBST(PLUGIN_GTODO_CFLAGS)
312 dnl AC_SUBST(PLUGIN_GTODO_LIBS)
314 dnl Check for Gnome Build
315 dnl ---------------------
317 PKG_CHECK_MODULES(PLUGIN_GNOMEBUILD, gnome-build-1.0 >= $GNOMEBUILD_REQUIRED)
318 AC_SUBST(PLUGIN_GNOMEBUILD_CFLAGS)
319 AC_SUBST(PLUGIN_GNOMEBUILD_LIBS)
321 dnl Check for Glade3
322 dnl ---------------------
324 AC_ARG_ENABLE(plugin-glade,
325   [  --disable-plugin-glade        Disable glade plugin support in Anjuta.],
326   [ if test "$enableval" = "no"; then
327        user_disabled_glade=1
328     fi ],
329   [ user_disabled_glade=0 ] )
331 AC_MSG_CHECKING(if glade plugin is disabled)
332 if test "$user_disabled_glade" = 1; then
333         AC_MSG_RESULT(yes)
334         libgladeui_found="no"
335 else
336         AC_MSG_RESULT(no)
337         AC_PATH_PROG(PKG_PATH, pkg-config, no)
338         gladeui_version=0
339         PKG_CHECK_MODULES(PLUGIN_GLADE, gladeui-1.0,
340             [
341                 libgladeui_found="yes"
342                 gladeui_version=`$PKG_PATH --modversion gladeui-1.0 | sed -e 's,\.,,g'`
343             ], [
344                 libgladeui_found="no"
345             ])
346         if test x$libgladeui_found = xno; then
347             PKG_CHECK_MODULES(PLUGIN_GLADE, [libgladeui-1.0 >= $GLADEUI_REQUIRED],
348                 [
349                         libgladeui_found="yes"
350                         gladeui_version=`$PKG_PATH --modversion libgladeui-1.0 | sed -e 's,\.,,g'`
351                 ], [
352                         libgladeui_found="no"
353                 ])
354         fi
355         AC_DEFINE_UNQUOTED(GLADEUI_VERSION, [$gladeui_version], [GLADEUI version])
356         AC_SUBST(GLADEUI_VERSION)
357         AC_SUBST(PLUGIN_GLADE_CFLAGS)
358         AC_SUBST(PLUGIN_GLADE_LIBS)
361 AM_CONDITIONAL(HAVE_PLUGIN_GLADE, [test x$libgladeui_found = xyes])
363 dnl Check for graphviz (class inheritance and profiler plugins)
364 dnl --------------------------------------------------------------------------
365 dnl FIXME: For some strange reason graphviz-devel rpm install the *.pc files
366 dnl in /usr/lib/graphviz/pkgconfig, instead of usual /usr/lib/pkgconfig. This
367 dnl makes pkgconfig check fail if we don't add the above path in
368 dnl PKG_CONFIG_PATH. We have added both /usr/lib/graphviz/pkgconfig and
369 dnl /usr/local/lib/pkgconfig paths. If graphviz is installed in other prefix
370 dnl (other than /usr or /usr/local or the current installation prefix),
371 dnl following pkgconfig check will fail.
372 dnl --------------------------------------------------------------------------
373 AC_ARG_ENABLE(graphviz,
374         [ --disable-graphviz            Disable GraphViz support in Anjuta], 
375         [ if test "$enableval" = "no"; then
376                 user_disabled_graphviz=1
377           fi ],
378         [ user_disabled_graphviz=0 ])
380 AC_MSG_CHECKING(if GraphViz support is disabled)
381 if test "$user_disabled_graphviz" = 1; then
382         AC_MSG_RESULT(yes)
383         libgraphviz_found="no"
384 else
385         AC_MSG_RESULT(no)
386         
387         dnl Set pkgconfig path
388         ANJUTA_PKG_CONFIG_PATH_SAVE="${PKG_CONFIG_PATH}"
389         PKG_CONFIG_PATH="/usr/lib/graphviz/pkgconfig:$PKG_CONFIG_PATH"
390         PKG_CONFIG_PATH="/usr/local/lib/graphviz/pkgconfig:$PKG_CONFIG_PATH"
391         PKG_CONFIG_PATH="/usr/lib64/graphviz/pkgconfig:$PKG_CONFIG_PATH"
392         PKG_CONFIG_PATH="/usr/local/lib64/graphviz/pkgconfig:$PKG_CONFIG_PATH"
393         
394         anjuta_save_prefix="$prefix"
395         test "x$prefix" = xNONE && prefix=$ac_default_prefix
396         graphviz_pkgconfig=`eval echo ${libdir}/graphviz/pkgconfig`
397         PKG_CONFIG_PATH="$graphviz_pkgconfig:$PKG_CONFIG_PATH"
398         prefix="$anjuta_save_prefix"
400         export PKG_CONFIG_PATH
401         PKG_CHECK_MODULES(GRAPHVIZ,
402                 [libgvc >= $LIBGRAPHVIZ_REQUIRED libgraph >= $LIBGRAPHVIZ_REQUIRED], 
403                 [libgraphviz_found="yes"],
404                 [libgraphviz_found="no"])
405         AC_SUBST(GRAPHVIZ_CFLAGS)
406         AC_SUBST(GRAPHVIZ_LIBS)
407         
408         dnl Restore pkgconfig path
409         PKG_CONFIG_PATH="${ANJUTA_PKG_CONFIG_PATH_SAVE}"
410         export PKG_CONFIG_PATH
413 AM_CONDITIONAL(HAVE_GRAPHVIZ, [test x$libgraphviz_found = xyes])
415 dnl Define HAVE_GRAPHVIZ to disable Function Call Chart in the Profiler if 
416 dnl Graphviz isn't on the system
417 if test "$libgraphviz_found" = yes; then
418         AC_DEFINE(HAVE_GRAPHVIZ, [], [Define if we have GraphViz >= 2.6.0])
421 dnl Build gtksourceview plugin only on gnome 2.14 and gtk 2.10
422 dnl -------------------------------------------------------------
424 AC_ARG_ENABLE(plugin-sourceview,
425         [ --disable-plugin-sourceview   Disable gtksourceview based editor in Anjuta], 
426         [ if test "$enableval" = "no"; then
427                 user_disabled_sourceview=1
428           fi ],
429         [ user_disabled_sourceview=0 ])
431 AC_MSG_CHECKING(if sourceview plugin is disabled)
432 if test "$user_disabled_sourceview" = 1; then
433         AC_MSG_RESULT(yes)
434         sourceview="no"
435 else
436         AC_MSG_RESULT(no)
437         
438         PKG_CHECK_MODULES(PLUGIN_SOURCEVIEW,
439                 [libgnome-2.0 >= $GTKSOURCEVIEW_GNOME_REQUIRED,
440                 gtk+-2.0 >= $GTKSOURCEVIEW_GTK_REQUIRED,
441                 gtksourceview-1.0 >= $GTKSOURCEVIEW_REQUIRED],
442                 [sourceview="yes"],
443                 [sourceview="no"])
444         AC_SUBST(PLUGIN_SOURCEVIEW_CFLAGS)
445         AC_SUBST(PLUGIN_SOURCEVIEW_LIBS)
448 AM_CONDITIONAL(HAVE_PLUGIN_SOURCEVIEW, [test x$sourceview = xyes])
450 dnl Scintilla Editor
451 dnl -------------------------------------------------------------
453 AC_ARG_ENABLE(plugin-scintilla,
454         [ --disable-plugin-scintilla    Disable Scintilla based editor in Anjuta], 
455         [ if test "$enableval" = "no"; then
456                 user_disabled_scintilla=1
457           fi ],
458         [ user_disabled_scintilla=0 ])
460 AC_MSG_CHECKING(if scintilla plugin is disabled)
461 if test "$user_disabled_scintilla" = 1; then
462         AC_MSG_RESULT(yes)
463         scintilla="no"
464 else
465         AC_MSG_RESULT(no)
466         scintilla="yes"
468 AM_CONDITIONAL(HAVE_PLUGIN_SCINTILLA, [test x$scintilla = xyes])
470 dnl Build symbol-db only if we have gda
471 dnl -------------------------------------------------------------
473 AC_ARG_ENABLE(plugin-symbol-db,
474         [ --disable-plugin-symbol-db    Disable new symbol-db plugin], 
475         [ if test "$enableval" = "no"; then
476                 user_disabled_symboldb=1
477           fi ],
478         [ user_disabled_symboldb=0 ])
480 AC_MSG_CHECKING(if symbol-db plugin is disabled)
481 if test "$user_disabled_symboldb" = 1; then
482         AC_MSG_RESULT(yes)
483         symboldb="no"
484 else
485         AC_MSG_RESULT(no)
486         
487         PKG_CHECK_MODULES(PLUGIN_SYMBOL_DB,
488                 [libgda-3.0 >= $GDA_REQUIRED],
489                 [symboldb="yes"],
490                 [symboldb="no"])
491         AC_SUBST(PLUGIN_SYMBOL_DB_CFLAGS)
492         AC_SUBST(PLUGIN_SYMBOL_DB_LIBS)
495 AM_CONDITIONAL(HAVE_PLUGIN_SYMBOL_DB, [test x$symboldb = xyes])
497 dnl Valgrind plugin
498 dnl check for libbfd
499 dnl -------------------------------------------------------------
501 AC_ARG_ENABLE(plugin-valgrind,
502         [ --disable-plugin-valgrind     Disable Valgrind plugin], 
503         [ if test "$enableval" = "no"; then
504                 user_disabled_valgrind=1
505           fi ],
506         [ user_disabled_valgrind=0 ])
508 AC_MSG_CHECKING(if valgrind plugin is disabled)
509 if test "$user_disabled_valgrind" = 1; then
510         AC_MSG_RESULT(yes)
511         valgrind="no"
512 else
513         AC_MSG_RESULT(no)
514         valgrind="yes"
517 AC_CHECK_LIB(bfd, bfd_get_error, [PLUGIN_VALGRIND_LIBS="-Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic"],
518    valgrind="no",
519   -liberty)
521 AC_SUBST(PLUGIN_VALGRIND_LIBS)
522 AM_CONDITIONAL(HAVE_PLUGIN_VALGRIND, [test x$valgrind = xyes])
527 dnl we need gconftool-2 in order to install the schema
528 AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
530 if test "x$GCONFTOOL" = "xno"; then
531   AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
534 AM_GCONF_SOURCE_2
539 dnl check for bfd_get_section_size_before_reloc() in libbfd
540 AC_MSG_CHECKING(for bfd_get_section_size_before_reloc)
541 AC_TRY_LINK([
542         #include <bfd.h>
543         ], [
544         asection *section;
546         bfd_get_section_size_before_reloc (section);
547         ],
548         AC_MSG_RESULT(yes)
549         AC_DEFINE(HAVE_BFD_GET_SECTION_SIZE_BEFORE_RELOC, [], [Define if libbfd
550 contains the function bfd_get_section_size_before_reloc])
552         AC_MSG_RESULT(no)
558 dnl Setup Anjuta Library flags
559 dnl --------------------------
560 LIBANJUTA_CFLAGS='$(GNOME_UI_CFLAGS) $(GLADE_CFLAGS) -I$(top_srcdir) -DPACKAGE_PIXMAPS_DIR=\""$(datadir)/pixmaps/$(PACKAGE)\"" -DPACKAGE_DATA_DIR=\""$(datadir)/$(PACKAGE)"\"'
561 LIBANJUTA_LIBS='$(top_builddir)/libanjuta/libanjuta.la'
562 AC_SUBST(LIBANJUTA_CFLAGS)
563 AC_SUBST(LIBANJUTA_LIBS)
565 dnl Setup Plugin directories
566 dnl ------------------------
567 anjuta_plugin_dir='$(libdir)/anjuta'
568 anjuta_data_dir='$(datadir)/anjuta'
569 anjuta_ui_dir='$(datadir)/anjuta/ui'
570 anjuta_glade_dir='$(datadir)/anjuta/glade'
571 anjuta_image_dir='$(datadir)/pixmaps/anjuta'
572 AC_SUBST(anjuta_plugin_dir)
573 AC_SUBST(anjuta_data_dir)
574 AC_SUBST(anjuta_ui_dir)
575 AC_SUBST(anjuta_glade_dir)
576 AC_SUBST(anjuta_image_dir)
578 dnl ***************************************************************************
579 dnl Check for old vte version
580 dnl ***************************************************************************
581 PKG_CHECK_MODULES(VTE, vte >= $VTE_NEW_REQUIRED, OLD_VTE=0, OLD_VTE=1)
582 AC_SUBST(OLD_VTE)
583 AC_DEFINE_UNQUOTED(OLD_VTE, $OLD_VTE, [Old version of vte])
585 dnl ***************************************************************************
586 dnl Check for marshal and enum generators
587 dnl ***************************************************************************
588 GLIB_GENMARSHAL="`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`"
589 AC_SUBST(GLIB_GENMARSHAL)
590 GLIB_MKENUMS="`$PKG_CONFIG --variable=glib_mkenums glib-2.0`"
591 AC_SUBST(GLIB_MKENUMS)
593 dnl ***************************************************************************
594 dnl Internatinalization
595 dnl ***************************************************************************
596 GETTEXT_PACKAGE=anjuta
597 AC_SUBST(GETTEXT_PACKAGE)
598 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
599 AM_GLIB_GNU_GETTEXT
600 IT_PROG_INTLTOOL([0.35.0])
602 dnl ***************************************************************************
603 dnl Check for gtk-doc.
604 dnl ***************************************************************************
605 GTK_DOC_CHECK([1.4])
607 dnl ***************************************************************************
608 dnl Check for Gnome XML [Is this still required?]
609 dnl ***************************************************************************
610 dnl GNOME_XML_CHECK
612 dnl ***************************************************************************
613 dnl Check for ScrollKeeper [No documentation for now]
614 dnl ***************************************************************************
615 dnl AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
616 dnl if test x$SCROLLKEEPER_CONFIG = xno; then
617 dnl   AC_MSG_ERROR(Couldn't find scrollkeeper-config, please install the scrollkeeper package. You can get it from http://scrollkeeper.sourceforge.net/)
618 dnl fi
619 dnl SCROLLKEEPER_REQUIRED=0.1.4
620 dnl AC_SUBST(SCROLLKEEPER_REQUIRED)
622 dnl ***************************************************************************
623 dnl Checking for scrollkeeper version [No documentation for now]
624 dnl ***************************************************************************
625 dnl AC_MSG_CHECKING(for scrollkeeper version number)
626 dnl if scrollkeeper-config --version > /dev/null 2>&1; then 
627 dnl    version=`scrollkeeper-config --version`; \
628 dnl    vers=`echo $version | awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'`; \
629 dnl    AC_MSG_RESULT(found $version)
630 dnl    SCROLLKEEPER_VERSION_NUM=$vers
631 dnl else
632 dnl    AC_MSG_ERROR(Did not find scrollkeeper installed)
633 dnl fi
634 dnl AC_SUBST(SCROLLKEEPER_VERSION_NUM)
636 dnl ***************************************************************************
637 dnl Check for PCRE
638 dnl ***************************************************************************
639 dnl Check for PCRE
640 AC_PATH_PROG(PCRE_CONFIG, pcre-config,no)
641 if test x$PCRE_CONFIG = xno; then
642   AC_MSG_ERROR(Please install the PCRE package from http://www.pcre.org/)
644 PCRE_CFLAGS=`pcre-config --cflags`
645 PCRE_LIBS=`pcre-config --libs`
646 AC_SUBST(PCRE_LIBS)
647 AC_SUBST(PCRE_CFLAGS)
649 dnl ***************************************************************************
650 dnl Tagmanager checks.
651 dnl ***************************************************************************
653 dnl Define convenience macros
654 dnl -------------------------
655 dnl CHECK_HEADER_DEFINE(LABEL, HEADER [,ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ] ])
656 AC_DEFUN([CHECK_HEADER_DEFINE],
658         AC_MSG_CHECKING("if $1 is defined in $2")
659         AC_EGREP_CPP(yes,
660 [#include <$2>
661 #ifdef $1
662   yes
663 #endif
664 ], [
665         AC_MSG_RESULT(yes)
666         $3
667 ], [
668         AC_MSG_RESULT(no)
669         $4
670 ]) ])
672 dnl Checks for header files.
673 AC_CHECK_HEADERS(dirent.h fcntl.h fnmatch.h stat.h stdlib.h string.h stdint.h)
674 AC_CHECK_HEADERS(time.h types.h unistd.h)
675 AC_CHECK_HEADERS(sys/dir.h sys/stat.h sys/times.h sys/types.h)
677 dnl Checks for typedefs, structures, and compiler characteristics.
679 dnl Disable cygwin check until someone fixes that stupid autoconf warnings.
680 dnl AC_CYGWIN
681 dnl AC_MINGW
683 AC_C_CONST
684 AC_OBJEXT
685 AC_EXEEXT
687 AC_TYPE_SIZE_T
688 AC_TYPE_OFF_T
690 AC_MSG_CHECKING("for fpos_t")
691 AC_EGREP_HEADER(fpos_t, stdio.h, AC_MSG_RESULT(yes),
693     AC_MSG_RESULT(no)
694     AC_DEFINE(fpos_t, long, [fpos_t is type long])
697 AC_MSG_CHECKING("for clock_t")
698 AC_EGREP_HEADER(clock_t, time.h, AC_MSG_RESULT(yes),
700     AC_MSG_RESULT(no)
701     AC_DEFINE(clock_t, long, [clock_t is type long])
704 CHECK_HEADER_DEFINE(L_tmpnam, stdio.h,, AC_DEFINE(L_tmpnam, 20, [L_tmpname is 20]))
706 CHECK_HEADER_DEFINE(INT_MAX, limits.h,,
707     CHECK_HEADER_DEFINE(MAXINT, limits.h,
708         AC_DEFINE(INT_MAX, MAXINT, [Maximum int size]), AC_DEFINE(INT_MAX, 32767, [Maximum int size])))
710 AC_MSG_CHECKING(if struct stat contains st_ino)
711 AC_TRY_COMPILE([#include <sys/stat.h>], [
712     struct stat st;
713     stat(".", &st);
714     if (st.st_ino > 0)
715         exit(0);
716 ], have_st_ino=yes, have_st_ino=no)
717 AC_MSG_RESULT($have_st_ino)
718 if test yes = "$have_st_ino"; then
719     AC_DEFINE(HAVE_STAT_ST_INO,,[Have stat st_ino])
723 dnl Check for function forkpty in libutil
724 AC_CHECK_LIB(util, forkpty)
726 dnl Checks for library functions.
727 AC_CHECK_FUNCS(fnmatch)
728 AC_CHECK_FUNCS(strstr)
729 AC_CHECK_FUNCS(stricmp)
730 AC_CHECK_FUNCS(strnicmp)
731 AC_CHECK_FUNCS(getline)
733 dnl for libegg/egg-recent-model.c
734 AC_CHECK_DECLS([lockf])
735 AC_CHECK_FUNCS([lockf])
737 AC_CHECK_FUNCS(fgetpos, have_fgetpos=yes)
739 dnl SEEK_SET should be in stdio.h, but may be in unistd.h on SunOS 4.1.x
740 if test "$have_fgetpos" != yes ; then
741     CHECK_HEADER_DEFINE(SEEK_SET, stdio.h,,
742         CHECK_HEADER_DEFINE(SEEK_SET, unistd.h,,
743             AC_DEFINE(SEEK_SET, 0, [Seek set 0])))
746 AC_CHECK_FUNCS(mkstemp, have_mkstemp=yes)
747 if test "$have_mkstemp" != yes ; then
748     AC_CHECK_FUNCS(chmod)
749     if test "$tmpdir_specified" = yes ; then
750         AC_MSG_RESULT(use of tmpnam overrides temporary directory selection)
751     fi
752 else
753     AC_MSG_CHECKING(directory to use for temporary files)
754     if test -z "$enable_tmpdir" -o "$enable_tmpdir" = no -o "$enable_tmpdir" = yes ;
755         then tmpdir=/tmp
756         else tmpdir="$enable_tmpdir"
757     fi
758     if test -d $tmpdir ; then
759         AC_MSG_RESULT($tmpdir)
760         AC_DEFINE_UNQUOTED(TMPDIR, "$tmpdir", [Directory for temporary files])
761     else
762         AC_MSG_WARN($tmpdir does not exist)
763     fi
766 AC_CHECK_FUNCS(strerror opendir)
767 AC_CHECK_FUNCS(clock times, break)
768 AC_CHECK_FUNCS(remove, have_remove=yes,
769     CHECK_HEADER_DEFINE(remove, unistd.h,, AC_DEFINE(remove, unlink, [Remove is unlink])))
771 AC_CHECK_FUNCS(truncate, have_truncate=yes)
772 dnl === Cannot nest AC_CHECK_FUNCS() calls
773 if test "$have_truncate" != yes  ; then
774     AC_CHECK_FUNCS(ftruncate, have_ftruncate=yes)
775     if test "$have_ftruncate" != yes ; then
776         AC_CHECK_FUNCS(chsize)
777     fi
780 AC_CHECK_FUNCS(setenv, have_setenv=yes)
781 dnl === Cannot nest AC_CHECK_FUNCS() calls
782 if test "$have_setenv" != yes ; then
783     AC_CHECK_FUNCS(putenv, have_putenv=yes)
784     if test "$have_putenv" = yes ; then
785         AC_EGREP_HEADER(putenv, stdlib.h, have_putenv_prototype=yes)
786         if test "$have_putenv_prototype" = yes ; then
787             AC_MSG_CHECKING("putenv prototype")
788             AC_EGREP_HEADER([[^A-Za-zo-9_]putenv[   ]*\(.*const.*\)[    ]*;],
789                 stdlib.h, AC_MSG_RESULT(correct),
790                 [
791                     AC_MSG_RESULT(no const)
792                     AC_DEFINE(NON_CONST_PUTENV_PROTOTYPE,,[putenv has non constant prototype])
793                 ])
794         fi
795     fi
799 dnl if test yes = "$CYGWIN"; then with_posix_regex=no; fi
800 if test no != "$with_posix_regex"; then
801     AC_CHECK_FUNCS(regcomp)
802     AC_MSG_CHECKING(if regcomp works)
803     AC_TRY_RUN([
804 #include <sys/types.h>
805 #include <regex.h>
806 main() {
807     regex_t patbuf;
808     exit (regcomp (&patbuf, "/hello/", 0) != 0);
809 }],regcomp_works=yes,regcomp_works=no,AC_DEFINE(CHECK_REGCOMP,,[Check regcomp]))
810     AC_MSG_RESULT($regcomp_works)
811     if test yes != "$regcomp_works"; then
812         AC_DEFINE(REGCOMP_BROKEN,,[Regcomp is broken])
813     fi
816 dnl -----------------------------
817 dnl Checks for FreeBSD Build
818 dnl -----------------------------
819 AC_MSG_CHECKING(if building on FreeBSD)
821 if test `uname -s` = "FreeBSD" ; then
822         AC_MSG_RESULT(yes)
823         FREEBSD_BUILD=-DFREEBSD
824         AC_SUBST(FREEBSD_BUILD)
825         AC_PATH_PROG(GMAKE, gmake, no)
826         if test "x$GMAKE" = "xno"; then
827                 AC_ERROR(You need gmake installed to build Anjuta!)
828         fi
829 else
830         AC_MSG_RESULT(no)
831         GMAKE="make"
834 AC_SUBST(GMAKE)
836 dnl Checks for missing prototypes
837 dnl -----------------------------
838 AC_CHECKING("for missing prototypes")
840 AC_DEFUN([CHECK_PROTO], [AC_EGREP_HEADER([[^A-Za-z0-9_]$1([   ]+[A-Za-z0-9_]*)?\(], $2,, AC_DEFINE(patsubst([NEED_PROTO_NAME], [NAME], translit($1, [a-z], [A-Z])),,[Do not know]) AC_MSG_RESULT(adding prototype for $1))])
842 if test "$have_remove" = yes ; then
843     CHECK_PROTO(remove, stdio.h)
844 else
845     CHECK_PROTO(unlink, unistd.h)
847 CHECK_PROTO(malloc, stdlib.h)
848 CHECK_PROTO(getenv, stdlib.h)
849 CHECK_PROTO(stat,   sys/stat.h)
850 CHECK_PROTO(lstat,  sys/stat.h)
851 if test "$have_fgetpos" = yes ; then
852     CHECK_PROTO(fgetpos, stdio.h)
854 if test "$have_truncate" = yes ; then
855     CHECK_PROTO(truncate, unistd.h)
857 if test "$have_ftruncate" = yes ; then
858     CHECK_PROTO(ftruncate, unistd.h)
861 dnl  **********************************************************
862 dnl  check if we have svn libraries to build subversion plugin
863 dnl  (stolen from kdevelop ;-)
864 dnl  **********************************************************
866 AC_MSG_CHECKING(for Subversion svn-config)
867 AC_ARG_WITH(subversion-dir,
868                 [  --with-subversion-dir=DIR           where Subversion is installed ],
869                 [
870                                 SVNCONFIG="$withval/bin/svn-config"
871                 ])
873 if test -z "$SVNCONFIG"; then
874                 _SVNCONFIG="`svn-config --prefix 2> /dev/null`"
875                 if test -n "$_SVNCONFIG"; then
876                                 SVNCONFIG="$_SVNCONFIG/bin/svn-config"
877                 fi
880 AC_SUBST(SVNCONFIG)
881 if test -x "$SVNCONFIG"; then
882                 SVNLD="`$SVNCONFIG --ldflags 2> /dev/null`"
883                 SVN_LIB="`$SVNCONFIG --libs --cflags 2> /dev/null` -lsvn_client-1 -lsvn_subr-1"
884                 dnl ugly hack for subversion svn-config problems in 0.14.x, to be removed when svn-config is fixed
885                 SVN_INCLUDE="`$SVNCONFIG --includes 2> /dev/null` -I$_SVNCONFIG/include/subversion-1/"
886                 AC_MSG_RESULT(yes)
887 else
888                 AC_MSG_RESULT(not found)
889                 
890                 dnl just a fallback to debian's config so that it works for me :)
891                 AC_ARG_WITH(svn-include,
892                                                                 [[  --with-svn-include=DIR   Use the given path to the subversion headers.]],
893                                                                 [
894                                                                 if test "$withval" != "yes" -a "$withval" != ""; then
895                                                                                 SVN_INCLUDES=$withval
896                                                                 fi
897                                                                 ])
898                 if test -z "$SVN_INCLUDES"; then
899                         SVN_INCLUDES="/usr/local/include /usr/include"
900                 fi
901                 AC_MSG_CHECKING([for Subversion headers])
902                 SVN_INCLUDE=""
903                 for VALUE in $SVN_INCLUDES ; do
904                                 if test -f $VALUE/subversion-1/svn_types.h ; then
905                                                 SVN_INCLUDE=$VALUE/subversion-1
906                                                 break
907                                 fi
908                                 if test -f $VALUE/svn_types.h ; then
909                                                 SVN_INCLUDE=$VALUE
910                                                 break
911                                 fi
912                 done
913                 if test $SVN_INCLUDE ; then
914                                 AC_MSG_RESULT([found])
915                 else
916                                 AC_MSG_RESULT([not found])
917                 fi
918                 SVN_LIBS="/usr/local/lib /usr/lib"
919                 AC_ARG_WITH(svn-lib,
920                                                 [[  --with-svn-lib=DIR  Use the given path to the subversion libraries.]],
921                                                 [
922                                                         if test "$withval" != "yes" -a "$withval" != ""; then
923                                                                 SVN_LIBS=$withval
924                                                         fi
925                                                 ])
926                 AC_MSG_CHECKING([for Subversion libraries])
927                 SVN_LIB=""
928                 for VALUE in $SVN_LIBS ; do
929                                 if ls $VALUE/libsvn_client-1.* 1>/dev/null 2>&1; then
930                                                 SVN_LIB=$VALUE
931                                                 break
932                                 fi
933                 done
934                 if test $SVN_LIB ; then
935                                 AC_MSG_RESULT([found])
936                 else
937                                 AC_MSG_RESULT([not found])
938                 fi
941 dnl ******************************************************************
942 dnl Check for extra libs required by subversion.
943 dnl FIXME: This should actually be done by subversion and not by us.
944 dnl ******************************************************************
946 AC_ARG_ENABLE(plugin-subversion,
947   [  --disable-plugin-subversion        Disable subversion support in Anjuta.],
948   [ if test "$enableval" = "no"; then
949         user_disabled_subversion=1
950     fi ],
951   [ user_disabled_subversion=0 ] )
953 AC_MSG_CHECKING(if subversion support is disabled)
954 if test "$user_disabled_subversion" = 1; then
955         AC_MSG_RESULT(yes)
956         SVN_INCLUDE=""
957         SVN_LIB=""
958 else
959         AC_MSG_RESULT(no)
962 if test -n "$SVN_INCLUDE" ; then
963         dnl ------------------------------------
964         dnl APR. Required by subversion (devel)
965         dnl ------------------------------------
966         
967         APR_CONFIGS="apr-config /usr/local/apr/bin/apr-config/ apr-1-config "
968         AC_ARG_WITH(apr-config,
969         [[  --with-apr-config=FILE    Use the given path to apr-config when determining
970                                                                 APR configuration; defaults to "apr-config"]],
971         [
972         if test "$withval" != "yes" -a "$withval" != ""; then
973           APR_CONFIGS=$withval
974         fi
975         ])
976         AC_MSG_CHECKING([for APR])
977         APR_CONFIG=""
978         for VALUE in $APR_CONFIGS ; do
979                         if $VALUE --cflags > /dev/null 2>&1 ; then
980                                         APR_CONFIG=$VALUE
981                                         break
982                         fi
983         done
984         test $VALUE && APR_CONFIG=$VALUE
985         if test $APR_CONFIG ; then
986                 AC_MSG_RESULT([found])
987                 APR_CFLAGS="`$APR_CONFIG --cflags` `$APR_CONFIG --cppflags`"
988                 APR_INCLUDE="`$APR_CONFIG --includes`"
989                 APR_LIBS="`$APR_CONFIG --link-ld --libs`"
990         else
991                 AC_MSG_RESULT([not found])
992                 dnl AC_MSG_ERROR([APR is required. Try --with-apr-config.])
993         fi
994         
995         dnl -----------------------------------------
996         dnl APR util. Required by subversion (devel)
997         dnl------------------------------------------
998         
999         APU_CONFIGS="apu-config /usr/local/apr/bin/apu-config apu-1-config"
1000         AC_ARG_WITH(apu-config,
1001         [[  --with-apu-config=FILE    Use the given path to apu-config when determining
1002                                                                 APR util configuration; defaults to "apu-config"]],
1003         [
1004                 if test "$withval" != "yes" -a "$withval" != ""; then
1005                         APU_CONFIGS=$withval
1006                 fi
1007         ])
1008         AC_MSG_CHECKING([for APR util])
1009         APU_CONFIG=""
1010         for VALUE in $APU_CONFIGS ; do
1011                         if $VALUE --includes > /dev/null 2>&1 ; then
1012                                         APU_CONFIG=$VALUE
1013                                         break
1014                         fi
1015         done
1016         if test $APU_CONFIG ; then
1017                 AC_MSG_RESULT([found])
1018                 APR_INCLUDE="$APR_INCLUDE `$APU_CONFIG --includes`"
1019                 APR_LIBS="$APR_LIBS `$APU_CONFIG --link-ld --libs`"
1020         else
1021                 AC_MSG_RESULT([not found])
1022         fi
1023         
1024         dnl -----------------------------------------
1025         dnl NEON. Required by subversion (devel)
1026         dnl------------------------------------------
1028         dnl Check for neon. It is required by subversion libs, but for
1029         dnl for some strange reason it's not in it's dependencies.
1030         dnl subversion plugin will be disabled if neon (devel) is not
1031         dnl installed, even if subversion (devel) is installed.
1033         NEON_CONFIGS="neon-config"
1034         AC_ARG_WITH(neon-config,
1035         [[  --with-neon-config=FILE    Use the given path to neon-config when determining
1036                                                                 Neon configuration; defaults to "neon-config"]],
1037         [
1038                 if test "$withval" != "yes" -a "$withval" != ""; then
1039                         NEON_CONFIGS=$withval
1040                 fi
1041         ])
1042         AC_MSG_CHECKING([for Neon])
1043         NEON_CONFIG=""
1044         for VALUE in $NEON_CONFIGS ; do
1045                         if $VALUE --cflags > /dev/null 2>&1 ; then
1046                                         NEON_CONFIG=$VALUE
1047                                         break
1048                         fi
1049         done
1050         if test $NEON_CONFIG ; then
1051                 AC_MSG_RESULT([found])
1052         else
1053                 AC_MSG_RESULT([not found])
1054                 SVN_INCLUDE=""
1055                 SVN_LIB=""
1056         fi
1059 dnl ------------------------------------------
1060 dnl Finally prepare subversion build flags
1061 dnl ------------------------------------------
1063 if test -n "$SVN_INCLUDE" ; then
1064         SVN_INCLUDE="-I$SVN_INCLUDE $APR_INCLUDE"
1065         SVN_LIB="-L$SVN_LIB $APR_LIBS -lsvn_client-1 -lsvn_subr-1"
1066         SVN_CFLAGS="$APR_CFLAGS"
1069 AM_CONDITIONAL(BUILD_SVN, [test -n "$SVN_INCLUDE"])
1070 AC_SUBST(SVN_INCLUDE)
1071 AC_SUBST(SVN_LIB)
1072 AC_SUBST(SVN_CFLAGS)
1074 dnl --------- help outputs -----------
1075 dnl manuals/C/Makefile
1076 dnl manuals/C/anjuta-tutorial/Makefile
1077 dnl manuals/C/anjuta-advanced-tutorial/Makefile
1078 dnl manuals/C/anjuta-faqs/Makefile
1079 dnl manuals/C/anjuta-manual/Makefile
1080 dnl manuals/de/Makefile
1081 dnl manuals/de/anjuta-tutorial/Makefile
1082 dnl manuals/ja/Makefile
1083 dnl manuals/ja/anjuta-faqs/Makefile
1084 dnl manuals/ja/anjuta-manual/Makefile
1086 AC_OUTPUT([
1087 Makefile
1088 po/Makefile.in
1089 tagmanager/Makefile
1090 tagmanager/include/Makefile
1091 global-tags/Makefile
1092 libegg/Makefile
1093 libegg/util/Makefile
1094 libegg/treeviewutils/Makefile
1095 libegg/menu/Makefile
1096 libegg/recent-files/Makefile
1097 anjuta.spec
1098 libanjuta/Makefile
1099 libanjuta/libanjuta-1.0.pc
1100 libanjuta/interfaces/Makefile
1101 src/Makefile
1102 pixmaps/Makefile
1103 data/Makefile
1104 data/welcome.txt
1105 data/properties/Makefile
1106 doc/anjuta.1
1107 doc/anjuta_launcher.1
1108 doc/Makefile
1109 scripts/Makefile
1110 scripts/anjuta_import.sh
1111 launcher/Makefile
1112 plugins/Makefile
1113 plugins/sample1/Makefile
1114 plugins/gtodo/Makefile
1115 plugins/class-gen/Makefile
1116 plugins/class-gen/templates/Makefile
1117 plugins/patch/Makefile
1118 plugins/editor/Makefile
1119 plugins/editor/scintilla/Makefile
1120 plugins/editor/scintilla/include/Makefile
1121 plugins/document-manager/Makefile
1122 plugins/document-manager/images/Makefile
1123 plugins/search/Makefile
1124 plugins/message-view/Makefile
1125 plugins/gdb/Makefile
1126 plugins/gdb/images/Makefile
1127 plugins/debug-manager/Makefile
1128 plugins/debug-manager/images/Makefile
1129 plugins/devhelp/Makefile
1130 plugins/glade/Makefile
1131 plugins/file-manager/Makefile
1132 plugins/file-loader/Makefile
1133 plugins/file-wizard/Makefile
1134 plugins/terminal/Makefile
1135 plugins/build-basic-autotools/Makefile
1136 plugins/profiler/Makefile
1137 plugins/project-manager/Makefile
1138 plugins/symbol-browser/Makefile
1139 plugins/symbol-browser/images/Makefile
1140 plugins/symbol-db/Makefile
1141 plugins/cvs-plugin/Makefile
1142 plugins/project-wizard/Makefile
1143 plugins/macro/Makefile
1144 plugins/subversion/Makefile
1145 plugins/sourceview/Makefile
1146 plugins/tools/Makefile
1147 plugins/tools/scripts/Makefile
1148 plugins/class-inheritance/Makefile
1149 plugins/valgrind/Makefile
1150 plugins/language-manager/Makefile
1151 plugins/project-import/Makefile
1152 plugins/project-wizard/templates/Makefile
1153 plugins/project-wizard/templates/mkfile/Makefile
1154 plugins/project-wizard/templates/mkfile/src/Makefile
1155 plugins/project-wizard/templates/mkfile/po/Makefile
1156 plugins/project-wizard/templates/minimal/Makefile
1157 plugins/project-wizard/templates/terminal/Makefile
1158 plugins/project-wizard/templates/terminal/src/Makefile
1159 plugins/project-wizard/templates/terminal/po/Makefile
1160 plugins/project-wizard/templates/cpp/Makefile
1161 plugins/project-wizard/templates/cpp/src/Makefile
1162 plugins/project-wizard/templates/cpp/po/Makefile
1163 plugins/project-wizard/templates/gtk/Makefile
1164 plugins/project-wizard/templates/gtk/src/Makefile
1165 plugins/project-wizard/templates/gtk/po/Makefile
1166 plugins/project-wizard/templates/anjuta-plugin/Makefile
1167 plugins/project-wizard/templates/anjuta-plugin/src/Makefile
1168 plugins/project-wizard/templates/anjuta-plugin/po/Makefile
1169 plugins/project-wizard/templates/gnome/Makefile
1170 plugins/project-wizard/templates/gnome/src/Makefile
1171 plugins/project-wizard/templates/gnome/po/Makefile
1172 plugins/project-wizard/templates/gtkmm/Makefile
1173 plugins/project-wizard/templates/gtkmm/src/Makefile
1174 plugins/project-wizard/templates/gtkmm/po/Makefile
1175 plugins/project-wizard/templates/gcj/Makefile
1176 plugins/project-wizard/templates/gcj/src/Makefile
1177 plugins/project-wizard/templates/java/Makefile
1178 plugins/project-wizard/templates/java/src/Makefile
1179 plugins/project-wizard/templates/java/po/Makefile
1180 plugins/project-wizard/templates/python/Makefile
1181 plugins/project-wizard/templates/python/src/Makefile
1182 plugins/project-wizard/templates/python/po/Makefile
1183 plugins/project-wizard/templates/wxwin/Makefile
1184 plugins/project-wizard/templates/wxwin/src/Makefile
1185 plugins/project-wizard/templates/wxwin/po/Makefile
1186 plugins/project-wizard/templates/xlib/Makefile
1187 plugins/project-wizard/templates/xlib/src/Makefile
1188 plugins/project-wizard/templates/xlib/po/Makefile
1189 plugins/project-wizard/templates/xlib-dock/Makefile
1190 plugins/project-wizard/templates/xlib-dock/src/Makefile
1191 plugins/project-wizard/templates/xlib-dock/po/Makefile
1192 plugins/project-wizard/templates/sdl/Makefile
1193 plugins/project-wizard/templates/sdl/src/Makefile
1194 plugins/project-wizard/templates/sdl/po/Makefile
1195 plugins/language-support-cpp-java/Makefile
1196 plugins/indent/Makefile
1197 anjuta.desktop.in
1198 manuals/Makefile
1199 manuals/reference/Makefile
1200 manuals/reference/libanjuta/Makefile
1201 manuals/reference/libanjuta/version.xml
1202 manuals/anjuta-manual/Makefile
1203 manuals/anjuta-faqs/Makefile
1204 mime/Makefile
1206 echo " "
1207 echo "-------------------------------------------------------------------"
1208 echo "Conditionally built plugins:"
1209 echo "-------------------------------------------------------------------"
1210 if [ test -n "$SVN_INCLUDE" ]; then
1211         echo "Building subversion plugin: ............................YES"
1212 else
1213         echo "Building subversion plugin: ............................NO"
1214                 echo "        Requires apr (>= 0.9.4); http://subversion.org"
1215                 echo "        Requires apr-util (>= 0.9.4); http://subversion.org"
1216                 echo "        Requires neon (>= 0.24.5); http://subversion.org"
1217                 echo "        Requires subversion (>= 1.0.2); http://subversion.org"
1220 if [ test x$libgladeui_found = xyes ]; then
1221        echo "Building glade plugin: .................................YES"
1222 else
1223        echo "Building glade plugin: .................................NO"
1224        echo "        Requires glade-3 (>= 3.0.2)"
1227 if [ test x$devhelp_enabled = xyes ]; then
1228        echo "Building devhelp plugin: ...............................YES"
1229 else
1230        echo "Building devhelp plugin: ...............................NO"
1231        echo "        Requires devhelp"
1234 if [ test x$libgraphviz_found = xyes ]; then
1235         echo "Building class inheritance plugin: .....................YES"
1236         echo "Building performance profiler with function call chart: YES"
1237 else
1238         echo "Building class inheritance plugin: .....................NO"
1239         echo "        Requires graphviz (>= 2.6.0); http://graphviz.org"
1240         echo "Building performance profiler with function call chart: NO"
1241          echo "        Requires graphviz (>= 2.6.0); http://graphviz.org"
1244 if [ test x$valgrind = xyes ]; then
1245         echo "Building Valgrind debugger plugin: .....................YES"
1246 else
1247         echo "Building Valgrind debugger plugin: .....................NO"
1248         echo "          Requires binutils-dev"
1251 if [ test x$sourceview = xyes ]; then
1252         echo "Building GtkSourceView based editor: ...................YES"
1253 else
1254         echo "Building GtkSourceView based editor: ...................NO"
1257 if [ test x$scintilla = xyes ]; then
1258         echo "Building Scintilla based editor: .......................YES"
1259 else
1260         echo "Building Scintilla based editor: .......................NO"
1263 if [ test x$symboldb = xyes ]; then
1264         echo "Building new Symbol-db plugin: .......................YES"
1265 else
1266         echo "Building new Symbol-db plugin: .......................NO"
1268 echo "-------------------------------------------------------------------"
1269 echo "AM_CFLAGS = $AM_CFLAGS"
1270 echo "AM_CXXFLAGS = $AM_CXXFLAGS"