autoconf: Add --with-ccache option
authorCyrill Gorcunov <gorcunov@gmail.com>
Thu, 11 Nov 2010 08:18:44 +0000 (11:18 +0300)
committerCyrill Gorcunov <gorcunov@gmail.com>
Thu, 11 Nov 2010 19:44:02 +0000 (22:44 +0300)
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
configure.in

index c23bac1..8c6a429 100644 (file)
@@ -152,5 +152,14 @@ if test $ac_cv_prog_make_vpathok = no; then
   done
 fi
 
+dnl
+dnl support cchace
+dnl
+AC_ARG_WITH([ccache],
+            [AC_HELP_STRING([--with-ccache],
+                            [Compile with ccache])],
+          [CC="ccache $CC"],
+          [])
+
 AC_OUTPUT_COMMANDS([mkdir -p output])
 AC_OUTPUT(Makefile rdoff/Makefile doc/Makefile)