ulps: Fix long lines
[mathlib.git] / ulps / configure.ac
CommitLineData
3ec677ae 1# Process this file with autoconf to produce a configure script.
2
0921cdfd 3AC_PREREQ([2.59])
3ec677ae 4AC_INIT([ulp], [0.1], [ekamperi@gmail.com])
5AC_CONFIG_SRCDIR([gen.c])
6AC_CONFIG_HEADERS([config.h])
7
8# Checks for programs.
9AC_PROG_CC
10
11# This is for NetBSD (pkgsrc in general), otherwise AC_CHECK_LIB()
12# will fail to report an existing library as such, if it is located
13# in some non-standard path.
14LDFLAGS="$LDFLAGS -L/usr/pkg/lib"
15
16# And this is for Linux, FreeBSD and so on.
17LDFLAGS="$LDFLAGS -L/usr/local/lib"
18
19# Checks for libraries.
20AC_CHECK_LIB([m],[cos],,AC_MSG_ERROR(requires lm))
21AC_CHECK_LIB([mpfr],[mpfr_init],,AC_MSG_ERROR(requires mpfr))
22
23# Checks for header files.
24AC_CHECK_HEADERS([float.h stdlib.h string.h])
25
26# Checks for typedefs, structures, and compiler characteristics.
27AC_TYPE_SIZE_T
28
29# Checks for library functions.
75190056 30AC_CHECK_FUNCS([acos acosh asin asinh atan atanh atan2 cbrt ceil cos cosh erf])
637c5134 31AC_CHECK_FUNCS([erfc exp expm1 exp2 fabs floor fmod hypot j0 j1 lgamma log log1p])
0f45e0c8 32AC_CHECK_FUNCS([log10 log2 pow remainder rint round sin sinh sqrt tan tanh tgamma])
75190056 33AC_CHECK_FUNCS([trunc y0 y1 yn])
34
637c5134 35# j0l, j1l are extentions to the standard.
0f45e0c8 36# XXX: roundl
75190056 37AC_CHECK_FUNCS([acosl acoshl asinl asinhl atanl atanhl atan2l cbrtl ceill cosl])
38AC_CHECK_FUNCS([cosl coshl erfl erfcl expl exp2l expm1l fabsl floorl fmodl])
637c5134 39AC_CHECK_FUNCS([hypotl j0l j1l lgammal log10l log1pl log2l logbl logl])
0f45e0c8 40AC_CHECK_FUNCS([powl remainderl rintl roundl sinhl sinl sqrtl tanhl tanl tgammal truncl])
3ec677ae 41
5226af1e 42# Long double versions of complex arithmetic functions.
c67957e7 43AC_CHECK_FUNCS([cabs cacos cacosh carg casin casinh catan catanh ccos cexp clog])
926f69bd 44AC_CHECK_FUNCS([cpow cproj csin csinh csqrt ctan ccos conj])
5226af1e
SK
45
46AC_CHECK_FUNCS([cabsl cacoshl cacosl cargl casinhl casinl catanhl catanl])
47AC_CHECK_FUNCS([ccoshl ccosl cexpl cimagl clogl conjl cpowl cprojl creall])
48AC_CHECK_FUNCS([csinhl csinl csqrtl ctanhl ctanl])
49
3ec677ae 50AC_OUTPUT