J'avais développé un petit soft servant d'interface à une base de données PostgreSQL, et donc, voici ce que j'avais trouvé à l'époque :
- dans mon configure.in ; j'ai un AC_SEARCH_POSTGRES
- et j'ai dû rajouter dans mon aclocal.m4 le code suivant :
dnl
dnl Test for POSTGRES include files and libraries
dnl
AC_DEFUN(AC_SEARCH_POSTGRES, [
AC_MSG_CHECKING(for Postgres files)
AC_ARG_WITH(postgres,
--with-postgres= use Postgres backend in ,[
if test $withval != yes
then
dir=$withval
else
dir="/usr/local"
fi
])
postgresdir=""
for d in $dir /usr /usr/local/postgres /usr/local/pgsql /opt/postgres /opt/packages/postgres /disk/postgres
do
if test -f $d/lib/libpq.so
then
AC_MSG_RESULT(found Postgres in $d)
postgresdir=$d
break
fi
done
if test x$postgresdir = x
then
AC_MSG_ERROR(Postgres backend not found)
else
if test -f ${postgresdir}/include/libpq-fe.h
then
POSTGRES_INCLUDES=-I${postgresdir}/include
elif test -f ${postgresdir}/include/pgsql/libpq-fe.h
then
POSTGRES_INCLUDES=-I${postgresdir}/include/pgsql
elif test -f ${postgresdir}/include/postgresql/libpq-fe.h
then
POSTGRES_INCLUDES=-I${postgresdir}/include/postgresql
else
AC_MSG_ERROR(Postgres include files not found, backend not used)
postgresdir=""
fi
POSTGRES_LIBS=-L${postgresdir}/lib
fi
AM_CONDITIONAL(POSTGRES, test x$postgresdir != x)
AC_SUBST(POSTGRES_INCLUDES)
AC_SUBST(POSTGRES_LIBS)
])
Ce que je te conseille de faire, c'est d'aller sur freshmeat, et de faire une petite recherche pour trouver un projet utilisant MySQL, ensuite, tu vérifies les fichiers servant le configure.
En espérant que cela t'ai aidé !
PS : tiens, je ne savais pas que ce genre de périphériques existait. Cela fonctionne apparemment assez bien. Tu utilise cela de quel manière (just for fun, ou pour des études ?).
# Re: ./configure --with-mysql
Posté par saorge . En réponse au journal ./configure --with-mysql. Évalué à 3.