Add display of build info

- Display compiler version, compiler flags, build PC, kernel version
- configure.ac part ported from filezilla project
This commit is contained in:
Michael Liebmann
2013-10-17 11:01:01 +02:00
committed by Thilo Graf
parent 05ce023278
commit 4cf4857201
9 changed files with 386 additions and 0 deletions

View File

@@ -12,6 +12,21 @@ AC_PROG_CXX
AC_DISABLE_STATIC
AM_PROG_LIBTOOL
# Add build information to config.h
# ---------------------------------
# Add host to config.h
AC_DEFINE_UNQUOTED(USED_BUILD, ["$build"], [Build system under which the program was compiled on.])
# Add used CXXFLAGS to config.h
AC_DEFINE_UNQUOTED(USED_CXXFLAGS, ["$CXXFLAGS"], [Define to the used CXXFLAGS to compile this package.])
# Get compiler (version)
AH_TEMPLATE(USED_COMPILER, [Define to name and version of used compiler])
if COMPILER=`$CC --version | head -n 1`; then
AC_DEFINE_UNQUOTED(USED_COMPILER, ["$COMPILER"])
fi
AC_ARG_WITH([tremor], [AS_HELP_STRING([--with-tremor],
[use libvorbisidec instead of libogg/libvorbis])],
[TREMOR="$withval"],