Commits

Jesús Cea  committed c5c3b3b Draft

When compiled without dtrace, say it so at configure time

  • Participants
  • Parent commits 9963a83
  • Branches dtrace-issue13405

Comments (0)

Files changed (2)

 # Check for dtrace support
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
 $as_echo_n "checking for --with-dtrace... " >&6; }
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
-$as_echo "$with_dtrace" >&6; }
 
 # Check whether --with-dtrace was given.
 if test "${with_dtrace+set}" = set; then :
   withval=$with_dtrace;
-fi
-
+else
+  with_dtrace=no
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
+$as_echo "$with_dtrace" >&6; }
 
 
 
 
 DTRACE=
 DFLAGS=
-if test ! -z "$with_dtrace"
+if test "$with_dtrace" = "yes"
 then
     DTRACE_NM=OTHER
     DTRACE_LINKER=ld

File configure.ac

 
 # Check for dtrace support
 AC_MSG_CHECKING(for --with-dtrace)
+AC_ARG_WITH(dtrace,
+  AC_HELP_STRING(--with(out)-dtrace, disable/enable dtrace support),,
+  with_dtrace=no)
 AC_MSG_RESULT($with_dtrace)
-AC_ARG_WITH(dtrace,
-            AC_HELP_STRING(--with(out)-dtrace, disable/enable dtrace support))
 
 AC_SUBST(DTRACE)
 AC_SUBST(DFLAGS)
 AC_SUBST(DTRACE_LINKER)
 DTRACE=
 DFLAGS=
-if test ! -z "$with_dtrace"
+if test "$with_dtrace" = "yes"
 then
     DTRACE_NM=OTHER
     DTRACE_LINKER=ld