changeset 3639:6f4c5b0aba7c

Fix detection of directfb.h - AC_CHECK_HEADER wants CPPFLAGS
author Couriersud <couriersud@arcor.de>
date Mon, 11 Jan 2010 21:46:59 +0000
parents 6e70cf55a368
children 58c1b9ec7074
files configure.in
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Mon Jan 11 07:58:55 2010 +0000
+++ b/configure.in	Mon Jan 11 21:46:59 2010 +0000
@@ -1323,10 +1323,10 @@
         fi
         if test x$video_directfb = xyes; then
             # SuSE 11.1 installs directfb-config without directfb-devel
-            save_CFLAGS="$CFLAGS"
-            CFLAGS="$CFLAGS $DIRECTFB_CFLAGS"
+            save_CPPFLAGS="$CPPFLAGS"
+            CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
             AC_CHECK_HEADER(directfb.h, have_directfb_hdr=yes, have_directfb_hdr=no)
-            CFLAGS="$save_CFLAGS"
+            CPPFLAGS="$save_CPPFLAGS"
             video_directfb=$have_directfb_hdr
         fi
         AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support)