~ubuntu-branches/ubuntu/precise/soqt/precise

« back to all changes in this revision

Viewing changes to cfg/m4/compile_symbols.m4

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2004-10-11 22:00:26 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041011220026-s682y1my72drwkkh
Tags: 1.2.0-2
configure: Don't quote "$LD", it breaks the build.  
Closes: #269669, 274275.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
############################################################################
2
 
# Usage:
3
 
#   SIM_AC_DEBUGSYMBOLS
4
 
#
5
 
# Description:
6
 
#   Let the user decide if debug symbol information should be compiled
7
 
#   in. The compiled libraries/executables will use a lot less space
8
 
#   if stripped for their symbol information.
9
 
10
 
#   Note: this macro must be placed after either AC_PROG_CC or AC_PROG_CXX
11
 
#   in the configure.in script.
12
 
13
 
# Author: Morten Eriksen, <mortene@sim.no>.
14
 
15
 
 
16
 
AC_DEFUN([SIM_AC_DEBUGSYMBOLS], [
17
 
AC_ARG_ENABLE(
18
 
  [symbols],
19
 
  AC_HELP_STRING([--enable-symbols],
20
 
                 [include symbol debug information [[default=yes]]]),
21
 
  [case "${enableval}" in
22
 
    yes) enable_symbols=yes ;;
23
 
    no)  enable_symbols=no ;;
24
 
    *) AC_MSG_ERROR(bad value "${enableval}" for --enable-symbols) ;;
25
 
  esac],
26
 
  [enable_symbols=yes])
27
 
 
28
 
# FIXME: don't mangle options like -fno-gnu-linker and -fvolatile-global
29
 
# 20020104 larsa
30
 
if test x"$enable_symbols" = x"no"; then
31
 
  # CPPFLAGS="`echo $CPPFLAGS | sed 's/-g\>//'`"
32
 
  CFLAGS="`echo $CFLAGS | sed 's/-g\>//'`"
33
 
  CXXFLAGS="`echo $CXXFLAGS | sed 's/-g\>//'`"
34
 
fi
35
 
]) # SIM_AC_DEBUGSYMBOLS
36