support for --sysconfdir; use this for locating the mime.types
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Mon, 18 Jun 2001 19:52:47 +0000 (19:52 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Mon, 18 Jun 2001 19:52:47 +0000 (19:52 +0000)
ChangeLog.claws
src/Makefile.am
src/procmime.c

index 39b9485..3ca5e80 100644 (file)
@@ -1,3 +1,13 @@
+2001-06-18 [alfons]
+
+       * src/Makefile.am,
+         src/procmime.c
+               added --sysconfdir to CPPFLAGS for pointing to the correct
+               location of mime.types. 
+
+               NOTE: make sure you use --sysconfdir when running ./autogen.sh
+               or ./configure!
+
 2001-06-18 [hoa]
 
        * src/summaryview.c
index 9fa0c10..1d0e6ca 100644 (file)
@@ -154,7 +154,8 @@ sylpheed_LDADD = \
 CPPFLAGS = \
        -DLOCALEDIR=\""$(localedir)"\" \
        -DMANUALDIR=\""$(manualdir)"\" \
-       -DHOST_ALIAS=\""$(host_alias)"\"
+       -DHOST_ALIAS=\""$(host_alias)"\" \
+       -DSYSCONFDIR=\""$(sysconfdir)"\"
 
 YFLAGS = -d
 
index 6d03f22..af71a81 100644 (file)
@@ -792,8 +792,8 @@ static GList *procmime_get_mime_type_list(void)
        gchar *p, *delim;
        MimeType *mime_type;
 
-       if ((fp = fopen("/etc/mime.types", "r")) == NULL) {
-               FILE_OP_ERROR("/etc/mime.types", "fopen");
+       if ((fp = fopen(SYSCONFDIR "/mime.types", "r")) == NULL) {
+               FILE_OP_ERROR(SYSCONFDIR "/mime.types", "fopen");
                return NULL;
        }