1 --- vice-1.21/configure.in~ 2007-07-06 20:08:39.000000000 +0200
2 +++ vice-1.21/configure.in 2007-07-06 20:11:54.000000000 +0200
4 dnl Add new languages here
5 ALL_LINGUAS="de fr it sv pl nl hu"
7 -dnl These rules are solely for the distribution goal. While doing this
8 -dnl we only have to keep exactly one list of the available catalogs
10 -for lang in $ALL_LINGUAS; do
11 - GMOFILES="$GMOFILES $lang.gmo"
12 - POFILES="$POFILES $lang.po"
17 -if test x"$enable_nls" != "xno" -a x"$is_unix" = "xyes"; then
18 - AC_CHECK_HEADER(libintl.h,
19 - [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
20 - [AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
21 - gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)])
23 - AC_CACHE_CHECK([for gettext in libintl], gt_cv_func_gettext_libintl,
26 - AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
27 - INTLLIBS=-lintl gt_cv_func_gettext_libintl=yes, gt_cv_func_gettext_libintl=no)
30 - if test "$gt_cv_func_gettext_libc" = "yes" \
31 - || test "$gt_cv_func_gettext_libintl" = "yes"; then
32 - AC_DEFINE(HAVE_GETTEXT,,[Define if gettext if available.])
33 - AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
34 - [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
35 - if test "$MSGFMT" != "no"; then
36 - AC_CHECK_FUNCS(dcgettext)
37 - AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
38 - AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
39 - [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
40 - AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
41 - return _nl_msg_cat_cntr],
49 - AC_DEFINE(ENABLE_NLS,,[Define if NLS support is enabled.])
50 - AC_DEFINE(HAVE_LIBINTL_H,,[use libintl for NLS.])
51 - AC_DEFINE_UNQUOTED(DATADIRNAME, "$DATADIRNAME",[NLS datadirname.])
52 - dnl this is prefixed with PREFIX
53 - AC_DEFINE(NLS_LOCALEDIR, PREFIX"/"DATADIRNAME"/locale",[NLS local directory.])
55 - AC_MSG_WARN([libintl.h not found, disabling NLS])
59 - dnl Test whether we really found GNU xgettext.
60 - if test "$XGETTEXT" != ":"; then
61 - dnl If it is no GNU xgettext we define it as : so that the
62 - dnl Makefiles still can work.
63 - if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
67 - [found xgettext program is not GNU xgettext; ignore it])
72 - dnl Test wether GMSGFMT is there. Should fix `make dist'.
73 - if test "$GMSGFMT" = "" ; then
77 - # We need to process the po/ directory.
81 - [case "$CONFIG_FILES" in *po/Makefile.in*)
82 - sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
85 - dnl Make all variables we use known to autoconf.
86 - AC_SUBST(USE_INCLUDED_LIBINTL)
88 - AC_SUBST(DATADIRNAME)
89 - AC_SUBST(INSTOBJEXT)
96 - dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
97 - dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
98 - dnl Try to locate is.
100 - if test -n "$ac_aux_dir"; then
101 - MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
103 - if test -z "$MKINSTALLDIRS"; then
104 - MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
106 - AC_SUBST(MKINSTALLDIRS)
108 - dnl currently no catgets support, can't check it.
112 - if test x"$is_unix" = "xyes"; then
113 - AC_MSG_WARN([disabling NLS on user request])
118 -if test x"$USE_NLS" = "x" ; then
121 -if test "$MSGFMT" = "no" ; then
122 - dnl Fallback to shipped .gmo
123 - dnl Those should work on x86 linux systems.
124 - AC_MSG_WARN([msgfmt not found, falling back to default catalogs (x86/Linux)])
129 -AC_SUBST(NLS_LOCALEDIR)
131 +AC_CHECK_HEADERS(libintl.h)
132 +AC_DEFINE_UNQUOTED(DATADIRNAME, "$DATADIRNAME",[NLS datadirname.])
133 +AC_DEFINE(NLS_LOCALEDIR, PREFIX"/"DATADIRNAME"/locale",[NLS local directory.])
135 dnl Check for a perl interpreter.
136 AC_PATH_PROG(PERL, perl)