From b094a201ac373fca8a307f8834c9bea56e609978 Mon Sep 17 00:00:00 2001 From: Joshua Kwan Date: Mon, 21 Jun 2004 00:59:51 +0000 Subject: [PATCH] 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 --- Changelog | 1 + configure.ac | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/Changelog b/Changelog index 6db8cfa..17b745f 100644 --- a/Changelog +++ b/Changelog @@ -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 diff --git a/configure.ac b/configure.ac index 6706824..468a29a 100644 --- a/configure.ac +++ b/configure.ac @@ -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 -- 2.47.3