summaryrefslogtreecommitdiff
path: root/binutils/configure.in
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2012-11-05 12:26:11 +0000
committerAlan Modra <amodra@bigpond.net.au>2012-11-05 12:26:11 +0000
commit47dbf5b634b955c2db1221715d15751e1281546a (patch)
tree8f2335f2311b768e04443e4293a7f4247383fe8b /binutils/configure.in
parent99a64a087ce6200b218937dfa1407c5c16becf4f (diff)
downloadbinutils-redhat-47dbf5b634b955c2db1221715d15751e1281546a.tar.gz
* configure.in: Apply 2012-09-10 change to config.in here. Add
__CONFIG_H__ check. * config.in: Regenerate.
Diffstat (limited to 'binutils/configure.in')
-rw-r--r--binutils/configure.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/binutils/configure.in b/binutils/configure.in
index e9852de44f..b4e493ecb2 100644
--- a/binutils/configure.in
+++ b/binutils/configure.in
@@ -47,9 +47,10 @@ AC_CONFIG_HEADERS(config.h:config.in)
AH_VERBATIM([00_CONFIG_H_CHECK],
[/* Check that config.h is #included before system headers
(this works only for glibc, but that should be enough). */
-#if defined(__GLIBC__)
+#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
# error config.h must be #included before system headers
-#endif])
+#endif
+#define __CONFIG_H__ 1])
if test -z "$target" ; then
AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)