Initial release of Maemo 5 port of gnuplot
[gnuplot] / m4 / alpha.m4
diff --git a/m4/alpha.m4 b/m4/alpha.m4
new file mode 100644 (file)
index 0000000..6f2be92
--- /dev/null
@@ -0,0 +1,24 @@
+## ------------------------------- ##
+## Check for Alpha AXP.            ##
+## By Hans-Bernhard Broeker        ##
+## (edited copy of msdos.m4)       ##
+## ------------------------------- ##
+
+# serial 1
+
+AC_DEFUN([GP_ALPHA],
+[AC_MSG_CHECKING(for Alpha/AXP CPU)
+AC_EGREP_CPP(yes,
+[#ifdef __alpha
+  yes
+#endif
+],AC_MSG_RESULT(yes)
+  if test "$GCC" = "yes" ; then
+     CFLAGS="-mieee $CFLAGS"
+  else
+     CFLAGS="-ieee $CFLAGS"
+  fi,
+  AC_MSG_RESULT(no)
+  )dnl
+])
+