diff options
author | Caleb Tennis <caleb@gentoo.org> | 2003-05-05 14:20:57 +0000 |
---|---|---|
committer | Caleb Tennis <caleb@gentoo.org> | 2003-05-05 14:20:57 +0000 |
commit | a9e53f5339d0caf72eb69b873f57102ce0c95b96 (patch) | |
tree | c7d4afb6d92b92133c7b7397617195a6413de0b4 /dev-db/mysqlcc/files/mysqlcc-0.9.2-libmysqlclientac.patch | |
parent | Version bump, keeping in ~86. (diff) | |
download | gentoo-2-a9e53f5339d0caf72eb69b873f57102ce0c95b96.tar.gz gentoo-2-a9e53f5339d0caf72eb69b873f57102ce0c95b96.tar.bz2 gentoo-2-a9e53f5339d0caf72eb69b873f57102ce0c95b96.zip |
Version bump, keeping in ~86.
Diffstat (limited to 'dev-db/mysqlcc/files/mysqlcc-0.9.2-libmysqlclientac.patch')
-rw-r--r-- | dev-db/mysqlcc/files/mysqlcc-0.9.2-libmysqlclientac.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-db/mysqlcc/files/mysqlcc-0.9.2-libmysqlclientac.patch b/dev-db/mysqlcc/files/mysqlcc-0.9.2-libmysqlclientac.patch new file mode 100644 index 000000000000..f6db1a6a6bd1 --- /dev/null +++ b/dev-db/mysqlcc/files/mysqlcc-0.9.2-libmysqlclientac.patch @@ -0,0 +1,46 @@ +--- acinclude.m4.orig 2003-03-04 01:07:26.000000000 -0800 ++++ acinclude.m4 2003-03-04 12:46:35.000000000 -0800 +@@ -6,34 +6,15 @@ + AC_MSG_CHECKING([for libmysqlclient]) + AC_MSG_RESULT() + +- mysql_ok=no +- +- SAVE_LIBS=$LIBS +- +- mysql_lib="$mysql_lib /usr/lib /usr/lib/mysql \ +- /usr/local/lib /usr/local/lib/mysql \ +- /usr/local/mysql/lib" +- +- for dir in $mysql_lib; do +- if test "x$mysql_found" != "xyes" +- then +- AC_CHECK_FILE("$dir/libmysqlclient.a", +- mysql_found=yes, mysql_found=no) +- if test "x$mysql_found" = "xyes" +- then +- LIBS="-L$dir $SAVE_LIBS $LIBZ_LIB" +- MYSQL_LIB="$dir/libmysqlclient.a $LIBZ_LIB" +- AC_SUBST(MYSQL_LIB) +- AC_CHECK_LIB(mysqlclient, mysql_real_connect, +- mysql_ok=yes, mysql_ok=no) +- fi +- fi +- done +- +- if test "x$mysql_ok" != "xyes" +- then +- AC_MSG_ERROR([Could not find libmysqlclient in '$mysql_lib']) +- fi ++ # dependencies are guaranteed to ensure we have mysql_config ++ # available, and it is a much cleaner way of discovering what ++ # must be linked against libmysqlclient, that transparently ++ # covers USE="ssl" and other issues. ++ # Robert Coie <rac@gentoo.org> 2003.03.04 ++ ++ mysql_ok=yes ++ MYSQL_LIB=`mysql_config --libs` ++ LIBS="${LIBS} ${MYSQL_LIB}" + ]) + + |