]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
build: autodetect platform 391/head
authorDamjan Marion <damjan.marion@gmail.com>
Fri, 16 May 2014 20:37:39 +0000 (22:37 +0200)
committerDamjan Marion <damjan.marion@gmail.com>
Fri, 16 May 2014 20:51:02 +0000 (22:51 +0200)
support/configure.inc

index 8e75275b58a81c6afbc985213e6e97916af3714a..8ddae9820cc7f71647e06d0d7b852b88274143f5 100755 (executable)
@@ -12,7 +12,7 @@
 CONFIGURE_ARGS="$*"
 
 # System setup
-[ -z "$PLATFORM" ] && PLATFORM=linux
+[ -z "$PLATFORM" ] && PLATFORM=$(uname -s | tr "[:upper:]" "[:lower:]")
 [ -z "$CPU"      ] && CPU=generic
 [ -z "$ARCH"     ] && ARCH=`uname -m`
 [ -z "$OSENV"    ] && OSENV=posix