]>
Commit | Line | Data |
---|---|---|
f2c2d395 MW |
1 | dnl configure.in for linux strongSwan |
2 | dnl Copyright (C) 2006 Martin Willi | |
3 | dnl Hochschule fuer Technik Rapperswil | |
4 | dnl | |
5 | dnl This program is free software; you can redistribute it and/or modify it | |
6 | dnl under the terms of the GNU General Public License as published by the | |
7 | dnl Free Software Foundation; either version 2 of the License, or (at your | |
8 | dnl option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. | |
9 | dnl | |
10 | dnl This program is distributed in the hope that it will be useful, but | |
11 | dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
12 | dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
13 | dnl for more details. | |
14 | ||
15 | dnl =========================== | |
16 | dnl initialize & set some vars | |
17 | dnl =========================== | |
18 | ||
8bc2a808 | 19 | AC_INIT(strongSwan,4.3.5) |
5e5f0bd4 | 20 | AM_INIT_AUTOMAKE(tar-ustar) |
f2c2d395 | 21 | AC_SUBST(confdir, '${sysconfdir}') |
a47486b5 | 22 | PKG_PROG_PKG_CONFIG |
f2c2d395 | 23 | |
db26d00e MW |
24 | dnl ================================= |
25 | dnl check --enable-xxx & --with-xxx | |
26 | dnl ================================= | |
27 | ||
db26d00e | 28 | AC_ARG_WITH( |
6b9290ff MW |
29 | [default-pkcs11], |
30 | AS_HELP_STRING([--with-default-pkcs11=lib],[set the default PKCS11 library other than "/usr/lib/opensc-pkcs11.so"]), | |
31 | [AC_DEFINE_UNQUOTED(PKCS11_DEFAULT_LIB, "$withval")], | |
32 | [AC_DEFINE_UNQUOTED(PKCS11_DEFAULT_LIB, "/usr/lib/opensc-pkcs11.so")] | |
db26d00e MW |
33 | ) |
34 | ||
195307b5 | 35 | AC_ARG_WITH( |
6b9290ff MW |
36 | [xauth-module], |
37 | AS_HELP_STRING([--with-xauth-module=lib],[set the path to the XAUTH module]), | |
38 | [AC_DEFINE_UNQUOTED(XAUTH_DEFAULT_LIB, "$withval")], | |
195307b5 AS |
39 | ) |
40 | ||
db26d00e | 41 | AC_ARG_WITH( |
6b9290ff MW |
42 | [random-device], |
43 | AS_HELP_STRING([--with-random-device=dev],[set the device for real random data other than "/dev/random"]), | |
44 | [AC_DEFINE_UNQUOTED(DEV_RANDOM, "$withval")], | |
45 | [AC_DEFINE_UNQUOTED(DEV_RANDOM, "/dev/random")] | |
db26d00e | 46 | ) |
c60c7694 | 47 | AC_ARG_WITH( |
6b9290ff | 48 | [resolv-conf], |
adc25ec2 | 49 | AS_HELP_STRING([--with-resolv-conf=file],[set the file to use in DNS handler plugin other than "sysconfdir/resolv.conf"]), |
8cc16c9d AS |
50 | [AC_SUBST(resolv_conf, "$withval")], |
51 | [AC_SUBST(resolv_conf, "${sysconfdir}/resolv.conf")] | |
c60c7694 | 52 | ) |
db26d00e | 53 | |
ff867d06 MW |
54 | AC_ARG_WITH( |
55 | [strongswan-conf], | |
56 | AS_HELP_STRING([--with-strongswan-conf=file],[strongswan.conf file other than "sysconfdir/strongswan.conf"]), | |
8cc16c9d AS |
57 | [AC_SUBST(strongswan_conf, "$withval")], |
58 | [AC_SUBST(strongswan_conf, "${sysconfdir}/strongswan.conf")] | |
ff867d06 MW |
59 | ) |
60 | ||
db26d00e | 61 | AC_ARG_WITH( |
6b9290ff MW |
62 | [urandom-device], |
63 | AS_HELP_STRING([--with-urandom-device=dev],[set the device for pseudo random data other than "/dev/urandom"]), | |
64 | [AC_DEFINE_UNQUOTED(DEV_URANDOM, "$withval")], | |
65 | [AC_DEFINE_UNQUOTED(DEV_URANDOM, "/dev/urandom")] | |
db26d00e | 66 | ) |
f2c2d395 | 67 | |
dfc14c84 | 68 | AC_ARG_WITH( |
6b9290ff MW |
69 | [piddir], |
70 | AS_HELP_STRING([--with-piddir=dir],[path for PID and UNIX socket files other than "/var/run"]), | |
71 | [AC_SUBST(piddir, "$withval")], | |
72 | [AC_SUBST(piddir, "/var/run")] | |
dfc14c84 AS |
73 | ) |
74 | ||
f27f6296 | 75 | AC_ARG_WITH( |
6b9290ff MW |
76 | [ipsecdir], |
77 | AS_HELP_STRING([--with-ipsecdir=dir],[installation path for ipsec tools other than "libexecdir/ipsec"]), | |
78 | [AC_SUBST(ipsecdir, "$withval")], | |
c5ebb635 | 79 | [AC_SUBST(ipsecdir, "${libexecdir%/}/ipsec")] |
f27f6296 | 80 | ) |
c5ebb635 | 81 | AC_SUBST(plugindir, "${ipsecdir%/}/plugins") |
f27f6296 MW |
82 | |
83 | AC_ARG_WITH( | |
6b9290ff MW |
84 | [plugindir], |
85 | AS_HELP_STRING([--with-plugindir=dir],[installation path for plugins other than "ipsecdir/plugins"]), | |
86 | [AC_SUBST(plugindir, "$withval")], | |
c5ebb635 | 87 | [AC_SUBST(plugindir, "${ipsecdir%/}/plugins")] |
f27f6296 MW |
88 | ) |
89 | ||
d560c849 | 90 | AC_ARG_WITH( |
6b9290ff MW |
91 | [sim-reader], |
92 | AS_HELP_STRING([--with-sim-reader=library.so],[library containing the sim_run_alg()/sim_get_triplet() function for EAP-SIM]), | |
93 | [AC_SUBST(simreader, "$withval")], | |
c5ebb635 | 94 | [AC_SUBST(simreader, "${plugindir%/}/libeapsim-file.so")] |
d560c849 MW |
95 | ) |
96 | ||
04a7b6d8 | 97 | AC_ARG_WITH( |
6b9290ff MW |
98 | [linux-headers], |
99 | AS_HELP_STRING([--with-linux-headers=dir],[use the linux header files in dir instead of the supplied ones in "src/include"]), | |
507f26f6 | 100 | [AC_SUBST(linuxdir, "$withval")], [AC_SUBST(linuxdir, "\${top_srcdir}/src/include")] |
04a7b6d8 MW |
101 | ) |
102 | AC_SUBST(LINUX_HEADERS) | |
103 | ||
4e411c83 | 104 | AC_ARG_WITH( |
6b9290ff MW |
105 | [routing-table], |
106 | AS_HELP_STRING([--with-routing-table=num],[use routing table for IPsec routes (default: 220)]), | |
107 | [AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE, $withval) AC_SUBST(IPSEC_ROUTING_TABLE, "$withval")], | |
108 | [AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE, 220) AC_SUBST(IPSEC_ROUTING_TABLE, "220")] | |
0739cca9 MW |
109 | ) |
110 | ||
111 | AC_ARG_WITH( | |
6b9290ff MW |
112 | [routing-table-prio], |
113 | AS_HELP_STRING([--with-routing-table-prio=prio],[priority for IPsec routing table (default: 220)]), | |
114 | [AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE_PRIO, $withval) AC_SUBST(IPSEC_ROUTING_TABLE_PRIO, "$withval")], | |
115 | [AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE_PRIO, 220) AC_SUBST(IPSEC_ROUTING_TABLE_PRIO, "220")] | |
4e411c83 MW |
116 | ) |
117 | ||
6874bf69 | 118 | AC_ARG_WITH( |
25b12c69 | 119 | [uid],,[AC_MSG_ERROR([--with-uid is gone, use --with-user instead!])] |
6874bf69 MW |
120 | ) |
121 | ||
122 | AC_ARG_WITH( | |
25b12c69 MW |
123 | [gid],,[AC_MSG_ERROR([--with-gid is gone, use --with-group instead!])] |
124 | ) | |
125 | ||
126 | AC_ARG_WITH( | |
127 | [user], | |
c7e0f07c | 128 | AS_HELP_STRING([--with-user=user],[change user of the daemons to "user" after startup (default is "root").]), |
25b12c69 MW |
129 | [AC_DEFINE_UNQUOTED(IPSEC_USER, "$withval") AC_SUBST(ipsecuser, "$withval")], |
130 | [AC_SUBST(ipsecuser, "root")] | |
131 | ) | |
132 | ||
133 | AC_ARG_WITH( | |
134 | [group], | |
c7e0f07c | 135 | AS_HELP_STRING([--with-group=group],[change group of the daemons to "group" after startup (default is "root").]), |
25b12c69 MW |
136 | [AC_DEFINE_UNQUOTED(IPSEC_GROUP, "$withval") AC_SUBST(ipsecgroup, "$withval")], |
137 | [AC_SUBST(ipsecgroup, "root")] | |
6874bf69 MW |
138 | ) |
139 | ||
eb3e2705 MW |
140 | dnl Will be extended to --with-capabilities=libcap|libcap2 |
141 | AC_ARG_WITH( | |
142 | [capabilities], | |
143 | AS_HELP_STRING([--with-capabilities=libcap],[capability dropping using libcap. Currenlty only the value "libcap" is supported (default is NO).]), | |
144 | [capabilities="$withval"], | |
145 | [capabilities=no] | |
146 | ) | |
147 | ||
f2c2d395 | 148 | AC_ARG_ENABLE( |
6b9290ff MW |
149 | [curl], |
150 | AS_HELP_STRING([--enable-curl],[enable CURL fetcher plugin to fetch files via libcurl (default is NO). Requires libcurl.]), | |
151 | [if test x$enableval = xyes; then | |
152 | curl=true | |
153 | fi] | |
f2c2d395 | 154 | ) |
f2c2d395 MW |
155 | |
156 | AC_ARG_ENABLE( | |
6b9290ff MW |
157 | [ldap], |
158 | AS_HELP_STRING([--enable-ldap],[enable LDAP fetching plugin to fetch files via libldap (default is NO). Requires openLDAP.]), | |
159 | [if test x$enableval = xyes; then | |
160 | ldap=true | |
161 | fi] | |
f2c2d395 | 162 | ) |
552cc11b MW |
163 | |
164 | AC_ARG_ENABLE( | |
6b9290ff MW |
165 | [aes], |
166 | AS_HELP_STRING([--disable-aes],[disable own AES software implementation plugin. (default is NO).]), | |
167 | [if test x$enableval = xyes; then | |
168 | aes=true | |
169 | else | |
170 | aes=false | |
171 | fi], | |
172 | aes=true | |
552cc11b | 173 | ) |
552cc11b MW |
174 | |
175 | AC_ARG_ENABLE( | |
6b9290ff MW |
176 | [des], |
177 | AS_HELP_STRING([--disable-des],[disable own DES/3DES software implementation plugin. (default is NO).]), | |
178 | [if test x$enableval = xyes; then | |
179 | des=true | |
180 | else | |
181 | des=false | |
182 | fi], | |
183 | des=true | |
552cc11b | 184 | ) |
552cc11b | 185 | |
d36ae9e3 AS |
186 | AC_ARG_ENABLE( |
187 | [blowfish], | |
188 | AS_HELP_STRING([--enable-blowfish],[enable Blowfish software implementation plugin (default is NO).]), | |
189 | [if test x$enableval = xyes; then | |
190 | blowfish=true | |
191 | fi] | |
192 | ) | |
193 | ||
1e0d1ae2 AS |
194 | AC_ARG_ENABLE( |
195 | [md4], | |
196 | AS_HELP_STRING([--enable-md4],[enable MD4 software implementation plugin (default is NO).]), | |
197 | [if test x$enableval = xyes; then | |
198 | md4=true | |
199 | fi] | |
200 | ) | |
201 | ||
552cc11b | 202 | AC_ARG_ENABLE( |
6b9290ff MW |
203 | [md5], |
204 | AS_HELP_STRING([--disable-md5],[disable own MD5 software implementation plugin. (default is NO).]), | |
205 | [if test x$enableval = xyes; then | |
206 | md5=true | |
207 | else | |
208 | md5=false | |
209 | fi], | |
210 | md5=true | |
552cc11b | 211 | ) |
552cc11b MW |
212 | |
213 | AC_ARG_ENABLE( | |
6b9290ff MW |
214 | [sha1], |
215 | AS_HELP_STRING([--disable-sha1],[disable own SHA1 software implementation plugin. (default is NO).]), | |
216 | [if test x$enableval = xyes; then | |
217 | sha1=true | |
218 | else | |
219 | sha1=false | |
220 | fi], | |
221 | sha1=true | |
552cc11b | 222 | ) |
552cc11b MW |
223 | |
224 | AC_ARG_ENABLE( | |
6b9290ff MW |
225 | [sha2], |
226 | AS_HELP_STRING([--disable-sha2],[disable own SHA256/SHA384/SHA512 software implementation plugin. (default is NO).]), | |
227 | [if test x$enableval = xyes; then | |
228 | sha2=true | |
229 | else | |
230 | sha2=false | |
231 | fi], | |
232 | sha2=true | |
552cc11b | 233 | ) |
552cc11b MW |
234 | |
235 | AC_ARG_ENABLE( | |
6b9290ff MW |
236 | [fips-prf], |
237 | AS_HELP_STRING([--disable-fips-prf],[disable FIPS PRF software implementation plugin. (default is NO).]), | |
238 | [if test x$enableval = xyes; then | |
239 | fips_prf=true | |
240 | else | |
241 | fips_prf=false | |
242 | fi], | |
243 | fips_prf=true | |
552cc11b | 244 | ) |
552cc11b MW |
245 | |
246 | AC_ARG_ENABLE( | |
6b9290ff MW |
247 | [gmp], |
248 | AS_HELP_STRING([--disable-gmp],[disable own GNU MP (libgmp) based crypto implementation plugin. (default is NO).]), | |
249 | [if test x$enableval = xyes; then | |
250 | gmp=true | |
251 | else | |
252 | gmp=false | |
253 | fi], | |
254 | gmp=true | |
552cc11b | 255 | ) |
552cc11b | 256 | |
6a365f07 MW |
257 | AC_ARG_ENABLE( |
258 | [random], | |
259 | AS_HELP_STRING([--disable-random],[disable RNG implementation on top of /dev/(u)random. (default is NO).]), | |
260 | [if test x$enableval = xyes; then | |
261 | random=true | |
262 | else | |
263 | random=false | |
264 | fi], | |
265 | random=true | |
266 | ) | |
267 | ||
552cc11b | 268 | AC_ARG_ENABLE( |
6b9290ff MW |
269 | [x509], |
270 | AS_HELP_STRING([--disable-x509],[disable own X509 certificate implementation plugin. (default is NO).]), | |
271 | [if test x$enableval = xyes; then | |
272 | x509=true | |
273 | else | |
274 | x509=false | |
275 | fi], | |
276 | x509=true | |
552cc11b | 277 | ) |
552cc11b | 278 | |
affd7a90 MW |
279 | AC_ARG_ENABLE( |
280 | [pubkey], | |
281 | AS_HELP_STRING([--disable-pubkey],[disable RAW public key support plugin. (default is NO).]), | |
282 | [if test x$enableval = xyes; then | |
283 | pubkey=true | |
284 | else | |
285 | pubkey=false | |
286 | fi], | |
287 | pubkey=true | |
288 | ) | |
289 | ||
160f4c22 MW |
290 | AC_ARG_ENABLE( |
291 | [pem], | |
292 | AS_HELP_STRING([--disable-pem],[disable PEM decoding plugin. (default is NO).]), | |
293 | [if test x$enableval = xyes; then | |
294 | pem=true | |
295 | else | |
296 | pem=false | |
297 | fi], | |
298 | pem=true | |
299 | ) | |
300 | ||
552cc11b | 301 | AC_ARG_ENABLE( |
6b9290ff MW |
302 | [hmac], |
303 | AS_HELP_STRING([--disable-hmac],[disable HMAC crypto implementation plugin. (default is NO).]), | |
304 | [if test x$enableval = xyes; then | |
305 | hmac=true | |
306 | else | |
307 | hmac=false | |
308 | fi], | |
309 | hmac=true | |
552cc11b | 310 | ) |
552cc11b | 311 | |
27d04e05 MW |
312 | AC_ARG_ENABLE( |
313 | [xcbc], | |
314 | AS_HELP_STRING([--disable-xcbc],[disable xcbc crypto implementation plugin. (default is NO).]), | |
315 | [if test x$enableval = xyes; then | |
316 | xcbc=true | |
317 | else | |
318 | xcbc=false | |
319 | fi], | |
320 | xcbc=true | |
321 | ) | |
322 | ||
81811a9d MW |
323 | AC_ARG_ENABLE( |
324 | [test-vectors], | |
272c8113 | 325 | AS_HELP_STRING([--enable-test-vectors],[enable plugin providing crypto test vectors (default is NO).]), |
81811a9d MW |
326 | [if test x$enableval = xyes; then |
327 | test_vectors=true | |
328 | fi] | |
329 | ) | |
330 | ||
552cc11b | 331 | AC_ARG_ENABLE( |
6b9290ff MW |
332 | [mysql], |
333 | AS_HELP_STRING([--enable-mysql],[enable MySQL database support (default is NO). Requires libmysqlclient_r.]), | |
334 | [if test x$enableval = xyes; then | |
335 | mysql=true | |
336 | fi] | |
552cc11b | 337 | ) |
552cc11b MW |
338 | |
339 | AC_ARG_ENABLE( | |
6b9290ff MW |
340 | [sqlite], |
341 | AS_HELP_STRING([--enable-sqlite],[enable SQLite database support (default is NO). Requires libsqlite3.]), | |
342 | [if test x$enableval = xyes; then | |
343 | sqlite=true | |
344 | fi] | |
552cc11b | 345 | ) |
f2c2d395 | 346 | |
cbfb2aff | 347 | AC_ARG_ENABLE( |
6b9290ff MW |
348 | [stroke], |
349 | AS_HELP_STRING([--disable-stroke],[disable charons stroke (pluto compatibility) configuration backend. (default is NO).]), | |
350 | [if test x$enableval = xyes; then | |
351 | stroke=true | |
352 | else | |
353 | stroke=false | |
354 | fi], | |
355 | stroke=true | |
cbfb2aff | 356 | ) |
cbfb2aff | 357 | |
552cc11b | 358 | AC_ARG_ENABLE( |
5b7ec6d4 | 359 | [medsrv], |
9529fb68 | 360 | AS_HELP_STRING([--enable-medsrv],[enable mediation server web frontend and daemon plugin (default is NO).]), |
6b9290ff | 361 | [if test x$enableval = xyes; then |
5b7ec6d4 | 362 | medsrv=true |
6b9290ff | 363 | fi] |
552cc11b | 364 | ) |
552cc11b | 365 | |
782db7ed MW |
366 | AC_ARG_ENABLE( |
367 | [medcli], | |
368 | AS_HELP_STRING([--enable-medcli],[enable mediation client configuration database plugin (default is NO).]), | |
369 | [if test x$enableval = xyes; then | |
370 | medcli=true | |
371 | fi] | |
372 | ) | |
373 | ||
a84fb01b | 374 | AC_ARG_ENABLE( |
6b9290ff MW |
375 | [smp], |
376 | AS_HELP_STRING([--enable-smp],[enable SMP configuration and control interface (default is NO). Requires libxml.]), | |
377 | [if test x$enableval = xyes; then | |
378 | smp=true | |
379 | fi] | |
a84fb01b | 380 | ) |
a84fb01b MW |
381 | |
382 | AC_ARG_ENABLE( | |
6b9290ff MW |
383 | [sql], |
384 | AS_HELP_STRING([--enable-sql],[enable SQL database configuration backend (default is NO).]), | |
385 | [if test x$enableval = xyes; then | |
386 | sql=true | |
387 | fi] | |
a84fb01b | 388 | ) |
a84fb01b | 389 | |
8f561d44 | 390 | AC_ARG_ENABLE( |
6b9290ff MW |
391 | [smartcard], |
392 | AS_HELP_STRING([--enable-smartcard],[enable smartcard support (default is NO).]), | |
393 | [if test x$enableval = xyes; then | |
394 | smartcard=true | |
395 | fi] | |
8f561d44 | 396 | ) |
8f561d44 | 397 | |
f2c2d395 | 398 | AC_ARG_ENABLE( |
6b9290ff MW |
399 | [cisco-quirks], |
400 | AS_HELP_STRING([--enable-cisco-quirks],[enable support of Cisco VPN client (default is NO).]), | |
401 | [if test x$enableval = xyes; then | |
402 | cisco_quirks=true | |
403 | fi] | |
f2c2d395 | 404 | ) |
f2c2d395 | 405 | |
2df45a73 | 406 | AC_ARG_ENABLE( |
6b9290ff MW |
407 | [leak-detective], |
408 | AS_HELP_STRING([--enable-leak-detective],[enable malloc hooks to find memory leaks (default is NO).]), | |
409 | [if test x$enableval = xyes; then | |
410 | leak_detective=true | |
411 | fi] | |
2df45a73 | 412 | ) |
2df45a73 | 413 | |
02140125 MW |
414 | AC_ARG_ENABLE( |
415 | [lock-profiler], | |
fc3ef71f | 416 | AS_HELP_STRING([--enable-lock-profiler],[enable lock/mutex profiling code (default is NO).]), |
02140125 MW |
417 | [if test x$enableval = xyes; then |
418 | lock_profiler=true | |
419 | fi] | |
420 | ) | |
421 | ||
f2c2d395 | 422 | AC_ARG_ENABLE( |
6b9290ff MW |
423 | [unit-tests], |
424 | AS_HELP_STRING([--enable-unit-tests],[enable unit tests on IKEv2 daemon startup (default is NO).]), | |
425 | [if test x$enableval = xyes; then | |
426 | unittest=true | |
427 | fi] | |
f2c2d395 | 428 | ) |
f2c2d395 | 429 | |
0fd6e955 MW |
430 | AC_ARG_ENABLE( |
431 | [load-tests], | |
432 | AS_HELP_STRING([--enable-load-tests],[enable load testing plugin for IKEv2 daemon (default is NO).]), | |
433 | [if test x$enableval = xyes; then | |
434 | loadtest=true | |
435 | fi] | |
436 | ) | |
437 | ||
552cc11b | 438 | AC_ARG_ENABLE( |
6b9290ff MW |
439 | [eap-sim], |
440 | AS_HELP_STRING([--enable-eap-sim],[build SIM authenication module for EAP (default is NO).]), | |
441 | [if test x$enableval = xyes; then | |
442 | eap_sim=true | |
443 | fi] | |
552cc11b | 444 | ) |
552cc11b | 445 | |
79a87846 MW |
446 | AC_ARG_ENABLE( |
447 | [eap-sim-file], | |
448 | AS_HELP_STRING([--enable-eap-sim-file],[build EAP-SIM backend based on a triplet file (default is NO).]), | |
449 | [if test x$enableval = xyes; then | |
450 | eap_sim_file=true | |
451 | fi] | |
452 | ) | |
453 | ||
b0f24449 | 454 | AC_ARG_ENABLE( |
6b9290ff MW |
455 | [eap-identity], |
456 | AS_HELP_STRING([--enable-eap-identity],[build EAP module providing EAP-Identity helper (default is NO).]), | |
457 | [if test x$enableval = xyes; then | |
458 | eap_identity=true | |
459 | fi] | |
b0f24449 | 460 | ) |
cbfb2aff MW |
461 | |
462 | AC_ARG_ENABLE( | |
6b9290ff MW |
463 | [eap-md5], |
464 | AS_HELP_STRING([--enable-eap-md5],[build MD5 (CHAP) authenication module for EAP (default is NO).]), | |
465 | [if test x$enableval = xyes; then | |
466 | eap_md5=true | |
467 | fi] | |
cbfb2aff | 468 | ) |
26e24676 | 469 | |
1caa265c MW |
470 | AC_ARG_ENABLE( |
471 | [eap-gtc], | |
472 | AS_HELP_STRING([--enable-eap-gtc],[build PAM based GTC authenication module for EAP (default is NO).]), | |
473 | [if test x$enableval = xyes; then | |
474 | eap_gtc=true | |
475 | fi] | |
476 | ) | |
477 | ||
26e24676 | 478 | AC_ARG_ENABLE( |
6b9290ff MW |
479 | [eap-aka], |
480 | AS_HELP_STRING([--enable-eap-aka],[build AKA authentication module for EAP (default is NO).]), | |
481 | [if test x$enableval = xyes; then | |
482 | eap_aka=true | |
483 | fi] | |
26e24676 | 484 | ) |
b0f24449 | 485 | |
f98cdf7a TB |
486 | AC_ARG_ENABLE( |
487 | [eap-mschapv2], | |
488 | AS_HELP_STRING([--enable-eap-mschapv2],[build MS-CHAPv2 authenication module for EAP (default is NO).]), | |
489 | [if test x$enableval = xyes; then | |
490 | eap_mschapv2=true | |
491 | fi] | |
492 | ) | |
493 | ||
4a6b84a9 MW |
494 | AC_ARG_ENABLE( |
495 | [eap-radius], | |
496 | AS_HELP_STRING([--enable-eap-radius],[build RADIUS proxy authenication module for EAP (default is NO).]), | |
497 | [if test x$enableval = xyes; then | |
498 | eap_radius=true | |
499 | fi] | |
500 | ) | |
501 | ||
09d7ef26 AS |
502 | AC_ARG_ENABLE( |
503 | [kernel-netlink], | |
504 | AS_HELP_STRING([--disable-kernel-netlink],[disable the netlink kernel interface. (default is NO).]), | |
505 | [if test x$enableval = xyes; then | |
506 | kernel_netlink=true | |
507 | else | |
508 | kernel_netlink=false | |
509 | fi], | |
510 | kernel_netlink=true | |
511 | ) | |
512 | ||
1adaa02b TB |
513 | AC_ARG_ENABLE( |
514 | [kernel-pfkey], | |
515 | AS_HELP_STRING([--enable-kernel-pfkey],[enable the PF_KEY kernel interface. (default is NO).]), | |
516 | [if test x$enableval = xyes; then | |
517 | kernel_pfkey=true | |
518 | fi] | |
519 | ) | |
520 | ||
ea7e89c7 TB |
521 | AC_ARG_ENABLE( |
522 | [kernel-pfroute], | |
523 | AS_HELP_STRING([--enable-kernel-pfroute],[enable the PF_ROUTE kernel interface. (default is NO).]), | |
524 | [if test x$enableval = xyes; then | |
525 | kernel_pfroute=true | |
526 | fi] | |
527 | ) | |
528 | ||
ea625fab TB |
529 | AC_ARG_ENABLE( |
530 | [kernel-klips], | |
531 | AS_HELP_STRING([--enable-kernel-klips],[enable the KLIPS kernel interface. (default is NO).]), | |
532 | [if test x$enableval = xyes; then | |
533 | kernel_klips=true | |
534 | fi] | |
535 | ) | |
536 | ||
7b0c588a | 537 | AC_ARG_ENABLE( |
6b9290ff MW |
538 | [nat-transport], |
539 | AS_HELP_STRING([--enable-nat-transport],[enable NAT traversal with IPsec transport mode (default is NO).]), | |
540 | [if test x$enableval = xyes; then | |
541 | nat_transport=true | |
542 | fi] | |
7b0c588a | 543 | ) |
7b0c588a AS |
544 | |
545 | AC_ARG_ENABLE( | |
6b9290ff MW |
546 | [vendor-id], |
547 | AS_HELP_STRING([--disable-vendor-id],[disable the sending of the strongSwan vendor ID (default is NO).]), | |
548 | [if test x$enableval = xyes; then | |
549 | vendor_id=true | |
550 | else | |
551 | vendor_id=false | |
552 | fi], | |
553 | vendor_id=true | |
7b0c588a | 554 | ) |
7b0c588a | 555 | |
0e307360 | 556 | AC_ARG_ENABLE( |
6b9290ff MW |
557 | [xauth-vid], |
558 | AS_HELP_STRING([--disable-xauth-vid],[disable the sending of the XAUTH vendor ID (default is NO).]), | |
559 | [if test x$enableval = xyes; then | |
560 | xauth_vid=true | |
561 | else | |
562 | xauth_vid=false | |
563 | fi], | |
564 | xauth_vid=true | |
0e307360 | 565 | ) |
0e307360 | 566 | |
fd4ded97 | 567 | AC_ARG_ENABLE( |
6b9290ff MW |
568 | [dumm], |
569 | AS_HELP_STRING([--enable-dumm],[build the DUMM UML test framework (default is NO).]), | |
570 | [if test x$enableval = xyes; then | |
571 | dumm=true | |
572 | fi] | |
fd4ded97 | 573 | ) |
fd4ded97 | 574 | |
552cc11b | 575 | AC_ARG_ENABLE( |
6b9290ff MW |
576 | [fast], |
577 | AS_HELP_STRING([--enable-fast],[build libfast (FastCGI Application Server w/ templates (default is NO).]), | |
578 | [if test x$enableval = xyes; then | |
579 | fast=true | |
580 | fi] | |
552cc11b | 581 | ) |
552cc11b | 582 | |
b8c7453a | 583 | AC_ARG_ENABLE( |
6b9290ff MW |
584 | [manager], |
585 | AS_HELP_STRING([--enable-manager],[build web management console (default is NO).]), | |
586 | [if test x$enableval = xyes; then | |
587 | manager=true | |
588 | xml=true | |
589 | fi] | |
b8c7453a | 590 | ) |
b8c7453a | 591 | |
d5cc1758 | 592 | AC_ARG_ENABLE( |
6b9290ff MW |
593 | [mediation], |
594 | AS_HELP_STRING([--enable-mediation],[enable IKEv2 Mediation Extension (default is NO).]), | |
595 | [if test x$enableval = xyes; then | |
596 | me=true | |
597 | fi] | |
d5cc1758 | 598 | ) |
d5cc1758 | 599 | |
9ee1111d | 600 | AC_ARG_ENABLE( |
6b9290ff | 601 | [integrity-test], |
e3b7be91 | 602 | AS_HELP_STRING([--enable-integrity-test],[enable integrity testing of libstrongswan and plugins (default is NO).]), |
6b9290ff MW |
603 | [if test x$enableval = xyes; then |
604 | integrity_test=true | |
605 | fi] | |
9ee1111d | 606 | ) |
9ee1111d | 607 | |
733f336a | 608 | AC_ARG_ENABLE( |
6b9290ff MW |
609 | [pluto], |
610 | AS_HELP_STRING([--disable-pluto],[disable the IKEv1 keying daemon pluto. (default is NO).]), | |
611 | [if test x$enableval = xyes; then | |
612 | pluto=true | |
613 | else | |
614 | pluto=false | |
615 | fi], | |
616 | pluto=true | |
cbfb2aff | 617 | ) |
cbfb2aff | 618 | |
6905f794 MW |
619 | AC_ARG_ENABLE( |
620 | [threads], | |
621 | AS_HELP_STRING([--disable-threads],[disable the use of threads in pluto. Charon always uses threads. (default is NO).]), | |
622 | [if test x$enableval = xyes; then | |
623 | threads=true | |
624 | else | |
625 | threads=false | |
626 | fi], | |
627 | threads=true | |
628 | ) | |
629 | ||
cbfb2aff | 630 | AC_ARG_ENABLE( |
6b9290ff MW |
631 | [charon], |
632 | AS_HELP_STRING([--disable-charon],[disable the IKEv2 keying daemon charon. (default is NO).]), | |
633 | [if test x$enableval = xyes; then | |
634 | charon=true | |
635 | else | |
636 | charon=false | |
637 | fi], | |
638 | charon=true | |
cbfb2aff | 639 | ) |
cbfb2aff MW |
640 | |
641 | AC_ARG_ENABLE( | |
6b9290ff MW |
642 | [tools], |
643 | AS_HELP_STRING([--disable-tools],[disable additional utilities (openac and scepclient). (default is NO).]), | |
644 | [if test x$enableval = xyes; then | |
645 | tools=true | |
646 | else | |
647 | tools=false | |
648 | fi], | |
649 | tools=true | |
733f336a | 650 | ) |
733f336a | 651 | |
cf00cffe TB |
652 | AC_ARG_ENABLE( |
653 | [scripts], | |
654 | AS_HELP_STRING([--disable-scripts],[disable additional utilities (found in directory scripts). (default is NO).]), | |
655 | [if test x$enableval = xyes; then | |
656 | scripts=true | |
657 | else | |
658 | scripts=false | |
659 | fi], | |
660 | scripts=true | |
661 | ) | |
662 | ||
1e9c46f1 MW |
663 | AC_ARG_ENABLE( |
664 | [updown], | |
ad3af574 | 665 | AS_HELP_STRING([--disable-updown],[disable updown firewall script plugin. (default is NO).]), |
1e9c46f1 MW |
666 | [if test x$enableval = xyes; then |
667 | updown=true | |
668 | else | |
669 | updown=false | |
670 | fi], | |
671 | updown=true | |
672 | ) | |
673 | ||
adc25ec2 MW |
674 | AC_ARG_ENABLE( |
675 | [attr], | |
676 | AS_HELP_STRING([--disable-attr],[disable strongswan.conf based configuration attribute plugin. (default is NO).]), | |
677 | [if test x$enableval = xyes; then | |
678 | attr=true | |
679 | else | |
680 | attr=false | |
681 | fi], | |
682 | attr=true | |
683 | ) | |
684 | ||
685 | AC_ARG_ENABLE( | |
686 | [resolv-conf], | |
687 | AS_HELP_STRING([--disable-resolv-conf],[disable resolv.conf DNS handler plugin. (default is NO).]), | |
688 | [if test x$enableval = xyes; then | |
689 | resolvconf=true | |
690 | else | |
691 | resolvconf=false | |
692 | fi], | |
693 | resolvconf=true | |
694 | ) | |
695 | ||
36d62fac MW |
696 | AC_ARG_ENABLE( |
697 | [padlock], | |
698 | AS_HELP_STRING([--enable-padlock],[enables VIA Padlock crypto plugin. (default is NO).]), | |
699 | [if test x$enableval = xyes; then | |
700 | padlock=true | |
701 | else | |
702 | padlock=false | |
703 | fi], | |
704 | ) | |
705 | ||
17353034 TB |
706 | AC_ARG_ENABLE( |
707 | [openssl], | |
708 | AS_HELP_STRING([--enable-openssl],[enables the OpenSSL crypto plugin. (default is NO).]), | |
709 | [if test x$enableval = xyes; then | |
710 | openssl=true | |
711 | else | |
712 | openssl=false | |
713 | fi], | |
714 | ) | |
715 | ||
4977018c MW |
716 | AC_ARG_ENABLE( |
717 | [gcrypt], | |
718 | AS_HELP_STRING([--enable-gcrypt],[enables the libgcrypt plugin. (default is NO).]), | |
719 | [if test x$enableval = xyes; then | |
720 | gcrypt=true | |
721 | else | |
722 | gcrypt=false | |
723 | fi], | |
724 | ) | |
725 | ||
21c95463 MW |
726 | AC_ARG_ENABLE( |
727 | [agent], | |
728 | AS_HELP_STRING([--enable-agent],[enables the ssh-agent signing plugin. (default is NO).]), | |
729 | [if test x$enableval = xyes; then | |
730 | agent=true | |
731 | else | |
732 | agent=false | |
733 | fi], | |
734 | ) | |
735 | ||
61c46386 MW |
736 | AC_ARG_ENABLE( |
737 | [uci], | |
738 | AS_HELP_STRING([--enable-uci],[enable OpenWRT UCI configuration plugin (default is NO).]), | |
739 | [if test x$enableval = xyes; then | |
740 | uci=true | |
741 | fi] | |
742 | ) | |
743 | ||
6dbce9c8 MW |
744 | AC_ARG_ENABLE( |
745 | [nm], | |
746 | AS_HELP_STRING([--enable-nm],[enable NetworkManager plugin (default is NO).]), | |
747 | [if test x$enableval = xyes; then | |
748 | nm=true | |
749 | fi] | |
750 | ) | |
751 | ||
bf45d6dd TB |
752 | AC_ARG_ENABLE( |
753 | [vstr], | |
754 | AS_HELP_STRING([--enable-vstr],[enforce using the Vstr string library to replace glibc-like printf hooks (default is NO).]), | |
755 | [if test x$enableval = xyes; then | |
756 | vstr=true | |
757 | fi] | |
758 | ) | |
759 | ||
be0a03be MW |
760 | dnl ========================= |
761 | dnl set up compiler and flags | |
762 | dnl ========================= | |
763 | ||
764 | if test -z "$CFLAGS"; then | |
f5410905 | 765 | CFLAGS="-g -O2 -Wall -Wno-format -Wno-pointer-sign -Wno-strict-aliasing" |
be0a03be MW |
766 | fi |
767 | AC_PROG_CC | |
f5410905 | 768 | AC_LIB_PREFIX |
be0a03be MW |
769 | AC_C_BIGENDIAN |
770 | ||
f2c2d395 MW |
771 | dnl ========================= |
772 | dnl check required programs | |
773 | dnl ========================= | |
774 | ||
775 | AC_PROG_INSTALL | |
776 | AC_PROG_LIBTOOL | |
7d2b06da | 777 | AC_PROG_EGREP |
69fc7820 | 778 | AC_PROG_AWK |
f2c2d395 MW |
779 | AC_PROG_LEX |
780 | AC_PROG_YACC | |
298b06c2 | 781 | AC_PATH_PROG([PERL], [perl], [], [$PATH:/bin:/usr/bin:/usr/local/bin]) |
69fc7820 TB |
782 | AC_PATH_PROG([GPERF], [gperf], [], [$PATH:/bin:/usr/bin:/usr/local/bin]) |
783 | ||
784 | dnl because gperf is not needed by end-users we just report it but do not abort on failure | |
785 | AC_MSG_CHECKING([gperf version >= 3.0.0]) | |
786 | if test -x "$GPERF"; then | |
787 | if test "`$GPERF --version | $AWK -F' ' '/^GNU gperf/ { print $3 }' | $AWK -F. '{ print $1 }'`" -ge "3"; then | |
788 | AC_MSG_RESULT([yes]) | |
789 | else | |
790 | AC_MSG_RESULT([no]) | |
791 | fi | |
792 | else | |
793 | AC_MSG_RESULT([not found]) | |
794 | fi | |
f2c2d395 | 795 | |
7d2b06da TB |
796 | dnl translate user/group to numercial ids |
797 | AC_MSG_CHECKING([for uid of user "$ipsecuser"]) | |
798 | ipsecuid=`id -u $ipsecuser 2>/dev/null` | |
799 | if test -n "$ipsecuid"; then | |
800 | AC_MSG_RESULT([$ipsecuid]) | |
801 | AC_SUBST(ipsecuid) | |
802 | else | |
803 | AC_MSG_ERROR([not found]) | |
804 | fi | |
805 | AC_MSG_CHECKING([for gid of group "$ipsecgroup"]) | |
6ff7ab85 | 806 | ipsecgid=`$EGREP "^$ipsecgroup:" /etc/group | $AWK -F: '{ print $3 }'` |
7d2b06da TB |
807 | if test -n "$ipsecgid"; then |
808 | AC_MSG_RESULT([$ipsecgid]) | |
809 | AC_SUBST(ipsecgid) | |
810 | else | |
811 | AC_MSG_ERROR([not found]) | |
812 | fi | |
813 | ||
6b9290ff MW |
814 | dnl ========================= |
815 | dnl dependency calculation | |
816 | dnl ========================= | |
f2c2d395 | 817 | |
a998276a MW |
818 | if test x$eap_aka = xtrue; then |
819 | gmp=true; | |
820 | fips_prf=true; | |
821 | sha1=true; | |
822 | fi | |
823 | ||
824 | if test x$eap_sim = xtrue; then | |
825 | fips_prf=true; | |
826 | fi | |
827 | ||
828 | if test x$fips_prf = xtrue; then | |
829 | sha1=true; | |
830 | fi | |
831 | ||
6b9290ff MW |
832 | if test x$tools = xtrue; then |
833 | gmp=true; | |
834 | fi | |
552cc11b | 835 | |
6b9290ff MW |
836 | if test x$smp = xtrue; then |
837 | xml=true | |
838 | fi | |
839 | ||
840 | if test x$manager = xtrue; then | |
841 | fast=true | |
842 | fi | |
843 | ||
782db7ed MW |
844 | if test x$medsrv = xtrue; then |
845 | me=true | |
9529fb68 | 846 | fast=true |
782db7ed MW |
847 | fi |
848 | ||
849 | if test x$medcli = xtrue; then | |
850 | me=true | |
851 | fi | |
852 | ||
a9f56adb | 853 | dnl =========================================== |
6b9290ff | 854 | dnl check required libraries and header files |
a9f56adb TB |
855 | dnl =========================================== |
856 | ||
857 | AC_HEADER_STDBOOL | |
8b6a5ce5 | 858 | AC_FUNC_ALLOCA |
6b9290ff | 859 | |
3974b2fb TB |
860 | dnl libraries needed on some platforms but not on others |
861 | dnl ==================================================== | |
ea7e89c7 | 862 | saved_LIBS=$LIBS |
3974b2fb | 863 | |
26965b4e | 864 | dnl FreeBSD and Mac OS X have dlopen integrated in libc, Linux needs libdl |
ea7e89c7 TB |
865 | LIBS="" |
866 | AC_SEARCH_LIBS(dlopen, dl, [DLLIB=$LIBS]) | |
ea7e89c7 TB |
867 | AC_SUBST(DLLIB) |
868 | ||
3974b2fb TB |
869 | dnl glibc's backtrace() can be replicated on FreeBSD with libexecinfo |
870 | LIBS="" | |
871 | AC_SEARCH_LIBS(backtrace, execinfo, [BTLIB=$LIBS]) | |
872 | AC_CHECK_FUNCS(backtrace) | |
873 | AC_SUBST(BTLIB) | |
874 | ||
26965b4e TB |
875 | dnl OpenSolaris needs libsocket and libnsl for socket() |
876 | LIBS="" | |
877 | AC_SEARCH_LIBS(socket, socket, [SOCKLIB=$LIBS], | |
878 | [AC_CHECK_LIB(nsl, socket, [SOCKLIB="-lsocket -lnsl"], [], [-lsocket])] | |
879 | ) | |
880 | AC_SUBST(SOCKLIB) | |
881 | ||
3974b2fb TB |
882 | LIBS=$saved_LIBS |
883 | dnl ====================== | |
884 | ||
4f734a55 MW |
885 | AC_MSG_CHECKING(for dladdr) |
886 | AC_TRY_COMPILE( | |
887 | [#define _GNU_SOURCE | |
888 | #include <dlfcn.h>], | |
889 | [Dl_info* info = 0; | |
890 | dladdr(0, info);], | |
891 | [AC_MSG_RESULT([yes]); AC_DEFINE([HAVE_DLADDR])], | |
892 | [AC_MSG_RESULT([no])] | |
893 | ) | |
894 | ||
65ea37ab | 895 | AC_CHECK_FUNCS(prctl) |
65ea37ab | 896 | |
e580e0a9 | 897 | AC_CHECK_HEADERS(sys/sockio.h) |
1e7b4b00 | 898 | AC_CHECK_HEADERS(net/pfkeyv2.h netipsec/ipsec.h netinet6/ipsec.h linux/udp.h) |
ea7e89c7 TB |
899 | |
900 | AC_CHECK_MEMBERS([struct sockaddr.sa_len], [], [], | |
901 | [ | |
902 | #include <sys/types.h> | |
903 | #include <sys/socket.h> | |
904 | ]) | |
905 | ||
906 | AC_CHECK_MEMBERS([struct sadb_x_policy.sadb_x_policy_priority], [], [], | |
907 | [ | |
908 | #include <sys/types.h> | |
909 | #ifdef HAVE_NET_PFKEYV2_H | |
910 | #include <net/pfkeyv2.h> | |
911 | #else | |
912 | #include <stdint.h> | |
913 | #include <linux/pfkeyv2.h> | |
914 | #endif | |
915 | ]) | |
e696757c | 916 | |
617e59b7 TB |
917 | AC_MSG_CHECKING([for IPSEC_MODE_BEET]) |
918 | AC_TRY_COMPILE( | |
a6ae2a14 TB |
919 | [#include <sys/types.h> |
920 | #ifdef HAVE_NETIPSEC_IPSEC_H | |
617e59b7 TB |
921 | #include <netipsec/ipsec.h> |
922 | #elif defined(HAVE_NETINET6_IPSEC_H) | |
923 | #include <netinet6/ipsec.h> | |
924 | #else | |
a6ae2a14 | 925 | #include <stdint.h> |
617e59b7 TB |
926 | #include <linux/ipsec.h> |
927 | #endif], | |
928 | [int mode = IPSEC_MODE_BEET; | |
929 | return mode;], | |
930 | [AC_MSG_RESULT([yes]); AC_DEFINE([HAVE_IPSEC_MODE_BEET])], | |
931 | [AC_MSG_RESULT([no])] | |
932 | ) | |
933 | ||
934 | AC_MSG_CHECKING([for IPSEC_DIR_FWD]) | |
935 | AC_TRY_COMPILE( | |
a6ae2a14 TB |
936 | [#include <sys/types.h> |
937 | #ifdef HAVE_NETIPSEC_IPSEC_H | |
617e59b7 TB |
938 | #include <netipsec/ipsec.h> |
939 | #elif defined(HAVE_NETINET6_IPSEC_H) | |
940 | #include <netinet6/ipsec.h> | |
941 | #else | |
a6ae2a14 | 942 | #include <stdint.h> |
617e59b7 TB |
943 | #include <linux/ipsec.h> |
944 | #endif], | |
945 | [int dir = IPSEC_DIR_FWD; | |
946 | return dir;], | |
947 | [AC_MSG_RESULT([yes]); AC_DEFINE([HAVE_IPSEC_DIR_FWD])], | |
948 | [AC_MSG_RESULT([no])] | |
949 | ) | |
950 | ||
efd0fe21 MW |
951 | AC_MSG_CHECKING([for gcc atomic operations]) |
952 | AC_TRY_RUN( | |
953 | [ | |
954 | int main() { | |
955 | volatile int ref = 1; | |
956 | __sync_fetch_and_add (&ref, 1); | |
957 | __sync_sub_and_fetch (&ref, 1); | |
958 | /* Make sure test fails if operations are not supported */ | |
959 | __sync_val_compare_and_swap(&ref, 1, 0); | |
960 | return ref; | |
961 | } | |
962 | ], | |
963 | [AC_MSG_RESULT([yes]); AC_DEFINE(HAVE_GCC_ATOMIC_OPERATIONS)], | |
bb835afa | 964 | [AC_MSG_RESULT([no])], |
efd0fe21 MW |
965 | [AC_MSG_RESULT([no])]) |
966 | ||
d25ce370 TB |
967 | AC_CHECK_FUNC( |
968 | [register_printf_function], | |
969 | [AC_DEFINE(HAVE_PRINTF_HOOKS)], | |
970 | [ | |
971 | AC_MSG_NOTICE([printf does not support custom format specifiers!]) | |
bf45d6dd TB |
972 | vstr=true |
973 | ] | |
974 | ) | |
975 | ||
976 | if test x$vstr = xtrue; then | |
977 | AC_HAVE_LIBRARY([vstr],[LIBS="$LIBS"],[AC_MSG_ERROR([Vstr string library not found])]) | |
978 | AC_DEFINE(USE_VSTR) | |
979 | fi | |
d25ce370 | 980 | |
6b9290ff | 981 | if test x$gmp = xtrue; then |
f8277a83 | 982 | AC_HAVE_LIBRARY([gmp],[LIBS="$LIBS"],[AC_MSG_ERROR([GNU Multi Precision library gmp not found])]) |
6b9290ff MW |
983 | AC_MSG_CHECKING([gmp.h version >= 4.1.4]) |
984 | AC_TRY_COMPILE( | |
985 | [#include "gmp.h"], | |
986 | [ | |
987 | #if (__GNU_MP_VERSION*100 + __GNU_MP_VERSION_MINOR*10 + __GNU_MP_VERSION_PATCHLEVEL) < 414 | |
988 | #error bad gmp | |
989 | #endif | |
990 | ], | |
991 | [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); AC_MSG_ERROR([No usable gmp.h found!])] | |
992 | ) | |
f2c2d395 | 993 | fi |
6b9290ff MW |
994 | |
995 | if test x$ldap = xtrue; then | |
996 | AC_HAVE_LIBRARY([ldap],[LIBS="$LIBS"],[AC_MSG_ERROR([LDAP library ldap not found])]) | |
997 | AC_HAVE_LIBRARY([lber],[LIBS="$LIBS"],[AC_MSG_ERROR([LDAP library lber not found])]) | |
998 | AC_CHECK_HEADER([ldap.h],,[AC_MSG_ERROR([LDAP header ldap.h not found!])]) | |
f2c2d395 MW |
999 | fi |
1000 | ||
6b9290ff MW |
1001 | if test x$curl = xtrue; then |
1002 | AC_HAVE_LIBRARY([curl],[LIBS="$LIBS"],[AC_MSG_ERROR([CURL library curl not found])]) | |
1003 | AC_CHECK_HEADER([curl/curl.h],,[AC_MSG_ERROR([CURL header curl/curl.h not found!])]) | |
1004 | fi | |
1005 | ||
1006 | if test x$xml = xtrue; then | |
a47486b5 | 1007 | PKG_CHECK_MODULES(xml, [libxml-2.0]) |
f2d6355e MW |
1008 | AC_SUBST(xml_CFLAGS) |
1009 | AC_SUBST(xml_LIBS) | |
1010 | fi | |
1011 | ||
a47486b5 MW |
1012 | if test x$dumm = xtrue; then |
1013 | PKG_CHECK_MODULES(gtk, [gtk+-2.0 vte]) | |
1014 | AC_SUBST(gtk_CFLAGS) | |
1015 | AC_SUBST(gtk_LIBS) | |
d2e9cbc9 TB |
1016 | AC_CHECK_PROGS(RUBY, ruby) |
1017 | AC_MSG_CHECKING([for Ruby header files]) | |
1018 | if test -n "$RUBY"; then | |
1019 | RUBYDIR=`($RUBY -rmkmf -e 'print Config::CONFIG[["archdir"]] || $archdir') 2>/dev/null` | |
1020 | if test -n "$RUBYDIR"; then | |
1021 | dirs="$RUBYDIR" | |
1022 | RUBYINCLUDE=none | |
1023 | for i in $dirs; do | |
1024 | if test -r $i/ruby.h; then | |
1025 | AC_MSG_RESULT([$i]) | |
1026 | RUBYINCLUDE="-I$i" | |
1027 | break; | |
1028 | fi | |
1029 | done | |
1030 | if test x"$RUBYINCLUDE" = xnone; then | |
1031 | AC_MSG_ERROR([ruby.h not found]) | |
1032 | fi | |
1033 | AC_SUBST(RUBYINCLUDE) | |
1034 | else | |
1035 | AC_MSG_ERROR([unable to determine ruby configuration]) | |
1036 | fi | |
1037 | else | |
1038 | AC_MSG_ERROR([don't know how to run ruby]) | |
1039 | fi | |
a47486b5 MW |
1040 | fi |
1041 | ||
6b9290ff MW |
1042 | if test x$fast = xtrue; then |
1043 | AC_HAVE_LIBRARY([neo_cgi],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver library neo_cgi not found!])]) | |
1044 | AC_HAVE_LIBRARY([neo_utl],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver library neo_utl not found!])]) | |
1045 | AC_HAVE_LIBRARY([z],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver dependency zlib not found!])]) | |
1046 | dnl autoconf does not like CamelCase!? How to fix this? | |
1047 | dnl AC_CHECK_HEADER([ClearSilver/ClearSilver.h],,[AC_MSG_ERROR([ClearSilver header file ClearSilver/ClearSilver.h not found!])]) | |
1048 | ||
1049 | AC_HAVE_LIBRARY([fcgi],[LIBS="$LIBS"],[AC_MSG_ERROR([FastCGI library fcgi not found!])]) | |
1050 | AC_CHECK_HEADER([fcgiapp.h],,[AC_MSG_ERROR([FastCGI header file fcgiapp.h not found!])]) | |
a84fb01b MW |
1051 | fi |
1052 | ||
6b9290ff MW |
1053 | if test x$mysql = xtrue; then |
1054 | AC_HAVE_LIBRARY([mysqlclient_r],[LIBS="$LIBS"],[AC_MSG_ERROR([MySQL library mysqlclient_r not found])]) | |
1055 | AC_CHECK_HEADER([mysql/mysql.h],,[AC_MSG_ERROR([MySQL header mysql/mysql.h not found!])]) | |
1056 | fi | |
f2c2d395 | 1057 | |
f8277a83 | 1058 | if test x$sqlite = xtrue; then |
6b9290ff MW |
1059 | AC_HAVE_LIBRARY([sqlite3],[LIBS="$LIBS"],[AC_MSG_ERROR([SQLite library sqlite3 not found])]) |
1060 | AC_CHECK_HEADER([sqlite3.h],,[AC_MSG_ERROR([SQLite header sqlite3.h not found!])]) | |
f8277a83 MW |
1061 | AC_MSG_CHECKING([sqlite3_prepare_v2]) |
1062 | AC_TRY_COMPILE( | |
1063 | [#include <sqlite3.h>], | |
1064 | [ | |
1065 | void *test = sqlite3_prepare_v2; | |
1066 | ], | |
1067 | [AC_MSG_RESULT([yes])]; AC_DEFINE_UNQUOTED(HAVE_SQLITE3_PREPARE_V2, 1), [AC_MSG_RESULT([no])]) | |
7da767f7 MW |
1068 | AC_MSG_CHECKING([sqlite3.h version >= 3.3.1]) |
1069 | AC_TRY_COMPILE( | |
1070 | [#include <sqlite3.h>], | |
1071 | [ | |
1072 | #if SQLITE_VERSION_NUMBER < 3003001 | |
1073 | #error bad sqlite | |
1074 | #endif | |
1075 | ], | |
1076 | [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); AC_MSG_ERROR([SQLite version >= 3.3.1 required!])]) | |
6b9290ff | 1077 | fi |
f2c2d395 | 1078 | |
17353034 | 1079 | if test x$openssl = xtrue; then |
e581a31d | 1080 | AC_HAVE_LIBRARY([crypto],[LIBS="$LIBS"],[AC_MSG_ERROR([OpenSSL crypto library not found])]) |
17353034 TB |
1081 | AC_CHECK_HEADER([openssl/evp.h],,[AC_MSG_ERROR([OpenSSL header openssl/evp.h not found!])]) |
1082 | fi | |
1083 | ||
4977018c | 1084 | if test x$gcrypt = xtrue; then |
ccd14645 | 1085 | AM_PATH_LIBGCRYPT(,,[AC_MSG_ERROR([libgcrypt not found!])]) |
62d6da67 MW |
1086 | AC_MSG_CHECKING([gcrypt CAMELLIA cipher]) |
1087 | AC_TRY_COMPILE( | |
1088 | [#include <gcrypt.h>], | |
1089 | [enum gcry_cipher_algos alg = GCRY_CIPHER_CAMELLIA128;], | |
1090 | [AC_MSG_RESULT([yes]); AC_DEFINE([HAVE_GCRY_CIPHER_CAMELLIA])], | |
1091 | [AC_MSG_RESULT([no])] | |
1092 | ) | |
4977018c MW |
1093 | fi |
1094 | ||
61c46386 MW |
1095 | if test x$uci = xtrue; then |
1096 | AC_HAVE_LIBRARY([uci],[LIBS="$LIBS"],[AC_MSG_ERROR([UCI library libuci not found])]) | |
1097 | AC_CHECK_HEADER([uci.h],,[AC_MSG_ERROR([UCI header uci.h not found!])]) | |
1098 | fi | |
1099 | ||
6dbce9c8 MW |
1100 | if test x$nm = xtrue; then |
1101 | PKG_CHECK_MODULES(nm, [NetworkManager libnm_glib_vpn gthread-2.0]) | |
1102 | AC_SUBST(nm_CFLAGS) | |
1103 | AC_SUBST(nm_LIBS) | |
1104 | fi | |
1105 | ||
1caa265c MW |
1106 | if test x$eap_gtc = xtrue; then |
1107 | AC_HAVE_LIBRARY([pam],[LIBS="$LIBS"],[AC_MSG_ERROR([PAM library not found])]) | |
1108 | AC_CHECK_HEADER([security/pam_appl.h],,[AC_MSG_ERROR([PAM header security/pam_appl.h not found!])]) | |
1109 | fi | |
1110 | ||
eb3e2705 MW |
1111 | if test x$capabilities = xlibcap; then |
1112 | AC_HAVE_LIBRARY([cap],[LIBS="$LIBS"],[AC_MSG_ERROR([libcap library not found])]) | |
1113 | AC_CHECK_HEADER([sys/capability.h],,[AC_MSG_ERROR([libcap header sys/capability.h not found!])]) | |
1114 | fi | |
1115 | ||
e4e6a77a MW |
1116 | if test x$integrity_test = xtrue; then |
1117 | AC_MSG_CHECKING([for dladdr()]) | |
1118 | AC_TRY_COMPILE( | |
1119 | [#define _GNU_SOURCE | |
1120 | #include <dlfcn.h>], | |
1121 | [Dl_info info; dladdr(main, &info);], | |
1122 | [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); | |
1123 | AC_MSG_ERROR([dladdr() not supported, required by integrity-test!])] | |
1124 | ) | |
1125 | AC_MSG_CHECKING([for dl_iterate_phdr()]) | |
1126 | AC_TRY_COMPILE( | |
1127 | [#define _GNU_SOURCE | |
1128 | #include <link.h>], | |
1129 | [dl_iterate_phdr((void*)0, (void*)0);], | |
1130 | [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); | |
1131 | AC_MSG_ERROR([dl_iterate_phdr() not supported, required by integrity-test!])] | |
1132 | ) | |
1133 | fi | |
1134 | ||
1ba62b55 MW |
1135 | dnl ====================================== |
1136 | dnl collect all plugins for libstrongswan | |
1137 | dnl ====================================== | |
1138 | ||
1139 | libstrongswan_plugins= | |
de92b9e7 | 1140 | pluto_plugins= |
1ba62b55 | 1141 | |
81811a9d MW |
1142 | if test x$test_vectors = xtrue; then |
1143 | libstrongswan_plugins=${libstrongswan_plugins}" test-vectors" | |
1144 | pluto_plugins=${pluto_plugins}" test-vectors" | |
1145 | fi | |
1ba62b55 | 1146 | if test x$curl = xtrue; then |
29727a44 | 1147 | libstrongswan_plugins=${libstrongswan_plugins}" curl" |
de92b9e7 | 1148 | pluto_plugins=${pluto_plugins}" curl" |
1ba62b55 MW |
1149 | fi |
1150 | if test x$ldap = xtrue; then | |
29727a44 | 1151 | libstrongswan_plugins=${libstrongswan_plugins}" ldap" |
de92b9e7 | 1152 | pluto_plugins=${pluto_plugins}" ldap" |
1ba62b55 MW |
1153 | fi |
1154 | if test x$aes = xtrue; then | |
29727a44 | 1155 | libstrongswan_plugins=${libstrongswan_plugins}" aes" |
d36ae9e3 | 1156 | pluto_plugins=${pluto_plugins}" aes" |
1ba62b55 MW |
1157 | fi |
1158 | if test x$des = xtrue; then | |
29727a44 | 1159 | libstrongswan_plugins=${libstrongswan_plugins}" des" |
d36ae9e3 AS |
1160 | pluto_plugins=${pluto_plugins}" des" |
1161 | fi | |
1162 | if test x$blowfish = xtrue; then | |
1163 | libstrongswan_plugins=${libstrongswan_plugins}" blowfish" | |
1164 | pluto_plugins=${pluto_plugins}" blowfish" | |
1165 | fi | |
1ba62b55 | 1166 | if test x$sha1 = xtrue; then |
29727a44 | 1167 | libstrongswan_plugins=${libstrongswan_plugins}" sha1" |
d36ae9e3 | 1168 | pluto_plugins=${pluto_plugins}" sha1" |
1ba62b55 MW |
1169 | fi |
1170 | if test x$sha2 = xtrue; then | |
29727a44 | 1171 | libstrongswan_plugins=${libstrongswan_plugins}" sha2" |
d36ae9e3 | 1172 | pluto_plugins=${pluto_plugins}" sha2" |
1ba62b55 | 1173 | fi |
1e0d1ae2 AS |
1174 | if test x$md4 = xtrue; then |
1175 | libstrongswan_plugins=${libstrongswan_plugins}" md4" | |
1176 | fi | |
e577ad39 MW |
1177 | if test x$md5 = xtrue; then |
1178 | libstrongswan_plugins=${libstrongswan_plugins}" md5" | |
d36ae9e3 | 1179 | pluto_plugins=${pluto_plugins}" md5" |
e577ad39 | 1180 | fi |
1ba62b55 | 1181 | if test x$fips_prf = xtrue; then |
29727a44 | 1182 | libstrongswan_plugins=${libstrongswan_plugins}" fips-prf" |
1ba62b55 | 1183 | fi |
1ba62b55 | 1184 | if test x$random = xtrue; then |
29727a44 | 1185 | libstrongswan_plugins=${libstrongswan_plugins}" random" |
bc2e33ca | 1186 | pluto_plugins=${pluto_plugins}" random" |
1ba62b55 MW |
1187 | fi |
1188 | if test x$x509 = xtrue; then | |
29727a44 | 1189 | libstrongswan_plugins=${libstrongswan_plugins}" x509" |
1ba62b55 MW |
1190 | fi |
1191 | if test x$pubkey = xtrue; then | |
29727a44 | 1192 | libstrongswan_plugins=${libstrongswan_plugins}" pubkey" |
c146b2c8 | 1193 | pluto_plugins=${pluto_plugins}" pubkey" |
1ba62b55 | 1194 | fi |
160f4c22 MW |
1195 | if test x$pem = xtrue; then |
1196 | libstrongswan_plugins=${libstrongswan_plugins}" pem" | |
1197 | pluto_plugins=${pluto_plugins}" pem" | |
1198 | fi | |
1ba62b55 | 1199 | if test x$mysql = xtrue; then |
29727a44 | 1200 | libstrongswan_plugins=${libstrongswan_plugins}" mysql" |
1ba62b55 MW |
1201 | fi |
1202 | if test x$sqlite = xtrue; then | |
29727a44 | 1203 | libstrongswan_plugins=${libstrongswan_plugins}" sqlite" |
1ba62b55 MW |
1204 | fi |
1205 | if test x$padlock = xtrue; then | |
29727a44 | 1206 | libstrongswan_plugins=${libstrongswan_plugins}" padlock" |
1ba62b55 MW |
1207 | fi |
1208 | if test x$openssl = xtrue; then | |
29727a44 | 1209 | libstrongswan_plugins=${libstrongswan_plugins}" openssl" |
13e51a62 | 1210 | pluto_plugins=${pluto_plugins}" openssl" |
1ba62b55 | 1211 | fi |
4977018c MW |
1212 | if test x$gcrypt = xtrue; then |
1213 | libstrongswan_plugins=${libstrongswan_plugins}" gcrypt" | |
1214 | pluto_plugins=${pluto_plugins}" gcrypt" | |
1215 | fi | |
0c013ff3 MW |
1216 | if test x$xcbc = xtrue; then |
1217 | libstrongswan_plugins=${libstrongswan_plugins}" xcbc" | |
1218 | fi | |
1219 | if test x$hmac = xtrue; then | |
1220 | libstrongswan_plugins=${libstrongswan_plugins}" hmac" | |
1221 | pluto_plugins=${pluto_plugins}" hmac" | |
1222 | fi | |
21c95463 MW |
1223 | if test x$agent = xtrue; then |
1224 | libstrongswan_plugins=${libstrongswan_plugins}" agent" | |
1225 | fi | |
e577ad39 MW |
1226 | if test x$gmp = xtrue; then |
1227 | libstrongswan_plugins=${libstrongswan_plugins}" gmp" | |
96d42f44 | 1228 | pluto_plugins=${pluto_plugins}" gmp" |
e577ad39 | 1229 | fi |
1ba62b55 MW |
1230 | |
1231 | AC_SUBST(libstrongswan_plugins) | |
de92b9e7 | 1232 | AC_SUBST(pluto_plugins) |
1ba62b55 | 1233 | |
6b9290ff MW |
1234 | dnl ========================= |
1235 | dnl set Makefile.am vars | |
1236 | dnl ========================= | |
f2c2d395 | 1237 | |
1ba62b55 MW |
1238 | dnl libstrongswan plugins |
1239 | dnl ===================== | |
81811a9d | 1240 | AM_CONDITIONAL(USE_TEST_VECTORS, test x$test_vectors = xtrue) |
6b9290ff MW |
1241 | AM_CONDITIONAL(USE_CURL, test x$curl = xtrue) |
1242 | AM_CONDITIONAL(USE_LDAP, test x$ldap = xtrue) | |
1243 | AM_CONDITIONAL(USE_AES, test x$aes = xtrue) | |
1244 | AM_CONDITIONAL(USE_DES, test x$des = xtrue) | |
d36ae9e3 | 1245 | AM_CONDITIONAL(USE_BLOWFISH, test x$blowfish = xtrue) |
1e0d1ae2 | 1246 | AM_CONDITIONAL(USE_MD4, test x$md4 = xtrue) |
6b9290ff MW |
1247 | AM_CONDITIONAL(USE_MD5, test x$md5 = xtrue) |
1248 | AM_CONDITIONAL(USE_SHA1, test x$sha1 = xtrue) | |
1249 | AM_CONDITIONAL(USE_SHA2, test x$sha2 = xtrue) | |
1250 | AM_CONDITIONAL(USE_FIPS_PRF, test x$fips_prf = xtrue) | |
1251 | AM_CONDITIONAL(USE_GMP, test x$gmp = xtrue) | |
6a365f07 | 1252 | AM_CONDITIONAL(USE_RANDOM, test x$random = xtrue) |
6b9290ff | 1253 | AM_CONDITIONAL(USE_X509, test x$x509 = xtrue) |
affd7a90 | 1254 | AM_CONDITIONAL(USE_PUBKEY, test x$pubkey = xtrue) |
160f4c22 | 1255 | AM_CONDITIONAL(USE_PEM, test x$pem = xtrue) |
6b9290ff | 1256 | AM_CONDITIONAL(USE_HMAC, test x$hmac = xtrue) |
27d04e05 | 1257 | AM_CONDITIONAL(USE_XCBC, test x$xcbc = xtrue) |
6b9290ff MW |
1258 | AM_CONDITIONAL(USE_MYSQL, test x$mysql = xtrue) |
1259 | AM_CONDITIONAL(USE_SQLITE, test x$sqlite = xtrue) | |
1ba62b55 MW |
1260 | AM_CONDITIONAL(USE_PADLOCK, test x$padlock = xtrue) |
1261 | AM_CONDITIONAL(USE_OPENSSL, test x$openssl = xtrue) | |
4977018c | 1262 | AM_CONDITIONAL(USE_GCRYPT, test x$gcrypt = xtrue) |
21c95463 | 1263 | AM_CONDITIONAL(USE_AGENT, test x$agent = xtrue) |
1ba62b55 MW |
1264 | |
1265 | dnl charon plugins | |
1266 | dnl ============== | |
6b9290ff | 1267 | AM_CONDITIONAL(USE_STROKE, test x$stroke = xtrue) |
5b7ec6d4 | 1268 | AM_CONDITIONAL(USE_MEDSRV, test x$medsrv = xtrue) |
782db7ed | 1269 | AM_CONDITIONAL(USE_MEDCLI, test x$medcli = xtrue) |
6dbce9c8 | 1270 | AM_CONDITIONAL(USE_NM, test x$nm = xtrue) |
61c46386 | 1271 | AM_CONDITIONAL(USE_UCI, test x$uci = xtrue) |
6b9290ff MW |
1272 | AM_CONDITIONAL(USE_SMP, test x$smp = xtrue) |
1273 | AM_CONDITIONAL(USE_SQL, test x$sql = xtrue) | |
ad3af574 | 1274 | AM_CONDITIONAL(USE_UPDOWN, test x$updown = xtrue) |
adc25ec2 MW |
1275 | AM_CONDITIONAL(USE_ATTR, test x$attr = xtrue) |
1276 | AM_CONDITIONAL(USE_RESOLV_CONF, test x$resolvconf = xtrue) | |
6b9290ff | 1277 | AM_CONDITIONAL(USE_UNIT_TESTS, test x$unittest = xtrue) |
0fd6e955 | 1278 | AM_CONDITIONAL(USE_LOAD_TESTS, test x$loadtest = xtrue) |
6b9290ff | 1279 | AM_CONDITIONAL(USE_EAP_SIM, test x$eap_sim = xtrue) |
79a87846 | 1280 | AM_CONDITIONAL(USE_EAP_SIM_FILE, test x$eap_sim_file = xtrue) |
6b9290ff MW |
1281 | AM_CONDITIONAL(USE_EAP_IDENTITY, test x$eap_identity = xtrue) |
1282 | AM_CONDITIONAL(USE_EAP_MD5, test x$eap_md5 = xtrue) | |
1caa265c | 1283 | AM_CONDITIONAL(USE_EAP_GTC, test x$eap_gtc = xtrue) |
6b9290ff | 1284 | AM_CONDITIONAL(USE_EAP_AKA, test x$eap_aka = xtrue) |
f98cdf7a | 1285 | AM_CONDITIONAL(USE_EAP_MSCHAPV2, test x$eap_mschapv2 = xtrue) |
4a6b84a9 | 1286 | AM_CONDITIONAL(USE_EAP_RADIUS, test x$eap_radius = xtrue) |
09d7ef26 | 1287 | AM_CONDITIONAL(USE_KERNEL_NETLINK, test x$kernel_netlink = xtrue) |
1adaa02b | 1288 | AM_CONDITIONAL(USE_KERNEL_PFKEY, test x$kernel_pfkey = xtrue) |
ea7e89c7 | 1289 | AM_CONDITIONAL(USE_KERNEL_PFROUTE, test x$kernel_pfroute = xtrue) |
ea625fab | 1290 | AM_CONDITIONAL(USE_KERNEL_KLIPS, test x$kernel_klips = xtrue) |
1ba62b55 MW |
1291 | |
1292 | dnl other options | |
1293 | dnl ============= | |
1294 | AM_CONDITIONAL(USE_SMARTCARD, test x$smartcard = xtrue) | |
1295 | AM_CONDITIONAL(USE_CISCO_QUIRKS, test x$cisco_quirks = xtrue) | |
1296 | AM_CONDITIONAL(USE_LEAK_DETECTIVE, test x$leak_detective = xtrue) | |
02140125 | 1297 | AM_CONDITIONAL(USE_LOCK_PROFILER, test x$lock_profiler = xtrue) |
6b9290ff MW |
1298 | AM_CONDITIONAL(USE_NAT_TRANSPORT, test x$nat_transport = xtrue) |
1299 | AM_CONDITIONAL(USE_VENDORID, test x$vendor_id = xtrue) | |
1300 | AM_CONDITIONAL(USE_XAUTH_VID, test x$xauth_vid = xtrue) | |
1301 | AM_CONDITIONAL(USE_DUMM, test x$dumm = xtrue) | |
1302 | AM_CONDITIONAL(USE_FAST, test x$fast = xtrue) | |
1303 | AM_CONDITIONAL(USE_MANAGER, test x$manager = xtrue) | |
1304 | AM_CONDITIONAL(USE_ME, test x$me = xtrue) | |
1305 | AM_CONDITIONAL(USE_INTEGRITY_TEST, test x$integrity_test = xtrue) | |
eb3e2705 | 1306 | AM_CONDITIONAL(USE_CAPABILITIES, test x$capabilities = xlibcap) |
6b9290ff | 1307 | AM_CONDITIONAL(USE_PLUTO, test x$pluto = xtrue) |
6905f794 | 1308 | AM_CONDITIONAL(USE_THREADS, test x$threads = xtrue) |
6b9290ff MW |
1309 | AM_CONDITIONAL(USE_CHARON, test x$charon = xtrue) |
1310 | AM_CONDITIONAL(USE_TOOLS, test x$tools = xtrue) | |
cf00cffe | 1311 | AM_CONDITIONAL(USE_SCRIPTS, test x$scripts = xtrue) |
4985ad6e | 1312 | AM_CONDITIONAL(USE_LIBSTRONGSWAN, test x$charon = xtrue -o x$pluto = xtrue -o x$tools = xtrue) |
6b9290ff | 1313 | AM_CONDITIONAL(USE_FILE_CONFIG, test x$pluto = xtrue -o x$stroke = xtrue) |
d25ce370 | 1314 | AM_CONDITIONAL(USE_VSTR, test x$vstr = xtrue) |
f2c2d395 | 1315 | |
9e72d3bc MW |
1316 | dnl ============================== |
1317 | dnl set global definitions | |
1318 | dnl ============================== | |
1319 | ||
1320 | if test x$me = xtrue; then | |
1321 | AC_DEFINE(ME) | |
1322 | fi | |
eb3e2705 MW |
1323 | if test x$capabilities = xlibcap; then |
1324 | AC_DEFINE(CAPABILITIES) | |
1325 | fi | |
9e72d3bc | 1326 | |
f2c2d395 MW |
1327 | dnl ============================== |
1328 | dnl build Makefiles | |
1329 | dnl ============================== | |
1330 | ||
1331 | AC_OUTPUT( | |
1332 | Makefile | |
1333 | src/Makefile | |
04a7b6d8 | 1334 | src/include/Makefile |
f2c2d395 | 1335 | src/libstrongswan/Makefile |
552cc11b MW |
1336 | src/libstrongswan/plugins/aes/Makefile |
1337 | src/libstrongswan/plugins/des/Makefile | |
d36ae9e3 | 1338 | src/libstrongswan/plugins/blowfish/Makefile |
1e0d1ae2 | 1339 | src/libstrongswan/plugins/md4/Makefile |
552cc11b MW |
1340 | src/libstrongswan/plugins/md5/Makefile |
1341 | src/libstrongswan/plugins/sha1/Makefile | |
1342 | src/libstrongswan/plugins/sha2/Makefile | |
1343 | src/libstrongswan/plugins/fips_prf/Makefile | |
1344 | src/libstrongswan/plugins/gmp/Makefile | |
6a365f07 | 1345 | src/libstrongswan/plugins/random/Makefile |
552cc11b | 1346 | src/libstrongswan/plugins/hmac/Makefile |
27d04e05 | 1347 | src/libstrongswan/plugins/xcbc/Makefile |
552cc11b | 1348 | src/libstrongswan/plugins/x509/Makefile |
affd7a90 | 1349 | src/libstrongswan/plugins/pubkey/Makefile |
160f4c22 | 1350 | src/libstrongswan/plugins/pem/Makefile |
552cc11b MW |
1351 | src/libstrongswan/plugins/curl/Makefile |
1352 | src/libstrongswan/plugins/ldap/Makefile | |
1353 | src/libstrongswan/plugins/mysql/Makefile | |
1354 | src/libstrongswan/plugins/sqlite/Makefile | |
36d62fac | 1355 | src/libstrongswan/plugins/padlock/Makefile |
17353034 | 1356 | src/libstrongswan/plugins/openssl/Makefile |
4977018c | 1357 | src/libstrongswan/plugins/gcrypt/Makefile |
21c95463 | 1358 | src/libstrongswan/plugins/agent/Makefile |
81811a9d | 1359 | src/libstrongswan/plugins/test_vectors/Makefile |
f2c2d395 MW |
1360 | src/libfreeswan/Makefile |
1361 | src/pluto/Makefile | |
1362 | src/whack/Makefile | |
1363 | src/charon/Makefile | |
552cc11b MW |
1364 | src/charon/plugins/eap_aka/Makefile |
1365 | src/charon/plugins/eap_identity/Makefile | |
1366 | src/charon/plugins/eap_md5/Makefile | |
1caa265c | 1367 | src/charon/plugins/eap_gtc/Makefile |
552cc11b | 1368 | src/charon/plugins/eap_sim/Makefile |
79a87846 | 1369 | src/charon/plugins/eap_sim_file/Makefile |
f98cdf7a | 1370 | src/charon/plugins/eap_mschapv2/Makefile |
4a6b84a9 | 1371 | src/charon/plugins/eap_radius/Makefile |
507f26f6 | 1372 | src/charon/plugins/kernel_netlink/Makefile |
1adaa02b | 1373 | src/charon/plugins/kernel_pfkey/Makefile |
ea7e89c7 | 1374 | src/charon/plugins/kernel_pfroute/Makefile |
ea625fab | 1375 | src/charon/plugins/kernel_klips/Makefile |
6b9290ff | 1376 | src/charon/plugins/smp/Makefile |
552cc11b | 1377 | src/charon/plugins/sql/Makefile |
5b7ec6d4 | 1378 | src/charon/plugins/medsrv/Makefile |
782db7ed | 1379 | src/charon/plugins/medcli/Makefile |
6dbce9c8 | 1380 | src/charon/plugins/nm/Makefile |
61c46386 | 1381 | src/charon/plugins/uci/Makefile |
552cc11b | 1382 | src/charon/plugins/stroke/Makefile |
ad3af574 | 1383 | src/charon/plugins/updown/Makefile |
adc25ec2 MW |
1384 | src/charon/plugins/attr/Makefile |
1385 | src/charon/plugins/resolv_conf/Makefile | |
552cc11b | 1386 | src/charon/plugins/unit_tester/Makefile |
0fd6e955 | 1387 | src/charon/plugins/load_tester/Makefile |
f2c2d395 MW |
1388 | src/stroke/Makefile |
1389 | src/ipsec/Makefile | |
1390 | src/starter/Makefile | |
1391 | src/_updown/Makefile | |
1392 | src/_updown_espmark/Makefile | |
1393 | src/_copyright/Makefile | |
1394 | src/openac/Makefile | |
1395 | src/scepclient/Makefile | |
f2d6355e | 1396 | src/dumm/Makefile |
2d9ce480 | 1397 | src/dumm/ext/extconf.rb |
552cc11b | 1398 | src/libfast/Makefile |
b8c7453a | 1399 | src/manager/Makefile |
9529fb68 | 1400 | src/medsrv/Makefile |
67a7bb02 | 1401 | src/checksum/Makefile |
39b7780d | 1402 | scripts/Makefile |
9ee1111d | 1403 | testing/Makefile |
f2c2d395 | 1404 | ) |