Mercurial > emacs
diff configure.in @ 76932:45511805378a
(NON_GNU_CPP): Use associated preprocessor when compiling with Sun
Studio on Solaris.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 04 Apr 2007 02:52:50 +0000 |
parents | 7efd8428be18 |
children | 972bc1b04abc dc002877ce12 4ef881a120fe |
line wrap: on
line diff
--- 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