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