Splint won't build "out of the box" with the Sun Forte C
compiler on Solaris 8 because GCC_INCLUDE_DIR isn't set in config.h
and is needed in src/cpplib.c. How about the attached patch?

albert chin ([EMAIL PROTECTED])

-- snip snip
--- configure.ac.orig   Fri Feb 22 21:18:39 2002
+++ configure.ac        Fri Feb 22 21:19:16 2002
@@ -119,7 +119,7 @@
 # cpplib.h defines 2 include dirs; one is $includedir, the other is gcc's
 # include dir.  Not the most portable setup, but let's do our best.
-if test x$ac_cv_c_compiler_gnu = xyes; then
+if test x$GCC = xyes; then
   dnl Make sure to override NLS; this assumes gcc prints only
   dnl   Reading specs from blah
   dnl   gcc version blah
@@ -130,6 +130,9 @@
 # was /usr/lib/gcc-lib/i386-linux/
 #  GCC_INCLUDE_DIR=`LANGUAGE= LANG= $CC -v 2>&1 | sed -n -e '/^gcc/ d' -e 's/.* 
+                     [system include directory])
                      [system include directory])
 AC_DEFINE_UNQUOTED(GCC_INCLUDE_DIR2, "$myprefix/include",

Reply via email to