# HG changeset patch # User Stu Tomlinson # Date 1131647997 0 # Node ID 112dad7aeba9377b28e954fc2f69d34facec22c5 # Parent d799f242be3fe7eb70624caf30f6322f845c217e [gaim-migrate @ 14331] FreeBSD doesn't have libdl, dlopen is provided by libc, so we shouldn't hardcode -ldl without testing for it. committer: Tailor Script diff -r d799f242be3f -r 112dad7aeba9 configure.ac --- a/configure.ac Thu Nov 10 16:51:37 2005 +0000 +++ b/configure.ac Thu Nov 10 18:39:57 2005 +0000 @@ -101,6 +101,8 @@ dnl (09:50:07) Robot101: LSchiere2: it's easy. +LC_SYS_LARGEFILE somewhere in configure.ac AC_SYS_LARGEFILE +dnl FreeBSD doesn't have libdl, dlopen is provided by libc +AC_CHECK_FUNC(dlopen, LIBDL="", [AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl")]) dnl # Check for GMP. If it's not there, Sametime won't build have_gmp=yes @@ -222,7 +224,7 @@ if test "$ac_silc_libs" != "no"; then SILC_LIBS="-L$ac_silc_libs" fi - SILC_LIBS="$SILC_LIBS -lsilc -lsilcclient -lpthread -ldl" + SILC_LIBS="$SILC_LIBS -lsilc -lsilcclient -lpthread $LIBDL" AC_CHECK_LIB(silcclient, silc_client_init, [silcclient=yes], , $SILC_LIBS) fi AC_SUBST(SILC_LIBS) @@ -1001,10 +1003,10 @@ enable_nss="no" else - nsprlibs="-ldl $with_nspr_libs/libplc4.a $with_nspr_libs/libplds4.a $with_nspr_libs/libnspr4.a $PTHREAD_LIB" + nsprlibs="$LIBDL $with_nspr_libs/libplc4.a $with_nspr_libs/libplds4.a $with_nspr_libs/libnspr4.a $PTHREAD_LIB" fi else - nsprlibs="-ldl -lplc4 -lplds4 -lnspr4 $PTHREAD_LIB" + nsprlibs="$LIBDL -lplc4 -lplds4 -lnspr4 $PTHREAD_LIB" fi AC_CACHE_CHECK([for Mozilla nspr libraries], moz_nspr_libs,