-SUB_LIBRARY_REQ=${SUB_LIBRARY}
-if test $TINFO_NAME = $LIB_NAME ; then
- SUB_LIBRARY_REQ=
-fi
-
-for lib in ../lib/*
-do
- name=`basename $lib`
- if test "$name" = "*" ; then
- break
+if test "$includedir" = "/usr/include" ; then
+ CFLAGS=
+else
+ includetop=`echo "$includedir" | sed -e 's,/include/[^/]*$,/include/,'`
+ test "$includetop" = "/usr/include" && includetop="$includedir"
+ if test "x$includetop" != "$includedir"
+ then
+ CFLAGS="-I${includetop} -I\${includedir}"
+ else
+ CFLAGS="-I\${includedir}"