This is the mail archive of the rda@sources.redhat.com mailing list for the rda project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Update configury for mips64-linux targets


I've just committed the patch below.

	* acinclude.m4: New file.
	* config.in (MIPS64_LINUX_TARGET, MIPS_ABI_N64, MIPS_ABI_N32)
	(MIPS_ABI_O32): New defines.
	* configure.in (mips64*linux*, mips64*linux*n64, mips64*linux*n32)
	(mips64*linux*o32): New targets.
	(mips64*linux*) : Define MIPS_ABI_O32.
	(HAVE_AC_DEFINE): Remove conditional definition; autoconf complained
	about it.
	* aclocal.m4, configure, Makefile.in: Regenerate.

Index: acinclude.m4
===================================================================
RCS file: acinclude.m4
diff -N acinclude.m4
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ acinclude.m4	27 Nov 2002 21:21:51 -0000
@@ -0,0 +1,10 @@
+sinclude(../../libtool.m4)
+dnl The lines below arrange for aclocal not to bring libtool.m4
+dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
+dnl to add a definition of LIBTOOL to Makefile.in.
+ifelse(yes,no,[
+AC_DEFUN([AM_PROG_LIBTOOL],)
+AC_DEFUN([AM_DISABLE_SHARED],)
+AC_SUBST(LIBTOOL)
+])
+
Index: config.in
===================================================================
RCS file: /cvs/src/src/rda/unix/config.in,v
retrieving revision 1.1
diff -u -p -r1.1 config.in
--- config.in	28 Aug 2002 01:22:28 -0000	1.1
+++ config.in	27 Nov 2002 21:21:51 -0000
@@ -92,8 +92,20 @@
 /* Define if target is SH (3? 4?) Linux */
 #undef SH_LINUX_TARGET
 
-/* Define if target is MIPS Linux */
+/* Define if target is 64-bit MIPS Linux */
+#undef MIPS64_LINUX_TARGET
+
+/* Define if target is (32-bit) MIPS Linux */
 #undef MIPS_LINUX_TARGET
+
+/* Define if target uses MIPS n64 ABI */
+#undef MIPS_ABI_N64
+
+/* Define if target uses MIPS n32 ABI */
+#undef MIPS_ABI_N32
+
+/* Define if target uses MIPS o32 ABI */
+#undef MIPS_ABI_O32
 
 /* Define if target is any Linux */
 #undef LINUX_TARGET
Index: configure.in
===================================================================
RCS file: /cvs/src/src/rda/unix/configure.in,v
retrieving revision 1.1
diff -u -p -r1.1 configure.in
--- configure.in	28 Aug 2002 01:22:28 -0000	1.1
+++ configure.in	27 Nov 2002 21:21:52 -0000
@@ -30,6 +30,16 @@ dnl define ptrace_xfer_type
 dnl define ptrace_arg3_type
 
 case "$target" in
+  mips64*linux*)
+    TARGET_MODULES="linux-target.o no-threads.o ptrace-target.o" 
+    AC_DEFINE(LINUX_TARGET)
+    AC_DEFINE(GREGSET_T,  prgregset_t)
+    AC_DEFINE(FPREGSET_T, prfpregset_t)
+    AC_DEFINE(HAVE_LWPID_T)
+    AC_DEFINE(HAVE_PSADDR_T)
+    AC_DEFINE(HAVE_PRGREGSET_T)
+    AC_DEFINE(HAVE_PRFPREGSET_T)
+    ;;
   i?86*linux* | \
   powerpc*linux* | \
   arm*linux* | \
@@ -84,8 +94,39 @@ case "$target" in
     AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
     AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
     ;;
+  mips64*linux*n64)
+    AC_DEFINE(MIPS64_LINUX_TARGET)
+    AC_DEFINE(MIPS_ABI_N64)
+    AC_DEFINE(PTRACE_XFER_SIZE, 8)
+    AC_DEFINE(PTRACE_XFER_TYPE_LONG)
+    AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
+    AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
+    AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
+    AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+    ;;
+  mips64*linux*n32)
+    AC_DEFINE(MIPS64_LINUX_TARGET)
+    AC_DEFINE(MIPS_ABI_N32)
+    AC_DEFINE(PTRACE_XFER_SIZE, 8)
+    AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG)
+    AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG)
+    AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG)
+    AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG)
+    AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG)
+    ;;
+  mips64*linux*o32)
+    AC_DEFINE(MIPS64_LINUX_TARGET)
+    AC_DEFINE(MIPS_ABI_O32)
+    AC_DEFINE(PTRACE_XFER_SIZE, 4)
+    AC_DEFINE(PTRACE_XFER_TYPE_LONG)
+    AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
+    AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
+    AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
+    AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+    ;;
   mips*linux*)
     AC_DEFINE(MIPS_LINUX_TARGET)
+    AC_DEFINE(MIPS_ABI_O32)
     AC_DEFINE(PTRACE_XFER_SIZE, 4)
     AC_DEFINE(PTRACE_XFER_TYPE_LONG)
     AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
@@ -149,10 +190,6 @@ case "$target" in
 	fi
 	;;
 esac
-
-if test -f /usr/include/foo.h; then
-  AC_DEFINE(HAVE_AC_DEFINE, 1, [define if have AC_DEFINE])
-fi
 
 dnl Outputs
 AC_OUTPUT(Makefile)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]