diff GEMBASSY-1.0.3/m4/sgi.m4 @ 0:8300eb051bea draft

Initial upload
author ktnyt
date Fri, 26 Jun 2015 05:19:29 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GEMBASSY-1.0.3/m4/sgi.m4	Fri Jun 26 05:19:29 2015 -0400
@@ -0,0 +1,53 @@
+AC_DEFUN([CHECK_SGI],
+#
+# Handle SGI compiler flags
+#
+[AC_MSG_CHECKING([for sgiabi])
+AC_ARG_WITH([sgiabi],
+    [AS_HELP_STRING([--with-sgiabi=@<:@ARG@:>@],
+        [SGI compiler flags @<:@default=no@:>@])],
+[if test "$withval" != no ; then
+  AC_MSG_RESULT([yes])
+
+  case $host_os in
+  irix*)
+    if test "$withval" = n32m3 ; then
+      CFLAGS="-n32 -mips3 $CFLAGS"
+      LD="/usr/bin/ld -n32 -mips3 -IPA -L/usr/lib32"
+	if test -d /usr/freeware ; then
+          LDFLAGS="-L/usr/freeware/lib32 $LDFLAGS"
+        fi
+    fi
+
+    if test "$withval" = n32m4 ; then
+      CFLAGS="-n32 -mips4 $CFLAGS"
+      LD="/usr/bin/ld -n32 -mips4 -IPA -L/usr/lib32"
+	if test -d /usr/freeware ; then
+          LDFLAGS="-L/usr/freeware/lib32 $LDFLAGS"
+        fi
+    fi
+
+    if test "$withval" = 64m3 ; then
+      CFLAGS="-64 -mips3 $CFLAGS"
+      LD="/usr/bin/ld -64 -mips3 -IPA -L/usr/lib64"
+	if test -d /usr/freeware ; then
+          LDFLAGS="-L/usr/freeware/lib64 $LDFLAGS"
+        fi
+    fi
+
+    if test "$withval" = 64m4 ; then
+      CFLAGS="-64 -mips4 $CFLAGS"
+      LD="/usr/bin/ld -64 -mips4 -IPA -L/usr/lib64"
+	if test -d /usr/freeware ; then
+          LDFLAGS="-L/usr/freeware/lib64 $LDFLAGS"
+        fi
+    fi
+    ;;
+  esac
+
+
+fi], [
+AC_MSG_RESULT([no])
+])
+]
+)