summaryrefslogtreecommitdiffstats
path: root/heimdall/configure.ac
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell+github@glassechidna.com.au>2010-12-27 09:27:29 +0100
committerBenjamin Dobell <benjamin.dobell+github@glassechidna.com.au>2010-12-27 09:27:29 +0100
commit47faaf001de6342b7839f1108034ab65d35f1faf (patch)
tree4101d63a4af11114c4d5b1b3ddb7795fd1638d32 /heimdall/configure.ac
parentRe-ran autogen.sh and cleaned up slightly. (diff)
downloadHeimdall-1.1.1.tar
Heimdall-1.1.1.tar.gz
Heimdall-1.1.1.tar.bz2
Heimdall-1.1.1.tar.lz
Heimdall-1.1.1.tar.xz
Heimdall-1.1.1.tar.zst
Heimdall-1.1.1.zip
Diffstat (limited to 'heimdall/configure.ac')
-rw-r--r--heimdall/configure.ac9
1 files changed, 8 insertions, 1 deletions
diff --git a/heimdall/configure.ac b/heimdall/configure.ac
index de3a181..7bda280 100644
--- a/heimdall/configure.ac
+++ b/heimdall/configure.ac
@@ -1,6 +1,7 @@
AC_INIT([Heimdall], [0.1], [bug-report@glassechidna.com.au], [heimdall], [http://www.glassechidna.com.au/])
AC_PREREQ([2.59])
PKG_CHECK_MODULES([DEPS], [libusb-1.0 >= 1.0.8])
+AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([1.10 -Wall no-define foreign])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
@@ -11,27 +12,33 @@ AC_CONFIG_FILES([Makefile])
AM_MAINTAINER_MODE
AC_MSG_CHECKING([operating system])
-case $host in
+case $target in
*-linux*)
AC_DEFINE(OS_LINUX, [], [Linux backend])
AC_MSG_RESULT([Linux])
+ linuxtarget=true
;;
*-darwin*)
AC_DEFINE(OS_DARWIN, [], [Darwin backend])
AC_MSG_RESULT([Darwin/MacOS X])
+ linuxtarget=false
;;
*-mingw*)
AC_DEFINE(OS_WINDOWS, [], [Windows backend])
AC_MSG_RESULT([Windows])
+ linuxtarget=false
;;
*-cygwin*)
AC_DEFINE(OS_WINDOWS, [], [Windows backend])
AC_MSG_RESULT([Windows])
+ linuxtarget=false
;;
*)
AC_MSG_ERROR([unsupported operating system])
esac
+AM_CONDITIONAL([LINUXTARGET], [test x$linuxtarget = xtrue])
+
AC_C_BIGENDIAN
AC_OUTPUT