[gnutls-dev] [PATCH] add --la-file to *-config scripts
Joe Orton
joe at manyfish.co.uk
Sun Oct 17 21:43:17 CEST 2004
It's preferable to able to link directly against the appropriate .la
files from a project using libtool: this patch adds --la-file arguments
to the *-config scripts to expose the location of the .la files to allow
this.
Index: lib/libgnutls-config.in
===================================================================
RCS file: /cvs/gnutls/gnutls/lib/libgnutls-config.in,v
retrieving revision 2.4
diff -u -r2.4 libgnutls-config.in
--- lib/libgnutls-config.in 20 May 2002 10:43:35 -0000 2.4
+++ lib/libgnutls-config.in 17 Oct 2004 19:37:56 -0000
@@ -6,6 +6,7 @@
gnutls_libs="@LIBGNUTLS_LIBS@"
gnutls_cflags="@LIBGNUTLS_CFLAGS@"
+gnutls_la_file="@libdir@/libgnutls.la"
usage()
{
@@ -58,6 +59,9 @@
--libs)
echo_libs=yes
;;
+ --la-file)
+ echo_la_file=yes
+ ;;
*)
usage 1 1>&2
;;
@@ -83,6 +87,10 @@
done
fi
echo $includes $gnutls_cflags
+fi
+
+if test "$echo_la_file" = "yes"; then
+ echo ${gnutls_la_file}
fi
if test "$echo_libs" = "yes"; then
Index: libextra/libgnutls-extra-config.in
===================================================================
RCS file: /cvs/gnutls/gnutls/libextra/libgnutls-extra-config.in,v
retrieving revision 1.1
diff -u -r1.1 libgnutls-extra-config.in
--- libextra/libgnutls-extra-config.in 20 May 2002 12:51:02 -0000 1.1
+++ libextra/libgnutls-extra-config.in 17 Oct 2004 19:37:56 -0000
@@ -6,6 +6,7 @@
gnutls_libs="@LIBGNUTLS_EXTRA_LIBS@"
gnutls_cflags="@LIBGNUTLS_EXTRA_CFLAGS@"
+gnutls_la_file="@libdir@/libgnutls-extra.la"
usage()
{
@@ -58,6 +59,9 @@
--libs)
echo_libs=yes
;;
+ --la-file)
+ echo_la_file=yes
+ ;;
*)
usage 1 1>&2
;;
@@ -83,6 +87,10 @@
done
fi
echo $includes $gnutls_cflags
+fi
+
+if test "$echo_la_file" = "yes"; then
+ echo ${gnutls_la_file}
fi
if test "$echo_libs" = "yes"; then
More information about the Gnutls-devel
mailing list