AC_MSG_RESULT(no)
AC_MSG_ERROR(Unable to find mysql in standard locations)
fi
- DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
+ if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
+ DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
+ else
+ DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
+ fi
;;
"postgresql")
db_prog="postgresql"
AC_MSG_RESULT(no)
AC_MSG_ERROR(Unable to find psql in standard locations)
fi
- DB_PROG_LIB=$SQL_LIBDIR/libpq.a
+ if test -f $SQL_LIBDIR/libpq.so; then
+ DB_PROG_LIB=$SQL_LIBDIR/libpq.so
+ else
+ DB_PROG_LIB=$SQL_LIBDIR/libpq.a
+ fi
;;
"sqlite")
db_prog="sqlite"
AC_MSG_RESULT(no)
AC_MSG_ERROR(Unable to find sqlite in standard locations)
fi
- DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
+ if test -f $SQL_LIBDIR/libsqlite.so; then
+ DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
+ else
+ DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
+ fi
;;
"sqlite3")
db_prog="sqlite3"
AC_MSG_RESULT(no)
AC_MSG_ERROR(Unable to find sqlite in standard locations)
fi
- DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
+ if test -f $SQL_LIBDIR/libsqlite3.so; then
+ DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
+ else
+ DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
+ fi
;;
*)
AC_MSG_RESULT(no)