]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix build for slackware.
authorRoy Marples <roy@marples.name>
Sun, 11 Jul 2010 13:33:25 +0000 (13:33 +0000)
committerRoy Marples <roy@marples.name>
Sun, 11 Jul 2010 13:33:25 +0000 (13:33 +0000)
configure

index 31ee4325cb68d77552ce718d49a2e28aa9a9b46a..6201ba8c4c2e224d377a2f813396be6f6fce05f2 100755 (executable)
--- a/configure
+++ b/configure
@@ -109,6 +109,14 @@ if [ -z "$TARGET" ]; then
        TARGET=$HOST
 fi
 
+# Debian and Slackware have linux in different places when dealing with
+# autoconf, so we deal with that here.
+if [ -z "$OS" ]; then
+       case "$TARGET" in
+       *-linux-*|linux-*|*-linux|linux) OS=linux;;
+       esac
+fi
+
 if [ -z "$OS" ]; then
        # Derive OS from cpu-manufacturer-os-kernel
        CPU=${TARGET%%-*}