From a2267085ab6a2d2e04f70794cba393ed3b6cad1c Mon Sep 17 00:00:00 2001 From: Graeme Gregory Date: Tue, 4 Nov 2008 17:24:07 +0000 Subject: xorg-driver-common.inc : fix the header file detections now we are using sysroot. Seems to actually work in use, but maybe there is a better way! --- packages/xorg-driver/xorg-driver-common.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/xorg-driver/xorg-driver-common.inc b/packages/xorg-driver/xorg-driver-common.inc index a75e409c8c..7126b8be83 100644 --- a/packages/xorg-driver/xorg-driver-common.inc +++ b/packages/xorg-driver/xorg-driver-common.inc @@ -25,10 +25,10 @@ do_stage() { # Of course this will blow up when cross compiling. do_configure_prepend() { - incdir=${STAGING_INCDIR}/xorg + incdir=${layout_includedir}/xorg for f in dri.h sarea.h dristruct.h exa.h damage.h; do path="$incdir/$f" - if [ -f "$path" ]; then + if [ -f "${STAGING_DIR_HOST}/$path" ]; then p=`echo "$path" | sed 'y%*+%pp%;s%[^_[:alnum:]]%_%g'` eval "export ac_cv_file_$p=yes" fi -- cgit 1.2.3-korg