Project

General

Profile

Bug #7874 » 0001-Allow-setting-arch-name-in-.-configure.patch

terceiro (Antonio Terceiro), 02/18/2013 03:57 AM

View differences:

configure.in
AS_HELP_STRING([--enable-multiarch], [enable multiarch compatible directories]),
[multiarch=], [unset multiarch])
AC_ARG_WITH(multiarchname,
AS_HELP_STRING([--with-multiarchname], [sets architecture name for multiarch]))
archlibdir='${libdir}/${arch}'
sitearchlibdir='${libdir}/${sitearch}'
archincludedir='${includedir}/${arch}'
......
AC_DEFINE_UNQUOTED(RUBY_ARCH, "universal-"RUBY_PLATFORM_OS !<verconf>!)
AC_DEFINE_UNQUOTED(RUBY_PLATFORM, "universal."RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS !<verconf>!)
else
arch="${target_cpu}-${target_os}"
if test -z "${with_multiarchname}"; then
arch="${target_cpu}-${target_os}"
else
arch="${with_multiarchname}"
fi
AC_DEFINE_UNQUOTED(RUBY_PLATFORM, "${arch}" !<verconf>!)
fi
(1-1/3)