Added unknown OS clause for the version command output

This commit is contained in:
Federico Hernandez 2009-12-22 01:03:24 +01:00
parent 338e4dfbc7
commit ecb4190e0b
2 changed files with 7 additions and 2 deletions

View file

@ -43,9 +43,12 @@ elif test "$OS" = "haiku"; then
elif test "$OS" = "freeb"; then elif test "$OS" = "freeb"; then
AC_MSG_NOTICE([OS FreeBSD detected]) AC_MSG_NOTICE([OS FreeBSD detected])
AC_DEFINE([FREEBSD], [], [Compiling on FreeBSD]) AC_DEFINE([FREEBSD], [], [Compiling on FreeBSD])
else elif test "$OS" = "linux"; then
AC_MSG_NOTICE([OS Linux detected]) AC_MSG_NOTICE([OS Linux detected])
AC_DEFINE([LINUX], [], [Compiling on Linux]) AC_DEFINE([LINUX], [], [Compiling on Linux])
else
AC_MSG_NOTICE([OS not detected])
AC_DEFINE([UNKNOWN], [], [Compiling on Unknown])
fi fi
AM_INIT_AUTOMAKE AM_INIT_AUTOMAKE

View file

@ -508,8 +508,10 @@ int handleVersion (std::string &outs)
<< "haiku" << "haiku"
#elif defined (FREEBSD) #elif defined (FREEBSD)
<< "freebsd" << "freebsd"
#else #elif defined (LINUX)
<< "linux" << "linux"
#else
<< "unknown"
#endif #endif
#ifdef HAVE_LIBNCURSES #ifdef HAVE_LIBNCURSES