aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-06-09 20:52:47 +0000
committerRichard M. Stallman1996-06-09 20:52:47 +0000
commitf7894e88206bc3bb072057f285b1f1bc0c4c1fa3 (patch)
tree45d182c3e48f3e18d7615189bcf46212e3962ab8
parent32d012127609e52c0fc3d1f82d765a0b45739e9e (diff)
downloademacs-f7894e88206bc3bb072057f285b1f1bc0c4c1fa3.tar.gz
emacs-f7894e88206bc3bb072057f285b1f1bc0c4c1fa3.zip
Always check for HAVE_X11R5.
Separately decide whether to use a toolkit by default. If X11R5 is missing the Xaw headers, default to --with-x-toolkit=no. (powerpc-*-solaris2*): Use ibmrs6000, not rs6000.
-rw-r--r--configure.in31
1 files changed, 24 insertions, 7 deletions
diff --git a/configure.in b/configure.in
index 7fd45c879be..5663dd33e7d 100644
--- a/configure.in
+++ b/configure.in
@@ -49,7 +49,7 @@ dnl This should be the last --with option, because --with-x is
49dnl added later on when we find the path of X, and it's best to 49dnl added later on when we find the path of X, and it's best to
50dnl keep them together visually. 50dnl keep them together visually.
51AC_ARG_WITH(x-toolkit, 51AC_ARG_WITH(x-toolkit,
52[ --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif)], 52[ --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)],
53[ case "${withval}" in 53[ case "${withval}" in
54 y | ye | yes ) val=athena ;; 54 y | ye | yes ) val=athena ;;
55 n | no ) val=no ;; 55 n | no ) val=no ;;
@@ -691,7 +691,7 @@ case "${canonical}" in
691 m68* ) machine=sun3 ;; 691 m68* ) machine=sun3 ;;
692 i[345]86-sun-sunos[34]* ) machine=sun386 ;; 692 i[345]86-sun-sunos[34]* ) machine=sun386 ;;
693 i[345]86-*-* ) machine=intel386 ;; 693 i[345]86-*-* ) machine=intel386 ;;
694 powerpc* | rs6000* ) machine=rs6000 ;; 694 powerpc* | rs6000* ) machine=ibmrs6000 ;;
695 sparc* ) machine=sparc ;; 695 sparc* ) machine=sparc ;;
696 * ) unported=yes ;; 696 * ) unported=yes ;;
697 esac 697 esac
@@ -1320,17 +1320,34 @@ fail;
1320 [AC_MSG_RESULT(before 6)]) 1320 [AC_MSG_RESULT(before 6)])
1321fi 1321fi
1322 1322
1323if test x"${USE_X_TOOLKIT}" = xmaybe; then 1323if test "${window_system}" = "x11"; then
1324 AC_MSG_CHECKING(X11 version 5) 1324 AC_MSG_CHECKING(X11 version 5)
1325 AC_TRY_LINK([#include <X11/Xlib.h>], 1325 AC_TRY_LINK([#include <X11/Xlib.h>],
1326[#if XlibSpecificationRelease < 5 1326[#if XlibSpecificationRelease < 5
1327fail; 1327fail;
1328#endif 1328#endif
1329], [AC_MSG_RESULT(5 or newer; use toolkit by default) 1329], [AC_MSG_RESULT(5 or newer)
1330 USE_X_TOOLKIT=LUCID 1330 HAVE_X11R5=yes
1331 AC_DEFINE(HAVE_X11R5)], 1331 AC_DEFINE(HAVE_X11R5)],
1332 [AC_MSG_RESULT(before 5; do not use toolkit by default) 1332 [
1333 USE_X_TOOLKIT=none]) 1333 HAVE_X11R5=no
1334 AC_MSG_RESULT(before 5)])
1335fi
1336
1337if test x"${USE_X_TOOLKIT}" = xmaybe; then
1338 if test x"${HAVE_X11R5}" = xyes; then
1339 AC_MSG_CHECKING(X11 version 5 with Xaw)
1340 AC_TRY_LINK([
1341 #include <X11/Intrinsic.h>
1342 #include <X11/Xaw/Simple.h>],
1343 [],
1344 [AC_MSG_RESULT(5 or newer, with Xaw; use toolkit by default)
1345 USE_X_TOOLKIT=LUCID],
1346 [AC_MSG_RESULT(before 5 or no Xaw; do not use toolkit by default)
1347 USE_X_TOOLKIT=none])
1348 else
1349 USE_X_TOOLKIT=none
1350 fi
1334fi 1351fi
1335 1352
1336X_TOOLKIT_TYPE=$USE_X_TOOLKIT 1353X_TOOLKIT_TYPE=$USE_X_TOOLKIT