summaryrefslogtreecommitdiff
blob: b9acf4c2d0495a8c83bb34e107560ed6f0bf3129 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Upstream as https://sourceforge.net/p/oyranos/patches/6/

Michael Weber

--- icc_examin-0.55/configure_tests.sh
+++ icc_examin-0.55/configure_tests.sh
@@ -689,7 +689,8 @@
     if [ -z "$found" ]; then
       pkg-config  --atleast-version=1.2 $pc_package
       if [ $? = 0 ]; then
-        found=`pkg-config --cflags $pc_package`
+	found="yes"
+        cflags=`pkg-config --cflags $pc_package`
         version=`pkg-config --modversion $pc_package`
       fi
     fi
@@ -703,7 +704,7 @@
       if [ -n "$MAKEFILE_DIR" ]; then
         for i in $MAKEFILE_DIR; do
           test -f "$ROOT_DIR/$i/makefile".in && echo "XRANDR = 1" >> "$i/makefile"
-          test -f "$ROOT_DIR/$i/makefile".in && echo "XRANDR_INC = $found" >> "$i/makefile"
+          test -f "$ROOT_DIR/$i/makefile".in && echo "XRANDR_INC = $cflags" >> "$i/makefile"
         done
       fi
     elif [ $OSUNAME = "Linux" ]; then