… | |
… | |
2 | |
2 | |
3 | AC_PREREQ(2.59) |
3 | AC_PREREQ(2.59) |
4 | AC_INIT |
4 | AC_INIT |
5 | AC_CONFIG_SRCDIR([src/gvpe.C]) |
5 | AC_CONFIG_SRCDIR([src/gvpe.C]) |
6 | AC_CANONICAL_TARGET |
6 | AC_CANONICAL_TARGET |
7 | AM_INIT_AUTOMAKE(gvpe, 1.8) |
7 | AM_INIT_AUTOMAKE(gvpe, 1.9) |
8 | AC_CONFIG_HEADERS([config.h]) |
8 | AC_CONFIG_HEADERS([config.h]) |
9 | AM_MAINTAINER_MODE |
9 | AM_MAINTAINER_MODE |
10 | |
10 | |
11 | AH_TOP([ |
11 | AH_TOP([ |
12 | #ifndef CONFIG_H__ |
12 | #ifndef CONFIG_H__ |
… | |
… | |
39 | typedef int32_t s32; |
39 | typedef int32_t s32; |
40 | #endif |
40 | #endif |
41 | |
41 | |
42 | #endif |
42 | #endif |
43 | |
43 | |
44 | // include clocale first because gettext.h might overwrite setlocale |
44 | #if HAVE_CLOCALE |
45 | #if defined(HAVE_CLOCALE) && defined(__cplusplus) |
45 | # define CLOCALE <clocale> |
46 | # include <clocale> |
|
|
47 | #else |
46 | #else |
48 | # include <locale.h> |
47 | # define CLOCALE <locale.h> |
49 | #endif |
48 | #endif |
50 | #include "gettext.h" |
|
|
51 | ]) |
49 | ]) |
52 | |
50 | |
53 | dnl Include the macros from the m4/ directory |
51 | dnl Include the macros from the m4/ directory |
54 | AM_ACLOCAL_INCLUDE(m4) |
52 | AM_ACLOCAL_INCLUDE(m4) |
55 | |
53 | |
… | |
… | |
79 | AC_PROG_RANLIB |
77 | AC_PROG_RANLIB |
80 | |
78 | |
81 | AC_ARG_ENABLE(iftype, |
79 | AC_ARG_ENABLE(iftype, |
82 | [AS_HELP_STRING(--enable-iftype=TYPE/SUBTYPE, |
80 | [AS_HELP_STRING(--enable-iftype=TYPE/SUBTYPE, |
83 | Use kernel/net device interface TYPE/SUBTYPE. |
81 | Use kernel/net device interface TYPE/SUBTYPE. |
84 | Working combinations are: |
82 | Working combinations are (see doc/gvpe.osdep.5.pod): |
85 | "native/linux" |
83 | "native/linux" |
86 | "tincd/linux" |
84 | "tincd/linux" |
|
|
85 | "tincd/netbsd" |
87 | "tincd/freebsd" |
86 | "tincd/freebsd" |
88 | "tincd/openbsd" |
87 | "tincd/openbsd" |
|
|
88 | "native/darwin" |
89 | "tincd/darwin" |
89 | "tincd/darwin" |
90 | "native/cygwin"; |
90 | "native/cygwin"; |
91 | Untested combinations are: |
91 | Untested combinations are: |
92 | "tincd/netbsd" |
|
|
93 | "tincd/solaris" |
92 | "tincd/solaris" |
94 | "tincd/mingw" |
93 | "tincd/mingw" |
95 | "tincd/raw_socket" |
94 | "tincd/raw_socket" |
96 | "tincd/uml_socket"; |
95 | "tincd/uml_socket"; |
97 | Broken combinations are: |
96 | Broken combinations are: |
… | |
… | |
118 | IFTYPE=tincd |
117 | IFTYPE=tincd |
119 | IFSUBTYPE=freebsd |
118 | IFSUBTYPE=freebsd |
120 | AC_DEFINE(HAVE_FREEBSD, 1, [FreeBSD]) |
119 | AC_DEFINE(HAVE_FREEBSD, 1, [FreeBSD]) |
121 | ;; |
120 | ;; |
122 | *darwin*) |
121 | *darwin*) |
123 | IFTYPE=tincd |
122 | IFTYPE=native |
124 | IFSUBTYPE=darwin |
123 | IFSUBTYPE=darwin |
125 | AC_DEFINE(HAVE_DARWIN, 1, [Darwin (MacOS/X)]) |
124 | AC_DEFINE(HAVE_DARWIN, 1, [Darwin (MacOS/X)]) |
126 | ;; |
125 | ;; |
127 | *solaris*) |
126 | *solaris*) |
128 | IFTYPE=tincd |
127 | IFTYPE=tincd |