Mercurial > vim
comparison src/auto/configure @ 29446:ef4f17d97ad0 v9.0.0065
patch 9.0.0065: cross-compiling doesn't work because of timer_create check
Commit: https://github.com/vim/vim/commit/509695c1c3f5c94bf4b1de5dd0fc11202804f638
Author: Richard Purdie <richard.purdie@linuxfoundation.org>
Date: Sun Jul 24 20:48:00 2022 +0100
patch 9.0.0065: cross-compiling doesn't work because of timer_create check
Problem: Cross-compiling doesn't work because of timer_create check.
Solution: Use AC_CACHE_CHECK(). (Richard Purdie, closes https://github.com/vim/vim/issues/10777)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 24 Jul 2022 22:00:03 +0200 |
parents | 653bdd2b1fa1 |
children | e6d788e0c121 |
comparison
equal
deleted
inserted
replaced
29445:84a8c41c9d12 | 29446:ef4f17d97ad0 |
---|---|
13037 fi | 13037 fi |
13038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 13038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13039 | 13039 |
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timer_create" >&5 | 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timer_create" >&5 |
13041 $as_echo_n "checking for timer_create... " >&6; } | 13041 $as_echo_n "checking for timer_create... " >&6; } |
13042 save_LIBS="$LIBS" | 13042 if ${vim_cv_timer_create+:} false; then : |
13043 $as_echo_n "(cached) " >&6 | |
13044 else | |
13045 save_LIBS="$LIBS" | |
13043 LIBS="$LIBS -lrt" | 13046 LIBS="$LIBS -lrt" |
13044 if test "$cross_compiling" = yes; then : | 13047 if test "$cross_compiling" = yes; then : |
13045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 13048 as_fn_error $? "cross-compiling: please set 'vim_cv_timer_create'" "$LINENO" 5 |
13046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 13049 |
13047 as_fn_error $? "cannot run test program while cross compiling | |
13048 See \`config.log' for more details" "$LINENO" 5; } | |
13049 else | 13050 else |
13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 13051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13051 /* end confdefs.h. */ | 13052 /* end confdefs.h. */ |
13052 | 13053 |
13053 #include<signal.h> | 13054 #include<signal.h> |
13070 ; | 13071 ; |
13071 return 0; | 13072 return 0; |
13072 } | 13073 } |
13073 _ACEOF | 13074 _ACEOF |
13074 if ac_fn_c_try_run "$LINENO"; then : | 13075 if ac_fn_c_try_run "$LINENO"; then : |
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -lrt" >&5 | 13076 { $as_echo "$as_me:${as_lineno-$LINENO}: timer_create with -lrt" >&5 |
13076 $as_echo "yes; with -lrt" >&6; }; $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h | 13077 $as_echo "$as_me: timer_create with -lrt" >&6;}; vim_cv_timer_create=yes |
13077 | |
13078 else | 13078 else |
13079 LIBS="$save_LIBS" | 13079 LIBS="$save_LIBS" |
13080 if test "$cross_compiling" = yes; then : | 13080 if test "$cross_compiling" = yes; then : |
13081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 13081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
13082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 13082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
13106 ; | 13106 ; |
13107 return 0; | 13107 return 0; |
13108 } | 13108 } |
13109 _ACEOF | 13109 _ACEOF |
13110 if ac_fn_c_try_run "$LINENO"; then : | 13110 if ac_fn_c_try_run "$LINENO"; then : |
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 13111 vim_cv_timer_create=yes |
13112 $as_echo "yes" >&6; }; $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h | 13112 else |
13113 | 13113 vim_cv_timer_create=no |
13114 else | |
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13116 $as_echo "no" >&6; } | |
13117 fi | 13114 fi |
13118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 13115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13119 conftest.$ac_objext conftest.beam conftest.$ac_ext | 13116 conftest.$ac_objext conftest.beam conftest.$ac_ext |
13120 fi | 13117 fi |
13121 | 13118 |
13122 fi | 13119 fi |
13123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 13120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13124 conftest.$ac_objext conftest.beam conftest.$ac_ext | 13121 conftest.$ac_objext conftest.beam conftest.$ac_ext |
13122 fi | |
13123 | |
13124 | |
13125 fi | |
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_timer_create" >&5 | |
13127 $as_echo "$vim_cv_timer_create" >&6; } | |
13128 | |
13129 if test "x$vim_cv_timer_create" = "xyes" ; then | |
13130 $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h | |
13131 | |
13125 fi | 13132 fi |
13126 | 13133 |
13127 | 13134 |
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 | 13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 |
13129 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } | 13136 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } |