[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 3 of 4 v2] build: detect is libiconv is present
2011/12/21 Jean Guyader <jean.guyader@xxxxxxxxx>: > That doesn't work if you do cross compilation, your libraries could > located in a completely different path. > > The best way to check for the presence of a library (and this is how > the autotools do it) is to generate a very simple C program that uses > some iconv functions and try to compile it with the currently > configured compiler. If the compilation succeeded that means the > library is present. I'm not sure this is easy to implement without much fuss, given the way Xen checks for configuration options. What about this: CONFIG_LIBICONV := $(shell export OS="`uname -s`"; \ export CHECK_LIB="$(CHECK_LIB)"; \ . $(XEN_ROOT)/tools/check/funcs.sh; \ has_lib libiconv.so && echo 'y' || echo 'n') _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |