new parameter -s textonly
[swftools.git] / m4 / backticks.m4
1 AC_DEFUN([RFX_CHECK_SYSTEM_BACKTICKS],
2 [
3 AC_MSG_CHECKING([whether system() can handle command substitution])
4 AC_TRY_RUN([
5 #include "stdlib.h"
6 int main (int argc, char*argv[])
7 {
8     return system("test `touch config.tmp2`");
9 }
10 ], [OK=OK],,[CROSSCOMPILE=1])
11
12 if test "x${OK}" = "xOK";then
13     test -f config.tmp2 || OK=
14 fi
15
16 if test "x${CROSSCOMPILE}" = "x1";then
17     OK=no;
18 fi
19 if test "x${OK}" = "xOK";then
20 rm -f config.tmp2
21 AC_MSG_RESULT(yes)
22 SYSTEM_BACKTICKS=1
23 export SYSTEM_BACKTICKS
24 AC_DEFINE([SYSTEM_BACKTICKS], [1], [Define if system handles command substitution])
25 else
26 AC_MSG_RESULT(no)
27 fi
28 ])
29
30