Skip to content

Commit

Permalink
Fix more bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
albinahlback committed Oct 21, 2024
1 parent 4438414 commit bec9543
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
11 changes: 9 additions & 2 deletions acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,15 @@ then
tmp=`$PKG_CONFIG --cflags-only-other $withpath $1 | sed 's/\(-D\w\+\)\(\|=\w\+\)//g' | sed 's/ / /g'` dnl ' Fix Vim syntax
eval ${tmpalias}_CFLAGS="\${tmp}"
else
eval ${tmpalias}_LDFLAGS="-L\${2}"
eval ${tmpalias}_CPPFLAGS="-I\${3}"
if test "x${2}" != "x";
then
eval ${tmpalias}_LDFLAGS="-L\${2}"
fi
if test "x${3}" != "x";
then
eval ${tmpalias}_CPPFLAGS="-I\${3}"
fi
fi
])

Expand Down
22 changes: 18 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -568,12 +568,26 @@ fi
for lib in $library_dependencies;
do
eval "tmp=\"\${${lib}_CPPFLAGS}\""
eval "tmp2=\"\${${lib}_includedir}\""
CPPFLAGS="$CPPFLAGS $tmp -I$tmp2"
if test "x$tmp" != "x";
then
CPPFLAGS="$CPPFLAGS $tmp"
fi
eval "tmp=\"\${${lib}_includedir}\""
if test "x$tmp" != "x";
then
CPPFLAGS="$CPPFLAGS -I$tmp"
fi

eval "tmp=\"\${${lib}_LDFLAGS}\""
eval "tmp2=\"\${${lib}_libdir}\""
LDFLAGS="$LDFLAGS $tmp -L$tmp2"
if test "x$tmp" != "x";
then
LDFLAGS="$LDFLAGS -L$tmp"
fi
eval "tmp=\"\${${lib}_libdir}\""
if test "x$tmp" != "x";
then
LDFLAGS="$LDFLAGS -L$tmp"
fi
done

################################################################################
Expand Down

0 comments on commit bec9543

Please sign in to comment.