public inbox for rda@sourceware.org
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: rda@sources.redhat.com
Subject: [PATCH] Update configury for mips64-linux targets
Date: Wed, 27 Nov 2002 13:31:00 -0000	[thread overview]
Message-ID: <1021127213122.ZM32337@localhost.localdomain> (raw)

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)

                 reply	other threads:[~2002-11-27 21:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1021127213122.ZM32337@localhost.localdomain \
    --to=kevinb@redhat.com \
    --cc=rda@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).