Skip to content

Commit

Permalink
make sure iniparser include path is in search path for all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Stavestrand authored and Karl Stavestrand committed Jun 8, 2024
1 parent 4552025 commit 61092a5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,12 @@ dnl ######################
AC_CHECK_LIB(iniparser,iniparser_load, have_iniparser=yes, have_iniparser=no)
if [[ $have_iniparser = "yes" ]] ; then
LIBS="$LIBS -liniparser"
CPPFLAGS="$CPPFLAGS -I/usr/include/iniparser"
if [[ $build_mac = "yes" ]] ; then
CPPFLAGS="$CPPFLAGS -I/usr/local/include/iniparser/"
CPPFLAGS="$CPPFLAGS -I/opt/homebrew/include/iniparser/"
else
CPPFLAGS="$CPPFLAGS -I/usr/include/iniparser"
fi
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <iniparser.h>]],
[[dictionary* ini;
const char *keys[3];
Expand Down

0 comments on commit 61092a5

Please sign in to comment.