dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/libffi ChangeLog,1.4,1.5 ChangeLog.libg


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/libffi ChangeLog,1.4,1.5 ChangeLog.libgcj,1.1,1.2 Makefile.am,1.4,1.5 Makefile.in,1.4,1.5 acinclude.m4,1.3,1.4 aclocal.m4,1.3,1.4 configure,1.4,1.5 configure.in,1.4,1.5
Date: Wed, 05 Feb 2003 20:15:40 -0500

Update of /cvsroot/dotgnu-pnet/pnet/libffi
In directory subversions:/tmp/cvs-serv21586/libffi

Modified Files:
        ChangeLog ChangeLog.libgcj Makefile.am Makefile.in 
        acinclude.m4 aclocal.m4 configure configure.in 
Log Message:


Update the libffi library from the gcc CVS tree.


Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/libffi/ChangeLog,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** ChangeLog   11 Jun 2002 01:57:18 -0000      1.4
--- ChangeLog   6 Feb 2003 01:15:38 -0000       1.5
***************
*** 1,10 ****
! 2002-06-06  Ulrich Weigand  <address@hidden>
  
!       * src/s390/sysv.S: Save/restore %r6.  Add DWARF-2 unwind info.
  
! 2002-05-28  Bo Thorsen  <address@hidden>
  
!       * src/x86/ffi.c (ffi_prep_incoming_args_SYSV): Remove
!       the same unused avn var from this one too.
  
  2002-05-27  Roger Sayle  <address@hidden>
--- 1,246 ----
! 2003-01-31  Christian Cornelssen  <address@hidden>,
!           Andreas Schwab  <address@hidden>
  
!         * configure.in: Adjust command to source config-ml.in to account
!       for changes to the libffi_basedir definition.
!       (libffi_basedir): Remove ${srcdir} from value and include trailing
!       slash if nonempty.
!       
!         * configure: Regenerate.
! 
! 2003-01-29  Franz Sirl  <address@hidden>
! 
!       * src/powerpc/ppc_closure.S: Recode to fit shared libs.
! 
! 2003-01-28  Andrew Haley  <address@hidden>
! 
!       * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
!       * src/x86/ffi64.c (ffi_prep_closure): New.
!       (ffi_closure_UNIX64_inner): New.
!       * src/x86/unix64.S (ffi_closure_UNIX64): New.
! 
! 2003-01-27  Alexandre Oliva  <address@hidden>
! 
!       * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
!       Remove USE_LIBDIR conditional.
!       * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
!       * Makefile.in, configure: Rebuilt.
! 
! 2003-01027  David Edelsohn  <address@hidden>
! 
!       * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
!       * Makefile.in: Regenerate.
! 
! 2003-01-22  Andrew Haley  <address@hidden>
! 
!       * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
!       unwind info.
! 
! 2003-01-21  Andreas Tobler  <address@hidden>
! 
!       * src/powerpc/darwin.S: Add unwind info.
!       * src/powerpc/darwin_closure.S: Likewise.
! 
! 2003-01-14  Andrew Haley  <address@hidden>
! 
!       * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
!       (ffi_prep_cif_machdep): Likewise.
!       * src/x86/unix64.S: Add unwind info.
! 
! 2003-01-14  Andreas Jaeger  <address@hidden>
! 
!       * src/ffitest.c (main): Only use ffi_closures if those are
!       supported.
! 
! 2003-01-13 Andreas Tobler <address@hidden>
! 
!       * libffi/src/ffitest.c
!          add closure testcases
! 
! 2003-01-13 Kevin B. Hendricks <address@hidden>
! 
!       * libffi/src/powerpc/ffi.c
!          fix alignment bug for float (4 byte aligned iso 8 byte)
! 
! 2003-01-09  Geoffrey Keating  <address@hidden>
! 
!       * src/powerpc/ffi_darwin.c: Remove RCS version string.
!       * src/powerpc/darwin.S: Remove RCS version string.
! 
! 2003-01-03  Jeff Sturm  <address@hidden>
! 
!       * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
!       * src/ffitest.c (main): Use static storage for closure.
!       * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
!       * src/sparc/v8.S (ffi_closure_v8): New.
!       * src/sparc/v9.S (ffi_closure_v9): New.
! 
! 2002-11-10  Ranjit Mathew <address@hidden>
! 
!       * include/ffi.h.in: Added FFI_STDCALL ffi_type
!         enumeration for X86_WIN32.
!       * src/x86/win32.S: Added ffi_call_STDCALL function
!         definition.
!       * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
!         switch cases for recognising FFI_STDCALL and
!         calling ffi_call_STDCALL if target is X86_WIN32.
!       * src/ffitest.c (my_stdcall_strlen/stdcall_many):
!         stdcall versions of the "my_strlen" and "many"
!         test functions (for X86_WIN32).
!         Added test cases to test stdcall invocation using
!         these functions.
! 
! 2002-12-02  Kaz Kojima  <address@hidden>
! 
!       * src/sh/sysv.S: Add DWARF2 unwind info.
! 
! 2002-11-27  Ulrich Weigand  <address@hidden>
! 
!       * src/s390/sysv.S (.eh_frame section): Make section read-only.
! 
! 2002-11-26  Jim Wilson  <address@hidden>
! 
!       * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
! 
! 2002-11-23  H.J. Lu <address@hidden>
! 
!       * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
!       Include ../config/accross.m4.
!       * aclocal.m4; Rebuild.
!       * configure: Likewise.
! 
! 2002-11-15  Ulrich Weigand  <address@hidden>
! 
!       * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
! 
! 2002-11-11  DJ Delorie  <address@hidden>
! 
!       * configure.in: Look for common files in the right place.
! 
! 2002-10-08  Ulrich Weigand  <address@hidden>
! 
!       * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
!       raw data as _Jv_word values, not ffi_raw.
!       (ffi_java_ptrarray_to_raw): Likewise.
!       (ffi_java_rvalue_to_raw): New function.
!       (ffi_java_raw_call): Call it.
!       (ffi_java_raw_to_rvalue): New function.
!       (ffi_java_translate_args): Call it.
!       * src/ffitest.c (closure_test_fn): Interpret return value
!       as ffi_arg, not int.
!       * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
!       FFI_TYPE_POINTER case.
!       (ffi_closure_helper_SYSV): Likewise.  Also, assume return
!       values extended to word size.
! 
! 2002-10-02  Andreas Jaeger  <address@hidden>
  
!       * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
  
! 2002-10-01  Bo Thorsen  <address@hidden>
! 
!       * include/ffi.h.in: Fix i386 win32 compilation.
! 
! 2002-09-30  Ulrich Weigand  <address@hidden>
! 
!       * configure.in: Add s390x-*-linux-* target.
!       * configure: Regenerate.
!       * include/ffi.h.in: Define S390X for s390x targets.
!       (FFI_CLOSURES): Define for s390/s390x.
!       (FFI_TRAMPOLINE_SIZE): Likewise.
!       (FFI_NATIVE_RAW_API): Likewise.
!       * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
!       * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
!       * src/s390/ffi.c: Major rework of existing code.  Add support for
!       s390x targets.  Add closure support.
!       * src/s390/sysv.S: Likewise.
! 
! 2002-09-29  Richard Earnshaw  <address@hidden>
! 
!       * src/arm/sysv.S: Fix typo.
! 
! 2002-09-28  Richard Earnshaw  <address@hidden>
! 
!       * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
!       has defined __USER_LABEL_PREFIX__, then use it in CNAME.
!       (ffi_call_SYSV): Handle soft-float.
! 
! 2002-09-27  Bo Thorsen  <address@hidden>
! 
!       * include/ffi.h.in: Fix multilib x86-64 support.
! 
! 2002-09-22  Kaveh R. Ghazi  <address@hidden>
! 
!       * Makefile.am (all-multi): Fix multilib parallel build.
! 
! 2002-07-19  Kaz Kojima  <address@hidden>
! 
!       * configure.in (sh[34]*-*-linux*): Add brackets.
!       * configure: Regenerate.
! 
! 2002-07-18  Kaz Kojima  <address@hidden>
! 
!       * Makefile.am: Add SH support.
!       * Makefile.in: Regenerate.
!       * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
!       * configure: Regenerate.
!       * include/ffi.h.in: Add SH support.
!       * src/sh/ffi.c: New file.
!       * src/sh/sysv.S: New file.
!       * src/types.c: Add SH support.
! 
! 2002-07-16  Bo Thorsen  <address@hidden>
! 
!       * src/x86/ffi64.c: New file that adds x86-64 support.
!       * src/x86/unix64.S: New file that handles argument setup for
!       x86-64.
!       * src/x86/sysv.S: Don't use this on x86-64.
!       * src/x86/ffi.c: Don't use this on x86-64.
!       Remove unused vars.
!       * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
!       for x86-64.
!       * src/ffitest.c (struct6): New test that tests a special case in
!       the x86-64 ABI.
!       (struct7): Likewise.
!       (struct8): Likewise.
!       (struct9): Likewise.
!       (closure_test_fn): Silence warning about this when it's not used.
!       (main): Add the new tests.
!       (main): Fix a couple of wrong casts and silence some compiler warnings.
!       * include/ffi.h.in: Add x86-64 ABI definition.
!       * fficonfig.h.in: Regenerate.
!       * Makefile.am: Add x86-64 support.
!       * configure.in: Likewise.
!       * Makefile.in: Regenerate.
!       * configure: Likewise.
! 
! 2002-06-24  Bo Thorsen  <address@hidden>
! 
!       * src/types.c: Merge settings for similar architectures.
!       Add x86-64 sizes and alignments.
! 
! 2002-06-23  Bo Thorsen  <address@hidden>
! 
!       * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
!       * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
!       * src/mips/ffi.c (ffi_prep_args): Likewise.
!       * src/m68k/ffi.c (ffi_prep_args): Likewise.
! 
! 2002-07-18  H.J. Lu  (address@hidden)
! 
!       * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
!       (libffi_la_SOURCES): Support MIPS_LINUX.
!       (libffi_convenience_la_SOURCES): Likewise.
!       * Makefile.in: Regenerated.
! 
!       * configure.in (mips64*-*): Skip.
!       (mips*-*-linux*): New.
!       * configure: Regenerated.
! 
!       * src/mips/ffi.c: Include <sgidefs.h>.
! 
! 2002-06-06  Ulrich Weigand  <address@hidden>
! 
!       * src/s390/sysv.S: Save/restore %r6.  Add DWARF-2 unwind info.
  
  2002-05-27  Roger Sayle  <address@hidden>
***************
*** 84,88 ****
        * configure.in: Enable i*86-*-netbsdelf*.
        * configure: Rebuilt.
!       
  2002-03-29  David Billinghurst <address@hidden>
  
--- 320,324 ----
        * configure.in: Enable i*86-*-netbsdelf*.
        * configure: Rebuilt.
! 
  2002-03-29  David Billinghurst <address@hidden>
  
***************
*** 100,104 ****
        * Makefile.am: libfficonvenience -> libffi_convenience.
        * Makefile.in: Rebuilt.
!       
        * Makefile.am: Define ffitest_OBJECTS.
        * Makefile.in: Rebuilt.
--- 336,340 ----
        * Makefile.am: libfficonvenience -> libffi_convenience.
        * Makefile.in: Rebuilt.
! 
        * Makefile.am: Define ffitest_OBJECTS.
        * Makefile.in: Rebuilt.
***************
*** 117,126 ****
        * src/powerpc/aix_closure.S: New file.
        * src/powerpc/darwin_closure.S: New file.
!       
  2002-02-24  Jeff Sturm  <address@hidden>
  
        * include/ffi.h.in: Add typedef for ffi_arg.
        * src/ffitest.c (main): Declare rint with ffi_arg.
!  
  2002-02-21  Andreas Tobler  <address@hidden>
  
--- 353,362 ----
        * src/powerpc/aix_closure.S: New file.
        * src/powerpc/darwin_closure.S: New file.
! 
  2002-02-24  Jeff Sturm  <address@hidden>
  
        * include/ffi.h.in: Add typedef for ffi_arg.
        * src/ffitest.c (main): Declare rint with ffi_arg.
! 
  2002-02-21  Andreas Tobler  <address@hidden>
  
***************
*** 189,193 ****
        * configure.in: Recognize sparc*-sun-* host.
        * configure: Regenerate.
!       
  2001-06-06  Andrew Haley  <address@hidden>
  
--- 425,429 ----
        * configure.in: Recognize sparc*-sun-* host.
        * configure: Regenerate.
! 
  2001-06-06  Andrew Haley  <address@hidden>
  
***************
*** 340,345 ****
  2000-05-11  Scott Bambrough  <address@hidden>
  
!       * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to 
!       memory correctly.  Use conditional instructions, not branches where 
        possible.
  
--- 576,581 ----
  2000-05-11  Scott Bambrough  <address@hidden>
  
!       * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
!       memory correctly.  Use conditional instructions, not branches where
        possible.
  
***************
*** 500,504 ****
  
        * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
!       FFI_TYPE_UINT64.  
  
        * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
--- 736,740 ----
  
        * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
!       FFI_TYPE_UINT64.
  
        * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
***************
*** 510,514 ****
        (ffi_closure, ffi_raw_closure): New types.
        (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
!       
        * configure.in: Add check for endianness and sizeof void*.
  
--- 746,750 ----
        (ffi_closure, ffi_raw_closure): New types.
        (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
! 
        * configure.in: Add check for endianness and sizeof void*.
  

Index: ChangeLog.libgcj
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/libffi/ChangeLog.libgcj,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** ChangeLog.libgcj    10 May 2002 23:04:40 -0000      1.1
--- ChangeLog.libgcj    6 Feb 2003 01:15:38 -0000       1.2
***************
*** 1,2 ****
--- 1,9 ----
+ 2002-01-27  Alexandre Oliva  <address@hidden>
+ 
+       * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
+       Remove USE_LIBDIR conditional.
+       * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
+       * Makefile.in, configure: Rebuilt.
+ 
  Mon Aug  9 18:33:38 1999  Rainer Orth  <address@hidden>
  

Index: Makefile.am
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/libffi/Makefile.am,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** Makefile.am 10 May 2002 23:04:40 -0000      1.4
--- Makefile.am 6 Feb 2003 01:15:38 -0000       1.5
***************
*** 9,12 ****
--- 9,13 ----
                src/sparc/ffi.c src/sparc/v8.S src/sparc/v9.S \
                src/x86/ffi.c src/x86/sysv.S src/x86/win32.S \
+               src/x86/ffi64.c src/x86/unix64.S \
                src/alpha/ffi.c src/alpha/osf.S \
                src/m68k/ffi.c src/m68k/sysv.S \
***************
*** 15,21 ****
                src/powerpc/ffi_darwin.c \
                src/powerpc/darwin.S src/powerpc/aix.S \
!               src/powerpc/darwin_closure.S src/powerpc/aix_closures.S \
                src/arm/ffi.c src/arm/sysv.S \
!               src/s390/ffi.c src/s390/sysv.S
  
  VPATH = @srcdir@:@srcdir@/src:@srcdir@/src/@TARGETDIR@
--- 16,23 ----
                src/powerpc/ffi_darwin.c \
                src/powerpc/darwin.S src/powerpc/aix.S \
!               src/powerpc/darwin_closure.S src/powerpc/aix_closure.S \
                src/arm/ffi.c src/arm/sysv.S \
!               src/s390/ffi.c src/s390/sysv.S \
!               src/sh/ffi.c src/sh/sysv.S
  
  VPATH = @srcdir@:@srcdir@/src:@srcdir@/src/@TARGETDIR@
***************
*** 75,87 ****
  MULTICLEAN = true
  
- ## Install a library built with a cross compiler in tooldir, not
- ## libdir.
- if USE_LIBDIR
- toolexeclibdir = $(libdir)$(MULTISUBDIR)
- else
- toolexecdir = $(exec_prefix)/$(target_alias)
- toolexeclibdir = $(toolexecdir)/lib$(MULTISUBDIR)
- endif
- 
  toolexeclib_LTLIBRARIES = libffi.la
  noinst_LTLIBRARIES = libffi_convenience.la
--- 77,80 ----
***************
*** 94,97 ****
--- 87,91 ----
  
  TARGET_SRC_MIPS_GCC = src/mips/ffi.c src/mips/o32.S src/mips/n32.S
+ TARGET_SRC_MIPS_LINUX = src/mips/ffi.c src/mips/o32.S
  TARGET_SRC_MIPS_SGI = src/mips/ffi.c src/mips/o32.s src/mips/n32.s
  TARGET_SRC_X86 = src/x86/ffi.c src/x86/sysv.S
***************
*** 102,109 ****
  TARGET_SRC_M68K = src/m68k/ffi.c src/m68k/sysv.S
  TARGET_SRC_POWERPC = src/powerpc/ffi.c src/powerpc/sysv.S 
src/powerpc/ppc_closure.S
! TARGET_SRC_POWERPC_AIX = src/powerpc/ffi_darwin.c src/powerpc/aix.S 
src/powerpc/aix_closures.S
  TARGET_SRC_POWERPC_DARWIN = src/powerpc/ffi_darwin.c src/powerpc/darwin.S 
src/powerpc/darwin_closure.S
  TARGET_SRC_ARM =  src/arm/sysv.S src/arm/ffi.c
  TARGET_SRC_S390 =  src/s390/sysv.S src/s390/ffi.c
  
  ##libffi_la_SOURCES = src/debug.c src/prep_cif.c src/types.c 
$(address@hidden@)
--- 96,105 ----
  TARGET_SRC_M68K = src/m68k/ffi.c src/m68k/sysv.S
  TARGET_SRC_POWERPC = src/powerpc/ffi.c src/powerpc/sysv.S 
src/powerpc/ppc_closure.S
! TARGET_SRC_POWERPC_AIX = src/powerpc/ffi_darwin.c src/powerpc/aix.S 
src/powerpc/aix_closure.S
  TARGET_SRC_POWERPC_DARWIN = src/powerpc/ffi_darwin.c src/powerpc/darwin.S 
src/powerpc/darwin_closure.S
  TARGET_SRC_ARM =  src/arm/sysv.S src/arm/ffi.c
  TARGET_SRC_S390 =  src/s390/sysv.S src/s390/ffi.c
+ TARGET_SRC_X86_64 = src/x86/ffi64.c src/x86/unix64.S src/x86/ffi.c 
src/x86/sysv.S
+ TARGET_SRC_SH =  src/sh/sysv.S src/sh/ffi.c
  
  ##libffi_la_SOURCES = src/debug.c src/prep_cif.c src/types.c 
$(address@hidden@)
***************
*** 115,118 ****
--- 111,118 ----
  libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) 
$(TARGET_SRC_MIPS_GCC)
  endif
+ if MIPS_LINUX
+ libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_MIPS_LINUX)
+ libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) 
$(TARGET_SRC_MIPS_LINUX)
+ endif
  if MIPS_SGI
  libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_MIPS_SGI)
***************
*** 163,166 ****
--- 163,174 ----
  libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_S390)
  endif
+ if X86_64
+ libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_X86_64)
+ libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) 
$(TARGET_SRC_X86_64)
+ endif
+ if SH
+ libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_SH)
+ libfficonvenience_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_SH)
+ endif
  
  AM_CFLAGS = -fexceptions
***************
*** 202,206 ****
  
  all-multi:
!       $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
  install-multi:
        $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
--- 210,214 ----
  
  all-multi:
!       : $(MAKE) ; exec $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
  install-multi:
        $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do

Index: Makefile.in
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/libffi/Makefile.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** Makefile.in 10 May 2002 23:04:40 -0000      1.4
--- Makefile.in 6 Feb 2003 01:15:38 -0000       1.5
***************
*** 81,84 ****
--- 81,86 ----
  VERSION = @VERSION@
  libffi_basedir = @libffi_basedir@
+ toolexecdir = @toolexecdir@
+ toolexeclibdir = @toolexeclibdir@
  
  AUTOMAKE_OPTIONS = cygnus
***************
*** 90,93 ****
--- 92,96 ----
                src/sparc/ffi.c src/sparc/v8.S src/sparc/v9.S \
                src/x86/ffi.c src/x86/sysv.S src/x86/win32.S \
+               src/x86/ffi64.c src/x86/unix64.S \
                src/alpha/ffi.c src/alpha/osf.S \
                src/m68k/ffi.c src/m68k/sysv.S \
***************
*** 96,102 ****
                src/powerpc/ffi_darwin.c \
                src/powerpc/darwin.S src/powerpc/aix.S \
!               src/powerpc/darwin_closure.S src/powerpc/aix_closures.S \
                src/arm/ffi.c src/arm/sysv.S \
!               src/s390/ffi.c src/s390/sysv.S
  
  
--- 99,106 ----
                src/powerpc/ffi_darwin.c \
                src/powerpc/darwin.S src/powerpc/aix.S \
!               src/powerpc/darwin_closure.S src/powerpc/aix_closure.S \
                src/arm/ffi.c src/arm/sysv.S \
!               src/s390/ffi.c src/s390/sysv.S \
!               src/sh/ffi.c src/sh/sysv.S
  
  
***************
*** 151,157 ****
  MULTIDO = true
  MULTICLEAN = true
- @address@hidden = @address@hidden(libdir)$(MULTISUBDIR)
- @address@hidden = @address@hidden(toolexecdir)/lib$(MULTISUBDIR)
- @address@hidden = @address@hidden(exec_prefix)/$(target_alias)
  
  toolexeclib_LTLIBRARIES = libffi.la
--- 155,158 ----
***************
*** 165,168 ****
--- 166,170 ----
  
  TARGET_SRC_MIPS_GCC = src/mips/ffi.c src/mips/o32.S src/mips/n32.S
+ TARGET_SRC_MIPS_LINUX = src/mips/ffi.c src/mips/o32.S
  TARGET_SRC_MIPS_SGI = src/mips/ffi.c src/mips/o32.s src/mips/n32.s
  TARGET_SRC_X86 = src/x86/ffi.c src/x86/sysv.S
***************
*** 173,180 ****
  TARGET_SRC_M68K = src/m68k/ffi.c src/m68k/sysv.S
  TARGET_SRC_POWERPC = src/powerpc/ffi.c src/powerpc/sysv.S 
src/powerpc/ppc_closure.S
! TARGET_SRC_POWERPC_AIX = src/powerpc/ffi_darwin.c src/powerpc/aix.S 
src/powerpc/aix_closures.S
  TARGET_SRC_POWERPC_DARWIN = src/powerpc/ffi_darwin.c src/powerpc/darwin.S 
src/powerpc/darwin_closure.S
  TARGET_SRC_ARM = src/arm/sysv.S src/arm/ffi.c
  TARGET_SRC_S390 = src/s390/sysv.S src/s390/ffi.c
  
  libffi_la_common_SOURCES = src/debug.c src/prep_cif.c src/types.c \
--- 175,184 ----
  TARGET_SRC_M68K = src/m68k/ffi.c src/m68k/sysv.S
  TARGET_SRC_POWERPC = src/powerpc/ffi.c src/powerpc/sysv.S 
src/powerpc/ppc_closure.S
! TARGET_SRC_POWERPC_AIX = src/powerpc/ffi_darwin.c src/powerpc/aix.S 
src/powerpc/aix_closure.S
  TARGET_SRC_POWERPC_DARWIN = src/powerpc/ffi_darwin.c src/powerpc/darwin.S 
src/powerpc/darwin_closure.S
  TARGET_SRC_ARM = src/arm/sysv.S src/arm/ffi.c
  TARGET_SRC_S390 = src/s390/sysv.S src/s390/ffi.c
+ TARGET_SRC_X86_64 = src/x86/ffi64.c src/x86/unix64.S src/x86/ffi.c 
src/x86/sysv.S
+ TARGET_SRC_SH = src/sh/sysv.S src/sh/ffi.c
  
  libffi_la_common_SOURCES = src/debug.c src/prep_cif.c src/types.c \
***************
*** 182,185 ****
--- 186,190 ----
  
  @address@hidden = @address@hidden(libffi_la_common_SOURCES) 
$(TARGET_SRC_MIPS_GCC)
+ @address@hidden = @address@hidden(libffi_la_common_SOURCES) 
$(TARGET_SRC_MIPS_LINUX)
  @address@hidden = @address@hidden(libffi_la_common_SOURCES) 
$(TARGET_SRC_MIPS_SGI)
  @address@hidden = @address@hidden(libffi_la_common_SOURCES) $(TARGET_SRC_X86)
***************
*** 194,198 ****
--- 199,206 ----
  @address@hidden = @address@hidden(libffi_la_common_SOURCES) $(TARGET_SRC_ARM)
  @address@hidden = @address@hidden(libffi_la_common_SOURCES) $(TARGET_SRC_S390)
+ @address@hidden = @address@hidden(libffi_la_common_SOURCES) 
$(TARGET_SRC_X86_64)
+ @address@hidden = @address@hidden(libffi_la_common_SOURCES) $(TARGET_SRC_SH)
  @address@hidden = @address@hidden(libffi_la_common_SOURCES) 
$(TARGET_SRC_MIPS_GCC)
+ @address@hidden = @address@hidden(libffi_la_common_SOURCES) 
$(TARGET_SRC_MIPS_LINUX)
  @address@hidden = @address@hidden(libffi_la_common_SOURCES) 
$(TARGET_SRC_MIPS_SGI)
  @address@hidden = @address@hidden(libffi_la_common_SOURCES) $(TARGET_SRC_X86)
***************
*** 207,210 ****
--- 215,220 ----
  @address@hidden = @address@hidden(libffi_la_common_SOURCES) $(TARGET_SRC_ARM)
  @address@hidden = @address@hidden(libffi_la_common_SOURCES) $(TARGET_SRC_S390)
+ @address@hidden = @address@hidden(libffi_la_common_SOURCES) 
$(TARGET_SRC_X86_64)
+ @address@hidden = @address@hidden(libffi_la_common_SOURCES) $(TARGET_SRC_SH)
  
  AM_CFLAGS = -fexceptions
***************
*** 214,218 ****
  INCLUDES = -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
! mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
  CONFIG_HEADER = fficonfig.h
  CONFIG_CLEAN_FILES = 
--- 224,228 ----
  INCLUDES = -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
! mkinstalldirs = $(SHELL) $(top_srcdir)/${libffi_basedir}/../mkinstalldirs
  CONFIG_HEADER = fficonfig.h
  CONFIG_CLEAN_FILES = 
***************
*** 226,237 ****
  libffi_convenience_la_LDFLAGS = 
  libffi_convenience_la_LIBADD = 
- @address@hidden =  src/debug.lo \
- @address@hidden/prep_cif.lo src/types.lo src/raw_api.lo \
- @address@hidden/java_raw_api.lo src/mips/ffi.lo src/mips/o32.lo \
- @address@hidden/mips/n32.lo
- @address@hidden =  src/debug.lo \
- @address@hidden/prep_cif.lo src/types.lo src/raw_api.lo \
- @address@hidden/java_raw_api.lo src/powerpc/ffi_darwin.lo \
- @address@hidden/powerpc/aix.lo src/powerpc/aix_closures.lo
  @address@hidden =  src/debug.lo \
  @address@hidden/prep_cif.lo src/types.lo src/raw_api.lo \
--- 236,239 ----
***************
*** 240,318 ****
  @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
  @address@hidden/ia64/ffi.lo src/ia64/unix.lo
! @address@hidden =  src/debug.lo \
! @address@hidden/prep_cif.lo src/types.lo src/raw_api.lo \
! @address@hidden/java_raw_api.lo src/powerpc/ffi_darwin.lo \
! @address@hidden/powerpc/darwin.lo \
! @address@hidden/powerpc/darwin_closure.lo
! @address@hidden =  src/debug.lo \
! @address@hidden/prep_cif.lo src/types.lo src/raw_api.lo \
! @address@hidden/java_raw_api.lo src/mips/ffi.lo src/mips/o32.lo \
! @address@hidden/mips/n32.lo
  @address@hidden =  src/debug.lo src/prep_cif.lo \
  @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
  @address@hidden/s390/sysv.lo src/s390/ffi.lo
  @address@hidden =  src/debug.lo src/prep_cif.lo \
  @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
  @address@hidden/x86/ffi.lo src/x86/sysv.lo
  @address@hidden =  src/debug.lo \
  @address@hidden/prep_cif.lo src/types.lo src/raw_api.lo \
  @address@hidden/java_raw_api.lo src/x86/ffi.lo src/x86/win32.lo
! @address@hidden =  src/debug.lo src/prep_cif.lo \
! @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
! @address@hidden/arm/sysv.lo src/arm/ffi.lo
  @address@hidden =  src/debug.lo \
  @address@hidden/prep_cif.lo src/types.lo src/raw_api.lo \
  @address@hidden/java_raw_api.lo src/sparc/ffi.lo src/sparc/v8.lo \
  @address@hidden/sparc/v9.lo
! @address@hidden =  src/debug.lo \
! @address@hidden/prep_cif.lo src/types.lo src/raw_api.lo \
! @address@hidden/java_raw_api.lo src/powerpc/ffi.lo \
! @address@hidden/powerpc/sysv.lo src/powerpc/ppc_closure.lo
! @address@hidden =  src/debug.lo src/prep_cif.lo \
! @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
! @address@hidden/m68k/ffi.lo src/m68k/sysv.lo
  libffi_la_LIBADD = 
! @address@hidden =  src/debug.lo src/prep_cif.lo \
! @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
! @address@hidden/mips/ffi.lo src/mips/o32.lo src/mips/n32.lo
! @address@hidden =  src/debug.lo src/prep_cif.lo \
! @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
! @address@hidden/powerpc/ffi_darwin.lo src/powerpc/aix.lo \
! @address@hidden/powerpc/aix_closures.lo
! @address@hidden =  src/debug.lo src/prep_cif.lo \
! @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
! @address@hidden/alpha/ffi.lo src/alpha/osf.lo
  @address@hidden =  src/debug.lo src/prep_cif.lo \
  @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
  @address@hidden/ia64/ffi.lo src/ia64/unix.lo
- @address@hidden =  src/debug.lo src/prep_cif.lo \
- @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
- @address@hidden/powerpc/ffi_darwin.lo src/powerpc/darwin.lo \
- @address@hidden/powerpc/darwin_closure.lo
- @address@hidden =  src/debug.lo src/prep_cif.lo \
- @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
- @address@hidden/mips/ffi.lo src/mips/o32.lo src/mips/n32.lo
- @address@hidden =  src/debug.lo src/prep_cif.lo \
- @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
- @address@hidden/s390/sysv.lo src/s390/ffi.lo
  @address@hidden =  src/debug.lo src/prep_cif.lo src/types.lo \
  @address@hidden/raw_api.lo src/java_raw_api.lo src/x86/ffi.lo \
  @address@hidden/x86/sysv.lo
- @address@hidden =  src/debug.lo src/prep_cif.lo \
- @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
- @address@hidden/x86/ffi.lo src/x86/win32.lo
- @address@hidden =  src/debug.lo src/prep_cif.lo src/types.lo \
- @address@hidden/raw_api.lo src/java_raw_api.lo src/arm/sysv.lo \
- @address@hidden/arm/ffi.lo
- @address@hidden =  src/debug.lo src/prep_cif.lo \
- @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
- @address@hidden/sparc/ffi.lo src/sparc/v8.lo src/sparc/v9.lo
  @address@hidden =  src/debug.lo src/prep_cif.lo \
  @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
  @address@hidden/powerpc/ffi.lo src/powerpc/sysv.lo \
  @address@hidden/powerpc/ppc_closure.lo
  @address@hidden =  src/debug.lo src/prep_cif.lo \
  @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
  @address@hidden/m68k/ffi.lo src/m68k/sysv.lo
  noinst_PROGRAMS =  ffitest$(EXEEXT)
  PROGRAMS =  $(noinst_PROGRAMS)
--- 242,345 ----
  @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
  @address@hidden/ia64/ffi.lo src/ia64/unix.lo
! @address@hidden =  src/debug.lo \
! @address@hidden/prep_cif.lo src/types.lo src/raw_api.lo \
! @address@hidden/java_raw_api.lo src/mips/ffi.lo src/mips/o32.lo \
! @address@hidden/mips/n32.lo
  @address@hidden =  src/debug.lo src/prep_cif.lo \
  @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
  @address@hidden/s390/sysv.lo src/s390/ffi.lo
+ @address@hidden =  src/debug.lo src/prep_cif.lo \
+ @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
+ @address@hidden/m68k/ffi.lo src/m68k/sysv.lo
  @address@hidden =  src/debug.lo src/prep_cif.lo \
  @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
  @address@hidden/x86/ffi.lo src/x86/sysv.lo
+ @address@hidden =  src/debug.lo \
+ @address@hidden/prep_cif.lo src/types.lo src/raw_api.lo \
+ @address@hidden/java_raw_api.lo src/powerpc/ffi.lo \
+ @address@hidden/powerpc/sysv.lo src/powerpc/ppc_closure.lo
+ @address@hidden =  src/debug.lo \
+ @address@hidden/prep_cif.lo src/types.lo src/raw_api.lo \
+ @address@hidden/java_raw_api.lo src/mips/ffi.lo src/mips/o32.lo
  @address@hidden =  src/debug.lo \
  @address@hidden/prep_cif.lo src/types.lo src/raw_api.lo \
  @address@hidden/java_raw_api.lo src/x86/ffi.lo src/x86/win32.lo
! @address@hidden =  src/debug.lo \
! @address@hidden/prep_cif.lo src/types.lo src/raw_api.lo \
! @address@hidden/java_raw_api.lo src/x86/ffi64.lo src/x86/unix64.lo \
! @address@hidden/x86/ffi.lo src/x86/sysv.lo
  @address@hidden =  src/debug.lo \
  @address@hidden/prep_cif.lo src/types.lo src/raw_api.lo \
  @address@hidden/java_raw_api.lo src/sparc/ffi.lo src/sparc/v8.lo \
  @address@hidden/sparc/v9.lo
! @address@hidden =  src/debug.lo \
! @address@hidden/prep_cif.lo src/types.lo src/raw_api.lo \
! @address@hidden/java_raw_api.lo src/powerpc/ffi_darwin.lo \
! @address@hidden/powerpc/aix.lo src/powerpc/aix_closure.lo
! @address@hidden =  src/debug.lo \
! @address@hidden/prep_cif.lo src/types.lo src/raw_api.lo \
! @address@hidden/java_raw_api.lo src/mips/ffi.lo src/mips/o32.lo \
! @address@hidden/mips/n32.lo
! @address@hidden =  src/debug.lo \
! @address@hidden/prep_cif.lo src/types.lo src/raw_api.lo \
! @address@hidden/java_raw_api.lo src/powerpc/ffi_darwin.lo \
! @address@hidden/powerpc/darwin.lo \
! @address@hidden/powerpc/darwin_closure.lo
! @address@hidden =  src/debug.lo src/prep_cif.lo \
! @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
! @address@hidden/arm/sysv.lo src/arm/ffi.lo
  libffi_la_LIBADD = 
! @address@hidden =  src/debug.lo src/prep_cif.lo src/types.lo \
! @address@hidden/raw_api.lo src/java_raw_api.lo src/sh/sysv.lo \
! @address@hidden/sh/ffi.lo
  @address@hidden =  src/debug.lo src/prep_cif.lo \
  @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
  @address@hidden/ia64/ffi.lo src/ia64/unix.lo
  @address@hidden =  src/debug.lo src/prep_cif.lo src/types.lo \
  @address@hidden/raw_api.lo src/java_raw_api.lo src/x86/ffi.lo \
  @address@hidden/x86/sysv.lo
  @address@hidden =  src/debug.lo src/prep_cif.lo \
  @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
  @address@hidden/powerpc/ffi.lo src/powerpc/sysv.lo \
  @address@hidden/powerpc/ppc_closure.lo
+ @address@hidden =  src/debug.lo src/prep_cif.lo \
+ @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
+ @address@hidden/mips/ffi.lo src/mips/o32.lo
+ @address@hidden =  src/debug.lo src/prep_cif.lo \
+ @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
+ @address@hidden/sparc/ffi.lo src/sparc/v8.lo src/sparc/v9.lo
+ @address@hidden =  src/debug.lo src/prep_cif.lo \
+ @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
+ @address@hidden/powerpc/ffi_darwin.lo src/powerpc/aix.lo \
+ @address@hidden/powerpc/aix_closure.lo
+ @address@hidden =  src/debug.lo src/prep_cif.lo \
+ @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
+ @address@hidden/mips/ffi.lo src/mips/o32.lo src/mips/n32.lo
+ @address@hidden =  src/debug.lo src/prep_cif.lo src/types.lo \
+ @address@hidden/raw_api.lo src/java_raw_api.lo src/arm/sysv.lo \
+ @address@hidden/arm/ffi.lo
+ @address@hidden =  src/debug.lo src/prep_cif.lo \
+ @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
+ @address@hidden/alpha/ffi.lo src/alpha/osf.lo
+ @address@hidden =  src/debug.lo src/prep_cif.lo \
+ @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
+ @address@hidden/mips/ffi.lo src/mips/o32.lo src/mips/n32.lo
+ @address@hidden =  src/debug.lo src/prep_cif.lo \
+ @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
+ @address@hidden/s390/sysv.lo src/s390/ffi.lo
  @address@hidden =  src/debug.lo src/prep_cif.lo \
  @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
  @address@hidden/m68k/ffi.lo src/m68k/sysv.lo
+ @address@hidden =  src/debug.lo src/prep_cif.lo \
+ @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
+ @address@hidden/x86/ffi.lo src/x86/win32.lo
+ @address@hidden =  src/debug.lo src/prep_cif.lo \
+ @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
+ @address@hidden/x86/ffi64.lo src/x86/unix64.lo src/x86/ffi.lo \
+ @address@hidden/x86/sysv.lo
+ @address@hidden =  src/debug.lo src/prep_cif.lo \
+ @address@hidden/types.lo src/raw_api.lo src/java_raw_api.lo \
+ @address@hidden/powerpc/ffi_darwin.lo src/powerpc/darwin.lo \
+ @address@hidden/powerpc/darwin_closure.lo
  noinst_PROGRAMS =  ffitest$(EXEEXT)
  PROGRAMS =  $(noinst_PROGRAMS)
***************
*** 590,594 ****
        $(mkinstalldirs) $(distdir)/src/alpha $(distdir)/src/arm \
           $(distdir)/src/m68k $(distdir)/src/mips \
!          $(distdir)/src/powerpc $(distdir)/src/s390 \
           $(distdir)/src/sparc $(distdir)/src/x86
        @for file in $(DISTFILES); do \
--- 617,621 ----
        $(mkinstalldirs) $(distdir)/src/alpha $(distdir)/src/arm \
           $(distdir)/src/m68k $(distdir)/src/mips \
!          $(distdir)/src/powerpc $(distdir)/src/s390 $(distdir)/src/sh \
           $(distdir)/src/sparc $(distdir)/src/x86
        @for file in $(DISTFILES); do \
***************
*** 746,750 ****
  
  all-multi:
!       $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
  install-multi:
        $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
--- 773,777 ----
  
  all-multi:
!       : $(MAKE) ; exec $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
  install-multi:
        $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do

Index: acinclude.m4
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/libffi/acinclude.m4,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** acinclude.m4        10 May 2002 23:04:40 -0000      1.3
--- acinclude.m4        6 Feb 2003 01:15:38 -0000       1.4
***************
*** 5,8 ****
--- 5,11 ----
  ifelse(yes,no,[
  AC_DEFUN([AC_PROG_LIBTOOL],)
+ AC_DEFUN([AM_PROG_LIBTOOL],)
  AC_SUBST(LIBTOOL)
  ])
+ 
+ sinclude(../config/accross.m4)

Index: aclocal.m4
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/libffi/aclocal.m4,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** aclocal.m4  10 May 2002 23:04:40 -0000      1.3
--- aclocal.m4  6 Feb 2003 01:15:38 -0000       1.4
***************
*** 1,5 ****
! dnl aclocal.m4 generated automatically by aclocal 1.4
  
! dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  dnl This file is free software; the Free Software Foundation
  dnl gives unlimited permission to copy and/or distribute it,
--- 1,5 ----
! dnl aclocal.m4 generated automatically by aclocal 1.4-p5
  
! dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  dnl This file is free software; the Free Software Foundation
  dnl gives unlimited permission to copy and/or distribute it,
***************
*** 17,122 ****
  ifelse(yes,no,[
  AC_DEFUN([AC_PROG_LIBTOOL],)
  AC_SUBST(LIBTOOL)
  ])
  
! AC_DEFUN([AC_COMPILE_CHECK_SIZEOF],
! [changequote(<<, >>)dnl
! dnl The name to #define.
! define(<<AC_TYPE_NAME>>, translit(sizeof_$1, [a-z *], [A-Z_P]))dnl
! dnl The cache variable name.
! define(<<AC_CV_NAME>>, translit(ac_cv_sizeof_$1, [ *], [_p]))dnl
! changequote([, ])dnl
! AC_MSG_CHECKING(size of $1)
! AC_CACHE_VAL(AC_CV_NAME,
! [for ac_size in 4 8 1 2 16 12 $2 ; do # List sizes in rough order of 
prevalence.
!   AC_TRY_COMPILE([#include "confdefs.h"
! #include <sys/types.h>
! $2
! ], [switch (0) case 0: case (sizeof ($1) == $ac_size):;], AC_CV_NAME=$ac_size)
!   if test x$AC_CV_NAME != x ; then break; fi
! done
! ])
! if test x$AC_CV_NAME = x ; then
!   AC_MSG_ERROR([cannot determine a size for $1])
! fi
! AC_MSG_RESULT($AC_CV_NAME)
! AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME, [The number of bytes in type 
$1])
! undefine([AC_TYPE_NAME])dnl
! undefine([AC_CV_NAME])dnl
! ])
! 
! AC_DEFUN([AC_C_BIGENDIAN_CROSS],
! [AC_CACHE_CHECK(whether byte ordering is bigendian, ac_cv_c_bigendian,
! [ac_cv_c_bigendian=unknown
! # See if sys/param.h defines the BYTE_ORDER macro.
! AC_TRY_COMPILE([#include <sys/types.h>
! #include <sys/param.h>], [
! #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
!  bogus endian macros
! #endif], [# It does; now see whether it defined to BIG_ENDIAN or not.
! AC_TRY_COMPILE([#include <sys/types.h>
! #include <sys/param.h>], [
! #if BYTE_ORDER != BIG_ENDIAN
!  not big endian
! #endif], ac_cv_c_bigendian=yes, ac_cv_c_bigendian=no)])
! if test $ac_cv_c_bigendian = unknown; then
! AC_TRY_RUN([main () {
!   /* Are we little or big endian?  From Harbison&Steele.  */
!   union
!   {
!     long l;
!     char c[sizeof (long)];
!   } u;
!   u.l = 1;
!   exit (u.c[sizeof (long) - 1] == 1);
! }], ac_cv_c_bigendian=no, ac_cv_c_bigendian=yes,
! [ echo $ac_n "cross-compiling... " 2>&AC_FD_MSG ])
! fi])
! if test $ac_cv_c_bigendian = unknown; then
! AC_MSG_CHECKING(to probe for byte ordering)
! [
! cat >conftest.c <<EOF
! short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
! short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
! void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
! short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
! short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
! void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
! int main() { _ascii (); _ebcdic (); return 0; }
! EOF
! ] if test -f conftest.c ; then
!      if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; 
then
!         if test `grep -l BIGenDianSyS conftest.o` ; then
!            echo $ac_n ' big endian probe OK, ' 1>&AC_FD_MSG
!            ac_cv_c_bigendian=yes
!         fi
!         if test `grep -l LiTTleEnDian conftest.o` ; then
!            echo $ac_n ' little endian probe OK, ' 1>&AC_FD_MSG
!            if test $ac_cv_c_bigendian = yes ; then
!             ac_cv_c_bigendian=unknown;
!            else
!             ac_cv_c_bigendian=no
!            fi
!         fi
!         echo $ac_n 'guessing bigendian ...  ' >&AC_FD_MSG
!      fi
!   fi
! AC_MSG_RESULT($ac_cv_c_bigendian)
! fi
! if test $ac_cv_c_bigendian = yes; then
!   AC_DEFINE(WORDS_BIGENDIAN, 1, [whether byteorder is bigendian])
!   BYTEORDER=4321
! else
!   BYTEORDER=1234
! fi
! AC_DEFINE_UNQUOTED(BYTEORDER, $BYTEORDER, [1234 = LIL_ENDIAN, 4321 = 
BIGENDIAN])
! if test $ac_cv_c_bigendian = unknown; then
!   AC_MSG_ERROR(unknown endianess - sorry, please pre-set ac_cv_c_bigendian)
! fi
! ])
  
  # Like AC_CONFIG_HEADER, but automatically create stamp file.
  
! AC_DEFUN(AM_CONFIG_HEADER,
  [AC_PREREQ([2.12])
  AC_CONFIG_HEADER([$1])
--- 17,29 ----
  ifelse(yes,no,[
  AC_DEFUN([AC_PROG_LIBTOOL],)
+ AC_DEFUN([AM_PROG_LIBTOOL],)
  AC_SUBST(LIBTOOL)
  ])
  
! sinclude(../config/accross.m4)
  
  # Like AC_CONFIG_HEADER, but automatically create stamp file.
  
! AC_DEFUN([AM_CONFIG_HEADER],
  [AC_PREREQ([2.12])
  AC_CONFIG_HEADER([$1])
***************
*** 148,152 ****
  dnl AM_INIT_AUTOMAKE(package,version, [no-define])
  
! AC_DEFUN(AM_INIT_AUTOMAKE,
  [AC_REQUIRE([AC_PROG_INSTALL])
  PACKAGE=[$1]
--- 55,59 ----
  dnl AM_INIT_AUTOMAKE(package,version, [no-define])
  
! AC_DEFUN([AM_INIT_AUTOMAKE],
  [AC_REQUIRE([AC_PROG_INSTALL])
  PACKAGE=[$1]
***************
*** 176,180 ****
  #
  
! AC_DEFUN(AM_SANITY_CHECK,
  [AC_MSG_CHECKING([whether build environment is sane])
  # Just in case
--- 83,87 ----
  #
  
! AC_DEFUN([AM_SANITY_CHECK],
  [AC_MSG_CHECKING([whether build environment is sane])
  # Just in case
***************
*** 217,221 ****
  dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
  dnl The program must properly implement --version.
! AC_DEFUN(AM_MISSING_PROG,
  [AC_MSG_CHECKING(for working $2)
  # Run test in a subshell; some versions of sh will print an error if
--- 124,128 ----
  dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
  dnl The program must properly implement --version.
! AC_DEFUN([AM_MISSING_PROG],
  [AC_MSG_CHECKING(for working $2)
  # Run test in a subshell; some versions of sh will print an error if
***************
*** 236,240 ****
  # serial 1
  
! AC_DEFUN(AM_MAINTAINER_MODE,
  [AC_MSG_CHECKING([whether to enable maintainer-specific portions of 
Makefiles])
    dnl maintainer-mode is disabled by default
--- 143,147 ----
  # serial 1
  
! AC_DEFUN([AM_MAINTAINER_MODE],
  [AC_MSG_CHECKING([whether to enable maintainer-specific portions of 
Makefiles])
    dnl maintainer-mode is disabled by default
***************
*** 253,257 ****
  # Define a conditional.
  
! AC_DEFUN(AM_CONDITIONAL,
  [AC_SUBST($1_TRUE)
  AC_SUBST($1_FALSE)
--- 160,164 ----
  # Define a conditional.
  
! AC_DEFUN([AM_CONDITIONAL],
  [AC_SUBST($1_TRUE)
  AC_SUBST($1_FALSE)

Index: configure
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/libffi/configure,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** configure   30 Jun 2002 03:39:55 -0000      1.4
--- configure   6 Feb 2003 01:15:38 -0000       1.5
***************
*** 54,58 ****
  silent=
  site=
- sitefile=
  srcdir=
  target=NONE
--- 54,57 ----
***************
*** 169,173 ****
    --no-create             do not create output files
    --quiet, --silent       do not print \`checking...' messages
[...1949 lines suppressed...]
  address@hidden@%$ALLOCA%g
  address@hidden@%$TARGET%g
  address@hidden@%$TARGETDIR%g
! address@hidden@%$toolexecdir%g
! address@hidden@%$toolexeclibdir%g
  
  CEOF
***************
*** 3992,3996 ****
  if test -n "$CONFIG_FILES"; then
     LD="${ORIGINAL_LD_FOR_MULTILIBS}"
!    ac_file=Makefile . ${libffi_basedir}/../config-ml.in
  fi
  
--- 4096,4100 ----
  if test -n "$CONFIG_FILES"; then
     LD="${ORIGINAL_LD_FOR_MULTILIBS}"
!    ac_file=Makefile . ${srcdir}/${libffi_basedir}../config-ml.in
  fi
  

Index: configure.in
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/libffi/configure.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** configure.in        30 Jun 2002 03:39:55 -0000      1.4
--- configure.in        6 Feb 2003 01:15:38 -0000       1.5
***************
*** 23,34 ****
  if test "${srcdir}" = "."; then
    if test "${with_target_subdir}" != "."; then
!     libffi_basedir="${srcdir}/${with_multisrctop}.."
    else
!     libffi_basedir="${srcdir}/${with_multisrctop}"
    fi
  else
!   libffi_basedir="${srcdir}"
  fi
  AC_SUBST(libffi_basedir)
  
  AC_CANONICAL_HOST
--- 23,35 ----
  if test "${srcdir}" = "."; then
    if test "${with_target_subdir}" != "."; then
!     libffi_basedir="${with_multisrctop}../"
    else
!     libffi_basedir="${with_multisrctop}"
    fi
  else
!   libffi_basedir=
  fi
  AC_SUBST(libffi_basedir)
+ AC_CONFIG_AUX_DIR(${libffi_basedir}..)
  
  AC_CANONICAL_HOST
***************
*** 47,52 ****
  case "$host" in
  mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; TARGETDIR=mips;;
- i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
  i*86-*-gnu*) TARGET=X86; TARGETDIR=x86;;
  i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
  i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
--- 48,53 ----
  case "$host" in
  mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; TARGETDIR=mips;;
  i*86-*-gnu*) TARGET=X86; TARGETDIR=x86;;
+ i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
  i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
  i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
***************
*** 63,66 ****
--- 64,69 ----
  ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
  m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
+ mips64*-*);;
+ mips*-*-linux*) TARGET=MIPS_LINUX; TARGETDIR=mips;;
  powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
  powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
***************
*** 70,73 ****
--- 73,79 ----
  arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
  s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
+ s390x-*-linux-*) TARGET=S390; TARGETDIR=s390;;
+ x86_64-*-linux*) TARGET=X86_64; TARGETDIR=x86;;
+ sh-*-linux* | sh[[34]]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
  esac
  
***************
*** 78,81 ****
--- 84,88 ----
  AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes)
  AM_CONDITIONAL(MIPS_SGI, test ${TARGET}${ac_cv_prog_gcc} = MIPSno)
+ AM_CONDITIONAL(MIPS_LINUX, test x$TARGET = xMIPS_LINUX)
  AM_CONDITIONAL(SPARC, test x$TARGET = xSPARC)
  AM_CONDITIONAL(X86, test x$TARGET = xX86)
***************
*** 89,92 ****
--- 96,105 ----
  AM_CONDITIONAL(ARM, test x$TARGET = xARM)
  AM_CONDITIONAL(S390, test x$TARGET = xS390)
+ AM_CONDITIONAL(X86_64, test x$TARGET = xX86_64)
+ AM_CONDITIONAL(SH, test x$TARGET = xSH)
+ 
+ if test x$TARGET = xMIPS_LINUX; then
+   TARGET=MIPS
+ fi
  
  AC_HEADER_STDC
***************
*** 153,157 ****
    fi)
  
! AM_CONDITIONAL(USE_LIBDIR, test -z "$with_cross_host")
  
  if test "${multilib}" = "yes"; then
--- 166,180 ----
    fi)
  
! if test -n "$with_cross_host" &&
!    test x"$with_cross_host" != x"no"; then
!   toolexecdir='$(exec_prefix)/$(target_alias)'
!   toolexeclibdir='$(toolexecdir)/lib'
! else
!   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
!   toolexeclibdir='$(libdir)'
! fi
! toolexeclibdir=$toolexeclibdir/`$CC -print-multi-os-directory`
! AC_SUBST(toolexecdir)
! AC_SUBST(toolexeclibdir)
  
  if test "${multilib}" = "yes"; then
***************
*** 165,169 ****
  if test -n "$CONFIG_FILES"; then
     LD="${ORIGINAL_LD_FOR_MULTILIBS}"
!    ac_file=Makefile . ${libffi_basedir}/../config-ml.in
  fi
  ],
--- 188,192 ----
  if test -n "$CONFIG_FILES"; then
     LD="${ORIGINAL_LD_FOR_MULTILIBS}"
!    ac_file=Makefile . ${srcdir}/${libffi_basedir}../config-ml.in
  fi
  ],





reply via email to

[Prev in Thread] Current Thread [Next in Thread]