commit - a451cb22f1906de2c0ed354b1e79eaae654b3abd
commit + ebf2f991b58372e01e018e0f769762b85360ed3e
blob - 5be4a541c22cf6a6f3d29cb65bf50dcd6c30a73f
blob + 468e927b4644088c82fae7b83ab3d84fbe10df9e
--- configure.in
+++ configure.in
# -- Libraries --
-# A/UX needs this.
-AC_CHECK_LIB(UTIL,memmove)
-# needed on solaris. GNU libc also has a libnsl, but we do not need it.
-AC_SEARCH_LIBS(gethostbyname,nsl)
-AC_CHECK_LIB(socket,bind)
+# memmove: A/UX libUTIL
+AC_SEARCH_LIBS([memmove], [UTIL], [], [
+ AC_MSG_ERROR([unable to find the memmove() function])
+])
+# gethostbyname: Solaris libnsl
+AC_SEARCH_LIBS([gethostbyname], [nsl], [], [
+ AC_MSG_ERROR([unable to find the gethostbyname() function])
+])
+# bind: SVR4 libsocket
+AC_SEARCH_LIBS([bind], [socket], [], [
+ AC_MSG_ERROR([unable to find the bind() function])
+])
# -- Functions --
CPPFLAGS="-I$withval/include $CPPFLAGS"
LDFLAGS="-L$withval/lib $LDFLAGS"
fi
- AC_CHECK_LIB(be, syslog)
- AC_CHECK_FUNCS(syslog, x_syslog_on=yes,
+ AC_SEARCH_LIBS([syslog], [be], [x_syslog_on=yes], [
AC_MSG_ERROR([Can't enable syslog!])
- )
+ ])
fi
],
- [
- AC_CHECK_LIB(be, syslog)
- AC_CHECK_FUNCS(syslog, x_syslog_on=yes)
+ [ AC_SEARCH_LIBS([syslog], [be], [x_syslog_on=yes])
]
)
if test "$x_syslog_on" = "yes"; then