]> granicus.if.org Git - neomutt/commitdiff
Various automake and installation fixes.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 1 Oct 1998 10:06:31 +0000 (10:06 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 1 Oct 1998 10:06:31 +0000 (10:06 +0000)
Makefile.am
Makefile.in
charsets/Makefile.in
configure
configure.in

index 4e36fee7a56ee1e095f8d29f31ef39ea3838558d..21cfc9494d0ff51e904cdd3c9bd6d679fdfd62f5 100644 (file)
@@ -24,6 +24,8 @@ BUILT_SOURCES = mutt_dotlock.c
 mutt_dotlock.c: dotlock.c
        cp dotlock.c mutt_dotlock.c
 
+CLEANFILES = mutt_dotlock.c
+
 LDADD = @LIBOBJS@ @INTLLIBS@
 
 SUBDIRS = doc intl po
@@ -35,3 +37,13 @@ keymap_defs.h: $(OPS)
 
 reldate:
        echo 'const char *ReleaseDate = "'`date +%Y-%m-%d`'";' > $(srcdir)/reldate.h
+
+install-exec-local:
+       if test -f $(bindir)/mutt.dotlock && test -f $(bindir)/mutt_dotlock ; then      \
+               rm -f $(bindir)/mutt.dotlock ;          \
+               ln -sf $(bindir)/mutt_dotlock $(bindir)/mutt.dotlock ; \
+       fi
+       if test -f $(bindir)/mutt_dotlock && test x@DOTLOCK_PERMISSION@ != x ; then \
+               chgrp @DOTLOCK_GROUP@ $(bindir)/mutt_dotlock ; \
+               chmod @DOTLOCK_PERMISSION@  $(bindir)/mutt_dotlock ; \
+       fi
index 76177b1760bbb3875ca851d44bcbb707a3e56660..2c4b1c2c2b251f4fa052594f357ef35abcfa181b 100644 (file)
@@ -120,6 +120,8 @@ EXTRA_mutt_SOURCES = pgp.c pgpinvoke.c pgpkey.c pgppubring.c sha1dgst.c \
 
 BUILT_SOURCES = mutt_dotlock.c
 
+CLEANFILES = mutt_dotlock.c
+
 LDADD = @LIBOBJS@ @INTLLIBS@
 
 SUBDIRS = doc intl po
@@ -427,7 +429,7 @@ all-recursive-am: config.h
 
 all-am: Makefile $(PROGRAMS) config.h
 
-install-exec-am: install-binPROGRAMS
+install-exec-am: install-binPROGRAMS install-exec-local
 
 uninstall-am: uninstall-binPROGRAMS
 
@@ -518,6 +520,16 @@ keymap_defs.h: $(OPS)
 reldate:
        echo 'const char *ReleaseDate = "'`date +%Y-%m-%d`'";' > $(srcdir)/reldate.h
 
+install-exec-local:
+       if test -f $(bindir)/mutt.dotlock && test -f $(bindir)/mutt_dotlock ; then      \
+               rm -f $(bindir)/mutt.dotlock ;          \
+               ln -sf $(bindir)/mutt_dotlock $(bindir)/mutt.dotlock ; \
+       fi
+       if test -f $(bindir)/mutt_dotlock && test x@DOTLOCK_PERMISSION@ != x ; then \
+               chgrp @DOTLOCK_GROUP@ $(bindir)/mutt_dotlock ; \
+               chmod @DOTLOCK_PERMISSION@  $(bindir)/mutt_dotlock ; \
+       fi
+
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
index 5755c10da1b2adb17cf6267d7de688c4d56217d1..c97e1e2229377d7814f04f3714b59b5fcfa21940 100644 (file)
@@ -48,4 +48,8 @@ install: charsets.list
        $(srcdir)/../mkinstalldirs $(sharedir)/charsets
        ( cd $(srcdir) && $(INSTALL) \
                -m 644 `cat charsets.list` $(sharedir)/charsets )
-       $(INSTALL) -m 644 charsets.alias $(sharedir)/charsets
+       $(INSTALL) -m 644 charsets.alias $(sharedir)/charsets/charsets.alias.dist
+       test -f $(sharedir)/charsets/charsets.alias ||                  \
+         $(INSTALL) -m 644 $(sharedir)/charsets/charsets.alias.dist    \
+                       $(sharedir)/charsets/charsets.alias
+
index 66c1790bb2a4af1310951d7f440acd6f98baf0ac..4fc9d53cfbad67ac8c9d186c2671e3ade092b175 100755 (executable)
--- a/configure
+++ b/configure
@@ -2952,7 +2952,7 @@ docdir=$mutt_cv_docdir
 
 
 if test x$mutt_cv_setgid = xyes; then
-       DOTLOCK_GROUP='-g mail'
+       DOTLOCK_GROUP='mail'
        DOTLOCK_PERMISSION=2755
 else
        DOTLOCK_GROUP=''
@@ -5092,7 +5092,7 @@ fi
    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,        $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
        < $srcdir/po/POTFILES.in > po/POTFILES
   
-MUTTLOCALEDIR=$sharedir/locale
+MUTTLOCALEDIR=$mutt_cv_prefix/$DATADIRNAME/locale
 
 cat >> confdefs.h <<EOF
 #define MUTTLOCALEDIR "$MUTTLOCALEDIR"
index 648d49ca1544509f7215fb045e6fca53ec0c5982..dad3f56ea1c817ba8a4f6b755c3d46d36c180b33 100644 (file)
@@ -357,7 +357,7 @@ AC_SUBST(docdir)
 
 
 if test x$mutt_cv_setgid = xyes; then
-       DOTLOCK_GROUP='-g mail'
+       DOTLOCK_GROUP='mail'
        DOTLOCK_PERMISSION=2755
 else
        DOTLOCK_GROUP=''
@@ -436,7 +436,7 @@ AC_ARG_ENABLE(exact-address, [  --enable-exact-address     enable regeneration o
 AC_SUBST(MUTT_LIB_OBJECTS)
 
 AM_GNU_GETTEXT
-MUTTLOCALEDIR=$sharedir/locale
+MUTTLOCALEDIR=$mutt_cv_prefix/$DATADIRNAME/locale
 AC_SUBST(MUTTLOCALEDIR)
 AC_DEFINE_UNQUOTED(MUTTLOCALEDIR, "$MUTTLOCALEDIR")