diff --git a/.gitignore b/.gitignore index 62d3c85cc..0f0850642 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ _build /aclocal.m4 /autom4te.cache /config.status +/config.flags /configure /Makefile.config /.buckversion diff --git a/configure.ac b/configure.ac index bc29053bb..2afe8cb1a 100644 --- a/configure.ac +++ b/configure.ac @@ -17,6 +17,11 @@ AC_PREREQ([2.63]) AC_INIT([Infer], [0.8.1], [https://github.com/facebook/infer/issues/]) + +# this has to happen just after AC_INIT() because later macros may mess with the arguments passed to +# this script +config_flags="$*" + AC_CONFIG_SRCDIR([infer/src/IR/Sil.re]) # WARNING: keep in sync with above @@ -274,4 +279,7 @@ AC_CONFIG_FILES([ Makefile.config ]) +AC_MSG_NOTICE([saving configure flags to ./config.flags]) +echo $config_flags > config.flags + AC_OUTPUT