From 790b6343f7ea7689a6cbac4eaff37c9fd06c8f2a Mon Sep 17 00:00:00 2001 From: martin-s Date: Wed, 12 May 2010 15:18:43 +0000 Subject: Add:Build:More checks for gd git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3242 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- configure.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.in b/configure.in index bc8ea6972..fbd2d7209 100644 --- a/configure.in +++ b/configure.in @@ -770,6 +770,17 @@ AC_CHECK_HEADER( Define to 1 if you have shared memory ) ) +AC_CHECK_HEADER( + X11/xpm.h, + AC_DEFINE( + [HAVE_XPM], + [], + Define to 1 if you have xpm header + ) +) +if test "x${graphics_gd}" = "xyes" ; then + AC_TRY_LINK([#include ], [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)) +fi # gtk_drawing_area 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") -- cgit v1.2.1