64-bit FreeBSD sets host_cpu to "amd64", not "x86_64". Handle that case so that configure will work without explicitly specifying --host.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@190 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
DRC 2010-05-17 20:47:57 +00:00
Родитель 991c2fcae7
Коммит 49597877a4
4 изменённых файлов: 13 добавлений и 17 удалений

Просмотреть файл

@ -35,9 +35,9 @@ Build Requirements
Building libjpeg-turbo
======================
The following procedure will build libjpeg-turbo on Linux, 32-bit OS X, and
Solaris/x86 systems (on Solaris, this generates a 32-bit library. See below
for 64-bit build instructions.)
The following procedure will build libjpeg-turbo on Linux, FreeBSD, 32-bit
OS X, and Solaris/x86 systems (on Solaris, this generates a 32-bit library.
See below for 64-bit build instructions.)
cd libjpeg-turbo
autoreconf -fiv
@ -163,17 +163,6 @@ Add
to the configure command line.
64-bit Library Build on 64-bit FreeBSD
--------------------------------------
Add
--host x86_64-unknown-freebsd
to the configure command line. NASM 2.07 or later from FreeBSD ports must be
installed.
32-bit Library Build on 64-bit FreeBSD
--------------------------------------

Просмотреть файл

@ -1,3 +1,10 @@
Significant changes since 0.0.93
================================
[1] Further FreeBSD build tweaks (no longer necessary to specify --host
when configuring on a 64-bit system)
Significant changes since 0.0.91
================================

Просмотреть файл

@ -45,7 +45,7 @@ case "$host_os" in
objfmt='BSD-a.out'
else
case "$host_cpu" in
x86_64)
x86_64 | amd64)
objfmt='ELF64'
;;
*)

Просмотреть файл

@ -133,7 +133,7 @@ if test "x${with_simd}" != "xno"; then
# Check if we're on a supported CPU
AC_MSG_CHECKING([if we have SIMD optimisations for cpu type])
case "$host_cpu" in
x86_64)
x86_64 | amd64)
AC_MSG_RESULT([yes (x86_64)])
AC_PROG_NASM
simd_arch=x86_64
@ -157,7 +157,7 @@ fi
AM_CONDITIONAL([WITH_SIMD], [test "x$with_simd" != "xno"])
AM_CONDITIONAL([SIMD_I386], [test "x$simd_arch" = "xi386"])
AM_CONDITIONAL([SIMD_X86_64], [test "x$simd_arch" = "xx86_64"])
AM_CONDITIONAL([X86_64], [test "x$host_cpu" = "xx86_64"])
AM_CONDITIONAL([X86_64], [test "x$host_cpu" = "xx86_64" -o "x$host_cpu" = "xamd64"])
case "$host_cpu" in
x86_64)