View | Details | Raw Unified | Return to bug 14072 | Differences between
and this patch

Collapse All | Expand All

(-)bfd/configure.in (+8 lines)
Lines 117-122 Link Here
117
117
118
AC_CONFIG_HEADERS(config.h:config.in)
118
AC_CONFIG_HEADERS(config.h:config.in)
119
119
120
AH_VERBATIM([00_CONFIG_H_CHECK],
121
[/* Check that config.h is #included before system headers
122
 * (this works only for glibc, but that should be enough)
123
 */
124
#if defined(__GLIBC__)
125
#  error config.h must be #included before system headers
126
#endif])
127
120
if test -z "$target" ; then
128
if test -z "$target" ; then
121
    AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
129
    AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
122
fi
130
fi
(-)bfd/bfd-in.h (+4 lines)
Lines 25-30 Link Here
25
#ifndef __BFD_H_SEEN__
25
#ifndef __BFD_H_SEEN__
26
#define __BFD_H_SEEN__
26
#define __BFD_H_SEEN__
27
27
28
#ifndef PACKAGE
29
#error config.h must be included before this header
30
#endif
31
28
#ifdef __cplusplus
32
#ifdef __cplusplus
29
extern "C" {
33
extern "C" {
30
#endif
34
#endif
(-)bfd/sysdep.h (+4 lines)
Lines 23-28 Link Here
23
#ifndef BFD_SYSDEP_H
23
#ifndef BFD_SYSDEP_H
24
#define BFD_SYSDEP_H
24
#define BFD_SYSDEP_H
25
25
26
#ifdef PACKAGE
27
#error sysdep.h must be included in lieu of config.h
28
#endif
29
26
#include "config.h"
30
#include "config.h"
27
31
28
#include "ansidecl.h"
32
#include "ansidecl.h"
(-)binutils/configure.in (+8 lines)
Lines 44-49 Link Here
44
44
45
AC_CONFIG_HEADERS(config.h:config.in)
45
AC_CONFIG_HEADERS(config.h:config.in)
46
46
47
AH_VERBATIM([00_CONFIG_H_CHECK],
48
[/* Check that config.h is #included before system headers
49
 * (this works only for glibc, but that should be enough)
50
 */
51
#if defined(__GLIBC__)
52
#  error config.h must be #included before system headers
53
#endif])
54
47
if test -z "$target" ; then
55
if test -z "$target" ; then
48
    AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
56
    AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
49
fi
57
fi
(-)gas/configure.in (+8 lines)
Lines 58-63 Link Here
58
# Generate a header file
58
# Generate a header file
59
AC_CONFIG_HEADERS(config.h:config.in)
59
AC_CONFIG_HEADERS(config.h:config.in)
60
60
61
AH_VERBATIM([00_CONFIG_H_CHECK],
62
[/* Check that config.h is #included before system headers
63
 * (this works only for glibc, but that should be enough)
64
 */
65
#if defined(__GLIBC__)
66
#  error config.h must be #included before system headers
67
#endif])
68
61
# If we are on a DOS filesystem, we must use gdb.ini rather than
69
# If we are on a DOS filesystem, we must use gdb.ini rather than
62
# .gdbinit.
70
# .gdbinit.
63
case "${host}" in
71
case "${host}" in
(-)ld/configure.in (+8 lines)
Lines 124-129 Link Here
124
124
125
AC_CONFIG_HEADERS([config.h:config.in])
125
AC_CONFIG_HEADERS([config.h:config.in])
126
126
127
AH_VERBATIM([00_CONFIG_H_CHECK],
128
[/* Check that config.h is #included before system headers
129
 * (this works only for glibc, but that should be enough)
130
 */
131
#if defined(__GLIBC__)
132
#  error config.h must be #included before system headers
133
#endif])
134
127
if test -z "$target" ; then
135
if test -z "$target" ; then
128
    AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
136
    AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
129
fi
137
fi
(-)ld/sysdep.h (+4 lines)
Lines 22-27 Link Here
22
#ifndef LD_SYSDEP_H
22
#ifndef LD_SYSDEP_H
23
#define LD_SYSDEP_H
23
#define LD_SYSDEP_H
24
24
25
#ifdef PACKAGE
26
#error sysdep.h must be included in lieu of config.h
27
#endif
28
25
#include "config.h"
29
#include "config.h"
26
30
27
#include <stdio.h>
31
#include <stdio.h>
(-)opcodes/configure.in (+8 lines)
Lines 45-50 Link Here
45
45
46
AC_CONFIG_HEADERS(config.h:config.in)
46
AC_CONFIG_HEADERS(config.h:config.in)
47
47
48
AH_VERBATIM([00_CONFIG_H_CHECK],
49
[/* Check that config.h is #included before system headers
50
 * (this works only for glibc, but that should be enough)
51
 */
52
#if defined(__GLIBC__)
53
#  error config.h must be #included before system headers
54
#endif])
55
48
if test -z "$target" ; then
56
if test -z "$target" ; then
49
    AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
57
    AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
50
fi
58
fi
(-)opcodes/sysdep.h (+4 lines)
Lines 27-32 Link Here
27
   trying to replace often did that.  If it can be dropped from this
27
   trying to replace often did that.  If it can be dropped from this
28
   file (check in a non-ANSI environment!), it should be.  */
28
   file (check in a non-ANSI environment!), it should be.  */
29
29
30
#ifdef PACKAGE
31
#error sysdep.h must be included in lieu of config.h
32
#endif
33
30
#include "config.h"
34
#include "config.h"
31
35
32
#include "ansidecl.h"
36
#include "ansidecl.h"
(-)gold/configure.ac (+8 lines)
Lines 11-16 Link Here
11
11
12
AM_CONFIG_HEADER(config.h:config.in)
12
AM_CONFIG_HEADER(config.h:config.in)
13
13
14
AH_VERBATIM([00_CONFIG_H_CHECK],
15
[/* Check that config.h is #included before system headers
16
 * (this works only for glibc, but that should be enough)
17
 */
18
#if defined(__GLIBC__)
19
#  error config.h must be #included before system headers
20
#endif])
21
14
AC_ARG_WITH(sysroot,
22
AC_ARG_WITH(sysroot,
15
[  --with-sysroot[=DIR]    search for usr/lib et al within DIR],
23
[  --with-sysroot[=DIR]    search for usr/lib et al within DIR],
16
[sysroot=$withval], [sysroot=no])
24
[sysroot=$withval], [sysroot=no])
(-)libiberty/configure.ac (+8 lines)
Lines 163-168 Link Here
163
dnl AM_CONFIG_HEADER(config.h:config.in)
163
dnl AM_CONFIG_HEADER(config.h:config.in)
164
AC_CONFIG_HEADER(config.h:config.in)
164
AC_CONFIG_HEADER(config.h:config.in)
165
165
166
AH_VERBATIM([00_CONFIG_H_CHECK],
167
[/* Check that config.h is #included before system headers
168
 * (this works only for glibc, but that should be enough)
169
 */
170
#if defined(__GLIBC__)
171
#  error config.h must be #included before system headers
172
#endif])
173
166
dnl When we start using automake:
174
dnl When we start using automake:
167
dnl AM_MAINTAINER_MODE
175
dnl AM_MAINTAINER_MODE
168
dnl AC_EXEEXT
176
dnl AC_EXEEXT

Return to bug 14072