mirror of
https://github.com/php/php-src.git
synced 2024-12-04 07:14:10 +08:00
04d7c9815f
Developing using aegis and just checking in baseline from time to time See samjam@php.net for questions
36 lines
995 B
Plaintext
36 lines
995 B
Plaintext
dnl $Id$
|
|
|
|
PHP_ARG_WITH(muscat, for Muscat support,
|
|
[ --with-muscat[=DIR] Include muscat support.])
|
|
|
|
if test "$PHP_MUSCAT" != "no"; then
|
|
PHP_EXTENSION(muscat, $ext_shared)
|
|
for i in $PHP_MUSCAT /usr/local /usr /usr/local/empower /usr/local/empower/developer; do
|
|
if test -f $i/include/Muscat.h; then
|
|
MUSCAT_INCDIR=$i/include
|
|
MUSCAT_DIR=$i
|
|
fi
|
|
if test -f $i/libs/libhdmuscat3.6.a; then
|
|
MUSCAT_LIBDIR=$i/libs
|
|
MUSCAT_DIR=$i
|
|
elif test -f $i/lib/libhdmuscat3.6.a; then
|
|
MUSCAT_LIBDIR=$i/lib
|
|
MUSCAT_DIR=$i
|
|
fi
|
|
done
|
|
|
|
if test -z "$MUSCAT_INCDIR"; then
|
|
AC_MSG_ERROR(Cannot find Muscat include dir)
|
|
fi
|
|
|
|
if test -z "$MUSCAT_LIBDIR"; then
|
|
AC_MSG_ERROR(Cannot find Muscat lib dir)
|
|
fi
|
|
|
|
AC_DEFINE(HAVE_MUSCAT, 1, [ ])
|
|
PHP_SUBST(MUSCAT_SHARED_LIBADD)
|
|
AC_DEFINE_UNQUOTED(PHP_MUSCAT_DIR, "$MUSCAT_DIR", [ ])
|
|
AC_ADD_LIBRARY_WITH_PATH(hdmuscat3.6, $MUSCAT_LIBDIR, MUSCAT_SHARED_LIBADD)
|
|
AC_ADD_INCLUDE($MUSCAT_INCDIR)
|
|
fi
|