-### and now some special lyx flags.
-AC_ARG_ENABLE(assertions,
- [ --enable-assertions add runtime sanity checks in the program],,
- [if test $lyx_devel_version = yes -o $lyx_prerelease = yes ; then
- enable_assertions=yes;
- else
- enable_assertions=no;
- fi;])
-if test "x$enable_assertions" = xyes ; then
- lyx_flags="$lyx_flags assertions"
- AC_DEFINE(ENABLE_ASSERTIONS,1,
- [Define if you want assertions to be enabled in the code])
-fi
+### Some information on what just happened
+real_bindir=`eval "echo \`eval \"echo ${bindir}\"\`"`
+real_datadir=`eval "echo \`eval \"echo ${datadir}/${PACKAGE}\"\`"`
+VERSION_INFO=`cat <<EOF
+Configuration\n\
+ Host type: ${host_alias}\n\
+ Special build flags: ${lyx_flags}\n\
+ C Compiler: ${CC}\n\
+ C Compiler flags: ${CFLAGS}\n\
+ C++ Compiler: ${CXX} ${CXX_VERSION}\n\
+ C++ Compiler flags: ${CXXFLAGS}\n\
+ Linker flags: ${LDFLAGS}\n\
+ Frontend: ${lyx_use_frontend}\n\
+${FRONTEND_INFO}\
+ LyX binary dir: ${real_bindir}\n\
+ LyX files dir: ${real_datadir}\n
+`
+
+AC_SUBST(VERSION_INFO)