Merge from vendor branch TCPDUMP:
[dragonfly.git] / contrib / traceroute / configure.in
1 dnl @(#) $Header: configure.in,v 1.10 96/09/24 18:44:24 leres Exp $ (LBL)
2 dnl
3 dnl Copyright (c) 1995, 1996
4 dnl     The Regents of the University of California.  All rights reserved.
5 dnl
6 dnl Process this file with autoconf to produce a configure script.
7 dnl
8
9 AC_INIT(traceroute.c)
10
11 AC_CANONICAL_SYSTEM
12
13 umask 002
14
15 if test -z "$PWD" ; then
16         PWD=`pwd`
17 fi
18
19 AC_LBL_C_INIT(V_CCOPT, V_INCLS)
20
21 AC_CHECK_HEADERS(malloc.h sys/select.h)
22
23 AC_REPLACE_FUNCS(strerror)
24 AC_CHECK_FUNCS(setlinebuf)
25
26 AC_CHECK_LIB(socket, main)
27 AC_CHECK_LIB(nsl, main)
28
29 case "$target_os" in
30
31 bsd4*)
32         AC_DEFINE(HAVE_RAW_OPTIONS)
33         ;;
34
35 bsdi*)
36         AC_DEFINE(HAVE_RAW_OPTIONS)
37         ;;
38
39 freebsd*)
40         AC_DEFINE(HAVE_RAW_OPTIONS)
41         ;;
42
43 osf3*)
44         dnl Workaround around ip_hl vs. ip_vhl problem in netinet/ip.h
45         AC_DEFINE(__STDC__,2)
46         ;;
47
48 solaris*)
49         AC_DEFINE(BYTESWAP_IP_LEN)
50         ;;
51 esac
52
53 AC_CHECK_TYPE(int32_t, int)
54 AC_CHECK_TYPE(u_int32_t, u_int)
55
56 AC_LBL_DEVEL(V_CCOPT)
57
58 if test -r lbl/gnuc.h ; then
59         rm -f gnuc.h
60         ln -s lbl/gnuc.h gnuc.h
61 fi
62
63 AC_SUBST(V_CCOPT)
64 AC_SUBST(V_INCLS)
65
66 AC_PROG_INSTALL
67
68 AC_OUTPUT(Makefile)
69
70 if test -f .devel ; then
71         make depend
72 fi
73
74 exit 0