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