Add fink and pkgsrc /bin directories to PATH if they exist

darcs-hash:20060203212901-ac50b-94e02eea218c2f40542efd62060a74796cdbe363.gz
This commit is contained in:
axel 2006-02-04 07:29:01 +10:00
parent f13262d87e
commit 3616a23bdd
2 changed files with 11 additions and 1 deletions

View file

@ -19,8 +19,18 @@ for i in /usr/pkg /sw; do
AC_MSG_RESULT(no)
fi
AC_MSG_CHECKING([for $i/bin command directory])
if test -d $i/bin; then
AC_MSG_RESULT(yes)
optbindirs="$optbindirs $i/bin"
else
AC_MSG_RESULT(no)
fi
done
AC_SUBST( optbindirs, $optbindirs )
# If needed, run autoheader automatically
AC_MSG_CHECKING([if autoheader needs to be run])
if test ! -f ./config.h.in -o config.h.in -ot configure.ac; then

View file

@ -15,7 +15,7 @@ set -g IFS \ \t\n
# want this even for text-only terminals.
#
set -l path_list /bin /usr/bin /usr/X11R6/bin @PREFIX@/bin
set -l path_list /bin /usr/bin /usr/X11R6/bin @PREFIX@/bin @optbindirs@
# Root should also have the sbin directories in the path
set -l uid (id -u 2>/dev/null)