| 1 |
dnl FTGL_PROG_CXX() |
| 2 |
dnl Check the build platform and try to use the native compiler |
| 3 |
dnl |
| 4 |
AC_DEFUN([FTGL_PROG_CXX], |
| 5 |
[dnl |
| 6 |
AC_CANONICAL_BUILD |
| 7 |
AC_CANONICAL_HOST |
| 8 |
|
| 9 |
dnl I really don't know how to handle the cross-compiling case |
| 10 |
if test "$build" = "$host" ; then |
| 11 |
case "$build" in |
| 12 |
*-*-irix*) |
| 13 |
if test -z "$CXX" ; then |
| 14 |
CXX=CC |
| 15 |
fi |
| 16 |
if test -z "$CC" ; then |
| 17 |
CC=cc |
| 18 |
fi |
| 19 |
if test x$CXX = xCC -a -z "$CXXFLAGS" ; then |
| 20 |
# It might be worthwhile to move this out of here, say |
| 21 |
# EXTRA_CXXFLAGS. Forcing -n32 might cause trouble, too. |
| 22 |
CXXFLAGS="-LANG:std -n32 -woff 1201 -O3" |
| 23 |
fi |
| 24 |
;; |
| 25 |
esac |
| 26 |
fi |
| 27 |
|
| 28 |
AC_PROG_CXX |
| 29 |
]) |