diff --git a/configure.in b/configure.in index 75f02f7b7de7c20cab5ad35e72637c3dbe69e2ca..d68c8aa841d9843e4c240226d069e4bad176c48b 100644 --- a/configure.in +++ b/configure.in @@ -1030,7 +1030,12 @@ dnl see the `changequote' comment above. ;; *-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