移植
[root@mfr json-c-0.8]#tar –xzvf json-c-0.8.tar.gz
[root@mfr json-c-0.8]#cd json-c-0.8
[root@mfr json-c-0.8]#./configure CC= arm-unknown-linux-gnu-gcc –host=arm-unknown-linux –build=i686-pc-linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-unknown-linux-strip... no
---------应该是 arm-unknown-linux-gnu-strip
checking for strip... strip
configure: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.
If you think this
configuration is useful to you, please write to autoconf@gnu.org.
checking for style of include used by make... GNU
checking for arm-unknown-linux-gcc... arm-unknown-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-unknown-linux-gnu-gcc accepts -g... yes
checking for arm-unknown-linux-gnu-gcc option to accept ISO C89... none needed
checking dependency style of arm-unknown-linux-gnu-gcc... gcc3
checking how to run the C preprocessor... arm-unknown-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep