Commit fc4b1c93 fc4b1c937aba8d1c8a999f654a6641adce4188c4 by Sergey Poznyakoff

(MU_HEADER): Prevent multiple inclusions.

1 parent f59d09cc
...@@ -32,8 +32,17 @@ AC_DEFUN(MU_CHECK_FUNCS,[ ...@@ -32,8 +32,17 @@ AC_DEFUN(MU_CHECK_FUNCS,[
32 32
33 AC_SUBST(GNU_INCLS) 33 AC_SUBST(GNU_INCLS)
34 AC_DEFUN(MU_HEADER,[ 34 AC_DEFUN(MU_HEADER,[
35 pushdef([mu_upcase],translit($1,[a-z-],[A-Z_]))
36 pushdef([mu_cache_var],[mu_cv_header_]translit($1,[-./],[___]))
37
38 if test x"[$]mu_cache_var" != xyes; then
35 mu_header_list="$mu_header_list include/mailutils/gnu/$1:headers/$1" 39 mu_header_list="$mu_header_list include/mailutils/gnu/$1:headers/$1"
36 GNU_INCLS="$GNU_INCLS $1" 40 GNU_INCLS="$GNU_INCLS $1"
41 mu_cache_var=yes
42 fi
43
44 popdef([mu_upcase])
45 popdef([mu_cache_var])
37 ]) 46 ])
38 47
39 AC_DEFUN(MU_FINISH_LINKS,[ 48 AC_DEFUN(MU_FINISH_LINKS,[
......