~ubuntu-branches/debian/sid/httrack/sid

« back to all changes in this revision

Viewing changes to m4/check_zlib.m4

  • Committer: Package Import Robot
  • Author(s): Xavier Roche
  • Date: 2014-04-09 21:02:08 UTC
  • mfrom: (1.4.46)
  • Revision ID: package-import@ubuntu.com-20140409210208-n2o92f7nj5g82p7k
Tags: 3.48.1-1
Updated to 3.48.1 (3.48-1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl @synopsis CHECK_ZLIB()
2
2
dnl
3
 
dnl This macro searches for an installed zlib library. If nothing was
4
 
dnl specified when calling configure, it searches first in /usr/local
 
3
dnl This macro searches for an installed zlib library. If nothing
 
4
dnl was specified when calling configure, it searches first in /usr/local
5
5
dnl and then in /usr. If the --with-zlib=DIR is specified, it will try
6
 
dnl to find it in DIR/include/zlib.h and DIR/lib/libz.a. If
7
 
dnl --without-zlib is specified, the library is not searched at all.
 
6
dnl to find it in DIR/include/zlib.h and DIR/lib/libz.a. If --without-zlib
 
7
dnl is specified, the library is not searched at all.
8
8
dnl
9
9
dnl If either the header file (zlib.h) or the library (libz) is not
10
 
dnl found, the configuration exits on error, asking for a valid zlib
11
 
dnl installation directory or --without-zlib.
 
10
dnl found, the configuration exits on error, asking for a valid
 
11
dnl zlib installation directory or --without-zlib.
12
12
dnl
13
 
dnl The macro defines the symbol HAVE_LIBZ if the library is found. You
14
 
dnl should use autoheader to include a definition for this symbol in a
15
 
dnl config.h file. Sample usage in a C/C++ source is as follows:
 
13
dnl The macro defines the symbol HAVE_LIBZ if the library is found. You should
 
14
dnl use autoheader to include a definition for this symbol in a config.h
 
15
dnl file. Sample usage in a C/C++ source is as follows:
16
16
dnl
17
17
dnl   #ifdef HAVE_LIBZ
18
18
dnl   #include <zlib.h>
19
19
dnl   #endif /* HAVE_LIBZ */
20
20
dnl
21
 
dnl @category InstalledPackages
 
21
dnl @version $Id$
22
22
dnl @author Loic Dachary <loic@senga.org>
23
 
dnl @version 2004-09-20
24
 
dnl @license GPLWithACException
 
23
dnl
25
24
 
26
25
AC_DEFUN([CHECK_ZLIB],
27
26
#
34
33
  --without-zlib to disable zlib usage completely],
35
34
[if test "$withval" != no ; then
36
35
  AC_MSG_RESULT(yes)
37
 
  if test -d "$withval"
38
 
  then
39
 
    ZLIB_HOME="$withval"
40
 
  else
41
 
    AC_MSG_WARN([Sorry, $withval does not exist, checking usual places])
42
 
  fi
 
36
  ZLIB_HOME="$withval"
43
37
else
44
38
  AC_MSG_RESULT(no)
45
 
fi])
46
 
 
 
39
fi], [
 
40
AC_MSG_RESULT(yes)
47
41
ZLIB_HOME=/usr/local
48
42
if test ! -f "${ZLIB_HOME}/include/zlib.h"
49
43
then
50
44
        ZLIB_HOME=/usr
51
45
fi
 
46
])
52
47
 
53
48
#
54
49
# Locate zlib, if wanted