diff options
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | dir.c | 2 | ||||
-rw-r--r-- | rule.c | 4 |
3 files changed, 4 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac index beaad13..2ba81ad 100644 --- a/configure.ac +++ b/configure.ac @@ -141,7 +141,7 @@ AS_IF([test "$ac_cv_func_gettimeofday" = yes], ]) AC_CHECK_FUNCS([strdup strndup mkstemp mktemp fdopen fileno \ - dup2 getcwd realpath sigsetmask sigaction \ + dup dup2 getcwd realpath sigsetmask sigaction \ getgroups seteuid setegid setlinebuf setreuid setregid \ getrlimit setrlimit setvbuf pipe strerror strsignal \ lstat readlink atexit]) @@ -351,13 +351,13 @@ AS_IF([test "$make_cv_load" = yes], [ AC_MSG_CHECKING([If the linker accepts -Wl,--export-dynamic]) old_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -Wl,--export-dynamic" - AC_LINK_IFELSE([int main(){}], + AC_LINK_IFELSE([AC_LANG_SOURCE([int main(){}])], [AC_MSG_RESULT([yes]) AC_SUBST([AM_LDFLAGS], [-Wl,--export-dynamic])], [AC_MSG_RESULT([no]) AC_MSG_CHECKING([If the linker accepts -rdynamic]) LDFLAGS="$old_LDFLAGS -rdynamic" - AC_LINK_IFELSE([int main(){}], + AC_LINK_IFELSE([AC_LANG_SOURCE([int main(){}])], [AC_MSG_RESULT([yes]) AC_SUBST([AM_LDFLAGS], [-rdynamic])], [AC_MSG_RESULT([no])]) @@ -581,7 +581,6 @@ static int dir_contents_file_exists_p (struct directory_contents *dir, const char *filename) { - unsigned int hash; struct dirfile *df; struct dirent *d; #ifdef WINDOWS32 @@ -610,7 +609,6 @@ dir_contents_file_exists_p (struct directory_contents *dir, filename = vmsify (filename,0); #endif - hash = 0; if (filename != 0) { struct dirfile dirfile_key; @@ -70,7 +70,7 @@ count_implicit_rule_limits (void) { char *name; int namelen; - struct rule *rule, *lastrule; + struct rule *rule; num_pattern_rules = max_pattern_targets = max_pattern_deps = 0; max_pattern_dep_length = 0; @@ -78,7 +78,6 @@ count_implicit_rule_limits (void) name = 0; namelen = 0; rule = pattern_rules; - lastrule = 0; while (rule != 0) { unsigned int ndeps = 0; @@ -138,7 +137,6 @@ count_implicit_rule_limits (void) if (ndeps > max_pattern_deps) max_pattern_deps = ndeps; - lastrule = rule; rule = next; } |