aclocal.m4 revision 0bd0e222
10bd0e222Smrg# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
20bd0e222Smrg
30bd0e222Smrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
40bd0e222Smrg# Free Software Foundation, Inc.
50bd0e222Smrg# This file is free software; the Free Software Foundation
60bd0e222Smrg# gives unlimited permission to copy and/or distribute it,
70bd0e222Smrg# with or without modifications, as long as this notice is preserved.
80bd0e222Smrg
90bd0e222Smrg# This program is distributed in the hope that it will be useful,
100bd0e222Smrg# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
110bd0e222Smrg# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
120bd0e222Smrg# PARTICULAR PURPOSE.
130bd0e222Smrg
140bd0e222Smrg# Do all the work for Automake.                            -*- Autoconf -*-
150bd0e222Smrg
160bd0e222Smrg# This macro actually does too much some checks are only needed if
170bd0e222Smrg# your package does certain things.  But this isn't really a big deal.
180bd0e222Smrg
190bd0e222Smrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
200bd0e222Smrg# Free Software Foundation, Inc.
210bd0e222Smrg
220bd0e222Smrg# This program is free software; you can redistribute it and/or modify
230bd0e222Smrg# it under the terms of the GNU General Public License as published by
240bd0e222Smrg# the Free Software Foundation; either version 2, or (at your option)
250bd0e222Smrg# any later version.
260bd0e222Smrg
270bd0e222Smrg# This program is distributed in the hope that it will be useful,
280bd0e222Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
290bd0e222Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
300bd0e222Smrg# GNU General Public License for more details.
310bd0e222Smrg
320bd0e222Smrg# You should have received a copy of the GNU General Public License
330bd0e222Smrg# along with this program; if not, write to the Free Software
340bd0e222Smrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
350bd0e222Smrg# 02111-1307, USA.
360bd0e222Smrg
370bd0e222Smrg# serial 10
380bd0e222Smrg
390bd0e222SmrgAC_PREREQ([2.54])
400bd0e222Smrg
410bd0e222Smrg# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
420bd0e222Smrg# the ones we care about.
430bd0e222Smrgm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
440bd0e222Smrg
450bd0e222Smrg# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
460bd0e222Smrg# AM_INIT_AUTOMAKE([OPTIONS])
470bd0e222Smrg# -----------------------------------------------
480bd0e222Smrg# The call with PACKAGE and VERSION arguments is the old style
490bd0e222Smrg# call (pre autoconf-2.50), which is being phased out.  PACKAGE
500bd0e222Smrg# and VERSION should now be passed to AC_INIT and removed from
510bd0e222Smrg# the call to AM_INIT_AUTOMAKE.
520bd0e222Smrg# We support both call styles for the transition.  After
530bd0e222Smrg# the next Automake release, Autoconf can make the AC_INIT
540bd0e222Smrg# arguments mandatory, and then we can depend on a new Autoconf
550bd0e222Smrg# release and drop the old call support.
560bd0e222SmrgAC_DEFUN([AM_INIT_AUTOMAKE],
570bd0e222Smrg[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
580bd0e222Smrg AC_REQUIRE([AC_PROG_INSTALL])dnl
590bd0e222Smrg# test to see if srcdir already configured
600bd0e222Smrgif test "`cd $srcdir && pwd`" != "`pwd`" &&
610bd0e222Smrg   test -f $srcdir/config.status; then
620bd0e222Smrg  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
630bd0e222Smrgfi
640bd0e222Smrg
650bd0e222Smrg# test whether we have cygpath
660bd0e222Smrgif test -z "$CYGPATH_W"; then
670bd0e222Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
680bd0e222Smrg    CYGPATH_W='cygpath -w'
690bd0e222Smrg  else
700bd0e222Smrg    CYGPATH_W=echo
710bd0e222Smrg  fi
720bd0e222Smrgfi
730bd0e222SmrgAC_SUBST([CYGPATH_W])
740bd0e222Smrg
750bd0e222Smrg# Define the identity of the package.
760bd0e222Smrgdnl Distinguish between old-style and new-style calls.
770bd0e222Smrgm4_ifval([$2],
780bd0e222Smrg[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
790bd0e222Smrg AC_SUBST([PACKAGE], [$1])dnl
800bd0e222Smrg AC_SUBST([VERSION], [$2])],
810bd0e222Smrg[_AM_SET_OPTIONS([$1])dnl
820bd0e222Smrg AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
830bd0e222Smrg AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
840bd0e222Smrg
850bd0e222Smrg_AM_IF_OPTION([no-define],,
860bd0e222Smrg[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
870bd0e222Smrg AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
880bd0e222Smrg
890bd0e222Smrg# Some tools Automake needs.
900bd0e222SmrgAC_REQUIRE([AM_SANITY_CHECK])dnl
910bd0e222SmrgAC_REQUIRE([AC_ARG_PROGRAM])dnl
920bd0e222SmrgAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
930bd0e222SmrgAM_MISSING_PROG(AUTOCONF, autoconf)
940bd0e222SmrgAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
950bd0e222SmrgAM_MISSING_PROG(AUTOHEADER, autoheader)
960bd0e222SmrgAM_MISSING_PROG(MAKEINFO, makeinfo)
970bd0e222SmrgAM_MISSING_PROG(AMTAR, tar)
980bd0e222SmrgAM_PROG_INSTALL_SH
990bd0e222SmrgAM_PROG_INSTALL_STRIP
1000bd0e222Smrg# We need awk for the "check" target.  The system "awk" is bad on
1010bd0e222Smrg# some platforms.
1020bd0e222SmrgAC_REQUIRE([AC_PROG_AWK])dnl
1030bd0e222SmrgAC_REQUIRE([AC_PROG_MAKE_SET])dnl
1040bd0e222SmrgAC_REQUIRE([AM_SET_LEADING_DOT])dnl
1050bd0e222Smrg
1060bd0e222Smrg_AM_IF_OPTION([no-dependencies],,
1070bd0e222Smrg[AC_PROVIDE_IFELSE([AC_PROG_CC],
1080bd0e222Smrg                  [_AM_DEPENDENCIES(CC)],
1090bd0e222Smrg                  [define([AC_PROG_CC],
1100bd0e222Smrg                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1110bd0e222SmrgAC_PROVIDE_IFELSE([AC_PROG_CXX],
1120bd0e222Smrg                  [_AM_DEPENDENCIES(CXX)],
1130bd0e222Smrg                  [define([AC_PROG_CXX],
1140bd0e222Smrg                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1150bd0e222Smrg])
1160bd0e222Smrg])
1170bd0e222Smrg
1180bd0e222Smrg
1190bd0e222Smrg# When config.status generates a header, we must update the stamp-h file.
1200bd0e222Smrg# This file resides in the same directory as the config header
1210bd0e222Smrg# that is generated.  The stamp files are numbered to have different names.
1220bd0e222Smrg
1230bd0e222Smrg# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1240bd0e222Smrg# loop where config.status creates the headers, so we can generate
1250bd0e222Smrg# our stamp files there.
1260bd0e222SmrgAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1270bd0e222Smrg[# Compute $1's index in $config_headers.
1280bd0e222Smrg_am_stamp_count=1
1290bd0e222Smrgfor _am_header in $config_headers :; do
1300bd0e222Smrg  case $_am_header in
1310bd0e222Smrg    $1 | $1:* )
1320bd0e222Smrg      break ;;
1330bd0e222Smrg    * )
1340bd0e222Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1350bd0e222Smrg  esac
1360bd0e222Smrgdone
1370bd0e222Smrgecho "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
1380bd0e222Smrg
1390bd0e222Smrg# Copyright 2002  Free Software Foundation, Inc.
1400bd0e222Smrg
1410bd0e222Smrg# This program is free software; you can redistribute it and/or modify
1420bd0e222Smrg# it under the terms of the GNU General Public License as published by
1430bd0e222Smrg# the Free Software Foundation; either version 2, or (at your option)
1440bd0e222Smrg# any later version.
1450bd0e222Smrg
1460bd0e222Smrg# This program is distributed in the hope that it will be useful,
1470bd0e222Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
1480bd0e222Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1490bd0e222Smrg# GNU General Public License for more details.
1500bd0e222Smrg
1510bd0e222Smrg# You should have received a copy of the GNU General Public License
1520bd0e222Smrg# along with this program; if not, write to the Free Software
1530bd0e222Smrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1540bd0e222Smrg
1550bd0e222Smrg# AM_AUTOMAKE_VERSION(VERSION)
1560bd0e222Smrg# ----------------------------
1570bd0e222Smrg# Automake X.Y traces this macro to ensure aclocal.m4 has been
1580bd0e222Smrg# generated from the m4 files accompanying Automake X.Y.
1590bd0e222SmrgAC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
1600bd0e222Smrg
1610bd0e222Smrg# AM_SET_CURRENT_AUTOMAKE_VERSION
1620bd0e222Smrg# -------------------------------
1630bd0e222Smrg# Call AM_AUTOMAKE_VERSION so it can be traced.
1640bd0e222Smrg# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
1650bd0e222SmrgAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1660bd0e222Smrg	 [AM_AUTOMAKE_VERSION([1.7.9])])
1670bd0e222Smrg
1680bd0e222Smrg# Helper functions for option handling.                    -*- Autoconf -*-
1690bd0e222Smrg
1700bd0e222Smrg# Copyright 2001, 2002  Free Software Foundation, Inc.
1710bd0e222Smrg
1720bd0e222Smrg# This program is free software; you can redistribute it and/or modify
1730bd0e222Smrg# it under the terms of the GNU General Public License as published by
1740bd0e222Smrg# the Free Software Foundation; either version 2, or (at your option)
1750bd0e222Smrg# any later version.
1760bd0e222Smrg
1770bd0e222Smrg# This program is distributed in the hope that it will be useful,
1780bd0e222Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
1790bd0e222Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1800bd0e222Smrg# GNU General Public License for more details.
1810bd0e222Smrg
1820bd0e222Smrg# You should have received a copy of the GNU General Public License
1830bd0e222Smrg# along with this program; if not, write to the Free Software
1840bd0e222Smrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1850bd0e222Smrg# 02111-1307, USA.
1860bd0e222Smrg
1870bd0e222Smrg# serial 2
1880bd0e222Smrg
1890bd0e222Smrg# _AM_MANGLE_OPTION(NAME)
1900bd0e222Smrg# -----------------------
1910bd0e222SmrgAC_DEFUN([_AM_MANGLE_OPTION],
1920bd0e222Smrg[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1930bd0e222Smrg
1940bd0e222Smrg# _AM_SET_OPTION(NAME)
1950bd0e222Smrg# ------------------------------
1960bd0e222Smrg# Set option NAME.  Presently that only means defining a flag for this option.
1970bd0e222SmrgAC_DEFUN([_AM_SET_OPTION],
1980bd0e222Smrg[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1990bd0e222Smrg
2000bd0e222Smrg# _AM_SET_OPTIONS(OPTIONS)
2010bd0e222Smrg# ----------------------------------
2020bd0e222Smrg# OPTIONS is a space-separated list of Automake options.
2030bd0e222SmrgAC_DEFUN([_AM_SET_OPTIONS],
2040bd0e222Smrg[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
2050bd0e222Smrg
2060bd0e222Smrg# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
2070bd0e222Smrg# -------------------------------------------
2080bd0e222Smrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
2090bd0e222SmrgAC_DEFUN([_AM_IF_OPTION],
2100bd0e222Smrg[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
2110bd0e222Smrg
2120bd0e222Smrg#
2130bd0e222Smrg# Check to make sure that the build environment is sane.
2140bd0e222Smrg#
2150bd0e222Smrg
2160bd0e222Smrg# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
2170bd0e222Smrg
2180bd0e222Smrg# This program is free software; you can redistribute it and/or modify
2190bd0e222Smrg# it under the terms of the GNU General Public License as published by
2200bd0e222Smrg# the Free Software Foundation; either version 2, or (at your option)
2210bd0e222Smrg# any later version.
2220bd0e222Smrg
2230bd0e222Smrg# This program is distributed in the hope that it will be useful,
2240bd0e222Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
2250bd0e222Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2260bd0e222Smrg# GNU General Public License for more details.
2270bd0e222Smrg
2280bd0e222Smrg# You should have received a copy of the GNU General Public License
2290bd0e222Smrg# along with this program; if not, write to the Free Software
2300bd0e222Smrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2310bd0e222Smrg# 02111-1307, USA.
2320bd0e222Smrg
2330bd0e222Smrg# serial 3
2340bd0e222Smrg
2350bd0e222Smrg# AM_SANITY_CHECK
2360bd0e222Smrg# ---------------
2370bd0e222SmrgAC_DEFUN([AM_SANITY_CHECK],
2380bd0e222Smrg[AC_MSG_CHECKING([whether build environment is sane])
2390bd0e222Smrg# Just in case
2400bd0e222Smrgsleep 1
2410bd0e222Smrgecho timestamp > conftest.file
2420bd0e222Smrg# Do `set' in a subshell so we don't clobber the current shell's
2430bd0e222Smrg# arguments.  Must try -L first in case configure is actually a
2440bd0e222Smrg# symlink; some systems play weird games with the mod time of symlinks
2450bd0e222Smrg# (eg FreeBSD returns the mod time of the symlink's containing
2460bd0e222Smrg# directory).
2470bd0e222Smrgif (
2480bd0e222Smrg   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2490bd0e222Smrg   if test "$[*]" = "X"; then
2500bd0e222Smrg      # -L didn't work.
2510bd0e222Smrg      set X `ls -t $srcdir/configure conftest.file`
2520bd0e222Smrg   fi
2530bd0e222Smrg   rm -f conftest.file
2540bd0e222Smrg   if test "$[*]" != "X $srcdir/configure conftest.file" \
2550bd0e222Smrg      && test "$[*]" != "X conftest.file $srcdir/configure"; then
2560bd0e222Smrg
2570bd0e222Smrg      # If neither matched, then we have a broken ls.  This can happen
2580bd0e222Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
2590bd0e222Smrg      # broken ls alias from the environment.  This has actually
2600bd0e222Smrg      # happened.  Such a system could not be considered "sane".
2610bd0e222Smrg      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
2620bd0e222Smrgalias in your environment])
2630bd0e222Smrg   fi
2640bd0e222Smrg
2650bd0e222Smrg   test "$[2]" = conftest.file
2660bd0e222Smrg   )
2670bd0e222Smrgthen
2680bd0e222Smrg   # Ok.
2690bd0e222Smrg   :
2700bd0e222Smrgelse
2710bd0e222Smrg   AC_MSG_ERROR([newly created file is older than distributed files!
2720bd0e222SmrgCheck your system clock])
2730bd0e222Smrgfi
2740bd0e222SmrgAC_MSG_RESULT(yes)])
2750bd0e222Smrg
2760bd0e222Smrg#  -*- Autoconf -*-
2770bd0e222Smrg
2780bd0e222Smrg
2790bd0e222Smrg# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
2800bd0e222Smrg
2810bd0e222Smrg# This program is free software; you can redistribute it and/or modify
2820bd0e222Smrg# it under the terms of the GNU General Public License as published by
2830bd0e222Smrg# the Free Software Foundation; either version 2, or (at your option)
2840bd0e222Smrg# any later version.
2850bd0e222Smrg
2860bd0e222Smrg# This program is distributed in the hope that it will be useful,
2870bd0e222Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
2880bd0e222Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2890bd0e222Smrg# GNU General Public License for more details.
2900bd0e222Smrg
2910bd0e222Smrg# You should have received a copy of the GNU General Public License
2920bd0e222Smrg# along with this program; if not, write to the Free Software
2930bd0e222Smrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2940bd0e222Smrg# 02111-1307, USA.
2950bd0e222Smrg
2960bd0e222Smrg# serial 3
2970bd0e222Smrg
2980bd0e222Smrg# AM_MISSING_PROG(NAME, PROGRAM)
2990bd0e222Smrg# ------------------------------
3000bd0e222SmrgAC_DEFUN([AM_MISSING_PROG],
3010bd0e222Smrg[AC_REQUIRE([AM_MISSING_HAS_RUN])
3020bd0e222Smrg$1=${$1-"${am_missing_run}$2"}
3030bd0e222SmrgAC_SUBST($1)])
3040bd0e222Smrg
3050bd0e222Smrg
3060bd0e222Smrg# AM_MISSING_HAS_RUN
3070bd0e222Smrg# ------------------
3080bd0e222Smrg# Define MISSING if not defined so far and test if it supports --run.
3090bd0e222Smrg# If it does, set am_missing_run to use it, otherwise, to nothing.
3100bd0e222SmrgAC_DEFUN([AM_MISSING_HAS_RUN],
3110bd0e222Smrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
3120bd0e222Smrgtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3130bd0e222Smrg# Use eval to expand $SHELL
3140bd0e222Smrgif eval "$MISSING --run true"; then
3150bd0e222Smrg  am_missing_run="$MISSING --run "
3160bd0e222Smrgelse
3170bd0e222Smrg  am_missing_run=
3180bd0e222Smrg  AC_MSG_WARN([`missing' script is too old or missing])
3190bd0e222Smrgfi
3200bd0e222Smrg])
3210bd0e222Smrg
3220bd0e222Smrg# AM_AUX_DIR_EXPAND
3230bd0e222Smrg
3240bd0e222Smrg# Copyright 2001 Free Software Foundation, Inc.
3250bd0e222Smrg
3260bd0e222Smrg# This program is free software; you can redistribute it and/or modify
3270bd0e222Smrg# it under the terms of the GNU General Public License as published by
3280bd0e222Smrg# the Free Software Foundation; either version 2, or (at your option)
3290bd0e222Smrg# any later version.
3300bd0e222Smrg
3310bd0e222Smrg# This program is distributed in the hope that it will be useful,
3320bd0e222Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
3330bd0e222Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3340bd0e222Smrg# GNU General Public License for more details.
3350bd0e222Smrg
3360bd0e222Smrg# You should have received a copy of the GNU General Public License
3370bd0e222Smrg# along with this program; if not, write to the Free Software
3380bd0e222Smrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
3390bd0e222Smrg# 02111-1307, USA.
3400bd0e222Smrg
3410bd0e222Smrg# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
3420bd0e222Smrg# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
3430bd0e222Smrg# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
3440bd0e222Smrg#
3450bd0e222Smrg# Of course, Automake must honor this variable whenever it calls a
3460bd0e222Smrg# tool from the auxiliary directory.  The problem is that $srcdir (and
3470bd0e222Smrg# therefore $ac_aux_dir as well) can be either absolute or relative,
3480bd0e222Smrg# depending on how configure is run.  This is pretty annoying, since
3490bd0e222Smrg# it makes $ac_aux_dir quite unusable in subdirectories: in the top
3500bd0e222Smrg# source directory, any form will work fine, but in subdirectories a
3510bd0e222Smrg# relative path needs to be adjusted first.
3520bd0e222Smrg#
3530bd0e222Smrg# $ac_aux_dir/missing
3540bd0e222Smrg#    fails when called from a subdirectory if $ac_aux_dir is relative
3550bd0e222Smrg# $top_srcdir/$ac_aux_dir/missing
3560bd0e222Smrg#    fails if $ac_aux_dir is absolute,
3570bd0e222Smrg#    fails when called from a subdirectory in a VPATH build with
3580bd0e222Smrg#          a relative $ac_aux_dir
3590bd0e222Smrg#
3600bd0e222Smrg# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
3610bd0e222Smrg# are both prefixed by $srcdir.  In an in-source build this is usually
3620bd0e222Smrg# harmless because $srcdir is `.', but things will broke when you
3630bd0e222Smrg# start a VPATH build or use an absolute $srcdir.
3640bd0e222Smrg#
3650bd0e222Smrg# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
3660bd0e222Smrg# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
3670bd0e222Smrg#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
3680bd0e222Smrg# and then we would define $MISSING as
3690bd0e222Smrg#   MISSING="\${SHELL} $am_aux_dir/missing"
3700bd0e222Smrg# This will work as long as MISSING is not called from configure, because
3710bd0e222Smrg# unfortunately $(top_srcdir) has no meaning in configure.
3720bd0e222Smrg# However there are other variables, like CC, which are often used in
3730bd0e222Smrg# configure, and could therefore not use this "fixed" $ac_aux_dir.
3740bd0e222Smrg#
3750bd0e222Smrg# Another solution, used here, is to always expand $ac_aux_dir to an
3760bd0e222Smrg# absolute PATH.  The drawback is that using absolute paths prevent a
3770bd0e222Smrg# configured tree to be moved without reconfiguration.
3780bd0e222Smrg
3790bd0e222Smrg# Rely on autoconf to set up CDPATH properly.
3800bd0e222SmrgAC_PREREQ([2.50])
3810bd0e222Smrg
3820bd0e222SmrgAC_DEFUN([AM_AUX_DIR_EXPAND], [
3830bd0e222Smrg# expand $ac_aux_dir to an absolute path
3840bd0e222Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
3850bd0e222Smrg])
3860bd0e222Smrg
3870bd0e222Smrg# AM_PROG_INSTALL_SH
3880bd0e222Smrg# ------------------
3890bd0e222Smrg# Define $install_sh.
3900bd0e222Smrg
3910bd0e222Smrg# Copyright 2001 Free Software Foundation, Inc.
3920bd0e222Smrg
3930bd0e222Smrg# This program is free software; you can redistribute it and/or modify
3940bd0e222Smrg# it under the terms of the GNU General Public License as published by
3950bd0e222Smrg# the Free Software Foundation; either version 2, or (at your option)
3960bd0e222Smrg# any later version.
3970bd0e222Smrg
3980bd0e222Smrg# This program is distributed in the hope that it will be useful,
3990bd0e222Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
4000bd0e222Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4010bd0e222Smrg# GNU General Public License for more details.
4020bd0e222Smrg
4030bd0e222Smrg# You should have received a copy of the GNU General Public License
4040bd0e222Smrg# along with this program; if not, write to the Free Software
4050bd0e222Smrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4060bd0e222Smrg# 02111-1307, USA.
4070bd0e222Smrg
4080bd0e222SmrgAC_DEFUN([AM_PROG_INSTALL_SH],
4090bd0e222Smrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
4100bd0e222Smrginstall_sh=${install_sh-"$am_aux_dir/install-sh"}
4110bd0e222SmrgAC_SUBST(install_sh)])
4120bd0e222Smrg
4130bd0e222Smrg# AM_PROG_INSTALL_STRIP
4140bd0e222Smrg
4150bd0e222Smrg# Copyright 2001 Free Software Foundation, Inc.
4160bd0e222Smrg
4170bd0e222Smrg# This program is free software; you can redistribute it and/or modify
4180bd0e222Smrg# it under the terms of the GNU General Public License as published by
4190bd0e222Smrg# the Free Software Foundation; either version 2, or (at your option)
4200bd0e222Smrg# any later version.
4210bd0e222Smrg
4220bd0e222Smrg# This program is distributed in the hope that it will be useful,
4230bd0e222Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
4240bd0e222Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4250bd0e222Smrg# GNU General Public License for more details.
4260bd0e222Smrg
4270bd0e222Smrg# You should have received a copy of the GNU General Public License
4280bd0e222Smrg# along with this program; if not, write to the Free Software
4290bd0e222Smrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4300bd0e222Smrg# 02111-1307, USA.
4310bd0e222Smrg
4320bd0e222Smrg# One issue with vendor `install' (even GNU) is that you can't
4330bd0e222Smrg# specify the program used to strip binaries.  This is especially
4340bd0e222Smrg# annoying in cross-compiling environments, where the build's strip
4350bd0e222Smrg# is unlikely to handle the host's binaries.
4360bd0e222Smrg# Fortunately install-sh will honor a STRIPPROG variable, so we
4370bd0e222Smrg# always use install-sh in `make install-strip', and initialize
4380bd0e222Smrg# STRIPPROG with the value of the STRIP variable (set by the user).
4390bd0e222SmrgAC_DEFUN([AM_PROG_INSTALL_STRIP],
4400bd0e222Smrg[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
4410bd0e222Smrg# Installed binaries are usually stripped using `strip' when the user
4420bd0e222Smrg# run `make install-strip'.  However `strip' might not be the right
4430bd0e222Smrg# tool to use in cross-compilation environments, therefore Automake
4440bd0e222Smrg# will honor the `STRIP' environment variable to overrule this program.
4450bd0e222Smrgdnl Don't test for $cross_compiling = yes, because it might be `maybe'.
4460bd0e222Smrgif test "$cross_compiling" != no; then
4470bd0e222Smrg  AC_CHECK_TOOL([STRIP], [strip], :)
4480bd0e222Smrgfi
4490bd0e222SmrgINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4500bd0e222SmrgAC_SUBST([INSTALL_STRIP_PROGRAM])])
4510bd0e222Smrg
4520bd0e222Smrg#                                                          -*- Autoconf -*-
4530bd0e222Smrg# Copyright (C) 2003  Free Software Foundation, Inc.
4540bd0e222Smrg
4550bd0e222Smrg# This program is free software; you can redistribute it and/or modify
4560bd0e222Smrg# it under the terms of the GNU General Public License as published by
4570bd0e222Smrg# the Free Software Foundation; either version 2, or (at your option)
4580bd0e222Smrg# any later version.
4590bd0e222Smrg
4600bd0e222Smrg# This program is distributed in the hope that it will be useful,
4610bd0e222Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
4620bd0e222Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4630bd0e222Smrg# GNU General Public License for more details.
4640bd0e222Smrg
4650bd0e222Smrg# You should have received a copy of the GNU General Public License
4660bd0e222Smrg# along with this program; if not, write to the Free Software
4670bd0e222Smrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4680bd0e222Smrg# 02111-1307, USA.
4690bd0e222Smrg
4700bd0e222Smrg# serial 1
4710bd0e222Smrg
4720bd0e222Smrg# Check whether the underlying file-system supports filenames
4730bd0e222Smrg# with a leading dot.  For instance MS-DOS doesn't.
4740bd0e222SmrgAC_DEFUN([AM_SET_LEADING_DOT],
4750bd0e222Smrg[rm -rf .tst 2>/dev/null
4760bd0e222Smrgmkdir .tst 2>/dev/null
4770bd0e222Smrgif test -d .tst; then
4780bd0e222Smrg  am__leading_dot=.
4790bd0e222Smrgelse
4800bd0e222Smrg  am__leading_dot=_
4810bd0e222Smrgfi
4820bd0e222Smrgrmdir .tst 2>/dev/null
4830bd0e222SmrgAC_SUBST([am__leading_dot])])
4840bd0e222Smrg
4850bd0e222Smrg# serial 5						-*- Autoconf -*-
4860bd0e222Smrg
4870bd0e222Smrg# Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
4880bd0e222Smrg
4890bd0e222Smrg# This program is free software; you can redistribute it and/or modify
4900bd0e222Smrg# it under the terms of the GNU General Public License as published by
4910bd0e222Smrg# the Free Software Foundation; either version 2, or (at your option)
4920bd0e222Smrg# any later version.
4930bd0e222Smrg
4940bd0e222Smrg# This program is distributed in the hope that it will be useful,
4950bd0e222Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
4960bd0e222Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4970bd0e222Smrg# GNU General Public License for more details.
4980bd0e222Smrg
4990bd0e222Smrg# You should have received a copy of the GNU General Public License
5000bd0e222Smrg# along with this program; if not, write to the Free Software
5010bd0e222Smrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5020bd0e222Smrg# 02111-1307, USA.
5030bd0e222Smrg
5040bd0e222Smrg
5050bd0e222Smrg# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
5060bd0e222Smrg# written in clear, in which case automake, when reading aclocal.m4,
5070bd0e222Smrg# will think it sees a *use*, and therefore will trigger all it's
5080bd0e222Smrg# C support machinery.  Also note that it means that autoscan, seeing
5090bd0e222Smrg# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
5100bd0e222Smrg
5110bd0e222Smrg
5120bd0e222Smrg
5130bd0e222Smrg# _AM_DEPENDENCIES(NAME)
5140bd0e222Smrg# ----------------------
5150bd0e222Smrg# See how the compiler implements dependency checking.
5160bd0e222Smrg# NAME is "CC", "CXX", "GCJ", or "OBJC".
5170bd0e222Smrg# We try a few techniques and use that to set a single cache variable.
5180bd0e222Smrg#
5190bd0e222Smrg# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
5200bd0e222Smrg# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
5210bd0e222Smrg# dependency, and given that the user is not expected to run this macro,
5220bd0e222Smrg# just rely on AC_PROG_CC.
5230bd0e222SmrgAC_DEFUN([_AM_DEPENDENCIES],
5240bd0e222Smrg[AC_REQUIRE([AM_SET_DEPDIR])dnl
5250bd0e222SmrgAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
5260bd0e222SmrgAC_REQUIRE([AM_MAKE_INCLUDE])dnl
5270bd0e222SmrgAC_REQUIRE([AM_DEP_TRACK])dnl
5280bd0e222Smrg
5290bd0e222Smrgifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
5300bd0e222Smrg       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
5310bd0e222Smrg       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
5320bd0e222Smrg       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
5330bd0e222Smrg                   [depcc="$$1"   am_compiler_list=])
5340bd0e222Smrg
5350bd0e222SmrgAC_CACHE_CHECK([dependency style of $depcc],
5360bd0e222Smrg               [am_cv_$1_dependencies_compiler_type],
5370bd0e222Smrg[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5380bd0e222Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
5390bd0e222Smrg  # making bogus files that we don't know about and never remove.  For
5400bd0e222Smrg  # instance it was reported that on HP-UX the gcc test will end up
5410bd0e222Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
5420bd0e222Smrg  # in D'.
5430bd0e222Smrg  mkdir conftest.dir
5440bd0e222Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
5450bd0e222Smrg  # using a relative directory.
5460bd0e222Smrg  cp "$am_depcomp" conftest.dir
5470bd0e222Smrg  cd conftest.dir
5480bd0e222Smrg  # We will build objects and dependencies in a subdirectory because
5490bd0e222Smrg  # it helps to detect inapplicable dependency modes.  For instance
5500bd0e222Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
5510bd0e222Smrg  # side effect of compilation, but ICC will put the dependencies in
5520bd0e222Smrg  # the current directory while Tru64 will put them in the object
5530bd0e222Smrg  # directory.
5540bd0e222Smrg  mkdir sub
5550bd0e222Smrg
5560bd0e222Smrg  am_cv_$1_dependencies_compiler_type=none
5570bd0e222Smrg  if test "$am_compiler_list" = ""; then
5580bd0e222Smrg     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
5590bd0e222Smrg  fi
5600bd0e222Smrg  for depmode in $am_compiler_list; do
5610bd0e222Smrg    # Setup a source with many dependencies, because some compilers
5620bd0e222Smrg    # like to wrap large dependency lists on column 80 (with \), and
5630bd0e222Smrg    # we should not choose a depcomp mode which is confused by this.
5640bd0e222Smrg    #
5650bd0e222Smrg    # We need to recreate these files for each test, as the compiler may
5660bd0e222Smrg    # overwrite some of them when testing with obscure command lines.
5670bd0e222Smrg    # This happens at least with the AIX C compiler.
5680bd0e222Smrg    : > sub/conftest.c
5690bd0e222Smrg    for i in 1 2 3 4 5 6; do
5700bd0e222Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5710bd0e222Smrg      : > sub/conftst$i.h
5720bd0e222Smrg    done
5730bd0e222Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5740bd0e222Smrg
5750bd0e222Smrg    case $depmode in
5760bd0e222Smrg    nosideeffect)
5770bd0e222Smrg      # after this tag, mechanisms are not by side-effect, so they'll
5780bd0e222Smrg      # only be used when explicitly requested
5790bd0e222Smrg      if test "x$enable_dependency_tracking" = xyes; then
5800bd0e222Smrg	continue
5810bd0e222Smrg      else
5820bd0e222Smrg	break
5830bd0e222Smrg      fi
5840bd0e222Smrg      ;;
5850bd0e222Smrg    none) break ;;
5860bd0e222Smrg    esac
5870bd0e222Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5880bd0e222Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
5890bd0e222Smrg    # handle `-M -o', and we need to detect this.
5900bd0e222Smrg    if depmode=$depmode \
5910bd0e222Smrg       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5920bd0e222Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5930bd0e222Smrg       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5940bd0e222Smrg         >/dev/null 2>conftest.err &&
5950bd0e222Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5960bd0e222Smrg       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5970bd0e222Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5980bd0e222Smrg      # icc doesn't choke on unknown options, it will just issue warnings
5990bd0e222Smrg      # (even with -Werror).  So we grep stderr for any message
6000bd0e222Smrg      # that says an option was ignored.
6010bd0e222Smrg      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
6020bd0e222Smrg        am_cv_$1_dependencies_compiler_type=$depmode
6030bd0e222Smrg        break
6040bd0e222Smrg      fi
6050bd0e222Smrg    fi
6060bd0e222Smrg  done
6070bd0e222Smrg
6080bd0e222Smrg  cd ..
6090bd0e222Smrg  rm -rf conftest.dir
6100bd0e222Smrgelse
6110bd0e222Smrg  am_cv_$1_dependencies_compiler_type=none
6120bd0e222Smrgfi
6130bd0e222Smrg])
6140bd0e222SmrgAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
6150bd0e222SmrgAM_CONDITIONAL([am__fastdep$1], [
6160bd0e222Smrg  test "x$enable_dependency_tracking" != xno \
6170bd0e222Smrg  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
6180bd0e222Smrg])
6190bd0e222Smrg
6200bd0e222Smrg
6210bd0e222Smrg# AM_SET_DEPDIR
6220bd0e222Smrg# -------------
6230bd0e222Smrg# Choose a directory name for dependency files.
6240bd0e222Smrg# This macro is AC_REQUIREd in _AM_DEPENDENCIES
6250bd0e222SmrgAC_DEFUN([AM_SET_DEPDIR],
6260bd0e222Smrg[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6270bd0e222SmrgAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
6280bd0e222Smrg])
6290bd0e222Smrg
6300bd0e222Smrg
6310bd0e222Smrg# AM_DEP_TRACK
6320bd0e222Smrg# ------------
6330bd0e222SmrgAC_DEFUN([AM_DEP_TRACK],
6340bd0e222Smrg[AC_ARG_ENABLE(dependency-tracking,
6350bd0e222Smrg[  --disable-dependency-tracking Speeds up one-time builds
6360bd0e222Smrg  --enable-dependency-tracking  Do not reject slow dependency extractors])
6370bd0e222Smrgif test "x$enable_dependency_tracking" != xno; then
6380bd0e222Smrg  am_depcomp="$ac_aux_dir/depcomp"
6390bd0e222Smrg  AMDEPBACKSLASH='\'
6400bd0e222Smrgfi
6410bd0e222SmrgAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6420bd0e222SmrgAC_SUBST([AMDEPBACKSLASH])
6430bd0e222Smrg])
6440bd0e222Smrg
6450bd0e222Smrg# Generate code to set up dependency tracking.   -*- Autoconf -*-
6460bd0e222Smrg
6470bd0e222Smrg# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
6480bd0e222Smrg
6490bd0e222Smrg# This program is free software; you can redistribute it and/or modify
6500bd0e222Smrg# it under the terms of the GNU General Public License as published by
6510bd0e222Smrg# the Free Software Foundation; either version 2, or (at your option)
6520bd0e222Smrg# any later version.
6530bd0e222Smrg
6540bd0e222Smrg# This program is distributed in the hope that it will be useful,
6550bd0e222Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
6560bd0e222Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6570bd0e222Smrg# GNU General Public License for more details.
6580bd0e222Smrg
6590bd0e222Smrg# You should have received a copy of the GNU General Public License
6600bd0e222Smrg# along with this program; if not, write to the Free Software
6610bd0e222Smrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6620bd0e222Smrg# 02111-1307, USA.
6630bd0e222Smrg
6640bd0e222Smrg#serial 2
6650bd0e222Smrg
6660bd0e222Smrg# _AM_OUTPUT_DEPENDENCY_COMMANDS
6670bd0e222Smrg# ------------------------------
6680bd0e222SmrgAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6690bd0e222Smrg[for mf in $CONFIG_FILES; do
6700bd0e222Smrg  # Strip MF so we end up with the name of the file.
6710bd0e222Smrg  mf=`echo "$mf" | sed -e 's/:.*$//'`
6720bd0e222Smrg  # Check whether this is an Automake generated Makefile or not.
6730bd0e222Smrg  # We used to match only the files named `Makefile.in', but
6740bd0e222Smrg  # some people rename them; so instead we look at the file content.
6750bd0e222Smrg  # Grep'ing the first line is not enough: some people post-process
6760bd0e222Smrg  # each Makefile.in and add a new line on top of each file to say so.
6770bd0e222Smrg  # So let's grep whole file.
6780bd0e222Smrg  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6790bd0e222Smrg    dirpart=`AS_DIRNAME("$mf")`
6800bd0e222Smrg  else
6810bd0e222Smrg    continue
6820bd0e222Smrg  fi
6830bd0e222Smrg  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
6840bd0e222Smrg  # Extract the definition of DEP_FILES from the Makefile without
6850bd0e222Smrg  # running `make'.
6860bd0e222Smrg  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6870bd0e222Smrg  test -z "$DEPDIR" && continue
6880bd0e222Smrg  # When using ansi2knr, U may be empty or an underscore; expand it
6890bd0e222Smrg  U=`sed -n -e '/^U = / s///p' < "$mf"`
6900bd0e222Smrg  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6910bd0e222Smrg  # We invoke sed twice because it is the simplest approach to
6920bd0e222Smrg  # changing $(DEPDIR) to its actual value in the expansion.
6930bd0e222Smrg  for file in `sed -n -e '
6940bd0e222Smrg    /^DEP_FILES = .*\\\\$/ {
6950bd0e222Smrg      s/^DEP_FILES = //
6960bd0e222Smrg      :loop
6970bd0e222Smrg	s/\\\\$//
6980bd0e222Smrg	p
6990bd0e222Smrg	n
7000bd0e222Smrg	/\\\\$/ b loop
7010bd0e222Smrg      p
7020bd0e222Smrg    }
7030bd0e222Smrg    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7040bd0e222Smrg       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7050bd0e222Smrg    # Make sure the directory exists.
7060bd0e222Smrg    test -f "$dirpart/$file" && continue
7070bd0e222Smrg    fdir=`AS_DIRNAME(["$file"])`
7080bd0e222Smrg    AS_MKDIR_P([$dirpart/$fdir])
7090bd0e222Smrg    # echo "creating $dirpart/$file"
7100bd0e222Smrg    echo '# dummy' > "$dirpart/$file"
7110bd0e222Smrg  done
7120bd0e222Smrgdone
7130bd0e222Smrg])# _AM_OUTPUT_DEPENDENCY_COMMANDS
7140bd0e222Smrg
7150bd0e222Smrg
7160bd0e222Smrg# AM_OUTPUT_DEPENDENCY_COMMANDS
7170bd0e222Smrg# -----------------------------
7180bd0e222Smrg# This macro should only be invoked once -- use via AC_REQUIRE.
7190bd0e222Smrg#
7200bd0e222Smrg# This code is only required when automatic dependency tracking
7210bd0e222Smrg# is enabled.  FIXME.  This creates each `.P' file that we will
7220bd0e222Smrg# need in order to bootstrap the dependency handling code.
7230bd0e222SmrgAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
7240bd0e222Smrg[AC_CONFIG_COMMANDS([depfiles],
7250bd0e222Smrg     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
7260bd0e222Smrg     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
7270bd0e222Smrg])
7280bd0e222Smrg
7290bd0e222Smrg# Check to see how 'make' treats includes.	-*- Autoconf -*-
7300bd0e222Smrg
7310bd0e222Smrg# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
7320bd0e222Smrg
7330bd0e222Smrg# This program is free software; you can redistribute it and/or modify
7340bd0e222Smrg# it under the terms of the GNU General Public License as published by
7350bd0e222Smrg# the Free Software Foundation; either version 2, or (at your option)
7360bd0e222Smrg# any later version.
7370bd0e222Smrg
7380bd0e222Smrg# This program is distributed in the hope that it will be useful,
7390bd0e222Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
7400bd0e222Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7410bd0e222Smrg# GNU General Public License for more details.
7420bd0e222Smrg
7430bd0e222Smrg# You should have received a copy of the GNU General Public License
7440bd0e222Smrg# along with this program; if not, write to the Free Software
7450bd0e222Smrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7460bd0e222Smrg# 02111-1307, USA.
7470bd0e222Smrg
7480bd0e222Smrg# serial 2
7490bd0e222Smrg
7500bd0e222Smrg# AM_MAKE_INCLUDE()
7510bd0e222Smrg# -----------------
7520bd0e222Smrg# Check to see how make treats includes.
7530bd0e222SmrgAC_DEFUN([AM_MAKE_INCLUDE],
7540bd0e222Smrg[am_make=${MAKE-make}
7550bd0e222Smrgcat > confinc << 'END'
7560bd0e222Smrgam__doit:
7570bd0e222Smrg	@echo done
7580bd0e222Smrg.PHONY: am__doit
7590bd0e222SmrgEND
7600bd0e222Smrg# If we don't find an include directive, just comment out the code.
7610bd0e222SmrgAC_MSG_CHECKING([for style of include used by $am_make])
7620bd0e222Smrgam__include="#"
7630bd0e222Smrgam__quote=
7640bd0e222Smrg_am_result=none
7650bd0e222Smrg# First try GNU make style include.
7660bd0e222Smrgecho "include confinc" > confmf
7670bd0e222Smrg# We grep out `Entering directory' and `Leaving directory'
7680bd0e222Smrg# messages which can occur if `w' ends up in MAKEFLAGS.
7690bd0e222Smrg# In particular we don't look at `^make:' because GNU make might
7700bd0e222Smrg# be invoked under some other name (usually "gmake"), in which
7710bd0e222Smrg# case it prints its new name instead of `make'.
7720bd0e222Smrgif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
7730bd0e222Smrg   am__include=include
7740bd0e222Smrg   am__quote=
7750bd0e222Smrg   _am_result=GNU
7760bd0e222Smrgfi
7770bd0e222Smrg# Now try BSD make style include.
7780bd0e222Smrgif test "$am__include" = "#"; then
7790bd0e222Smrg   echo '.include "confinc"' > confmf
7800bd0e222Smrg   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
7810bd0e222Smrg      am__include=.include
7820bd0e222Smrg      am__quote="\""
7830bd0e222Smrg      _am_result=BSD
7840bd0e222Smrg   fi
7850bd0e222Smrgfi
7860bd0e222SmrgAC_SUBST([am__include])
7870bd0e222SmrgAC_SUBST([am__quote])
7880bd0e222SmrgAC_MSG_RESULT([$_am_result])
7890bd0e222Smrgrm -f confinc confmf
7900bd0e222Smrg])
7910bd0e222Smrg
7920bd0e222Smrg# AM_CONDITIONAL                                              -*- Autoconf -*-
7930bd0e222Smrg
7940bd0e222Smrg# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
7950bd0e222Smrg
7960bd0e222Smrg# This program is free software; you can redistribute it and/or modify
7970bd0e222Smrg# it under the terms of the GNU General Public License as published by
7980bd0e222Smrg# the Free Software Foundation; either version 2, or (at your option)
7990bd0e222Smrg# any later version.
8000bd0e222Smrg
8010bd0e222Smrg# This program is distributed in the hope that it will be useful,
8020bd0e222Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
8030bd0e222Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8040bd0e222Smrg# GNU General Public License for more details.
8050bd0e222Smrg
8060bd0e222Smrg# You should have received a copy of the GNU General Public License
8070bd0e222Smrg# along with this program; if not, write to the Free Software
8080bd0e222Smrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
8090bd0e222Smrg# 02111-1307, USA.
8100bd0e222Smrg
8110bd0e222Smrg# serial 5
8120bd0e222Smrg
8130bd0e222SmrgAC_PREREQ(2.52)
8140bd0e222Smrg
8150bd0e222Smrg# AM_CONDITIONAL(NAME, SHELL-CONDITION)
8160bd0e222Smrg# -------------------------------------
8170bd0e222Smrg# Define a conditional.
8180bd0e222SmrgAC_DEFUN([AM_CONDITIONAL],
8190bd0e222Smrg[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
8200bd0e222Smrg        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8210bd0e222SmrgAC_SUBST([$1_TRUE])
8220bd0e222SmrgAC_SUBST([$1_FALSE])
8230bd0e222Smrgif $2; then
8240bd0e222Smrg  $1_TRUE=
8250bd0e222Smrg  $1_FALSE='#'
8260bd0e222Smrgelse
8270bd0e222Smrg  $1_TRUE='#'
8280bd0e222Smrg  $1_FALSE=
8290bd0e222Smrgfi
8300bd0e222SmrgAC_CONFIG_COMMANDS_PRE(
8310bd0e222Smrg[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
8320bd0e222Smrg  AC_MSG_ERROR([conditional "$1" was never defined.
8330bd0e222SmrgUsually this means the macro was only invoked conditionally.])
8340bd0e222Smrgfi])])
8350bd0e222Smrg
8360bd0e222Smrg# Add --enable-maintainer-mode option to configure.
8370bd0e222Smrg# From Jim Meyering
8380bd0e222Smrg
8390bd0e222Smrg# Copyright 1996, 1998, 2000, 2001, 2002  Free Software Foundation, Inc.
8400bd0e222Smrg
8410bd0e222Smrg# This program is free software; you can redistribute it and/or modify
8420bd0e222Smrg# it under the terms of the GNU General Public License as published by
8430bd0e222Smrg# the Free Software Foundation; either version 2, or (at your option)
8440bd0e222Smrg# any later version.
8450bd0e222Smrg
8460bd0e222Smrg# This program is distributed in the hope that it will be useful,
8470bd0e222Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
8480bd0e222Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8490bd0e222Smrg# GNU General Public License for more details.
8500bd0e222Smrg
8510bd0e222Smrg# You should have received a copy of the GNU General Public License
8520bd0e222Smrg# along with this program; if not, write to the Free Software
8530bd0e222Smrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
8540bd0e222Smrg# 02111-1307, USA.
8550bd0e222Smrg
8560bd0e222Smrg# serial 2
8570bd0e222Smrg
8580bd0e222SmrgAC_DEFUN([AM_MAINTAINER_MODE],
8590bd0e222Smrg[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
8600bd0e222Smrg  dnl maintainer-mode is disabled by default
8610bd0e222Smrg  AC_ARG_ENABLE(maintainer-mode,
8620bd0e222Smrg[  --enable-maintainer-mode enable make rules and dependencies not useful
8630bd0e222Smrg                          (and sometimes confusing) to the casual installer],
8640bd0e222Smrg      USE_MAINTAINER_MODE=$enableval,
8650bd0e222Smrg      USE_MAINTAINER_MODE=no)
8660bd0e222Smrg  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
8670bd0e222Smrg  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
8680bd0e222Smrg  MAINT=$MAINTAINER_MODE_TRUE
8690bd0e222Smrg  AC_SUBST(MAINT)dnl
8700bd0e222Smrg]
8710bd0e222Smrg)
8720bd0e222Smrg
8730bd0e222SmrgAU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
8740bd0e222Smrg
8750bd0e222Smrgdnl Copyright 2005 Red Hat, Inc
8760bd0e222Smrgdnl
8770bd0e222Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its
8780bd0e222Smrgdnl documentation for any purpose is hereby granted without fee, provided that
8790bd0e222Smrgdnl the above copyright notice appear in all copies and that both that
8800bd0e222Smrgdnl copyright notice and this permission notice appear in supporting
8810bd0e222Smrgdnl documentation.
8820bd0e222Smrgdnl
8830bd0e222Smrgdnl The above copyright notice and this permission notice shall be included
8840bd0e222Smrgdnl in all copies or substantial portions of the Software.
8850bd0e222Smrgdnl
8860bd0e222Smrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
8870bd0e222Smrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8880bd0e222Smrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
8890bd0e222Smrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
8900bd0e222Smrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
8910bd0e222Smrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
8920bd0e222Smrgdnl OTHER DEALINGS IN THE SOFTWARE.
8930bd0e222Smrgdnl
8940bd0e222Smrgdnl Except as contained in this notice, the name of the copyright holders shall
8950bd0e222Smrgdnl not be used in advertising or otherwise to promote the sale, use or
8960bd0e222Smrgdnl other dealings in this Software without prior written authorization
8970bd0e222Smrgdnl from the copyright holders.
8980bd0e222Smrgdnl
8990bd0e222Smrg
9000bd0e222Smrg# XORG_RELEASE_VERSION
9010bd0e222Smrg# --------------------
9020bd0e222Smrg# Adds --with/without-release-string and changes the PACKAGE and
9030bd0e222Smrg# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION".  If
9040bd0e222Smrg# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged.
9050bd0e222Smrg 
9060bd0e222SmrgAC_DEFUN([XORG_RELEASE_VERSION],[
9070bd0e222Smrg	AC_ARG_WITH(release-version,
9080bd0e222Smrg			AC_HELP_STRING([--with-release-version=STRING],
9090bd0e222Smrg				[Use release version string in package name]),
9100bd0e222Smrg			[RELEASE_VERSION="$withval"],
9110bd0e222Smrg			[RELEASE_VERSION=""])
9120bd0e222Smrg	if test "x$RELEASE_VERSION" != "x"; then
9130bd0e222Smrg		PACKAGE="$PACKAGE-$RELEASE_VERSION"
9140bd0e222Smrg		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
9150bd0e222Smrg		AC_MSG_NOTICE([Building with package name set to $PACKAGE])
9160bd0e222Smrg	fi
9170bd0e222Smrg])
9180bd0e222Smrg
919