From b819effdc984e492bbce459faa7432931ccfeb58 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:55:32 +0000 Subject: OpenBSD fixes Author: jgg Date: 1999-12-11 02:11:10 GMT OpenBSD fixes --- configure.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index c0ecdaa05..366d70375 100644 --- a/configure.in +++ b/configure.in @@ -31,7 +31,9 @@ AC_CHECK_TOOL_PREFIX dnl recheck, in case the initial guess was wrong dnl Check for other programs AC_PROG_CXX -#AC_LANG_CPLUSPLUS +AC_PROG_CPP +AC_PROG_RANLIB +AC_CHECK_TOOL(AR,ar,"ar") dnl Checks for sockets SAVE_LIBS="$LIBS" @@ -98,6 +100,13 @@ dnl Single Unix Spec statvfs AC_CHECK_FUNC(statvfs,[HAVE_STATVFS=yes]) AC_SUBST(HAVE_STATVFS) +dnl Arg, linux and bsd put their statfs function in different places +if test x"$HAVE_STATVFS" != x"yes"; then + AC_EGREP_HEADER(statfs,sys/vfs.h,[AC_DEFINE(HAVE_VFS_H)],[ + AC_EGREP_HEADER(statfs,sys/mount.h,[AC_DEFINE(HAVE_MOUNT_H)],[AC_MSG_ERROR(failed: Need statvfs)]) + ]) +fi + dnl Check the sizes etc. of the architecture changequote(,) if archline="`grep \"^$archset\" $srcdir/buildlib/sizetable | cut -f 2- -d ' '`";then -- cgit v1.2.3