refactor: change autoconf script to be more verbose
This commit is contained in:
parent
f07020875d
commit
ae93ed6b7e
2 changed files with 199 additions and 154 deletions
26
configure.ac
26
configure.ac
|
|
@ -1,10 +1,21 @@
|
|||
|
||||
AC_INIT
|
||||
|
||||
AC_CHECK_PROGS([MAKE], [make])
|
||||
AC_CHECK_PROGS([PYTHON3], [npm])
|
||||
AC_CHECK_PROGS([AUTOCONF], [autoconf])
|
||||
AC_CHECK_PROGS([GIT], [git])
|
||||
AC_CHECK_PROGS([GIT], [git], [no])
|
||||
AS_IF([test "$GIT" == "no"],
|
||||
[AC_MSG_ERROR([install Git, before continuing.])])
|
||||
|
||||
AC_CHECK_PROGS([NODE], [node], [no])
|
||||
AS_IF([test "$NODE" == "no"],
|
||||
[AC_MSG_ERROR([install Node.js (node), before continuing.])])
|
||||
|
||||
AC_CHECK_PROGS([NPM], [npm], [no])
|
||||
AS_IF([test "$NPM" == "no"],
|
||||
[AC_MSG_ERROR([install npm, before continuing.])])
|
||||
|
||||
AC_CHECK_PROGS([MAKE], [make], [no])
|
||||
AS_IF([test "$NPM" == "no"],
|
||||
[AC_MSG_ERROR([install GNU Make (make), before continuing.])])
|
||||
|
||||
AC_MSG_CHECKING([if 'NPM_REGISTRY' is set])
|
||||
if ! test -z "$NPM_REGISTRY"; then
|
||||
|
|
@ -20,7 +31,12 @@ else
|
|||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
|
||||
AC_MSG_NOTICE([initializing npm...])
|
||||
AC_MSG_NOTICE([showing version info...])
|
||||
sh -cx "npm --version"
|
||||
sh -cx "node --version"
|
||||
sh -cx "git --version"
|
||||
|
||||
AC_MSG_NOTICE([initializing npm project...])
|
||||
npm install
|
||||
|
||||
AC_OUTPUT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue