Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a01e3b4
)
Configure check for -Wno-unused-parameter now tries to link too.
author
Wayne Davison
<wayned@samba.org>
Thu, 31 Dec 2009 03:57:47 +0000
(19:57 -0800)
committer
Wayne Davison
<wayned@samba.org>
Thu, 31 Dec 2009 03:59:49 +0000
(19:59 -0800)
configure.in
patch
|
blob
|
blame
|
history
diff --git
a/configure.in
b/configure.in
index
347168a
..
9de88d1
100644
(file)
--- a/
configure.in
+++ b/
configure.in
@@
-1012,7
+1012,7
@@
if test x"$enable_acl_support" = x"no" -o x"$enable_xattr_support" = x"no" -o x"
AC_MSG_CHECKING([whether $CC supports -Wno-unused-parameter])
OLD_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wno-unused-parameter"
AC_MSG_CHECKING([whether $CC supports -Wno-unused-parameter])
OLD_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wno-unused-parameter"
- AC_
COMPILE_IFELSE([
], [rsync_warn_flag=yes], [rsync_warn_flag=no])
+ AC_
TRY_LINK([#include <stdio.h>], [printf("hello\n");
], [rsync_warn_flag=yes], [rsync_warn_flag=no])
AC_MSG_RESULT([$rsync_warn_flag])
if test x"$rsync_warn_flag" = x"no"; then
CFLAGS="$OLD_CFLAGS"
AC_MSG_RESULT([$rsync_warn_flag])
if test x"$rsync_warn_flag" = x"no"; then
CFLAGS="$OLD_CFLAGS"