)
if test "x$with_idn" != "xno"; then
- AC_CHECK_LIB(idn, stringprep_check_version)
- AC_CHECK_FUNCS(idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z)
- AC_CHECK_FUNCS(idna_to_ascii_from_utf8 idna_to_ascii_8z)
- AC_CHECK_FUNCS(idna_to_ascii_lz idna_to_ascii_from_locale)
+ AC_CHECK_LIB(idn, stringprep_check_version)
+ AC_CHECK_FUNCS(idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z)
+ AC_CHECK_FUNCS(idna_to_ascii_from_utf8 idna_to_ascii_8z)
+ AC_CHECK_FUNCS(idna_to_ascii_lz idna_to_ascii_from_locale)
fi
dnl -- end socket --
AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Enable debugging support]),
- [ if test x$enableval = xyes ; then
- AC_DEFINE(DEBUG,1,[ Define to enable debugging info. ])
- fi
- ])
+ [ if test x$enableval = xyes ; then
+ AC_DEFINE(DEBUG,1,[ Define to enable debugging info. ])
+ fi
+ ])
AC_ARG_ENABLE(flock, AC_HELP_STRING([--enable-flock], [Use flock() to lock files]),
[if test $enableval = yes; then
AC_DEFINE(BUFFY_SIZE,1,[ Define to enable the "buffy_size" feature. ])
fi])
-AC_ARG_ENABLE(locales-fix, AC_HELP_STRING([--enable-locales-fix], [The result of isprint() is unreliable ]),
- [if test x$enableval = xyes; then
- AC_DEFINE(LOCALES_HACK,1,[ Define if the result of isprint() is unreliable. ])
- fi])
-
-AC_ARG_WITH(exec-shell, AC_HELP_STRING([--with-exec-shell=SHELL], [Specify alternate shell (ONLY if /bin/sh is broken)]),
- [if test $withval != yes; then
- AC_DEFINE_UNQUOTED(EXECSHELL, "$withval",
- [program to use for shell commands])
- else
- AC_DEFINE_UNQUOTED(EXECSHELL, "/bin/sh")
- fi],
- [AC_DEFINE_UNQUOTED(EXECSHELL, "/bin/sh")])
-
dnl -- start cache --
AC_ARG_ENABLE(hcache, AC_HELP_STRING([--enable-hcache], [Enable header caching]),
[if test x$enableval = xyes; then
close (fderr);
}
- execl (EXECSHELL, "sh", "-c", cmd, NULL);
+ execl ("/bin/sh", "sh", "-c", cmd, NULL);
_exit (127);
}
else if (thepid == -1) {
CurrentMenu = MENU_MAIN;
-
-#ifndef LOCALES_HACK
/* Do we have a locale definition? */
if (((p = getenv ("LC_ALL")) != NULL && p[0]) ||
((p = getenv ("LANG")) != NULL && p[0]) ||
((p = getenv ("LC_CTYPE")) != NULL && p[0]))
set_option (OPTLOCALES);
-#endif
#ifdef HAVE_GETSID
/* Unset suspend by default if we're the session leader */
#else
"-ENABLE_NLS "
#endif
-#ifdef LOCALES_HACK
- "+LOCALES_HACK "
-#else
- "-LOCALES_HACK "
-#endif
#ifdef HAVE_WC_FUNCS
"+HAVE_WC_FUNCS "
#else
printf (" +PKGDATADIR=\"%s\"\n", PKGDATADIR);
printf (" +PKGDOCDIR=\"%s\"\n", PKGDOCDIR);
printf (" +SYSCONFDIR=\"%s\"\n", SYSCONFDIR);
- printf (" +EXECSHELL=\"%s\"\n", EXECSHELL);
#ifdef MIXMASTER
printf (" +MIXMASTER=\"%s\"\n\n", MIXMASTER);
#else
/* Don't let the subprocess think it can use the controlling tty */
setsid ();
- execl (EXECSHELL, "sh", "-c", Tunnel, NULL);
+ execl ("/bin/sh", "sh", "-c", Tunnel, NULL);
_exit (127);
}
mutt_unblock_signals_system (1);
/* utf8.c */
int mutt_wctoutf8 (char *s, unsigned int c);
-#ifdef LOCALES_HACK
-#define IsPrint(c) (isprint((unsigned char)(c)) || \
- ((unsigned char)(c) >= 0xa0))
-#define IsWPrint(wc) (iswprint(wc) || wc >= 0xa0)
-#else
#define IsPrint(c) (isprint((unsigned char)(c)) || \
(option (OPTLOCALES) ? 0 : \
((unsigned char)(c) >= 0xa0)))
#define IsWPrint(wc) (iswprint(wc) || \
(option (OPTLOCALES) ? 0 : (wc >= 0xa0)))
-#endif
#define new_pattern() p_new(pattern_t, 1)
sigaction (SIGTSTP, &act, NULL);
sigaction (SIGCONT, &act, NULL);
- execl (EXECSHELL, "sh", "-c", cmd, NULL);
+ execl ("/bin/sh", "sh", "-c", cmd, NULL);
_exit (127); /* execl error */
}
else if (thepid != -1) {