History

Merge commit '54e39b102e29adcc2f59f1eca85be5f86c89454b'

* commit '54e39b102e29adcc2f59f1eca85be5f86c89454b': configure: Explicitly spell out first require_pkg_config() parameter

James Almer committed 9 years ago

Commit 00a61f32 parents 1a4d2e8 54e39b11 file · +17 −18Browse files

Unified · Split

configure+17−18
@@ -1395,7 +1395,6 @@ use_pkg_config(){ · 1394 unmodified lines
1395 shift1395 shift
1396 pkg_version="$1"1396 pkg_version="$1"
1397 pkg="${1%% *}"1397 pkg="${1%% *}"
1398 test "$name" = "" && name=$pkg
1399 check_pkg_config "$@" || return 11398 check_pkg_config "$@" || return 1
1400 add_cflags $(get_safe "${pkg}_cflags")1399 add_cflags $(get_safe "${pkg}_cflags")
1401 add_extralibs $(get_safe "${pkg}_extralibs")1400 add_extralibs $(get_safe "${pkg}_extralibs")
@@ -5709,7 +5708,7 @@ case "$custom_allocator" in · 4307 unmodified lines
5709 require libjemalloc jemalloc/jemalloc.h malloc -ljemalloc5708 require libjemalloc jemalloc/jemalloc.h malloc -ljemalloc
5710 ;;5709 ;;
5711 tcmalloc)5710 tcmalloc)
5712 require_pkg_config "" libtcmalloc gperftools/tcmalloc.h tc_malloc5711 require_pkg_config libtcmalloc libtcmalloc gperftools/tcmalloc.h tc_malloc
5713 malloc_prefix=tc_5712 malloc_prefix=tc_
5714 ;;5713 ;;
5715esac5714esac
@@ -5909,19 +5908,19 @@ enabled decklink && { require_header DeckLinkAPI.h && · 193 unmodified lines
5909enabled libndi_newtek && require_header Processing.NDI.Lib.h5908enabled libndi_newtek && require_header Processing.NDI.Lib.h
5910enabled frei0r && require_header frei0r.h5909enabled frei0r && require_header frei0r.h
5911enabled gmp && require gmp gmp.h mpz_export -lgmp5910enabled gmp && require gmp gmp.h mpz_export -lgmp
5912enabled gnutls && require_pkg_config "" gnutls gnutls/gnutls.h gnutls_global_init5911enabled gnutls && require_pkg_config gnutls gnutls gnutls/gnutls.h gnutls_global_init
5913enabled jni && { [ $target_os = "android" ] && check_header jni.h && enabled pthreads || die "ERROR: jni not found"; }5912enabled jni && { [ $target_os = "android" ] && check_header jni.h && enabled pthreads || die "ERROR: jni not found"; }
5914enabled ladspa && require_header ladspa.h5913enabled ladspa && require_header ladspa.h
5915enabled libiec61883 && require libiec61883 libiec61883/iec61883.h iec61883_cmp_connect -lraw1394 -lavc1394 -lrom1394 -liec618835914enabled libiec61883 && require libiec61883 libiec61883/iec61883.h iec61883_cmp_connect -lraw1394 -lavc1394 -lrom1394 -liec61883
5916enabled libass && require_pkg_config "" libass ass/ass.h ass_library_init5915enabled libass && require_pkg_config libass libass ass/ass.h ass_library_init
5917enabled libbluray && require_pkg_config "" libbluray libbluray/bluray.h bd_open5916enabled libbluray && require_pkg_config libbluray libbluray libbluray/bluray.h bd_open
5918enabled libbs2b && require_pkg_config "" libbs2b bs2b.h bs2b_open5917enabled libbs2b && require_pkg_config libbs2b libbs2b bs2b.h bs2b_open
5919enabled libcelt && require libcelt celt/celt.h celt_decode -lcelt0 &&5918enabled libcelt && require libcelt celt/celt.h celt_decode -lcelt0 &&
5920 { check_lib libcelt celt/celt.h celt_decoder_create_custom -lcelt0 ||5919 { check_lib libcelt celt/celt.h celt_decoder_create_custom -lcelt0 ||
5921 die "ERROR: libcelt must be installed and version must be >= 0.11.0."; }5920 die "ERROR: libcelt must be installed and version must be >= 0.11.0."; }
5922enabled libcaca && require_pkg_config libcaca caca caca.h caca_create_canvas5921enabled libcaca && require_pkg_config libcaca caca caca.h caca_create_canvas
5923enabled libdc1394 && require_pkg_config libdc1394 libdc1394-2 dc1394/dc1394.h dc1394_new5922enabled libdc1394 && require_pkg_config libdc1394 libdc1394-2 dc1394/dc1394.h dc1394_new
5924enabled libdrm && require_pkg_config "" libdrm xf86drm.h drmGetVersion5923enabled libdrm && require_pkg_config libdrm libdrm xf86drm.h drmGetVersion
5925enabled libfdk_aac && { use_pkg_config libfdk_aac fdk-aac "fdk-aac/aacenc_lib.h" aacEncOpen ||5924enabled libfdk_aac && { use_pkg_config libfdk_aac fdk-aac "fdk-aac/aacenc_lib.h" aacEncOpen ||
5926 { require libfdk_aac fdk-aac/aacenc_lib.h aacEncOpen -lfdk-aac &&5925 { require libfdk_aac fdk-aac/aacenc_lib.h aacEncOpen -lfdk-aac &&
5927 warn "using libfdk without pkg-config"; } }5926 warn "using libfdk without pkg-config"; } }
@@ -5931,7 +5930,7 @@ enabled fontconfig && enable libfontconfig · 3 unmodified lines
5931enabled libfontconfig && require_pkg_config libfontconfig fontconfig "fontconfig/fontconfig.h" FcInit5930enabled libfontconfig && require_pkg_config libfontconfig fontconfig "fontconfig/fontconfig.h" FcInit
5932enabled libfreetype && require_pkg_config libfreetype2 freetype2 "ft2build.h FT_FREETYPE_H" FT_Init_FreeType5931enabled libfreetype && require_pkg_config libfreetype2 freetype2 "ft2build.h FT_FREETYPE_H" FT_Init_FreeType
5933enabled libfribidi && require_pkg_config libfribidi fribidi fribidi.h fribidi_version_info5932enabled libfribidi && require_pkg_config libfribidi fribidi fribidi.h fribidi_version_info
5934enabled libgme && { use_pkg_config "" libgme gme/gme.h gme_new_emu ||5933enabled libgme && { use_pkg_config libgme libgme gme/gme.h gme_new_emu ||
5935 require libgme gme/gme.h gme_new_emu -lgme -lstdc++; }5934 require libgme gme/gme.h gme_new_emu -lgme -lstdc++; }
5936enabled libgsm && { for gsm_hdr in "gsm.h" "gsm/gsm.h"; do5935enabled libgsm && { for gsm_hdr in "gsm.h" "gsm/gsm.h"; do
5937 check_lib libgsm "${gsm_hdr}" gsm_create -lgsm && break;5936 check_lib libgsm "${gsm_hdr}" gsm_create -lgsm && break;
@@ -5944,9 +5943,9 @@ enabled libkvazaar && require_pkg_config libkvazaar "kvazaar >= 0.8.1" kv · 6 unmodified lines
5944# Media SDK or Intel Media Server Studio, these don't come with5943# Media SDK or Intel Media Server Studio, these don't come with
5945# pkg-config support. Instead, users should make sure that the build5944# pkg-config support. Instead, users should make sure that the build
5946# can find the libraries and headers through other means.5945# can find the libraries and headers through other means.
5947enabled libmfx && { use_pkg_config "" libmfx "mfx/mfxvideo.h" MFXInit ||5946enabled libmfx && { use_pkg_config libmfx libmfx "mfx/mfxvideo.h" MFXInit ||
5948 { require libmfx "mfx/mfxvideo.h" MFXInit -llibmfx && warn "using libmfx without pkg-config"; } }5947 { require libmfx "mfx/mfxvideo.h" MFXInit -llibmfx && warn "using libmfx without pkg-config"; } }
5949enabled libmodplug && require_pkg_config "" libmodplug libmodplug/modplug.h ModPlug_Load5948enabled libmodplug && require_pkg_config libmodplug libmodplug libmodplug/modplug.h ModPlug_Load
5950enabled libmp3lame && require "libmp3lame >= 3.98.3" lame/lame.h lame_set_VBR_quality -lmp3lame5949enabled libmp3lame && require "libmp3lame >= 3.98.3" lame/lame.h lame_set_VBR_quality -lmp3lame
5951enabled libmysofa && require libmysofa "mysofa.h" mysofa_load -lmysofa5950enabled libmysofa && require libmysofa "mysofa.h" mysofa_load -lmysofa
5952enabled libnpp && { check_lib libnpp npp.h nppGetLibVersion -lnppig -lnppicc -lnppc ||5951enabled libnpp && { check_lib libnpp npp.h nppGetLibVersion -lnppig -lnppicc -lnppc ||
@@ -5976,25 +5975,25 @@ enabled libopus && { · 23 unmodified lines
5976 require_pkg_config libopus opus opus_multistream.h opus_multistream_surround_encoder_create5975 require_pkg_config libopus opus opus_multistream.h opus_multistream_surround_encoder_create
5977 }5976 }
5978}5977}
5979enabled libpulse && require_pkg_config "" libpulse pulse/pulseaudio.h pa_context_new5978enabled libpulse && require_pkg_config libpulse libpulse pulse/pulseaudio.h pa_context_new
5980enabled librsvg && require_pkg_config librsvg librsvg-2.0 librsvg-2.0/librsvg/rsvg.h rsvg_handle_render_cairo5979enabled librsvg && require_pkg_config librsvg librsvg-2.0 librsvg-2.0/librsvg/rsvg.h rsvg_handle_render_cairo
5981enabled librtmp && require_pkg_config "" librtmp librtmp/rtmp.h RTMP_Socket5980enabled librtmp && require_pkg_config librtmp librtmp librtmp/rtmp.h RTMP_Socket
5982enabled librubberband && require_pkg_config librubberband "rubberband >= 1.8.1" rubberband/rubberband-c.h rubberband_new5981enabled librubberband && require_pkg_config librubberband "rubberband >= 1.8.1" rubberband/rubberband-c.h rubberband_new
5983enabled libshine && require_pkg_config libshine shine shine/layer3.h shine_encode_buffer5982enabled libshine && require_pkg_config libshine shine shine/layer3.h shine_encode_buffer
5984enabled libsmbclient && { use_pkg_config libsmbclient smbclient libsmbclient.h smbc_init ||5983enabled libsmbclient && { use_pkg_config libsmbclient smbclient libsmbclient.h smbc_init ||
5985 require smbclient libsmbclient.h smbc_init -lsmbclient; }5984 require smbclient libsmbclient.h smbc_init -lsmbclient; }
5986enabled libsnappy && require libsnappy snappy-c.h snappy_compress -lsnappy5985enabled libsnappy && require libsnappy snappy-c.h snappy_compress -lsnappy
5987enabled libsoxr && require libsoxr soxr.h soxr_create -lsoxr && LIBSOXR="-lsoxr"5986enabled libsoxr && require libsoxr soxr.h soxr_create -lsoxr && LIBSOXR="-lsoxr"
5988enabled libssh && require_pkg_config "" libssh libssh/sftp.h sftp_init5987enabled libssh && require_pkg_config libssh libssh libssh/sftp.h sftp_init
5989enabled libspeex && require_pkg_config libspeex speex speex/speex.h speex_decoder_init -lspeex5988enabled libspeex && require_pkg_config libspeex speex speex/speex.h speex_decoder_init -lspeex
5990enabled libtesseract && require_pkg_config libtesseract tesseract tesseract/capi.h TessBaseAPICreate5989enabled libtesseract && require_pkg_config libtesseract tesseract tesseract/capi.h TessBaseAPICreate
5991enabled libtheora && require libtheora theora/theoraenc.h th_info_init -ltheoraenc -ltheoradec -logg5990enabled libtheora && require libtheora theora/theoraenc.h th_info_init -ltheoraenc -ltheoradec -logg
5992enabled libtwolame && require libtwolame twolame.h twolame_init -ltwolame &&5991enabled libtwolame && require libtwolame twolame.h twolame_init -ltwolame &&
5993 { check_lib libtwolame twolame.h twolame_encode_buffer_float32_interleaved -ltwolame ||5992 { check_lib libtwolame twolame.h twolame_encode_buffer_float32_interleaved -ltwolame ||
5994 die "ERROR: libtwolame must be installed and version must be >= 0.3.10"; }5993 die "ERROR: libtwolame must be installed and version must be >= 0.3.10"; }
5995enabled libv4l2 && require_pkg_config "" libv4l2 libv4l2.h v4l2_ioctl5994enabled libv4l2 && require_pkg_config libv4l2 libv4l2 libv4l2.h v4l2_ioctl
5996enabled libvidstab && require_pkg_config libvidstab "vidstab >= 0.98" vid.stab/libvidstab.h vsMotionDetectInit5995enabled libvidstab && require_pkg_config libvidstab "vidstab >= 0.98" vid.stab/libvidstab.h vsMotionDetectInit
5997enabled libvmaf && require_pkg_config "" libvmaf libvmaf.h compute_vmaf5996enabled libvmaf && require_pkg_config libvmaf libvmaf libvmaf.h compute_vmaf
5998enabled libvo_amrwbenc && require libvo_amrwbenc vo-amrwbenc/enc_if.h E_IF_init -lvo-amrwbenc5997enabled libvo_amrwbenc && require libvo_amrwbenc vo-amrwbenc/enc_if.h E_IF_init -lvo-amrwbenc
5999enabled libvorbis && require_pkg_config libvorbis vorbis vorbis/codec.h vorbis_info_init &&5998enabled libvorbis && require_pkg_config libvorbis vorbis vorbis/codec.h vorbis_info_init &&
6000 require_pkg_config libvorbisenc vorbisenc vorbis/vorbisenc.h vorbis_encode_init5999 require_pkg_config libvorbisenc vorbisenc vorbis/vorbisenc.h vorbis_encode_init
@@ -6038,7 +6037,7 @@ enabled libx265 && require_pkg_config libx265 x265 x265.h x265_api_get · 37 unmodified lines
6038enabled libxavs && require libxavs "stdint.h xavs.h" xavs_encoder_encode -lxavs6037enabled libxavs && require libxavs "stdint.h xavs.h" xavs_encoder_encode -lxavs
6039enabled libxvid && require libxvid xvid.h xvid_global -lxvidcore6038enabled libxvid && require libxvid xvid.h xvid_global -lxvidcore
6040enabled libzimg && require_pkg_config libzimg "zimg >= 2.3.0" zimg.h zimg_get_api_version6039enabled libzimg && require_pkg_config libzimg "zimg >= 2.3.0" zimg.h zimg_get_api_version
6041enabled libzmq && require_pkg_config "" libzmq zmq.h zmq_ctx_new6040enabled libzmq && require_pkg_config libzmq libzmq zmq.h zmq_ctx_new
6042enabled libzvbi && require libzvbi libzvbi.h vbi_decoder_new -lzvbi &&6041enabled libzvbi && require libzvbi libzvbi.h vbi_decoder_new -lzvbi &&
6043 { check_cpp_condition libzvbi.h "VBI_VERSION_MAJOR > 0 || VBI_VERSION_MINOR > 2 || VBI_VERSION_MINOR == 2 && VBI_VERSION_MICRO >= 28" ||6042 { check_cpp_condition libzvbi.h "VBI_VERSION_MAJOR > 0 || VBI_VERSION_MINOR > 2 || VBI_VERSION_MINOR == 2 && VBI_VERSION_MICRO >= 28" ||
6044 enabled gpl || die "ERROR: libzvbi requires version 0.2.28 or --enable-gpl."; }6043 enabled gpl || die "ERROR: libzvbi requires version 0.2.28 or --enable-gpl."; }
@@ -6072,8 +6071,8 @@ enabled omx_rpi && { check_header OMX_Core.h || · 27 unmodified lines
6072 { ! enabled cross_compile && add_cflags -isystem/opt/vc/include/IL && check_header OMX_Core.h ; } ||6071 { ! enabled cross_compile && add_cflags -isystem/opt/vc/include/IL && check_header OMX_Core.h ; } ||
6073 die "ERROR: OpenMAX IL headers not found"; }6072 die "ERROR: OpenMAX IL headers not found"; }
6074enabled omx && require_header OMX_Core.h6073enabled omx && require_header OMX_Core.h
6075enabled openssl && { use_pkg_config "" openssl openssl/ssl.h OPENSSL_init_ssl ||6074enabled openssl && { use_pkg_config openssl openssl openssl/ssl.h OPENSSL_init_ssl ||
6076 use_pkg_config "" openssl openssl/ssl.h SSL_library_init ||6075 use_pkg_config openssl openssl openssl/ssl.h SSL_library_init ||
6077 check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto ||6076 check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto ||
6078 check_lib openssl openssl/ssl.h SSL_library_init -lssl32 -leay32 ||6077 check_lib openssl openssl/ssl.h SSL_library_init -lssl32 -leay32 ||
6079 check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||6078 check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t