(m17n_init_core): If the env. var. MDEBUG_OUTPUT_FILE is "stdout",
use the stream stdout instead of a file of that name.
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>
mdebug__output = NULL;
if (env_value)
- mdebug__output = fopen (env_value, "a");
+ {
+ if (strcmp (env_value, "stdout"))
+ mdebug__output = stdout;
+ else
+ mdebug__output = fopen (env_value, "a");
+ }
if (! mdebug__output)
mdebug__output = stderr;
}