Skip to content

Commit 751f711

Browse files
committed
configure.ac: change code to work with /bin/sh -> /bin/dash
1 parent f32c02a commit 751f711

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

configure.ac

+11-12
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ AC_ARG_WITH([libmpeg2],
9999

100100
if test "x$with_libmpeg2" != "xno" ; then
101101
PKG_CHECK_MODULES(LIBMPEG2, [libmpeg2 >= 0.3.1], PKG_LIBMPEG2=1, PKG_LIBMPEG2=0)
102-
if test "$PKG_LIBMPEG2" == "1"; then
102+
if test "$PKG_LIBMPEG2" = "1"; then
103103
LIBMPEG_VERSION="`pkg-config --modversion libmpeg2`"
104104
AC_MSG_NOTICE([found libmpeg2 Version $LIBMPEG_VERSION])
105105
AC_SUBST(LIBMPEGX,$LIBMPEG2_LIBS)
@@ -133,7 +133,7 @@ AC_ARG_WITH([ffmpeg],
133133

134134
if test "x$with_ffmpeg" != "xno" ; then
135135
PKG_CHECK_MODULES(FFMPEG, libavutil libavformat [libavcodec >= 52.0.0], HAVE_FFMPEG=1, HAVE_FFMPEG=0)
136-
if test "$HAVE_FFMPEG" == "1"; then
136+
if test "$HAVE_FFMPEG" = "1"; then
137137
LIBAVCODEC_VERSION="`pkg-config --modversion libavcodec`"
138138
AC_MSG_NOTICE([found libavcodec Version $LIBAVCODEC_VERSION])
139139
OLDLDFLAGS="$LDFLAGS"
@@ -143,10 +143,10 @@ if test "x$with_ffmpeg" != "xno" ; then
143143
dnl LDFLAGS="$LDFLAGS $FFMPEG_LIBS"
144144
CXXFLAGS="$FFMPEG_CFLAGS $CXXFLAGS"
145145
AC_CHECK_MEMBER(AVIOContext.read_packet,HAVE_AVIOCONTEXT=1, HAVE_AVIOCONTEXT=0,[#include "libavformat/avformat.h"])
146-
if test "$HAVE_AVIOCONTEXT" == "1"; then
146+
if test "$HAVE_AVIOCONTEXT" = "1"; then
147147
CPPFLAGS="-DUSE_AVIOCONTEXT $CPPFLAGS"
148148
fi
149-
if test "$HAVE_AVIOCONTEXT" == "0" ; then
149+
if test "$HAVE_AVIOCONTEXT" = "0" ; then
150150
echo ffmpeg not usable
151151
HAVE_FFMPEG=0
152152
LDFLAGS="$OLDLDFLAGS"
@@ -157,7 +157,7 @@ if test "x$with_ffmpeg" != "xno" ; then
157157
AC_SUBST(decoderok,1)
158158
CXXFLAGS="-DUSE_FFMPEG $CXXFLAGS"
159159
AC_CHECK_MEMBER(AVFrame.width,HAVE_AVFRAMEWIDTH=1, HAVE_AVFRAMEWIDTH=0,[#include "libavcodec/avcodec.h"])
160-
if test "$HAVE_AVFRAMEWIDTH" == "0" ; then
160+
if test "$HAVE_AVFRAMEWIDTH" = "0" ; then
161161
CXXFLAGS="-DFORCE_CODECWIDTH $CXXFLAGS"
162162
fi
163163
dnl AC_SUBST(LIBS,"$LIBS $FFMPEG_LIBS")
@@ -189,7 +189,7 @@ if test "x$with_magick" != "xno" ; then
189189
],[mpp_defined="1"],[mpp_defined="0"]
190190
)
191191
CXXFLAGS=$ac_save_CXXFLAGS
192-
if test $mpp_defined -eq 1 && test $havemagick -eq 1; then
192+
if test $mpp_defined -eq 1 && test $havemagick -eq 1 ; then
193193
PICSRC="markpics"
194194
markpiccxxflags="$IMAGEMAGICK_CFLAGS"
195195
markpics_ldadd="$IMAGEMAGICK_LIBS"
@@ -215,8 +215,7 @@ dnl CXXFLAGS="-v -g -O3 $CXXFLAGS"
215215
CFLAGS="$CFLAGS -DFFMPEGDECODING"
216216
CPPFLAGS="$CPPFLAGS -DFFMPEGDECODING "
217217

218-
if test "$decoderok" != "1";
219-
then
218+
if test "$decoderok" != "1" ; then
220219
echo
221220
echo
222221
echo "can't find useable video-decoder"
@@ -233,20 +232,20 @@ else
233232
echo
234233
echo
235234
echo " this is noad Version $VERSION"
236-
if test "$libmpeg2ok" == "1" ; then
235+
if test "$libmpeg2ok" = "1" ; then
237236
echo " configured with libmpeg2 Version $LIBMPEG_VERSION"
238237
else
239238
echo " libmpeg2-support not configured"
240239
fi
241-
if test "$ffmpegok" == "1" ; then
240+
if test "$ffmpegok" = "1" ; then
242241
echo " configured with libavcodec Version $LIBAVCODEC_VERSION"
243242
else
244243
echo " ffmpeg-support not configured"
245244
fi
246-
if test "$libmagickok" == "1" ; then
245+
if test "$libmagickok" = "1" ; then
247246
echo " configured with Magick++ Version $LIBMAGICK_VERSION"
248247
fi
249-
if test "$with_tools" == "yes" ; then
248+
if test "$with_tools" = "yes" ; then
250249
echo " compile with tools: $TOOLSRC"
251250
fi
252251
echo

0 commit comments

Comments
 (0)