Source: mysql++
Version: 3.2.2+pristine-2
Tags: patch upstream
User: [email protected]
Usertags: rebootstrap

mysql++ fails to cross build from source, because it cannot be built
without localtime_r and it fails finding localtime_r with AC_TRY_RUN.
For checking that function, AC_TRY_COMPILE is sufficient. The attached
patch should fix that, but I couldn't test it, because mysql++ fails to
autoreconf. Hope it works. Please consider applying it. Also consider
building from source.

Helmut
--- mysql++-3.2.2+pristine.orig/config/localtime_r.m4
+++ mysql++-3.2.2+pristine/config/localtime_r.m4
@@ -9,16 +9,11 @@
 [
 	AC_MSG_CHECKING([for localtime_r()])
 
-	AC_TRY_RUN([
-		#include <time.h>
-		int main(void)
-		{
+	AC_TRY_COMPILE([#include <time.h>],[
 			time_t tt;
 			struct tm stm;
 			localtime_r(&tt, &stm);
-			return 0;
-		}
-	], [localtime_r_found=yes], [localtime_r_found=no], [localtime_r_found=no])
+	], [localtime_r_found=yes], [localtime_r_found=no])
 
 	AC_MSG_RESULT([$localtime_r_found])
 	if test x"$localtime_r_found" = xyes

Reply via email to