diff options
author | Brent Cook <busterb@gmail.com> | 2021-04-05 02:32:35 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2021-04-07 07:51:45 -0500 |
commit | 921c0675a25708d19e76aa8e3b48c4483a1a255d (patch) | |
tree | d68d125cdc968fd96cca6835fc347a2c8698a6ca /configure.ac | |
parent | 141f7528cb5610becd963d8c403c5b14afe73634 (diff) | |
download | portable-921c0675a25708d19e76aa8e3b48c4483a1a255d.tar.gz portable-921c0675a25708d19e76aa8e3b48c4483a1a255d.tar.bz2 portable-921c0675a25708d19e76aa8e3b48c4483a1a255d.zip |
Add '--enable-libtls-only' build option
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/configure.ac b/configure.ac index 3aca617..fdf72ee 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -110,9 +110,6 @@ AM_CONDITIONAL([HOST_ASM_MASM_X86_64], | |||
110 | AM_CONDITIONAL([HOST_ASM_MINGW64_X86_64], | 110 | AM_CONDITIONAL([HOST_ASM_MINGW64_X86_64], |
111 | [test "x$HOST_ABI" = "xmingw64" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"]) | 111 | [test "x$HOST_ABI" = "xmingw64" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"]) |
112 | 112 | ||
113 | # Check if time_t is sized correctly | ||
114 | AC_CHECK_SIZEOF([time_t], [time.h]) | ||
115 | |||
116 | AC_CONFIG_FILES([ | 113 | AC_CONFIG_FILES([ |
117 | Makefile | 114 | Makefile |
118 | include/Makefile | 115 | include/Makefile |
@@ -132,18 +129,14 @@ AC_CONFIG_FILES([ | |||
132 | openssl.pc | 129 | openssl.pc |
133 | ]) | 130 | ]) |
134 | 131 | ||
135 | AM_CONDITIONAL([SMALL_TIME_T], [test "$ac_cv_sizeof_time_t" = "4"]) | 132 | AC_ARG_ENABLE([nc], |
136 | if test "$ac_cv_sizeof_time_t" = "4"; then | 133 | AS_HELP_STRING([--enable-nc], [Enable installing TLS-enabled nc(1)])) |
137 | AC_DEFINE([SMALL_TIME_T]) | 134 | AM_CONDITIONAL([ENABLE_NC], [test "x$enable_nc" = xyes]) |
138 | echo " ** Warning, this system is unable to represent times past 2038" | 135 | AM_CONDITIONAL([BUILD_NC], [test x$BUILD_NC = xyes -o "x$enable_nc" = xyes]) |
139 | echo " ** It will behave incorrectly when handling valid RFC5280 dates" | 136 | |
140 | 137 | AC_ARG_ENABLE([libtls-only], | |
141 | if test "$host_os" = "mingw32" ; then | 138 | AS_HELP_STRING([--enable-libtls-only], [Enable installing libtls only])) |
142 | echo " **" | 139 | AM_CONDITIONAL([ENABLE_LIBTLS_ONLY], [test "x$enable_libtls_only" = xyes]) |
143 | echo " ** You can solve this by adjusting the build flags in your" | ||
144 | echo " ** mingw-w64 toolchain. Refer to README.windows for details." | ||
145 | fi | ||
146 | fi | ||
147 | 140 | ||
148 | AC_REQUIRE_AUX_FILE([tap-driver.sh]) | 141 | AC_REQUIRE_AUX_FILE([tap-driver.sh]) |
149 | 142 | ||