summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2011-04-18 16:20:35 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2011-04-18 16:20:35 +0000
commit466f0bc74e4d0bc006de70cbf19bd1786ba82377 (patch)
treeb2c73cb794136d0122d0ba451f65d61d10190d91
parent2cab4f9e24ea8220b04c11611e5ae734e8f650d2 (diff)
downloadmpfr-466f0bc74e4d0bc006de70cbf19bd1786ba82377.tar.gz
[acinclude.m4] Correction of problems triggering the warning
"warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body" with autoconf 2.68 (and some other minor corrections): * Fixed missing quoting in an AC_RUN_IFELSE. * Added an AC_LANG_SOURCE in another AC_RUN_IFELSE. [merged changesets r7071,7172,7631-7634 from the trunk] git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.0@7635 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--acinclude.m413
1 files changed, 7 insertions, 6 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 61aba0025..a02a9f9e3 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -241,7 +241,7 @@ fi
dnl Check if the chars '0' to '9' are consecutive values
AC_MSG_CHECKING([if charset has consecutive values])
-AC_RUN_IFELSE(AC_LANG_PROGRAM([[
+AC_RUN_IFELSE([AC_LANG_PROGRAM([[
char *number = "0123456789";
char *lower = "abcdefghijklmnopqrstuvwxyz";
char *upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
@@ -254,10 +254,10 @@ char *upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
if ( (*p)+1 != *(p+1) ) return 1;
for (p = (unsigned char*) upper, i = 0; i < 25; i++)
if ( (*p)+1 != *(p+1) ) return 1;
-]]), [AC_MSG_RESULT(yes)],[
+]])], [AC_MSG_RESULT(yes)],[
AC_MSG_RESULT(no)
AC_DEFINE(MPFR_NO_CONSECUTIVE_CHARSET,1,[Charset is not consecutive])
-], [AC_MSG_RESULT(can not test)])
+], [AC_MSG_RESULT(cannot test)])
dnl Must be checked with the LIBM
dnl but we don't want to add the LIBM to MPFR dependency.
@@ -349,14 +349,15 @@ AC_CACHE_CHECK([for TLS support], mpfr_cv_working_tls, [
saved_CPPFLAGS="$CPPFLAGS"
# The -I$srcdir is necessary when objdir is different from srcdir.
CPPFLAGS="$CPPFLAGS -I$srcdir"
-AC_RUN_IFELSE([
+AC_RUN_IFELSE([AC_LANG_SOURCE([[
#define MPFR_USE_THREAD_SAFE 1
#include "mpfr-thread.h"
MPFR_THREAD_ATTR int x = 17;
int main() {
return x != 17;
}
- ], [mpfr_cv_working_tls="yes"],
+ ]])],
+ [mpfr_cv_working_tls="yes"],
[AC_MSG_RESULT(no)
AC_MSG_ERROR([please configure with --disable-thread-safe])],
[mpfr_cv_working_tls="cannot test, assume yes"])
@@ -827,7 +828,7 @@ fi
MPFR_FUNC_GMP_PRINTF_SPEC([hhd], [char], [
#include <gmp.h>
],,
- [AC_DEFINE([NPRINTF_HH], 1, [gmp_printf cannot use 'hh' length modifier])])
+ [AC_DEFINE([NPRINTF_HH], 1, [gmp_printf cannot use `hh' length modifier])])
MPFR_FUNC_GMP_PRINTF_SPEC([lld], [long long int], [
#include <gmp.h>