summaryrefslogtreecommitdiffstats
path: root/heimdall/configure.ac
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell+github@glassechidna.com.au>2010-12-04 14:25:04 +0100
committerBenjamin Dobell <benjamin.dobell+github@glassechidna.com.au>2010-12-04 14:25:04 +0100
commit46f2c1134d276944fb74584a61d90cc363aee7eb (patch)
tree6fa14b7ef509a3fb84305dec013dd24bcae6c17d /heimdall/configure.ac
parentAddresses: (diff)
downloadHeimdall-46f2c1134d276944fb74584a61d90cc363aee7eb.tar
Heimdall-46f2c1134d276944fb74584a61d90cc363aee7eb.tar.gz
Heimdall-46f2c1134d276944fb74584a61d90cc363aee7eb.tar.bz2
Heimdall-46f2c1134d276944fb74584a61d90cc363aee7eb.tar.lz
Heimdall-46f2c1134d276944fb74584a61d90cc363aee7eb.tar.xz
Heimdall-46f2c1134d276944fb74584a61d90cc363aee7eb.tar.zst
Heimdall-46f2c1134d276944fb74584a61d90cc363aee7eb.zip
Diffstat (limited to 'heimdall/configure.ac')
-rw-r--r--heimdall/configure.ac35
1 files changed, 35 insertions, 0 deletions
diff --git a/heimdall/configure.ac b/heimdall/configure.ac
new file mode 100644
index 0000000..dc1d92d
--- /dev/null
+++ b/heimdall/configure.ac
@@ -0,0 +1,35 @@
+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])
+AM_INIT_AUTOMAKE([1.10 -Wall no-define foreign])
+AC_CONFIG_MACRO_DIR([m4])
+AC_CONFIG_HEADERS([config.h])
+AC_PROG_CXX
+AC_PROG_LIBTOOL
+AC_CONFIG_FILES([Makefile])
+
+AM_MAINTAINER_MODE
+
+AC_MSG_CHECKING([operating system])
+case $host in
+*-linux*)
+ AC_DEFINE(OS_LINUX, [], [Linux backend])
+ AC_MSG_RESULT([Linux])
+ ;;
+*-darwin*)
+ AC_DEFINE(OS_DARWIN, [], [Darwin backend])
+ AC_MSG_RESULT([Darwin/MacOS X])
+ ;;
+*-mingw*)
+ AC_DEFINE(OS_WINDOWS, [], [Windows backend])
+ AC_MSG_RESULT([Windows])
+ ;;
+*-cygwin*)
+ AC_DEFINE(OS_WINDOWS, [], [Windows backend])
+ AC_MSG_RESULT([Windows])
+ ;;
+*)
+ AC_MSG_ERROR([unsupported operating system])
+esac
+
+AC_OUTPUT