diff options
| author | Michael Olson | 2008-01-23 03:43:32 +0000 |
|---|---|---|
| committer | Michael Olson | 2008-01-23 03:43:32 +0000 |
| commit | 8b1de1b56a34249a9b948ee7f28d3a0aefbb38be (patch) | |
| tree | 5c355eb74413f68cf2cb901015418e9ff875ab72 | |
| parent | dfbe40f2145a3df3b4296aaefa3456bb46d19a3b (diff) | |
| download | emacs-8b1de1b56a34249a9b948ee7f28d3a0aefbb38be.tar.gz emacs-8b1de1b56a34249a9b948ee7f28d3a0aefbb38be.zip | |
Rename EMACS_ARG_Y to OPTION_DEFAULT_OFF, and EMACS_ARG_N to OPTION_DEFAULT_ON.
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | configure.in | 124 |
2 files changed, 73 insertions, 58 deletions
| @@ -1,3 +1,10 @@ | |||
| 1 | 2008-01-23 Tom Tromey <tromey@redhat.com> | ||
| 2 | |||
| 3 | * configure.in (OPTION_DEFAULT_ON, OPTION_DEFAULT_OFF): New | ||
| 4 | macros. | ||
| 5 | (EMACS_ARG_Y, EMACS_ARG_N): Remove. | ||
| 6 | Update all users. | ||
| 7 | |||
| 1 | 2008-01-21 Dan Nicolaescu <dann@ics.uci.edu> | 8 | 2008-01-21 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 9 | ||
| 3 | * config.guess, config.sub: Updated from master source. | 10 | * config.guess, config.sub: Updated from master source. |
diff --git a/configure.in b/configure.in index 00b219db21e..be7f5d0fed1 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -43,47 +43,63 @@ gamedir='${localstatedir}/games/emacs' | |||
| 43 | 43 | ||
| 44 | gameuser=games | 44 | gameuser=games |
| 45 | 45 | ||
| 46 | dnl Autoconf is so much less fun under VMS, maybe | 46 | dnl OPTION_DEFAULT_OFF(NAME, HELP-STRING) |
| 47 | dnl because everything is less fun under VMS. --ttn | 47 | dnl Create a new --with option that defaults to being disabled. |
| 48 | AC_DEFUN([EMACS_ARG_Y],[dnl | 48 | dnl NAME is the base name of the option. The shell variable with_NAME |
| 49 | AC_ARG_WITH([$1],[AS_HELP_STRING([--with-$1],[$2])],[$3],[$4])dnl | 49 | dnl will be set to either the user's value (if the option is |
| 50 | dnl specified; 'yes' for a plain --with-NAME) or to 'no' (if the | ||
| 51 | dnl option is not specified). Note that the shell variable name is | ||
| 52 | dnl constructed as autoconf does, by replacing non-alphanumeric | ||
| 53 | dnl characters with "_". | ||
| 54 | dnl HELP-STRING is the help text for the option. | ||
| 55 | AC_DEFUN([OPTION_DEFAULT_OFF], [dnl | ||
| 56 | AC_ARG_WITH([$1],[AS_HELP_STRING([--with-$1],[$2])],[],[dnl | ||
| 57 | m4_bpatsubst([with_$1], [[^0-9a-z]], [_])=no])dnl | ||
| 50 | ])dnl | 58 | ])dnl |
| 51 | AC_DEFUN([EMACS_ARG_N],[dnl | 59 | |
| 52 | AC_ARG_WITH([$1],[AS_HELP_STRING([--without-$1],[$2])],[$3],[$4])dnl | 60 | dnl OPTION_DEFAULT_ON(NAME, HELP-STRING) |
| 61 | dnl Create a new --with option that defaults to being enabled. NAME | ||
| 62 | dnl is the base name of the option. The shell variable with_NAME | ||
| 63 | dnl will be set either to 'no' (for a plain --without-NAME) or to | ||
| 64 | dnl 'yes' (if the option is not specified). Note that the shell | ||
| 65 | dnl variable name is constructed as autoconf does, by replacing | ||
| 66 | dnl non-alphanumeric characters with "_". | ||
| 67 | dnl HELP-STRING is the help text for the option. | ||
| 68 | AC_DEFUN([OPTION_DEFAULT_ON], [dnl | ||
| 69 | AC_ARG_WITH([$1],[AS_HELP_STRING([--without-$1],[$2])],[],[dnl | ||
| 70 | m4_bpatsubst([with_$1], [[^0-9a-z]], [_])=yes])dnl | ||
| 53 | ])dnl | 71 | ])dnl |
| 54 | 72 | ||
| 55 | EMACS_ARG_N([gcc],[don't use GCC to compile Emacs if GCC is found]) | 73 | OPTION_DEFAULT_ON([gcc],[don't use GCC to compile Emacs if GCC is found]) |
| 56 | 74 | ||
| 57 | EMACS_ARG_N([pop],[don't support POP mail retrieval with movemail], | 75 | OPTION_DEFAULT_ON([pop],[don't support POP mail retrieval with movemail]) |
| 58 | [if test "$withval" = yes; then | 76 | if test "$with_pop" = yes; then |
| 59 | AC_DEFINE(MAIL_USE_POP) | 77 | AC_DEFINE(MAIL_USE_POP) |
| 60 | else : | 78 | fi |
| 61 | fi], | ||
| 62 | AC_DEFINE(MAIL_USE_POP)) | ||
| 63 | AH_TEMPLATE(MAIL_USE_POP, [Define to support POP mail retrieval.])dnl | 79 | AH_TEMPLATE(MAIL_USE_POP, [Define to support POP mail retrieval.])dnl |
| 64 | 80 | ||
| 65 | EMACS_ARG_Y([kerberos],[support Kerberos-authenticated POP], | 81 | OPTION_DEFAULT_OFF([kerberos],[support Kerberos-authenticated POP]) |
| 66 | [if test "$withval" = yes; then | 82 | if test "$with_kerberos" = yes; then |
| 67 | AC_DEFINE(KERBEROS) | 83 | AC_DEFINE(KERBEROS) |
| 68 | fi]) | 84 | fi |
| 69 | AH_TEMPLATE(KERBEROS, | 85 | AH_TEMPLATE(KERBEROS, |
| 70 | [Define to support Kerberos-authenticated POP mail retrieval.])dnl | 86 | [Define to support Kerberos-authenticated POP mail retrieval.])dnl |
| 71 | 87 | ||
| 72 | EMACS_ARG_Y([kerberos5],[support Kerberos version 5 authenticated POP], | 88 | OPTION_DEFAULT_OFF([kerberos5],[support Kerberos version 5 authenticated POP]) |
| 73 | [if test "${with_kerberos5+set}" = set; then | 89 | if test "${with_kerberos5}" = yes; then |
| 74 | if test "${with_kerberos+set}" != set; then | 90 | if test "${with_kerberos}" != yes; then |
| 75 | with_kerberos=yes | 91 | with_kerberos=yes |
| 76 | AC_DEFINE(KERBEROS) | 92 | AC_DEFINE(KERBEROS) |
| 77 | fi | 93 | fi |
| 78 | AC_DEFINE(KERBEROS5, 1, [Define to use Kerberos 5 instead of Kerberos 4.]) | 94 | AC_DEFINE(KERBEROS5, 1, [Define to use Kerberos 5 instead of Kerberos 4.]) |
| 79 | fi]) | 95 | fi |
| 80 | 96 | ||
| 81 | EMACS_ARG_Y([hesiod],[support Hesiod to get the POP server host], | 97 | OPTION_DEFAULT_OFF([hesiod],[support Hesiod to get the POP server host]) |
| 82 | [if test "$withval" = yes; then | 98 | if test "$with_hesiod" = yes; then |
| 83 | AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.]) | 99 | AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.]) |
| 84 | fi]) | 100 | fi |
| 85 | 101 | ||
| 86 | EMACS_ARG_N([sound],[don't compile with sound support]) | 102 | OPTION_DEFAULT_ON([sound],[don't compile with sound support]) |
| 87 | 103 | ||
| 88 | dnl This should be the last --with option, because --with-x is | 104 | dnl This should be the last --with option, because --with-x is |
| 89 | dnl added later on when we find the path of X, and it's best to | 105 | dnl added later on when we find the path of X, and it's best to |
| @@ -106,20 +122,28 @@ this option's value should be `yes', `no', `lucid', `athena', `motif' or `gtk'. | |||
| 106 | with_x_toolkit=$val | 122 | with_x_toolkit=$val |
| 107 | ]) | 123 | ]) |
| 108 | 124 | ||
| 109 | EMACS_ARG_Y([xpm],[use -lXpm for displaying XPM images]) | 125 | OPTION_DEFAULT_OFF([xpm],[use -lXpm for displaying XPM images]) |
| 110 | EMACS_ARG_Y([jpeg],[use -ljpeg for displaying JPEG images]) | 126 | OPTION_DEFAULT_OFF([jpeg],[use -ljpeg for displaying JPEG images]) |
| 111 | EMACS_ARG_Y([tiff],[use -ltiff for displaying TIFF images]) | 127 | OPTION_DEFAULT_OFF([tiff],[use -ltiff for displaying TIFF images]) |
| 112 | EMACS_ARG_Y([gif],[use -lgif (or -lungif) for displaying GIF images]) | 128 | OPTION_DEFAULT_OFF([gif],[use -lgif (or -lungif) for displaying GIF images]) |
| 113 | EMACS_ARG_Y([png],[use -lpng for displaying PNG images]) | 129 | OPTION_DEFAULT_OFF([png],[use -lpng for displaying PNG images]) |
| 114 | EMACS_ARG_Y([gpm],[use -lgpm for mouse support on a GNU/Linux console]) | 130 | OPTION_DEFAULT_OFF([gpm],[use -lgpm for mouse support on a GNU/Linux console]) |
| 115 | EMACS_ARG_Y([rsvg],[use -lrsvg-2 for displaying SVG images]) | 131 | OPTION_DEFAULT_OFF([rsvg],[use -lrsvg-2 for displaying SVG images]) |
| 116 | EMACS_ARG_Y([gtk],[use GTK (same as --with-x-toolkit=gtk)]) | 132 | OPTION_DEFAULT_OFF([gtk],[use GTK (same as --with-x-toolkit=gtk)]) |
| 117 | EMACS_ARG_Y([pkg-config-prog],[Path to pkg-config for finding GTK and librsvg]) | 133 | OPTION_DEFAULT_ON([toolkit-scroll-bars],[don't use Motif or Xaw3d scroll bars]) |
| 118 | EMACS_ARG_N([toolkit-scroll-bars],[don't use Motif or Xaw3d scroll bars]) | 134 | OPTION_DEFAULT_ON([xaw3d],[don't use Xaw3d]) |
| 119 | EMACS_ARG_N([xaw3d],[don't use Xaw3d]) | 135 | OPTION_DEFAULT_ON([xim],[don't use X11 XIM]) |
| 120 | EMACS_ARG_N([xim],[don't use X11 XIM]) | 136 | OPTION_DEFAULT_ON([carbon],[don't use Carbon GUI on Mac OS X]) |
| 121 | EMACS_ARG_N([carbon],[don't use Carbon GUI on Mac OS X]) | 137 | OPTION_DEFAULT_ON([dbus],[use D-Bus]) |
| 122 | EMACS_ARG_Y([dbus],[use D-Bus]) | 138 | |
| 139 | AC_ARG_WITH([pkg-config-prog],dnl | ||
| 140 | [AS_HELP_STRING([--with-pkg-config-prog=PATH], | ||
| 141 | [Path to pkg-config for finding GTK and librsvg])]) | ||
| 142 | if test "X${with_pkg_config_prog}" != X; then | ||
| 143 | if test "${with_pkg_config_prog}" != yes; then | ||
| 144 | PKG_CONFIG="${with_pkg_config_prog}" | ||
| 145 | fi | ||
| 146 | fi | ||
| 123 | 147 | ||
| 124 | AC_ARG_ENABLE(carbon-app, | 148 | AC_ARG_ENABLE(carbon-app, |
| 125 | [AS_HELP_STRING([--enable-carbon-app@<:@=DIR@:>@], | 149 | [AS_HELP_STRING([--enable-carbon-app@<:@=DIR@:>@], |
| @@ -1089,9 +1113,7 @@ dnl also defines GSTUFF_PKG_ERRORS on error | |||
| 1089 | AC_DEFUN([PKG_CHECK_MODULES], [ | 1113 | AC_DEFUN([PKG_CHECK_MODULES], [ |
| 1090 | succeeded=no | 1114 | succeeded=no |
| 1091 | 1115 | ||
| 1092 | if test -z "$PKG_CONFIG"; then | 1116 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
| 1093 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | ||
| 1094 | fi | ||
| 1095 | 1117 | ||
| 1096 | if test "$PKG_CONFIG" = "no" ; then | 1118 | if test "$PKG_CONFIG" = "no" ; then |
| 1097 | ifelse([$4], , [AC_MSG_ERROR([ | 1119 | ifelse([$4], , [AC_MSG_ERROR([ |
| @@ -1147,10 +1169,6 @@ if test "${with_sound}" != "no"; then | |||
| 1147 | 1169 | ||
| 1148 | ALSA_REQUIRED=1.0.0 | 1170 | ALSA_REQUIRED=1.0.0 |
| 1149 | ALSA_MODULES="alsa >= $ALSA_REQUIRED" | 1171 | ALSA_MODULES="alsa >= $ALSA_REQUIRED" |
| 1150 | dnl Check if --with-pkg-config-prog has been given. | ||
| 1151 | if test "X${with_pkg_config_prog}" != X; then | ||
| 1152 | PKG_CONFIG="${with_pkg_config_prog}" | ||
| 1153 | fi | ||
| 1154 | PKG_CHECK_MODULES(ALSA, $ALSA_MODULES, HAVE_ALSA=yes, HAVE_ALSA=no) | 1172 | PKG_CHECK_MODULES(ALSA, $ALSA_MODULES, HAVE_ALSA=yes, HAVE_ALSA=no) |
| 1155 | if test $HAVE_ALSA = yes; then | 1173 | if test $HAVE_ALSA = yes; then |
| 1156 | SAVE_CFLAGS="$CFLAGS" | 1174 | SAVE_CFLAGS="$CFLAGS" |
| @@ -1639,11 +1657,6 @@ fi | |||
| 1639 | HAVE_RSVG=no | 1657 | HAVE_RSVG=no |
| 1640 | if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then | 1658 | if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then |
| 1641 | if test "${with_rsvg}" != "no"; then | 1659 | if test "${with_rsvg}" != "no"; then |
| 1642 | dnl Check if `--with-pkg-config-prog' has been given. | ||
| 1643 | if test "X${with_pkg_config_prog}" != X; then | ||
| 1644 | PKG_CONFIG="${with_pkg_config_prog}" | ||
| 1645 | fi | ||
| 1646 | |||
| 1647 | RSVG_REQUIRED=2.0.0 | 1660 | RSVG_REQUIRED=2.0.0 |
| 1648 | RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED" | 1661 | RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED" |
| 1649 | 1662 | ||
| @@ -1674,10 +1687,6 @@ if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \ | |||
| 1674 | GTK_REQUIRED=2.6 | 1687 | GTK_REQUIRED=2.6 |
| 1675 | GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" | 1688 | GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" |
| 1676 | 1689 | ||
| 1677 | dnl Check if --with-pkg-config-prog has been given. | ||
| 1678 | if test "X${with_pkg_config_prog}" != X; then | ||
| 1679 | PKG_CONFIG="${with_pkg_config_prog}" | ||
| 1680 | fi | ||
| 1681 | dnl Checks for libraries. | 1690 | dnl Checks for libraries. |
| 1682 | PKG_CHECK_MODULES(GTK, $GTK_MODULES, pkg_check_gtk=yes, pkg_check_gtk=no) | 1691 | PKG_CHECK_MODULES(GTK, $GTK_MODULES, pkg_check_gtk=yes, pkg_check_gtk=no) |
| 1683 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then | 1692 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then |
| @@ -1765,21 +1774,20 @@ dnl D-Bus has been tested under GNU/Linux only. Must be adapted for | |||
| 1765 | dnl other platforms. Support for higher D-Bus versions but 1.0 is | 1774 | dnl other platforms. Support for higher D-Bus versions but 1.0 is |
| 1766 | dnl also not configured. | 1775 | dnl also not configured. |
| 1767 | HAVE_DBUS=no | 1776 | HAVE_DBUS=no |
| 1777 | AC_MSG_CHECKING([maybe dbus]) | ||
| 1768 | if test "${with_dbus}" = "yes"; then | 1778 | if test "${with_dbus}" = "yes"; then |
| 1769 | PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.0, HAVE_DBUS=yes, HAVE_DBUS=no) | 1779 | PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.0, HAVE_DBUS=yes, HAVE_DBUS=no) |
| 1770 | if test "$HAVE_DBUS" = yes; then | 1780 | if test "$HAVE_DBUS" = yes; then |
| 1771 | AC_DEFINE(HAVE_DBUS, 1, [Define to 1 if using D-Bus.]) | 1781 | AC_DEFINE(HAVE_DBUS, 1, [Define to 1 if using D-Bus.]) |
| 1772 | fi | 1782 | fi |
| 1783 | AC_MSG_RESULT($HAVE_DBUS) | ||
| 1784 | else | ||
| 1785 | AC_MSG_RESULT(no bub) | ||
| 1773 | fi | 1786 | fi |
| 1774 | 1787 | ||
| 1775 | ### Link with -lXft if available to work around a bug. | 1788 | ### Link with -lXft if available to work around a bug. |
| 1776 | HAVE_XFT=maybe | 1789 | HAVE_XFT=maybe |
| 1777 | if test "${HAVE_GTK}" = "yes"; then | 1790 | if test "${HAVE_GTK}" = "yes"; then |
| 1778 | dnl Check if --with-pkg-config-prog has been given. | ||
| 1779 | if test "X${with_pkg_config_prog}" != X; then | ||
| 1780 | PKG_CONFIG="${with_pkg_config_prog}" | ||
| 1781 | fi | ||
| 1782 | |||
| 1783 | PKG_CHECK_MODULES(XFT, xft >= 0.13.0, , HAVE_XFT=no) | 1791 | PKG_CHECK_MODULES(XFT, xft >= 0.13.0, , HAVE_XFT=no) |
| 1784 | if test "$HAVE_XFT" != no; then | 1792 | if test "$HAVE_XFT" != no; then |
| 1785 | OLD_CFLAGS="$CPPFLAGS" | 1793 | OLD_CFLAGS="$CPPFLAGS" |