Changes:
xxxx/xx/xx: Version 10.0.4 - Sebastien Godard (sysstat <at> orange.fr)
+ * configure script updated: Added --disable-stripping option.
+ Using this option tells configure to NOT strip object files.
* NLS updated. Serbian translation added.
2011/11/27: Version 10.0.3 - Sebastien Godard (sysstat <at> orange.fr)
# Compiler flags
CFLAGS = @CFLAGS@ -Wall -Wstrict-prototypes -pipe -O2
DFLAGS = @DFLAGS@
-LFLAGS = -s
+LFLAGS = @STRIP@
DFLAGS += -DSA_DIR=\"$(SA_DIR)\" -DSADC_PATH=\"$(SADC_PATH)\"
DFLAGS += $(DFSENSORS)
--- /dev/null
+
+Answer y if you don't want binaries to be stripped.
+This will result in commands being slightly bigger but may be
+necessary for debugging purposes.
+Default answer is n here (binaries will be stripped).
+
ac_subst_vars='LTLIBOBJS
LIBOBJS
+STRIP
DFLAGS
WITH_DEBUG
INSTALL_DOC
enable_install_cron
enable_documentation
enable_debuginfo
+enable_stripping
'
ac_precious_vars='build_alias
host_alias
--enable-install-cron install a crontab to start sar
--disable-documentation do not install documentation
--enable-debuginfo enable debug output (--debuginfo option)
+ --disable-stripping do not strip object files
Some influential environment variables:
CC C compiler command
# --enable-debuginfo enable debug output (--debuginfo option)
# --disable-documentation do not install documentation (man pages...)
# --disable-sensors do not link against libsensors even if available
+# --disable-stripping do not strip object files
#
# Some influential environment variables:
# rcdir directory where startup scripts are installed
+# Check whether object files should be stripped
+{ $as_echo "$as_me:$LINENO: checking whether object files should be stripped" >&5
+$as_echo_n "checking whether object files should be stripped... " >&6; }
+# Check whether --enable-stripping was given.
+if test "${enable_stripping+set}" = set; then
+ enableval=$enable_stripping; AUX_STRIP=$enableval
+else
+ AUX_STRIP=yes
+fi
+
+if test $AUX_STRIP != "no"; then
+ AUX_STRIP="yes"
+ STRIP="-s"
+else
+ AUX_STRIP="no"
+ STRIP=
+fi
+{ $as_echo "$as_me:$LINENO: result: $AUX_STRIP" >&5
+$as_echo "$AUX_STRIP" >&6; }
+
+# National Language Support
+#AC_MSG_CHECKING(National Language Support)
+#AC_ARG_ENABLE(nls,
+# AC_HELP_STRING([--disable-nls],
+# [disable National Language Support]),
+# AUX_NLS=$enableval,AUX_NLS=yes)
+#if test $AUX_NLS != "no" && test $HAVE_LIBINTL_H && test $HAVE_LOCALE_H; then
+# AUX_NLS="yes"
+# NLS="y"
+#else
+# AUX_NLS="no"
+# NLS="n"
+#fi
+#AC_MSG_RESULT($AUX_NLS)
+#AC_SUBST(NLS)
+
# Create files
echo .
echo Now create files:
# --enable-debuginfo enable debug output (--debuginfo option)
# --disable-documentation do not install documentation (man pages...)
# --disable-sensors do not link against libsensors even if available
+# --disable-stripping do not strip object files
#
# Some influential environment variables:
# rcdir directory where startup scripts are installed
AC_SUBST(WITH_DEBUG)
AC_SUBST(DFLAGS)
+# Check whether object files should be stripped
+AC_MSG_CHECKING(whether object files should be stripped)
+AC_ARG_ENABLE(stripping,
+ AC_HELP_STRING([--disable-stripping],
+ [do not strip object files]),
+ AUX_STRIP=$enableval,AUX_STRIP=yes)
+if test $AUX_STRIP != "no"; then
+ AUX_STRIP="yes"
+ STRIP="-s"
+else
+ AUX_STRIP="no"
+ STRIP=
+fi
+AC_MSG_RESULT($AUX_STRIP)
+AC_SUBST(STRIP)
+# National Language Support
+#AC_MSG_CHECKING(National Language Support)
+#AC_ARG_ENABLE(nls,
+# AC_HELP_STRING([--disable-nls],
+# [disable National Language Support]),
+# AUX_NLS=$enableval,AUX_NLS=yes)
+#if test $AUX_NLS != "no" && test $HAVE_LIBINTL_H && test $HAVE_LOCALE_H; then
+# AUX_NLS="yes"
+# NLS="y"
+#else
+# AUX_NLS="no"
+# NLS="n"
+#fi
+#AC_MSG_RESULT($AUX_NLS)
+#AC_SUBST(NLS)
+
# Create files
echo .
echo Now create files:
#!/bin/sh
#@(#) Configuration script for sysstat
-# (C) 2000-2010 Sebastien GODARD (sysstat <at> orange.fr)
+# (C) 2000-2012 Sebastien GODARD (sysstat <at> orange.fr)
ASK="sh build/Ask.sh"
echo "Parameter --enable-install-isag is NOT set"
fi
+# Strip object files
+STRIP=`${ASK} 'Do not strip object files? (y/n)' "--disable-stripping" "stripping"`
+if [ "${STRIP}" = "y" ]; then
+ STRIP="--disable-stripping "
+else
+ STRIP=""
+ echo "Parameter --disable-stripping is NOT set"
+fi
+
echo
echo "./configure ${PREFIX}${SA_LIB_DIR}${SA_DIR}${SYSCONFIG_DIR}${CLEAN_SA_DIR}${NLS} \
${YESTERDAY}${HISTORY}${COMPRESSAFTER}${MAN}${IGNORE_MAN}${CRON}${RCDIR} \
-${COMPRESSMANPG}${INSTALL_DOC}${DEBUGINFO}${INSTALL_ISAG}${SENSORS}"
+${COMPRESSMANPG}${INSTALL_DOC}${DEBUGINFO}${INSTALL_ISAG}${SENSORS}${STRIP}"
echo
./configure ${PREFIX}${SA_LIB_DIR}${SA_DIR}${SYSCONFIG_DIR}${CLEAN_SA_DIR}${NLS} \
${YESTERDAY}${HISTORY}${COMPRESSAFTER}${MAN}${IGNORE_MAN}${CRON}${RCDIR} \
-${COMPRESSMANPG}${INSTALL_DOC}${DEBUGINFO}${INSTALL_ISAG}${SENSORS}
+${COMPRESSMANPG}${INSTALL_DOC}${DEBUGINFO}${INSTALL_ISAG}${SENSORS}${STRIP}