Mercurial > hg > xemacs-beta
comparison configure @ 553:5c6dc7d576ad
[xemacs-hg @ 2001-05-21 08:02:46 by yoshiki]
Paul's patch "Patch for sound under latest Cygwin",
<yz1ae4lz76u.fsf@milhouse.cs.cornell.edu>
* configure.in: Reverse the order of Windows and Linux sound tests
so that Cygwin will find Windows first.
author | yoshiki |
---|---|
date | Mon, 21 May 2001 08:02:55 +0000 |
parents | e9a3f8b4de53 |
children | 1dac8639fe3f |
comparison
equal
deleted
inserted
replaced
552:a3adcf42bcec | 553:5c6dc7d576ad |
---|---|
13099 fi ;; | 13099 fi ;; |
13100 esac | 13100 esac |
13101 fi | 13101 fi |
13102 | 13102 |
13103 if test -z "$sound_found"; then | 13103 if test -z "$sound_found"; then |
13104 if test "$with_msw" = "yes"; then | |
13105 sound_found=yes | |
13106 native_sound_lib= | |
13107 fi | |
13108 fi | |
13109 | |
13110 if test -z "$sound_found"; then | |
13104 for dir in "machine" "sys" "linux"; do | 13111 for dir in "machine" "sys" "linux"; do |
13105 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` | 13112 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` |
13106 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 | 13113 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 |
13107 echo "configure:13108: checking for ${dir}/soundcard.h" >&5 | 13114 echo "configure:13115: checking for ${dir}/soundcard.h" >&5 |
13108 | 13115 |
13109 cat > conftest.$ac_ext <<EOF | 13116 cat > conftest.$ac_ext <<EOF |
13110 #line 13111 "configure" | 13117 #line 13118 "configure" |
13111 #include "confdefs.h" | 13118 #include "confdefs.h" |
13112 #include <${dir}/soundcard.h> | 13119 #include <${dir}/soundcard.h> |
13113 EOF | 13120 EOF |
13114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13115 { (eval echo configure:13116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13122 { (eval echo configure:13123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13117 if test -z "$ac_err"; then | 13124 if test -z "$ac_err"; then |
13118 rm -rf conftest* | 13125 rm -rf conftest* |
13119 eval "ac_cv_header_$ac_safe=yes" | 13126 eval "ac_cv_header_$ac_safe=yes" |
13120 else | 13127 else |
13144 else | 13151 else |
13145 echo "$ac_t""no" 1>&6 | 13152 echo "$ac_t""no" 1>&6 |
13146 fi | 13153 fi |
13147 | 13154 |
13148 done | 13155 done |
13149 fi | |
13150 | |
13151 if test -z "$sound_found"; then | |
13152 if test "$with_msw" = "yes"; then | |
13153 sound_found=yes | |
13154 native_sound_lib= | |
13155 fi | |
13156 fi | 13156 fi |
13157 | 13157 |
13158 test "$sound_found" = "yes" && with_native_sound=yes | 13158 test "$sound_found" = "yes" && with_native_sound=yes |
13159 fi | 13159 fi |
13160 | 13160 |