tcpdump mailing list archives

Patch for libpcap : improve cross compile support for configure script


From: Erik de Castro Lopo <erikd+tcpdump () sensorynetworks com>
Date: Tue, 6 Jan 2004 13:41:28 +1100

Hi all,

I'm currently working on fixing the libpcap configure script 
so that it has a better chance of working in at least some
cross-compiling situations.

The patch below fixes the AC_LBL_UNALIGNED_ACCESS macro so that 
it will work correctly when cross compiling and the target CPU 
is in the list where unaligned access are known to fail 
(ie alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)

Cheers,
Erik

diff -u -r1.83 aclocal.m4
--- aclocal.m4  16 Nov 2003 09:45:31 -0000      1.83
+++ aclocal.m4  6 Jan 2004 02:40:47 -0000
@@ -587,7 +587,7 @@
 AC_DEFUN(AC_LBL_UNALIGNED_ACCESS,
     [AC_MSG_CHECKING(if unaligned accesses fail)
     AC_CACHE_VAL(ac_cv_lbl_unaligned_fail,
-       [case "$host_cpu" in
+       [case "$target_cpu" in
 
        #
        # These are CPU types where:

-- 
------------------------------------------------------
[N] Erik de Castro Lopo, Senior Computer Engineer
[E] erik.de.castro.lopo () sensorynetworks com
[W] http://www.sensorynetworks.com
[T] +61 2 83022726 
[F] +61 2 94750316 
[A] L4/140 William St, East Sydney NSW 2011, Australia
------------------------------------------------------
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe


Current thread: