Skip to content

Commit

Permalink
BUILD: Check for some non-standard math functions
Browse files Browse the repository at this point in the history
Namely fabs, fabsf, fmin, fminf, fmax, fmaxf
  • Loading branch information
DrMcCoy committed Mar 28, 2011
1 parent 847229c commit 7d7e9e5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
21 changes: 21 additions & 0 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,24 @@
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H

/* Define to 1 if you have the `fabs' function. */
#undef HAVE_FABS

/* Define to 1 if you have the `fabsf' function. */
#undef HAVE_FABSF

/* Define to 1 if you have the `fmax' function. */
#undef HAVE_FMAX

/* Define to 1 if you have the `fmaxf' function. */
#undef HAVE_FMAXF

/* Define to 1 if you have the `fmin' function. */
#undef HAVE_FMIN

/* Define to 1 if you have the `fminf' function. */
#undef HAVE_FMINF

/* Define to 1 if you have the <GL/glu.h> header file. */
#undef HAVE_GL_GLU_H

Expand All @@ -51,6 +69,9 @@
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H

/* Define to 1 if you have the `m' library (-lm). */
#undef HAVE_LIBM

/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H

Expand Down
8 changes: 8 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ if test "x$with_werror" = "xyes"; then
WERROR="-Werror"
fi

AC_CHECK_LIB([m], [cos])
AC_CHECK_FUNCS([fabs])
AC_CHECK_FUNCS([fmin])
AC_CHECK_FUNCS([fmax])
AC_CHECK_FUNCS([fabsf])
AC_CHECK_FUNCS([fminf])
AC_CHECK_FUNCS([fmaxf])

AC_CHECK_PROG([SDL_CONFIG], [sdl-config], [sdl-config])

if test -n "$SDL_CONFIG"; then
Expand Down

0 comments on commit 7d7e9e5

Please sign in to comment.