configure.in
changeset 1136 d16c010d5d98
parent 1133 609c060fd2a2
child 1140 af8b0f9ac2f4
--- a/configure.in	Thu Sep 08 06:34:28 2005 +0000
+++ b/configure.in	Thu Sep 08 06:43:51 2005 +0000
@@ -313,18 +313,8 @@
                 CFLAGS="$CFLAGS -DALSA_SUPPORT -DALSA_DYNAMIC=\$(alsa_lib) $ALSA_CFLAGS"
                 AC_SUBST(alsa_lib)
 
-                AC_MSG_CHECKING(for dlvsym)
                 use_dlvsym=no
-                AC_TRY_COMPILE([
-                  #include <stdio.h>
-                  #define __USE_GNU
-                  #include <dlfcn.h>
-                ],[
-                  dlvsym(NULL,"","");
-                ],[
-                use_dlvsym=yes
-                ])
-                AC_MSG_RESULT($use_dlvsym);
+                AC_CHECK_LIB(dl, dlvsym, [use_dlvsym=yes])
                 if test x$use_dlvsym = xyes; then
                     CFLAGS="$CFLAGS -DUSE_DLVSYM"
                 fi