[Pcsclite-cvs-commit] CVS PCSC
CVS User rousseau
ludovic.rousseau@free.fr
Wed, 23 Feb 2005 07:31:55 -0700
Update of /cvsroot/pcsclite/PCSC
In directory haydn:/tmp/cvs-serv28946
Modified Files:
configure.in
Log Message:
simplify the detection and use of strlcpy and strlcat
--- /cvsroot/pcsclite/PCSC/configure.in 2005/01/16 17:36:49 1.66
+++ /cvsroot/pcsclite/PCSC/configure.in 2005/02/23 14:31:55 1.67
@@ -109,14 +109,7 @@
AC_CHECK_FUNCS(daemon flock getopt_long nanosleep strerror vsnprintf)
dnl strlcpy, strlcat from OpenBSD
-AC_CHECK_FUNC(strlcpy,
- need_strlcpy=false; AC_DEFINE(HAVE_STRLCPY, 1, [have strlcpy])
- , need_strlcpy=true)
-AM_CONDITIONAL(NEED_STRLCPY, test x$need_strlcpy=xtrue)
-AC_CHECK_FUNC(strlcat,
- need_strlcat=false; AC_DEFINE(HAVE_STRLCAT, 1, [have strlcat])
- , need_strlcat=true)
-AM_CONDITIONAL(NEED_STRLCAT, test x$need_strlcat=xtrue)
+AC_CHECK_FUNCS(strlcpy strlcat)
dnl C Compiler features
AC_C_INLINE
@@ -311,9 +304,6 @@
extended_apdu="#undef PCSCLITE_ENHANCED_MESSAGING"
fi
-AC_MSG_RESULT([use internal strlcpy : $need_strlcpy])
-AC_MSG_RESULT([use internal strlcat : $need_strlcat])
-
dnl warning about pthread
if test x${threadsafe} = xtrue ; then
AC_DEFINE(USE_THREAD_SAFETY, 1, [enable client side thread safety.])