[sane-devel] Changes required to build on Solaris 8 x86

Ed Randall ed.randall@ingenotech.com
Thu, 27 Jun 2002 16:26:19 +0100


Here is a summary of the changes I needed to make to get a 
clean working build on Solaris 8 x86:

1) Due to a "sed" barf, add a newline at the ends of:
sane-backends-1.0.8/doc/sane-fujitsu.man
sane-backends-1.0.8/doc/sane-tamarack.man
sane-backends-1.0.8/doc/sane-test.man

2) Reduce SCSI buffer size to 64k
*** sane-backends-1.0.8/sanei/sanei_scsi.c     Wed May 22 20:24:05 2002
--- sane-backends-1.0.8-new/sanei/sanei_scsi.c Thu Jun 27 12:32:56 2002
***************
*** 236,242 ****
  #endif
  
  #if USE == SOLARIS_USCSI_INTERFACE
! # define MAX_DATA     (128*1024)
  #endif
  
  #if USE == OS2_INTERFACE
--- 236,242 ----
  #endif
  
  #if USE == SOLARIS_USCSI_INTERFACE
! # define MAX_DATA     (64*1024) 
  #endif
  

3) Fixes to sane-config script
*** sane-backends-1.0.8/tools/sane-config.in    Wed Feb 13 22:29:49 2002
--- sane-backends-1.0.8-new/tools/sane-config.in        Thu Jun 27 16:24:42 2002
***************
*** 43,49 ****
    $scriptname --exec-prefix     - exec-prefix used during SANE compile\n"
  
  if test $# -eq 0; then
!       echo -e "${usage}" 1>&2
        exit 1
  fi
  
--- 43,49 ----
    $scriptname --exec-prefix     - exec-prefix used during SANE compile\n"
  
  if test $# -eq 0; then
!       echo "${usage}" 1>&2
        exit 1
  fi
  
***************
*** 54,60 ****
        ;;
      --help)
        if test $# -eq 1; then
!         echo -e "${usage}" 1>&2
        elif test $# -eq 2; then
          case $2 in 
            --cflags)
--- 54,60 ----
        ;;
      --help)
        if test $# -eq 1; then
!         echo "${usage}" 1>&2
        elif test $# -eq 2; then
          case $2 in 
            --cflags)
***************
*** 76,82 ****
              ;;
          esac
        else
!         echo -e "${usage}" 1>&2
        fi
        exit 1
        ;;
--- 76,82 ----
              ;;
          esac
        else
!         echo "${usage}" 1>&2
        fi
        exit 1
        ;;
***************
*** 110,116 ****
        echo ${exec_prefix}
        ;;
      *)
!       echo -e "${usage}" 1>&2
        exit 1
        ;;
    esac
--- 110,116 ----
        echo ${exec_prefix}
        ;;
      *)
!       echo "${usage}" 1>&2
        exit 1
        ;;
    esac


Regards,

Ed

------------------------------------------------------------
Ed Randall                                 Software designer
IngenoTech Ltd.                    http://www.ingenotech.com