aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-12-24 02:26:57 +0000
committerRichard M. Stallman1993-12-24 02:26:57 +0000
commit9c34bd79b73293092dbf699a3f82304f43780995 (patch)
tree0974a5cd745f3c02254a1153f6bc398ff4da0e55
parent80fce268568411772f8aa0f75cc1d1c25d688663 (diff)
downloademacs-9c34bd79b73293092dbf699a3f82304f43780995.tar.gz
emacs-9c34bd79b73293092dbf699a3f82304f43780995.zip
(*-sun-solaris*): Add special case for Solaris 2.3.
(i860-*-sysv4): Renamed from i860-*-sysvr4. (LIBS): Add test for existence of XSetWMProtocols. (solaris): Set NON_GNU_CPP instead of CPP. Set it for all solaris versions. (mips-mips-riscos4*): Set NON_GNU_CC, not CC. (after checking for GCC): If not GCC, and NON_GNU_CPP is set, set CPP. Likewise for NON_GNU_CC and CC. (mips-mips-riscos4*): Assign variable CC. (checking ${with_gcc}): If "no", don't override CC if already set. (CC): Initialize it as empty. (Suns): Set CPP if *-solaris2.3*.
-rwxr-xr-xconfigure1.in35
1 files changed, 31 insertions, 4 deletions
diff --git a/configure1.in b/configure1.in
index f28bc9e0a51..b87171f7955 100755
--- a/configure1.in
+++ b/configure1.in
@@ -79,6 +79,7 @@ lisppath='${locallisppath}:${lispdir}'
79etcdir='${datadir}/emacs/${version}/etc' 79etcdir='${datadir}/emacs/${version}/etc'
80lockdir='${statedir}/emacs/lock' 80lockdir='${statedir}/emacs/lock'
81archlibdir='${libdir}/emacs/${version}/${configuration}' 81archlibdir='${libdir}/emacs/${version}/${configuration}'
82CC=
82 83
83# We cannot use this variable in the case statement below, because many 84# We cannot use this variable in the case statement below, because many
84# /bin/sh's have broken semantics for "case". Unfortunately, you must 85# /bin/sh's have broken semantics for "case". Unfortunately, you must
@@ -710,7 +711,7 @@ case "${canonical}" in
710 ;; 711 ;;
711 712
712 ## Intel 860 713 ## Intel 860
713 i860-*-sysvr4* ) 714 i860-*-sysv4* )
714 machine=i860 opsys=usg5-4 715 machine=i860 opsys=usg5-4
715 ;; 716 ;;
716 717
@@ -760,6 +761,7 @@ case "${canonical}" in
760 ;; 761 ;;
761 mips-mips-riscos4* ) 762 mips-mips-riscos4* )
762 machine=mips4 opsys=bsd4-3 763 machine=mips4 opsys=bsd4-3
764 NON_GNU_CC="cc -systype bsd43"
763 ;; 765 ;;
764 mips-mips-bsd* ) 766 mips-mips-bsd* )
765 machine=mips opsys=bsd4-3 767 machine=mips opsys=bsd4-3
@@ -851,7 +853,14 @@ case "${canonical}" in
851 *-sunos4.0* ) opsys=sunos4-0 ;; 853 *-sunos4.0* ) opsys=sunos4-0 ;;
852 *-sunos4.1.3* ) opsys=sunos4-1-3 ;; 854 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
853 *-sunos4* | *-sunos ) opsys=sunos4-1 ;; 855 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
854 *-sunos5* | *-solaris* ) opsys=sol2 ;; 856 *-sunos5.3* | *-solaris2.3* )
857 opsys=sol2-3
858 NON_GNU_CPP=/usr/ccs/lib/cpp
859 ;;
860 *-sunos5* | *-solaris* )
861 opsys=sol2
862 NON_GNU_CPP=/usr/ccs/lib/cpp
863 ;;
855 * ) opsys=bsd4-2 ;; 864 * ) opsys=bsd4-2 ;;
856 esac 865 esac
857 ;; 866 ;;
@@ -992,11 +1001,29 @@ AC_CONFIG_HEADER(src/config.h)
992#### Choose a compiler. 1001#### Choose a compiler.
993case ${with_gcc} in 1002case ${with_gcc} in
994 "yes" ) CC="gcc" GCC=1 ;; 1003 "yes" ) CC="gcc" GCC=1 ;;
995 "no" ) CC="cc" ;; 1004 "no" ) CC=${CC:-"cc"} ;;
996 * ) 1005 * )
997 ] AC_PROG_CC [ 1006 ] AC_PROG_CC [
998esac 1007esac
999 1008
1009#### Some systems specify a CPP to use unless we are using GCC.
1010#### Now that we know whether we are using GCC, we can decide whether
1011#### to use that one.
1012if [ x$NON_GNU_CPP = x ] || [ x$GCC = x1 ]
1013then true
1014else
1015 CPP=$NON_GNU_CPP
1016fi
1017
1018#### Some systems specify a CC to use unless we are using GCC.
1019#### Now that we know whether we are using GCC, we can decide whether
1020#### to use that one.
1021if [ x$NON_GNU_CC = x ] || [ x$GCC = x1 ]
1022then true
1023else
1024 CC=$NON_GNU_CC
1025fi
1026
1000#### Some other nice autoconf tests. If you add a test here which 1027#### Some other nice autoconf tests. If you add a test here which
1001#### should make an entry in src/config.h, don't forget to add an 1028#### should make an entry in src/config.h, don't forget to add an
1002#### #undef clause to src/config.h.in for autoconf to modify. 1029#### #undef clause to src/config.h.in for autoconf to modify.
@@ -1239,7 +1266,7 @@ fi
1239if test "${HAVE_X11}" = "yes"; then 1266if test "${HAVE_X11}" = "yes"; then
1240 DEFS="$C_SWITCH_X_SITE $DEFS" 1267 DEFS="$C_SWITCH_X_SITE $DEFS"
1241 LIBS="$LD_SWITCH_X_SITE $LIBX $LIBS" 1268 LIBS="$LD_SWITCH_X_SITE $LIBX $LIBS"
1242 AC_HAVE_FUNCS(XrmSetDatabase XScreenResourceString XScreenNumberOfScreen) 1269 AC_HAVE_FUNCS(XrmSetDatabase XScreenResourceString XScreenNumberOfScreen XSetWMProtocols)
1243fi 1270fi
1244 1271
1245AC_ALLOCA 1272AC_ALLOCA