Changeset 1215


Ignore:
Timestamp:
14/12/2006 23:57:57 (5 years ago)
Author:
chris
Message:

Don't check for nanosleep, random device, or flock/F_SETLK on any mingw32
platform (including mingw32msvc). (merges [1070])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/configure.ac

    r975 r1215  
    3737### Checks for libraries. 
    3838 
    39 if test "$target_os" != "mingw32" -a "$target_os" != "winnt"; then 
     39case $target_os in 
     40mingw32*) ;; 
     41winnt)    ;; 
     42*) 
    4043  AC_SEARCH_LIBS([nanosleep], [rt], [ac_have_nanosleep=yes], 
    4144                 [AC_MSG_ERROR([[cannot find a short sleep function (nanosleep)]])]) 
    42 fi 
     45        ;; 
     46esac 
     47 
    4348AC_CHECK_LIB([z], [zlibVersion],, [AC_MSG_ERROR([[cannot find zlib]])]) 
    4449VL_LIB_READLINE([have_libreadline=yes], [have_libreadline=no]) 
     
    127132fi 
    128133 
    129 if test "$target_os" != "mingw32"; then 
     134case $target_os in 
     135mingw32*) ;; 
     136winnt*)   ;; 
     137*) 
    130138  AX_RANDOM_DEVICE 
    131139  AX_CHECK_MOUNT_POINT(,[ 
    132140    AC_MSG_ERROR([[cannot work out how to discover mount points on your platform]]) 
    133141  ]) 
    134 fi 
     142;; 
     143esac 
    135144 
    136145AX_CHECK_MALLOC_WORKAROUND 
     
    171180AC_CHECK_DECLS([O_EXLOCK],,, [[#include <fcntl.h>]]) 
    172181AC_CHECK_DECLS([F_SETLK],,, [[#include <fcntl.h>]]) 
     182 
     183case $target_os in 
     184mingw32*) ;; 
     185winnt*)   ;; 
     186*) 
    173187if test "x$ac_cv_func_flock" != "xyes" && \ 
    174188   test "x$ac_cv_have_decl_O_EXLOCK" != "xyes" && \ 
    175    test "x$ac_cv_have_decl_F_SETLK" != "xyes" && \ 
    176    test "$target_os" != "mingw32" -a "$target_os" != "winnt" 
     189   test "x$ac_cv_have_decl_F_SETLK" != "xyes" 
    177190then 
    178191  AC_MSG_ERROR([[cannot work out how to do file locking on your platform]]) 
    179192fi 
     193;; 
     194esac 
    180195 
    181196## Get tmpdir 
Note: See TracChangeset for help on using the changeset viewer.