scons: Move fallback HAVE_* definitions to headers.
authorJose Fonseca <jfonseca@vmware.com>
Mon, 18 Apr 2016 10:41:11 +0000 (11:41 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Tue, 26 Apr 2016 16:17:00 +0000 (17:17 +0100)
commitc068610a7df370af94fd6177598a35c4425a75f9
treef18989aea81a9711687987a5aabaaf147194cc45
parent940da2ce0ec989c8c8f1df2ad26f4a95014f4d08
scons: Move fallback HAVE_* definitions to headers.

These were being defined in SCons, but it's not practical:

- we actually need to include Gallium headers from external source trees, with
completely disjoint build infrastructure, and it's unsustainable to
replicate the HAVE_xxx checks or even hard-coded defines across
everywhere.

- checking compiler version via command line doesn't really work due to
  Clang essentially being like a cameleon which can fake either GCC or
  MSVC

There's no change for autoconf.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
include/c99_compat.h
scons/gallium.py
src/util/macros.h