Branch: Tag:

2015-09-17

2015-09-17 09:57:22 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Mysql: Added work-around for misconfigured MariaDBs.

The MariaDB C-Connector configuration files can confuse themselves,
and forget to add -liconv to the list of libraries even though required.

155:    esac    shift    done +  +  if echo " $MARIADB_LIBS" | grep -i iconv >/dev/null; then :; else +  # NB: Sometimes iconv doesn't get listed by mariadb_config. +  AC_CHECK_LIB(iconv, iconv_open, [ +  MARIADB_LIBS="${MARIADB_LIBS} -liconv" +  ], [ +  AC_CHECK_LIB(iconv, libiconv_open, [ +  MARIADB_LIBS="${MARIADB_LIBS} -liconv" +  ]) +  ]) +  fi +     echo "Adding `${MARIADB_CONFIG} --include` to CPPFLAGS."    CPPFLAGS="`${MARIADB_CONFIG} --include` ${CPPFLAGS}"    fi