From: Glenn Morris Date: Wed, 4 Apr 2007 02:52:50 +0000 (+0000) Subject: (NON_GNU_CPP): Use associated preprocessor when compiling with Sun X-Git-Tag: emacs-pretest-22.0.98~321 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7318db6b80eebdf1878ead5d9bea2e6c9c7105a5;p=emacs.git (NON_GNU_CPP): Use associated preprocessor when compiling with Sun Studio on Solaris. --- diff --git a/configure.in b/configure.in index 75f02f7b7de..d68c8aa841d 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