0009-libtool-2.4.2.418-msysize.patch 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404
  1. diff -urN libtool-2.4.7/build-aux/config.guess.orig libtool-2.4.7/build-aux/config.guess
  2. --- libtool-2.4.7/build-aux/config.guess.orig 2022-05-25 14:18:47.388587800 +0200
  3. +++ libtool-2.4.7/build-aux/config.guess 2022-05-25 14:21:50.720326000 +0200
  4. @@ -950,6 +950,9 @@
  5. amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
  6. GUESS=x86_64-pc-cygwin
  7. ;;
  8. + amd64:MSYS*:*:* | x86_64:MSYS*:*:*)
  9. + GUESS=x86_64-pc-msys
  10. + ;;
  11. prep*:SunOS:5.*:*)
  12. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
  13. GUESS=powerpcle-unknown-solaris2$SUN_REL
  14. diff -Naur libtool-2.4.3-orig/build-aux/ltmain.in libtool-2.4.3/build-aux/ltmain.in
  15. --- libtool-2.4.3-orig/build-aux/ltmain.in 2014-09-02 09:54:56.481600000 +0400
  16. +++ libtool-2.4.3/build-aux/ltmain.in 2014-09-02 10:14:04.809600000 +0400
  17. @@ -497,7 +497,7 @@
  18. case $host in
  19. # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452
  20. # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788
  21. - *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
  22. + *cygwin* | *msys* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
  23. # don't eliminate duplications in $postdeps and $predeps
  24. opt_duplicate_compiler_generated_deps=:
  25. ;;
  26. @@ -1510,7 +1510,7 @@
  27. # On Cygwin there's no "real" PIC flag so we must build both object types
  28. case $host_os in
  29. - cygwin* | mingw* | pw32* | os2* | cegcc*)
  30. + cygwin* | msys* | mingw* | pw32* | os2* | cegcc*)
  31. pic_mode=default
  32. ;;
  33. esac
  34. @@ -2383,7 +2383,7 @@
  35. 'exit $?'
  36. tstripme=$stripme
  37. case $host_os in
  38. - cygwin* | mingw* | pw32* | cegcc*)
  39. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  40. case $realname in
  41. *.dll.a)
  42. tstripme=
  43. @@ -2489,7 +2489,7 @@
  44. # Do a test to see if this is really a libtool program.
  45. case $host in
  46. - *cygwin* | *mingw*)
  47. + *cygwin* | *msys* | *mingw*)
  48. if func_ltwrapper_executable_p "$file"; then
  49. func_ltwrapper_scriptname "$file"
  50. wrapper=$func_ltwrapper_scriptname_result
  51. @@ -2564,7 +2564,7 @@
  52. # remove .exe since cygwin /usr/bin/install will append another
  53. # one anyway
  54. case $install_prog,$host in
  55. - */usr/bin/install*,*cygwin*)
  56. + */usr/bin/install*,*cygwin*|*/usr/bin/install*,*msys*)
  57. case $file:$destfile in
  58. *.exe:*.exe)
  59. # this is ok
  60. @@ -2717,7 +2717,7 @@
  61. $RM $export_symbols
  62. eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  63. case $host in
  64. - *cygwin* | *mingw* | *cegcc* )
  65. + *cygwin* | *msys* | *mingw* | *cegcc* )
  66. eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  67. eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  68. ;;
  69. @@ -2729,7 +2729,7 @@
  70. eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  71. eval '$MV "$nlist"T "$nlist"'
  72. case $host in
  73. - *cygwin* | *mingw* | *cegcc* )
  74. + *cygwin* | *msys* | *mingw* | *cegcc* )
  75. eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  76. eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  77. ;;
  78. @@ -2743,7 +2743,7 @@
  79. func_basename "$dlprefile"
  80. name=$func_basename_result
  81. case $host in
  82. - *cygwin* | *mingw* | *cegcc* )
  83. + *cygwin* | *msys* | *mingw* | *cegcc* )
  84. # if an import library, we need to obtain dlname
  85. if func_win32_import_lib_p "$dlprefile"; then
  86. func_tr_sh "$dlprefile"
  87. @@ -2918,7 +2918,7 @@
  88. # Transform the symbol file into the correct name.
  89. symfileobj=$output_objdir/${my_outputname}S.$objext
  90. case $host in
  91. - *cygwin* | *mingw* | *cegcc* )
  92. + *cygwin* | *msys* | *mingw* | *cegcc* )
  93. if test -f "$output_objdir/$my_outputname.def"; then
  94. compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  95. finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  96. @@ -3811,7 +3811,7 @@
  97. {
  98. EOF
  99. case $host in
  100. - *mingw* | *cygwin* )
  101. + *mingw* | *cygwin* | *msys* )
  102. # make stdout use "unix" line endings
  103. echo " setmode(1,_O_BINARY);"
  104. ;;
  105. @@ -4567,7 +4567,7 @@
  106. $debug_cmd
  107. case $host in
  108. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  109. + *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  110. # It is impossible to link a dll without this setting, and
  111. # we shouldn't force the makefile maintainer to figure out
  112. # what system we are compiling for in order to pass an extra
  113. @@ -5060,7 +5060,7 @@
  114. ;;
  115. esac
  116. case $host in
  117. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  118. + *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  119. testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
  120. case :$dllsearchpath: in
  121. *":$dir:"*) ;;
  122. @@ -5080,7 +5080,7 @@
  123. -l*)
  124. if test X-lc = "X$arg" || test X-lm = "X$arg"; then
  125. case $host in
  126. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
  127. + *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
  128. # These systems don't actually have a C or math library (as such)
  129. continue
  130. ;;
  131. @@ -5163,7 +5163,7 @@
  132. -no-install)
  133. case $host in
  134. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  135. + *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  136. # The PATH hackery in wrapper scripts is required on Windows
  137. # and Darwin in order for the loader to find any dlls it needs.
  138. func_warning "'-no-install' is ignored for $host"
  139. @@ -6034,7 +6034,7 @@
  140. fi
  141. case $host in
  142. # special handling for platforms with PE-DLLs.
  143. - *cygwin* | *mingw* | *cegcc* )
  144. + *cygwin* | *msys* | *mingw* | *cegcc* )
  145. # Linker will automatically link against shared library if both
  146. # static and shared are present. Therefore, ensure we extract
  147. # symbols from the import library if a shared library is present
  148. @@ -6178,7 +6178,7 @@
  149. if test -n "$library_names" &&
  150. { test no = "$use_static_libs" || test -z "$old_library"; }; then
  151. case $host in
  152. - *cygwin* | *mingw* | *cegcc* | *os2*)
  153. + *cygwin* | *msys* | *mingw* | *cegcc* | *os2*)
  154. # No point in relinking DLLs because paths are not encoded
  155. func_append notinst_deplibs " $lib"
  156. need_relink=no
  157. @@ -6248,7 +6248,7 @@
  158. elif test -n "$soname_spec"; then
  159. # bleh windows
  160. case $host in
  161. - *cygwin* | mingw* | *cegcc* | *os2*)
  162. + *cygwin* | *msys* | mingw* | *cegcc* | *os2*)
  163. func_arith $current - $age
  164. major=$func_arith_result
  165. versuffix=-$major
  166. @@ -7123,7 +7123,7 @@
  167. if test yes = "$build_libtool_libs"; then
  168. if test -n "$rpath"; then
  169. case $host in
  170. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
  171. + *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
  172. # these systems don't actually have a c library (as such)!
  173. ;;
  174. *-*-rhapsody* | *-*-darwin1.[012])
  175. @@ -7637,7 +7637,7 @@
  176. orig_export_symbols=
  177. case $host_os in
  178. - cygwin* | mingw* | cegcc*)
  179. + cygwin* | msys* | mingw* | cegcc*)
  180. if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  181. # exporting using user supplied symfile
  182. func_dll_def_p "$export_symbols" || {
  183. @@ -8194,7 +8194,7 @@
  184. prog)
  185. case $host in
  186. - *cygwin*) func_stripname '' '.exe' "$output"
  187. + *cygwin* | *msys*) func_stripname '' '.exe' "$output"
  188. output=$func_stripname_result.exe;;
  189. esac
  190. test -n "$vinfo" && \
  191. @@ -8305,7 +8305,7 @@
  192. esac
  193. fi
  194. case $host in
  195. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  196. + *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  197. testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
  198. case :$dllsearchpath: in
  199. *":$libdir:"*) ;;
  200. @@ -8383,7 +8383,7 @@
  201. # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
  202. wrappers_required=false
  203. ;;
  204. - *cygwin* | *mingw* )
  205. + *cygwin* | *msys* | *mingw* )
  206. test yes = "$build_libtool_libs" || wrappers_required=false
  207. ;;
  208. *)
  209. @@ -8529,14 +8529,14 @@
  210. esac
  211. # test for cygwin because mv fails w/o .exe extensions
  212. case $host in
  213. - *cygwin*)
  214. + *cygwin* | *msys*)
  215. exeext=.exe
  216. func_stripname '' '.exe' "$outputname"
  217. outputname=$func_stripname_result ;;
  218. *) exeext= ;;
  219. esac
  220. case $host in
  221. - *cygwin* | *mingw* )
  222. + *cygwin* | *msys* | *mingw* )
  223. func_dirname_and_basename "$output" "" "."
  224. output_name=$func_basename_result
  225. output_path=$func_dirname_result
  226. @@ -8878,7 +8878,7 @@
  227. # tests/bindir.at for full details.
  228. tdlname=$dlname
  229. case $host,$output,$installed,$module,$dlname in
  230. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
  231. + *cygwin*,*lai,yes,no,*.dll | *msys*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
  232. # If a -bindir argument was supplied, place the dll there.
  233. if test -n "$bindir"; then
  234. func_relative_path "$install_libdir" "$bindir"
  235. diff -Naur libtool-2.4.2.418-orig/build-aux/ltmain.sh libtool-2.4.2.418/build-aux/ltmain.sh
  236. --- libtool-2.4.2.418-orig/build-aux/ltmain.sh 2013-10-27 02:53:58.000000000 +0400
  237. +++ libtool-2.4.2.418/build-aux/ltmain.sh 2014-09-02 10:29:08.840800000 +0400
  238. @@ -2315,7 +2315,7 @@
  239. case $host in
  240. # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452
  241. # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788
  242. - *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
  243. + *cygwin* | *msys* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
  244. # don't eliminate duplications in $postdeps and $predeps
  245. opt_duplicate_compiler_generated_deps=:
  246. ;;
  247. @@ -3328,7 +3328,7 @@
  248. # On Cygwin there's no "real" PIC flag so we must build both object types
  249. case $host_os in
  250. - cygwin* | mingw* | pw32* | os2* | cegcc*)
  251. + cygwin* | msys* | mingw* | pw32* | os2* | cegcc*)
  252. pic_mode=default
  253. ;;
  254. esac
  255. @@ -4201,7 +4201,7 @@
  256. 'exit $?'
  257. tstripme=$stripme
  258. case $host_os in
  259. - cygwin* | mingw* | pw32* | cegcc*)
  260. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  261. case $realname in
  262. *.dll.a)
  263. tstripme=
  264. @@ -4307,7 +4307,7 @@
  265. # Do a test to see if this is really a libtool program.
  266. case $host in
  267. - *cygwin* | *mingw*)
  268. + *cygwin* | *msys* | *mingw*)
  269. if func_ltwrapper_executable_p "$file"; then
  270. func_ltwrapper_scriptname "$file"
  271. wrapper=$func_ltwrapper_scriptname_result
  272. @@ -4382,7 +4382,7 @@
  273. # remove .exe since cygwin /usr/bin/install will append another
  274. # one anyway
  275. case $install_prog,$host in
  276. - */usr/bin/install*,*cygwin*)
  277. + */usr/bin/install*,*cygwin* | */usr/bin/install*,*msys*)
  278. case $file:$destfile in
  279. *.exe:*.exe)
  280. # this is ok
  281. @@ -4535,7 +4535,7 @@
  282. $RM $export_symbols
  283. eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  284. case $host in
  285. - *cygwin* | *mingw* | *cegcc* )
  286. + *cygwin* | *msys* | *mingw* | *cegcc* )
  287. eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  288. eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  289. ;;
  290. @@ -4547,7 +4547,7 @@
  291. eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  292. eval '$MV "$nlist"T "$nlist"'
  293. case $host in
  294. - *cygwin* | *mingw* | *cegcc* )
  295. + *cygwin* | *msys* | *mingw* | *cegcc* )
  296. eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  297. eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  298. ;;
  299. @@ -4561,7 +4561,7 @@
  300. func_basename "$dlprefile"
  301. name=$func_basename_result
  302. case $host in
  303. - *cygwin* | *mingw* | *cegcc* )
  304. + *cygwin* | *msys* | *mingw* | *cegcc* )
  305. # if an import library, we need to obtain dlname
  306. if func_win32_import_lib_p "$dlprefile"; then
  307. func_tr_sh "$dlprefile"
  308. @@ -4736,7 +4736,7 @@
  309. # Transform the symbol file into the correct name.
  310. symfileobj=$output_objdir/${my_outputname}S.$objext
  311. case $host in
  312. - *cygwin* | *mingw* | *cegcc* )
  313. + *cygwin* | *msys* | *mingw* | *cegcc* )
  314. if test -f "$output_objdir/$my_outputname.def"; then
  315. compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  316. finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  317. @@ -5629,7 +5629,7 @@
  318. {
  319. EOF
  320. case $host in
  321. - *mingw* | *cygwin* )
  322. + *mingw* | *cygwin* | *msys* )
  323. # make stdout use "unix" line endings
  324. echo " setmode(1,_O_BINARY);"
  325. ;;
  326. @@ -6350,7 +6350,7 @@
  327. $debug_cmd
  328. case $host in
  329. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  330. + *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  331. # It is impossible to link a dll without this setting, and
  332. # we shouldn't force the makefile maintainer to figure out
  333. # what system we are compiling for in order to pass an extra
  334. @@ -6843,7 +6843,7 @@
  335. ;;
  336. esac
  337. case $host in
  338. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  339. + *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  340. testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
  341. case :$dllsearchpath: in
  342. *":$dir:"*) ;;
  343. @@ -6863,7 +6863,7 @@
  344. -l*)
  345. if test X-lc = "X$arg" || test X-lm = "X$arg"; then
  346. case $host in
  347. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
  348. + *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
  349. # These systems don't actually have a C or math library (as such)
  350. continue
  351. ;;
  352. @@ -6946,7 +6946,7 @@
  353. -no-install)
  354. case $host in
  355. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  356. + *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  357. # The PATH hackery in wrapper scripts is required on Windows
  358. # and Darwin in order for the loader to find any dlls it needs.
  359. func_warning "'-no-install' is ignored for $host"
  360. @@ -7812,7 +7812,7 @@
  361. fi
  362. case $host in
  363. # special handling for platforms with PE-DLLs.
  364. - *cygwin* | *mingw* | *cegcc* )
  365. + *cygwin* | *msys* | *mingw* | *cegcc* )
  366. # Linker will automatically link against shared library if both
  367. # static and shared are present. Therefore, ensure we extract
  368. # symbols from the import library if a shared library is present
  369. @@ -7956,7 +7956,7 @@
  370. if test -n "$library_names" &&
  371. { test no = "$use_static_libs" || test -z "$old_library"; }; then
  372. case $host in
  373. - *cygwin* | *mingw* | *cegcc* | *os2*)
  374. + *cygwin* | *msys* | *mingw* | *cegcc* | *os2*)
  375. # No point in relinking DLLs because paths are not encoded
  376. func_append notinst_deplibs " $lib"
  377. need_relink=no
  378. @@ -8026,7 +8026,7 @@
  379. elif test -n "$soname_spec"; then
  380. # bleh windows
  381. case $host in
  382. - *cygwin* | mingw* | *cegcc* | *os2*)
  383. + *cygwin* | *msys* | mingw* | *cegcc* | *os2*)
  384. func_arith $current - $age
  385. major=$func_arith_result
  386. versuffix=-$major
  387. @@ -8899,7 +8899,7 @@
  388. if test yes = "$build_libtool_libs"; then
  389. if test -n "$rpath"; then
  390. case $host in
  391. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
  392. + *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
  393. # these systems don't actually have a c library (as such)!
  394. ;;
  395. *-*-rhapsody* | *-*-darwin1.[012])
  396. @@ -9413,7 +9413,7 @@
  397. orig_export_symbols=
  398. case $host_os in
  399. - cygwin* | mingw* | cegcc*)
  400. + cygwin* | *msys* | mingw* | cegcc*)
  401. if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  402. # exporting using user supplied symfile
  403. func_dll_def_p "$export_symbols" || {
  404. @@ -9970,7 +9970,7 @@
  405. prog)
  406. case $host in
  407. - *cygwin*) func_stripname '' '.exe' "$output"
  408. + *cygwin* | *msys*) func_stripname '' '.exe' "$output"
  409. output=$func_stripname_result.exe;;
  410. esac
  411. test -n "$vinfo" && \
  412. @@ -10081,7 +10081,7 @@
  413. esac
  414. fi
  415. case $host in
  416. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  417. + *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  418. testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
  419. case :$dllsearchpath: in
  420. *":$libdir:"*) ;;
  421. @@ -10159,7 +10159,7 @@
  422. # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
  423. wrappers_required=false
  424. ;;
  425. - *cygwin* | *mingw* )
  426. + *cygwin* | *msys* | *mingw* )
  427. test yes = "$build_libtool_libs" || wrappers_required=false
  428. ;;
  429. *)
  430. @@ -10305,14 +10305,14 @@
  431. esac
  432. # test for cygwin because mv fails w/o .exe extensions
  433. case $host in
  434. - *cygwin*)
  435. + *cygwin* | *msys*)
  436. exeext=.exe
  437. func_stripname '' '.exe' "$outputname"
  438. outputname=$func_stripname_result ;;
  439. *) exeext= ;;
  440. esac
  441. case $host in
  442. - *cygwin* | *mingw* )
  443. + *cygwin* | *msys* | *mingw* )
  444. func_dirname_and_basename "$output" "" "."
  445. output_name=$func_basename_result
  446. output_path=$func_dirname_result
  447. @@ -10644,7 +10644,7 @@
  448. # tests/bindir.at for full details.
  449. tdlname=$dlname
  450. case $host,$output,$installed,$module,$dlname in
  451. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
  452. + *cygwin*,*lai,yes,no,*.dll | *msys*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
  453. # If a -bindir argument was supplied, place the dll there.
  454. if test -n "$bindir"; then
  455. func_relative_path "$install_libdir" "$bindir"
  456. --- libtool-2.4.7/configure.orig 2022-05-25 14:05:58.332605400 +0200
  457. +++ libtool-2.4.7/configure 2022-05-25 14:11:29.613646200 +0200
  458. @@ -5988,7 +5988,7 @@
  459. lt_cv_sys_max_cmd_len=-1;
  460. ;;
  461. - cygwin* | mingw* | cegcc*)
  462. + cygwin* | msys* | mingw* | cegcc*)
  463. # On Win9x/ME, this test blows up -- it succeeds, but takes
  464. # about 5 minutes as the teststring grows exponentially.
  465. # Worse, since 9x/ME are not pre-emptively multitasking,
  466. @@ -6154,7 +6154,7 @@
  467. *-*-mingw* ) # actually msys
  468. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  469. ;;
  470. - *-*-cygwin* )
  471. + *-*-cygwin* | *-*-msys* )
  472. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  473. ;;
  474. * ) # otherwise, assume *nix
  475. @@ -6162,12 +6162,12 @@
  476. ;;
  477. esac
  478. ;;
  479. - *-*-cygwin* )
  480. + *-*-cygwin* | *-*-msys* )
  481. case $build in
  482. *-*-mingw* ) # actually msys
  483. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  484. ;;
  485. - *-*-cygwin* )
  486. + *-*-cygwin* | *-*-msys* )
  487. lt_cv_to_host_file_cmd=func_convert_file_noop
  488. ;;
  489. * ) # otherwise, assume *nix
  490. @@ -6233,7 +6233,7 @@
  491. esac
  492. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  493. case $host_os in
  494. - cygwin* | mingw* | pw32* | cegcc*)
  495. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  496. if test yes != "$GCC"; then
  497. reload_cmds=false
  498. fi
  499. @@ -6486,7 +6486,7 @@
  500. lt_cv_file_magic_test_file=/shlib/libc.so
  501. ;;
  502. -cygwin*)
  503. +cygwin* | msys*)
  504. # func_win32_libid is a shell function defined in ltmain.sh
  505. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  506. lt_cv_file_magic_cmd='func_win32_libid'
  507. @@ -6802,7 +6802,7 @@
  508. lt_cv_sharedlib_from_linklib_cmd='unknown'
  509. case $host_os in
  510. -cygwin* | mingw* | pw32* | cegcc*)
  511. +cygwin* | msys* | mingw* | pw32* | cegcc*)
  512. # two different shell functions defined in ltmain.sh;
  513. # decide which one to use based on capabilities of $DLLTOOL
  514. case `$DLLTOOL --help 2>&1` in
  515. @@ -7310,7 +7310,7 @@
  516. aix*)
  517. symcode='[BCDT]'
  518. ;;
  519. -cygwin* | mingw* | pw32* | cegcc*)
  520. +cygwin* | msys* | mingw* | pw32* | cegcc*)
  521. symcode='[ABCDGISTW]'
  522. ;;
  523. hpux*)
  524. @@ -8912,7 +8912,7 @@
  525. enable_win32_dll=yes
  526. case $host in
  527. -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  528. +*-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  529. if test -n "$ac_tool_prefix"; then
  530. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  531. set dummy ${ac_tool_prefix}as; ac_word=$2
  532. @@ -9813,7 +9813,7 @@
  533. # PIC is the default for these OSes.
  534. ;;
  535. - mingw* | cygwin* | pw32* | os2* | cegcc*)
  536. + mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
  537. # This hack is so that the source file can tell whether it is being
  538. # built for inclusion in a dll (and should export symbols for example).
  539. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  540. @@ -9916,7 +9916,7 @@
  541. esac
  542. ;;
  543. - mingw* | cygwin* | pw32* | os2* | cegcc*)
  544. + mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
  545. # This hack is so that the source file can tell whether it is being
  546. # built for inclusion in a dll (and should export symbols for example).
  547. lt_prog_compiler_pic='-DDLL_EXPORT'
  548. @@ -10418,7 +10418,7 @@
  549. extract_expsyms_cmds=
  550. case $host_os in
  551. - cygwin* | mingw* | pw32* | cegcc*)
  552. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  553. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  554. # When not using gcc, we currently assume that we are using
  555. # Microsoft Visual C++ or Intel C++ Compiler.
  556. @@ -10533,7 +10533,7 @@
  557. fi
  558. ;;
  559. - cygwin* | mingw* | pw32* | cegcc*)
  560. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  561. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  562. # as there is no search path for DLLs.
  563. hardcode_libdir_flag_spec='-L$libdir'
  564. @@ -11074,7 +11074,7 @@
  565. export_dynamic_flag_spec=-rdynamic
  566. ;;
  567. - cygwin* | mingw* | pw32* | cegcc*)
  568. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  569. # When not using gcc, we currently assume that we are using
  570. # Microsoft Visual C++ or Intel C++ Compiler.
  571. # hardcode_libdir_flag_spec is actually meaningless, as there is
  572. @@ -12110,7 +12110,7 @@
  573. # libtool to hard-code these into programs
  574. ;;
  575. -cygwin* | mingw* | pw32* | cegcc*)
  576. +cygwin* | msys* | mingw* | pw32* | cegcc*)
  577. version_type=windows
  578. shrext_cmds=.dll
  579. need_version=no
  580. @@ -12136,9 +12136,9 @@
  581. shlibpath_overrides_runpath=yes
  582. case $host_os in
  583. - cygwin*)
  584. + cygwin* | msys*)
  585. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  586. - soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  587. + soname_spec='`echo $libname | $SED -e 's/^lib/msys-/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  588. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  589. ;;
  590. @@ -12176,7 +12176,7 @@
  591. # Convert to MSYS style.
  592. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  593. ;;
  594. - cygwin*)
  595. + cygwin* | msys*)
  596. # Convert to unix form, then to dos form, then back to unix form
  597. # but this time dos style (no spaces!) so that the unix form looks
  598. # like /cygdrive/c/PROGRA~1:/cygdr...
  599. @@ -12878,7 +12878,7 @@
  600. lt_cv_dlopen_libs=
  601. ;;
  602. - cygwin*)
  603. + cygwin* | msys*)
  604. lt_cv_dlopen=dlopen
  605. lt_cv_dlopen_libs=
  606. ;;
  607. @@ -13827,7 +13827,7 @@
  608. beos*)
  609. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
  610. ;;
  611. -cygwin* | mingw* | pw32*)
  612. +cygwin* | msys* | mingw* | pw32*)
  613. ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
  614. "
  615. if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
  616. @@ -14242,7 +14242,7 @@
  617. $as_echo_n "(cached) " >&6
  618. else
  619. case $host_os in #(
  620. - *cygwin*)
  621. + *cygwin* | *msys*)
  622. lt_cv_sys_argz_works=no
  623. if test no != "$cross_compiling"; then
  624. lt_cv_sys_argz_works="guessing no"
  625. @@ -15517,7 +15517,7 @@
  626. esac
  627. ;;
  628. - cygwin* | mingw* | pw32* | cegcc*)
  629. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  630. case $GXX,$cc_basename in
  631. ,cl* | no,cl* | ,icl* | no,icl*)
  632. # Native MSVC or ICC
  633. @@ -16528,7 +16528,7 @@
  634. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  635. # PIC is the default for these OSes.
  636. ;;
  637. - mingw* | cygwin* | os2* | pw32* | cegcc*)
  638. + mingw* | cygwin* | msys* | os2* | pw32* | cegcc*)
  639. # This hack is so that the source file can tell whether it is being
  640. # built for inclusion in a dll (and should export symbols for example).
  641. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  642. @@ -16603,7 +16603,7 @@
  643. ;;
  644. esac
  645. ;;
  646. - mingw* | cygwin* | os2* | pw32* | cegcc*)
  647. + mingw* | cygwin* | msys* | os2* | pw32* | cegcc*)
  648. # This hack is so that the source file can tell whether it is being
  649. # built for inclusion in a dll (and should export symbols for example).
  650. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  651. @@ -17092,7 +17092,7 @@
  652. pw32*)
  653. export_symbols_cmds_CXX=$ltdll_cmds
  654. ;;
  655. - cygwin* | mingw* | cegcc*)
  656. + cygwin* | msys* | mingw* | cegcc*)
  657. case $cc_basename in
  658. cl* | icl*)
  659. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  660. @@ -17413,7 +17413,7 @@
  661. # libtool to hard-code these into programs
  662. ;;
  663. -cygwin* | mingw* | pw32* | cegcc*)
  664. +cygwin* | msys* | mingw* | pw32* | cegcc*)
  665. version_type=windows
  666. shrext_cmds=.dll
  667. need_version=no
  668. @@ -17439,7 +17439,7 @@
  669. shlibpath_overrides_runpath=yes
  670. case $host_os in
  671. - cygwin*)
  672. + cygwin* | msys*)
  673. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  674. - soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  675. + soname_spec='`echo $libname | $SED -e 's/^lib/msys-/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  676. @@ -17478,7 +17478,7 @@
  677. # Convert to MSYS style.
  678. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  679. ;;
  680. - cygwin*)
  681. + cygwin* | msys*)
  682. # Convert to unix form, then to dos form, then back to unix form
  683. # but this time dos style (no spaces!) so that the unix form looks
  684. # like /cygdrive/c/PROGRA~1:/cygdr...
  685. @@ -18519,7 +18519,7 @@
  686. # PIC is the default for these OSes.
  687. ;;
  688. - mingw* | cygwin* | pw32* | os2* | cegcc*)
  689. + mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
  690. # This hack is so that the source file can tell whether it is being
  691. # built for inclusion in a dll (and should export symbols for example).
  692. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  693. @@ -18622,7 +18622,7 @@
  694. esac
  695. ;;
  696. - mingw* | cygwin* | pw32* | os2* | cegcc*)
  697. + mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
  698. # This hack is so that the source file can tell whether it is being
  699. # built for inclusion in a dll (and should export symbols for example).
  700. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  701. @@ -19109,7 +19109,7 @@
  702. extract_expsyms_cmds=
  703. case $host_os in
  704. - cygwin* | mingw* | pw32* | cegcc*)
  705. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  706. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  707. # When not using gcc, we currently assume that we are using
  708. # Microsoft Visual C++ or Intel C++ Compiler.
  709. @@ -19224,7 +19224,7 @@
  710. fi
  711. ;;
  712. - cygwin* | mingw* | pw32* | cegcc*)
  713. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  714. # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  715. # as there is no search path for DLLs.
  716. hardcode_libdir_flag_spec_F77='-L$libdir'
  717. @@ -19753,7 +19753,7 @@
  718. export_dynamic_flag_spec_F77=-rdynamic
  719. ;;
  720. - cygwin* | mingw* | pw32* | cegcc*)
  721. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  722. # When not using gcc, we currently assume that we are using
  723. # Microsoft Visual C++ or Intel C++ Compiler.
  724. # hardcode_libdir_flag_spec is actually meaningless, as there is
  725. @@ -20581,7 +20581,7 @@
  726. # libtool to hard-code these into programs
  727. ;;
  728. -cygwin* | mingw* | pw32* | cegcc*)
  729. +cygwin* | msys* | mingw* | pw32* | cegcc*)
  730. version_type=windows
  731. shrext_cmds=.dll
  732. need_version=no
  733. @@ -20607,9 +20607,9 @@
  734. shlibpath_overrides_runpath=yes
  735. case $host_os in
  736. - cygwin*)
  737. + cygwin* | msys*)
  738. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  739. - soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  740. + soname_spec='`echo $libname | $SED -e 's/^lib/msys-/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  741. ;;
  742. mingw* | cegcc*)
  743. @@ -20646,7 +20646,7 @@
  744. # Convert to MSYS style.
  745. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  746. ;;
  747. - cygwin*)
  748. + cygwin* | msys*)
  749. # Convert to unix form, then to dos form, then back to unix form
  750. # but this time dos style (no spaces!) so that the unix form looks
  751. # like /cygdrive/c/PROGRA~1:/cygdr...
  752. @@ -21822,7 +21822,7 @@
  753. # PIC is the default for these OSes.
  754. ;;
  755. - mingw* | cygwin* | pw32* | os2* | cegcc*)
  756. + mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
  757. # This hack is so that the source file can tell whether it is being
  758. # built for inclusion in a dll (and should export symbols for example).
  759. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  760. @@ -21925,7 +21925,7 @@
  761. esac
  762. ;;
  763. - mingw* | cygwin* | pw32* | os2* | cegcc*)
  764. + mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
  765. # This hack is so that the source file can tell whether it is being
  766. # built for inclusion in a dll (and should export symbols for example).
  767. lt_prog_compiler_pic_FC='-DDLL_EXPORT'
  768. @@ -22412,7 +22412,7 @@
  769. extract_expsyms_cmds=
  770. case $host_os in
  771. - cygwin* | mingw* | pw32* | cegcc*)
  772. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  773. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  774. # When not using gcc, we currently assume that we are using
  775. # Microsoft Visual C++ or Intel C++ Compiler.
  776. @@ -22527,7 +22527,7 @@
  777. fi
  778. ;;
  779. - cygwin* | mingw* | pw32* | cegcc*)
  780. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  781. # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
  782. # as there is no search path for DLLs.
  783. hardcode_libdir_flag_spec_FC='-L$libdir'
  784. @@ -23056,7 +23056,7 @@
  785. export_dynamic_flag_spec_FC=-rdynamic
  786. ;;
  787. - cygwin* | mingw* | pw32* | cegcc*)
  788. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  789. # When not using gcc, we currently assume that we are using
  790. # Microsoft Visual C++ or Intel C++ Compiler.
  791. # hardcode_libdir_flag_spec is actually meaningless, as there is
  792. @@ -23884,7 +23884,7 @@
  793. # libtool to hard-code these into programs
  794. ;;
  795. -cygwin* | mingw* | pw32* | cegcc*)
  796. +cygwin* | msys* | mingw* | pw32* | cegcc*)
  797. version_type=windows
  798. shrext_cmds=.dll
  799. need_version=no
  800. @@ -23910,9 +23910,9 @@
  801. shlibpath_overrides_runpath=yes
  802. case $host_os in
  803. - cygwin*)
  804. + cygwin* | msys*)
  805. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  806. - soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  807. + soname_spec='`echo $libname | $SED -e 's/^lib/msys-/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  808. ;;
  809. mingw* | cegcc*)
  810. @@ -23949,7 +23949,7 @@
  811. # Convert to MSYS style.
  812. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  813. ;;
  814. - cygwin*)
  815. + cygwin* | msys*)
  816. # Convert to unix form, then to dos form, then back to unix form
  817. # but this time dos style (no spaces!) so that the unix form looks
  818. # like /cygdrive/c/PROGRA~1:/cygdr...
  819. @@ -24844,7 +24844,7 @@
  820. # PIC is the default for these OSes.
  821. ;;
  822. - mingw* | cygwin* | pw32* | os2* | cegcc*)
  823. + mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
  824. # This hack is so that the source file can tell whether it is being
  825. # built for inclusion in a dll (and should export symbols for example).
  826. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  827. @@ -24947,7 +24947,7 @@
  828. esac
  829. ;;
  830. - mingw* | cygwin* | pw32* | os2* | cegcc*)
  831. + mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
  832. # This hack is so that the source file can tell whether it is being
  833. # built for inclusion in a dll (and should export symbols for example).
  834. lt_prog_compiler_pic_GO='-DDLL_EXPORT'
  835. @@ -25434,7 +25434,7 @@
  836. extract_expsyms_cmds=
  837. case $host_os in
  838. - cygwin* | mingw* | pw32* | cegcc*)
  839. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  840. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  841. # When not using gcc, we currently assume that we are using
  842. # Microsoft Visual C++ or Intel C++ Compiler.
  843. @@ -25549,7 +25549,7 @@
  844. fi
  845. ;;
  846. - cygwin* | mingw* | pw32* | cegcc*)
  847. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  848. # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
  849. # as there is no search path for DLLs.
  850. hardcode_libdir_flag_spec_GO='-L$libdir'
  851. @@ -26090,7 +26090,7 @@
  852. export_dynamic_flag_spec_GO=-rdynamic
  853. ;;
  854. - cygwin* | mingw* | pw32* | cegcc*)
  855. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  856. # When not using gcc, we currently assume that we are using
  857. # Microsoft Visual C++ or Intel C++ Compiler.
  858. # hardcode_libdir_flag_spec is actually meaningless, as there is
  859. @@ -27073,7 +27073,7 @@
  860. # PIC is the default for these OSes.
  861. ;;
  862. - mingw* | cygwin* | pw32* | os2* | cegcc*)
  863. + mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
  864. # This hack is so that the source file can tell whether it is being
  865. # built for inclusion in a dll (and should export symbols for example).
  866. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  867. @@ -27176,7 +27176,7 @@
  868. esac
  869. ;;
  870. - mingw* | cygwin* | pw32* | os2* | cegcc*)
  871. + mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
  872. # This hack is so that the source file can tell whether it is being
  873. # built for inclusion in a dll (and should export symbols for example).
  874. @@ -27663,7 +27663,7 @@
  875. extract_expsyms_cmds=
  876. case $host_os in
  877. - cygwin* | mingw* | pw32* | cegcc*)
  878. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  879. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  880. # When not using gcc, we currently assume that we are using
  881. # Microsoft Visual C++ or Intel C++ Compiler.
  882. @@ -27778,7 +27778,7 @@
  883. fi
  884. ;;
  885. - cygwin* | mingw* | pw32* | cegcc*)
  886. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  887. # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  888. # as there is no search path for DLLs.
  889. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  890. @@ -28319,7 +28319,7 @@
  891. export_dynamic_flag_spec_GCJ=-rdynamic
  892. ;;
  893. - cygwin* | mingw* | pw32* | cegcc*)
  894. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  895. # When not using gcc, we currently assume that we are using
  896. # Microsoft Visual C++ or Intel C++ Compiler.
  897. # hardcode_libdir_flag_spec is actually meaningless, as there is
  898. diff -urN libtool-2.4.7/libltdl/configure.orig libtool-2.4.7/libltdl/configure
  899. --- libtool-2.4.7/libltdl/configure.orig 2022-05-25 14:29:13.245182300 +0200
  900. +++ libtool-2.4.7/libltdl/configure 2022-05-25 14:30:03.920944200 +0200
  901. @@ -4774,7 +4774,7 @@
  902. lt_cv_sys_max_cmd_len=-1;
  903. ;;
  904. - cygwin* | mingw* | cegcc*)
  905. + cygwin* | msys* | mingw* | cegcc*)
  906. # On Win9x/ME, this test blows up -- it succeeds, but takes
  907. # about 5 minutes as the teststring grows exponentially.
  908. # Worse, since 9x/ME are not pre-emptively multitasking,
  909. @@ -4940,7 +4940,7 @@
  910. *-*-mingw* ) # actually msys
  911. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  912. ;;
  913. - *-*-cygwin* )
  914. + *-*-cygwin* | *-*-msys* )
  915. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  916. ;;
  917. * ) # otherwise, assume *nix
  918. @@ -4948,12 +4948,12 @@
  919. ;;
  920. esac
  921. ;;
  922. - *-*-cygwin* )
  923. + *-*-cygwin* | *-*-msys* )
  924. case $build in
  925. *-*-mingw* ) # actually msys
  926. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  927. ;;
  928. - *-*-cygwin* )
  929. + *-*-cygwin* | *-*-msys* )
  930. lt_cv_to_host_file_cmd=func_convert_file_noop
  931. ;;
  932. * ) # otherwise, assume *nix
  933. @@ -5019,7 +5019,7 @@
  934. esac
  935. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  936. case $host_os in
  937. - cygwin* | mingw* | pw32* | cegcc*)
  938. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  939. if test yes != "$GCC"; then
  940. reload_cmds=false
  941. fi
  942. @@ -5272,7 +5272,7 @@
  943. lt_cv_file_magic_test_file=/shlib/libc.so
  944. ;;
  945. -cygwin*)
  946. +cygwin* | msys*)
  947. # func_win32_libid is a shell function defined in ltmain.sh
  948. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  949. lt_cv_file_magic_cmd='func_win32_libid'
  950. @@ -5588,7 +5588,7 @@
  951. lt_cv_sharedlib_from_linklib_cmd='unknown'
  952. case $host_os in
  953. -cygwin* | mingw* | pw32* | cegcc*)
  954. +cygwin* | msys* | mingw* | pw32* | cegcc*)
  955. # two different shell functions defined in ltmain.sh;
  956. # decide which one to use based on capabilities of $DLLTOOL
  957. case `$DLLTOOL --help 2>&1` in
  958. @@ -6097,7 +6097,7 @@
  959. aix*)
  960. symcode='[BCDT]'
  961. ;;
  962. -cygwin* | mingw* | pw32* | cegcc*)
  963. +cygwin* | msys* | mingw* | pw32* | cegcc*)
  964. symcode='[ABCDGISTW]'
  965. ;;
  966. hpux*)
  967. @@ -7837,7 +7837,7 @@
  968. enable_win32_dll=yes
  969. case $host in
  970. -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  971. +*-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  972. if test -n "$ac_tool_prefix"; then
  973. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  974. set dummy ${ac_tool_prefix}as; ac_word=$2
  975. @@ -8738,7 +8738,7 @@
  976. # PIC is the default for these OSes.
  977. ;;
  978. - mingw* | cygwin* | pw32* | os2* | cegcc*)
  979. + mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
  980. # This hack is so that the source file can tell whether it is being
  981. # built for inclusion in a dll (and should export symbols for example).
  982. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  983. @@ -8841,7 +8841,7 @@
  984. esac
  985. ;;
  986. - mingw* | cygwin* | pw32* | os2* | cegcc*)
  987. + mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
  988. # This hack is so that the source file can tell whether it is being
  989. # built for inclusion in a dll (and should export symbols for example).
  990. lt_prog_compiler_pic='-DDLL_EXPORT'
  991. @@ -9343,7 +9343,7 @@
  992. extract_expsyms_cmds=
  993. case $host_os in
  994. - cygwin* | mingw* | pw32* | cegcc*)
  995. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  996. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  997. # When not using gcc, we currently assume that we are using
  998. # Microsoft Visual C++ or Intel C++ Compiler.
  999. @@ -9458,7 +9458,7 @@
  1000. fi
  1001. ;;
  1002. - cygwin* | mingw* | pw32* | cegcc*)
  1003. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  1004. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  1005. # as there is no search path for DLLs.
  1006. hardcode_libdir_flag_spec='-L$libdir'
  1007. @@ -9999,7 +9999,7 @@
  1008. export_dynamic_flag_spec=-rdynamic
  1009. ;;
  1010. - cygwin* | mingw* | pw32* | cegcc*)
  1011. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  1012. # When not using gcc, we currently assume that we are using
  1013. # Microsoft Visual C++ or Intel C++ Compiler.
  1014. # hardcode_libdir_flag_spec is actually meaningless, as there is
  1015. @@ -11035,7 +11035,7 @@
  1016. # libtool to hard-code these into programs
  1017. ;;
  1018. -cygwin* | mingw* | pw32* | cegcc*)
  1019. +cygwin* | msys* | mingw* | pw32* | cegcc*)
  1020. version_type=windows
  1021. shrext_cmds=.dll
  1022. need_version=no
  1023. @@ -11067,6 +11067,12 @@
  1024. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  1025. ;;
  1026. + msys*)
  1027. + # MSYS DLLs use 'msys-' prefix rather than 'lib'
  1028. + soname_spec='`echo $libname | sed -e 's/^lib/msys-/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  1029. +
  1030. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  1031. + ;;
  1032. mingw* | cegcc*)
  1033. # MinGW DLLs use traditional 'lib' prefix
  1034. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  1035. @@ -11101,7 +11107,7 @@
  1036. # Convert to MSYS style.
  1037. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  1038. ;;
  1039. - cygwin*)
  1040. + cygwin* | msys*)
  1041. # Convert to unix form, then to dos form, then back to unix form
  1042. # but this time dos style (no spaces!) so that the unix form looks
  1043. # like /cygdrive/c/PROGRA~1:/cygdr...
  1044. @@ -11803,7 +11809,7 @@
  1045. lt_cv_dlopen_libs=
  1046. ;;
  1047. - cygwin*)
  1048. + cygwin* | msys*)
  1049. lt_cv_dlopen=dlopen
  1050. lt_cv_dlopen_libs=
  1051. ;;
  1052. @@ -12751,7 +12757,7 @@
  1053. beos*)
  1054. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
  1055. ;;
  1056. -cygwin* | mingw* | pw32*)
  1057. +cygwin* | msys* | mingw* | pw32*)
  1058. ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
  1059. "
  1060. if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
  1061. @@ -13166,7 +13172,7 @@
  1062. $as_echo_n "(cached) " >&6
  1063. else
  1064. case $host_os in #(
  1065. - *cygwin*)
  1066. + *cygwin* | *msys*)
  1067. lt_cv_sys_argz_works=no
  1068. if test no != "$cross_compiling"; then
  1069. lt_cv_sys_argz_works="guessing no"
  1070. diff -urN libtool-2.4.7/m4/libtool.m4.orig libtool-2.4.7/m4/libtool.m4
  1071. --- libtool-2.4.7/m4/libtool.m4.orig 2022-03-17 03:43:39.000000000 +0100
  1072. +++ libtool-2.4.7/m4/libtool.m4 2022-05-25 14:26:59.035745300 +0200
  1073. @@ -1703,7 +1703,7 @@
  1074. lt_cv_sys_max_cmd_len=-1;
  1075. ;;
  1076. - cygwin* | mingw* | cegcc*)
  1077. + cygwin* | msys* | mingw* | cegcc*)
  1078. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1079. # about 5 minutes as the teststring grows exponentially.
  1080. # Worse, since 9x/ME are not pre-emptively multitasking,
  1081. @@ -1951,7 +1951,7 @@
  1082. lt_cv_dlopen_libs=
  1083. ;;
  1084. - cygwin*)
  1085. + cygwin* | msys*)
  1086. lt_cv_dlopen=dlopen
  1087. lt_cv_dlopen_libs=
  1088. ;;
  1089. @@ -2541,7 +2541,7 @@
  1090. # libtool to hard-code these into programs
  1091. ;;
  1092. -cygwin* | mingw* | pw32* | cegcc*)
  1093. +cygwin* | msys* | mingw* | pw32* | cegcc*)
  1094. version_type=windows
  1095. shrext_cmds=.dll
  1096. need_version=no
  1097. @@ -2567,9 +2567,9 @@
  1098. shlibpath_overrides_runpath=yes
  1099. case $host_os in
  1100. - cygwin*)
  1101. + cygwin* | msys*)
  1102. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  1103. - soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  1104. + soname_spec='`echo $libname | $SED -e 's/^lib/msys-/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  1105. m4_if([$1], [],[
  1106. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  1107. ;;
  1108. @@ -2607,7 +2607,7 @@
  1109. # Convert to MSYS style.
  1110. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  1111. ;;
  1112. - cygwin*)
  1113. + cygwin* | msys*)
  1114. # Convert to unix form, then to dos form, then back to unix form
  1115. # but this time dos style (no spaces!) so that the unix form looks
  1116. # like /cygdrive/c/PROGRA~1:/cygdr...
  1117. @@ -3385,7 +3385,7 @@
  1118. esac
  1119. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  1120. case $host_os in
  1121. - cygwin* | mingw* | pw32* | cegcc*)
  1122. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  1123. if test yes != "$GCC"; then
  1124. reload_cmds=false
  1125. fi
  1126. @@ -3478,7 +3478,7 @@
  1127. lt_cv_file_magic_test_file=/shlib/libc.so
  1128. ;;
  1129. -cygwin*)
  1130. +cygwin* | msys*)
  1131. # func_win32_libid is a shell function defined in ltmain.sh
  1132. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  1133. lt_cv_file_magic_cmd='func_win32_libid'
  1134. @@ -3791,7 +3791,7 @@
  1135. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  1136. case $host_os in
  1137. -cygwin* | mingw* | pw32* | cegcc*)
  1138. +cygwin* | msys* | mingw* | pw32* | cegcc*)
  1139. # two different shell functions defined in ltmain.sh;
  1140. # decide which one to use based on capabilities of $DLLTOOL
  1141. case `$DLLTOOL --help 2>&1` in
  1142. @@ -3861,7 +3861,7 @@
  1143. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1144. LIBM=
  1145. case $host in
  1146. -*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  1147. +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-msys* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  1148. # These system don't have libm, or don't need it
  1149. ;;
  1150. *-ncr-sysv4.3*)
  1151. @@ -3936,7 +3936,7 @@
  1152. aix*)
  1153. symcode='[[BCDT]]'
  1154. ;;
  1155. -cygwin* | mingw* | pw32* | cegcc*)
  1156. +cygwin* | msys* | mingw* | pw32* | cegcc*)
  1157. symcode='[[ABCDGISTW]]'
  1158. ;;
  1159. hpux*)
  1160. @@ -4242,7 +4242,7 @@
  1161. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  1162. # PIC is the default for these OSes.
  1163. ;;
  1164. - mingw* | cygwin* | os2* | pw32* | cegcc*)
  1165. + mingw* | cygwin* | msys* | os2* | pw32* | cegcc*)
  1166. # This hack is so that the source file can tell whether it is being
  1167. # built for inclusion in a dll (and should export symbols for example).
  1168. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  1169. @@ -4318,7 +4318,7 @@
  1170. ;;
  1171. esac
  1172. ;;
  1173. - mingw* | cygwin* | os2* | pw32* | cegcc*)
  1174. + mingw* | cygwin* | msys* | os2* | pw32* | cegcc*)
  1175. # This hack is so that the source file can tell whether it is being
  1176. # built for inclusion in a dll (and should export symbols for example).
  1177. m4_if([$1], [GCJ], [],
  1178. @@ -4566,7 +4566,7 @@
  1179. # PIC is the default for these OSes.
  1180. ;;
  1181. - mingw* | cygwin* | pw32* | os2* | cegcc*)
  1182. + mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
  1183. # This hack is so that the source file can tell whether it is being
  1184. # built for inclusion in a dll (and should export symbols for example).
  1185. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  1186. @@ -4670,7 +4670,7 @@
  1187. esac
  1188. ;;
  1189. - mingw* | cygwin* | pw32* | os2* | cegcc*)
  1190. + mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
  1191. # This hack is so that the source file can tell whether it is being
  1192. # built for inclusion in a dll (and should export symbols for example).
  1193. m4_if([$1], [GCJ], [],
  1194. @@ -4945,7 +4945,7 @@
  1195. pw32*)
  1196. _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
  1197. ;;
  1198. - cygwin* | mingw* | cegcc*)
  1199. + cygwin* | msys* | mingw* | cegcc*)
  1200. case $cc_basename in
  1201. cl* | icl*)
  1202. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  1203. @@ -5003,7 +5003,7 @@
  1204. extract_expsyms_cmds=
  1205. case $host_os in
  1206. - cygwin* | mingw* | pw32* | cegcc*)
  1207. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  1208. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  1209. # When not using gcc, we currently assume that we are using
  1210. # Microsoft Visual C++ or Intel C++ Compiler.
  1211. @@ -5118,7 +5118,7 @@
  1212. fi
  1213. ;;
  1214. - cygwin* | mingw* | pw32* | cegcc*)
  1215. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  1216. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  1217. # as there is no search path for DLLs.
  1218. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1219. @@ -5575,7 +5575,7 @@
  1220. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  1221. ;;
  1222. - cygwin* | mingw* | pw32* | cegcc*)
  1223. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  1224. # When not using gcc, we currently assume that we are using
  1225. # Microsoft Visual C++ or Intel C++ Compiler.
  1226. # hardcode_libdir_flag_spec is actually meaningless, as there is
  1227. @@ -6651,7 +6651,7 @@
  1228. esac
  1229. ;;
  1230. - cygwin* | mingw* | pw32* | cegcc*)
  1231. + cygwin* | msys* | mingw* | pw32* | cegcc*)
  1232. case $GXX,$cc_basename in
  1233. ,cl* | no,cl* | ,icl* | no,icl*)
  1234. # Native MSVC or ICC
  1235. @@ -8348,7 +8348,7 @@
  1236. *-*-mingw* ) # actually msys
  1237. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  1238. ;;
  1239. - *-*-cygwin* )
  1240. + *-*-cygwin* | *-*-msys* )
  1241. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  1242. ;;
  1243. * ) # otherwise, assume *nix
  1244. @@ -8356,12 +8356,12 @@
  1245. ;;
  1246. esac
  1247. ;;
  1248. - *-*-cygwin* )
  1249. + *-*-cygwin* | *-*-msys* )
  1250. case $build in
  1251. *-*-mingw* ) # actually msys
  1252. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  1253. ;;
  1254. - *-*-cygwin* )
  1255. + *-*-cygwin* | *-*-msys* )
  1256. lt_cv_to_host_file_cmd=func_convert_file_noop
  1257. ;;
  1258. * ) # otherwise, assume *nix
  1259. diff -Naur libtool-2.4.2.418-orig/m4/ltdl.m4 libtool-2.4.2.418/m4/ltdl.m4
  1260. --- libtool-2.4.2.418-orig/m4/ltdl.m4 2013-10-26 03:37:46.000000000 +0400
  1261. +++ libtool-2.4.2.418/m4/ltdl.m4 2014-09-02 10:19:58.102800000 +0400
  1262. @@ -706,7 +706,7 @@
  1263. beos*)
  1264. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
  1265. ;;
  1266. -cygwin* | mingw* | pw32*)
  1267. +cygwin* | msys* | mingw* | pw32*)
  1268. AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include <sys/cygwin.h>]])
  1269. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
  1270. ;;
  1271. diff -Naur libtool-2.4.2.418-orig/m4/ltoptions.m4 libtool-2.4.2.418/m4/ltoptions.m4
  1272. --- libtool-2.4.2.418-orig/m4/ltoptions.m4 2013-10-26 03:37:46.000000000 +0400
  1273. +++ libtool-2.4.2.418/m4/ltoptions.m4 2014-09-02 10:20:19.069200000 +0400
  1274. @@ -126,7 +126,7 @@
  1275. [enable_win32_dll=yes
  1276. case $host in
  1277. -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  1278. +*-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  1279. AC_CHECK_TOOL(AS, as, false)
  1280. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1281. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  1282. diff -Naur libtool-2.4.2.418-orig/tests/bindir.at libtool-2.4.2.418/tests/bindir.at
  1283. --- libtool-2.4.2.418-orig/tests/bindir.at 2013-01-26 08:19:10.000000000 +0400
  1284. +++ libtool-2.4.2.418/tests/bindir.at 2014-09-02 10:21:21.999600000 +0400
  1285. @@ -65,7 +65,7 @@
  1286. bindirneeded=:
  1287. case $host_os in
  1288. - cygwin*|mingw*|cegcc*)
  1289. + cygwin*|msys*|mingw*|cegcc*)
  1290. ;;
  1291. *)
  1292. bindirneeded=false
  1293. @@ -174,7 +174,7 @@
  1294. bindirneeded=:
  1295. case $host_os in
  1296. - cygwin*|mingw*|cegcc*)
  1297. + cygwin*|msys*|mingw*|cegcc*)
  1298. ;;
  1299. *)
  1300. bindirneeded=false
  1301. diff -Naur libtool-2.4.2.418-orig/tests/lt_dladvise.at libtool-2.4.2.418/tests/lt_dladvise.at
  1302. --- libtool-2.4.2.418-orig/tests/lt_dladvise.at 2013-01-01 21:36:01.000000000 +0400
  1303. +++ libtool-2.4.2.418/tests/lt_dladvise.at 2014-09-02 10:20:51.298800000 +0400
  1304. @@ -332,7 +332,7 @@
  1305. $LIBTOOL --features | grep 'enable shared libraries' >/dev/null && have_shared=:
  1306. case $host_os,$have_shared in
  1307. -cygwin* | mingw* | cegcc* | *,false)
  1308. +cygwin* | msys* | mingw* | cegcc* | *,false)
  1309. # These hosts do not support linking without -no-undefined
  1310. CPPFLAGS="$CPPFLAGS -DHAVE_UNDEFINED_SYMBOLS=0"
  1311. ;;