summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-07-21 20:07:13 +0000
committerRoy Marples <roy@marples.name>2009-07-21 20:07:13 +0000
commit0610c473c4656618aeb4d042d78a940c8a807c30 (patch)
tree1e21f0e636b4246d110b5c5b30a7c7731d873f4e /configure
parent812921086d3b61962eb62e92b20607f8631704f8 (diff)
downloaddhcpcd-0610c473c4656618aeb4d042d78a940c8a807c30.tar.xz
Don't leave configure test files around when aborting.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
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 <<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