source: vscpl/misc/vscpl.m4.in@ 32:fd970caf83eb

Last change on this file since 32:fd970caf83eb was 15:4eba224d58f9, checked in by István Váradi <ivaradi@…>, 12 years ago

Fixed the check for 64-bit Windows

File size: 1.0 KB
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
10 _target_win64="no"
11 if test $_target_win32 -eq 0; then
12 echo "host_alias: $host_alias"
13 case "$host_alias" in
14 x86_64*)
15 _target_win64="yes"
16 ;;
17 esac
18 fi
19 AM_CONDITIONAL([TARGET_API_WIN64], test "$_target_win64" = "yes")
20
21 AM_CONDITIONAL([TARGET_API_POSIX], test $_target_win32 -ne 0)
22 TARGET_API_POSIX=0
23 TARGET_API_WIN32=0
24 TARGET_API_WIN64=0
25 if test $_target_win32 -eq 0; then
26 if test "$_target_win64" = "yes"; then
27 TARGET_API_WIN64=1
28 fi
29 TARGET_API_WIN32=1
30 else
31 TARGET_API_POSIX=1
32 fi
33
34 AC_SUBST(TARGET_API_POSIX)
35 AC_SUBST(TARGET_API_WIN32)
36 AC_SUBST(TARGET_API_WIN64)
37])
38
39AC_DEFUN([AM_VSCPL], [
40 PKG_CHECK_MODULES([VSCPL], [vscpl >= @VERSION@])
41])
Note: See TracBrowser for help on using the repository browser.