Avoid printing "-I/usr/include" as this changes the default include order

(from Tim Waugh <twaugh@redhat.com>). Really check for entries in $cflags that
are also in $includedir.
Henning Meier-Geinitz <henning@meier-geinitz.de>
DEVEL_2_0_BRANCH-1
Henning Geinitz 2002-02-12 16:42:35 +00:00
rodzic a9f35d5063
commit 33422298f6
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -92,9 +92,12 @@ if test $# -gt 0; then
echo "-lsane ${LIBS}"
;;
--cflags)
unique_cflags="-I${includedir}"
unique_cflags=
if test "${includedir}" != "/usr/include"; then
unique_cflags="${unique_cflags} -I${includedir}"
fi
for i in $cflags; do
if test $i != $includedir; then
if test "${i}" != "-I${includedir}"; then
unique_cflags="${unique_cflags} $i"
fi
done