lib: media_player: fix libvlc_MediaPlayerMediaChanged event
[vlc.git] / extras / tools / automake-clang.patch
blobd44b83f738429485324b7c4d3ad9df8570f13963
1 --- automake/lib/depcomp 2019-03-01 16:29:06.073143400 +0100
2 +++ automake/lib/depcomp.gccwindows 2019-03-01 16:29:30.646075800 +0100
3 @@ -563,6 +563,36 @@ msvc7msys)
4 exit 1
5 ;;
7 +gccwindows)
8 +## clang producing windows pathes
9 + for arg
10 + do
11 + case $arg in
12 + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
13 + *) set fnord "$@" "$arg" ;;
14 + esac
15 + shift # fnord
16 + shift # $arg
17 + done
18 + "$@"
19 + stat=$?
20 + if test $stat -ne 0; then
21 + rm -f "$tmpdepfile"
22 + exit $stat
23 + fi
24 + rm -f "$depfile"
26 + # Extracts the file names and escapes backslashes for cygpath.
27 + sed < "$tmpdepfile" '
28 +/^*\(.*\)/ {
29 + s//\1/
30 + s/\\/\\\\/g
31 + p
32 +}' | $cygpath_u | sed "s, /, \\\\,g" >> "$depfile"
33 + echo >> "$depfile" # make sure the fragment doesn't end with a backslash
34 + rm -f "$tmpdepfile"
35 + ;;
37 #nosideeffect)
38 # This comment above is used by automake to tell side-effect
39 # dependency tracking mechanisms from slower ones.
40 --- automake/m4/depend.m4 2019-03-01 16:22:29.083243300 +0100
41 +++ automake/m4/depend.m4.gccwindows 2019-03-01 16:22:36.408049300 +0100
42 @@ -152,7 +152,8 @@ fi
43 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
44 AM_CONDITIONAL([am__fastdep$1], [
45 test "x$enable_dependency_tracking" != xno \
46 - && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
47 + && ( test "$am_cv_$1_dependencies_compiler_type" = gcc3 ||
48 + test "$am_cv_$1_dependencies_compiler_type" = gccwindows )])