>From ada2751a9601aa596d9f6737202f44df4a218a89 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Sun, 21 Mar 2010 19:30:52 +0000 Subject: [PATCH 4/4] Mac OS X: Detect bindtextdomain. These are missing on Mac OS X. I think you would need to install a gettext package to get these. --- configure.ac | 2 +- fish/fish.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 086b00c..4a492b2 100644 --- a/configure.ac +++ b/configure.ac @@ -135,7 +135,7 @@ dnl Headers. AC_CHECK_HEADERS([errno.h sys/types.h sys/un.h sys/wait.h sys/socket.h endian.h byteswap.h]) dnl Functions. -AC_CHECK_FUNCS([posix_fallocate]) +AC_CHECK_FUNCS([bindtextdomain posix_fallocate]) dnl Build the daemon? AC_MSG_CHECKING([if we should build the daemon]) diff --git a/fish/fish.c b/fish/fish.c index 2022ee3..5fbf290 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -141,8 +141,10 @@ main (int argc, char *argv[]) atexit (close_stdout); setlocale (LC_ALL, ""); +#ifdef HAVE_BINDTEXTDOMAIN bindtextdomain (PACKAGE, LOCALEBASEDIR); textdomain (PACKAGE); +#endif enum { HELP_OPTION = CHAR_MAX + 1 }; -- 1.6.4.1