3 #### Configuration script for XEmacs. Largely divergent from FSF.
4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.13
6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing.
10 #### Copyright (C) 2000, 2001 Martin Buchholz.
11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
13 ### Don't edit this script!
14 ### This script was automatically generated by the `autoconf' program
15 ### from the file `./configure.in'.
16 ### To rebuild it, execute the command
18 ### in the this directory. You must have autoconf version 2.13 or later.
20 ### This file is part of XEmacs.
22 ### XEmacs is free software; you can redistribute it and/or modify it
23 ### under the terms of the GNU General Public License as published by
24 ### the Free Software Foundation; either version 2, or (at your
25 ### option) any later version.
27 ### XEmacs is distributed in the hope that it will be useful, but
28 ### WITHOUT ANY WARRANTY; without even the implied warranty of
29 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
30 ### General Public License for more details.
32 ### You should have received a copy of the GNU General Public License
33 ### along with XEmacs; see the file COPYING. If not, write to the Free
34 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
37 ### For usage, run `./configure --help'
38 ### For more detailed information on building and installing XEmacs,
39 ### read the file `INSTALL'.
41 ### If configure succeeds, it leaves its status in config.status.
42 ### A log of configuration tests can be found in config.log.
43 ### If configure fails after disturbing the status quo,
44 ### config.status is removed.
47 --with-x use the X Window System"
51 if test -n "$ZSH_VERSION"; then
52 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
53 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
54 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
55 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
56 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
57 elif test -n "$BASH_VERSION"; then
61 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
72 program_transform_name=s,x,x,
83 SHELL=${CONFIG_SHELL-/bin/sh}
86 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
88 # File descriptor usage:
91 # 2 errors and warnings
92 # 3 some systems may open it to /dev/tty
93 # 4 used on the Kubota Titan
94 # 6 checking for... messages and results
95 # 5 compiler messages saved in config.log
96 if test "$silent" = yes; then
104 This file contains any messages produced by compilers while
105 running configure, to aid debugging if configure makes a mistake.
108 # Strip out --no-create and --no-recursion so they do not pile up.
109 # Also quote any args containing shell metacharacters.
114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
115 | --no-cr | --no-c) ;;
116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
118 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
119 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
120 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
125 # Only set these to C if already set. These must not be set unconditionally
126 # because not all systems understand e.g. LANG=C (notably SCO).
127 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
128 # Non-C LC_CTYPE values break the ctype check.
129 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
130 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
131 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
132 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
135 rm -rf conftest* confdefs.h
136 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
139 # A filename unique to this package, relative to the directory that
140 # configure is in, which we can look for to find out if srcdir is correct.
141 ac_unique_file=src/lisp.h
143 # Find the source files, if location was not specified.
144 if test -z "$srcdir"; then
145 ac_srcdir_defaulted=yes
146 # Try the directory containing this script, then its parent.
148 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
149 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
151 if test ! -r $srcdir/$ac_unique_file; then
155 ac_srcdir_defaulted=no
157 if test ! -r $srcdir/$ac_unique_file; then
158 if test "$ac_srcdir_defaulted" = yes; then
159 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
161 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
164 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
166 # Prefer explicitly selected file to automatically selected ones.
167 if test -z "$CONFIG_SITE"; then
168 if test "x$prefix" != xNONE; then
169 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
171 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
174 for ac_site_file in $CONFIG_SITE; do
175 if test -r "$ac_site_file"; then
176 echo "loading site script $ac_site_file"
183 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
184 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
185 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
186 ac_cpp='$CPP '"$xe_cppflags"
187 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
188 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
193 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
194 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
195 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
202 ac_n= ac_c='\c' ac_t=
206 progname="`echo $0 | sed 's:^\./\./:\./:'`"
209 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
210 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
213 exec_prefix='${prefix}'
214 bindir='${exec_prefix}/bin'
215 datadir='${prefix}/lib'
216 statedir='${prefix}/lib'
217 libdir='${exec_prefix}/lib'
218 mandir='${prefix}/man/man1'
219 inststaticdir='${PROGNAME}'
220 instvardir='${PROGNAME}-${version}'
221 infodir='${datadir}/${instvardir}/info'
224 lispdir='${datadir}/${instvardir}/lisp'
225 moduledir='${datadir}/${instvardir}/${configuration}/modules'
226 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
227 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
228 pkgdir='${datadir}/${instvardir}/lisp'
230 etcdir='${datadir}/${instvardir}/etc'
231 archlibdir='${datadir}/${instvardir}/${configuration}'
232 docdir='${archlibdir}'
235 with_site_modules='yes'
241 cpp='' cppflags='' libs='' ldflags=''
247 with_system_malloc='default'
248 with_dlmalloc='default'
263 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268 | --no-cr | --no-c) ;;
269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
272 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
273 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
277 while test $# != 0; do
280 --no-create|--no-recursion) ;;
284 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
285 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
289 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
290 val="yes" valomitted=yes
295 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
297 case "${valomitted}-${opt}" in yes-without_* )
298 opt=`echo $opt | sed 's/without/with/'`
299 valomitted="no" val="no" ;;
306 with_site_modules | \
356 memory_usage_stats | \
357 with_clash_detection | \
361 y | ye | yes ) val=yes ;;
363 * ) (echo "$progname: Usage error:"
364 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
365 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
367 eval "$opt=\"$val\"" ;;
385 site_runtime_libraries )
386 if test "$valomitted" = "yes" ; then
387 if test "$#" = 0 ; then
388 (echo "$progname: Usage error:"
389 echo " " "The \`--$optname' option requires a value."
390 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
399 with_debug_malloc | use_debug_malloc | \
400 with_system_malloc | use_system_malloc )
402 y | ye | yes ) val=yes ;;
404 d | de | def | defa | defau | defaul | default ) val=default ;;
405 * ) (echo "$progname: Usage error:"
406 echo " " "The \`--$optname' option requires one of these values:
407 \`yes', \`no', or \`default'."
408 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
410 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
415 with_database_berkdb=no
417 with_database_gdbm=no
418 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
421 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
422 d | db | dbm ) with_database_dbm=yes ;;
423 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
424 * ) (echo "$progname: Usage error:"
425 echo " " "The \`--$optname' option value
426 must be either \`no' or a comma-separated list
427 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
428 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
431 if test "$with_database_dbm" = "yes" -a \
432 "$with_database_gdbm" = "yes"; then
433 (echo "$progname: Usage error:"
434 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
435 with the \`--$optname' option."
436 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
441 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
443 n | no | non | none ) new_sdefault=no ;;
444 a | al | all | both ) new_sdefault=yes ;;
446 native ) with_native_sound=yes ;;
447 nonative ) with_native_sound=no ;;
449 nas ) with_nas_sound=yes ;;
450 nonas ) with_nas_sound=no ;;
452 esd ) with_esd_sound=yes ;;
453 noesd ) with_esd_sound=no ;;
455 * ) bogus_sound=yes ;;
457 if test "$bogus_sound" -o \
458 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
459 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
460 (echo "$progname: Usage error:"
461 echo " " "Valid types for the \`--$optname' option are:
463 The default is to autodetect all sound support."
464 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
465 elif test -n "$new_sdefault" ; then
466 with_native_sound=$new_sdefault
467 with_nas_sound=$new_sdefault
468 with_esd_sound=$new_sdefault
469 new_sdefault= # reset this
477 xa | xaw ) val=xaw ;;
478 3 | 3d | xaw3d ) val=3d ;;
479 ne | nex | next | naxtaw) val=next ;;
480 9 | 95 | xaw95 ) val=95 ;;
481 xp | xpm | xawxpm ) val=xpm ;;
482 * ) (echo "$progname: Usage error:"
483 echo " " "The \`--$optname' option must have one of these values:
484 \`xaw', \`3d', \`next', \`95', or \`xpm'."
485 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
492 y | ye | yes ) val=yes ;;
493 n | no | non | none ) val=no ;;
494 x | xl | xli | xlib ) val=xlib ;;
495 m | mo | mot | moti | motif ) val=motif ;;
496 * ) (echo "$progname: Usage error:"
497 echo " " "The \`--$optname' option must have one of these values:
498 \`motif', \`xlib', \`yes', or \`no'."
499 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
508 file | dot ) val=file ;;
509 locking ) val=locking ;;
510 * ) (echo "$progname: Usage error:"
511 echo " " "The \`--$optname' option must have one of these values:
512 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
513 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
520 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
522 n | no | non | none ) new_default=no ;;
523 a | al | all ) new_default=yes ;;
525 extents ) error_check_extents=yes ;;
526 noextents ) error_check_extents=no ;;
528 typecheck ) error_check_typecheck=yes ;;
529 notypecheck ) error_check_typecheck=no ;;
531 bufpos ) error_check_bufpos=yes ;;
532 nobufpos ) error_check_bufpos=no ;;
534 gc ) error_check_gc=yes ;;
535 nogc ) error_check_gc=no ;;
537 malloc ) error_check_malloc=yes ;;
538 nomalloc ) error_check_malloc=no ;;
540 byte_code ) error_check_byte_code=yes ;;
541 nobyte_code ) error_check_byte_code=no ;;
543 glyphs ) error_check_glyphs=yes ;;
544 noglyphs ) error_check_glyphs=no ;;
546 * ) bogus_error_check=yes ;;
548 if test "$bogus_error_check" -o \
549 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
550 if test "$error_check_default" = yes ; then
551 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
553 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
555 (echo "$progname: Usage error:"
556 echo " " "Valid types for the \`--$optname' option are:
558 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
559 elif test -n "$new_default" ; then
560 error_check_extents=$new_default
561 error_check_typecheck=$new_default
562 error_check_bufpos=$new_default
563 error_check_gc=$new_default
564 error_check_malloc=$new_default
565 error_check_byte_code=$new_default
566 error_check_glyphs=$new_default
567 new_default= # reset this
574 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
575 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
576 archlibdir | docdir | package_path )
577 if test "$valomitted" = "yes"; then
578 if test "$#" = 0; then
579 (echo "$progname: Usage error:"
580 echo " " "The \`--$optname' option requires a value."
581 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
588 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
589 Defining EXEC_PREFIX_USER_DEFINED
591 cat >> confdefs.h <<\EOF
592 #define EXEC_PREFIX_USER_DEFINED 1
596 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
597 Defining LISPDIR_USER_DEFINED
599 cat >> confdefs.h <<\EOF
600 #define LISPDIR_USER_DEFINED 1
604 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
605 Defining SITELISPDIR_USER_DEFINED
607 cat >> confdefs.h <<\EOF
608 #define SITELISPDIR_USER_DEFINED 1
612 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
613 Defining MODULEDIR_USER_DEFINED
615 cat >> confdefs.h <<\EOF
616 #define MODULEDIR_USER_DEFINED 1
620 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
621 Defining ETCDIR_USER_DEFINED
623 cat >> confdefs.h <<\EOF
624 #define ETCDIR_USER_DEFINED 1
628 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
629 Defining INFODIR_USER_DEFINED
631 cat >> confdefs.h <<\EOF
632 #define INFODIR_USER_DEFINED 1
636 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
637 Defining INFOPATH_USER_DEFINED
639 cat >> confdefs.h <<\EOF
640 #define INFOPATH_USER_DEFINED 1
644 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
645 Defining PACKAGE_PATH_USER_DEFINED
647 cat >> confdefs.h <<\EOF
648 #define PACKAGE_PATH_USER_DEFINED 1
653 { test "$extra_verbose" = "yes" && cat << \EOF
654 Defining INFODIR_USER_DEFINED
656 cat >> confdefs.h <<\EOF
657 #define INFODIR_USER_DEFINED 1
661 { test "$extra_verbose" = "yes" && cat << \EOF
662 Defining LISPDIR_USER_DEFINED
664 cat >> confdefs.h <<\EOF
665 #define LISPDIR_USER_DEFINED 1
669 { test "$extra_verbose" = "yes" && cat << \EOF
670 Defining MODULEDIR_USER_DEFINED
672 cat >> confdefs.h <<\EOF
673 #define MODULEDIR_USER_DEFINED 1
677 { test "$extra_verbose" = "yes" && cat << \EOF
678 Defining ETCDIR_USER_DEFINED
680 cat >> confdefs.h <<\EOF
681 #define ETCDIR_USER_DEFINED 1
685 { test "$extra_verbose" = "yes" && cat << \EOF
686 Defining DOCDIR_USER_DEFINED
688 cat >> confdefs.h <<\EOF
689 #define DOCDIR_USER_DEFINED 1
693 { test "$extra_verbose" = "yes" && cat << \EOF
694 Defining ARCHLIBDIR_USER_DEFINED
696 cat >> confdefs.h <<\EOF
697 #define ARCHLIBDIR_USER_DEFINED 1
701 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
702 Defining DOCDIR_USER_DEFINED
704 cat >> confdefs.h <<\EOF
705 #define DOCDIR_USER_DEFINED 1
709 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
710 Defining ARCHLIBDIR_USER_DEFINED
712 cat >> confdefs.h <<\EOF
713 #define ARCHLIBDIR_USER_DEFINED 1
722 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
725 "with_scrollbars" | \
729 l | lu | luc | luci | lucid ) val=lucid ;;
730 m | mo | mot | moti | motif ) val=motif ;;
731 a | at | ath | athe | athen | athena ) val=athena ;;
732 n | no | non | none ) val=no ;;
733 y | ye | yes ) val=yes ;;
734 m | ms | msw ) val=msw ;;
735 * ) (echo "$progname: Usage error:"
736 echo " " "The \`--$optname' option must have one of these values:
737 \`lucid', \`motif', \`athena', \`yes', or \`no'."
738 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
743 "use_minimal_tagbits" | \
744 "use_indexed_lrecord_implementation" | \
746 "const_is_losing" | \
748 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
751 * ) (echo "$progname: Usage error:"
752 echo " " "Unrecognized option: $arg"
753 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
758 *-*-*) configuration="$arg" ;;
760 *) (echo "$progname: Usage error:"
761 echo " " "Unrecognized argument: $arg"
762 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
768 test -n "$cpp" && CPP="$cpp"
769 test -n "$cppflags" && CPPFLAGS="$cppflags"
770 test -n "$libs" && LIBS="$libs"
771 test -n "$ldflags" && LDFLAGS="$ldflags"
773 eval set x "$quoted_arguments"; shift
775 test "$extra_verbose" = "yes" && verbose=yes
777 test -n "$with_x" && with_x11="$with_x"
779 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
780 test "$with_system_malloc" = "default" && with_system_malloc=yes
785 if test "$with_cde $with_tooltalk" = "yes no"; then
786 (echo "$progname: Usage error:"
787 echo " " "--with-cde requires --with-tooltalk"
788 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
789 elif test "$with_tooltalk" = "no" ; then with_cde=no
790 elif test "$with_cde" = "yes"; then with_tooltalk=yes
797 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
798 if test -f "$dir/src/lisp.h" -a \
799 -f "$dir/lisp/version.el" ; then
804 if test -z "$srcdir" ; then
805 (echo "$progname: Usage error:"
806 echo " " "Neither the current directory nor its parent seem to
807 contain the XEmacs sources. If you do not want to build XEmacs in its
808 source tree, you should run \`$progname' in the directory in which
809 you wish to build XEmacs, using the \`--srcdir' option to say where the
810 sources may be found."
811 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
816 if test ! -f "$srcdir/src/lisp.h" -o \
817 ! -f "$srcdir/lisp/version.el" ; then
818 (echo "$progname: Usage error:"
819 echo " " "The directory specified with the \`--srcdir' option,
820 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
821 either run the \`$progname' script at the top of the XEmacs source
822 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
823 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
828 if test -z "$configuration"; then
829 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
830 if test -z "$configuration"; then
831 (echo "$progname: Usage error:"
832 echo " " "XEmacs has not been ported to this host type.
833 Try explicitly specifying the CONFIGURATION when rerunning configure."
834 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
838 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
839 echo "configure:840: checking whether ln -s works" >&5
842 if ln -s X conftestdata 2>/dev/null
845 ac_cv_prog_LN_S="ln -s"
849 LN_S="$ac_cv_prog_LN_S"
850 if test "$ac_cv_prog_LN_S" = "ln -s"; then
851 echo "$ac_t""yes" 1>&6
853 echo "$ac_t""no" 1>&6
857 for dir in lisp etc man info tests; do
858 if test ! -d "$dir" ; then
859 echo Making symbolic link to "$srcdir/$dir"
860 ${LN_S} "$srcdir/$dir" "$dir"
865 absolute_pwd="`pwd`";
866 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
868 else blddir="$absolute_pwd"; if test -d "/net"; then
869 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
870 blddir=`echo "$blddir" | \
871 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
878 . ) srcdir="$blddir" ;;
879 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
880 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
881 srcdir=`echo "$srcdir" | \
882 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
886 if test `pwd` != `sh -c cd $srcdir && pwd` \
887 && test -f "$srcdir/src/config.h"; then
888 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
889 echo " as a build directory right now; it has been configured in its own"
890 echo " right. To configure in another directory as well, you MUST"
891 echo " use GNU make. If you do not have GNU make, then you must"
892 echo " now do \`make distclean' in $srcdir,"
893 echo " and then run $progname again.") >&2
894 extrasub='/^VPATH[ ]*=/c\
900 vpath %.in $(srcdir)'
903 . "$srcdir/version.sh" || exit 1;
904 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
905 : "${extra_verbose=$beta}"
906 version="${emacs_major_version}.${emacs_minor_version}"
907 { test "$extra_verbose" = "yes" && cat << EOF
908 Defining EMACS_MAJOR_VERSION = $emacs_major_version
910 cat >> confdefs.h <<EOF
911 #define EMACS_MAJOR_VERSION $emacs_major_version
915 { test "$extra_verbose" = "yes" && cat << EOF
916 Defining EMACS_MINOR_VERSION = $emacs_minor_version
918 cat >> confdefs.h <<EOF
919 #define EMACS_MINOR_VERSION $emacs_minor_version
923 if test -n "$emacs_beta_version" ; then
924 if test "$beta" = "yes"; then
925 version="${version}-b${emacs_beta_version}"
926 { test "$extra_verbose" = "yes" && cat << EOF
927 Defining EMACS_BETA_VERSION = $emacs_beta_version
929 cat >> confdefs.h <<EOF
930 #define EMACS_BETA_VERSION $emacs_beta_version
935 version="${version}.${emacs_beta_version}"
936 { test "$extra_verbose" = "yes" && cat << EOF
937 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
939 cat >> confdefs.h <<EOF
940 #define EMACS_PATCH_LEVEL $emacs_beta_version
946 { test "$extra_verbose" = "yes" && cat << EOF
947 Defining XEMACS_CODENAME = "$xemacs_codename"
949 cat >> confdefs.h <<EOF
950 #define XEMACS_CODENAME "$xemacs_codename"
954 { test "$extra_verbose" = "yes" && cat << EOF
955 Defining EMACS_VERSION = "$version"
957 cat >> confdefs.h <<EOF
958 #define EMACS_VERSION "$version"
963 if test "$with_infodock" = "yes"; then
964 if test ! -f ../../ID-INSTALL; then
965 echo "Cannot build InfoDock without InfoDock sources"
970 if test "$with_infodock" = "yes"; then
971 { test "$extra_verbose" = "yes" && cat << EOF
972 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
974 cat >> confdefs.h <<EOF
975 #define INFODOCK_MAJOR_VERSION $infodock_major_version
979 { test "$extra_verbose" = "yes" && cat << EOF
980 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
982 cat >> confdefs.h <<EOF
983 #define INFODOCK_MINOR_VERSION $infodock_minor_version
987 { test "$extra_verbose" = "yes" && cat << EOF
988 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
990 cat >> confdefs.h <<EOF
991 #define INFODOCK_BUILD_VERSION $infodock_build_version
995 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
997 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1002 { test "$extra_verbose" = "yes" && cat << EOF
1003 Defining EMACS_PROGNAME = "$PROGNAME"
1005 cat >> confdefs.h <<EOF
1006 #define EMACS_PROGNAME "$PROGNAME"
1011 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1012 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1013 Defining ERROR_CHECK_EXTENTS
1015 cat >> confdefs.h <<\EOF
1016 #define ERROR_CHECK_EXTENTS 1
1020 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1021 Defining ERROR_CHECK_TYPECHECK
1023 cat >> confdefs.h <<\EOF
1024 #define ERROR_CHECK_TYPECHECK 1
1028 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1029 Defining ERROR_CHECK_BUFPOS
1031 cat >> confdefs.h <<\EOF
1032 #define ERROR_CHECK_BUFPOS 1
1036 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1037 Defining ERROR_CHECK_GC
1039 cat >> confdefs.h <<\EOF
1040 #define ERROR_CHECK_GC 1
1044 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1045 Defining ERROR_CHECK_MALLOC
1047 cat >> confdefs.h <<\EOF
1048 #define ERROR_CHECK_MALLOC 1
1052 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1053 Defining ERROR_CHECK_BYTE_CODE
1055 cat >> confdefs.h <<\EOF
1056 #define ERROR_CHECK_BYTE_CODE 1
1060 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1061 Defining ERROR_CHECK_GLYPHS
1063 cat >> confdefs.h <<\EOF
1064 #define ERROR_CHECK_GLYPHS 1
1068 if test "${debug:=$beta}" = "yes"; then
1069 use_assertions=yes memory_usage_stats=yes
1070 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1071 echo " xemacs will be linked with \"debug.o\""
1073 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1074 echo " xemacs will be linked with \"tests.o\""
1076 { test "$extra_verbose" = "yes" && cat << \EOF
1077 Defining DEBUG_XEMACS
1079 cat >> confdefs.h <<\EOF
1080 #define DEBUG_XEMACS 1
1085 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1086 Defining USE_ASSERTIONS
1088 cat >> confdefs.h <<\EOF
1089 #define USE_ASSERTIONS 1
1093 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1094 Defining MEMORY_USAGE_STATS
1096 cat >> confdefs.h <<\EOF
1097 #define MEMORY_USAGE_STATS 1
1103 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1104 echo "configure:1105: checking "host system type"" >&5
1105 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1106 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1107 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1108 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1109 echo "$ac_t""$configuration" 1>&6
1117 case "$canonical" in
1118 sparc-*-* ) machine=sparc ;;
1119 alpha*-*-* ) machine=alpha ;;
1120 vax-*-* ) machine=vax ;;
1121 mips-dec-* ) machine=pmax ;;
1122 mips-sgi-irix6* ) machine=iris6d ;;
1123 mips-sgi-* ) machine=iris4d ;;
1124 mips*-linux ) machine=mips ;;
1125 romp-ibm-* ) machine=ibmrt ;;
1126 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1127 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1128 powerpc*-* ) machine=powerpc ;;
1129 hppa-*-* ) machine=hp800 ;;
1130 m88k-dg-* ) machine=aviion ;;
1131 m68*-sony-* ) machine=news ;;
1132 mips-sony-* ) machine=news-risc ;;
1133 clipper-* ) machine=clipper ;;
1134 arm* ) machine=arm ;;
1135 ns32k-* ) machine=ns32000 ;;
1138 case "$canonical" in
1139 *-*-linux* ) opsys=linux ;;
1140 *-*-netbsd* ) opsys=netbsd ;;
1141 *-*-openbsd* ) opsys=openbsd ;;
1142 *-*-nextstep* ) opsys=nextstep ;;
1143 *-*-vms ) opsys=vms ;;
1145 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1146 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1147 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1148 *-dec-osf3* ) opsys=decosf3-1 ;;
1149 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1151 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1152 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1153 *-*-ultrix* ) opsys=ultrix4-3 ;;
1155 *-*-aix3.1* ) opsys=aix3-1 ;;
1156 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1157 *-*-aix3* ) opsys=aix3-2 ;;
1158 *-*-aix4.0* ) opsys=aix4 ;;
1159 *-*-aix4.1* ) opsys=aix4-1 ;;
1160 *-*-aix4* ) opsys=aix4-2 ;;
1162 *-gnu* ) opsys=gnu ;;
1163 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1164 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1165 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1166 *-*-aos4.2 ) opsys=bsd4-2 ;;
1167 *-*-aos* ) opsys=bsd4-3 ;;
1168 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1169 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1170 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1171 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1172 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1173 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1174 if test -z "$NON_GNU_CPP" ; then
1175 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1176 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1180 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1181 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1184 case "$canonical" in
1187 case "$canonical" in
1188 i[3-9]86-*-netbsd*) machine=intel386 ;;
1189 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1190 machine=hp9000s300 ;;
1191 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1192 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1197 case "${canonical}" in
1198 i386-*-openbsd*) machine=intel386 ;;
1199 m68k-*-openbsd*) machine=hp9000s300 ;;
1200 mipsel-*-openbsd*) machine=pmax ;;
1204 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1205 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1207 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1208 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1210 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1212 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1214 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1216 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1218 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1220 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1221 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1222 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1225 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1227 *-convex-bsd* | *-convex-convexos* )
1228 machine=convex opsys=bsd4-3
1229 NON_GNU_CPP="cc -E -P"
1232 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1234 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1235 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1236 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1237 m88k-dg-dgux* ) opsys=dgux ;;
1239 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1240 m88k-motorola-sysv4* )
1241 machine=delta88k opsys=usg5-4-2
1243 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1245 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1246 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1248 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1250 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1251 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1252 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1255 case "`uname -r`" in
1256 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1257 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1259 NON_GNU_CPP="/lib/cpp"
1261 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1262 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1264 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1266 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1269 case "$canonical" in
1270 m68* ) machine=hp9000s300 ;;
1271 hppa* ) machine=hp800 ;;
1274 case "$canonical" in
1275 *-hp-hpux7* ) opsys=hpux ;;
1276 *-hp-hpux8* ) opsys=hpux8 ;;
1277 *-hp-hpux9* ) opsys=hpux9 ;;
1278 *-hp-hpux10* ) opsys=hpux10 ;;
1279 *-hp-hpux11* ) opsys=hpux11 ;;
1283 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1284 echo " xemacs will be linked with \"strcat.o\""
1287 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1288 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1289 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1291 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1294 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1295 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1297 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1298 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1299 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1300 romp-ibm-aos* ) opsys=bsd4-3 ;;
1301 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1302 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1304 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1305 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1307 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1309 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1311 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1313 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1315 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1317 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1319 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1321 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1323 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1325 mips-mips-usg* ) machine=mips4 ;;
1328 NON_GNU_CC="cc -systype bsd43"
1329 NON_GNU_CPP="cc -systype bsd43 -E"
1330 case "$canonical" in
1331 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1332 mips-mips-riscos5* ) opsys=riscos5 ;;
1335 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1336 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1338 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1340 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1342 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1343 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1345 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1347 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1349 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1351 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1353 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1354 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1356 mips-siemens-sysv* | mips-sni-sysv*)
1357 machine=mips-siemens opsys=usg5-4
1358 NON_GNU_CC=/usr/ccs/bin/cc
1359 NON_GNU_CPP=/usr/ccs/lib/cpp
1364 NON_GNU_CC=/usr/ccs/bin/cc
1365 NON_GNU_CPP=/usr/ccs/lib/cpp
1368 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1369 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1370 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1371 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1372 mips-sgi-irix6* ) opsys=irix6-0 ;;
1373 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1374 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1375 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1376 mips-sgi-irix* ) opsys=irix5-0 ;;
1378 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1379 *-sony-news* ) opsys=newsos5 ;;
1381 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1383 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1384 case "$canonical" in
1385 m68*-sunos1* ) machine=sun1 ;;
1386 m68*-sunos2* ) machine=sun2 ;;
1387 m68* ) machine=sun3 ;;
1388 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1389 i*86-*-* ) machine=intel386 ;;
1390 rs6000* ) machine=rs6000 ;;
1393 case "$canonical" in *-sunos5*)
1394 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1397 case "$canonical" in
1399 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1402 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1406 case "$canonical" in
1409 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1410 { test "$extra_verbose" = "yes" && cat << EOF
1411 Defining OS_RELEASE = $os_release
1413 cat >> confdefs.h <<EOF
1414 #define OS_RELEASE $os_release
1419 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1420 *-sunos4.0* ) opsys=sunos4-0 ;;
1421 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1422 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1423 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1424 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1425 *-mach* ) opsys=mach-bsd4-3 ;;
1429 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1431 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1434 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1436 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1437 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1439 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1441 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1443 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1444 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1446 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1448 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1451 case "$canonical" in
1452 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1453 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1454 *-mach* ) opsys=mach-bsd4-3 ;;
1458 ns16k-whitechapel-* ) machine=mg1 ;;
1460 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1464 case "$canonical" in
1465 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1466 *-isc2.2* ) opsys=isc2-2 ;;
1467 *-isc4.0* ) opsys=isc4-0 ;;
1468 *-isc4.* ) opsys=isc4-1
1469 GCC_TEST_OPTIONS=-posix
1470 NON_GCC_TEST_OPTIONS=-Xp
1472 *-isc* ) opsys=isc3-0 ;;
1473 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1474 *-esix* ) opsys=esix ;;
1475 *-mach* ) opsys=mach-bsd4-3 ;;
1476 *-xenix* ) opsys=xenix ;;
1477 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1478 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1479 *-bsdi4* ) opsys=bsdos4 ;;
1480 *-bsdi3* ) opsys=bsdos3 ;;
1481 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1482 *-bsdi2* ) opsys=bsdos2 ;;
1483 *-sco3.2v5* ) opsys=sco5 ;;
1484 *-sysv5* ) opsys=sco7 ;;
1485 *-386bsd* ) opsys=386bsd ;;
1486 *-freebsd* ) opsys=freebsd ;;
1487 *-nextstep* ) opsys=nextstep ;;
1488 *-pc-cygwin* ) opsys=cygwin32 ;;
1489 *-pc-mingw* ) opsys=mingw32 ;
1490 test -z "$with_tty" && with_tty="no";;
1494 m68k-*-linux* ) machine=m68k opsys=linux ;;
1498 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1499 test -z "$opsys" && opsys=`echo $canonical | sed 's/^^-*-^-*-//'`
1501 if test -r "${srcdir}/src/m/${machine}.h"; then
1502 machfile="m/${machine}.h"
1503 { test "$extra_verbose" = "yes" && cat << EOF
1504 Defining config_machfile = "$machfile"
1506 cat >> confdefs.h <<EOF
1507 #define config_machfile "$machfile"
1512 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1513 echo "Using configure-time autodetection only."
1516 if test -r "${srcdir}/src/s/${opsys}.h"; then
1517 opsysfile="s/${opsys}.h"
1518 { test "$extra_verbose" = "yes" && cat << EOF
1519 Defining config_opsysfile = "$opsysfile"
1521 cat >> confdefs.h <<EOF
1522 #define config_opsysfile "$opsysfile"
1527 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1528 echo "Using configure-time autodetection only."
1532 if test -z "$dynamic"; then
1534 hpux* | sunos4* ) dynamic=no ;;
1538 if test "$dynamic" = "yes"; then
1540 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1541 decosf* ) ld_call_shared="-call_shared" ;;
1543 else case "$opsys" in
1545 echo "Static linking is not supported on Solaris 2."
1546 echo "Rerun configure without specifying --dynamic=no."
1548 linux ) ld_call_shared="-Bstatic" ;;
1549 decosf* ) ld_call_shared="-non_shared" ;;
1553 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1555 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1556 { test "$extra_verbose" = "yes" && cat << EOF
1557 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1559 cat >> confdefs.h <<EOF
1560 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1566 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1567 if test "$with_workshop $with_tooltalk" = "yes no"; then
1568 (echo "$progname: Usage error:"
1569 echo " " "--with-workshop requires --with-tooltalk"
1570 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1571 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1572 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1575 if test "$with_workshop" = "yes"; then
1576 { test "$extra_verbose" = "yes" && cat << \EOF
1579 cat >> confdefs.h <<\EOF
1584 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1585 echo " xemacs will be linked with \"sunpro.o\""
1589 if test "$with_clash_detection" != "no"; then
1590 { test "$extra_verbose" = "yes" && cat << \EOF
1591 Defining CLASH_DETECTION
1593 cat >> confdefs.h <<\EOF
1594 #define CLASH_DETECTION 1
1598 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1599 echo " xemacs will be linked with \"filelock.o\""
1603 test -n "$compiler" && CC="$compiler"
1604 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1607 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1608 if test "${CFLAGS-unset}" != unset
1609 then cflags_specified=yes;
1610 else cflags_specified=no;
1613 xe_save_CFLAGS="$CFLAGS"
1615 # Extract the first word of "gcc", so it can be a program name with args.
1616 set dummy gcc; ac_word=$2
1617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1618 echo "configure:1619: checking for $ac_word" >&5
1620 if test -n "$CC"; then
1621 ac_cv_prog_CC="$CC" # Let the user override the test.
1623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1625 for ac_dir in $ac_dummy; do
1626 test -z "$ac_dir" && ac_dir=.
1627 if test -f $ac_dir/$ac_word; then
1635 if test -n "$CC"; then
1636 echo "$ac_t""$CC" 1>&6
1638 echo "$ac_t""no" 1>&6
1641 if test -z "$CC"; then
1642 # Extract the first word of "cc", so it can be a program name with args.
1643 set dummy cc; ac_word=$2
1644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1645 echo "configure:1646: checking for $ac_word" >&5
1647 if test -n "$CC"; then
1648 ac_cv_prog_CC="$CC" # Let the user override the test.
1650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1653 for ac_dir in $ac_dummy; do
1654 test -z "$ac_dir" && ac_dir=.
1655 if test -f $ac_dir/$ac_word; then
1656 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1657 ac_prog_rejected=yes
1665 if test $ac_prog_rejected = yes; then
1666 # We found a bogon in the path, so make sure we never use it.
1667 set dummy $ac_cv_prog_CC
1669 if test $# -gt 0; then
1670 # We chose a different compiler from the bogus one.
1671 # However, it has the same basename, so the bogon will be chosen
1672 # first if we set CC to just the basename; use the full file name.
1674 set dummy "$ac_dir/$ac_word" "$@"
1681 if test -n "$CC"; then
1682 echo "$ac_t""$CC" 1>&6
1684 echo "$ac_t""no" 1>&6
1687 if test -z "$CC"; then
1688 case "`uname -s`" in
1690 # Extract the first word of "cl", so it can be a program name with args.
1691 set dummy cl; ac_word=$2
1692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1693 echo "configure:1694: checking for $ac_word" >&5
1695 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1700 for ac_dir in $ac_dummy; do
1701 test -z "$ac_dir" && ac_dir=.
1702 if test -f $ac_dir/$ac_word; then
1710 if test -n "$CC"; then
1711 echo "$ac_t""$CC" 1>&6
1713 echo "$ac_t""no" 1>&6
1718 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1721 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1722 echo "configure:1723: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1725 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1726 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1727 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1728 ac_cpp='$CPP '"$xe_cppflags"
1729 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1730 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1733 cat > conftest.$ac_ext << EOF
1735 #line 1736 "configure"
1736 #include "confdefs.h"
1740 if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1741 ac_cv_prog_cc_works=yes
1742 # If we can't run a trivial program, we are probably using a cross compiler.
1743 if (./conftest; exit) 2>/dev/null; then
1744 ac_cv_prog_cc_cross=no
1746 ac_cv_prog_cc_cross=yes
1749 echo "configure: failed program was:" >&5
1750 cat conftest.$ac_ext >&5
1751 ac_cv_prog_cc_works=no
1755 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1756 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1757 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1758 ac_cpp='$CPP '"$xe_cppflags"
1759 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1760 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1763 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1764 if test $ac_cv_prog_cc_works = no; then
1765 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1767 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1768 echo "configure:1769: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1769 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1770 cross_compiling=$ac_cv_prog_cc_cross
1772 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1773 echo "configure:1774: checking whether we are using GNU C" >&5
1775 cat > conftest.c <<EOF
1780 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1786 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1788 if test $ac_cv_prog_gcc = yes; then
1794 ac_test_CFLAGS="${CFLAGS+set}"
1795 ac_save_CFLAGS="$CFLAGS"
1797 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1798 echo "configure:1799: checking whether ${CC-cc} accepts -g" >&5
1800 echo 'void f(){}' > conftest.c
1801 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1809 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1810 if test "$ac_test_CFLAGS" = set; then
1811 CFLAGS="$ac_save_CFLAGS"
1812 elif test $ac_cv_prog_cc_g = yes; then
1813 if test "$GCC" = yes; then
1819 if test "$GCC" = yes; then
1826 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1828 # Extract the first word of "gcc", so it can be a program name with args.
1829 set dummy gcc; ac_word=$2
1830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1831 echo "configure:1832: checking for $ac_word" >&5
1833 if test -n "$CC"; then
1834 ac_cv_prog_CC="$CC" # Let the user override the test.
1836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1838 for ac_dir in $ac_dummy; do
1839 test -z "$ac_dir" && ac_dir=.
1840 if test -f $ac_dir/$ac_word; then
1848 if test -n "$CC"; then
1849 echo "$ac_t""$CC" 1>&6
1851 echo "$ac_t""no" 1>&6
1854 if test -z "$CC"; then
1855 # Extract the first word of "cc", so it can be a program name with args.
1856 set dummy cc; ac_word=$2
1857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1858 echo "configure:1859: checking for $ac_word" >&5
1860 if test -n "$CC"; then
1861 ac_cv_prog_CC="$CC" # Let the user override the test.
1863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1866 for ac_dir in $ac_dummy; do
1867 test -z "$ac_dir" && ac_dir=.
1868 if test -f $ac_dir/$ac_word; then
1869 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1870 ac_prog_rejected=yes
1878 if test $ac_prog_rejected = yes; then
1879 # We found a bogon in the path, so make sure we never use it.
1880 set dummy $ac_cv_prog_CC
1882 if test $# -gt 0; then
1883 # We chose a different compiler from the bogus one.
1884 # However, it has the same basename, so the bogon will be chosen
1885 # first if we set CC to just the basename; use the full file name.
1887 set dummy "$ac_dir/$ac_word" "$@"
1894 if test -n "$CC"; then
1895 echo "$ac_t""$CC" 1>&6
1897 echo "$ac_t""no" 1>&6
1900 if test -z "$CC"; then
1901 case "`uname -s`" in
1903 # Extract the first word of "cl", so it can be a program name with args.
1904 set dummy cl; ac_word=$2
1905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1906 echo "configure:1907: checking for $ac_word" >&5
1908 if test -n "$CC"; then
1909 ac_cv_prog_CC="$CC" # Let the user override the test.
1911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1913 for ac_dir in $ac_dummy; do
1914 test -z "$ac_dir" && ac_dir=.
1915 if test -f $ac_dir/$ac_word; then
1923 if test -n "$CC"; then
1924 echo "$ac_t""$CC" 1>&6
1926 echo "$ac_t""no" 1>&6
1931 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1934 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1935 echo "configure:1936: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1938 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1939 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1940 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1941 ac_cpp='$CPP '"$xe_cppflags"
1942 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1943 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1946 cat > conftest.$ac_ext << EOF
1948 #line 1949 "configure"
1949 #include "confdefs.h"
1953 if { (eval echo configure:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1954 ac_cv_prog_cc_works=yes
1955 # If we can't run a trivial program, we are probably using a cross compiler.
1956 if (./conftest; exit) 2>/dev/null; then
1957 ac_cv_prog_cc_cross=no
1959 ac_cv_prog_cc_cross=yes
1962 echo "configure: failed program was:" >&5
1963 cat conftest.$ac_ext >&5
1964 ac_cv_prog_cc_works=no
1968 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1969 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1970 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1971 ac_cpp='$CPP '"$xe_cppflags"
1972 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1973 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1976 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1977 if test $ac_cv_prog_cc_works = no; then
1978 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1980 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1981 echo "configure:1982: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1982 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1983 cross_compiling=$ac_cv_prog_cc_cross
1985 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1986 echo "configure:1987: checking whether we are using GNU C" >&5
1988 cat > conftest.c <<EOF
1993 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1999 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2001 if test $ac_cv_prog_gcc = yes; then
2007 ac_test_CFLAGS="${CFLAGS+set}"
2008 ac_save_CFLAGS="$CFLAGS"
2010 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2011 echo "configure:2012: checking whether ${CC-cc} accepts -g" >&5
2013 echo 'void f(){}' > conftest.c
2014 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2022 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2023 if test "$ac_test_CFLAGS" = set; then
2024 CFLAGS="$ac_save_CFLAGS"
2025 elif test $ac_cv_prog_cc_g = yes; then
2026 if test "$GCC" = yes; then
2032 if test "$GCC" = yes; then
2039 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2041 # Extract the first word of "gcc", so it can be a program name with args.
2042 set dummy gcc; ac_word=$2
2043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2044 echo "configure:2045: checking for $ac_word" >&5
2046 if test -n "$CC"; then
2047 ac_cv_prog_CC="$CC" # Let the user override the test.
2049 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2051 for ac_dir in $ac_dummy; do
2052 test -z "$ac_dir" && ac_dir=.
2053 if test -f $ac_dir/$ac_word; then
2061 if test -n "$CC"; then
2062 echo "$ac_t""$CC" 1>&6
2064 echo "$ac_t""no" 1>&6
2067 if test -z "$CC"; then
2068 # Extract the first word of "cc", so it can be a program name with args.
2069 set dummy cc; ac_word=$2
2070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2071 echo "configure:2072: checking for $ac_word" >&5
2073 if test -n "$CC"; then
2074 ac_cv_prog_CC="$CC" # Let the user override the test.
2076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2079 for ac_dir in $ac_dummy; do
2080 test -z "$ac_dir" && ac_dir=.
2081 if test -f $ac_dir/$ac_word; then
2082 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2083 ac_prog_rejected=yes
2091 if test $ac_prog_rejected = yes; then
2092 # We found a bogon in the path, so make sure we never use it.
2093 set dummy $ac_cv_prog_CC
2095 if test $# -gt 0; then
2096 # We chose a different compiler from the bogus one.
2097 # However, it has the same basename, so the bogon will be chosen
2098 # first if we set CC to just the basename; use the full file name.
2100 set dummy "$ac_dir/$ac_word" "$@"
2107 if test -n "$CC"; then
2108 echo "$ac_t""$CC" 1>&6
2110 echo "$ac_t""no" 1>&6
2113 if test -z "$CC"; then
2114 case "`uname -s`" in
2116 # Extract the first word of "cl", so it can be a program name with args.
2117 set dummy cl; ac_word=$2
2118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2119 echo "configure:2120: checking for $ac_word" >&5
2121 if test -n "$CC"; then
2122 ac_cv_prog_CC="$CC" # Let the user override the test.
2124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2126 for ac_dir in $ac_dummy; do
2127 test -z "$ac_dir" && ac_dir=.
2128 if test -f $ac_dir/$ac_word; then
2136 if test -n "$CC"; then
2137 echo "$ac_t""$CC" 1>&6
2139 echo "$ac_t""no" 1>&6
2144 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2147 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2148 echo "configure:2149: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2151 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2152 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2153 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2154 ac_cpp='$CPP '"$xe_cppflags"
2155 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2156 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2159 cat > conftest.$ac_ext << EOF
2161 #line 2162 "configure"
2162 #include "confdefs.h"
2166 if { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2167 ac_cv_prog_cc_works=yes
2168 # If we can't run a trivial program, we are probably using a cross compiler.
2169 if (./conftest; exit) 2>/dev/null; then
2170 ac_cv_prog_cc_cross=no
2172 ac_cv_prog_cc_cross=yes
2175 echo "configure: failed program was:" >&5
2176 cat conftest.$ac_ext >&5
2177 ac_cv_prog_cc_works=no
2181 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2182 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2183 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2184 ac_cpp='$CPP '"$xe_cppflags"
2185 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2186 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2189 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2190 if test $ac_cv_prog_cc_works = no; then
2191 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2193 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2194 echo "configure:2195: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2195 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2196 cross_compiling=$ac_cv_prog_cc_cross
2198 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2199 echo "configure:2200: checking whether we are using GNU C" >&5
2201 cat > conftest.c <<EOF
2206 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2212 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2214 if test $ac_cv_prog_gcc = yes; then
2220 ac_test_CFLAGS="${CFLAGS+set}"
2221 ac_save_CFLAGS="$CFLAGS"
2223 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2224 echo "configure:2225: checking whether ${CC-cc} accepts -g" >&5
2226 echo 'void f(){}' > conftest.c
2227 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2235 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2236 if test "$ac_test_CFLAGS" = set; then
2237 CFLAGS="$ac_save_CFLAGS"
2238 elif test $ac_cv_prog_cc_g = yes; then
2239 if test "$GCC" = yes; then
2245 if test "$GCC" = yes; then
2253 CFLAGS="$xe_save_CFLAGS"
2256 test -n "$CPP" -a -d "$CPP" && CPP=
2258 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2260 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2261 echo "configure:2262: checking how to run the C preprocessor" >&5
2262 # On Suns, sometimes $CPP names a directory.
2263 if test -n "$CPP" && test -d "$CPP"; then
2266 if test -z "$CPP"; then
2268 # This must be in double quotes, not single quotes, because CPP may get
2269 # substituted into the Makefile and "${CC-cc}" will confuse make.
2271 # On the NeXT, cc -E runs the code through the compiler's parser,
2272 # not just through cpp.
2273 cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2280 { (eval echo configure:2281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2282 if test -z "$ac_err"; then
2286 echo "configure: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2289 CPP="${CC-cc} -E -traditional-cpp"
2290 cat > conftest.$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2297 { (eval echo configure:2298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2299 if test -z "$ac_err"; then
2303 echo "configure: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2306 CPP="${CC-cc} -nologo -E"
2307 cat > conftest.$ac_ext <<EOF
2308 #line 2309 "configure"
2309 #include "confdefs.h"
2313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2314 { (eval echo configure:2315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2316 if test -z "$ac_err"; then
2320 echo "configure: failed program was:" >&5
2321 cat conftest.$ac_ext >&5
2330 ac_cv_prog_CPP="$CPP"
2331 CPP="$ac_cv_prog_CPP"
2333 ac_cv_prog_CPP="$CPP"
2335 echo "$ac_t""$CPP" 1>&6
2339 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2340 echo "configure:2341: checking for AIX" >&5
2341 cat > conftest.$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2350 egrep "yes" >/dev/null 2>&1; then
2352 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2353 Defining _ALL_SOURCE
2355 cat >> confdefs.h <<\EOF
2356 #define _ALL_SOURCE 1
2362 echo "$ac_t""no" 1>&6
2368 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2369 echo "configure:2370: checking for GNU libc" >&5
2370 cat > conftest.$ac_ext <<EOF
2371 #line 2372 "configure"
2372 #include "confdefs.h"
2373 #include <features.h>
2376 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2377 #error Not a GNU libc system :-(
2378 ******* ======= ******** &&&&&&&&
2383 if { (eval echo configure:2384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2387 echo "configure: failed program was:" >&5
2388 cat conftest.$ac_ext >&5
2393 echo "$ac_t""$have_glibc" 1>&6
2394 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2395 Defining _GNU_SOURCE
2397 cat >> confdefs.h <<\EOF
2398 #define _GNU_SOURCE 1
2405 { test "$extra_verbose" = "yes" && cat << \EOF
2406 Defining __EXTENSIONS__
2408 cat >> confdefs.h <<\EOF
2409 #define __EXTENSIONS__ 1
2413 if test "$os_release" -ge 55; then
2414 { test "$extra_verbose" = "yes" && cat << \EOF
2415 Defining _XOPEN_SOURCE = 500
2417 cat >> confdefs.h <<\EOF
2418 #define _XOPEN_SOURCE 500
2422 { test "$extra_verbose" = "yes" && cat << \EOF
2423 Defining _XOPEN_SOURCE_EXTENDED
2425 cat >> confdefs.h <<\EOF
2426 #define _XOPEN_SOURCE_EXTENDED 1
2432 { test "$extra_verbose" = "yes" && cat << \EOF
2433 Defining _POSIX_C_SOURCE = 199506L
2435 cat >> confdefs.h <<\EOF
2436 #define _POSIX_C_SOURCE 199506L
2440 { test "$extra_verbose" = "yes" && cat << \EOF
2441 Defining _XOPEN_SOURCE = 500
2443 cat >> confdefs.h <<\EOF
2444 #define _XOPEN_SOURCE 500
2448 { test "$extra_verbose" = "yes" && cat << \EOF
2449 Defining _XOPEN_SOURCE_EXTENDED
2451 cat >> confdefs.h <<\EOF
2452 #define _XOPEN_SOURCE_EXTENDED 1
2459 cat > conftest.$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2463 #if defined __SUNPRO_C
2465 #elif defined __DECC
2467 #elif defined __USLC__ && defined __SCO_VERSION__
2474 if { (eval echo configure:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2479 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2482 case "$conftest_rc" in
2483 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2484 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2485 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2493 echo "Extracting information from the machine- and system-dependent headers..."
2495 tempcname="conftest.c"
2499 cat > $tempcname < confdefs.h
2500 cat >> $tempcname <<EOF
2502 #define C_SWITCH_SITE
2503 #define C_SWITCH_X_SITE
2504 #define LD_SWITCH_SITE
2505 #define LD_SWITCH_X_SITE
2506 #define LD_SWITCH_X_SITE_AUX
2507 #define OS_RELEASE $os_release
2509 #ifdef config_opsysfile
2510 #include "$srcdir/src/$opsysfile"
2513 #ifdef config_machfile
2514 #include "$srcdir/src/$machfile"
2517 #ifndef LIBS_MACHINE
2518 #define LIBS_MACHINE
2520 configure___ libs_machine=LIBS_MACHINE
2525 configure___ libs_system=LIBS_SYSTEM
2527 #ifndef LIBS_TERMCAP
2528 #define LIBS_TERMCAP
2530 configure___ libs_termcap=LIBS_TERMCAP
2532 #ifndef LIB_STANDARD
2533 #define LIB_STANDARD
2535 configure___ libs_standard=LIB_STANDARD
2538 #ifndef OBJECTS_MACHINE
2539 #define OBJECTS_MACHINE
2541 configure___ objects_machine=OBJECTS_MACHINE
2543 #ifndef OBJECTS_SYSTEM
2544 #define OBJECTS_SYSTEM
2546 configure___ objects_system=OBJECTS_SYSTEM
2549 #ifndef C_SWITCH_MACHINE
2550 #define C_SWITCH_MACHINE
2552 configure___ c_switch_machine=C_SWITCH_MACHINE
2554 #ifndef C_SWITCH_SYSTEM
2555 #define C_SWITCH_SYSTEM
2557 configure___ c_switch_system=C_SWITCH_SYSTEM
2560 #ifndef LD_SWITCH_MACHINE
2561 #define LD_SWITCH_MACHINE
2563 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2565 #ifndef LD_SWITCH_SYSTEM
2566 #define LD_SWITCH_SYSTEM
2568 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2572 #define UNEXEC "unexec.o"
2574 configure___ unexec=UNEXEC
2577 #ifndef LD_SWITCH_SHARED
2578 #define LD_SWITCH_SHARED "-c"
2580 configure___ ld_switch_shared=LD_SWITCH_SHARED
2583 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2584 configure___ ordinary_ld=ORDINARY_LD
2586 #ifdef ORDINARY_LINK
2587 #define LD ORDINARY_LD
2588 #else /* no ORDINARY LINK */
2589 #ifdef COFF_ENCAPSULATE
2590 #define LD "\$(CC) -nostdlib"
2591 #else /* not COFF_ENCAPSULATE */
2594 #else /* ! defined (LINKER) */
2596 #endif /* ! defined (LINKER) */
2597 #endif /* ! defined (COFF_ENCAPSULATE) */
2598 #endif /* not ORDINARY_LINK */
2604 configure___ lib_gcc=LIB_GCC
2606 #ifndef LD_TEXT_START_ADDR
2607 #define LD_TEXT_START_ADDR
2609 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2612 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2614 #ifdef COFF_ENCAPSULATE
2615 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2616 #else /* ! defined (COFF_ENCAPSULATE) */
2617 #define START_FILES "pre-crt0.o /lib/crt0.o"
2618 #endif /* ! defined (COFF_ENCAPSULATE) */
2619 #else /* ! defined (NO_REMAP) */
2620 #define START_FILES "ecrt0.o"
2621 #endif /* ! defined (NO_REMAP) */
2622 #endif /* no ORDINARY_LINK */
2626 configure___ start_files=START_FILES
2628 #ifdef ORDINARY_LINK
2629 configure___ ordinary_link=yes
2631 configure___ ordinary_link=no
2634 #ifdef SYSTEM_MALLOC
2635 configure___ system_malloc=yes
2637 configure___ system_malloc=no
2641 configure___ have_terminfo=yes
2643 configure___ have_terminfo=no
2646 #ifdef MAIL_USE_FLOCK
2647 configure___ mail_use_flock=yes
2649 configure___ mail_use_flock=no
2652 #ifdef MAIL_USE_LOCKF
2653 configure___ mail_use_lockf=yes
2655 configure___ mail_use_lockf=no
2658 #ifdef MAIL_USE_LOCKING
2659 configure___ mail_use_locking=yes
2661 configure___ mail_use_locking=no
2664 #ifdef HAVE_WIN32_PROCESSES
2665 configure___ win32_processes=yes
2667 configure___ win32_processes=no
2672 CPP=`eval "echo $CPP $CPPFLAGS"`
2673 eval `$CPP -Isrc $tempcname \
2674 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2678 if test "$pdump" = "yes"; then
2687 test "$extra_verbose" = "yes" && \
2688 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo ""
2690 case "$opsys" in mingw* | cygwin*)
2691 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2692 cygwin_include=`eval "dirname $cygwin_include"` ;
2693 cygwin_include="-I$cygwin_include/../include" ;
2694 extra_includes="$cygwin_include/mingw32 $cygwin_include/mingw $cygwin_include" ;
2695 case "$opsys" in mingw*)
2696 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2701 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2704 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2706 if test "$__USLC__" = yes; then
2707 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2708 echo "configure:2709: checking for whether the -Kalloca compiler flag is needed" >&5
2710 cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2715 void *x = alloca(4);
2718 if { (eval echo configure:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2722 echo "configure: failed program was:" >&5
2723 cat conftest.$ac_ext >&5
2726 xe_save_c_switch_system="$c_switch_system"
2727 c_switch_system="$c_switch_system -Kalloca"
2728 cat > conftest.$ac_ext <<EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2733 void *x = alloca(4);
2736 if { (eval echo configure:2737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2740 echo "configure: failed program was:" >&5
2741 cat conftest.$ac_ext >&5
2744 c_switch_system="$xe_save_c_switch_system"
2747 echo "$ac_t""$need_kalloca" 1>&6
2748 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi
2751 if test "$cflags_specified" = "no"; then
2752 if test "$GCC" = "yes"; then
2753 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow"
2754 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2755 elif test "$__SUNPRO_C" = "yes"; then
2757 sol2 ) CFLAGS="-v -xO4" ;;
2758 sunos4* ) CFLAGS="-xO2";;
2760 elif test "$__DECC" = "yes"; then
2762 elif test "$CC" = "xlc"; then
2763 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2768 if test "$GCC" = "yes"; then
2769 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2770 echo "configure:2771: checking for buggy gcc versions" >&5
2771 GCC_VERSION=`$CC --version`
2772 case `uname -s`:`uname -m`:$GCC_VERSION in
2773 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2777 *-fno-schedule-insns*) ;;
2779 echo "$ac_t""yes" 1>&6
2780 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2781 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2782 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2788 Linux:alpha:egcs-2.91.*)
2789 echo "$ac_t""yes" 1>&6
2790 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2791 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2792 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2797 case "$GCC_VERSION" in
2800 *-fno-strength-reduce*) ;;
2802 echo "$ac_t""yes" 1>&6
2803 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2804 echo "configure: warning: -fno-strength-reduce." 1>&2
2805 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2811 *-fno-caller-saves*) ;;
2813 echo "$ac_t""yes" 1>&6
2814 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2815 echo "configure: warning: -fno-caller-saves." 1>&2
2816 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2823 echo "$ac_t""no" 1>&6
2827 if test "$GCC" = "yes"; then
2828 set x $ld_switch_system; shift; ld_switch_system=""
2829 while test -n "$1"; do
2831 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2832 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2834 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2840 if test "$GCC" = "yes"; then
2841 set x $ld_switch_machine; shift; ld_switch_machine=""
2842 while test -n "$1"; do
2844 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2845 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2847 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2853 if test "$GCC" = "yes"; then
2854 set x $LDFLAGS; shift; LDFLAGS=""
2855 while test -n "$1"; do
2857 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2858 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2860 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2866 if test "$GCC" = "yes"; then
2867 set x $ld_call_shared; shift; ld_call_shared=""
2868 while test -n "$1"; do
2870 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2871 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2873 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2879 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2880 echo " xemacs will be linked with \"$objects_machine\""
2882 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2883 echo " xemacs will be linked with \"$objects_system\""
2885 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2886 echo " xemacs will be linked with \"$unexec\""
2888 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2889 echo " xemacs will be linked with \"dumper.o\""
2892 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2893 echo "configure:2894: checking for dynodump" >&5
2894 if test "$unexec" != "unexsol2.o"; then
2895 echo "$ac_t""no" 1>&6
2897 echo "$ac_t""yes" 1>&6
2898 { test "$extra_verbose" = "yes" && cat << \EOF
2901 cat >> confdefs.h <<\EOF
2906 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2907 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2909 sparc ) dynodump_arch=sparc ;;
2910 *86* ) dynodump_arch=i386 ;;
2911 powerpc ) dynodump_arch=ppc ;;
2913 test "$GCC" = "yes" && ld_switch_site="$ld_switch_site -fno-gnu-linker" && if test "$extra_verbose" = "yes"; then echo " Appending \"-fno-gnu-linker\" to \$ld_switch_site"; fi
2917 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2919 if test "$unexec" = "unexaix.o"; then
2920 if test "$dynamic" = "no"; then
2921 start_flags="-Wl,-bnso,-bnodelcsect"
2922 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2923 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2924 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2926 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2927 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2930 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2931 echo "configure:2932: checking for terminateAndUnload in -lC" >&5
2932 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2934 xe_check_libs=" -lC "
2935 cat > conftest.$ac_ext <<EOF
2936 #line 2937 "configure"
2937 #include "confdefs.h"
2938 /* Override any gcc2 internal prototype to avoid an error. */
2939 /* We use char because int might match the return type of a gcc2
2940 builtin and then its argument prototype would still apply. */
2941 char terminateAndUnload();
2944 terminateAndUnload()
2947 if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2949 eval "ac_cv_lib_$ac_lib_var=yes"
2951 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2954 eval "ac_cv_lib_$ac_lib_var=no"
2959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2960 echo "$ac_t""yes" 1>&6
2961 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2963 echo "$ac_t""no" 1>&6
2968 elif test -n "$ld_text_start_addr"; then
2969 start_flags="-T $ld_text_start_addr -e __start"
2975 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2976 test -z "$linker" && linker='$(CC) -nostdlib'
2977 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2979 test "$GCC" != "yes" && lib_gcc=
2985 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2986 if test -n "$site_libraries"; then
2987 for arg in $site_libraries; do
2990 * ) test -d "$arg" || \
2991 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2994 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2998 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2999 if test -n "$site_includes"; then
3000 for arg in $site_includes; do
3003 * ) test -d "$arg" || \
3004 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3007 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3011 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3012 if test -n "$site_prefixes"; then
3013 for dir in $site_prefixes; do
3014 lib_dir="${dir}/lib"
3015 inc_dir="${dir}/include"
3016 if test ! -d "$dir"; then
3017 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3018 elif test ! -d "$lib_dir"; then
3019 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3021 if test -d "$inc_dir"; then
3022 c_switch_site="$c_switch_site "-I$inc_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-I$inc_dir"\" to \$c_switch_site"; fi
3024 ld_switch_site="$ld_switch_site "-L$lib_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-L$lib_dir"\" to \$ld_switch_site"; fi
3030 for dir in "/usr/ccs/lib"; do
3031 test -d "$dir" && ld_switch_system="$ld_switch_system -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_system"; fi
3034 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3035 if test -n "$site_runtime_libraries"; then
3036 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3044 if test -n "$add_runtime_path"; then :;
3045 elif test "$dynamic" = "no"; then add_runtime_path=no
3046 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3047 else case "$opsys" in
3048 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3049 * ) add_runtime_path=no ;;
3053 if test "$add_runtime_path" = "yes"; then
3054 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3055 echo "configure:3056: checking "for runtime libraries flag"" >&5
3057 sol2 ) dash_r="-R" ;;
3058 decosf* | linux* | irix*) dash_r="-rpath " ;;
3061 for try_dash_r in "-R" "-R " "-rpath "; do
3062 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3064 if test "$GCC" = "yes"; then
3065 set x $xe_check_libs; shift; xe_check_libs=""
3066 while test -n "$1"; do
3068 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3069 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3071 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3076 cat > conftest.$ac_ext <<EOF
3077 #line 3078 "configure"
3078 #include "confdefs.h"
3084 if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3086 dash_r="$try_dash_r"
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3093 test -n "$dash_r" && break
3096 if test -n "$dash_r";
3097 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3098 else echo "$ac_t""NONE" 1>&6
3102 xe_add_unique_runpath_dir='
3104 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3106 if test "$xe_add_p" = "yes"; then
3107 test -n "$runpath" && runpath="${runpath}:"
3108 runpath="${runpath}${xe_runpath_dir}"
3109 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3115 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3116 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3117 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3119 runpath="" runpath_dirs=""
3120 if test -n "$LD_RUN_PATH"; then
3121 runpath="$LD_RUN_PATH"
3122 elif test "$GCC" = "yes"; then
3123 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3124 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3125 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3126 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3127 case "$arg" in P,* | -L* | -R* )
3128 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3130 xe_runpath_dir="$dir"
3131 test "$xe_runpath_dir" != "/lib" -a \
3132 "$xe_runpath_dir" != "/usr/lib" -a \
3133 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3134 eval "$xe_add_unique_runpath_dir"
3139 ld_switch_run="$ld_switch_run_save"
3142 for arg in $ld_switch_site $ld_switch_x_site; do
3143 case "$arg" in -L*) {
3144 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3145 test "$xe_runpath_dir" != "/lib" -a \
3146 "$xe_runpath_dir" != "/usr/lib" -a \
3147 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3148 eval "$xe_add_unique_runpath_dir"
3151 if test "$opsys $need_motif" = "sol2 yes"; then
3152 xe_runpath_dir="/opt/SUNWdt/lib";
3153 eval "$xe_add_unique_runpath_dir";
3156 if test -n "$runpath"; then
3157 ld_switch_run="${dash_r}${runpath}"
3159 if test "$GCC" = "yes"; then
3160 set x $ld_switch_run; shift; ld_switch_run=""
3161 while test -n "$1"; do
3163 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3164 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3166 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3171 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3178 if test "$with_dlmalloc" != "no"; then
3183 after_morecore_hook_exists=yes
3184 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3185 echo "configure:3186: checking for malloc_set_state" >&5
3187 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3190 /* System header to define __stub macros and hopefully few prototypes,
3191 which can conflict with char malloc_set_state(); below. */
3193 /* Override any gcc2 internal prototype to avoid an error. */
3194 /* We use char because int might match the return type of a gcc2
3195 builtin and then its argument prototype would still apply. */
3196 char malloc_set_state();
3200 /* The GNU C library defines this for functions which it implements
3201 to always fail with ENOSYS. Some functions are actually named
3202 something starting with __ and the normal name is an alias. */
3203 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3211 if { (eval echo configure:3212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3213 eval "ac_cv_func_malloc_set_state=yes"
3215 echo "configure: failed program was:" >&5
3216 cat conftest.$ac_ext >&5
3218 eval "ac_cv_func_malloc_set_state=no"
3222 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3223 echo "$ac_t""yes" 1>&6
3226 echo "$ac_t""no" 1>&6
3230 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3231 echo "configure:3232: checking whether __after_morecore_hook exists" >&5
3232 cat > conftest.$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3235 extern void (* __after_morecore_hook)();
3237 __after_morecore_hook = 0
3240 if { (eval echo configure:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3242 echo "$ac_t""yes" 1>&6
3244 echo "configure: failed program was:" >&5
3245 cat conftest.$ac_ext >&5
3247 echo "$ac_t""no" 1>&6
3248 after_morecore_hook_exists=no
3251 if test "$system_malloc" = "yes" ; then
3254 - The GNU allocators don't work with this system configuration."
3255 elif test "$with_system_malloc" = "yes" ; then
3258 - User chose not to use GNU allocators."
3259 elif test "$with_debug_malloc" = "yes" ; then
3262 - User chose to use Debugging Malloc."
3265 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3267 - Using Doug Lea's new malloc from the GNU C Library."
3268 { test "$extra_verbose" = "yes" && cat << \EOF
3269 Defining DOUG_LEA_MALLOC
3271 cat >> confdefs.h <<\EOF
3272 #define DOUG_LEA_MALLOC 1
3276 if test "$after_morecore_hook_exists" = "no" ; then
3278 - Using Doug Lea's new malloc from the Linux C Library."
3279 { test "$extra_verbose" = "yes" && cat << \EOF
3280 Defining _NO_MALLOC_WARNING_
3282 cat >> confdefs.h <<\EOF
3283 #define _NO_MALLOC_WARNING_ 1
3293 # Extract the first word of "ranlib", so it can be a program name with args.
3294 set dummy ranlib; ac_word=$2
3295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3296 echo "configure:3297: checking for $ac_word" >&5
3298 if test -n "$RANLIB"; then
3299 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3303 for ac_dir in $ac_dummy; do
3304 test -z "$ac_dir" && ac_dir=.
3305 if test -f $ac_dir/$ac_word; then
3306 ac_cv_prog_RANLIB="ranlib"
3311 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3313 RANLIB="$ac_cv_prog_RANLIB"
3314 if test -n "$RANLIB"; then
3315 echo "$ac_t""$RANLIB" 1>&6
3317 echo "$ac_t""no" 1>&6
3321 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3322 if test -f $ac_dir/install-sh; then
3324 ac_install_sh="$ac_aux_dir/install-sh -c"
3326 elif test -f $ac_dir/install.sh; then
3328 ac_install_sh="$ac_aux_dir/install.sh -c"
3332 if test -z "$ac_aux_dir"; then
3333 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3335 ac_config_guess=$ac_aux_dir/config.guess
3336 ac_config_sub=$ac_aux_dir/config.sub
3337 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3339 # Find a good install program. We prefer a C program (faster),
3340 # so one script is as good as another. But avoid the broken or
3341 # incompatible versions:
3342 # SysV /etc/install, /usr/sbin/install
3343 # SunOS /usr/etc/install
3344 # IRIX /sbin/install
3346 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3347 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3348 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3349 # ./install, which can be erroneously created by make from ./install.sh.
3350 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3351 echo "configure:3352: checking for a BSD compatible install" >&5
3352 if test -z "$INSTALL"; then
3354 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3355 for ac_dir in $PATH; do
3356 # Account for people who put trailing slashes in PATH elements.
3358 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3360 # OSF1 and SCO ODT 3.0 have their own names for install.
3361 # Don't use installbsd from OSF since it installs stuff as root
3363 for ac_prog in ginstall scoinst install; do
3364 if test -f $ac_dir/$ac_prog; then
3365 if test $ac_prog = install &&
3366 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3367 # AIX install. It has an incompatible calling convention.
3370 ac_cv_path_install="$ac_dir/$ac_prog -c"
3380 if test "${ac_cv_path_install+set}" = set; then
3381 INSTALL="$ac_cv_path_install"
3383 # As a last resort, use the slow shell script. We don't cache a
3384 # path for INSTALL within a source directory, because that will
3385 # break other packages using the cache if that directory is
3386 # removed, or if the path is relative.
3387 INSTALL="$ac_install_sh"
3390 echo "$ac_t""$INSTALL" 1>&6
3392 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3393 # It thinks the first close brace ends the variable substitution.
3394 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3396 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3398 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3400 for ac_prog in 'bison -y' byacc
3402 # Extract the first word of "$ac_prog", so it can be a program name with args.
3403 set dummy $ac_prog; ac_word=$2
3404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3405 echo "configure:3406: checking for $ac_word" >&5
3407 if test -n "$YACC"; then
3408 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3412 for ac_dir in $ac_dummy; do
3413 test -z "$ac_dir" && ac_dir=.
3414 if test -f $ac_dir/$ac_word; then
3415 ac_cv_prog_YACC="$ac_prog"
3421 YACC="$ac_cv_prog_YACC"
3422 if test -n "$YACC"; then
3423 echo "$ac_t""$YACC" 1>&6
3425 echo "$ac_t""no" 1>&6
3428 test -n "$YACC" && break
3430 test -n "$YACC" || YACC="yacc"
3433 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h
3435 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3436 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3437 echo "configure:3438: checking for $ac_hdr" >&5
3439 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3445 { (eval echo configure:3446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3447 if test -z "$ac_err"; then
3449 eval "ac_cv_header_$ac_safe=yes"
3452 echo "configure: failed program was:" >&5
3453 cat conftest.$ac_ext >&5
3455 eval "ac_cv_header_$ac_safe=no"
3458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3459 echo "$ac_t""yes" 1>&6
3460 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3461 { test "$extra_verbose" = "yes" && cat << EOF
3464 cat >> confdefs.h <<EOF
3465 #define $ac_tr_hdr 1
3470 echo "$ac_t""no" 1>&6
3474 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3475 echo "configure:3476: checking for sys/wait.h that is POSIX.1 compatible" >&5
3477 cat > conftest.$ac_ext <<EOF
3478 #line 3479 "configure"
3479 #include "confdefs.h"
3480 #include <sys/types.h>
3481 #include <sys/wait.h>
3483 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3486 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3491 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3494 if { (eval echo configure:3495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3496 ac_cv_header_sys_wait_h=yes
3498 echo "configure: failed program was:" >&5
3499 cat conftest.$ac_ext >&5
3501 ac_cv_header_sys_wait_h=no
3505 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3506 if test $ac_cv_header_sys_wait_h = yes; then
3507 { test "$extra_verbose" = "yes" && cat << \EOF
3508 Defining HAVE_SYS_WAIT_H
3510 cat >> confdefs.h <<\EOF
3511 #define HAVE_SYS_WAIT_H 1
3517 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3518 echo "configure:3519: checking for ANSI C header files" >&5
3520 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3529 { (eval echo configure:3530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3531 if test -z "$ac_err"; then
3533 ac_cv_header_stdc=yes
3536 echo "configure: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3539 ac_cv_header_stdc=no
3543 if test $ac_cv_header_stdc = yes; then
3544 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3545 cat > conftest.$ac_ext <<EOF
3546 #line 3547 "configure"
3547 #include "confdefs.h"
3550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3551 egrep "memchr" >/dev/null 2>&1; then
3555 ac_cv_header_stdc=no
3561 if test $ac_cv_header_stdc = yes; then
3562 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3563 cat > conftest.$ac_ext <<EOF
3564 #line 3565 "configure"
3565 #include "confdefs.h"
3568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3569 egrep "free" >/dev/null 2>&1; then
3573 ac_cv_header_stdc=no
3579 if test $ac_cv_header_stdc = yes; then
3580 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3581 cat > conftest.$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3585 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3586 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3588 int main () { int i; for (i = 0; i < 256; i++)
3589 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3593 if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3598 echo "configure: failed program was:" >&5
3599 cat conftest.$ac_ext >&5
3601 ac_cv_header_stdc=no
3606 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3607 if test $ac_cv_header_stdc = yes; then
3608 { test "$extra_verbose" = "yes" && cat << \EOF
3609 Defining STDC_HEADERS
3611 cat >> confdefs.h <<\EOF
3612 #define STDC_HEADERS 1
3618 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3619 echo "configure:3620: checking whether time.h and sys/time.h may both be included" >&5
3621 cat > conftest.$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 #include <sys/types.h>
3625 #include <sys/time.h>
3631 if { (eval echo configure:3632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3633 ac_cv_header_time=yes
3635 echo "configure: failed program was:" >&5
3636 cat conftest.$ac_ext >&5
3638 ac_cv_header_time=no
3642 echo "$ac_t""$ac_cv_header_time" 1>&6
3643 if test $ac_cv_header_time = yes; then
3644 { test "$extra_verbose" = "yes" && cat << \EOF
3645 Defining TIME_WITH_SYS_TIME
3647 cat >> confdefs.h <<\EOF
3648 #define TIME_WITH_SYS_TIME 1
3654 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3655 echo "configure:3656: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3657 cat > conftest.$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3660 #include <sys/types.h>
3662 /* NetBSD declares sys_siglist in unistd.h. */
3663 #ifdef HAVE_UNISTD_H
3667 char *msg = *(sys_siglist + 1);
3670 if { (eval echo configure:3671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3672 ac_cv_decl_sys_siglist=yes
3674 echo "configure: failed program was:" >&5
3675 cat conftest.$ac_ext >&5
3677 ac_cv_decl_sys_siglist=no
3681 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3682 if test $ac_cv_decl_sys_siglist = yes; then
3683 { test "$extra_verbose" = "yes" && cat << \EOF
3684 Defining SYS_SIGLIST_DECLARED
3686 cat >> confdefs.h <<\EOF
3687 #define SYS_SIGLIST_DECLARED 1
3695 echo $ac_n "checking for utime""... $ac_c" 1>&6
3696 echo "configure:3697: checking for utime" >&5
3697 cat > conftest.$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3700 #include <sys/types.h>
3703 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3706 if { (eval echo configure:3707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3708 echo "$ac_t""yes" 1>&6
3709 { test "$extra_verbose" = "yes" && cat << \EOF
3712 cat >> confdefs.h <<\EOF
3713 #define HAVE_UTIME 1
3718 echo "configure: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3721 echo "$ac_t""no" 1>&6
3722 for ac_func in utimes
3724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3725 echo "configure:3726: checking for $ac_func" >&5
3727 cat > conftest.$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 /* System header to define __stub macros and hopefully few prototypes,
3731 which can conflict with char $ac_func(); below. */
3733 /* Override any gcc2 internal prototype to avoid an error. */
3734 /* We use char because int might match the return type of a gcc2
3735 builtin and then its argument prototype would still apply. */
3740 /* The GNU C library defines this for functions which it implements
3741 to always fail with ENOSYS. Some functions are actually named
3742 something starting with __ and the normal name is an alias. */
3743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3751 if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3753 eval "ac_cv_func_$ac_func=yes"
3755 echo "configure: failed program was:" >&5
3756 cat conftest.$ac_ext >&5
3758 eval "ac_cv_func_$ac_func=no"
3762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3763 echo "$ac_t""yes" 1>&6
3764 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3765 { test "$extra_verbose" = "yes" && cat << EOF
3766 Defining $ac_tr_func
3768 cat >> confdefs.h <<EOF
3769 #define $ac_tr_func 1
3774 echo "$ac_t""no" 1>&6
3782 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3783 echo "configure:3784: checking return type of signal handlers" >&5
3785 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3788 #include <sys/types.h>
3794 extern "C" void (*signal (int, void (*)(int)))(int);
3796 void (*signal ()) ();
3803 if { (eval echo configure:3804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3805 ac_cv_type_signal=void
3807 echo "configure: failed program was:" >&5
3808 cat conftest.$ac_ext >&5
3810 ac_cv_type_signal=int
3814 echo "$ac_t""$ac_cv_type_signal" 1>&6
3815 { test "$extra_verbose" = "yes" && cat << EOF
3816 Defining RETSIGTYPE = $ac_cv_type_signal
3818 cat >> confdefs.h <<EOF
3819 #define RETSIGTYPE $ac_cv_type_signal
3824 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3825 echo "configure:3826: checking for size_t" >&5
3827 cat > conftest.$ac_ext <<EOF
3828 #line 3829 "configure"
3829 #include "confdefs.h"
3830 #include <sys/types.h>
3836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3837 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3839 ac_cv_type_size_t=yes
3842 ac_cv_type_size_t=no
3846 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3847 if test $ac_cv_type_size_t = no; then
3848 { test "$extra_verbose" = "yes" && cat << \EOF
3849 Defining size_t = unsigned
3851 cat >> confdefs.h <<\EOF
3852 #define size_t unsigned
3858 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3859 echo "configure:3860: checking for pid_t" >&5
3861 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure"
3863 #include "confdefs.h"
3864 #include <sys/types.h>
3870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3871 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3873 ac_cv_type_pid_t=yes
3880 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3881 if test $ac_cv_type_pid_t = no; then
3882 { test "$extra_verbose" = "yes" && cat << \EOF
3883 Defining pid_t = int
3885 cat >> confdefs.h <<\EOF
3892 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3893 echo "configure:3894: checking for uid_t in sys/types.h" >&5
3895 cat > conftest.$ac_ext <<EOF
3896 #line 3897 "configure"
3897 #include "confdefs.h"
3898 #include <sys/types.h>
3900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3901 egrep "uid_t" >/dev/null 2>&1; then
3903 ac_cv_type_uid_t=yes
3911 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3912 if test $ac_cv_type_uid_t = no; then
3913 { test "$extra_verbose" = "yes" && cat << \EOF
3914 Defining uid_t = int
3916 cat >> confdefs.h <<\EOF
3921 { test "$extra_verbose" = "yes" && cat << \EOF
3922 Defining gid_t = int
3924 cat >> confdefs.h <<\EOF
3931 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3932 echo "configure:3933: checking for mode_t" >&5
3934 cat > conftest.$ac_ext <<EOF
3935 #line 3936 "configure"
3936 #include "confdefs.h"
3937 #include <sys/types.h>
3943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3944 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3946 ac_cv_type_mode_t=yes
3949 ac_cv_type_mode_t=no
3953 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3954 if test $ac_cv_type_mode_t = no; then
3955 { test "$extra_verbose" = "yes" && cat << \EOF
3956 Defining mode_t = int
3958 cat >> confdefs.h <<\EOF
3965 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3966 echo "configure:3967: checking for off_t" >&5
3968 cat > conftest.$ac_ext <<EOF
3969 #line 3970 "configure"
3970 #include "confdefs.h"
3971 #include <sys/types.h>
3977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3978 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3980 ac_cv_type_off_t=yes
3987 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3988 if test $ac_cv_type_off_t = no; then
3989 { test "$extra_verbose" = "yes" && cat << \EOF
3990 Defining off_t = long
3992 cat >> confdefs.h <<\EOF
3999 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4000 echo "configure:4001: checking for ssize_t" >&5
4002 cat > conftest.$ac_ext <<EOF
4003 #line 4004 "configure"
4004 #include "confdefs.h"
4005 #include <sys/types.h>
4011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4012 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4014 ac_cv_type_ssize_t=yes
4017 ac_cv_type_ssize_t=no
4021 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4022 if test $ac_cv_type_ssize_t = no; then
4023 { test "$extra_verbose" = "yes" && cat << \EOF
4024 Defining ssize_t = int
4026 cat >> confdefs.h <<\EOF
4034 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4035 echo "configure:4036: checking for socklen_t" >&5
4036 cat > conftest.$ac_ext <<EOF
4037 #line 4038 "configure"
4038 #include "confdefs.h"
4039 #include <sys/socket.h>
4046 if { (eval echo configure:4047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4048 echo "$ac_t""yes" 1>&6
4050 echo "configure: failed program was:" >&5
4051 cat conftest.$ac_ext >&5
4054 cat > conftest.$ac_ext <<EOF
4055 #line 4056 "configure"
4056 #include "confdefs.h"
4057 #include <sys/socket.h>
4058 int accept (int, struct sockaddr *, size_t *);
4064 if { (eval echo configure:4065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4067 echo "$ac_t""size_t" 1>&6
4068 { test "$extra_verbose" = "yes" && cat << \EOF
4069 Defining socklen_t = size_t
4071 cat >> confdefs.h <<\EOF
4072 #define socklen_t size_t
4077 echo "configure: failed program was:" >&5
4078 cat conftest.$ac_ext >&5
4081 echo "$ac_t""int" 1>&6
4082 { test "$extra_verbose" = "yes" && cat << \EOF
4083 Defining socklen_t = int
4085 cat >> confdefs.h <<\EOF
4086 #define socklen_t int
4095 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4096 echo "configure:4097: checking for struct timeval" >&5
4097 cat > conftest.$ac_ext <<EOF
4098 #line 4099 "configure"
4099 #include "confdefs.h"
4100 #ifdef TIME_WITH_SYS_TIME
4101 #include <sys/time.h>
4104 #ifdef HAVE_SYS_TIME_H
4105 #include <sys/time.h>
4111 static struct timeval x; x.tv_sec = x.tv_usec;
4114 if { (eval echo configure:4115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4116 echo "$ac_t""yes" 1>&6
4118 { test "$extra_verbose" = "yes" && cat << \EOF
4119 Defining HAVE_TIMEVAL
4121 cat >> confdefs.h <<\EOF
4122 #define HAVE_TIMEVAL 1
4127 echo "configure: failed program was:" >&5
4128 cat conftest.$ac_ext >&5
4130 echo "$ac_t""no" 1>&6
4135 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4136 echo "configure:4137: checking whether struct tm is in sys/time.h or time.h" >&5
4138 cat > conftest.$ac_ext <<EOF
4139 #line 4140 "configure"
4140 #include "confdefs.h"
4141 #include <sys/types.h>
4144 struct tm *tp; tp->tm_sec;
4147 if { (eval echo configure:4148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4149 ac_cv_struct_tm=time.h
4151 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4154 ac_cv_struct_tm=sys/time.h
4158 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4159 if test $ac_cv_struct_tm = sys/time.h; then
4160 { test "$extra_verbose" = "yes" && cat << \EOF
4161 Defining TM_IN_SYS_TIME
4163 cat >> confdefs.h <<\EOF
4164 #define TM_IN_SYS_TIME 1
4170 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4171 echo "configure:4172: checking for tm_zone in struct tm" >&5
4173 cat > conftest.$ac_ext <<EOF
4174 #line 4175 "configure"
4175 #include "confdefs.h"
4176 #include <sys/types.h>
4177 #include <$ac_cv_struct_tm>
4179 struct tm tm; tm.tm_zone;
4182 if { (eval echo configure:4183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4184 ac_cv_struct_tm_zone=yes
4186 echo "configure: failed program was:" >&5
4187 cat conftest.$ac_ext >&5
4189 ac_cv_struct_tm_zone=no
4193 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4194 if test "$ac_cv_struct_tm_zone" = yes; then
4195 { test "$extra_verbose" = "yes" && cat << \EOF
4196 Defining HAVE_TM_ZONE
4198 cat >> confdefs.h <<\EOF
4199 #define HAVE_TM_ZONE 1
4204 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4205 echo "configure:4206: checking for tzname" >&5
4207 cat > conftest.$ac_ext <<EOF
4208 #line 4209 "configure"
4209 #include "confdefs.h"
4211 #ifndef tzname /* For SGI. */
4212 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4218 if { (eval echo configure:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4220 ac_cv_var_tzname=yes
4222 echo "configure: failed program was:" >&5
4223 cat conftest.$ac_ext >&5
4229 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4230 if test $ac_cv_var_tzname = yes; then
4231 { test "$extra_verbose" = "yes" && cat << \EOF
4232 Defining HAVE_TZNAME
4234 cat >> confdefs.h <<\EOF
4235 #define HAVE_TZNAME 1
4243 echo $ac_n "checking for working const""... $ac_c" 1>&6
4244 echo "configure:4245: checking for working const" >&5
4246 cat > conftest.$ac_ext <<EOF
4247 #line 4248 "configure"
4248 #include "confdefs.h"
4252 /* Ultrix mips cc rejects this. */
4253 typedef int charset[2]; const charset x;
4254 /* SunOS 4.1.1 cc rejects this. */
4255 char const *const *ccp;
4257 /* NEC SVR4.0.2 mips cc rejects this. */
4258 struct point {int x, y;};
4259 static struct point const zero = {0,0};
4260 /* AIX XL C 1.02.0.0 rejects this.
4261 It does not let you subtract one const X* pointer from another in an arm
4262 of an if-expression whose if-part is not a constant expression */
4263 const char *g = "string";
4264 ccp = &g + (g ? g-g : 0);
4265 /* HPUX 7.0 cc rejects these. */
4268 ccp = (char const *const *) p;
4269 { /* SCO 3.2v4 cc rejects this. */
4271 char const *s = 0 ? (char *) 0 : (char const *) 0;
4275 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4277 const int *foo = &x[0];
4280 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4281 typedef const int *iptr;
4285 { /* AIX XL C 1.02.0.0 rejects this saying
4286 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4287 struct s { int j; const int *ap[3]; };
4288 struct s *b; b->j = 5;
4290 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4296 if { (eval echo configure:4297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4300 echo "configure: failed program was:" >&5
4301 cat conftest.$ac_ext >&5
4307 echo "$ac_t""$ac_cv_c_const" 1>&6
4308 if test $ac_cv_c_const = no; then
4309 { test "$extra_verbose" = "yes" && cat << \EOF
4312 cat >> confdefs.h <<\EOF
4320 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4321 echo "configure:4322: checking whether ${MAKE-make} sets \${MAKE}" >&5
4322 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4324 cat > conftestmake <<\EOF
4326 @echo 'ac_maketemp="${MAKE}"'
4328 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4329 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4330 if test -n "$ac_maketemp"; then
4331 eval ac_cv_prog_make_${ac_make}_set=yes
4333 eval ac_cv_prog_make_${ac_make}_set=no
4336 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4337 echo "$ac_t""yes" 1>&6
4340 echo "$ac_t""no" 1>&6
4341 SET_MAKE="MAKE=${MAKE-make}"
4345 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4346 echo "configure:4347: checking whether byte ordering is bigendian" >&5
4348 ac_cv_c_bigendian=unknown
4349 # See if sys/param.h defines the BYTE_ORDER macro.
4350 cat > conftest.$ac_ext <<EOF
4351 #line 4352 "configure"
4352 #include "confdefs.h"
4353 #include <sys/types.h>
4354 #include <sys/param.h>
4357 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4362 if { (eval echo configure:4363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4364 # It does; now see whether it defined to BIG_ENDIAN or not.
4365 cat > conftest.$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4368 #include <sys/types.h>
4369 #include <sys/param.h>
4372 #if BYTE_ORDER != BIG_ENDIAN
4377 if { (eval echo configure:4378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4379 ac_cv_c_bigendian=yes
4381 echo "configure: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4384 ac_cv_c_bigendian=no
4388 echo "configure: failed program was:" >&5
4389 cat conftest.$ac_ext >&5
4392 if test $ac_cv_c_bigendian = unknown; then
4393 cat > conftest.$ac_ext <<EOF
4394 #line 4395 "configure"
4395 #include "confdefs.h"
4397 /* Are we little or big endian? From Harbison&Steele. */
4401 char c[sizeof (long)];
4404 exit (u.c[sizeof (long) - 1] == 1);
4407 if { (eval echo configure:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4409 ac_cv_c_bigendian=no
4412 echo "configure: failed program was:" >&5
4413 cat conftest.$ac_ext >&5
4415 ac_cv_c_bigendian=yes
4420 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4421 if test $ac_cv_c_bigendian = yes; then
4422 { test "$extra_verbose" = "yes" && cat << \EOF
4423 Defining WORDS_BIGENDIAN
4425 cat >> confdefs.h <<\EOF
4426 #define WORDS_BIGENDIAN 1
4433 echo $ac_n "checking size of short""... $ac_c" 1>&6
4434 echo "configure:4435: checking size of short" >&5
4436 cat > conftest.$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4442 FILE *f=fopen("conftestval", "w");
4444 fprintf(f, "%d\n", sizeof(short));
4448 if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4450 ac_cv_sizeof_short=`cat conftestval`
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4456 ac_cv_sizeof_short=0
4459 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4460 { test "$extra_verbose" = "yes" && cat << EOF
4461 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4463 cat >> confdefs.h <<EOF
4464 #define SIZEOF_SHORT $ac_cv_sizeof_short
4469 if test "$ac_cv_sizeof_short" = 0; then
4471 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4472 echo "*** PANIC *** Please examine config.log for compilation errors."
4475 echo $ac_n "checking size of int""... $ac_c" 1>&6
4476 echo "configure:4477: checking size of int" >&5
4478 cat > conftest.$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4484 FILE *f=fopen("conftestval", "w");
4486 fprintf(f, "%d\n", sizeof(int));
4490 if { (eval echo configure:4491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4492 ac_cv_sizeof_int=`cat conftestval`
4495 echo "configure: failed program was:" >&5
4496 cat conftest.$ac_ext >&5
4501 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4502 { test "$extra_verbose" = "yes" && cat << EOF
4503 Defining SIZEOF_INT = $ac_cv_sizeof_int
4505 cat >> confdefs.h <<EOF
4506 #define SIZEOF_INT $ac_cv_sizeof_int
4511 echo $ac_n "checking size of long""... $ac_c" 1>&6
4512 echo "configure:4513: checking size of long" >&5
4514 cat > conftest.$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4520 FILE *f=fopen("conftestval", "w");
4522 fprintf(f, "%d\n", sizeof(long));
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4528 ac_cv_sizeof_long=`cat conftestval`
4531 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4537 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4538 { test "$extra_verbose" = "yes" && cat << EOF
4539 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4541 cat >> confdefs.h <<EOF
4542 #define SIZEOF_LONG $ac_cv_sizeof_long
4547 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4548 echo "configure:4549: checking size of long long" >&5
4550 cat > conftest.$ac_ext <<EOF
4551 #line 4552 "configure"
4552 #include "confdefs.h"
4556 FILE *f=fopen("conftestval", "w");
4558 fprintf(f, "%d\n", sizeof(long long));
4562 if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4564 ac_cv_sizeof_long_long=`cat conftestval`
4567 echo "configure: failed program was:" >&5
4568 cat conftest.$ac_ext >&5
4570 ac_cv_sizeof_long_long=0
4573 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4574 { test "$extra_verbose" = "yes" && cat << EOF
4575 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4577 cat >> confdefs.h <<EOF
4578 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4583 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4584 echo "configure:4585: checking size of void *" >&5
4586 cat > conftest.$ac_ext <<EOF
4587 #line 4588 "configure"
4588 #include "confdefs.h"
4592 FILE *f=fopen("conftestval", "w");
4594 fprintf(f, "%d\n", sizeof(void *));
4598 if { (eval echo configure:4599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4600 ac_cv_sizeof_void_p=`cat conftestval`
4603 echo "configure: failed program was:" >&5
4604 cat conftest.$ac_ext >&5
4606 ac_cv_sizeof_void_p=0
4609 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4610 { test "$extra_verbose" = "yes" && cat << EOF
4611 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4613 cat >> confdefs.h <<EOF
4614 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4620 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4621 echo "configure:4622: checking for long file names" >&5
4623 ac_cv_sys_long_file_names=yes
4624 # Test for long file names in all the places we know might matter:
4625 # . the current directory, where building will happen
4626 # $prefix/lib where we will be installing things
4627 # $exec_prefix/lib likewise
4628 # eval it to expand exec_prefix.
4629 # $TMPDIR if set, where it might want to write temporary files
4630 # if $TMPDIR is not set:
4631 # /tmp where it might want to write temporary files
4634 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4635 ac_tmpdirs="$TMPDIR"
4637 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4639 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4640 test -d $ac_dir || continue
4641 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4642 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4643 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4644 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4645 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4646 ac_cv_sys_long_file_names=no
4647 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4650 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4653 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4654 if test $ac_cv_sys_long_file_names = yes; then
4655 { test "$extra_verbose" = "yes" && cat << \EOF
4656 Defining HAVE_LONG_FILE_NAMES
4658 cat >> confdefs.h <<\EOF
4659 #define HAVE_LONG_FILE_NAMES 1
4666 echo $ac_n "checking for sin""... $ac_c" 1>&6
4667 echo "configure:4668: checking for sin" >&5
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4672 /* System header to define __stub macros and hopefully few prototypes,
4673 which can conflict with char sin(); below. */
4675 /* Override any gcc2 internal prototype to avoid an error. */
4676 /* We use char because int might match the return type of a gcc2
4677 builtin and then its argument prototype would still apply. */
4682 /* The GNU C library defines this for functions which it implements
4683 to always fail with ENOSYS. Some functions are actually named
4684 something starting with __ and the normal name is an alias. */
4685 #if defined (__stub_sin) || defined (__stub___sin)
4693 if { (eval echo configure:4694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4695 eval "ac_cv_func_sin=yes"
4697 echo "configure: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4700 eval "ac_cv_func_sin=no"
4704 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4705 echo "$ac_t""yes" 1>&6
4708 echo "$ac_t""no" 1>&6
4710 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4711 echo "configure:4712: checking for sin in -lm" >&5
4712 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4714 xe_check_libs=" -lm "
4715 cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4718 /* Override any gcc2 internal prototype to avoid an error. */
4719 /* We use char because int might match the return type of a gcc2
4720 builtin and then its argument prototype would still apply. */
4727 if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4729 eval "ac_cv_lib_$ac_lib_var=yes"
4731 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4734 eval "ac_cv_lib_$ac_lib_var=no"
4739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4740 echo "$ac_t""yes" 1>&6
4741 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4742 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4743 { test "$extra_verbose" = "yes" && cat << EOF
4746 cat >> confdefs.h <<EOF
4747 #define $ac_tr_lib 1
4751 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4754 echo "$ac_t""no" 1>&6
4761 { test "$extra_verbose" = "yes" && cat << \EOF
4762 Defining LISP_FLOAT_TYPE
4764 cat >> confdefs.h <<\EOF
4765 #define LISP_FLOAT_TYPE 1
4770 cat > conftest.$ac_ext <<EOF
4771 #line 4772 "configure"
4772 #include "confdefs.h"
4775 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4778 if { (eval echo configure:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4780 { test "$extra_verbose" = "yes" && cat << \EOF
4781 Defining HAVE_INVERSE_HYPERBOLIC
4783 cat >> confdefs.h <<\EOF
4784 #define HAVE_INVERSE_HYPERBOLIC 1
4789 echo "configure: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4794 echo "checking type of mail spool file locking" 1>&6
4795 echo "configure:4796: checking type of mail spool file locking" >&5
4796 for ac_func in lockf flock
4798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4799 echo "configure:4800: checking for $ac_func" >&5
4801 cat > conftest.$ac_ext <<EOF
4802 #line 4803 "configure"
4803 #include "confdefs.h"
4804 /* System header to define __stub macros and hopefully few prototypes,
4805 which can conflict with char $ac_func(); below. */
4807 /* Override any gcc2 internal prototype to avoid an error. */
4808 /* We use char because int might match the return type of a gcc2
4809 builtin and then its argument prototype would still apply. */
4814 /* The GNU C library defines this for functions which it implements
4815 to always fail with ENOSYS. Some functions are actually named
4816 something starting with __ and the normal name is an alias. */
4817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4825 if { (eval echo configure:4826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4827 eval "ac_cv_func_$ac_func=yes"
4829 echo "configure: failed program was:" >&5
4830 cat conftest.$ac_ext >&5
4832 eval "ac_cv_func_$ac_func=no"
4836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4837 echo "$ac_t""yes" 1>&6
4838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4839 { test "$extra_verbose" = "yes" && cat << EOF
4840 Defining $ac_tr_func
4842 cat >> confdefs.h <<EOF
4843 #define $ac_tr_func 1
4848 echo "$ac_t""no" 1>&6
4852 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4853 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4854 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4855 if test -z "$mail_locking"; then
4856 case "$opsys" in cygwin* | mingw*)
4861 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4862 Defining MAIL_LOCK_LOCKF
4864 cat >> confdefs.h <<\EOF
4865 #define MAIL_LOCK_LOCKF 1
4869 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4870 Defining MAIL_LOCK_FLOCK
4872 cat >> confdefs.h <<\EOF
4873 #define MAIL_LOCK_FLOCK 1
4877 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4878 Defining MAIL_LOCK_LOCKING
4880 cat >> confdefs.h <<\EOF
4881 #define MAIL_LOCK_LOCKING 1
4885 elif test "$mail_locking" = "pop"; then
4888 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4889 Defining MAIL_LOCK_DOT
4891 cat >> confdefs.h <<\EOF
4892 #define MAIL_LOCK_DOT 1
4897 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4898 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4899 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4900 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4901 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4902 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4904 case "$opsys" in decosf*)
4906 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4907 echo "configure:4908: checking for cma_open in -lpthreads" >&5
4908 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4910 xe_check_libs=" -lpthreads "
4911 cat > conftest.$ac_ext <<EOF
4912 #line 4913 "configure"
4913 #include "confdefs.h"
4914 /* Override any gcc2 internal prototype to avoid an error. */
4915 /* We use char because int might match the return type of a gcc2
4916 builtin and then its argument prototype would still apply. */
4923 if { (eval echo configure:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4925 eval "ac_cv_lib_$ac_lib_var=yes"
4927 echo "configure: failed program was:" >&5
4928 cat conftest.$ac_ext >&5
4930 eval "ac_cv_lib_$ac_lib_var=no"
4935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4936 echo "$ac_t""yes" 1>&6
4937 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4938 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4939 { test "$extra_verbose" = "yes" && cat << EOF
4942 cat >> confdefs.h <<EOF
4943 #define $ac_tr_lib 1
4947 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4950 echo "$ac_t""no" 1>&6
4954 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4955 c_switch_site="$c_switch_site -threads" ;;
4958 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4959 echo "configure:4960: checking whether the -xildoff compiler flag is required" >&5
4960 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4961 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4962 then echo "$ac_t""no" 1>&6;
4963 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi
4965 else echo "$ac_t""no" 1>&6
4968 if test "$opsys" = "sol2"; then
4969 if test "$os_release" -ge 56; then
4970 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4971 echo "configure:4972: checking for \"-z ignore\" linker flag" >&5
4972 case "`ld -h 2>&1`" in
4973 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4974 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4975 *) echo "$ac_t""no" 1>&6 ;;
4981 echo "checking "for specified window system"" 1>&6
4982 echo "configure:4983: checking "for specified window system"" >&5
4984 if test "$with_x11" != "no"; then
4985 test "$x_includes $x_libraries" != "NONE NONE" && \
4986 window_system=x11 with_x11=yes
4989 if test "$x_includes $x_libraries" = "NONE NONE" \
4990 -a -n "$OPENWINHOME" \
4991 -a "$OPENWINHOME" != "/usr/openwin" \
4992 -a -d "$OPENWINHOME"; then
4993 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4994 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4995 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4998 if test "$x_includes" = "NONE"; then
4999 for dir in "/usr/X11" "/usr/X11R6"; do
5000 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5004 if test "$x_libraries" = "NONE"; then
5005 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5006 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5010 # If we find X, set shell vars x_includes and x_libraries to the
5011 # paths, otherwise set no_x=yes.
5012 # Uses ac_ vars as temps to allow command line to override cache and checks.
5013 # --without-x overrides everything else, but does not touch the cache.
5014 echo $ac_n "checking for X""... $ac_c" 1>&6
5015 echo "configure:5016: checking for X" >&5
5017 # Check whether --with-x or --without-x was given.
5018 if test "${with_x+set}" = set; then
5023 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5024 if test "x$with_x" = xno; then
5025 # The user explicitly disabled X.
5028 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5029 # Both variables are already set.
5033 # One or both of the vars are not set, and there is no cached value.
5034 ac_x_includes=NO ac_x_libraries=NO
5036 if mkdir conftestdir; then
5038 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5039 cat > Imakefile <<'EOF'
5041 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5043 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5044 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5045 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5046 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5047 for ac_extension in a so sl; do
5048 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5049 test -f $ac_im_libdir/libX11.$ac_extension; then
5050 ac_im_usrlibdir=$ac_im_libdir; break
5053 # Screen out bogus values from the imake configuration. They are
5054 # bogus both because they are the default anyway, and because
5055 # using them would break gcc on systems where it needs fixed includes.
5056 case "$ac_im_incroot" in
5058 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5060 case "$ac_im_usrlibdir" in
5062 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5069 if test "$ac_x_includes" = NO; then
5070 # Guess where to find include files, by looking for this one X11 .h file.
5071 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5073 # First, try using that file with no special directory specified.
5074 cat > conftest.$ac_ext <<EOF
5075 #line 5076 "configure"
5076 #include "confdefs.h"
5077 #include <$x_direct_test_include>
5079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5080 { (eval echo configure:5081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5082 if test -z "$ac_err"; then
5084 # We can compile using X headers with no special include directory.
5088 echo "configure: failed program was:" >&5
5089 cat conftest.$ac_ext >&5
5091 # Look for the header file in a standard set of common directories.
5092 # Check X11 before X11Rn because it is often a symlink to the current release.
5095 /usr/X11R6/include \
5096 /usr/X11R5/include \
5097 /usr/X11R4/include \
5100 /usr/include/X11R6 \
5101 /usr/include/X11R5 \
5102 /usr/include/X11R4 \
5104 /usr/local/X11/include \
5105 /usr/local/X11R6/include \
5106 /usr/local/X11R5/include \
5107 /usr/local/X11R4/include \
5109 /usr/local/include/X11 \
5110 /usr/local/include/X11R6 \
5111 /usr/local/include/X11R5 \
5112 /usr/local/include/X11R4 \
5116 /usr/XFree86/include/X11 \
5119 /usr/local/include \
5120 /usr/unsupported/include \
5121 /usr/athena/include \
5122 /usr/local/x11r5/include \
5123 /usr/lpp/Xamples/include \
5125 /usr/openwin/include \
5126 /usr/openwin/share/include \
5129 if test -r "$ac_dir/$x_direct_test_include"; then
5130 ac_x_includes=$ac_dir
5136 fi # $ac_x_includes = NO
5138 if test "$ac_x_libraries" = NO; then
5139 # Check for the libraries.
5141 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5142 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5144 # See if we find them without any special options.
5145 # Don't add to $LIBS permanently.
5146 ac_save_LIBS="$LIBS"
5147 LIBS="-l$x_direct_test_library $LIBS"
5148 cat > conftest.$ac_ext <<EOF
5149 #line 5150 "configure"
5150 #include "confdefs.h"
5153 ${x_direct_test_function}()
5156 if { (eval echo configure:5157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5158 LIBS="$ac_save_LIBS"
5159 # We can link X programs with no special library path.
5162 echo "configure: failed program was:" >&5
5163 cat conftest.$ac_ext >&5
5165 LIBS="$ac_save_LIBS"
5166 # First see if replacing the include by lib works.
5167 # Check X11 before X11Rn because it is often a symlink to the current release.
5168 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5179 /usr/local/X11/lib \
5180 /usr/local/X11R6/lib \
5181 /usr/local/X11R5/lib \
5182 /usr/local/X11R4/lib \
5184 /usr/local/lib/X11 \
5185 /usr/local/lib/X11R6 \
5186 /usr/local/lib/X11R5 \
5187 /usr/local/lib/X11R4 \
5191 /usr/XFree86/lib/X11 \
5195 /usr/unsupported/lib \
5197 /usr/local/x11r5/lib \
5198 /usr/lpp/Xamples/lib \
5202 /usr/openwin/share/lib \
5205 for ac_extension in a so sl; do
5206 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5207 ac_x_libraries=$ac_dir
5214 fi # $ac_x_libraries = NO
5216 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5217 # Didn't find X anywhere. Cache the known absence of X.
5218 ac_cv_have_x="have_x=no"
5220 # Record where we found X for the cache.
5221 ac_cv_have_x="have_x=yes \
5222 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5225 eval "$ac_cv_have_x"
5228 if test "$have_x" != yes; then
5229 echo "$ac_t""$have_x" 1>&6
5232 # If each of the values was on the command line, it overrides each guess.
5233 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5234 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5235 # Update the cache value to reflect the command line values.
5236 ac_cv_have_x="have_x=yes \
5237 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5238 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5241 if test "$no_x" = yes; then
5242 # Not all programs may use this symbol, but it does not hurt to define it.
5243 { test "$extra_verbose" = "yes" && cat << \EOF
5244 Defining X_DISPLAY_MISSING
5246 cat >> confdefs.h <<\EOF
5247 #define X_DISPLAY_MISSING 1
5251 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5253 if test -n "$x_includes"; then
5254 X_CFLAGS="$X_CFLAGS -I$x_includes"
5257 # It would also be nice to do this for all -L options, not just this one.
5258 if test -n "$x_libraries"; then
5259 X_LIBS="$X_LIBS -L$x_libraries"
5260 # For Solaris; some versions of Sun CC require a space after -R and
5261 # others require no space. Words are not sufficient . . . .
5262 case "`(uname -sr) 2>/dev/null`" in
5264 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5265 echo "configure:5266: checking whether -R must be followed by a space" >&5
5266 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5267 cat > conftest.$ac_ext <<EOF
5268 #line 5269 "configure"
5269 #include "confdefs.h"
5275 if { (eval echo configure:5276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5285 if test $ac_R_nospace = yes; then
5286 echo "$ac_t""no" 1>&6
5287 X_LIBS="$X_LIBS -R$x_libraries"
5289 LIBS="$ac_xsave_LIBS -R $x_libraries"
5290 cat > conftest.$ac_ext <<EOF
5291 #line 5292 "configure"
5292 #include "confdefs.h"
5298 if { (eval echo configure:5299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5302 echo "configure: failed program was:" >&5
5303 cat conftest.$ac_ext >&5
5308 if test $ac_R_space = yes; then
5309 echo "$ac_t""yes" 1>&6
5310 X_LIBS="$X_LIBS -R $x_libraries"
5312 echo "$ac_t""neither works" 1>&6
5315 LIBS="$ac_xsave_LIBS"
5319 # Check for system-dependent libraries X programs must link with.
5320 # Do this before checking for the system-independent R6 libraries
5321 # (-lICE), since we may need -lsocket or whatever for X linking.
5323 if test "$ISC" = yes; then
5324 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5326 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5327 # libraries were built with DECnet support. And karl@cs.umb.edu says
5328 # the Alpha needs dnet_stub (dnet does not exist).
5329 if test "$with_dnet" = "no" ; then
5330 ac_cv_lib_dnet_dnet_ntoa=no
5333 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5334 echo "configure:5335: checking for dnet_ntoa in -ldnet" >&5
5335 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5337 xe_check_libs=" -ldnet "
5338 cat > conftest.$ac_ext <<EOF
5339 #line 5340 "configure"
5340 #include "confdefs.h"
5341 /* Override any gcc2 internal prototype to avoid an error. */
5342 /* We use char because int might match the return type of a gcc2
5343 builtin and then its argument prototype would still apply. */
5350 if { (eval echo configure:5351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5352 eval "ac_cv_lib_$ac_lib_var=yes"
5354 echo "configure: failed program was:" >&5
5355 cat conftest.$ac_ext >&5
5357 eval "ac_cv_lib_$ac_lib_var=no"
5362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5363 echo "$ac_t""yes" 1>&6
5364 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5366 echo "$ac_t""no" 1>&6
5371 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5373 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5374 echo "configure:5375: checking for dnet_ntoa in -ldnet_stub" >&5
5375 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5377 xe_check_libs=" -ldnet_stub "
5378 cat > conftest.$ac_ext <<EOF
5379 #line 5380 "configure"
5380 #include "confdefs.h"
5381 /* Override any gcc2 internal prototype to avoid an error. */
5382 /* We use char because int might match the return type of a gcc2
5383 builtin and then its argument prototype would still apply. */
5390 if { (eval echo configure:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5392 eval "ac_cv_lib_$ac_lib_var=yes"
5394 echo "configure: failed program was:" >&5
5395 cat conftest.$ac_ext >&5
5397 eval "ac_cv_lib_$ac_lib_var=no"
5402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5403 echo "$ac_t""yes" 1>&6
5404 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5406 echo "$ac_t""no" 1>&6
5412 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5413 # to get the SysV transport functions.
5414 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5416 # The nsl library prevents programs from opening the X display
5417 # on Irix 5.2, according to dickey@clark.net.
5418 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5419 echo "configure:5420: checking for gethostbyname" >&5
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5424 /* System header to define __stub macros and hopefully few prototypes,
5425 which can conflict with char gethostbyname(); below. */
5427 /* Override any gcc2 internal prototype to avoid an error. */
5428 /* We use char because int might match the return type of a gcc2
5429 builtin and then its argument prototype would still apply. */
5430 char gethostbyname();
5434 /* The GNU C library defines this for functions which it implements
5435 to always fail with ENOSYS. Some functions are actually named
5436 something starting with __ and the normal name is an alias. */
5437 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5445 if { (eval echo configure:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5447 eval "ac_cv_func_gethostbyname=yes"
5449 echo "configure: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5452 eval "ac_cv_func_gethostbyname=no"
5456 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5457 echo "$ac_t""yes" 1>&6
5460 echo "$ac_t""no" 1>&6
5463 if test $ac_cv_func_gethostbyname = no; then
5465 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5466 echo "configure:5467: checking for gethostbyname in -lnsl" >&5
5467 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5469 xe_check_libs=" -lnsl "
5470 cat > conftest.$ac_ext <<EOF
5471 #line 5472 "configure"
5472 #include "confdefs.h"
5473 /* Override any gcc2 internal prototype to avoid an error. */
5474 /* We use char because int might match the return type of a gcc2
5475 builtin and then its argument prototype would still apply. */
5476 char gethostbyname();
5482 if { (eval echo configure:5483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5484 eval "ac_cv_lib_$ac_lib_var=yes"
5486 echo "configure: failed program was:" >&5
5487 cat conftest.$ac_ext >&5
5489 eval "ac_cv_lib_$ac_lib_var=no"
5494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5495 echo "$ac_t""yes" 1>&6
5496 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5498 echo "$ac_t""no" 1>&6
5504 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5505 # socket/setsockopt and other routines are undefined under SCO ODT
5506 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5507 # on later versions), says simon@lia.di.epfl.ch: it contains
5508 # gethostby* variants that don't use the nameserver (or something).
5509 # -lsocket must be given before -lnsl if both are needed.
5510 # We assume that if connect needs -lnsl, so does gethostbyname.
5511 echo $ac_n "checking for connect""... $ac_c" 1>&6
5512 echo "configure:5513: checking for connect" >&5
5514 cat > conftest.$ac_ext <<EOF
5515 #line 5516 "configure"
5516 #include "confdefs.h"
5517 /* System header to define __stub macros and hopefully few prototypes,
5518 which can conflict with char connect(); below. */
5520 /* Override any gcc2 internal prototype to avoid an error. */
5521 /* We use char because int might match the return type of a gcc2
5522 builtin and then its argument prototype would still apply. */
5527 /* The GNU C library defines this for functions which it implements
5528 to always fail with ENOSYS. Some functions are actually named
5529 something starting with __ and the normal name is an alias. */
5530 #if defined (__stub_connect) || defined (__stub___connect)
5538 if { (eval echo configure:5539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5540 eval "ac_cv_func_connect=yes"
5542 echo "configure: failed program was:" >&5
5543 cat conftest.$ac_ext >&5
5545 eval "ac_cv_func_connect=no"
5549 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5550 echo "$ac_t""yes" 1>&6
5553 echo "$ac_t""no" 1>&6
5556 if test $ac_cv_func_connect = no; then
5558 xe_msg_checking="for connect in -lsocket"
5559 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5560 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5561 echo "configure:5562: checking "$xe_msg_checking"" >&5
5562 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5564 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5565 cat > conftest.$ac_ext <<EOF
5566 #line 5567 "configure"
5567 #include "confdefs.h"
5568 /* Override any gcc2 internal prototype to avoid an error. */
5569 /* We use char because int might match the return type of a gcc2
5570 builtin and then its argument prototype would still apply. */
5577 if { (eval echo configure:5578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5579 eval "ac_cv_lib_$ac_lib_var=yes"
5581 echo "configure: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5584 eval "ac_cv_lib_$ac_lib_var=no"
5589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5590 echo "$ac_t""yes" 1>&6
5591 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5593 echo "$ac_t""no" 1>&6
5599 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5600 echo $ac_n "checking for remove""... $ac_c" 1>&6
5601 echo "configure:5602: checking for remove" >&5
5603 cat > conftest.$ac_ext <<EOF
5604 #line 5605 "configure"
5605 #include "confdefs.h"
5606 /* System header to define __stub macros and hopefully few prototypes,
5607 which can conflict with char remove(); below. */
5609 /* Override any gcc2 internal prototype to avoid an error. */
5610 /* We use char because int might match the return type of a gcc2
5611 builtin and then its argument prototype would still apply. */
5616 /* The GNU C library defines this for functions which it implements
5617 to always fail with ENOSYS. Some functions are actually named
5618 something starting with __ and the normal name is an alias. */
5619 #if defined (__stub_remove) || defined (__stub___remove)
5627 if { (eval echo configure:5628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5629 eval "ac_cv_func_remove=yes"
5631 echo "configure: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5634 eval "ac_cv_func_remove=no"
5638 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5639 echo "$ac_t""yes" 1>&6
5642 echo "$ac_t""no" 1>&6
5645 if test $ac_cv_func_remove = no; then
5647 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5648 echo "configure:5649: checking for remove in -lposix" >&5
5649 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5651 xe_check_libs=" -lposix "
5652 cat > conftest.$ac_ext <<EOF
5653 #line 5654 "configure"
5654 #include "confdefs.h"
5655 /* Override any gcc2 internal prototype to avoid an error. */
5656 /* We use char because int might match the return type of a gcc2
5657 builtin and then its argument prototype would still apply. */
5664 if { (eval echo configure:5665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5666 eval "ac_cv_lib_$ac_lib_var=yes"
5668 echo "configure: failed program was:" >&5
5669 cat conftest.$ac_ext >&5
5671 eval "ac_cv_lib_$ac_lib_var=no"
5676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5677 echo "$ac_t""yes" 1>&6
5678 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5680 echo "$ac_t""no" 1>&6
5686 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5687 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5688 echo "configure:5689: checking for shmat" >&5
5690 cat > conftest.$ac_ext <<EOF
5691 #line 5692 "configure"
5692 #include "confdefs.h"
5693 /* System header to define __stub macros and hopefully few prototypes,
5694 which can conflict with char shmat(); below. */
5696 /* Override any gcc2 internal prototype to avoid an error. */
5697 /* We use char because int might match the return type of a gcc2
5698 builtin and then its argument prototype would still apply. */
5703 /* The GNU C library defines this for functions which it implements
5704 to always fail with ENOSYS. Some functions are actually named
5705 something starting with __ and the normal name is an alias. */
5706 #if defined (__stub_shmat) || defined (__stub___shmat)
5714 if { (eval echo configure:5715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5716 eval "ac_cv_func_shmat=yes"
5718 echo "configure: failed program was:" >&5
5719 cat conftest.$ac_ext >&5
5721 eval "ac_cv_func_shmat=no"
5725 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5726 echo "$ac_t""yes" 1>&6
5729 echo "$ac_t""no" 1>&6
5732 if test $ac_cv_func_shmat = no; then
5734 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5735 echo "configure:5736: checking for shmat in -lipc" >&5
5736 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5738 xe_check_libs=" -lipc "
5739 cat > conftest.$ac_ext <<EOF
5740 #line 5741 "configure"
5741 #include "confdefs.h"
5742 /* Override any gcc2 internal prototype to avoid an error. */
5743 /* We use char because int might match the return type of a gcc2
5744 builtin and then its argument prototype would still apply. */
5751 if { (eval echo configure:5752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5753 eval "ac_cv_lib_$ac_lib_var=yes"
5755 echo "configure: failed program was:" >&5
5756 cat conftest.$ac_ext >&5
5758 eval "ac_cv_lib_$ac_lib_var=no"
5763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5764 echo "$ac_t""yes" 1>&6
5765 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5767 echo "$ac_t""no" 1>&6
5774 # Check for libraries that X11R6 Xt/Xaw programs need.
5775 ac_save_LDFLAGS="$LDFLAGS"
5776 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5777 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5778 # check for ICE first), but we must link in the order -lSM -lICE or
5779 # we get undefined symbols. So assume we have SM if we have ICE.
5780 # These have to be linked with before -lX11, unlike the other
5781 # libraries we check for below, so use a different variable.
5782 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5784 xe_msg_checking="for IceConnectionNumber in -lICE"
5785 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5786 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5787 echo "configure:5788: checking "$xe_msg_checking"" >&5
5788 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5790 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5791 cat > conftest.$ac_ext <<EOF
5792 #line 5793 "configure"
5793 #include "confdefs.h"
5794 /* Override any gcc2 internal prototype to avoid an error. */
5795 /* We use char because int might match the return type of a gcc2
5796 builtin and then its argument prototype would still apply. */
5797 char IceConnectionNumber();
5800 IceConnectionNumber()
5803 if { (eval echo configure:5804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5805 eval "ac_cv_lib_$ac_lib_var=yes"
5807 echo "configure: failed program was:" >&5
5808 cat conftest.$ac_ext >&5
5810 eval "ac_cv_lib_$ac_lib_var=no"
5815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5816 echo "$ac_t""yes" 1>&6
5817 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5819 echo "$ac_t""no" 1>&6
5823 LDFLAGS="$ac_save_LDFLAGS"
5826 # Autoconf claims to find X library and include dirs for us.
5827 if test "$no_x" = "yes"
5828 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5829 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5834 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5835 no ) window_system=none HAVE_X_WINDOWS=no ;;
5838 if test "$with_x11" = "yes"; then
5839 { test "$extra_verbose" = "yes" && cat << \EOF
5840 Defining HAVE_X_WINDOWS
5842 cat >> confdefs.h <<\EOF
5843 #define HAVE_X_WINDOWS 1
5847 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5848 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5850 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5851 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5852 if test -d "$lib_dir" -a -d "$inc_dir"; then
5853 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5854 x_libraries="$lib_dir $x_libraries"
5855 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5857 case "$x_includes" in "$inc_dir"* ) ;; *)
5858 x_includes="$inc_dir $x_includes"
5859 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5864 for rel in "X11R6" "X11R5" "X11R4"; do
5865 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5866 if test -d "$lib_dir" -a -d "$inc_dir"; then
5867 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5868 x_libraries="$x_libraries $lib_dir"
5869 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5871 case "$x_includes" in "$inc_dir"* ) ;; *)
5872 x_includes="$x_includes $inc_dir"
5873 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5879 decosf*) if test "$GCC" = yes -a -d /usr/shlib; then X_LIBS="$X_LIBS -L/usr/shlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L/usr/shlib\" to \$X_LIBS"; fi; fi ;;
5882 ld_switch_x_site="$X_LIBS"
5885 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5886 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5887 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5889 runpath="" runpath_dirs=""
5890 if test -n "$LD_RUN_PATH"; then
5891 runpath="$LD_RUN_PATH"
5892 elif test "$GCC" = "yes"; then
5893 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5894 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5895 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5896 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5897 case "$arg" in P,* | -L* | -R* )
5898 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5900 xe_runpath_dir="$dir"
5901 test "$xe_runpath_dir" != "/lib" -a \
5902 "$xe_runpath_dir" != "/usr/lib" -a \
5903 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5904 eval "$xe_add_unique_runpath_dir"
5909 ld_switch_run="$ld_switch_run_save"
5912 for arg in $ld_switch_site $ld_switch_x_site; do
5913 case "$arg" in -L*) {
5914 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5915 test "$xe_runpath_dir" != "/lib" -a \
5916 "$xe_runpath_dir" != "/usr/lib" -a \
5917 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5918 eval "$xe_add_unique_runpath_dir"
5921 if test "$opsys $need_motif" = "sol2 yes"; then
5922 xe_runpath_dir="/opt/SUNWdt/lib";
5923 eval "$xe_add_unique_runpath_dir";
5926 if test -n "$runpath"; then
5927 ld_switch_run="${dash_r}${runpath}"
5929 if test "$GCC" = "yes"; then
5930 set x $ld_switch_run; shift; ld_switch_run=""
5931 while test -n "$1"; do
5933 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5934 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5936 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5941 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5946 if test "$extra_verbose" = "yes"; then
5947 echo; echo "X11 compilation variables:"
5948 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5953 if test "$x_includes" != NONE; then
5954 for i in $x_includes; do
5955 if test -d "$i/bitmaps"; then
5956 bitmapdirs="$i/bitmaps:$bitmapdirs"
5958 if test -d "$i/X11/bitmaps"; then
5959 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5962 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5964 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5965 Defining BITMAPDIR = "$bitmapdirs"
5967 cat >> confdefs.h <<EOF
5968 #define BITMAPDIR "$bitmapdirs"
5973 echo "checking for X defines extracted by xmkmf" 1>&6
5974 echo "configure:5975: checking for X defines extracted by xmkmf" >&5
5976 if mkdir conftestdir; then
5978 cat > Imakefile <<'EOF'
5980 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5982 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5983 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5984 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5988 for word in $xmkmf_defines; do
5989 case "$word" in -D* )
5990 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
5992 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
5995 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
5996 if test "$val" = "1"
5997 then { test "$extra_verbose" = "yes" && cat << EOF
6000 cat >> confdefs.h <<EOF
6005 else { test "$extra_verbose" = "yes" && cat << EOF
6006 Defining $sym = $val
6008 cat >> confdefs.h <<EOF
6019 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6020 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6021 echo "configure:6022: checking for X11/Intrinsic.h" >&5
6023 cat > conftest.$ac_ext <<EOF
6024 #line 6025 "configure"
6025 #include "confdefs.h"
6026 #include <X11/Intrinsic.h>
6028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6029 { (eval echo configure:6030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6031 if test -z "$ac_err"; then
6033 eval "ac_cv_header_$ac_safe=yes"
6036 echo "configure: failed program was:" >&5
6037 cat conftest.$ac_ext >&5
6039 eval "ac_cv_header_$ac_safe=no"
6042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6043 echo "$ac_t""yes" 1>&6
6046 echo "$ac_t""no" 1>&6
6047 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6052 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6053 echo "configure:6054: checking for XOpenDisplay in -lX11" >&5
6054 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6056 xe_check_libs=" -lX11 "
6057 cat > conftest.$ac_ext <<EOF
6058 #line 6059 "configure"
6059 #include "confdefs.h"
6060 /* Override any gcc2 internal prototype to avoid an error. */
6061 /* We use char because int might match the return type of a gcc2
6062 builtin and then its argument prototype would still apply. */
6063 char XOpenDisplay();
6069 if { (eval echo configure:6070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6071 eval "ac_cv_lib_$ac_lib_var=yes"
6073 echo "configure: failed program was:" >&5
6074 cat conftest.$ac_ext >&5
6076 eval "ac_cv_lib_$ac_lib_var=no"
6081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6082 echo "$ac_t""yes" 1>&6
6085 echo "$ac_t""no" 1>&6
6089 if test "$have_lib_x11" != "yes"; then
6091 xe_msg_checking="for XGetFontProperty in -lX11"
6092 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6093 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6094 echo "configure:6095: checking "$xe_msg_checking"" >&5
6095 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6097 xe_check_libs=" -lX11 -b i486-linuxaout"
6098 cat > conftest.$ac_ext <<EOF
6099 #line 6100 "configure"
6100 #include "confdefs.h"
6101 /* Override any gcc2 internal prototype to avoid an error. */
6102 /* We use char because int might match the return type of a gcc2
6103 builtin and then its argument prototype would still apply. */
6104 char XGetFontProperty();
6110 if { (eval echo configure:6111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6112 eval "ac_cv_lib_$ac_lib_var=yes"
6114 echo "configure: failed program was:" >&5
6115 cat conftest.$ac_ext >&5
6117 eval "ac_cv_lib_$ac_lib_var=no"
6122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6123 echo "$ac_t""yes" 1>&6
6124 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6126 echo "$ac_t""no" 1>&6
6127 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6133 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6136 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6137 echo "configure:6138: checking for XShapeSelectInput in -lXext" >&5
6138 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6140 xe_check_libs=" -lXext "
6141 cat > conftest.$ac_ext <<EOF
6142 #line 6143 "configure"
6143 #include "confdefs.h"
6144 /* Override any gcc2 internal prototype to avoid an error. */
6145 /* We use char because int might match the return type of a gcc2
6146 builtin and then its argument prototype would still apply. */
6147 char XShapeSelectInput();
6153 if { (eval echo configure:6154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6155 eval "ac_cv_lib_$ac_lib_var=yes"
6157 echo "configure: failed program was:" >&5
6158 cat conftest.$ac_ext >&5
6160 eval "ac_cv_lib_$ac_lib_var=no"
6165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6166 echo "$ac_t""yes" 1>&6
6167 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6169 echo "$ac_t""no" 1>&6
6175 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6176 echo "configure:6177: checking for XtOpenDisplay in -lXt" >&5
6177 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6179 xe_check_libs=" -lXt "
6180 cat > conftest.$ac_ext <<EOF
6181 #line 6182 "configure"
6182 #include "confdefs.h"
6183 /* Override any gcc2 internal prototype to avoid an error. */
6184 /* We use char because int might match the return type of a gcc2
6185 builtin and then its argument prototype would still apply. */
6186 char XtOpenDisplay();
6192 if { (eval echo configure:6193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6194 eval "ac_cv_lib_$ac_lib_var=yes"
6196 echo "configure: failed program was:" >&5
6197 cat conftest.$ac_ext >&5
6199 eval "ac_cv_lib_$ac_lib_var=no"
6204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6205 echo "$ac_t""yes" 1>&6
6206 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6208 echo "$ac_t""no" 1>&6
6209 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6214 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6215 echo "configure:6216: checking the version of X11 being used" >&5
6216 cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6219 #include <X11/Intrinsic.h>
6220 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6222 if { (eval echo configure:6223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6224 ./conftest foobar; x11_release=$?
6227 echo "configure: failed program was:" >&5
6228 cat conftest.$ac_ext >&5
6233 echo "$ac_t""R${x11_release}" 1>&6
6234 { test "$extra_verbose" = "yes" && cat << EOF
6235 Defining THIS_IS_X11R${x11_release}
6237 cat >> confdefs.h <<EOF
6238 #define THIS_IS_X11R${x11_release} 1
6243 if test "${x11_release}" = "4"; then
6244 case "$with_widgets" in
6245 "" | "no") with_widgets=no ;;
6246 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6250 for ac_func in XConvertCase
6252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6253 echo "configure:6254: checking for $ac_func" >&5
6255 cat > conftest.$ac_ext <<EOF
6256 #line 6257 "configure"
6257 #include "confdefs.h"
6258 /* System header to define __stub macros and hopefully few prototypes,
6259 which can conflict with char $ac_func(); below. */
6261 /* Override any gcc2 internal prototype to avoid an error. */
6262 /* We use char because int might match the return type of a gcc2
6263 builtin and then its argument prototype would still apply. */
6268 /* The GNU C library defines this for functions which it implements
6269 to always fail with ENOSYS. Some functions are actually named
6270 something starting with __ and the normal name is an alias. */
6271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6279 if { (eval echo configure:6280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6281 eval "ac_cv_func_$ac_func=yes"
6283 echo "configure: failed program was:" >&5
6284 cat conftest.$ac_ext >&5
6286 eval "ac_cv_func_$ac_func=no"
6290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6291 echo "$ac_t""yes" 1>&6
6292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6293 { test "$extra_verbose" = "yes" && cat << EOF
6294 Defining $ac_tr_func
6296 cat >> confdefs.h <<EOF
6297 #define $ac_tr_func 1
6302 echo "$ac_t""no" 1>&6
6307 for ac_hdr in X11/Xlocale.h
6309 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6310 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6311 echo "configure:6312: checking for $ac_hdr" >&5
6313 cat > conftest.$ac_ext <<EOF
6314 #line 6315 "configure"
6315 #include "confdefs.h"
6318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6319 { (eval echo configure:6320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6321 if test -z "$ac_err"; then
6323 eval "ac_cv_header_$ac_safe=yes"
6326 echo "configure: failed program was:" >&5
6327 cat conftest.$ac_ext >&5
6329 eval "ac_cv_header_$ac_safe=no"
6332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6333 echo "$ac_t""yes" 1>&6
6334 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6335 { test "$extra_verbose" = "yes" && cat << EOF
6338 cat >> confdefs.h <<EOF
6339 #define $ac_tr_hdr 1
6344 echo "$ac_t""no" 1>&6
6349 for ac_func in XRegisterIMInstantiateCallback
6351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6352 echo "configure:6353: checking for $ac_func" >&5
6354 cat > conftest.$ac_ext <<EOF
6355 #line 6356 "configure"
6356 #include "confdefs.h"
6357 /* System header to define __stub macros and hopefully few prototypes,
6358 which can conflict with char $ac_func(); below. */
6360 /* Override any gcc2 internal prototype to avoid an error. */
6361 /* We use char because int might match the return type of a gcc2
6362 builtin and then its argument prototype would still apply. */
6367 /* The GNU C library defines this for functions which it implements
6368 to always fail with ENOSYS. Some functions are actually named
6369 something starting with __ and the normal name is an alias. */
6370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6378 if { (eval echo configure:6379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6380 eval "ac_cv_func_$ac_func=yes"
6382 echo "configure: failed program was:" >&5
6383 cat conftest.$ac_ext >&5
6385 eval "ac_cv_func_$ac_func=no"
6389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6390 echo "$ac_t""yes" 1>&6
6391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6392 { test "$extra_verbose" = "yes" && cat << EOF
6393 Defining $ac_tr_func
6395 cat >> confdefs.h <<EOF
6396 #define $ac_tr_func 1
6401 echo "$ac_t""no" 1>&6
6405 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6406 echo "configure:6407: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6407 cat > conftest.$ac_ext <<EOF
6408 #line 6409 "configure"
6409 #include "confdefs.h"
6411 #define NeedFunctionPrototypes 1
6412 #include <X11/Xlib.h>
6413 extern Bool XRegisterIMInstantiateCallback(
6414 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6420 if { (eval echo configure:6421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6422 echo "$ac_t""yes" 1>&6
6424 echo "configure: failed program was:" >&5
6425 cat conftest.$ac_ext >&5
6427 echo "$ac_t""no" 1>&6
6428 { test "$extra_verbose" = "yes" && cat << \EOF
6429 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6431 cat >> confdefs.h <<\EOF
6432 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6439 test -z "$with_xmu" && {
6440 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6441 echo "configure:6442: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6442 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6444 xe_check_libs=" -lXmu "
6445 cat > conftest.$ac_ext <<EOF
6446 #line 6447 "configure"
6447 #include "confdefs.h"
6448 /* Override any gcc2 internal prototype to avoid an error. */
6449 /* We use char because int might match the return type of a gcc2
6450 builtin and then its argument prototype would still apply. */
6451 char XmuReadBitmapDataFromFile();
6454 XmuReadBitmapDataFromFile()
6457 if { (eval echo configure:6458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6459 eval "ac_cv_lib_$ac_lib_var=yes"
6461 echo "configure: failed program was:" >&5
6462 cat conftest.$ac_ext >&5
6464 eval "ac_cv_lib_$ac_lib_var=no"
6469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6470 echo "$ac_t""yes" 1>&6
6473 echo "$ac_t""no" 1>&6
6478 if test "$with_xmu" = "no"; then
6479 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6480 echo " xemacs will be linked with \"xmu.o\""
6483 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6484 { test "$extra_verbose" = "yes" && cat << \EOF
6487 cat >> confdefs.h <<\EOF
6495 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6496 echo "configure:6497: checking for main in -lXbsd" >&5
6497 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6499 xe_check_libs=" -lXbsd "
6500 cat > conftest.$ac_ext <<EOF
6501 #line 6502 "configure"
6502 #include "confdefs.h"
6508 if { (eval echo configure:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6510 eval "ac_cv_lib_$ac_lib_var=yes"
6512 echo "configure: failed program was:" >&5
6513 cat conftest.$ac_ext >&5
6515 eval "ac_cv_lib_$ac_lib_var=no"
6520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6521 echo "$ac_t""yes" 1>&6
6522 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6524 echo "$ac_t""no" 1>&6
6529 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6530 if test "$GCC" = "yes"; then
6531 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6532 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6535 "xlc" ) CC="xlc_r" ;;
6536 "xlC" ) CC="xlC_r" ;;
6543 if test "$with_msw" != "no"; then
6544 echo "checking for MS-Windows" 1>&6
6545 echo "configure:6546: checking for MS-Windows" >&5
6547 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6548 echo "configure:6549: checking for main in -lgdi32" >&5
6549 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6551 xe_check_libs=" -lgdi32 "
6552 cat > conftest.$ac_ext <<EOF
6553 #line 6554 "configure"
6554 #include "confdefs.h"
6560 if { (eval echo configure:6561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6562 eval "ac_cv_lib_$ac_lib_var=yes"
6564 echo "configure: failed program was:" >&5
6565 cat conftest.$ac_ext >&5
6567 eval "ac_cv_lib_$ac_lib_var=no"
6572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6573 echo "$ac_t""yes" 1>&6
6576 echo "$ac_t""no" 1>&6
6580 if test "$with_msw" = "yes"; then
6581 { test "$extra_verbose" = "yes" && cat << \EOF
6582 Defining HAVE_MS_WINDOWS
6584 cat >> confdefs.h <<\EOF
6585 #define HAVE_MS_WINDOWS 1
6590 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
6591 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
6592 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
6594 install_pp="$blddir/lib-src/installexe.sh"
6595 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
6596 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6597 if test "$window_system" != x11; then
6599 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6600 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6601 echo " xemacs will be linked with \"scrollbar-msw.o\""
6603 test "$with_menubars" != "no" && with_menubars=msw \
6604 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6605 echo " xemacs will be linked with \"menubar-msw.o\""
6607 test "$with_toolbars" != "no" && with_toolbars=msw \
6608 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6609 echo " xemacs will be linked with \"toolbar-msw.o\""
6611 test "$with_dialogs" != "no" && with_dialogs=msw \
6612 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6613 echo " xemacs will be linked with \"dialog-msw.o\""
6615 test "$with_widgets" != "no" && with_widgets=msw
6617 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6618 echo " xemacs will be linked with \"scrollbar-msw.o\""
6620 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6621 echo " xemacs will be linked with \"menubar-msw.o\""
6623 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6624 echo " xemacs will be linked with \"toolbar-msw.o\""
6626 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6627 echo " xemacs will be linked with \"dialog-msw.o\""
6630 cat > conftest.$ac_ext <<EOF
6631 #line 6632 "configure"
6632 #include "confdefs.h"
6634 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6636 if { (eval echo configure:6637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6638 { test "$extra_verbose" = "yes" && cat << \EOF
6639 Defining HAVE_MSG_SELECT
6641 cat >> confdefs.h <<\EOF
6642 #define HAVE_MSG_SELECT 1
6648 echo "configure: failed program was:" >&5
6649 cat conftest.$ac_ext >&5
6652 with_file_coding=yes
6653 extra_objs="$extra_objs console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o" && if test "$extra_verbose" = "yes"; then
6654 echo " xemacs will be linked with \"console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o\""
6661 test -z "$window_system" && window_system="none"
6663 if test "$window_system" = "none"; then
6664 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6666 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6667 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6669 eval "with_${feature}=no"
6672 test -z "$with_toolbars" && with_toolbars=yes
6675 if test "$with_msw" != "yes"; then
6676 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6678 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6679 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6681 eval "with_${feature}=no"
6687 if test "$with_x11" != "yes"; then
6688 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
6690 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6691 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6693 eval "with_${feature}=no"
6697 if test "$with_x11" = "yes"; then
6698 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
6699 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
6700 echo "configure:6701: checking for X11/extensions/shape.h" >&5
6702 cat > conftest.$ac_ext <<EOF
6703 #line 6704 "configure"
6704 #include "confdefs.h"
6705 #include <X11/extensions/shape.h>
6707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6708 { (eval echo configure:6709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6710 if test -z "$ac_err"; then
6712 eval "ac_cv_header_$ac_safe=yes"
6715 echo "configure: failed program was:" >&5
6716 cat conftest.$ac_ext >&5
6718 eval "ac_cv_header_$ac_safe=no"
6721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6722 echo "$ac_t""yes" 1>&6
6724 { test "$extra_verbose" = "yes" && cat << \EOF
6725 Defining HAVE_BALLOON_HELP
6727 cat >> confdefs.h <<\EOF
6728 #define HAVE_BALLOON_HELP 1
6732 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
6733 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
6736 echo "$ac_t""no" 1>&6
6743 case "$window_system" in
6744 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6745 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6746 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6749 case "$x_libraries" in *X11R4* )
6750 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6751 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6754 echo "checking for WM_COMMAND option" 1>&6
6755 echo "configure:6756: checking for WM_COMMAND option" >&5;
6756 if test "$with_wmcommand" != "no"; then
6757 { test "$extra_verbose" = "yes" && cat << \EOF
6758 Defining HAVE_WMCOMMAND
6760 cat >> confdefs.h <<\EOF
6761 #define HAVE_WMCOMMAND 1
6767 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6768 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6769 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6770 echo "configure:6771: checking for X11/Xauth.h" >&5
6772 cat > conftest.$ac_ext <<EOF
6773 #line 6774 "configure"
6774 #include "confdefs.h"
6775 #include <X11/Xauth.h>
6777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6778 { (eval echo configure:6779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6780 if test -z "$ac_err"; then
6782 eval "ac_cv_header_$ac_safe=yes"
6785 echo "configure: failed program was:" >&5
6786 cat conftest.$ac_ext >&5
6788 eval "ac_cv_header_$ac_safe=no"
6791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6792 echo "$ac_t""yes" 1>&6
6795 echo "$ac_t""no" 1>&6
6799 test -z "$with_xauth" && {
6800 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6801 echo "configure:6802: checking for XauGetAuthByAddr in -lXau" >&5
6802 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6804 xe_check_libs=" -lXau "
6805 cat > conftest.$ac_ext <<EOF
6806 #line 6807 "configure"
6807 #include "confdefs.h"
6808 /* Override any gcc2 internal prototype to avoid an error. */
6809 /* We use char because int might match the return type of a gcc2
6810 builtin and then its argument prototype would still apply. */
6811 char XauGetAuthByAddr();
6817 if { (eval echo configure:6818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6819 eval "ac_cv_lib_$ac_lib_var=yes"
6821 echo "configure: failed program was:" >&5
6822 cat conftest.$ac_ext >&5
6824 eval "ac_cv_lib_$ac_lib_var=no"
6829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6830 echo "$ac_t""yes" 1>&6
6833 echo "$ac_t""no" 1>&6
6838 test -z "$with_xauth" && with_xauth=yes
6839 if test "$with_xauth" = "yes"; then
6840 { test "$extra_verbose" = "yes" && cat << \EOF
6843 cat >> confdefs.h <<\EOF
6844 #define HAVE_XAUTH 1
6850 for W in $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
6858 if test "$with_tooltalk" != "no" ; then
6859 for dir in "" "Tt/" "desktop/" ; do
6860 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6861 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6862 echo "configure:6863: checking for ${dir}tt_c.h" >&5
6864 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6867 #include <${dir}tt_c.h>
6869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6870 { (eval echo configure:6871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6872 if test -z "$ac_err"; then
6874 eval "ac_cv_header_$ac_safe=yes"
6877 echo "configure: failed program was:" >&5
6878 cat conftest.$ac_ext >&5
6880 eval "ac_cv_header_$ac_safe=no"
6883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6884 echo "$ac_t""yes" 1>&6
6885 tt_c_h_file="${dir}tt_c.h"; break
6887 echo "$ac_t""no" 1>&6
6891 if test -z "$tt_c_h_file"; then
6892 if test "$with_tooltalk" = "yes"; then
6893 (echo "$progname: Usage error:"
6894 echo " " "Unable to find required tooltalk header files."
6895 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6900 if test "$with_tooltalk" != "no" ; then
6901 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6903 xe_msg_checking="for tt_message_create in -ltt"
6904 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6905 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6906 echo "configure:6907: checking "$xe_msg_checking"" >&5
6907 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6909 xe_check_libs=" -ltt $extra_libs"
6910 cat > conftest.$ac_ext <<EOF
6911 #line 6912 "configure"
6912 #include "confdefs.h"
6913 /* Override any gcc2 internal prototype to avoid an error. */
6914 /* We use char because int might match the return type of a gcc2
6915 builtin and then its argument prototype would still apply. */
6916 char tt_message_create();
6922 if { (eval echo configure:6923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6924 eval "ac_cv_lib_$ac_lib_var=yes"
6926 echo "configure: failed program was:" >&5
6927 cat conftest.$ac_ext >&5
6929 eval "ac_cv_lib_$ac_lib_var=no"
6934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6935 echo "$ac_t""yes" 1>&6
6936 tt_libs="-ltt $extra_libs"; break
6938 echo "$ac_t""no" 1>&6
6944 if test -z "$tt_libs"; then
6945 if test "$with_tooltalk" = "yes"; then
6946 (echo "$progname: Usage error:"
6947 echo " " "Unable to find required tooltalk libraries."
6948 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6953 test -z "$with_tooltalk" && with_tooltalk=yes
6954 if test "$with_tooltalk" = "yes"; then
6955 { test "$extra_verbose" = "yes" && cat << \EOF
6958 cat >> confdefs.h <<\EOF
6963 { test "$extra_verbose" = "yes" && cat << EOF
6964 Defining TT_C_H_FILE = "$tt_c_h_file"
6966 cat >> confdefs.h <<EOF
6967 #define TT_C_H_FILE "$tt_c_h_file"
6971 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6972 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6973 echo " xemacs will be linked with \"tooltalk.o\""
6977 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6978 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6979 echo "configure:6980: checking for Dt/Dt.h" >&5
6981 cat > conftest.$ac_ext <<EOF
6982 #line 6983 "configure"
6983 #include "confdefs.h"
6986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6987 { (eval echo configure:6988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6989 if test -z "$ac_err"; then
6991 eval "ac_cv_header_$ac_safe=yes"
6994 echo "configure: failed program was:" >&5
6995 cat conftest.$ac_ext >&5
6997 eval "ac_cv_header_$ac_safe=no"
7000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7001 echo "$ac_t""yes" 1>&6
7004 echo "$ac_t""no" 1>&6
7008 test -z "$with_cde" && {
7009 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7010 echo "configure:7011: checking for DtDndDragStart in -lDtSvc" >&5
7011 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7013 xe_check_libs=" -lDtSvc "
7014 cat > conftest.$ac_ext <<EOF
7015 #line 7016 "configure"
7016 #include "confdefs.h"
7017 /* Override any gcc2 internal prototype to avoid an error. */
7018 /* We use char because int might match the return type of a gcc2
7019 builtin and then its argument prototype would still apply. */
7020 char DtDndDragStart();
7026 if { (eval echo configure:7027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7028 eval "ac_cv_lib_$ac_lib_var=yes"
7030 echo "configure: failed program was:" >&5
7031 cat conftest.$ac_ext >&5
7033 eval "ac_cv_lib_$ac_lib_var=no"
7038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7039 echo "$ac_t""yes" 1>&6
7042 echo "$ac_t""no" 1>&6
7047 test -z "$with_cde" && with_cde=yes
7048 if test "$with_dragndrop" = no; then
7049 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7052 if test "$with_cde" = "yes" ; then
7053 { test "$extra_verbose" = "yes" && cat << \EOF
7056 cat >> confdefs.h <<\EOF
7061 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7062 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7063 with_tooltalk=yes # CDE requires Tooltalk
7064 need_motif=yes # CDE requires Motif
7067 test "$window_system" != "x11" && with_offix=no
7068 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7069 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7072 if test "$with_dragndrop" = no; then
7073 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7076 if test "$with_cde" = yes; then
7077 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7080 test -z "$with_offix" && with_offix=no
7081 if test "$with_offix" = "yes"; then
7082 { test "$extra_verbose" = "yes" && cat << \EOF
7083 Defining HAVE_OFFIX_DND
7085 cat >> confdefs.h <<\EOF
7086 #define HAVE_OFFIX_DND 1
7090 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7091 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7094 if test "$with_dragndrop" != "no" ; then
7095 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7096 echo "configure:7097: checking if drag and drop API is needed" >&5
7097 if test -n "$dragndrop_proto" ; then
7099 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7100 { test "$extra_verbose" = "yes" && cat << \EOF
7101 Defining HAVE_DRAGNDROP
7103 cat >> confdefs.h <<\EOF
7104 #define HAVE_DRAGNDROP 1
7108 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7111 echo "$ac_t""no" 1>&6
7115 echo "checking for LDAP" 1>&6
7116 echo "configure:7117: checking for LDAP" >&5
7117 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7118 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7119 echo "configure:7120: checking for ldap.h" >&5
7121 cat > conftest.$ac_ext <<EOF
7122 #line 7123 "configure"
7123 #include "confdefs.h"
7126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7127 { (eval echo configure:7128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7129 if test -z "$ac_err"; then
7131 eval "ac_cv_header_$ac_safe=yes"
7134 echo "configure: failed program was:" >&5
7135 cat conftest.$ac_ext >&5
7137 eval "ac_cv_header_$ac_safe=no"
7140 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7141 echo "$ac_t""yes" 1>&6
7144 echo "$ac_t""no" 1>&6
7148 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7149 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7150 echo "configure:7151: checking for lber.h" >&5
7152 cat > conftest.$ac_ext <<EOF
7153 #line 7154 "configure"
7154 #include "confdefs.h"
7157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7158 { (eval echo configure:7159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7160 if test -z "$ac_err"; then
7162 eval "ac_cv_header_$ac_safe=yes"
7165 echo "configure: failed program was:" >&5
7166 cat conftest.$ac_ext >&5
7168 eval "ac_cv_header_$ac_safe=no"
7171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7172 echo "$ac_t""yes" 1>&6
7175 echo "$ac_t""no" 1>&6
7179 if test "$with_ldap" != "no"; then
7181 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7182 echo "configure:7183: checking for ldap_search in -lldap" >&5
7183 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7185 xe_check_libs=" -lldap "
7186 cat > conftest.$ac_ext <<EOF
7187 #line 7188 "configure"
7188 #include "confdefs.h"
7189 /* Override any gcc2 internal prototype to avoid an error. */
7190 /* We use char because int might match the return type of a gcc2
7191 builtin and then its argument prototype would still apply. */
7198 if { (eval echo configure:7199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7200 eval "ac_cv_lib_$ac_lib_var=yes"
7202 echo "configure: failed program was:" >&5
7203 cat conftest.$ac_ext >&5
7205 eval "ac_cv_lib_$ac_lib_var=no"
7210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7211 echo "$ac_t""yes" 1>&6
7212 with_ldap_nolber=yes
7214 echo "$ac_t""no" 1>&6
7219 test "$with_ldap_nolber" = "no" && {
7220 xe_msg_checking="for ldap_open in -lldap"
7221 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7222 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7223 echo "configure:7224: checking "$xe_msg_checking"" >&5
7224 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7226 xe_check_libs=" -lldap -llber"
7227 cat > conftest.$ac_ext <<EOF
7228 #line 7229 "configure"
7229 #include "confdefs.h"
7230 /* Override any gcc2 internal prototype to avoid an error. */
7231 /* We use char because int might match the return type of a gcc2
7232 builtin and then its argument prototype would still apply. */
7239 if { (eval echo configure:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7241 eval "ac_cv_lib_$ac_lib_var=yes"
7243 echo "configure: failed program was:" >&5
7244 cat conftest.$ac_ext >&5
7246 eval "ac_cv_lib_$ac_lib_var=no"
7251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7252 echo "$ac_t""yes" 1>&6
7255 echo "$ac_t""no" 1>&6
7260 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7261 xe_msg_checking="for ldap_open in -lldap"
7262 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7263 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7264 echo "configure:7265: checking "$xe_msg_checking"" >&5
7265 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7267 xe_check_libs=" -lldap -llber -lkrb"
7268 cat > conftest.$ac_ext <<EOF
7269 #line 7270 "configure"
7270 #include "confdefs.h"
7271 /* Override any gcc2 internal prototype to avoid an error. */
7272 /* We use char because int might match the return type of a gcc2
7273 builtin and then its argument prototype would still apply. */
7280 if { (eval echo configure:7281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7282 eval "ac_cv_lib_$ac_lib_var=yes"
7284 echo "configure: failed program was:" >&5
7285 cat conftest.$ac_ext >&5
7287 eval "ac_cv_lib_$ac_lib_var=no"
7292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7293 echo "$ac_t""yes" 1>&6
7296 echo "$ac_t""no" 1>&6
7301 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7302 xe_msg_checking="for ldap_open in -lldap"
7303 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7304 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7305 echo "configure:7306: checking "$xe_msg_checking"" >&5
7306 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7308 xe_check_libs=" -lldap -llber -lkrb -ldes"
7309 cat > conftest.$ac_ext <<EOF
7310 #line 7311 "configure"
7311 #include "confdefs.h"
7312 /* Override any gcc2 internal prototype to avoid an error. */
7313 /* We use char because int might match the return type of a gcc2
7314 builtin and then its argument prototype would still apply. */
7321 if { (eval echo configure:7322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7323 eval "ac_cv_lib_$ac_lib_var=yes"
7325 echo "configure: failed program was:" >&5
7326 cat conftest.$ac_ext >&5
7328 eval "ac_cv_lib_$ac_lib_var=no"
7333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7334 echo "$ac_t""yes" 1>&6
7335 with_ldap_krbdes=yes
7337 echo "$ac_t""no" 1>&6
7342 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
7344 if test "$with_ldap" = "yes"; then
7345 { test "$extra_verbose" = "yes" && cat << \EOF
7348 cat >> confdefs.h <<\EOF
7353 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7354 echo " xemacs will be linked with \"eldap.o\""
7356 if test "$with_ldap_nolber" = "yes" ; then
7357 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7359 if test "$with_ldap_krb" = "yes" ; then
7360 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7362 if test "$with_ldap_krbdes" = "yes" ; then
7363 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7364 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7366 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7367 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7369 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7372 echo "configure:7373: checking for $ac_func" >&5
7374 cat > conftest.$ac_ext <<EOF
7375 #line 7376 "configure"
7376 #include "confdefs.h"
7377 /* System header to define __stub macros and hopefully few prototypes,
7378 which can conflict with char $ac_func(); below. */
7380 /* Override any gcc2 internal prototype to avoid an error. */
7381 /* We use char because int might match the return type of a gcc2
7382 builtin and then its argument prototype would still apply. */
7387 /* The GNU C library defines this for functions which it implements
7388 to always fail with ENOSYS. Some functions are actually named
7389 something starting with __ and the normal name is an alias. */
7390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7398 if { (eval echo configure:7399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7400 eval "ac_cv_func_$ac_func=yes"
7402 echo "configure: failed program was:" >&5
7403 cat conftest.$ac_ext >&5
7405 eval "ac_cv_func_$ac_func=no"
7409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7410 echo "$ac_t""yes" 1>&6
7411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7412 { test "$extra_verbose" = "yes" && cat << EOF
7413 Defining $ac_tr_func
7415 cat >> confdefs.h <<EOF
7416 #define $ac_tr_func 1
7421 echo "$ac_t""no" 1>&6
7427 if test "$with_postgresql" != "no"; then
7428 echo "checking for PostgreSQL" 1>&6
7429 echo "configure:7430: checking for PostgreSQL" >&5
7431 for header_dir in "" "pgsql/" "postgresql/"; do
7432 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7433 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7434 echo "configure:7435: checking for ${header_dir}libpq-fe.h" >&5
7436 cat > conftest.$ac_ext <<EOF
7437 #line 7438 "configure"
7438 #include "confdefs.h"
7439 #include <${header_dir}libpq-fe.h>
7441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7442 { (eval echo configure:7443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7444 if test -z "$ac_err"; then
7446 eval "ac_cv_header_$ac_safe=yes"
7449 echo "configure: failed program was:" >&5
7450 cat conftest.$ac_ext >&5
7452 eval "ac_cv_header_$ac_safe=no"
7455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7456 echo "$ac_t""yes" 1>&6
7457 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7459 echo "$ac_t""no" 1>&6
7464 test -n "$libpq_fe_h_file" && {
7465 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7466 echo "configure:7467: checking for PQconnectdb in -lpq" >&5
7467 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7469 xe_check_libs=" -lpq "
7470 cat > conftest.$ac_ext <<EOF
7471 #line 7472 "configure"
7472 #include "confdefs.h"
7473 /* Override any gcc2 internal prototype to avoid an error. */
7474 /* We use char because int might match the return type of a gcc2
7475 builtin and then its argument prototype would still apply. */
7482 if { (eval echo configure:7483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7484 eval "ac_cv_lib_$ac_lib_var=yes"
7486 echo "configure: failed program was:" >&5
7487 cat conftest.$ac_ext >&5
7489 eval "ac_cv_lib_$ac_lib_var=no"
7494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7495 echo "$ac_t""yes" 1>&6
7498 echo "$ac_t""no" 1>&6
7503 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7505 { test "$extra_verbose" = "yes" && cat << \EOF
7506 Defining HAVE_POSTGRESQL
7508 cat >> confdefs.h <<\EOF
7509 #define HAVE_POSTGRESQL 1
7514 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7515 echo "configure:7516: checking for PQconnectStart in -lpq" >&5
7516 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7518 xe_check_libs=" -lpq "
7519 cat > conftest.$ac_ext <<EOF
7520 #line 7521 "configure"
7521 #include "confdefs.h"
7522 /* Override any gcc2 internal prototype to avoid an error. */
7523 /* We use char because int might match the return type of a gcc2
7524 builtin and then its argument prototype would still apply. */
7525 char PQconnectStart();
7531 if { (eval echo configure:7532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7533 eval "ac_cv_lib_$ac_lib_var=yes"
7535 echo "configure: failed program was:" >&5
7536 cat conftest.$ac_ext >&5
7538 eval "ac_cv_lib_$ac_lib_var=no"
7543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7544 echo "$ac_t""yes" 1>&6
7545 with_postgresqlv7=yes;
7546 { test "$extra_verbose" = "yes" && cat << \EOF
7547 Defining HAVE_POSTGRESQLV7
7549 cat >> confdefs.h <<\EOF
7550 #define HAVE_POSTGRESQLV7 1
7555 echo "$ac_t""no" 1>&6
7559 { test "$extra_verbose" = "yes" && cat << EOF
7560 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
7562 cat >> confdefs.h <<EOF
7563 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
7567 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
7568 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
7569 echo " xemacs will be linked with \"postgresql.o\""
7571 elif test "$with_postgresql" = "yes"; then
7572 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
7577 if test "$window_system" != "none"; then
7578 echo "checking for graphics libraries" 1>&6
7579 echo "configure:7580: checking for graphics libraries" >&5
7582 if test -z "$with_xpm"; then
7583 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7584 echo "configure:7585: checking for Xpm - no older than 3.4f" >&5
7586 cat > conftest.$ac_ext <<EOF
7587 #line 7588 "configure"
7588 #include "confdefs.h"
7590 #include <X11/xpm.h>
7591 int main(int c, char **v) {
7593 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7594 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7596 if { (eval echo configure:7597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7598 ./conftest dummy_arg; xpm_status=$?;
7599 if test "$xpm_status" = "0"; then
7603 if test "$xpm_status" = "1"; then
7604 xpm_problem="Xpm library version and header file version don't match!"
7605 elif test "$xpm_status" = "2"; then
7606 xpm_problem="Xpm library version is too old!"
7608 xpm_problem="Internal xpm detection logic error!"
7611 *** WARNING *** $xpm_problem
7612 I'm not touching that with a 10-foot pole!
7613 If you really want to use the installed version of Xpm, rerun
7614 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
7618 echo "configure: failed program was:" >&5
7619 cat conftest.$ac_ext >&5
7625 echo "$ac_t""$with_xpm" 1>&6
7627 if test "$with_xpm" = "yes"; then
7628 { test "$extra_verbose" = "yes" && cat << \EOF
7631 cat >> confdefs.h <<\EOF
7636 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7637 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7638 echo "configure:7639: checking for \"FOR_MSW\" xpm" >&5
7640 cat > conftest.$ac_ext <<EOF
7641 #line 7642 "configure"
7642 #include "confdefs.h"
7645 XpmCreatePixmapFromData()
7648 if { (eval echo configure:7649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7652 echo "configure: failed program was:" >&5
7653 cat conftest.$ac_ext >&5
7659 echo "$ac_t""$xpm_for_msw" 1>&6
7660 if test "$xpm_for_msw" = "yes"; then
7661 { test "$extra_verbose" = "yes" && cat << \EOF
7664 cat >> confdefs.h <<\EOF
7672 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7673 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7674 echo "configure:7675: checking for compface.h" >&5
7676 cat > conftest.$ac_ext <<EOF
7677 #line 7678 "configure"
7678 #include "confdefs.h"
7679 #include <compface.h>
7681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7682 { (eval echo configure:7683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7684 if test -z "$ac_err"; then
7686 eval "ac_cv_header_$ac_safe=yes"
7689 echo "configure: failed program was:" >&5
7690 cat conftest.$ac_ext >&5
7692 eval "ac_cv_header_$ac_safe=no"
7695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7696 echo "$ac_t""yes" 1>&6
7699 echo "$ac_t""no" 1>&6
7703 test -z "$with_xface" && {
7704 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7705 echo "configure:7706: checking for UnGenFace in -lcompface" >&5
7706 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7708 xe_check_libs=" -lcompface "
7709 cat > conftest.$ac_ext <<EOF
7710 #line 7711 "configure"
7711 #include "confdefs.h"
7712 /* Override any gcc2 internal prototype to avoid an error. */
7713 /* We use char because int might match the return type of a gcc2
7714 builtin and then its argument prototype would still apply. */
7721 if { (eval echo configure:7722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7723 eval "ac_cv_lib_$ac_lib_var=yes"
7725 echo "configure: failed program was:" >&5
7726 cat conftest.$ac_ext >&5
7728 eval "ac_cv_lib_$ac_lib_var=no"
7733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7734 echo "$ac_t""yes" 1>&6
7737 echo "$ac_t""no" 1>&6
7742 test -z "$with_xface" && with_xface=yes
7743 if test "$with_xface" = "yes"; then
7744 { test "$extra_verbose" = "yes" && cat << \EOF
7747 cat >> confdefs.h <<\EOF
7748 #define HAVE_XFACE 1
7752 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7755 if test "$with_gif" != "no"; then
7757 { test "$extra_verbose" = "yes" && cat << \EOF
7760 cat >> confdefs.h <<\EOF
7765 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7766 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7770 if test "$with_png $with_tiff" != "no no"; then
7772 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7773 echo "configure:7774: checking for inflate in -lc" >&5
7774 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7776 xe_check_libs=" -lc "
7777 cat > conftest.$ac_ext <<EOF
7778 #line 7779 "configure"
7779 #include "confdefs.h"
7780 /* Override any gcc2 internal prototype to avoid an error. */
7781 /* We use char because int might match the return type of a gcc2
7782 builtin and then its argument prototype would still apply. */
7789 if { (eval echo configure:7790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7791 eval "ac_cv_lib_$ac_lib_var=yes"
7793 echo "configure: failed program was:" >&5
7794 cat conftest.$ac_ext >&5
7796 eval "ac_cv_lib_$ac_lib_var=no"
7801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7802 echo "$ac_t""yes" 1>&6
7805 echo "$ac_t""no" 1>&6
7807 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7808 echo "configure:7809: checking for inflate in -lz" >&5
7809 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7811 xe_check_libs=" -lz "
7812 cat > conftest.$ac_ext <<EOF
7813 #line 7814 "configure"
7814 #include "confdefs.h"
7815 /* Override any gcc2 internal prototype to avoid an error. */
7816 /* We use char because int might match the return type of a gcc2
7817 builtin and then its argument prototype would still apply. */
7824 if { (eval echo configure:7825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7826 eval "ac_cv_lib_$ac_lib_var=yes"
7828 echo "configure: failed program was:" >&5
7829 cat conftest.$ac_ext >&5
7831 eval "ac_cv_lib_$ac_lib_var=no"
7836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7837 echo "$ac_t""yes" 1>&6
7838 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7840 echo "$ac_t""no" 1>&6
7842 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7843 echo "configure:7844: checking for inflate in -lgz" >&5
7844 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7846 xe_check_libs=" -lgz "
7847 cat > conftest.$ac_ext <<EOF
7848 #line 7849 "configure"
7849 #include "confdefs.h"
7850 /* Override any gcc2 internal prototype to avoid an error. */
7851 /* We use char because int might match the return type of a gcc2
7852 builtin and then its argument prototype would still apply. */
7859 if { (eval echo configure:7860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7861 eval "ac_cv_lib_$ac_lib_var=yes"
7863 echo "configure: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7866 eval "ac_cv_lib_$ac_lib_var=no"
7871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7872 echo "$ac_t""yes" 1>&6
7873 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7875 echo "$ac_t""no" 1>&6
7887 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7888 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7889 echo "configure:7890: checking for jpeglib.h" >&5
7891 cat > conftest.$ac_ext <<EOF
7892 #line 7893 "configure"
7893 #include "confdefs.h"
7894 #include <jpeglib.h>
7896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7897 { (eval echo configure:7898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7899 if test -z "$ac_err"; then
7901 eval "ac_cv_header_$ac_safe=yes"
7904 echo "configure: failed program was:" >&5
7905 cat conftest.$ac_ext >&5
7907 eval "ac_cv_header_$ac_safe=no"
7910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7911 echo "$ac_t""yes" 1>&6
7914 echo "$ac_t""no" 1>&6
7918 test -z "$with_jpeg" && {
7919 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7920 echo "configure:7921: checking for jpeg_destroy_decompress in -ljpeg" >&5
7921 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7923 xe_check_libs=" -ljpeg "
7924 cat > conftest.$ac_ext <<EOF
7925 #line 7926 "configure"
7926 #include "confdefs.h"
7927 /* Override any gcc2 internal prototype to avoid an error. */
7928 /* We use char because int might match the return type of a gcc2
7929 builtin and then its argument prototype would still apply. */
7930 char jpeg_destroy_decompress();
7933 jpeg_destroy_decompress()
7936 if { (eval echo configure:7937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7938 eval "ac_cv_lib_$ac_lib_var=yes"
7940 echo "configure: failed program was:" >&5
7941 cat conftest.$ac_ext >&5
7943 eval "ac_cv_lib_$ac_lib_var=no"
7948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7949 echo "$ac_t""yes" 1>&6
7952 echo "$ac_t""no" 1>&6
7957 test -z "$with_jpeg" && with_jpeg=yes
7958 if test "$with_jpeg" = "yes"; then
7959 { test "$extra_verbose" = "yes" && cat << \EOF
7962 cat >> confdefs.h <<\EOF
7967 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7971 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7972 echo "configure:7973: checking for pow" >&5
7974 cat > conftest.$ac_ext <<EOF
7975 #line 7976 "configure"
7976 #include "confdefs.h"
7977 /* System header to define __stub macros and hopefully few prototypes,
7978 which can conflict with char pow(); below. */
7980 /* Override any gcc2 internal prototype to avoid an error. */
7981 /* We use char because int might match the return type of a gcc2
7982 builtin and then its argument prototype would still apply. */
7987 /* The GNU C library defines this for functions which it implements
7988 to always fail with ENOSYS. Some functions are actually named
7989 something starting with __ and the normal name is an alias. */
7990 #if defined (__stub_pow) || defined (__stub___pow)
7998 if { (eval echo configure:7999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8000 eval "ac_cv_func_pow=yes"
8002 echo "configure: failed program was:" >&5
8003 cat conftest.$ac_ext >&5
8005 eval "ac_cv_func_pow=no"
8009 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8010 echo "$ac_t""yes" 1>&6
8013 echo "$ac_t""no" 1>&6
8017 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8018 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8019 echo "configure:8020: checking for png.h" >&5
8021 cat > conftest.$ac_ext <<EOF
8022 #line 8023 "configure"
8023 #include "confdefs.h"
8026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8027 { (eval echo configure:8028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8029 if test -z "$ac_err"; then
8031 eval "ac_cv_header_$ac_safe=yes"
8034 echo "configure: failed program was:" >&5
8035 cat conftest.$ac_ext >&5
8037 eval "ac_cv_header_$ac_safe=no"
8040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8041 echo "$ac_t""yes" 1>&6
8044 echo "$ac_t""no" 1>&6
8048 test -z "$with_png" && {
8049 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8050 echo "configure:8051: checking for png_read_image in -lpng" >&5
8051 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8053 xe_check_libs=" -lpng "
8054 cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 /* Override any gcc2 internal prototype to avoid an error. */
8058 /* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */
8060 char png_read_image();
8066 if { (eval echo configure:8067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8068 eval "ac_cv_lib_$ac_lib_var=yes"
8070 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8073 eval "ac_cv_lib_$ac_lib_var=no"
8078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8079 echo "$ac_t""yes" 1>&6
8082 echo "$ac_t""no" 1>&6
8087 if test -z "$with_png"; then
8088 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8089 echo "configure:8090: checking for workable png version information" >&5
8090 xe_check_libs="-lpng -lz"
8091 cat > conftest.$ac_ext <<EOF
8092 #line 8093 "configure"
8093 #include "confdefs.h"
8095 int main(int c, char **v) {
8096 if (c == 1) return 0;
8097 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8098 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8100 if { (eval echo configure:8101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8102 ./conftest dummy_arg; png_status=$?;
8103 if test "$png_status" = "0"; then
8107 if test "$png_status" = "1"; then
8108 png_problem="PNG library version and header file don't match!"
8109 elif test "$png_status" = "2"; then
8110 png_problem="PNG library version too old (pre 1.0.2)!"
8113 *** WARNING *** $png_problem
8114 I'm not touching that with a 10-foot pole!
8115 If you really want to use the installed version of libPNG, rerun
8116 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8120 echo "configure: failed program was:" >&5
8121 cat conftest.$ac_ext >&5
8127 echo "$ac_t""$with_png" 1>&6
8129 if test "$with_png" = "yes"; then
8130 { test "$extra_verbose" = "yes" && cat << \EOF
8133 cat >> confdefs.h <<\EOF
8138 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8141 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8142 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8143 echo "configure:8144: checking for tiffio.h" >&5
8145 cat > conftest.$ac_ext <<EOF
8146 #line 8147 "configure"
8147 #include "confdefs.h"
8150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8151 { (eval echo configure:8152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8153 if test -z "$ac_err"; then
8155 eval "ac_cv_header_$ac_safe=yes"
8158 echo "configure: failed program was:" >&5
8159 cat conftest.$ac_ext >&5
8161 eval "ac_cv_header_$ac_safe=no"
8164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8165 echo "$ac_t""yes" 1>&6
8168 echo "$ac_t""no" 1>&6
8172 test -z "$with_tiff" && {
8173 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8174 echo "configure:8175: checking for TIFFClientOpen in -ltiff" >&5
8175 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8177 xe_check_libs=" -ltiff "
8178 cat > conftest.$ac_ext <<EOF
8179 #line 8180 "configure"
8180 #include "confdefs.h"
8181 /* Override any gcc2 internal prototype to avoid an error. */
8182 /* We use char because int might match the return type of a gcc2
8183 builtin and then its argument prototype would still apply. */
8184 char TIFFClientOpen();
8190 if { (eval echo configure:8191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8192 eval "ac_cv_lib_$ac_lib_var=yes"
8194 echo "configure: failed program was:" >&5
8195 cat conftest.$ac_ext >&5
8197 eval "ac_cv_lib_$ac_lib_var=no"
8202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8203 echo "$ac_t""yes" 1>&6
8206 echo "$ac_t""no" 1>&6
8211 test -z "$with_tiff" && with_tiff=yes
8212 if test "$with_tiff" = "yes"; then
8213 { test "$extra_verbose" = "yes" && cat << \EOF
8216 cat >> confdefs.h <<\EOF
8221 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8226 if test "$with_x11" = "yes"; then
8228 echo "checking for X11 graphics libraries" 1>&6
8229 echo "configure:8230: checking for X11 graphics libraries" >&5
8231 echo "checking for the Athena widgets" 1>&6
8232 echo "configure:8233: checking for the Athena widgets" >&5
8234 case "$with_athena" in
8235 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8236 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8237 "next") athena_variant=neXtaw athena_3d=yes ;;
8238 "95") athena_variant=Xaw95 athena_3d=yes ;;
8239 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8240 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8243 if test "$athena_3d" = "no"; then
8245 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8246 echo "configure:8247: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8247 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8249 xe_check_libs=" -l$athena_variant "
8250 cat > conftest.$ac_ext <<EOF
8251 #line 8252 "configure"
8252 #include "confdefs.h"
8253 /* Override any gcc2 internal prototype to avoid an error. */
8254 /* We use char because int might match the return type of a gcc2
8255 builtin and then its argument prototype would still apply. */
8256 char XawScrollbarSetThumb();
8259 XawScrollbarSetThumb()
8262 if { (eval echo configure:8263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8264 eval "ac_cv_lib_$ac_lib_var=yes"
8266 echo "configure: failed program was:" >&5
8267 cat conftest.$ac_ext >&5
8269 eval "ac_cv_lib_$ac_lib_var=no"
8274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8275 echo "$ac_t""yes" 1>&6
8277 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8278 echo "configure:8279: checking for threeDClassRec in -l$athena_variant" >&5
8279 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8281 xe_check_libs=" -l$athena_variant "
8282 cat > conftest.$ac_ext <<EOF
8283 #line 8284 "configure"
8284 #include "confdefs.h"
8285 /* Override any gcc2 internal prototype to avoid an error. */
8286 /* We use char because int might match the return type of a gcc2
8287 builtin and then its argument prototype would still apply. */
8288 char threeDClassRec();
8294 if { (eval echo configure:8295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8296 eval "ac_cv_lib_$ac_lib_var=yes"
8298 echo "configure: failed program was:" >&5
8299 cat conftest.$ac_ext >&5
8301 eval "ac_cv_lib_$ac_lib_var=no"
8306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8307 echo "$ac_t""yes" 1>&6
8308 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8310 echo "$ac_t""no" 1>&6
8311 athena_lib=$athena_variant
8317 echo "$ac_t""no" 1>&6
8318 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8324 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8325 echo "configure:8326: checking for threeDClassRec in -l$athena_variant" >&5
8326 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8328 xe_check_libs=" -l$athena_variant "
8329 cat > conftest.$ac_ext <<EOF
8330 #line 8331 "configure"
8331 #include "confdefs.h"
8332 /* Override any gcc2 internal prototype to avoid an error. */
8333 /* We use char because int might match the return type of a gcc2
8334 builtin and then its argument prototype would still apply. */
8335 char threeDClassRec();
8341 if { (eval echo configure:8342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8343 eval "ac_cv_lib_$ac_lib_var=yes"
8345 echo "configure: failed program was:" >&5
8346 cat conftest.$ac_ext >&5
8348 eval "ac_cv_lib_$ac_lib_var=no"
8353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8354 echo "$ac_t""yes" 1>&6
8355 athena_lib=$athena_variant
8357 echo "$ac_t""no" 1>&6
8358 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8359 echo "configure:8360: checking for threeDClassRec in -lXaw" >&5
8360 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8362 xe_check_libs=" -lXaw "
8363 cat > conftest.$ac_ext <<EOF
8364 #line 8365 "configure"
8365 #include "confdefs.h"
8366 /* Override any gcc2 internal prototype to avoid an error. */
8367 /* We use char because int might match the return type of a gcc2
8368 builtin and then its argument prototype would still apply. */
8369 char threeDClassRec();
8375 if { (eval echo configure:8376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8377 eval "ac_cv_lib_$ac_lib_var=yes"
8379 echo "configure: failed program was:" >&5
8380 cat conftest.$ac_ext >&5
8382 eval "ac_cv_lib_$ac_lib_var=no"
8387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8388 echo "$ac_t""yes" 1>&6
8390 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8393 echo "$ac_t""no" 1>&6
8394 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8403 if test "$athena_3d" = "no"; then
8404 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8405 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8406 echo "configure:8407: checking for X11/Xaw/ThreeD.h" >&5
8408 cat > conftest.$ac_ext <<EOF
8409 #line 8410 "configure"
8410 #include "confdefs.h"
8411 #include <X11/Xaw/ThreeD.h>
8413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8414 { (eval echo configure:8415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8416 if test -z "$ac_err"; then
8418 eval "ac_cv_header_$ac_safe=yes"
8421 echo "configure: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8424 eval "ac_cv_header_$ac_safe=no"
8427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8428 echo "$ac_t""yes" 1>&6
8429 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8431 echo "$ac_t""no" 1>&6
8432 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8433 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8434 echo "configure:8435: checking for X11/Xaw/XawInit.h" >&5
8436 cat > conftest.$ac_ext <<EOF
8437 #line 8438 "configure"
8438 #include "confdefs.h"
8439 #include <X11/Xaw/XawInit.h>
8441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8442 { (eval echo configure:8443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8444 if test -z "$ac_err"; then
8446 eval "ac_cv_header_$ac_safe=yes"
8449 echo "configure: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8452 eval "ac_cv_header_$ac_safe=no"
8455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8456 echo "$ac_t""yes" 1>&6
8457 athena_h_path=X11/Xaw
8459 echo "$ac_t""no" 1>&6
8460 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8466 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8467 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8468 echo "configure:8469: checking for X11/$athena_variant/XawInit.h" >&5
8470 cat > conftest.$ac_ext <<EOF
8471 #line 8472 "configure"
8472 #include "confdefs.h"
8473 #include <X11/$athena_variant/XawInit.h>
8475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8476 { (eval echo configure:8477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8478 if test -z "$ac_err"; then
8480 eval "ac_cv_header_$ac_safe=yes"
8483 echo "configure: failed program was:" >&5
8484 cat conftest.$ac_ext >&5
8486 eval "ac_cv_header_$ac_safe=no"
8489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8490 echo "$ac_t""yes" 1>&6
8491 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8492 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8493 echo "configure:8494: checking for X11/$athena_variant/ThreeD.h" >&5
8495 cat > conftest.$ac_ext <<EOF
8496 #line 8497 "configure"
8497 #include "confdefs.h"
8498 #include <X11/$athena_variant/ThreeD.h>
8500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8501 { (eval echo configure:8502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8502 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8503 if test -z "$ac_err"; then
8505 eval "ac_cv_header_$ac_safe=yes"
8508 echo "configure: failed program was:" >&5
8509 cat conftest.$ac_ext >&5
8511 eval "ac_cv_header_$ac_safe=no"
8514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8515 echo "$ac_t""yes" 1>&6
8516 athena_h_path=X11/$athena_variant
8518 echo "$ac_t""no" 1>&6
8522 echo "$ac_t""no" 1>&6
8526 if test -z "$athena_h_path"; then
8527 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8528 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8529 echo "configure:8530: checking for $athena_variant/XawInit.h" >&5
8531 cat > conftest.$ac_ext <<EOF
8532 #line 8533 "configure"
8533 #include "confdefs.h"
8534 #include <$athena_variant/XawInit.h>
8536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8537 { (eval echo configure:8538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8539 if test -z "$ac_err"; then
8541 eval "ac_cv_header_$ac_safe=yes"
8544 echo "configure: failed program was:" >&5
8545 cat conftest.$ac_ext >&5
8547 eval "ac_cv_header_$ac_safe=no"
8550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8551 echo "$ac_t""yes" 1>&6
8552 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8553 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8554 echo "configure:8555: checking for $athena_variant/ThreeD.h" >&5
8556 cat > conftest.$ac_ext <<EOF
8557 #line 8558 "configure"
8558 #include "confdefs.h"
8559 #include <$athena_variant/ThreeD.h>
8561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8562 { (eval echo configure:8563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8564 if test -z "$ac_err"; then
8566 eval "ac_cv_header_$ac_safe=yes"
8569 echo "configure: failed program was:" >&5
8570 cat conftest.$ac_ext >&5
8572 eval "ac_cv_header_$ac_safe=no"
8575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8576 echo "$ac_t""yes" 1>&6
8577 athena_h_path=$athena_variant
8579 echo "$ac_t""no" 1>&6
8583 echo "$ac_t""no" 1>&6
8588 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8589 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8590 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8591 echo "configure:8592: checking for X11/Xaw3d/XawInit.h" >&5
8593 cat > conftest.$ac_ext <<EOF
8594 #line 8595 "configure"
8595 #include "confdefs.h"
8596 #include <X11/Xaw3d/XawInit.h>
8598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8599 { (eval echo configure:8600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8601 if test -z "$ac_err"; then
8603 eval "ac_cv_header_$ac_safe=yes"
8606 echo "configure: failed program was:" >&5
8607 cat conftest.$ac_ext >&5
8609 eval "ac_cv_header_$ac_safe=no"
8612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8613 echo "$ac_t""yes" 1>&6
8614 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8615 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8616 echo "configure:8617: checking for X11/Xaw3d/ThreeD.h" >&5
8618 cat > conftest.$ac_ext <<EOF
8619 #line 8620 "configure"
8620 #include "confdefs.h"
8621 #include <X11/Xaw3d/ThreeD.h>
8623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8624 { (eval echo configure:8625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8626 if test -z "$ac_err"; then
8628 eval "ac_cv_header_$ac_safe=yes"
8631 echo "configure: failed program was:" >&5
8632 cat conftest.$ac_ext >&5
8634 eval "ac_cv_header_$ac_safe=no"
8637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8638 echo "$ac_t""yes" 1>&6
8640 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
8641 athena_h_path=X11/Xaw3d
8644 echo "$ac_t""no" 1>&6
8648 echo "$ac_t""no" 1>&6
8653 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8654 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8655 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8656 echo "configure:8657: checking for Xaw3d/XawInit.h" >&5
8658 cat > conftest.$ac_ext <<EOF
8659 #line 8660 "configure"
8660 #include "confdefs.h"
8661 #include <Xaw3d/XawInit.h>
8663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8664 { (eval echo configure:8665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8666 if test -z "$ac_err"; then
8668 eval "ac_cv_header_$ac_safe=yes"
8671 echo "configure: failed program was:" >&5
8672 cat conftest.$ac_ext >&5
8674 eval "ac_cv_header_$ac_safe=no"
8677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8678 echo "$ac_t""yes" 1>&6
8679 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8680 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8681 echo "configure:8682: checking for Xaw3d/ThreeD.h" >&5
8683 cat > conftest.$ac_ext <<EOF
8684 #line 8685 "configure"
8685 #include "confdefs.h"
8686 #include <Xaw3d/ThreeD.h>
8688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8689 { (eval echo configure:8690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8691 if test -z "$ac_err"; then
8693 eval "ac_cv_header_$ac_safe=yes"
8696 echo "configure: failed program was:" >&5
8697 cat conftest.$ac_ext >&5
8699 eval "ac_cv_header_$ac_safe=no"
8702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8703 echo "$ac_t""yes" 1>&6
8705 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
8709 echo "$ac_t""no" 1>&6
8713 echo "$ac_t""no" 1>&6
8718 if test -z "$athena_h_path"; then
8719 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8720 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8721 echo "configure:8722: checking for X11/Xaw/ThreeD.h" >&5
8723 cat > conftest.$ac_ext <<EOF
8724 #line 8725 "configure"
8725 #include "confdefs.h"
8726 #include <X11/Xaw/ThreeD.h>
8728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8729 { (eval echo configure:8730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8731 if test -z "$ac_err"; then
8733 eval "ac_cv_header_$ac_safe=yes"
8736 echo "configure: failed program was:" >&5
8737 cat conftest.$ac_ext >&5
8739 eval "ac_cv_header_$ac_safe=no"
8742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8743 echo "$ac_t""yes" 1>&6
8745 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
8746 athena_h_path=X11/Xaw
8749 echo "$ac_t""no" 1>&6
8750 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
8756 if test -n "$athena_lib" -a -n "$athena_h_path"; then
8762 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8763 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8764 echo "configure:8765: checking for Xm/Xm.h" >&5
8766 cat > conftest.$ac_ext <<EOF
8767 #line 8768 "configure"
8768 #include "confdefs.h"
8771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8772 { (eval echo configure:8773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8774 if test -z "$ac_err"; then
8776 eval "ac_cv_header_$ac_safe=yes"
8779 echo "configure: failed program was:" >&5
8780 cat conftest.$ac_ext >&5
8782 eval "ac_cv_header_$ac_safe=no"
8785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8786 echo "$ac_t""yes" 1>&6
8788 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8789 echo "configure:8790: checking for XmStringFree in -lXm" >&5
8790 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8792 xe_check_libs=" -lXm "
8793 cat > conftest.$ac_ext <<EOF
8794 #line 8795 "configure"
8795 #include "confdefs.h"
8796 /* Override any gcc2 internal prototype to avoid an error. */
8797 /* We use char because int might match the return type of a gcc2
8798 builtin and then its argument prototype would still apply. */
8799 char XmStringFree();
8805 if { (eval echo configure:8806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8807 eval "ac_cv_lib_$ac_lib_var=yes"
8809 echo "configure: failed program was:" >&5
8810 cat conftest.$ac_ext >&5
8812 eval "ac_cv_lib_$ac_lib_var=no"
8817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8818 echo "$ac_t""yes" 1>&6
8821 echo "$ac_t""no" 1>&6
8827 echo "$ac_t""no" 1>&6
8832 if test "$have_motif" = "yes"; then
8833 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8834 echo "configure:8835: checking for Lesstif" >&5
8835 cat > conftest.$ac_ext <<EOF
8836 #line 8837 "configure"
8837 #include "confdefs.h"
8839 #ifdef LESSTIF_VERSION
8844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8845 egrep "yes" >/dev/null 2>&1; then
8854 echo "$ac_t""$have_lesstif" 1>&6
8859 case "$with_menubars" in "" | "yes" | "athena" )
8860 with_menubars="lucid" ;;
8862 case "$with_dialogs" in "" | "yes" | "lucid" )
8863 if test "$have_motif" = "yes"; then with_dialogs="motif"
8864 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
8865 else with_dialogs=no
8868 case "$with_scrollbars" in "" | "yes" )
8869 with_scrollbars="lucid" ;;
8871 case "$with_widgets" in "" | "yes" | "lucid")
8872 if test "$have_motif" = "yes"; then with_widgets="motif"
8873 elif test "$have_xaw" = "yes"; then with_widgets="athena"
8874 else with_widgets=no
8878 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
8880 case "$all_widgets" in
8882 if test "$have_xaw" != "yes"; then
8883 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
8886 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8888 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
8890 { test "$extra_verbose" = "yes" && cat << EOF
8891 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
8893 cat >> confdefs.h <<EOF
8894 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
8898 { test "$extra_verbose" = "yes" && cat << EOF
8899 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
8901 cat >> confdefs.h <<EOF
8902 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
8906 { test "$extra_verbose" = "yes" && cat << EOF
8907 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
8909 cat >> confdefs.h <<EOF
8910 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
8914 { test "$extra_verbose" = "yes" && cat << EOF
8915 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
8917 cat >> confdefs.h <<EOF
8918 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
8922 { test "$extra_verbose" = "yes" && cat << EOF
8923 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
8925 cat >> confdefs.h <<EOF
8926 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
8930 { test "$extra_verbose" = "yes" && cat << EOF
8931 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
8933 cat >> confdefs.h <<EOF
8934 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
8938 { test "$extra_verbose" = "yes" && cat << EOF
8939 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
8941 cat >> confdefs.h <<EOF
8942 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
8946 { test "$extra_verbose" = "yes" && cat << EOF
8947 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
8949 cat >> confdefs.h <<EOF
8950 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
8954 { test "$extra_verbose" = "yes" && cat << EOF
8955 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
8957 cat >> confdefs.h <<EOF
8958 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
8962 { test "$extra_verbose" = "yes" && cat << EOF
8963 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
8965 cat >> confdefs.h <<EOF
8966 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
8971 { test "$extra_verbose" = "yes" && cat << \EOF
8972 Defining LWLIB_USES_ATHENA
8974 cat >> confdefs.h <<\EOF
8975 #define LWLIB_USES_ATHENA 1
8979 { test "$extra_verbose" = "yes" && cat << \EOF
8980 Defining NEED_ATHENA
8982 cat >> confdefs.h <<\EOF
8983 #define NEED_ATHENA 1
8989 if test "$athena_3d" = "yes"; then
8990 { test "$extra_verbose" = "yes" && cat << \EOF
8991 Defining HAVE_ATHENA_3D
8993 cat >> confdefs.h <<\EOF
8994 #define HAVE_ATHENA_3D 1
9002 case "$all_widgets" in *motif* )
9003 { test "$extra_verbose" = "yes" && cat << \EOF
9004 Defining LWLIB_USES_MOTIF
9006 cat >> confdefs.h <<\EOF
9007 #define LWLIB_USES_MOTIF 1
9011 { test "$extra_verbose" = "yes" && cat << \EOF
9014 cat >> confdefs.h <<\EOF
9015 #define NEED_MOTIF 1
9019 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9023 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9024 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9025 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9026 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9027 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9028 case "$with_widgets" in athena* )
9029 lwlib_objs="$lwlib_objs xlwradio.o xlwcheckbox.o xlwgauge.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwradio.o xlwcheckbox.o xlwgauge.o\" to \$lwlib_objs"; fi;;
9031 case "$all_widgets" in *lucid* )
9032 { test "$extra_verbose" = "yes" && cat << \EOF
9035 cat >> confdefs.h <<\EOF
9036 #define NEED_LUCID 1
9040 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9045 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9046 Defining LWLIB_SCROLLBARS_ATHENA
9048 cat >> confdefs.h <<\EOF
9049 #define LWLIB_SCROLLBARS_ATHENA 1
9053 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9054 Defining LWLIB_DIALOGS_ATHENA
9056 cat >> confdefs.h <<\EOF
9057 #define LWLIB_DIALOGS_ATHENA 1
9062 if test "$athena_3d" = "yes"; then
9063 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9064 Defining LWLIB_SCROLLBARS_ATHENA3D
9066 cat >> confdefs.h <<\EOF
9067 #define LWLIB_SCROLLBARS_ATHENA3D 1
9071 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9072 Defining LWLIB_DIALOGS_ATHENA3D
9074 cat >> confdefs.h <<\EOF
9075 #define LWLIB_DIALOGS_ATHENA3D 1
9081 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9082 Defining LWLIB_WIDGETS_ATHENA
9084 cat >> confdefs.h <<\EOF
9085 #define LWLIB_WIDGETS_ATHENA 1
9089 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9090 { test "$extra_verbose" = "yes" && cat << \EOF
9091 Defining LWLIB_TABS_LUCID
9093 cat >> confdefs.h <<\EOF
9094 #define LWLIB_TABS_LUCID 1
9099 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9100 Defining HAVE_MENUBARS
9102 cat >> confdefs.h <<\EOF
9103 #define HAVE_MENUBARS 1
9107 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9108 Defining HAVE_SCROLLBARS
9110 cat >> confdefs.h <<\EOF
9111 #define HAVE_SCROLLBARS 1
9115 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9116 Defining HAVE_DIALOGS
9118 cat >> confdefs.h <<\EOF
9119 #define HAVE_DIALOGS 1
9123 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9124 Defining HAVE_TOOLBARS
9126 cat >> confdefs.h <<\EOF
9127 #define HAVE_TOOLBARS 1
9131 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9132 Defining HAVE_WIDGETS
9134 cat >> confdefs.h <<\EOF
9135 #define HAVE_WIDGETS 1
9140 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9141 Defining LWLIB_MENUBARS_LUCID
9143 cat >> confdefs.h <<\EOF
9144 #define LWLIB_MENUBARS_LUCID 1
9148 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9149 Defining LWLIB_SCROLLBARS_LUCID
9151 cat >> confdefs.h <<\EOF
9152 #define LWLIB_SCROLLBARS_LUCID 1
9157 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9158 Defining LWLIB_MENUBARS_MOTIF
9160 cat >> confdefs.h <<\EOF
9161 #define LWLIB_MENUBARS_MOTIF 1
9165 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9166 Defining LWLIB_SCROLLBARS_MOTIF
9168 cat >> confdefs.h <<\EOF
9169 #define LWLIB_SCROLLBARS_MOTIF 1
9173 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9174 Defining LWLIB_DIALOGS_MOTIF
9176 cat >> confdefs.h <<\EOF
9177 #define LWLIB_DIALOGS_MOTIF 1
9181 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9182 Defining LWLIB_WIDGETS_MOTIF
9184 cat >> confdefs.h <<\EOF
9185 #define LWLIB_WIDGETS_MOTIF 1
9190 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9191 echo " xemacs will be linked with \"menubar.o\""
9193 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9194 echo " xemacs will be linked with \"scrollbar.o\""
9196 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9197 echo " xemacs will be linked with \"dialog.o\""
9199 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9200 echo " xemacs will be linked with \"toolbar.o\""
9203 if test "$with_x11" = "yes"; then
9204 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9205 echo " xemacs will be linked with \"menubar-x.o\""
9207 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9208 echo " xemacs will be linked with \"scrollbar-x.o\""
9210 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9211 echo " xemacs will be linked with \"dialog-x.o\""
9213 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9214 echo " xemacs will be linked with \"toolbar-x.o\""
9216 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9217 echo " xemacs will be linked with \"gui-x.o\""
9222 test -z "$with_mule" && with_mule=no
9223 test -z "$with_file_coding" && with_file_coding=no
9226 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9227 { test "$extra_verbose" = "yes" && cat << \EOF
9228 Defining FILE_CODING
9230 cat >> confdefs.h <<\EOF
9231 #define FILE_CODING 1
9235 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9236 echo " xemacs will be linked with \"file-coding.o\""
9240 if test "$with_mule" = "yes" ; then
9241 echo "checking for Mule-related features" 1>&6
9242 echo "configure:9243: checking for Mule-related features" >&5
9243 { test "$extra_verbose" = "yes" && cat << \EOF
9246 cat >> confdefs.h <<\EOF
9251 { test "$extra_verbose" = "yes" && cat << \EOF
9252 Defining FILE_CODING
9254 cat >> confdefs.h <<\EOF
9255 #define FILE_CODING 1
9259 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
9260 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
9263 for ac_hdr in libintl.h
9265 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9266 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9267 echo "configure:9268: checking for $ac_hdr" >&5
9269 cat > conftest.$ac_ext <<EOF
9270 #line 9271 "configure"
9271 #include "confdefs.h"
9274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9275 { (eval echo configure:9276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9277 if test -z "$ac_err"; then
9279 eval "ac_cv_header_$ac_safe=yes"
9282 echo "configure: failed program was:" >&5
9283 cat conftest.$ac_ext >&5
9285 eval "ac_cv_header_$ac_safe=no"
9288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9289 echo "$ac_t""yes" 1>&6
9290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9291 { test "$extra_verbose" = "yes" && cat << EOF
9294 cat >> confdefs.h <<EOF
9295 #define $ac_tr_hdr 1
9300 echo "$ac_t""no" 1>&6
9305 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9306 echo "configure:9307: checking for strerror in -lintl" >&5
9307 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9309 xe_check_libs=" -lintl "
9310 cat > conftest.$ac_ext <<EOF
9311 #line 9312 "configure"
9312 #include "confdefs.h"
9313 /* Override any gcc2 internal prototype to avoid an error. */
9314 /* We use char because int might match the return type of a gcc2
9315 builtin and then its argument prototype would still apply. */
9322 if { (eval echo configure:9323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9324 eval "ac_cv_lib_$ac_lib_var=yes"
9326 echo "configure: failed program was:" >&5
9327 cat conftest.$ac_ext >&5
9329 eval "ac_cv_lib_$ac_lib_var=no"
9334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9335 echo "$ac_t""yes" 1>&6
9336 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9337 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9338 { test "$extra_verbose" = "yes" && cat << EOF
9341 cat >> confdefs.h <<EOF
9342 #define $ac_tr_lib 1
9346 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9349 echo "$ac_t""no" 1>&6
9354 echo "checking for Mule input methods" 1>&6
9355 echo "configure:9356: checking for Mule input methods" >&5
9356 case "$with_xim" in "" | "yes" )
9357 echo "checking for XIM" 1>&6
9358 echo "configure:9359: checking for XIM" >&5
9360 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9361 echo "configure:9362: checking for XOpenIM in -lX11" >&5
9362 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9364 xe_check_libs=" -lX11 "
9365 cat > conftest.$ac_ext <<EOF
9366 #line 9367 "configure"
9367 #include "confdefs.h"
9368 /* Override any gcc2 internal prototype to avoid an error. */
9369 /* We use char because int might match the return type of a gcc2
9370 builtin and then its argument prototype would still apply. */
9377 if { (eval echo configure:9378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9379 eval "ac_cv_lib_$ac_lib_var=yes"
9381 echo "configure: failed program was:" >&5
9382 cat conftest.$ac_ext >&5
9384 eval "ac_cv_lib_$ac_lib_var=no"
9389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9390 echo "$ac_t""yes" 1>&6
9393 echo "$ac_t""no" 1>&6
9398 if test "$have_motif $have_lesstif" = "yes no"; then
9400 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9401 echo "configure:9402: checking for XmImMbLookupString in -lXm" >&5
9402 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9404 xe_check_libs=" -lXm "
9405 cat > conftest.$ac_ext <<EOF
9406 #line 9407 "configure"
9407 #include "confdefs.h"
9408 /* Override any gcc2 internal prototype to avoid an error. */
9409 /* We use char because int might match the return type of a gcc2
9410 builtin and then its argument prototype would still apply. */
9411 char XmImMbLookupString();
9414 XmImMbLookupString()
9417 if { (eval echo configure:9418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9419 eval "ac_cv_lib_$ac_lib_var=yes"
9421 echo "configure: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9424 eval "ac_cv_lib_$ac_lib_var=no"
9429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9430 echo "$ac_t""yes" 1>&6
9433 echo "$ac_t""no" 1>&6
9439 if test "$with_xim" != "no"; then
9440 { test "$extra_verbose" = "yes" && cat << \EOF
9443 cat >> confdefs.h <<\EOF
9448 if test "$with_xim" = "xlib"; then
9449 { test "$extra_verbose" = "yes" && cat << \EOF
9452 cat >> confdefs.h <<\EOF
9457 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
9458 echo " xemacs will be linked with \"input-method-xlib.o\""
9461 if test "$with_xim" = "motif"; then
9462 { test "$extra_verbose" = "yes" && cat << \EOF
9465 cat >> confdefs.h <<\EOF
9471 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
9472 echo " xemacs will be linked with \"input-method-motif.o\""
9475 if test "$with_xim" = "motif"; then
9480 if test "$with_xfs" = "yes" ; then
9481 echo "checking for XFontSet" 1>&6
9482 echo "configure:9483: checking for XFontSet" >&5
9484 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
9485 echo "configure:9486: checking for XmbDrawString in -lX11" >&5
9486 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
9488 xe_check_libs=" -lX11 "
9489 cat > conftest.$ac_ext <<EOF
9490 #line 9491 "configure"
9491 #include "confdefs.h"
9492 /* Override any gcc2 internal prototype to avoid an error. */
9493 /* We use char because int might match the return type of a gcc2
9494 builtin and then its argument prototype would still apply. */
9495 char XmbDrawString();
9501 if { (eval echo configure:9502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9503 eval "ac_cv_lib_$ac_lib_var=yes"
9505 echo "configure: failed program was:" >&5
9506 cat conftest.$ac_ext >&5
9508 eval "ac_cv_lib_$ac_lib_var=no"
9513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9514 echo "$ac_t""yes" 1>&6
9517 echo "$ac_t""no" 1>&6
9522 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
9523 { test "$extra_verbose" = "yes" && cat << \EOF
9524 Defining USE_XFONTSET
9526 cat >> confdefs.h <<\EOF
9527 #define USE_XFONTSET 1
9531 if test "$with_xim" = "no" ; then
9532 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
9533 echo " xemacs will be linked with \"input-method-xlib.o\""
9538 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9539 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9540 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9541 echo "configure:9542: checking for wnn/jllib.h" >&5
9543 cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure"
9545 #include "confdefs.h"
9546 #include <wnn/jllib.h>
9548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9549 { (eval echo configure:9550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9551 if test -z "$ac_err"; then
9553 eval "ac_cv_header_$ac_safe=yes"
9556 echo "configure: failed program was:" >&5
9557 cat conftest.$ac_ext >&5
9559 eval "ac_cv_header_$ac_safe=no"
9562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9563 echo "$ac_t""yes" 1>&6
9566 echo "$ac_t""no" 1>&6
9570 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
9571 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
9572 echo "configure:9573: checking for wnn/commonhd.h" >&5
9574 cat > conftest.$ac_ext <<EOF
9575 #line 9576 "configure"
9576 #include "confdefs.h"
9577 #include <wnn/commonhd.h>
9579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9580 { (eval echo configure:9581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9581 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9582 if test -z "$ac_err"; then
9584 eval "ac_cv_header_$ac_safe=yes"
9587 echo "configure: failed program was:" >&5
9588 cat conftest.$ac_ext >&5
9590 eval "ac_cv_header_$ac_safe=no"
9593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9594 echo "$ac_t""yes" 1>&6
9597 echo "$ac_t""no" 1>&6
9601 if test "$with_wnn" != "no"; then
9602 for ac_func in crypt
9604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9605 echo "configure:9606: checking for $ac_func" >&5
9607 cat > conftest.$ac_ext <<EOF
9608 #line 9609 "configure"
9609 #include "confdefs.h"
9610 /* System header to define __stub macros and hopefully few prototypes,
9611 which can conflict with char $ac_func(); below. */
9613 /* Override any gcc2 internal prototype to avoid an error. */
9614 /* We use char because int might match the return type of a gcc2
9615 builtin and then its argument prototype would still apply. */
9620 /* The GNU C library defines this for functions which it implements
9621 to always fail with ENOSYS. Some functions are actually named
9622 something starting with __ and the normal name is an alias. */
9623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9631 if { (eval echo configure:9632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9633 eval "ac_cv_func_$ac_func=yes"
9635 echo "configure: failed program was:" >&5
9636 cat conftest.$ac_ext >&5
9638 eval "ac_cv_func_$ac_func=no"
9642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9643 echo "$ac_t""yes" 1>&6
9644 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9645 { test "$extra_verbose" = "yes" && cat << EOF
9646 Defining $ac_tr_func
9648 cat >> confdefs.h <<EOF
9649 #define $ac_tr_func 1
9654 echo "$ac_t""no" 1>&6
9658 test "$ac_cv_func_crypt" != "yes" && {
9659 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9660 echo "configure:9661: checking for crypt in -lcrypt" >&5
9661 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9663 xe_check_libs=" -lcrypt "
9664 cat > conftest.$ac_ext <<EOF
9665 #line 9666 "configure"
9666 #include "confdefs.h"
9667 /* Override any gcc2 internal prototype to avoid an error. */
9668 /* We use char because int might match the return type of a gcc2
9669 builtin and then its argument prototype would still apply. */
9676 if { (eval echo configure:9677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9678 eval "ac_cv_lib_$ac_lib_var=yes"
9680 echo "configure: failed program was:" >&5
9681 cat conftest.$ac_ext >&5
9683 eval "ac_cv_lib_$ac_lib_var=no"
9688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9689 echo "$ac_t""yes" 1>&6
9690 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9691 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9692 { test "$extra_verbose" = "yes" && cat << EOF
9695 cat >> confdefs.h <<EOF
9696 #define $ac_tr_lib 1
9700 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
9703 echo "$ac_t""no" 1>&6
9708 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9710 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9711 echo "configure:9712: checking for jl_dic_list_e in -lwnn" >&5
9712 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9714 xe_check_libs=" -lwnn "
9715 cat > conftest.$ac_ext <<EOF
9716 #line 9717 "configure"
9717 #include "confdefs.h"
9718 /* Override any gcc2 internal prototype to avoid an error. */
9719 /* We use char because int might match the return type of a gcc2
9720 builtin and then its argument prototype would still apply. */
9721 char jl_dic_list_e();
9727 if { (eval echo configure:9728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9729 eval "ac_cv_lib_$ac_lib_var=yes"
9731 echo "configure: failed program was:" >&5
9732 cat conftest.$ac_ext >&5
9734 eval "ac_cv_lib_$ac_lib_var=no"
9739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9740 echo "$ac_t""yes" 1>&6
9743 echo "$ac_t""no" 1>&6
9744 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9745 echo "configure:9746: checking for jl_dic_list_e in -lwnn4" >&5
9746 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9748 xe_check_libs=" -lwnn4 "
9749 cat > conftest.$ac_ext <<EOF
9750 #line 9751 "configure"
9751 #include "confdefs.h"
9752 /* Override any gcc2 internal prototype to avoid an error. */
9753 /* We use char because int might match the return type of a gcc2
9754 builtin and then its argument prototype would still apply. */
9755 char jl_dic_list_e();
9761 if { (eval echo configure:9762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9763 eval "ac_cv_lib_$ac_lib_var=yes"
9765 echo "configure: failed program was:" >&5
9766 cat conftest.$ac_ext >&5
9768 eval "ac_cv_lib_$ac_lib_var=no"
9773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9774 echo "$ac_t""yes" 1>&6
9777 echo "$ac_t""no" 1>&6
9778 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9779 echo "configure:9780: checking for jl_dic_list_e in -lwnn6" >&5
9780 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9782 xe_check_libs=" -lwnn6 "
9783 cat > conftest.$ac_ext <<EOF
9784 #line 9785 "configure"
9785 #include "confdefs.h"
9786 /* Override any gcc2 internal prototype to avoid an error. */
9787 /* We use char because int might match the return type of a gcc2
9788 builtin and then its argument prototype would still apply. */
9789 char jl_dic_list_e();
9795 if { (eval echo configure:9796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9797 eval "ac_cv_lib_$ac_lib_var=yes"
9799 echo "configure: failed program was:" >&5
9800 cat conftest.$ac_ext >&5
9802 eval "ac_cv_lib_$ac_lib_var=no"
9807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9808 echo "$ac_t""yes" 1>&6
9811 echo "$ac_t""no" 1>&6
9812 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9813 echo "configure:9814: checking for dic_list_e in -lwnn6_fromsrc" >&5
9814 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9816 xe_check_libs=" -lwnn6_fromsrc "
9817 cat > conftest.$ac_ext <<EOF
9818 #line 9819 "configure"
9819 #include "confdefs.h"
9820 /* Override any gcc2 internal prototype to avoid an error. */
9821 /* We use char because int might match the return type of a gcc2
9822 builtin and then its argument prototype would still apply. */
9829 if { (eval echo configure:9830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9831 eval "ac_cv_lib_$ac_lib_var=yes"
9833 echo "configure: failed program was:" >&5
9834 cat conftest.$ac_ext >&5
9836 eval "ac_cv_lib_$ac_lib_var=no"
9841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9842 echo "$ac_t""yes" 1>&6
9845 echo "$ac_t""no" 1>&6
9860 test -z "$with_wnn" && with_wnn=yes
9861 if test "$with_wnn" = "yes"; then
9862 { test "$extra_verbose" = "yes" && cat << \EOF
9865 cat >> confdefs.h <<\EOF
9870 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
9871 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
9872 echo " xemacs will be linked with \"mule-wnnfns.o\""
9874 if test "$with_wnn6" != "no"; then
9876 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9877 echo "configure:9878: checking for jl_fi_dic_list in -l$libwnn" >&5
9878 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9880 xe_check_libs=" -l$libwnn "
9881 cat > conftest.$ac_ext <<EOF
9882 #line 9883 "configure"
9883 #include "confdefs.h"
9884 /* Override any gcc2 internal prototype to avoid an error. */
9885 /* We use char because int might match the return type of a gcc2
9886 builtin and then its argument prototype would still apply. */
9887 char jl_fi_dic_list();
9893 if { (eval echo configure:9894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9895 eval "ac_cv_lib_$ac_lib_var=yes"
9897 echo "configure: failed program was:" >&5
9898 cat conftest.$ac_ext >&5
9900 eval "ac_cv_lib_$ac_lib_var=no"
9905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9906 echo "$ac_t""yes" 1>&6
9909 echo "$ac_t""no" 1>&6
9913 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9916 cat >> confdefs.h <<\EOF
9924 canna_includes_found=no
9925 if test "$with_canna" != "no"; then
9926 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9927 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9928 echo "configure:9929: checking for canna/jrkanji.h" >&5
9930 cat > conftest.$ac_ext <<EOF
9931 #line 9932 "configure"
9932 #include "confdefs.h"
9933 #include <canna/jrkanji.h>
9935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9936 { (eval echo configure:9937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9938 if test -z "$ac_err"; then
9940 eval "ac_cv_header_$ac_safe=yes"
9943 echo "configure: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9946 eval "ac_cv_header_$ac_safe=no"
9949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9950 echo "$ac_t""yes" 1>&6
9951 canna_includes_found=yes
9953 echo "$ac_t""no" 1>&6
9957 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
9958 -d "/usr/local/canna/include"; then
9959 save_c_switch_site="$c_switch_site"
9960 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9961 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9962 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9963 echo "configure:9964: checking for canna/jrkanji.h" >&5
9965 cat > conftest.$ac_ext <<EOF
9966 #line 9967 "configure"
9967 #include "confdefs.h"
9968 #include <canna/jrkanji.h>
9970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9971 { (eval echo configure:9972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9973 if test -z "$ac_err"; then
9975 eval "ac_cv_header_$ac_safe=yes"
9978 echo "configure: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9981 eval "ac_cv_header_$ac_safe=no"
9984 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9985 echo "$ac_t""yes" 1>&6
9986 canna_includes_found=yes
9988 echo "$ac_t""no" 1>&6
9991 if test "$canna_includes_found" != "yes"; then
9992 c_switch_site="$save_c_switch_site"
9997 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9998 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9999 echo "configure:10000: checking for canna/RK.h" >&5
10001 cat > conftest.$ac_ext <<EOF
10002 #line 10003 "configure"
10003 #include "confdefs.h"
10004 #include <canna/RK.h>
10006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10007 { (eval echo configure:10008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10009 if test -z "$ac_err"; then
10011 eval "ac_cv_header_$ac_safe=yes"
10014 echo "configure: failed program was:" >&5
10015 cat conftest.$ac_ext >&5
10017 eval "ac_cv_header_$ac_safe=no"
10020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10021 echo "$ac_t""yes" 1>&6
10024 echo "$ac_t""no" 1>&6
10028 test -z "$with_canna" && {
10029 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10030 echo "configure:10031: checking for RkBgnBun in -lRKC" >&5
10031 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10033 xe_check_libs=" -lRKC "
10034 cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 /* Override any gcc2 internal prototype to avoid an error. */
10038 /* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10046 if { (eval echo configure:10047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10048 eval "ac_cv_lib_$ac_lib_var=yes"
10050 echo "configure: failed program was:" >&5
10051 cat conftest.$ac_ext >&5
10053 eval "ac_cv_lib_$ac_lib_var=no"
10058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10059 echo "$ac_t""yes" 1>&6
10062 echo "$ac_t""no" 1>&6
10067 test -z "$with_canna" && {
10068 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10069 echo "configure:10070: checking for jrKanjiControl in -lcanna" >&5
10070 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10072 xe_check_libs=" -lcanna "
10073 cat > conftest.$ac_ext <<EOF
10074 #line 10075 "configure"
10075 #include "confdefs.h"
10076 /* Override any gcc2 internal prototype to avoid an error. */
10077 /* We use char because int might match the return type of a gcc2
10078 builtin and then its argument prototype would still apply. */
10079 char jrKanjiControl();
10085 if { (eval echo configure:10086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10087 eval "ac_cv_lib_$ac_lib_var=yes"
10089 echo "configure: failed program was:" >&5
10090 cat conftest.$ac_ext >&5
10092 eval "ac_cv_lib_$ac_lib_var=no"
10097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10098 echo "$ac_t""yes" 1>&6
10101 echo "$ac_t""no" 1>&6
10106 test -z "$with_canna" && with_canna=yes
10107 if test "$with_canna" = "yes"; then
10108 { test "$extra_verbose" = "yes" && cat << \EOF
10109 Defining HAVE_CANNA
10111 cat >> confdefs.h <<\EOF
10112 #define HAVE_CANNA 1
10116 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10117 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10118 echo " xemacs will be linked with \"mule-canna.o\""
10122 else for feature in xim canna wnn; do
10123 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10124 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10126 eval "with_${feature}=no"
10130 if test "$need_motif" = "yes" ; then
10131 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10133 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10134 echo "configure:10135: checking for layout_object_getvalue in -li18n" >&5
10135 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10137 xe_check_libs=" -li18n "
10138 cat > conftest.$ac_ext <<EOF
10139 #line 10140 "configure"
10140 #include "confdefs.h"
10141 /* Override any gcc2 internal prototype to avoid an error. */
10142 /* We use char because int might match the return type of a gcc2
10143 builtin and then its argument prototype would still apply. */
10144 char layout_object_getvalue();
10147 layout_object_getvalue()
10150 if { (eval echo configure:10151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10152 eval "ac_cv_lib_$ac_lib_var=yes"
10154 echo "configure: failed program was:" >&5
10155 cat conftest.$ac_ext >&5
10157 eval "ac_cv_lib_$ac_lib_var=no"
10162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10163 echo "$ac_t""yes" 1>&6
10164 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10166 echo "$ac_t""no" 1>&6
10171 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10172 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10173 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10175 runpath="" runpath_dirs=""
10176 if test -n "$LD_RUN_PATH"; then
10177 runpath="$LD_RUN_PATH"
10178 elif test "$GCC" = "yes"; then
10179 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10180 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10181 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10182 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10183 case "$arg" in P,* | -L* | -R* )
10184 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10186 xe_runpath_dir="$dir"
10187 test "$xe_runpath_dir" != "/lib" -a \
10188 "$xe_runpath_dir" != "/usr/lib" -a \
10189 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10190 eval "$xe_add_unique_runpath_dir"
10195 ld_switch_run="$ld_switch_run_save"
10198 for arg in $ld_switch_site $ld_switch_x_site; do
10199 case "$arg" in -L*) {
10200 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10201 test "$xe_runpath_dir" != "/lib" -a \
10202 "$xe_runpath_dir" != "/usr/lib" -a \
10203 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10204 eval "$xe_add_unique_runpath_dir"
10207 if test "$opsys $need_motif" = "sol2 yes"; then
10208 xe_runpath_dir="/opt/SUNWdt/lib";
10209 eval "$xe_add_unique_runpath_dir";
10212 if test -n "$runpath"; then
10213 ld_switch_run="${dash_r}${runpath}"
10215 if test "$GCC" = "yes"; then
10216 set x $ld_switch_run; shift; ld_switch_run=""
10217 while test -n "$1"; do
10219 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10220 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10222 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10227 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10233 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo 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 snprintf stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask
10235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10236 echo "configure:10237: checking for $ac_func" >&5
10238 cat > conftest.$ac_ext <<EOF
10239 #line 10240 "configure"
10240 #include "confdefs.h"
10241 /* System header to define __stub macros and hopefully few prototypes,
10242 which can conflict with char $ac_func(); below. */
10243 #include <assert.h>
10244 /* Override any gcc2 internal prototype to avoid an error. */
10245 /* We use char because int might match the return type of a gcc2
10246 builtin and then its argument prototype would still apply. */
10251 /* The GNU C library defines this for functions which it implements
10252 to always fail with ENOSYS. Some functions are actually named
10253 something starting with __ and the normal name is an alias. */
10254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10262 if { (eval echo configure:10263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10264 eval "ac_cv_func_$ac_func=yes"
10266 echo "configure: failed program was:" >&5
10267 cat conftest.$ac_ext >&5
10269 eval "ac_cv_func_$ac_func=no"
10273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10274 echo "$ac_t""yes" 1>&6
10275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10276 { test "$extra_verbose" = "yes" && cat << EOF
10277 Defining $ac_tr_func
10279 cat >> confdefs.h <<EOF
10280 #define $ac_tr_func 1
10285 echo "$ac_t""no" 1>&6
10291 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10294 echo "configure:10295: checking for $ac_func" >&5
10296 cat > conftest.$ac_ext <<EOF
10297 #line 10298 "configure"
10298 #include "confdefs.h"
10299 /* System header to define __stub macros and hopefully few prototypes,
10300 which can conflict with char $ac_func(); below. */
10301 #include <assert.h>
10302 /* Override any gcc2 internal prototype to avoid an error. */
10303 /* We use char because int might match the return type of a gcc2
10304 builtin and then its argument prototype would still apply. */
10309 /* The GNU C library defines this for functions which it implements
10310 to always fail with ENOSYS. Some functions are actually named
10311 something starting with __ and the normal name is an alias. */
10312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10320 if { (eval echo configure:10321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10322 eval "ac_cv_func_$ac_func=yes"
10324 echo "configure: failed program was:" >&5
10325 cat conftest.$ac_ext >&5
10327 eval "ac_cv_func_$ac_func=no"
10331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10332 echo "$ac_t""yes" 1>&6
10333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10334 { test "$extra_verbose" = "yes" && cat << EOF
10335 Defining $ac_tr_func
10337 cat >> confdefs.h <<EOF
10338 #define $ac_tr_func 1
10343 echo "$ac_t""no" 1>&6
10348 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10349 echo "configure:10350: checking for openpty" >&5
10351 cat > conftest.$ac_ext <<EOF
10352 #line 10353 "configure"
10353 #include "confdefs.h"
10354 /* System header to define __stub macros and hopefully few prototypes,
10355 which can conflict with char openpty(); below. */
10356 #include <assert.h>
10357 /* Override any gcc2 internal prototype to avoid an error. */
10358 /* We use char because int might match the return type of a gcc2
10359 builtin and then its argument prototype would still apply. */
10364 /* The GNU C library defines this for functions which it implements
10365 to always fail with ENOSYS. Some functions are actually named
10366 something starting with __ and the normal name is an alias. */
10367 #if defined (__stub_openpty) || defined (__stub___openpty)
10375 if { (eval echo configure:10376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10377 eval "ac_cv_func_openpty=yes"
10379 echo "configure: failed program was:" >&5
10380 cat conftest.$ac_ext >&5
10382 eval "ac_cv_func_openpty=no"
10386 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
10387 echo "$ac_t""yes" 1>&6
10390 echo "$ac_t""no" 1>&6
10393 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10394 echo "configure:10395: checking for openpty in -lutil" >&5
10395 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10397 xe_check_libs=" -lutil "
10398 cat > conftest.$ac_ext <<EOF
10399 #line 10400 "configure"
10400 #include "confdefs.h"
10401 /* Override any gcc2 internal prototype to avoid an error. */
10402 /* We use char because int might match the return type of a gcc2
10403 builtin and then its argument prototype would still apply. */
10410 if { (eval echo configure:10411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10412 eval "ac_cv_lib_$ac_lib_var=yes"
10414 echo "configure: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10417 eval "ac_cv_lib_$ac_lib_var=no"
10422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10423 echo "$ac_t""yes" 1>&6
10424 have_openpty=yes need_libutil=yes
10426 echo "$ac_t""no" 1>&6
10432 if test "$have_openpty" = "yes"; then
10433 { test "$extra_verbose" = "yes" && cat << \EOF
10434 Defining HAVE_OPENPTY
10436 cat >> confdefs.h <<\EOF
10437 #define HAVE_OPENPTY 1
10441 for ac_hdr in pty.h libutil.h util.h
10443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10445 echo "configure:10446: checking for $ac_hdr" >&5
10447 cat > conftest.$ac_ext <<EOF
10448 #line 10449 "configure"
10449 #include "confdefs.h"
10452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10453 { (eval echo configure:10454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10455 if test -z "$ac_err"; then
10457 eval "ac_cv_header_$ac_safe=yes"
10460 echo "configure: failed program was:" >&5
10461 cat conftest.$ac_ext >&5
10463 eval "ac_cv_header_$ac_safe=no"
10466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10467 echo "$ac_t""yes" 1>&6
10468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10469 { test "$extra_verbose" = "yes" && cat << EOF
10470 Defining $ac_tr_hdr
10472 cat >> confdefs.h <<EOF
10473 #define $ac_tr_hdr 1
10478 echo "$ac_t""no" 1>&6
10482 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
10485 for ac_hdr in stropts.h
10487 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10489 echo "configure:10490: checking for $ac_hdr" >&5
10491 cat > conftest.$ac_ext <<EOF
10492 #line 10493 "configure"
10493 #include "confdefs.h"
10496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10497 { (eval echo configure:10498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10499 if test -z "$ac_err"; then
10501 eval "ac_cv_header_$ac_safe=yes"
10504 echo "configure: failed program was:" >&5
10505 cat conftest.$ac_ext >&5
10507 eval "ac_cv_header_$ac_safe=no"
10510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10511 echo "$ac_t""yes" 1>&6
10512 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10513 { test "$extra_verbose" = "yes" && cat << EOF
10514 Defining $ac_tr_hdr
10516 cat >> confdefs.h <<EOF
10517 #define $ac_tr_hdr 1
10522 echo "$ac_t""no" 1>&6
10526 if test "$ac_cv_header_stropts_h" = "yes"; then
10527 for ac_func in isastream
10529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10530 echo "configure:10531: checking for $ac_func" >&5
10532 cat > conftest.$ac_ext <<EOF
10533 #line 10534 "configure"
10534 #include "confdefs.h"
10535 /* System header to define __stub macros and hopefully few prototypes,
10536 which can conflict with char $ac_func(); below. */
10537 #include <assert.h>
10538 /* Override any gcc2 internal prototype to avoid an error. */
10539 /* We use char because int might match the return type of a gcc2
10540 builtin and then its argument prototype would still apply. */
10545 /* The GNU C library defines this for functions which it implements
10546 to always fail with ENOSYS. Some functions are actually named
10547 something starting with __ and the normal name is an alias. */
10548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10556 if { (eval echo configure:10557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10558 eval "ac_cv_func_$ac_func=yes"
10560 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10563 eval "ac_cv_func_$ac_func=no"
10567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10568 echo "$ac_t""yes" 1>&6
10569 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10570 { test "$extra_verbose" = "yes" && cat << EOF
10571 Defining $ac_tr_func
10573 cat >> confdefs.h <<EOF
10574 #define $ac_tr_func 1
10579 echo "$ac_t""no" 1>&6
10583 for ac_hdr in strtio.h
10585 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10586 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10587 echo "configure:10588: checking for $ac_hdr" >&5
10589 cat > conftest.$ac_ext <<EOF
10590 #line 10591 "configure"
10591 #include "confdefs.h"
10594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10595 { (eval echo configure:10596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10597 if test -z "$ac_err"; then
10599 eval "ac_cv_header_$ac_safe=yes"
10602 echo "configure: failed program was:" >&5
10603 cat conftest.$ac_ext >&5
10605 eval "ac_cv_header_$ac_safe=no"
10608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10609 echo "$ac_t""yes" 1>&6
10610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10611 { test "$extra_verbose" = "yes" && cat << EOF
10612 Defining $ac_tr_hdr
10614 cat >> confdefs.h <<EOF
10615 #define $ac_tr_hdr 1
10620 echo "$ac_t""no" 1>&6
10625 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
10626 echo " xemacs will be linked with \"realpath.o\""
10629 for ac_func in getloadavg
10631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10632 echo "configure:10633: checking for $ac_func" >&5
10634 cat > conftest.$ac_ext <<EOF
10635 #line 10636 "configure"
10636 #include "confdefs.h"
10637 /* System header to define __stub macros and hopefully few prototypes,
10638 which can conflict with char $ac_func(); below. */
10639 #include <assert.h>
10640 /* Override any gcc2 internal prototype to avoid an error. */
10641 /* We use char because int might match the return type of a gcc2
10642 builtin and then its argument prototype would still apply. */
10647 /* The GNU C library defines this for functions which it implements
10648 to always fail with ENOSYS. Some functions are actually named
10649 something starting with __ and the normal name is an alias. */
10650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10658 if { (eval echo configure:10659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10660 eval "ac_cv_func_$ac_func=yes"
10662 echo "configure: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10665 eval "ac_cv_func_$ac_func=no"
10669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10670 echo "$ac_t""yes" 1>&6
10671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10672 { test "$extra_verbose" = "yes" && cat << EOF
10673 Defining $ac_tr_func
10675 cat >> confdefs.h <<EOF
10676 #define $ac_tr_func 1
10681 echo "$ac_t""no" 1>&6
10686 if test "$ac_cv_func_getloadavg" = "yes"; then
10687 for ac_hdr in sys/loadavg.h
10689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10691 echo "configure:10692: checking for $ac_hdr" >&5
10693 cat > conftest.$ac_ext <<EOF
10694 #line 10695 "configure"
10695 #include "confdefs.h"
10698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10699 { (eval echo configure:10700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10701 if test -z "$ac_err"; then
10703 eval "ac_cv_header_$ac_safe=yes"
10706 echo "configure: failed program was:" >&5
10707 cat conftest.$ac_ext >&5
10709 eval "ac_cv_header_$ac_safe=no"
10712 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10713 echo "$ac_t""yes" 1>&6
10714 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10715 { test "$extra_verbose" = "yes" && cat << EOF
10716 Defining $ac_tr_hdr
10718 cat >> confdefs.h <<EOF
10719 #define $ac_tr_hdr 1
10724 echo "$ac_t""no" 1>&6
10729 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
10730 echo " xemacs will be linked with \"getloadavg.o\""
10734 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
10735 echo "configure:10736: checking for kstat_open in -lkstat" >&5
10736 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
10738 xe_check_libs=" -lkstat "
10739 cat > conftest.$ac_ext <<EOF
10740 #line 10741 "configure"
10741 #include "confdefs.h"
10742 /* Override any gcc2 internal prototype to avoid an error. */
10743 /* We use char because int might match the return type of a gcc2
10744 builtin and then its argument prototype would still apply. */
10751 if { (eval echo configure:10752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10753 eval "ac_cv_lib_$ac_lib_var=yes"
10755 echo "configure: failed program was:" >&5
10756 cat conftest.$ac_ext >&5
10758 eval "ac_cv_lib_$ac_lib_var=no"
10763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10764 echo "$ac_t""yes" 1>&6
10765 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10766 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10767 { test "$extra_verbose" = "yes" && cat << EOF
10768 Defining $ac_tr_lib
10770 cat >> confdefs.h <<EOF
10771 #define $ac_tr_lib 1
10775 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
10778 echo "$ac_t""no" 1>&6
10782 for ac_hdr in kstat.h
10784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10786 echo "configure:10787: checking for $ac_hdr" >&5
10788 cat > conftest.$ac_ext <<EOF
10789 #line 10790 "configure"
10790 #include "confdefs.h"
10793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10794 { (eval echo configure:10795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10796 if test -z "$ac_err"; then
10798 eval "ac_cv_header_$ac_safe=yes"
10801 echo "configure: failed program was:" >&5
10802 cat conftest.$ac_ext >&5
10804 eval "ac_cv_header_$ac_safe=no"
10807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10808 echo "$ac_t""yes" 1>&6
10809 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10810 { test "$extra_verbose" = "yes" && cat << EOF
10811 Defining $ac_tr_hdr
10813 cat >> confdefs.h <<EOF
10814 #define $ac_tr_hdr 1
10819 echo "$ac_t""no" 1>&6
10825 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
10826 echo "configure:10827: checking for kvm_read in -lkvm" >&5
10827 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
10829 xe_check_libs=" -lkvm "
10830 cat > conftest.$ac_ext <<EOF
10831 #line 10832 "configure"
10832 #include "confdefs.h"
10833 /* Override any gcc2 internal prototype to avoid an error. */
10834 /* We use char because int might match the return type of a gcc2
10835 builtin and then its argument prototype would still apply. */
10842 if { (eval echo configure:10843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10844 eval "ac_cv_lib_$ac_lib_var=yes"
10846 echo "configure: failed program was:" >&5
10847 cat conftest.$ac_ext >&5
10849 eval "ac_cv_lib_$ac_lib_var=no"
10854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10855 echo "$ac_t""yes" 1>&6
10856 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10857 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10858 { test "$extra_verbose" = "yes" && cat << EOF
10859 Defining $ac_tr_lib
10861 cat >> confdefs.h <<EOF
10862 #define $ac_tr_lib 1
10866 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
10869 echo "$ac_t""no" 1>&6
10875 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
10876 echo "configure:10877: checking whether netdb declares h_errno" >&5
10877 cat > conftest.$ac_ext <<EOF
10878 #line 10879 "configure"
10879 #include "confdefs.h"
10885 if { (eval echo configure:10886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10887 echo "$ac_t""yes" 1>&6
10888 { test "$extra_verbose" = "yes" && cat << \EOF
10889 Defining HAVE_H_ERRNO
10891 cat >> confdefs.h <<\EOF
10892 #define HAVE_H_ERRNO 1
10897 echo "configure: failed program was:" >&5
10898 cat conftest.$ac_ext >&5
10900 echo "$ac_t""no" 1>&6
10904 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
10905 echo "configure:10906: checking for sigsetjmp" >&5
10906 cat > conftest.$ac_ext <<EOF
10907 #line 10908 "configure"
10908 #include "confdefs.h"
10909 #include <setjmp.h>
10911 sigjmp_buf bar; sigsetjmp (bar, 0);
10914 if { (eval echo configure:10915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10916 echo "$ac_t""yes" 1>&6
10917 { test "$extra_verbose" = "yes" && cat << \EOF
10918 Defining HAVE_SIGSETJMP
10920 cat >> confdefs.h <<\EOF
10921 #define HAVE_SIGSETJMP 1
10926 echo "configure: failed program was:" >&5
10927 cat conftest.$ac_ext >&5
10929 echo "$ac_t""no" 1>&6
10933 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
10934 echo "configure:10935: checking whether localtime caches TZ" >&5
10936 if test "$ac_cv_func_tzset" = "yes"; then
10937 cat > conftest.$ac_ext <<EOF
10938 #line 10939 "configure"
10939 #include "confdefs.h"
10942 # include <stdlib.h>
10944 extern char **environ;
10948 for (to = from = environ; (*to = *from); from++)
10949 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
10952 char TZ_GMT0[] = "TZ=GMT0";
10953 char TZ_PST8[] = "TZ=PST8";
10956 time_t now = time ((time_t *) 0);
10957 int hour_GMT0, hour_unset;
10958 if (putenv (TZ_GMT0) != 0)
10960 hour_GMT0 = localtime (&now)->tm_hour;
10962 hour_unset = localtime (&now)->tm_hour;
10963 if (putenv (TZ_PST8) != 0)
10965 if (localtime (&now)->tm_hour == hour_GMT0)
10968 if (localtime (&now)->tm_hour != hour_unset)
10973 if { (eval echo configure:10974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10975 emacs_cv_localtime_cache=no
10978 echo "configure: failed program was:" >&5
10979 cat conftest.$ac_ext >&5
10981 emacs_cv_localtime_cache=yes
10985 # If we lack tzset, report that localtime does not cache TZ,
10986 # since we can't invalidate the cache if we don't have tzset.
10987 emacs_cv_localtime_cache=no
10989 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
10990 if test $emacs_cv_localtime_cache = yes; then
10991 { test "$extra_verbose" = "yes" && cat << \EOF
10992 Defining LOCALTIME_CACHE
10994 cat >> confdefs.h <<\EOF
10995 #define LOCALTIME_CACHE 1
11001 if test "$HAVE_TIMEVAL" = "yes"; then
11002 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11003 echo "configure:11004: checking whether gettimeofday accepts one or two arguments" >&5
11004 cat > conftest.$ac_ext <<EOF
11005 #line 11006 "configure"
11006 #include "confdefs.h"
11008 #ifdef TIME_WITH_SYS_TIME
11009 #include <sys/time.h>
11012 #ifdef HAVE_SYS_TIME_H
11013 #include <sys/time.h>
11021 struct timeval time;
11022 gettimeofday (&time, 0);
11026 if { (eval echo configure:11027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11028 echo "$ac_t""two" 1>&6
11030 echo "configure: failed program was:" >&5
11031 cat conftest.$ac_ext >&5
11033 echo "$ac_t""one" 1>&6
11034 { test "$extra_verbose" = "yes" && cat << \EOF
11035 Defining GETTIMEOFDAY_ONE_ARGUMENT
11037 cat >> confdefs.h <<\EOF
11038 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11047 echo $ac_n "checking for inline""... $ac_c" 1>&6
11048 echo "configure:11049: checking for inline" >&5
11051 for ac_kw in inline __inline__ __inline; do
11052 cat > conftest.$ac_ext <<EOF
11053 #line 11054 "configure"
11054 #include "confdefs.h"
11060 if { (eval echo configure:11061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11062 ac_cv_c_inline=$ac_kw; break
11064 echo "configure: failed program was:" >&5
11065 cat conftest.$ac_ext >&5
11071 echo "$ac_t""$ac_cv_c_inline" 1>&6
11072 case "$ac_cv_c_inline" in
11074 no) { test "$extra_verbose" = "yes" && cat << \EOF
11077 cat >> confdefs.h <<\EOF
11082 *) { test "$extra_verbose" = "yes" && cat << EOF
11083 Defining inline = $ac_cv_c_inline
11085 cat >> confdefs.h <<EOF
11086 #define inline $ac_cv_c_inline
11092 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11093 echo " xemacs will be linked with \"inline.o\""
11097 if test "$__DECC" != "yes"; then
11098 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11099 # for constant arguments. Useless!
11100 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11101 echo "configure:11102: checking for working alloca.h" >&5
11103 cat > conftest.$ac_ext <<EOF
11104 #line 11105 "configure"
11105 #include "confdefs.h"
11106 #include <alloca.h>
11108 char *p = alloca(2 * sizeof(int));
11111 if { (eval echo configure:11112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11113 ac_cv_header_alloca_h=yes
11115 echo "configure: failed program was:" >&5
11116 cat conftest.$ac_ext >&5
11118 ac_cv_header_alloca_h=no
11122 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11123 if test $ac_cv_header_alloca_h = yes; then
11124 { test "$extra_verbose" = "yes" && cat << \EOF
11125 Defining HAVE_ALLOCA_H
11127 cat >> confdefs.h <<\EOF
11128 #define HAVE_ALLOCA_H 1
11134 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11135 echo "configure:11136: checking for alloca" >&5
11137 cat > conftest.$ac_ext <<EOF
11138 #line 11139 "configure"
11139 #include "confdefs.h"
11142 # define alloca __builtin_alloca
11145 # include <malloc.h>
11146 # define alloca _alloca
11149 # include <alloca.h>
11154 # ifndef alloca /* predefined by HP cc +Olibcalls */
11163 char *p = (char *) alloca(1);
11166 if { (eval echo configure:11167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11168 ac_cv_func_alloca_works=yes
11170 echo "configure: failed program was:" >&5
11171 cat conftest.$ac_ext >&5
11173 ac_cv_func_alloca_works=no
11177 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11178 if test $ac_cv_func_alloca_works = yes; then
11179 { test "$extra_verbose" = "yes" && cat << \EOF
11180 Defining HAVE_ALLOCA
11182 cat >> confdefs.h <<\EOF
11183 #define HAVE_ALLOCA 1
11189 if test $ac_cv_func_alloca_works = no; then
11190 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11191 # that cause trouble. Some versions do not even contain alloca or
11192 # contain a buggy version. If you still want to use their alloca,
11193 # use ar to extract alloca.o from them instead of compiling alloca.c.
11194 ALLOCA=alloca.${ac_objext}
11195 { test "$extra_verbose" = "yes" && cat << \EOF
11198 cat >> confdefs.h <<\EOF
11204 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11205 echo "configure:11206: checking whether alloca needs Cray hooks" >&5
11207 cat > conftest.$ac_ext <<EOF
11208 #line 11209 "configure"
11209 #include "confdefs.h"
11210 #if defined(CRAY) && ! defined(CRAY2)
11217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11218 egrep "webecray" >/dev/null 2>&1; then
11228 echo "$ac_t""$ac_cv_os_cray" 1>&6
11229 if test $ac_cv_os_cray = yes; then
11230 for ac_func in _getb67 GETB67 getb67; do
11231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11232 echo "configure:11233: checking for $ac_func" >&5
11234 cat > conftest.$ac_ext <<EOF
11235 #line 11236 "configure"
11236 #include "confdefs.h"
11237 /* System header to define __stub macros and hopefully few prototypes,
11238 which can conflict with char $ac_func(); below. */
11239 #include <assert.h>
11240 /* Override any gcc2 internal prototype to avoid an error. */
11241 /* We use char because int might match the return type of a gcc2
11242 builtin and then its argument prototype would still apply. */
11247 /* The GNU C library defines this for functions which it implements
11248 to always fail with ENOSYS. Some functions are actually named
11249 something starting with __ and the normal name is an alias. */
11250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11258 if { (eval echo configure:11259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11260 eval "ac_cv_func_$ac_func=yes"
11262 echo "configure: failed program was:" >&5
11263 cat conftest.$ac_ext >&5
11265 eval "ac_cv_func_$ac_func=no"
11269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11270 echo "$ac_t""yes" 1>&6
11271 { test "$extra_verbose" = "yes" && cat << EOF
11272 Defining CRAY_STACKSEG_END = $ac_func
11274 cat >> confdefs.h <<EOF
11275 #define CRAY_STACKSEG_END $ac_func
11281 echo "$ac_t""no" 1>&6
11287 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11288 echo "configure:11289: checking stack direction for C alloca" >&5
11290 cat > conftest.$ac_ext <<EOF
11291 #line 11292 "configure"
11292 #include "confdefs.h"
11293 find_stack_direction ()
11295 static char *addr = 0;
11300 return find_stack_direction ();
11303 return (&dummy > addr) ? 1 : -1;
11307 exit (find_stack_direction() < 0);
11310 if { (eval echo configure:11311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11312 ac_cv_c_stack_direction=1
11315 echo "configure: failed program was:" >&5
11316 cat conftest.$ac_ext >&5
11318 ac_cv_c_stack_direction=-1
11322 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11323 { test "$extra_verbose" = "yes" && cat << EOF
11324 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11326 cat >> confdefs.h <<EOF
11327 #define STACK_DIRECTION $ac_cv_c_stack_direction
11333 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11334 echo " xemacs will be linked with \"$ALLOCA\""
11338 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11339 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11340 echo "configure:11341: checking for vfork.h" >&5
11342 cat > conftest.$ac_ext <<EOF
11343 #line 11344 "configure"
11344 #include "confdefs.h"
11347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11348 { (eval echo configure:11349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11350 if test -z "$ac_err"; then
11352 eval "ac_cv_header_$ac_safe=yes"
11355 echo "configure: failed program was:" >&5
11356 cat conftest.$ac_ext >&5
11358 eval "ac_cv_header_$ac_safe=no"
11361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11362 echo "$ac_t""yes" 1>&6
11363 { test "$extra_verbose" = "yes" && cat << \EOF
11364 Defining HAVE_VFORK_H
11366 cat >> confdefs.h <<\EOF
11367 #define HAVE_VFORK_H 1
11372 echo "$ac_t""no" 1>&6
11375 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11376 echo "configure:11377: checking for working vfork" >&5
11378 cat > conftest.$ac_ext <<EOF
11379 #line 11380 "configure"
11380 #include "confdefs.h"
11381 /* Thanks to Paul Eggert for this test. */
11383 #include <sys/types.h>
11384 #include <sys/stat.h>
11385 #ifdef HAVE_UNISTD_H
11386 #include <unistd.h>
11388 #ifdef HAVE_VFORK_H
11391 /* On some sparc systems, changes by the child to local and incoming
11392 argument registers are propagated back to the parent.
11393 The compiler is told about this with #include <vfork.h>,
11394 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
11395 Test for this by using a static variable whose address
11396 is put into a register that is clobbered by the vfork. */
11399 sparc_address_test (int arg)
11401 sparc_address_test (arg) int arg;
11404 static pid_t child;
11419 pid_t parent = getpid ();
11422 sparc_address_test ();
11427 /* Here is another test for sparc vfork register problems.
11428 This test uses lots of local variables, at least
11429 as many local variables as main has allocated so far
11430 including compiler temporaries. 4 locals are enough for
11431 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
11432 A buggy compiler should reuse the register of parent
11433 for one of the local variables, since it will think that
11434 parent can't possibly be used any more in this routine.
11435 Assigning to the local variable will thus munge parent
11436 in the parent process. */
11438 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11439 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11440 /* Convince the compiler that p..p7 are live; otherwise, it might
11441 use the same hardware register for all 8 local variables. */
11442 if (p != p1 || p != p2 || p != p3 || p != p4
11443 || p != p5 || p != p6 || p != p7)
11446 /* On some systems (e.g. IRIX 3.3),
11447 vfork doesn't separate parent from child file descriptors.
11448 If the child closes a descriptor before it execs or exits,
11449 this munges the parent's descriptor as well.
11450 Test for this by closing stdout in the child. */
11451 _exit(close(fileno(stdout)) != 0);
11456 while (wait(&status) != child)
11459 /* Was there some problem with vforking? */
11462 /* Did the child fail? (This shouldn't happen.) */
11465 /* Did the vfork/compiler bug occur? */
11466 || parent != getpid()
11468 /* Did the file descriptor bug occur? */
11469 || fstat(fileno(stdout), &st) != 0
11474 if { (eval echo configure:11475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11476 ac_cv_func_vfork_works=yes
11479 echo "configure: failed program was:" >&5
11480 cat conftest.$ac_ext >&5
11482 ac_cv_func_vfork_works=no
11486 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
11487 if test $ac_cv_func_vfork_works = no; then
11488 { test "$extra_verbose" = "yes" && cat << \EOF
11489 Defining vfork = fork
11491 cat >> confdefs.h <<\EOF
11499 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
11500 echo "configure:11501: checking for working strcoll" >&5
11502 cat > conftest.$ac_ext <<EOF
11503 #line 11504 "configure"
11504 #include "confdefs.h"
11505 #include <string.h>
11508 exit (strcoll ("abc", "def") >= 0 ||
11509 strcoll ("ABC", "DEF") >= 0 ||
11510 strcoll ("123", "456") >= 0);
11513 if { (eval echo configure:11514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11515 ac_cv_func_strcoll_works=yes
11518 echo "configure: failed program was:" >&5
11519 cat conftest.$ac_ext >&5
11521 ac_cv_func_strcoll_works=no
11525 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
11526 if test $ac_cv_func_strcoll_works = yes; then
11527 { test "$extra_verbose" = "yes" && cat << \EOF
11528 Defining HAVE_STRCOLL
11530 cat >> confdefs.h <<\EOF
11531 #define HAVE_STRCOLL 1
11538 for ac_func in getpgrp
11540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11541 echo "configure:11542: checking for $ac_func" >&5
11543 cat > conftest.$ac_ext <<EOF
11544 #line 11545 "configure"
11545 #include "confdefs.h"
11546 /* System header to define __stub macros and hopefully few prototypes,
11547 which can conflict with char $ac_func(); below. */
11548 #include <assert.h>
11549 /* Override any gcc2 internal prototype to avoid an error. */
11550 /* We use char because int might match the return type of a gcc2
11551 builtin and then its argument prototype would still apply. */
11556 /* The GNU C library defines this for functions which it implements
11557 to always fail with ENOSYS. Some functions are actually named
11558 something starting with __ and the normal name is an alias. */
11559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11567 if { (eval echo configure:11568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11569 eval "ac_cv_func_$ac_func=yes"
11571 echo "configure: failed program was:" >&5
11572 cat conftest.$ac_ext >&5
11574 eval "ac_cv_func_$ac_func=no"
11578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11579 echo "$ac_t""yes" 1>&6
11580 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11581 { test "$extra_verbose" = "yes" && cat << EOF
11582 Defining $ac_tr_func
11584 cat >> confdefs.h <<EOF
11585 #define $ac_tr_func 1
11590 echo "$ac_t""no" 1>&6
11594 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
11595 echo "configure:11596: checking whether getpgrp takes no argument" >&5
11597 cat > conftest.$ac_ext <<EOF
11598 #line 11599 "configure"
11599 #include "confdefs.h"
11602 * If this system has a BSD-style getpgrp(),
11603 * which takes a pid argument, exit unsuccessfully.
11605 * Snarfed from Chet Ramey's bash pgrp.c test program
11608 #include <sys/types.h>
11611 int pg1, pg2, pg3, pg4;
11612 int ng, np, s, child;
11619 pg3 = getpgrp(pid);
11623 * If all of these values are the same, it's pretty sure that
11624 * we're on a system that ignores getpgrp's first argument.
11626 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
11632 else if (child == 0) {
11635 * If this is Sys V, this will not work; pgrp will be
11636 * set to np because setpgrp just changes a pgrp to be
11637 * the same as the pid.
11640 ng = getpgrp(0); /* Same result for Sys V and BSD */
11653 if { (eval echo configure:11654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11655 ac_cv_func_getpgrp_void=yes
11658 echo "configure: failed program was:" >&5
11659 cat conftest.$ac_ext >&5
11661 ac_cv_func_getpgrp_void=no
11666 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
11667 if test $ac_cv_func_getpgrp_void = yes; then
11668 { test "$extra_verbose" = "yes" && cat << \EOF
11669 Defining GETPGRP_VOID
11671 cat >> confdefs.h <<\EOF
11672 #define GETPGRP_VOID 1
11679 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11680 echo "configure:11681: checking for working mmap" >&5
11681 case "$opsys" in ultrix* ) have_mmap=no ;; *)
11682 cat > conftest.$ac_ext <<EOF
11683 #line 11684 "configure"
11684 #include "confdefs.h"
11686 #include <unistd.h>
11688 #include <sys/mman.h>
11690 #ifndef MAP_VARIABLE
11691 #define MAP_VARIABLE 0
11695 #define MAP_FAILED -1
11698 int main (int argc, char *argv[])
11702 #ifndef MAP_ANONYMOUS
11703 fd = open ("/dev/zero", O_RDWR);
11706 #define MAP_ANONYMOUS 0
11708 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
11709 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
11710 fd, 0) != (void *) MAP_FAILED)
11712 perror ("conftest: mmap failed");
11716 if { (eval echo configure:11717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11721 echo "configure: failed program was:" >&5
11722 cat conftest.$ac_ext >&5
11726 rm -fr conftest* ;;
11728 echo "$ac_t""$have_mmap" 1>&6
11729 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11732 cat >> confdefs.h <<\EOF
11733 #define HAVE_MMAP 1
11738 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
11739 if test "$rel_alloc $have_mmap" = "default yes"; then
11740 if test "$doug_lea_malloc" = "yes"; then
11741 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
11742 echo "configure:11743: checking for M_MMAP_THRESHOLD" >&5
11743 cat > conftest.$ac_ext <<EOF
11744 #line 11745 "configure"
11745 #include "confdefs.h"
11746 #include <malloc.h>
11749 #ifndef M_MMAP_THRESHOLD
11750 #error No M_MMAP_THRESHOLD :-(
11751 !@+$%^&*_)(_ - unlikely to compile...
11756 if { (eval echo configure:11757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11758 rel_alloc=no; echo "$ac_t""yes" 1>&6;
11760 echo "configure: failed program was:" >&5
11761 cat conftest.$ac_ext >&5
11763 rel_alloc=yes; echo "$ac_t""no" 1>&6;
11770 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11773 cat >> confdefs.h <<\EOF
11774 #define REL_ALLOC 1
11779 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
11780 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
11781 echo "configure:11782: checking for termios.h" >&5
11783 cat > conftest.$ac_ext <<EOF
11784 #line 11785 "configure"
11785 #include "confdefs.h"
11786 #include <termios.h>
11788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11789 { (eval echo configure:11790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11791 if test -z "$ac_err"; then
11793 eval "ac_cv_header_$ac_safe=yes"
11796 echo "configure: failed program was:" >&5
11797 cat conftest.$ac_ext >&5
11799 eval "ac_cv_header_$ac_safe=no"
11802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11803 echo "$ac_t""yes" 1>&6
11804 { test "$extra_verbose" = "yes" && cat << \EOF
11805 Defining HAVE_TERMIOS
11807 cat >> confdefs.h <<\EOF
11808 #define HAVE_TERMIOS 1
11812 { test "$extra_verbose" = "yes" && cat << \EOF
11813 Defining SIGNALS_VIA_CHARACTERS
11815 cat >> confdefs.h <<\EOF
11816 #define SIGNALS_VIA_CHARACTERS 1
11820 { test "$extra_verbose" = "yes" && cat << \EOF
11823 cat >> confdefs.h <<\EOF
11824 #define NO_TERMIO 1
11829 echo "$ac_t""no" 1>&6
11830 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
11831 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
11832 echo "configure:11833: checking for termio.h" >&5
11834 cat > conftest.$ac_ext <<EOF
11835 #line 11836 "configure"
11836 #include "confdefs.h"
11837 #include <termio.h>
11839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11840 { (eval echo configure:11841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11842 if test -z "$ac_err"; then
11844 eval "ac_cv_header_$ac_safe=yes"
11847 echo "configure: failed program was:" >&5
11848 cat conftest.$ac_ext >&5
11850 eval "ac_cv_header_$ac_safe=no"
11853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11854 echo "$ac_t""yes" 1>&6
11855 { test "$extra_verbose" = "yes" && cat << \EOF
11856 Defining HAVE_TERMIO
11858 cat >> confdefs.h <<\EOF
11859 #define HAVE_TERMIO 1
11864 echo "$ac_t""no" 1>&6
11871 echo $ac_n "checking for socket""... $ac_c" 1>&6
11872 echo "configure:11873: checking for socket" >&5
11874 cat > conftest.$ac_ext <<EOF
11875 #line 11876 "configure"
11876 #include "confdefs.h"
11877 /* System header to define __stub macros and hopefully few prototypes,
11878 which can conflict with char socket(); below. */
11879 #include <assert.h>
11880 /* Override any gcc2 internal prototype to avoid an error. */
11881 /* We use char because int might match the return type of a gcc2
11882 builtin and then its argument prototype would still apply. */
11887 /* The GNU C library defines this for functions which it implements
11888 to always fail with ENOSYS. Some functions are actually named
11889 something starting with __ and the normal name is an alias. */
11890 #if defined (__stub_socket) || defined (__stub___socket)
11898 if { (eval echo configure:11899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11900 eval "ac_cv_func_socket=yes"
11902 echo "configure: failed program was:" >&5
11903 cat conftest.$ac_ext >&5
11905 eval "ac_cv_func_socket=no"
11909 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11910 echo "$ac_t""yes" 1>&6
11911 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
11912 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
11913 echo "configure:11914: checking for netinet/in.h" >&5
11915 cat > conftest.$ac_ext <<EOF
11916 #line 11917 "configure"
11917 #include "confdefs.h"
11918 #include <netinet/in.h>
11920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11921 { (eval echo configure:11922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11923 if test -z "$ac_err"; then
11925 eval "ac_cv_header_$ac_safe=yes"
11928 echo "configure: failed program was:" >&5
11929 cat conftest.$ac_ext >&5
11931 eval "ac_cv_header_$ac_safe=no"
11934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11935 echo "$ac_t""yes" 1>&6
11936 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
11937 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
11938 echo "configure:11939: checking for arpa/inet.h" >&5
11940 cat > conftest.$ac_ext <<EOF
11941 #line 11942 "configure"
11942 #include "confdefs.h"
11943 #include <arpa/inet.h>
11945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11946 { (eval echo configure:11947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11948 if test -z "$ac_err"; then
11950 eval "ac_cv_header_$ac_safe=yes"
11953 echo "configure: failed program was:" >&5
11954 cat conftest.$ac_ext >&5
11956 eval "ac_cv_header_$ac_safe=no"
11959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11960 echo "$ac_t""yes" 1>&6
11962 { test "$extra_verbose" = "yes" && cat << \EOF
11963 Defining HAVE_SOCKETS
11965 cat >> confdefs.h <<\EOF
11966 #define HAVE_SOCKETS 1
11970 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
11971 echo "configure:11972: checking "for sun_len member in struct sockaddr_un"" >&5
11972 cat > conftest.$ac_ext <<EOF
11973 #line 11974 "configure"
11974 #include "confdefs.h"
11976 #include <sys/types.h>
11977 #include <sys/socket.h>
11978 #include <sys/un.h>
11981 static struct sockaddr_un x; x.sun_len = 1;
11984 if { (eval echo configure:11985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11986 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11987 Defining HAVE_SOCKADDR_SUN_LEN
11989 cat >> confdefs.h <<\EOF
11990 #define HAVE_SOCKADDR_SUN_LEN 1
11995 echo "configure: failed program was:" >&5
11996 cat conftest.$ac_ext >&5
11998 echo "$ac_t""no" 1>&6
12001 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12002 echo "configure:12003: checking "for ip_mreq struct in netinet/in.h"" >&5
12003 cat > conftest.$ac_ext <<EOF
12004 #line 12005 "configure"
12005 #include "confdefs.h"
12007 #include <sys/types.h>
12008 #include <netinet/in.h>
12011 static struct ip_mreq x;
12014 if { (eval echo configure:12015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12016 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12017 Defining HAVE_MULTICAST
12019 cat >> confdefs.h <<\EOF
12020 #define HAVE_MULTICAST 1
12025 echo "configure: failed program was:" >&5
12026 cat conftest.$ac_ext >&5
12028 echo "$ac_t""no" 1>&6
12032 echo "$ac_t""no" 1>&6
12036 echo "$ac_t""no" 1>&6
12040 echo "$ac_t""no" 1>&6
12044 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12045 echo "configure:12046: checking for msgget" >&5
12047 cat > conftest.$ac_ext <<EOF
12048 #line 12049 "configure"
12049 #include "confdefs.h"
12050 /* System header to define __stub macros and hopefully few prototypes,
12051 which can conflict with char msgget(); below. */
12052 #include <assert.h>
12053 /* Override any gcc2 internal prototype to avoid an error. */
12054 /* We use char because int might match the return type of a gcc2
12055 builtin and then its argument prototype would still apply. */
12060 /* The GNU C library defines this for functions which it implements
12061 to always fail with ENOSYS. Some functions are actually named
12062 something starting with __ and the normal name is an alias. */
12063 #if defined (__stub_msgget) || defined (__stub___msgget)
12071 if { (eval echo configure:12072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12073 eval "ac_cv_func_msgget=yes"
12075 echo "configure: failed program was:" >&5
12076 cat conftest.$ac_ext >&5
12078 eval "ac_cv_func_msgget=no"
12082 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12083 echo "$ac_t""yes" 1>&6
12084 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12085 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12086 echo "configure:12087: checking for sys/ipc.h" >&5
12088 cat > conftest.$ac_ext <<EOF
12089 #line 12090 "configure"
12090 #include "confdefs.h"
12091 #include <sys/ipc.h>
12093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12094 { (eval echo configure:12095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12096 if test -z "$ac_err"; then
12098 eval "ac_cv_header_$ac_safe=yes"
12101 echo "configure: failed program was:" >&5
12102 cat conftest.$ac_ext >&5
12104 eval "ac_cv_header_$ac_safe=no"
12107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12108 echo "$ac_t""yes" 1>&6
12109 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12110 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12111 echo "configure:12112: checking for sys/msg.h" >&5
12113 cat > conftest.$ac_ext <<EOF
12114 #line 12115 "configure"
12115 #include "confdefs.h"
12116 #include <sys/msg.h>
12118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12119 { (eval echo configure:12120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12121 if test -z "$ac_err"; then
12123 eval "ac_cv_header_$ac_safe=yes"
12126 echo "configure: failed program was:" >&5
12127 cat conftest.$ac_ext >&5
12129 eval "ac_cv_header_$ac_safe=no"
12132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12133 echo "$ac_t""yes" 1>&6
12134 { test "$extra_verbose" = "yes" && cat << \EOF
12135 Defining HAVE_SYSVIPC
12137 cat >> confdefs.h <<\EOF
12138 #define HAVE_SYSVIPC 1
12143 echo "$ac_t""no" 1>&6
12147 echo "$ac_t""no" 1>&6
12151 echo "$ac_t""no" 1>&6
12155 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12156 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12157 echo "configure:12158: checking for dirent.h" >&5
12159 cat > conftest.$ac_ext <<EOF
12160 #line 12161 "configure"
12161 #include "confdefs.h"
12162 #include <dirent.h>
12164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12165 { (eval echo configure:12166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12167 if test -z "$ac_err"; then
12169 eval "ac_cv_header_$ac_safe=yes"
12172 echo "configure: failed program was:" >&5
12173 cat conftest.$ac_ext >&5
12175 eval "ac_cv_header_$ac_safe=no"
12178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12179 echo "$ac_t""yes" 1>&6
12180 { test "$extra_verbose" = "yes" && cat << \EOF
12181 Defining SYSV_SYSTEM_DIR
12183 cat >> confdefs.h <<\EOF
12184 #define SYSV_SYSTEM_DIR 1
12189 echo "$ac_t""no" 1>&6
12190 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12191 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12192 echo "configure:12193: checking for sys/dir.h" >&5
12194 cat > conftest.$ac_ext <<EOF
12195 #line 12196 "configure"
12196 #include "confdefs.h"
12197 #include <sys/dir.h>
12199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12200 { (eval echo configure:12201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12202 if test -z "$ac_err"; then
12204 eval "ac_cv_header_$ac_safe=yes"
12207 echo "configure: failed program was:" >&5
12208 cat conftest.$ac_ext >&5
12210 eval "ac_cv_header_$ac_safe=no"
12213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12214 echo "$ac_t""yes" 1>&6
12217 echo "$ac_t""no" 1>&6
12218 { test "$extra_verbose" = "yes" && cat << \EOF
12219 Defining NONSYSTEM_DIR_LIBRARY
12221 cat >> confdefs.h <<\EOF
12222 #define NONSYSTEM_DIR_LIBRARY 1
12231 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12232 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12233 echo "configure:12234: checking for nlist.h" >&5
12235 cat > conftest.$ac_ext <<EOF
12236 #line 12237 "configure"
12237 #include "confdefs.h"
12240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12241 { (eval echo configure:12242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12243 if test -z "$ac_err"; then
12245 eval "ac_cv_header_$ac_safe=yes"
12248 echo "configure: failed program was:" >&5
12249 cat conftest.$ac_ext >&5
12251 eval "ac_cv_header_$ac_safe=no"
12254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12255 echo "$ac_t""yes" 1>&6
12256 { test "$extra_verbose" = "yes" && cat << \EOF
12257 Defining NLIST_STRUCT
12259 cat >> confdefs.h <<\EOF
12260 #define NLIST_STRUCT 1
12265 echo "$ac_t""no" 1>&6
12270 echo "checking "for sound support"" 1>&6
12271 echo "configure:12272: checking "for sound support"" >&5
12272 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12274 if test "$with_native_sound" != "no"; then
12275 if test -n "$native_sound_lib"; then
12276 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12277 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12278 echo "configure:12279: checking for multimedia/audio_device.h" >&5
12280 cat > conftest.$ac_ext <<EOF
12281 #line 12282 "configure"
12282 #include "confdefs.h"
12283 #include <multimedia/audio_device.h>
12285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12286 { (eval echo configure:12287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12288 if test -z "$ac_err"; then
12290 eval "ac_cv_header_$ac_safe=yes"
12293 echo "configure: failed program was:" >&5
12294 cat conftest.$ac_ext >&5
12296 eval "ac_cv_header_$ac_safe=no"
12299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12300 echo "$ac_t""yes" 1>&6
12301 sound_found=yes sound_cflags=""
12302 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12303 echo " xemacs will be linked with \"sunplay.o\""
12306 echo "$ac_t""no" 1>&6
12311 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12313 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12314 echo " xemacs will be linked with \"sunplay.o\""
12316 if test -d "/usr/demo/SOUND/include"
12317 then sound_cflags="-I/usr/demo/SOUND/include"
12318 else sound_cflags="-I/usr/demo/SOUND"
12320 if test -z "$native_sound_lib" ; then
12321 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12322 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12323 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12328 if test -z "$sound_found"; then
12329 case "$canonical" in
12331 if test -z "$native_sound_lib"; then
12333 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12334 echo "configure:12335: checking for ALopenport in -laudio" >&5
12335 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12337 xe_check_libs=" -laudio "
12338 cat > conftest.$ac_ext <<EOF
12339 #line 12340 "configure"
12340 #include "confdefs.h"
12341 /* Override any gcc2 internal prototype to avoid an error. */
12342 /* We use char because int might match the return type of a gcc2
12343 builtin and then its argument prototype would still apply. */
12350 if { (eval echo configure:12351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12352 eval "ac_cv_lib_$ac_lib_var=yes"
12354 echo "configure: failed program was:" >&5
12355 cat conftest.$ac_ext >&5
12357 eval "ac_cv_lib_$ac_lib_var=no"
12362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12363 echo "$ac_t""yes" 1>&6
12364 native_sound_lib="-laudio"
12366 echo "$ac_t""no" 1>&6
12371 if test -n "$native_sound_lib"; then
12372 sound_found=yes sound_cflags=""
12373 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
12374 echo " xemacs will be linked with \"sgiplay.o\""
12378 if test -z "$native_sound_lib"; then
12380 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12381 echo "configure:12382: checking for AOpenAudio in -lAlib" >&5
12382 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12384 xe_check_libs=" -lAlib "
12385 cat > conftest.$ac_ext <<EOF
12386 #line 12387 "configure"
12387 #include "confdefs.h"
12388 /* Override any gcc2 internal prototype to avoid an error. */
12389 /* We use char because int might match the return type of a gcc2
12390 builtin and then its argument prototype would still apply. */
12397 if { (eval echo configure:12398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12399 eval "ac_cv_lib_$ac_lib_var=yes"
12401 echo "configure: failed program was:" >&5
12402 cat conftest.$ac_ext >&5
12404 eval "ac_cv_lib_$ac_lib_var=no"
12409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12410 echo "$ac_t""yes" 1>&6
12411 native_sound_lib="-lAlib"
12413 echo "$ac_t""no" 1>&6
12418 if test -n "$native_sound_lib"; then
12420 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
12421 echo " xemacs will be linked with \"hpplay.o\""
12423 if test "$GCC" = "yes" # Kludge city
12424 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
12425 else sound_cflags="+e -I/usr/audio/examples"
12431 if test -z "$sound_found"; then
12432 for dir in "machine" "sys" "linux"; do
12433 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
12434 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
12435 echo "configure:12436: checking for ${dir}/soundcard.h" >&5
12437 cat > conftest.$ac_ext <<EOF
12438 #line 12439 "configure"
12439 #include "confdefs.h"
12440 #include <${dir}/soundcard.h>
12442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12443 { (eval echo configure:12444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12445 if test -z "$ac_err"; then
12447 eval "ac_cv_header_$ac_safe=yes"
12450 echo "configure: failed program was:" >&5
12451 cat conftest.$ac_ext >&5
12453 eval "ac_cv_header_$ac_safe=no"
12456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12457 echo "$ac_t""yes" 1>&6
12460 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
12461 echo " xemacs will be linked with \"linuxplay.o\""
12463 { test "$extra_verbose" = "yes" && cat << EOF
12464 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
12466 cat >> confdefs.h <<EOF
12467 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
12473 echo "$ac_t""no" 1>&6
12479 if test -z "$sound_found"; then
12480 if test "$with_msw" = "yes"; then
12486 test "$sound_found" = "yes" && with_native_sound=yes
12489 if test "$with_native_sound" = "yes"; then
12490 { test "$extra_verbose" = "yes" && cat << \EOF
12491 Defining HAVE_NATIVE_SOUND
12493 cat >> confdefs.h <<\EOF
12494 #define HAVE_NATIVE_SOUND 1
12498 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
12501 if test "$with_nas_sound" != "no"; then
12502 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
12503 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
12504 echo "configure:12505: checking for audio/audiolib.h" >&5
12506 cat > conftest.$ac_ext <<EOF
12507 #line 12508 "configure"
12508 #include "confdefs.h"
12509 #include <audio/audiolib.h>
12511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12512 { (eval echo configure:12513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12514 if test -z "$ac_err"; then
12516 eval "ac_cv_header_$ac_safe=yes"
12519 echo "configure: failed program was:" >&5
12520 cat conftest.$ac_ext >&5
12522 eval "ac_cv_header_$ac_safe=no"
12525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12526 echo "$ac_t""yes" 1>&6
12529 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
12530 echo "configure:12531: checking for AuOpenServer in -laudio" >&5
12531 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
12533 xe_check_libs=" -laudio "
12534 cat > conftest.$ac_ext <<EOF
12535 #line 12536 "configure"
12536 #include "confdefs.h"
12537 /* Override any gcc2 internal prototype to avoid an error. */
12538 /* We use char because int might match the return type of a gcc2
12539 builtin and then its argument prototype would still apply. */
12540 char AuOpenServer();
12546 if { (eval echo configure:12547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12548 eval "ac_cv_lib_$ac_lib_var=yes"
12550 echo "configure: failed program was:" >&5
12551 cat conftest.$ac_ext >&5
12553 eval "ac_cv_lib_$ac_lib_var=no"
12558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12559 echo "$ac_t""yes" 1>&6
12562 echo "$ac_t""no" 1>&6
12567 echo "$ac_t""no" 1>&6
12570 if test "$have_nas_sound" = "yes"; then
12572 { test "$extra_verbose" = "yes" && cat << \EOF
12573 Defining HAVE_NAS_SOUND
12575 cat >> confdefs.h <<\EOF
12576 #define HAVE_NAS_SOUND 1
12580 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
12581 echo " xemacs will be linked with \"nas.o\""
12583 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
12584 cat > conftest.$ac_ext <<EOF
12585 #line 12586 "configure"
12586 #include "confdefs.h"
12587 #include <audio/Xtutil.h>
12589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12590 egrep "AuXtErrorJump" >/dev/null 2>&1; then
12594 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
12595 Defining NAS_NO_ERROR_JUMP
12597 cat >> confdefs.h <<\EOF
12598 #define NAS_NO_ERROR_JUMP 1
12606 test "$with_nas_sound" = "yes" && \
12607 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
12612 if test "$with_esd_sound" != "no"; then
12613 # Extract the first word of "esd-config", so it can be a program name with args.
12614 set dummy esd-config; ac_word=$2
12615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12616 echo "configure:12617: checking for $ac_word" >&5
12618 if test -n "$have_esd_config"; then
12619 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
12621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12623 for ac_dir in $ac_dummy; do
12624 test -z "$ac_dir" && ac_dir=.
12625 if test -f $ac_dir/$ac_word; then
12626 ac_cv_prog_have_esd_config="yes"
12631 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
12633 have_esd_config="$ac_cv_prog_have_esd_config"
12634 if test -n "$have_esd_config"; then
12635 echo "$ac_t""$have_esd_config" 1>&6
12637 echo "$ac_t""no" 1>&6
12640 if test "$have_esd_config" = "yes"; then
12641 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
12642 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi
12643 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
12644 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
12645 echo "configure:12646: checking for esd_play_stream" >&5
12647 cat > conftest.$ac_ext <<EOF
12648 #line 12649 "configure"
12649 #include "confdefs.h"
12650 /* System header to define __stub macros and hopefully few prototypes,
12651 which can conflict with char esd_play_stream(); below. */
12652 #include <assert.h>
12653 /* Override any gcc2 internal prototype to avoid an error. */
12654 /* We use char because int might match the return type of a gcc2
12655 builtin and then its argument prototype would still apply. */
12656 char esd_play_stream();
12660 /* The GNU C library defines this for functions which it implements
12661 to always fail with ENOSYS. Some functions are actually named
12662 something starting with __ and the normal name is an alias. */
12663 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
12671 if { (eval echo configure:12672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12673 eval "ac_cv_func_esd_play_stream=yes"
12675 echo "configure: failed program was:" >&5
12676 cat conftest.$ac_ext >&5
12678 eval "ac_cv_func_esd_play_stream=no"
12682 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
12683 echo "$ac_t""yes" 1>&6
12686 echo "$ac_t""no" 1>&6
12687 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
12692 if test "$have_esd_sound" = "yes"; then
12695 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
12696 echo " xemacs will be linked with \"esd.o\""
12698 { test "$extra_verbose" = "yes" && cat << \EOF
12699 Defining HAVE_ESD_SOUND
12701 cat >> confdefs.h <<\EOF
12702 #define HAVE_ESD_SOUND 1
12707 test "$with_esd_sound" = "yes" && \
12708 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
12713 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
12714 echo " xemacs will be linked with \"miscplay.o\""
12718 test -z "$with_tty" && with_tty=yes
12720 if test "$with_tty" = "yes" ; then
12721 echo "checking for TTY-related features" 1>&6
12722 echo "configure:12723: checking for TTY-related features" >&5
12723 { test "$extra_verbose" = "yes" && cat << \EOF
12726 cat >> confdefs.h <<\EOF
12731 extra_objs="$extra_objs console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o" && if test "$extra_verbose" = "yes"; then
12732 echo " xemacs will be linked with \"console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o\""
12735 if test -z "$with_ncurses"; then
12737 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
12738 echo "configure:12739: checking for tgetent in -lncurses" >&5
12739 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
12741 xe_check_libs=" -lncurses "
12742 cat > conftest.$ac_ext <<EOF
12743 #line 12744 "configure"
12744 #include "confdefs.h"
12745 /* Override any gcc2 internal prototype to avoid an error. */
12746 /* We use char because int might match the return type of a gcc2
12747 builtin and then its argument prototype would still apply. */
12754 if { (eval echo configure:12755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12756 eval "ac_cv_lib_$ac_lib_var=yes"
12758 echo "configure: failed program was:" >&5
12759 cat conftest.$ac_ext >&5
12761 eval "ac_cv_lib_$ac_lib_var=no"
12766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12767 echo "$ac_t""yes" 1>&6
12770 echo "$ac_t""no" 1>&6
12776 if test "$with_ncurses" = "yes"; then
12777 { test "$extra_verbose" = "yes" && cat << \EOF
12778 Defining HAVE_NCURSES
12780 cat >> confdefs.h <<\EOF
12781 #define HAVE_NCURSES 1
12785 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12786 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12787 echo "configure:12788: checking for ncurses/curses.h" >&5
12789 cat > conftest.$ac_ext <<EOF
12790 #line 12791 "configure"
12791 #include "confdefs.h"
12792 #include <ncurses/curses.h>
12794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12795 { (eval echo configure:12796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12797 if test -z "$ac_err"; then
12799 eval "ac_cv_header_$ac_safe=yes"
12802 echo "configure: failed program was:" >&5
12803 cat conftest.$ac_ext >&5
12805 eval "ac_cv_header_$ac_safe=no"
12808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12809 echo "$ac_t""yes" 1>&6
12810 curses_h_file=ncurses/curses.h
12812 echo "$ac_t""no" 1>&6
12815 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
12816 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
12817 echo "configure:12818: checking for ncurses/term.h" >&5
12819 cat > conftest.$ac_ext <<EOF
12820 #line 12821 "configure"
12821 #include "confdefs.h"
12822 #include <ncurses/term.h>
12824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12825 { (eval echo configure:12826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12827 if test -z "$ac_err"; then
12829 eval "ac_cv_header_$ac_safe=yes"
12832 echo "configure: failed program was:" >&5
12833 cat conftest.$ac_ext >&5
12835 eval "ac_cv_header_$ac_safe=no"
12838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12839 echo "$ac_t""yes" 1>&6
12840 term_h_file=ncurses/term.h
12842 echo "$ac_t""no" 1>&6
12845 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12846 echo " xemacs will be linked with \"terminfo.o\""
12848 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
12850 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
12851 save_c_switch_site="$c_switch_site"
12852 c_switch_site="$c_switch_site -I/usr/include/ncurses"
12853 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12854 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12855 echo "configure:12856: checking for ncurses/curses.h" >&5
12857 cat > conftest.$ac_ext <<EOF
12858 #line 12859 "configure"
12859 #include "confdefs.h"
12860 #include <ncurses/curses.h>
12862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12863 { (eval echo configure:12864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12865 if test -z "$ac_err"; then
12867 eval "ac_cv_header_$ac_safe=yes"
12870 echo "configure: failed program was:" >&5
12871 cat conftest.$ac_ext >&5
12873 eval "ac_cv_header_$ac_safe=no"
12876 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12877 echo "$ac_t""yes" 1>&6
12878 curses_h_file=ncurses/curses.h
12880 echo "$ac_t""no" 1>&6
12883 if test "$ac_cv_header_ncurses_curses_h" = "yes"
12884 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
12885 else c_switch_site="$save_c_switch_site"
12888 else if test "$have_terminfo" = "yes"; then
12889 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12890 echo " xemacs will be linked with \"terminfo.o\""
12892 if test -n "$libs_termcap"; then
12893 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12895 for lib in curses termlib termcap; do
12897 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
12898 echo "configure:12899: checking for tgetent in -l$lib" >&5
12899 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
12901 xe_check_libs=" -l$lib "
12902 cat > conftest.$ac_ext <<EOF
12903 #line 12904 "configure"
12904 #include "confdefs.h"
12905 /* Override any gcc2 internal prototype to avoid an error. */
12906 /* We use char because int might match the return type of a gcc2
12907 builtin and then its argument prototype would still apply. */
12914 if { (eval echo configure:12915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12916 eval "ac_cv_lib_$ac_lib_var=yes"
12918 echo "configure: failed program was:" >&5
12919 cat conftest.$ac_ext >&5
12921 eval "ac_cv_lib_$ac_lib_var=no"
12926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12927 echo "$ac_t""yes" 1>&6
12928 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
12930 echo "$ac_t""no" 1>&6
12936 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
12937 echo " xemacs will be linked with \"tparam.o\""
12939 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
12940 if test -n "$libs_termcap"; then
12941 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12944 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
12945 echo "configure:12946: checking for tgetent in -lcurses" >&5
12946 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
12948 xe_check_libs=" -lcurses "
12949 cat > conftest.$ac_ext <<EOF
12950 #line 12951 "configure"
12951 #include "confdefs.h"
12952 /* Override any gcc2 internal prototype to avoid an error. */
12953 /* We use char because int might match the return type of a gcc2
12954 builtin and then its argument prototype would still apply. */
12961 if { (eval echo configure:12962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12963 eval "ac_cv_lib_$ac_lib_var=yes"
12965 echo "configure: failed program was:" >&5
12966 cat conftest.$ac_ext >&5
12968 eval "ac_cv_lib_$ac_lib_var=no"
12973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12974 echo "$ac_t""yes" 1>&6
12975 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
12977 echo "$ac_t""no" 1>&6
12978 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
12979 echo "configure:12980: checking for tgetent in -ltermcap" >&5
12980 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
12982 xe_check_libs=" -ltermcap "
12983 cat > conftest.$ac_ext <<EOF
12984 #line 12985 "configure"
12985 #include "confdefs.h"
12986 /* Override any gcc2 internal prototype to avoid an error. */
12987 /* We use char because int might match the return type of a gcc2
12988 builtin and then its argument prototype would still apply. */
12995 if { (eval echo configure:12996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12997 eval "ac_cv_lib_$ac_lib_var=yes"
12999 echo "configure: failed program was:" >&5
13000 cat conftest.$ac_ext >&5
13002 eval "ac_cv_lib_$ac_lib_var=no"
13007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13008 echo "$ac_t""yes" 1>&6
13009 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13011 echo "$ac_t""no" 1>&6
13012 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13013 echo " xemacs will be linked with \"termcap.o\""
13024 { test "$extra_verbose" = "yes" && cat << EOF
13025 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13027 cat >> confdefs.h <<EOF
13028 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13032 { test "$extra_verbose" = "yes" && cat << EOF
13033 Defining TERM_H_FILE = "${term_h_file-term.h}"
13035 cat >> confdefs.h <<EOF
13036 #define TERM_H_FILE "${term_h_file-term.h}"
13041 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13042 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13043 echo "configure:13044: checking for gpm.h" >&5
13045 cat > conftest.$ac_ext <<EOF
13046 #line 13047 "configure"
13047 #include "confdefs.h"
13050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13051 { (eval echo configure:13052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13053 if test -z "$ac_err"; then
13055 eval "ac_cv_header_$ac_safe=yes"
13058 echo "configure: failed program was:" >&5
13059 cat conftest.$ac_ext >&5
13061 eval "ac_cv_header_$ac_safe=no"
13064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13065 echo "$ac_t""yes" 1>&6
13068 echo "$ac_t""no" 1>&6
13072 test -z "$with_gpm" && {
13073 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13074 echo "configure:13075: checking for Gpm_Open in -lgpm" >&5
13075 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13077 xe_check_libs=" -lgpm "
13078 cat > conftest.$ac_ext <<EOF
13079 #line 13080 "configure"
13080 #include "confdefs.h"
13081 /* Override any gcc2 internal prototype to avoid an error. */
13082 /* We use char because int might match the return type of a gcc2
13083 builtin and then its argument prototype would still apply. */
13090 if { (eval echo configure:13091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13092 eval "ac_cv_lib_$ac_lib_var=yes"
13094 echo "configure: failed program was:" >&5
13095 cat conftest.$ac_ext >&5
13097 eval "ac_cv_lib_$ac_lib_var=no"
13102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13103 echo "$ac_t""yes" 1>&6
13106 echo "$ac_t""no" 1>&6
13111 if test "$with_gpm" = "yes"; then
13112 { test "$extra_verbose" = "yes" && cat << \EOF
13115 cat >> confdefs.h <<\EOF
13120 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13121 echo " xemacs will be linked with \"gpmevent.o\""
13123 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13126 else for feature in ncurses gpm; do
13127 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13128 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13130 eval "with_${feature}=no"
13133 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13134 echo " xemacs will be linked with \"event-unixoid.o\""
13138 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13139 != "no no no" && echo "checking for database support" 1>&6
13140 echo "configure:13141: checking for database support" >&5
13142 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13143 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13144 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13145 echo "configure:13146: checking for ndbm.h" >&5
13147 cat > conftest.$ac_ext <<EOF
13148 #line 13149 "configure"
13149 #include "confdefs.h"
13152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13153 { (eval echo configure:13154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13155 if test -z "$ac_err"; then
13157 eval "ac_cv_header_$ac_safe=yes"
13160 echo "configure: failed program was:" >&5
13161 cat conftest.$ac_ext >&5
13163 eval "ac_cv_header_$ac_safe=no"
13166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13167 echo "$ac_t""yes" 1>&6
13170 echo "$ac_t""no" 1>&6
13172 test "$with_database_gdbm" = "yes" -o \
13173 "$with_database_dbm" = "yes" && \
13174 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13175 with_database_gdbm=no with_database_dbm=no
13180 if test "$with_database_gdbm" != "no"; then
13182 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13183 echo "configure:13184: checking for dbm_open in -lgdbm" >&5
13184 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13186 xe_check_libs=" -lgdbm "
13187 cat > conftest.$ac_ext <<EOF
13188 #line 13189 "configure"
13189 #include "confdefs.h"
13190 /* Override any gcc2 internal prototype to avoid an error. */
13191 /* We use char because int might match the return type of a gcc2
13192 builtin and then its argument prototype would still apply. */
13199 if { (eval echo configure:13200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13201 eval "ac_cv_lib_$ac_lib_var=yes"
13203 echo "configure: failed program was:" >&5
13204 cat conftest.$ac_ext >&5
13206 eval "ac_cv_lib_$ac_lib_var=no"
13211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13212 echo "$ac_t""yes" 1>&6
13213 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13215 echo "$ac_t""no" 1>&6
13216 if test "$with_database_gdbm" = "yes"; then
13217 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13219 with_database_gdbm=no
13225 if test "$with_database_dbm" != "no"; then
13226 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13227 echo "configure:13228: checking for dbm_open" >&5
13229 cat > conftest.$ac_ext <<EOF
13230 #line 13231 "configure"
13231 #include "confdefs.h"
13232 /* System header to define __stub macros and hopefully few prototypes,
13233 which can conflict with char dbm_open(); below. */
13234 #include <assert.h>
13235 /* Override any gcc2 internal prototype to avoid an error. */
13236 /* We use char because int might match the return type of a gcc2
13237 builtin and then its argument prototype would still apply. */
13242 /* The GNU C library defines this for functions which it implements
13243 to always fail with ENOSYS. Some functions are actually named
13244 something starting with __ and the normal name is an alias. */
13245 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13253 if { (eval echo configure:13254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13255 eval "ac_cv_func_dbm_open=yes"
13257 echo "configure: failed program was:" >&5
13258 cat conftest.$ac_ext >&5
13260 eval "ac_cv_func_dbm_open=no"
13264 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13265 echo "$ac_t""yes" 1>&6
13266 with_database_dbm=yes libdbm=
13268 echo "$ac_t""no" 1>&6
13271 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13272 echo "configure:13273: checking for dbm_open in -ldbm" >&5
13273 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13275 xe_check_libs=" -ldbm "
13276 cat > conftest.$ac_ext <<EOF
13277 #line 13278 "configure"
13278 #include "confdefs.h"
13279 /* Override any gcc2 internal prototype to avoid an error. */
13280 /* We use char because int might match the return type of a gcc2
13281 builtin and then its argument prototype would still apply. */
13288 if { (eval echo configure:13289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13290 eval "ac_cv_lib_$ac_lib_var=yes"
13292 echo "configure: failed program was:" >&5
13293 cat conftest.$ac_ext >&5
13295 eval "ac_cv_lib_$ac_lib_var=no"
13300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13301 echo "$ac_t""yes" 1>&6
13302 with_database_dbm=yes libdbm=-ldbm
13304 echo "$ac_t""no" 1>&6
13305 test "$with_database_dbm" = "yes" && \
13306 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13307 with_database_dbm=no
13315 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13316 test "$with_database_gdbm" = "yes" -o \
13317 "$with_database_dbm" = "yes" && \
13318 { test "$extra_verbose" = "yes" && cat << \EOF
13321 cat >> confdefs.h <<\EOF
13327 if test "$with_database_berkdb" != "no"; then
13328 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13329 echo "configure:13330: checking for Berkeley db.h" >&5
13330 for header in "db/db.h" "db.h"; do
13331 cat > conftest.$ac_ext <<EOF
13332 #line 13333 "configure"
13333 #include "confdefs.h"
13335 #include <stdlib.h>
13336 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13337 #ifdef HAVE_INTTYPES_H
13338 #define __BIT_TYPES_DEFINED__
13339 #include <inttypes.h>
13340 typedef uint8_t u_int8_t;
13341 typedef uint16_t u_int16_t;
13342 typedef uint32_t u_int32_t;
13343 #ifdef WE_DONT_NEED_QUADS
13344 typedef uint64_t u_int64_t;
13354 if { (eval echo configure:13355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13356 db_h_file="$header"; break
13358 echo "configure: failed program was:" >&5
13359 cat conftest.$ac_ext >&5
13363 if test -z "$db_h_file"
13364 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13365 else echo "$ac_t""$db_h_file" 1>&6
13368 if test "$with_database_berkdb" != "no"; then
13369 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13370 echo "configure:13371: checking for Berkeley DB version" >&5
13371 cat > conftest.$ac_ext <<EOF
13372 #line 13373 "configure"
13373 #include "confdefs.h"
13374 #include <$db_h_file>
13375 #if DB_VERSION_MAJOR > 1
13380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13381 egrep "yes" >/dev/null 2>&1; then
13383 cat > conftest.$ac_ext <<EOF
13384 #line 13385 "configure"
13385 #include "confdefs.h"
13386 #include <$db_h_file>
13387 #if DB_VERSION_MAJOR > 2
13392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13393 egrep "yes" >/dev/null 2>&1; then
13395 echo "$ac_t""3" 1>&6; dbfunc=db_create
13399 echo "$ac_t""2" 1>&6; dbfunc=db_open
13406 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13410 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13411 echo "configure:13412: checking for $dbfunc" >&5
13413 cat > conftest.$ac_ext <<EOF
13414 #line 13415 "configure"
13415 #include "confdefs.h"
13416 /* System header to define __stub macros and hopefully few prototypes,
13417 which can conflict with char $dbfunc(); below. */
13418 #include <assert.h>
13419 /* Override any gcc2 internal prototype to avoid an error. */
13420 /* We use char because int might match the return type of a gcc2
13421 builtin and then its argument prototype would still apply. */
13426 /* The GNU C library defines this for functions which it implements
13427 to always fail with ENOSYS. Some functions are actually named
13428 something starting with __ and the normal name is an alias. */
13429 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
13437 if { (eval echo configure:13438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13439 eval "ac_cv_func_$dbfunc=yes"
13441 echo "configure: failed program was:" >&5
13442 cat conftest.$ac_ext >&5
13444 eval "ac_cv_func_$dbfunc=no"
13448 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
13449 echo "$ac_t""yes" 1>&6
13450 with_database_berkdb=yes need_libdb=no
13452 echo "$ac_t""no" 1>&6
13455 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
13456 echo "configure:13457: checking for $dbfunc in -ldb" >&5
13457 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
13459 xe_check_libs=" -ldb "
13460 cat > conftest.$ac_ext <<EOF
13461 #line 13462 "configure"
13462 #include "confdefs.h"
13463 /* Override any gcc2 internal prototype to avoid an error. */
13464 /* We use char because int might match the return type of a gcc2
13465 builtin and then its argument prototype would still apply. */
13472 if { (eval echo configure:13473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13474 eval "ac_cv_lib_$ac_lib_var=yes"
13476 echo "configure: failed program was:" >&5
13477 cat conftest.$ac_ext >&5
13479 eval "ac_cv_lib_$ac_lib_var=no"
13484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13485 echo "$ac_t""yes" 1>&6
13486 with_database_berkdb=yes need_libdb=yes
13488 echo "$ac_t""no" 1>&6
13496 if test "$with_database_berkdb" = "yes"; then
13497 { test "$extra_verbose" = "yes" && cat << EOF
13498 Defining DB_H_FILE = "$db_h_file"
13500 cat >> confdefs.h <<EOF
13501 #define DB_H_FILE "$db_h_file"
13505 { test "$extra_verbose" = "yes" && cat << \EOF
13506 Defining HAVE_BERKELEY_DB
13508 cat >> confdefs.h <<\EOF
13509 #define HAVE_BERKELEY_DB 1
13513 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
13514 else with_database_berkdb=no
13518 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13519 != "no no no"; then
13520 { test "$extra_verbose" = "yes" && cat << \EOF
13521 Defining HAVE_DATABASE
13523 cat >> confdefs.h <<\EOF
13524 #define HAVE_DATABASE 1
13528 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
13529 echo " xemacs will be linked with \"database.o\""
13533 if test "$with_socks" = "yes"; then
13535 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
13536 echo "configure:13537: checking for SOCKSinit in -lsocks" >&5
13537 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
13539 xe_check_libs=" -lsocks "
13540 cat > conftest.$ac_ext <<EOF
13541 #line 13542 "configure"
13542 #include "confdefs.h"
13543 /* Override any gcc2 internal prototype to avoid an error. */
13544 /* We use char because int might match the return type of a gcc2
13545 builtin and then its argument prototype would still apply. */
13552 if { (eval echo configure:13553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13554 eval "ac_cv_lib_$ac_lib_var=yes"
13556 echo "configure: failed program was:" >&5
13557 cat conftest.$ac_ext >&5
13559 eval "ac_cv_lib_$ac_lib_var=no"
13564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13565 echo "$ac_t""yes" 1>&6
13566 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13567 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13568 { test "$extra_verbose" = "yes" && cat << EOF
13569 Defining $ac_tr_lib
13571 cat >> confdefs.h <<EOF
13572 #define $ac_tr_lib 1
13576 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
13579 echo "$ac_t""no" 1>&6
13583 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
13584 Defining HAVE_SOCKS
13586 cat >> confdefs.h <<\EOF
13587 #define HAVE_SOCKS 1
13593 if test "$usage_tracking" = "yes"; then
13594 { test "$extra_verbose" = "yes" && cat << \EOF
13595 Defining USAGE_TRACKING
13597 cat >> confdefs.h <<\EOF
13598 #define USAGE_TRACKING 1
13602 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
13605 if test "$with_modules" != "no"; then
13606 echo "checking for module support" 1>&6
13607 echo "configure:13608: checking for module support" >&5
13609 if test "$with_msw" = "yes"; then
13612 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
13613 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
13614 echo "configure:13615: checking for dlfcn.h" >&5
13616 cat > conftest.$ac_ext <<EOF
13617 #line 13618 "configure"
13618 #include "confdefs.h"
13621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13622 { (eval echo configure:13623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13624 if test -z "$ac_err"; then
13626 eval "ac_cv_header_$ac_safe=yes"
13629 echo "configure: failed program was:" >&5
13630 cat conftest.$ac_ext >&5
13632 eval "ac_cv_header_$ac_safe=no"
13635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13636 echo "$ac_t""yes" 1>&6
13638 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
13639 echo "configure:13640: checking for dlopen in -lc" >&5
13640 cat > conftest.$ac_ext <<EOF
13641 #line 13642 "configure"
13642 #include "confdefs.h"
13648 if { (eval echo configure:13649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13652 echo "configure: failed program was:" >&5
13653 cat conftest.$ac_ext >&5
13656 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
13657 echo "configure:13658: checking for dlopen in -ldl" >&5
13658 ac_save_LIBS="$LIBS"
13660 cat > conftest.$ac_ext <<EOF
13661 #line 13662 "configure"
13662 #include "confdefs.h"
13668 if { (eval echo configure:13669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13672 echo "configure: failed program was:" >&5
13673 cat conftest.$ac_ext >&5
13675 LIBS="$ac_save_LIBS"
13682 echo "$ac_t""no" 1>&6
13685 if test -n "$have_dl"; then
13686 { test "$extra_verbose" = "yes" && cat << \EOF
13687 Defining HAVE_DLOPEN
13689 cat >> confdefs.h <<\EOF
13690 #define HAVE_DLOPEN 1
13696 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
13697 echo "configure:13698: checking for shl_load in -ldld" >&5
13698 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
13700 xe_check_libs=" -ldld "
13701 cat > conftest.$ac_ext <<EOF
13702 #line 13703 "configure"
13703 #include "confdefs.h"
13704 /* Override any gcc2 internal prototype to avoid an error. */
13705 /* We use char because int might match the return type of a gcc2
13706 builtin and then its argument prototype would still apply. */
13713 if { (eval echo configure:13714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13715 eval "ac_cv_lib_$ac_lib_var=yes"
13717 echo "configure: failed program was:" >&5
13718 cat conftest.$ac_ext >&5
13720 eval "ac_cv_lib_$ac_lib_var=no"
13725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13726 echo "$ac_t""yes" 1>&6
13727 libdl=dld have_dl=yes;
13728 { test "$extra_verbose" = "yes" && cat << \EOF
13729 Defining HAVE_SHL_LOAD
13731 cat >> confdefs.h <<\EOF
13732 #define HAVE_SHL_LOAD 1
13737 echo "$ac_t""no" 1>&6
13739 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
13740 echo "configure:13741: checking for dld_init in -ldld" >&5
13741 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
13743 xe_check_libs=" -ldld "
13744 cat > conftest.$ac_ext <<EOF
13745 #line 13746 "configure"
13746 #include "confdefs.h"
13747 /* Override any gcc2 internal prototype to avoid an error. */
13748 /* We use char because int might match the return type of a gcc2
13749 builtin and then its argument prototype would still apply. */
13756 if { (eval echo configure:13757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13758 eval "ac_cv_lib_$ac_lib_var=yes"
13760 echo "configure: failed program was:" >&5
13761 cat conftest.$ac_ext >&5
13763 eval "ac_cv_lib_$ac_lib_var=no"
13768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13769 echo "$ac_t""yes" 1>&6
13770 libdl=dld have_dl=yes;
13771 { test "$extra_verbose" = "yes" && cat << \EOF
13772 Defining HAVE_DLD_INIT
13774 cat >> confdefs.h <<\EOF
13775 #define HAVE_DLD_INIT 1
13780 echo "$ac_t""no" 1>&6
13789 if test -n "$have_dl"; then
13796 ld_dynamic_link_flags=
13798 xealias=$internal_configuration
13800 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
13801 echo "configure:13802: checking how to build dynamic libraries for ${xehost}" >&5
13802 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
13805 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
13808 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
13809 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
13810 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
13812 case "$xehost_os" in
13814 # AIX sometimes has problems with the GCC collect2 program. For some
13815 # reason, if we set the COLLECT_NAMES environment variable, the problems
13816 # vanish in a puff of smoke.
13817 if test "${COLLECT_NAMES+set}" != set; then
13819 export COLLECT_NAMES
13824 # Now see if the compiler is really GCC.
13825 if test "$GCC" = "yes"; then
13828 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
13829 echo "configure:13830: checking checking whether we are using GNU C" >&5
13830 cat > conftest.$ac_ext <<EOF
13831 #line 13832 "configure"
13832 #include "confdefs.h"
13839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13840 egrep "yes" >/dev/null 2>&1; then
13849 echo "$ac_t""${XEGCC}" 1>&6
13852 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
13853 echo "configure:13854: checking how to produce PIC code" >&5
13856 can_build_shared=yes
13857 if test "$XEGCC" = yes; then
13860 case "$xehost_os" in
13861 aix[3-9]* | irix[5-9]* | osf[3-9])
13862 # PIC is the default for these OSes.
13866 # We can build DLLs from non-PIC.
13869 # FIXME: we need at least 68020 code to build shared libraries, but
13870 # adding the `-m68020' flag to GCC prevents building anything better,
13872 dll_cflags='-m68020 -resident32 -malways-restore-a4'
13874 *cygwin* | *mingw* )
13875 # PIC is the default
13882 # PORTME Check for PIC flags for the system compiler.
13883 case "$xehost_os" in
13884 hpux9* | hpux1[0-9]*)
13885 # Is there a better link_static_flag that works with the bundled CC?
13892 # PIC (with -KPIC) is the default.
13896 # We can build DLLs from non-PIC.
13900 # All OSF/1 code is PIC.
13905 # All AIX code is PIC.
13910 dll_cflags='-belf -Kpic'
13944 can_build_shared=no
13949 if test -n "$dll_cflags"; then
13950 echo "$ac_t""${dll_cflags}" 1>&6
13952 # Check to make sure the dll_cflags actually works.
13953 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
13954 echo "configure:13955: checking if PIC flag ${dll_cflags} really works" >&5
13955 save_CFLAGS="$CFLAGS"
13956 CFLAGS="$CFLAGS $dll_cflags -DPIC"
13957 cat > conftest.$ac_ext <<EOF
13958 #line 13959 "configure"
13959 #include "confdefs.h"
13965 if { (eval echo configure:13966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13968 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
13969 # reports no error. So, we need to grep stderr for (Bundled).
13970 if grep '(Bundled)' config.log >/dev/null; then
13971 echo "$ac_t""no" 1>&6
13972 can_build_shared=no
13975 echo "$ac_t""yes" 1>&6
13978 echo "configure: failed program was:" >&5
13979 cat conftest.$ac_ext >&5
13981 echo "$ac_t""no" 1>&6
13982 can_build_shared=no
13986 CFLAGS="$save_CFLAGS"
13988 echo "$ac_t""none" 1>&6
13991 if test "$can_build_shared" = "yes"; then
13995 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
13996 echo "configure:13997: checking if C compiler can produce shared libraries" >&5
13997 if test "$XEGCC" = yes; then
14000 else # Not using GCC
14001 case "$xehost_os" in
14003 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14004 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14007 freebsd2* | netbsd* | openbsd*)
14009 xcldf="${wl}-Bshareable"
14018 xcldf="${wl}-b ${wl}+s"
14021 irix[5-9]* | osf[3-9]*)
14022 xcldf="${wl}-shared"
14026 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14032 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14033 xldf="-assert pure-text -Bstatic"
14036 fi # End if if we are using gcc
14038 if test -n "$xcldf"; then
14039 save_LDFLAGS=$LDFLAGS
14041 save_xe_libs=$xe_libs
14042 LDFLAGS="$xcldf $LDFLAGS"
14045 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14046 cat > conftest.$ac_ext <<EOF
14047 #line 14048 "configure"
14048 #include "confdefs.h"
14054 if { (eval echo configure:14055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14058 echo "configure: failed program was:" >&5
14059 cat conftest.$ac_ext >&5
14064 LDFLAGS=$save_LDFLAGS
14066 xe_libs=$save_xe_libs
14067 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14071 echo "$ac_t""${cc_produces_so}" 1>&6
14074 if test -z "$LTLD"; then
14076 if test "$XEGCC" = yes; then
14077 # Check if gcc -print-prog-name=ld gives a path.
14078 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14079 echo "configure:14080: checking for ld used by GCC" >&5
14080 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14082 # Accept absolute paths.
14084 if test -z "$LTLD"; then
14086 *gcc-lib*) LTLD="$CC"
14094 # If it fails, then pretend we aren't using GCC.
14098 # If it is relative, then search for the first ld in PATH.
14099 with_gnu_ld=unknown
14103 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14104 echo "configure:14105: checking for GNU ld" >&5
14107 if test -z "$LTLD"; then
14108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14109 for ac_dir in $PATH; do
14110 test -z "$ac_dir" && ac_dir=.
14111 if test -f "$ac_dir/$ac_prog"; then
14112 LTLD="$ac_dir/$ac_prog"
14113 # Check to see if the program is GNU ld. I'd rather use --version,
14114 # but apparently some GNU ld's only accept -v.
14115 # Break only if it was the GNU/non-GNU ld that we prefer.
14116 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14126 if test -n "$LTLD"; then
14127 echo "$ac_t""${LTLD}" 1>&6
14129 echo "$ac_t""no" 1>&6
14132 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14133 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14138 ld_dynamic_link_flags=
14140 # Check to see if it really is or isn't GNU ld.
14141 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14142 echo "configure:14143: checking if the linker is GNU ld" >&5
14143 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14144 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14149 echo "$ac_t""${xe_gnu_ld}" 1>&6
14151 case "$xehost_os" in
14152 amigaos* | sunos4*)
14153 # On these operating systems, we should treat GNU ld like the system ld.
14154 gnu_ld_acts_native=yes
14157 gnu_ld_acts_native=no
14161 if test "$cc_produces_so" = "yes"; then
14164 can_build_shared=yes
14167 # OK - only NOW do we futz about with ld.
14168 # See if the linker supports building shared libraries.
14169 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14170 echo "configure:14171: checking whether the linker supports shared libraries" >&5
14172 dll_ldflags=$LDFLAGS
14174 can_build_shared=yes
14175 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14176 # See if GNU ld supports shared libraries.
14177 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14179 dll_ldflags="-shared"
14185 # PORTME fill in a description of your system's linker (not GNU ld)
14186 case "$xehost_os" in
14196 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14197 # support. Future versions do this automatically, but an explicit c++rt0.o
14198 # doesn't break anything, and helps significantly (at the cost of a little
14203 dll_post="/usr/lib/c++rt0.o"
14206 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14209 dll_ldflags="-Bshareable"
14212 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14214 dll_ldflags="-shared"
14228 # Tested with NetBSD 1.2 ld
14243 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14244 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14247 *gcc*) dll_ldflags="-shared"
14250 *) dll_ldflags="-G"
14256 if test "$XEGCC" = yes; then
14276 can_build_shared=no
14280 echo "$ac_t""${ld_shlibs}" 1>&6
14281 if test "$ld_shlibs" = "no"; then
14282 can_build_shared=no
14284 fi # End of if cc_produces_so = no
14287 if test "$xe_gnu_ld" = yes; then
14288 if test "$ld_shlibs" = yes; then
14289 ld_dynamic_link_flags="${wl}-export-dynamic"
14293 if test -z "$ld_dynamic_link_flags"; then
14294 case "$xehost_os" in
14296 ld_dynamic_link_flags=
14300 ld_dynamic_link_flags=
14304 ld_dynamic_link_flags=
14308 ld_dynamic_link_flags=
14312 ld_dynamic_link_flags="${wl}-E"
14316 ld_dynamic_link_flags=
14320 ld_dynamic_link_flags=
14324 ld_dynamic_link_flags=
14328 ld_dynamic_link_flags=
14331 solaris2* | solaris7*)
14332 ld_dynamic_link_flags=
14335 sco3.2v5* | unixware* | sysv5* | sysv4*)
14336 ld_dynamic_link_flags="${wl}-Bexport"
14340 ld_dynamic_link_flags=
14344 ld_dynamic_link_flags=
14348 ld_dynamic_link_flags=
14352 fi # End of if -z ld_dynamic_link_flags
14353 fi # End of if test "$can_build_shared" = "yes"
14364 if test "$can_build_shared" = "yes"; then
14365 { test "$extra_verbose" = "yes" && cat << \EOF
14366 Defining HAVE_SHLIB
14368 cat >> confdefs.h <<\EOF
14369 #define HAVE_SHLIB 1
14373 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
14374 echo " xemacs will be linked with \"sysdll.o emodules.o\""
14376 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14377 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14378 for ac_func in dlerror _dlerror
14380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14381 echo "configure:14382: checking for $ac_func" >&5
14383 cat > conftest.$ac_ext <<EOF
14384 #line 14385 "configure"
14385 #include "confdefs.h"
14386 /* System header to define __stub macros and hopefully few prototypes,
14387 which can conflict with char $ac_func(); below. */
14388 #include <assert.h>
14389 /* Override any gcc2 internal prototype to avoid an error. */
14390 /* We use char because int might match the return type of a gcc2
14391 builtin and then its argument prototype would still apply. */
14396 /* The GNU C library defines this for functions which it implements
14397 to always fail with ENOSYS. Some functions are actually named
14398 something starting with __ and the normal name is an alias. */
14399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14407 if { (eval echo configure:14408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14409 eval "ac_cv_func_$ac_func=yes"
14411 echo "configure: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14414 eval "ac_cv_func_$ac_func=no"
14418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14419 echo "$ac_t""yes" 1>&6
14420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14421 { test "$extra_verbose" = "yes" && cat << EOF
14422 Defining $ac_tr_func
14424 cat >> confdefs.h <<EOF
14425 #define $ac_tr_func 1
14430 echo "$ac_t""no" 1>&6
14436 if test "$with_modules" = "yes"; then
14437 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
14439 echo "configure: warning: "Module support cannot be provided."" 1>&2
14445 cat > conftest.$ac_ext <<EOF
14446 #line 14447 "configure"
14447 #include "confdefs.h"
14448 int main(int c,char *v[]){return 0;}
14450 if { (eval echo configure:14451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
14455 echo "configure: failed program was:" >&5
14456 cat conftest.$ac_ext >&5
14460 echo "*** PANIC *** The C compiler can no longer build working executables."
14461 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
14462 echo "*** PANIC *** The most likely reason for this problem is that configure"
14463 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
14464 echo "*** PANIC *** found at run time."
14465 echo "*** PANIC ***"
14466 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
14467 echo "*** PANIC *** On other systems, try telling configure where to find the"
14468 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
14469 echo "*** PANIC ***"
14470 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
14471 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
14472 echo "*** PANIC *** on your system. Don't do that."
14477 if test "$win32_processes" = "yes"; then
14478 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
14479 echo " xemacs will be linked with \"process-nt.o\""
14482 { test "$extra_verbose" = "yes" && cat << \EOF
14483 Defining HAVE_UNIX_PROCESSES
14485 cat >> confdefs.h <<\EOF
14486 #define HAVE_UNIX_PROCESSES 1
14490 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
14491 echo " xemacs will be linked with \"process-unix.o\""
14498 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14503 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14508 for W in -DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14509 c_switch_general="$T"
14513 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14514 c_switch_window_system="$T"
14518 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14523 for W in $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_run; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14524 ld_switch_general="$T"
14528 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14529 ld_switch_window_system="$T"
14533 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14538 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14539 ld_libs_general="$T"
14543 for W in $X_EXTRA_LIBS $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14544 ld_libs_window_system="$T"
14548 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14553 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
14554 internal_makefile_list="Makefile.in"
14555 SUBDIR_MAKEFILES=''
14556 test -d lock || mkdir lock
14557 for dir in $MAKE_SUBDIR; do
14558 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
14559 test -d "$d" || mkdir "$d"; cd "$d"
14561 * ) test -d "$dir" || mkdir "$dir" ;;
14565 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14566 SUBDIR_MAKEFILES="$T"
14570 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14571 internal_makefile_list="$T"
14578 for dir in src/s src/m; do
14579 if test ! -d "$dir" ; then
14580 echo Making symbolic link to "$srcdir/$dir"
14581 ${LN_S} "$srcdir/$dir" "$dir"
14585 if test "$extra_verbose" = "yes"; then
14587 for var in extra_objs c_switch_general c_switch_window_system c_switch_all ld_switch_general ld_switch_window_system ld_switch_all ld_libs_general ld_libs_window_system ld_libs_all; do eval "echo \"$var = '\$$var'\""; done
14592 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
14593 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
14594 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
14597 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
14598 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
14599 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
14602 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
14603 test "$extra_verbose" = "yes" && echo "creating TAGS"
14605 $srcdir/TAGS,include" > "TAGS"
14608 if test "$__SUNPRO_C" = "yes"; then
14609 test "$extra_verbose" = "yes" && echo "creating .sbinit"
14610 ( echo "# For use with Sun WorkShop's Source browser."
14611 echo "# See sbquery(1) and sbinit(4) for more information"
14612 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
14640 *\$* ) eval "PREFIX=$PREFIX" ;;
14648 EXEC_PREFIX=$exec_prefix
14650 case "$EXEC_PREFIX" in
14651 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
14662 *\$* ) eval "INFODIR=$INFODIR" ;;
14672 case "$INFOPATH" in
14673 *\$* ) eval "INFOPATH=$INFOPATH" ;;
14681 PACKAGE_PATH=$package_path
14683 case "$PACKAGE_PATH" in
14684 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
14695 *\$* ) eval "LISPDIR=$LISPDIR" ;;
14703 MODULEDIR=$moduledir
14705 case "$MODULEDIR" in
14706 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
14714 SITELISPDIR=$sitelispdir
14716 case "$SITELISPDIR" in
14717 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
14725 SITEMODULEDIR=$sitemoduledir
14727 case "$SITEMODULEDIR" in
14728 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
14739 *\$* ) eval "ETCDIR=$ETCDIR" ;;
14750 *\$* ) eval "DOCDIR=$DOCDIR" ;;
14758 ARCHLIBDIR=$archlibdir
14760 case "$ARCHLIBDIR" in
14761 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
14785 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
14793 : ${XEMACS_CC:=$CC}
14796 if test "$with_prefix" = "yes"; then
14797 { test "$extra_verbose" = "yes" && cat << \EOF
14798 Defining PREFIX_USER_DEFINED
14800 cat >> confdefs.h <<\EOF
14801 #define PREFIX_USER_DEFINED 1
14807 if test "$with_site_lisp" = "no"; then
14808 { test "$extra_verbose" = "yes" && cat << \EOF
14809 Defining INHIBIT_SITE_LISP
14811 cat >> confdefs.h <<\EOF
14812 #define INHIBIT_SITE_LISP 1
14817 if test "$with_site_modules" = "no"; then
14818 { test "$extra_verbose" = "yes" && cat << \EOF
14819 Defining INHIBIT_SITE_MODULES
14821 cat >> confdefs.h <<\EOF
14822 #define INHIBIT_SITE_MODULES 1
14830 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14831 ac_configure_args="$T"
14833 { test "$extra_verbose" = "yes" && cat << EOF
14834 Defining EMACS_CONFIGURATION = "$configuration"
14836 cat >> confdefs.h <<EOF
14837 #define EMACS_CONFIGURATION "$configuration"
14841 { test "$extra_verbose" = "yes" && cat << EOF
14842 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
14844 cat >> confdefs.h <<EOF
14845 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
14852 { test "$extra_verbose" = "yes" && cat << EOF
14853 Defining LD_SWITCH_X_SITE = $null_string
14855 cat >> confdefs.h <<EOF
14856 #define LD_SWITCH_X_SITE $null_string
14860 { test "$extra_verbose" = "yes" && cat << EOF
14861 Defining LD_SWITCH_X_SITE_AUX = $null_string
14863 cat >> confdefs.h <<EOF
14864 #define LD_SWITCH_X_SITE_AUX $null_string
14868 { test "$extra_verbose" = "yes" && cat << EOF
14869 Defining C_SWITCH_X_SITE = $null_string
14871 cat >> confdefs.h <<EOF
14872 #define C_SWITCH_X_SITE $null_string
14876 { test "$extra_verbose" = "yes" && cat << EOF
14877 Defining LD_SWITCH_SITE = $null_string
14879 cat >> confdefs.h <<EOF
14880 #define LD_SWITCH_SITE $null_string
14884 { test "$extra_verbose" = "yes" && cat << EOF
14885 Defining C_SWITCH_SITE = $null_string
14887 cat >> confdefs.h <<EOF
14888 #define C_SWITCH_SITE $null_string
14894 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14895 Defining GNU_MALLOC
14897 cat >> confdefs.h <<\EOF
14898 #define GNU_MALLOC 1
14902 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14903 Defining USE_SYSTEM_MALLOC
14905 cat >> confdefs.h <<\EOF
14906 #define USE_SYSTEM_MALLOC 1
14910 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14911 Defining USE_DEBUG_MALLOC
14913 cat >> confdefs.h <<\EOF
14914 #define USE_DEBUG_MALLOC 1
14918 { test "$extra_verbose" = "yes" && cat << \EOF
14919 Defining USE_SYSTEM_MALLOC
14921 cat >> confdefs.h <<\EOF
14922 #define USE_SYSTEM_MALLOC 1
14927 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14930 cat >> confdefs.h <<\EOF
14935 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14938 cat >> confdefs.h <<\EOF
14943 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14944 Defining EXTERNAL_WIDGET
14946 cat >> confdefs.h <<\EOF
14947 #define EXTERNAL_WIDGET 1
14951 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14952 Defining QUICK_BUILD
14954 cat >> confdefs.h <<\EOF
14955 #define QUICK_BUILD 1
14959 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14962 cat >> confdefs.h <<\EOF
14967 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14970 cat >> confdefs.h <<\EOF
14975 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14976 Defining MAIL_USE_POP
14978 cat >> confdefs.h <<\EOF
14979 #define MAIL_USE_POP 1
14983 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14986 cat >> confdefs.h <<\EOF
14991 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14994 cat >> confdefs.h <<\EOF
14999 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15000 Defining USE_UNION_TYPE
15002 cat >> confdefs.h <<\EOF
15003 #define USE_UNION_TYPE 1
15007 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15010 cat >> confdefs.h <<\EOF
15018 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15020 echo "uname -a: `uname -a`"
15023 echo "$0 $quoted_arguments"
15026 if test ! -z ${emacs_beta_version} ; then
15027 if test -z "${emacs_is_beta}" ; then
15028 xemacs_betaname=".${emacs_beta_version}"
15030 xemacs_betaname="-b${emacs_beta_version}"
15039 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15042 Compilation / Installation:"
15043 echo " Source code location: $srcdir"
15044 echo " Installation prefix: $prefix"
15045 if test -n "$site_includes"; then
15046 echo " Additional header files: $site_includes"
15048 if test -n "$site_libraries"; then
15049 echo " Additional libraries: $site_libraries"
15051 if test -n "$site_prefixes"; then
15052 echo " Additional prefixes: $site_prefixes"
15054 if test -n "$runpath"; then
15055 echo " Runtime library search path: $runpath"
15058 if test -n "$opsysfile"
15059 then echo " Operating system description file: \`$opsysfile'"
15060 else echo " Not using any operating system description file"
15062 if test -n "$machfile"
15063 then echo " Machine description file: \`$machfile'"
15064 else echo " Not using any machine description file"
15067 echo " Compiler: $CC $CFLAGS"
15068 echo " Relocating allocator for buffers: $rel_alloc"
15069 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15073 if test "$with_msw" = "yes"; then
15074 echo " Compiling in support for the Microsoft window system."
15076 if test "$with_x11" = "yes"; then
15077 echo " Compiling in support for the X window system:"
15078 echo " - X Windows headers location: $x_includes"
15079 echo " - X Windows libraries location: $x_libraries"
15080 if test "$with_xauth" != yes; then
15081 echo " - Xau (X authority) not available."
15083 if test "$with_xmu" != yes; then
15084 echo " - Xmu library not available; substituting equivalent routines."
15086 if test "$with_wmcommand" != no; then
15087 echo " - Handling WM_COMMAND properly."
15090 if test "$need_athena" = "yes"; then
15091 echo " Compiling in support for the Athena widget set:"
15092 echo " - Athena headers location: $athena_h_path"
15093 echo " - Athena library to link: $athena_lib"
15095 case "$with_menubars" in
15096 lucid ) echo " Using Lucid menubars." ;;
15097 motif ) echo " Using Motif menubars."
15098 echo " *WARNING* The Motif menubar implementation is currently buggy."
15099 echo " We recommend using the Lucid menubar instead."
15100 echo " Re-run configure with --with-menubars='lucid'." ;;
15101 msw ) echo " Using MS-Windows menubars." ;;
15103 case "$with_scrollbars" in
15104 lucid ) echo " Using Lucid scrollbars." ;;
15105 motif ) echo " Using Motif scrollbars." ;;
15106 athena ) echo " Using Athena scrollbars." ;;
15107 msw ) echo " Using MS-Windows scrollbars." ;;
15109 case "$with_dialogs" in
15110 motif ) echo " Using Motif dialog boxes."
15111 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15112 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15113 echo " We recommend using the Athena dialog boxes instead."
15114 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15115 echo " Read the PROBLEMS file for more information."
15117 athena ) echo " Using Athena dialog boxes." ;;
15118 msw ) echo " Using MS-Windows dialog boxes." ;;
15120 case "$with_widgets" in
15121 motif ) echo " Using Motif native widgets." ;;
15122 athena ) echo " Using Athena native widgets." ;;
15123 msw ) echo " Using MS-Windows native widgets." ;;
15125 if test "$with_dragndrop" = yes; then
15126 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15127 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15132 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15133 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15137 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15138 if test "$with_xpm" = yes; then
15139 echo " Compiling in support for XPM images."
15140 elif test "$with_x11" = yes; then
15141 echo " WARNING: -----------------------------------------------------------"
15142 echo " WARNING: Compiling without XPM image support."
15143 if test "$xpm_problem" != ""; then
15144 echo " Reason: $xpm_problem"
15146 echo " WARNING: You should strongly consider installing XPM."
15147 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15148 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15149 echo " WARNING: -----------------------------------------------------------"
15151 if test "$with_png" = yes; then
15152 echo " Compiling in support for PNG images."
15153 elif test "$window_system" != "none"; then
15154 echo " WARNING: -----------------------------------------------------------"
15155 echo " WARNING: Compiling without PNG image support."
15156 if test "$png_problem" != ""; then
15157 echo " Reason: $png_problem"
15159 echo " WARNING: You should strongly consider installing the PNG libraries."
15160 echo " WARNING: Otherwise certain images and glyphs may not display."
15161 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15162 echo " WARNING: -----------------------------------------------------------"
15164 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15165 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15166 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15170 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15171 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15172 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15173 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15177 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15178 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15179 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15180 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15181 if test "$with_postgresql" = yes; then
15182 echo " Compiling in support for PostgreSQL."
15183 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15184 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15188 Internationalization:"
15189 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15190 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15191 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15192 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15193 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15194 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15195 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15196 if test "$with_wnn" = yes; then
15197 echo " Compiling in support for the WNN input method on Mule."
15198 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15200 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15204 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15205 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15206 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15207 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15211 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15212 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15213 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15214 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15215 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15216 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15217 test "$pdump" = yes && echo " Using the new portable dumper."
15218 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15219 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15220 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15221 != "no no no no no no"; then
15222 echo " WARNING: ---------------------------------------------------------"
15223 echo " WARNING: Compiling in support for runtime error checking."
15224 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15225 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15226 echo " WARNING: ---------------------------------------------------------"
15229 ) | tee -a Installation
15233 # Remove any trailing slashes in these variables.
15234 test -n "$prefix" &&
15235 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15236 test -n "$exec_prefix" &&
15237 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15240 for file in $internal_makefile_list; do
15241 test "$file" = src/Makefile.in && \
15242 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15243 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15245 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15246 test "$with_modules" = "yes" && ac_output_files="$ac_output_files lib-src/ellcc.h" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src/ellcc.h\" to \$ac_output_files"; fi
15250 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15252 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15253 # Let make expand exec_prefix.
15254 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15256 # Any assignment to VPATH causes Sun make to only execute
15257 # the first set of double-colon rules, so remove it if not needed.
15258 # If there is a colon in the path, we need to keep it.
15259 if test "x$srcdir" = x.; then
15260 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15263 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15265 DEFS=-DHAVE_CONFIG_H
15267 # Without the "./", some shells look in PATH for config.status.
15268 : ${CONFIG_STATUS=./config.status}
15270 echo creating $CONFIG_STATUS
15271 rm -f $CONFIG_STATUS
15272 cat > $CONFIG_STATUS <<EOF
15274 # Generated automatically by configure.
15275 # Run this file to recreate the current configuration.
15276 # This directory was configured as follows,
15277 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15279 # $0 $ac_configure_args
15281 # Compiler output produced by configure, useful for debugging
15282 # configure, is in ./config.log if it exists.
15284 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15287 case "\$ac_option" in
15288 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15289 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15290 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15291 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15292 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15294 -help | --help | --hel | --he | --h)
15295 echo "\$ac_cs_usage"; exit 0 ;;
15296 *) echo "\$ac_cs_usage"; exit 1 ;;
15300 ac_given_srcdir=$srcdir
15301 ac_given_INSTALL="$INSTALL"
15303 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15305 cat >> $CONFIG_STATUS <<EOF
15307 # Protect against being on the right side of a sed subst in config.status.
15308 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15309 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15313 s%@CFLAGS@%$CFLAGS%g
15314 s%@CPPFLAGS@%$CPPFLAGS%g
15315 s%@CXXFLAGS@%$CXXFLAGS%g
15316 s%@FFLAGS@%$FFLAGS%g
15318 s%@LDFLAGS@%$LDFLAGS%g
15320 s%@exec_prefix@%$exec_prefix%g
15321 s%@prefix@%$prefix%g
15322 s%@program_transform_name@%$program_transform_name%g
15323 s%@bindir@%$bindir%g
15324 s%@sbindir@%$sbindir%g
15325 s%@libexecdir@%$libexecdir%g
15326 s%@datadir@%$datadir%g
15327 s%@sysconfdir@%$sysconfdir%g
15328 s%@sharedstatedir@%$sharedstatedir%g
15329 s%@localstatedir@%$localstatedir%g
15330 s%@libdir@%$libdir%g
15331 s%@includedir@%$includedir%g
15332 s%@oldincludedir@%$oldincludedir%g
15333 s%@infodir@%$infodir%g
15334 s%@mandir@%$mandir%g
15336 s%@blddir@%$blddir%g
15339 s%@start_flags@%$start_flags%g
15340 s%@ld_switch_shared@%$ld_switch_shared%g
15341 s%@start_files@%$start_files%g
15343 s%@lib_gcc@%$lib_gcc%g
15344 s%@RANLIB@%$RANLIB%g
15345 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15346 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15347 s%@INSTALL_DATA@%$INSTALL_DATA%g
15349 s%@SET_MAKE@%$SET_MAKE%g
15350 s%@X_CFLAGS@%$X_CFLAGS%g
15351 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15352 s%@X_LIBS@%$X_LIBS%g
15353 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15354 s%@install_pp@%$install_pp%g
15355 s%@libs_xauth@%$libs_xauth%g
15356 s%@dnd_objs@%$dnd_objs%g
15357 s%@lwlib_objs@%$lwlib_objs%g
15358 s%@ALLOCA@%$ALLOCA%g
15359 s%@have_esd_config@%$have_esd_config%g
15360 s%@dll_ld@%$dll_ld%g
15361 s%@dll_cflags@%$dll_cflags%g
15362 s%@dll_ldflags@%$dll_ldflags%g
15363 s%@dll_post@%$dll_post%g
15364 s%@dll_ldo@%$dll_ldo%g
15365 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
15366 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
15367 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
15368 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
15369 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
15370 s%@PROGNAME@%$PROGNAME%g
15371 s%@version@%$version%g
15372 s%@configuration@%$configuration%g
15373 s%@canonical@%$canonical%g
15374 s%@inststaticdir@%$inststaticdir%g
15375 s%@instvardir@%$instvardir%g
15376 s%@srcdir@%$srcdir%g
15377 s%@pkgdir@%$pkgdir%g
15378 s%@statedir@%$statedir%g
15379 s%@extra_includes@%$extra_includes%g
15380 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
15381 s%@PREFIX@%$PREFIX%g
15382 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
15383 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
15384 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
15385 s%@INFODIR@%$INFODIR%g
15386 s%@infopath@%$infopath%g
15387 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
15388 s%@INFOPATH@%$INFOPATH%g
15389 s%@package_path@%$package_path%g
15390 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
15391 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
15392 s%@lispdir@%$lispdir%g
15393 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
15394 s%@LISPDIR@%$LISPDIR%g
15395 s%@moduledir@%$moduledir%g
15396 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
15397 s%@MODULEDIR@%$MODULEDIR%g
15398 s%@sitelispdir@%$sitelispdir%g
15399 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
15400 s%@SITELISPDIR@%$SITELISPDIR%g
15401 s%@sitemoduledir@%$sitemoduledir%g
15402 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
15403 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
15404 s%@etcdir@%$etcdir%g
15405 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
15406 s%@ETCDIR@%$ETCDIR%g
15407 s%@docdir@%$docdir%g
15408 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
15409 s%@DOCDIR@%$DOCDIR%g
15410 s%@archlibdir@%$archlibdir%g
15411 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
15412 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
15413 s%@bitmapdir@%$bitmapdir%g
15414 s%@extra_objs@%$extra_objs%g
15415 s%@machfile@%$machfile%g
15416 s%@opsysfile@%$opsysfile%g
15417 s%@c_switch_general@%$c_switch_general%g
15418 s%@c_switch_window_system@%$c_switch_window_system%g
15419 s%@c_switch_all@%$c_switch_all%g
15420 s%@ld_switch_general@%$ld_switch_general%g
15421 s%@ld_switch_window_system@%$ld_switch_window_system%g
15422 s%@ld_switch_all@%$ld_switch_all%g
15423 s%@ld_libs_general@%$ld_libs_general%g
15424 s%@ld_libs_window_system@%$ld_libs_window_system%g
15425 s%@ld_libs_all@%$ld_libs_all%g
15426 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
15427 s%@native_sound_lib@%$native_sound_lib%g
15428 s%@sound_cflags@%$sound_cflags%g
15429 s%@dynodump_arch@%$dynodump_arch%g
15430 s%@XEMACS_CC@%$XEMACS_CC%g
15431 s%@internal_makefile_list@%$internal_makefile_list%g
15436 cat >> $CONFIG_STATUS <<\EOF
15438 # Split the substitutions into bite-sized pieces for seds with
15439 # small command number limits, like on Digital OSF/1 and HP-UX.
15440 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15441 ac_file=1 # Number of current file.
15442 ac_beg=1 # First line for current file.
15443 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15446 while $ac_more_lines; do
15447 if test $ac_beg -gt 1; then
15448 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15450 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15452 if test ! -s conftest.s$ac_file; then
15453 ac_more_lines=false
15454 rm -f conftest.s$ac_file
15456 if test -z "$ac_sed_cmds"; then
15457 ac_sed_cmds="sed -f conftest.s$ac_file"
15459 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15461 ac_file=`expr $ac_file + 1`
15463 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15466 if test -z "$ac_sed_cmds"; then
15471 cat >> $CONFIG_STATUS <<EOF
15473 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
15475 cat >> $CONFIG_STATUS <<\EOF
15476 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15477 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15479 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15480 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15481 *) ac_file_in="${ac_file}.in" ;;
15484 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15486 # Remove last slash and all that follows it. Not all systems have dirname.
15487 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15488 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15489 # The file is in a subdirectory.
15490 test ! -d "$ac_dir" && mkdir "$ac_dir"
15491 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15492 # A "../" for each directory in $ac_dir_suffix.
15493 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15495 ac_dir_suffix= ac_dots=
15498 case "$ac_given_srcdir" in
15500 if test -z "$ac_dots"; then top_srcdir=.
15501 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15502 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15503 *) # Relative path.
15504 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15505 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15508 case "$ac_given_INSTALL" in
15509 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15510 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15513 echo creating "$ac_file"
15515 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15517 *Makefile*) ac_comsub="1i\\
15518 # $configure_input" ;;
15522 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15524 s%@configure_input@%$configure_input%g
15525 s%@srcdir@%$srcdir%g
15526 s%@top_srcdir@%$top_srcdir%g
15527 s%@INSTALL@%$INSTALL%g
15528 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15532 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15533 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15535 # ac_d sets the value in "#define NAME VALUE" lines.
15536 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15537 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15540 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15541 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15542 ac_uB='\([ ]\)%\1#\2define\3'
15545 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15546 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15547 ac_eB='$%\1#\2define\3'
15551 if test "${CONFIG_HEADERS+set}" != set; then
15553 cat >> $CONFIG_STATUS <<EOF
15554 CONFIG_HEADERS="src/config.h lwlib/config.h"
15556 cat >> $CONFIG_STATUS <<\EOF
15558 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15559 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15561 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15562 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15563 *) ac_file_in="${ac_file}.in" ;;
15566 echo creating $ac_file
15568 rm -f conftest.frag conftest.in conftest.out
15569 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15570 cat $ac_file_inputs > conftest.in
15574 # Transform confdefs.h into a sed script conftest.vals that substitutes
15575 # the proper values into config.h.in to produce config.h. And first:
15576 # Protect against being on the right side of a sed subst in config.status.
15577 # Protect against being in an unquoted here document in config.status.
15578 rm -f conftest.vals
15579 cat > conftest.hdr <<\EOF
15582 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15586 sed -n -f conftest.hdr confdefs.h > conftest.vals
15589 # This sed command replaces #undef with comments. This is necessary, for
15590 # example, in the case of _POSIX_SOURCE, which is predefined and required
15591 # on some systems where configure will not decide to define it.
15592 cat >> conftest.vals <<\EOF
15593 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15596 # Break up conftest.vals because some shells have a limit on
15597 # the size of here documents, and old seds have small limits too.
15599 rm -f conftest.tail
15602 ac_lines=`grep -c . conftest.vals`
15603 # grep -c gives empty output for an empty file on some AIX systems.
15604 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15605 # Write a limited-size here document to conftest.frag.
15606 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15607 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15609 sed -f conftest.frag conftest.in > conftest.out
15611 mv conftest.out conftest.in
15612 ' >> $CONFIG_STATUS
15613 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15614 rm -f conftest.vals
15615 mv conftest.tail conftest.vals
15617 rm -f conftest.vals
15619 cat >> $CONFIG_STATUS <<\EOF
15620 rm -f conftest.frag conftest.h
15621 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15622 cat conftest.in >> conftest.h
15624 if cmp -s $ac_file conftest.h 2>/dev/null; then
15625 echo "$ac_file is unchanged"
15628 # Remove last slash and all that follows it. Not all systems have dirname.
15629 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15630 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15631 # The file is in a subdirectory.
15632 test ! -d "$ac_dir" && mkdir "$ac_dir"
15635 mv conftest.h $ac_file
15640 cat >> $CONFIG_STATUS <<EOF
15642 top_srcdir="$srcdir"
15643 MAKE_SUBDIR="$MAKE_SUBDIR"
15646 cat >> $CONFIG_STATUS <<\EOF
15647 for dir in . $MAKE_SUBDIR; do
15652 sed -e '/^# Generated/d' \
15653 -e 's%/\*\*/#.*%%' \
15668 echo creating $dir/Makefile
15669 $CPP -I. -I${top_srcdir}/src junk.c \
15670 | sed -e 's/^\#.*//' \
15671 -e 's/^[ ][ ]*$//'\
15679 chmod 444 Makefile.new
15680 mv -f Makefile.new Makefile
15682 echo creating $dir/GNUmakefile
15683 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
15684 | sed -e 's/^\#.*//' \
15685 -e 's/^[ ][ ]*$//'\
15693 chmod 444 Makefile.new
15694 mv -f Makefile.new GNUmakefile
15700 sed < config.status >> lib-src/config.values \
15701 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
15702 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
15703 -e 's/^\([^ ]*\) $/\1 ""/' \
15709 chmod +x $CONFIG_STATUS
15710 rm -fr confdefs* $ac_clean_files
15711 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1