configure.in: Define _GNU_SOURCE only when using the GNU C Library.
* configure.in: Define _GNU_SOURCE only when using the GNU C Library. * configure: Regenerated. * config.in: Regenerated. From-SVN: r36485
This commit is contained in:
parent
b32aa13809
commit
4070d8853d
@ -1,3 +1,10 @@
|
|||||||
|
2000-09-18 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
* configure.in: Define _GNU_SOURCE only when using the GNU C
|
||||||
|
Library.
|
||||||
|
* configure: Regenerated.
|
||||||
|
* config.in: Regenerated.
|
||||||
|
|
||||||
2000-09-17 Mark Mitchell <mark@codesourcery.com>
|
2000-09-17 Mark Mitchell <mark@codesourcery.com>
|
||||||
|
|
||||||
* cppinit.c (cpp_init): Don't use ANSI prototypes.
|
* cppinit.c (cpp_init): Don't use ANSI prototypes.
|
||||||
|
@ -328,6 +328,9 @@
|
|||||||
character sets for source code. */
|
character sets for source code. */
|
||||||
#undef MULTIBYTE_CHARS
|
#undef MULTIBYTE_CHARS
|
||||||
|
|
||||||
|
/* Always define this when using the GNU C Library */
|
||||||
|
#undef _GNU_SOURCE
|
||||||
|
|
||||||
/* Always define this */
|
/* Always define this */
|
||||||
#undef _GNU_SOURCE
|
#undef _GNU_SOURCE
|
||||||
|
|
||||||
|
440
gcc/configure
vendored
440
gcc/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -395,8 +395,19 @@ else
|
|||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Define _GNU_SOURCE, since this is a GNU program.
|
AC_MSG_CHECKING(for GNU C library)
|
||||||
AC_DEFINE(_GNU_SOURCE, 1, [Always define this])
|
AC_CACHE_VAL(gcc_cv_glibc,
|
||||||
|
[AC_TRY_COMPILE(
|
||||||
|
[#include <features.h>],[
|
||||||
|
#if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
|
||||||
|
#error Not a GNU C library system
|
||||||
|
#endif],
|
||||||
|
[gcc_cv_glibc=yes],
|
||||||
|
gcc_cv_glibc=no)])
|
||||||
|
AC_MSG_RESULT($gcc_cv_glibc)
|
||||||
|
if test "gcc_cv_glibc" = "yes"; then
|
||||||
|
AC_DEFINE(_GNU_SOURCE, 1, [Always define this when using the GNU C Library])
|
||||||
|
fi
|
||||||
|
|
||||||
AC_C_INLINE
|
AC_C_INLINE
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user