Skip to content
Snippets Groups Projects
Commit 44a00d58 authored by Brian Carrier's avatar Brian Carrier
Browse files

Added libewf path to CXXFLAGS in configure.ac for scenarios where path is...

Added libewf path to CXXFLAGS in configure.ac for scenarios where path is specified.  Patch by Willi Ballenthin
parent 07f63c4e
Branches
Tags
No related merge requests found
...@@ -83,6 +83,7 @@ AX_PTHREAD( [ ...@@ -83,6 +83,7 @@ AX_PTHREAD( [
# Not all compilers include /usr/local in the include and link path # Not all compilers include /usr/local in the include and link path
if test -d /usr/local/include; then if test -d /usr/local/include; then
CFLAGS="$CFLAGS -I/usr/local/include" CFLAGS="$CFLAGS -I/usr/local/include"
CXXFLAGS="$CFLAGS -I/usr/local/include" # Added this in case fiwalk needs it
LDFLAGS="$LDFLAGS -L/usr/local/lib" LDFLAGS="$LDFLAGS -L/usr/local/lib"
fi fi
...@@ -173,7 +174,8 @@ AS_IF([test "x$with_libewf" != "xno"], ...@@ -173,7 +174,8 @@ AS_IF([test "x$with_libewf" != "xno"],
# Test the dir if they specified something beyond yes/no # Test the dir if they specified something beyond yes/no
[AS_IF([test "x$with_libewf" != "xyes"], [AS_IF([test "x$with_libewf" != "xyes"],
[AS_IF([test -d ${with_libewf}/include], [AS_IF([test -d ${with_libewf}/include],
[CFLAGS="$CFLAGS -I${with_libewf}/include" [CFLAGS="$CFLAGS -I${with_libewf}/include" # TSK needs this
CXXFLAGS="$CXXFLAGS -I${with_libewf}/include" # fiwalk needs this
LDFLAGS="$LDFLAGS -L${with_libewf}/lib"], LDFLAGS="$LDFLAGS -L${with_libewf}/lib"],
# Dir given was not correct # Dir given was not correct
[AC_MSG_FAILURE([libewf directory not found at ${with_libewf}])]) [AC_MSG_FAILURE([libewf directory not found at ${with_libewf}])])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment