Hello,
I've noticed that when I'm building 21.4.x with --with-widgets=no, it
tries and succeeds to find some random Athena widget set. This is
very annoying and probably wrong. Here is the patch that brings the
behaviour to expected state: try to find Xaw only when explicitly
requested (or to not try when explicitly requested to).
First couple of lines fix ambiguous option abbreviation.
Probably there is more work needed to test --with-dialogs,
-scrollbars, -menubars?
--- configure.in 2001/06/22 05:43:47 1.1
+++ configure.in 2001/07/01 19:17:14
@@ -783,12 +783,12 @@
"with_widgets" )
case "$val" in
l | lu | luc | luci | lucid ) val=lucid ;;
- m | mo | mot | moti | motif ) val=motif ;;
+ mo | mot | moti | motif ) val=motif ;;
a | at | ath | athe | athen | athena ) val=athena ;;
n | no | non | none ) val=no ;;
y | ye | yes ) val=yes ;;
g | gt | gtk ) val=gtk ;;
- m | ms | msw ) val=msw ;;
+ ms | msw ) val=msw ;;
* ) USAGE_ERROR(["The \`--$optname' option must have one of these values:
\`gtk\', \`lucid', \`motif', \`athena', \`yes', or
\`no'."]) ;;
esac
@@ -3315,9 +3315,10 @@
dnl ----------------------
if test "$with_x11" = "yes"; then
-
AC_CHECKING(for X11 graphics libraries)
+fi
+if test "$with_x11" = "yes" -a "$with_widgets" =
"athena"; then
AC_CHECKING(for the Athena widgets)
dnl What in heck did the user actually want?
@@ -3414,6 +3415,11 @@
have_xaw=no
fi
+else
+ have_xaw=no
+fi dnl "$with_x11" = "yes" -a "$with_widgets" =
"athena"
+
+if test "$with_x11" = "yes"; then
dnl autodetect Motif - but only add to libs_x later (if necessary)
AC_CHECK_HEADER(Xm/Xm.h,
[AC_CHECK_LIB(Xm, XmStringFree, have_motif=yes, have_motif=no)],
--alexm