Skip to content

Commit

Permalink
pal: Explicitly add libm to build
Browse files Browse the repository at this point in the history
Previously I was relying on SOFA to pull in libm despite PAL
using sin, cos etc. itself.
  • Loading branch information
timj committed Jun 28, 2012
1 parent b878eee commit ffd1008
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- component.xml. Generated from component.xml.in by configure. -->

<component id="pal" support="S">
<version>0.1.4</version>
<version>0.1.5</version>
<path>libraries/pal</path>
<description>Position Astronomy Library</description>
<abstract><p>
Expand Down
5 changes: 4 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script
AC_REVISION($Revision: 27534 $)

dnl Initialisation: package name and version number
AC_INIT(pal, 0.1.4, [email protected])
AC_INIT(pal, 0.1.5, [email protected])

dnl Require autoconf-2.50 at least
AC_PREREQ(2.50)
Expand All @@ -27,6 +27,9 @@ dnl copysign and isblank are a c99 feature
AC_CHECK_FUNCS(copysign)
AC_CHECK_FUNCS(isblank)

# Need the math library
AC_CHECK_LIB([m],[sin])

dnl Declare the build and use dependencies for this package
STAR_DECLARE_DEPENDENCIES(build, [sofa starutil])
STAR_DECLARE_DEPENDENCIES(link, [sofa starutil])
Expand Down
4 changes: 4 additions & 0 deletions pal.news
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ The Starlink Positional Astronomy Library (PAL) is a C implementation of the
SLALIB API. It is distributed under the GPL and uses the SOFA library wherever
possible.

V0.1.5

Explcitly look for libm rather than relying on SOFA to pull it in.

V0.1.4

Check for isblank() function and fall back if it is missing.
Expand Down

0 comments on commit ffd1008

Please sign in to comment.