Hi all, The following patch allows 'configure --build=x86_64-unknown-linux-gnu' to be used to build compiler executables that are 64-bit as documented in HOWTO-INSTALL-OPEN64. Several people ran into this issue when building on Fedora 16 64-bit where the system environment is set up to favor 64-bit development. (The workaround required running configure with both the --target and --host options; the --build option is supposed to set both of these.)
Could a gatekeeper please review the change? I will also plan to update the generated 'configure' script by running autoconf. -David Coakley / AMD Open Source Compiler Engineering Index: configure.ac =================================================================== --- configure.ac (revision 3857) +++ configure.ac (working copy) @@ -34,8 +34,7 @@ AC_PREREQ([2.59]) AC_INIT([opencc],[4.2]) -AC_CANONICAL_HOST -AC_CANONICAL_TARGET +AC_CANONICAL_BUILD #AC_PROG_CC #AC_PROG_CXX #AC_PROG_RANLIB @@ -44,16 +43,17 @@ # unless the user specifies otherwise, we default to 32 bit mode as the # default on x86 64 bit platforms. -if test "$host_alias" = "" && test "$host_cpu" = "x86_64"; then - host_cpu=i686 - host=$host_cpu-$host_vendor-$host_os +if test "$build_alias" = "" && test "$host_alias" = "" && test "$host_cpu" = "x86_64"; then + host_alias=i686-$host_vendor-$host_os fi -if test "$target_alias" = "" && test "$target_cpu" = "x86_64"; then - target_cpu=i686 - target=$target_cpu-$target_vendor-$target_os +if test "$build_alias" = "" && test "$target_alias" = "" && test "$target_cpu" = "x86_64"; then + target_alias=i686-$target_vendor-$target_os fi +AC_CANONICAL_HOST +AC_CANONICAL_TARGET + AC_ARG_WITH(build-compiler, [ --with-build-compiler=GNU|OSP Use GNU or OSP compilers in build], BUILD_COMPILER="$with_build_compiler", ------------------------------------------------------------------------------ RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 _______________________________________________ Open64-devel mailing list Open64-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open64-devel