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