src/3rdparty/libtiff/SConstruct
changeset 30 5dc02b23752f
parent 0 1918ee327afb
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
     1 # $Id: SConstruct,v 1.2 2006/03/23 14:54:00 dron Exp $
     1 # $Id: SConstruct,v 1.4 2007/02/24 15:03:47 dron Exp $
     2 
     2 
     3 # Tag Image File Format (TIFF) Software
     3 # Tag Image File Format (TIFF) Software
     4 #
     4 #
     5 # Copyright (C) 2005, Andrey Kiselev <dron@ak4719.spb.edu>
     5 # Copyright (C) 2005, Andrey Kiselev <dron@ak4719.spb.edu>
     6 #
     6 #
    74 idir_doc = '$PREFIX/doc'
    74 idir_doc = '$PREFIX/doc'
    75 Export([ 'env', 'idir_prefix', 'idir_lib', 'idir_bin', 'idir_inc', 'idir_doc' ])
    75 Export([ 'env', 'idir_prefix', 'idir_lib', 'idir_bin', 'idir_inc', 'idir_doc' ])
    76 
    76 
    77 # Now proceed to system feature checks
    77 # Now proceed to system feature checks
    78 target_cpu, target_vendor, target_kernel, target_os = \
    78 target_cpu, target_vendor, target_kernel, target_os = \
    79     os.popen("./config.guess").readlines()[0].split("-")
    79     os.popen("./config/config.guess").readlines()[0].split("-")
    80 
    80 
    81 def Define(context, key, have):
    81 def Define(context, key, have):
    82     import SCons.Conftest
    82     import SCons.Conftest
    83     SCons.Conftest._Have(context, key, have)
    83     SCons.Conftest._Have(context, key, have)
    84 
    84 
   130     conf.CheckLib('m')
   130     conf.CheckLib('m')
   131 
   131 
   132 # Check for system headers
   132 # Check for system headers
   133 conf.CheckCHeader('assert.h')
   133 conf.CheckCHeader('assert.h')
   134 conf.CheckCHeader('fcntl.h')
   134 conf.CheckCHeader('fcntl.h')
       
   135 conf.CheckCHeader('io.h')
   135 conf.CheckCHeader('limits.h')
   136 conf.CheckCHeader('limits.h')
   136 conf.CheckCHeader('malloc.h')
   137 conf.CheckCHeader('malloc.h')
   137 conf.CheckCHeader('search.h')
   138 conf.CheckCHeader('search.h')
   138 conf.CheckCHeader('sys/time.h')
   139 conf.CheckCHeader('sys/time.h')
   139 conf.CheckCHeader('unistd.h')
   140 conf.CheckCHeader('unistd.h')
   143 conf.CheckFunc('isascii')
   144 conf.CheckFunc('isascii')
   144 conf.CheckFunc('memmove')
   145 conf.CheckFunc('memmove')
   145 conf.CheckFunc('memset')
   146 conf.CheckFunc('memset')
   146 conf.CheckFunc('mmap')
   147 conf.CheckFunc('mmap')
   147 conf.CheckFunc('pow')
   148 conf.CheckFunc('pow')
       
   149 conf.CheckFunc('setmode')
   148 conf.CheckFunc('sqrt')
   150 conf.CheckFunc('sqrt')
   149 conf.CheckFunc('strchr')
   151 conf.CheckFunc('strchr')
   150 conf.CheckFunc('strrchr')
   152 conf.CheckFunc('strrchr')
   151 conf.CheckFunc('strstr')
   153 conf.CheckFunc('strstr')
   152 conf.CheckFunc('strtol')
   154 conf.CheckFunc('strtol')