diff options
| author | Piotr Pawłow <pp@siedziba.pl> | 2024-09-13 04:54:22 +0200 |
|---|---|---|
| committer | Piotr Pawłow <pp@siedziba.pl> | 2024-09-13 04:54:22 +0200 |
| commit | 5f4815990599a6aea0ad048f9ab37ca50cc6dc52 (patch) | |
| tree | dbf95995930042993989f04cc8e76e36723acaa4 | |
| parent | fb318cc2f88dae174482603ed2168d1fc0914cd1 (diff) | |
Use pkg-config to find imlib2 compilation options
| -rw-r--r-- | config.m4 | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -10,15 +10,15 @@ if test "$PHP_IMLIB" != "no"; then AC_MSG_CHECKING(for Imlib2 version) - if test -x $(which imlib2-config); then - IMLIB2_VERSION=$(imlib2-config --version) + if test -x $(command -v pkg-config); then + IMLIB2_VERSION=$(pkg-config imlib2 --version) AC_MSG_RESULT($IMLIB2_VERSION) - PHP_EVAL_LIBLINE($(imlib2-config --libs), IMLIB_SHARED_LIBADD) - PHP_EVAL_INCLINE($(imlib2-config --cflags)) + PHP_EVAL_LIBLINE($(pkg-config imlib2 --libs), IMLIB_SHARED_LIBADD) + PHP_EVAL_INCLINE($(pkg-config imlib2 --cflags)) AC_DEFINE(HAVE_IMLIB,1,[ ]) CPPFLAGS="-DPHP_IMLIB_FILTER_PATH=\"\\\"$EXTENSION_DIR/php_imlib_filters\\\"\" $CPPFLAGS" else - AC_MSG_ERROR(imlib2-config script not found) + AC_MSG_ERROR(pkg-config script not found) fi if test "$PHP_T1LIB" != "no"; then |
