Home | History | Annotate | Download | only in m4
      1 dnl NTP_PKG_CONFIG					-*- Autoconf -*-
      2 dnl
      3 dnl Look for pkg-config, which must be at least
      4 dnl $ntp_pkgconfig_min_version.
      5 dnl
      6 AC_DEFUN([NTP_PKG_CONFIG], [
      7 
      8 dnl lower the minimum version if you find an earlier one works
      9 ntp_pkgconfig_min_version='0.15.0'
     10 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
     11 AS_UNSET([ac_cv_path_PKG_CONFIG])
     12 AS_UNSET([ac_cv_path_ac_pt_PKG_CONFIG])
     13 
     14 case "$PKG_CONFIG" in
     15  /*)
     16     AC_MSG_CHECKING([if pkg-config is at least version $ntp_pkgconfig_min_version])
     17     if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
     18 	AC_MSG_RESULT([yes])
     19     else
     20 	AC_MSG_RESULT([no])
     21 	PKG_CONFIG=""
     22     fi
     23     ;;
     24 esac
     25 
     26 ]) dnl NTP_PKG_CONFIG
     27 
     28