Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2005:
[Freeciv-Dev] Re: (PR#13571) tolua and cross-compiling
Home

[Freeciv-Dev] Re: (PR#13571) tolua and cross-compiling

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: evyscr@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#13571) tolua and cross-compiling
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 2 Aug 2005 09:14:21 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13571 >

It occurred to me it might be possible to do it in one single configure 
but having multiple runs.  The attached patch is my attempt at this, but 
it doesn't work.

And now I see that it is impossible anyway.  Both the server and tolua 
rely on liblua.  So whatever arch liblua is built for the server and 
tolua must also be built for.  So the server and tolua must be built for 
the same architecture - unless we build two copies of liblua.

-jason


Index: configure.ac
===================================================================
RCS file: /home/freeciv/CVS/freeciv/configure.ac,v
retrieving revision 1.107
diff -p -u -r1.107 configure.ac
--- configure.ac        15 Jul 2005 16:03:18 -0000      1.107
+++ configure.ac        2 Aug 2005 16:12:05 -0000
@@ -679,7 +679,6 @@ AC_CONFIG_FILES([Makefile
          utility/ftwl/Makefile
          dependencies/Makefile
          dependencies/lua/Makefile
-         dependencies/tolua/Makefile
          dependencies/lua/src/Makefile
          dependencies/lua/src/lib/Makefile
          common/Makefile 
@@ -718,3 +717,13 @@ AC_CONFIG_FILES([civ:bootstrap/civ.in], 
 AC_CONFIG_FILES([ser:bootstrap/ser.in], [chmod +x ser])
 AC_CONFIG_COMMANDS([default],[[ chmod +x bootstrap/undep.sh ; 
bootstrap/undep.sh ]],[[]])
 AC_OUTPUT
+
+AC_CANONICAL_TARGET
+host_os="$build_os"
+target_os="$build_os"
+AC_PROG_CC
+AC_PROG_CPP
+AC_PROG_RANLIB
+AC_CHECK_TOOL(AR, ar)
+AC_CONFIG_FILES([dependencies/tolua/Makefile])
+AC_OUTPUT

[Prev in Thread] Current Thread [Next in Thread]