1# DO NOT EDIT! GENERATED AUTOMATICALLY! 2# Copyright (C) 2002-2020 Free Software Foundation, Inc. 3# 4# This file is free software; you can redistribute it and/or modify 5# it under the terms of the GNU General Public License as published by 6# the Free Software Foundation; either version 3 of the License, or 7# (at your option) any later version. 8# 9# This file is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY; without even the implied warranty of 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12# GNU General Public License for more details. 13# 14# You should have received a copy of the GNU General Public License 15# along with this file. If not, see <https://www.gnu.org/licenses/>. 16# 17# As a special exception to the GNU General Public License, 18# this file may be distributed as part of a program that 19# contains a configuration script generated by Autoconf, under 20# the same distribution terms as the rest of that program. 21# 22# Generated by gnulib-tool. 23# 24# This file represents the compiled summary of the specification in 25# gnulib-cache.m4. It lists the computed macro invocations that need 26# to be invoked from configure.ac. 27# In projects that use version control, this file can be treated like 28# other built files. 29 30 31# This macro should be invoked from gettext-tools/configure.ac, in the section 32# "Checks for programs", right after AC_PROG_CC, and certainly before 33# any checks for libraries, header files, types and library functions. 34AC_DEFUN([grgl_EARLY], 35[ 36 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace 37 m4_pattern_allow([^gl_ES$])dnl a valid locale name 38 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable 39 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable 40 41 # Pre-early section. 42 AC_REQUIRE([gl_PROG_AR_RANLIB]) 43 44 AC_REQUIRE([AM_PROG_CC_C_O]) 45 # Code from module btowc: 46 # Code from module builtin-expect: 47 # Code from module c99: 48 # Code from module intprops: 49 # Code from module langinfo: 50 # Code from module libc-config: 51 # Code from module localeconv: 52 # Code from module lock: 53 # Code from module mbrlen: 54 # Code from module mbtowc: 55 # Code from module nl_langinfo: 56 # Code from module regex: 57 # Code from module snippet/c++defs: 58 # Code from module snippet/warn-on-use: 59 # Code from module std-gnu11: 60 # Code from module threadlib: 61 gl_THREADLIB_EARLY 62 # Code from module wcrtomb: 63]) 64 65# This macro should be invoked from gettext-tools/configure.ac, in the section 66# "Check for header files, types and library functions". 67AC_DEFUN([grgl_INIT], 68[ 69 AM_CONDITIONAL([GL_COND_LIBTOOL], [false]) 70 gl_cond_libtool=false 71 gl_libdeps= 72 gl_ltlibdeps= 73 gl_m4_base='libgrep/gnulib-m4' 74 m4_pushdef([AC_LIBOBJ], m4_defn([grgl_LIBOBJ])) 75 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([grgl_REPLACE_FUNCS])) 76 m4_pushdef([AC_LIBSOURCES], m4_defn([grgl_LIBSOURCES])) 77 m4_pushdef([grgl_LIBSOURCES_LIST], []) 78 m4_pushdef([grgl_LIBSOURCES_DIR], []) 79 gl_COMMON 80 gl_source_base='libgrep' 81 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [IN_GETTEXT_TOOLS_LIBGREP]) 82 gl_FUNC_BTOWC 83 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then 84 AC_LIBOBJ([btowc]) 85 gl_PREREQ_BTOWC 86 fi 87 gl_WCHAR_MODULE_INDICATOR([btowc]) 88 gl___BUILTIN_EXPECT 89 gl_LANGINFO_H 90 gl___INLINE 91 gl_FUNC_LOCALECONV 92 if test $REPLACE_LOCALECONV = 1; then 93 AC_LIBOBJ([localeconv]) 94 gl_PREREQ_LOCALECONV 95 fi 96 gl_LOCALE_MODULE_INDICATOR([localeconv]) 97 gl_LOCK 98 gl_MODULE_INDICATOR([lock]) 99 gl_FUNC_MBRLEN 100 if test $HAVE_MBRLEN = 0 || test $REPLACE_MBRLEN = 1; then 101 AC_LIBOBJ([mbrlen]) 102 gl_PREREQ_MBRLEN 103 fi 104 gl_WCHAR_MODULE_INDICATOR([mbrlen]) 105 gl_FUNC_MBTOWC 106 if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then 107 AC_LIBOBJ([mbtowc]) 108 gl_PREREQ_MBTOWC 109 fi 110 gl_STDLIB_MODULE_INDICATOR([mbtowc]) 111 gl_FUNC_NL_LANGINFO 112 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then 113 AC_LIBOBJ([nl_langinfo]) 114 fi 115 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo]) 116 gl_REGEX 117 if test $ac_use_included_regex = yes; then 118 AC_LIBOBJ([regex]) 119 gl_PREREQ_REGEX 120 fi 121 AC_REQUIRE([gl_THREADLIB]) 122 gl_FUNC_WCRTOMB 123 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then 124 AC_LIBOBJ([wcrtomb]) 125 gl_PREREQ_WCRTOMB 126 fi 127 gl_WCHAR_MODULE_INDICATOR([wcrtomb]) 128 m4_popdef([gl_MODULE_INDICATOR_CONDITION]) 129 # End of code from modules 130 m4_ifval(grgl_LIBSOURCES_LIST, [ 131 m4_syscmd([test ! -d ]m4_defn([grgl_LIBSOURCES_DIR])[ || 132 for gl_file in ]grgl_LIBSOURCES_LIST[ ; do 133 if test ! -r ]m4_defn([grgl_LIBSOURCES_DIR])[/$gl_file ; then 134 echo "missing file ]m4_defn([grgl_LIBSOURCES_DIR])[/$gl_file" >&2 135 exit 1 136 fi 137 done])dnl 138 m4_if(m4_sysval, [0], [], 139 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) 140 ]) 141 m4_popdef([grgl_LIBSOURCES_DIR]) 142 m4_popdef([grgl_LIBSOURCES_LIST]) 143 m4_popdef([AC_LIBSOURCES]) 144 m4_popdef([AC_REPLACE_FUNCS]) 145 m4_popdef([AC_LIBOBJ]) 146 AC_CONFIG_COMMANDS_PRE([ 147 grgl_libobjs= 148 grgl_ltlibobjs= 149 if test -n "$grgl_LIBOBJS"; then 150 # Remove the extension. 151 sed_drop_objext='s/\.o$//;s/\.obj$//' 152 for i in `for i in $grgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 153 grgl_libobjs="$grgl_libobjs $i.$ac_objext" 154 grgl_ltlibobjs="$grgl_ltlibobjs $i.lo" 155 done 156 fi 157 AC_SUBST([grgl_LIBOBJS], [$grgl_libobjs]) 158 AC_SUBST([grgl_LTLIBOBJS], [$grgl_ltlibobjs]) 159 ]) 160 gltests_libdeps= 161 gltests_ltlibdeps= 162 m4_pushdef([AC_LIBOBJ], m4_defn([grgltests_LIBOBJ])) 163 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([grgltests_REPLACE_FUNCS])) 164 m4_pushdef([AC_LIBSOURCES], m4_defn([grgltests_LIBSOURCES])) 165 m4_pushdef([grgltests_LIBSOURCES_LIST], []) 166 m4_pushdef([grgltests_LIBSOURCES_DIR], []) 167 gl_COMMON 168 gl_source_base='tests' 169changequote(,)dnl 170 grgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS 171changequote([, ])dnl 172 AC_SUBST([grgltests_WITNESS]) 173 gl_module_indicator_condition=$grgltests_WITNESS 174 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition]) 175 m4_popdef([gl_MODULE_INDICATOR_CONDITION]) 176 m4_ifval(grgltests_LIBSOURCES_LIST, [ 177 m4_syscmd([test ! -d ]m4_defn([grgltests_LIBSOURCES_DIR])[ || 178 for gl_file in ]grgltests_LIBSOURCES_LIST[ ; do 179 if test ! -r ]m4_defn([grgltests_LIBSOURCES_DIR])[/$gl_file ; then 180 echo "missing file ]m4_defn([grgltests_LIBSOURCES_DIR])[/$gl_file" >&2 181 exit 1 182 fi 183 done])dnl 184 m4_if(m4_sysval, [0], [], 185 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) 186 ]) 187 m4_popdef([grgltests_LIBSOURCES_DIR]) 188 m4_popdef([grgltests_LIBSOURCES_LIST]) 189 m4_popdef([AC_LIBSOURCES]) 190 m4_popdef([AC_REPLACE_FUNCS]) 191 m4_popdef([AC_LIBOBJ]) 192 AC_CONFIG_COMMANDS_PRE([ 193 grgltests_libobjs= 194 grgltests_ltlibobjs= 195 if test -n "$grgltests_LIBOBJS"; then 196 # Remove the extension. 197 sed_drop_objext='s/\.o$//;s/\.obj$//' 198 for i in `for i in $grgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 199 grgltests_libobjs="$grgltests_libobjs $i.$ac_objext" 200 grgltests_ltlibobjs="$grgltests_ltlibobjs $i.lo" 201 done 202 fi 203 AC_SUBST([grgltests_LIBOBJS], [$grgltests_libobjs]) 204 AC_SUBST([grgltests_LTLIBOBJS], [$grgltests_ltlibobjs]) 205 ]) 206 LIBGREP_LIBDEPS="$gl_libdeps" 207 AC_SUBST([LIBGREP_LIBDEPS]) 208 LIBGREP_LTLIBDEPS="$gl_ltlibdeps" 209 AC_SUBST([LIBGREP_LTLIBDEPS]) 210]) 211 212# Like AC_LIBOBJ, except that the module name goes 213# into grgl_LIBOBJS instead of into LIBOBJS. 214AC_DEFUN([grgl_LIBOBJ], [ 215 AS_LITERAL_IF([$1], [grgl_LIBSOURCES([$1.c])])dnl 216 grgl_LIBOBJS="$grgl_LIBOBJS $1.$ac_objext" 217]) 218 219# Like AC_REPLACE_FUNCS, except that the module name goes 220# into grgl_LIBOBJS instead of into LIBOBJS. 221AC_DEFUN([grgl_REPLACE_FUNCS], [ 222 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl 223 AC_CHECK_FUNCS([$1], , [grgl_LIBOBJ($ac_func)]) 224]) 225 226# Like AC_LIBSOURCES, except the directory where the source file is 227# expected is derived from the gnulib-tool parameterization, 228# and alloca is special cased (for the alloca-opt module). 229# We could also entirely rely on EXTRA_lib..._SOURCES. 230AC_DEFUN([grgl_LIBSOURCES], [ 231 m4_foreach([_gl_NAME], [$1], [ 232 m4_if(_gl_NAME, [alloca.c], [], [ 233 m4_define([grgl_LIBSOURCES_DIR], [libgrep]) 234 m4_append([grgl_LIBSOURCES_LIST], _gl_NAME, [ ]) 235 ]) 236 ]) 237]) 238 239# Like AC_LIBOBJ, except that the module name goes 240# into grgltests_LIBOBJS instead of into LIBOBJS. 241AC_DEFUN([grgltests_LIBOBJ], [ 242 AS_LITERAL_IF([$1], [grgltests_LIBSOURCES([$1.c])])dnl 243 grgltests_LIBOBJS="$grgltests_LIBOBJS $1.$ac_objext" 244]) 245 246# Like AC_REPLACE_FUNCS, except that the module name goes 247# into grgltests_LIBOBJS instead of into LIBOBJS. 248AC_DEFUN([grgltests_REPLACE_FUNCS], [ 249 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl 250 AC_CHECK_FUNCS([$1], , [grgltests_LIBOBJ($ac_func)]) 251]) 252 253# Like AC_LIBSOURCES, except the directory where the source file is 254# expected is derived from the gnulib-tool parameterization, 255# and alloca is special cased (for the alloca-opt module). 256# We could also entirely rely on EXTRA_lib..._SOURCES. 257AC_DEFUN([grgltests_LIBSOURCES], [ 258 m4_foreach([_gl_NAME], [$1], [ 259 m4_if(_gl_NAME, [alloca.c], [], [ 260 m4_define([grgltests_LIBSOURCES_DIR], [tests]) 261 m4_append([grgltests_LIBSOURCES_LIST], _gl_NAME, [ ]) 262 ]) 263 ]) 264]) 265 266# This macro records the list of files which have been installed by 267# gnulib-tool and may be removed by future gnulib-tool invocations. 268AC_DEFUN([grgl_FILE_LIST], [ 269 lib/btowc.c 270 lib/c++defs.h 271 lib/cdefs.h 272 lib/glthread/lock.c 273 lib/glthread/lock.h 274 lib/glthread/threadlib.c 275 lib/intprops.h 276 lib/langinfo.in.h 277 lib/libc-config.h 278 lib/localeconv.c 279 lib/mbrlen.c 280 lib/mbtowc-impl.h 281 lib/mbtowc.c 282 lib/nl_langinfo.c 283 lib/regcomp.c 284 lib/regex.c 285 lib/regex.h 286 lib/regex_internal.c 287 lib/regex_internal.h 288 lib/regexec.c 289 lib/warn-on-use.h 290 lib/wcrtomb.c 291 m4/00gnulib.m4 292 m4/__inline.m4 293 m4/btowc.m4 294 m4/builtin-expect.m4 295 m4/codeset.m4 296 m4/eealloc.m4 297 m4/glibc21.m4 298 m4/gnulib-common.m4 299 m4/langinfo_h.m4 300 m4/locale-fr.m4 301 m4/locale-ja.m4 302 m4/locale-zh.m4 303 m4/localeconv.m4 304 m4/lock.m4 305 m4/mbrlen.m4 306 m4/mbrtowc.m4 307 m4/mbstate_t.m4 308 m4/mbtowc.m4 309 m4/nl_langinfo.m4 310 m4/pthread_rwlock_rdlock.m4 311 m4/regex.m4 312 m4/std-gnu11.m4 313 m4/threadlib.m4 314 m4/warn-on-use.m4 315 m4/wcrtomb.m4 316 m4/zzgnulib.m4 317]) 318