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, 2005 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.
19 ### Note: this script has not yet been ported to autoconf version 2.5x.
21 ### This file is part of XEmacs.
23 ### XEmacs is free software; you can redistribute it and/or modify it
24 ### under the terms of the GNU General Public License as published by
25 ### the Free Software Foundation; either version 2, or (at your
26 ### option) any later version.
28 ### XEmacs is distributed in the hope that it will be useful, but
29 ### WITHOUT ANY WARRANTY; without even the implied warranty of
30 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
31 ### General Public License for more details.
33 ### You should have received a copy of the GNU General Public License
34 ### along with XEmacs; see the file COPYING. If not, write to the Free
35 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
38 ### For usage, run `./configure --help'
39 ### For more detailed information on building and installing XEmacs,
40 ### read the file `INSTALL'.
42 ### If configure succeeds, it leaves its status in config.status.
43 ### A log of configuration tests can be found in config.log.
44 ### If configure fails after disturbing the status quo,
45 ### config.status is removed.
48 --with-x use the X Window System"
52 if test -n "$ZSH_VERSION"; then
53 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
54 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
55 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
56 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
57 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
58 elif test -n "$BASH_VERSION"; then
62 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
73 program_transform_name=s,x,x,
84 SHELL=${CONFIG_SHELL-/bin/sh}
87 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
89 # File descriptor usage:
92 # 2 errors and warnings
93 # 3 some systems may open it to /dev/tty
94 # 4 used on the Kubota Titan
95 # 6 checking for... messages and results
96 # 5 compiler messages saved in config.log
97 if test "$silent" = yes; then
105 This file contains any messages produced by compilers while
106 running configure, to aid debugging if configure makes a mistake.
109 # Strip out --no-create and --no-recursion so they do not pile up.
110 # Also quote any args containing shell metacharacters.
115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
116 | --no-cr | --no-c) ;;
117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
119 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
120 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
121 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
126 # Only set these to C if already set. These must not be set unconditionally
127 # because not all systems understand e.g. LANG=C (notably SCO).
128 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
129 # Non-C LC_CTYPE values break the ctype check.
130 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
131 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
132 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
133 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
136 rm -rf conftest* confdefs.h
137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
140 # A filename unique to this package, relative to the directory that
141 # configure is in, which we can look for to find out if srcdir is correct.
142 ac_unique_file=src/lisp.h
144 # Find the source files, if location was not specified.
145 if test -z "$srcdir"; then
146 ac_srcdir_defaulted=yes
147 # Try the directory containing this script, then its parent.
149 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
150 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
152 if test ! -r $srcdir/$ac_unique_file; then
156 ac_srcdir_defaulted=no
158 if test ! -r $srcdir/$ac_unique_file; then
159 if test "$ac_srcdir_defaulted" = yes; then
160 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
162 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
165 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
167 # Prefer explicitly selected file to automatically selected ones.
168 if test -z "$CONFIG_SITE"; then
169 if test "x$prefix" != xNONE; then
170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
175 for ac_site_file in $CONFIG_SITE; do
176 if test -r "$ac_site_file"; then
177 echo "loading site script $ac_site_file"
184 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
185 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
186 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
187 ac_cpp='$CPP '"$xe_cppflags"
188 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
189 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
194 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
195 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
196 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
203 ac_n= ac_c='\c' ac_t=
207 progname="`echo $0 | sed 's:^\./\./:\./:'`"
210 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
211 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
214 exec_prefix='${prefix}'
215 bindir='${exec_prefix}/bin'
216 datadir='${prefix}/lib'
217 statedir='${prefix}/lib'
218 libdir='${exec_prefix}/lib'
219 mandir='${prefix}/man/man1'
220 inststaticdir='${PROGNAME}'
221 instvardir='${PROGNAME}-${version}'
222 infodir='${datadir}/${instvardir}/info'
225 lispdir='${datadir}/${instvardir}/lisp'
226 moduledir='${libdir}/${instvardir}/${configuration}/modules'
227 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
228 sitemoduledir='${libdir}/${inststaticdir}/site-modules'
229 pkgdir='${datadir}/${instvardir}/lisp'
231 etcdir='${datadir}/${instvardir}/etc'
232 archlibdir='${libdir}/${instvardir}/${configuration}'
233 docdir='${archlibdir}'
237 with_site_modules='yes'
243 cpp='' cppflags='' libs='' ldflags=''
249 with_system_malloc='default'
250 with_dlmalloc='default'
251 use_regex_malloc='yes'
270 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
275 | --no-cr | --no-c) ;;
276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
279 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
280 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
284 while test $# != 0; do
287 --no-create|--no-recursion) ;;
291 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
292 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
296 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
297 val="yes" valomitted=yes
302 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
304 case "${valomitted}-${opt}" in yes-without_* )
305 opt=`echo $opt | sed 's/without/with/'`
306 valomitted="no" val="no" ;;
313 with_site_modules | \
372 memory_usage_stats | \
373 with_clash_detection | \
377 y | ye | yes ) val=yes ;;
379 * ) (echo "$progname: Usage error:"
380 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
381 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
383 eval "$opt=\"$val\"" ;;
401 site_runtime_libraries )
402 if test "$valomitted" = "yes" ; then
403 if test "$#" = 0 ; then
404 (echo "$progname: Usage error:"
405 echo " " "The \`--$optname' option requires a value."
406 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
415 with_debug_malloc | use_debug_malloc | \
416 with_system_malloc | use_system_malloc )
418 y | ye | yes ) val=yes ;;
420 d | de | def | defa | defau | defaul | default ) val=default ;;
421 * ) (echo "$progname: Usage error:"
422 echo " " "The \`--$optname' option requires one of these values:
423 \`yes', \`no', or \`default'."
424 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
426 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
431 with_database_berkdb=no
433 with_database_gdbm=no
434 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
437 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
438 d | db | dbm ) with_database_dbm=yes ;;
439 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
440 * ) (echo "$progname: Usage error:"
441 echo " " "The \`--$optname' option value
442 must be either \`no' or a comma-separated list
443 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
444 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
447 if test "$with_database_dbm" = "yes" -a \
448 "$with_database_gdbm" = "yes"; then
449 (echo "$progname: Usage error:"
450 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
451 with the \`--$optname' option."
452 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
457 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
459 n | no | non | none ) new_sdefault=no ;;
460 a | al | all | both ) new_sdefault=yes ;;
462 native ) with_native_sound=yes ;;
463 nonative ) with_native_sound=no ;;
465 nas ) with_nas_sound=yes ;;
466 nonas ) with_nas_sound=no ;;
468 esd ) with_esd_sound=yes ;;
469 noesd ) with_esd_sound=no ;;
471 * ) bogus_sound=yes ;;
473 if test "$bogus_sound" -o \
474 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
475 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
476 (echo "$progname: Usage error:"
477 echo " " "Valid types for the \`--$optname' option are:
479 Option \`all' or \`none' must be first in the list.
480 The default is to autodetect native and NAS sound support."
481 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
482 elif test -n "$new_sdefault" ; then
483 with_native_sound=$new_sdefault
484 with_nas_sound=$new_sdefault
485 with_esd_sound=$new_sdefault
486 new_sdefault= # reset this
494 xa | xaw ) val=xaw ;;
495 3 | 3d | xaw3d ) val=3d ;;
496 ne | nex | next | naxtaw) val=next ;;
497 9 | 95 | xaw95 ) val=95 ;;
498 xp | xpm | xawxpm ) val=xpm ;;
499 * ) (echo "$progname: Usage error:"
500 echo " " "The \`--$optname' option must have one of these values:
501 \`xaw', \`3d', \`next', \`95', or \`xpm'."
502 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
509 y | ye | yes ) val=yes ;;
510 n | no | non | none ) val=no ;;
511 x | xl | xli | xlib ) val=xlib ;;
512 m | mo | mot | moti | motif ) val=motif ;;
513 * ) (echo "$progname: Usage error:"
514 echo " " "The \`--$optname' option must have one of these values:
515 \`motif', \`xlib', \`yes', or \`no'."
516 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
525 file | dot ) val=file ;;
526 locking ) val=locking ;;
527 * ) (echo "$progname: Usage error:"
528 echo " " "The \`--$optname' option must have one of these values:
529 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
530 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
537 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
539 n | no | non | none ) new_default=no ;;
540 a | al | all ) new_default=yes ;;
542 extents ) error_check_extents=yes ;;
543 noextents ) error_check_extents=no ;;
545 typecheck ) error_check_typecheck=yes ;;
546 notypecheck ) error_check_typecheck=no ;;
548 bufpos ) error_check_bufpos=yes ;;
549 nobufpos ) error_check_bufpos=no ;;
551 gc ) error_check_gc=yes ;;
552 nogc ) error_check_gc=no ;;
554 malloc ) error_check_malloc=yes ;;
555 nomalloc ) error_check_malloc=no ;;
557 byte_code ) error_check_byte_code=yes ;;
558 nobyte_code ) error_check_byte_code=no ;;
560 glyphs ) error_check_glyphs=yes ;;
561 noglyphs ) error_check_glyphs=no ;;
563 * ) bogus_error_check=yes ;;
565 if test "$bogus_error_check" -o \
566 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
567 if test "$error_check_default" = yes ; then
568 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
570 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
572 (echo "$progname: Usage error:"
573 echo " " "Valid types for the \`--$optname' option are:
575 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
576 elif test -n "$new_default" ; then
577 error_check_extents=$new_default
578 error_check_typecheck=$new_default
579 error_check_bufpos=$new_default
580 error_check_gc=$new_default
581 error_check_malloc=$new_default
582 error_check_byte_code=$new_default
583 error_check_glyphs=$new_default
584 new_default= # reset this
591 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
592 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
593 archlibdir | docdir | package_path | moduledir )
594 if test "$valomitted" = "yes"; then
595 if test "$#" = 0; then
596 (echo "$progname: Usage error:"
597 echo " " "The \`--$optname' option requires a value."
598 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
605 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
606 Defining EXEC_PREFIX_USER_DEFINED
608 cat >> confdefs.h <<\EOF
609 #define EXEC_PREFIX_USER_DEFINED 1
613 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
614 Defining LISPDIR_USER_DEFINED
616 cat >> confdefs.h <<\EOF
617 #define LISPDIR_USER_DEFINED 1
621 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
622 Defining SITELISPDIR_USER_DEFINED
624 cat >> confdefs.h <<\EOF
625 #define SITELISPDIR_USER_DEFINED 1
629 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
630 Defining MODULEDIR_USER_DEFINED
632 cat >> confdefs.h <<\EOF
633 #define MODULEDIR_USER_DEFINED 1
637 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
638 Defining ETCDIR_USER_DEFINED
640 cat >> confdefs.h <<\EOF
641 #define ETCDIR_USER_DEFINED 1
645 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
646 Defining INFODIR_USER_DEFINED
648 cat >> confdefs.h <<\EOF
649 #define INFODIR_USER_DEFINED 1
653 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
654 Defining INFOPATH_USER_DEFINED
656 cat >> confdefs.h <<\EOF
657 #define INFOPATH_USER_DEFINED 1
661 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
662 Defining PACKAGE_PATH_USER_DEFINED
664 cat >> confdefs.h <<\EOF
665 #define PACKAGE_PATH_USER_DEFINED 1
670 { test "$extra_verbose" = "yes" && cat << \EOF
671 Defining INFODIR_USER_DEFINED
673 cat >> confdefs.h <<\EOF
674 #define INFODIR_USER_DEFINED 1
678 { test "$extra_verbose" = "yes" && cat << \EOF
679 Defining LISPDIR_USER_DEFINED
681 cat >> confdefs.h <<\EOF
682 #define LISPDIR_USER_DEFINED 1
686 { test "$extra_verbose" = "yes" && cat << \EOF
687 Defining MODULEDIR_USER_DEFINED
689 cat >> confdefs.h <<\EOF
690 #define MODULEDIR_USER_DEFINED 1
694 { test "$extra_verbose" = "yes" && cat << \EOF
695 Defining ETCDIR_USER_DEFINED
697 cat >> confdefs.h <<\EOF
698 #define ETCDIR_USER_DEFINED 1
702 { test "$extra_verbose" = "yes" && cat << \EOF
703 Defining DOCDIR_USER_DEFINED
705 cat >> confdefs.h <<\EOF
706 #define DOCDIR_USER_DEFINED 1
710 { test "$extra_verbose" = "yes" && cat << \EOF
711 Defining ARCHLIBDIR_USER_DEFINED
713 cat >> confdefs.h <<\EOF
714 #define ARCHLIBDIR_USER_DEFINED 1
718 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
719 Defining DOCDIR_USER_DEFINED
721 cat >> confdefs.h <<\EOF
722 #define DOCDIR_USER_DEFINED 1
726 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
727 Defining ARCHLIBDIR_USER_DEFINED
729 cat >> confdefs.h <<\EOF
730 #define ARCHLIBDIR_USER_DEFINED 1
739 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
742 "with_scrollbars" | \
746 l | lu | luc | luci | lucid ) val=lucid ;;
747 mo | mot | moti | motif ) val=motif ;;
748 a | at | ath | athe | athen | athena ) val=athena ;;
749 n | no | non | none ) val=no ;;
750 y | ye | yes ) val=yes ;;
752 g | gt | gtk ) val=gtk ;;
753 ms | msw ) val=msw ;;
754 * ) (echo "$progname: Usage error:"
755 echo " " "The \`--$optname' option must have one of these values:
756 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
757 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
762 "use_minimal_tagbits" | \
763 "use_indexed_lrecord_implementation" | \
765 "const_is_losing" | \
767 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
770 * ) (echo "$progname: Usage error:"
771 echo " " "Unrecognized option: $arg"
772 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
777 *-*-*) configuration="$arg" ;;
779 *) (echo "$progname: Usage error:"
780 echo " " "Unrecognized argument: $arg"
781 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
787 test -n "$cpp" && CPP="$cpp"
788 test -n "$cppflags" && CPPFLAGS="$cppflags"
789 test -n "$libs" && LIBS="$libs"
790 test -n "$ldflags" && LDFLAGS="$ldflags"
792 eval set x "$quoted_arguments"; shift
794 test "$extra_verbose" = "yes" && verbose=yes
796 test -n "$with_x" && with_x11="$with_x"
798 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
799 test "$with_system_malloc" = "default" && with_system_malloc=yes
804 if test "$with_cde $with_tooltalk" = "yes no"; then
805 (echo "$progname: Usage error:"
806 echo " " "--with-cde requires --with-tooltalk"
807 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
808 elif test "$with_tooltalk" = "no" ; then with_cde=no
809 elif test "$with_cde" = "yes"; then with_tooltalk=yes
816 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
817 if test -f "$dir/src/lisp.h" -a \
818 -f "$dir/lisp/version.el" ; then
823 if test -z "$srcdir" ; then
824 (echo "$progname: Usage error:"
825 echo " " "Neither the current directory nor its parent seem to
826 contain the XEmacs sources. If you do not want to build XEmacs in its
827 source tree, you should run \`$progname' in the directory in which
828 you wish to build XEmacs, using the \`--srcdir' option to say where the
829 sources may be found."
830 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
835 if test ! -f "$srcdir/src/lisp.h" -o \
836 ! -f "$srcdir/lisp/version.el" ; then
837 (echo "$progname: Usage error:"
838 echo " " "The directory specified with the \`--srcdir' option,
839 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
840 either run the \`$progname' script at the top of the XEmacs source
841 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
842 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
847 if test -z "$configuration"; then
848 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
849 if test -z "$configuration"; then
850 (echo "$progname: Usage error:"
851 echo " " "XEmacs has not been ported to this host type.
852 Try explicitly specifying the CONFIGURATION when rerunning configure."
853 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
857 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
858 echo "configure:859: checking whether ln -s works" >&5
861 if ln -s X conftestdata 2>/dev/null
864 ac_cv_prog_LN_S="ln -s"
868 LN_S="$ac_cv_prog_LN_S"
869 if test "$ac_cv_prog_LN_S" = "ln -s"; then
870 echo "$ac_t""yes" 1>&6
872 echo "$ac_t""no" 1>&6
876 for dir in lisp etc man info tests; do
877 if test ! -d "$dir" ; then
878 echo Making symbolic link to "$srcdir/$dir"
879 ${LN_S} "$srcdir/$dir" "$dir"
884 absolute_pwd="`pwd`";
885 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
887 else blddir="$absolute_pwd"; if test -d "/net"; then
888 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
889 blddir=`echo "$blddir" | \
890 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
897 . ) srcdir="$blddir" ;;
898 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
899 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
900 srcdir=`echo "$srcdir" | \
901 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
905 if test `pwd` != `sh -c cd $srcdir && pwd` \
906 && test -f "$srcdir/src/config.h"; then
907 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
908 echo " as a build directory right now; it has been configured in its own"
909 echo " right. To configure in another directory as well, you MUST"
910 echo " use GNU make. If you do not have GNU make, then you must"
911 echo " now do \`make distclean' in $srcdir,"
912 echo " and then run $progname again.") >&2
913 extrasub='/^VPATH[ ]*=/c\
919 vpath %.in $(srcdir)'
922 . "$srcdir/version.sh" || exit 1;
923 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
924 : "${extra_verbose=$beta}"
925 version="${emacs_major_version}.${emacs_minor_version}"
926 { test "$extra_verbose" = "yes" && cat << EOF
927 Defining EMACS_MAJOR_VERSION = $emacs_major_version
929 cat >> confdefs.h <<EOF
930 #define EMACS_MAJOR_VERSION $emacs_major_version
934 { test "$extra_verbose" = "yes" && cat << EOF
935 Defining EMACS_MINOR_VERSION = $emacs_minor_version
937 cat >> confdefs.h <<EOF
938 #define EMACS_MINOR_VERSION $emacs_minor_version
942 if test -n "$emacs_beta_version" ; then
943 if test "$beta" = "yes"; then
944 version="${version}-b${emacs_beta_version}"
945 { test "$extra_verbose" = "yes" && cat << EOF
946 Defining EMACS_BETA_VERSION = $emacs_beta_version
948 cat >> confdefs.h <<EOF
949 #define EMACS_BETA_VERSION $emacs_beta_version
954 version="${version}.${emacs_beta_version}"
955 { test "$extra_verbose" = "yes" && cat << EOF
956 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
958 cat >> confdefs.h <<EOF
959 #define EMACS_PATCH_LEVEL $emacs_beta_version
965 { test "$extra_verbose" = "yes" && cat << EOF
966 Defining XEMACS_CODENAME = "$xemacs_codename"
968 cat >> confdefs.h <<EOF
969 #define XEMACS_CODENAME "$xemacs_codename"
973 { test "$extra_verbose" = "yes" && cat << EOF
974 Defining EMACS_VERSION = "$version"
976 cat >> confdefs.h <<EOF
977 #define EMACS_VERSION "$version"
982 if test "$with_infodock" = "yes"; then
983 if test ! -f ../../ID-INSTALL; then
984 echo "Cannot build InfoDock without InfoDock sources"
989 if test "$with_infodock" = "yes"; then
990 { test "$extra_verbose" = "yes" && cat << EOF
991 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
993 cat >> confdefs.h <<EOF
994 #define INFODOCK_MAJOR_VERSION $infodock_major_version
998 { test "$extra_verbose" = "yes" && cat << EOF
999 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
1001 cat >> confdefs.h <<EOF
1002 #define INFODOCK_MINOR_VERSION $infodock_minor_version
1006 { test "$extra_verbose" = "yes" && cat << EOF
1007 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
1009 cat >> confdefs.h <<EOF
1010 #define INFODOCK_BUILD_VERSION $infodock_build_version
1014 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
1016 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1021 { test "$extra_verbose" = "yes" && cat << EOF
1022 Defining EMACS_PROGNAME = "$PROGNAME"
1024 cat >> confdefs.h <<EOF
1025 #define EMACS_PROGNAME "$PROGNAME"
1030 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1031 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1032 Defining ERROR_CHECK_EXTENTS
1034 cat >> confdefs.h <<\EOF
1035 #define ERROR_CHECK_EXTENTS 1
1039 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1040 Defining ERROR_CHECK_TYPECHECK
1042 cat >> confdefs.h <<\EOF
1043 #define ERROR_CHECK_TYPECHECK 1
1047 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1048 Defining ERROR_CHECK_BUFPOS
1050 cat >> confdefs.h <<\EOF
1051 #define ERROR_CHECK_BUFPOS 1
1055 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1056 Defining ERROR_CHECK_GC
1058 cat >> confdefs.h <<\EOF
1059 #define ERROR_CHECK_GC 1
1063 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1064 Defining ERROR_CHECK_MALLOC
1066 cat >> confdefs.h <<\EOF
1067 #define ERROR_CHECK_MALLOC 1
1071 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1072 Defining ERROR_CHECK_BYTE_CODE
1074 cat >> confdefs.h <<\EOF
1075 #define ERROR_CHECK_BYTE_CODE 1
1079 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1080 Defining ERROR_CHECK_GLYPHS
1082 cat >> confdefs.h <<\EOF
1083 #define ERROR_CHECK_GLYPHS 1
1087 if test "${debug:=$beta}" = "yes"; then
1088 use_assertions=yes memory_usage_stats=yes
1089 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1090 echo " xemacs will be linked with \"debug.o\""
1092 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1093 echo " xemacs will be linked with \"tests.o\""
1095 { test "$extra_verbose" = "yes" && cat << \EOF
1096 Defining DEBUG_XEMACS
1098 cat >> confdefs.h <<\EOF
1099 #define DEBUG_XEMACS 1
1104 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1105 Defining USE_ASSERTIONS
1107 cat >> confdefs.h <<\EOF
1108 #define USE_ASSERTIONS 1
1112 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1113 Defining MEMORY_USAGE_STATS
1115 cat >> confdefs.h <<\EOF
1116 #define MEMORY_USAGE_STATS 1
1122 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1123 echo "configure:1124: checking "host system type"" >&5
1124 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1125 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1126 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1127 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1128 echo "$ac_t""$configuration" 1>&6
1136 case "$canonical" in
1137 sparc-*-* ) machine=sparc ;;
1138 alpha*-*-* ) machine=alpha ;;
1139 vax-*-* ) machine=vax ;;
1140 mips-dec-* ) machine=pmax ;;
1141 mips-sgi-irix6* ) machine=iris6d ;;
1142 mips-sgi-* ) machine=iris4d ;;
1143 mips*-linux ) machine=mips ;;
1144 romp-ibm-* ) machine=ibmrt ;;
1145 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1146 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1147 powerpc*-* ) machine=powerpc ;;
1148 hppa-*-* ) machine=hp800 ;;
1149 m88k-dg-* ) machine=aviion ;;
1150 m68*-sony-* ) machine=news ;;
1151 mips-sony-* ) machine=news-risc ;;
1152 clipper-* ) machine=clipper ;;
1153 arm* ) machine=arm ;;
1154 ns32k-* ) machine=ns32000 ;;
1157 case "$canonical" in
1158 *-*-linux* ) opsys=linux ;;
1159 *-*-netbsd* ) opsys=netbsd ;;
1160 *-*-openbsd* ) opsys=openbsd ;;
1161 *-*-nextstep* ) opsys=nextstep ;;
1162 *-*-vms ) opsys=vms ;;
1164 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1165 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1166 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1167 *-dec-osf3* ) opsys=decosf3-1 ;;
1168 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1170 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1171 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1172 *-*-ultrix* ) opsys=ultrix4-3 ;;
1174 *-*-aix3.1* ) opsys=aix3-1 ;;
1175 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1176 *-*-aix3* ) opsys=aix3-2 ;;
1177 *-*-aix4.0* ) opsys=aix4 ;;
1178 *-*-aix4.1* ) opsys=aix4-1 ;;
1179 *-*-aix[4-9]* ) opsys=aix4-2 ;;
1181 *-gnu* ) opsys=gnu ;;
1182 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1183 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1184 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1185 *-*-aos4.2 ) opsys=bsd4-2 ;;
1186 *-*-aos* ) opsys=bsd4-3 ;;
1187 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1188 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1189 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1190 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1191 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1192 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1193 if test -z "$NON_GNU_CPP" ; then
1194 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1195 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1199 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1200 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1203 case "$canonical" in
1206 case "$canonical" in
1207 i[3-9]86-*-netbsd*) machine=intel386 ;;
1208 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1209 machine=hp9000s300 ;;
1210 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1211 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1216 case "${canonical}" in
1217 i386-*-openbsd*) machine=intel386 ;;
1218 m68k-*-openbsd*) machine=hp9000s300 ;;
1219 mipsel-*-openbsd*) machine=pmax ;;
1223 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1224 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1226 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1227 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1229 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1231 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1233 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1235 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1237 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1239 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1240 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1241 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1244 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1246 *-convex-bsd* | *-convex-convexos* )
1247 machine=convex opsys=bsd4-3
1248 NON_GNU_CPP="cc -E -P"
1251 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1255 RANLIB="ranlib -c" ;;
1257 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1258 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1259 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1260 m88k-dg-dgux* ) opsys=dgux ;;
1262 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1263 m88k-motorola-sysv4* )
1264 machine=delta88k opsys=usg5-4-2
1266 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1268 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1269 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1271 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1273 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1274 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1275 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1278 case "`uname -r`" in
1279 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1280 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1282 NON_GNU_CPP="/lib/cpp"
1284 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1285 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1287 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1289 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1292 case "$canonical" in
1293 m68* ) machine=hp9000s300 ;;
1294 hppa* ) machine=hp800 ;;
1297 case "$canonical" in
1298 *-hp-hpux7* ) opsys=hpux ;;
1299 *-hp-hpux8* ) opsys=hpux8 ;;
1300 *-hp-hpux9* ) opsys=hpux9 ;;
1301 *-hp-hpux10* ) opsys=hpux10 ;;
1302 *-hp-hpux11* ) opsys=hpux11 ;;
1306 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1307 echo " xemacs will be linked with \"strcat.o\""
1310 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1311 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1312 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1314 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1317 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1318 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1320 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1321 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1322 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1323 romp-ibm-aos* ) opsys=bsd4-3 ;;
1324 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1325 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1327 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1328 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1330 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1332 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1334 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1336 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1338 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1340 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1342 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1344 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1346 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1348 mips-mips-usg* ) machine=mips4 ;;
1351 NON_GNU_CC="cc -systype bsd43"
1352 NON_GNU_CPP="cc -systype bsd43 -E"
1353 case "$canonical" in
1354 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1355 mips-mips-riscos5* ) opsys=riscos5 ;;
1358 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1359 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1361 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1363 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1365 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1366 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1368 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1370 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1372 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1374 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1376 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1377 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1379 mips-siemens-sysv* | mips-sni-sysv*)
1380 machine=mips-siemens opsys=usg5-4
1381 NON_GNU_CC=/usr/ccs/bin/cc
1382 NON_GNU_CPP=/usr/ccs/lib/cpp
1387 NON_GNU_CC=/usr/ccs/bin/cc
1388 NON_GNU_CPP=/usr/ccs/lib/cpp
1391 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1392 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1393 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1394 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1395 mips-sgi-irix6* ) opsys=irix6-0 ;;
1396 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1397 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1398 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1399 mips-sgi-irix* ) opsys=irix5-0 ;;
1401 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1402 *-sony-news* ) opsys=newsos5 ;;
1404 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1406 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1407 case "$canonical" in
1408 m68*-sunos1* ) machine=sun1 ;;
1409 m68*-sunos2* ) machine=sun2 ;;
1410 m68* ) machine=sun3 ;;
1411 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1412 i*86-*-* ) machine=intel386 ;;
1413 rs6000* ) machine=rs6000 ;;
1416 case "$canonical" in *-sunos5*)
1417 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1420 case "$canonical" in
1422 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1425 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1429 case "$canonical" in
1432 os_release_major=`uname -r | sed -e 's/^\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\1/'`
1433 os_release_minor=`uname -r | sed -e 's/^\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\2/'`
1434 case "$os_release_minor" in [0-9])
1435 os_release_minor="0${os_release_minor}";;
1437 os_release="${os_release_major}${os_release_minor}"
1438 { test "$extra_verbose" = "yes" && cat << EOF
1439 Defining OS_RELEASE = $os_release
1441 cat >> confdefs.h <<EOF
1442 #define OS_RELEASE $os_release
1447 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1448 *-sunos4.0* ) opsys=sunos4-0 ;;
1449 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1450 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1451 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1452 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1453 *-mach* ) opsys=mach-bsd4-3 ;;
1457 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1459 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1462 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1464 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1465 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1467 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1469 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1471 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1472 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1474 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1476 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1479 case "$canonical" in
1480 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1481 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1482 *-mach* ) opsys=mach-bsd4-3 ;;
1486 ns16k-whitechapel-* ) machine=mg1 ;;
1488 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1492 case "$canonical" in
1493 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1494 *-isc2.2* ) opsys=isc2-2 ;;
1495 *-isc4.0* ) opsys=isc4-0 ;;
1496 *-isc4.* ) opsys=isc4-1
1497 GCC_TEST_OPTIONS=-posix
1498 NON_GCC_TEST_OPTIONS=-Xp
1500 *-isc* ) opsys=isc3-0 ;;
1501 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1502 *-esix* ) opsys=esix ;;
1503 *-mach* ) opsys=mach-bsd4-3 ;;
1504 *-xenix* ) opsys=xenix ;;
1505 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1506 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1507 *-bsdi4* ) opsys=bsdos4 ;;
1508 *-bsdi3* ) opsys=bsdos3 ;;
1509 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1510 *-bsdi2* ) opsys=bsdos2 ;;
1511 *-sco3.2v5* ) opsys=sco5 ;;
1512 *-sysv5* ) opsys=sco7 ;;
1513 *-386bsd* ) opsys=386bsd ;;
1514 *-freebsd* ) opsys=freebsd ;;
1515 *-nextstep* ) opsys=nextstep ;;
1516 *-pc-cygwin* ) opsys=cygwin32 ;;
1517 *-pc-mingw* ) opsys=mingw32 ;
1518 test -z "$with_tty" && with_tty="no";;
1522 m68k-*-linux* ) machine=m68k opsys=linux ;;
1526 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1528 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
1530 if test -r "${srcdir}/src/m/${machine}.h"; then
1531 machfile="m/${machine}.h"
1532 { test "$extra_verbose" = "yes" && cat << EOF
1533 Defining config_machfile = "$machfile"
1535 cat >> confdefs.h <<EOF
1536 #define config_machfile "$machfile"
1541 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1542 echo "Using configure-time autodetection only."
1545 if test -r "${srcdir}/src/s/${opsys}.h"; then
1546 opsysfile="s/${opsys}.h"
1547 { test "$extra_verbose" = "yes" && cat << EOF
1548 Defining config_opsysfile = "$opsysfile"
1550 cat >> confdefs.h <<EOF
1551 #define config_opsysfile "$opsysfile"
1556 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1557 echo "Using configure-time autodetection only."
1561 if test -z "$pdump"; then
1563 linux* ) pdump=yes ;; darwin ) pdump=yes ;; cygwin* ) pdump=yes ;; *) pdump=no ;;
1567 if test -z "$dynamic"; then
1569 hpux* | sunos4* ) dynamic=no ;;
1573 if test "$dynamic" = "yes"; then
1575 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1576 decosf* ) ld_call_shared="-call_shared" ;;
1577 darwin ) { test "$extra_verbose" = "yes" && cat << \EOF
1578 Defining DLSYM_NEEDS_UNDERSCORE
1580 cat >> confdefs.h <<\EOF
1581 #define DLSYM_NEEDS_UNDERSCORE 1
1586 else case "$opsys" in
1588 echo "Static linking is not supported on Solaris 2."
1589 echo "Rerun configure without specifying --dynamic=no."
1591 linux ) ld_call_shared="-Bstatic" ;;
1592 decosf* ) ld_call_shared="-non_shared" ;;
1596 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1598 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1599 { test "$extra_verbose" = "yes" && cat << EOF
1600 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1602 cat >> confdefs.h <<EOF
1603 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1609 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1610 if test "$with_workshop $with_tooltalk" = "yes no"; then
1611 (echo "$progname: Usage error:"
1612 echo " " "--with-workshop requires --with-tooltalk"
1613 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1614 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1615 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1618 if test "$with_workshop" = "yes"; then
1619 { test "$extra_verbose" = "yes" && cat << \EOF
1622 cat >> confdefs.h <<\EOF
1627 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1628 echo " xemacs will be linked with \"sunpro.o\""
1632 if test "$with_clash_detection" != "no"; then
1633 { test "$extra_verbose" = "yes" && cat << \EOF
1634 Defining CLASH_DETECTION
1636 cat >> confdefs.h <<\EOF
1637 #define CLASH_DETECTION 1
1641 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1642 echo " xemacs will be linked with \"filelock.o\""
1646 test -n "$compiler" && CC="$compiler"
1647 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1650 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1651 if test "${CFLAGS-unset}" != unset
1652 then cflags_specified=yes;
1653 else cflags_specified=no;
1656 xe_save_CFLAGS="$CFLAGS"
1658 # Extract the first word of "gcc", so it can be a program name with args.
1659 set dummy gcc; ac_word=$2
1660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1661 echo "configure:1662: checking for $ac_word" >&5
1663 if test -n "$CC"; then
1664 ac_cv_prog_CC="$CC" # Let the user override the test.
1666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1668 for ac_dir in $ac_dummy; do
1669 test -z "$ac_dir" && ac_dir=.
1670 if test -f $ac_dir/$ac_word; then
1678 if test -n "$CC"; then
1679 echo "$ac_t""$CC" 1>&6
1681 echo "$ac_t""no" 1>&6
1684 if test -z "$CC"; then
1685 # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1688 echo "configure:1689: checking for $ac_word" >&5
1690 if test -n "$CC"; then
1691 ac_cv_prog_CC="$CC" # Let the user override the test.
1693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1696 for ac_dir in $ac_dummy; do
1697 test -z "$ac_dir" && ac_dir=.
1698 if test -f $ac_dir/$ac_word; then
1699 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1700 ac_prog_rejected=yes
1708 if test $ac_prog_rejected = yes; then
1709 # We found a bogon in the path, so make sure we never use it.
1710 set dummy $ac_cv_prog_CC
1712 if test $# -gt 0; then
1713 # We chose a different compiler from the bogus one.
1714 # However, it has the same basename, so the bogon will be chosen
1715 # first if we set CC to just the basename; use the full file name.
1717 set dummy "$ac_dir/$ac_word" "$@"
1724 if test -n "$CC"; then
1725 echo "$ac_t""$CC" 1>&6
1727 echo "$ac_t""no" 1>&6
1730 if test -z "$CC"; then
1731 case "`uname -s`" in
1733 # Extract the first word of "cl", so it can be a program name with args.
1734 set dummy cl; ac_word=$2
1735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1736 echo "configure:1737: checking for $ac_word" >&5
1738 if test -n "$CC"; then
1739 ac_cv_prog_CC="$CC" # Let the user override the test.
1741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1743 for ac_dir in $ac_dummy; do
1744 test -z "$ac_dir" && ac_dir=.
1745 if test -f $ac_dir/$ac_word; then
1753 if test -n "$CC"; then
1754 echo "$ac_t""$CC" 1>&6
1756 echo "$ac_t""no" 1>&6
1761 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1764 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1765 echo "configure:1766: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1768 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1769 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1770 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1771 ac_cpp='$CPP '"$xe_cppflags"
1772 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1773 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1776 cat > conftest.$ac_ext << EOF
1778 #line 1779 "configure"
1779 #include "confdefs.h"
1783 if { (eval echo configure:1784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1784 ac_cv_prog_cc_works=yes
1785 # If we can't run a trivial program, we are probably using a cross compiler.
1786 if (./conftest; exit) 2>/dev/null; then
1787 ac_cv_prog_cc_cross=no
1789 ac_cv_prog_cc_cross=yes
1792 echo "configure: failed program was:" >&5
1793 cat conftest.$ac_ext >&5
1794 ac_cv_prog_cc_works=no
1798 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1799 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1800 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1801 ac_cpp='$CPP '"$xe_cppflags"
1802 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1803 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1806 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1807 if test $ac_cv_prog_cc_works = no; then
1808 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1810 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1811 echo "configure:1812: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1812 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1813 cross_compiling=$ac_cv_prog_cc_cross
1815 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1816 echo "configure:1817: checking whether we are using GNU C" >&5
1818 cat > conftest.c <<EOF
1823 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1829 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1831 if test $ac_cv_prog_gcc = yes; then
1837 ac_test_CFLAGS="${CFLAGS+set}"
1838 ac_save_CFLAGS="$CFLAGS"
1840 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1841 echo "configure:1842: checking whether ${CC-cc} accepts -g" >&5
1843 echo 'void f(){}' > conftest.c
1844 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1852 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1853 if test "$ac_test_CFLAGS" = set; then
1854 CFLAGS="$ac_save_CFLAGS"
1855 elif test $ac_cv_prog_cc_g = yes; then
1856 if test "$GCC" = yes; then
1862 if test "$GCC" = yes; then
1869 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1871 # Extract the first word of "gcc", so it can be a program name with args.
1872 set dummy gcc; ac_word=$2
1873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1874 echo "configure:1875: checking for $ac_word" >&5
1876 if test -n "$CC"; then
1877 ac_cv_prog_CC="$CC" # Let the user override the test.
1879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1881 for ac_dir in $ac_dummy; do
1882 test -z "$ac_dir" && ac_dir=.
1883 if test -f $ac_dir/$ac_word; then
1891 if test -n "$CC"; then
1892 echo "$ac_t""$CC" 1>&6
1894 echo "$ac_t""no" 1>&6
1897 if test -z "$CC"; then
1898 # Extract the first word of "cc", so it can be a program name with args.
1899 set dummy cc; ac_word=$2
1900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1901 echo "configure:1902: checking for $ac_word" >&5
1903 if test -n "$CC"; then
1904 ac_cv_prog_CC="$CC" # Let the user override the test.
1906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1909 for ac_dir in $ac_dummy; do
1910 test -z "$ac_dir" && ac_dir=.
1911 if test -f $ac_dir/$ac_word; then
1912 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1913 ac_prog_rejected=yes
1921 if test $ac_prog_rejected = yes; then
1922 # We found a bogon in the path, so make sure we never use it.
1923 set dummy $ac_cv_prog_CC
1925 if test $# -gt 0; then
1926 # We chose a different compiler from the bogus one.
1927 # However, it has the same basename, so the bogon will be chosen
1928 # first if we set CC to just the basename; use the full file name.
1930 set dummy "$ac_dir/$ac_word" "$@"
1937 if test -n "$CC"; then
1938 echo "$ac_t""$CC" 1>&6
1940 echo "$ac_t""no" 1>&6
1943 if test -z "$CC"; then
1944 case "`uname -s`" in
1946 # Extract the first word of "cl", so it can be a program name with args.
1947 set dummy cl; ac_word=$2
1948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1949 echo "configure:1950: checking for $ac_word" >&5
1951 if test -n "$CC"; then
1952 ac_cv_prog_CC="$CC" # Let the user override the test.
1954 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1956 for ac_dir in $ac_dummy; do
1957 test -z "$ac_dir" && ac_dir=.
1958 if test -f $ac_dir/$ac_word; then
1966 if test -n "$CC"; then
1967 echo "$ac_t""$CC" 1>&6
1969 echo "$ac_t""no" 1>&6
1974 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1977 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1978 echo "configure:1979: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1981 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1982 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1983 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1984 ac_cpp='$CPP '"$xe_cppflags"
1985 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1986 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1989 cat > conftest.$ac_ext << EOF
1991 #line 1992 "configure"
1992 #include "confdefs.h"
1996 if { (eval echo configure:1997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1997 ac_cv_prog_cc_works=yes
1998 # If we can't run a trivial program, we are probably using a cross compiler.
1999 if (./conftest; exit) 2>/dev/null; then
2000 ac_cv_prog_cc_cross=no
2002 ac_cv_prog_cc_cross=yes
2005 echo "configure: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
2007 ac_cv_prog_cc_works=no
2011 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2012 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2013 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2014 ac_cpp='$CPP '"$xe_cppflags"
2015 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2016 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2019 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2020 if test $ac_cv_prog_cc_works = no; then
2021 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2023 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2024 echo "configure:2025: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2025 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2026 cross_compiling=$ac_cv_prog_cc_cross
2028 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2029 echo "configure:2030: checking whether we are using GNU C" >&5
2031 cat > conftest.c <<EOF
2036 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2042 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2044 if test $ac_cv_prog_gcc = yes; then
2050 ac_test_CFLAGS="${CFLAGS+set}"
2051 ac_save_CFLAGS="$CFLAGS"
2053 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2054 echo "configure:2055: checking whether ${CC-cc} accepts -g" >&5
2056 echo 'void f(){}' > conftest.c
2057 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2065 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2066 if test "$ac_test_CFLAGS" = set; then
2067 CFLAGS="$ac_save_CFLAGS"
2068 elif test $ac_cv_prog_cc_g = yes; then
2069 if test "$GCC" = yes; then
2075 if test "$GCC" = yes; then
2082 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2084 # Extract the first word of "gcc", so it can be a program name with args.
2085 set dummy gcc; ac_word=$2
2086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2087 echo "configure:2088: checking for $ac_word" >&5
2089 if test -n "$CC"; then
2090 ac_cv_prog_CC="$CC" # Let the user override the test.
2092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2094 for ac_dir in $ac_dummy; do
2095 test -z "$ac_dir" && ac_dir=.
2096 if test -f $ac_dir/$ac_word; then
2104 if test -n "$CC"; then
2105 echo "$ac_t""$CC" 1>&6
2107 echo "$ac_t""no" 1>&6
2110 if test -z "$CC"; then
2111 # Extract the first word of "cc", so it can be a program name with args.
2112 set dummy cc; ac_word=$2
2113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2114 echo "configure:2115: checking for $ac_word" >&5
2116 if test -n "$CC"; then
2117 ac_cv_prog_CC="$CC" # Let the user override the test.
2119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2122 for ac_dir in $ac_dummy; do
2123 test -z "$ac_dir" && ac_dir=.
2124 if test -f $ac_dir/$ac_word; then
2125 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2126 ac_prog_rejected=yes
2134 if test $ac_prog_rejected = yes; then
2135 # We found a bogon in the path, so make sure we never use it.
2136 set dummy $ac_cv_prog_CC
2138 if test $# -gt 0; then
2139 # We chose a different compiler from the bogus one.
2140 # However, it has the same basename, so the bogon will be chosen
2141 # first if we set CC to just the basename; use the full file name.
2143 set dummy "$ac_dir/$ac_word" "$@"
2150 if test -n "$CC"; then
2151 echo "$ac_t""$CC" 1>&6
2153 echo "$ac_t""no" 1>&6
2156 if test -z "$CC"; then
2157 case "`uname -s`" in
2159 # Extract the first word of "cl", so it can be a program name with args.
2160 set dummy cl; ac_word=$2
2161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2162 echo "configure:2163: checking for $ac_word" >&5
2164 if test -n "$CC"; then
2165 ac_cv_prog_CC="$CC" # Let the user override the test.
2167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2169 for ac_dir in $ac_dummy; do
2170 test -z "$ac_dir" && ac_dir=.
2171 if test -f $ac_dir/$ac_word; then
2179 if test -n "$CC"; then
2180 echo "$ac_t""$CC" 1>&6
2182 echo "$ac_t""no" 1>&6
2187 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2190 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2191 echo "configure:2192: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2194 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2195 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2196 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2197 ac_cpp='$CPP '"$xe_cppflags"
2198 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2199 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2202 cat > conftest.$ac_ext << EOF
2204 #line 2205 "configure"
2205 #include "confdefs.h"
2209 if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2210 ac_cv_prog_cc_works=yes
2211 # If we can't run a trivial program, we are probably using a cross compiler.
2212 if (./conftest; exit) 2>/dev/null; then
2213 ac_cv_prog_cc_cross=no
2215 ac_cv_prog_cc_cross=yes
2218 echo "configure: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 ac_cv_prog_cc_works=no
2224 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2225 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2226 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2227 ac_cpp='$CPP '"$xe_cppflags"
2228 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2229 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2232 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2233 if test $ac_cv_prog_cc_works = no; then
2234 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2236 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2237 echo "configure:2238: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2238 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2239 cross_compiling=$ac_cv_prog_cc_cross
2241 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2242 echo "configure:2243: checking whether we are using GNU C" >&5
2244 cat > conftest.c <<EOF
2249 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2255 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2257 if test $ac_cv_prog_gcc = yes; then
2263 ac_test_CFLAGS="${CFLAGS+set}"
2264 ac_save_CFLAGS="$CFLAGS"
2266 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2267 echo "configure:2268: checking whether ${CC-cc} accepts -g" >&5
2269 echo 'void f(){}' > conftest.c
2270 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2278 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2279 if test "$ac_test_CFLAGS" = set; then
2280 CFLAGS="$ac_save_CFLAGS"
2281 elif test $ac_cv_prog_cc_g = yes; then
2282 if test "$GCC" = yes; then
2288 if test "$GCC" = yes; then
2296 CFLAGS="$xe_save_CFLAGS"
2299 test -n "$CPP" -a -d "$CPP" && CPP=
2301 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2303 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2304 echo "configure:2305: checking how to run the C preprocessor" >&5
2305 # On Suns, sometimes $CPP names a directory.
2306 if test -n "$CPP" && test -d "$CPP"; then
2309 if test -z "$CPP"; then
2311 # This must be in double quotes, not single quotes, because CPP may get
2312 # substituted into the Makefile and "${CC-cc}" will confuse make.
2314 # On the NeXT, cc -E runs the code through the compiler's parser,
2315 # not just through cpp.
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2323 { (eval echo configure:2324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2325 if test -z "$ac_err"; then
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2332 CPP="${CC-cc} -E -traditional-cpp"
2333 cat > conftest.$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2340 { (eval echo configure:2341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2342 if test -z "$ac_err"; then
2346 echo "configure: failed program was:" >&5
2347 cat conftest.$ac_ext >&5
2349 CPP="${CC-cc} -nologo -E"
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2357 { (eval echo configure:2358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2358 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2359 if test -z "$ac_err"; then
2363 echo "configure: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2373 ac_cv_prog_CPP="$CPP"
2374 CPP="$ac_cv_prog_CPP"
2376 ac_cv_prog_CPP="$CPP"
2378 echo "$ac_t""$CPP" 1>&6
2382 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2383 echo "configure:2384: checking for AIX" >&5
2384 cat > conftest.$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2393 egrep "yes" >/dev/null 2>&1; then
2395 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2396 Defining _ALL_SOURCE
2398 cat >> confdefs.h <<\EOF
2399 #define _ALL_SOURCE 1
2405 echo "$ac_t""no" 1>&6
2411 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2412 echo "configure:2413: checking for GNU libc" >&5
2413 cat > conftest.$ac_ext <<EOF
2414 #line 2415 "configure"
2415 #include "confdefs.h"
2416 #include <features.h>
2419 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2420 #error Not a GNU libc system :-(
2421 ******* ======= ******** &&&&&&&&
2426 if { (eval echo configure:2427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2430 echo "configure: failed program was:" >&5
2431 cat conftest.$ac_ext >&5
2436 echo "$ac_t""$have_glibc" 1>&6
2437 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2438 Defining _GNU_SOURCE
2440 cat >> confdefs.h <<\EOF
2441 #define _GNU_SOURCE 1
2448 { test "$extra_verbose" = "yes" && cat << \EOF
2449 Defining __EXTENSIONS__
2451 cat >> confdefs.h <<\EOF
2452 #define __EXTENSIONS__ 1
2456 if test "$os_release" -ge 505; then
2457 { test "$extra_verbose" = "yes" && cat << \EOF
2458 Defining _XOPEN_SOURCE = 500
2460 cat >> confdefs.h <<\EOF
2461 #define _XOPEN_SOURCE 500
2465 { test "$extra_verbose" = "yes" && cat << \EOF
2466 Defining _XOPEN_SOURCE_EXTENDED
2468 cat >> confdefs.h <<\EOF
2469 #define _XOPEN_SOURCE_EXTENDED 1
2475 { test "$extra_verbose" = "yes" && cat << \EOF
2476 Defining _POSIX_C_SOURCE = 199506L
2478 cat >> confdefs.h <<\EOF
2479 #define _POSIX_C_SOURCE 199506L
2483 { test "$extra_verbose" = "yes" && cat << \EOF
2484 Defining _XOPEN_SOURCE = 500
2486 cat >> confdefs.h <<\EOF
2487 #define _XOPEN_SOURCE 500
2491 { test "$extra_verbose" = "yes" && cat << \EOF
2492 Defining _XOPEN_SOURCE_EXTENDED
2494 cat >> confdefs.h <<\EOF
2495 #define _XOPEN_SOURCE_EXTENDED 1
2502 cat > conftest.$ac_ext <<EOF
2503 #line 2504 "configure"
2504 #include "confdefs.h"
2506 #if defined __SUNPRO_C
2508 #elif defined __DECC
2510 #elif defined __USLC__ && defined __SCO_VERSION__
2512 #elif defined __INTEL_COMPILER
2519 if { (eval echo configure:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2524 echo "configure: failed program was:" >&5
2525 cat conftest.$ac_ext >&5
2527 case "$conftest_rc" in
2528 11) echo "You appear to be using the SunPro C compiler." ; __SUNPRO_C=yes ;;
2529 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2530 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2531 14) echo "You appear to be using the Intel C++ compiler."; __ICC=yes
2540 echo "Extracting information from the machine- and system-dependent headers..."
2542 tempcname="conftest.c"
2546 cat > $tempcname < confdefs.h
2547 cat >> $tempcname <<EOF
2549 #define C_SWITCH_SITE
2550 #define C_SWITCH_X_SITE
2551 #define LD_SWITCH_SITE
2552 #define LD_SWITCH_X_SITE
2553 #define LD_SWITCH_X_SITE_AUX
2554 #define OS_RELEASE $os_release
2556 #ifdef config_opsysfile
2557 #include "$srcdir/src/$opsysfile"
2560 #ifdef config_machfile
2561 #include "$srcdir/src/$machfile"
2564 #ifndef LIBS_MACHINE
2565 #define LIBS_MACHINE
2567 configure___ libs_machine=LIBS_MACHINE
2572 configure___ libs_system=LIBS_SYSTEM
2574 #ifndef LIBS_TERMCAP
2575 #define LIBS_TERMCAP
2577 configure___ libs_termcap=LIBS_TERMCAP
2579 #ifndef LIB_STANDARD
2580 #define LIB_STANDARD
2582 configure___ libs_standard=LIB_STANDARD
2585 #ifndef OBJECTS_MACHINE
2586 #define OBJECTS_MACHINE
2588 configure___ objects_machine=OBJECTS_MACHINE
2590 #ifndef OBJECTS_SYSTEM
2591 #define OBJECTS_SYSTEM
2593 configure___ objects_system=OBJECTS_SYSTEM
2596 #ifndef C_SWITCH_MACHINE
2597 #define C_SWITCH_MACHINE
2599 configure___ c_switch_machine=C_SWITCH_MACHINE
2601 #ifndef C_SWITCH_SYSTEM
2602 #define C_SWITCH_SYSTEM
2604 configure___ c_switch_system=C_SWITCH_SYSTEM
2607 #ifndef LD_SWITCH_MACHINE
2608 #define LD_SWITCH_MACHINE
2610 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2612 #ifndef LD_SWITCH_SYSTEM
2613 #define LD_SWITCH_SYSTEM
2615 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2619 #define UNEXEC "unexec.o"
2621 configure___ unexec=UNEXEC
2624 #ifndef LD_SWITCH_SHARED
2625 #define LD_SWITCH_SHARED "-c"
2627 configure___ ld_switch_shared=LD_SWITCH_SHARED
2630 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2631 configure___ ordinary_ld=ORDINARY_LD
2633 #ifdef ORDINARY_LINK
2634 #define LD ORDINARY_LD
2635 #else /* no ORDINARY LINK */
2636 #ifdef COFF_ENCAPSULATE
2637 #define LD "\$(CC) -nostdlib"
2638 #else /* not COFF_ENCAPSULATE */
2641 #else /* ! defined (LINKER) */
2643 #endif /* ! defined (LINKER) */
2644 #endif /* ! defined (COFF_ENCAPSULATE) */
2645 #endif /* not ORDINARY_LINK */
2651 configure___ lib_gcc=LIB_GCC
2653 #ifndef LD_TEXT_START_ADDR
2654 #define LD_TEXT_START_ADDR
2656 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2659 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2661 #ifdef COFF_ENCAPSULATE
2662 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2663 #else /* ! defined (COFF_ENCAPSULATE) */
2664 #define START_FILES "pre-crt0.o /lib/crt0.o"
2665 #endif /* ! defined (COFF_ENCAPSULATE) */
2666 #else /* ! defined (NO_REMAP) */
2667 #define START_FILES "ecrt0.o"
2668 #endif /* ! defined (NO_REMAP) */
2669 #endif /* no ORDINARY_LINK */
2673 configure___ start_files=START_FILES
2675 #ifdef ORDINARY_LINK
2676 configure___ ordinary_link=yes
2678 configure___ ordinary_link=no
2681 #ifdef SYSTEM_MALLOC
2682 configure___ system_malloc=yes
2684 configure___ system_malloc=no
2688 configure___ have_terminfo=yes
2690 configure___ have_terminfo=no
2693 #ifdef MAIL_USE_FLOCK
2694 configure___ mail_use_flock=yes
2696 configure___ mail_use_flock=no
2699 #ifdef MAIL_USE_LOCKF
2700 configure___ mail_use_lockf=yes
2702 configure___ mail_use_lockf=no
2705 #ifdef MAIL_USE_LOCKING
2706 configure___ mail_use_locking=yes
2708 configure___ mail_use_locking=no
2711 #ifdef HAVE_WIN32_PROCESSES
2712 configure___ win32_processes=yes
2714 configure___ win32_processes=no
2719 CPP=`eval "echo $CPP $CPPFLAGS"`
2720 eval `$CPP -Isrc $tempcname \
2721 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2725 if test "$pdump" = "yes"; then
2734 test "$extra_verbose" = "yes" && \
2735 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 ""
2737 case "$opsys" in mingw* | cygwin*)
2738 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2739 cygwin_include=`eval "dirname $cygwin_include"` ;
2740 cygwin_include="-I$cygwin_include/../include" ;
2741 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2742 case "$opsys" in mingw*)
2743 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2748 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2751 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2753 if test "$__USLC__" = yes; then
2754 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2755 echo "configure:2756: checking for whether the -Kalloca compiler flag is needed" >&5
2757 cat > conftest.$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2762 void *x = alloca(4);
2765 if { (eval echo configure:2766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2769 echo "configure: failed program was:" >&5
2770 cat conftest.$ac_ext >&5
2773 xe_save_c_switch_system="$c_switch_system"
2774 c_switch_system="$c_switch_system -Kalloca"
2775 cat > conftest.$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2780 void *x = alloca(4);
2783 if { (eval echo configure:2784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2787 echo "configure: failed program was:" >&5
2788 cat conftest.$ac_ext >&5
2791 c_switch_system="$xe_save_c_switch_system"
2794 echo "$ac_t""$need_kalloca" 1>&6
2795 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
2798 if test "$cflags_specified" = "no"; then
2799 if test "$GCC" = "yes"; then
2800 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes"
2801 CFLAGS="$CFLAGS -Wsign-compare"
2802 case "`gcc -v --help 2>&1`" in
2803 *-fstrict-aliasing* ) CFLAGS="$CFLAGS -fno-strict-aliasing" ;;
2805 if test "$xemacs_compiler" != "g++"; then
2806 CFLAGS="$CFLAGS -Wshadow"
2808 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2809 elif test "$__SUNPRO_C" = "yes"; then
2811 sol2 ) CFLAGS="-v -xO4" ;;
2812 sunos4* ) CFLAGS="-xO2";;
2814 elif test "$__DECC" = "yes"; then
2816 elif test "$CC" = "xlc"; then
2817 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2818 elif test "$__ICC" = "yes"; then
2819 CFLAGS="-g -O3 -Ob2 -Wall -W1"
2824 if test "$GCC" = "yes"; then
2825 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2826 echo "configure:2827: checking for buggy gcc versions" >&5
2827 GCC_VERSION=`$CC --version`
2828 case `uname -s`:`uname -m`:$GCC_VERSION in
2829 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2833 *-fno-schedule-insns*) ;;
2835 echo "$ac_t""yes" 1>&6
2836 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2837 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2838 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2844 Linux:alpha:egcs-2.91.*)
2845 echo "$ac_t""yes" 1>&6
2846 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2847 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2848 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2853 case "$GCC_VERSION" in
2856 *-fno-strength-reduce*) ;;
2858 echo "$ac_t""yes" 1>&6
2859 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2860 echo "configure: warning: -fno-strength-reduce." 1>&2
2861 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2867 *-fno-caller-saves*) ;;
2869 echo "$ac_t""yes" 1>&6
2870 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2871 echo "configure: warning: -fno-caller-saves." 1>&2
2872 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2879 echo "$ac_t""no" 1>&6
2882 if test "$pdump" != "yes"; then
2883 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
2884 echo "configure:2885: checking for \"-z nocombreloc\" linker flag" >&5
2885 case "`ld --help 2>&1`" in
2886 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
2887 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
2888 *) echo "$ac_t""no" 1>&6 ;;
2894 if test "$GCC" = "yes"; then
2895 set x $ld_switch_system; shift; ld_switch_system=""
2896 while test -n "$1"; do
2898 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2899 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2901 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2907 if test "$GCC" = "yes"; then
2908 set x $ld_switch_machine; shift; ld_switch_machine=""
2909 while test -n "$1"; do
2911 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2912 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2914 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2920 if test "$GCC" = "yes"; then
2921 set x $ld_switch_site; shift; ld_switch_site=""
2922 while test -n "$1"; do
2924 -L | -l | -u ) ld_switch_site="$ld_switch_site $1 $2"; shift ;;
2925 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_site="$ld_switch_site $1" ;;
2927 * ) ld_switch_site="$ld_switch_site -Xlinker $1" ;;
2933 if test "$GCC" = "yes"; then
2934 set x $LDFLAGS; shift; LDFLAGS=""
2935 while test -n "$1"; do
2937 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2938 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2940 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2946 if test "$GCC" = "yes"; then
2947 set x $ld_call_shared; shift; ld_call_shared=""
2948 while test -n "$1"; do
2950 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2951 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2953 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2959 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2960 echo " xemacs will be linked with \"$objects_machine\""
2962 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2963 echo " xemacs will be linked with \"$objects_system\""
2965 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2966 echo " xemacs will be linked with \"$unexec\""
2968 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2969 echo " xemacs will be linked with \"dumper.o\""
2972 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2973 echo "configure:2974: checking for dynodump" >&5
2974 if test "$unexec" != "unexsol2.o"; then
2975 echo "$ac_t""no" 1>&6
2977 echo "$ac_t""yes" 1>&6
2978 { test "$extra_verbose" = "yes" && cat << \EOF
2981 cat >> confdefs.h <<\EOF
2986 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2987 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2989 sparc ) dynodump_arch=sparc ;;
2990 *86* ) dynodump_arch=i386 ;;
2991 powerpc ) dynodump_arch=ppc ;;
2997 if test "$unexec" = "unexaix.o"; then
2998 if test "$dynamic" = "no"; then
2999 start_flags="-Wl,-bnso,-bnodelcsect"
3000 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
3001 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
3002 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
3004 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
3005 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
3008 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
3009 echo "configure:3010: checking for terminateAndUnload in -lC" >&5
3010 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
3012 xe_check_libs=" -lC "
3013 cat > conftest.$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3016 /* Override any gcc2 internal prototype to avoid an error. */
3017 /* We use char because int might match the return type of a gcc2
3018 builtin and then its argument prototype would still apply. */
3019 char terminateAndUnload();
3022 terminateAndUnload()
3025 if { (eval echo configure:3026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3027 eval "ac_cv_lib_$ac_lib_var=yes"
3029 echo "configure: failed program was:" >&5
3030 cat conftest.$ac_ext >&5
3032 eval "ac_cv_lib_$ac_lib_var=no"
3037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
3038 echo "$ac_t""yes" 1>&6
3039 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
3041 echo "$ac_t""no" 1>&6
3046 elif test -n "$ld_text_start_addr"; then
3047 start_flags="-T $ld_text_start_addr -e __start"
3053 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
3054 test -z "$linker" && linker='$(CC) -nostdlib'
3055 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
3057 test "$GCC" != "yes" && lib_gcc=
3063 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3064 if test -n "$site_libraries"; then
3065 for arg in $site_libraries; do
3068 * ) test -d "$arg" || \
3069 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3072 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3076 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3077 if test -n "$site_includes"; then
3078 for arg in $site_includes; do
3081 * ) test -d "$arg" || \
3082 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3085 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3089 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3090 if test -n "$site_prefixes"; then
3091 for dir in $site_prefixes; do
3092 lib_dir="${dir}/lib"
3093 inc_dir="${dir}/include"
3094 if test ! -d "$dir"; then
3095 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3096 elif test ! -d "$lib_dir"; then
3097 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3099 if test -d "$inc_dir"; then
3100 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
3102 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
3108 for dir in "/usr/ccs/lib"; do
3109 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
3112 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3113 if test -n "$site_runtime_libraries"; then
3114 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3122 if test -n "$add_runtime_path"; then :;
3123 elif test "$dynamic" = "no"; then add_runtime_path=no
3124 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3125 else case "$opsys" in
3126 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3127 * ) add_runtime_path=no ;;
3131 if test "$add_runtime_path" = "yes"; then
3132 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3133 echo "configure:3134: checking "for runtime libraries flag"" >&5
3135 sol2 ) dash_r="-R" ;;
3136 decosf* | linux* | irix*) dash_r="-rpath " ;;
3139 for try_dash_r in "-R" "-R " "-rpath "; do
3140 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3142 if test "$GCC" = "yes"; then
3143 set x $xe_check_libs; shift; xe_check_libs=""
3144 while test -n "$1"; do
3146 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3147 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3149 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3154 cat > conftest.$ac_ext <<EOF
3155 #line 3156 "configure"
3156 #include "confdefs.h"
3162 if { (eval echo configure:3163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3164 dash_r="$try_dash_r"
3166 echo "configure: failed program was:" >&5
3167 cat conftest.$ac_ext >&5
3171 test -n "$dash_r" && break
3174 if test -n "$dash_r";
3175 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3176 else echo "$ac_t""NONE" 1>&6
3180 xe_add_unique_runpath_dir='
3182 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3184 if test "$xe_add_p" = "yes"; then
3185 test -n "$runpath" && runpath="${runpath}:"
3186 runpath="${runpath}${xe_runpath_dir}"
3187 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3193 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3194 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3195 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3197 runpath="" runpath_dirs=""
3198 if test -n "$LD_RUN_PATH"; then
3199 runpath="$LD_RUN_PATH"
3200 elif test "$GCC" = "yes"; then
3201 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3202 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3203 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3204 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3205 case "$arg" in P,* | -L* | -R* )
3206 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3208 xe_runpath_dir="$dir"
3209 test "$xe_runpath_dir" != "/lib" -a \
3210 "$xe_runpath_dir" != "/usr/lib" -a \
3211 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3212 eval "$xe_add_unique_runpath_dir"
3217 ld_switch_run="$ld_switch_run_save"
3220 for arg in $ld_switch_site $ld_switch_x_site; do
3221 case "$arg" in -L*) {
3222 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3223 test "$xe_runpath_dir" != "/lib" -a \
3224 "$xe_runpath_dir" != "/usr/lib" -a \
3225 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3226 eval "$xe_add_unique_runpath_dir"
3229 if test "$opsys $need_motif" = "sol2 yes"; then
3230 xe_runpath_dir="/opt/SUNWdt/lib";
3231 eval "$xe_add_unique_runpath_dir";
3234 if test -n "$runpath"; then
3235 ld_switch_run="${dash_r}${runpath}"
3237 if test "$GCC" = "yes"; then
3238 set x $ld_switch_run; shift; ld_switch_run=""
3239 while test -n "$1"; do
3241 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3242 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3244 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3249 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3256 if test "$with_dlmalloc" != "no"; then
3261 after_morecore_hook_exists=yes
3262 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3263 echo "configure:3264: checking for malloc_set_state" >&5
3265 cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 /* System header to define __stub macros and hopefully few prototypes,
3269 which can conflict with char malloc_set_state(); below. */
3271 /* Override any gcc2 internal prototype to avoid an error. */
3272 /* We use char because int might match the return type of a gcc2
3273 builtin and then its argument prototype would still apply. */
3274 char malloc_set_state();
3278 /* The GNU C library defines this for functions which it implements
3279 to always fail with ENOSYS. Some functions are actually named
3280 something starting with __ and the normal name is an alias. */
3281 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3289 if { (eval echo configure:3290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3291 eval "ac_cv_func_malloc_set_state=yes"
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3296 eval "ac_cv_func_malloc_set_state=no"
3300 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3301 echo "$ac_t""yes" 1>&6
3304 echo "$ac_t""no" 1>&6
3308 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3309 echo "configure:3310: checking whether __after_morecore_hook exists" >&5
3310 cat > conftest.$ac_ext <<EOF
3311 #line 3312 "configure"
3312 #include "confdefs.h"
3313 extern void (* __after_morecore_hook)();
3315 __after_morecore_hook = 0
3318 if { (eval echo configure:3319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3320 echo "$ac_t""yes" 1>&6
3322 echo "configure: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3325 echo "$ac_t""no" 1>&6
3326 after_morecore_hook_exists=no
3329 if test "$system_malloc" = "yes" ; then
3332 - The GNU allocators don't work with this system configuration."
3333 elif test "$with_system_malloc" = "yes" ; then
3336 - User chose not to use GNU allocators."
3337 elif test "$with_debug_malloc" = "yes" ; then
3340 - User chose to use Debugging Malloc."
3343 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3345 - Using Doug Lea's new malloc from the GNU C Library."
3346 { test "$extra_verbose" = "yes" && cat << \EOF
3347 Defining DOUG_LEA_MALLOC
3349 cat >> confdefs.h <<\EOF
3350 #define DOUG_LEA_MALLOC 1
3354 if test "$after_morecore_hook_exists" = "no" ; then
3356 - Using Doug Lea's new malloc from the Linux C Library."
3357 { test "$extra_verbose" = "yes" && cat << \EOF
3358 Defining _NO_MALLOC_WARNING_
3360 cat >> confdefs.h <<\EOF
3361 #define _NO_MALLOC_WARNING_ 1
3371 # Extract the first word of "ranlib", so it can be a program name with args.
3372 set dummy ranlib; ac_word=$2
3373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3374 echo "configure:3375: checking for $ac_word" >&5
3376 if test -n "$RANLIB"; then
3377 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3379 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3381 for ac_dir in $ac_dummy; do
3382 test -z "$ac_dir" && ac_dir=.
3383 if test -f $ac_dir/$ac_word; then
3384 ac_cv_prog_RANLIB="ranlib"
3389 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3391 RANLIB="$ac_cv_prog_RANLIB"
3392 if test -n "$RANLIB"; then
3393 echo "$ac_t""$RANLIB" 1>&6
3395 echo "$ac_t""no" 1>&6
3399 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3400 if test -f $ac_dir/install-sh; then
3402 ac_install_sh="$ac_aux_dir/install-sh -c"
3404 elif test -f $ac_dir/install.sh; then
3406 ac_install_sh="$ac_aux_dir/install.sh -c"
3410 if test -z "$ac_aux_dir"; then
3411 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3413 ac_config_guess=$ac_aux_dir/config.guess
3414 ac_config_sub=$ac_aux_dir/config.sub
3415 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3417 # Find a good install program. We prefer a C program (faster),
3418 # so one script is as good as another. But avoid the broken or
3419 # incompatible versions:
3420 # SysV /etc/install, /usr/sbin/install
3421 # SunOS /usr/etc/install
3422 # IRIX /sbin/install
3424 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3425 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3426 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3427 # ./install, which can be erroneously created by make from ./install.sh.
3428 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3429 echo "configure:3430: checking for a BSD compatible install" >&5
3430 if test -z "$INSTALL"; then
3432 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3433 for ac_dir in $PATH; do
3434 # Account for people who put trailing slashes in PATH elements.
3436 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3438 # OSF1 and SCO ODT 3.0 have their own names for install.
3439 # Don't use installbsd from OSF since it installs stuff as root
3441 for ac_prog in ginstall scoinst install; do
3442 if test -f $ac_dir/$ac_prog; then
3443 if test $ac_prog = install &&
3444 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3445 # AIX install. It has an incompatible calling convention.
3448 ac_cv_path_install="$ac_dir/$ac_prog -c"
3458 if test "${ac_cv_path_install+set}" = set; then
3459 INSTALL="$ac_cv_path_install"
3461 # As a last resort, use the slow shell script. We don't cache a
3462 # path for INSTALL within a source directory, because that will
3463 # break other packages using the cache if that directory is
3464 # removed, or if the path is relative.
3465 INSTALL="$ac_install_sh"
3468 echo "$ac_t""$INSTALL" 1>&6
3470 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3471 # It thinks the first close brace ends the variable substitution.
3472 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3474 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3476 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3478 for ac_prog in 'bison -y' byacc
3480 # Extract the first word of "$ac_prog", so it can be a program name with args.
3481 set dummy $ac_prog; ac_word=$2
3482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3483 echo "configure:3484: checking for $ac_word" >&5
3485 if test -n "$YACC"; then
3486 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3490 for ac_dir in $ac_dummy; do
3491 test -z "$ac_dir" && ac_dir=.
3492 if test -f $ac_dir/$ac_word; then
3493 ac_cv_prog_YACC="$ac_prog"
3499 YACC="$ac_cv_prog_YACC"
3500 if test -n "$YACC"; then
3501 echo "$ac_t""$YACC" 1>&6
3503 echo "$ac_t""no" 1>&6
3506 test -n "$YACC" && break
3508 test -n "$YACC" || YACC="yacc"
3511 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
3513 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3515 echo "configure:3516: checking for $ac_hdr" >&5
3517 cat > conftest.$ac_ext <<EOF
3518 #line 3519 "configure"
3519 #include "confdefs.h"
3522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3523 { (eval echo configure:3524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3525 if test -z "$ac_err"; then
3527 eval "ac_cv_header_$ac_safe=yes"
3530 echo "configure: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3533 eval "ac_cv_header_$ac_safe=no"
3536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3537 echo "$ac_t""yes" 1>&6
3538 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3539 { test "$extra_verbose" = "yes" && cat << EOF
3542 cat >> confdefs.h <<EOF
3543 #define $ac_tr_hdr 1
3548 echo "$ac_t""no" 1>&6
3552 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3553 echo "configure:3554: checking for sys/wait.h that is POSIX.1 compatible" >&5
3555 cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 #include <sys/types.h>
3559 #include <sys/wait.h>
3561 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3564 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3569 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3572 if { (eval echo configure:3573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3574 ac_cv_header_sys_wait_h=yes
3576 echo "configure: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3579 ac_cv_header_sys_wait_h=no
3583 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3584 if test $ac_cv_header_sys_wait_h = yes; then
3585 { test "$extra_verbose" = "yes" && cat << \EOF
3586 Defining HAVE_SYS_WAIT_H
3588 cat >> confdefs.h <<\EOF
3589 #define HAVE_SYS_WAIT_H 1
3595 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3596 echo "configure:3597: checking for ANSI C header files" >&5
3598 cat > conftest.$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3607 { (eval echo configure:3608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3609 if test -z "$ac_err"; then
3611 ac_cv_header_stdc=yes
3614 echo "configure: failed program was:" >&5
3615 cat conftest.$ac_ext >&5
3617 ac_cv_header_stdc=no
3621 if test $ac_cv_header_stdc = yes; then
3622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3623 cat > conftest.$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3629 egrep "memchr" >/dev/null 2>&1; then
3633 ac_cv_header_stdc=no
3639 if test $ac_cv_header_stdc = yes; then
3640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3641 cat > conftest.$ac_ext <<EOF
3642 #line 3643 "configure"
3643 #include "confdefs.h"
3646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3647 egrep "free" >/dev/null 2>&1; then
3651 ac_cv_header_stdc=no
3657 if test $ac_cv_header_stdc = yes; then
3658 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3659 cat > conftest.$ac_ext <<EOF
3660 #line 3661 "configure"
3661 #include "confdefs.h"
3663 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3664 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3665 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3666 int main () { int i; for (i = 0; i < 256; i++)
3667 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3671 if { (eval echo configure:3672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3676 echo "configure: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3679 ac_cv_header_stdc=no
3684 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3685 if test $ac_cv_header_stdc = yes; then
3686 { test "$extra_verbose" = "yes" && cat << \EOF
3687 Defining STDC_HEADERS
3689 cat >> confdefs.h <<\EOF
3690 #define STDC_HEADERS 1
3696 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3697 echo "configure:3698: checking whether time.h and sys/time.h may both be included" >&5
3699 cat > conftest.$ac_ext <<EOF
3700 #line 3701 "configure"
3701 #include "confdefs.h"
3702 #include <sys/types.h>
3703 #include <sys/time.h>
3709 if { (eval echo configure:3710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3711 ac_cv_header_time=yes
3713 echo "configure: failed program was:" >&5
3714 cat conftest.$ac_ext >&5
3716 ac_cv_header_time=no
3720 echo "$ac_t""$ac_cv_header_time" 1>&6
3721 if test $ac_cv_header_time = yes; then
3722 { test "$extra_verbose" = "yes" && cat << \EOF
3723 Defining TIME_WITH_SYS_TIME
3725 cat >> confdefs.h <<\EOF
3726 #define TIME_WITH_SYS_TIME 1
3732 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3733 echo "configure:3734: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3735 cat > conftest.$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3738 #include <sys/types.h>
3740 /* NetBSD declares sys_siglist in unistd.h. */
3741 #ifdef HAVE_UNISTD_H
3745 char *msg = *(sys_siglist + 1);
3748 if { (eval echo configure:3749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3750 ac_cv_decl_sys_siglist=yes
3752 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3755 ac_cv_decl_sys_siglist=no
3759 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3760 if test $ac_cv_decl_sys_siglist = yes; then
3761 { test "$extra_verbose" = "yes" && cat << \EOF
3762 Defining SYS_SIGLIST_DECLARED
3764 cat >> confdefs.h <<\EOF
3765 #define SYS_SIGLIST_DECLARED 1
3773 echo $ac_n "checking for utime""... $ac_c" 1>&6
3774 echo "configure:3775: checking for utime" >&5
3775 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3778 #include <sys/types.h>
3781 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3784 if { (eval echo configure:3785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3786 echo "$ac_t""yes" 1>&6
3787 { test "$extra_verbose" = "yes" && cat << \EOF
3790 cat >> confdefs.h <<\EOF
3791 #define HAVE_UTIME 1
3796 echo "configure: failed program was:" >&5
3797 cat conftest.$ac_ext >&5
3799 echo "$ac_t""no" 1>&6
3800 for ac_func in utimes
3802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3803 echo "configure:3804: checking for $ac_func" >&5
3805 cat > conftest.$ac_ext <<EOF
3806 #line 3807 "configure"
3807 #include "confdefs.h"
3808 /* System header to define __stub macros and hopefully few prototypes,
3809 which can conflict with char $ac_func(); below. */
3811 /* Override any gcc2 internal prototype to avoid an error. */
3812 /* We use char because int might match the return type of a gcc2
3813 builtin and then its argument prototype would still apply. */
3818 /* The GNU C library defines this for functions which it implements
3819 to always fail with ENOSYS. Some functions are actually named
3820 something starting with __ and the normal name is an alias. */
3821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3829 if { (eval echo configure:3830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3831 eval "ac_cv_func_$ac_func=yes"
3833 echo "configure: failed program was:" >&5
3834 cat conftest.$ac_ext >&5
3836 eval "ac_cv_func_$ac_func=no"
3840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3841 echo "$ac_t""yes" 1>&6
3842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3843 { test "$extra_verbose" = "yes" && cat << EOF
3844 Defining $ac_tr_func
3846 cat >> confdefs.h <<EOF
3847 #define $ac_tr_func 1
3852 echo "$ac_t""no" 1>&6
3860 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3861 echo "configure:3862: checking return type of signal handlers" >&5
3863 cat > conftest.$ac_ext <<EOF
3864 #line 3865 "configure"
3865 #include "confdefs.h"
3866 #include <sys/types.h>
3872 extern "C" void (*signal (int, void (*)(int)))(int);
3874 void (*signal ()) ();
3881 if { (eval echo configure:3882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3883 ac_cv_type_signal=void
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3888 ac_cv_type_signal=int
3892 echo "$ac_t""$ac_cv_type_signal" 1>&6
3893 { test "$extra_verbose" = "yes" && cat << EOF
3894 Defining RETSIGTYPE = $ac_cv_type_signal
3896 cat >> confdefs.h <<EOF
3897 #define RETSIGTYPE $ac_cv_type_signal
3902 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3903 echo "configure:3904: checking for size_t" >&5
3905 cat > conftest.$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3908 #include <sys/types.h>
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3917 ac_cv_type_size_t=yes
3920 ac_cv_type_size_t=no
3924 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3925 if test $ac_cv_type_size_t = no; then
3926 { test "$extra_verbose" = "yes" && cat << \EOF
3927 Defining size_t = unsigned
3929 cat >> confdefs.h <<\EOF
3930 #define size_t unsigned
3936 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3937 echo "configure:3938: checking for pid_t" >&5
3939 cat > conftest.$ac_ext <<EOF
3940 #line 3941 "configure"
3941 #include "confdefs.h"
3942 #include <sys/types.h>
3948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3949 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3951 ac_cv_type_pid_t=yes
3958 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3959 if test $ac_cv_type_pid_t = no; then
3960 { test "$extra_verbose" = "yes" && cat << \EOF
3961 Defining pid_t = int
3963 cat >> confdefs.h <<\EOF
3970 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3971 echo "configure:3972: checking for uid_t in sys/types.h" >&5
3973 cat > conftest.$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3976 #include <sys/types.h>
3978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3979 egrep "uid_t" >/dev/null 2>&1; then
3981 ac_cv_type_uid_t=yes
3989 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3990 if test $ac_cv_type_uid_t = no; then
3991 { test "$extra_verbose" = "yes" && cat << \EOF
3992 Defining uid_t = int
3994 cat >> confdefs.h <<\EOF
3999 { test "$extra_verbose" = "yes" && cat << \EOF
4000 Defining gid_t = int
4002 cat >> confdefs.h <<\EOF
4009 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4010 echo "configure:4011: checking for mode_t" >&5
4012 cat > conftest.$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4015 #include <sys/types.h>
4021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4022 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4024 ac_cv_type_mode_t=yes
4027 ac_cv_type_mode_t=no
4031 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4032 if test $ac_cv_type_mode_t = no; then
4033 { test "$extra_verbose" = "yes" && cat << \EOF
4034 Defining mode_t = int
4036 cat >> confdefs.h <<\EOF
4043 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4044 echo "configure:4045: checking for off_t" >&5
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4049 #include <sys/types.h>
4055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4056 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4058 ac_cv_type_off_t=yes
4065 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4066 if test $ac_cv_type_off_t = no; then
4067 { test "$extra_verbose" = "yes" && cat << \EOF
4068 Defining off_t = long
4070 cat >> confdefs.h <<\EOF
4077 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4078 echo "configure:4079: checking for ssize_t" >&5
4080 cat > conftest.$ac_ext <<EOF
4081 #line 4082 "configure"
4082 #include "confdefs.h"
4083 #include <sys/types.h>
4089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4090 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4092 ac_cv_type_ssize_t=yes
4095 ac_cv_type_ssize_t=no
4099 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4100 if test $ac_cv_type_ssize_t = no; then
4101 { test "$extra_verbose" = "yes" && cat << \EOF
4102 Defining ssize_t = int
4104 cat >> confdefs.h <<\EOF
4112 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4113 echo "configure:4114: checking for socklen_t" >&5
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4117 #include <sys/types.h>
4118 #include <sys/socket.h>
4125 if { (eval echo configure:4126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4127 echo "$ac_t""yes" 1>&6
4129 echo "configure: failed program was:" >&5
4130 cat conftest.$ac_ext >&5
4133 cat > conftest.$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4136 #include <sys/types.h>
4137 #include <sys/socket.h>
4138 int accept (int, struct sockaddr *, size_t *);
4144 if { (eval echo configure:4145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4147 echo "$ac_t""size_t" 1>&6
4148 { test "$extra_verbose" = "yes" && cat << \EOF
4149 Defining socklen_t = size_t
4151 cat >> confdefs.h <<\EOF
4152 #define socklen_t size_t
4157 echo "configure: failed program was:" >&5
4158 cat conftest.$ac_ext >&5
4161 echo "$ac_t""int" 1>&6
4162 { test "$extra_verbose" = "yes" && cat << \EOF
4163 Defining socklen_t = int
4165 cat >> confdefs.h <<\EOF
4166 #define socklen_t int
4175 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4176 echo "configure:4177: checking for struct timeval" >&5
4177 cat > conftest.$ac_ext <<EOF
4178 #line 4179 "configure"
4179 #include "confdefs.h"
4180 #ifdef TIME_WITH_SYS_TIME
4181 #include <sys/time.h>
4184 #ifdef HAVE_SYS_TIME_H
4185 #include <sys/time.h>
4191 static struct timeval x; x.tv_sec = x.tv_usec;
4194 if { (eval echo configure:4195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4196 echo "$ac_t""yes" 1>&6
4198 { test "$extra_verbose" = "yes" && cat << \EOF
4199 Defining HAVE_TIMEVAL
4201 cat >> confdefs.h <<\EOF
4202 #define HAVE_TIMEVAL 1
4207 echo "configure: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4210 echo "$ac_t""no" 1>&6
4215 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4216 echo "configure:4217: checking whether struct tm is in sys/time.h or time.h" >&5
4218 cat > conftest.$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4221 #include <sys/types.h>
4224 struct tm *tp; tp->tm_sec;
4227 if { (eval echo configure:4228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4229 ac_cv_struct_tm=time.h
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4234 ac_cv_struct_tm=sys/time.h
4238 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4239 if test $ac_cv_struct_tm = sys/time.h; then
4240 { test "$extra_verbose" = "yes" && cat << \EOF
4241 Defining TM_IN_SYS_TIME
4243 cat >> confdefs.h <<\EOF
4244 #define TM_IN_SYS_TIME 1
4250 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4251 echo "configure:4252: checking for tm_zone in struct tm" >&5
4253 cat > conftest.$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4256 #include <sys/types.h>
4257 #include <$ac_cv_struct_tm>
4259 struct tm tm; tm.tm_zone;
4262 if { (eval echo configure:4263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4264 ac_cv_struct_tm_zone=yes
4266 echo "configure: failed program was:" >&5
4267 cat conftest.$ac_ext >&5
4269 ac_cv_struct_tm_zone=no
4273 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4274 if test "$ac_cv_struct_tm_zone" = yes; then
4275 { test "$extra_verbose" = "yes" && cat << \EOF
4276 Defining HAVE_TM_ZONE
4278 cat >> confdefs.h <<\EOF
4279 #define HAVE_TM_ZONE 1
4284 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4285 echo "configure:4286: checking for tzname" >&5
4287 cat > conftest.$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4291 #ifndef tzname /* For SGI. */
4292 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4298 if { (eval echo configure:4299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4300 ac_cv_var_tzname=yes
4302 echo "configure: failed program was:" >&5
4303 cat conftest.$ac_ext >&5
4309 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4310 if test $ac_cv_var_tzname = yes; then
4311 { test "$extra_verbose" = "yes" && cat << \EOF
4312 Defining HAVE_TZNAME
4314 cat >> confdefs.h <<\EOF
4315 #define HAVE_TZNAME 1
4323 echo $ac_n "checking for working const""... $ac_c" 1>&6
4324 echo "configure:4325: checking for working const" >&5
4326 cat > conftest.$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4332 /* Ultrix mips cc rejects this. */
4333 typedef int charset[2]; const charset x;
4334 /* SunOS 4.1.1 cc rejects this. */
4335 char const *const *ccp;
4337 /* NEC SVR4.0.2 mips cc rejects this. */
4338 struct point {int x, y;};
4339 static struct point const zero = {0,0};
4340 /* AIX XL C 1.02.0.0 rejects this.
4341 It does not let you subtract one const X* pointer from another in an arm
4342 of an if-expression whose if-part is not a constant expression */
4343 const char *g = "string";
4344 ccp = &g + (g ? g-g : 0);
4345 /* HPUX 7.0 cc rejects these. */
4348 ccp = (char const *const *) p;
4349 { /* SCO 3.2v4 cc rejects this. */
4351 char const *s = 0 ? (char *) 0 : (char const *) 0;
4355 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4357 const int *foo = &x[0];
4360 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4361 typedef const int *iptr;
4365 { /* AIX XL C 1.02.0.0 rejects this saying
4366 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4367 struct s { int j; const int *ap[3]; };
4368 struct s *b; b->j = 5;
4370 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4376 if { (eval echo configure:4377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4380 echo "configure: failed program was:" >&5
4381 cat conftest.$ac_ext >&5
4387 echo "$ac_t""$ac_cv_c_const" 1>&6
4388 if test $ac_cv_c_const = no; then
4389 { test "$extra_verbose" = "yes" && cat << \EOF
4392 cat >> confdefs.h <<\EOF
4400 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4401 echo "configure:4402: checking whether ${MAKE-make} sets \${MAKE}" >&5
4402 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4404 cat > conftestmake <<\EOF
4406 @echo 'ac_maketemp="${MAKE}"'
4408 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4409 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4410 if test -n "$ac_maketemp"; then
4411 eval ac_cv_prog_make_${ac_make}_set=yes
4413 eval ac_cv_prog_make_${ac_make}_set=no
4416 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4417 echo "$ac_t""yes" 1>&6
4420 echo "$ac_t""no" 1>&6
4421 SET_MAKE="MAKE=${MAKE-make}"
4425 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4426 echo "configure:4427: checking whether byte ordering is bigendian" >&5
4428 ac_cv_c_bigendian=unknown
4429 # See if sys/param.h defines the BYTE_ORDER macro.
4430 cat > conftest.$ac_ext <<EOF
4431 #line 4432 "configure"
4432 #include "confdefs.h"
4433 #include <sys/types.h>
4434 #include <sys/param.h>
4437 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4442 if { (eval echo configure:4443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4444 # It does; now see whether it defined to BIG_ENDIAN or not.
4445 cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4448 #include <sys/types.h>
4449 #include <sys/param.h>
4452 #if BYTE_ORDER != BIG_ENDIAN
4457 if { (eval echo configure:4458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4459 ac_cv_c_bigendian=yes
4461 echo "configure: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4464 ac_cv_c_bigendian=no
4468 echo "configure: failed program was:" >&5
4469 cat conftest.$ac_ext >&5
4472 if test $ac_cv_c_bigendian = unknown; then
4473 cat > conftest.$ac_ext <<EOF
4474 #line 4475 "configure"
4475 #include "confdefs.h"
4477 /* Are we little or big endian? From Harbison&Steele. */
4481 char c[sizeof (long)];
4484 exit (u.c[sizeof (long) - 1] == 1);
4487 if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4489 ac_cv_c_bigendian=no
4492 echo "configure: failed program was:" >&5
4493 cat conftest.$ac_ext >&5
4495 ac_cv_c_bigendian=yes
4500 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4501 if test $ac_cv_c_bigendian = yes; then
4502 { test "$extra_verbose" = "yes" && cat << \EOF
4503 Defining WORDS_BIGENDIAN
4505 cat >> confdefs.h <<\EOF
4506 #define WORDS_BIGENDIAN 1
4513 echo $ac_n "checking size of short""... $ac_c" 1>&6
4514 echo "configure:4515: checking size of short" >&5
4516 cat > conftest.$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4522 FILE *f=fopen("conftestval", "w");
4524 fprintf(f, "%d\n", sizeof(short));
4528 if { (eval echo configure:4529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4530 ac_cv_sizeof_short=`cat conftestval`
4533 echo "configure: failed program was:" >&5
4534 cat conftest.$ac_ext >&5
4536 ac_cv_sizeof_short=0
4539 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4540 { test "$extra_verbose" = "yes" && cat << EOF
4541 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4543 cat >> confdefs.h <<EOF
4544 #define SIZEOF_SHORT $ac_cv_sizeof_short
4549 if test "$ac_cv_sizeof_short" = 0; then
4551 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4552 echo "*** PANIC *** Please examine config.log for compilation errors."
4555 echo $ac_n "checking size of int""... $ac_c" 1>&6
4556 echo "configure:4557: checking size of int" >&5
4558 cat > conftest.$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4564 FILE *f=fopen("conftestval", "w");
4566 fprintf(f, "%d\n", sizeof(int));
4570 if { (eval echo configure:4571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4572 ac_cv_sizeof_int=`cat conftestval`
4575 echo "configure: failed program was:" >&5
4576 cat conftest.$ac_ext >&5
4581 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4582 { test "$extra_verbose" = "yes" && cat << EOF
4583 Defining SIZEOF_INT = $ac_cv_sizeof_int
4585 cat >> confdefs.h <<EOF
4586 #define SIZEOF_INT $ac_cv_sizeof_int
4591 echo $ac_n "checking size of long""... $ac_c" 1>&6
4592 echo "configure:4593: checking size of long" >&5
4594 cat > conftest.$ac_ext <<EOF
4595 #line 4596 "configure"
4596 #include "confdefs.h"
4600 FILE *f=fopen("conftestval", "w");
4602 fprintf(f, "%d\n", sizeof(long));
4606 if { (eval echo configure:4607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4608 ac_cv_sizeof_long=`cat conftestval`
4611 echo "configure: failed program was:" >&5
4612 cat conftest.$ac_ext >&5
4617 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4618 { test "$extra_verbose" = "yes" && cat << EOF
4619 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4621 cat >> confdefs.h <<EOF
4622 #define SIZEOF_LONG $ac_cv_sizeof_long
4627 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4628 echo "configure:4629: checking size of long long" >&5
4630 cat > conftest.$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4636 FILE *f=fopen("conftestval", "w");
4638 fprintf(f, "%d\n", sizeof(long long));
4642 if { (eval echo configure:4643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4644 ac_cv_sizeof_long_long=`cat conftestval`
4647 echo "configure: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4650 ac_cv_sizeof_long_long=0
4653 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4654 { test "$extra_verbose" = "yes" && cat << EOF
4655 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4657 cat >> confdefs.h <<EOF
4658 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4663 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4664 echo "configure:4665: checking size of void *" >&5
4666 cat > conftest.$ac_ext <<EOF
4667 #line 4668 "configure"
4668 #include "confdefs.h"
4672 FILE *f=fopen("conftestval", "w");
4674 fprintf(f, "%d\n", sizeof(void *));
4678 if { (eval echo configure:4679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4680 ac_cv_sizeof_void_p=`cat conftestval`
4683 echo "configure: failed program was:" >&5
4684 cat conftest.$ac_ext >&5
4686 ac_cv_sizeof_void_p=0
4689 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4690 { test "$extra_verbose" = "yes" && cat << EOF
4691 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4693 cat >> confdefs.h <<EOF
4694 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4701 cygwin* ) cat > conftest.$ac_ext <<EOF
4702 #line 4703 "configure"
4703 #include "confdefs.h"
4704 #include <cygwin/types.h>
4706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4707 egrep "typedef.*intptr_t;" >/dev/null 2>&1; then
4709 echo "$ac_t""yes" 1>&6
4710 { test "$extra_verbose" = "yes" && cat << \EOF
4711 Defining INTPTR_T_IN_CYGWIN_TYPES_H = 1
4713 cat >> confdefs.h <<\EOF
4714 #define INTPTR_T_IN_CYGWIN_TYPES_H 1
4720 echo "$ac_t""no" 1>&6
4726 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4727 echo "configure:4728: checking for long file names" >&5
4729 ac_cv_sys_long_file_names=yes
4730 # Test for long file names in all the places we know might matter:
4731 # . the current directory, where building will happen
4732 # $prefix/lib where we will be installing things
4733 # $exec_prefix/lib likewise
4734 # eval it to expand exec_prefix.
4735 # $TMPDIR if set, where it might want to write temporary files
4736 # if $TMPDIR is not set:
4737 # /tmp where it might want to write temporary files
4740 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4741 ac_tmpdirs="$TMPDIR"
4743 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4745 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4746 test -d $ac_dir || continue
4747 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4748 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4749 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4750 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4751 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4752 ac_cv_sys_long_file_names=no
4753 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4756 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4759 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4760 if test $ac_cv_sys_long_file_names = yes; then
4761 { test "$extra_verbose" = "yes" && cat << \EOF
4762 Defining HAVE_LONG_FILE_NAMES
4764 cat >> confdefs.h <<\EOF
4765 #define HAVE_LONG_FILE_NAMES 1
4772 echo $ac_n "checking for sin""... $ac_c" 1>&6
4773 echo "configure:4774: checking for sin" >&5
4775 cat > conftest.$ac_ext <<EOF
4776 #line 4777 "configure"
4777 #include "confdefs.h"
4778 /* System header to define __stub macros and hopefully few prototypes,
4779 which can conflict with char sin(); below. */
4781 /* Override any gcc2 internal prototype to avoid an error. */
4782 /* We use char because int might match the return type of a gcc2
4783 builtin and then its argument prototype would still apply. */
4788 /* The GNU C library defines this for functions which it implements
4789 to always fail with ENOSYS. Some functions are actually named
4790 something starting with __ and the normal name is an alias. */
4791 #if defined (__stub_sin) || defined (__stub___sin)
4799 if { (eval echo configure:4800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4801 eval "ac_cv_func_sin=yes"
4803 echo "configure: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4806 eval "ac_cv_func_sin=no"
4810 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4811 echo "$ac_t""yes" 1>&6
4814 echo "$ac_t""no" 1>&6
4816 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4817 echo "configure:4818: checking for sin in -lm" >&5
4818 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4820 xe_check_libs=" -lm "
4821 cat > conftest.$ac_ext <<EOF
4822 #line 4823 "configure"
4823 #include "confdefs.h"
4824 /* Override any gcc2 internal prototype to avoid an error. */
4825 /* We use char because int might match the return type of a gcc2
4826 builtin and then its argument prototype would still apply. */
4833 if { (eval echo configure:4834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4835 eval "ac_cv_lib_$ac_lib_var=yes"
4837 echo "configure: failed program was:" >&5
4838 cat conftest.$ac_ext >&5
4840 eval "ac_cv_lib_$ac_lib_var=no"
4845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4846 echo "$ac_t""yes" 1>&6
4847 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4848 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4849 { test "$extra_verbose" = "yes" && cat << EOF
4852 cat >> confdefs.h <<EOF
4853 #define $ac_tr_lib 1
4857 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4860 echo "$ac_t""no" 1>&6
4867 { test "$extra_verbose" = "yes" && cat << \EOF
4868 Defining LISP_FLOAT_TYPE
4870 cat >> confdefs.h <<\EOF
4871 #define LISP_FLOAT_TYPE 1
4876 cat > conftest.$ac_ext <<EOF
4877 #line 4878 "configure"
4878 #include "confdefs.h"
4881 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4884 if { (eval echo configure:4885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4886 { test "$extra_verbose" = "yes" && cat << \EOF
4887 Defining HAVE_INVERSE_HYPERBOLIC
4889 cat >> confdefs.h <<\EOF
4890 #define HAVE_INVERSE_HYPERBOLIC 1
4895 echo "configure: failed program was:" >&5
4896 cat conftest.$ac_ext >&5
4900 echo "checking type of mail spool file locking" 1>&6
4901 echo "configure:4902: checking type of mail spool file locking" >&5
4902 for ac_func in lockf flock
4904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4905 echo "configure:4906: checking for $ac_func" >&5
4907 cat > conftest.$ac_ext <<EOF
4908 #line 4909 "configure"
4909 #include "confdefs.h"
4910 /* System header to define __stub macros and hopefully few prototypes,
4911 which can conflict with char $ac_func(); below. */
4913 /* Override any gcc2 internal prototype to avoid an error. */
4914 /* We use char because int might match the return type of a gcc2
4915 builtin and then its argument prototype would still apply. */
4920 /* The GNU C library defines this for functions which it implements
4921 to always fail with ENOSYS. Some functions are actually named
4922 something starting with __ and the normal name is an alias. */
4923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4931 if { (eval echo configure:4932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4933 eval "ac_cv_func_$ac_func=yes"
4935 echo "configure: failed program was:" >&5
4936 cat conftest.$ac_ext >&5
4938 eval "ac_cv_func_$ac_func=no"
4942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4943 echo "$ac_t""yes" 1>&6
4944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4945 { test "$extra_verbose" = "yes" && cat << EOF
4946 Defining $ac_tr_func
4948 cat >> confdefs.h <<EOF
4949 #define $ac_tr_func 1
4954 echo "$ac_t""no" 1>&6
4958 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4959 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4960 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4961 if test -z "$mail_locking"; then
4962 case "$opsys" in cygwin* | mingw*)
4967 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4968 Defining MAIL_LOCK_LOCKF
4970 cat >> confdefs.h <<\EOF
4971 #define MAIL_LOCK_LOCKF 1
4975 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4976 Defining MAIL_LOCK_FLOCK
4978 cat >> confdefs.h <<\EOF
4979 #define MAIL_LOCK_FLOCK 1
4983 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4984 Defining MAIL_LOCK_LOCKING
4986 cat >> confdefs.h <<\EOF
4987 #define MAIL_LOCK_LOCKING 1
4991 elif test "$mail_locking" = "pop"; then
4994 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4995 Defining MAIL_LOCK_DOT
4997 cat >> confdefs.h <<\EOF
4998 #define MAIL_LOCK_DOT 1
5003 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
5004 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
5005 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
5006 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
5007 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
5008 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
5010 case "$opsys" in decosf*)
5012 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
5013 echo "configure:5014: checking for cma_open in -lpthreads" >&5
5014 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
5016 xe_check_libs=" -lpthreads "
5017 cat > conftest.$ac_ext <<EOF
5018 #line 5019 "configure"
5019 #include "confdefs.h"
5020 /* Override any gcc2 internal prototype to avoid an error. */
5021 /* We use char because int might match the return type of a gcc2
5022 builtin and then its argument prototype would still apply. */
5029 if { (eval echo configure:5030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5031 eval "ac_cv_lib_$ac_lib_var=yes"
5033 echo "configure: failed program was:" >&5
5034 cat conftest.$ac_ext >&5
5036 eval "ac_cv_lib_$ac_lib_var=no"
5041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5042 echo "$ac_t""yes" 1>&6
5043 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5044 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5045 { test "$extra_verbose" = "yes" && cat << EOF
5048 cat >> confdefs.h <<EOF
5049 #define $ac_tr_lib 1
5053 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
5056 echo "$ac_t""no" 1>&6
5060 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
5061 c_switch_site="$c_switch_site -threads" ;;
5065 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
5066 echo "configure:5067: checking whether the -xildoff compiler flag is required" >&5
5067 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
5068 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
5069 then echo "$ac_t""no" 1>&6;
5070 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
5072 else echo "$ac_t""no" 1>&6
5075 if test "$opsys" = "sol2"; then
5076 if test "$os_release" -ge 506; then
5077 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
5078 echo "configure:5079: checking for \"-z ignore\" linker flag" >&5
5079 case "`ld -h 2>&1`" in
5080 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
5081 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5082 *) echo "$ac_t""no" 1>&6 ;;
5088 echo "checking "for specified window system"" 1>&6
5089 echo "configure:5090: checking "for specified window system"" >&5
5095 if test "$with_gnome" != "no"; then
5096 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5097 echo "configure:5098: checking for GNOME configuration script" >&5
5098 for possible in gnome-config
5100 possible_version=`${possible} --version 2> /dev/null`
5101 if test "x${possible_version}" != "x"; then
5102 GNOME_CONFIG="${possible}"
5108 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5111 if test "${GNOME_CONFIG}" != "no"; then
5112 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5113 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5114 { test "$extra_verbose" = "yes" && cat << \EOF
5117 cat >> confdefs.h <<\EOF
5118 #define HAVE_GNOME 1
5122 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5123 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5126 if test "$with_gtk" != "no";then
5127 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5128 echo "configure:5129: checking for GTK configuration script" >&5
5129 for possible in gtk12-config gtk14-config gtk-config
5131 possible_version=`${possible} --version 2> /dev/null`
5132 if test "x${possible_version}" != "x"; then
5133 GTK_CONFIG="${possible}"
5134 case "${possible_version}" in
5135 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5136 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5141 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5145 echo "$ac_t""${GTK_CONFIG}" 1>&6
5148 if test "${GTK_CONFIG}" != "no"; then
5149 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5150 echo "configure:5151: checking gtk version" >&5
5151 GTK_VERSION=`${GTK_CONFIG} --version`
5152 echo "$ac_t""${GTK_VERSION}" 1>&6
5154 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5155 echo "configure:5156: checking gtk libs" >&5
5156 GTK_LIBS=`${GTK_CONFIG} --libs`
5157 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5158 echo "$ac_t""${GTK_LIBS}" 1>&6
5160 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5161 echo "configure:5162: checking gtk cflags" >&5
5162 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5163 if test "$GCC" = "yes"; then
5164 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
5166 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5167 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5170 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5171 echo "configure:5172: checking for main in -lgdk_imlib" >&5
5172 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5174 xe_check_libs=" -lgdk_imlib "
5175 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5183 if { (eval echo configure:5184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5185 eval "ac_cv_lib_$ac_lib_var=yes"
5187 echo "configure: failed program was:" >&5
5188 cat conftest.$ac_ext >&5
5190 eval "ac_cv_lib_$ac_lib_var=no"
5195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5196 echo "$ac_t""yes" 1>&6
5197 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5199 echo "$ac_t""no" 1>&6
5204 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5205 echo "configure:5206: checking for Imlib_init in -lImlib" >&5
5206 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5208 xe_check_libs=" -lImlib "
5209 cat > conftest.$ac_ext <<EOF
5210 #line 5211 "configure"
5211 #include "confdefs.h"
5212 /* Override any gcc2 internal prototype to avoid an error. */
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5221 if { (eval echo configure:5222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5223 eval "ac_cv_lib_$ac_lib_var=yes"
5225 echo "configure: failed program was:" >&5
5226 cat conftest.$ac_ext >&5
5228 eval "ac_cv_lib_$ac_lib_var=no"
5233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5234 echo "$ac_t""yes" 1>&6
5235 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5237 echo "$ac_t""no" 1>&6
5241 for ac_func in gdk_imlib_init
5243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5244 echo "configure:5245: checking for $ac_func" >&5
5246 cat > conftest.$ac_ext <<EOF
5247 #line 5248 "configure"
5248 #include "confdefs.h"
5249 /* System header to define __stub macros and hopefully few prototypes,
5250 which can conflict with char $ac_func(); below. */
5252 /* Override any gcc2 internal prototype to avoid an error. */
5253 /* We use char because int might match the return type of a gcc2
5254 builtin and then its argument prototype would still apply. */
5259 /* The GNU C library defines this for functions which it implements
5260 to always fail with ENOSYS. Some functions are actually named
5261 something starting with __ and the normal name is an alias. */
5262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5270 if { (eval echo configure:5271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5272 eval "ac_cv_func_$ac_func=yes"
5274 echo "configure: failed program was:" >&5
5275 cat conftest.$ac_ext >&5
5277 eval "ac_cv_func_$ac_func=no"
5281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5282 echo "$ac_t""yes" 1>&6
5283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5284 { test "$extra_verbose" = "yes" && cat << EOF
5285 Defining $ac_tr_func
5287 cat >> confdefs.h <<EOF
5288 #define $ac_tr_func 1
5293 echo "$ac_t""no" 1>&6
5298 { test "$extra_verbose" = "yes" && cat << \EOF
5301 cat >> confdefs.h <<\EOF
5306 { test "$extra_verbose" = "yes" && cat << \EOF
5309 cat >> confdefs.h <<\EOF
5320 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5321 test "${with_toolbars}" != no && with_toolbars=gtk
5322 test "${with_menubars}" != "no" && with_menubars=gtk
5323 test "${with_dialogs}" != "no" && with_dialogs=gtk
5324 test "${with_widgets}" != "no" && with_widgets=gtk
5326 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5327 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5329 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5330 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5332 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5333 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5335 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5336 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5339 OLD_CFLAGS="${CFLAGS}"
5340 OLD_CPPFLAGS="${CPPFLAGS}"
5341 OLD_LDFLAGS="${LDFLAGS}"
5342 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5343 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5344 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5345 for ac_hdr in glade/glade.h glade.h
5347 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5349 echo "configure:5350: checking for $ac_hdr" >&5
5351 cat > conftest.$ac_ext <<EOF
5352 #line 5353 "configure"
5353 #include "confdefs.h"
5356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5357 { (eval echo configure:5358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5358 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5359 if test -z "$ac_err"; then
5361 eval "ac_cv_header_$ac_safe=yes"
5364 echo "configure: failed program was:" >&5
5365 cat conftest.$ac_ext >&5
5367 eval "ac_cv_header_$ac_safe=no"
5370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5371 echo "$ac_t""yes" 1>&6
5372 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5373 { test "$extra_verbose" = "yes" && cat << EOF
5376 cat >> confdefs.h <<EOF
5377 #define $ac_tr_hdr 1
5382 echo "$ac_t""no" 1>&6
5387 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5388 echo "configure:5389: checking for main in -lxml" >&5
5389 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5391 xe_check_libs=" -lxml "
5392 cat > conftest.$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5400 if { (eval echo configure:5401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5402 eval "ac_cv_lib_$ac_lib_var=yes"
5404 echo "configure: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5407 eval "ac_cv_lib_$ac_lib_var=no"
5412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5413 echo "$ac_t""yes" 1>&6
5414 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5416 echo "$ac_t""no" 1>&6
5421 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5422 echo "configure:5423: checking for main in -lglade" >&5
5423 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5425 xe_check_libs=" -lglade "
5426 cat > conftest.$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5434 if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5436 eval "ac_cv_lib_$ac_lib_var=yes"
5438 echo "configure: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5441 eval "ac_cv_lib_$ac_lib_var=no"
5446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5447 echo "$ac_t""yes" 1>&6
5448 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5450 echo "$ac_t""no" 1>&6
5455 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5456 echo "configure:5457: checking for main in -lglade-gnome" >&5
5457 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5459 xe_check_libs=" -lglade-gnome "
5460 cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5468 if { (eval echo configure:5469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5470 eval "ac_cv_lib_$ac_lib_var=yes"
5472 echo "configure: failed program was:" >&5
5473 cat conftest.$ac_ext >&5
5475 eval "ac_cv_lib_$ac_lib_var=no"
5480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5481 echo "$ac_t""yes" 1>&6
5482 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5484 echo "$ac_t""no" 1>&6
5488 cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5491 #include <glade/glade-xml.h>
5493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5494 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5496 echo "$ac_t""yes" 1>&6
5497 { test "$extra_verbose" = "yes" && cat << \EOF
5498 Defining LIBGLADE_XML_TXTDOMAIN = 1
5500 cat >> confdefs.h <<\EOF
5501 #define LIBGLADE_XML_TXTDOMAIN 1
5507 echo "$ac_t""no" 1>&6
5511 CFLAGS="${OLD_CFLAGS}"
5512 CPPFLAGS="${OLD_CPPFLAGS}"
5513 LDFLAGS="${OLD_LDFLAGS}"
5517 if test "$with_x11" != "no"; then
5518 test "$x_includes $x_libraries" != "NONE NONE" && \
5519 window_system=x11 with_x11=yes
5522 if test "$x_includes $x_libraries" = "NONE NONE" \
5523 -a -n "$OPENWINHOME" \
5524 -a "$OPENWINHOME" != "/usr/openwin" \
5525 -a -d "$OPENWINHOME"; then
5526 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5527 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5528 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5531 if test "$x_includes" = "NONE"; then
5532 for dir in "/usr/X11" "/usr/X11R6"; do
5533 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5537 if test "$x_libraries" = "NONE"; then
5538 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5539 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5543 # If we find X, set shell vars x_includes and x_libraries to the
5544 # paths, otherwise set no_x=yes.
5545 # Uses ac_ vars as temps to allow command line to override cache and checks.
5546 # --without-x overrides everything else, but does not touch the cache.
5547 echo $ac_n "checking for X""... $ac_c" 1>&6
5548 echo "configure:5549: checking for X" >&5
5550 # Check whether --with-x or --without-x was given.
5551 if test "${with_x+set}" = set; then
5556 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5557 if test "x$with_x" = xno; then
5558 # The user explicitly disabled X.
5561 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5562 # Both variables are already set.
5566 # One or both of the vars are not set, and there is no cached value.
5567 ac_x_includes=NO ac_x_libraries=NO
5569 if mkdir conftestdir; then
5571 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5572 cat > Imakefile <<'EOF'
5574 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5576 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5577 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5578 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5579 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5580 for ac_extension in a so sl; do
5581 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5582 test -f $ac_im_libdir/libX11.$ac_extension; then
5583 ac_im_usrlibdir=$ac_im_libdir; break
5586 # Screen out bogus values from the imake configuration. They are
5587 # bogus both because they are the default anyway, and because
5588 # using them would break gcc on systems where it needs fixed includes.
5589 case "$ac_im_incroot" in
5591 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5593 case "$ac_im_usrlibdir" in
5595 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5602 if test "$ac_x_includes" = NO; then
5603 # Guess where to find include files, by looking for this one X11 .h file.
5604 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5606 # First, try using that file with no special directory specified.
5607 cat > conftest.$ac_ext <<EOF
5608 #line 5609 "configure"
5609 #include "confdefs.h"
5610 #include <$x_direct_test_include>
5612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5613 { (eval echo configure:5614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5615 if test -z "$ac_err"; then
5617 # We can compile using X headers with no special include directory.
5621 echo "configure: failed program was:" >&5
5622 cat conftest.$ac_ext >&5
5624 # Look for the header file in a standard set of common directories.
5625 # Check X11 before X11Rn because it is often a symlink to the current release.
5628 /usr/X11R6/include \
5629 /usr/X11R5/include \
5630 /usr/X11R4/include \
5633 /usr/include/X11R6 \
5634 /usr/include/X11R5 \
5635 /usr/include/X11R4 \
5637 /usr/local/X11/include \
5638 /usr/local/X11R6/include \
5639 /usr/local/X11R5/include \
5640 /usr/local/X11R4/include \
5642 /usr/local/include/X11 \
5643 /usr/local/include/X11R6 \
5644 /usr/local/include/X11R5 \
5645 /usr/local/include/X11R4 \
5649 /usr/XFree86/include/X11 \
5652 /usr/local/include \
5653 /usr/unsupported/include \
5654 /usr/athena/include \
5655 /usr/local/x11r5/include \
5656 /usr/lpp/Xamples/include \
5658 /usr/openwin/include \
5659 /usr/openwin/share/include \
5662 if test -r "$ac_dir/$x_direct_test_include"; then
5663 ac_x_includes=$ac_dir
5669 fi # $ac_x_includes = NO
5671 if test "$ac_x_libraries" = NO; then
5672 # Check for the libraries.
5674 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5675 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5677 # See if we find them without any special options.
5678 # Don't add to $LIBS permanently.
5679 ac_save_LIBS="$LIBS"
5680 LIBS="-l$x_direct_test_library $LIBS"
5681 cat > conftest.$ac_ext <<EOF
5682 #line 5683 "configure"
5683 #include "confdefs.h"
5686 ${x_direct_test_function}()
5689 if { (eval echo configure:5690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5691 LIBS="$ac_save_LIBS"
5692 # We can link X programs with no special library path.
5695 echo "configure: failed program was:" >&5
5696 cat conftest.$ac_ext >&5
5698 LIBS="$ac_save_LIBS"
5699 # First see if replacing the include by lib works.
5700 # Check X11 before X11Rn because it is often a symlink to the current release.
5701 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5712 /usr/local/X11/lib \
5713 /usr/local/X11R6/lib \
5714 /usr/local/X11R5/lib \
5715 /usr/local/X11R4/lib \
5717 /usr/local/lib/X11 \
5718 /usr/local/lib/X11R6 \
5719 /usr/local/lib/X11R5 \
5720 /usr/local/lib/X11R4 \
5724 /usr/XFree86/lib/X11 \
5728 /usr/unsupported/lib \
5730 /usr/local/x11r5/lib \
5731 /usr/lpp/Xamples/lib \
5735 /usr/openwin/share/lib \
5738 for ac_extension in a so sl; do
5739 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5740 ac_x_libraries=$ac_dir
5747 fi # $ac_x_libraries = NO
5749 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5750 # Didn't find X anywhere. Cache the known absence of X.
5751 ac_cv_have_x="have_x=no"
5753 # Record where we found X for the cache.
5754 ac_cv_have_x="have_x=yes \
5755 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5758 eval "$ac_cv_have_x"
5761 if test "$have_x" != yes; then
5762 echo "$ac_t""$have_x" 1>&6
5765 # If each of the values was on the command line, it overrides each guess.
5766 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5767 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5768 # Update the cache value to reflect the command line values.
5769 ac_cv_have_x="have_x=yes \
5770 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5771 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5774 if test "$no_x" = yes; then
5775 # Not all programs may use this symbol, but it does not hurt to define it.
5776 { test "$extra_verbose" = "yes" && cat << \EOF
5777 Defining X_DISPLAY_MISSING
5779 cat >> confdefs.h <<\EOF
5780 #define X_DISPLAY_MISSING 1
5784 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5786 if test -n "$x_includes"; then
5787 X_CFLAGS="$X_CFLAGS -I$x_includes"
5790 # It would also be nice to do this for all -L options, not just this one.
5791 if test -n "$x_libraries"; then
5792 X_LIBS="$X_LIBS -L$x_libraries"
5793 # For Solaris; some versions of Sun CC require a space after -R and
5794 # others require no space. Words are not sufficient . . . .
5795 case "`(uname -sr) 2>/dev/null`" in
5797 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5798 echo "configure:5799: checking whether -R must be followed by a space" >&5
5799 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5800 cat > conftest.$ac_ext <<EOF
5801 #line 5802 "configure"
5802 #include "confdefs.h"
5808 if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5812 echo "configure: failed program was:" >&5
5813 cat conftest.$ac_ext >&5
5818 if test $ac_R_nospace = yes; then
5819 echo "$ac_t""no" 1>&6
5820 X_LIBS="$X_LIBS -R$x_libraries"
5822 LIBS="$ac_xsave_LIBS -R $x_libraries"
5823 cat > conftest.$ac_ext <<EOF
5824 #line 5825 "configure"
5825 #include "confdefs.h"
5831 if { (eval echo configure:5832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5835 echo "configure: failed program was:" >&5
5836 cat conftest.$ac_ext >&5
5841 if test $ac_R_space = yes; then
5842 echo "$ac_t""yes" 1>&6
5843 X_LIBS="$X_LIBS -R $x_libraries"
5845 echo "$ac_t""neither works" 1>&6
5848 LIBS="$ac_xsave_LIBS"
5852 # Check for system-dependent libraries X programs must link with.
5853 # Do this before checking for the system-independent R6 libraries
5854 # (-lICE), since we may need -lsocket or whatever for X linking.
5856 if test "$ISC" = yes; then
5857 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5859 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5860 # libraries were built with DECnet support. And karl@cs.umb.edu says
5861 # the Alpha needs dnet_stub (dnet does not exist).
5862 if test "$with_dnet" = "no" ; then
5863 ac_cv_lib_dnet_dnet_ntoa=no
5866 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5867 echo "configure:5868: checking for dnet_ntoa in -ldnet" >&5
5868 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5870 xe_check_libs=" -ldnet "
5871 cat > conftest.$ac_ext <<EOF
5872 #line 5873 "configure"
5873 #include "confdefs.h"
5874 /* Override any gcc2 internal prototype to avoid an error. */
5875 /* We use char because int might match the return type of a gcc2
5876 builtin and then its argument prototype would still apply. */
5883 if { (eval echo configure:5884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5885 eval "ac_cv_lib_$ac_lib_var=yes"
5887 echo "configure: failed program was:" >&5
5888 cat conftest.$ac_ext >&5
5890 eval "ac_cv_lib_$ac_lib_var=no"
5895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5896 echo "$ac_t""yes" 1>&6
5897 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5899 echo "$ac_t""no" 1>&6
5904 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5906 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5907 echo "configure:5908: checking for dnet_ntoa in -ldnet_stub" >&5
5908 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5910 xe_check_libs=" -ldnet_stub "
5911 cat > conftest.$ac_ext <<EOF
5912 #line 5913 "configure"
5913 #include "confdefs.h"
5914 /* Override any gcc2 internal prototype to avoid an error. */
5915 /* We use char because int might match the return type of a gcc2
5916 builtin and then its argument prototype would still apply. */
5923 if { (eval echo configure:5924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5925 eval "ac_cv_lib_$ac_lib_var=yes"
5927 echo "configure: failed program was:" >&5
5928 cat conftest.$ac_ext >&5
5930 eval "ac_cv_lib_$ac_lib_var=no"
5935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5936 echo "$ac_t""yes" 1>&6
5937 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5939 echo "$ac_t""no" 1>&6
5945 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5946 # to get the SysV transport functions.
5947 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5949 # The nsl library prevents programs from opening the X display
5950 # on Irix 5.2, according to dickey@clark.net.
5951 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5952 echo "configure:5953: checking for gethostbyname" >&5
5954 cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure"
5956 #include "confdefs.h"
5957 /* System header to define __stub macros and hopefully few prototypes,
5958 which can conflict with char gethostbyname(); below. */
5960 /* Override any gcc2 internal prototype to avoid an error. */
5961 /* We use char because int might match the return type of a gcc2
5962 builtin and then its argument prototype would still apply. */
5963 char gethostbyname();
5967 /* The GNU C library defines this for functions which it implements
5968 to always fail with ENOSYS. Some functions are actually named
5969 something starting with __ and the normal name is an alias. */
5970 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5978 if { (eval echo configure:5979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5980 eval "ac_cv_func_gethostbyname=yes"
5982 echo "configure: failed program was:" >&5
5983 cat conftest.$ac_ext >&5
5985 eval "ac_cv_func_gethostbyname=no"
5989 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5990 echo "$ac_t""yes" 1>&6
5993 echo "$ac_t""no" 1>&6
5996 if test $ac_cv_func_gethostbyname = no; then
5998 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5999 echo "configure:6000: checking for gethostbyname in -lnsl" >&5
6000 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6002 xe_check_libs=" -lnsl "
6003 cat > conftest.$ac_ext <<EOF
6004 #line 6005 "configure"
6005 #include "confdefs.h"
6006 /* Override any gcc2 internal prototype to avoid an error. */
6007 /* We use char because int might match the return type of a gcc2
6008 builtin and then its argument prototype would still apply. */
6009 char gethostbyname();
6015 if { (eval echo configure:6016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6017 eval "ac_cv_lib_$ac_lib_var=yes"
6019 echo "configure: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6022 eval "ac_cv_lib_$ac_lib_var=no"
6027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6028 echo "$ac_t""yes" 1>&6
6029 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6031 echo "$ac_t""no" 1>&6
6037 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6038 # socket/setsockopt and other routines are undefined under SCO ODT
6039 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6040 # on later versions), says simon@lia.di.epfl.ch: it contains
6041 # gethostby* variants that don't use the nameserver (or something).
6042 # -lsocket must be given before -lnsl if both are needed.
6043 # We assume that if connect needs -lnsl, so does gethostbyname.
6044 echo $ac_n "checking for connect""... $ac_c" 1>&6
6045 echo "configure:6046: checking for connect" >&5
6047 cat > conftest.$ac_ext <<EOF
6048 #line 6049 "configure"
6049 #include "confdefs.h"
6050 /* System header to define __stub macros and hopefully few prototypes,
6051 which can conflict with char connect(); below. */
6053 /* Override any gcc2 internal prototype to avoid an error. */
6054 /* We use char because int might match the return type of a gcc2
6055 builtin and then its argument prototype would still apply. */
6060 /* The GNU C library defines this for functions which it implements
6061 to always fail with ENOSYS. Some functions are actually named
6062 something starting with __ and the normal name is an alias. */
6063 #if defined (__stub_connect) || defined (__stub___connect)
6071 if { (eval echo configure:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6073 eval "ac_cv_func_connect=yes"
6075 echo "configure: failed program was:" >&5
6076 cat conftest.$ac_ext >&5
6078 eval "ac_cv_func_connect=no"
6082 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6083 echo "$ac_t""yes" 1>&6
6086 echo "$ac_t""no" 1>&6
6089 if test $ac_cv_func_connect = no; then
6091 xe_msg_checking="for connect in -lsocket"
6092 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
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 socket'_'connect | sed 'y%./+-%__p_%'`
6097 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
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. */
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 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6126 echo "$ac_t""no" 1>&6
6132 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6133 echo $ac_n "checking for remove""... $ac_c" 1>&6
6134 echo "configure:6135: checking for remove" >&5
6136 cat > conftest.$ac_ext <<EOF
6137 #line 6138 "configure"
6138 #include "confdefs.h"
6139 /* System header to define __stub macros and hopefully few prototypes,
6140 which can conflict with char remove(); below. */
6142 /* Override any gcc2 internal prototype to avoid an error. */
6143 /* We use char because int might match the return type of a gcc2
6144 builtin and then its argument prototype would still apply. */
6149 /* The GNU C library defines this for functions which it implements
6150 to always fail with ENOSYS. Some functions are actually named
6151 something starting with __ and the normal name is an alias. */
6152 #if defined (__stub_remove) || defined (__stub___remove)
6160 if { (eval echo configure:6161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6162 eval "ac_cv_func_remove=yes"
6164 echo "configure: failed program was:" >&5
6165 cat conftest.$ac_ext >&5
6167 eval "ac_cv_func_remove=no"
6171 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6172 echo "$ac_t""yes" 1>&6
6175 echo "$ac_t""no" 1>&6
6178 if test $ac_cv_func_remove = no; then
6180 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6181 echo "configure:6182: checking for remove in -lposix" >&5
6182 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6184 xe_check_libs=" -lposix "
6185 cat > conftest.$ac_ext <<EOF
6186 #line 6187 "configure"
6187 #include "confdefs.h"
6188 /* Override any gcc2 internal prototype to avoid an error. */
6189 /* We use char because int might match the return type of a gcc2
6190 builtin and then its argument prototype would still apply. */
6197 if { (eval echo configure:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6199 eval "ac_cv_lib_$ac_lib_var=yes"
6201 echo "configure: failed program was:" >&5
6202 cat conftest.$ac_ext >&5
6204 eval "ac_cv_lib_$ac_lib_var=no"
6209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6210 echo "$ac_t""yes" 1>&6
6211 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6213 echo "$ac_t""no" 1>&6
6219 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6220 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6221 echo "configure:6222: checking for shmat" >&5
6223 cat > conftest.$ac_ext <<EOF
6224 #line 6225 "configure"
6225 #include "confdefs.h"
6226 /* System header to define __stub macros and hopefully few prototypes,
6227 which can conflict with char shmat(); below. */
6229 /* Override any gcc2 internal prototype to avoid an error. */
6230 /* We use char because int might match the return type of a gcc2
6231 builtin and then its argument prototype would still apply. */
6236 /* The GNU C library defines this for functions which it implements
6237 to always fail with ENOSYS. Some functions are actually named
6238 something starting with __ and the normal name is an alias. */
6239 #if defined (__stub_shmat) || defined (__stub___shmat)
6247 if { (eval echo configure:6248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6249 eval "ac_cv_func_shmat=yes"
6251 echo "configure: failed program was:" >&5
6252 cat conftest.$ac_ext >&5
6254 eval "ac_cv_func_shmat=no"
6258 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6259 echo "$ac_t""yes" 1>&6
6262 echo "$ac_t""no" 1>&6
6265 if test $ac_cv_func_shmat = no; then
6267 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6268 echo "configure:6269: checking for shmat in -lipc" >&5
6269 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6271 xe_check_libs=" -lipc "
6272 cat > conftest.$ac_ext <<EOF
6273 #line 6274 "configure"
6274 #include "confdefs.h"
6275 /* Override any gcc2 internal prototype to avoid an error. */
6276 /* We use char because int might match the return type of a gcc2
6277 builtin and then its argument prototype would still apply. */
6284 if { (eval echo configure:6285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6286 eval "ac_cv_lib_$ac_lib_var=yes"
6288 echo "configure: failed program was:" >&5
6289 cat conftest.$ac_ext >&5
6291 eval "ac_cv_lib_$ac_lib_var=no"
6296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6297 echo "$ac_t""yes" 1>&6
6298 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6300 echo "$ac_t""no" 1>&6
6307 # Check for libraries that X11R6 Xt/Xaw programs need.
6308 ac_save_LDFLAGS="$LDFLAGS"
6309 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6310 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6311 # check for ICE first), but we must link in the order -lSM -lICE or
6312 # we get undefined symbols. So assume we have SM if we have ICE.
6313 # These have to be linked with before -lX11, unlike the other
6314 # libraries we check for below, so use a different variable.
6315 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6317 xe_msg_checking="for IceConnectionNumber in -lICE"
6318 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6319 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6320 echo "configure:6321: checking "$xe_msg_checking"" >&5
6321 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6323 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6324 cat > conftest.$ac_ext <<EOF
6325 #line 6326 "configure"
6326 #include "confdefs.h"
6327 /* Override any gcc2 internal prototype to avoid an error. */
6328 /* We use char because int might match the return type of a gcc2
6329 builtin and then its argument prototype would still apply. */
6330 char IceConnectionNumber();
6333 IceConnectionNumber()
6336 if { (eval echo configure:6337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6338 eval "ac_cv_lib_$ac_lib_var=yes"
6340 echo "configure: failed program was:" >&5
6341 cat conftest.$ac_ext >&5
6343 eval "ac_cv_lib_$ac_lib_var=no"
6348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6349 echo "$ac_t""yes" 1>&6
6350 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6352 echo "$ac_t""no" 1>&6
6356 LDFLAGS="$ac_save_LDFLAGS"
6359 # Autoconf claims to find X library and include dirs for us.
6360 if test "$no_x" = "yes"
6361 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6362 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6367 if test "$with_x11" = "yes"; then
6368 { test "$extra_verbose" = "yes" && cat << \EOF
6369 Defining HAVE_X_WINDOWS
6371 cat >> confdefs.h <<\EOF
6372 #define HAVE_X_WINDOWS 1
6376 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6377 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6380 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6381 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6382 echo "configure:6383: checking for Xm/Xm.h" >&5
6384 cat > conftest.$ac_ext <<EOF
6385 #line 6386 "configure"
6386 #include "confdefs.h"
6389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6390 { (eval echo configure:6391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6392 if test -z "$ac_err"; then
6394 eval "ac_cv_header_$ac_safe=yes"
6397 echo "configure: failed program was:" >&5
6398 cat conftest.$ac_ext >&5
6400 eval "ac_cv_header_$ac_safe=no"
6403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6404 echo "$ac_t""yes" 1>&6
6406 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6407 echo "configure:6408: checking for XmStringFree in -lXm" >&5
6408 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6410 xe_check_libs=" -lXm "
6411 cat > conftest.$ac_ext <<EOF
6412 #line 6413 "configure"
6413 #include "confdefs.h"
6414 /* Override any gcc2 internal prototype to avoid an error. */
6415 /* We use char because int might match the return type of a gcc2
6416 builtin and then its argument prototype would still apply. */
6417 char XmStringFree();
6423 if { (eval echo configure:6424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6425 eval "ac_cv_lib_$ac_lib_var=yes"
6427 echo "configure: failed program was:" >&5
6428 cat conftest.$ac_ext >&5
6430 eval "ac_cv_lib_$ac_lib_var=no"
6435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6436 echo "$ac_t""yes" 1>&6
6439 echo "$ac_t""no" 1>&6
6444 echo "$ac_t""no" 1>&6
6448 if test "$got_motif" != "yes"; then
6449 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" \
6450 "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6451 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6452 if test -d "$lib_dir" -a -d "$inc_dir"; then
6453 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6454 x_libraries="$lib_dir $x_libraries"
6455 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6457 case "$x_includes" in "$inc_dir"* ) ;; *)
6458 x_includes="$inc_dir $x_includes"
6459 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6465 for rel in "X11R6" "X11R5" "X11R4"; do
6466 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6467 if test -d "$lib_dir" -a -d "$inc_dir"; then
6468 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6469 x_libraries="$x_libraries $lib_dir"
6470 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6472 case "$x_includes" in "$inc_dir"* ) ;; *)
6473 x_includes="$x_includes $inc_dir"
6474 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6480 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 ;;
6483 ld_switch_x_site="$X_LIBS"
6486 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6487 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6488 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6490 runpath="" runpath_dirs=""
6491 if test -n "$LD_RUN_PATH"; then
6492 runpath="$LD_RUN_PATH"
6493 elif test "$GCC" = "yes"; then
6494 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6495 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6496 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6497 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6498 case "$arg" in P,* | -L* | -R* )
6499 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6501 xe_runpath_dir="$dir"
6502 test "$xe_runpath_dir" != "/lib" -a \
6503 "$xe_runpath_dir" != "/usr/lib" -a \
6504 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6505 eval "$xe_add_unique_runpath_dir"
6510 ld_switch_run="$ld_switch_run_save"
6513 for arg in $ld_switch_site $ld_switch_x_site; do
6514 case "$arg" in -L*) {
6515 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6516 test "$xe_runpath_dir" != "/lib" -a \
6517 "$xe_runpath_dir" != "/usr/lib" -a \
6518 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6519 eval "$xe_add_unique_runpath_dir"
6522 if test "$opsys $need_motif" = "sol2 yes"; then
6523 xe_runpath_dir="/opt/SUNWdt/lib";
6524 eval "$xe_add_unique_runpath_dir";
6527 if test -n "$runpath"; then
6528 ld_switch_run="${dash_r}${runpath}"
6530 if test "$GCC" = "yes"; then
6531 set x $ld_switch_run; shift; ld_switch_run=""
6532 while test -n "$1"; do
6534 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6535 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6537 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6542 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6547 if test "$extra_verbose" = "yes"; then
6548 echo; echo "X11 compilation variables:"
6549 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6554 if test "$x_includes" != NONE; then
6555 for i in $x_includes; do
6556 if test -d "$i/bitmaps"; then
6557 bitmapdirs="$i/bitmaps:$bitmapdirs"
6559 if test -d "$i/X11/bitmaps"; then
6560 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6563 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6565 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6566 Defining BITMAPDIR = "$bitmapdirs"
6568 cat >> confdefs.h <<EOF
6569 #define BITMAPDIR "$bitmapdirs"
6574 echo "checking for X defines extracted by xmkmf" 1>&6
6575 echo "configure:6576: checking for X defines extracted by xmkmf" >&5
6577 if mkdir conftestdir; then
6579 cat > Imakefile <<'EOF'
6581 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6583 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6584 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6585 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6589 for word in $xmkmf_defines; do
6593 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6595 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6598 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6599 if test "$val" = "1"
6600 then { test "$extra_verbose" = "yes" && cat << EOF
6603 cat >> confdefs.h <<EOF
6608 else { test "$extra_verbose" = "yes" && cat << EOF
6609 Defining $sym = $val
6611 cat >> confdefs.h <<EOF
6622 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6623 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6624 echo "configure:6625: checking for X11/Intrinsic.h" >&5
6626 cat > conftest.$ac_ext <<EOF
6627 #line 6628 "configure"
6628 #include "confdefs.h"
6629 #include <X11/Intrinsic.h>
6631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6632 { (eval echo configure:6633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6634 if test -z "$ac_err"; then
6636 eval "ac_cv_header_$ac_safe=yes"
6639 echo "configure: failed program was:" >&5
6640 cat conftest.$ac_ext >&5
6642 eval "ac_cv_header_$ac_safe=no"
6645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6646 echo "$ac_t""yes" 1>&6
6649 echo "$ac_t""no" 1>&6
6650 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6655 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6656 echo "configure:6657: checking for XOpenDisplay in -lX11" >&5
6657 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6659 xe_check_libs=" -lX11 "
6660 cat > conftest.$ac_ext <<EOF
6661 #line 6662 "configure"
6662 #include "confdefs.h"
6663 /* Override any gcc2 internal prototype to avoid an error. */
6664 /* We use char because int might match the return type of a gcc2
6665 builtin and then its argument prototype would still apply. */
6666 char XOpenDisplay();
6672 if { (eval echo configure:6673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6674 eval "ac_cv_lib_$ac_lib_var=yes"
6676 echo "configure: failed program was:" >&5
6677 cat conftest.$ac_ext >&5
6679 eval "ac_cv_lib_$ac_lib_var=no"
6684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6685 echo "$ac_t""yes" 1>&6
6688 echo "$ac_t""no" 1>&6
6692 if test "$have_lib_x11" != "yes"; then
6694 xe_msg_checking="for XGetFontProperty in -lX11"
6695 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6696 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6697 echo "configure:6698: checking "$xe_msg_checking"" >&5
6698 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6700 xe_check_libs=" -lX11 -b i486-linuxaout"
6701 cat > conftest.$ac_ext <<EOF
6702 #line 6703 "configure"
6703 #include "confdefs.h"
6704 /* Override any gcc2 internal prototype to avoid an error. */
6705 /* We use char because int might match the return type of a gcc2
6706 builtin and then its argument prototype would still apply. */
6707 char XGetFontProperty();
6713 if { (eval echo configure:6714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6715 eval "ac_cv_lib_$ac_lib_var=yes"
6717 echo "configure: failed program was:" >&5
6718 cat conftest.$ac_ext >&5
6720 eval "ac_cv_lib_$ac_lib_var=no"
6725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6726 echo "$ac_t""yes" 1>&6
6727 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6729 echo "$ac_t""no" 1>&6
6730 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6736 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6739 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6740 echo "configure:6741: checking for XShapeSelectInput in -lXext" >&5
6741 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6743 xe_check_libs=" -lXext "
6744 cat > conftest.$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6747 /* Override any gcc2 internal prototype to avoid an error. */
6748 /* We use char because int might match the return type of a gcc2
6749 builtin and then its argument prototype would still apply. */
6750 char XShapeSelectInput();
6756 if { (eval echo configure:6757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6758 eval "ac_cv_lib_$ac_lib_var=yes"
6760 echo "configure: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6763 eval "ac_cv_lib_$ac_lib_var=no"
6768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6769 echo "$ac_t""yes" 1>&6
6770 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6772 echo "$ac_t""no" 1>&6
6778 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6779 echo "configure:6780: checking for XtOpenDisplay in -lXt" >&5
6780 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6782 xe_check_libs=" -lXt "
6783 cat > conftest.$ac_ext <<EOF
6784 #line 6785 "configure"
6785 #include "confdefs.h"
6786 /* Override any gcc2 internal prototype to avoid an error. */
6787 /* We use char because int might match the return type of a gcc2
6788 builtin and then its argument prototype would still apply. */
6789 char XtOpenDisplay();
6795 if { (eval echo configure:6796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6797 eval "ac_cv_lib_$ac_lib_var=yes"
6799 echo "configure: failed program was:" >&5
6800 cat conftest.$ac_ext >&5
6802 eval "ac_cv_lib_$ac_lib_var=no"
6807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6808 echo "$ac_t""yes" 1>&6
6809 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6811 echo "$ac_t""no" 1>&6
6812 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6817 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6818 echo "configure:6819: checking the version of X11 being used" >&5
6819 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure"
6821 #include "confdefs.h"
6822 #include <X11/Intrinsic.h>
6823 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6825 if { (eval echo configure:6826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6827 ./conftest foobar; x11_release=$?
6830 echo "configure: failed program was:" >&5
6831 cat conftest.$ac_ext >&5
6836 echo "$ac_t""R${x11_release}" 1>&6
6837 { test "$extra_verbose" = "yes" && cat << EOF
6838 Defining THIS_IS_X11R${x11_release}
6840 cat >> confdefs.h <<EOF
6841 #define THIS_IS_X11R${x11_release} 1
6846 if test "${x11_release}" = "4"; then
6847 case "$with_widgets" in
6848 "" | "no") with_widgets=no ;;
6849 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6853 for ac_func in XConvertCase XtRegisterDrawable
6855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6856 echo "configure:6857: checking for $ac_func" >&5
6858 cat > conftest.$ac_ext <<EOF
6859 #line 6860 "configure"
6860 #include "confdefs.h"
6861 /* System header to define __stub macros and hopefully few prototypes,
6862 which can conflict with char $ac_func(); below. */
6864 /* Override any gcc2 internal prototype to avoid an error. */
6865 /* We use char because int might match the return type of a gcc2
6866 builtin and then its argument prototype would still apply. */
6871 /* The GNU C library defines this for functions which it implements
6872 to always fail with ENOSYS. Some functions are actually named
6873 something starting with __ and the normal name is an alias. */
6874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6882 if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6884 eval "ac_cv_func_$ac_func=yes"
6886 echo "configure: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6889 eval "ac_cv_func_$ac_func=no"
6893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6894 echo "$ac_t""yes" 1>&6
6895 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6896 { test "$extra_verbose" = "yes" && cat << EOF
6897 Defining $ac_tr_func
6899 cat >> confdefs.h <<EOF
6900 #define $ac_tr_func 1
6905 echo "$ac_t""no" 1>&6
6910 for ac_hdr in X11/Xlocale.h
6912 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6914 echo "configure:6915: checking for $ac_hdr" >&5
6916 cat > conftest.$ac_ext <<EOF
6917 #line 6918 "configure"
6918 #include "confdefs.h"
6921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6922 { (eval echo configure:6923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6924 if test -z "$ac_err"; then
6926 eval "ac_cv_header_$ac_safe=yes"
6929 echo "configure: failed program was:" >&5
6930 cat conftest.$ac_ext >&5
6932 eval "ac_cv_header_$ac_safe=no"
6935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6936 echo "$ac_t""yes" 1>&6
6937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6938 { test "$extra_verbose" = "yes" && cat << EOF
6941 cat >> confdefs.h <<EOF
6942 #define $ac_tr_hdr 1
6947 echo "$ac_t""no" 1>&6
6952 for ac_func in XRegisterIMInstantiateCallback
6954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6955 echo "configure:6956: checking for $ac_func" >&5
6957 cat > conftest.$ac_ext <<EOF
6958 #line 6959 "configure"
6959 #include "confdefs.h"
6960 /* System header to define __stub macros and hopefully few prototypes,
6961 which can conflict with char $ac_func(); below. */
6963 /* Override any gcc2 internal prototype to avoid an error. */
6964 /* We use char because int might match the return type of a gcc2
6965 builtin and then its argument prototype would still apply. */
6970 /* The GNU C library defines this for functions which it implements
6971 to always fail with ENOSYS. Some functions are actually named
6972 something starting with __ and the normal name is an alias. */
6973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6981 if { (eval echo configure:6982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6983 eval "ac_cv_func_$ac_func=yes"
6985 echo "configure: failed program was:" >&5
6986 cat conftest.$ac_ext >&5
6988 eval "ac_cv_func_$ac_func=no"
6992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6993 echo "$ac_t""yes" 1>&6
6994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6995 { test "$extra_verbose" = "yes" && cat << EOF
6996 Defining $ac_tr_func
6998 cat >> confdefs.h <<EOF
6999 #define $ac_tr_func 1
7004 echo "$ac_t""no" 1>&6
7008 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
7009 echo "configure:7010: checking for standard XRegisterIMInstantiateCallback prototype" >&5
7010 cat > conftest.$ac_ext <<EOF
7011 #line 7012 "configure"
7012 #include "confdefs.h"
7014 #define NeedFunctionPrototypes 1
7015 #include <X11/Xlib.h>
7016 extern Bool XRegisterIMInstantiateCallback(
7017 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
7023 if { (eval echo configure:7024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7025 echo "$ac_t""yes" 1>&6
7027 echo "configure: failed program was:" >&5
7028 cat conftest.$ac_ext >&5
7030 echo "$ac_t""no" 1>&6
7031 { test "$extra_verbose" = "yes" && cat << \EOF
7032 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
7034 cat >> confdefs.h <<\EOF
7035 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
7042 test -z "$with_xmu" && {
7043 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
7044 echo "configure:7045: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
7045 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
7047 xe_check_libs=" -lXmu "
7048 cat > conftest.$ac_ext <<EOF
7049 #line 7050 "configure"
7050 #include "confdefs.h"
7051 /* Override any gcc2 internal prototype to avoid an error. */
7052 /* We use char because int might match the return type of a gcc2
7053 builtin and then its argument prototype would still apply. */
7054 char XmuReadBitmapDataFromFile();
7057 XmuReadBitmapDataFromFile()
7060 if { (eval echo configure:7061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7062 eval "ac_cv_lib_$ac_lib_var=yes"
7064 echo "configure: failed program was:" >&5
7065 cat conftest.$ac_ext >&5
7067 eval "ac_cv_lib_$ac_lib_var=no"
7072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7073 echo "$ac_t""yes" 1>&6
7076 echo "$ac_t""no" 1>&6
7081 if test "$with_xmu" = "no"; then
7082 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
7083 echo " xemacs will be linked with \"xmu.o\""
7086 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
7087 { test "$extra_verbose" = "yes" && cat << \EOF
7090 cat >> confdefs.h <<\EOF
7098 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
7099 echo "configure:7100: checking for main in -lXbsd" >&5
7100 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
7102 xe_check_libs=" -lXbsd "
7103 cat > conftest.$ac_ext <<EOF
7104 #line 7105 "configure"
7105 #include "confdefs.h"
7111 if { (eval echo configure:7112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7113 eval "ac_cv_lib_$ac_lib_var=yes"
7115 echo "configure: failed program was:" >&5
7116 cat conftest.$ac_ext >&5
7118 eval "ac_cv_lib_$ac_lib_var=no"
7123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7124 echo "$ac_t""yes" 1>&6
7125 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
7127 echo "$ac_t""no" 1>&6
7132 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
7133 if test "$GCC" = "yes"; then
7134 echo $ac_n "checking for name of AIX gcc threads option""... $ac_c" 1>&6
7135 echo "configure:7136: checking for name of AIX gcc threads option" >&5
7136 case `$CC -v --help 2>&1` in
7137 *-mthreads*) aix_threads=-mthreads ;;
7138 *) aix_threads=-pthread ;;
7140 echo "$ac_t""$aix_threads" 1>&6
7141 X_CFLAGS="$aix_threads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$aix_threads\" to \$X_CFLAGS"; fi
7142 libs_x="$aix_threads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$aix_threads\" to \$libs_x"; fi
7144 case "$CC" in *_r) : ;;
7148 echo $ac_n "checking size of short""... $ac_c" 1>&6
7149 echo "configure:7150: checking size of short" >&5
7151 cat > conftest.$ac_ext <<EOF
7152 #line 7153 "configure"
7153 #include "confdefs.h"
7157 FILE *f=fopen("conftestval", "w");
7159 fprintf(f, "%d\n", sizeof(short));
7163 if { (eval echo configure:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7165 ac_cv_sizeof_short=`cat conftestval`
7168 echo "configure: failed program was:" >&5
7169 cat conftest.$ac_ext >&5
7171 ac_cv_sizeof_short=0
7174 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7175 { test "$extra_verbose" = "yes" && cat << EOF
7176 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
7178 cat >> confdefs.h <<EOF
7179 #define SIZEOF_SHORT $ac_cv_sizeof_short
7184 test "$ac_cv_sizeof_short" = 0 && CC="$xe_save_CC" ;;
7190 if test "$with_msw" != "no"; then
7191 echo "checking for MS-Windows" 1>&6
7192 echo "configure:7193: checking for MS-Windows" >&5
7194 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7195 echo "configure:7196: checking for main in -lgdi32" >&5
7196 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7198 xe_check_libs=" -lgdi32 "
7199 cat > conftest.$ac_ext <<EOF
7200 #line 7201 "configure"
7201 #include "confdefs.h"
7207 if { (eval echo configure:7208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7209 eval "ac_cv_lib_$ac_lib_var=yes"
7211 echo "configure: failed program was:" >&5
7212 cat conftest.$ac_ext >&5
7214 eval "ac_cv_lib_$ac_lib_var=no"
7219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7220 echo "$ac_t""yes" 1>&6
7223 echo "$ac_t""no" 1>&6
7227 if test "$with_msw" = "yes"; then
7228 { test "$extra_verbose" = "yes" && cat << \EOF
7229 Defining HAVE_MS_WINDOWS
7231 cat >> confdefs.h <<\EOF
7232 #define HAVE_MS_WINDOWS 1
7237 if test "$with_netinstall" = "yes"; then
7238 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7239 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7240 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7243 install_pp="$srcdir/lib-src/installexe.sh"
7244 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lkernel32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lkernel32 -lwinspool\" to \$libs_system"; fi
7245 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7246 if test "$window_system" != x11; then
7248 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7249 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7250 echo " xemacs will be linked with \"scrollbar-msw.o\""
7252 test "$with_menubars" != "no" && with_menubars=msw \
7253 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7254 echo " xemacs will be linked with \"menubar-msw.o\""
7256 test "$with_toolbars" != "no" && with_toolbars=msw \
7257 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7258 echo " xemacs will be linked with \"toolbar-msw.o\""
7260 test "$with_dialogs" != "no" && with_dialogs=msw \
7261 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7262 echo " xemacs will be linked with \"dialog-msw.o\""
7264 test "$with_widgets" != "no" && with_widgets=msw
7266 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7267 echo " xemacs will be linked with \"scrollbar-msw.o\""
7269 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7270 echo " xemacs will be linked with \"menubar-msw.o\""
7272 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7273 echo " xemacs will be linked with \"toolbar-msw.o\""
7275 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7276 echo " xemacs will be linked with \"dialog-msw.o\""
7279 cat > conftest.$ac_ext <<EOF
7280 #line 7281 "configure"
7281 #include "confdefs.h"
7283 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7285 if { (eval echo configure:7286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7287 need_event_unixoid=yes; { test "$extra_verbose" = "yes" && cat << \EOF
7288 Defining HAVE_MSG_SELECT
7290 cat >> confdefs.h <<\EOF
7291 #define HAVE_MSG_SELECT 1
7297 echo "configure: failed program was:" >&5
7298 cat conftest.$ac_ext >&5
7301 with_file_coding=yes
7302 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
7303 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\""
7310 test -z "$window_system" && window_system="none"
7312 if test "$window_system" = "none"; then
7313 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7315 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7316 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7318 eval "with_${feature}=no"
7321 test -z "$with_toolbars" && with_toolbars=yes
7324 if test "$with_msw" != "yes"; then
7325 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7327 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7328 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7330 eval "with_${feature}=no"
7336 if test "$with_x11" != "yes"; then
7337 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7339 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7340 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7342 eval "with_${feature}=no"
7346 if test "$with_x11" = "yes"; then
7347 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7348 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7349 echo "configure:7350: checking for X11/extensions/shape.h" >&5
7351 cat > conftest.$ac_ext <<EOF
7352 #line 7353 "configure"
7353 #include "confdefs.h"
7354 #include <X11/extensions/shape.h>
7356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7357 { (eval echo configure:7358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7358 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7359 if test -z "$ac_err"; then
7361 eval "ac_cv_header_$ac_safe=yes"
7364 echo "configure: failed program was:" >&5
7365 cat conftest.$ac_ext >&5
7367 eval "ac_cv_header_$ac_safe=no"
7370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7371 echo "$ac_t""yes" 1>&6
7373 { test "$extra_verbose" = "yes" && cat << \EOF
7374 Defining HAVE_BALLOON_HELP
7376 cat >> confdefs.h <<\EOF
7377 #define HAVE_BALLOON_HELP 1
7381 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7382 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7385 echo "$ac_t""no" 1>&6
7392 case "$window_system" in
7393 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7394 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7397 test "$with_gnome" = "yes" && echo " Using GNOME."
7398 test "$with_gnome" = "no" && echo " Using GTK."
7400 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7403 case "$x_libraries" in *X11R4* )
7404 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7405 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7408 echo "checking for WM_COMMAND option" 1>&6
7409 echo "configure:7410: checking for WM_COMMAND option" >&5;
7410 if test "$with_wmcommand" != "no"; then
7411 { test "$extra_verbose" = "yes" && cat << \EOF
7412 Defining HAVE_WMCOMMAND
7414 cat >> confdefs.h <<\EOF
7415 #define HAVE_WMCOMMAND 1
7421 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7422 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7423 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7424 echo "configure:7425: checking for X11/Xauth.h" >&5
7426 cat > conftest.$ac_ext <<EOF
7427 #line 7428 "configure"
7428 #include "confdefs.h"
7429 #include <X11/Xauth.h>
7431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7432 { (eval echo configure:7433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7434 if test -z "$ac_err"; then
7436 eval "ac_cv_header_$ac_safe=yes"
7439 echo "configure: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7442 eval "ac_cv_header_$ac_safe=no"
7445 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7446 echo "$ac_t""yes" 1>&6
7449 echo "$ac_t""no" 1>&6
7453 test -z "$with_xauth" && {
7454 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7455 echo "configure:7456: checking for XauGetAuthByAddr in -lXau" >&5
7456 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7458 xe_check_libs=" -lXau "
7459 cat > conftest.$ac_ext <<EOF
7460 #line 7461 "configure"
7461 #include "confdefs.h"
7462 /* Override any gcc2 internal prototype to avoid an error. */
7463 /* We use char because int might match the return type of a gcc2
7464 builtin and then its argument prototype would still apply. */
7465 char XauGetAuthByAddr();
7471 if { (eval echo configure:7472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7473 eval "ac_cv_lib_$ac_lib_var=yes"
7475 echo "configure: failed program was:" >&5
7476 cat conftest.$ac_ext >&5
7478 eval "ac_cv_lib_$ac_lib_var=no"
7483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7484 echo "$ac_t""yes" 1>&6
7487 echo "$ac_t""no" 1>&6
7492 test -z "$with_xauth" && with_xauth=yes
7493 if test "$with_xauth" = "yes"; then
7494 { test "$extra_verbose" = "yes" && cat << \EOF
7497 cat >> confdefs.h <<\EOF
7498 #define HAVE_XAUTH 1
7504 for W in $GTK_LIBS $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
7512 if test "$with_tooltalk" != "no" ; then
7513 for dir in "" "Tt/" "desktop/" ; do
7514 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7515 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7516 echo "configure:7517: checking for ${dir}tt_c.h" >&5
7518 cat > conftest.$ac_ext <<EOF
7519 #line 7520 "configure"
7520 #include "confdefs.h"
7521 #include <${dir}tt_c.h>
7523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7524 { (eval echo configure:7525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7526 if test -z "$ac_err"; then
7528 eval "ac_cv_header_$ac_safe=yes"
7531 echo "configure: failed program was:" >&5
7532 cat conftest.$ac_ext >&5
7534 eval "ac_cv_header_$ac_safe=no"
7537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7538 echo "$ac_t""yes" 1>&6
7539 tt_c_h_file="${dir}tt_c.h"; break
7541 echo "$ac_t""no" 1>&6
7545 if test -z "$tt_c_h_file"; then
7546 if test "$with_tooltalk" = "yes"; then
7547 (echo "$progname: Usage error:"
7548 echo " " "Unable to find required tooltalk header files."
7549 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7554 if test "$with_tooltalk" != "no" ; then
7555 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7557 xe_msg_checking="for tt_message_create in -ltt"
7558 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7559 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7560 echo "configure:7561: checking "$xe_msg_checking"" >&5
7561 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7563 xe_check_libs=" -ltt $extra_libs"
7564 cat > conftest.$ac_ext <<EOF
7565 #line 7566 "configure"
7566 #include "confdefs.h"
7567 /* Override any gcc2 internal prototype to avoid an error. */
7568 /* We use char because int might match the return type of a gcc2
7569 builtin and then its argument prototype would still apply. */
7570 char tt_message_create();
7576 if { (eval echo configure:7577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7578 eval "ac_cv_lib_$ac_lib_var=yes"
7580 echo "configure: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7583 eval "ac_cv_lib_$ac_lib_var=no"
7588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7589 echo "$ac_t""yes" 1>&6
7590 tt_libs="-ltt $extra_libs"; break
7592 echo "$ac_t""no" 1>&6
7598 if test -z "$tt_libs"; then
7599 if test "$with_tooltalk" = "yes"; then
7600 (echo "$progname: Usage error:"
7601 echo " " "Unable to find required tooltalk libraries."
7602 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7607 test -z "$with_tooltalk" && with_tooltalk=yes
7608 if test "$with_tooltalk" = "yes"; then
7609 { test "$extra_verbose" = "yes" && cat << \EOF
7612 cat >> confdefs.h <<\EOF
7617 { test "$extra_verbose" = "yes" && cat << EOF
7618 Defining TT_C_H_FILE = "$tt_c_h_file"
7620 cat >> confdefs.h <<EOF
7621 #define TT_C_H_FILE "$tt_c_h_file"
7625 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7626 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7627 echo " xemacs will be linked with \"tooltalk.o\""
7631 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7632 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7633 echo "configure:7634: checking for Dt/Dt.h" >&5
7635 cat > conftest.$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7641 { (eval echo configure:7642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7643 if test -z "$ac_err"; then
7645 eval "ac_cv_header_$ac_safe=yes"
7648 echo "configure: failed program was:" >&5
7649 cat conftest.$ac_ext >&5
7651 eval "ac_cv_header_$ac_safe=no"
7654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7655 echo "$ac_t""yes" 1>&6
7658 echo "$ac_t""no" 1>&6
7662 test -z "$with_cde" && {
7663 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7664 echo "configure:7665: checking for DtDndDragStart in -lDtSvc" >&5
7665 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7667 xe_check_libs=" -lDtSvc "
7668 cat > conftest.$ac_ext <<EOF
7669 #line 7670 "configure"
7670 #include "confdefs.h"
7671 /* Override any gcc2 internal prototype to avoid an error. */
7672 /* We use char because int might match the return type of a gcc2
7673 builtin and then its argument prototype would still apply. */
7674 char DtDndDragStart();
7680 if { (eval echo configure:7681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7682 eval "ac_cv_lib_$ac_lib_var=yes"
7684 echo "configure: failed program was:" >&5
7685 cat conftest.$ac_ext >&5
7687 eval "ac_cv_lib_$ac_lib_var=no"
7692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7693 echo "$ac_t""yes" 1>&6
7696 echo "$ac_t""no" 1>&6
7701 test -z "$with_cde" && with_cde=yes
7702 if test "$with_dragndrop" = no; then
7703 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7706 if test "$with_cde" = "yes" ; then
7707 { test "$extra_verbose" = "yes" && cat << \EOF
7710 cat >> confdefs.h <<\EOF
7715 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7716 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7717 with_tooltalk=yes # CDE requires Tooltalk
7718 need_motif=yes # CDE requires Motif
7721 test "$window_system" != "x11" && with_offix=no
7722 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7723 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7726 if test "$with_dragndrop" = no; then
7727 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7730 if test "$with_cde" = yes; then
7731 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7734 test -z "$with_offix" && with_offix=no
7735 if test "$with_offix" = "yes"; then
7736 { test "$extra_verbose" = "yes" && cat << \EOF
7737 Defining HAVE_OFFIX_DND
7739 cat >> confdefs.h <<\EOF
7740 #define HAVE_OFFIX_DND 1
7744 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7745 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7747 if test "$with_gtk" = "yes"; then
7748 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7751 if test "$with_dragndrop" != "no" ; then
7752 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7753 echo "configure:7754: checking if drag and drop API is needed" >&5
7754 if test -n "$dragndrop_proto" ; then
7756 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7757 { test "$extra_verbose" = "yes" && cat << \EOF
7758 Defining HAVE_DRAGNDROP
7760 cat >> confdefs.h <<\EOF
7761 #define HAVE_DRAGNDROP 1
7765 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7768 echo "$ac_t""no" 1>&6
7772 echo "checking for LDAP" 1>&6
7773 echo "configure:7774: checking for LDAP" >&5
7774 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7775 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7776 echo "configure:7777: checking for ldap.h" >&5
7778 cat > conftest.$ac_ext <<EOF
7779 #line 7780 "configure"
7780 #include "confdefs.h"
7783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7784 { (eval echo configure:7785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7786 if test -z "$ac_err"; then
7788 eval "ac_cv_header_$ac_safe=yes"
7791 echo "configure: failed program was:" >&5
7792 cat conftest.$ac_ext >&5
7794 eval "ac_cv_header_$ac_safe=no"
7797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7798 echo "$ac_t""yes" 1>&6
7801 echo "$ac_t""no" 1>&6
7805 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7806 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7807 echo "configure:7808: checking for lber.h" >&5
7809 cat > conftest.$ac_ext <<EOF
7810 #line 7811 "configure"
7811 #include "confdefs.h"
7814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7815 { (eval echo configure:7816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7817 if test -z "$ac_err"; then
7819 eval "ac_cv_header_$ac_safe=yes"
7822 echo "configure: failed program was:" >&5
7823 cat conftest.$ac_ext >&5
7825 eval "ac_cv_header_$ac_safe=no"
7828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7829 echo "$ac_t""yes" 1>&6
7832 echo "$ac_t""no" 1>&6
7836 if test no != "$with_ldap";then
7837 if test . != "${ldap_libs+.}";then
7839 echo $ac_n "checking for ldap_open""... $ac_c" 1>&6
7840 echo "configure:7841: checking for ldap_open" >&5
7842 cat > conftest.$ac_ext <<EOF
7843 #line 7844 "configure"
7844 #include "confdefs.h"
7845 /* System header to define __stub macros and hopefully few prototypes,
7846 which can conflict with char ldap_open(); below. */
7848 /* Override any gcc2 internal prototype to avoid an error. */
7849 /* We use char because int might match the return type of a gcc2
7850 builtin and then its argument prototype would still apply. */
7855 /* The GNU C library defines this for functions which it implements
7856 to always fail with ENOSYS. Some functions are actually named
7857 something starting with __ and the normal name is an alias. */
7858 #if defined (__stub_ldap_open) || defined (__stub___ldap_open)
7866 if { (eval echo configure:7867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7868 eval "ac_cv_func_ldap_open=yes"
7870 echo "configure: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7873 eval "ac_cv_func_ldap_open=no"
7877 if eval "test \"`echo '$ac_cv_func_'ldap_open`\" = yes"; then
7878 echo "$ac_t""yes" 1>&6
7880 test yes = "$extra_verbose" &&
7881 echo "Setting ldap_libs to $ldap_libs"
7883 echo "$ac_t""no" 1>&6
7885 echo $ac_n "checking for ldap_open in -lldap""... $ac_c" 1>&6
7886 echo "configure:7887: checking for ldap_open in -lldap" >&5
7887 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7889 xe_check_libs=" -lldap "
7890 cat > conftest.$ac_ext <<EOF
7891 #line 7892 "configure"
7892 #include "confdefs.h"
7893 /* Override any gcc2 internal prototype to avoid an error. */
7894 /* We use char because int might match the return type of a gcc2
7895 builtin and then its argument prototype would still apply. */
7902 if { (eval echo configure:7903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7904 eval "ac_cv_lib_$ac_lib_var=yes"
7906 echo "configure: failed program was:" >&5
7907 cat conftest.$ac_ext >&5
7909 eval "ac_cv_lib_$ac_lib_var=no"
7914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7915 echo "$ac_t""yes" 1>&6
7918 echo "$ac_t""no" 1>&6
7919 ldap_needs_lber=yes ldap_other_libs=-llber
7921 xe_msg_checking="for ldap_open in -lldap"
7922 test -n "$ldap_other_libs" && xe_msg_checking="$xe_msg_checking using extra libs $ldap_other_libs"
7923 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7924 echo "configure:7925: checking "$xe_msg_checking"" >&5
7925 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7927 xe_check_libs=" -lldap $ldap_other_libs"
7928 cat > conftest.$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7931 /* Override any gcc2 internal prototype to avoid an error. */
7932 /* We use char because int might match the return type of a gcc2
7933 builtin and then its argument prototype would still apply. */
7940 if { (eval echo configure:7941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7942 eval "ac_cv_lib_$ac_lib_var=yes"
7944 echo "configure: failed program was:" >&5
7945 cat conftest.$ac_ext >&5
7947 eval "ac_cv_lib_$ac_lib_var=no"
7952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7953 echo "$ac_t""yes" 1>&6
7956 echo "$ac_t""no" 1>&6
7957 ldap_needs_krb=yes ldap_other_libs="$ldap_other_libs -lkrb"
7959 xe_msg_checking="for ldap_open in -lldap"
7960 test -n "$ldap_other_libs" && xe_msg_checking="$xe_msg_checking using extra libs $ldap_other_libs"
7961 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7962 echo "configure:7963: checking "$xe_msg_checking"" >&5
7963 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7965 xe_check_libs=" -lldap $ldap_other_libs"
7966 cat > conftest.$ac_ext <<EOF
7967 #line 7968 "configure"
7968 #include "confdefs.h"
7969 /* Override any gcc2 internal prototype to avoid an error. */
7970 /* We use char because int might match the return type of a gcc2
7971 builtin and then its argument prototype would still apply. */
7978 if { (eval echo configure:7979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7980 eval "ac_cv_lib_$ac_lib_var=yes"
7982 echo "configure: failed program was:" >&5
7983 cat conftest.$ac_ext >&5
7985 eval "ac_cv_lib_$ac_lib_var=no"
7990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7991 echo "$ac_t""yes" 1>&6
7994 echo "$ac_t""no" 1>&6
7995 ldap_needs_des=yes ldap_other_libs="$ldap_other_libs -ldes"
7997 xe_msg_checking="for ldap_open in -lldap"
7998 test -n "$ldap_other_libs" && xe_msg_checking="$xe_msg_checking using extra libs $ldap_other_libs"
7999 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
8000 echo "configure:8001: checking "$xe_msg_checking"" >&5
8001 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
8003 xe_check_libs=" -lldap $ldap_other_libs"
8004 cat > conftest.$ac_ext <<EOF
8005 #line 8006 "configure"
8006 #include "confdefs.h"
8007 /* Override any gcc2 internal prototype to avoid an error. */
8008 /* We use char because int might match the return type of a gcc2
8009 builtin and then its argument prototype would still apply. */
8016 if { (eval echo configure:8017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8018 eval "ac_cv_lib_$ac_lib_var=yes"
8020 echo "configure: failed program was:" >&5
8021 cat conftest.$ac_ext >&5
8023 eval "ac_cv_lib_$ac_lib_var=no"
8028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8029 echo "$ac_t""yes" 1>&6
8032 echo "$ac_t""no" 1>&6
8046 if test yes = "$with_ldap";then
8047 if test yes = "$ldap_needs_des";then
8048 ldap_libs="-ldes $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$ldap_libs"; fi
8050 if test yes = "$ldap_needs_krb";then
8051 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
8053 if test yes = "$ldap_needs_lber";then
8054 ldap_libs="-llber $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$ldap_libs"; fi
8056 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
8061 save_LIBS="$LIBS" LIBS="$ldap_libs $LIBS"
8062 echo $ac_n "checking for ldap_open""... $ac_c" 1>&6
8063 echo "configure:8064: checking for ldap_open" >&5
8065 cat > conftest.$ac_ext <<EOF
8066 #line 8067 "configure"
8067 #include "confdefs.h"
8068 /* System header to define __stub macros and hopefully few prototypes,
8069 which can conflict with char ldap_open(); below. */
8071 /* Override any gcc2 internal prototype to avoid an error. */
8072 /* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */
8078 /* The GNU C library defines this for functions which it implements
8079 to always fail with ENOSYS. Some functions are actually named
8080 something starting with __ and the normal name is an alias. */
8081 #if defined (__stub_ldap_open) || defined (__stub___ldap_open)
8089 if { (eval echo configure:8090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8091 eval "ac_cv_func_ldap_open=yes"
8093 echo "configure: failed program was:" >&5
8094 cat conftest.$ac_ext >&5
8096 eval "ac_cv_func_ldap_open=no"
8100 if eval "test \"`echo '$ac_cv_func_'ldap_open`\" = yes"; then
8101 echo "$ac_t""yes" 1>&6
8103 test yes = "$extra_verbose" &&
8104 echo "Setting ldap_libs to $ldap_libs"
8106 echo "$ac_t""no" 1>&6
8113 if test "$with_ldap" = "yes"; then
8114 { test "$extra_verbose" = "yes" && cat << \EOF
8117 cat >> confdefs.h <<\EOF
8122 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
8123 echo " xemacs will be linked with \"eldap.o\""
8125 LIBS="$ldap_libs $LIBS"
8126 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
8128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8129 echo "configure:8130: checking for $ac_func" >&5
8131 cat > conftest.$ac_ext <<EOF
8132 #line 8133 "configure"
8133 #include "confdefs.h"
8134 /* System header to define __stub macros and hopefully few prototypes,
8135 which can conflict with char $ac_func(); below. */
8137 /* Override any gcc2 internal prototype to avoid an error. */
8138 /* We use char because int might match the return type of a gcc2
8139 builtin and then its argument prototype would still apply. */
8144 /* The GNU C library defines this for functions which it implements
8145 to always fail with ENOSYS. Some functions are actually named
8146 something starting with __ and the normal name is an alias. */
8147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8155 if { (eval echo configure:8156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8157 eval "ac_cv_func_$ac_func=yes"
8159 echo "configure: failed program was:" >&5
8160 cat conftest.$ac_ext >&5
8162 eval "ac_cv_func_$ac_func=no"
8166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8167 echo "$ac_t""yes" 1>&6
8168 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8169 { test "$extra_verbose" = "yes" && cat << EOF
8170 Defining $ac_tr_func
8172 cat >> confdefs.h <<EOF
8173 #define $ac_tr_func 1
8178 echo "$ac_t""no" 1>&6
8184 if test "$with_postgresql" != "no"; then
8185 echo "checking for PostgreSQL" 1>&6
8186 echo "configure:8187: checking for PostgreSQL" >&5
8188 for header_dir in "" "pgsql/" "postgresql/"; do
8189 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
8190 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
8191 echo "configure:8192: checking for ${header_dir}libpq-fe.h" >&5
8193 cat > conftest.$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 #include <${header_dir}libpq-fe.h>
8198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8199 { (eval echo configure:8200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8201 if test -z "$ac_err"; then
8203 eval "ac_cv_header_$ac_safe=yes"
8206 echo "configure: failed program was:" >&5
8207 cat conftest.$ac_ext >&5
8209 eval "ac_cv_header_$ac_safe=no"
8212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8213 echo "$ac_t""yes" 1>&6
8214 libpq_fe_h_file=${header_dir}libpq-fe.h; break
8216 echo "$ac_t""no" 1>&6
8221 test -n "$libpq_fe_h_file" && {
8222 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
8223 echo "configure:8224: checking for PQconnectdb in -lpq" >&5
8224 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
8226 xe_check_libs=" -lpq "
8227 cat > conftest.$ac_ext <<EOF
8228 #line 8229 "configure"
8229 #include "confdefs.h"
8230 /* Override any gcc2 internal prototype to avoid an error. */
8231 /* We use char because int might match the return type of a gcc2
8232 builtin and then its argument prototype would still apply. */
8239 if { (eval echo configure:8240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8241 eval "ac_cv_lib_$ac_lib_var=yes"
8243 echo "configure: failed program was:" >&5
8244 cat conftest.$ac_ext >&5
8246 eval "ac_cv_lib_$ac_lib_var=no"
8251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8252 echo "$ac_t""yes" 1>&6
8255 echo "$ac_t""no" 1>&6
8260 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
8262 { test "$extra_verbose" = "yes" && cat << \EOF
8263 Defining HAVE_POSTGRESQL
8265 cat >> confdefs.h <<\EOF
8266 #define HAVE_POSTGRESQL 1
8271 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
8272 echo "configure:8273: checking for PQconnectStart in -lpq" >&5
8273 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
8275 xe_check_libs=" -lpq "
8276 cat > conftest.$ac_ext <<EOF
8277 #line 8278 "configure"
8278 #include "confdefs.h"
8279 /* Override any gcc2 internal prototype to avoid an error. */
8280 /* We use char because int might match the return type of a gcc2
8281 builtin and then its argument prototype would still apply. */
8282 char PQconnectStart();
8288 if { (eval echo configure:8289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8290 eval "ac_cv_lib_$ac_lib_var=yes"
8292 echo "configure: failed program was:" >&5
8293 cat conftest.$ac_ext >&5
8295 eval "ac_cv_lib_$ac_lib_var=no"
8300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8301 echo "$ac_t""yes" 1>&6
8302 with_postgresqlv7=yes;
8303 { test "$extra_verbose" = "yes" && cat << \EOF
8304 Defining HAVE_POSTGRESQLV7
8306 cat >> confdefs.h <<\EOF
8307 #define HAVE_POSTGRESQLV7 1
8312 echo "$ac_t""no" 1>&6
8316 { test "$extra_verbose" = "yes" && cat << EOF
8317 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8319 cat >> confdefs.h <<EOF
8320 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8324 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8325 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8326 echo " xemacs will be linked with \"postgresql.o\""
8328 elif test "$with_postgresql" = "yes"; then
8329 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8334 if test "$window_system" != "none"; then
8335 echo "checking for graphics libraries" 1>&6
8336 echo "configure:8337: checking for graphics libraries" >&5
8342 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
8343 cygwin_top=`eval "dirname ${cygwin_top}"`;
8344 cygwin_top="${cygwin_top}/..";
8345 case "$window_system" in
8347 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
8348 incpath_xpm="-I${cygwin_top}/include/noX"
8358 if test -z "$with_xpm"; then
8359 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8360 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8361 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8362 echo "configure:8363: checking for Xpm - no older than 3.4f" >&5
8364 cat > conftest.$ac_ext <<EOF
8365 #line 8366 "configure"
8366 #include "confdefs.h"
8368 #include <X11/xpm.h>
8369 int main(int c, char **v) {
8371 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8372 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8374 if { (eval echo configure:8375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8376 ./conftest dummy_arg; xpm_status=$?;
8377 if test "$xpm_status" = "0"; then
8381 if test "$xpm_status" = "1"; then
8382 xpm_problem="Xpm library version and header file version don't match!"
8383 elif test "$xpm_status" = "2"; then
8384 xpm_problem="Xpm library version is too old!"
8386 xpm_problem="Internal xpm detection logic error!"
8389 *** WARNING *** $xpm_problem
8390 I'm not touching that with a 10-foot pole!
8391 If you really want to use the installed version of Xpm, rerun
8392 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8396 echo "configure: failed program was:" >&5
8397 cat conftest.$ac_ext >&5
8403 echo "$ac_t""$with_xpm" 1>&6
8405 if test "$with_xpm" = "yes"; then
8406 { test "$extra_verbose" = "yes" && cat << \EOF
8409 cat >> confdefs.h <<\EOF
8414 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8415 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8416 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8417 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8418 echo "configure:8419: checking for \"FOR_MSW\" xpm" >&5
8420 cat > conftest.$ac_ext <<EOF
8421 #line 8422 "configure"
8422 #include "confdefs.h"
8425 XpmCreatePixmapFromData()
8428 if { (eval echo configure:8429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8432 echo "configure: failed program was:" >&5
8433 cat conftest.$ac_ext >&5
8439 echo "$ac_t""$xpm_for_msw" 1>&6
8440 if test "$xpm_for_msw" = "yes"; then
8441 { test "$extra_verbose" = "yes" && cat << \EOF
8444 cat >> confdefs.h <<\EOF
8452 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8453 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8454 echo "configure:8455: checking for compface.h" >&5
8456 cat > conftest.$ac_ext <<EOF
8457 #line 8458 "configure"
8458 #include "confdefs.h"
8459 #include <compface.h>
8461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8462 { (eval echo configure:8463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8464 if test -z "$ac_err"; then
8466 eval "ac_cv_header_$ac_safe=yes"
8469 echo "configure: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8472 eval "ac_cv_header_$ac_safe=no"
8475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8476 echo "$ac_t""yes" 1>&6
8479 echo "$ac_t""no" 1>&6
8483 test -z "$with_xface" && {
8484 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8485 echo "configure:8486: checking for UnGenFace in -lcompface" >&5
8486 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8488 xe_check_libs=" -lcompface "
8489 cat > conftest.$ac_ext <<EOF
8490 #line 8491 "configure"
8491 #include "confdefs.h"
8492 /* Override any gcc2 internal prototype to avoid an error. */
8493 /* We use char because int might match the return type of a gcc2
8494 builtin and then its argument prototype would still apply. */
8501 if { (eval echo configure:8502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8503 eval "ac_cv_lib_$ac_lib_var=yes"
8505 echo "configure: failed program was:" >&5
8506 cat conftest.$ac_ext >&5
8508 eval "ac_cv_lib_$ac_lib_var=no"
8513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8514 echo "$ac_t""yes" 1>&6
8517 echo "$ac_t""no" 1>&6
8522 test -z "$with_xface" && with_xface=yes
8523 if test "$with_xface" = "yes"; then
8524 { test "$extra_verbose" = "yes" && cat << \EOF
8527 cat >> confdefs.h <<\EOF
8528 #define HAVE_XFACE 1
8532 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8535 if test "$with_gif" != "no"; then
8537 { test "$extra_verbose" = "yes" && cat << \EOF
8540 cat >> confdefs.h <<\EOF
8545 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8546 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8550 if test "$with_png $with_tiff" != "no no"; then
8552 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8553 echo "configure:8554: checking for inflate in -lc" >&5
8554 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8556 xe_check_libs=" -lc "
8557 cat > conftest.$ac_ext <<EOF
8558 #line 8559 "configure"
8559 #include "confdefs.h"
8560 /* Override any gcc2 internal prototype to avoid an error. */
8561 /* We use char because int might match the return type of a gcc2
8562 builtin and then its argument prototype would still apply. */
8569 if { (eval echo configure:8570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8571 eval "ac_cv_lib_$ac_lib_var=yes"
8573 echo "configure: failed program was:" >&5
8574 cat conftest.$ac_ext >&5
8576 eval "ac_cv_lib_$ac_lib_var=no"
8581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8582 echo "$ac_t""yes" 1>&6
8585 echo "$ac_t""no" 1>&6
8587 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8588 echo "configure:8589: checking for inflate in -lz" >&5
8589 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8591 xe_check_libs=" -lz "
8592 cat > conftest.$ac_ext <<EOF
8593 #line 8594 "configure"
8594 #include "confdefs.h"
8595 /* Override any gcc2 internal prototype to avoid an error. */
8596 /* We use char because int might match the return type of a gcc2
8597 builtin and then its argument prototype would still apply. */
8604 if { (eval echo configure:8605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8606 eval "ac_cv_lib_$ac_lib_var=yes"
8608 echo "configure: failed program was:" >&5
8609 cat conftest.$ac_ext >&5
8611 eval "ac_cv_lib_$ac_lib_var=no"
8616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8617 echo "$ac_t""yes" 1>&6
8618 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8620 echo "$ac_t""no" 1>&6
8622 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8623 echo "configure:8624: checking for inflate in -lgz" >&5
8624 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8626 xe_check_libs=" -lgz "
8627 cat > conftest.$ac_ext <<EOF
8628 #line 8629 "configure"
8629 #include "confdefs.h"
8630 /* Override any gcc2 internal prototype to avoid an error. */
8631 /* We use char because int might match the return type of a gcc2
8632 builtin and then its argument prototype would still apply. */
8639 if { (eval echo configure:8640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8641 eval "ac_cv_lib_$ac_lib_var=yes"
8643 echo "configure: failed program was:" >&5
8644 cat conftest.$ac_ext >&5
8646 eval "ac_cv_lib_$ac_lib_var=no"
8651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8652 echo "$ac_t""yes" 1>&6
8653 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8655 echo "$ac_t""no" 1>&6
8667 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8668 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8669 echo "configure:8670: checking for jpeglib.h" >&5
8671 cat > conftest.$ac_ext <<EOF
8672 #line 8673 "configure"
8673 #include "confdefs.h"
8674 #include <jpeglib.h>
8676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8677 { (eval echo configure:8678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8679 if test -z "$ac_err"; then
8681 eval "ac_cv_header_$ac_safe=yes"
8684 echo "configure: failed program was:" >&5
8685 cat conftest.$ac_ext >&5
8687 eval "ac_cv_header_$ac_safe=no"
8690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8691 echo "$ac_t""yes" 1>&6
8694 echo "$ac_t""no" 1>&6
8698 test -z "$with_jpeg" && {
8699 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8700 echo "configure:8701: checking for jpeg_destroy_decompress in -ljpeg" >&5
8701 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8703 xe_check_libs=" -ljpeg "
8704 cat > conftest.$ac_ext <<EOF
8705 #line 8706 "configure"
8706 #include "confdefs.h"
8707 /* Override any gcc2 internal prototype to avoid an error. */
8708 /* We use char because int might match the return type of a gcc2
8709 builtin and then its argument prototype would still apply. */
8710 char jpeg_destroy_decompress();
8713 jpeg_destroy_decompress()
8716 if { (eval echo configure:8717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8718 eval "ac_cv_lib_$ac_lib_var=yes"
8720 echo "configure: failed program was:" >&5
8721 cat conftest.$ac_ext >&5
8723 eval "ac_cv_lib_$ac_lib_var=no"
8728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8729 echo "$ac_t""yes" 1>&6
8732 echo "$ac_t""no" 1>&6
8737 test -z "$with_jpeg" && with_jpeg=yes
8738 if test "$with_jpeg" = "yes"; then
8739 { test "$extra_verbose" = "yes" && cat << \EOF
8742 cat >> confdefs.h <<\EOF
8747 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8751 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8752 echo "configure:8753: checking for pow" >&5
8754 cat > conftest.$ac_ext <<EOF
8755 #line 8756 "configure"
8756 #include "confdefs.h"
8757 /* System header to define __stub macros and hopefully few prototypes,
8758 which can conflict with char pow(); below. */
8760 /* Override any gcc2 internal prototype to avoid an error. */
8761 /* We use char because int might match the return type of a gcc2
8762 builtin and then its argument prototype would still apply. */
8767 /* The GNU C library defines this for functions which it implements
8768 to always fail with ENOSYS. Some functions are actually named
8769 something starting with __ and the normal name is an alias. */
8770 #if defined (__stub_pow) || defined (__stub___pow)
8778 if { (eval echo configure:8779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8780 eval "ac_cv_func_pow=yes"
8782 echo "configure: failed program was:" >&5
8783 cat conftest.$ac_ext >&5
8785 eval "ac_cv_func_pow=no"
8789 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8790 echo "$ac_t""yes" 1>&6
8793 echo "$ac_t""no" 1>&6
8797 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8798 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8799 echo "configure:8800: checking for png.h" >&5
8801 cat > conftest.$ac_ext <<EOF
8802 #line 8803 "configure"
8803 #include "confdefs.h"
8806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8807 { (eval echo configure:8808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8809 if test -z "$ac_err"; then
8811 eval "ac_cv_header_$ac_safe=yes"
8814 echo "configure: failed program was:" >&5
8815 cat conftest.$ac_ext >&5
8817 eval "ac_cv_header_$ac_safe=no"
8820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8821 echo "$ac_t""yes" 1>&6
8824 echo "$ac_t""no" 1>&6
8828 test -z "$with_png" && {
8829 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8830 echo "configure:8831: checking for png_read_image in -lpng" >&5
8831 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8833 xe_check_libs=" -lpng "
8834 cat > conftest.$ac_ext <<EOF
8835 #line 8836 "configure"
8836 #include "confdefs.h"
8837 /* Override any gcc2 internal prototype to avoid an error. */
8838 /* We use char because int might match the return type of a gcc2
8839 builtin and then its argument prototype would still apply. */
8840 char png_read_image();
8846 if { (eval echo configure:8847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8848 eval "ac_cv_lib_$ac_lib_var=yes"
8850 echo "configure: failed program was:" >&5
8851 cat conftest.$ac_ext >&5
8853 eval "ac_cv_lib_$ac_lib_var=no"
8858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8859 echo "$ac_t""yes" 1>&6
8862 echo "$ac_t""no" 1>&6
8867 if test -z "$with_png"; then
8868 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8869 echo "configure:8870: checking for workable png version information" >&5
8870 xe_check_libs="-lpng -lz"
8871 cat > conftest.$ac_ext <<EOF
8872 #line 8873 "configure"
8873 #include "confdefs.h"
8875 int main(int c, char **v) {
8876 if (c == 1) return 0;
8877 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8878 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8880 if { (eval echo configure:8881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8882 ./conftest dummy_arg; png_status=$?;
8883 if test "$png_status" = "0"; then
8887 if test "$png_status" = "1"; then
8888 png_problem="PNG library version and header file don't match!"
8889 elif test "$png_status" = "2"; then
8890 png_problem="PNG library version too old (pre 1.0.2)!"
8893 *** WARNING *** $png_problem
8894 I'm not touching that with a 10-foot pole!
8895 If you really want to use the installed version of libPNG, rerun
8896 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8900 echo "configure: failed program was:" >&5
8901 cat conftest.$ac_ext >&5
8907 echo "$ac_t""$with_png" 1>&6
8909 if test "$with_png" = "yes"; then
8910 { test "$extra_verbose" = "yes" && cat << \EOF
8913 cat >> confdefs.h <<\EOF
8918 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8921 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8922 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8923 echo "configure:8924: checking for tiffio.h" >&5
8925 cat > conftest.$ac_ext <<EOF
8926 #line 8927 "configure"
8927 #include "confdefs.h"
8930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8931 { (eval echo configure:8932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8933 if test -z "$ac_err"; then
8935 eval "ac_cv_header_$ac_safe=yes"
8938 echo "configure: failed program was:" >&5
8939 cat conftest.$ac_ext >&5
8941 eval "ac_cv_header_$ac_safe=no"
8944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8945 echo "$ac_t""yes" 1>&6
8948 echo "$ac_t""no" 1>&6
8952 test -z "$with_tiff" && {
8953 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8954 echo "configure:8955: checking for TIFFClientOpen in -ltiff" >&5
8955 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8957 xe_check_libs=" -ltiff "
8958 cat > conftest.$ac_ext <<EOF
8959 #line 8960 "configure"
8960 #include "confdefs.h"
8961 /* Override any gcc2 internal prototype to avoid an error. */
8962 /* We use char because int might match the return type of a gcc2
8963 builtin and then its argument prototype would still apply. */
8964 char TIFFClientOpen();
8970 if { (eval echo configure:8971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8972 eval "ac_cv_lib_$ac_lib_var=yes"
8974 echo "configure: failed program was:" >&5
8975 cat conftest.$ac_ext >&5
8977 eval "ac_cv_lib_$ac_lib_var=no"
8982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8983 echo "$ac_t""yes" 1>&6
8986 echo "$ac_t""no" 1>&6
8991 test -z "$with_tiff" && with_tiff=yes
8992 if test "$with_tiff" = "yes"; then
8993 { test "$extra_verbose" = "yes" && cat << \EOF
8996 cat >> confdefs.h <<\EOF
9001 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
9006 if test "$with_gtk" = "yes"; then
9007 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
9008 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
9009 echo "configure:9010: checking for compface.h" >&5
9011 cat > conftest.$ac_ext <<EOF
9012 #line 9013 "configure"
9013 #include "confdefs.h"
9014 #include <compface.h>
9016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9017 { (eval echo configure:9018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9019 if test -z "$ac_err"; then
9021 eval "ac_cv_header_$ac_safe=yes"
9024 echo "configure: failed program was:" >&5
9025 cat conftest.$ac_ext >&5
9027 eval "ac_cv_header_$ac_safe=no"
9030 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9031 echo "$ac_t""yes" 1>&6
9034 echo "$ac_t""no" 1>&6
9038 test -z "$with_xface" && {
9039 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
9040 echo "configure:9041: checking for UnGenFace in -lcompface" >&5
9041 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
9043 xe_check_libs=" -lcompface "
9044 cat > conftest.$ac_ext <<EOF
9045 #line 9046 "configure"
9046 #include "confdefs.h"
9047 /* Override any gcc2 internal prototype to avoid an error. */
9048 /* We use char because int might match the return type of a gcc2
9049 builtin and then its argument prototype would still apply. */
9056 if { (eval echo configure:9057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9058 eval "ac_cv_lib_$ac_lib_var=yes"
9060 echo "configure: failed program was:" >&5
9061 cat conftest.$ac_ext >&5
9063 eval "ac_cv_lib_$ac_lib_var=no"
9068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9069 echo "$ac_t""yes" 1>&6
9072 echo "$ac_t""no" 1>&6
9077 test -z "$with_xface" && with_xface=yes
9078 if test "$with_xface" = "yes"; then
9079 { test "$extra_verbose" = "yes" && cat << \EOF
9082 cat >> confdefs.h <<\EOF
9083 #define HAVE_XFACE 1
9087 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
9093 if test "$with_x11" = "yes"; then
9094 echo "checking for X11 graphics libraries" 1>&6
9095 echo "configure:9096: checking for X11 graphics libraries" >&5
9098 if test "$with_x11" = "yes"; then
9099 echo "checking for the Athena widgets" 1>&6
9100 echo "configure:9101: checking for the Athena widgets" >&5
9102 case "$with_athena" in
9103 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
9104 "3d") athena_variant=Xaw3d athena_3d=yes ;;
9105 "next") athena_variant=neXtaw athena_3d=yes ;;
9106 "95") athena_variant=Xaw95 athena_3d=yes ;;
9107 "xpm") athena_variant=XawXpm athena_3d=yes ;;
9108 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
9111 athena_3d_function=Xaw3dComputeBottomShadowRGB
9113 if test "$athena_3d" = "no"; then
9115 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
9116 echo "configure:9117: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
9117 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
9119 xe_check_libs=" -l$athena_variant "
9120 cat > conftest.$ac_ext <<EOF
9121 #line 9122 "configure"
9122 #include "confdefs.h"
9123 /* Override any gcc2 internal prototype to avoid an error. */
9124 /* We use char because int might match the return type of a gcc2
9125 builtin and then its argument prototype would still apply. */
9126 char XawScrollbarSetThumb();
9129 XawScrollbarSetThumb()
9132 if { (eval echo configure:9133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9134 eval "ac_cv_lib_$ac_lib_var=yes"
9136 echo "configure: failed program was:" >&5
9137 cat conftest.$ac_ext >&5
9139 eval "ac_cv_lib_$ac_lib_var=no"
9144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9145 echo "$ac_t""yes" 1>&6
9147 echo $ac_n "checking for $athena_3d_function in -l$athena_variant""... $ac_c" 1>&6
9148 echo "configure:9149: checking for $athena_3d_function in -l$athena_variant" >&5
9149 ac_lib_var=`echo $athena_variant'_'$athena_3d_function | sed 'y%./+-%__p_%'`
9151 xe_check_libs=" -l$athena_variant "
9152 cat > conftest.$ac_ext <<EOF
9153 #line 9154 "configure"
9154 #include "confdefs.h"
9155 /* Override any gcc2 internal prototype to avoid an error. */
9156 /* We use char because int might match the return type of a gcc2
9157 builtin and then its argument prototype would still apply. */
9158 char $athena_3d_function();
9161 $athena_3d_function()
9164 if { (eval echo configure:9165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9166 eval "ac_cv_lib_$ac_lib_var=yes"
9168 echo "configure: failed program was:" >&5
9169 cat conftest.$ac_ext >&5
9171 eval "ac_cv_lib_$ac_lib_var=no"
9176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9177 echo "$ac_t""yes" 1>&6
9178 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
9180 echo "$ac_t""no" 1>&6
9181 athena_lib=$athena_variant
9187 echo "$ac_t""no" 1>&6
9188 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
9194 echo $ac_n "checking for $athena_3d_function in -l$athena_variant""... $ac_c" 1>&6
9195 echo "configure:9196: checking for $athena_3d_function in -l$athena_variant" >&5
9196 ac_lib_var=`echo $athena_variant'_'$athena_3d_function | sed 'y%./+-%__p_%'`
9198 xe_check_libs=" -l$athena_variant "
9199 cat > conftest.$ac_ext <<EOF
9200 #line 9201 "configure"
9201 #include "confdefs.h"
9202 /* Override any gcc2 internal prototype to avoid an error. */
9203 /* We use char because int might match the return type of a gcc2
9204 builtin and then its argument prototype would still apply. */
9205 char $athena_3d_function();
9208 $athena_3d_function()
9211 if { (eval echo configure:9212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9213 eval "ac_cv_lib_$ac_lib_var=yes"
9215 echo "configure: failed program was:" >&5
9216 cat conftest.$ac_ext >&5
9218 eval "ac_cv_lib_$ac_lib_var=no"
9223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9224 echo "$ac_t""yes" 1>&6
9225 athena_lib=$athena_variant
9227 echo "$ac_t""no" 1>&6
9228 echo $ac_n "checking for $athena_3d_function in -lXaw""... $ac_c" 1>&6
9229 echo "configure:9230: checking for $athena_3d_function in -lXaw" >&5
9230 ac_lib_var=`echo Xaw'_'$athena_3d_function | sed 'y%./+-%__p_%'`
9232 xe_check_libs=" -lXaw "
9233 cat > conftest.$ac_ext <<EOF
9234 #line 9235 "configure"
9235 #include "confdefs.h"
9236 /* Override any gcc2 internal prototype to avoid an error. */
9237 /* We use char because int might match the return type of a gcc2
9238 builtin and then its argument prototype would still apply. */
9239 char $athena_3d_function();
9242 $athena_3d_function()
9245 if { (eval echo configure:9246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9247 eval "ac_cv_lib_$ac_lib_var=yes"
9249 echo "configure: failed program was:" >&5
9250 cat conftest.$ac_ext >&5
9252 eval "ac_cv_lib_$ac_lib_var=no"
9257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9258 echo "$ac_t""yes" 1>&6
9260 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
9263 echo "$ac_t""no" 1>&6
9264 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
9273 if test "$athena_3d" = "no"; then
9274 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9275 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9276 echo "configure:9277: checking for X11/Xaw/ThreeD.h" >&5
9278 cat > conftest.$ac_ext <<EOF
9279 #line 9280 "configure"
9280 #include "confdefs.h"
9281 #include <X11/Xaw/ThreeD.h>
9283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9284 { (eval echo configure:9285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9286 if test -z "$ac_err"; then
9288 eval "ac_cv_header_$ac_safe=yes"
9291 echo "configure: failed program was:" >&5
9292 cat conftest.$ac_ext >&5
9294 eval "ac_cv_header_$ac_safe=no"
9297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9298 echo "$ac_t""yes" 1>&6
9299 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9301 echo "$ac_t""no" 1>&6
9302 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
9303 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
9304 echo "configure:9305: checking for X11/Xaw/XawInit.h" >&5
9306 cat > conftest.$ac_ext <<EOF
9307 #line 9308 "configure"
9308 #include "confdefs.h"
9309 #include <X11/Xaw/XawInit.h>
9311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9312 { (eval echo configure:9313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9314 if test -z "$ac_err"; then
9316 eval "ac_cv_header_$ac_safe=yes"
9319 echo "configure: failed program was:" >&5
9320 cat conftest.$ac_ext >&5
9322 eval "ac_cv_header_$ac_safe=no"
9325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9326 echo "$ac_t""yes" 1>&6
9327 athena_h_path=X11/Xaw
9329 echo "$ac_t""no" 1>&6
9330 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9336 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9337 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
9338 echo "configure:9339: checking for X11/$athena_variant/XawInit.h" >&5
9340 cat > conftest.$ac_ext <<EOF
9341 #line 9342 "configure"
9342 #include "confdefs.h"
9343 #include <X11/$athena_variant/XawInit.h>
9345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9346 { (eval echo configure:9347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9348 if test -z "$ac_err"; then
9350 eval "ac_cv_header_$ac_safe=yes"
9353 echo "configure: failed program was:" >&5
9354 cat conftest.$ac_ext >&5
9356 eval "ac_cv_header_$ac_safe=no"
9359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9360 echo "$ac_t""yes" 1>&6
9361 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9362 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9363 echo "configure:9364: checking for X11/$athena_variant/ThreeD.h" >&5
9365 cat > conftest.$ac_ext <<EOF
9366 #line 9367 "configure"
9367 #include "confdefs.h"
9368 #include <X11/$athena_variant/ThreeD.h>
9370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9371 { (eval echo configure:9372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9373 if test -z "$ac_err"; then
9375 eval "ac_cv_header_$ac_safe=yes"
9378 echo "configure: failed program was:" >&5
9379 cat conftest.$ac_ext >&5
9381 eval "ac_cv_header_$ac_safe=no"
9384 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9385 echo "$ac_t""yes" 1>&6
9386 athena_h_path=X11/$athena_variant
9388 echo "$ac_t""no" 1>&6
9392 echo "$ac_t""no" 1>&6
9396 if test -z "$athena_h_path"; then
9397 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9398 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9399 echo "configure:9400: checking for $athena_variant/XawInit.h" >&5
9401 cat > conftest.$ac_ext <<EOF
9402 #line 9403 "configure"
9403 #include "confdefs.h"
9404 #include <$athena_variant/XawInit.h>
9406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9407 { (eval echo configure:9408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9409 if test -z "$ac_err"; then
9411 eval "ac_cv_header_$ac_safe=yes"
9414 echo "configure: failed program was:" >&5
9415 cat conftest.$ac_ext >&5
9417 eval "ac_cv_header_$ac_safe=no"
9420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9421 echo "$ac_t""yes" 1>&6
9422 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9423 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9424 echo "configure:9425: checking for $athena_variant/ThreeD.h" >&5
9426 cat > conftest.$ac_ext <<EOF
9427 #line 9428 "configure"
9428 #include "confdefs.h"
9429 #include <$athena_variant/ThreeD.h>
9431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9432 { (eval echo configure:9433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9434 if test -z "$ac_err"; then
9436 eval "ac_cv_header_$ac_safe=yes"
9439 echo "configure: failed program was:" >&5
9440 cat conftest.$ac_ext >&5
9442 eval "ac_cv_header_$ac_safe=no"
9445 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9446 echo "$ac_t""yes" 1>&6
9447 athena_h_path=$athena_variant
9449 echo "$ac_t""no" 1>&6
9453 echo "$ac_t""no" 1>&6
9458 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9459 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9460 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9461 echo "configure:9462: checking for X11/Xaw3d/XawInit.h" >&5
9463 cat > conftest.$ac_ext <<EOF
9464 #line 9465 "configure"
9465 #include "confdefs.h"
9466 #include <X11/Xaw3d/XawInit.h>
9468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9469 { (eval echo configure:9470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9470 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9471 if test -z "$ac_err"; then
9473 eval "ac_cv_header_$ac_safe=yes"
9476 echo "configure: failed program was:" >&5
9477 cat conftest.$ac_ext >&5
9479 eval "ac_cv_header_$ac_safe=no"
9482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9483 echo "$ac_t""yes" 1>&6
9484 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9485 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9486 echo "configure:9487: checking for X11/Xaw3d/ThreeD.h" >&5
9488 cat > conftest.$ac_ext <<EOF
9489 #line 9490 "configure"
9490 #include "confdefs.h"
9491 #include <X11/Xaw3d/ThreeD.h>
9493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9494 { (eval echo configure:9495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9496 if test -z "$ac_err"; then
9498 eval "ac_cv_header_$ac_safe=yes"
9501 echo "configure: failed program was:" >&5
9502 cat conftest.$ac_ext >&5
9504 eval "ac_cv_header_$ac_safe=no"
9507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9508 echo "$ac_t""yes" 1>&6
9510 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9511 athena_h_path=X11/Xaw3d
9514 echo "$ac_t""no" 1>&6
9518 echo "$ac_t""no" 1>&6
9523 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9524 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9525 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9526 echo "configure:9527: checking for Xaw3d/XawInit.h" >&5
9528 cat > conftest.$ac_ext <<EOF
9529 #line 9530 "configure"
9530 #include "confdefs.h"
9531 #include <Xaw3d/XawInit.h>
9533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9534 { (eval echo configure:9535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9536 if test -z "$ac_err"; then
9538 eval "ac_cv_header_$ac_safe=yes"
9541 echo "configure: failed program was:" >&5
9542 cat conftest.$ac_ext >&5
9544 eval "ac_cv_header_$ac_safe=no"
9547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9548 echo "$ac_t""yes" 1>&6
9549 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9550 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9551 echo "configure:9552: checking for Xaw3d/ThreeD.h" >&5
9553 cat > conftest.$ac_ext <<EOF
9554 #line 9555 "configure"
9555 #include "confdefs.h"
9556 #include <Xaw3d/ThreeD.h>
9558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9559 { (eval echo configure:9560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9561 if test -z "$ac_err"; then
9563 eval "ac_cv_header_$ac_safe=yes"
9566 echo "configure: failed program was:" >&5
9567 cat conftest.$ac_ext >&5
9569 eval "ac_cv_header_$ac_safe=no"
9572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9573 echo "$ac_t""yes" 1>&6
9575 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9579 echo "$ac_t""no" 1>&6
9583 echo "$ac_t""no" 1>&6
9588 if test -z "$athena_h_path"; then
9589 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9590 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9591 echo "configure:9592: checking for X11/Xaw/ThreeD.h" >&5
9593 cat > conftest.$ac_ext <<EOF
9594 #line 9595 "configure"
9595 #include "confdefs.h"
9596 #include <X11/Xaw/ThreeD.h>
9598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9599 { (eval echo configure:9600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9601 if test -z "$ac_err"; then
9603 eval "ac_cv_header_$ac_safe=yes"
9606 echo "configure: failed program was:" >&5
9607 cat conftest.$ac_ext >&5
9609 eval "ac_cv_header_$ac_safe=no"
9612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9613 echo "$ac_t""yes" 1>&6
9615 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9616 athena_h_path=X11/Xaw
9619 echo "$ac_t""no" 1>&6
9620 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9626 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9635 if test "$with_x11" = "yes"; then
9636 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9637 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9638 echo "configure:9639: checking for Xm/Xm.h" >&5
9640 cat > conftest.$ac_ext <<EOF
9641 #line 9642 "configure"
9642 #include "confdefs.h"
9645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9646 { (eval echo configure:9647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9648 if test -z "$ac_err"; then
9650 eval "ac_cv_header_$ac_safe=yes"
9653 echo "configure: failed program was:" >&5
9654 cat conftest.$ac_ext >&5
9656 eval "ac_cv_header_$ac_safe=no"
9659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9660 echo "$ac_t""yes" 1>&6
9662 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9663 echo "configure:9664: checking for XmStringFree in -lXm" >&5
9664 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9666 xe_check_libs=" -lXm "
9667 cat > conftest.$ac_ext <<EOF
9668 #line 9669 "configure"
9669 #include "confdefs.h"
9670 /* Override any gcc2 internal prototype to avoid an error. */
9671 /* We use char because int might match the return type of a gcc2
9672 builtin and then its argument prototype would still apply. */
9673 char XmStringFree();
9679 if { (eval echo configure:9680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9681 eval "ac_cv_lib_$ac_lib_var=yes"
9683 echo "configure: failed program was:" >&5
9684 cat conftest.$ac_ext >&5
9686 eval "ac_cv_lib_$ac_lib_var=no"
9691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9692 echo "$ac_t""yes" 1>&6
9695 echo "$ac_t""no" 1>&6
9701 echo "$ac_t""no" 1>&6
9706 if test "$have_motif" = "yes"; then
9707 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9708 echo "configure:9709: checking for Lesstif" >&5
9709 cat > conftest.$ac_ext <<EOF
9710 #line 9711 "configure"
9711 #include "confdefs.h"
9713 #ifdef LESSTIF_VERSION
9718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9719 egrep "yes" >/dev/null 2>&1; then
9728 echo "$ac_t""$have_lesstif" 1>&6
9734 *linux* | cygwin* ) lucid_prefers_motif="no" ;;
9735 * ) lucid_prefers_motif="yes" ;;
9738 case "$with_menubars" in "" | "yes" | "athena" )
9739 with_menubars="lucid" ;;
9741 case "$with_dialogs" in "" | "yes" | "lucid" )
9742 if test "$lucid_prefers_motif" = "yes"; then
9743 if test "$have_motif" = "yes"; then with_dialogs="motif"
9744 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9745 else with_dialogs=no
9748 if test "$have_xaw" = "yes"; then with_dialogs="athena"
9749 elif test "$have_motif" = "yes"; then with_dialogs="motif"
9750 else with_dialogs=no
9754 case "$with_scrollbars" in "" | "yes" )
9755 with_scrollbars="lucid" ;;
9757 case "$with_widgets" in
9759 if test "$lucid_prefers_motif" = "yes"; then
9760 if test "$have_motif" = "yes"; then with_widgets="motif"
9761 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9762 else with_widgets=no
9765 if test "$have_xaw" = "yes"; then with_widgets="athena"
9766 elif test "$have_motif" = "yes"; then with_widgets="motif"
9767 else with_widgets=no
9774 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9776 case "$all_widgets" in
9778 if test "$have_xaw" != "yes"; then
9779 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9782 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9784 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9786 { test "$extra_verbose" = "yes" && cat << EOF
9787 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9789 cat >> confdefs.h <<EOF
9790 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9794 { test "$extra_verbose" = "yes" && cat << EOF
9795 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9797 cat >> confdefs.h <<EOF
9798 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9802 { test "$extra_verbose" = "yes" && cat << EOF
9803 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9805 cat >> confdefs.h <<EOF
9806 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9810 { test "$extra_verbose" = "yes" && cat << EOF
9811 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9813 cat >> confdefs.h <<EOF
9814 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9818 { test "$extra_verbose" = "yes" && cat << EOF
9819 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9821 cat >> confdefs.h <<EOF
9822 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9826 { test "$extra_verbose" = "yes" && cat << EOF
9827 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9829 cat >> confdefs.h <<EOF
9830 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9834 { test "$extra_verbose" = "yes" && cat << EOF
9835 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9837 cat >> confdefs.h <<EOF
9838 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9842 { test "$extra_verbose" = "yes" && cat << EOF
9843 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9845 cat >> confdefs.h <<EOF
9846 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9850 { test "$extra_verbose" = "yes" && cat << EOF
9851 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9853 cat >> confdefs.h <<EOF
9854 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9858 { test "$extra_verbose" = "yes" && cat << EOF
9859 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9861 cat >> confdefs.h <<EOF
9862 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9867 { test "$extra_verbose" = "yes" && cat << \EOF
9868 Defining LWLIB_USES_ATHENA
9870 cat >> confdefs.h <<\EOF
9871 #define LWLIB_USES_ATHENA 1
9875 { test "$extra_verbose" = "yes" && cat << \EOF
9876 Defining NEED_ATHENA
9878 cat >> confdefs.h <<\EOF
9879 #define NEED_ATHENA 1
9885 if test "$athena_3d" = "yes"; then
9886 { test "$extra_verbose" = "yes" && cat << \EOF
9887 Defining HAVE_ATHENA_3D
9889 cat >> confdefs.h <<\EOF
9890 #define HAVE_ATHENA_3D 1
9898 case "$all_widgets" in *motif* )
9899 { test "$extra_verbose" = "yes" && cat << \EOF
9900 Defining LWLIB_USES_MOTIF
9902 cat >> confdefs.h <<\EOF
9903 #define LWLIB_USES_MOTIF 1
9907 { test "$extra_verbose" = "yes" && cat << \EOF
9910 cat >> confdefs.h <<\EOF
9911 #define NEED_MOTIF 1
9915 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9919 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9920 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9921 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9922 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9923 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9924 case "$with_widgets" in athena* )
9925 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;;
9927 case "$all_widgets" in *lucid* )
9928 { test "$extra_verbose" = "yes" && cat << \EOF
9931 cat >> confdefs.h <<\EOF
9932 #define NEED_LUCID 1
9936 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9941 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9942 Defining LWLIB_SCROLLBARS_ATHENA
9944 cat >> confdefs.h <<\EOF
9945 #define LWLIB_SCROLLBARS_ATHENA 1
9949 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9950 Defining LWLIB_DIALOGS_ATHENA
9952 cat >> confdefs.h <<\EOF
9953 #define LWLIB_DIALOGS_ATHENA 1
9958 if test "$athena_3d" = "yes"; then
9959 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9960 Defining LWLIB_SCROLLBARS_ATHENA3D
9962 cat >> confdefs.h <<\EOF
9963 #define LWLIB_SCROLLBARS_ATHENA3D 1
9967 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9968 Defining LWLIB_DIALOGS_ATHENA3D
9970 cat >> confdefs.h <<\EOF
9971 #define LWLIB_DIALOGS_ATHENA3D 1
9977 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9978 Defining LWLIB_WIDGETS_ATHENA
9980 cat >> confdefs.h <<\EOF
9981 #define LWLIB_WIDGETS_ATHENA 1
9985 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9986 { test "$extra_verbose" = "yes" && cat << \EOF
9987 Defining LWLIB_TABS_LUCID
9989 cat >> confdefs.h <<\EOF
9990 #define LWLIB_TABS_LUCID 1
9995 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9996 Defining HAVE_MENUBARS
9998 cat >> confdefs.h <<\EOF
9999 #define HAVE_MENUBARS 1
10003 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
10004 Defining HAVE_SCROLLBARS
10006 cat >> confdefs.h <<\EOF
10007 #define HAVE_SCROLLBARS 1
10011 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
10012 Defining HAVE_DIALOGS
10014 cat >> confdefs.h <<\EOF
10015 #define HAVE_DIALOGS 1
10019 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
10020 Defining HAVE_TOOLBARS
10022 cat >> confdefs.h <<\EOF
10023 #define HAVE_TOOLBARS 1
10027 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
10028 Defining HAVE_WIDGETS
10030 cat >> confdefs.h <<\EOF
10031 #define HAVE_WIDGETS 1
10036 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
10037 Defining LWLIB_MENUBARS_LUCID
10039 cat >> confdefs.h <<\EOF
10040 #define LWLIB_MENUBARS_LUCID 1
10044 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
10045 Defining LWLIB_SCROLLBARS_LUCID
10047 cat >> confdefs.h <<\EOF
10048 #define LWLIB_SCROLLBARS_LUCID 1
10053 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
10054 Defining LWLIB_MENUBARS_MOTIF
10056 cat >> confdefs.h <<\EOF
10057 #define LWLIB_MENUBARS_MOTIF 1
10061 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
10062 Defining LWLIB_SCROLLBARS_MOTIF
10064 cat >> confdefs.h <<\EOF
10065 #define LWLIB_SCROLLBARS_MOTIF 1
10069 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
10070 Defining LWLIB_DIALOGS_MOTIF
10072 cat >> confdefs.h <<\EOF
10073 #define LWLIB_DIALOGS_MOTIF 1
10077 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
10078 Defining LWLIB_WIDGETS_MOTIF
10080 cat >> confdefs.h <<\EOF
10081 #define LWLIB_WIDGETS_MOTIF 1
10086 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
10087 echo " xemacs will be linked with \"menubar.o\""
10089 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
10090 echo " xemacs will be linked with \"scrollbar.o\""
10092 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
10093 echo " xemacs will be linked with \"dialog.o\""
10095 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
10096 echo " xemacs will be linked with \"toolbar.o\""
10099 if test "$with_gtk" = "yes"; then
10100 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
10101 echo " xemacs will be linked with \"menubar-gtk.o\""
10103 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
10104 echo " xemacs will be linked with \"scrollbar-gtk.o\""
10106 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
10107 echo " xemacs will be linked with \"dialog-gtk.o\""
10109 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
10110 echo " xemacs will be linked with \"toolbar-gtk.o\""
10112 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
10113 echo " xemacs will be linked with \"gui-gtk.o\""
10117 if test "$with_x11" = "yes"; then
10118 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
10119 echo " xemacs will be linked with \"menubar-x.o\""
10121 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
10122 echo " xemacs will be linked with \"scrollbar-x.o\""
10124 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
10125 echo " xemacs will be linked with \"dialog-x.o\""
10127 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
10128 echo " xemacs will be linked with \"toolbar-x.o\""
10130 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
10131 echo " xemacs will be linked with \"gui-x.o\""
10136 test -z "$with_mule" && with_mule=no
10137 test -z "$with_file_coding" && with_file_coding=no
10140 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
10141 { test "$extra_verbose" = "yes" && cat << \EOF
10142 Defining FILE_CODING
10144 cat >> confdefs.h <<\EOF
10145 #define FILE_CODING 1
10149 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
10150 echo " xemacs will be linked with \"file-coding.o\""
10154 concord_includes_found=no
10155 if test "$with_concord" != "no"; then
10156 ac_safe=`echo "concord.h" | sed 'y%./+-%__p_%'`
10157 echo $ac_n "checking for concord.h""... $ac_c" 1>&6
10158 echo "configure:10159: checking for concord.h" >&5
10160 cat > conftest.$ac_ext <<EOF
10161 #line 10162 "configure"
10162 #include "confdefs.h"
10163 #include <concord.h>
10165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10166 { (eval echo configure:10167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10168 if test -z "$ac_err"; then
10170 eval "ac_cv_header_$ac_safe=yes"
10173 echo "configure: failed program was:" >&5
10174 cat conftest.$ac_ext >&5
10176 eval "ac_cv_header_$ac_safe=no"
10179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10180 echo "$ac_t""yes" 1>&6
10183 echo "$ac_t""no" 1>&6
10188 if test "$concord_includes_found" = "no" -a "$with_concord" != "no" -a \
10189 -d "/usr/local/concord/include"; then
10190 save_c_switch_site="$c_switch_site"
10191 c_switch_site="$c_switch_site -I/usr/local/concord/include"
10192 ac_safe=`echo "concord.h" | sed 'y%./+-%__p_%'`
10193 echo $ac_n "checking for concord.h""... $ac_c" 1>&6
10194 echo "configure:10195: checking for concord.h" >&5
10196 cat > conftest.$ac_ext <<EOF
10197 #line 10198 "configure"
10198 #include "confdefs.h"
10199 #include <concord.h>
10201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10202 { (eval echo configure:10203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10203 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10204 if test -z "$ac_err"; then
10206 eval "ac_cv_header_$ac_safe=yes"
10209 echo "configure: failed program was:" >&5
10210 cat conftest.$ac_ext >&5
10212 eval "ac_cv_header_$ac_safe=no"
10215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10216 echo "$ac_t""yes" 1>&6
10217 concord_includes_found=yes
10219 echo "$ac_t""no" 1>&6
10222 if test "$concord_includes_found" != "yes"; then
10223 c_switch_site="$save_c_switch_site"
10228 test -z "$with_concord" && with_concord=yes
10229 if test "$with_concord" = "yes"; then
10230 { test "$extra_verbose" = "yes" && cat << \EOF
10231 Defining HAVE_CONCORD
10233 cat >> confdefs.h <<\EOF
10234 #define HAVE_CONCORD 1
10238 libs_x="-lconcord $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lconcord\" to \$libs_x"; fi
10239 extra_objs="$extra_objs concord.o" && if test "$extra_verbose" = "yes"; then
10240 echo " xemacs will be linked with \"concord.o\""
10244 test -z "$with_chise" && with_chise=yes
10245 if test "$with_chise" = "yes"; then
10248 with_text_coding=yes
10251 if test "$with_mule" = "yes" ; then
10252 echo "checking for Mule-related features" 1>&6
10253 echo "configure:10254: checking for Mule-related features" >&5
10254 { test "$extra_verbose" = "yes" && cat << \EOF
10257 cat >> confdefs.h <<\EOF
10263 chise_includes_found=no
10264 if test "$with_chise" != "no"; then
10265 ac_safe=`echo "chise.h" | sed 'y%./+-%__p_%'`
10266 echo $ac_n "checking for chise.h""... $ac_c" 1>&6
10267 echo "configure:10268: checking for chise.h" >&5
10269 cat > conftest.$ac_ext <<EOF
10270 #line 10271 "configure"
10271 #include "confdefs.h"
10274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10275 { (eval echo configure:10276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10277 if test -z "$ac_err"; then
10279 eval "ac_cv_header_$ac_safe=yes"
10282 echo "configure: failed program was:" >&5
10283 cat conftest.$ac_ext >&5
10285 eval "ac_cv_header_$ac_safe=no"
10288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10289 echo "$ac_t""yes" 1>&6
10292 echo "$ac_t""no" 1>&6
10297 if test "$chise_includes_found" = "no" -a "$with_chise" != "no" -a \
10298 -d "/usr/local/chise/include"; then
10299 save_c_switch_site="$c_switch_site"
10300 c_switch_site="$c_switch_site -I/usr/local/chise/include"
10301 ac_safe=`echo "chise.h" | sed 'y%./+-%__p_%'`
10302 echo $ac_n "checking for chise.h""... $ac_c" 1>&6
10303 echo "configure:10304: checking for chise.h" >&5
10305 cat > conftest.$ac_ext <<EOF
10306 #line 10307 "configure"
10307 #include "confdefs.h"
10310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10311 { (eval echo configure:10312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10313 if test -z "$ac_err"; then
10315 eval "ac_cv_header_$ac_safe=yes"
10318 echo "configure: failed program was:" >&5
10319 cat conftest.$ac_ext >&5
10321 eval "ac_cv_header_$ac_safe=no"
10324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10325 echo "$ac_t""yes" 1>&6
10326 chise_includes_found=yes
10328 echo "$ac_t""no" 1>&6
10331 if test "$chise_includes_found" != "yes"; then
10332 c_switch_site="$save_c_switch_site"
10337 test -z "$with_chise" && with_chise=yes
10338 if test "$with_chise" = "yes"; then
10339 { test "$extra_verbose" = "yes" && cat << \EOF
10340 Defining HAVE_CHISE
10342 cat >> confdefs.h <<\EOF
10343 #define HAVE_CHISE 1
10347 { test "$extra_verbose" = "yes" && cat << \EOF
10348 Defining HAVE_LIBCHISE
10350 cat >> confdefs.h <<\EOF
10351 #define HAVE_LIBCHISE 1
10355 libs_x="-lchise $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lchise\" to \$libs_x"; fi
10358 { test "$extra_verbose" = "yes" && cat << \EOF
10359 Defining FILE_CODING
10361 cat >> confdefs.h <<\EOF
10362 #define FILE_CODING 1
10366 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o" && if test "$extra_verbose" = "yes"; then
10367 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o\""
10369 if test "$with_utf_2000" = "yes" && test "$with_text_coding" = "yes"; then
10370 { test "$extra_verbose" = "yes" && cat << \EOF
10371 Defining TEXT_CODING
10373 cat >> confdefs.h <<\EOF
10374 #define TEXT_CODING 1
10378 extra_objs="$extra_objs text-coding.o" && if test "$extra_verbose" = "yes"; then
10379 echo " xemacs will be linked with \"text-coding.o\""
10382 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
10383 echo " xemacs will be linked with \"file-coding.o\""
10386 for ac_hdr in libintl.h
10388 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10389 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10390 echo "configure:10391: checking for $ac_hdr" >&5
10392 cat > conftest.$ac_ext <<EOF
10393 #line 10394 "configure"
10394 #include "confdefs.h"
10397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10398 { (eval echo configure:10399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10400 if test -z "$ac_err"; then
10402 eval "ac_cv_header_$ac_safe=yes"
10405 echo "configure: failed program was:" >&5
10406 cat conftest.$ac_ext >&5
10408 eval "ac_cv_header_$ac_safe=no"
10411 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10412 echo "$ac_t""yes" 1>&6
10413 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10414 { test "$extra_verbose" = "yes" && cat << EOF
10415 Defining $ac_tr_hdr
10417 cat >> confdefs.h <<EOF
10418 #define $ac_tr_hdr 1
10423 echo "$ac_t""no" 1>&6
10428 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
10429 echo "configure:10430: checking for strerror in -lintl" >&5
10430 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
10432 xe_check_libs=" -lintl "
10433 cat > conftest.$ac_ext <<EOF
10434 #line 10435 "configure"
10435 #include "confdefs.h"
10436 /* Override any gcc2 internal prototype to avoid an error. */
10437 /* We use char because int might match the return type of a gcc2
10438 builtin and then its argument prototype would still apply. */
10445 if { (eval echo configure:10446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10447 eval "ac_cv_lib_$ac_lib_var=yes"
10449 echo "configure: failed program was:" >&5
10450 cat conftest.$ac_ext >&5
10452 eval "ac_cv_lib_$ac_lib_var=no"
10457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10458 echo "$ac_t""yes" 1>&6
10459 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10460 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10461 { test "$extra_verbose" = "yes" && cat << EOF
10462 Defining $ac_tr_lib
10464 cat >> confdefs.h <<EOF
10465 #define $ac_tr_lib 1
10469 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
10472 echo "$ac_t""no" 1>&6
10477 if test "$with_utf_2000" = "yes" ; then
10478 { test "$extra_verbose" = "yes" && cat << \EOF
10479 Defining CHAR_IS_UCS4
10481 cat >> confdefs.h <<\EOF
10482 #define CHAR_IS_UCS4 1
10486 { test "$extra_verbose" = "yes" && cat << \EOF
10489 cat >> confdefs.h <<\EOF
10498 echo "checking for Mule input methods" 1>&6
10499 echo "configure:10500: checking for Mule input methods" >&5
10500 case "$with_xim" in "" | "yes" )
10501 echo "checking for XIM" 1>&6
10502 echo "configure:10503: checking for XIM" >&5
10504 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
10505 echo "configure:10506: checking for XOpenIM in -lX11" >&5
10506 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
10508 xe_check_libs=" -lX11 "
10509 cat > conftest.$ac_ext <<EOF
10510 #line 10511 "configure"
10511 #include "confdefs.h"
10512 /* Override any gcc2 internal prototype to avoid an error. */
10513 /* We use char because int might match the return type of a gcc2
10514 builtin and then its argument prototype would still apply. */
10521 if { (eval echo configure:10522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10523 eval "ac_cv_lib_$ac_lib_var=yes"
10525 echo "configure: failed program was:" >&5
10526 cat conftest.$ac_ext >&5
10528 eval "ac_cv_lib_$ac_lib_var=no"
10533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10534 echo "$ac_t""yes" 1>&6
10537 echo "$ac_t""no" 1>&6
10542 if test "$need_motif $have_lesstif" = "yes no"; then
10544 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10545 echo "configure:10546: checking for XmImMbLookupString in -lXm" >&5
10546 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10548 xe_check_libs=" -lXm "
10549 cat > conftest.$ac_ext <<EOF
10550 #line 10551 "configure"
10551 #include "confdefs.h"
10552 /* Override any gcc2 internal prototype to avoid an error. */
10553 /* We use char because int might match the return type of a gcc2
10554 builtin and then its argument prototype would still apply. */
10555 char XmImMbLookupString();
10558 XmImMbLookupString()
10561 if { (eval echo configure:10562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10563 eval "ac_cv_lib_$ac_lib_var=yes"
10565 echo "configure: failed program was:" >&5
10566 cat conftest.$ac_ext >&5
10568 eval "ac_cv_lib_$ac_lib_var=no"
10573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10574 echo "$ac_t""yes" 1>&6
10577 echo "$ac_t""no" 1>&6
10581 elif test "$have_motif $have_lesstif $with_xim" = "yes no no"; then
10583 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10584 echo "configure:10585: checking for XmImMbLookupString in -lXm" >&5
10585 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10587 xe_check_libs=" -lXm "
10588 cat > conftest.$ac_ext <<EOF
10589 #line 10590 "configure"
10590 #include "confdefs.h"
10591 /* Override any gcc2 internal prototype to avoid an error. */
10592 /* We use char because int might match the return type of a gcc2
10593 builtin and then its argument prototype would still apply. */
10594 char XmImMbLookupString();
10597 XmImMbLookupString()
10600 if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10602 eval "ac_cv_lib_$ac_lib_var=yes"
10604 echo "configure: failed program was:" >&5
10605 cat conftest.$ac_ext >&5
10607 eval "ac_cv_lib_$ac_lib_var=no"
10612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10613 echo "$ac_t""yes" 1>&6
10616 echo "$ac_t""no" 1>&6
10622 if test "$with_xim" != "no"; then
10623 { test "$extra_verbose" = "yes" && cat << \EOF
10626 cat >> confdefs.h <<\EOF
10631 if test "$with_xim" = "xlib"; then
10632 { test "$extra_verbose" = "yes" && cat << \EOF
10635 cat >> confdefs.h <<\EOF
10640 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10641 echo " xemacs will be linked with \"input-method-xlib.o\""
10644 if test "$with_xim" = "motif"; then
10645 { test "$extra_verbose" = "yes" && cat << \EOF
10648 cat >> confdefs.h <<\EOF
10649 #define XIM_MOTIF 1
10654 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10655 echo " xemacs will be linked with \"input-method-motif.o\""
10658 if test "$with_xim" = "motif"; then
10663 if test "$with_xfs" = "yes" ; then
10664 echo "checking for XFontSet" 1>&6
10665 echo "configure:10666: checking for XFontSet" >&5
10667 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10668 echo "configure:10669: checking for XmbDrawString in -lX11" >&5
10669 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10671 xe_check_libs=" -lX11 "
10672 cat > conftest.$ac_ext <<EOF
10673 #line 10674 "configure"
10674 #include "confdefs.h"
10675 /* Override any gcc2 internal prototype to avoid an error. */
10676 /* We use char because int might match the return type of a gcc2
10677 builtin and then its argument prototype would still apply. */
10678 char XmbDrawString();
10684 if { (eval echo configure:10685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10686 eval "ac_cv_lib_$ac_lib_var=yes"
10688 echo "configure: failed program was:" >&5
10689 cat conftest.$ac_ext >&5
10691 eval "ac_cv_lib_$ac_lib_var=no"
10696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10697 echo "$ac_t""yes" 1>&6
10700 echo "$ac_t""no" 1>&6
10705 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10706 { test "$extra_verbose" = "yes" && cat << \EOF
10707 Defining USE_XFONTSET
10709 cat >> confdefs.h <<\EOF
10710 #define USE_XFONTSET 1
10714 if test "$with_xim" = "no" ; then
10715 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10716 echo " xemacs will be linked with \"input-method-xlib.o\""
10721 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10722 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10723 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10724 echo "configure:10725: checking for wnn/jllib.h" >&5
10726 cat > conftest.$ac_ext <<EOF
10727 #line 10728 "configure"
10728 #include "confdefs.h"
10729 #include <wnn/jllib.h>
10731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10732 { (eval echo configure:10733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10734 if test -z "$ac_err"; then
10736 eval "ac_cv_header_$ac_safe=yes"
10739 echo "configure: failed program was:" >&5
10740 cat conftest.$ac_ext >&5
10742 eval "ac_cv_header_$ac_safe=no"
10745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10746 echo "$ac_t""yes" 1>&6
10749 echo "$ac_t""no" 1>&6
10753 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10754 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10755 echo "configure:10756: checking for wnn/commonhd.h" >&5
10757 cat > conftest.$ac_ext <<EOF
10758 #line 10759 "configure"
10759 #include "confdefs.h"
10760 #include <wnn/commonhd.h>
10762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10763 { (eval echo configure:10764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10765 if test -z "$ac_err"; then
10767 eval "ac_cv_header_$ac_safe=yes"
10770 echo "configure: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10773 eval "ac_cv_header_$ac_safe=no"
10776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10777 echo "$ac_t""yes" 1>&6
10780 echo "$ac_t""no" 1>&6
10784 if test "$with_wnn" != "no"; then
10785 for ac_func in crypt
10787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10788 echo "configure:10789: checking for $ac_func" >&5
10790 cat > conftest.$ac_ext <<EOF
10791 #line 10792 "configure"
10792 #include "confdefs.h"
10793 /* System header to define __stub macros and hopefully few prototypes,
10794 which can conflict with char $ac_func(); below. */
10795 #include <assert.h>
10796 /* Override any gcc2 internal prototype to avoid an error. */
10797 /* We use char because int might match the return type of a gcc2
10798 builtin and then its argument prototype would still apply. */
10803 /* The GNU C library defines this for functions which it implements
10804 to always fail with ENOSYS. Some functions are actually named
10805 something starting with __ and the normal name is an alias. */
10806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10814 if { (eval echo configure:10815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10816 eval "ac_cv_func_$ac_func=yes"
10818 echo "configure: failed program was:" >&5
10819 cat conftest.$ac_ext >&5
10821 eval "ac_cv_func_$ac_func=no"
10825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10826 echo "$ac_t""yes" 1>&6
10827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10828 { test "$extra_verbose" = "yes" && cat << EOF
10829 Defining $ac_tr_func
10831 cat >> confdefs.h <<EOF
10832 #define $ac_tr_func 1
10837 echo "$ac_t""no" 1>&6
10841 test "$ac_cv_func_crypt" != "yes" && {
10842 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10843 echo "configure:10844: checking for crypt in -lcrypt" >&5
10844 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10846 xe_check_libs=" -lcrypt "
10847 cat > conftest.$ac_ext <<EOF
10848 #line 10849 "configure"
10849 #include "confdefs.h"
10850 /* Override any gcc2 internal prototype to avoid an error. */
10851 /* We use char because int might match the return type of a gcc2
10852 builtin and then its argument prototype would still apply. */
10859 if { (eval echo configure:10860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10861 eval "ac_cv_lib_$ac_lib_var=yes"
10863 echo "configure: failed program was:" >&5
10864 cat conftest.$ac_ext >&5
10866 eval "ac_cv_lib_$ac_lib_var=no"
10871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10872 echo "$ac_t""yes" 1>&6
10873 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10874 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10875 { test "$extra_verbose" = "yes" && cat << EOF
10876 Defining $ac_tr_lib
10878 cat >> confdefs.h <<EOF
10879 #define $ac_tr_lib 1
10883 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10886 echo "$ac_t""no" 1>&6
10891 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10893 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10894 echo "configure:10895: checking for jl_dic_list_e in -lwnn" >&5
10895 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10897 xe_check_libs=" -lwnn "
10898 cat > conftest.$ac_ext <<EOF
10899 #line 10900 "configure"
10900 #include "confdefs.h"
10901 /* Override any gcc2 internal prototype to avoid an error. */
10902 /* We use char because int might match the return type of a gcc2
10903 builtin and then its argument prototype would still apply. */
10904 char jl_dic_list_e();
10910 if { (eval echo configure:10911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10912 eval "ac_cv_lib_$ac_lib_var=yes"
10914 echo "configure: failed program was:" >&5
10915 cat conftest.$ac_ext >&5
10917 eval "ac_cv_lib_$ac_lib_var=no"
10922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10923 echo "$ac_t""yes" 1>&6
10926 echo "$ac_t""no" 1>&6
10927 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10928 echo "configure:10929: checking for jl_dic_list_e in -lwnn4" >&5
10929 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10931 xe_check_libs=" -lwnn4 "
10932 cat > conftest.$ac_ext <<EOF
10933 #line 10934 "configure"
10934 #include "confdefs.h"
10935 /* Override any gcc2 internal prototype to avoid an error. */
10936 /* We use char because int might match the return type of a gcc2
10937 builtin and then its argument prototype would still apply. */
10938 char jl_dic_list_e();
10944 if { (eval echo configure:10945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10946 eval "ac_cv_lib_$ac_lib_var=yes"
10948 echo "configure: failed program was:" >&5
10949 cat conftest.$ac_ext >&5
10951 eval "ac_cv_lib_$ac_lib_var=no"
10956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10957 echo "$ac_t""yes" 1>&6
10960 echo "$ac_t""no" 1>&6
10961 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10962 echo "configure:10963: checking for jl_dic_list_e in -lwnn6" >&5
10963 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10965 xe_check_libs=" -lwnn6 "
10966 cat > conftest.$ac_ext <<EOF
10967 #line 10968 "configure"
10968 #include "confdefs.h"
10969 /* Override any gcc2 internal prototype to avoid an error. */
10970 /* We use char because int might match the return type of a gcc2
10971 builtin and then its argument prototype would still apply. */
10972 char jl_dic_list_e();
10978 if { (eval echo configure:10979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10980 eval "ac_cv_lib_$ac_lib_var=yes"
10982 echo "configure: failed program was:" >&5
10983 cat conftest.$ac_ext >&5
10985 eval "ac_cv_lib_$ac_lib_var=no"
10990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10991 echo "$ac_t""yes" 1>&6
10994 echo "$ac_t""no" 1>&6
10995 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10996 echo "configure:10997: checking for dic_list_e in -lwnn6_fromsrc" >&5
10997 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10999 xe_check_libs=" -lwnn6_fromsrc "
11000 cat > conftest.$ac_ext <<EOF
11001 #line 11002 "configure"
11002 #include "confdefs.h"
11003 /* Override any gcc2 internal prototype to avoid an error. */
11004 /* We use char because int might match the return type of a gcc2
11005 builtin and then its argument prototype would still apply. */
11012 if { (eval echo configure:11013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11014 eval "ac_cv_lib_$ac_lib_var=yes"
11016 echo "configure: failed program was:" >&5
11017 cat conftest.$ac_ext >&5
11019 eval "ac_cv_lib_$ac_lib_var=no"
11024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11025 echo "$ac_t""yes" 1>&6
11026 libwnn=wnn6_fromsrc
11028 echo "$ac_t""no" 1>&6
11043 test -z "$with_wnn" && with_wnn=yes
11044 if test "$with_wnn" = "yes"; then
11045 { test "$extra_verbose" = "yes" && cat << \EOF
11048 cat >> confdefs.h <<\EOF
11053 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
11054 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
11055 echo " xemacs will be linked with \"mule-wnnfns.o\""
11057 if test "$with_wnn6" != "no"; then
11059 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
11060 echo "configure:11061: checking for jl_fi_dic_list in -l$libwnn" >&5
11061 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
11063 xe_check_libs=" -l$libwnn "
11064 cat > conftest.$ac_ext <<EOF
11065 #line 11066 "configure"
11066 #include "confdefs.h"
11067 /* Override any gcc2 internal prototype to avoid an error. */
11068 /* We use char because int might match the return type of a gcc2
11069 builtin and then its argument prototype would still apply. */
11070 char jl_fi_dic_list();
11076 if { (eval echo configure:11077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11078 eval "ac_cv_lib_$ac_lib_var=yes"
11080 echo "configure: failed program was:" >&5
11081 cat conftest.$ac_ext >&5
11083 eval "ac_cv_lib_$ac_lib_var=no"
11088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11089 echo "$ac_t""yes" 1>&6
11092 echo "$ac_t""no" 1>&6
11096 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11099 cat >> confdefs.h <<\EOF
11107 canna_includes_found=no
11108 if test "$with_canna" != "no"; then
11109 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
11110 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
11111 echo "configure:11112: checking for canna/jrkanji.h" >&5
11113 cat > conftest.$ac_ext <<EOF
11114 #line 11115 "configure"
11115 #include "confdefs.h"
11116 #include <canna/jrkanji.h>
11118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11119 { (eval echo configure:11120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11121 if test -z "$ac_err"; then
11123 eval "ac_cv_header_$ac_safe=yes"
11126 echo "configure: failed program was:" >&5
11127 cat conftest.$ac_ext >&5
11129 eval "ac_cv_header_$ac_safe=no"
11132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11133 echo "$ac_t""yes" 1>&6
11134 canna_includes_found=yes
11136 echo "$ac_t""no" 1>&6
11140 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
11141 -d "/usr/local/canna/include"; then
11142 save_c_switch_site="$c_switch_site"
11143 c_switch_site="$c_switch_site -I/usr/local/canna/include"
11144 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
11145 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
11146 echo "configure:11147: checking for canna/jrkanji.h" >&5
11148 cat > conftest.$ac_ext <<EOF
11149 #line 11150 "configure"
11150 #include "confdefs.h"
11151 #include <canna/jrkanji.h>
11153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11154 { (eval echo configure:11155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11156 if test -z "$ac_err"; then
11158 eval "ac_cv_header_$ac_safe=yes"
11161 echo "configure: failed program was:" >&5
11162 cat conftest.$ac_ext >&5
11164 eval "ac_cv_header_$ac_safe=no"
11167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11168 echo "$ac_t""yes" 1>&6
11169 canna_includes_found=yes
11171 echo "$ac_t""no" 1>&6
11174 if test "$canna_includes_found" != "yes"; then
11175 c_switch_site="$save_c_switch_site"
11180 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
11181 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
11182 echo "configure:11183: checking for canna/RK.h" >&5
11184 cat > conftest.$ac_ext <<EOF
11185 #line 11186 "configure"
11186 #include "confdefs.h"
11187 #include <canna/RK.h>
11189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11190 { (eval echo configure:11191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11192 if test -z "$ac_err"; then
11194 eval "ac_cv_header_$ac_safe=yes"
11197 echo "configure: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11200 eval "ac_cv_header_$ac_safe=no"
11203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11204 echo "$ac_t""yes" 1>&6
11207 echo "$ac_t""no" 1>&6
11211 test -z "$with_canna" && {
11212 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
11213 echo "configure:11214: checking for RkBgnBun in -lRKC" >&5
11214 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
11216 xe_check_libs=" -lRKC "
11217 cat > conftest.$ac_ext <<EOF
11218 #line 11219 "configure"
11219 #include "confdefs.h"
11220 /* Override any gcc2 internal prototype to avoid an error. */
11221 /* We use char because int might match the return type of a gcc2
11222 builtin and then its argument prototype would still apply. */
11229 if { (eval echo configure:11230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11231 eval "ac_cv_lib_$ac_lib_var=yes"
11233 echo "configure: failed program was:" >&5
11234 cat conftest.$ac_ext >&5
11236 eval "ac_cv_lib_$ac_lib_var=no"
11241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11242 echo "$ac_t""yes" 1>&6
11245 echo "$ac_t""no" 1>&6
11250 test -z "$with_canna" && {
11251 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
11252 echo "configure:11253: checking for jrKanjiControl in -lcanna" >&5
11253 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
11255 xe_check_libs=" -lcanna "
11256 cat > conftest.$ac_ext <<EOF
11257 #line 11258 "configure"
11258 #include "confdefs.h"
11259 /* Override any gcc2 internal prototype to avoid an error. */
11260 /* We use char because int might match the return type of a gcc2
11261 builtin and then its argument prototype would still apply. */
11262 char jrKanjiControl();
11268 if { (eval echo configure:11269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11270 eval "ac_cv_lib_$ac_lib_var=yes"
11272 echo "configure: failed program was:" >&5
11273 cat conftest.$ac_ext >&5
11275 eval "ac_cv_lib_$ac_lib_var=no"
11280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11281 echo "$ac_t""yes" 1>&6
11284 echo "$ac_t""no" 1>&6
11289 test -z "$with_canna" && with_canna=yes
11290 if test "$with_canna" = "yes"; then
11291 { test "$extra_verbose" = "yes" && cat << \EOF
11292 Defining HAVE_CANNA
11294 cat >> confdefs.h <<\EOF
11295 #define HAVE_CANNA 1
11299 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
11300 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
11301 echo " xemacs will be linked with \"mule-canna.o\""
11305 else for feature in xim canna wnn; do
11306 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11307 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
11309 eval "with_${feature}=no"
11313 if test "$need_motif" = "yes" ; then
11314 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
11316 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
11317 echo "configure:11318: checking for layout_object_getvalue in -li18n" >&5
11318 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
11320 xe_check_libs=" -li18n "
11321 cat > conftest.$ac_ext <<EOF
11322 #line 11323 "configure"
11323 #include "confdefs.h"
11324 /* Override any gcc2 internal prototype to avoid an error. */
11325 /* We use char because int might match the return type of a gcc2
11326 builtin and then its argument prototype would still apply. */
11327 char layout_object_getvalue();
11330 layout_object_getvalue()
11333 if { (eval echo configure:11334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11335 eval "ac_cv_lib_$ac_lib_var=yes"
11337 echo "configure: failed program was:" >&5
11338 cat conftest.$ac_ext >&5
11340 eval "ac_cv_lib_$ac_lib_var=no"
11345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11346 echo "$ac_t""yes" 1>&6
11347 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
11349 echo "$ac_t""no" 1>&6
11354 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
11355 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
11356 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
11358 runpath="" runpath_dirs=""
11359 if test -n "$LD_RUN_PATH"; then
11360 runpath="$LD_RUN_PATH"
11361 elif test "$GCC" = "yes"; then
11362 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
11363 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
11364 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
11365 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
11366 case "$arg" in P,* | -L* | -R* )
11367 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
11369 xe_runpath_dir="$dir"
11370 test "$xe_runpath_dir" != "/lib" -a \
11371 "$xe_runpath_dir" != "/usr/lib" -a \
11372 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
11373 eval "$xe_add_unique_runpath_dir"
11378 ld_switch_run="$ld_switch_run_save"
11381 for arg in $ld_switch_site $ld_switch_x_site; do
11382 case "$arg" in -L*) {
11383 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
11384 test "$xe_runpath_dir" != "/lib" -a \
11385 "$xe_runpath_dir" != "/usr/lib" -a \
11386 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
11387 eval "$xe_add_unique_runpath_dir"
11390 if test "$opsys $need_motif" = "sol2 yes"; then
11391 xe_runpath_dir="/opt/SUNWdt/lib";
11392 eval "$xe_add_unique_runpath_dir";
11395 if test -n "$runpath"; then
11396 ld_switch_run="${dash_r}${runpath}"
11398 if test "$GCC" = "yes"; then
11399 set x $ld_switch_run; shift; ld_switch_run=""
11400 while test -n "$1"; do
11402 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
11403 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
11405 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
11410 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
11417 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
11419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11420 echo "configure:11421: checking for $ac_func" >&5
11422 cat > conftest.$ac_ext <<EOF
11423 #line 11424 "configure"
11424 #include "confdefs.h"
11425 /* System header to define __stub macros and hopefully few prototypes,
11426 which can conflict with char $ac_func(); below. */
11427 #include <assert.h>
11428 /* Override any gcc2 internal prototype to avoid an error. */
11429 /* We use char because int might match the return type of a gcc2
11430 builtin and then its argument prototype would still apply. */
11435 /* The GNU C library defines this for functions which it implements
11436 to always fail with ENOSYS. Some functions are actually named
11437 something starting with __ and the normal name is an alias. */
11438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11446 if { (eval echo configure:11447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11448 eval "ac_cv_func_$ac_func=yes"
11450 echo "configure: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11453 eval "ac_cv_func_$ac_func=no"
11457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11458 echo "$ac_t""yes" 1>&6
11459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11460 { test "$extra_verbose" = "yes" && cat << EOF
11461 Defining $ac_tr_func
11463 cat >> confdefs.h <<EOF
11464 #define $ac_tr_func 1
11469 echo "$ac_t""no" 1>&6
11474 if test "$ac_cv_func_getaddrinfo" != "no" ; then
11477 echo "configure: warning: Use of getaddrinfo is disabled for HP-UX 11.XX." 1>&2
11478 ac_cv_func_getaddrinfo=no
11484 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
11486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11487 echo "configure:11488: checking for $ac_func" >&5
11489 cat > conftest.$ac_ext <<EOF
11490 #line 11491 "configure"
11491 #include "confdefs.h"
11492 /* System header to define __stub macros and hopefully few prototypes,
11493 which can conflict with char $ac_func(); below. */
11494 #include <assert.h>
11495 /* Override any gcc2 internal prototype to avoid an error. */
11496 /* We use char because int might match the return type of a gcc2
11497 builtin and then its argument prototype would still apply. */
11502 /* The GNU C library defines this for functions which it implements
11503 to always fail with ENOSYS. Some functions are actually named
11504 something starting with __ and the normal name is an alias. */
11505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11513 if { (eval echo configure:11514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11515 eval "ac_cv_func_$ac_func=yes"
11517 echo "configure: failed program was:" >&5
11518 cat conftest.$ac_ext >&5
11520 eval "ac_cv_func_$ac_func=no"
11524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11525 echo "$ac_t""yes" 1>&6
11526 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11527 { test "$extra_verbose" = "yes" && cat << EOF
11528 Defining $ac_tr_func
11530 cat >> confdefs.h <<EOF
11531 #define $ac_tr_func 1
11536 echo "$ac_t""no" 1>&6
11541 echo $ac_n "checking for openpty""... $ac_c" 1>&6
11542 echo "configure:11543: checking for openpty" >&5
11544 cat > conftest.$ac_ext <<EOF
11545 #line 11546 "configure"
11546 #include "confdefs.h"
11547 /* System header to define __stub macros and hopefully few prototypes,
11548 which can conflict with char openpty(); below. */
11549 #include <assert.h>
11550 /* Override any gcc2 internal prototype to avoid an error. */
11551 /* We use char because int might match the return type of a gcc2
11552 builtin and then its argument prototype would still apply. */
11557 /* The GNU C library defines this for functions which it implements
11558 to always fail with ENOSYS. Some functions are actually named
11559 something starting with __ and the normal name is an alias. */
11560 #if defined (__stub_openpty) || defined (__stub___openpty)
11568 if { (eval echo configure:11569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11570 eval "ac_cv_func_openpty=yes"
11572 echo "configure: failed program was:" >&5
11573 cat conftest.$ac_ext >&5
11575 eval "ac_cv_func_openpty=no"
11579 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
11580 echo "$ac_t""yes" 1>&6
11583 echo "$ac_t""no" 1>&6
11586 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
11587 echo "configure:11588: checking for openpty in -lutil" >&5
11588 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
11590 xe_check_libs=" -lutil "
11591 cat > conftest.$ac_ext <<EOF
11592 #line 11593 "configure"
11593 #include "confdefs.h"
11594 /* Override any gcc2 internal prototype to avoid an error. */
11595 /* We use char because int might match the return type of a gcc2
11596 builtin and then its argument prototype would still apply. */
11603 if { (eval echo configure:11604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11605 eval "ac_cv_lib_$ac_lib_var=yes"
11607 echo "configure: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11610 eval "ac_cv_lib_$ac_lib_var=no"
11615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11616 echo "$ac_t""yes" 1>&6
11617 have_openpty=yes need_libutil=yes
11619 echo "$ac_t""no" 1>&6
11625 if test "$have_openpty" = "yes"; then
11626 { test "$extra_verbose" = "yes" && cat << \EOF
11627 Defining HAVE_OPENPTY
11629 cat >> confdefs.h <<\EOF
11630 #define HAVE_OPENPTY 1
11634 for ac_hdr in pty.h libutil.h util.h
11636 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11637 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11638 echo "configure:11639: checking for $ac_hdr" >&5
11640 cat > conftest.$ac_ext <<EOF
11641 #line 11642 "configure"
11642 #include "confdefs.h"
11645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11646 { (eval echo configure:11647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11648 if test -z "$ac_err"; then
11650 eval "ac_cv_header_$ac_safe=yes"
11653 echo "configure: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11656 eval "ac_cv_header_$ac_safe=no"
11659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11660 echo "$ac_t""yes" 1>&6
11661 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11662 { test "$extra_verbose" = "yes" && cat << EOF
11663 Defining $ac_tr_hdr
11665 cat >> confdefs.h <<EOF
11666 #define $ac_tr_hdr 1
11671 echo "$ac_t""no" 1>&6
11675 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11678 for ac_hdr in stropts.h
11680 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11681 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11682 echo "configure:11683: checking for $ac_hdr" >&5
11684 cat > conftest.$ac_ext <<EOF
11685 #line 11686 "configure"
11686 #include "confdefs.h"
11689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11690 { (eval echo configure:11691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11692 if test -z "$ac_err"; then
11694 eval "ac_cv_header_$ac_safe=yes"
11697 echo "configure: failed program was:" >&5
11698 cat conftest.$ac_ext >&5
11700 eval "ac_cv_header_$ac_safe=no"
11703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11704 echo "$ac_t""yes" 1>&6
11705 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11706 { test "$extra_verbose" = "yes" && cat << EOF
11707 Defining $ac_tr_hdr
11709 cat >> confdefs.h <<EOF
11710 #define $ac_tr_hdr 1
11715 echo "$ac_t""no" 1>&6
11719 if test "$ac_cv_header_stropts_h" = "yes"; then
11720 for ac_func in isastream
11722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11723 echo "configure:11724: checking for $ac_func" >&5
11725 cat > conftest.$ac_ext <<EOF
11726 #line 11727 "configure"
11727 #include "confdefs.h"
11728 /* System header to define __stub macros and hopefully few prototypes,
11729 which can conflict with char $ac_func(); below. */
11730 #include <assert.h>
11731 /* Override any gcc2 internal prototype to avoid an error. */
11732 /* We use char because int might match the return type of a gcc2
11733 builtin and then its argument prototype would still apply. */
11738 /* The GNU C library defines this for functions which it implements
11739 to always fail with ENOSYS. Some functions are actually named
11740 something starting with __ and the normal name is an alias. */
11741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11749 if { (eval echo configure:11750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11751 eval "ac_cv_func_$ac_func=yes"
11753 echo "configure: failed program was:" >&5
11754 cat conftest.$ac_ext >&5
11756 eval "ac_cv_func_$ac_func=no"
11760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11761 echo "$ac_t""yes" 1>&6
11762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11763 { test "$extra_verbose" = "yes" && cat << EOF
11764 Defining $ac_tr_func
11766 cat >> confdefs.h <<EOF
11767 #define $ac_tr_func 1
11772 echo "$ac_t""no" 1>&6
11776 for ac_hdr in strtio.h
11778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11780 echo "configure:11781: checking for $ac_hdr" >&5
11782 cat > conftest.$ac_ext <<EOF
11783 #line 11784 "configure"
11784 #include "confdefs.h"
11787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11788 { (eval echo configure:11789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11790 if test -z "$ac_err"; then
11792 eval "ac_cv_header_$ac_safe=yes"
11795 echo "configure: failed program was:" >&5
11796 cat conftest.$ac_ext >&5
11798 eval "ac_cv_header_$ac_safe=no"
11801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11802 echo "$ac_t""yes" 1>&6
11803 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11804 { test "$extra_verbose" = "yes" && cat << EOF
11805 Defining $ac_tr_hdr
11807 cat >> confdefs.h <<EOF
11808 #define $ac_tr_hdr 1
11813 echo "$ac_t""no" 1>&6
11818 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11819 echo " xemacs will be linked with \"realpath.o\""
11822 for ac_func in getloadavg
11824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11825 echo "configure:11826: checking for $ac_func" >&5
11827 cat > conftest.$ac_ext <<EOF
11828 #line 11829 "configure"
11829 #include "confdefs.h"
11830 /* System header to define __stub macros and hopefully few prototypes,
11831 which can conflict with char $ac_func(); below. */
11832 #include <assert.h>
11833 /* Override any gcc2 internal prototype to avoid an error. */
11834 /* We use char because int might match the return type of a gcc2
11835 builtin and then its argument prototype would still apply. */
11840 /* The GNU C library defines this for functions which it implements
11841 to always fail with ENOSYS. Some functions are actually named
11842 something starting with __ and the normal name is an alias. */
11843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11851 if { (eval echo configure:11852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11853 eval "ac_cv_func_$ac_func=yes"
11855 echo "configure: failed program was:" >&5
11856 cat conftest.$ac_ext >&5
11858 eval "ac_cv_func_$ac_func=no"
11862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11863 echo "$ac_t""yes" 1>&6
11864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11865 { test "$extra_verbose" = "yes" && cat << EOF
11866 Defining $ac_tr_func
11868 cat >> confdefs.h <<EOF
11869 #define $ac_tr_func 1
11874 echo "$ac_t""no" 1>&6
11879 if test "$ac_cv_func_getloadavg" = "yes"; then
11880 for ac_hdr in sys/loadavg.h
11882 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11883 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11884 echo "configure:11885: checking for $ac_hdr" >&5
11886 cat > conftest.$ac_ext <<EOF
11887 #line 11888 "configure"
11888 #include "confdefs.h"
11891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11892 { (eval echo configure:11893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11894 if test -z "$ac_err"; then
11896 eval "ac_cv_header_$ac_safe=yes"
11899 echo "configure: failed program was:" >&5
11900 cat conftest.$ac_ext >&5
11902 eval "ac_cv_header_$ac_safe=no"
11905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11906 echo "$ac_t""yes" 1>&6
11907 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11908 { test "$extra_verbose" = "yes" && cat << EOF
11909 Defining $ac_tr_hdr
11911 cat >> confdefs.h <<EOF
11912 #define $ac_tr_hdr 1
11917 echo "$ac_t""no" 1>&6
11922 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11923 echo " xemacs will be linked with \"getloadavg.o\""
11927 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11928 echo "configure:11929: checking for kstat_open in -lkstat" >&5
11929 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11931 xe_check_libs=" -lkstat "
11932 cat > conftest.$ac_ext <<EOF
11933 #line 11934 "configure"
11934 #include "confdefs.h"
11935 /* Override any gcc2 internal prototype to avoid an error. */
11936 /* We use char because int might match the return type of a gcc2
11937 builtin and then its argument prototype would still apply. */
11944 if { (eval echo configure:11945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11946 eval "ac_cv_lib_$ac_lib_var=yes"
11948 echo "configure: failed program was:" >&5
11949 cat conftest.$ac_ext >&5
11951 eval "ac_cv_lib_$ac_lib_var=no"
11956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11957 echo "$ac_t""yes" 1>&6
11958 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11959 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11960 { test "$extra_verbose" = "yes" && cat << EOF
11961 Defining $ac_tr_lib
11963 cat >> confdefs.h <<EOF
11964 #define $ac_tr_lib 1
11968 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11971 echo "$ac_t""no" 1>&6
11975 for ac_hdr in kstat.h
11977 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11978 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11979 echo "configure:11980: checking for $ac_hdr" >&5
11981 cat > conftest.$ac_ext <<EOF
11982 #line 11983 "configure"
11983 #include "confdefs.h"
11986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11987 { (eval echo configure:11988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11989 if test -z "$ac_err"; then
11991 eval "ac_cv_header_$ac_safe=yes"
11994 echo "configure: failed program was:" >&5
11995 cat conftest.$ac_ext >&5
11997 eval "ac_cv_header_$ac_safe=no"
12000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12001 echo "$ac_t""yes" 1>&6
12002 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12003 { test "$extra_verbose" = "yes" && cat << EOF
12004 Defining $ac_tr_hdr
12006 cat >> confdefs.h <<EOF
12007 #define $ac_tr_hdr 1
12012 echo "$ac_t""no" 1>&6
12018 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
12019 echo "configure:12020: checking for kvm_read in -lkvm" >&5
12020 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
12022 xe_check_libs=" -lkvm "
12023 cat > conftest.$ac_ext <<EOF
12024 #line 12025 "configure"
12025 #include "confdefs.h"
12026 /* Override any gcc2 internal prototype to avoid an error. */
12027 /* We use char because int might match the return type of a gcc2
12028 builtin and then its argument prototype would still apply. */
12035 if { (eval echo configure:12036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12037 eval "ac_cv_lib_$ac_lib_var=yes"
12039 echo "configure: failed program was:" >&5
12040 cat conftest.$ac_ext >&5
12042 eval "ac_cv_lib_$ac_lib_var=no"
12047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12048 echo "$ac_t""yes" 1>&6
12049 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12050 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12051 { test "$extra_verbose" = "yes" && cat << EOF
12052 Defining $ac_tr_lib
12054 cat >> confdefs.h <<EOF
12055 #define $ac_tr_lib 1
12059 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
12062 echo "$ac_t""no" 1>&6
12068 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
12069 echo "configure:12070: checking whether netdb declares h_errno" >&5
12070 cat > conftest.$ac_ext <<EOF
12071 #line 12072 "configure"
12072 #include "confdefs.h"
12078 if { (eval echo configure:12079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12080 echo "$ac_t""yes" 1>&6
12081 { test "$extra_verbose" = "yes" && cat << \EOF
12082 Defining HAVE_H_ERRNO
12084 cat >> confdefs.h <<\EOF
12085 #define HAVE_H_ERRNO 1
12090 echo "configure: failed program was:" >&5
12091 cat conftest.$ac_ext >&5
12093 echo "$ac_t""no" 1>&6
12097 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
12098 echo "configure:12099: checking for sigsetjmp" >&5
12099 cat > conftest.$ac_ext <<EOF
12100 #line 12101 "configure"
12101 #include "confdefs.h"
12102 #include <setjmp.h>
12104 sigjmp_buf bar; sigsetjmp (bar, 0);
12107 if { (eval echo configure:12108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12109 echo "$ac_t""yes" 1>&6
12110 { test "$extra_verbose" = "yes" && cat << \EOF
12111 Defining HAVE_SIGSETJMP
12113 cat >> confdefs.h <<\EOF
12114 #define HAVE_SIGSETJMP 1
12119 echo "configure: failed program was:" >&5
12120 cat conftest.$ac_ext >&5
12122 echo "$ac_t""no" 1>&6
12126 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
12127 echo "configure:12128: checking whether localtime caches TZ" >&5
12129 if test "$ac_cv_func_tzset" = "yes"; then
12130 cat > conftest.$ac_ext <<EOF
12131 #line 12132 "configure"
12132 #include "confdefs.h"
12135 # include <stdlib.h>
12137 extern char **environ;
12141 for (to = from = environ; (*to = *from); from++)
12142 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
12145 char TZ_GMT0[] = "TZ=GMT0";
12146 char TZ_PST8[] = "TZ=PST8";
12149 time_t now = time ((time_t *) 0);
12150 int hour_GMT0, hour_unset;
12151 if (putenv (TZ_GMT0) != 0)
12153 hour_GMT0 = localtime (&now)->tm_hour;
12155 hour_unset = localtime (&now)->tm_hour;
12156 if (putenv (TZ_PST8) != 0)
12158 if (localtime (&now)->tm_hour == hour_GMT0)
12161 if (localtime (&now)->tm_hour != hour_unset)
12166 if { (eval echo configure:12167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12168 emacs_cv_localtime_cache=no
12171 echo "configure: failed program was:" >&5
12172 cat conftest.$ac_ext >&5
12174 emacs_cv_localtime_cache=yes
12178 # If we lack tzset, report that localtime does not cache TZ,
12179 # since we can't invalidate the cache if we don't have tzset.
12180 emacs_cv_localtime_cache=no
12182 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
12183 if test $emacs_cv_localtime_cache = yes; then
12184 { test "$extra_verbose" = "yes" && cat << \EOF
12185 Defining LOCALTIME_CACHE
12187 cat >> confdefs.h <<\EOF
12188 #define LOCALTIME_CACHE 1
12194 if test "$HAVE_TIMEVAL" = "yes"; then
12195 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
12196 echo "configure:12197: checking whether gettimeofday accepts one or two arguments" >&5
12197 cat > conftest.$ac_ext <<EOF
12198 #line 12199 "configure"
12199 #include "confdefs.h"
12201 #ifdef TIME_WITH_SYS_TIME
12202 #include <sys/time.h>
12205 #ifdef HAVE_SYS_TIME_H
12206 #include <sys/time.h>
12214 struct timeval time;
12215 gettimeofday (&time, 0);
12219 if { (eval echo configure:12220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12221 echo "$ac_t""two" 1>&6
12223 echo "configure: failed program was:" >&5
12224 cat conftest.$ac_ext >&5
12226 echo "$ac_t""one" 1>&6
12227 { test "$extra_verbose" = "yes" && cat << \EOF
12228 Defining GETTIMEOFDAY_ONE_ARGUMENT
12230 cat >> confdefs.h <<\EOF
12231 #define GETTIMEOFDAY_ONE_ARGUMENT 1
12240 echo $ac_n "checking for inline""... $ac_c" 1>&6
12241 echo "configure:12242: checking for inline" >&5
12244 for ac_kw in inline __inline__ __inline; do
12245 cat > conftest.$ac_ext <<EOF
12246 #line 12247 "configure"
12247 #include "confdefs.h"
12253 if { (eval echo configure:12254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12255 ac_cv_c_inline=$ac_kw; break
12257 echo "configure: failed program was:" >&5
12258 cat conftest.$ac_ext >&5
12264 echo "$ac_t""$ac_cv_c_inline" 1>&6
12265 case "$ac_cv_c_inline" in
12267 no) { test "$extra_verbose" = "yes" && cat << \EOF
12270 cat >> confdefs.h <<\EOF
12275 *) { test "$extra_verbose" = "yes" && cat << EOF
12276 Defining inline = $ac_cv_c_inline
12278 cat >> confdefs.h <<EOF
12279 #define inline $ac_cv_c_inline
12285 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
12286 echo " xemacs will be linked with \"inline.o\""
12290 if test "$__DECC" != "yes"; then
12291 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12292 # for constant arguments. Useless!
12293 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
12294 echo "configure:12295: checking for working alloca.h" >&5
12296 cat > conftest.$ac_ext <<EOF
12297 #line 12298 "configure"
12298 #include "confdefs.h"
12299 #include <alloca.h>
12301 char *p = alloca(2 * sizeof(int));
12304 if { (eval echo configure:12305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12306 ac_cv_header_alloca_h=yes
12308 echo "configure: failed program was:" >&5
12309 cat conftest.$ac_ext >&5
12311 ac_cv_header_alloca_h=no
12315 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
12316 if test $ac_cv_header_alloca_h = yes; then
12317 { test "$extra_verbose" = "yes" && cat << \EOF
12318 Defining HAVE_ALLOCA_H
12320 cat >> confdefs.h <<\EOF
12321 #define HAVE_ALLOCA_H 1
12327 echo $ac_n "checking for alloca""... $ac_c" 1>&6
12328 echo "configure:12329: checking for alloca" >&5
12330 cat > conftest.$ac_ext <<EOF
12331 #line 12332 "configure"
12332 #include "confdefs.h"
12335 # define alloca __builtin_alloca
12338 # include <malloc.h>
12339 # define alloca _alloca
12342 # include <alloca.h>
12347 # ifndef alloca /* predefined by HP cc +Olibcalls */
12356 char *p = (char *) alloca(1);
12359 if { (eval echo configure:12360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12361 ac_cv_func_alloca_works=yes
12363 echo "configure: failed program was:" >&5
12364 cat conftest.$ac_ext >&5
12366 ac_cv_func_alloca_works=no
12370 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
12371 if test $ac_cv_func_alloca_works = yes; then
12372 { test "$extra_verbose" = "yes" && cat << \EOF
12373 Defining HAVE_ALLOCA
12375 cat >> confdefs.h <<\EOF
12376 #define HAVE_ALLOCA 1
12382 if test $ac_cv_func_alloca_works = no; then
12383 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12384 # that cause trouble. Some versions do not even contain alloca or
12385 # contain a buggy version. If you still want to use their alloca,
12386 # use ar to extract alloca.o from them instead of compiling alloca.c.
12387 ALLOCA=alloca.${ac_objext}
12388 { test "$extra_verbose" = "yes" && cat << \EOF
12391 cat >> confdefs.h <<\EOF
12397 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
12398 echo "configure:12399: checking whether alloca needs Cray hooks" >&5
12400 cat > conftest.$ac_ext <<EOF
12401 #line 12402 "configure"
12402 #include "confdefs.h"
12403 #if defined(CRAY) && ! defined(CRAY2)
12410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12411 egrep "webecray" >/dev/null 2>&1; then
12421 echo "$ac_t""$ac_cv_os_cray" 1>&6
12422 if test $ac_cv_os_cray = yes; then
12423 for ac_func in _getb67 GETB67 getb67; do
12424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12425 echo "configure:12426: checking for $ac_func" >&5
12427 cat > conftest.$ac_ext <<EOF
12428 #line 12429 "configure"
12429 #include "confdefs.h"
12430 /* System header to define __stub macros and hopefully few prototypes,
12431 which can conflict with char $ac_func(); below. */
12432 #include <assert.h>
12433 /* Override any gcc2 internal prototype to avoid an error. */
12434 /* We use char because int might match the return type of a gcc2
12435 builtin and then its argument prototype would still apply. */
12440 /* The GNU C library defines this for functions which it implements
12441 to always fail with ENOSYS. Some functions are actually named
12442 something starting with __ and the normal name is an alias. */
12443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12451 if { (eval echo configure:12452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12453 eval "ac_cv_func_$ac_func=yes"
12455 echo "configure: failed program was:" >&5
12456 cat conftest.$ac_ext >&5
12458 eval "ac_cv_func_$ac_func=no"
12462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12463 echo "$ac_t""yes" 1>&6
12464 { test "$extra_verbose" = "yes" && cat << EOF
12465 Defining CRAY_STACKSEG_END = $ac_func
12467 cat >> confdefs.h <<EOF
12468 #define CRAY_STACKSEG_END $ac_func
12474 echo "$ac_t""no" 1>&6
12480 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
12481 echo "configure:12482: checking stack direction for C alloca" >&5
12483 cat > conftest.$ac_ext <<EOF
12484 #line 12485 "configure"
12485 #include "confdefs.h"
12486 find_stack_direction ()
12488 static char *addr = 0;
12493 return find_stack_direction ();
12496 return (&dummy > addr) ? 1 : -1;
12500 exit (find_stack_direction() < 0);
12503 if { (eval echo configure:12504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12505 ac_cv_c_stack_direction=1
12508 echo "configure: failed program was:" >&5
12509 cat conftest.$ac_ext >&5
12511 ac_cv_c_stack_direction=-1
12515 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
12516 { test "$extra_verbose" = "yes" && cat << EOF
12517 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
12519 cat >> confdefs.h <<EOF
12520 #define STACK_DIRECTION $ac_cv_c_stack_direction
12526 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
12527 echo " xemacs will be linked with \"$ALLOCA\""
12531 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
12532 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
12533 echo "configure:12534: checking for vfork.h" >&5
12535 cat > conftest.$ac_ext <<EOF
12536 #line 12537 "configure"
12537 #include "confdefs.h"
12540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12541 { (eval echo configure:12542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12543 if test -z "$ac_err"; then
12545 eval "ac_cv_header_$ac_safe=yes"
12548 echo "configure: failed program was:" >&5
12549 cat conftest.$ac_ext >&5
12551 eval "ac_cv_header_$ac_safe=no"
12554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12555 echo "$ac_t""yes" 1>&6
12556 { test "$extra_verbose" = "yes" && cat << \EOF
12557 Defining HAVE_VFORK_H
12559 cat >> confdefs.h <<\EOF
12560 #define HAVE_VFORK_H 1
12565 echo "$ac_t""no" 1>&6
12568 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
12569 echo "configure:12570: checking for working vfork" >&5
12571 cat > conftest.$ac_ext <<EOF
12572 #line 12573 "configure"
12573 #include "confdefs.h"
12574 /* Thanks to Paul Eggert for this test. */
12576 #include <sys/types.h>
12577 #include <sys/stat.h>
12578 #ifdef HAVE_UNISTD_H
12579 #include <unistd.h>
12581 #ifdef HAVE_VFORK_H
12584 /* On some sparc systems, changes by the child to local and incoming
12585 argument registers are propagated back to the parent.
12586 The compiler is told about this with #include <vfork.h>,
12587 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
12588 Test for this by using a static variable whose address
12589 is put into a register that is clobbered by the vfork. */
12592 sparc_address_test (int arg)
12594 sparc_address_test (arg) int arg;
12597 static pid_t child;
12612 pid_t parent = getpid ();
12615 sparc_address_test ();
12620 /* Here is another test for sparc vfork register problems.
12621 This test uses lots of local variables, at least
12622 as many local variables as main has allocated so far
12623 including compiler temporaries. 4 locals are enough for
12624 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
12625 A buggy compiler should reuse the register of parent
12626 for one of the local variables, since it will think that
12627 parent can't possibly be used any more in this routine.
12628 Assigning to the local variable will thus munge parent
12629 in the parent process. */
12631 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12632 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12633 /* Convince the compiler that p..p7 are live; otherwise, it might
12634 use the same hardware register for all 8 local variables. */
12635 if (p != p1 || p != p2 || p != p3 || p != p4
12636 || p != p5 || p != p6 || p != p7)
12639 /* On some systems (e.g. IRIX 3.3),
12640 vfork doesn't separate parent from child file descriptors.
12641 If the child closes a descriptor before it execs or exits,
12642 this munges the parent's descriptor as well.
12643 Test for this by closing stdout in the child. */
12644 _exit(close(fileno(stdout)) != 0);
12649 while (wait(&status) != child)
12652 /* Was there some problem with vforking? */
12655 /* Did the child fail? (This shouldn't happen.) */
12658 /* Did the vfork/compiler bug occur? */
12659 || parent != getpid()
12661 /* Did the file descriptor bug occur? */
12662 || fstat(fileno(stdout), &st) != 0
12667 if { (eval echo configure:12668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12669 ac_cv_func_vfork_works=yes
12672 echo "configure: failed program was:" >&5
12673 cat conftest.$ac_ext >&5
12675 ac_cv_func_vfork_works=no
12679 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12680 if test $ac_cv_func_vfork_works = no; then
12681 { test "$extra_verbose" = "yes" && cat << \EOF
12682 Defining vfork = fork
12684 cat >> confdefs.h <<\EOF
12692 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12693 echo "configure:12694: checking for working strcoll" >&5
12695 cat > conftest.$ac_ext <<EOF
12696 #line 12697 "configure"
12697 #include "confdefs.h"
12698 #include <string.h>
12701 exit (strcoll ("abc", "def") >= 0 ||
12702 strcoll ("ABC", "DEF") >= 0 ||
12703 strcoll ("123", "456") >= 0);
12706 if { (eval echo configure:12707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12708 ac_cv_func_strcoll_works=yes
12711 echo "configure: failed program was:" >&5
12712 cat conftest.$ac_ext >&5
12714 ac_cv_func_strcoll_works=no
12718 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12719 if test $ac_cv_func_strcoll_works = yes; then
12720 { test "$extra_verbose" = "yes" && cat << \EOF
12721 Defining HAVE_STRCOLL
12723 cat >> confdefs.h <<\EOF
12724 #define HAVE_STRCOLL 1
12731 for ac_func in getpgrp
12733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12734 echo "configure:12735: checking for $ac_func" >&5
12736 cat > conftest.$ac_ext <<EOF
12737 #line 12738 "configure"
12738 #include "confdefs.h"
12739 /* System header to define __stub macros and hopefully few prototypes,
12740 which can conflict with char $ac_func(); below. */
12741 #include <assert.h>
12742 /* Override any gcc2 internal prototype to avoid an error. */
12743 /* We use char because int might match the return type of a gcc2
12744 builtin and then its argument prototype would still apply. */
12749 /* The GNU C library defines this for functions which it implements
12750 to always fail with ENOSYS. Some functions are actually named
12751 something starting with __ and the normal name is an alias. */
12752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12760 if { (eval echo configure:12761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12762 eval "ac_cv_func_$ac_func=yes"
12764 echo "configure: failed program was:" >&5
12765 cat conftest.$ac_ext >&5
12767 eval "ac_cv_func_$ac_func=no"
12771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12772 echo "$ac_t""yes" 1>&6
12773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12774 { test "$extra_verbose" = "yes" && cat << EOF
12775 Defining $ac_tr_func
12777 cat >> confdefs.h <<EOF
12778 #define $ac_tr_func 1
12783 echo "$ac_t""no" 1>&6
12787 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12788 echo "configure:12789: checking whether getpgrp takes no argument" >&5
12790 cat > conftest.$ac_ext <<EOF
12791 #line 12792 "configure"
12792 #include "confdefs.h"
12795 * If this system has a BSD-style getpgrp(),
12796 * which takes a pid argument, exit unsuccessfully.
12798 * Snarfed from Chet Ramey's bash pgrp.c test program
12801 #include <sys/types.h>
12804 int pg1, pg2, pg3, pg4;
12805 int ng, np, s, child;
12812 pg3 = getpgrp(pid);
12816 * If all of these values are the same, it's pretty sure that
12817 * we're on a system that ignores getpgrp's first argument.
12819 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12825 else if (child == 0) {
12828 * If this is Sys V, this will not work; pgrp will be
12829 * set to np because setpgrp just changes a pgrp to be
12830 * the same as the pid.
12833 ng = getpgrp(0); /* Same result for Sys V and BSD */
12846 if { (eval echo configure:12847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12848 ac_cv_func_getpgrp_void=yes
12851 echo "configure: failed program was:" >&5
12852 cat conftest.$ac_ext >&5
12854 ac_cv_func_getpgrp_void=no
12859 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12860 if test $ac_cv_func_getpgrp_void = yes; then
12861 { test "$extra_verbose" = "yes" && cat << \EOF
12862 Defining GETPGRP_VOID
12864 cat >> confdefs.h <<\EOF
12865 #define GETPGRP_VOID 1
12872 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12873 echo "configure:12874: checking for working mmap" >&5
12874 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12875 cat > conftest.$ac_ext <<EOF
12876 #line 12877 "configure"
12877 #include "confdefs.h"
12879 #include <unistd.h>
12881 #include <sys/mman.h>
12883 #ifndef MAP_VARIABLE
12884 #define MAP_VARIABLE 0
12888 #define MAP_FAILED -1
12891 int main (int argc, char *argv[])
12895 #ifndef MAP_ANONYMOUS
12896 fd = open ("/dev/zero", O_RDWR);
12899 #define MAP_ANONYMOUS 0
12901 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12902 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12903 fd, 0) != (void *) MAP_FAILED)
12905 perror ("conftest: mmap failed");
12909 if { (eval echo configure:12910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12914 echo "configure: failed program was:" >&5
12915 cat conftest.$ac_ext >&5
12919 rm -fr conftest* ;;
12921 echo "$ac_t""$have_mmap" 1>&6
12922 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12925 cat >> confdefs.h <<\EOF
12926 #define HAVE_MMAP 1
12931 case "$opsys" in cygwin*)
12932 test "$rel_alloc" = "default" && rel_alloc=no ;;
12934 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12935 if test "$rel_alloc $have_mmap" = "default yes"; then
12936 if test "$doug_lea_malloc" = "yes"; then
12937 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12938 echo "configure:12939: checking for M_MMAP_THRESHOLD" >&5
12939 cat > conftest.$ac_ext <<EOF
12940 #line 12941 "configure"
12941 #include "confdefs.h"
12942 #include <malloc.h>
12945 #ifndef M_MMAP_THRESHOLD
12946 #error No M_MMAP_THRESHOLD :-(
12947 !@+$%^&*_)(_ - unlikely to compile...
12952 if { (eval echo configure:12953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12954 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12956 echo "configure: failed program was:" >&5
12957 cat conftest.$ac_ext >&5
12959 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12966 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12969 cat >> confdefs.h <<\EOF
12970 #define REL_ALLOC 1
12975 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12976 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12977 echo "configure:12978: checking for termios.h" >&5
12979 cat > conftest.$ac_ext <<EOF
12980 #line 12981 "configure"
12981 #include "confdefs.h"
12982 #include <termios.h>
12984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12985 { (eval echo configure:12986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12987 if test -z "$ac_err"; then
12989 eval "ac_cv_header_$ac_safe=yes"
12992 echo "configure: failed program was:" >&5
12993 cat conftest.$ac_ext >&5
12995 eval "ac_cv_header_$ac_safe=no"
12998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12999 echo "$ac_t""yes" 1>&6
13000 { test "$extra_verbose" = "yes" && cat << \EOF
13001 Defining HAVE_TERMIOS
13003 cat >> confdefs.h <<\EOF
13004 #define HAVE_TERMIOS 1
13008 { test "$extra_verbose" = "yes" && cat << \EOF
13009 Defining SIGNALS_VIA_CHARACTERS
13011 cat >> confdefs.h <<\EOF
13012 #define SIGNALS_VIA_CHARACTERS 1
13016 { test "$extra_verbose" = "yes" && cat << \EOF
13019 cat >> confdefs.h <<\EOF
13020 #define NO_TERMIO 1
13025 echo "$ac_t""no" 1>&6
13026 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
13027 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
13028 echo "configure:13029: checking for termio.h" >&5
13030 cat > conftest.$ac_ext <<EOF
13031 #line 13032 "configure"
13032 #include "confdefs.h"
13033 #include <termio.h>
13035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13036 { (eval echo configure:13037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13038 if test -z "$ac_err"; then
13040 eval "ac_cv_header_$ac_safe=yes"
13043 echo "configure: failed program was:" >&5
13044 cat conftest.$ac_ext >&5
13046 eval "ac_cv_header_$ac_safe=no"
13049 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13050 echo "$ac_t""yes" 1>&6
13051 { test "$extra_verbose" = "yes" && cat << \EOF
13052 Defining HAVE_TERMIO
13054 cat >> confdefs.h <<\EOF
13055 #define HAVE_TERMIO 1
13060 echo "$ac_t""no" 1>&6
13067 echo $ac_n "checking for socket""... $ac_c" 1>&6
13068 echo "configure:13069: checking for socket" >&5
13070 cat > conftest.$ac_ext <<EOF
13071 #line 13072 "configure"
13072 #include "confdefs.h"
13073 /* System header to define __stub macros and hopefully few prototypes,
13074 which can conflict with char socket(); below. */
13075 #include <assert.h>
13076 /* Override any gcc2 internal prototype to avoid an error. */
13077 /* We use char because int might match the return type of a gcc2
13078 builtin and then its argument prototype would still apply. */
13083 /* The GNU C library defines this for functions which it implements
13084 to always fail with ENOSYS. Some functions are actually named
13085 something starting with __ and the normal name is an alias. */
13086 #if defined (__stub_socket) || defined (__stub___socket)
13094 if { (eval echo configure:13095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13096 eval "ac_cv_func_socket=yes"
13098 echo "configure: failed program was:" >&5
13099 cat conftest.$ac_ext >&5
13101 eval "ac_cv_func_socket=no"
13105 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
13106 echo "$ac_t""yes" 1>&6
13107 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
13108 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
13109 echo "configure:13110: checking for netinet/in.h" >&5
13111 cat > conftest.$ac_ext <<EOF
13112 #line 13113 "configure"
13113 #include "confdefs.h"
13114 #include <netinet/in.h>
13116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13117 { (eval echo configure:13118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13119 if test -z "$ac_err"; then
13121 eval "ac_cv_header_$ac_safe=yes"
13124 echo "configure: failed program was:" >&5
13125 cat conftest.$ac_ext >&5
13127 eval "ac_cv_header_$ac_safe=no"
13130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13131 echo "$ac_t""yes" 1>&6
13132 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
13133 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
13134 echo "configure:13135: checking for arpa/inet.h" >&5
13136 cat > conftest.$ac_ext <<EOF
13137 #line 13138 "configure"
13138 #include "confdefs.h"
13139 #include <arpa/inet.h>
13141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13142 { (eval echo configure:13143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13144 if test -z "$ac_err"; then
13146 eval "ac_cv_header_$ac_safe=yes"
13149 echo "configure: failed program was:" >&5
13150 cat conftest.$ac_ext >&5
13152 eval "ac_cv_header_$ac_safe=no"
13155 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13156 echo "$ac_t""yes" 1>&6
13158 { test "$extra_verbose" = "yes" && cat << \EOF
13159 Defining HAVE_SOCKETS
13161 cat >> confdefs.h <<\EOF
13162 #define HAVE_SOCKETS 1
13166 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
13167 echo "configure:13168: checking "for sun_len member in struct sockaddr_un"" >&5
13168 cat > conftest.$ac_ext <<EOF
13169 #line 13170 "configure"
13170 #include "confdefs.h"
13172 #include <sys/types.h>
13173 #include <sys/socket.h>
13174 #include <sys/un.h>
13177 static struct sockaddr_un x; x.sun_len = 1;
13180 if { (eval echo configure:13181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13182 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
13183 Defining HAVE_SOCKADDR_SUN_LEN
13185 cat >> confdefs.h <<\EOF
13186 #define HAVE_SOCKADDR_SUN_LEN 1
13191 echo "configure: failed program was:" >&5
13192 cat conftest.$ac_ext >&5
13194 echo "$ac_t""no" 1>&6
13197 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
13198 echo "configure:13199: checking "for ip_mreq struct in netinet/in.h"" >&5
13199 cat > conftest.$ac_ext <<EOF
13200 #line 13201 "configure"
13201 #include "confdefs.h"
13203 #include <sys/types.h>
13204 #include <netinet/in.h>
13207 static struct ip_mreq x;
13210 if { (eval echo configure:13211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13212 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
13213 Defining HAVE_MULTICAST
13215 cat >> confdefs.h <<\EOF
13216 #define HAVE_MULTICAST 1
13221 echo "configure: failed program was:" >&5
13222 cat conftest.$ac_ext >&5
13224 echo "$ac_t""no" 1>&6
13228 echo "$ac_t""no" 1>&6
13232 echo "$ac_t""no" 1>&6
13236 echo "$ac_t""no" 1>&6
13240 echo $ac_n "checking for msgget""... $ac_c" 1>&6
13241 echo "configure:13242: checking for msgget" >&5
13243 cat > conftest.$ac_ext <<EOF
13244 #line 13245 "configure"
13245 #include "confdefs.h"
13246 /* System header to define __stub macros and hopefully few prototypes,
13247 which can conflict with char msgget(); below. */
13248 #include <assert.h>
13249 /* Override any gcc2 internal prototype to avoid an error. */
13250 /* We use char because int might match the return type of a gcc2
13251 builtin and then its argument prototype would still apply. */
13256 /* The GNU C library defines this for functions which it implements
13257 to always fail with ENOSYS. Some functions are actually named
13258 something starting with __ and the normal name is an alias. */
13259 #if defined (__stub_msgget) || defined (__stub___msgget)
13267 if { (eval echo configure:13268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13269 eval "ac_cv_func_msgget=yes"
13271 echo "configure: failed program was:" >&5
13272 cat conftest.$ac_ext >&5
13274 eval "ac_cv_func_msgget=no"
13278 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
13279 echo "$ac_t""yes" 1>&6
13280 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
13281 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
13282 echo "configure:13283: checking for sys/ipc.h" >&5
13284 cat > conftest.$ac_ext <<EOF
13285 #line 13286 "configure"
13286 #include "confdefs.h"
13287 #include <sys/ipc.h>
13289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13290 { (eval echo configure:13291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13292 if test -z "$ac_err"; then
13294 eval "ac_cv_header_$ac_safe=yes"
13297 echo "configure: failed program was:" >&5
13298 cat conftest.$ac_ext >&5
13300 eval "ac_cv_header_$ac_safe=no"
13303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13304 echo "$ac_t""yes" 1>&6
13305 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
13306 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
13307 echo "configure:13308: checking for sys/msg.h" >&5
13309 cat > conftest.$ac_ext <<EOF
13310 #line 13311 "configure"
13311 #include "confdefs.h"
13312 #include <sys/msg.h>
13314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13315 { (eval echo configure:13316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13317 if test -z "$ac_err"; then
13319 eval "ac_cv_header_$ac_safe=yes"
13322 echo "configure: failed program was:" >&5
13323 cat conftest.$ac_ext >&5
13325 eval "ac_cv_header_$ac_safe=no"
13328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13329 echo "$ac_t""yes" 1>&6
13330 { test "$extra_verbose" = "yes" && cat << \EOF
13331 Defining HAVE_SYSVIPC
13333 cat >> confdefs.h <<\EOF
13334 #define HAVE_SYSVIPC 1
13339 echo "$ac_t""no" 1>&6
13343 echo "$ac_t""no" 1>&6
13347 echo "$ac_t""no" 1>&6
13351 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
13352 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
13353 echo "configure:13354: checking for dirent.h" >&5
13355 cat > conftest.$ac_ext <<EOF
13356 #line 13357 "configure"
13357 #include "confdefs.h"
13358 #include <dirent.h>
13360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13361 { (eval echo configure:13362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13363 if test -z "$ac_err"; then
13365 eval "ac_cv_header_$ac_safe=yes"
13368 echo "configure: failed program was:" >&5
13369 cat conftest.$ac_ext >&5
13371 eval "ac_cv_header_$ac_safe=no"
13374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13375 echo "$ac_t""yes" 1>&6
13376 { test "$extra_verbose" = "yes" && cat << \EOF
13377 Defining SYSV_SYSTEM_DIR
13379 cat >> confdefs.h <<\EOF
13380 #define SYSV_SYSTEM_DIR 1
13385 echo "$ac_t""no" 1>&6
13386 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
13387 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
13388 echo "configure:13389: checking for sys/dir.h" >&5
13390 cat > conftest.$ac_ext <<EOF
13391 #line 13392 "configure"
13392 #include "confdefs.h"
13393 #include <sys/dir.h>
13395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13396 { (eval echo configure:13397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13398 if test -z "$ac_err"; then
13400 eval "ac_cv_header_$ac_safe=yes"
13403 echo "configure: failed program was:" >&5
13404 cat conftest.$ac_ext >&5
13406 eval "ac_cv_header_$ac_safe=no"
13409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13410 echo "$ac_t""yes" 1>&6
13413 echo "$ac_t""no" 1>&6
13414 { test "$extra_verbose" = "yes" && cat << \EOF
13415 Defining NONSYSTEM_DIR_LIBRARY
13417 cat >> confdefs.h <<\EOF
13418 #define NONSYSTEM_DIR_LIBRARY 1
13427 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
13428 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
13429 echo "configure:13430: checking for nlist.h" >&5
13431 cat > conftest.$ac_ext <<EOF
13432 #line 13433 "configure"
13433 #include "confdefs.h"
13436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13437 { (eval echo configure:13438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13439 if test -z "$ac_err"; then
13441 eval "ac_cv_header_$ac_safe=yes"
13444 echo "configure: failed program was:" >&5
13445 cat conftest.$ac_ext >&5
13447 eval "ac_cv_header_$ac_safe=no"
13450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13451 echo "$ac_t""yes" 1>&6
13452 { test "$extra_verbose" = "yes" && cat << \EOF
13453 Defining NLIST_STRUCT
13455 cat >> confdefs.h <<\EOF
13456 #define NLIST_STRUCT 1
13461 echo "$ac_t""no" 1>&6
13466 echo "checking "for sound support"" 1>&6
13467 echo "configure:13468: checking "for sound support"" >&5
13468 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
13470 if test "$with_native_sound" != "no"; then
13471 if test -n "$native_sound_lib"; then
13472 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
13473 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
13474 echo "configure:13475: checking for multimedia/audio_device.h" >&5
13476 cat > conftest.$ac_ext <<EOF
13477 #line 13478 "configure"
13478 #include "confdefs.h"
13479 #include <multimedia/audio_device.h>
13481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13482 { (eval echo configure:13483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13484 if test -z "$ac_err"; then
13486 eval "ac_cv_header_$ac_safe=yes"
13489 echo "configure: failed program was:" >&5
13490 cat conftest.$ac_ext >&5
13492 eval "ac_cv_header_$ac_safe=no"
13495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13496 echo "$ac_t""yes" 1>&6
13497 sound_found=yes sound_cflags=""
13498 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
13499 echo " xemacs will be linked with \"sunplay.o\""
13502 echo "$ac_t""no" 1>&6
13507 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
13508 if test -d "/usr/demo/SOUND/include/multimedia"; then
13509 sun_sound_cflags="-I/usr/demo/SOUND/include"
13510 elif test -d "/usr/demo/SOUND/multimedia"; then
13511 sun_sound_cflags="-I/usr/demo/SOUND"
13514 if test -n "$native_sound_lib"; then
13515 sun_sound_lib="$native_sound_lib"
13516 elif test -r "/usr/demo/SOUND/lib/libaudio.a"; then
13517 sun_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
13518 elif test -r "/usr/demo/SOUND/libaudio.a"; then
13519 sun_sound_lib="/usr/demo/SOUND/libaudio.a"
13522 if test -n "$sun_sound_cflags" -a -n "$sun_sound_lib"; then
13523 native_sound_lib="$sun_sound_lib"
13524 sound_cflags="$sun_sound_cflags"
13526 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
13527 echo " xemacs will be linked with \"sunplay.o\""
13532 if test -z "$sound_found"; then
13533 case "$canonical" in
13535 if test -z "$native_sound_lib"; then
13537 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
13538 echo "configure:13539: checking for ALopenport in -laudio" >&5
13539 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
13541 xe_check_libs=" -laudio "
13542 cat > conftest.$ac_ext <<EOF
13543 #line 13544 "configure"
13544 #include "confdefs.h"
13545 /* Override any gcc2 internal prototype to avoid an error. */
13546 /* We use char because int might match the return type of a gcc2
13547 builtin and then its argument prototype would still apply. */
13554 if { (eval echo configure:13555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13556 eval "ac_cv_lib_$ac_lib_var=yes"
13558 echo "configure: failed program was:" >&5
13559 cat conftest.$ac_ext >&5
13561 eval "ac_cv_lib_$ac_lib_var=no"
13566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13567 echo "$ac_t""yes" 1>&6
13568 native_sound_lib="-laudio"
13570 echo "$ac_t""no" 1>&6
13575 if test -n "$native_sound_lib"; then
13576 sound_found=yes sound_cflags=""
13577 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
13578 echo " xemacs will be linked with \"sgiplay.o\""
13582 if test -z "$native_sound_lib"; then
13584 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
13585 echo "configure:13586: checking for AOpenAudio in -lAlib" >&5
13586 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
13588 xe_check_libs=" -lAlib "
13589 cat > conftest.$ac_ext <<EOF
13590 #line 13591 "configure"
13591 #include "confdefs.h"
13592 /* Override any gcc2 internal prototype to avoid an error. */
13593 /* We use char because int might match the return type of a gcc2
13594 builtin and then its argument prototype would still apply. */
13601 if { (eval echo configure:13602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13603 eval "ac_cv_lib_$ac_lib_var=yes"
13605 echo "configure: failed program was:" >&5
13606 cat conftest.$ac_ext >&5
13608 eval "ac_cv_lib_$ac_lib_var=no"
13613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13614 echo "$ac_t""yes" 1>&6
13615 native_sound_lib="-lAlib"
13617 echo "$ac_t""no" 1>&6
13622 if test -n "$native_sound_lib"; then
13624 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
13625 echo " xemacs will be linked with \"hpplay.o\""
13627 if test "$GCC" = "yes" # Kludge city
13628 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
13629 else sound_cflags="+e -I/usr/audio/examples"
13635 if test -z "$sound_found"; then
13636 if test "$with_msw" = "yes"; then
13642 if test -z "$sound_found"; then
13643 for dir in "machine" "sys" "linux"; do
13644 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13645 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13646 echo "configure:13647: checking for ${dir}/soundcard.h" >&5
13648 cat > conftest.$ac_ext <<EOF
13649 #line 13650 "configure"
13650 #include "confdefs.h"
13651 #include <${dir}/soundcard.h>
13653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13654 { (eval echo configure:13655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13656 if test -z "$ac_err"; then
13658 eval "ac_cv_header_$ac_safe=yes"
13661 echo "configure: failed program was:" >&5
13662 cat conftest.$ac_ext >&5
13664 eval "ac_cv_header_$ac_safe=no"
13667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13668 echo "$ac_t""yes" 1>&6
13671 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13672 echo " xemacs will be linked with \"linuxplay.o\""
13674 { test "$extra_verbose" = "yes" && cat << EOF
13675 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13677 cat >> confdefs.h <<EOF
13678 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13684 echo "$ac_t""no" 1>&6
13690 test "$sound_found" = "yes" && with_native_sound=yes
13693 if test "$with_native_sound" = "yes"; then
13694 { test "$extra_verbose" = "yes" && cat << \EOF
13695 Defining HAVE_NATIVE_SOUND
13697 cat >> confdefs.h <<\EOF
13698 #define HAVE_NATIVE_SOUND 1
13702 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13705 if test "$with_nas_sound" != "no"; then
13706 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13707 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13708 echo "configure:13709: checking for audio/audiolib.h" >&5
13710 cat > conftest.$ac_ext <<EOF
13711 #line 13712 "configure"
13712 #include "confdefs.h"
13713 #include <audio/audiolib.h>
13715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13716 { (eval echo configure:13717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13718 if test -z "$ac_err"; then
13720 eval "ac_cv_header_$ac_safe=yes"
13723 echo "configure: failed program was:" >&5
13724 cat conftest.$ac_ext >&5
13726 eval "ac_cv_header_$ac_safe=no"
13729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13730 echo "$ac_t""yes" 1>&6
13733 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13734 echo "configure:13735: checking for AuOpenServer in -laudio" >&5
13735 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13737 xe_check_libs=" -laudio "
13738 cat > conftest.$ac_ext <<EOF
13739 #line 13740 "configure"
13740 #include "confdefs.h"
13741 /* Override any gcc2 internal prototype to avoid an error. */
13742 /* We use char because int might match the return type of a gcc2
13743 builtin and then its argument prototype would still apply. */
13744 char AuOpenServer();
13750 if { (eval echo configure:13751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13752 eval "ac_cv_lib_$ac_lib_var=yes"
13754 echo "configure: failed program was:" >&5
13755 cat conftest.$ac_ext >&5
13757 eval "ac_cv_lib_$ac_lib_var=no"
13762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13763 echo "$ac_t""yes" 1>&6
13766 echo "$ac_t""no" 1>&6
13771 echo "$ac_t""no" 1>&6
13774 if test "$have_nas_sound" = "yes"; then
13776 { test "$extra_verbose" = "yes" && cat << \EOF
13777 Defining HAVE_NAS_SOUND
13779 cat >> confdefs.h <<\EOF
13780 #define HAVE_NAS_SOUND 1
13784 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13785 echo " xemacs will be linked with \"nas.o\""
13787 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13788 cat > conftest.$ac_ext <<EOF
13789 #line 13790 "configure"
13790 #include "confdefs.h"
13791 #include <audio/Xtutil.h>
13793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13794 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13798 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13799 Defining NAS_NO_ERROR_JUMP
13801 cat >> confdefs.h <<\EOF
13802 #define NAS_NO_ERROR_JUMP 1
13810 test "$with_nas_sound" = "yes" && \
13811 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13816 if test "$with_esd_sound" != "no"; then
13817 # Extract the first word of "esd-config", so it can be a program name with args.
13818 set dummy esd-config; ac_word=$2
13819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13820 echo "configure:13821: checking for $ac_word" >&5
13822 if test -n "$have_esd_config"; then
13823 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13827 for ac_dir in $ac_dummy; do
13828 test -z "$ac_dir" && ac_dir=.
13829 if test -f $ac_dir/$ac_word; then
13830 ac_cv_prog_have_esd_config="yes"
13835 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13837 have_esd_config="$ac_cv_prog_have_esd_config"
13838 if test -n "$have_esd_config"; then
13839 echo "$ac_t""$have_esd_config" 1>&6
13841 echo "$ac_t""no" 1>&6
13844 if test "$have_esd_config" = "yes"; then
13845 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13846 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
13847 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13848 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13849 echo "configure:13850: checking for esd_play_stream" >&5
13851 cat > conftest.$ac_ext <<EOF
13852 #line 13853 "configure"
13853 #include "confdefs.h"
13854 /* System header to define __stub macros and hopefully few prototypes,
13855 which can conflict with char esd_play_stream(); below. */
13856 #include <assert.h>
13857 /* Override any gcc2 internal prototype to avoid an error. */
13858 /* We use char because int might match the return type of a gcc2
13859 builtin and then its argument prototype would still apply. */
13860 char esd_play_stream();
13864 /* The GNU C library defines this for functions which it implements
13865 to always fail with ENOSYS. Some functions are actually named
13866 something starting with __ and the normal name is an alias. */
13867 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13875 if { (eval echo configure:13876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13877 eval "ac_cv_func_esd_play_stream=yes"
13879 echo "configure: failed program was:" >&5
13880 cat conftest.$ac_ext >&5
13882 eval "ac_cv_func_esd_play_stream=no"
13886 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13887 echo "$ac_t""yes" 1>&6
13890 echo "$ac_t""no" 1>&6
13891 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13896 if test "$have_esd_sound" = "yes"; then
13899 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13900 echo " xemacs will be linked with \"esd.o\""
13902 { test "$extra_verbose" = "yes" && cat << \EOF
13903 Defining HAVE_ESD_SOUND
13905 cat >> confdefs.h <<\EOF
13906 #define HAVE_ESD_SOUND 1
13911 test "$with_esd_sound" = "yes" && \
13912 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13917 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13918 echo " xemacs will be linked with \"miscplay.o\""
13922 test -z "$with_tty" && with_tty=yes
13924 if test "$with_tty" = "yes" ; then
13925 echo "checking for TTY-related features" 1>&6
13926 echo "configure:13927: checking for TTY-related features" >&5
13927 { test "$extra_verbose" = "yes" && cat << \EOF
13930 cat >> confdefs.h <<\EOF
13935 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
13936 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\""
13939 if test -z "$with_ncurses"; then
13941 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13942 echo "configure:13943: checking for tgetent in -lncurses" >&5
13943 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13945 xe_check_libs=" -lncurses "
13946 cat > conftest.$ac_ext <<EOF
13947 #line 13948 "configure"
13948 #include "confdefs.h"
13949 /* Override any gcc2 internal prototype to avoid an error. */
13950 /* We use char because int might match the return type of a gcc2
13951 builtin and then its argument prototype would still apply. */
13958 if { (eval echo configure:13959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13960 eval "ac_cv_lib_$ac_lib_var=yes"
13962 echo "configure: failed program was:" >&5
13963 cat conftest.$ac_ext >&5
13965 eval "ac_cv_lib_$ac_lib_var=no"
13970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13971 echo "$ac_t""yes" 1>&6
13974 echo "$ac_t""no" 1>&6
13980 if test "$with_ncurses" = "yes"; then
13981 { test "$extra_verbose" = "yes" && cat << \EOF
13982 Defining HAVE_NCURSES
13984 cat >> confdefs.h <<\EOF
13985 #define HAVE_NCURSES 1
13989 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13990 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13991 echo "configure:13992: checking for ncurses/curses.h" >&5
13993 cat > conftest.$ac_ext <<EOF
13994 #line 13995 "configure"
13995 #include "confdefs.h"
13996 #include <ncurses/curses.h>
13998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13999 { (eval echo configure:14000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14001 if test -z "$ac_err"; then
14003 eval "ac_cv_header_$ac_safe=yes"
14006 echo "configure: failed program was:" >&5
14007 cat conftest.$ac_ext >&5
14009 eval "ac_cv_header_$ac_safe=no"
14012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14013 echo "$ac_t""yes" 1>&6
14014 curses_h_file=ncurses/curses.h
14016 echo "$ac_t""no" 1>&6
14019 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
14020 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
14021 echo "configure:14022: checking for ncurses/term.h" >&5
14023 cat > conftest.$ac_ext <<EOF
14024 #line 14025 "configure"
14025 #include "confdefs.h"
14026 #include <ncurses/term.h>
14028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14029 { (eval echo configure:14030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14031 if test -z "$ac_err"; then
14033 eval "ac_cv_header_$ac_safe=yes"
14036 echo "configure: failed program was:" >&5
14037 cat conftest.$ac_ext >&5
14039 eval "ac_cv_header_$ac_safe=no"
14042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14043 echo "$ac_t""yes" 1>&6
14044 term_h_file=ncurses/term.h
14046 echo "$ac_t""no" 1>&6
14049 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
14050 echo " xemacs will be linked with \"terminfo.o\""
14052 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
14054 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
14055 save_c_switch_site="$c_switch_site"
14056 c_switch_site="$c_switch_site -I/usr/include/ncurses"
14057 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
14058 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
14059 echo "configure:14060: checking for ncurses/curses.h" >&5
14061 cat > conftest.$ac_ext <<EOF
14062 #line 14063 "configure"
14063 #include "confdefs.h"
14064 #include <ncurses/curses.h>
14066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14067 { (eval echo configure:14068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14069 if test -z "$ac_err"; then
14071 eval "ac_cv_header_$ac_safe=yes"
14074 echo "configure: failed program was:" >&5
14075 cat conftest.$ac_ext >&5
14077 eval "ac_cv_header_$ac_safe=no"
14080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14081 echo "$ac_t""yes" 1>&6
14082 curses_h_file=ncurses/curses.h
14084 echo "$ac_t""no" 1>&6
14087 if test "$ac_cv_header_ncurses_curses_h" = "yes"
14088 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
14089 else c_switch_site="$save_c_switch_site"
14092 else if test "$have_terminfo" = "yes"; then
14093 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
14094 echo " xemacs will be linked with \"terminfo.o\""
14096 if test -n "$libs_termcap"; then
14097 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
14099 for lib in curses termlib termcap; do
14101 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
14102 echo "configure:14103: checking for tgetent in -l$lib" >&5
14103 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
14105 xe_check_libs=" -l$lib "
14106 cat > conftest.$ac_ext <<EOF
14107 #line 14108 "configure"
14108 #include "confdefs.h"
14109 /* Override any gcc2 internal prototype to avoid an error. */
14110 /* We use char because int might match the return type of a gcc2
14111 builtin and then its argument prototype would still apply. */
14118 if { (eval echo configure:14119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14120 eval "ac_cv_lib_$ac_lib_var=yes"
14122 echo "configure: failed program was:" >&5
14123 cat conftest.$ac_ext >&5
14125 eval "ac_cv_lib_$ac_lib_var=no"
14130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14131 echo "$ac_t""yes" 1>&6
14132 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
14134 echo "$ac_t""no" 1>&6
14140 else if test -n "$libs_termcap" -a "$opsys" = "openbsd"; then
14142 echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6
14143 echo "configure:14144: checking for tgoto in -ltermcap" >&5
14144 ac_lib_var=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'`
14146 xe_check_libs=" -ltermcap "
14147 cat > conftest.$ac_ext <<EOF
14148 #line 14149 "configure"
14149 #include "confdefs.h"
14150 /* Override any gcc2 internal prototype to avoid an error. */
14151 /* We use char because int might match the return type of a gcc2
14152 builtin and then its argument prototype would still apply. */
14159 if { (eval echo configure:14160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14161 eval "ac_cv_lib_$ac_lib_var=yes"
14163 echo "configure: failed program was:" >&5
14164 cat conftest.$ac_ext >&5
14166 eval "ac_cv_lib_$ac_lib_var=no"
14171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14172 echo "$ac_t""yes" 1>&6
14173 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14174 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14175 { test "$extra_verbose" = "yes" && cat << EOF
14176 Defining $ac_tr_lib
14178 cat >> confdefs.h <<EOF
14179 #define $ac_tr_lib 1
14183 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
14186 echo "$ac_t""no" 1>&6
14187 extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
14188 echo " xemacs will be linked with \"tparam.o\""
14194 extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
14195 echo " xemacs will be linked with \"tparam.o\""
14198 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
14199 if test -n "$libs_termcap"; then
14200 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
14203 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
14204 echo "configure:14205: checking for tgetent in -lcurses" >&5
14205 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
14207 xe_check_libs=" -lcurses "
14208 cat > conftest.$ac_ext <<EOF
14209 #line 14210 "configure"
14210 #include "confdefs.h"
14211 /* Override any gcc2 internal prototype to avoid an error. */
14212 /* We use char because int might match the return type of a gcc2
14213 builtin and then its argument prototype would still apply. */
14220 if { (eval echo configure:14221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14222 eval "ac_cv_lib_$ac_lib_var=yes"
14224 echo "configure: failed program was:" >&5
14225 cat conftest.$ac_ext >&5
14227 eval "ac_cv_lib_$ac_lib_var=no"
14232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14233 echo "$ac_t""yes" 1>&6
14234 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
14236 echo "$ac_t""no" 1>&6
14237 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
14238 echo "configure:14239: checking for tgetent in -ltermcap" >&5
14239 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
14241 xe_check_libs=" -ltermcap "
14242 cat > conftest.$ac_ext <<EOF
14243 #line 14244 "configure"
14244 #include "confdefs.h"
14245 /* Override any gcc2 internal prototype to avoid an error. */
14246 /* We use char because int might match the return type of a gcc2
14247 builtin and then its argument prototype would still apply. */
14254 if { (eval echo configure:14255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14256 eval "ac_cv_lib_$ac_lib_var=yes"
14258 echo "configure: failed program was:" >&5
14259 cat conftest.$ac_ext >&5
14261 eval "ac_cv_lib_$ac_lib_var=no"
14266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14267 echo "$ac_t""yes" 1>&6
14268 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
14270 echo "$ac_t""no" 1>&6
14271 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
14272 echo " xemacs will be linked with \"termcap.o\""
14283 { test "$extra_verbose" = "yes" && cat << EOF
14284 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
14286 cat >> confdefs.h <<EOF
14287 #define CURSES_H_FILE "${curses_h_file-curses.h}"
14291 { test "$extra_verbose" = "yes" && cat << EOF
14292 Defining TERM_H_FILE = "${term_h_file-term.h}"
14294 cat >> confdefs.h <<EOF
14295 #define TERM_H_FILE "${term_h_file-term.h}"
14300 if test "$with_gpm" != "no"; then
14301 ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
14302 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
14303 echo "configure:14304: checking for gpm.h" >&5
14305 cat > conftest.$ac_ext <<EOF
14306 #line 14307 "configure"
14307 #include "confdefs.h"
14310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14311 { (eval echo configure:14312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14313 if test -z "$ac_err"; then
14315 eval "ac_cv_header_$ac_safe=yes"
14318 echo "configure: failed program was:" >&5
14319 cat conftest.$ac_ext >&5
14321 eval "ac_cv_header_$ac_safe=no"
14324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14325 echo "$ac_t""yes" 1>&6
14328 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
14329 echo "configure:14330: checking for Gpm_Open in -lgpm" >&5
14330 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
14332 xe_check_libs=" -lgpm "
14333 cat > conftest.$ac_ext <<EOF
14334 #line 14335 "configure"
14335 #include "confdefs.h"
14336 /* Override any gcc2 internal prototype to avoid an error. */
14337 /* We use char because int might match the return type of a gcc2
14338 builtin and then its argument prototype would still apply. */
14345 if { (eval echo configure:14346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14347 eval "ac_cv_lib_$ac_lib_var=yes"
14349 echo "configure: failed program was:" >&5
14350 cat conftest.$ac_ext >&5
14352 eval "ac_cv_lib_$ac_lib_var=no"
14357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14358 echo "$ac_t""yes" 1>&6
14361 echo "$ac_t""no" 1>&6
14366 echo "$ac_t""no" 1>&6
14369 if test "$have_gpm" = "yes"; then
14371 { test "$extra_verbose" = "yes" && cat << \EOF
14374 cat >> confdefs.h <<\EOF
14379 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
14380 echo " xemacs will be linked with \"gpmevent.o\""
14382 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
14383 elif test "$with_gpm" = "yes"; then
14384 { echo "Error:" "GPM requested, but gpm.h or libgpm seems to be missing." >&2; exit 1; }
14390 else for feature in ncurses gpm; do
14391 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
14392 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
14394 eval "with_${feature}=no"
14397 test "$with_x11" = "yes" -o "$with_tty" = "yes" -o "$need_event_unixoid" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
14398 echo " xemacs will be linked with \"event-unixoid.o\""
14402 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14403 != "no no no" && echo "checking for database support" 1>&6
14404 echo "configure:14405: checking for database support" >&5
14406 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
14407 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
14408 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
14409 echo "configure:14410: checking for ndbm.h" >&5
14411 cat > conftest.$ac_ext <<EOF
14412 #line 14413 "configure"
14413 #include "confdefs.h"
14416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14417 { (eval echo configure:14418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14419 if test -z "$ac_err"; then
14421 eval "ac_cv_header_$ac_safe=yes"
14424 echo "configure: failed program was:" >&5
14425 cat conftest.$ac_ext >&5
14427 eval "ac_cv_header_$ac_safe=no"
14430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14431 echo "$ac_t""yes" 1>&6
14434 echo "$ac_t""no" 1>&6
14436 test "$with_database_gdbm" = "yes" -o \
14437 "$with_database_dbm" = "yes" && \
14438 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
14439 with_database_gdbm=no with_database_dbm=no
14444 if test "$with_database_gdbm" != "no"; then
14446 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
14447 echo "configure:14448: checking for dbm_open in -lgdbm" >&5
14448 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
14450 xe_check_libs=" -lgdbm "
14451 cat > conftest.$ac_ext <<EOF
14452 #line 14453 "configure"
14453 #include "confdefs.h"
14454 /* Override any gcc2 internal prototype to avoid an error. */
14455 /* We use char because int might match the return type of a gcc2
14456 builtin and then its argument prototype would still apply. */
14463 if { (eval echo configure:14464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14465 eval "ac_cv_lib_$ac_lib_var=yes"
14467 echo "configure: failed program was:" >&5
14468 cat conftest.$ac_ext >&5
14470 eval "ac_cv_lib_$ac_lib_var=no"
14475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14476 echo "$ac_t""yes" 1>&6
14477 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
14479 echo "$ac_t""no" 1>&6
14480 if test "$with_database_gdbm" = "yes"; then
14481 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
14483 with_database_gdbm=no
14489 if test "$with_database_dbm" != "no"; then
14490 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14491 echo "configure:14492: checking for dbm_open" >&5
14493 cat > conftest.$ac_ext <<EOF
14494 #line 14495 "configure"
14495 #include "confdefs.h"
14496 /* System header to define __stub macros and hopefully few prototypes,
14497 which can conflict with char dbm_open(); below. */
14498 #include <assert.h>
14499 /* Override any gcc2 internal prototype to avoid an error. */
14500 /* We use char because int might match the return type of a gcc2
14501 builtin and then its argument prototype would still apply. */
14506 /* The GNU C library defines this for functions which it implements
14507 to always fail with ENOSYS. Some functions are actually named
14508 something starting with __ and the normal name is an alias. */
14509 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
14517 if { (eval echo configure:14518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14519 eval "ac_cv_func_dbm_open=yes"
14521 echo "configure: failed program was:" >&5
14522 cat conftest.$ac_ext >&5
14524 eval "ac_cv_func_dbm_open=no"
14528 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
14529 echo "$ac_t""yes" 1>&6
14530 with_database_dbm=yes libdbm=
14532 echo "$ac_t""no" 1>&6
14535 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14536 echo "configure:14537: checking for dbm_open in -ldbm" >&5
14537 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
14539 xe_check_libs=" -ldbm "
14540 cat > conftest.$ac_ext <<EOF
14541 #line 14542 "configure"
14542 #include "confdefs.h"
14543 /* Override any gcc2 internal prototype to avoid an error. */
14544 /* We use char because int might match the return type of a gcc2
14545 builtin and then its argument prototype would still apply. */
14552 if { (eval echo configure:14553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14554 eval "ac_cv_lib_$ac_lib_var=yes"
14556 echo "configure: failed program was:" >&5
14557 cat conftest.$ac_ext >&5
14559 eval "ac_cv_lib_$ac_lib_var=no"
14564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14565 echo "$ac_t""yes" 1>&6
14566 with_database_dbm=yes libdbm=-ldbm
14568 echo "$ac_t""no" 1>&6
14569 test "$with_database_dbm" = "yes" && \
14570 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
14571 with_database_dbm=no
14579 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
14580 test "$with_database_gdbm" = "yes" -o \
14581 "$with_database_dbm" = "yes" && \
14582 { test "$extra_verbose" = "yes" && cat << \EOF
14585 cat >> confdefs.h <<\EOF
14591 echo $ac_n "checking for u_int8_t""... $ac_c" 1>&6
14592 echo "configure:14593: checking for u_int8_t" >&5
14594 cat > conftest.$ac_ext <<EOF
14595 #line 14596 "configure"
14596 #include "confdefs.h"
14597 #include <sys/types.h>
14599 #include <stdlib.h>
14600 #include <stddef.h>
14603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14604 egrep "(^|[^a-zA-Z_0-9])u_int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14606 ac_cv_type_u_int8_t=yes
14609 ac_cv_type_u_int8_t=no
14613 echo "$ac_t""$ac_cv_type_u_int8_t" 1>&6
14614 if test $ac_cv_type_u_int8_t = no; then
14615 { test "$extra_verbose" = "yes" && cat << \EOF
14616 Defining u_int8_t = uint8_t
14618 cat >> confdefs.h <<\EOF
14619 #define u_int8_t uint8_t
14625 if test $ac_cv_type_u_int8_t = yes; then
14626 { test "$extra_verbose" = "yes" && cat << \EOF
14627 Defining HAVE_U_INT8_T = 1
14629 cat >> confdefs.h <<\EOF
14630 #define HAVE_U_INT8_T 1
14635 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
14636 echo "configure:14637: checking for u_int16_t" >&5
14638 cat > conftest.$ac_ext <<EOF
14639 #line 14640 "configure"
14640 #include "confdefs.h"
14641 #include <sys/types.h>
14643 #include <stdlib.h>
14644 #include <stddef.h>
14647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14648 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14650 ac_cv_type_u_int16_t=yes
14653 ac_cv_type_u_int16_t=no
14657 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
14658 if test $ac_cv_type_u_int16_t = no; then
14659 { test "$extra_verbose" = "yes" && cat << \EOF
14660 Defining u_int16_t = uint16_t
14662 cat >> confdefs.h <<\EOF
14663 #define u_int16_t uint16_t
14669 if test $ac_cv_type_u_int16_t = yes; then
14670 { test "$extra_verbose" = "yes" && cat << \EOF
14671 Defining HAVE_U_INT16_T = 1
14673 cat >> confdefs.h <<\EOF
14674 #define HAVE_U_INT16_T 1
14679 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
14680 echo "configure:14681: checking for u_int32_t" >&5
14682 cat > conftest.$ac_ext <<EOF
14683 #line 14684 "configure"
14684 #include "confdefs.h"
14685 #include <sys/types.h>
14687 #include <stdlib.h>
14688 #include <stddef.h>
14691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14692 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14694 ac_cv_type_u_int32_t=yes
14697 ac_cv_type_u_int32_t=no
14701 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
14702 if test $ac_cv_type_u_int32_t = no; then
14703 { test "$extra_verbose" = "yes" && cat << \EOF
14704 Defining u_int32_t = uint32_t
14706 cat >> confdefs.h <<\EOF
14707 #define u_int32_t uint32_t
14713 if test $ac_cv_type_u_int32_t = yes; then
14714 { test "$extra_verbose" = "yes" && cat << \EOF
14715 Defining HAVE_U_INT32_T = 1
14717 cat >> confdefs.h <<\EOF
14718 #define HAVE_U_INT32_T 1
14723 echo $ac_n "checking for u_int64_t""... $ac_c" 1>&6
14724 echo "configure:14725: checking for u_int64_t" >&5
14726 cat > conftest.$ac_ext <<EOF
14727 #line 14728 "configure"
14728 #include "confdefs.h"
14729 #include <sys/types.h>
14731 #include <stdlib.h>
14732 #include <stddef.h>
14735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14736 egrep "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14738 ac_cv_type_u_int64_t=yes
14741 ac_cv_type_u_int64_t=no
14745 echo "$ac_t""$ac_cv_type_u_int64_t" 1>&6
14746 if test $ac_cv_type_u_int64_t = no; then
14747 { test "$extra_verbose" = "yes" && cat << \EOF
14748 Defining u_int64_t = uint64_t
14750 cat >> confdefs.h <<\EOF
14751 #define u_int64_t uint64_t
14757 if test $ac_cv_type_u_int64_t = yes; then
14758 { test "$extra_verbose" = "yes" && cat << \EOF
14759 Defining HAVE_U_INT64_T = 1
14761 cat >> confdefs.h <<\EOF
14762 #define HAVE_U_INT64_T 1
14768 if test "$with_database_berkdb" != "no"; then
14769 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
14770 echo "configure:14771: checking for Berkeley db.h" >&5
14771 for header in "db/db.h" "db.h"; do
14774 cat > conftest.$ac_ext <<EOF
14775 #line 14776 "configure"
14776 #include "confdefs.h"
14778 #include <stdlib.h>
14779 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14780 #ifdef HAVE_INTTYPES_H
14781 #define __BIT_TYPES_DEFINED__
14782 #include <inttypes.h>
14791 if { (eval echo configure:14792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14793 db_h_file="$header"; break
14795 echo "configure: failed program was:" >&5
14796 cat conftest.$ac_ext >&5
14801 cat > conftest.$ac_ext <<EOF
14802 #line 14803 "configure"
14803 #include "confdefs.h"
14805 #include <stdlib.h>
14806 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14807 #ifdef HAVE_INTTYPES_H
14808 #define __BIT_TYPES_DEFINED__
14809 #include <inttypes.h>
14811 typedef uint8_t u_int8_t;
14813 #if !HAVE_U_INT16_T
14814 typedef uint16_t u_int16_t;
14816 #if !HAVE_U_INT32_T
14817 typedef uint32_t u_int32_t;
14819 #ifdef WE_DONT_NEED_QUADS
14820 #if !HAVE_U_INT64_T
14821 typedef uint64_t u_int64_t;
14832 if { (eval echo configure:14833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14834 db_h_file="$header"; break
14836 echo "configure: failed program was:" >&5
14837 cat conftest.$ac_ext >&5
14843 if test -z "$db_h_file"
14844 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
14845 else echo "$ac_t""$db_h_file" 1>&6
14848 if test "$with_database_berkdb" != "no"; then
14849 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
14850 echo "configure:14851: checking for Berkeley DB version" >&5
14851 cat > conftest.$ac_ext <<EOF
14852 #line 14853 "configure"
14853 #include "confdefs.h"
14854 #include <$db_h_file>
14855 #if DB_VERSION_MAJOR > 1
14860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14861 egrep "yes" >/dev/null 2>&1; then
14863 cat > conftest.$ac_ext <<EOF
14864 #line 14865 "configure"
14865 #include "confdefs.h"
14866 #include <$db_h_file>
14867 #if DB_VERSION_MAJOR > 2
14872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14873 egrep "yes" >/dev/null 2>&1; then
14875 echo "$ac_t""3" 1>&6; dbfunc=db_create
14879 echo "$ac_t""2" 1>&6; dbfunc=db_open
14886 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14890 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14891 echo "configure:14892: checking for $dbfunc" >&5
14893 cat > conftest.$ac_ext <<EOF
14894 #line 14895 "configure"
14895 #include "confdefs.h"
14896 /* System header to define __stub macros and hopefully few prototypes,
14897 which can conflict with char $dbfunc(); below. */
14898 #include <assert.h>
14899 /* Override any gcc2 internal prototype to avoid an error. */
14900 /* We use char because int might match the return type of a gcc2
14901 builtin and then its argument prototype would still apply. */
14906 /* The GNU C library defines this for functions which it implements
14907 to always fail with ENOSYS. Some functions are actually named
14908 something starting with __ and the normal name is an alias. */
14909 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
14917 if { (eval echo configure:14918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14919 eval "ac_cv_func_$dbfunc=yes"
14921 echo "configure: failed program was:" >&5
14922 cat conftest.$ac_ext >&5
14924 eval "ac_cv_func_$dbfunc=no"
14928 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
14929 echo "$ac_t""yes" 1>&6
14930 with_database_berkdb=yes need_libdb=no
14932 echo "$ac_t""no" 1>&6
14935 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14936 echo "configure:14937: checking for $dbfunc in -ldb" >&5
14937 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14939 xe_check_libs=" -ldb "
14940 cat > conftest.$ac_ext <<EOF
14941 #line 14942 "configure"
14942 #include "confdefs.h"
14943 /* Override any gcc2 internal prototype to avoid an error. */
14944 /* We use char because int might match the return type of a gcc2
14945 builtin and then its argument prototype would still apply. */
14952 if { (eval echo configure:14953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14954 eval "ac_cv_lib_$ac_lib_var=yes"
14956 echo "configure: failed program was:" >&5
14957 cat conftest.$ac_ext >&5
14959 eval "ac_cv_lib_$ac_lib_var=no"
14964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14965 echo "$ac_t""yes" 1>&6
14966 with_database_berkdb=yes need_libdb=yes
14968 echo "$ac_t""no" 1>&6
14976 if test "$with_database_berkdb" = "yes"; then
14977 { test "$extra_verbose" = "yes" && cat << EOF
14978 Defining DB_H_FILE = "$db_h_file"
14980 cat >> confdefs.h <<EOF
14981 #define DB_H_FILE "$db_h_file"
14985 { test "$extra_verbose" = "yes" && cat << \EOF
14986 Defining HAVE_BERKELEY_DB
14988 cat >> confdefs.h <<\EOF
14989 #define HAVE_BERKELEY_DB 1
14993 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14994 else with_database_berkdb=no
14998 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14999 != "no no no"; then
15000 { test "$extra_verbose" = "yes" && cat << \EOF
15001 Defining HAVE_DATABASE
15003 cat >> confdefs.h <<\EOF
15004 #define HAVE_DATABASE 1
15008 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
15009 echo " xemacs will be linked with \"database.o\""
15011 if test "$with_utf_2000" = "yes" -a "$with_chise" != "yes" ; then
15012 { test "$extra_verbose" = "yes" && cat << \EOF
15013 Defining HAVE_CHISE
15015 cat >> confdefs.h <<\EOF
15016 #define HAVE_CHISE 1
15023 if test "$with_socks" = "yes"; then
15025 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
15026 echo "configure:15027: checking for SOCKSinit in -lsocks" >&5
15027 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
15029 xe_check_libs=" -lsocks "
15030 cat > conftest.$ac_ext <<EOF
15031 #line 15032 "configure"
15032 #include "confdefs.h"
15033 /* Override any gcc2 internal prototype to avoid an error. */
15034 /* We use char because int might match the return type of a gcc2
15035 builtin and then its argument prototype would still apply. */
15042 if { (eval echo configure:15043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15044 eval "ac_cv_lib_$ac_lib_var=yes"
15046 echo "configure: failed program was:" >&5
15047 cat conftest.$ac_ext >&5
15049 eval "ac_cv_lib_$ac_lib_var=no"
15054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
15055 echo "$ac_t""yes" 1>&6
15056 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15057 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15058 { test "$extra_verbose" = "yes" && cat << EOF
15059 Defining $ac_tr_lib
15061 cat >> confdefs.h <<EOF
15062 #define $ac_tr_lib 1
15066 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
15069 echo "$ac_t""no" 1>&6
15073 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
15074 Defining HAVE_SOCKS
15076 cat >> confdefs.h <<\EOF
15077 #define HAVE_SOCKS 1
15083 if test "$usage_tracking" = "yes"; then
15084 { test "$extra_verbose" = "yes" && cat << \EOF
15085 Defining USAGE_TRACKING
15087 cat >> confdefs.h <<\EOF
15088 #define USAGE_TRACKING 1
15092 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
15095 if test "$with_modules" != "no"; then
15096 echo "checking for module support" 1>&6
15097 echo "configure:15098: checking for module support" >&5
15099 if test "$with_msw" = "yes"; then
15103 darwin) have_dl=yes; { test "$extra_verbose" = "yes" && cat << \EOF
15106 cat >> confdefs.h <<\EOF
15107 #define HAVE_DYLD 1
15111 *) ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
15112 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
15113 echo "configure:15114: checking for dlfcn.h" >&5
15115 cat > conftest.$ac_ext <<EOF
15116 #line 15117 "configure"
15117 #include "confdefs.h"
15120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15121 { (eval echo configure:15122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15123 if test -z "$ac_err"; then
15125 eval "ac_cv_header_$ac_safe=yes"
15128 echo "configure: failed program was:" >&5
15129 cat conftest.$ac_ext >&5
15131 eval "ac_cv_header_$ac_safe=no"
15134 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15135 echo "$ac_t""yes" 1>&6
15137 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
15138 echo "configure:15139: checking for dlopen in -lc" >&5
15139 cat > conftest.$ac_ext <<EOF
15140 #line 15141 "configure"
15141 #include "confdefs.h"
15147 if { (eval echo configure:15148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15151 echo "configure: failed program was:" >&5
15152 cat conftest.$ac_ext >&5
15155 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
15156 echo "configure:15157: checking for dlopen in -ldl" >&5
15157 ac_save_LIBS="$LIBS"
15159 cat > conftest.$ac_ext <<EOF
15160 #line 15161 "configure"
15161 #include "confdefs.h"
15167 if { (eval echo configure:15168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15171 echo "configure: failed program was:" >&5
15172 cat conftest.$ac_ext >&5
15174 LIBS="$ac_save_LIBS"
15181 echo "$ac_t""no" 1>&6
15184 if test -n "$have_dl"; then
15185 { test "$extra_verbose" = "yes" && cat << \EOF
15186 Defining HAVE_DLOPEN
15188 cat >> confdefs.h <<\EOF
15189 #define HAVE_DLOPEN 1
15195 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
15196 echo "configure:15197: checking for shl_load in -ldld" >&5
15197 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
15199 xe_check_libs=" -ldld "
15200 cat > conftest.$ac_ext <<EOF
15201 #line 15202 "configure"
15202 #include "confdefs.h"
15203 /* Override any gcc2 internal prototype to avoid an error. */
15204 /* We use char because int might match the return type of a gcc2
15205 builtin and then its argument prototype would still apply. */
15212 if { (eval echo configure:15213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15214 eval "ac_cv_lib_$ac_lib_var=yes"
15216 echo "configure: failed program was:" >&5
15217 cat conftest.$ac_ext >&5
15219 eval "ac_cv_lib_$ac_lib_var=no"
15224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
15225 echo "$ac_t""yes" 1>&6
15226 libdl=dld have_dl=yes;
15227 { test "$extra_verbose" = "yes" && cat << \EOF
15228 Defining HAVE_SHL_LOAD
15230 cat >> confdefs.h <<\EOF
15231 #define HAVE_SHL_LOAD 1
15236 echo "$ac_t""no" 1>&6
15238 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
15239 echo "configure:15240: checking for dld_init in -ldld" >&5
15240 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
15242 xe_check_libs=" -ldld "
15243 cat > conftest.$ac_ext <<EOF
15244 #line 15245 "configure"
15245 #include "confdefs.h"
15246 /* Override any gcc2 internal prototype to avoid an error. */
15247 /* We use char because int might match the return type of a gcc2
15248 builtin and then its argument prototype would still apply. */
15255 if { (eval echo configure:15256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15257 eval "ac_cv_lib_$ac_lib_var=yes"
15259 echo "configure: failed program was:" >&5
15260 cat conftest.$ac_ext >&5
15262 eval "ac_cv_lib_$ac_lib_var=no"
15267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
15268 echo "$ac_t""yes" 1>&6
15269 libdl=dld have_dl=yes;
15270 { test "$extra_verbose" = "yes" && cat << \EOF
15271 Defining HAVE_DLD_INIT
15273 cat >> confdefs.h <<\EOF
15274 #define HAVE_DLD_INIT 1
15279 echo "$ac_t""no" 1>&6
15290 if test -n "$have_dl"; then
15297 ld_dynamic_link_flags=
15299 xealias=$internal_configuration
15301 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
15302 echo "configure:15303: checking how to build dynamic libraries for ${xehost}" >&5
15303 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
15306 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
15309 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
15310 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
15311 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
15313 case "$xehost_os" in
15315 # AIX sometimes has problems with the GCC collect2 program. For some
15316 # reason, if we set the COLLECT_NAMES environment variable, the problems
15317 # vanish in a puff of smoke.
15318 if test "${COLLECT_NAMES+set}" != set; then
15320 export COLLECT_NAMES
15325 # Now see if the compiler is really GCC.
15326 if test "$GCC" = "yes"; then
15329 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
15330 echo "configure:15331: checking checking whether we are using GNU C" >&5
15331 cat > conftest.$ac_ext <<EOF
15332 #line 15333 "configure"
15333 #include "confdefs.h"
15340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15341 egrep "yes" >/dev/null 2>&1; then
15350 echo "$ac_t""${XEGCC}" 1>&6
15353 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
15354 echo "configure:15355: checking how to produce PIC code" >&5
15357 can_build_shared=yes
15358 if test "$XEGCC" = yes -o "$__ICC" = yes; then
15361 case "$xehost_os" in
15362 aix[3-9]* | irix[5-9]* | osf[3-9])
15363 # PIC is the default for these OSes.
15367 # We can build DLLs from non-PIC.
15370 # FIXME: we need at least 68020 code to build shared libraries, but
15371 # adding the `-m68020' flag to GCC prevents building anything better,
15373 dll_cflags='-m68020 -resident32 -malways-restore-a4'
15375 *cygwin* | *mingw* )
15376 # PIC is the default
15383 # PORTME Check for PIC flags for the system compiler.
15384 case "$xehost_os" in
15385 hpux9* | hpux1[0-9]*)
15386 # Is there a better link_static_flag that works with the bundled CC?
15393 # PIC (with -KPIC) is the default.
15397 # We can build DLLs from non-PIC.
15401 # All OSF/1 code is PIC.
15406 # All AIX code is PIC.
15411 dll_cflags='-belf -Kpic'
15445 can_build_shared=no
15450 if test -n "$dll_cflags"; then
15451 echo "$ac_t""${dll_cflags}" 1>&6
15453 # Check to make sure the dll_cflags actually works.
15454 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
15455 echo "configure:15456: checking if PIC flag ${dll_cflags} really works" >&5
15456 save_CFLAGS="$CFLAGS"
15457 CFLAGS="$CFLAGS $dll_cflags -DPIC"
15458 cat > conftest.$ac_ext <<EOF
15459 #line 15460 "configure"
15460 #include "confdefs.h"
15466 if { (eval echo configure:15467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15469 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
15470 # reports no error. So, we need to grep stderr for (Bundled).
15471 if grep '(Bundled)' config.log >/dev/null; then
15472 echo "$ac_t""no" 1>&6
15473 can_build_shared=no
15476 echo "$ac_t""yes" 1>&6
15479 echo "configure: failed program was:" >&5
15480 cat conftest.$ac_ext >&5
15482 echo "$ac_t""no" 1>&6
15483 can_build_shared=no
15487 CFLAGS="$save_CFLAGS"
15489 echo "$ac_t""none" 1>&6
15492 if test "$can_build_shared" = "yes"; then
15496 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
15497 echo "configure:15498: checking if C compiler can produce shared libraries" >&5
15498 if test "$XEGCC" = yes -o "$__ICC" = yes; then
15501 else # Not using GCC
15502 case "$xehost_os" in
15504 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
15505 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
15508 freebsd2* | netbsd* | openbsd*)
15510 xcldf="${wl}-Bshareable"
15519 xcldf="${wl}-b ${wl}+s"
15522 irix[5-9]* | osf[3-9]*)
15523 xcldf="${wl}-shared"
15527 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
15533 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
15534 xldf="-assert pure-text -Bstatic"
15537 fi # End if if we are using gcc
15539 if test -n "$xcldf"; then
15540 save_LDFLAGS=$LDFLAGS
15542 save_xe_libs=$xe_libs
15543 LDFLAGS="$xcldf $LDFLAGS"
15546 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
15547 cat > conftest.$ac_ext <<EOF
15548 #line 15549 "configure"
15549 #include "confdefs.h"
15555 if { (eval echo configure:15556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15559 echo "configure: failed program was:" >&5
15560 cat conftest.$ac_ext >&5
15565 LDFLAGS=$save_LDFLAGS
15567 xe_libs=$save_xe_libs
15568 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
15572 echo "$ac_t""${cc_produces_so}" 1>&6
15575 if test -z "$LTLD"; then
15577 if test "$XEGCC" = yes; then
15578 # Check if gcc -print-prog-name=ld gives a path.
15579 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
15580 echo "configure:15581: checking for ld used by GCC" >&5
15581 ac_prog=`($CC -print-prog-name=ld) 2>&5`
15583 # Accept absolute paths.
15585 if test -z "$LTLD"; then
15586 # case "$ac_prog" in
15587 # *gcc-lib*) LTLD="$CC"
15596 # If it fails, then pretend we aren't using GCC.
15600 # If it is relative, then search for the first ld in PATH.
15601 with_gnu_ld=unknown
15605 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
15606 echo "configure:15607: checking for GNU ld" >&5
15609 if test -z "$LTLD"; then
15610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15611 for ac_dir in $PATH; do
15612 test -z "$ac_dir" && ac_dir=.
15613 if test -f "$ac_dir/$ac_prog"; then
15614 LTLD="$ac_dir/$ac_prog"
15615 # Check to see if the program is GNU ld. I'd rather use --version,
15616 # but apparently some GNU ld's only accept -v.
15617 # Break only if it was the GNU/non-GNU ld that we prefer.
15618 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15628 if test -n "$LTLD"; then
15629 echo "$ac_t""${LTLD}" 1>&6
15631 echo "$ac_t""no" 1>&6
15634 if test -z "$LTLD" -a "$cc_produces_so" = no; then
15635 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
15640 ld_dynamic_link_flags=
15642 # Check to see if it really is or isn't GNU ld.
15643 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
15644 echo "configure:15645: checking if the linker is GNU ld" >&5
15645 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15646 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15651 echo "$ac_t""${xe_gnu_ld}" 1>&6
15653 case "$xehost_os" in
15654 amigaos* | sunos4*)
15655 # On these operating systems, we should treat GNU ld like the system ld.
15656 gnu_ld_acts_native=yes
15659 gnu_ld_acts_native=no
15663 if test "$cc_produces_so" = "yes"; then
15666 can_build_shared=yes
15669 # OK - only NOW do we futz about with ld.
15670 # See if the linker supports building shared libraries.
15671 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
15672 echo "configure:15673: checking whether the linker supports shared libraries" >&5
15674 dll_ldflags=$LDFLAGS
15676 can_build_shared=yes
15677 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
15678 # See if GNU ld supports shared libraries.
15679 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15681 dll_ldflags="-shared"
15687 # PORTME fill in a description of your system's linker (not GNU ld)
15688 case "$xehost_os" in
15698 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15699 # support. Future versions do this automatically, but an explicit c++rt0.o
15700 # doesn't break anything, and helps significantly (at the cost of a little
15705 dll_post="/usr/lib/c++rt0.o"
15708 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
15711 dll_ldflags="-Bshareable"
15714 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
15716 dll_ldflags="-shared"
15730 # Tested with NetBSD 1.2 ld
15745 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
15746 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
15749 *gcc*) dll_ldflags="-shared"
15752 *) dll_ldflags="-G"
15758 if test "$XEGCC" = yes; then
15778 can_build_shared=no
15782 echo "$ac_t""${ld_shlibs}" 1>&6
15783 if test "$ld_shlibs" = "no"; then
15784 can_build_shared=no
15786 fi # End of if cc_produces_so = no
15789 if test "$xe_gnu_ld" = yes; then
15790 if test "$ld_shlibs" = yes; then
15791 ld_dynamic_link_flags="${wl}-export-dynamic"
15795 if test -z "$ld_dynamic_link_flags"; then
15796 case "$xehost_os" in
15798 ld_dynamic_link_flags=
15802 ld_dynamic_link_flags=
15806 ld_dynamic_link_flags=
15810 ld_dynamic_link_flags=
15814 ld_dynamic_link_flags="${wl}-E"
15818 ld_dynamic_link_flags=
15822 ld_dynamic_link_flags=
15826 ld_dynamic_link_flags=
15830 ld_dynamic_link_flags=
15833 solaris2* | solaris7*)
15834 ld_dynamic_link_flags=
15837 sco3.2v5* | unixware* | sysv5* | sysv4*)
15838 ld_dynamic_link_flags="${wl}-Bexport"
15842 ld_dynamic_link_flags=
15846 ld_dynamic_link_flags=
15850 ld_dynamic_link_flags=
15854 fi # End of if -z ld_dynamic_link_flags
15855 fi # End of if test "$can_build_shared" = "yes"
15866 if test "$can_build_shared" = "yes"; then
15867 { test "$extra_verbose" = "yes" && cat << \EOF
15868 Defining HAVE_SHLIB
15870 cat >> confdefs.h <<\EOF
15871 #define HAVE_SHLIB 1
15875 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
15876 echo " xemacs will be linked with \"sysdll.o emodules.o\""
15878 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
15879 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
15880 for ac_func in dlerror _dlerror
15882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15883 echo "configure:15884: checking for $ac_func" >&5
15885 cat > conftest.$ac_ext <<EOF
15886 #line 15887 "configure"
15887 #include "confdefs.h"
15888 /* System header to define __stub macros and hopefully few prototypes,
15889 which can conflict with char $ac_func(); below. */
15890 #include <assert.h>
15891 /* Override any gcc2 internal prototype to avoid an error. */
15892 /* We use char because int might match the return type of a gcc2
15893 builtin and then its argument prototype would still apply. */
15898 /* The GNU C library defines this for functions which it implements
15899 to always fail with ENOSYS. Some functions are actually named
15900 something starting with __ and the normal name is an alias. */
15901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15909 if { (eval echo configure:15910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15911 eval "ac_cv_func_$ac_func=yes"
15913 echo "configure: failed program was:" >&5
15914 cat conftest.$ac_ext >&5
15916 eval "ac_cv_func_$ac_func=no"
15920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15921 echo "$ac_t""yes" 1>&6
15922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15923 { test "$extra_verbose" = "yes" && cat << EOF
15924 Defining $ac_tr_func
15926 cat >> confdefs.h <<EOF
15927 #define $ac_tr_func 1
15932 echo "$ac_t""no" 1>&6
15938 if test "$with_modules" = "yes"; then
15939 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15941 echo "configure: warning: "Module support cannot be provided."" 1>&2
15947 cat > conftest.$ac_ext <<EOF
15948 #line 15949 "configure"
15949 #include "confdefs.h"
15950 int main(int c,char *v[]){return 0;}
15952 if { (eval echo configure:15953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15957 echo "configure: failed program was:" >&5
15958 cat conftest.$ac_ext >&5
15962 echo "*** PANIC *** configure forgot how to build working executables!"
15964 echo "*** This is most commonly due to an unforeseen environment, causing"
15965 echo "*** configure to incorrectly compute the sequence of libraries to link."
15966 echo "*** Please examine the tail of config.log for runtime errors."
15967 echo "*** Pay special attention to the -l flags, and perhaps -I and -L."
15968 echo "*** Often adding or removing explicit options in the configure"
15969 echo "*** invocation can work around this kind of problem. If so, please"
15970 echo "*** report it as a bug to xemacs-beta@xemacs.org."
15972 echo "*** Other possible causes are inability to write to the file system"
15973 echo "*** (bogus permissions or disk full) or a misconfiguration of the dynamic"
15974 echo "*** linker. On Linux, check /etc/ld.conf and rerun ldconfig if"
15975 echo "*** necessary. On other systems, try telling configure where to find"
15976 echo "*** the shared libraries using the --site-runtime-libraries option."
15978 echo "*** Another way to shoot yourself in the foot is to specify"
15979 echo "*** --with-FEATURE when FEATURE is not actually installed on your"
15980 echo "*** system. Don't do that."
15985 if test "$win32_processes" = "yes"; then
15986 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15987 echo " xemacs will be linked with \"process-nt.o\""
15990 { test "$extra_verbose" = "yes" && cat << \EOF
15991 Defining HAVE_UNIX_PROCESSES
15993 cat >> confdefs.h <<\EOF
15994 #define HAVE_UNIX_PROCESSES 1
15998 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15999 echo " xemacs will be linked with \"process-unix.o\""
16006 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
16011 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
16016 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
16017 c_switch_general="$T"
16021 for W in $c_switch_x_site $c_switch_gtk $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
16022 c_switch_window_system="$T"
16026 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
16031 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
16032 ld_switch_general="$T"
16036 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
16037 ld_switch_window_system="$T"
16041 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
16046 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
16047 ld_libs_general="$T"
16051 for W in $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
16052 ld_libs_window_system="$T"
16056 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
16061 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
16062 internal_makefile_list="Makefile.in"
16063 SUBDIR_MAKEFILES=''
16064 test -d lock || mkdir lock
16065 for dir in $MAKE_SUBDIR; do
16066 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
16067 test -d "$d" || mkdir "$d"; cd "$d"
16069 * ) test -d "$dir" || mkdir "$dir" ;;
16073 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
16074 SUBDIR_MAKEFILES="$T"
16078 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
16079 internal_makefile_list="$T"
16086 for dir in src/s src/m; do
16087 if test ! -d "$dir" ; then
16088 echo Making symbolic link to "$srcdir/$dir"
16089 ${LN_S} "$srcdir/$dir" "$dir"
16093 if test "$extra_verbose" = "yes"; then
16095 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
16100 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
16101 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
16102 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
16105 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
16106 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
16107 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
16110 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
16111 test "$extra_verbose" = "yes" && echo "creating TAGS"
16113 $srcdir/TAGS,include" > "TAGS"
16116 if test "$__SUNPRO_C" = "yes"; then
16117 test "$extra_verbose" = "yes" && echo "creating .sbinit"
16118 ( echo "# For use with Sun WorkShop's Source browser."
16119 echo "# See sbquery(1) and sbinit(4) for more information"
16120 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
16148 *\$* ) eval "PREFIX=$PREFIX" ;;
16156 EXEC_PREFIX=$exec_prefix
16158 case "$EXEC_PREFIX" in
16159 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
16170 *\$* ) eval "INFODIR=$INFODIR" ;;
16180 case "$INFOPATH" in
16181 *\$* ) eval "INFOPATH=$INFOPATH" ;;
16189 PACKAGE_PATH=$package_path
16191 case "$PACKAGE_PATH" in
16192 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
16203 *\$* ) eval "LISPDIR=$LISPDIR" ;;
16211 MODULEDIR=$moduledir
16213 case "$MODULEDIR" in
16214 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
16222 SITELISPDIR=$sitelispdir
16224 case "$SITELISPDIR" in
16225 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
16233 SITEMODULEDIR=$sitemoduledir
16235 case "$SITEMODULEDIR" in
16236 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
16247 *\$* ) eval "ETCDIR=$ETCDIR" ;;
16258 *\$* ) eval "DOCDIR=$DOCDIR" ;;
16266 ARCHLIBDIR=$archlibdir
16268 case "$ARCHLIBDIR" in
16269 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
16293 RECURSIVE_MAKE_ARGS="\$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
16301 : ${XEMACS_CC:=$CC}
16304 if test "$with_prefix" = "yes"; then
16305 { test "$extra_verbose" = "yes" && cat << \EOF
16306 Defining PREFIX_USER_DEFINED
16308 cat >> confdefs.h <<\EOF
16309 #define PREFIX_USER_DEFINED 1
16315 if test "$with_site_lisp" = "no"; then
16316 { test "$extra_verbose" = "yes" && cat << \EOF
16317 Defining INHIBIT_SITE_LISP
16319 cat >> confdefs.h <<\EOF
16320 #define INHIBIT_SITE_LISP 1
16325 if test "$with_site_modules" = "no"; then
16326 { test "$extra_verbose" = "yes" && cat << \EOF
16327 Defining INHIBIT_SITE_MODULES
16329 cat >> confdefs.h <<\EOF
16330 #define INHIBIT_SITE_MODULES 1
16338 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
16339 ac_configure_args="$T"
16341 { test "$extra_verbose" = "yes" && cat << EOF
16342 Defining EMACS_CONFIGURATION = "$configuration"
16344 cat >> confdefs.h <<EOF
16345 #define EMACS_CONFIGURATION "$configuration"
16349 { test "$extra_verbose" = "yes" && cat << EOF
16350 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
16352 cat >> confdefs.h <<EOF
16353 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
16360 { test "$extra_verbose" = "yes" && cat << EOF
16361 Defining LD_SWITCH_X_SITE = $null_string
16363 cat >> confdefs.h <<EOF
16364 #define LD_SWITCH_X_SITE $null_string
16368 { test "$extra_verbose" = "yes" && cat << EOF
16369 Defining LD_SWITCH_X_SITE_AUX = $null_string
16371 cat >> confdefs.h <<EOF
16372 #define LD_SWITCH_X_SITE_AUX $null_string
16376 { test "$extra_verbose" = "yes" && cat << EOF
16377 Defining C_SWITCH_X_SITE = $null_string
16379 cat >> confdefs.h <<EOF
16380 #define C_SWITCH_X_SITE $null_string
16384 { test "$extra_verbose" = "yes" && cat << EOF
16385 Defining LD_SWITCH_SITE = $null_string
16387 cat >> confdefs.h <<EOF
16388 #define LD_SWITCH_SITE $null_string
16392 { test "$extra_verbose" = "yes" && cat << EOF
16393 Defining C_SWITCH_SITE = $null_string
16395 cat >> confdefs.h <<EOF
16396 #define C_SWITCH_SITE $null_string
16402 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
16403 Defining GNU_MALLOC
16405 cat >> confdefs.h <<\EOF
16406 #define GNU_MALLOC 1
16410 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
16411 Defining USE_SYSTEM_MALLOC
16413 cat >> confdefs.h <<\EOF
16414 #define USE_SYSTEM_MALLOC 1
16418 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
16419 Defining USE_DEBUG_MALLOC
16421 cat >> confdefs.h <<\EOF
16422 #define USE_DEBUG_MALLOC 1
16426 { test "$extra_verbose" = "yes" && cat << \EOF
16427 Defining USE_SYSTEM_MALLOC
16429 cat >> confdefs.h <<\EOF
16430 #define USE_SYSTEM_MALLOC 1
16435 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16438 cat >> confdefs.h <<\EOF
16443 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16446 cat >> confdefs.h <<\EOF
16451 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16452 Defining EXTERNAL_WIDGET
16454 cat >> confdefs.h <<\EOF
16455 #define EXTERNAL_WIDGET 1
16459 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16460 Defining QUICK_BUILD
16462 cat >> confdefs.h <<\EOF
16463 #define QUICK_BUILD 1
16467 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16470 cat >> confdefs.h <<\EOF
16475 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16478 cat >> confdefs.h <<\EOF
16483 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16484 Defining MAIL_USE_POP
16486 cat >> confdefs.h <<\EOF
16487 #define MAIL_USE_POP 1
16491 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16494 cat >> confdefs.h <<\EOF
16499 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16502 cat >> confdefs.h <<\EOF
16507 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16508 Defining USE_UNION_TYPE
16510 cat >> confdefs.h <<\EOF
16511 #define USE_UNION_TYPE 1
16515 test "$use_regex_malloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16516 Defining REGEX_MALLOC
16518 cat >> confdefs.h <<\EOF
16519 #define REGEX_MALLOC 1
16523 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16526 cat >> confdefs.h <<\EOF
16531 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16532 Defining IPV6_CANONICALIZE
16534 cat >> confdefs.h <<\EOF
16535 #define IPV6_CANONICALIZE 1
16542 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
16544 echo "uname -a: `uname -a`"
16547 echo "$0 $quoted_arguments"
16550 if test ! -z ${emacs_beta_version} ; then
16551 if test -z "${emacs_is_beta}" ; then
16552 xemacs_betaname=".${emacs_beta_version}"
16554 xemacs_betaname="-b${emacs_beta_version}"
16563 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
16566 Compilation / Installation:"
16567 echo " Source code location: $srcdir"
16568 echo " Installation prefix: $prefix"
16569 if test -n "$site_includes"; then
16570 echo " Additional header files: $site_includes"
16572 if test -n "$site_libraries"; then
16573 echo " Additional libraries: $site_libraries"
16575 if test -n "$site_prefixes"; then
16576 echo " Additional prefixes: $site_prefixes"
16578 if test -n "$runpath"; then
16579 echo " Runtime library search path: $runpath"
16582 if test -n "$opsysfile"
16583 then echo " Operating system description file: \`$opsysfile'"
16584 else echo " Not using any operating system description file"
16586 if test -n "$machfile"
16587 then echo " Machine description file: \`$machfile'"
16588 else echo " Not using any machine description file"
16591 echo " Compiler: $CC $CFLAGS"
16593 gcc*) echo " Compiler version: `$CC --version | sed 1q`"
16594 echo " Compiler specs file: `$CC -v 2>&1 | sed 's/.* \([^ ]\)/\1/' | sed 1q`"
16596 *) case "$canonical" in
16599 if test -L $realcc ; then
16600 ccdir=`dirname $realcc`
16601 ccprog=`/bin/ls -l $realcc | sed 's/.* \([^ ]\)/\1/'`
16603 */*) realcc=$ccprog;;
16604 *) realcc=$ccdir/$ccprog;;
16607 lpp=`lslpp -wqc $realcc | cut -f2 -d:`
16608 if test ! -z "$lpp" ; then
16609 lppstr=`lslpp -Lqc $lpp`
16610 lpplev=`echo "$lppstr" | cut -f3 -d:`
16611 lppdesc=`echo "$lppstr" | cut -f8 -d:`
16613 if test ! -z "$lpplev" ; then
16614 echo " Compiler version: $lpp $lpplev - $lppdesc"
16616 echo " Compiler version: (unknown version)"
16621 ccvers=`$CC -V 2>&1 | sed 1q`
16622 if test ! -z "$ccvers" ; then
16623 echo " Compiler version: $ccvers"
16628 ccvers=`$CC -V | tr '\n' ' '`
16629 if test ! -z "$ccvers" ; then
16630 echo " Compiler version: $ccvers"
16635 ccvers=`$CC -version`
16636 if test ! -z "$ccvers" ; then
16637 echo " Compiler version: $ccvers"
16642 ccvers=`$CC -V 2>&1 | sed -n 's@^Intel.*Version @@'p`
16643 if test ! -z "$ccvers" ; then
16644 echo " Compiler version: $ccvers"
16648 *) echo " Compiler version: $CC on $canonical";;
16652 echo " Relocating allocator for buffers: $rel_alloc"
16653 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
16654 case "$ld_switch_site" in
16655 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
16656 - Consider configuring with --pdump." ;;
16659 case "$canonical" in
16661 if test -f /etc/redhat-release ; then
16662 echo " libc: `rpm -q glibc`";
16664 echo "Need to guess glibc1/2/etc here";
16669 echo " libc: bos.rte.libc `lslpp -Lqc bos.rte.libc | cut -f3 -d:`"
16673 libc=`pkginfo -l SUNWcsl | grep VERSION: | awk '{print $2}'`
16674 echo " libc: SUNWcsl $libc"
16679 echo " IRIX version: `uname -sRm`'"
16685 libc=` grep -h libc.so *.inv | awk '$9 == "f" {print $12}' | tr '\n' ','`
16686 echo " libc: $libc"
16691 *) echo " libc: system-provided libc on $canonical" ;;
16697 if test "$with_msw" = "yes"; then
16698 echo " Compiling in support for the Microsoft window system."
16700 if test "$with_x11" = "yes"; then
16701 echo " Compiling in support for the X window system:"
16702 echo " - X Windows headers location: $x_includes"
16703 echo " - X Windows libraries location: $x_libraries"
16704 if test "$with_xauth" != yes; then
16705 echo " - Xau (X authority) not available."
16707 if test "$with_xmu" != yes; then
16708 echo " - Xmu library not available; substituting equivalent routines."
16710 if test "$with_wmcommand" != no; then
16711 echo " - Handling WM_COMMAND properly."
16714 if test "$need_motif" = "yes" ; then
16715 echo " Compiling in support for Motif."
16716 if test "$have_lesstif" = "yes"; then
16717 echo " - Using LessTif implementation."
16719 echo " *WARNING* Many versions of Motif are buggy, requiring workarounds."
16720 echo " You are likely to experience slow redisplay."
16721 echo " You may need to install vendor patches to Motif."
16722 echo " See PROBLEMS for more information."
16724 if test "$need_athena" = "yes"; then
16725 echo " Compiling in support for the Athena widget set:"
16726 echo " - Athena headers location: $athena_h_path"
16727 echo " - Athena library to link: $athena_lib"
16729 case "$with_menubars" in
16730 gtk ) echo " Using GTK menubars." ;;
16731 lucid ) echo " Using Lucid menubars." ;;
16732 motif ) echo " Using Motif menubars."
16733 echo " *WARNING* The Motif menubar implementation is currently buggy."
16734 echo " We recommend using the Lucid menubar instead."
16735 echo " Re-run configure with --with-menubars='lucid'." ;;
16736 msw ) echo " Using MS-Windows menubars." ;;
16738 case "$with_scrollbars" in
16739 gtk ) echo " Using GTK scrollbars." ;;
16740 lucid ) echo " Using Lucid scrollbars." ;;
16741 motif ) echo " Using Motif scrollbars." ;;
16742 athena ) echo " Using Athena scrollbars." ;;
16743 msw ) echo " Using MS-Windows scrollbars." ;;
16745 case "$with_dialogs" in
16746 gtk ) echo " Using GTK dialog boxes." ;;
16747 motif ) echo " Using Motif dialog boxes."
16748 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
16749 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
16750 echo " We recommend using the Athena dialog boxes instead."
16751 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
16752 echo " Read the PROBLEMS file for more information."
16754 athena ) echo " Using Athena dialog boxes." ;;
16755 msw ) echo " Using MS-Windows dialog boxes." ;;
16757 case "$with_widgets" in
16758 gtk ) echo " Using GTK native widgets." ;;
16759 motif ) echo " Using Motif native widgets." ;;
16760 athena ) echo " Using Athena native widgets." ;;
16761 msw ) echo " Using MS-Windows native widgets." ;;
16763 if test "$with_dragndrop" = yes; then
16764 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
16765 echo " - Drag'n'Drop prototype: $dragndrop_proto."
16770 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
16771 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
16775 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
16776 if test "$with_xpm" = yes; then
16777 echo " Compiling in support for XPM images."
16778 elif test "$with_x11" = yes; then
16779 echo " WARNING: -----------------------------------------------------------"
16780 echo " WARNING: Compiling without XPM image support."
16781 if test "$xpm_problem" != ""; then
16782 echo " Reason: $xpm_problem"
16784 echo " WARNING: You should strongly consider installing XPM."
16785 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
16786 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
16787 echo " WARNING: -----------------------------------------------------------"
16789 if test "$with_png" = yes; then
16790 echo " Compiling in support for PNG images."
16791 elif test "$window_system" != "none"; then
16792 echo " WARNING: -----------------------------------------------------------"
16793 echo " WARNING: Compiling without PNG image support."
16794 if test "$png_problem" != ""; then
16795 echo " Reason: $png_problem"
16797 echo " WARNING: You should strongly consider installing the PNG libraries."
16798 echo " WARNING: Otherwise certain images and glyphs may not display."
16799 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
16800 echo " WARNING: -----------------------------------------------------------"
16802 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
16803 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
16804 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
16808 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
16809 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
16810 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
16811 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
16815 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
16816 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
16817 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
16818 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
16819 if test "$with_postgresql" = yes; then
16820 echo " Compiling in support for PostgreSQL."
16821 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
16822 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
16824 if test "$with_concord" = yes; then
16825 echo " Compiling in support for CONCORD."
16829 Multiscriptization / Multilingualization / Internationalization:"
16830 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
16831 test "$with_chise" = yes && echo " Using CHISE (CHaracter Information Service Environment) support."
16832 test "$with_utf_2000" = yes && echo " Using UTF-2000 (UTF-8) buffer/string representation."
16833 test "$with_text_coding" = yes && echo " Compiling in support for text coding."
16834 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
16835 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
16836 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
16837 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
16838 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
16839 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
16840 if test "$with_wnn" = yes; then
16841 echo " Compiling in support for the WNN input method on Mule."
16842 test "$with_wnn6" = yes && echo " - Using WNN version 6."
16844 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
16848 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
16849 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
16850 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
16851 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
16855 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
16856 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
16857 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
16858 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
16859 test "$with_dnet" = yes && echo " Compiling in support for DNET."
16860 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
16861 if test "$use_union_type" = yes; then
16862 echo " WARNING: ---------------------------------------------------------"
16863 echo " Using the union type for Lisp_Objects."
16864 echo " Union type has been implicated in hard-to-debug runtime crashes."
16865 echo " Do NOT use this build of XEmacs for ordinary work. See PROBLEMS."
16866 echo " WARNING: ---------------------------------------------------------"
16868 if test "$use_regex_malloc" = no; then
16869 echo " WARNING: -----------------------------------------------------------"
16870 echo " Using alloca to allocate the failure stack."
16871 echo " It may be impossible to detect stack exhaustion, and you will crash."
16872 echo " Do NOT use this build of XEmacs for ordinary work."
16873 echo " WARNING: -----------------------------------------------------------"
16875 test "$pdump" = yes && echo " Using the new portable dumper."
16876 test "$debug" = yes && echo " Compiling in support for extra debugging code."
16877 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
16878 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
16879 != "no no no no no no"; then
16880 echo " WARNING: ---------------------------------------------------------"
16881 echo " WARNING: Compiling in support for runtime error checking."
16882 echo " WARNING: XEmacs will run noticeably more slowly as a result."
16883 echo " WARNING: Error checking is on by default for XEmacs beta releases."
16884 echo " WARNING: ---------------------------------------------------------"
16887 ) | tee -a Installation
16891 # Remove any trailing slashes in these variables.
16892 test -n "$prefix" &&
16893 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
16894 test -n "$exec_prefix" &&
16895 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
16898 for file in $internal_makefile_list; do
16899 test "$file" = src/Makefile.in && \
16900 file="src/Makefile.in:src/Makefile.in.in:src/depend"
16901 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
16903 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
16904 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
16908 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16910 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16911 # Let make expand exec_prefix.
16912 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16914 # Any assignment to VPATH causes Sun make to only execute
16915 # the first set of double-colon rules, so remove it if not needed.
16916 # If there is a colon in the path, we need to keep it.
16917 if test "x$srcdir" = x.; then
16918 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16921 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16923 DEFS=-DHAVE_CONFIG_H
16925 # Without the "./", some shells look in PATH for config.status.
16926 : ${CONFIG_STATUS=./config.status}
16928 echo creating $CONFIG_STATUS
16929 rm -f $CONFIG_STATUS
16930 cat > $CONFIG_STATUS <<EOF
16932 # Generated automatically by configure.
16933 # Run this file to recreate the current configuration.
16934 # This directory was configured as follows,
16935 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16937 # $0 $ac_configure_args
16939 # Compiler output produced by configure, useful for debugging
16940 # configure, is in ./config.log if it exists.
16942 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16945 case "\$ac_option" in
16946 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16947 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16948 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16949 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16950 echo "$CONFIG_STATUS generated by autoconf version 2.13"
16952 -help | --help | --hel | --he | --h)
16953 echo "\$ac_cs_usage"; exit 0 ;;
16954 *) echo "\$ac_cs_usage"; exit 1 ;;
16958 ac_given_srcdir=$srcdir
16959 ac_given_INSTALL="$INSTALL"
16961 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16963 cat >> $CONFIG_STATUS <<EOF
16965 # Protect against being on the right side of a sed subst in config.status.
16966 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16967 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16971 s%@CFLAGS@%$CFLAGS%g
16972 s%@CPPFLAGS@%$CPPFLAGS%g
16973 s%@CXXFLAGS@%$CXXFLAGS%g
16974 s%@FFLAGS@%$FFLAGS%g
16976 s%@LDFLAGS@%$LDFLAGS%g
16978 s%@exec_prefix@%$exec_prefix%g
16979 s%@prefix@%$prefix%g
16980 s%@program_transform_name@%$program_transform_name%g
16981 s%@bindir@%$bindir%g
16982 s%@sbindir@%$sbindir%g
16983 s%@libexecdir@%$libexecdir%g
16984 s%@datadir@%$datadir%g
16985 s%@sysconfdir@%$sysconfdir%g
16986 s%@sharedstatedir@%$sharedstatedir%g
16987 s%@localstatedir@%$localstatedir%g
16988 s%@libdir@%$libdir%g
16989 s%@includedir@%$includedir%g
16990 s%@oldincludedir@%$oldincludedir%g
16991 s%@infodir@%$infodir%g
16992 s%@mandir@%$mandir%g
16994 s%@blddir@%$blddir%g
16997 s%@start_flags@%$start_flags%g
16998 s%@ld_switch_shared@%$ld_switch_shared%g
16999 s%@start_files@%$start_files%g
17001 s%@lib_gcc@%$lib_gcc%g
17002 s%@RANLIB@%$RANLIB%g
17003 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17004 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17005 s%@INSTALL_DATA@%$INSTALL_DATA%g
17007 s%@SET_MAKE@%$SET_MAKE%g
17008 s%@GTK_CONFIG@%$GTK_CONFIG%g
17009 s%@X_CFLAGS@%$X_CFLAGS%g
17010 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
17011 s%@X_LIBS@%$X_LIBS%g
17012 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
17013 s%@install_pp@%$install_pp%g
17014 s%@libs_xauth@%$libs_xauth%g
17015 s%@dnd_objs@%$dnd_objs%g
17016 s%@lwlib_objs@%$lwlib_objs%g
17017 s%@ALLOCA@%$ALLOCA%g
17018 s%@have_esd_config@%$have_esd_config%g
17019 s%@dll_ld@%$dll_ld%g
17020 s%@dll_cflags@%$dll_cflags%g
17021 s%@dll_ldflags@%$dll_ldflags%g
17022 s%@dll_post@%$dll_post%g
17023 s%@dll_ldo@%$dll_ldo%g
17024 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
17025 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
17026 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
17027 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
17028 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
17029 s%@PROGNAME@%$PROGNAME%g
17030 s%@version@%$version%g
17031 s%@configuration@%$configuration%g
17032 s%@canonical@%$canonical%g
17033 s%@inststaticdir@%$inststaticdir%g
17034 s%@instvardir@%$instvardir%g
17035 s%@srcdir@%$srcdir%g
17036 s%@pkgdir@%$pkgdir%g
17037 s%@statedir@%$statedir%g
17038 s%@extra_includes@%$extra_includes%g
17039 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
17040 s%@PREFIX@%$PREFIX%g
17041 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
17042 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
17043 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
17044 s%@INFODIR@%$INFODIR%g
17045 s%@infopath@%$infopath%g
17046 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
17047 s%@INFOPATH@%$INFOPATH%g
17048 s%@package_path@%$package_path%g
17049 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
17050 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
17051 s%@lispdir@%$lispdir%g
17052 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
17053 s%@LISPDIR@%$LISPDIR%g
17054 s%@moduledir@%$moduledir%g
17055 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
17056 s%@MODULEDIR@%$MODULEDIR%g
17057 s%@sitelispdir@%$sitelispdir%g
17058 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
17059 s%@SITELISPDIR@%$SITELISPDIR%g
17060 s%@sitemoduledir@%$sitemoduledir%g
17061 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
17062 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
17063 s%@etcdir@%$etcdir%g
17064 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
17065 s%@ETCDIR@%$ETCDIR%g
17066 s%@docdir@%$docdir%g
17067 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
17068 s%@DOCDIR@%$DOCDIR%g
17069 s%@archlibdir@%$archlibdir%g
17070 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
17071 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
17072 s%@bitmapdir@%$bitmapdir%g
17073 s%@extra_objs@%$extra_objs%g
17074 s%@machfile@%$machfile%g
17075 s%@opsysfile@%$opsysfile%g
17076 s%@c_switch_general@%$c_switch_general%g
17077 s%@c_switch_window_system@%$c_switch_window_system%g
17078 s%@c_switch_all@%$c_switch_all%g
17079 s%@ld_switch_general@%$ld_switch_general%g
17080 s%@ld_switch_window_system@%$ld_switch_window_system%g
17081 s%@ld_switch_all@%$ld_switch_all%g
17082 s%@ld_libs_general@%$ld_libs_general%g
17083 s%@ld_libs_window_system@%$ld_libs_window_system%g
17084 s%@ld_libs_all@%$ld_libs_all%g
17085 s%@RECURSIVE_MAKE_ARGS@%$RECURSIVE_MAKE_ARGS%g
17086 s%@native_sound_lib@%$native_sound_lib%g
17087 s%@sound_cflags@%$sound_cflags%g
17088 s%@dynodump_arch@%$dynodump_arch%g
17089 s%@XEMACS_CC@%$XEMACS_CC%g
17090 s%@internal_makefile_list@%$internal_makefile_list%g
17095 cat >> $CONFIG_STATUS <<\EOF
17097 # Split the substitutions into bite-sized pieces for seds with
17098 # small command number limits, like on Digital OSF/1 and HP-UX.
17099 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17100 ac_file=1 # Number of current file.
17101 ac_beg=1 # First line for current file.
17102 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17105 while $ac_more_lines; do
17106 if test $ac_beg -gt 1; then
17107 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17109 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17111 if test ! -s conftest.s$ac_file; then
17112 ac_more_lines=false
17113 rm -f conftest.s$ac_file
17115 if test -z "$ac_sed_cmds"; then
17116 ac_sed_cmds="sed -f conftest.s$ac_file"
17118 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17120 ac_file=`expr $ac_file + 1`
17122 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17125 if test -z "$ac_sed_cmds"; then
17130 cat >> $CONFIG_STATUS <<EOF
17132 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
17134 cat >> $CONFIG_STATUS <<\EOF
17135 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17136 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17138 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17139 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17140 *) ac_file_in="${ac_file}.in" ;;
17143 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17145 # Remove last slash and all that follows it. Not all systems have dirname.
17146 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17147 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17148 # The file is in a subdirectory.
17149 test ! -d "$ac_dir" && mkdir "$ac_dir"
17150 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17151 # A "../" for each directory in $ac_dir_suffix.
17152 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17154 ac_dir_suffix= ac_dots=
17157 case "$ac_given_srcdir" in
17159 if test -z "$ac_dots"; then top_srcdir=.
17160 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17161 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17162 *) # Relative path.
17163 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17164 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17167 case "$ac_given_INSTALL" in
17168 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17169 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17172 echo creating "$ac_file"
17174 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17176 *Makefile*) ac_comsub="1i\\
17177 # $configure_input" ;;
17181 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17183 s%@configure_input@%$configure_input%g
17184 s%@srcdir@%$srcdir%g
17185 s%@top_srcdir@%$top_srcdir%g
17186 s%@INSTALL@%$INSTALL%g
17187 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17191 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17192 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17194 # ac_d sets the value in "#define NAME VALUE" lines.
17195 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17196 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17199 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17200 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17201 ac_uB='\([ ]\)%\1#\2define\3'
17204 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17205 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17206 ac_eB='$%\1#\2define\3'
17210 if test "${CONFIG_HEADERS+set}" != set; then
17212 cat >> $CONFIG_STATUS <<EOF
17213 CONFIG_HEADERS="src/config.h lwlib/config.h"
17215 cat >> $CONFIG_STATUS <<\EOF
17217 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17218 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17220 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17221 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17222 *) ac_file_in="${ac_file}.in" ;;
17225 echo creating $ac_file
17227 rm -f conftest.frag conftest.in conftest.out
17228 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17229 cat $ac_file_inputs > conftest.in
17233 # Transform confdefs.h into a sed script conftest.vals that substitutes
17234 # the proper values into config.h.in to produce config.h. And first:
17235 # Protect against being on the right side of a sed subst in config.status.
17236 # Protect against being in an unquoted here document in config.status.
17237 rm -f conftest.vals
17238 cat > conftest.hdr <<\EOF
17241 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17245 sed -n -f conftest.hdr confdefs.h > conftest.vals
17248 # This sed command replaces #undef with comments. This is necessary, for
17249 # example, in the case of _POSIX_SOURCE, which is predefined and required
17250 # on some systems where configure will not decide to define it.
17251 cat >> conftest.vals <<\EOF
17252 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17255 # Break up conftest.vals because some shells have a limit on
17256 # the size of here documents, and old seds have small limits too.
17258 rm -f conftest.tail
17261 ac_lines=`grep -c . conftest.vals`
17262 # grep -c gives empty output for an empty file on some AIX systems.
17263 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17264 # Write a limited-size here document to conftest.frag.
17265 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17266 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17268 sed -f conftest.frag conftest.in > conftest.out
17270 mv conftest.out conftest.in
17271 ' >> $CONFIG_STATUS
17272 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17273 rm -f conftest.vals
17274 mv conftest.tail conftest.vals
17276 rm -f conftest.vals
17278 cat >> $CONFIG_STATUS <<\EOF
17279 rm -f conftest.frag conftest.h
17280 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17281 cat conftest.in >> conftest.h
17283 if cmp -s $ac_file conftest.h 2>/dev/null; then
17284 echo "$ac_file is unchanged"
17287 # Remove last slash and all that follows it. Not all systems have dirname.
17288 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17289 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17290 # The file is in a subdirectory.
17291 test ! -d "$ac_dir" && mkdir "$ac_dir"
17294 mv conftest.h $ac_file
17299 cat >> $CONFIG_STATUS <<EOF
17301 top_srcdir="$srcdir"
17302 MAKE_SUBDIR="$MAKE_SUBDIR"
17305 cat >> $CONFIG_STATUS <<\EOF
17306 for dir in . $MAKE_SUBDIR; do
17311 sed -e '/^# Generated/d' \
17312 -e 's%/\*\*/#.*%%' \
17327 echo creating $dir/Makefile
17328 $CPP -I. -I${top_srcdir}/src junk.c \
17329 | sed -e 's/^\#.*//' \
17330 -e 's/^[ ][ ]*$//'\
17338 chmod 444 Makefile.new
17339 mv -f Makefile.new Makefile
17341 echo creating $dir/GNUmakefile
17342 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
17343 | sed -e 's/^\#.*//' \
17344 -e 's/^[ ][ ]*$//'\
17352 chmod 444 Makefile.new
17353 mv -f Makefile.new GNUmakefile
17359 sed < config.status >> lib-src/config.values \
17360 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
17361 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
17362 -e 's/^\([^ ]*\) $/\1 ""/' \
17368 chmod +x $CONFIG_STATUS
17369 rm -fr confdefs* $ac_clean_files
17370 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1