source: vscpl/misc/vscpl.m4.in@ 3:1c61e0f739cf

Last change on this file since 3:1c61e0f739cf was 1:ee063b6aaa32, checked in by István Váradi <ivaradi@…>, 12 years ago

The Thread class can be compiled for Linux and Win32

File size: 850 bytes
Line 
1AC_DEFUN([AM_VSCPL_TARGET_API], [
2
3 AC_CHECK_HEADERS([windows.h winsock2.h])
4
5 test "$ac_cv_header_windows_h" = "yes" -a "$ac_cv_header_winsock2_h" = "yes"
6 _target_win32=$?
7
8 AM_CONDITIONAL([TARGET_API_WIN32], test $_target_win32 -eq 0)
9 AM_CONDITIONAL([TARGET_API_WIN64], test $_target_win32 -eq 0 -a "$host_cpu" = "x86_64")
10 AM_CONDITIONAL([TARGET_API_POSIX], test $_target_win32 -ne 0)
11 TARGET_API_POSIX=0
12 TARGET_API_WIN32=0
13 TARGET_API_WIN64=0
14 if test $_target_win32 -eq 0; then
15 if test "$host_cpu" = "x86_64"; then
16 TARGET_API_WIN64=1
17 fi
18 TARGET_API_WIN32=1
19 else
20 TARGET_API_POSIX=1
21 fi
22
23 AC_SUBST(TARGET_API_POSIX)
24 AC_SUBST(TARGET_API_WIN32)
25 AC_SUBST(TARGET_API_WIN64)
26])
27
28AC_DEFUN([AM_VSCPL], [
29 PKG_CHECK_MODULES([VSCPL], [vscpl >= @VERSION@])
30])
Note: See TracBrowser for help on using the repository browser.