mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
build: don't lose prior configure args on autogen.sh
My prior patch forced an autogen.sh run, and I was surprised that the suggested './autogen.sh' lost the fact that I had previously used './autogen.sh -C' for speed. * autogen.sh: Use config.status, if present and there were no arguments. Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
f0dc84d83f
commit
508da563b9
10
autogen.sh
10
autogen.sh
@ -56,8 +56,8 @@ if test "x$1" = "x--system"; then
|
|||||||
EXTRA_ARGS="--prefix=/usr --sysconfdir=/etc --localstatedir=/var"
|
EXTRA_ARGS="--prefix=/usr --sysconfdir=/etc --localstatedir=/var"
|
||||||
echo "Running ./configure with $EXTRA_ARGS $@"
|
echo "Running ./configure with $EXTRA_ARGS $@"
|
||||||
else
|
else
|
||||||
if test -z "$*"; then
|
if test -z "$*" && test ! -f "$THEDIR/config.status"; then
|
||||||
echo "I am going to run ./configure with no arguments - if you wish "
|
echo "I am going to run ./configure with no arguments - if you wish "
|
||||||
echo "to pass any to it, please specify them on the $0 command line."
|
echo "to pass any to it, please specify them on the $0 command line."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -92,7 +92,11 @@ if test "x$OBJ_DIR" != x; then
|
|||||||
cd "$OBJ_DIR"
|
cd "$OBJ_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$srcdir/configure $EXTRA_ARGS "$@" && {
|
if test -z "$*" && test -f config.status; then
|
||||||
|
./config.status --recheck
|
||||||
|
else
|
||||||
|
$srcdir/configure $EXTRA_ARGS "$@"
|
||||||
|
fi && {
|
||||||
echo
|
echo
|
||||||
echo "Now type 'make' to compile libvirt."
|
echo "Now type 'make' to compile libvirt."
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user