1*735d6239SKiyoung Kimdnl @synopsis GP_PKG_CONFIG 2*735d6239SKiyoung Kimdnl 3*735d6239SKiyoung Kimdnl If you want to set the PKG_CONFIG_PATH, best do so before 4*735d6239SKiyoung Kimdnl calling GP_PKG_CONFIG 5*735d6239SKiyoung KimAC_DEFUN([GP_PKG_CONFIG],[ 6*735d6239SKiyoung Kim# 7*735d6239SKiyoung Kim# [GP_PKG_CONFIG] 8*735d6239SKiyoung Kim# 9*735d6239SKiyoung KimAC_ARG_VAR([PKG_CONFIG],[pkg-config package config utility]) 10*735d6239SKiyoung Kimexport PKG_CONFIG 11*735d6239SKiyoung KimAC_ARG_VAR([PKG_CONFIG_PATH],[directory where pkg-config looks for *.pc files]) 12*735d6239SKiyoung Kimexport PKG_CONFIG_PATH 13*735d6239SKiyoung Kim 14*735d6239SKiyoung KimAC_MSG_CHECKING([PKG_CONFIG_PATH]) 15*735d6239SKiyoung Kimif test "x${PKG_CONFIG_PATH}" = "x"; then 16*735d6239SKiyoung Kim AC_MSG_RESULT([empty]) 17*735d6239SKiyoung Kimelse 18*735d6239SKiyoung Kim AC_MSG_RESULT([${PKG_CONFIG_PATH}]) 19*735d6239SKiyoung Kimfi 20*735d6239SKiyoung Kim 21*735d6239SKiyoung Kimdnl AC_REQUIRE([PKG_CHECK_MODULES]) 22*735d6239SKiyoung KimAC_PATH_PROG([PKG_CONFIG],[pkg-config],[false]) 23*735d6239SKiyoung Kimif test "$PKG_CONFIG" = "false"; then 24*735d6239SKiyoung KimAC_MSG_ERROR([ 25*735d6239SKiyoung Kim*** Build requires pkg-config 26*735d6239SKiyoung Kim*** 27*735d6239SKiyoung Kim*** Possible solutions: 28*735d6239SKiyoung Kim*** - set PKG_CONFIG to where your pkg-config is located 29*735d6239SKiyoung Kim*** - set PATH to include the directory where pkg-config is installed 30*735d6239SKiyoung Kim*** - get it from http://freedesktop.org/software/pkgconfig/ and install it 31*735d6239SKiyoung Kim]) 32*735d6239SKiyoung Kimfi 33*735d6239SKiyoung Kim])dnl 34*735d6239SKiyoung Kim 35*735d6239SKiyoung Kimdnl Please do not remove this: 36*735d6239SKiyoung Kimdnl filetype: d87b877b-80ec-447c-b042-21ec4a27c6f0 37*735d6239SKiyoung Kimdnl I use this to find all the different instances of this file which 38*735d6239SKiyoung Kimdnl are supposed to be synchronized. 39*735d6239SKiyoung Kim 40*735d6239SKiyoung Kimdnl Local Variables: 41*735d6239SKiyoung Kimdnl mode: autoconf 42*735d6239SKiyoung Kimdnl End: 43