Bug #7874 » 0001-Allow-setting-arch-name-in-.-configure.patch
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
|
||