Remove HOST_OS

We can now detect the OS at compile time.
This commit is contained in:
Alexander Kojevnikov 2011-03-18 15:49:11 +08:00
parent 3c53552789
commit c32a645954
3 changed files with 3 additions and 14 deletions

@ -3,14 +3,6 @@
AC_INIT([spek],[0.6])
AC_CONFIG_SRCDIR([src/spek.vala])
AC_CONFIG_HEADERS([config.h])
# Determine the system type.
AC_CANONICAL_HOST
AC_SUBST(host_os)
AC_DEFINE_UNQUOTED(HOST_OS, "$host_os",
[Define the canonical host OS type.]
)
AM_INIT_AUTOMAKE([no-dist-gzip dist-bzip2])
# Enable silent rules is available

@ -43,10 +43,10 @@ namespace Spek {
private double FONT_SCALE = 1.0;
public Spectrogram () {
#if G_OS_DARWIN
// Pango/Quartz fonts are smaller than on X.
if (Config.HOST_OS.down ().has_prefix ("darwin")) {
FONT_SCALE = 1.4;
}
FONT_SCALE = 1.4;
#endif
// Pre-draw the palette.
palette = new ImageSurface (Format.RGB24, RULER, BANDS);

@ -13,7 +13,4 @@ namespace Config {
public const string LOCALEDIR; /* /usr/local/share/locale */
public const string PKGDATADIR; /* /usr/local/share/spek */
public const string PKGLIBDIR; /* /usr/local/lib/spek */
/* freebsd*, linux*, mingw*, darwin*, etc. */
public const string HOST_OS;
}