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