All pastes #987440 Raw Edit

configure.ac

public text v1 · immutable
·published 2008-04-16 14:54 UTC
rendered paste body
185d184
< AST_EXT_LIB_SETUP([MYSQLCLIENT], [mysqlclient], [mysqlclient])
1077,1118d1075
< MYSQL_CONFIG=No
< PBX_MYSQLCLIENT=0
< if test "${USE_MYSQLCLIENT}" != "no"; then
<    if test "x${MYSQLCLIENT_DIR}" != "x"; then
<       AC_PATH_TOOL([MYSQL_CONFIG], [mysql_config], No, [${MYSQLCLIENT_DIR}/bin])
<       if test x"${MYSQL_CONFIG}" = xNo; then
<          AC_MSG_NOTICE(***)
<        AC_MSG_NOTICE(*** mysql_config was not found in the path you specified:)
<        AC_MSG_NOTICE(*** ${MYSQLCLIENT_DIR}/bin)
<        AC_MSG_NOTICE(*** Either correct the installation, or run configure)
<        AC_MSG_NOTICE(*** including --without-mysqlclient)
<        exit 1
<       fi
<    else
<       AC_PATH_TOOL([MYSQL_CONFIG], [mysql_config], No)
<    fi
< fi
< if test x"${MYSQL_CONFIG}" != xNo; then
<    MYSQLCLIENT_libs=`mysql_config --libs`
<
<    AC_CHECK_LIB([mysqlclient], [mysql_init], [], [], ${MYSQLCLIENT_libs})
<
<    if test "${ac_cv_lib_mysqlclient_mysql_init}" = "yes"; then
<       MYSQLCLIENT_LIB="${MYSQLCLIENT_libs}"
<       PBX_MYSQLCLIENT=1
<    elif test ! -z "${MYSQLCLIENT_MANDATORY}";
<    then
<       AC_MSG_NOTICE(***)
<       AC_MSG_NOTICE(*** The MySQL client installation on this system appears to be broken.)
<       AC_MSG_NOTICE(*** Either correct the installation, or run configure)
<       AC_MSG_NOTICE(*** including --without-mysqlclient)
<       exit 1
<    fi
< elif test ! -z "${MYSQLCLIENT_MANDATORY}";
< then
<    AC_MSG_NOTICE(***)
<    AC_MSG_NOTICE(*** The MySQL client installation on this system appears to be broken.)
<    AC_MSG_NOTICE(*** Either correct the installation, or run configure)
<    AC_MSG_NOTICE(*** including --without-mysqlclient)
<    exit 1
< fi
<