Blame aclocal.m4

Packit Service 2781ba
# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
Packit Service 2781ba
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
Packit Service 2781ba
# Inc.
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# This program is distributed in the hope that it will be useful,
Packit Service 2781ba
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
Packit Service 2781ba
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
Packit Service 2781ba
# PARTICULAR PURPOSE.
Packit Service 2781ba
Packit Service 2781ba
m4_ifndef([AC_AUTOCONF_VERSION],
Packit Service 2781ba
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit Service 2781ba
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
Packit Service 2781ba
[m4_warning([this file was generated for autoconf 2.68.
Packit Service 2781ba
You have another version of autoconf.  It may work, but is not guaranteed to.
Packit Service 2781ba
If you have problems, you may need to regenerate the build system entirely.
Packit Service 2781ba
To do so, use the procedure documented by the package, typically `autoreconf'.])])
Packit Service 2781ba
Packit Service 2781ba
# Configure paths for GLIB
Packit Service 2781ba
# Owen Taylor     1997-2001
Packit Service 2781ba
Packit Service 2781ba
dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
Packit Service 2781ba
dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject,
Packit Service 2781ba
dnl gthread, or gio is specified in MODULES, pass to pkg-config
Packit Service 2781ba
dnl
Packit Service 2781ba
AC_DEFUN([AM_PATH_GLIB_2_0],
Packit Service 2781ba
[dnl 
Packit Service 2781ba
dnl Get the cflags and libraries from pkg-config
Packit Service 2781ba
dnl
Packit Service 2781ba
AC_ARG_ENABLE(glibtest, [  --disable-glibtest      do not try to compile and run a test GLIB program],
Packit Service 2781ba
		    , enable_glibtest=yes)
Packit Service 2781ba
Packit Service 2781ba
  pkg_config_args=glib-2.0
Packit Service 2781ba
  for module in . $4
Packit Service 2781ba
  do
Packit Service 2781ba
      case "$module" in
Packit Service 2781ba
         gmodule) 
Packit Service 2781ba
             pkg_config_args="$pkg_config_args gmodule-2.0"
Packit Service 2781ba
         ;;
Packit Service 2781ba
         gmodule-no-export) 
Packit Service 2781ba
             pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
Packit Service 2781ba
         ;;
Packit Service 2781ba
         gobject) 
Packit Service 2781ba
             pkg_config_args="$pkg_config_args gobject-2.0"
Packit Service 2781ba
         ;;
Packit Service 2781ba
         gthread) 
Packit Service 2781ba
             pkg_config_args="$pkg_config_args gthread-2.0"
Packit Service 2781ba
         ;;
Packit Service 2781ba
         gio*) 
Packit Service 2781ba
             pkg_config_args="$pkg_config_args $module-2.0"
Packit Service 2781ba
         ;;
Packit Service 2781ba
      esac
Packit Service 2781ba
  done
Packit Service 2781ba
Packit Service 2781ba
  PKG_PROG_PKG_CONFIG([0.16])
Packit Service 2781ba
Packit Service 2781ba
  no_glib=""
Packit Service 2781ba
Packit Service 2781ba
  if test "x$PKG_CONFIG" = x ; then
Packit Service 2781ba
    no_glib=yes
Packit Service 2781ba
    PKG_CONFIG=no
Packit Service 2781ba
  fi
Packit Service 2781ba
Packit Service 2781ba
  min_glib_version=ifelse([$1], ,2.0.0,$1)
Packit Service 2781ba
  AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
Packit Service 2781ba
Packit Service 2781ba
  if test x$PKG_CONFIG != xno ; then
Packit Service 2781ba
    ## don't try to run the test against uninstalled libtool libs
Packit Service 2781ba
    if $PKG_CONFIG --uninstalled $pkg_config_args; then
Packit Service 2781ba
	  echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
Packit Service 2781ba
	  enable_glibtest=no
Packit Service 2781ba
    fi
Packit Service 2781ba
Packit Service 2781ba
    if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
Packit Service 2781ba
	  :
Packit Service 2781ba
    else
Packit Service 2781ba
	  no_glib=yes
Packit Service 2781ba
    fi
Packit Service 2781ba
  fi
Packit Service 2781ba
Packit Service 2781ba
  if test x"$no_glib" = x ; then
Packit Service 2781ba
    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
Packit Service 2781ba
    GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
Packit Service 2781ba
    GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
Packit Service 2781ba
Packit Service 2781ba
    GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
Packit Service 2781ba
    GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
Packit Service 2781ba
    glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
Packit Service 2781ba
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
Packit Service 2781ba
    glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
Packit Service 2781ba
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
Packit Service 2781ba
    glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
Packit Service 2781ba
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
Packit Service 2781ba
    if test "x$enable_glibtest" = "xyes" ; then
Packit Service 2781ba
      ac_save_CFLAGS="$CFLAGS"
Packit Service 2781ba
      ac_save_LIBS="$LIBS"
Packit Service 2781ba
      CFLAGS="$CFLAGS $GLIB_CFLAGS"
Packit Service 2781ba
      LIBS="$GLIB_LIBS $LIBS"
Packit Service 2781ba
dnl
Packit Service 2781ba
dnl Now check if the installed GLIB is sufficiently new. (Also sanity
Packit Service 2781ba
dnl checks the results of pkg-config to some extent)
Packit Service 2781ba
dnl
Packit Service 2781ba
      rm -f conf.glibtest
Packit Service 2781ba
      AC_TRY_RUN([
Packit Service 2781ba
#include <glib.h>
Packit Service 2781ba
#include <stdio.h>
Packit Service 2781ba
#include <stdlib.h>
Packit Service 2781ba
Packit Service 2781ba
int 
Packit Service 2781ba
main ()
Packit Service 2781ba
{
Packit Service 2781ba
  unsigned int major, minor, micro;
Packit Service 2781ba
  char *tmp_version;
Packit Service 2781ba
Packit Service 2781ba
  fclose (fopen ("conf.glibtest", "w"));
Packit Service 2781ba
Packit Service 2781ba
  /* HP/UX 9 (%@#!) writes to sscanf strings */
Packit Service 2781ba
  tmp_version = g_strdup("$min_glib_version");
Packit Service 2781ba
  if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
Packit Service 2781ba
     printf("%s, bad version string\n", "$min_glib_version");
Packit Service 2781ba
     exit(1);
Packit Service 2781ba
   }
Packit Service 2781ba
Packit Service 2781ba
  if ((glib_major_version != $glib_config_major_version) ||
Packit Service 2781ba
      (glib_minor_version != $glib_config_minor_version) ||
Packit Service 2781ba
      (glib_micro_version != $glib_config_micro_version))
Packit Service 2781ba
    {
Packit Service 2781ba
      printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 
Packit Service 2781ba
             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
Packit Service 2781ba
             glib_major_version, glib_minor_version, glib_micro_version);
Packit Service 2781ba
      printf ("*** was found! If pkg-config was correct, then it is best\n");
Packit Service 2781ba
      printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
Packit Service 2781ba
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
Packit Service 2781ba
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
Packit Service 2781ba
      printf("*** required on your system.\n");
Packit Service 2781ba
      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
Packit Service 2781ba
      printf("*** to point to the correct configuration files\n");
Packit Service 2781ba
    } 
Packit Service 2781ba
  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
Packit Service 2781ba
	   (glib_minor_version != GLIB_MINOR_VERSION) ||
Packit Service 2781ba
           (glib_micro_version != GLIB_MICRO_VERSION))
Packit Service 2781ba
    {
Packit Service 2781ba
      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
Packit Service 2781ba
	     GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
Packit Service 2781ba
      printf("*** library (version %d.%d.%d)\n",
Packit Service 2781ba
	     glib_major_version, glib_minor_version, glib_micro_version);
Packit Service 2781ba
    }
Packit Service 2781ba
  else
Packit Service 2781ba
    {
Packit Service 2781ba
      if ((glib_major_version > major) ||
Packit Service 2781ba
        ((glib_major_version == major) && (glib_minor_version > minor)) ||
Packit Service 2781ba
        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
Packit Service 2781ba
      {
Packit Service 2781ba
        return 0;
Packit Service 2781ba
       }
Packit Service 2781ba
     else
Packit Service 2781ba
      {
Packit Service 2781ba
        printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
Packit Service 2781ba
               glib_major_version, glib_minor_version, glib_micro_version);
Packit Service 2781ba
        printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
Packit Service 2781ba
	       major, minor, micro);
Packit Service 2781ba
        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
Packit Service 2781ba
        printf("***\n");
Packit Service 2781ba
        printf("*** If you have already installed a sufficiently new version, this error\n");
Packit Service 2781ba
        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
Packit Service 2781ba
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
Packit Service 2781ba
        printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
Packit Service 2781ba
        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
Packit Service 2781ba
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
Packit Service 2781ba
        printf("*** so that the correct libraries are found at run-time))\n");
Packit Service 2781ba
      }
Packit Service 2781ba
    }
Packit Service 2781ba
  return 1;
Packit Service 2781ba
}
Packit Service 2781ba
],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
Packit Service 2781ba
       CFLAGS="$ac_save_CFLAGS"
Packit Service 2781ba
       LIBS="$ac_save_LIBS"
Packit Service 2781ba
     fi
Packit Service 2781ba
  fi
Packit Service 2781ba
  if test "x$no_glib" = x ; then
Packit Service 2781ba
     AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version))
Packit Service 2781ba
     ifelse([$2], , :, [$2])     
Packit Service 2781ba
  else
Packit Service 2781ba
     AC_MSG_RESULT(no)
Packit Service 2781ba
     if test "$PKG_CONFIG" = "no" ; then
Packit Service 2781ba
       echo "*** A new enough version of pkg-config was not found."
Packit Service 2781ba
       echo "*** See http://www.freedesktop.org/software/pkgconfig/"
Packit Service 2781ba
     else
Packit Service 2781ba
       if test -f conf.glibtest ; then
Packit Service 2781ba
        :
Packit Service 2781ba
       else
Packit Service 2781ba
          echo "*** Could not run GLIB test program, checking why..."
Packit Service 2781ba
          ac_save_CFLAGS="$CFLAGS"
Packit Service 2781ba
          ac_save_LIBS="$LIBS"
Packit Service 2781ba
          CFLAGS="$CFLAGS $GLIB_CFLAGS"
Packit Service 2781ba
          LIBS="$LIBS $GLIB_LIBS"
Packit Service 2781ba
          AC_TRY_LINK([
Packit Service 2781ba
#include <glib.h>
Packit Service 2781ba
#include <stdio.h>
Packit Service 2781ba
],      [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
Packit Service 2781ba
        [ echo "*** The test program compiled, but did not run. This usually means"
Packit Service 2781ba
          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
Packit Service 2781ba
          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
Packit Service 2781ba
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
Packit Service 2781ba
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
Packit Service 2781ba
          echo "*** is required on your system"
Packit Service 2781ba
	  echo "***"
Packit Service 2781ba
          echo "*** If you have an old version installed, it is best to remove it, although"
Packit Service 2781ba
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
Packit Service 2781ba
        [ echo "*** The test program failed to compile or link. See the file config.log for the"
Packit Service 2781ba
          echo "*** exact error that occured. This usually means GLIB is incorrectly installed."])
Packit Service 2781ba
          CFLAGS="$ac_save_CFLAGS"
Packit Service 2781ba
          LIBS="$ac_save_LIBS"
Packit Service 2781ba
       fi
Packit Service 2781ba
     fi
Packit Service 2781ba
     GLIB_CFLAGS=""
Packit Service 2781ba
     GLIB_LIBS=""
Packit Service 2781ba
     GLIB_GENMARSHAL=""
Packit Service 2781ba
     GOBJECT_QUERY=""
Packit Service 2781ba
     GLIB_MKENUMS=""
Packit Service 2781ba
     ifelse([$3], , :, [$3])
Packit Service 2781ba
  fi
Packit Service 2781ba
  AC_SUBST(GLIB_CFLAGS)
Packit Service 2781ba
  AC_SUBST(GLIB_LIBS)
Packit Service 2781ba
  AC_SUBST(GLIB_GENMARSHAL)
Packit Service 2781ba
  AC_SUBST(GOBJECT_QUERY)
Packit Service 2781ba
  AC_SUBST(GLIB_MKENUMS)
Packit Service 2781ba
  rm -f conf.glibtest
Packit Service 2781ba
])
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
Packit Service 2781ba
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software, distributed under the terms of the GNU
Packit Service 2781ba
# General Public License.  As a special exception to the GNU General
Packit Service 2781ba
# Public License, this file may be distributed as part of a program
Packit Service 2781ba
# that contains a configuration script generated by Autoconf, under
Packit Service 2781ba
# the same distribution terms as the rest of that program.
Packit Service 2781ba
#
Packit Service 2781ba
# This file can be copied and used freely without restrictions.  It can
Packit Service 2781ba
# be used in projects which are not available under the GNU Public License
Packit Service 2781ba
# but which still want to provide support for the GNU gettext functionality.
Packit Service 2781ba
#
Packit Service 2781ba
# Macro to add for using GNU gettext.
Packit Service 2781ba
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
Packit Service 2781ba
#
Packit Service 2781ba
# Modified to never use included libintl. 
Packit Service 2781ba
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
Packit Service 2781ba
#
Packit Service 2781ba
# Major rework to remove unused code
Packit Service 2781ba
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
Packit Service 2781ba
#
Packit Service 2781ba
# Added better handling of ALL_LINGUAS from GNU gettext version 
Packit Service 2781ba
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
Packit Service 2781ba
#
Packit Service 2781ba
# Modified to require ngettext
Packit Service 2781ba
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
Packit Service 2781ba
#
Packit Service 2781ba
# We need this here as well, since someone might use autoconf-2.5x
Packit Service 2781ba
# to configure GLib then an older version to configure a package
Packit Service 2781ba
# using AM_GLIB_GNU_GETTEXT
Packit Service 2781ba
AC_PREREQ(2.53)
Packit Service 2781ba
Packit Service 2781ba
dnl
Packit Service 2781ba
dnl We go to great lengths to make sure that aclocal won't 
Packit Service 2781ba
dnl try to pull in the installed version of these macros
Packit Service 2781ba
dnl when running aclocal in the glib directory.
Packit Service 2781ba
dnl
Packit Service 2781ba
m4_copy([AC_DEFUN],[glib_DEFUN])
Packit Service 2781ba
m4_copy([AC_REQUIRE],[glib_REQUIRE])
Packit Service 2781ba
dnl
Packit Service 2781ba
dnl At the end, if we're not within glib, we'll define the public
Packit Service 2781ba
dnl definitions in terms of our private definitions.
Packit Service 2781ba
dnl
Packit Service 2781ba
Packit Service 2781ba
# GLIB_LC_MESSAGES
Packit Service 2781ba
#--------------------
Packit Service 2781ba
glib_DEFUN([GLIB_LC_MESSAGES],
Packit Service 2781ba
  [AC_CHECK_HEADERS([locale.h])
Packit Service 2781ba
    if test $ac_cv_header_locale_h = yes; then
Packit Service 2781ba
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
Packit Service 2781ba
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
Packit Service 2781ba
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
Packit Service 2781ba
    if test $am_cv_val_LC_MESSAGES = yes; then
Packit Service 2781ba
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
Packit Service 2781ba
        [Define if your <locale.h> file defines LC_MESSAGES.])
Packit Service 2781ba
    fi
Packit Service 2781ba
  fi])
Packit Service 2781ba
Packit Service 2781ba
# GLIB_PATH_PROG_WITH_TEST
Packit Service 2781ba
#----------------------------
Packit Service 2781ba
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
Packit Service 2781ba
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
Packit Service 2781ba
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
Packit Service 2781ba
[# Extract the first word of "$2", so it can be a program name with args.
Packit Service 2781ba
set dummy $2; ac_word=[$]2
Packit Service 2781ba
AC_MSG_CHECKING([for $ac_word])
Packit Service 2781ba
AC_CACHE_VAL(ac_cv_path_$1,
Packit Service 2781ba
[case "[$]$1" in
Packit Service 2781ba
  /*)
Packit Service 2781ba
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
Packit Service 2781ba
  ;;
Packit Service 2781ba
  *)
Packit Service 2781ba
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
Packit Service 2781ba
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
Packit Service 2781ba
    test -z "$ac_dir" && ac_dir=.
Packit Service 2781ba
    if test -f $ac_dir/$ac_word; then
Packit Service 2781ba
      if [$3]; then
Packit Service 2781ba
	ac_cv_path_$1="$ac_dir/$ac_word"
Packit Service 2781ba
	break
Packit Service 2781ba
      fi
Packit Service 2781ba
    fi
Packit Service 2781ba
  done
Packit Service 2781ba
  IFS="$ac_save_ifs"
Packit Service 2781ba
dnl If no 4th arg is given, leave the cache variable unset,
Packit Service 2781ba
dnl so AC_PATH_PROGS will keep looking.
Packit Service 2781ba
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
Packit Service 2781ba
])dnl
Packit Service 2781ba
  ;;
Packit Service 2781ba
esac])dnl
Packit Service 2781ba
$1="$ac_cv_path_$1"
Packit Service 2781ba
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
Packit Service 2781ba
  AC_MSG_RESULT([$]$1)
Packit Service 2781ba
else
Packit Service 2781ba
  AC_MSG_RESULT(no)
Packit Service 2781ba
fi
Packit Service 2781ba
AC_SUBST($1)dnl
Packit Service 2781ba
])
Packit Service 2781ba
Packit Service 2781ba
# GLIB_WITH_NLS
Packit Service 2781ba
#-----------------
Packit Service 2781ba
glib_DEFUN([GLIB_WITH_NLS],
Packit Service 2781ba
  dnl NLS is obligatory
Packit Service 2781ba
  [USE_NLS=yes
Packit Service 2781ba
    AC_SUBST(USE_NLS)
Packit Service 2781ba
Packit Service 2781ba
    gt_cv_have_gettext=no
Packit Service 2781ba
Packit Service 2781ba
    CATOBJEXT=NONE
Packit Service 2781ba
    XGETTEXT=:
Packit Service 2781ba
    INTLLIBS=
Packit Service 2781ba
Packit Service 2781ba
    AC_CHECK_HEADER(libintl.h,
Packit Service 2781ba
     [gt_cv_func_dgettext_libintl="no"
Packit Service 2781ba
      libintl_extra_libs=""
Packit Service 2781ba
Packit Service 2781ba
      #
Packit Service 2781ba
      # First check in libc
Packit Service 2781ba
      #
Packit Service 2781ba
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
Packit Service 2781ba
        [AC_TRY_LINK([
Packit Service 2781ba
#include <libintl.h>
Packit Service 2781ba
],
Packit Service 2781ba
         [return !ngettext ("","", 1)],
Packit Service 2781ba
	  gt_cv_func_ngettext_libc=yes,
Packit Service 2781ba
          gt_cv_func_ngettext_libc=no)
Packit Service 2781ba
        ])
Packit Service 2781ba
  
Packit Service 2781ba
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
Packit Service 2781ba
	      AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
Packit Service 2781ba
        	[AC_TRY_LINK([
Packit Service 2781ba
#include <libintl.h>
Packit Service 2781ba
],
Packit Service 2781ba
	          [return !dgettext ("","")],
Packit Service 2781ba
		  gt_cv_func_dgettext_libc=yes,
Packit Service 2781ba
	          gt_cv_func_dgettext_libc=no)
Packit Service 2781ba
        	])
Packit Service 2781ba
      fi
Packit Service 2781ba
  
Packit Service 2781ba
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
Packit Service 2781ba
        AC_CHECK_FUNCS(bind_textdomain_codeset)
Packit Service 2781ba
      fi
Packit Service 2781ba
Packit Service 2781ba
      #
Packit Service 2781ba
      # If we don't have everything we want, check in libintl
Packit Service 2781ba
      #
Packit Service 2781ba
      if test "$gt_cv_func_dgettext_libc" != "yes" \
Packit Service 2781ba
	 || test "$gt_cv_func_ngettext_libc" != "yes" \
Packit Service 2781ba
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
Packit Service 2781ba
        
Packit Service 2781ba
        AC_CHECK_LIB(intl, bindtextdomain,
Packit Service 2781ba
	    [AC_CHECK_LIB(intl, ngettext,
Packit Service 2781ba
		    [AC_CHECK_LIB(intl, dgettext,
Packit Service 2781ba
			          gt_cv_func_dgettext_libintl=yes)])])
Packit Service 2781ba
Packit Service 2781ba
	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
Packit Service 2781ba
	  AC_MSG_CHECKING([if -liconv is needed to use gettext])
Packit Service 2781ba
	  AC_MSG_RESULT([])
Packit Service 2781ba
  	  AC_CHECK_LIB(intl, ngettext,
Packit Service 2781ba
          	[AC_CHECK_LIB(intl, dcgettext,
Packit Service 2781ba
		       [gt_cv_func_dgettext_libintl=yes
Packit Service 2781ba
			libintl_extra_libs=-liconv],
Packit Service 2781ba
			:,-liconv)],
Packit Service 2781ba
		:,-liconv)
Packit Service 2781ba
        fi
Packit Service 2781ba
Packit Service 2781ba
        #
Packit Service 2781ba
        # If we found libintl, then check in it for bind_textdomain_codeset();
Packit Service 2781ba
        # we'll prefer libc if neither have bind_textdomain_codeset(),
Packit Service 2781ba
        # and both have dgettext and ngettext
Packit Service 2781ba
        #
Packit Service 2781ba
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
Packit Service 2781ba
          glib_save_LIBS="$LIBS"
Packit Service 2781ba
          LIBS="$LIBS -lintl $libintl_extra_libs"
Packit Service 2781ba
          unset ac_cv_func_bind_textdomain_codeset
Packit Service 2781ba
          AC_CHECK_FUNCS(bind_textdomain_codeset)
Packit Service 2781ba
          LIBS="$glib_save_LIBS"
Packit Service 2781ba
Packit Service 2781ba
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
Packit Service 2781ba
            gt_cv_func_dgettext_libc=no
Packit Service 2781ba
          else
Packit Service 2781ba
            if test "$gt_cv_func_dgettext_libc" = "yes" \
Packit Service 2781ba
		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
Packit Service 2781ba
              gt_cv_func_dgettext_libintl=no
Packit Service 2781ba
            fi
Packit Service 2781ba
          fi
Packit Service 2781ba
        fi
Packit Service 2781ba
      fi
Packit Service 2781ba
Packit Service 2781ba
      if test "$gt_cv_func_dgettext_libc" = "yes" \
Packit Service 2781ba
	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
Packit Service 2781ba
        gt_cv_have_gettext=yes
Packit Service 2781ba
      fi
Packit Service 2781ba
  
Packit Service 2781ba
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
Packit Service 2781ba
        INTLLIBS="-lintl $libintl_extra_libs"
Packit Service 2781ba
      fi
Packit Service 2781ba
  
Packit Service 2781ba
      if test "$gt_cv_have_gettext" = "yes"; then
Packit Service 2781ba
	AC_DEFINE(HAVE_GETTEXT,1,
Packit Service 2781ba
	  [Define if the GNU gettext() function is already present or preinstalled.])
Packit Service 2781ba
	GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
Packit Service 2781ba
	  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
Packit Service 2781ba
	if test "$MSGFMT" != "no"; then
Packit Service 2781ba
          glib_save_LIBS="$LIBS"
Packit Service 2781ba
          LIBS="$LIBS $INTLLIBS"
Packit Service 2781ba
	  AC_CHECK_FUNCS(dcgettext)
Packit Service 2781ba
	  MSGFMT_OPTS=
Packit Service 2781ba
	  AC_MSG_CHECKING([if msgfmt accepts -c])
Packit Service 2781ba
	  GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
Packit Service 2781ba
msgid ""
Packit Service 2781ba
msgstr ""
Packit Service 2781ba
"Content-Type: text/plain; charset=UTF-8\n"
Packit Service 2781ba
"Project-Id-Version: test 1.0\n"
Packit Service 2781ba
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
Packit Service 2781ba
"Last-Translator: test <foo@bar.xx>\n"
Packit Service 2781ba
"Language-Team: C <LL@li.org>\n"
Packit Service 2781ba
"MIME-Version: 1.0\n"
Packit Service 2781ba
"Content-Transfer-Encoding: 8bit\n"
Packit Service 2781ba
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
Packit Service 2781ba
	  AC_SUBST(MSGFMT_OPTS)
Packit Service 2781ba
	  AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
Packit Service 2781ba
	  GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
Packit Service 2781ba
	    [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
Packit Service 2781ba
	  AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
Packit Service 2781ba
			 return _nl_msg_cat_cntr],
Packit Service 2781ba
	    [CATOBJEXT=.gmo 
Packit Service 2781ba
             DATADIRNAME=share],
Packit Service 2781ba
	    [case $host in
Packit Service 2781ba
	    *-*-solaris*)
Packit Service 2781ba
	    dnl On Solaris, if bind_textdomain_codeset is in libc,
Packit Service 2781ba
	    dnl GNU format message catalog is always supported,
Packit Service 2781ba
            dnl since both are added to the libc all together.
Packit Service 2781ba
	    dnl Hence, we'd like to go with DATADIRNAME=share and
Packit Service 2781ba
	    dnl and CATOBJEXT=.gmo in this case.
Packit Service 2781ba
            AC_CHECK_FUNC(bind_textdomain_codeset,
Packit Service 2781ba
	      [CATOBJEXT=.gmo 
Packit Service 2781ba
               DATADIRNAME=share],
Packit Service 2781ba
	      [CATOBJEXT=.mo
Packit Service 2781ba
               DATADIRNAME=lib])
Packit Service 2781ba
	    ;;
Packit Service 2781ba
	    *-*-openbsd*)
Packit Service 2781ba
	    CATOBJEXT=.mo
Packit Service 2781ba
            DATADIRNAME=share
Packit Service 2781ba
	    ;;
Packit Service 2781ba
	    *)
Packit Service 2781ba
	    CATOBJEXT=.mo
Packit Service 2781ba
            DATADIRNAME=lib
Packit Service 2781ba
	    ;;
Packit Service 2781ba
	    esac])
Packit Service 2781ba
          LIBS="$glib_save_LIBS"
Packit Service 2781ba
	  INSTOBJEXT=.mo
Packit Service 2781ba
	else
Packit Service 2781ba
	  gt_cv_have_gettext=no
Packit Service 2781ba
	fi
Packit Service 2781ba
      fi
Packit Service 2781ba
    ])
Packit Service 2781ba
Packit Service 2781ba
    if test "$gt_cv_have_gettext" = "yes" ; then
Packit Service 2781ba
      AC_DEFINE(ENABLE_NLS, 1,
Packit Service 2781ba
        [always defined to indicate that i18n is enabled])
Packit Service 2781ba
    fi
Packit Service 2781ba
Packit Service 2781ba
    dnl Test whether we really found GNU xgettext.
Packit Service 2781ba
    if test "$XGETTEXT" != ":"; then
Packit Service 2781ba
      dnl If it is not GNU xgettext we define it as : so that the
Packit Service 2781ba
      dnl Makefiles still can work.
Packit Service 2781ba
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
Packit Service 2781ba
        : ;
Packit Service 2781ba
      else
Packit Service 2781ba
        AC_MSG_RESULT(
Packit Service 2781ba
	  [found xgettext program is not GNU xgettext; ignore it])
Packit Service 2781ba
        XGETTEXT=":"
Packit Service 2781ba
      fi
Packit Service 2781ba
    fi
Packit Service 2781ba
Packit Service 2781ba
    # We need to process the po/ directory.
Packit Service 2781ba
    POSUB=po
Packit Service 2781ba
Packit Service 2781ba
    AC_OUTPUT_COMMANDS(
Packit Service 2781ba
      [case "$CONFIG_FILES" in *po/Makefile.in*)
Packit Service 2781ba
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
Packit Service 2781ba
      esac])
Packit Service 2781ba
Packit Service 2781ba
    dnl These rules are solely for the distribution goal.  While doing this
Packit Service 2781ba
    dnl we only have to keep exactly one list of the available catalogs
Packit Service 2781ba
    dnl in configure.ac.
Packit Service 2781ba
    for lang in $ALL_LINGUAS; do
Packit Service 2781ba
      GMOFILES="$GMOFILES $lang.gmo"
Packit Service 2781ba
      POFILES="$POFILES $lang.po"
Packit Service 2781ba
    done
Packit Service 2781ba
Packit Service 2781ba
    dnl Make all variables we use known to autoconf.
Packit Service 2781ba
    AC_SUBST(CATALOGS)
Packit Service 2781ba
    AC_SUBST(CATOBJEXT)
Packit Service 2781ba
    AC_SUBST(DATADIRNAME)
Packit Service 2781ba
    AC_SUBST(GMOFILES)
Packit Service 2781ba
    AC_SUBST(INSTOBJEXT)
Packit Service 2781ba
    AC_SUBST(INTLLIBS)
Packit Service 2781ba
    AC_SUBST(PO_IN_DATADIR_TRUE)
Packit Service 2781ba
    AC_SUBST(PO_IN_DATADIR_FALSE)
Packit Service 2781ba
    AC_SUBST(POFILES)
Packit Service 2781ba
    AC_SUBST(POSUB)
Packit Service 2781ba
  ])
Packit Service 2781ba
Packit Service 2781ba
# AM_GLIB_GNU_GETTEXT
Packit Service 2781ba
# -------------------
Packit Service 2781ba
# Do checks necessary for use of gettext. If a suitable implementation 
Packit Service 2781ba
# of gettext is found in either in libintl or in the C library,
Packit Service 2781ba
# it will set INTLLIBS to the libraries needed for use of gettext
Packit Service 2781ba
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
Packit Service 2781ba
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
Packit Service 2781ba
# on various variables needed by the Makefile.in.in installed by 
Packit Service 2781ba
# glib-gettextize.
Packit Service 2781ba
dnl
Packit Service 2781ba
glib_DEFUN([GLIB_GNU_GETTEXT],
Packit Service 2781ba
  [AC_REQUIRE([AC_PROG_CC])dnl
Packit Service 2781ba
   AC_REQUIRE([AC_HEADER_STDC])dnl
Packit Service 2781ba
   
Packit Service 2781ba
   GLIB_LC_MESSAGES
Packit Service 2781ba
   GLIB_WITH_NLS
Packit Service 2781ba
Packit Service 2781ba
   if test "$gt_cv_have_gettext" = "yes"; then
Packit Service 2781ba
     if test "x$ALL_LINGUAS" = "x"; then
Packit Service 2781ba
       LINGUAS=
Packit Service 2781ba
     else
Packit Service 2781ba
       AC_MSG_CHECKING(for catalogs to be installed)
Packit Service 2781ba
       NEW_LINGUAS=
Packit Service 2781ba
       for presentlang in $ALL_LINGUAS; do
Packit Service 2781ba
         useit=no
Packit Service 2781ba
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
Packit Service 2781ba
           desiredlanguages="$LINGUAS"
Packit Service 2781ba
         else
Packit Service 2781ba
           desiredlanguages="$ALL_LINGUAS"
Packit Service 2781ba
         fi
Packit Service 2781ba
         for desiredlang in $desiredlanguages; do
Packit Service 2781ba
 	   # Use the presentlang catalog if desiredlang is
Packit Service 2781ba
           #   a. equal to presentlang, or
Packit Service 2781ba
           #   b. a variant of presentlang (because in this case,
Packit Service 2781ba
           #      presentlang can be used as a fallback for messages
Packit Service 2781ba
           #      which are not translated in the desiredlang catalog).
Packit Service 2781ba
           case "$desiredlang" in
Packit Service 2781ba
             "$presentlang"*) useit=yes;;
Packit Service 2781ba
           esac
Packit Service 2781ba
         done
Packit Service 2781ba
         if test $useit = yes; then
Packit Service 2781ba
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
Packit Service 2781ba
         fi
Packit Service 2781ba
       done
Packit Service 2781ba
       LINGUAS=$NEW_LINGUAS
Packit Service 2781ba
       AC_MSG_RESULT($LINGUAS)
Packit Service 2781ba
     fi
Packit Service 2781ba
Packit Service 2781ba
     dnl Construct list of names of catalog files to be constructed.
Packit Service 2781ba
     if test -n "$LINGUAS"; then
Packit Service 2781ba
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
Packit Service 2781ba
     fi
Packit Service 2781ba
   fi
Packit Service 2781ba
Packit Service 2781ba
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
Packit Service 2781ba
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
Packit Service 2781ba
   dnl Try to locate is.
Packit Service 2781ba
   MKINSTALLDIRS=
Packit Service 2781ba
   if test -n "$ac_aux_dir"; then
Packit Service 2781ba
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
Packit Service 2781ba
   fi
Packit Service 2781ba
   if test -z "$MKINSTALLDIRS"; then
Packit Service 2781ba
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
Packit Service 2781ba
   fi
Packit Service 2781ba
   AC_SUBST(MKINSTALLDIRS)
Packit Service 2781ba
Packit Service 2781ba
   dnl Generate list of files to be processed by xgettext which will
Packit Service 2781ba
   dnl be included in po/Makefile.
Packit Service 2781ba
   test -d po || mkdir po
Packit Service 2781ba
   if test "x$srcdir" != "x."; then
Packit Service 2781ba
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
Packit Service 2781ba
       posrcprefix="$srcdir/"
Packit Service 2781ba
     else
Packit Service 2781ba
       posrcprefix="../$srcdir/"
Packit Service 2781ba
     fi
Packit Service 2781ba
   else
Packit Service 2781ba
     posrcprefix="../"
Packit Service 2781ba
   fi
Packit Service 2781ba
   rm -f po/POTFILES
Packit Service 2781ba
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
Packit Service 2781ba
	< $srcdir/po/POTFILES.in > po/POTFILES
Packit Service 2781ba
  ])
Packit Service 2781ba
Packit Service 2781ba
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
Packit Service 2781ba
# -------------------------------
Packit Service 2781ba
# Define VARIABLE to the location where catalog files will
Packit Service 2781ba
# be installed by po/Makefile.
Packit Service 2781ba
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
Packit Service 2781ba
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
Packit Service 2781ba
glib_save_prefix="$prefix"
Packit Service 2781ba
glib_save_exec_prefix="$exec_prefix"
Packit Service 2781ba
glib_save_datarootdir="$datarootdir"
Packit Service 2781ba
test "x$prefix" = xNONE && prefix=$ac_default_prefix
Packit Service 2781ba
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
Packit Service 2781ba
datarootdir=`eval echo "${datarootdir}"`
Packit Service 2781ba
if test "x$CATOBJEXT" = "x.mo" ; then
Packit Service 2781ba
  localedir=`eval echo "${libdir}/locale"`
Packit Service 2781ba
else
Packit Service 2781ba
  localedir=`eval echo "${datadir}/locale"`
Packit Service 2781ba
fi
Packit Service 2781ba
prefix="$glib_save_prefix"
Packit Service 2781ba
exec_prefix="$glib_save_exec_prefix"
Packit Service 2781ba
datarootdir="$glib_save_datarootdir"
Packit Service 2781ba
AC_DEFINE_UNQUOTED($1, "$localedir",
Packit Service 2781ba
  [Define the location where the catalogs will be installed])
Packit Service 2781ba
])
Packit Service 2781ba
Packit Service 2781ba
dnl
Packit Service 2781ba
dnl Now the definitions that aclocal will find
Packit Service 2781ba
dnl
Packit Service 2781ba
ifdef(glib_configure_ac,[],[
Packit Service 2781ba
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
Packit Service 2781ba
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
Packit Service 2781ba
])dnl
Packit Service 2781ba
Packit Service 2781ba
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
Packit Service 2781ba
# 
Packit Service 2781ba
# Create a temporary file with TEST-FILE as its contents and pass the
Packit Service 2781ba
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
Packit Service 2781ba
# 0 and perform ACTION-IF-FAIL for any other exit status.
Packit Service 2781ba
AC_DEFUN([GLIB_RUN_PROG],
Packit Service 2781ba
[cat >conftest.foo <<_ACEOF
Packit Service 2781ba
$2
Packit Service 2781ba
_ACEOF
Packit Service 2781ba
if AC_RUN_LOG([$1 conftest.foo]); then
Packit Service 2781ba
  m4_ifval([$3], [$3], [:])
Packit Service 2781ba
m4_ifvaln([$4], [else $4])dnl
Packit Service 2781ba
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
Packit Service 2781ba
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
Packit Service 2781ba
fi])
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
Packit Service 2781ba
# serial 42 IT_PROG_INTLTOOL
Packit Service 2781ba
AC_DEFUN([IT_PROG_INTLTOOL], [
Packit Service 2781ba
AC_PREREQ([2.50])dnl
Packit Service 2781ba
AC_REQUIRE([AM_NLS])dnl
Packit Service 2781ba
Packit Service 2781ba
case "$am__api_version" in
Packit Service 2781ba
    1.[01234])
Packit Service 2781ba
	AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
Packit Service 2781ba
    ;;
Packit Service 2781ba
    *)
Packit Service 2781ba
    ;;
Packit Service 2781ba
esac
Packit Service 2781ba
Packit Service 2781ba
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
Packit Service 2781ba
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
Packit Service 2781ba
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
Packit Service 2781ba
if test -n "$1"; then
Packit Service 2781ba
    AC_MSG_CHECKING([for intltool >= $1])
Packit Service 2781ba
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
Packit Service 2781ba
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
Packit Service 2781ba
	AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
Packit Service 2781ba
fi
Packit Service 2781ba
Packit Service 2781ba
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
Packit Service 2781ba
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
Packit Service 2781ba
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
Packit Service 2781ba
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
Packit Service 2781ba
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
Packit Service 2781ba
fi
Packit Service 2781ba
Packit Service 2781ba
if test -z "$AM_DEFAULT_VERBOSITY"; then
Packit Service 2781ba
  AM_DEFAULT_VERBOSITY=1
Packit Service 2781ba
fi
Packit Service 2781ba
AC_SUBST([AM_DEFAULT_VERBOSITY])
Packit Service 2781ba
Packit Service 2781ba
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
Packit Service 2781ba
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
Packit Service 2781ba
INTLTOOL__v_MERGE_0='@echo "  ITMRG " [$]@;'
Packit Service 2781ba
AC_SUBST(INTLTOOL_V_MERGE)
Packit Service 2781ba
AC_SUBST(INTLTOOL__v_MERGE_)
Packit Service 2781ba
AC_SUBST(INTLTOOL__v_MERGE_0)
Packit Service 2781ba
Packit Service 2781ba
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
Packit Service 2781ba
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
Packit Service 2781ba
intltool__v_merge_options_0='-q'
Packit Service 2781ba
AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
Packit Service 2781ba
AC_SUBST(intltool__v_merge_options_)
Packit Service 2781ba
AC_SUBST(intltool__v_merge_options_0)
Packit Service 2781ba
Packit Service 2781ba
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit Service 2781ba
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit Service 2781ba
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit Service 2781ba
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit Service 2781ba
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
Packit Service 2781ba
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit Service 2781ba
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit Service 2781ba
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit Service 2781ba
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit Service 2781ba
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit Service 2781ba
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit Service 2781ba
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
Packit Service 2781ba
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
Packit Service 2781ba
else
Packit Service 2781ba
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
Packit Service 2781ba
fi
Packit Service 2781ba
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit Service 2781ba
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit Service 2781ba
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit Service 2781ba
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit Service 2781ba
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit Service 2781ba
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
Packit Service 2781ba
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
Packit Service 2781ba
Packit Service 2781ba
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
Packit Service 2781ba
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
Packit Service 2781ba
_IT_SUBST(INTLTOOL_KEYS_RULE)
Packit Service 2781ba
_IT_SUBST(INTLTOOL_PROP_RULE)
Packit Service 2781ba
_IT_SUBST(INTLTOOL_OAF_RULE)
Packit Service 2781ba
_IT_SUBST(INTLTOOL_PONG_RULE)
Packit Service 2781ba
_IT_SUBST(INTLTOOL_SERVER_RULE)
Packit Service 2781ba
_IT_SUBST(INTLTOOL_SHEET_RULE)
Packit Service 2781ba
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
Packit Service 2781ba
_IT_SUBST(INTLTOOL_UI_RULE)
Packit Service 2781ba
_IT_SUBST(INTLTOOL_XAM_RULE)
Packit Service 2781ba
_IT_SUBST(INTLTOOL_KBD_RULE)
Packit Service 2781ba
_IT_SUBST(INTLTOOL_XML_RULE)
Packit Service 2781ba
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
Packit Service 2781ba
_IT_SUBST(INTLTOOL_CAVES_RULE)
Packit Service 2781ba
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
Packit Service 2781ba
_IT_SUBST(INTLTOOL_THEME_RULE)
Packit Service 2781ba
_IT_SUBST(INTLTOOL_SERVICE_RULE)
Packit Service 2781ba
_IT_SUBST(INTLTOOL_POLICY_RULE)
Packit Service 2781ba
Packit Service 2781ba
# Check the gettext tools to make sure they are GNU
Packit Service 2781ba
AC_PATH_PROG(XGETTEXT, xgettext)
Packit Service 2781ba
AC_PATH_PROG(MSGMERGE, msgmerge)
Packit Service 2781ba
AC_PATH_PROG(MSGFMT, msgfmt)
Packit Service 2781ba
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
Packit Service 2781ba
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
Packit Service 2781ba
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
Packit Service 2781ba
fi
Packit Service 2781ba
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
Packit Service 2781ba
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
Packit Service 2781ba
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
Packit Service 2781ba
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
Packit Service 2781ba
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
Packit Service 2781ba
fi
Packit Service 2781ba
Packit Service 2781ba
AC_PATH_PROG(INTLTOOL_PERL, perl)
Packit Service 2781ba
if test -z "$INTLTOOL_PERL"; then
Packit Service 2781ba
   AC_MSG_ERROR([perl not found])
Packit Service 2781ba
fi
Packit Service 2781ba
AC_MSG_CHECKING([for perl >= 5.8.1])
Packit Service 2781ba
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
Packit Service 2781ba
if test $? -ne 0; then
Packit Service 2781ba
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
Packit Service 2781ba
else
Packit Service 2781ba
   IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
Packit Service 2781ba
   AC_MSG_RESULT([$IT_PERL_VERSION])
Packit Service 2781ba
fi
Packit Service 2781ba
if test "x$2" != "xno-xml"; then
Packit Service 2781ba
   AC_MSG_CHECKING([for XML::Parser])
Packit Service 2781ba
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
Packit Service 2781ba
       AC_MSG_RESULT([ok])
Packit Service 2781ba
   else
Packit Service 2781ba
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
Packit Service 2781ba
   fi
Packit Service 2781ba
fi
Packit Service 2781ba
Packit Service 2781ba
# Substitute ALL_LINGUAS so we can use it in po/Makefile
Packit Service 2781ba
AC_SUBST(ALL_LINGUAS)
Packit Service 2781ba
Packit Service 2781ba
# Set DATADIRNAME correctly if it is not set yet
Packit Service 2781ba
# (copied from glib-gettext.m4)
Packit Service 2781ba
if test -z "$DATADIRNAME"; then
Packit Service 2781ba
  AC_LINK_IFELSE(
Packit Service 2781ba
    [AC_LANG_PROGRAM([[]],
Packit Service 2781ba
                     [[extern int _nl_msg_cat_cntr;
Packit Service 2781ba
                       return _nl_msg_cat_cntr]])],
Packit Service 2781ba
    [DATADIRNAME=share],
Packit Service 2781ba
    [case $host in
Packit Service 2781ba
    *-*-solaris*)
Packit Service 2781ba
    dnl On Solaris, if bind_textdomain_codeset is in libc,
Packit Service 2781ba
    dnl GNU format message catalog is always supported,
Packit Service 2781ba
    dnl since both are added to the libc all together.
Packit Service 2781ba
    dnl Hence, we'd like to go with DATADIRNAME=share
Packit Service 2781ba
    dnl in this case.
Packit Service 2781ba
    AC_CHECK_FUNC(bind_textdomain_codeset,
Packit Service 2781ba
      [DATADIRNAME=share], [DATADIRNAME=lib])
Packit Service 2781ba
    ;;
Packit Service 2781ba
    *)
Packit Service 2781ba
    [DATADIRNAME=lib]
Packit Service 2781ba
    ;;
Packit Service 2781ba
    esac])
Packit Service 2781ba
fi
Packit Service 2781ba
AC_SUBST(DATADIRNAME)
Packit Service 2781ba
Packit Service 2781ba
IT_PO_SUBDIR([po])
Packit Service 2781ba
Packit Service 2781ba
])
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
# IT_PO_SUBDIR(DIRNAME)
Packit Service 2781ba
# ---------------------
Packit Service 2781ba
# All po subdirs have to be declared with this macro; the subdir "po" is
Packit Service 2781ba
# declared by IT_PROG_INTLTOOL.
Packit Service 2781ba
#
Packit Service 2781ba
AC_DEFUN([IT_PO_SUBDIR],
Packit Service 2781ba
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
Packit Service 2781ba
dnl
Packit Service 2781ba
dnl The following CONFIG_COMMANDS should be executed at the very end
Packit Service 2781ba
dnl of config.status.
Packit Service 2781ba
AC_CONFIG_COMMANDS_PRE([
Packit Service 2781ba
  AC_CONFIG_COMMANDS([$1/stamp-it], [
Packit Service 2781ba
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
Packit Service 2781ba
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
Packit Service 2781ba
    fi
Packit Service 2781ba
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
Packit Service 2781ba
    >"$1/stamp-it.tmp"
Packit Service 2781ba
    [sed '/^#/d
Packit Service 2781ba
	 s/^[[].*] *//
Packit Service 2781ba
	 /^[ 	]*$/d
Packit Service 2781ba
	'"s|^|	$ac_top_srcdir/|" \
Packit Service 2781ba
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
Packit Service 2781ba
    ]
Packit Service 2781ba
    [sed '/^POTFILES =/,/[^\\]$/ {
Packit Service 2781ba
		/^POTFILES =/!d
Packit Service 2781ba
		r $1/POTFILES
Packit Service 2781ba
	  }
Packit Service 2781ba
	 ' "$1/Makefile.in" >"$1/Makefile"]
Packit Service 2781ba
    rm -f "$1/Makefile.tmp"
Packit Service 2781ba
    mv "$1/stamp-it.tmp" "$1/stamp-it"
Packit Service 2781ba
  ])
Packit Service 2781ba
])dnl
Packit Service 2781ba
])
Packit Service 2781ba
Packit Service 2781ba
# _IT_SUBST(VARIABLE)
Packit Service 2781ba
# -------------------
Packit Service 2781ba
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
Packit Service 2781ba
#
Packit Service 2781ba
AC_DEFUN([_IT_SUBST],
Packit Service 2781ba
[
Packit Service 2781ba
AC_SUBST([$1])
Packit Service 2781ba
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
Packit Service 2781ba
]
Packit Service 2781ba
)
Packit Service 2781ba
Packit Service 2781ba
# deprecated macros
Packit Service 2781ba
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
Packit Service 2781ba
# A hint is needed for aclocal from Automake <= 1.9.4:
Packit Service 2781ba
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
# nls.m4 serial 5 (gettext-0.18)
Packit Service 2781ba
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
Packit Service 2781ba
dnl Inc.
Packit Service 2781ba
dnl This file is free software; the Free Software Foundation
Packit Service 2781ba
dnl gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
dnl with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
dnl
Packit Service 2781ba
dnl This file can can be used in projects which are not available under
Packit Service 2781ba
dnl the GNU General Public License or the GNU Library General Public
Packit Service 2781ba
dnl License but which still want to provide support for the GNU gettext
Packit Service 2781ba
dnl functionality.
Packit Service 2781ba
dnl Please note that the actual code of the GNU gettext library is covered
Packit Service 2781ba
dnl by the GNU Library General Public License, and the rest of the GNU
Packit Service 2781ba
dnl gettext package package is covered by the GNU General Public License.
Packit Service 2781ba
dnl They are *not* in the public domain.
Packit Service 2781ba
Packit Service 2781ba
dnl Authors:
Packit Service 2781ba
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
Packit Service 2781ba
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
Packit Service 2781ba
Packit Service 2781ba
AC_PREREQ([2.50])
Packit Service 2781ba
Packit Service 2781ba
AC_DEFUN([AM_NLS],
Packit Service 2781ba
[
Packit Service 2781ba
  AC_MSG_CHECKING([whether NLS is requested])
Packit Service 2781ba
  dnl Default is enabled NLS
Packit Service 2781ba
  AC_ARG_ENABLE([nls],
Packit Service 2781ba
    [  --disable-nls           do not use Native Language Support],
Packit Service 2781ba
    USE_NLS=$enableval, USE_NLS=yes)
Packit Service 2781ba
  AC_MSG_RESULT([$USE_NLS])
Packit Service 2781ba
  AC_SUBST([USE_NLS])
Packit Service 2781ba
])
Packit Service 2781ba
Packit Service 2781ba
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
Packit Service 2781ba
# serial 1 (pkg-config-0.24)
Packit Service 2781ba
# 
Packit Service 2781ba
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
Packit Service 2781ba
#
Packit Service 2781ba
# This program is free software; you can redistribute it and/or modify
Packit Service 2781ba
# it under the terms of the GNU General Public License as published by
Packit Service 2781ba
# the Free Software Foundation; either version 2 of the License, or
Packit Service 2781ba
# (at your option) any later version.
Packit Service 2781ba
#
Packit Service 2781ba
# This program is distributed in the hope that it will be useful, but
Packit Service 2781ba
# WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 2781ba
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 2781ba
# General Public License for more details.
Packit Service 2781ba
#
Packit Service 2781ba
# You should have received a copy of the GNU General Public License
Packit Service 2781ba
# along with this program; if not, write to the Free Software
Packit Service 2781ba
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Packit Service 2781ba
#
Packit Service 2781ba
# As a special exception to the GNU General Public License, if you
Packit Service 2781ba
# distribute this file as part of a program that contains a
Packit Service 2781ba
# configuration script generated by Autoconf, you may include it under
Packit Service 2781ba
# the same distribution terms that you use for the rest of that program.
Packit Service 2781ba
Packit Service 2781ba
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
Packit Service 2781ba
# ----------------------------------
Packit Service 2781ba
AC_DEFUN([PKG_PROG_PKG_CONFIG],
Packit Service 2781ba
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
Packit Service 2781ba
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
Packit Service 2781ba
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
Packit Service 2781ba
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
Packit Service 2781ba
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
Packit Service 2781ba
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
Packit Service 2781ba
Packit Service 2781ba
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Packit Service 2781ba
	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
Packit Service 2781ba
fi
Packit Service 2781ba
if test -n "$PKG_CONFIG"; then
Packit Service 2781ba
	_pkg_min_version=m4_default([$1], [0.9.0])
Packit Service 2781ba
	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
Packit Service 2781ba
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Packit Service 2781ba
		AC_MSG_RESULT([yes])
Packit Service 2781ba
	else
Packit Service 2781ba
		AC_MSG_RESULT([no])
Packit Service 2781ba
		PKG_CONFIG=""
Packit Service 2781ba
	fi
Packit Service 2781ba
fi[]dnl
Packit Service 2781ba
])# PKG_PROG_PKG_CONFIG
Packit Service 2781ba
Packit Service 2781ba
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
Packit Service 2781ba
#
Packit Service 2781ba
# Check to see whether a particular set of modules exists.  Similar
Packit Service 2781ba
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
Packit Service 2781ba
#
Packit Service 2781ba
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
Packit Service 2781ba
# only at the first occurence in configure.ac, so if the first place
Packit Service 2781ba
# it's called might be skipped (such as if it is within an "if", you
Packit Service 2781ba
# have to call PKG_CHECK_EXISTS manually
Packit Service 2781ba
# --------------------------------------------------------------
Packit Service 2781ba
AC_DEFUN([PKG_CHECK_EXISTS],
Packit Service 2781ba
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Packit Service 2781ba
if test -n "$PKG_CONFIG" && \
Packit Service 2781ba
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
Packit Service 2781ba
  m4_default([$2], [:])
Packit Service 2781ba
m4_ifvaln([$3], [else
Packit Service 2781ba
  $3])dnl
Packit Service 2781ba
fi])
Packit Service 2781ba
Packit Service 2781ba
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
Packit Service 2781ba
# ---------------------------------------------
Packit Service 2781ba
m4_define([_PKG_CONFIG],
Packit Service 2781ba
[if test -n "$$1"; then
Packit Service 2781ba
    pkg_cv_[]$1="$$1"
Packit Service 2781ba
 elif test -n "$PKG_CONFIG"; then
Packit Service 2781ba
    PKG_CHECK_EXISTS([$3],
Packit Service 2781ba
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
Packit Service 2781ba
		      test "x$?" != "x0" && pkg_failed=yes ],
Packit Service 2781ba
		     [pkg_failed=yes])
Packit Service 2781ba
 else
Packit Service 2781ba
    pkg_failed=untried
Packit Service 2781ba
fi[]dnl
Packit Service 2781ba
])# _PKG_CONFIG
Packit Service 2781ba
Packit Service 2781ba
# _PKG_SHORT_ERRORS_SUPPORTED
Packit Service 2781ba
# -----------------------------
Packit Service 2781ba
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
Packit Service 2781ba
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
Packit Service 2781ba
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Packit Service 2781ba
        _pkg_short_errors_supported=yes
Packit Service 2781ba
else
Packit Service 2781ba
        _pkg_short_errors_supported=no
Packit Service 2781ba
fi[]dnl
Packit Service 2781ba
])# _PKG_SHORT_ERRORS_SUPPORTED
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
Packit Service 2781ba
# [ACTION-IF-NOT-FOUND])
Packit Service 2781ba
#
Packit Service 2781ba
#
Packit Service 2781ba
# Note that if there is a possibility the first call to
Packit Service 2781ba
# PKG_CHECK_MODULES might not happen, you should be sure to include an
Packit Service 2781ba
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
Packit Service 2781ba
#
Packit Service 2781ba
#
Packit Service 2781ba
# --------------------------------------------------------------
Packit Service 2781ba
AC_DEFUN([PKG_CHECK_MODULES],
Packit Service 2781ba
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Packit Service 2781ba
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
Packit Service 2781ba
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
Packit Service 2781ba
Packit Service 2781ba
pkg_failed=no
Packit Service 2781ba
AC_MSG_CHECKING([for $1])
Packit Service 2781ba
Packit Service 2781ba
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
Packit Service 2781ba
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
Packit Service 2781ba
Packit Service 2781ba
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
Packit Service 2781ba
and $1[]_LIBS to avoid the need to call pkg-config.
Packit Service 2781ba
See the pkg-config man page for more details.])
Packit Service 2781ba
Packit Service 2781ba
if test $pkg_failed = yes; then
Packit Service 2781ba
   	AC_MSG_RESULT([no])
Packit Service 2781ba
        _PKG_SHORT_ERRORS_SUPPORTED
Packit Service 2781ba
        if test $_pkg_short_errors_supported = yes; then
Packit Service 2781ba
	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
Packit Service 2781ba
        else 
Packit Service 2781ba
	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
Packit Service 2781ba
        fi
Packit Service 2781ba
	# Put the nasty error message in config.log where it belongs
Packit Service 2781ba
	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
Packit Service 2781ba
Packit Service 2781ba
	m4_default([$4], [AC_MSG_ERROR(
Packit Service 2781ba
[Package requirements ($2) were not met:
Packit Service 2781ba
Packit Service 2781ba
$$1_PKG_ERRORS
Packit Service 2781ba
Packit Service 2781ba
Consider adjusting the PKG_CONFIG_PATH environment variable if you
Packit Service 2781ba
installed software in a non-standard prefix.
Packit Service 2781ba
Packit Service 2781ba
_PKG_TEXT])[]dnl
Packit Service 2781ba
        ])
Packit Service 2781ba
elif test $pkg_failed = untried; then
Packit Service 2781ba
     	AC_MSG_RESULT([no])
Packit Service 2781ba
	m4_default([$4], [AC_MSG_FAILURE(
Packit Service 2781ba
[The pkg-config script could not be found or is too old.  Make sure it
Packit Service 2781ba
is in your PATH or set the PKG_CONFIG environment variable to the full
Packit Service 2781ba
path to pkg-config.
Packit Service 2781ba
Packit Service 2781ba
_PKG_TEXT
Packit Service 2781ba
Packit Service 2781ba
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
Packit Service 2781ba
        ])
Packit Service 2781ba
else
Packit Service 2781ba
	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
Packit Service 2781ba
	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
Packit Service 2781ba
        AC_MSG_RESULT([yes])
Packit Service 2781ba
	$3
Packit Service 2781ba
fi[]dnl
Packit Service 2781ba
])# PKG_CHECK_MODULES
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
Packit Service 2781ba
# Foundation, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 1
Packit Service 2781ba
Packit Service 2781ba
# AM_AUTOMAKE_VERSION(VERSION)
Packit Service 2781ba
# ----------------------------
Packit Service 2781ba
# Automake X.Y traces this macro to ensure aclocal.m4 has been
Packit Service 2781ba
# generated from the m4 files accompanying Automake X.Y.
Packit Service 2781ba
# (This private macro should not be called outside this file.)
Packit Service 2781ba
AC_DEFUN([AM_AUTOMAKE_VERSION],
Packit Service 2781ba
[am__api_version='1.11'
Packit Service 2781ba
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
Packit Service 2781ba
dnl require some minimum version.  Point them to the right macro.
Packit Service 2781ba
m4_if([$1], [1.11.3], [],
Packit Service 2781ba
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
Packit Service 2781ba
])
Packit Service 2781ba
Packit Service 2781ba
# _AM_AUTOCONF_VERSION(VERSION)
Packit Service 2781ba
# -----------------------------
Packit Service 2781ba
# aclocal traces this macro to find the Autoconf version.
Packit Service 2781ba
# This is a private macro too.  Using m4_define simplifies
Packit Service 2781ba
# the logic in aclocal, which can simply ignore this definition.
Packit Service 2781ba
m4_define([_AM_AUTOCONF_VERSION], [])
Packit Service 2781ba
Packit Service 2781ba
# AM_SET_CURRENT_AUTOMAKE_VERSION
Packit Service 2781ba
# -------------------------------
Packit Service 2781ba
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
Packit Service 2781ba
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
Packit Service 2781ba
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
Packit Service 2781ba
[AM_AUTOMAKE_VERSION([1.11.3])dnl
Packit Service 2781ba
m4_ifndef([AC_AUTOCONF_VERSION],
Packit Service 2781ba
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit Service 2781ba
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
Packit Service 2781ba
Packit Service 2781ba
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 1
Packit Service 2781ba
Packit Service 2781ba
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
Packit Service 2781ba
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
Packit Service 2781ba
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
Packit Service 2781ba
#
Packit Service 2781ba
# Of course, Automake must honor this variable whenever it calls a
Packit Service 2781ba
# tool from the auxiliary directory.  The problem is that $srcdir (and
Packit Service 2781ba
# therefore $ac_aux_dir as well) can be either absolute or relative,
Packit Service 2781ba
# depending on how configure is run.  This is pretty annoying, since
Packit Service 2781ba
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
Packit Service 2781ba
# source directory, any form will work fine, but in subdirectories a
Packit Service 2781ba
# relative path needs to be adjusted first.
Packit Service 2781ba
#
Packit Service 2781ba
# $ac_aux_dir/missing
Packit Service 2781ba
#    fails when called from a subdirectory if $ac_aux_dir is relative
Packit Service 2781ba
# $top_srcdir/$ac_aux_dir/missing
Packit Service 2781ba
#    fails if $ac_aux_dir is absolute,
Packit Service 2781ba
#    fails when called from a subdirectory in a VPATH build with
Packit Service 2781ba
#          a relative $ac_aux_dir
Packit Service 2781ba
#
Packit Service 2781ba
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
Packit Service 2781ba
# are both prefixed by $srcdir.  In an in-source build this is usually
Packit Service 2781ba
# harmless because $srcdir is `.', but things will broke when you
Packit Service 2781ba
# start a VPATH build or use an absolute $srcdir.
Packit Service 2781ba
#
Packit Service 2781ba
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
Packit Service 2781ba
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
Packit Service 2781ba
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
Packit Service 2781ba
# and then we would define $MISSING as
Packit Service 2781ba
#   MISSING="\${SHELL} $am_aux_dir/missing"
Packit Service 2781ba
# This will work as long as MISSING is not called from configure, because
Packit Service 2781ba
# unfortunately $(top_srcdir) has no meaning in configure.
Packit Service 2781ba
# However there are other variables, like CC, which are often used in
Packit Service 2781ba
# configure, and could therefore not use this "fixed" $ac_aux_dir.
Packit Service 2781ba
#
Packit Service 2781ba
# Another solution, used here, is to always expand $ac_aux_dir to an
Packit Service 2781ba
# absolute PATH.  The drawback is that using absolute paths prevent a
Packit Service 2781ba
# configured tree to be moved without reconfiguration.
Packit Service 2781ba
Packit Service 2781ba
AC_DEFUN([AM_AUX_DIR_EXPAND],
Packit Service 2781ba
[dnl Rely on autoconf to set up CDPATH properly.
Packit Service 2781ba
AC_PREREQ([2.50])dnl
Packit Service 2781ba
# expand $ac_aux_dir to an absolute path
Packit Service 2781ba
am_aux_dir=`cd $ac_aux_dir && pwd`
Packit Service 2781ba
])
Packit Service 2781ba
Packit Service 2781ba
# AM_CONDITIONAL                                            -*- Autoconf -*-
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
Packit Service 2781ba
# Free Software Foundation, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 9
Packit Service 2781ba
Packit Service 2781ba
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
Packit Service 2781ba
# -------------------------------------
Packit Service 2781ba
# Define a conditional.
Packit Service 2781ba
AC_DEFUN([AM_CONDITIONAL],
Packit Service 2781ba
[AC_PREREQ(2.52)dnl
Packit Service 2781ba
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
Packit Service 2781ba
	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
Packit Service 2781ba
AC_SUBST([$1_TRUE])dnl
Packit Service 2781ba
AC_SUBST([$1_FALSE])dnl
Packit Service 2781ba
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
Packit Service 2781ba
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
Packit Service 2781ba
m4_define([_AM_COND_VALUE_$1], [$2])dnl
Packit Service 2781ba
if $2; then
Packit Service 2781ba
  $1_TRUE=
Packit Service 2781ba
  $1_FALSE='#'
Packit Service 2781ba
else
Packit Service 2781ba
  $1_TRUE='#'
Packit Service 2781ba
  $1_FALSE=
Packit Service 2781ba
fi
Packit Service 2781ba
AC_CONFIG_COMMANDS_PRE(
Packit Service 2781ba
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
Packit Service 2781ba
  AC_MSG_ERROR([[conditional "$1" was never defined.
Packit Service 2781ba
Usually this means the macro was only invoked conditionally.]])
Packit Service 2781ba
fi])])
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
Packit Service 2781ba
# 2010, 2011 Free Software Foundation, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 12
Packit Service 2781ba
Packit Service 2781ba
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
Packit Service 2781ba
# written in clear, in which case automake, when reading aclocal.m4,
Packit Service 2781ba
# will think it sees a *use*, and therefore will trigger all it's
Packit Service 2781ba
# C support machinery.  Also note that it means that autoscan, seeing
Packit Service 2781ba
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
# _AM_DEPENDENCIES(NAME)
Packit Service 2781ba
# ----------------------
Packit Service 2781ba
# See how the compiler implements dependency checking.
Packit Service 2781ba
# NAME is "CC", "CXX", "GCJ", or "OBJC".
Packit Service 2781ba
# We try a few techniques and use that to set a single cache variable.
Packit Service 2781ba
#
Packit Service 2781ba
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
Packit Service 2781ba
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
Packit Service 2781ba
# dependency, and given that the user is not expected to run this macro,
Packit Service 2781ba
# just rely on AC_PROG_CC.
Packit Service 2781ba
AC_DEFUN([_AM_DEPENDENCIES],
Packit Service 2781ba
[AC_REQUIRE([AM_SET_DEPDIR])dnl
Packit Service 2781ba
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
Packit Service 2781ba
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
Packit Service 2781ba
AC_REQUIRE([AM_DEP_TRACK])dnl
Packit Service 2781ba
Packit Service 2781ba
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
Packit Service 2781ba
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
Packit Service 2781ba
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
Packit Service 2781ba
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
Packit Service 2781ba
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
Packit Service 2781ba
                   [depcc="$$1"   am_compiler_list=])
Packit Service 2781ba
Packit Service 2781ba
AC_CACHE_CHECK([dependency style of $depcc],
Packit Service 2781ba
               [am_cv_$1_dependencies_compiler_type],
Packit Service 2781ba
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Packit Service 2781ba
  # We make a subdir and do the tests there.  Otherwise we can end up
Packit Service 2781ba
  # making bogus files that we don't know about and never remove.  For
Packit Service 2781ba
  # instance it was reported that on HP-UX the gcc test will end up
Packit Service 2781ba
  # making a dummy file named `D' -- because `-MD' means `put the output
Packit Service 2781ba
  # in D'.
Packit Service 2781ba
  rm -rf conftest.dir
Packit Service 2781ba
  mkdir conftest.dir
Packit Service 2781ba
  # Copy depcomp to subdir because otherwise we won't find it if we're
Packit Service 2781ba
  # using a relative directory.
Packit Service 2781ba
  cp "$am_depcomp" conftest.dir
Packit Service 2781ba
  cd conftest.dir
Packit Service 2781ba
  # We will build objects and dependencies in a subdirectory because
Packit Service 2781ba
  # it helps to detect inapplicable dependency modes.  For instance
Packit Service 2781ba
  # both Tru64's cc and ICC support -MD to output dependencies as a
Packit Service 2781ba
  # side effect of compilation, but ICC will put the dependencies in
Packit Service 2781ba
  # the current directory while Tru64 will put them in the object
Packit Service 2781ba
  # directory.
Packit Service 2781ba
  mkdir sub
Packit Service 2781ba
Packit Service 2781ba
  am_cv_$1_dependencies_compiler_type=none
Packit Service 2781ba
  if test "$am_compiler_list" = ""; then
Packit Service 2781ba
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
Packit Service 2781ba
  fi
Packit Service 2781ba
  am__universal=false
Packit Service 2781ba
  m4_case([$1], [CC],
Packit Service 2781ba
    [case " $depcc " in #(
Packit Service 2781ba
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
Packit Service 2781ba
     esac],
Packit Service 2781ba
    [CXX],
Packit Service 2781ba
    [case " $depcc " in #(
Packit Service 2781ba
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
Packit Service 2781ba
     esac])
Packit Service 2781ba
Packit Service 2781ba
  for depmode in $am_compiler_list; do
Packit Service 2781ba
    # Setup a source with many dependencies, because some compilers
Packit Service 2781ba
    # like to wrap large dependency lists on column 80 (with \), and
Packit Service 2781ba
    # we should not choose a depcomp mode which is confused by this.
Packit Service 2781ba
    #
Packit Service 2781ba
    # We need to recreate these files for each test, as the compiler may
Packit Service 2781ba
    # overwrite some of them when testing with obscure command lines.
Packit Service 2781ba
    # This happens at least with the AIX C compiler.
Packit Service 2781ba
    : > sub/conftest.c
Packit Service 2781ba
    for i in 1 2 3 4 5 6; do
Packit Service 2781ba
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
Packit Service 2781ba
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
Packit Service 2781ba
      # Solaris 8's {/usr,}/bin/sh.
Packit Service 2781ba
      touch sub/conftst$i.h
Packit Service 2781ba
    done
Packit Service 2781ba
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Packit Service 2781ba
Packit Service 2781ba
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
Packit Service 2781ba
    # mode.  It turns out that the SunPro C++ compiler does not properly
Packit Service 2781ba
    # handle `-M -o', and we need to detect this.  Also, some Intel
Packit Service 2781ba
    # versions had trouble with output in subdirs
Packit Service 2781ba
    am__obj=sub/conftest.${OBJEXT-o}
Packit Service 2781ba
    am__minus_obj="-o $am__obj"
Packit Service 2781ba
    case $depmode in
Packit Service 2781ba
    gcc)
Packit Service 2781ba
      # This depmode causes a compiler race in universal mode.
Packit Service 2781ba
      test "$am__universal" = false || continue
Packit Service 2781ba
      ;;
Packit Service 2781ba
    nosideeffect)
Packit Service 2781ba
      # after this tag, mechanisms are not by side-effect, so they'll
Packit Service 2781ba
      # only be used when explicitly requested
Packit Service 2781ba
      if test "x$enable_dependency_tracking" = xyes; then
Packit Service 2781ba
	continue
Packit Service 2781ba
      else
Packit Service 2781ba
	break
Packit Service 2781ba
      fi
Packit Service 2781ba
      ;;
Packit Service 2781ba
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Packit Service 2781ba
      # This compiler won't grok `-c -o', but also, the minuso test has
Packit Service 2781ba
      # not run yet.  These depmodes are late enough in the game, and
Packit Service 2781ba
      # so weak that their functioning should not be impacted.
Packit Service 2781ba
      am__obj=conftest.${OBJEXT-o}
Packit Service 2781ba
      am__minus_obj=
Packit Service 2781ba
      ;;
Packit Service 2781ba
    none) break ;;
Packit Service 2781ba
    esac
Packit Service 2781ba
    if depmode=$depmode \
Packit Service 2781ba
       source=sub/conftest.c object=$am__obj \
Packit Service 2781ba
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Packit Service 2781ba
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Packit Service 2781ba
         >/dev/null 2>conftest.err &&
Packit Service 2781ba
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Packit Service 2781ba
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Packit Service 2781ba
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Packit Service 2781ba
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Packit Service 2781ba
      # icc doesn't choke on unknown options, it will just issue warnings
Packit Service 2781ba
      # or remarks (even with -Werror).  So we grep stderr for any message
Packit Service 2781ba
      # that says an option was ignored or not supported.
Packit Service 2781ba
      # When given -MP, icc 7.0 and 7.1 complain thusly:
Packit Service 2781ba
      #   icc: Command line warning: ignoring option '-M'; no argument required
Packit Service 2781ba
      # The diagnosis changed in icc 8.0:
Packit Service 2781ba
      #   icc: Command line remark: option '-MP' not supported
Packit Service 2781ba
      if (grep 'ignoring option' conftest.err ||
Packit Service 2781ba
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Packit Service 2781ba
        am_cv_$1_dependencies_compiler_type=$depmode
Packit Service 2781ba
        break
Packit Service 2781ba
      fi
Packit Service 2781ba
    fi
Packit Service 2781ba
  done
Packit Service 2781ba
Packit Service 2781ba
  cd ..
Packit Service 2781ba
  rm -rf conftest.dir
Packit Service 2781ba
else
Packit Service 2781ba
  am_cv_$1_dependencies_compiler_type=none
Packit Service 2781ba
fi
Packit Service 2781ba
])
Packit Service 2781ba
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
Packit Service 2781ba
AM_CONDITIONAL([am__fastdep$1], [
Packit Service 2781ba
  test "x$enable_dependency_tracking" != xno \
Packit Service 2781ba
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
Packit Service 2781ba
])
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
# AM_SET_DEPDIR
Packit Service 2781ba
# -------------
Packit Service 2781ba
# Choose a directory name for dependency files.
Packit Service 2781ba
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
Packit Service 2781ba
AC_DEFUN([AM_SET_DEPDIR],
Packit Service 2781ba
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Packit Service 2781ba
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
Packit Service 2781ba
])
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
# AM_DEP_TRACK
Packit Service 2781ba
# ------------
Packit Service 2781ba
AC_DEFUN([AM_DEP_TRACK],
Packit Service 2781ba
[AC_ARG_ENABLE(dependency-tracking,
Packit Service 2781ba
[  --disable-dependency-tracking  speeds up one-time build
Packit Service 2781ba
  --enable-dependency-tracking   do not reject slow dependency extractors])
Packit Service 2781ba
if test "x$enable_dependency_tracking" != xno; then
Packit Service 2781ba
  am_depcomp="$ac_aux_dir/depcomp"
Packit Service 2781ba
  AMDEPBACKSLASH='\'
Packit Service 2781ba
  am__nodep='_no'
Packit Service 2781ba
fi
Packit Service 2781ba
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
Packit Service 2781ba
AC_SUBST([AMDEPBACKSLASH])dnl
Packit Service 2781ba
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
Packit Service 2781ba
AC_SUBST([am__nodep])dnl
Packit Service 2781ba
_AM_SUBST_NOTMAKE([am__nodep])dnl
Packit Service 2781ba
])
Packit Service 2781ba
Packit Service 2781ba
# Generate code to set up dependency tracking.              -*- Autoconf -*-
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
Packit Service 2781ba
# Free Software Foundation, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
#serial 5
Packit Service 2781ba
Packit Service 2781ba
# _AM_OUTPUT_DEPENDENCY_COMMANDS
Packit Service 2781ba
# ------------------------------
Packit Service 2781ba
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit Service 2781ba
[{
Packit Service 2781ba
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
Packit Service 2781ba
  # are listed without --file.  Let's play safe and only enable the eval
Packit Service 2781ba
  # if we detect the quoting.
Packit Service 2781ba
  case $CONFIG_FILES in
Packit Service 2781ba
  *\'*) eval set x "$CONFIG_FILES" ;;
Packit Service 2781ba
  *)   set x $CONFIG_FILES ;;
Packit Service 2781ba
  esac
Packit Service 2781ba
  shift
Packit Service 2781ba
  for mf
Packit Service 2781ba
  do
Packit Service 2781ba
    # Strip MF so we end up with the name of the file.
Packit Service 2781ba
    mf=`echo "$mf" | sed -e 's/:.*$//'`
Packit Service 2781ba
    # Check whether this is an Automake generated Makefile or not.
Packit Service 2781ba
    # We used to match only the files named `Makefile.in', but
Packit Service 2781ba
    # some people rename them; so instead we look at the file content.
Packit Service 2781ba
    # Grep'ing the first line is not enough: some people post-process
Packit Service 2781ba
    # each Makefile.in and add a new line on top of each file to say so.
Packit Service 2781ba
    # Grep'ing the whole file is not good either: AIX grep has a line
Packit Service 2781ba
    # limit of 2048, but all sed's we know have understand at least 4000.
Packit Service 2781ba
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Packit Service 2781ba
      dirpart=`AS_DIRNAME("$mf")`
Packit Service 2781ba
    else
Packit Service 2781ba
      continue
Packit Service 2781ba
    fi
Packit Service 2781ba
    # Extract the definition of DEPDIR, am__include, and am__quote
Packit Service 2781ba
    # from the Makefile without running `make'.
Packit Service 2781ba
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Packit Service 2781ba
    test -z "$DEPDIR" && continue
Packit Service 2781ba
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
Packit Service 2781ba
    test -z "am__include" && continue
Packit Service 2781ba
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Packit Service 2781ba
    # When using ansi2knr, U may be empty or an underscore; expand it
Packit Service 2781ba
    U=`sed -n 's/^U = //p' < "$mf"`
Packit Service 2781ba
    # Find all dependency output files, they are included files with
Packit Service 2781ba
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
Packit Service 2781ba
    # simplest approach to changing $(DEPDIR) to its actual value in the
Packit Service 2781ba
    # expansion.
Packit Service 2781ba
    for file in `sed -n "
Packit Service 2781ba
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Packit Service 2781ba
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
Packit Service 2781ba
      # Make sure the directory exists.
Packit Service 2781ba
      test -f "$dirpart/$file" && continue
Packit Service 2781ba
      fdir=`AS_DIRNAME(["$file"])`
Packit Service 2781ba
      AS_MKDIR_P([$dirpart/$fdir])
Packit Service 2781ba
      # echo "creating $dirpart/$file"
Packit Service 2781ba
      echo '# dummy' > "$dirpart/$file"
Packit Service 2781ba
    done
Packit Service 2781ba
  done
Packit Service 2781ba
}
Packit Service 2781ba
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
# AM_OUTPUT_DEPENDENCY_COMMANDS
Packit Service 2781ba
# -----------------------------
Packit Service 2781ba
# This macro should only be invoked once -- use via AC_REQUIRE.
Packit Service 2781ba
#
Packit Service 2781ba
# This code is only required when automatic dependency tracking
Packit Service 2781ba
# is enabled.  FIXME.  This creates each `.P' file that we will
Packit Service 2781ba
# need in order to bootstrap the dependency handling code.
Packit Service 2781ba
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit Service 2781ba
[AC_CONFIG_COMMANDS([depfiles],
Packit Service 2781ba
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit Service 2781ba
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
Packit Service 2781ba
])
Packit Service 2781ba
Packit Service 2781ba
# Do all the work for Automake.                             -*- Autoconf -*-
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
Packit Service 2781ba
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 16
Packit Service 2781ba
Packit Service 2781ba
# This macro actually does too much.  Some checks are only needed if
Packit Service 2781ba
# your package does certain things.  But this isn't really a big deal.
Packit Service 2781ba
Packit Service 2781ba
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
Packit Service 2781ba
# AM_INIT_AUTOMAKE([OPTIONS])
Packit Service 2781ba
# -----------------------------------------------
Packit Service 2781ba
# The call with PACKAGE and VERSION arguments is the old style
Packit Service 2781ba
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
Packit Service 2781ba
# and VERSION should now be passed to AC_INIT and removed from
Packit Service 2781ba
# the call to AM_INIT_AUTOMAKE.
Packit Service 2781ba
# We support both call styles for the transition.  After
Packit Service 2781ba
# the next Automake release, Autoconf can make the AC_INIT
Packit Service 2781ba
# arguments mandatory, and then we can depend on a new Autoconf
Packit Service 2781ba
# release and drop the old call support.
Packit Service 2781ba
AC_DEFUN([AM_INIT_AUTOMAKE],
Packit Service 2781ba
[AC_PREREQ([2.62])dnl
Packit Service 2781ba
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
Packit Service 2781ba
dnl the ones we care about.
Packit Service 2781ba
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
Packit Service 2781ba
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
Packit Service 2781ba
AC_REQUIRE([AC_PROG_INSTALL])dnl
Packit Service 2781ba
if test "`cd $srcdir && pwd`" != "`pwd`"; then
Packit Service 2781ba
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Packit Service 2781ba
  # is not polluted with repeated "-I."
Packit Service 2781ba
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
Packit Service 2781ba
  # test to see if srcdir already configured
Packit Service 2781ba
  if test -f $srcdir/config.status; then
Packit Service 2781ba
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
Packit Service 2781ba
  fi
Packit Service 2781ba
fi
Packit Service 2781ba
Packit Service 2781ba
# test whether we have cygpath
Packit Service 2781ba
if test -z "$CYGPATH_W"; then
Packit Service 2781ba
  if (cygpath --version) >/dev/null 2>/dev/null; then
Packit Service 2781ba
    CYGPATH_W='cygpath -w'
Packit Service 2781ba
  else
Packit Service 2781ba
    CYGPATH_W=echo
Packit Service 2781ba
  fi
Packit Service 2781ba
fi
Packit Service 2781ba
AC_SUBST([CYGPATH_W])
Packit Service 2781ba
Packit Service 2781ba
# Define the identity of the package.
Packit Service 2781ba
dnl Distinguish between old-style and new-style calls.
Packit Service 2781ba
m4_ifval([$2],
Packit Service 2781ba
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
Packit Service 2781ba
 AC_SUBST([PACKAGE], [$1])dnl
Packit Service 2781ba
 AC_SUBST([VERSION], [$2])],
Packit Service 2781ba
[_AM_SET_OPTIONS([$1])dnl
Packit Service 2781ba
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
Packit Service 2781ba
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
Packit Service 2781ba
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
Packit Service 2781ba
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
Packit Service 2781ba
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
Packit Service 2781ba
Packit Service 2781ba
_AM_IF_OPTION([no-define],,
Packit Service 2781ba
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
Packit Service 2781ba
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
Packit Service 2781ba
Packit Service 2781ba
# Some tools Automake needs.
Packit Service 2781ba
AC_REQUIRE([AM_SANITY_CHECK])dnl
Packit Service 2781ba
AC_REQUIRE([AC_ARG_PROGRAM])dnl
Packit Service 2781ba
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
Packit Service 2781ba
AM_MISSING_PROG(AUTOCONF, autoconf)
Packit Service 2781ba
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
Packit Service 2781ba
AM_MISSING_PROG(AUTOHEADER, autoheader)
Packit Service 2781ba
AM_MISSING_PROG(MAKEINFO, makeinfo)
Packit Service 2781ba
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Packit Service 2781ba
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
Packit Service 2781ba
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
Packit Service 2781ba
# We need awk for the "check" target.  The system "awk" is bad on
Packit Service 2781ba
# some platforms.
Packit Service 2781ba
AC_REQUIRE([AC_PROG_AWK])dnl
Packit Service 2781ba
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
Packit Service 2781ba
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Packit Service 2781ba
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
Packit Service 2781ba
	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
Packit Service 2781ba
			     [_AM_PROG_TAR([v7])])])
Packit Service 2781ba
_AM_IF_OPTION([no-dependencies],,
Packit Service 2781ba
[AC_PROVIDE_IFELSE([AC_PROG_CC],
Packit Service 2781ba
		  [_AM_DEPENDENCIES(CC)],
Packit Service 2781ba
		  [define([AC_PROG_CC],
Packit Service 2781ba
			  defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
Packit Service 2781ba
AC_PROVIDE_IFELSE([AC_PROG_CXX],
Packit Service 2781ba
		  [_AM_DEPENDENCIES(CXX)],
Packit Service 2781ba
		  [define([AC_PROG_CXX],
Packit Service 2781ba
			  defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
Packit Service 2781ba
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
Packit Service 2781ba
		  [_AM_DEPENDENCIES(OBJC)],
Packit Service 2781ba
		  [define([AC_PROG_OBJC],
Packit Service 2781ba
			  defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
Packit Service 2781ba
])
Packit Service 2781ba
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
Packit Service 2781ba
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
Packit Service 2781ba
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
Packit Service 2781ba
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
Packit Service 2781ba
AC_CONFIG_COMMANDS_PRE(dnl
Packit Service 2781ba
[m4_provide_if([_AM_COMPILER_EXEEXT],
Packit Service 2781ba
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
Packit Service 2781ba
])
Packit Service 2781ba
Packit Service 2781ba
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
Packit Service 2781ba
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
Packit Service 2781ba
dnl mangled by Autoconf and run in a shell conditional statement.
Packit Service 2781ba
m4_define([_AC_COMPILER_EXEEXT],
Packit Service 2781ba
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
# When config.status generates a header, we must update the stamp-h file.
Packit Service 2781ba
# This file resides in the same directory as the config header
Packit Service 2781ba
# that is generated.  The stamp files are numbered to have different names.
Packit Service 2781ba
Packit Service 2781ba
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
Packit Service 2781ba
# loop where config.status creates the headers, so we can generate
Packit Service 2781ba
# our stamp files there.
Packit Service 2781ba
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
Packit Service 2781ba
[# Compute $1's index in $config_headers.
Packit Service 2781ba
_am_arg=$1
Packit Service 2781ba
_am_stamp_count=1
Packit Service 2781ba
for _am_header in $config_headers :; do
Packit Service 2781ba
  case $_am_header in
Packit Service 2781ba
    $_am_arg | $_am_arg:* )
Packit Service 2781ba
      break ;;
Packit Service 2781ba
    * )
Packit Service 2781ba
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Packit Service 2781ba
  esac
Packit Service 2781ba
done
Packit Service 2781ba
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
Packit Service 2781ba
# Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 1
Packit Service 2781ba
Packit Service 2781ba
# AM_PROG_INSTALL_SH
Packit Service 2781ba
# ------------------
Packit Service 2781ba
# Define $install_sh.
Packit Service 2781ba
AC_DEFUN([AM_PROG_INSTALL_SH],
Packit Service 2781ba
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit Service 2781ba
if test x"${install_sh}" != xset; then
Packit Service 2781ba
  case $am_aux_dir in
Packit Service 2781ba
  *\ * | *\	*)
Packit Service 2781ba
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Packit Service 2781ba
  *)
Packit Service 2781ba
    install_sh="\${SHELL} $am_aux_dir/install-sh"
Packit Service 2781ba
  esac
Packit Service 2781ba
fi
Packit Service 2781ba
AC_SUBST(install_sh)])
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 2
Packit Service 2781ba
Packit Service 2781ba
# Check whether the underlying file-system supports filenames
Packit Service 2781ba
# with a leading dot.  For instance MS-DOS doesn't.
Packit Service 2781ba
AC_DEFUN([AM_SET_LEADING_DOT],
Packit Service 2781ba
[rm -rf .tst 2>/dev/null
Packit Service 2781ba
mkdir .tst 2>/dev/null
Packit Service 2781ba
if test -d .tst; then
Packit Service 2781ba
  am__leading_dot=.
Packit Service 2781ba
else
Packit Service 2781ba
  am__leading_dot=_
Packit Service 2781ba
fi
Packit Service 2781ba
rmdir .tst 2>/dev/null
Packit Service 2781ba
AC_SUBST([am__leading_dot])])
Packit Service 2781ba
Packit Service 2781ba
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
Packit Service 2781ba
# From Jim Meyering
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
Packit Service 2781ba
# 2011 Free Software Foundation, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 5
Packit Service 2781ba
Packit Service 2781ba
# AM_MAINTAINER_MODE([DEFAULT-MODE])
Packit Service 2781ba
# ----------------------------------
Packit Service 2781ba
# Control maintainer-specific portions of Makefiles.
Packit Service 2781ba
# Default is to disable them, unless `enable' is passed literally.
Packit Service 2781ba
# For symmetry, `disable' may be passed as well.  Anyway, the user
Packit Service 2781ba
# can override the default with the --enable/--disable switch.
Packit Service 2781ba
AC_DEFUN([AM_MAINTAINER_MODE],
Packit Service 2781ba
[m4_case(m4_default([$1], [disable]),
Packit Service 2781ba
       [enable], [m4_define([am_maintainer_other], [disable])],
Packit Service 2781ba
       [disable], [m4_define([am_maintainer_other], [enable])],
Packit Service 2781ba
       [m4_define([am_maintainer_other], [enable])
Packit Service 2781ba
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
Packit Service 2781ba
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
Packit Service 2781ba
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
Packit Service 2781ba
  AC_ARG_ENABLE([maintainer-mode],
Packit Service 2781ba
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
Packit Service 2781ba
			  (and sometimes confusing) to the casual installer],
Packit Service 2781ba
      [USE_MAINTAINER_MODE=$enableval],
Packit Service 2781ba
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
Packit Service 2781ba
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
Packit Service 2781ba
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
Packit Service 2781ba
  MAINT=$MAINTAINER_MODE_TRUE
Packit Service 2781ba
  AC_SUBST([MAINT])dnl
Packit Service 2781ba
]
Packit Service 2781ba
)
Packit Service 2781ba
Packit Service 2781ba
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
Packit Service 2781ba
Packit Service 2781ba
# Check to see how 'make' treats includes.	            -*- Autoconf -*-
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 4
Packit Service 2781ba
Packit Service 2781ba
# AM_MAKE_INCLUDE()
Packit Service 2781ba
# -----------------
Packit Service 2781ba
# Check to see how make treats includes.
Packit Service 2781ba
AC_DEFUN([AM_MAKE_INCLUDE],
Packit Service 2781ba
[am_make=${MAKE-make}
Packit Service 2781ba
cat > confinc << 'END'
Packit Service 2781ba
am__doit:
Packit Service 2781ba
	@echo this is the am__doit target
Packit Service 2781ba
.PHONY: am__doit
Packit Service 2781ba
END
Packit Service 2781ba
# If we don't find an include directive, just comment out the code.
Packit Service 2781ba
AC_MSG_CHECKING([for style of include used by $am_make])
Packit Service 2781ba
am__include="#"
Packit Service 2781ba
am__quote=
Packit Service 2781ba
_am_result=none
Packit Service 2781ba
# First try GNU make style include.
Packit Service 2781ba
echo "include confinc" > confmf
Packit Service 2781ba
# Ignore all kinds of additional output from `make'.
Packit Service 2781ba
case `$am_make -s -f confmf 2> /dev/null` in #(
Packit Service 2781ba
*the\ am__doit\ target*)
Packit Service 2781ba
  am__include=include
Packit Service 2781ba
  am__quote=
Packit Service 2781ba
  _am_result=GNU
Packit Service 2781ba
  ;;
Packit Service 2781ba
esac
Packit Service 2781ba
# Now try BSD make style include.
Packit Service 2781ba
if test "$am__include" = "#"; then
Packit Service 2781ba
   echo '.include "confinc"' > confmf
Packit Service 2781ba
   case `$am_make -s -f confmf 2> /dev/null` in #(
Packit Service 2781ba
   *the\ am__doit\ target*)
Packit Service 2781ba
     am__include=.include
Packit Service 2781ba
     am__quote="\""
Packit Service 2781ba
     _am_result=BSD
Packit Service 2781ba
     ;;
Packit Service 2781ba
   esac
Packit Service 2781ba
fi
Packit Service 2781ba
AC_SUBST([am__include])
Packit Service 2781ba
AC_SUBST([am__quote])
Packit Service 2781ba
AC_MSG_RESULT([$_am_result])
Packit Service 2781ba
rm -f confinc confmf
Packit Service 2781ba
])
Packit Service 2781ba
Packit Service 2781ba
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
Packit Service 2781ba
# Free Software Foundation, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 6
Packit Service 2781ba
Packit Service 2781ba
# AM_MISSING_PROG(NAME, PROGRAM)
Packit Service 2781ba
# ------------------------------
Packit Service 2781ba
AC_DEFUN([AM_MISSING_PROG],
Packit Service 2781ba
[AC_REQUIRE([AM_MISSING_HAS_RUN])
Packit Service 2781ba
$1=${$1-"${am_missing_run}$2"}
Packit Service 2781ba
AC_SUBST($1)])
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
# AM_MISSING_HAS_RUN
Packit Service 2781ba
# ------------------
Packit Service 2781ba
# Define MISSING if not defined so far and test if it supports --run.
Packit Service 2781ba
# If it does, set am_missing_run to use it, otherwise, to nothing.
Packit Service 2781ba
AC_DEFUN([AM_MISSING_HAS_RUN],
Packit Service 2781ba
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit Service 2781ba
AC_REQUIRE_AUX_FILE([missing])dnl
Packit Service 2781ba
if test x"${MISSING+set}" != xset; then
Packit Service 2781ba
  case $am_aux_dir in
Packit Service 2781ba
  *\ * | *\	*)
Packit Service 2781ba
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Packit Service 2781ba
  *)
Packit Service 2781ba
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
Packit Service 2781ba
  esac
Packit Service 2781ba
fi
Packit Service 2781ba
# Use eval to expand $SHELL
Packit Service 2781ba
if eval "$MISSING --run true"; then
Packit Service 2781ba
  am_missing_run="$MISSING --run "
Packit Service 2781ba
else
Packit Service 2781ba
  am_missing_run=
Packit Service 2781ba
  AC_MSG_WARN([`missing' script is too old or missing])
Packit Service 2781ba
fi
Packit Service 2781ba
])
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
Packit Service 2781ba
# Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 1
Packit Service 2781ba
Packit Service 2781ba
# AM_PROG_MKDIR_P
Packit Service 2781ba
# ---------------
Packit Service 2781ba
# Check for `mkdir -p'.
Packit Service 2781ba
AC_DEFUN([AM_PROG_MKDIR_P],
Packit Service 2781ba
[AC_PREREQ([2.60])dnl
Packit Service 2781ba
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
Packit Service 2781ba
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
Packit Service 2781ba
dnl while keeping a definition of mkdir_p for backward compatibility.
Packit Service 2781ba
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
Packit Service 2781ba
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
Packit Service 2781ba
dnl Makefile.ins that do not define MKDIR_P, so we do our own
Packit Service 2781ba
dnl adjustment using top_builddir (which is defined more often than
Packit Service 2781ba
dnl MKDIR_P).
Packit Service 2781ba
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
Packit Service 2781ba
case $mkdir_p in
Packit Service 2781ba
  [[\\/$]]* | ?:[[\\/]]*) ;;
Packit Service 2781ba
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
Packit Service 2781ba
esac
Packit Service 2781ba
])
Packit Service 2781ba
Packit Service 2781ba
# Helper functions for option handling.                     -*- Autoconf -*-
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
Packit Service 2781ba
# Foundation, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 5
Packit Service 2781ba
Packit Service 2781ba
# _AM_MANGLE_OPTION(NAME)
Packit Service 2781ba
# -----------------------
Packit Service 2781ba
AC_DEFUN([_AM_MANGLE_OPTION],
Packit Service 2781ba
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
Packit Service 2781ba
Packit Service 2781ba
# _AM_SET_OPTION(NAME)
Packit Service 2781ba
# --------------------
Packit Service 2781ba
# Set option NAME.  Presently that only means defining a flag for this option.
Packit Service 2781ba
AC_DEFUN([_AM_SET_OPTION],
Packit Service 2781ba
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
Packit Service 2781ba
Packit Service 2781ba
# _AM_SET_OPTIONS(OPTIONS)
Packit Service 2781ba
# ------------------------
Packit Service 2781ba
# OPTIONS is a space-separated list of Automake options.
Packit Service 2781ba
AC_DEFUN([_AM_SET_OPTIONS],
Packit Service 2781ba
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
Packit Service 2781ba
Packit Service 2781ba
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
Packit Service 2781ba
# -------------------------------------------
Packit Service 2781ba
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
Packit Service 2781ba
AC_DEFUN([_AM_IF_OPTION],
Packit Service 2781ba
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009,
Packit Service 2781ba
# 2011 Free Software Foundation, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 2
Packit Service 2781ba
Packit Service 2781ba
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
Packit Service 2781ba
# ---------------------------------------------------------------------------
Packit Service 2781ba
# Adds support for distributing Python modules and packages.  To
Packit Service 2781ba
# install modules, copy them to $(pythondir), using the python_PYTHON
Packit Service 2781ba
# automake variable.  To install a package with the same name as the
Packit Service 2781ba
# automake package, install to $(pkgpythondir), or use the
Packit Service 2781ba
# pkgpython_PYTHON automake variable.
Packit Service 2781ba
#
Packit Service 2781ba
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
Packit Service 2781ba
# locations to install python extension modules (shared libraries).
Packit Service 2781ba
# Another macro is required to find the appropriate flags to compile
Packit Service 2781ba
# extension modules.
Packit Service 2781ba
#
Packit Service 2781ba
# If your package is configured with a different prefix to python,
Packit Service 2781ba
# users will have to add the install directory to the PYTHONPATH
Packit Service 2781ba
# environment variable, or create a .pth file (see the python
Packit Service 2781ba
# documentation for details).
Packit Service 2781ba
#
Packit Service 2781ba
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
Packit Service 2781ba
# cause an error if the version of python installed on the system
Packit Service 2781ba
# doesn't meet the requirement.  MINIMUM-VERSION should consist of
Packit Service 2781ba
# numbers and dots only.
Packit Service 2781ba
AC_DEFUN([AM_PATH_PYTHON],
Packit Service 2781ba
 [
Packit Service 2781ba
  dnl Find a Python interpreter.  Python versions prior to 2.0 are not
Packit Service 2781ba
  dnl supported. (2.0 was released on October 16, 2000).
Packit Service 2781ba
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
Packit Service 2781ba
[python python2 python3 python3.2 python3.1 python3.0 python2.7 dnl
Packit Service 2781ba
 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
Packit Service 2781ba
Packit Service 2781ba
  AC_ARG_VAR([PYTHON], [the Python interpreter])
Packit Service 2781ba
Packit Service 2781ba
  m4_if([$1],[],[
Packit Service 2781ba
    dnl No version check is needed.
Packit Service 2781ba
    # Find any Python interpreter.
Packit Service 2781ba
    if test -z "$PYTHON"; then
Packit Service 2781ba
      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
Packit Service 2781ba
    fi
Packit Service 2781ba
    am_display_PYTHON=python
Packit Service 2781ba
  ], [
Packit Service 2781ba
    dnl A version check is needed.
Packit Service 2781ba
    if test -n "$PYTHON"; then
Packit Service 2781ba
      # If the user set $PYTHON, use it and don't search something else.
Packit Service 2781ba
      AC_MSG_CHECKING([whether $PYTHON version >= $1])
Packit Service 2781ba
      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
Packit Service 2781ba
			      [AC_MSG_RESULT(yes)],
Packit Service 2781ba
			      [AC_MSG_ERROR(too old)])
Packit Service 2781ba
      am_display_PYTHON=$PYTHON
Packit Service 2781ba
    else
Packit Service 2781ba
      # Otherwise, try each interpreter until we find one that satisfies
Packit Service 2781ba
      # VERSION.
Packit Service 2781ba
      AC_CACHE_CHECK([for a Python interpreter with version >= $1],
Packit Service 2781ba
	[am_cv_pathless_PYTHON],[
Packit Service 2781ba
	for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
Packit Service 2781ba
	  test "$am_cv_pathless_PYTHON" = none && break
Packit Service 2781ba
	  AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
Packit Service 2781ba
	done])
Packit Service 2781ba
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
Packit Service 2781ba
      if test "$am_cv_pathless_PYTHON" = none; then
Packit Service 2781ba
	PYTHON=:
Packit Service 2781ba
      else
Packit Service 2781ba
        AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
Packit Service 2781ba
      fi
Packit Service 2781ba
      am_display_PYTHON=$am_cv_pathless_PYTHON
Packit Service 2781ba
    fi
Packit Service 2781ba
  ])
Packit Service 2781ba
Packit Service 2781ba
  if test "$PYTHON" = :; then
Packit Service 2781ba
  dnl Run any user-specified action, or abort.
Packit Service 2781ba
    m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
Packit Service 2781ba
  else
Packit Service 2781ba
Packit Service 2781ba
  dnl Query Python for its version number.  Getting [:3] seems to be
Packit Service 2781ba
  dnl the best way to do this; it's what "site.py" does in the standard
Packit Service 2781ba
  dnl library.
Packit Service 2781ba
Packit Service 2781ba
  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
Packit Service 2781ba
    [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
Packit Service 2781ba
  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
Packit Service 2781ba
Packit Service 2781ba
  dnl Use the values of $prefix and $exec_prefix for the corresponding
Packit Service 2781ba
  dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX.  These are made
Packit Service 2781ba
  dnl distinct variables so they can be overridden if need be.  However,
Packit Service 2781ba
  dnl general consensus is that you shouldn't need this ability.
Packit Service 2781ba
Packit Service 2781ba
  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
Packit Service 2781ba
  AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
Packit Service 2781ba
Packit Service 2781ba
  dnl At times (like when building shared libraries) you may want
Packit Service 2781ba
  dnl to know which OS platform Python thinks this is.
Packit Service 2781ba
Packit Service 2781ba
  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
Packit Service 2781ba
    [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
Packit Service 2781ba
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
  dnl Set up 4 directories:
Packit Service 2781ba
Packit Service 2781ba
  dnl pythondir -- where to install python scripts.  This is the
Packit Service 2781ba
  dnl   site-packages directory, not the python standard library
Packit Service 2781ba
  dnl   directory like in previous automake betas.  This behavior
Packit Service 2781ba
  dnl   is more consistent with lispdir.m4 for example.
Packit Service 2781ba
  dnl Query distutils for this directory.
Packit Service 2781ba
  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
Packit Service 2781ba
    [am_cv_python_pythondir],
Packit Service 2781ba
    [if test "x$prefix" = xNONE
Packit Service 2781ba
     then
Packit Service 2781ba
       am_py_prefix=$ac_default_prefix
Packit Service 2781ba
     else
Packit Service 2781ba
       am_py_prefix=$prefix
Packit Service 2781ba
     fi
Packit Service 2781ba
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
Packit Service 2781ba
     case $am_cv_python_pythondir in
Packit Service 2781ba
     $am_py_prefix*)
Packit Service 2781ba
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
Packit Service 2781ba
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
Packit Service 2781ba
       ;;
Packit Service 2781ba
     *)
Packit Service 2781ba
       case $am_py_prefix in
Packit Service 2781ba
         /usr|/System*) ;;
Packit Service 2781ba
         *)
Packit Service 2781ba
	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
Packit Service 2781ba
	  ;;
Packit Service 2781ba
       esac
Packit Service 2781ba
       ;;
Packit Service 2781ba
     esac
Packit Service 2781ba
    ])
Packit Service 2781ba
  AC_SUBST([pythondir], [$am_cv_python_pythondir])
Packit Service 2781ba
Packit Service 2781ba
  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
Packit Service 2781ba
  dnl   PYTHON_SITE_PACKAGE in previous betas, but this naming is
Packit Service 2781ba
  dnl   more consistent with the rest of automake.
Packit Service 2781ba
Packit Service 2781ba
  AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
Packit Service 2781ba
Packit Service 2781ba
  dnl pyexecdir -- directory for installing python extension modules
Packit Service 2781ba
  dnl   (shared libraries)
Packit Service 2781ba
  dnl Query distutils for this directory.
Packit Service 2781ba
  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
Packit Service 2781ba
    [am_cv_python_pyexecdir],
Packit Service 2781ba
    [if test "x$exec_prefix" = xNONE
Packit Service 2781ba
     then
Packit Service 2781ba
       am_py_exec_prefix=$am_py_prefix
Packit Service 2781ba
     else
Packit Service 2781ba
       am_py_exec_prefix=$exec_prefix
Packit Service 2781ba
     fi
Packit Service 2781ba
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
Packit Service 2781ba
     case $am_cv_python_pyexecdir in
Packit Service 2781ba
     $am_py_exec_prefix*)
Packit Service 2781ba
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
Packit Service 2781ba
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
Packit Service 2781ba
       ;;
Packit Service 2781ba
     *)
Packit Service 2781ba
       case $am_py_exec_prefix in
Packit Service 2781ba
         /usr|/System*) ;;
Packit Service 2781ba
         *)
Packit Service 2781ba
	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
Packit Service 2781ba
	   ;;
Packit Service 2781ba
       esac
Packit Service 2781ba
       ;;
Packit Service 2781ba
     esac
Packit Service 2781ba
    ])
Packit Service 2781ba
  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
Packit Service 2781ba
Packit Service 2781ba
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
Packit Service 2781ba
Packit Service 2781ba
  AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
Packit Service 2781ba
Packit Service 2781ba
  dnl Run any user-specified action.
Packit Service 2781ba
  $2
Packit Service 2781ba
  fi
Packit Service 2781ba
Packit Service 2781ba
])
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
Packit Service 2781ba
# ---------------------------------------------------------------------------
Packit Service 2781ba
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
Packit Service 2781ba
# Run ACTION-IF-FALSE otherwise.
Packit Service 2781ba
# This test uses sys.hexversion instead of the string equivalent (first
Packit Service 2781ba
# word of sys.version), in order to cope with versions such as 2.2c1.
Packit Service 2781ba
# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
Packit Service 2781ba
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
Packit Service 2781ba
 [prog="import sys
Packit Service 2781ba
# split strings by '.' and convert to numeric.  Append some zeros
Packit Service 2781ba
# because we need at least 4 digits for the hex conversion.
Packit Service 2781ba
# map returns an iterator in Python 3.0 and a list in 2.x
Packit Service 2781ba
minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
Packit Service 2781ba
minverhex = 0
Packit Service 2781ba
# xrange is not present in Python 3.0 and range returns an iterator
Packit Service 2781ba
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
Packit Service 2781ba
sys.exit(sys.hexversion < minverhex)"
Packit Service 2781ba
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 1
Packit Service 2781ba
Packit Service 2781ba
# AM_RUN_LOG(COMMAND)
Packit Service 2781ba
# -------------------
Packit Service 2781ba
# Run COMMAND, save the exit status in ac_status, and log it.
Packit Service 2781ba
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
Packit Service 2781ba
AC_DEFUN([AM_RUN_LOG],
Packit Service 2781ba
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
Packit Service 2781ba
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
Packit Service 2781ba
   ac_status=$?
Packit Service 2781ba
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
Packit Service 2781ba
   (exit $ac_status); }])
Packit Service 2781ba
Packit Service 2781ba
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
Packit Service 2781ba
# Free Software Foundation, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 5
Packit Service 2781ba
Packit Service 2781ba
# AM_SANITY_CHECK
Packit Service 2781ba
# ---------------
Packit Service 2781ba
AC_DEFUN([AM_SANITY_CHECK],
Packit Service 2781ba
[AC_MSG_CHECKING([whether build environment is sane])
Packit Service 2781ba
# Just in case
Packit Service 2781ba
sleep 1
Packit Service 2781ba
echo timestamp > conftest.file
Packit Service 2781ba
# Reject unsafe characters in $srcdir or the absolute working directory
Packit Service 2781ba
# name.  Accept space and tab only in the latter.
Packit Service 2781ba
am_lf='
Packit Service 2781ba
'
Packit Service 2781ba
case `pwd` in
Packit Service 2781ba
  *[[\\\"\#\$\&\'\`$am_lf]]*)
Packit Service 2781ba
    AC_MSG_ERROR([unsafe absolute working directory name]);;
Packit Service 2781ba
esac
Packit Service 2781ba
case $srcdir in
Packit Service 2781ba
  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
Packit Service 2781ba
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
Packit Service 2781ba
esac
Packit Service 2781ba
Packit Service 2781ba
# Do `set' in a subshell so we don't clobber the current shell's
Packit Service 2781ba
# arguments.  Must try -L first in case configure is actually a
Packit Service 2781ba
# symlink; some systems play weird games with the mod time of symlinks
Packit Service 2781ba
# (eg FreeBSD returns the mod time of the symlink's containing
Packit Service 2781ba
# directory).
Packit Service 2781ba
if (
Packit Service 2781ba
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Packit Service 2781ba
   if test "$[*]" = "X"; then
Packit Service 2781ba
      # -L didn't work.
Packit Service 2781ba
      set X `ls -t "$srcdir/configure" conftest.file`
Packit Service 2781ba
   fi
Packit Service 2781ba
   rm -f conftest.file
Packit Service 2781ba
   if test "$[*]" != "X $srcdir/configure conftest.file" \
Packit Service 2781ba
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
Packit Service 2781ba
Packit Service 2781ba
      # If neither matched, then we have a broken ls.  This can happen
Packit Service 2781ba
      # if, for instance, CONFIG_SHELL is bash and it inherits a
Packit Service 2781ba
      # broken ls alias from the environment.  This has actually
Packit Service 2781ba
      # happened.  Such a system could not be considered "sane".
Packit Service 2781ba
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
Packit Service 2781ba
alias in your environment])
Packit Service 2781ba
   fi
Packit Service 2781ba
Packit Service 2781ba
   test "$[2]" = conftest.file
Packit Service 2781ba
   )
Packit Service 2781ba
then
Packit Service 2781ba
   # Ok.
Packit Service 2781ba
   :
Packit Service 2781ba
else
Packit Service 2781ba
   AC_MSG_ERROR([newly created file is older than distributed files!
Packit Service 2781ba
Check your system clock])
Packit Service 2781ba
fi
Packit Service 2781ba
AC_MSG_RESULT(yes)])
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 2009, 2011  Free Software Foundation, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 2
Packit Service 2781ba
Packit Service 2781ba
# AM_SILENT_RULES([DEFAULT])
Packit Service 2781ba
# --------------------------
Packit Service 2781ba
# Enable less verbose build rules; with the default set to DEFAULT
Packit Service 2781ba
# (`yes' being less verbose, `no' or empty being verbose).
Packit Service 2781ba
AC_DEFUN([AM_SILENT_RULES],
Packit Service 2781ba
[AC_ARG_ENABLE([silent-rules],
Packit Service 2781ba
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
Packit Service 2781ba
  --disable-silent-rules         verbose build output (undo: `make V=0')])
Packit Service 2781ba
case $enable_silent_rules in
Packit Service 2781ba
yes) AM_DEFAULT_VERBOSITY=0;;
Packit Service 2781ba
no)  AM_DEFAULT_VERBOSITY=1;;
Packit Service 2781ba
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
Packit Service 2781ba
esac
Packit Service 2781ba
dnl
Packit Service 2781ba
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
Packit Service 2781ba
dnl do not support nested variable expansions.
Packit Service 2781ba
dnl See automake bug#9928 and bug#10237.
Packit Service 2781ba
am_make=${MAKE-make}
Packit Service 2781ba
AC_CACHE_CHECK([whether $am_make supports nested variables],
Packit Service 2781ba
   [am_cv_make_support_nested_variables],
Packit Service 2781ba
   [if AS_ECHO([['TRUE=$(BAR$(V))
Packit Service 2781ba
BAR0=false
Packit Service 2781ba
BAR1=true
Packit Service 2781ba
V=1
Packit Service 2781ba
am__doit:
Packit Service 2781ba
	@$(TRUE)
Packit Service 2781ba
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
Packit Service 2781ba
  am_cv_make_support_nested_variables=yes
Packit Service 2781ba
else
Packit Service 2781ba
  am_cv_make_support_nested_variables=no
Packit Service 2781ba
fi])
Packit Service 2781ba
if test $am_cv_make_support_nested_variables = yes; then
Packit Service 2781ba
  dnl Using `$V' instead of `$(V)' breaks IRIX make.
Packit Service 2781ba
  AM_V='$(V)'
Packit Service 2781ba
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
Packit Service 2781ba
else
Packit Service 2781ba
  AM_V=$AM_DEFAULT_VERBOSITY
Packit Service 2781ba
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
Packit Service 2781ba
fi
Packit Service 2781ba
AC_SUBST([AM_V])dnl
Packit Service 2781ba
AM_SUBST_NOTMAKE([AM_V])dnl
Packit Service 2781ba
AC_SUBST([AM_DEFAULT_V])dnl
Packit Service 2781ba
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
Packit Service 2781ba
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
Packit Service 2781ba
AM_BACKSLASH='\'
Packit Service 2781ba
AC_SUBST([AM_BACKSLASH])dnl
Packit Service 2781ba
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
Packit Service 2781ba
])
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 1
Packit Service 2781ba
Packit Service 2781ba
# AM_PROG_INSTALL_STRIP
Packit Service 2781ba
# ---------------------
Packit Service 2781ba
# One issue with vendor `install' (even GNU) is that you can't
Packit Service 2781ba
# specify the program used to strip binaries.  This is especially
Packit Service 2781ba
# annoying in cross-compiling environments, where the build's strip
Packit Service 2781ba
# is unlikely to handle the host's binaries.
Packit Service 2781ba
# Fortunately install-sh will honor a STRIPPROG variable, so we
Packit Service 2781ba
# always use install-sh in `make install-strip', and initialize
Packit Service 2781ba
# STRIPPROG with the value of the STRIP variable (set by the user).
Packit Service 2781ba
AC_DEFUN([AM_PROG_INSTALL_STRIP],
Packit Service 2781ba
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Packit Service 2781ba
# Installed binaries are usually stripped using `strip' when the user
Packit Service 2781ba
# run `make install-strip'.  However `strip' might not be the right
Packit Service 2781ba
# tool to use in cross-compilation environments, therefore Automake
Packit Service 2781ba
# will honor the `STRIP' environment variable to overrule this program.
Packit Service 2781ba
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
Packit Service 2781ba
if test "$cross_compiling" != no; then
Packit Service 2781ba
  AC_CHECK_TOOL([STRIP], [strip], :)
Packit Service 2781ba
fi
Packit Service 2781ba
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Packit Service 2781ba
AC_SUBST([INSTALL_STRIP_PROGRAM])])
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 3
Packit Service 2781ba
Packit Service 2781ba
# _AM_SUBST_NOTMAKE(VARIABLE)
Packit Service 2781ba
# ---------------------------
Packit Service 2781ba
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
Packit Service 2781ba
# This macro is traced by Automake.
Packit Service 2781ba
AC_DEFUN([_AM_SUBST_NOTMAKE])
Packit Service 2781ba
Packit Service 2781ba
# AM_SUBST_NOTMAKE(VARIABLE)
Packit Service 2781ba
# --------------------------
Packit Service 2781ba
# Public sister of _AM_SUBST_NOTMAKE.
Packit Service 2781ba
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
Packit Service 2781ba
Packit Service 2781ba
# Check how to create a tarball.                            -*- Autoconf -*-
Packit Service 2781ba
Packit Service 2781ba
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
Packit Service 2781ba
#
Packit Service 2781ba
# This file is free software; the Free Software Foundation
Packit Service 2781ba
# gives unlimited permission to copy and/or distribute it,
Packit Service 2781ba
# with or without modifications, as long as this notice is preserved.
Packit Service 2781ba
Packit Service 2781ba
# serial 2
Packit Service 2781ba
Packit Service 2781ba
# _AM_PROG_TAR(FORMAT)
Packit Service 2781ba
# --------------------
Packit Service 2781ba
# Check how to create a tarball in format FORMAT.
Packit Service 2781ba
# FORMAT should be one of `v7', `ustar', or `pax'.
Packit Service 2781ba
#
Packit Service 2781ba
# Substitute a variable $(am__tar) that is a command
Packit Service 2781ba
# writing to stdout a FORMAT-tarball containing the directory
Packit Service 2781ba
# $tardir.
Packit Service 2781ba
#     tardir=directory && $(am__tar) > result.tar
Packit Service 2781ba
#
Packit Service 2781ba
# Substitute a variable $(am__untar) that extract such
Packit Service 2781ba
# a tarball read from stdin.
Packit Service 2781ba
#     $(am__untar) < result.tar
Packit Service 2781ba
AC_DEFUN([_AM_PROG_TAR],
Packit Service 2781ba
[# Always define AMTAR for backward compatibility.  Yes, it's still used
Packit Service 2781ba
# in the wild :-(  We should find a proper way to deprecate it ...
Packit Service 2781ba
AC_SUBST([AMTAR], ['$${TAR-tar}'])
Packit Service 2781ba
m4_if([$1], [v7],
Packit Service 2781ba
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
Packit Service 2781ba
     [m4_case([$1], [ustar],, [pax],,
Packit Service 2781ba
              [m4_fatal([Unknown tar format])])
Packit Service 2781ba
AC_MSG_CHECKING([how to create a $1 tar archive])
Packit Service 2781ba
# Loop over all known methods to create a tar archive until one works.
Packit Service 2781ba
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
Packit Service 2781ba
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
Packit Service 2781ba
# Do not fold the above two line into one, because Tru64 sh and
Packit Service 2781ba
# Solaris sh will not grok spaces in the rhs of `-'.
Packit Service 2781ba
for _am_tool in $_am_tools
Packit Service 2781ba
do
Packit Service 2781ba
  case $_am_tool in
Packit Service 2781ba
  gnutar)
Packit Service 2781ba
    for _am_tar in tar gnutar gtar;
Packit Service 2781ba
    do
Packit Service 2781ba
      AM_RUN_LOG([$_am_tar --version]) && break
Packit Service 2781ba
    done
Packit Service 2781ba
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
Packit Service 2781ba
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
Packit Service 2781ba
    am__untar="$_am_tar -xf -"
Packit Service 2781ba
    ;;
Packit Service 2781ba
  plaintar)
Packit Service 2781ba
    # Must skip GNU tar: if it does not support --format= it doesn't create
Packit Service 2781ba
    # ustar tarball either.
Packit Service 2781ba
    (tar --version) >/dev/null 2>&1 && continue
Packit Service 2781ba
    am__tar='tar chf - "$$tardir"'
Packit Service 2781ba
    am__tar_='tar chf - "$tardir"'
Packit Service 2781ba
    am__untar='tar xf -'
Packit Service 2781ba
    ;;
Packit Service 2781ba
  pax)
Packit Service 2781ba
    am__tar='pax -L -x $1 -w "$$tardir"'
Packit Service 2781ba
    am__tar_='pax -L -x $1 -w "$tardir"'
Packit Service 2781ba
    am__untar='pax -r'
Packit Service 2781ba
    ;;
Packit Service 2781ba
  cpio)
Packit Service 2781ba
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
Packit Service 2781ba
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
Packit Service 2781ba
    am__untar='cpio -i -H $1 -d'
Packit Service 2781ba
    ;;
Packit Service 2781ba
  none)
Packit Service 2781ba
    am__tar=false
Packit Service 2781ba
    am__tar_=false
Packit Service 2781ba
    am__untar=false
Packit Service 2781ba
    ;;
Packit Service 2781ba
  esac
Packit Service 2781ba
Packit Service 2781ba
  # If the value was cached, stop now.  We just wanted to have am__tar
Packit Service 2781ba
  # and am__untar set.
Packit Service 2781ba
  test -n "${am_cv_prog_tar_$1}" && break
Packit Service 2781ba
Packit Service 2781ba
  # tar/untar a dummy directory, and stop if the command works
Packit Service 2781ba
  rm -rf conftest.dir
Packit Service 2781ba
  mkdir conftest.dir
Packit Service 2781ba
  echo GrepMe > conftest.dir/file
Packit Service 2781ba
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
Packit Service 2781ba
  rm -rf conftest.dir
Packit Service 2781ba
  if test -s conftest.tar; then
Packit Service 2781ba
    AM_RUN_LOG([$am__untar 
Packit Service 2781ba
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
Packit Service 2781ba
  fi
Packit Service 2781ba
done
Packit Service 2781ba
rm -rf conftest.dir
Packit Service 2781ba
Packit Service 2781ba
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
Packit Service 2781ba
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
Packit Service 2781ba
AC_SUBST([am__tar])
Packit Service 2781ba
AC_SUBST([am__untar])
Packit Service 2781ba
]) # _AM_PROG_TAR
Packit Service 2781ba
Packit Service 2781ba
m4_include([m4/as-compiler-flag.m4])
Packit Service 2781ba
m4_include([m4/gegl-variadic-macros.m4])
Packit Service 2781ba
m4_include([m4/gtk-doc.m4])
Packit Service 2781ba
m4_include([m4/introspection.m4])
Packit Service 2781ba
m4_include([m4/libtool.m4])
Packit Service 2781ba
m4_include([m4/ltoptions.m4])
Packit Service 2781ba
m4_include([m4/ltsugar.m4])
Packit Service 2781ba
m4_include([m4/ltversion.m4])
Packit Service 2781ba
m4_include([m4/lt~obsolete.m4])