aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-04-27 23:43:38 -0700
committerGlenn Morris2010-04-27 23:43:38 -0700
commit44e3d510df92cc32bc682a874b978608075ffad2 (patch)
treeceaed40c2bab4527d78dcd1554fe0bdd2865bca0
parent17818d715235dafd82625fb6d739dddaf60c2701 (diff)
downloademacs-44e3d510df92cc32bc682a874b978608075ffad2.tar.gz
emacs-44e3d510df92cc32bc682a874b978608075ffad2.zip
Move test for 64-bit kernel with 32-bit userland to configure.
See discussion in bug#5655. * configure.in (machine, canonical): On amdx86-64, check for a 32-bit userland and maybe change values to i386 (move test from s/amdx86-64.h). * src/m/amdx86-64.h [i386]: Move this test to configure.in.
-rw-r--r--ChangeLog5
-rw-r--r--configure.in14
-rw-r--r--src/m/amdx86-64.h10
3 files changed, 19 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 11a934e529b..ddd52e9724d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12010-04-28 Glenn Morris <rgm@gnu.org>
2
3 * configure.in (machine, canonical): On amdx86-64, check for a 32-bit
4 userland and maybe change values to i386 (move test from s/amdx86-64.h).
5
12010-04-27 Glenn Morris <rgm@gnu.org> 62010-04-27 Glenn Morris <rgm@gnu.org>
2 7
3 * configure.in (LIBXTR6): New output variable. Move unixware special 8 * configure.in (LIBXTR6): New output variable. Move unixware special
diff --git a/configure.in b/configure.in
index 281d06995d7..6233b7fe730 100644
--- a/configure.in
+++ b/configure.in
@@ -761,6 +761,20 @@ AC_PROG_INSTALL
761if test "x$RANLIB" = x; then 761if test "x$RANLIB" = x; then
762 AC_PROG_RANLIB 762 AC_PROG_RANLIB
763fi 763fi
764
765## Although we're running on an amd64 kernel, we're actually compiling for
766## the x86 architecture. The user should probably have provided an
767## explicit --build to `configure', but if everything else than the kernel
768## is running in i386 mode, we can help them out.
769if test "$machine" = "amdx86-64"; then
770 AC_CHECK_DECL([i386])
771 if test "$ac_cv_have_decl_i386" = "yes"; then
772 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
773 machine=intel386
774 machfile="m/${machine}.h"
775 fi
776fi
777
764AC_PATH_PROG(INSTALL_INFO, install-info) 778AC_PATH_PROG(INSTALL_INFO, install-info)
765AC_PATH_PROG(INSTALL_INFO, install-info,, /usr/sbin) 779AC_PATH_PROG(INSTALL_INFO, install-info,, /usr/sbin)
766AC_PATH_PROG(INSTALL_INFO, install-info,:, /sbin) 780AC_PATH_PROG(INSTALL_INFO, install-info,:, /sbin)
diff --git a/src/m/amdx86-64.h b/src/m/amdx86-64.h
index f7dfb126e6e..b2e6cae48c7 100644
--- a/src/m/amdx86-64.h
+++ b/src/m/amdx86-64.h
@@ -17,15 +17,6 @@ GNU General Public License for more details.
17You should have received a copy of the GNU General Public License 17You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19 19
20#ifdef i386
21/* Although we're running on an amd64 kernel, we're actually compiling for
22 the x86 architecture. The user should probably have provided an
23 explicit --build to `configure', but if everything else than the kernel
24 is running in i386 mode, then the bug is really ours: we should have
25 guessed better. */
26#include "m/intel386.h"
27#else
28
29/* The following line tells the configuration script what sort of 20/* The following line tells the configuration script what sort of
30 operating system this machine is likely to run. 21 operating system this machine is likely to run.
31 USUAL-OPSYS="linux" */ 22 USUAL-OPSYS="linux" */
@@ -90,7 +81,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
90#define LIB_STANDARD -lgcc -lc -lgcc $(CRT_DIR)/crtn.o 81#define LIB_STANDARD -lgcc -lc -lgcc $(CRT_DIR)/crtn.o
91 82
92#endif /* SOLARIS2 */ 83#endif /* SOLARIS2 */
93#endif /* !i386 */
94 84
95/* arch-tag: 8a5e001d-e12e-4692-a3a6-0b15ba271c6e 85/* arch-tag: 8a5e001d-e12e-4692-a3a6-0b15ba271c6e
96 (do not change this comment) */ 86 (do not change this comment) */