Index: configure.in =================================================================== --- configure.in (revision 2135) +++ configure.in (working copy) @@ -63,7 +63,13 @@ bsd="yes" ;; netbsd*) - AC_MSG_RESULT(none needed) + if test -d /usr/pkg ; then + CPPFLAGS=-I/usr/pkg/include + LDFLAGS=-L/usr/pkg/lib + AC_MSG_RESULT(pkgsrc locations for link and include) + else + AC_MSG_RESULT(none needed) + fi AC_DEFINE(SYS_NETBSD, 1, Compiling for NetBSD) bsd="yes" ;; @@ -109,7 +115,14 @@ bsd="yes" ;; netbsd*) - AC_MSG_RESULT(none needed) + if test -d /usr/pkg ; then + CPPFLAGS=-I/usr/pkg/include + LDFLAGS=-L/usr/pkg/lib + AC_MSG_RESULT(pkgsrc locations for link and include) + else + AC_MSG_RESULT(none needed) + fi + AC_DEFINE(SYS_NETBSD, 1, Compiling for NetBSD) bsd="yes" ;;