use $CC -xM for dependencies on solaris, if you are using cc

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@319 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Joshua Kwan 2004-06-21 00:59:51 +00:00
parent 366737941c
commit b094a201ac
2 changed files with 16 additions and 0 deletions

View File

@ -5,6 +5,7 @@
* Fix dgl-create-chroot's copying of terminfo - the terminfo dir
might be full of symlinks, so dereference them by passing -L to
cp. It's SUSv3, honest!
* Now compiles with Tiny C Compiler.
1.4.5 (2004/06/14)
* Reset offset if necessary to show at least one game to avoid things

View File

@ -22,10 +22,25 @@ case "$(uname -s)" in
;;
esac
AC_MSG_CHECKING([for Solaris cc])
case "`$CC -V 2>&1`" in
*Sun*WorkShop* | *Forte*Developer*)
AC_MSG_RESULT(yes)
suncc=yes
;;
*)
AC_MSG_RESULT(no)
;;
esac
if test "$ac_cv_c_compiler_gnu" = yes; then
CFLAGS="$CFLAGS -Wall -Wno-unused"
MKDEP="$CC -MM"
MKDEP_DIRECT="> .depend"
elif test "$suncc" = yes; then
MKDEP="$CC -xM"
# -xM is noisy
MKDEP_DIRECT="> .depend 2>/dev/null"
else
AC_CHECK_PROG(MKDEP, mkdep, mkdep,)
if test -z "$MKDEP"; then