[vlc-commits] [Git][videolan/vlc][master] configure.ac: Allow passing VLC_COMPILE_BY and VLC_COMPILE_HOST.
Steve Lhomme (@robUx4)
gitlab at videolan.org
Mon Oct 4 05:47:18 UTC 2021
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.
More information about the vlc-commits
mailing list