strace-autoreconf.patch.avr32 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. --- a/config.h.in
  2. +++ b/config.h.in
  3. @@ -146,6 +146,9 @@
  4. /* Define if stat64 is available in asm/stat.h. */
  5. #undef HAVE_STAT64
  6. +/* Define if statfs64 is available in sys/statfs.h or sys/vfs.h. */
  7. +#undef HAVE_STATFS64
  8. +
  9. /* Define to 1 if stdbool.h conforms to C99. */
  10. #undef HAVE_STDBOOL_H
  11. --- a/configure
  12. +++ b/configure
  13. @@ -2531,6 +2531,14 @@ cat >>confdefs.h <<\_ACEOF
  14. _ACEOF
  15. ;;
  16. +avr32*)
  17. + arch=avr32
  18. +
  19. +cat >>confdefs.h <<\_ACEOF
  20. +#define AVR32 1
  21. +_ACEOF
  22. +
  23. + ;;
  24. *)
  25. { echo "$as_me:$LINENO: result: NO!" >&5
  26. echo "${ECHO_T}NO!" >&6; }
  27. @@ -5994,6 +6002,70 @@ _ACEOF
  28. fi
  29. +{ echo "$as_me:$LINENO: checking for statfs64 in sys/(statfs|vfs).h" >&5
  30. +echo $ECHO_N "checking for statfs64 in sys/(statfs|vfs).h... $ECHO_C" >&6; }
  31. +if test "${ac_cv_type_statfs64+set}" = set; then
  32. + echo $ECHO_N "(cached) $ECHO_C" >&6
  33. +else
  34. + cat >conftest.$ac_ext <<_ACEOF
  35. +/* confdefs.h. */
  36. +_ACEOF
  37. +cat confdefs.h >>conftest.$ac_ext
  38. +cat >>conftest.$ac_ext <<_ACEOF
  39. +/* end confdefs.h. */
  40. +#ifdef LINUX
  41. +#include <linux/types.h>
  42. +#include <sys/statfs.h>
  43. +#else
  44. +#include <sys/vfs.h>
  45. +#endif
  46. +int
  47. +main ()
  48. +{
  49. +struct statfs64 st;
  50. + ;
  51. + return 0;
  52. +}
  53. +_ACEOF
  54. +rm -f conftest.$ac_objext
  55. +if { (ac_try="$ac_compile"
  56. +case "(($ac_try" in
  57. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  58. + *) ac_try_echo=$ac_try;;
  59. +esac
  60. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  61. + (eval "$ac_compile") 2>conftest.er1
  62. + ac_status=$?
  63. + grep -v '^ *+' conftest.er1 >conftest.err
  64. + rm -f conftest.er1
  65. + cat conftest.err >&5
  66. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  67. + (exit $ac_status); } && {
  68. + test -z "$ac_c_werror_flag" ||
  69. + test ! -s conftest.err
  70. + } && test -s conftest.$ac_objext; then
  71. + ac_cv_type_statfs64=yes
  72. +else
  73. + echo "$as_me: failed program was:" >&5
  74. +sed 's/^/| /' conftest.$ac_ext >&5
  75. +
  76. + ac_cv_type_statfs64=no
  77. +fi
  78. +
  79. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  80. +fi
  81. +
  82. +{ echo "$as_me:$LINENO: result: $ac_cv_type_statfs64" >&5
  83. +echo "${ECHO_T}$ac_cv_type_statfs64" >&6; }
  84. +if test "$ac_cv_type_statfs64" = yes
  85. +then
  86. +
  87. +cat >>confdefs.h <<\_ACEOF
  88. +#define HAVE_STATFS64 1
  89. +_ACEOF
  90. +
  91. +fi
  92. +
  93. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  94. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  95. @@ -10377,22 +10449,21 @@ echo "$as_me: $ac_file is unchanged" >&6
  96. fi
  97. rm -f "$tmp/out12"
  98. # Compute $ac_file's index in $config_headers.
  99. -_am_arg=$ac_file
  100. _am_stamp_count=1
  101. for _am_header in $config_headers :; do
  102. case $_am_header in
  103. - $_am_arg | $_am_arg:* )
  104. + $ac_file | $ac_file:* )
  105. break ;;
  106. * )
  107. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  108. esac
  109. done
  110. -echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  111. -$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  112. - X"$_am_arg" : 'X\(//\)[^/]' \| \
  113. - X"$_am_arg" : 'X\(//\)$' \| \
  114. - X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  115. -echo X"$_am_arg" |
  116. +echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  117. +$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  118. + X$ac_file : 'X\(//\)[^/]' \| \
  119. + X$ac_file : 'X\(//\)$' \| \
  120. + X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  121. +echo X$ac_file |
  122. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  123. s//\1/
  124. q
  125. @@ -10429,7 +10500,7 @@ echo "$as_me: executing $ac_file command
  126. # each Makefile.in and add a new line on top of each file to say so.
  127. # Grep'ing the whole file is not good either: AIX grep has a line
  128. # limit of 2048, but all sed's we know have understand at least 4000.
  129. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  130. + if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  131. dirpart=`$as_dirname -- "$mf" ||
  132. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  133. X"$mf" : 'X\(//\)[^/]' \| \