modified configure.ac to capture configure command and arguments

This commit is contained in:
2023-10-08 14:29:45 +09:00
parent ea73f9f8d2
commit aad90113f7
5 changed files with 36 additions and 2 deletions

View File

@ -842,6 +842,16 @@ dnl ==== subsititution of some key items ====
AC_SUBST(MOO_PROJECT_AUTHOR, "${PACKAGE_BUGREPORT}")
AC_SUBST(MOO_PROJECT_URL, "${PACKAGE_URL}")
dnl === configure arguments
if test `expr " [$]0" : " '.*"` = 0; then
moo_configure_cmd="'[$]0'"
else
moo_configure_cmd="[$]0"
fi
AC_DEFINE_UNQUOTED(MOO_CONFIGURE_ARGS, ["$ac_configure_args"], [configure arguments])
AC_DEFINE_UNQUOTED(MOO_CONFIGURE_CMD, ["$moo_configure_cmd"], [configure command])
AC_CONFIG_FILES([
Makefile
tools/Makefile