1AC_DEFUN([FLA_OBSERVE_HOST_CPU_TYPE], 2[ 3 AC_REQUIRE([AC_CANONICAL_HOST]) 4 5 case $host in 6 dnl Intel Pentium-based class of processors, as well as those processors 7 dnl such as AMD Athlons, Durons, etc that fall under the i?86 family. 8 i386*-*-* | i586*-*-* | i686*-*-*) 9 fla_host_cpu=$host_cpu 10 fla_c_compiler_list="gcc icc cc" 11 fla_mpicc_compiler_list="mpicc" 12 fla_ar=ar 13 fla_ranlib=ranlib 14 ;; 15 dnl Intel EM64T or AMD Opteron/Athlon64 processors. 16 x86_64*-*-*) 17 fla_host_cpu=$host_cpu 18 fla_c_compiler_list="gcc icc pathcc cc" 19 fla_mpicc_compiler_list="mpicc" 20 fla_ar=ar 21 fla_ranlib=ranlib 22 ;; 23 dnl Intel Itanium processors. 24 ia64*-*-*) 25 fla_host_cpu=$host_cpu 26 fla_c_compiler_list="icc gcc cc" 27 fla_mpicc_compiler_list="mpicc" 28 fla_ar=ar 29 fla_ranlib=ranlib 30 ;; 31 dnl NEC SX systems. 32 sx*-nec-superux*) 33 fla_host_cpu=$host_cpu 34 fla_c_compiler_list="sxcc" 35 fla_mpicc_compiler_list="mpicc" 36 fla_ar=sxar 37 fla_ranlib=ranlib 38 ;; 39 dnl IBM POWER/AIX systems. 40 powerpc*-ibm-aix*) 41 fla_host_cpu=$host_cpu 42 fla_c_compiler_list="xlc" 43 fla_mpicc_compiler_list="mpcc mpicc" 44 fla_ar=ar 45 fla_ranlib=ranlib 46 ;; 47 dnl PowerPC/Cell systems. 48 powerpc64-*-linux-gnu) 49 if test "$fla_enable_cell_spu_parallelism" = "yes" ; then 50 fla_host_cpu=$host_cpu 51 fla_c_compiler_list="ppu-gcc" 52 fla_mpicc_compiler_list="mpicc" 53 fla_ar=ppu-ar 54 fla_ranlib=ppu-ranlib 55 else 56 fla_host_cpu=$host_cpu 57 fla_c_compiler_list="gcc xlc" 58 fla_mpicc_compiler_list="mpicc" 59 fla_ar=ar 60 fla_ranlib=ranlib 61 fi 62 ;; 63 dnl For all other proessors, use a basic search path. 64 *) 65 fla_host_cpu=$host_cpu 66 fla_c_compiler_list="gcc cc" 67 fla_mpicc_compiler_list="mpicc" 68 fla_ar=ar 69 fla_ranlib=ranlib 70 ;; 71 esac 72 73 dnl Substitute the cpu type into the autoconf output files 74 AC_SUBST(fla_host_cpu) 75 76]) 77