php-src/ext/yaz/config.m4

42 lines
954 B
Plaintext
Raw Normal View History

2001-12-01 03:00:13 +08:00
dnl
dnl $Id$
2001-12-01 03:00:13 +08:00
dnl
2000-06-10 11:35:57 +08:00
PHP_ARG_WITH(yaz,for YAZ support,
2001-12-01 03:00:13 +08:00
[ --with-yaz[=DIR] Include YAZ support (ANSI/NISO Z39.50).
DIR is the YAZ bin install directory.])
2000-06-10 11:35:57 +08:00
if test "$PHP_YAZ" != "no"; then
yazconfig=NONE
if test "$PHP_YAZ" = "yes"; then
AC_PATH_PROG(yazconfig, yaz-config, NONE)
else
if test -r ${PHP_YAZ}/yaz-config; then
yazconfig=${PHP_YAZ}/yaz-config
else
yazconfig=${PHP_YAZ}/bin/yaz-config
fi
fi
if test -f $yazconfig; then
AC_DEFINE(HAVE_YAZ,1,[Whether you have YAZ])
. $yazconfig
dir=""
for c in $YAZLIB; do
case $c in
-L*)
dir=`echo $c|cut -c 3-|sed 's%/\.libs%%g'`
;;
esac
done
if test -n "$dir"; then
PHP_ADD_LIBPATH($dir,YAZ_SHARED_LIBADD)
fi
PHP_ADD_LIBRARY_DEFER(yaz,1,YAZ_SHARED_LIBADD)
PHP_EVAL_INCLINE($YAZINC)
2000-06-10 11:35:57 +08:00
PHP_SUBST(YAZ_SHARED_LIBADD)
PHP_EXTENSION(yaz, $ext_shared)
fi
fi