mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-04 08:15:15 +00:00
Add configure check for gzclearerr() when using system zlib.
This commit is contained in:
20
configure
vendored
20
configure
vendored
@@ -26241,9 +26241,9 @@ fi
|
|||||||
|
|
||||||
case "$enable_zlib" in
|
case "$enable_zlib" in
|
||||||
yes)
|
yes)
|
||||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzclearerr in -lz" >&5
|
||||||
printf %s "checking for gzdopen in -lz... " >&6; }
|
printf %s "checking for gzclearerr in -lz... " >&6; }
|
||||||
if test ${ac_cv_lib_z_gzdopen+y}
|
if test ${ac_cv_lib_z_gzclearerr+y}
|
||||||
then :
|
then :
|
||||||
printf %s "(cached) " >&6
|
printf %s "(cached) " >&6
|
||||||
else $as_nop
|
else $as_nop
|
||||||
@@ -26255,28 +26255,28 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|||||||
/* Override any GCC internal prototype to avoid an error.
|
/* Override any GCC internal prototype to avoid an error.
|
||||||
Use char because int might match the return type of a GCC
|
Use char because int might match the return type of a GCC
|
||||||
builtin and then its argument prototype would still apply. */
|
builtin and then its argument prototype would still apply. */
|
||||||
char gzdopen ();
|
char gzclearerr ();
|
||||||
int
|
int
|
||||||
main (void)
|
main (void)
|
||||||
{
|
{
|
||||||
return gzdopen ();
|
return gzclearerr ();
|
||||||
;
|
;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
_ACEOF
|
_ACEOF
|
||||||
if ac_fn_c_try_link "$LINENO"
|
if ac_fn_c_try_link "$LINENO"
|
||||||
then :
|
then :
|
||||||
ac_cv_lib_z_gzdopen=yes
|
ac_cv_lib_z_gzclearerr=yes
|
||||||
else $as_nop
|
else $as_nop
|
||||||
ac_cv_lib_z_gzdopen=no
|
ac_cv_lib_z_gzclearerr=no
|
||||||
fi
|
fi
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
LIBS=$ac_check_lib_save_LIBS
|
LIBS=$ac_check_lib_save_LIBS
|
||||||
fi
|
fi
|
||||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzclearerr" >&5
|
||||||
printf "%s\n" "$ac_cv_lib_z_gzdopen" >&6; }
|
printf "%s\n" "$ac_cv_lib_z_gzclearerr" >&6; }
|
||||||
if test "x$ac_cv_lib_z_gzdopen" = xyes
|
if test "x$ac_cv_lib_z_gzclearerr" = xyes
|
||||||
then :
|
then :
|
||||||
|
|
||||||
for ac_header in zlib.h
|
for ac_header in zlib.h
|
||||||
|
@@ -3584,7 +3584,7 @@ dnl prepend the include dir to make sure we get the right zlib header.
|
|||||||
dnl
|
dnl
|
||||||
case "$enable_zlib" in
|
case "$enable_zlib" in
|
||||||
yes)
|
yes)
|
||||||
AC_CHECK_LIB(z, gzdopen, [
|
AC_CHECK_LIB(z, gzclearerr, [
|
||||||
AC_CHECK_HEADERS([zlib.h], [ZLIB="-lz"], [enable_zlib=builtin])
|
AC_CHECK_HEADERS([zlib.h], [ZLIB="-lz"], [enable_zlib=builtin])
|
||||||
])
|
])
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user