Browse Source

add the --readline auto option

tags/v1.9.11-RC1
Karl Lindén 10 years ago
parent
commit
5a59aef94c
2 changed files with 3 additions and 7 deletions
  1. +1
    -7
      example-clients/wscript
  2. +2
    -0
      wscript

+ 1
- 7
example-clients/wscript View File

@@ -36,13 +36,7 @@ example_libs = {
} }


def configure(conf): def configure(conf):
e = conf.check_cc(lib='readline', define_name="HAVE_READLINE", mandatory=False)

# define_name="HAVE_READLINE" has no effect, LIB_READLINE is defined if readline is available
#if conf.is_defined('HAVE_READLINE'):
# conf.env['LIB_READLINE'] = ['readline']

conf.env['BUILD_EXAMPLE_CLIENT_TRANSPORT'] = bool(conf.env['LIB_READLINE'])
conf.env['BUILD_EXAMPLE_CLIENT_TRANSPORT'] = conf.env['READLINE']


conf.env['BUILD_EXAMPLE_CLIENT_REC'] = conf.env['SNDFILE'] conf.env['BUILD_EXAMPLE_CLIENT_REC'] = conf.env['SNDFILE']




+ 2
- 0
wscript View File

@@ -433,6 +433,8 @@ def options(opt):
samplerate.add_package('samplerate') samplerate.add_package('samplerate')
sndfile = add_auto_option(opt, 'sndfile', help='Build with libsndfile') sndfile = add_auto_option(opt, 'sndfile', help='Build with libsndfile')
sndfile.add_package('sndfile') sndfile.add_package('sndfile')
readline = add_auto_option(opt, 'readline', help='Build with readline')
readline.add_library('readline')


# dbus options # dbus options
opt.sub_options('dbus') opt.sub_options('dbus')


Loading…
Cancel
Save