diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-05-04 16:07:19 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-05-04 16:07:19 +0000 |
commit | a139ce901aa626f70107c2aba863837c696128f0 (patch) | |
tree | 1269d8da3a301d37351e1606f93ce80ce78525ed /configure.ac | |
parent | 74319571135e617f848fb738018aed7a46aab6d4 (diff) | |
download | curl-a139ce901aa626f70107c2aba863837c696128f0.tar.gz |
the writable argv check now should not exit when building a cross-compiled
curl
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index b74c33bf2..9c9e27341 100644 --- a/configure.ac +++ b/configure.ac @@ -349,15 +349,17 @@ dnl Check if the operating system allows programs to write to their own argv[] dnl ********************************************************************** AC_MSG_CHECKING([if argv can be written to]) -AC_TRY_RUN([ +AC_RUN_IFELSE([[ int main(int argc, char ** argv) { argv[0][0] = ' '; return (argv[0][0] == ' ')?0:1; } - ], + ]], AC_DEFINE(HAVE_WRITABLE_ARGV, 1, [Define this symbol if your OS supports changing the contents of argv]) AC_MSG_RESULT(yes), - AC_MSG_RESULT(no) + AC_MSG_RESULT(no), + AC_MSG_RESULT(no) + AC_MSG_WARN([the previous check could not be made default was used]) ) dnl ********************************************************************** |