diff options
author | Brent Cook <bcook@openbsd.org> | 2015-03-21 19:08:04 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2015-03-21 19:08:04 -0500 |
commit | dcf31221efbc0c3ceed401478debccc2af38a459 (patch) | |
tree | 3f7f8adc19c161264ae8b17dfcb942c518c6eb0f /configure.ac | |
parent | 4d122c0be6a677e047999e42e1ce2d36268a883f (diff) | |
parent | 45065de1bafde1d34acd2cab1b8460663074961c (diff) | |
download | portable-dcf31221efbc0c3ceed401478debccc2af38a459.tar.gz portable-dcf31221efbc0c3ceed401478debccc2af38a459.tar.bz2 portable-dcf31221efbc0c3ceed401478debccc2af38a459.zip |
Merge native cygwin support
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 0bbf998..206c97a 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -13,6 +13,9 @@ AC_SUBST([USER_CFLAGS], "$CFLAGS") | |||
13 | CFLAGS="-Wall -std=gnu99 -g -O2" | 13 | CFLAGS="-Wall -std=gnu99 -g -O2" |
14 | 14 | ||
15 | case $host_os in | 15 | case $host_os in |
16 | *cygwin*) | ||
17 | HOST_OS=cygwin | ||
18 | ;; | ||
16 | *darwin*) | 19 | *darwin*) |
17 | HOST_OS=darwin | 20 | HOST_OS=darwin |
18 | HOST_ABI=macosx | 21 | HOST_ABI=macosx |
@@ -54,6 +57,7 @@ case $host_os in | |||
54 | *) ;; | 57 | *) ;; |
55 | esac | 58 | esac |
56 | 59 | ||
60 | AM_CONDITIONAL([HOST_CYGWIN], [test x$HOST_OS = xcygwin]) | ||
57 | AM_CONDITIONAL([HOST_DARWIN], [test x$HOST_OS = xdarwin]) | 61 | AM_CONDITIONAL([HOST_DARWIN], [test x$HOST_OS = xdarwin]) |
58 | AM_CONDITIONAL([HOST_FREEBSD], [test x$HOST_OS = xfreebsd]) | 62 | AM_CONDITIONAL([HOST_FREEBSD], [test x$HOST_OS = xfreebsd]) |
59 | AM_CONDITIONAL([HOST_HPUX], [test x$HOST_OS = xhpux]) | 63 | AM_CONDITIONAL([HOST_HPUX], [test x$HOST_OS = xhpux]) |
@@ -284,6 +288,10 @@ AC_ARG_ENABLE([asm], | |||
284 | AS_HELP_STRING([--disable-asm], [Disable assembly])) | 288 | AS_HELP_STRING([--disable-asm], [Disable assembly])) |
285 | AM_CONDITIONAL([OPENSSL_NO_ASM], [test "x$enable_asm" = "xno"]) | 289 | AM_CONDITIONAL([OPENSSL_NO_ASM], [test "x$enable_asm" = "xno"]) |
286 | 290 | ||
291 | AC_ARG_ENABLE([extratests], | ||
292 | AS_HELP_STRING([--enable-extratests], [Enable extra tests that may be unreliable on some platforms])) | ||
293 | AM_CONDITIONAL([ENABLE_EXTRATESTS], [test "x$enable_extratests" = xyes]) | ||
294 | |||
287 | old_cflags=$CFLAGS | 295 | old_cflags=$CFLAGS |
288 | CFLAGS="$USER_CFLAGS -I$srcdir/include" | 296 | CFLAGS="$USER_CFLAGS -I$srcdir/include" |
289 | AC_MSG_CHECKING([if BSWAP4 builds without __STRICT_ALIGNMENT]) | 297 | AC_MSG_CHECKING([if BSWAP4 builds without __STRICT_ALIGNMENT]) |