ICU-22010 Add early check for AX_CHECK_COMPILE_FLAG
authorDaniel Schürmann <daschuer@mixxx.org>
Mon, 2 May 2022 18:58:19 +0000 (20:58 +0200)
committerrp9-next <103115900+rp9-next@users.noreply.github.com>
Tue, 12 Jul 2022 08:00:01 +0000 (13:30 +0530)
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('
```

icu4c/source/configure.ac

index ba97cbc286aa439b2bf398572507c13898e9e23d..6a4031284a4e4d5387e2caac8f597c4bcb5bc54d 100644 (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)