r14847 - gnucash/trunk/macros - Add cross-compiling workaround to AC_TRY_RUN

Christian Stimming cstim at cvs.gnucash.org
Fri Sep 15 06:47:04 EDT 2006


Author: cstim
Date: 2006-09-15 06:47:02 -0400 (Fri, 15 Sep 2006)
New Revision: 14847
Trac: http://svn.gnucash.org/trac/changeset/14847

Modified:
   gnucash/trunk/macros/legacy_macros.m4
Log:
Add cross-compiling workaround to AC_TRY_RUN

Modified: gnucash/trunk/macros/legacy_macros.m4
===================================================================
--- gnucash/trunk/macros/legacy_macros.m4	2006-09-14 16:27:32 UTC (rev 14846)
+++ gnucash/trunk/macros/legacy_macros.m4	2006-09-15 10:47:02 UTC (rev 14847)
@@ -116,7 +116,18 @@
 }
 ],
         am_cv_scanf_lld=yes,
-        am_cv_scanf_lld=no))
+        am_cv_scanf_lld=no,[[
+	# When cross-compiling, simply insert known values here
+	case $host in
+	  *-*-mingw*)
+	    # For mingw we know the result
+	    am_cv_scanf_lld=no
+	    ;;
+	  *)
+	    AC_MSG_ERROR([scanf support unknown.])
+	    ;;
+	esac
+]]))
   if test $am_cv_scanf_lld = yes; then
     AC_DEFINE(HAVE_SCANF_LLD, 1,
       [Define if scanf supports %lld conversions.])
@@ -146,7 +157,18 @@
 }
 ],
         am_cv_scanf_qd=yes,
-        am_cv_scanf_qd=no))
+        am_cv_scanf_qd=no,[[
+	# When cross-compiling, simply insert known values here
+	case $host in
+	  *-*-mingw*)
+	    # For mingw we know the result
+	    am_cv_scanf_qd=no
+	    ;;
+	  *)
+	    AC_MSG_ERROR([scanf support unknown.])
+	    ;;
+	esac
+]]))
   if test $am_cv_scanf_qd = yes; then
     AC_DEFINE(HAVE_SCANF_QD, 1,
       [Define if scanf supports %qd conversions.])
@@ -176,7 +198,18 @@
 }
 ],
         am_cv_scanf_i64d=yes,
-        am_cv_scanf_i64d=no))
+        am_cv_scanf_i64d=no,[[
+	# When cross-compiling, simply insert known values here
+	case $host in
+	  *-*-mingw*)
+	    # For mingw we know the result
+	    am_cv_scanf_i64d=yes
+	    ;;
+	  *)
+	    AC_MSG_ERROR([scanf support unknown.])
+	    ;;
+	esac
+]]))
   if test $am_cv_scanf_i64d = yes; then
     AC_DEFINE(HAVE_SCANF_I64D, 1,
       [Define if scanf supports %I64d conversions.])



More information about the gnucash-changes mailing list