From: Arran Cudbard-Bell Date: Fri, 7 Jun 2024 03:02:42 +0000 (-0400) Subject: Fixup configure script to look for MariaDB specifically X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28e9972d1ac99898098ac6663d92bb67e1d718a2;p=thirdparty%2Ffreeradius-server.git Fixup configure script to look for MariaDB specifically --- diff --git a/src/modules/rlm_sql/drivers/rlm_sql_mysql/configure b/src/modules/rlm_sql/drivers/rlm_sql_mysql/configure index a375d4e3889..78c3fede504 100755 --- a/src/modules/rlm_sql/drivers/rlm_sql_mysql/configure +++ b/src/modules/rlm_sql/drivers/rlm_sql_mysql/configure @@ -3296,7 +3296,7 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -for ac_prog in mariadb_config mysql_config +for ac_prog in mariadb_config do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 @@ -3346,14 +3346,13 @@ done - if test "x$MYSQL_CONFIG" != "x"; then mysql_libs="$(${MYSQL_CONFIG} --libs_r)" old_LIBS="$LIBS" LIBS="$mysql_libs $LIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r (using ${MYSQL_CONFIG})" >&5 -printf %s "checking for mysql_init in -lmysqlclient_r (using ${MYSQL_CONFIG})... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_get_socket in -lmysqlclient_r (using ${MYSQL_CONFIG})" >&5 +printf %s "checking for mysql_get_socket in -lmysqlclient_r (using ${MYSQL_CONFIG})... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -3367,11 +3366,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #ifdef __cplusplus extern "C" #endif -char mysql_init (void); +char mysql_get_socket (void); int main (void) { -return mysql_init (); +return mysql_get_socket (); ; return 0; } @@ -3400,8 +3399,8 @@ printf "%s\n" "no" >&6; } old_LIBS="$LIBS" LIBS="$mysql_libs $LIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient (using ${MYSQL_CONFIG})" >&5 -printf %s "checking for mysql_init in -lmysqlclient (using ${MYSQL_CONFIG})... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_get_socket in -lmysqlclient (using ${MYSQL_CONFIG})" >&5 +printf %s "checking for mysql_get_socket in -lmysqlclient (using ${MYSQL_CONFIG})... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -3414,11 +3413,11 @@ printf %s "checking for mysql_init in -lmysqlclient (using ${MYSQL_CONFIG})... " #ifdef __cplusplus extern "C" #endif -char mysql_init (void); +char mysql_get_socket (void); int main (void) { -return mysql_init (); +return mysql_get_socket (); ; return 0; } @@ -3444,296 +3443,12 @@ printf "%s\n" "no" >&6; } fi fi -if test "x$have_a_libmysqlclient" != "xyes"; then - smart_try_dir="$mysql_lib_dir /usr/lib /usr/lib/mysql /usr/local/lib/mysql /usr/local/mysql/lib/mysql" - - -sm_lib_safe=`echo "mysqlclient_r" | sed 'y%./+-%__p_%'` -sm_func_safe=`echo "mysql_init" | sed 'y%./+-%__p_%'` - -if test "xmysql-client" = "x"; then - sm_pkg="${sm_lib_safe}" -else - sm_pkg="mysql-client" -fi - -old_LIBS="$LIBS" -old_CPPFLAGS="$CPPFLAGS" -smart_lib= -smart_ldflags= -smart_lib_dir="/usr/local/lib /opt/lib /usr/local/${sm_pkg}/lib /opt/homebrew/lib /opt/homebrew/opt/${sm_pkg}/lib" - -if test "x$smart_try_dir" != "x"; then -for try in $smart_try_dir; do - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r in $try" >&5 -printf %s "checking for mysql_init in -lmysqlclient_r in $try... " >&6; } - LIBS="-lmysqlclient_r $old_LIBS" - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -extern char mysql_init(); -int -main (void) -{ -mysql_init() - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - - smart_lib="-lmysqlclient_r" - smart_ldflags="-L$try -Wl,-rpath,$try" - smart_ld_found="$try" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - break - -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -done -LIBS="$old_LIBS" -CPPFLAGS="$old_CPPFLAGS" -fi - -if test "x$smart_lib" = "x"; then -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r" >&5 -printf %s "checking for mysql_init in -lmysqlclient_r... " >&6; } -LIBS="-lmysqlclient_r $old_LIBS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -extern char mysql_init(); -int -main (void) -{ -mysql_init() - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - - smart_lib="-lmysqlclient_r" - smart_ld_found="" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS="$old_LIBS" -fi - -if test "x$smart_lib" = "x"; then -for try in $smart_lib_dir; do - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r in $try" >&5 -printf %s "checking for mysql_init in -lmysqlclient_r in $try... " >&6; } - LIBS="-lmysqlclient_r $old_LIBS" - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -extern char mysql_init(); -int -main (void) -{ -mysql_init() - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - - smart_lib="-lmysqlclient_r" - smart_ldflags="-L$try -Wl,-rpath,$try" - smart_ld_found="$try" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - break - -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -done -LIBS="$old_LIBS" -CPPFLAGS="$old_CPPFLAGS" -fi - -if test "x$smart_lib" != "x"; then -eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes" -LIBS="$smart_ldflags $smart_lib $old_LIBS" -SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS" -SMART_LD_FOUND="$smart_ld_found" -fi - - if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = "xyes"; then - have_a_libmysqlclient='yes' - fi -fi - -if test "x$have_a_libmysqlclient" != "xyes"; then - smart_try_dir="$mysql_lib_dir /usr/lib /usr/lib/mysql /usr/local/lib/mysql /usr/local/mysql/lib/mysql" - - -sm_lib_safe=`echo "mysqlclient" | sed 'y%./+-%__p_%'` -sm_func_safe=`echo "mysql_init" | sed 'y%./+-%__p_%'` - -if test "xmysql-client" = "x"; then - sm_pkg="${sm_lib_safe}" -else - sm_pkg="mysql-client" -fi - -old_LIBS="$LIBS" -old_CPPFLAGS="$CPPFLAGS" -smart_lib= -smart_ldflags= -smart_lib_dir="/usr/local/lib /opt/lib /usr/local/${sm_pkg}/lib /opt/homebrew/lib /opt/homebrew/opt/${sm_pkg}/lib" - -if test "x$smart_try_dir" != "x"; then -for try in $smart_try_dir; do - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient in $try" >&5 -printf %s "checking for mysql_init in -lmysqlclient in $try... " >&6; } - LIBS="-lmysqlclient $old_LIBS" - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -extern char mysql_init(); -int -main (void) -{ -mysql_init() - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - - smart_lib="-lmysqlclient" - smart_ldflags="-L$try -Wl,-rpath,$try" - smart_ld_found="$try" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - break - -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -done -LIBS="$old_LIBS" -CPPFLAGS="$old_CPPFLAGS" -fi - -if test "x$smart_lib" = "x"; then -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5 -printf %s "checking for mysql_init in -lmysqlclient... " >&6; } -LIBS="-lmysqlclient $old_LIBS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -extern char mysql_init(); -int -main (void) -{ -mysql_init() - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - - smart_lib="-lmysqlclient" - smart_ld_found="" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS="$old_LIBS" -fi - -if test "x$smart_lib" = "x"; then -for try in $smart_lib_dir; do - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient in $try" >&5 -printf %s "checking for mysql_init in -lmysqlclient in $try... " >&6; } - LIBS="-lmysqlclient $old_LIBS" - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -extern char mysql_init(); -int -main (void) -{ -mysql_init() - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - - smart_lib="-lmysqlclient" - smart_ldflags="-L$try -Wl,-rpath,$try" - smart_ld_found="$try" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - break - -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -done -LIBS="$old_LIBS" -CPPFLAGS="$old_CPPFLAGS" -fi - -if test "x$smart_lib" != "x"; then -eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes" -LIBS="$smart_ldflags $smart_lib $old_LIBS" -SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS" -SMART_LD_FOUND="$smart_ld_found" -fi - - if test "x$ac_cv_lib_mysqlclient_mysql_init" = "xyes"; then - have_a_libmysqlclient='yes' - fi -fi - if test "x$have_a_libmysqlclient" != "xyes"; then smart_try_dir="$mysql_lib_dir /usr/lib /usr/lib/mariadb /usr/local/lib/mariadb /usr/local/mariadb/lib/mariadb" sm_lib_safe=`echo "mariadb" | sed 'y%./+-%__p_%'` -sm_func_safe=`echo "mysql_init" | sed 'y%./+-%__p_%'` +sm_func_safe=`echo "mysql_get_socket" | sed 'y%./+-%__p_%'` if test "xmysql-client" = "x"; then sm_pkg="${sm_lib_safe}" @@ -3749,17 +3464,17 @@ smart_lib_dir="/usr/local/lib /opt/lib /usr/local/${sm_pkg}/lib /opt/homebrew/l if test "x$smart_try_dir" != "x"; then for try in $smart_try_dir; do - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmariadb in $try" >&5 -printf %s "checking for mysql_init in -lmariadb in $try... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_get_socket in -lmariadb in $try" >&5 +printf %s "checking for mysql_get_socket in -lmariadb in $try... " >&6; } LIBS="-lmariadb $old_LIBS" CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -extern char mysql_init(); +extern char mysql_get_socket(); int main (void) { -mysql_init() +mysql_get_socket() ; return 0; } @@ -3787,16 +3502,16 @@ CPPFLAGS="$old_CPPFLAGS" fi if test "x$smart_lib" = "x"; then -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmariadb" >&5 -printf %s "checking for mysql_init in -lmariadb... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_get_socket in -lmariadb" >&5 +printf %s "checking for mysql_get_socket in -lmariadb... " >&6; } LIBS="-lmariadb $old_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -extern char mysql_init(); +extern char mysql_get_socket(); int main (void) { -mysql_init() +mysql_get_socket() ; return 0; } @@ -3821,17 +3536,17 @@ fi if test "x$smart_lib" = "x"; then for try in $smart_lib_dir; do - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmariadb in $try" >&5 -printf %s "checking for mysql_init in -lmariadb in $try... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_get_socket in -lmariadb in $try" >&5 +printf %s "checking for mysql_get_socket in -lmariadb in $try... " >&6; } LIBS="-lmariadb $old_LIBS" CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -extern char mysql_init(); +extern char mysql_get_socket(); int main (void) { -mysql_init() +mysql_get_socket() ; return 0; } @@ -3865,16 +3580,16 @@ SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS" SMART_LD_FOUND="$smart_ld_found" fi - if test "x$ac_cv_lib_mysqlclient_mysql_init" = "xyes"; then + if test "x$ac_cv_lib_mysqlclient_mysql_get_socket" = "xyes"; then have_a_libmysqlclient='yes' fi fi if test "x$have_a_libmysqlclient" != "xyes"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: MySQL libraries not found. Use --with-mysql-lib-dir=." >&5 -printf "%s\n" "$as_me: WARNING: MySQL libraries not found. Use --with-mysql-lib-dir=." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: MariaDB libraries not found. Use --with-mysql-lib-dir=." >&5 +printf "%s\n" "$as_me: WARNING: MariaDB libraries not found. Use --with-mysql-lib-dir=." >&2;} -fail="$fail libmariadb || libmysqlclient || libmysqlclient_r" +fail="$fail libmariadb" fi @@ -4159,8 +3874,8 @@ smart_prefix= printf "%s\n" "#define HAVE_MYSQL_MYSQL_H /**/" >>confdefs.h else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: MySQL headers not found. Use --with-mysql-include-dir=." >&5 -printf "%s\n" "$as_me: WARNING: MySQL headers not found. Use --with-mysql-include-dir=." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: MariaDB headers not found. Use --with-mysql-include-dir=." >&5 +printf "%s\n" "$as_me: WARNING: MariaDB headers not found. Use --with-mysql-include-dir=." >&2;} fail="$fail mysql.h" diff --git a/src/modules/rlm_sql/drivers/rlm_sql_mysql/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_mysql/configure.ac index 756a45e9111..97435ae5bf4 100644 --- a/src/modules/rlm_sql/drivers/rlm_sql_mysql/configure.ac +++ b/src/modules/rlm_sql/drivers/rlm_sql_mysql/configure.ac @@ -79,20 +79,12 @@ dnl # Check for programs dnl ############################################################ AC_PROG_CC -AC_CHECK_PROGS(MYSQL_CONFIG, [ mariadb_config mysql_config ]) +AC_CHECK_PROGS(MYSQL_CONFIG, [ mariadb_config ]) dnl ############################################################ dnl # Check for libraries dnl ############################################################ -dnl # Older versions of mysqlclient packages had two variants libmysqlclient -dnl # and libmysqlclient_r. libmysqlclient_r is the threadsafe variant that -dnl # is per-connection threadsafe. If that is available on the system it -dnl # should be used in preference to libmysqlclient. -dnl # More recent versions >~ 5.6 have stopped including libmyqlclient_r -dnl # however (as libmysqlclient is now threadsafe), so we should fall back -dnl # to libmysqlclient if it is the only one available on the system. - dnl # Use linker arguments from mysql_config if available, then fallback dnl # to hunting around if we can't find the client library. if test "x$MYSQL_CONFIG" != "x"; then @@ -101,8 +93,8 @@ if test "x$MYSQL_CONFIG" != "x"; then LIBS="$mysql_libs $LIBS" dnl # First check for libmysqlclient_r - AC_MSG_CHECKING([for mysql_init in -lmysqlclient_r (using ${MYSQL_CONFIG})]) - AC_TRY_LINK_FUNC([mysql_init], [have_libmysqlclient_r=yes]) + AC_MSG_CHECKING([for mysql_get_socket in -lmysqlclient_r (using ${MYSQL_CONFIG})]) + AC_TRY_LINK_FUNC([mysql_get_socket], [have_libmysqlclient_r=yes]) LIBS="$old_LIBS" if test "x$have_libmysqlclient_r" = "xyes"; then @@ -120,8 +112,8 @@ if test "x$MYSQL_CONFIG" != "x"; then old_LIBS="$LIBS" LIBS="$mysql_libs $LIBS" - AC_MSG_CHECKING([for mysql_init in -lmysqlclient (using ${MYSQL_CONFIG})]) - AC_TRY_LINK_FUNC([mysql_init], [have_libmysqlclient=yes]) + AC_MSG_CHECKING([for mysql_get_socket in -lmysqlclient (using ${MYSQL_CONFIG})]) + AC_TRY_LINK_FUNC([mysql_get_socket], [have_libmysqlclient=yes]) LIBS="$old_LIBS" if test "x$have_libmysqlclient" = "xyes"; then @@ -135,36 +127,18 @@ if test "x$MYSQL_CONFIG" != "x"; then fi fi -dnl # Check for libmysqlclient_r -if test "x$have_a_libmysqlclient" != "xyes"; then - smart_try_dir="$mysql_lib_dir /usr/lib /usr/lib/mysql /usr/local/lib/mysql /usr/local/mysql/lib/mysql" - FR_SMART_CHECK_LIB(mysqlclient_r, mysql_init, [mysql-client]) - if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = "xyes"; then - have_a_libmysqlclient='yes' - fi -fi - -dnl # Check for libmysqlclient -if test "x$have_a_libmysqlclient" != "xyes"; then - smart_try_dir="$mysql_lib_dir /usr/lib /usr/lib/mysql /usr/local/lib/mysql /usr/local/mysql/lib/mysql" - FR_SMART_CHECK_LIB(mysqlclient, mysql_init, [mysql-client]) - if test "x$ac_cv_lib_mysqlclient_mysql_init" = "xyes"; then - have_a_libmysqlclient='yes' - fi -fi - dnl # Check for libmariadb if test "x$have_a_libmysqlclient" != "xyes"; then smart_try_dir="$mysql_lib_dir /usr/lib /usr/lib/mariadb /usr/local/lib/mariadb /usr/local/mariadb/lib/mariadb" - FR_SMART_CHECK_LIB(mariadb, mysql_init, [mysql-client]) - if test "x$ac_cv_lib_mysqlclient_mysql_init" = "xyes"; then + FR_SMART_CHECK_LIB(mariadb, mysql_get_socket, [mysql-client]) + if test "x$ac_cv_lib_mysqlclient_mysql_get_socket" = "xyes"; then have_a_libmysqlclient='yes' fi fi if test "x$have_a_libmysqlclient" != "xyes"; then - AC_MSG_WARN([MySQL libraries not found. Use --with-mysql-lib-dir=.]) - FR_MODULE_FAIL([libmariadb || libmysqlclient || libmysqlclient_r]) + AC_MSG_WARN([MariaDB libraries not found. Use --with-mysql-lib-dir=.]) + FR_MODULE_FAIL([libmariadb]) fi dnl ############################################################ @@ -204,7 +178,7 @@ if test "x$have_mysql_h" != "xyes"; then if test "x$ac_cv_header_mysql_mysql_h" = "xyes"; then AC_DEFINE(HAVE_MYSQL_MYSQL_H, [], [Define if you have ]) else - AC_MSG_WARN([MySQL headers not found. Use --with-mysql-include-dir=.]) + AC_MSG_WARN([MariaDB headers not found. Use --with-mysql-include-dir=.]) FR_MODULE_FAIL([mysql.h]) fi fi