comparison configure @ 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 6d1a5bf0cda0
comparison
equal deleted inserted replaced
35725:e1d80c588710 35726:bbc4ec3bf5bc
3788 def_direct_h='#define HAVE_DIRECT_H 0' 3788 def_direct_h='#define HAVE_DIRECT_H 0'
3789 fi 3789 fi
3790 echores "$_direct_h" 3790 echores "$_direct_h"
3791 3791
3792 3792
3793 if os2 ; then
3794 echocheck "os2threads"
3795 if test "$_pthreads" = yes ; then
3796 res_comment="using pthread instead"
3797 _os2threads=no
3798 fi
3799 if test "$_os2threads" = auto ; then
3800 _os2threads=no
3801 os2 && _os2threads=yes
3802 fi
3803 test "$_os2threads" = yes && def_threads='#define HAVE_THREADS 1' && def_os2threads='#define HAVE_OS2THREADS 1'
3804 echores "$_os2threads"
3805 fi #if os2
3806
3807
3793 echocheck "windows.h" 3808 echocheck "windows.h"
3794 windows_h=no 3809 windows_h=no
3795 def_windows_h='#define HAVE_WINDOWS_H 0' 3810 def_windows_h='#define HAVE_WINDOWS_H 0'
3796 header_check windows.h && windows_h=yes && def_windows_h='#define HAVE_WINDOWS_H 1' 3811 header_check windows.h && windows_h=yes && def_windows_h='#define HAVE_WINDOWS_H 1'
3797 echores "$windows_h" 3812 echores "$windows_h"
3805 else 3820 else
3806 def_io_h='#define HAVE_IO_H 0' 3821 def_io_h='#define HAVE_IO_H 0'
3807 fi 3822 fi
3808 echores "$_io_h" 3823 echores "$_io_h"
3809 3824
3810
3811 if os2 ; then
3812 echocheck "os2threads"
3813 if test "$_pthreads" = yes ; then
3814 res_comment="using pthread instead"
3815 _os2threads=no
3816 fi
3817 if test "$_os2threads" = auto ; then
3818 _os2threads=no
3819 os2 && _os2threads=yes
3820 fi
3821 test "$_os2threads" = yes && def_threads='#define HAVE_THREADS 1' && def_os2threads='#define HAVE_OS2THREADS 1'
3822 echores "$_os2threads"
3823 fi #if os2
3824 3825
3825 echocheck "rpath" 3826 echocheck "rpath"
3826 if test "$_rpath" = yes ; then 3827 if test "$_rpath" = yes ; then
3827 for I in $(echo $extra_ldflags | sed 's/-L//g') ; do 3828 for I in $(echo $extra_ldflags | sed 's/-L//g') ; do
3828 tmp="$tmp $(echo $I | sed 's/.*/ -L& -Wl,-R&/')" 3829 tmp="$tmp $(echo $I | sed 's/.*/ -L& -Wl,-R&/')"