Check for pkg-config >= 0.6.0 without the use of a macro -- people were
2001-06-27 Richard Hestilow <hestilow@ximian.com> * configure.in: Check for pkg-config >= 0.6.0 without the use of a macro -- people were having issues with older versions with no macros.
This commit is contained in:
parent
81cbb6d8b6
commit
828dbf8727
2 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2001-06-27 Richard Hestilow <hestilow@ximian.com>
|
||||
|
||||
* configure.in: Check for pkg-config >= 0.6.0 without the use of
|
||||
a macro -- people were having issues with older versions with
|
||||
no macros.
|
||||
|
||||
2001-06-21 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* configure.in: switch to using pkg-config to find things
|
||||
|
|
13
configure.in
13
configure.in
|
@ -94,6 +94,19 @@ case "x$vers" in
|
|||
;;
|
||||
esac
|
||||
|
||||
AC_PATH_PROG(PKGCONFIG, pkg-config, no)
|
||||
if test "$PKGCONFIG" = no ; then
|
||||
AC_MSG_ERROR(pkg-config was not found. Please install version 0.6.0 or newer from http://www.freedesktop.org/software.)
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(for pkg-config >= 0.6.0)
|
||||
vers=`$PKGCONFIG --version | awk 'BEGIN { FS = "."; } { print $1 * 1000000 + $2 * 1000 + $3}'`
|
||||
if test "$vers" -ge 6000; then
|
||||
AC_MSG_RESULT(found)
|
||||
else
|
||||
AC_MSG_ERROR(You need at least pkg-config 0.6.0 or greater for this version of control-center. Please install a newer version from http://www.freedesktop.org/software.)
|
||||
fi
|
||||
|
||||
capplet_modules="libcapplet2 libglade gdk_pixbuf $ARCHIVER_MODULE"
|
||||
|
||||
PKG_CHECK_MODULES(CAPPLET, $capplet_modules)
|
||||
|
|
Loading…
Add table
Reference in a new issue