| 1 | dnl aclocal.m4 generated automatically by aclocal 1.3
|
|---|
| 2 |
|
|---|
| 3 | dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
|
|---|
| 4 | dnl This Makefile.in is free software; the Free Software Foundation
|
|---|
| 5 | dnl gives unlimited permission to copy and/or distribute it,
|
|---|
| 6 | dnl with or without modifications, as long as this notice is preserved.
|
|---|
| 7 |
|
|---|
| 8 | dnl This program is distributed in the hope that it will be useful,
|
|---|
| 9 | dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|---|
| 10 | dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|---|
| 11 | dnl PARTICULAR PURPOSE.
|
|---|
| 12 |
|
|---|
| 13 | # Like AC_CONFIG_HEADER, but automatically create stamp file.
|
|---|
| 14 |
|
|---|
| 15 | AC_DEFUN(AM_CONFIG_HEADER,
|
|---|
| 16 | [AC_PREREQ([2.12])
|
|---|
| 17 | AC_CONFIG_HEADER([$1])
|
|---|
| 18 | dnl When config.status generates a header, we must update the stamp-h file.
|
|---|
| 19 | dnl This file resides in the same directory as the config header
|
|---|
| 20 | dnl that is generated. We must strip everything past the first ":",
|
|---|
| 21 | dnl and everything past the last "/".
|
|---|
| 22 | AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
|
|---|
| 23 | ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
|
|---|
| 24 | <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
|
|---|
| 25 | <<am_indx=1
|
|---|
| 26 | for am_file in <<$1>>; do
|
|---|
| 27 | case " <<$>>CONFIG_HEADERS " in
|
|---|
| 28 | *" <<$>>am_file "*<<)>>
|
|---|
| 29 | echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
|
|---|
| 30 | ;;
|
|---|
| 31 | esac
|
|---|
| 32 | am_indx=`expr "<<$>>am_indx" + 1`
|
|---|
| 33 | done<<>>dnl>>)
|
|---|
| 34 | changequote([,]))])
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 | # serial 1
|
|---|
| 38 |
|
|---|
| 39 | AC_DEFUN(AM_PROG_INSTALL,
|
|---|
| 40 | [AC_REQUIRE([AC_PROG_INSTALL])
|
|---|
| 41 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 42 | AC_SUBST(INSTALL_SCRIPT)dnl
|
|---|
| 43 | ])
|
|---|
| 44 |
|
|---|
| 45 | # This file is derived from `gettext.m4'. The difference is that the
|
|---|
| 46 | # included macros assume Cygnus-style source and build trees.
|
|---|
| 47 |
|
|---|
| 48 | # Macro to add for using GNU gettext.
|
|---|
| 49 | # Ulrich Drepper <[email protected]>, 1995.
|
|---|
| 50 | #
|
|---|
| 51 | # This file file be copied and used freely without restrictions. It can
|
|---|
| 52 | # be used in projects which are not available under the GNU Public License
|
|---|
| 53 | # but which still want to provide support for the GNU gettext functionality.
|
|---|
| 54 | # Please note that the actual code is *not* freely available.
|
|---|
| 55 |
|
|---|
| 56 | # serial 3
|
|---|
| 57 |
|
|---|
| 58 | AC_DEFUN(CY_WITH_NLS,
|
|---|
| 59 | [AC_MSG_CHECKING([whether NLS is requested])
|
|---|
| 60 | dnl Default is enabled NLS
|
|---|
| 61 | AC_ARG_ENABLE(nls,
|
|---|
| 62 | [ --disable-nls do not use Native Language Support],
|
|---|
| 63 | USE_NLS=$enableval, USE_NLS=yes)
|
|---|
| 64 | AC_MSG_RESULT($USE_NLS)
|
|---|
| 65 | AC_SUBST(USE_NLS)
|
|---|
| 66 |
|
|---|
| 67 | USE_INCLUDED_LIBINTL=no
|
|---|
| 68 |
|
|---|
| 69 | dnl If we use NLS figure out what method
|
|---|
| 70 | if test "$USE_NLS" = "yes"; then
|
|---|
| 71 | AC_DEFINE(ENABLE_NLS)
|
|---|
| 72 | AC_MSG_CHECKING([whether included gettext is requested])
|
|---|
| 73 | AC_ARG_WITH(included-gettext,
|
|---|
| 74 | [ --with-included-gettext use the GNU gettext library included here],
|
|---|
| 75 | nls_cv_force_use_gnu_gettext=$withval,
|
|---|
| 76 | nls_cv_force_use_gnu_gettext=no)
|
|---|
| 77 | AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
|
|---|
| 78 |
|
|---|
| 79 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
|---|
| 80 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
|---|
| 81 | dnl User does not insist on using GNU NLS library. Figure out what
|
|---|
| 82 | dnl to use. If gettext or catgets are available (in this order) we
|
|---|
| 83 | dnl use this. Else we have to fall back to GNU NLS library.
|
|---|
| 84 | dnl catgets is only used if permitted by option --with-catgets.
|
|---|
| 85 | nls_cv_header_intl=
|
|---|
| 86 | nls_cv_header_libgt=
|
|---|
| 87 | CATOBJEXT=NONE
|
|---|
| 88 |
|
|---|
| 89 | AC_CHECK_HEADER(libintl.h,
|
|---|
| 90 | [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
|
|---|
| 91 | [AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
|
|---|
|
|---|