aboutsummaryrefslogtreecommitdiff
path: root/pcap-config.in
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2022-09-26 17:17:00 -0700
committerGuy Harris <gharris@sonic.net>2022-09-26 17:17:00 -0700
commit2fda02357aeba9bdd3223e59aa7541fc144db10f (patch)
tree58ce52817aeee79184b424f93b78bd274119afbf /pcap-config.in
parentc4f093fdb185c6c579c2e1b78ef16abc1959d530 (diff)
pcap-config: expand @PACKAGE_NAME@ inline.
Don't define a variable as "@PACKAGE_NAME@" and then use it, just use @PACKAGE_NAME@ directly. Also, use -l@PACKAGE_NAME@ in the --libs --static code, for consistency.
Diffstat (limited to 'pcap-config.in')
-rw-r--r--pcap-config.in9
1 files changed, 4 insertions, 5 deletions
diff --git a/pcap-config.in b/pcap-config.in
index f43d3169..ec56cfcd 100644
--- a/pcap-config.in
+++ b/pcap-config.in
@@ -14,7 +14,6 @@ includedir="@includedir@"
libdir="@libdir@"
V_RPATH_OPT="@V_RPATH_OPT@"
LIBS="@LIBS@"
-PACKAGE_NAME="@PACKAGE_NAME@"
static=0
show_cflags=0
@@ -73,7 +72,7 @@ then
#
if [ "$show_cflags" = 1 -a "$show_libs" = 1 ]
then
- echo "-I$includedir $LPATH -lpcap $LIBS"
+ echo "-I$includedir $LPATH -l@PACKAGE_NAME@ $LIBS"
elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ]
then
echo "-I$includedir $LPATH $LIBS"
@@ -82,7 +81,7 @@ then
echo "-I$includedir"
elif [ "$show_libs" = 1 ]
then
- echo "$LPATH -lpcap $LIBS"
+ echo "$LPATH -l@PACKAGE_NAME@ $LIBS"
elif [ "$show_additional_libs" = 1 ]
then
echo "$LIBS"
@@ -94,7 +93,7 @@ else
#
if [ "$show_cflags" = 1 -a "$show_libs" = 1 ]
then
- echo "-I$includedir $LPATH $RPATH -l$PACKAGE_NAME"
+ echo "-I$includedir $LPATH $RPATH -l@PACKAGE_NAME@"
elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ]
then
echo "-I$includedir"
@@ -103,6 +102,6 @@ else
echo "-I$includedir"
elif [ "$show_libs" = 1 ]
then
- echo "$LPATH $RPATH -l$PACKAGE_NAME"
+ echo "$LPATH $RPATH -l@PACKAGE_NAME@"
fi
fi