From: Martin Mares Date: Mon, 1 Mar 1999 20:15:14 +0000 (+0000) Subject: Include "config.h" instead of "autoconf.h" in all Modules lists to make defines X-Git-Tag: v1.2.0~1693 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea3582a6f66223dfd2c0dd6c597dc40b48033fd5;p=thirdparty%2Fbird.git Include "config.h" instead of "autoconf.h" in all Modules lists to make defines in the static portion of configuration includes available as well. --- diff --git a/sysdep/config.h b/sysdep/config.h index 6d8d17225..6b2f94abe 100644 --- a/sysdep/config.h +++ b/sysdep/config.h @@ -12,6 +12,8 @@ /* Include OS configuration file as chosen in autoconf.h */ #include SYSCONF_INCLUDE +#ifndef MACROS_ONLY + /* Types */ typedef signed INTEGER_8 s8; typedef unsigned INTEGER_8 u8; @@ -22,6 +24,8 @@ typedef unsigned INTEGER_32 u32; typedef u8 byte; typedef u16 word; +#endif + /* * Required alignment for multi-byte accesses. We currently don't * test these values in configure script, because several CPU's diff --git a/tools/mergedirs b/tools/mergedirs index 4196831b8..e50d02ba8 100755 --- a/tools/mergedirs +++ b/tools/mergedirs @@ -20,8 +20,8 @@ shift echo "Merging system-dependent modules ($@)" MODULES=`for a in $@ ; do - cat sysdep/autoconf.h $SRCDIR/$a/Modules | - $cpp -U unix - | + cat sysdep/config.h $SRCDIR/$a/Modules | + $cpp -U unix -D MACROS_ONLY - | sed "/^[ ]*\$/d;/^#/d;s@\\(.*\\)@\\1 $a/\\1@" done | sort +0 -1 -u |