410c8acf |
1 | dnl -*-fundamental-*- |
2 | dnl |
3e1bf5a8 |
3 | dnl $Id: configure.in,v 1.8 2003/04/06 10:31:13 mdw Exp $ |
410c8acf |
4 | dnl |
5 | dnl Configuration script for TrIPE |
6 | dnl |
7 | dnl (c) 2001 Straylight/Edgeware |
8 | dnl |
9 | |
10 | dnl ----- Licensing notice -------------------------------------------------- |
11 | dnl |
12 | dnl This file is part of Trivial IP Encryption (TrIPE). |
13 | dnl |
14 | dnl TrIPE is free software; you can redistribute it and/or modify |
15 | dnl it under the terms of the GNU General Public License as published by |
16 | dnl the Free Software Foundation; either version 2 of the License, or |
17 | dnl (at your option) any later version. |
18 | dnl |
19 | dnl TrIPE is distributed in the hope that it will be useful, |
20 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
21 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
22 | dnl GNU General Public License for more details. |
23 | dnl |
24 | dnl You should have received a copy of the GNU General Public License |
25 | dnl along with TrIPE; if not, write to the Free Software Foundation, |
26 | dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
27 | |
28 | dnl ----- Revision history -------------------------------------------------- |
29 | dnl |
30 | dnl $Log: configure.in,v $ |
3e1bf5a8 |
31 | dnl Revision 1.8 2003/04/06 10:31:13 mdw |
32 | dnl Fix stupid bug. |
33 | dnl |
37075862 |
34 | dnl Revision 1.7 2003/04/06 10:25:17 mdw |
35 | dnl Support Linux TUN/TAP device. Fix some bugs. |
36 | dnl |
21c78c92 |
37 | dnl Revision 1.6 2001/06/19 22:13:57 mdw |
38 | dnl Version bump. |
39 | dnl |
1f531e36 |
40 | dnl Revision 1.5 2001/03/03 12:30:39 mdw |
41 | dnl Make this a pre-release. |
42 | dnl |
9bb1a373 |
43 | dnl Revision 1.4 2001/02/22 09:07:28 mdw |
44 | dnl Build documents now. |
45 | dnl |
aa7f0bd9 |
46 | dnl Revision 1.3 2001/02/16 21:24:12 mdw |
47 | dnl Don't link the client against Catacomb. |
48 | dnl |
73189848 |
49 | dnl Revision 1.2 2001/02/04 01:17:54 mdw |
50 | dnl Create a configuration header file to tidy up command lines. |
51 | dnl |
410c8acf |
52 | dnl Revision 1.1 2001/02/03 20:26:37 mdw |
53 | dnl Initial checkin. |
54 | dnl |
55 | |
56 | AC_INIT(tripe.c) |
37075862 |
57 | AM_INIT_AUTOMAKE(tripe, 1.0.0pre3) |
73189848 |
58 | AM_CONFIG_HEADER(config.h) |
410c8acf |
59 | AC_CANONICAL_HOST |
60 | |
61 | AC_PROG_CC |
37075862 |
62 | mdw_GCC_FLAGS([-Wall]) |
73189848 |
63 | mdw_OPT_TRACE |
410c8acf |
64 | |
37075862 |
65 | AC_ARG_WITH([linux-includes], |
66 | [ --with-linux-includes=DIR |
67 | search for Linux kernel includes in DIR], |
68 | [CFLAGS="$CFLAGS -I$withval"], |
69 | [:]) |
70 | |
410c8acf |
71 | case $host_os in |
72 | linux*) |
37075862 |
73 | case `uname -r` in |
3e1bf5a8 |
74 | 2.[4-9].* | 2.[1-9][0-9]*.* | [3-9].* | [1-9][0-9]*.*) |
37075862 |
75 | tun=linux |
76 | AC_DEFINE([TUN_TYPE], [TUN_LINUX]) |
77 | ;; |
78 | *) |
79 | tun=unet |
80 | AC_DEFINE([TUN_TYPE], [TUN_UNET]) |
81 | ;; |
82 | esac |
410c8acf |
83 | ;; |
84 | *bsd*) |
85 | tun=bsd |
86 | AC_DEFINE([TUN_TYPE], [TUN_BSD]) |
87 | ;; |
88 | *) |
89 | AC_MSG_ERROR([Unsupported OS: no tunnel interface available]) |
90 | ;; |
91 | esac |
92 | AC_SUBST(tun) |
93 | |
94 | mdw_MLIB(2.0.0pre4) |
aa7f0bd9 |
95 | mdw_CATACOMB(2.0.0pre8, [CFLAGS="$CFLAGS $CATACOMB_CFLAGS"]) |
410c8acf |
96 | |
9bb1a373 |
97 | AC_OUTPUT(Makefile doc/Makefile) |
410c8acf |
98 | |
99 | dnl ----- That's all, folks ------------------------------------------------- |