Ticket #11693: patch-config.diff

File patch-config.diff, 679 bytes (added by julian9@…, 17 years ago)
  • config

    old new  
    11# config file used for the Makefile only
    22
    3 # define to 1 to use Altivec instructions
    4 USE_ALTIVEC ?= 0
    5 
    6 # define to 1 to use SSE2 instructions
    7 USE_SSE ?= 0
     3export PROCESSOR = $(shell uname -p)
     4ifeq ($(PROCESSOR), powerpc)
     5    # define to 1 to use Altivec instructions
     6    USE_ALTIVEC ?= 1
     7    USE_SSE ?= 0
     8else
     9    # define to 1 to use SSE2 instructions
     10    USE_ALTIVEC ?= 0
     11    USE_SSE ?= 1
     12endif
    813
    914# default flags
    1015CXXFLAGS ?= -O2
     
    1823endif
    1924
    2025# where should we install to
    21 INSTALL_DIR ?= /usr/local
     26INSTALL_DIR ?= /opt/local
    2227