< prev index next >

make/autoconf/build-aux/config.guess

Print this page




  46   OUT=$REAL_CPU`echo $OUT | sed -e 's/[^-]*//'`
  47 fi
  48 
  49 # Test and fix cygwin on x86_64
  50 echo $OUT | grep 86-pc-cygwin > /dev/null 2> /dev/null
  51 if test $? != 0; then
  52   echo $OUT | grep 86-pc-mingw > /dev/null 2> /dev/null
  53 fi
  54 if test $? = 0; then
  55   case `echo $PROCESSOR_IDENTIFIER | cut -f1 -d' '` in
  56     intel64|Intel64|INTEL64|em64t|EM64T|amd64|AMD64|8664|x86_64)
  57       REAL_CPU=x86_64
  58       OUT=$REAL_CPU`echo $OUT | sed -e 's/[^-]*//'`
  59       ;;
  60   esac
  61 fi
  62 
  63 # Test and fix wsl
  64 echo $OUT | grep x86_64-unknown-linux-gnu > /dev/null 2> /dev/null
  65 if test $? = 0; then
  66   uname -r | grep -i microsoft > /dev/null 2> /dev/null
  67   if test $? = 0; then
  68     OUT="x86_64-pc-wsl"
  69   fi
  70 fi
  71 
  72 # Test and fix architecture string on AIX
  73 # On AIX 'config.guess' returns 'powerpc' as architecture but 'powerpc' is
  74 # implicitely handled as 32-bit architecture in 'platform.m4' so we check
  75 # for the kernel mode rewrite it to 'powerpc64' if we'Re running in 64-bit mode.
  76 # The check could also be done with `/usr/sbin/prtconf | grep "Kernel Type" | grep "64-bit"`
  77 echo $OUT | grep powerpc-ibm-aix > /dev/null 2> /dev/null
  78 if test $? = 0; then
  79   if [ -x /bin/getconf ] ; then
  80     KERNEL_BITMODE=`getconf KERNEL_BITMODE`
  81     if  [ "$KERNEL_BITMODE" = "32" ]; then
  82       KERNEL_BITMODE=""
  83     fi
  84   fi
  85   OUT=powerpc$KERNEL_BITMODE`echo $OUT | sed -e 's/[^-]*//'`
  86 fi




  46   OUT=$REAL_CPU`echo $OUT | sed -e 's/[^-]*//'`
  47 fi
  48 
  49 # Test and fix cygwin on x86_64
  50 echo $OUT | grep 86-pc-cygwin > /dev/null 2> /dev/null
  51 if test $? != 0; then
  52   echo $OUT | grep 86-pc-mingw > /dev/null 2> /dev/null
  53 fi
  54 if test $? = 0; then
  55   case `echo $PROCESSOR_IDENTIFIER | cut -f1 -d' '` in
  56     intel64|Intel64|INTEL64|em64t|EM64T|amd64|AMD64|8664|x86_64)
  57       REAL_CPU=x86_64
  58       OUT=$REAL_CPU`echo $OUT | sed -e 's/[^-]*//'`
  59       ;;
  60   esac
  61 fi
  62 
  63 # Test and fix wsl
  64 echo $OUT | grep x86_64-unknown-linux-gnu > /dev/null 2> /dev/null
  65 if test $? = 0; then
  66   uname -r | grep Microsoft > /dev/null 2> /dev/null
  67   if test $? = 0; then
  68     OUT="x86_64-pc-wsl"
  69   fi
  70 fi
  71 
  72 # Test and fix architecture string on AIX
  73 # On AIX 'config.guess' returns 'powerpc' as architecture but 'powerpc' is
  74 # implicitely handled as 32-bit architecture in 'platform.m4' so we check
  75 # for the kernel mode rewrite it to 'powerpc64' if we'Re running in 64-bit mode.
  76 # The check could also be done with `/usr/sbin/prtconf | grep "Kernel Type" | grep "64-bit"`
  77 echo $OUT | grep powerpc-ibm-aix > /dev/null 2> /dev/null
  78 if test $? = 0; then
  79   if [ -x /bin/getconf ] ; then
  80     KERNEL_BITMODE=`getconf KERNEL_BITMODE`
  81     if  [ "$KERNEL_BITMODE" = "32" ]; then
  82       KERNEL_BITMODE=""
  83     fi
  84   fi
  85   OUT=powerpc$KERNEL_BITMODE`echo $OUT | sed -e 's/[^-]*//'`
  86 fi


< prev index next >