diff options
| author | Glenn Morris | 2013-07-27 06:17:30 -0400 |
|---|---|---|
| committer | Glenn Morris | 2013-07-27 06:17:30 -0400 |
| commit | 9dabd86d4b2af464a25148321bebeadf6a8e53f3 (patch) | |
| tree | a9e13f1da1dfde765a83e922e0cb844eef1a0dd6 | |
| parent | 885e792c90bd0e34e017d3913b8453f5bbfdf1fe (diff) | |
| download | emacs-9dabd86d4b2af464a25148321bebeadf6a8e53f3.tar.gz emacs-9dabd86d4b2af464a25148321bebeadf6a8e53f3.zip | |
Auto-commit of generated files.
| -rwxr-xr-x | autogen/configure | 72 |
1 files changed, 46 insertions, 26 deletions
diff --git a/autogen/configure b/autogen/configure index fc0463a4a8d..3d207e12537 100755 --- a/autogen/configure +++ b/autogen/configure | |||
| @@ -2233,7 +2233,9 @@ Optional Packages: | |||
| 2233 | --with-mail-unlink unlink, rather than empty, mail spool after reading | 2233 | --with-mail-unlink unlink, rather than empty, mail spool after reading |
| 2234 | --with-mailhost=HOSTNAME | 2234 | --with-mailhost=HOSTNAME |
| 2235 | string giving default POP mail host | 2235 | string giving default POP mail host |
| 2236 | --without-sound don't compile with sound support | 2236 | --with-sound=VALUE compile with sound support (VALUE one of: yes, |
| 2237 | ossaudio, alsa, no; default yes). Only for | ||
| 2238 | GNU/Linux, FreeBSD, NetBSD, MinGW. | ||
| 2237 | --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2, | 2239 | --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2, |
| 2238 | gtk3, lucid or athena, motif, no) | 2240 | gtk3, lucid or athena, motif, no) |
| 2239 | --with-wide-int prefer wide Emacs integers (typically 62-bit) | 2241 | --with-wide-int prefer wide Emacs integers (typically 62-bit) |
| @@ -4116,9 +4118,16 @@ fi | |||
| 4116 | 4118 | ||
| 4117 | # Check whether --with-sound was given. | 4119 | # Check whether --with-sound was given. |
| 4118 | if test "${with_sound+set}" = set; then : | 4120 | if test "${with_sound+set}" = set; then : |
| 4119 | withval=$with_sound; | 4121 | withval=$with_sound; case "${withval}" in |
| 4122 | yes|no|ossaudio|alsa) val=$withval ;; | ||
| 4123 | *) as_fn_error "\`--with-sound=$withval' is invalid; | ||
| 4124 | this option's value should be \`yes', \`no', \`ossaudio', or \`alsa'." "$LINENO" 5 | ||
| 4125 | ;; | ||
| 4126 | esac | ||
| 4127 | with_sound=$val | ||
| 4128 | |||
| 4120 | else | 4129 | else |
| 4121 | with_sound=$with_features | 4130 | with_sound=$with_features |
| 4122 | fi | 4131 | fi |
| 4123 | 4132 | ||
| 4124 | 4133 | ||
| @@ -8995,6 +9004,7 @@ fi | |||
| 8995 | 9004 | ||
| 8996 | 9005 | ||
| 8997 | 9006 | ||
| 9007 | HAVE_SOUND=no | ||
| 8998 | if test "${with_sound}" != "no"; then | 9008 | if test "${with_sound}" != "no"; then |
| 8999 | # Sound support for GNU/Linux, the free BSDs, and MinGW. | 9009 | # Sound support for GNU/Linux, the free BSDs, and MinGW. |
| 9000 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | 9010 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h |
| @@ -9017,8 +9027,9 @@ fi | |||
| 9017 | 9027 | ||
| 9018 | done | 9028 | done |
| 9019 | 9029 | ||
| 9020 | # Emulation library used on NetBSD. | 9030 | if test "${with_sound}" = "ossaudio" || test "${with_sound}" = "yes"; then |
| 9021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 | 9031 | # Emulation library used on NetBSD. |
| 9032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 | ||
| 9022 | $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } | 9033 | $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } |
| 9023 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then : | 9034 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then : |
| 9024 | $as_echo_n "(cached) " >&6 | 9035 | $as_echo_n "(cached) " >&6 |
| @@ -9060,10 +9071,14 @@ else | |||
| 9060 | LIBSOUND= | 9071 | LIBSOUND= |
| 9061 | fi | 9072 | fi |
| 9062 | 9073 | ||
| 9074 | test "${with_sound}" = "ossaudio" && test -z "$LIBSOUND" && \ | ||
| 9075 | as_fn_error "ossaudio sound support requested but not found." "$LINENO" 5 | ||
| 9076 | fi | ||
| 9063 | 9077 | ||
| 9064 | 9078 | ||
| 9065 | ALSA_REQUIRED=1.0.0 | 9079 | if test "${with_sound}" = "alsa" || test "${with_sound}" = "yes"; then |
| 9066 | ALSA_MODULES="alsa >= $ALSA_REQUIRED" | 9080 | ALSA_REQUIRED=1.0.0 |
| 9081 | ALSA_MODULES="alsa >= $ALSA_REQUIRED" | ||
| 9067 | 9082 | ||
| 9068 | succeeded=no | 9083 | succeeded=no |
| 9069 | 9084 | ||
| @@ -9115,12 +9130,12 @@ $as_echo "no" >&6; } | |||
| 9115 | HAVE_ALSA=no | 9130 | HAVE_ALSA=no |
| 9116 | fi | 9131 | fi |
| 9117 | 9132 | ||
| 9118 | if test $HAVE_ALSA = yes; then | 9133 | if test $HAVE_ALSA = yes; then |
| 9119 | SAVE_CFLAGS="$CFLAGS" | 9134 | SAVE_CFLAGS="$CFLAGS" |
| 9120 | SAVE_LIBS="$LIBS" | 9135 | SAVE_LIBS="$LIBS" |
| 9121 | CFLAGS="$ALSA_CFLAGS $CFLAGS" | 9136 | CFLAGS="$ALSA_CFLAGS $CFLAGS" |
| 9122 | LIBS="$ALSA_LIBS $LIBS" | 9137 | LIBS="$ALSA_LIBS $LIBS" |
| 9123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 9138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9124 | /* end confdefs.h. */ | 9139 | /* end confdefs.h. */ |
| 9125 | #include <asoundlib.h> | 9140 | #include <asoundlib.h> |
| 9126 | int | 9141 | int |
| @@ -9137,8 +9152,8 @@ else | |||
| 9137 | emacs_alsa_normal=no | 9152 | emacs_alsa_normal=no |
| 9138 | fi | 9153 | fi |
| 9139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 9154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9140 | if test "$emacs_alsa_normal" != yes; then | 9155 | if test "$emacs_alsa_normal" != yes; then |
| 9141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 9156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9142 | /* end confdefs.h. */ | 9157 | /* end confdefs.h. */ |
| 9143 | #include <alsa/asoundlib.h> | 9158 | #include <alsa/asoundlib.h> |
| 9144 | int | 9159 | int |
| @@ -9155,27 +9170,30 @@ else | |||
| 9155 | emacs_alsa_subdir=no | 9170 | emacs_alsa_subdir=no |
| 9156 | fi | 9171 | fi |
| 9157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 9172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9158 | if test "$emacs_alsa_subdir" != yes; then | 9173 | if test "$emacs_alsa_subdir" != yes; then |
| 9159 | as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 | 9174 | as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 |
| 9175 | fi | ||
| 9176 | ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" | ||
| 9160 | fi | 9177 | fi |
| 9161 | ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" | ||
| 9162 | fi | ||
| 9163 | 9178 | ||
| 9164 | CFLAGS="$SAVE_CFLAGS" | 9179 | CFLAGS="$SAVE_CFLAGS" |
| 9165 | LIBS="$SAVE_LIBS" | 9180 | LIBS="$SAVE_LIBS" |
| 9166 | LIBSOUND="$LIBSOUND $ALSA_LIBS" | 9181 | LIBSOUND="$LIBSOUND $ALSA_LIBS" |
| 9167 | CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" | 9182 | CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" |
| 9168 | 9183 | ||
| 9169 | $as_echo "#define HAVE_ALSA 1" >>confdefs.h | 9184 | $as_echo "#define HAVE_ALSA 1" >>confdefs.h |
| 9170 | 9185 | ||
| 9186 | elif test "${with_sound}" = "alsa"; then | ||
| 9187 | as_fn_error "ALSA sound support requested but not found." "$LINENO" 5 | ||
| 9188 | fi | ||
| 9171 | fi | 9189 | fi |
| 9172 | 9190 | if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then | |
| 9173 | if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then | ||
| 9174 | case "$opsys" in | 9191 | case "$opsys" in |
| 9175 | gnu-linux|freebsd|netbsd|mingw32) | 9192 | gnu-linux|freebsd|netbsd|mingw32) |
| 9176 | 9193 | ||
| 9177 | $as_echo "#define HAVE_SOUND 1" >>confdefs.h | 9194 | $as_echo "#define HAVE_SOUND 1" >>confdefs.h |
| 9178 | 9195 | ||
| 9196 | HAVE_SOUND=yes | ||
| 9179 | ;; | 9197 | ;; |
| 9180 | esac | 9198 | esac |
| 9181 | fi | 9199 | fi |
| @@ -28679,6 +28697,8 @@ echo " Does Emacs use -lpng? ${HAVE_PNG}" | |||
| 28679 | echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" | 28697 | echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" |
| 28680 | echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}" | 28698 | echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}" |
| 28681 | 28699 | ||
| 28700 | echo " Does Emacs support sound? ${HAVE_SOUND}" | ||
| 28701 | |||
| 28682 | echo " Does Emacs use -lgpm? ${HAVE_GPM}" | 28702 | echo " Does Emacs use -lgpm? ${HAVE_GPM}" |
| 28683 | echo " Does Emacs use -ldbus? ${HAVE_DBUS}" | 28703 | echo " Does Emacs use -ldbus? ${HAVE_DBUS}" |
| 28684 | echo " Does Emacs use -lgconf? ${HAVE_GCONF}" | 28704 | echo " Does Emacs use -lgconf? ${HAVE_GCONF}" |