Use autoconf to link against the math library.
parent
44dfa2d95c
commit
29457fac9f
|
@ -27,6 +27,8 @@ AC_TYPE_SIZE_T
|
||||||
# Checks for library functions.
|
# Checks for library functions.
|
||||||
AC_FUNC_MALLOC
|
AC_FUNC_MALLOC
|
||||||
AC_CHECK_FUNCS([getpagesize gettimeofday memset mkdir pow putenv realpath regcomp sqrt strcasecmp strchr strerror strncasecmp strstr uname])
|
AC_CHECK_FUNCS([getpagesize gettimeofday memset mkdir pow putenv realpath regcomp sqrt strcasecmp strchr strerror strncasecmp strstr uname])
|
||||||
|
AC_SEARCH_LIBS([sqrt], [m], [],
|
||||||
|
[AC_MSG_ERROR([Math library not found])])
|
||||||
|
|
||||||
# Check for system capabilities
|
# Check for system capabilities
|
||||||
AC_SYS_LARGEFILE
|
AC_SYS_LARGEFILE
|
||||||
|
|
|
@ -2,7 +2,7 @@ bin_PROGRAMS = ior
|
||||||
|
|
||||||
ior_SOURCES = ior.c utilities.c parse_options.c
|
ior_SOURCES = ior.c utilities.c parse_options.c
|
||||||
ior_SOURCES += ior.h aiori.h iordef.h defaults.h
|
ior_SOURCES += ior.h aiori.h iordef.h defaults.h
|
||||||
ior_LDADD = -lm
|
ior_LDADD =
|
||||||
|
|
||||||
if USE_POSIX_AIORI
|
if USE_POSIX_AIORI
|
||||||
ior_SOURCES += aiori-POSIX.c
|
ior_SOURCES += aiori-POSIX.c
|
||||||
|
|
Loading…
Reference in New Issue