[MPlayer-cvslog] r32232 - trunk/configure

diego subversion at mplayerhq.hu
Tue Sep 14 12:05:46 CEST 2010


Author: diego
Date: Tue Sep 14 12:05:46 2010
New Revision: 32232

Log:
Simplify dynamic loader check.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Tue Sep 14 11:48:18 2010	(r32231)
+++ trunk/configure	Tue Sep 14 12:05:46 2010	(r32232)
@@ -3579,14 +3579,9 @@ else
 fi
 
 echocheck "dynamic loader"
-cat > $TMPC << EOF
-#include <stddef.h>
-#include <dlfcn.h>
-int main(void) { dlopen("", 0); dlclose(NULL); dlsym(NULL, ""); return 0; }
-EOF
 _dl=no
-for _ld_tmp in "" "-ldl" ; do
-  cc_check $_ld_tmp && _ld_dl="$_ld_tmp" && _dl=yes && break
+for _ld_dl in "" -ldl; do
+  function_check dlfcn.h 'dlopen("", 0)' $_ld_dl && _ld_dl="$_ld_tmp" && _dl=yes && break
 done
 if test "$_dl" = yes ; then
   def_dl='#define HAVE_LIBDL 1'


More information about the MPlayer-cvslog mailing list