package/python-simplejson: bump version to 3.8.2
[buildroot-gz.git] / package / iprutils / 0002-configure.ac-use-pow-instead-of-matherr-for-libm-che.patch
blobea7a683570ceeaf2a2619262976f52bd56b94c14
1 From 62a41abffa028a3a4c4ae0803d48c559a14e97f1 Mon Sep 17 00:00:00 2001
2 From: Bernd Kuhls <bernd.kuhls@t-online.de>
3 Date: Sun, 7 Feb 2016 13:54:10 +0100
4 Subject: [PATCH] configure.ac: use pow() instead of matherr() for libm check
6 In certain configurations of uClibc, the matherr() function may not be
7 provided by the C library, which makes the current configure.ac check
8 for libm fail. However, iprutils does not use matherr(), so using this
9 function for the test makes little sense.
11 This patch adjusts configure.ac to test for pow() instead, which is
12 actually used by iprutils, and more commonly available, including in
13 uClibc.
15 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
16 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
17 ---
18 configure.ac | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
21 diff --git a/configure.ac b/configure.ac
22 index c1a4f70..e430554 100644
23 --- a/configure.ac
24 +++ b/configure.ac
25 @@ -129,7 +129,7 @@ save_LIBS="$LIBS"
26 AC_CHECK_LIB([ncurses], [curses_version], [],
27 [AC_ERROR("libncurses not found.")])
28 AC_CHECK_LIB([form], [free_form], [], [AC_ERROR("libform not found.")])
29 -AC_CHECK_LIB([m], [matherr], [], [AC_ERROR("libm not found.")])
30 +AC_CHECK_LIB([m], [pow], [], [AC_ERROR("libm not found.")])
31 AC_CHECK_LIB([menu], [new_menu], [], [AC_ERROR("libmenu not found.")])
32 AC_CHECK_LIB([panel], [show_panel], [], [AC_ERROR("libpanel not found.")])
33 IPRCONFIG_LIBS="$LIBS"
34 --
35 2.6.4