dnl This is a trick to make autoheader do the right thing
dnl AM_CONFIG_HEADER(src/config.h)
AC_CONFIG_AUX_DIR(config)
-LYX_GET_VERSION(${srcdir}/src/version.h)
+
+PACKAGE=lyx${program_suffix}
+VERSION="1.2.0cvs"
+LYX_CHECK_VERSION
AC_CANONICAL_SYSTEM
AC_VALIDATE_CACHE_SYSTEM_TYPE
# version numbers...
LYX_PATH_XPM
LYX_PATH_XFORMS
+FRONTEND_INFO=`cat <<EOF
+ libXpm version: ${XPM_VERSION}\n\
+ libforms version: ${XFORMS_VERSION}\n
+`
+
AC_SUBST(LYX_LIBS)
else
LYX_ERROR(dnl
LYX_CHECK_DECL_HDRS(mkstemp,[unistd.h stdlib.h])
+### 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)
+
### Finish the work.
AC_CONFIG_SUBDIRS(sigc++ lib lib/reLyX)
AC_OUTPUT([Makefile \
po/Makefile.in \
sourcedoc/Doxyfile \
src/Makefile \
+ src/version.C \
src/mathed/Makefile \
src/graphics/Makefile \
src/insets/Makefile \
src/frontends/controllers/Makefile \
src/frontends/xforms/Makefile \
src/frontends/qt2/Makefile \
+ src/frontends/qt2/moc/Makefile \
+ src/frontends/qt2/ui/Makefile \
+ src/frontends/qt2/ui/moc/Makefile \
src/frontends/gnome/Makefile \
])
-
-cat <<EOF
-
-Configuration:
- Source code location: ${srcdir}
- C++ Compiler: ${CXX}
- C++ Compiler flags: ${CXXFLAGS}
- C Compiler: ${CC}
- C Compiler flags: ${CFLAGS}
- LyX binary dir: `eval "echo \`eval \"echo ${bindir}\"\`"`
- LyX files dir: `eval "echo \`eval \"echo ${datadir}/${PACKAGE}\"\`"`
- Special flags: ${lyx_flags}
-
-EOF
+# show version information
+echo
+printf "$VERSION_INFO"
+echo
# Display a final warning if there has been a LYX_ERROR
LYX_CHECK_ERRORS