summaryrefslogtreecommitdiff
path: root/aconfigure.ac
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-09-17 22:58:51 +0000
committerBenny Prijono <bennylp@teluu.com>2006-09-17 22:58:51 +0000
commit2f0bd9f3cacc40aaafc784788030c6f244588e3f (patch)
tree4597dd8a6f9a85d3e4eaf4aab858c21a72c627d8 /aconfigure.ac
parent1db6352c3ab86c29c66d5eb90f04b0bbe58584c9 (diff)
Fixed incorrect cross compilation settings with the autoconf script.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@726 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'aconfigure.ac')
-rw-r--r--aconfigure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/aconfigure.ac b/aconfigure.ac
index 9eff1281..ad642830 100644
--- a/aconfigure.ac
+++ b/aconfigure.ac
@@ -1,4 +1,7 @@
AC_INIT(pjproject,0.5.8)
+
+host_orig="$host"
+
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
@@ -24,7 +27,6 @@ fi
CXXFLAGS="$CFLAGS $CXXFLAGS"
-
AC_PROG_CC
AC_PROG_CXX
AC_LANG_C
@@ -446,7 +448,7 @@ AC_SUBST(ac_cross_compile)
if test "$build" = "$host"; then
ac_cross_compile=
else
- ac_cross_compile=${host}-
+ ac_cross_compile=${host_orig}-
fi
AC_SUBST(ac_linux_poll,select)
AC_SUBST(ac_host,unix)