Skip to content

Commit

Permalink
2007-11-07 Thomas Schwinge <tschwinge@gnu.org>
Browse files Browse the repository at this point in the history
	* config.make.in (gnu89-inline-CFLAGS): New variable.
	* Makeconf (CFLAGS): Evaluate that one instead of hard-coding.
	Suggested by Olaf Buddenhagen,
	<http://lists.gnu.org/archive/html/bug-hurd/2007-11/msg00006.html>
	* configure.in (libc_cv_gnu89_inline): Fill depending on a compile-time
	test, as per glibc HEAD, 2007-11-07.
  • Loading branch information
tschwinge committed Nov 7, 2007
1 parent c1b43b0 commit f30c5fc
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
@@ -1,3 +1,12 @@
2007-11-07 Thomas Schwinge <tschwinge@gnu.org>

* config.make.in (gnu89-inline-CFLAGS): New variable.
* Makeconf (CFLAGS): Evaluate that one instead of hard-coding.
Suggested by Olaf Buddenhagen,
<http://lists.gnu.org/archive/html/bug-hurd/2007-11/msg00006.html>
* configure.in (libc_cv_gnu89_inline): Fill depending on a compile-time
test, as per glibc HEAD, 2007-11-07.

2007-10-07 Thomas Schwinge <tschwinge@gnu.org>

* Makeconf (CFLAGS): Add ``-fgnu89-inline''.
Expand Down
2 changes: 1 addition & 1 deletion Makeconf
Expand Up @@ -65,7 +65,7 @@ INCLUDES += -I$(..)include -I$(top_srcdir)/include
CPPFLAGS += $(INCLUDES) \
-D_GNU_SOURCE -D_IO_MTSAFE_IO -D_FILE_OFFSET_BITS=64 \
$($*-CPPFLAGS)
CFLAGS += -std=gnu99 -fgnu89-inline -Wall -g -O3 \
CFLAGS += -std=gnu99 $(gnu89-inline-CFLAGS) -Wall -g -O3 \
$($*-CFLAGS)

# Include the configure-generated file of parameters.
Expand Down
2 changes: 2 additions & 0 deletions config.make.in
Expand Up @@ -51,6 +51,8 @@ CPPFLAGS += @CPPFLAGS@ @DEFS@
CFLAGS += @CFLAGS@
LDFLAGS += @LDFLAGS@

gnu89-inline-CFLAGS = @libc_cv_gnu89_inline@

# `yes' or `no' to indicate if ld --version-script is available.
VERSIONING = @VERSIONING@

Expand Down
29 changes: 28 additions & 1 deletion configure.in
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
AC_REVISION([$Id: configure.in,v 1.36 2005/04/07 20:48:40 ams Exp $])
AC_REVISION([$Id: configure.in,v 1.37 2007/11/07 13:07:52 tschwinge Exp $])
AC_PREREQ(2.54) dnl Minimum Autoconf version required.
AC_INIT
AC_CONFIG_SRCDIR([hurd/hurd_types.h]) dnl File to look for in srcdir.
Expand Down Expand Up @@ -156,6 +156,33 @@ AC_SUBST(VERSIONING)
# Check if libc contains getgrouplist and/or uselocale.
AC_CHECK_FUNCS(getgrouplist uselocale)


# From glibc HEAD, 2007-11-07.
AC_CACHE_CHECK(for -fgnu89-inline, libc_cv_gnu89_inline, [dnl
cat > conftest.c <<EOF
int foo;
#ifdef __GNUC_GNU_INLINE__
main () { return 0;}
#else
#error
#endif
EOF
if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
-o conftest.s conftest.c 1>&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
AC_SUBST(libc_cv_gnu89_inline)


AC_ARG_WITH(parted, dnl
[ --without-parted don't try to use GNU Parted libraries],
, with_parted=yes)
Expand Down

0 comments on commit f30c5fc

Please sign in to comment.