mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 14:01:53 +00:00
Allow manual path assignments still match a {lib,include} pattern
This commit is contained in:
parent
66d155679b
commit
32aa91305d
@ -28,11 +28,19 @@ if test "$PHP_V8JS" != "no"; then
|
|||||||
AC_MSG_RESULT(found in $i)
|
AC_MSG_RESULT(found in $i)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Debian installations
|
||||||
if test -r $i/$PHP_LIBDIR/$ARCH-linux-gnu/$SEARCH_FOR; then
|
if test -r $i/$PHP_LIBDIR/$ARCH-linux-gnu/$SEARCH_FOR; then
|
||||||
V8_INCLUDE_DIR=$i/include/v8
|
V8_INCLUDE_DIR=$i/include/v8
|
||||||
V8_LIBRARY_DIR=$i/$PHP_LIBDIR/$ARCH-linux-gnu
|
V8_LIBRARY_DIR=$i/$PHP_LIBDIR/$ARCH-linux-gnu
|
||||||
AC_MSG_RESULT(found in $i)
|
AC_MSG_RESULT(found in $i)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Manual installations
|
||||||
|
if test -r $i/$PHP_LIBDIR/$SEARCH_FOR && test -r $i/include/libplatform/libplatform.h; then
|
||||||
|
V8_INCLUDE_DIR=$i/include
|
||||||
|
V8_LIBRARY_DIR=$i/$PHP_LIBDIR
|
||||||
|
AC_MSG_RESULT(found in $i)
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED([PHP_V8_EXEC_PATH], "$V8_LIBRARY_DIR/$SEARCH_FOR", [Full path to libv8 library file])
|
AC_DEFINE_UNQUOTED([PHP_V8_EXEC_PATH], "$V8_LIBRARY_DIR/$SEARCH_FOR", [Full path to libv8 library file])
|
||||||
|
Loading…
Reference in New Issue
Block a user