patch-ltmain_sh 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- cgilib-0.7.orig/ltmain.sh 2008-04-29 23:33:55.000000000 +0200
  3. +++ cgilib-0.7/ltmain.sh 2009-05-09 03:58:09.000000000 +0200
  4. @@ -43,8 +43,8 @@ EXIT_FAILURE=1
  5. PROGRAM=ltmain.sh
  6. PACKAGE=libtool
  7. -VERSION="1.5.26 Debian 1.5.26-4"
  8. -TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
  9. +VERSION=1.5.26
  10. +TIMESTAMP=" (1.1220.2.492 2008/01/30 06:40:56)"
  11. # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  12. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13. @@ -250,6 +250,20 @@ func_win32_libid ()
  14. # arg is usually of the form 'gcc ...'
  15. func_infer_tag ()
  16. {
  17. + # FreeBSD-specific: where we install compilers with non-standard names
  18. + tag_compilers_CC="*cc cc* *gcc gcc*"
  19. + tag_compilers_CXX="*c++ c++* *g++ g++*"
  20. + base_compiler=`set -- "$@"; echo $1`
  21. +
  22. + # If $tagname isn't set, then try to infer if the default "CC" tag applies
  23. + if test -z "$tagname"; then
  24. + for zp in $tag_compilers_CC; do
  25. + case $base_compiler in
  26. + $zp) tagname="CC"; break;;
  27. + esac
  28. + done
  29. + fi
  30. +
  31. if test -n "$available_tags" && test -z "$tagname"; then
  32. CC_quoted=
  33. for arg in $CC; do
  34. @@ -290,7 +304,22 @@ func_infer_tag ()
  35. break
  36. ;;
  37. esac
  38. - fi
  39. +
  40. + # FreeBSD-specific: try compilers based on inferred tag
  41. + if test -z "$tagname"; then
  42. + eval "tag_compilers=\$tag_compilers_${z}"
  43. + if test -n "$tag_compilers"; then
  44. + for zp in $tag_compilers; do
  45. + case $base_compiler in
  46. + $zp) tagname=$z; break;;
  47. + esac
  48. + done
  49. + if test -n "$tagname"; then
  50. + break
  51. + fi
  52. + fi
  53. + fi
  54. + fi
  55. done
  56. # If $tagname still isn't set, then no tagged configuration
  57. # was found and let the user know that the "--tag" command
  58. @@ -1651,6 +1680,7 @@ EOF
  59. compiler_flags="$compiler_flags $arg"
  60. compile_command="$compile_command $arg"
  61. finalize_command="$finalize_command $arg"
  62. + deplibs="$deplibs $arg"
  63. continue
  64. ;;
  65. @@ -2135,10 +2165,7 @@ EOF
  66. case $pass in
  67. dlopen) libs="$dlfiles" ;;
  68. dlpreopen) libs="$dlprefiles" ;;
  69. - link)
  70. - libs="$deplibs %DEPLIBS%"
  71. - test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  72. - ;;
  73. + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  74. esac
  75. fi
  76. if test "$pass" = dlopen; then
  77. @@ -2157,6 +2184,29 @@ EOF
  78. else
  79. compiler_flags="$compiler_flags $deplib"
  80. fi
  81. +
  82. + case $linkmode in
  83. + lib)
  84. + deplibs="$deplib $deplibs"
  85. + test "$pass" = conv && continue
  86. + newdependency_libs="$deplib $newdependency_libs"
  87. + ;;
  88. + prog)
  89. + if test "$pass" = conv; then
  90. + deplibs="$deplib $deplibs"
  91. + continue
  92. + fi
  93. + if test "$pass" = scan; then
  94. + deplibs="$deplib $deplibs"
  95. + else
  96. + compile_deplibs="$deplib $compile_deplibs"
  97. + finalize_deplibs="$deplib $finalize_deplibs"
  98. + fi
  99. + ;;
  100. + *)
  101. + ;;
  102. + esac # linkmode
  103. +
  104. continue
  105. ;;
  106. -l*)
  107. @@ -3272,11 +3322,6 @@ EOF
  108. revision="$number_minor"
  109. lt_irix_increment=no
  110. ;;
  111. - *)
  112. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  113. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  114. - exit $EXIT_FAILURE
  115. - ;;
  116. esac
  117. ;;
  118. no)
  119. @@ -4788,6 +4833,9 @@ static const void *lt_preloaded_setup()
  120. ;;
  121. esac
  122. ;;
  123. + *-*-freebsd*)
  124. + # FreeBSD doesn't need this...
  125. + ;;
  126. *)
  127. $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  128. exit $EXIT_FAILURE