diff options
| author | Paul Eggert | 2012-07-06 14:29:50 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-07-06 14:29:50 -0700 |
| commit | f5c08e17670cfda756af96c569efa48324b43908 (patch) | |
| tree | 3bc1549e247c201841b114e6aab640ba402bd64a | |
| parent | fee5959dd8b389bc222618a35b042a92a1358c21 (diff) | |
| download | emacs-f5c08e17670cfda756af96c569efa48324b43908.tar.gz emacs-f5c08e17670cfda756af96c569efa48324b43908.zip | |
* configure.in: Document --enable-gcc-warnings better.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | configure.in | 6 |
2 files changed, 7 insertions, 2 deletions
| @@ -1,10 +1,13 @@ | |||
| 1 | 2012-07-06 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2012-07-06 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * configure.in: Document --enable-gcc-warnings better. | ||
| 4 | |||
| 3 | Use c_strcasecmp for ASCII case-insensitive comparison (Bug#11786). | 5 | Use c_strcasecmp for ASCII case-insensitive comparison (Bug#11786). |
| 4 | This is safer than strcasecmp, which has unspecified behavior | 6 | This is safer than strcasecmp, which has unspecified behavior |
| 5 | outside the POSIX locale and in practice sometimes does not work | 7 | outside the POSIX locale and in practice sometimes does not work |
| 6 | in multibyte locales. Similarly for c_strncasecmp and strncasecmp. | 8 | in multibyte locales. Similarly for c_strncasecmp and strncasecmp. |
| 7 | * configure.in (strcasecmp, strncasecmp): Remove checks. | 9 | * configure.in (strcasecmp, strncasecmp): Remove checks. |
| 10 | |||
| 8 | * lib/c-ctype.c, lib/c-ctype.h, lib/c-strcase.h, lib/c-strcasecmp.c: | 11 | * lib/c-ctype.c, lib/c-ctype.h, lib/c-strcase.h, lib/c-strcasecmp.c: |
| 9 | * lib/c-strncasecmp.c: New files, taken from gnulib. | 12 | * lib/c-strncasecmp.c: New files, taken from gnulib. |
| 10 | * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. | 13 | * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. |
diff --git a/configure.in b/configure.in index 1a43aed7540..09551ae58e9 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -575,7 +575,9 @@ gl_EARLY | |||
| 575 | 575 | ||
| 576 | AC_ARG_ENABLE([gcc-warnings], | 576 | AC_ARG_ENABLE([gcc-warnings], |
| 577 | [AS_HELP_STRING([--enable-gcc-warnings], | 577 | [AS_HELP_STRING([--enable-gcc-warnings], |
| 578 | [turn on lots of GCC warnings (for developers)])], | 578 | [turn on lots of GCC warnings. This is intended for |
| 579 | developers, and may generate false alarms when used | ||
| 580 | with older or non-GNU development tools.])], | ||
| 579 | [case $enableval in | 581 | [case $enableval in |
| 580 | yes|no) ;; | 582 | yes|no) ;; |
| 581 | *) AC_MSG_ERROR([bad value $enableval for gcc-warnings option]) ;; | 583 | *) AC_MSG_ERROR([bad value $enableval for gcc-warnings option]) ;; |
| @@ -597,7 +599,7 @@ if test "${enableval}" != "no"; then | |||
| 597 | LTO="-flto=$CPUS" | 599 | LTO="-flto=$CPUS" |
| 598 | else | 600 | else |
| 599 | LTO="-flto" | 601 | LTO="-flto" |
| 600 | fi | 602 | fi |
| 601 | old_CFLAGS=$CFLAGS | 603 | old_CFLAGS=$CFLAGS |
| 602 | CFLAGS="$CFLAGS $LTO" | 604 | CFLAGS="$CFLAGS $LTO" |
| 603 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], | 605 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], |