Use autoconf to link against the math library.

master
Christopher J. Morrone 2011-11-02 17:49:43 -07:00
parent 44dfa2d95c
commit 29457fac9f
2 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,8 @@ AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
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
AC_SYS_LARGEFILE

View File

@ -2,7 +2,7 @@ bin_PROGRAMS = ior
ior_SOURCES = ior.c utilities.c parse_options.c
ior_SOURCES += ior.h aiori.h iordef.h defaults.h
ior_LDADD = -lm
ior_LDADD =
if USE_POSIX_AIORI
ior_SOURCES += aiori-POSIX.c