• Martin Storsjö's avatar
    configure: Check for getenv · 2cca96e6
    Martin Storsjö authored
    
    
    When targeting the "windows store application" (metro) API subset
    (or the windows phone API subset), the getenv function isn't
    available. If it is unavailable, just define getenv to NULL.
    
    The check uses check_func_headers, since the function actually
    might exist in the libraries, but is hidden in the headers.
    
    The fallback is in config.h since msvc can't do -D defines with
    parameters on the command line, and it's used both within the
    libraries and the frontend applications (so a libavutil internal
    header wouldn't be enough).
    
    Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
    2cca96e6