Changeset 699 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Sep 10, 2006 4:33:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r698 r699 18 18 19 19 AC_CHECK_LIB(pthread,pthread_create) 20 AC_CHECK_LIB(wsock32,puts) 21 AC_CHECK_LIB(ws2_32,puts) 22 AC_CHECK_LIB(ole32,puts) 23 AC_CHECK_LIB(winmm,puts) 24 AC_CHECK_LIB(socket,puts) 25 AC_CHECK_LIB(rt,puts) 26 AC_CHECK_LIB(nsl,puts) 20 27 21 28 AC_MSG_RESULT([Setting PJ_M_NAME to $target_cpu]) 22 29 AC_DEFINE_UNQUOTED(PJ_M_NAME,["$target_cpu"]) 23 30 24 dnl # Endianness detection 31 dnl 32 dnl Endianness detection 33 dnl 25 34 AC_C_BIGENDIAN 35 36 dnl 37 dnl Legacy macros 38 dnl 39 case $target in 40 *mingw* | *cygw* | *win32* | *w32* ) 41 AC_DEFINE(PJ_WIN32,1) 42 AC_DEFINE(PJ_WIN32_WINNT,0x0400) 43 AC_DEFINE(WIN32_LEAN_AND_MEAN) 44 ;; 45 *darwin*) 46 AC_DEFINE(PJ_DARWINOS,1) 47 ;; 48 *linux*) 49 AC_DEFINE(PJ_LINUX,1) 50 ;; 51 *rtems*) 52 AC_DEFINE(PJ_RTEMS,1) 53 ;; 54 *sunos* | *solaris* ) 55 AC_DEFINE(PJ_SUNOS,1) 56 ;; 57 *) 58 ;; 59 esac 60 61 62 26 63 27 64 dnl # --disable-floating-point option … … 43 80 AC_CHECK_HEADER(assert.h,[AC_DEFINE(PJ_HAS_ASSERT_H,1)]) 44 81 AC_CHECK_HEADER(ctype.h,[AC_DEFINE(PJ_HAS_CTYPE_H,1)]) 45 AC_CHECK_HEADER(errno.h,[AC_DEFINE(PJ_HAS_ERRNO_H,1)]) 82 83 case $target in 84 *mingw* | *cygw* | *win32* | *w32* ) 85 AC_DEFINE(PJ_HAS_ERRNO_H,0) 86 ;; 87 *) 88 AC_CHECK_HEADER(errno.h,[AC_DEFINE(PJ_HAS_ERRNO_H,1)]) 89 ;; 90 esac 91 46 92 AC_CHECK_HEADER(linux/socket.h,[AC_DEFINE(PJ_HAS_LINUX_SOCKET_H,1)]) 47 93 AC_CHECK_HEADER(malloc.h,[AC_DEFINE(PJ_HAS_MALLOC_H,1)]) … … 113 159 dnl # Determine if SO_ERROR is available 114 160 AC_MSG_CHECKING([if SO_ERROR is available]) 115 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> 116 #include <sys/socket.h> 117 #include <netinet/in.h> 118 #include <arpa/inet.h>]], 119 [int i=SO_ERROR;])], 120 [AC_DEFINE(PJ_HAS_SO_ERROR,1) 121 AC_MSG_RESULT(yes)], 122 AC_MSG_RESULT(no)) 161 case $target in 162 *mingw* | *cygw* | *win32* | *w32* ) 163 AC_DEFINE(PJ_HAS_SO_ERROR,1) 164 AC_MSG_RESULT(yes) 165 ;; 166 *) 167 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> 168 #include <sys/socket.h> 169 #include <netinet/in.h> 170 #include <arpa/inet.h>]], 171 [int i=SO_ERROR;])], 172 [AC_DEFINE(PJ_HAS_SO_ERROR,1) 173 AC_MSG_RESULT(yes)], 174 AC_MSG_RESULT(no)) 175 ;; 176 esac 177 123 178 124 179 dnl # Determine if RW-mutex is available … … 131 186 AC_MSG_RESULT(no)]) 132 187 188 AC_SUBST(ac_os_objs) 189 case $target in 190 *mingw* | *cygw* | *win32* | *w32* ) 191 ac_os_objs="os_core_win32.o os_error_win32.o os_time_win32.o os_timestamp_win32.o guid_win32.o ioqueue_select.o" 192 ;; 193 *) 194 ac_os_objs="os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o guid_simple.o ioqueue_select.o" 195 ;; 196 esac 197 133 198 134 199 dnl ########################################## … … 315 380 dnl # socket recv() can not return immediate data. 316 381 case $target in 382 *mingw* | *cygw* | *win32* | *w32* ) 383 AC_DEFINE(PJ_BLOCKING_ERROR_VAL,WSAEWOULDBLOCK) 384 ;; 317 385 *) AC_DEFINE(PJ_BLOCKING_ERROR_VAL,EAGAIN) 318 386 AC_MSG_RESULT([** Setting non-blocking recv() retval to EAGAIN (please check)]) … … 323 391 dnl # socket connect() can not get connected immediately. 324 392 case $target in 393 *mingw* | *cygw* | *win32* | *w32* ) 394 AC_DEFINE(PJ_BLOCKING_CONNECT_ERROR_VAL,WSAEWOULDBLOCK) 395 ;; 325 396 *) AC_DEFINE(PJ_BLOCKING_CONNECT_ERROR_VAL,EINPROGRESS) 326 397 AC_MSG_RESULT([** Setting non-blocking connect() retval to EINPROGRESS (please check)])
Note: See TracChangeset
for help on using the changeset viewer.