From c32e0c23c06cb99eb7e54d80db30490b4c8bcace Mon Sep 17 00:00:00 2001 From: DRC Date: Sun, 11 Aug 2013 22:57:19 +0000 Subject: [PATCH] By default, install the libraries into /opt/libjpeg-turbo/lib32 on any 32-bit system, not just x86, and into /opt/libjpeg-turbo/lib64 on any 64-bit system, not just x86-64. In particular, this addresses an issue with building TurboVNC and VirtualGL on ARM systems. git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@999 632fc199-4ca6-4c93-a231-07263d6284db --- configure.ac | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index eb580fd..2777ad2 100644 --- a/configure.ac +++ b/configure.ac @@ -52,14 +52,12 @@ if test "x${libdir}" = 'x${exec_prefix}/lib' -o "x${libdir}" = 'x${prefix}/lib'; darwin*) ;; *) - case "$host_cpu" in - x86_64 | amd64) - libdir='${exec_prefix}/lib64' - ;; - i*86 | x86 | ia32) - libdir='${exec_prefix}/lib32' - ;; - esac + AC_CHECK_SIZEOF(long) + if test "${ac_cv_sizeof_long}" = "8"; then + libdir='${exec_prefix}/lib64' + elif test "${ac_cv_sizeof_long}" = "4"; then + libdir='${exec_prefix}/lib32' + fi ;; esac fi -- 2.40.0