Module: xenomai-2.5 Branch: master Commit: 66f78f87e3120b3a9a04d74604bb7745e15c4f05 URL: http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=66f78f87e3120b3a9a04d74604bb7745e15c4f05
Author: Philippe Gerum <r...@xenomai.org> Date: Sun Jan 10 12:43:36 2010 +0100 powerpc: improve platform detection with --enable-linux-build --- configure | 9 ++++++--- configure.in | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 1653b96..f2d4d04 100755 --- a/configure +++ b/configure @@ -15488,9 +15488,12 @@ _LT_EOF . $XENO_LINUX_SRCDIR/.config test x"$CONFIG_ARM" = xy && cfg_arch=arm || : test x"$CONFIG_BLACKFIN" = xy && cfg_arch=blackfin || : - test x"$CONFIG_PPC" = xy && cfg_arch=ppc || : - test x"$CONFIG_PPC64" = xy && cfg_arch=ppc64 || : - test x"$CONFIG_PPC_MERGE" = xy && cfg_arch=powerpc || : + if test x"$CONFIG_PPC" = xy; then + cfg_arch=ppc + test x"$CONFIG_PPC_MERGE" = xy && cfg_arch=powerpc || : + test x"$CONFIG_WORD_SIZE" = x32 && cfg_arch=powerpc || : + test x"$CONFIG_WORD_SIZE" = x64 && cfg_arch=powerpc || : + fi test x"$CONFIG_X86" = xy && cfg_arch=i386 || : test x"$CONFIG_X86_64" = xy && cfg_arch=x86_64 || : test x"$CONFIG_NIOS2" = xy && cfg_arch=nios2 || : diff --git a/configure.in b/configure.in index 12fde20..3b41d73 100644 --- a/configure.in +++ b/configure.in @@ -493,9 +493,12 @@ patch. Default is to infer the patch name from Linux kernel version.]), . $XENO_LINUX_SRCDIR/.config test x"$CONFIG_ARM" = xy && cfg_arch=arm || : test x"$CONFIG_BLACKFIN" = xy && cfg_arch=blackfin || : - test x"$CONFIG_PPC" = xy && cfg_arch=ppc || : - test x"$CONFIG_PPC64" = xy && cfg_arch=ppc64 || : - test x"$CONFIG_PPC_MERGE" = xy && cfg_arch=powerpc || : + if test x"$CONFIG_PPC" = xy; then + cfg_arch=ppc + test x"$CONFIG_PPC_MERGE" = xy && cfg_arch=powerpc || : + test x"$CONFIG_WORD_SIZE" = x32 && cfg_arch=powerpc || : + test x"$CONFIG_WORD_SIZE" = x64 && cfg_arch=powerpc || : + fi test x"$CONFIG_X86" = xy && cfg_arch=i386 || : test x"$CONFIG_X86_64" = xy && cfg_arch=x86_64 || : test x"$CONFIG_NIOS2" = xy && cfg_arch=nios2 || : _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git