diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-09-15 07:18:55 +0300 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-09-15 17:08:20 +0300 |
commit | 63c1f29a1d652aa5ace2bf2531d9e2fe35edf21d (patch) | |
tree | 8442969ab9cea6d66579b1640c910e615673c386 /libgloss/csky | |
parent | 34b14470406cb9551f98707bf63175811a506523 (diff) |
libgloss: fix AC_LANG_SOURCE warnings w/newer autoconf
When running autoconf-2.69 in here, we get:
configure.ac:57: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2503: _AC_PREPROC_IFELSE is expanded from...
../../lib/autoconf/general.m4:2518: AC_PREPROC_IFELSE is expanded from...
configure.ac:57: the top level
configure.ac:61: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2503: _AC_PREPROC_IFELSE is expanded from...
../../lib/autoconf/general.m4:2518: AC_PREPROC_IFELSE is expanded from...
configure.ac:61: the top level
Add AC_LANG_PROGRAM wrappings to fix these.
Diffstat (limited to 'libgloss/csky')
-rw-r--r-- | libgloss/csky/configure.ac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libgloss/csky/configure.ac b/libgloss/csky/configure.ac index e24bd7d13..4b0baaeee 100644 --- a/libgloss/csky/configure.ac +++ b/libgloss/csky/configure.ac @@ -54,13 +54,13 @@ dnl an executable or not. dnl saved_LDFLAGS="$LDFLAGS" LDFLAGS="-nostdlib -e main" -AC_PREPROC_IFELSE([#ifndef __mcoldfire__ +AC_PREPROC_IFELSE([AC_LANG_PROGRAM([#ifndef __mcoldfire__ #error we are not coldfire - #endif], + #endif])], DO="cf",) -AC_PREPROC_IFELSE([#ifndef __mfido__ +AC_PREPROC_IFELSE([AC_LANG_PROGRAM([#ifndef __mfido__ #error we are not fido - #endif], + #endif])], DO="fido",) LDFLAGS=$saved_LDFLAGS AC_MSG_RESULT($DO) |