From 2c961cecb008de61eb0fdd220f406d08a788ee55 Mon Sep 17 00:00:00 2001 From: Tim Rice Date: Mon, 23 Sep 2002 16:54:10 -0700 Subject: [configure.ac] s/return/exit/ patch by dtucker@zip.com.au From autoconf guidelines: "Test programs should exit, not return, from main, because on some systems (old Suns, at least) the argument to return in main is ignored." --- ChangeLog | 5 ++++- configure.ac | 12 ++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index e99748ece..1f9ef0251 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +20020923 + - (tim) [configure.ac] s/return/exit/ patch by dtucker@zip.com.au + 20020922 - (djm) OpenBSD CVS Sync - stevesk@cvs.openbsd.org 2002/09/19 14:53:14 @@ -693,4 +696,4 @@ save auth method before monitor_reset_key_state(); bugzilla bug #284; ok provos@ -$Id: ChangeLog,v 1.2475 2002/09/21 15:26:51 djm Exp $ +$Id: ChangeLog,v 1.2476 2002/09/23 23:54:10 tim Exp $ diff --git a/configure.ac b/configure.ac index 84e6adec4..f88d993e6 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -# $Id: configure.ac,v 1.87 2002/09/12 00:33:00 djm Exp $ +# $Id: configure.ac,v 1.88 2002/09/23 23:54:12 tim Exp $ AC_INIT AC_CONFIG_SRCDIR([ssh.c]) @@ -497,7 +497,7 @@ AC_TRY_RUN( [ #include #include -int main(void){struct dirent d;return(sizeof(d.d_name)<=sizeof(char));} +int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} ], [AC_MSG_RESULT(yes)], [ @@ -528,7 +528,7 @@ AC_ARG_WITH(skey, [ #include #include -int main() { char *ff = skey_keyinfo(""); ff=""; return 0; } +int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } ], [AC_MSG_RESULT(yes)], [ @@ -668,7 +668,7 @@ if test "x$ac_cv_func_snprintf" = "xyes" ; then AC_TRY_RUN( [ #include -int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');} +int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} ], [AC_MSG_RESULT(yes)], [ @@ -851,7 +851,7 @@ AC_TRY_RUN( [ #include #include -int main(void) { return(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } +int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } ], [ AC_MSG_RESULT(yes) @@ -877,7 +877,7 @@ AC_TRY_RUN( [ #include #include -int main(void) { return(RAND_status() == 1 ? 0 : 1); } +int main(void) { exit(RAND_status() == 1 ? 0 : 1); } ], [ OPENSSL_SEEDS_ITSELF=yes -- cgit v1.2.3