1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00

Use PHP_ADD_LIBRARY_DEFER and PHP_ADD_LIBPATH instead of

PHP_EVAL_LIBLINE to prevent configure error.
This commit is contained in:
Adam Dickmeiss
2001-11-08 21:37:49 +00:00
parent 65429fbaac
commit 43f34af575
+12 -2
View File
@@ -20,8 +20,18 @@ if test "$PHP_YAZ" != "no"; then
if test -f $yazconfig; then
AC_DEFINE(HAVE_YAZ,1,[Whether you have YAZ])
. $yazconfig
YAZLIB=`echo $YAZLIB|sed 's%/.libs%%'`
PHP_EVAL_LIBLINE($YAZLIB, YAZ_SHARED_LIBADD)
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)
PHP_SUBST(YAZ_SHARED_LIBADD)
PHP_EXTENSION(yaz, $ext_shared)