[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trivial check_zlib.m4 patch
From: |
Peter Simons |
Subject: |
Re: trivial check_zlib.m4 patch |
Date: |
20 Sep 2004 11:30:39 +0200 |
Anatoly Pugachev writes:
| --- check_zlib.m4-orig Mon Jul 19 15:48:27 2004
| +++ check_zlib.m4 Mon Jul 19 15:53:53 2004
| @@ -20,6 +20,7 @@
| dnl
| dnl @version $Id: check_zlib.m4,v 1.2 2004/03/01 19:16:57 guidod Exp $
| dnl @author Loic Dachary <address@hidden>
| +dnl @patch1 Anatoly Pugachev <address@hidden>
| dnl
|
| AC_DEFUN([CHECK_ZLIB],
| @@ -33,17 +34,21 @@
| --without-zlib to disable zlib usage completely],
| [if test "$withval" != no ; then
| AC_MSG_RESULT(yes)
| - ZLIB_HOME="$withval"
| + if test -d $withval
| + then
| + ZLIB_HOME="$withval"
| + else
| + AC_MSG_WARN([Sorry, $withval not exist, checking usual places])
| + fi
| else
| AC_MSG_RESULT(no)
| -fi], [
| -AC_MSG_RESULT(yes)
| +fi])
| +
| ZLIB_HOME=/usr/local
| if test ! -f "${ZLIB_HOME}/include/zlib.h"
| then
| ZLIB_HOME=/usr
| fi
| -])
|
| #
| # Locate zlib, if wanted
Thank you for the patch, Anatoly. Since it really does look
quite harmless, I have imported it into the archive without
consulting with Loic first; the new version should show on
the site any moment now. (I have edited out the "@patch1
..." line, though: that directive doesn't exist in the
formatting software.)
Loic, could you please let me know if you disagree with this
change in any way?
Peter