summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bedd7dd)
* TODO: can we get rid of AM macros, as we don't require automake in the whole other configure?
* socket.h requires types.h
AC_PROG_INSTALL
AC_PROG_YACC
AC_PROG_INSTALL
AC_PROG_YACC
-missing_dir=`cd $ac_aux_dir && pwd`
-AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
-AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
+dnl missing_dir=`cd $ac_aux_dir && pwd`
+dnl AC_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
+dnl AC_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
dnl Checks for system services.
dnl Checks for system services.
-test -f /usr/local/lib/libresolv.a && LDFLAGS="$LDFLAGS -L/usr/local/lib"
-AC_CHECK_LIB(resolv, res_query,
- RESOLV="$RESOLV -lresolv",
- [
- AC_MSG_ERROR(libresolv was not found. Citadel requires the resolver library.)
- ]
-)
+case "`uname -a`" in
+ OpenBSD*)
+ echo "we don't need to check for resolv on openbsd"
+ ;;
+ *)
+ test -f /usr/local/lib/libresolv.a && LDFLAGS="$LDFLAGS -L/usr/local/lib"
+ AC_CHECK_LIB(resolv, res_query,
+ RESOLV="$RESOLV -lresolv",
+ [
+ AC_MSG_ERROR(libresolv was not found. Citadel requires the resolver library.)
+ ]
+ )
+ ;;
+esac
if test "x$with_ncurses" != "xno"; then
AC_SEARCH_LIBS(tgetent, [ncurses curses termcap])
if test "x$with_ncurses" != "xno"; then
AC_SEARCH_LIBS(tgetent, [ncurses curses termcap])
AC_CACHE_CHECK([for the resolver calls],
ac_cv_resquery_ok,
[AC_TRY_COMPILE([#include <netinet/in.h>
AC_CACHE_CHECK([for the resolver calls],
ac_cv_resquery_ok,
[AC_TRY_COMPILE([#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>],
[
#include <arpa/nameser.h>
#include <resolv.h>],
[
#include <errno.h>
#include <sys/socket.h>
#include <unistd.h>
#include <errno.h>
#include <sys/socket.h>
#include <unistd.h>