Splint 3.0.1.6 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/2.7.2.1/include
 #  GCC_INCLUDE_DIR=`LANGUAGE= LANG= $CC -v 2>&1 | sed -n -e '/^gcc/ d' -e 's/.* 
\(.*\)specs/\1include/p'`
   AC_DEFINE_UNQUOTED(GCC_INCLUDE_DIR, "$GCC_INCLUDE_DIR",
+                     [system include directory])
+else
+  AC_DEFINE_UNQUOTED(GCC_INCLUDE_DIR, "/usr/include",
                      [system include directory])
 fi
 AC_DEFINE_UNQUOTED(GCC_INCLUDE_DIR2, "$myprefix/include",

Reply via email to