diff --git a/configure.ac b/configure.ac index 180dd2d056..3af440e542 100644 --- a/configure.ac +++ b/configure.ac @@ -959,7 +959,7 @@ AC_MSG_CHECKING(for working sem_init()) AC_RUN_IFELSE([AC_LANG_SOURCE([[#include main () { sem_t s; - exit(sem_init(&s,0,0)); + return sem_init(&s,0,0); } ]])],[AC_DEFINE(WORKING_SEM_INIT,1,[Define this if sem_init() works on the platform]) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no) @@ -991,7 +991,7 @@ if test "$ac_cv_sys_file_offset_bits" = "no"; then AC_MSG_CHECKING(for native large file support) AC_RUN_IFELSE([AC_LANG_SOURCE([[#include main () { - exit(!(sizeof(off_t) == 8)); + return !(sizeof(off_t) == 8); }]])],[ac_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)],[]) fi @@ -1033,7 +1033,7 @@ main () { char a; union { long long x; sem_t y; } b; }; - exit((int)&((struct s*)0)->b); + return (int)&((struct s*)0)->b; }]])],[ac_cv_c_alignment=$ac_status],[ac_cv_c_alignment=$ac_status],[]) AC_MSG_RESULT($ac_cv_c_alignment) AC_DEFINE_UNQUOTED(FB_ALIGNMENT, $ac_cv_c_alignment, [Alignment of long]) @@ -1044,7 +1044,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[main () { char a; double b; }; - exit((int)&((struct s*)0)->b); + return (int)&((struct s*)0)->b; }]])],[ac_cv_c_double_align=$ac_status],[ac_cv_c_double_align=$ac_status],[]) AC_MSG_RESULT($ac_cv_c_double_align) AC_DEFINE_UNQUOTED(FB_DOUBLE_ALIGN, $ac_cv_c_double_align, [Alignment of double])