3 AM_CONFIG_HEADER(config.h)
7 m4_ifndef([AC_USE_SYSTEM_EXTENSIONS],
8 [AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], [AC_GNU_SOURCE])])
10 AC_USE_SYSTEM_EXTENSIONS
13 if eval "test x$GCC = xyes"; then
14 CFLAGS="$CFLAGS -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
19 if eval "test x$GXX = xyes"; then
20 CXXFLAGS="$CXXFLAGS -Wall -Wcast-align -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
25 AC_ARG_ENABLE(plugins, [ --disable-plugins disable plugins],
37 Define to 1 if you have plugins.
44 AC_ARG_ENABLE(avoid-unaligned, [ --enable-avoid-unaligned avoid unaligned accesses], AVOID_UNALIGNED=$enableval, AVOID_UNALIGNED=no)
45 test x"${AVOID_UNALIGNED}" = xyes && AC_DEFINE(AVOID_UNALIGNED,[],Define to avoid unaligned access)
47 AC_ARG_ENABLE(avoid-float, [ --enable-avoid-float avoid floating point calculations], AVOID_FLOAT=$enableval, AVOID_FLOAT=no)
48 test x"${AVOID_FLOAT}" = xyes && AC_DEFINE(AVOID_FLOAT,[],Define to avoid floating point)
50 AC_ARG_ENABLE(hildon, [ --enable-hildon build with maemo/hildon support], enable_hildon=$enableval, enable_hildon=no)
51 if test "x${enable_hildon}" = "xyes" ; then
52 PKG_CHECK_MODULES(enable_hildon, hildon-libs >= 0.12.24, , [
56 if test x"${enable_hildon}" = xyes ; then
57 AC_DEFINE(USE_HILDON, 1, [Build with maemo/hildon support])
58 AC_SUBST(HILDON_CFLAGS)
62 AM_CONDITIONAL(USE_HILDON, test "${enable_hildon}" = "xyes")
64 AC_ARG_ENABLE(libgps, [ --disable-libgps don't use libgps], USE_LIBGPS=$enableval, USE_LIBGPS=yes)
65 AC_ARG_ENABLE(gypsy, [ --disable-gypsy don't use gypsy], USE_GYPSY=$enableval, USE_GYPSY=yes)
66 AC_ARG_ENABLE(garmin, [ --disable-garmin disable garmin support], USE_GARMIN=$enableval, USE_GARMIN=yes)
68 AC_ARG_ENABLE(samplemap, [ --disable-samplemap don't build the samplemap], samplemap=$enableval, samplemap=yes)
69 AM_CONDITIONAL(BUILD_SAMPLEMAP, [test "x$samplemap" = "xyes"])
71 AC_ARG_ENABLE(fastmath, [ --disable-fastmath don't build with fastmath], fastmath=$enableval, fastmath=yes)
72 AM_CONDITIONAL(FASTMATH, [test "x$fastmath" = "xyes"])
74 if test x"$fastmath" = xyes; then
75 if eval "test x$GCC = xyes"; then
76 CFLAGS="$CFLAGS -ffast-math"
80 X_CFLAGS="-I$x_includes"
81 X_LIBS="-L$ac_x_libraries"
83 PKG_CHECK_MODULES(NAVIT, [glib-2.0 gmodule-2.0 gthread-2.0], [], AC_MSG_ERROR([glib-2.0 or gmodule-2.0 not found. Usually you need to install a package named glib2-devel or libglib2.0-dev]))
84 AC_SUBST(NAVIT_CFLAGS)
92 Define to 1 if you have the <zlib.h> header file.
95 AC_MSG_WARN([*** no zlib.h\ -- reduced functionality of osm2navit])
99 AC_ARG_ENABLE(gui-gtk, [ --disable-gui-gtk don't create gui gtk ], MODULE_GUI_GTK=$enableval, MODULE_GUI_GTK=yes)
100 if test "x$MODULE_GUI_GTK" = "xyes"; then
101 PKG_CHECK_MODULES(GTK2, [gtk+-2.0], [gtk2_pkgconfig=yes], [gtk2_pkgconfig=no])
102 if test "x$gtk2_pkgconfig" = "xyes"; then
103 AC_DEFINE(HAVE_GTK2, 1, [Define to 1 if you have gtk2])
107 GTK2_CFLAGS="$GTK2_CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
109 AC_SUBST(GTK2_CFLAGS)
111 AM_CONDITIONAL(GUI_GTK, [test "x$gtk2_pkgconfig" = "xyes"])
112 AM_CONDITIONAL(GRAPHICS_GTK_DRAWING_AREA, [test "x$gtk2_pkgconfig" = "xyes"])
113 AM_CONDITIONAL(PLUGINS, [test "x$plugins" = "xyes"])
115 AC_ARG_ENABLE(gui-directfb, [ --disable-gui-directfb don't create gui directfb ], MODULE_GUI_DIRECTFB=$enableval, MODULE_GUI_DIRECTFB=yes)
117 if test "x$MODULE_GUI_DIRECTFB" = "xyes"; then
118 PKG_CHECK_MODULES(DIRECTFB, [directfb], [directfb_pkgconfig=yes], [directfb_pkgconfig=no])
119 if test "x$directfb_pkgconfig" = "xyes"; then
120 AC_DEFINE(HAVE_DIRECTFB, 1, [Define to 1 if you have directfb])
124 DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
126 #DIRECTFB_CFLAGS="-D_REENTRANT -I/data/oe/tmp/staging/arm-angstrom-linux-gnueabi/usr/include/directfb/"
127 #DIRECTFB_LIBS="-L/data/oe/tmp/staging/arm-angstrom-linux-gnueabi/usr/lib/ -ldirectfb -lfusion -ldirect -lpthread"
129 AC_SUBST(DIRECTFB_CFLAGS)
130 AC_SUBST(DIRECTFB_LIBS)
131 AM_CONDITIONAL(GUI_DIRECTFB, [test "x$directfb_pkgconfig" = "xyes"])
132 AM_CONDITIONAL(GRAPHICS_DIRECTFB, [test "x$directfb_pkgconfig" = "xyes"])
134 AC_ARG_ENABLE(graphics-qt-qpainter, [ --disable-graphics-qt-qpainter don't create graphics qt-qpainter], enable_graphics_qt_qpainter=$enableval, enable_graphics_qt_qpainter=yes)
135 if test "x${enable_graphics_qt_qpainter}" = "xyes" ; then
136 PKG_CHECK_MODULES(QT_GUI, [QtGui QtCore], ,enable_graphics_qt_qpainter=no)
138 if test "x${enable_graphics_qt_qpainter}" = "xyes" ; then
139 AC_DEFINE(USE_GRAPICS_QT_QPAINTER, 1, [Build with graphics qt_qpainter])
140 AC_SUBST(QT_GUI_CFLAGS)
141 AC_SUBST(QT_GUI_LIBS)
143 AM_CONDITIONAL(USE_GRAPHICS_QT_QPAINTER, test "x${enable_graphics_qt_qpainter}" = "xyes")
145 AC_ARG_ENABLE(graphics-sdl, [ --disable-graphics-sdl don't create graphics sdl], enable_graphics_sdl=$enableval, enable_graphics_sdl=yes)
146 if test "x${enable_graphics_sdl}" = "xyes" ; then
147 if test -z "$SDL_CONFIG"; then
148 AC_PATH_PROG([SDL_CONFIG], [sdl-config], [])
151 if test "x${enable_graphics_sdl}" = "xyes" ; then
152 AC_MSG_CHECKING([for SDL libraries with $SDL_CONFIG])
153 if test ! -x "$SDL_CONFIG"; then
154 enable_graphics_sdl = "no"
157 SDL_CFLAGS="`$SDL_CONFIG --cflags`"
158 SDL_LIBS="`$SDL_CONFIG --libs`"
164 if test "x${enable_graphics_sdl}" = "xyes" ; then
165 save_CPPFLAGS=$CPPFLAGS
166 CPPFLAGS="$($SDL_CONFIG --cflags) $CPPFLAGS"
167 AC_CHECK_HEADER(SDL_image.h,SDL_IMAGE_LIBS=-lSDL_image,enable_graphics_sdl=no)
168 AC_SUBST(SDL_IMAGE_LIBS)
169 CPPFLAGS=$save_CPPFLAGS
171 if test "x${enable_graphics_sdl}" = "xyes" ; then
172 AC_DEFINE(USE_GRAPICS_SDL, 1, [Build with graphics sdl])
174 AM_CONDITIONAL(USE_GRAPHICS_SDL, test "x${enable_graphics_sdl}" = "xyes")
176 AC_ARG_ENABLE(postgresql, [ --disable-postgresql don't add postgresql support to osm2navit], enable_postgresql=$enableval, enable_postgresql=yes)
177 if test "x${enable_postgresql}" = "xyes" ; then
178 if test -z "$PG_CONFIG"; then
179 AC_PATH_PROG([PG_CONFIG], [pg_config], [])
181 AC_MSG_CHECKING([for PostgreSQL libraries with $PG_CONFIG])
182 if test ! -x "$PG_CONFIG"; then
183 enable_postgresql = "no"
186 POSTGRESQL_CFLAGS="-I`$PG_CONFIG --includedir`"
187 POSTGRESQL_LIBS="-L`$PG_CONFIG --libdir` -lpq"
188 AC_DEFINE(HAVE_POSTGRESQL, 1, [Postgresql libraries available])
189 AC_SUBST(POSTGRESQL_CFLAGS)
190 AC_SUBST(POSTGRESQL_LIBS)
194 AM_CONDITIONAL(HAVE_POSTGRESQL, test "x${enable_postgresql}" = "xyes")
196 PKG_CHECK_MODULES(FREETYPE2, [freetype2], [freetype2_pkgconfig=yes], [freetype2_pkgconfig=no])
197 if test "x$freetype2_pkgconfig" = "xyes"; then
198 AC_DEFINE(HAVE_FREETYPE2, 1, [Define to 1 if you have freetype2])
200 AC_SUBST(FREETYPE2_CFLAGS)
201 AC_SUBST(FREETYPE2_LIBS)
203 PKG_CHECK_MODULES(FONTCONFIG, [fontconfig], [fontconfig_pkgconfig=yes], [fontconfig_pkgconfig=no])
204 if test "x$fontconfig_pkgconfig" = "xyes"; then
205 AC_DEFINE(HAVE_FONTCONFIG, 1, [Define to 1 if you have fontconfig])
207 AC_SUBST(FONTCONFIG_CFLAGS)
208 AC_SUBST(FONTCONFIG_LIBS)
210 PKG_CHECK_MODULES(IMLIB2, [imlib2], [imlib2_pkgconfig=yes], [imlib2_pkgconfig=no])
211 if test "x$imlib2_pkgconfig" = "xyes"; then
212 AC_DEFINE(HAVE_IMLIB2, 1, [Define to 1 if you have imlib2])
214 AC_SUBST(IMLIB2_CFLAGS)
215 AC_SUBST(IMLIB2_LIBS)
218 AC_ARG_ENABLE(speech-speechd, [ --disable-speech-speechd don't create speech speechd ], MODULE_SPEECH_SPEECHD=$enableval, MODULE_SPEECH_SPEECHD=yes)
219 if test "x$MODULE_SPEECH_SPEECHD" = "xyes"; then
220 AC_CHECK_HEADER(libspeechd.h, AC_DEFINE([HAVE_LIBSPEECHD],[],Define to 1 if you have the <libspeechd.h> header file.) SPEECHD_LIBS="-lspeechd" speechd=yes, AC_MSG_WARN([*** no libspeechd.h -- Speech output disabled]))
222 AC_SUBST(SPEECHD_CFLAGS)
223 AC_SUBST(SPEECHD_LIBS)
224 AM_CONDITIONAL(SPEECH_SPEECH_DISPATCHER, [test "x$speechd" = "xyes"])
227 AC_ARG_ENABLE(gui-sdl, [ --disable-gui-sdl don't create gui sdl ], MODULE_GUI_SDL=$enableval, MODULE_GUI_SDL=yes)
228 if test "x$MODULE_GUI_SDL" = "xyes"; then
234 Define to 1 if you have the <SDL/SDL.h> header file.
238 AC_MSG_WARN([*** no SDL/SDL.h -- SDL support disabled])
244 [CEGUI-OPENGL >= 0.5.0],
249 [Define to 1 if you have the @<:@CEGUI/CEGUI.h@:>@ header file.])
252 [AC_MSG_WARN([*** CEGUI not found -- SDL support disabled])]
260 Define to 1 if you have the <X11/Xmu/Xmu.h> header file.
263 AC_MSG_WARN([*** no X11/Xmu/Xmu.h -- opengl and SDL support disabled])
271 Define to 1 if you have the <GL/gl.h> header file.
273 OPENGL_LIBS="$X_LIBS -lGL -lGLU"
275 AC_MSG_WARN([*** no GL/gl.h -- opengl and SDL support disabled])
283 Define to 1 if you have the <GL/glut.h> header file.
286 AC_MSG_WARN([*** no GL/glut.h -- opengl and SDL support disabled])
289 AC_SUBST(OPENGL_CFLAGS)
290 AC_SUBST(OPENGL_LIBS)
297 Define to 1 if you have the <GL/glc.h> header file.
301 AC_MSG_WARN([*** no GL/glc.h -- opengl and SDL support disabled])
306 if test x"$cegui" = xyes
308 # Save the LIBS into a temp var since AC_CHECK_LIB adds the lib into LIBS
309 # and we want just to check and use CEGUI_LIBS
311 # For CEGUI, we have to check the presence of some libraries.
312 # The following are mandatory (used by navit)
313 # If the user installed NavIt without, issue a warning and disable CEGUI
314 AC_CHECK_LIB(CEGUIBase, main,
317 echo "Error! Something is wrong with CEGUIBase. Do you have at least cegui-0.5?"
319 AC_CHECK_LIB(CEGUIOpenGLRenderer, main,
322 echo "Error! Something is wrong with CEGUIOpenGLRenderer. Do you have at least cegui-0.5? "
324 AC_CHECK_LIB(CEGUIFalagardWRBase, main,
327 echo "Error! Something is wrong with CEGUIFalagardWRBase. Do you have at least cegui-0.5?"
329 CEGUI_LIBS="-lCEGUIBase -lCEGUIOpenGLRenderer -lCEGUIFalagardWRBase"
331 # The following are optional, but we need to link against them if cegui was built with them
332 AC_CHECK_LIB(CEGUIXercesParser, main,
333 [CEGUI_LIBS="$CEGUI_LIBS -lCEGUIXercesParser"],
334 [echo "CEGUIXercesParser not found/not working, disabled."],
338 AC_CHECK_LIB(CEGUIExpatParser, main,
339 [CEGUI_LIBS="$CEGUI_LIBS -lCEGUIExpatParser"],
340 [echo "CEGUIExpatParser not found/not working, disabled."],
344 AC_CHECK_LIB(CEGUILibxmlParser, main,
345 [CEGUI_LIBS="$CEGUI_LIBS -lCEGUILibxmlParser"],
346 [echo "CEGUILibxmlParser not found/not working, disabled."],
350 AC_CHECK_LIB(CEGUITinyXMLParser, main,
351 [CEGUI_LIBS="$CEGUI_LIBS -lCEGUITinyXMLParser"],
352 [echo "CEGUITinyXMLParser not found/not working, disabled."],
356 AC_CHECK_LIB(CEGUIDevILImageCodec, main,
358 CEGUI_LIBS="$CEGUI_LIBS -lCEGUIDevILImageCodec"
359 AC_DEFINE([HAVE_LIBCEGUIDEVILIMAGECODEC],[1],Define to 1 to use DevIL codec)
361 [echo "CEGUIDevILImageCodec not found/not working, disabled."],
365 AC_CHECK_LIB(CEGUITGAImageCodec, createImageCodec,
367 CEGUI_LIBS="$CEGUI_LIBS -lCEGUITGAImageCodec"
368 AC_DEFINE(HAVE_LIBCEGUITGAIMAGECODEC,[1],Define to 1 to use the TGA codec)
370 [echo "GUITGAImageCodec not found/not working, disabled."],
374 libssilly="$OPENGL_LIBS -lpng"
375 AC_CHECK_LIB(CEGUISILLYImageCodec, createImageCodec,
377 CEGUI_LIBS="$CEGUI_LIBS -lCEGUISILLYImageCodec"
378 AC_DEFINE([HAVE_LIBCEGUISILLYIMAGECODEC],[1],Define to 1 to use SILLY codec)
380 [echo "CEGUISILLYImageCodec not found/not working, disabled."],
385 echo "CEGUI_LIBS : $CEGUI_LIBS"
388 AC_SUBST(CEGUI_CFLAGS)
391 AM_CONDITIONAL(GUI_SDL, [test "x$sdl" = "xyes" -a "x$cegui" = "xyes" -a "x$opengl" = "xyes" -a "x$glc" = "xyes" -a "x$xmu" = "xyes" ])
392 AM_CONDITIONAL(GRAPHICS_OPENGL, [test "x$opengl" = "xyes" -a "x$glc" = "xyes" ])
394 AC_ARG_ENABLE(gui-clutter, [ --disable-gui-clutter don't create gui clutter ], MODULE_GUI_CLUTTER=$enableval, MODULE_GUI_CLUTTER=yes)
395 if test "x$MODULE_GUI_CLUTTER" = "xyes"; then
396 PKG_CHECK_MODULES(CLUTTER, [clutter-0.8], [clutter_pkgconfig=yes], [clutter_pkgconfig=no])
397 if test "x$clutter_pkgconfig" = "xyes"; then
398 AC_DEFINE(HAVE_CLUTTER, 1, [Define to 1 if you have clutter])
402 AC_SUBST(CLUTTER_CFLAGS)
403 AC_SUBST(CLUTTER_LIBS)
404 AM_CONDITIONAL(GUI_CLUTTER, [test "x$clutter_pkgconfig" = "xyes" -a "x$glc" = "xyes" ])
407 if test x"${USE_GYPSY}" = xyes
409 PKG_CHECK_MODULES(GYPSY, gypsy, use_gypsy=yes, use_gypsy=no)
410 AC_SUBST(GYPSY_CFLAGS)
413 AM_CONDITIONAL(VEHICLE_GYPSY, [test "x$use_gypsy" = "xyes"])
415 if test x"${USE_LIBGPS}" = xyes
417 AC_CHECK_HEADER(gps.h, AC_DEFINE([HAVE_LIBGPS],[],Define to 1 if you have the <gps.h> header file.) GPSD_LIBS="-lgps" gpsd=yes, AC_MSG_WARN([*** no gps.h -- gpsd support disabled]))
419 AC_SUBST(GPSD_CFLAGS)
421 AM_CONDITIONAL(VEHICLE_GPSD, [test "x$gpsd" = "xyes"])
423 if test x"${USE_GARMIN}" = xyes
425 # check for libgarmin
426 PKG_CHECK_MODULES(LIBGARMIN, libgarmin, use_libgarmin=yes, use_libgarmin=no)
427 AC_SUBST(LIBGARMIN_CFLAGS)
428 AC_SUBST(LIBGARMIN_LIBS)
430 AM_CONDITIONAL(HAVELIBGARMIN, [test "x$use_libgarmin" = "xyes"])
434 AC_ARG_ENABLE(binding-python, [ --disable-binding-python don't create binding python], enable_binding_python=$enableval, enable_binding_python=yes)
435 if test "x${enable_binding_python}" = "xyes" ; then
436 if test "x${cross_compiling}" = "xyes" ; then
437 AC_MSG_WARN([*** cross compiling, support for python disabled])
438 enable_binding_python="no"
441 if test "x${enable_binding_python}" = "xyes"; then
442 AC_PATH_PROG(_PATH_PYTHON,[python])
443 dnl Libraries and flags for embedded Python.
444 dnl FIXME: I wish there was a less icky way to get this.
445 if test "x${_PATH_PYTHON}" != "x" ; then
446 AC_MSG_CHECKING(for Python linkage)
447 py_prefix=`$_PATH_PYTHON -c 'import sys; print sys.prefix'`
448 py_ver=`$_PATH_PYTHON -c 'import sys; print sys.version[[:3]]'`
449 py_libdir="${py_prefix}/lib/python${py_ver}"
450 PYTHON_CFLAGS="-I${py_prefix}/include/python${py_ver}"
451 if test -f $py_libdir/config/Makefile -a -f $py_prefix/include/python${py_ver}/Python.h; then
452 py_libs=`grep '^LIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
453 py_libc=`grep '^LIBC=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
454 py_libm=`grep '^LIBM=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
455 py_liblocalmod=`grep '^LOCALMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
456 py_libbasemod=`grep '^BASEMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
457 PYTHON_LIBS="-L$py_libdir/config $py_libs $py_libc $py_libm -lpython$py_ver $py_liblocalmod $py_libbasemod"
458 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/[ \\t]*/ /g'`
459 AC_MSG_RESULT($py_libdir)
461 AC_MSG_WARN([$py_libdir/config/Makefile or $py_prefix/include/python${py_ver}/Python.h missing, support for python disabled])
462 enable_binding_python="no"
465 AC_MSG_WARN([no python found, support for python disabled])
466 enable_binding_python="no"
469 if test "x${enable_binding_python}" = xyes ; then
470 AC_DEFINE(USE_BINDING_PYTHON, 1, [Build with binding python])
471 AC_SUBST(PYTHON_CFLAGS)
472 AC_SUBST(PYTHON_LIBS)
474 AM_CONDITIONAL(USE_BINDING_PYTHON, test "x${enable_binding_python}" = "xyes")
477 AC_ARG_ENABLE(binding-dbus, [ --disable-binding-dbus don't create binding dbus], enable_binding_dbus=$enableval, enable_binding_dbus=yes)
478 if test "x${enable_binding_dbus}" = "xyes" ; then
479 PKG_CHECK_MODULES(DBUS, [dbus-glib-1], ,enable_binding_dbus=no)
481 if test "x${enable_binding_dbus}" = "xyes" ; then
482 AC_DEFINE(USE_BINDING_DBUS, 1, [Build with binding dbus])
483 AC_SUBST(DBUS_CFLAGS)
486 AM_CONDITIONAL(USE_BINDING_DBUS, test "x${enable_binding_dbus}" = "xyes")
489 AC_ARG_ENABLE(svg, [ --disable-svg disable Scalable Vector Graphics], enable_svg=$enableval, enable_svg=yes)
490 AC_ARG_ENABLE(svg2png, [ --disable-svg2png disable conversion of svgs to pngs], enable_svg2png=$enableval, enable_svg2png=yes)
491 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")
492 if test "x${enable_svg2png}" = "xyes" ; then
493 AC_PATH_PROG([KSVGTOPNG], [ksvgtopng], [])
494 if test ! -x "$KSVGTOPNG"; then
498 AC_SUBST(SVG2PNG_SCALES)
499 AM_CONDITIONAL(USE_SVG2PNG_SCALES, test "x${SVG2PNG_SCALES}" != "xyes" -a "x${SVG2PNG_SCALES}" != "x")
500 AM_CONDITIONAL(USE_SVG2PNG, test "x${enable_svg2png}" = "xyes")
501 AM_CONDITIONAL(USE_SVG, test "x${enable_svg}" = "xyes")
506 [ --disable-nls disable Native Language Support ( gettext/libintl )],
507 enable_nls=$enableval, enable_nls=yes)
515 if test x$enable_nls = xyes; then
517 AC_CHECK_FUNC(gettext, [HAVEGETTEXT="yes"],
518 AC_CHECK_LIB(intl, gettext, [INTLIBS="-lintl" HAVEGETTEXT="yes"],
521 AC_CHECK_PROG(XGETTEXT, xgettext, xgettext)
522 AC_CHECK_PROG(MSGMERGE, msgmerge, msgmerge)
523 AC_CHECK_PROG(MSGFMT, msgfmt, msgfmt)
525 if test "$XGETTEXT" != ""; then
526 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
527 echo "xgettext isn't GNU version"
532 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
534 if test "$LINGUAS" = ""; then
535 ling=` (cd $srcdir/po; /bin/ls *.po) `
537 lcode=`basename $l .po`
538 LINGUAS="$LINGUAS$lcode "
541 AC_DEFINE(ENABLE_NLS, [1], [NLS Please])
542 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
546 echo "xgettext and libintl.a don't both exist; will not build i18n support"
548 for lang in $LINGUAS; do
549 MOFILES="$MOFILES $lang.mo"
551 for lang in $LINGUAS; do
552 POFILES="$POFILES $lang.po"
560 AM_GNU_GETTEXT_VERSION
563 LIBS="$LIBS -lm -rdynamic"
566 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
567 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
571 if test "x${cross_compiling}" = "xyes"; then
572 AC_MSG_CHECKING([for a C compiler for build tools])
573 AC_CHECK_PROGS(CC_FOR_BUILD, gcc cc)
577 CCLD_FOR_BUILD="$CC_FOR_BUILD"
579 AC_SUBST(cross_compiling)
580 AC_SUBST(CC_FOR_BUILD)
581 AC_SUBST(CCLD_FOR_BUILD)
586 navit/binding/Makefile
587 navit/binding/python/Makefile
588 navit/binding/dbus/Makefile
590 navit/data/mg/Makefile
591 navit/data/textfile/Makefile
592 navit/data/binfile/Makefile
593 navit/data/garmin/Makefile
594 navit/data/poi_geodownload/Makefile
595 navit/data/poi_geodownload/libmdb/Makefile
596 navit/data/poi_geodownload/libmdb/include/Makefile
597 navit/fib-1.1/Makefile
598 navit/graphics/Makefile
599 navit/graphics/gtk_drawing_area/Makefile
600 navit/graphics/directfb/Makefile
601 navit/graphics/cogl/Makefile
602 navit/graphics/opengl/Makefile
603 navit/graphics/null/Makefile
604 navit/graphics/sdl/Makefile
605 navit/graphics/qt_qpainter/Makefile
607 navit/gui/gtk/Makefile
608 navit/gui/internal/Makefile
609 navit/gui/clutter/Makefile
610 navit/gui/cegui/Makefile
611 navit/gui/cegui/datafiles/Makefile
612 navit/gui/directfb/Makefile
614 navit/osd/core/Makefile
615 navit/speech/Makefile
616 navit/speech/cmdline/Makefile
617 navit/speech/speech_dispatcher/Makefile
618 navit/vehicle/Makefile
619 navit/vehicle/file/Makefile
620 navit/vehicle/gpsd/Makefile
621 navit/vehicle/gypsy/Makefile
622 navit/vehicle/demo/Makefile
628 #src/data/garmin_img/Makefile
635 echo "Summary of your installation :"
636 if test x"$gtk2_pkgconfig" = xyes
638 echo "GTK gui : ENABLED"
640 echo "GTK gui : DISABLED : you are missing a dependency. To fix this install a package named gtk2-devel or libgtk2.0-dev"
642 # FIXME : maybe elaborate missing dependencies
643 if test x"$sdl" != xyes
645 sdl_failures="(libsdl maybe?) "
647 if test x"$xmu" != xyes
649 sdl_failures=$sdl_failures"libxmu "
651 if test x"$glut" != xyes
653 sdl_failures=$sdl_failures"glut "
655 if test x"$glc" != xyes
657 sdl_failures=$sdl_failures"quesoglc "
659 if test x"$cegui" != xyes
661 sdl_failures=$sdl_failures"cegui-devel >= 0.5 "
663 if test -z "$sdl_failures"
665 echo "OpenGL gui : ENABLED, with $CEGUI_LIBS"
667 echo "OpenGL gui : DISABLED : you are missing $sdl_failures"
669 if test x"$directfb_pkgconfig" = xyes
671 echo "DIRECTFB : ENABLED"
673 echo "DIRECTFB : DISABLED"
675 if test x"$clutter_pkgconfig" = xyes
677 echo "Clutter gui : ENABLED"
679 echo "Clutter gui : DISABLED"
681 if test x"$enable_hildon" = xyes
683 echo "Maemo/Hildon: ENABLED"
685 echo "Maemo/Hildon: DISABLED"
688 if test x"$use_gypsy" = xyes
690 echo "Gypsy support: ENABLED"
692 echo "Gypsy support: DISABLED"
694 if test x"$gpsd" = xyes
696 echo "GPSD support: ENABLED"
698 echo "GPSD support: DISABLED"
700 if test x"$speechd" = xyes
702 echo "SPEECHD : ENABLED"
704 echo "SPEECHD : DISABLED"
706 if test x"${USE_GARMIN}" = xyes
708 if test "x$use_libgarmin" = "xyes"
710 echo "Garmin IMG : ENABLED"
712 echo "Garmin IMG : DISABLED (you don't have libgarmin)"
715 echo "Garmin IMG : DISABLED (you requested it)"
717 if test "x$samplemap" = "xyes"
719 echo "Samplemap : ENABLED"
721 echo "Samplemap : DISABLED"
723 if [ test x"$gtk2_pkgconfig" != xyes ] && [ test x"$sdl" != xyes ] && [ test x"$directfb_pkgconfig" != xyes ]
727 echo "*** WARNING! you have no gui that can be built! ***"
728 echo "Please install the dependency for at least gtk or sdl gui"
729 echo "For more details, see the wiki at http://wiki.navit-project.org/"