diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-11-17 22:19:45 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-11-17 22:19:45 +0100 |
commit | 43937ca8e234eff50d5813eab6e24884efa85065 (patch) | |
tree | b6f107db05be9478181b0939f41b62fffba729ec /gl | |
parent | a60a3281bf46567700190a0e637843aa0c1ba2e5 (diff) | |
download | libtasn1-43937ca8e234eff50d5813eab6e24884efa85065.tar.gz libtasn1-43937ca8e234eff50d5813eab6e24884efa85065.tar.bz2 libtasn1-43937ca8e234eff50d5813eab6e24884efa85065.zip |
Update gnulib files.
Diffstat (limited to 'gl')
-rw-r--r-- | gl/m4/gnulib-comp.m4 | 4 | ||||
-rw-r--r-- | gl/m4/warnings.m4 | 21 |
2 files changed, 13 insertions, 12 deletions
diff --git a/gl/m4/gnulib-comp.m4 b/gl/m4/gnulib-comp.m4 index b7648a2..403b309 100644 --- a/gl/m4/gnulib-comp.m4 +++ b/gl/m4/gnulib-comp.m4 @@ -15,7 +15,7 @@ # In projects using CVS, this file can be treated like other built files. -# This macro should be invoked from ./configure.in, in the section +# This macro should be invoked from ./configure.ac, in the section # "Checks for programs", right after AC_PROG_CC, and certainly before # any checks for libraries, header files, types and library functions. AC_DEFUN([gl_EARLY], @@ -34,7 +34,7 @@ AC_DEFUN([gl_EARLY], AC_REQUIRE([AC_PROG_CC_STDC]) ]) -# This macro should be invoked from ./configure.in, in the section +# This macro should be invoked from ./configure.ac, in the section # "Check for header files, types and library functions". AC_DEFUN([gl_INIT], [ diff --git a/gl/m4/warnings.m4 b/gl/m4/warnings.m4 index f836793..3585c3e 100644 --- a/gl/m4/warnings.m4 +++ b/gl/m4/warnings.m4 @@ -29,12 +29,12 @@ m4_ifdef([AS_VAR_APPEND], AC_DEFUN([gl_WARN_ADD], [AS_VAR_PUSHDEF([gl_Warn], [gl_cv_warn_$1])dnl AC_CACHE_CHECK([whether compiler handles $1], [gl_Warn], [ - save_CFLAGS="$CFLAGS" - CFLAGS="${CFLAGS} $1" + save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="${CPPFLAGS} $1" AC_PREPROC_IFELSE([AC_LANG_PROGRAM([])], [AS_VAR_SET([gl_Warn], [yes])], [AS_VAR_SET([gl_Warn], [no])]) - CFLAGS="$save_CFLAGS" + CPPFLAGS="$save_CPPFLAGS" ]) AS_VAR_PUSHDEF([gl_Flags], m4_if([$2], [], [[WARN_CFLAGS]], [[$2]]))dnl gl_AS_VAR_IF([gl_Warn], [yes], [gl_AS_VAR_APPEND([gl_Flags], [" $1"])]) @@ -114,16 +114,17 @@ AC_DEFUN([gl_WARN_SUPPORTED], # does OUTVAR = LISTVAR \ REMOVEVAR. AC_DEFUN([gl_WARN_COMPLEMENT], [ - FOO= - set -- "$2" - for w in $_; do - case "$3" in - *" $w "* | *" $w" | "$w "*) + gl_warn_set= + set x $2; shift + for gl_warn_item + do + case " $3 " in + *" $gl_warn_item "*) ;; *) - FOO="$FOO $w" + gl_warn_set="$gl_warn_set $gl_warn_item" ;; esac done - $1=$FOO + $1=$gl_warn_set ]) |