summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-07-15 14:48:01 +0200
committerGitHub <noreply@github.com>2022-07-15 14:48:01 +0200
commit944ff8c57c9e8ff5a5bd18925070ddb1504490ab (patch)
tree3d0021fd6ed200b6764370a4f6e0ddeecc156d8d /configure
parentc22f134211743cd5ad14cec1dd4f527bee542b4c (diff)
downloadcpython-git-944ff8c57c9e8ff5a5bd18925070ddb1504490ab.tar.gz
gh-94801: Use custom flags to check for headers and libs (#94802)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure574
1 files changed, 317 insertions, 257 deletions
diff --git a/configure b/configure
index 55d0518d38..df6b193433 100755
--- a/configure
+++ b/configure
@@ -3090,6 +3090,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+
if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then
# If we're building out-of-tree, we need to make sure the following
# resources get picked up before their $srcdir counterparts.
@@ -11263,7 +11267,15 @@ fi
echo "$LIBUUID_PKG_ERRORS" >&5
- for ac_header in uuid/uuid.h
+ save_CFLAGS=$CFLAGS
+save_CPPFLAGS=$CPPFLAGS
+save_LDFLAGS=$LDFLAGS
+save_LIBS=$LIBS
+
+
+ CPPFLAGS="$CFLAGS $LIBUUID_CFLAGS"
+ LDFLAGS="$LDFLAGS $LIBUUID_LIBS"
+ for ac_header in uuid/uuid.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
@@ -11271,11 +11283,7 @@ if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
#define HAVE_UUID_UUID_H 1
_ACEOF
- save_CFLAGS=$CFLAGS
-save_CPPFLAGS=$CPPFLAGS
-save_LDFLAGS=$LDFLAGS
-save_LIBS=$LIBS
-
+ py_check_lib_save_LIBS=$LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5
$as_echo_n "checking for uuid_generate_time in -luuid... " >&6; }
if ${ac_cv_lib_uuid_uuid_generate_time+:} false; then :
@@ -11316,20 +11324,10 @@ if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes; then :
have_uuid=yes
fi
+LIBS=$py_check_lib_save_LIBS
-CFLAGS=$save_CFLAGS
-CPPFLAGS=$save_CPPFLAGS
-LDFLAGS=$save_LDFLAGS
-LIBS=$save_LIBS
-
-
- save_CFLAGS=$CFLAGS
-save_CPPFLAGS=$CPPFLAGS
-save_LDFLAGS=$LDFLAGS
-save_LIBS=$LIBS
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5
+ py_check_lib_save_LIBS=$LIBS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5
$as_echo_n "checking for uuid_generate_time_safe in -luuid... " >&6; }
if ${ac_cv_lib_uuid_uuid_generate_time_safe+:} false; then :
$as_echo_n "(cached) " >&6
@@ -11366,19 +11364,18 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time_safe" >&5
$as_echo "$ac_cv_lib_uuid_uuid_generate_time_safe" >&6; }
if test "x$ac_cv_lib_uuid_uuid_generate_time_safe" = xyes; then :
-
- have_uuid=yes
+ have_uuid=yes
$as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
fi
+LIBS=$py_check_lib_save_LIBS
-CFLAGS=$save_CFLAGS
-CPPFLAGS=$save_CPPFLAGS
-LDFLAGS=$save_LDFLAGS
-LIBS=$save_LIBS
+fi
+
+done
if test "x$have_uuid" = xyes; then :
@@ -11387,9 +11384,11 @@ LIBS=$save_LIBS
fi
-fi
+CFLAGS=$save_CFLAGS
+CPPFLAGS=$save_CPPFLAGS
+LDFLAGS=$save_LDFLAGS
+LIBS=$save_LIBS
-done
@@ -11397,7 +11396,15 @@ elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
- for ac_header in uuid/uuid.h
+ save_CFLAGS=$CFLAGS
+save_CPPFLAGS=$CPPFLAGS
+save_LDFLAGS=$LDFLAGS
+save_LIBS=$LIBS
+
+
+ CPPFLAGS="$CFLAGS $LIBUUID_CFLAGS"
+ LDFLAGS="$LDFLAGS $LIBUUID_LIBS"
+ for ac_header in uuid/uuid.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
@@ -11405,11 +11412,7 @@ if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
#define HAVE_UUID_UUID_H 1
_ACEOF
- save_CFLAGS=$CFLAGS
-save_CPPFLAGS=$CPPFLAGS
-save_LDFLAGS=$LDFLAGS
-save_LIBS=$LIBS
-
+ py_check_lib_save_LIBS=$LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5
$as_echo_n "checking for uuid_generate_time in -luuid... " >&6; }
if ${ac_cv_lib_uuid_uuid_generate_time+:} false; then :
@@ -11450,20 +11453,10 @@ if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes; then :
have_uuid=yes
fi
+LIBS=$py_check_lib_save_LIBS
-CFLAGS=$save_CFLAGS
-CPPFLAGS=$save_CPPFLAGS
-LDFLAGS=$save_LDFLAGS
-LIBS=$save_LIBS
-
-
- save_CFLAGS=$CFLAGS
-save_CPPFLAGS=$CPPFLAGS
-save_LDFLAGS=$LDFLAGS
-save_LIBS=$LIBS
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5
+ py_check_lib_save_LIBS=$LIBS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5
$as_echo_n "checking for uuid_generate_time_safe in -luuid... " >&6; }
if ${ac_cv_lib_uuid_uuid_generate_time_safe+:} false; then :
$as_echo_n "(cached) " >&6
@@ -11500,19 +11493,18 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time_safe" >&5
$as_echo "$ac_cv_lib_uuid_uuid_generate_time_safe" >&6; }
if test "x$ac_cv_lib_uuid_uuid_generate_time_safe" = xyes; then :
-
- have_uuid=yes
+ have_uuid=yes
$as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
fi
+LIBS=$py_check_lib_save_LIBS
-CFLAGS=$save_CFLAGS
-CPPFLAGS=$save_CPPFLAGS
-LDFLAGS=$save_LDFLAGS
-LIBS=$save_LIBS
+fi
+
+done
if test "x$have_uuid" = xyes; then :
@@ -11521,9 +11513,11 @@ LIBS=$save_LIBS
fi
-fi
+CFLAGS=$save_CFLAGS
+CPPFLAGS=$save_CPPFLAGS
+LDFLAGS=$save_LDFLAGS
+LIBS=$save_LIBS
-done
@@ -12122,15 +12116,17 @@ fi
echo "$LIBFFI_PKG_ERRORS" >&5
- ac_fn_c_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
-if test "x$ac_cv_header_ffi_h" = xyes; then :
-
- save_CFLAGS=$CFLAGS
+ save_CFLAGS=$CFLAGS
save_CPPFLAGS=$CPPFLAGS
save_LDFLAGS=$LDFLAGS
save_LIBS=$LIBS
+ CPPFLAGS="$CFLAGS $LIBFFI_CFLAGS"
+ LDFLAGS="$LDFLAGS $LIBFFI_LIBS"
+ ac_fn_c_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
+if test "x$ac_cv_header_ffi_h" = xyes; then :
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
$as_echo_n "checking for ffi_call in -lffi... " >&6; }
if ${ac_cv_lib_ffi_ffi_call+:} false; then :
@@ -12170,13 +12166,18 @@ $as_echo "$ac_cv_lib_ffi_ffi_call" >&6; }
if test "x$ac_cv_lib_ffi_ffi_call" = xyes; then :
have_libffi=yes
- LIBFFI_LIBS="-lffi"
+ LIBFFI_CFLAGS=${LIBFFI_CFLAGS-""}
+ LIBFFI_LIBS=${LIBFFI_LIBS-"-lffi"}
else
have_libffi=no
fi
+fi
+
+
+
CFLAGS=$save_CFLAGS
CPPFLAGS=$save_CPPFLAGS
LDFLAGS=$save_LDFLAGS
@@ -12184,23 +12185,21 @@ LIBS=$save_LIBS
-fi
-
-
-
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
- ac_fn_c_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
-if test "x$ac_cv_header_ffi_h" = xyes; then :
-
- save_CFLAGS=$CFLAGS
+ save_CFLAGS=$CFLAGS
save_CPPFLAGS=$CPPFLAGS
save_LDFLAGS=$LDFLAGS
save_LIBS=$LIBS
+ CPPFLAGS="$CFLAGS $LIBFFI_CFLAGS"
+ LDFLAGS="$LDFLAGS $LIBFFI_LIBS"
+ ac_fn_c_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
+if test "x$ac_cv_header_ffi_h" = xyes; then :
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
$as_echo_n "checking for ffi_call in -lffi... " >&6; }
if ${ac_cv_lib_ffi_ffi_call+:} false; then :
@@ -12240,13 +12239,18 @@ $as_echo "$ac_cv_lib_ffi_ffi_call" >&6; }
if test "x$ac_cv_lib_ffi_ffi_call" = xyes; then :
have_libffi=yes
- LIBFFI_LIBS="-lffi"
+ LIBFFI_CFLAGS=${LIBFFI_CFLAGS-""}
+ LIBFFI_LIBS=${LIBFFI_LIBS-"-lffi"}
else
have_libffi=no
fi
+fi
+
+
+
CFLAGS=$save_CFLAGS
CPPFLAGS=$save_CPPFLAGS
LDFLAGS=$save_LDFLAGS
@@ -12254,10 +12258,6 @@ LIBS=$save_LIBS
-fi
-
-
-
else
LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
@@ -12905,6 +12905,19 @@ case $ac_sys_system in #(
esac
+
+
+ if test "$ac_sys_system" = "Emscripten" -a -z "$LIBSQLITE3_CFLAGS" -a -z "$LIBSQLITE3_LIBS"; then :
+
+ LIBSQLITE3_CFLAGS="-sUSE_SQLITE3"
+ LIBSQLITE3_LIBS="-sUSE_SQLITE3"
+
+fi
+
+
+
+
+
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSQLITE3" >&5
$as_echo_n "checking for LIBSQLITE3... " >&6; }
@@ -16513,6 +16526,19 @@ fi
+
+
+ if test "$ac_sys_system" = "Emscripten" -a -z "$ZLIB_CFLAGS" -a -z "$ZLIB_LIBS"; then :
+
+ ZLIB_CFLAGS="-sUSE_ZLIB"
+ ZLIB_LIBS="-sUSE_ZLIB"
+
+fi
+
+
+
+
+
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
$as_echo_n "checking for ZLIB... " >&6; }
@@ -16572,7 +16598,15 @@ fi
echo "$ZLIB_PKG_ERRORS" >&5
- for ac_header in zlib.h
+ save_CFLAGS=$CFLAGS
+save_CPPFLAGS=$CPPFLAGS
+save_LDFLAGS=$LDFLAGS
+save_LIBS=$LIBS
+
+
+ CPPFLAGS="$CFLAGS $ZLIB_CFLAGS"
+ LDFLAGS="$LDFLAGS $ZLIB_LIBS"
+ for ac_header in zlib.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
if test "x$ac_cv_header_zlib_h" = xyes; then :
@@ -16580,13 +16614,8 @@ if test "x$ac_cv_header_zlib_h" = xyes; then :
#define HAVE_ZLIB_H 1
_ACEOF
- save_CFLAGS=$CFLAGS
-save_CPPFLAGS=$CPPFLAGS
-save_LDFLAGS=$LDFLAGS
-save_LIBS=$LIBS
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
+ py_check_lib_save_LIBS=$LIBS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
$as_echo_n "checking for gzread in -lz... " >&6; }
if ${ac_cv_lib_z_gzread+:} false; then :
$as_echo_n "(cached) " >&6
@@ -16623,11 +16652,26 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
$as_echo "$ac_cv_lib_z_gzread" >&6; }
if test "x$ac_cv_lib_z_gzread" = xyes; then :
+ have_zlib=yes
+else
+ have_zlib=no
+fi
+
+LIBS=$py_check_lib_save_LIBS
+
+
+else
+ have_zlib=no
+fi
- have_zlib=yes
- ZLIB_CFLAGS=${ZLIB_CFLAGS-""}
- ZLIB_LIBS=${ZLIB_LIBS-"-lz"}
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
+done
+
+ if test "x$have_zlib" = xyes; then :
+
+ ZLIB_CFLAGS=${ZLIB_CFLAGS-""}
+ ZLIB_LIBS=${ZLIB_LIBS-"-lz"}
+ py_check_lib_save_LIBS=$LIBS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
$as_echo_n "checking for inflateCopy in -lz... " >&6; }
if ${ac_cv_lib_z_inflateCopy+:} false; then :
$as_echo_n "(cached) " >&6
@@ -16668,14 +16712,11 @@ if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
fi
+LIBS=$py_check_lib_save_LIBS
-else
-
- have_zlib=no
fi
-
CFLAGS=$save_CFLAGS
CPPFLAGS=$save_CPPFLAGS
LDFLAGS=$save_LDFLAGS
@@ -16683,18 +16724,19 @@ LIBS=$save_LIBS
-else
- have_zlib=no
-fi
-
-done
-
-
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
- for ac_header in zlib.h
+ save_CFLAGS=$CFLAGS
+save_CPPFLAGS=$CPPFLAGS
+save_LDFLAGS=$LDFLAGS
+save_LIBS=$LIBS
+
+
+ CPPFLAGS="$CFLAGS $ZLIB_CFLAGS"
+ LDFLAGS="$LDFLAGS $ZLIB_LIBS"
+ for ac_header in zlib.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
if test "x$ac_cv_header_zlib_h" = xyes; then :
@@ -16702,13 +16744,8 @@ if test "x$ac_cv_header_zlib_h" = xyes; then :
#define HAVE_ZLIB_H 1
_ACEOF
- save_CFLAGS=$CFLAGS
-save_CPPFLAGS=$CPPFLAGS
-save_LDFLAGS=$LDFLAGS
-save_LIBS=$LIBS
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
+ py_check_lib_save_LIBS=$LIBS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
$as_echo_n "checking for gzread in -lz... " >&6; }
if ${ac_cv_lib_z_gzread+:} false; then :
$as_echo_n "(cached) " >&6
@@ -16745,11 +16782,26 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
$as_echo "$ac_cv_lib_z_gzread" >&6; }
if test "x$ac_cv_lib_z_gzread" = xyes; then :
+ have_zlib=yes
+else
+ have_zlib=no
+fi
+
+LIBS=$py_check_lib_save_LIBS
- have_zlib=yes
- ZLIB_CFLAGS=${ZLIB_CFLAGS-""}
- ZLIB_LIBS=${ZLIB_LIBS-"-lz"}
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
+
+else
+ have_zlib=no
+fi
+
+done
+
+ if test "x$have_zlib" = xyes; then :
+
+ ZLIB_CFLAGS=${ZLIB_CFLAGS-""}
+ ZLIB_LIBS=${ZLIB_LIBS-"-lz"}
+ py_check_lib_save_LIBS=$LIBS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
$as_echo_n "checking for inflateCopy in -lz... " >&6; }
if ${ac_cv_lib_z_inflateCopy+:} false; then :
$as_echo_n "(cached) " >&6
@@ -16790,14 +16842,11 @@ if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
fi
+LIBS=$py_check_lib_save_LIBS
-else
-
- have_zlib=no
fi
-
CFLAGS=$save_CFLAGS
CPPFLAGS=$save_CPPFLAGS
LDFLAGS=$save_LDFLAGS
@@ -16806,13 +16855,6 @@ LIBS=$save_LIBS
else
- have_zlib=no
-fi
-
-done
-
-
-else
ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
@@ -16824,11 +16866,6 @@ $as_echo "yes" >&6; }
fi
-if test "$have_zlib" = "yes" -a "$ac_sys_system" = "Emscripten" -a "$ZLIB_LIBS" = "-lz"; then
- ZLIB_CFLAGS="-sUSE_ZLIB"
- ZLIB_LIBS="-sUSE_ZLIB"
-fi
-
if test "x$have_zlib" = xyes; then :
BINASCII_CFLAGS="-DUSE_ZLIB_CRC32 $ZLIB_CFLAGS"
@@ -16837,6 +16874,19 @@ if test "x$have_zlib" = xyes; then :
fi
+
+
+ if test "$ac_sys_system" = "Emscripten" -a -z "$BZIP2_CFLAGS" -a -z "$BZIP2_LIBS"; then :
+
+ BZIP2_CFLAGS="-sUSE_BZIP2"
+ BZIP2_LIBS="-sUSE_BZIP2"
+
+fi
+
+
+
+
+
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZIP2" >&5
$as_echo_n "checking for BZIP2... " >&6; }
@@ -16896,7 +16946,15 @@ fi
echo "$BZIP2_PKG_ERRORS" >&5
- for ac_header in bzlib.h
+ save_CFLAGS=$CFLAGS
+save_CPPFLAGS=$CPPFLAGS
+save_LDFLAGS=$LDFLAGS
+save_LIBS=$LIBS
+
+
+ CPPFLAGS="$CFLAGS $BZIP2_CFLAGS"
+ LDFLAGS="$LDFLAGS $BZIP2_LIBS"
+ for ac_header in bzlib.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
if test "x$ac_cv_header_bzlib_h" = xyes; then :
@@ -16904,12 +16962,6 @@ if test "x$ac_cv_header_bzlib_h" = xyes; then :
#define HAVE_BZLIB_H 1
_ACEOF
- save_CFLAGS=$CFLAGS
-save_CPPFLAGS=$CPPFLAGS
-save_LDFLAGS=$LDFLAGS
-save_LIBS=$LIBS
-
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
$as_echo_n "checking for BZ2_bzCompress in -lbz2... " >&6; }
if ${ac_cv_lib_bz2_BZ2_bzCompress+:} false; then :
@@ -16947,15 +16999,24 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
$as_echo "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes; then :
+ have_bzip2=yes
+else
+ have_bzip2=no
+fi
- have_bzip2=yes
- BZIP2_CFLAGS=${BZIP2_CFLAGS-""}
- BZIP2_LIBS=${BZIP2_LIBS-"-lbz2"}
else
have_bzip2=no
fi
+done
+
+ if test "x$have_bzip2" = xyes; then :
+
+ BZIP2_CFLAGS=${BZIP2_CFLAGS-""}
+ BZIP2_LIBS=${BZIP2_LIBS-"-lbz2"}
+
+fi
CFLAGS=$save_CFLAGS
CPPFLAGS=$save_CPPFLAGS
@@ -16964,18 +17025,19 @@ LIBS=$save_LIBS
-else
- have_bzip2=no
-fi
-
-done
-
-
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
- for ac_header in bzlib.h
+ save_CFLAGS=$CFLAGS
+save_CPPFLAGS=$CPPFLAGS
+save_LDFLAGS=$LDFLAGS
+save_LIBS=$LIBS
+
+
+ CPPFLAGS="$CFLAGS $BZIP2_CFLAGS"
+ LDFLAGS="$LDFLAGS $BZIP2_LIBS"
+ for ac_header in bzlib.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
if test "x$ac_cv_header_bzlib_h" = xyes; then :
@@ -16983,12 +17045,6 @@ if test "x$ac_cv_header_bzlib_h" = xyes; then :
#define HAVE_BZLIB_H 1
_ACEOF
- save_CFLAGS=$CFLAGS
-save_CPPFLAGS=$CPPFLAGS
-save_LDFLAGS=$LDFLAGS
-save_LIBS=$LIBS
-
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
$as_echo_n "checking for BZ2_bzCompress in -lbz2... " >&6; }
if ${ac_cv_lib_bz2_BZ2_bzCompress+:} false; then :
@@ -17026,15 +17082,24 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
$as_echo "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes; then :
+ have_bzip2=yes
+else
+ have_bzip2=no
+fi
- have_bzip2=yes
- BZIP2_CFLAGS=${BZIP2_CFLAGS-""}
- BZIP2_LIBS=${BZIP2_LIBS-"-lbz2"}
else
have_bzip2=no
fi
+done
+
+ if test "x$have_bzip2" = xyes; then :
+
+ BZIP2_CFLAGS=${BZIP2_CFLAGS-""}
+ BZIP2_LIBS=${BZIP2_LIBS-"-lbz2"}
+
+fi
CFLAGS=$save_CFLAGS
CPPFLAGS=$save_CPPFLAGS
@@ -17044,13 +17109,6 @@ LIBS=$save_LIBS
else
- have_bzip2=no
-fi
-
-done
-
-
-else
BZIP2_CFLAGS=$pkg_cv_BZIP2_CFLAGS
BZIP2_LIBS=$pkg_cv_BZIP2_LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
@@ -17058,12 +17116,6 @@ $as_echo "yes" >&6; }
have_bzip2=yes
fi
-if test "$have_bzip2" = "yes" -a "$ac_sys_system" = "Emscripten" -a "$BZIP2_LIBS" = "-lbz2"; then
- BZIP2_CFLAGS="-sUSE_BZIP2"
- BZIP2_LIBS="-sUSE_BZIP2"
-fi
-
-
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBLZMA" >&5
@@ -17124,7 +17176,15 @@ fi
echo "$LIBLZMA_PKG_ERRORS" >&5
- for ac_header in lzma.h
+ save_CFLAGS=$CFLAGS
+save_CPPFLAGS=$CPPFLAGS
+save_LDFLAGS=$LDFLAGS
+save_LIBS=$LIBS
+
+
+ CPPFLAGS="$CFLAGS $LIBLZMA_CFLAGS"
+ LDFLAGS="$LDFLAGS $LIBLZMA_LIBS"
+ for ac_header in lzma.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
if test "x$ac_cv_header_lzma_h" = xyes; then :
@@ -17132,12 +17192,6 @@ if test "x$ac_cv_header_lzma_h" = xyes; then :
#define HAVE_LZMA_H 1
_ACEOF
- save_CFLAGS=$CFLAGS
-save_CPPFLAGS=$CPPFLAGS
-save_LDFLAGS=$LDFLAGS
-save_LIBS=$LIBS
-
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_easy_encoder in -llzma" >&5
$as_echo_n "checking for lzma_easy_encoder in -llzma... " >&6; }
if ${ac_cv_lib_lzma_lzma_easy_encoder+:} false; then :
@@ -17175,15 +17229,24 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_easy_encoder" >&5
$as_echo "$ac_cv_lib_lzma_lzma_easy_encoder" >&6; }
if test "x$ac_cv_lib_lzma_lzma_easy_encoder" = xyes; then :
+ have_liblzma=yes
+else
+ have_liblzma=no
+fi
- have_liblzma=yes
- LIBLZMA_CFLAGS=${LIBLZMA_CFLAGS-""}
- LIBLZMA_LIBS=${LIBLZMA_LIBS-"-llzma"}
else
have_liblzma=no
fi
+done
+
+ if test "x$have_liblzma" = xyes; then :
+
+ LIBLZMA_CFLAGS=${LIBLZMA_CFLAGS-""}
+ LIBLZMA_LIBS=${LIBLZMA_LIBS-"-llzma"}
+
+fi
CFLAGS=$save_CFLAGS
CPPFLAGS=$save_CPPFLAGS
@@ -17192,18 +17255,19 @@ LIBS=$save_LIBS
-else
- have_liblzma=no
-fi
-
-done
-
-
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
- for ac_header in lzma.h
+ save_CFLAGS=$CFLAGS
+save_CPPFLAGS=$CPPFLAGS
+save_LDFLAGS=$LDFLAGS
+save_LIBS=$LIBS
+
+
+ CPPFLAGS="$CFLAGS $LIBLZMA_CFLAGS"
+ LDFLAGS="$LDFLAGS $LIBLZMA_LIBS"
+ for ac_header in lzma.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
if test "x$ac_cv_header_lzma_h" = xyes; then :
@@ -17211,12 +17275,6 @@ if test "x$ac_cv_header_lzma_h" = xyes; then :
#define HAVE_LZMA_H 1
_ACEOF
- save_CFLAGS=$CFLAGS
-save_CPPFLAGS=$CPPFLAGS
-save_LDFLAGS=$LDFLAGS
-save_LIBS=$LIBS
-
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_easy_encoder in -llzma" >&5
$as_echo_n "checking for lzma_easy_encoder in -llzma... " >&6; }
if ${ac_cv_lib_lzma_lzma_easy_encoder+:} false; then :
@@ -17254,15 +17312,24 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_easy_encoder" >&5
$as_echo "$ac_cv_lib_lzma_lzma_easy_encoder" >&6; }
if test "x$ac_cv_lib_lzma_lzma_easy_encoder" = xyes; then :
+ have_liblzma=yes
+else
+ have_liblzma=no
+fi
- have_liblzma=yes
- LIBLZMA_CFLAGS=${LIBLZMA_CFLAGS-""}
- LIBLZMA_LIBS=${LIBLZMA_LIBS-"-llzma"}
else
have_liblzma=no
fi
+done
+
+ if test "x$have_liblzma" = xyes; then :
+
+ LIBLZMA_CFLAGS=${LIBLZMA_CFLAGS-""}
+ LIBLZMA_LIBS=${LIBLZMA_LIBS-"-llzma"}
+
+fi
CFLAGS=$save_CFLAGS
CPPFLAGS=$save_CPPFLAGS
@@ -17272,13 +17339,6 @@ LIBS=$save_LIBS
else
- have_liblzma=no
-fi
-
-done
-
-
-else
LIBLZMA_CFLAGS=$pkg_cv_LIBLZMA_CFLAGS
LIBLZMA_LIBS=$pkg_cv_LIBLZMA_LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
@@ -20615,7 +20675,15 @@ fi
echo "$LIBREADLINE_PKG_ERRORS" >&5
- for ac_header in readline/readline.h
+ save_CFLAGS=$CFLAGS
+save_CPPFLAGS=$CPPFLAGS
+save_LDFLAGS=$LDFLAGS
+save_LIBS=$LIBS
+
+
+ CPPFLAGS="$CFLAGS $LIBREADLINE_CFLAGS"
+ LDFLAGS="$LDFLAGS $LIBREADLINE_LIBS"
+ for ac_header in readline/readline.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
if test "x$ac_cv_header_readline_readline_h" = xyes; then :
@@ -20623,12 +20691,6 @@ if test "x$ac_cv_header_readline_readline_h" = xyes; then :
#define HAVE_READLINE_READLINE_H 1
_ACEOF
- save_CFLAGS=$CFLAGS
-save_CPPFLAGS=$CPPFLAGS
-save_LDFLAGS=$LDFLAGS
-save_LIBS=$LIBS
-
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
$as_echo_n "checking for readline in -lreadline... " >&6; }
if ${ac_cv_lib_readline_readline+:} false; then :
@@ -20672,11 +20734,16 @@ if test "x$ac_cv_lib_readline_readline" = xyes; then :
READLINE_LIBS=${LIBREADLINE_LIBS-"-lreadline"}
else
+ with_readline=no
+fi
- with_readline=no
+else
+ with_readline=no
fi
+done
+
CFLAGS=$save_CFLAGS
CPPFLAGS=$save_CPPFLAGS
@@ -20685,18 +20752,19 @@ LIBS=$save_LIBS
-else
- with_readline=no
-fi
-
-done
-
-
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
- for ac_header in readline/readline.h
+ save_CFLAGS=$CFLAGS
+save_CPPFLAGS=$CPPFLAGS
+save_LDFLAGS=$LDFLAGS
+save_LIBS=$LIBS
+
+
+ CPPFLAGS="$CFLAGS $LIBREADLINE_CFLAGS"
+ LDFLAGS="$LDFLAGS $LIBREADLINE_LIBS"
+ for ac_header in readline/readline.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
if test "x$ac_cv_header_readline_readline_h" = xyes; then :
@@ -20704,12 +20772,6 @@ if test "x$ac_cv_header_readline_readline_h" = xyes; then :
#define HAVE_READLINE_READLINE_H 1
_ACEOF
- save_CFLAGS=$CFLAGS
-save_CPPFLAGS=$CPPFLAGS
-save_LDFLAGS=$LDFLAGS
-save_LIBS=$LIBS
-
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
$as_echo_n "checking for readline in -lreadline... " >&6; }
if ${ac_cv_lib_readline_readline+:} false; then :
@@ -20753,11 +20815,16 @@ if test "x$ac_cv_lib_readline_readline" = xyes; then :
READLINE_LIBS=${LIBREADLINE_LIBS-"-lreadline"}
else
+ with_readline=no
+fi
- with_readline=no
+else
+ with_readline=no
fi
+done
+
CFLAGS=$save_CFLAGS
CPPFLAGS=$save_CPPFLAGS
@@ -20767,13 +20834,6 @@ LIBS=$save_LIBS
else
- with_readline=no
-fi
-
-done
-
-
-else
LIBREADLINE_CFLAGS=$pkg_cv_LIBREADLINE_CFLAGS
LIBREADLINE_LIBS=$pkg_cv_LIBREADLINE_LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
@@ -20849,7 +20909,15 @@ fi
echo "$LIBEDIT_PKG_ERRORS" >&5
- for ac_header in editline/readline.h
+ save_CFLAGS=$CFLAGS
+save_CPPFLAGS=$CPPFLAGS
+save_LDFLAGS=$LDFLAGS
+save_LIBS=$LIBS
+
+
+ CPPFLAGS="$CFLAGS $LIBEDIT_CFLAGS"
+ LDFLAGS="$LDFLAGS $LIBEDIT_LIBS"
+ for ac_header in editline/readline.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
if test "x$ac_cv_header_editline_readline_h" = xyes; then :
@@ -20857,12 +20925,6 @@ if test "x$ac_cv_header_editline_readline_h" = xyes; then :
#define HAVE_EDITLINE_READLINE_H 1
_ACEOF
- save_CFLAGS=$CFLAGS
-save_CPPFLAGS=$CPPFLAGS
-save_LDFLAGS=$LDFLAGS
-save_LIBS=$LIBS
-
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
$as_echo_n "checking for readline in -ledit... " >&6; }
if ${ac_cv_lib_edit_readline+:} false; then :
@@ -20908,11 +20970,16 @@ if test "x$ac_cv_lib_edit_readline" = xyes; then :
READLINE_LIBS=${LIBEDIT_LIBS-"-ledit"}
else
+ with_readline=no
+fi
- with_readline=no
+else
+ with_readline=no
fi
+done
+
CFLAGS=$save_CFLAGS
CPPFLAGS=$save_CPPFLAGS
@@ -20921,18 +20988,19 @@ LIBS=$save_LIBS
-else
- with_readline=no
-fi
-
-done
-
-
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
- for ac_header in editline/readline.h
+ save_CFLAGS=$CFLAGS
+save_CPPFLAGS=$CPPFLAGS
+save_LDFLAGS=$LDFLAGS
+save_LIBS=$LIBS
+
+
+ CPPFLAGS="$CFLAGS $LIBEDIT_CFLAGS"
+ LDFLAGS="$LDFLAGS $LIBEDIT_LIBS"
+ for ac_header in editline/readline.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
if test "x$ac_cv_header_editline_readline_h" = xyes; then :
@@ -20940,12 +21008,6 @@ if test "x$ac_cv_header_editline_readline_h" = xyes; then :
#define HAVE_EDITLINE_READLINE_H 1
_ACEOF
- save_CFLAGS=$CFLAGS
-save_CPPFLAGS=$CPPFLAGS
-save_LDFLAGS=$LDFLAGS
-save_LIBS=$LIBS
-
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
$as_echo_n "checking for readline in -ledit... " >&6; }
if ${ac_cv_lib_edit_readline+:} false; then :
@@ -20991,11 +21053,16 @@ if test "x$ac_cv_lib_edit_readline" = xyes; then :
READLINE_LIBS=${LIBEDIT_LIBS-"-ledit"}
else
+ with_readline=no
+fi
- with_readline=no
+else
+ with_readline=no
fi
+done
+
CFLAGS=$save_CFLAGS
CPPFLAGS=$save_CPPFLAGS
@@ -21005,13 +21072,6 @@ LIBS=$save_LIBS
else
- with_readline=no
-fi
-
-done
-
-
-else
LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5