class101

ct-ng-dw.patch - http://goo.gl/miqX5L

Jan 18th, 2014
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 71.63 KB | None | 0 0
  1. Index: config/binutils/binutils.in
  2. ===================================================================
  3. --- config/binutils/binutils.in (revision 265)
  4. +++ config/binutils/binutils.in (working copy)
  5. @@ -11,6 +11,11 @@
  6.  # Don't remove next line
  7.  # CT_INSERT_VERSION_BELOW
  8.  
  9. +config BINUTILS_V_2_24
  10. +    bool
  11. +    prompt "2.24 (EXPERIMENTAL)"
  12. +    depends on EXPERIMENTAL
  13. +
  14.  config BINUTILS_V_2_23_2
  15.      bool
  16.      prompt "2.23.2 (EXPERIMENTAL)"
  17. @@ -76,6 +81,7 @@
  18.      string
  19.  # Don't remove next line
  20.  # CT_INSERT_VERSION_STRING_BELOW
  21. +    default "2.24" if BINUTILS_V_2_24
  22.      default "2.23.2" if BINUTILS_V_2_23_2
  23.      default "2.23.1" if BINUTILS_V_2_23_1
  24.      default "2.22" if BINUTILS_V_2_22
  25. @@ -86,6 +92,12 @@
  26.      default "2.18a" if BINUTILS_V_2_18a
  27.      default "custom" if BINUTILS_CUSTOM
  28.  
  29. +config BINUTILS_2_24_or_later
  30. +    bool
  31. +    select BINUTILS_2_23_or_later
  32. +    select BINUTILS_HAS_GOLD
  33. +    select BINUTILS_HAS_PLUGINS
  34. +
  35.  config BINUTILS_2_23_or_later
  36.      bool
  37.      select BINUTILS_2_22_or_later
  38. Index: config/companion_libs/cloog.in
  39. ===================================================================
  40. --- config/companion_libs/cloog.in  (revision 265)
  41. +++ config/companion_libs/cloog.in  (working copy)
  42. @@ -9,6 +9,11 @@
  43.  # Don't remove next line
  44.  # CT_INSERT_VERSION_BELOW
  45.  
  46. +config CLOOG_V_0_18_1
  47. +    bool
  48. +    prompt "0.18.1"
  49. +    select CLOOG_0_18_or_later
  50. +
  51.  config CLOOG_V_0_18_0
  52.      bool
  53.      prompt "0.18.0"
  54. @@ -52,6 +57,7 @@
  55.      string
  56.  # Don't remove next line
  57.  # CT_INSERT_VERSION_STRING_BELOW
  58. +    default "0.18.1" if CLOOG_V_0_18_1
  59.      default "0.18.0" if CLOOG_V_0_18_0
  60.      default "0.15.11" if CLOOG_V_0_15_11
  61.      default "0.15.10" if CLOOG_V_0_15_10
  62. Index: config/companion_libs/gmp.in
  63. ===================================================================
  64. --- config/companion_libs/gmp.in    (revision 265)
  65. +++ config/companion_libs/gmp.in    (working copy)
  66. @@ -6,6 +6,14 @@
  67.  # Don't remove next line
  68.  # CT_INSERT_VERSION_BELOW
  69.  
  70. +config GMP_V_5_1_3
  71. +    bool
  72. +    prompt "5.1.3"
  73. +
  74. +config GMP_V_5_1_2
  75. +    bool
  76. +    prompt "5.1.2"
  77. +
  78.  config GMP_V_5_1_1
  79.      bool
  80.      prompt "5.1.1"
  81. @@ -36,6 +44,8 @@
  82.      string
  83.  # Don't remove next line
  84.  # CT_INSERT_VERSION_STRING_BELOW
  85. +    default "5.1.3" if GMP_V_5_1_3
  86. +    default "5.1.2" if GMP_V_5_1_2
  87.      default "5.1.1" if GMP_V_5_1_1
  88.      default "5.0.2" if GMP_V_5_0_2
  89.      default "5.0.1" if GMP_V_5_0_1
  90. Index: config/debug/gdb.in
  91. ===================================================================
  92. --- config/debug/gdb.in (revision 265)
  93. +++ config/debug/gdb.in (working copy)
  94. @@ -34,6 +34,12 @@
  95.  # CT_INSERT_VERSION_BELOW
  96.  
  97.  
  98. +config GDB_V_7_6_2
  99. +    bool
  100. +    prompt "7.6.2"
  101. +    select GDB_7_0_or_later
  102. +    select GDB_7_2_or_later
  103. +
  104.  config GDB_V_7_6_1
  105.      bool
  106.      prompt "7.6.1"
  107. @@ -157,6 +163,7 @@
  108.      string
  109.  # Don't remove next line
  110.  # CT_INSERT_VERSION_STRING_BELOW
  111. +    default "7.6.2" if GDB_V_7_6_2
  112.      default "7.6.1" if GDB_V_7_6_1
  113.      default "linaro-7.6-2013.05" if GDB_V_linaro_7_6_2013_05
  114.      default "7.5.1" if GDB_V_7_5_1
  115. Index: config/libc/mingw.in
  116. ===================================================================
  117. --- config/libc/mingw.in    (revision 265)
  118. +++ config/libc/mingw.in    (working copy)
  119. @@ -14,6 +14,14 @@
  120.  # Don't remove next line
  121.  # CT_INSERT_VERSION_BELOW
  122.  
  123. +config WINAPI_V_3_1_0
  124. +    bool
  125. +    prompt "3.1.0"
  126. +
  127. +config WINAPI_V_3_0_0
  128. +    bool
  129. +    prompt "3.0.0"
  130. +
  131.  config WINAPI_V_2_0_8
  132.      bool
  133.      prompt "2.0.8"
  134. @@ -22,10 +30,6 @@
  135.      bool
  136.      prompt "2.0.7"
  137.  
  138. -config WINAPI_V_3_0_0
  139. -    bool
  140. -    prompt "3.0.0"
  141. -
  142.  config WINAPI_V_select
  143.      bool
  144.      prompt "Other version"
  145. @@ -37,6 +41,7 @@
  146.      prompt "Windows API version" if WINAPI_V_select
  147.  # Don't remove next line
  148.  # CT_INSERT_VERSION_STRING_BELOW
  149. +    default "3.1.0" if WINAPI_V_3_1_0
  150.      default "3.0.0" if WINAPI_V_3_0_0
  151.      default "2.0.8" if WINAPI_V_2_0_8
  152.      default "2.0.7" if WINAPI_V_2_0_7
  153. Index: kconfig/nconf.c
  154. ===================================================================
  155. --- kconfig/nconf.c (revision 265)
  156. +++ kconfig/nconf.c (working copy)
  157. @@ -1544,7 +1544,8 @@
  158.     }
  159.  
  160.     notimeout(stdscr, FALSE);
  161. -   ESCDELAY = 1;
  162. +   //ESCDELAY = 1;
  163. +   set_escdelay(1);
  164.  
  165.     /* set btns menu */
  166.     curses_menu = new_menu(curses_menu_items);
  167. Index: patches/gdb/7.6.2/100-gdb-mingw-ncurse-compat.patch
  168. ===================================================================
  169. --- patches/gdb/7.6.2/100-gdb-mingw-ncurse-compat.patch (revision 0)
  170. +++ patches/gdb/7.6.2/100-gdb-mingw-ncurse-compat.patch (working copy)
  171. @@ -0,0 +1,35 @@
  172. +--- a/gdb/windows-termcap.c.orig   2013-12-08 05:11:51.000000000 +0100
  173. ++++ b/gdb/windows-termcap.c    2014-01-18 21:55:31.443185000 +0100
  174. +@@ -20,13 +20,16 @@
  175. +    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
  176. +
  177. + #include <stdlib.h>
  178. ++#include <config.h>
  179. +
  180. + /* -Wmissing-prototypes */
  181. + extern int tgetent (char *buffer, char *termtype);
  182. + extern int tgetnum (char *name);
  183. + extern int tgetflag (char *name);
  184. + extern char* tgetstr (char *name, char **area);
  185. ++#ifndef HAVE_NCURSES_NCURSES_H
  186. + extern int tputs (char *string, int nlines, int (*outfun) ());
  187. ++#endif
  188. + extern char *tgoto (const char *cap, int col, int row);
  189. +
  190. + /* Each of the files below is a minimal implementation of the standard
  191. +@@ -57,6 +60,7 @@
  192. +   return NULL;
  193. + }
  194. +
  195. ++#ifndef HAVE_NCURSES_NCURSES_H
  196. + int
  197. + tputs (char *string, int nlines, int (*outfun) ())
  198. + {
  199. +@@ -65,6 +69,7 @@
  200. +
  201. +   return 0;
  202. + }
  203. ++#endif
  204. +
  205. + char *
  206. + tgoto (const char *cap, int col, int row)
  207. Index: patches/gdb/7.6.2/100-gdb-mingw-ncurse-compat.patch
  208. ===================================================================
  209. --- patches/gdb/7.6.2/100-gdb-mingw-ncurse-compat.patch (revision 0)
  210. +++ patches/gdb/7.6.2/100-gdb-mingw-ncurse-compat.patch (working copy)
  211. @@ -0,0 +1,35 @@
  212. +--- a/gdb/windows-termcap.c.orig   2013-12-08 05:11:51.000000000 +0100
  213. ++++ b/gdb/windows-termcap.c    2014-01-18 21:55:31.443185000 +0100
  214. +@@ -20,13 +20,16 @@
  215. +    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
  216. +
  217. + #include <stdlib.h>
  218. ++#include <config.h>
  219. +
  220. + /* -Wmissing-prototypes */
  221. + extern int tgetent (char *buffer, char *termtype);
  222. + extern int tgetnum (char *name);
  223. + extern int tgetflag (char *name);
  224. + extern char* tgetstr (char *name, char **area);
  225. ++#ifndef HAVE_NCURSES_NCURSES_H
  226. + extern int tputs (char *string, int nlines, int (*outfun) ());
  227. ++#endif
  228. + extern char *tgoto (const char *cap, int col, int row);
  229. +
  230. + /* Each of the files below is a minimal implementation of the standard
  231. +@@ -57,6 +60,7 @@
  232. +   return NULL;
  233. + }
  234. +
  235. ++#ifndef HAVE_NCURSES_NCURSES_H
  236. + int
  237. + tputs (char *string, int nlines, int (*outfun) ())
  238. + {
  239. +@@ -65,6 +69,7 @@
  240. +
  241. +   return 0;
  242. + }
  243. ++#endif
  244. +
  245. + char *
  246. + tgoto (const char *cap, int col, int row)
  247. Index: patches/gmp/5.1.3/100-use-srcdirrel-to-avoid-MSYS-path-namespace-mismatch.patch
  248. ===================================================================
  249. --- patches/gmp/5.1.3/100-use-srcdirrel-to-avoid-MSYS-path-namespace-mismatch.patch (revision 0)
  250. +++ patches/gmp/5.1.3/100-use-srcdirrel-to-avoid-MSYS-path-namespace-mismatch.patch (working copy)
  251. @@ -0,0 +1,742 @@
  252. +diff -urN a/acinclude.m4 b/acinclude.m4
  253. +--- a/acinclude.m4 2013-05-20 15:59:56.000000000 +0100
  254. ++++ b/acinclude.m4 2013-07-11 11:34:02.004378404 +0100
  255. +@@ -126,7 +126,7 @@
  256. + #define GMP_NAIL_BITS $GMP_NAIL_BITS
  257. + #define GMP_LIMB_BITS 123
  258. + $DEFN_LONG_LONG_LIMB
  259. +-#include "$srcdir/gmp-h.in"]
  260. ++#include "$srcdirrel/gmp-h.in"]
  261. + ])
  262. +
  263. +
  264. +@@ -3386,7 +3386,7 @@
  265. +                gmp_cv_func_alloca,
  266. + [AC_TRY_LINK(
  267. + GMP_INCLUDE_GMP_H
  268. +-[#include "$srcdir/gmp-impl.h"
  269. ++[#include "$srcdirrel/gmp-impl.h"
  270. + ],
  271. +   [char *p = (char *) alloca (1);],
  272. +   gmp_cv_func_alloca=yes,
  273. +diff -urN a/ax_compute_relative_paths.m4 b/ax_compute_relative_paths.m4
  274. +--- a/ax_compute_relative_paths.m4 1970-01-01 01:00:00.000000000 +0100
  275. ++++ b/ax_compute_relative_paths.m4 2013-07-11 11:34:02.007711740 +0100
  276. +@@ -0,0 +1,190 @@
  277. ++# =============================================================================
  278. ++#  http://www.gnu.org/software/autoconf-archive/ax_compute_relative_paths.html
  279. ++# =============================================================================
  280. ++#
  281. ++# SYNOPSIS
  282. ++#
  283. ++#   AX_COMPUTE_RELATIVE_PATHS(PATH_LIST)
  284. ++#
  285. ++# DESCRIPTION
  286. ++#
  287. ++#   PATH_LIST is a space-separated list of colon-separated triplets of the
  288. ++#   form 'FROM:TO:RESULT'. This function iterates over these triplets and
  289. ++#   set $RESULT to the relative path from $FROM to $TO. Note that $FROM and
  290. ++#   $TO needs to be absolute filenames for this macro to success.
  291. ++#
  292. ++#   For instance,
  293. ++#
  294. ++#     first=/usr/local/bin
  295. ++#     second=/usr/local/share
  296. ++#     AX_COMPUTE_RELATIVE_PATHS([first:second:fs second:first:sf])
  297. ++#     # $fs is set to ../share
  298. ++#     # $sf is set to ../bin
  299. ++#
  300. ++#   $FROM and $TO are both eval'ed recursively and normalized, this means
  301. ++#   that you can call this macro with autoconf's dirnames like `prefix' or
  302. ++#   `datadir'. For example:
  303. ++#
  304. ++#     AX_COMPUTE_RELATIVE_PATHS([bindir:datadir:bin_to_data])
  305. ++#
  306. ++#   AX_COMPUTE_RELATIVE_PATHS should also works with DOS filenames.
  307. ++#
  308. ++#   You may want to use this macro in order to make your package
  309. ++#   relocatable. Instead of hardcoding $datadir into your programs just
  310. ++#   encode $bin_to_data and try to determine $bindir at run-time.
  311. ++#
  312. ++#   This macro requires AX_NORMALIZE_PATH.
  313. ++#
  314. ++# LICENSE
  315. ++#
  316. ++#   Copyright (c) 2008 Alexandre Duret-Lutz <adl@gnu.org>
  317. ++#
  318. ++#   This program is free software; you can redistribute it and/or modify it
  319. ++#   under the terms of the GNU General Public License as published by the
  320. ++#   Free Software Foundation; either version 2 of the License, or (at your
  321. ++#   option) any later version.
  322. ++#
  323. ++#   This program is distributed in the hope that it will be useful, but
  324. ++#   WITHOUT ANY WARRANTY; without even the implied warranty of
  325. ++#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  326. ++#   Public License for more details.
  327. ++#
  328. ++#   You should have received a copy of the GNU General Public License along
  329. ++#   with this program. If not, see <http://www.gnu.org/licenses/>.
  330. ++#
  331. ++#   As a special exception, the respective Autoconf Macro's copyright owner
  332. ++#   gives unlimited permission to copy, distribute and modify the configure
  333. ++#   scripts that are the output of Autoconf when processing the Macro. You
  334. ++#   need not follow the terms of the GNU General Public License when using
  335. ++#   or distributing such scripts, even though portions of the text of the
  336. ++#   Macro appear in them. The GNU General Public License (GPL) does govern
  337. ++#   all other use of the material that constitutes the Autoconf Macro.
  338. ++#
  339. ++#   This special exception to the GPL applies to versions of the Autoconf
  340. ++#   Macro released by the Autoconf Archive. When you make and distribute a
  341. ++#   modified version of the Autoconf Macro, you may extend this special
  342. ++#   exception to the GPL to apply to your modified version as well.
  343. ++
  344. ++#serial 6
  345. ++
  346. ++AU_ALIAS([ADL_COMPUTE_RELATIVE_PATHS], [AX_COMPUTE_RELATIVE_PATHS])
  347. ++AC_DEFUN([AX_COMPUTE_RELATIVE_PATHS],
  348. ++[for _lcl_i in $1; do
  349. ++  _lcl_from=\[$]`echo "[$]_lcl_i" | sed 's,:.*$,,'`
  350. ++  _lcl_to=\[$]`echo "[$]_lcl_i" | sed 's,^[[^:]]*:,,' | sed 's,:[[^:]]*$,,'`
  351. ++  _lcl_result_var=`echo "[$]_lcl_i" | sed 's,^.*:,,'`
  352. ++  AX_RECURSIVE_EVAL([[$]_lcl_from], [_lcl_from])
  353. ++  AX_RECURSIVE_EVAL([[$]_lcl_to], [_lcl_to])
  354. ++  _lcl_notation="$_lcl_from$_lcl_to"
  355. ++  AX_NORMALIZE_PATH([_lcl_from],['/'])
  356. ++  AX_NORMALIZE_PATH([_lcl_to],['/'])
  357. ++  AX_COMPUTE_RELATIVE_PATH([_lcl_from], [_lcl_to], [_lcl_result_tmp])
  358. ++  AX_NORMALIZE_PATH([_lcl_result_tmp],["[$]_lcl_notation"])
  359. ++  eval $_lcl_result_var='[$]_lcl_result_tmp'
  360. ++done])
  361. ++
  362. ++## Note:
  363. ++## *****
  364. ++## The following helper macros are too fragile to be used out
  365. ++## of AX_COMPUTE_RELATIVE_PATHS (mainly because they assume that
  366. ++## paths are normalized), that's why I'm keeping them in the same file.
  367. ++## Still, some of them maybe worth to reuse.
  368. ++
  369. ++dnl AX_COMPUTE_RELATIVE_PATH(FROM, TO, RESULT)
  370. ++dnl ===========================================
  371. ++dnl Compute the relative path to go from $FROM to $TO and set the value
  372. ++dnl of $RESULT to that value.  This function work on raw filenames
  373. ++dnl (for instead it will considerate /usr//local and /usr/local as
  374. ++dnl two distinct paths), you should really use AX_COMPUTE_REALTIVE_PATHS
  375. ++dnl instead to have the paths sanitized automatically.
  376. ++dnl
  377. ++dnl For instance:
  378. ++dnl    first_dir=/somewhere/on/my/disk/bin
  379. ++dnl    second_dir=/somewhere/on/another/disk/share
  380. ++dnl    AX_COMPUTE_RELATIVE_PATH(first_dir, second_dir, first_to_second)
  381. ++dnl will set $first_to_second to '../../../another/disk/share'.
  382. ++AC_DEFUN([AX_COMPUTE_RELATIVE_PATH],
  383. ++[AX_COMPUTE_COMMON_PATH([$1], [$2], [_lcl_common_prefix])
  384. ++AX_COMPUTE_BACK_PATH([$1], [_lcl_common_prefix], [_lcl_first_rel])
  385. ++AX_COMPUTE_SUFFIX_PATH([$2], [_lcl_common_prefix], [_lcl_second_suffix])
  386. ++$3="[$]_lcl_first_rel[$]_lcl_second_suffix"])
  387. ++
  388. ++dnl AX_COMPUTE_COMMON_PATH(LEFT, RIGHT, RESULT)
  389. ++dnl ============================================
  390. ++dnl Compute the common path to $LEFT and $RIGHT and set the result to $RESULT.
  391. ++dnl
  392. ++dnl For instance:
  393. ++dnl    first_path=/somewhere/on/my/disk/bin
  394. ++dnl    second_path=/somewhere/on/another/disk/share
  395. ++dnl    AX_COMPUTE_COMMON_PATH(first_path, second_path, common_path)
  396. ++dnl will set $common_path to '/somewhere/on'.
  397. ++AC_DEFUN([AX_COMPUTE_COMMON_PATH],
  398. ++[$3=''
  399. ++_lcl_second_prefix_match=''
  400. ++while test "[$]_lcl_second_prefix_match" != 0; do
  401. ++  _lcl_first_prefix=`expr "x[$]$1" : "x\([$]$3/*[[^/]]*\)"`
  402. ++  _lcl_second_prefix_match=`expr "x[$]$2" : "x[$]_lcl_first_prefix"`
  403. ++  if test "[$]_lcl_second_prefix_match" != 0; then
  404. ++    if test "[$]_lcl_first_prefix" != "[$]$3"; then
  405. ++      $3="[$]_lcl_first_prefix"
  406. ++    else
  407. ++      _lcl_second_prefix_match=0
  408. ++    fi
  409. ++  fi
  410. ++done])
  411. ++
  412. ++dnl AX_COMPUTE_SUFFIX_PATH(PATH, SUBPATH, RESULT)
  413. ++dnl ==============================================
  414. ++dnl Substrack $SUBPATH from $PATH, and set the resulting suffix
  415. ++dnl (or the empty string if $SUBPATH is not a subpath of $PATH)
  416. ++dnl to $RESULT.
  417. ++dnl
  418. ++dnl For instace:
  419. ++dnl    first_path=/somewhere/on/my/disk/bin
  420. ++dnl    second_path=/somewhere/on
  421. ++dnl    AX_COMPUTE_SUFFIX_PATH(first_path, second_path, common_path)
  422. ++dnl will set $common_path to '/my/disk/bin'.
  423. ++AC_DEFUN([AX_COMPUTE_SUFFIX_PATH],
  424. ++[$3=`expr "x[$]$1" : "x[$]$2/*\(.*\)"`])
  425. ++
  426. ++dnl AX_COMPUTE_BACK_PATH(PATH, SUBPATH, RESULT)
  427. ++dnl ============================================
  428. ++dnl Compute the relative path to go from $PATH to $SUBPATH, knowing that
  429. ++dnl $SUBPATH is a subpath of $PATH (any other words, only repeated '../'
  430. ++dnl should be needed to move from $PATH to $SUBPATH) and set the value
  431. ++dnl of $RESULT to that value.  If $SUBPATH is not a subpath of PATH,
  432. ++dnl set $RESULT to the empty string.
  433. ++dnl
  434. ++dnl For instance:
  435. ++dnl    first_path=/somewhere/on/my/disk/bin
  436. ++dnl    second_path=/somewhere/on
  437. ++dnl    AX_COMPUTE_BACK_PATH(first_path, second_path, back_path)
  438. ++dnl will set $back_path to '../../../'.
  439. ++AC_DEFUN([AX_COMPUTE_BACK_PATH],
  440. ++[AX_COMPUTE_SUFFIX_PATH([$1], [$2], [_lcl_first_suffix])
  441. ++$3=''
  442. ++_lcl_tmp='xxx'
  443. ++while test "[$]_lcl_tmp" != ''; do
  444. ++  _lcl_tmp=`expr "x[$]_lcl_first_suffix" : "x[[^/]]*/*\(.*\)"`
  445. ++  if test "[$]_lcl_first_suffix" != ''; then
  446. ++     _lcl_first_suffix="[$]_lcl_tmp"
  447. ++     $3="../[$]$3"
  448. ++  fi
  449. ++done])
  450. ++
  451. ++
  452. ++dnl AX_RECURSIVE_EVAL(VALUE, RESULT)
  453. ++dnl =================================
  454. ++dnl Interpolate the VALUE in loop until it doesn't change,
  455. ++dnl and set the result to $RESULT.
  456. ++dnl WARNING: It's easy to get an infinite loop with some unsane input.
  457. ++AC_DEFUN([AX_RECURSIVE_EVAL],
  458. ++[_lcl_receval="$1"
  459. ++$2=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  460. ++     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  461. ++     _lcl_receval_old=''
  462. ++     while test "[$]_lcl_receval_old" != "[$]_lcl_receval"; do
  463. ++       _lcl_receval_old="[$]_lcl_receval"
  464. ++       eval _lcl_receval="\"[$]_lcl_receval\""
  465. ++     done
  466. ++     echo "[$]_lcl_receval")`])
  467. +diff -urN a/ax_normalize_path.m4 b/ax_normalize_path.m4
  468. +--- a/ax_normalize_path.m4 1970-01-01 01:00:00.000000000 +0100
  469. ++++ b/ax_normalize_path.m4 2013-07-11 11:34:02.011045074 +0100
  470. +@@ -0,0 +1,115 @@
  471. ++# ===========================================================================
  472. ++#     http://www.gnu.org/software/autoconf-archive/ax_normalize_path.html
  473. ++# ===========================================================================
  474. ++#
  475. ++# SYNOPSIS
  476. ++#
  477. ++#   AX_NORMALIZE_PATH(VARNAME, [REFERENCE_STRING])
  478. ++#
  479. ++# DESCRIPTION
  480. ++#
  481. ++#   Perform some cleanups on the value of $VARNAME (interpreted as a path):
  482. ++#
  483. ++#     - empty paths are changed to '.'
  484. ++#     - trailing slashes are removed
  485. ++#     - repeated slashes are squeezed except a leading doubled slash '//'
  486. ++#       (which might indicate a networked disk on some OS).
  487. ++#
  488. ++#   REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
  489. ++#   REFERENCE_STRING contains some backslashes, all slashes and backslashes
  490. ++#   are turned into backslashes, otherwise they are all turned into slashes.
  491. ++#
  492. ++#   This makes processing of DOS filenames quite easier, because you can
  493. ++#   turn a filename to the Unix notation, make your processing, and turn it
  494. ++#   back to original notation.
  495. ++#
  496. ++#     filename='A:\FOO\\BAR\'
  497. ++#     old_filename="$filename"
  498. ++#     # Switch to the unix notation
  499. ++#     AX_NORMALIZE_PATH([filename], ["/"])
  500. ++#     # now we have $filename = 'A:/FOO/BAR' and we can process it as if
  501. ++#     # it was a Unix path.  For instance let's say that you want
  502. ++#     # to append '/subpath':
  503. ++#     filename="$filename/subpath"
  504. ++#     # finally switch back to the original notation
  505. ++#     AX_NORMALIZE_PATH([filename], ["$old_filename"])
  506. ++#     # now $filename equals to 'A:\FOO\BAR\subpath'
  507. ++#
  508. ++#   One good reason to make all path processing with the unix convention is
  509. ++#   that backslashes have a special meaning in many cases. For instance
  510. ++#
  511. ++#     expr 'A:\FOO' : 'A:\Foo'
  512. ++#
  513. ++#   will return 0 because the second argument is a regex in which
  514. ++#   backslashes have to be backslashed. In other words, to have the two
  515. ++#   strings to match you should write this instead:
  516. ++#
  517. ++#     expr 'A:\Foo' : 'A:\\Foo'
  518. ++#
  519. ++#   Such behavior makes DOS filenames extremely unpleasant to work with. So
  520. ++#   temporary turn your paths to the Unix notation, and revert them to the
  521. ++#   original notation after the processing. See the macro
  522. ++#   AX_COMPUTE_RELATIVE_PATHS for a concrete example of this.
  523. ++#
  524. ++#   REFERENCE_STRING defaults to $VARIABLE, this means that slashes will be
  525. ++#   converted to backslashes if $VARIABLE already contains some backslashes
  526. ++#   (see $thirddir below).
  527. ++#
  528. ++#     firstdir='/usr/local//share'
  529. ++#     seconddir='C:\Program Files\\'
  530. ++#     thirddir='C:\home/usr/'
  531. ++#     AX_NORMALIZE_PATH([firstdir])
  532. ++#     AX_NORMALIZE_PATH([seconddir])
  533. ++#     AX_NORMALIZE_PATH([thirddir])
  534. ++#     # $firstdir = '/usr/local/share'
  535. ++#     # $seconddir = 'C:\Program Files'
  536. ++#     # $thirddir = 'C:\home\usr'
  537. ++#
  538. ++# LICENSE
  539. ++#
  540. ++#   Copyright (c) 2008 Alexandre Duret-Lutz <adl@gnu.org>
  541. ++#
  542. ++#   This program is free software; you can redistribute it and/or modify it
  543. ++#   under the terms of the GNU General Public License as published by the
  544. ++#   Free Software Foundation; either version 2 of the License, or (at your
  545. ++#   option) any later version.
  546. ++#
  547. ++#   This program is distributed in the hope that it will be useful, but
  548. ++#   WITHOUT ANY WARRANTY; without even the implied warranty of
  549. ++#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  550. ++#   Public License for more details.
  551. ++#
  552. ++#   You should have received a copy of the GNU General Public License along
  553. ++#   with this program. If not, see <http://www.gnu.org/licenses/>.
  554. ++#
  555. ++#   As a special exception, the respective Autoconf Macro's copyright owner
  556. ++#   gives unlimited permission to copy, distribute and modify the configure
  557. ++#   scripts that are the output of Autoconf when processing the Macro. You
  558. ++#   need not follow the terms of the GNU General Public License when using
  559. ++#   or distributing such scripts, even though portions of the text of the
  560. ++#   Macro appear in them. The GNU General Public License (GPL) does govern
  561. ++#   all other use of the material that constitutes the Autoconf Macro.
  562. ++#
  563. ++#   This special exception to the GPL applies to versions of the Autoconf
  564. ++#   Macro released by the Autoconf Archive. When you make and distribute a
  565. ++#   modified version of the Autoconf Macro, you may extend this special
  566. ++#   exception to the GPL to apply to your modified version as well.
  567. ++
  568. ++#serial 5
  569. ++
  570. ++AU_ALIAS([ADL_NORMALIZE_PATH], [AX_NORMALIZE_PATH])
  571. ++AC_DEFUN([AX_NORMALIZE_PATH],
  572. ++[case ":[$]$1:" in
  573. ++# change empty paths to '.'
  574. ++  ::) $1='.' ;;
  575. ++# strip trailing slashes
  576. ++  :*[[\\/]]:) $1=`echo "[$]$1" | sed 's,[[\\/]]*[$],,'` ;;
  577. ++  :*:) ;;
  578. ++esac
  579. ++# squeze repeated slashes
  580. ++case ifelse($2,,"[$]$1",$2) in
  581. ++# if the path contains any backslashes, turn slashes into backslashes
  582. ++ *\\*) $1=`echo "[$]$1" | sed 's,\(.\)[[\\/]][[\\/]]*,\\\\,g'` ;;
  583. ++# if the path contains slashes, also turn backslashes into slashes
  584. ++ *) $1=`echo "[$]$1" | sed 's,\(.\)[[\\/]][[\\/]]*,/,g'` ;;
  585. ++esac])
  586. +diff -urN a/configure b/configure
  587. +--- a/configure    2013-05-20 16:00:02.000000000 +0100
  588. ++++ b/configure    2013-07-11 11:34:06.397711837 +0100
  589. +@@ -2988,6 +2988,234 @@
  590. +
  591. +
  592. +
  593. ++# ===========================================================================
  594. ++#     http://www.gnu.org/software/autoconf-archive/ax_normalize_path.html
  595. ++# ===========================================================================
  596. ++#
  597. ++# SYNOPSIS
  598. ++#
  599. ++#   AX_NORMALIZE_PATH(VARNAME, [REFERENCE_STRING])
  600. ++#
  601. ++# DESCRIPTION
  602. ++#
  603. ++#   Perform some cleanups on the value of $VARNAME (interpreted as a path):
  604. ++#
  605. ++#     - empty paths are changed to '.'
  606. ++#     - trailing slashes are removed
  607. ++#     - repeated slashes are squeezed except a leading doubled slash '//'
  608. ++#       (which might indicate a networked disk on some OS).
  609. ++#
  610. ++#   REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
  611. ++#   REFERENCE_STRING contains some backslashes, all slashes and backslashes
  612. ++#   are turned into backslashes, otherwise they are all turned into slashes.
  613. ++#
  614. ++#   This makes processing of DOS filenames quite easier, because you can
  615. ++#   turn a filename to the Unix notation, make your processing, and turn it
  616. ++#   back to original notation.
  617. ++#
  618. ++#     filename='A:\FOO\\BAR\'
  619. ++#     old_filename="$filename"
  620. ++#     # Switch to the unix notation
  621. ++#     AX_NORMALIZE_PATH([filename], ["/"])
  622. ++#     # now we have $filename = 'A:/FOO/BAR' and we can process it as if
  623. ++#     # it was a Unix path.  For instance let's say that you want
  624. ++#     # to append '/subpath':
  625. ++#     filename="$filename/subpath"
  626. ++#     # finally switch back to the original notation
  627. ++#     AX_NORMALIZE_PATH([filename], ["$old_filename"])
  628. ++#     # now $filename equals to 'A:\FOO\BAR\subpath'
  629. ++#
  630. ++#   One good reason to make all path processing with the unix convention is
  631. ++#   that backslashes have a special meaning in many cases. For instance
  632. ++#
  633. ++#     expr 'A:\FOO' : 'A:\Foo'
  634. ++#
  635. ++#   will return 0 because the second argument is a regex in which
  636. ++#   backslashes have to be backslashed. In other words, to have the two
  637. ++#   strings to match you should write this instead:
  638. ++#
  639. ++#     expr 'A:\Foo' : 'A:\\Foo'
  640. ++#
  641. ++#   Such behavior makes DOS filenames extremely unpleasant to work with. So
  642. ++#   temporary turn your paths to the Unix notation, and revert them to the
  643. ++#   original notation after the processing. See the macro
  644. ++#   AX_COMPUTE_RELATIVE_PATHS for a concrete example of this.
  645. ++#
  646. ++#   REFERENCE_STRING defaults to $VARIABLE, this means that slashes will be
  647. ++#   converted to backslashes if $VARIABLE already contains some backslashes
  648. ++#   (see $thirddir below).
  649. ++#
  650. ++#     firstdir='/usr/local//share'
  651. ++#     seconddir='C:\Program Files\\'
  652. ++#     thirddir='C:\home/usr/'
  653. ++#     AX_NORMALIZE_PATH([firstdir])
  654. ++#     AX_NORMALIZE_PATH([seconddir])
  655. ++#     AX_NORMALIZE_PATH([thirddir])
  656. ++#     # $firstdir = '/usr/local/share'
  657. ++#     # $seconddir = 'C:\Program Files'
  658. ++#     # $thirddir = 'C:\home\usr'
  659. ++#
  660. ++# LICENSE
  661. ++#
  662. ++#   Copyright (c) 2008 Alexandre Duret-Lutz <adl@gnu.org>
  663. ++#
  664. ++#   This program is free software; you can redistribute it and/or modify it
  665. ++#   under the terms of the GNU General Public License as published by the
  666. ++#   Free Software Foundation; either version 2 of the License, or (at your
  667. ++#   option) any later version.
  668. ++#
  669. ++#   This program is distributed in the hope that it will be useful, but
  670. ++#   WITHOUT ANY WARRANTY; without even the implied warranty of
  671. ++#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  672. ++#   Public License for more details.
  673. ++#
  674. ++#   You should have received a copy of the GNU General Public License along
  675. ++#   with this program. If not, see <http://www.gnu.org/licenses/>.
  676. ++#
  677. ++#   As a special exception, the respective Autoconf Macro's copyright owner
  678. ++#   gives unlimited permission to copy, distribute and modify the configure
  679. ++#   scripts that are the output of Autoconf when processing the Macro. You
  680. ++#   need not follow the terms of the GNU General Public License when using
  681. ++#   or distributing such scripts, even though portions of the text of the
  682. ++#   Macro appear in them. The GNU General Public License (GPL) does govern
  683. ++#   all other use of the material that constitutes the Autoconf Macro.
  684. ++#
  685. ++#   This special exception to the GPL applies to versions of the Autoconf
  686. ++#   Macro released by the Autoconf Archive. When you make and distribute a
  687. ++#   modified version of the Autoconf Macro, you may extend this special
  688. ++#   exception to the GPL to apply to your modified version as well.
  689. ++
  690. ++#serial 5
  691. ++
  692. ++# This is what autoupdate's m4 run will expand.  It fires
  693. ++# the warning (with _au_warn_XXX), outputs it into the
  694. ++# updated configure.ac (with AC_DIAGNOSE), and then outputs
  695. ++# the replacement expansion.
  696. ++
  697. ++
  698. ++# This is an auxiliary macro that is also run when
  699. ++# autoupdate runs m4.  It simply calls m4_warning, but
  700. ++# we need a wrapper so that each warning is emitted only
  701. ++# once.  We break the quoting in m4_warning's argument in
  702. ++# order to expand this macro's arguments, not AU_DEFUN's.
  703. ++
  704. ++
  705. ++# Finally, this is the expansion that is picked up by
  706. ++# autoconf.  It tells the user to run autoupdate, and
  707. ++# then outputs the replacement expansion.  We do not care
  708. ++# about autoupdate's warning because that contains
  709. ++# information on what to do *after* running autoupdate.
  710. ++
  711. ++
  712. ++
  713. ++# =============================================================================
  714. ++#  http://www.gnu.org/software/autoconf-archive/ax_compute_relative_paths.html
  715. ++# =============================================================================
  716. ++#
  717. ++# SYNOPSIS
  718. ++#
  719. ++#   AX_COMPUTE_RELATIVE_PATHS(PATH_LIST)
  720. ++#
  721. ++# DESCRIPTION
  722. ++#
  723. ++#   PATH_LIST is a space-separated list of colon-separated triplets of the
  724. ++#   form 'FROM:TO:RESULT'. This function iterates over these triplets and
  725. ++#   set $RESULT to the relative path from $FROM to $TO. Note that $FROM and
  726. ++#   $TO needs to be absolute filenames for this macro to success.
  727. ++#
  728. ++#   For instance,
  729. ++#
  730. ++#     first=/usr/local/bin
  731. ++#     second=/usr/local/share
  732. ++#     AX_COMPUTE_RELATIVE_PATHS([first:second:fs second:first:sf])
  733. ++#     # $fs is set to ../share
  734. ++#     # $sf is set to ../bin
  735. ++#
  736. ++#   $FROM and $TO are both eval'ed recursively and normalized, this means
  737. ++#   that you can call this macro with autoconf's dirnames like `prefix' or
  738. ++#   `datadir'. For example:
  739. ++#
  740. ++#     AX_COMPUTE_RELATIVE_PATHS([bindir:datadir:bin_to_data])
  741. ++#
  742. ++#   AX_COMPUTE_RELATIVE_PATHS should also works with DOS filenames.
  743. ++#
  744. ++#   You may want to use this macro in order to make your package
  745. ++#   relocatable. Instead of hardcoding $datadir into your programs just
  746. ++#   encode $bin_to_data and try to determine $bindir at run-time.
  747. ++#
  748. ++#   This macro requires AX_NORMALIZE_PATH.
  749. ++#
  750. ++# LICENSE
  751. ++#
  752. ++#   Copyright (c) 2008 Alexandre Duret-Lutz <adl@gnu.org>
  753. ++#
  754. ++#   This program is free software; you can redistribute it and/or modify it
  755. ++#   under the terms of the GNU General Public License as published by the
  756. ++#   Free Software Foundation; either version 2 of the License, or (at your
  757. ++#   option) any later version.
  758. ++#
  759. ++#   This program is distributed in the hope that it will be useful, but
  760. ++#   WITHOUT ANY WARRANTY; without even the implied warranty of
  761. ++#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  762. ++#   Public License for more details.
  763. ++#
  764. ++#   You should have received a copy of the GNU General Public License along
  765. ++#   with this program. If not, see <http://www.gnu.org/licenses/>.
  766. ++#
  767. ++#   As a special exception, the respective Autoconf Macro's copyright owner
  768. ++#   gives unlimited permission to copy, distribute and modify the configure
  769. ++#   scripts that are the output of Autoconf when processing the Macro. You
  770. ++#   need not follow the terms of the GNU General Public License when using
  771. ++#   or distributing such scripts, even though portions of the text of the
  772. ++#   Macro appear in them. The GNU General Public License (GPL) does govern
  773. ++#   all other use of the material that constitutes the Autoconf Macro.
  774. ++#
  775. ++#   This special exception to the GPL applies to versions of the Autoconf
  776. ++#   Macro released by the Autoconf Archive. When you make and distribute a
  777. ++#   modified version of the Autoconf Macro, you may extend this special
  778. ++#   exception to the GPL to apply to your modified version as well.
  779. ++
  780. ++#serial 6
  781. ++
  782. ++# This is what autoupdate's m4 run will expand.  It fires
  783. ++# the warning (with _au_warn_XXX), outputs it into the
  784. ++# updated configure.ac (with AC_DIAGNOSE), and then outputs
  785. ++# the replacement expansion.
  786. ++
  787. ++
  788. ++# This is an auxiliary macro that is also run when
  789. ++# autoupdate runs m4.  It simply calls m4_warning, but
  790. ++# we need a wrapper so that each warning is emitted only
  791. ++# once.  We break the quoting in m4_warning's argument in
  792. ++# order to expand this macro's arguments, not AU_DEFUN's.
  793. ++
  794. ++
  795. ++# Finally, this is the expansion that is picked up by
  796. ++# autoconf.  It tells the user to run autoupdate, and
  797. ++# then outputs the replacement expansion.  We do not care
  798. ++# about autoupdate's warning because that contains
  799. ++# information on what to do *after* running autoupdate.
  800. ++
  801. ++
  802. ++
  803. ++## Note:
  804. ++## *****
  805. ++## The following helper macros are too fragile to be used out
  806. ++## of AX_COMPUTE_RELATIVE_PATHS (mainly because they assume that
  807. ++## paths are normalized), that's why I'm keeping them in the same file.
  808. ++## Still, some of them maybe worth to reuse.
  809. ++
  810. ++
  811. ++
  812. ++
  813. ++
  814. ++
  815. ++
  816. ++
  817. ++
  818. ++
  819. ++
  820. ++
  821. +
  822. +
  823. +
  824. +@@ -3865,6 +4093,104 @@
  825. + echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p
  826. +
  827. +
  828. ++# Need to form the relative path from builddir to srcdir and use it in
  829. ++# the #include path in GMP_INCLUDE_GMP_H and GMP_FUNC_ALLOCA instead of
  830. ++# srcdir directly because srcdir could be an MSYS or Cygwin path and
  831. ++# GCC could be a native executable.
  832. ++builddir=$PWD
  833. ++for _lcl_i in builddir:srcdir:srcdirrel; do
  834. ++  _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  835. ++  _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  836. ++  _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  837. ++  _lcl_receval="$_lcl_from"
  838. ++_lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  839. ++     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  840. ++     _lcl_receval_old=''
  841. ++     while test "$_lcl_receval_old" != "$_lcl_receval"; do
  842. ++       _lcl_receval_old="$_lcl_receval"
  843. ++       eval _lcl_receval="\"$_lcl_receval\""
  844. ++     done
  845. ++     echo "$_lcl_receval")`
  846. ++  _lcl_receval="$_lcl_to"
  847. ++_lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  848. ++     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  849. ++     _lcl_receval_old=''
  850. ++     while test "$_lcl_receval_old" != "$_lcl_receval"; do
  851. ++       _lcl_receval_old="$_lcl_receval"
  852. ++       eval _lcl_receval="\"$_lcl_receval\""
  853. ++     done
  854. ++     echo "$_lcl_receval")`
  855. ++  _lcl_notation="$_lcl_from$_lcl_to"
  856. ++  case ":$_lcl_from:" in
  857. ++# change empty paths to '.'
  858. ++  ::) _lcl_from='.' ;;
  859. ++# strip trailing slashes
  860. ++  :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  861. ++  :*:) ;;
  862. ++esac
  863. ++# squeze repeated slashes
  864. ++case '/' in
  865. ++# if the path contains any backslashes, turn slashes into backslashes
  866. ++ *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\\\\,g'` ;;
  867. ++# if the path contains slashes, also turn backslashes into slashes
  868. ++ *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,/,g'` ;;
  869. ++esac
  870. ++  case ":$_lcl_to:" in
  871. ++# change empty paths to '.'
  872. ++  ::) _lcl_to='.' ;;
  873. ++# strip trailing slashes
  874. ++  :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  875. ++  :*:) ;;
  876. ++esac
  877. ++# squeze repeated slashes
  878. ++case '/' in
  879. ++# if the path contains any backslashes, turn slashes into backslashes
  880. ++ *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\\\\,g'` ;;
  881. ++# if the path contains slashes, also turn backslashes into slashes
  882. ++ *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,/,g'` ;;
  883. ++esac
  884. ++  _lcl_common_prefix=''
  885. ++_lcl_second_prefix_match=''
  886. ++while test "$_lcl_second_prefix_match" != 0; do
  887. ++  _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  888. ++  _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  889. ++  if test "$_lcl_second_prefix_match" != 0; then
  890. ++    if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  891. ++      _lcl_common_prefix="$_lcl_first_prefix"
  892. ++    else
  893. ++      _lcl_second_prefix_match=0
  894. ++    fi
  895. ++  fi
  896. ++done
  897. ++_lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  898. ++_lcl_first_rel=''
  899. ++_lcl_tmp='xxx'
  900. ++while test "$_lcl_tmp" != ''; do
  901. ++  _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  902. ++  if test "$_lcl_first_suffix" != ''; then
  903. ++     _lcl_first_suffix="$_lcl_tmp"
  904. ++     _lcl_first_rel="../$_lcl_first_rel"
  905. ++  fi
  906. ++done
  907. ++_lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  908. ++_lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  909. ++  case ":$_lcl_result_tmp:" in
  910. ++# change empty paths to '.'
  911. ++  ::) _lcl_result_tmp='.' ;;
  912. ++# strip trailing slashes
  913. ++  :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  914. ++  :*:) ;;
  915. ++esac
  916. ++# squeze repeated slashes
  917. ++case "$_lcl_notation" in
  918. ++# if the path contains any backslashes, turn slashes into backslashes
  919. ++ *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\\\\,g'` ;;
  920. ++# if the path contains slashes, also turn backslashes into slashes
  921. ++ *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,/,g'` ;;
  922. ++esac
  923. ++  eval $_lcl_result_var='$_lcl_result_tmp'
  924. ++done
  925. ++
  926. +
  927. +
  928. +
  929. +@@ -25488,7 +25814,7 @@
  930. + #define GMP_NAIL_BITS $GMP_NAIL_BITS
  931. + #define GMP_LIMB_BITS 123
  932. + $DEFN_LONG_LONG_LIMB
  933. +-#include "$srcdir/gmp-h.in"
  934. ++#include "$srcdirrel/gmp-h.in"
  935. +
  936. + #ifndef __GMP_EXTERN_INLINE
  937. + die die die
  938. +@@ -25698,9 +26024,9 @@
  939. + #define GMP_NAIL_BITS $GMP_NAIL_BITS
  940. + #define GMP_LIMB_BITS 123
  941. + $DEFN_LONG_LONG_LIMB
  942. +-#include "$srcdir/gmp-h.in"
  943. ++#include "$srcdirrel/gmp-h.in"
  944. +
  945. +-#include "$srcdir/gmp-impl.h"
  946. ++#include "$srcdirrel/gmp-impl.h"
  947. +
  948. + int
  949. + main ()
  950. +@@ -25795,7 +26121,7 @@
  951. + #define GMP_NAIL_BITS $GMP_NAIL_BITS
  952. + #define GMP_LIMB_BITS 123
  953. + $DEFN_LONG_LONG_LIMB
  954. +-#include "$srcdir/gmp-h.in"
  955. ++#include "$srcdirrel/gmp-h.in"
  956. +
  957. + #if ! _GMP_H_HAVE_FILE
  958. + die die die
  959. +@@ -28901,7 +29227,7 @@
  960. + #define GMP_NAIL_BITS $GMP_NAIL_BITS
  961. + #define GMP_LIMB_BITS 123
  962. + $DEFN_LONG_LONG_LIMB
  963. +-#include \"$srcdir/gmp-h.in\"
  964. ++#include \"$srcdirrel/gmp-h.in\"
  965. +
  966. + "; then :
  967. +
  968. +diff -urN a/configure.ac b/configure.ac
  969. +--- a/configure.ac 2013-05-20 15:59:56.000000000 +0100
  970. ++++ b/configure.ac 2013-07-11 11:34:02.024378407 +0100
  971. +@@ -29,6 +29,8 @@
  972. + AC_PREREQ(2.59)
  973. + AC_INIT(GNU MP, GMP_VERSION, [gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html], gmp)
  974. + AC_CONFIG_SRCDIR(gmp-impl.h)
  975. ++m4_include([ax_normalize_path.m4])
  976. ++m4_include([ax_compute_relative_paths.m4])
  977. + m4_pattern_forbid([^[ \t]*GMP_])
  978. + m4_pattern_allow(GMP_LDFLAGS)
  979. + m4_pattern_allow(GMP_LIMB_BITS)
  980. +@@ -257,6 +259,13 @@
  981. + AC_DEFINE_UNQUOTED(HAVE_HOST_CPU_$tmp_host)
  982. + GMP_DEFINE_RAW("define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')", POST)
  983. +
  984. ++# Need to form the relative path from builddir to srcdir and use it in
  985. ++# the #include path in GMP_INCLUDE_GMP_H and GMP_FUNC_ALLOCA instead of
  986. ++# srcdir directly because srcdir could be an MSYS or Cygwin path and
  987. ++# GCC could be a native executable.
  988. ++builddir=$PWD
  989. ++AX_COMPUTE_RELATIVE_PATHS([builddir:srcdir:srcdirrel])
  990. ++
  991. + dnl  The HAVE_HOST_CPU_ list here only needs to have entries for those which
  992. + dnl  are going to be tested, not everything that can possibly be selected.
  993. + dnl
  994. Index: patches/gmp/5.1.3/100-use-srcdirrel-to-avoid-MSYS-path-namespace-mismatch.patch
  995. ===================================================================
  996. --- patches/gmp/5.1.3/100-use-srcdirrel-to-avoid-MSYS-path-namespace-mismatch.patch (revision 0)
  997. +++ patches/gmp/5.1.3/100-use-srcdirrel-to-avoid-MSYS-path-namespace-mismatch.patch (working copy)
  998. @@ -0,0 +1,742 @@
  999. +diff -urN a/acinclude.m4 b/acinclude.m4
  1000. +--- a/acinclude.m4 2013-05-20 15:59:56.000000000 +0100
  1001. ++++ b/acinclude.m4 2013-07-11 11:34:02.004378404 +0100
  1002. +@@ -126,7 +126,7 @@
  1003. + #define GMP_NAIL_BITS $GMP_NAIL_BITS
  1004. + #define GMP_LIMB_BITS 123
  1005. + $DEFN_LONG_LONG_LIMB
  1006. +-#include "$srcdir/gmp-h.in"]
  1007. ++#include "$srcdirrel/gmp-h.in"]
  1008. + ])
  1009. +
  1010. +
  1011. +@@ -3386,7 +3386,7 @@
  1012. +                gmp_cv_func_alloca,
  1013. + [AC_TRY_LINK(
  1014. + GMP_INCLUDE_GMP_H
  1015. +-[#include "$srcdir/gmp-impl.h"
  1016. ++[#include "$srcdirrel/gmp-impl.h"
  1017. + ],
  1018. +   [char *p = (char *) alloca (1);],
  1019. +   gmp_cv_func_alloca=yes,
  1020. +diff -urN a/ax_compute_relative_paths.m4 b/ax_compute_relative_paths.m4
  1021. +--- a/ax_compute_relative_paths.m4 1970-01-01 01:00:00.000000000 +0100
  1022. ++++ b/ax_compute_relative_paths.m4 2013-07-11 11:34:02.007711740 +0100
  1023. +@@ -0,0 +1,190 @@
  1024. ++# =============================================================================
  1025. ++#  http://www.gnu.org/software/autoconf-archive/ax_compute_relative_paths.html
  1026. ++# =============================================================================
  1027. ++#
  1028. ++# SYNOPSIS
  1029. ++#
  1030. ++#   AX_COMPUTE_RELATIVE_PATHS(PATH_LIST)
  1031. ++#
  1032. ++# DESCRIPTION
  1033. ++#
  1034. ++#   PATH_LIST is a space-separated list of colon-separated triplets of the
  1035. ++#   form 'FROM:TO:RESULT'. This function iterates over these triplets and
  1036. ++#   set $RESULT to the relative path from $FROM to $TO. Note that $FROM and
  1037. ++#   $TO needs to be absolute filenames for this macro to success.
  1038. ++#
  1039. ++#   For instance,
  1040. ++#
  1041. ++#     first=/usr/local/bin
  1042. ++#     second=/usr/local/share
  1043. ++#     AX_COMPUTE_RELATIVE_PATHS([first:second:fs second:first:sf])
  1044. ++#     # $fs is set to ../share
  1045. ++#     # $sf is set to ../bin
  1046. ++#
  1047. ++#   $FROM and $TO are both eval'ed recursively and normalized, this means
  1048. ++#   that you can call this macro with autoconf's dirnames like `prefix' or
  1049. ++#   `datadir'. For example:
  1050. ++#
  1051. ++#     AX_COMPUTE_RELATIVE_PATHS([bindir:datadir:bin_to_data])
  1052. ++#
  1053. ++#   AX_COMPUTE_RELATIVE_PATHS should also works with DOS filenames.
  1054. ++#
  1055. ++#   You may want to use this macro in order to make your package
  1056. ++#   relocatable. Instead of hardcoding $datadir into your programs just
  1057. ++#   encode $bin_to_data and try to determine $bindir at run-time.
  1058. ++#
  1059. ++#   This macro requires AX_NORMALIZE_PATH.
  1060. ++#
  1061. ++# LICENSE
  1062. ++#
  1063. ++#   Copyright (c) 2008 Alexandre Duret-Lutz <adl@gnu.org>
  1064. ++#
  1065. ++#   This program is free software; you can redistribute it and/or modify it
  1066. ++#   under the terms of the GNU General Public License as published by the
  1067. ++#   Free Software Foundation; either version 2 of the License, or (at your
  1068. ++#   option) any later version.
  1069. ++#
  1070. ++#   This program is distributed in the hope that it will be useful, but
  1071. ++#   WITHOUT ANY WARRANTY; without even the implied warranty of
  1072. ++#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  1073. ++#   Public License for more details.
  1074. ++#
  1075. ++#   You should have received a copy of the GNU General Public License along
  1076. ++#   with this program. If not, see <http://www.gnu.org/licenses/>.
  1077. ++#
  1078. ++#   As a special exception, the respective Autoconf Macro's copyright owner
  1079. ++#   gives unlimited permission to copy, distribute and modify the configure
  1080. ++#   scripts that are the output of Autoconf when processing the Macro. You
  1081. ++#   need not follow the terms of the GNU General Public License when using
  1082. ++#   or distributing such scripts, even though portions of the text of the
  1083. ++#   Macro appear in them. The GNU General Public License (GPL) does govern
  1084. ++#   all other use of the material that constitutes the Autoconf Macro.
  1085. ++#
  1086. ++#   This special exception to the GPL applies to versions of the Autoconf
  1087. ++#   Macro released by the Autoconf Archive. When you make and distribute a
  1088. ++#   modified version of the Autoconf Macro, you may extend this special
  1089. ++#   exception to the GPL to apply to your modified version as well.
  1090. ++
  1091. ++#serial 6
  1092. ++
  1093. ++AU_ALIAS([ADL_COMPUTE_RELATIVE_PATHS], [AX_COMPUTE_RELATIVE_PATHS])
  1094. ++AC_DEFUN([AX_COMPUTE_RELATIVE_PATHS],
  1095. ++[for _lcl_i in $1; do
  1096. ++  _lcl_from=\[$]`echo "[$]_lcl_i" | sed 's,:.*$,,'`
  1097. ++  _lcl_to=\[$]`echo "[$]_lcl_i" | sed 's,^[[^:]]*:,,' | sed 's,:[[^:]]*$,,'`
  1098. ++  _lcl_result_var=`echo "[$]_lcl_i" | sed 's,^.*:,,'`
  1099. ++  AX_RECURSIVE_EVAL([[$]_lcl_from], [_lcl_from])
  1100. ++  AX_RECURSIVE_EVAL([[$]_lcl_to], [_lcl_to])
  1101. ++  _lcl_notation="$_lcl_from$_lcl_to"
  1102. ++  AX_NORMALIZE_PATH([_lcl_from],['/'])
  1103. ++  AX_NORMALIZE_PATH([_lcl_to],['/'])
  1104. ++  AX_COMPUTE_RELATIVE_PATH([_lcl_from], [_lcl_to], [_lcl_result_tmp])
  1105. ++  AX_NORMALIZE_PATH([_lcl_result_tmp],["[$]_lcl_notation"])
  1106. ++  eval $_lcl_result_var='[$]_lcl_result_tmp'
  1107. ++done])
  1108. ++
  1109. ++## Note:
  1110. ++## *****
  1111. ++## The following helper macros are too fragile to be used out
  1112. ++## of AX_COMPUTE_RELATIVE_PATHS (mainly because they assume that
  1113. ++## paths are normalized), that's why I'm keeping them in the same file.
  1114. ++## Still, some of them maybe worth to reuse.
  1115. ++
  1116. ++dnl AX_COMPUTE_RELATIVE_PATH(FROM, TO, RESULT)
  1117. ++dnl ===========================================
  1118. ++dnl Compute the relative path to go from $FROM to $TO and set the value
  1119. ++dnl of $RESULT to that value.  This function work on raw filenames
  1120. ++dnl (for instead it will considerate /usr//local and /usr/local as
  1121. ++dnl two distinct paths), you should really use AX_COMPUTE_REALTIVE_PATHS
  1122. ++dnl instead to have the paths sanitized automatically.
  1123. ++dnl
  1124. ++dnl For instance:
  1125. ++dnl    first_dir=/somewhere/on/my/disk/bin
  1126. ++dnl    second_dir=/somewhere/on/another/disk/share
  1127. ++dnl    AX_COMPUTE_RELATIVE_PATH(first_dir, second_dir, first_to_second)
  1128. ++dnl will set $first_to_second to '../../../another/disk/share'.
  1129. ++AC_DEFUN([AX_COMPUTE_RELATIVE_PATH],
  1130. ++[AX_COMPUTE_COMMON_PATH([$1], [$2], [_lcl_common_prefix])
  1131. ++AX_COMPUTE_BACK_PATH([$1], [_lcl_common_prefix], [_lcl_first_rel])
  1132. ++AX_COMPUTE_SUFFIX_PATH([$2], [_lcl_common_prefix], [_lcl_second_suffix])
  1133. ++$3="[$]_lcl_first_rel[$]_lcl_second_suffix"])
  1134. ++
  1135. ++dnl AX_COMPUTE_COMMON_PATH(LEFT, RIGHT, RESULT)
  1136. ++dnl ============================================
  1137. ++dnl Compute the common path to $LEFT and $RIGHT and set the result to $RESULT.
  1138. ++dnl
  1139. ++dnl For instance:
  1140. ++dnl    first_path=/somewhere/on/my/disk/bin
  1141. ++dnl    second_path=/somewhere/on/another/disk/share
  1142. ++dnl    AX_COMPUTE_COMMON_PATH(first_path, second_path, common_path)
  1143. ++dnl will set $common_path to '/somewhere/on'.
  1144. ++AC_DEFUN([AX_COMPUTE_COMMON_PATH],
  1145. ++[$3=''
  1146. ++_lcl_second_prefix_match=''
  1147. ++while test "[$]_lcl_second_prefix_match" != 0; do
  1148. ++  _lcl_first_prefix=`expr "x[$]$1" : "x\([$]$3/*[[^/]]*\)"`
  1149. ++  _lcl_second_prefix_match=`expr "x[$]$2" : "x[$]_lcl_first_prefix"`
  1150. ++  if test "[$]_lcl_second_prefix_match" != 0; then
  1151. ++    if test "[$]_lcl_first_prefix" != "[$]$3"; then
  1152. ++      $3="[$]_lcl_first_prefix"
  1153. ++    else
  1154. ++      _lcl_second_prefix_match=0
  1155. ++    fi
  1156. ++  fi
  1157. ++done])
  1158. ++
  1159. ++dnl AX_COMPUTE_SUFFIX_PATH(PATH, SUBPATH, RESULT)
  1160. ++dnl ==============================================
  1161. ++dnl Substrack $SUBPATH from $PATH, and set the resulting suffix
  1162. ++dnl (or the empty string if $SUBPATH is not a subpath of $PATH)
  1163. ++dnl to $RESULT.
  1164. ++dnl
  1165. ++dnl For instace:
  1166. ++dnl    first_path=/somewhere/on/my/disk/bin
  1167. ++dnl    second_path=/somewhere/on
  1168. ++dnl    AX_COMPUTE_SUFFIX_PATH(first_path, second_path, common_path)
  1169. ++dnl will set $common_path to '/my/disk/bin'.
  1170. ++AC_DEFUN([AX_COMPUTE_SUFFIX_PATH],
  1171. ++[$3=`expr "x[$]$1" : "x[$]$2/*\(.*\)"`])
  1172. ++
  1173. ++dnl AX_COMPUTE_BACK_PATH(PATH, SUBPATH, RESULT)
  1174. ++dnl ============================================
  1175. ++dnl Compute the relative path to go from $PATH to $SUBPATH, knowing that
  1176. ++dnl $SUBPATH is a subpath of $PATH (any other words, only repeated '../'
  1177. ++dnl should be needed to move from $PATH to $SUBPATH) and set the value
  1178. ++dnl of $RESULT to that value.  If $SUBPATH is not a subpath of PATH,
  1179. ++dnl set $RESULT to the empty string.
  1180. ++dnl
  1181. ++dnl For instance:
  1182. ++dnl    first_path=/somewhere/on/my/disk/bin
  1183. ++dnl    second_path=/somewhere/on
  1184. ++dnl    AX_COMPUTE_BACK_PATH(first_path, second_path, back_path)
  1185. ++dnl will set $back_path to '../../../'.
  1186. ++AC_DEFUN([AX_COMPUTE_BACK_PATH],
  1187. ++[AX_COMPUTE_SUFFIX_PATH([$1], [$2], [_lcl_first_suffix])
  1188. ++$3=''
  1189. ++_lcl_tmp='xxx'
  1190. ++while test "[$]_lcl_tmp" != ''; do
  1191. ++  _lcl_tmp=`expr "x[$]_lcl_first_suffix" : "x[[^/]]*/*\(.*\)"`
  1192. ++  if test "[$]_lcl_first_suffix" != ''; then
  1193. ++     _lcl_first_suffix="[$]_lcl_tmp"
  1194. ++     $3="../[$]$3"
  1195. ++  fi
  1196. ++done])
  1197. ++
  1198. ++
  1199. ++dnl AX_RECURSIVE_EVAL(VALUE, RESULT)
  1200. ++dnl =================================
  1201. ++dnl Interpolate the VALUE in loop until it doesn't change,
  1202. ++dnl and set the result to $RESULT.
  1203. ++dnl WARNING: It's easy to get an infinite loop with some unsane input.
  1204. ++AC_DEFUN([AX_RECURSIVE_EVAL],
  1205. ++[_lcl_receval="$1"
  1206. ++$2=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  1207. ++     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  1208. ++     _lcl_receval_old=''
  1209. ++     while test "[$]_lcl_receval_old" != "[$]_lcl_receval"; do
  1210. ++       _lcl_receval_old="[$]_lcl_receval"
  1211. ++       eval _lcl_receval="\"[$]_lcl_receval\""
  1212. ++     done
  1213. ++     echo "[$]_lcl_receval")`])
  1214. +diff -urN a/ax_normalize_path.m4 b/ax_normalize_path.m4
  1215. +--- a/ax_normalize_path.m4 1970-01-01 01:00:00.000000000 +0100
  1216. ++++ b/ax_normalize_path.m4 2013-07-11 11:34:02.011045074 +0100
  1217. +@@ -0,0 +1,115 @@
  1218. ++# ===========================================================================
  1219. ++#     http://www.gnu.org/software/autoconf-archive/ax_normalize_path.html
  1220. ++# ===========================================================================
  1221. ++#
  1222. ++# SYNOPSIS
  1223. ++#
  1224. ++#   AX_NORMALIZE_PATH(VARNAME, [REFERENCE_STRING])
  1225. ++#
  1226. ++# DESCRIPTION
  1227. ++#
  1228. ++#   Perform some cleanups on the value of $VARNAME (interpreted as a path):
  1229. ++#
  1230. ++#     - empty paths are changed to '.'
  1231. ++#     - trailing slashes are removed
  1232. ++#     - repeated slashes are squeezed except a leading doubled slash '//'
  1233. ++#       (which might indicate a networked disk on some OS).
  1234. ++#
  1235. ++#   REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
  1236. ++#   REFERENCE_STRING contains some backslashes, all slashes and backslashes
  1237. ++#   are turned into backslashes, otherwise they are all turned into slashes.
  1238. ++#
  1239. ++#   This makes processing of DOS filenames quite easier, because you can
  1240. ++#   turn a filename to the Unix notation, make your processing, and turn it
  1241. ++#   back to original notation.
  1242. ++#
  1243. ++#     filename='A:\FOO\\BAR\'
  1244. ++#     old_filename="$filename"
  1245. ++#     # Switch to the unix notation
  1246. ++#     AX_NORMALIZE_PATH([filename], ["/"])
  1247. ++#     # now we have $filename = 'A:/FOO/BAR' and we can process it as if
  1248. ++#     # it was a Unix path.  For instance let's say that you want
  1249. ++#     # to append '/subpath':
  1250. ++#     filename="$filename/subpath"
  1251. ++#     # finally switch back to the original notation
  1252. ++#     AX_NORMALIZE_PATH([filename], ["$old_filename"])
  1253. ++#     # now $filename equals to 'A:\FOO\BAR\subpath'
  1254. ++#
  1255. ++#   One good reason to make all path processing with the unix convention is
  1256. ++#   that backslashes have a special meaning in many cases. For instance
  1257. ++#
  1258. ++#     expr 'A:\FOO' : 'A:\Foo'
  1259. ++#
  1260. ++#   will return 0 because the second argument is a regex in which
  1261. ++#   backslashes have to be backslashed. In other words, to have the two
  1262. ++#   strings to match you should write this instead:
  1263. ++#
  1264. ++#     expr 'A:\Foo' : 'A:\\Foo'
  1265. ++#
  1266. ++#   Such behavior makes DOS filenames extremely unpleasant to work with. So
  1267. ++#   temporary turn your paths to the Unix notation, and revert them to the
  1268. ++#   original notation after the processing. See the macro
  1269. ++#   AX_COMPUTE_RELATIVE_PATHS for a concrete example of this.
  1270. ++#
  1271. ++#   REFERENCE_STRING defaults to $VARIABLE, this means that slashes will be
  1272. ++#   converted to backslashes if $VARIABLE already contains some backslashes
  1273. ++#   (see $thirddir below).
  1274. ++#
  1275. ++#     firstdir='/usr/local//share'
  1276. ++#     seconddir='C:\Program Files\\'
  1277. ++#     thirddir='C:\home/usr/'
  1278. ++#     AX_NORMALIZE_PATH([firstdir])
  1279. ++#     AX_NORMALIZE_PATH([seconddir])
  1280. ++#     AX_NORMALIZE_PATH([thirddir])
  1281. ++#     # $firstdir = '/usr/local/share'
  1282. ++#     # $seconddir = 'C:\Program Files'
  1283. ++#     # $thirddir = 'C:\home\usr'
  1284. ++#
  1285. ++# LICENSE
  1286. ++#
  1287. ++#   Copyright (c) 2008 Alexandre Duret-Lutz <adl@gnu.org>
  1288. ++#
  1289. ++#   This program is free software; you can redistribute it and/or modify it
  1290. ++#   under the terms of the GNU General Public License as published by the
  1291. ++#   Free Software Foundation; either version 2 of the License, or (at your
  1292. ++#   option) any later version.
  1293. ++#
  1294. ++#   This program is distributed in the hope that it will be useful, but
  1295. ++#   WITHOUT ANY WARRANTY; without even the implied warranty of
  1296. ++#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  1297. ++#   Public License for more details.
  1298. ++#
  1299. ++#   You should have received a copy of the GNU General Public License along
  1300. ++#   with this program. If not, see <http://www.gnu.org/licenses/>.
  1301. ++#
  1302. ++#   As a special exception, the respective Autoconf Macro's copyright owner
  1303. ++#   gives unlimited permission to copy, distribute and modify the configure
  1304. ++#   scripts that are the output of Autoconf when processing the Macro. You
  1305. ++#   need not follow the terms of the GNU General Public License when using
  1306. ++#   or distributing such scripts, even though portions of the text of the
  1307. ++#   Macro appear in them. The GNU General Public License (GPL) does govern
  1308. ++#   all other use of the material that constitutes the Autoconf Macro.
  1309. ++#
  1310. ++#   This special exception to the GPL applies to versions of the Autoconf
  1311. ++#   Macro released by the Autoconf Archive. When you make and distribute a
  1312. ++#   modified version of the Autoconf Macro, you may extend this special
  1313. ++#   exception to the GPL to apply to your modified version as well.
  1314. ++
  1315. ++#serial 5
  1316. ++
  1317. ++AU_ALIAS([ADL_NORMALIZE_PATH], [AX_NORMALIZE_PATH])
  1318. ++AC_DEFUN([AX_NORMALIZE_PATH],
  1319. ++[case ":[$]$1:" in
  1320. ++# change empty paths to '.'
  1321. ++  ::) $1='.' ;;
  1322. ++# strip trailing slashes
  1323. ++  :*[[\\/]]:) $1=`echo "[$]$1" | sed 's,[[\\/]]*[$],,'` ;;
  1324. ++  :*:) ;;
  1325. ++esac
  1326. ++# squeze repeated slashes
  1327. ++case ifelse($2,,"[$]$1",$2) in
  1328. ++# if the path contains any backslashes, turn slashes into backslashes
  1329. ++ *\\*) $1=`echo "[$]$1" | sed 's,\(.\)[[\\/]][[\\/]]*,\\\\,g'` ;;
  1330. ++# if the path contains slashes, also turn backslashes into slashes
  1331. ++ *) $1=`echo "[$]$1" | sed 's,\(.\)[[\\/]][[\\/]]*,/,g'` ;;
  1332. ++esac])
  1333. +diff -urN a/configure b/configure
  1334. +--- a/configure    2013-05-20 16:00:02.000000000 +0100
  1335. ++++ b/configure    2013-07-11 11:34:06.397711837 +0100
  1336. +@@ -2988,6 +2988,234 @@
  1337. +
  1338. +
  1339. +
  1340. ++# ===========================================================================
  1341. ++#     http://www.gnu.org/software/autoconf-archive/ax_normalize_path.html
  1342. ++# ===========================================================================
  1343. ++#
  1344. ++# SYNOPSIS
  1345. ++#
  1346. ++#   AX_NORMALIZE_PATH(VARNAME, [REFERENCE_STRING])
  1347. ++#
  1348. ++# DESCRIPTION
  1349. ++#
  1350. ++#   Perform some cleanups on the value of $VARNAME (interpreted as a path):
  1351. ++#
  1352. ++#     - empty paths are changed to '.'
  1353. ++#     - trailing slashes are removed
  1354. ++#     - repeated slashes are squeezed except a leading doubled slash '//'
  1355. ++#       (which might indicate a networked disk on some OS).
  1356. ++#
  1357. ++#   REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
  1358. ++#   REFERENCE_STRING contains some backslashes, all slashes and backslashes
  1359. ++#   are turned into backslashes, otherwise they are all turned into slashes.
  1360. ++#
  1361. ++#   This makes processing of DOS filenames quite easier, because you can
  1362. ++#   turn a filename to the Unix notation, make your processing, and turn it
  1363. ++#   back to original notation.
  1364. ++#
  1365. ++#     filename='A:\FOO\\BAR\'
  1366. ++#     old_filename="$filename"
  1367. ++#     # Switch to the unix notation
  1368. ++#     AX_NORMALIZE_PATH([filename], ["/"])
  1369. ++#     # now we have $filename = 'A:/FOO/BAR' and we can process it as if
  1370. ++#     # it was a Unix path.  For instance let's say that you want
  1371. ++#     # to append '/subpath':
  1372. ++#     filename="$filename/subpath"
  1373. ++#     # finally switch back to the original notation
  1374. ++#     AX_NORMALIZE_PATH([filename], ["$old_filename"])
  1375. ++#     # now $filename equals to 'A:\FOO\BAR\subpath'
  1376. ++#
  1377. ++#   One good reason to make all path processing with the unix convention is
  1378. ++#   that backslashes have a special meaning in many cases. For instance
  1379. ++#
  1380. ++#     expr 'A:\FOO' : 'A:\Foo'
  1381. ++#
  1382. ++#   will return 0 because the second argument is a regex in which
  1383. ++#   backslashes have to be backslashed. In other words, to have the two
  1384. ++#   strings to match you should write this instead:
  1385. ++#
  1386. ++#     expr 'A:\Foo' : 'A:\\Foo'
  1387. ++#
  1388. ++#   Such behavior makes DOS filenames extremely unpleasant to work with. So
  1389. ++#   temporary turn your paths to the Unix notation, and revert them to the
  1390. ++#   original notation after the processing. See the macro
  1391. ++#   AX_COMPUTE_RELATIVE_PATHS for a concrete example of this.
  1392. ++#
  1393. ++#   REFERENCE_STRING defaults to $VARIABLE, this means that slashes will be
  1394. ++#   converted to backslashes if $VARIABLE already contains some backslashes
  1395. ++#   (see $thirddir below).
  1396. ++#
  1397. ++#     firstdir='/usr/local//share'
  1398. ++#     seconddir='C:\Program Files\\'
  1399. ++#     thirddir='C:\home/usr/'
  1400. ++#     AX_NORMALIZE_PATH([firstdir])
  1401. ++#     AX_NORMALIZE_PATH([seconddir])
  1402. ++#     AX_NORMALIZE_PATH([thirddir])
  1403. ++#     # $firstdir = '/usr/local/share'
  1404. ++#     # $seconddir = 'C:\Program Files'
  1405. ++#     # $thirddir = 'C:\home\usr'
  1406. ++#
  1407. ++# LICENSE
  1408. ++#
  1409. ++#   Copyright (c) 2008 Alexandre Duret-Lutz <adl@gnu.org>
  1410. ++#
  1411. ++#   This program is free software; you can redistribute it and/or modify it
  1412. ++#   under the terms of the GNU General Public License as published by the
  1413. ++#   Free Software Foundation; either version 2 of the License, or (at your
  1414. ++#   option) any later version.
  1415. ++#
  1416. ++#   This program is distributed in the hope that it will be useful, but
  1417. ++#   WITHOUT ANY WARRANTY; without even the implied warranty of
  1418. ++#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  1419. ++#   Public License for more details.
  1420. ++#
  1421. ++#   You should have received a copy of the GNU General Public License along
  1422. ++#   with this program. If not, see <http://www.gnu.org/licenses/>.
  1423. ++#
  1424. ++#   As a special exception, the respective Autoconf Macro's copyright owner
  1425. ++#   gives unlimited permission to copy, distribute and modify the configure
  1426. ++#   scripts that are the output of Autoconf when processing the Macro. You
  1427. ++#   need not follow the terms of the GNU General Public License when using
  1428. ++#   or distributing such scripts, even though portions of the text of the
  1429. ++#   Macro appear in them. The GNU General Public License (GPL) does govern
  1430. ++#   all other use of the material that constitutes the Autoconf Macro.
  1431. ++#
  1432. ++#   This special exception to the GPL applies to versions of the Autoconf
  1433. ++#   Macro released by the Autoconf Archive. When you make and distribute a
  1434. ++#   modified version of the Autoconf Macro, you may extend this special
  1435. ++#   exception to the GPL to apply to your modified version as well.
  1436. ++
  1437. ++#serial 5
  1438. ++
  1439. ++# This is what autoupdate's m4 run will expand.  It fires
  1440. ++# the warning (with _au_warn_XXX), outputs it into the
  1441. ++# updated configure.ac (with AC_DIAGNOSE), and then outputs
  1442. ++# the replacement expansion.
  1443. ++
  1444. ++
  1445. ++# This is an auxiliary macro that is also run when
  1446. ++# autoupdate runs m4.  It simply calls m4_warning, but
  1447. ++# we need a wrapper so that each warning is emitted only
  1448. ++# once.  We break the quoting in m4_warning's argument in
  1449. ++# order to expand this macro's arguments, not AU_DEFUN's.
  1450. ++
  1451. ++
  1452. ++# Finally, this is the expansion that is picked up by
  1453. ++# autoconf.  It tells the user to run autoupdate, and
  1454. ++# then outputs the replacement expansion.  We do not care
  1455. ++# about autoupdate's warning because that contains
  1456. ++# information on what to do *after* running autoupdate.
  1457. ++
  1458. ++
  1459. ++
  1460. ++# =============================================================================
  1461. ++#  http://www.gnu.org/software/autoconf-archive/ax_compute_relative_paths.html
  1462. ++# =============================================================================
  1463. ++#
  1464. ++# SYNOPSIS
  1465. ++#
  1466. ++#   AX_COMPUTE_RELATIVE_PATHS(PATH_LIST)
  1467. ++#
  1468. ++# DESCRIPTION
  1469. ++#
  1470. ++#   PATH_LIST is a space-separated list of colon-separated triplets of the
  1471. ++#   form 'FROM:TO:RESULT'. This function iterates over these triplets and
  1472. ++#   set $RESULT to the relative path from $FROM to $TO. Note that $FROM and
  1473. ++#   $TO needs to be absolute filenames for this macro to success.
  1474. ++#
  1475. ++#   For instance,
  1476. ++#
  1477. ++#     first=/usr/local/bin
  1478. ++#     second=/usr/local/share
  1479. ++#     AX_COMPUTE_RELATIVE_PATHS([first:second:fs second:first:sf])
  1480. ++#     # $fs is set to ../share
  1481. ++#     # $sf is set to ../bin
  1482. ++#
  1483. ++#   $FROM and $TO are both eval'ed recursively and normalized, this means
  1484. ++#   that you can call this macro with autoconf's dirnames like `prefix' or
  1485. ++#   `datadir'. For example:
  1486. ++#
  1487. ++#     AX_COMPUTE_RELATIVE_PATHS([bindir:datadir:bin_to_data])
  1488. ++#
  1489. ++#   AX_COMPUTE_RELATIVE_PATHS should also works with DOS filenames.
  1490. ++#
  1491. ++#   You may want to use this macro in order to make your package
  1492. ++#   relocatable. Instead of hardcoding $datadir into your programs just
  1493. ++#   encode $bin_to_data and try to determine $bindir at run-time.
  1494. ++#
  1495. ++#   This macro requires AX_NORMALIZE_PATH.
  1496. ++#
  1497. ++# LICENSE
  1498. ++#
  1499. ++#   Copyright (c) 2008 Alexandre Duret-Lutz <adl@gnu.org>
  1500. ++#
  1501. ++#   This program is free software; you can redistribute it and/or modify it
  1502. ++#   under the terms of the GNU General Public License as published by the
  1503. ++#   Free Software Foundation; either version 2 of the License, or (at your
  1504. ++#   option) any later version.
  1505. ++#
  1506. ++#   This program is distributed in the hope that it will be useful, but
  1507. ++#   WITHOUT ANY WARRANTY; without even the implied warranty of
  1508. ++#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  1509. ++#   Public License for more details.
  1510. ++#
  1511. ++#   You should have received a copy of the GNU General Public License along
  1512. ++#   with this program. If not, see <http://www.gnu.org/licenses/>.
  1513. ++#
  1514. ++#   As a special exception, the respective Autoconf Macro's copyright owner
  1515. ++#   gives unlimited permission to copy, distribute and modify the configure
  1516. ++#   scripts that are the output of Autoconf when processing the Macro. You
  1517. ++#   need not follow the terms of the GNU General Public License when using
  1518. ++#   or distributing such scripts, even though portions of the text of the
  1519. ++#   Macro appear in them. The GNU General Public License (GPL) does govern
  1520. ++#   all other use of the material that constitutes the Autoconf Macro.
  1521. ++#
  1522. ++#   This special exception to the GPL applies to versions of the Autoconf
  1523. ++#   Macro released by the Autoconf Archive. When you make and distribute a
  1524. ++#   modified version of the Autoconf Macro, you may extend this special
  1525. ++#   exception to the GPL to apply to your modified version as well.
  1526. ++
  1527. ++#serial 6
  1528. ++
  1529. ++# This is what autoupdate's m4 run will expand.  It fires
  1530. ++# the warning (with _au_warn_XXX), outputs it into the
  1531. ++# updated configure.ac (with AC_DIAGNOSE), and then outputs
  1532. ++# the replacement expansion.
  1533. ++
  1534. ++
  1535. ++# This is an auxiliary macro that is also run when
  1536. ++# autoupdate runs m4.  It simply calls m4_warning, but
  1537. ++# we need a wrapper so that each warning is emitted only
  1538. ++# once.  We break the quoting in m4_warning's argument in
  1539. ++# order to expand this macro's arguments, not AU_DEFUN's.
  1540. ++
  1541. ++
  1542. ++# Finally, this is the expansion that is picked up by
  1543. ++# autoconf.  It tells the user to run autoupdate, and
  1544. ++# then outputs the replacement expansion.  We do not care
  1545. ++# about autoupdate's warning because that contains
  1546. ++# information on what to do *after* running autoupdate.
  1547. ++
  1548. ++
  1549. ++
  1550. ++## Note:
  1551. ++## *****
  1552. ++## The following helper macros are too fragile to be used out
  1553. ++## of AX_COMPUTE_RELATIVE_PATHS (mainly because they assume that
  1554. ++## paths are normalized), that's why I'm keeping them in the same file.
  1555. ++## Still, some of them maybe worth to reuse.
  1556. ++
  1557. ++
  1558. ++
  1559. ++
  1560. ++
  1561. ++
  1562. ++
  1563. ++
  1564. ++
  1565. ++
  1566. ++
  1567. ++
  1568. +
  1569. +
  1570. +
  1571. +@@ -3865,6 +4093,104 @@
  1572. + echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p
  1573. +
  1574. +
  1575. ++# Need to form the relative path from builddir to srcdir and use it in
  1576. ++# the #include path in GMP_INCLUDE_GMP_H and GMP_FUNC_ALLOCA instead of
  1577. ++# srcdir directly because srcdir could be an MSYS or Cygwin path and
  1578. ++# GCC could be a native executable.
  1579. ++builddir=$PWD
  1580. ++for _lcl_i in builddir:srcdir:srcdirrel; do
  1581. ++  _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  1582. ++  _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  1583. ++  _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  1584. ++  _lcl_receval="$_lcl_from"
  1585. ++_lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  1586. ++     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  1587. ++     _lcl_receval_old=''
  1588. ++     while test "$_lcl_receval_old" != "$_lcl_receval"; do
  1589. ++       _lcl_receval_old="$_lcl_receval"
  1590. ++       eval _lcl_receval="\"$_lcl_receval\""
  1591. ++     done
  1592. ++     echo "$_lcl_receval")`
  1593. ++  _lcl_receval="$_lcl_to"
  1594. ++_lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  1595. ++     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  1596. ++     _lcl_receval_old=''
  1597. ++     while test "$_lcl_receval_old" != "$_lcl_receval"; do
  1598. ++       _lcl_receval_old="$_lcl_receval"
  1599. ++       eval _lcl_receval="\"$_lcl_receval\""
  1600. ++     done
  1601. ++     echo "$_lcl_receval")`
  1602. ++  _lcl_notation="$_lcl_from$_lcl_to"
  1603. ++  case ":$_lcl_from:" in
  1604. ++# change empty paths to '.'
  1605. ++  ::) _lcl_from='.' ;;
  1606. ++# strip trailing slashes
  1607. ++  :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  1608. ++  :*:) ;;
  1609. ++esac
  1610. ++# squeze repeated slashes
  1611. ++case '/' in
  1612. ++# if the path contains any backslashes, turn slashes into backslashes
  1613. ++ *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\\\\,g'` ;;
  1614. ++# if the path contains slashes, also turn backslashes into slashes
  1615. ++ *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,/,g'` ;;
  1616. ++esac
  1617. ++  case ":$_lcl_to:" in
  1618. ++# change empty paths to '.'
  1619. ++  ::) _lcl_to='.' ;;
  1620. ++# strip trailing slashes
  1621. ++  :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  1622. ++  :*:) ;;
  1623. ++esac
  1624. ++# squeze repeated slashes
  1625. ++case '/' in
  1626. ++# if the path contains any backslashes, turn slashes into backslashes
  1627. ++ *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\\\\,g'` ;;
  1628. ++# if the path contains slashes, also turn backslashes into slashes
  1629. ++ *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,/,g'` ;;
  1630. ++esac
  1631. ++  _lcl_common_prefix=''
  1632. ++_lcl_second_prefix_match=''
  1633. ++while test "$_lcl_second_prefix_match" != 0; do
  1634. ++  _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  1635. ++  _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  1636. ++  if test "$_lcl_second_prefix_match" != 0; then
  1637. ++    if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  1638. ++      _lcl_common_prefix="$_lcl_first_prefix"
  1639. ++    else
  1640. ++      _lcl_second_prefix_match=0
  1641. ++    fi
  1642. ++  fi
  1643. ++done
  1644. ++_lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  1645. ++_lcl_first_rel=''
  1646. ++_lcl_tmp='xxx'
  1647. ++while test "$_lcl_tmp" != ''; do
  1648. ++  _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  1649. ++  if test "$_lcl_first_suffix" != ''; then
  1650. ++     _lcl_first_suffix="$_lcl_tmp"
  1651. ++     _lcl_first_rel="../$_lcl_first_rel"
  1652. ++  fi
  1653. ++done
  1654. ++_lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  1655. ++_lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  1656. ++  case ":$_lcl_result_tmp:" in
  1657. ++# change empty paths to '.'
  1658. ++  ::) _lcl_result_tmp='.' ;;
  1659. ++# strip trailing slashes
  1660. ++  :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  1661. ++  :*:) ;;
  1662. ++esac
  1663. ++# squeze repeated slashes
  1664. ++case "$_lcl_notation" in
  1665. ++# if the path contains any backslashes, turn slashes into backslashes
  1666. ++ *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\\\\,g'` ;;
  1667. ++# if the path contains slashes, also turn backslashes into slashes
  1668. ++ *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,/,g'` ;;
  1669. ++esac
  1670. ++  eval $_lcl_result_var='$_lcl_result_tmp'
  1671. ++done
  1672. ++
  1673. +
  1674. +
  1675. +
  1676. +@@ -25488,7 +25814,7 @@
  1677. + #define GMP_NAIL_BITS $GMP_NAIL_BITS
  1678. + #define GMP_LIMB_BITS 123
  1679. + $DEFN_LONG_LONG_LIMB
  1680. +-#include "$srcdir/gmp-h.in"
  1681. ++#include "$srcdirrel/gmp-h.in"
  1682. +
  1683. + #ifndef __GMP_EXTERN_INLINE
  1684. + die die die
  1685. +@@ -25698,9 +26024,9 @@
  1686. + #define GMP_NAIL_BITS $GMP_NAIL_BITS
  1687. + #define GMP_LIMB_BITS 123
  1688. + $DEFN_LONG_LONG_LIMB
  1689. +-#include "$srcdir/gmp-h.in"
  1690. ++#include "$srcdirrel/gmp-h.in"
  1691. +
  1692. +-#include "$srcdir/gmp-impl.h"
  1693. ++#include "$srcdirrel/gmp-impl.h"
  1694. +
  1695. + int
  1696. + main ()
  1697. +@@ -25795,7 +26121,7 @@
  1698. + #define GMP_NAIL_BITS $GMP_NAIL_BITS
  1699. + #define GMP_LIMB_BITS 123
  1700. + $DEFN_LONG_LONG_LIMB
  1701. +-#include "$srcdir/gmp-h.in"
  1702. ++#include "$srcdirrel/gmp-h.in"
  1703. +
  1704. + #if ! _GMP_H_HAVE_FILE
  1705. + die die die
  1706. +@@ -28901,7 +29227,7 @@
  1707. + #define GMP_NAIL_BITS $GMP_NAIL_BITS
  1708. + #define GMP_LIMB_BITS 123
  1709. + $DEFN_LONG_LONG_LIMB
  1710. +-#include \"$srcdir/gmp-h.in\"
  1711. ++#include \"$srcdirrel/gmp-h.in\"
  1712. +
  1713. + "; then :
  1714. +
  1715. +diff -urN a/configure.ac b/configure.ac
  1716. +--- a/configure.ac 2013-05-20 15:59:56.000000000 +0100
  1717. ++++ b/configure.ac 2013-07-11 11:34:02.024378407 +0100
  1718. +@@ -29,6 +29,8 @@
  1719. + AC_PREREQ(2.59)
  1720. + AC_INIT(GNU MP, GMP_VERSION, [gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html], gmp)
  1721. + AC_CONFIG_SRCDIR(gmp-impl.h)
  1722. ++m4_include([ax_normalize_path.m4])
  1723. ++m4_include([ax_compute_relative_paths.m4])
  1724. + m4_pattern_forbid([^[ \t]*GMP_])
  1725. + m4_pattern_allow(GMP_LDFLAGS)
  1726. + m4_pattern_allow(GMP_LIMB_BITS)
  1727. +@@ -257,6 +259,13 @@
  1728. + AC_DEFINE_UNQUOTED(HAVE_HOST_CPU_$tmp_host)
  1729. + GMP_DEFINE_RAW("define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')", POST)
  1730. +
  1731. ++# Need to form the relative path from builddir to srcdir and use it in
  1732. ++# the #include path in GMP_INCLUDE_GMP_H and GMP_FUNC_ALLOCA instead of
  1733. ++# srcdir directly because srcdir could be an MSYS or Cygwin path and
  1734. ++# GCC could be a native executable.
  1735. ++builddir=$PWD
  1736. ++AX_COMPUTE_RELATIVE_PATHS([builddir:srcdir:srcdirrel])
  1737. ++
  1738. + dnl  The HAVE_HOST_CPU_ list here only needs to have entries for those which
  1739. + dnl  are going to be tested, not everything that can possibly be selected.
  1740. + dnl
  1741. Index: scripts/build/binutils/binutils.sh
  1742. ===================================================================
  1743. --- scripts/build/binutils/binutils.sh  (revision 265)
  1744. +++ scripts/build/binutils/binutils.sh  (working copy)
  1745. @@ -343,6 +343,9 @@
  1746.          [ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && extra_config+=("--disable-nls")
  1747.  
  1748.          CT_DoExecLog CFG                                            \
  1749. +        CFLAGS="${CT_CFLAGS_FOR_BUILD}"                             \
  1750. +        CXXFLAGS="${CT_CFLAGS_FOR_BUILD}"                           \
  1751. +        LDFLAGS="${CT_LDFLAGS_FOR_BUILD}"                           \
  1752.          "${CT_SRC_DIR}/binutils-${CT_BINUTILS_VERSION}/configure"   \
  1753.              --build=${CT_BUILD}                                     \
  1754.              --host=${CT_TARGET}                                     \
  1755. Index: scripts/build/debug/300-gdb.sh
  1756. ===================================================================
  1757. --- scripts/build/debug/300-gdb.sh  (revision 265)
  1758. +++ scripts/build/debug/300-gdb.sh  (working copy)
  1759. @@ -123,14 +123,14 @@
  1760.          cd "${CT_BUILD_DIR}/build-gdb-cross"
  1761.  
  1762.          cross_extra_config=("${extra_config[@]}")
  1763. -        cross_extra_config+=("--enable-expat")
  1764.          cross_extra_config+=("--with-expat=yes")
  1765. +        cross_extra_config+=("--with-libexpat-prefix=/mingw${CT_ARCH_BITNESS}")
  1766.          case "${CT_THREADS}" in
  1767.              none)   cross_extra_config+=("--disable-threads");;
  1768.              *)      cross_extra_config+=("--enable-threads");;
  1769.          esac
  1770.          if [ "${CT_GDB_CROSS_PYTHON}" = "y" ]; then
  1771. -            cross_extra_config+=( "--with-python=yes" )
  1772. +            cross_extra_config+=( "--with-python=/mingw${CT_ARCH_BITNESS}" )
  1773.          else
  1774.              cross_extra_config+=( "--with-python=no" )
  1775.          fi
  1776. @@ -155,6 +155,9 @@
  1777.          CT_DoExecLog CFG                                \
  1778.          CC="${CC_for_gdb}"                              \
  1779.          LD="${LD_for_gdb}"                              \
  1780. +        CFLAGS="${CT_CFLAGS_FOR_BUILD}"                 \
  1781. +        CXXFLAGS="${CT_CFLAGS_FOR_BUILD}"               \
  1782. +        LDFLAGS="${CT_LDFLAGS_FOR_BUILD}"               \
  1783.          "${gdb_src_dir}/configure"                      \
  1784.              --build=${CT_BUILD}                         \
  1785.              --host=${CT_HOST}                           \
  1786. @@ -326,7 +329,9 @@
  1787.          CC="${CT_TARGET}-gcc"                           \
  1788.          CPP="${CT_TARGET}-cpp"                          \
  1789.          LD="${CT_TARGET}-ld"                            \
  1790. -        LDFLAGS="${gdbserver_LDFLAGS}"                  \
  1791. +        CFLAGS="${CT_CFLAGS_FOR_BUILD}"                 \
  1792. +        CXXFLAGS="${CT_CFLAGS_FOR_BUILD}"               \
  1793. +        LDFLAGS="${CT_LDFLAGS_FOR_BUILD} ${gdbserver_LDFLAGS}"               \
  1794.          "${gdb_src_dir}/gdb/gdbserver/configure"        \
  1795.              --build=${CT_BUILD}                         \
  1796.              --host=${CT_TARGET}                         \
  1797. Index: scripts/crosstool-NG.sh.in
  1798. ===================================================================
  1799. --- scripts/crosstool-NG.sh.in  (revision 265)
  1800. +++ scripts/crosstool-NG.sh.in  (working copy)
  1801. @@ -507,7 +507,7 @@
  1802.      # Help build gcc
  1803.      # Explicitly optimise, else the lines below will overide the
  1804.      # package's default optimisation flags
  1805. -    OPTIM_FLAGS="-O2 -g"
  1806. +    OPTIM_FLAGS="-O2"
  1807.      if [ "${CT_DEBUGGABLE_TOOLCHAIN}" = "y" ]; then
  1808.          # GCC 4.8 provides -Og, but we want as much
  1809.          # debugging as possible.
  1810. Index: scripts/functions
  1811. ===================================================================
  1812. --- scripts/functions   (revision 265)
  1813. +++ scripts/functions   (working copy)
  1814. @@ -466,7 +466,7 @@
  1815.      for dir in "${@}"; do
  1816.          [ -d "${dir}" ] || continue
  1817.          case "$CT_SYS_OS" in
  1818. -            Linux|CYGWIN|MSYS*)
  1819. +            Linux|CYGWIN*|MSYS*)
  1820.                  mode="$(stat -c '%a' "$(dirname "${dir}")")"
  1821.                  ;;
  1822.              Darwin|*BSD)
Add Comment
Please, Sign In to add comment