Skip to content

Commit 24144eb

Browse files
committed
clean up comments
1 parent b5369ad commit 24144eb

File tree

1 file changed

+0
-58
lines changed

1 file changed

+0
-58
lines changed

config.m4

-58
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
dnl config.m4 for extension bsdiff
2-
3-
dnl Comments in this file start with the string 'dnl'.
4-
dnl Remove where necessary.
5-
6-
dnl If your extension references something external, use 'with':
7-
8-
dnl PHP_ARG_WITH([bsdiff],
9-
dnl [for bsdiff support],
10-
dnl [AS_HELP_STRING([--with-bsdiff],
11-
dnl [Include bsdiff support])])
12-
13-
dnl Otherwise use 'enable':
14-
151
PHP_ARG_ENABLE([bsdiff],
162
[whether to enable bsdiff support],
173
[AS_HELP_STRING([--enable-bsdiff],
@@ -24,49 +10,6 @@ PHP_ARG_WITH([bz2],
2410
[Specify installation directory of BZip2])])
2511

2612
if test "$PHP_BSDIFF" != "no"; then
27-
dnl Write more examples of tests here...
28-
29-
dnl Remove this code block if the library does not support pkg-config.
30-
dnl PKG_CHECK_MODULES([LIBFOO], [foo])
31-
dnl PHP_EVAL_INCLINE($LIBFOO_CFLAGS)
32-
dnl PHP_EVAL_LIBLINE($LIBFOO_LIBS, BSDIFF_SHARED_LIBADD)
33-
34-
dnl If you need to check for a particular library version using PKG_CHECK_MODULES,
35-
dnl you can use comparison operators. For example:
36-
dnl PKG_CHECK_MODULES([LIBFOO], [foo >= 1.2.3])
37-
dnl PKG_CHECK_MODULES([LIBFOO], [foo < 3.4])
38-
dnl PKG_CHECK_MODULES([LIBFOO], [foo = 1.2.3])
39-
40-
dnl Remove this code block if the library supports pkg-config.
41-
dnl --with-bsdiff -> check with-path
42-
dnl SEARCH_PATH="/usr/local /usr" # you might want to change this
43-
dnl SEARCH_FOR="/include/bsdiff.h" # you most likely want to change this
44-
dnl if test -r $PHP_BSDIFF/$SEARCH_FOR; then # path given as parameter
45-
dnl BSDIFF_DIR=$PHP_BSDIFF
46-
dnl else # search default path list
47-
dnl AC_MSG_CHECKING([for bsdiff files in default path])
48-
dnl for i in $SEARCH_PATH ; do
49-
dnl if test -r $i/$SEARCH_FOR; then
50-
dnl BSDIFF_DIR=$i
51-
dnl AC_MSG_RESULT(found in $i)
52-
dnl fi
53-
dnl done
54-
dnl fi
55-
dnl
56-
dnl if test -z "$BSDIFF_DIR"; then
57-
dnl AC_MSG_RESULT([not found])
58-
dnl AC_MSG_ERROR([Please reinstall the bsdiff distribution])
59-
dnl fi
60-
61-
dnl Remove this code block if the library supports pkg-config.
62-
dnl --with-bsdiff -> add include path
63-
dnl PHP_ADD_INCLUDE($BSDIFF_DIR/include)
64-
65-
dnl Remove this code block if the library supports pkg-config.
66-
dnl --with-bsdiff -> check for lib and symbol presence
67-
dnl LIBNAME=BSDIFF # you may want to change this
68-
dnl LIBSYMBOL=BSDIFF # you most likely want to change this
69-
7013
if test "$PHP_BZ2" != "no"; then
7114
if test -r $PHP_BZ2/include/bzlib.h; then
7215
BZIP_DIR=$PHP_BZ2
@@ -99,7 +42,6 @@ if test "$PHP_BSDIFF" != "no"; then
9942
PHP_SUBST(BSDIFF_SHARED_LIBADD)
10043
fi
10144

102-
dnl In case of no dependencies
10345
AC_DEFINE(HAVE_BSDIFF, 1, [ Have bsdiff support ])
10446

10547
PHP_NEW_EXTENSION(bsdiff, php_bsdiff.c bsdiff.c bspatch.c, $ext_shared,,-I@ext_srcdir@)

0 commit comments

Comments
 (0)