… | |
… | |
65 | |
65 | |
66 | AC_ARG_ENABLE(iftype, |
66 | AC_ARG_ENABLE(iftype, |
67 | [AC_HELP_STRING(--enable-iftype[=TYPE/SUBTYPE], [ |
67 | [AC_HELP_STRING(--enable-iftype[=TYPE/SUBTYPE], [ |
68 | Use kernel/net device interface TYPE/SUBTYPE. |
68 | Use kernel/net device interface TYPE/SUBTYPE. |
69 | Working combinations are: |
69 | Working combinations are: |
70 | "native/linux" "tincd/linux" "tincd/freebsd"; |
70 | "native/linux" |
|
|
71 | "tincd/linux" |
|
|
72 | "tincd/freebsd"; |
71 | Untested combinations are: |
73 | Untested combinations are: |
72 | "tincd/netbsd" "tincd/darwin" "tincd/solaris" |
74 | "tincd/netbsd" |
|
|
75 | "tincd/darwin" |
|
|
76 | "tincd/solaris" |
73 | "tincd/openbsd" "tincd/cygwin"; |
77 | "tincd/openbsd"; |
74 | Broken combinations are: |
78 | Broken combinations are: |
75 | "native/cygwin"; |
79 | "tincd/cygwin"; |
76 | The default is to autodetect. |
80 | The default is to autodetect. |
77 | ])], |
81 | ])], |
78 | [ |
82 | [ |
79 | IFTYPE=`echo $enableval | sed s%/.*%%` |
83 | IFTYPE=`echo $enableval | sed s%/.*%%` |
80 | IFSUBTYPE=`echo $enableval | sed s%.*/%%` |
84 | IFSUBTYPE=`echo $enableval | sed s%.*/%%` |
… | |
… | |
137 | AC_LANG(C++) |
141 | AC_LANG(C++) |
138 | AC_CHECK_HEADERS(ext/hash_map) |
142 | AC_CHECK_HEADERS(ext/hash_map) |
139 | |
143 | |
140 | dnl Checks for header files. |
144 | dnl Checks for header files. |
141 | AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ |
145 | AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ |
142 | sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h cygwin.h arpa/inet.h \ |
146 | sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h arpa/inet.h \ |
143 | sys/poll.h sys/mman.h netinet/in.h]) |
147 | sys/poll.h sys/mman.h netinet/in.h]) |
144 | AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], |
148 | AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], |
145 | [ |
149 | [ |
146 | #include <sys/types.h> |
150 | #include <sys/types.h> |
147 | #include <sys/socket.h> |
151 | #include <sys/socket.h> |
… | |
… | |
218 | AC_CACHE_SAVE |
222 | AC_CACHE_SAVE |
219 | |
223 | |
220 | dnl These are defined in files in m4/ |
224 | dnl These are defined in files in m4/ |
221 | tinc_TUNTAP |
225 | tinc_TUNTAP |
222 | tinc_OPENSSL |
226 | tinc_OPENSSL |
|
|
227 | CXXFLAGS="$CXXFLAGS -I$openssl_include" |
223 | dnl tinc_ZLIB |
228 | dnl tinc_ZLIB |
224 | |
229 | |
225 | AC_ARG_ENABLE(rohc, |
230 | AC_ARG_ENABLE(rohc, |
226 | [AC_HELP_STRING(--enable-rohc, [enable robust header compression (rfc3095).])], |
231 | [AC_HELP_STRING(--enable-rohc, [enable robust header compression (rfc3095).])], |
227 | [ |
232 | [ |