comparison configure.in @ 1136:d16c010d5d98

Fix dlvsym() detection in the configure script. --ryan. From: Mike Frysinger <vapier@gentoo.org> 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 <stdio.h> #define __USE_GNU #include <dlfcn.h> ],[ 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
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 08 Sep 2005 06:43:51 +0000
parents 609c060fd2a2
children af8b0f9ac2f4
comparison
equal deleted inserted replaced
1135:cf6133247d34 1136:d16c010d5d98
311 if test x$use_dlopen = xyes && \ 311 if test x$use_dlopen = xyes && \
312 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then 312 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
313 CFLAGS="$CFLAGS -DALSA_SUPPORT -DALSA_DYNAMIC=\$(alsa_lib) $ALSA_CFLAGS" 313 CFLAGS="$CFLAGS -DALSA_SUPPORT -DALSA_DYNAMIC=\$(alsa_lib) $ALSA_CFLAGS"
314 AC_SUBST(alsa_lib) 314 AC_SUBST(alsa_lib)
315 315
316 AC_MSG_CHECKING(for dlvsym)
317 use_dlvsym=no 316 use_dlvsym=no
318 AC_TRY_COMPILE([ 317 AC_CHECK_LIB(dl, dlvsym, [use_dlvsym=yes])
319 #include <stdio.h>
320 #define __USE_GNU
321 #include <dlfcn.h>
322 ],[
323 dlvsym(NULL,"","");
324 ],[
325 use_dlvsym=yes
326 ])
327 AC_MSG_RESULT($use_dlvsym);
328 if test x$use_dlvsym = xyes; then 318 if test x$use_dlvsym = xyes; then
329 CFLAGS="$CFLAGS -DUSE_DLVSYM" 319 CFLAGS="$CFLAGS -DUSE_DLVSYM"
330 fi 320 fi
331 else 321 else
332 CFLAGS="$CFLAGS -DALSA_SUPPORT $ALSA_CFLAGS" 322 CFLAGS="$CFLAGS -DALSA_SUPPORT $ALSA_CFLAGS"