for example:
L2000-2#[/usr/.scy/.scy/expect-5.38]./configure -help
.......
--enable-shared build libexpect as a shared library
--with-x whether or not to use X (default yes)
--with-tkinclude directory where tk private headers are
--disable-load disallow dynamic loading
--enable-gcc allow use of gcc if available
......