--- /root/configure_tests_old.sh 2013-02-10 15:19:28.073398466 +0100 +++ /root/configure_tests.sh 2013-02-10 15:26:11.093381967 +0100 @@ -612,8 +612,9 @@ ID_LIBS="$ID"_LIBS if [ -z "$found" ]; then pkg-config --atleast-version=0.2 $pc_package + found=$? if [ $? = 0 ]; then - found=`pkg-config --cflags $pc_package` + xcm_cflags=`pkg-config --cflags $pc_package` version=`pkg-config --modversion $pc_package` fi fi @@ -627,7 +628,7 @@ if [ -n "$MAKEFILE_DIR" ]; then for i in $MAKEFILE_DIR; do test -f "$ROOT_DIR/$i/makefile".in && echo "XCM = 1" >> "$i/makefile" - test -f "$ROOT_DIR/$i/makefile".in && echo "XCM_H = $found" >> "$i/makefile" + test -f "$ROOT_DIR/$i/makefile".in && echo "XCM_H = $xcm_cflags" >> "$i/makefile" test -f "$ROOT_DIR/$i/makefile".in && echo "$ID_LIBS = `pkg-config --libs $name | sed \"$STRIPOPT\"`" >> "$i/makefile" done fi