diff options
author | Martin Schwenke <martin@meltin.net> | 2011-12-16 12:43:34 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-06-05 04:27:36 +0200 |
commit | b7754f4bf7f1204e02baf6086c3cbbd7c6ebf1d9 (patch) | |
tree | aab81bd035a91331a518e2543cd7fd9b8aeee2e2 /source3 | |
parent | d99bbb52e7763601a638ae24033e4b46691582be (diff) | |
download | samba-b7754f4bf7f1204e02baf6086c3cbbd7c6ebf1d9.tar.gz samba-b7754f4bf7f1204e02baf6086c3cbbd7c6ebf1d9.tar.bz2 samba-b7754f4bf7f1204e02baf6086c3cbbd7c6ebf1d9.zip |
s3:build(autoconf): fix "no AC_LANG_SOURCE call detected" warnings
Autoconf 2.68 NEWS says:
** The macros AC_PREPROC_IFELSE, AC_COMPILE_IFELSE, AC_LINK_IFELSE, and
AC_RUN_IFELSE now warn if the first argument failed to use
AC_LANG_SOURCE or AC_LANG_PROGRAM to generate the conftest file
contents. A new macro AC_LANG_DEFINES_PROVIDED exists if you have
a compelling reason why you cannot use AC_LANG_SOURCE but must
avoid the warning.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/configure.in | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/source3/configure.in b/source3/configure.in index 153c8874d2..671fdf1a63 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -1203,11 +1203,11 @@ fi AC_CACHE_CHECK([whether we can compile with __attribute__((destructor))], samba_cv_function_attribute_destructor, [ - AC_COMPILE_IFELSE( + AC_COMPILE_IFELSE([AC_LANG_SOURCE( [ __attribute__((destructor)) static void cleanup(void) { } - ], + ])], samba_cv_function_attribute_destructor=yes) ]) @@ -5373,44 +5373,44 @@ samba_cv_HAVE_AIO=yes,samba_cv_HAVE_AIO=no) AC_DEFINE(WITH_AIO, 1, [Using asynchronous io]) LIBS=$AIO_LIBS AC_MSG_CHECKING(for aio_read) - AC_LINK_IFELSE([#include <aio.h> -int main() { struct aiocb a; return aio_read(&a); }], + AC_LINK_IFELSE([AC_LANG_SOURCE([#include <aio.h> +int main() { struct aiocb a; return aio_read(&a); }])], [AC_DEFINE(HAVE_AIO_READ, 1, [Have aio_read]) AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)]) AC_MSG_CHECKING(for aio_write) - AC_LINK_IFELSE([#include <aio.h> -int main() { struct aiocb a; return aio_write(&a); }], + AC_LINK_IFELSE([AC_LANG_SOURCE([#include <aio.h> +int main() { struct aiocb a; return aio_write(&a); }])], [AC_DEFINE(HAVE_AIO_WRITE, 1, [Have aio_write]) AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)]) AC_MSG_CHECKING(for aio_fsync) - AC_LINK_IFELSE([#include <aio.h> -int main() { struct aiocb a; return aio_fsync(1, &a); }], + AC_LINK_IFELSE([AC_LANG_SOURCE([#include <aio.h> +int main() { struct aiocb a; return aio_fsync(1, &a); }])], [AC_DEFINE(HAVE_AIO_FSYNC, 1, [Have aio_fsync]) AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)]) AC_MSG_CHECKING(for aio_return) - AC_LINK_IFELSE([#include <aio.h> -int main() { struct aiocb a; return aio_return(&a); }], + AC_LINK_IFELSE([AC_LANG_SOURCE([#include <aio.h> +int main() { struct aiocb a; return aio_return(&a); }])], [AC_DEFINE(HAVE_AIO_RETURN, 1, [Have aio_return]) AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)]) AC_MSG_CHECKING(for aio_error) - AC_LINK_IFELSE([#include <aio.h> -int main() { struct aiocb a; return aio_error(&a); }], + AC_LINK_IFELSE([AC_LANG_SOURCE([#include <aio.h> +int main() { struct aiocb a; return aio_error(&a); }])], [AC_DEFINE(HAVE_AIO_ERROR, 1, [Have aio_error]) AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)]) AC_MSG_CHECKING(for aio_cancel) - AC_LINK_IFELSE([#include <aio.h> -int main() { struct aiocb a; return aio_cancel(1, &a); }], + AC_LINK_IFELSE([AC_LANG_SOURCE([#include <aio.h> +int main() { struct aiocb a; return aio_cancel(1, &a); }])], [AC_DEFINE(HAVE_AIO_CANCEL, 1, [Have aio_cancel]) AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)]) AC_MSG_CHECKING(for aio_suspend) - AC_LINK_IFELSE([#include <aio.h> -int main() { struct aiocb a; return aio_suspend(&a, 1, NULL); }], + AC_LINK_IFELSE([AC_LANG_SOURCE([#include <aio.h> +int main() { struct aiocb a; return aio_suspend(&a, 1, NULL); }])], [AC_DEFINE(HAVE_AIO_SUSPEND, 1, [Have aio_suspend]) AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)]) fi |