dnl @(#) $Header: /afs/sipb/project/tcpdump/repository/bpf/setbpfilter/configure.in,v 1.1.1.1 1996/12/16 07:37:30 jhawk Exp $ (LBL)
dnl
dnl Copyright (c) 1996
dnl	The Regents of the University of California.  All rights reserved.
dnl
dnl Process this file with autoconf to produce a configure script.
dnl

AC_INIT(setbpfilter.c)

AC_CANONICAL_SYSTEM

umask 002

if test -z "$PWD" ; then
	PWD=`pwd`
fi

AC_LBL_C_INIT(V_CCOPT, V_INCLS)

AC_CHECK_HEADERS(fcntl.h malloc.h)
AC_HEADER_TIME

AC_REPLACE_FUNCS(vfprintf)

AC_CHECK_LIB(nsl, main)
AC_CHECK_LIB(str, main)

dnl -lsocket is broken for snoop under IRIX 5.2 and earlier
case "$target_os" in
irix5.0*)
	;;

irix5.1*)
	;;

irix5.2*)
	;;

*)
	AC_CHECK_LIB(socket, main)
	;;
esac

AC_LBL_LIBPCAP(V_PCAPDEP, V_INCLS)


AC_CHECK_TYPE(int32_t, int)
AC_CHECK_TYPE(u_int32_t, u_int)

dnl AC_LBL_TYPE_SIGNAL

AC_LBL_DEVEL(V_CCOPT)

if test -r lbl/gnuc.h ; then
	rm -f gnuc.h
	ln -s lbl/gnuc.h gnuc.h
fi

AC_SUBST(V_CCOPT)
AC_SUBST(V_INCLS)
AC_SUBST(V_PCAPDEP)

AC_PROG_INSTALL

AC_OUTPUT(Makefile)

if test -f .devel ; then
	make depend
fi
exit 0
