Skip to content

Commit

Permalink
Merge pull request #16 from umireon/do-not-force-path
Browse files Browse the repository at this point in the history
Do not force include and library dir in configure
  • Loading branch information
sshock authored Nov 24, 2016
2 parents 57e3a32 + 20ed12d commit e46567b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ ACX_PTHREAD()
if test x"${cross_compiling}" = "xno" ; then
# Bring additional directories where things might be found into our
# search path. I don't know why autoconf doesn't do this by default
for spfx in /usr/local /opt/local /sw ${prefix} ; do
for spfx in ${prefix} /sw /opt/local /usr/local ; do
AC_MSG_NOTICE([checking ${spfx}/include])
if test -d ${spfx}/include; then
CPPFLAGS="-I${spfx}/include $CPPFLAGS"
LDFLAGS="-L${spfx}/lib $LDFLAGS"
CPPFLAGS="$CPPFLAGS -I${spfx}/include"
LDFLAGS="$LDFLAGS -L${spfx}/lib"
AC_MSG_NOTICE([ *** ADDING ${spfx}/include to CPPFLAGS *** ])
AC_MSG_NOTICE([ *** ADDING ${spfx}/lib to LDFLAGS *** ])
fi
Expand Down

0 comments on commit e46567b

Please sign in to comment.