diff options
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac index 4eb1032..d638bdf 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -56,26 +56,24 @@ AC_C_BIGENDIAN([AC_DEFINE([__BIG_ENDIAN__], [1], [big endian])], | |||
| 56 | 56 | ||
| 57 | 57 | ||
| 58 | # Check for operating system | 58 | # Check for operating system |
| 59 | AC_MSG_CHECKING([whether to enable WIN32 build settings]) | 59 | AC_MSG_CHECKING([wether we need platform-specific build settings]) |
| 60 | case ${host_os} in | 60 | case ${host_os} in |
| 61 | *mingw32*|*cygwin*) | 61 | *mingw32*|*cygwin*) |
| 62 | win32=true | ||
| 63 | AC_MSG_RESULT([yes]) | 62 | AC_MSG_RESULT([yes]) |
| 64 | AC_SUBST(WINDRES) | 63 | AC_SUBST(WINDRES) |
| 64 | win32=true | ||
| 65 | ;; | 65 | ;; |
| 66 | *) | 66 | darwin*) |
| 67 | win32=false | ||
| 68 | AC_MSG_RESULT([no]) | 67 | AC_MSG_RESULT([no]) |
| 69 | ;; | 68 | ;; |
| 69 | *) | ||
| 70 | AC_MSG_RESULT([yes]) | ||
| 71 | AX_PTHREAD([], [AC_MSG_ERROR([pthread is required to build libplist])]) | ||
| 72 | AC_CHECK_LIB(pthread, [pthread_once], [], [AC_MSG_ERROR([pthread with pthread_once required to build libplist])]) | ||
| 73 | ;; | ||
| 70 | esac | 74 | esac |
| 71 | AM_CONDITIONAL(WIN32, test x$win32 = xtrue) | 75 | AM_CONDITIONAL(WIN32, test x$win32 = xtrue) |
| 72 | 76 | ||
| 73 | # if we are not on win32, check for pthread | ||
| 74 | if test x"$win32" != x"true"; then | ||
| 75 | AX_PTHREAD([], [AC_MSG_ERROR([pthread is required to build libplist])]) | ||
| 76 | AC_CHECK_LIB(pthread, [pthread_once], [], [AC_MSG_ERROR([pthread with pthread_once required to build libplist])]) | ||
| 77 | fi | ||
| 78 | |||
| 79 | # Check if struct tm has a tm_gmtoff member | 77 | # Check if struct tm has a tm_gmtoff member |
| 80 | AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff, | 78 | AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff, |
| 81 | AC_TRY_COMPILE([ | 79 | AC_TRY_COMPILE([ |
