comparison configure @ 3309:ad7894a4ab41

[xemacs-hg @ 2006-03-27 21:00:01 by james] Fix ALSA detection by detecting a header file with no dependencies. See xemacs-patches message with ID <m3vetzvc39.fsf@jerrypc.cs.usu.edu>.
author james
date Mon, 27 Mar 2006 21:00:13 +0000
parents 34cfe24248f6
children b145b32294ff
comparison
equal deleted inserted replaced
3308:34cfe24248f6 3309:ad7894a4ab41
35582 35582
35583 test -n "$with_native_sound_lib" && LIBS="$with_native_sound_lib $LIBS" && if test "$verbose" = "yes"; then echo " Prepending \"$with_native_sound_lib\" to \$LIBS"; fi 35583 test -n "$with_native_sound_lib" && LIBS="$with_native_sound_lib $LIBS" && if test "$verbose" = "yes"; then echo " Prepending \"$with_native_sound_lib\" to \$LIBS"; fi
35584 fi 35584 fi
35585 35585
35586 if test "$enable_sound_alsa" != "no"; then 35586 if test "$enable_sound_alsa" != "no"; then
35587 if test "${ac_cv_header_alsa_pcm_h+set}" = set; then 35587 if test "${ac_cv_header_alsa_input_h+set}" = set; then
35588 echo "$as_me:$LINENO: checking for alsa/pcm.h" >&5 35588 echo "$as_me:$LINENO: checking for alsa/input.h" >&5
35589 echo $ECHO_N "checking for alsa/pcm.h... $ECHO_C" >&6 35589 echo $ECHO_N "checking for alsa/input.h... $ECHO_C" >&6
35590 if test "${ac_cv_header_alsa_pcm_h+set}" = set; then 35590 if test "${ac_cv_header_alsa_input_h+set}" = set; then
35591 echo $ECHO_N "(cached) $ECHO_C" >&6 35591 echo $ECHO_N "(cached) $ECHO_C" >&6
35592 fi 35592 fi
35593 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_pcm_h" >&5 35593 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_input_h" >&5
35594 echo "${ECHO_T}$ac_cv_header_alsa_pcm_h" >&6 35594 echo "${ECHO_T}$ac_cv_header_alsa_input_h" >&6
35595 else 35595 else
35596 # Is the header compilable? 35596 # Is the header compilable?
35597 echo "$as_me:$LINENO: checking alsa/pcm.h usability" >&5 35597 echo "$as_me:$LINENO: checking alsa/input.h usability" >&5
35598 echo $ECHO_N "checking alsa/pcm.h usability... $ECHO_C" >&6 35598 echo $ECHO_N "checking alsa/input.h usability... $ECHO_C" >&6
35599 cat >conftest.$ac_ext <<_ACEOF 35599 cat >conftest.$ac_ext <<_ACEOF
35600 /* confdefs.h. */ 35600 /* confdefs.h. */
35601 _ACEOF 35601 _ACEOF
35602 cat confdefs.h >>conftest.$ac_ext 35602 cat confdefs.h >>conftest.$ac_ext
35603 cat >>conftest.$ac_ext <<_ACEOF 35603 cat >>conftest.$ac_ext <<_ACEOF
35604 /* end confdefs.h. */ 35604 /* end confdefs.h. */
35605 $ac_includes_default 35605 $ac_includes_default
35606 #include <alsa/pcm.h> 35606 #include <alsa/input.h>
35607 _ACEOF 35607 _ACEOF
35608 rm -f conftest.$ac_objext 35608 rm -f conftest.$ac_objext
35609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 35609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35610 (eval $ac_compile) 2>conftest.er1 35610 (eval $ac_compile) 2>conftest.er1
35611 ac_status=$? 35611 ac_status=$?
35637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 35637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 35638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35639 echo "${ECHO_T}$ac_header_compiler" >&6 35639 echo "${ECHO_T}$ac_header_compiler" >&6
35640 35640
35641 # Is the header present? 35641 # Is the header present?
35642 echo "$as_me:$LINENO: checking alsa/pcm.h presence" >&5 35642 echo "$as_me:$LINENO: checking alsa/input.h presence" >&5
35643 echo $ECHO_N "checking alsa/pcm.h presence... $ECHO_C" >&6 35643 echo $ECHO_N "checking alsa/input.h presence... $ECHO_C" >&6
35644 cat >conftest.$ac_ext <<_ACEOF 35644 cat >conftest.$ac_ext <<_ACEOF
35645 /* confdefs.h. */ 35645 /* confdefs.h. */
35646 _ACEOF 35646 _ACEOF
35647 cat confdefs.h >>conftest.$ac_ext 35647 cat confdefs.h >>conftest.$ac_ext
35648 cat >>conftest.$ac_ext <<_ACEOF 35648 cat >>conftest.$ac_ext <<_ACEOF
35649 /* end confdefs.h. */ 35649 /* end confdefs.h. */
35650 #include <alsa/pcm.h> 35650 #include <alsa/input.h>
35651 _ACEOF 35651 _ACEOF
35652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 35652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 35653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35654 ac_status=$? 35654 ac_status=$?
35655 grep -v '^ *+' conftest.er1 >conftest.err 35655 grep -v '^ *+' conftest.er1 >conftest.err
35679 echo "${ECHO_T}$ac_header_preproc" >&6 35679 echo "${ECHO_T}$ac_header_preproc" >&6
35680 35680
35681 # So? What about this header? 35681 # So? What about this header?
35682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 35682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35683 yes:no: ) 35683 yes:no: )
35684 { echo "$as_me:$LINENO: WARNING: alsa/pcm.h: accepted by the compiler, rejected by the preprocessor!" >&5 35684 { echo "$as_me:$LINENO: WARNING: alsa/input.h: accepted by the compiler, rejected by the preprocessor!" >&5
35685 echo "$as_me: WARNING: alsa/pcm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 35685 echo "$as_me: WARNING: alsa/input.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35686 { echo "$as_me:$LINENO: WARNING: alsa/pcm.h: proceeding with the compiler's result" >&5 35686 { echo "$as_me:$LINENO: WARNING: alsa/input.h: proceeding with the compiler's result" >&5
35687 echo "$as_me: WARNING: alsa/pcm.h: proceeding with the compiler's result" >&2;} 35687 echo "$as_me: WARNING: alsa/input.h: proceeding with the compiler's result" >&2;}
35688 ac_header_preproc=yes 35688 ac_header_preproc=yes
35689 ;; 35689 ;;
35690 no:yes:* ) 35690 no:yes:* )
35691 { echo "$as_me:$LINENO: WARNING: alsa/pcm.h: present but cannot be compiled" >&5 35691 { echo "$as_me:$LINENO: WARNING: alsa/input.h: present but cannot be compiled" >&5
35692 echo "$as_me: WARNING: alsa/pcm.h: present but cannot be compiled" >&2;} 35692 echo "$as_me: WARNING: alsa/input.h: present but cannot be compiled" >&2;}
35693 { echo "$as_me:$LINENO: WARNING: alsa/pcm.h: check for missing prerequisite headers?" >&5 35693 { echo "$as_me:$LINENO: WARNING: alsa/input.h: check for missing prerequisite headers?" >&5
35694 echo "$as_me: WARNING: alsa/pcm.h: check for missing prerequisite headers?" >&2;} 35694 echo "$as_me: WARNING: alsa/input.h: check for missing prerequisite headers?" >&2;}
35695 { echo "$as_me:$LINENO: WARNING: alsa/pcm.h: see the Autoconf documentation" >&5 35695 { echo "$as_me:$LINENO: WARNING: alsa/input.h: see the Autoconf documentation" >&5
35696 echo "$as_me: WARNING: alsa/pcm.h: see the Autoconf documentation" >&2;} 35696 echo "$as_me: WARNING: alsa/input.h: see the Autoconf documentation" >&2;}
35697 { echo "$as_me:$LINENO: WARNING: alsa/pcm.h: section \"Present But Cannot Be Compiled\"" >&5 35697 { echo "$as_me:$LINENO: WARNING: alsa/input.h: section \"Present But Cannot Be Compiled\"" >&5
35698 echo "$as_me: WARNING: alsa/pcm.h: section \"Present But Cannot Be Compiled\"" >&2;} 35698 echo "$as_me: WARNING: alsa/input.h: section \"Present But Cannot Be Compiled\"" >&2;}
35699 { echo "$as_me:$LINENO: WARNING: alsa/pcm.h: proceeding with the preprocessor's result" >&5 35699 { echo "$as_me:$LINENO: WARNING: alsa/input.h: proceeding with the preprocessor's result" >&5
35700 echo "$as_me: WARNING: alsa/pcm.h: proceeding with the preprocessor's result" >&2;} 35700 echo "$as_me: WARNING: alsa/input.h: proceeding with the preprocessor's result" >&2;}
35701 { echo "$as_me:$LINENO: WARNING: alsa/pcm.h: in the future, the compiler will take precedence" >&5 35701 { echo "$as_me:$LINENO: WARNING: alsa/input.h: in the future, the compiler will take precedence" >&5
35702 echo "$as_me: WARNING: alsa/pcm.h: in the future, the compiler will take precedence" >&2;} 35702 echo "$as_me: WARNING: alsa/input.h: in the future, the compiler will take precedence" >&2;}
35703 ( 35703 (
35704 cat <<\_ASBOX 35704 cat <<\_ASBOX
35705 ## ------------------------------------- ## 35705 ## ------------------------------------- ##
35706 ## Report this to xemacs-beta@xemacs.org ## 35706 ## Report this to xemacs-beta@xemacs.org ##
35707 ## ------------------------------------- ## 35707 ## ------------------------------------- ##
35708 _ASBOX 35708 _ASBOX
35709 ) | 35709 ) |
35710 sed "s/^/$as_me: WARNING: /" >&2 35710 sed "s/^/$as_me: WARNING: /" >&2
35711 ;; 35711 ;;
35712 esac 35712 esac
35713 echo "$as_me:$LINENO: checking for alsa/pcm.h" >&5 35713 echo "$as_me:$LINENO: checking for alsa/input.h" >&5
35714 echo $ECHO_N "checking for alsa/pcm.h... $ECHO_C" >&6 35714 echo $ECHO_N "checking for alsa/input.h... $ECHO_C" >&6
35715 if test "${ac_cv_header_alsa_pcm_h+set}" = set; then 35715 if test "${ac_cv_header_alsa_input_h+set}" = set; then
35716 echo $ECHO_N "(cached) $ECHO_C" >&6 35716 echo $ECHO_N "(cached) $ECHO_C" >&6
35717 else 35717 else
35718 ac_cv_header_alsa_pcm_h=$ac_header_preproc 35718 ac_cv_header_alsa_input_h=$ac_header_preproc
35719 fi 35719 fi
35720 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_pcm_h" >&5 35720 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_input_h" >&5
35721 echo "${ECHO_T}$ac_cv_header_alsa_pcm_h" >&6 35721 echo "${ECHO_T}$ac_cv_header_alsa_input_h" >&6
35722 35722
35723 fi 35723 fi
35724 if test $ac_cv_header_alsa_pcm_h = yes; then 35724 if test $ac_cv_header_alsa_input_h = yes; then
35725 35725
35726 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5 35726 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
35727 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6 35727 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
35728 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then 35728 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
35729 echo $ECHO_N "(cached) $ECHO_C" >&6 35729 echo $ECHO_N "(cached) $ECHO_C" >&6