File bb-fix-linking.patch of Package bb
--- bb.c.orig
+++ bb.c
@@ -21,10 +21,13 @@
* 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include "config.h"
+
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <aalib.h>
+#include <time.h>
#include "bb.h"
int finish_stuff, starttime, endtime;
--- configure.in.orig
+++ configure.in
@@ -3,8 +3,9 @@ AC_INIT(main.c)
AM_INIT_AUTOMAKE(bb, 1.3.0)
AM_CONFIG_HEADER(aconfig.h)
-use_cc_g_flag=no
-AC_PROG_CC
+AC_PROG_CC_STDC
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
AC_PROG_INSTALL
AC_HEADER_STDC
@@ -27,7 +28,7 @@ AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_SUBST(HAVE_MIKMOD)
AC_CHECK_FUNCS(ftime gettimeofday select strdup strstr strtol)
-
+AC_SEARCH_LIBS(sin, m)
dnl Check for AA-lib
AM_PATH_AALIB(1.4.0, , AC_MSG_ERROR([*** AALIB >= 1.4.0 not installed - please install first ***]))
CFLAGS="$CFLAGS $AALIB_CFLAGS"