build: Guard the inclusions of config.h with HAVE_CONFIG_H

autoconf can be configured to not generate a config.h but to give the
defines with command line arguments instead. In this case, there's no
config.h to include.

To work in both cases autoconf adds a HAVE_CONFIG_H define on the command
line to signal there's a config.h to include.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
Damien Lespiau 2013-02-20 14:40:07 +00:00
parent aa2bd8a692
commit 7ee278f176
5 changed files with 10 additions and 0 deletions

View File

@ -26,7 +26,9 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <unistd.h>
#include <stdlib.h>

View File

@ -26,7 +26,9 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <unistd.h>
#include <stdlib.h>

View File

@ -21,7 +21,9 @@
* IN THE SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <assert.h>
#include <cairo.h>

View File

@ -45,7 +45,9 @@
* - DP commands (e.g. poweroff)
* - verify outputs against VBT/physical connectors
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <assert.h>
#include <cairo.h>

View File

@ -27,7 +27,9 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <unistd.h>
#include <stdlib.h>