diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-01-11 04:28:15 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-01-11 04:35:08 +0100 |
commit | 4ecd1df6f2ecb98d388082b154497ed61aa11e18 (patch) | |
tree | bf43e8f5869c4c1e0e7f97dcc33a8dab28d7b70f /configure | |
parent | d24a120c7ffb4cbfd2dcebe63577d8704442f7bd (diff) | |
download | qpdf-4ecd1df6f2ecb98d388082b154497ed61aa11e18.tar.zst |
Add configure option AVOID_WINDOWS_HANDLE
If set, we avoid using Windows I/O HANDLE, which is disallowed in some
versions of the Windows SDK, such as for Windows phones.
QUtil::same_file will always return false in this case. Only applies
to Windows builds.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -756,6 +756,7 @@ enable_libtool_lock enable_insecure_random enable_os_secure_random with_random +enable_avoid_windows_handle enable_external_libs with_windows_wordsize with_large_file_test_path @@ -1425,6 +1426,9 @@ Optional Features: --enable-os-secure-random whether to try to use OS-provided secure random numbers (default is yes) + --enable-avoid-windows-handle + whether to avoid use of HANDLE, useful for some + embedded Windows builds (default is no) --enable-external-libs whether to use external libraries distribution --disable-largefile omit support for large files --enable-ld-version-script @@ -15780,6 +15784,28 @@ _ACEOF fi +# Check whether --enable-avoid-windows-handle was given. +if test "${enable_avoid_windows_handle+set}" = set; then : + enableval=$enable_avoid_windows_handle; if test "$enableval" = "yes"; then + qpdf_AVOID_HANDLE=1; + else + qpdf_AVOID_HANDLE=0; + fi +else + qpdf_AVOID_HANDLE=0 +fi + +if test "$qpdf_AVOID_HANDLE" = "1"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define AVOID_WINDOWS_HANDLE 1" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + USE_EXTERNAL_LIBS=0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to use external libraries distribution" >&5 $as_echo_n "checking for whether to use external libraries distribution... " >&6; } |