Skip to content

Commit

Permalink
1.x: update autoconf, allow building with NLS disabled
Browse files Browse the repository at this point in the history
git-svn-id: http://encfs.googlecode.com/svn/branches/1.x@128 db9cf616-1c43-0410-9cb8-a902689de0d6
  • Loading branch information
vgough committed Nov 13, 2013
1 parent 96d21a4 commit 07b35f2
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 10 deletions.
15 changes: 13 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
Sun Nov 12 2013 Valient Gough <[email protected]>
* fix compiler warnings on OSX 10.9
* allow building with NLS disabled (configure --disable-nls)

Wed Oct 2 2013 Valient Gough <[email protected]>
* adds delaymount option which delays initial mount. Patch by Jeff King.
* fixes encfsctl cat command when iv chaining is enabled (issue #132)
* fix to POD documentation

Sun Oct 21 2012 Valient Gough <[email protected]>
* apply license change to lgpl

Wed Dec 28 2011 Valient Gough <[email protected]>
* remove m4-local
* bump version to 1.7.5

Tue Dec 27 2011 Valient Gough <[email protected]>
* remove auto-generated libtool, add new m4 macros
Expand All @@ -22,7 +33,7 @@ Sun Sep 5 2010 Valient Gough <[email protected]>
option passing mechanism in 1.7
* allow per-block random bytes to be configured independently of
per-block MAC.
* bundle as version 1.7.2
* release versions 1.7.2 - 1.7.4

Sun Aug 29 2010 Valient Gough <[email protected]>
* new IV initialization
Expand Down
5 changes: 3 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
dnl Process this file with autoconf to produce a configure script.

AC_INIT(encfs/encfs.h) dnl a source file from your sub dir
AC_INIT([encfs], [1.7.5])
AC_CONFIG_SRCDIR([encfs/encfs.h])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE(encfs, 1.7.5) dnl searches for some needed programs
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE

AC_CANONICAL_HOST
AM_CONDITIONAL([DARWIN],
Expand Down
5 changes: 1 addition & 4 deletions encfs/encfsctl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifdef __FreeBSD__
#include <libintl.h>
#endif

#include "i18n.h"

Expand Down Expand Up @@ -802,7 +799,7 @@ int main(int argc, char **argv)
{
RLogInit( argc, argv );

#ifdef LOCALEDIR
#if defined(ENABLE_NLS) && defined(LOCALEDIR)
setlocale( LC_ALL, "" );
bindtextdomain( PACKAGE, LOCALEDIR );
textdomain( PACKAGE );
Expand Down
9 changes: 8 additions & 1 deletion encfs/i18n.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@
#ifndef _i18n_incl_
#define _i18n_incl_

#if defined(LOCALEDIR)
#include "config.h"

#if defined(ENABLE_NLS) && defined(LOCALEDIR)

#ifdef __FreeBSD__
#include <libintl.h>
#endif

# include "gettext.h"
// make shortcut for gettext
Expand All @@ -36,6 +42,7 @@ using gnu::autosprintf;
# define gettext_noop(STR) (STR)
# define _(STR) (STR)
# define N_(STR) (STR)
# define ngettext(STR1, STR2, N) ((N) == 1 ? (STR1) : (STR2))

#endif

Expand Down
2 changes: 1 addition & 1 deletion encfs/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ int main(int argc, char *argv[])
// initialize the logging library
RLogInit( argc, argv );

#ifdef LOCALEDIR
#if defined(ENABLE_NLS) && defined(LOCALEDIR)
setlocale( LC_ALL, "" );
bindtextdomain( PACKAGE, LOCALEDIR );
textdomain( PACKAGE );
Expand Down

0 comments on commit 07b35f2

Please sign in to comment.