]> jfr.im git - solanum.git/blob - libratbox/configure.ac
Add *sunos* conditional to solaris section for opensolaris, and add -D_XPG4_2 -D__EXT...
[solanum.git] / libratbox / configure.ac
1 dnl $Id: configure.ac 25689 2008-07-10 17:13:27Z androsyn $
2 dnl Process this file with autoconf to produce a configure script.
3
4 dnl TODO: clean up all the OpenSSL and shared module checking stuff;
5 dnl the most major changes have already been made and it looks like
6 dnl said functions need to be just about as complex as they already are.
7
8 AC_PREREQ(2.60)
9 AUTOMAKE_OPTIONS = 1.10
10 dnl Sneaky way to get an Id tag into the configure script
11 AC_COPYRIGHT([$Id: configure.ac 25689 2008-07-10 17:13:27Z androsyn $])
12 AC_INIT([libratbox],[devel])
13 AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION, -)
14
15 AM_CONFIG_HEADER(include/libratbox_config.h)
16
17 AC_PREFIX_DEFAULT(/usr/local/libratbox)
18 AC_GNU_SOURCE
19
20 dnl Checks for programs.
21 AC_PROG_CC_C99
22
23 if test x"$ac_cv_prog_cc_c99" = "xno"; then
24 AC_ERROR([ircd-ratbox requires a C99 capable compiler])
25 fi
26
27
28 AC_PROG_INSTALL
29 AC_PROG_EGREP
30 AC_PROG_SED
31
32 F77=no
33 CXX=no
34 GCJ=no
35
36 AM_DISABLE_STATIC
37 AM_ENABLE_SHARED
38 AM_MAINTAINER_MODE
39
40 AC_ISC_POSIX
41 AC_C_INLINE
42 AC_C_CONST
43 AC_PROG_MAKE_SET
44 AC_PROG_INSTALL
45 AC_PATH_PROG(AUTOMAKE, automake)
46 AC_PATH_PROG(ACLOCAL, aclocal)
47 AC_PATH_PROG(AUTOHEADER, autoheader)
48 AC_PATH_PROG(AS, as)
49 AC_PATH_PROG(RM, rm)
50 AC_PATH_PROG(CP, cp)
51 AC_PATH_PROG(MV, mv)
52 AC_PATH_PROG(LN, ln)
53 AC_PATH_PROG(AR, ar)
54 AC_PATH_PROG(LD, ld)
55 AC_PATH_PROG(RANLIB, ranlib)
56 AC_PATH_PROG(TOUCH, touch)
57 AC_LANG(C)
58
59 AC_PROG_LIBTOOL
60
61 LIBTOOL="$LIBTOOL --silent"
62
63 AC_CONFIG_SUBDIRS(libltdl)
64
65
66 case "$host_os" in
67 *cygwin*)
68 AC_DEFINE_UNQUOTED(CYGWIN,1,[This is a Cygwin system])
69 AC_DEFINE_UNQUOTED(WINDOWS,1,[This is a Windows system])
70 ;;
71 *mingw*)
72 AC_DEFINE_UNQUOTED(MINGW,1,[This is a MinGW system])
73 AC_DEFINE_UNQUOTED(WINDOWS,1,[This is a Windows system])
74 AC_CHECK_HEADER(windows.h, , [AC_MSG_ERROR([** MinGW and no windows.h. I give up.])])
75 AC_CHECK_HEADER(winsock2.h, , [AC_MSG_ERROR([** MinGW and no winsock2.h. I give up.])])
76 LIBS="$LIBS -lws2_32 -liphlpapi"
77 is_mingw="yes"
78 ;;
79 *interix*)
80 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
81 ;;
82 *solaris*)
83 *sunos*)
84 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2 -D__EXTENSIONS__"
85 ;;
86 *)
87 ;;
88 esac
89
90 AM_CONDITIONAL([MINGW], [test "$is_mingw" = "yes"])
91
92
93 # backwards support for IRC_CFLAGS
94 CFLAGS="$IRC_CFLAGS $CFLAGS -O0 -Wall"
95
96 dnl use directory structure of cached as default (hack)
97 if test "$libexecdir" = '${exec_prefix}/libexec' &&
98 test "$localstatedir" = '${prefix}/var'; then
99 libexecdir='${bindir}'
100 localstatedir='${prefix}'
101 fi
102
103 AC_TYPE_PID_T
104 AC_TYPE_SIZE_T
105 AC_TYPE_SSIZE_T
106 AC_TYPE_UID_T
107
108
109 dnl Checks for header files.
110 AC_HEADER_STDC
111
112 AC_CHECK_HEADERS([crypt.h unistd.h sys/socket.h sys/stat.h sys/time.h time.h netinet/in.h arpa/inet.h errno.h sys/uio.h spawn.h sys/poll.h sys/epoll.h sys/select.h sys/devpoll.h sys/event.h port.h signal.h sys/signalfd.h])
113 AC_HEADER_TIME
114
115 dnl Networking Functions
116 dnl ====================
117
118 AC_SEARCH_LIBS(socket, [socket],,)
119
120
121 AC_CHECK_MEMBER([struct sockaddr.sa_len], [AC_DEFINE(SOCKADDR_IN_HAS_LEN, 1, [Define to 1 if sockaddr has a 'sa_len'
122 member.])],,[[
123 #ifdef HAVE_SYS_TYPES_H
124 #include <sys/types.h>
125 #endif
126 #ifdef HAVE_SYS_SOCKET_H
127 #include <sys/socket.h>
128 #endif
129 #ifdef HAVE_WINSOCK2_H
130 #include <winsock2.h>
131 #endif
132 ]])
133
134 AC_CHECK_TYPE([socklen_t], rb_socklen_t=socklen_t,[
135 AC_MSG_CHECKING([for socklen_t equivalent])
136 AC_CACHE_VAL([rb_socklen_t],
137 [
138 # Systems have either "struct sockaddr *" or
139 # "void *" as the second argument to getpeername
140 rb_socklen_t=
141 for arg2 in "struct sockaddr" void; do
142 for t in int size_t unsigned long "unsigned long"; do
143 AC_TRY_COMPILE([
144 #include <sys/types.h>
145 #include <sys/socket.h>
146
147 int getpeername (int, $arg2 *, $t *);
148 ],[
149 $t len;
150 getpeername(0,0,&len);
151 ],[
152 rb_socklen_t="$t"
153 break
154 ])
155 done
156 done
157
158 if test "x$rb_socklen_t" = x; then
159 AC_MSG_ERROR([Cannot find a type to use in place of socklen_t])
160 fi
161 ])
162 AC_MSG_RESULT($rb_socklen_t)],
163 [#include <sys/types.h>
164 #include <sys/socket.h>])
165
166
167
168
169
170 AC_ARG_ENABLE(ipv6,AC_HELP_STRING([--disable-ipv6],[Disable IPv6 support]),[ipv6=$enableval],[ipv6=yes])
171
172 if test x$ipv6 != xyes; then
173 have_v6="no"
174 else
175
176 have_v6=yes
177 RB_PROTO_INET6([], [
178 AC_MSG_NOTICE([Disabling IPv6 support: PF_INET6 not found])
179 have_v6=no
180 ])
181
182 if test "X$have_v6" = "Xyes"; then
183 RB_TYPE_STRUCT_SOCKADDR_IN6([], [
184 AC_MSG_NOTICE([Disabling IPv6 support: struct sockaddr_in6 not found])
185 have_v6=no
186 ])
187 fi
188
189 fi
190
191 AC_CHECK_TYPES([struct sockaddr_storage],[
192 rb_have_sockaddr_storage=yes
193 ],[], [
194 #include <sys/types.h>
195 #include <sys/socket.h>
196 ])
197
198
199 save_LIBS=$LIBS
200 AC_SEARCH_LIBS(crypt, [crypt descrypt],,)
201 LIBS=$save_LIBS
202
203 CRYPT_LIB=$ac_cv_search_crypt
204
205 if test "$CRYPT_LIB" = "none required"; then
206 unset CRYPT_LIB
207 elif test "$CRYPT_LIB" = no; then
208 need_crypt=yes;
209 AC_DEFINE(NEED_CRYPT, 1, [Define if your system needs crypt.])
210 unset CRYPT_LIB
211 fi
212
213 AM_CONDITIONAL([NEED_CRYPT], [test x"$need_crypt" = "xyes"])
214
215
216 AC_SUBST(CRYPT_LIB)
217
218 dnl Check for stdarg.h - if we cant find it, halt configure
219 AC_CHECK_HEADER(stdarg.h, , [AC_MSG_ERROR([** stdarg.h could not be found - libratbox will not compile without it **])])
220
221 AC_CHECK_TYPE([sa_family_t], [],
222 [AC_DEFINE(sa_family_t, [u_int16_t], [If system does not define sa_family_t, define it here.])],
223 [[#include <sys/types.h>
224 #include <sys/socket.h>]])
225
226
227 dnl check for various functions...
228 AC_CHECK_FUNCS([socketpair gettimeofday writev sendmsg gmtime_r strtok_r usleep posix_spawn strlcpy strlcat strnlen fstat signalfd select poll kevent port_create epoll_ctl arc4random getrusage])
229
230 AC_SEARCH_LIBS(nanosleep, rt posix4, AC_DEFINE(HAVE_NANOSLEEP, 1, [Define if you have nanosleep]))
231 AC_SEARCH_LIBS(timer_create, rt, AC_DEFINE(HAVE_TIMER_CREATE, 1, [Define if you have timer_create]))
232 RB_CHECK_TIMER_CREATE
233
234 AC_FUNC_ALLOCA
235 AC_FUNC_VFORK
236 AC_FUNC_MMAP
237
238 AC_MSG_CHECKING(for /dev/poll)
239 if test -c "/dev/poll"; then
240 AC_MSG_RESULT(yes)
241 AC_DEFINE(HAVE_DEVPOLL, [1], [Define to 1 if you have devpoll])
242 else
243 AC_MSG_RESULT(no)
244 fi
245
246
247 if test "$is_mingw" = "yes"; then
248 AC_DEFINE(HAVE_WIN32, [1], [Define to 1 if you are on windows])
249 fi
250
251
252 dnl OpenSSL support
253 AC_MSG_CHECKING(for OpenSSL)
254 AC_ARG_ENABLE(openssl,
255 [AC_HELP_STRING([--enable-openssl[=DIR]],[Enable OpenSSL support (DIR optional).])
256 AC_HELP_STRING([--disable-openssl],[Disable OpenSSL support.])],
257 [cf_enable_openssl=$enableval],
258 [cf_enable_openssl="auto"])
259
260 if test "$cf_enable_openssl" != "no" ; then
261 cf_openssl_basedir=""
262 if test "$cf_enable_openssl" != "auto" &&
263 test "$cf_enable_openssl" != "yes" ; then
264 dnl Support for --enable-openssl=/some/place
265 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
266 else
267 dnl Do the auto-probe here. Check some common directory paths.
268 for dirs in /usr/local/ssl /usr/pkg /usr/local \
269 /usr/local/openssl ; do
270 if test -f "${dirs}/include/openssl/opensslv.h" ; then
271 cf_openssl_basedir="${dirs}"
272 break
273 fi
274 done
275 unset dirs
276 fi
277 dnl Now check cf_openssl_found to see if we found anything.
278 if test ! -z "$cf_openssl_basedir"; then
279 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
280 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
281 SSL_LIBS="-L${cf_openssl_basedir}/lib"
282 else
283 dnl OpenSSL wasn't found in the directory specified. Naughty
284 dnl administrator...
285 cf_openssl_basedir=""
286 fi
287 else
288 dnl Check for stock FreeBSD 4.x and 5.x systems, since their files
289 dnl are in /usr/include and /usr/lib. In this case, we don't want to
290 dnl change INCLUDES or LIBS, but still want to enable OpenSSL.
291 dnl We can't do this check above, because some people want two versions
292 dnl of OpenSSL installed (stock FreeBSD 4.x/5.x and /usr/local/ssl)
293 dnl and they want /usr/local/ssl to have preference.
294 if test -f "/usr/include/openssl/opensslv.h" ; then
295 cf_openssl_basedir="/usr"
296 fi
297 fi
298
299 dnl If we have a basedir defined, then everything is okay. Otherwise,
300 dnl we have a problem.
301 if test ! -z "$cf_openssl_basedir"; then
302 AC_MSG_RESULT($cf_openssl_basedir)
303 cf_enable_openssl="yes"
304 else
305 AC_MSG_RESULT([not found. Specify a correct path?])
306 cf_enable_openssl="no"
307 fi
308 unset cf_openssl_basedir
309 else
310 dnl If --disable-openssl was specified
311 AC_MSG_RESULT(disabled)
312 fi
313
314 save_CPPFLAGS="$CPPFLAGS"
315 CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
316 save_LIBS="$LIBS"
317 LIBS="$LIBS $SSL_LIBS"
318 if test "$cf_enable_openssl" != no; then
319 dnl Check OpenSSL version (must be 0.9.7 or above!)
320 AC_MSG_CHECKING(for OpenSSL 0.9.7 or above)
321 AC_RUN_IFELSE(
322 AC_LANG_PROGRAM(
323 [#include <openssl/opensslv.h>
324 #include <stdlib.h>],
325 [[if (OPENSSL_VERSION_NUMBER >= 0x00907000)
326 exit(0); else exit(1);]]),
327 cf_enable_openssl=yes,
328 cf_enable_openssl=no,
329 cf_enable_openssl=no)
330
331 if test "$cf_enable_openssl" != no; then
332 AC_MSG_RESULT(found)
333 else
334 AC_MSG_RESULT(no - OpenSSL support disabled)
335 fi
336
337 fi
338
339
340 if test "$cf_enable_openssl" != no; then
341 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
342 AC_CHECK_LIB(crypto, RAND_status,
343 [cf_enable_openssl=yes],
344 [cf_enable_openssl=no])
345 fi
346
347
348 if test "$cf_enable_openssl" != no; then
349 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
350 AC_CHECK_LIB(ssl, SSL_read,
351 [SSL_LIBS="-lssl -lcrypto"],
352 [cf_enable_openssl=no], [-lcrypto])
353 fi
354
355
356
357 dnl GnuTLS support
358 AC_MSG_CHECKING(for GnuTLS)
359 AC_ARG_ENABLE(gnutls,
360 [AC_HELP_STRING([--enable-gnutls],[Enable GnuTLS support.])
361 AC_HELP_STRING([--disable-gnutls],[Disable GnuTLS support.])],
362 [cf_enable_gnutls=$enableval],
363 [cf_enable_gnutls="auto"])
364
365 if test "$cf_enable_gnutls" != no; then
366 PKG_CHECK_MODULES(GNUTLS, [gnutls], [
367 cf_enable_gnutls="yes"
368 ], [cf_enable_gnutls="no"])
369 fi
370
371 if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
372 cf_enable_gnutls="no"
373 fi
374
375 if test x"$cf_enable_openssl" != xno; then
376 AC_DEFINE(HAVE_OPENSSL,1,[Has OpenSSL])
377 GNUTLS_CFLAGS=""
378 GNUTLS_LIBS=""
379 SSL_TYPE="openssl"
380 elif test x"$cf_enable_gnutls" != xno; then
381 AC_DEFINE(HAVE_GNUTLS, 1, [Has GnuTLS])
382 SSL_LIBS=""
383 SSL_CFLAGS=""
384 SSL_TYPE="gnutls"
385 fi
386
387
388
389
390 CPPFLAGS="$save_CPPFLAGS"
391 LIBS="$save_LIBS"
392
393 dnl End OpenSSL detection
394
395
396
397
398 dnl Debug-related options
399 dnl =====================
400
401 AC_ARG_ENABLE(assert,
402 AC_HELP_STRING([--enable-assert],[Enable assert(). Choose between soft(warnings) and hard(aborts the daemon)]),
403 [assert=$enableval], [assert=no])
404
405 if test "$assert" = no; then
406 AC_DEFINE(NDEBUG, 1, [Define this to disable debugging support.])
407 elif test "$assert" = soft; then
408 AC_DEFINE(SOFT_ASSERT, 1, [Define this to enable soft asserts.])
409 AC_DEFINE(NDEBUG, 1, [Define this to disable debugging support.])
410 elif test "$assert" = yes; then
411 assert = "hard";
412 fi
413
414 AC_MSG_CHECKING(if you want to do a profile build)
415 AC_ARG_ENABLE(profile,
416 AC_HELP_STRING([--enable-profile],[Enable profiling]),
417 [profile=$enableval], [profile=no])
418
419 if test "$profile" = yes; then
420 if test "$ac_cv_c_compiler_gnu" = yes; then
421 CFLAGS="$CFLAGS -pg -static"
422 AC_MSG_RESULT([yes, adding -pg -static])
423 AC_DEFINE(RATBOX_PROFILE, 1, [Defined to mark profiling is enabled])
424 else
425 AC_MSG_RESULT([no, profile builds only work with gcc])
426 fi
427 else
428 AC_MSG_RESULT(no)
429 fi
430
431 AC_ARG_ENABLE(balloc,
432 AC_HELP_STRING([--disable-balloc],[Disable the block allocator.]),
433 [balloc=$enableval], [balloc=yes])
434
435 if test "$balloc" = no; then
436 AC_DEFINE([NOBALLOC], 1, [Define to 1 if you wish to disable the block allocator.])
437 fi
438
439 AC_ARG_ENABLE(warnings,
440 AC_HELP_STRING([--enable-warnings],[Enable all sorts of warnings for debugging.]),
441 [CFLAGS="$CFLAGS -Wall -Werror -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -W -Wno-unused -Wunused-function -Wunused-variable"],[])
442
443 AC_SUBST(LDFLAGS)
444 AC_SUBST(PICFLAGS)
445 AC_SUBST(CFLAGS)
446 AC_SUBST(SEDOBJ)
447 AC_SUBST(SSL_CFLAGS)
448 AC_SUBST(SSL_LIBS)
449 AC_SUBST(GNUTLS_CFLAGS)
450 AC_SUBST(GNUTLS_LIBS)
451
452 if test "$prefix" = "NONE"; then
453 AC_DEFINE_UNQUOTED(RB_PREFIX, "$ac_default_prefix", [Prefix where libratbox is installed.])
454
455 else
456
457 dnl Don't get bitten by Cygwin's stupidity if the user specified
458 dnl a custom prefix with a trailing slash
459
460 prefix=`echo $prefix | sed 's/\/$//'`
461 AC_DEFINE_UNQUOTED(RB_PREFIX, "$prefix", [Prefix where libratbox is installed.])
462
463 fi
464
465 AC_SUBST(RB_PREFIX)
466
467 AC_CONFIG_COMMANDS([include/librb-config.h],
468 [
469 outfile=include/librb-config.h.tmp
470 cat > $outfile <<\_______EOF
471 /*
472 * librb-config.h: libratbox config file. Please modify configure.ac
473 */
474
475 #ifndef __LIBRB_CONFIG_H
476 #define __LIBRB_CONFIG_H
477
478 _______EOF
479
480 if test "x$rb_have_ipv6" = "xyes"; then
481 echo "#define RB_IPV6 1" >> $outfile
482 fi
483
484 if test "x$rb_windows_h" = "xyes"; then
485 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
486 echo '#include <windows.h>' >> $outfile
487 echo '#include <winsock2.h>' >> $outfile
488 echo '#include <iphlpapi.h>' >> $outfile
489 fi
490
491 if test "x$rb_alloca_h" = "xyes"; then
492 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
493 fi
494
495 if test "x$rb_header_stdc" = "xyes"; then
496 echo '#include <stdlib.h>' >> $outfile
497 echo '#include <stddef.h>' >> $outfile
498 elif test "x$rb_header_stdlib" = "xyes"; then
499 echo '#include <stdlib.h>' >> $outfile
500 fi
501
502 if test "x$rb_header_string_h" = "xyes"; then
503 echo '#include <string.h>' >> $outfile
504 fi
505
506 if test "x$rb_stdint_h" = "xyes"; then
507 echo '#include <stdint.h>' >> $outfile
508 fi
509
510 if test "x$rb_inttypes_h" = "xyes"; then
511 echo '#include <inttypes.h>' >> $outfile
512 fi
513
514 if test "x$rb_sys_types_h" = "xyes"; then
515 echo '#include <sys/types.h>' >> $outfile
516 fi
517 if test "x$rb_sys_time_h" = "xyes"; then
518 echo '#include <sys/time.h>' >> $outfile
519 fi
520 if test "x$rb_sys_stat_h" = "xyes"; then
521 echo '#include <sys/stat.h>' >> $outfile
522 fi
523 if test "x$rb_time_h" = "xyes"; then
524 echo '#include <time.h>' >> $outfile
525 fi
526
527 if test "x$rb_sys_socket_h" = "xyes"; then
528 echo '#include <sys/socket.h>' >> $outfile
529 fi
530
531 if test "x$rb_netinet_in_h" = "xyes"; then
532 echo '#include <netinet/in.h>' >> $outfile
533 fi
534
535 if test "x$rb_arpa_inet_h" = "xyes"; then
536 echo '#include <arpa/inet.h>' >> $outfile
537 fi
538
539 if test "x$rb_unistd_h" = "xyes"; then
540 echo '#include <unistd.h>' >> $outfile
541 fi
542
543 if test "x$rb_crypt_h" = "xyes"; then
544 echo '#include <crypt.h>' >> $outfile
545 fi
546
547 if test "x$rb_errno_h" = "xyes"; then
548 echo '#include <errno.h>' >> $outfile
549 fi
550
551 echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
552
553
554 if test "x$rb_sockaddr_sa_len" = "xyes"; then
555 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
556 fi
557
558 if test "x$rb_sockaddr_storage" = "xyes"; then
559 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
560 else
561 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
562 fi
563
564 cat >> $outfile <<\_______EOF
565 #endif /* __LIBRB_CONFIG_H */
566 _______EOF
567
568 if cmp -s $outfile include/librb-config.h; then
569 AC_MSG_NOTICE([include/librb-config.h is unchanged])
570 ${rb_rm} -f $outfile
571 else
572 ${rb_mv} $outfile include/librb-config.h
573 fi
574
575 ],[
576 if test x$ac_cv_header_stdc = xyes; then
577 rb_header_stdc=yes
578 fi
579 if test x$ac_cv_header_stdlib_h = xyes; then
580 rb_header_stdlib_h=yes
581 fi
582 if test x$ac_cv_header_string_h = xyes; then
583 rb_header_string_h=yes
584 fi
585 if test x$ac_cv_header_memory_h = xyes; then
586 rb_header_memory_h=yes
587 fi
588 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
589 rb_alloca_h="$ac_cv_working_alloca_h"
590 else
591 rb_alloc_h="$ac_cv_header_alloca_h"
592 fi
593 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
594 rb_sockaddr_sa_len=yes
595 fi
596 if test x$ac_cv_header_sys_socket_h = xyes; then
597 rb_sys_socket_h=yes
598 fi
599 if test x$ac_cv_header_sys_types_h = xyes; then
600 rb_sys_types_h=yes
601 fi
602 if test x$ac_cv_header_sys_stat_h = xyes; then
603 rb_sys_stat_h=yes
604 fi
605 if test x$ac_cv_header_sys_time_h = xyes; then
606 rb_sys_time_h=yes
607 fi
608 if test x$ac_cv_header_time = xyes; then
609 rb_time_h=yes
610 fi
611
612 if test x$ac_cv_header_stdint_h = xyes; then
613 rb_stdint_h=yes
614 fi
615 if test x$ac_cv_header_inttypes_h = xyes; then
616 rb_inttypes_h=yes
617 fi
618 if test x$ac_cv_header_netinet_in_h = xyes; then
619 rb_netinet_in_h=yes
620 fi
621
622 if test x$ac_cv_header_crypt_h = xyes; then
623 rb_crypt_h=yes
624 fi
625 if test x$ac_cv_header_errno_h = xyes; then
626 rb_errno_h=yes
627 fi
628 if test x$ac_cv_header_unistd_h = xyes; then
629 rb_unistd_h=yes
630 fi
631 if test x$ac_cv_header_windows_h = xyes; then
632 rb_windows_h=yes
633 fi
634 if test x$ac_cv_header_winsock2_h = xyes; then
635 rb_winsock2_h=yes
636 fi
637
638 rb_socklen_t=$rb_socklen_t
639
640 if test "x$rb_have_sockaddr_storage" = "xyes"; then
641 rb_sockaddr_storage="yes"
642 else
643 rb_sockaddr_storage="no"
644 fi
645
646 rb_have_ipv6="$have_v6"
647
648 rb_mv="$MV"
649 rb_rm="$RM"
650
651 ]
652
653
654 )
655
656
657 AC_CONFIG_FILES( \
658 src/Makefile \
659 Makefile \
660 libratbox.pc \
661 )
662
663 AC_OUTPUT
664
665 dnl Make it look sexay!
666
667 echo
668 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
669 echo
670
671 echo "Installing into: $prefix"
672
673 echo "IPv6 support ................... $have_v6"
674 echo "Assert debugging ............... $assert"
675 echo "Block allocator ................ $balloc"
676 echo "SSL Type........................ $SSL_TYPE"
677 echo
678