emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] OS X: make configure work better out of the box with FSF GCC


From: Glenn Morris
Subject: Re: [PATCH] OS X: make configure work better out of the box with FSF GCC
Date: Mon, 28 Feb 2011 14:56:59 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Daniel Colascione wrote:

> I didn't include the corresponding configure changes; I figure I can let
> whoever installs this patch regenerate the script.

Could you explain what problem this change is supposed to fix?

> +    case "$(which "${CC-cc}")" in
> +      /usr/bin/* | /usr/lib/* )
> +        CPP="${CC-cc} -E -no-cpp-precomp"
> +        ;;
> +      * )
> +        # The below macro prevents the Carbon headers from defining
> +        # nonstandard constructs not understood by FSF GCC.
> +        CPPFLAGS="$CPPFLAGS -D__INTEL_COMPILER=1"
> +        CPP="${CC-cc} -E -D__INTEL_COMPILER=1"

"FSF GCC" seems tautological at best.

It seems fragile to test the location of the compiler. Why not test for
the actual compiler version?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]