Mercurial > hg > xemacs-beta
comparison configure @ 1696:7032283c28db
[xemacs-hg @ 2003-09-19 15:56:52 by youngs]
2003-09-20 Steve Youngs <youngs@xemacs.org>
* configure: Re-generate after Martin's configure.in patch.
2003-09-20 Martin Buchholz <martin@xemacs.org>
* configure.in: XEmacs failed to build on Solaris9.
Solaris9 comes with /usr/demo/SOUND, but no headers or libraries
therein.
author | youngs |
---|---|
date | Fri, 19 Sep 2003 15:56:54 +0000 |
parents | 6265c9c31f53 |
children | fca75a427ae3 |
comparison
equal
deleted
inserted
replaced
1695:eeb607577f17 | 1696:7032283c28db |
---|---|
14068 fi | 14068 fi |
14069 | 14069 |
14070 fi | 14070 fi |
14071 | 14071 |
14072 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then | 14072 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then |
14073 sound_found=yes | 14073 if test -d "/usr/demo/SOUND/include/multimedia"; then |
14074 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then | 14074 sun_sound_cflags="-I/usr/demo/SOUND/include" |
14075 elif test -d "/usr/demo/SOUND/multimedia"; then | |
14076 sun_sound_cflags="-I/usr/demo/SOUND" | |
14077 fi | |
14078 | |
14079 if test -n "$native_sound_lib"; then | |
14080 sun_sound_lib="$native_sound_lib" | |
14081 elif test -r "/usr/demo/SOUND/lib/libaudio.a"; then | |
14082 sun_sound_lib="/usr/demo/SOUND/lib/libaudio.a" | |
14083 elif test -r "/usr/demo/SOUND/libaudio.a"; then | |
14084 sun_sound_lib="/usr/demo/SOUND/libaudio.a" | |
14085 fi | |
14086 | |
14087 if test -n "$sun_sound_cflags" -a -n "$sun_sound_lib"; then | |
14088 native_sound_lib="$sun_sound_lib" | |
14089 sound_cflags="$sun_sound_cflags" | |
14090 sound_found=yes | |
14091 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then | |
14075 echo " xemacs will be linked with \"sunplay.o\"" | 14092 echo " xemacs will be linked with \"sunplay.o\"" |
14076 fi | 14093 fi |
14077 if test -d "/usr/demo/SOUND/include" | |
14078 then sound_cflags="-I/usr/demo/SOUND/include" | |
14079 else sound_cflags="-I/usr/demo/SOUND" | |
14080 fi | |
14081 if test -z "$native_sound_lib" ; then | |
14082 if test -r "/usr/demo/SOUND/lib/libaudio.a" | |
14083 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a" | |
14084 else native_sound_lib="/usr/demo/SOUND/libaudio.a" | |
14085 fi | |
14086 fi | 14094 fi |
14087 fi | 14095 fi |
14088 | 14096 |
14089 if test -z "$sound_found"; then | 14097 if test -z "$sound_found"; then |
14090 case "$canonical" in | 14098 case "$canonical" in |
14091 *-sgi-* ) | 14099 *-sgi-* ) |
14092 if test -z "$native_sound_lib"; then | 14100 if test -z "$native_sound_lib"; then |
14093 | 14101 |
14094 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 | 14102 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 |
14095 echo "configure:14096: checking for ALopenport in -laudio" >&5 | 14103 echo "configure:14104: checking for ALopenport in -laudio" >&5 |
14096 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` | 14104 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` |
14097 | 14105 |
14098 xe_check_libs=" -laudio " | 14106 xe_check_libs=" -laudio " |
14099 cat > conftest.$ac_ext <<EOF | 14107 cat > conftest.$ac_ext <<EOF |
14100 #line 14101 "configure" | 14108 #line 14109 "configure" |
14101 #include "confdefs.h" | 14109 #include "confdefs.h" |
14102 /* Override any gcc2 internal prototype to avoid an error. */ | 14110 /* Override any gcc2 internal prototype to avoid an error. */ |
14103 /* We use char because int might match the return type of a gcc2 | 14111 /* We use char because int might match the return type of a gcc2 |
14104 builtin and then its argument prototype would still apply. */ | 14112 builtin and then its argument prototype would still apply. */ |
14105 char ALopenport(); | 14113 char ALopenport(); |
14106 | 14114 |
14107 int main() { | 14115 int main() { |
14108 ALopenport() | 14116 ALopenport() |
14109 ; return 0; } | 14117 ; return 0; } |
14110 EOF | 14118 EOF |
14111 if { (eval echo configure:14112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14119 if { (eval echo configure:14120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14112 rm -rf conftest* | 14120 rm -rf conftest* |
14113 eval "ac_cv_lib_$ac_lib_var=yes" | 14121 eval "ac_cv_lib_$ac_lib_var=yes" |
14114 else | 14122 else |
14115 echo "configure: failed program was:" >&5 | 14123 echo "configure: failed program was:" >&5 |
14116 cat conftest.$ac_ext >&5 | 14124 cat conftest.$ac_ext >&5 |
14137 fi ;; | 14145 fi ;; |
14138 hppa*-hp-hpux* ) | 14146 hppa*-hp-hpux* ) |
14139 if test -z "$native_sound_lib"; then | 14147 if test -z "$native_sound_lib"; then |
14140 | 14148 |
14141 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 | 14149 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 |
14142 echo "configure:14143: checking for AOpenAudio in -lAlib" >&5 | 14150 echo "configure:14151: checking for AOpenAudio in -lAlib" >&5 |
14143 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` | 14151 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` |
14144 | 14152 |
14145 xe_check_libs=" -lAlib " | 14153 xe_check_libs=" -lAlib " |
14146 cat > conftest.$ac_ext <<EOF | 14154 cat > conftest.$ac_ext <<EOF |
14147 #line 14148 "configure" | 14155 #line 14156 "configure" |
14148 #include "confdefs.h" | 14156 #include "confdefs.h" |
14149 /* Override any gcc2 internal prototype to avoid an error. */ | 14157 /* Override any gcc2 internal prototype to avoid an error. */ |
14150 /* We use char because int might match the return type of a gcc2 | 14158 /* We use char because int might match the return type of a gcc2 |
14151 builtin and then its argument prototype would still apply. */ | 14159 builtin and then its argument prototype would still apply. */ |
14152 char AOpenAudio(); | 14160 char AOpenAudio(); |
14153 | 14161 |
14154 int main() { | 14162 int main() { |
14155 AOpenAudio() | 14163 AOpenAudio() |
14156 ; return 0; } | 14164 ; return 0; } |
14157 EOF | 14165 EOF |
14158 if { (eval echo configure:14159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14166 if { (eval echo configure:14167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14159 rm -rf conftest* | 14167 rm -rf conftest* |
14160 eval "ac_cv_lib_$ac_lib_var=yes" | 14168 eval "ac_cv_lib_$ac_lib_var=yes" |
14161 else | 14169 else |
14162 echo "configure: failed program was:" >&5 | 14170 echo "configure: failed program was:" >&5 |
14163 cat conftest.$ac_ext >&5 | 14171 cat conftest.$ac_ext >&5 |
14201 | 14209 |
14202 if test -z "$sound_found"; then | 14210 if test -z "$sound_found"; then |
14203 for dir in "machine" "sys" "linux"; do | 14211 for dir in "machine" "sys" "linux"; do |
14204 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` | 14212 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` |
14205 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 | 14213 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 |
14206 echo "configure:14207: checking for ${dir}/soundcard.h" >&5 | 14214 echo "configure:14215: checking for ${dir}/soundcard.h" >&5 |
14207 | 14215 |
14208 cat > conftest.$ac_ext <<EOF | 14216 cat > conftest.$ac_ext <<EOF |
14209 #line 14210 "configure" | 14217 #line 14218 "configure" |
14210 #include "confdefs.h" | 14218 #include "confdefs.h" |
14211 #include <${dir}/soundcard.h> | 14219 #include <${dir}/soundcard.h> |
14212 EOF | 14220 EOF |
14213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 14221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
14214 { (eval echo configure:14215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 14222 { (eval echo configure:14223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
14215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 14223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14216 if test -z "$ac_err"; then | 14224 if test -z "$ac_err"; then |
14217 rm -rf conftest* | 14225 rm -rf conftest* |
14218 eval "ac_cv_header_$ac_safe=yes" | 14226 eval "ac_cv_header_$ac_safe=yes" |
14219 else | 14227 else |
14263 fi | 14271 fi |
14264 | 14272 |
14265 if test "$with_nas_sound" != "no"; then | 14273 if test "$with_nas_sound" != "no"; then |
14266 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` | 14274 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` |
14267 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 | 14275 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 |
14268 echo "configure:14269: checking for audio/audiolib.h" >&5 | 14276 echo "configure:14277: checking for audio/audiolib.h" >&5 |
14269 | 14277 |
14270 cat > conftest.$ac_ext <<EOF | 14278 cat > conftest.$ac_ext <<EOF |
14271 #line 14272 "configure" | 14279 #line 14280 "configure" |
14272 #include "confdefs.h" | 14280 #include "confdefs.h" |
14273 #include <audio/audiolib.h> | 14281 #include <audio/audiolib.h> |
14274 EOF | 14282 EOF |
14275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 14283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
14276 { (eval echo configure:14277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 14284 { (eval echo configure:14285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
14277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 14285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14278 if test -z "$ac_err"; then | 14286 if test -z "$ac_err"; then |
14279 rm -rf conftest* | 14287 rm -rf conftest* |
14280 eval "ac_cv_header_$ac_safe=yes" | 14288 eval "ac_cv_header_$ac_safe=yes" |
14281 else | 14289 else |
14289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 14297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14290 echo "$ac_t""yes" 1>&6 | 14298 echo "$ac_t""yes" 1>&6 |
14291 | 14299 |
14292 | 14300 |
14293 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 | 14301 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 |
14294 echo "configure:14295: checking for AuOpenServer in -laudio" >&5 | 14302 echo "configure:14303: checking for AuOpenServer in -laudio" >&5 |
14295 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` | 14303 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` |
14296 | 14304 |
14297 xe_check_libs=" -laudio " | 14305 xe_check_libs=" -laudio " |
14298 cat > conftest.$ac_ext <<EOF | 14306 cat > conftest.$ac_ext <<EOF |
14299 #line 14300 "configure" | 14307 #line 14308 "configure" |
14300 #include "confdefs.h" | 14308 #include "confdefs.h" |
14301 /* Override any gcc2 internal prototype to avoid an error. */ | 14309 /* Override any gcc2 internal prototype to avoid an error. */ |
14302 /* We use char because int might match the return type of a gcc2 | 14310 /* We use char because int might match the return type of a gcc2 |
14303 builtin and then its argument prototype would still apply. */ | 14311 builtin and then its argument prototype would still apply. */ |
14304 char AuOpenServer(); | 14312 char AuOpenServer(); |
14305 | 14313 |
14306 int main() { | 14314 int main() { |
14307 AuOpenServer() | 14315 AuOpenServer() |
14308 ; return 0; } | 14316 ; return 0; } |
14309 EOF | 14317 EOF |
14310 if { (eval echo configure:14311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14318 if { (eval echo configure:14319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14311 rm -rf conftest* | 14319 rm -rf conftest* |
14312 eval "ac_cv_lib_$ac_lib_var=yes" | 14320 eval "ac_cv_lib_$ac_lib_var=yes" |
14313 else | 14321 else |
14314 echo "configure: failed program was:" >&5 | 14322 echo "configure: failed program was:" >&5 |
14315 cat conftest.$ac_ext >&5 | 14323 cat conftest.$ac_ext >&5 |
14344 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then | 14352 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then |
14345 echo " xemacs will be linked with \"nas.o\"" | 14353 echo " xemacs will be linked with \"nas.o\"" |
14346 fi | 14354 fi |
14347 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi | 14355 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi |
14348 cat > conftest.$ac_ext <<EOF | 14356 cat > conftest.$ac_ext <<EOF |
14349 #line 14350 "configure" | 14357 #line 14358 "configure" |
14350 #include "confdefs.h" | 14358 #include "confdefs.h" |
14351 #include <audio/Xtutil.h> | 14359 #include <audio/Xtutil.h> |
14352 EOF | 14360 EOF |
14353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 14361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14354 egrep "AuXtErrorJump" >/dev/null 2>&1; then | 14362 egrep "AuXtErrorJump" >/dev/null 2>&1; then |
14375 | 14383 |
14376 if test "$with_esd_sound" != "no"; then | 14384 if test "$with_esd_sound" != "no"; then |
14377 # Extract the first word of "esd-config", so it can be a program name with args. | 14385 # Extract the first word of "esd-config", so it can be a program name with args. |
14378 set dummy esd-config; ac_word=$2 | 14386 set dummy esd-config; ac_word=$2 |
14379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 14387 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
14380 echo "configure:14381: checking for $ac_word" >&5 | 14388 echo "configure:14389: checking for $ac_word" >&5 |
14381 | 14389 |
14382 if test -n "$have_esd_config"; then | 14390 if test -n "$have_esd_config"; then |
14383 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. | 14391 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. |
14384 else | 14392 else |
14385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 14393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14404 if test "$have_esd_config" = "yes"; then | 14412 if test "$have_esd_config" = "yes"; then |
14405 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" | 14413 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" |
14406 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi | 14414 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi |
14407 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi | 14415 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi |
14408 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 | 14416 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 |
14409 echo "configure:14410: checking for esd_play_stream" >&5 | 14417 echo "configure:14418: checking for esd_play_stream" >&5 |
14410 | 14418 |
14411 cat > conftest.$ac_ext <<EOF | 14419 cat > conftest.$ac_ext <<EOF |
14412 #line 14413 "configure" | 14420 #line 14421 "configure" |
14413 #include "confdefs.h" | 14421 #include "confdefs.h" |
14414 /* System header to define __stub macros and hopefully few prototypes, | 14422 /* System header to define __stub macros and hopefully few prototypes, |
14415 which can conflict with char esd_play_stream(); below. */ | 14423 which can conflict with char esd_play_stream(); below. */ |
14416 #include <assert.h> | 14424 #include <assert.h> |
14417 /* Override any gcc2 internal prototype to avoid an error. */ | 14425 /* Override any gcc2 internal prototype to avoid an error. */ |
14430 esd_play_stream(); | 14438 esd_play_stream(); |
14431 #endif | 14439 #endif |
14432 | 14440 |
14433 ; return 0; } | 14441 ; return 0; } |
14434 EOF | 14442 EOF |
14435 if { (eval echo configure:14436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14443 if { (eval echo configure:14444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14436 rm -rf conftest* | 14444 rm -rf conftest* |
14437 eval "ac_cv_func_esd_play_stream=yes" | 14445 eval "ac_cv_func_esd_play_stream=yes" |
14438 else | 14446 else |
14439 echo "configure: failed program was:" >&5 | 14447 echo "configure: failed program was:" >&5 |
14440 cat conftest.$ac_ext >&5 | 14448 cat conftest.$ac_ext >&5 |
14481 | 14489 |
14482 test -z "$with_tty" && with_tty=yes | 14490 test -z "$with_tty" && with_tty=yes |
14483 | 14491 |
14484 if test "$with_tty" = "yes" ; then | 14492 if test "$with_tty" = "yes" ; then |
14485 echo "checking for TTY-related features" 1>&6 | 14493 echo "checking for TTY-related features" 1>&6 |
14486 echo "configure:14487: checking for TTY-related features" >&5 | 14494 echo "configure:14495: checking for TTY-related features" >&5 |
14487 { test "$extra_verbose" = "yes" && cat << \EOF | 14495 { test "$extra_verbose" = "yes" && cat << \EOF |
14488 Defining HAVE_TTY | 14496 Defining HAVE_TTY |
14489 EOF | 14497 EOF |
14490 cat >> confdefs.h <<\EOF | 14498 cat >> confdefs.h <<\EOF |
14491 #define HAVE_TTY 1 | 14499 #define HAVE_TTY 1 |
14494 | 14502 |
14495 | 14503 |
14496 if test -z "$with_ncurses"; then | 14504 if test -z "$with_ncurses"; then |
14497 | 14505 |
14498 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 | 14506 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 |
14499 echo "configure:14500: checking for tgetent in -lncurses" >&5 | 14507 echo "configure:14508: checking for tgetent in -lncurses" >&5 |
14500 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` | 14508 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` |
14501 | 14509 |
14502 xe_check_libs=" -lncurses " | 14510 xe_check_libs=" -lncurses " |
14503 cat > conftest.$ac_ext <<EOF | 14511 cat > conftest.$ac_ext <<EOF |
14504 #line 14505 "configure" | 14512 #line 14513 "configure" |
14505 #include "confdefs.h" | 14513 #include "confdefs.h" |
14506 /* Override any gcc2 internal prototype to avoid an error. */ | 14514 /* Override any gcc2 internal prototype to avoid an error. */ |
14507 /* We use char because int might match the return type of a gcc2 | 14515 /* We use char because int might match the return type of a gcc2 |
14508 builtin and then its argument prototype would still apply. */ | 14516 builtin and then its argument prototype would still apply. */ |
14509 char tgetent(); | 14517 char tgetent(); |
14510 | 14518 |
14511 int main() { | 14519 int main() { |
14512 tgetent() | 14520 tgetent() |
14513 ; return 0; } | 14521 ; return 0; } |
14514 EOF | 14522 EOF |
14515 if { (eval echo configure:14516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14523 if { (eval echo configure:14524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14516 rm -rf conftest* | 14524 rm -rf conftest* |
14517 eval "ac_cv_lib_$ac_lib_var=yes" | 14525 eval "ac_cv_lib_$ac_lib_var=yes" |
14518 else | 14526 else |
14519 echo "configure: failed program was:" >&5 | 14527 echo "configure: failed program was:" >&5 |
14520 cat conftest.$ac_ext >&5 | 14528 cat conftest.$ac_ext >&5 |
14543 EOF | 14551 EOF |
14544 } | 14552 } |
14545 | 14553 |
14546 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` | 14554 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` |
14547 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 | 14555 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 |
14548 echo "configure:14549: checking for ncurses/curses.h" >&5 | 14556 echo "configure:14557: checking for ncurses/curses.h" >&5 |
14549 | 14557 |
14550 cat > conftest.$ac_ext <<EOF | 14558 cat > conftest.$ac_ext <<EOF |
14551 #line 14552 "configure" | 14559 #line 14560 "configure" |
14552 #include "confdefs.h" | 14560 #include "confdefs.h" |
14553 #include <ncurses/curses.h> | 14561 #include <ncurses/curses.h> |
14554 EOF | 14562 EOF |
14555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 14563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
14556 { (eval echo configure:14557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 14564 { (eval echo configure:14565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
14557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 14565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14558 if test -z "$ac_err"; then | 14566 if test -z "$ac_err"; then |
14559 rm -rf conftest* | 14567 rm -rf conftest* |
14560 eval "ac_cv_header_$ac_safe=yes" | 14568 eval "ac_cv_header_$ac_safe=yes" |
14561 else | 14569 else |
14573 echo "$ac_t""no" 1>&6 | 14581 echo "$ac_t""no" 1>&6 |
14574 fi | 14582 fi |
14575 | 14583 |
14576 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` | 14584 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` |
14577 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 | 14585 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 |
14578 echo "configure:14579: checking for ncurses/term.h" >&5 | 14586 echo "configure:14587: checking for ncurses/term.h" >&5 |
14579 | 14587 |
14580 cat > conftest.$ac_ext <<EOF | 14588 cat > conftest.$ac_ext <<EOF |
14581 #line 14582 "configure" | 14589 #line 14590 "configure" |
14582 #include "confdefs.h" | 14590 #include "confdefs.h" |
14583 #include <ncurses/term.h> | 14591 #include <ncurses/term.h> |
14584 EOF | 14592 EOF |
14585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 14593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
14586 { (eval echo configure:14587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 14594 { (eval echo configure:14595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
14587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 14595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14588 if test -z "$ac_err"; then | 14596 if test -z "$ac_err"; then |
14589 rm -rf conftest* | 14597 rm -rf conftest* |
14590 eval "ac_cv_header_$ac_safe=yes" | 14598 eval "ac_cv_header_$ac_safe=yes" |
14591 else | 14599 else |
14611 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then | 14619 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then |
14612 save_c_switch_site="$c_switch_site" | 14620 save_c_switch_site="$c_switch_site" |
14613 c_switch_site="$c_switch_site -I/usr/include/ncurses" | 14621 c_switch_site="$c_switch_site -I/usr/include/ncurses" |
14614 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` | 14622 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` |
14615 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 | 14623 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 |
14616 echo "configure:14617: checking for ncurses/curses.h" >&5 | 14624 echo "configure:14625: checking for ncurses/curses.h" >&5 |
14617 | 14625 |
14618 cat > conftest.$ac_ext <<EOF | 14626 cat > conftest.$ac_ext <<EOF |
14619 #line 14620 "configure" | 14627 #line 14628 "configure" |
14620 #include "confdefs.h" | 14628 #include "confdefs.h" |
14621 #include <ncurses/curses.h> | 14629 #include <ncurses/curses.h> |
14622 EOF | 14630 EOF |
14623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 14631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
14624 { (eval echo configure:14625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 14632 { (eval echo configure:14633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
14625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 14633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14626 if test -z "$ac_err"; then | 14634 if test -z "$ac_err"; then |
14627 rm -rf conftest* | 14635 rm -rf conftest* |
14628 eval "ac_cv_header_$ac_safe=yes" | 14636 eval "ac_cv_header_$ac_safe=yes" |
14629 else | 14637 else |
14654 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi | 14662 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi |
14655 else | 14663 else |
14656 for lib in curses termlib termcap; do | 14664 for lib in curses termlib termcap; do |
14657 | 14665 |
14658 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 | 14666 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 |
14659 echo "configure:14660: checking for tgetent in -l$lib" >&5 | 14667 echo "configure:14668: checking for tgetent in -l$lib" >&5 |
14660 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` | 14668 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` |
14661 | 14669 |
14662 xe_check_libs=" -l$lib " | 14670 xe_check_libs=" -l$lib " |
14663 cat > conftest.$ac_ext <<EOF | 14671 cat > conftest.$ac_ext <<EOF |
14664 #line 14665 "configure" | 14672 #line 14673 "configure" |
14665 #include "confdefs.h" | 14673 #include "confdefs.h" |
14666 /* Override any gcc2 internal prototype to avoid an error. */ | 14674 /* Override any gcc2 internal prototype to avoid an error. */ |
14667 /* We use char because int might match the return type of a gcc2 | 14675 /* We use char because int might match the return type of a gcc2 |
14668 builtin and then its argument prototype would still apply. */ | 14676 builtin and then its argument prototype would still apply. */ |
14669 char tgetent(); | 14677 char tgetent(); |
14670 | 14678 |
14671 int main() { | 14679 int main() { |
14672 tgetent() | 14680 tgetent() |
14673 ; return 0; } | 14681 ; return 0; } |
14674 EOF | 14682 EOF |
14675 if { (eval echo configure:14676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14683 if { (eval echo configure:14684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14676 rm -rf conftest* | 14684 rm -rf conftest* |
14677 eval "ac_cv_lib_$ac_lib_var=yes" | 14685 eval "ac_cv_lib_$ac_lib_var=yes" |
14678 else | 14686 else |
14679 echo "configure: failed program was:" >&5 | 14687 echo "configure: failed program was:" >&5 |
14680 cat conftest.$ac_ext >&5 | 14688 cat conftest.$ac_ext >&5 |
14701 if test -n "$libs_termcap"; then | 14709 if test -n "$libs_termcap"; then |
14702 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi | 14710 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi |
14703 else | 14711 else |
14704 | 14712 |
14705 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 | 14713 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 |
14706 echo "configure:14707: checking for tgetent in -lcurses" >&5 | 14714 echo "configure:14715: checking for tgetent in -lcurses" >&5 |
14707 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` | 14715 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` |
14708 | 14716 |
14709 xe_check_libs=" -lcurses " | 14717 xe_check_libs=" -lcurses " |
14710 cat > conftest.$ac_ext <<EOF | 14718 cat > conftest.$ac_ext <<EOF |
14711 #line 14712 "configure" | 14719 #line 14720 "configure" |
14712 #include "confdefs.h" | 14720 #include "confdefs.h" |
14713 /* Override any gcc2 internal prototype to avoid an error. */ | 14721 /* Override any gcc2 internal prototype to avoid an error. */ |
14714 /* We use char because int might match the return type of a gcc2 | 14722 /* We use char because int might match the return type of a gcc2 |
14715 builtin and then its argument prototype would still apply. */ | 14723 builtin and then its argument prototype would still apply. */ |
14716 char tgetent(); | 14724 char tgetent(); |
14717 | 14725 |
14718 int main() { | 14726 int main() { |
14719 tgetent() | 14727 tgetent() |
14720 ; return 0; } | 14728 ; return 0; } |
14721 EOF | 14729 EOF |
14722 if { (eval echo configure:14723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14730 if { (eval echo configure:14731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14723 rm -rf conftest* | 14731 rm -rf conftest* |
14724 eval "ac_cv_lib_$ac_lib_var=yes" | 14732 eval "ac_cv_lib_$ac_lib_var=yes" |
14725 else | 14733 else |
14726 echo "configure: failed program was:" >&5 | 14734 echo "configure: failed program was:" >&5 |
14727 cat conftest.$ac_ext >&5 | 14735 cat conftest.$ac_ext >&5 |
14735 echo "$ac_t""yes" 1>&6 | 14743 echo "$ac_t""yes" 1>&6 |
14736 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi | 14744 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi |
14737 else | 14745 else |
14738 echo "$ac_t""no" 1>&6 | 14746 echo "$ac_t""no" 1>&6 |
14739 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 | 14747 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 |
14740 echo "configure:14741: checking for tgetent in -ltermcap" >&5 | 14748 echo "configure:14749: checking for tgetent in -ltermcap" >&5 |
14741 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` | 14749 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` |
14742 | 14750 |
14743 xe_check_libs=" -ltermcap " | 14751 xe_check_libs=" -ltermcap " |
14744 cat > conftest.$ac_ext <<EOF | 14752 cat > conftest.$ac_ext <<EOF |
14745 #line 14746 "configure" | 14753 #line 14754 "configure" |
14746 #include "confdefs.h" | 14754 #include "confdefs.h" |
14747 /* Override any gcc2 internal prototype to avoid an error. */ | 14755 /* Override any gcc2 internal prototype to avoid an error. */ |
14748 /* We use char because int might match the return type of a gcc2 | 14756 /* We use char because int might match the return type of a gcc2 |
14749 builtin and then its argument prototype would still apply. */ | 14757 builtin and then its argument prototype would still apply. */ |
14750 char tgetent(); | 14758 char tgetent(); |
14751 | 14759 |
14752 int main() { | 14760 int main() { |
14753 tgetent() | 14761 tgetent() |
14754 ; return 0; } | 14762 ; return 0; } |
14755 EOF | 14763 EOF |
14756 if { (eval echo configure:14757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14764 if { (eval echo configure:14765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14757 rm -rf conftest* | 14765 rm -rf conftest* |
14758 eval "ac_cv_lib_$ac_lib_var=yes" | 14766 eval "ac_cv_lib_$ac_lib_var=yes" |
14759 else | 14767 else |
14760 echo "configure: failed program was:" >&5 | 14768 echo "configure: failed program was:" >&5 |
14761 cat conftest.$ac_ext >&5 | 14769 cat conftest.$ac_ext >&5 |
14799 } | 14807 } |
14800 | 14808 |
14801 | 14809 |
14802 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` | 14810 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` |
14803 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 | 14811 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 |
14804 echo "configure:14805: checking for gpm.h" >&5 | 14812 echo "configure:14813: checking for gpm.h" >&5 |
14805 | 14813 |
14806 cat > conftest.$ac_ext <<EOF | 14814 cat > conftest.$ac_ext <<EOF |
14807 #line 14808 "configure" | 14815 #line 14816 "configure" |
14808 #include "confdefs.h" | 14816 #include "confdefs.h" |
14809 #include <gpm.h> | 14817 #include <gpm.h> |
14810 EOF | 14818 EOF |
14811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 14819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
14812 { (eval echo configure:14813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 14820 { (eval echo configure:14821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
14813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 14821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14814 if test -z "$ac_err"; then | 14822 if test -z "$ac_err"; then |
14815 rm -rf conftest* | 14823 rm -rf conftest* |
14816 eval "ac_cv_header_$ac_safe=yes" | 14824 eval "ac_cv_header_$ac_safe=yes" |
14817 else | 14825 else |
14830 with_gpm=no | 14838 with_gpm=no |
14831 fi | 14839 fi |
14832 } | 14840 } |
14833 test -z "$with_gpm" && { | 14841 test -z "$with_gpm" && { |
14834 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 | 14842 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 |
14835 echo "configure:14836: checking for Gpm_Open in -lgpm" >&5 | 14843 echo "configure:14844: checking for Gpm_Open in -lgpm" >&5 |
14836 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` | 14844 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` |
14837 | 14845 |
14838 xe_check_libs=" -lgpm " | 14846 xe_check_libs=" -lgpm " |
14839 cat > conftest.$ac_ext <<EOF | 14847 cat > conftest.$ac_ext <<EOF |
14840 #line 14841 "configure" | 14848 #line 14849 "configure" |
14841 #include "confdefs.h" | 14849 #include "confdefs.h" |
14842 /* Override any gcc2 internal prototype to avoid an error. */ | 14850 /* Override any gcc2 internal prototype to avoid an error. */ |
14843 /* We use char because int might match the return type of a gcc2 | 14851 /* We use char because int might match the return type of a gcc2 |
14844 builtin and then its argument prototype would still apply. */ | 14852 builtin and then its argument prototype would still apply. */ |
14845 char Gpm_Open(); | 14853 char Gpm_Open(); |
14846 | 14854 |
14847 int main() { | 14855 int main() { |
14848 Gpm_Open() | 14856 Gpm_Open() |
14849 ; return 0; } | 14857 ; return 0; } |
14850 EOF | 14858 EOF |
14851 if { (eval echo configure:14852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14859 if { (eval echo configure:14860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14852 rm -rf conftest* | 14860 rm -rf conftest* |
14853 eval "ac_cv_lib_$ac_lib_var=yes" | 14861 eval "ac_cv_lib_$ac_lib_var=yes" |
14854 else | 14862 else |
14855 echo "configure: failed program was:" >&5 | 14863 echo "configure: failed program was:" >&5 |
14856 cat conftest.$ac_ext >&5 | 14864 cat conftest.$ac_ext >&5 |
14889 done | 14897 done |
14890 fi | 14898 fi |
14891 | 14899 |
14892 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ | 14900 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ |
14893 != "no no no" && echo "checking for database support" 1>&6 | 14901 != "no no no" && echo "checking for database support" 1>&6 |
14894 echo "configure:14895: checking for database support" >&5 | 14902 echo "configure:14903: checking for database support" >&5 |
14895 | 14903 |
14896 if test "$with_database_gdbm $with_database_dbm" != "no no"; then | 14904 if test "$with_database_gdbm $with_database_dbm" != "no no"; then |
14897 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` | 14905 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` |
14898 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 | 14906 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 |
14899 echo "configure:14900: checking for ndbm.h" >&5 | 14907 echo "configure:14908: checking for ndbm.h" >&5 |
14900 | 14908 |
14901 cat > conftest.$ac_ext <<EOF | 14909 cat > conftest.$ac_ext <<EOF |
14902 #line 14903 "configure" | 14910 #line 14911 "configure" |
14903 #include "confdefs.h" | 14911 #include "confdefs.h" |
14904 #include <ndbm.h> | 14912 #include <ndbm.h> |
14905 EOF | 14913 EOF |
14906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 14914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
14907 { (eval echo configure:14908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 14915 { (eval echo configure:14916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
14908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 14916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14909 if test -z "$ac_err"; then | 14917 if test -z "$ac_err"; then |
14910 rm -rf conftest* | 14918 rm -rf conftest* |
14911 eval "ac_cv_header_$ac_safe=yes" | 14919 eval "ac_cv_header_$ac_safe=yes" |
14912 else | 14920 else |
14932 fi | 14940 fi |
14933 | 14941 |
14934 if test "$with_database_gdbm" != "no"; then | 14942 if test "$with_database_gdbm" != "no"; then |
14935 | 14943 |
14936 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 | 14944 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 |
14937 echo "configure:14938: checking for dbm_open in -lgdbm" >&5 | 14945 echo "configure:14946: checking for dbm_open in -lgdbm" >&5 |
14938 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` | 14946 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` |
14939 | 14947 |
14940 xe_check_libs=" -lgdbm " | 14948 xe_check_libs=" -lgdbm " |
14941 cat > conftest.$ac_ext <<EOF | 14949 cat > conftest.$ac_ext <<EOF |
14942 #line 14943 "configure" | 14950 #line 14951 "configure" |
14943 #include "confdefs.h" | 14951 #include "confdefs.h" |
14944 /* Override any gcc2 internal prototype to avoid an error. */ | 14952 /* Override any gcc2 internal prototype to avoid an error. */ |
14945 /* We use char because int might match the return type of a gcc2 | 14953 /* We use char because int might match the return type of a gcc2 |
14946 builtin and then its argument prototype would still apply. */ | 14954 builtin and then its argument prototype would still apply. */ |
14947 char dbm_open(); | 14955 char dbm_open(); |
14948 | 14956 |
14949 int main() { | 14957 int main() { |
14950 dbm_open() | 14958 dbm_open() |
14951 ; return 0; } | 14959 ; return 0; } |
14952 EOF | 14960 EOF |
14953 if { (eval echo configure:14954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14961 if { (eval echo configure:14962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14954 rm -rf conftest* | 14962 rm -rf conftest* |
14955 eval "ac_cv_lib_$ac_lib_var=yes" | 14963 eval "ac_cv_lib_$ac_lib_var=yes" |
14956 else | 14964 else |
14957 echo "configure: failed program was:" >&5 | 14965 echo "configure: failed program was:" >&5 |
14958 cat conftest.$ac_ext >&5 | 14966 cat conftest.$ac_ext >&5 |
14976 | 14984 |
14977 fi | 14985 fi |
14978 | 14986 |
14979 if test "$with_database_dbm" != "no"; then | 14987 if test "$with_database_dbm" != "no"; then |
14980 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 | 14988 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 |
14981 echo "configure:14982: checking for dbm_open" >&5 | 14989 echo "configure:14990: checking for dbm_open" >&5 |
14982 | 14990 |
14983 cat > conftest.$ac_ext <<EOF | 14991 cat > conftest.$ac_ext <<EOF |
14984 #line 14985 "configure" | 14992 #line 14993 "configure" |
14985 #include "confdefs.h" | 14993 #include "confdefs.h" |
14986 /* System header to define __stub macros and hopefully few prototypes, | 14994 /* System header to define __stub macros and hopefully few prototypes, |
14987 which can conflict with char dbm_open(); below. */ | 14995 which can conflict with char dbm_open(); below. */ |
14988 #include <assert.h> | 14996 #include <assert.h> |
14989 /* Override any gcc2 internal prototype to avoid an error. */ | 14997 /* Override any gcc2 internal prototype to avoid an error. */ |
15002 dbm_open(); | 15010 dbm_open(); |
15003 #endif | 15011 #endif |
15004 | 15012 |
15005 ; return 0; } | 15013 ; return 0; } |
15006 EOF | 15014 EOF |
15007 if { (eval echo configure:15008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 15015 if { (eval echo configure:15016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15008 rm -rf conftest* | 15016 rm -rf conftest* |
15009 eval "ac_cv_func_dbm_open=yes" | 15017 eval "ac_cv_func_dbm_open=yes" |
15010 else | 15018 else |
15011 echo "configure: failed program was:" >&5 | 15019 echo "configure: failed program was:" >&5 |
15012 cat conftest.$ac_ext >&5 | 15020 cat conftest.$ac_ext >&5 |
15021 else | 15029 else |
15022 echo "$ac_t""no" 1>&6 | 15030 echo "$ac_t""no" 1>&6 |
15023 | 15031 |
15024 | 15032 |
15025 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 | 15033 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 |
15026 echo "configure:15027: checking for dbm_open in -ldbm" >&5 | 15034 echo "configure:15035: checking for dbm_open in -ldbm" >&5 |
15027 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` | 15035 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` |
15028 | 15036 |
15029 xe_check_libs=" -ldbm " | 15037 xe_check_libs=" -ldbm " |
15030 cat > conftest.$ac_ext <<EOF | 15038 cat > conftest.$ac_ext <<EOF |
15031 #line 15032 "configure" | 15039 #line 15040 "configure" |
15032 #include "confdefs.h" | 15040 #include "confdefs.h" |
15033 /* Override any gcc2 internal prototype to avoid an error. */ | 15041 /* Override any gcc2 internal prototype to avoid an error. */ |
15034 /* We use char because int might match the return type of a gcc2 | 15042 /* We use char because int might match the return type of a gcc2 |
15035 builtin and then its argument prototype would still apply. */ | 15043 builtin and then its argument prototype would still apply. */ |
15036 char dbm_open(); | 15044 char dbm_open(); |
15037 | 15045 |
15038 int main() { | 15046 int main() { |
15039 dbm_open() | 15047 dbm_open() |
15040 ; return 0; } | 15048 ; return 0; } |
15041 EOF | 15049 EOF |
15042 if { (eval echo configure:15043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 15050 if { (eval echo configure:15051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15043 rm -rf conftest* | 15051 rm -rf conftest* |
15044 eval "ac_cv_lib_$ac_lib_var=yes" | 15052 eval "ac_cv_lib_$ac_lib_var=yes" |
15045 else | 15053 else |
15046 echo "configure: failed program was:" >&5 | 15054 echo "configure: failed program was:" >&5 |
15047 cat conftest.$ac_ext >&5 | 15055 cat conftest.$ac_ext >&5 |
15078 } | 15086 } |
15079 | 15087 |
15080 | 15088 |
15081 if test "$with_database_berkdb" != "no"; then | 15089 if test "$with_database_berkdb" != "no"; then |
15082 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 | 15090 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 |
15083 echo "configure:15084: checking for Berkeley db.h" >&5 | 15091 echo "configure:15092: checking for Berkeley db.h" >&5 |
15084 for header in "db/db.h" "db.h"; do | 15092 for header in "db/db.h" "db.h"; do |
15085 cat > conftest.$ac_ext <<EOF | 15093 cat > conftest.$ac_ext <<EOF |
15086 #line 15087 "configure" | 15094 #line 15095 "configure" |
15087 #include "confdefs.h" | 15095 #include "confdefs.h" |
15088 | 15096 |
15089 #include <stdlib.h> | 15097 #include <stdlib.h> |
15090 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) | 15098 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) |
15091 #ifdef HAVE_INTTYPES_H | 15099 #ifdef HAVE_INTTYPES_H |
15103 | 15111 |
15104 int main() { | 15112 int main() { |
15105 | 15113 |
15106 ; return 0; } | 15114 ; return 0; } |
15107 EOF | 15115 EOF |
15108 if { (eval echo configure:15109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 15116 if { (eval echo configure:15117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
15109 rm -rf conftest* | 15117 rm -rf conftest* |
15110 db_h_file="$header"; break | 15118 db_h_file="$header"; break |
15111 else | 15119 else |
15112 echo "configure: failed program was:" >&5 | 15120 echo "configure: failed program was:" >&5 |
15113 cat conftest.$ac_ext >&5 | 15121 cat conftest.$ac_ext >&5 |
15119 else echo "$ac_t""$db_h_file" 1>&6 | 15127 else echo "$ac_t""$db_h_file" 1>&6 |
15120 fi | 15128 fi |
15121 | 15129 |
15122 if test "$with_database_berkdb" != "no"; then | 15130 if test "$with_database_berkdb" != "no"; then |
15123 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 | 15131 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 |
15124 echo "configure:15125: checking for Berkeley DB version" >&5 | 15132 echo "configure:15133: checking for Berkeley DB version" >&5 |
15125 cat > conftest.$ac_ext <<EOF | 15133 cat > conftest.$ac_ext <<EOF |
15126 #line 15127 "configure" | 15134 #line 15135 "configure" |
15127 #include "confdefs.h" | 15135 #include "confdefs.h" |
15128 #include <$db_h_file> | 15136 #include <$db_h_file> |
15129 #if DB_VERSION_MAJOR > 1 | 15137 #if DB_VERSION_MAJOR > 1 |
15130 yes | 15138 yes |
15131 #endif | 15139 #endif |
15133 EOF | 15141 EOF |
15134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 15142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15135 egrep "yes" >/dev/null 2>&1; then | 15143 egrep "yes" >/dev/null 2>&1; then |
15136 rm -rf conftest* | 15144 rm -rf conftest* |
15137 cat > conftest.$ac_ext <<EOF | 15145 cat > conftest.$ac_ext <<EOF |
15138 #line 15139 "configure" | 15146 #line 15147 "configure" |
15139 #include "confdefs.h" | 15147 #include "confdefs.h" |
15140 #include <$db_h_file> | 15148 #include <$db_h_file> |
15141 #if DB_VERSION_MAJOR > 2 | 15149 #if DB_VERSION_MAJOR > 2 |
15142 yes | 15150 yes |
15143 #endif | 15151 #endif |
15145 EOF | 15153 EOF |
15146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 15154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15147 egrep "yes" >/dev/null 2>&1; then | 15155 egrep "yes" >/dev/null 2>&1; then |
15148 rm -rf conftest* | 15156 rm -rf conftest* |
15149 cat > conftest.$ac_ext <<EOF | 15157 cat > conftest.$ac_ext <<EOF |
15150 #line 15151 "configure" | 15158 #line 15159 "configure" |
15151 #include "confdefs.h" | 15159 #include "confdefs.h" |
15152 #include <$db_h_file> | 15160 #include <$db_h_file> |
15153 #if DB_VERSION_MAJOR > 3 | 15161 #if DB_VERSION_MAJOR > 3 |
15154 yes | 15162 yes |
15155 #endif | 15163 #endif |
15179 echo "$ac_t""1" 1>&6; dbfunc=dbopen; dbver=1 | 15187 echo "$ac_t""1" 1>&6; dbfunc=dbopen; dbver=1 |
15180 fi | 15188 fi |
15181 rm -f conftest* | 15189 rm -f conftest* |
15182 | 15190 |
15183 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 | 15191 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 |
15184 echo "configure:15185: checking for $dbfunc" >&5 | 15192 echo "configure:15193: checking for $dbfunc" >&5 |
15185 | 15193 |
15186 cat > conftest.$ac_ext <<EOF | 15194 cat > conftest.$ac_ext <<EOF |
15187 #line 15188 "configure" | 15195 #line 15196 "configure" |
15188 #include "confdefs.h" | 15196 #include "confdefs.h" |
15189 /* System header to define __stub macros and hopefully few prototypes, | 15197 /* System header to define __stub macros and hopefully few prototypes, |
15190 which can conflict with char $dbfunc(); below. */ | 15198 which can conflict with char $dbfunc(); below. */ |
15191 #include <assert.h> | 15199 #include <assert.h> |
15192 /* Override any gcc2 internal prototype to avoid an error. */ | 15200 /* Override any gcc2 internal prototype to avoid an error. */ |
15205 $dbfunc(); | 15213 $dbfunc(); |
15206 #endif | 15214 #endif |
15207 | 15215 |
15208 ; return 0; } | 15216 ; return 0; } |
15209 EOF | 15217 EOF |
15210 if { (eval echo configure:15211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 15218 if { (eval echo configure:15219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15211 rm -rf conftest* | 15219 rm -rf conftest* |
15212 eval "ac_cv_func_$dbfunc=yes" | 15220 eval "ac_cv_func_$dbfunc=yes" |
15213 else | 15221 else |
15214 echo "configure: failed program was:" >&5 | 15222 echo "configure: failed program was:" >&5 |
15215 cat conftest.$ac_ext >&5 | 15223 cat conftest.$ac_ext >&5 |
15224 else | 15232 else |
15225 echo "$ac_t""no" 1>&6 | 15233 echo "$ac_t""no" 1>&6 |
15226 | 15234 |
15227 | 15235 |
15228 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 | 15236 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 |
15229 echo "configure:15230: checking for $dbfunc in -ldb" >&5 | 15237 echo "configure:15238: checking for $dbfunc in -ldb" >&5 |
15230 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` | 15238 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` |
15231 | 15239 |
15232 xe_check_libs=" -ldb " | 15240 xe_check_libs=" -ldb " |
15233 cat > conftest.$ac_ext <<EOF | 15241 cat > conftest.$ac_ext <<EOF |
15234 #line 15235 "configure" | 15242 #line 15243 "configure" |
15235 #include "confdefs.h" | 15243 #include "confdefs.h" |
15236 /* Override any gcc2 internal prototype to avoid an error. */ | 15244 /* Override any gcc2 internal prototype to avoid an error. */ |
15237 /* We use char because int might match the return type of a gcc2 | 15245 /* We use char because int might match the return type of a gcc2 |
15238 builtin and then its argument prototype would still apply. */ | 15246 builtin and then its argument prototype would still apply. */ |
15239 char $dbfunc(); | 15247 char $dbfunc(); |
15240 | 15248 |
15241 int main() { | 15249 int main() { |
15242 $dbfunc() | 15250 $dbfunc() |
15243 ; return 0; } | 15251 ; return 0; } |
15244 EOF | 15252 EOF |
15245 if { (eval echo configure:15246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 15253 if { (eval echo configure:15254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15246 rm -rf conftest* | 15254 rm -rf conftest* |
15247 eval "ac_cv_lib_$ac_lib_var=yes" | 15255 eval "ac_cv_lib_$ac_lib_var=yes" |
15248 else | 15256 else |
15249 echo "configure: failed program was:" >&5 | 15257 echo "configure: failed program was:" >&5 |
15250 cat conftest.$ac_ext >&5 | 15258 cat conftest.$ac_ext >&5 |
15274 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"` | 15282 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"` |
15275 rm -f $tempcname | 15283 rm -f $tempcname |
15276 echo "configure: warning: "db_create is really $dbfunc"" 1>&2 | 15284 echo "configure: warning: "db_create is really $dbfunc"" 1>&2 |
15277 | 15285 |
15278 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 | 15286 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 |
15279 echo "configure:15280: checking for $dbfunc in -ldb" >&5 | 15287 echo "configure:15288: checking for $dbfunc in -ldb" >&5 |
15280 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` | 15288 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` |
15281 | 15289 |
15282 xe_check_libs=" -ldb " | 15290 xe_check_libs=" -ldb " |
15283 cat > conftest.$ac_ext <<EOF | 15291 cat > conftest.$ac_ext <<EOF |
15284 #line 15285 "configure" | 15292 #line 15293 "configure" |
15285 #include "confdefs.h" | 15293 #include "confdefs.h" |
15286 /* Override any gcc2 internal prototype to avoid an error. */ | 15294 /* Override any gcc2 internal prototype to avoid an error. */ |
15287 /* We use char because int might match the return type of a gcc2 | 15295 /* We use char because int might match the return type of a gcc2 |
15288 builtin and then its argument prototype would still apply. */ | 15296 builtin and then its argument prototype would still apply. */ |
15289 char $dbfunc(); | 15297 char $dbfunc(); |
15290 | 15298 |
15291 int main() { | 15299 int main() { |
15292 $dbfunc() | 15300 $dbfunc() |
15293 ; return 0; } | 15301 ; return 0; } |
15294 EOF | 15302 EOF |
15295 if { (eval echo configure:15296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 15303 if { (eval echo configure:15304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15296 rm -rf conftest* | 15304 rm -rf conftest* |
15297 eval "ac_cv_lib_$ac_lib_var=yes" | 15305 eval "ac_cv_lib_$ac_lib_var=yes" |
15298 else | 15306 else |
15299 echo "configure: failed program was:" >&5 | 15307 echo "configure: failed program was:" >&5 |
15300 cat conftest.$ac_ext >&5 | 15308 cat conftest.$ac_ext >&5 |
15349 fi | 15357 fi |
15350 | 15358 |
15351 if test "$with_socks" = "yes"; then | 15359 if test "$with_socks" = "yes"; then |
15352 | 15360 |
15353 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 | 15361 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 |
15354 echo "configure:15355: checking for SOCKSinit in -lsocks" >&5 | 15362 echo "configure:15363: checking for SOCKSinit in -lsocks" >&5 |
15355 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` | 15363 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` |
15356 | 15364 |
15357 xe_check_libs=" -lsocks " | 15365 xe_check_libs=" -lsocks " |
15358 cat > conftest.$ac_ext <<EOF | 15366 cat > conftest.$ac_ext <<EOF |
15359 #line 15360 "configure" | 15367 #line 15368 "configure" |
15360 #include "confdefs.h" | 15368 #include "confdefs.h" |
15361 /* Override any gcc2 internal prototype to avoid an error. */ | 15369 /* Override any gcc2 internal prototype to avoid an error. */ |
15362 /* We use char because int might match the return type of a gcc2 | 15370 /* We use char because int might match the return type of a gcc2 |
15363 builtin and then its argument prototype would still apply. */ | 15371 builtin and then its argument prototype would still apply. */ |
15364 char SOCKSinit(); | 15372 char SOCKSinit(); |
15365 | 15373 |
15366 int main() { | 15374 int main() { |
15367 SOCKSinit() | 15375 SOCKSinit() |
15368 ; return 0; } | 15376 ; return 0; } |
15369 EOF | 15377 EOF |
15370 if { (eval echo configure:15371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 15378 if { (eval echo configure:15379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15371 rm -rf conftest* | 15379 rm -rf conftest* |
15372 eval "ac_cv_lib_$ac_lib_var=yes" | 15380 eval "ac_cv_lib_$ac_lib_var=yes" |
15373 else | 15381 else |
15374 echo "configure: failed program was:" >&5 | 15382 echo "configure: failed program was:" >&5 |
15375 cat conftest.$ac_ext >&5 | 15383 cat conftest.$ac_ext >&5 |
15419 | 15427 |
15420 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi | 15428 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi |
15421 fi | 15429 fi |
15422 | 15430 |
15423 cat > conftest.$ac_ext <<EOF | 15431 cat > conftest.$ac_ext <<EOF |
15424 #line 15425 "configure" | 15432 #line 15433 "configure" |
15425 #include "confdefs.h" | 15433 #include "confdefs.h" |
15426 int main(int c,char *v[]){return 0;} | 15434 int main(int c,char *v[]){return 0;} |
15427 EOF | 15435 EOF |
15428 if { (eval echo configure:15429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 15436 if { (eval echo configure:15437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
15429 then | 15437 then |
15430 : | 15438 : |
15431 else | 15439 else |
15432 conftest_rc="$?" | 15440 conftest_rc="$?" |
15433 echo "configure: failed program was:" >&5 | 15441 echo "configure: failed program was:" >&5 |