spek

Acoustic spectrum analyser
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

commit 188738c6cdba924b3182603387a82b7f2d3899ee
parent d64ffa56e8e97e90bbc06aea40db1070592abb6f
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Sun,  5 Aug 2012 19:24:49 -0700

Platform detection

Diffstat:
Mconfigure.ac | 19+++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -2,6 +2,7 @@ AC_INIT([spek],[0.7]) AC_CONFIG_SRCDIR([src/spek.cc]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([1.11.1 foreign no-dist-gzip dist-xz]) +AM_MAINTAINER_MODE([yes]) AM_SILENT_RULES([yes]) AC_PROG_CC_C99 @@ -9,6 +10,24 @@ AC_PROG_CXX AC_PROG_INSTALL IT_PROG_INTLTOOL([0.40.0]) +AC_CANONICAL_HOST +AC_MSG_CHECKING([the OS]) +AS_CASE([$host], + [*-*-mingw*], [ + os="WIN" + AC_DEFINE([OS_WIN], [1], [Platform]) + ], + [*-*-darwin*], [ + os="OSX" + AC_DEFINE([OS_OSX], [1], [Platform]) + ], + [*], [ + os="UNIX" + AC_DEFINE([OS_UNIX], [1], [Platform]) + ] +) +AC_MSG_RESULT([$os]) + AC_CHECK_LIB(m, log10) pkg_modules="libavformat >= 52.111 libavcodec >= 52.123 libavutil"