Re #1320: Fixed configure script for detecting ffmpeg libraries (thanks to Samuel Vinson for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3691 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
5707f359f7
commit
d8aa67c204
12798
aconfigure
12798
aconfigure
File diff suppressed because it is too large
Load Diff
|
@ -828,19 +828,25 @@ AC_ARG_ENABLE(ffmpeg,
|
|||
av_register_all,
|
||||
[ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
|
||||
ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat"
|
||||
]
|
||||
],
|
||||
[],
|
||||
[-lavcodec -lavutil]
|
||||
)
|
||||
AC_CHECK_LIB(avcodec,
|
||||
avcodec_init,
|
||||
[ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
|
||||
ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec"
|
||||
]
|
||||
],
|
||||
[],
|
||||
[-lavutil]
|
||||
)
|
||||
AC_CHECK_LIB(swscale,
|
||||
sws_scale,
|
||||
[ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
|
||||
ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale"
|
||||
]
|
||||
],
|
||||
[],
|
||||
[-lavutil]
|
||||
)
|
||||
AC_CHECK_LIB(avutil,
|
||||
av_malloc,
|
||||
|
|
Loading…
Reference in New Issue