aboutsummaryrefslogtreecommitdiff
path: root/m4/iem_operatingsystem.m4
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2015-03-05 15:09:05 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2015-03-05 15:09:05 +0000
commit3620a1ce26b6a139e3bc6b0f13f6fe9e85ff7c4a (patch)
treeb03e9788817a686b6bd271c8c24c9a03333360c7 /m4/iem_operatingsystem.m4
parent05f71533d872a0dfd055ef36125e1492ef438468 (diff)
added missing files for autotools migration
svn path=/trunk/externals/iem/iemmatrix/; revision=17433
Diffstat (limited to 'm4/iem_operatingsystem.m4')
-rw-r--r--m4/iem_operatingsystem.m455
1 files changed, 55 insertions, 0 deletions
diff --git a/m4/iem_operatingsystem.m4 b/m4/iem_operatingsystem.m4
new file mode 100644
index 0000000..87726e1
--- /dev/null
+++ b/m4/iem_operatingsystem.m4
@@ -0,0 +1,55 @@
+dnl try to figure out the target operating system and set some AM-macros accordingly
+dnl
+dnl Copyright (C) 2011 IOhannes m zmölnig
+
+
+AC_DEFUN([IEM_OPERATING_SYSTEM],
+[
+AC_CANONICAL_HOST
+
+LINUX=no
+ANDROID=no
+MACOSX=no
+IPHONEOS=no
+BSD=no
+WINDOWS=no
+MINGW=no
+CYGWIN=no
+HURD=no
+IRIX=no
+
+case $host_os in
+*linux*)
+ LINUX=yes
+ ;;
+*darwin*)
+ MACOSX=yes
+ ;;
+GNU/kFreeBSD)
+ BSD=yes
+ ;;
+*mingw*)
+ WINDOWS=yes
+ MINGW=yes
+ ;;
+*cygwin*)
+ WINDOWS=yes
+ CYGWIN=yes
+ ;;
+GNU)
+ HURD=yes
+ ;;
+esac
+
+
+AM_CONDITIONAL(LINUX, test x$LINUX = xyes)
+AM_CONDITIONAL(ANDROID, test x$ANDROID = xyes)
+AM_CONDITIONAL(MACOSX, test x$MACOSX = xyes)
+AM_CONDITIONAL(IPHONEOS, test x$IPHONEOS = xyes)
+AM_CONDITIONAL(BSD, test x$BSD = xyes)
+AM_CONDITIONAL(WINDOWS, test x$WINDOWS = xyes)
+AM_CONDITIONAL(CYGWIN, test x$MINGW = xyes)
+AM_CONDITIONAL(MINGW, test x$MINGW = xyes)
+AM_CONDITIONAL(HURD, test x$HURD = xyes)
+AM_CONDITIONAL(IRIX, test x$IRIX = xyes)
+]) dnl IEM_OPERATING_SYSTEM