… | |
… | |
78 | AC_CACHE_CHECK(for fexecve, ac_cv_fexecve, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
78 | AC_CACHE_CHECK(for fexecve, ac_cv_fexecve, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
79 | #include <fcntl.h> |
79 | #include <fcntl.h> |
80 | #include <unistd.h> |
80 | #include <unistd.h> |
81 | int main (void) |
81 | int main (void) |
82 | { |
82 | { |
|
|
83 | char *const argv[] = { "foo", "bar", 0 }; |
83 | int res = fexecve (-1, "argv", 0); |
84 | int res = fexecve (-1, argv, 0); |
84 | return 0; |
85 | return 0; |
85 | } |
86 | } |
86 | ]])],ac_cv_fexecve=yes,ac_cv_fexecve=no)]) |
87 | ]])],ac_cv_fexecve=yes,ac_cv_fexecve=no)]) |
87 | test $ac_cv_fexecve = yes && AC_DEFINE(HAVE_FEXECVE, 1, fexecve(2) is available) |
88 | test $ac_cv_fexecve = yes && AC_DEFINE(HAVE_FEXECVE, 1, fexecve(2) is available) |
88 | |
89 | |