Browse code

fts: use AC_COMPILE_IFELSE instead AC_TRY_RUN

AC_TRY_RUN is obsolte and this is also bad for cross-compiling. The main
reason why I try get rid of it is because this code will segfault due to
the first NULL pointer.
In the end we what to figure out if the FTS implementation compiles with
LFS so there is no need to execute that. Just try to compile it.

Patch-Name: fts-no-use-AC_TRY_RUN.patch
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: Mickey Sola <msola@sourcefire.com>

Sebastian Andrzej Siewior authored on 2017/07/08 02:28:14
Showing 1 changed files
... ...
@@ -1,5 +1,5 @@
1 1
 AC_MSG_CHECKING([LFS safe fts implementation])
2
-AC_TRY_RUN( [
2
+AC_COMPILE_IFELSE( [
3 3
 #include <fts.h>
4 4
 
5 5
 int main(void) {