comparison configure.ac @ 14444:17cdf9efe279

[gaim-migrate @ 17158] A little more cleanup committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 04 Sep 2006 08:09:36 +0000
parents 576c9db9b6e3
children b1a6effcb37a
comparison
equal deleted inserted replaced
14443:8fa2d7a7000d 14444:17cdf9efe279
176 dnl # Check for GTK+ 2.0 and other things used by the GTK UI 176 dnl # Check for GTK+ 2.0 and other things used by the GTK UI
177 dnl ####################################################################### 177 dnl #######################################################################
178 AC_ARG_ENABLE(gtkgaim, 178 AC_ARG_ENABLE(gtkgaim,
179 [AC_HELP_STRING([--disable-gtkgaim], 179 [AC_HELP_STRING([--disable-gtkgaim],
180 [compile without GtkGaim client])], 180 [compile without GtkGaim client])],
181 enable_gtk="$enableval", enable_gtk="yes") 181 enable_gtkui="$enableval", enable_gtkui="yes")
182 AC_ARG_ENABLE(screensaver, 182 AC_ARG_ENABLE(screensaver,
183 [AC_HELP_STRING([--disable-screensaver], 183 [AC_HELP_STRING([--disable-screensaver],
184 [compile without X screensaver extension (used to detect idleness)])], 184 [compile without X screensaver extension (used to detect idleness)])],
185 enable_screensaver="no", enable_screensaver="yes") 185 enable_screensaver="no", enable_screensaver="yes")
186 AC_ARG_ENABLE(sm, 186 AC_ARG_ENABLE(sm,
202 AC_ARG_ENABLE(cap, 202 AC_ARG_ENABLE(cap,
203 [AC_HELP_STRING([--disable-cap], 203 [AC_HELP_STRING([--disable-cap],
204 [compile without Contact Availability Prediction plugin])], 204 [compile without Contact Availability Prediction plugin])],
205 enable_cap="no", enable_cap="yes") 205 enable_cap="no", enable_cap="yes")
206 206
207 if test "x$enable_gtk" = "xyes" ; then 207 if test "x$enable_gtkui" = "xyes" ; then
208 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.0.0], , [ 208 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.0.0], , [
209 AC_MSG_RESULT(no) 209 AC_MSG_RESULT(no)
210 AC_MSG_ERROR([ 210 AC_MSG_ERROR([
211 211
212 You must have the GTK+ 2.0 development headers installed to compile Gaim's 212 You must have the GTK+ 2.0 development headers installed to compile Gaim's
323 dnl ####################################################################### 323 dnl #######################################################################
324 dnl # Check for libdbi (for the Contact Availability Prediction plugin) 324 dnl # Check for libdbi (for the Contact Availability Prediction plugin)
325 dnl ####################################################################### 325 dnl #######################################################################
326 if test "x$enable_cap" = "xyes"; then 326 if test "x$enable_cap" = "xyes"; then
327 AC_CHECK_HEADERS(dbi/dbi.h, , enable_cap="no") 327 AC_CHECK_HEADERS(dbi/dbi.h, , enable_cap="no")
328 if test "x$enable_cap" = "xyes"; then 328 AC_CHECK_LIB(dbi, dbi_result_field_is_null, CAP_LIBS="-ldbi", enable_cap="no")
329 AC_CHECK_LIB(dbi, dbi_result_field_is_null, CAP_LIBS="-ldbi", enable_cap="no") 329 AC_SUBST(CAP_LIBS)
330 AC_SUBST(CAP_LIBS)
331 fi
332 fi 330 fi
333 331
334 else # GTK 332 else # GTK
335 enable_screensaver=no 333 enable_screensaver=no
336 enable_sm=no 334 enable_sm=no
337 enable_startup_notification=no 335 enable_startup_notification=no
338 enable_gtkspell=no 336 enable_gtkspell=no
339 enable_gevolution=no 337 enable_gevolution=no
340 fi # GTK 338 fi # GTK
341 339
342 AM_CONDITIONAL(ENABLE_GTK, test "x$enable_gtk" = "xyes") 340 AM_CONDITIONAL(ENABLE_GTK, test "x$enable_gtkui" = "xyes")
343 AM_CONDITIONAL(BUILD_GEVOLUTION, test "x$enable_gevolution" = "xyes") 341 AM_CONDITIONAL(BUILD_GEVOLUTION, test "x$enable_gevolution" = "xyes")
344 AM_CONDITIONAL(ENABLE_CAP, test "x$enable_cap" = "xyes") 342 AM_CONDITIONAL(ENABLE_CAP, test "x$enable_cap" = "xyes")
345 343
346 dnl ####################################################################### 344 dnl #######################################################################
347 dnl # Check for ncurses? 345 dnl # Check for ncurses and other things used by the console UI
348 dnl ####################################################################### 346 dnl #######################################################################
349 AC_ARG_ENABLE(gntgaim, 347 AC_ARG_ENABLE(consolegaim,
350 [AC_HELP_STRING([--disable-gntgaim], [compile without GntGaim console client])], 348 [AC_HELP_STRING([--disable-consolegaim], [compile without console client])],
351 enable_gnt=$enableval, enable_gnt=yes) 349 enable_console=$enableval, enable_console=yes)
350
351 GNT_LIBS=""
352 GNT_CFLAGS=""
353 if test "x$enable_console" = "xyes"; then
354 AC_CHECK_LIB(ncursesw, initscr, [GNT_LIBS="-lncursesw"], [enable_console=no])
355 AC_CHECK_LIB(panelw, update_panels, [GNT_LIBS="$GNT_LIBS -lpanelw"], [enable_console=no])
356
357 LIBS_save="$LIBS"
358 LIBS="$LIBS $GNT_LIBS"
359
360 dnl # Some distros put the headers in ncursesw/, some don't
361 found_ncurses_h=no
362 for f in /usr/include/ncursesw/ncurses.h /usr/include/ncurses.h
363 do
364 AC_CHECK_HEADER($f,[
365 AC_MSG_CHECKING([if $f supports wide characters])
366 AC_TRY_COMPILE([
367 #define _XOPEN_SOURCE_EXTENDED
368 #include <$f>
369 ], [
370 #ifndef get_wch
371 # error get_wch not found!
372 #endif
373 ], [
374 dir=`dirname $f`
375 if test x"$dir" != x"." ; then
376 GNT_CFLAGS="-I$dir/"
377 else
378 GNT_CFLAGS=""
379 fi
380
381 found_ncurses_h=yes
382 AC_MSG_RESULT([yes])
383 break
384 ], [
385 AC_MSG_RESULT([no])
386 ])
387 ])
388 done
389
390 LIBS="$LIBS_save"
391
392 if test x"$found_ncurses_h" = x"no" ; then
393 GNT_LIBS=""
394 GNT_CFLAGS=""
395 enable_console=no
396 AC_MSG_RESULT([no])
397 else
398 AC_MSG_RESULT([yes])
399 fi
400
401 PKG_CHECK_MODULES(X11, x11,
402 [AC_DEFINE(HAVE_X11, 1, [Define to 1 if you have X11])], [AC_MSG_RESULT(no)])
403 AC_SUBST(X11_LIBS)
404 AC_SUBST(X11_CFLAGS)
405 fi
406
407 AC_SUBST(GNT_LIBS)
408 AC_SUBST(GNT_CFLAGS)
409 AM_CONDITIONAL(ENABLE_GNT, test "x$enable_console" = "xyes")
410
411 AC_CHECK_FUNC(wcwidth, [AC_DEFINE([HAVE_WCWIDTH], [1], [Define to 1 if you have wcwidth function.])])
352 412
353 dnl ####################################################################### 413 dnl #######################################################################
354 dnl # Check for LibXML2 (required) 414 dnl # Check for LibXML2 (required)
355 dnl ####################################################################### 415 dnl #######################################################################
356 PKG_CHECK_MODULES(LIBXML, [libxml-2.0], , [ 416 PKG_CHECK_MODULES(LIBXML, [libxml-2.0], , [
572 AC_SUBST(GADU_CFLAGS) 632 AC_SUBST(GADU_CFLAGS)
573 633
574 634
575 AC_ARG_ENABLE(distrib,,,enable_distrib=no) 635 AC_ARG_ENABLE(distrib,,,enable_distrib=no)
576 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") 636 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes")
577 AC_ARG_ENABLE(prpls, [AC_HELP_STRING([--disable-prpls], [don't build dynamic protocol plugins])], , enable_prpls=yes)
578 DYNAMIC_PRPLS=all 637 DYNAMIC_PRPLS=all
579 AC_ARG_WITH(static-prpls, [AC_HELP_STRING([--with-static-prpls], [Link to certain protocols statically])], [STATIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`], [STATIC_PRPLS=""]) 638 AC_ARG_WITH(static-prpls, [AC_HELP_STRING([--with-static-prpls], [Link to certain protocols statically])], [STATIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`], [STATIC_PRPLS=""])
580 if test "x$STATIC_PRPLS" != "x" -a "x$DYNAMIC_PRPLS" = "xall"; then 639 if test "x$STATIC_PRPLS" != "x" -a "x$DYNAMIC_PRPLS" = "xall"; then
581 DYNAMIC_PRPLS="" 640 DYNAMIC_PRPLS=""
582 fi 641 fi
695 AM_CONDITIONAL(DYNAMIC_TOC, test "x$dynamic_toc" = "xyes") 754 AM_CONDITIONAL(DYNAMIC_TOC, test "x$dynamic_toc" = "xyes")
696 AM_CONDITIONAL(DYNAMIC_YAHOO, test "x$dynamic_yahoo" = "xyes") 755 AM_CONDITIONAL(DYNAMIC_YAHOO, test "x$dynamic_yahoo" = "xyes")
697 AM_CONDITIONAL(DYNAMIC_ZEPHYR, test "x$dynamic_zephyr" = "xyes") 756 AM_CONDITIONAL(DYNAMIC_ZEPHYR, test "x$dynamic_zephyr" = "xyes")
698 757
699 AC_ARG_ENABLE(plugins, [AC_HELP_STRING([--disable-plugins], [compile without plugin support])], , enable_plugins=yes) 758 AC_ARG_ENABLE(plugins, [AC_HELP_STRING([--disable-plugins], [compile without plugin support])], , enable_plugins=yes)
700 AC_ARG_ENABLE(perl, [AC_HELP_STRING([--disable-perl], [compile without perl scripting])], , enable_perl=yes)
701 AC_ARG_ENABLE(tcl, [AC_HELP_STRING([--disable-tcl], [compile without Tcl scripting])], , enable_tcl=yes)
702 AC_ARG_WITH(tclconfig, [AC_HELP_STRING([--with-tclconfig=DIR], [directory containing tclConfig.sh])])
703 AC_ARG_ENABLE(tk, [AC_HELP_STRING([--disable-tk], [compile without Tcl support for Tk])], , enable_tk=yes)
704 AC_ARG_WITH(tkconfig, [AC_HELP_STRING([--with-tkconfig=DIR], [directory containing tkConfig.sh])])
705 AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug], [compile with debugging support])], , enable_debug=no)
706 AC_ARG_ENABLE(fatal-asserts, [AC_HELP_STRING([--enable-fatal-asserts], [make assertions fatal (useful for debugging)])], , enable_fatal_asserts=no)
707 dnl We know Gaim won't compile with deprecated APIs disabled.
708 dnl We have no desire to support two different versions of the
709 dnl same code when it's not necessary, so we're sticking with
710 dnl the deprecated APIs in many cases.
711 dnl This option is being left in case things change.
712 dnl AC_ARG_ENABLE(deprecated, [AC_HELP_STRING([--disable-deprecated], [compile without deprecated API usage])], , enable_deprecated=yes)
713 AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], , enable_fortify=yes)
714 AC_ARG_WITH(krb4, [AC_HELP_STRING([--with-krb4=PREFIX], [compile Zephyr plugin with Kerberos 4 support])], kerberos="$withval", kerberos="no") 759 AC_ARG_WITH(krb4, [AC_HELP_STRING([--with-krb4=PREFIX], [compile Zephyr plugin with Kerberos 4 support])], kerberos="$withval", kerberos="no")
715 AC_ARG_WITH(zephyr, [AC_HELP_STRING([--with-zephyr=PREFIX], [compile Zephyr plugin against external libzephyr])], zephyr="$withval", zephyr="no") 760 AC_ARG_WITH(zephyr, [AC_HELP_STRING([--with-zephyr=PREFIX], [compile Zephyr plugin against external libzephyr])], zephyr="$withval", zephyr="no")
716 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") 761 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno")
717 762
718 AC_CHECK_HEADER(sys/utsname.h) 763 AC_CHECK_HEADER(sys/utsname.h)
719 AC_CHECK_FUNC(uname) 764 AC_CHECK_FUNC(uname)
720 765
766 AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug],
767 [compile with debugging support])], , enable_debug=no)
721 if test "x$enable_debug" = "xyes" ; then 768 if test "x$enable_debug" = "xyes" ; then
722 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) 769 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
723 fi 770 fi
724 771
772 AC_ARG_ENABLE(fatal-asserts, [AC_HELP_STRING([--enable-fatal-asserts],
773 [make assertions fatal (useful for debugging)])], , enable_fatal_asserts=no)
725 if test "x$enable_fatal_asserts" = "xyes" ; then 774 if test "x$enable_fatal_asserts" = "xyes" ; then
726 AC_DEFINE(GAIM_FATAL_ASSERTS, 1, [Define to make assertions fatal (useful for debugging).]) 775 AC_DEFINE(GAIM_FATAL_ASSERTS, 1, [Define to make assertions fatal (useful for debugging).])
727 fi 776 fi
728 777
729 if test "x$enable_deprecated" = "xno"; then 778 AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], , enable_fortify=yes)
730 DEBUG_CFLAGS="$DEBUG_CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
731 fi
732 779
733 if test "x$GCC" = "xyes"; then 780 if test "x$GCC" = "xyes"; then
734 dnl We enable -Wall later. 781 dnl We enable -Wall later.
735 dnl If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags. 782 dnl If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags.
736 dnl This leads to warnings we don't want. 783 dnl This leads to warnings we don't want.
822 x_incpath_add= 869 x_incpath_add=
823 else 870 else
824 x_incpath_add="-I$x_includes" 871 x_incpath_add="-I$x_includes"
825 fi 872 fi
826 873
827 PKG_CHECK_MODULES(X11, x11,
828 [AC_DEFINE(HAVE_X11, 1, [Define to 1 if you have X11])], [AC_MSG_RESULT(no)])
829 AC_SUBST(X11_LIBS)
830 AC_SUBST(X11_CFLAGS)
831
832 dnl ####################################################################### 874 dnl #######################################################################
833 dnl # Check for DBUS libraries 875 dnl # Check for DBUS libraries
834 dnl ####################################################################### 876 dnl #######################################################################
835 877
836 AC_ARG_ENABLE(dbus, [AC_HELP_STRING([--enable-dbus], [enable DBUS support])], , enable_dbus=yes) 878 AC_ARG_ENABLE(dbus, [AC_HELP_STRING([--enable-dbus], [enable DBUS support])], , enable_dbus=yes)
950 fi 992 fi
951 993
952 AM_CONDITIONAL(ENABLE_DBUS, test "x$enable_dbus" = "xyes") 994 AM_CONDITIONAL(ENABLE_DBUS, test "x$enable_dbus" = "xyes")
953 995
954 dnl ####################################################################### 996 dnl #######################################################################
955 dnl # GNT Gaim
956 dnl #######################################################################
957 GNT_LIBS=""
958 GNT_CFLAGS=""
959 if test "x$enable_gnt" = "xyes"; then
960 AC_CHECK_LIB(ncursesw, initscr, [GNT_LIBS="-lncursesw"], [enable_gnt=no])
961 AC_CHECK_LIB(panelw, update_panels, [GNT_LIBS="$GNT_LIBS -lpanelw"], [enable_gnt=no])
962
963 LIBS_save="$LIBS"
964 LIBS="$LIBS $GNT_LIBS"
965
966 dnl # Some distros put the headers in ncursesw/, some don't
967 found_ncurses_h=no
968 for f in /usr/include/ncurses.h /usr/include/ncursesw/ncurses.h
969 do
970 AC_CHECK_HEADER($f,[
971 AC_MSG_CHECKING([if $f supports wide characters])
972 AC_TRY_COMPILE([
973 #define _XOPEN_SOURCE_EXTENDED
974 #include <$f>
975 ], [
976 #ifndef get_wch
977 # error get_wch not found!
978 #endif
979 ], [
980 dir=`dirname $f`
981 if test x"$dir" != x"." ; then
982 GNT_CFLAGS="-I$dir/"
983 else
984 GNT_CFLAGS=""
985 fi
986
987 found_ncurses_h=yes
988 AC_MSG_RESULT([yes])
989 break
990 ], [
991 AC_MSG_RESULT([no])
992 ])
993 ])
994 done
995
996 LIBS="$LIBS_save"
997
998 if test x"$found_ncurses_h" = x"no" ; then
999 GNT_LIBS=""
1000 GNT_CFLAGS=""
1001 enable_gnt=no
1002 AC_MSG_RESULT([no])
1003 else
1004 AC_MSG_RESULT([yes])
1005 fi
1006 fi
1007
1008 AC_SUBST(GNT_LIBS)
1009 AC_SUBST(GNT_CFLAGS)
1010 AM_CONDITIONAL(ENABLE_GNT, test "x$enable_gnt" = "xyes")
1011
1012 AC_CHECK_FUNC(wcwidth, [AC_DEFINE([HAVE_WCWIDTH], [1], [Define to 1 if you have wcwidth function.])])
1013
1014 dnl #######################################################################
1015 dnl # Check for Mono support 997 dnl # Check for Mono support
1016 dnl ####################################################################### 998 dnl #######################################################################
1017 AC_ARG_ENABLE(mono, [AC_HELP_STRING([--enable-mono], [compile with Mono runtime support])], , enable_mono=no) 999 AC_ARG_ENABLE(mono, [AC_HELP_STRING([--enable-mono], [compile with Mono runtime support])], , enable_mono=no)
1018 if test x"$enable_mono" = x"yes" ; then 1000 if test x"$enable_mono" = x"yes" ; then
1019 AC_MSG_CHECKING(for Mono compile flags) 1001 AC_MSG_CHECKING(for Mono compile flags)
1052 AM_CONDITIONAL(USE_MONO, test x"$enable_mono" = x"yes") 1034 AM_CONDITIONAL(USE_MONO, test x"$enable_mono" = x"yes")
1053 1035
1054 dnl ####################################################################### 1036 dnl #######################################################################
1055 dnl # Check for Perl support 1037 dnl # Check for Perl support
1056 dnl ####################################################################### 1038 dnl #######################################################################
1039 AC_ARG_ENABLE(perl, [AC_HELP_STRING([--disable-perl], [compile without perl scripting])], , enable_perl=yes)
1040
1057 if test "$enable_plugins" = no ; then 1041 if test "$enable_plugins" = no ; then
1058 enable_perl=no 1042 enable_perl=no
1059 fi 1043 fi
1060 1044
1061 if test "$enable_perl" = yes ; then 1045 if test "$enable_perl" = yes ; then
1566 fi 1550 fi
1567 1551
1568 dnl ####################################################################### 1552 dnl #######################################################################
1569 dnl # Check for Tcl 1553 dnl # Check for Tcl
1570 dnl ####################################################################### 1554 dnl #######################################################################
1555 AC_ARG_ENABLE(tcl, [AC_HELP_STRING([--disable-tcl],
1556 [compile without Tcl scripting])], enable_tcl="no", enable_tcl="yes")
1557 AC_ARG_WITH(tclconfig, [AC_HELP_STRING([--with-tclconfig=DIR],
1558 [directory containing tclConfig.sh])])
1559
1571 if test "$enable_plugins" = no; then 1560 if test "$enable_plugins" = no; then
1572 enable_tcl=no 1561 enable_tcl=no
1573 fi 1562 fi
1574 1563
1575 if test "$enable_tcl" = yes; then 1564 if test "$enable_tcl" = yes; then
1630 fi 1619 fi
1631 1620
1632 dnl ####################################################################### 1621 dnl #######################################################################
1633 dnl # Check for Tk 1622 dnl # Check for Tk
1634 dnl ####################################################################### 1623 dnl #######################################################################
1624 AC_ARG_ENABLE(tk, [AC_HELP_STRING([--disable-tk],
1625 [compile without Tcl support for Tk])], enable_tk="no", enable_tk="yes")
1626 AC_ARG_WITH(tkconfig, [AC_HELP_STRING([--with-tkconfig=DIR],
1627 [directory containing tkConfig.sh])])
1628
1635 if test "$enable_tcl" = yes -a "$enable_tk" = yes; then 1629 if test "$enable_tcl" = yes -a "$enable_tk" = yes; then
1636 AC_MSG_CHECKING([for tkConfig.sh]) 1630 AC_MSG_CHECKING([for tkConfig.sh])
1637 TKCONFIG=no 1631 TKCONFIG=no
1638 TKCONFIGDIRS="/usr/lib \ 1632 TKCONFIGDIRS="/usr/lib \
1639 /usr/lib64 \ 1633 /usr/lib64 \
1687 AC_SUBST(LDADD) 1681 AC_SUBST(LDADD)
1688 AC_SUBST(LIBS) 1682 AC_SUBST(LIBS)
1689 1683
1690 if test "x$enable_plugins" = "xyes" ; then 1684 if test "x$enable_plugins" = "xyes" ; then
1691 AC_DEFINE(GAIM_PLUGINS, 1, [Define if plugins are enabled.]) 1685 AC_DEFINE(GAIM_PLUGINS, 1, [Define if plugins are enabled.])
1692 AM_CONDITIONAL(PLUGINS, test "x$enable_plugins" = "xyes") 1686 AM_CONDITIONAL(PLUGINS, true)
1693 else 1687 else
1694 AM_CONDITIONAL(PLUGINS, false) 1688 AM_CONDITIONAL(PLUGINS, false)
1695 enable_plugins=no
1696 enable_prpls=no
1697 fi
1698
1699 if test "x$enable_prpls" = "xyes" ; then
1700 AM_CONDITIONAL(PRPLS, test "x$enable_plugins" = "xyes")
1701 else
1702 AM_CONDITIONAL(PRPLS, false)
1703 enable_prpls=no
1704 fi 1689 fi
1705 1690
1706 dnl ####################################################################### 1691 dnl #######################################################################
1707 dnl # Check for Cyrus-SASL (for Jabber) 1692 dnl # Check for Cyrus-SASL (for Jabber)
1708 dnl ####################################################################### 1693 dnl #######################################################################
1800 AC_VAR_TIMEZONE_EXTERNALS 1785 AC_VAR_TIMEZONE_EXTERNALS
1801 1786
1802 dnl ####################################################################### 1787 dnl #######################################################################
1803 dnl # Check for Doxygen and dot (part of GraphViz) 1788 dnl # Check for Doxygen and dot (part of GraphViz)
1804 dnl ####################################################################### 1789 dnl #######################################################################
1805 AC_ARG_ENABLE(doxygen, [AC_HELP_STRING([--enable-doxygen], [enable documentation with doxygen])],,enable_doxygen=yes) 1790 AC_ARG_ENABLE(doxygen,
1806 AC_ARG_ENABLE(dot, [AC_HELP_STRING([--enable-dot], [enable graphs in doxygen via 'dot'])],,enable_dot=yes) 1791 [AC_HELP_STRING([--disable-doxygen],
1792 [enable documentation with doxygen])],
1793 enable_doxygen="no", enable_doxygen="yes")
1794 AC_ARG_ENABLE(dot,
1795 [AC_HELP_STRING([--enable-dot],
1796 [enable graphs in doxygen via 'dot'])],
1797 enable_dot="no", enable_dot="yes")
1807 1798
1808 if test "x$enable_doxygen" = xyes; then 1799 if test "x$enable_doxygen" = xyes; then
1809 AC_CHECK_PROG(DOXYGEN, doxygen, true, false) 1800 AC_CHECK_PROG(DOXYGEN, doxygen, true, false)
1810 if test $DOXYGEN = false; then 1801 if test $DOXYGEN = false; then
1811 AC_MSG_WARN([*** doxygen not found, docs will not be available]) 1802 AC_MSG_WARN([*** Doxygen not found, docs will not be available])
1812 enable_doxygen=no 1803 enable_doxygen="no"
1813 else 1804 else
1814 AC_DEFINE_UNQUOTED(HAVE_DOXYGEN, 1, [whether or not we have doxygen]) 1805 AC_DEFINE_UNQUOTED(HAVE_DOXYGEN, 1, [whether or not we have doxygen])
1815 1806
1816 if test "x$enable_dot" = xyes; then 1807 if test "x$enable_dot" = "xyes"; then
1817 AC_CHECK_PROG(DOT, dot, true, false) 1808 AC_CHECK_PROG(DOT, dot, true, false)
1818 1809
1819 if test $DOT = false; then 1810 if test $DOT = false; then
1820 enable_dot="no"; 1811 enable_dot="no";
1821 AC_MSG_WARN([*** dot not found, graphs will not be available]) 1812 AC_MSG_WARN([*** GraphViz dot not found, docs will not have graphs])
1822 else 1813 else
1823 AC_DEFINE_UNQUOTED(HAVE_DOT, 1, [whether or not we have dot]) 1814 AC_DEFINE_UNQUOTED(HAVE_DOT, 1, [whether or not we have dot])
1824 fi 1815 fi
1825 else
1826 AC_MSG_WARN([*** dot not found, graphs will not be available])
1827 fi 1816 fi
1828 fi 1817 fi
1829 else 1818 else
1830 enable_dot="no" 1819 enable_dot="no"
1831 fi 1820 fi
1832 1821
1833 if test "x$enable_doxygen" = xyes; then
1834 AM_CONDITIONAL(HAVE_DOXYGEN, true)
1835 else
1836 AM_CONDITIONAL(HAVE_DOXYGEN, false)
1837 fi
1838
1839 AC_SUBST(enable_doxygen) 1822 AC_SUBST(enable_doxygen)
1840 AC_SUBST(enable_dot) 1823 AC_SUBST(enable_dot)
1824 AM_CONDITIONAL(HAVE_DOXYGEN, test "x$enable_doxygen" = "xyes")
1841 1825
1842 AC_CONFIG_COMMANDS_PRE([ 1826 AC_CONFIG_COMMANDS_PRE([
1843 if test -e VERSION; then 1827 if test -e VERSION; then
1844 cp -p VERSION VERSION.ac-save 1828 cp -p VERSION VERSION.ac-save
1845 fi 1829 fi
1911 1895
1912 echo 1896 echo
1913 echo $PACKAGE $VERSION 1897 echo $PACKAGE $VERSION
1914 1898
1915 echo 1899 echo
1916 echo Build Protocol Plugins........ : $enable_prpls 1900 echo Build GTK+ 2.x UI............. : $enable_gtkui
1901 echo Build console UI.............. : $enable_console
1902 echo
1903 echo Protocols to build dynamically : $DYNAMIC_PRPLS
1917 echo Protocols to link statically.. : $STATIC_PRPLS 1904 echo Protocols to link statically.. : $STATIC_PRPLS
1918 echo Protocols to build dynamically : $DYNAMIC_PRPLS
1919 echo
1920 echo Build with GTK+ 2.x UI........ : $enable_gtk
1921 echo Build with GNT Console UI..... : $enable_gnt
1922 echo SSL Library/Libraries......... : $msg_ssl
1923 echo 1905 echo
1924 echo Build with GStreamer support.. : $enable_gst 1906 echo Build with GStreamer support.. : $enable_gst
1925 echo Build with Plugin support..... : $enable_plugins 1907 echo Build with DBUS support....... : $enable_dbus
1908 if test "x$enable_dbus" = "xyes" ; then
1909 eval eval echo DBUS servies directory........ : $DBUS_SERVICES_DIR
1910 fi
1911 echo SSL Library/Libraries......... : $msg_ssl
1912 echo Build with Cyrus SASL support. : $enable_cyrus_sasl
1913 echo Use kerberos 4 with zephyr.... : $kerberos
1914 echo Use external libzephyr........ : $zephyr
1915 echo Has you....................... : yes
1916 echo
1917 echo Use XScreenSaver Extension.... : $enable_screensaver
1918 echo Use X Session Management...... : $enable_sm
1919 echo Use startup notification...... : $enable_startup_notification
1920 echo Build with GtkSpell support... : $enable_gtkspell
1921 echo
1922 echo Build with plugin support..... : $enable_plugins
1926 echo Build with Mono support....... : $enable_mono 1923 echo Build with Mono support....... : $enable_mono
1927 echo Build with Perl support....... : $enable_perl 1924 echo Build with Perl support....... : $enable_perl
1928 echo Build with Tcl support........ : $enable_tcl 1925 echo Build with Tcl support........ : $enable_tcl
1929 echo Build with Tk support......... : $enable_tk 1926 echo Build with Tk support......... : $enable_tk
1930 echo Build with GtkSpell support... : $enable_gtkspell
1931 echo Build with DBUS support....... : $enable_dbus
1932 if test "x$enable_dbus" = "xyes" ; then
1933 eval eval echo DBUS servies directory........ : $DBUS_SERVICES_DIR
1934 fi
1935 echo Build with Cyrus SASL support. : $enable_cyrus_sasl
1936 echo Has you....................... : yes
1937 echo
1938 echo Use kerberos 4 with zephyr.... : $kerberos
1939 echo Use external libzephyr........ : $zephyr
1940 echo
1941 echo Use XScreenSaver Extension.... : $enable_screensaver
1942 echo Use X Session Management...... : $enable_sm
1943 echo Use startup notification...... : $enable_startup_notification
1944 echo 1927 echo
1945 echo Print debugging messages...... : $enable_debug 1928 echo Print debugging messages...... : $enable_debug
1946 echo Assertions are fatal.......... : $enable_fatal_asserts 1929 echo Assertions are fatal.......... : $enable_fatal_asserts
1947 echo 1930 echo
1948 eval eval echo Gaim will be installed in $bindir. 1931 eval eval echo Gaim will be installed in $bindir.