0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-11 00:08:42 +00:00

Add opinionated checks for installations on debian 12 and different architectures

This commit is contained in:
Joshua Behrens 2024-09-07 16:08:04 +02:00
parent c01f24f5e4
commit be6e1a809a
No known key found for this signature in database
GPG Key ID: DD28BD85EE8F67DD

View File

@ -18,12 +18,20 @@ if test "$PHP_V8JS" != "no"; then
V8_LIBRARY_DIR=$PHP_V8JS/$PHP_LIBDIR
else
AC_MSG_CHECKING([for V8 files in default path])
ARCH=$(uname -m)
for i in $SEARCH_PATH ; do
if test -r $i/$PHP_LIBDIR/$SEARCH_FOR; then
V8_INCLUDE_DIR=$i/include/v8
V8_LIBRARY_DIR=$i/$PHP_LIBDIR
AC_MSG_RESULT(found in $i)
fi
if test -r $i/$PHP_LIBDIR/$ARCH-linux-gnu/$SEARCH_FOR; then
V8_INCLUDE_DIR=$i/include/v8
V8_LIBRARY_DIR=$i/$PHP_LIBDIR/$ARCH-linux-gnu
AC_MSG_RESULT(found in $i)
fi
done
fi