From: Hans U. N. <hu...@us...> - 2005-03-15 01:32:07
|
Update of /cvsroot/libexif/libexif-testsuite/m4 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17037/m4 Modified Files: gp-pkg-config.m4 Log Message: require pkg-config Index: gp-pkg-config.m4 =================================================================== RCS file: /cvsroot/libexif/libexif-testsuite/m4/gp-pkg-config.m4,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- gp-pkg-config.m4 14 Mar 2005 03:47:32 -0000 1.1 +++ gp-pkg-config.m4 15 Mar 2005 01:31:54 -0000 1.2 @@ -3,7 +3,12 @@ dnl If you want to set the PKG_CONFIG_PATH, best do so before dnl calling GP_PKG_CONFIG AC_DEFUN([GP_PKG_CONFIG],[ -AC_ARG_VAR([PKG_CONFIG_PATH],[where pkg-config looks for *.pc files]) +# +# [GP_PKG_CONFIG] +# +AC_ARG_VAR([PKG_CONFIG],[pkg-config package config utility]) +export PKG_CONFIG +AC_ARG_VAR([PKG_CONFIG_PATH],[directory where pkg-config looks for *.pc files]) export PKG_CONFIG_PATH AC_MSG_CHECKING([PKG_CONFIG_PATH]) @@ -13,7 +18,18 @@ AC_MSG_RESULT([${PKG_CONFIG_PATH}]) fi -AC_PATH_PROG([PKG_CONFIG],[pkg-config]) +dnl AC_REQUIRE([PKG_CHECK_MODULES]) +AC_PATH_PROG([PKG_CONFIG],[pkg-config],[false]) +if test "$PKG_CONFIG" = "false"; then +AC_MSG_ERROR([ +*** Build requires pkg-config +*** +*** Possible solutions: +*** - set PKG_CONFIG to where your pkg-config is located +*** - set PATH to include the directory where pkg-config is installed +*** - get it from http://freedesktop.org/software/pkgconfig/ and install it +]) +fi ])dnl dnl Please do not remove this: |