From 674213673ce78e3406cae1219f52c5863c883031 Mon Sep 17 00:00:00 2001 From: David MacKenzie Date: Mon, 17 Oct 1994 22:27:03 +0000 Subject: [PATCH] (AC_PROG_CPP): Use assert.h (comes with gcc), not stdio.h (loses for new cross-compilers). From Roland McGrath. --- acspecific.m4 | 6 ++++-- lib/autoconf/specific.m4 | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/acspecific.m4 b/acspecific.m4 index d08d049e5..a61678ce8 100644 --- a/acspecific.m4 +++ b/acspecific.m4 @@ -244,10 +244,12 @@ AC_CACHE_VAL(ac_cv_prog_CPP, CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. - AC_TRY_CPP([#include +dnl Use a header file that comes with gcc, so configuring glibc +dnl with a fresh cross-compiler works. + AC_TRY_CPP([#include Syntax Error], , CPP="${CC-cc} -E -traditional-cpp" - AC_TRY_CPP([#include + AC_TRY_CPP([#include Syntax Error], , CPP=/lib/cpp)) ac_cv_prog_CPP="$CPP"])dnl fi diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4 index d08d049e5..a61678ce8 100644 --- a/lib/autoconf/specific.m4 +++ b/lib/autoconf/specific.m4 @@ -244,10 +244,12 @@ AC_CACHE_VAL(ac_cv_prog_CPP, CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. - AC_TRY_CPP([#include +dnl Use a header file that comes with gcc, so configuring glibc +dnl with a fresh cross-compiler works. + AC_TRY_CPP([#include Syntax Error], , CPP="${CC-cc} -E -traditional-cpp" - AC_TRY_CPP([#include + AC_TRY_CPP([#include Syntax Error], , CPP=/lib/cpp)) ac_cv_prog_CPP="$CPP"])dnl fi -- 2.47.3