]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/gmp/gmp-4.1.2/configure.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / gmp / gmp-4.1.2 / configure.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- gmp-4.1.2/mpfr/Makefile.am~configure        2002-05-15 20:27:52.000000000 -0400
7 +++ gmp-4.1.2/mpfr/Makefile.am  2004-01-25 12:53:19.000000000 -0500
8 @@ -28,7 +28,7 @@
9  SUBDIRS = tests
10  
11  INCLUDES = -I$(top_srcdir)
12 -CFLAGS = @MPFR_CFLAGS@
13 +AM_CFLAGS = @MPFR_CFLAGS@
14  LIBS = @MPFR_LIBS@
15  
16  if WANT_MPFR
17 --- gmp-4.1.2/mpfr/tests/Makefile.am~configure  2002-11-24 17:00:42.000000000 -0500
18 +++ gmp-4.1.2/mpfr/tests/Makefile.am    2004-01-25 12:53:19.000000000 -0500
19 @@ -22,7 +22,7 @@
20  AUTOMAKE_OPTIONS = gnu no-dependencies $(top_builddir)/ansi2knr
21  
22  INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/mpfr
23 -CFLAGS = @MPFR_CFLAGS@
24 +AM_CFLAGS = @MPFR_CFLAGS@
25  LIBS = @MPFR_LIBS@
26  
27  LDADD = ../libmpfr.a $(top_builddir)/libgmp.la
28 --- gmp-4.1.2/configure.in~configure    2002-12-23 15:52:09.000000000 -0500
29 +++ gmp-4.1.2/configure.in      2004-01-25 12:53:19.000000000 -0500
30 @@ -26,15 +26,16 @@
31  
32  
33  AC_REVISION($Revision: 1.425.2.17 $)
34 -AC_PREREQ(2.52)
35 -AC_INIT(gmp-impl.h)
36 -m4_pattern_forbid([^[ \t]*GMP_])
37 -m4_pattern_forbid([^[ \t]*MPFR_CONFIGS])
38 -m4_pattern_allow(GMP_LDFLAGS)
39 -m4_pattern_allow(GMP_LIMB_BITS)
40 -m4_pattern_allow(GMP_MPARAM_H_SUGGEST)
41 -m4_pattern_allow(GMP_NAIL_BITS)
42 -m4_pattern_allow(GMP_NUMB_BITS)
43 +AC_PREREQ(2.57)
44 +AC_INIT
45 +AC_CONFIG_SRCDIR([gmp-impl.h])
46 +
47 +
48 +
49 +
50 +
51 +
52 +
53  
54  # If --target is not used then $target_alias is empty, but if say
55  # "./configure athlon-pc-freebsd3.5" is used, then all three of
56 @@ -56,7 +57,7 @@
57  GMP_DEFINE_RAW("define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')", POST)
58  
59  AM_INIT_AUTOMAKE(gmp, GMP_VERSION)
60 -AM_CONFIG_HEADER(config.h:config.in)
61 +AC_CONFIG_HEADERS([config.h:config.in])
62  AM_MAINTAINER_MODE
63  
64  
65 @@ -201,7 +202,7 @@
66  # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is
67  # called.  User selections of CC etc are respected.
68  #
69 -# Care is taken not to use macros like AC_TRY_COMPILE during the GMP
70 +# Care is taken not to use macros like AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) during the GMP
71  # pre-testing, since they of course depend on AC_PROG_CC, and also some of
72  # them cache their results, which is not wanted.
73  #
74 @@ -288,7 +289,7 @@
75  # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring
76  # c89 over cc here.  But note that on HP-UX c89 provides a castrated
77  # environment, and would want to be excluded somehow.  Maybe
78 -# AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and
79 +#  already does enough to stick cc into ANSI mode and
80  # we don't need to worry.
81  #
82  cclist="gcc cc"
83 @@ -1010,7 +1011,7 @@
84  CFLAGS_or_unset=${CFLAGS-'(unset)'}
85  CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'}
86  
87 -cat >&AC_FD_CC <<EOF
88 +cat >&AS_MESSAGE_LOG_FD() <<EOF
89  configure:__line__: User:
90  ABI=$ABI
91  CC=$CC
92 @@ -1322,18 +1323,18 @@
93  
94  # The C compiler and preprocessor, put into ANSI mode if possible.
95  AC_PROG_CC
96 -AC_PROG_CC_STDC
97 +
98  AC_PROG_CPP
99  GMP_H_ANSI
100  
101  
102  # The C++ compiler, if desired.
103  want_cxx=no
104 +AC_PROG_CXX
105  if test $enable_cxx != no; then
106    test_CXXFLAGS=${CXXFLAGS+set}
107 -  AC_PROG_CXX
108  
109 -  echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&AC_FD_CC
110 +  echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&AS_MESSAGE_LOG_FD()
111    cxxflags_ac_prog_cxx=$CXXFLAGS
112    cxxflags_list=ac_prog_cxx
113  
114 @@ -1409,7 +1410,7 @@
115  fi
116  
117  
118 -cat >&AC_FD_CC <<EOF
119 +cat >&AS_MESSAGE_LOG_FD() <<EOF
120  configure:__line__: Decided:
121  ABI=$ABI
122  CC=$CC
123 @@ -1651,9 +1652,9 @@
124  
125  # FIXME: Autoconf 2.52 AC_C_BIGENDIAN bombs when cross compiling, but in the
126  # future the probes will be better and this override can be removed.
127 -if test "$cross_compiling" = yes; then
128 -  ac_cv_c_bigendian=unknown
129 -fi
130 +#if test "$cross_compiling" = yes; then
131 +#  ac_cv_c_bigendian=unknown
132 +#fi
133  AC_C_BIGENDIAN
134  # Enhancement: In the future AC_C_BIGENDIAN will accept these actions as
135  # parameters.
136 @@ -2094,7 +2095,7 @@
137  
138  # Configs for demos/calc directory
139  #
140 -# AC_SUBST is used here since with AM_CONFIG_HEADER automake would put
141 +# AC_SUBST is used here since with AC_CONFIG_HEADERS([]) automake would put
142  # demos/calc in the default $(DEFAULT_INCLUDES) for every directory,
143  # which would look very strange.  Likewise demos/expr below.
144  #
145 @@ -2133,7 +2134,7 @@
146  # FIXME: Upcoming version of autoconf/automake may not like broken lines.
147  #        Right now automake isn't accepting the new AC_CONFIG_FILES scheme.
148  
149 -AC_OUTPUT(Makefile                                                     \
150 +AC_CONFIG_FILES([Makefile                                                      \
151    mpbsd/Makefile mpf/Makefile mpn/Makefile mpq/Makefile                        \
152    mpz/Makefile printf/Makefile scanf/Makefile cxx/Makefile             \
153    tests/Makefile tests/devel/Makefile tests/mpbsd/Makefile             \
154 @@ -2143,4 +2144,5 @@
155    mpfr/Makefile mpfr/tests/Makefile                                    \
156    tune/Makefile                                                                \
157    demos/Makefile demos/calc/Makefile demos/expr/Makefile               \
158 -  gmp.h:gmp-h.in mp.h:mp-h.in)
159 +  gmp.h:gmp-h.in mp.h:mp-h.in])
160 +AC_OUTPUT
161 --- gmp-4.1.2/acinclude.m4~configure    2002-09-07 20:02:19.000000000 -0400
162 +++ gmp-4.1.2/acinclude.m4      2004-01-25 12:54:39.000000000 -0500
163 @@ -21,10 +21,10 @@
164  dnl  MA 02111-1307, USA.
165  
166  
167 -define(X86_PATTERN,
168 +define([X86_PATTERN],
169  [[i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-*]])
170  
171 -define(POWERPC64_PATTERN,
172 +define([POWERPC64_PATTERN],
173  [[powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-*]])
174  
175  
176 @@ -32,7 +32,7 @@
177  dnl  ----------------------
178  dnl  Strip entries */subdir from $path.
179  
180 -define(GMP_STRIP_PATH,
181 +define([GMP_STRIP_PATH],
182  [tmp_path=
183  for i in $path; do
184    case $i in
185 @@ -53,7 +53,7 @@
186  dnl  GMP_INCLUDE_GMP_H_BITS_PER_MP_LIMB starts as a dummy, but gets
187  dnl  redefined in GMP_C_SIZES when the right value is known.
188  
189 -define(GMP_INCLUDE_GMP_H,
190 +define([GMP_INCLUDE_GMP_H],
191  [[#define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
192  #define GMP_NAIL_BITS $GMP_NAIL_BITS]
193  GMP_INCLUDE_GMP_H_BITS_PER_MP_LIMB
194 @@ -61,7 +61,7 @@
195  #include "$srcdir/gmp-h.in"]
196  ])
197  
198 -define(GMP_INCLUDE_GMP_H_BITS_PER_MP_LIMB,
199 +define([GMP_INCLUDE_GMP_H_BITS_PER_MP_LIMB],
200  [[#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
201  #define GMP_LIMB_BITS 123]])
202  
203 @@ -72,7 +72,7 @@
204  dnl  FILE.  The regexps here aren't very rugged, but are enough for gmp.
205  dnl  /dev/null as a parameter prevents a hang if $2 is accidentally omitted.
206  
207 -define(GMP_HEADER_GETVAL,
208 +define([GMP_HEADER_GETVAL],
209  [patsubst(patsubst(
210  esyscmd([grep "^#define $1 " $2 /dev/null 2>/dev/null]),
211  [^.*$1[        ]+],[]),
212 @@ -86,7 +86,7 @@
213  dnl  autoconf time.  Two digits like 3.0 if patchlevel <= 0, or three digits
214  dnl  like 3.0.1 if patchlevel > 0.
215  
216 -define(GMP_VERSION,
217 +define([GMP_VERSION],
218  [GMP_HEADER_GETVAL(__GNU_MP_VERSION,gmp-h.in)[]dnl
219  .GMP_HEADER_GETVAL(__GNU_MP_VERSION_MINOR,gmp-h.in)[]dnl
220  ifelse(m4_eval(GMP_HEADER_GETVAL(__GNU_MP_VERSION_PATCHLEVEL,gmp-h.in) > 0),1,
221 @@ -97,13 +97,13 @@
222  dnl  ------------------------------
223  dnl  Setup an AC_SUBST of HAVE_FUNC_01 for each argument.
224  
225 -AC_DEFUN(GMP_SUBST_CHECK_FUNCS,
226 +AC_DEFUN([GMP_SUBST_CHECK_FUNCS],
227  [m4_if([$1],,,
228  [_GMP_SUBST_CHECK_FUNCS(ac_cv_func_[$1],HAVE_[]m4_translit([$1],[a-z],[A-Z])_01)
229  GMP_SUBST_CHECK_FUNCS(m4_shift($@))])])
230  
231  dnl  Called: _GMP_SUBST_CHECK_FUNCS(cachvar,substvar)
232 -AC_DEFUN(_GMP_SUBST_CHECK_FUNCS,
233 +AC_DEFUN([_GMP_SUBST_CHECK_FUNCS],
234  [case $[$1] in
235  yes) AC_SUBST([$2],1) ;;
236  no)  [$2]=0 ;;
237 @@ -115,14 +115,14 @@
238  dnl  ----------------------------------
239  dnl  Setup an AC_SUBST of HAVE_FOO_H_01 for each argument.
240  
241 -AC_DEFUN(GMP_SUBST_CHECK_HEADERS,
242 +AC_DEFUN([GMP_SUBST_CHECK_HEADERS],
243  [m4_if([$1],,,
244  [_GMP_SUBST_CHECK_HEADERS(ac_cv_header_[]m4_translit([$1],[./],[__]),
245  HAVE_[]m4_translit([$1],[a-z./],[A-Z__])_01)
246  GMP_SUBST_CHECK_HEADERS(m4_shift($@))])])
247  
248  dnl  Called: _GMP_SUBST_CHECK_HEADERS(cachvar,substvar)
249 -AC_DEFUN(_GMP_SUBST_CHECK_HEADERS,
250 +AC_DEFUN([_GMP_SUBST_CHECK_HEADERS],
251  [case $[$1] in
252  yes) AC_SUBST([$2],1) ;;
253  no)  [$2]=0 ;;
254 @@ -145,12 +145,12 @@
255  dnl  would test whether $major.$minor.$subminor is greater than or equal to
256  dnl  10.3.1.
257  
258 -AC_DEFUN(GMP_COMPARE_GE,
259 +AC_DEFUN([GMP_COMPARE_GE],
260  [gmp_compare_ge=no
261  GMP_COMPARE_GE_INTERNAL($@)
262  ])
263  
264 -AC_DEFUN(GMP_COMPARE_GE_INTERNAL,
265 +AC_DEFUN([GMP_COMPARE_GE_INTERNAL],
266  [ifelse(len([$3]),0,
267  [if test -n "$1" && test "$1" -ge $2; then
268    gmp_compare_ge=yes
269 @@ -184,7 +184,7 @@
270  dnl  for instance to random.o (and others) on vax-dec-ultrix4.5.  Naturally
271  dnl  a user-selected $AR_FLAGS is left unchanged.
272  
273 -AC_DEFUN(GMP_PROG_AR,
274 +AC_DEFUN([GMP_PROG_AR],
275  [dnl  Want to establish $AR before libtool initialization.
276  AC_BEFORE([$0],[AC_PROG_LIBTOOL])
277  gmp_user_AR=$AR
278 @@ -212,7 +212,7 @@
279  dnl  CC_FOR_BUILD is used without testing.  CC_FOR_BUILD is the new name for
280  dnl  a build system compiler, see configfsf.guess.
281  
282 -AC_DEFUN(GMP_PROG_HOST_CC,
283 +AC_DEFUN([GMP_PROG_HOST_CC],
284  [AC_BEFORE([$0],[AC_PROG_LIBTOOL])
285  AC_REQUIRE([AC_PROG_CC])
286  AC_CACHE_CHECK([for HOST_CC build system compiler],
287 @@ -255,7 +255,7 @@
288  dnl  FIXME: This can be removed and just AM_PROG_LEX used, one that macro
289  dnl  works properly.
290  
291 -AC_DEFUN(GMP_PROG_LEX,
292 +AC_DEFUN([GMP_PROG_LEX],
293  [AC_REQUIRE([AC_PROG_LEX])
294  if test "$LEX" = :; then
295    LEX=${am_missing_run}flex
296 @@ -273,7 +273,7 @@
297  dnl 
298  dnl  See mpn/asm-defs.m4 for details on the known bad m4s.
299  
300 -AC_DEFUN(GMP_PROG_M4,
301 +AC_DEFUN([GMP_PROG_M4],
302  [AC_ARG_VAR(M4,[m4 macro processor])
303  AC_CACHE_CHECK([for suitable m4],
304                  gmp_cv_prog_m4,
305 @@ -340,7 +340,7 @@
306  dnl  Enhancement: Maybe this could be in GMP_PROG_M4, and attempt to prefer
307  dnl  an m4 with a working m4wrap, if it can be found.
308  
309 -AC_DEFUN(GMP_M4_M4WRAP_SPURIOUS,
310 +AC_DEFUN([GMP_M4_M4WRAP_SPURIOUS],
311  [AC_REQUIRE([GMP_PROG_M4])
312  AC_CACHE_CHECK([if m4wrap produces spurious output],
313                 gmp_cv_m4_m4wrap_spurious,
314 @@ -374,7 +374,7 @@
315  dnl  A user-selected $NM is always left unchanged.  AC_PROG_NM is still run
316  dnl  to get the "checking" message printed though.
317  
318 -AC_DEFUN(GMP_PROG_NM,
319 +AC_DEFUN([GMP_PROG_NM],
320  [dnl  Make sure we're the first to call AC_PROG_NM, so our extra flags are
321  dnl   used by everyone.
322  AC_BEFORE([$0],[AC_PROG_NM])
323 @@ -426,7 +426,7 @@
324  dnl  will run is that a plain native "./configure" falls back on ABI=32, but
325  dnl  ABI=64 is still available as a cross-compile.
326  
327 -AC_DEFUN(GMP_PROG_CC_WORKS,
328 +AC_DEFUN([GMP_PROG_CC_WORKS],
329  [AC_MSG_CHECKING([compiler $1])
330  cat >conftest.c <<EOF
331  
332 @@ -481,7 +481,7 @@
333  dnl  cache the result.  The same "ifndef" style test is used, to avoid
334  dnl  problems with syntax checking cpp's used on NeXT and Apple systems.
335  
336 -AC_DEFUN(GMP_PROG_CC_IS_GNU,
337 +AC_DEFUN([GMP_PROG_CC_IS_GNU],
338  [cat >conftest.c <<EOF
339  #ifndef __GNUC__
340    choke me
341 @@ -508,7 +508,7 @@
342  dnl  there is one then it's well hidden in xlc 3.1 on AIX 4.3, so just grep
343  dnl  the man page printed when xlc is invoked with no arguments.
344  
345 -AC_DEFUN(GMP_PROG_CC_IS_XLC,
346 +AC_DEFUN([GMP_PROG_CC_IS_XLC],
347  [gmp_command="$1 2>&1 | grep xlc >/dev/null"
348  if AC_TRY_EVAL(gmp_command); then
349    AC_MSG_CHECKING([whether $1 is xlc])
350 @@ -527,7 +527,7 @@
351  dnl  This test might be repeated for different compilers, so the result is
352  dnl  not cached.
353  
354 -AC_DEFUN(GMP_HPC_HPPA_2_0,
355 +AC_DEFUN([GMP_HPC_HPPA_2_0],
356  [AC_MSG_CHECKING([whether HP compiler $1 is good for 64-bits])
357  # Bad compiler output:
358  #   ccom: HP92453-01 G.10.32.05 HP C Compiler
359 @@ -571,7 +571,7 @@
360  dnl
361  dnl  There's no caching here, so that different CC's can be tested.
362  
363 -AC_DEFUN(GMP_GCC_VERSION_GE,
364 +AC_DEFUN([GMP_GCC_VERSION_GE],
365  [tmp_version=`($1 --version) 2>&AC_FD_CC`
366  echo "$1 --version '$tmp_version'" >&AC_FD_CC
367  
368 @@ -608,7 +608,7 @@
369  dnl  size==1 case in mpn/generic/mode1o.c, and this shows up in
370  dnl  tests/mpz/t-jac.c as a wrong result from mpz_kronecker_ui.
371  
372 -AC_DEFUN(GMP_GCC_ARM_UMODSI,
373 +AC_DEFUN([GMP_GCC_ARM_UMODSI],
374  [AC_MSG_CHECKING([whether ARM gcc unsigned division works])
375  tmp_version=`$1 --version`
376  echo "$tmp_version" >&AC_FD_CC
377 @@ -635,7 +635,7 @@
378  dnl  This macro is used only once, after finalizing a choice of CC, so the
379  dnl  result is cached.
380  
381 -AC_DEFUN(GMP_GCC_MARCH_PENTIUMPRO,
382 +AC_DEFUN([GMP_GCC_MARCH_PENTIUMPRO],
383  [AC_CACHE_CHECK([whether gcc -march=pentiumpro is good],
384                  gmp_cv_gcc_march_pentiumpro,
385  [GMP_GCC_VERSION_GE([$1], 2,95,4)
386 @@ -659,7 +659,7 @@
387  dnl  gets rearranged or rewritten so the ICE doesn't happen then this can be
388  dnl  removed.
389  
390 -AC_DEFUN(GMP_GCC_M68K_OPTIMIZE,
391 +AC_DEFUN([GMP_GCC_M68K_OPTIMIZE],
392  [case $host in
393  m68*-*-*)
394    if test $1 = gcc; then
395 @@ -681,7 +681,7 @@
396  dnl  gcc 2.95 accepts -mabi=32 but it only works on irix5, on irix6 it gives
397  dnl  "cc1: The -mabi=32 support does not work yet".
398  
399 -AC_DEFUN(GMP_GCC_MIPS_O32,
400 +AC_DEFUN([GMP_GCC_MIPS_O32],
401  [AC_MSG_CHECKING([whether gcc supports o32])
402  echo 'int x;' >conftest.c
403  echo "$1 -mabi=32 -c conftest.c" >&AC_FD_CC
404 @@ -716,7 +716,7 @@
405  dnl  watch for that and decide against the option in that case, to avoid
406  dnl  confusing the user.
407  
408 -AC_DEFUN(GMP_GCC_NO_CPP_PRECOMP,
409 +AC_DEFUN([GMP_GCC_NO_CPP_PRECOMP],
410  [if test "$ccbase" = gcc; then
411    AC_MSG_CHECKING([compiler $2 $3 -no-cpp-precomp])
412    result=no
413 @@ -752,7 +752,7 @@
414  dnl  This is intended for use on alpha, since only recent versions of gas
415  dnl  accept -mev67, but there's nothing here that's alpha specific.
416  
417 -AC_DEFUN(GMP_GCC_WA_MCPU,
418 +AC_DEFUN([GMP_GCC_WA_MCPU],
419  [AC_MSG_CHECKING([assembler $1 $2])
420  result=no
421  cat >conftest.c <<EOF
422 @@ -783,7 +783,7 @@
423  dnl  This test is designed to be run repeatedly with different cxx/cxxflags
424  dnl  selections, so the result is not cached.
425  
426 -AC_DEFUN(GMP_PROG_CXX_WORKS,
427 +AC_DEFUN([GMP_PROG_CXX_WORKS],
428  [AC_MSG_CHECKING([C++ compiler $1])
429  cat >conftest.cc <<EOF
430  #include <iostream>
431 @@ -817,7 +817,7 @@
432  dnl  FIXME: The generated config.m4 doesn't get recreated by config.status.
433  dnl  Maybe the relevant "echo"s should go through AC_CONFIG_COMMANDS.
434  
435 -AC_DEFUN(GMP_INIT,
436 +AC_DEFUN([GMP_INIT],
437  [ifelse([$1], , gmp_configm4=config.m4, gmp_configm4="[$1]")
438  gmp_tmpconfigm4=cnfm4.tmp
439  gmp_tmpconfigm4i=cnfm4i.tmp
440 @@ -834,7 +834,9 @@
441  echo ["define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)"] >>$gmp_tmpconfigm4
442  
443  # All CPUs use asm-defs.m4 
444 -echo ["include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')"] >>$gmp_tmpconfigm4i
445 +echo -n ["include("] >>$gmp_tmpconfigm4i
446 +echo -n ["CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4'"] >>$gmp_tmpconfigm4i
447 +echo [")"] >>$gmp_tmpconfigm4i
448  ])
449  
450  
451 @@ -855,7 +857,7 @@
452  dnl  having a whole file as a macro argument would overflow the string space
453  dnl  on BSD m4.
454  
455 -AC_DEFUN(GMP_FINISH,
456 +AC_DEFUN([GMP_FINISH],
457  [AC_REQUIRE([GMP_INIT])
458  echo "creating $gmp_configm4"
459  echo ["d""nl $gmp_configm4.  Generated automatically by configure."] > $gmp_configm4
460 @@ -889,7 +891,7 @@
461  dnl      GMP_INCLUDE_MPN(`x86/x86-defs.m4')
462  dnl
463  
464 -AC_DEFUN(GMP_INCLUDE_MPN,
465 +AC_DEFUN([GMP_INCLUDE_MPN],
466  [AC_REQUIRE([GMP_INIT])
467  echo ["include_mpn(\`$1')"] >> $gmp_tmpconfigm4i
468  ])
469 @@ -905,7 +907,7 @@
470  dnl  create file config.m4.  config.m4 uses `<' and '>' as quote characters
471  dnl  for all defines.
472  
473 -AC_DEFUN(GMP_DEFINE, 
474 +AC_DEFUN([GMP_DEFINE], 
475  [AC_REQUIRE([GMP_INIT])
476  echo ['define(<$1>, <$2>)'] >>ifelse([$3], [POST],
477                                $gmp_tmpconfigm4p, $gmp_tmpconfigm4)
478 @@ -920,7 +922,7 @@
479  dnl  directives inserted by GMP_INCLUDE.  Don't forget to invoke GMP_FINISH
480  dnl  to create file config.m4.
481  
482 -AC_DEFUN(GMP_DEFINE_RAW,
483 +AC_DEFUN([GMP_DEFINE_RAW],
484  [AC_REQUIRE([GMP_INIT])
485  echo [$1] >> ifelse([$2], [POST], $gmp_tmpconfigm4p, $gmp_tmpconfigm4)
486  ])
487 @@ -938,7 +940,7 @@
488  dnl  This is not unlike AC_TRY_COMPILE, but there's no default includes or
489  dnl  anything in "asm-code", everything wanted must be given explicitly.
490  
491 -AC_DEFUN(GMP_TRY_ASSEMBLE,
492 +AC_DEFUN([GMP_TRY_ASSEMBLE],
493  [cat >conftest.s <<EOF
494  [$1]
495  EOF
496 @@ -960,7 +962,7 @@
497  dnl  --------------------
498  dnl  Should a label have a colon or not?
499  
500 -AC_DEFUN(GMP_ASM_LABEL_SUFFIX,
501 +AC_DEFUN([GMP_ASM_LABEL_SUFFIX],
502  [AC_CACHE_CHECK([what assembly label suffix to use],
503                  gmp_cv_asm_label_suffix,
504  [case $host in 
505 @@ -984,7 +986,7 @@
506  dnl  in particular that grepping doesn't work with SunOS 4 native grep since
507  dnl  that grep seems to have trouble with '\0's in files.
508  
509 -AC_DEFUN(GMP_ASM_UNDERSCORE,
510 +AC_DEFUN([GMP_ASM_UNDERSCORE],
511  [AC_REQUIRE([GMP_ASM_TEXT])
512  AC_REQUIRE([GMP_ASM_GLOBL])
513  AC_REQUIRE([GMP_ASM_LABEL_SUFFIX])
514 @@ -1045,7 +1047,7 @@
515  dnl  -----------------
516  dnl  Is parameter to `.align' logarithmic?
517  
518 -AC_DEFUN(GMP_ASM_ALIGN_LOG,
519 +AC_DEFUN([GMP_ASM_ALIGN_LOG],
520  [AC_REQUIRE([GMP_ASM_GLOBL])
521  AC_REQUIRE([GMP_ASM_DATA])
522  AC_REQUIRE([GMP_ASM_LABEL_SUFFIX])
523 @@ -1103,7 +1105,7 @@
524  dnl  The warning from solaris 2.8 is supressed to stop anyone worrying that
525  dnl  something might be wrong.
526  
527 -AC_DEFUN(GMP_ASM_ALIGN_FILL_0x90,
528 +AC_DEFUN([GMP_ASM_ALIGN_FILL_0x90],
529  [AC_REQUIRE([GMP_ASM_TEXT])
530  AC_CACHE_CHECK([if the .align directive accepts an 0x90 fill in .text],
531                 gmp_cv_asm_align_fill_0x90,
532 @@ -1127,7 +1129,7 @@
533  dnl  GMP_ASM_TEXT
534  dnl  ------------
535  
536 -AC_DEFUN(GMP_ASM_TEXT,
537 +AC_DEFUN([GMP_ASM_TEXT],
538  [AC_CACHE_CHECK([how to switch to text section],
539                  gmp_cv_asm_text,
540  [case $host in
541 @@ -1144,7 +1146,7 @@
542  dnl  ------------
543  dnl  Can we say `.data'?
544  
545 -AC_DEFUN(GMP_ASM_DATA,
546 +AC_DEFUN([GMP_ASM_DATA],
547  [AC_CACHE_CHECK([how to switch to data section],
548                  gmp_cv_asm_data,
549  [case $host in
550 @@ -1172,7 +1174,7 @@
551  dnl  where foo is the object file.  Might need to check for that if we use
552  dnl  RODATA there.
553  
554 -AC_DEFUN(GMP_ASM_RODATA,
555 +AC_DEFUN([GMP_ASM_RODATA],
556  [AC_REQUIRE([GMP_ASM_TEXT])
557  AC_REQUIRE([GMP_ASM_DATA])
558  AC_REQUIRE([GMP_ASM_LABEL_SUFFIX])
559 @@ -1229,7 +1231,7 @@
560  dnl  -------------
561  dnl  Can we say `.global'?
562  
563 -AC_DEFUN(GMP_ASM_GLOBL,
564 +AC_DEFUN([GMP_ASM_GLOBL],
565  [AC_CACHE_CHECK([how to export a symbol],
566                  gmp_cv_asm_globl,
567  [case $host in
568 @@ -1245,7 +1247,7 @@
569  dnl  ------------------
570  dnl  Do we need something after `.global symbol'?
571  
572 -AC_DEFUN(GMP_ASM_GLOBL_ATTR,
573 +AC_DEFUN([GMP_ASM_GLOBL_ATTR],
574  [AC_CACHE_CHECK([if the export directive needs an attribute],
575                  gmp_cv_asm_globl_attr,
576  [case $host in
577 @@ -1276,7 +1278,7 @@
578  dnl  letting the problem go unnoticed.  tests/mpn/t-asmtype.c aims to check
579  dnl  for it.
580  
581 -AC_DEFUN(GMP_ASM_TYPE,
582 +AC_DEFUN([GMP_ASM_TYPE],
583  [AC_CACHE_CHECK([for assembler .type directive],
584                  gmp_cv_asm_type,
585  [gmp_cv_asm_type=
586 @@ -1298,7 +1300,7 @@
587  dnl  ------------
588  dnl  Can we say `.size'?
589  
590 -AC_DEFUN(GMP_ASM_SIZE,
591 +AC_DEFUN([GMP_ASM_SIZE],
592  [AC_CACHE_CHECK([for assembler .size directive],
593                  gmp_cv_asm_size,
594  [gmp_cv_asm_size=
595 @@ -1341,7 +1343,7 @@
596  dnl  HP-UX nm prints an error message (though seems to give a 0 exit) if
597  dnl  there's no symbols at all in an object file, hence the use of "dummy".
598  
599 -AC_DEFUN(GMP_ASM_LSYM_PREFIX,
600 +AC_DEFUN([GMP_ASM_LSYM_PREFIX],
601  [AC_REQUIRE([GMP_ASM_LABEL_SUFFIX])
602  AC_REQUIRE([GMP_PROG_NM])
603  AC_CACHE_CHECK([what prefix to use for a local label], 
604 @@ -1386,7 +1388,7 @@
605  dnl  -----------
606  dnl  How to define a 32-bit word.
607  
608 -AC_DEFUN(GMP_ASM_W32,
609 +AC_DEFUN([GMP_ASM_W32],
610  [AC_REQUIRE([GMP_ASM_DATA])
611  AC_REQUIRE([GMP_ASM_GLOBL])
612  AC_REQUIRE([GMP_ASM_LABEL_SUFFIX])
613 @@ -1443,7 +1445,7 @@
614  dnl  %mm1, %mm0").  It seems more trouble than it's worth to work around
615  dnl  this in the code, so just detect and reject.
616  
617 -AC_DEFUN(GMP_ASM_X86_MMX,
618 +AC_DEFUN([GMP_ASM_X86_MMX],
619  [AC_CACHE_CHECK([if the assembler knows about MMX instructions],
620                 gmp_cv_asm_x86_mmx,
621  [GMP_TRY_ASSEMBLE(
622 @@ -1495,7 +1497,7 @@
623  dnl  GMP_ASM_X86_SHLDL_CL
624  dnl  --------------------
625  
626 -AC_DEFUN(GMP_ASM_X86_SHLDL_CL,
627 +AC_DEFUN([GMP_ASM_X86_SHLDL_CL],
628  [AC_REQUIRE([GMP_ASM_TEXT])
629  AC_CACHE_CHECK([if the assembler takes cl with shldl],
630                 gmp_cv_asm_x86_shldl_cl,
631 @@ -1522,7 +1524,7 @@
632  dnl  it's all GMP_ASM_TEXT gives currently.  Actually ".text" probably isn't
633  dnl  needed at all, at least for just checking instruction syntax.
634  
635 -AC_DEFUN(GMP_ASM_X86_SSE2,
636 +AC_DEFUN([GMP_ASM_X86_SSE2],
637  [AC_CACHE_CHECK([if the assembler knows about SSE2 instructions],
638                 gmp_cv_asm_x86_sse2,
639  [GMP_TRY_ASSEMBLE(
640 @@ -1585,7 +1587,7 @@
641  dnl  to get two variables (mcount_nonpic_reg and mcount_nonpic_call say) set
642  dnl  from one block of commands?
643  
644 -AC_DEFUN(GMP_ASM_X86_MCOUNT,
645 +AC_DEFUN([GMP_ASM_X86_MCOUNT],
646  [AC_REQUIRE([AC_ENABLE_SHARED])
647  AC_REQUIRE([AC_PROG_LIBTOOL])
648  AC_MSG_CHECKING([how to call x86 mcount])
649 @@ -1655,7 +1657,7 @@
650  dnl  instruction.  It takes registers without "%", but a single operand
651  dnl  "clrl %d0" only gives a warning, not an error.
652  
653 -AC_DEFUN(GMP_ASM_M68K_INSTRUCTION,
654 +AC_DEFUN([GMP_ASM_M68K_INSTRUCTION],
655  [AC_REQUIRE([GMP_ASM_TEXT])
656  AC_CACHE_CHECK([assembler instruction and register style],
657                 gmp_cv_asm_m68k_instruction,
658 @@ -1684,7 +1686,7 @@
659  dnl  GMP_ASM_M68K_ADDRESSING
660  dnl  -----------------------
661  
662 -AC_DEFUN(GMP_ASM_M68K_ADDRESSING,
663 +AC_DEFUN([GMP_ASM_M68K_ADDRESSING],
664  [AC_REQUIRE([GMP_ASM_TEXT])
665  AC_REQUIRE([GMP_ASM_M68K_INSTRUCTION])
666  AC_CACHE_CHECK([assembler addressing style],
667 @@ -1721,7 +1723,7 @@
668  dnl  16-bits.  This applies to the conditional branches "bcc" etc too.
669  dnl  However "dbcc" etc on gas are already only as big as they need to be.
670  
671 -AC_DEFUN(GMP_ASM_M68K_BRANCHES,
672 +AC_DEFUN([GMP_ASM_M68K_BRANCHES],
673  [AC_REQUIRE([GMP_ASM_TEXT])
674  AC_CACHE_CHECK([assembler shortest branches],
675                 gmp_cv_asm_m68k_branches,
676 @@ -1752,7 +1754,7 @@
677  dnl  See also mpn/powerpc32/powerpc-defs.m4 which uses the result of this
678  dnl  test.
679  
680 -AC_DEFUN(GMP_ASM_POWERPC_R_REGISTERS,
681 +AC_DEFUN([GMP_ASM_POWERPC_R_REGISTERS],
682  [AC_REQUIRE([GMP_ASM_TEXT])
683  AC_CACHE_CHECK([if the assembler needs r on registers],
684                 gmp_cv_asm_powerpc_r_registers,
685 @@ -1777,7 +1779,7 @@
686  dnl
687  dnl  See also mpn/sparc32/sparc-defs.m4 which uses the result of this test.
688  
689 -AC_DEFUN(GMP_ASM_SPARC_REGISTER,
690 +AC_DEFUN([GMP_ASM_SPARC_REGISTER],
691  [AC_REQUIRE([GMP_ASM_TEXT])
692  AC_CACHE_CHECK([if the assembler accepts ".register"],
693                 gmp_cv_asm_sparc_register,
694 @@ -1795,7 +1797,7 @@
695  dnl  GMP_C_ATTRIBUTE_CONST
696  dnl  ---------------------
697  
698 -AC_DEFUN(GMP_C_ATTRIBUTE_CONST,
699 +AC_DEFUN([GMP_C_ATTRIBUTE_CONST],
700  [AC_CACHE_CHECK([whether gcc __attribute__ ((const)) works],
701                  gmp_cv_c_attribute_const,
702  [AC_TRY_COMPILE([int foo (int x) __attribute__ ((const));], ,
703 @@ -1814,7 +1816,7 @@
704  dnl  it's ignored.  Pretend it doesn't exist in this case, to avoid that
705  dnl  warning.
706  
707 -AC_DEFUN(GMP_C_ATTRIBUTE_MALLOC,
708 +AC_DEFUN([GMP_C_ATTRIBUTE_MALLOC],
709  [AC_CACHE_CHECK([whether gcc __attribute__ ((malloc)) works],
710                  gmp_cv_c_attribute_malloc,
711  [cat >conftest.c <<EOF
712 @@ -1844,7 +1846,7 @@
713  dnl  --------------------
714  dnl  Introduced in gcc 2.2, but perhaps not in all Apple derived versions.
715  
716 -AC_DEFUN(GMP_C_ATTRIBUTE_MODE,
717 +AC_DEFUN([GMP_C_ATTRIBUTE_MODE],
718  [AC_CACHE_CHECK([whether gcc __attribute__ ((mode (XX))) works],
719                  gmp_cv_c_attribute_mode,
720  [AC_TRY_COMPILE([typedef int SItype __attribute__ ((mode (SI)));], ,
721 @@ -1860,7 +1862,7 @@
722  dnl  GMP_C_ATTRIBUTE_NORETURN
723  dnl  ------------------------
724  
725 -AC_DEFUN(GMP_C_ATTRIBUTE_NORETURN,
726 +AC_DEFUN([GMP_C_ATTRIBUTE_NORETURN],
727  [AC_CACHE_CHECK([whether gcc __attribute__ ((noreturn)) works],
728                  gmp_cv_c_attribute_noreturn,
729  [AC_TRY_COMPILE([void foo (int x) __attribute__ ((noreturn));], ,
730 @@ -1887,7 +1889,7 @@
731  dnl  used doesn't have functions or anything, so even an "old" awk should
732  dnl  suffice.
733  
734 -AC_DEFUN(GMP_C_DOUBLE_FORMAT,
735 +AC_DEFUN([GMP_C_DOUBLE_FORMAT],
736  [AC_REQUIRE([AC_PROG_CC])
737  AC_REQUIRE([AC_PROG_AWK])
738  AC_CACHE_CHECK([format of `double' floating point],
739 @@ -2089,7 +2091,7 @@
740  dnl
741  dnl  FIXME: Hopefully autoconf will do this extra itself one day.
742  
743 -AC_DEFUN(GMP_C_INLINE,
744 +AC_DEFUN([GMP_C_INLINE],
745  [AC_CACHE_CHECK([for inline], gmp_cv_c_inline,
746  [gmp_cv_c_inline=no
747  for i in inline __inline__ __inline; do
748 @@ -2129,7 +2131,7 @@
749  dnl  "yes" is used in the cache variable if plain "restrict" works, to make
750  dnl  the configure message look nicer.
751  
752 -AC_DEFUN(GMP_C_RESTRICT,
753 +AC_DEFUN([GMP_C_RESTRICT],
754  [AC_CACHE_CHECK([for restrict], gmp_cv_c_restrict,
755  [gmp_cv_c_restrict=no
756  for r in restrict __restrict__ __restrict; do
757 @@ -2178,7 +2180,7 @@
758  dnl  ulongs with bits=8*sizeof, so it's academic.  Strange systems can
759  dnl  always have the right values put in gmp-mparam.h explicitly.
760  
761 -AC_DEFUN(GMP_C_SIZES,
762 +AC_DEFUN([GMP_C_SIZES],
763  [BITS_PER_MP_LIMB=[`sed -n 's/^#define BITS_PER_MP_LIMB[       ][      ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source`]
764  if test -n "$BITS_PER_MP_LIMB" \
765     && grep "^#define BYTES_PER_MP_LIMB" $gmp_mparam_source >/dev/null; then : ;
766 @@ -2199,7 +2201,7 @@
767    fi
768  fi
769  AC_SUBST(BITS_PER_MP_LIMB)
770 -define([GMP_INCLUDE_GMP_H_BITS_PER_MP_LIMB],
771 +define([[GMP_INCLUDE_GMP_H_BITS_PER_MP_LIMB]],
772  [[#define __GMP_BITS_PER_MP_LIMB $BITS_PER_MP_LIMB
773  #define GMP_LIMB_BITS $BITS_PER_MP_LIMB]])
774  
775 @@ -2232,7 +2234,7 @@
776  dnl  or very likely by the setups for _PROTO in gmp.h.  On the other hand
777  dnl  this test is nice and direct, being what we're going to actually use.
778  
779 -AC_DEFUN(GMP_C_STDARG,
780 +AC_DEFUN([GMP_C_STDARG],
781  [AC_CACHE_CHECK([whether <stdarg.h> exists and works],
782                  gmp_cv_c_stdarg,
783  [AC_TRY_COMPILE(
784 @@ -2261,7 +2263,7 @@
785  dnl  available, and also to use gmp-impl.h for the conditionals detecting
786  dnl  compiler builtin alloca's.
787  
788 -AC_DEFUN(GMP_FUNC_ALLOCA,
789 +AC_DEFUN([GMP_FUNC_ALLOCA],
790  [AC_REQUIRE([GMP_HEADER_ALLOCA])
791  AC_CACHE_CHECK([for alloca (via gmp-impl.h)],
792                 gmp_cv_func_alloca,
793 @@ -2278,7 +2280,7 @@
794  fi
795  ])
796  
797 -AC_DEFUN(GMP_HEADER_ALLOCA,
798 +AC_DEFUN([GMP_HEADER_ALLOCA],
799  [# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
800  # for constant arguments.  Useless!
801  AC_CACHE_CHECK([for working alloca.h],
802 @@ -2299,7 +2301,7 @@
803  dnl  Decide what to do about --enable-alloca from the user.
804  dnl  This is a macro so it can require GMP_FUNC_ALLOCA.
805  
806 -AC_DEFUN(GMP_OPTION_ALLOCA,
807 +AC_DEFUN([GMP_OPTION_ALLOCA],
808  [AC_REQUIRE([GMP_FUNC_ALLOCA])
809  AC_CACHE_CHECK([how to allocate temporary memory],
810                 gmp_cv_option_alloca,
811 @@ -2355,7 +2357,7 @@
812  dnl
813  dnl  FIXME: Run a program to try this, when doing a native build.
814  
815 -AC_DEFUN(GMP_FUNC_SSCANF_WRITABLE_INPUT,
816 +AC_DEFUN([GMP_FUNC_SSCANF_WRITABLE_INPUT],
817  [AC_CACHE_CHECK([whether sscanf needs writable input],
818                   gmp_cv_func_sscanf_writable_input,
819  [case $host in
820 @@ -2391,7 +2393,7 @@
821  dnl  not sure which 2.0.x does which), but still puts the correct null
822  dnl  terminated result into the buffer.
823  
824 -AC_DEFUN(GMP_FUNC_VSNPRINTF,
825 +AC_DEFUN([GMP_FUNC_VSNPRINTF],
826  [AC_REQUIRE([GMP_C_STDARG])
827  AC_CHECK_FUNC(vsnprintf,
828                [gmp_vsnprintf_exists=yes],
829 @@ -2472,7 +2474,7 @@
830  dnl  ----------
831  dnl  Check whether gmp.h recognises the compiler as ANSI capable.
832  
833 -AC_DEFUN(GMP_H_ANSI,
834 +AC_DEFUN([GMP_H_ANSI],
835  [AC_REQUIRE([AC_PROG_CC_STDC])
836  case $ac_cv_prog_cc_stdc in
837    no)
838 @@ -2495,7 +2497,7 @@
839  dnl  If the compiler has an "inline" of some sort, check whether the
840  dnl  #ifdef's in gmp.h recognise it.
841  
842 -AC_DEFUN(GMP_H_EXTERN_INLINE,
843 +AC_DEFUN([GMP_H_EXTERN_INLINE],
844  [AC_REQUIRE([GMP_C_INLINE])
845  case $gmp_cv_c_inline in
846  no) ;;
847 @@ -2522,7 +2524,7 @@
848  dnl  Check whether the #ifdef's in gmp.h recognise when stdio.h has been
849  dnl  included to get FILE.
850  
851 -AC_DEFUN(GMP_H_HAVE_FILE,
852 +AC_DEFUN([GMP_H_HAVE_FILE],
853  [AC_TRY_COMPILE(
854  [#include <stdio.h>]
855  GMP_INCLUDE_GMP_H
856 @@ -2539,7 +2541,7 @@
857  dnl  Check whether the #ifdef's in gmp-impl.h recognise IEEE format and
858  dnl  endianness.
859  
860 -AC_DEFUN(GMP_IMPL_H_IEEE_FLOATS,
861 +AC_DEFUN([GMP_IMPL_H_IEEE_FLOATS],
862  [case $host in
863    vax*-*-*)
864      # not IEEE (neither D nor G formats are IEEE)