Added a --libtool option, which returns the absolute path to the libtool convenience library.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
diff --git a/builds/cygwin/freetype-config.in b/builds/cygwin/freetype-config.in
index b32b126..577626d 100644
--- a/builds/cygwin/freetype-config.in
+++ b/builds/cygwin/freetype-config.in
@@ -13,6 +13,7 @@ Options:
[--exec-prefix[=DIR]]
[--version]
[--libs]
+ [--libtool]
[--cflags]
EOF
exit $1
@@ -53,6 +54,9 @@ while test $# -gt 0; do
--libs)
echo_libs=yes
;;
+ --libtool)
+ echo_libtool=yes
+ ;;
*)
usage 1 1>&2
;;
@@ -78,5 +82,9 @@ if test "$echo_libs" = "yes"; then
libs="-lfreetype"
echo -L@libdir@ $libs
fi
+if test "$echo_libtool" = "yes"; then
+ convlib="libfreetype.la"
+ echo @libdir@/$convlib
+fi
# EOF
diff --git a/builds/unix/freetype-config.in b/builds/unix/freetype-config.in
index b32b126..577626d 100644
--- a/builds/unix/freetype-config.in
+++ b/builds/unix/freetype-config.in
@@ -13,6 +13,7 @@ Options:
[--exec-prefix[=DIR]]
[--version]
[--libs]
+ [--libtool]
[--cflags]
EOF
exit $1
@@ -53,6 +54,9 @@ while test $# -gt 0; do
--libs)
echo_libs=yes
;;
+ --libtool)
+ echo_libtool=yes
+ ;;
*)
usage 1 1>&2
;;
@@ -78,5 +82,9 @@ if test "$echo_libs" = "yes"; then
libs="-lfreetype"
echo -L@libdir@ $libs
fi
+if test "$echo_libtool" = "yes"; then
+ convlib="libfreetype.la"
+ echo @libdir@/$convlib
+fi
# EOF