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