summaryrefslogtreecommitdiff
path: root/source4/include
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-13 09:23:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:31 -0500
commita57133c56e9ba5553b6183691e8087a03adb461a (patch)
tree9a37960ca5fe3ede794b3f650af97991455a8765 /source4/include
parente18547d489075d46d865ac50d0b5acd760d74709 (diff)
downloadsamba-a57133c56e9ba5553b6183691e8087a03adb461a.tar.gz
samba-a57133c56e9ba5553b6183691e8087a03adb461a.tar.bz2
samba-a57133c56e9ba5553b6183691e8087a03adb461a.zip
r18447: make sure we bail out if the config.h is not generated
by samba's configure. this could happen when you have done a standalone build in lib/replace/, lib/talloc, ... metze (This used to be commit d8e88386748d3952c6a82726c9d36cad870992fd)
Diffstat (limited to 'source4/include')
-rw-r--r--source4/include/includes.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/include/includes.h b/source4/include/includes.h
index dc7db5d3bb..5850103145 100644
--- a/source4/include/includes.h
+++ b/source4/include/includes.h
@@ -23,8 +23,15 @@
#ifndef NO_CONFIG_H /* for some tests */
#include "lib/replace/replace.h"
+
+/* make sure we have included the correct config.h */
+#ifndef CONFIG_H_IS_FROM_SAMBA
+#warn "make sure you have removed all config.h files from standalone builds!"
+#error "the included config.h isn't from samba!"
#endif
+#endif /* NO_CONFIG_H */
+
#include "local.h"
#ifdef __GNUC__