diff options
| author | Roy Marples <roy@marples.name> | 2015-12-31 17:46:05 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2015-12-31 17:46:05 +0000 |
| commit | e143d0c58aaae9cd4cb98bd94fdf7b13b3b0a4e4 (patch) | |
| tree | 919e12a23435a46197d288fa834d5c395472a377 /configure | |
| parent | 3eeb66d7bde9cff68cc0561bb5ba748cba84cc3d (diff) | |
| download | dhcpcd-e143d0c58aaae9cd4cb98bd94fdf7b13b3b0a4e4.tar.xz | |
Detect kFreeBSD correctly.
Thanks to Christoph Egger for providing a temporary build host.
Partial fix for [1987e7b3a3].
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -221,6 +221,9 @@ if [ -z "$OS" ]; then case "$VENDOR" in linux*|kfreebsd*) OS=$VENDOR; VENDOR= ;; esac + case "$REST" in + gnu/kfreebsd*) OS="kfreebsd"; VENDOR= ;; + esac # Special case case "$OS" in gnu*) OS=hurd;; # No HURD support as yet @@ -304,7 +307,7 @@ else ALLOW_USR_LIBS=true fi case "$OS" in -linux*|sunos*) ;; +linux*|sunos*|kfreebsd*) ;; *) if ! [ -x "$LDELF" -o -x /libexec/ld-elf.so.[0-9]* ] && \ [ -z "$PREFIX" -o "$PREFIX" = "/" ] @@ -375,6 +378,9 @@ freebsd*|kfreebsd*) esac echo "DHCPCD_SRCS+= if-bsd.c" >>$CONFIG_MK # Whacky includes needed to buck the trend + case "$OS" in + kfreebsd*) echo "#include <inttypes.h>" >>$CONFIG_H; + esac echo "#include <net/if.h>" >>$CONFIG_H echo "#include <net/if_var.h>" >>$CONFIG_H ;; |
