change the logic a bit..
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@320 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
b094a201ac
commit
c712485ff1
25
configure.ac
25
configure.ac
|
@ -33,25 +33,30 @@ case "`$CC -V 2>&1`" in
|
|||
;;
|
||||
esac
|
||||
|
||||
AC_PATH_PROG(MKDEP, mkdep)
|
||||
AC_PATH_PROG(MAKEDEPEND, makedepend)
|
||||
|
||||
AC_MSG_CHECKING([how to generate dependency info])
|
||||
|
||||
if test "$ac_cv_c_compiler_gnu" = yes; then
|
||||
CFLAGS="$CFLAGS -Wall -Wno-unused"
|
||||
MKDEP="$CC -MM"
|
||||
MKDEP_DIRECT="> .depend"
|
||||
AC_MSG_RESULT(gcc)
|
||||
elif test "$suncc" = yes; then
|
||||
MKDEP="$CC -xM"
|
||||
# -xM is noisy
|
||||
MKDEP_DIRECT="> .depend 2>/dev/null"
|
||||
AC_MSG_RESULT([Solaris cc])
|
||||
elif test -n "$MKDEP"; then
|
||||
AC_MSG_RESULT(mkdep)
|
||||
elif test -n "$MAKEDEPEND"; then
|
||||
MKDEP=":> .depend; $MAKEDEPEND -f.depend"
|
||||
MKDEP_DIRECT=">/dev/null 2>&1" # noisy prick of a program
|
||||
AC_MSG_RESULT(makedepend)
|
||||
else
|
||||
AC_CHECK_PROG(MKDEP, mkdep, mkdep,)
|
||||
if test -z "$MKDEP"; then
|
||||
AC_CHECK_PROG(MKDEP, makedepend, makedepend,)
|
||||
if test -n "$MKDEP"; then
|
||||
MKDEP=":> .depend; $MKDEP -f.depend"
|
||||
MKDEP_DIRECT=">/dev/null 2>&1" # noisy prick of a program
|
||||
else
|
||||
MKDEP=:
|
||||
fi
|
||||
fi
|
||||
MKDEP=:
|
||||
AC_MSG_RESULT([nothing!])
|
||||
fi
|
||||
|
||||
AC_SUBST(MKDEP)
|
||||
|
|
Loading…
Reference in New Issue