Moved version number to 0.1.0
[navit-package] / configure.in
1 AC_INIT(navit, 0.1.0)
2 AM_INIT_AUTOMAKE
3 AM_CONFIG_HEADER(config.h)
4 AM_MAINTAINER_MODE
5
6
7 m4_ifndef([AC_USE_SYSTEM_EXTENSIONS],
8         [AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], [AC_GNU_SOURCE])])
9
10 AC_USE_SYSTEM_EXTENSIONS
11
12 AC_PROG_CC
13 if eval "test x$GCC = xyes"; then
14         CFLAGS="$CFLAGS -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
15 fi
16 AC_PROG_CXX
17 if eval "test x$GXX = xyes"; then
18         CXXFLAGS="$CXXFLAGS -Wall -Wcast-align -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
19 fi
20
21 PKG_CHECK_EXISTS
22
23 AC_ARG_ENABLE(plugins,  [  --disable-plugins          disable plugins], 
24                         [
25                                 AC_DISABLE_SHARED
26                                 AC_ENABLE_STATIC
27                                 plugins=$enableval
28                         ],
29                         [
30                                 AC_ENABLE_SHARED
31                                 AC_DISABLE_STATIC
32                                 AC_DEFINE(
33                                         [USE_PLUGINS],
34                                         [],
35                                         Define to 1 if you have plugins.
36                                 )
37                                 plugins=yes
38                         ]
39 )
40 AC_PROG_LIBTOOL
41
42 AC_ARG_ENABLE(avoid-unaligned, [  --enable-avoid-unaligned          avoid unaligned accesses], AVOID_UNALIGNED=$enableval, AVOID_UNALIGNED=no)
43 test x"${AVOID_UNALIGNED}" = xyes && AC_DEFINE(AVOID_UNALIGNED,[],Define to avoid unaligned access)
44
45 AC_ARG_ENABLE(avoid-float, [  --enable-avoid-float              avoid floating point calculations], AVOID_FLOAT=$enableval, AVOID_FLOAT=no)
46 test x"${AVOID_FLOAT}" = xyes && AC_DEFINE(AVOID_FLOAT,[],Define to avoid floating point)
47
48 AC_ARG_ENABLE(hildon, [  --enable-hildon              build with maemo/hildon support], enable_hildon=$enableval, enable_hildon=no)
49 if test "x${enable_hildon}" = "xyes" ; then
50         PKG_CHECK_MODULES(enable_hildon, hildon-libs >= 0.12.24, , [
51                 AC_MSG_RESULT(no)
52                 enable_hildon=no
53         ])
54         if test x"${enable_hildon}" = xyes ; then
55                 AC_DEFINE(USE_HILDON, 1, [Build with maemo/hildon support])
56                 AC_SUBST(HILDON_CFLAGS)
57                 AC_SUBST(HILDON_LIBS)
58         fi
59 fi
60 AM_CONDITIONAL(USE_HILDON, test "${enable_hildon}" = "xyes")
61
62 AC_ARG_ENABLE(libgps, [  --disable-libgps             don't use libgps], USE_LIBGPS=$enableval, USE_LIBGPS=yes)
63 AC_ARG_ENABLE(garmin, [  --disable-garmin             disable garmin support], USE_GARMIN=$enableval, USE_GARMIN=yes)
64
65 AC_ARG_ENABLE(samplemap, [  --disable-samplemap             don't build the samplemap], samplemap=$enableval, samplemap=yes)
66 AM_CONDITIONAL(BUILD_SAMPLEMAP, [test "x$samplemap" = "xyes"])
67
68 AC_ARG_ENABLE(fastmath, [  --disable-fastmath             don't build with fastmath], fastmath=$enableval, fastmath=yes)
69 AM_CONDITIONAL(FASTMATH, [test "x$fastmath" = "xyes"])
70
71 if test x"$fastmath" = xyes; then
72         if eval "test x$GCC = xyes"; then
73                 CFLAGS="$CFLAGS -ffast-math"
74         fi
75 fi
76
77 X_CFLAGS="-I$x_includes"
78 X_LIBS="-L$ac_x_libraries"
79
80 PKG_CHECK_MODULES(NAVIT, [glib-2.0 gmodule-2.0], [], AC_MSG_ERROR([glib-2.0 or gmodule-2.0 not found. Usually you need to install a package named glib2-devel or libglib2.0-dev]))
81 AC_SUBST(NAVIT_CFLAGS)
82 AC_SUBST(NAVIT_LIBS)
83
84 AC_CHECK_HEADER(
85         zlib.h,
86         AC_DEFINE(
87                 [HAVE_ZLIB],
88                 [],
89                 Define to 1 if you have the <zlib.h> header file.
90                 )
91                 ZLIB_LIBS="-lz",
92         AC_MSG_WARN([*** no zlib.h\ -- reduced functionality of osm2navit])
93         )
94 AC_SUBST(ZLIB_LIBS)
95
96 AC_ARG_ENABLE(gui-gtk, [  --disable-gui-gtk             don't create gui gtk ], MODULE_GUI_GTK=$enableval, MODULE_GUI_GTK=yes)
97 if test "x$MODULE_GUI_GTK" = "xyes"; then
98         PKG_CHECK_MODULES(GTK2, [gtk+-2.0], [gtk2_pkgconfig=yes], [gtk2_pkgconfig=no])
99         if test "x$gtk2_pkgconfig" = "xyes"; then
100                 AC_DEFINE(HAVE_GTK2, 1, [Define to 1 if you have gtk2])
101         fi
102 fi
103
104 GTK2_CFLAGS="$GTK2_CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
105
106 AC_SUBST(GTK2_CFLAGS)
107 AC_SUBST(GTK2_LIBS)
108 AM_CONDITIONAL(GUI_GTK, [test "x$gtk2_pkgconfig" = "xyes"])
109 AM_CONDITIONAL(GRAPHICS_GTK_DRAWING_AREA, [test "x$gtk2_pkgconfig" = "xyes"])
110 AM_CONDITIONAL(PLUGINS, [test "x$plugins" = "xyes"])
111
112 PKG_CHECK_MODULES(FREETYPE2, [freetype2], [freetype2_pkgconfig=yes], [freetype2_pkgconfig=no])
113 if test "x$freetype2_pkgconfig" = "xyes"; then
114    AC_DEFINE(HAVE_FREETYPE2, 1, [Define to 1 if you have freetype2])
115 fi
116 AC_SUBST(FREETYPE2_CFLAGS)
117 AC_SUBST(FREETYPE2_LIBS)
118
119 PKG_CHECK_MODULES(FONTCONFIG, [fontconfig], [fontconfig_pkgconfig=yes], [fontconfig_pkgconfig=no])
120 if test "x$fontconfig_pkgconfig" = "xyes"; then
121    AC_DEFINE(HAVE_FONTCONFIG, 1, [Define to 1 if you have fontconfig])
122 fi
123 AC_SUBST(FONTCONFIG_CFLAGS)
124 AC_SUBST(FONTCONFIG_LIBS)
125
126 PKG_CHECK_MODULES(IMLIB2, [imlib2], [imlib2_pkgconfig=yes], [imlib2_pkgconfig=no])
127 if test "x$imlib2_pkgconfig" = "xyes"; then
128    AC_DEFINE(HAVE_IMLIB2, 1, [Define to 1 if you have imlib2])
129 fi
130 AC_SUBST(IMLIB2_CFLAGS)
131 AC_SUBST(IMLIB2_LIBS)
132
133
134 AC_ARG_ENABLE(speech-speechd, [  --disable-speech-speechd             don't create speech speechd ], MODULE_SPEECH_SPEECHD=$enableval, MODULE_SPEECH_SPEECHD=yes)
135 if test "x$MODULE_SPEECH_SPEECHD" = "xyes"; then
136         AC_CHECK_HEADER(libspeechd.h, AC_DEFINE([HAVE_LIBSPEECHD],[],Define to 1 if you have the <libspeechd.h> header file.) SPEECHD_LIBS="-lspeechd" speechd=yes,  AC_MSG_WARN([*** no libspeechd.h -- Speech output disabled]))
137 fi
138 AC_SUBST(SPEECHD_CFLAGS)
139 AC_SUBST(SPEECHD_LIBS)
140 AM_CONDITIONAL(SPEECH_SPEECH_DISPATCHER, [test "x$speechd" = "xyes"])
141
142
143 AC_ARG_ENABLE(gui-sdl, [  --disable-gui-sdl             don't create gui sdl ], MODULE_GUI_SDL=$enableval, MODULE_GUI_SDL=yes)
144 if test "x$MODULE_GUI_SDL" = "xyes"; then
145         AC_CHECK_HEADER(
146                 SDL/SDL.h,
147                 AC_DEFINE(
148                         [HAVE_LIBSDL],
149                         [],
150                         Define to 1 if you have the <SDL/SDL.h> header file.
151                         )
152                         SDL_LIBS="-lSDL"
153                         sdl=yes,
154                 AC_MSG_WARN([*** no SDL/SDL.h -- SDL support disabled])
155         )
156 fi
157 AC_SUBST(SDL_CFLAGS)
158 AC_SUBST(SDL_LIBS)
159
160 PKG_CHECK_MODULES(
161         [CEGUI],
162         [CEGUI-OPENGL >= 0.5.0],
163         [
164                 AC_DEFINE(
165                         [HAVE_CEGUI],
166                         [],
167                         [Define to 1 if you have the @<:@CEGUI/CEGUI.h@:>@ header file.])
168                 cegui=yes
169         ],
170         [AC_MSG_WARN([*** CEGUI not found -- SDL support disabled])]
171 )
172
173 AC_CHECK_HEADER(
174         X11/Xmu/Xmu.h,
175         AC_DEFINE(
176                 [HAVE_XMU],
177                 [],
178                 Define to 1 if you have the <X11/Xmu/Xmu.h> header file.
179                 )
180                 xmu=yes,
181         AC_MSG_WARN([*** no X11/Xmu/Xmu.h -- opengl and SDL support disabled])
182 )
183
184 AC_CHECK_HEADER(
185         GL/gl.h,
186         AC_DEFINE(
187                 [HAVE_OPENGL],
188                 [],
189                 Define to 1 if you have the <GL/gl.h> header file.
190                 )
191                 OPENGL_LIBS="$X_LIBS -lGL -lGLU"
192                 opengl=yes,
193         AC_MSG_WARN([*** no GL/gl.h -- opengl and SDL support disabled])
194 )
195
196 AC_CHECK_HEADER(
197         GL/glut.h,
198         AC_DEFINE(
199                 [HAVE_GLUT],
200                 [],
201                 Define to 1 if you have the <GL/glut.h> header file.
202                 )
203                 glut=yes,
204         AC_MSG_WARN([*** no GL/glut.h -- opengl and SDL support disabled])
205 )
206
207 AC_SUBST(OPENGL_CFLAGS)
208 AC_SUBST(OPENGL_LIBS)
209
210 AC_CHECK_HEADER(
211         GL/glc.h,
212         AC_DEFINE(
213                 [HAVE_GLC],
214                 [],
215                 Define to 1 if you have the <GL/glc.h> header file.
216                 )
217                 GLC_LIBS="-lGLC"
218                 glc=yes,
219         AC_MSG_WARN([*** no GL/glc.h -- opengl and SDL support disabled])
220 )
221 AC_SUBST(GLC_CFLAGS)
222 AC_SUBST(GLC_LIBS)
223
224 if test x"$cegui" = xyes         
225                 then     
226          # Save the LIBS into a temp var since AC_CHECK_LIB adds the lib into LIBS       
227          # and we want just to check and use CEGUI_LIBS          
228          libstemp="$LIBS"        
229          # For CEGUI, we have to check the presence of some libraries.   
230          # The following are mandatory (used by navit)   
231          # If the user installed NavIt without, issue a warning and disable CEGUI        
232          AC_CHECK_LIB(CEGUIBase, main,   
233                   [],    
234                   [      
235                  echo "Error! Something is wrong with CEGUIBase. Do you have at least cegui-0.5?"        
236                  ])      
237          AC_CHECK_LIB(CEGUIOpenGLRenderer, main,         
238                   [],    
239                   [      
240                  echo "Error! Something is wrong with CEGUIOpenGLRenderer. Do you have at least cegui-0.5? "     
241                  ], $OPENGL_LIBS )       
242          AC_CHECK_LIB(CEGUIFalagardWRBase, main,         
243                   [],    
244                   [      
245                  echo "Error! Something is wrong with CEGUIFalagardWRBase. Do you have at least cegui-0.5?"      
246                  ], $OPENGL_LIBS)        
247          CEGUI_LIBS="-lCEGUIBase -lCEGUIOpenGLRenderer -lCEGUIFalagardWRBase"    
248                  
249          # The following are optional, but we need to link against them if cegui was built with them     
250          AC_CHECK_LIB(CEGUIXercesParser, main,   
251                   [CEGUI_LIBS="$CEGUI_LIBS -lCEGUIXercesParser"],        
252                   [echo "CEGUIXercesParser not found/not working, disabled."],   
253                   $OPENGL_LIBS   
254          )       
255                  
256          AC_CHECK_LIB(CEGUIExpatParser, main,    
257                   [CEGUI_LIBS="$CEGUI_LIBS -lCEGUIExpatParser"],         
258                   [echo "CEGUIExpatParser not found/not working, disabled."],    
259                   $OPENGL_LIBS   
260          )       
261                  
262          AC_CHECK_LIB(CEGUILibxmlParser, main,   
263                   [CEGUI_LIBS="$CEGUI_LIBS -lCEGUILibxmlParser"],        
264                   [echo "CEGUILibxmlParser not found/not working, disabled."],   
265                   $OPENGL_LIBS   
266          )       
267                  
268          AC_CHECK_LIB(CEGUITinyXMLParser, main,          
269                   [CEGUI_LIBS="$CEGUI_LIBS -lCEGUITinyXMLParser"],       
270                   [echo "CEGUITinyXMLParser not found/not working, disabled."],          
271                   $OPENGL_LIBS   
272          )       
273                  
274          AC_CHECK_LIB(CEGUIDevILImageCodec, main,        
275                   [
276                         CEGUI_LIBS="$CEGUI_LIBS -lCEGUIDevILImageCodec"
277                          AC_DEFINE([HAVE_LIBCEGUIDEVILIMAGECODEC],[1],Define to 1 to use DevIL codec)
278                   ],
279                   [echo "CEGUIDevILImageCodec not found/not working, disabled."],        
280                   $OPENGL_LIBS   
281          )       
282                  
283          AC_CHECK_LIB(CEGUITGAImageCodec, createImageCodec,      
284                   [
285                           CEGUI_LIBS="$CEGUI_LIBS -lCEGUITGAImageCodec"
286                           AC_DEFINE(HAVE_LIBCEGUITGAIMAGECODEC,[1],Define to 1 to use the TGA codec)
287                   ],
288                   [echo "GUITGAImageCodec not found/not working, disabled."],    
289                   $OPENGL_LIBS   
290          )       
291                  
292          libssilly="$OPENGL_LIBS -lpng"          
293          AC_CHECK_LIB(CEGUISILLYImageCodec, createImageCodec,    
294                   [
295                          CEGUI_LIBS="$CEGUI_LIBS -lCEGUISILLYImageCodec"
296                          AC_DEFINE([HAVE_LIBCEGUISILLYIMAGECODEC],[1],Define to 1 to use SILLY codec)
297                   ],
298                   [echo "CEGUISILLYImageCodec not found/not working, disabled."],        
299                   $libssilly     
300          )       
301          # Restore the libs
302          LIBS="$libstemp"        
303          echo "CEGUI_LIBS : $CEGUI_LIBS"         
304          fi
305
306 AC_SUBST(CEGUI_CFLAGS)
307 AC_SUBST(CEGUI_LIBS)
308
309 AM_CONDITIONAL(GUI_SDL, [test "x$sdl" = "xyes" -a "x$cegui" = "xyes" -a "x$opengl" = "xyes" -a "x$glc" = "xyes" -a "x$xmu" = "xyes" ])
310 AM_CONDITIONAL(GRAPHICS_OPENGL, [test "x$opengl" = "xyes" -a "x$glc" = "xyes" ])
311
312
313 if test x"${USE_LIBGPS}" = xyes
314 then
315         AC_CHECK_HEADER(gps.h, AC_DEFINE([HAVE_LIBGPS],[],Define to 1 if you have the <gps.h> header file.) GPSD_LIBS="-lgps" gpsd=yes,  AC_MSG_WARN([*** no gps.h -- gpsd support disabled]))
316 fi
317 AC_SUBST(GPSD_CFLAGS)
318 AC_SUBST(GPSD_LIBS)
319 AM_CONDITIONAL(VEHICLE_GPSD, [test "x$gpsd" = "xyes"])
320
321 if test x"${USE_GARMIN}" = xyes
322 then
323         # check for libgarmin
324         PKG_CHECK_MODULES(LIBGARMIN, libgarmin, use_libgarmin=yes, use_libgarmin=no)
325         AC_SUBST(LIBGARMIN_CFLAGS)
326         AC_SUBST(LIBGARMIN_LIBS)
327 fi
328         AM_CONDITIONAL(HAVELIBGARMIN, [test "x$use_libgarmin" = "xyes"])
329
330
331 AC_ARG_ENABLE(binding-python, [  --disable-binding-python             don't create binding python ], MODULE_BINDING_PYTHON=$enableval, MODULE_BINDING_PYTHON=yes)
332 if test "$cross_compiling" = no; then
333         if test "x$MODULE_BINDING_PYTHON" = "xyes"; then
334                 AC_PATH_PROG(_PATH_PYTHON,[python])
335                 dnl Libraries and flags for embedded Python.
336                 dnl FIXME: I wish there was a less icky way to get this.
337                 if test x"$_PATH_PYTHON" != x ; then
338                         AC_MSG_CHECKING(for Python linkage)
339                         py_prefix=`$_PATH_PYTHON -c 'import sys; print sys.prefix'`
340                         py_ver=`$_PATH_PYTHON -c 'import sys; print sys.version[[:3]]'`
341                         py_libdir="${py_prefix}/lib/python${py_ver}"
342                         PYTHON_CFLAGS="-I${py_prefix}/include/python${py_ver}"
343                         if test -f $py_libdir/config/Makefile -a -f $py_prefix/include/python${py_ver}/Python.h; then
344                                 py_libs=`grep '^LIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
345                                 py_libc=`grep '^LIBC=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
346                                 py_libm=`grep '^LIBM=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
347                                 py_liblocalmod=`grep '^LOCALMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
348                                 py_libbasemod=`grep '^BASEMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
349                                 PYTHON_LIBS="-L$py_libdir/config $py_libs $py_libc $py_libm -lpython$py_ver $py_liblocalmod $py_libbasemod"
350                                 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/[ \\t]*/ /g'`
351                                 AC_DEFINE(HAVE_PYTHON, 1, [Define to 1 if you have python])
352                                 python=yes
353                                 AC_MSG_RESULT($py_libdir)
354                         else
355                                 AC_MSG_WARN([$py_libdir/config/Makefile or $py_prefix/include/python${py_ver}/Python.h missing, support for python disabled])
356                         fi
357                 fi
358         fi
359 else
360         AC_MSG_WARN([*** cross compiling, support for python disabled])
361 fi
362 AC_SUBST(PYTHON_CFLAGS)
363 AC_SUBST(PYTHON_LIBS)
364 AM_CONDITIONAL(BINDING_PYTHON, [test "x$python" = "xyes"])
365
366 # NLS
367
368 AC_ARG_ENABLE(nls,
369   [  --disable-nls        disable Native Language Support ( gettext/libintl )],
370    enable_nls=$enableval, enable_nls=yes)
371
372
373 INTLIBS=""
374 MOFILES=""
375 POFILES=""
376 LINGUAS=""
377
378 if test x$enable_nls = xyes; then
379
380   AC_CHECK_FUNC(gettext, [HAVEGETTEXT="yes"], 
381              AC_CHECK_LIB(intl, gettext, [INTLIBS="-lintl" HAVEGETTEXT="yes"],
382                          INTLIBS="" ))
383
384   AC_CHECK_PROG(XGETTEXT, xgettext, xgettext)
385   AC_CHECK_PROG(MSGMERGE, msgmerge, msgmerge)
386   AC_CHECK_PROG(MSGFMT, msgfmt, msgfmt)
387
388   if test "$XGETTEXT" != ""; then 
389     if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
390         echo "xgettext isn't GNU version"
391         XGETTEXT=""
392     fi
393   fi
394
395   if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
396      PO=""
397      if test "$LINGUAS" = ""; then
398            ling=` (cd $srcdir/po; /bin/ls *.po) `
399            for l in $ling; do
400                 lcode=`basename $l .po`
401                 LINGUAS="$LINGUAS$lcode "
402            done
403     fi
404     AC_DEFINE(ENABLE_NLS, [1], [NLS Please])
405     echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
406   else
407    LINGUAS=""
408    PO=""
409    echo "xgettext and libintl.a don't both exist; will not build i18n support"
410  fi
411  for lang in $LINGUAS; do
412     MOFILES="$MOFILES $lang.mo"
413  done
414  for lang in $LINGUAS; do
415     POFILES="$POFILES $lang.po"
416  done
417 fi
418
419
420 AC_SUBST(INTLIBS)
421 AC_SUBST(MOFILES)
422 AC_SUBST(POFILES)
423 AM_GNU_GETTEXT_VERSION
424 AM_GNU_GETTEXT
425
426 LIBS="$LIBS -lm -rdynamic"
427
428 PACKAGE=navit
429 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
430 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
431 AC_SUBST(PACKAGE)
432 AC_SUBST(VERSION)
433
434 AC_CONFIG_FILES([
435 Makefile
436 src/Makefile
437 src/binding/Makefile
438 src/binding/python/Makefile
439 src/data/Makefile
440 src/data/mg/Makefile
441 src/data/textfile/Makefile
442 src/data/binfile/Makefile
443 src/data/garmin/Makefile
444 src/data/poi_geodownload/Makefile
445 src/data/poi_geodownload/libmdb/Makefile
446 src/data/poi_geodownload/libmdb/include/Makefile
447 src/fib-1.1/Makefile
448 src/graphics/Makefile
449 src/graphics/gtk_drawing_area/Makefile
450 src/graphics/opengl/Makefile
451 src/graphics/null/Makefile
452 src/gui/Makefile
453 src/gui/gtk/Makefile
454 src/gui/sdl/Makefile
455 src/gui/sdl/datafiles/Makefile
456 src/osd/Makefile
457 src/osd/core/Makefile
458 src/speech/Makefile
459 src/speech/cmdline/Makefile
460 src/speech/speech_dispatcher/Makefile
461 src/vehicle/Makefile
462 src/vehicle/file/Makefile
463 src/vehicle/gpsd/Makefile
464 src/vehicle/demo/Makefile
465 src/xpm/Makefile
466 src/maps/Makefile
467 intl/Makefile
468 po/Makefile
469 ])
470 #src/data/garmin_img/Makefile
471
472 AC_OUTPUT
473
474
475 echo ""
476 echo ""
477 echo "Summary of your installation :"
478 if test x"$gtk2_pkgconfig" = xyes
479         then
480         echo "GTK gui     : ENABLED"
481         else
482         echo "GTK gui     : DISABLED : you are missing a dependency. To fix this install a package named gtk2-devel or libgtk2.0-dev"
483 fi
484 # FIXME : maybe elaborate missing dependencies
485 if test x"$sdl" != xyes
486         then
487         sdl_failures="(libsdl maybe?) "
488 fi
489 if test x"$xmu" != xyes
490         then                
491         sdl_failures=$sdl_failures"libxmu "
492 fi        
493 if test x"$glut" != xyes
494        then
495         sdl_failures=$sdl_failures"glut "
496 fi
497 if test x"$glc" != xyes
498         then
499         sdl_failures=$sdl_failures"quesoglc "
500 fi
501 if test x"$cegui" != xyes
502         then
503         sdl_failures=$sdl_failures"cegui-devel >= 0.5 "
504 fi
505 if test -z "$sdl_failures"
506         then
507         echo "OpenGL gui  : ENABLED, with $CEGUI_LIBS"
508         else
509                  echo "OpenGL gui  : DISABLED : you are missing $sdl_failures"
510 fi
511 if test x"$enable_hildon" = xyes
512         then
513         echo "Maemo/Hildon: ENABLED"
514         else
515         echo "Maemo/Hildon: DISABLED"
516 fi
517
518 if test x"$gpsd" = xyes
519         then
520         echo "GPSD support: ENABLED"
521         else
522         echo "GPSD support: DISABLED"
523 fi
524 if test x"$speechd" = xyes
525         then
526         echo "SPEECHD     : ENABLED"
527         else
528         echo "SPEECHD     : DISABLED"
529 fi
530 if test x"${USE_GARMIN}" = xyes
531         then
532         if test "x$use_libgarmin" = "xyes"
533                 then
534                 echo "Garmin IMG  : ENABLED"
535                 else
536                 echo "Garmin IMG  : DISABLED (you don't have libgarmin)"
537         fi
538         else 
539                 echo "Garmin IMG  : DISABLED (you requested it)"
540 fi
541 if test "x$samplemap" = "xyes"
542         then
543         echo "Samplemap   : ENABLED"
544         else
545         echo "Samplemap   : DISABLED"
546 fi
547 if  [ test x"$gtk2_pkgconfig" != xyes ] && [ test x"$sdl" != xyes ]
548         then
549         echo ""
550         echo "" 
551         echo "*** WARNING! you have no gui that can be built! ***"
552         echo "Please install the dependency for at least gtk or sdl gui"
553         echo "For more details, see the wiki at http://wiki.navit-project.org/"
554         echo "" 
555         exit 1
556 fi