Skip to content

Commit

Permalink
Use mysql_config
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Feb 16, 2015
1 parent b894582 commit 26dac28
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ if [ "$MYSQL_INC" ]; then
exit 0
fi

# If the mysql_config command is availble, use that
if [ $(command -v mysql_config) ]; then
echo "Found mysql_config"
MYSQL_CFLAGS=$(mysql_config --cflags)
MYSQL_LIBS=$(mysql_config --libs)
echo "PKG_CPPFLAGS=$MYSQL_CFLAGS" > src/Makevars
echo "PKG_LIBS=$MYSQL_LIBS" >> src/Makevars
exit 0
fi

# Force static linking on OSX to support redistributable binary packages.
if [ $(echo "$OSTYPE" | grep "darwin") ]; then

Expand Down

0 comments on commit 26dac28

Please sign in to comment.