# HG changeset patch # User Glenn Morris # Date 1175655170 0 # Node ID 45511805378a405c2accbd16f141b554571fc2c6 # Parent b5dbe25c1d72f74a128e555d98b0f4d2ef24966b (NON_GNU_CPP): Use associated preprocessor when compiling with Sun Studio on Solaris. diff -r b5dbe25c1d72 -r 45511805378a configure.in --- a/configure.in Wed Apr 04 00:44:49 2007 +0000 +++ b/configure.in Wed Apr 04 02:52:50 2007 +0000 @@ -1030,7 +1030,12 @@ ;; *-sunos5* | *-solaris* ) opsys=sol2-6 - NON_GNU_CPP=/usr/ccs/lib/cpp + if [ "x$CC" = x/opt/SUNWspro/bin/cc ]; then + ## -Xs prevents spurious whitespace. + NON_GNU_CPP="/opt/SUNWspro/bin/cc -E -Xs" + else + NON_GNU_CPP=/usr/ccs/lib/cpp + fi ;; * ) opsys=bsd4-2 ;; esac