* src/DisplayModels.py: filtering support * src/GenericFilter.py: filtering support * src/PeopleModel.py: support for filtering * src/PeopleView.py: support for filtering * src/RelLib.py: filtering support * src/Utils.py: filtering support * src/gramps.glade: remove invert for filters * src/gramps_main.py: filtering support svn: r3114
		
			
				
	
	
		
			814 lines
		
	
	
		
			31 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			814 lines
		
	
	
		
			31 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
# generated automatically by aclocal 1.8.3 -*- Autoconf -*-
 | 
						|
 | 
						|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 | 
						|
# Free Software Foundation, Inc.
 | 
						|
# This file is free software; the Free Software Foundation
 | 
						|
# gives unlimited permission to copy and/or distribute it,
 | 
						|
# with or without modifications, as long as this notice is preserved.
 | 
						|
 | 
						|
# This program is distributed in the hope that it will be useful,
 | 
						|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
 | 
						|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 | 
						|
# PARTICULAR PURPOSE.
 | 
						|
 | 
						|
 | 
						|
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
 | 
						|
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
 | 
						|
dnl also defines GSTUFF_PKG_ERRORS on error
 | 
						|
AC_DEFUN(PKG_CHECK_MODULES, [
 | 
						|
  succeeded=no
 | 
						|
 | 
						|
  if test -z "$PKG_CONFIG"; then
 | 
						|
    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 | 
						|
  fi
 | 
						|
 | 
						|
  if test "$PKG_CONFIG" = "no" ; then
 | 
						|
     echo "*** The pkg-config script could not be found. Make sure it is"
 | 
						|
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 | 
						|
     echo "*** to the full path to pkg-config."
 | 
						|
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 | 
						|
  else
 | 
						|
     PKG_CONFIG_MIN_VERSION=0.9.0
 | 
						|
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 | 
						|
        AC_MSG_CHECKING(for $2)
 | 
						|
 | 
						|
        if $PKG_CONFIG --exists "$2" ; then
 | 
						|
            AC_MSG_RESULT(yes)
 | 
						|
            succeeded=yes
 | 
						|
 | 
						|
            AC_MSG_CHECKING($1_CFLAGS)
 | 
						|
            $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
 | 
						|
            AC_MSG_RESULT($$1_CFLAGS)
 | 
						|
 | 
						|
            AC_MSG_CHECKING($1_LIBS)
 | 
						|
            $1_LIBS=`$PKG_CONFIG --libs "$2"`
 | 
						|
            AC_MSG_RESULT($$1_LIBS)
 | 
						|
        else
 | 
						|
            $1_CFLAGS=""
 | 
						|
            $1_LIBS=""
 | 
						|
            ## If we have a custom action on failure, don't print errors, but 
 | 
						|
            ## do set a variable so people can do so.
 | 
						|
            $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 | 
						|
            ifelse([$4], ,echo $$1_PKG_ERRORS,)
 | 
						|
        fi
 | 
						|
 | 
						|
        AC_SUBST($1_CFLAGS)
 | 
						|
        AC_SUBST($1_LIBS)
 | 
						|
     else
 | 
						|
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 | 
						|
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 | 
						|
     fi
 | 
						|
  fi
 | 
						|
 | 
						|
  if test $succeeded = yes; then
 | 
						|
     ifelse([$3], , :, [$3])
 | 
						|
  else
 | 
						|
     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])
 | 
						|
  fi
 | 
						|
])
 | 
						|
 | 
						|
 | 
						|
 | 
						|
#                                                        -*- Autoconf -*-
 | 
						|
# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
 | 
						|
# Generated from amversion.in; do not edit by hand.
 | 
						|
 | 
						|
# This program is free software; you can redistribute it and/or modify
 | 
						|
# it under the terms of the GNU General Public License as published by
 | 
						|
# the Free Software Foundation; either version 2, or (at your option)
 | 
						|
# any later version.
 | 
						|
 | 
						|
# This program is distributed in the hope that it will be useful,
 | 
						|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
# GNU General Public License for more details.
 | 
						|
 | 
						|
# You should have received a copy of the GNU General Public License
 | 
						|
# along with this program; if not, write to the Free Software
 | 
						|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 | 
						|
 | 
						|
# AM_AUTOMAKE_VERSION(VERSION)
 | 
						|
# ----------------------------
 | 
						|
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 | 
						|
# generated from the m4 files accompanying Automake X.Y.
 | 
						|
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
 | 
						|
 | 
						|
# AM_SET_CURRENT_AUTOMAKE_VERSION
 | 
						|
# -------------------------------
 | 
						|
# Call AM_AUTOMAKE_VERSION so it can be traced.
 | 
						|
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 | 
						|
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 | 
						|
	 [AM_AUTOMAKE_VERSION([1.8.3])])
 | 
						|
 | 
						|
# AM_AUX_DIR_EXPAND
 | 
						|
 | 
						|
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 | 
						|
 | 
						|
# This program is free software; you can redistribute it and/or modify
 | 
						|
# it under the terms of the GNU General Public License as published by
 | 
						|
# the Free Software Foundation; either version 2, or (at your option)
 | 
						|
# any later version.
 | 
						|
 | 
						|
# This program is distributed in the hope that it will be useful,
 | 
						|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
# GNU General Public License for more details.
 | 
						|
 | 
						|
# You should have received a copy of the GNU General Public License
 | 
						|
# along with this program; if not, write to the Free Software
 | 
						|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 | 
						|
# 02111-1307, USA.
 | 
						|
 | 
						|
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 | 
						|
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 | 
						|
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 | 
						|
#
 | 
						|
# Of course, Automake must honor this variable whenever it calls a
 | 
						|
# tool from the auxiliary directory.  The problem is that $srcdir (and
 | 
						|
# therefore $ac_aux_dir as well) can be either absolute or relative,
 | 
						|
# depending on how configure is run.  This is pretty annoying, since
 | 
						|
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 | 
						|
# source directory, any form will work fine, but in subdirectories a
 | 
						|
# relative path needs to be adjusted first.
 | 
						|
#
 | 
						|
# $ac_aux_dir/missing
 | 
						|
#    fails when called from a subdirectory if $ac_aux_dir is relative
 | 
						|
# $top_srcdir/$ac_aux_dir/missing
 | 
						|
#    fails if $ac_aux_dir is absolute,
 | 
						|
#    fails when called from a subdirectory in a VPATH build with
 | 
						|
#          a relative $ac_aux_dir
 | 
						|
#
 | 
						|
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 | 
						|
# are both prefixed by $srcdir.  In an in-source build this is usually
 | 
						|
# harmless because $srcdir is `.', but things will broke when you
 | 
						|
# start a VPATH build or use an absolute $srcdir.
 | 
						|
#
 | 
						|
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 | 
						|
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 | 
						|
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 | 
						|
# and then we would define $MISSING as
 | 
						|
#   MISSING="\${SHELL} $am_aux_dir/missing"
 | 
						|
# This will work as long as MISSING is not called from configure, because
 | 
						|
# unfortunately $(top_srcdir) has no meaning in configure.
 | 
						|
# However there are other variables, like CC, which are often used in
 | 
						|
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 | 
						|
#
 | 
						|
# Another solution, used here, is to always expand $ac_aux_dir to an
 | 
						|
# absolute PATH.  The drawback is that using absolute paths prevent a
 | 
						|
# configured tree to be moved without reconfiguration.
 | 
						|
 | 
						|
AC_DEFUN([AM_AUX_DIR_EXPAND],
 | 
						|
[dnl Rely on autoconf to set up CDPATH properly.
 | 
						|
AC_PREREQ([2.50])dnl
 | 
						|
# expand $ac_aux_dir to an absolute path
 | 
						|
am_aux_dir=`cd $ac_aux_dir && pwd`
 | 
						|
])
 | 
						|
 | 
						|
# Do all the work for Automake.                            -*- Autoconf -*-
 | 
						|
 | 
						|
# This macro actually does too much some checks are only needed if
 | 
						|
# your package does certain things.  But this isn't really a big deal.
 | 
						|
 | 
						|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
 | 
						|
# Free Software Foundation, Inc.
 | 
						|
 | 
						|
# This program is free software; you can redistribute it and/or modify
 | 
						|
# it under the terms of the GNU General Public License as published by
 | 
						|
# the Free Software Foundation; either version 2, or (at your option)
 | 
						|
# any later version.
 | 
						|
 | 
						|
# This program is distributed in the hope that it will be useful,
 | 
						|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
# GNU General Public License for more details.
 | 
						|
 | 
						|
# You should have received a copy of the GNU General Public License
 | 
						|
# along with this program; if not, write to the Free Software
 | 
						|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 | 
						|
# 02111-1307, USA.
 | 
						|
 | 
						|
# serial 11
 | 
						|
 | 
						|
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 | 
						|
# AM_INIT_AUTOMAKE([OPTIONS])
 | 
						|
# -----------------------------------------------
 | 
						|
# The call with PACKAGE and VERSION arguments is the old style
 | 
						|
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 | 
						|
# and VERSION should now be passed to AC_INIT and removed from
 | 
						|
# the call to AM_INIT_AUTOMAKE.
 | 
						|
# We support both call styles for the transition.  After
 | 
						|
# the next Automake release, Autoconf can make the AC_INIT
 | 
						|
# arguments mandatory, and then we can depend on a new Autoconf
 | 
						|
# release and drop the old call support.
 | 
						|
AC_DEFUN([AM_INIT_AUTOMAKE],
 | 
						|
[AC_PREREQ([2.58])dnl
 | 
						|
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 | 
						|
dnl the ones we care about.
 | 
						|
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 | 
						|
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 | 
						|
AC_REQUIRE([AC_PROG_INSTALL])dnl
 | 
						|
# test to see if srcdir already configured
 | 
						|
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 | 
						|
   test -f $srcdir/config.status; then
 | 
						|
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 | 
						|
fi
 | 
						|
 | 
						|
# test whether we have cygpath
 | 
						|
if test -z "$CYGPATH_W"; then
 | 
						|
  if (cygpath --version) >/dev/null 2>/dev/null; then
 | 
						|
    CYGPATH_W='cygpath -w'
 | 
						|
  else
 | 
						|
    CYGPATH_W=echo
 | 
						|
  fi
 | 
						|
fi
 | 
						|
AC_SUBST([CYGPATH_W])
 | 
						|
 | 
						|
# Define the identity of the package.
 | 
						|
dnl Distinguish between old-style and new-style calls.
 | 
						|
m4_ifval([$2],
 | 
						|
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 | 
						|
 AC_SUBST([PACKAGE], [$1])dnl
 | 
						|
 AC_SUBST([VERSION], [$2])],
 | 
						|
[_AM_SET_OPTIONS([$1])dnl
 | 
						|
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 | 
						|
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 | 
						|
 | 
						|
_AM_IF_OPTION([no-define],,
 | 
						|
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 | 
						|
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 | 
						|
 | 
						|
# Some tools Automake needs.
 | 
						|
AC_REQUIRE([AM_SANITY_CHECK])dnl
 | 
						|
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 | 
						|
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 | 
						|
AM_MISSING_PROG(AUTOCONF, autoconf)
 | 
						|
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 | 
						|
AM_MISSING_PROG(AUTOHEADER, autoheader)
 | 
						|
AM_MISSING_PROG(MAKEINFO, makeinfo)
 | 
						|
AM_MISSING_PROG(AMTAR, tar)
 | 
						|
AM_PROG_INSTALL_SH
 | 
						|
AM_PROG_INSTALL_STRIP
 | 
						|
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 | 
						|
# We need awk for the "check" target.  The system "awk" is bad on
 | 
						|
# some platforms.
 | 
						|
AC_REQUIRE([AC_PROG_AWK])dnl
 | 
						|
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 | 
						|
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 | 
						|
 | 
						|
_AM_IF_OPTION([no-dependencies],,
 | 
						|
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 | 
						|
                  [_AM_DEPENDENCIES(CC)],
 | 
						|
                  [define([AC_PROG_CC],
 | 
						|
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 | 
						|
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 | 
						|
                  [_AM_DEPENDENCIES(CXX)],
 | 
						|
                  [define([AC_PROG_CXX],
 | 
						|
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 | 
						|
])
 | 
						|
])
 | 
						|
 | 
						|
 | 
						|
# When config.status generates a header, we must update the stamp-h file.
 | 
						|
# This file resides in the same directory as the config header
 | 
						|
# that is generated.  The stamp files are numbered to have different names.
 | 
						|
 | 
						|
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 | 
						|
# loop where config.status creates the headers, so we can generate
 | 
						|
# our stamp files there.
 | 
						|
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 | 
						|
[# Compute $1's index in $config_headers.
 | 
						|
_am_stamp_count=1
 | 
						|
for _am_header in $config_headers :; do
 | 
						|
  case $_am_header in
 | 
						|
    $1 | $1:* )
 | 
						|
      break ;;
 | 
						|
    * )
 | 
						|
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 | 
						|
  esac
 | 
						|
done
 | 
						|
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 | 
						|
 | 
						|
# AM_PROG_INSTALL_SH
 | 
						|
# ------------------
 | 
						|
# Define $install_sh.
 | 
						|
 | 
						|
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 | 
						|
 | 
						|
# This program is free software; you can redistribute it and/or modify
 | 
						|
# it under the terms of the GNU General Public License as published by
 | 
						|
# the Free Software Foundation; either version 2, or (at your option)
 | 
						|
# any later version.
 | 
						|
 | 
						|
# This program is distributed in the hope that it will be useful,
 | 
						|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
# GNU General Public License for more details.
 | 
						|
 | 
						|
# You should have received a copy of the GNU General Public License
 | 
						|
# along with this program; if not, write to the Free Software
 | 
						|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 | 
						|
# 02111-1307, USA.
 | 
						|
 | 
						|
AC_DEFUN([AM_PROG_INSTALL_SH],
 | 
						|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 | 
						|
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 | 
						|
AC_SUBST(install_sh)])
 | 
						|
 | 
						|
#                                                          -*- Autoconf -*-
 | 
						|
# Copyright (C) 2003  Free Software Foundation, Inc.
 | 
						|
 | 
						|
# This program is free software; you can redistribute it and/or modify
 | 
						|
# it under the terms of the GNU General Public License as published by
 | 
						|
# the Free Software Foundation; either version 2, or (at your option)
 | 
						|
# any later version.
 | 
						|
 | 
						|
# This program is distributed in the hope that it will be useful,
 | 
						|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
# GNU General Public License for more details.
 | 
						|
 | 
						|
# You should have received a copy of the GNU General Public License
 | 
						|
# along with this program; if not, write to the Free Software
 | 
						|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 | 
						|
# 02111-1307, USA.
 | 
						|
 | 
						|
# serial 1
 | 
						|
 | 
						|
# Check whether the underlying file-system supports filenames
 | 
						|
# with a leading dot.  For instance MS-DOS doesn't.
 | 
						|
AC_DEFUN([AM_SET_LEADING_DOT],
 | 
						|
[rm -rf .tst 2>/dev/null
 | 
						|
mkdir .tst 2>/dev/null
 | 
						|
if test -d .tst; then
 | 
						|
  am__leading_dot=.
 | 
						|
else
 | 
						|
  am__leading_dot=_
 | 
						|
fi
 | 
						|
rmdir .tst 2>/dev/null
 | 
						|
AC_SUBST([am__leading_dot])])
 | 
						|
 | 
						|
#  -*- Autoconf -*-
 | 
						|
 | 
						|
 | 
						|
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
 | 
						|
 | 
						|
# This program is free software; you can redistribute it and/or modify
 | 
						|
# it under the terms of the GNU General Public License as published by
 | 
						|
# the Free Software Foundation; either version 2, or (at your option)
 | 
						|
# any later version.
 | 
						|
 | 
						|
# This program is distributed in the hope that it will be useful,
 | 
						|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
# GNU General Public License for more details.
 | 
						|
 | 
						|
# You should have received a copy of the GNU General Public License
 | 
						|
# along with this program; if not, write to the Free Software
 | 
						|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 | 
						|
# 02111-1307, USA.
 | 
						|
 | 
						|
# serial 3
 | 
						|
 | 
						|
# AM_MISSING_PROG(NAME, PROGRAM)
 | 
						|
# ------------------------------
 | 
						|
AC_DEFUN([AM_MISSING_PROG],
 | 
						|
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 | 
						|
$1=${$1-"${am_missing_run}$2"}
 | 
						|
AC_SUBST($1)])
 | 
						|
 | 
						|
 | 
						|
# AM_MISSING_HAS_RUN
 | 
						|
# ------------------
 | 
						|
# Define MISSING if not defined so far and test if it supports --run.
 | 
						|
# If it does, set am_missing_run to use it, otherwise, to nothing.
 | 
						|
AC_DEFUN([AM_MISSING_HAS_RUN],
 | 
						|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 | 
						|
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 | 
						|
# Use eval to expand $SHELL
 | 
						|
if eval "$MISSING --run true"; then
 | 
						|
  am_missing_run="$MISSING --run "
 | 
						|
else
 | 
						|
  am_missing_run=
 | 
						|
  AC_MSG_WARN([`missing' script is too old or missing])
 | 
						|
fi
 | 
						|
])
 | 
						|
 | 
						|
# AM_PROG_MKDIR_P
 | 
						|
# ---------------
 | 
						|
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
 | 
						|
 | 
						|
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
 | 
						|
 | 
						|
# This program is free software; you can redistribute it and/or modify
 | 
						|
# it under the terms of the GNU General Public License as published by
 | 
						|
# the Free Software Foundation; either version 2, or (at your option)
 | 
						|
# any later version.
 | 
						|
 | 
						|
# This program is distributed in the hope that it will be useful,
 | 
						|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
# GNU General Public License for more details.
 | 
						|
 | 
						|
# You should have received a copy of the GNU General Public License
 | 
						|
# along with this program; if not, write to the Free Software
 | 
						|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 | 
						|
# 02111-1307, USA.
 | 
						|
 | 
						|
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
 | 
						|
# created by `make install' are always world readable, even if the
 | 
						|
# installer happens to have an overly restrictive umask (e.g. 077).
 | 
						|
# This was a mistake.  There are at least two reasons why we must not
 | 
						|
# use `-m 0755':
 | 
						|
#   - it causes special bits like SGID to be ignored,
 | 
						|
#   - it may be too restrictive (some setups expect 775 directories).
 | 
						|
#
 | 
						|
# Do not use -m 0755 and let people choose whatever they expect by
 | 
						|
# setting umask.
 | 
						|
#
 | 
						|
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
 | 
						|
# Some implementations (such as Solaris 8's) are not thread-safe: if a
 | 
						|
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
 | 
						|
# concurrently, both version can detect that a/ is missing, but only
 | 
						|
# one can create it and the other will error out.  Consequently we
 | 
						|
# restrict ourselves to GNU make (using the --version option ensures
 | 
						|
# this.)
 | 
						|
AC_DEFUN([AM_PROG_MKDIR_P],
 | 
						|
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 | 
						|
  # Keeping the `.' argument allows $(mkdir_p) to be used without
 | 
						|
  # argument.  Indeed, we sometimes output rules like
 | 
						|
  #   $(mkdir_p) $(somedir)
 | 
						|
  # where $(somedir) is conditionally defined.
 | 
						|
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
 | 
						|
  # expensive solution, as it forces Make to start a sub-shell.)
 | 
						|
  mkdir_p='mkdir -p -- .'
 | 
						|
else
 | 
						|
  # On NextStep and OpenStep, the `mkdir' command does not
 | 
						|
  # recognize any option.  It will interpret all options as
 | 
						|
  # directories to create, and then abort because `.' already
 | 
						|
  # exists.
 | 
						|
  for d in ./-p ./--version;
 | 
						|
  do
 | 
						|
    test -d $d && rmdir $d
 | 
						|
  done
 | 
						|
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 | 
						|
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 | 
						|
    mkdir_p='$(mkinstalldirs)'
 | 
						|
  else
 | 
						|
    mkdir_p='$(install_sh) -d'
 | 
						|
  fi
 | 
						|
fi
 | 
						|
AC_SUBST([mkdir_p])])
 | 
						|
 | 
						|
# Helper functions for option handling.                    -*- Autoconf -*-
 | 
						|
 | 
						|
# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
 | 
						|
 | 
						|
# This program is free software; you can redistribute it and/or modify
 | 
						|
# it under the terms of the GNU General Public License as published by
 | 
						|
# the Free Software Foundation; either version 2, or (at your option)
 | 
						|
# any later version.
 | 
						|
 | 
						|
# This program is distributed in the hope that it will be useful,
 | 
						|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
# GNU General Public License for more details.
 | 
						|
 | 
						|
# You should have received a copy of the GNU General Public License
 | 
						|
# along with this program; if not, write to the Free Software
 | 
						|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 | 
						|
# 02111-1307, USA.
 | 
						|
 | 
						|
# serial 2
 | 
						|
 | 
						|
# _AM_MANGLE_OPTION(NAME)
 | 
						|
# -----------------------
 | 
						|
AC_DEFUN([_AM_MANGLE_OPTION],
 | 
						|
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 | 
						|
 | 
						|
# _AM_SET_OPTION(NAME)
 | 
						|
# ------------------------------
 | 
						|
# Set option NAME.  Presently that only means defining a flag for this option.
 | 
						|
AC_DEFUN([_AM_SET_OPTION],
 | 
						|
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 | 
						|
 | 
						|
# _AM_SET_OPTIONS(OPTIONS)
 | 
						|
# ----------------------------------
 | 
						|
# OPTIONS is a space-separated list of Automake options.
 | 
						|
AC_DEFUN([_AM_SET_OPTIONS],
 | 
						|
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 | 
						|
 | 
						|
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 | 
						|
# -------------------------------------------
 | 
						|
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 | 
						|
AC_DEFUN([_AM_IF_OPTION],
 | 
						|
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 | 
						|
 | 
						|
 | 
						|
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
 | 
						|
# Free Software Foundation, Inc.
 | 
						|
 | 
						|
# This program is free software; you can redistribute it and/or modify
 | 
						|
# it under the terms of the GNU General Public License as published by
 | 
						|
# the Free Software Foundation; either version 2, or (at your option)
 | 
						|
# any later version.
 | 
						|
 | 
						|
# This program is distributed in the hope that it will be useful,
 | 
						|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
# GNU General Public License for more details.
 | 
						|
 | 
						|
# You should have received a copy of the GNU General Public License
 | 
						|
# along with this program; if not, write to the Free Software
 | 
						|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 | 
						|
# 02111-1307, USA.
 | 
						|
 | 
						|
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 | 
						|
 | 
						|
# Adds support for distributing Python modules and packages.  To
 | 
						|
# install modules, copy them to $(pythondir), using the python_PYTHON
 | 
						|
# automake variable.  To install a package with the same name as the
 | 
						|
# automake package, install to $(pkgpythondir), or use the
 | 
						|
# pkgpython_PYTHON automake variable.
 | 
						|
 | 
						|
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
 | 
						|
# locations to install python extension modules (shared libraries).
 | 
						|
# Another macro is required to find the appropriate flags to compile
 | 
						|
# extension modules.
 | 
						|
 | 
						|
# If your package is configured with a different prefix to python,
 | 
						|
# users will have to add the install directory to the PYTHONPATH
 | 
						|
# environment variable, or create a .pth file (see the python
 | 
						|
# documentation for details).
 | 
						|
 | 
						|
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
 | 
						|
# cause an error if the version of python installed on the system
 | 
						|
# doesn't meet the requirement.  MINIMUM-VERSION should consist of
 | 
						|
# numbers and dots only.
 | 
						|
 | 
						|
AC_DEFUN([AM_PATH_PYTHON],
 | 
						|
 [
 | 
						|
  dnl Find a Python interpreter.  Python versions prior to 1.5 are not
 | 
						|
  dnl supported because the default installation locations changed from
 | 
						|
  dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
 | 
						|
  dnl in 1.5.
 | 
						|
  m4_define([_AM_PYTHON_INTERPRETER_LIST],
 | 
						|
            [python python2 python2.4 python2.3 python2.2 dnl
 | 
						|
python2.1 python2.0 python1.6 python1.5])
 | 
						|
 | 
						|
  m4_if([$1],[],[
 | 
						|
    dnl No version check is needed.
 | 
						|
    # Find any Python interpreter.
 | 
						|
    if test -z "$PYTHON"; then
 | 
						|
      PYTHON=:
 | 
						|
      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST)
 | 
						|
    fi
 | 
						|
    am_display_PYTHON=python
 | 
						|
  ], [
 | 
						|
    dnl A version check is needed.
 | 
						|
    if test -n "$PYTHON"; then
 | 
						|
      # If the user set $PYTHON, use it and don't search something else.
 | 
						|
      AC_MSG_CHECKING([whether $PYTHON version >= $1])
 | 
						|
      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
 | 
						|
			      [AC_MSG_RESULT(yes)],
 | 
						|
			      [AC_MSG_ERROR(too old)])
 | 
						|
    else
 | 
						|
      # Otherwise, try each interpreter until we find one that satisfies
 | 
						|
      # VERSION.
 | 
						|
      AC_CACHE_CHECK([for a Python interpreter with version >= $1],
 | 
						|
	[am_cv_pathless_PYTHON],[
 | 
						|
	for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
 | 
						|
	  test "$am_cv_pathless_PYTHON" = none && break
 | 
						|
	  AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
 | 
						|
	done])
 | 
						|
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
 | 
						|
      if test "$am_cv_pathless_PYTHON" = none; then
 | 
						|
	PYTHON=:
 | 
						|
      else
 | 
						|
        AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
 | 
						|
      fi
 | 
						|
      am_display_PYTHON=$am_cv_pathless_PYTHON
 | 
						|
    fi
 | 
						|
  ])
 | 
						|
 | 
						|
  if test "$PYTHON" = :; then
 | 
						|
  dnl Run any user-specified action, or abort.
 | 
						|
    m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
 | 
						|
  else
 | 
						|
 | 
						|
  dnl Query Python for its version number.  Getting [:3] seems to be
 | 
						|
  dnl the best way to do this; it's what "site.py" does in the standard
 | 
						|
  dnl library.
 | 
						|
 | 
						|
  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
 | 
						|
    [am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
 | 
						|
  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
 | 
						|
 | 
						|
  dnl Use the values of $prefix and $exec_prefix for the corresponding
 | 
						|
  dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX.  These are made
 | 
						|
  dnl distinct variables so they can be overridden if need be.  However,
 | 
						|
  dnl general consensus is that you shouldn't need this ability.
 | 
						|
 | 
						|
  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
 | 
						|
  AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
 | 
						|
 | 
						|
  dnl At times (like when building shared libraries) you may want
 | 
						|
  dnl to know which OS platform Python thinks this is.
 | 
						|
 | 
						|
  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
 | 
						|
    [am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
 | 
						|
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
 | 
						|
 | 
						|
 | 
						|
  dnl Set up 4 directories:
 | 
						|
 | 
						|
  dnl pythondir -- where to install python scripts.  This is the
 | 
						|
  dnl   site-packages directory, not the python standard library
 | 
						|
  dnl   directory like in previous automake betas.  This behavior
 | 
						|
  dnl   is more consistent with lispdir.m4 for example.
 | 
						|
  dnl Query distutils for this directory.  distutils does not exist in
 | 
						|
  dnl Python 1.5, so we fall back to the hardcoded directory if it
 | 
						|
  dnl doesn't work.
 | 
						|
  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
 | 
						|
    [am_cv_python_pythondir],
 | 
						|
    [am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
 | 
						|
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
 | 
						|
  AC_SUBST([pythondir], [$am_cv_python_pythondir])
 | 
						|
 | 
						|
  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
 | 
						|
  dnl   PYTHON_SITE_PACKAGE in previous betas, but this naming is
 | 
						|
  dnl   more consistent with the rest of automake.
 | 
						|
 | 
						|
  AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
 | 
						|
 | 
						|
  dnl pyexecdir -- directory for installing python extension modules
 | 
						|
  dnl   (shared libraries)
 | 
						|
  dnl Query distutils for this directory.  distutils does not exist in
 | 
						|
  dnl Python 1.5, so we fall back to the hardcoded directory if it
 | 
						|
  dnl doesn't work.
 | 
						|
  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
 | 
						|
    [am_cv_python_pyexecdir],
 | 
						|
    [am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
 | 
						|
     echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
 | 
						|
  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
 | 
						|
 | 
						|
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
 | 
						|
 | 
						|
  AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
 | 
						|
 | 
						|
  dnl Run any user-specified action.
 | 
						|
  $2
 | 
						|
  fi
 | 
						|
 | 
						|
])
 | 
						|
 | 
						|
 | 
						|
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
 | 
						|
# ---------------------------------------------------------------------------
 | 
						|
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
 | 
						|
# Run ACTION-IF-FALSE otherwise.
 | 
						|
# This test uses sys.hexversion instead of the string equivalent (first
 | 
						|
# word of sys.version), in order to cope with versions such as 2.2c1.
 | 
						|
# hexversion has been introduced in Python 1.5.2; it's probably not
 | 
						|
# worth to support older versions (1.5.1 was released on October 31, 1998).
 | 
						|
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
 | 
						|
 [prog="import sys, string
 | 
						|
# split strings by '.' and convert to numeric.  Append some zeros
 | 
						|
# because we need at least 4 digits for the hex conversion.
 | 
						|
minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
 | 
						|
minverhex = 0
 | 
						|
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
 | 
						|
sys.exit(sys.hexversion < minverhex)"
 | 
						|
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
 | 
						|
 | 
						|
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.     -*- Autoconf -*-
 | 
						|
 | 
						|
# This program is free software; you can redistribute it and/or modify
 | 
						|
# it under the terms of the GNU General Public License as published by
 | 
						|
# the Free Software Foundation; either version 2, or (at your option)
 | 
						|
# any later version.
 | 
						|
 | 
						|
# This program is distributed in the hope that it will be useful,
 | 
						|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
# GNU General Public License for more details.
 | 
						|
 | 
						|
# You should have received a copy of the GNU General Public License
 | 
						|
# along with this program; if not, write to the Free Software
 | 
						|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 | 
						|
# 02111-1307, USA.
 | 
						|
 | 
						|
# AM_RUN_LOG(COMMAND)
 | 
						|
# -------------------
 | 
						|
# Run COMMAND, save the exit status in ac_status, and log it.
 | 
						|
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
 | 
						|
AC_DEFUN([AM_RUN_LOG],
 | 
						|
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
 | 
						|
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
 | 
						|
   ac_status=$?
 | 
						|
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 | 
						|
   (exit $ac_status); }])
 | 
						|
 | 
						|
#
 | 
						|
# Check to make sure that the build environment is sane.
 | 
						|
#
 | 
						|
 | 
						|
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
 | 
						|
 | 
						|
# This program is free software; you can redistribute it and/or modify
 | 
						|
# it under the terms of the GNU General Public License as published by
 | 
						|
# the Free Software Foundation; either version 2, or (at your option)
 | 
						|
# any later version.
 | 
						|
 | 
						|
# This program is distributed in the hope that it will be useful,
 | 
						|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
# GNU General Public License for more details.
 | 
						|
 | 
						|
# You should have received a copy of the GNU General Public License
 | 
						|
# along with this program; if not, write to the Free Software
 | 
						|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 | 
						|
# 02111-1307, USA.
 | 
						|
 | 
						|
# serial 3
 | 
						|
 | 
						|
# AM_SANITY_CHECK
 | 
						|
# ---------------
 | 
						|
AC_DEFUN([AM_SANITY_CHECK],
 | 
						|
[AC_MSG_CHECKING([whether build environment is sane])
 | 
						|
# Just in case
 | 
						|
sleep 1
 | 
						|
echo timestamp > conftest.file
 | 
						|
# Do `set' in a subshell so we don't clobber the current shell's
 | 
						|
# arguments.  Must try -L first in case configure is actually a
 | 
						|
# symlink; some systems play weird games with the mod time of symlinks
 | 
						|
# (eg FreeBSD returns the mod time of the symlink's containing
 | 
						|
# directory).
 | 
						|
if (
 | 
						|
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 | 
						|
   if test "$[*]" = "X"; then
 | 
						|
      # -L didn't work.
 | 
						|
      set X `ls -t $srcdir/configure conftest.file`
 | 
						|
   fi
 | 
						|
   rm -f conftest.file
 | 
						|
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 | 
						|
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 | 
						|
 | 
						|
      # If neither matched, then we have a broken ls.  This can happen
 | 
						|
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 | 
						|
      # broken ls alias from the environment.  This has actually
 | 
						|
      # happened.  Such a system could not be considered "sane".
 | 
						|
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 | 
						|
alias in your environment])
 | 
						|
   fi
 | 
						|
 | 
						|
   test "$[2]" = conftest.file
 | 
						|
   )
 | 
						|
then
 | 
						|
   # Ok.
 | 
						|
   :
 | 
						|
else
 | 
						|
   AC_MSG_ERROR([newly created file is older than distributed files!
 | 
						|
Check your system clock])
 | 
						|
fi
 | 
						|
AC_MSG_RESULT(yes)])
 | 
						|
 | 
						|
# AM_PROG_INSTALL_STRIP
 | 
						|
 | 
						|
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 | 
						|
 | 
						|
# This program is free software; you can redistribute it and/or modify
 | 
						|
# it under the terms of the GNU General Public License as published by
 | 
						|
# the Free Software Foundation; either version 2, or (at your option)
 | 
						|
# any later version.
 | 
						|
 | 
						|
# This program is distributed in the hope that it will be useful,
 | 
						|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
# GNU General Public License for more details.
 | 
						|
 | 
						|
# You should have received a copy of the GNU General Public License
 | 
						|
# along with this program; if not, write to the Free Software
 | 
						|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 | 
						|
# 02111-1307, USA.
 | 
						|
 | 
						|
# One issue with vendor `install' (even GNU) is that you can't
 | 
						|
# specify the program used to strip binaries.  This is especially
 | 
						|
# annoying in cross-compiling environments, where the build's strip
 | 
						|
# is unlikely to handle the host's binaries.
 | 
						|
# Fortunately install-sh will honor a STRIPPROG variable, so we
 | 
						|
# always use install-sh in `make install-strip', and initialize
 | 
						|
# STRIPPROG with the value of the STRIP variable (set by the user).
 | 
						|
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 | 
						|
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 | 
						|
# Installed binaries are usually stripped using `strip' when the user
 | 
						|
# run `make install-strip'.  However `strip' might not be the right
 | 
						|
# tool to use in cross-compilation environments, therefore Automake
 | 
						|
# will honor the `STRIP' environment variable to overrule this program.
 | 
						|
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 | 
						|
if test "$cross_compiling" != no; then
 | 
						|
  AC_CHECK_TOOL([STRIP], [strip], :)
 | 
						|
fi
 | 
						|
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 | 
						|
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 | 
						|
 |