aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-10-26 22:15:19 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-10-26 22:15:19 +0000
commit406c8a2b5bd0a2bda1e8ba2e38b8aa089efdfb27 (patch)
treed6a4502859eef76490957b202b05f6c7b51756cc /configure
parent1198f65d0b69cd6c78781e12f355a95ef15b3086 (diff)
Move 64 bit check below compiler detection since it needs the compiler
and obviously should use the one that will be used for compiling in the end. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29797 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure26
1 files changed, 13 insertions, 13 deletions
diff --git a/configure b/configure
index a19980f5db..e6f539c393 100755
--- a/configure
+++ b/configure
@@ -1520,19 +1520,6 @@ echo configuration: $_configuration > "$TMPLOG"
echo >> "$TMPLOG"
-if test -z "$_target" && x86 ; then
- cat > $TMPC << EOF
-int main(void) {
- int test[sizeof(char *)-7];
- return 0;
-}
-EOF
- cc_check && host_arch=x86_64 || host_arch=i386
-fi
-
-echo "Detected operating system: $system_name"
-echo "Detected host architecture: $host_arch"
-
if test "$_runtime_cpudetection" = yes && ! x86 && ! ppc; then
die "Runtime CPU detection only works for x86, x86-64 and PPC!"
fi
@@ -1587,6 +1574,19 @@ else
fi # icc
test "$cc_fail" = yes && die "unsupported compiler version"
+if test -z "$_target" && x86 ; then
+ cat > $TMPC << EOF
+int main(void) {
+ int test[sizeof(char *)-7];
+ return 0;
+}
+EOF
+ cc_check && host_arch=x86_64 || host_arch=i386
+fi
+
+echo "Detected operating system: $system_name"
+echo "Detected host architecture: $host_arch"
+
echocheck "host cc"
test "$_host_cc" || _host_cc=$_cc
echores $_host_cc