@@ -650,6 +650,8 @@ USE_SIGNAL_MODULE
650650TCLTK_LIBS
651651TCLTK_INCLUDES
652652LIBFFI_INCLUDEDIR
653+ PKG_CONFIG_LIBDIR
654+ PKG_CONFIG_PATH
653655PKG_CONFIG
654656SHLIBS
655657CFLAGSFORSHARED
@@ -828,7 +830,10 @@ CFLAGS
828830LDFLAGS
829831LIBS
830832CPPFLAGS
831- CPP'
833+ CPP
834+ PKG_CONFIG
835+ PKG_CONFIG_PATH
836+ PKG_CONFIG_LIBDIR'
832837
833838
834839# Initialize some variables set by options.
@@ -1514,6 +1519,11 @@ Some influential environment variables:
15141519 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
15151520 you have headers in a nonstandard directory <include dir>
15161521 CPP C preprocessor
1522+ PKG_CONFIG path to pkg-config utility
1523+ PKG_CONFIG_PATH
1524+ directories to add to pkg-config's search path
1525+ PKG_CONFIG_LIBDIR
1526+ path overriding pkg-config's built-in search path
15171527
15181528Use these variables to override the choices made by ` configure' or to help
15191529it to find libraries and programs with nonstandard names/locations.
@@ -9218,7 +9228,15 @@ $as_echo "no" >&6; }
92189228fi
92199229
92209230
9221- if test -n " $ac_tool_prefix " ; then
9231+
9232+
9233+
9234+
9235+
9236+
9237+
9238+ if test " x$ac_cv_env_PKG_CONFIG_set " ! = " xset" ; then
9239+ if test -n " $ac_tool_prefix " ; then
92229240 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
92239241set dummy ${ac_tool_prefix} pkg-config; ac_word=$2
92249242{ $as_echo " $as_me :${as_lineno-$LINENO } : checking for $ac_word " >&5
@@ -9316,6 +9334,20 @@ else
93169334 PKG_CONFIG=" $ac_cv_path_PKG_CONFIG "
93179335fi
93189336
9337+ fi
9338+ if test -n " $PKG_CONFIG " ; then
9339+ _pkg_min_version=0.9.0
9340+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking pkg-config is at least version $_pkg_min_version " >&5
9341+ $as_echo_n " checking pkg-config is at least version $_pkg_min_version ... " >&6 ; }
9342+ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version ; then
9343+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: yes" >&5
9344+ $as_echo " yes" >&6 ; }
9345+ else
9346+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
9347+ $as_echo " no" >&6 ; }
9348+ PKG_CONFIG=" "
9349+ fi
9350+ fi
93199351
93209352# Check for use of the system expat library
93219353{ $as_echo " $as_me :${as_lineno-$LINENO } : checking for --with-system-expat" >&5
0 commit comments