Fix:Core:Some more hildon fixes
[navit-package] / configure.in
1 AC_INIT(navit, 0.1.1)
2 SOURCE_MODE=svn
3
4 AM_INIT_AUTOMAKE
5 AM_CONFIG_HEADER(config.h)
6
7 AC_SUBST(SOURCE_MODE)
8 AM_CONDITIONAL(SOURCE_MODE_SVN, [test "x${SOURCE_MODE}" = "xsvn"])
9
10 if test "x${SOURCE_MODE}" = "xsvn" ; then
11         USE_MAINTAINER_MODE=yes
12 else
13         USE_MAINTAINER_MODE=no
14 fi
15
16 AC_DEFUN([AM_MAINTAINER_MODE],
17 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
18   dnl maintainer-mode is enabled by default (reason of inclusion of this function)
19   AC_ARG_ENABLE(maintainer-mode,
20 [  --enable-maintainer-mode  enable make rules and dependencies not useful
21                           (and sometimes confusing) to the casual installer],
22       USE_MAINTAINER_MODE=$enableval)
23   AC_MSG_RESULT([$USE_MAINTAINER_MODE])
24   AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
25   MAINT=$MAINTAINER_MODE_TRUE
26   AC_SUBST(MAINT)dnl
27 ]
28 )
29
30 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
31
32 AM_MAINTAINER_MODE
33
34
35 plugins=yes; plugins_reason=default
36 postgresql=yes; postgresql_reason=default
37 samplemap=yes; samplemap_reason=default
38 binding_dbus=yes; binding_dbus_reason=default
39 binding_python=yes; binding_python_reason=default
40 gui_gtk=no; gui_gtk_reason=default
41 gui_win32=no; gui_win32_reason=default
42 gui_internal=yes; gui_internal_reason=default
43 graphics_gd=no; graphics_gd_reason=default
44 graphics_gtk_drawing_area=no; graphics_gtk_drawing_area_reason=default
45 graphics_qt_qpainter=yes; graphics_qt_qpainter_reason=default
46 graphics_opengl=yes; graphics_opengl_reason=default
47 graphics_win32=no; graphics_win32_reason=default
48 speech_cmdline=yes; speech_cmdline_reason=default
49 speech_speech_dispatcher=yes; speech_speech_dispatcher_reason=default
50 vehicle_demo=yes; vehicle_demo_reason=default
51 vehicle_file=yes; vehicle_file_reason=default
52 vehicle_gpsd=yes; vehicle_gpsd_reason=default
53 vehicle_gypsy=yes; vehicle_gypsy_reason=default
54 vehicle_wince=no; vehicle_wince_reason=default
55
56 m4_ifndef([AC_USE_SYSTEM_EXTENSIONS],
57         [AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], [AC_GNU_SOURCE])])
58
59 AC_USE_SYSTEM_EXTENSIONS
60
61 AC_PROG_CC
62 if eval "test x$GCC = xyes"; then
63         CFLAGS="$CFLAGS -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
64 fi
65 AM_PROG_CC_C_O
66
67 AC_PROG_CXX
68 if eval "test x$GXX = xyes"; then
69         CXXFLAGS="$CXXFLAGS -Wall -Wcast-align -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
70 fi
71
72 PKG_CHECK_EXISTS
73 if test "x${cross_compiling}" = "xyes"; then
74         samplemap="no";samplemap_reason="not supported for cross compiling"
75         binding_python="no";binding_python_reason="not supported for cross compiling"
76         postgresql="no";postgresql_reason="not supported for cross compiling"
77         AC_MSG_CHECKING([for a C compiler for build tools])
78         AC_CHECK_PROGS(CC_FOR_BUILD, gcc cc)
79 else
80         CC_FOR_BUILD=$CC
81 fi
82 CCLD_FOR_BUILD="$CC_FOR_BUILD"
83 AC_SUBST(cross_compiling)
84 AC_SUBST(CC_FOR_BUILD)
85 AC_SUBST(CCLD_FOR_BUILD)
86
87 AC_ARG_ENABLE(avoid-unaligned, [  --enable-avoid-unaligned          avoid unaligned accesses], AVOID_UNALIGNED=$enableval, AVOID_UNALIGNED=no)
88 test x"${AVOID_UNALIGNED}" = xyes && AC_DEFINE(AVOID_UNALIGNED,[],Define to avoid unaligned access)
89
90 AC_ARG_ENABLE(avoid-float, [  --enable-avoid-float              avoid floating point calculations], AVOID_FLOAT=$enableval, AVOID_FLOAT=no)
91 test x"${AVOID_FLOAT}" = xyes && AC_DEFINE(AVOID_FLOAT,[],Define to avoid floating point)
92
93 AC_ARG_ENABLE(hildon, [  --enable-hildon              build with maemo/hildon support], enable_hildon=$enableval, enable_hildon=no)
94 if test "x${enable_hildon}" = "xyes" ; then
95         PKG_CHECK_MODULES(HILDON, hildon-1 >= 0.9.9, , [
96                 AC_MSG_RESULT(no)
97                 enable_hildon=no
98         ])
99         if test x"${enable_hildon}" = xyes ; then
100                 AC_DEFINE(USE_HILDON, 1, [Build with maemo/hildon support])
101                 AC_SUBST(HILDON_CFLAGS)
102                 AC_SUBST(HILDON_LIBS)
103         fi
104 fi
105 AM_CONDITIONAL(USE_HILDON, test "${enable_hildon}" = "xyes")
106
107 AC_ARG_ENABLE(garmin, [  --disable-garmin             disable garmin support], USE_GARMIN=$enableval, USE_GARMIN=yes)
108
109 # samplemap
110 AC_PATH_PROG(_PATH_BZCAT,[bzcat])
111 if test "x${_PATH_BZCAT}" = "x" ; then
112         samplemap=no; samplemap_reason="bzcat missing"
113 fi
114 AC_ARG_ENABLE(samplemap, [  --disable-samplemap             don't build the samplemap], samplemap=$enableval;samplemap_reason="configure parameter")
115 AM_CONDITIONAL(BUILD_SAMPLEMAP, [test "x$samplemap" = "xyes"])
116
117 AC_ARG_ENABLE(fastmath, [  --disable-fastmath             don't build with fastmath], fastmath=$enableval, fastmath=yes)
118 AM_CONDITIONAL(FASTMATH, [test "x$fastmath" = "xyes"])
119
120 if test x"$fastmath" = xyes; then
121         if eval "test x$GCC = xyes"; then
122                 CFLAGS="$CFLAGS -ffast-math"
123         fi
124 fi
125
126 X_CFLAGS="-I$x_includes"
127 AS_IF([test -n "$ac_x_libraries"], [X_LIBS="-L$ac_x_libraries"])
128
129 PKG_CHECK_MODULES(GLIB, [glib-2.0 gthread-2.0], [glib=yes],[glib=no])
130 if test "x${glib}" = "xyes"; then
131         AC_DEFINE(HAVE_GLIB, 1, [Define to 1 if you have (external) glib library])
132 else
133         GLIB_CFLAGS="-I\$(top_srcdir)/navit/support -I\$(top_srcdir)/navit/support/glib -I\$(top_srcdir)/navit/support/ezxml"
134         GLIB_LIBS="-L\$(top_builddir)/navit/support/glib -lsupport_glib -L\$(top_builddir)/navit/support/ezxml -lsupport_ezxml"
135 fi
136
137 # gmodule
138 PKG_CHECK_MODULES(GMODULE, [gmodule-2.0], [gmodule=yes], [gmodule=no])
139 if test "x${gmodule}" = "xyes"; then
140         AC_DEFINE(HAVE_GMODULE, 1, [Define to 1 if you have gmodule])
141 else
142         AC_CHECK_LIB(dl, dlopen,
143                 [plugins_reason="default, via dlopen";GMODULE_LIBS="-ldl";AC_DEFINE(HAVE_DLOPEN, 1, [Define to 1 if you have dlopen])],          
144                 [plugins="no"; plugins_reason="package gmodule and dlopen missing"]
145         )
146 fi
147 # plugins
148 AC_ARG_ENABLE(plugins,  [  --disable-plugins          disable plugins], [ plugins=$enableval;plugin_reason="configure parameter" ])
149 if test "x${plugins}" = "xyes"; then
150         AC_ENABLE_SHARED
151         AC_DISABLE_STATIC
152         AC_DEFINE(
153                 [USE_PLUGINS],
154                 [],
155                 Define to 1 if you have plugins.
156         )
157 else
158         AC_DISABLE_SHARED
159         AC_ENABLE_STATIC
160 fi
161 AM_CONDITIONAL(PLUGINS, [test "x$plugins" = "xyes"])
162 AC_PROG_LIBTOOL
163
164 AM_CONDITIONAL(EVENT_GLIB, [test "x$glib" = "xyes"])
165 AM_CONDITIONAL(SUPPORT_GLIB, [test "x$glib" = "xno"])
166 AM_CONDITIONAL(SUPPORT_EZXML, [test "x$glib" = "xno"])
167 AM_CONDITIONAL(DATA_POI_GEODOWNLOAD, [test "x$glib" = "xyes"])
168
169 AC_CHECK_HEADER(
170         zlib.h,
171         AC_DEFINE(
172                 [HAVE_ZLIB],
173                 [],
174                 Define to 1 if you have the <zlib.h> header file.
175         )
176         ZLIB_LIBS="-lz"
177         zlib=yes,
178         ZLIB_CFLAGS="-I\$(top_srcdir)/navit/support/zlib"
179         ZLIB_LIBS="-L\$(top_builddir)/navit/support/zlib -lsupport_zlib"
180         zlib=no
181 )
182 AM_CONDITIONAL(SUPPORT_ZLIB, [test "x$zlib" = "xno"])
183 AC_SUBST(ZLIB_CFLAGS)
184 AC_SUBST(ZLIB_LIBS)
185
186 # gtk
187 PKG_CHECK_MODULES(GTK2, [gtk+-2.0], [gtk2_pkgconfig=yes], [gtk2_pkgconfig=no])
188 if test "x$gtk2_pkgconfig" = "xyes"; then
189         AC_DEFINE(HAVE_GTK2, 1, [Define to 1 if you have gtk2])
190         graphics_gtk_drawing_area=yes; graphics_gtk_drawing_area_reason="gtk+-2.0 present"
191         gui_gtk=yes; gui_gtk_reason="gtk+-2.0 present"
192 fi
193
194 # fsync
195 AC_MSG_CHECKING(for fsync)
196 AC_TRY_LINK([#include <unistd.h>], [fsync(0);],AC_MSG_RESULT(yes);AC_DEFINE(HAVE_FSYNC, 1, [Define to 1 if you have the `fsync' function.]),AC_MSG_RESULT(no))
197
198 # system
199 AC_MSG_CHECKING(for system)
200 AC_TRY_LINK([#include <stdlib.h>], [system("/bin/true");],AC_MSG_RESULT(yes);AC_DEFINE(HAVE_SYSTEM, 1, [Define to 1 if you have the `system' function.]),speech_cmdline=no; speech_cmdline_reason="not supported without system()"; AC_MSG_RESULT(no))
201
202 AC_ARG_ENABLE(directfb, [  --enable-directfb             enable directfb gui and graphics], MODULE_DIRECTFB=$enableval, MODULE_DIRECTFB=no)
203
204 if test "x$MODULE_DIRECTFB" = "xyes"; then
205         PKG_CHECK_MODULES(DIRECTFB, [directfb], [directfb_pkgconfig=yes], [directfb_pkgconfig=no])
206         if test "x$directfb_pkgconfig" = "xyes"; then
207                 AC_DEFINE(HAVE_DIRECTFB, 1, [Define to 1 if you have directfb])
208         fi
209 fi
210
211 DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
212
213 #DIRECTFB_CFLAGS="-D_REENTRANT -I/data/oe/tmp/staging/arm-angstrom-linux-gnueabi/usr/include/directfb/"
214 #DIRECTFB_LIBS="-L/data/oe/tmp/staging/arm-angstrom-linux-gnueabi/usr/lib/ -ldirectfb -lfusion -ldirect -lpthread"
215
216 AC_SUBST(DIRECTFB_CFLAGS)
217 AC_SUBST(DIRECTFB_LIBS)
218 AM_CONDITIONAL(DIRECTFB, [test "x$directfb_pkgconfig" = "xyes"])
219
220
221 AC_ARG_ENABLE(graphics-sdl, [  --disable-graphics-sdl             don't create graphics sdl], enable_graphics_sdl=$enableval, enable_graphics_sdl=yes)
222 if test "x${enable_graphics_sdl}" = "xyes" ; then
223         if test -z "$SDL_CONFIG"; then
224             AC_PATH_PROG([SDL_CONFIG], [sdl-config], [])
225         fi
226 fi
227 if test "x${enable_graphics_sdl}" = "xyes" ; then
228         AC_MSG_CHECKING([for SDL libraries with $SDL_CONFIG])
229         if test ! -x "$SDL_CONFIG"; then
230             enable_graphics_sdl = "no"
231             AC_MSG_RESULT([no])
232         else
233             SDL_CFLAGS="`$SDL_CONFIG --cflags`"
234             SDL_LIBS="`$SDL_CONFIG --libs`"
235             AC_SUBST(SDL_CFLAGS)
236             AC_SUBST(SDL_LIBS)
237             AC_MSG_RESULT([yes])
238         fi 
239 fi
240 if test "x${enable_graphics_sdl}" = "xyes" ; then
241         save_CPPFLAGS=$CPPFLAGS
242         CPPFLAGS="$($SDL_CONFIG --cflags) $CPPFLAGS"
243         AC_CHECK_HEADER(SDL_image.h,SDL_IMAGE_LIBS=-lSDL_image,enable_graphics_sdl=no)
244         AC_SUBST(SDL_IMAGE_LIBS)
245         CPPFLAGS=$save_CPPFLAGS
246 fi
247 if test "x${enable_graphics_sdl}" = "xyes" ; then
248         AC_DEFINE(USE_GRAPICS_SDL, 1, [Build with graphics sdl])
249 fi
250 AM_CONDITIONAL(USE_GRAPHICS_SDL, test "x${enable_graphics_sdl}" = "xyes")
251
252 AC_ARG_ENABLE(postgresql, [  --disable-postgresql             don't add postgresql support to osm2navit], postgresql=$enableval;postgresql_reason="configure parameter")
253 if test "x${postgresql}" = "xyes" ; then
254         if test -z "$PG_CONFIG"; then
255             AC_PATH_PROG([PG_CONFIG], [pg_config], [])
256         fi
257         AC_MSG_CHECKING([for PostgreSQL libraries with $PG_CONFIG])
258         if test ! -x "$PG_CONFIG"; then
259             if test "x${PG_CONFIG}" = "x" ; then
260                  postgresql_reason="$PG_CONFIG not executable"
261             else
262                  postgresql_reason="pg_config missing"
263             fi
264             postgresql=no 
265             AC_MSG_RESULT([no])
266         else
267             POSTGRESQL_CFLAGS="-I`$PG_CONFIG --includedir`"
268             POSTGRESQL_LIBS="-L`$PG_CONFIG --libdir` -lpq"
269             AC_DEFINE(HAVE_POSTGRESQL, 1, [Postgresql libraries available])
270             AC_SUBST(POSTGRESQL_CFLAGS)
271             AC_SUBST(POSTGRESQL_LIBS)
272             AC_MSG_RESULT([yes])
273         fi 
274 fi
275 AM_CONDITIONAL(HAVE_POSTGRESQL, test "x${postgresql}" = "xyes")
276
277 PKG_CHECK_MODULES(FREETYPE2, [freetype2], [freetype2_pkgconfig=yes], [freetype2_pkgconfig=no])
278 if test "x$freetype2_pkgconfig" = "xyes"; then
279    AC_DEFINE(HAVE_FREETYPE2, 1, [Define to 1 if you have freetype2])
280 fi
281 AC_SUBST(FREETYPE2_CFLAGS)
282 AC_SUBST(FREETYPE2_LIBS)
283 AM_CONDITIONAL(FONT_FREETYPE, test "x${freetype2_pkgconfig}" = "xyes")
284
285 PKG_CHECK_MODULES(FONTCONFIG, [fontconfig], [fontconfig_pkgconfig=yes], [fontconfig_pkgconfig=no])
286 if test "x$fontconfig_pkgconfig" = "xyes"; then
287    AC_DEFINE(HAVE_FONTCONFIG, 1, [Define to 1 if you have fontconfig])
288 fi
289 AC_SUBST(FONTCONFIG_CFLAGS)
290 AC_SUBST(FONTCONFIG_LIBS)
291
292 PKG_CHECK_MODULES(IMLIB2, [imlib2], [imlib2_pkgconfig=yes], [imlib2_pkgconfig=no])
293 if test "x$imlib2_pkgconfig" = "xyes"; then
294    AC_DEFINE(HAVE_IMLIB2, 1, [Define to 1 if you have imlib2])
295 fi
296 AC_SUBST(IMLIB2_CFLAGS)
297 AC_SUBST(IMLIB2_LIBS)
298
299
300
301 AC_ARG_ENABLE(gui-sdl, [  --disable-gui-sdl             don't create gui sdl ], MODULE_GUI_SDL=$enableval, MODULE_GUI_SDL=yes)
302 if test "x$MODULE_GUI_SDL" = "xyes"; then
303         AC_CHECK_HEADER(
304                 SDL/SDL.h,
305                 AC_DEFINE(
306                         [HAVE_LIBSDL],
307                         [],
308                         Define to 1 if you have the <SDL/SDL.h> header file.
309                         )
310                         SDL_LIBS="-lSDL"
311                         sdl=yes,
312                 AC_MSG_WARN([*** no SDL/SDL.h -- SDL support disabled])
313         )
314 fi
315
316 PKG_CHECK_MODULES(
317         [CEGUI],
318         [CEGUI-OPENGL >= 0.5.0],
319         [
320                 AC_DEFINE(
321                         [HAVE_CEGUI],
322                         [],
323                         [Define to 1 if you have the @<:@CEGUI/CEGUI.h@:>@ header file.])
324                 cegui=yes
325         ],
326         [AC_MSG_WARN([*** CEGUI not found -- SDL support disabled])]
327 )
328
329 AC_CHECK_HEADER(
330         X11/Xmu/Xmu.h,
331         AC_DEFINE(
332                 [HAVE_XMU],
333                 [],
334                 Define to 1 if you have the <X11/Xmu/Xmu.h> header file.
335                 )
336                 xmu=yes,
337         AC_MSG_WARN([*** no X11/Xmu/Xmu.h -- opengl and SDL support disabled])
338 )
339
340 AC_ARG_ENABLE(graphics-opengl, [  --disable-graphics-opengl      disable graphics type OpenGL], graphics_opengl=$enableval;graphics_opengl_reason="configure parameter")
341 if test "x${graphics_opengl}" = "xyes" ; then
342
343 AC_CHECK_HEADER(
344         GL/gl.h,
345         AC_DEFINE(
346                 [HAVE_OPENGL],
347                 [],
348                 Define to 1 if you have the <GL/gl.h> header file.
349                 )
350                 OPENGL_LIBS="$X_LIBS -lGL -lGLU"
351                 opengl=yes,
352         AC_MSG_WARN([*** no GL/gl.h -- opengl and SDL support disabled];graphics_opengl=no;graphics_opengl_reason="Headers missing")
353 )
354
355 AC_CHECK_HEADER(
356         GL/glut.h,
357         AC_DEFINE(
358                 [HAVE_GLUT],
359                 [],
360                 Define to 1 if you have the <GL/glut.h> header file.
361                 )
362                 glut=yes,
363         AC_MSG_WARN([*** no GL/glut.h -- opengl and SDL support disabled]);graphics_opengl=no;graphics_opengl_reason="Headers missing"
364 )
365
366 AC_SUBST(OPENGL_CFLAGS)
367 AC_SUBST(OPENGL_LIBS)
368
369 AC_CHECK_HEADER(
370         GL/glc.h,
371         AC_DEFINE(
372                 [HAVE_GLC],
373                 [],
374                 Define to 1 if you have the <GL/glc.h> header file.
375                 )
376                 GLC_LIBS="-lGLC"
377                 glc=yes,
378         AC_MSG_WARN([*** no GL/glc.h -- opengl and SDL support disabled])
379 )
380 AC_SUBST(GLC_CFLAGS)
381 AC_SUBST(GLC_LIBS)
382 fi
383
384 if test x"$cegui" = xyes         
385                 then     
386          # Save the LIBS into a temp var since AC_CHECK_LIB adds the lib into LIBS       
387          # and we want just to check and use CEGUI_LIBS          
388          libstemp="$LIBS"        
389          # For CEGUI, we have to check the presence of some libraries.   
390          # The following are mandatory (used by navit)   
391          # If the user installed NavIt without, issue a warning and disable CEGUI        
392          AC_CHECK_LIB(CEGUIBase, main,   
393                   [],    
394                   [      
395                  echo "Error! Something is wrong with CEGUIBase. Do you have at least cegui-0.5?"        
396                  ])      
397          AC_CHECK_LIB(CEGUIOpenGLRenderer, main,         
398                   [],    
399                   [      
400                  echo "Error! Something is wrong with CEGUIOpenGLRenderer. Do you have at least cegui-0.5? "     
401                  ], $OPENGL_LIBS )       
402          AC_CHECK_LIB(CEGUIFalagardWRBase, main,         
403                   [],    
404                   [      
405                  echo "Error! Something is wrong with CEGUIFalagardWRBase. Do you have at least cegui-0.5?"      
406                  ], $OPENGL_LIBS)        
407          CEGUI_LIBS="-lCEGUIBase -lCEGUIOpenGLRenderer -lCEGUIFalagardWRBase"    
408                  
409          # The following are optional, but we need to link against them if cegui was built with them     
410          AC_CHECK_LIB(CEGUIXercesParser, main,   
411                   [CEGUI_LIBS="$CEGUI_LIBS -lCEGUIXercesParser"],        
412                   [echo "CEGUIXercesParser not found/not working, disabled."],   
413                   $OPENGL_LIBS   
414          )       
415                  
416          AC_CHECK_LIB(CEGUIExpatParser, main,    
417                   [CEGUI_LIBS="$CEGUI_LIBS -lCEGUIExpatParser"],         
418                   [echo "CEGUIExpatParser not found/not working, disabled."],    
419                   $OPENGL_LIBS   
420          )       
421                  
422          AC_CHECK_LIB(CEGUILibxmlParser, main,   
423                   [CEGUI_LIBS="$CEGUI_LIBS -lCEGUILibxmlParser"],        
424                   [echo "CEGUILibxmlParser not found/not working, disabled."],   
425                   $OPENGL_LIBS   
426          )       
427                  
428          AC_CHECK_LIB(CEGUITinyXMLParser, main,          
429                   [CEGUI_LIBS="$CEGUI_LIBS -lCEGUITinyXMLParser"],       
430                   [echo "CEGUITinyXMLParser not found/not working, disabled."],          
431                   $OPENGL_LIBS   
432          )       
433                  
434          AC_CHECK_LIB(CEGUIDevILImageCodec, main,        
435                   [
436                         CEGUI_LIBS="$CEGUI_LIBS -lCEGUIDevILImageCodec"
437                          AC_DEFINE([HAVE_LIBCEGUIDEVILIMAGECODEC],[1],Define to 1 to use DevIL codec)
438                   ],
439                   [echo "CEGUIDevILImageCodec not found/not working, disabled."],        
440                   $OPENGL_LIBS   
441          )       
442                  
443          AC_CHECK_LIB(CEGUITGAImageCodec, createImageCodec,      
444                   [
445                           CEGUI_LIBS="$CEGUI_LIBS -lCEGUITGAImageCodec"
446                           AC_DEFINE(HAVE_LIBCEGUITGAIMAGECODEC,[1],Define to 1 to use the TGA codec)
447                   ],
448                   [echo "GUITGAImageCodec not found/not working, disabled."],    
449                   $OPENGL_LIBS   
450          )       
451                  
452          libssilly="$OPENGL_LIBS -lpng"          
453          AC_CHECK_LIB(CEGUISILLYImageCodec, createImageCodec,    
454                   [
455                          CEGUI_LIBS="$CEGUI_LIBS -lCEGUISILLYImageCodec"
456                          AC_DEFINE([HAVE_LIBCEGUISILLYIMAGECODEC],[1],Define to 1 to use SILLY codec)
457                   ],
458                   [echo "CEGUISILLYImageCodec not found/not working, disabled."],        
459                   $libssilly     
460          )       
461          # Restore the libs
462          LIBS="$libstemp"        
463          echo "CEGUI_LIBS : $CEGUI_LIBS"         
464          fi
465
466 AC_SUBST(CEGUI_CFLAGS)
467 AC_SUBST(CEGUI_LIBS)
468
469 AM_CONDITIONAL(GUI_SDL, [test "x$sdl" = "xyes" -a "x$cegui" = "xyes" -a "x$opengl" = "xyes" -a "x$glc" = "xyes" -a "x$xmu" = "xyes" ])
470 AM_CONDITIONAL(GRAPHICS_OPENGL, [test "x$glut" = "xyes" - "x$opengl" = "xyes" -a "x$glc" = "xyes" ])
471
472 AC_ARG_ENABLE(gui-clutter, [  --disable-gui-clutter             don't create gui clutter ], MODULE_GUI_CLUTTER=$enableval, MODULE_GUI_CLUTTER=yes)
473 if test "x$MODULE_GUI_CLUTTER" = "xyes"; then
474         PKG_CHECK_MODULES(CLUTTER, [clutter-0.8], [clutter_pkgconfig=yes], [clutter_pkgconfig=no])
475         if test "x$clutter_pkgconfig" = "xyes"; then
476                 AC_DEFINE(HAVE_CLUTTER, 1, [Define to 1 if you have clutter])
477         fi
478 fi
479
480 AC_SUBST(CLUTTER_CFLAGS)
481 AC_SUBST(CLUTTER_LIBS)
482 AM_CONDITIONAL(GUI_CLUTTER, [test "x$clutter_pkgconfig" = "xyes" -a "x$glc" = "xyes" ])
483         
484
485
486
487 if test x"${USE_GARMIN}" = xyes
488 then
489         # check for libgarmin
490         PKG_CHECK_MODULES(LIBGARMIN, libgarmin, use_libgarmin=yes, use_libgarmin=no)
491         AC_SUBST(LIBGARMIN_CFLAGS)
492         AC_SUBST(LIBGARMIN_LIBS)
493 fi
494         AM_CONDITIONAL(HAVELIBGARMIN, [test "x$use_libgarmin" = "xyes"])
495
496 ## binding
497 # python
498 AC_ARG_ENABLE(binding-python, [  --disable-binding-python             don't create binding python], binding_python=$enableval;binding_python_reason="configure parameter")
499 if test "x${binding_python}" = "xyes"; then
500         AC_PATH_PROG(_PATH_PYTHON,[python])
501         dnl Libraries and flags for embedded Python.
502         dnl FIXME: I wish there was a less icky way to get this.
503         if test "x${_PATH_PYTHON}" != "x" ; then
504                 AC_MSG_CHECKING(for Python linkage)
505                 py_prefix=`$_PATH_PYTHON -c 'import sys; print sys.prefix'`
506                 py_ver=`$_PATH_PYTHON -c 'import sys; print sys.version[[:3]]'`
507                 py_libdir="${py_prefix}/lib/python${py_ver}"
508                 PYTHON_CFLAGS="-I${py_prefix}/include/python${py_ver}"
509                 if test -f $py_libdir/config/Makefile -a -f $py_prefix/include/python${py_ver}/Python.h; then
510                         py_libs=`grep '^LIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
511                         py_libc=`grep '^LIBC=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
512                         py_libm=`grep '^LIBM=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
513                         py_liblocalmod=`grep '^LOCALMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
514                         py_libbasemod=`grep '^BASEMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
515                         PYTHON_LIBS="-L$py_libdir/config $py_libs $py_libc $py_libm -lpython$py_ver $py_liblocalmod $py_libbasemod"
516                         PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/[ \\t]*/ /g'`
517                         AC_MSG_RESULT($py_libdir)
518                 else
519                         binding_python="no"
520                         binding_python_reason="$py_libdir/config/Makefile or $py_prefix/include/python${py_ver}/Python.h missing"
521                 fi
522         else
523                 binding_python="no"
524                 binding_python_reason="python executable missing"
525         fi
526 fi
527 if test "x${binding_python}" = xyes ; then
528         AC_DEFINE(USE_BINDING_PYTHON, 1, [Build with binding python])
529 fi
530 AC_SUBST(PYTHON_CFLAGS)
531 AC_SUBST(PYTHON_LIBS)
532 AM_CONDITIONAL(BINDING_PYTHON, test "x${binding_python}" = "xyes")
533
534 # dbus
535 AC_ARG_ENABLE(binding-dbus,   [  --disable-binding-dbus               don't create binding dbus], binding_dbus=$enableval;binding_dbus_reason="configure parameter")
536 if test "x${binding_dbus}" = "xyes" ; then
537         PKG_CHECK_MODULES(DBUS, [dbus-glib-1], ,binding_dbus=no)
538 fi
539 if test "x${binding_dbus}" = "xyes" ; then
540         AC_DEFINE(USE_BINDING_DBUS, 1, [Build with binding dbus])
541 fi
542 AC_SUBST(DBUS_CFLAGS)
543 AC_SUBST(DBUS_LIBS)
544 AM_CONDITIONAL(BINDING_DBUS, test "x${binding_dbus}" = "xyes")
545
546 # svg
547 AC_ARG_ENABLE(svg, [  --disable-svg        disable Scalable Vector Graphics], enable_svg=$enableval, enable_svg=yes)
548 AC_ARG_ENABLE(svg2png, [  --disable-svg2png        disable conversion of svgs to pngs], enable_svg2png=$enableval, enable_svg2png=yes)
549 AC_ARG_ENABLE(svg2png-scaling, [  --enable-svg2png-scaling   enable conversion of svgs to pngs with specified sizes], SVG2PNG_SCALES=$enableval, SVG2PNG_SCALES="8 16 32 48 96")
550 AC_ARG_ENABLE(svg2png-scaling-flag, [  --enable-svg2png-scaling-flag   enable conversion of flag svgs to pngs with specified sizes], SVG2PNG_SCALES_FLAG=$enableval, SVG2PNG_SCALES_FLAG="")
551 AC_ARG_ENABLE(svg2png-scaling-nav, [  --enable-svg2png-scaling-nav   enable conversion of nav svgs to pngs with specified sizes], SVG2PNG_SCALES_NAV=$enableval, SVG2PNG_SCALES_NAV="")
552 if test "x${enable_svg2png}" = "xyes" ; then
553         AC_PATH_PROG([KSVGTOPNG], [ksvgtopng], [])
554         if test ! -x "$KSVGTOPNG"; then
555             enable_svg2png="no"
556         fi
557 fi
558 AC_SUBST(SVG2PNG_SCALES)
559 AC_SUBST(SVG2PNG_SCALES_FLAG)
560 AC_SUBST(SVG2PNG_SCALES_NAV)
561 AM_CONDITIONAL(USE_SVG2PNG_SCALES, test "x${SVG2PNG_SCALES}" != "xyes" -a "x${SVG2PNG_SCALES}" != "x")
562 AM_CONDITIONAL(USE_SVG2PNG_SCALES_FLAG, test "x${SVG2PNG_SCALES_FLAG}" != "xyes" -a "x${SVG2PNG_SCALES_FLAG}" != "x")
563 AM_CONDITIONAL(USE_SVG2PNG_SCALES_NAV, test "x${SVG2PNG_SCALES_NAV}" != "xyes" -a "x${SVG2PNG_SCALES_NAV}" != "x")
564 AM_CONDITIONAL(USE_SVG2PNG, test "x${enable_svg2png}" = "xyes")
565 AM_CONDITIONAL(USE_SVG, test "x${enable_svg}" = "xyes")
566
567 # NLS
568
569 AC_ARG_ENABLE(nls,
570   [  --disable-nls        disable Native Language Support ( gettext/libintl )],
571    enable_nls=$enableval, enable_nls=yes)
572
573
574 INTLIBS=""
575 MOFILES=""
576 POFILES=""
577 LINGUAS=""
578
579 if test "x$enable_nls" = "xyes"; then
580
581   AC_CHECK_FUNC(gettext, [HAVEGETTEXT="yes"] 
582              AC_CHECK_LIB(intl, gettext, [INTLIBS="-lintl" HAVEGETTEXT="yes"],
583                          INTLIBS="" ))
584
585   AC_CHECK_PROG(XGETTEXT, xgettext, xgettext)
586   AC_CHECK_PROG(MSGMERGE, msgmerge, msgmerge)
587   AC_CHECK_PROG(MSGFMT, msgfmt, msgfmt)
588
589   if test "$XGETTEXT" != ""; then 
590     if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
591         echo "xgettext isn't GNU version"
592         XGETTEXT=""
593     fi
594   fi
595
596   if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
597      PO=""
598      if test "$LINGUAS" = ""; then
599            ling=` (cd $srcdir/po; /bin/ls *.po.in) `
600            for l in $ling; do
601                 lcode=`basename $l .po.in`
602                 LINGUAS="$LINGUAS$lcode "
603            done
604     fi
605     AC_DEFINE(ENABLE_NLS, [1], [NLS Please])
606     echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
607   else
608    LINGUAS=""
609    PO=""
610    echo "xgettext and libintl.a don't both exist; will not build i18n support"
611    enable_nls = no
612  fi
613  for lang in $LINGUAS; do
614     MOFILES="$MOFILES $lang.mo"
615  done
616  for lang in $LINGUAS; do
617     POFILES="$POFILES $lang.po"
618  done
619
620 AC_SUBST(INTLIBS)
621 AC_SUBST(MOFILES)
622 AC_SUBST(POFILES)
623 AM_GNU_GETTEXT_VERSION
624 AM_GNU_GETTEXT(no-libtool, need-ngettext, \$(top_builddir)/intl/)
625 AC_SUBST(LIBINTL)
626 AC_SUBST(LTLIBINTL)
627 if test x"$LIBINTL" != "x" ;then
628         CFLAGS="$CFLAGS -I\$(top_builddir)/intl/"
629 fi
630
631 fi
632 AM_CONDITIONAL(ENABLE_NLS, [test "x$enable_nls" = "xyes"])
633 AC_CHECK_HEADER(
634         byteswap.h,
635         AC_DEFINE(
636                 [HAVE_BYTESWAP_H],
637                 [1],
638                 [Define to 1 if you have byteswap.h],
639                 )
640                 ,
641 )
642
643 PACKAGE=navit
644 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
645 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
646 AC_SUBST(PACKAGE)
647 AC_SUBST(VERSION)
648
649 AC_CHECK_HEADER(wordexp.h,wordexp_h=yes,wordexp_h=no;NAVIT_CFLAGS="$NAVIT_CFLAGS -I\$(top_srcdir)/navit/support/wordexp";NAVIT_LIBS="$NAVIT_LIBS -L\$(top_builddir)/navit/support/wordexp -lsupport_wordexp")
650 AM_CONDITIONAL(SUPPORT_WORDEXP, [test "x$wordexp_h" = "xno"])
651
652 AC_CANONICAL_HOST
653 win32=no
654 win32ce=no
655 case $host_os in
656 wince)
657         win32=yes
658         win32ce=yes
659         AC_DEFINE(HAVE_API_WIN32_BASE, 1, [Have Windows Base API])
660         AC_DEFINE(HAVE_API_WIN32_CE, 1, [Have Windows CE API])
661         gui_win32=yes; gui_win32_reason="host_os is wince"
662         graphics_win32=yes; graphics_win32_reason="host_os is wince"
663         vehicle_wince=yes; vehcile_wince_reason="host_os is wince"
664         ;;
665 mingw32)
666         win32=yes
667         AC_DEFINE(HAVE_API_WIN32_BASE, 1, [Have Windows Base API])
668         AC_DEFINE(HAVE_API_WIN32, 1, [Have Windows API])
669         gui_win32=yes; gui_win32_reason="host_os is mingw32"
670         graphics_win32=yes; graphics_win32_reason="host_os is mingw32"
671 esac
672 if test "x$win32" = "xyes"
673 then
674         NAVIT_CFLAGS="$NAVIT_CFLAGS -I\$(top_srcdir)/navit/support/win32"
675         NAVIT_LIBS="$NAVIT_LIBS -L\$(top_builddir)/navit/support/win32 -lsupport_win32"
676 fi
677 AM_CONDITIONAL(SUPPORT_WIN32, [test "x$win32" = "xyes"])
678 AM_CONDITIONAL(SUPPORT_WIN32CE, [test "x$win32ce" = "xyes"])
679
680 LIBS="$LIBS -lm"
681 if test "$win32" == "no"; then
682         LIBS="$LIBS -rdynamic"
683 fi
684
685 support_libc=no
686 AC_ARG_ENABLE(support_libc, [  --enable-support-libc enable builtin mini libc ], support_libc=$enableval)
687 AM_CONDITIONAL(SUPPORT_LIBC, [test "x$support_libc" = "xyes"])
688 if test "x$support_libc" = "xyes"; then
689         CFLAGS="$CFLAGS -I\$(top_srcdir)/navit/support/libc"
690 fi
691
692 ## graphics
693 # gd
694 AC_ARG_ENABLE(graphics-gd, [  --enable-graphics-gd                enable graphics type gd], graphics_gd=$enableval;graphics_gd_reason="configure parameter")
695 if test "x${graphics_gd}" = "xyes" ; then
696         if test -z "$GDLIB_CONFIG"; then
697             AC_PATH_PROG([GDLIB_CONFIG], [gdlib-config], [])
698         fi
699         AC_MSG_CHECKING([for gdlib with $GDLIB_CONFIG])
700         if test ! -x "$GDLIB_CONFIG"; then
701             if test "x${GDLIB_CONFIG}" = "x" ; then
702                  graphics_gd_reason="$GDLIB_CONFIG not executable"
703             else
704                  graphics_gd_reason="gdlib-config missing"
705             fi
706             graphics_gd=no 
707             AC_MSG_RESULT([no])
708         else
709             GD_CFLAGS="-I`$GDLIB_CONFIG --includedir`"
710             GD_LIBS="-L`$GDLIB_CONFIG --libdir` -lgd `$GDLIB_CONFIG --libs`"
711             AC_SUBST(GD_CFLAGS)
712             AC_SUBST(GD_LIBS)
713             AC_MSG_RESULT([yes])
714         fi 
715 fi
716 AM_CONDITIONAL(GRAPHICS_GD, test "x${graphics_gd}" = "xyes")
717 # gtk_drawing_area
718 AC_ARG_ENABLE(graphics-gtk-drawing-area, [  --disable-graphics-gtk-drawing-area disable graphics type gtk_drawing_area], graphics_gtk_drawing_area=$enableval;graphics_gtk_drawing_area_reason="configure parameter")
719 AM_CONDITIONAL(GRAPHICS_GTK_DRAWING_AREA, [test "x${graphics_gtk_drawing_area}" = "xyes"])
720 # win32
721 AC_ARG_ENABLE(graphics-win32, [  --disable-graphics-win32            disable graphics type win32], graphics_win32=$enableval;graphics_win32_reason="configure parameter")
722 AM_CONDITIONAL(GRAPHICS_WIN32, test "x${graphics_win32}" = "xyes")
723 # qt_qpainter
724 AC_ARG_ENABLE(graphics-qt-qpainter, [  --disable-graphics-qt-qpainter      disable graphics type qt-qpainter], graphics_qt_qpainter=$enableval;graphics_qt_qpainter_reason="configure parameter")
725 if test "x${graphics_qt_qpainter}" = "xyes" -a "x${QT_GUI_CFLAGS}" = "x" -a "x${QT_GUI_LIBS}" = "x"; then
726         PKG_CHECK_MODULES(QT_GUI, [QtGui QtCore], ,graphics_qt_qpainter=no,graphics_qt_qpainter_reason="Packages QtGui and/or QtCore missing")
727 fi
728 if test "x${graphics_qt_qpainter}" = "xyes" ; then
729         AC_DEFINE(USE_GRAPICS_QT_QPAINTER, 1, [Build with graphics qt_qpainter])
730 fi
731 AC_SUBST(QT_GUI_CFLAGS)
732 AC_SUBST(QT_GUI_LIBS)
733 AM_CONDITIONAL(GRAPHICS_QT_QPAINTER, test "x${graphics_qt_qpainter}" = "xyes")
734
735 ## gui
736 # gtk
737 AC_ARG_ENABLE(gui-gtk, [  --disable-gui-gtk                   disable gui type gtk ], gui_gtk=$enableval)
738 AM_CONDITIONAL(GUI_GTK, [test "x${gui_gtk}" = "xyes"])
739 # internal
740 AC_ARG_ENABLE(gui-internal, [  --disable-gui-internal              disable gui type internal], gui_internal=$enableval;gui_internal_reason="configure parameter")
741 AM_CONDITIONAL(GUI_INTERNAL, test "x${gui_internal}" = "xyes")
742 # win32
743 AC_ARG_ENABLE(gui-win32, [  --disable-gui-win32                 disable gui type win32], gui_win32=$enableval;gui_win32_reason="configure parameter")
744 AM_CONDITIONAL(GUI_WIN32, test "x${gui_win32}" = "xyes")
745
746 ## speech
747 # cmdline
748 AC_ARG_ENABLE(speech-cmdline, [  --disable-speech-cmdline            disable speech type cmdline], speech_cmdline=$enableval;speech_cmdline_reason="configure parameter")
749 AM_CONDITIONAL(SPEECH_CMDLINE, test "x${speech_cmdline}" = "xyes")
750 # cmdline
751 AC_ARG_ENABLE(speech-speechd, [  --disable-speech-speech-dispatcher  disable speech type speech-dispatcher], speech_speech_dispatcher=$enableval;speech_speech_dispatcher_reason="configure parameter")
752 if test "x$speech_speech_dispatcher" = "xyes"; then
753         AC_CHECK_HEADER(libspeechd.h, AC_DEFINE([HAVE_LIBSPEECHD],[],Define to 1 if you have the <libspeechd.h> header file.) SPEECHD_LIBS="-lspeechd",  speech_speech_dispatcher=no; speech_speech_dispatcher_reason="libspeechd.h missing")
754 fi
755 AC_SUBST(SPEECHD_CFLAGS)
756 AC_SUBST(SPEECHD_LIBS)
757 AM_CONDITIONAL(SPEECH_SPEECH_DISPATCHER, test "x${speech_speech_dispatcher}" = "xyes")
758
759 ## vehicle
760 # demo
761 AC_ARG_ENABLE(vehicle-demo, [  --disable-vehicle-demo              disable vehicle type demo], vehicle_demo=$enableval;vehicle_demo_reason="configure parameter")
762 AM_CONDITIONAL(VEHICLE_DEMO, test "x${vehicle_demo}" = "xyes")
763 # file
764 AC_ARG_ENABLE(vehicle-file, [  --disable-vehicle-file              disable vehicle type file], vehicle_file=$enableval;vehicle_file_reason="configure parameter")
765 AM_CONDITIONAL(VEHICLE_FILE, test "x${vehicle_file}" = "xyes")
766 # gpsd
767 if test "x${vehicle_gpsd}" = xyes
768 then
769         AC_CHECK_HEADER(gps.h, AC_DEFINE([HAVE_LIBGPS],[],Define to 1 if you have the <gps.h> header file.) GPSD_LIBS="-lgps", vehicle_gpsd=no; vehicle_gpsd_reason="no gps.h" )
770 fi
771 AC_SUBST(GPSD_CFLAGS)
772 AC_SUBST(GPSD_LIBS)
773 AM_CONDITIONAL(VEHICLE_GPSD, [test "x${vehicle_gpsd}" = "xyes"])
774 # gypsy
775 AC_ARG_ENABLE(vehicle-gypsy,[  --disable-vehicle-gypsy             disable vehicle type gypsy], vehicle_gypsy=$enableval;vehicle_gypsy_reason="configure parameter")
776 if test "x${vehicle_gypsy}" = "xyes"
777 then
778         PKG_CHECK_MODULES(GYPSY, gypsy, ,vehicle_gypsy=no;vehicle_gypsy_reason="package gypsy missing")
779 fi
780 AC_SUBST(GYPSY_CFLAGS)
781 AC_SUBST(GYPSY_LIBS)
782 AM_CONDITIONAL(VEHICLE_GYPSY, test "x${vehicle_gypsy}" = "xyes")
783 # wince
784 AC_ARG_ENABLE(vehicle-wince, [  --disable-vehicle-wince             disable vehicle type wince], vehicle_wince=$enableval;vehicle_wince_reason="configure parameter")
785 AM_CONDITIONAL(VEHICLE_WINCE, test "x${vehicle_wince}" = "xyes")
786
787 NAVIT_CFLAGS="$NAVIT_CFLAGS $GLIB_CFLAGS $GMODULE_CFLAGS"
788 NAVIT_LIBS="$NAVIT_LIBS $GLIB_LIBS $GMODULE_LIBS $LIBINTL"
789 AC_SUBST(NAVIT_CFLAGS)
790 AC_SUBST(NAVIT_LIBS)
791 AC_SUBST(WINDRES)
792
793 AC_CONFIG_FILES([
794 Makefile
795 navit/Makefile
796 navit/binding/Makefile
797 navit/binding/python/Makefile
798 navit/binding/dbus/Makefile
799 navit/data/Makefile
800 navit/data/mg/Makefile
801 navit/data/textfile/Makefile
802 navit/data/binfile/Makefile
803 navit/data/garmin/Makefile
804 navit/data/poi_geodownload/Makefile
805 navit/data/poi_geodownload/libmdb/Makefile
806 navit/data/poi_geodownload/libmdb/include/Makefile
807 navit/fib-1.1/Makefile
808 navit/font/Makefile
809 navit/font/freetype/Makefile
810 navit/graphics/Makefile
811 navit/graphics/gd/Makefile
812 navit/graphics/gtk_drawing_area/Makefile
813 navit/graphics/directfb/Makefile
814 navit/graphics/cogl/Makefile
815 navit/graphics/opengl/Makefile
816 navit/graphics/null/Makefile
817 navit/graphics/sdl/Makefile
818 navit/graphics/qt_qpainter/Makefile
819 navit/graphics/win32/Makefile
820 navit/gui/Makefile
821 navit/gui/gtk/Makefile
822 navit/gui/internal/Makefile
823 navit/gui/clutter/Makefile
824 navit/gui/cegui/Makefile
825 navit/gui/cegui/datafiles/Makefile
826 navit/gui/directfb/Makefile
827 navit/gui/win32/Makefile
828 navit/osd/Makefile
829 navit/osd/core/Makefile
830 navit/speech/Makefile
831 navit/speech/cmdline/Makefile
832 navit/speech/speech_dispatcher/Makefile
833 navit/support/Makefile
834 navit/support/ezxml/Makefile
835 navit/support/glib/Makefile
836 navit/support/libc/Makefile
837 navit/support/win32/Makefile
838 navit/support/wordexp/Makefile
839 navit/support/zlib/Makefile
840 navit/vehicle/Makefile
841 navit/vehicle/file/Makefile
842 navit/vehicle/gpsd/Makefile
843 navit/vehicle/gypsy/Makefile
844 navit/vehicle/demo/Makefile
845 navit/vehicle/wince/Makefile
846 navit/xpm/Makefile
847 navit/maps/Makefile
848 intl/Makefile
849 po/Makefile
850 ])
851 #src/data/garmin_img/Makefile
852
853 AC_OUTPUT
854
855
856 echo ""
857 echo ""
858 echo "Summary of your installation :"
859 # FIXME : maybe elaborate missing dependencies
860 if test x"$sdl" != xyes
861         then
862         sdl_failures="(libsdl maybe?) "
863 fi
864 if test x"$xmu" != xyes
865         then                
866         sdl_failures=$sdl_failures"libxmu "
867 fi        
868 if test x"$glut" != xyes
869        then
870         sdl_failures=$sdl_failures"glut "
871 fi
872 if test x"$glc" != xyes
873         then
874         sdl_failures=$sdl_failures"quesoglc "
875 fi
876 if test x"$cegui" != xyes
877         then
878         sdl_failures=$sdl_failures"cegui-devel >= 0.5 "
879 fi
880 if test -z "$sdl_failures"
881         then
882         echo "OpenGL gui  : ENABLED, with $CEGUI_LIBS"
883         else
884                  echo "OpenGL gui  : DISABLED : you are missing $sdl_failures"
885 fi
886 if test x"$directfb_pkgconfig" = xyes
887         then
888         echo "DIRECTFB    : ENABLED"
889         else
890         echo "DIRECTFB    : DISABLED"
891 fi
892 if test x"$clutter_pkgconfig" = xyes
893         then
894         echo "Clutter gui : ENABLED"
895         else 
896         echo "Clutter gui : DISABLED"
897 fi
898 if test x"$enable_hildon" = xyes
899         then
900         echo "Maemo/Hildon: ENABLED"
901         else
902         echo "Maemo/Hildon: DISABLED"
903 fi
904 if test x"${USE_GARMIN}" = xyes
905         then
906         if test "x$use_libgarmin" = "xyes"
907                 then
908                 echo "Garmin IMG  : ENABLED"
909                 else
910                 echo "Garmin IMG  : DISABLED (you don't have libgarmin)"
911         fi
912         else 
913                 echo "Garmin IMG  : DISABLED (you requested it)"
914 fi
915
916 if test x"$LIBINTL" = "x" ;then
917         nls_libs="system gettext support"
918 else
919         nls_libs="$LIBINTL"
920 fi
921 echo "Plugins:             $plugins ($plugins_reason)"
922 echo "Postgresql:          $postgresql ($postgresql_reason)"
923 echo "Samplemap:           $samplemap ($samplemap_reason)"
924 echo "NLS Support:         $enable_nls($nls_libs)"
925 echo "Graphics types:"
926 echo "  gtk_drawing_area:  $graphics_gtk_drawing_area ($graphics_gtk_drawing_area_reason)"
927 echo "  qt_qpainter:       $graphics_qt_qpainter ($graphics_qt_qpainter_reason)"
928 echo "  win32:             $graphics_win32 ($graphics_win32_reason)"
929 echo "  OpenGL:            $graphics_opengl ($graphics_opengl_reason)"
930 echo "  gd:                $graphics_gd ($graphics_gd_reason)"
931
932 echo "GUI types:"
933 echo "  gtk:               $gui_gtk ($gui_gtk_reason)"
934 echo "  internal:          $gui_internal ($gui_internal_reason)"
935 echo "  win32:             $gui_win32 ($gui_win32_reason)"
936
937 echo "Speech types:"
938 echo "  cmdline:           $speech_cmdline ($speech_cmdline_reason)"
939 echo "  speech_dispatcher: $speech_speech_dispatcher ($speech_speech_dispatcher_reason)"
940
941 echo "Vehicle types:"
942 echo "  demo:              $vehicle_demo ($vehicle_demo_reason)"
943 echo "  file:              $vehicle_file ($vehicle_file_reason)"
944 echo "  gpsd:              $vehicle_gpsd ($vehicle_gpsd_reason)"
945 echo "  gypsy:             $vehicle_gypsy ($vehicle_gypsy_reason)"
946 echo "  wince:             $vehicle_wince ($vehicle_wince_reason)"
947
948 if  test "x${gtk2_pkgconfig}" != "xyes" -a "x${sdl}" != "xyes" -a "x${directfb_pkgconfig}" != "xyes" -a "x${gui_win32}" != "xyes" -a "x${gui_internal}" != "xyes"
949         then
950         echo ""
951         echo "" 
952         echo "*** WARNING! you have no gui that can be built! ***"
953         echo "Please install the dependency for at least gtk or sdl gui"
954         echo "For more details, see the wiki at http://wiki.navit-project.org/"
955         echo "" 
956         exit 1
957 fi
958