diff options
author | rmax <rmax> | 2002-06-25 16:45:11 (GMT) |
---|---|---|
committer | rmax <rmax> | 2002-06-25 16:45:11 (GMT) |
commit | e0a03f97795a574958b1be946798f3a34cb25d1d (patch) | |
tree | 74d3f5bc8eaca5e5fb2a1b9763f801533c04265e /unix/tcl.m4 | |
parent | 74607ec0cc8a43fcd4eee20367551cfe4c9b6be3 (diff) | |
download | tk-e0a03f97795a574958b1be946798f3a34cb25d1d.zip tk-e0a03f97795a574958b1be946798f3a34cb25d1d.tar.gz tk-e0a03f97795a574958b1be946798f3a34cb25d1d.tar.bz2 |
* unix/tcl.m4: New macro SC_CONFIG_MANPAGES.
* unix/configure.in: Added support for symlinks and compression
* unix/Makefile.in: when installing the manpages. [Patch 518052]
Default is still hardlinks and no compression.
* unix/mkLinks: generated
* unix/configure:
* unix/README: Added documentation for the new features.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index a146632..5bf4753 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -505,6 +505,48 @@ AC_DEFUN(SC_ENABLE_LANGINFO, [ ]) #-------------------------------------------------------------------- +# SC_CONFIG_MANPAGES +# +# Decide whether to use symlinks for linking the manpages and +# whether to compress the manpages after installation. +# +# Arguments: +# none +# +# Results: +# +# Adds the following arguments to configure: +# --enable-man-symlinks +# --enable-man-compression=PROG +# +# Defines the following variable: +# +# MKLINKS_FLAGS - The apropriate flags for mkLinks +# according to the user's selection. +# +#-------------------------------------------------------------------- +AC_DEFUN(SC_CONFIG_MANPAGES, [ + + AC_MSG_CHECKING([whether to use symlinks for manpages]) + AC_ARG_ENABLE(man-symlinks, + [ --enable-man-symlinks use symlinks for the manpages], + test "$enableval" != "no" && MKLINKS_FLAGS="$MKLINKS_FLAGS --symlinks", + enableval="no") + AC_MSG_RESULT([$enableval]) + + AC_MSG_CHECKING([compression for manpages]) + AC_ARG_ENABLE(man-compression, + [ --enable-man-compression=PROG + compress the manpages with PROG], + test "$enableval" = "yes" && echo && AC_MSG_ERROR([missing argument to --enable-man-compression]) + test "$enableval" != "no" && MKLINKS_FLAGS="$MKLINKS_FLAGS --compress $enableval", + enableval="no") + AC_MSG_RESULT([$enableval]) + + AC_SUBST(MKLINKS_FLAGS) +]) + +#-------------------------------------------------------------------- # SC_CONFIG_CFLAGS # # Try to determine the proper flags to pass to the compiler |