]> git.saurik.com Git - cycript.git/commitdiff
Darwin proves that we need to check the version of GNU tar.
authorDouglas William Thrift <douglas@douglasthrift.net>
Sun, 18 Apr 2010 12:24:05 +0000 (12:24 +0000)
committerDouglas William Thrift <douglas@douglasthrift.net>
Sun, 18 Apr 2010 12:24:05 +0000 (12:24 +0000)
GNUmakefile.in
configure
configure.ac

index 7c114f6da15859a41fd044d4b649a6046b4675d2..165cf9cd74fd5308c6824fe88ee9fc8c75ff89e5 100644 (file)
@@ -239,7 +239,7 @@ test: cycript
        if [[ -e jquery.js ]]; then $(time) ./cycript -c jquery.js >jquery.cyc.js; gzip -9c jquery.cyc.js >jquery.cyc.js.gz; wc -c jquery.{mam,gcc,cyc,bak,yui}.js; wc -c jquery.{cyc,gcc,bak,mam,yui}.js.gz; fi
        if [[ -e test.cy ]]; then ./cycript test.cy; fi
 
        if [[ -e jquery.js ]]; then $(time) ./cycript -c jquery.js >jquery.cyc.js; gzip -9c jquery.cyc.js >jquery.cyc.js.gz; wc -c jquery.{mam,gcc,cyc,bak,yui}.js; wc -c jquery.{cyc,gcc,bak,mam,yui}.js.gz; fi
        if [[ -e test.cy ]]; then ./cycript test.cy; fi
 
-ifneq ($(gnutar),)
+ifneq ($(gnutar),:)
 dist:
        echo -n >> $(tarname).tar.gz
        $(gnutar) -cC $(srcdir) -f $(tarname).tar.gz -vX <($(svn) propget svn:ignore $(srcdir)) -z --exclude-vcs --show-transformed-names --transform='s#^\.#$(tarname)#' .
 dist:
        echo -n >> $(tarname).tar.gz
        $(gnutar) -cC $(srcdir) -f $(tarname).tar.gz -vX <($(svn) propget svn:ignore $(srcdir)) -z --exclude-vcs --show-transformed-names --transform='s#^\.#$(tarname)#' .
index 627206ba07f43848b26d1e3b45e1b147336a480b..b0f3928ac4c67fb473912c2becb0464671f2777f 100755 (executable)
--- a/configure
+++ b/configure
@@ -10323,8 +10323,8 @@ esac
   done
 IFS=$as_save_IFS
   if test -z "$ac_cv_path_BISON"; then
   done
 IFS=$as_save_IFS
   if test -z "$ac_cv_path_BISON"; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
-$as_echo "not found" >&6; }
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
                as_fn_error "You need bison 2.3 or greater" "$LINENO" 5
 
   fi
                as_fn_error "You need bison 2.3 or greater" "$LINENO" 5
 
   fi
@@ -10375,8 +10375,8 @@ esac
   done
 IFS=$as_save_IFS
   if test -z "$ac_cv_path_FLEX"; then
   done
 IFS=$as_save_IFS
   if test -z "$ac_cv_path_FLEX"; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
-$as_echo "not found" >&6; }
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
                as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
 
   fi
                as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
 
   fi
@@ -10427,8 +10427,8 @@ esac
   done
 IFS=$as_save_IFS
   if test -z "$ac_cv_path_GPERF"; then
   done
 IFS=$as_save_IFS
   if test -z "$ac_cv_path_GPERF"; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
-$as_echo "not found" >&6; }
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
                as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5
 
   fi
                as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5
 
   fi
@@ -10534,8 +10534,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
 
 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU tar" >&5
-$as_echo_n "checking for GNU tar... " >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU tar >=1.19" >&5
+$as_echo_n "checking for GNU tar >=1.19... " >&6; }
 if test -z "$GNUTAR"; then
   ac_path_GNUTAR_found=false
   # Loop through the user's path and test for each of PROGNAME-LIST
 if test -z "$GNUTAR"; then
   ac_path_GNUTAR_found=false
   # Loop through the user's path and test for each of PROGNAME-LIST
 
        if test "x`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar)/&/p;d'`" != x; then :
 
 
        if test "x`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar)/&/p;d'`" != x; then :
 
-               ac_cv_path_GNUTAR=$ac_path_GNUTAR
+               as_arg_v1=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
+as_arg_v2=1.19
+awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
+case $? in #(
+  1) :
+     ;; #(
+  0) :
+
+                       ac_cv_path_GNUTAR=$ac_path_GNUTAR
+                ;; #(
+  2) :
+
+                       ac_cv_path_GNUTAR=$ac_path_GNUTAR
+                ;; #(
+  *) :
+     ;;
+esac
 
 fi
 
 
 fi
 
@@ -10578,8 +10594,8 @@ else
 
        GNUTAR=:
 
 
        GNUTAR=:
 
-       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
-$as_echo "not found" >&6; }
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
 
 fi
 for ac_prog in svn
 
 fi
 for ac_prog in svn
@@ -13071,11 +13087,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:13074: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:13090: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:13078: \$? = $ac_status" >&5
+   echo "$as_me:13094: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -13170,11 +13186,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:13173: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:13189: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:13177: \$? = $ac_status" >&5
+   echo "$as_me:13193: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -13222,11 +13238,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:13225: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:13241: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:13229: \$? = $ac_status" >&5
+   echo "$as_me:13245: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
index a57a830150a1551e93260e2d51e6a3032fac928a..5e2edca8bd8736a26ecea318daac6b07a29b4b05 100644 (file)
@@ -19,7 +19,7 @@ AC_DEFUN([CY_CHECK_PROGS_VERSION], [
                        ac_cv_path_]$1[=$ac_path_]$1[
                )
        ,
                        ac_cv_path_]$1[=$ac_path_]$1[
                )
        ,
-               AC_MSG_RESULT(not found)
+               AC_MSG_RESULT(no)
                AC_MSG_ERROR(You need ]$2[ ]$5[ or greater)
        )
        AC_SUBST(]$1[, $ac_cv_path_]$1[)
                AC_MSG_ERROR(You need ]$2[ ]$5[ or greater)
        )
        AC_SUBST(]$1[, $ac_cv_path_]$1[)
@@ -35,10 +35,14 @@ AC_ARG_VAR([GPERF], [perfect hash function generator])
 CY_CHECK_PROGS_VERSION([GPERF], [gperf], [gperf],
        [--version | $SED -e '1 s/^.* \(@<:@0-9.@:>@*\)$/\1/p;d'], [3.0.3])
 AC_PROG_INSTALL
 CY_CHECK_PROGS_VERSION([GPERF], [gperf], [gperf],
        [--version | $SED -e '1 s/^.* \(@<:@0-9.@:>@*\)$/\1/p;d'], [3.0.3])
 AC_PROG_INSTALL
-AC_MSG_CHECKING([for GNU tar])
+AC_MSG_CHECKING([for GNU tar >=1.19])
 AC_PATH_PROGS_FEATURE_CHECK([GNUTAR], [tar gtar gnutar], [
        AS_IF([test "x`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar)/&/p;d'`" != x], [
 AC_PATH_PROGS_FEATURE_CHECK([GNUTAR], [tar gtar gnutar], [
        AS_IF([test "x`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar)/&/p;d'`" != x], [
-               ac_cv_path_GNUTAR=$ac_path_GNUTAR
+               AS_VERSION_COMPARE([`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`], [1.19], , [
+                       ac_cv_path_GNUTAR=$ac_path_GNUTAR
+               ], [
+                       ac_cv_path_GNUTAR=$ac_path_GNUTAR
+               ])
        ])
 ])
 AS_IF([test "x$ac_cv_path_GNUTAR" != x], [
        ])
 ])
 AS_IF([test "x$ac_cv_path_GNUTAR" != x], [
@@ -46,7 +50,7 @@ AS_IF([test "x$ac_cv_path_GNUTAR" != x], [
        AC_MSG_RESULT([$GNUTAR])
 ], [
        AC_SUBST([GNUTAR], [:])
        AC_MSG_RESULT([$GNUTAR])
 ], [
        AC_SUBST([GNUTAR], [:])
-       AC_MSG_RESULT([not found])
+       AC_MSG_RESULT([no])
 ])
 AC_CHECK_PROGS([SVN], [svn])
 AC_CHECK_PROGS([SVNVERSION], [svnversion])
 ])
 AC_CHECK_PROGS([SVN], [svn])
 AC_CHECK_PROGS([SVNVERSION], [svnversion])