Skip to content

Commit

Permalink
macros: use PKG_CONFIG variable rather than executable name
Browse files Browse the repository at this point in the history
User can defined alternate location for pkg-config.
Once option in place, all instances of pkg-config must be converted.

Acked-by: Peter Hutterer <[email protected]>
Reviewed-by: Dan Nicholson <[email protected]>
Signed-off-by: Gaetan Nadon <[email protected]>
Signed-off-by: Keith Packard <[email protected]>
  • Loading branch information
memsize authored and keith-packard committed Jan 7, 2010
1 parent 1b3132f commit 6a2a578
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xorg-server.m4
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ dnl
# is defined, then add $1 to $REQUIRED_MODULES.

AC_DEFUN([XORG_DRIVER_CHECK_EXT],[
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include "xorg-server.h"
#if !defined $1
Expand Down

0 comments on commit 6a2a578

Please sign in to comment.