FFI_INCDIR=$PHP_FFI/include
FFI_LIBDIR=$PHP_FFI
else
- dnl First try to find pkg-config
- if test -z "$PKG_CONFIG"; then
- AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
- fi
-
- dnl If pkg-config is installed, try using it
if test -x "$PKG_CONFIG" && "$PKG_CONFIG" --exists libffi; then
FFI_VER=`"$PKG_CONFIG" --modversion libffi`
FFI_INCDIR=`"$PKG_CONFIG" --variable=includedir libffi`
AC_MSG_CHECKING(for iODBC support)
if test "$PHP_IODBC" != "no"; then
- if test -z "$PKG_CONFIG"; then
- AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
- fi
if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libiodbc ; then
PHP_ADD_LIBRARY_WITH_PATH(iodbc, $PHP_IODBC/$PHP_LIBDIR)
ODBC_TYPE=iodbc
dnl Write more examples of tests here...
dnl # get library FOO build options from pkg-config output
- dnl AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
dnl AC_MSG_CHECKING(for libfoo)
dnl if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists foo; then
dnl if $PKG_CONFIG foo --atleast-version 1.2.3; then
SEARCH_PATH="/usr/local /usr" # you might want to change this
SEARCH_FOR="/include/sodium.h" # you most likely want to change this
- AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
AC_MSG_CHECKING([for libsodium])
dnl user provided location
PHP_ZIP_SOURCES="php_zip.c zip_stream.c"
if test "$PHP_LIBZIP" != "no"; then
-
- AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-
AC_MSG_CHECKING(for libzip)
if test -r $PHP_LIBZIP/include/zip.h; then
LIBZIP_CFLAGS="-I$PHP_LIBZIP/include"
[no])
if test "$PHP_FPM_SYSTEMD" != "no" ; then
- if test -z "$PKG_CONFIG"; then
- AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
- fi
unset SYSTEMD_LIBS
unset SYSTEMD_INCS
abs_srcdir=`(cd $srcdir && pwd)`
abs_builddir=`pwd`
+PKG_PROG_PKG_CONFIG
AC_PROG_CC([cc gcc])
PHP_DETECT_ICC
PHP_DETECT_SUNCC