diff options
| author | Po Lu | 2023-09-30 19:39:54 +0800 |
|---|---|---|
| committer | Po Lu | 2023-09-30 19:39:54 +0800 |
| commit | 8db48d247b7fedab0aa1b2d8573ccc2b950ad545 (patch) | |
| tree | f9fe568f317ff2abd29b4d6175b43375a1ccf3e4 | |
| parent | ec6e7f7c013697dadfbf9bba51b97ef2405f3ba3 (diff) | |
| download | emacs-8db48d247b7fedab0aa1b2d8573ccc2b950ad545.tar.gz emacs-8db48d247b7fedab0aa1b2d8573ccc2b950ad545.zip | |
Eschew non-portable constructs in configure.ac
* configure.ac (gl_gcc_warnings): Delete `test -o' and simplify
long test condition correspondingly.
| -rw-r--r-- | configure.ac | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index e406863178d..895d25a7f13 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -1664,13 +1664,13 @@ AC_ARG_ENABLE([gcc-warnings], | |||
| 1664 | # however, if there is also a .tarball-version file it is probably | 1664 | # however, if there is also a .tarball-version file it is probably |
| 1665 | # just a release imported into Git for patch management. | 1665 | # just a release imported into Git for patch management. |
| 1666 | gl_gcc_warnings=no | 1666 | gl_gcc_warnings=no |
| 1667 | if test -d "$srcdir"/.git -o -f "$srcdir"/.git && test ! -f "$srcdir"/.tarball-version; then | 1667 | AS_IF([test -d "$srcdir"/.git || test -f "$srcdir"/.git], |
| 1668 | # Clang typically identifies itself as GCC 4.2 or something similar | 1668 | [AS_IF([test -f "$srcdir"/.tarball-version], [], |
| 1669 | # even if it is recent enough to accept the warnings we enable. | 1669 | # Clang typically identifies itself as GCC 4.2 or something similar |
| 1670 | AS_IF([test "$emacs_cv_clang" = yes], | 1670 | # even if it is recent enough to accept the warnings we enable. |
| 1671 | [gl_gcc_warnings=warn-only], | 1671 | [AS_IF([test "$emacs_cv_clang" = yes], |
| 1672 | [gl_GCC_VERSION_IFELSE([5], [3], [gl_gcc_warnings=warn-only])]) | 1672 | [gl_gcc_warnings=warn-only], |
| 1673 | fi]) | 1673 | [gl_GCC_VERSION_IFELSE([5], [3], [gl_gcc_warnings=warn-only])])])])]) |
| 1674 | 1674 | ||
| 1675 | NATIVE_COMPILATION_AOT=no | 1675 | NATIVE_COMPILATION_AOT=no |
| 1676 | AC_ARG_WITH([native-compilation], | 1676 | AC_ARG_WITH([native-compilation], |