|
Line 0
Link Here
|
|
|
1 |
dnl $Id: config.m4,v 1.2 2001/02/08 21:41:29 opaque_ndst Exp $ |
| 2 |
dnl config.m4 for extension libming |
| 3 |
dnl don't forget to call PHP_EXTENSION(ming) |
| 4 |
dnl This file is a modified version of config.m4 |
| 5 |
dnl in php4/ext/mcrypt |
| 6 |
|
| 7 |
PHP_ARG_WITH(ming, for ming support, |
| 8 |
[ --with-ming[=DIR] Include ming support]) |
| 9 |
|
| 10 |
if test "$PHP_MING" != "no"; then |
| 11 |
for i in /usr/lib /usr/local/ /usr/local/lib /usr $PHP_MING $PHP_MING/lib; do |
| 12 |
if test -r $i/libming.so; then |
| 13 |
MING_LIB_DIR=$i |
| 14 |
fi |
| 15 |
done |
| 16 |
|
| 17 |
if test -z "$MING_LIB_DIR"; then |
| 18 |
AC_MSG_ERROR(Please reinstall libming.so - I cannot find libming.so) |
| 19 |
fi |
| 20 |
|
| 21 |
for i in /usr/include /usr/local/include $PHP_MING $PHP_MING/include $PHP_MING/include/ming; do |
| 22 |
if test -r $i/ming.h; then |
| 23 |
MING_INC_DIR=$i |
| 24 |
fi |
| 25 |
done |
| 26 |
|
| 27 |
if test -z "$MING_INC_DIR"; then |
| 28 |
AC_MSG_ERROR(Please reinstall ming.h - I cannot find ming.h) |
| 29 |
fi |
| 30 |
|
| 31 |
AC_ADD_INCLUDE($MING_INC_DIR) |
| 32 |
|
| 33 |
AC_ADD_LIBRARY_WITH_PATH(ming, $MING_LIB_DIR, MING_SHARED_LIBADD) |
| 34 |
PHP_SUBST(MING_SHARED_LIBADD) |
| 35 |
AC_DEFINE(HAVE_MING,1,[ ]) |
| 36 |
|
| 37 |
PHP_EXTENSION(ming, $ext_shared) |
| 38 |
fi |