mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
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)
This commit is contained in:
parent
e18547d489
commit
a57133c56e
@ -8,6 +8,7 @@ AC_INIT([samba],[],[samba-technical@samba.org])
|
||||
|
||||
AC_CONFIG_SRCDIR([include/includes.h])
|
||||
AC_CONFIG_HEADER(include/config_tmp.h)
|
||||
AC_DEFINE(CONFIG_H_IS_FROM_SAMBA,1,[Marker for samba's config.h])
|
||||
|
||||
# Configuration rules.
|
||||
m4_include(lib/replace/libreplace.m4)
|
||||
|
@ -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__
|
||||
|
Loading…
x
Reference in New Issue
Block a user