modified configure.ac to capture configure command and arguments

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

View File

@ -165,8 +165,8 @@ am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/ac/ar-lib \
$(top_srcdir)/ac/compile $(top_srcdir)/ac/config.guess \
$(top_srcdir)/ac/config.sub $(top_srcdir)/ac/install-sh \
$(top_srcdir)/ac/ltmain.sh $(top_srcdir)/ac/missing ac/ar-lib \
ac/compile ac/config.guess ac/config.sub ac/install-sh \
ac/ltmain.sh ac/missing
ac/compile ac/config.guess ac/config.sub ac/depcomp \
ac/install-sh ac/ltmain.sh ac/missing
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)

17
configure vendored
View File

@ -18190,6 +18190,23 @@ MOO_PROJECT_AUTHOR="${PACKAGE_BUGREPORT}"
MOO_PROJECT_URL="${PACKAGE_URL}"
if test `expr " $0" : " '.*"` = 0; then
moo_configure_cmd="'$0'"
else
moo_configure_cmd="$0"
fi
cat >>confdefs.h <<_ACEOF
#define MOO_CONFIGURE_ARGS "$ac_configure_args"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define MOO_CONFIGURE_CMD "$moo_configure_cmd"
_ACEOF
ac_config_files="$ac_config_files Makefile tools/Makefile lib/Makefile mod/Makefile bin/Makefile t/Makefile wasm/Makefile"
cat >confcache <<\_ACEOF

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

View File

@ -339,6 +339,12 @@
/* build release/debug */
#undef MOO_BUILD_RELEASE
/* configure arguments */
#undef MOO_CONFIGURE_ARGS
/* configure command */
#undef MOO_CONFIGURE_CMD
/* enable dynamic module capability */
#undef MOO_ENABLE_DYNAMIC_MODULE

View File

@ -420,6 +420,7 @@ pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@