diff configure.in @ 6:c390daa639ce

Improved FLTK library detection at configure time.
author jcid
date Fri, 12 Oct 2007 00:19:47 +0200
parents 6ee11bf9e3ea
children 6e6700dd252f
line wrap: on
line diff
--- a/configure.in	Thu Oct 11 22:15:17 2007 +0200
+++ b/configure.in	Fri Oct 12 00:19:47 2007 +0200
@@ -147,10 +147,12 @@
 if sh -c "fltk2-config --version" >/dev/null 2>&1
 then AC_MSG_RESULT(yes)
      LIBFLTK_CXXFLAGS=`fltk2-config --cxxflags`
+     LIBFLTK_CFLAGS=`fltk2-config --cflags`
      LIBFLTK_LIBS=`fltk2-config --use-images --ldflags`
 else if sh -c "fltk-config --version" >/dev/null 2>&1
      then AC_MSG_RESULT(yes)
           LIBFLTK_CXXFLAGS=`fltk-config --cxxflags`
+          LIBFLTK_CFLAGS=`fltk-config --cflags`
           LIBFLTK_LIBS=`fltk-config --ldflags`
      else AC_MSG_RESULT(no)
           AC_ERROR(FLTK2 must be installed!)
@@ -467,6 +469,7 @@
 AC_SUBST(LIBPTHREAD_LIBS)
 AC_SUBST(LIBPTHREAD_LDFLAGS)
 AC_SUBST(LIBFLTK_CXXFLAGS)
+AC_SUBST(LIBFLTK_CFLAGS)
 AC_SUBST(LIBFLTK_LIBS)
 AC_SUBST(datadir)
 AC_SUBST(src doc)