1# DO NOT EDIT! GENERATED AUTOMATICALLY! 2# Copyright (C) 2002-2014 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 <http://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 ./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([gl_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 AC_REQUIRE([gl_PROG_AR_RANLIB]) 41 AC_REQUIRE([AM_PROG_CC_C_O]) 42 # Code from module absolute-header: 43 # Code from module alloca-opt: 44 # Code from module btowc: 45 # Code from module canonicalize-lgpl: 46 # Code from module configmake: 47 # Code from module dosname: 48 # Code from module dup2: 49 # Code from module environ: 50 # Code from module errno: 51 # Code from module error: 52 # Code from module exitfail: 53 # Code from module extensions: 54 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) 55 # Code from module extern-inline: 56 # Code from module float: 57 # Code from module gendocs: 58 # Code from module getdelim: 59 # Code from module getline: 60 # Code from module getopt: 61 # Code from module getopt-gnu: 62 # Code from module getopt-posix: 63 # Code from module gettext: 64 # Code from module gettext-h: 65 # Code from module gettimeofday: 66 # Code from module gnumakefile: 67 # Code from module havelib: 68 # Code from module include_next: 69 # Code from module intprops: 70 # Code from module iswblank: 71 # Code from module langinfo: 72 # Code from module largefile: 73 AC_REQUIRE([AC_SYS_LARGEFILE]) 74 # Code from module localcharset: 75 # Code from module locale: 76 # Code from module localeconv: 77 # Code from module lock: 78 # Code from module lstat: 79 # Code from module maintainer-makefile: 80 # Code from module malloc-gnu: 81 # Code from module malloc-posix: 82 # Code from module malloca: 83 # Code from module mbchar: 84 # Code from module mbrtowc: 85 # Code from module mbsinit: 86 # Code from module mbsrchr: 87 # Code from module mbtowc: 88 # Code from module mbuiter: 89 # Code from module memchr: 90 # Code from module msvc-inval: 91 # Code from module msvc-nothrow: 92 # Code from module multiarch: 93 # Code from module nl_langinfo: 94 # Code from module nocrash: 95 # Code from module pathmax: 96 # Code from module readlink: 97 # Code from module realloc-posix: 98 # Code from module regex: 99 # Code from module setenv: 100 # Code from module size_max: 101 # Code from module snippet/_Noreturn: 102 # Code from module snippet/arg-nonnull: 103 # Code from module snippet/c++defs: 104 # Code from module snippet/warn-on-use: 105 # Code from module ssize_t: 106 # Code from module stat: 107 # Code from module stdbool: 108 # Code from module stddef: 109 # Code from module stdint: 110 # Code from module stdio: 111 # Code from module stdlib: 112 # Code from module streq: 113 # Code from module strerror: 114 # Code from module strerror-override: 115 # Code from module string: 116 # Code from module strnlen1: 117 # Code from module strstr-simple: 118 # Code from module sys_stat: 119 # Code from module sys_time: 120 # Code from module sys_types: 121 # Code from module sys_wait: 122 # Code from module threadlib: 123 gl_THREADLIB_EARLY 124 # Code from module time: 125 # Code from module unistd: 126 # Code from module unitypes: 127 # Code from module uniwidth/base: 128 # Code from module uniwidth/width: 129 # Code from module useless-if-before-free: 130 # Code from module vasnprintf: 131 # Code from module vasprintf: 132 # Code from module vc-list-files: 133 # Code from module verify: 134 # Code from module wchar: 135 # Code from module wcrtomb: 136 # Code from module wctype-h: 137 # Code from module wcwidth: 138 # Code from module xalloc: 139 # Code from module xalloc-die: 140 # Code from module xalloc-oversized: 141 # Code from module xsize: 142]) 143 144# This macro should be invoked from ./configure.ac, in the section 145# "Check for header files, types and library functions". 146AC_DEFUN([gl_INIT], 147[ 148 AM_CONDITIONAL([GL_COND_LIBTOOL], [false]) 149 gl_cond_libtool=false 150 gl_libdeps= 151 gl_ltlibdeps= 152 gl_m4_base='m4' 153 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ])) 154 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS])) 155 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES])) 156 m4_pushdef([gl_LIBSOURCES_LIST], []) 157 m4_pushdef([gl_LIBSOURCES_DIR], []) 158 gl_COMMON 159 gl_source_base='lib' 160 gl_FUNC_ALLOCA 161 gl_FUNC_BTOWC 162 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then 163 AC_LIBOBJ([btowc]) 164 gl_PREREQ_BTOWC 165 fi 166 gl_WCHAR_MODULE_INDICATOR([btowc]) 167 gl_CANONICALIZE_LGPL 168 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then 169 AC_LIBOBJ([canonicalize-lgpl]) 170 fi 171 gl_MODULE_INDICATOR([canonicalize-lgpl]) 172 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name]) 173 gl_STDLIB_MODULE_INDICATOR([realpath]) 174 gl_CONFIGMAKE_PREP 175 gl_FUNC_DUP2 176 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then 177 AC_LIBOBJ([dup2]) 178 gl_PREREQ_DUP2 179 fi 180 gl_UNISTD_MODULE_INDICATOR([dup2]) 181 gl_ENVIRON 182 gl_UNISTD_MODULE_INDICATOR([environ]) 183 gl_HEADER_ERRNO_H 184 gl_ERROR 185 if test $ac_cv_lib_error_at_line = no; then 186 AC_LIBOBJ([error]) 187 gl_PREREQ_ERROR 188 fi 189 m4_ifdef([AM_XGETTEXT_OPTION], 190 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format]) 191 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])]) 192 AC_REQUIRE([gl_EXTERN_INLINE]) 193 gl_FLOAT_H 194 if test $REPLACE_FLOAT_LDBL = 1; then 195 AC_LIBOBJ([float]) 196 fi 197 if test $REPLACE_ITOLD = 1; then 198 AC_LIBOBJ([itold]) 199 fi 200 gl_FUNC_GETDELIM 201 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then 202 AC_LIBOBJ([getdelim]) 203 gl_PREREQ_GETDELIM 204 fi 205 gl_STDIO_MODULE_INDICATOR([getdelim]) 206 gl_FUNC_GETLINE 207 if test $REPLACE_GETLINE = 1; then 208 AC_LIBOBJ([getline]) 209 gl_PREREQ_GETLINE 210 fi 211 gl_STDIO_MODULE_INDICATOR([getline]) 212 gl_FUNC_GETOPT_GNU 213 if test $REPLACE_GETOPT = 1; then 214 AC_LIBOBJ([getopt]) 215 AC_LIBOBJ([getopt1]) 216 gl_PREREQ_GETOPT 217 dnl Arrange for unistd.h to include getopt.h. 218 GNULIB_GL_UNISTD_H_GETOPT=1 219 fi 220 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT]) 221 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu]) 222 gl_FUNC_GETOPT_POSIX 223 if test $REPLACE_GETOPT = 1; then 224 AC_LIBOBJ([getopt]) 225 AC_LIBOBJ([getopt1]) 226 gl_PREREQ_GETOPT 227 dnl Arrange for unistd.h to include getopt.h. 228 GNULIB_GL_UNISTD_H_GETOPT=1 229 fi 230 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT]) 231 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac. 232 AM_GNU_GETTEXT_VERSION([0.18.1]) 233 AC_SUBST([LIBINTL]) 234 AC_SUBST([LTLIBINTL]) 235 gl_FUNC_GETTIMEOFDAY 236 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then 237 AC_LIBOBJ([gettimeofday]) 238 gl_PREREQ_GETTIMEOFDAY 239 fi 240 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday]) 241 # Autoconf 2.61a.99 and earlier don't support linking a file only 242 # in VPATH builds. But since GNUmakefile is for maintainer use 243 # only, it does not matter if we skip the link with older autoconf. 244 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH 245 # builds, so use a shell variable to bypass this. 246 GNUmakefile=GNUmakefile 247 m4_if(m4_version_compare([2.61a.100], 248 m4_defn([m4_PACKAGE_VERSION])), [1], [], 249 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [], 250 [GNUmakefile=$GNUmakefile])]) 251 gl_FUNC_ISWBLANK 252 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 253 : 254 else 255 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then 256 AC_LIBOBJ([iswblank]) 257 fi 258 fi 259 gl_WCTYPE_MODULE_INDICATOR([iswblank]) 260 gl_LANGINFO_H 261 AC_REQUIRE([gl_LARGEFILE]) 262 gl_LOCALCHARSET 263 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\"" 264 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT]) 265 gl_LOCALE_H 266 gl_FUNC_LOCALECONV 267 if test $REPLACE_LOCALECONV = 1; then 268 AC_LIBOBJ([localeconv]) 269 gl_PREREQ_LOCALECONV 270 fi 271 gl_LOCALE_MODULE_INDICATOR([localeconv]) 272 gl_LOCK 273 gl_MODULE_INDICATOR([lock]) 274 gl_FUNC_LSTAT 275 if test $REPLACE_LSTAT = 1; then 276 AC_LIBOBJ([lstat]) 277 gl_PREREQ_LSTAT 278 fi 279 gl_SYS_STAT_MODULE_INDICATOR([lstat]) 280 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER], 281 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])]) 282 AC_REQUIRE([AC_PROG_SED]) 283 gl_FUNC_MALLOC_GNU 284 if test $REPLACE_MALLOC = 1; then 285 AC_LIBOBJ([malloc]) 286 fi 287 gl_MODULE_INDICATOR([malloc-gnu]) 288 gl_FUNC_MALLOC_POSIX 289 if test $REPLACE_MALLOC = 1; then 290 AC_LIBOBJ([malloc]) 291 fi 292 gl_STDLIB_MODULE_INDICATOR([malloc-posix]) 293 gl_MALLOCA 294 gl_MBCHAR 295 gl_FUNC_MBRTOWC 296 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then 297 AC_LIBOBJ([mbrtowc]) 298 gl_PREREQ_MBRTOWC 299 fi 300 gl_WCHAR_MODULE_INDICATOR([mbrtowc]) 301 gl_FUNC_MBSINIT 302 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then 303 AC_LIBOBJ([mbsinit]) 304 gl_PREREQ_MBSINIT 305 fi 306 gl_WCHAR_MODULE_INDICATOR([mbsinit]) 307 gl_STRING_MODULE_INDICATOR([mbsrchr]) 308 gl_FUNC_MBTOWC 309 if test $REPLACE_MBTOWC = 1; then 310 AC_LIBOBJ([mbtowc]) 311 gl_PREREQ_MBTOWC 312 fi 313 gl_STDLIB_MODULE_INDICATOR([mbtowc]) 314 gl_MBITER 315 gl_FUNC_MEMCHR 316 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then 317 AC_LIBOBJ([memchr]) 318 gl_PREREQ_MEMCHR 319 fi 320 gl_STRING_MODULE_INDICATOR([memchr]) 321 gl_MSVC_INVAL 322 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 323 AC_LIBOBJ([msvc-inval]) 324 fi 325 gl_MSVC_NOTHROW 326 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 327 AC_LIBOBJ([msvc-nothrow]) 328 fi 329 gl_MULTIARCH 330 gl_FUNC_NL_LANGINFO 331 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then 332 AC_LIBOBJ([nl_langinfo]) 333 fi 334 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo]) 335 gl_PATHMAX 336 gl_FUNC_READLINK 337 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then 338 AC_LIBOBJ([readlink]) 339 gl_PREREQ_READLINK 340 fi 341 gl_UNISTD_MODULE_INDICATOR([readlink]) 342 gl_FUNC_REALLOC_POSIX 343 if test $REPLACE_REALLOC = 1; then 344 AC_LIBOBJ([realloc]) 345 fi 346 gl_STDLIB_MODULE_INDICATOR([realloc-posix]) 347 gl_REGEX 348 if test $ac_use_included_regex = yes; then 349 AC_LIBOBJ([regex]) 350 gl_PREREQ_REGEX 351 fi 352 gl_FUNC_SETENV 353 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then 354 AC_LIBOBJ([setenv]) 355 fi 356 gl_STDLIB_MODULE_INDICATOR([setenv]) 357 gl_SIZE_MAX 358 gt_TYPE_SSIZE_T 359 gl_FUNC_STAT 360 if test $REPLACE_STAT = 1; then 361 AC_LIBOBJ([stat]) 362 gl_PREREQ_STAT 363 fi 364 gl_SYS_STAT_MODULE_INDICATOR([stat]) 365 AM_STDBOOL_H 366 gl_STDDEF_H 367 gl_STDINT_H 368 gl_STDIO_H 369 gl_STDLIB_H 370 gl_FUNC_STRERROR 371 if test $REPLACE_STRERROR = 1; then 372 AC_LIBOBJ([strerror]) 373 fi 374 gl_MODULE_INDICATOR([strerror]) 375 gl_STRING_MODULE_INDICATOR([strerror]) 376 AC_REQUIRE([gl_HEADER_ERRNO_H]) 377 AC_REQUIRE([gl_FUNC_STRERROR_0]) 378 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then 379 AC_LIBOBJ([strerror-override]) 380 gl_PREREQ_SYS_H_WINSOCK2 381 fi 382 gl_HEADER_STRING_H 383 gl_FUNC_STRSTR_SIMPLE 384 if test $REPLACE_STRSTR = 1; then 385 AC_LIBOBJ([strstr]) 386 fi 387 gl_STRING_MODULE_INDICATOR([strstr]) 388 gl_HEADER_SYS_STAT_H 389 AC_PROG_MKDIR_P 390 gl_HEADER_SYS_TIME_H 391 AC_PROG_MKDIR_P 392 gl_SYS_TYPES_H 393 AC_PROG_MKDIR_P 394 gl_SYS_WAIT_H 395 AC_PROG_MKDIR_P 396 gl_THREADLIB 397 gl_HEADER_TIME_H 398 gl_UNISTD_H 399 gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h]) 400 gl_LIBUNISTRING_LIBHEADER([0.9], [uniwidth.h]) 401 gl_LIBUNISTRING_MODULE([0.9.4], [uniwidth/width]) 402 gl_FUNC_VASNPRINTF 403 gl_FUNC_VASPRINTF 404 gl_STDIO_MODULE_INDICATOR([vasprintf]) 405 m4_ifdef([AM_XGETTEXT_OPTION], 406 [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format]) 407 AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])]) 408 gl_WCHAR_H 409 gl_FUNC_WCRTOMB 410 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then 411 AC_LIBOBJ([wcrtomb]) 412 gl_PREREQ_WCRTOMB 413 fi 414 gl_WCHAR_MODULE_INDICATOR([wcrtomb]) 415 gl_WCTYPE_H 416 gl_FUNC_WCWIDTH 417 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then 418 AC_LIBOBJ([wcwidth]) 419 fi 420 gl_WCHAR_MODULE_INDICATOR([wcwidth]) 421 gl_XALLOC 422 gl_XSIZE 423 # End of code from modules 424 m4_ifval(gl_LIBSOURCES_LIST, [ 425 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ || 426 for gl_file in ]gl_LIBSOURCES_LIST[ ; do 427 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then 428 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2 429 exit 1 430 fi 431 done])dnl 432 m4_if(m4_sysval, [0], [], 433 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) 434 ]) 435 m4_popdef([gl_LIBSOURCES_DIR]) 436 m4_popdef([gl_LIBSOURCES_LIST]) 437 m4_popdef([AC_LIBSOURCES]) 438 m4_popdef([AC_REPLACE_FUNCS]) 439 m4_popdef([AC_LIBOBJ]) 440 AC_CONFIG_COMMANDS_PRE([ 441 gl_libobjs= 442 gl_ltlibobjs= 443 if test -n "$gl_LIBOBJS"; then 444 # Remove the extension. 445 sed_drop_objext='s/\.o$//;s/\.obj$//' 446 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 447 gl_libobjs="$gl_libobjs $i.$ac_objext" 448 gl_ltlibobjs="$gl_ltlibobjs $i.lo" 449 done 450 fi 451 AC_SUBST([gl_LIBOBJS], [$gl_libobjs]) 452 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs]) 453 ]) 454 gltests_libdeps= 455 gltests_ltlibdeps= 456 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ])) 457 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS])) 458 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES])) 459 m4_pushdef([gltests_LIBSOURCES_LIST], []) 460 m4_pushdef([gltests_LIBSOURCES_DIR], []) 461 gl_COMMON 462 gl_source_base='tests' 463changequote(,)dnl 464 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 465changequote([, ])dnl 466 AC_SUBST([gltests_WITNESS]) 467 gl_module_indicator_condition=$gltests_WITNESS 468 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition]) 469 m4_popdef([gl_MODULE_INDICATOR_CONDITION]) 470 m4_ifval(gltests_LIBSOURCES_LIST, [ 471 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ || 472 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do 473 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then 474 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2 475 exit 1 476 fi 477 done])dnl 478 m4_if(m4_sysval, [0], [], 479 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) 480 ]) 481 m4_popdef([gltests_LIBSOURCES_DIR]) 482 m4_popdef([gltests_LIBSOURCES_LIST]) 483 m4_popdef([AC_LIBSOURCES]) 484 m4_popdef([AC_REPLACE_FUNCS]) 485 m4_popdef([AC_LIBOBJ]) 486 AC_CONFIG_COMMANDS_PRE([ 487 gltests_libobjs= 488 gltests_ltlibobjs= 489 if test -n "$gltests_LIBOBJS"; then 490 # Remove the extension. 491 sed_drop_objext='s/\.o$//;s/\.obj$//' 492 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 493 gltests_libobjs="$gltests_libobjs $i.$ac_objext" 494 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" 495 done 496 fi 497 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs]) 498 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs]) 499 ]) 500 LIBGNU_LIBDEPS="$gl_libdeps" 501 AC_SUBST([LIBGNU_LIBDEPS]) 502 LIBGNU_LTLIBDEPS="$gl_ltlibdeps" 503 AC_SUBST([LIBGNU_LTLIBDEPS]) 504]) 505 506# Like AC_LIBOBJ, except that the module name goes 507# into gl_LIBOBJS instead of into LIBOBJS. 508AC_DEFUN([gl_LIBOBJ], [ 509 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl 510 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext" 511]) 512 513# Like AC_REPLACE_FUNCS, except that the module name goes 514# into gl_LIBOBJS instead of into LIBOBJS. 515AC_DEFUN([gl_REPLACE_FUNCS], [ 516 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl 517 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)]) 518]) 519 520# Like AC_LIBSOURCES, except the directory where the source file is 521# expected is derived from the gnulib-tool parameterization, 522# and alloca is special cased (for the alloca-opt module). 523# We could also entirely rely on EXTRA_lib..._SOURCES. 524AC_DEFUN([gl_LIBSOURCES], [ 525 m4_foreach([_gl_NAME], [$1], [ 526 m4_if(_gl_NAME, [alloca.c], [], [ 527 m4_define([gl_LIBSOURCES_DIR], [lib]) 528 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ]) 529 ]) 530 ]) 531]) 532 533# Like AC_LIBOBJ, except that the module name goes 534# into gltests_LIBOBJS instead of into LIBOBJS. 535AC_DEFUN([gltests_LIBOBJ], [ 536 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl 537 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext" 538]) 539 540# Like AC_REPLACE_FUNCS, except that the module name goes 541# into gltests_LIBOBJS instead of into LIBOBJS. 542AC_DEFUN([gltests_REPLACE_FUNCS], [ 543 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl 544 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)]) 545]) 546 547# Like AC_LIBSOURCES, except the directory where the source file is 548# expected is derived from the gnulib-tool parameterization, 549# and alloca is special cased (for the alloca-opt module). 550# We could also entirely rely on EXTRA_lib..._SOURCES. 551AC_DEFUN([gltests_LIBSOURCES], [ 552 m4_foreach([_gl_NAME], [$1], [ 553 m4_if(_gl_NAME, [alloca.c], [], [ 554 m4_define([gltests_LIBSOURCES_DIR], [tests]) 555 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ]) 556 ]) 557 ]) 558]) 559 560# This macro records the list of files which have been installed by 561# gnulib-tool and may be removed by future gnulib-tool invocations. 562AC_DEFUN([gl_FILE_LIST], [ 563 build-aux/config.rpath 564 build-aux/gendocs.sh 565 build-aux/snippet/_Noreturn.h 566 build-aux/snippet/arg-nonnull.h 567 build-aux/snippet/c++defs.h 568 build-aux/snippet/warn-on-use.h 569 build-aux/useless-if-before-free 570 build-aux/vc-list-files 571 doc/gendocs_template 572 lib/alloca.in.h 573 lib/asnprintf.c 574 lib/asprintf.c 575 lib/btowc.c 576 lib/canonicalize-lgpl.c 577 lib/config.charset 578 lib/dosname.h 579 lib/dup2.c 580 lib/errno.in.h 581 lib/error.c 582 lib/error.h 583 lib/exitfail.c 584 lib/exitfail.h 585 lib/float+.h 586 lib/float.c 587 lib/float.in.h 588 lib/getdelim.c 589 lib/getline.c 590 lib/getopt.c 591 lib/getopt.in.h 592 lib/getopt1.c 593 lib/getopt_int.h 594 lib/gettext.h 595 lib/gettimeofday.c 596 lib/glthread/lock.c 597 lib/glthread/lock.h 598 lib/glthread/threadlib.c 599 lib/intprops.h 600 lib/iswblank.c 601 lib/itold.c 602 lib/langinfo.in.h 603 lib/localcharset.c 604 lib/localcharset.h 605 lib/locale.in.h 606 lib/localeconv.c 607 lib/lstat.c 608 lib/malloc.c 609 lib/malloca.c 610 lib/malloca.h 611 lib/malloca.valgrind 612 lib/mbchar.c 613 lib/mbchar.h 614 lib/mbrtowc.c 615 lib/mbsinit.c 616 lib/mbsrchr.c 617 lib/mbtowc-impl.h 618 lib/mbtowc.c 619 lib/mbuiter.c 620 lib/mbuiter.h 621 lib/memchr.c 622 lib/memchr.valgrind 623 lib/msvc-inval.c 624 lib/msvc-inval.h 625 lib/msvc-nothrow.c 626 lib/msvc-nothrow.h 627 lib/nl_langinfo.c 628 lib/pathmax.h 629 lib/printf-args.c 630 lib/printf-args.h 631 lib/printf-parse.c 632 lib/printf-parse.h 633 lib/readlink.c 634 lib/realloc.c 635 lib/ref-add.sin 636 lib/ref-del.sin 637 lib/regcomp.c 638 lib/regex.c 639 lib/regex.h 640 lib/regex_internal.c 641 lib/regex_internal.h 642 lib/regexec.c 643 lib/setenv.c 644 lib/size_max.h 645 lib/stat.c 646 lib/stdbool.in.h 647 lib/stddef.in.h 648 lib/stdint.in.h 649 lib/stdio.in.h 650 lib/stdlib.in.h 651 lib/str-two-way.h 652 lib/streq.h 653 lib/strerror-override.c 654 lib/strerror-override.h 655 lib/strerror.c 656 lib/string.in.h 657 lib/strnlen1.c 658 lib/strnlen1.h 659 lib/strstr.c 660 lib/sys_stat.in.h 661 lib/sys_time.in.h 662 lib/sys_types.in.h 663 lib/sys_wait.in.h 664 lib/time.in.h 665 lib/unistd.c 666 lib/unistd.in.h 667 lib/unitypes.in.h 668 lib/uniwidth.in.h 669 lib/uniwidth/cjk.h 670 lib/uniwidth/width.c 671 lib/vasnprintf.c 672 lib/vasnprintf.h 673 lib/vasprintf.c 674 lib/verify.h 675 lib/wchar.in.h 676 lib/wcrtomb.c 677 lib/wctype-h.c 678 lib/wctype.in.h 679 lib/wcwidth.c 680 lib/xalloc-die.c 681 lib/xalloc-oversized.h 682 lib/xalloc.h 683 lib/xmalloc.c 684 lib/xsize.c 685 lib/xsize.h 686 m4/00gnulib.m4 687 m4/absolute-header.m4 688 m4/alloca.m4 689 m4/btowc.m4 690 m4/canonicalize.m4 691 m4/codeset.m4 692 m4/configmake.m4 693 m4/double-slash-root.m4 694 m4/dup2.m4 695 m4/eealloc.m4 696 m4/environ.m4 697 m4/errno_h.m4 698 m4/error.m4 699 m4/exponentd.m4 700 m4/extensions.m4 701 m4/extern-inline.m4 702 m4/fcntl-o.m4 703 m4/float_h.m4 704 m4/getdelim.m4 705 m4/getline.m4 706 m4/getopt.m4 707 m4/gettext.m4 708 m4/gettimeofday.m4 709 m4/glibc2.m4 710 m4/glibc21.m4 711 m4/gnulib-common.m4 712 m4/iconv.m4 713 m4/include_next.m4 714 m4/intdiv0.m4 715 m4/intl.m4 716 m4/intldir.m4 717 m4/intlmacosx.m4 718 m4/intmax.m4 719 m4/intmax_t.m4 720 m4/inttypes-pri.m4 721 m4/inttypes_h.m4 722 m4/iswblank.m4 723 m4/langinfo_h.m4 724 m4/largefile.m4 725 m4/lcmessage.m4 726 m4/lib-ld.m4 727 m4/lib-link.m4 728 m4/lib-prefix.m4 729 m4/libunistring-base.m4 730 m4/localcharset.m4 731 m4/locale-fr.m4 732 m4/locale-ja.m4 733 m4/locale-zh.m4 734 m4/locale_h.m4 735 m4/localeconv.m4 736 m4/lock.m4 737 m4/longlong.m4 738 m4/lstat.m4 739 m4/malloc.m4 740 m4/malloca.m4 741 m4/math_h.m4 742 m4/mbchar.m4 743 m4/mbiter.m4 744 m4/mbrtowc.m4 745 m4/mbsinit.m4 746 m4/mbstate_t.m4 747 m4/mbtowc.m4 748 m4/memchr.m4 749 m4/mmap-anon.m4 750 m4/msvc-inval.m4 751 m4/msvc-nothrow.m4 752 m4/multiarch.m4 753 m4/nl_langinfo.m4 754 m4/nls.m4 755 m4/nocrash.m4 756 m4/off_t.m4 757 m4/onceonly.m4 758 m4/pathmax.m4 759 m4/po.m4 760 m4/printf-posix.m4 761 m4/printf.m4 762 m4/progtest.m4 763 m4/readlink.m4 764 m4/realloc.m4 765 m4/regex.m4 766 m4/setenv.m4 767 m4/size_max.m4 768 m4/ssize_t.m4 769 m4/stat.m4 770 m4/stdbool.m4 771 m4/stddef_h.m4 772 m4/stdint.m4 773 m4/stdint_h.m4 774 m4/stdio_h.m4 775 m4/stdlib_h.m4 776 m4/strerror.m4 777 m4/string_h.m4 778 m4/strstr.m4 779 m4/sys_socket_h.m4 780 m4/sys_stat_h.m4 781 m4/sys_time_h.m4 782 m4/sys_types_h.m4 783 m4/sys_wait_h.m4 784 m4/threadlib.m4 785 m4/time_h.m4 786 m4/uintmax_t.m4 787 m4/unistd_h.m4 788 m4/vasnprintf.m4 789 m4/vasprintf.m4 790 m4/visibility.m4 791 m4/warn-on-use.m4 792 m4/wchar_h.m4 793 m4/wchar_t.m4 794 m4/wcrtomb.m4 795 m4/wctype_h.m4 796 m4/wcwidth.m4 797 m4/wint_t.m4 798 m4/xalloc.m4 799 m4/xsize.m4 800 top/GNUmakefile 801 top/maint.mk 802]) 803