Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 825342
Collapse All | Expand All

(-)a/configure.ac (-4 / +5 lines)
Lines 213-219 if test $sasl_cv_uscore = yes; then Link Here
213
	AC_MSG_CHECKING(whether dlsym adds the underscore for us)
213
	AC_MSG_CHECKING(whether dlsym adds the underscore for us)
214
	cmu_save_LIBS="$LIBS"
214
	cmu_save_LIBS="$LIBS"
215
	LIBS="$LIBS $SASL_DL_LIB"
215
	LIBS="$LIBS $SASL_DL_LIB"
216
	AC_CACHE_VAL(sasl_cv_dlsym_adds_uscore,AC_TRY_RUN( [
216
	AC_CACHE_VAL([sasl_cv_dlsym_adds_uscore],
217
	             [AC_TRY_RUN([
217
#include <dlfcn.h>
218
#include <dlfcn.h>
218
#include <stdio.h>
219
#include <stdio.h>
219
#include <stdlib.h>
220
#include <stdlib.h>
Lines 221-229 void foo() { int i=0;} Link Here
221
int main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
222
int main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
222
    if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo");
223
    if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo");
223
    if(ptr1 && !ptr2) exit(0); } exit(1); } 
224
    if(ptr1 && !ptr2) exit(0); } exit(1); } 
224
], [sasl_cv_dlsym_adds_uscore=yes], sasl_cv_dlsym_adds_uscore=no
225
], [sasl_cv_dlsym_adds_uscore=yes], [sasl_cv_dlsym_adds_uscore=no
225
	AC_DEFINE(DLSYM_NEEDS_UNDERSCORE, [], [Do we need a leading _ for dlsym?]),
226
	AC_DEFINE(DLSYM_NEEDS_UNDERSCORE, [], [Do we need a leading _ for dlsym?])],
226
	AC_MSG_WARN(cross-compiler, we'll do our best)))
227
	[AC_MSG_WARN(cross-compiler, we'll do our best)])])
227
	LIBS="$cmu_save_LIBS"
228
	LIBS="$cmu_save_LIBS"
228
      AC_MSG_RESULT($sasl_cv_dlsym_adds_uscore)
229
      AC_MSG_RESULT($sasl_cv_dlsym_adds_uscore)
229
230

Return to bug 825342