- # add dependencies that pkg-config cannot guess about
- if test -z "$reqs" ; then
- if test -z "$LD_RPATH_OPT" ; then
- libs="$libs @LIBS@"
+ if test $name != $SUB_LIBRARY && test $SUB_LIBRARY != $MAIN_LIBRARY ; then
+ if test $name != $TINFO_NAME ; then
+ test -n "$reqs" && reqs="$reqs, "
+ reqs="${reqs}${SUB_LIBRARY}"