--- configure.orig 2003-04-11 19:07:44 UTC +++ configure @@ -2941,7 +2941,7 @@ fi echo "$as_me:2941: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; then - SYSLOGD_LIBS="$SYSLOGD_LIBS -ldl" + SYSLOGD_LIBS="$SYSLOGD_LIBS" fi echo "$as_me:2947: checking for connect in -lsocket" >&5 @@ -3573,9 +3573,9 @@ cat >>confdefs.h <>confdefs.h <>confdefs.h <&5 @@ -3644,14 +3644,6 @@ cat >>confdefs.h <&5 echo $ECHO_N "checking wether netdb.h requires _USE_IRS... $ECHO_C" >&6 if grep _USE_IRS /usr/include/netdb.h >/dev/null ;then @@ -3736,6 +3728,15 @@ EOF SHARED_PARAMS="-Bshareable" DCCFLAGS="-fPIC" +elif test "$UNAME" = "FreeBSD" ; then + cat >>confdefs.h <<\EOF +#define DLOPEN_FLAGS RTLD_LAZY +#define SYMBOL_PREFIX "" +EOF + + SHARED_PARAMS="-Bshareable" + DCCFLAGS="-fPIC" + SYSLOGD_LIBS="$SYSLOGD_LIBS -Wl,-E" elif test "$UNAME" = "Linux" ; then cat >>confdefs.h <<\EOF #define DLOPEN_FLAGS RTLD_LAZY | RTLD_GLOBAL