From c437fd0700c1ab1bf63480d5f9a5180ccd8ce107 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 29 Aug 2005 13:11:00 +0000 Subject: [PATCH] Make it possible to cross-compile CLN. --- ChangeLog | 10 ++++++++++ autoconf/aclocal.m4 | 18 +++++++++++------- configure.ac | 4 ++-- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4f6c627..c88c375 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2005-08-27 Bruno Haible + + Make it possible to cross-compile CLN. + * m4/intparam.m4: New file. + * m4/floatparam.m4: New file. + * autoconf/aclocal.m4: Include both. + (CL_MACHINE): Add an additional CROSS_MACRO parameter. + * configure.ac (CL_MACHINE): When cross-compiling, use + CL_INTPARAM_CROSS and CL_FLOATPARAM_CROSS. + 2005-08-27 Bruno Haible Define HAVE_LONGLONG and HAVE_LONGDOUBLE when cross-compiling. diff --git a/autoconf/aclocal.m4 b/autoconf/aclocal.m4 index 3a2727b..ad086e1 100644 --- a/autoconf/aclocal.m4 +++ b/autoconf/aclocal.m4 @@ -11,6 +11,9 @@ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. +m4_include([intparam.m4]) +m4_include([floatparam.m4]) + dnl -*- Autoconf -*- dnl Copyright (C) 1993-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU @@ -543,7 +546,7 @@ fi ]) dnl -*- Autoconf -*- -dnl Copyright (C) 1993-2003 Free Software Foundation, Inc. +dnl Copyright (C) 1993-2005 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program @@ -554,14 +557,15 @@ dnl From Bruno Haible, Marcus Daniels, Sam Steingold. AC_PREREQ(2.13) +dnl CL_MACHINE([MESSAGE], [PROGRAM_TO_RUN], [CROSS_MACRO], [DESTINATION], [CACHE_VAR]) AC_DEFUN([CL_MACHINE], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_C_CHAR_UNSIGNED])dnl cl_machine_file_c=$2 -cl_machine_file_h=$3 -if test $cross_compiling = no; then -if test -z "$[$4]"; then +if test -z "$[$5]"; then AC_CHECKING(for [$1]) +if test $cross_compiling = no; then +cl_machine_file_h=$4 cat > conftest.$ac_ext <