1 dnl sxe-summary.m4 -- print a nice summary describing the build
3 dnl Copyright (C) 2005 Malcolm Purvis.
4 dnl Copyright (C) 2005, 2006, 2007 Steve Youngs.
5 dnl Copyright (C) 2006, 2007, 2008 Sebastian Freundt.
7 dnl This file is part of SXEmacs
9 dnl Start stdout redirection to '| tee -a Installation'
10 AC_DEFUN([SXE_SUMMARY], [dnl
11 pushdef([CODENAME], m4_ifdef([SXEM4CS_CODENAME],
12 [SXEM4CS_CODENAME], [unknown]))
17 SXEmacs $sxemacs_git_version \"[]CODENAME[]\" configured for \`$ac_cv_build'.
20 Compilation Environment and Installation Defaults:"
21 echo " Source code location: $sxe_srcdir"
22 echo " Installation prefix: $prefix"
23 echo " Arch-dependent files go to: $ARCHLIBDIR"
24 echo " Core emodules go to: $MODULEDIR"
25 echo " Core lisp files go to: $LISPDIR"
26 echo " Additional external data goes to: $ETCDIR"
28 if test -n "$opsysfile"
29 then echo " Operating system description file: \`$opsysfile'"
30 else echo " Not using any operating system description file"
32 if test -n "$machfile"
33 then echo " Machine description file: \`$machfile'"
34 else echo " Not using any machine description file"
37 echo " Compiler version: $compiler_version"
38 if test -n "$gcc_compiler_specs"; then
39 echo " - GCC specs file: $gcc_compiler_specs"
41 echo " - Compiler command: $CC $CFLAGS"
42 echo " - Global CPPFLAGS: $CPPFLAGS"
43 echo " - Global LDFLAGS: $LDFLAGS"
45 echo " System: $c_switch_system"
46 echo " General: $c_switch_general"
47 echo " Window system: $c_switch_window_system"
48 echo " All: $c_switch_all"
49 echo " - Linker flags"
50 echo " System: $ld_switch_system"
51 echo " General: $ld_switch_general"
52 echo " Window system: $ld_switch_window_system"
53 echo " All: $ld_switch_all"
54 echo " - Linked libraries:"
55 echo " System: $ld_libs_system"
56 echo " General: $ld_libs_general"
57 echo " Window system: $ld_libs_window_system"
58 echo " All: $ld_libs_all"
60 echo " libc version: $libc_version"
61 echo " Relocating allocator for buffers: $with_rel_alloc"
62 case "$ld_switch_site" in
63 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
64 - Consider configuring with --with-pdump." ;;
69 if test -n "$with_site_includes"; then
70 echo " Additional header files: $with_site_includes"
72 if test -n "$with_site_libraries"; then
73 echo " Additional libraries: $with_site_libraries"
75 if test -n "$with_site_prefixes"; then
76 echo " Additional prefixes: $with_site_prefixes"
78 if test -n "$runpath"; then
79 echo " Runtime library search path: $runpath"
82 echo " Runtime behaviour:"
83 if test "$with_prefix" = "yes"; then
84 echo " - Value of prefix ($prefix) is compiled into the binary."
85 elif test "$with_prefix" = "no"; then
86 echo " - Value of prefix ($prefix)is not compiled into the binary."
88 if test "$with_modules" != "no"; then
90 - Module search path:"
91 echo ${MODULE_PATH} | ${AWK-awk} 'BEGIN {RS=":"} { print " ",[$]1[] }'
94 - Package search path:"
95 echo ${PACKAGE_PATH} | ${AWK-awk} 'BEGIN {RS=":"} { print " ",[$]1[] }'
97 (defaults shown, runtime paths may differ)"
102 OG_MULTIARG_SUMMARY([error-checking], [Runtime Error Checking], [ ])
104 if test "$tmp_enabled" != "None."; then
105 echo " WARNING: ---------------------------------------------------------"
106 echo " WARNING: SXEmacs will run noticeably more slowly as a result."
107 echo " WARNING: Error checking is on by default for SXEmacs beta releases."
108 echo " WARNING: ---------------------------------------------------------"
109 elif test "${sxemacs_betaname}" != ""; then
110 echo " WARNING: ---------------------------------------------------------"
111 echo " WARNING: This SXEmacs is a beta release."
112 echo " WARNING: By disabling all error checking there will be limited "
113 echo " WARNING: troubleshooting information available."
114 echo " WARNING: ---------------------------------------------------------"
122 if test "$with_dynamic" = "yes"; then
123 echo " How to link external libraries: dynamic"
124 elif test "$with_dynamic" = "no"; then
125 echo " How to link external libraries: static"
127 echo " How to link external libraries: uncertain"
130 echo " Foreign Function Interface:"
131 if test "$have_ffi" = yes; then
132 echo " Compiling in support for FFI."
133 elif test "$have_ffi" = no; then
134 echo " No support for FFI."
136 echo " Good question ... where is it?"
139 if test "$have_compre" = yes; then
140 echo " Compiled regex caching: yes"
142 echo " Compiled regex caching: no"
145 dnl summary for ENT and ASE
146 OG_MULTIARG_SUMMARY([ent], [Enhanced Number Types], [ ])
147 dnl OG_MULTIARG_SUMMARY([ase], [Algebraic Structures based on ENT], [ ])
149 OG_MULTIARG_SUMMARY([experimental-features], [Experimental Features], [ ])
153 if test "$with_x11" = "yes"; then
154 echo " Compiling in support for the X window system:"
155 echo " - X Windows headers location: $x_includes"
156 echo " - X Windows libraries location: $x_libraries"
157 if test "$with_xauth" != yes; then
158 echo " - Xau (X authority) not available."
160 if test "$with_xmu" != yes; then
161 echo " - Xmu library not available; substituting equivalent routines."
163 if test "$with_wmcommand" != no; then
164 echo " - Handling WM_COMMAND properly."
167 if test "$need_athena" = "yes"; then
168 echo " Compiling in support for the Athena widget set:"
169 echo " - Athena headers location: $athena_h_path"
170 echo " - Athena library to link: $athena_lib"
172 case "$with_menubars" in
173 lucid ) echo " Using Lucid menubars." ;;
174 motif ) echo " Using Motif menubars."
175 echo " *WARNING* The Motif menubar implementation is currently buggy."
176 echo " We recommend using the Lucid menubar instead."
177 echo " Re-run configure with --with-menubars='lucid'." ;;
178 * ) echo " No support for menubars." ;;
180 case "$with_scrollbars" in
181 lucid ) echo " Using Lucid scrollbars." ;;
182 motif ) echo " Using Motif scrollbars." ;;
183 athena ) echo " Using Athena scrollbars." ;;
184 * ) echo " No support for scrollbars." ;;
186 case "$with_dialogs" in
187 motif ) echo " Using Motif dialog boxes."
188 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
189 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
190 echo " We recommend using the Athena dialog boxes instead."
191 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
192 echo " Read the PROBLEMS file for more information."
194 athena ) echo " Using Athena dialog boxes." ;;
195 * ) echo " No support for dialog boxes." ;;
197 case "$with_widgets" in
198 motif ) echo " Using Motif native widgets." ;;
199 athena ) echo " Using Athena native widgets." ;;
200 * ) echo " No support for native widgets." ;;
202 case "$with_toolbars" in
203 yes ) echo " Support for toolbars." ;;
204 no ) echo " No support for toolbars." ;;
210 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
211 test "$with_curses" = yes && echo " Compiling in support for curses."
212 test "$with_tinfo" = yes && echo " Compiling in support for tinfo."
213 test "$with_terminfo" = yes && echo " Compiling in support for terminfo."
214 test "$with_termlib" = yes && echo " WARNING! Compiling in support for termlib." \
215 && echo " Consider installing ncurses."
216 test "$with_termcap" = yes && echo " WARNING! Compiling in support for termcap." \
217 && echo " Consider installing ncurses." \
218 && echo " You may need to set TERMCAP or have the file /etc/termcap."
219 test "$with_builtin_tty" = yes && echo " WARNING! Using (brittle) builtin TTY." \
220 && echo " Consider installing ncurses." \
221 && echo " You WILL need to set TERMCAP or have the file /etc/termcap."
222 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
226 OG_MULTIARG_SUMMARY([database], [File-based Databases], [ ])
228 echo " Compiling in support for further database interfaces:"
229 if test "$have_ldap" = "yes"; then
230 echo $ECHO_N " - LDAP"$ECHO_C
231 if test "$have_ldap_lber" = "yes" -o "$have_ldap_krb" -o "$have_ldap_des"; then
232 echo $ECHO_N " (with"$ECHO_C
233 test "$have_ldap_lber" = "yes" && echo $ECHO_N " lber"$ECHO_C
234 test "$have_ldap_krb" = "yes" && echo $ECHO_N " krb"$ECHO_C
235 test "$have_ldap_des" = "yes" && echo $ECHO_N " des"$ECHO_C
236 echo $ECHO_N ")"$ECHO_C
240 if test "$have_postgresql" = "yes"; then
241 echo $ECHO_N " - PostgreSQL"$ECHO_C
242 test "$have_postgresqlv7" = yes && \
243 echo $ECHO_N " (V7 bindings)"$ECHO_C
250 OG_MULTIARG_SUMMARY([image], [Image Formats], [ ])
251 OG_MULTIARG_SUMMARY([sound], [Audio Outputs], [ ])
252 OG_MULTIARG_SUMMARY([media], [Media Stream Handlers], [ ])
254 dnl old stuff ... originally these were elifs
255 dnl if test "$with_x11" = yes; then
256 dnl echo " WARNING: -----------------------------------------------------------"
257 dnl echo " WARNING: Compiling without XPM image support."
258 dnl if test "$xpm_problem" != ""; then
259 dnl echo " Reason: $xpm_problem"
261 dnl echo " WARNING: You should strongly consider installing XPM."
262 dnl echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
263 dnl echo " WARNING: -----------------------------------------------------------"
265 dnl if test "$window_system" != "none"; then
266 dnl echo " WARNING: -----------------------------------------------------------"
267 dnl echo " WARNING: Compiling without PNG image support."
268 dnl if test "$png_problem" != ""; then
269 dnl echo " Reason: $png_problem"
271 dnl echo " WARNING: You should strongly consider installing the PNG libraries."
272 dnl echo " WARNING: Otherwise certain images and glyphs may not display."
273 dnl echo " WARNING: -----------------------------------------------------------"
278 if test "$have_openssl $with_openssl" = "yes yes"; then
279 echo " Compiling in support for OpenSSL ciphers and digests."
280 echo " - Submodules: RAND MD HMAC CIPHER HYBRID SIGN" \
281 `test "$openssl_no_rsa" = no && echo "RSA"` \
282 `test "$openssl_no_dsa" = no && echo "DSA"` \
283 `test "$openssl_no_ec" = no && echo "EC"` \
284 `test "$openssl_no_dh" = no && echo "DH"` \
286 `test "$openssl_ssl" = yes && echo "SSL"`
290 Internationalization:"
291 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
292 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
293 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
294 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
295 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
296 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
297 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
298 if test "$with_wnn" = yes; then
299 echo " Compiling in support for the WNN input method on Mule."
300 test "$with_wnn6" = yes && echo " - Using WNN version 6."
305 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
306 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
307 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
308 test -n "$with_mail_locking" && echo " Compiling in support for \"$with_mail_locking\" mail spool file locking method."
312 OG_MULTIARG_SUMMARY([modules], [Dynamic Shared Object Modules], [ ])
313 OG_MULTIARG_SUMMARY([static-modules], [Static Modules], [ ])
317 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
318 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
319 test "$with_dnet" = yes && echo " Compiling in support for DNET."
320 if test "$with_regex_malloc" = no; then
321 echo " WARNING: -----------------------------------------------------------"
322 echo " Using alloca to allocate the failure stack."
323 echo " It may be impossible to detect stack exhaustion, and you will crash."
324 echo " Do NOT use this build of SXEmacs for ordinary work."
325 echo " WARNING: -----------------------------------------------------------"
327 test "$with_pdump" = yes && echo " Using the new portable dumper."
328 test "$with_debug" = yes && echo " Compiling in support for extra debugging code."
329 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
332 ## explanation for flags
334 echo " + means not requested but enabled"
335 echo " * means requested but disabled"
338 ## bogus configure opts
339 if test -n "$bogus_cmd_opts"; then
340 echo "The following option were unrecognised and will be ignored:
341 ----------------------------------------------------------"
342 echo "$bogus_cmd_opts"
344 echo "I'm tempted to remove the entire directory now ..."
345 echo "... fortunately I think I'm in a good mood, so have a nice build anyway."
347 echo "No bogus options. Have a nice build :)"
350 ) | tee -a Installation
351 dnl echo "The above configure report is appended to \"Installation\" file."
356 dnl sxe-summary.m4 ends here