--- a/configure.ac	(révision 1466)
+++ b/configure.ac	(révision 1467)
@@ -161,41 +161,58 @@
 
 
 # pptrace stuff
+use_pptrace=yes
+AC_ARG_WITH(pptrace, [AS_HELP_STRING([--with-pptrace], [Use PPtrace for instrumenting])],
+        [
+                if test x$withval != xno; then
+                        if test x$withval = xyes; then
+				use_pptrace=yes
+                                AC_MSG_RESULT(yes)
+                        fi
+                else
+                        AC_MSG_RESULT(no)
+			use_pptrace=no
+                fi
+        ])
+
 pptrace_lib_found=no
 pptrace_binary_type=0
-AC_ARG_WITH([pptrace-binary-type],
-            [AS_HELP_STRING([--with-pptrace-binary-type],
-               [use pptrace-binary-type (bfd or elf)])],
-            [
-               if test x$withval = xelf; then
-                     AC_CHECK_LIB(elf, elf_begin, [pptrace_binary_type=2], AC_MSG_ERROR([Error! You need to have libelf]) )
-                     AC_MSG_RESULT(using elf binary type)
-               else if test x$withval = xbfd; then
-                        AC_CHECK_LIB(bfd, bfd_release, [pptrace_binary_type=1], AC_MSG_ERROR([Error! You need to have libbfd]) )
-                        AC_MSG_RESULT(using bfd binary type)
-                     else
-				            AC_MSG_ERROR([Unknown binary type])
-                     fi
-               fi
-            ],
-            [
-               AC_CHECK_LIB(bfd, bfd_release, 
-               [
-	          pptrace_lib_found=yes
-                  AC_MSG_RESULT(bfd is present: use bfd binary type)
-                  pptrace_binary_type=1], 
-               [
-                  AC_CHECK_LIB(elf, elf_begin, 
-                  [                  
-	             pptrace_lib_found=yes
-                     pptrace_binary_type=2
-                     AC_MSG_RESULT(bfd not present: use elf binary type)
-                  ],
-                  [
-		       PPTRACE_LIB_FOUND=no
-                  ])
-               ])
-            ])
+if test $use_pptrace = yes ; then
+  AC_ARG_WITH([pptrace-binary-type],
+              [AS_HELP_STRING([--with-pptrace-binary-type],
+                 [use pptrace-binary-type (bfd or elf)])],
+              [
+                 if test x$withval = xelf; then
+                       AC_CHECK_LIB(elf, elf_begin, [pptrace_binary_type=2], AC_MSG_ERROR([Error! You need to have libelf]) )
+                       AC_MSG_RESULT(using elf binary type)
+                 else if test x$withval = xbfd; then
+                          AC_CHECK_LIB(bfd, bfd_release, [pptrace_binary_type=1], AC_MSG_ERROR([Error! You need to have libbfd]) )
+                          AC_MSG_RESULT(using bfd binary type)
+                       else
+  				            AC_MSG_ERROR([Unknown binary type])
+                       fi
+                 fi
+              ],
+              [
+                 AC_CHECK_LIB(bfd, bfd_release,
+                 [
+  	          pptrace_lib_found=yes
+                    AC_MSG_RESULT(bfd is present: use bfd binary type)
+                    pptrace_binary_type=1], 
+                 [
+                    AC_CHECK_LIB(elf, elf_begin, 
+                    [
+  	             pptrace_lib_found=yes
+                       pptrace_binary_type=2
+                       AC_MSG_RESULT(bfd not present: use elf binary type)
+                    ],
+                    [
+  		       PPTRACE_LIB_FOUND=no
+                    ])
+                 ])
+              ])
+fi
+
 AM_CONDITIONAL([USE_PPTRACE], [test "$pptrace_lib_found" = yes])
 AM_CONDITIONAL([USE_LIBELF], [test "$pptrace_binary_type" = 2])
 AC_SUBST(PPTRACE_BINARY_TYPE, $pptrace_binary_type)
