changeset 35726:bbc4ec3bf5bc

configure: cosmetics: Move os2threads check to a more suitable place.
author diego
date Mon, 21 Jan 2013 23:35:37 +0000
parents e1d80c588710
children 652e66d22aea
files configure
diffstat 1 files changed, 15 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Jan 21 23:35:35 2013 +0000
+++ b/configure	Mon Jan 21 23:35:37 2013 +0000
@@ -3790,6 +3790,21 @@
 echores "$_direct_h"
 
 
+if os2 ; then
+echocheck "os2threads"
+if test "$_pthreads" = yes ; then
+  res_comment="using pthread instead"
+  _os2threads=no
+fi
+if test "$_os2threads" = auto ; then
+  _os2threads=no
+  os2 && _os2threads=yes
+fi
+test "$_os2threads" = yes && def_threads='#define HAVE_THREADS 1' && def_os2threads='#define HAVE_OS2THREADS 1'
+echores "$_os2threads"
+fi #if os2
+
+
 echocheck "windows.h"
 windows_h=no
 def_windows_h='#define HAVE_WINDOWS_H 0'
@@ -3808,20 +3823,6 @@
 echores "$_io_h"
 
 
-if os2 ; then
-echocheck "os2threads"
-if test "$_pthreads" = yes ; then
-  res_comment="using pthread instead"
-  _os2threads=no
-fi
-if test "$_os2threads" = auto ; then
-  _os2threads=no
-  os2 && _os2threads=yes
-fi
-test "$_os2threads" = yes && def_threads='#define HAVE_THREADS 1' && def_os2threads='#define HAVE_OS2THREADS 1'
-echores "$_os2threads"
-fi #if os2
-
 echocheck "rpath"
 if test "$_rpath" = yes ; then
   for I in $(echo $extra_ldflags | sed 's/-L//g') ; do