texlive[55198] check -lm for erf, not sqrt
commits+karl at tug.org
commits+karl at tug.org
Mon May 18 19:56:12 CEST 2020
Revision: 55198
http://tug.org/svn/texlive?view=revision&revision=55198
Author: karl
Date: 2020-05-18 19:56:12 +0200 (Mon, 18 May 2020)
Log Message:
-----------
check -lm for erf, not sqrt
Modified Paths:
--------------
trunk/Build/source/libs/cairo/ChangeLog
trunk/Build/source/libs/cairo/configure
trunk/Build/source/libs/cairo/configure.ac
trunk/Build/source/utils/pmx/ChangeLog
trunk/Build/source/utils/pmx/configure
trunk/Build/source/utils/pmx/configure.ac
Property Changed:
----------------
trunk/Build/source/libs/cairo/configure.ac
trunk/Build/source/utils/pmx/configure.ac
Modified: trunk/Build/source/libs/cairo/ChangeLog
===================================================================
--- trunk/Build/source/libs/cairo/ChangeLog 2020-05-18 10:44:36 UTC (rev 55197)
+++ trunk/Build/source/libs/cairo/ChangeLog 2020-05-18 17:56:12 UTC (rev 55198)
@@ -1,3 +1,9 @@
+2020-05-18 Karl Berry <karl at freefriends.org>
+
+ * configure.ac ([m]): check for erf, not sqrt; the latter may
+ be implemented in hardware, so that -lm is wrongly concluded to be
+ unnecessary. E.g., on Solaris. Report from Nelson Beebe.
+
2019-01-09 Luigi Scarso <luigi.scarso at gmail.com>
* configure.ac: Enable pdf surface.
Modified: trunk/Build/source/libs/cairo/configure
===================================================================
--- trunk/Build/source/libs/cairo/configure 2020-05-18 10:44:36 UTC (rev 55197)
+++ trunk/Build/source/libs/cairo/configure 2020-05-18 17:56:12 UTC (rev 55198)
@@ -5995,9 +5995,9 @@
build_FALSE=
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
-$as_echo_n "checking for library containing sqrt... " >&6; }
-if ${ac_cv_search_sqrt+:} false; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing erf" >&5
+$as_echo_n "checking for library containing erf... " >&6; }
+if ${ac_cv_search_erf+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_func_search_save_LIBS=$LIBS
@@ -6010,11 +6010,11 @@
#ifdef __cplusplus
extern "C"
#endif
-char sqrt ();
+char erf ();
int
main ()
{
-return sqrt ();
+return erf ();
;
return 0;
}
@@ -6027,25 +6027,25 @@
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_search_sqrt=$ac_res
+ ac_cv_search_erf=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
- if ${ac_cv_search_sqrt+:} false; then :
+ if ${ac_cv_search_erf+:} false; then :
break
fi
done
-if ${ac_cv_search_sqrt+:} false; then :
+if ${ac_cv_search_erf+:} false; then :
else
- ac_cv_search_sqrt=no
+ ac_cv_search_erf=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
-$as_echo "$ac_cv_search_sqrt" >&6; }
-ac_res=$ac_cv_search_sqrt
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_erf" >&5
+$as_echo "$ac_cv_search_erf" >&6; }
+ac_res=$ac_cv_search_erf
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Modified: trunk/Build/source/libs/cairo/configure.ac
===================================================================
--- trunk/Build/source/libs/cairo/configure.ac 2020-05-18 10:44:36 UTC (rev 55197)
+++ trunk/Build/source/libs/cairo/configure.ac 2020-05-18 17:56:12 UTC (rev 55198)
@@ -1,6 +1,8 @@
+dnl $Id$
dnl Process this file with autoconf to produce a configure script.
dnl
-dnl Copyright (C) 2012-2014 Peter Breitenlohner <tex-live at tug.org>
+dnl Copyright 2015-2020 Karl Berry <tex-live at tug.org>
+dnl Copyright 2012-2015 Peter Breitenlohner <tex-live at tug.org>
dnl
dnl This file is free software; the copyright holder
dnl gives unlimited permission to copy and/or distribute it,
@@ -45,7 +47,7 @@
AC_CONFIG_HEADERS([config.h cairo-features.h])
AM_CONDITIONAL([build], [test "x$enable_build" != xno])
-AC_SEARCH_LIBS([sqrt], [m])
+AC_SEARCH_LIBS([erf], [m])
CAIRO_FEATURES([dnl
[0, [fc font]],
Property changes on: trunk/Build/source/libs/cairo/configure.ac
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Date Author Id Revision
\ No newline at end of property
Modified: trunk/Build/source/utils/pmx/ChangeLog
===================================================================
--- trunk/Build/source/utils/pmx/ChangeLog 2020-05-18 10:44:36 UTC (rev 55197)
+++ trunk/Build/source/utils/pmx/ChangeLog 2020-05-18 17:56:12 UTC (rev 55198)
@@ -1,3 +1,9 @@
+2020-05-18 Karl Berry <karl at freefriends.org>
+
+ * configure.ac ([m]): check for erf, not sqrt; the latter may
+ be implemented in hardware, so that -lm is wrongly concluded to be
+ unnecessary. E.g., on Solaris. Report from Nelson Beebe.
+
2020-02-07 Akira Kakuto <kakuto at w32tex.org>
* Import pmx 2.9.4.
Modified: trunk/Build/source/utils/pmx/configure
===================================================================
--- trunk/Build/source/utils/pmx/configure 2020-05-18 10:44:36 UTC (rev 55197)
+++ trunk/Build/source/utils/pmx/configure 2020-05-18 17:56:12 UTC (rev 55198)
@@ -4890,9 +4890,9 @@
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
-$as_echo_n "checking for library containing sqrt... " >&6; }
-if ${ac_cv_search_sqrt+:} false; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing erf" >&5
+$as_echo_n "checking for library containing erf... " >&6; }
+if ${ac_cv_search_erf+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_func_search_save_LIBS=$LIBS
@@ -4905,11 +4905,11 @@
#ifdef __cplusplus
extern "C"
#endif
-char sqrt ();
+char erf ();
int
main ()
{
-return sqrt ();
+return erf ();
;
return 0;
}
@@ -4922,25 +4922,25 @@
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_search_sqrt=$ac_res
+ ac_cv_search_erf=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
- if ${ac_cv_search_sqrt+:} false; then :
+ if ${ac_cv_search_erf+:} false; then :
break
fi
done
-if ${ac_cv_search_sqrt+:} false; then :
+if ${ac_cv_search_erf+:} false; then :
else
- ac_cv_search_sqrt=no
+ ac_cv_search_erf=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
-$as_echo "$ac_cv_search_sqrt" >&6; }
-ac_res=$ac_cv_search_sqrt
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_erf" >&5
+$as_echo "$ac_cv_search_erf" >&6; }
+ac_res=$ac_cv_search_erf
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Modified: trunk/Build/source/utils/pmx/configure.ac
===================================================================
--- trunk/Build/source/utils/pmx/configure.ac 2020-05-18 10:44:36 UTC (rev 55197)
+++ trunk/Build/source/utils/pmx/configure.ac 2020-05-18 17:56:12 UTC (rev 55198)
@@ -1,6 +1,8 @@
+dnl $Id$
dnl Process this file with autoconf to produce a configure script.
dnl
-dnl Copyright (C) 2012-2014 Peter Breitenlohner <tex-live at tug.org>
+dnl Copyright 2015-2020 Karl Berry <tex-live at tug.org>
+dnl Copyright 2012-2015 Peter Breitenlohner <tex-live at tug.org>
dnl
dnl This file is free software; the copyright holder
dnl gives unlimited permission to copy and/or distribute it,
@@ -33,7 +35,7 @@
AC_PROG_MAKE_SET
AC_PROG_RANLIB
-AC_SEARCH_LIBS([sqrt], [m])
+AC_SEARCH_LIBS([erf], [m])
AC_CHECK_SIZEOF([long long])
if test $ac_cv_sizeof_long_long -lt 8; then
Property changes on: trunk/Build/source/utils/pmx/configure.ac
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Date Author Id Revision
\ No newline at end of property
More information about the tex-live-commits
mailing list.