2007-03-04 Johannes Schmid <jhs@gnome.org>
[anjuta-git-plugin.git] / configure.in
bloba418292e944a39897a19024c2338acadc642806d
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, 1)
7 m4_define(anjuta_micro_version,  1)
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_UI_REQUIRED=2.12.0
32 GNOME_PRINT_REQUIRED=2.12.0
33 GNOME_PRINT_UI_REQUIRED=2.12.0
34 GNOME_VFS_REQUIRED=2.10.0
35 GCONF_REQUIRED=2.12.0
36 VTE_REQUIRED=0.9.0
37 VTE_NEW_REQUIRED=0.13.1
38 LIBXML_REQUIRED=2.4.23
39 PANGO_REQUIRED=1.1.1
40 PCRE_REQUIRED=3.9
41 LIBDEVHELP_REQUIRED=0.13
42 GDL_REQUIRED=0.7.0
43 GNOMEBUILD_REQUIRED=0.1.4
44 GLADEUI_REQUIRED=3.0.2
45 GLADEUI_SVN_REQUIRED=3.1.4
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
55 dnl LIBGTODO_REQUIRED=0.15
57 AC_SUBST(GLIB_REQUIRED)
58 AC_SUBST(GOBJECT_REQUIRED)
59 AC_SUBST(GMODULE_REQUIRED)
60 AC_SUBST(GDK_PIXBUF_REQUIRED)
61 AC_SUBST(GTK_REQUIRED)
62 AC_SUBST(ORBIT_REQUIRED)
63 AC_SUBST(LIBGLADE_REQUIRED)
64 AC_SUBST(GNOME_REQUIRED)
65 AC_SUBST(GNOME_UI_REQUIRED)
66 AC_SUBST(GNOME_PRINT_REQUIRED)
67 AC_SUBST(GNOME_PRINT_UI_REQUIRED)
68 AC_SUBST(GNOME_VFS_REQUIRED)
69 AC_SUBST(GCONF_REQUIRED)
70 AC_SUBST(VTE_REQUIRED)
71 AC_SUBST(LIBXML_REQUIRED)
72 AC_SUBST(PANGO_REQUIRED)
73 AC_SUBST(VTE_NEW_REQUIRED)
74 AC_SUBST(PCRE_REQUIRED)
75 AC_SUBST(LIBDEVHELP_REQUIRED)
76 AC_SUBST(GDL_REQUIRED)
77 AC_SUBST(GNOMEBUILD_REQUIRED)
78 AC_SUBST(GLADEUI_REQUIRED)
79 AC_SUBST(GLADEUI_SVN_REQUIRED)
80 AC_SUBST(LIBGRAPHVIZ_REQUIRED)
81 AC_SUBST(NEON_REQUIRED)
82 AC_SUBST(SUBVERSION_REQUIRED)
83 AC_SUBST(GTKSOURCEVIEW_REQUIRED)
84 AC_SUBST(GTKSOURCEVIEW_GNOME_REQUIRED)
85 AC_SUBST(GTKSOURCEVIEW_GTK_REQUIRED)
86 AC_SUBST(BINUTILS_REQUIRED)
87 AC_SUBST(LIBWNCK_REQUIRED)
89 dnl AC_SUBST(LIBGTODO_REQUIRED)
91 AM_INIT_AUTOMAKE([1.9 dist-bzip2 no-dist-gzip])
92 AC_CONFIG_HEADERS(config.h)
93 AC_DISABLE_STATIC
94 AM_MAINTAINER_MODE
95 GNOME_DOC_INIT
97 CFLAGS_WARNINGS="-Wall -Wmissing-prototypes -Wmissing-declarations -Wparentheses -Wpointer-arith"
98 WCXXFLAGS_WARNINGS="-Wall -Wparentheses -Wpointer-arith"
100 if test "x$GCC" = xyes; then
101     CFLAGS_WARNINGS=""
102     CXXFLAGS_WARNINGS=""
105 AM_CFLAGS="$AM_CFLAGS -O0 -g $CFLAGS_WARNINGS"
106 AM_CXXFLAGS="$AM_CXXFLAGS -O0 -g $CXXFLAGS_WARNINGS"
108 dnl Enable debugging mode
109 AC_ARG_ENABLE(debug,
110   [  --enable-debug           Enable debug messages],
111   AM_CFLAGS="$AM_CFLAGS -DDEBUG"
112   AM_CXXFLAGS="$AM_CXXFLAGS -DDEBUG")
113 AC_SUBST(AM_CFLAGS)
114 AC_SUBST(AM_CXXFLAGS)
116 dnl Disable deprecated APIs
117 AC_ARG_ENABLE(deprecated,
118   [  --disable-deprecated     Disable deprecated APIs],
119   [ if test "$enableval" = "no"; then
120     DEPRECATED_FLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED"
121   fi ],
122  [ DEPRECATED_FLAGS="" ])
123 AC_SUBST(DEPRECATED_FLAGS)
125 dnl Enable versioned user preferences directory
126 AC_ARG_WITH(pref-suffix,
127   [  --with-pref-suffix=VALUE Suffix to add to user preferences dir.],
128   PREF_SUFFIX="$withval")
130 AC_SUBST(PREF_SUFFIX)
131 AC_DEFINE_UNQUOTED(PREF_SUFFIX,
132       "${PREF_SUFFIX}",
133           [Suffix to add to preferences directory])
135 #Check for C Compiler
136 AC_PROG_CC
137 AC_PROG_CPP
138 AC_LANG_C
140 #Check for C++ Compiler
141 AC_PROG_CXX
142 AC_LANG_CPLUSPLUS
144 AC_ISC_POSIX
145 AC_HEADER_STDC
146 AM_DISABLE_STATIC
147 AM_PROG_LIBTOOL
149 AC_TYPE_SIGNAL
151 dnl ***************************************************************************
152 dnl Check for pkgconfig
153 dnl ***************************************************************************
154 AC_PATH_PROG(PKGCONFIG_CONFIG, pkg-config,no)
155 if test x$PKGCONFIG_CONFIG = xno; then
156   AC_MSG_ERROR(Please install the pkg-config package from http://www.freedesktop.org/software/pkgconfig/)
159 dnl pkg checks are split into separate packages instead of single package
160 dnl because different plugins have different requirements.
162 PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED)
163 AC_SUBST(GLIB_CFLAGS)
164 AC_SUBST(GLIB_LIBS)
166 PKG_CHECK_MODULES(GOBJECT, gobject-2.0 >= $GOBJECT_REQUIRED)
167 AC_SUBST(GOBJECT_CFLAGS)
168 AC_SUBST(GOBJECT_LIBS)
170 PKG_CHECK_MODULES(GMODULE, gmodule-2.0 >= $GMODULE_REQUIRED)
171 AC_SUBST(GMODULE_CFLAGS)
172 AC_SUBST(GMODULE_LIBS)
174 PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= $GTHREAD_REQUIRED)
175 AC_SUBST(GTHREAD_CFLAGS)
176 AC_SUBST(GTHREAD_LIBS)
178 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED)
179 AC_SUBST(GTK_CFLAGS)
180 AC_SUBST(GTK_LIBS)
182 PKG_CHECK_MODULES(GDK_PIXBUF, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED)
183 AC_SUBST(GDK_PIXBUF_CFLAGS)
184 AC_SUBST(GDK_PIXBUF_LIBS)
186 PKG_CHECK_MODULES(ORBIT, ORBit-2.0 >= $ORBIT_REQUIRED)
187 AC_SUBST(ORBIT_CFLAGS)
188 AC_SUBST(ORBIT_LIBS)
190 PKG_CHECK_MODULES(GLADE, libglade-2.0 >= $LIBGLADE_REQUIRED)
191 AC_SUBST(GLADE_CFLAGS)
192 AC_SUBST(GLADE_LIBS)
194 PKG_CHECK_MODULES(GNOME, libgnome-2.0 >= $GNOME_REQUIRED)
195 AC_SUBST(GNOME_CFLAGS)
196 AC_SUBST(GNOME_LIBS)
198 PKG_CHECK_MODULES(GNOME_UI, libgnomeui-2.0 >= $GNOME_UI_REQUIRED)
199 AC_SUBST(GNOME_UI_CFLAGS)
200 AC_SUBST(GNOME_UI_LIBS)
202 PKG_CHECK_MODULES(GNOME_PRINT, libgnomeprint-2.2 >= $GNOME_PRINT_REQUIRED)
203 AC_SUBST(GNOME_PRINT_CFLAGS)
204 AC_SUBST(GNOME_PRINT_LIBS)
206 PKG_CHECK_MODULES(GNOME_PRINT_UI, libgnomeprintui-2.2 >= $GNOME_PRINT_UI_REQUIRED)
207 AC_SUBST(GNOME_PRINT_UI_CFLAGS)
208 AC_SUBST(GNOME_PRINT_UI_LIBS)
210 PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED)
211 AC_SUBST(GNOME_VFS_CFLAGS)
212 AC_SUBST(GNOME_VFS_LIBS)
214 PKG_CHECK_MODULES(GNOME_VFS_MODULE, gnome-vfs-module-2.0 >= $GNOME_VFS_REQUIRED)
215 AC_SUBST(GNOME_VFS_MODULE_CFLAGS)
216 AC_SUBST(GNOME_VFS_MODULE_LIBS)
218 PKG_CHECK_MODULES(GCONF, gconf-2.0 >= $GCONF_REQUIRED)
219 AC_SUBST(GCONF_CFLAGS)
220 AC_SUBST(GCONF_LIBS)
222 dnl PKG_CHECK_MODULES(BONOBO, libbonobo-2.0 >= $BONOBO_REQUIRED)
223 dnl AC_SUBST(BONOBO_CFLAGS)
224 dnl AC_SUBST(BONOBO_LIBS)
226 dnl PKG_CHECK_MODULES(BONOBO_UI, libbonobo-2.0 >= $BONOBO_UI_REQUIRED)
227 dnl AC_SUBST(BONOBO_UI_CFLAGS)
228 dnl AC_SUBST(BONOBO_UI_LIBS)
230 PKG_CHECK_MODULES(VTE, vte >= $VTE_REQUIRED)
231 AC_SUBST(VTE_CFLAGS)
232 AC_SUBST(VTE_LIBS)
234 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED)
235 AC_SUBST(LIBXML_CFLAGS)
236 AC_SUBST(LIBXML_LIBS)
238 PKG_CHECK_MODULES(PANGO, pango >= $PANGO_REQUIRED)
239 AC_SUBST(PANGO_CFLAGS)
240 AC_SUBST(PANGO_LIBS)
242 PKG_CHECK_MODULES(GDL, gdl-1.0 >= $GDL_REQUIRED gdl-gnome-1.0 >= $GDL_REQUIRED)
243 AC_SUBST(GDL_CFLAGS)
244 AC_SUBST(GDL_LIBS)
246 PKG_CHECK_MODULES(LIBXSLT, libxslt)
247 AC_SUBST(LIBXSLT_CFLAGS)
248 AC_SUBST(LIBXSLT_LIBS)
250 dnl Check for autogen
251 dnl -----------------
252 AC_PATH_PROG(AUTOGEN_PATH, autogen,no)
253 if test x$AUTOGEN_PATH = xno; then
254    AC_MSG_ERROR([Couldn't find autogen, please install the autogen package. You can get it from http://autogen.sourceforge.net/])
257 dnl Check for Devhelp
258 dnl -----------------
260 AC_ARG_ENABLE(plugin-devhelp,
261   [  --disable-plugin-devhelp        Disable devhelp plugin support in Anjuta.],
262   [ if test "$enableval" = "no"; then
263        user_disabled_devhelp=1
264     fi ],
265   [ user_disabled_devhelp=0 ] )
267 AC_MSG_CHECKING(if devhelp plugin is disabled)
268 if test "$user_disabled_devhelp" = 1; then
269         AC_MSG_RESULT(yes)
270         devhelp_enabled="no"
271 else
272         AC_MSG_RESULT(no)
273         devhelp_old=yes
274         PKG_CHECK_MODULES(PLUGIN_DEVHELP, 
275                                 [libdevhelp-1.0 >= $LIBDEVHELP_REQUIRED],
276                                          [
277                                             devhelp_old=no
278                                                 devhelp_enabled=yes
279                                          ], [
280                                                    AC_MSG_RESULT([version >= 0.11 not found])
281                                                    devhelp_old=yes
282                                                    devhelp_enabled=no
283                                          ])
284         if test x$devhelp_old = xyes; then
285           PKG_CHECK_MODULES(PLUGIN_DEVHELP, [libdevhelp-1.0 >= 0.9], [devhelp_enabled=yes], [devhelp_enabled=no])
286                 if test x$devhelp_enabled = xyes; then
287               AC_DEFINE(HAVE_OLD_DEVHELP, 1, [If old devhelp (>= 0.9 < 0.11) is installed])
288                 fi
289         fi
290         AC_SUBST(PLUGIN_DEVHELP_CFLAGS)
291         AC_SUBST(PLUGIN_DEVHELP_LIBS)
294 if test x$devhelp_enabled = xyes; then
295         GECKO_HOME=`$PKGCONFIG_CONFIG --variable=gecko_home libdevhelp-1.0`
296         if test x$GECKO_HOME != x; then
297                 ANJUTA_LDFLAGS="$ANJUTA_LDFLAGS -R$GECKO_HOME"
298         fi
300 AC_SUBST(ANJUTA_LDFLAGS)
302 AM_CONDITIONAL(HAVE_PLUGIN_DEVHELP, [test x$devhelp_enabled = xyes])
304 dnl Check for GTodo
305 dnl -----------------
306 dnl PKG_CHECK_MODULES(PLUGIN_GTODO, libgtodo-1.0 >= $LIBGTODO_REQUIRED)
307 dnl AC_SUBST(PLUGIN_GTODO_CFLAGS)
308 dnl AC_SUBST(PLUGIN_GTODO_LIBS)
310 dnl Check for Gnome Build
311 dnl ---------------------
313 PKG_CHECK_MODULES(PLUGIN_GNOMEBUILD, gnome-build-1.0 >= $GNOMEBUILD_REQUIRED)
314 AC_SUBST(PLUGIN_GNOMEBUILD_CFLAGS)
315 AC_SUBST(PLUGIN_GNOMEBUILD_LIBS)
317 dnl Check for Glade3
318 dnl ---------------------
320 AC_ARG_ENABLE(plugin-glade,
321   [  --disable-plugin-glade        Disable glade plugin support in Anjuta.],
322   [ if test "$enableval" = "no"; then
323        user_disabled_glade=1
324     fi ],
325   [ user_disabled_glade=0 ] )
327 AC_MSG_CHECKING(if glade plugin is disabled)
328 if test "$user_disabled_glade" = 1; then
329         AC_MSG_RESULT(yes)
330         libgladeui_found="no"
331 else
332         AC_MSG_RESULT(no)
333         PKG_CHECK_MODULES(PLUGIN_GLADE, [gladeui-1.0 >= $GLADEUI_SVN_REQUIRED],
334                 [
335                         libgladeui_found="yes"
336                 ], [
337                         libgladeui_found="no"
338                 ])
339         if test x$libgladeui_found = xno; then
340                 PKG_CHECK_MODULES(PLUGIN_GLADE, [libgladeui-1.0 > $GLADEUI_REQUIRED],
341                         [
342                                 libgladeui_found="old"
343                         ], [
344                                 libgladeui_found="no"
345                         ])
346         fi
347         if test x$libgladeui_found = xold; then
348                 libgladeui_found="yes"
349                 AC_DEFINE_UNQUOTED(GLADEUI_LAST_PUBLIC, [1], [Last public GLADEUI version])
350                 AC_SUBST(GLADEUI_LAST_PUBLIC)
351         fi
352         if test x$libgladeui_found = xno; then
353                 PKG_CHECK_MODULES(PLUGIN_GLADE, [libgladeui-1.0 = $GLADEUI_REQUIRED],
354                         [
355                                 libgladeui_found="old"
356                         ], [
357                                 libgladeui_found="no"
358                         ])
359         fi
360         if test x$libgladeui_found = xold; then
361                 libgladeui_found="yes"
362                 AC_DEFINE_UNQUOTED(GLADEUI_OLD, [1], [Older GLADEUI version])
363                 AC_SUBST(GLADEUI_OLD)
364         fi
365         AC_SUBST(PLUGIN_GLADE_CFLAGS)
366         AC_SUBST(PLUGIN_GLADE_LIBS)
369 AM_CONDITIONAL(HAVE_PLUGIN_GLADE, [test x$libgladeui_found = xyes])
371 dnl Check for graphviz (class inheritance and profiler plugins)
372 dnl --------------------------------------------------------------------------
373 dnl FIXME: For some strange reason graphviz-devel rpm install the *.pc files
374 dnl in /usr/lib/graphviz/pkgconfig, instead of usual /usr/lib/pkgconfig. This
375 dnl makes pkgconfig check fail if we don't add the above path in
376 dnl PKG_CONFIG_PATH. We have added both /usr/lib/graphviz/pkgconfig and
377 dnl /usr/local/lib/pkgconfig paths. If graphviz is installed in other prefix
378 dnl (other than /usr or /usr/local or the current installation prefix),
379 dnl following pkgconfig check will fail.
380 dnl --------------------------------------------------------------------------
381 AC_ARG_ENABLE(graphviz,
382         [ --disable-graphviz            Disable GraphViz support in Anjuta], 
383         [ if test "$enableval" = "no"; then
384                 user_disabled_graphviz=1
385           fi ],
386         [ user_disabled_graphviz=0 ])
388 AC_MSG_CHECKING(if GraphViz support is disabled)
389 if test "$user_disabled_graphviz" = 1; then
390         AC_MSG_RESULT(yes)
391         libgraphviz_found="no"
392 else
393         AC_MSG_RESULT(no)
394         
395         dnl Set pkgconfig path
396         ANJUTA_PKG_CONFIG_PATH_SAVE="${PKG_CONFIG_PATH}"
397         PKG_CONFIG_PATH="/usr/lib/graphviz/pkgconfig:$PKG_CONFIG_PATH"
398         PKG_CONFIG_PATH="/usr/local/lib/graphviz/pkgconfig:$PKG_CONFIG_PATH"
399         PKG_CONFIG_PATH="/usr/lib64/graphviz/pkgconfig:$PKG_CONFIG_PATH"
400         PKG_CONFIG_PATH="/usr/local/lib64/graphviz/pkgconfig:$PKG_CONFIG_PATH"
401         
402         anjuta_save_prefix="$prefix"
403         test "x$prefix" = xNONE && prefix=$ac_default_prefix
404         graphviz_pkgconfig=`eval echo ${libdir}/graphviz/pkgconfig`
405         PKG_CONFIG_PATH="$graphviz_pkgconfig:$PKG_CONFIG_PATH"
406         prefix="$anjuta_save_prefix"
408         export PKG_CONFIG_PATH
409         PKG_CHECK_MODULES(GRAPHVIZ,
410                 [libgvc >= $LIBGRAPHVIZ_REQUIRED], 
411                 [libgraphviz_found="yes"],
412                 [libgraphviz_found="no"])
413         AC_SUBST(GRAPHVIZ_CFLAGS)
414         AC_SUBST(GRAPHVIZ_LIBS)
415         
416         dnl Restore pkgconfig path
417         PKG_CONFIG_PATH="${ANJUTA_PKG_CONFIG_PATH_SAVE}"
418         export PKG_CONFIG_PATH
421 AM_CONDITIONAL(HAVE_GRAPHVIZ, [test x$libgraphviz_found = xyes])
423 dnl Define HAVE_GRAPHVIZ to disable Function Call Chart in the Profiler if 
424 dnl Graphviz isn't on the system
425 if test "$libgraphviz_found" = yes; then
426         AC_DEFINE(HAVE_GRAPHVIZ, [], [Define if we have GraphViz >= 2.6.0])
429 dnl Build gtksourceview plugin only on gnome 2.14 and gtk 2.10
430 dnl -------------------------------------------------------------
432 AC_ARG_ENABLE(plugin-sourceview,
433         [ --disable-plugin-sourceview   Disable gtksourceview based editor in Anjuta], 
434         [ if test "$enableval" = "no"; then
435                 user_disabled_sourceview=1
436           fi ],
437         [ user_disabled_sourceview=0 ])
439 AC_MSG_CHECKING(if sourceview plugin is disabled)
440 if test "$user_disabled_sourceview" = 1; then
441         AC_MSG_RESULT(yes)
442         sourceview="no"
443 else
444         AC_MSG_RESULT(no)
445         
446         PKG_CHECK_MODULES(PLUGIN_SOURCEVIEW,
447                 [libgnome-2.0 >= $GTKSOURCEVIEW_GNOME_REQUIRED,
448                 gtk+-2.0 >= $GTKSOURCEVIEW_GTK_REQUIRED,
449                 gtksourceview-1.0 >= $GTKSOURCEVIEW_REQUIRED],
450                 [sourceview="yes"],
451                 [sourceview="no"])
452         AC_SUBST(PLUGIN_SOURCEVIEW_CFLAGS)
453         AC_SUBST(PLUGIN_SOURCEVIEW_LIBS)
456 AM_CONDITIONAL(HAVE_PLUGIN_SOURCEVIEW, [test x$sourceview = xyes])
458 dnl Scintilla Editor
459 dnl -------------------------------------------------------------
461 AC_ARG_ENABLE(plugin-scintilla,
462         [ --disable-plugin-scintilla    Disable Scintilla based editor in Anjuta], 
463         [ if test "$enableval" = "no"; then
464                 user_disabled_scintilla=1
465           fi ],
466         [ user_disabled_scintilla=0 ])
468 AC_MSG_CHECKING(if scintilla plugin is disabled)
469 if test "$user_disabled_scintilla" = 1; then
470         AC_MSG_RESULT(yes)
471         scintilla="no"
472 else
473         AC_MSG_RESULT(no)
474         scintilla="yes"
476 AM_CONDITIONAL(HAVE_PLUGIN_SCINTILLA, [test x$scintilla = xyes])
478 dnl Valgrind plugin
479 dnl check for libbfd
480 dnl -------------------------------------------------------------
482 AC_ARG_ENABLE(plugin-valgrind,
483         [ --disable-plugin-valgrind     Disable Valgrind plugin], 
484         [ if test "$enableval" = "no"; then
485                 user_disabled_valgrind=1
486           fi ],
487         [ user_disabled_valgrind=0 ])
489 AC_MSG_CHECKING(if valgrind plugin is disabled)
490 if test "$user_disabled_valgrind" = 1; then
491         AC_MSG_RESULT(yes)
492         valgrind="no"
493 else
494         AC_MSG_RESULT(no)
495         valgrind="yes"
498 AC_CHECK_LIB(bfd, bfd_get_error, [PLUGIN_VALGRIND_LIBS="-Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic"],
499    valgrind="no",
500   -liberty)
502 AC_SUBST(PLUGIN_VALGRIND_LIBS)
503 AM_CONDITIONAL(HAVE_PLUGIN_VALGRIND, [test x$valgrind = xyes])
508 dnl we need gconftool-2 in order to install the schema
509 AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
511 if test "x$GCONFTOOL" = "xno"; then
512   AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
515 AM_GCONF_SOURCE_2
520 dnl check for bfd_get_section_size_before_reloc() in libbfd
521 AC_MSG_CHECKING(for bfd_get_section_size_before_reloc)
522 AC_TRY_LINK([
523         #include <bfd.h>
524         ], [
525         asection *section;
527         bfd_get_section_size_before_reloc (section);
528         ],
529         AC_MSG_RESULT(yes)
530         AC_DEFINE(HAVE_BFD_GET_SECTION_SIZE_BEFORE_RELOC, [], [Define if libbfd
531 contains the function bfd_get_section_size_before_reloc])
533         AC_MSG_RESULT(no)
539 dnl Setup Anjuta Library flags
540 dnl --------------------------
541 LIBANJUTA_CFLAGS='$(GNOME_UI_CFLAGS) $(GLADE_CFLAGS) -I$(top_srcdir) -DPACKAGE_PIXMAPS_DIR=\""$(datadir)/pixmaps/$(PACKAGE)\"" -DPACKAGE_DATA_DIR=\""$(datadir)/$(PACKAGE)"\"'
542 LIBANJUTA_LIBS='$(top_builddir)/libanjuta/libanjuta.la'
543 AC_SUBST(LIBANJUTA_CFLAGS)
544 AC_SUBST(LIBANJUTA_LIBS)
546 dnl Setup Plugin directories
547 dnl ------------------------
548 anjuta_plugin_dir='$(libdir)/anjuta'
549 anjuta_data_dir='$(datadir)/anjuta'
550 anjuta_ui_dir='$(datadir)/anjuta/ui'
551 anjuta_glade_dir='$(datadir)/anjuta/glade'
552 anjuta_image_dir='$(datadir)/pixmaps/anjuta'
553 AC_SUBST(anjuta_plugin_dir)
554 AC_SUBST(anjuta_data_dir)
555 AC_SUBST(anjuta_ui_dir)
556 AC_SUBST(anjuta_glade_dir)
557 AC_SUBST(anjuta_image_dir)
559 dnl ***************************************************************************
560 dnl Check for old vte version
561 dnl ***************************************************************************
562 PKG_CHECK_MODULES(VTE, vte >= $VTE_NEW_REQUIRED, OLD_VTE=0, OLD_VTE=1)
563 AC_SUBST(OLD_VTE)
564 AC_DEFINE_UNQUOTED(OLD_VTE, $OLD_VTE, [Old version of vte])
566 dnl ***************************************************************************
567 dnl Check for marshal and enum generators
568 dnl ***************************************************************************
569 GLIB_GENMARSHAL="`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`"
570 AC_SUBST(GLIB_GENMARSHAL)
571 GLIB_MKENUMS="`$PKG_CONFIG --variable=glib_mkenums glib-2.0`"
572 AC_SUBST(GLIB_MKENUMS)
574 dnl ***************************************************************************
575 dnl Internatinalization
576 dnl ***************************************************************************
577 GETTEXT_PACKAGE=anjuta
578 AC_SUBST(GETTEXT_PACKAGE)
579 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
580 AM_GLIB_GNU_GETTEXT
581 IT_PROG_INTLTOOL([0.35.0])
583 dnl gtk-doc
584 dnl GTK_DOC_CHECK([1.0])
586 dnl ***************************************************************************
587 dnl Check for gtk-doc.
588 dnl ***************************************************************************
589 AC_ARG_WITH(html-dir, [  --with-html-dir=PATH path to installed docs ])
590 if test "x$with_html_dir" = "x" ; then
591   HTML_DIR='${datadir}/gtk-doc/html'
592 else
593   HTML_DIR=$with_html_dir
595 AC_SUBST(HTML_DIR)
597 gtk_doc_min_version=1.0
598 AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
599 if pkg-config --atleast-version=$gtk_doc_min_version gtk-doc; then
600   AC_MSG_RESULT(yes)
601   GTKDOC=true
602 else
603   AC_MSG_RESULT(no)
604   GTKDOC=false
606 dnl Let people disable the gtk-doc stuff.
607 AC_ARG_ENABLE(gtk-doc, [  --enable-gtk-doc  Use gtk-doc to build documentation [default=auto]], enable_gtk_doc="$enableval", enable_gtk_doc=auto)
608 if test x$enable_gtk_doc = xauto ; then
609   if test x$GTKDOC = xtrue ; then
610     enable_gtk_doc=yes
611   else
612     enable_gtk_doc=no
613   fi
615 AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
617 dnl ***************************************************************************
618 dnl Check for Gnome XML [Is this still required?]
619 dnl ***************************************************************************
620 dnl GNOME_XML_CHECK
622 dnl ***************************************************************************
623 dnl Check for ScrollKeeper [No documentation for now]
624 dnl ***************************************************************************
625 dnl AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
626 dnl if test x$SCROLLKEEPER_CONFIG = xno; then
627 dnl   AC_MSG_ERROR(Couldn't find scrollkeeper-config, please install the scrollkeeper package. You can get it from http://scrollkeeper.sourceforge.net/)
628 dnl fi
629 dnl SCROLLKEEPER_REQUIRED=0.1.4
630 dnl AC_SUBST(SCROLLKEEPER_REQUIRED)
632 dnl ***************************************************************************
633 dnl Checking for scrollkeeper version [No documentation for now]
634 dnl ***************************************************************************
635 dnl AC_MSG_CHECKING(for scrollkeeper version number)
636 dnl if scrollkeeper-config --version > /dev/null 2>&1; then 
637 dnl    version=`scrollkeeper-config --version`; \
638 dnl    vers=`echo $version | awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'`; \
639 dnl    AC_MSG_RESULT(found $version)
640 dnl    SCROLLKEEPER_VERSION_NUM=$vers
641 dnl else
642 dnl    AC_MSG_ERROR(Did not find scrollkeeper installed)
643 dnl fi
644 dnl AC_SUBST(SCROLLKEEPER_VERSION_NUM)
646 dnl ***************************************************************************
647 dnl Check for PCRE
648 dnl ***************************************************************************
649 dnl Check for PCRE
650 AC_PATH_PROG(PCRE_CONFIG, pcre-config,no)
651 if test x$PCRE_CONFIG = xno; then
652   AC_MSG_ERROR(Please install the PCRE package from http://www.pcre.org/)
654 PCRE_CFLAGS=`pcre-config --cflags`
655 PCRE_LIBS=`pcre-config --libs`
656 AC_SUBST(PCRE_LIBS)
657 AC_SUBST(PCRE_CFLAGS)
659 dnl ***************************************************************************
660 dnl Tagmanager checks.
661 dnl ***************************************************************************
663 dnl Define convenience macros
664 dnl -------------------------
665 dnl CHECK_HEADER_DEFINE(LABEL, HEADER [,ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ] ])
666 AC_DEFUN([CHECK_HEADER_DEFINE],
668         AC_MSG_CHECKING("if $1 is defined in $2")
669         AC_EGREP_CPP(yes,
670 [#include <$2>
671 #ifdef $1
672   yes
673 #endif
674 ], [
675         AC_MSG_RESULT(yes)
676         $3
677 ], [
678         AC_MSG_RESULT(no)
679         $4
680 ]) ])
682 dnl Checks for header files.
683 AC_CHECK_HEADERS(dirent.h fcntl.h fnmatch.h stat.h stdlib.h string.h stdint.h)
684 AC_CHECK_HEADERS(time.h types.h unistd.h)
685 AC_CHECK_HEADERS(sys/dir.h sys/stat.h sys/times.h sys/types.h)
687 dnl Checks for typedefs, structures, and compiler characteristics.
689 dnl Disable cygwin check until someone fixes that stupid autoconf warnings.
690 dnl AC_CYGWIN
691 dnl AC_MINGW
693 AC_C_CONST
694 AC_OBJEXT
695 AC_EXEEXT
697 AC_TYPE_SIZE_T
698 AC_TYPE_OFF_T
700 AC_MSG_CHECKING("for fpos_t")
701 AC_EGREP_HEADER(fpos_t, stdio.h, AC_MSG_RESULT(yes),
703     AC_MSG_RESULT(no)
704     AC_DEFINE(fpos_t, long, [fpos_t is type long])
707 AC_MSG_CHECKING("for clock_t")
708 AC_EGREP_HEADER(clock_t, time.h, AC_MSG_RESULT(yes),
710     AC_MSG_RESULT(no)
711     AC_DEFINE(clock_t, long, [clock_t is type long])
714 CHECK_HEADER_DEFINE(L_tmpnam, stdio.h,, AC_DEFINE(L_tmpnam, 20, [L_tmpname is 20]))
716 CHECK_HEADER_DEFINE(INT_MAX, limits.h,,
717     CHECK_HEADER_DEFINE(MAXINT, limits.h,
718         AC_DEFINE(INT_MAX, MAXINT, [Maximum int size]), AC_DEFINE(INT_MAX, 32767, [Maximum int size])))
720 AC_MSG_CHECKING(if struct stat contains st_ino)
721 AC_TRY_COMPILE([#include <sys/stat.h>], [
722     struct stat st;
723     stat(".", &st);
724     if (st.st_ino > 0)
725         exit(0);
726 ], have_st_ino=yes, have_st_ino=no)
727 AC_MSG_RESULT($have_st_ino)
728 if test yes = "$have_st_ino"; then
729     AC_DEFINE(HAVE_STAT_ST_INO,,[Have stat st_ino])
733 dnl Checks for library functions.
734 AC_CHECK_FUNCS(fnmatch)
735 AC_CHECK_FUNCS(strstr)
736 AC_CHECK_FUNCS(stricmp)
737 AC_CHECK_FUNCS(strnicmp)
738 AC_CHECK_FUNCS(getline)
740 AC_CHECK_FUNCS(fgetpos, have_fgetpos=yes)
742 dnl SEEK_SET should be in stdio.h, but may be in unistd.h on SunOS 4.1.x
743 if test "$have_fgetpos" != yes ; then
744     CHECK_HEADER_DEFINE(SEEK_SET, stdio.h,,
745         CHECK_HEADER_DEFINE(SEEK_SET, unistd.h,,
746             AC_DEFINE(SEEK_SET, 0, [Seek set 0])))
749 AC_CHECK_FUNCS(mkstemp, have_mkstemp=yes)
750 if test "$have_mkstemp" != yes ; then
751     AC_CHECK_FUNCS(chmod)
752     if test "$tmpdir_specified" = yes ; then
753         AC_MSG_RESULT(use of tmpnam overrides temporary directory selection)
754     fi
755 else
756     AC_MSG_CHECKING(directory to use for temporary files)
757     if test -z "$enable_tmpdir" -o "$enable_tmpdir" = no -o "$enable_tmpdir" = yes ;
758         then tmpdir=/tmp
759         else tmpdir="$enable_tmpdir"
760     fi
761     if test -d $tmpdir ; then
762         AC_MSG_RESULT($tmpdir)
763         AC_DEFINE_UNQUOTED(TMPDIR, "$tmpdir", [Directory for temporary files])
764     else
765         AC_MSG_WARN($tmpdir does not exist)
766     fi
769 AC_CHECK_FUNCS(strerror opendir)
770 AC_CHECK_FUNCS(clock times, break)
771 AC_CHECK_FUNCS(remove, have_remove=yes,
772     CHECK_HEADER_DEFINE(remove, unistd.h,, AC_DEFINE(remove, unlink, [Remove is unlink])))
774 AC_CHECK_FUNCS(truncate, have_truncate=yes)
775 dnl === Cannot nest AC_CHECK_FUNCS() calls
776 if test "$have_truncate" != yes  ; then
777     AC_CHECK_FUNCS(ftruncate, have_ftruncate=yes)
778     if test "$have_ftruncate" != yes ; then
779         AC_CHECK_FUNCS(chsize)
780     fi
783 AC_CHECK_FUNCS(setenv, have_setenv=yes)
784 dnl === Cannot nest AC_CHECK_FUNCS() calls
785 if test "$have_setenv" != yes ; then
786     AC_CHECK_FUNCS(putenv, have_putenv=yes)
787     if test "$have_putenv" = yes ; then
788         AC_EGREP_HEADER(putenv, stdlib.h, have_putenv_prototype=yes)
789         if test "$have_putenv_prototype" = yes ; then
790             AC_MSG_CHECKING("putenv prototype")
791             AC_EGREP_HEADER([[^A-Za-zo-9_]putenv[   ]*\(.*const.*\)[    ]*;],
792                 stdlib.h, AC_MSG_RESULT(correct),
793                 [
794                     AC_MSG_RESULT(no const)
795                     AC_DEFINE(NON_CONST_PUTENV_PROTOTYPE,,[putenv has non constant prototype])
796                 ])
797         fi
798     fi
802 dnl if test yes = "$CYGWIN"; then with_posix_regex=no; fi
803 if test no != "$with_posix_regex"; then
804     AC_CHECK_FUNCS(regcomp)
805     AC_MSG_CHECKING(if regcomp works)
806     AC_TRY_RUN([
807 #include <sys/types.h>
808 #include <regex.h>
809 main() {
810     regex_t patbuf;
811     exit (regcomp (&patbuf, "/hello/", 0) != 0);
812 }],regcomp_works=yes,regcomp_works=no,AC_DEFINE(CHECK_REGCOMP,,[Check regcomp]))
813     AC_MSG_RESULT($regcomp_works)
814     if test yes != "$regcomp_works"; then
815         AC_DEFINE(REGCOMP_BROKEN,,[Regcomp is broken])
816     fi
819 dnl -----------------------------
820 dnl Checks for FreeBSD Build
821 dnl -----------------------------
822 AC_MSG_CHECKING(if building on FreeBSD)
824 if test `uname -s` = "FreeBSD" ; then
825         AC_MSG_RESULT(yes)
826         FREEBSD_BUILD=-DFREEBSD
827         AC_SUBST(FREEBSD_BUILD)
828         AC_PATH_PROG(GMAKE, gmake, no)
829         if test "x$GMAKE" = "xno"; then
830                 AC_ERROR(You need gmake installed to build Anjuta!)
831         fi
832 else
833         AC_MSG_RESULT(no)
834         GMAKE="make"
837 AC_SUBST(GMAKE)
839 dnl Checks for missing prototypes
840 dnl -----------------------------
841 AC_CHECKING("for missing prototypes")
843 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))])
845 if test "$have_remove" = yes ; then
846     CHECK_PROTO(remove, stdio.h)
847 else
848     CHECK_PROTO(unlink, unistd.h)
850 CHECK_PROTO(malloc, stdlib.h)
851 CHECK_PROTO(getenv, stdlib.h)
852 CHECK_PROTO(stat,   sys/stat.h)
853 CHECK_PROTO(lstat,  sys/stat.h)
854 if test "$have_fgetpos" = yes ; then
855     CHECK_PROTO(fgetpos, stdio.h)
857 if test "$have_truncate" = yes ; then
858     CHECK_PROTO(truncate, unistd.h)
860 if test "$have_ftruncate" = yes ; then
861     CHECK_PROTO(ftruncate, unistd.h)
864 dnl  **********************************************************
865 dnl  check if we have svn libraries to build subversion plugin
866 dnl  (stolen from kdevelop ;-)
867 dnl  **********************************************************
869 AC_MSG_CHECKING(for Subversion svn-config)
870 AC_ARG_WITH(subversion-dir,
871                 [  --with-subversion-dir=DIR           where Subversion is installed ],
872                 [
873                                 SVNCONFIG="$withval/bin/svn-config"
874                 ])
876 if test -z "$SVNCONFIG"; then
877                 _SVNCONFIG="`svn-config --prefix 2> /dev/null`"
878                 if test -n "$_SVNCONFIG"; then
879                                 SVNCONFIG="$_SVNCONFIG/bin/svn-config"
880                 fi
883 AC_SUBST(SVNCONFIG)
884 if test -x "$SVNCONFIG"; then
885                 SVNLD="`$SVNCONFIG --ldflags 2> /dev/null`"
886                 SVN_LIB="`$SVNCONFIG --libs --cflags 2> /dev/null` -lsvn_client-1"
887                 dnl ugly hack for subversion svn-config problems in 0.14.x, to be removed when svn-config is fixed
888                 SVN_INCLUDE="`$SVNCONFIG --includes 2> /dev/null` -I$_SVNCONFIG/include/subversion-1/"
889                 AC_MSG_RESULT(yes)
890 else
891                 AC_MSG_RESULT(not found)
892                 
893                 dnl just a fallback to debian's config so that it works for me :)
894                 AC_ARG_WITH(svn-include,
895                                                                 [[  --with-svn-include=DIR   Use the given path to the subversion headers.]],
896                                                                 [
897                                                                 if test "$withval" != "yes" -a "$withval" != ""; then
898                                                                                 SVN_INCLUDES=$withval
899                                                                 fi
900                                                                 ])
901                 if test -z "$SVN_INCLUDES"; then
902                         SVN_INCLUDES="/usr/local/include /usr/include"
903                 fi
904                 AC_MSG_CHECKING([for Subversion headers])
905                 SVN_INCLUDE=""
906                 for VALUE in $SVN_INCLUDES ; do
907                                 if test -f $VALUE/subversion-1/svn_types.h ; then
908                                                 SVN_INCLUDE=$VALUE
909                                                 break
910                                 fi
911                 done
912                 if test $SVN_INCLUDE ; then
913                                 AC_MSG_RESULT([found])
914                 else
915                                 AC_MSG_RESULT([not found])
916                 fi
917                 SVN_LIBS="/usr/local/lib /usr/lib"
918                 AC_ARG_WITH(svn-lib,
919                                                 [[  --with-svn-lib=DIR  Use the given path to the subversion libraries.]],
920                                                 [
921                                                         if test "$withval" != "yes" -a "$withval" != ""; then
922                                                                 SVN_LIBS=$withval
923                                                         fi
924                                                 ])
925                 AC_MSG_CHECKING([for Subversion libraries])
926                 SVN_LIB=""
927                 for VALUE in $SVN_LIBS ; do
928                                 if ls $VALUE/libsvn_client-1.* 1>/dev/null 2>&1; then
929                                                 SVN_LIB=$VALUE
930                                                 break
931                                 fi
932                 done
933                 if test $SVN_LIB ; then
934                                 AC_MSG_RESULT([found])
935                 else
936                                 AC_MSG_RESULT([not found])
937                 fi
940 dnl ******************************************************************
941 dnl Check for extra libs required by subversion.
942 dnl FIXME: This should actually be done by subversion and not by us.
943 dnl ******************************************************************
945 AC_ARG_ENABLE(plugin-subversion,
946   [  --disable-plugin-subversion        Disable subversion support in Anjuta.],
947   [ if test "$enableval" = "no"; then
948         user_disabled_subversion=1
949     fi ],
950   [ user_disabled_subversion=0 ] )
952 AC_MSG_CHECKING(if subversion support is disabled)
953 if test "$user_disabled_subversion" = 1; then
954         AC_MSG_RESULT(yes)
955         SVN_INCLUDE=""
956         SVN_LIB=""
957 else
958         AC_MSG_RESULT(no)
961 if test -n "$SVN_INCLUDE" ; then
962         dnl ------------------------------------
963         dnl APR. Required by subversion (devel)
964         dnl ------------------------------------
965         
966         APR_CONFIGS="apr-config /usr/local/apr/bin/apr-config/ apr-1-config "
967         AC_ARG_WITH(apr-config,
968         [[  --with-apr-config=FILE    Use the given path to apr-config when determining
969                                                                 APR configuration; defaults to "apr-config"]],
970         [
971         if test "$withval" != "yes" -a "$withval" != ""; then
972           APR_CONFIGS=$withval
973         fi
974         ])
975         AC_MSG_CHECKING([for APR])
976         APR_CONFIG=""
977         for VALUE in $APR_CONFIGS ; do
978                         if $VALUE --cflags > /dev/null 2>&1 ; then
979                                         APR_CONFIG=$VALUE
980                                         break
981                         fi
982         done
983         test $VALUE && APR_CONFIG=$VALUE
984         if test $APR_CONFIG ; then
985                 AC_MSG_RESULT([found])
986                 APR_CFLAGS="`$APR_CONFIG --cflags` `$APR_CONFIG --cppflags`"
987                 APR_INCLUDE="`$APR_CONFIG --includes`"
988                 APR_LIBS="`$APR_CONFIG --link-ld --libs`"
989         else
990                 AC_MSG_RESULT([not found])
991                 dnl AC_MSG_ERROR([APR is required. Try --with-apr-config.])
992         fi
993         
994         dnl -----------------------------------------
995         dnl APR util. Required by subversion (devel)
996         dnl------------------------------------------
997         
998         APU_CONFIGS="apu-config /usr/local/apr/bin/apu-config apu-1-config"
999         AC_ARG_WITH(apu-config,
1000         [[  --with-apu-config=FILE    Use the given path to apu-config when determining
1001                                                                 APR util configuration; defaults to "apu-config"]],
1002         [
1003                 if test "$withval" != "yes" -a "$withval" != ""; then
1004                         APU_CONFIGS=$withval
1005                 fi
1006         ])
1007         AC_MSG_CHECKING([for APR util])
1008         APU_CONFIG=""
1009         for VALUE in $APU_CONFIGS ; do
1010                         if $VALUE --includes > /dev/null 2>&1 ; then
1011                                         APU_CONFIG=$VALUE
1012                                         break
1013                         fi
1014         done
1015         if test $APU_CONFIG ; then
1016                 AC_MSG_RESULT([found])
1017                 APR_INCLUDE="$APR_INCLUDE `$APU_CONFIG --includes`"
1018                 APR_LIBS="$APR_LIBS `$APU_CONFIG --link-ld --libs`"
1019         else
1020                 AC_MSG_RESULT([not found])
1021         fi
1022         
1023         dnl -----------------------------------------
1024         dnl NEON. Required by subversion (devel)
1025         dnl------------------------------------------
1027         dnl Check for neon. It is required by subversion libs, but for
1028         dnl for some strange reason it's not in it's dependencies.
1029         dnl subversion plugin will be disabled if neon (devel) is not
1030         dnl installed, even if subversion (devel) is installed.
1032         NEON_CONFIGS="neon-config"
1033         AC_ARG_WITH(neon-config,
1034         [[  --with-neon-config=FILE    Use the given path to neon-config when determining
1035                                                                 Neon configuration; defaults to "neon-config"]],
1036         [
1037                 if test "$withval" != "yes" -a "$withval" != ""; then
1038                         NEON_CONFIGS=$withval
1039                 fi
1040         ])
1041         AC_MSG_CHECKING([for Neon])
1042         NEON_CONFIG=""
1043         for VALUE in $NEON_CONFIGS ; do
1044                         if $VALUE --cflags > /dev/null 2>&1 ; then
1045                                         NEON_CONFIG=$VALUE
1046                                         break
1047                         fi
1048         done
1049         if test $NEON_CONFIG ; then
1050                 AC_MSG_RESULT([found])
1051         else
1052                 AC_MSG_RESULT([not found])
1053                 SVN_INCLUDE=""
1054                 SVN_LIB=""
1055         fi
1058 dnl ------------------------------------------
1059 dnl Finally prepare subversion build flags
1060 dnl ------------------------------------------
1062 if test -n "$SVN_INCLUDE" ; then
1063         SVN_INCLUDE="-I$SVN_INCLUDE $APR_INCLUDE"
1064         SVN_LIB="-L$SVN_LIB $APR_LIBS -lsvn_client-1"
1065         SVN_CFLAGS="$APR_CFLAGS"
1068 AM_CONDITIONAL(BUILD_SVN, [test -n "$SVN_INCLUDE"])
1069 AC_SUBST(SVN_INCLUDE)
1070 AC_SUBST(SVN_LIB)
1071 AC_SUBST(SVN_CFLAGS)
1073 dnl --------- help outputs -----------
1074 dnl manuals/C/Makefile
1075 dnl manuals/C/anjuta-tutorial/Makefile
1076 dnl manuals/C/anjuta-advanced-tutorial/Makefile
1077 dnl manuals/C/anjuta-faqs/Makefile
1078 dnl manuals/C/anjuta-manual/Makefile
1079 dnl manuals/de/Makefile
1080 dnl manuals/de/anjuta-tutorial/Makefile
1081 dnl manuals/ja/Makefile
1082 dnl manuals/ja/anjuta-faqs/Makefile
1083 dnl manuals/ja/anjuta-manual/Makefile
1085 AC_OUTPUT([
1086 Makefile
1087 po/Makefile.in
1088 tagmanager/Makefile
1089 tagmanager/include/Makefile
1090 global-tags/Makefile
1091 libegg/Makefile
1092 libegg/util/Makefile
1093 libegg/treeviewutils/Makefile
1094 libegg/menu/Makefile
1095 libegg/recent-files/Makefile
1096 anjuta.spec
1097 libanjuta/Makefile
1098 libanjuta/libanjuta-1.0.pc
1099 libanjuta/interfaces/Makefile
1100 src/Makefile
1101 pixmaps/Makefile
1102 data/Makefile
1103 data/welcome.txt
1104 data/properties/Makefile
1105 doc/anjuta.1
1106 doc/anjuta_launcher.1
1107 doc/Makefile
1108 scripts/Makefile
1109 scripts/anjuta_import.sh
1110 launcher/Makefile
1111 plugins/Makefile
1112 plugins/sample1/Makefile
1113 plugins/gtodo/Makefile
1114 plugins/class-gen/Makefile
1115 plugins/class-gen/templates/Makefile
1116 plugins/patch/Makefile
1117 plugins/editor/Makefile
1118 plugins/editor/scintilla/Makefile
1119 plugins/editor/scintilla/include/Makefile
1120 plugins/document-manager/Makefile
1121 plugins/search/Makefile
1122 plugins/message-view/Makefile
1123 plugins/gdb/Makefile
1124 plugins/gdb/images/Makefile
1125 plugins/debug-manager/Makefile
1126 plugins/debug-manager/images/Makefile
1127 plugins/devhelp/Makefile
1128 plugins/glade/Makefile
1129 plugins/file-manager/Makefile
1130 plugins/file-loader/Makefile
1131 plugins/file-wizard/Makefile
1132 plugins/terminal/Makefile
1133 plugins/build-basic-autotools/Makefile
1134 plugins/profiler/Makefile
1135 plugins/project-manager/Makefile
1136 plugins/symbol-browser/Makefile
1137 plugins/symbol-browser/images/Makefile
1138 plugins/cvs-plugin/Makefile
1139 plugins/project-wizard/Makefile
1140 plugins/macro/Makefile
1141 plugins/subversion/Makefile
1142 plugins/sourceview/Makefile
1143 plugins/tools/Makefile
1144 plugins/tools/scripts/Makefile
1145 plugins/class-inheritance/Makefile
1146 plugins/valgrind/Makefile
1147 plugins/project-import/Makefile
1148 plugins/project-wizard/templates/Makefile
1149 plugins/project-wizard/templates/terminal/Makefile
1150 plugins/project-wizard/templates/terminal/src/Makefile
1151 plugins/project-wizard/templates/terminal/po/Makefile
1152 plugins/project-wizard/templates/cpp/Makefile
1153 plugins/project-wizard/templates/cpp/src/Makefile
1154 plugins/project-wizard/templates/cpp/po/Makefile
1155 plugins/project-wizard/templates/gtk/Makefile
1156 plugins/project-wizard/templates/gtk/src/Makefile
1157 plugins/project-wizard/templates/gtk/po/Makefile
1158 plugins/project-wizard/templates/anjuta-plugin/Makefile
1159 plugins/project-wizard/templates/anjuta-plugin/src/Makefile
1160 plugins/project-wizard/templates/anjuta-plugin/po/Makefile
1161 plugins/project-wizard/templates/gnome/Makefile
1162 plugins/project-wizard/templates/gnome/src/Makefile
1163 plugins/project-wizard/templates/gnome/po/Makefile
1164 plugins/project-wizard/templates/gtkmm/Makefile
1165 plugins/project-wizard/templates/gtkmm/src/Makefile
1166 plugins/project-wizard/templates/gtkmm/po/Makefile
1167 plugins/project-wizard/templates/gcj/Makefile
1168 plugins/project-wizard/templates/gcj/src/Makefile
1169 plugins/project-wizard/templates/java/Makefile
1170 plugins/project-wizard/templates/java/src/Makefile
1171 plugins/project-wizard/templates/java/po/Makefile
1172 plugins/project-wizard/templates/python/Makefile
1173 plugins/project-wizard/templates/python/src/Makefile
1174 plugins/project-wizard/templates/python/po/Makefile
1175 plugins/project-wizard/templates/wxwin/Makefile
1176 plugins/project-wizard/templates/wxwin/src/Makefile
1177 plugins/project-wizard/templates/wxwin/po/Makefile
1178 plugins/project-wizard/templates/xlib/Makefile
1179 plugins/project-wizard/templates/xlib/src/Makefile
1180 plugins/project-wizard/templates/xlib/po/Makefile
1181 plugins/project-wizard/templates/xlib-dock/Makefile
1182 plugins/project-wizard/templates/xlib-dock/src/Makefile
1183 plugins/project-wizard/templates/xlib-dock/po/Makefile
1184 plugins/language-support-cpp-java/Makefile
1185 anjuta.desktop.in
1186 manuals/Makefile
1187 manuals/reference/Makefile
1188 manuals/reference/libanjuta/Makefile
1189 manuals/reference/libanjuta/version.xml
1190 manuals/anjuta-manual/Makefile
1191 manuals/anjuta-faqs/Makefile
1192 mime/Makefile
1194 echo " "
1195 echo "-------------------------------------------------------------------"
1196 echo "Conditionally built plugins:"
1197 echo "-------------------------------------------------------------------"
1198 if [ test -n "$SVN_INCLUDE" ]; then
1199         echo "Building subversion plugin: ............................YES"
1200 else
1201         echo "Building subversion plugin: ............................NO"
1202                 echo "        Requires apr (>= 0.9.4); http://subversion.org"
1203                 echo "        Requires apr-util (>= 0.9.4); http://subversion.org"
1204                 echo "        Requires neon (>= 0.24.5); http://subversion.org"
1205                 echo "        Requires subversion (>= 1.0.2); http://subversion.org"
1208 if [ test x$libgladeui_found = xyes ]; then
1209        echo "Building glade plugin: .................................YES"
1210 else
1211        echo "Building glade plugin: .................................NO"
1212        echo "        Requires glade-3 (>= 3.0.2)"
1215 if [ test x$devhelp_enabled = xyes ]; then
1216        echo "Building devhelp plugin: ...............................YES"
1217 else
1218        echo "Building devhelp plugin: ...............................NO"
1219        echo "        Requires devhelp"
1222 if [ test x$libgraphviz_found = xyes ]; then
1223         echo "Building class inheritance plugin: .....................YES"
1224         echo "Building performance profiler with function call chart: YES"
1225 else
1226         echo "Building class inheritance plugin: .....................NO"
1227         echo "        Requires graphviz (>= 2.6.0); http://graphviz.org"
1228         echo "Building performance profiler with function call chart: NO"
1229          echo "        Requires graphviz (>= 2.6.0); http://graphviz.org"
1232 if [ test x$valgrind = xyes ]; then
1233         echo "Building Valgrind debugger plugin: .....................YES"
1234 else
1235         echo "Building Valgrind debugger plugin: .....................NO"
1236         echo "          Requires binutils-dev"
1239 if [ test x$sourceview = xyes ]; then
1240         echo "Building GtkSourceView based editor: ...................YES"
1241 else
1242         echo "Building GtkSourceView based editor: ...................NO"
1245 if [ test x$scintilla = xyes ]; then
1246         echo "Building Scintilla based editor: .......................YES"
1247 else
1248         echo "Building Scintilla based editor: .......................NO"
1250 echo "-------------------------------------------------------------------"