Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
9e7ed024 by Vagrant Cascadian at 2021-10-04T05:34:26+00:00
configure.ac: Allow passing VLC_COMPILE_BY and VLC_COMPILE_HOST.

This allows passing a specific value instead of inheriting these
values from the build environment.

Fixes #26035

- - - - -


1 changed file:

- configure.ac


Changes:

=====================================
configure.ac
=====================================
@@ -4501,8 +4501,14 @@ AC_SUBST([VERSION_MINOR])
 AC_SUBST([VERSION_REVISION])
 AC_SUBST([VERSION_EXTRA])
 AC_SUBST([COPYRIGHT_YEARS])
-AC_DEFINE_UNQUOTED([VLC_COMPILE_BY], "`whoami|sed -e 's/\\\/\\\\\\\/g'`", 
[user who ran configure])
-AC_DEFINE_UNQUOTED([VLC_COMPILE_HOST], "`hostname -f 2>/dev/null || 
hostname`", [host which ran configure])
+if [ -z "$VLC_COMPILE_BY" ]; then
+   VLC_COMPILE_BY=`whoami|sed -e 's/\\\/\\\\\\\/g'`
+fi
+AC_DEFINE_UNQUOTED([VLC_COMPILE_BY], "$VLC_COMPILE_BY", [user who ran 
configure])
+if [ -z "$VLC_COMPILE_HOST" ]; then
+   VLC_COMPILE_HOST=`hostname -f 2>/dev/null || hostname`
+fi
+AC_DEFINE_UNQUOTED([VLC_COMPILE_HOST], "$VLC_COMPILE_HOST", [host which ran 
configure])
 AC_DEFINE_UNQUOTED([VLC_COMPILER], "`$CC -v 2>&1 | tail -n 1 | sed -e 's/ 
*$//'`", [compiler])
 dnl
 dnl  Handle substvars that use $(top_srcdir)



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/9e7ed0247dd298fe8597431ae0738882e734011b

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/9e7ed0247dd298fe8597431ae0738882e734011b
You're receiving this email because of your account on code.videolan.org.


_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to