> Hello. > I'm trying to fix alternate rpm location in rpm2html configure script, and > Daniel just told me you were better suited to answer my questions :-) > > I made --with-rpm options checks happening earlier than rpm libs checking, > and added $RPM_LIBS variable to AC_CHECK_LIB as 5th argument, stated as > OTHER_LIBS in autoconf info page. > > AC_CHECK_LIB(rpmio, Fopen, > [LIBS="-lrpmio $LIBS"; > AC_DEFINE_UNQUOTED(USE_RPMIO, 1) > AC_SUBST(USE_RPMIO) > ], , $RPM_LIBS) > This one is OK > > AC_CHECK_LIB(rpmdb, rpmdbOpen, [LIBS="-lrpm -lrpmdb $LIBS"], > AC_CHECK_LIB(rpm, rpmReadConfigFiles, [LIBS="-lrpm $LIBS"], > AC_MSG_ERROR(*** librpm not found), $RPM_LIBS > ), -lrpm $RPM_LIBS > ) > This one is not :-( > First check (rpmdb) is OK, but then it check for rpm and fails, whereas > 1) rpm check should not happen at all, as it is 4th argument (IF-NOT-FOUND in > autoconf info page) of first check > 2) i also added $RPM_LIBS as 5th argument of this check > > Here is output: > [...] > checking for Fopen in -lrpmio... yes > checking for rpmdbOpen in -lrpmdb... yes > checking for rpmReadConfigFiles in -lrpm... no > > If you have any logical explanation, i'd be happy :-)
Do we care ? I'm tempted to CLOSE/WONTFIX this ... Daniel
rpm2html C codebase is dead, this won't get fixed, Daniel