📄 gcc-3.2.3-libffi-1.patch
字号:
diff -ruN --exclude=CVS gcc-3.2.2.orig/libffi/aclocal.m4 gcc/libffi/aclocal.m4--- gcc-3.2.2.orig/libffi/aclocal.m4 Fri Feb 1 07:25:31 2002+++ gcc/libffi/aclocal.m4 Tue Dec 17 03:22:47 2002@@ -1,6 +1,6 @@-dnl aclocal.m4 generated automatically by aclocal 1.4+dnl aclocal.m4 generated automatically by aclocal 1.4-p5 -dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.+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, dnl with or without modifications, as long as this notice is preserved.@@ -16,108 +16,15 @@ dnl to add a definition of LIBTOOL to Makefile.in. ifelse(yes,no,[ AC_DEFUN([AC_PROG_LIBTOOL],)+AC_DEFUN([AM_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-])+sinclude(../config/accross.m4) # Like AC_CONFIG_HEADER, but automatically create stamp file. -AC_DEFUN(AM_CONFIG_HEADER,+AC_DEFUN([AM_CONFIG_HEADER], [AC_PREREQ([2.12]) AC_CONFIG_HEADER([$1]) dnl When config.status generates a header, we must update the stamp-h file.@@ -147,7 +54,7 @@ dnl Usage: dnl AM_INIT_AUTOMAKE(package,version, [no-define]) -AC_DEFUN(AM_INIT_AUTOMAKE,+AC_DEFUN([AM_INIT_AUTOMAKE], [AC_REQUIRE([AC_PROG_INSTALL]) PACKAGE=[$1] AC_SUBST(PACKAGE)@@ -175,7 +82,7 @@ # Check to make sure that the build environment is sane. # -AC_DEFUN(AM_SANITY_CHECK,+AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1@@ -216,7 +123,7 @@ dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) dnl The program must properly implement --version.-AC_DEFUN(AM_MISSING_PROG,+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 # an executable is not found, even if stderr is redirected.@@ -235,7 +142,7 @@ # serial 1 -AC_DEFUN(AM_MAINTAINER_MODE,+AC_DEFUN([AM_MAINTAINER_MODE], [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode is disabled by default AC_ARG_ENABLE(maintainer-mode,@@ -252,7 +159,7 @@ # Define a conditional. -AC_DEFUN(AM_CONDITIONAL,+AC_DEFUN([AM_CONDITIONAL], [AC_SUBST($1_TRUE) AC_SUBST($1_FALSE) if $2; thendiff -ruN --exclude=CVS gcc-3.2.2.orig/libffi/configure gcc/libffi/configure--- gcc-3.2.2.orig/libffi/configure Wed Jan 29 07:59:05 2003+++ gcc/libffi/configure Sat Feb 1 20:16:19 2003@@ -633,17 +633,16 @@ if test "${srcdir}" = "."; then if test "${with_target_subdir}" != "."; then- libffi_basedir="${srcdir}/${with_multisrctop}.."+ libffi_basedir="${with_multisrctop}../" else- libffi_basedir="${srcdir}/${with_multisrctop}"+ libffi_basedir="${with_multisrctop}" fi else- libffi_basedir="${srcdir}"+ libffi_basedir= fi - ac_aux_dir=-for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do+for ac_dir in ${libffi_basedir}.. $srcdir/${libffi_basedir}..; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c"@@ -655,13 +654,14 @@ fi done if test -z "$ac_aux_dir"; then- { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }+ { echo "configure: error: can not find install-sh or install.sh in ${libffi_basedir}.. $srcdir/${libffi_basedir}.." 1>&2; exit 1; } fi ac_config_guess=$ac_aux_dir/config.guess ac_config_sub=$ac_aux_dir/config.sub ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. + # Make sure we can run config.sub. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }@@ -1238,9 +1238,18 @@ ;; hpux10.20*|hpux11*)- lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'- lt_cv_file_magic_cmd=/usr/bin/file- lt_cv_file_magic_test_file=/usr/lib/libc.sl+ case $host_cpu in+ hppa*)+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'+ lt_cv_file_magic_cmd=/usr/bin/file+ lt_cv_file_magic_test_file=/usr/lib/libc.sl+ ;;+ ia64*)+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'+ lt_cv_file_magic_cmd=/usr/bin/file+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so+ ;;+ esac ;; irix5* | irix6*)@@ -1267,7 +1276,7 @@ # This must be Linux ELF. linux-gnu*) case $host_cpu in- alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )+ alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* ) lt_cv_deplibs_check_method=pass_all ;; *) # glibc up to 2.1.1 does not perform some relocations on ARM@@ -1330,13 +1339,13 @@ deplibs_check_method=$lt_cv_deplibs_check_method echo $ac_n "checking for object suffix""... $ac_c" 1>&6-echo "configure:1334: checking for object suffix" >&5+echo "configure:1343: checking for object suffix" >&5 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else rm -f conftest* echo 'int i = 1;' > conftest.$ac_ext-if { (eval echo configure:1340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then+if { (eval echo configure:1349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then for ac_file in conftest.*; do case $ac_file in *.c) ;;@@ -1356,7 +1365,7 @@ echo $ac_n "checking for executable suffix""... $ac_c" 1>&6-echo "configure:1360: checking for executable suffix" >&5+echo "configure:1369: checking for executable suffix" >&5 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else@@ -1366,7 +1375,7 @@ rm -f conftest* echo 'int main () { return 0; }' > conftest.$ac_ext ac_cv_exeext=- if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then+ if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then for file in conftest.*; do case $file in *.c | *.o | *.obj) ;;@@ -1399,7 +1408,7 @@ file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6-echo "configure:1403: checking for ${ac_tool_prefix}file" >&5+echo "configure:1412: checking for ${ac_tool_prefix}file" >&5 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else@@ -1461,7 +1470,7 @@ if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then echo $ac_n "checking for file""... $ac_c" 1>&6-echo "configure:1465: checking for file" >&5+echo "configure:1474: checking for file" >&5 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else@@ -1532,7 +1541,7 @@ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6-echo "configure:1536: checking for $ac_word" >&5+echo "configure:1545: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else@@ -1564,7 +1573,7 @@ # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6-echo "configure:1568: checking for $ac_word" >&5+echo "configure:1577: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else@@ -1599,7 +1608,7 @@ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6-echo "configure:1603: checking for $ac_word" >&5+echo "configure:1612: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else@@ -1631,7 +1640,7 @@ # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6-echo "configure:1635: checking for $ac_word" >&5+echo "configure:1644: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else@@ -1698,8 +1707,8 @@ case $host in *-*-irix6*) # Find out which ABI we are using.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -