1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 00:18:23 +02:00

Beutify + fix some errors in finding libs and header files.

This commit is contained in:
foobar
2001-03-16 00:36:31 +00:00
parent 0688feeba4
commit e92ff40bc7
+5 -8
View File
@@ -1,15 +1,12 @@
dnl $Id$
dnl config.m4 for extension libming
dnl don't forget to call PHP_EXTENSION(ming)
dnl This file is a modified version of config.m4
dnl in php4/ext/mcrypt
PHP_ARG_WITH(ming, for ming support,
PHP_ARG_WITH(ming, whether to include ming support,
[ --with-ming[=DIR] Include ming support])
if test "$PHP_MING" != "no"; then
for i in /usr/lib /usr/local /usr $PHP_MING; do
if test -r $i/libming.so; then
for i in $PHP_MING /usr/local /usr; do
if test -r $i/lib/libming.so; then
MING_DIR=$i
fi
done
@@ -18,10 +15,10 @@ if test "$PHP_MING" != "no"; then
AC_MSG_ERROR(Please reinstall libming.so - I cannot find libming.so)
fi
AC_ADD_INCLUDE($MING_DIR)
AC_ADD_INCLUDE($MING_DIR/include)
PHP_SUBST(MING_SHARED_LIBADD)
AC_ADD_LIBRARY_WITH_PATH(ming, $MING_DIR, MING_SHARED_LIBADD)
AC_ADD_LIBRARY_WITH_PATH(ming, $MING_DIR/lib, MING_SHARED_LIBADD)
AC_DEFINE(HAVE_MING,1,[ ])
PHP_EXTENSION(ming, $ext_shared)