File bomberclone-0.11.9-libm.patch of Package bomberclone

Index: configure.in
===================================================================
--- configure.in.orig	2011-09-17 10:04:41.924941900 +0200
+++ configure.in	2011-09-17 10:13:43.970283272 +0200
@@ -77,16 +77,6 @@ else
 	AC_MSG_WARN(Enable Debuging)
 fi
 
-dnl All Warning are Errors ************************
-AC_ARG_ENABLE(werror, [  --disable-werror          Disable Warning as Error Treatment ])
-if test x$enable_werror = xno ; then
-	CFLAGS="$CFLAGS -Wall"
-	AC_MSG_WARN(Disable Warning as Error Treatment)
-else
-	CFLAGS="$CFLAGS -Wall -Werror"
-fi
-
-
 dnl SDL_image library *****************************
 AC_CHECK_LIB(SDL_image, IMG_LoadPNG_RW, , AC_MSG_ERROR([
 *** Unable to find SDL_image libary with PNG support
@@ -213,13 +203,20 @@ int i; float f; i = floorf (f);
 have_floorf=yes
 ])
 AC_MSG_RESULT($have_floorf)
-if test x$have_floorf = xno; then
-	AC_CHECK_LIB(m, floorf, have_floorf=yes, have_floorf=no , )
-fi
+AC_CHECK_LIB(m, floorf, [have_floorf=yes; LIBS="$LIBS -lm"], have_floorf=no , )
 if test x$have_floorf = xyes; then
     	AC_DEFINE(HAVE_FLOORF, [1], [if floorf is working here])
 fi
 
+dnl All Warning are Errors ************************
+AC_ARG_ENABLE(werror, [  --disable-werror          Disable Warning as Error Treatment ])
+if test x$enable_werror = xno ; then
+	CFLAGS="$CFLAGS -Wall"
+	AC_MSG_WARN(Disable Warning as Error Treatment)
+else
+	CFLAGS="$CFLAGS -Wall -Werror"
+fi
+
 
 dnl Checks for Additional stuffs.
 
openSUSE Build Service is sponsored by