mirror of
https://github.com/ericonr/util-linux.git
synced 2024-04-21 09:12:35 -05:00
Sorry detail-oriented people tend to wipe these out if they notice them. Add in automated tools and lots of excess end-of-line spaces get wiped out. Addresses: https://github.com/karelzak/util-linux/pull/849 Signed-off-by: Karel Zak <kzak@redhat.com>
46 lines
762 B
Bash
Executable File
46 lines
762 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2011 Karel Zak <kzak@redhat.com>
|
|
#
|
|
|
|
test -f sys-utils/mount.c || {
|
|
echo
|
|
echo "You must run this script in the top-level util-linux directory"
|
|
echo
|
|
exit 1
|
|
}
|
|
|
|
. tools/config-gen-functions.sh
|
|
|
|
if [ $# -eq 0 ]; then
|
|
echo "This script requires at least one of the folloving arguments:"
|
|
cd tools/config-gen.d
|
|
for i in *.conf; do
|
|
echo " ${i%%.conf}"
|
|
done
|
|
exit 1
|
|
fi
|
|
|
|
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"
|
|
CFLAGS="$CFLAGS"
|
|
export CFLAGS
|
|
fi
|
|
|
|
if [ ! -f ./configure ]; then
|
|
./autogen.sh
|
|
fi
|
|
|
|
echo
|
|
./configure $opts
|