configure
changeset 6116 66f48d6bf735
parent 6102 bf7254ec1bf9
child 6188 e82023802002
equal deleted inserted replaced
6115:d4621a7e0faa 6116:66f48d6bf735
 20591     if test x$have_gcc_fvisibility = xyes; then
 20591     if test x$have_gcc_fvisibility = xyes; then
 20592         EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
 20592         EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
 20593     fi
 20593     fi
 20594 }
 20594 }
 20595 
 20595 
       
 20596 CheckStackBoundary()
       
 20597 {
       
 20598     { echo "$as_me:$LINENO: checking for GCC -mpreferred-stack-boundary option" >&5
       
 20599 echo $ECHO_N "checking for GCC -mpreferred-stack-boundary option... $ECHO_C" >&6; }
       
 20600     have_gcc_preferred_stack_boundary=no
       
 20601 
       
 20602     save_CFLAGS="$CFLAGS"
       
 20603     CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
       
 20604     cat >conftest.$ac_ext <<_ACEOF
       
 20605 /* confdefs.h.  */
       
 20606 _ACEOF
       
 20607 cat confdefs.h >>conftest.$ac_ext
       
 20608 cat >>conftest.$ac_ext <<_ACEOF
       
 20609 /* end confdefs.h.  */
       
 20610 
       
 20611     int x = 0;
       
 20612 
       
 20613 int
       
 20614 main ()
       
 20615 {
       
 20616 
       
 20617 
       
 20618   ;
       
 20619   return 0;
       
 20620 }
       
 20621 _ACEOF
       
 20622 rm -f conftest.$ac_objext
       
 20623 if { (ac_try="$ac_compile"
       
 20624 case "(($ac_try" in
       
 20625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
       
 20626   *) ac_try_echo=$ac_try;;
       
 20627 esac
       
 20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
       
 20629   (eval "$ac_compile") 2>conftest.er1
       
 20630   ac_status=$?
       
 20631   grep -v '^ *+' conftest.er1 >conftest.err
       
 20632   rm -f conftest.er1
       
 20633   cat conftest.err >&5
       
 20634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
       
 20635   (exit $ac_status); } && {
       
 20636 	 test -z "$ac_c_werror_flag" ||
       
 20637 	 test ! -s conftest.err
       
 20638        } && test -s conftest.$ac_objext; then
       
 20639 
       
 20640     have_gcc_preferred_stack_boundary=yes
       
 20641 
       
 20642 else
       
 20643   echo "$as_me: failed program was:" >&5
       
 20644 sed 's/^/| /' conftest.$ac_ext >&5
       
 20645 
       
 20646 
       
 20647 fi
       
 20648 
       
 20649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 20650     { echo "$as_me:$LINENO: result: $have_gcc_preferred_stack_boundary" >&5
       
 20651 echo "${ECHO_T}$have_gcc_preferred_stack_boundary" >&6; }
       
 20652     CFLAGS="$save_CFLAGS"
       
 20653 
       
 20654     if test x$have_gcc_preferred_stack_boundary = xyes; then
       
 20655         EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
       
 20656     fi
       
 20657 }
       
 20658 
       
 20659 
 20596 CheckWarnAll()
 20660 CheckWarnAll()
 20597 {
 20661 {
 20598     { echo "$as_me:$LINENO: checking for GCC -Wall option" >&5
 20662     { echo "$as_me:$LINENO: checking for GCC -Wall option" >&5
 20599 echo $ECHO_N "checking for GCC -Wall option... $ECHO_C" >&6; }
 20663 echo $ECHO_N "checking for GCC -Wall option... $ECHO_C" >&6; }
 20600     have_gcc_Wall=no
 20664     have_gcc_Wall=no
 24693 fi
 24757 fi
 24694 
 24758 
 24695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 24759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 24696     { echo "$as_me:$LINENO: result: $have_wince" >&5
 24760     { echo "$as_me:$LINENO: result: $have_wince" >&5
 24697 echo "${ECHO_T}$have_wince" >&6; }
 24761 echo "${ECHO_T}$have_wince" >&6; }
       
 24762 
       
 24763     # This fixes Windows stack alignment with newer GCC
       
 24764     CheckStackBoundary
 24698 }
 24765 }
 24699 
 24766 
 24700 CheckDIRECTX()
 24767 CheckDIRECTX()
 24701 {
 24768 {
 24702     # Check whether --enable-directx was given.
 24769     # Check whether --enable-directx was given.