# HG changeset patch # User diego # Date 1279021614 0 # Node ID ee4a3866f6f957b513cc0a3f429ec1b5d3b4ed41 # Parent 7303e238c5fa660c06cd10e3795973eda1eb1667 Move PIC test out of the x86 section; it is not only required on x86. diff -r 7303e238c5fa -r ee4a3866f6f9 configure --- a/configure Tue Jul 13 10:49:23 2010 +0000 +++ b/configure Tue Jul 13 11:46:54 2010 +0000 @@ -2643,6 +2643,21 @@ 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 @@ -2680,18 +2695,6 @@ 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