Revision 15095,
1.2 KB
checked in by ghudson, 24 years ago
(diff) |
From kolya: enable checksums on Solaris.
|
Rev | Line | |
---|
[15095] | 1 | dnl @(#) $Header: /afs/dev.mit.edu/source/repository/third/traceroute/configure.in,v 1.2 2000-09-21 15:02:55 ghudson Exp $ (LBL) |
---|
[10404] | 2 | dnl |
---|
| 3 | dnl Copyright (c) 1995, 1996, 1997 |
---|
| 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 sys/sockio.h) |
---|
| 22 | |
---|
| 23 | AC_REPLACE_FUNCS(strerror) |
---|
| 24 | AC_CHECK_FUNCS(setlinebuf) |
---|
| 25 | |
---|
| 26 | AC_LBL_LIBRARY_NET |
---|
| 27 | |
---|
| 28 | case "$target_os" in |
---|
| 29 | |
---|
| 30 | bsd4*) |
---|
| 31 | AC_DEFINE(HAVE_RAW_OPTIONS) |
---|
| 32 | ;; |
---|
| 33 | |
---|
| 34 | bsdi*) |
---|
| 35 | AC_DEFINE(HAVE_RAW_OPTIONS) |
---|
| 36 | ;; |
---|
| 37 | |
---|
| 38 | freebsd*) |
---|
| 39 | AC_DEFINE(HAVE_RAW_OPTIONS) |
---|
| 40 | ;; |
---|
| 41 | |
---|
| 42 | linux*) |
---|
| 43 | V_INCLS="$V_INCLS -Ilinux-include" |
---|
| 44 | ;; |
---|
| 45 | |
---|
| 46 | osf3*) |
---|
| 47 | dnl Workaround around ip_hl vs. ip_vhl problem in netinet/ip.h |
---|
| 48 | AC_DEFINE(__STDC__,2) |
---|
| 49 | ;; |
---|
| 50 | |
---|
| 51 | solaris*) |
---|
| 52 | AC_DEFINE(BYTESWAP_IP_LEN) |
---|
| 53 | ;; |
---|
| 54 | esac |
---|
| 55 | |
---|
| 56 | AC_LBL_CHECK_TYPE(int32_t, int) |
---|
| 57 | AC_LBL_CHECK_TYPE(u_int32_t, u_int) |
---|
| 58 | |
---|
| 59 | AC_LBL_DEVEL(V_CCOPT) |
---|
| 60 | |
---|
| 61 | AC_LBL_SOCKADDR_SA_LEN |
---|
| 62 | |
---|
| 63 | if test -r lbl/gnuc.h ; then |
---|
| 64 | rm -f gnuc.h |
---|
| 65 | ln -s lbl/gnuc.h gnuc.h |
---|
| 66 | fi |
---|
| 67 | |
---|
| 68 | AC_SUBST(V_CCOPT) |
---|
| 69 | AC_SUBST(V_INCLS) |
---|
| 70 | |
---|
| 71 | AC_PROG_INSTALL |
---|
| 72 | |
---|
| 73 | AC_OUTPUT(Makefile) |
---|
| 74 | |
---|
| 75 | if test -f .devel ; then |
---|
| 76 | make depend |
---|
| 77 | fi |
---|
| 78 | |
---|
| 79 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.