1*404b540aSrobert# nls.m4 serial 1 (gettext-0.12) 2*404b540aSrobertdnl Copyright (C) 1995-2003 Free Software Foundation, Inc. 3*404b540aSrobertdnl This file is free software, distributed under the terms of the GNU 4*404b540aSrobertdnl General Public License. As a special exception to the GNU General 5*404b540aSrobertdnl Public License, this file may be distributed as part of a program 6*404b540aSrobertdnl that contains a configuration script generated by Autoconf, under 7*404b540aSrobertdnl the same distribution terms as the rest of that program. 8*404b540aSrobertdnl 9*404b540aSrobertdnl This file can can be used in projects which are not available under 10*404b540aSrobertdnl the GNU General Public License or the GNU Library General Public 11*404b540aSrobertdnl License but which still want to provide support for the GNU gettext 12*404b540aSrobertdnl functionality. 13*404b540aSrobertdnl Please note that the actual code of the GNU gettext library is covered 14*404b540aSrobertdnl by the GNU Library General Public License, and the rest of the GNU 15*404b540aSrobertdnl gettext package package is covered by the GNU General Public License. 16*404b540aSrobertdnl They are *not* in the public domain. 17*404b540aSrobert 18*404b540aSrobertdnl Authors: 19*404b540aSrobertdnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 20*404b540aSrobertdnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. 21*404b540aSrobert 22*404b540aSrobertAC_DEFUN([AM_NLS], 23*404b540aSrobert[ 24*404b540aSrobert AC_MSG_CHECKING([whether NLS is requested]) 25*404b540aSrobert dnl Default is enabled NLS 26*404b540aSrobert AC_ARG_ENABLE(nls, 27*404b540aSrobert [ --disable-nls do not use Native Language Support], 28*404b540aSrobert USE_NLS=$enableval, USE_NLS=yes) 29*404b540aSrobert AC_MSG_RESULT($USE_NLS) 30*404b540aSrobert AC_SUBST(USE_NLS) 31*404b540aSrobert]) 32*404b540aSrobert 33*404b540aSrobertAC_DEFUN([AM_MKINSTALLDIRS], 34*404b540aSrobert[ 35*404b540aSrobert dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly 36*404b540aSrobert dnl find the mkinstalldirs script in another subdir but $(top_srcdir). 37*404b540aSrobert dnl Try to locate it. 38*404b540aSrobert MKINSTALLDIRS= 39*404b540aSrobert if test -n "$ac_aux_dir"; then 40*404b540aSrobert case "$ac_aux_dir" in 41*404b540aSrobert /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 42*404b540aSrobert *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 43*404b540aSrobert esac 44*404b540aSrobert fi 45*404b540aSrobert if test -z "$MKINSTALLDIRS"; then 46*404b540aSrobert MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 47*404b540aSrobert fi 48*404b540aSrobert AC_SUBST(MKINSTALLDIRS) 49*404b540aSrobert]) 50