gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnutls-dev] [PATCH] add --la-file to *-config scripts


From: Joe Orton
Subject: [gnutls-dev] [PATCH] add --la-file to *-config scripts
Date: Sun, 17 Oct 2004 20:43:17 +0100
User-agent: Mutt/1.4.1i

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]