diff options
| author | Roy Marples <roy@marples.name> | 2009-07-21 20:07:13 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-07-21 20:07:13 +0000 |
| commit | 0610c473c4656618aeb4d042d78a940c8a807c30 (patch) | |
| tree | 1e21f0e636b4246d110b5c5b30a7c7731d873f4e /configure | |
| parent | 812921086d3b61962eb62e92b20607f8631704f8 (diff) | |
| download | dhcpcd-0610c473c4656618aeb4d042d78a940c8a807c30.tar.xz | |
Don't leave configure test files around when aborting.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |
