From 9221fb85f6f5dc97d5a4810c2e87e8882fa85f02 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 4 Nov 2011 12:12:20 +0100 Subject: build-sys: add tools/config-gen and basic compilation scenarios Signed-off-by: Karel Zak --- tools/config-gen | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 tools/config-gen (limited to 'tools/config-gen') diff --git a/tools/config-gen b/tools/config-gen new file mode 100755 index 000000000..441e5a465 --- /dev/null +++ b/tools/config-gen @@ -0,0 +1,31 @@ +#!/bin/bash +# +# Copyright (C) 2011 Karel Zak +# + +test -f mount/mount.c || { + echo + echo "You must run this script in the top-level util-linux directory" + echo + exit 1 +} + +. tools/config-gen-functions.sh + +while [ -n "$1" ]; do + opts="$opts $(ul_get_configuration tools/config-gen.d/$1.conf)" + shift +done + +opts=$(echo $opts | tr " " "\n" | sort -u) +echo "Configure options:" +for x in $opts; do + echo " $x" +done +if [ -n "$CFLAGS" ]; then + echo "CFLAGS: $CFLAGS" + export CFLAGS="$CFLAGS" +fi + +echo +./configure $opts -- cgit v1.2.3-55-g7522