Author: Bleep <tomh@inxpress.net>
[ircu2.10.12-pk.git] / config / Configure.in
index 32177070557531a8c9d70416db1603853abb75b0..ff9df950781ce131095ffa1c6399eae8419be273 100644 (file)
@@ -477,6 +477,11 @@ echo "#" >> $CONFIG
 echo "/*" > $CONFIG_H
 echo " * Automatically generated C config: don't edit" >> $CONFIG_H
 echo " */" >> $CONFIG_H
+echo "#ifndef INCLUDED_config_h" >> $CONFIG_H
+echo "#define INCLUDED_config_h" >> $CONFIG_H
+echo "#ifndef INCLUDED_setup_h" >> $CONFIG_H
+echo "#include \"setup.h\"">> $CONFIG_H
+echo "#endif" >> $CONFIG_H
 echo "#define AUTOCONF_INCLUDED" >> $CONFIG_H
 
 CONFIG_IN=./config-sh
@@ -510,6 +515,8 @@ fi
 
 . $CONFIG_IN
 
+echo "#endif /* INCLUDED_config_h */" >> $CONFIG_H
+
 mv $CONFIG_H config.h
 $RM -f .config.old
 if [ -f .config ]; then