xorg-driver-common.inc : fix the header file detections now we are using
authorGraeme Gregory <dp@xora.org.uk>
Tue, 4 Nov 2008 17:24:07 +0000 (17:24 +0000)
committerGraeme Gregory <dp@xora.org.uk>
Wed, 12 Nov 2008 15:20:30 +0000 (15:20 +0000)
sysroot. Seems to actually work in use, but maybe there is a better way!

packages/xorg-driver/xorg-driver-common.inc

index a75e409..7126b8b 100644 (file)
@@ -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