comparison configure.in @ 108058:5e867bd030c8

Merge from mainline.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Wed, 21 Apr 2010 23:03:28 +0000
parents 8ff86e76b50f
children 98d289f97679
comparison
equal deleted inserted replaced
108057:92bb32f41a3a 108058:5e867bd030c8
159 OPTION_DEFAULT_OFF([ns],[use nextstep (Cocoa or GNUstep) windowing system]) 159 OPTION_DEFAULT_OFF([ns],[use nextstep (Cocoa or GNUstep) windowing system])
160 160
161 OPTION_DEFAULT_ON([gpm],[don't use -lgpm for mouse support on a GNU/Linux console]) 161 OPTION_DEFAULT_ON([gpm],[don't use -lgpm for mouse support on a GNU/Linux console])
162 OPTION_DEFAULT_ON([dbus],[don't compile with D-Bus support]) 162 OPTION_DEFAULT_ON([dbus],[don't compile with D-Bus support])
163 OPTION_DEFAULT_ON([gconf],[don't compile with GConf support]) 163 OPTION_DEFAULT_ON([gconf],[don't compile with GConf support])
164 OPTION_DEFAULT_ON([selinux],[don't compile with SELinux support])
164 165
165 ## For the times when you want to build Emacs but don't have 166 ## For the times when you want to build Emacs but don't have
166 ## a suitable makeinfo, and can live without the manuals. 167 ## a suitable makeinfo, and can live without the manuals.
167 dnl http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01844.html 168 dnl http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01844.html
168 OPTION_DEFAULT_ON([makeinfo],[don't require makeinfo for building manuals]) 169 OPTION_DEFAULT_ON([makeinfo],[don't require makeinfo for building manuals])
780 ## We use the presence of $srcdir/info/emacs to distinguish a release, 781 ## We use the presence of $srcdir/info/emacs to distinguish a release,
781 ## with pre-built manuals, from a Bazaar checkout. 782 ## with pre-built manuals, from a Bazaar checkout.
782 if test "$MAKEINFO" = "no"; then 783 if test "$MAKEINFO" = "no"; then
783 if test "x${with_makeinfo}" = "xno"; then 784 if test "x${with_makeinfo}" = "xno"; then
784 MAKEINFO=off 785 MAKEINFO=off
785 elif ! test -e $srcdir/info/emacs; then 786 elif test ! -e $srcdir/info/emacs; then
786 AC_MSG_ERROR( [You do not seem to have makeinfo >= 4.6, and your 787 AC_MSG_ERROR( [You do not seem to have makeinfo >= 4.6, and your
787 source tree does not seem to have pre-built manuals in the `info' directory. 788 source tree does not seem to have pre-built manuals in the `info' directory.
788 Either install a suitable version of makeinfo, or re-run configure 789 Either install a suitable version of makeinfo, or re-run configure
789 with the `--without-makeinfo' option to build without the manuals.] ) 790 with the `--without-makeinfo' option to build without the manuals.] )
790 fi 791 fi
1609 AC_MSG_ERROR($GTK_PKG_ERRORS) 1610 AC_MSG_ERROR($GTK_PKG_ERRORS)
1610 fi 1611 fi
1611 fi 1612 fi
1612 1613
1613 1614
1615 GTK_OBJ=
1614 if test x"$pkg_check_gtk" = xyes; then 1616 if test x"$pkg_check_gtk" = xyes; then
1615 1617
1616 AC_SUBST(GTK_CFLAGS) 1618 AC_SUBST(GTK_CFLAGS)
1617 AC_SUBST(GTK_LIBS) 1619 AC_SUBST(GTK_LIBS)
1618 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" 1620 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
1626 AC_MSG_ERROR([Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?]); 1628 AC_MSG_ERROR([Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?]);
1627 fi 1629 fi
1628 else 1630 else
1629 HAVE_GTK=yes 1631 HAVE_GTK=yes
1630 AC_DEFINE(USE_GTK, 1, [Define to 1 if using GTK.]) 1632 AC_DEFINE(USE_GTK, 1, [Define to 1 if using GTK.])
1633 GTK_OBJ=gtkutil.o
1631 USE_X_TOOLKIT=none 1634 USE_X_TOOLKIT=none
1632 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then 1635 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
1633 : 1636 :
1634 else 1637 else
1635 AC_MSG_WARN([[Your version of Gtk+ will have problems with 1638 AC_MSG_WARN([[Your version of Gtk+ will have problems with
1639 sleep 3 1642 sleep 3
1640 fi 1643 fi
1641 fi 1644 fi
1642 1645
1643 fi 1646 fi
1647 AC_SUBST(GTK_OBJ)
1644 1648
1645 1649
1646 if test "${HAVE_GTK}" = "yes"; then 1650 if test "${HAVE_GTK}" = "yes"; then
1647 1651
1648 dnl GTK scrollbars resemble toolkit scrollbars a lot, so to avoid 1652 dnl GTK scrollbars resemble toolkit scrollbars a lot, so to avoid
1710 1714
1711 dnl D-Bus has been tested under GNU/Linux only. Must be adapted for 1715 dnl D-Bus has been tested under GNU/Linux only. Must be adapted for
1712 dnl other platforms. Support for higher D-Bus versions than 1.0 is 1716 dnl other platforms. Support for higher D-Bus versions than 1.0 is
1713 dnl also not configured. 1717 dnl also not configured.
1714 HAVE_DBUS=no 1718 HAVE_DBUS=no
1719 DBUS_OBJ=
1715 if test "${with_dbus}" = "yes"; then 1720 if test "${with_dbus}" = "yes"; then
1716 PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.0, HAVE_DBUS=yes, HAVE_DBUS=no) 1721 PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.0, HAVE_DBUS=yes, HAVE_DBUS=no)
1717 if test "$HAVE_DBUS" = yes; then 1722 if test "$HAVE_DBUS" = yes; then
1718 LIBS="$LIBS $DBUS_LIBS" 1723 LIBS="$LIBS $DBUS_LIBS"
1719 AC_DEFINE(HAVE_DBUS, 1, [Define to 1 if using D-Bus.]) 1724 AC_DEFINE(HAVE_DBUS, 1, [Define to 1 if using D-Bus.])
1720 AC_CHECK_FUNCS([dbus_watch_get_unix_fd]) 1725 AC_CHECK_FUNCS([dbus_watch_get_unix_fd])
1726 DBUS_OBJ=dbusbind.o
1721 fi 1727 fi
1722 fi 1728 fi
1729 AC_SUBST(DBUS_OBJ)
1723 1730
1724 dnl GConf has been tested under GNU/Linux only. 1731 dnl GConf has been tested under GNU/Linux only.
1725 dnl The version is really arbitrary, it is about the same age as Gtk+ 2.6. 1732 dnl The version is really arbitrary, it is about the same age as Gtk+ 2.6.
1726 HAVE_GCONF=no 1733 HAVE_GCONF=no
1727 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then 1734 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
1728 PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 2.13, HAVE_GCONF=yes, HAVE_GCONF=no) 1735 PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 2.13, HAVE_GCONF=yes, HAVE_GCONF=no)
1729 if test "$HAVE_GCONF" = yes; then 1736 if test "$HAVE_GCONF" = yes; then
1730 AC_DEFINE(HAVE_GCONF, 1, [Define to 1 if using GConf.]) 1737 AC_DEFINE(HAVE_GCONF, 1, [Define to 1 if using GConf.])
1731 fi 1738 fi
1732 fi 1739 fi
1740
1741 dnl SELinux is available for GNU/Linux only.
1742 HAVE_LIBSELINUX=no
1743 LIBSELINUX_LIBS=
1744 if test "${with_selinux}" = "yes"; then
1745 AC_CHECK_LIB([selinux], [lgetfilecon], HAVE_LIBSELINUX=yes, HAVE_LIBSELINUX=no)
1746 if test "$HAVE_LIBSELINUX" = yes; then
1747 AC_DEFINE(HAVE_LIBSELINUX, 1, [Define to 1 if using SELinux.])
1748 LIBSELINUX_LIBS=-lselinux
1749 fi
1750 fi
1751 AC_SUBST(LIBSELINUX_LIBS)
1733 1752
1734 dnl Do not put whitespace before the #include statements below. 1753 dnl Do not put whitespace before the #include statements below.
1735 dnl Older compilers (eg sunos4 cc) choke on it. 1754 dnl Older compilers (eg sunos4 cc) choke on it.
1736 HAVE_XAW3D=no 1755 HAVE_XAW3D=no
1737 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then 1756 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
2228 fi 2247 fi
2229 2248
2230 2249
2231 ### Use session management (-lSM -lICE) if available 2250 ### Use session management (-lSM -lICE) if available
2232 HAVE_X_SM=no 2251 HAVE_X_SM=no
2252 LIBXSM=
2233 if test "${HAVE_X11}" = "yes"; then 2253 if test "${HAVE_X11}" = "yes"; then
2234 AC_CHECK_HEADER(X11/SM/SMlib.h, 2254 AC_CHECK_HEADER(X11/SM/SMlib.h,
2235 [AC_CHECK_LIB(SM, SmcOpenConnection, HAVE_X_SM=yes, , -lICE)]) 2255 [AC_CHECK_LIB(SM, SmcOpenConnection, HAVE_X_SM=yes, , -lICE)])
2236 2256
2237 if test "${HAVE_X_SM}" = "yes"; then 2257 if test "${HAVE_X_SM}" = "yes"; then
2238 AC_DEFINE(HAVE_X_SM, 1, [Define to 1 if you have the SM library (-lSM).]) 2258 AC_DEFINE(HAVE_X_SM, 1, [Define to 1 if you have the SM library (-lSM).])
2259 LIBXSM="-lSM -lICE"
2239 case "$LIBS" in 2260 case "$LIBS" in
2240 *-lSM*) ;; 2261 *-lSM*) ;;
2241 *) LIBS="-lSM -lICE $LIBS" ;; 2262 *) LIBS="$LIBXSM $LIBS" ;;
2242 esac 2263 esac
2243 fi 2264 fi
2244 fi 2265 fi
2266 AC_SUBST(LIBXSM)
2245 2267
2246 # If netdb.h doesn't declare h_errno, we must declare it by hand. 2268 # If netdb.h doesn't declare h_errno, we must declare it by hand.
2247 AC_CACHE_CHECK(whether netdb declares h_errno, 2269 AC_CACHE_CHECK(whether netdb declares h_errno,
2248 emacs_cv_netdb_declares_h_errno, 2270 emacs_cv_netdb_declares_h_errno,
2249 [AC_TRY_LINK([#include <netdb.h>], 2271 [AC_TRY_LINK([#include <netdb.h>],
2747 that your compiler can find on its own, you might want to add 2769 that your compiler can find on its own, you might want to add
2748 "-I/..." or something similar.]) 2770 "-I/..." or something similar.])
2749 AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC}, 2771 AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC},
2750 [Define to the unexec source file name.]) 2772 [Define to the unexec source file name.])
2751 2773
2774 XMENU_OBJ=
2775 XOBJ=
2752 if test "${HAVE_X_WINDOWS}" = "yes" ; then 2776 if test "${HAVE_X_WINDOWS}" = "yes" ; then
2753 AC_DEFINE(HAVE_X_WINDOWS, 1, 2777 AC_DEFINE(HAVE_X_WINDOWS, 1,
2754 [Define to 1 if you want to use the X window system.]) 2778 [Define to 1 if you want to use the X window system.])
2755 fi 2779 XMENU_OBJ=xmenu.o
2780 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
2781 fi
2782 AC_SUBST(XMENU_OBJ)
2783 AC_SUBST(XOBJ)
2784
2756 if test "${USE_X_TOOLKIT}" != "none" ; then 2785 if test "${USE_X_TOOLKIT}" != "none" ; then
2757 AC_DEFINE(USE_X_TOOLKIT, 1, [Define to 1 if using an X toolkit.]) 2786 AC_DEFINE(USE_X_TOOLKIT, 1, [Define to 1 if using an X toolkit.])
2758 if test "${USE_X_TOOLKIT}" = "LUCID"; then 2787 if test "${USE_X_TOOLKIT}" = "LUCID"; then
2759 AC_DEFINE(USE_LUCID, 1, [Define to 1 if using the Lucid X toolkit.]) 2788 AC_DEFINE(USE_LUCID, 1, [Define to 1 if using the Lucid X toolkit.])
2760 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then 2789 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
3081 echo " Does Emacs use -lpng? ${HAVE_PNG}" 3110 echo " Does Emacs use -lpng? ${HAVE_PNG}"
3082 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" 3111 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
3083 echo " Does Emacs use -lgpm? ${HAVE_GPM}" 3112 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
3084 echo " Does Emacs use -ldbus? ${HAVE_DBUS}" 3113 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
3085 echo " Does Emacs use -lgconf? ${HAVE_GCONF}" 3114 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
3115 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
3086 3116
3087 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}" 3117 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
3088 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}" 3118 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
3089 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}" 3119 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
3090 echo " Does Emacs use -lxft? ${HAVE_XFT}" 3120 echo " Does Emacs use -lxft? ${HAVE_XFT}"