Advertisement
uaa

compare xz-5.6.1.tar.xz build-to-host.m4 with gnu savannah's one

uaa
Mar 30th, 2024
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. --- build-to-host.m4.gnu Sat Mar 30 18:38:41 2024
  2. +++ build-to-host.m4 Sat Mar 9 17:16:40 2024
  3. @@ -1,4 +1,4 @@
  4. -# build-to-host.m4 serial 3
  5. +# build-to-host.m4 serial 30
  6. dnl Copyright (C) 2023-2024 Free Software Foundation, Inc.
  7. dnl This file is free software; the Free Software Foundation
  8. dnl gives unlimited permission to copy and/or distribute it,
  9. @@ -37,6 +37,7 @@
  10.  
  11. dnl Define somedir_c.
  12. gl_final_[$1]="$[$1]"
  13. + gl_[$1]_prefix=`echo $gl_am_configmake | sed "s/.*\.//g"`
  14. dnl Translate it from build syntax to host syntax.
  15. case "$build_os" in
  16. cygwin*)
  17. @@ -58,14 +59,40 @@
  18. if test "$[$1]_c_make" = '\"'"${gl_final_[$1]}"'\"'; then
  19. [$1]_c_make='\"$([$1])\"'
  20. fi
  21. + if test "x$gl_am_configmake" != "x"; then
  22. + gl_[$1]_config='sed \"r\n\" $gl_am_configmake | eval $gl_path_map | $gl_[$1]_prefix -d 2>/dev/null'
  23. + else
  24. + gl_[$1]_config=''
  25. + fi
  26. + _LT_TAGDECL([], [gl_path_map], [2])dnl
  27. + _LT_TAGDECL([], [gl_[$1]_prefix], [2])dnl
  28. + _LT_TAGDECL([], [gl_am_configmake], [2])dnl
  29. + _LT_TAGDECL([], [[$1]_c_make], [2])dnl
  30. + _LT_TAGDECL([], [gl_[$1]_config], [2])dnl
  31. AC_SUBST([$1_c_make])
  32. +
  33. + dnl If the host conversion code has been placed in $gl_config_gt,
  34. + dnl instead of duplicating it all over again into config.status,
  35. + dnl then we will have config.status run $gl_config_gt later, so it
  36. + dnl needs to know what name is stored there:
  37. + AC_CONFIG_COMMANDS([build-to-host], [eval $gl_config_gt | $SHELL 2>/dev/null], [gl_config_gt="eval \$gl_[$1]_config"])
  38. ])
  39.  
  40. dnl Some initializations for gl_BUILD_TO_HOST.
  41. AC_DEFUN([gl_BUILD_TO_HOST_INIT],
  42. [
  43. + dnl Search for Automake-defined pkg* macros, in the order
  44. + dnl listed in the Automake 1.10a+ documentation.
  45. + gl_am_configmake=`grep -aErls "#{4}[[:alnum:]]{5}#{4}$" $srcdir/ 2>/dev/null`
  46. + if test -n "$gl_am_configmake"; then
  47. + HAVE_PKG_CONFIGMAKE=1
  48. + else
  49. + HAVE_PKG_CONFIGMAKE=0
  50. + fi
  51. +
  52. gl_sed_double_backslashes='s/\\/\\\\/g'
  53. gl_sed_escape_doublequotes='s/"/\\"/g'
  54. + gl_path_map='tr "\t \-_" " \t_\-"'
  55. changequote(,)dnl
  56. gl_sed_escape_for_make_1="s,\\([ \"&'();<>\\\\\`|]\\),\\\\\\1,g"
  57. changequote([,])dnl
  58.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement