On Wed, Jan 21, 2009 at 03:51:40PM +0200, Ryan McDougall wrote: > I have found the existence of the following kind of code in configure.ac > # [AC_RUN_IFELSE([AC_LANG_PROGRAM(
Good ol' "AC_RUN_IFELSE" ... As some background, this tries to compile and run a program at configure time. In a cross-compiled environment compiling and linking is OK, but running compiled programs doesn't work in general. There are several approaches which will work instead: (1) Find out if Windows has this feature [in this case: no] and hard code it before running the configure script. Something like this: ac_cv_have_abstract_sockets=no ./configure (2) Modify configure.ac to provide a pessimistic default when $cross_compiling = yes. (3) Rewrite the test so it only requires a compile-time check. In general avoid using AC_RUN_IFELSE. Instead only use AC_COMPILE_IFELSE or AC_LINK_IFELSE. [In some cases, including this one, compile-time checks aren't possible] (4) Look for a macro which performs the test in one of the autoconf macro libraries (eg. http://autoconf-archive.cryp.to/macros-by-category.html) Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/ _______________________________________________ fedora-mingw mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw
