Skip to content

Commit

Permalink
libsframe needed on some systems
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Apr 14, 2024
1 parent 509a29c commit 4515e4a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 40 deletions.
78 changes: 39 additions & 39 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -9370,13 +9370,13 @@ _ACEOF
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_versionNumber in -lzstd" >&5
$as_echo_n "checking for ZSTD_versionNumber in -lzstd... " >&6; }
if ${ac_cv_lib_zstd_ZSTD_versionNumber+:} false; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyn_string_append in -liberty" >&5
$as_echo_n "checking for dyn_string_append in -liberty... " >&6; }
if ${ac_cv_lib_iberty_dyn_string_append+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lzstd $LIBS"
LIBS="-liberty $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Expand All @@ -9386,42 +9386,42 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
#ifdef __cplusplus
extern "C"
#endif
char ZSTD_versionNumber ();
char dyn_string_append ();
int
main ()
{
return ZSTD_versionNumber ();
return dyn_string_append ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_zstd_ZSTD_versionNumber=yes
ac_cv_lib_iberty_dyn_string_append=yes
else
ac_cv_lib_zstd_ZSTD_versionNumber=no
ac_cv_lib_iberty_dyn_string_append=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_versionNumber" >&5
$as_echo "$ac_cv_lib_zstd_ZSTD_versionNumber" >&6; }
if test "x$ac_cv_lib_zstd_ZSTD_versionNumber" = xyes; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iberty_dyn_string_append" >&5
$as_echo "$ac_cv_lib_iberty_dyn_string_append" >&6; }
if test "x$ac_cv_lib_iberty_dyn_string_append" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBZSTD 1
#define HAVE_LIBIBERTY 1
_ACEOF
LIBS="-lzstd $LIBS"
LIBS="-liberty $LIBS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyn_string_append in -liberty" >&5
$as_echo_n "checking for dyn_string_append in -liberty... " >&6; }
if ${ac_cv_lib_iberty_dyn_string_append+:} false; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
$as_echo_n "checking for gzseek in -lz... " >&6; }
if ${ac_cv_lib_z_gzseek+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-liberty $LIBS"
LIBS="-lz $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Expand All @@ -9431,42 +9431,42 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
#ifdef __cplusplus
extern "C"
#endif
char dyn_string_append ();
char gzseek ();
int
main ()
{
return dyn_string_append ();
return gzseek ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_iberty_dyn_string_append=yes
ac_cv_lib_z_gzseek=yes
else
ac_cv_lib_iberty_dyn_string_append=no
ac_cv_lib_z_gzseek=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iberty_dyn_string_append" >&5
$as_echo "$ac_cv_lib_iberty_dyn_string_append" >&6; }
if test "x$ac_cv_lib_iberty_dyn_string_append" = xyes; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
$as_echo "$ac_cv_lib_z_gzseek" >&6; }
if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBIBERTY 1
#define HAVE_LIBZ 1
_ACEOF
LIBS="-liberty $LIBS"
LIBS="-lz $LIBS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
$as_echo_n "checking for gzseek in -lz... " >&6; }
if ${ac_cv_lib_z_gzseek+:} false; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sframe_decode in -lsframe" >&5
$as_echo_n "checking for sframe_decode in -lsframe... " >&6; }
if ${ac_cv_lib_sframe_sframe_decode+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lz $LIBS"
LIBS="-lsframe $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Expand All @@ -9476,32 +9476,32 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
#ifdef __cplusplus
extern "C"
#endif
char gzseek ();
char sframe_decode ();
int
main ()
{
return gzseek ();
return sframe_decode ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_z_gzseek=yes
ac_cv_lib_sframe_sframe_decode=yes
else
ac_cv_lib_z_gzseek=no
ac_cv_lib_sframe_sframe_decode=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
$as_echo "$ac_cv_lib_z_gzseek" >&6; }
if test "x$ac_cv_lib_z_gzseek" = xyes; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sframe_sframe_decode" >&5
$as_echo "$ac_cv_lib_sframe_sframe_decode" >&6; }
if test "x$ac_cv_lib_sframe_sframe_decode" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBZ 1
#define HAVE_LIBSFRAME 1
_ACEOF
LIBS="-lz $LIBS"
LIBS="-lsframe $LIBS"
fi
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2451,9 +2451,9 @@ fi

AC_CHECK_HEADERS(bfd.h)
AC_CHECK_LIB(intl, libintl_fprintf)
AC_CHECK_LIB(zstd, ZSTD_versionNumber)
AC_CHECK_LIB(iberty, dyn_string_append)
AC_CHECK_LIB(z, gzseek)
AC_CHECK_LIB(sframe, sframe_decode)
AC_CHECK_LIB(bfd, bfd_openr)

AC_TRY_COMPILE([
Expand Down

0 comments on commit 4515e4a

Please sign in to comment.