configure: Ensure that config.h can be safely included multiple times.
authorCarl Worth <cworth@cworth.org>
Thu, 17 Jun 2010 22:25:07 +0000 (15:25 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 23 Jun 2010 23:13:31 +0000 (16:13 -0700)
Use AH_TOP and AH_BOTTOM macros so that the standard include guard
mechanisms are emitted by autoheader into the generated config.h file.

configure.ac

index 74dd6618462e058be3cba6175fca2d8b06f1c49b..73ce67de3d19206aa4b0420b782ded648d29b055 100644 (file)
@@ -30,6 +30,10 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 # Checks for library functions.
 AC_HEADER_STDC
 
+AH_TOP([#ifndef GLSL_CONFIG_H
+#define GLSL_CONFIG_H])
+AH_BOTTOM([#endif /* GLSL_CONFIG_H */])
+
 PKG_CHECK_MODULES([talloc], [talloc >= 2.0])
 
 AC_ARG_ENABLE([debug],