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