]> git.sesse.net Git - vlc/commitdiff
Not only Cygwin lacks the --short switch to hostname
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 14 Jan 2010 20:52:35 +0000 (22:52 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 14 Jan 2010 20:53:11 +0000 (22:53 +0200)
configure.ac

index c04857c5a0e3ceab5b330b1b0ee7e2461793bd53..b73734fe99853da690d9c8a75922d78506d080e0 100644 (file)
@@ -5032,12 +5032,7 @@ AC_SUBST(VERSION_REVISION)
 AC_SUBST(VERSION_EXTRA)
 AC_SUBST(COPYRIGHT_YEARS)
 AC_DEFINE_UNQUOTED(VLC_COMPILE_BY, "`whoami`", [user who ran configure])
-if test "${build_os}" = "cygwin"
-then
-    AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, "`hostname`", [host which ran configure])
-else
-    AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, "`hostname -s`", [host which ran configure])
-fi
+AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, "`hostname -s 2>/dev/null || hostname`", [host which ran configure])
 AC_DEFINE_UNQUOTED(VLC_COMPILE_DOMAIN, "`dnsdomainname 2>/dev/null || domainname 2>/dev/null || echo unknown`", [domain of the host which ran configure])
 AC_DEFINE_UNQUOTED(VLC_COMPILER, "`$CC -v 2>&1 | tail -n 1`", [compiler])
 dnl Win32 need s a numerical version_extra.