PATCH: Fix cross compile support in libgui.
Mo DeJong
mdejong@cygnus.com
Fri Aug 3 17:06:00 GMT 2001
Hi all.
This will fix cross compiling for libgui by using
the cross version of AR when building libgui.
cheers
Mo
2001-08-03 Mo DeJong <mdejong@redhat.com>
* configure: Regen.
* configure.in: Check for cross AR using the
AC_CHECK_TOOL macro to fix cross compile. Use
AC_CHECK_TOOL instead of AC_PROG_RANLIB for
ranlib. The ranlib change is not required
but it is more correct. Move the call to
AC_CANONICAL_HOST up in the file.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/libgui/configure.in,v
retrieving revision 1.4
diff -u -r1.4 configure.in
--- configure.in 2001/08/02 21:48:17 1.4
+++ configure.in 2001/08/03 23:58:52
@@ -4,6 +4,7 @@
AM_INIT_AUTOMAKE(libgui, 0.0)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
+AC_CANONICAL_HOST
AC_PROG_CC
AC_EXEEXT
AC_OBJEXT
@@ -11,7 +12,8 @@
[ --enable-install-libgui Install libgui.a and library header files])
AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes)
AM_CONDITIONAL(INSTALL_LIBGUI, test x$enable_install_libgui = xyes)
-AC_PROG_RANLIB
+AC_CHECK_TOOL(RANLIB, ranlib, :)
+AC_CHECK_TOOL(AR, ar, :)
AC_FUNC_ALLOCA
AC_HAVE_HEADERS(stddef.h stdlib.h getopt.h unistd.h fcntl.h sys/file.h sys/wait.h string.h strings.h)
@@ -99,7 +101,6 @@
CYG_AC_LOAD_ITCLCONFIG
dnl what is the path to itclsh?
-AC_CANONICAL_HOST
case ${host} in
*cygwin*)
ITCL_DIR=itcl/itcl/win
More information about the Insight
mailing list