(MU_HEADER): Prevent multiple inclusions.
Showing
1 changed file
with
9 additions
and
0 deletions
... | @@ -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,[ | ... | ... |
-
Please register or sign in to post a comment