AC_DEFUN([VLC_SET_CFLAGS_WERROR], [
for element in [$1]; do
- eval "CFLAGS_WERROR_${element}="'"'"$2"''"'
+ eval "CFLAGS_WERROR_${element}="'"'"$2"'"'
+ am_modules_with_werror="${am_modules_with_werror} ${element}"
done
])
AC_MSG_RESULT(configure: creating ./vlc-config.in)
- am_all_modules="`for x in ${am_modules_with_cppflags} ${am_modules_with_cflags} ${am_modules_with_cxxflags} ${am_modules_with_objcflags} ${am_modules_with_ldflags} ${am_modules_with_libs}; do echo $x; done | sort | uniq`"
+ am_all_modules="`for x in ${am_modules_with_cppflags} ${am_modules_with_cflags} ${am_modules_with_cxxflags} ${am_modules_with_objcflags} ${am_modules_with_ldflags} ${am_modules_with_libs} ${am_modules_with_werror}; do echo $x; done | sort | uniq`"
rm -f vlc-config.in
sed -ne '/#@1@#/q;p' < "${srcdir}/vlc-config.in.in" \
if test "`eval echo @'$'LIBS_${x}@`" != "@@"; then
echo " libs=\"\${libs} `eval echo '$'LIBS_${x}`\""
fi
- if test "`eval echo @'$'LIBS_${x}@`" != "@@"; then
- echo " CFLAGS_WERROR=\"`eval echo '$'CFLAGS_WERROR_${x}`\""
+ if test "`eval echo @'$'CFLAGS_WERROR_${x}@`" != "@@"; then
+ echo " cflags_werror=\"`eval echo '$'CFLAGS_WERROR_${x}`\""
fi
echo " ;;"
] done >> vlc-config.in