comparison configure @ 187:b405438285a2 r20-3b20

Import from CVS: tag r20-3b20
author cvs
date Mon, 13 Aug 2007 09:56:28 +0200
parents 3d6bfa290dbd
children f53b5ca2e663
comparison
equal deleted inserted replaced
186:24ac94803b48 187:b405438285a2
257 them using \`--OPTION=yes' and explicitly disable them using \`--OPTION=no'. 257 them using \`--OPTION=yes' and explicitly disable them using \`--OPTION=no'.
258 This is especially useful for auto-detected options. 258 This is especially useful for auto-detected options.
259 259
260 Options marked with a (*) are autodetected. 260 Options marked with a (*) are autodetected.
261 261
262 Use colons (or quoted spaces) to separate directory names in option
263 values which are PATHs (i.e. lists of directories).
262 264
263 General options: 265 General options:
264 266
265 --help Issue this usage message. 267 --help Issue this usage message.
266 --verbose Display the results of configure tests. 268 --verbose Display the results of configure tests.
276 special features of GNU Make. (GNU Make 278 special features of GNU Make. (GNU Make
277 works fine on the Makefiles even without this 279 works fine on the Makefiles even without this
278 option. This just allows for simultaneous 280 option. This just allows for simultaneous
279 in-place and --srcdir building.) 281 in-place and --srcdir building.)
280 --cflags=FLAGS Compiler flags. Overrides environment variable CFLAGS. 282 --cflags=FLAGS Compiler flags. Overrides environment variable CFLAGS.
281 --site-includes=DIR Other header file directories. Separate multiple 283 --site-includes=PATH List of directories to search first for header files.
282 dirs with spaces and use quotes to enclose. 284 --site-libraries=PATH List of directories to search first for libraries.
283 --site-libraries=DIR Other library directories. 285 --site-runtime-libraries=PATH
284 --site-runtime-libraries=DIR 286 List of ALL directories to search for dynamically
285 Paths to add with -R flag. 287 linked libraries at run time.
286 --dynamic=yes Link dynamically if supported by system. 288 --dynamic=yes Link dynamically if supported by system.
287 --dynamic=no Force static linking on systems where dynamic 289 --dynamic=no Force static linking on systems where dynamic
288 linking is the default. 290 linking is the default.
289 --srcdir=DIR Look for the XEmacs source files in DIR. 291 --srcdir=DIR Look for the XEmacs source files in DIR.
290 See also --with-gnu-make. 292 See also --with-gnu-make.
296 --prefix=DIR Install files below DIR. Defaults to \`$prefix'. 298 --prefix=DIR Install files below DIR. Defaults to \`$prefix'.
297 299
298 300
299 Window-system options: 301 Window-system options:
300 302
301 --with-x (*) Support the X Window System. 303 --with-x11 (*) Support the X Window System.
302 --with-x=no Don't support X. 304 --with-x11=no Don't support X.
303 --x-includes=DIR Search for X header files in DIR. 305 --x-includes=DIR Search for X header files in DIR.
304 --x-libraries=DIR Search for X libraries in DIR. 306 --x-libraries=DIR Search for X libraries in DIR.
305 --with-toolbars=no Don't compile with any toolbar support. 307 --with-toolbars=no Don't compile with any toolbar support.
306 --with-session=no Compile without realized leader window which will 308 --with-session=no Compile without realized leader window which will
307 keep the WM_COMMAND property. Required for proper 309 keep the WM_COMMAND property. Required for proper
310 widgets emulate Motif (mostly) but are faster. 312 widgets emulate Motif (mostly) but are faster.
311 *WARNING* The Motif menubar is currently broken. 313 *WARNING* The Motif menubar is currently broken.
312 --with-scrollbars=TYPE Use TYPE scrollbars 314 --with-scrollbars=TYPE Use TYPE scrollbars
313 (lucid, motif, athena, athena3d, or no). 315 (lucid, motif, athena, athena3d, or no).
314 --with-dialogs=TYPE Use TYPE dialog boxes (motif, athena, athena3d, or no). 316 --with-dialogs=TYPE Use TYPE dialog boxes (motif, athena, athena3d, or no).
315 (Lucid menubars and scrollbars are the default. 317 Lucid menubars and scrollbars are the default.
316 Motif dialog boxes will be used if Motif can be 318 Motif dialog boxes will be used if Motif can be found.
317 found.)
318 --with-cde (*) Compile in support for CDE drag and drop. 319 --with-cde (*) Compile in support for CDE drag and drop.
319 --with-offix (*) Compile in support for OffiX drag and drop. 320 --with-offix (*) Compile in support for OffiX drag and drop.
320 --with-xmu=no (*) For those unfortunates whose vendors don't ship Xmu. 321 --with-xmu=no (*) For those unfortunates whose vendors don't ship Xmu.
321 --external-widget Compile with external widget support. 322 --external-widget Compile with external widget support.
322 --with-gif Compile with support for GIF image conversion. 323 --with-gif Compile with support for GIF image conversion.
372 --with-hesiod support Hesiod to get the POP server host 373 --with-hesiod support Hesiod to get the POP server host
373 --with-dnet (*) Compile with support for DECnet. 374 --with-dnet (*) Compile with support for DECnet.
374 --mail-locking=TYPE (*) Specify the locking to be used by movemail to prevent 375 --mail-locking=TYPE (*) Specify the locking to be used by movemail to prevent
375 concurrent updates of mail spool files. Valid types 376 concurrent updates of mail spool files. Valid types
376 are \`lockf', \`flock', and \`file'. 377 are \`lockf', \`flock', and \`file'.
377 --package-path=PATH A list of blank separated directories for finding 378 --package-path=PATH Directories to search for packages to dump with xemacs.
378 packages to dump with xemacs. 379 Defaults to \`$prefix/lib/xemacs/packages:~/.xemacs'.
379 Defaults to \`$prefix/lib/xemacs/packages ~/.xemacs'
380 380
381 Internationalization options: 381 Internationalization options:
382 382
383 --with-mule Compile with Mule (MUlti-Lingual Emacs) support, 383 --with-mule Compile with Mule (MUlti-Lingual Emacs) support,
384 needed to suport non-Latin-1 (including Asian) languages. 384 needed to suport non-Latin-1 (including Asian) languages.
651 eval "$opt=\"$val\"" 651 eval "$opt=\"$val\""
652 ;; 652 ;;
653 653
654 "with_xfs" ) 654 "with_xfs" )
655 case "$val" in 655 case "$val" in
656 y | ye | yes ) val=yes ;; 656 y | ye | yes ) val=yes ;;
657 n | no | non | none ) val=no ;; 657 n | no | non | none ) val=no ;;
658 * ) (echo "$progname: Usage error:" 658 * ) (echo "$progname: Usage error:"
659 echo " " "The \`--$optname' option must have one of these values: 659 echo " " "The \`--$optname' option must have one of these values:
660 \`yes', or \`no'." 660 \`yes', or \`no'."
661 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; 661 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
662 esac 662 esac
786 MAKE_SUBDIR="$MAKE_SUBDIR lwlib/energize" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib/energize\" to \$MAKE_SUBDIR"; fi 786 MAKE_SUBDIR="$MAKE_SUBDIR lwlib/energize" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib/energize\" to \$MAKE_SUBDIR"; fi
787 fi 787 fi
788 788
789 test "$extra_verbose" = "yes" && verbose=yes 789 test "$extra_verbose" = "yes" && verbose=yes
790 790
791 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's:^ ::' -e 's/:/ /g'`";; esac 791 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
792 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's:^ ::' -e 's/:/ /g'`";; esac 792 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
793 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's:^ ::' -e 's/:/ /g'`";; esac 793 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
794 794
795 test -n "$with_x" && with_x11="$with_x" 795 test -n "$with_x" && with_x11="$with_x"
796 796
797 if test "$run_in_place" = "yes"; then 797 if test "$run_in_place" = "yes"; then
798 echo "configure: warning: "The --run-in-place option is ignored because it is unnecessary."" 1>&2 798 echo "configure: warning: "The --run-in-place option is ignored because it is unnecessary."" 1>&2
872 ${LN_S} "$srcdir/$dir" "$dir" 872 ${LN_S} "$srcdir/$dir" "$dir"
873 fi 873 fi
874 done 874 done
875 875
876 absolute_pwd="`pwd`"; 876 absolute_pwd="`pwd`";
877 if test -n "$PWD" && "`cd $PWD && pwd`" = "$absolute_pwd" 877 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
878 then blddir="$PWD" 878 then blddir="$PWD"
879 else blddir="$absolute_pwd" 879 else blddir="$absolute_pwd"
880 fi 880 fi
881 881
882 882
1414 case "$opsys" in 1414 case "$opsys" in
1415 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;; 1415 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1416 decosf* ) ld_call_shared="-call_shared" ;; 1416 decosf* ) ld_call_shared="-call_shared" ;;
1417 esac 1417 esac
1418 else case "$opsys" in 1418 else case "$opsys" in
1419 sol2 ) 1419 sol2 )
1420 echo "Static linking is not supported on Solaris 2." 1420 echo "Static linking is not supported on Solaris 2."
1421 echo "Rerun configure without specifying --dynamic=no." 1421 echo "Rerun configure without specifying --dynamic=no."
1422 exit 1 ;; 1422 exit 1 ;;
1423 linux ) ld_call_shared="-Bstatic" ;; 1423 linux ) ld_call_shared="-Bstatic" ;;
1424 decosf* ) ld_call_shared="-non_shared" ;; 1424 decosf* ) ld_call_shared="-non_shared" ;;
4092 4092
4093 4093
4094 echo "checking "for specified window system"" 1>&6 4094 echo "checking "for specified window system"" 1>&6
4095 echo "configure:4096: checking "for specified window system"" >&5 4095 echo "configure:4096: checking "for specified window system"" >&5
4096 4096
4097 if test "$x_includes $x_libraries" = "NONE NONE"; then 4097 if test "$with_x11" != "no"; then
4098 if test -n "$OPENWINHOME" \ 4098 test "$x_includes $x_libraries" != "NONE NONE" && \
4099 -a "$OPENWINHOME" != "/usr/openwin" \ 4099 window_system=x11 with_x11=yes
4100 -a -d "$OPENWINHOME"; then 4100
4101 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib" 4101 if test "$x_includes $x_libraries" = "NONE NONE"; then
4102 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include" 4102 if test -n "$OPENWINHOME" \
4103 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include" 4103 -a "$OPENWINHOME" != "/usr/openwin" \
4104 -a -d "$OPENWINHOME"; then
4105 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4106 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4107 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4108 else
4109 for dir in "/usr/X11R6/include" "/usr/include/X11R6"; do
4110 if test -d "$dir/X11"; then x_includes="$dir"; break; fi
4111 done
4112 if test "$x_includes" != "NONE"; then
4113 for dir in "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4114 if test -d "$dir"; then x_libraries="$dir"; break; fi
4115 done
4116 fi
4117 fi
4104 fi 4118 fi
4105 fi 4119
4106
4107 test "$x_includes $x_libraries" != "NONE NONE" && \
4108 window_system=x11 with_x11=yes
4109
4110 if test "$with_x11" != "no"; then
4111 # If we find X, set shell vars x_includes and x_libraries to the 4120 # If we find X, set shell vars x_includes and x_libraries to the
4112 # paths, otherwise set no_x=yes. 4121 # paths, otherwise set no_x=yes.
4113 # Uses ac_ vars as temps to allow command line to override cache and checks. 4122 # Uses ac_ vars as temps to allow command line to override cache and checks.
4114 # --without-x overrides everything else, but does not touch the cache. 4123 # --without-x overrides everything else, but does not touch the cache.
4115 echo $ac_n "checking for X""... $ac_c" 1>&6 4124 echo $ac_n "checking for X""... $ac_c" 1>&6
4116 echo "configure:4117: checking for X" >&5 4125 echo "configure:4126: checking for X" >&5
4117 4126
4118 # Check whether --with-x or --without-x was given. 4127 # Check whether --with-x or --without-x was given.
4119 if test "${with_x+set}" = set; then 4128 if test "${with_x+set}" = set; then
4120 withval="$with_x" 4129 withval="$with_x"
4121 : 4130 :
4171 # Guess where to find include files, by looking for this one X11 .h file. 4180 # Guess where to find include files, by looking for this one X11 .h file.
4172 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4181 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4173 4182
4174 # First, try using that file with no special directory specified. 4183 # First, try using that file with no special directory specified.
4175 cat > conftest.$ac_ext <<EOF 4184 cat > conftest.$ac_ext <<EOF
4176 #line 4177 "configure" 4185 #line 4186 "configure"
4177 #include "confdefs.h" 4186 #include "confdefs.h"
4178 #include <$x_direct_test_include> 4187 #include <$x_direct_test_include>
4179 EOF 4188 EOF
4180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4181 { (eval echo configure:4182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4190 { (eval echo configure:4191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4182 ac_err=`grep -v '^ *+' conftest.out` 4191 ac_err=`grep -v '^ *+' conftest.out`
4183 if test -z "$ac_err"; then 4192 if test -z "$ac_err"; then
4184 rm -rf conftest* 4193 rm -rf conftest*
4185 # We can compile using X headers with no special include directory. 4194 # We can compile using X headers with no special include directory.
4186 ac_x_includes= 4195 ac_x_includes=
4245 # See if we find them without any special options. 4254 # See if we find them without any special options.
4246 # Don't add to $LIBS permanently. 4255 # Don't add to $LIBS permanently.
4247 ac_save_LIBS="$LIBS" 4256 ac_save_LIBS="$LIBS"
4248 LIBS="-l$x_direct_test_library $LIBS" 4257 LIBS="-l$x_direct_test_library $LIBS"
4249 cat > conftest.$ac_ext <<EOF 4258 cat > conftest.$ac_ext <<EOF
4250 #line 4251 "configure" 4259 #line 4260 "configure"
4251 #include "confdefs.h" 4260 #include "confdefs.h"
4252 4261
4253 int main() { 4262 int main() {
4254 ${x_direct_test_function}() 4263 ${x_direct_test_function}()
4255 ; return 0; } 4264 ; return 0; }
4256 EOF 4265 EOF
4257 if { (eval echo configure:4258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4266 if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4258 rm -rf conftest* 4267 rm -rf conftest*
4259 LIBS="$ac_save_LIBS" 4268 LIBS="$ac_save_LIBS"
4260 # We can link X programs with no special library path. 4269 # We can link X programs with no special library path.
4261 ac_x_libraries= 4270 ac_x_libraries=
4262 else 4271 else
4361 # For Solaris; some versions of Sun CC require a space after -R and 4370 # For Solaris; some versions of Sun CC require a space after -R and
4362 # others require no space. Words are not sufficient . . . . 4371 # others require no space. Words are not sufficient . . . .
4363 case "`(uname -sr) 2>/dev/null`" in 4372 case "`(uname -sr) 2>/dev/null`" in
4364 "SunOS 5"*) 4373 "SunOS 5"*)
4365 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4374 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4366 echo "configure:4367: checking whether -R must be followed by a space" >&5 4375 echo "configure:4376: checking whether -R must be followed by a space" >&5
4367 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4376 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4368 cat > conftest.$ac_ext <<EOF 4377 cat > conftest.$ac_ext <<EOF
4369 #line 4370 "configure" 4378 #line 4379 "configure"
4370 #include "confdefs.h" 4379 #include "confdefs.h"
4371 4380
4372 int main() { 4381 int main() {
4373 4382
4374 ; return 0; } 4383 ; return 0; }
4375 EOF 4384 EOF
4376 if { (eval echo configure:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4385 if { (eval echo configure:4386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4377 rm -rf conftest* 4386 rm -rf conftest*
4378 ac_R_nospace=yes 4387 ac_R_nospace=yes
4379 else 4388 else
4380 echo "configure: failed program was:" >&5 4389 echo "configure: failed program was:" >&5
4381 cat conftest.$ac_ext >&5 4390 cat conftest.$ac_ext >&5
4387 echo "$ac_t""no" 1>&6 4396 echo "$ac_t""no" 1>&6
4388 X_LIBS="$X_LIBS -R$x_libraries" 4397 X_LIBS="$X_LIBS -R$x_libraries"
4389 else 4398 else
4390 LIBS="$ac_xsave_LIBS -R $x_libraries" 4399 LIBS="$ac_xsave_LIBS -R $x_libraries"
4391 cat > conftest.$ac_ext <<EOF 4400 cat > conftest.$ac_ext <<EOF
4392 #line 4393 "configure" 4401 #line 4402 "configure"
4393 #include "confdefs.h" 4402 #include "confdefs.h"
4394 4403
4395 int main() { 4404 int main() {
4396 4405
4397 ; return 0; } 4406 ; return 0; }
4398 EOF 4407 EOF
4399 if { (eval echo configure:4400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4408 if { (eval echo configure:4409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4400 rm -rf conftest* 4409 rm -rf conftest*
4401 ac_R_space=yes 4410 ac_R_space=yes
4402 else 4411 else
4403 echo "configure: failed program was:" >&5 4412 echo "configure: failed program was:" >&5
4404 cat conftest.$ac_ext >&5 4413 cat conftest.$ac_ext >&5
4430 if test "$with_dnet" = "no" ; then 4439 if test "$with_dnet" = "no" ; then
4431 ac_cv_lib_dnet_dnet_ntoa=no 4440 ac_cv_lib_dnet_dnet_ntoa=no
4432 else 4441 else
4433 4442
4434 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4443 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4435 echo "configure:4436: checking for dnet_ntoa in -ldnet" >&5 4444 echo "configure:4445: checking for dnet_ntoa in -ldnet" >&5
4436 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4445 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4437 4446
4438 xe_check_libs=" -ldnet " 4447 xe_check_libs=" -ldnet "
4439 cat > conftest.$ac_ext <<EOF 4448 cat > conftest.$ac_ext <<EOF
4440 #line 4441 "configure" 4449 #line 4450 "configure"
4441 #include "confdefs.h" 4450 #include "confdefs.h"
4442 /* Override any gcc2 internal prototype to avoid an error. */ 4451 /* Override any gcc2 internal prototype to avoid an error. */
4443 /* We use char because int might match the return type of a gcc2 4452 /* We use char because int might match the return type of a gcc2
4444 builtin and then its argument prototype would still apply. */ 4453 builtin and then its argument prototype would still apply. */
4445 char dnet_ntoa(); 4454 char dnet_ntoa();
4446 4455
4447 int main() { 4456 int main() {
4448 dnet_ntoa() 4457 dnet_ntoa()
4449 ; return 0; } 4458 ; return 0; }
4450 EOF 4459 EOF
4451 if { (eval echo configure:4452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4460 if { (eval echo configure:4461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4452 rm -rf conftest* 4461 rm -rf conftest*
4453 eval "ac_cv_lib_$ac_lib_var=yes" 4462 eval "ac_cv_lib_$ac_lib_var=yes"
4454 else 4463 else
4455 echo "configure: failed program was:" >&5 4464 echo "configure: failed program was:" >&5
4456 cat conftest.$ac_ext >&5 4465 cat conftest.$ac_ext >&5
4470 fi 4479 fi
4471 4480
4472 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4481 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4473 4482
4474 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4483 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4475 echo "configure:4476: checking for dnet_ntoa in -ldnet_stub" >&5 4484 echo "configure:4485: checking for dnet_ntoa in -ldnet_stub" >&5
4476 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4485 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4477 4486
4478 xe_check_libs=" -ldnet_stub " 4487 xe_check_libs=" -ldnet_stub "
4479 cat > conftest.$ac_ext <<EOF 4488 cat > conftest.$ac_ext <<EOF
4480 #line 4481 "configure" 4489 #line 4490 "configure"
4481 #include "confdefs.h" 4490 #include "confdefs.h"
4482 /* Override any gcc2 internal prototype to avoid an error. */ 4491 /* Override any gcc2 internal prototype to avoid an error. */
4483 /* We use char because int might match the return type of a gcc2 4492 /* We use char because int might match the return type of a gcc2
4484 builtin and then its argument prototype would still apply. */ 4493 builtin and then its argument prototype would still apply. */
4485 char dnet_ntoa(); 4494 char dnet_ntoa();
4486 4495
4487 int main() { 4496 int main() {
4488 dnet_ntoa() 4497 dnet_ntoa()
4489 ; return 0; } 4498 ; return 0; }
4490 EOF 4499 EOF
4491 if { (eval echo configure:4492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4500 if { (eval echo configure:4501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4492 rm -rf conftest* 4501 rm -rf conftest*
4493 eval "ac_cv_lib_$ac_lib_var=yes" 4502 eval "ac_cv_lib_$ac_lib_var=yes"
4494 else 4503 else
4495 echo "configure: failed program was:" >&5 4504 echo "configure: failed program was:" >&5
4496 cat conftest.$ac_ext >&5 4505 cat conftest.$ac_ext >&5
4515 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 4524 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4516 # needs -lnsl. 4525 # needs -lnsl.
4517 # The nsl library prevents programs from opening the X display 4526 # The nsl library prevents programs from opening the X display
4518 # on Irix 5.2, according to dickey@clark.net. 4527 # on Irix 5.2, according to dickey@clark.net.
4519 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 4528 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4520 echo "configure:4521: checking for gethostbyname" >&5 4529 echo "configure:4530: checking for gethostbyname" >&5
4521 4530
4522 cat > conftest.$ac_ext <<EOF 4531 cat > conftest.$ac_ext <<EOF
4523 #line 4524 "configure" 4532 #line 4533 "configure"
4524 #include "confdefs.h" 4533 #include "confdefs.h"
4525 /* System header to define __stub macros and hopefully few prototypes, 4534 /* System header to define __stub macros and hopefully few prototypes,
4526 which can conflict with char gethostbyname(); below. */ 4535 which can conflict with char gethostbyname(); below. */
4527 #include <assert.h> 4536 #include <assert.h>
4528 /* Override any gcc2 internal prototype to avoid an error. */ 4537 /* Override any gcc2 internal prototype to avoid an error. */
4541 gethostbyname(); 4550 gethostbyname();
4542 #endif 4551 #endif
4543 4552
4544 ; return 0; } 4553 ; return 0; }
4545 EOF 4554 EOF
4546 if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4555 if { (eval echo configure:4556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4547 rm -rf conftest* 4556 rm -rf conftest*
4548 eval "ac_cv_func_gethostbyname=yes" 4557 eval "ac_cv_func_gethostbyname=yes"
4549 else 4558 else
4550 echo "configure: failed program was:" >&5 4559 echo "configure: failed program was:" >&5
4551 cat conftest.$ac_ext >&5 4560 cat conftest.$ac_ext >&5
4562 fi 4571 fi
4563 4572
4564 if test $ac_cv_func_gethostbyname = no; then 4573 if test $ac_cv_func_gethostbyname = no; then
4565 4574
4566 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4575 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4567 echo "configure:4568: checking for gethostbyname in -lnsl" >&5 4576 echo "configure:4577: checking for gethostbyname in -lnsl" >&5
4568 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4577 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4569 4578
4570 xe_check_libs=" -lnsl " 4579 xe_check_libs=" -lnsl "
4571 cat > conftest.$ac_ext <<EOF 4580 cat > conftest.$ac_ext <<EOF
4572 #line 4573 "configure" 4581 #line 4582 "configure"
4573 #include "confdefs.h" 4582 #include "confdefs.h"
4574 /* Override any gcc2 internal prototype to avoid an error. */ 4583 /* Override any gcc2 internal prototype to avoid an error. */
4575 /* We use char because int might match the return type of a gcc2 4584 /* We use char because int might match the return type of a gcc2
4576 builtin and then its argument prototype would still apply. */ 4585 builtin and then its argument prototype would still apply. */
4577 char gethostbyname(); 4586 char gethostbyname();
4578 4587
4579 int main() { 4588 int main() {
4580 gethostbyname() 4589 gethostbyname()
4581 ; return 0; } 4590 ; return 0; }
4582 EOF 4591 EOF
4583 if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4592 if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4584 rm -rf conftest* 4593 rm -rf conftest*
4585 eval "ac_cv_lib_$ac_lib_var=yes" 4594 eval "ac_cv_lib_$ac_lib_var=yes"
4586 else 4595 else
4587 echo "configure: failed program was:" >&5 4596 echo "configure: failed program was:" >&5
4588 cat conftest.$ac_ext >&5 4597 cat conftest.$ac_ext >&5
4608 # on later versions), says simon@lia.di.epfl.ch: it contains 4617 # on later versions), says simon@lia.di.epfl.ch: it contains
4609 # gethostby* variants that don't use the nameserver (or something). 4618 # gethostby* variants that don't use the nameserver (or something).
4610 # -lsocket must be given before -lnsl if both are needed. 4619 # -lsocket must be given before -lnsl if both are needed.
4611 # We assume that if connect needs -lnsl, so does gethostbyname. 4620 # We assume that if connect needs -lnsl, so does gethostbyname.
4612 echo $ac_n "checking for connect""... $ac_c" 1>&6 4621 echo $ac_n "checking for connect""... $ac_c" 1>&6
4613 echo "configure:4614: checking for connect" >&5 4622 echo "configure:4623: checking for connect" >&5
4614 4623
4615 cat > conftest.$ac_ext <<EOF 4624 cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure" 4625 #line 4626 "configure"
4617 #include "confdefs.h" 4626 #include "confdefs.h"
4618 /* System header to define __stub macros and hopefully few prototypes, 4627 /* System header to define __stub macros and hopefully few prototypes,
4619 which can conflict with char connect(); below. */ 4628 which can conflict with char connect(); below. */
4620 #include <assert.h> 4629 #include <assert.h>
4621 /* Override any gcc2 internal prototype to avoid an error. */ 4630 /* Override any gcc2 internal prototype to avoid an error. */
4634 connect(); 4643 connect();
4635 #endif 4644 #endif
4636 4645
4637 ; return 0; } 4646 ; return 0; }
4638 EOF 4647 EOF
4639 if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4648 if { (eval echo configure:4649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4640 rm -rf conftest* 4649 rm -rf conftest*
4641 eval "ac_cv_func_connect=yes" 4650 eval "ac_cv_func_connect=yes"
4642 else 4651 else
4643 echo "configure: failed program was:" >&5 4652 echo "configure: failed program was:" >&5
4644 cat conftest.$ac_ext >&5 4653 cat conftest.$ac_ext >&5
4657 if test $ac_cv_func_connect = no; then 4666 if test $ac_cv_func_connect = no; then
4658 4667
4659 xe_msg_checking="for connect in -lsocket" 4668 xe_msg_checking="for connect in -lsocket"
4660 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4669 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4661 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4670 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4662 echo "configure:4663: checking "$xe_msg_checking"" >&5 4671 echo "configure:4672: checking "$xe_msg_checking"" >&5
4663 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4672 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4664 4673
4665 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4674 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4666 cat > conftest.$ac_ext <<EOF 4675 cat > conftest.$ac_ext <<EOF
4667 #line 4668 "configure" 4676 #line 4677 "configure"
4668 #include "confdefs.h" 4677 #include "confdefs.h"
4669 /* Override any gcc2 internal prototype to avoid an error. */ 4678 /* Override any gcc2 internal prototype to avoid an error. */
4670 /* We use char because int might match the return type of a gcc2 4679 /* We use char because int might match the return type of a gcc2
4671 builtin and then its argument prototype would still apply. */ 4680 builtin and then its argument prototype would still apply. */
4672 char connect(); 4681 char connect();
4673 4682
4674 int main() { 4683 int main() {
4675 connect() 4684 connect()
4676 ; return 0; } 4685 ; return 0; }
4677 EOF 4686 EOF
4678 if { (eval echo configure:4679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4687 if { (eval echo configure:4688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4679 rm -rf conftest* 4688 rm -rf conftest*
4680 eval "ac_cv_lib_$ac_lib_var=yes" 4689 eval "ac_cv_lib_$ac_lib_var=yes"
4681 else 4690 else
4682 echo "configure: failed program was:" >&5 4691 echo "configure: failed program was:" >&5
4683 cat conftest.$ac_ext >&5 4692 cat conftest.$ac_ext >&5
4697 4706
4698 fi 4707 fi
4699 4708
4700 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4709 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4701 echo $ac_n "checking for remove""... $ac_c" 1>&6 4710 echo $ac_n "checking for remove""... $ac_c" 1>&6
4702 echo "configure:4703: checking for remove" >&5 4711 echo "configure:4712: checking for remove" >&5
4703 4712
4704 cat > conftest.$ac_ext <<EOF 4713 cat > conftest.$ac_ext <<EOF
4705 #line 4706 "configure" 4714 #line 4715 "configure"
4706 #include "confdefs.h" 4715 #include "confdefs.h"
4707 /* System header to define __stub macros and hopefully few prototypes, 4716 /* System header to define __stub macros and hopefully few prototypes,
4708 which can conflict with char remove(); below. */ 4717 which can conflict with char remove(); below. */
4709 #include <assert.h> 4718 #include <assert.h>
4710 /* Override any gcc2 internal prototype to avoid an error. */ 4719 /* Override any gcc2 internal prototype to avoid an error. */
4723 remove(); 4732 remove();
4724 #endif 4733 #endif
4725 4734
4726 ; return 0; } 4735 ; return 0; }
4727 EOF 4736 EOF
4728 if { (eval echo configure:4729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4737 if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4729 rm -rf conftest* 4738 rm -rf conftest*
4730 eval "ac_cv_func_remove=yes" 4739 eval "ac_cv_func_remove=yes"
4731 else 4740 else
4732 echo "configure: failed program was:" >&5 4741 echo "configure: failed program was:" >&5
4733 cat conftest.$ac_ext >&5 4742 cat conftest.$ac_ext >&5
4744 fi 4753 fi
4745 4754
4746 if test $ac_cv_func_remove = no; then 4755 if test $ac_cv_func_remove = no; then
4747 4756
4748 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 4757 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4749 echo "configure:4750: checking for remove in -lposix" >&5 4758 echo "configure:4759: checking for remove in -lposix" >&5
4750 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 4759 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4751 4760
4752 xe_check_libs=" -lposix " 4761 xe_check_libs=" -lposix "
4753 cat > conftest.$ac_ext <<EOF 4762 cat > conftest.$ac_ext <<EOF
4754 #line 4755 "configure" 4763 #line 4764 "configure"
4755 #include "confdefs.h" 4764 #include "confdefs.h"
4756 /* Override any gcc2 internal prototype to avoid an error. */ 4765 /* Override any gcc2 internal prototype to avoid an error. */
4757 /* We use char because int might match the return type of a gcc2 4766 /* We use char because int might match the return type of a gcc2
4758 builtin and then its argument prototype would still apply. */ 4767 builtin and then its argument prototype would still apply. */
4759 char remove(); 4768 char remove();
4760 4769
4761 int main() { 4770 int main() {
4762 remove() 4771 remove()
4763 ; return 0; } 4772 ; return 0; }
4764 EOF 4773 EOF
4765 if { (eval echo configure:4766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4774 if { (eval echo configure:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4766 rm -rf conftest* 4775 rm -rf conftest*
4767 eval "ac_cv_lib_$ac_lib_var=yes" 4776 eval "ac_cv_lib_$ac_lib_var=yes"
4768 else 4777 else
4769 echo "configure: failed program was:" >&5 4778 echo "configure: failed program was:" >&5
4770 cat conftest.$ac_ext >&5 4779 cat conftest.$ac_ext >&5
4784 4793
4785 fi 4794 fi
4786 4795
4787 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4796 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4788 echo $ac_n "checking for shmat""... $ac_c" 1>&6 4797 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4789 echo "configure:4790: checking for shmat" >&5 4798 echo "configure:4799: checking for shmat" >&5
4790 4799
4791 cat > conftest.$ac_ext <<EOF 4800 cat > conftest.$ac_ext <<EOF
4792 #line 4793 "configure" 4801 #line 4802 "configure"
4793 #include "confdefs.h" 4802 #include "confdefs.h"
4794 /* System header to define __stub macros and hopefully few prototypes, 4803 /* System header to define __stub macros and hopefully few prototypes,
4795 which can conflict with char shmat(); below. */ 4804 which can conflict with char shmat(); below. */
4796 #include <assert.h> 4805 #include <assert.h>
4797 /* Override any gcc2 internal prototype to avoid an error. */ 4806 /* Override any gcc2 internal prototype to avoid an error. */
4810 shmat(); 4819 shmat();
4811 #endif 4820 #endif
4812 4821
4813 ; return 0; } 4822 ; return 0; }
4814 EOF 4823 EOF
4815 if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4824 if { (eval echo configure:4825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4816 rm -rf conftest* 4825 rm -rf conftest*
4817 eval "ac_cv_func_shmat=yes" 4826 eval "ac_cv_func_shmat=yes"
4818 else 4827 else
4819 echo "configure: failed program was:" >&5 4828 echo "configure: failed program was:" >&5
4820 cat conftest.$ac_ext >&5 4829 cat conftest.$ac_ext >&5
4831 fi 4840 fi
4832 4841
4833 if test $ac_cv_func_shmat = no; then 4842 if test $ac_cv_func_shmat = no; then
4834 4843
4835 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 4844 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4836 echo "configure:4837: checking for shmat in -lipc" >&5 4845 echo "configure:4846: checking for shmat in -lipc" >&5
4837 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 4846 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4838 4847
4839 xe_check_libs=" -lipc " 4848 xe_check_libs=" -lipc "
4840 cat > conftest.$ac_ext <<EOF 4849 cat > conftest.$ac_ext <<EOF
4841 #line 4842 "configure" 4850 #line 4851 "configure"
4842 #include "confdefs.h" 4851 #include "confdefs.h"
4843 /* Override any gcc2 internal prototype to avoid an error. */ 4852 /* Override any gcc2 internal prototype to avoid an error. */
4844 /* We use char because int might match the return type of a gcc2 4853 /* We use char because int might match the return type of a gcc2
4845 builtin and then its argument prototype would still apply. */ 4854 builtin and then its argument prototype would still apply. */
4846 char shmat(); 4855 char shmat();
4847 4856
4848 int main() { 4857 int main() {
4849 shmat() 4858 shmat()
4850 ; return 0; } 4859 ; return 0; }
4851 EOF 4860 EOF
4852 if { (eval echo configure:4853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4861 if { (eval echo configure:4862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4853 rm -rf conftest* 4862 rm -rf conftest*
4854 eval "ac_cv_lib_$ac_lib_var=yes" 4863 eval "ac_cv_lib_$ac_lib_var=yes"
4855 else 4864 else
4856 echo "configure: failed program was:" >&5 4865 echo "configure: failed program was:" >&5
4857 cat conftest.$ac_ext >&5 4866 cat conftest.$ac_ext >&5
4881 # These have to be linked with before -lX11, unlike the other 4890 # These have to be linked with before -lX11, unlike the other
4882 # libraries we check for below, so use a different variable. 4891 # libraries we check for below, so use a different variable.
4883 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 4892 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4884 4893
4885 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 4894 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4886 echo "configure:4887: checking for IceConnectionNumber in -lICE" >&5 4895 echo "configure:4896: checking for IceConnectionNumber in -lICE" >&5
4887 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 4896 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4888 4897
4889 xe_check_libs=" -lICE " 4898 xe_check_libs=" -lICE "
4890 cat > conftest.$ac_ext <<EOF 4899 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure" 4900 #line 4901 "configure"
4892 #include "confdefs.h" 4901 #include "confdefs.h"
4893 /* Override any gcc2 internal prototype to avoid an error. */ 4902 /* Override any gcc2 internal prototype to avoid an error. */
4894 /* We use char because int might match the return type of a gcc2 4903 /* We use char because int might match the return type of a gcc2
4895 builtin and then its argument prototype would still apply. */ 4904 builtin and then its argument prototype would still apply. */
4896 char IceConnectionNumber(); 4905 char IceConnectionNumber();
4897 4906
4898 int main() { 4907 int main() {
4899 IceConnectionNumber() 4908 IceConnectionNumber()
4900 ; return 0; } 4909 ; return 0; }
4901 EOF 4910 EOF
4902 if { (eval echo configure:4903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4911 if { (eval echo configure:4912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4903 rm -rf conftest* 4912 rm -rf conftest*
4904 eval "ac_cv_lib_$ac_lib_var=yes" 4913 eval "ac_cv_lib_$ac_lib_var=yes"
4905 else 4914 else
4906 echo "configure: failed program was:" >&5 4915 echo "configure: failed program was:" >&5
4907 cat conftest.$ac_ext >&5 4916 cat conftest.$ac_ext >&5
5030 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done 5039 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5031 echo 5040 echo
5032 fi 5041 fi
5033 5042
5034 echo "checking for X defines extracted by xmkmf" 1>&6 5043 echo "checking for X defines extracted by xmkmf" 1>&6
5035 echo "configure:5036: checking for X defines extracted by xmkmf" >&5 5044 echo "configure:5045: checking for X defines extracted by xmkmf" >&5
5036 rm -fr conftestdir 5045 rm -fr conftestdir
5037 if mkdir conftestdir; then 5046 if mkdir conftestdir; then
5038 cd conftestdir 5047 cd conftestdir
5039 cat > Imakefile <<'EOF' 5048 cat > Imakefile <<'EOF'
5040 xetest: 5049 xetest:
5062 done 5071 done
5063 fi 5072 fi
5064 5073
5065 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5074 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5066 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5075 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5067 echo "configure:5068: checking for X11/Intrinsic.h" >&5 5076 echo "configure:5077: checking for X11/Intrinsic.h" >&5
5068 5077
5069 cat > conftest.$ac_ext <<EOF 5078 cat > conftest.$ac_ext <<EOF
5070 #line 5071 "configure" 5079 #line 5080 "configure"
5071 #include "confdefs.h" 5080 #include "confdefs.h"
5072 #include <X11/Intrinsic.h> 5081 #include <X11/Intrinsic.h>
5073 EOF 5082 EOF
5074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5075 { (eval echo configure:5076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5084 { (eval echo configure:5085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5076 ac_err=`grep -v '^ *+' conftest.out` 5085 ac_err=`grep -v '^ *+' conftest.out`
5077 if test -z "$ac_err"; then 5086 if test -z "$ac_err"; then
5078 rm -rf conftest* 5087 rm -rf conftest*
5079 eval "ac_cv_header_$ac_safe=yes" 5088 eval "ac_cv_header_$ac_safe=yes"
5080 else 5089 else
5094 fi 5103 fi
5095 5104
5096 5105
5097 5106
5098 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5107 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5099 echo "configure:5100: checking for XOpenDisplay in -lX11" >&5 5108 echo "configure:5109: checking for XOpenDisplay in -lX11" >&5
5100 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5109 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5101 5110
5102 xe_check_libs=" -lX11 " 5111 xe_check_libs=" -lX11 "
5103 cat > conftest.$ac_ext <<EOF 5112 cat > conftest.$ac_ext <<EOF
5104 #line 5105 "configure" 5113 #line 5114 "configure"
5105 #include "confdefs.h" 5114 #include "confdefs.h"
5106 /* Override any gcc2 internal prototype to avoid an error. */ 5115 /* Override any gcc2 internal prototype to avoid an error. */
5107 /* We use char because int might match the return type of a gcc2 5116 /* We use char because int might match the return type of a gcc2
5108 builtin and then its argument prototype would still apply. */ 5117 builtin and then its argument prototype would still apply. */
5109 char XOpenDisplay(); 5118 char XOpenDisplay();
5110 5119
5111 int main() { 5120 int main() {
5112 XOpenDisplay() 5121 XOpenDisplay()
5113 ; return 0; } 5122 ; return 0; }
5114 EOF 5123 EOF
5115 if { (eval echo configure:5116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5124 if { (eval echo configure:5125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5116 rm -rf conftest* 5125 rm -rf conftest*
5117 eval "ac_cv_lib_$ac_lib_var=yes" 5126 eval "ac_cv_lib_$ac_lib_var=yes"
5118 else 5127 else
5119 echo "configure: failed program was:" >&5 5128 echo "configure: failed program was:" >&5
5120 cat conftest.$ac_ext >&5 5129 cat conftest.$ac_ext >&5
5135 if test "$have_lib_x11" != "yes"; then 5144 if test "$have_lib_x11" != "yes"; then
5136 5145
5137 xe_msg_checking="for XGetFontProperty in -lX11" 5146 xe_msg_checking="for XGetFontProperty in -lX11"
5138 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5147 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5139 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5148 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5140 echo "configure:5141: checking "$xe_msg_checking"" >&5 5149 echo "configure:5150: checking "$xe_msg_checking"" >&5
5141 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5150 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5142 5151
5143 xe_check_libs=" -lX11 -b i486-linuxaout" 5152 xe_check_libs=" -lX11 -b i486-linuxaout"
5144 cat > conftest.$ac_ext <<EOF 5153 cat > conftest.$ac_ext <<EOF
5145 #line 5146 "configure" 5154 #line 5155 "configure"
5146 #include "confdefs.h" 5155 #include "confdefs.h"
5147 /* Override any gcc2 internal prototype to avoid an error. */ 5156 /* Override any gcc2 internal prototype to avoid an error. */
5148 /* We use char because int might match the return type of a gcc2 5157 /* We use char because int might match the return type of a gcc2
5149 builtin and then its argument prototype would still apply. */ 5158 builtin and then its argument prototype would still apply. */
5150 char XGetFontProperty(); 5159 char XGetFontProperty();
5151 5160
5152 int main() { 5161 int main() {
5153 XGetFontProperty() 5162 XGetFontProperty()
5154 ; return 0; } 5163 ; return 0; }
5155 EOF 5164 EOF
5156 if { (eval echo configure:5157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5165 if { (eval echo configure:5166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5157 rm -rf conftest* 5166 rm -rf conftest*
5158 eval "ac_cv_lib_$ac_lib_var=yes" 5167 eval "ac_cv_lib_$ac_lib_var=yes"
5159 else 5168 else
5160 echo "configure: failed program was:" >&5 5169 echo "configure: failed program was:" >&5
5161 cat conftest.$ac_ext >&5 5170 cat conftest.$ac_ext >&5
5178 libs_x="-lX11" 5187 libs_x="-lX11"
5179 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5188 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5180 5189
5181 5190
5182 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5191 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5183 echo "configure:5184: checking for XShapeSelectInput in -lXext" >&5 5192 echo "configure:5193: checking for XShapeSelectInput in -lXext" >&5
5184 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5193 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5185 5194
5186 xe_check_libs=" -lXext " 5195 xe_check_libs=" -lXext "
5187 cat > conftest.$ac_ext <<EOF 5196 cat > conftest.$ac_ext <<EOF
5188 #line 5189 "configure" 5197 #line 5198 "configure"
5189 #include "confdefs.h" 5198 #include "confdefs.h"
5190 /* Override any gcc2 internal prototype to avoid an error. */ 5199 /* Override any gcc2 internal prototype to avoid an error. */
5191 /* We use char because int might match the return type of a gcc2 5200 /* We use char because int might match the return type of a gcc2
5192 builtin and then its argument prototype would still apply. */ 5201 builtin and then its argument prototype would still apply. */
5193 char XShapeSelectInput(); 5202 char XShapeSelectInput();
5194 5203
5195 int main() { 5204 int main() {
5196 XShapeSelectInput() 5205 XShapeSelectInput()
5197 ; return 0; } 5206 ; return 0; }
5198 EOF 5207 EOF
5199 if { (eval echo configure:5200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5208 if { (eval echo configure:5209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5200 rm -rf conftest* 5209 rm -rf conftest*
5201 eval "ac_cv_lib_$ac_lib_var=yes" 5210 eval "ac_cv_lib_$ac_lib_var=yes"
5202 else 5211 else
5203 echo "configure: failed program was:" >&5 5212 echo "configure: failed program was:" >&5
5204 cat conftest.$ac_ext >&5 5213 cat conftest.$ac_ext >&5
5217 5226
5218 5227
5219 5228
5220 5229
5221 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5230 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5222 echo "configure:5223: checking for XtOpenDisplay in -lXt" >&5 5231 echo "configure:5232: checking for XtOpenDisplay in -lXt" >&5
5223 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5232 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5224 5233
5225 xe_check_libs=" -lXt " 5234 xe_check_libs=" -lXt "
5226 cat > conftest.$ac_ext <<EOF 5235 cat > conftest.$ac_ext <<EOF
5227 #line 5228 "configure" 5236 #line 5237 "configure"
5228 #include "confdefs.h" 5237 #include "confdefs.h"
5229 /* Override any gcc2 internal prototype to avoid an error. */ 5238 /* Override any gcc2 internal prototype to avoid an error. */
5230 /* We use char because int might match the return type of a gcc2 5239 /* We use char because int might match the return type of a gcc2
5231 builtin and then its argument prototype would still apply. */ 5240 builtin and then its argument prototype would still apply. */
5232 char XtOpenDisplay(); 5241 char XtOpenDisplay();
5233 5242
5234 int main() { 5243 int main() {
5235 XtOpenDisplay() 5244 XtOpenDisplay()
5236 ; return 0; } 5245 ; return 0; }
5237 EOF 5246 EOF
5238 if { (eval echo configure:5239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5247 if { (eval echo configure:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5239 rm -rf conftest* 5248 rm -rf conftest*
5240 eval "ac_cv_lib_$ac_lib_var=yes" 5249 eval "ac_cv_lib_$ac_lib_var=yes"
5241 else 5250 else
5242 echo "configure: failed program was:" >&5 5251 echo "configure: failed program was:" >&5
5243 cat conftest.$ac_ext >&5 5252 cat conftest.$ac_ext >&5
5256 fi 5265 fi
5257 5266
5258 5267
5259 5268
5260 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5269 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5261 echo "configure:5262: checking the version of X11 being used" >&5 5270 echo "configure:5271: checking the version of X11 being used" >&5
5262 cat > conftest.$ac_ext <<EOF 5271 cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure" 5272 #line 5273 "configure"
5264 #include "confdefs.h" 5273 #include "confdefs.h"
5265 #include <X11/Intrinsic.h> 5274 #include <X11/Intrinsic.h>
5266 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5275 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5267 EOF 5276 EOF
5268 if { (eval echo configure:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5277 if { (eval echo configure:5278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5269 then 5278 then
5270 ./conftest foobar; x11_release=$? 5279 ./conftest foobar; x11_release=$?
5271 else 5280 else
5272 echo "configure: failed program was:" >&5 5281 echo "configure: failed program was:" >&5
5273 cat conftest.$ac_ext >&5 5282 cat conftest.$ac_ext >&5
5287 5296
5288 for ac_hdr in X11/Xlocale.h 5297 for ac_hdr in X11/Xlocale.h
5289 do 5298 do
5290 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5299 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5291 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5300 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5292 echo "configure:5293: checking for $ac_hdr" >&5 5301 echo "configure:5302: checking for $ac_hdr" >&5
5293 5302
5294 cat > conftest.$ac_ext <<EOF 5303 cat > conftest.$ac_ext <<EOF
5295 #line 5296 "configure" 5304 #line 5305 "configure"
5296 #include "confdefs.h" 5305 #include "confdefs.h"
5297 #include <$ac_hdr> 5306 #include <$ac_hdr>
5298 EOF 5307 EOF
5299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5300 { (eval echo configure:5301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5309 { (eval echo configure:5310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5301 ac_err=`grep -v '^ *+' conftest.out` 5310 ac_err=`grep -v '^ *+' conftest.out`
5302 if test -z "$ac_err"; then 5311 if test -z "$ac_err"; then
5303 rm -rf conftest* 5312 rm -rf conftest*
5304 eval "ac_cv_header_$ac_safe=yes" 5313 eval "ac_cv_header_$ac_safe=yes"
5305 else 5314 else
5326 fi 5335 fi
5327 done 5336 done
5328 5337
5329 5338
5330 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5339 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5331 echo "configure:5332: checking for XFree86" >&5 5340 echo "configure:5341: checking for XFree86" >&5
5332 if test -d "/usr/X386/include" -o \ 5341 if test -d "/usr/X386/include" -o \
5333 -f "/etc/XF86Config" -o \ 5342 -f "/etc/XF86Config" -o \
5334 -f "/etc/X11/XF86Config" -o \ 5343 -f "/etc/X11/XF86Config" -o \
5335 -f "/usr/X11R6/lib/X11/XF86Config"; then 5344 -f "/usr/X11R6/lib/X11/XF86Config"; then
5336 echo "$ac_t""yes" 1>&6 5345 echo "$ac_t""yes" 1>&6
5346 echo "$ac_t""no" 1>&6 5355 echo "$ac_t""no" 1>&6
5347 fi 5356 fi
5348 5357
5349 test -z "$with_xmu" && { 5358 test -z "$with_xmu" && {
5350 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5359 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5351 echo "configure:5352: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5360 echo "configure:5361: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5352 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5361 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5353 5362
5354 xe_check_libs=" -lXmu " 5363 xe_check_libs=" -lXmu "
5355 cat > conftest.$ac_ext <<EOF 5364 cat > conftest.$ac_ext <<EOF
5356 #line 5357 "configure" 5365 #line 5366 "configure"
5357 #include "confdefs.h" 5366 #include "confdefs.h"
5358 /* Override any gcc2 internal prototype to avoid an error. */ 5367 /* Override any gcc2 internal prototype to avoid an error. */
5359 /* We use char because int might match the return type of a gcc2 5368 /* We use char because int might match the return type of a gcc2
5360 builtin and then its argument prototype would still apply. */ 5369 builtin and then its argument prototype would still apply. */
5361 char XmuReadBitmapDataFromFile(); 5370 char XmuReadBitmapDataFromFile();
5362 5371
5363 int main() { 5372 int main() {
5364 XmuReadBitmapDataFromFile() 5373 XmuReadBitmapDataFromFile()
5365 ; return 0; } 5374 ; return 0; }
5366 EOF 5375 EOF
5367 if { (eval echo configure:5368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5376 if { (eval echo configure:5377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5368 rm -rf conftest* 5377 rm -rf conftest*
5369 eval "ac_cv_lib_$ac_lib_var=yes" 5378 eval "ac_cv_lib_$ac_lib_var=yes"
5370 else 5379 else
5371 echo "configure: failed program was:" >&5 5380 echo "configure: failed program was:" >&5
5372 cat conftest.$ac_ext >&5 5381 cat conftest.$ac_ext >&5
5387 } 5396 }
5388 if test "$with_xmu" = "no"; then 5397 if test "$with_xmu" = "no"; then
5389 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then 5398 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
5390 echo " xemacs will be linked with \"xmu.o\"" 5399 echo " xemacs will be linked with \"xmu.o\""
5391 fi 5400 fi
5392 else 5401 else
5393 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi 5402 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
5394 { test "$extra_verbose" = "yes" && cat << \EOF 5403 { test "$extra_verbose" = "yes" && cat << \EOF
5395 Defining HAVE_XMU 5404 Defining HAVE_XMU
5396 EOF 5405 EOF
5397 cat >> confdefs.h <<\EOF 5406 cat >> confdefs.h <<\EOF
5401 5410
5402 fi 5411 fi
5403 5412
5404 5413
5405 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5414 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5406 echo "configure:5407: checking for main in -lXbsd" >&5 5415 echo "configure:5416: checking for main in -lXbsd" >&5
5407 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5416 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5408 5417
5409 xe_check_libs=" -lXbsd " 5418 xe_check_libs=" -lXbsd "
5410 cat > conftest.$ac_ext <<EOF 5419 cat > conftest.$ac_ext <<EOF
5411 #line 5412 "configure" 5420 #line 5421 "configure"
5412 #include "confdefs.h" 5421 #include "confdefs.h"
5413 5422
5414 int main() { 5423 int main() {
5415 main() 5424 main()
5416 ; return 0; } 5425 ; return 0; }
5417 EOF 5426 EOF
5418 if { (eval echo configure:5419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5427 if { (eval echo configure:5428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5419 rm -rf conftest* 5428 rm -rf conftest*
5420 eval "ac_cv_lib_$ac_lib_var=yes" 5429 eval "ac_cv_lib_$ac_lib_var=yes"
5421 else 5430 else
5422 echo "configure: failed program was:" >&5 5431 echo "configure: failed program was:" >&5
5423 cat conftest.$ac_ext >&5 5432 cat conftest.$ac_ext >&5
5436 5445
5437 5446
5438 5447
5439 5448
5440 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 5449 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
5441 echo "configure:5442: checking for XawScrollbarSetThumb in -lXaw" >&5 5450 echo "configure:5451: checking for XawScrollbarSetThumb in -lXaw" >&5
5442 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 5451 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
5443 5452
5444 xe_check_libs=" -lXaw " 5453 xe_check_libs=" -lXaw "
5445 cat > conftest.$ac_ext <<EOF 5454 cat > conftest.$ac_ext <<EOF
5446 #line 5447 "configure" 5455 #line 5456 "configure"
5447 #include "confdefs.h" 5456 #include "confdefs.h"
5448 /* Override any gcc2 internal prototype to avoid an error. */ 5457 /* Override any gcc2 internal prototype to avoid an error. */
5449 /* We use char because int might match the return type of a gcc2 5458 /* We use char because int might match the return type of a gcc2
5450 builtin and then its argument prototype would still apply. */ 5459 builtin and then its argument prototype would still apply. */
5451 char XawScrollbarSetThumb(); 5460 char XawScrollbarSetThumb();
5452 5461
5453 int main() { 5462 int main() {
5454 XawScrollbarSetThumb() 5463 XawScrollbarSetThumb()
5455 ; return 0; } 5464 ; return 0; }
5456 EOF 5465 EOF
5457 if { (eval echo configure:5458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5466 if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5458 rm -rf conftest* 5467 rm -rf conftest*
5459 eval "ac_cv_lib_$ac_lib_var=yes" 5468 eval "ac_cv_lib_$ac_lib_var=yes"
5460 else 5469 else
5461 echo "configure: failed program was:" >&5 5470 echo "configure: failed program was:" >&5
5462 cat conftest.$ac_ext >&5 5471 cat conftest.$ac_ext >&5
5476 5485
5477 5486
5478 if test "$have_xaw" = "yes"; then 5487 if test "$have_xaw" = "yes"; then
5479 ac_safe=`echo "X11/Xaw/Reports.h" | sed 'y%./+-%__p_%'` 5488 ac_safe=`echo "X11/Xaw/Reports.h" | sed 'y%./+-%__p_%'`
5480 echo $ac_n "checking for X11/Xaw/Reports.h""... $ac_c" 1>&6 5489 echo $ac_n "checking for X11/Xaw/Reports.h""... $ac_c" 1>&6
5481 echo "configure:5482: checking for X11/Xaw/Reports.h" >&5 5490 echo "configure:5491: checking for X11/Xaw/Reports.h" >&5
5482 5491
5483 cat > conftest.$ac_ext <<EOF 5492 cat > conftest.$ac_ext <<EOF
5484 #line 5485 "configure" 5493 #line 5494 "configure"
5485 #include "confdefs.h" 5494 #include "confdefs.h"
5486 #include <X11/Xaw/Reports.h> 5495 #include <X11/Xaw/Reports.h>
5487 EOF 5496 EOF
5488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5489 { (eval echo configure:5490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5498 { (eval echo configure:5499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5490 ac_err=`grep -v '^ *+' conftest.out` 5499 ac_err=`grep -v '^ *+' conftest.out`
5491 if test -z "$ac_err"; then 5500 if test -z "$ac_err"; then
5492 rm -rf conftest* 5501 rm -rf conftest*
5493 eval "ac_cv_header_$ac_safe=yes" 5502 eval "ac_cv_header_$ac_safe=yes"
5494 else 5503 else
5541 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 5550 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5542 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 5551 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5543 esac 5552 esac
5544 5553
5545 echo "checking for session-management option" 1>&6 5554 echo "checking for session-management option" 1>&6
5546 echo "configure:5547: checking for session-management option" >&5; 5555 echo "configure:5556: checking for session-management option" >&5;
5547 if test "$with_session" != "no"; then 5556 if test "$with_session" != "no"; then
5548 { test "$extra_verbose" = "yes" && cat << \EOF 5557 { test "$extra_verbose" = "yes" && cat << \EOF
5549 Defining HAVE_SESSION 5558 Defining HAVE_SESSION
5550 EOF 5559 EOF
5551 cat >> confdefs.h <<\EOF 5560 cat >> confdefs.h <<\EOF
5556 fi 5565 fi
5557 5566
5558 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 5567 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5559 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 5568 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5560 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 5569 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5561 echo "configure:5562: checking for X11/Xauth.h" >&5 5570 echo "configure:5571: checking for X11/Xauth.h" >&5
5562 5571
5563 cat > conftest.$ac_ext <<EOF 5572 cat > conftest.$ac_ext <<EOF
5564 #line 5565 "configure" 5573 #line 5574 "configure"
5565 #include "confdefs.h" 5574 #include "confdefs.h"
5566 #include <X11/Xauth.h> 5575 #include <X11/Xauth.h>
5567 EOF 5576 EOF
5568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5569 { (eval echo configure:5570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5578 { (eval echo configure:5579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5570 ac_err=`grep -v '^ *+' conftest.out` 5579 ac_err=`grep -v '^ *+' conftest.out`
5571 if test -z "$ac_err"; then 5580 if test -z "$ac_err"; then
5572 rm -rf conftest* 5581 rm -rf conftest*
5573 eval "ac_cv_header_$ac_safe=yes" 5582 eval "ac_cv_header_$ac_safe=yes"
5574 else 5583 else
5587 with_xauth=no 5596 with_xauth=no
5588 fi 5597 fi
5589 } 5598 }
5590 test -z "$with_xauth" && { 5599 test -z "$with_xauth" && {
5591 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 5600 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
5592 echo "configure:5593: checking for XauGetAuthByAddr in -lXau" >&5 5601 echo "configure:5602: checking for XauGetAuthByAddr in -lXau" >&5
5593 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 5602 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
5594 5603
5595 xe_check_libs=" -lXau " 5604 xe_check_libs=" -lXau "
5596 cat > conftest.$ac_ext <<EOF 5605 cat > conftest.$ac_ext <<EOF
5597 #line 5598 "configure" 5606 #line 5607 "configure"
5598 #include "confdefs.h" 5607 #include "confdefs.h"
5599 /* Override any gcc2 internal prototype to avoid an error. */ 5608 /* Override any gcc2 internal prototype to avoid an error. */
5600 /* We use char because int might match the return type of a gcc2 5609 /* We use char because int might match the return type of a gcc2
5601 builtin and then its argument prototype would still apply. */ 5610 builtin and then its argument prototype would still apply. */
5602 char XauGetAuthByAddr(); 5611 char XauGetAuthByAddr();
5603 5612
5604 int main() { 5613 int main() {
5605 XauGetAuthByAddr() 5614 XauGetAuthByAddr()
5606 ; return 0; } 5615 ; return 0; }
5607 EOF 5616 EOF
5608 if { (eval echo configure:5609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5617 if { (eval echo configure:5618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5609 rm -rf conftest* 5618 rm -rf conftest*
5610 eval "ac_cv_lib_$ac_lib_var=yes" 5619 eval "ac_cv_lib_$ac_lib_var=yes"
5611 else 5620 else
5612 echo "configure: failed program was:" >&5 5621 echo "configure: failed program was:" >&5
5613 cat conftest.$ac_ext >&5 5622 cat conftest.$ac_ext >&5
5644 fi 5653 fi
5645 5654
5646 5655
5647 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'` 5656 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'`
5648 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6 5657 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6
5649 echo "configure:5650: checking for OffiX/DragAndDrop.h" >&5 5658 echo "configure:5659: checking for OffiX/DragAndDrop.h" >&5
5650 5659
5651 cat > conftest.$ac_ext <<EOF 5660 cat > conftest.$ac_ext <<EOF
5652 #line 5653 "configure" 5661 #line 5662 "configure"
5653 #include "confdefs.h" 5662 #include "confdefs.h"
5654 #include <OffiX/DragAndDrop.h> 5663 #include <OffiX/DragAndDrop.h>
5655 EOF 5664 EOF
5656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5657 { (eval echo configure:5658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5666 { (eval echo configure:5667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5658 ac_err=`grep -v '^ *+' conftest.out` 5667 ac_err=`grep -v '^ *+' conftest.out`
5659 if test -z "$ac_err"; then 5668 if test -z "$ac_err"; then
5660 rm -rf conftest* 5669 rm -rf conftest*
5661 eval "ac_cv_header_$ac_safe=yes" 5670 eval "ac_cv_header_$ac_safe=yes"
5662 else 5671 else
5675 with_offix=no 5684 with_offix=no
5676 fi 5685 fi
5677 } 5686 }
5678 test -z "$with_offix" && { 5687 test -z "$with_offix" && {
5679 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6 5688 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6
5680 echo "configure:5681: checking for DndInitialize in -lDnd" >&5 5689 echo "configure:5690: checking for DndInitialize in -lDnd" >&5
5681 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'` 5690 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'`
5682 5691
5683 xe_check_libs=" -lDnd " 5692 xe_check_libs=" -lDnd "
5684 cat > conftest.$ac_ext <<EOF 5693 cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure" 5694 #line 5695 "configure"
5686 #include "confdefs.h" 5695 #include "confdefs.h"
5687 /* Override any gcc2 internal prototype to avoid an error. */ 5696 /* Override any gcc2 internal prototype to avoid an error. */
5688 /* We use char because int might match the return type of a gcc2 5697 /* We use char because int might match the return type of a gcc2
5689 builtin and then its argument prototype would still apply. */ 5698 builtin and then its argument prototype would still apply. */
5690 char DndInitialize(); 5699 char DndInitialize();
5691 5700
5692 int main() { 5701 int main() {
5693 DndInitialize() 5702 DndInitialize()
5694 ; return 0; } 5703 ; return 0; }
5695 EOF 5704 EOF
5696 if { (eval echo configure:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5705 if { (eval echo configure:5706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5697 rm -rf conftest* 5706 rm -rf conftest*
5698 eval "ac_cv_lib_$ac_lib_var=yes" 5707 eval "ac_cv_lib_$ac_lib_var=yes"
5699 else 5708 else
5700 echo "configure: failed program was:" >&5 5709 echo "configure: failed program was:" >&5
5701 cat conftest.$ac_ext >&5 5710 cat conftest.$ac_ext >&5
5730 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk 5739 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
5731 if test "$with_tooltalk" != "no" ; then 5740 if test "$with_tooltalk" != "no" ; then
5732 for dir in "" "Tt/" "desktop/" ; do 5741 for dir in "" "Tt/" "desktop/" ; do
5733 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 5742 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
5734 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 5743 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
5735 echo "configure:5736: checking for ${dir}tt_c.h" >&5 5744 echo "configure:5745: checking for ${dir}tt_c.h" >&5
5736 5745
5737 cat > conftest.$ac_ext <<EOF 5746 cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure" 5747 #line 5748 "configure"
5739 #include "confdefs.h" 5748 #include "confdefs.h"
5740 #include <${dir}tt_c.h> 5749 #include <${dir}tt_c.h>
5741 EOF 5750 EOF
5742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5743 { (eval echo configure:5744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5752 { (eval echo configure:5753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5744 ac_err=`grep -v '^ *+' conftest.out` 5753 ac_err=`grep -v '^ *+' conftest.out`
5745 if test -z "$ac_err"; then 5754 if test -z "$ac_err"; then
5746 rm -rf conftest* 5755 rm -rf conftest*
5747 eval "ac_cv_header_$ac_safe=yes" 5756 eval "ac_cv_header_$ac_safe=yes"
5748 else 5757 else
5767 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 5776 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
5768 5777
5769 xe_msg_checking="for tt_message_create in -ltt" 5778 xe_msg_checking="for tt_message_create in -ltt"
5770 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 5779 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5771 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5780 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5772 echo "configure:5773: checking "$xe_msg_checking"" >&5 5781 echo "configure:5782: checking "$xe_msg_checking"" >&5
5773 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 5782 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
5774 5783
5775 xe_check_libs=" -ltt $extra_libs" 5784 xe_check_libs=" -ltt $extra_libs"
5776 cat > conftest.$ac_ext <<EOF 5785 cat > conftest.$ac_ext <<EOF
5777 #line 5778 "configure" 5786 #line 5787 "configure"
5778 #include "confdefs.h" 5787 #include "confdefs.h"
5779 /* Override any gcc2 internal prototype to avoid an error. */ 5788 /* Override any gcc2 internal prototype to avoid an error. */
5780 /* We use char because int might match the return type of a gcc2 5789 /* We use char because int might match the return type of a gcc2
5781 builtin and then its argument prototype would still apply. */ 5790 builtin and then its argument prototype would still apply. */
5782 char tt_message_create(); 5791 char tt_message_create();
5783 5792
5784 int main() { 5793 int main() {
5785 tt_message_create() 5794 tt_message_create()
5786 ; return 0; } 5795 ; return 0; }
5787 EOF 5796 EOF
5788 if { (eval echo configure:5789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5797 if { (eval echo configure:5798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5789 rm -rf conftest* 5798 rm -rf conftest*
5790 eval "ac_cv_lib_$ac_lib_var=yes" 5799 eval "ac_cv_lib_$ac_lib_var=yes"
5791 else 5800 else
5792 echo "configure: failed program was:" >&5 5801 echo "configure: failed program was:" >&5
5793 cat conftest.$ac_ext >&5 5802 cat conftest.$ac_ext >&5
5832 fi 5841 fi
5833 fi 5842 fi
5834 5843
5835 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 5844 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
5836 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 5845 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
5837 echo "configure:5838: checking for Dt/Dt.h" >&5 5846 echo "configure:5847: checking for Dt/Dt.h" >&5
5838 5847
5839 cat > conftest.$ac_ext <<EOF 5848 cat > conftest.$ac_ext <<EOF
5840 #line 5841 "configure" 5849 #line 5850 "configure"
5841 #include "confdefs.h" 5850 #include "confdefs.h"
5842 #include <Dt/Dt.h> 5851 #include <Dt/Dt.h>
5843 EOF 5852 EOF
5844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5845 { (eval echo configure:5846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5854 { (eval echo configure:5855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5846 ac_err=`grep -v '^ *+' conftest.out` 5855 ac_err=`grep -v '^ *+' conftest.out`
5847 if test -z "$ac_err"; then 5856 if test -z "$ac_err"; then
5848 rm -rf conftest* 5857 rm -rf conftest*
5849 eval "ac_cv_header_$ac_safe=yes" 5858 eval "ac_cv_header_$ac_safe=yes"
5850 else 5859 else
5863 with_cde=no 5872 with_cde=no
5864 fi 5873 fi
5865 } 5874 }
5866 test -z "$with_cde" && { 5875 test -z "$with_cde" && {
5867 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 5876 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
5868 echo "configure:5869: checking for DtDndDragStart in -lDtSvc" >&5 5877 echo "configure:5878: checking for DtDndDragStart in -lDtSvc" >&5
5869 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 5878 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
5870 5879
5871 xe_check_libs=" -lDtSvc " 5880 xe_check_libs=" -lDtSvc "
5872 cat > conftest.$ac_ext <<EOF 5881 cat > conftest.$ac_ext <<EOF
5873 #line 5874 "configure" 5882 #line 5883 "configure"
5874 #include "confdefs.h" 5883 #include "confdefs.h"
5875 /* Override any gcc2 internal prototype to avoid an error. */ 5884 /* Override any gcc2 internal prototype to avoid an error. */
5876 /* We use char because int might match the return type of a gcc2 5885 /* We use char because int might match the return type of a gcc2
5877 builtin and then its argument prototype would still apply. */ 5886 builtin and then its argument prototype would still apply. */
5878 char DtDndDragStart(); 5887 char DtDndDragStart();
5879 5888
5880 int main() { 5889 int main() {
5881 DtDndDragStart() 5890 DtDndDragStart()
5882 ; return 0; } 5891 ; return 0; }
5883 EOF 5892 EOF
5884 if { (eval echo configure:5885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5893 if { (eval echo configure:5894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5885 rm -rf conftest* 5894 rm -rf conftest*
5886 eval "ac_cv_lib_$ac_lib_var=yes" 5895 eval "ac_cv_lib_$ac_lib_var=yes"
5887 else 5896 else
5888 echo "configure: failed program was:" >&5 5897 echo "configure: failed program was:" >&5
5889 cat conftest.$ac_ext >&5 5898 cat conftest.$ac_ext >&5
5926 EOF 5935 EOF
5927 } 5936 }
5928 5937
5929 5938
5930 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6 5939 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6
5931 echo "configure:5932: checking for main in -lenergize" >&5 5940 echo "configure:5941: checking for main in -lenergize" >&5
5932 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'` 5941 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'`
5933 5942
5934 xe_check_libs=" -lenergize " 5943 xe_check_libs=" -lenergize "
5935 cat > conftest.$ac_ext <<EOF 5944 cat > conftest.$ac_ext <<EOF
5936 #line 5937 "configure" 5945 #line 5946 "configure"
5937 #include "confdefs.h" 5946 #include "confdefs.h"
5938 5947
5939 int main() { 5948 int main() {
5940 main() 5949 main()
5941 ; return 0; } 5950 ; return 0; }
5942 EOF 5951 EOF
5943 if { (eval echo configure:5944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5952 if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5944 rm -rf conftest* 5953 rm -rf conftest*
5945 eval "ac_cv_lib_$ac_lib_var=yes" 5954 eval "ac_cv_lib_$ac_lib_var=yes"
5946 else 5955 else
5947 echo "configure: failed program was:" >&5 5956 echo "configure: failed program was:" >&5
5948 cat conftest.$ac_ext >&5 5957 cat conftest.$ac_ext >&5
5970 5979
5971 5980
5972 if test -z "$energize_version"; then 5981 if test -z "$energize_version"; then
5973 5982
5974 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6 5983 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6
5975 echo "configure:5976: checking for main in -lconn" >&5 5984 echo "configure:5985: checking for main in -lconn" >&5
5976 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'` 5985 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'`
5977 5986
5978 xe_check_libs=" -lconn " 5987 xe_check_libs=" -lconn "
5979 cat > conftest.$ac_ext <<EOF 5988 cat > conftest.$ac_ext <<EOF
5980 #line 5981 "configure" 5989 #line 5990 "configure"
5981 #include "confdefs.h" 5990 #include "confdefs.h"
5982 5991
5983 int main() { 5992 int main() {
5984 main() 5993 main()
5985 ; return 0; } 5994 ; return 0; }
5986 EOF 5995 EOF
5987 if { (eval echo configure:5988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5996 if { (eval echo configure:5997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5988 rm -rf conftest* 5997 rm -rf conftest*
5989 eval "ac_cv_lib_$ac_lib_var=yes" 5998 eval "ac_cv_lib_$ac_lib_var=yes"
5990 else 5999 else
5991 echo "configure: failed program was:" >&5 6000 echo "configure: failed program was:" >&5
5992 cat conftest.$ac_ext >&5 6001 cat conftest.$ac_ext >&5
6015 6024
6016 6025
6017 fi 6026 fi
6018 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'` 6027 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'`
6019 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6 6028 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6
6020 echo "configure:6021: checking for editorconn.h" >&5 6029 echo "configure:6030: checking for editorconn.h" >&5
6021 6030
6022 cat > conftest.$ac_ext <<EOF 6031 cat > conftest.$ac_ext <<EOF
6023 #line 6024 "configure" 6032 #line 6033 "configure"
6024 #include "confdefs.h" 6033 #include "confdefs.h"
6025 #include <editorconn.h> 6034 #include <editorconn.h>
6026 EOF 6035 EOF
6027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6028 { (eval echo configure:6029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6037 { (eval echo configure:6038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6029 ac_err=`grep -v '^ *+' conftest.out` 6038 ac_err=`grep -v '^ *+' conftest.out`
6030 if test -z "$ac_err"; then 6039 if test -z "$ac_err"; then
6031 rm -rf conftest* 6040 rm -rf conftest*
6032 eval "ac_cv_header_$ac_safe=yes" 6041 eval "ac_cv_header_$ac_safe=yes"
6033 else 6042 else
6065 6074
6066 fi 6075 fi
6067 6076
6068 6077
6069 echo "checking for graphics libraries" 1>&6 6078 echo "checking for graphics libraries" 1>&6
6070 echo "configure:6071: checking for graphics libraries" >&5 6079 echo "configure:6080: checking for graphics libraries" >&5
6071 test -z "$with_gif" && with_gif=yes; 6080 test -z "$with_gif" && with_gif=yes;
6072 if test "$with_gif" = "yes"; then 6081 if test "$with_gif" = "yes"; then
6073 { test "$extra_verbose" = "yes" && cat << \EOF 6082 { test "$extra_verbose" = "yes" && cat << \EOF
6074 Defining HAVE_GIF 6083 Defining HAVE_GIF
6075 EOF 6084 EOF
6082 echo " xemacs will be linked with \"dgif_lib.o gif_err.o gifalloc.o\"" 6091 echo " xemacs will be linked with \"dgif_lib.o gif_err.o gifalloc.o\""
6083 fi 6092 fi
6084 fi 6093 fi
6085 6094
6086 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6095 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6087 echo "configure:6088: checking for Xpm - no older than 3.4f" >&5 6096 echo "configure:6097: checking for Xpm - no older than 3.4f" >&5
6088 xe_check_libs=-lXpm 6097 xe_check_libs=-lXpm
6089 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF 6098 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF
6090 #line 6091 "configure" 6099 #line 6100 "configure"
6091 #include "confdefs.h" 6100 #include "confdefs.h"
6092 #include <X11/xpm.h> 6101 #include <X11/xpm.h>
6093 int main(int c, char **v) { 6102 int main(int c, char **v) {
6094 return c == 1 ? 0 : 6103 return c == 1 ? 0 :
6095 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6104 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6096 XpmIncludeVersion < 30406 ? 2 : 6105 XpmIncludeVersion < 30406 ? 2 :
6097 0 ; 6106 0 ;
6098 } 6107 }
6099 EOF 6108 EOF
6100 if { (eval echo configure:6101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 6109 if { (eval echo configure:6110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
6101 then 6110 then
6102 ./conftest foobar; xpm_status=$?; 6111 ./conftest foobar; xpm_status=$?;
6103 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi; 6112 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi;
6104 else 6113 else
6105 echo "configure: failed program was:" >&5 6114 echo "configure: failed program was:" >&5
6133 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6142 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6134 fi 6143 fi
6135 6144
6136 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 6145 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6137 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 6146 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6138 echo "configure:6139: checking for compface.h" >&5 6147 echo "configure:6148: checking for compface.h" >&5
6139 6148
6140 cat > conftest.$ac_ext <<EOF 6149 cat > conftest.$ac_ext <<EOF
6141 #line 6142 "configure" 6150 #line 6151 "configure"
6142 #include "confdefs.h" 6151 #include "confdefs.h"
6143 #include <compface.h> 6152 #include <compface.h>
6144 EOF 6153 EOF
6145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6146 { (eval echo configure:6147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6155 { (eval echo configure:6156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6147 ac_err=`grep -v '^ *+' conftest.out` 6156 ac_err=`grep -v '^ *+' conftest.out`
6148 if test -z "$ac_err"; then 6157 if test -z "$ac_err"; then
6149 rm -rf conftest* 6158 rm -rf conftest*
6150 eval "ac_cv_header_$ac_safe=yes" 6159 eval "ac_cv_header_$ac_safe=yes"
6151 else 6160 else
6164 with_xface=no 6173 with_xface=no
6165 fi 6174 fi
6166 } 6175 }
6167 test -z "$with_xface" && { 6176 test -z "$with_xface" && {
6168 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 6177 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6169 echo "configure:6170: checking for UnGenFace in -lcompface" >&5 6178 echo "configure:6179: checking for UnGenFace in -lcompface" >&5
6170 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 6179 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6171 6180
6172 xe_check_libs=" -lcompface " 6181 xe_check_libs=" -lcompface "
6173 cat > conftest.$ac_ext <<EOF 6182 cat > conftest.$ac_ext <<EOF
6174 #line 6175 "configure" 6183 #line 6184 "configure"
6175 #include "confdefs.h" 6184 #include "confdefs.h"
6176 /* Override any gcc2 internal prototype to avoid an error. */ 6185 /* Override any gcc2 internal prototype to avoid an error. */
6177 /* We use char because int might match the return type of a gcc2 6186 /* We use char because int might match the return type of a gcc2
6178 builtin and then its argument prototype would still apply. */ 6187 builtin and then its argument prototype would still apply. */
6179 char UnGenFace(); 6188 char UnGenFace();
6180 6189
6181 int main() { 6190 int main() {
6182 UnGenFace() 6191 UnGenFace()
6183 ; return 0; } 6192 ; return 0; }
6184 EOF 6193 EOF
6185 if { (eval echo configure:6186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6194 if { (eval echo configure:6195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6186 rm -rf conftest* 6195 rm -rf conftest*
6187 eval "ac_cv_lib_$ac_lib_var=yes" 6196 eval "ac_cv_lib_$ac_lib_var=yes"
6188 else 6197 else
6189 echo "configure: failed program was:" >&5 6198 echo "configure: failed program was:" >&5
6190 cat conftest.$ac_ext >&5 6199 cat conftest.$ac_ext >&5
6216 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 6225 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
6217 fi 6226 fi
6218 6227
6219 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 6228 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6220 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 6229 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6221 echo "configure:6222: checking for jpeglib.h" >&5 6230 echo "configure:6231: checking for jpeglib.h" >&5
6222 6231
6223 cat > conftest.$ac_ext <<EOF 6232 cat > conftest.$ac_ext <<EOF
6224 #line 6225 "configure" 6233 #line 6234 "configure"
6225 #include "confdefs.h" 6234 #include "confdefs.h"
6226 #include <jpeglib.h> 6235 #include <jpeglib.h>
6227 EOF 6236 EOF
6228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6229 { (eval echo configure:6230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6238 { (eval echo configure:6239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6230 ac_err=`grep -v '^ *+' conftest.out` 6239 ac_err=`grep -v '^ *+' conftest.out`
6231 if test -z "$ac_err"; then 6240 if test -z "$ac_err"; then
6232 rm -rf conftest* 6241 rm -rf conftest*
6233 eval "ac_cv_header_$ac_safe=yes" 6242 eval "ac_cv_header_$ac_safe=yes"
6234 else 6243 else
6247 with_jpeg=no 6256 with_jpeg=no
6248 fi 6257 fi
6249 } 6258 }
6250 test -z "$with_jpeg" && { 6259 test -z "$with_jpeg" && {
6251 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6260 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6252 echo "configure:6253: checking for jpeg_destroy_decompress in -ljpeg" >&5 6261 echo "configure:6262: checking for jpeg_destroy_decompress in -ljpeg" >&5
6253 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6262 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6254 6263
6255 xe_check_libs=" -ljpeg " 6264 xe_check_libs=" -ljpeg "
6256 cat > conftest.$ac_ext <<EOF 6265 cat > conftest.$ac_ext <<EOF
6257 #line 6258 "configure" 6266 #line 6267 "configure"
6258 #include "confdefs.h" 6267 #include "confdefs.h"
6259 /* Override any gcc2 internal prototype to avoid an error. */ 6268 /* Override any gcc2 internal prototype to avoid an error. */
6260 /* We use char because int might match the return type of a gcc2 6269 /* We use char because int might match the return type of a gcc2
6261 builtin and then its argument prototype would still apply. */ 6270 builtin and then its argument prototype would still apply. */
6262 char jpeg_destroy_decompress(); 6271 char jpeg_destroy_decompress();
6263 6272
6264 int main() { 6273 int main() {
6265 jpeg_destroy_decompress() 6274 jpeg_destroy_decompress()
6266 ; return 0; } 6275 ; return 0; }
6267 EOF 6276 EOF
6268 if { (eval echo configure:6269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6277 if { (eval echo configure:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6269 rm -rf conftest* 6278 rm -rf conftest*
6270 eval "ac_cv_lib_$ac_lib_var=yes" 6279 eval "ac_cv_lib_$ac_lib_var=yes"
6271 else 6280 else
6272 echo "configure: failed program was:" >&5 6281 echo "configure: failed program was:" >&5
6273 cat conftest.$ac_ext >&5 6282 cat conftest.$ac_ext >&5
6299 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 6308 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6300 fi 6309 fi
6301 6310
6302 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 6311 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6303 echo $ac_n "checking for png.h""... $ac_c" 1>&6 6312 echo $ac_n "checking for png.h""... $ac_c" 1>&6
6304 echo "configure:6305: checking for png.h" >&5 6313 echo "configure:6314: checking for png.h" >&5
6305 6314
6306 cat > conftest.$ac_ext <<EOF 6315 cat > conftest.$ac_ext <<EOF
6307 #line 6308 "configure" 6316 #line 6317 "configure"
6308 #include "confdefs.h" 6317 #include "confdefs.h"
6309 #include <png.h> 6318 #include <png.h>
6310 EOF 6319 EOF
6311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6312 { (eval echo configure:6313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6321 { (eval echo configure:6322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6313 ac_err=`grep -v '^ *+' conftest.out` 6322 ac_err=`grep -v '^ *+' conftest.out`
6314 if test -z "$ac_err"; then 6323 if test -z "$ac_err"; then
6315 rm -rf conftest* 6324 rm -rf conftest*
6316 eval "ac_cv_header_$ac_safe=yes" 6325 eval "ac_cv_header_$ac_safe=yes"
6317 else 6326 else
6329 echo "$ac_t""no" 1>&6 6338 echo "$ac_t""no" 1>&6
6330 with_png=no 6339 with_png=no
6331 fi 6340 fi
6332 } 6341 }
6333 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 6342 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6334 echo "configure:6335: checking for pow" >&5 6343 echo "configure:6344: checking for pow" >&5
6335 6344
6336 cat > conftest.$ac_ext <<EOF 6345 cat > conftest.$ac_ext <<EOF
6337 #line 6338 "configure" 6346 #line 6347 "configure"
6338 #include "confdefs.h" 6347 #include "confdefs.h"
6339 /* System header to define __stub macros and hopefully few prototypes, 6348 /* System header to define __stub macros and hopefully few prototypes,
6340 which can conflict with char pow(); below. */ 6349 which can conflict with char pow(); below. */
6341 #include <assert.h> 6350 #include <assert.h>
6342 /* Override any gcc2 internal prototype to avoid an error. */ 6351 /* Override any gcc2 internal prototype to avoid an error. */
6355 pow(); 6364 pow();
6356 #endif 6365 #endif
6357 6366
6358 ; return 0; } 6367 ; return 0; }
6359 EOF 6368 EOF
6360 if { (eval echo configure:6361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6369 if { (eval echo configure:6370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6361 rm -rf conftest* 6370 rm -rf conftest*
6362 eval "ac_cv_func_pow=yes" 6371 eval "ac_cv_func_pow=yes"
6363 else 6372 else
6364 echo "configure: failed program was:" >&5 6373 echo "configure: failed program was:" >&5
6365 cat conftest.$ac_ext >&5 6374 cat conftest.$ac_ext >&5
6380 for extra_libs in "" "-lz" "-lgz"; do 6389 for extra_libs in "" "-lz" "-lgz"; do
6381 6390
6382 xe_msg_checking="for png_read_image in -lpng" 6391 xe_msg_checking="for png_read_image in -lpng"
6383 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6392 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6384 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6393 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6385 echo "configure:6386: checking "$xe_msg_checking"" >&5 6394 echo "configure:6395: checking "$xe_msg_checking"" >&5
6386 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 6395 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
6387 6396
6388 xe_check_libs=" -lpng $extra_libs" 6397 xe_check_libs=" -lpng $extra_libs"
6389 cat > conftest.$ac_ext <<EOF 6398 cat > conftest.$ac_ext <<EOF
6390 #line 6391 "configure" 6399 #line 6400 "configure"
6391 #include "confdefs.h" 6400 #include "confdefs.h"
6392 /* Override any gcc2 internal prototype to avoid an error. */ 6401 /* Override any gcc2 internal prototype to avoid an error. */
6393 /* We use char because int might match the return type of a gcc2 6402 /* We use char because int might match the return type of a gcc2
6394 builtin and then its argument prototype would still apply. */ 6403 builtin and then its argument prototype would still apply. */
6395 char png_read_image(); 6404 char png_read_image();
6396 6405
6397 int main() { 6406 int main() {
6398 png_read_image() 6407 png_read_image()
6399 ; return 0; } 6408 ; return 0; }
6400 EOF 6409 EOF
6401 if { (eval echo configure:6402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6410 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6402 rm -rf conftest* 6411 rm -rf conftest*
6403 eval "ac_cv_lib_$ac_lib_var=yes" 6412 eval "ac_cv_lib_$ac_lib_var=yes"
6404 else 6413 else
6405 echo "configure: failed program was:" >&5 6414 echo "configure: failed program was:" >&5
6406 cat conftest.$ac_ext >&5 6415 cat conftest.$ac_ext >&5
6446 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi 6455 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
6447 fi 6456 fi
6448 6457
6449 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 6458 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6450 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 6459 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6451 echo "configure:6452: checking for Xm/Xm.h" >&5 6460 echo "configure:6461: checking for Xm/Xm.h" >&5
6452 6461
6453 cat > conftest.$ac_ext <<EOF 6462 cat > conftest.$ac_ext <<EOF
6454 #line 6455 "configure" 6463 #line 6464 "configure"
6455 #include "confdefs.h" 6464 #include "confdefs.h"
6456 #include <Xm/Xm.h> 6465 #include <Xm/Xm.h>
6457 EOF 6466 EOF
6458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6459 { (eval echo configure:6460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6468 { (eval echo configure:6469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6460 ac_err=`grep -v '^ *+' conftest.out` 6469 ac_err=`grep -v '^ *+' conftest.out`
6461 if test -z "$ac_err"; then 6470 if test -z "$ac_err"; then
6462 rm -rf conftest* 6471 rm -rf conftest*
6463 eval "ac_cv_header_$ac_safe=yes" 6472 eval "ac_cv_header_$ac_safe=yes"
6464 else 6473 else
6471 rm -f conftest* 6480 rm -f conftest*
6472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6473 echo "$ac_t""yes" 1>&6 6482 echo "$ac_t""yes" 1>&6
6474 6483
6475 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 6484 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6476 echo "configure:6477: checking for XmStringFree in -lXm" >&5 6485 echo "configure:6486: checking for XmStringFree in -lXm" >&5
6477 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 6486 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6478 6487
6479 xe_check_libs=" -lXm " 6488 xe_check_libs=" -lXm "
6480 cat > conftest.$ac_ext <<EOF 6489 cat > conftest.$ac_ext <<EOF
6481 #line 6482 "configure" 6490 #line 6491 "configure"
6482 #include "confdefs.h" 6491 #include "confdefs.h"
6483 /* Override any gcc2 internal prototype to avoid an error. */ 6492 /* Override any gcc2 internal prototype to avoid an error. */
6484 /* We use char because int might match the return type of a gcc2 6493 /* We use char because int might match the return type of a gcc2
6485 builtin and then its argument prototype would still apply. */ 6494 builtin and then its argument prototype would still apply. */
6486 char XmStringFree(); 6495 char XmStringFree();
6487 6496
6488 int main() { 6497 int main() {
6489 XmStringFree() 6498 XmStringFree()
6490 ; return 0; } 6499 ; return 0; }
6491 EOF 6500 EOF
6492 if { (eval echo configure:6493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6501 if { (eval echo configure:6502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6493 rm -rf conftest* 6502 rm -rf conftest*
6494 eval "ac_cv_lib_$ac_lib_var=yes" 6503 eval "ac_cv_lib_$ac_lib_var=yes"
6495 else 6504 else
6496 echo "configure: failed program was:" >&5 6505 echo "configure: failed program was:" >&5
6497 cat conftest.$ac_ext >&5 6506 cat conftest.$ac_ext >&5
6735 6744
6736 test -z "$with_mule" && with_mule=no 6745 test -z "$with_mule" && with_mule=no
6737 6746
6738 if test "$with_mule" = "yes" ; then 6747 if test "$with_mule" = "yes" ; then
6739 echo "checking for Mule-related features" 1>&6 6748 echo "checking for Mule-related features" 1>&6
6740 echo "configure:6741: checking for Mule-related features" >&5 6749 echo "configure:6750: checking for Mule-related features" >&5
6741 { test "$extra_verbose" = "yes" && cat << \EOF 6750 { test "$extra_verbose" = "yes" && cat << \EOF
6742 Defining MULE 6751 Defining MULE
6743 EOF 6752 EOF
6744 cat >> confdefs.h <<\EOF 6753 cat >> confdefs.h <<\EOF
6745 #define MULE 1 6754 #define MULE 1
6752 6761
6753 for ac_hdr in libintl.h 6762 for ac_hdr in libintl.h
6754 do 6763 do
6755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6764 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6765 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6757 echo "configure:6758: checking for $ac_hdr" >&5 6766 echo "configure:6767: checking for $ac_hdr" >&5
6758 6767
6759 cat > conftest.$ac_ext <<EOF 6768 cat > conftest.$ac_ext <<EOF
6760 #line 6761 "configure" 6769 #line 6770 "configure"
6761 #include "confdefs.h" 6770 #include "confdefs.h"
6762 #include <$ac_hdr> 6771 #include <$ac_hdr>
6763 EOF 6772 EOF
6764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6765 { (eval echo configure:6766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6774 { (eval echo configure:6775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6766 ac_err=`grep -v '^ *+' conftest.out` 6775 ac_err=`grep -v '^ *+' conftest.out`
6767 if test -z "$ac_err"; then 6776 if test -z "$ac_err"; then
6768 rm -rf conftest* 6777 rm -rf conftest*
6769 eval "ac_cv_header_$ac_safe=yes" 6778 eval "ac_cv_header_$ac_safe=yes"
6770 else 6779 else
6791 fi 6800 fi
6792 done 6801 done
6793 6802
6794 6803
6795 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 6804 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
6796 echo "configure:6797: checking for strerror in -lintl" >&5 6805 echo "configure:6806: checking for strerror in -lintl" >&5
6797 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 6806 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
6798 6807
6799 xe_check_libs=" -lintl " 6808 xe_check_libs=" -lintl "
6800 cat > conftest.$ac_ext <<EOF 6809 cat > conftest.$ac_ext <<EOF
6801 #line 6802 "configure" 6810 #line 6811 "configure"
6802 #include "confdefs.h" 6811 #include "confdefs.h"
6803 /* Override any gcc2 internal prototype to avoid an error. */ 6812 /* Override any gcc2 internal prototype to avoid an error. */
6804 /* We use char because int might match the return type of a gcc2 6813 /* We use char because int might match the return type of a gcc2
6805 builtin and then its argument prototype would still apply. */ 6814 builtin and then its argument prototype would still apply. */
6806 char strerror(); 6815 char strerror();
6807 6816
6808 int main() { 6817 int main() {
6809 strerror() 6818 strerror()
6810 ; return 0; } 6819 ; return 0; }
6811 EOF 6820 EOF
6812 if { (eval echo configure:6813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6821 if { (eval echo configure:6822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6813 rm -rf conftest* 6822 rm -rf conftest*
6814 eval "ac_cv_lib_$ac_lib_var=yes" 6823 eval "ac_cv_lib_$ac_lib_var=yes"
6815 else 6824 else
6816 echo "configure: failed program was:" >&5 6825 echo "configure: failed program was:" >&5
6817 cat conftest.$ac_ext >&5 6826 cat conftest.$ac_ext >&5
6840 fi 6849 fi
6841 6850
6842 6851
6843 6852
6844 echo "checking for Mule input methods" 1>&6 6853 echo "checking for Mule input methods" 1>&6
6845 echo "configure:6846: checking for Mule input methods" >&5 6854 echo "configure:6855: checking for Mule input methods" >&5
6846 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no 6855 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no
6847 case "$with_xim" in "" | "yes" ) 6856 case "$with_xim" in "" | "yes" )
6848 echo "checking for XIM" 1>&6 6857 echo "checking for XIM" 1>&6
6849 echo "configure:6850: checking for XIM" >&5 6858 echo "configure:6859: checking for XIM" >&5
6850 6859
6851 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 6860 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
6852 echo "configure:6853: checking for XmImMbLookupString in -lXm" >&5 6861 echo "configure:6862: checking for XmImMbLookupString in -lXm" >&5
6853 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 6862 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
6854 6863
6855 xe_check_libs=" -lXm " 6864 xe_check_libs=" -lXm "
6856 cat > conftest.$ac_ext <<EOF 6865 cat > conftest.$ac_ext <<EOF
6857 #line 6858 "configure" 6866 #line 6867 "configure"
6858 #include "confdefs.h" 6867 #include "confdefs.h"
6859 /* Override any gcc2 internal prototype to avoid an error. */ 6868 /* Override any gcc2 internal prototype to avoid an error. */
6860 /* We use char because int might match the return type of a gcc2 6869 /* We use char because int might match the return type of a gcc2
6861 builtin and then its argument prototype would still apply. */ 6870 builtin and then its argument prototype would still apply. */
6862 char XmImMbLookupString(); 6871 char XmImMbLookupString();
6863 6872
6864 int main() { 6873 int main() {
6865 XmImMbLookupString() 6874 XmImMbLookupString()
6866 ; return 0; } 6875 ; return 0; }
6867 EOF 6876 EOF
6868 if { (eval echo configure:6869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6877 if { (eval echo configure:6878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6869 rm -rf conftest* 6878 rm -rf conftest*
6870 eval "ac_cv_lib_$ac_lib_var=yes" 6879 eval "ac_cv_lib_$ac_lib_var=yes"
6871 else 6880 else
6872 echo "configure: failed program was:" >&5 6881 echo "configure: failed program was:" >&5
6873 cat conftest.$ac_ext >&5 6882 cat conftest.$ac_ext >&5
6926 if test "$with_xfs" = "yes"; then 6935 if test "$with_xfs" = "yes"; then
6927 with_xfs=no 6936 with_xfs=no
6928 fi 6937 fi
6929 else case "$with_xfs" in "yes" ) 6938 else case "$with_xfs" in "yes" )
6930 echo "checking for XFontSet" 1>&6 6939 echo "checking for XFontSet" 1>&6
6931 echo "configure:6932: checking for XFontSet" >&5 6940 echo "configure:6941: checking for XFontSet" >&5
6932 6941
6933 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 6942 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
6934 echo "configure:6935: checking for XmbDrawString in -lX11" >&5 6943 echo "configure:6944: checking for XmbDrawString in -lX11" >&5
6935 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 6944 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
6936 6945
6937 xe_check_libs=" -lX11 " 6946 xe_check_libs=" -lX11 "
6938 cat > conftest.$ac_ext <<EOF 6947 cat > conftest.$ac_ext <<EOF
6939 #line 6940 "configure" 6948 #line 6949 "configure"
6940 #include "confdefs.h" 6949 #include "confdefs.h"
6941 /* Override any gcc2 internal prototype to avoid an error. */ 6950 /* Override any gcc2 internal prototype to avoid an error. */
6942 /* We use char because int might match the return type of a gcc2 6951 /* We use char because int might match the return type of a gcc2
6943 builtin and then its argument prototype would still apply. */ 6952 builtin and then its argument prototype would still apply. */
6944 char XmbDrawString(); 6953 char XmbDrawString();
6945 6954
6946 int main() { 6955 int main() {
6947 XmbDrawString() 6956 XmbDrawString()
6948 ; return 0; } 6957 ; return 0; }
6949 EOF 6958 EOF
6950 if { (eval echo configure:6951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6959 if { (eval echo configure:6960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6951 rm -rf conftest* 6960 rm -rf conftest*
6952 eval "ac_cv_lib_$ac_lib_var=yes" 6961 eval "ac_cv_lib_$ac_lib_var=yes"
6953 else 6962 else
6954 echo "configure: failed program was:" >&5 6963 echo "configure: failed program was:" >&5
6955 cat conftest.$ac_ext >&5 6964 cat conftest.$ac_ext >&5
6984 fi 6993 fi
6985 fi 6994 fi
6986 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 6995 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
6987 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 6996 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
6988 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 6997 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
6989 echo "configure:6990: checking for wnn/jllib.h" >&5 6998 echo "configure:6999: checking for wnn/jllib.h" >&5
6990 6999
6991 cat > conftest.$ac_ext <<EOF 7000 cat > conftest.$ac_ext <<EOF
6992 #line 6993 "configure" 7001 #line 7002 "configure"
6993 #include "confdefs.h" 7002 #include "confdefs.h"
6994 #include <wnn/jllib.h> 7003 #include <wnn/jllib.h>
6995 EOF 7004 EOF
6996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6997 { (eval echo configure:6998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7006 { (eval echo configure:7007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6998 ac_err=`grep -v '^ *+' conftest.out` 7007 ac_err=`grep -v '^ *+' conftest.out`
6999 if test -z "$ac_err"; then 7008 if test -z "$ac_err"; then
7000 rm -rf conftest* 7009 rm -rf conftest*
7001 eval "ac_cv_header_$ac_safe=yes" 7010 eval "ac_cv_header_$ac_safe=yes"
7002 else 7011 else
7017 } 7026 }
7018 if test "$with_wnn" != "no"; then 7027 if test "$with_wnn" != "no"; then
7019 for ac_func in crypt 7028 for ac_func in crypt
7020 do 7029 do
7021 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7022 echo "configure:7023: checking for $ac_func" >&5 7031 echo "configure:7032: checking for $ac_func" >&5
7023 7032
7024 cat > conftest.$ac_ext <<EOF 7033 cat > conftest.$ac_ext <<EOF
7025 #line 7026 "configure" 7034 #line 7035 "configure"
7026 #include "confdefs.h" 7035 #include "confdefs.h"
7027 /* System header to define __stub macros and hopefully few prototypes, 7036 /* System header to define __stub macros and hopefully few prototypes,
7028 which can conflict with char $ac_func(); below. */ 7037 which can conflict with char $ac_func(); below. */
7029 #include <assert.h> 7038 #include <assert.h>
7030 /* Override any gcc2 internal prototype to avoid an error. */ 7039 /* Override any gcc2 internal prototype to avoid an error. */
7043 $ac_func(); 7052 $ac_func();
7044 #endif 7053 #endif
7045 7054
7046 ; return 0; } 7055 ; return 0; }
7047 EOF 7056 EOF
7048 if { (eval echo configure:7049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7057 if { (eval echo configure:7058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7049 rm -rf conftest* 7058 rm -rf conftest*
7050 eval "ac_cv_func_$ac_func=yes" 7059 eval "ac_cv_func_$ac_func=yes"
7051 else 7060 else
7052 echo "configure: failed program was:" >&5 7061 echo "configure: failed program was:" >&5
7053 cat conftest.$ac_ext >&5 7062 cat conftest.$ac_ext >&5
7072 fi 7081 fi
7073 done 7082 done
7074 7083
7075 test "$ac_cv_func_crypt" != "yes" && { 7084 test "$ac_cv_func_crypt" != "yes" && {
7076 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 7085 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7077 echo "configure:7078: checking for crypt in -lcrypt" >&5 7086 echo "configure:7087: checking for crypt in -lcrypt" >&5
7078 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 7087 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7079 7088
7080 xe_check_libs=" -lcrypt " 7089 xe_check_libs=" -lcrypt "
7081 cat > conftest.$ac_ext <<EOF 7090 cat > conftest.$ac_ext <<EOF
7082 #line 7083 "configure" 7091 #line 7092 "configure"
7083 #include "confdefs.h" 7092 #include "confdefs.h"
7084 /* Override any gcc2 internal prototype to avoid an error. */ 7093 /* Override any gcc2 internal prototype to avoid an error. */
7085 /* We use char because int might match the return type of a gcc2 7094 /* We use char because int might match the return type of a gcc2
7086 builtin and then its argument prototype would still apply. */ 7095 builtin and then its argument prototype would still apply. */
7087 char crypt(); 7096 char crypt();
7088 7097
7089 int main() { 7098 int main() {
7090 crypt() 7099 crypt()
7091 ; return 0; } 7100 ; return 0; }
7092 EOF 7101 EOF
7093 if { (eval echo configure:7094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7102 if { (eval echo configure:7103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7094 rm -rf conftest* 7103 rm -rf conftest*
7095 eval "ac_cv_lib_$ac_lib_var=yes" 7104 eval "ac_cv_lib_$ac_lib_var=yes"
7096 else 7105 else
7097 echo "configure: failed program was:" >&5 7106 echo "configure: failed program was:" >&5
7098 cat conftest.$ac_ext >&5 7107 cat conftest.$ac_ext >&5
7122 7131
7123 } 7132 }
7124 fi 7133 fi
7125 test -z "$with_wnn" && { 7134 test -z "$with_wnn" && {
7126 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 7135 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
7127 echo "configure:7128: checking for jl_dic_list_e in -lwnn" >&5 7136 echo "configure:7137: checking for jl_dic_list_e in -lwnn" >&5
7128 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 7137 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7129 7138
7130 xe_check_libs=" -lwnn " 7139 xe_check_libs=" -lwnn "
7131 cat > conftest.$ac_ext <<EOF 7140 cat > conftest.$ac_ext <<EOF
7132 #line 7133 "configure" 7141 #line 7142 "configure"
7133 #include "confdefs.h" 7142 #include "confdefs.h"
7134 /* Override any gcc2 internal prototype to avoid an error. */ 7143 /* Override any gcc2 internal prototype to avoid an error. */
7135 /* We use char because int might match the return type of a gcc2 7144 /* We use char because int might match the return type of a gcc2
7136 builtin and then its argument prototype would still apply. */ 7145 builtin and then its argument prototype would still apply. */
7137 char jl_dic_list_e(); 7146 char jl_dic_list_e();
7138 7147
7139 int main() { 7148 int main() {
7140 jl_dic_list_e() 7149 jl_dic_list_e()
7141 ; return 0; } 7150 ; return 0; }
7142 EOF 7151 EOF
7143 if { (eval echo configure:7144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7152 if { (eval echo configure:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7144 rm -rf conftest* 7153 rm -rf conftest*
7145 eval "ac_cv_lib_$ac_lib_var=yes" 7154 eval "ac_cv_lib_$ac_lib_var=yes"
7146 else 7155 else
7147 echo "configure: failed program was:" >&5 7156 echo "configure: failed program was:" >&5
7148 cat conftest.$ac_ext >&5 7157 cat conftest.$ac_ext >&5
7175 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then 7184 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
7176 echo " xemacs will be linked with \"mule-wnnfns.o\"" 7185 echo " xemacs will be linked with \"mule-wnnfns.o\""
7177 fi 7186 fi
7178 7187
7179 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 7188 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
7180 echo "configure:7181: checking for jl_fi_dic_list in -lwnn" >&5 7189 echo "configure:7190: checking for jl_fi_dic_list in -lwnn" >&5
7181 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 7190 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
7182 7191
7183 xe_check_libs=" -lwnn " 7192 xe_check_libs=" -lwnn "
7184 cat > conftest.$ac_ext <<EOF 7193 cat > conftest.$ac_ext <<EOF
7185 #line 7186 "configure" 7194 #line 7195 "configure"
7186 #include "confdefs.h" 7195 #include "confdefs.h"
7187 /* Override any gcc2 internal prototype to avoid an error. */ 7196 /* Override any gcc2 internal prototype to avoid an error. */
7188 /* We use char because int might match the return type of a gcc2 7197 /* We use char because int might match the return type of a gcc2
7189 builtin and then its argument prototype would still apply. */ 7198 builtin and then its argument prototype would still apply. */
7190 char jl_fi_dic_list(); 7199 char jl_fi_dic_list();
7191 7200
7192 int main() { 7201 int main() {
7193 jl_fi_dic_list() 7202 jl_fi_dic_list()
7194 ; return 0; } 7203 ; return 0; }
7195 EOF 7204 EOF
7196 if { (eval echo configure:7197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7205 if { (eval echo configure:7206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7197 rm -rf conftest* 7206 rm -rf conftest*
7198 eval "ac_cv_lib_$ac_lib_var=yes" 7207 eval "ac_cv_lib_$ac_lib_var=yes"
7199 else 7208 else
7200 echo "configure: failed program was:" >&5 7209 echo "configure: failed program was:" >&5
7201 cat conftest.$ac_ext >&5 7210 cat conftest.$ac_ext >&5
7223 7232
7224 fi 7233 fi
7225 7234
7226 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 7235 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
7227 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 7236 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
7228 echo "configure:7229: checking for canna/RK.h" >&5 7237 echo "configure:7238: checking for canna/RK.h" >&5
7229 7238
7230 cat > conftest.$ac_ext <<EOF 7239 cat > conftest.$ac_ext <<EOF
7231 #line 7232 "configure" 7240 #line 7241 "configure"
7232 #include "confdefs.h" 7241 #include "confdefs.h"
7233 #include <canna/RK.h> 7242 #include <canna/RK.h>
7234 EOF 7243 EOF
7235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7236 { (eval echo configure:7237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7245 { (eval echo configure:7246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7237 ac_err=`grep -v '^ *+' conftest.out` 7246 ac_err=`grep -v '^ *+' conftest.out`
7238 if test -z "$ac_err"; then 7247 if test -z "$ac_err"; then
7239 rm -rf conftest* 7248 rm -rf conftest*
7240 eval "ac_cv_header_$ac_safe=yes" 7249 eval "ac_cv_header_$ac_safe=yes"
7241 else 7250 else
7254 with_canna=no 7263 with_canna=no
7255 fi 7264 fi
7256 } 7265 }
7257 test -z "$with_canna" && { 7266 test -z "$with_canna" && {
7258 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 7267 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
7259 echo "configure:7260: checking for RkBgnBun in -lRKC" >&5 7268 echo "configure:7269: checking for RkBgnBun in -lRKC" >&5
7260 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 7269 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
7261 7270
7262 xe_check_libs=" -lRKC " 7271 xe_check_libs=" -lRKC "
7263 cat > conftest.$ac_ext <<EOF 7272 cat > conftest.$ac_ext <<EOF
7264 #line 7265 "configure" 7273 #line 7274 "configure"
7265 #include "confdefs.h" 7274 #include "confdefs.h"
7266 /* Override any gcc2 internal prototype to avoid an error. */ 7275 /* Override any gcc2 internal prototype to avoid an error. */
7267 /* We use char because int might match the return type of a gcc2 7276 /* We use char because int might match the return type of a gcc2
7268 builtin and then its argument prototype would still apply. */ 7277 builtin and then its argument prototype would still apply. */
7269 char RkBgnBun(); 7278 char RkBgnBun();
7270 7279
7271 int main() { 7280 int main() {
7272 RkBgnBun() 7281 RkBgnBun()
7273 ; return 0; } 7282 ; return 0; }
7274 EOF 7283 EOF
7275 if { (eval echo configure:7276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7284 if { (eval echo configure:7285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7276 rm -rf conftest* 7285 rm -rf conftest*
7277 eval "ac_cv_lib_$ac_lib_var=yes" 7286 eval "ac_cv_lib_$ac_lib_var=yes"
7278 else 7287 else
7279 echo "configure: failed program was:" >&5 7288 echo "configure: failed program was:" >&5
7280 cat conftest.$ac_ext >&5 7289 cat conftest.$ac_ext >&5
7293 fi 7302 fi
7294 7303
7295 } 7304 }
7296 test -z "$with_canna" && { 7305 test -z "$with_canna" && {
7297 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 7306 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
7298 echo "configure:7299: checking for jrKanjiControl in -lcanna" >&5 7307 echo "configure:7308: checking for jrKanjiControl in -lcanna" >&5
7299 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 7308 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
7300 7309
7301 xe_check_libs=" -lcanna " 7310 xe_check_libs=" -lcanna "
7302 cat > conftest.$ac_ext <<EOF 7311 cat > conftest.$ac_ext <<EOF
7303 #line 7304 "configure" 7312 #line 7313 "configure"
7304 #include "confdefs.h" 7313 #include "confdefs.h"
7305 /* Override any gcc2 internal prototype to avoid an error. */ 7314 /* Override any gcc2 internal prototype to avoid an error. */
7306 /* We use char because int might match the return type of a gcc2 7315 /* We use char because int might match the return type of a gcc2
7307 builtin and then its argument prototype would still apply. */ 7316 builtin and then its argument prototype would still apply. */
7308 char jrKanjiControl(); 7317 char jrKanjiControl();
7309 7318
7310 int main() { 7319 int main() {
7311 jrKanjiControl() 7320 jrKanjiControl()
7312 ; return 0; } 7321 ; return 0; }
7313 EOF 7322 EOF
7314 if { (eval echo configure:7315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7323 if { (eval echo configure:7324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7315 rm -rf conftest* 7324 rm -rf conftest*
7316 eval "ac_cv_lib_$ac_lib_var=yes" 7325 eval "ac_cv_lib_$ac_lib_var=yes"
7317 else 7326 else
7318 echo "configure: failed program was:" >&5 7327 echo "configure: failed program was:" >&5
7319 cat conftest.$ac_ext >&5 7328 cat conftest.$ac_ext >&5
7409 fi 7418 fi
7410 7419
7411 for ac_func in acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset ulimit usleep utimes waitpid 7420 for ac_func in acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset ulimit usleep utimes waitpid
7412 do 7421 do
7413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7414 echo "configure:7415: checking for $ac_func" >&5 7423 echo "configure:7424: checking for $ac_func" >&5
7415 7424
7416 cat > conftest.$ac_ext <<EOF 7425 cat > conftest.$ac_ext <<EOF
7417 #line 7418 "configure" 7426 #line 7427 "configure"
7418 #include "confdefs.h" 7427 #include "confdefs.h"
7419 /* System header to define __stub macros and hopefully few prototypes, 7428 /* System header to define __stub macros and hopefully few prototypes,
7420 which can conflict with char $ac_func(); below. */ 7429 which can conflict with char $ac_func(); below. */
7421 #include <assert.h> 7430 #include <assert.h>
7422 /* Override any gcc2 internal prototype to avoid an error. */ 7431 /* Override any gcc2 internal prototype to avoid an error. */
7435 $ac_func(); 7444 $ac_func();
7436 #endif 7445 #endif
7437 7446
7438 ; return 0; } 7447 ; return 0; }
7439 EOF 7448 EOF
7440 if { (eval echo configure:7441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7449 if { (eval echo configure:7450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7441 rm -rf conftest* 7450 rm -rf conftest*
7442 eval "ac_cv_func_$ac_func=yes" 7451 eval "ac_cv_func_$ac_func=yes"
7443 else 7452 else
7444 echo "configure: failed program was:" >&5 7453 echo "configure: failed program was:" >&5
7445 cat conftest.$ac_ext >&5 7454 cat conftest.$ac_ext >&5
7472 fi ;; 7481 fi ;;
7473 * ) 7482 * )
7474 for ac_func in realpath 7483 for ac_func in realpath
7475 do 7484 do
7476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7477 echo "configure:7478: checking for $ac_func" >&5 7486 echo "configure:7487: checking for $ac_func" >&5
7478 7487
7479 cat > conftest.$ac_ext <<EOF 7488 cat > conftest.$ac_ext <<EOF
7480 #line 7481 "configure" 7489 #line 7490 "configure"
7481 #include "confdefs.h" 7490 #include "confdefs.h"
7482 /* System header to define __stub macros and hopefully few prototypes, 7491 /* System header to define __stub macros and hopefully few prototypes,
7483 which can conflict with char $ac_func(); below. */ 7492 which can conflict with char $ac_func(); below. */
7484 #include <assert.h> 7493 #include <assert.h>
7485 /* Override any gcc2 internal prototype to avoid an error. */ 7494 /* Override any gcc2 internal prototype to avoid an error. */
7498 $ac_func(); 7507 $ac_func();
7499 #endif 7508 #endif
7500 7509
7501 ; return 0; } 7510 ; return 0; }
7502 EOF 7511 EOF
7503 if { (eval echo configure:7504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7512 if { (eval echo configure:7513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7504 rm -rf conftest* 7513 rm -rf conftest*
7505 eval "ac_cv_func_$ac_func=yes" 7514 eval "ac_cv_func_$ac_func=yes"
7506 else 7515 else
7507 echo "configure: failed program was:" >&5 7516 echo "configure: failed program was:" >&5
7508 cat conftest.$ac_ext >&5 7517 cat conftest.$ac_ext >&5
7531 echo " xemacs will be linked with \"realpath.o\"" 7540 echo " xemacs will be linked with \"realpath.o\""
7532 fi ;; 7541 fi ;;
7533 esac 7542 esac
7534 7543
7535 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 7544 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
7536 echo "configure:7537: checking whether netdb declares h_errno" >&5 7545 echo "configure:7546: checking whether netdb declares h_errno" >&5
7537 cat > conftest.$ac_ext <<EOF 7546 cat > conftest.$ac_ext <<EOF
7538 #line 7539 "configure" 7547 #line 7548 "configure"
7539 #include "confdefs.h" 7548 #include "confdefs.h"
7540 #include <netdb.h> 7549 #include <netdb.h>
7541 int main() { 7550 int main() {
7542 return h_errno; 7551 return h_errno;
7543 ; return 0; } 7552 ; return 0; }
7544 EOF 7553 EOF
7545 if { (eval echo configure:7546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7554 if { (eval echo configure:7555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7546 rm -rf conftest* 7555 rm -rf conftest*
7547 echo "$ac_t""yes" 1>&6 7556 echo "$ac_t""yes" 1>&6
7548 { test "$extra_verbose" = "yes" && cat << \EOF 7557 { test "$extra_verbose" = "yes" && cat << \EOF
7549 Defining HAVE_H_ERRNO 7558 Defining HAVE_H_ERRNO
7550 EOF 7559 EOF
7560 echo "$ac_t""no" 1>&6 7569 echo "$ac_t""no" 1>&6
7561 fi 7570 fi
7562 rm -f conftest* 7571 rm -f conftest*
7563 7572
7564 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 7573 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7565 echo "configure:7566: checking for sigsetjmp" >&5 7574 echo "configure:7575: checking for sigsetjmp" >&5
7566 cat > conftest.$ac_ext <<EOF 7575 cat > conftest.$ac_ext <<EOF
7567 #line 7568 "configure" 7576 #line 7577 "configure"
7568 #include "confdefs.h" 7577 #include "confdefs.h"
7569 #include <setjmp.h> 7578 #include <setjmp.h>
7570 int main() { 7579 int main() {
7571 sigjmp_buf bar; sigsetjmp (bar, 0); 7580 sigjmp_buf bar; sigsetjmp (bar, 0);
7572 ; return 0; } 7581 ; return 0; }
7573 EOF 7582 EOF
7574 if { (eval echo configure:7575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7583 if { (eval echo configure:7584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7575 rm -rf conftest* 7584 rm -rf conftest*
7576 echo "$ac_t""yes" 1>&6 7585 echo "$ac_t""yes" 1>&6
7577 { test "$extra_verbose" = "yes" && cat << \EOF 7586 { test "$extra_verbose" = "yes" && cat << \EOF
7578 Defining HAVE_SIGSETJMP 7587 Defining HAVE_SIGSETJMP
7579 EOF 7588 EOF
7589 echo "$ac_t""no" 1>&6 7598 echo "$ac_t""no" 1>&6
7590 fi 7599 fi
7591 rm -f conftest* 7600 rm -f conftest*
7592 7601
7593 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 7602 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
7594 echo "configure:7595: checking whether localtime caches TZ" >&5 7603 echo "configure:7604: checking whether localtime caches TZ" >&5
7595 7604
7596 if test "$ac_cv_func_tzset" = "yes"; then 7605 if test "$ac_cv_func_tzset" = "yes"; then
7597 cat > conftest.$ac_ext <<EOF 7606 cat > conftest.$ac_ext <<EOF
7598 #line 7599 "configure" 7607 #line 7608 "configure"
7599 #include "confdefs.h" 7608 #include "confdefs.h"
7600 #include <time.h> 7609 #include <time.h>
7601 #if STDC_HEADERS 7610 #if STDC_HEADERS
7602 # include <stdlib.h> 7611 # include <stdlib.h>
7603 #endif 7612 #endif
7628 if (localtime (&now)->tm_hour != hour_unset) 7637 if (localtime (&now)->tm_hour != hour_unset)
7629 exit (1); 7638 exit (1);
7630 exit (0); 7639 exit (0);
7631 } 7640 }
7632 EOF 7641 EOF
7633 if { (eval echo configure:7634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7642 if { (eval echo configure:7643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7634 then 7643 then
7635 emacs_cv_localtime_cache=no 7644 emacs_cv_localtime_cache=no
7636 else 7645 else
7637 echo "configure: failed program was:" >&5 7646 echo "configure: failed program was:" >&5
7638 cat conftest.$ac_ext >&5 7647 cat conftest.$ac_ext >&5
7657 7666
7658 fi 7667 fi
7659 7668
7660 if test "$HAVE_TIMEVAL" = "yes"; then 7669 if test "$HAVE_TIMEVAL" = "yes"; then
7661 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 7670 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
7662 echo "configure:7663: checking whether gettimeofday cannot accept two arguments" >&5 7671 echo "configure:7672: checking whether gettimeofday cannot accept two arguments" >&5
7663 cat > conftest.$ac_ext <<EOF 7672 cat > conftest.$ac_ext <<EOF
7664 #line 7665 "configure" 7673 #line 7674 "configure"
7665 #include "confdefs.h" 7674 #include "confdefs.h"
7666 7675
7667 #ifdef TIME_WITH_SYS_TIME 7676 #ifdef TIME_WITH_SYS_TIME
7668 #include <sys/time.h> 7677 #include <sys/time.h>
7669 #include <time.h> 7678 #include <time.h>
7681 struct timezone dummy; 7690 struct timezone dummy;
7682 gettimeofday (&time, &dummy); 7691 gettimeofday (&time, &dummy);
7683 7692
7684 ; return 0; } 7693 ; return 0; }
7685 EOF 7694 EOF
7686 if { (eval echo configure:7687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7695 if { (eval echo configure:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7687 rm -rf conftest* 7696 rm -rf conftest*
7688 echo "$ac_t""no" 1>&6 7697 echo "$ac_t""no" 1>&6
7689 else 7698 else
7690 echo "configure: failed program was:" >&5 7699 echo "configure: failed program was:" >&5
7691 cat conftest.$ac_ext >&5 7700 cat conftest.$ac_ext >&5
7703 rm -f conftest* 7712 rm -f conftest*
7704 fi 7713 fi
7705 7714
7706 7715
7707 echo $ac_n "checking for inline""... $ac_c" 1>&6 7716 echo $ac_n "checking for inline""... $ac_c" 1>&6
7708 echo "configure:7709: checking for inline" >&5 7717 echo "configure:7718: checking for inline" >&5
7709 7718
7710 ac_cv_c_inline=no 7719 ac_cv_c_inline=no
7711 for ac_kw in inline __inline__ __inline; do 7720 for ac_kw in inline __inline__ __inline; do
7712 cat > conftest.$ac_ext <<EOF 7721 cat > conftest.$ac_ext <<EOF
7713 #line 7714 "configure" 7722 #line 7723 "configure"
7714 #include "confdefs.h" 7723 #include "confdefs.h"
7715 7724
7716 int main() { 7725 int main() {
7717 } $ac_kw foo() { 7726 } $ac_kw foo() {
7718 ; return 0; } 7727 ; return 0; }
7719 EOF 7728 EOF
7720 if { (eval echo configure:7721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7729 if { (eval echo configure:7730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7721 rm -rf conftest* 7730 rm -rf conftest*
7722 ac_cv_c_inline=$ac_kw; break 7731 ac_cv_c_inline=$ac_kw; break
7723 else 7732 else
7724 echo "configure: failed program was:" >&5 7733 echo "configure: failed program was:" >&5
7725 cat conftest.$ac_ext >&5 7734 cat conftest.$ac_ext >&5
7765 7774
7766 7775
7767 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7776 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7768 # for constant arguments. Useless! 7777 # for constant arguments. Useless!
7769 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 7778 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7770 echo "configure:7771: checking for working alloca.h" >&5 7779 echo "configure:7780: checking for working alloca.h" >&5
7771 7780
7772 cat > conftest.$ac_ext <<EOF 7781 cat > conftest.$ac_ext <<EOF
7773 #line 7774 "configure" 7782 #line 7783 "configure"
7774 #include "confdefs.h" 7783 #include "confdefs.h"
7775 #include <alloca.h> 7784 #include <alloca.h>
7776 int main() { 7785 int main() {
7777 char *p = alloca(2 * sizeof(int)); 7786 char *p = alloca(2 * sizeof(int));
7778 ; return 0; } 7787 ; return 0; }
7779 EOF 7788 EOF
7780 if { (eval echo configure:7781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7789 if { (eval echo configure:7790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7781 rm -rf conftest* 7790 rm -rf conftest*
7782 ac_cv_header_alloca_h=yes 7791 ac_cv_header_alloca_h=yes
7783 else 7792 else
7784 echo "configure: failed program was:" >&5 7793 echo "configure: failed program was:" >&5
7785 cat conftest.$ac_ext >&5 7794 cat conftest.$ac_ext >&5
7799 } 7808 }
7800 7809
7801 fi 7810 fi
7802 7811
7803 echo $ac_n "checking for alloca""... $ac_c" 1>&6 7812 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7804 echo "configure:7805: checking for alloca" >&5 7813 echo "configure:7814: checking for alloca" >&5
7805 7814
7806 cat > conftest.$ac_ext <<EOF 7815 cat > conftest.$ac_ext <<EOF
7807 #line 7808 "configure" 7816 #line 7817 "configure"
7808 #include "confdefs.h" 7817 #include "confdefs.h"
7809 7818
7810 #ifdef __GNUC__ 7819 #ifdef __GNUC__
7811 # define alloca __builtin_alloca 7820 # define alloca __builtin_alloca
7812 #else 7821 #else
7825 7834
7826 int main() { 7835 int main() {
7827 char *p = (char *) alloca(1); 7836 char *p = (char *) alloca(1);
7828 ; return 0; } 7837 ; return 0; }
7829 EOF 7838 EOF
7830 if { (eval echo configure:7831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7839 if { (eval echo configure:7840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7831 rm -rf conftest* 7840 rm -rf conftest*
7832 ac_cv_func_alloca_works=yes 7841 ac_cv_func_alloca_works=yes
7833 else 7842 else
7834 echo "configure: failed program was:" >&5 7843 echo "configure: failed program was:" >&5
7835 cat conftest.$ac_ext >&5 7844 cat conftest.$ac_ext >&5
7864 EOF 7873 EOF
7865 } 7874 }
7866 7875
7867 7876
7868 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 7877 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7869 echo "configure:7870: checking whether alloca needs Cray hooks" >&5 7878 echo "configure:7879: checking whether alloca needs Cray hooks" >&5
7870 7879
7871 cat > conftest.$ac_ext <<EOF 7880 cat > conftest.$ac_ext <<EOF
7872 #line 7873 "configure" 7881 #line 7882 "configure"
7873 #include "confdefs.h" 7882 #include "confdefs.h"
7874 #if defined(CRAY) && ! defined(CRAY2) 7883 #if defined(CRAY) && ! defined(CRAY2)
7875 webecray 7884 webecray
7876 #else 7885 #else
7877 wenotbecray 7886 wenotbecray
7891 7900
7892 echo "$ac_t""$ac_cv_os_cray" 1>&6 7901 echo "$ac_t""$ac_cv_os_cray" 1>&6
7893 if test $ac_cv_os_cray = yes; then 7902 if test $ac_cv_os_cray = yes; then
7894 for ac_func in _getb67 GETB67 getb67; do 7903 for ac_func in _getb67 GETB67 getb67; do
7895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7896 echo "configure:7897: checking for $ac_func" >&5 7905 echo "configure:7906: checking for $ac_func" >&5
7897 7906
7898 cat > conftest.$ac_ext <<EOF 7907 cat > conftest.$ac_ext <<EOF
7899 #line 7900 "configure" 7908 #line 7909 "configure"
7900 #include "confdefs.h" 7909 #include "confdefs.h"
7901 /* System header to define __stub macros and hopefully few prototypes, 7910 /* System header to define __stub macros and hopefully few prototypes,
7902 which can conflict with char $ac_func(); below. */ 7911 which can conflict with char $ac_func(); below. */
7903 #include <assert.h> 7912 #include <assert.h>
7904 /* Override any gcc2 internal prototype to avoid an error. */ 7913 /* Override any gcc2 internal prototype to avoid an error. */
7917 $ac_func(); 7926 $ac_func();
7918 #endif 7927 #endif
7919 7928
7920 ; return 0; } 7929 ; return 0; }
7921 EOF 7930 EOF
7922 if { (eval echo configure:7923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7931 if { (eval echo configure:7932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7923 rm -rf conftest* 7932 rm -rf conftest*
7924 eval "ac_cv_func_$ac_func=yes" 7933 eval "ac_cv_func_$ac_func=yes"
7925 else 7934 else
7926 echo "configure: failed program was:" >&5 7935 echo "configure: failed program was:" >&5
7927 cat conftest.$ac_ext >&5 7936 cat conftest.$ac_ext >&5
7947 7956
7948 done 7957 done
7949 fi 7958 fi
7950 7959
7951 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 7960 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7952 echo "configure:7953: checking stack direction for C alloca" >&5 7961 echo "configure:7962: checking stack direction for C alloca" >&5
7953 7962
7954 cat > conftest.$ac_ext <<EOF 7963 cat > conftest.$ac_ext <<EOF
7955 #line 7956 "configure" 7964 #line 7965 "configure"
7956 #include "confdefs.h" 7965 #include "confdefs.h"
7957 find_stack_direction () 7966 find_stack_direction ()
7958 { 7967 {
7959 static char *addr = 0; 7968 static char *addr = 0;
7960 auto char dummy; 7969 auto char dummy;
7969 main () 7978 main ()
7970 { 7979 {
7971 exit (find_stack_direction() < 0); 7980 exit (find_stack_direction() < 0);
7972 } 7981 }
7973 EOF 7982 EOF
7974 if { (eval echo configure:7975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7983 if { (eval echo configure:7984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7975 then 7984 then
7976 ac_cv_c_stack_direction=1 7985 ac_cv_c_stack_direction=1
7977 else 7986 else
7978 echo "configure: failed program was:" >&5 7987 echo "configure: failed program was:" >&5
7979 cat conftest.$ac_ext >&5 7988 cat conftest.$ac_ext >&5
7997 echo " xemacs will be linked with \"$ALLOCA\"" 8006 echo " xemacs will be linked with \"$ALLOCA\""
7998 fi 8007 fi
7999 8008
8000 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8009 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8001 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8010 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8002 echo "configure:8003: checking for vfork.h" >&5 8011 echo "configure:8012: checking for vfork.h" >&5
8003 8012
8004 cat > conftest.$ac_ext <<EOF 8013 cat > conftest.$ac_ext <<EOF
8005 #line 8006 "configure" 8014 #line 8015 "configure"
8006 #include "confdefs.h" 8015 #include "confdefs.h"
8007 #include <vfork.h> 8016 #include <vfork.h>
8008 EOF 8017 EOF
8009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8010 { (eval echo configure:8011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8019 { (eval echo configure:8020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8011 ac_err=`grep -v '^ *+' conftest.out` 8020 ac_err=`grep -v '^ *+' conftest.out`
8012 if test -z "$ac_err"; then 8021 if test -z "$ac_err"; then
8013 rm -rf conftest* 8022 rm -rf conftest*
8014 eval "ac_cv_header_$ac_safe=yes" 8023 eval "ac_cv_header_$ac_safe=yes"
8015 else 8024 else
8033 else 8042 else
8034 echo "$ac_t""no" 1>&6 8043 echo "$ac_t""no" 1>&6
8035 fi 8044 fi
8036 8045
8037 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8046 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8038 echo "configure:8039: checking for working vfork" >&5 8047 echo "configure:8048: checking for working vfork" >&5
8039 8048
8040 cat > conftest.$ac_ext <<EOF 8049 cat > conftest.$ac_ext <<EOF
8041 #line 8042 "configure" 8050 #line 8051 "configure"
8042 #include "confdefs.h" 8051 #include "confdefs.h"
8043 /* Thanks to Paul Eggert for this test. */ 8052 /* Thanks to Paul Eggert for this test. */
8044 #include <stdio.h> 8053 #include <stdio.h>
8045 #include <sys/types.h> 8054 #include <sys/types.h>
8046 #include <sys/stat.h> 8055 #include <sys/stat.h>
8131 || fstat(fileno(stdout), &st) != 0 8140 || fstat(fileno(stdout), &st) != 0
8132 ); 8141 );
8133 } 8142 }
8134 } 8143 }
8135 EOF 8144 EOF
8136 if { (eval echo configure:8137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8145 if { (eval echo configure:8146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8137 then 8146 then
8138 ac_cv_func_vfork_works=yes 8147 ac_cv_func_vfork_works=yes
8139 else 8148 else
8140 echo "configure: failed program was:" >&5 8149 echo "configure: failed program was:" >&5
8141 cat conftest.$ac_ext >&5 8150 cat conftest.$ac_ext >&5
8156 8165
8157 fi 8166 fi
8158 8167
8159 8168
8160 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 8169 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
8161 echo "configure:8162: checking for working strcoll" >&5 8170 echo "configure:8171: checking for working strcoll" >&5
8162 8171
8163 cat > conftest.$ac_ext <<EOF 8172 cat > conftest.$ac_ext <<EOF
8164 #line 8165 "configure" 8173 #line 8174 "configure"
8165 #include "confdefs.h" 8174 #include "confdefs.h"
8166 #include <string.h> 8175 #include <string.h>
8167 main () 8176 main ()
8168 { 8177 {
8169 exit (strcoll ("abc", "def") >= 0 || 8178 exit (strcoll ("abc", "def") >= 0 ||
8170 strcoll ("ABC", "DEF") >= 0 || 8179 strcoll ("ABC", "DEF") >= 0 ||
8171 strcoll ("123", "456") >= 0); 8180 strcoll ("123", "456") >= 0);
8172 } 8181 }
8173 EOF 8182 EOF
8174 if { (eval echo configure:8175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8183 if { (eval echo configure:8184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8175 then 8184 then
8176 ac_cv_func_strcoll_works=yes 8185 ac_cv_func_strcoll_works=yes
8177 else 8186 else
8178 echo "configure: failed program was:" >&5 8187 echo "configure: failed program was:" >&5
8179 cat conftest.$ac_ext >&5 8188 cat conftest.$ac_ext >&5
8196 8205
8197 8206
8198 for ac_func in getpgrp 8207 for ac_func in getpgrp
8199 do 8208 do
8200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8201 echo "configure:8202: checking for $ac_func" >&5 8210 echo "configure:8211: checking for $ac_func" >&5
8202 8211
8203 cat > conftest.$ac_ext <<EOF 8212 cat > conftest.$ac_ext <<EOF
8204 #line 8205 "configure" 8213 #line 8214 "configure"
8205 #include "confdefs.h" 8214 #include "confdefs.h"
8206 /* System header to define __stub macros and hopefully few prototypes, 8215 /* System header to define __stub macros and hopefully few prototypes,
8207 which can conflict with char $ac_func(); below. */ 8216 which can conflict with char $ac_func(); below. */
8208 #include <assert.h> 8217 #include <assert.h>
8209 /* Override any gcc2 internal prototype to avoid an error. */ 8218 /* Override any gcc2 internal prototype to avoid an error. */
8222 $ac_func(); 8231 $ac_func();
8223 #endif 8232 #endif
8224 8233
8225 ; return 0; } 8234 ; return 0; }
8226 EOF 8235 EOF
8227 if { (eval echo configure:8228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8236 if { (eval echo configure:8237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8228 rm -rf conftest* 8237 rm -rf conftest*
8229 eval "ac_cv_func_$ac_func=yes" 8238 eval "ac_cv_func_$ac_func=yes"
8230 else 8239 else
8231 echo "configure: failed program was:" >&5 8240 echo "configure: failed program was:" >&5
8232 cat conftest.$ac_ext >&5 8241 cat conftest.$ac_ext >&5
8250 echo "$ac_t""no" 1>&6 8259 echo "$ac_t""no" 1>&6
8251 fi 8260 fi
8252 done 8261 done
8253 8262
8254 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 8263 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
8255 echo "configure:8256: checking whether getpgrp takes no argument" >&5 8264 echo "configure:8265: checking whether getpgrp takes no argument" >&5
8256 8265
8257 cat > conftest.$ac_ext <<EOF 8266 cat > conftest.$ac_ext <<EOF
8258 #line 8259 "configure" 8267 #line 8268 "configure"
8259 #include "confdefs.h" 8268 #include "confdefs.h"
8260 8269
8261 /* 8270 /*
8262 * If this system has a BSD-style getpgrp(), 8271 * If this system has a BSD-style getpgrp(),
8263 * which takes a pid argument, exit unsuccessfully. 8272 * which takes a pid argument, exit unsuccessfully.
8308 exit(s>>8); 8317 exit(s>>8);
8309 } 8318 }
8310 } 8319 }
8311 8320
8312 EOF 8321 EOF
8313 if { (eval echo configure:8314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8322 if { (eval echo configure:8323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8314 then 8323 then
8315 ac_cv_func_getpgrp_void=yes 8324 ac_cv_func_getpgrp_void=yes
8316 else 8325 else
8317 echo "configure: failed program was:" >&5 8326 echo "configure: failed program was:" >&5
8318 cat conftest.$ac_ext >&5 8327 cat conftest.$ac_ext >&5
8334 8343
8335 fi 8344 fi
8336 8345
8337 8346
8338 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 8347 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8339 echo "configure:8340: checking for working mmap" >&5 8348 echo "configure:8349: checking for working mmap" >&5
8340 case "$opsys" in ultrix* ) have_mmap=no ;; *) 8349 case "$opsys" in ultrix* ) have_mmap=no ;; *)
8341 cat > conftest.$ac_ext <<EOF 8350 cat > conftest.$ac_ext <<EOF
8342 #line 8343 "configure" 8351 #line 8352 "configure"
8343 #include "confdefs.h" 8352 #include "confdefs.h"
8344 #include <stdio.h> 8353 #include <stdio.h>
8345 #include <unistd.h> 8354 #include <unistd.h>
8346 #include <fcntl.h> 8355 #include <fcntl.h>
8347 #include <sys/mman.h> 8356 #include <sys/mman.h>
8370 return 0; 8379 return 0;
8371 perror ("conftest: mmap failed"); 8380 perror ("conftest: mmap failed");
8372 return 1; 8381 return 1;
8373 } 8382 }
8374 EOF 8383 EOF
8375 if { (eval echo configure:8376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8384 if { (eval echo configure:8385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8376 then 8385 then
8377 have_mmap=yes 8386 have_mmap=yes
8378 else 8387 else
8379 echo "configure: failed program was:" >&5 8388 echo "configure: failed program was:" >&5
8380 cat conftest.$ac_ext >&5 8389 cat conftest.$ac_ext >&5
8404 } 8413 }
8405 8414
8406 8415
8407 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 8416 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
8408 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 8417 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
8409 echo "configure:8410: checking for termios.h" >&5 8418 echo "configure:8419: checking for termios.h" >&5
8410 8419
8411 cat > conftest.$ac_ext <<EOF 8420 cat > conftest.$ac_ext <<EOF
8412 #line 8413 "configure" 8421 #line 8422 "configure"
8413 #include "confdefs.h" 8422 #include "confdefs.h"
8414 #include <termios.h> 8423 #include <termios.h>
8415 EOF 8424 EOF
8416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8417 { (eval echo configure:8418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8426 { (eval echo configure:8427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8418 ac_err=`grep -v '^ *+' conftest.out` 8427 ac_err=`grep -v '^ *+' conftest.out`
8419 if test -z "$ac_err"; then 8428 if test -z "$ac_err"; then
8420 rm -rf conftest* 8429 rm -rf conftest*
8421 eval "ac_cv_header_$ac_safe=yes" 8430 eval "ac_cv_header_$ac_safe=yes"
8422 else 8431 else
8455 8464
8456 else 8465 else
8457 echo "$ac_t""no" 1>&6 8466 echo "$ac_t""no" 1>&6
8458 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 8467 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
8459 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 8468 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
8460 echo "configure:8461: checking for termio.h" >&5 8469 echo "configure:8470: checking for termio.h" >&5
8461 8470
8462 cat > conftest.$ac_ext <<EOF 8471 cat > conftest.$ac_ext <<EOF
8463 #line 8464 "configure" 8472 #line 8473 "configure"
8464 #include "confdefs.h" 8473 #include "confdefs.h"
8465 #include <termio.h> 8474 #include <termio.h>
8466 EOF 8475 EOF
8467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8468 { (eval echo configure:8469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8477 { (eval echo configure:8478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8469 ac_err=`grep -v '^ *+' conftest.out` 8478 ac_err=`grep -v '^ *+' conftest.out`
8470 if test -z "$ac_err"; then 8479 if test -z "$ac_err"; then
8471 rm -rf conftest* 8480 rm -rf conftest*
8472 eval "ac_cv_header_$ac_safe=yes" 8481 eval "ac_cv_header_$ac_safe=yes"
8473 else 8482 else
8495 fi 8504 fi
8496 8505
8497 8506
8498 8507
8499 echo $ac_n "checking for socket""... $ac_c" 1>&6 8508 echo $ac_n "checking for socket""... $ac_c" 1>&6
8500 echo "configure:8501: checking for socket" >&5 8509 echo "configure:8510: checking for socket" >&5
8501 8510
8502 cat > conftest.$ac_ext <<EOF 8511 cat > conftest.$ac_ext <<EOF
8503 #line 8504 "configure" 8512 #line 8513 "configure"
8504 #include "confdefs.h" 8513 #include "confdefs.h"
8505 /* System header to define __stub macros and hopefully few prototypes, 8514 /* System header to define __stub macros and hopefully few prototypes,
8506 which can conflict with char socket(); below. */ 8515 which can conflict with char socket(); below. */
8507 #include <assert.h> 8516 #include <assert.h>
8508 /* Override any gcc2 internal prototype to avoid an error. */ 8517 /* Override any gcc2 internal prototype to avoid an error. */
8521 socket(); 8530 socket();
8522 #endif 8531 #endif
8523 8532
8524 ; return 0; } 8533 ; return 0; }
8525 EOF 8534 EOF
8526 if { (eval echo configure:8527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8535 if { (eval echo configure:8536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8527 rm -rf conftest* 8536 rm -rf conftest*
8528 eval "ac_cv_func_socket=yes" 8537 eval "ac_cv_func_socket=yes"
8529 else 8538 else
8530 echo "configure: failed program was:" >&5 8539 echo "configure: failed program was:" >&5
8531 cat conftest.$ac_ext >&5 8540 cat conftest.$ac_ext >&5
8536 8545
8537 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 8546 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8538 echo "$ac_t""yes" 1>&6 8547 echo "$ac_t""yes" 1>&6
8539 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8548 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8540 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8549 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8541 echo "configure:8542: checking for netinet/in.h" >&5 8550 echo "configure:8551: checking for netinet/in.h" >&5
8542 8551
8543 cat > conftest.$ac_ext <<EOF 8552 cat > conftest.$ac_ext <<EOF
8544 #line 8545 "configure" 8553 #line 8554 "configure"
8545 #include "confdefs.h" 8554 #include "confdefs.h"
8546 #include <netinet/in.h> 8555 #include <netinet/in.h>
8547 EOF 8556 EOF
8548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8549 { (eval echo configure:8550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8558 { (eval echo configure:8559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8550 ac_err=`grep -v '^ *+' conftest.out` 8559 ac_err=`grep -v '^ *+' conftest.out`
8551 if test -z "$ac_err"; then 8560 if test -z "$ac_err"; then
8552 rm -rf conftest* 8561 rm -rf conftest*
8553 eval "ac_cv_header_$ac_safe=yes" 8562 eval "ac_cv_header_$ac_safe=yes"
8554 else 8563 else
8561 rm -f conftest* 8570 rm -f conftest*
8562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8563 echo "$ac_t""yes" 1>&6 8572 echo "$ac_t""yes" 1>&6
8564 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8573 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8565 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8574 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8566 echo "configure:8567: checking for arpa/inet.h" >&5 8575 echo "configure:8576: checking for arpa/inet.h" >&5
8567 8576
8568 cat > conftest.$ac_ext <<EOF 8577 cat > conftest.$ac_ext <<EOF
8569 #line 8570 "configure" 8578 #line 8579 "configure"
8570 #include "confdefs.h" 8579 #include "confdefs.h"
8571 #include <arpa/inet.h> 8580 #include <arpa/inet.h>
8572 EOF 8581 EOF
8573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8574 { (eval echo configure:8575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8583 { (eval echo configure:8584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8575 ac_err=`grep -v '^ *+' conftest.out` 8584 ac_err=`grep -v '^ *+' conftest.out`
8576 if test -z "$ac_err"; then 8585 if test -z "$ac_err"; then
8577 rm -rf conftest* 8586 rm -rf conftest*
8578 eval "ac_cv_header_$ac_safe=yes" 8587 eval "ac_cv_header_$ac_safe=yes"
8579 else 8588 else
8594 #define HAVE_SOCKETS 1 8603 #define HAVE_SOCKETS 1
8595 EOF 8604 EOF
8596 } 8605 }
8597 8606
8598 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 8607 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
8599 echo "configure:8600: checking "for sun_len member in struct sockaddr_un"" >&5 8608 echo "configure:8609: checking "for sun_len member in struct sockaddr_un"" >&5
8600 cat > conftest.$ac_ext <<EOF 8609 cat > conftest.$ac_ext <<EOF
8601 #line 8602 "configure" 8610 #line 8611 "configure"
8602 #include "confdefs.h" 8611 #include "confdefs.h"
8603 8612
8604 #include <sys/types.h> 8613 #include <sys/types.h>
8605 #include <sys/socket.h> 8614 #include <sys/socket.h>
8606 #include <sys/un.h> 8615 #include <sys/un.h>
8607 8616
8608 int main() { 8617 int main() {
8609 static struct sockaddr_un x; x.sun_len = 1; 8618 static struct sockaddr_un x; x.sun_len = 1;
8610 ; return 0; } 8619 ; return 0; }
8611 EOF 8620 EOF
8612 if { (eval echo configure:8613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8621 if { (eval echo configure:8622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8613 rm -rf conftest* 8622 rm -rf conftest*
8614 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 8623 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
8615 Defining HAVE_SOCKADDR_SUN_LEN 8624 Defining HAVE_SOCKADDR_SUN_LEN
8616 EOF 8625 EOF
8617 cat >> confdefs.h <<\EOF 8626 cat >> confdefs.h <<\EOF
8638 echo "$ac_t""no" 1>&6 8647 echo "$ac_t""no" 1>&6
8639 fi 8648 fi
8640 8649
8641 8650
8642 echo $ac_n "checking for msgget""... $ac_c" 1>&6 8651 echo $ac_n "checking for msgget""... $ac_c" 1>&6
8643 echo "configure:8644: checking for msgget" >&5 8652 echo "configure:8653: checking for msgget" >&5
8644 8653
8645 cat > conftest.$ac_ext <<EOF 8654 cat > conftest.$ac_ext <<EOF
8646 #line 8647 "configure" 8655 #line 8656 "configure"
8647 #include "confdefs.h" 8656 #include "confdefs.h"
8648 /* System header to define __stub macros and hopefully few prototypes, 8657 /* System header to define __stub macros and hopefully few prototypes,
8649 which can conflict with char msgget(); below. */ 8658 which can conflict with char msgget(); below. */
8650 #include <assert.h> 8659 #include <assert.h>
8651 /* Override any gcc2 internal prototype to avoid an error. */ 8660 /* Override any gcc2 internal prototype to avoid an error. */
8664 msgget(); 8673 msgget();
8665 #endif 8674 #endif
8666 8675
8667 ; return 0; } 8676 ; return 0; }
8668 EOF 8677 EOF
8669 if { (eval echo configure:8670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8678 if { (eval echo configure:8679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8670 rm -rf conftest* 8679 rm -rf conftest*
8671 eval "ac_cv_func_msgget=yes" 8680 eval "ac_cv_func_msgget=yes"
8672 else 8681 else
8673 echo "configure: failed program was:" >&5 8682 echo "configure: failed program was:" >&5
8674 cat conftest.$ac_ext >&5 8683 cat conftest.$ac_ext >&5
8679 8688
8680 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 8689 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
8681 echo "$ac_t""yes" 1>&6 8690 echo "$ac_t""yes" 1>&6
8682 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 8691 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
8683 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 8692 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
8684 echo "configure:8685: checking for sys/ipc.h" >&5 8693 echo "configure:8694: checking for sys/ipc.h" >&5
8685 8694
8686 cat > conftest.$ac_ext <<EOF 8695 cat > conftest.$ac_ext <<EOF
8687 #line 8688 "configure" 8696 #line 8697 "configure"
8688 #include "confdefs.h" 8697 #include "confdefs.h"
8689 #include <sys/ipc.h> 8698 #include <sys/ipc.h>
8690 EOF 8699 EOF
8691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8692 { (eval echo configure:8693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8701 { (eval echo configure:8702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8693 ac_err=`grep -v '^ *+' conftest.out` 8702 ac_err=`grep -v '^ *+' conftest.out`
8694 if test -z "$ac_err"; then 8703 if test -z "$ac_err"; then
8695 rm -rf conftest* 8704 rm -rf conftest*
8696 eval "ac_cv_header_$ac_safe=yes" 8705 eval "ac_cv_header_$ac_safe=yes"
8697 else 8706 else
8704 rm -f conftest* 8713 rm -f conftest*
8705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8706 echo "$ac_t""yes" 1>&6 8715 echo "$ac_t""yes" 1>&6
8707 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 8716 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
8708 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 8717 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
8709 echo "configure:8710: checking for sys/msg.h" >&5 8718 echo "configure:8719: checking for sys/msg.h" >&5
8710 8719
8711 cat > conftest.$ac_ext <<EOF 8720 cat > conftest.$ac_ext <<EOF
8712 #line 8713 "configure" 8721 #line 8722 "configure"
8713 #include "confdefs.h" 8722 #include "confdefs.h"
8714 #include <sys/msg.h> 8723 #include <sys/msg.h>
8715 EOF 8724 EOF
8716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8717 { (eval echo configure:8718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8726 { (eval echo configure:8727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8718 ac_err=`grep -v '^ *+' conftest.out` 8727 ac_err=`grep -v '^ *+' conftest.out`
8719 if test -z "$ac_err"; then 8728 if test -z "$ac_err"; then
8720 rm -rf conftest* 8729 rm -rf conftest*
8721 eval "ac_cv_header_$ac_safe=yes" 8730 eval "ac_cv_header_$ac_safe=yes"
8722 else 8731 else
8750 fi 8759 fi
8751 8760
8752 8761
8753 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 8762 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
8754 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 8763 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
8755 echo "configure:8756: checking for dirent.h" >&5 8764 echo "configure:8765: checking for dirent.h" >&5
8756 8765
8757 cat > conftest.$ac_ext <<EOF 8766 cat > conftest.$ac_ext <<EOF
8758 #line 8759 "configure" 8767 #line 8768 "configure"
8759 #include "confdefs.h" 8768 #include "confdefs.h"
8760 #include <dirent.h> 8769 #include <dirent.h>
8761 EOF 8770 EOF
8762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8763 { (eval echo configure:8764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8772 { (eval echo configure:8773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8764 ac_err=`grep -v '^ *+' conftest.out` 8773 ac_err=`grep -v '^ *+' conftest.out`
8765 if test -z "$ac_err"; then 8774 if test -z "$ac_err"; then
8766 rm -rf conftest* 8775 rm -rf conftest*
8767 eval "ac_cv_header_$ac_safe=yes" 8776 eval "ac_cv_header_$ac_safe=yes"
8768 else 8777 else
8785 8794
8786 else 8795 else
8787 echo "$ac_t""no" 1>&6 8796 echo "$ac_t""no" 1>&6
8788 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 8797 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
8789 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 8798 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
8790 echo "configure:8791: checking for sys/dir.h" >&5 8799 echo "configure:8800: checking for sys/dir.h" >&5
8791 8800
8792 cat > conftest.$ac_ext <<EOF 8801 cat > conftest.$ac_ext <<EOF
8793 #line 8794 "configure" 8802 #line 8803 "configure"
8794 #include "confdefs.h" 8803 #include "confdefs.h"
8795 #include <sys/dir.h> 8804 #include <sys/dir.h>
8796 EOF 8805 EOF
8797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8798 { (eval echo configure:8799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8807 { (eval echo configure:8808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8799 ac_err=`grep -v '^ *+' conftest.out` 8808 ac_err=`grep -v '^ *+' conftest.out`
8800 if test -z "$ac_err"; then 8809 if test -z "$ac_err"; then
8801 rm -rf conftest* 8810 rm -rf conftest*
8802 eval "ac_cv_header_$ac_safe=yes" 8811 eval "ac_cv_header_$ac_safe=yes"
8803 else 8812 else
8826 fi 8835 fi
8827 8836
8828 8837
8829 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 8838 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
8830 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 8839 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
8831 echo "configure:8832: checking for nlist.h" >&5 8840 echo "configure:8841: checking for nlist.h" >&5
8832 8841
8833 cat > conftest.$ac_ext <<EOF 8842 cat > conftest.$ac_ext <<EOF
8834 #line 8835 "configure" 8843 #line 8844 "configure"
8835 #include "confdefs.h" 8844 #include "confdefs.h"
8836 #include <nlist.h> 8845 #include <nlist.h>
8837 EOF 8846 EOF
8838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8839 { (eval echo configure:8840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8848 { (eval echo configure:8849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8840 ac_err=`grep -v '^ *+' conftest.out` 8849 ac_err=`grep -v '^ *+' conftest.out`
8841 if test -z "$ac_err"; then 8850 if test -z "$ac_err"; then
8842 rm -rf conftest* 8851 rm -rf conftest*
8843 eval "ac_cv_header_$ac_safe=yes" 8852 eval "ac_cv_header_$ac_safe=yes"
8844 else 8853 else
8875 break; fi 8884 break; fi
8876 done 8885 done
8877 8886
8878 8887
8879 echo "checking "for sound support"" 1>&6 8888 echo "checking "for sound support"" 1>&6
8880 echo "configure:8881: checking "for sound support"" >&5 8889 echo "configure:8890: checking "for sound support"" >&5
8881 case "$with_sound" in 8890 case "$with_sound" in
8882 native | both ) with_native_sound=yes;; 8891 native | both ) with_native_sound=yes;;
8883 nas | no ) with_native_sound=no;; 8892 nas | no ) with_native_sound=no;;
8884 esac 8893 esac
8885 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 8894 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
8886 8895
8887 if test "$with_native_sound" != "no"; then 8896 if test "$with_native_sound" != "no"; then
8888 if test -n "$native_sound_lib"; then 8897 if test -n "$native_sound_lib"; then
8889 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 8898 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
8890 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 8899 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
8891 echo "configure:8892: checking for multimedia/audio_device.h" >&5 8900 echo "configure:8901: checking for multimedia/audio_device.h" >&5
8892 8901
8893 cat > conftest.$ac_ext <<EOF 8902 cat > conftest.$ac_ext <<EOF
8894 #line 8895 "configure" 8903 #line 8904 "configure"
8895 #include "confdefs.h" 8904 #include "confdefs.h"
8896 #include <multimedia/audio_device.h> 8905 #include <multimedia/audio_device.h>
8897 EOF 8906 EOF
8898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8899 { (eval echo configure:8900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8908 { (eval echo configure:8909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8900 ac_err=`grep -v '^ *+' conftest.out` 8909 ac_err=`grep -v '^ *+' conftest.out`
8901 if test -z "$ac_err"; then 8910 if test -z "$ac_err"; then
8902 rm -rf conftest* 8911 rm -rf conftest*
8903 eval "ac_cv_header_$ac_safe=yes" 8912 eval "ac_cv_header_$ac_safe=yes"
8904 else 8913 else
8942 case "$canonical" in 8951 case "$canonical" in
8943 *-sgi-* ) 8952 *-sgi-* )
8944 if test -z "$native_sound_lib"; then 8953 if test -z "$native_sound_lib"; then
8945 8954
8946 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 8955 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
8947 echo "configure:8948: checking for ALopenport in -laudio" >&5 8956 echo "configure:8957: checking for ALopenport in -laudio" >&5
8948 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 8957 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
8949 8958
8950 xe_check_libs=" -laudio " 8959 xe_check_libs=" -laudio "
8951 cat > conftest.$ac_ext <<EOF 8960 cat > conftest.$ac_ext <<EOF
8952 #line 8953 "configure" 8961 #line 8962 "configure"
8953 #include "confdefs.h" 8962 #include "confdefs.h"
8954 /* Override any gcc2 internal prototype to avoid an error. */ 8963 /* Override any gcc2 internal prototype to avoid an error. */
8955 /* We use char because int might match the return type of a gcc2 8964 /* We use char because int might match the return type of a gcc2
8956 builtin and then its argument prototype would still apply. */ 8965 builtin and then its argument prototype would still apply. */
8957 char ALopenport(); 8966 char ALopenport();
8958 8967
8959 int main() { 8968 int main() {
8960 ALopenport() 8969 ALopenport()
8961 ; return 0; } 8970 ; return 0; }
8962 EOF 8971 EOF
8963 if { (eval echo configure:8964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8972 if { (eval echo configure:8973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8964 rm -rf conftest* 8973 rm -rf conftest*
8965 eval "ac_cv_lib_$ac_lib_var=yes" 8974 eval "ac_cv_lib_$ac_lib_var=yes"
8966 else 8975 else
8967 echo "configure: failed program was:" >&5 8976 echo "configure: failed program was:" >&5
8968 cat conftest.$ac_ext >&5 8977 cat conftest.$ac_ext >&5
8989 fi ;; 8998 fi ;;
8990 hppa*-hp-hpux* ) 8999 hppa*-hp-hpux* )
8991 if test -z "$native_sound_lib"; then 9000 if test -z "$native_sound_lib"; then
8992 9001
8993 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 9002 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
8994 echo "configure:8995: checking for AOpenAudio in -lAlib" >&5 9003 echo "configure:9004: checking for AOpenAudio in -lAlib" >&5
8995 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 9004 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
8996 9005
8997 xe_check_libs=" -lAlib " 9006 xe_check_libs=" -lAlib "
8998 cat > conftest.$ac_ext <<EOF 9007 cat > conftest.$ac_ext <<EOF
8999 #line 9000 "configure" 9008 #line 9009 "configure"
9000 #include "confdefs.h" 9009 #include "confdefs.h"
9001 /* Override any gcc2 internal prototype to avoid an error. */ 9010 /* Override any gcc2 internal prototype to avoid an error. */
9002 /* We use char because int might match the return type of a gcc2 9011 /* We use char because int might match the return type of a gcc2
9003 builtin and then its argument prototype would still apply. */ 9012 builtin and then its argument prototype would still apply. */
9004 char AOpenAudio(); 9013 char AOpenAudio();
9005 9014
9006 int main() { 9015 int main() {
9007 AOpenAudio() 9016 AOpenAudio()
9008 ; return 0; } 9017 ; return 0; }
9009 EOF 9018 EOF
9010 if { (eval echo configure:9011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9019 if { (eval echo configure:9020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9011 rm -rf conftest* 9020 rm -rf conftest*
9012 eval "ac_cv_lib_$ac_lib_var=yes" 9021 eval "ac_cv_lib_$ac_lib_var=yes"
9013 else 9022 else
9014 echo "configure: failed program was:" >&5 9023 echo "configure: failed program was:" >&5
9015 cat conftest.$ac_ext >&5 9024 cat conftest.$ac_ext >&5
9043 9052
9044 if test -z "$sound_found"; then 9053 if test -z "$sound_found"; then
9045 for dir in "machine" "sys" "linux"; do 9054 for dir in "machine" "sys" "linux"; do
9046 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 9055 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
9047 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 9056 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
9048 echo "configure:9049: checking for ${dir}/soundcard.h" >&5 9057 echo "configure:9058: checking for ${dir}/soundcard.h" >&5
9049 9058
9050 cat > conftest.$ac_ext <<EOF 9059 cat > conftest.$ac_ext <<EOF
9051 #line 9052 "configure" 9060 #line 9061 "configure"
9052 #include "confdefs.h" 9061 #include "confdefs.h"
9053 #include <${dir}/soundcard.h> 9062 #include <${dir}/soundcard.h>
9054 EOF 9063 EOF
9055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9056 { (eval echo configure:9057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9065 { (eval echo configure:9066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9057 ac_err=`grep -v '^ *+' conftest.out` 9066 ac_err=`grep -v '^ *+' conftest.out`
9058 if test -z "$ac_err"; then 9067 if test -z "$ac_err"; then
9059 rm -rf conftest* 9068 rm -rf conftest*
9060 eval "ac_cv_header_$ac_safe=yes" 9069 eval "ac_cv_header_$ac_safe=yes"
9061 else 9070 else
9121 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 9130 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
9122 echo " xemacs will be linked with \"nas.o\"" 9131 echo " xemacs will be linked with \"nas.o\""
9123 fi 9132 fi
9124 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi 9133 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi
9125 cat > conftest.$ac_ext <<EOF 9134 cat > conftest.$ac_ext <<EOF
9126 #line 9127 "configure" 9135 #line 9136 "configure"
9127 #include "confdefs.h" 9136 #include "confdefs.h"
9128 #include <audio/Xtutil.h> 9137 #include <audio/Xtutil.h>
9129 EOF 9138 EOF
9130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9131 egrep "AuXtErrorJump" >/dev/null 2>&1; then 9140 egrep "AuXtErrorJump" >/dev/null 2>&1; then
9148 9157
9149 test -z "$with_tty" && with_tty=yes 9158 test -z "$with_tty" && with_tty=yes
9150 9159
9151 if test "$with_tty" = "yes" ; then 9160 if test "$with_tty" = "yes" ; then
9152 echo "checking for TTY-related features" 1>&6 9161 echo "checking for TTY-related features" 1>&6
9153 echo "configure:9154: checking for TTY-related features" >&5 9162 echo "configure:9163: checking for TTY-related features" >&5
9154 { test "$extra_verbose" = "yes" && cat << \EOF 9163 { test "$extra_verbose" = "yes" && cat << \EOF
9155 Defining HAVE_TTY 9164 Defining HAVE_TTY
9156 EOF 9165 EOF
9157 cat >> confdefs.h <<\EOF 9166 cat >> confdefs.h <<\EOF
9158 #define HAVE_TTY 1 9167 #define HAVE_TTY 1
9164 fi 9173 fi
9165 9174
9166 if test -z "$with_ncurses"; then 9175 if test -z "$with_ncurses"; then
9167 9176
9168 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 9177 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
9169 echo "configure:9170: checking for tgetent in -lncurses" >&5 9178 echo "configure:9179: checking for tgetent in -lncurses" >&5
9170 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 9179 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
9171 9180
9172 xe_check_libs=" -lncurses " 9181 xe_check_libs=" -lncurses "
9173 cat > conftest.$ac_ext <<EOF 9182 cat > conftest.$ac_ext <<EOF
9174 #line 9175 "configure" 9183 #line 9184 "configure"
9175 #include "confdefs.h" 9184 #include "confdefs.h"
9176 /* Override any gcc2 internal prototype to avoid an error. */ 9185 /* Override any gcc2 internal prototype to avoid an error. */
9177 /* We use char because int might match the return type of a gcc2 9186 /* We use char because int might match the return type of a gcc2
9178 builtin and then its argument prototype would still apply. */ 9187 builtin and then its argument prototype would still apply. */
9179 char tgetent(); 9188 char tgetent();
9180 9189
9181 int main() { 9190 int main() {
9182 tgetent() 9191 tgetent()
9183 ; return 0; } 9192 ; return 0; }
9184 EOF 9193 EOF
9185 if { (eval echo configure:9186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9194 if { (eval echo configure:9195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9186 rm -rf conftest* 9195 rm -rf conftest*
9187 eval "ac_cv_lib_$ac_lib_var=yes" 9196 eval "ac_cv_lib_$ac_lib_var=yes"
9188 else 9197 else
9189 echo "configure: failed program was:" >&5 9198 echo "configure: failed program was:" >&5
9190 cat conftest.$ac_ext >&5 9199 cat conftest.$ac_ext >&5
9213 EOF 9222 EOF
9214 } 9223 }
9215 9224
9216 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9225 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9217 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9226 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9218 echo "configure:9219: checking for ncurses/curses.h" >&5 9227 echo "configure:9228: checking for ncurses/curses.h" >&5
9219 9228
9220 cat > conftest.$ac_ext <<EOF 9229 cat > conftest.$ac_ext <<EOF
9221 #line 9222 "configure" 9230 #line 9231 "configure"
9222 #include "confdefs.h" 9231 #include "confdefs.h"
9223 #include <ncurses/curses.h> 9232 #include <ncurses/curses.h>
9224 EOF 9233 EOF
9225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9226 { (eval echo configure:9227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9235 { (eval echo configure:9236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9227 ac_err=`grep -v '^ *+' conftest.out` 9236 ac_err=`grep -v '^ *+' conftest.out`
9228 if test -z "$ac_err"; then 9237 if test -z "$ac_err"; then
9229 rm -rf conftest* 9238 rm -rf conftest*
9230 eval "ac_cv_header_$ac_safe=yes" 9239 eval "ac_cv_header_$ac_safe=yes"
9231 else 9240 else
9243 echo "$ac_t""no" 1>&6 9252 echo "$ac_t""no" 1>&6
9244 fi 9253 fi
9245 9254
9246 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 9255 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
9247 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 9256 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
9248 echo "configure:9249: checking for ncurses/term.h" >&5 9257 echo "configure:9258: checking for ncurses/term.h" >&5
9249 9258
9250 cat > conftest.$ac_ext <<EOF 9259 cat > conftest.$ac_ext <<EOF
9251 #line 9252 "configure" 9260 #line 9261 "configure"
9252 #include "confdefs.h" 9261 #include "confdefs.h"
9253 #include <ncurses/term.h> 9262 #include <ncurses/term.h>
9254 EOF 9263 EOF
9255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9256 { (eval echo configure:9257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9265 { (eval echo configure:9266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9257 ac_err=`grep -v '^ *+' conftest.out` 9266 ac_err=`grep -v '^ *+' conftest.out`
9258 if test -z "$ac_err"; then 9267 if test -z "$ac_err"; then
9259 rm -rf conftest* 9268 rm -rf conftest*
9260 eval "ac_cv_header_$ac_safe=yes" 9269 eval "ac_cv_header_$ac_safe=yes"
9261 else 9270 else
9281 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 9290 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
9282 save_c_switch_site="$c_switch_site" 9291 save_c_switch_site="$c_switch_site"
9283 c_switch_site="$c_switch_site -I/usr/include/ncurses" 9292 c_switch_site="$c_switch_site -I/usr/include/ncurses"
9284 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9293 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9285 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9294 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9286 echo "configure:9287: checking for ncurses/curses.h" >&5 9295 echo "configure:9296: checking for ncurses/curses.h" >&5
9287 9296
9288 cat > conftest.$ac_ext <<EOF 9297 cat > conftest.$ac_ext <<EOF
9289 #line 9290 "configure" 9298 #line 9299 "configure"
9290 #include "confdefs.h" 9299 #include "confdefs.h"
9291 #include <ncurses/curses.h> 9300 #include <ncurses/curses.h>
9292 EOF 9301 EOF
9293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9294 { (eval echo configure:9295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9303 { (eval echo configure:9304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9295 ac_err=`grep -v '^ *+' conftest.out` 9304 ac_err=`grep -v '^ *+' conftest.out`
9296 if test -z "$ac_err"; then 9305 if test -z "$ac_err"; then
9297 rm -rf conftest* 9306 rm -rf conftest*
9298 eval "ac_cv_header_$ac_safe=yes" 9307 eval "ac_cv_header_$ac_safe=yes"
9299 else 9308 else
9324 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9333 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9325 else 9334 else
9326 for lib in curses termlib termcap; do 9335 for lib in curses termlib termcap; do
9327 9336
9328 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 9337 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
9329 echo "configure:9330: checking for tgetent in -l$lib" >&5 9338 echo "configure:9339: checking for tgetent in -l$lib" >&5
9330 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 9339 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
9331 9340
9332 xe_check_libs=" -l$lib " 9341 xe_check_libs=" -l$lib "
9333 cat > conftest.$ac_ext <<EOF 9342 cat > conftest.$ac_ext <<EOF
9334 #line 9335 "configure" 9343 #line 9344 "configure"
9335 #include "confdefs.h" 9344 #include "confdefs.h"
9336 /* Override any gcc2 internal prototype to avoid an error. */ 9345 /* Override any gcc2 internal prototype to avoid an error. */
9337 /* We use char because int might match the return type of a gcc2 9346 /* We use char because int might match the return type of a gcc2
9338 builtin and then its argument prototype would still apply. */ 9347 builtin and then its argument prototype would still apply. */
9339 char tgetent(); 9348 char tgetent();
9340 9349
9341 int main() { 9350 int main() {
9342 tgetent() 9351 tgetent()
9343 ; return 0; } 9352 ; return 0; }
9344 EOF 9353 EOF
9345 if { (eval echo configure:9346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9354 if { (eval echo configure:9355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9346 rm -rf conftest* 9355 rm -rf conftest*
9347 eval "ac_cv_lib_$ac_lib_var=yes" 9356 eval "ac_cv_lib_$ac_lib_var=yes"
9348 else 9357 else
9349 echo "configure: failed program was:" >&5 9358 echo "configure: failed program was:" >&5
9350 cat conftest.$ac_ext >&5 9359 cat conftest.$ac_ext >&5
9371 if test -n "$libs_termcap"; then 9380 if test -n "$libs_termcap"; then
9372 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9381 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9373 else 9382 else
9374 9383
9375 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 9384 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
9376 echo "configure:9377: checking for tgetent in -lcurses" >&5 9385 echo "configure:9386: checking for tgetent in -lcurses" >&5
9377 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 9386 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
9378 9387
9379 xe_check_libs=" -lcurses " 9388 xe_check_libs=" -lcurses "
9380 cat > conftest.$ac_ext <<EOF 9389 cat > conftest.$ac_ext <<EOF
9381 #line 9382 "configure" 9390 #line 9391 "configure"
9382 #include "confdefs.h" 9391 #include "confdefs.h"
9383 /* Override any gcc2 internal prototype to avoid an error. */ 9392 /* Override any gcc2 internal prototype to avoid an error. */
9384 /* We use char because int might match the return type of a gcc2 9393 /* We use char because int might match the return type of a gcc2
9385 builtin and then its argument prototype would still apply. */ 9394 builtin and then its argument prototype would still apply. */
9386 char tgetent(); 9395 char tgetent();
9387 9396
9388 int main() { 9397 int main() {
9389 tgetent() 9398 tgetent()
9390 ; return 0; } 9399 ; return 0; }
9391 EOF 9400 EOF
9392 if { (eval echo configure:9393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9401 if { (eval echo configure:9402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9393 rm -rf conftest* 9402 rm -rf conftest*
9394 eval "ac_cv_lib_$ac_lib_var=yes" 9403 eval "ac_cv_lib_$ac_lib_var=yes"
9395 else 9404 else
9396 echo "configure: failed program was:" >&5 9405 echo "configure: failed program was:" >&5
9397 cat conftest.$ac_ext >&5 9406 cat conftest.$ac_ext >&5
9405 echo "$ac_t""yes" 1>&6 9414 echo "$ac_t""yes" 1>&6
9406 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 9415 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
9407 else 9416 else
9408 echo "$ac_t""no" 1>&6 9417 echo "$ac_t""no" 1>&6
9409 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 9418 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
9410 echo "configure:9411: checking for tgetent in -ltermcap" >&5 9419 echo "configure:9420: checking for tgetent in -ltermcap" >&5
9411 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 9420 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
9412 9421
9413 xe_check_libs=" -ltermcap " 9422 xe_check_libs=" -ltermcap "
9414 cat > conftest.$ac_ext <<EOF 9423 cat > conftest.$ac_ext <<EOF
9415 #line 9416 "configure" 9424 #line 9425 "configure"
9416 #include "confdefs.h" 9425 #include "confdefs.h"
9417 /* Override any gcc2 internal prototype to avoid an error. */ 9426 /* Override any gcc2 internal prototype to avoid an error. */
9418 /* We use char because int might match the return type of a gcc2 9427 /* We use char because int might match the return type of a gcc2
9419 builtin and then its argument prototype would still apply. */ 9428 builtin and then its argument prototype would still apply. */
9420 char tgetent(); 9429 char tgetent();
9421 9430
9422 int main() { 9431 int main() {
9423 tgetent() 9432 tgetent()
9424 ; return 0; } 9433 ; return 0; }
9425 EOF 9434 EOF
9426 if { (eval echo configure:9427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9435 if { (eval echo configure:9436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9427 rm -rf conftest* 9436 rm -rf conftest*
9428 eval "ac_cv_lib_$ac_lib_var=yes" 9437 eval "ac_cv_lib_$ac_lib_var=yes"
9429 else 9438 else
9430 echo "configure: failed program was:" >&5 9439 echo "configure: failed program was:" >&5
9431 cat conftest.$ac_ext >&5 9440 cat conftest.$ac_ext >&5
9469 } 9478 }
9470 9479
9471 9480
9472 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 9481 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
9473 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 9482 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
9474 echo "configure:9475: checking for gpm.h" >&5 9483 echo "configure:9484: checking for gpm.h" >&5
9475 9484
9476 cat > conftest.$ac_ext <<EOF 9485 cat > conftest.$ac_ext <<EOF
9477 #line 9478 "configure" 9486 #line 9487 "configure"
9478 #include "confdefs.h" 9487 #include "confdefs.h"
9479 #include <gpm.h> 9488 #include <gpm.h>
9480 EOF 9489 EOF
9481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9482 { (eval echo configure:9483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9491 { (eval echo configure:9492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9483 ac_err=`grep -v '^ *+' conftest.out` 9492 ac_err=`grep -v '^ *+' conftest.out`
9484 if test -z "$ac_err"; then 9493 if test -z "$ac_err"; then
9485 rm -rf conftest* 9494 rm -rf conftest*
9486 eval "ac_cv_header_$ac_safe=yes" 9495 eval "ac_cv_header_$ac_safe=yes"
9487 else 9496 else
9500 with_gpm=no 9509 with_gpm=no
9501 fi 9510 fi
9502 } 9511 }
9503 test -z "$with_gpm" && { 9512 test -z "$with_gpm" && {
9504 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 9513 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
9505 echo "configure:9506: checking for Gpm_Open in -lgpm" >&5 9514 echo "configure:9515: checking for Gpm_Open in -lgpm" >&5
9506 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 9515 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
9507 9516
9508 xe_check_libs=" -lgpm " 9517 xe_check_libs=" -lgpm "
9509 cat > conftest.$ac_ext <<EOF 9518 cat > conftest.$ac_ext <<EOF
9510 #line 9511 "configure" 9519 #line 9520 "configure"
9511 #include "confdefs.h" 9520 #include "confdefs.h"
9512 /* Override any gcc2 internal prototype to avoid an error. */ 9521 /* Override any gcc2 internal prototype to avoid an error. */
9513 /* We use char because int might match the return type of a gcc2 9522 /* We use char because int might match the return type of a gcc2
9514 builtin and then its argument prototype would still apply. */ 9523 builtin and then its argument prototype would still apply. */
9515 char Gpm_Open(); 9524 char Gpm_Open();
9516 9525
9517 int main() { 9526 int main() {
9518 Gpm_Open() 9527 Gpm_Open()
9519 ; return 0; } 9528 ; return 0; }
9520 EOF 9529 EOF
9521 if { (eval echo configure:9522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9530 if { (eval echo configure:9531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9522 rm -rf conftest* 9531 rm -rf conftest*
9523 eval "ac_cv_lib_$ac_lib_var=yes" 9532 eval "ac_cv_lib_$ac_lib_var=yes"
9524 else 9533 else
9525 echo "configure: failed program was:" >&5 9534 echo "configure: failed program was:" >&5
9526 cat conftest.$ac_ext >&5 9535 cat conftest.$ac_ext >&5
9565 echo " xemacs will be linked with \"event-unixoid.o\"" 9574 echo " xemacs will be linked with \"event-unixoid.o\""
9566 fi 9575 fi
9567 9576
9568 9577
9569 echo "checking for database support" 1>&6 9578 echo "checking for database support" 1>&6
9570 echo "configure:9571: checking for database support" >&5 9579 echo "configure:9580: checking for database support" >&5
9571 9580
9572 if test "$with_database_gnudbm" != "no"; then 9581 if test "$with_database_gnudbm" != "no"; then
9573 9582
9574 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 9583 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
9575 echo "configure:9576: checking for dbm_open in -lgdbm" >&5 9584 echo "configure:9585: checking for dbm_open in -lgdbm" >&5
9576 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 9585 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
9577 9586
9578 xe_check_libs=" -lgdbm " 9587 xe_check_libs=" -lgdbm "
9579 cat > conftest.$ac_ext <<EOF 9588 cat > conftest.$ac_ext <<EOF
9580 #line 9581 "configure" 9589 #line 9590 "configure"
9581 #include "confdefs.h" 9590 #include "confdefs.h"
9582 /* Override any gcc2 internal prototype to avoid an error. */ 9591 /* Override any gcc2 internal prototype to avoid an error. */
9583 /* We use char because int might match the return type of a gcc2 9592 /* We use char because int might match the return type of a gcc2
9584 builtin and then its argument prototype would still apply. */ 9593 builtin and then its argument prototype would still apply. */
9585 char dbm_open(); 9594 char dbm_open();
9586 9595
9587 int main() { 9596 int main() {
9588 dbm_open() 9597 dbm_open()
9589 ; return 0; } 9598 ; return 0; }
9590 EOF 9599 EOF
9591 if { (eval echo configure:9592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9600 if { (eval echo configure:9601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9592 rm -rf conftest* 9601 rm -rf conftest*
9593 eval "ac_cv_lib_$ac_lib_var=yes" 9602 eval "ac_cv_lib_$ac_lib_var=yes"
9594 else 9603 else
9595 echo "configure: failed program was:" >&5 9604 echo "configure: failed program was:" >&5
9596 cat conftest.$ac_ext >&5 9605 cat conftest.$ac_ext >&5
9608 fi 9617 fi
9609 9618
9610 9619
9611 if test "$with_database_gnudbm" != "yes"; then 9620 if test "$with_database_gnudbm" != "yes"; then
9612 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9621 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9613 echo "configure:9614: checking for dbm_open" >&5 9622 echo "configure:9623: checking for dbm_open" >&5
9614 9623
9615 cat > conftest.$ac_ext <<EOF 9624 cat > conftest.$ac_ext <<EOF
9616 #line 9617 "configure" 9625 #line 9626 "configure"
9617 #include "confdefs.h" 9626 #include "confdefs.h"
9618 /* System header to define __stub macros and hopefully few prototypes, 9627 /* System header to define __stub macros and hopefully few prototypes,
9619 which can conflict with char dbm_open(); below. */ 9628 which can conflict with char dbm_open(); below. */
9620 #include <assert.h> 9629 #include <assert.h>
9621 /* Override any gcc2 internal prototype to avoid an error. */ 9630 /* Override any gcc2 internal prototype to avoid an error. */
9634 dbm_open(); 9643 dbm_open();
9635 #endif 9644 #endif
9636 9645
9637 ; return 0; } 9646 ; return 0; }
9638 EOF 9647 EOF
9639 if { (eval echo configure:9640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9648 if { (eval echo configure:9649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9640 rm -rf conftest* 9649 rm -rf conftest*
9641 eval "ac_cv_func_dbm_open=yes" 9650 eval "ac_cv_func_dbm_open=yes"
9642 else 9651 else
9643 echo "configure: failed program was:" >&5 9652 echo "configure: failed program was:" >&5
9644 cat conftest.$ac_ext >&5 9653 cat conftest.$ac_ext >&5
9670 fi 9679 fi
9671 fi 9680 fi
9672 9681
9673 if test "$with_database_dbm" != "no"; then 9682 if test "$with_database_dbm" != "no"; then
9674 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9683 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9675 echo "configure:9676: checking for dbm_open" >&5 9684 echo "configure:9685: checking for dbm_open" >&5
9676 9685
9677 cat > conftest.$ac_ext <<EOF 9686 cat > conftest.$ac_ext <<EOF
9678 #line 9679 "configure" 9687 #line 9688 "configure"
9679 #include "confdefs.h" 9688 #include "confdefs.h"
9680 /* System header to define __stub macros and hopefully few prototypes, 9689 /* System header to define __stub macros and hopefully few prototypes,
9681 which can conflict with char dbm_open(); below. */ 9690 which can conflict with char dbm_open(); below. */
9682 #include <assert.h> 9691 #include <assert.h>
9683 /* Override any gcc2 internal prototype to avoid an error. */ 9692 /* Override any gcc2 internal prototype to avoid an error. */
9696 dbm_open(); 9705 dbm_open();
9697 #endif 9706 #endif
9698 9707
9699 ; return 0; } 9708 ; return 0; }
9700 EOF 9709 EOF
9701 if { (eval echo configure:9702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9710 if { (eval echo configure:9711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9702 rm -rf conftest* 9711 rm -rf conftest*
9703 eval "ac_cv_func_dbm_open=yes" 9712 eval "ac_cv_func_dbm_open=yes"
9704 else 9713 else
9705 echo "configure: failed program was:" >&5 9714 echo "configure: failed program was:" >&5
9706 cat conftest.$ac_ext >&5 9715 cat conftest.$ac_ext >&5
9717 fi 9726 fi
9718 9727
9719 if test "$need_libdbm" != "no"; then 9728 if test "$need_libdbm" != "no"; then
9720 9729
9721 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 9730 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9722 echo "configure:9723: checking for dbm_open in -ldbm" >&5 9731 echo "configure:9732: checking for dbm_open in -ldbm" >&5
9723 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 9732 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
9724 9733
9725 xe_check_libs=" -ldbm " 9734 xe_check_libs=" -ldbm "
9726 cat > conftest.$ac_ext <<EOF 9735 cat > conftest.$ac_ext <<EOF
9727 #line 9728 "configure" 9736 #line 9737 "configure"
9728 #include "confdefs.h" 9737 #include "confdefs.h"
9729 /* Override any gcc2 internal prototype to avoid an error. */ 9738 /* Override any gcc2 internal prototype to avoid an error. */
9730 /* We use char because int might match the return type of a gcc2 9739 /* We use char because int might match the return type of a gcc2
9731 builtin and then its argument prototype would still apply. */ 9740 builtin and then its argument prototype would still apply. */
9732 char dbm_open(); 9741 char dbm_open();
9733 9742
9734 int main() { 9743 int main() {
9735 dbm_open() 9744 dbm_open()
9736 ; return 0; } 9745 ; return 0; }
9737 EOF 9746 EOF
9738 if { (eval echo configure:9739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9747 if { (eval echo configure:9748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9739 rm -rf conftest* 9748 rm -rf conftest*
9740 eval "ac_cv_lib_$ac_lib_var=yes" 9749 eval "ac_cv_lib_$ac_lib_var=yes"
9741 else 9750 else
9742 echo "configure: failed program was:" >&5 9751 echo "configure: failed program was:" >&5
9743 cat conftest.$ac_ext >&5 9752 cat conftest.$ac_ext >&5
9770 fi 9779 fi
9771 fi 9780 fi
9772 9781
9773 if test "$with_database_berkdb" != "no"; then 9782 if test "$with_database_berkdb" != "no"; then
9774 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 9783 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
9775 echo "configure:9776: checking for dbopen" >&5 9784 echo "configure:9785: checking for dbopen" >&5
9776 9785
9777 cat > conftest.$ac_ext <<EOF 9786 cat > conftest.$ac_ext <<EOF
9778 #line 9779 "configure" 9787 #line 9788 "configure"
9779 #include "confdefs.h" 9788 #include "confdefs.h"
9780 /* System header to define __stub macros and hopefully few prototypes, 9789 /* System header to define __stub macros and hopefully few prototypes,
9781 which can conflict with char dbopen(); below. */ 9790 which can conflict with char dbopen(); below. */
9782 #include <assert.h> 9791 #include <assert.h>
9783 /* Override any gcc2 internal prototype to avoid an error. */ 9792 /* Override any gcc2 internal prototype to avoid an error. */
9796 dbopen(); 9805 dbopen();
9797 #endif 9806 #endif
9798 9807
9799 ; return 0; } 9808 ; return 0; }
9800 EOF 9809 EOF
9801 if { (eval echo configure:9802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9810 if { (eval echo configure:9811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9802 rm -rf conftest* 9811 rm -rf conftest*
9803 eval "ac_cv_func_dbopen=yes" 9812 eval "ac_cv_func_dbopen=yes"
9804 else 9813 else
9805 echo "configure: failed program was:" >&5 9814 echo "configure: failed program was:" >&5
9806 cat conftest.$ac_ext >&5 9815 cat conftest.$ac_ext >&5
9817 fi 9826 fi
9818 9827
9819 if test "$need_libdb" != "no"; then 9828 if test "$need_libdb" != "no"; then
9820 9829
9821 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 9830 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
9822 echo "configure:9823: checking for dbopen in -ldb" >&5 9831 echo "configure:9832: checking for dbopen in -ldb" >&5
9823 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` 9832 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
9824 9833
9825 xe_check_libs=" -ldb " 9834 xe_check_libs=" -ldb "
9826 cat > conftest.$ac_ext <<EOF 9835 cat > conftest.$ac_ext <<EOF
9827 #line 9828 "configure" 9836 #line 9837 "configure"
9828 #include "confdefs.h" 9837 #include "confdefs.h"
9829 /* Override any gcc2 internal prototype to avoid an error. */ 9838 /* Override any gcc2 internal prototype to avoid an error. */
9830 /* We use char because int might match the return type of a gcc2 9839 /* We use char because int might match the return type of a gcc2
9831 builtin and then its argument prototype would still apply. */ 9840 builtin and then its argument prototype would still apply. */
9832 char dbopen(); 9841 char dbopen();
9833 9842
9834 int main() { 9843 int main() {
9835 dbopen() 9844 dbopen()
9836 ; return 0; } 9845 ; return 0; }
9837 EOF 9846 EOF
9838 if { (eval echo configure:9839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9847 if { (eval echo configure:9848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9839 rm -rf conftest* 9848 rm -rf conftest*
9840 eval "ac_cv_lib_$ac_lib_var=yes" 9849 eval "ac_cv_lib_$ac_lib_var=yes"
9841 else 9850 else
9842 echo "configure: failed program was:" >&5 9851 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5 9852 cat conftest.$ac_ext >&5
9857 9866
9858 fi 9867 fi
9859 if test "$with_database_berkdb" = "yes"; then 9868 if test "$with_database_berkdb" = "yes"; then
9860 for path in "db/db.h" "db.h"; do 9869 for path in "db/db.h" "db.h"; do
9861 cat > conftest.$ac_ext <<EOF 9870 cat > conftest.$ac_ext <<EOF
9862 #line 9863 "configure" 9871 #line 9872 "configure"
9863 #include "confdefs.h" 9872 #include "confdefs.h"
9864 #ifdef HAVE_INTTYPES_H 9873 #ifdef HAVE_INTTYPES_H
9865 #define __BIT_TYPES_DEFINED__ 9874 #define __BIT_TYPES_DEFINED__
9866 #include <inttypes.h> 9875 #include <inttypes.h>
9867 typedef uint8_t u_int8_t; 9876 typedef uint8_t u_int8_t;
9880 9889
9881 int main() { 9890 int main() {
9882 9891
9883 ; return 0; } 9892 ; return 0; }
9884 EOF 9893 EOF
9885 if { (eval echo configure:9886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9894 if { (eval echo configure:9895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9886 rm -rf conftest* 9895 rm -rf conftest*
9887 db_h_path="$path"; break 9896 db_h_path="$path"; break
9888 else 9897 else
9889 echo "configure: failed program was:" >&5 9898 echo "configure: failed program was:" >&5
9890 cat conftest.$ac_ext >&5 9899 cat conftest.$ac_ext >&5
9932 fi 9941 fi
9933 9942
9934 if test "$with_socks" = "yes"; then 9943 if test "$with_socks" = "yes"; then
9935 9944
9936 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 9945 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
9937 echo "configure:9938: checking for SOCKSinit in -lsocks" >&5 9946 echo "configure:9947: checking for SOCKSinit in -lsocks" >&5
9938 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 9947 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
9939 9948
9940 xe_check_libs=" -lsocks " 9949 xe_check_libs=" -lsocks "
9941 cat > conftest.$ac_ext <<EOF 9950 cat > conftest.$ac_ext <<EOF
9942 #line 9943 "configure" 9951 #line 9952 "configure"
9943 #include "confdefs.h" 9952 #include "confdefs.h"
9944 /* Override any gcc2 internal prototype to avoid an error. */ 9953 /* Override any gcc2 internal prototype to avoid an error. */
9945 /* We use char because int might match the return type of a gcc2 9954 /* We use char because int might match the return type of a gcc2
9946 builtin and then its argument prototype would still apply. */ 9955 builtin and then its argument prototype would still apply. */
9947 char SOCKSinit(); 9956 char SOCKSinit();
9948 9957
9949 int main() { 9958 int main() {
9950 SOCKSinit() 9959 SOCKSinit()
9951 ; return 0; } 9960 ; return 0; }
9952 EOF 9961 EOF
9953 if { (eval echo configure:9954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9962 if { (eval echo configure:9963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9954 rm -rf conftest* 9963 rm -rf conftest*
9955 eval "ac_cv_lib_$ac_lib_var=yes" 9964 eval "ac_cv_lib_$ac_lib_var=yes"
9956 else 9965 else
9957 echo "configure: failed program was:" >&5 9966 echo "configure: failed program was:" >&5
9958 cat conftest.$ac_ext >&5 9967 cat conftest.$ac_ext >&5
10164 10173
10165 10174
10166 10175
10167 10176
10168 10177
10169 if test "x${package_path}" = "xNONE" ; then 10178 if test "${package_path}" = "NONE" ; then
10170 package_path="${prefix}/lib/xemacs/packages:~/.xemacs" 10179 package_path="~/.xemacs:${prefix}/lib/xemacs/packages"
10171 fi 10180 fi
10172 package_path=`echo $package_path | sed 'y/ /:/'` 10181 package_path=`echo $package_path | sed 'y/ /:/'`
10173 { test "$extra_verbose" = "yes" && cat << EOF 10182 { test "$extra_verbose" = "yes" && cat << EOF
10174 Defining PACKAGE_PATH = "$package_path" 10183 Defining PACKAGE_PATH = "$package_path"
10175 EOF 10184 EOF