mirror of
https://github.com/tstack/lnav
synced 2024-11-01 21:40:34 +00:00
[build] add disable flag for system path inclusion
This commit is contained in:
parent
0fa78a3c9f
commit
783c23b62c
10
configure.ac
10
configure.ac
@ -15,9 +15,15 @@ CC="$PTHREAD_CC"
|
||||
|
||||
AX_CXX_COMPILE_STDCXX_14([noext], [mandatory])
|
||||
|
||||
if test x"${without-system-paths}" != x"yes"; then
|
||||
AC_ARG_ENABLE(
|
||||
[system-paths],
|
||||
AS_HELP_STRING([--disable-system-paths],
|
||||
[Add extra system paths]),,[enable_system_paths=yes])
|
||||
|
||||
if test x"${enable_system_paths}" != x"no"; then
|
||||
for defdir in /opt/local /usr/local; do
|
||||
if test -d "$defdir/include"; then
|
||||
echo "Adding include path: $defdir/include"
|
||||
CPPFLAGS="$CPPFLAGS -I$defdir/include"
|
||||
fi
|
||||
done
|
||||
@ -35,6 +41,8 @@ if test x"${without-system-paths}" != x"yes"; then
|
||||
LDFLAGS="$LDFLAGS -L$defdir/lib/x86_64-linux-gnu"
|
||||
fi
|
||||
done
|
||||
else
|
||||
echo "Not including extra system paths"
|
||||
fi
|
||||
|
||||
dnl abssrcdir is the absolute path to the source base (regardless of where
|
||||
|
Loading…
Reference in New Issue
Block a user