| 1 | # DO NOT EDIT! GENERATED AUTOMATICALLY! |
| 2 | # Copyright (C) 2002-2010 Free Software Foundation, Inc. |
| 3 | # |
| 4 | # This file is free software, distributed under the terms of the GNU |
| 5 | # General Public License. As a special exception to the GNU General |
| 6 | # Public License, this file may be distributed as part of a program |
| 7 | # that contains a configuration script generated by Autoconf, under |
| 8 | # the same distribution terms as the rest of that program. |
| 9 | # |
| 10 | # Generated by gnulib-tool. |
| 11 | # |
| 12 | # This file represents the compiled summary of the specification in |
| 13 | # gnulib-cache.m4. It lists the computed macro invocations that need |
| 14 | # to be invoked from configure.ac. |
| 15 | # In projects that use version control, this file can be treated like |
| 16 | # other built files. |
| 17 | |
| 18 | |
| 19 | # This macro should be invoked from ./configure.ac, in the section |
| 20 | # "Checks for programs", right after AC_PROG_CC, and certainly before |
| 21 | # any checks for libraries, header files, types and library functions. |
| 22 | AC_DEFUN([gl_EARLY], |
| 23 | [ |
| 24 | m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace |
| 25 | m4_pattern_allow([^gl_ES$])dnl a valid locale name |
| 26 | m4_pattern_allow([^gl_LIBOBJS$])dnl a variable |
| 27 | m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable |
| 28 | AC_REQUIRE([AC_PROG_RANLIB]) |
| 29 | AC_REQUIRE([AM_PROG_CC_C_O]) |
| 30 | # Code from module alignof: |
| 31 | # Code from module alloca-opt: |
| 32 | # Code from module announce-gen: |
| 33 | # Code from module arg-nonnull: |
| 34 | # Code from module arpa_inet: |
| 35 | # Code from module autobuild: |
| 36 | AB_INIT |
| 37 | # Code from module byteswap: |
| 38 | # Code from module c++defs: |
| 39 | # Code from module c-ctype: |
| 40 | # Code from module c-strcase: |
| 41 | # Code from module c-strcaseeq: |
| 42 | # Code from module canonicalize-lgpl: |
| 43 | # Code from module configmake: |
| 44 | # Code from module duplocale: |
| 45 | # Code from module environ: |
| 46 | # Code from module errno: |
| 47 | # Code from module extensions: |
| 48 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) |
| 49 | # Code from module float: |
| 50 | # Code from module flock: |
| 51 | # Code from module fpieee: |
| 52 | AC_REQUIRE([gl_FP_IEEE]) |
| 53 | # Code from module full-read: |
| 54 | # Code from module full-write: |
| 55 | # Code from module func: |
| 56 | # Code from module gendocs: |
| 57 | # Code from module getaddrinfo: |
| 58 | # Code from module gettext-h: |
| 59 | # Code from module git-version-gen: |
| 60 | # Code from module gitlog-to-changelog: |
| 61 | # Code from module gnu-web-doc-update: |
| 62 | # Code from module gnumakefile: |
| 63 | # Code from module gnupload: |
| 64 | # Code from module gperf: |
| 65 | # Code from module havelib: |
| 66 | # Code from module hostent: |
| 67 | # Code from module iconv: |
| 68 | # Code from module iconv-h: |
| 69 | # Code from module iconv_open: |
| 70 | # Code from module iconv_open-utf: |
| 71 | # Code from module include_next: |
| 72 | # Code from module inet_ntop: |
| 73 | # Code from module inet_pton: |
| 74 | # Code from module inline: |
| 75 | # Code from module isinf: |
| 76 | # Code from module isnan: |
| 77 | # Code from module isnand: |
| 78 | # Code from module isnanf: |
| 79 | # Code from module isnanl: |
| 80 | # Code from module lib-symbol-versions: |
| 81 | # Code from module lib-symbol-visibility: |
| 82 | # Code from module libunistring: |
| 83 | # Code from module localcharset: |
| 84 | # Code from module locale: |
| 85 | # Code from module lstat: |
| 86 | # Code from module maintainer-makefile: |
| 87 | # Code from module malloc-posix: |
| 88 | # Code from module malloca: |
| 89 | # Code from module math: |
| 90 | # Code from module mbrlen: |
| 91 | # Code from module mbrtowc: |
| 92 | # Code from module mbsinit: |
| 93 | # Code from module memchr: |
| 94 | # Code from module multiarch: |
| 95 | # Code from module netdb: |
| 96 | # Code from module netinet_in: |
| 97 | # Code from module pathmax: |
| 98 | # Code from module putenv: |
| 99 | # Code from module readlink: |
| 100 | # Code from module safe-read: |
| 101 | # Code from module safe-write: |
| 102 | # Code from module servent: |
| 103 | # Code from module size_max: |
| 104 | # Code from module snprintf: |
| 105 | # Code from module socklen: |
| 106 | # Code from module ssize_t: |
| 107 | # Code from module stat: |
| 108 | # Code from module stat-time: |
| 109 | # Code from module stdarg: |
| 110 | dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode |
| 111 | dnl for the builtin va_copy to work. With Autoconf 2.60 or later, |
| 112 | dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC |
| 113 | dnl shouldn't hurt, though installers are on their own to set c99 mode. |
| 114 | AC_REQUIRE([AC_PROG_CC_STDC]) |
| 115 | # Code from module stdbool: |
| 116 | # Code from module stddef: |
| 117 | # Code from module stdint: |
| 118 | # Code from module stdio: |
| 119 | # Code from module stdlib: |
| 120 | # Code from module strcase: |
| 121 | # Code from module streq: |
| 122 | # Code from module strftime: |
| 123 | # Code from module striconveh: |
| 124 | # Code from module string: |
| 125 | # Code from module strings: |
| 126 | # Code from module sys_file: |
| 127 | # Code from module sys_socket: |
| 128 | # Code from module sys_stat: |
| 129 | # Code from module time: |
| 130 | # Code from module time_r: |
| 131 | # Code from module unistd: |
| 132 | # Code from module unistr/base: |
| 133 | # Code from module unistr/u8-mbtouc: |
| 134 | # Code from module unistr/u8-mbtouc-unsafe: |
| 135 | # Code from module unistr/u8-mbtoucr: |
| 136 | # Code from module unistr/u8-prev: |
| 137 | # Code from module unistr/u8-uctomb: |
| 138 | # Code from module unitypes: |
| 139 | # Code from module unused-parameter: |
| 140 | # Code from module useless-if-before-free: |
| 141 | # Code from module vasnprintf: |
| 142 | # Code from module vc-list-files: |
| 143 | # Code from module verify: |
| 144 | # Code from module version-etc: |
| 145 | # Code from module version-etc-fsf: |
| 146 | # Code from module vsnprintf: |
| 147 | # Code from module warn-on-use: |
| 148 | # Code from module warnings: |
| 149 | # Code from module wchar: |
| 150 | # Code from module write: |
| 151 | # Code from module xsize: |
| 152 | ]) |
| 153 | |
| 154 | # This macro should be invoked from ./configure.ac, in the section |
| 155 | # "Check for header files, types and library functions". |
| 156 | AC_DEFUN([gl_INIT], |
| 157 | [ |
| 158 | AM_CONDITIONAL([GL_COND_LIBTOOL], [true]) |
| 159 | gl_cond_libtool=true |
| 160 | gl_m4_base='m4' |
| 161 | m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ])) |
| 162 | m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS])) |
| 163 | m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES])) |
| 164 | m4_pushdef([gl_LIBSOURCES_LIST], []) |
| 165 | m4_pushdef([gl_LIBSOURCES_DIR], []) |
| 166 | gl_COMMON |
| 167 | gl_source_base='lib' |
| 168 | # Code from module alignof: |
| 169 | # Code from module alloca-opt: |
| 170 | gl_FUNC_ALLOCA |
| 171 | # Code from module announce-gen: |
| 172 | # Code from module arg-nonnull: |
| 173 | # Code from module arpa_inet: |
| 174 | gl_HEADER_ARPA_INET |
| 175 | AC_PROG_MKDIR_P |
| 176 | # Code from module autobuild: |
| 177 | # Code from module byteswap: |
| 178 | gl_BYTESWAP |
| 179 | # Code from module c++defs: |
| 180 | # Code from module c-ctype: |
| 181 | # Code from module c-strcase: |
| 182 | # Code from module c-strcaseeq: |
| 183 | # Code from module canonicalize-lgpl: |
| 184 | gl_CANONICALIZE_LGPL |
| 185 | gl_MODULE_INDICATOR([canonicalize-lgpl]) |
| 186 | gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name]) |
| 187 | gl_STDLIB_MODULE_INDICATOR([realpath]) |
| 188 | # Code from module configmake: |
| 189 | # Code from module duplocale: |
| 190 | gl_FUNC_DUPLOCALE |
| 191 | gl_LOCALE_MODULE_INDICATOR([duplocale]) |
| 192 | # Code from module environ: |
| 193 | gl_ENVIRON |
| 194 | gl_UNISTD_MODULE_INDICATOR([environ]) |
| 195 | # Code from module errno: |
| 196 | gl_HEADER_ERRNO_H |
| 197 | # Code from module extensions: |
| 198 | # Code from module float: |
| 199 | gl_FLOAT_H |
| 200 | # Code from module flock: |
| 201 | gl_FUNC_FLOCK |
| 202 | gl_HEADER_SYS_FILE_MODULE_INDICATOR([flock]) |
| 203 | # Code from module fpieee: |
| 204 | # Code from module full-read: |
| 205 | # Code from module full-write: |
| 206 | # Code from module func: |
| 207 | gl_FUNC |
| 208 | # Code from module gendocs: |
| 209 | # Code from module getaddrinfo: |
| 210 | gl_GETADDRINFO |
| 211 | gl_NETDB_MODULE_INDICATOR([getaddrinfo]) |
| 212 | # Code from module gettext-h: |
| 213 | AC_SUBST([LIBINTL]) |
| 214 | AC_SUBST([LTLIBINTL]) |
| 215 | # Code from module git-version-gen: |
| 216 | # Code from module gitlog-to-changelog: |
| 217 | # Code from module gnu-web-doc-update: |
| 218 | # Code from module gnumakefile: |
| 219 | # Autoconf 2.61a.99 and earlier don't support linking a file only |
| 220 | # in VPATH builds. But since GNUmakefile is for maintainer use |
| 221 | # only, it does not matter if we skip the link with older autoconf. |
| 222 | # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH |
| 223 | # builds, so use a shell variable to bypass this. |
| 224 | GNUmakefile=GNUmakefile |
| 225 | m4_if(m4_version_compare([2.61a.100], |
| 226 | m4_defn([m4_PACKAGE_VERSION])), [1], [], |
| 227 | [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [], |
| 228 | [GNUmakefile=$GNUmakefile])]) |
| 229 | # Code from module gnupload: |
| 230 | # Code from module gperf: |
| 231 | # Code from module havelib: |
| 232 | # Code from module hostent: |
| 233 | gl_HOSTENT |
| 234 | # Code from module iconv: |
| 235 | AM_ICONV |
| 236 | # Code from module iconv-h: |
| 237 | gl_ICONV_H |
| 238 | # Code from module iconv_open: |
| 239 | gl_FUNC_ICONV_OPEN |
| 240 | # Code from module iconv_open-utf: |
| 241 | gl_FUNC_ICONV_OPEN_UTF |
| 242 | # Code from module include_next: |
| 243 | # Code from module inet_ntop: |
| 244 | gl_FUNC_INET_NTOP |
| 245 | gl_ARPA_INET_MODULE_INDICATOR([inet_ntop]) |
| 246 | # Code from module inet_pton: |
| 247 | gl_FUNC_INET_PTON |
| 248 | gl_ARPA_INET_MODULE_INDICATOR([inet_pton]) |
| 249 | # Code from module inline: |
| 250 | gl_INLINE |
| 251 | # Code from module isinf: |
| 252 | gl_ISINF |
| 253 | gl_MATH_MODULE_INDICATOR([isinf]) |
| 254 | # Code from module isnan: |
| 255 | gl_ISNAN |
| 256 | gl_MATH_MODULE_INDICATOR([isnan]) |
| 257 | # Code from module isnand: |
| 258 | gl_FUNC_ISNAND |
| 259 | gl_MATH_MODULE_INDICATOR([isnand]) |
| 260 | # Code from module isnanf: |
| 261 | gl_FUNC_ISNANF |
| 262 | gl_MATH_MODULE_INDICATOR([isnanf]) |
| 263 | # Code from module isnanl: |
| 264 | gl_FUNC_ISNANL |
| 265 | gl_MATH_MODULE_INDICATOR([isnanl]) |
| 266 | # Code from module lib-symbol-versions: |
| 267 | gl_LD_VERSION_SCRIPT |
| 268 | # Code from module lib-symbol-visibility: |
| 269 | gl_VISIBILITY |
| 270 | # Code from module libunistring: |
| 271 | gl_LIBUNISTRING |
| 272 | # Code from module localcharset: |
| 273 | gl_LOCALCHARSET |
| 274 | LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\"" |
| 275 | AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT]) |
| 276 | # Code from module locale: |
| 277 | gl_LOCALE_H |
| 278 | # Code from module lstat: |
| 279 | gl_FUNC_LSTAT |
| 280 | gl_SYS_STAT_MODULE_INDICATOR([lstat]) |
| 281 | # Code from module maintainer-makefile: |
| 282 | AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER], |
| 283 | [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])]) |
| 284 | # Code from module malloc-posix: |
| 285 | gl_FUNC_MALLOC_POSIX |
| 286 | gl_STDLIB_MODULE_INDICATOR([malloc-posix]) |
| 287 | # Code from module malloca: |
| 288 | gl_MALLOCA |
| 289 | # Code from module math: |
| 290 | gl_MATH_H |
| 291 | # Code from module mbrlen: |
| 292 | gl_FUNC_MBRLEN |
| 293 | gl_WCHAR_MODULE_INDICATOR([mbrlen]) |
| 294 | # Code from module mbrtowc: |
| 295 | gl_FUNC_MBRTOWC |
| 296 | gl_WCHAR_MODULE_INDICATOR([mbrtowc]) |
| 297 | # Code from module mbsinit: |
| 298 | gl_FUNC_MBSINIT |
| 299 | gl_WCHAR_MODULE_INDICATOR([mbsinit]) |
| 300 | # Code from module memchr: |
| 301 | gl_FUNC_MEMCHR |
| 302 | gl_STRING_MODULE_INDICATOR([memchr]) |
| 303 | # Code from module multiarch: |
| 304 | gl_MULTIARCH |
| 305 | # Code from module netdb: |
| 306 | gl_HEADER_NETDB |
| 307 | # Code from module netinet_in: |
| 308 | gl_HEADER_NETINET_IN |
| 309 | AC_PROG_MKDIR_P |
| 310 | # Code from module pathmax: |
| 311 | gl_PATHMAX |
| 312 | # Code from module putenv: |
| 313 | gl_FUNC_PUTENV |
| 314 | gl_STDLIB_MODULE_INDICATOR([putenv]) |
| 315 | # Code from module readlink: |
| 316 | gl_FUNC_READLINK |
| 317 | gl_UNISTD_MODULE_INDICATOR([readlink]) |
| 318 | # Code from module safe-read: |
| 319 | gl_SAFE_READ |
| 320 | # Code from module safe-write: |
| 321 | gl_SAFE_WRITE |
| 322 | # Code from module servent: |
| 323 | gl_SERVENT |
| 324 | # Code from module size_max: |
| 325 | gl_SIZE_MAX |
| 326 | # Code from module snprintf: |
| 327 | gl_FUNC_SNPRINTF |
| 328 | gl_STDIO_MODULE_INDICATOR([snprintf]) |
| 329 | # Code from module socklen: |
| 330 | gl_TYPE_SOCKLEN_T |
| 331 | # Code from module ssize_t: |
| 332 | gt_TYPE_SSIZE_T |
| 333 | # Code from module stat: |
| 334 | gl_FUNC_STAT |
| 335 | gl_SYS_STAT_MODULE_INDICATOR([stat]) |
| 336 | # Code from module stat-time: |
| 337 | gl_STAT_TIME |
| 338 | gl_STAT_BIRTHTIME |
| 339 | # Code from module stdarg: |
| 340 | gl_STDARG_H |
| 341 | # Code from module stdbool: |
| 342 | AM_STDBOOL_H |
| 343 | # Code from module stddef: |
| 344 | gl_STDDEF_H |
| 345 | # Code from module stdint: |
| 346 | gl_STDINT_H |
| 347 | # Code from module stdio: |
| 348 | gl_STDIO_H |
| 349 | # Code from module stdlib: |
| 350 | gl_STDLIB_H |
| 351 | # Code from module strcase: |
| 352 | gl_STRCASE |
| 353 | # Code from module streq: |
| 354 | # Code from module strftime: |
| 355 | gl_FUNC_GNU_STRFTIME |
| 356 | # Code from module striconveh: |
| 357 | if test $gl_cond_libtool = false; then |
| 358 | gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" |
| 359 | gl_libdeps="$gl_libdeps $LIBICONV" |
| 360 | fi |
| 361 | # Code from module string: |
| 362 | gl_HEADER_STRING_H |
| 363 | # Code from module strings: |
| 364 | gl_HEADER_STRINGS_H |
| 365 | # Code from module sys_file: |
| 366 | gl_HEADER_SYS_FILE_H |
| 367 | AC_PROG_MKDIR_P |
| 368 | # Code from module sys_socket: |
| 369 | gl_HEADER_SYS_SOCKET |
| 370 | AC_PROG_MKDIR_P |
| 371 | # Code from module sys_stat: |
| 372 | gl_HEADER_SYS_STAT_H |
| 373 | AC_PROG_MKDIR_P |
| 374 | # Code from module time: |
| 375 | gl_HEADER_TIME_H |
| 376 | # Code from module time_r: |
| 377 | gl_TIME_R |
| 378 | gl_TIME_MODULE_INDICATOR([time_r]) |
| 379 | # Code from module unistd: |
| 380 | gl_UNISTD_H |
| 381 | # Code from module unistr/base: |
| 382 | gl_LIBUNISTRING_LIBHEADER([0.9.2], [unistr.h]) |
| 383 | # Code from module unistr/u8-mbtouc: |
| 384 | gl_MODULE_INDICATOR([unistr/u8-mbtouc]) |
| 385 | gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtouc]) |
| 386 | # Code from module unistr/u8-mbtouc-unsafe: |
| 387 | gl_MODULE_INDICATOR([unistr/u8-mbtouc-unsafe]) |
| 388 | gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtouc-unsafe]) |
| 389 | # Code from module unistr/u8-mbtoucr: |
| 390 | gl_MODULE_INDICATOR([unistr/u8-mbtoucr]) |
| 391 | gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr]) |
| 392 | # Code from module unistr/u8-prev: |
| 393 | gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-prev]) |
| 394 | # Code from module unistr/u8-uctomb: |
| 395 | gl_MODULE_INDICATOR([unistr/u8-uctomb]) |
| 396 | gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb]) |
| 397 | # Code from module unitypes: |
| 398 | gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h]) |
| 399 | # Code from module unused-parameter: |
| 400 | # Code from module useless-if-before-free: |
| 401 | # Code from module vasnprintf: |
| 402 | gl_FUNC_VASNPRINTF |
| 403 | # Code from module vc-list-files: |
| 404 | # Code from module verify: |
| 405 | # Code from module version-etc: |
| 406 | gl_VERSION_ETC |
| 407 | # Code from module version-etc-fsf: |
| 408 | # Code from module vsnprintf: |
| 409 | gl_FUNC_VSNPRINTF |
| 410 | gl_STDIO_MODULE_INDICATOR([vsnprintf]) |
| 411 | # Code from module warn-on-use: |
| 412 | # Code from module warnings: |
| 413 | AC_SUBST([WARN_CFLAGS]) |
| 414 | # Code from module wchar: |
| 415 | gl_WCHAR_H |
| 416 | # Code from module write: |
| 417 | gl_FUNC_WRITE |
| 418 | gl_UNISTD_MODULE_INDICATOR([write]) |
| 419 | # Code from module xsize: |
| 420 | gl_XSIZE |
| 421 | # End of code from modules |
| 422 | m4_ifval(gl_LIBSOURCES_LIST, [ |
| 423 | m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ || |
| 424 | for gl_file in ]gl_LIBSOURCES_LIST[ ; do |
| 425 | if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then |
| 426 | echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2 |
| 427 | exit 1 |
| 428 | fi |
| 429 | done])dnl |
| 430 | m4_if(m4_sysval, [0], [], |
| 431 | [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) |
| 432 | ]) |
| 433 | m4_popdef([gl_LIBSOURCES_DIR]) |
| 434 | m4_popdef([gl_LIBSOURCES_LIST]) |
| 435 | m4_popdef([AC_LIBSOURCES]) |
| 436 | m4_popdef([AC_REPLACE_FUNCS]) |
| 437 | m4_popdef([AC_LIBOBJ]) |
| 438 | AC_CONFIG_COMMANDS_PRE([ |
| 439 | gl_libobjs= |
| 440 | gl_ltlibobjs= |
| 441 | if test -n "$gl_LIBOBJS"; then |
| 442 | # Remove the extension. |
| 443 | sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 444 | for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do |
| 445 | gl_libobjs="$gl_libobjs $i.$ac_objext" |
| 446 | gl_ltlibobjs="$gl_ltlibobjs $i.lo" |
| 447 | done |
| 448 | fi |
| 449 | AC_SUBST([gl_LIBOBJS], [$gl_libobjs]) |
| 450 | AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs]) |
| 451 | ]) |
| 452 | gltests_libdeps= |
| 453 | gltests_ltlibdeps= |
| 454 | m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ])) |
| 455 | m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS])) |
| 456 | m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES])) |
| 457 | m4_pushdef([gltests_LIBSOURCES_LIST], []) |
| 458 | m4_pushdef([gltests_LIBSOURCES_DIR], []) |
| 459 | gl_COMMON |
| 460 | gl_source_base='tests' |
| 461 | changequote(,)dnl |
| 462 | 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 |
| 463 | changequote([, ])dnl |
| 464 | AC_SUBST([gltests_WITNESS]) |
| 465 | gl_module_indicator_condition=$gltests_WITNESS |
| 466 | m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition]) |
| 467 | m4_popdef([gl_MODULE_INDICATOR_CONDITION]) |
| 468 | m4_ifval(gltests_LIBSOURCES_LIST, [ |
| 469 | m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ || |
| 470 | for gl_file in ]gltests_LIBSOURCES_LIST[ ; do |
| 471 | if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then |
| 472 | echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2 |
| 473 | exit 1 |
| 474 | fi |
| 475 | done])dnl |
| 476 | m4_if(m4_sysval, [0], [], |
| 477 | [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) |
| 478 | ]) |
| 479 | m4_popdef([gltests_LIBSOURCES_DIR]) |
| 480 | m4_popdef([gltests_LIBSOURCES_LIST]) |
| 481 | m4_popdef([AC_LIBSOURCES]) |
| 482 | m4_popdef([AC_REPLACE_FUNCS]) |
| 483 | m4_popdef([AC_LIBOBJ]) |
| 484 | AC_CONFIG_COMMANDS_PRE([ |
| 485 | gltests_libobjs= |
| 486 | gltests_ltlibobjs= |
| 487 | if test -n "$gltests_LIBOBJS"; then |
| 488 | # Remove the extension. |
| 489 | sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 490 | for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do |
| 491 | gltests_libobjs="$gltests_libobjs $i.$ac_objext" |
| 492 | gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" |
| 493 | done |
| 494 | fi |
| 495 | AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs]) |
| 496 | AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs]) |
| 497 | ]) |
| 498 | ]) |
| 499 | |
| 500 | # Like AC_LIBOBJ, except that the module name goes |
| 501 | # into gl_LIBOBJS instead of into LIBOBJS. |
| 502 | AC_DEFUN([gl_LIBOBJ], [ |
| 503 | AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl |
| 504 | gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext" |
| 505 | ]) |
| 506 | |
| 507 | # Like AC_REPLACE_FUNCS, except that the module name goes |
| 508 | # into gl_LIBOBJS instead of into LIBOBJS. |
| 509 | AC_DEFUN([gl_REPLACE_FUNCS], [ |
| 510 | m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl |
| 511 | AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)]) |
| 512 | ]) |
| 513 | |
| 514 | # Like AC_LIBSOURCES, except the directory where the source file is |
| 515 | # expected is derived from the gnulib-tool parameterization, |
| 516 | # and alloca is special cased (for the alloca-opt module). |
| 517 | # We could also entirely rely on EXTRA_lib..._SOURCES. |
| 518 | AC_DEFUN([gl_LIBSOURCES], [ |
| 519 | m4_foreach([_gl_NAME], [$1], [ |
| 520 | m4_if(_gl_NAME, [alloca.c], [], [ |
| 521 | m4_define([gl_LIBSOURCES_DIR], [lib]) |
| 522 | m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ]) |
| 523 | ]) |
| 524 | ]) |
| 525 | ]) |
| 526 | |
| 527 | # Like AC_LIBOBJ, except that the module name goes |
| 528 | # into gltests_LIBOBJS instead of into LIBOBJS. |
| 529 | AC_DEFUN([gltests_LIBOBJ], [ |
| 530 | AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl |
| 531 | gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext" |
| 532 | ]) |
| 533 | |
| 534 | # Like AC_REPLACE_FUNCS, except that the module name goes |
| 535 | # into gltests_LIBOBJS instead of into LIBOBJS. |
| 536 | AC_DEFUN([gltests_REPLACE_FUNCS], [ |
| 537 | m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl |
| 538 | AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)]) |
| 539 | ]) |
| 540 | |
| 541 | # Like AC_LIBSOURCES, except the directory where the source file is |
| 542 | # expected is derived from the gnulib-tool parameterization, |
| 543 | # and alloca is special cased (for the alloca-opt module). |
| 544 | # We could also entirely rely on EXTRA_lib..._SOURCES. |
| 545 | AC_DEFUN([gltests_LIBSOURCES], [ |
| 546 | m4_foreach([_gl_NAME], [$1], [ |
| 547 | m4_if(_gl_NAME, [alloca.c], [], [ |
| 548 | m4_define([gltests_LIBSOURCES_DIR], [tests]) |
| 549 | m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ]) |
| 550 | ]) |
| 551 | ]) |
| 552 | ]) |
| 553 | |
| 554 | # This macro records the list of files which have been installed by |
| 555 | # gnulib-tool and may be removed by future gnulib-tool invocations. |
| 556 | AC_DEFUN([gl_FILE_LIST], [ |
| 557 | build-aux/announce-gen |
| 558 | build-aux/arg-nonnull.h |
| 559 | build-aux/c++defs.h |
| 560 | build-aux/config.rpath |
| 561 | build-aux/gendocs.sh |
| 562 | build-aux/git-version-gen |
| 563 | build-aux/gitlog-to-changelog |
| 564 | build-aux/gnu-web-doc-update |
| 565 | build-aux/gnupload |
| 566 | build-aux/unused-parameter.h |
| 567 | build-aux/useless-if-before-free |
| 568 | build-aux/vc-list-files |
| 569 | build-aux/warn-on-use.h |
| 570 | doc/gendocs_template |
| 571 | lib/alignof.h |
| 572 | lib/alloca.in.h |
| 573 | lib/arpa_inet.in.h |
| 574 | lib/asnprintf.c |
| 575 | lib/byteswap.in.h |
| 576 | lib/c-ctype.c |
| 577 | lib/c-ctype.h |
| 578 | lib/c-strcase.h |
| 579 | lib/c-strcasecmp.c |
| 580 | lib/c-strcaseeq.h |
| 581 | lib/c-strncasecmp.c |
| 582 | lib/canonicalize-lgpl.c |
| 583 | lib/config.charset |
| 584 | lib/duplocale.c |
| 585 | lib/errno.in.h |
| 586 | lib/float+.h |
| 587 | lib/float.in.h |
| 588 | lib/flock.c |
| 589 | lib/full-read.c |
| 590 | lib/full-read.h |
| 591 | lib/full-write.c |
| 592 | lib/full-write.h |
| 593 | lib/gai_strerror.c |
| 594 | lib/getaddrinfo.c |
| 595 | lib/gettext.h |
| 596 | lib/iconv.c |
| 597 | lib/iconv.in.h |
| 598 | lib/iconv_close.c |
| 599 | lib/iconv_open-aix.gperf |
| 600 | lib/iconv_open-hpux.gperf |
| 601 | lib/iconv_open-irix.gperf |
| 602 | lib/iconv_open-osf.gperf |
| 603 | lib/iconv_open-solaris.gperf |
| 604 | lib/iconv_open.c |
| 605 | lib/iconveh.h |
| 606 | lib/inet_ntop.c |
| 607 | lib/inet_pton.c |
| 608 | lib/isinf.c |
| 609 | lib/isnan.c |
| 610 | lib/isnand.c |
| 611 | lib/isnanf.c |
| 612 | lib/isnanl.c |
| 613 | lib/libunistring.valgrind |
| 614 | lib/localcharset.c |
| 615 | lib/localcharset.h |
| 616 | lib/locale.in.h |
| 617 | lib/lstat.c |
| 618 | lib/malloc.c |
| 619 | lib/malloca.c |
| 620 | lib/malloca.h |
| 621 | lib/malloca.valgrind |
| 622 | lib/math.in.h |
| 623 | lib/mbrlen.c |
| 624 | lib/mbrtowc.c |
| 625 | lib/mbsinit.c |
| 626 | lib/memchr.c |
| 627 | lib/memchr.valgrind |
| 628 | lib/netdb.in.h |
| 629 | lib/netinet_in.in.h |
| 630 | lib/pathmax.h |
| 631 | lib/printf-args.c |
| 632 | lib/printf-args.h |
| 633 | lib/printf-parse.c |
| 634 | lib/printf-parse.h |
| 635 | lib/putenv.c |
| 636 | lib/readlink.c |
| 637 | lib/ref-add.sin |
| 638 | lib/ref-del.sin |
| 639 | lib/safe-read.c |
| 640 | lib/safe-read.h |
| 641 | lib/safe-write.c |
| 642 | lib/safe-write.h |
| 643 | lib/size_max.h |
| 644 | lib/snprintf.c |
| 645 | lib/stat-time.h |
| 646 | lib/stat.c |
| 647 | lib/stdarg.in.h |
| 648 | lib/stdbool.in.h |
| 649 | lib/stddef.in.h |
| 650 | lib/stdint.in.h |
| 651 | lib/stdio-write.c |
| 652 | lib/stdio.in.h |
| 653 | lib/stdlib.in.h |
| 654 | lib/strcasecmp.c |
| 655 | lib/streq.h |
| 656 | lib/strftime.c |
| 657 | lib/strftime.h |
| 658 | lib/striconveh.c |
| 659 | lib/striconveh.h |
| 660 | lib/string.in.h |
| 661 | lib/strings.in.h |
| 662 | lib/strncasecmp.c |
| 663 | lib/sys_file.in.h |
| 664 | lib/sys_socket.in.h |
| 665 | lib/sys_stat.in.h |
| 666 | lib/time.in.h |
| 667 | lib/time_r.c |
| 668 | lib/unistd.in.h |
| 669 | lib/unistr.in.h |
| 670 | lib/unistr/u8-mbtouc-aux.c |
| 671 | lib/unistr/u8-mbtouc-unsafe-aux.c |
| 672 | lib/unistr/u8-mbtouc-unsafe.c |
| 673 | lib/unistr/u8-mbtouc.c |
| 674 | lib/unistr/u8-mbtoucr.c |
| 675 | lib/unistr/u8-prev.c |
| 676 | lib/unistr/u8-uctomb-aux.c |
| 677 | lib/unistr/u8-uctomb.c |
| 678 | lib/unitypes.in.h |
| 679 | lib/vasnprintf.c |
| 680 | lib/vasnprintf.h |
| 681 | lib/verify.h |
| 682 | lib/version-etc-fsf.c |
| 683 | lib/version-etc.c |
| 684 | lib/version-etc.h |
| 685 | lib/vsnprintf.c |
| 686 | lib/wchar.in.h |
| 687 | lib/write.c |
| 688 | lib/xsize.h |
| 689 | m4/00gnulib.m4 |
| 690 | m4/absolute-header.m4 |
| 691 | m4/alloca.m4 |
| 692 | m4/arpa_inet_h.m4 |
| 693 | m4/asm-underscore.m4 |
| 694 | m4/autobuild.m4 |
| 695 | m4/byteswap.m4 |
| 696 | m4/canonicalize.m4 |
| 697 | m4/check-math-lib.m4 |
| 698 | m4/codeset.m4 |
| 699 | m4/dos.m4 |
| 700 | m4/double-slash-root.m4 |
| 701 | m4/duplocale.m4 |
| 702 | m4/eealloc.m4 |
| 703 | m4/environ.m4 |
| 704 | m4/errno_h.m4 |
| 705 | m4/exponentd.m4 |
| 706 | m4/exponentf.m4 |
| 707 | m4/exponentl.m4 |
| 708 | m4/extensions.m4 |
| 709 | m4/fcntl-o.m4 |
| 710 | m4/float_h.m4 |
| 711 | m4/flock.m4 |
| 712 | m4/fpieee.m4 |
| 713 | m4/func.m4 |
| 714 | m4/getaddrinfo.m4 |
| 715 | m4/glibc21.m4 |
| 716 | m4/gnulib-common.m4 |
| 717 | m4/hostent.m4 |
| 718 | m4/iconv.m4 |
| 719 | m4/iconv_h.m4 |
| 720 | m4/iconv_open.m4 |
| 721 | m4/include_next.m4 |
| 722 | m4/inet_ntop.m4 |
| 723 | m4/inet_pton.m4 |
| 724 | m4/inline.m4 |
| 725 | m4/intmax_t.m4 |
| 726 | m4/inttypes_h.m4 |
| 727 | m4/isinf.m4 |
| 728 | m4/isnan.m4 |
| 729 | m4/isnand.m4 |
| 730 | m4/isnanf.m4 |
| 731 | m4/isnanl.m4 |
| 732 | m4/ld-version-script.m4 |
| 733 | m4/lib-ld.m4 |
| 734 | m4/lib-link.m4 |
| 735 | m4/lib-prefix.m4 |
| 736 | m4/libunistring-base.m4 |
| 737 | m4/libunistring.m4 |
| 738 | m4/localcharset.m4 |
| 739 | m4/locale-fr.m4 |
| 740 | m4/locale-ja.m4 |
| 741 | m4/locale-zh.m4 |
| 742 | m4/locale_h.m4 |
| 743 | m4/longlong.m4 |
| 744 | m4/lstat.m4 |
| 745 | m4/malloc.m4 |
| 746 | m4/malloca.m4 |
| 747 | m4/math_h.m4 |
| 748 | m4/mbrlen.m4 |
| 749 | m4/mbrtowc.m4 |
| 750 | m4/mbsinit.m4 |
| 751 | m4/mbstate_t.m4 |
| 752 | m4/memchr.m4 |
| 753 | m4/mmap-anon.m4 |
| 754 | m4/multiarch.m4 |
| 755 | m4/netdb_h.m4 |
| 756 | m4/netinet_in_h.m4 |
| 757 | m4/pathmax.m4 |
| 758 | m4/printf.m4 |
| 759 | m4/putenv.m4 |
| 760 | m4/readlink.m4 |
| 761 | m4/safe-read.m4 |
| 762 | m4/safe-write.m4 |
| 763 | m4/servent.m4 |
| 764 | m4/size_max.m4 |
| 765 | m4/snprintf.m4 |
| 766 | m4/socklen.m4 |
| 767 | m4/sockpfaf.m4 |
| 768 | m4/ssize_t.m4 |
| 769 | m4/stat-time.m4 |
| 770 | m4/stat.m4 |
| 771 | m4/stdarg.m4 |
| 772 | m4/stdbool.m4 |
| 773 | m4/stddef_h.m4 |
| 774 | m4/stdint.m4 |
| 775 | m4/stdint_h.m4 |
| 776 | m4/stdio_h.m4 |
| 777 | m4/stdlib_h.m4 |
| 778 | m4/strcase.m4 |
| 779 | m4/strftime.m4 |
| 780 | m4/string_h.m4 |
| 781 | m4/strings_h.m4 |
| 782 | m4/sys_file_h.m4 |
| 783 | m4/sys_socket_h.m4 |
| 784 | m4/sys_stat_h.m4 |
| 785 | m4/time_h.m4 |
| 786 | m4/time_r.m4 |
| 787 | m4/tm_gmtoff.m4 |
| 788 | m4/unistd_h.m4 |
| 789 | m4/vasnprintf.m4 |
| 790 | m4/version-etc.m4 |
| 791 | m4/visibility.m4 |
| 792 | m4/vsnprintf.m4 |
| 793 | m4/warn-on-use.m4 |
| 794 | m4/warnings.m4 |
| 795 | m4/wchar_h.m4 |
| 796 | m4/wchar_t.m4 |
| 797 | m4/wint_t.m4 |
| 798 | m4/write.m4 |
| 799 | m4/xsize.m4 |
| 800 | top/GNUmakefile |
| 801 | top/maint.mk |
| 802 | ]) |