~p-ch-e/gnuhello/gnuhello

« back to all changes in this revision

Viewing changes to gnulib/m4/warn-on-use.m4

  • Committer: Reuben Thomas
  • Date: 2011-12-17 11:23:38 UTC
  • Revision ID: rrt@sc3d.org-20111217112338-kurwdy8nu69g3t6f
Update gnulib and convert .cvsignore to .bzrignore.

        * gnulib: Update.
        * .bzrignore: Add.
        * .cvsignore: Remove.
        * contrib/.cvsignore: Likewise.
        * doc/.cvsignore: Likewise.
        * man/.cvsignore: Likewise.
        * po/.cvsignore: Likewise.
        * src/.cvsignore: Likewise.
        * tests/.cvsignore: Likewise.
        * build/mkinstalldirs: Remove: no longer needed.
        * po: Update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# warn-on-use.m4 serial 2
 
1
# warn-on-use.m4 serial 4
2
2
dnl Copyright (C) 2010-2011 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
27
27
    [AH_TEMPLATE([HAVE_RAW_DECL_]AS_TR_CPP(m4_defn([gl_decl])),
28
28
      [Define to 1 if ]m4_defn([gl_decl])[ is declared even after
29
29
       undefining macros.])])dnl
 
30
dnl FIXME: gl_Symbol must be used unquoted until we can assume
 
31
dnl autoconf 2.64 or newer.
30
32
  for gl_func in m4_flatten([$2]); do
31
33
    AS_VAR_PUSHDEF([gl_Symbol], [gl_cv_have_raw_decl_$gl_func])dnl
32
34
    AC_CACHE_CHECK([whether $gl_func is declared without a macro],
35
37
[@%:@undef $gl_func
36
38
  (void) $gl_func;])],
37
39
        [AS_VAR_SET(gl_Symbol, [yes])], [AS_VAR_SET(gl_Symbol, [no])])])
38
 
     AS_VAR_IF(gl_Symbol, [yes],
39
 
       [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_RAW_DECL_$gl_func]), [1])
 
40
    AS_VAR_IF(gl_Symbol, [yes],
 
41
      [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_RAW_DECL_$gl_func]), [1])
40
42
       dnl shortcut - if the raw declaration exists, then set a cache
41
43
       dnl variable to allow skipping any later AC_CHECK_DECL efforts
42
44
       eval ac_cv_have_decl_$gl_func=yes])