Commit 6da36120 authored by dscho's avatar dscho

fix am__fastdepCXX for system not having ZLIB

parent b3213b6d
...@@ -50,15 +50,15 @@ if test ! -z "$HAVE_PTHREAD_H"; then ...@@ -50,15 +50,15 @@ if test ! -z "$HAVE_PTHREAD_H"; then
AC_CHECK_LIB(pthread, pthread_mutex_lock, HAVE_LIBPTHREAD="true") AC_CHECK_LIB(pthread, pthread_mutex_lock, HAVE_LIBPTHREAD="true")
fi fi
AM_CONDITIONAL(HAVE_LIBPTHREAD, test ! -z "$HAVE_LIBPTHREAD") AM_CONDITIONAL(HAVE_LIBPTHREAD, test ! -z "$HAVE_LIBPTHREAD")
AC_CHECK_PROGS(CXX,[g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC],none)
AC_PROG_CXX
if test ! -z "$HAVE_ZLIB_H"; then if test ! -z "$HAVE_ZLIB_H"; then
AC_CHECK_LIB(z, deflate, , HAVE_ZLIB_H="") AC_CHECK_LIB(z, deflate, , HAVE_ZLIB_H="")
if test ! -z "$HAVE_ZLIB_H"; then if test ! -z "$HAVE_ZLIB_H"; then
# check for c++, but don't fail if not found # check for c++, but don't fail if not found
AC_CHECK_PROGS(CXX,[g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC],none)
AH_TEMPLATE(HAVE_ZRLE, [Use zrle compression; needs a c++ compiler]) AH_TEMPLATE(HAVE_ZRLE, [Use zrle compression; needs a c++ compiler])
if test x$CXX != xnone; then if test x$CXX != xnone; then
AC_DEFINE(HAVE_ZRLE) AC_DEFINE(HAVE_ZRLE)
AC_PROG_CXX
if test -z "$CXX"; then if test -z "$CXX"; then
CCLD="\$(CXX)" CCLD="\$(CXX)"
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment