source: trunk/third/traceroute/configure.in @ 10405

Revision 10405, 1.2 KB checked in by ghudson, 27 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r10404, which included commits to RCS files with non-trunk default branches.
Line 
1dnl @(#) $Header: /afs/dev.mit.edu/source/repository/third/traceroute/configure.in,v 1.1.1.1 1997-09-24 06:24:33 ghudson Exp $ (LBL)
2dnl
3dnl Copyright (c) 1995, 1996, 1997
4dnl     The Regents of the University of California.  All rights reserved.
5dnl
6dnl Process this file with autoconf to produce a configure script.
7dnl
8
9AC_INIT(traceroute.c)
10
11AC_CANONICAL_SYSTEM
12
13umask 002
14
15if test -z "$PWD" ; then
16        PWD=`pwd`
17fi
18
19AC_LBL_C_INIT(V_CCOPT, V_INCLS)
20
21AC_CHECK_HEADERS(malloc.h sys/select.h sys/sockio.h)
22
23AC_REPLACE_FUNCS(strerror)
24AC_CHECK_FUNCS(setlinebuf)
25
26AC_LBL_LIBRARY_NET
27
28case "$target_os" in
29
30bsd4*)
31        AC_DEFINE(HAVE_RAW_OPTIONS)
32        ;;
33
34bsdi*)
35        AC_DEFINE(HAVE_RAW_OPTIONS)
36        ;;
37
38freebsd*)
39        AC_DEFINE(HAVE_RAW_OPTIONS)
40        ;;
41
42linux*)
43        V_INCLS="$V_INCLS -Ilinux-include"
44        ;;
45
46osf3*)
47        dnl Workaround around ip_hl vs. ip_vhl problem in netinet/ip.h
48        AC_DEFINE(__STDC__,2)
49        ;;
50
51solaris*)
52        AC_DEFINE(BYTESWAP_IP_LEN)
53        AC_DEFINE(CANT_HACK_CKSUM,)
54        ;;
55esac
56
57AC_LBL_CHECK_TYPE(int32_t, int)
58AC_LBL_CHECK_TYPE(u_int32_t, u_int)
59
60AC_LBL_DEVEL(V_CCOPT)
61
62AC_LBL_SOCKADDR_SA_LEN
63
64if test -r lbl/gnuc.h ; then
65        rm -f gnuc.h
66        ln -s lbl/gnuc.h gnuc.h
67fi
68
69AC_SUBST(V_CCOPT)
70AC_SUBST(V_INCLS)
71
72AC_PROG_INSTALL
73
74AC_OUTPUT(Makefile)
75
76if test -f .devel ; then
77        make depend
78fi
79
80exit 0
Note: See TracBrowser for help on using the repository browser.