Sqsh 2.1.5 on Ubuntu 8.10 (32bit)
If the openmotif libraries are installed, the configure options "--without-x --without-motif" are ignored. Notice the "-DUSE_X11 -DUSE_MOTIF" flags in the make output.
$ ./configure --with-readline --with-devlib --without-x --without-motif
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for library containing strerror... none required
checking whether gcc supports volatile keyword... yes
checking Open Client installation... /opt/sybase/OCS-15_0
checking Open Client libraries... -lsybblk -lsybcs -lsybct -lsybtcl -lsybcomn -lsybintl
checking Open Client needs net libraries... no (version 15)
checking Open Client OS libraries... -ldl -lm
checking for libreadline... /lib
checking for readline/readline.h... /usr/include
checking for readline link... -lreadline -lcurses
checking for rl_completion_matches in -lreadline... no
checking for xmkmf... /usr/bin/xmkmf
checking for X... libraries , headers
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking for memory.h... (cached) yes
checking for stdlib.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking shadow.h usability... yes
checking shadow.h presence... yes
checking for shadow.h... yes
checking for an ANSI C-conforming const... yes
checking for mode_t... yes
checking for pid_t... yes
checking for uid_t in sys/types.h... yes
checking return type of signal handlers... void
checking for sigaction... yes
checking for strcasecmp... yes
checking for strerror... yes
checking for cftime... no
checking for strftime... yes
checking for memcpy... yes
checking for memmove... yes
checking for localtime... yes
checking for timelocal... yes
checking for strchr... yes
checking for gettimeofday... yes
checking for get_process_stats... no
checking for crypt... no
checking for poll... yes
checking for sigsetjmp... yes
checking signal behaviour... BSD
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating scripts/install.sh
config.status: creating scripts/make_wrapper.sh
config.status: creating src/config.h
jason@jfroebe-laptop:~/vendor/sqsh-2.1.5$ make
make[1]: Entering directory `/home/jason/vendor/sqsh-2.1.5/src'
gcc -g -O2 -DSQSH_RC='"/usr/local/etc/sqshrc:${HOME}/.sqshrc"' -DUSE_READLINE -DOLD_READLINE -DUSE_X11 -DUSE_MOTIF -Ino/include/X11 -I/opt/sybase/OCS-15_0/include -c -o cmd_alias.o cmd_alias.c
gcc -g -O2 -DSQSH_RC='"/usr/local/etc/sqshrc:${HOME}/.sqshrc"' -DUSE_READLINE -DOLD_READLINE -DUSE_X11 -DUSE_MOTIF -Ino/include/X11 -I/opt/sybase/OCS-15_0/include -c -o cmd_bcp.o cmd_bcp.c
gcc -g -O2 -DSQSH_RC='"/usr/local/etc/sqshrc:${HOME}/.sqshrc"' -DUSE_READLINE -DOLD_READLINE -DUSE_X11 -DUSE_MOTIF -Ino/include/X11 -I/opt/sybase/OCS-15_0/include -c -o cmd_buf.o cmd_buf.c
cmd_buf.c: In function ‘cmd_buf_edit’:
cmd_buf.c:569: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result
looks like if "-x" or "-motif" are in the configure line, it is assumed you mean to enable them both even if you have "--without-". There doesn't seem to be a way to disable them if you have motif installed though. hmmm