Fixed typo and incorrect translation in the dpkg-dev translation.
[dpkg.git] / m4 / linker.m4
blob9ac16c4ed7a60bde0e9af63bfe1d766f918c97e4
1 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3 # SJR_LINKER_OPTIMISATIONS
4 # --------------------------
5 # Add configure option to disable linker optimisations.
6 AC_DEFUN([SJR_LINKER_OPTIMISATIONS],
7 [AC_ARG_ENABLE(linker-optimisations,
8         AS_HELP_STRING([--disable-linker-optimisations],
9                        [Disable linker optimisations]),
10 [if test "x$enable_linker_optimisations" = "xno"; then
11         [LDFLAGS=`echo "$LDFLAGS" | sed -e "s/ -Wl,-O[0-9]*\b//g"`]
12 else
13         [LDFLAGS="$LDFLAGS -Wl,-O1"]
14 fi], [LDFLAGS="$LDFLAGS -Wl,-O1"])dnl