4 # Author: Pekka Riikonen <priikone@silcnet.org>
6 # Copyright (C) 2000 - 2005 Pekka Riikonen
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; version 2 of the License.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
18 AC_INIT(includes/silcversion.h)
20 # Put here any platform specific stuff
35 # ./prepare script will automatically put the correct version. Do not edit!
37 AM_INIT_AUTOMAKE(SILC_PACKAGE, SILC_VERSION)
39 AC_CONFIG_HEADERS(includes/silcdefs.h)
50 ## Distribution definition. ./prepare will automatically add here a correct
51 ## value. Do not edit!
53 silc_dist=SILC_PACKAGE
54 SILC_DIST_SUBDIRS="SILC_DISTRIBUTION_SUBDIRS"
55 AC_DEFINE(SILC_DIST_DEFINE)
57 __SILC_HAVE_PTHREAD=""
59 __SILC_ENABLE_DEBUG=""
69 AC_PATH_PROG(sedpath, sed)
77 # More header checking
79 AC_CHECK_HEADERS(unistd.h string.h getopt.h errno.h fcntl.h assert.h)
80 AC_CHECK_HEADERS(sys/types.h sys/stat.h sys/time.h stddef.h)
81 AC_CHECK_HEADERS(netinet/in.h netinet/tcp.h xti.h netdb.h sys/resource.h)
82 AC_CHECK_HEADERS(pwd.h grp.h termcap.h paths.h)
83 AC_CHECK_HEADERS(ncurses.h signal.h ctype.h utime.h)
84 AC_CHECK_HEADERS(arpa/inet.h sys/mman.h limits.h termios.h locale.h langinfo.h)
94 AC_CHECK_SIZEOF(long long, 0)
95 AC_SUBST(SILC_SIZEOF_LONG_LONG, $ac_cv_sizeof_long_long)
96 AC_CHECK_SIZEOF(long, 0)
97 AC_SUBST(SILC_SIZEOF_LONG, $ac_cv_sizeof_long)
98 AC_CHECK_SIZEOF(int, 0)
99 AC_SUBST(SILC_SIZEOF_INT, $ac_cv_sizeof_int)
100 AC_CHECK_SIZEOF(short, 0)
101 AC_SUBST(SILC_SIZEOF_SHORT, $ac_cv_sizeof_short)
102 AC_CHECK_SIZEOF(char, 0)
103 AC_SUBST(SILC_SIZEOF_CHAR, $ac_cv_sizeof_char)
104 AC_CHECK_SIZEOF(void *, 0)
105 AC_SUBST(SILC_SIZEOF_VOID_P, $ac_cv_sizeof_void_p)
107 # Function and library checking
109 AC_CHECK_FUNC(gethostbyname, [],
111 AC_CHECK_LIB(nsl, gethostbyname, LIBS="$LIBS -lnsl")
112 AC_CHECK_FUNC(res_gethostbyname, [],
113 AC_CHECK_LIB(resolv, res_gethostbyname, LIBS="$LIBS -lresolv")
116 AC_CHECK_FUNC(socket, [],
117 AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")
119 AC_CHECK_FUNCS(gethostname gethostbyaddr getservbyname getservbyport)
120 AC_CHECK_FUNCS(select listen bind shutdown close connect setsockopt)
121 AC_CHECK_FUNCS(time ctime utime gettimeofday getrusage)
122 AC_CHECK_FUNCS(chmod fcntl stat fstat getenv putenv strerror)
123 AC_CHECK_FUNCS(getpid getgid getsid getpgid getpgrp getuid)
124 AC_CHECK_FUNCS(setgroups initgroups nl_langinfo)
125 AC_CHECK_FUNCS(strchr strstr strcpy strncpy memcpy memset memmove)
127 # SIM support checking
128 # XXX These needs to be changed as more supported platforms appear.
129 # XXX This probably needs to be made platform dependant check.
132 AC_MSG_CHECKING(for SIM support)
134 AC_CHECK_HEADERS(dlfcn.h,
136 AC_CHECK_LIB(dl, dlopen,
143 AC_CHECK_LIB(c, dlopen,
151 AM_CONDITIONAL(SILC_SIM, test x$sim_support = xtrue)
152 if test x$sim_support = xtrue; then
153 AC_MSG_RESULT(Enabled SIM support.)
154 __SILC_HAVE_SIM="#define __SILC_HAVE_SIM 1"
156 AC_MSG_RESULT(No SIM support found.)
159 # lib/contrib conditionals
161 AC_CHECK_HEADER(regex.h,
163 AC_DEFINE(HAVE_REGEX)
167 AM_CONDITIONAL(HAVE_REGEX, test x$have_regex = x1)
169 AC_CHECK_FUNC(getopt_long,
171 AC_DEFINE(HAVE_GETOPT_LONG)
173 ], have_getopt_long=0
175 AM_CONDITIONAL(HAVE_GETOPT_LONG, test x$have_getopt_long = x1)
178 ## Enable/disable checking
183 AC_MSG_CHECKING(whether to enable IPv6 support)
185 [ --enable-ipv6 enable IPv6 support],
187 case "${enableval}" in
206 if test x$check_ipv6 = xtrue; then
210 #ifdef HAVE_SYS_TYPES_H
211 #include <sys/types.h>
213 #ifdef HAVE_NETINET_TCP_H
214 #include <netinet/tcp.h>
219 #include <sys/socket.h>
220 #ifdef HAVE_NETINET_IN_H
221 #include <netinet/in.h>
225 struct sockaddr_in6 sin6;
226 int family = AF_INET6;
239 AC_MSG_CHECKING(whether to enable debugging)
241 __SILC_ENABLE_DEBUG=""
243 [ --enable-debug enable debugging],
245 case "${enableval}" in
248 AC_DEFINE(SILC_DEBUG)
250 __SILC_ENABLE_DEBUG="#define __SILC_ENABLE_DEBUG 1"
261 # Disable all assembler optimizations
263 AC_MSG_CHECKING(whether to enable assembler optimizations)
266 [ --disable-asm do not use assembler optimizations],
278 ## Compiler and compiler flag checks
281 # Function to check if compiler flag works
282 # Usage: SILC_ADD_CFLAGS(FLAGS, [ACTION-IF-FAILED])
283 AC_DEFUN([SILC_ADD_CFLAGS],
284 [ tmp_CFLAGS="$CFLAGS"
286 AC_MSG_CHECKING(whether $CC accepts $1 flag)
287 AC_TRY_LINK([], [], [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)
294 # GCC specific options
295 if test "x$summary_debug" = "xyes"; then
296 SILC_ADD_CFLAGS(-g -O)
298 SILC_ADD_CFLAGS(-g -O2)
300 SILC_ADD_CFLAGS(-Wall -finline-functions)
305 SILC_ADD_CFLAGS(-g3 -O2, SILC_ADD_CFLAGS(-g3 -O, SILC_ADD_CFLAGS(-O)))
309 SILC_ADD_CFLAGS(-O2, SILC_ADD_CFLAGS(-O))
313 # Intel C++ Compiler needs -restrict
314 if test "x$CC" = "xicc"; then
315 SILC_ADD_CFLAGS(-restrict)
320 # Workaround a bug in GCC 2.x which causes memory exhaustion
321 # when compiling sha1 with optimizations on UltraSPARC.
324 if test "$GCC" -a "$host_cpu" = "sparc64"; then
325 AC_MSG_CHECKING(whether to enable GCC 2.x workaround for SHA1)
328 #if defined(__sparc64__) && (__GNUC__ == 2)
347 # Default installation destination
349 AC_PREFIX_DEFAULT(/usr/local/silc)
350 if test "x$prefix" != xNONE; then
351 silc_prefix="$prefix"
353 silc_prefix="$ac_default_prefix"
358 if test "x$sysconfdir" != 'x${prefix}/etc'; then
361 ETCDIR="$silc_prefix/etc"
365 [[ --with-etcdir=DIR directory for system files [/etc/silc]]],
376 AC_DEFINE_UNQUOTED(SILC_ETCDIR, "$ETCDIR")
380 HELPDIR="$silc_prefix/help"
382 [[ --with-helpdir=DIR directory for SILC help files [PREFIX/help]]],
393 AC_DEFINE_UNQUOTED(SILC_HELPDIR, "$HELPDIR")
397 DOCDIR="$silc_prefix/doc"
399 [[ --with-docdir=DIR directory for SILC documentation [PREFIX/doc]]],
410 AC_DEFINE_UNQUOTED(SILC_DOCDIR, "$DOCDIR")
412 # SIM modules directory
414 MODULESDIR="$silc_prefix/modules"
416 [[ --with-simdir=DIR directory for SIM modules [PREFIX/modules]]],
422 MODULESDIR="$withval"
427 AC_DEFINE_UNQUOTED(SILC_MODULESDIR, "$MODULESDIR")
431 LOGSDIR="$silc_prefix/logs"
433 [[ --with-logsdir=DIR directory for SILC Server logs [PREFIX/logs]]],
444 AC_DEFINE_UNQUOTED(SILC_LOGSDIR, "$LOGSDIR")
446 # silcd config file checking
448 summary_silcd_configfile="/etc/silc/silcd.conf"
449 AC_ARG_WITH(silcd-config-file,
450 [[ --with-silcd-config-file=FILE use FILE as default configuration file
451 for SILC Server [/etc/silc/silcd.conf]]],
452 AC_DEFINE_UNQUOTED(SILC_SERVER_CONFIG_FILE, "$withval")
453 summary_silcd_configfile="$withval"
456 # silcd pid file checking
458 if test "x$localstatedir" != 'x${prefix}/var'; then
459 PIDFILE="$localstatedir/silcd.pid"
461 PIDFILE="$silc_prefix/var/silcd.pid"
464 AC_ARG_WITH(silcd-pid-file,
465 [[ --with-silcd-pid-file=FILE use FILE as default pid file for SILC
466 Server [/var/run/silcd.pid]]],
480 ## With/without checkings
484 # SILC library checking
487 if test "x$silc_dist" != "xsilc-toolkit"; then
489 AC_ARG_WITH(silc-includes,
490 [ --with-silc-includes=DIR SILC Toolkit includes [search in DIR]],
491 [ac_silc_includes="$withval"], [ac_silc_includes="no"])
492 AC_ARG_WITH(silc-libs,
493 [ --with-silc-libs=DIR SILC Toolkit libraries [search in DIR]],
494 [ac_silc_libs="$withval"], [ac_silc_libs="no"])
497 # XXX missing checking the __SILC_WITH_XXX defines from the provided libs
498 # in order to determine correct libs to link.
501 # XXX missing pkg-config check.
503 if test "$ac_silc_includes" != "no"; then
505 SILC_LIB_INCLUDES="-I$ac_silc_includes"
507 if test "$ac_silc_libs" != "no"; then
509 LIBS="$LIBS -L$ac_silc_libs"
512 fi # silc_dist != silc-toolkit
515 # SOCKS4 support checking
518 SAVE_CFLAGS="$CFLAGS"
519 SAVE_LDFLAGS="$LDFLAGS"
520 AC_MSG_CHECKING(whether to support SOCKS4)
522 [[ --with-socks4[=DIR] with SOCKS4 support [search in DIR/lib and DIR/include]]],
532 if test -d "$withval/include"; then
533 CFLAGS="$CFLAGS -I$withval/include"
535 if test -d "$withval/lib"; then
536 LDFLAGS="$LDFLAGS -L$withval/lib"
548 AC_MSG_ERROR(Could not find SOCKS4 library.)
550 CFLAGS="$SAVE_CFLAGS"
551 LDFLAGS="$SAVE_LDFLAGS"
557 # SOCKS5 support checking
560 SAVE_CFLAGS="$CFLAGS"
561 SAVE_LDFLAGS="$LDFLAGS"
562 AC_MSG_CHECKING(whether to support SOCKS5)
564 [[ --with-socks5[=DIR] with SOCKS5 support [search in DIR/lib and DIR/include]]],
574 if test -d "$withval/include"; then
575 CFLAGS="$CFLAGS -I$withval/include"
577 if test -d "$withval/lib"; then
578 LDFLAGS="$LDFLAGS -L$withval/lib"
581 LIBS="-lsocks5 $LIBS"
590 AC_MSG_ERROR(Could not find SOCKS5 library.)
592 CFLAGS="$SAVE_CFLAGS"
593 LDFLAGS="$SAVE_LDFLAGS"
599 if test "x$socks" = "x4"; then
601 CFLAGS="$CFLAGS -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dbind=Rbind -Daccept=Raccept -Dlisten=Rlisten -Dselect=Rselect"
604 if test "x$socks" = "x5"; then
607 AC_DEFINE(Rconnect, SOCKSconnect)
608 AC_DEFINE(Rgetsockname, SOCKSgetsockname)
609 AC_DEFINE(Rgetpeername, SOCKSgetpeername)
610 AC_DEFINE(Rbind, SOCKSbind)
611 AC_DEFINE(Raccept, SOCKSaccept)
612 AC_DEFINE(Rlisten, SOCKSlisten)
613 AC_DEFINE(Rselect, SOCKSselect)
614 AC_DEFINE(Rrecvfrom, SOCKSrecvfrom)
615 AC_DEFINE(Rsendto, SOCKSsendto)
616 AC_DEFINE(Rrecv, SOCKSrecv)
617 AC_DEFINE(Rsend, SOCKSsend)
618 AC_DEFINE(Rread, SOCKSread)
619 AC_DEFINE(Rwrite, SOCKSwrite)
620 AC_DEFINE(Rrresvport, SOCKSrresvport)
621 AC_DEFINE(Rshutdown, SOCKSshutdown)
622 AC_DEFINE(Rlisten, SOCKSlisten)
623 AC_DEFINE(Rclose, SOCKSclose)
624 AC_DEFINE(Rdup, SOCKSdup)
625 AC_DEFINE(Rdup2, SOCKSdup2)
626 AC_DEFINE(Rfclose, SOCKSfclose)
627 AC_DEFINE(Rgethostbyname, SOCKSgethostbyname)
630 # MP library checking. First check whether user wants to use GMP and use
631 # it if found. If not or not defined then compile the MPI library in the
636 SAVE_CFLAGS="$CFLAGS"
637 SAVE_LDFLAGS="$LDFLAGS"
638 AC_MSG_CHECKING(whether to search for GMP)
640 [[ --with-gmp[=DIR] use GMP instead of MPI [search in DIR/lib and DIR/include]]],
649 if test -d "$withval/include"; then
650 CFLAGS="$CFLAGS -I$withval/include"
652 if test -d "$withval/lib"; then
653 LDFLAGS="$LDFLAGS -L$withval/lib"
660 AC_CHECK_LIB(gmp, __gmpz_init,
663 AC_DEFINE(SILC_MP_GMP)
664 AC_MSG_RESULT(Using GMP as a MP library.)
668 CFLAGS="$SAVE_CFLAGS"
669 LDFLAGS="$SAVE_LDFLAGS"
675 AM_CONDITIONAL(SILC_MP_GMP, test x$mp_gmp = xtrue)
676 AM_CONDITIONAL(SILC_MP_NSS_MPI, test x$mp_gmp = xfalse)
677 if test x$mp_gmp = xfalse; then
678 AC_DEFINE(SILC_MP_NSS_MPI)
679 AC_MSG_RESULT(Using NSS MPI as a MP library.)
688 SAVE_CFLAGS="$CFLAGS"
689 SAVE_LDFLAGS="$LDFLAGS"
690 SAVE_CPPFLAGS="$CPPFLAGS"
691 AC_MSG_CHECKING(whether to implicit search for libiconv)
693 [[ --with-iconv[=DIR] use libiconv [search in DIR/include and DIR/lib]]],
698 AC_CHECK_HEADERS(iconv.h,
700 AC_CHECK_FUNC(iconv, has_iconv=true)
706 if test -d $withval/include; then
707 CPPFLAGS="$CPPFLAGS -I$withval/include"
708 CFLAGS="$CFLAGS -I$withval/include"
710 if test -d $withval/lib; then
711 LDFLAGS="$LDFLAGS -L$withval/lib"
718 AC_CHECK_HEADERS(iconv.h,
720 AC_CHECK_FUNCS(iconv,
728 if test x$check_iconv = xtrue; then
729 AC_MSG_RESULT(Searching for iconv...)
732 unset ac_cv_header__iconv_h_ ac_cv_header_iconv_h || true
734 AC_CHECK_HEADERS(iconv.h,
737 AC_MSG_CHECKING(for iconv in -liconv)
744 iconv_t cd = iconv_open("", "");
745 iconv(cd, NULL, NULL, NULL, NULL);
750 AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
757 CFLAGS="$SAVE_CFLAGS"
758 LDFLAGS="$SAVE_LDFLAGS"
759 CPPFLAGS="$SAVE_CPPFLAGS"
764 if test x$check_iconv = xtrue; then
765 # search for iconv library..
767 SAVE_CFLAGS="$CFLAGS"
768 SAVE_LDFLAGS="$LDFLAGS"
769 SAVE_CPPFLAGS="$CPPFLAGS"
771 for dir in `echo "/usr/local /usr/pkg /usr/contrib"`; do
772 if test x$has_iconv = xfalse; then
773 AC_MSG_RESULT(searching in $dir...)
775 if test -d $dir/include; then
776 CPPFLAGS="$CPPFLAGS -I$dir/include"
777 CFLAGS="$CFLAGS -I$dir/include"
779 if test -d $dir/lib; then
780 LDFLAGS="$LDFLAGS -L$dir/lib"
784 unset ac_cv_header__iconv_h_ ac_cv_header_iconv_h || true
786 AC_CHECK_HEADERS(iconv.h,
789 AC_MSG_CHECKING(for iconv in -liconv)
796 iconv_t cd = iconv_open("", "");
797 iconv(cd, NULL, NULL, NULL, NULL);
803 AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
810 CFLAGS="$SAVE_CFLAGS"
811 LDFLAGS="$SAVE_LDFLAGS"
812 CPPFLAGS="$SAVE_CPPFLAGS"
816 CFLAGS="$SAVE_CFLAGS"
817 LDFLAGS="$SAVE_LDFLAGS"
818 CPPFLAGS="$SAVE_CPPFLAGS"
824 if test x$has_iconv = xtrue; then
825 # (1) Some implementations of iconv won't convert from UTF-8 to UTF-8.
826 # (2) In glibc-2.1.2 and earlier there is a bug that messes up ob and
827 # obl when args 2 and 3 are 0 (fixed in glibc-2.1.3).
829 AC_CACHE_CHECK([whether this iconv is good enough], ac_iconv_good,
840 ob = buf, obl = sizeof(buf);
841 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
842 (iconv(cd, 0, 0, &ob, &obl) ||
843 !(ob == buf && obl == sizeof(buf)) ||
858 if test x$ac_iconv_good = xno; then
859 AC_MSG_RESULT(Try using libiconv instead.)
864 # POSIX threads support
867 AC_MSG_CHECKING(whether to search for POSIX threads)
868 AC_ARG_WITH(pthreads,
869 [[ --with-pthreads[=DIR] use POSIX threads [search in DIR/include and DIR/lib]]],
876 if test -d $withval/include; then
877 CPPFLAGS="$CPPFLAGS -I$withval/include"
878 CFLAGS="$CFLAGS -I$withval/include"
880 if test -d $withval/lib; then
881 LDFLAGS="$LDFLAGS -L$withval/lib"
889 if test x$check_threads = xtrue; then
891 SAVE_CFLAGS="$CFLAGS"
892 SAVE_LDFLAGS="$LDFLAGS"
893 SAVE_CPPFLAGS="$CPPFLAGS"
896 AC_CHECK_HEADERS(pthread.h,
898 LIBS="$LIBS -lpthread"
899 AC_CHECK_LIB(pthread, pthread_attr_init, has_threads=true,
904 LIBS="$SAVE_LIBS -pthread"
905 AC_CHECK_LIB(c_r, pthread_attr_init, has_threads=true, LIBS="$SAVE_LIBS")
914 # search for pthread library..
915 for dir in `echo "/usr/local /usr/pkg /usr/contrib /usr/pkg/pthreads /usr/local/pthreads"`; do
916 if test x$has_threads = xfalse; then
917 AC_MSG_RESULT(searching in $dir...)
919 if test -d $dir/include; then
920 CPPFLAGS="$CPPFLAGS -I$dir/include"
921 CFLAGS="$CFLAGS -I$dir/include"
923 if test -d $dir/lib; then
924 LDFLAGS="$LDFLAGS -L$dir/lib"
928 unset ac_cv_header__pthread_h_ ac_cv_header_pthread_h || true
930 AC_CHECK_HEADERS(pthread.h,
932 LIBS="$LIBS -lpthread"
933 AC_CHECK_LIB(pthread, pthread_attr_init, has_threads=true,
938 CFLAGS="$SAVE_CFLAGS"
939 LDFLAGS="$SAVE_LDFLAGS"
940 CPPFLAGS="$SAVE_CPPFLAGS"
944 CFLAGS="$SAVE_CFLAGS"
945 LDFLAGS="$SAVE_LDFLAGS"
946 CPPFLAGS="$SAVE_CPPFLAGS"
956 __SILC_HAVE_PTHREAD=""
957 AM_CONDITIONAL(SILC_THREADS, test x$has_threads = xtrue)
958 if test x$has_threads = xtrue; then
959 CFLAGS="$CFLAGS -D_REENTRANT"
961 # XXX possibly incomplete
964 CFLAGS="$CFLAGS -D_THREAD_SAFE"
965 if test x"$GCC" = xyes; then
966 CFLAGS="$CFLAGS -mthreads"
970 CFLAGS="$CFLAGS -D_THREAD_SAFE"
972 *-*-sysv5uw7*) # UnixWare 7
973 if test "$GCC" != "yes"; then
974 CFLAGS="$CFLAGS -Kthread"
976 CFLAGS="$CFLAGS -pthread"
980 CFLAGS="$CFLAGS -D_POSIX4A_DRAFT10_SOURCE"
984 AC_CHECK_FUNC(pthread_create)
985 AC_DEFINE(SILC_HAVE_PTHREAD)
986 AC_DEFINE(SILC_THREADS)
987 __SILC_HAVE_PTHREAD="#define __SILC_HAVE_PTHEAD 1"
990 # Native WIN32 compilation under cygwin
992 AC_MSG_CHECKING(whether to compile native WIN32 code)
994 [ --with-win32 compile native WIN32 (MinGW) code (-mno-cygwin)],
997 AC_DEFINE(SILC_WIN32)
999 CFLAGS="-mno-cygwin $CFLAGS"
1000 LIBS="$LIBS -lwsock32"
1005 AM_CONDITIONAL(SILC_WIN32, test x$win32_support = xtrue)
1007 # Native EPOC support (disabled by default)
1009 AM_CONDITIONAL(SILC_EPOC, test xfalse = xtrue)
1011 # Native BeOS support (disabled by default)
1013 AM_CONDITIONAL(SILC_BEOS, test xfalse = xtrue)
1015 # Native OS2 support (disabled by default)
1017 AM_CONDITIONAL(SILC_OS2, test xfalse = xtrue)
1022 AC_MSG_CHECKING(whether to compile Irssi SILC Client)
1024 [ --without-irssi compile without Irssi SILC Client],
1028 SILC_DIST_SUBDIRS=`echo $SILC_DIST_SUBDIRS | $sedpath -e 's/irssi//'`
1037 AC_MSG_CHECKING(whether to compile SILC Server)
1039 [ --without-silcd compile without SILC Server],
1043 SILC_DIST_SUBDIRS=`echo $SILC_DIST_SUBDIRS | $sedpath -e 's/silcd//'`
1049 # Irssi perl support
1052 [[ --with-perl[=yes|no|module] Build with Perl support - also specifies
1053 if it should be built into main silc binary
1054 (static, default) or as a module]])
1057 AC_MSG_CHECKING(whether to do libtoolfix)
1058 AC_ARG_WITH(libtoolfix,
1059 [ --without-libtoolfix Do not fix libtool, for package builders],
1069 AC_DEFINE_UNQUOTED(SILC_ETCDIR, "$ETCDIR")
1077 # Other configure scripts
1079 if test x$without_irssi = xfalse; then
1080 if test "x$silc_dist" = "xsilc-client" ||
1081 test "x$silc_dist" = "xsilc-toolkit"; then
1082 AC_CONFIG_SUBDIRS(irssi)
1086 SILC_TOP_SRCDIR=`pwd`
1088 # Included configure scripts
1089 AD_INCLUDE_CONFIGURE
1094 AC_SUBST(SILC_TOP_SRCDIR)
1096 INCLUDE_DEFINES_INT="include \$(top_srcdir)/Makefile.defines_int"
1097 AC_SUBST(INCLUDE_DEFINES_INT)
1098 AC_SUBST(SILC_DIST_SUBDIRS)
1099 AC_SUBST(SILC_LIB_INCLUDES)
1102 # Fix the libtool to support run-time configuration. This allows us
1103 # to in run-time specify when to compile shared/static libraries without
1104 # need to reconfigure the entire libtool.
1106 if test x$libtoolfix = xtrue; then
1107 ./libtoolfix $SILC_TOP_SRCDIR/ltmain.sh
1109 AM_CONDITIONAL(SILC_LIBTOOLFIX, test x$libtoolfix = xtrue)
1111 AC_SUBST(__SILC_HAVE_PTHREAD)
1112 AC_SUBST(__SILC_HAVE_SIM)
1113 AC_SUBST(__SILC_ENABLE_DEBUG)
1121 Makefile.defines_int
1124 doc/example_silcd.conf
1125 includes/silcincludes.h
1128 if test x$without_irssi = xfalse ; then
1129 if test "x$silc_dist" = "xsilc-client" ||
1130 test "x$silc_dist" = "xsilc-toolkit"; then
1132 irssi/Makefile.defines
1133 irssi/Makefile.defines_int
1138 if test x$without_silcd = xfalse ; then
1139 if test "x$silc_dist" = "xsilc-server" ||
1140 test "x$silc_dist" = "xsilc-toolkit"; then
1147 if test "x$silc_dist" = "xsilc-toolkit"; then
1151 win32/libsilc/Makefile
1152 win32/libsilcclient/Makefile
1154 tutorial/Makefile.defines
1155 tutorial/Makefile.defines_int
1161 s_bindir=`eval echo $bindir`;s_bindir=`eval echo $s_bindir`
1162 s_sbindir=`eval echo $sbindir`;s_sbindir=`eval echo $s_sbindir`
1163 s_mandir=`eval echo $mandir`;s_mandir=`eval echo $s_mandir`
1164 s_includedir=`eval echo $includedir`;s_includedir=`eval echo $s_includedir`
1167 echo "SILC Configuration Summary:"
1168 echo "---------------------------"
1169 echo " Target host ...................: $target"
1170 echo " Compiler ......................: $CC"
1171 echo " CFLAGS ........................: $CFLAGS"
1172 echo " CPPFLAGS ......................: $CPPFLAGS"
1173 echo " LDFLAGS .......................: $LDFLAGS"
1174 echo " LIBS ..........................: $LIBS"
1176 echo " Installation prefix ...........: $prefix"
1177 echo " bin directory .................: $s_bindir"
1178 echo " sbin directory ................: $s_sbindir"
1179 echo " etc directory .................: $ETCDIR"
1180 echo " man directory .................: $s_mandir"
1181 echo " help directory ................: $HELPDIR"
1182 echo " doc directory .................: $DOCDIR"
1183 echo " logs directory ................: $LOGSDIR"
1184 echo " SIM directory .................: $MODULESDIR"
1185 echo " include directory .............: $s_includedir"
1188 if test "x$silc_dist" = "xsilc-client" ||
1189 test "x$silc_dist" = "xsilc-toolkit"; then
1191 if test x$without_irssi = xtrue; then
1194 echo " Compile SILC Client ...........: $irssi"
1197 if test "x$silc_dist" = "xsilc-server" ||
1198 test "x$silc_dist" = "xsilc-toolkit"; then
1200 if test x$without_silcd = xtrue; then
1203 echo " Compile SILC Server ...........: $silcd"
1204 echo " Server configuration file .....: $summary_silcd_configfile"
1205 echo " Server PID file ...............: $PIDFILE"
1208 if test x$sim_support = xfalse; then
1213 if test x$has_iconv = xfalse; then
1218 echo " SIM support ...................: $sim_support"
1219 echo " IPv6 support ..................: $summary_ipv6"
1220 echo " Iconv support .................: $iconv_support"
1221 if test x$want_asm = xfalse; then
1226 echo " Assembler optimizations .......: $summary_asm"
1229 if test x$mp_gmp = xtrue; then
1232 echo " Arithmetic library ............: $mp"
1235 if test x$has_threads = xtrue; then
1238 echo " Multi-threads support .........: $threads"
1239 echo " Debugging enabled .............: $summary_debug"
1241 if test "x$silc_dist" = "xsilc-client"; then
1242 echo "Compile the sources with 'make' or 'gmake' command (GNU make is required)."
1244 echo "Compile the sources with 'make' or 'gmake' command."