/[zanavi_public1]/navit/configure.in
ZANavi

Contents of /navit/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 41 - (show annotations) (download)
Tue Aug 11 18:50:37 2015 UTC (3 years, 1 month ago) by zoff99
File size: 51633 byte(s)
many fixes, and new features
1 AC_INIT(zanavi, 1.0.0)
2 AC_CONFIG_MACRO_DIR([m4])
3 SOURCE_MODE=svn
4
5 AM_INIT_AUTOMAKE
6 AM_CONFIG_HEADER(config.h)
7
8 AC_SUBST(SOURCE_MODE)
9 AM_CONDITIONAL(SOURCE_MODE_SVN, [test "x${SOURCE_MODE}" = "xsvn"])
10
11 if test "x${SOURCE_MODE}" = "xsvn" ; then
12 USE_MAINTAINER_MODE=yes
13 else
14 USE_MAINTAINER_MODE=no
15 fi
16
17 AC_DEFUN([AM_MAINTAINER_MODE],
18 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
19 dnl maintainer-mode is enabled by default (reason of inclusion of this function)
20 AC_ARG_ENABLE(maintainer-mode,
21 [ --enable-maintainer-mode enable make rules and dependencies not useful
22 (and sometimes confusing) to the casual installer],
23 USE_MAINTAINER_MODE=$enableval)
24 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
25 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
26 MAINT=$MAINTAINER_MODE_TRUE
27 AC_SUBST(MAINT)dnl
28 ]
29 )
30
31 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
32
33 AM_MAINTAINER_MODE
34
35
36 plugins=yes; plugins_reason=default
37 postgresql=yes; postgresql_reason=default
38 samplemap=yes; samplemap_reason=default
39 binding_dbus=yes; binding_dbus_reason=default
40 binding_dbus_use_system_bus=no
41 binding_python=yes; binding_python_reason=default
42 font_freetype=yes; font_freetype_reason=default
43 fontconfig=yes; fontconfig_reason=default
44 fribidi=yes; fribidi_reason=default
45 gui_gtk=no; gui_gtk_reason=default
46 gui_win32=no; gui_win32_reason=default
47 gui_internal=yes; gui_internal_reason=default
48 gui_qml=no; gui_qml_reason=default
49 graphics=yes; graphics_reason=default
50 graphics_gd=no; graphics_gd_reason=default
51 graphics_gtk_drawing_area=no; graphics_gtk_drawing_area_reason=default
52 graphics_qt_qpainter=yes; graphics_qt_qpainter_reason=default
53 graphics_null=yes; graphics_null_reason=default
54 graphics_opengl=yes; graphics_opengl_reason=default
55 graphics_sdl=yes; graphics_sdl_reason=default
56 graphics_win32=no; graphics_win32_reason=default
57 maptool=yes; maptool_reason=default
58 map_binfile=yes; map_binfile_reason=default
59 map_filter=yes; map_filter_reason=default
60 map_mg=yes; map_mg_reason=default
61 map_shapefile=yes; map_shapefile_reason=default
62 map_textfile=yes; map_textfile_reason=default
63 map_csv=yes; map_csv_reason=default
64 osd_core=yes; osd_core_reason=default
65 plugin_pedestrian=no; plugin_pedestrian_reason=default
66 routing=yes; routing_reason=default
67 speech_android=no; speech_android_reason=default
68 speech_cmdline=yes; speech_cmdline_reason=default
69 speech_dbus=no; speech_dbus_reason=default
70 speech_espeak=no; speech_espeak_reason=default
71 speech_speech_dispatcher=yes; speech_speech_dispatcher_reason=default
72 vehicle_demo=yes; vehicle_demo_reason=default
73 vehicle_file=yes; vehicle_file_reason=default
74 vehicle_gpsd=yes; vehicle_gpsd_reason=default
75 vehicle_gpsd_dbus=no; vehicle_gpsd_dbus_reason=default
76 vehicle_gypsy=yes; vehicle_gypsy_reason=default
77 vehicle_null=no; vehicle_null_reason=default
78 vehicle_wince=no; vehicle_wince_reason=default
79 vehicle_iphone=no; vehicle_iphone_reason=default
80 vehicle_android=no; vehicle_android_reason=default
81 graphics_android=no; graphics_android_reason=default
82 vehicle_maemo=no; vehicle_maemo_reason=default
83 vehicle_webos=no; vehicle_webos_reason=default
84
85 shared_libnavit=no
86 LIBNAVIT=navit
87 bin_navit=yes
88
89 AC_CANONICAL_HOST
90 win32=no
91 win32ce=no
92 case $host_os in
93 wince|mingw32ce|cegcc)
94 win32=yes
95 win32ce=yes
96 AC_DEFINE(HAVE_API_WIN32_BASE, 1, [Have Windows Base API])
97 AC_DEFINE(HAVE_API_WIN32_CE, 1, [Have Windows CE API])
98 gui_win32=yes; gui_win32_reason="host_os is wince"
99 graphics_win32=yes; graphics_win32_reason="host_os is wince"
100 vehicle_wince=yes; vehcile_wince_reason="host_os is wince"
101 speech_espeak=yes; speech_espeak_reason="host_os is wince"
102 support_libpng=yes
103 maptool=no; maptool_reason="host_os is wince"
104 ;;
105 mingw32)
106 win32=yes
107 AC_DEFINE(HAVE_API_WIN32_BASE, 1, [Have Windows Base API])
108 AC_DEFINE(HAVE_API_WIN32, 1, [Have Windows API])
109 gui_win32=yes; gui_win32_reason="host_os is mingw32"
110 graphics_win32=yes; graphics_win32_reason="host_os is mingw32"
111 speech_espeak=yes; speech_espeak_reason="host_os is mingw32"
112 support_libpng=yes
113 ;;
114 linux*_android)
115 android=yes
116 shared_libnavit=yes
117 bin_navit=no
118 AC_DEFINE(HAVE_API_ANDROID, 1, [Have Android API])
119 echo "void dl_unwind_find_exidx(void) {}" >crt0.c
120 $CC -c crt0.c
121 $AR r libg.a crt0.o
122 vehicle_android=yes; vehicle_android_reason="host_os is android"
123 graphics_android=yes; graphics_android_reason="host_os is android"
124 speech_android=yes; speech_android_reason="host_os is android"
125 MODULE_LDFLAGS="-module -Xcompiler -nostdlib -Xcompiler -Wl,-rpath -Xcompiler -Wl,/data/data/com.zoffcc.applications.zanavi/lib"
126 MODULE_LIBADD="-llog"
127 LIBNAVIT=_data_data_com.zoffcc.applications.zanavi_lib_navit
128 NAVIT_MODULE_LDFLAGS="$MODULE_LDFLAGS -L\$(top_builddir)/navit -l$LIBNAVIT"
129 ;;
130 esac
131 if test "x$win32" = "xyes"
132 then
133 NAVIT_CFLAGS="$NAVIT_CFLAGS -I\$(top_srcdir)/navit/support/win32"
134 NAVIT_LIBS="$NAVIT_LIBS -L\$(top_builddir)/navit/support/win32 -lsupport_win32"
135 NAVIT_SOCKET_LDFLAGS="$MODULE_LDFLAGS -lws2_32"
136 fi
137
138
139 AM_CONDITIONAL(SUPPORT_WIN32, [test "x$win32" = "xyes"])
140 AM_CONDITIONAL(SUPPORT_WIN32CE, [test "x$win32ce" = "xyes"])
141 AM_CONDITIONAL(SUPPORT_ANDROID, [test "x$android" = "xyes"])
142
143 if test "x$support_libpng" = "xyes"
144 then
145 NAVIT_CFLAGS="$NAVIT_CFLAGS -I\$(top_srcdir)/navit/support/libpng"
146 NAVIT_LIBS="$NAVIT_LIBS -L\$(top_builddir)/navit/support/libpng -lsupport_libpng"
147 fi
148 AM_CONDITIONAL(SUPPORT_LIBPNG, [test "x$support_libpng" = "xyes"])
149
150 AC_SUBST(MODULE_LDFLAGS)
151 AC_SUBST(MODULE_LIBADD)
152 AC_SUBST(NAVIT_MODULE_LDFLAGS)
153 AC_SUBST(NAVIT_SOCKET_LDFLAGS)
154
155 LIBS="$LIBS -lm"
156 if test "$win32" == "no" -a "$host_os" != "cygwin"; then
157 LIBS="$LIBS -rdynamic"
158 fi
159
160 m4_ifndef([AC_USE_SYSTEM_EXTENSIONS],
161 [AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], [AC_GNU_SOURCE])])
162
163 AC_USE_SYSTEM_EXTENSIONS
164
165 m4_ifdef([AC_PROG_OBJC],[AC_PROG_OBJC])
166 AC_PROG_CC
167 m4_ifdef([AC_PROG_OBJC],[AC_PROG_OBJC],[AC_SUBST([OBJC],["$CC"])
168 AC_SUBST([OBJCFLAGS],["$CFLAGS"])])
169 m4_ifndef([AC_PROG_OBJC],[_AM_DEPENDENCIES(OBJC)])
170
171 if eval "test x`uname` = xDarwin"; then
172 CFLAGS="$CFLAGS -I/opt/local/include -L/opt/local/lib"
173 fi
174 if eval "test x$GCC = xyes"; then
175 CFLAGS="$CFLAGS -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
176 fi
177 AM_PROG_CC_C_O
178
179 AC_PROG_CXX
180 if eval "test x$GXX = xyes"; then
181 CXXFLAGS="$CXXFLAGS -Wall -Wcast-align -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
182 fi
183
184 PKG_CHECK_EXISTS
185 if test "x${cross_compiling}" = "xyes"; then
186 samplemap="no";samplemap_reason="not supported for cross compiling"
187 binding_python="no";binding_python_reason="not supported for cross compiling"
188 postgresql="no";postgresql_reason="not supported for cross compiling"
189 AC_MSG_CHECKING([for a C compiler for build tools])
190 AC_CHECK_PROGS(CC_FOR_BUILD, gcc cc)
191 else
192 CC_FOR_BUILD=$CC
193 fi
194 CCLD_FOR_BUILD="$CC_FOR_BUILD"
195 AC_SUBST(cross_compiling)
196 AM_CONDITIONAL(CROSS_COMPILING, test "x${cross_compiling}" = "xyes")
197 AC_SUBST(CC_FOR_BUILD)
198 AC_SUBST(CCLD_FOR_BUILD)
199
200 # Endianness
201 # defines WORDS_BIGENDIAN for big-endian systems
202 AC_C_BIGENDIAN
203
204 AC_ARG_ENABLE(variant, [ --enable-variant=something set variant], NAVIT_VARIANT=$enableval)
205 AC_SUBST(NAVIT_VARIANT)
206
207 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]))
208
209 AC_ARG_ENABLE(avoid-unaligned, [ --enable-avoid-unaligned avoid unaligned accesses], AVOID_UNALIGNED=$enableval, AVOID_UNALIGNED=no)
210 test x"${AVOID_UNALIGNED}" = xyes && AC_DEFINE(AVOID_UNALIGNED,[],Define to avoid unaligned access)
211
212 AC_ARG_ENABLE(avoid-float, [ --enable-avoid-float avoid floating point calculations], AVOID_FLOAT=$enableval, AVOID_FLOAT=no)
213 test x"${AVOID_FLOAT}" = xyes && AC_DEFINE(AVOID_FLOAT,[],Define to avoid floating point)
214
215 AC_ARG_ENABLE(transformation-roll, [ --enable-transformation-roll add support for specifying roll angle in transformation], ENABLE_ROLL=$enableval, ENABLE_ROLL=no)
216 test x"${ENABLE_ROLL}" = xyes && AC_DEFINE(ENABLE_ROLL,[],Define to add support for specifying roll angle in transformation)
217
218 AC_ARG_ENABLE(hildon, [ --disable-hildon build without maemo/hildon support], enable_hildon=$enableval, enable_hildon=yes)
219 if test "x${enable_hildon}" = "xyes" ; then
220 PKG_CHECK_MODULES(HILDON, hildon-1 >= 0.9.9, , [
221 AC_MSG_RESULT(no)
222 enable_hildon=no
223 ])
224 PKG_CHECK_MODULES(GPSBT, gpsbt, [
225 AC_DEFINE(HAVE_GPSBT, 1, [Have the gpsbt library])
226 AC_SUBST(GPSBT_CFLAGS)
227 AC_SUBST(GPSBT_LIBS)
228 ], [
229 AC_MSG_RESULT(no)
230 ])
231 if test x"${enable_hildon}" = xyes ; then
232 AC_DEFINE(USE_HILDON, 1, [Build with maemo/hildon support])
233 AC_SUBST(HILDON_CFLAGS)
234 AC_SUBST(HILDON_LIBS)
235 fi
236 fi
237 AM_CONDITIONAL(USE_HILDON, test "${enable_hildon}" = "xyes")
238
239 AC_ARG_ENABLE(osso, [ --disable-osso build without maemo/osso support], enable_osso=$enableval, enable_osso=yes)
240 if test "x${enable_osso}" = "xyes" ; then
241 PKG_CHECK_MODULES(LIBOSSO, libosso, , [
242 AC_MSG_RESULT(no)
243 enable_osso=no
244 ])
245 if test x"${enable_osso}" = xyes ; then
246 AC_DEFINE(USE_OSSO, 1, [Build with maemo/osso support])
247 AC_SUBST(LIBOSSO_CFLAGS)
248 AC_SUBST(LIBOSSO_LIBS)
249 fi
250 fi
251 echo ${enable_osso}
252 AM_CONDITIONAL(USE_OSSO, test "x${enable_osso}" = "xyes")
253
254 AC_ARG_ENABLE(garmin, [ --disable-garmin disable garmin support], USE_GARMIN=$enableval, USE_GARMIN=yes)
255
256 # samplemap
257 AC_PATH_PROG(_PATH_BZCAT,[bzcat])
258 if test "x${_PATH_BZCAT}" = "x" ; then
259 samplemap=no; samplemap_reason="bzcat missing"
260 fi
261 AC_ARG_ENABLE(maptool, [ --disable-maptool don't build maptool], maptool=$enableval;maptool_reason="configure parameter")
262 AM_CONDITIONAL(MAPTOOL, [test "x$maptool" = "xyes"])
263 if test "x$maptool" != "xyes"; then
264 samplemap=no; samplemap_reason="maptool disabled"
265 fi
266 AC_ARG_ENABLE(samplemap, [ --disable-samplemap don't build the samplemap], samplemap=$enableval;samplemap_reason="configure parameter")
267 AM_CONDITIONAL(BUILD_SAMPLEMAP, [test "x$samplemap" = "xyes"])
268
269 AC_ARG_ENABLE(fastmath, [ --disable-fastmath don't build with fastmath], fastmath=$enableval, fastmath=yes)
270 AM_CONDITIONAL(FASTMATH, [test "x$fastmath" = "xyes"])
271
272 if test x"$fastmath" = xyes; then
273 if eval "test x$GCC = xyes"; then
274 CFLAGS="$CFLAGS -ffast-math"
275 fi
276 fi
277
278 X_CFLAGS="-I$x_includes"
279 AS_IF([test -n "$ac_x_libraries"], [X_LIBS="-L$ac_x_libraries"])
280
281 # glib
282 AC_ARG_ENABLE(glib, [ --disable-glib don't build with external glib], glib=$enableval, glib=yes)
283 if test "x${glib}" = "xyes" -a "x${GLIB_CFLAGS}" = "x" -a "x${GLIB_LIBS}" = "x"; then
284 PKG_CHECK_MODULES(GLIB, [glib-2.0 gthread-2.0], [glib=yes],[glib=no])
285 fi
286 if test "x${glib}" = "xyes"; then
287 AC_DEFINE(HAVE_GLIB, 1, [Define to 1 if you have (external) glib library])
288 else
289 GLIB_CFLAGS="-I\$(top_srcdir)/navit/support -I\$(top_srcdir)/navit/support/glib -I\$(top_srcdir)/navit/support/ezxml"
290 GLIB_LIBS="-L\$(top_builddir)/navit/support/glib -lsupport_glib -L\$(top_builddir)/navit/support/ezxml -lsupport_ezxml"
291 if test "x${win32}" != "xyes" -a "x${android}" != "xyes"; then
292 GLIB_LIBS="$GLIB_LIBS -lpthread"
293 fi
294 fi
295
296 # gmodule
297 AC_ARG_ENABLE(gmodule, [ --disable-gmodule don't build with gmodule], gmodule=$enableval, gmodule=yes)
298 if test x"${gmodule}" = "xyes"; then
299 PKG_CHECK_MODULES(GMODULE, [gmodule-2.0], [gmodule=yes], [gmodule=no])
300 fi
301 if test "x${gmodule}" = "xyes"; then
302 AC_DEFINE(HAVE_GMODULE, 1, [Define to 1 if you have gmodule])
303 else
304 AC_CHECK_LIB(dl, dlopen,
305 [plugins_reason="default, via dlopen";GMODULE_LIBS="-ldl";AC_DEFINE(HAVE_DLOPEN, 1, [Define to 1 if you have dlopen])],
306 [plugins="no"; plugins_reason="package gmodule and dlopen missing"]
307 )
308 fi
309
310 # libcrypto
311 AC_CHECK_LIB(crypto, AES_encrypt, [CRYPTO_LIBS="-lcrypto";AC_DEFINE(HAVE_LIBCRYPTO, 1, [Define to 1 if you have libcrypto])])
312 AC_SUBST(CRYPTO_LIBS)
313
314 # plugins
315 AC_ARG_ENABLE(plugins, [ --disable-plugins disable plugins], [ plugins=$enableval;plugin_reason="configure parameter" ])
316 AC_ARG_ENABLE(shared-libnavit, [ --enable-shared-libnavit], [ shared_libnavit=$enableval])
317 if test "x${plugins}" = "xyes"; then
318 AC_ENABLE_SHARED
319 AC_DISABLE_STATIC
320 AC_DEFINE(
321 [USE_PLUGINS],
322 [],
323 Define to 1 if you have plugins.
324 )
325 if test "x${win32}" = "xyes"; then
326 shared_libnavit=yes
327 NAVIT_MODULE_LDFLAGS="-no-undefined -L\$(top_builddir)/navit -l$LIBNAVIT -L\$(top_builddir)/intl -lintl"
328 fi
329 else
330 if test "x${shared_libnavit}" = "xyes"; then
331 AC_ENABLE_SHARED
332 AC_DISABLE_STATIC
333 else
334 AC_DISABLE_SHARED
335 AC_ENABLE_STATIC
336 fi
337 fi
338 AM_CONDITIONAL(PLUGINS, [test "x$plugins" = "xyes"])
339 AM_CONDITIONAL(SHARED_LIBNAVIT, [test "x$shared_libnavit" = "xyes"])
340 AM_CONDITIONAL(BIN_NAVIT, [test "x$bin_navit" = "xyes"])
341 AC_PROG_LIBTOOL
342 AC_SUBST(LIBNAVIT)
343
344 AM_CONDITIONAL(EVENT_GLIB, [test "x$glib" = "xyes"])
345 AM_CONDITIONAL(SUPPORT_GLIB, [test "x$glib" = "xno"])
346 AM_CONDITIONAL(SUPPORT_EZXML, [test "x$glib" = "xno"])
347
348 if test "x${ZLIB_CFLAGS}" = "x" -a "x${ZLIB_LIBS}" = "x"; then
349 AC_CHECK_HEADER(
350 zlib.h,
351 AC_DEFINE(
352 [HAVE_ZLIB],
353 [],
354 Define to 1 if you have the <zlib.h> header file.
355 )
356 ZLIB_LIBS="-lz"
357 zlib=yes,
358 ZLIB_CFLAGS="-I\$(top_srcdir)/navit/support/zlib"
359 ZLIB_LIBS="-L\$(top_builddir)/navit/support/zlib -lsupport_zlib"
360 zlib=no
361 )
362 else
363 zlib=yes
364 fi
365 AM_CONDITIONAL(SUPPORT_ZLIB, [test "x$zlib" = "xno"])
366 AC_SUBST(ZLIB_CFLAGS)
367 AC_SUBST(ZLIB_LIBS)
368
369 AC_CHECK_HEADER(sys/socket.h, AC_DEFINE([HAVE_SOCKET],[],Define to 1 if you have sockets))
370 AC_CHECK_HEADER(winsock2.h, AC_DEFINE([HAVE_WINSOCK],[],Define to 1 if you have Windows sockets))
371
372 # gtk
373 PKG_CHECK_MODULES(GTK2, [gtk+-2.0], [gtk2_pkgconfig=yes], [gtk2_pkgconfig=no])
374 if test "x$gtk2_pkgconfig" = "xyes"; then
375 AC_DEFINE(HAVE_GTK2, 1, [Define to 1 if you have gtk2])
376 graphics_gtk_drawing_area=yes; graphics_gtk_drawing_area_reason="gtk+-2.0 present"
377 gui_gtk=yes; gui_gtk_reason="gtk+-2.0 present"
378 fi
379
380 # fsync
381 AC_MSG_CHECKING(for fsync)
382 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))
383
384 # system
385 AC_MSG_CHECKING(for system)
386 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))
387
388 AC_MSG_CHECKING(for CreateProcess)
389 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))
390
391 AC_ARG_ENABLE(graphics-sdl, [ --disable-graphics-sdl don't create graphics sdl], graphics_sdl=$enableval;graphics_sdl_reason="configure parameter")
392
393 if test "x${graphics_sdl}" = "xyes" ; then
394 PKG_CHECK_MODULES(SDL,
395 [sdl],
396 [graphics_sdl="yes"
397 graphics_sdl_reason="sdl present"] ,
398 [graphics_sdl="no"
399 graphics_sdl_reason="sdl not available"]
400 )
401 AC_SUBST(SDL_CFLAGS)
402 AC_SUBST(SDL_LIBS)
403 fi
404 if test "x${graphics_sdl}" = "xyes" ; then
405 save_CPPFLAGS=$CPPFLAGS
406 CPPFLAGS="$SDL_CFLAGS $CPPFLAGS"
407 AC_CHECK_HEADER(SDL_image.h,SDL_IMAGE_LIBS=-lSDL_image,graphics_sdl="no";graphics_sdl_reason="SDL_image.h missing")
408 AC_SUBST(SDL_IMAGE_LIBS)
409 CPPFLAGS=$save_CPPFLAGS
410 fi
411 if test "x${graphics_sdl}" = "xyes" ; then
412 AC_DEFINE(GRAPHICS_SDL, 1, [Build with graphics sdl])
413 fi
414 AM_CONDITIONAL(GRAPHICS_SDL, test "x${graphics_sdl}" = "xyes")
415
416 AC_ARG_ENABLE(postgresql, [ --disable-postgresql don't add postgresql support to maptool], postgresql=$enableval;postgresql_reason="configure parameter")
417 if test "x${postgresql}" = "xyes" ; then
418 if test -z "$PG_CONFIG"; then
419 AC_PATH_PROG([PG_CONFIG], [pg_config], [])
420 fi
421 AC_MSG_CHECKING([for PostgreSQL libraries with $PG_CONFIG])
422 if test ! -x "$PG_CONFIG"; then
423 if test "x${PG_CONFIG}" = "x" ; then
424 postgresql_reason="$PG_CONFIG not executable"
425 else
426 postgresql_reason="pg_config missing"
427 fi
428 postgresql=no
429 AC_MSG_RESULT([no])
430 else
431 POSTGRESQL_CFLAGS="-I`$PG_CONFIG --includedir`"
432 POSTGRESQL_LIBS="-L`$PG_CONFIG --libdir` -lpq"
433 AC_DEFINE(HAVE_POSTGRESQL, 1, [Postgresql libraries available])
434 AC_SUBST(POSTGRESQL_CFLAGS)
435 AC_SUBST(POSTGRESQL_LIBS)
436 AC_MSG_RESULT([yes])
437 fi
438 fi
439 AM_CONDITIONAL(HAVE_POSTGRESQL, test "x${postgresql}" = "xyes")
440 # font
441 # freetype
442 AC_ARG_ENABLE(font-freetype, [ --disable-font-freetype don't add freetype support], font_freetype=$enableval;font_freetype_reason="configure parameter")
443 if test "x${font_freetype}" = "xyes" -a "x${FREETYPE2_CFLAGS}" = "x" -a "x${FREETYPE2_LIBS}" = "x"; then
444 PKG_CHECK_MODULES(FREETYPE2, [freetype2], , [font_freetype=no;font_freetype_reason="Package freetype2 missing"])
445 else
446 fribidi=no
447 fi
448 AC_SUBST(FREETYPE2_CFLAGS)
449 AC_SUBST(FREETYPE2_LIBS)
450 AM_CONDITIONAL(FONT_FREETYPE, test "x${font_freetype}" = "xyes")
451 AC_ARG_WITH(freetype-fonts, [ --with-freetype-fonts specify what fonts to use], AC_DEFINE_UNQUOTED(FREETYPE_FONTS,[${withval}],[Freetype fonts to use]))
452
453 AC_ARG_ENABLE(fontconfig, [ --disable-fontconfig don't' add fontconfig support], fontconfig=$enableval;fontconfig_reason="configure parameter")
454 if test "x${fontconfig}" = "xyes"; then
455 PKG_CHECK_MODULES(FONTCONFIG, [fontconfig], [fontconfig=yes], [fontconfig=no])
456 fi
457 if test "x$fontconfig" = "xyes"; then
458 AC_DEFINE(HAVE_FONTCONFIG, 1, [Define to 1 if you have fontconfig])
459 fi
460 AC_SUBST(FONTCONFIG_CFLAGS)
461 AC_SUBST(FONTCONFIG_LIBS)
462
463 AM_CONDITIONAL(FONTS, test "x${font_freetype}" = "xyes" -a "x$fontconfig" != "xyes")
464
465 # fribidi
466 AC_ARG_ENABLE(fribidi, [ --disable-fribidi dont build with fribidi], fribidi=$enableval;fribidi_reason="configure parameter", fribidi=yes)
467 if test x"${fribidi}" = "xyes"; then
468 PKG_CHECK_MODULES(FRIBIDI2, [fribidi >= 0.19.0], [fribidi=yes;oldfribidi=no],
469 [ PKG_CHECK_MODULES([FRIBIDI], [fribidi],
470 [fribidi=yes;oldfribidi=yes;fribid_reason="using old version"], [fribidi=no;fribidi_reason="FriBidi library not found"])
471 ])
472 fi
473 if test x"${fribidi}" = "xyes"; then
474 AC_DEFINE(USE_FRIBIDI, 1, [Build with fribidi support])
475 fi
476 if test x"${oldfribidi}" = "xyes"; then
477 AC_DEFINE(FRIBIDIOLD, 1, [Build with fribidi support for older versions of fribidi])
478 fi
479
480 AC_SUBST(FRIBIDI2_CFLAGS)
481 AC_SUBST(FRIBIDI2_LIBS)
482 AC_SUBST(FRIBIDI_CFLAGS)
483 AC_SUBST(FRIBIDI_LIBS)
484
485 PKG_CHECK_MODULES(IMLIB2, [imlib2], [imlib2_pkgconfig=yes], [imlib2_pkgconfig=no])
486 if test "x$imlib2_pkgconfig" = "xyes"; then
487 AC_DEFINE(HAVE_IMLIB2, 1, [Define to 1 if you have imlib2])
488 fi
489 AC_SUBST(IMLIB2_CFLAGS)
490 AC_SUBST(IMLIB2_LIBS)
491
492 AC_ARG_ENABLE(graphics-opengl, [ --disable-graphics-opengl disable graphics type OpenGL], graphics_opengl=$enableval;graphics_opengl_reason="configure parameter")
493 if test "x${graphics_opengl}" = "xyes" ; then
494
495 AC_CHECK_HEADER(
496 GL/gl.h,
497 AC_DEFINE(
498 [HAVE_OPENGL],
499 [],
500 Define to 1 if you have the <GL/gl.h> header file.
501 )
502 OPENGL_LIBS="$X_LIBS -lGL -lglut -lfreeimage"
503 opengl=yes,
504 AC_MSG_WARN([*** no GL/gl.h -- opengl graphics support disabled];graphics_opengl=no;graphics_opengl_reason="GL/gl.h header missing")
505 )
506
507 AC_CHECK_HEADER(
508 GL/glut.h,
509 AC_DEFINE(
510 [HAVE_GLUT],
511 [],
512 Define to 1 if you have the <GL/glut.h> header file.
513 )
514 glut=yes,
515 AC_MSG_WARN([*** no GL/glut.h -- opengl graphics support disabled]);graphics_opengl=no;graphics_opengl_reason="GL/glut.h header missing"
516 )
517
518 AC_CHECK_HEADER(
519 GL/freeglut.h,
520 AC_DEFINE(
521 [HAVE_FREEGLUT],
522 [],
523 Define to 1 if you have the <GL/freeglut.h> header file.
524 )
525 freeglut=yes,
526 AC_MSG_WARN([*** no GL/freeglut.h -- opengl support disabled]);graphics_opengl=no;graphics_opengl_reason="Headers missing"
527 )
528
529 AC_SUBST(OPENGL_CFLAGS)
530 AC_SUBST(OPENGL_LIBS)
531
532 AC_CHECK_HEADER(
533 GL/glc.h,
534 AC_DEFINE(
535 [HAVE_GLC],
536 [],
537 Define to 1 if you have the <GL/glc.h> header file.
538 )
539 GLC_LIBS="-lGLC"
540 glc=yes,
541 AC_MSG_WARN([*** no GL/glc.h -- opengl graphics support disabled]);graphics_opengl=no;graphics_opengl_reason="GL/glc.h header missing"
542 )
543 AC_CHECK_HEADER(
544 FreeImage.h,
545 AC_DEFINE(
546 [HAVE_FREEIMAGE],
547 [],
548 Define to 1 if you have the <FreeImage.h> header file.
549 )
550 FREEIMAGE_LIBS="-lfreeimage"
551 freeimage=yes,
552 AC_MSG_WARN([*** no FreeImage.h -- opengl support disabled]);graphics_opengl=no;graphics_opengl_reason="Headers missing"
553 )
554 AC_SUBST(FREEIMAGE_LIBS)
555 AC_SUBST(GLC_CFLAGS)
556 AC_SUBST(GLC_LIBS)
557 fi
558
559 AM_CONDITIONAL(GRAPHICS_OPENGL, [test "x$glut" = "xyes" -a "x$freeglut" = "xyes" -a "x$opengl" = "xyes" -a "x$freeimage" = "xyes" -a "x$glc" = "xyes" ])
560
561 system_shapefile=no
562 AC_CHECK_HEADERS(
563 [shapefil.h libshp/shapefil.h],
564 AC_DEFINE(
565 [HAVE_SYS_SHAPEFILELIB],
566 [1],
567 Define to 1 if you have the <libshp/shapefil.h> header file.
568 )
569 SHAPEFILE_LIBS="-lshp"
570 system_shapefile=yes
571 )
572 AC_SUBST(SHAPEFILE_CFLAGS)
573 AC_SUBST(SHAPEFILE_LIBS)
574 AM_CONDITIONAL(HAVE_SYSTEM_SHAPEFILELIB, [test "x$system_shapefile" = "xyes" ])
575 if test x"${system_shapefile}" = xno
576 then
577 AC_MSG_WARN([*** no libshp/shapefil.h -- using included copy])
578 fi
579
580
581 if test x"${USE_GARMIN}" = xyes
582 then
583 # check for libgarmin
584 PKG_CHECK_MODULES(LIBGARMIN, libgarmin, use_libgarmin=yes, use_libgarmin=no)
585 AC_SUBST(LIBGARMIN_CFLAGS)
586 AC_SUBST(LIBGARMIN_LIBS)
587 fi
588 AM_CONDITIONAL(HAVELIBGARMIN, [test "x$use_libgarmin" = "xyes"])
589
590 ## binding
591 # python
592 AC_ARG_ENABLE(binding-python, [ --disable-binding-python don't create binding python], binding_python=$enableval;binding_python_reason="configure parameter")
593 if test "x${binding_python}" = "xyes"; then
594 AC_PATH_PROG(_PATH_PYTHON,[python])
595 dnl Libraries and flags for embedded Python.
596 dnl FIXME: I wish there was a less icky way to get this.
597 if test "x${_PATH_PYTHON}" != "x" ; then
598 AC_MSG_CHECKING(for Python linkage)
599 AC_PATH_PROG([PYTHONCONFIG], [python-config], [])
600 if test "x${PYTHONCONFIG}" = "x" ; then
601 py_prefix=`$_PATH_PYTHON -c 'import sys; print sys.prefix'`
602 py_ver=`$_PATH_PYTHON -c 'import sys; print sys.version[[:3]]'`
603 py_lib=`$_PATH_PYTHON -c 'import sys; print sys.lib'`
604 py_libdir="${py_prefix}/${py_lib}/python${py_ver}"
605 PYTHON_CFLAGS="-I${py_prefix}/include/python${py_ver}"
606 if test -f $py_libdir/config/Makefile -a -f $py_prefix/include/python${py_ver}/Python.h; then
607 py_libs=`grep '^LIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
608 py_libc=`grep '^LIBC=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
609 py_libm=`grep '^LIBM=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
610 py_liblocalmod=`grep '^LOCALMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
611 py_libbasemod=`grep '^BASEMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
612 PYTHON_LIBS="-L$py_libdir/config $py_libs $py_libc $py_libm -lpython$py_ver $py_liblocalmod $py_libbasemod"
613 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/[ \\t]*/ /g'`
614 AC_MSG_RESULT($py_libdir)
615 else
616 binding_python="no"
617 binding_python_reason="$py_libdir/config/Makefile or $py_prefix/include/python${py_ver}/Python.h missing"
618 fi
619
620 else
621 PYTHON_CFLAGS="`${PYTHONCONFIG} --cflags`"
622 PYTHON_LIBS="`${PYTHONCONFIG} --ldflags`"
623 fi
624 else
625 binding_python="no"
626 binding_python_reason="python executable missing"
627 fi
628 fi
629 if test "x${binding_python}" = xyes ; then
630 AC_DEFINE(USE_BINDING_PYTHON, 1, [Build with binding python])
631 fi
632 AC_SUBST(PYTHON_CFLAGS)
633 AC_SUBST(PYTHON_LIBS)
634 AM_CONDITIONAL(BINDING_PYTHON, test "x${binding_python}" = "xyes")
635
636 # dbus
637 AC_ARG_ENABLE(binding-dbus, [ --disable-binding-dbus don't create binding dbus], binding_dbus=$enableval;binding_dbus_reason="configure parameter")
638 AC_ARG_ENABLE(binding-dbus-use-system-bus, [ --enable-binding-dbus-use-system-bus use system bus for dbus binding], binding_dbus_use_system_bus=$enableval)
639 if test "x${binding_dbus}" = "xyes" ; then
640 PKG_CHECK_MODULES(DBUS, [dbus-glib-1], ,binding_dbus=no)
641 fi
642 if test "x${binding_dbus}" = "xyes" ; then
643 AC_DEFINE(USE_BINDING_DBUS, 1, [Build with binding dbus])
644 vehicle_gpsd_dbus="yes"
645 vehicle_gpsd_dbus_reason="dbus binding present"
646 speech_dbus="yes"
647 speech_dbus_reason="dbus binding present"
648 fi
649 if test "x${binding_dbus_use_system_bus}" = "xyes" ; then
650 AC_DEFINE(DBUS_USE_SYSTEM_BUS, 1, [Use system bus instead of session bus for binding dbus])
651 fi
652 AC_SUBST(DBUS_CFLAGS)
653 AC_SUBST(DBUS_LIBS)
654 AM_CONDITIONAL(BINDING_DBUS, test "x${binding_dbus}" = "xyes")
655 AM_CONDITIONAL(VEHICLE_GPSD_DBUS, test "x${vehicle_gpsd_dbus}" = "xyes")
656 AM_CONDITIONAL(SPEECH_DBUS, test "x${speech_dbus}" = "xyes")
657 AC_ARG_WITH(dbus-service-dir, [ --with-dbus-service-dir specify where the dbus service dir resides], DBUS_SERVICE_DIR=$withval, DBUS_SERVICE_DIR="$datarootdir/dbus-1/services")
658 AC_SUBST(DBUS_SERVICE_DIR)
659
660 # svg
661 AC_ARG_ENABLE(svg, [ --disable-svg disable Scalable Vector Graphics], enable_svg=$enableval, enable_svg=yes)
662 AC_ARG_ENABLE(svg2png, [ --disable-svg2png disable conversion of svgs to pngs], enable_svg2png=$enableval, enable_svg2png=yes)
663 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 192 384")
664 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 192 384")
665 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 192 384")
666 AC_ARG_WITH(svg2png-use-convert, [ --with-svg2png-use-convert use imagemagick's convert for png creation], SVG2PNG_CONVERTER="convert")
667 AC_ARG_WITH(svg2png-use-rsvg-convert, [ --with-svg2png-use-rsvg-convert use librsvg's rsvg-convert for png creation], SVG2PNG_CONVERTER="rsvg-convert")
668 AC_ARG_WITH(svg2png-use-inkscape, [ --with-svg2png-use-inkscape use inkscapes internal convert routines for png creation], SVG2PNG_CONVERTER="inkscape")
669 AC_ARG_WITH(svg2png-use-ksvgtopng4, [ --with-svg2png-use-ksvgtopng4 use kde4's ksvgtopng4 for png creation], SVG2PNG_CONVERTER="ksvgtopng4")
670 AC_ARG_WITH(svg2png-use-ksvgtopng, [ --with-svg2png-use-ksvgtopng use kde3's convert for png creation], SVG2PNG_CONVERTER="ksvgtopng")
671 if test "x${enable_svg2png}" = "xyes" ; then
672 if test "x${SVG2PNG_CONVERTER}" = "x"; then
673 SVG2PNG_CONVERTER="rsvg-convert ksvgtopng ksvgtopng4 inkscape convert"
674 fi
675 AC_PATH_PROGS([SVG2PNG], ${SVG2PNG_CONVERTER}, [none])
676 if test "x${SVG2PNG}" = "xnone"; then
677 enable_svg2png="no"
678 fi
679 fi
680 AC_SUBST(SVG2PNG)
681 AC_SUBST(SVG2PNG_SCALES)
682 AC_SUBST(SVG2PNG_SCALES_FLAG)
683 AC_SUBST(SVG2PNG_SCALES_NAV)
684 AM_CONDITIONAL(USE_SVG2PNG_SCALES, test "x${SVG2PNG_SCALES}" != "xyes" -a "x${SVG2PNG_SCALES}" != "x")
685 AM_CONDITIONAL(USE_SVG2PNG_SCALES_FLAG, test "x${SVG2PNG_SCALES_FLAG}" != "xyes" -a "x${SVG2PNG_SCALES_FLAG}" != "x")
686 AM_CONDITIONAL(USE_SVG2PNG_SCALES_NAV, test "x${SVG2PNG_SCALES_NAV}" != "xyes" -a "x${SVG2PNG_SCALES_NAV}" != "x")
687 AM_CONDITIONAL(USE_SVG2PNG, test "x${enable_svg2png}" = "xyes")
688 AM_CONDITIONAL(USE_SVG, test "x${enable_svg}" = "xyes")
689
690 # XSLTS
691 AC_ARG_WITH(xslts, [ --with-xslts enable processing of navit.xml with given xslt scripts], XSLTS=$withval, XSLTS="")
692 AC_SUBST(XSLTS)
693 AC_ARG_WITH(saxon, [ --with-saxon specify the saxon xslt processor], SAXON=$withval, SAXON="saxon")
694 AC_SUBST(SAXON)
695
696 # Android Permissions
697 AC_ARG_WITH(android-permissions, [ --with-android-permissions Set additional android permissions], ANDROID_PERMISSIONS=$withval, ANDROID_PERMISSIONS="")
698 AC_SUBST(ANDROID_PERMISSIONS)
699 # Android Project
700 AC_ARG_WITH(android-project, [ --with-android-project Set android project], ANDROID_PROJECT=$withval, ANDROID_PROJECT="3")
701 AC_SUBST(ANDROID_PROJECT)
702
703 # NLS
704
705 AC_ARG_ENABLE(nls,
706 [ --disable-nls disable Native Language Support ( gettext/libintl )],
707 enable_nls=$enableval, enable_nls=yes)
708
709
710 INTLIBS=""
711 MOFILES=""
712 POFILES=""
713 POIFILES=""
714 LINGUAS=""
715
716 xgettext_glade=no
717 if test "x$enable_nls" = "xyes"; then
718
719 AC_CHECK_FUNC(gettext, [HAVEGETTEXT="yes"],[INTLIBS="-lintl" HAVEGETTEXT="yes"])
720 AC_CHECK_PROG(XGETTEXT, xgettext, xgettext)
721 AC_CHECK_PROG(MSGMERGE, msgmerge, msgmerge)
722 AC_CHECK_PROG(MSGFMT, msgfmt, msgfmt)
723
724 if test "$XGETTEXT" != ""; then
725 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
726 echo "xgettext isn't GNU version"
727 XGETTEXT=""
728 else
729 if echo '<test/>' | $XGETTEXT -L Glade - ; then
730 xgettext_glade=yes
731 fi
732 fi
733 fi
734
735 if test "$XGETTEXT" != "" ; then
736 PO=""
737 if test "$LINGUAS" = ""; then
738 ling=` (cd $srcdir/po; /bin/ls *.po) `
739 for l in $ling; do
740 lcode=`basename $l .po`
741 LINGUAS="$LINGUAS$lcode "
742 done
743 fi
744 AC_DEFINE(ENABLE_NLS, [1], [NLS Please])
745 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
746 else
747 LINGUAS=""
748 PO=""
749 echo "xgettext doesn't exist; will not build i18n support"
750 enable_nls=no
751 fi
752 for lang in $LINGUAS; do
753 MOFILES="$MOFILES $lang.mo"
754 done
755 for lang in $LINGUAS; do
756 POFILES="$POFILES $lang.po"
757 done
758 for lang in $LINGUAS; do
759 POIFILES="$POIFILES $lang.po"
760 done
761
762 AC_SUBST(INTLIBS)
763 AC_SUBST(MOFILES)
764 AC_SUBST(POFILES)
765 AC_SUBST(POIFILES)
766 AM_GNU_GETTEXT_VERSION
767 AM_GNU_GETTEXT(no-libtool, need-ngettext, \$(top_builddir)/intl/)
768 if test "x${shared_libnavit}" = "xyes" -a "x${win32ce}" = "xyes"; then
769 INTLLIBS="\$(top_builddir)/intl/libintl.la"
770 LIBINTL=$INTLLIBS
771 LTLIBINTL=$INTLLIBS
772 fi
773 AC_SUBST(LIBINTL)
774 AC_SUBST(LTLIBINTL)
775 if test x"$LIBINTL" != "x" ;then
776 CFLAGS="$CFLAGS -I\$(top_builddir)/intl/"
777 fi
778
779 fi
780 AM_CONDITIONAL(ENABLE_NLS, [test "x$enable_nls" = "xyes"])
781 AM_CONDITIONAL(XGETTEXT_GLADE, [test "x$xgettext_glade" = "xyes"])
782 AC_CHECK_HEADER(
783 byteswap.h,
784 AC_DEFINE(
785 [HAVE_BYTESWAP_H],
786 [1],
787 [Define to 1 if you have byteswap.h],
788 )
789 ,
790 )
791
792 PACKAGE=navit
793 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
794 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
795 AC_SUBST(PACKAGE)
796 AC_SUBST(VERSION)
797
798 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")
799 AM_CONDITIONAL(SUPPORT_WORDEXP, [test "x$wordexp_h" = "xno"])
800
801 support_libc=no
802 AC_ARG_ENABLE(support_libc, [ --enable-support-libc enable builtin mini libc ], support_libc=$enableval)
803 AM_CONDITIONAL(SUPPORT_LIBC, [test "x$support_libc" = "xyes"])
804 if test "x$support_libc" = "xyes"; then
805 CFLAGS="$CFLAGS -I\$(top_srcdir)/navit/support/libc"
806 LIBC_LIBS="-L\$(top_builddir)/navit/support/libc -lsupport_libc"
807 fi
808
809 ## graphics
810 AC_ARG_ENABLE(graphics, [ --disable-graphics disable graphics], graphics=$enableval;graphics_reason="configure parameter")
811 AM_CONDITIONAL(GRAPHICS, test "x${graphics}" = "xyes")
812 if test "x$graphics" = "xyes"; then
813 AC_DEFINE([USE_GRAPHICS],[1],Define to 1 if you want to use graphics.)
814 fi
815
816 # gd
817
818 # android
819 AC_ARG_ENABLE(graphics-android, [ --disable-graphics-android disable graphics type android], graphics_android=$enableval;graphics_android_reason="configure parameter")
820 AM_CONDITIONAL(GRAPHICS_ANDROID, test "x${graphics_android}" = "xyes")
821 # gd
822 AC_ARG_ENABLE(graphics-gd, [ --enable-graphics-gd enable graphics type gd], graphics_gd=$enableval;graphics_gd_reason="configure parameter")
823 if test "x${graphics_gd}" = "xyes" ; then
824 if test -z "$GDLIB_CONFIG"; then
825 AC_PATH_PROG([GDLIB_CONFIG], [gdlib-config], [])
826 fi
827 AC_MSG_CHECKING([for gdlib with $GDLIB_CONFIG])
828 if test ! -x "$GDLIB_CONFIG"; then
829 if test "x${GDLIB_CONFIG}" = "x" ; then
830 graphics_gd_reason="$GDLIB_CONFIG not executable"
831 else
832 graphics_gd_reason="gdlib-config missing"
833 fi
834 graphics_gd=no
835 AC_MSG_RESULT([no])
836 else
837 if test "x${GD_CFLAGS}" = "x" ; then
838 GD_CFLAGS="-I`$GDLIB_CONFIG --includedir`"
839 fi
840 if test "x${GD_LIBS}" = "x" ; then
841 GD_LIBS="-L`$GDLIB_CONFIG --libdir` -lgd `$GDLIB_CONFIG --libs`"
842 fi
843 AC_SUBST(GD_CFLAGS)
844 AC_SUBST(GD_LIBS)
845 AC_MSG_RESULT([yes])
846 fi
847 fi
848 AM_CONDITIONAL(GRAPHICS_GD, test "x${graphics_gd}" = "xyes")
849 AC_CHECK_HEADER(
850 sys/shm.h,
851 AC_DEFINE(
852 [HAVE_SHMEM],
853 [],
854 Define to 1 if you have shared memory
855 )
856 )
857 AC_CHECK_HEADER(
858 X11/xpm.h,
859 AC_DEFINE(
860 [HAVE_XPM],
861 [],
862 Define to 1 if you have xpm header
863 )
864 )
865 AC_CHECK_HEADER(
866 getopt.h,
867 AC_DEFINE(
868 [HAVE_GETOPT_H],
869 [],
870 Define to 1 if you have the getopt header
871 )
872 )
873 if test "x${graphics_gd}" = "xyes" ; then
874 save_CPPFLAGS=$CPPFLAGS
875 save_LIBS=$LIBS
876 LIBS="$GD_LIBS $LIBS"
877 CPPFLAGS="$GD_CFLAGS $CPPFLAGS"
878 AC_TRY_LINK([#include <gd.h>], [gdImageCreateFromPng(0);],AC_MSG_RESULT(yes);AC_DEFINE(HAVE_GRAPHICS_GD_PNG, 1, [Define to 1 if you have png support in gd.]),AC_MSG_RESULT(no))
879 CPPFLAGS=$save_CPPFLAGS
880 LIBS=$save_LIBS
881 fi
882
883 # gtk_drawing_area
884 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")
885 AM_CONDITIONAL(GRAPHICS_GTK_DRAWING_AREA, [test "x${graphics_gtk_drawing_area}" = "xyes"])
886 # null
887 AC_ARG_ENABLE(graphics-null, [ --disable-graphics-null disable graphics type null], graphics_null=$enableval;graphics_null_reason="configure parameter")
888 AM_CONDITIONAL(GRAPHICS_NULL, test "x${graphics_null}" = "xyes")
889 # win32
890 AC_ARG_ENABLE(graphics-win32, [ --disable-graphics-win32 disable graphics type win32], graphics_win32=$enableval;graphics_win32_reason="configure parameter")
891 AM_CONDITIONAL(GRAPHICS_WIN32, test "x${graphics_win32}" = "xyes")
892 # qt_qpainter
893 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")
894 if test "x${graphics_qt_qpainter}" = "xyes" -a "x${QT_GUI_CFLAGS}" = "x" -a "x${QT_GUI_LIBS}" = "x"; then
895 PKG_CHECK_MODULES(QT_GUI, [QtGui QtCore],graphics_qt_qpainter=yes,graphics_qt_qpainter=no;graphics_qt_qpainter_reason="Packages QtGui and/or QtCore missing")
896 if test "x${graphics_qt_qpainter}" = "xno"; then
897 PKG_CHECK_MODULES(QT_GUI, [qt-mt],graphics_qt_qpainter=yes;graphics_qt_qpainter_reason="Package qt-mt present",graphics_qt_qpainter=no)
898 fi
899 fi
900 if test "x${graphics_qt_qpainter}" = "xyes" ; then
901 PKG_CHECK_MODULES(QT_SVG, [QtSvg], have_qt_svg=yes, have_qt_svg=no)
902 if test "x${have_qt_svg}" = "xyes"; then
903 AC_DEFINE([HAVE_QT_SVG],[],Define to 1 if qt supports svg)
904 fi
905 fi
906 if test "x${graphics_qt_qpainter}" = "xyes" ; then
907 AC_DEFINE(USE_GRAPICS_QT_QPAINTER, 1, [Build with graphics qt_qpainter])
908 fi
909 AC_SUBST(QT_GUI_CFLAGS)
910 AC_SUBST(QT_GUI_LIBS)
911 AC_SUBST(QT_SVG_CFLAGS)
912 AC_SUBST(QT_SVG_LIBS)
913 AM_CONDITIONAL(GRAPHICS_QT_QPAINTER, test "x${graphics_qt_qpainter}" = "xyes")
914 MOC=`$PKG_CONFIG QtGui --variable=moc_location`
915 if test "x${MOC}" = "x"; then
916 AC_CHECK_PROG(MOC, moc, moc)
917 fi
918 AC_SUBST(MOC)
919
920
921 ## map
922 # binfile
923 AC_ARG_ENABLE(map-binfile, [ --disable-map-binfile disable map binfile], map_binfile=$enableval;map_binfile_reason="configure parameter")
924 AM_CONDITIONAL(MAP_BINFILE, test "x${map_binfile}" = "xyes")
925 # filter
926 AC_ARG_ENABLE(map-filter, [ --disable-map-filter disable map filter], map_filter=$enableval;map_filter_reason="configure parameter")
927 AM_CONDITIONAL(MAP_FILTER, test "x${map_filter}" = "xyes")
928 # mg
929 AC_ARG_ENABLE(map-mg, [ --disable-map-mg disable map mg], map_mg=$enableval;map_mg_reason="configure parameter")
930 AM_CONDITIONAL(MAP_MG, test "x${map_mg}" = "xyes")
931 # shapefile
932 AC_ARG_ENABLE(map-shapefile, [ --disable-map-shapefile disable map shapefile], map_shapefile=$enableval;map_shapefile_reason="configure parameter")
933 AM_CONDITIONAL(MAP_SHAPEFILE, test "x${map_shapefile}" = "xyes")
934 # textfile
935 AC_ARG_ENABLE(map-textfile, [ --disable-map-textfile disable map textfile], map_textfile=$enableval;map_textfile_reason="configure parameter")
936 AM_CONDITIONAL(MAP_TEXTFILE, test "x${map_textfile}" = "xyes")
937 # csv
938 AC_ARG_ENABLE(map-csv, [ --disable-map-csv disable map csv], map_csv=$enableval;map_csv_reason="configure parameter")
939 AM_CONDITIONAL(MAP_CSV, test "x${map_csv}" = "xyes")
940
941 ## osd
942 # core
943 AC_ARG_ENABLE(osd-core, [ --disable-osd-core disable osd core], osd_core=$enableval;osd_core_reason="configure parameter")
944 AM_CONDITIONAL(OSD_CORE, test "x${osd_core}" = "xyes")
945
946 ## gui
947 # gtk
948 AC_ARG_ENABLE(gui-gtk, [ --disable-gui-gtk disable gui type gtk ], gui_gtk=$enableval)
949 AM_CONDITIONAL(GUI_GTK, [test "x${gui_gtk}" = "xyes"])
950 # internal
951 AC_ARG_ENABLE(gui-internal, [ --disable-gui-internal disable gui type internal], gui_internal=$enableval;gui_internal_reason="configure parameter")
952 AM_CONDITIONAL(GUI_INTERNAL, test "x${gui_internal}" = "xyes")
953 # win32
954 AC_ARG_ENABLE(gui-win32, [ --disable-gui-win32 disable gui type win32], gui_win32=$enableval;gui_win32_reason="configure parameter")
955 AM_CONDITIONAL(GUI_WIN32, test "x${gui_win32}" = "xyes")
956 # qml
957 AC_ARG_ENABLE(gui-qml, [ --disable-gui-qml disable gui type QML], gui_qml=$enableval;gui_qml_reason="configure parameter")
958 if test "x${gui_qml}" = "xyes" -a "x${QT_GUI_CFLAGS}" = "x" -a "x${QT_GUI_LIBS}" = "x"; then
959 PKG_CHECK_MODULES(QT_GUI, [QtGui QtCore], ,gui_qml=no;gui_qml_reason="Packages QtGui and/or QtCore are missing")
960 fi
961 if test "x${gui_qml}" = "xyes" -a "x${QT_XML_CFLAGS}" = "x" -a "x${QT_XML_LIBS}" = "x"; then
962 PKG_CHECK_MODULES(QT_XML, [QtXml], ,gui_qml=no;gui_qml_reason="Package QtXml is missing")
963 fi
964 if test "x${gui_qml}" = "xyes" -a "x${QT_DECLARATIVE_CFLAGS}" = "x" -a "x${QT_DECLARATIVE_LIBS}" = "x"; then
965 PKG_CHECK_MODULES(QT_DECLARATIVE, [QtDeclarative >= 4.6.0 ], ,gui_qml=no;gui_qml_reason="Packages QtDeclarative is missing")
966 fi
967 if test "x${gui_qml}" = "xyes" ; then
968 AC_DEFINE(USE_GUI_QML, 1, [Build with gui qml])
969 fi
970 AC_SUBST(QT_GUI_CFLAGS)
971 AC_SUBST(QT_GUI_LIBS)
972 AC_SUBST(QT_DECLARATIVE_CFLAGS)
973 AC_SUBST(QT_DECLARATIVE_LIBS)
974 AC_SUBST(QT_XML_CFLAGS)
975 AC_SUBST(QT_XML_LIBS)
976 AM_CONDITIONAL(GUI_QML, test "x${gui_qml}" = "xyes")
977
978 ## plugins
979 # pedestrian
980 AC_ARG_ENABLE(plugin-pedestrian, [ --enable-plugin-pedestrian enable pedestrian plugin], plugin_pedestrian=$enableval;plugin_pedestrian_reason="configure parameter")
981 AM_CONDITIONAL(PLUGIN_PEDESTRIAN, test "x${plugin_pedestrian}" = "xyes")
982
983 ## routing
984 AC_ARG_ENABLE(routing, [ --disable-routing disable routing], routing=$enableval;routing_reason="configure parameter")
985 AM_CONDITIONAL(ROUTING, test "x${routing}" = "xyes")
986 if test "x$routing" = "xyes"; then
987 AC_DEFINE([USE_ROUTING],[1],Define to 1 if you want to have routing.)
988 fi
989
990 ## speech
991 # android
992 AC_ARG_ENABLE(speech-android, [ --disable-speech-android disable speech type android], speech_android=$enableval;speech_android_reason="configure parameter")
993 AM_CONDITIONAL(SPEECH_ANDROID, test "x${speech_android}" = "xyes")
994 # cmdline
995 AC_ARG_ENABLE(speech-cmdline, [ --disable-speech-cmdline disable speech type cmdline], speech_cmdline=$enableval;speech_cmdline_reason="configure parameter")
996 AM_CONDITIONAL(SPEECH_CMDLINE, test "x${speech_cmdline}" = "xyes")
997 # espeak
998 AC_ARG_ENABLE(speech-espeak, [ --disable-speech-espeak disable speech type espeak], speech_espeak=$enableval;speech_espeak_reason="configure parameter")
999 AM_CONDITIONAL(SPEECH_ESPEAK, test "x${speech_espeak}" = "xyes")
1000 # speech-dispatcher
1001 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")
1002 if test "x$speech_speech_dispatcher" = "xyes"; then
1003 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")
1004 fi
1005 AC_SUBST(SPEECHD_CFLAGS)
1006 AC_SUBST(SPEECHD_LIBS)
1007 AM_CONDITIONAL(SPEECH_SPEECH_DISPATCHER, test "x${speech_speech_dispatcher}" = "xyes")
1008 AM_CONDITIONAL(SUPPORT_ESPEAK, test "x${support_espeak}" = "xyes")
1009
1010 ## vehicle
1011 # android
1012 AC_ARG_ENABLE(vehicle-android, [ --disable-vehicle-android disable vehicle type android], vehicle_android=$enableval;vehicle_android_reason="configure parameter")
1013 AM_CONDITIONAL(VEHICLE_ANDROID, test "x${vehicle_android}" = "xyes")
1014 # demo
1015 AC_ARG_ENABLE(vehicle-demo, [ --disable-vehicle-demo disable vehicle type demo], vehicle_demo=$enableval;vehicle_demo_reason="configure parameter")
1016 AM_CONDITIONAL(VEHICLE_DEMO, test "x${vehicle_demo}" = "xyes")
1017 # file
1018 AC_ARG_ENABLE(vehicle-file, [ --disable-vehicle-file disable vehicle type file], vehicle_file=$enableval;vehicle_file_reason="configure parameter")
1019 AM_CONDITIONAL(VEHICLE_FILE, test "x${vehicle_file}" = "xyes")
1020 # gpsd
1021 AC_ARG_ENABLE(vehicle-gpsd, [ --disable-vehicle-gpsd disable vehicle type gpsd], vehicle_gpsd=$enableval;vehicle_gpsd_reason="configure parameter")
1022 if test "x${vehicle_gpsd}" = xyes
1023 then
1024 PKG_CHECK_MODULES([GPSD], [libgps], have_libgps="yes", have_libgps="no")
1025 if test "x$have_libgps" = "xyes"; then
1026 AC_DEFINE([HAVE_LIBGPS],[],Define to 1 if you have libgps.)
1027 PKG_CHECK_MODULES([LIBGPS19], [libgps >= 2.90], have_libgps19="yes", have_libgps19="no")
1028 if test "x$have_libgps19" = "xyes"; then
1029 AC_DEFINE([HAVE_LIBGPS19],[],Define to 1 if you have libgps19.)
1030 fi
1031 else
1032 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 and no gpsd pkgconfig" )
1033 fi
1034 fi
1035 AC_SUBST(GPSD_CFLAGS)
1036 AC_SUBST(GPSD_LIBS)
1037 AM_CONDITIONAL(VEHICLE_GPSD, [test "x${vehicle_gpsd}" = "xyes"])
1038 # gypsy
1039 AC_ARG_ENABLE(vehicle-gypsy,[ --disable-vehicle-gypsy disable vehicle type gypsy], vehicle_gypsy=$enableval;vehicle_gypsy_reason="configure parameter")
1040 if test "x${vehicle_gypsy}" = "xyes"
1041 then
1042 PKG_CHECK_MODULES(GYPSY, gypsy, ,vehicle_gypsy=no;vehicle_gypsy_reason="package gypsy missing")
1043 fi
1044 AC_SUBST(GYPSY_CFLAGS)
1045 AC_SUBST(GYPSY_LIBS)
1046 AM_CONDITIONAL(VEHICLE_GYPSY, test "x${vehicle_gypsy}" = "xyes")
1047 # maemo
1048 AC_ARG_ENABLE(vehicle-maemo, [ --disable-vehicle-maemo disable vehicle type maemo], vehicle_maemo=$enableval;vehicle_maemo_reason="configure parameter")
1049 if test "x${vehicle_maemo}" = "xyes" ; then
1050 PKG_CHECK_MODULES(LIBLOCATION, liblocation, [
1051 AC_SUBST(LIBLOCATION_CFLAGS)
1052 AC_SUBST(LIBLOCATION_LIBS)
1053 ], [
1054 AC_MSG_RESULT(no)
1055 vehicle_maemo=no
1056 vehicle_maemo_reason="no maemo location library found"
1057 ])
1058 fi
1059 AM_CONDITIONAL(VEHICLE_MAEMO, test "x${vehicle_maemo}" = "xyes")
1060 # null
1061 AC_ARG_ENABLE(vehicle-null, [ --enable-vehicle-null enable vehicle type null], vehicle_null=$enableval;vehicle_null_reason="configure parameter")
1062 AM_CONDITIONAL(VEHICLE_NULL, test "x${vehicle_null}" = "xyes")
1063 # wince
1064 AC_ARG_ENABLE(vehicle-wince, [ --disable-vehicle-wince disable vehicle type wince], vehicle_wince=$enableval;vehicle_wince_reason="configure parameter")
1065 AM_CONDITIONAL(VEHICLE_WINCE, test "x${vehicle_wince}" = "xyes")
1066 # iphone
1067 AC_ARG_ENABLE(vehicle-iphone, [ --disable-vehicle-iphone disable vehicle type iphone], vehicle_iphone=$enableval;vehicle_iphone_reason="configure parameter")
1068 AM_CONDITIONAL(VEHICLE_IPHONE, test "x${vehicle_iphone}" = "xyes")
1069 if test "x${vehicle_iphone}" = "xyes"
1070 then
1071 IPHONE_LIBS=-Wl,-framework,CoreLocation
1072 fi
1073 AC_SUBST(IPHONE_CFLAGS)
1074 AC_SUBST(IPHONE_LIBS)
1075 # webos
1076 AC_ARG_ENABLE(vehicle-webos, [ --enable-vehicle-webos enable vehicle type webos], vehicle_webos=$enableval;vehicle_webos_reason="configure parameter")
1077 AM_CONDITIONAL(VEHICLE_WEBOS, test "x${vehicle_webos}" = "xyes")
1078 if test "x${vehicle_webos}" = "xyes"
1079 then
1080 AC_DEFINE(USE_WEBOS,[],Build with webOS support)
1081 LIBPDL_CFLAGS="$SDL_CFLAGS -I/usr/local/include"
1082 LIBPDL_LIBS="-L/usr/local/lib -lpdl"
1083 AC_SUBST(LIBPDL_CFLAGS)
1084 AC_SUBST(LIBPDL_LIBS)
1085 fi
1086 NAVIT_CFLAGS="$NAVIT_CFLAGS $GLIB_CFLAGS $GMODULE_CFLAGS"
1087 NAVIT_LIBS="$NAVIT_LIBS $GLIB_LIBS $GMODULE_LIBS $LIBINTL"
1088 AC_SUBST(NAVIT_CFLAGS)
1089 AC_SUBST(NAVIT_LIBS)
1090 AC_SUBST(WORDEXP_LIBS)
1091 AC_SUBST(LIBC_LIBS)
1092 AC_SUBST(WINDRES)
1093
1094 AC_CONFIG_FILES([
1095 Makefile
1096 navit/Makefile
1097 navit/autoload/Makefile
1098 navit/autoload/osso/Makefile
1099 navit/binding/Makefile
1100 navit/binding/python/Makefile
1101 navit/binding/dbus/Makefile
1102 navit/map/Makefile
1103 navit/map/mg/Makefile
1104 navit/map/textfile/Makefile
1105 navit/map/csv/Makefile
1106 navit/map/shapefile/Makefile
1107 navit/map/filter/Makefile
1108 navit/map/binfile/Makefile
1109 navit/map/garmin/Makefile
1110 navit/maptool/Makefile
1111 navit/maptool/p2t/Makefile
1112 navit/maptool/p2t/sweep/Makefile
1113 navit/maptool/p2t/common/Makefile
1114 navit/maptool/libcfu-0.03-zanavi/Makefile
1115 navit/maptool/libcfu-0.03-zanavi/src/Makefile
1116 navit/maptool/refine/Makefile
1117 navit/fib-1.1/Makefile
1118 navit/font/Makefile
1119 navit/font/freetype/Makefile
1120 navit/fonts/Makefile
1121 navit/graphics/Makefile
1122 navit/graphics/android/Makefile
1123 navit/graphics/gd/Makefile
1124 navit/graphics/gtk_drawing_area/Makefile
1125 navit/graphics/opengl/Makefile
1126 navit/graphics/null/Makefile
1127 navit/graphics/sdl/Makefile
1128 navit/graphics/qt_qpainter/Makefile
1129 navit/graphics/win32/Makefile
1130 navit/gui/Makefile
1131 navit/gui/gtk/Makefile
1132 navit/gui/internal/Makefile
1133 navit/gui/win32/Makefile
1134 navit/gui/qml/Makefile
1135 navit/gui/qml/skins/Makefile
1136 navit/gui/qml/skins/navit/Makefile
1137 navit/osd/Makefile
1138 navit/osd/core/Makefile
1139 navit/plugin/Makefile
1140 navit/plugin/pedestrian/Makefile
1141 navit/speech/Makefile
1142 navit/speech/android/Makefile
1143 navit/speech/cmdline/Makefile
1144 navit/speech/dbus/Makefile
1145 navit/speech/espeak/Makefile
1146 navit/speech/speech_dispatcher/Makefile
1147 navit/support/Makefile
1148 navit/support/espeak/Makefile
1149 navit/support/ezxml/Makefile
1150 navit/support/glib/Makefile
1151 navit/support/libc/Makefile
1152 navit/support/libpng/Makefile
1153 navit/support/win32/Makefile
1154 navit/support/wordexp/Makefile
1155 navit/support/zlib/Makefile
1156 navit/vehicle/Makefile
1157 navit/vehicle/android/Makefile
1158 navit/vehicle/file/Makefile
1159 navit/vehicle/gpsd/Makefile
1160 navit/vehicle/gpsd_dbus/Makefile
1161 navit/vehicle/gypsy/Makefile
1162 navit/vehicle/maemo/Makefile
1163 navit/vehicle/null/Makefile
1164 navit/vehicle/demo/Makefile
1165 navit/vehicle/wince/Makefile
1166 navit/vehicle/iphone/Makefile
1167 navit/vehicle/webos/Makefile
1168 navit/xpm/Makefile
1169 navit/maps/Makefile
1170 intl/Makefile
1171 po/Makefile
1172 man/Makefile
1173 ])
1174 #src/data/garmin_img/Makefile
1175
1176 AC_OUTPUT
1177
1178
1179 echo ""
1180 echo ""
1181 echo "Summary of your installation :"
1182 # FIXME : maybe elaborate missing dependencies
1183 if test x"$graphics_sdl" != xyes
1184 then
1185 sdl_failures="(libsdl maybe?) "
1186 fi
1187 if test x"$glut" != xyes
1188 then
1189 sdl_failures=$sdl_failures"glut "
1190 fi
1191 if test x"$glc" != xyes
1192 then
1193 sdl_failures=$sdl_failures"quesoglc "
1194 fi
1195 if test -z "$sdl_failures"
1196 then
1197 echo "OpenGL gui : ENABLED, with $CEGUI_LIBS"
1198 else
1199 echo "OpenGL gui : DISABLED : you are missing $sdl_failures"
1200 fi
1201 if test x"$enable_hildon" = xyes
1202 then
1203 echo "Maemo/Hildon: ENABLED"
1204 else
1205 echo "Maemo/Hildon: DISABLED"
1206 fi
1207 if test x"$enable_osso" = xyes
1208 then
1209 echo "Maemo/OSSO: ENABLED"
1210 else
1211 echo "Maemo/OSSO: DISABLED"
1212 fi
1213 if test x"${USE_GARMIN}" = xyes
1214 then
1215 if test "x$use_libgarmin" = "xyes"
1216 then
1217 echo "Garmin IMG : ENABLED"
1218 else
1219 echo "Garmin IMG : DISABLED (you don't have libgarmin)"
1220 fi
1221 else
1222 echo "Garmin IMG : DISABLED (you requested it)"
1223 fi
1224
1225 if test x"$LIBINTL" = "x" ;then
1226 nls_libs="system gettext support"
1227 else
1228 nls_libs="$LIBINTL"
1229 fi
1230 echo "Plugins: $plugins ($plugins_reason)"
1231 echo "Postgresql: $postgresql ($postgresql_reason)"
1232 echo "Samplemap: $samplemap ($samplemap_reason)"
1233 echo "NLS Support: $enable_nls ($nls_libs)"
1234 echo "Routing: $routing ($routing_reason)"
1235 echo "Font renderers:"
1236 echo " freetype: $font_freetype ($font_freetype_reason)"
1237 echo " FriBidi enabled: $fribidi ($fribidi_reason)"
1238
1239 echo "Graphics types: $graphics ($graphics_reason)"
1240 echo " android: $graphics_android ($graphics_android_reason)"
1241 echo " gtk_drawing_area: $graphics_gtk_drawing_area ($graphics_gtk_drawing_area_reason)"
1242 echo " null: $graphics_null ($graphics_null_reason)"
1243 echo " qt_qpainter: $graphics_qt_qpainter ($graphics_qt_qpainter_reason)"
1244 echo " win32: $graphics_win32 ($graphics_win32_reason)"
1245 echo " OpenGL: $graphics_opengl ($graphics_opengl_reason)"
1246 echo " gd: $graphics_gd ($graphics_gd_reason)"
1247 echo " sdl: $graphics_sdl ($graphics_sdl_reason)"
1248
1249 echo "GUI types:"
1250 echo " gtk: $gui_gtk ($gui_gtk_reason)"
1251 echo " internal: $gui_internal ($gui_internal_reason)"
1252 echo " win32: $gui_win32 ($gui_win32_reason)"
1253 echo " qml: $gui_qml ($gui_qml_reason)"
1254
1255 echo "Map types:"
1256 echo " binfile: $map_binfile ($map_binfile_reason)"
1257 echo " filter: $map_filter ($map_filter_reason)"
1258 echo " mg: $map_mg ($map_mg_reason)"
1259 echo " shapefile: $map_shapefile ($map_shapefile_reason)"
1260 echo " textfile: $map_textfile ($map_textfile_reason)"
1261 echo " csv: $map_csv ($map_csv_reason)"
1262
1263
1264 echo "Bindings:"
1265 echo " dbus: $binding_dbus ($binding_dbus_reason)"
1266 echo " python: $binding_python ($binding_python_reason)"
1267
1268 echo "OSD types:"
1269 echo " core: $osd_core ($osd_core_reason)"
1270
1271 echo "Plugins:"
1272 echo " pedestrian: $plugin_pedestrian ($plugin_pedestrian_reason)"
1273
1274 echo "Speech types:"
1275 echo " android: $speech_android ($speech_android_reason)"
1276 echo " cmdline: $speech_cmdline ($speech_cmdline_reason)"
1277 echo " dbus: $speech_dbus ($speech_dbus_reason)"
1278 echo " espeak: $speech_espeak ($speech_espeak_reason)"
1279 echo " speech_dispatcher: $speech_speech_dispatcher ($speech_speech_dispatcher_reason)"
1280
1281 echo "Vehicle types:"
1282 echo " android: $vehicle_android ($vehicle_android_reason)"
1283 echo " demo: $vehicle_demo ($vehicle_demo_reason)"
1284 echo " file: $vehicle_file ($vehicle_file_reason)"
1285 echo " gpsd: $vehicle_gpsd ($vehicle_gpsd_reason)"
1286 echo " gpsd_dbus: $vehicle_gpsd_dbus ($vehicle_gpsd_dbus_reason)"
1287 echo " gypsy: $vehicle_gypsy ($vehicle_gypsy_reason)"
1288 echo " maemo: $vehicle_maemo ($vehicle_maemo_reason)"
1289 echo " null: $vehicle_null ($vehicle_null_reason)"
1290 echo " wince: $vehicle_wince ($vehicle_wince_reason)"
1291 echo " iphone: $vehicle_iphone ($vehicle_iphone_reason)"
1292 echo " webos: $vehicle_webos ($vehicle_webos_reason)"
1293
1294 if test "x${gtk2_pkgconfig}" != "xyes" -a "x${gui_win32}" != "xyes" -a "x${gui_internal}" != "xyes" -a "x${gui_qml}" != "xyes"
1295 then
1296 echo ""
1297 echo ""
1298 echo "*** WARNING! you have no gui that can be built! ***"
1299 echo "Please install the dependency for at least gtk or sdl gui"
1300 echo "For more details, see the wiki at http://wiki.navit-project.org/"
1301 echo ""
1302 fi
1303

   
Visit the ZANavi Wiki