428 |
test x"$ac_cv_lib_dl_dlopen" = xyes ; then |
test x"$ac_cv_lib_dl_dlopen" = xyes ; then |
429 |
AC_CACHE_CHECK([whether we have to add an underscore for dlsym], |
AC_CACHE_CHECK([whether we have to add an underscore for dlsym], |
430 |
libltdl_cv_need_uscore, [dnl |
libltdl_cv_need_uscore, [dnl |
431 |
|
save_LIBS="$LIBS" |
432 |
|
LIBS="$LIBS $LIBADD_DL" |
433 |
AC_TRY_RUN([ |
AC_TRY_RUN([ |
434 |
#if HAVE_DLFCN_H |
#if HAVE_DLFCN_H |
435 |
#include <dlfcn.h> |
#include <dlfcn.h> |
475 |
if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord"); |
if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord"); |
476 |
if(ptr1 && !ptr2) { dlclose(self); exit(0); } } exit(1); } |
if(ptr1 && !ptr2) { dlclose(self); exit(0); } } exit(1); } |
477 |
], libltdl_cv_need_uscore=no, libltdl_cv_need_uscore=yes, |
], libltdl_cv_need_uscore=no, libltdl_cv_need_uscore=yes, |
478 |
libltdl_cv_need_uscore=cross |
libltdl_cv_need_uscore=cross) |
479 |
)]) |
LIBS="$save_LIBS" |
480 |
|
]) |
481 |
fi |
fi |
482 |
fi |
fi |
483 |
|
|