Commit f38a14ca by Tristan Gingold Committed by Tristan Gingold

math.m4 (GCC_CHECK_MATH_FUNC): Remove if-present argument.

config/
2012-04-02  Tristan Gingold  <gingold@adacore.com>

	* math.m4 (GCC_CHECK_MATH_FUNC): Remove if-present
	argument.  Define the variable.

libgfortran/
2012-04-02  Tristan Gingold  <gingold@adacore.com>

	* configure.ac: Use new version of GCC_CHECK_MATH_FUNC.
	* configure: Regenerate
	* config.h.in: Regenerate.

From-SVN: r186063
parent 8b8c3450
2012-04-02 Tristan Gingold <gingold@adacore.com>
* math.m4 (GCC_CHECK_MATH_FUNC): Remove if-present
argument. Define the variable.
2012-03-26 Tristan Gingold <gingold@adacore.com> 2012-03-26 Tristan Gingold <gingold@adacore.com>
* math.m4: New file. * math.m4: New file.
......
...@@ -14,10 +14,10 @@ dnl functions). ...@@ -14,10 +14,10 @@ dnl functions).
AC_DEFUN([GCC_CHECK_MATH_HEADERS], AC_DEFUN([GCC_CHECK_MATH_HEADERS],
[AC_CHECK_HEADERS_ONCE(math.h complex.h)]) [AC_CHECK_HEADERS_ONCE(math.h complex.h)])
dnl GCC_CHECK_MATH_FUNC([name],[if-present]) dnl GCC_CHECK_MATH_FUNC([name])
dnl dnl
dnl Check whether math function NAME is available on the system (by compiling dnl Check whether math function NAME is available on the system (by compiling
dnl and linking a C program) and run if-present on success. dnl and linking a C program) and run define HAVE_name on success.
dnl dnl
dnl Note that OpenVMS system insists on including complex.h before math.h dnl Note that OpenVMS system insists on including complex.h before math.h
AC_DEFUN([GCC_CHECK_MATH_FUNC], AC_DEFUN([GCC_CHECK_MATH_FUNC],
...@@ -44,6 +44,7 @@ main () ...@@ -44,6 +44,7 @@ main ()
[gcc_cv_math_func_$1=yes], [gcc_cv_math_func_$1=yes],
[gcc_cv_math_func_$1=no])]) [gcc_cv_math_func_$1=no])])
if test $gcc_cv_math_func_$1 = yes; then if test $gcc_cv_math_func_$1 = yes; then
$2 AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_$1),[1],
[Define to 1 if you have the `$1' function.])
fi fi
]) ])
2012-04-02 Tristan Gingold <gingold@adacore.com>
* configure.ac: Use new version of GCC_CHECK_MATH_FUNC.
* configure: Regenerate
* config.h.in: Regenerate.
2012-03-30 Uros Bizjak <ubizjak@gmail.com> 2012-03-30 Uros Bizjak <ubizjak@gmail.com>
PR libgfortran/52758 PR libgfortran/52758
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment