summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-01-23 15:07:01 -0800
committerGuy Harris <guy@alum.mit.edu>2011-01-23 15:07:01 -0800
commit7254c152b316bd9f0d88b9522eaa2c2405821a76 (patch)
tree9953bde9342bbf204e7d40c3a5b04ecd5f435f68 /aclocal.m4
parent869efa23a3e4cbc1f2875c672ecdf891a5a54218 (diff)
downloadtcpdump-7254c152b316bd9f0d88b9522eaa2c2405821a76.tar.gz
Point people to the autoconf documentation on shell substitution.
Hopefully this will keep people from sending "helpful" patches that break things.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m416
1 files changed, 15 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 91896b34..ce746a87 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -315,6 +315,13 @@ AC_DEFUN(AC_LBL_LIBPCAP,
# Found - use it to get the include flags for
# libpcap and the flags to link with libpcap.
#
+ # Please read section 11.6 "Shell Substitutions"
+ # in the autoconf manual before doing anything
+ # to this that involves quoting. Especially note
+ # the statement "There is just no portable way to use
+ # double-quoted strings inside double-quoted back-quoted
+ # expressions (pfew!)."
+ #
cflags=`"$PCAP_CONFIG" --cflags`
$2="$cflags $$2"
libpcap=`"$PCAP_CONFIG" --libs`
@@ -379,7 +386,14 @@ AC_DEFUN(AC_LBL_LIBPCAP,
# The libpcap directory has a pcap-config script.
# Use it to get any additioal libraries needed
# to link with the libpcap archive library in
- # that directory
+ # that directory.
+ #
+ # Please read section 11.6 "Shell Substitutions"
+ # in the autoconf manual before doing anything
+ # to this that involves quoting. Especially note
+ # the statement "There is just no portable way to use
+ # double-quoted strings inside double-quoted back-quoted
+ # expressions (pfew!)."
#
additional_libs=`"$PCAP_CONFIG" --additional-libs --static`
libpcap="$libpcap $additional_libs"