Skip to content

Commit d9bebfb

Browse files
skurtnFelipe Zimmerle
authored and
Felipe Zimmerle
committed
Compiles against ssdeep in non-standard location
Issue 871: (*nix) Tacks on the include and lib directory when a the user specifies a path for ssdeep in an alternate location.
1 parent 2566600 commit d9bebfb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

build/find_ssdeep.m4

+6-3
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,23 @@ AS_IF([test "x${test_paths}" != "x"], [
2525
AC_MSG_CHECKING([for ssdeep path])
2626
2727
SSDEEP_LIB_NAME="fuzzy"
28+
ssdeep_dir=
2829
2930
if test -z "$withssdeep" -o "$withssdeep" = "yes"; then
3031
for i in ${test_paths}; do
3132
if test -f "$i/include/fuzzy.h"; then
32-
SSDEEP_CFLAGS="-I$i"
33+
SSDEEP_CFLAGS="-I$i/include"
34+
ssdeep_dir=$i
3335
fi
3436
done
3537
else
3638
if test -f "$withssdeep/include/fuzzy.h"; then
37-
SSDEEP_CFLAGS="-I$i"
39+
SSDEEP_CFLAGS="-I$withssdeep/include"
40+
ssdeep_dir=$withssdeep
3841
fi
3942
fi
4043
41-
SSDEEP_LDFLAGS="-lfuzzy"
44+
SSDEEP_LDFLAGS="-L$ssdeep_dir/lib -lfuzzy"
4245
SSDEEP_LDADD="-lfuzzy"
4346
4447
])

0 commit comments

Comments
 (0)