| @@ -445,29 +445,32 @@ AC_OPTIONAL_FORMAT(flac, FLAC, · 444 unmodified lines |
| 445 | [PKG_CHECK_MODULES([FLAC], [flac], [], [using_flac=no])]) | 445 | [PKG_CHECK_MODULES([FLAC], [flac], [], [using_flac=no])]) |
| 446 | | 446 | |
| 447 | | 447 | |
| 448 | dnl When enable_dl_amrbw, do not let add libraries to be linked in | | |
| 449 | dnl since they will be dlopen()'ed instead. | | |
| 450 | ac_sox_save_AMRWB_LIBS="$AMRWB_LIBS" | | |
| 451 | tmp_using_amrwb=no | 448 | tmp_using_amrwb=no |
| 452 | AC_CHECK_HEADERS(opencore-amrwb/dec_if.h, | 449 | AC_CHECK_HEADERS(opencore-amrwb/dec_if.h, |
| 453 | [AC_CHECK_LIB(opencore-amrwb, D_IF_init, | 450 | [AC_CHECK_LIB(opencore-amrwb, D_IF_init, |
| 454 | [AMRWB_LIBS="$AMRWB_LIBS -lopencore-amrwb"; tmp_using_amrwb=$opt_default])]) | 451 | [OPENCORE_AMRWB_LIBS="$OPENCORE_AMRWB_LIBS -lopencore-amrwb"; tmp_using_amrwb=$opt_default])]) |
| 455 | AC_CHECK_HEADERS(vo-amrwbenc/enc_if.h, | 452 | AC_CHECK_HEADERS(vo-amrwbenc/enc_if.h, |
| 456 | [AC_CHECK_LIB(vo-amrwbenc, E_IF_init, | 453 | [AC_CHECK_LIB(vo-amrwbenc, E_IF_init, |
| 457 | AMRWB_LIBS="$AMRWB_LIBS -lvo-amrwbenc"; tmp_using_amrwb=$opt_default)]) | 454 | [VO_AMRWBENC_LIBS="$VO_AMRWBENC_LIBS -lvo-amrwbenc"; tmp_using_amrwb=$opt_default])]) |
| 458 | AC_ARG_ENABLE(dl_amrwb, | 455 | AC_ARG_ENABLE(dl_opencore_amrwb, |
| 459 | AS_HELP_STRING([--enable-dl-amrwb], | 456 | AS_HELP_STRING([--enable-dl-opencore-amrwb], |
| 460 | [Dlopen amrbw instead of linking in.]), | 457 | [Dlopen opencore-amrbw instead of linking in.])) |
| 461 | enable_dl_amrwb=$enableval, enable_dl_amrwb=no) | 458 | AC_ARG_ENABLE(dl_vo_amrwbenc, |
| 462 | if test "x$using_libltdl" = "xyes" -a "x$enable_dl_amrwb" = "xyes"; then | 459 | AS_HELP_STRING([--enable-dl-vo-amrwbenc], |
| 463 | AC_DEFINE(DL_AMRWB, 1, [Define to dlopen() amrwb.]) | 460 | [Dlopen vo-amrbwenc instead of linking in.])) |
| 464 | dnl When enable_dl_amrwb, do not let SOX_PATH_AMRWB add libraries | 461 | if test "$using_libltdl" != "yes"; then |
| 465 | dnl to be linked in (since they will be dlopen()'ed instead). | 462 | enable_dl_opencore_amrwb=no |
| 466 | AMRWB_LIBS="$ac_sox_save_AMRWB_LIBS" | 463 | enable_dl_vo_amrwbenc=no |
| 467 | dnl Force to using regardless if headers or libraries were found. | 464 | fi |
| 468 | tmp_using_amrwb=yes | 465 | if test "$enable_dl_opencore_amrwb" = "yes"; then |
| | 466 | AC_DEFINE(DL_OPENCORE_AMRWB, 1, [Define to dlopen() opencore-amrwb.]) |
| | 467 | else |
| | 468 | AMRWB_LIBS="$AMRWB_LIBS $OPENCORE_AMRWB_LIBS" |
| | 469 | fi |
| | 470 | if test "$enable_dl_vo_amrwbenc" = "yes"; then |
| | 471 | AC_DEFINE(DL_VO_AMRWBENC, 1, [Define to dlopen() vo-amrwbenc.]) |
| 469 | else | 472 | else |
| 470 | enable_dl_amrwb="no" | 473 | AMRWB_LIBS="$AMRWB_LIBS $VO_AMRWBENC_LIBS" |
| 471 | fi | 474 | fi |
| 472 | AC_OPTIONAL_FORMAT(amrwb, AMRWB, [using_amrwb=$tmp_using_amrwb]) | 475 | AC_OPTIONAL_FORMAT(amrwb, AMRWB, [using_amrwb=$tmp_using_amrwb]) |
| 473 | | 476 | |
| @@ -479,19 +482,18 @@ AC_CHECK_HEADERS(opencore-amrnb/interf_dec.h, · 5 unmodified lines |
| 479 | [AC_CHECK_LIB(opencore-amrnb, Decoder_Interface_init, | 482 | [AC_CHECK_LIB(opencore-amrnb, Decoder_Interface_init, |
| 480 | AMRNB_LIBS="$AMRNB_LIBS -lopencore-amrnb", tmp_using_amrnb=no)], | 483 | AMRNB_LIBS="$AMRNB_LIBS -lopencore-amrnb", tmp_using_amrnb=no)], |
| 481 | [tmp_using_amrnb=no]) | 484 | [tmp_using_amrnb=no]) |
| 482 | AC_ARG_ENABLE(dl_amrnb, | 485 | AC_ARG_ENABLE(dl_opencore_amrnb, |
| 483 | AS_HELP_STRING([--enable-dl-amrnb], | 486 | AS_HELP_STRING([--enable-dl-opencore-amrnb], |
| 484 | [Dlopen amrnb instead of linking in.]), | 487 | [Dlopen opencore-amrnb instead of linking in.])) |
| 485 | enable_dl_amrnb=$enableval, enable_dl_amrnb=no) | 488 | if test "$using_libltdl" = "yes" -a "$enable_dl_opencore_amrnb" = "yes"; then |
| 486 | if test "x$using_libltdl" = "xyes" -a "x$enable_dl_amrnb" = "xyes"; then | 489 | AC_DEFINE(DL_OPENCORE_AMRNB, 1, [Define to dlopen() opencore-amrnb.]) |
| 487 | AC_DEFINE(DL_AMRNB, 1, [Define to dlopen() amrnb.]) | | |
| 488 | dnl When enable_dl_amrnb, do not let SOX_PATH_AMRNB add libraries | 490 | dnl When enable_dl_amrnb, do not let SOX_PATH_AMRNB add libraries |
| 489 | dnl to be linked in (since they will be dlopen()'ed instead). | 491 | dnl to be linked in (since they will be dlopen()'ed instead). |
| 490 | AMRNB_LIBS="$ac_sox_save_AMRNB_LIBS" | 492 | AMRNB_LIBS="$ac_sox_save_AMRNB_LIBS" |
| 491 | dnl Force to using regardless if headers or libraries were found. | 493 | dnl Force to using regardless if headers or libraries were found. |
| 492 | tmp_using_amrnb=yes | 494 | tmp_using_amrnb=yes |
| 493 | else | 495 | else |
| 494 | enable_dl_amrnb="no" | 496 | enable_dl_opencore_amrnb="no" |
| 495 | fi | 497 | fi |
| 496 | AC_OPTIONAL_FORMAT(amrnb, AMRNB, [using_amrnb=$tmp_using_amrnb]) | 498 | AC_OPTIONAL_FORMAT(amrnb, AMRNB, [using_amrnb=$tmp_using_amrnb]) |
| 497 | | 499 | |
| @@ -638,11 +640,12 @@ echo · 140 unmodified lines |
| 638 | echo "OPTIONAL FILE FORMATS" | 640 | echo "OPTIONAL FILE FORMATS" |
| 639 | echo "amrnb......................$using_amrnb" | 641 | echo "amrnb......................$using_amrnb" |
| 640 | if test "x$using_amrnb" = "xyes"; then | 642 | if test "x$using_amrnb" = "xyes"; then |
| 641 | echo " dlopen amrnb..............$enable_dl_amrnb" | 643 | echo " dlopen amrnb..............${enable_dl_opencore_amrnb:-no}" |
| 642 | fi | 644 | fi |
| 643 | echo "amrwb......................$using_amrwb" | 645 | echo "amrwb......................$using_amrwb" |
| 644 | if test "x$using_amrwb" = "xyes"; then | 646 | if test "x$using_amrwb" = "xyes"; then |
| 645 | echo " dlopen amrwb..............$enable_dl_amrwb" | 647 | echo " dlopen opencore-amrwb.....${enable_dl_opencore_amrwb:-no}" |
| | 648 | echo " dlopen vo-amrwbenc........${enable_dl_vo_amrwbenc:-no}" |
| 646 | fi | 649 | fi |
| 647 | echo "flac.......................$using_flac" | 650 | echo "flac.......................$using_flac" |
| 648 | echo "gsm........................$using_gsm" | 651 | echo "gsm........................$using_gsm" |