>>>>> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes:

Alexandre> On Jul 11, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote:
>> I don't think we need to: test -f itself will do the right thing,

Alexandre> Nope.  Think of /foo, when /foo doesn't exist, but
Alexandre> $srcdir/foo does.

Ahh, of course.  Thanks!

Well, this then?

    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [[\\/$]]* | ?:[[\\/]]*) 
         # Absolute
         test -f "$f" || AC_MSG_ERROR([cannot find input file \\`$f'])
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$ac_given_srcdir/$f"; then
           # Source tree
           echo $ac_given_srcdir/$f
         else
           # /dev/null tree
           AC_MSG_ERROR([cannot find input file \\`$f'])
         fi;;
      esac
    done`

Reply via email to