aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorJason Woodward2005-07-07 06:17:22 +0000
committerJason Woodward2005-07-07 06:17:22 +0000
commit49667e8227212a8f3855081edf4e2807be72c27c (patch)
tree2985ea99728f9c8e30d27b60847bf3a8584aca51 /configure.in
parentb8a10bffc75b8ea427434433e36dbbfea8e96399 (diff)
downloadgslapt-49667e8227212a8f3855081edf4e2807be72c27c.tar.gz
use AC_CANONICAL_HOST for arch detection in configure.in
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 8c6a64e..c0fd8f5 100644
--- a/configure.in
+++ b/configure.in
@@ -5,6 +5,13 @@ AM_INIT_AUTOMAKE(gslapt, 0.3.4)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
+AC_CANONICAL_HOST
+
+case "$host_cpu" in
+i[[3456]]86) host_cpu=i386 ;CFLAGS="$CFLAGS -fpic";;
+x86_64) host_cpu=x86_64 ;CFLAGS="$CFLAGS -fPIC";;
+esac
+
AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC