From: Jan Djärv Date: Sat, 10 Dec 2011 12:33:07 +0000 (+0100) Subject: * configure.in (HAVE_ALSA, HAVE_GSETTINGS): Save and restore LIBS X-Git-Tag: emacs-pretest-24.0.93~193 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=46d14be75497324f8420cf7a610733e75ccddc7c;p=emacs.git * configure.in (HAVE_ALSA, HAVE_GSETTINGS): Save and restore LIBS instead of LDFLAGS. Fixes: debbugs:10230 --- diff --git a/ChangeLog b/ChangeLog index 7ab026afb50..5d74b5bafcd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-12-10 Jan Djärv + + * configure.in (HAVE_ALSA, HAVE_GSETTINGS): Save and restore LIBS + instead of LDFLAGS (Bug#10230). + 2011-12-03 Paul Eggert * INSTALL.BZR: Mention configure -C, --disable-maintainer-mode. diff --git a/configure.in b/configure.in index 20dbf2b509e..53c219c0923 100644 --- a/configure.in +++ b/configure.in @@ -1174,9 +1174,9 @@ if test "${with_sound}" != "no"; then PKG_CHECK_MODULES(ALSA, $ALSA_MODULES, HAVE_ALSA=yes, HAVE_ALSA=no) if test $HAVE_ALSA = yes; then SAVE_CFLAGS="$CFLAGS" - SAVE_LDFLAGS="$LDFLAGS" + SAVE_LIBS="$LIBS" CFLAGS="$ALSA_CFLAGS $CFLAGS" - LDFLAGS="$ALSA_LIBS $LDFLAGS" + LIBS="$ALSA_LIBS $LIBS" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[snd_lib_error_set_handler (0);]])], emacs_alsa_normal=yes, emacs_alsa_normal=no) @@ -1192,7 +1192,7 @@ if test "${with_sound}" != "no"; then fi CFLAGS="$SAVE_CFLAGS" - LDFLAGS="$SAVE_LDFLAGS" + LIBS="$SAVE_LIBS" LIBSOUND="$LIBSOUND $ALSA_LIBS" CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" AC_DEFINE(HAVE_ALSA, 1, [Define to 1 if ALSA is available.]) @@ -2039,12 +2039,12 @@ fi if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then SAVE_CFLAGS="$CFLAGS" - SAVE_LDFLAGS="$LDFLAGS" + SAVE_LIBS="$LIBS" CFLAGS="$SETTINGS_CFLAGS $CFLAGS" - LDFLAGS="$SETTINGS_LIBS $LDFLAGS" + LIBS="$SETTINGS_LIBS $LIBS" AC_CHECK_FUNCS([g_type_init]) CFLAGS="$SAVE_CFLAGS" - LDFLAGS="$SAVE_LDFLAGS" + LIBS="$SAVE_LIBS" fi AC_SUBST(SETTINGS_CFLAGS) AC_SUBST(SETTINGS_LIBS)