Changeset 2:b8c3435b818d in xplcommon
- Timestamp:
- 12/27/12 12:36:41 (12 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r1 r2 8 8 AC_PROG_CXX 9 9 10 AC_CHECK_HEADERS([pthread.h]) 11 AC_CHECK_HEADERS([poll.h]) 12 AC_CHECK_HEADERS([windows.h]) 10 AC_CHECK_HEADERS([windows.h winsock2.h]) 11 12 test "$ac_cv_header_windows_h" = "yes" -a "$ac_cv_header_winsock2_h" = "yes" 13 _target_win32=$? 14 15 AM_CONDITIONAL([TARGET_API_WIN32], test $_target_win32 -eq 0) 16 AM_CONDITIONAL([TARGET_API_POSIX], test $_target_win32 -ne 0) 17 if test $_target_win32 -eq 0; then 18 AC_DEFINE([TARGET_API_WIN32], [1], [Define if the target is the Win32 API.]) 19 else 20 AC_DEFINE([TARGET_API_POSIX], [1], [Define if the target is the POSIX API.]) 21 fi 13 22 14 23 AC_CONFIG_FILES([ -
src/xplcommon/Makefile.am
r1 r2 1 1 lib_LTLIBRARIES=libxplcommon.la 2 2 3 libxplcommon_la_SOURCES=\ 3 libxplcommon_la_SOURCES= 4 5 if TARGET_API_POSIX 6 libxplcommon_la_SOURCES += \ 4 7 POSIXThread.cc \ 5 Win32Thread.cc \6 8 POSIXWaitable.cc \ 7 9 POSIXWaiter.cc 10 endif 11 12 if TARGET_API_WIN32 13 libxplcommon_la_SOURCES += \ 14 Win32Thread.cc 15 endif 8 16 9 17 include_xplcommondir=$(includedir)/xplcommon -
src/xplcommon/config.h.in
r1 r2 9 9 /* Define to 1 if you have the <memory.h> header file. */ 10 10 #undef HAVE_MEMORY_H 11 12 /* Define to 1 if you have the <poll.h> header file. */13 #undef HAVE_POLL_H14 15 /* Define to 1 if you have the <pthread.h> header file. */16 #undef HAVE_PTHREAD_H17 11 18 12 /* Define to 1 if you have the <stdint.h> header file. */ … … 39 33 /* Define to 1 if you have the <windows.h> header file. */ 40 34 #undef HAVE_WINDOWS_H 35 36 /* Define to 1 if you have the <winsock2.h> header file. */ 37 #undef HAVE_WINSOCK2_H 41 38 42 39 /* Define to the sub-directory in which libtool stores uninstalled libraries. … … 68 65 #undef STDC_HEADERS 69 66 67 /* Define if the target is the POSIX API. */ 68 #undef TARGET_API_POSIX 69 70 /* Define if the target is the Win32 API. */ 71 #undef TARGET_API_WIN32 72 70 73 /* Version number of package */ 71 74 #undef VERSION
Note:
See TracChangeset
for help on using the changeset viewer.