From 82cb53d3361fc4131356a8f9b804bab1c6b0a475 Mon Sep 17 00:00:00 2001 From: tschwinge Date: Fri, 30 May 2008 10:37:56 +0000 Subject: 2008-05-30 Thomas Schwinge * configure.in (libc_cv_gnu89_inline): Fill depending on a compile-time test, as per glibc HEAD, 2007-11-07. (USER_CFLAGS, KERNEL_CFLAGS, CHECK_CFLAGS): Use it. --- ChangeLog | 6 ++++++ configure.ac | 34 +++++++++++++++++++++++++++++++--- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index fd4ca7e..a9dcac1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-30 Thomas Schwinge + + * configure.in (libc_cv_gnu89_inline): Fill depending on a compile-time + test, as per glibc HEAD, 2007-11-07. + (USER_CFLAGS, KERNEL_CFLAGS, CHECK_CFLAGS): Use it. + 2008-05-29 Thomas Schwinge * configure.ac: Include `newlib/headers.m4' and diff --git a/configure.ac b/configure.ac index eeebcfb..ea47052 100644 --- a/configure.ac +++ b/configure.ac @@ -68,6 +68,34 @@ if test "x$INKSCAPE" = xno; then fi fi + +# Check for program specialities. + +# From glibc HEAD, 2007-11-07. +AC_CACHE_CHECK(for -fgnu89-inline, libc_cv_gnu89_inline, [dnl +cat > conftest.c <&AS_MESSAGE_LOG_FD]) +then + libc_cv_gnu89_inline=yes +else + libc_cv_gnu89_inline=no +fi +rm -f conftest*]) +if test $libc_cv_gnu89_inline = yes; then + libc_cv_gnu89_inline=-fgnu89-inline +else + libc_cv_gnu89_inline= +fi + + # Set up the host information. AC_CANONICAL_HOST @@ -199,13 +227,13 @@ USER_CPPFLAGS=" \ -D_GNU_SOURCE \ -I${LIBC}/include \ -I${ABS_SRCDIR}/libc-parts" -USER_CFLAGS="-std=gnu99 -Wall -g -O2 -fno-stack-protector" +USER_CFLAGS="-std=gnu99 -Wall -g -O2 -fno-stack-protector $libc_cv_gnu89_inline" USER_LDFLAGS="-u_start -e_start" KERNEL_CPPFLAGS="\ -D_GNU_SOURCE -DRM_INTERN \ -I${ABS_SRCDIR}/libc-parts" -KERNEL_CFLAGS="-std=gnu99 -Wall -g -O2 -fno-stack-protector" +KERNEL_CFLAGS="-std=gnu99 -Wall -g -O2 -fno-stack-protector $libc_cv_gnu89_inline" # It is debatable whether these should really contain the libc-parts' include # path. Currently this is needed, as tests make use of (a few) specific @@ -214,7 +242,7 @@ CHECK_CPPFLAGS="\ -D_GNU_SOURCE \ -D_ENABLE_TESTS \ -I${ABS_BUILDDIR}/sysroot/include -I${ABS_SRCDIR}/libc-parts" -CHECK_CFLAGS="-std=gnu99 -Wall -g -O2 -fno-stack-protector" +CHECK_CFLAGS="-std=gnu99 -Wall -g -O2 -fno-stack-protector $libc_cv_gnu89_inline" AC_SUBST(USER_CPPFLAGS) AC_SUBST(USER_CFLAGS) -- cgit v1.2.3