Disable debuginfo by default on Solaris and OSX
authorMichael Jeanson <mjeanson@efficios.com>
Sat, 23 Apr 2016 13:59:14 +0000 (09:59 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 25 Apr 2016 16:23:37 +0000 (12:23 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
configure.ac

index 55a438b2b470dfb8fa820bdb05e7359b3c3a0931..2160ffe9b6e18926fcd04eaeca58d9ccfd37068d 100644 (file)
@@ -139,12 +139,18 @@ AC_CHECK_FUNCS([ \
        uname \
 ])
 
-# Check for MinGW32.
 MINGW32=no
-case $host in
-  *-*-mingw*)
-       MINGW32=yes;;
-esac
+DEFAULT_ENABLE_DEBUGINFO=yes
+AS_CASE([$host_os],
+  [solaris*|darwin*],
+    [
+       DEFAULT_ENABLE_DEBUGINFO=no
+    ],
+  [mingw*],
+    [
+       MINGW32=yes
+    ]
+)
 
 AM_CONDITIONAL([BABELTRACE_BUILD_WITH_MINGW], [test "x$MINGW32" = "xyes"])
 
@@ -271,7 +277,10 @@ if test "x${enable_python_bindings_doc:-yes}" = xyes; then
 fi
 
 # Optional debuginfo feature (enabled by default)
-AC_ARG_ENABLE([debuginfo], [AC_HELP_STRING([--disable-debuginfo], [disable the debuginfo feature])], [], [enable_debuginfo=yes])
+AS_IF([test "x$DEFAULT_ENABLE_DEBUGINFO" = xyes],
+    [AC_ARG_ENABLE([debuginfo], [AC_HELP_STRING([--disable-debuginfo], [disable the debuginfo feature])], [], [enable_debuginfo=yes])],
+    [AC_ARG_ENABLE([debuginfo], [AC_HELP_STRING([--enable-debuginfo], [enable the debuginfo feature])], [], [enable_debuginfo=no])]
+)
 
 AM_CONDITIONAL([ENABLE_DEBUGINFO], [test "x$enable_debuginfo" = xyes])
 AS_IF([test "x$enable_debuginfo" = xyes], [
This page took 0.025808 seconds and 4 git commands to generate.