]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't leave configure test files around when aborting.
authorRoy Marples <roy@marples.name>
Tue, 21 Jul 2009 20:07:13 +0000 (20:07 +0000)
committerRoy Marples <roy@marples.name>
Tue, 21 Jul 2009 20:07:13 +0000 (20:07 +0000)
configure

index b6ac9395c11b0578e6bd7daa506ec7100883cb3e..f3e22015b49d813ff8e487af0215df47631db3b2 100755 (executable)
--- a/configure
+++ b/configure
@@ -120,6 +120,7 @@ if [ -e "$LDELF" ]; then
        echo "LDFLAGS+= -Wl,-dynamic-linker=$LDELF" >>$CONFIG_MK
 fi
 
+abort=false
 # We require the libc to support non standard functions, like getifaddrs
 printf "Testing for getifaddrs support ... "
 cat <<EOF >_getifaddrs.c
@@ -135,8 +136,10 @@ if $CC _getifaddrs.c -o _getifaddrs 2>/dev/null; then
 else
        echo "no"
        echo "libc support for getifaddrs is required - aborting" >&2
-       exit 1
+       abort=true
 fi
+rm -f _getifaddrs.c _getifaddrs
+$abort && exit 1
 
 printf "Testing for arc4random support ... "
 cat <<EOF >_arc4random.c