aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@gmx.com>2012-02-11 02:42:52 +0100
committerBert Münnich <ber.t@gmx.com>2012-02-11 02:42:52 +0100
commitef0ed3226428c00507e76bdda77c522729ed6809 (patch)
tree41f4a1675c6a5fada955d331485010d5d0863590 /config.c
parentc3c95ab2187037793f9a827a8930eb4080337487 (diff)
Removed exif support; made gif support non-optional
Diffstat (limited to 'config.c')
-rw-r--r--config.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/config.c b/config.c
deleted file mode 100644
index c7e1df0..0000000
--- a/config.c
+++ /dev/null
@@ -1,38 +0,0 @@
-#define _POSIX_C_SOURCE 200112L
-#define _FEATURE_CONFIG
-
-#include <stdio.h>
-
-#include "config.h"
-
-#define QUOTE(m) #m
-#define PUT_MACRO(m) \
- printf(" -D%s=%s", #m, QUOTE(m))
-
-int puts_if(const char *s, int c) {
- return c ? printf(" %s", s) : 0;
-}
-
-int main(int argc, char **argv) {
- int i;
- unsigned int n = 0;
-
- for (i = 1; i < argc; i++) {
- switch ((argv[i][0] != '-' || argv[i][2] != '\0') ? -1 : argv[i][1]) {
- case 'D':
- n += PUT_MACRO(EXIF_SUPPORT);
- n += PUT_MACRO(GIF_SUPPORT);
- break;
- case 'l':
- n += puts_if("-lexif", EXIF_SUPPORT);
- n += puts_if("-lgif", GIF_SUPPORT);
- break;
- default:
- fprintf(stderr, "%s: invalid argument: %s\n", argv[0], argv[i]);
- return 1;
- }
- }
- if (n > 0)
- printf("\n");
- return 0;
-}