|
|
@ -1081,24 +1081,24 @@ static void print_program_info(int flags, int level) |
|
|
|
|
|
|
|
|
|
|
|
static void print_buildconf(int flags, int level) |
|
|
|
static void print_buildconf(int flags, int level) |
|
|
|
{ |
|
|
|
{ |
|
|
|
const char *indent = flags & INDENT? " " : ""; |
|
|
|
const char *indent = flags & INDENT ? " " : ""; |
|
|
|
char str[] = { FFMPEG_CONFIGURATION }; |
|
|
|
char str[] = { FFMPEG_CONFIGURATION }; |
|
|
|
char *conflist, *remove_tilde, *splitconf; |
|
|
|
char *conflist, *remove_tilde, *splitconf; |
|
|
|
|
|
|
|
|
|
|
|
// Change all the ' --' strings to '~--' so that
|
|
|
|
// Change all the ' --' strings to '~--' so that
|
|
|
|
// they can be identified as tokens.
|
|
|
|
// they can be identified as tokens.
|
|
|
|
while ( (conflist = strstr(str, " --")) != NULL ) { |
|
|
|
while ((conflist = strstr(str, " --")) != NULL) { |
|
|
|
strncpy(conflist, "~--", 3); |
|
|
|
strncpy(conflist, "~--", 3); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Compensate for the weirdness this would cause
|
|
|
|
// Compensate for the weirdness this would cause
|
|
|
|
// when passing 'pkg-config --static'.
|
|
|
|
// when passing 'pkg-config --static'.
|
|
|
|
while ( (remove_tilde = strstr(str, "pkg-config~")) != NULL ) { |
|
|
|
while ((remove_tilde = strstr(str, "pkg-config~")) != NULL) { |
|
|
|
strncpy(remove_tilde, "pkg-config ",11); |
|
|
|
strncpy(remove_tilde, "pkg-config ", 11); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
splitconf = strtok(str, "~"); |
|
|
|
splitconf = strtok(str, "~"); |
|
|
|
av_log(NULL, level, "\n%sconfiguration:\n",indent); |
|
|
|
av_log(NULL, level, "\n%sconfiguration:\n", indent); |
|
|
|
while (splitconf != NULL) { |
|
|
|
while (splitconf != NULL) { |
|
|
|
av_log(NULL, level, "%s%s%s\n", indent, indent, splitconf); |
|
|
|
av_log(NULL, level, "%s%s%s\n", indent, indent, splitconf); |
|
|
|
splitconf = strtok(NULL, "~"); |
|
|
|
splitconf = strtok(NULL, "~"); |
|
|
|