Changeset 638

Show
Ignore:
Timestamp:
09/09/07 09:46:02 (15 years ago)
Author:
arnonym
Message:

Check if the alsa-lib has midi-support (its possible to have alsa without midi).

If the check fails, tests/streaming/testmidistreaming1 is not built.

Also add some comments to the configure-checks.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/SConstruct

    r609 r638  
    114114                log_file="cache/" + build_base + 'config.log' ) 
    115115 
     116        # 
     117        # Check if the environment can actually compile c-files by checking for a 
     118        # header shipped with gcc. 
     119        # 
    116120        if not conf.CheckHeader( "stdio.h" ): 
    117121                print "It seems as if stdio.h is missing. This probably means that your build environment is broken, please make sure you have a working c-compiler and libstdc installed and usable." 
    118122                Exit( 1 ) 
    119123 
     124        # 
     125        # The following checks are for headers and libs and packages we need. 
     126        # 
    120127        allpresent = 1; 
    121128        allpresent &= conf.CheckHeader( "expat.h" ) 
     
    147154 
    148155        # 
     156        # Optional checks follow: 
     157        # 
    149158        env['PYUIC'] = conf.CheckForApp( 'pyuic' ) 
     159        env['ALSA_SEQ_OUTPUT'] = conf.CheckLib( 'asound', symbol='snd_seq_event_output_direct', autoadd=0 ) 
    150160 
    151161        env = conf.Finish() 
  • trunk/libffado/tests/streaming/SConscript

    r561 r638  
    99env.PrependUnique( LIBS=["ffado"] ) 
    1010 
    11 for app in env.Split( "teststreaming teststreaming2 teststreaming3 testmidistreaming1" ): 
     11apps = "teststreaming teststreaming2 teststreaming3" 
     12if env['ALSA_SEQ_OUTPUT']: 
     13        apps += " testmidistreaming1" 
     14 
     15for app in env.Split( apps ): 
    1216        env.Program( target=app, source = [ app+".c", "debugtools.c" ] ) 
    1317