Initial release of Maemo 5 port of gnuplot
[gnuplot] / m4 / next.m4
diff --git a/m4/next.m4 b/m4/next.m4
new file mode 100644 (file)
index 0000000..9e6be28
--- /dev/null
@@ -0,0 +1,21 @@
+## ------------------------------- ##
+## Check for NeXT.                 ##
+## From Lars Hecking               ##
+## ------------------------------- ##
+
+# serial 1
+
+AC_DEFUN([GP_NEXT],
+[AC_MSG_CHECKING(for NeXT)
+AC_EGREP_CPP(yes,
+[#if __NeXT__
+  yes
+#endif
+], AC_MSG_RESULT(yes)
+   LIBS="$LIBS -lsys_s -lNeXT_s"
+   CFLAGS="$CFLAGS -ObjC"
+   is_next=yes,
+   AC_MSG_RESULT(no)
+   is_next=no)
+])
+