Skip to content

Commit b58d596

Browse files
authored
Merge pull request cisco#771 from pabuhler/remove-zlib
Do not explicitly check for runtime dependencies when building
2 parents 8016607 + 45bc1ca commit b58d596

File tree

3 files changed

+0
-157
lines changed

3 files changed

+0
-157
lines changed

config_in.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@
4545
/* Define to 1 if you have the <inttypes.h> header file. */
4646
#undef HAVE_INTTYPES_H
4747

48-
/* Define to 1 if you have the `dl' library (-ldl). */
49-
#undef HAVE_LIBDL
50-
5148
/* Define to 1 if you have the `nspr4' library (-lnspr4). */
5249
#undef HAVE_LIBNSPR4
5350

@@ -57,9 +54,6 @@
5754
/* Define to 1 if you have the `socket' library (-lsocket). */
5855
#undef HAVE_LIBSOCKET
5956

60-
/* Define to 1 if you have the `z' library (-lz). */
61-
#undef HAVE_LIBZ
62-
6357
/* Define to 1 if you have the <machine/types.h> header file. */
6458
#undef HAVE_MACHINE_TYPES_H
6559

configure

Lines changed: 0 additions & 146 deletions
Original file line numberDiff line numberDiff line change
@@ -5534,103 +5534,6 @@ $as_echo "yes" >&6; }
55345534
CFLAGS="$CFLAGS $crypto_CFLAGS"
55355535
LIBS="$crypto_LIBS $LIBS"
55365536
fi
5537-
else
5538-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5539-
$as_echo_n "checking for dlopen in -ldl... " >&6; }
5540-
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5541-
$as_echo_n "(cached) " >&6
5542-
else
5543-
ac_check_lib_save_LIBS=$LIBS
5544-
LIBS="-ldl $LIBS"
5545-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546-
/* end confdefs.h. */
5547-
5548-
/* Override any GCC internal prototype to avoid an error.
5549-
Use char because int might match the return type of a GCC
5550-
builtin and then its argument prototype would still apply. */
5551-
#ifdef __cplusplus
5552-
extern "C"
5553-
#endif
5554-
char dlopen ();
5555-
int
5556-
main ()
5557-
{
5558-
return dlopen ();
5559-
;
5560-
return 0;
5561-
}
5562-
_ACEOF
5563-
if ac_fn_c_try_link "$LINENO"; then :
5564-
ac_cv_lib_dl_dlopen=yes
5565-
else
5566-
ac_cv_lib_dl_dlopen=no
5567-
fi
5568-
rm -f core conftest.err conftest.$ac_objext \
5569-
conftest$ac_exeext conftest.$ac_ext
5570-
LIBS=$ac_check_lib_save_LIBS
5571-
fi
5572-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5573-
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5574-
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
5575-
cat >>confdefs.h <<_ACEOF
5576-
#define HAVE_LIBDL 1
5577-
_ACEOF
5578-
5579-
LIBS="-ldl $LIBS"
5580-
5581-
else
5582-
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdl" >&5
5583-
$as_echo "$as_me: WARNING: can't find libdl" >&2;}
5584-
fi
5585-
5586-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
5587-
$as_echo_n "checking for inflate in -lz... " >&6; }
5588-
if test "${ac_cv_lib_z_inflate+set}" = set; then :
5589-
$as_echo_n "(cached) " >&6
5590-
else
5591-
ac_check_lib_save_LIBS=$LIBS
5592-
LIBS="-lz $LIBS"
5593-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594-
/* end confdefs.h. */
5595-
5596-
/* Override any GCC internal prototype to avoid an error.
5597-
Use char because int might match the return type of a GCC
5598-
builtin and then its argument prototype would still apply. */
5599-
#ifdef __cplusplus
5600-
extern "C"
5601-
#endif
5602-
char inflate ();
5603-
int
5604-
main ()
5605-
{
5606-
return inflate ();
5607-
;
5608-
return 0;
5609-
}
5610-
_ACEOF
5611-
if ac_fn_c_try_link "$LINENO"; then :
5612-
ac_cv_lib_z_inflate=yes
5613-
else
5614-
ac_cv_lib_z_inflate=no
5615-
fi
5616-
rm -f core conftest.err conftest.$ac_objext \
5617-
conftest$ac_exeext conftest.$ac_ext
5618-
LIBS=$ac_check_lib_save_LIBS
5619-
fi
5620-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
5621-
$as_echo "$ac_cv_lib_z_inflate" >&6; }
5622-
if test "x$ac_cv_lib_z_inflate" = x""yes; then :
5623-
cat >>confdefs.h <<_ACEOF
5624-
#define HAVE_LIBZ 1
5625-
_ACEOF
5626-
5627-
LIBS="-lz $LIBS"
5628-
5629-
else
5630-
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz" >&5
5631-
$as_echo "$as_me: WARNING: can't find libz" >&2;}
5632-
fi
5633-
56345537
fi
56355538

56365539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_EncryptInit" >&5
@@ -5995,55 +5898,6 @@ $as_echo "no" >&6; }
59955898
fi
59965899

59975900

5998-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5999-
$as_echo_n "checking for dlopen in -ldl... " >&6; }
6000-
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
6001-
$as_echo_n "(cached) " >&6
6002-
else
6003-
ac_check_lib_save_LIBS=$LIBS
6004-
LIBS="-ldl $LIBS"
6005-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006-
/* end confdefs.h. */
6007-
6008-
/* Override any GCC internal prototype to avoid an error.
6009-
Use char because int might match the return type of a GCC
6010-
builtin and then its argument prototype would still apply. */
6011-
#ifdef __cplusplus
6012-
extern "C"
6013-
#endif
6014-
char dlopen ();
6015-
int
6016-
main ()
6017-
{
6018-
return dlopen ();
6019-
;
6020-
return 0;
6021-
}
6022-
_ACEOF
6023-
if ac_fn_c_try_link "$LINENO"; then :
6024-
ac_cv_lib_dl_dlopen=yes
6025-
else
6026-
ac_cv_lib_dl_dlopen=no
6027-
fi
6028-
rm -f core conftest.err conftest.$ac_objext \
6029-
conftest$ac_exeext conftest.$ac_ext
6030-
LIBS=$ac_check_lib_save_LIBS
6031-
fi
6032-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6033-
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6034-
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
6035-
cat >>confdefs.h <<_ACEOF
6036-
#define HAVE_LIBDL 1
6037-
_ACEOF
6038-
6039-
LIBS="-ldl $LIBS"
6040-
6041-
else
6042-
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdl" >&5
6043-
$as_echo "$as_me: WARNING: can't find libdl" >&2;}
6044-
fi
6045-
6046-
60475901

60485902
$as_echo "#define GCM 1" >>confdefs.h
60495903

configure.ac

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,6 @@ if test "$enable_openssl" = "yes"; then
250250
PKG_CHECK_MODULES([crypto], [libcrypto],
251251
[CFLAGS="$CFLAGS $crypto_CFLAGS"
252252
LIBS="$crypto_LIBS $LIBS"])
253-
else
254-
AC_CHECK_LIB([dl], [dlopen], [], [AC_MSG_WARN([can't find libdl])])
255-
AC_CHECK_LIB([z], [inflate], [], [AC_MSG_WARN([can't find libz])])
256253
fi
257254

258255
AC_SEARCH_LIBS([EVP_EncryptInit], [crypto],
@@ -298,8 +295,6 @@ elif test "$enable_wolfssl" = "yes"; then
298295
fi],
299296
[AC_MSG_RESULT([no])])
300297

301-
AC_CHECK_LIB([dl], [dlopen], [], [AC_MSG_WARN([can't find libdl])])
302-
303298
AC_DEFINE([GCM], [1], [Define this to use AES-GCM.])
304299
AC_DEFINE([WOLFSSL], [1], [Define this to use wolfSSL crypto.])
305300
AES_ICM_OBJS="crypto/cipher/aes_icm_wssl.o crypto/cipher/aes_gcm_wssl.o"

0 commit comments

Comments
 (0)