Checking for the Availability of a Function

SCons User Guide 0.98.0
Prev | Chapter 21. Multi-Platform Configuration (Autoconf Functionality) | Next

# 21.3. Checking for the Availability of a Function

Check for the availability of a specific function using the `CheckFunc` method:

        env = Environment()
        conf = Configure(env)
        if not conf.CheckFunc('strcpy'):
            print 'Did not find strcpy(), using local version'
            conf.env.Append('-Dstrcpy=my_local_strcpy')
        env = conf.Finish()

Prev | Home | Next
Checking for the Existence of Header Files | Up | Checking for the Availability of a Library