Revision 94ac5158 configure

b/configure
51 51
  s390)
52 52
    cpu="s390"
53 53
  ;;
54
  sparc)
54
  sparc|sun4[muv])
55 55
    cpu="sparc"
56 56
  ;;
57 57
  sparc64)
......
296 296
ar="${cross_prefix}${ar}"
297 297
strip="${cross_prefix}${strip}"
298 298

  
299
if [ -z `which $cc` ] ; then
299
if [ ! -x "`which $cc`" ] ; then
300 300
    echo "Compiler $cc could not be found"
301 301
    exit
302 302
fi
......
341 341
    echo "using pkg-get -i fileutils, or use --install=/usr/ucb/install"
342 342
    exit 1
343 343
  fi
344
  soltexi2html=`which texi2html 2> /dev/null | /usr/bin/grep -v "no texi2html in"`
345
  if test -z "$soltexi2html" ; then
346
    echo "Error: No path includes texi2html."
347
    if test -f /usr/sfw/bin/texi2html ; then
348
      echo "Add /usr/sfw/bin to your path and rerun configure"
349
    else
350
      echo "Add the directory holding the texi2html to your path and rerun configure"
351
    fi
352
    exit 1
353
  fi
354 344
  sol_ar=`which ar 2> /dev/null | /usr/bin/grep -v "no ar in"`
355 345
  if test -z "$sol_ar" ; then
356 346
    echo "Error: No path includes ar"
......
492 482
fi # -z $sdl
493 483

  
494 484
# Check if tools are available to build documentation.
495
if [ ! -z `which texi2html` ] && [ ! -z `which pod2man` ]; then
485
if [ -x "`which texi2html`" ] && [ -x "`which pod2man`" ]; then
496 486
  build_docs="yes"
497 487
fi
498 488

  

Also available in: Unified diff