aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThien-Thi Nguyen2007-09-02 08:25:00 +0000
committerThien-Thi Nguyen2007-09-02 08:25:00 +0000
commiteb11f5b8c16dfdb87fdbdabde0a368d49df2763b (patch)
tree2fae9da607017c479c78815e09824a731e192e75
parentccf89694943e68a42f0e9d60e38551eaf9b21765 (diff)
downloademacs-eb11f5b8c16dfdb87fdbdabde0a368d49df2763b.tar.gz
emacs-eb11f5b8c16dfdb87fdbdabde0a368d49df2763b.zip
(EMACS_ARG_Y, EMACS_ARG_N): New AC_DEFUNs.
Use them throughout in place of AC_ARG_WITH calls.
-rw-r--r--configure.in78
1 files changed, 36 insertions, 42 deletions
diff --git a/configure.in b/configure.in
index 4db05455ba8..c1c8c5cd0b9 100644
--- a/configure.in
+++ b/configure.in
@@ -42,25 +42,33 @@ gamedir='${localstatedir}/games/emacs'
42 42
43gameuser=games 43gameuser=games
44 44
45AC_ARG_WITH(gcc, 45dnl Autoconf is so much less fun under VMS, maybe
46[ --without-gcc don't use GCC to compile Emacs if GCC is found]) 46dnl because everything is less fun under VMS. --ttn
47AC_ARG_WITH(pop, 47AC_DEFUN([EMACS_ARG_Y],[dnl
48[ --without-pop don't support POP mail retrieval with movemail], 48AC_ARG_WITH([$1],[AS_HELP_STRING([--with-$1],[$2])],[$3],[$4])dnl
49])dnl
50AC_DEFUN([EMACS_ARG_N],[dnl
51AC_ARG_WITH([$1],[AS_HELP_STRING([--without-$1],[$2])],[$3],[$4])dnl
52])dnl
53
54EMACS_ARG_N([gcc],[don't use GCC to compile Emacs if GCC is found])
55
56EMACS_ARG_N([pop],[don't support POP mail retrieval with movemail],
49[if test "$withval" = yes; then 57[if test "$withval" = yes; then
50 AC_DEFINE(MAIL_USE_POP) 58 AC_DEFINE(MAIL_USE_POP)
51else : 59else :
52fi], 60fi],
53AC_DEFINE(MAIL_USE_POP)) 61AC_DEFINE(MAIL_USE_POP))
54AH_TEMPLATE(MAIL_USE_POP, [Define to support POP mail retrieval.])dnl 62AH_TEMPLATE(MAIL_USE_POP, [Define to support POP mail retrieval.])dnl
55AC_ARG_WITH(kerberos, 63
56[ --with-kerberos support Kerberos-authenticated POP], 64EMACS_ARG_Y([kerberos],[support Kerberos-authenticated POP],
57[if test "$withval" = yes; then 65[if test "$withval" = yes; then
58 AC_DEFINE(KERBEROS) 66 AC_DEFINE(KERBEROS)
59fi]) 67fi])
60AH_TEMPLATE(KERBEROS, 68AH_TEMPLATE(KERBEROS,
61 [Define to support Kerberos-authenticated POP mail retrieval.])dnl 69 [Define to support Kerberos-authenticated POP mail retrieval.])dnl
62AC_ARG_WITH(kerberos5, 70
63[ --with-kerberos5 support Kerberos version 5 authenticated POP], 71EMACS_ARG_Y([kerberos5],[support Kerberos version 5 authenticated POP],
64[if test "${with_kerberos5+set}" = set; then 72[if test "${with_kerberos5+set}" = set; then
65 if test "${with_kerberos+set}" != set; then 73 if test "${with_kerberos+set}" != set; then
66 with_kerberos=yes 74 with_kerberos=yes
@@ -68,21 +76,19 @@ AC_ARG_WITH(kerberos5,
68 fi 76 fi
69 AC_DEFINE(KERBEROS5, 1, [Define to use Kerberos 5 instead of Kerberos 4.]) 77 AC_DEFINE(KERBEROS5, 1, [Define to use Kerberos 5 instead of Kerberos 4.])
70fi]) 78fi])
71AC_ARG_WITH(hesiod, 79
72[ --with-hesiod support Hesiod to get the POP server host], 80EMACS_ARG_Y([hesiod],[support Hesiod to get the POP server host],
73[if test "$withval" = yes; then 81[if test "$withval" = yes; then
74 AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.]) 82 AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.])
75fi]) 83fi])
76 84
77AC_ARG_WITH(sound, 85EMACS_ARG_N([sound],[don't compile with sound support])
78[ --without-sound don't compile with sound support])
79 86
80dnl This should be the last --with option, because --with-x is 87dnl This should be the last --with option, because --with-x is
81dnl added later on when we find the path of X, and it's best to 88dnl added later on when we find the path of X, and it's best to
82dnl keep them together visually. 89dnl keep them together visually.
83AC_ARG_WITH(x-toolkit, 90AC_ARG_WITH([x-toolkit],[AS_HELP_STRING([--with-x-toolkit=KIT],
84[ --with-x-toolkit=KIT use an X toolkit 91 [use an X toolkit (KIT one of: yes, lucid, athena, motif, gtk, no)])],
85 (KIT = yes/lucid/athena/motif/gtk/no)],
86[ case "${withval}" in 92[ case "${withval}" in
87 y | ye | yes ) val=gtk ;; 93 y | ye | yes ) val=gtk ;;
88 n | no ) val=no ;; 94 n | no ) val=no ;;
@@ -98,33 +104,21 @@ this option's value should be `yes', `no', `lucid', `athena', `motif' or `gtk'.
98 esac 104 esac
99 with_x_toolkit=$val 105 with_x_toolkit=$val
100]) 106])
101AC_ARG_WITH(xpm, 107
102[ --with-xpm use -lXpm for displaying XPM images]) 108EMACS_ARG_Y([xpm],[use -lXpm for displaying XPM images])
103AC_ARG_WITH(jpeg, 109EMACS_ARG_Y([jpeg],[use -ljpeg for displaying JPEG images])
104[ --with-jpeg use -ljpeg for displaying JPEG images]) 110EMACS_ARG_Y([tiff],[use -ltiff for displaying TIFF images])
105AC_ARG_WITH(tiff, 111EMACS_ARG_Y([gif],[use -lgif (or -lungif) for displaying GIF images])
106[ --with-tiff use -ltiff for displaying TIFF images]) 112EMACS_ARG_Y([png],[use -lpng for displaying PNG images])
107AC_ARG_WITH(gif, 113EMACS_ARG_Y([gpm],[use -lgpm for mouse support on a GNU/Linux console])
108[ --with-gif use -lgif (or -lungif) for displaying GIF images]) 114EMACS_ARG_Y([rsvg],[use -lrsvg-2 for displaying SVG images])
109AC_ARG_WITH(png, 115EMACS_ARG_Y([gtk],[use GTK (same as --with-x-toolkit=gtk)])
110[ --with-png use -lpng for displaying PNG images]) 116EMACS_ARG_Y([pkg-config-prog],[Path to pkg-config for finding GTK and librsvg])
111AC_ARG_WITH(gpm, 117EMACS_ARG_N([toolkit-scroll-bars],[don't use Motif or Xaw3d scroll bars])
112[ --with-gpm use -lgpm for mouse support on a GNU/Linux console]) 118EMACS_ARG_N([xaw3d],[don't use Xaw3d])
113AC_ARG_WITH(rsvg, 119EMACS_ARG_N([xim],[don't use X11 XIM])
114[ --with-rsvg use -lrsvg-2 for displaying SVG images]) 120EMACS_ARG_N([carbon],[don't use Carbon GUI on Mac OS X])
115AC_ARG_WITH(gtk, 121
116[ --with-gtk use GTK (same as --with-x-toolkit=gtk)])
117AC_ARG_WITH(pkg-config-prog,
118[ --with-pkg-config-prog Path to pkg-config to use for finding GTK and librsvg])
119AC_ARG_WITH(toolkit-scroll-bars,
120[ --without-toolkit-scroll-bars
121 don't use Motif or Xaw3d scroll bars])
122AC_ARG_WITH(xaw3d,
123[ --without-xaw3d don't use Xaw3d])
124AC_ARG_WITH(xim,
125[ --without-xim don't use X11 XIM])
126AC_ARG_WITH(carbon,
127[ --without-carbon don't use Carbon GUI on Mac OS X])
128AC_ARG_ENABLE(carbon-app, 122AC_ARG_ENABLE(carbon-app,
129[[ --enable-carbon-app[=DIR] [DIR=/Application] 123[[ --enable-carbon-app[=DIR] [DIR=/Application]
130 specify install directory for Emacs.app on Mac OS X]], 124 specify install directory for Emacs.app on Mac OS X]],