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