mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
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:
15
configure.ac
15
configure.ac
@@ -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"],
|
||||
|
Reference in New Issue
Block a user