Changeset 4856

Show
Ignore:
Timestamp:
05/30/10 09:24:16 (4 years ago)
Author:
douglask
Message:

Added test for dlsym function in libdl (as needed by Fedora 13)

Location:
vic/branches/mpeg4
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • vic/branches/mpeg4/configure

    r4844 r4856  
    52955295        V_INCLUDE="$V_INCLUDE -I\"${ac_cv_c_decklinkapidispatch}\"" 
    52965296        V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-decklink.o" 
     5297 
     5298        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 
     5299$as_echo_n "checking for dlsym in -ldl... " >&6; } 
     5300if test "${ac_cv_lib_dl_dlsym+set}" = set; then : 
     5301  $as_echo_n "(cached) " >&6 
     5302else 
     5303  ac_check_lib_save_LIBS=$LIBS 
     5304LIBS="-ldl  $LIBS" 
     5305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     5306/* end confdefs.h.  */ 
     5307 
     5308/* Override any GCC internal prototype to avoid an error. 
     5309   Use char because int might match the return type of a GCC 
     5310   builtin and then its argument prototype would still apply.  */ 
     5311#ifdef __cplusplus 
     5312extern "C" 
     5313#endif 
     5314char dlsym (); 
     5315int 
     5316main () 
     5317{ 
     5318return dlsym (); 
     5319  ; 
     5320  return 0; 
     5321} 
     5322_ACEOF 
     5323if ac_fn_c_try_link "$LINENO"; then : 
     5324  ac_cv_lib_dl_dlsym=yes 
     5325else 
     5326  ac_cv_lib_dl_dlsym=no 
     5327fi 
     5328rm -f core conftest.err conftest.$ac_objext \ 
     5329    conftest$ac_exeext conftest.$ac_ext 
     5330LIBS=$ac_check_lib_save_LIBS 
     5331fi 
     5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 
     5333$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 
     5334if test "x$ac_cv_lib_dl_dlsym" = x""yes; then : 
     5335  V_LIB="$V_LIB -ldl" 
     5336fi 
     5337 
    52975338fi 
    52985339 
  • vic/branches/mpeg4/configure.in

    r4844 r4856  
    245245        V_INCLUDE="$V_INCLUDE -I\"${ac_cv_c_decklinkapidispatch}\"" 
    246246        V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-decklink.o" 
     247 
     248        AC_CHECK_LIB(dl, dlsym, [V_LIB="$V_LIB -ldl"]) 
    247249fi 
    248250