aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
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