Search
lxdream.org :: lxdream/aclocal.m4 :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename aclocal.m4
changeset 1:eea311cfd33e
next10:c898b37506e0
author nkeynes
date Sat Oct 02 05:49:23 2004 +0000 (19 years ago)
permissions -rw-r--r--
last change More work on the arm core
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/aclocal.m4 Sat Oct 02 05:49:23 2004 +0000
1.3 @@ -0,0 +1,1474 @@
1.4 +# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
1.5 +
1.6 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
1.7 +# Free Software Foundation, Inc.
1.8 +# This file is free software; the Free Software Foundation
1.9 +# gives unlimited permission to copy and/or distribute it,
1.10 +# with or without modifications, as long as this notice is preserved.
1.11 +
1.12 +# This program is distributed in the hope that it will be useful,
1.13 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
1.14 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1.15 +# PARTICULAR PURPOSE.
1.16 +
1.17 +# Do all the work for Automake. -*- Autoconf -*-
1.18 +
1.19 +# This macro actually does too much some checks are only needed if
1.20 +# your package does certain things. But this isn't really a big deal.
1.21 +
1.22 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
1.23 +# Free Software Foundation, Inc.
1.24 +
1.25 +# This program is free software; you can redistribute it and/or modify
1.26 +# it under the terms of the GNU General Public License as published by
1.27 +# the Free Software Foundation; either version 2, or (at your option)
1.28 +# any later version.
1.29 +
1.30 +# This program is distributed in the hope that it will be useful,
1.31 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.32 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.33 +# GNU General Public License for more details.
1.34 +
1.35 +# You should have received a copy of the GNU General Public License
1.36 +# along with this program; if not, write to the Free Software
1.37 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.38 +# 02111-1307, USA.
1.39 +
1.40 +# serial 10
1.41 +
1.42 +AC_PREREQ([2.54])
1.43 +
1.44 +# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1.45 +# the ones we care about.
1.46 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1.47 +
1.48 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1.49 +# AM_INIT_AUTOMAKE([OPTIONS])
1.50 +# -----------------------------------------------
1.51 +# The call with PACKAGE and VERSION arguments is the old style
1.52 +# call (pre autoconf-2.50), which is being phased out. PACKAGE
1.53 +# and VERSION should now be passed to AC_INIT and removed from
1.54 +# the call to AM_INIT_AUTOMAKE.
1.55 +# We support both call styles for the transition. After
1.56 +# the next Automake release, Autoconf can make the AC_INIT
1.57 +# arguments mandatory, and then we can depend on a new Autoconf
1.58 +# release and drop the old call support.
1.59 +AC_DEFUN([AM_INIT_AUTOMAKE],
1.60 +[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1.61 + AC_REQUIRE([AC_PROG_INSTALL])dnl
1.62 +# test to see if srcdir already configured
1.63 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
1.64 + test -f $srcdir/config.status; then
1.65 + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1.66 +fi
1.67 +
1.68 +# test whether we have cygpath
1.69 +if test -z "$CYGPATH_W"; then
1.70 + if (cygpath --version) >/dev/null 2>/dev/null; then
1.71 + CYGPATH_W='cygpath -w'
1.72 + else
1.73 + CYGPATH_W=echo
1.74 + fi
1.75 +fi
1.76 +AC_SUBST([CYGPATH_W])
1.77 +
1.78 +# Define the identity of the package.
1.79 +dnl Distinguish between old-style and new-style calls.
1.80 +m4_ifval([$2],
1.81 +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1.82 + AC_SUBST([PACKAGE], [$1])dnl
1.83 + AC_SUBST([VERSION], [$2])],
1.84 +[_AM_SET_OPTIONS([$1])dnl
1.85 + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1.86 + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1.87 +
1.88 +_AM_IF_OPTION([no-define],,
1.89 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1.90 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1.91 +
1.92 +# Some tools Automake needs.
1.93 +AC_REQUIRE([AM_SANITY_CHECK])dnl
1.94 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
1.95 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1.96 +AM_MISSING_PROG(AUTOCONF, autoconf)
1.97 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1.98 +AM_MISSING_PROG(AUTOHEADER, autoheader)
1.99 +AM_MISSING_PROG(MAKEINFO, makeinfo)
1.100 +AM_MISSING_PROG(AMTAR, tar)
1.101 +AM_PROG_INSTALL_SH
1.102 +AM_PROG_INSTALL_STRIP
1.103 +# We need awk for the "check" target. The system "awk" is bad on
1.104 +# some platforms.
1.105 +AC_REQUIRE([AC_PROG_AWK])dnl
1.106 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1.107 +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1.108 +
1.109 +_AM_IF_OPTION([no-dependencies],,
1.110 +[AC_PROVIDE_IFELSE([AC_PROG_CC],
1.111 + [_AM_DEPENDENCIES(CC)],
1.112 + [define([AC_PROG_CC],
1.113 + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1.114 +AC_PROVIDE_IFELSE([AC_PROG_CXX],
1.115 + [_AM_DEPENDENCIES(CXX)],
1.116 + [define([AC_PROG_CXX],
1.117 + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1.118 +])
1.119 +])
1.120 +
1.121 +
1.122 +# When config.status generates a header, we must update the stamp-h file.
1.123 +# This file resides in the same directory as the config header
1.124 +# that is generated. The stamp files are numbered to have different names.
1.125 +
1.126 +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1.127 +# loop where config.status creates the headers, so we can generate
1.128 +# our stamp files there.
1.129 +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1.130 +[# Compute $1's index in $config_headers.
1.131 +_am_stamp_count=1
1.132 +for _am_header in $config_headers :; do
1.133 + case $_am_header in
1.134 + $1 | $1:* )
1.135 + break ;;
1.136 + * )
1.137 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1.138 + esac
1.139 +done
1.140 +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
1.141 +
1.142 +# Copyright 2002 Free Software Foundation, Inc.
1.143 +
1.144 +# This program is free software; you can redistribute it and/or modify
1.145 +# it under the terms of the GNU General Public License as published by
1.146 +# the Free Software Foundation; either version 2, or (at your option)
1.147 +# any later version.
1.148 +
1.149 +# This program is distributed in the hope that it will be useful,
1.150 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.151 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.152 +# GNU General Public License for more details.
1.153 +
1.154 +# You should have received a copy of the GNU General Public License
1.155 +# along with this program; if not, write to the Free Software
1.156 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.157 +
1.158 +# AM_AUTOMAKE_VERSION(VERSION)
1.159 +# ----------------------------
1.160 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
1.161 +# generated from the m4 files accompanying Automake X.Y.
1.162 +AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
1.163 +
1.164 +# AM_SET_CURRENT_AUTOMAKE_VERSION
1.165 +# -------------------------------
1.166 +# Call AM_AUTOMAKE_VERSION so it can be traced.
1.167 +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
1.168 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1.169 + [AM_AUTOMAKE_VERSION([1.7.9])])
1.170 +
1.171 +# Helper functions for option handling. -*- Autoconf -*-
1.172 +
1.173 +# Copyright 2001, 2002 Free Software Foundation, Inc.
1.174 +
1.175 +# This program is free software; you can redistribute it and/or modify
1.176 +# it under the terms of the GNU General Public License as published by
1.177 +# the Free Software Foundation; either version 2, or (at your option)
1.178 +# any later version.
1.179 +
1.180 +# This program is distributed in the hope that it will be useful,
1.181 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.182 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.183 +# GNU General Public License for more details.
1.184 +
1.185 +# You should have received a copy of the GNU General Public License
1.186 +# along with this program; if not, write to the Free Software
1.187 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.188 +# 02111-1307, USA.
1.189 +
1.190 +# serial 2
1.191 +
1.192 +# _AM_MANGLE_OPTION(NAME)
1.193 +# -----------------------
1.194 +AC_DEFUN([_AM_MANGLE_OPTION],
1.195 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1.196 +
1.197 +# _AM_SET_OPTION(NAME)
1.198 +# ------------------------------
1.199 +# Set option NAME. Presently that only means defining a flag for this option.
1.200 +AC_DEFUN([_AM_SET_OPTION],
1.201 +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1.202 +
1.203 +# _AM_SET_OPTIONS(OPTIONS)
1.204 +# ----------------------------------
1.205 +# OPTIONS is a space-separated list of Automake options.
1.206 +AC_DEFUN([_AM_SET_OPTIONS],
1.207 +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1.208 +
1.209 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1.210 +# -------------------------------------------
1.211 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1.212 +AC_DEFUN([_AM_IF_OPTION],
1.213 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1.214 +
1.215 +#
1.216 +# Check to make sure that the build environment is sane.
1.217 +#
1.218 +
1.219 +# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
1.220 +
1.221 +# This program is free software; you can redistribute it and/or modify
1.222 +# it under the terms of the GNU General Public License as published by
1.223 +# the Free Software Foundation; either version 2, or (at your option)
1.224 +# any later version.
1.225 +
1.226 +# This program is distributed in the hope that it will be useful,
1.227 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.228 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.229 +# GNU General Public License for more details.
1.230 +
1.231 +# You should have received a copy of the GNU General Public License
1.232 +# along with this program; if not, write to the Free Software
1.233 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.234 +# 02111-1307, USA.
1.235 +
1.236 +# serial 3
1.237 +
1.238 +# AM_SANITY_CHECK
1.239 +# ---------------
1.240 +AC_DEFUN([AM_SANITY_CHECK],
1.241 +[AC_MSG_CHECKING([whether build environment is sane])
1.242 +# Just in case
1.243 +sleep 1
1.244 +echo timestamp > conftest.file
1.245 +# Do `set' in a subshell so we don't clobber the current shell's
1.246 +# arguments. Must try -L first in case configure is actually a
1.247 +# symlink; some systems play weird games with the mod time of symlinks
1.248 +# (eg FreeBSD returns the mod time of the symlink's containing
1.249 +# directory).
1.250 +if (
1.251 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.252 + if test "$[*]" = "X"; then
1.253 + # -L didn't work.
1.254 + set X `ls -t $srcdir/configure conftest.file`
1.255 + fi
1.256 + rm -f conftest.file
1.257 + if test "$[*]" != "X $srcdir/configure conftest.file" \
1.258 + && test "$[*]" != "X conftest.file $srcdir/configure"; then
1.259 +
1.260 + # If neither matched, then we have a broken ls. This can happen
1.261 + # if, for instance, CONFIG_SHELL is bash and it inherits a
1.262 + # broken ls alias from the environment. This has actually
1.263 + # happened. Such a system could not be considered "sane".
1.264 + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1.265 +alias in your environment])
1.266 + fi
1.267 +
1.268 + test "$[2]" = conftest.file
1.269 + )
1.270 +then
1.271 + # Ok.
1.272 + :
1.273 +else
1.274 + AC_MSG_ERROR([newly created file is older than distributed files!
1.275 +Check your system clock])
1.276 +fi
1.277 +AC_MSG_RESULT(yes)])
1.278 +
1.279 +# -*- Autoconf -*-
1.280 +
1.281 +
1.282 +# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
1.283 +
1.284 +# This program is free software; you can redistribute it and/or modify
1.285 +# it under the terms of the GNU General Public License as published by
1.286 +# the Free Software Foundation; either version 2, or (at your option)
1.287 +# any later version.
1.288 +
1.289 +# This program is distributed in the hope that it will be useful,
1.290 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.291 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.292 +# GNU General Public License for more details.
1.293 +
1.294 +# You should have received a copy of the GNU General Public License
1.295 +# along with this program; if not, write to the Free Software
1.296 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.297 +# 02111-1307, USA.
1.298 +
1.299 +# serial 3
1.300 +
1.301 +# AM_MISSING_PROG(NAME, PROGRAM)
1.302 +# ------------------------------
1.303 +AC_DEFUN([AM_MISSING_PROG],
1.304 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
1.305 +$1=${$1-"${am_missing_run}$2"}
1.306 +AC_SUBST($1)])
1.307 +
1.308 +
1.309 +# AM_MISSING_HAS_RUN
1.310 +# ------------------
1.311 +# Define MISSING if not defined so far and test if it supports --run.
1.312 +# If it does, set am_missing_run to use it, otherwise, to nothing.
1.313 +AC_DEFUN([AM_MISSING_HAS_RUN],
1.314 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1.315 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1.316 +# Use eval to expand $SHELL
1.317 +if eval "$MISSING --run true"; then
1.318 + am_missing_run="$MISSING --run "
1.319 +else
1.320 + am_missing_run=
1.321 + AC_MSG_WARN([`missing' script is too old or missing])
1.322 +fi
1.323 +])
1.324 +
1.325 +# AM_AUX_DIR_EXPAND
1.326 +
1.327 +# Copyright 2001 Free Software Foundation, Inc.
1.328 +
1.329 +# This program is free software; you can redistribute it and/or modify
1.330 +# it under the terms of the GNU General Public License as published by
1.331 +# the Free Software Foundation; either version 2, or (at your option)
1.332 +# any later version.
1.333 +
1.334 +# This program is distributed in the hope that it will be useful,
1.335 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.336 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.337 +# GNU General Public License for more details.
1.338 +
1.339 +# You should have received a copy of the GNU General Public License
1.340 +# along with this program; if not, write to the Free Software
1.341 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.342 +# 02111-1307, USA.
1.343 +
1.344 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
1.345 +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
1.346 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
1.347 +#
1.348 +# Of course, Automake must honor this variable whenever it calls a
1.349 +# tool from the auxiliary directory. The problem is that $srcdir (and
1.350 +# therefore $ac_aux_dir as well) can be either absolute or relative,
1.351 +# depending on how configure is run. This is pretty annoying, since
1.352 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
1.353 +# source directory, any form will work fine, but in subdirectories a
1.354 +# relative path needs to be adjusted first.
1.355 +#
1.356 +# $ac_aux_dir/missing
1.357 +# fails when called from a subdirectory if $ac_aux_dir is relative
1.358 +# $top_srcdir/$ac_aux_dir/missing
1.359 +# fails if $ac_aux_dir is absolute,
1.360 +# fails when called from a subdirectory in a VPATH build with
1.361 +# a relative $ac_aux_dir
1.362 +#
1.363 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
1.364 +# are both prefixed by $srcdir. In an in-source build this is usually
1.365 +# harmless because $srcdir is `.', but things will broke when you
1.366 +# start a VPATH build or use an absolute $srcdir.
1.367 +#
1.368 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
1.369 +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
1.370 +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
1.371 +# and then we would define $MISSING as
1.372 +# MISSING="\${SHELL} $am_aux_dir/missing"
1.373 +# This will work as long as MISSING is not called from configure, because
1.374 +# unfortunately $(top_srcdir) has no meaning in configure.
1.375 +# However there are other variables, like CC, which are often used in
1.376 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
1.377 +#
1.378 +# Another solution, used here, is to always expand $ac_aux_dir to an
1.379 +# absolute PATH. The drawback is that using absolute paths prevent a
1.380 +# configured tree to be moved without reconfiguration.
1.381 +
1.382 +# Rely on autoconf to set up CDPATH properly.
1.383 +AC_PREREQ([2.50])
1.384 +
1.385 +AC_DEFUN([AM_AUX_DIR_EXPAND], [
1.386 +# expand $ac_aux_dir to an absolute path
1.387 +am_aux_dir=`cd $ac_aux_dir && pwd`
1.388 +])
1.389 +
1.390 +# AM_PROG_INSTALL_SH
1.391 +# ------------------
1.392 +# Define $install_sh.
1.393 +
1.394 +# Copyright 2001 Free Software Foundation, Inc.
1.395 +
1.396 +# This program is free software; you can redistribute it and/or modify
1.397 +# it under the terms of the GNU General Public License as published by
1.398 +# the Free Software Foundation; either version 2, or (at your option)
1.399 +# any later version.
1.400 +
1.401 +# This program is distributed in the hope that it will be useful,
1.402 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.403 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.404 +# GNU General Public License for more details.
1.405 +
1.406 +# You should have received a copy of the GNU General Public License
1.407 +# along with this program; if not, write to the Free Software
1.408 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.409 +# 02111-1307, USA.
1.410 +
1.411 +AC_DEFUN([AM_PROG_INSTALL_SH],
1.412 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1.413 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.414 +AC_SUBST(install_sh)])
1.415 +
1.416 +# AM_PROG_INSTALL_STRIP
1.417 +
1.418 +# Copyright 2001 Free Software Foundation, Inc.
1.419 +
1.420 +# This program is free software; you can redistribute it and/or modify
1.421 +# it under the terms of the GNU General Public License as published by
1.422 +# the Free Software Foundation; either version 2, or (at your option)
1.423 +# any later version.
1.424 +
1.425 +# This program is distributed in the hope that it will be useful,
1.426 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.427 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.428 +# GNU General Public License for more details.
1.429 +
1.430 +# You should have received a copy of the GNU General Public License
1.431 +# along with this program; if not, write to the Free Software
1.432 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.433 +# 02111-1307, USA.
1.434 +
1.435 +# One issue with vendor `install' (even GNU) is that you can't
1.436 +# specify the program used to strip binaries. This is especially
1.437 +# annoying in cross-compiling environments, where the build's strip
1.438 +# is unlikely to handle the host's binaries.
1.439 +# Fortunately install-sh will honor a STRIPPROG variable, so we
1.440 +# always use install-sh in `make install-strip', and initialize
1.441 +# STRIPPROG with the value of the STRIP variable (set by the user).
1.442 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
1.443 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1.444 +# Installed binaries are usually stripped using `strip' when the user
1.445 +# run `make install-strip'. However `strip' might not be the right
1.446 +# tool to use in cross-compilation environments, therefore Automake
1.447 +# will honor the `STRIP' environment variable to overrule this program.
1.448 +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1.449 +if test "$cross_compiling" != no; then
1.450 + AC_CHECK_TOOL([STRIP], [strip], :)
1.451 +fi
1.452 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1.453 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
1.454 +
1.455 +# -*- Autoconf -*-
1.456 +# Copyright (C) 2003 Free Software Foundation, Inc.
1.457 +
1.458 +# This program is free software; you can redistribute it and/or modify
1.459 +# it under the terms of the GNU General Public License as published by
1.460 +# the Free Software Foundation; either version 2, or (at your option)
1.461 +# any later version.
1.462 +
1.463 +# This program is distributed in the hope that it will be useful,
1.464 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.465 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.466 +# GNU General Public License for more details.
1.467 +
1.468 +# You should have received a copy of the GNU General Public License
1.469 +# along with this program; if not, write to the Free Software
1.470 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.471 +# 02111-1307, USA.
1.472 +
1.473 +# serial 1
1.474 +
1.475 +# Check whether the underlying file-system supports filenames
1.476 +# with a leading dot. For instance MS-DOS doesn't.
1.477 +AC_DEFUN([AM_SET_LEADING_DOT],
1.478 +[rm -rf .tst 2>/dev/null
1.479 +mkdir .tst 2>/dev/null
1.480 +if test -d .tst; then
1.481 + am__leading_dot=.
1.482 +else
1.483 + am__leading_dot=_
1.484 +fi
1.485 +rmdir .tst 2>/dev/null
1.486 +AC_SUBST([am__leading_dot])])
1.487 +
1.488 +# serial 5 -*- Autoconf -*-
1.489 +
1.490 +# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
1.491 +
1.492 +# This program is free software; you can redistribute it and/or modify
1.493 +# it under the terms of the GNU General Public License as published by
1.494 +# the Free Software Foundation; either version 2, or (at your option)
1.495 +# any later version.
1.496 +
1.497 +# This program is distributed in the hope that it will be useful,
1.498 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.499 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.500 +# GNU General Public License for more details.
1.501 +
1.502 +# You should have received a copy of the GNU General Public License
1.503 +# along with this program; if not, write to the Free Software
1.504 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.505 +# 02111-1307, USA.
1.506 +
1.507 +
1.508 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1.509 +# written in clear, in which case automake, when reading aclocal.m4,
1.510 +# will think it sees a *use*, and therefore will trigger all it's
1.511 +# C support machinery. Also note that it means that autoscan, seeing
1.512 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1.513 +
1.514 +
1.515 +
1.516 +# _AM_DEPENDENCIES(NAME)
1.517 +# ----------------------
1.518 +# See how the compiler implements dependency checking.
1.519 +# NAME is "CC", "CXX", "GCJ", or "OBJC".
1.520 +# We try a few techniques and use that to set a single cache variable.
1.521 +#
1.522 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1.523 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1.524 +# dependency, and given that the user is not expected to run this macro,
1.525 +# just rely on AC_PROG_CC.
1.526 +AC_DEFUN([_AM_DEPENDENCIES],
1.527 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
1.528 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1.529 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1.530 +AC_REQUIRE([AM_DEP_TRACK])dnl
1.531 +
1.532 +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1.533 + [$1], CXX, [depcc="$CXX" am_compiler_list=],
1.534 + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1.535 + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1.536 + [depcc="$$1" am_compiler_list=])
1.537 +
1.538 +AC_CACHE_CHECK([dependency style of $depcc],
1.539 + [am_cv_$1_dependencies_compiler_type],
1.540 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.541 + # We make a subdir and do the tests there. Otherwise we can end up
1.542 + # making bogus files that we don't know about and never remove. For
1.543 + # instance it was reported that on HP-UX the gcc test will end up
1.544 + # making a dummy file named `D' -- because `-MD' means `put the output
1.545 + # in D'.
1.546 + mkdir conftest.dir
1.547 + # Copy depcomp to subdir because otherwise we won't find it if we're
1.548 + # using a relative directory.
1.549 + cp "$am_depcomp" conftest.dir
1.550 + cd conftest.dir
1.551 + # We will build objects and dependencies in a subdirectory because
1.552 + # it helps to detect inapplicable dependency modes. For instance
1.553 + # both Tru64's cc and ICC support -MD to output dependencies as a
1.554 + # side effect of compilation, but ICC will put the dependencies in
1.555 + # the current directory while Tru64 will put them in the object
1.556 + # directory.
1.557 + mkdir sub
1.558 +
1.559 + am_cv_$1_dependencies_compiler_type=none
1.560 + if test "$am_compiler_list" = ""; then
1.561 + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1.562 + fi
1.563 + for depmode in $am_compiler_list; do
1.564 + # Setup a source with many dependencies, because some compilers
1.565 + # like to wrap large dependency lists on column 80 (with \), and
1.566 + # we should not choose a depcomp mode which is confused by this.
1.567 + #
1.568 + # We need to recreate these files for each test, as the compiler may
1.569 + # overwrite some of them when testing with obscure command lines.
1.570 + # This happens at least with the AIX C compiler.
1.571 + : > sub/conftest.c
1.572 + for i in 1 2 3 4 5 6; do
1.573 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.574 + : > sub/conftst$i.h
1.575 + done
1.576 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.577 +
1.578 + case $depmode in
1.579 + nosideeffect)
1.580 + # after this tag, mechanisms are not by side-effect, so they'll
1.581 + # only be used when explicitly requested
1.582 + if test "x$enable_dependency_tracking" = xyes; then
1.583 + continue
1.584 + else
1.585 + break
1.586 + fi
1.587 + ;;
1.588 + none) break ;;
1.589 + esac
1.590 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.591 + # mode. It turns out that the SunPro C++ compiler does not properly
1.592 + # handle `-M -o', and we need to detect this.
1.593 + if depmode=$depmode \
1.594 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.595 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.596 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.597 + >/dev/null 2>conftest.err &&
1.598 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.599 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.600 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.601 + # icc doesn't choke on unknown options, it will just issue warnings
1.602 + # (even with -Werror). So we grep stderr for any message
1.603 + # that says an option was ignored.
1.604 + if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
1.605 + am_cv_$1_dependencies_compiler_type=$depmode
1.606 + break
1.607 + fi
1.608 + fi
1.609 + done
1.610 +
1.611 + cd ..
1.612 + rm -rf conftest.dir
1.613 +else
1.614 + am_cv_$1_dependencies_compiler_type=none
1.615 +fi
1.616 +])
1.617 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1.618 +AM_CONDITIONAL([am__fastdep$1], [
1.619 + test "x$enable_dependency_tracking" != xno \
1.620 + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1.621 +])
1.622 +
1.623 +
1.624 +# AM_SET_DEPDIR
1.625 +# -------------
1.626 +# Choose a directory name for dependency files.
1.627 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
1.628 +AC_DEFUN([AM_SET_DEPDIR],
1.629 +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1.630 +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1.631 +])
1.632 +
1.633 +
1.634 +# AM_DEP_TRACK
1.635 +# ------------
1.636 +AC_DEFUN([AM_DEP_TRACK],
1.637 +[AC_ARG_ENABLE(dependency-tracking,
1.638 +[ --disable-dependency-tracking Speeds up one-time builds
1.639 + --enable-dependency-tracking Do not reject slow dependency extractors])
1.640 +if test "x$enable_dependency_tracking" != xno; then
1.641 + am_depcomp="$ac_aux_dir/depcomp"
1.642 + AMDEPBACKSLASH='\'
1.643 +fi
1.644 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1.645 +AC_SUBST([AMDEPBACKSLASH])
1.646 +])
1.647 +
1.648 +# Generate code to set up dependency tracking. -*- Autoconf -*-
1.649 +
1.650 +# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
1.651 +
1.652 +# This program is free software; you can redistribute it and/or modify
1.653 +# it under the terms of the GNU General Public License as published by
1.654 +# the Free Software Foundation; either version 2, or (at your option)
1.655 +# any later version.
1.656 +
1.657 +# This program is distributed in the hope that it will be useful,
1.658 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.659 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.660 +# GNU General Public License for more details.
1.661 +
1.662 +# You should have received a copy of the GNU General Public License
1.663 +# along with this program; if not, write to the Free Software
1.664 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.665 +# 02111-1307, USA.
1.666 +
1.667 +#serial 2
1.668 +
1.669 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
1.670 +# ------------------------------
1.671 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1.672 +[for mf in $CONFIG_FILES; do
1.673 + # Strip MF so we end up with the name of the file.
1.674 + mf=`echo "$mf" | sed -e 's/:.*$//'`
1.675 + # Check whether this is an Automake generated Makefile or not.
1.676 + # We used to match only the files named `Makefile.in', but
1.677 + # some people rename them; so instead we look at the file content.
1.678 + # Grep'ing the first line is not enough: some people post-process
1.679 + # each Makefile.in and add a new line on top of each file to say so.
1.680 + # So let's grep whole file.
1.681 + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1.682 + dirpart=`AS_DIRNAME("$mf")`
1.683 + else
1.684 + continue
1.685 + fi
1.686 + grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
1.687 + # Extract the definition of DEP_FILES from the Makefile without
1.688 + # running `make'.
1.689 + DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
1.690 + test -z "$DEPDIR" && continue
1.691 + # When using ansi2knr, U may be empty or an underscore; expand it
1.692 + U=`sed -n -e '/^U = / s///p' < "$mf"`
1.693 + test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
1.694 + # We invoke sed twice because it is the simplest approach to
1.695 + # changing $(DEPDIR) to its actual value in the expansion.
1.696 + for file in `sed -n -e '
1.697 + /^DEP_FILES = .*\\\\$/ {
1.698 + s/^DEP_FILES = //
1.699 + :loop
1.700 + s/\\\\$//
1.701 + p
1.702 + n
1.703 + /\\\\$/ b loop
1.704 + p
1.705 + }
1.706 + /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
1.707 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1.708 + # Make sure the directory exists.
1.709 + test -f "$dirpart/$file" && continue
1.710 + fdir=`AS_DIRNAME(["$file"])`
1.711 + AS_MKDIR_P([$dirpart/$fdir])
1.712 + # echo "creating $dirpart/$file"
1.713 + echo '# dummy' > "$dirpart/$file"
1.714 + done
1.715 +done
1.716 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1.717 +
1.718 +
1.719 +# AM_OUTPUT_DEPENDENCY_COMMANDS
1.720 +# -----------------------------
1.721 +# This macro should only be invoked once -- use via AC_REQUIRE.
1.722 +#
1.723 +# This code is only required when automatic dependency tracking
1.724 +# is enabled. FIXME. This creates each `.P' file that we will
1.725 +# need in order to bootstrap the dependency handling code.
1.726 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1.727 +[AC_CONFIG_COMMANDS([depfiles],
1.728 + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1.729 + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1.730 +])
1.731 +
1.732 +# Check to see how 'make' treats includes. -*- Autoconf -*-
1.733 +
1.734 +# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
1.735 +
1.736 +# This program is free software; you can redistribute it and/or modify
1.737 +# it under the terms of the GNU General Public License as published by
1.738 +# the Free Software Foundation; either version 2, or (at your option)
1.739 +# any later version.
1.740 +
1.741 +# This program is distributed in the hope that it will be useful,
1.742 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.743 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.744 +# GNU General Public License for more details.
1.745 +
1.746 +# You should have received a copy of the GNU General Public License
1.747 +# along with this program; if not, write to the Free Software
1.748 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.749 +# 02111-1307, USA.
1.750 +
1.751 +# serial 2
1.752 +
1.753 +# AM_MAKE_INCLUDE()
1.754 +# -----------------
1.755 +# Check to see how make treats includes.
1.756 +AC_DEFUN([AM_MAKE_INCLUDE],
1.757 +[am_make=${MAKE-make}
1.758 +cat > confinc << 'END'
1.759 +am__doit:
1.760 + @echo done
1.761 +.PHONY: am__doit
1.762 +END
1.763 +# If we don't find an include directive, just comment out the code.
1.764 +AC_MSG_CHECKING([for style of include used by $am_make])
1.765 +am__include="#"
1.766 +am__quote=
1.767 +_am_result=none
1.768 +# First try GNU make style include.
1.769 +echo "include confinc" > confmf
1.770 +# We grep out `Entering directory' and `Leaving directory'
1.771 +# messages which can occur if `w' ends up in MAKEFLAGS.
1.772 +# In particular we don't look at `^make:' because GNU make might
1.773 +# be invoked under some other name (usually "gmake"), in which
1.774 +# case it prints its new name instead of `make'.
1.775 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1.776 + am__include=include
1.777 + am__quote=
1.778 + _am_result=GNU
1.779 +fi
1.780 +# Now try BSD make style include.
1.781 +if test "$am__include" = "#"; then
1.782 + echo '.include "confinc"' > confmf
1.783 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1.784 + am__include=.include
1.785 + am__quote="\""
1.786 + _am_result=BSD
1.787 + fi
1.788 +fi
1.789 +AC_SUBST([am__include])
1.790 +AC_SUBST([am__quote])
1.791 +AC_MSG_RESULT([$_am_result])
1.792 +rm -f confinc confmf
1.793 +])
1.794 +
1.795 +# AM_CONDITIONAL -*- Autoconf -*-
1.796 +
1.797 +# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
1.798 +
1.799 +# This program is free software; you can redistribute it and/or modify
1.800 +# it under the terms of the GNU General Public License as published by
1.801 +# the Free Software Foundation; either version 2, or (at your option)
1.802 +# any later version.
1.803 +
1.804 +# This program is distributed in the hope that it will be useful,
1.805 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.806 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.807 +# GNU General Public License for more details.
1.808 +
1.809 +# You should have received a copy of the GNU General Public License
1.810 +# along with this program; if not, write to the Free Software
1.811 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.812 +# 02111-1307, USA.
1.813 +
1.814 +# serial 5
1.815 +
1.816 +AC_PREREQ(2.52)
1.817 +
1.818 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
1.819 +# -------------------------------------
1.820 +# Define a conditional.
1.821 +AC_DEFUN([AM_CONDITIONAL],
1.822 +[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
1.823 + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1.824 +AC_SUBST([$1_TRUE])
1.825 +AC_SUBST([$1_FALSE])
1.826 +if $2; then
1.827 + $1_TRUE=
1.828 + $1_FALSE='#'
1.829 +else
1.830 + $1_TRUE='#'
1.831 + $1_FALSE=
1.832 +fi
1.833 +AC_CONFIG_COMMANDS_PRE(
1.834 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1.835 + AC_MSG_ERROR([conditional "$1" was never defined.
1.836 +Usually this means the macro was only invoked conditionally.])
1.837 +fi])])
1.838 +
1.839 +# Add --enable-maintainer-mode option to configure.
1.840 +# From Jim Meyering
1.841 +
1.842 +# Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
1.843 +
1.844 +# This program is free software; you can redistribute it and/or modify
1.845 +# it under the terms of the GNU General Public License as published by
1.846 +# the Free Software Foundation; either version 2, or (at your option)
1.847 +# any later version.
1.848 +
1.849 +# This program is distributed in the hope that it will be useful,
1.850 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.851 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.852 +# GNU General Public License for more details.
1.853 +
1.854 +# You should have received a copy of the GNU General Public License
1.855 +# along with this program; if not, write to the Free Software
1.856 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.857 +# 02111-1307, USA.
1.858 +
1.859 +# serial 2
1.860 +
1.861 +AC_DEFUN([AM_MAINTAINER_MODE],
1.862 +[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1.863 + dnl maintainer-mode is disabled by default
1.864 + AC_ARG_ENABLE(maintainer-mode,
1.865 +[ --enable-maintainer-mode enable make rules and dependencies not useful
1.866 + (and sometimes confusing) to the casual installer],
1.867 + USE_MAINTAINER_MODE=$enableval,
1.868 + USE_MAINTAINER_MODE=no)
1.869 + AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1.870 + AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
1.871 + MAINT=$MAINTAINER_MODE_TRUE
1.872 + AC_SUBST(MAINT)dnl
1.873 +]
1.874 +)
1.875 +
1.876 +AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1.877 +
1.878 +# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
1.879 +
1.880 +# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
1.881 +
1.882 +# This program is free software; you can redistribute it and/or modify
1.883 +# it under the terms of the GNU General Public License as published by
1.884 +# the Free Software Foundation; either version 2, or (at your option)
1.885 +# any later version.
1.886 +
1.887 +# This program is distributed in the hope that it will be useful,
1.888 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.889 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.890 +# GNU General Public License for more details.
1.891 +
1.892 +# You should have received a copy of the GNU General Public License
1.893 +# along with this program; if not, write to the Free Software
1.894 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.895 +# 02111-1307, USA.
1.896 +
1.897 +AC_PREREQ([2.52])
1.898 +
1.899 +# serial 6
1.900 +
1.901 +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
1.902 +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1.903 +
1.904 +# isc-posix.m4 serial 2 (gettext-0.11.2)
1.905 +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
1.906 +dnl This file is free software, distributed under the terms of the GNU
1.907 +dnl General Public License. As a special exception to the GNU General
1.908 +dnl Public License, this file may be distributed as part of a program
1.909 +dnl that contains a configuration script generated by Autoconf, under
1.910 +dnl the same distribution terms as the rest of that program.
1.911 +
1.912 +# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
1.913 +
1.914 +# This test replaces the one in autoconf.
1.915 +# Currently this macro should have the same name as the autoconf macro
1.916 +# because gettext's gettext.m4 (distributed in the automake package)
1.917 +# still uses it. Otherwise, the use in gettext.m4 makes autoheader
1.918 +# give these diagnostics:
1.919 +# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
1.920 +# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
1.921 +
1.922 +undefine([AC_ISC_POSIX])
1.923 +
1.924 +AC_DEFUN([AC_ISC_POSIX],
1.925 + [
1.926 + dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
1.927 + AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
1.928 + ]
1.929 +)
1.930 +
1.931 +
1.932 +# Copyright 1996, 1997, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
1.933 +
1.934 +# This program is free software; you can redistribute it and/or modify
1.935 +# it under the terms of the GNU General Public License as published by
1.936 +# the Free Software Foundation; either version 2, or (at your option)
1.937 +# any later version.
1.938 +
1.939 +# This program is distributed in the hope that it will be useful,
1.940 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.941 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.942 +# GNU General Public License for more details.
1.943 +
1.944 +# You should have received a copy of the GNU General Public License
1.945 +# along with this program; if not, write to the Free Software
1.946 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.947 +# 02111-1307, USA.
1.948 +
1.949 +# serial 2
1.950 +
1.951 +# @defmac AC_PROG_CC_STDC
1.952 +# @maindex PROG_CC_STDC
1.953 +# @ovindex CC
1.954 +# If the C compiler in not in ANSI C mode by default, try to add an option
1.955 +# to output variable @code{CC} to make it so. This macro tries various
1.956 +# options that select ANSI C on some system or another. It considers the
1.957 +# compiler to be in ANSI C mode if it handles function prototypes correctly.
1.958 +#
1.959 +# If you use this macro, you should check after calling it whether the C
1.960 +# compiler has been set to accept ANSI C; if not, the shell variable
1.961 +# @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source
1.962 +# code in ANSI C, you can make an un-ANSIfied copy of it by using the
1.963 +# program @code{ansi2knr}, which comes with Ghostscript.
1.964 +# @end defmac
1.965 +
1.966 +AC_DEFUN([AM_PROG_CC_STDC],
1.967 +[AC_REQUIRE([AC_PROG_CC])
1.968 +AC_BEFORE([$0], [AC_C_INLINE])
1.969 +AC_BEFORE([$0], [AC_C_CONST])
1.970 +dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require
1.971 +dnl a magic option to avoid problems with ANSI preprocessor commands
1.972 +dnl like #elif.
1.973 +dnl FIXME: can't do this because then AC_AIX won't work due to a
1.974 +dnl circular dependency.
1.975 +dnl AC_BEFORE([$0], [AC_PROG_CPP])
1.976 +AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])
1.977 +AC_CACHE_VAL(am_cv_prog_cc_stdc,
1.978 +[am_cv_prog_cc_stdc=no
1.979 +ac_save_CC="$CC"
1.980 +# Don't try gcc -ansi; that turns off useful extensions and
1.981 +# breaks some systems' header files.
1.982 +# AIX -qlanglvl=ansi
1.983 +# Ultrix and OSF/1 -std1
1.984 +# HP-UX 10.20 and later -Ae
1.985 +# HP-UX older versions -Aa -D_HPUX_SOURCE
1.986 +# SVR4 -Xc -D__EXTENSIONS__
1.987 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.988 +do
1.989 + CC="$ac_save_CC $ac_arg"
1.990 + AC_TRY_COMPILE(
1.991 +[#include <stdarg.h>
1.992 +#include <stdio.h>
1.993 +#include <sys/types.h>
1.994 +#include <sys/stat.h>
1.995 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.996 +struct buf { int x; };
1.997 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.998 +static char *e (p, i)
1.999 + char **p;
1.1000 + int i;
1.1001 +{
1.1002 + return p[i];
1.1003 +}
1.1004 +static char *f (char * (*g) (char **, int), char **p, ...)
1.1005 +{
1.1006 + char *s;
1.1007 + va_list v;
1.1008 + va_start (v,p);
1.1009 + s = g (p, va_arg (v,int));
1.1010 + va_end (v);
1.1011 + return s;
1.1012 +}
1.1013 +int test (int i, double x);
1.1014 +struct s1 {int (*f) (int a);};
1.1015 +struct s2 {int (*f) (double a);};
1.1016 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.1017 +int argc;
1.1018 +char **argv;
1.1019 +], [
1.1020 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.1021 +],
1.1022 +[am_cv_prog_cc_stdc="$ac_arg"; break])
1.1023 +done
1.1024 +CC="$ac_save_CC"
1.1025 +])
1.1026 +if test -z "$am_cv_prog_cc_stdc"; then
1.1027 + AC_MSG_RESULT([none needed])
1.1028 +else
1.1029 + AC_MSG_RESULT([$am_cv_prog_cc_stdc])
1.1030 +fi
1.1031 +case "x$am_cv_prog_cc_stdc" in
1.1032 + x|xno) ;;
1.1033 + *) CC="$CC $am_cv_prog_cc_stdc" ;;
1.1034 +esac
1.1035 +])
1.1036 +
1.1037 +AU_DEFUN([fp_PROG_CC_STDC], [AM_PROG_CC_STDC])
1.1038 +
1.1039 +
1.1040 +dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
1.1041 +dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
1.1042 +dnl also defines GSTUFF_PKG_ERRORS on error
1.1043 +AC_DEFUN(PKG_CHECK_MODULES, [
1.1044 + succeeded=no
1.1045 +
1.1046 + if test -z "$PKG_CONFIG"; then
1.1047 + AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
1.1048 + fi
1.1049 +
1.1050 + if test "$PKG_CONFIG" = "no" ; then
1.1051 + echo "*** The pkg-config script could not be found. Make sure it is"
1.1052 + echo "*** in your path, or set the PKG_CONFIG environment variable"
1.1053 + echo "*** to the full path to pkg-config."
1.1054 + echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
1.1055 + else
1.1056 + PKG_CONFIG_MIN_VERSION=0.9.0
1.1057 + if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
1.1058 + AC_MSG_CHECKING(for $2)
1.1059 +
1.1060 + if $PKG_CONFIG --exists "$2" ; then
1.1061 + AC_MSG_RESULT(yes)
1.1062 + succeeded=yes
1.1063 +
1.1064 + AC_MSG_CHECKING($1_CFLAGS)
1.1065 + $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
1.1066 + AC_MSG_RESULT($$1_CFLAGS)
1.1067 +
1.1068 + AC_MSG_CHECKING($1_LIBS)
1.1069 + $1_LIBS=`$PKG_CONFIG --libs "$2"`
1.1070 + AC_MSG_RESULT($$1_LIBS)
1.1071 + else
1.1072 + $1_CFLAGS=""
1.1073 + $1_LIBS=""
1.1074 + ## If we have a custom action on failure, don't print errors, but
1.1075 + ## do set a variable so people can do so.
1.1076 + $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
1.1077 + ifelse([$4], ,echo $$1_PKG_ERRORS,)
1.1078 + fi
1.1079 +
1.1080 + AC_SUBST($1_CFLAGS)
1.1081 + AC_SUBST($1_LIBS)
1.1082 + else
1.1083 + echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
1.1084 + echo "*** See http://www.freedesktop.org/software/pkgconfig"
1.1085 + fi
1.1086 + fi
1.1087 +
1.1088 + if test $succeeded = yes; then
1.1089 + ifelse([$3], , :, [$3])
1.1090 + else
1.1091 + ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
1.1092 + fi
1.1093 +])
1.1094 +
1.1095 +
1.1096 +
1.1097 +# Copyright (C) 1995-2002 Free Software Foundation, Inc.
1.1098 +# Copyright (C) 2001-2003 Red Hat, Inc.
1.1099 +#
1.1100 +# This file is free software, distributed under the terms of the GNU
1.1101 +# General Public License. As a special exception to the GNU General
1.1102 +# Public License, this file may be distributed as part of a program
1.1103 +# that contains a configuration script generated by Autoconf, under
1.1104 +# the same distribution terms as the rest of that program.
1.1105 +#
1.1106 +# This file can be copied and used freely without restrictions. It can
1.1107 +# be used in projects which are not available under the GNU Public License
1.1108 +# but which still want to provide support for the GNU gettext functionality.
1.1109 +#
1.1110 +# Macro to add for using GNU gettext.
1.1111 +# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
1.1112 +#
1.1113 +# Modified to never use included libintl.
1.1114 +# Owen Taylor <otaylor@redhat.com>, 12/15/1998
1.1115 +#
1.1116 +# Major rework to remove unused code
1.1117 +# Owen Taylor <otaylor@redhat.com>, 12/11/2002
1.1118 +#
1.1119 +# Added better handling of ALL_LINGUAS from GNU gettext version
1.1120 +# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
1.1121 +
1.1122 +#
1.1123 +# We need this here as well, since someone might use autoconf-2.5x
1.1124 +# to configure GLib then an older version to configure a package
1.1125 +# using AM_GLIB_GNU_GETTEXT
1.1126 +AC_PREREQ(2.53)
1.1127 +
1.1128 +dnl
1.1129 +dnl We go to great lengths to make sure that aclocal won't
1.1130 +dnl try to pull in the installed version of these macros
1.1131 +dnl when running aclocal in the glib directory.
1.1132 +dnl
1.1133 +m4_copy([AC_DEFUN],[glib_DEFUN])
1.1134 +m4_copy([AC_REQUIRE],[glib_REQUIRE])
1.1135 +dnl
1.1136 +dnl At the end, if we're not within glib, we'll define the public
1.1137 +dnl definitions in terms of our private definitions.
1.1138 +dnl
1.1139 +
1.1140 +# GLIB_LC_MESSAGES
1.1141 +#--------------------
1.1142 +glib_DEFUN([GLIB_LC_MESSAGES],
1.1143 + [AC_CHECK_HEADERS([locale.h])
1.1144 + if test $ac_cv_header_locale_h = yes; then
1.1145 + AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
1.1146 + [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
1.1147 + am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
1.1148 + if test $am_cv_val_LC_MESSAGES = yes; then
1.1149 + AC_DEFINE(HAVE_LC_MESSAGES, 1,
1.1150 + [Define if your <locale.h> file defines LC_MESSAGES.])
1.1151 + fi
1.1152 + fi])
1.1153 +
1.1154 +# GLIB_PATH_PROG_WITH_TEST
1.1155 +#----------------------------
1.1156 +dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
1.1157 +dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
1.1158 +glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
1.1159 +[# Extract the first word of "$2", so it can be a program name with args.
1.1160 +set dummy $2; ac_word=[$]2
1.1161 +AC_MSG_CHECKING([for $ac_word])
1.1162 +AC_CACHE_VAL(ac_cv_path_$1,
1.1163 +[case "[$]$1" in
1.1164 + /*)
1.1165 + ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
1.1166 + ;;
1.1167 + *)
1.1168 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1.1169 + for ac_dir in ifelse([$5], , $PATH, [$5]); do
1.1170 + test -z "$ac_dir" && ac_dir=.
1.1171 + if test -f $ac_dir/$ac_word; then
1.1172 + if [$3]; then
1.1173 + ac_cv_path_$1="$ac_dir/$ac_word"
1.1174 + break
1.1175 + fi
1.1176 + fi
1.1177 + done
1.1178 + IFS="$ac_save_ifs"
1.1179 +dnl If no 4th arg is given, leave the cache variable unset,
1.1180 +dnl so AC_PATH_PROGS will keep looking.
1.1181 +ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
1.1182 +])dnl
1.1183 + ;;
1.1184 +esac])dnl
1.1185 +$1="$ac_cv_path_$1"
1.1186 +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
1.1187 + AC_MSG_RESULT([$]$1)
1.1188 +else
1.1189 + AC_MSG_RESULT(no)
1.1190 +fi
1.1191 +AC_SUBST($1)dnl
1.1192 +])
1.1193 +
1.1194 +# GLIB_WITH_NLS
1.1195 +#-----------------
1.1196 +glib_DEFUN([GLIB_WITH_NLS],
1.1197 + dnl NLS is obligatory
1.1198 + [USE_NLS=yes
1.1199 + AC_SUBST(USE_NLS)
1.1200 +
1.1201 + gt_cv_have_gettext=no
1.1202 +
1.1203 + CATOBJEXT=NONE
1.1204 + XGETTEXT=:
1.1205 + INTLLIBS=
1.1206 +
1.1207 + AC_CHECK_HEADER(libintl.h,
1.1208 + [gt_cv_func_dgettext_libintl="no"
1.1209 + libintl_extra_libs=""
1.1210 +
1.1211 + #
1.1212 + # First check in libc
1.1213 + #
1.1214 + AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
1.1215 + [AC_TRY_LINK([
1.1216 +#include <libintl.h>
1.1217 +],
1.1218 + [return (int) dgettext ("","")],
1.1219 + gt_cv_func_dgettext_libc=yes,
1.1220 + gt_cv_func_dgettext_libc=no)
1.1221 + ])
1.1222 +
1.1223 + if test "$gt_cv_func_dgettext_libc" = "yes" ; then
1.1224 + AC_CHECK_FUNCS(bind_textdomain_codeset)
1.1225 + fi
1.1226 +
1.1227 + #
1.1228 + # If we don't have everything we want, check in libintl
1.1229 + #
1.1230 + if test "$gt_cv_func_dgettext_libc" != "yes" \
1.1231 + || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
1.1232 +
1.1233 + AC_CHECK_LIB(intl, bindtextdomain,
1.1234 + [AC_CHECK_LIB(intl, dgettext,
1.1235 + gt_cv_func_dgettext_libintl=yes)])
1.1236 +
1.1237 + if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
1.1238 + AC_MSG_CHECKING([if -liconv is needed to use gettext])
1.1239 + AC_MSG_RESULT([])
1.1240 + AC_CHECK_LIB(intl, dcgettext,
1.1241 + [gt_cv_func_dgettext_libintl=yes
1.1242 + libintl_extra_libs=-liconv],
1.1243 + :,-liconv)
1.1244 + fi
1.1245 +
1.1246 + #
1.1247 + # If we found libintl, then check in it for bind_textdomain_codeset();
1.1248 + # we'll prefer libc if neither have bind_textdomain_codeset(),
1.1249 + # and both have dgettext
1.1250 + #
1.1251 + if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
1.1252 + glib_save_LIBS="$LIBS"
1.1253 + LIBS="$LIBS -lintl $libintl_extra_libs"
1.1254 + unset ac_cv_func_bind_textdomain_codeset
1.1255 + AC_CHECK_FUNCS(bind_textdomain_codeset)
1.1256 + LIBS="$glib_save_LIBS"
1.1257 +
1.1258 + if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
1.1259 + gt_cv_func_dgettext_libc=no
1.1260 + else
1.1261 + if test "$gt_cv_func_dgettext_libc" = "yes"; then
1.1262 + gt_cv_func_dgettext_libintl=no
1.1263 + fi
1.1264 + fi
1.1265 + fi
1.1266 + fi
1.1267 +
1.1268 + if test "$gt_cv_func_dgettext_libc" = "yes" \
1.1269 + || test "$gt_cv_func_dgettext_libintl" = "yes"; then
1.1270 + gt_cv_have_gettext=yes
1.1271 + fi
1.1272 +
1.1273 + if test "$gt_cv_func_dgettext_libintl" = "yes"; then
1.1274 + INTLLIBS="-lintl $libintl_extra_libs"
1.1275 + fi
1.1276 +
1.1277 + if test "$gt_cv_have_gettext" = "yes"; then
1.1278 + AC_DEFINE(HAVE_GETTEXT,1,
1.1279 + [Define if the GNU gettext() function is already present or preinstalled.])
1.1280 + GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
1.1281 + [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
1.1282 + if test "$MSGFMT" != "no"; then
1.1283 + glib_save_LIBS="$LIBS"
1.1284 + LIBS="$LIBS $INTLLIBS"
1.1285 + AC_CHECK_FUNCS(dcgettext)
1.1286 + AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1.1287 + GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
1.1288 + [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
1.1289 + AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
1.1290 + return _nl_msg_cat_cntr],
1.1291 + [CATOBJEXT=.gmo
1.1292 + DATADIRNAME=share],
1.1293 + [case $host in
1.1294 + *-*-solaris*)
1.1295 + dnl On Solaris, if bind_textdomain_codeset is in libc,
1.1296 + dnl GNU format message catalog is always supported,
1.1297 + dnl since both are added to the libc all together.
1.1298 + dnl Hence, we'd like to go with DATADIRNAME=share and
1.1299 + dnl and CATOBJEXT=.gmo in this case.
1.1300 + AC_CHECK_FUNC(bind_textdomain_codeset,
1.1301 + [CATOBJEXT=.gmo
1.1302 + DATADIRNAME=share],
1.1303 + [CATOBJEXT=.mo
1.1304 + DATADIRNAME=lib])
1.1305 + ;;
1.1306 + *)
1.1307 + CATOBJEXT=.mo
1.1308 + DATADIRNAME=lib
1.1309 + ;;
1.1310 + esac])
1.1311 + LIBS="$glib_save_LIBS"
1.1312 + INSTOBJEXT=.mo
1.1313 + else
1.1314 + gt_cv_have_gettext=no
1.1315 + fi
1.1316 + fi
1.1317 + ])
1.1318 +
1.1319 + if test "$gt_cv_have_gettext" = "yes" ; then
1.1320 + AC_DEFINE(ENABLE_NLS, 1,
1.1321 + [always defined to indicate that i18n is enabled])
1.1322 + fi
1.1323 +
1.1324 + dnl Test whether we really found GNU xgettext.
1.1325 + if test "$XGETTEXT" != ":"; then
1.1326 + dnl If it is not GNU xgettext we define it as : so that the
1.1327 + dnl Makefiles still can work.
1.1328 + if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
1.1329 + : ;
1.1330 + else
1.1331 + AC_MSG_RESULT(
1.1332 + [found xgettext program is not GNU xgettext; ignore it])
1.1333 + XGETTEXT=":"
1.1334 + fi
1.1335 + fi
1.1336 +
1.1337 + # We need to process the po/ directory.
1.1338 + POSUB=po
1.1339 +
1.1340 + AC_OUTPUT_COMMANDS(
1.1341 + [case "$CONFIG_FILES" in *po/Makefile.in*)
1.1342 + sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
1.1343 + esac])
1.1344 +
1.1345 + dnl These rules are solely for the distribution goal. While doing this
1.1346 + dnl we only have to keep exactly one list of the available catalogs
1.1347 + dnl in configure.in.
1.1348 + for lang in $ALL_LINGUAS; do
1.1349 + GMOFILES="$GMOFILES $lang.gmo"
1.1350 + POFILES="$POFILES $lang.po"
1.1351 + done
1.1352 +
1.1353 + dnl Make all variables we use known to autoconf.
1.1354 + AC_SUBST(CATALOGS)
1.1355 + AC_SUBST(CATOBJEXT)
1.1356 + AC_SUBST(DATADIRNAME)
1.1357 + AC_SUBST(GMOFILES)
1.1358 + AC_SUBST(INSTOBJEXT)
1.1359 + AC_SUBST(INTLLIBS)
1.1360 + AC_SUBST(PO_IN_DATADIR_TRUE)
1.1361 + AC_SUBST(PO_IN_DATADIR_FALSE)
1.1362 + AC_SUBST(POFILES)
1.1363 + AC_SUBST(POSUB)
1.1364 + ])
1.1365 +
1.1366 +# AM_GLIB_GNU_GETTEXT
1.1367 +# -------------------
1.1368 +# Do checks necessary for use of gettext. If a suitable implementation
1.1369 +# of gettext is found in either in libintl or in the C library,
1.1370 +# it will set INTLLIBS to the libraries needed for use of gettext
1.1371 +# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
1.1372 +# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
1.1373 +# on various variables needed by the Makefile.in.in installed by
1.1374 +# glib-gettextize.
1.1375 +dnl
1.1376 +glib_DEFUN(GLIB_GNU_GETTEXT,
1.1377 + [AC_REQUIRE([AC_PROG_CC])dnl
1.1378 + AC_REQUIRE([AC_HEADER_STDC])dnl
1.1379 +
1.1380 + GLIB_LC_MESSAGES
1.1381 + GLIB_WITH_NLS
1.1382 +
1.1383 + if test "$gt_cv_have_gettext" = "yes"; then
1.1384 + if test "x$ALL_LINGUAS" = "x"; then
1.1385 + LINGUAS=
1.1386 + else
1.1387 + AC_MSG_CHECKING(for catalogs to be installed)
1.1388 + NEW_LINGUAS=
1.1389 + for presentlang in $ALL_LINGUAS; do
1.1390 + useit=no
1.1391 + if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
1.1392 + desiredlanguages="$LINGUAS"
1.1393 + else
1.1394 + desiredlanguages="$ALL_LINGUAS"
1.1395 + fi
1.1396 + for desiredlang in $desiredlanguages; do
1.1397 + # Use the presentlang catalog if desiredlang is
1.1398 + # a. equal to presentlang, or
1.1399 + # b. a variant of presentlang (because in this case,
1.1400 + # presentlang can be used as a fallback for messages
1.1401 + # which are not translated in the desiredlang catalog).
1.1402 + case "$desiredlang" in
1.1403 + "$presentlang"*) useit=yes;;
1.1404 + esac
1.1405 + done
1.1406 + if test $useit = yes; then
1.1407 + NEW_LINGUAS="$NEW_LINGUAS $presentlang"
1.1408 + fi
1.1409 + done
1.1410 + LINGUAS=$NEW_LINGUAS
1.1411 + AC_MSG_RESULT($LINGUAS)
1.1412 + fi
1.1413 +
1.1414 + dnl Construct list of names of catalog files to be constructed.
1.1415 + if test -n "$LINGUAS"; then
1.1416 + for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
1.1417 + fi
1.1418 + fi
1.1419 +
1.1420 + dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
1.1421 + dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
1.1422 + dnl Try to locate is.
1.1423 + MKINSTALLDIRS=
1.1424 + if test -n "$ac_aux_dir"; then
1.1425 + MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
1.1426 + fi
1.1427 + if test -z "$MKINSTALLDIRS"; then
1.1428 + MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1.1429 + fi
1.1430 + AC_SUBST(MKINSTALLDIRS)
1.1431 +
1.1432 + dnl Generate list of files to be processed by xgettext which will
1.1433 + dnl be included in po/Makefile.
1.1434 + test -d po || mkdir po
1.1435 + if test "x$srcdir" != "x."; then
1.1436 + if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
1.1437 + posrcprefix="$srcdir/"
1.1438 + else
1.1439 + posrcprefix="../$srcdir/"
1.1440 + fi
1.1441 + else
1.1442 + posrcprefix="../"
1.1443 + fi
1.1444 + rm -f po/POTFILES
1.1445 + sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
1.1446 + < $srcdir/po/POTFILES.in > po/POTFILES
1.1447 + ])
1.1448 +
1.1449 +# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
1.1450 +# -------------------------------
1.1451 +# Define VARIABLE to the location where catalog files will
1.1452 +# be installed by po/Makefile.
1.1453 +glib_DEFUN(GLIB_DEFINE_LOCALEDIR,
1.1454 +[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
1.1455 +glib_save_prefix="$prefix"
1.1456 +glib_save_exec_prefix="$exec_prefix"
1.1457 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
1.1458 +test "x$exec_prefix" = xNONE && exec_prefix=$prefix
1.1459 +if test "x$CATOBJEXT" = "x.mo" ; then
1.1460 + localedir=`eval echo "${libdir}/locale"`
1.1461 +else
1.1462 + localedir=`eval echo "${datadir}/locale"`
1.1463 +fi
1.1464 +prefix="$glib_save_prefix"
1.1465 +exec_prefix="$glib_save_exec_prefix"
1.1466 +AC_DEFINE_UNQUOTED($1, "$localedir",
1.1467 + [Define the location where the catalogs will be installed])
1.1468 +])
1.1469 +
1.1470 +dnl
1.1471 +dnl Now the definitions that aclocal will find
1.1472 +dnl
1.1473 +ifdef(glib_configure_in,[],[
1.1474 +AC_DEFUN(AM_GLIB_GNU_GETTEXT,[GLIB_GNU_GETTEXT($@)])
1.1475 +AC_DEFUN(AM_GLIB_DEFINE_LOCALEDIR,[GLIB_DEFINE_LOCALEDIR($@)])
1.1476 +])dnl
1.1477 +
.