From: Roy Marples Date: Tue, 21 Jul 2009 20:07:13 +0000 (+0000) Subject: Don't leave configure test files around when aborting. X-Git-Tag: v5.1.0~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0610c473c4656618aeb4d042d78a940c8a807c30;p=thirdparty%2Fdhcpcd.git Don't leave configure test files around when aborting. --- diff --git a/configure b/configure index b6ac9395..f3e22015 100755 --- 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 <_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 <_arc4random.c