Added unknown OS clause for the version command output
This commit is contained in:
@@ -43,9 +43,12 @@ elif test "$OS" = "haiku"; then
|
||||
elif test "$OS" = "freeb"; then
|
||||
AC_MSG_NOTICE([OS FreeBSD detected])
|
||||
AC_DEFINE([FREEBSD], [], [Compiling on FreeBSD])
|
||||
else
|
||||
elif test "$OS" = "linux"; then
|
||||
AC_MSG_NOTICE([OS Linux detected])
|
||||
AC_DEFINE([LINUX], [], [Compiling on Linux])
|
||||
else
|
||||
AC_MSG_NOTICE([OS not detected])
|
||||
AC_DEFINE([UNKNOWN], [], [Compiling on Unknown])
|
||||
fi
|
||||
|
||||
AM_INIT_AUTOMAKE
|
||||
|
||||
@@ -508,8 +508,10 @@ int handleVersion (std::string &outs)
|
||||
<< "haiku"
|
||||
#elif defined (FREEBSD)
|
||||
<< "freebsd"
|
||||
#else
|
||||
#elif defined (LINUX)
|
||||
<< "linux"
|
||||
#else
|
||||
<< "unknown"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBNCURSES
|
||||
|
||||
Reference in New Issue
Block a user