--- build.sh		2008-09-08 23:02:36.613709784 -0400
+++ build.sh.confflags	2008-09-19 13:37:58.900804394 -0400
@@ -137,6 +137,12 @@
 	MOD_SPECIFIC="--with-xcb=no"
     fi
 
+    if test x"$CONFFLGFILE" != x && test -e $CONFFLGFILE; then
+        MOD_SPECIFIC="$MOD_SPECIFIC `grep all: $CONFFLGFILE | cut -d : -f 2-`"
+        MOD_SPECIFIC="$MOD_SPECIFIC `grep $1: $CONFFLGFILE | cut -d : -f 2-`"
+        MOD_SPECIFIC="$MOD_SPECIFIC `grep $1/$2: $CONFFLGFILE | cut -d : -f 2-`"
+    fi
+
     LIB_FLAGS=
     if test x$LIBDIR != x ; then
         LIB_FLAGS="--libdir=${PREFIX}/${LIBDIR}"
@@ -616,6 +622,7 @@
     echo "  -a : do NOT run auto config tools (autogen.sh, configure)"
     echo "  -b : use .build.$HAVE_ARCH build directory"
     echo "  -c : run make clean in addition to others"
+    echo "  -C configure-flags-file : file with configure flags"
     echo "  -d : run make distcheck in addition to others"
     echo "  -D : run make dist in addition to others"
     echo "  -g : build with debug information"
@@ -643,6 +650,10 @@
     -c)
 	CLEAN=1
 	;;
+    -C)
+	shift
+	CONFFLGFILE=$1
+	;;
     -d)
 	DISTCHECK=1
 	;;
