- if test -n "$ax_cv_gxx_version"; then
- { echo "$as_me:$LINENO: checking for __thread support in g++" >&5
-echo $ECHO_N "checking for __thread support in g++... $ECHO_C" >&6; }
- case "$ax_cv_gxx_version" in
- 1.* | 2.* )
- { echo "$as_me:$LINENO: result: doesn't exist" >&5
-echo "${ECHO_T}doesn't exist" >&6; }
- wx_cv_cc___thread=no
- ;;
- 3.*)
- { echo "$as_me:$LINENO: result: broken" >&5
-echo "${ECHO_T}broken" >&6; }
- wx_cv_cc___thread=no
- ;;
- *)
- { echo "$as_me:$LINENO: result: works" >&5
-echo "${ECHO_T}works" >&6; }
- wx_cv_cc___thread=yes
- ;;
- esac
- else
- { echo "$as_me:$LINENO: checking for __thread keyword" >&5
-echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
-if test "${wx_cv_cc___thread+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <pthread.h>
-int
-main ()
-{
-
- static __thread int n = 0;
- static __thread int *p = 0;
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- wx_cv_cc___thread=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- wx_cv_cc___thread=no
-
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
-fi
-{ echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
-echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
+ if test -n "$ax_cv_gxx_version"; then
+ { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
+echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
+ case "$ax_cv_gxx_version" in
+ 1.* | 2.* | 3.* )
+ { echo "$as_me:$LINENO: result: no, it's broken" >&5
+echo "${ECHO_T}no, it's broken" >&6; }
+ wx_cv_cc___thread=no
+ ;;
+ *)
+ { echo "$as_me:$LINENO: result: yes, it works" >&5
+echo "${ECHO_T}yes, it works" >&6; }
+ ;;
+ esac
+ fi