#include <unistd.h>
#include <assert.h>
#include <errno.h>
+#include <locale.h>
+
+#ifdef HAVE_LIBINTL_H
+#include <libintl.h>
+#endif
#ifdef HAVE_LIBREADLINE
#include <readline/readline.h>
main (int argc, char *argv[])
{
setlocale (LC_ALL, "");
+#ifdef HAVE_BINDTEXTDOMAIN
bindtextdomain (PACKAGE, LOCALEBASEDIR);
textdomain (PACKAGE);
+#endif
int c;
const char *filename = NULL;
set_prompt_string ();
- while ((c = getopt (argc, argv, "dfw")) != EOF) {
+ while ((c = getopt (argc, argv, "df:w")) != EOF) {
switch (c) {
case 'd':
open_flags |= HIVEX_OPEN_DEBUG;