Blame m4/gnulib-comp.m4

Packit 437b5e
# DO NOT EDIT! GENERATED AUTOMATICALLY!
Packit 437b5e
# Copyright (C) 2002-2015 Free Software Foundation, Inc.
Packit 437b5e
#
Packit 437b5e
# This file is free software; you can redistribute it and/or modify
Packit 437b5e
# it under the terms of the GNU General Public License as published by
Packit 437b5e
# the Free Software Foundation; either version 3 of the License, or
Packit 437b5e
# (at your option) any later version.
Packit 437b5e
#
Packit 437b5e
# This file is distributed in the hope that it will be useful,
Packit 437b5e
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 437b5e
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 437b5e
# GNU General Public License for more details.
Packit 437b5e
#
Packit 437b5e
# You should have received a copy of the GNU General Public License
Packit 437b5e
# along with this file.  If not, see <http://www.gnu.org/licenses/>.
Packit 437b5e
#
Packit 437b5e
# As a special exception to the GNU General Public License,
Packit 437b5e
# this file may be distributed as part of a program that
Packit 437b5e
# contains a configuration script generated by Autoconf, under
Packit 437b5e
# the same distribution terms as the rest of that program.
Packit 437b5e
#
Packit 437b5e
# Generated by gnulib-tool.
Packit 437b5e
#
Packit 437b5e
# This file represents the compiled summary of the specification in
Packit 437b5e
# gnulib-cache.m4. It lists the computed macro invocations that need
Packit 437b5e
# to be invoked from configure.ac.
Packit 437b5e
# In projects that use version control, this file can be treated like
Packit 437b5e
# other built files.
Packit 437b5e
Packit 437b5e
Packit 437b5e
# This macro should be invoked from ./configure.ac, in the section
Packit 437b5e
# "Checks for programs", right after AC_PROG_CC, and certainly before
Packit 437b5e
# any checks for libraries, header files, types and library functions.
Packit 437b5e
AC_DEFUN([gl_EARLY],
Packit 437b5e
[
Packit 437b5e
  m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
Packit 437b5e
  m4_pattern_allow([^gl_ES$])dnl a valid locale name
Packit 437b5e
  m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
Packit 437b5e
  m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
Packit 437b5e
  AC_REQUIRE([gl_PROG_AR_RANLIB])
Packit 437b5e
  # Code from module manywarnings:
Packit 437b5e
  # Code from module warnings:
Packit 437b5e
])
Packit 437b5e
Packit 437b5e
# This macro should be invoked from ./configure.ac, in the section
Packit 437b5e
# "Check for header files, types and library functions".
Packit 437b5e
AC_DEFUN([gl_INIT],
Packit 437b5e
[
Packit 437b5e
  AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
Packit 437b5e
  gl_cond_libtool=true
Packit 437b5e
  gl_m4_base='m4'
Packit 437b5e
  m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
Packit 437b5e
  m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
Packit 437b5e
  m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
Packit 437b5e
  m4_pushdef([gl_LIBSOURCES_LIST], [])
Packit 437b5e
  m4_pushdef([gl_LIBSOURCES_DIR], [])
Packit 437b5e
  gl_COMMON
Packit 437b5e
  gl_source_base='unused'
Packit 437b5e
  # End of code from modules
Packit 437b5e
  m4_ifval(gl_LIBSOURCES_LIST, [
Packit 437b5e
    m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
Packit 437b5e
      for gl_file in ]gl_LIBSOURCES_LIST[ ; do
Packit 437b5e
        if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
Packit 437b5e
          echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
Packit 437b5e
          exit 1
Packit 437b5e
        fi
Packit 437b5e
      done])dnl
Packit 437b5e
      m4_if(m4_sysval, [0], [],
Packit 437b5e
        [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
Packit 437b5e
  ])
Packit 437b5e
  m4_popdef([gl_LIBSOURCES_DIR])
Packit 437b5e
  m4_popdef([gl_LIBSOURCES_LIST])
Packit 437b5e
  m4_popdef([AC_LIBSOURCES])
Packit 437b5e
  m4_popdef([AC_REPLACE_FUNCS])
Packit 437b5e
  m4_popdef([AC_LIBOBJ])
Packit 437b5e
  AC_CONFIG_COMMANDS_PRE([
Packit 437b5e
    gl_libobjs=
Packit 437b5e
    gl_ltlibobjs=
Packit 437b5e
    if test -n "$gl_LIBOBJS"; then
Packit 437b5e
      # Remove the extension.
Packit 437b5e
      sed_drop_objext='s/\.o$//;s/\.obj$//'
Packit 437b5e
      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
Packit 437b5e
        gl_libobjs="$gl_libobjs $i.$ac_objext"
Packit 437b5e
        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
Packit 437b5e
      done
Packit 437b5e
    fi
Packit 437b5e
    AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
Packit 437b5e
    AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
Packit 437b5e
  ])
Packit 437b5e
  gltests_libdeps=
Packit 437b5e
  gltests_ltlibdeps=
Packit 437b5e
  m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
Packit 437b5e
  m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
Packit 437b5e
  m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
Packit 437b5e
  m4_pushdef([gltests_LIBSOURCES_LIST], [])
Packit 437b5e
  m4_pushdef([gltests_LIBSOURCES_DIR], [])
Packit 437b5e
  gl_COMMON
Packit 437b5e
  gl_source_base='tests'
Packit 437b5e
changequote(,)dnl
Packit 437b5e
  gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
Packit 437b5e
changequote([, ])dnl
Packit 437b5e
  AC_SUBST([gltests_WITNESS])
Packit 437b5e
  gl_module_indicator_condition=$gltests_WITNESS
Packit 437b5e
  m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
Packit 437b5e
  m4_popdef([gl_MODULE_INDICATOR_CONDITION])
Packit 437b5e
  m4_ifval(gltests_LIBSOURCES_LIST, [
Packit 437b5e
    m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
Packit 437b5e
      for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
Packit 437b5e
        if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
Packit 437b5e
          echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
Packit 437b5e
          exit 1
Packit 437b5e
        fi
Packit 437b5e
      done])dnl
Packit 437b5e
      m4_if(m4_sysval, [0], [],
Packit 437b5e
        [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
Packit 437b5e
  ])
Packit 437b5e
  m4_popdef([gltests_LIBSOURCES_DIR])
Packit 437b5e
  m4_popdef([gltests_LIBSOURCES_LIST])
Packit 437b5e
  m4_popdef([AC_LIBSOURCES])
Packit 437b5e
  m4_popdef([AC_REPLACE_FUNCS])
Packit 437b5e
  m4_popdef([AC_LIBOBJ])
Packit 437b5e
  AC_CONFIG_COMMANDS_PRE([
Packit 437b5e
    gltests_libobjs=
Packit 437b5e
    gltests_ltlibobjs=
Packit 437b5e
    if test -n "$gltests_LIBOBJS"; then
Packit 437b5e
      # Remove the extension.
Packit 437b5e
      sed_drop_objext='s/\.o$//;s/\.obj$//'
Packit 437b5e
      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
Packit 437b5e
        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
Packit 437b5e
        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
Packit 437b5e
      done
Packit 437b5e
    fi
Packit 437b5e
    AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
Packit 437b5e
    AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
Packit 437b5e
  ])
Packit 437b5e
])
Packit 437b5e
Packit 437b5e
# Like AC_LIBOBJ, except that the module name goes
Packit 437b5e
# into gl_LIBOBJS instead of into LIBOBJS.
Packit 437b5e
AC_DEFUN([gl_LIBOBJ], [
Packit 437b5e
  AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
Packit 437b5e
  gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
Packit 437b5e
])
Packit 437b5e
Packit 437b5e
# Like AC_REPLACE_FUNCS, except that the module name goes
Packit 437b5e
# into gl_LIBOBJS instead of into LIBOBJS.
Packit 437b5e
AC_DEFUN([gl_REPLACE_FUNCS], [
Packit 437b5e
  m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
Packit 437b5e
  AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
Packit 437b5e
])
Packit 437b5e
Packit 437b5e
# Like AC_LIBSOURCES, except the directory where the source file is
Packit 437b5e
# expected is derived from the gnulib-tool parameterization,
Packit 437b5e
# and alloca is special cased (for the alloca-opt module).
Packit 437b5e
# We could also entirely rely on EXTRA_lib..._SOURCES.
Packit 437b5e
AC_DEFUN([gl_LIBSOURCES], [
Packit 437b5e
  m4_foreach([_gl_NAME], [$1], [
Packit 437b5e
    m4_if(_gl_NAME, [alloca.c], [], [
Packit 437b5e
      m4_define([gl_LIBSOURCES_DIR], [unused])
Packit 437b5e
      m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
Packit 437b5e
    ])
Packit 437b5e
  ])
Packit 437b5e
])
Packit 437b5e
Packit 437b5e
# Like AC_LIBOBJ, except that the module name goes
Packit 437b5e
# into gltests_LIBOBJS instead of into LIBOBJS.
Packit 437b5e
AC_DEFUN([gltests_LIBOBJ], [
Packit 437b5e
  AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
Packit 437b5e
  gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
Packit 437b5e
])
Packit 437b5e
Packit 437b5e
# Like AC_REPLACE_FUNCS, except that the module name goes
Packit 437b5e
# into gltests_LIBOBJS instead of into LIBOBJS.
Packit 437b5e
AC_DEFUN([gltests_REPLACE_FUNCS], [
Packit 437b5e
  m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
Packit 437b5e
  AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
Packit 437b5e
])
Packit 437b5e
Packit 437b5e
# Like AC_LIBSOURCES, except the directory where the source file is
Packit 437b5e
# expected is derived from the gnulib-tool parameterization,
Packit 437b5e
# and alloca is special cased (for the alloca-opt module).
Packit 437b5e
# We could also entirely rely on EXTRA_lib..._SOURCES.
Packit 437b5e
AC_DEFUN([gltests_LIBSOURCES], [
Packit 437b5e
  m4_foreach([_gl_NAME], [$1], [
Packit 437b5e
    m4_if(_gl_NAME, [alloca.c], [], [
Packit 437b5e
      m4_define([gltests_LIBSOURCES_DIR], [tests])
Packit 437b5e
      m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
Packit 437b5e
    ])
Packit 437b5e
  ])
Packit 437b5e
])
Packit 437b5e
Packit 437b5e
# This macro records the list of files which have been installed by
Packit 437b5e
# gnulib-tool and may be removed by future gnulib-tool invocations.
Packit 437b5e
AC_DEFUN([gl_FILE_LIST], [
Packit 437b5e
  m4/00gnulib.m4
Packit 437b5e
  m4/gnulib-common.m4
Packit 437b5e
  m4/manywarnings.m4
Packit 437b5e
  m4/onceonly.m4
Packit 437b5e
  m4/warnings.m4
Packit 437b5e
])