[gnutls-dev] libtasn1-0.2.13 patches

Albert Chin gnutls-dev at mlists.thewrittenword.com
Fri Jan 21 17:46:52 CET 2005


1. [lib/libtasn1.pc, configure.in, lib/Makefile.am]
   Add pkg-config file.
2. [configure.in]
   Convert to use of $GCC to test if GCC is available.
3. [configure.in]
   Redirect STDERR to /dev/null when determining if GNU as available
   to avoid useless error message if not.
4. [configure.in]
   Remove extra commas after check for bzero memset memmove bcopy.
5. [configure.in]
   Convert to AC_MSG_NOTICE rather than AC_MSG_RESULT for status
   messages.

-- 
albert chin (china at thewrittenword.com)

-- snip snip
--- /dev/null	2004-11-12 10:15:27.000000000 -0600
+++ lib/libtasn1.pc.in	2005-01-21 03:20:21.000000000 -0600
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libtasn1
+Description: Library for ASN.1 and DER manipulation
+Version: @VERSION@
+Libs: -L${libdir} -ltasn1
+Cflags: -I${includedir}
--- configure.in.orig	2005-01-21 03:01:18.000000000 -0600
+++ configure.in	2005-01-21 10:40:29.000000000 -0600
@@ -20,9 +20,7 @@
 AC_PROG_INSTALL
 AM_MISSING_PROG(PERL,perl,$missing_dir)
 
-AC_MSG_RESULT([***
-*** Detecting compiler options...
-])
+AC_MSG_NOTICE([Detecting compiler options])
 AC_C_CONST
 AC_C_INLINE
 
@@ -42,13 +40,13 @@
 affect compiling.])
 )
 
-if test $ac_cv_c_compiler_gnu != no; then
+if test "$GCC" = "yes"; then
 
         CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wstrict-prototypes"
 
 	AC_MSG_CHECKING([whether we have GNU assembler])
 	
-	GAS=`as --version < /dev/null|grep GNU`
+	GAS=`as --version < /dev/null 2>/dev/null|grep GNU`
 	if test "$GAS"; then
 	  CFLAGS="${CFLAGS} -pipe"
 	  AC_MSG_RESULT(yes)
@@ -58,19 +56,15 @@
 fi
 
 
-AC_MSG_RESULT([***
-*** Detecting C library capabilities...
-])
+AC_MSG_NOTICE([Detecting C library capabilities])
 
 AC_HEADER_STDC
 AC_CHECK_HEADERS(getopt.h unistd.h strings.h inttypes.h stdint.h)
-AC_CHECK_FUNCS(bzero memset memmove bcopy,,)
+AC_CHECK_FUNCS(bzero memset memmove bcopy)
 AC_CHECK_FUNCS(getopt_long)
 AC_FUNC_ALLOCA
 
-AC_MSG_RESULT([***
-*** Detecting system's parameters...
-])
+AC_MSG_NOTICE([Detecting system's parameters])
 
 AC_C_BIGENDIAN
 
@@ -80,9 +74,7 @@
 AC_CHECK_SIZEOF(unsigned short int, 2)
 AC_CHECK_SIZEOF(unsigned char, 1)
 
-AC_MSG_RESULT([***
-*** Detecting options for shared libraries...
-])
+AC_MSG_NOTICE([Detecting options for shared libraries])
 AM_PROG_LIBTOOL
 
 LIBTASN1_LIBS="-L${libdir} -ltasn1 $LIBS"
@@ -99,5 +91,6 @@
 GTK_DOC_CHECK(1.2)
 
 AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile lib/Makefile \
-	lib/libtasn1-config doc/Makefile doc/reference/Makefile])
+	lib/libtasn1.pc lib/libtasn1-config doc/Makefile \
+	doc/reference/Makefile])
 AC_OUTPUT
--- lib/Makefile.am.orig	2005-01-21 03:06:56.000000000 -0600
+++ lib/Makefile.am	2005-01-21 10:41:11.000000000 -0600
@@ -5,6 +5,9 @@
 m4datadir = $(datadir)/aclocal
 dist_m4data_DATA = libtasn1.m4
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libtasn1.pc
+
 lib_LTLIBRARIES = libtasn1.la
 
 libtasn1_la_SOURCES = libtasn1.h der.h mem.h gstr.h errors.h defines.h	\



More information about the Gnutls-dev mailing list