ICU-22010 Add early check for AX_CHECK_COMPILE_FLAG

This helps to avoid missleading error message:

```
./source/configure: line 7981: syntax error near unexpected token 'newline'
./source/configure: line 7981: 'AX_CHECK_COMPILE_FLAG('
```
This commit is contained in:
Daniel Schürmann 2022-05-02 20:58:19 +02:00 committed by rp9-next
parent e2ae4f5324
commit 9f358ccb24

View file

@ -199,6 +199,8 @@ fi
#AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true)
#AC_CHECK_PROG(STRIP, strip, strip, true)
m4_ifndef([AX_CHECK_COMPILE_FLAG], [AC_MSG_ERROR(['autoconf-archive' is missing])])
# TODO(ICU-20301): Remove fallback to Python 2.
AC_CHECK_PROGS(PYTHON, python3 "py -3" python "py")
AC_SUBST(PYTHON)