Recently (but I'm not sure when) my supposedly Motif gvim started
getting compiled without GUI. Examination of the config log showed the
following lines:
checking --enable-gui argument... Motif GUI support
checking for pkg-config... /usr/bin/pkg-config
checking for location of Motif GUI includes... in default path
checking --with-motif-lib argument... no
checking for location of Motif GUI libs... <not found>
After some trial and error, I found out that by changing just one line
in my environment settings, as follows:
from: export CONF_OPT_GUI='--enable-gui=motif'
to: export CONF_OPT_GUI='--enable-gui=motif --with-motif-lib=-lXm'
(and doing no other changes), then sourcing the configure script again
in the same shell to overwrite the environment values set by the
previous version of the same script, and running "make reconfig", its
--version output told me this time "Tiny version with X11-Motif GUI".
The relevant lines in the config log are now
checking --enable-gui argument... Motif GUI support
checking for pkg-config... /usr/bin/pkg-config
checking for location of Motif GUI includes... in default path
checking --with-motif-lib argument... -lXm
Is this expected? If just specifying that the Motif lib is named libXm
(without mentioning a directory) makes configure find it, I would have
expected it to already know that. Or is that name nonstandard?
N.B. Here is the full (new) configuration script for that shell (I
compile each differently configured version in a separate shadowdir
and a separate konsole tab and shell, with a soft link, not a copy, to
the src/Makefile, and configure arguments set only via environment
variables):
# Vim without evaluation but with Motif
export CONF_OPT_GUI='--enable-gui=motif --with-motif-lib=-lXm'
export CONF_OPT_FEAT='--with-features=small'
export CONF_ARGS2='--with-vim-name=vim-small'
export CONF_OPT_COMPBY='"--with-compiledby=
antoine.m...@gmail.com"'
Best regards,
Tony.