mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-23 14:09:39 +08:00
ITS#8874 - Don't try and link in libcom_err with libfetch on FreeBSD
This was changed for FreeBSD back in the year 2000.
This commit is contained in:
parent
7bd1fac58c
commit
59f8d06d33
@ -613,7 +613,7 @@ dnl ====================================================================
|
||||
dnl Look for fetch(3)
|
||||
AC_DEFUN([OL_LIB_FETCH],
|
||||
[ol_LIBS=$LIBS
|
||||
LIBS="-lfetch -lcom_err $LIBS"
|
||||
LIBS="-lfetch $LIBS"
|
||||
AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
||||
#ifdef HAVE_SYS_PARAM_H
|
||||
@ -623,7 +623,7 @@ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
|
||||
#include <fetch.h>]], [[struct url *u = fetchParseURL("file:///"); ]])],[ol_cv_lib_fetch=yes],[ol_cv_lib_fetch=no])])
|
||||
LIBS=$ol_LIBS
|
||||
if test $ol_cv_lib_fetch != no ; then
|
||||
ol_link_fetch="-lfetch -lcom_err"
|
||||
ol_link_fetch="-lfetch"
|
||||
AC_DEFINE(HAVE_FETCH,1,
|
||||
[define if you actually have FreeBSD fetch(3)])
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user