3 AM_CONFIG_HEADER(config.h)
4 AM_INIT_AUTOMAKE(Irssi-SILC, 0.7.98.3)
15 dnl * ahem.. :) we don't want static libraries for modules
16 if test "x$lt_target" = "x"; then
17 if test "$target" = "NONE"; then
23 dnl * --disable-static isn't a good idea, complain if it's used
24 if test "x$enable_static" = "xno"; then
25 AC_ERROR([Don't give --disable-static option to configure])
28 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
29 $libtool_flags --disable-static --output=libtool-shared --no-verify $ac_aux_dir/ltmain.sh $lt_target \
30 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
31 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
32 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
33 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
35 AC_CHECK_HEADERS(string.h stdlib.h unistd.h dirent.h sys/ioctl.h libintl.h)
37 # check posix headers..
38 AC_CHECK_HEADERS(sys/time.h sys/utsname.h regex.h)
41 [ --with-big5 Build with tr-Chinese Big5 support],
42 if test x$withval = xyes; then
45 if test "x$withval" = xno; then
54 [ --with-socks Build with socks support],
55 if test x$withval = xyes; then
58 if test "x$withval" = xno; then
67 [ --with-textui Build text frontend],
68 if test x$withval = xyes; then
71 if test "x$withval" = xno; then
80 [ --with-bot Build irssi-bot],
81 if test x$withval = xyes; then
84 if test "x$withval" = xno; then
93 [ --with-proxy Build irssi-proxy],
94 if test x$withval = xyes; then
97 if test "x$withval" = xno; then
107 [ --with-modules Specify what modules to build in binary],
108 if test x$withval != xyes -a x$withval != xno; then
109 build_modules="$withval"
112 if test "x$prefix" = "xNONE"; then
115 PERL_LIB_DIR="$prefix"
118 AC_ARG_ENABLE(perl-path,
119 [ --enable-perl-path=dir Specify where to install the Perl libraries for irssi],
120 if test x$enableval = xyes; then
123 if test "x$enableval" = xno; then
127 PERL_LIB_DIR="$enableval"
128 perl_lib_dir_given=yes
134 [ --enable-perl[=yes|no|static] Build with Perl support - also specifies
135 if it should be built into main irssi binary
136 (static) or as module (default)],
137 if test x$enableval = xyes; then
139 elif test x$enableval = xstatic; then
147 [ --with-tests Run all the tests],
148 if test x$withval != xno; then
154 AC_ARG_ENABLE(curses-windows,
155 [ --enable-curses-windows Use curses windows],
156 if test x$enableval != xno; then
157 AC_DEFINE(USE_CURSES_WINDOWS)
159 AC_DEFINE(USE_CURSES_WINDOWS))
161 AC_ARG_ENABLE(memdebug,
162 [ --enable-memdebug Enable memory debugging],
163 if test x$enableval = xyes; then
166 if test "x$enableval" = xno; then
175 [ --enable-ipv6 Enable IPv6 support],
176 if test x$enableval = xyes; then
179 if test "x$enableval" = xno; then
188 dnl ** just some generic stuff...
191 AC_CHECK_FUNCS(mkfifo fcntl)
193 AC_CHECK_LIB(socket, socket, [
194 PROG_LIBS="$PROG_LIBS -lsocket"
197 AC_CHECK_LIB(nsl, inet_addr, [
198 PROG_LIBS="$PROG_LIBS -lnsl"
201 dnl * gcc specific options
202 if test "x$ac_cv_prog_gcc" = "xyes"; then
203 CFLAGS="$CFLAGS -Wall"
206 dnl * OS specific options
209 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
215 dnl * socklen_t - AC_CHECK_TYPE() would be _really_ useful if it only would
216 dnl * accept header files where to find the typedef..
217 AC_MSG_CHECKING([for socklen_t])
218 AC_CACHE_VAL(irssi_cv_type_socklen_t,
220 #include <sys/types.h>
221 #include <sys/socket.h>],
223 irssi_cv_type_socklen_t=yes,
224 irssi_cv_type_socklen_t=no,
226 if test $irssi_cv_type_socklen_t = no; then
227 AC_DEFINE(socklen_t, int, Define to 'int' if <sys/socket.h> doesn't define.)
229 AC_MSG_RESULT($irssi_cv_type_socklen_t)
232 dnl ** check for socks
235 if test "x$want_socks" = "xyes"; then
236 AC_CHECK_LIB(socks, connect, [
237 PROG_LIBS="$PROG_LIBS -lsocks"
238 AC_CHECK_HEADER(socks.h, [
239 AC_DEFINE(HAVE_SOCKS_H)
240 CFLAGS="$CFLAGS -DSOCKS"
241 AC_MSG_RESULT(["socks5 library found, building with it"])
243 AC_MSG_RESULT(["socks4 library found, building with it"])
244 CFLAGS="$CFLAGS -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dgetpeername=Rgetpeername -Dbind=Rbind -Daccept=Raccept -Dlisten=Rlisten -Dselect=Rselect"
250 dnl ** fe-text checks
253 AC_PATH_PROG(sedpath, sed)
255 AC_DEFUN(AC_CHECK_GLIBDIR,[
256 AC_MSG_CHECKING([whether GLib is unpacked to irssi dir])
258 GLIB_DIR=`for d in *; do test -f $d/glib.h && echo $d; done`
259 if test "x$GLIB_DIR" != "x"; then
260 dnl * glib in irssi directory, use it
261 AC_MSG_RESULT([yes, using it])
263 dnl * we have to do this at this point so we know what libs gmodule needs
264 if test ! -f $GLIB_DIR/.libs/libglib.a; then
266 echo "configuring GLib ..."
269 if test ! -f glib-config; then
277 GLIB_LDEXTRA=`$GLIB_DIR/glib-config --libs gmodule|$sedpath -e 's/-lglib//' -e 's/-lgmodule//' -e 's,-L/usr/local/lib ,,'|$sedpath 's/ \+/ /g'`
278 full_glib_dir="`pwd`/$GLIB_DIR"
279 GLIB_CFLAGS="-I$full_glib_dir -I$full_glib_dir/gmodule"
280 if test -f $full_glib_dir/.libs/libglib.a; then
281 GLIB_LIBS="$full_glib_dir/.libs/libglib.a $GLIB_LDEXTRA"
282 if test -f $full_glib_dir/gmodule/.libs/libgmodule.a; then
283 GLIB_LIBS="$GLIB_LIBS $full_glib_dir/gmodule/.libs/libgmodule.a"
284 AC_DEFINE(HAVE_GMODULE)
287 GLIB_LIBS="$full_glib_dir/libglib.a $GLIB_LDEXTRA"
288 if test -f $full_glib_dir/gmodule/libgmodule.a; then
289 GLIB_LIBS="$GLIB_LIBS $full_glib_dir/gmodule/libgmodule.a"
290 AC_DEFINE(HAVE_GMODULE)
293 AC_SUBST(GLIB_CFLAGS)
302 if test "x$GLIB_DIR" = "x"; then
303 AM_PATH_GLIB(1.2.0,,, gmodule)
304 if test "x$GLIB_LIBS" = "x"; then
305 echo "*** trying without -lgmodule"
309 AC_DEFINE(HAVE_GMODULE)
312 if test "x$GLIB_LIBS" = "x"; then
314 echo "*** If you don't have GLIB, you can get it from ftp://ftp.gtk.org"
315 echo "*** If you can't install GLIB anywhere or if you don't want to,"
316 echo "*** you can just unpack it to Irssi's source directory and"
317 echo "*** Irssi will automatically compile and use it."
320 dnl * I think it's pretty safe to assume GLib 1.2.9 since the next
321 dnl * will be 2.0 (or 1.4?) and it's not sure if irssi compiles
322 dnl * with it (yea, just a few weeks after I put this text for 1.2.8
323 dnl * the 1.2.9 came :) .. and then .10
324 glib_file=glib-1.2.10.tar.gz
327 if test "x`ncftpget 2>/dev/null|grep -i ncftp`" != "x"; then
328 dlcmd="ncftpget ftp://ftp.gtk.org/pub/gtk/v1.2/$glib_file"
330 if test "x`wget 2>/dev/null|grep -i wget`" != "x"; then
331 dlcmd="wget http://irssi.org/files/$glib_file"
333 if test "x$dlcmd" != "x"; then
334 echo "*** I can download GLib for you now. If you don't want to, press CTRL-C now."
337 if `gunzip $glib_file`; then
338 glib_file=`echo $glib_file|$sedpath s/\.gz$//`
339 if `tar xf $glib_file`; then
346 if test "x$GLIB_LIBS" = "x"; then
347 AC_ERROR([GLIB is required to build irssi.])
352 PROG_LIBS="$PROG_LIBS $GLIB_LIBS"
355 dnl ** check if we can link dynamic libraries to modules
356 dnl ** also checks if libraries are built to .libs dir
359 AC_MSG_CHECKING([if we can link dynamic libraries with modules])
362 dnl ** compile object file
363 cat > conftest.c <<EOF
365 int modfunc(void){return (int)floor(1.2);}
368 ./libtool --mode=compile $CC $CFLAGS -c conftest.c 2> /dev/null > /dev/null
369 if test ! -s conftest.lo; then
370 AC_ERROR([error compiling test module])
373 dnl ** link to library
374 ./libtool --mode=link $CC $CFLAGS $LDFLAGS -rpath /usr/lib conftest.lo -lm -o libconftest.la > /dev/null
375 if test ! -s .libs/libconftest.a; then
376 AC_ERROR([error, can't even find .a library])
379 dnl ** check if dynamic linking worked
380 libfile=`grep '^library_names' libconftest.la|$sedpath "s/library_names='\(.*\)'.*/\1/"|$sedpath 's/.* \([[^ ]]*\)$/\1/'`
381 if test ! -s .libs/$libfile; then
382 AC_MSG_RESULT([no, error linking test module])
384 cat > conftest.c <<EOF
387 GModule *m; int (*modfunc)(void);
388 m = g_module_open(".libs/$libfile", 0);
389 if (!m) g_print("error loading: %s", g_module_error());
390 else if (!g_module_symbol(m, "modfunc", (gpointer *) &modfunc))
391 g_print("modfunc() symbol not found from module");
392 else if (modfunc() == 1) g_print("ok"); else g_print("wrong result?! 1 vs %d", modfunc());
395 $CC $CFLAGS conftest.c -o conftest $GLIB_CFLAGS $GLIB_LIBS 2> /dev/null > /dev/null
396 if test ! -s conftest; then
397 AC_MSG_RESULT([no, error compiling test program])
399 status="`./conftest`"
400 if test "x$status" = "xok"; then
404 AC_MSG_RESULT([no, error running: $status])
408 rm -rf conftest conftest.* libconftest.* .libs
414 if test "x$want_textui" = "xyes"; then
417 if test "x$has_ncurses" != "x"; then
418 AC_CHECK_LIB(ncurses, use_default_colors, [
419 AC_DEFINE(HAVE_NCURSES_USE_DEFAULT_COLORS)
421 AC_CHECK_LIB(ncurses, idcok, [
422 AC_DEFINE(HAVE_CURSES_IDCOK)
424 AC_CHECK_LIB(ncurses, resizeterm, [
425 AC_DEFINE(HAVE_CURSES_RESIZETERM)
427 AC_CHECK_LIB(ncurses, wresize, [
428 AC_DEFINE(HAVE_CURSES_WRESIZE)
430 elif test "x$has_curses" = "xtrue"; then
431 AC_CHECK_LIB(curses, idcok, [
432 AC_DEFINE(HAVE_CURSES_IDCOK)
434 AC_CHECK_LIB(curses, resizeterm, [
435 AC_DEFINE(HAVE_CURSES_RESIZETERM)
437 AC_CHECK_LIB(curses, wresize, [
438 AC_DEFINE(HAVE_CURSES_WRESIZE)
452 if test "$want_perl" != "no"; then
453 AC_PATH_PROG(perlpath, perl)
454 AC_MSG_CHECKING(for working Perl support)
456 if test "x$perlpath" = "x"; then
457 perl_check_error="perl binary not found"
459 PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null`
462 if test "x$PERL_CFLAGS" = "x"; then
463 perl_check_error="Error getting perl CFLAGS"
464 AC_MSG_RESULT([not found, building without Perl])
467 PERL_LDFLAGS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null`
469 dnl * Perl 5.004 and older use perl_xxx variables while
470 dnl * later use PL_perl_xxx variables ..
471 have_pl_perl=`$perlpath -e 'print $] < 5.005 ? "no" : "yes";'`
472 if test "x$have_pl_perl" = "xyes"; then
473 AC_DEFINE(HAVE_PL_PERL)
476 if test "x$DYNLIB_MODULES" = "xno" -a "$want_perl" != "static"; then
477 dnl * wanted perl as module, won't get it.
479 perl_mod_error="Dynamic library dependencies don't work with modules"
482 if test "$want_perl" != "static"; then
483 dnl * dynaloader.a -> libperl_dynaloader.la
484 DYNALOADER_A=`echo $PERL_LDFLAGS | $perlpath -pe 's/^(.* )*([[^ ]]*DynaLoader\.a).*/\2/'`
487 dnl * don't check libperl.a if dynaloader.a wasn't found..
488 if test "x$DYNALOADER_A" != "x"; then
489 dnl * find either libperl.a or libperl.so
490 LIBPERL_A=`echo "$PERL_LDFLAGS -L/usr/lib"|$perlpath -e 'foreach (split(/ /, <STDIN>)) { if (/^-L(.*)/) { my $dir=$1; if (\`ls $dir/libperl.so* 2>/dev/null\`) { print "-lperl"; last; }; if (-e "$dir/libperl.a") { print "$dir/libperl.a"; last } } };'`
491 if test "x$LIBPERL_A" = "x"; then
492 perl_mod_error="Didn't find location of -lperl"
494 elif test "$LIBPERL_A" = "-lperl"; then
499 dnl * remove all database stuffs
500 dnl * nsl is already in ldflags
501 dnl * libc is of course linked without needing -lc
502 dnl * -rdynamic must not be in LIBADD line
503 for word in -ldb -ldbm -lndbm -lgdbm -lc -rdynamic; do
504 PERL_LDFLAGS=`echo $PERL_LDFLAGS | $sedpath -e "s/$word //" -e "s/$word$//"`
509 PERL_LDFLAGS=`echo $PERL_LDFLAGS | $sedpath -e 's/-lposix //' -e 's/-lposix$//'`
512 if test "x$ac_cv_prog_gcc" = "xyes"; then
513 PERL_CFLAGS=`echo $PERL_CFLAGS | $sedpath -e 's/-Ae //' -e 's/-Ae$//'`
514 PERL_LDFLAGS=`echo $PERL_LDFLAGS | $sedpath -e 's/-Ae //' -e 's/-Ae$//'`
521 dnl * check that perl's ldflags actually work
522 AC_CACHE_VAL(irssi_cv_lib_perl_works, [
523 echo "main(){perl_alloc(); return 0;}" > conftest.c
524 $CC $CFLAGS conftest.c -o conftest $LDFLAGS $PERL_LDFLAGS 2> /dev/null > /dev/null
525 if test -s conftest; then
526 irssi_cv_lib_perl_works=yes
528 irssi_cv_lib_perl_works=no
532 if test "x$irssi_cv_lib_perl_works" = "xno"; then
533 perl_check_error="Error linking with perl libraries: $PERL_LDFLAGS"
534 AC_MSG_RESULT([error linking with perl libraries, building without Perl])
539 if test "x$want_perl" != "xno"; then
540 if test "x$want_perl" = "xstatic"; then
542 elif test "x$DYNALOADER_A" = "x"; then
543 AC_MSG_RESULT([error parsing ldopts, building Perl into irssi binary instead of as module])
547 PERL_LDFLAGS=`echo $PERL_LDFLAGS | $perlpath -pe 's/^(.* )*[[^ ]]*DynaLoader\.a/\1libperl_dynaloader.la/'`
548 if test "x$LIBPERL_A" != "x"; then
549 PERL_LDFLAGS=`echo $PERL_LDFLAGS | $sedpath -e 's/-lperl /libperl_orig.la /' -e 's/-lperl$/libperl_orig.la$/'`
552 AC_SUBST(DYNALOADER_A)
555 if test "x$want_perl" = "xstatic"; then
556 dnl * building with static perl support
557 dnl * all PERL_LDFLAGS linking is done in fe-text
558 PERL_LDFLAGS="../perl/libperl_static.la $PERL_LDFLAGS"
559 PERL_LINK_LIBS="$PERL_LDFLAGS"
560 PERL_FE_LINK_LIBS="../perl/libfe_perl_static.la"
562 AC_DEFINE(HAVE_STATIC_PERL)
564 dnl * build only static library of perl module
567 perl_static_lib=libperl_static.la
568 perl_static_fe_lib=libfe_perl_static.la
569 PERL_LIBTOOL='$(SHELL) $(top_builddir)/libtool'
571 dnl * build dynamic library of perl module,
572 dnl * use libtool-shared to prevent creating of
574 perl_module_lib=libperl_core.la
575 perl_module_fe_lib=libfe_perl.la
578 PERL_LIBTOOL='$(SHELL) $(top_builddir)/libtool-shared'
580 AC_SUBST(perl_module_lib)
581 AC_SUBST(perl_static_lib)
582 AC_SUBST(perl_module_fe_lib)
583 AC_SUBST(perl_static_fe_lib)
584 AC_SUBST(PERL_LIBTOOL)
586 AC_SUBST(PERL_LINK_LIBS)
587 AC_SUBST(PERL_FE_LINK_LIBS)
589 AC_SUBST(PERL_LDFLAGS)
590 AC_SUBST(PERL_CFLAGS)
591 AC_SUBST(PERL_LIB_DIR)
595 dnl ** check what we want to build
596 AM_CONDITIONAL(BUILD_TEXTUI, test "$want_textui" = "yes")
597 AM_CONDITIONAL(BUILD_IRSSIBOT, test "$want_irssibot" = "yes")
598 AM_CONDITIONAL(BUILD_IRSSIPROXY, test "$want_irssiproxy" = "yes")
599 AM_CONDITIONAL(BUILD_PLUGINS, test "$want_plugins" = "yes")
600 AM_CONDITIONAL(BUILD_SERVERTEST, test "x$TEST_DIR" != "x")
601 AM_CONDITIONAL(HAVE_PERL, test "$want_perl" != "no")
602 AM_CONDITIONAL(HAVE_STATIC_PERL, test "$want_perl" = "static")
607 dnl ** Keep all the libraries here so each frontend doesn't need to
608 dnl ** keep track of them all
610 dnl ** (these could be made configurable)
614 if test "x$build_modules" != "x"; then
615 silc_MODULES="$silc_MODULES $build_modules"
617 #PROG_LIBS="$PROG_LIBS -lsilc"
619 dnl ****************************************
621 AC_SUBST(CHAT_MODULES)
622 AC_SUBST(silc_MODULES)
624 CORE_LIBS="../core/libcore.a ../lib-config/libirssi_config.a ../lib-popt/libpopt.a"
628 for c in $CHAT_MODULES; do
633 CHAT_LIBS="$CHAT_LIBS ../$c/lib$c.a ../$c/core/lib${c}_core.a"
634 if test -f $srcdir/src/fe-common/$c/module.h; then
635 FE_COMMON_LIBS="$FE_COMMON_LIBS../fe-common/$c/libfe_common_$c.a "
637 for s in `eval echo \\$${c}_MODULES`; do
638 CHAT_LIBS="$CHAT_LIBS ../$c/$s/.libs/lib${c}_$s.a"
639 module_inits="$module_inits ${c}_${s}_init();"
640 module_deinits="${c}_${s}_deinit(); $module_deinits"
641 if test -f $srcdir/src/fe-common/$c/$s/module.h; then
642 FE_COMMON_LIBS="$FE_COMMON_LIBS../fe-common/$c/$s/.libs/libfe_${c}_$s.a "
643 fe_module_inits="$fe_module_inits fe_${c}_${s}_init();"
644 fe_module_deinits="fe_${c}_${s}_deinit(); $fe_module_deinits"
648 file="$srcdir/src/$c/$c.c"
649 echo "/* this file is automatically generated by configure - don't change */" > $file
650 echo "void ${c}_core_init(void); void ${c}_core_init_finish(void); void ${c}_core_deinit(void);" >> $file
651 if test "x$module_inits" != "x"; then
652 echo "$module_inits" | $sedpath -e 's/()/(void)/g' -e 's/ /void /g' >> $file
653 echo "$module_deinits" | $sedpath -e 's/ *$//' -e 's/()/(void)/g' -e 's/ /void /g' -e 's/^/void /' >> $file
655 echo "void ${c}_init(void) { ${c}_core_init(); $module_inits }" >> $file
656 echo "void ${c}_init_finish(void) { ${c}_core_init_finish(); $module_inits }" >> $file
657 echo "void ${c}_deinit(void) { $module_deinits ${c}_core_deinit(); }" >> $file
659 if test -f $srcdir/src/fe-common/$c/module.h; then
660 file="$srcdir/src/fe-common/$c/${c}-modules.c"
661 echo "/* this file is automatically generated by configure - don't change */" > $file
662 if test "x$fe_module_inits" != "x"; then
663 echo "$fe_module_inits" | $sedpath -e 's/()/(void)/g' -e 's/ /void /g' >> $file
664 echo "$fe_module_deinits" | $sedpath -e 's/ *$//' -e 's/()/(void)/g' -e 's/ /void /g' -e 's/^/void /' >> $file
666 echo "void fe_${c}_modules_init(void) { $fe_module_inits }" >> $file
667 echo "void fe_${c}_modules_deinit(void) { $fe_module_deinits }" >> $file
671 FE_COMMON_LIBS="$FE_COMMON_LIBS../fe-common/core/libfe_common_core.a"
673 dnl ** common libraries needed by frontends
674 COMMON_NOUI_LIBS="$CHAT_LIBS $CORE_LIBS $INTLLIBS"
675 COMMON_LIBS="$FE_COMMON_LIBS $COMMON_NOUI_LIBS"
676 AC_SUBST(COMMON_NOUI_LIBS)
677 AC_SUBST(COMMON_LIBS)
680 dnl ** memory debugging
683 if test "x$want_memdebug" = "xyes"; then
686 AM_CONDITIONAL(BUILD_MEMDEBUG, test "x$want_memdebug" = "xyes")
689 dnl ** tr-Chinese Big5 support
692 if test "x$want_big5" = "xyes"; then
700 if test "x$want_ipv6" = "xyes"; then
708 src/fe-common/Makefile
709 src/fe-common/core/Makefile
710 src/fe-common/silc/Makefile
712 src/lib-config/Makefile
713 src/lib-popt/Makefile
715 src/silc/core/Makefile
718 docs/help/in/Makefile
724 dnl ** for building from objdir
725 if test "x$want_perl" != "xno"; then
726 old_dir=`pwd` && cd $srcdir && whole_dir=`pwd` && cd $old_dir
728 if test "x$old_dir" != "x$whole_dir"; then
729 for file in $whole_dir/src/perl/*.[[ch]] $whole_dir/src/perl/libperl_orig.la $whole_dir/src/perl/libperl_dynaloader.la $whole_dir/src/perl/common/typemap $whole_dir/src/perl/common/module.h $whole_dir/src/perl/common/*.xs $whole_dir/src/perl/irc/typemap $whole_dir/src/perl/irc/module.h $whole_dir/src/perl/irc/*.xs; do
730 link=`echo $file|$sedpath "s?$whole_dir/??"`
739 if test "x$curses_error" != "xyes"; then
740 echo "Building text frontend ..... : $want_textui"
742 echo "Building text frontend ..... : NO!!"
743 echo " - Because curses was not found, specify the path to it with"
744 echo " --with-curses=/dir and make sure you have the curses headers"
745 echo " installed (usually in ncurses-devel package)"
747 echo "Building irssi bot ......... : $want_irssibot"
748 echo "Building irssi proxy ....... : $want_irssiproxy"
749 echo "Building with IPv6 support . : $want_ipv6"
751 if test "x$want_perl" = "xstatic"; then
752 echo "Building with Perl support . : static (in irssi binary)"
753 elif test "x$want_perl" = "xyes"; then
754 echo "Building with Perl support . : module"
756 if test "x$perl_check_error" = "x"; then
757 echo "Building with Perl support . : no"
759 echo "Building with Perl support . : NO!"
760 echo " - $perl_check_error"
764 if test "x$want_perl" != "xno" -a "x$perl_mod_error" != "x"; then
765 echo " - NOTE: Perl support will be compiled statically to irssi, not as"
766 echo " a module as requested. Reason:"
767 echo " $perl_mod_error"
770 if test "x$want_perl" = "xyes"; then
771 if test "x$PERL_LIB_DIR" = "x"; then
772 echo "Perl library directory ..... : (default - usually /usr/local/lib/perl_site)"
774 echo "Perl library directory ..... : $PERL_LIB_DIR"
775 if test "x$perl_lib_dir_given" != "xyes"; then
776 echo " - NOTE: This was automatically set to the same directory you gave with"
777 echo " --prefix. If you want the perl libraries to install to their 'correct'"
778 echo " path, you'll need to give --enable-perl-path= (nothing after '=') option"
779 echo " to configure. Anyway, installing perl to this directory should work"
780 echo " just as well.."
784 echo "Install prefix ............. : $prefix"