configure: Move PIC test out of the x86 section

It is not only required on x86.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31729 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2010-07-13 11:46:54 +00:00 committed by Uoti Urpala
parent c2e37e4346
commit 3f413403e8
1 changed files with 15 additions and 12 deletions

27
configure vendored
View File

@ -2515,6 +2515,21 @@ else
fi
echores $_asmalign_pot
echocheck "PIC"
pic=no
cat > $TMPC << EOF
int main(void) {
#if !(defined(__PIC__) || defined(__pic__) || defined(PIC))
#error PIC not enabled
#endif
return 0;
}
EOF
cc_check && pic=yes && extra_cflags="$extra_cflags -DPIC"
echores $pic
if x86 ; then
echocheck "10 assembler operands"
ten_operands=no
@ -2552,18 +2567,6 @@ EOF
cc_check && ebx_available=yes && def_ebx_available='#define HAVE_EBX_AVAILABLE 1'
echores $ebx_available
echocheck "PIC"
pic=no
cat > $TMPC << EOF
int main(void) {
#if !(defined(__PIC__) || defined(__pic__) || defined(PIC))
#error PIC not enabled
#endif
return 0;
}
EOF
cc_check && pic=yes && extra_cflags="$extra_cflags -DPIC"
echores $pic
echocheck "yasm"
if test -z "$YASMFLAGS" ; then