Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: "make show-config"
- X-seq: zsh-workers 13938
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: "make show-config"
- Date: Tue, 10 Apr 2001 17:12:51 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
This is a patch I've had sitting around for a while. I won't commit it
unless I get some positive feedback. It duplicates in Makefile.in some
of the code from near the end of configure.in that reports the complete
configuration. Sample output of "make show-config" for configure with
options --disable-dynamic --enable-zsh-debug --enable-function-subdirs:
zsh version : 4.0.1-pre-3
source code location : ../new
compiler : gcc
preprocessor flags :
executable compiler flags : -Wall -Wno-implicit -Wmissing-prototypes -ggdb
executable linker flags : -g
library flags : -lnsl -ltermcap -lm -lc
installation basename : zsh
binary install path : /usr/local/bin
man page install path : /usr/local/man
info install path : /usr/local/info
library install path : /usr/local/lib
modules install path : /usr/local/lib/zsh/4.0.1-pre-3
installed modules : zsh/main zsh/rlimits zsh/sched zsh/parameter zsh/termcap zsh/terminfo zsh/zutil zsh/compctl zsh/complete zsh/complist zsh/computil zsh/zle zsh/zleparameter
functions install path : /usr/local/share/zsh/4.0.1-pre-3/functions
installed functions : Misc/* Prompts/* Completion/comp* Completion/*/*/* Zle/*
Index: Makefile.in
===================================================================
RCS file: /extra/cvsroot/zsh/zsh-4.0/Makefile.in,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile.in
--- Makefile.in 2001/04/09 20:14:08 1.1.1.1
+++ Makefile.in 2001/04/10 15:14:21
@@ -53,6 +53,33 @@
META-FAQ: FORCE
@cd Doc && $(MAKE) $(MAKEDEFS) ../META-FAQ
+show-config:
+ @echo "zsh version : $(VERSION)"
+ @echo "source code location : $(sdir)"
+ @echo "compiler : $(CC)"
+ @echo "preprocessor flags : $(CPPFLAGS)"
+ @echo "executable compiler flags : $(CFLAGS)"
+ @if test -n "$(DLCFLAGS)"; then \
+ echo "module compiler flags : $(CFLAGS) $(DLCFLAGS)"; fi
+ @echo "executable linker flags : $(LDFLAGS) $(EXELDFLAGS) $(EXTRA_LDFLAGS)"
+ @if test -n "$(LIBLDFLAGS)$(DLLDFLAGS)"; then \
+ echo "module linker flags : $(LDFLAGS) $(LIBLDFLAGS) $(DLLDFLAGS)"; fi
+ @echo "library flags : $(LIBS)"
+ @echo "installation basename : $(tzsh)"
+ @echo "binary install path : $(bindir)"
+ @echo "man page install path : $(mandir)"
+ @echo "info install path : $(infodir)"
+ @echo "library install path : $(libdir)"
+ @echo "modules install path : $(MODDIR)"
+ @echo "installed modules :" \
+ `sed -e '/^#/d' -e '/ link=no/d' -e 's/ .*/ /' -e 's/^name=/ /' \
+ $(dir_top)/config.modules`
+ @echo "functions install path : $(fndir)"
+ @echo "installed functions :" \
+ `sed -e '/^#/d' -e '/ functions=./!d' -e '/ link=no/d' \
+ -e 's/^.* functions=/ /' -e 's% Functions/% %g' \
+ $(dir_top)/config.modules`
+
# ========== DEPENDENCIES FOR INSTALLING ==========
# install stripped
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author