# HG changeset patch # User Ryan C. Gordon # Date 1126161831 0 # Node ID d16c010d5d980dc693d9bc9442c2a99e36cda825 # Parent cf6133247d34cd2dfe9f551dbfe22050643e2c5b Fix dlvsym() detection in the configure script. --ryan. From: Mike Frysinger To: sdl@libsdl.org Subject: Re: [SDL] sdl, sdl-mixer not compiling with uclibc Date: Wed, 7 Sep 2005 19:17:49 -0400 in this case actually, the error is in libsdl the configure check for dlvsym presence is pretty pointless, it currently always detects it AC_TRY_COMPILE([ #include #define __USE_GNU #include ],[ dlvsym(NULL,"",""); ],[ use_dlvsym=yes ]) since it's merely compiling, the warning about dlvsym being implicitly declared doesnt trigger a failure find attached a patch to fix this -mike diff -r cf6133247d34 -r d16c010d5d98 configure.in --- 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 - #define __USE_GNU - #include - ],[ - 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