diff options
| author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2015-01-14 17:16:57 -0300 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-01-14 22:05:32 +0100 |
| commit | 29a254bdb13a6700a3f7ed4238a589b1c7201f7a (patch) | |
| tree | 666ab7d039d0ddb91d1f1ec70fbb88df2d6096ab /package/rsyslog/0001-configure.ac-make-mysql-support-cross-compile-friendly.patch | |
| parent | 82e4f72546248b1b9abde9e9babffc7428071180 (diff) | |
| download | buildroot-29a254bdb13a6700a3f7ed4238a589b1c7201f7a.tar.gz buildroot-29a254bdb13a6700a3f7ed4238a589b1c7201f7a.zip | |
rsyslog: enable sql support
Enable support for mysql and pgsql.
Patches sent upstream (pull request on github).
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/rsyslog/0001-configure.ac-make-mysql-support-cross-compile-friendly.patch')
| -rw-r--r-- | package/rsyslog/0001-configure.ac-make-mysql-support-cross-compile-friendly.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/package/rsyslog/0001-configure.ac-make-mysql-support-cross-compile-friendly.patch b/package/rsyslog/0001-configure.ac-make-mysql-support-cross-compile-friendly.patch new file mode 100644 index 0000000000..74a144da21 --- /dev/null +++ b/package/rsyslog/0001-configure.ac-make-mysql-support-cross-compile-friendly.patch @@ -0,0 +1,53 @@ +From b095b56b7cf96a5b1a5e411b6da14b5e9f237a43 Mon Sep 17 00:00:00 2001 +From: Gustavo Zacarias <gustavo@zacarias.com.ar> +Date: Wed, 14 Jan 2015 10:07:50 -0300 +Subject: [PATCH] configure.ac: make mysql support cross-compile friendly + +When cross-compiling mysql_config shouldn't be expected to be in PATH +since normally this would point to distribution mysql rather than cross, +which can be of a totally different architecture. + +Change it so we can use ac_cv_prog_MYSQL_CONFIG to point to the real one. + +Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> +--- + configure.ac | 15 ++++++++------- + 1 file changed, 8 insertions(+), 7 deletions(-) + +diff --git a/configure.ac b/configure.ac +index ad7274c..4e662dc 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -547,21 +547,22 @@ AC_ARG_ENABLE(mysql, + ) + if test "x$enable_mysql" = "xyes"; then + AC_CHECK_PROG( +- [HAVE_MYSQL_CONFIG], ++ [MYSQL_CONFIG], + [mysql_config], +- [yes],,, ++ [mysql_config], ++ [no],, + ) +- if test "x${HAVE_MYSQL_CONFIG}" != "xyes"; then +- AC_MSG_FAILURE([mysql_config not found in PATH - usually a package named mysql-dev, libmysql-dev or similar, is missing - install it to fix this issue]) ++ if test "x${MYSQL_CONFIG}" = "xno"; then ++ AC_MSG_FAILURE([mysql_config not found - usually a package named mysql-dev, libmysql-dev or similar, is missing - install it to fix this issue]) + fi + AC_CHECK_LIB( + [mysqlclient], + [mysql_init], +- [MYSQL_CFLAGS=`mysql_config --cflags` +- MYSQL_LIBS=`mysql_config --libs` ++ [MYSQL_CFLAGS=`$MYSQL_CONFIG --cflags` ++ MYSQL_LIBS=`$MYSQL_CONFIG --libs` + ], + [AC_MSG_FAILURE([MySQL library is missing])], +- [`mysql_config --libs`] ++ [`$MYSQL_CONFIG --libs`] + ) + AC_MSG_CHECKING(if we have mysql_library_init) + save_CFLAGS="$CFLAGS" +-- +2.0.5 + |

