File: config.m4

package info (click to toggle)
htdig 1%3A3.2.0b6-21
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 21,292 kB
  • sloc: ansic: 49,632; cpp: 46,468; sh: 17,400; xml: 4,180; perl: 2,543; makefile: 888; php: 79; asm: 14
file content (32 lines) | stat: -rw-r--r-- 932 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
dnl $Id: config.m4,v 1.1 2004/03/20 01:31:21 nealr Exp $
dnl config.m4 for extension HtDig

PHP_ARG_WITH(bz2, for HtDig support,
[  --with-bz2[=DIR]        Include HtDig support])

if test "$PHP_HTDIG" != "no"; then
  if test -r $PHP_HTDIG/include/libhtdig_api.h; then
    HTDIG_DIR=$PHP_HTDIG
  else
    AC_MSG_CHECKING(for HtDig in default path)
    for i in /usr/local /usr; do
      if test -r $i/include/libhtdig_api.h; then
        HTDIG_DIR=$i
        AC_MSG_RESULT(found in $i)
      fi
    done
  fi

  if test -z "$HTDIG_DIR"; then
    AC_MSG_RESULT(not found)
    AC_MSG_ERROR(Please reinstall the HtDig distribution)
  fi

  PHP_ADD_INCLUDE($HTDIG_DIR/include)

  PHP_SUBST(HTDIG_SHARED_LIBADD)
  PHP_ADD_LIBRARY_WITH_PATH(bz2, $HTDIG_DIR/lib, HTDIG_SHARED_LIBADD)
  #AC_CHECK_LIB(bz2, BZ2_bzerror, [AC_DEFINE(HAVE_BZ2,1,[ ])], [AC_MSG_ERROR(bz2 module requires libbz2 >= 1.0.0)],)

  PHP_EXTENSION(bz2, $ext_shared)
fi