summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugh McMaster <hugh.mcmaster@outlook.com>2019-07-29 21:34:03 +1000
committerHugh McMaster <hugh.mcmaster@outlook.com>2019-07-29 21:52:41 +1000
commitb0c4b62ed386f4962988fb0bef79153213ba5174 (patch)
treed69856b4bc3dad0dff9c4d903283bcfb7115090a
parent9d3cb2e4c51b2a37874c23a0278a8b7a7f287331 (diff)
downloadlibxslt-b0c4b62ed386f4962988fb0bef79153213ba5174.tar.gz
xslt-config.in: Simplify basic library handling
-rw-r--r--xslt-config.in11
1 files changed, 2 insertions, 9 deletions
diff --git a/xslt-config.in b/xslt-config.in
index 38342863..e40ea299 100644
--- a/xslt-config.in
+++ b/xslt-config.in
@@ -29,8 +29,6 @@ if test $# -eq 0; then
usage 1
fi
-libs=false
-
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
@@ -81,7 +79,8 @@ while test $# -gt 0; do
;;
--libs)
- libs=true
+ libs="@XSLT_LIBDIR@ @XSLT_LIBS@ @EXTRA_LIBS@"
+ all_flags="$all_flags $libs"
;;
*)
@@ -92,12 +91,6 @@ while test $# -gt 0; do
shift
done
-the_libs="@XSLT_LIBDIR@ @XSLT_LIBS@ @EXTRA_LIBS@"
-
-if $libs; then
- all_flags="$all_flags $the_libs"
-fi
-
if test -z "$all_flags" || test "x$all_flags" = "x "; then
exit 1
fi