mesa/imports: let the build system detect strtok_r()
[mesa.git] / scons / gallium.py
index b216304170f5ebe8c6a175bb36efbe6f18632939..c0f6f6c91cac77b7ce9fdbc23302d05ebff8a910 100755 (executable)
@@ -381,6 +381,9 @@ def generate(env):
         if check_header(env, 'sys/shm.h'):
             cppdefines += ['HAVE_SYS_SHM_H']
 
+        if check_functions(env, ['strtok_r']):
+            cppdefines += ['HAVE_STRTOK_R']
+
         #FIXME: we should really be checking for the major()/minor()
         # functions/macros in these headers, but check_functions()'s
         # SConf.CheckFunc() doesn't seem to support macros.