File: sgi.m4

package info (click to toggle)
emboss 6.6.0%2Bdfsg-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 571,584 kB
  • sloc: ansic: 460,579; java: 29,383; perl: 13,573; sh: 12,753; makefile: 3,294; csh: 706; asm: 351; xml: 239; pascal: 237; modula3: 8
file content (53 lines) | stat: -rw-r--r-- 1,251 bytes parent folder | download | duplicates (29)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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])
])
]
)