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, 93, 94, 95, 96 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing.
10 #### Copyright (C) 1998, 1999 J. Kean Johnston.
12 ### Don't edit this script!
13 ### This script was automatically generated by the `autoconf' program
14 ### from the file `./configure.in'.
15 ### To rebuild it, execute the command
17 ### in the this directory. You must have autoconf version 2.12 or later.
19 ### This file is part of XEmacs.
21 ### XEmacs is free software; you can redistribute it and/or modify it
22 ### under the terms of the GNU General Public License as published by
23 ### the Free Software Foundation; either version 2, or (at your
24 ### option) any later version.
26 ### XEmacs is distributed in the hope that it will be useful, but
27 ### WITHOUT ANY WARRANTY; without even the implied warranty of
28 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29 ### General Public License for more details.
31 ### You should have received a copy of the GNU General Public License
32 ### along with XEmacs; see the file COPYING. If not, write to the Free
33 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
36 ### For usage, run `./configure --help'
37 ### For more detailed information on building and installing XEmacs,
38 ### read the file `INSTALL'.
40 ### If configure succeeds, it leaves its status in config.status.
41 ### A log of configuration tests can be found in config.log.
42 ### If configure fails after disturbing the status quo,
43 ### config.status is removed.
46 --with-x use the X Window System"
50 if test -n "$ZSH_VERSION"; then
51 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
52 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
53 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
54 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
55 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
56 elif test -n "$BASH_VERSION"; then
60 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
71 program_transform_name=s,x,x,
80 bindir='${exec_prefix}/bin'
81 sbindir='${exec_prefix}/sbin'
82 libexecdir='${exec_prefix}/libexec'
83 datadir='${prefix}/share'
84 sysconfdir='${prefix}/etc'
85 sharedstatedir='${prefix}/com'
86 localstatedir='${prefix}/var'
87 libdir='${{exec_prefix}}/lib'
88 includedir='${prefix}/include'
89 oldincludedir='/usr/include'
90 infodir='${prefix}/info'
91 mandir='${prefix}/man'
97 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
99 # File descriptor usage:
102 # 2 errors and warnings
103 # 3 some systems may open it to /dev/tty
104 # 4 used on the Kubota Titan
105 # 6 checking for... messages and results
106 # 5 compiler messages saved in config.log
107 if test "$silent" = yes; then
115 This file contains any messages produced by compilers while
116 running configure, to aid debugging if configure makes a mistake.
119 # Strip out --no-create and --no-recursion so they do not pile up.
120 # Also quote any args containing shell metacharacters.
125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
126 | --no-cr | --no-c) ;;
127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
130 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
131 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
136 # Only set these to C if already set. These must not be set unconditionally
137 # because not all systems understand e.g. LANG=C (notably SCO).
138 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
139 # Non-C LC_CTYPE values break the ctype check.
140 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
141 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
142 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
143 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
146 rm -rf conftest* confdefs.h
147 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
150 # A filename unique to this package, relative to the directory that
151 # configure is in, which we can look for to find out if srcdir is correct.
152 ac_unique_file=src/lisp.h
154 # Find the source files, if location was not specified.
155 if test -z "$srcdir"; then
156 ac_srcdir_defaulted=yes
157 # Try the directory containing this script, then its parent.
159 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
160 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
162 if test ! -r $srcdir/$ac_unique_file; then
166 ac_srcdir_defaulted=no
168 if test ! -r $srcdir/$ac_unique_file; then
169 if test "$ac_srcdir_defaulted" = yes; then
170 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
172 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
175 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
177 # Prefer explicitly selected file to automatically selected ones.
178 if test -z "$CONFIG_SITE"; then
179 if test "x$prefix" != xNONE; then
180 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
182 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
185 for ac_site_file in $CONFIG_SITE; do
186 if test -r "$ac_site_file"; then
187 echo "loading site script $ac_site_file"
194 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
195 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
196 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
197 ac_cpp='$CPP '"$xe_cppflags"
198 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
199 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
204 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
205 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
206 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
213 ac_n= ac_c='\c' ac_t=
217 progname="`echo $0 | sed 's:^\./\./:\./:'`"
220 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
221 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
224 exec_prefix='${prefix}'
225 bindir='${exec_prefix}/bin'
226 datadir='${prefix}/lib'
227 statedir='${prefix}/lib'
228 libdir='${exec_prefix}/lib'
229 mandir='${prefix}/man/man1'
230 inststaticdir='${PROGNAME}'
231 instvardir='${PROGNAME}-${version}'
232 infodir='${datadir}/${instvardir}/info'
235 lispdir='${datadir}/${instvardir}/lisp'
236 moduledir='${datadir}/${instvardir}/${configuration}/modules'
237 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
238 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
239 pkgdir='${datadir}/${instvardir}/lisp'
241 etcdir='${datadir}/${instvardir}/etc'
242 lockdir='${statedir}/${inststaticdir}/lock'
243 archlibdir='${datadir}/${instvardir}/${configuration}'
244 docdir='${archlibdir}'
247 with_site_modules='yes'
253 cpp='' cppflags='' libs='' ldflags=''
258 with_system_malloc='default'
259 with_dlmalloc='default'
272 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
277 | --no-cr | --no-c) ;;
278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
281 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
282 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
286 while test $# != 0; do
289 --no-create|--no-recursion) ;;
293 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
294 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
298 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
299 val="yes" valomitted=yes
304 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
306 case "${valomitted}-${opt}" in yes-without_* )
307 opt=`echo $opt | sed 's/without/with/'`
308 valomitted="no" val="no" ;;
315 with_site_modules | \
366 memory_usage_stats | \
367 with_clash_detection | \
371 y | ye | yes ) val=yes ;;
373 * ) (echo "$progname: Usage error:"
374 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
375 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
377 eval "$opt=\"$val\"" ;;
395 site_runtime_libraries )
396 if test "$valomitted" = "yes" ; then
397 if test "$#" = 0 ; then
398 (echo "$progname: Usage error:"
399 echo " " "The \`--$optname' option requires a value."
400 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
409 with_debug_malloc | use_debug_malloc | \
410 with_system_malloc | use_system_malloc )
412 y | ye | yes ) val=yes ;;
414 d | de | def | defa | defau | defaul | default ) val=default ;;
415 * ) (echo "$progname: Usage error:"
416 echo " " "The \`--$optname' option requires one of these values:
417 \`yes', \`no', or \`default'."
418 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
420 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
425 with_database_berkdb=no
427 with_database_gnudbm=no
428 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
431 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
432 d | db | dbm ) with_database_dbm=yes ;;
433 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
434 * ) (echo "$progname: Usage error:"
435 echo " " "The \`--$optname' option value
436 must be either \`no' or a comma-separated list
437 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
438 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
441 if test "$with_database_dbm" = "yes" -a \
442 "$with_database_gnudbm" = "yes"; then
443 (echo "$progname: Usage error:"
444 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
445 with the \`--$optname' option."
446 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
452 y | ye | yes ) val=native ;;
453 n | no | non | none ) val=no;;
454 na | nat | nati | nativ | native ) val=native ;;
455 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
456 b | bo | bot | both ) val=both;;
457 * ) (echo "$progname: Usage error:"
458 echo " " "The \`--$optname' option must have one of these values:
459 \`native', \`nas', \`both', or \`none'."
460 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
467 y | ye | yes ) val=yes ;;
468 n | no | non | none ) val=no ;;
469 x | xl | xli | xlib ) val=xlib ;;
470 m | mo | mot | moti | motif ) val=motif ;;
471 * ) (echo "$progname: Usage error:"
472 echo " " "The \`--$optname' option must have one of these values:
473 \`motif', \`xlib', \`yes', or \`no'."
474 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
484 * ) (echo "$progname: Usage error:"
485 echo " " "The \`--$optname' option must have one of these values:
486 \`lockf', \`flock', or \`file'."
487 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
494 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
496 n | no | non | none ) new_default=no ;;
497 a | al | all ) new_default=yes ;;
499 extents ) error_check_extents=yes ;;
500 noextents ) error_check_extents=no ;;
502 typecheck ) error_check_typecheck=yes ;;
503 notypecheck ) error_check_typecheck=no ;;
505 bufpos ) error_check_bufpos=yes ;;
506 nobufpos ) error_check_bufpos=no ;;
508 gc ) error_check_gc=yes ;;
509 nogc ) error_check_gc=no ;;
511 malloc ) error_check_malloc=yes ;;
512 nomalloc ) error_check_malloc=no ;;
514 byte_code ) error_check_byte_code=yes ;;
515 nobyte_code ) error_check_byte_code=no ;;
517 * ) bogus_error_check=yes ;;
519 if test "$bogus_error_check" -o \
520 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
521 if test "$error_check_default" = yes ; then
522 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'."
524 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'."
526 (echo "$progname: Usage error:"
527 echo " " "Valid types for the \`--$optname' option are:
529 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
530 elif test -n "$new_default" ; then
531 error_check_extents=$new_default
532 error_check_typecheck=$new_default
533 error_check_bufpos=$new_default
534 error_check_gc=$new_default
535 error_check_malloc=$new_default
536 error_check_byte_code=$new_default
537 new_default= # reset this
544 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
545 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
546 archlibdir | docdir | package_path )
547 if test "$valomitted" = "yes"; then
548 if test "$#" = 0; then
549 (echo "$progname: Usage error:"
550 echo " " "The \`--$optname' option requires a value."
551 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
558 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
559 Defining EXEC_PREFIX_USER_DEFINED
561 cat >> confdefs.h <<\EOF
562 #define EXEC_PREFIX_USER_DEFINED 1
566 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
567 Defining LISPDIR_USER_DEFINED
569 cat >> confdefs.h <<\EOF
570 #define LISPDIR_USER_DEFINED 1
574 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
575 Defining SITELISPDIR_USER_DEFINED
577 cat >> confdefs.h <<\EOF
578 #define SITELISPDIR_USER_DEFINED 1
582 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
583 Defining MODULEDIR_USER_DEFINED
585 cat >> confdefs.h <<\EOF
586 #define MODULEDIR_USER_DEFINED 1
590 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
591 Defining ETCDIR_USER_DEFINED
593 cat >> confdefs.h <<\EOF
594 #define ETCDIR_USER_DEFINED 1
598 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
599 Defining INFODIR_USER_DEFINED
601 cat >> confdefs.h <<\EOF
602 #define INFODIR_USER_DEFINED 1
606 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
607 Defining INFOPATH_USER_DEFINED
609 cat >> confdefs.h <<\EOF
610 #define INFOPATH_USER_DEFINED 1
614 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
615 Defining PACKAGE_PATH_USER_DEFINED
617 cat >> confdefs.h <<\EOF
618 #define PACKAGE_PATH_USER_DEFINED 1
623 { test "$extra_verbose" = "yes" && cat << \EOF
624 Defining INFODIR_USER_DEFINED
626 cat >> confdefs.h <<\EOF
627 #define INFODIR_USER_DEFINED 1
631 { test "$extra_verbose" = "yes" && cat << \EOF
632 Defining LISPDIR_USER_DEFINED
634 cat >> confdefs.h <<\EOF
635 #define LISPDIR_USER_DEFINED 1
639 { test "$extra_verbose" = "yes" && cat << \EOF
640 Defining MODULEDIR_USER_DEFINED
642 cat >> confdefs.h <<\EOF
643 #define MODULEDIR_USER_DEFINED 1
647 { test "$extra_verbose" = "yes" && cat << \EOF
648 Defining ETCDIR_USER_DEFINED
650 cat >> confdefs.h <<\EOF
651 #define ETCDIR_USER_DEFINED 1
655 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
656 Defining LOCKDIR_USER_DEFINED
658 cat >> confdefs.h <<\EOF
659 #define LOCKDIR_USER_DEFINED 1
663 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
664 Defining DOCDIR_USER_DEFINED
666 cat >> confdefs.h <<\EOF
667 #define DOCDIR_USER_DEFINED 1
671 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
672 Defining ARCHLIBDIR_USER_DEFINED
674 cat >> confdefs.h <<\EOF
675 #define ARCHLIBDIR_USER_DEFINED 1
684 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
687 "with_scrollbars" | \
691 l | lu | luc | luci | lucid ) val=lucid ;;
692 m | mo | mot | moti | motif ) val=motif ;;
693 athena3d | athena-3d ) val=athena3d ;;
694 a | at | ath | athe | athen | athena ) val=athena ;;
695 n | no | non | none ) val=no ;;
696 * ) (echo "$progname: Usage error:"
697 echo " " "The \`--$optname' option must have one of these values:
698 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
699 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
706 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
709 * ) (echo "$progname: Usage error:"
710 echo " " "Unrecognized option: $arg"
711 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
716 *-*-*) configuration="$arg" ;;
718 *) (echo "$progname: Usage error:"
719 echo " " "Unrecognized argument: $arg"
720 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
726 test -n "$cpp" && CPP="$cpp"
727 test -n "$cppflags" && CPPFLAGS="$cppflags"
728 test -n "$libs" && LIBS="$libs"
729 test -n "$ldflags" && LDFLAGS="$ldflags"
731 eval set x "$quoted_arguments"; shift
733 test "$extra_verbose" = "yes" && verbose=yes
735 test -n "$with_x" && with_x11="$with_x"
737 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
738 test "$with_system_malloc" = "default" && with_system_malloc=yes
743 if test "$with_cde $with_tooltalk" = "yes no"; then
744 (echo "$progname: Usage error:"
745 echo " " "--with-cde requires --with-tooltalk"
746 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
747 elif test "$with_tooltalk" = "no" ; then with_cde=no
748 elif test "$with_cde" = "yes"; then with_tooltalk=yes
755 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
756 if test -f "$dir/src/lisp.h" -a \
757 -f "$dir/lisp/version.el" ; then
762 if test -z "$srcdir" ; then
763 (echo "$progname: Usage error:"
764 echo " " "Neither the current directory nor its parent seem to
765 contain the XEmacs sources. If you do not want to build XEmacs in its
766 source tree, you should run \`$progname' in the directory in which
767 you wish to build XEmacs, using the \`--srcdir' option to say where the
768 sources may be found."
769 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
774 if test ! -f "$srcdir/src/lisp.h" -o \
775 ! -f "$srcdir/lisp/version.el" ; then
776 (echo "$progname: Usage error:"
777 echo " " "The directory specified with the \`--srcdir' option,
778 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
779 either run the \`$progname' script at the top of the XEmacs source
780 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
781 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
786 if test -z "$configuration"; then
787 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
788 if test -z "$configuration"; then
789 (echo "$progname: Usage error:"
790 echo " " "XEmacs has not been ported to this host type.
791 Try explicitly specifying the CONFIGURATION when rerunning configure."
792 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
796 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
797 echo "configure:798: checking whether ln -s works" >&5
800 if ln -s X conftestdata 2>/dev/null
803 ac_cv_prog_LN_S="ln -s"
807 LN_S="$ac_cv_prog_LN_S"
808 if test "$ac_cv_prog_LN_S" = "ln -s"; then
809 echo "$ac_t""yes" 1>&6
811 echo "$ac_t""no" 1>&6
815 for dir in lisp etc man info; do
816 if test ! -d "$dir" ; then
817 echo Making symbolic link to "$srcdir/$dir"
818 ${LN_S} "$srcdir/$dir" "$dir"
823 absolute_pwd="`pwd`";
824 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
826 else blddir="$absolute_pwd"; if test -d "/net"; then
827 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
828 blddir=`echo "$blddir" | \
829 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
836 . ) srcdir="$blddir" ;;
837 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
838 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
839 srcdir=`echo "$srcdir" | \
840 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
844 if test `pwd` != `sh -c cd $srcdir && pwd` \
845 && test -f "$srcdir/src/config.h"; then
846 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
847 echo " as a build directory right now; it has been configured in its own"
848 echo " right. To configure in another directory as well, you MUST"
849 echo " use GNU make. If you do not have GNU make, then you must"
850 echo " now do \`make distclean' in $srcdir,"
851 echo " and then run $progname again.") >&2
852 extrasub='/^VPATH[ ]*=/c\
858 vpath %.in $(srcdir)'
861 . "$srcdir/version.sh" || exit 1;
862 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
863 : "${extra_verbose=$beta}"
864 version="${emacs_major_version}.${emacs_minor_version}"
865 { test "$extra_verbose" = "yes" && cat << EOF
866 Defining EMACS_MAJOR_VERSION = $emacs_major_version
868 cat >> confdefs.h <<EOF
869 #define EMACS_MAJOR_VERSION $emacs_major_version
873 { test "$extra_verbose" = "yes" && cat << EOF
874 Defining EMACS_MINOR_VERSION = $emacs_minor_version
876 cat >> confdefs.h <<EOF
877 #define EMACS_MINOR_VERSION $emacs_minor_version
881 if test -n "$emacs_beta_version" ; then
882 if test "$beta" = "yes"; then
883 version="${version}-b${emacs_beta_version}"
884 { test "$extra_verbose" = "yes" && cat << EOF
885 Defining EMACS_BETA_VERSION = $emacs_beta_version
887 cat >> confdefs.h <<EOF
888 #define EMACS_BETA_VERSION $emacs_beta_version
893 version="${version}.${emacs_beta_version}"
894 { test "$extra_verbose" = "yes" && cat << EOF
895 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
897 cat >> confdefs.h <<EOF
898 #define EMACS_PATCH_LEVEL $emacs_beta_version
904 { test "$extra_verbose" = "yes" && cat << EOF
905 Defining XEMACS_CODENAME = "$xemacs_codename"
907 cat >> confdefs.h <<EOF
908 #define XEMACS_CODENAME "$xemacs_codename"
912 { test "$extra_verbose" = "yes" && cat << EOF
913 Defining EMACS_VERSION = "$version"
915 cat >> confdefs.h <<EOF
916 #define EMACS_VERSION "$version"
921 if test "$with_infodock" = "yes"; then
922 if test ! -f ../../ID-INSTALL; then
923 echo "Cannot build InfoDock without InfoDock sources"
928 if test "$with_infodock" = "yes"; then
929 { test "$extra_verbose" = "yes" && cat << EOF
930 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
932 cat >> confdefs.h <<EOF
933 #define INFODOCK_MAJOR_VERSION $infodock_major_version
937 { test "$extra_verbose" = "yes" && cat << EOF
938 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
940 cat >> confdefs.h <<EOF
941 #define INFODOCK_MINOR_VERSION $infodock_minor_version
945 { test "$extra_verbose" = "yes" && cat << EOF
946 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
948 cat >> confdefs.h <<EOF
949 #define INFODOCK_BUILD_VERSION $infodock_build_version
953 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
955 CPPFLAGS="$CPPFLAGS -DINFODOCK"
960 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
961 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
962 Defining ERROR_CHECK_EXTENTS
964 cat >> confdefs.h <<\EOF
965 #define ERROR_CHECK_EXTENTS 1
969 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
970 Defining ERROR_CHECK_TYPECHECK
972 cat >> confdefs.h <<\EOF
973 #define ERROR_CHECK_TYPECHECK 1
977 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
978 Defining ERROR_CHECK_BUFPOS
980 cat >> confdefs.h <<\EOF
981 #define ERROR_CHECK_BUFPOS 1
985 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
986 Defining ERROR_CHECK_GC
988 cat >> confdefs.h <<\EOF
989 #define ERROR_CHECK_GC 1
993 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
994 Defining ERROR_CHECK_MALLOC
996 cat >> confdefs.h <<\EOF
997 #define ERROR_CHECK_MALLOC 1
1001 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1002 Defining ERROR_CHECK_BYTE_CODE
1004 cat >> confdefs.h <<\EOF
1005 #define ERROR_CHECK_BYTE_CODE 1
1009 if test "${debug:=$beta}" = "yes"; then
1010 use_assertions=yes memory_usage_stats=yes
1011 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1012 echo " xemacs will be linked with \"debug.o\""
1014 { test "$extra_verbose" = "yes" && cat << \EOF
1015 Defining DEBUG_XEMACS
1017 cat >> confdefs.h <<\EOF
1018 #define DEBUG_XEMACS 1
1023 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1024 Defining USE_ASSERTIONS
1026 cat >> confdefs.h <<\EOF
1027 #define USE_ASSERTIONS 1
1031 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1032 Defining MEMORY_USAGE_STATS
1034 cat >> confdefs.h <<\EOF
1035 #define MEMORY_USAGE_STATS 1
1041 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1042 echo "configure:1043: checking "host system type"" >&5
1043 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1044 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1045 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1046 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1047 echo "$ac_t""$configuration" 1>&6
1055 case "$canonical" in
1056 sparc-*-* ) machine=sparc ;;
1057 alpha*-*-* ) machine=alpha ;;
1058 vax-*-* ) machine=vax ;;
1059 mips-dec-* ) machine=pmax ;;
1060 mips-sgi-* ) machine=iris4d ;;
1061 romp-ibm-* ) machine=ibmrt ;;
1062 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1063 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1064 powerpc*-* ) machine=powerpc ;;
1065 hppa-*-* ) machine=hp800 ;;
1066 m88k-dg-* ) machine=aviion ;;
1067 m68*-sony-* ) machine=news ;;
1068 mips-sony-* ) machine=news-risc ;;
1069 clipper-* ) machine=clipper ;;
1070 arm-* ) machine=arm ;;
1071 ns32k-* ) machine=ns32000 ;;
1074 case "$canonical" in
1075 *-*-linux* ) opsys=linux ;;
1076 *-*-netbsd* ) opsys=netbsd ;;
1077 *-*-openbsd* ) opsys=openbsd ;;
1078 *-*-nextstep* ) opsys=nextstep ;;
1079 *-*-vms ) opsys=vms ;;
1081 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1082 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1083 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1084 *-dec-osf3* ) opsys=decosf3-1 ;;
1085 *-dec-osf4* ) opsys=decosf4-0 ;;
1087 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1088 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1089 *-*-ultrix* ) opsys=ultrix4-3 ;;
1091 *-*-aix3.1* ) opsys=aix3-1 ;;
1092 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1093 *-*-aix3* ) opsys=aix3-2 ;;
1094 *-*-aix4.0* ) opsys=aix4 ;;
1095 *-*-aix4.1* ) opsys=aix4-1 ;;
1096 *-*-aix4* ) opsys=aix4-2 ;;
1098 *-gnu* ) opsys=gnu ;;
1099 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1100 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1101 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1102 *-*-aos4.2 ) opsys=bsd4-2 ;;
1103 *-*-aos* ) opsys=bsd4-3 ;;
1104 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1105 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1106 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1107 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1108 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1109 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1110 if test -z "$NON_GNU_CPP" ; then
1111 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1112 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1116 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1117 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1120 case "$canonical" in
1123 case "$canonical" in
1124 i[3-9]86-*-netbsd*) machine=intel386 ;;
1125 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1126 machine=hp9000s300 ;;
1127 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1128 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1133 case "${canonical}" in
1134 i386-*-openbsd*) machine=intel386 ;;
1135 m68k-*-openbsd*) machine=hp9000s300 ;;
1136 mipsel-*-openbsd*) machine=pmax ;;
1140 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1141 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1143 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1144 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1146 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1148 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1150 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1152 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1154 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1156 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1157 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1158 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1161 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1163 *-convex-bsd* | *-convex-convexos* )
1164 machine=convex opsys=bsd4-3
1165 NON_GNU_CPP="cc -E -P"
1168 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1170 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1171 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1172 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1173 m88k-dg-dgux* ) opsys=dgux ;;
1175 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1176 m88k-motorola-sysv4* )
1177 machine=delta88k opsys=usg5-4-2
1179 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1181 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1182 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1184 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1186 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1187 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1188 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1191 case "`uname -r`" in
1192 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1193 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1195 NON_GNU_CPP="/lib/cpp"
1197 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1198 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1200 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1202 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1205 case "$canonical" in
1206 m68* ) machine=hp9000s300 ;;
1207 hppa* ) machine=hp800 ;;
1210 case "$canonical" in
1211 *-hp-hpux7* ) opsys=hpux ;;
1212 *-hp-hpux8* ) opsys=hpux8 ;;
1213 *-hp-hpux9* ) opsys=hpux9 ;;
1214 *-hp-hpux10* ) opsys=hpux10 ;;
1215 *-hp-hpux11* ) opsys=hpux11 ;;
1219 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1220 echo " xemacs will be linked with \"strcat.o\""
1223 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1224 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1225 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1227 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1230 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1231 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1233 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1234 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1235 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1236 romp-ibm-aos* ) opsys=bsd4-3 ;;
1237 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1238 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1240 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1241 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1243 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1245 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1247 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1249 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1251 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1253 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1255 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1257 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1259 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1261 mips-mips-usg* ) machine=mips4 ;;
1264 NON_GNU_CC="cc -systype bsd43"
1265 NON_GNU_CPP="cc -systype bsd43 -E"
1266 case "$canonical" in
1267 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1268 mips-mips-riscos5* ) opsys=riscos5 ;;
1271 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1272 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1274 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1276 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1278 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1279 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1281 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1283 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1285 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1287 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1289 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1290 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1292 mips-siemens-sysv* | mips-sni-sysv*)
1293 machine=mips-siemens opsys=usg5-4
1294 NON_GNU_CC=/usr/ccs/bin/cc
1295 NON_GNU_CPP=/usr/ccs/lib/cpp
1300 NON_GNU_CC=/usr/ccs/bin/cc
1301 NON_GNU_CPP=/usr/ccs/lib/cpp
1304 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1305 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1306 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1307 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1308 mips-sgi-irix6* ) opsys=irix6-0 ;;
1309 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1310 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1311 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1312 mips-sgi-irix* ) opsys=irix5-0 ;;
1314 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1315 *-sony-news* ) opsys=newsos5 ;;
1317 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1319 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1320 case "$canonical" in
1321 m68*-sunos1* ) machine=sun1 ;;
1322 m68*-sunos2* ) machine=sun2 ;;
1323 m68* ) machine=sun3 ;;
1324 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1325 i*86-*-* ) machine=intel386 ;;
1326 rs6000* ) machine=rs6000 ;;
1329 case "$canonical" in *-sunos5*)
1330 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1333 case "$canonical" in
1335 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1338 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1342 case "$canonical" in
1345 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1346 { test "$extra_verbose" = "yes" && cat << EOF
1347 Defining OS_RELEASE = $os_release
1349 cat >> confdefs.h <<EOF
1350 #define OS_RELEASE $os_release
1355 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1356 *-sunos4.0* ) opsys=sunos4-0 ;;
1357 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1358 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1359 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1360 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1361 *-mach* ) opsys=mach-bsd4-3 ;;
1365 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1367 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1370 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1372 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1373 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1375 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1377 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1379 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1380 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1382 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1384 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1387 case "$canonical" in
1388 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1389 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1390 *-mach* ) opsys=mach-bsd4-3 ;;
1394 ns16k-whitechapel-* ) machine=mg1 ;;
1396 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1400 case "$canonical" in
1401 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1402 *-isc2.2* ) opsys=isc2-2 ;;
1403 *-isc4.0* ) opsys=isc4-0 ;;
1404 *-isc4.* ) opsys=isc4-1
1405 GCC_TEST_OPTIONS=-posix
1406 NON_GCC_TEST_OPTIONS=-Xp
1408 *-isc* ) opsys=isc3-0 ;;
1409 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1410 *-esix* ) opsys=esix ;;
1411 *-mach* ) opsys=mach-bsd4-3 ;;
1412 *-xenix* ) opsys=xenix ;;
1413 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1414 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1415 *-bsdi4* ) opsys=bsdos4 ;;
1416 *-bsdi3* ) opsys=bsdos3 ;;
1417 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1418 *-bsdi2* ) opsys=bsdos2 ;;
1419 *-sco3.2v5* ) opsys=sco5 ;
1420 if test "$dynamic" = "yes" ; then
1421 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1423 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1425 *-sysv5* ) opsys=sco7 ;;
1426 *-386bsd* ) opsys=386bsd ;;
1427 *-freebsd* ) opsys=freebsd ;;
1428 *-nextstep* ) opsys=nextstep ;;
1429 *-pc-cygwin* ) opsys=cygwin32 ;;
1430 *-pc-mingw* ) opsys=mingw32 ;
1431 test -z "$with_tty" && with_tty="no";;
1435 m68k-*-linux* ) machine=m68k opsys=linux ;;
1439 if test -z "$machine" -o -z "$opsys"; then
1440 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1441 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1446 if test -z "$dynamic"; then
1448 hpux* | sunos4* ) dynamic=no ;;
1452 if test "$dynamic" = "yes"; then
1454 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1455 decosf* ) ld_call_shared="-call_shared" ;;
1457 else case "$opsys" in
1459 echo "Static linking is not supported on Solaris 2."
1460 echo "Rerun configure without specifying --dynamic=no."
1462 linux ) ld_call_shared="-Bstatic" ;;
1463 decosf* ) ld_call_shared="-non_shared" ;;
1467 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1469 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1470 { test "$extra_verbose" = "yes" && cat << EOF
1471 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1473 cat >> confdefs.h <<EOF
1474 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1479 machfile="m/${machine}.h"
1480 opsysfile="s/${opsys}.h"
1483 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1484 if test "$with_workshop $with_tooltalk" = "yes no"; then
1485 (echo "$progname: Usage error:"
1486 echo " " "--with-workshop requires --with-tooltalk"
1487 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1488 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1489 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1492 if test "$with_workshop" = "yes"; then
1493 { test "$extra_verbose" = "yes" && cat << \EOF
1496 cat >> confdefs.h <<\EOF
1501 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1502 echo " xemacs will be linked with \"sunpro.o\""
1506 if test "$with_clash_detection" = "yes"; then
1507 { test "$extra_verbose" = "yes" && cat << \EOF
1508 Defining CLASH_DETECTION
1510 cat >> confdefs.h <<\EOF
1511 #define CLASH_DETECTION 1
1515 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1516 echo " xemacs will be linked with \"filelock.o\""
1520 test -n "$compiler" && CC="$compiler"
1521 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1524 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1525 if test "${CFLAGS-unset}" != unset
1526 then cflags_specified=yes;
1527 else cflags_specified=no;
1530 xe_save_CFLAGS="$CFLAGS"
1532 # Extract the first word of "gcc", so it can be a program name with args.
1533 set dummy gcc; ac_word=$2
1534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1535 echo "configure:1536: checking for $ac_word" >&5
1537 if test -n "$CC"; then
1538 ac_cv_prog_CC="$CC" # Let the user override the test.
1540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1542 for ac_dir in $ac_dummy; do
1543 test -z "$ac_dir" && ac_dir=.
1544 if test -f $ac_dir/$ac_word; then
1552 if test -n "$CC"; then
1553 echo "$ac_t""$CC" 1>&6
1555 echo "$ac_t""no" 1>&6
1558 if test -z "$CC"; then
1559 # Extract the first word of "cc", so it can be a program name with args.
1560 set dummy cc; ac_word=$2
1561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1562 echo "configure:1563: checking for $ac_word" >&5
1564 if test -n "$CC"; then
1565 ac_cv_prog_CC="$CC" # Let the user override the test.
1567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1570 for ac_dir in $ac_dummy; do
1571 test -z "$ac_dir" && ac_dir=.
1572 if test -f $ac_dir/$ac_word; then
1573 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1574 ac_prog_rejected=yes
1582 if test $ac_prog_rejected = yes; then
1583 # We found a bogon in the path, so make sure we never use it.
1584 set dummy $ac_cv_prog_CC
1586 if test $# -gt 0; then
1587 # We chose a different compiler from the bogus one.
1588 # However, it has the same basename, so the bogon will be chosen
1589 # first if we set CC to just the basename; use the full file name.
1591 set dummy "$ac_dir/$ac_word" "$@"
1598 if test -n "$CC"; then
1599 echo "$ac_t""$CC" 1>&6
1601 echo "$ac_t""no" 1>&6
1604 if test -z "$CC"; then
1605 case "`uname -s`" in
1607 # Extract the first word of "cl", so it can be a program name with args.
1608 set dummy cl; ac_word=$2
1609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1610 echo "configure:1611: checking for $ac_word" >&5
1612 if test -n "$CC"; then
1613 ac_cv_prog_CC="$CC" # Let the user override the test.
1615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1617 for ac_dir in $ac_dummy; do
1618 test -z "$ac_dir" && ac_dir=.
1619 if test -f $ac_dir/$ac_word; then
1627 if test -n "$CC"; then
1628 echo "$ac_t""$CC" 1>&6
1630 echo "$ac_t""no" 1>&6
1635 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1638 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1639 echo "configure:1640: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1642 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1643 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1644 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1645 ac_cpp='$CPP '"$xe_cppflags"
1646 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1647 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1650 cat > conftest.$ac_ext << EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1657 if { (eval echo configure:1658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1658 ac_cv_prog_cc_works=yes
1659 # If we can't run a trivial program, we are probably using a cross compiler.
1660 if (./conftest; exit) 2>/dev/null; then
1661 ac_cv_prog_cc_cross=no
1663 ac_cv_prog_cc_cross=yes
1666 echo "configure: failed program was:" >&5
1667 cat conftest.$ac_ext >&5
1668 ac_cv_prog_cc_works=no
1672 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1673 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1674 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1675 ac_cpp='$CPP '"$xe_cppflags"
1676 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1677 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1680 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1681 if test $ac_cv_prog_cc_works = no; then
1682 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1684 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1685 echo "configure:1686: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1686 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1687 cross_compiling=$ac_cv_prog_cc_cross
1689 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1690 echo "configure:1691: checking whether we are using GNU C" >&5
1692 cat > conftest.c <<EOF
1697 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1703 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1705 if test $ac_cv_prog_gcc = yes; then
1711 ac_test_CFLAGS="${CFLAGS+set}"
1712 ac_save_CFLAGS="$CFLAGS"
1714 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1715 echo "configure:1716: checking whether ${CC-cc} accepts -g" >&5
1717 echo 'void f(){}' > conftest.c
1718 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1726 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1727 if test "$ac_test_CFLAGS" = set; then
1728 CFLAGS="$ac_save_CFLAGS"
1729 elif test $ac_cv_prog_cc_g = yes; then
1730 if test "$GCC" = yes; then
1736 if test "$GCC" = yes; then
1743 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1745 # Extract the first word of "gcc", so it can be a program name with args.
1746 set dummy gcc; ac_word=$2
1747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1748 echo "configure:1749: checking for $ac_word" >&5
1750 if test -n "$CC"; then
1751 ac_cv_prog_CC="$CC" # Let the user override the test.
1753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1755 for ac_dir in $ac_dummy; do
1756 test -z "$ac_dir" && ac_dir=.
1757 if test -f $ac_dir/$ac_word; then
1765 if test -n "$CC"; then
1766 echo "$ac_t""$CC" 1>&6
1768 echo "$ac_t""no" 1>&6
1771 if test -z "$CC"; then
1772 # Extract the first word of "cc", so it can be a program name with args.
1773 set dummy cc; ac_word=$2
1774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1775 echo "configure:1776: checking for $ac_word" >&5
1777 if test -n "$CC"; then
1778 ac_cv_prog_CC="$CC" # Let the user override the test.
1780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1783 for ac_dir in $ac_dummy; do
1784 test -z "$ac_dir" && ac_dir=.
1785 if test -f $ac_dir/$ac_word; then
1786 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1787 ac_prog_rejected=yes
1795 if test $ac_prog_rejected = yes; then
1796 # We found a bogon in the path, so make sure we never use it.
1797 set dummy $ac_cv_prog_CC
1799 if test $# -gt 0; then
1800 # We chose a different compiler from the bogus one.
1801 # However, it has the same basename, so the bogon will be chosen
1802 # first if we set CC to just the basename; use the full file name.
1804 set dummy "$ac_dir/$ac_word" "$@"
1811 if test -n "$CC"; then
1812 echo "$ac_t""$CC" 1>&6
1814 echo "$ac_t""no" 1>&6
1817 if test -z "$CC"; then
1818 case "`uname -s`" in
1820 # Extract the first word of "cl", so it can be a program name with args.
1821 set dummy cl; ac_word=$2
1822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1823 echo "configure:1824: checking for $ac_word" >&5
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC="$CC" # Let the user override the test.
1828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1830 for ac_dir in $ac_dummy; do
1831 test -z "$ac_dir" && ac_dir=.
1832 if test -f $ac_dir/$ac_word; then
1840 if test -n "$CC"; then
1841 echo "$ac_t""$CC" 1>&6
1843 echo "$ac_t""no" 1>&6
1848 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1851 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1852 echo "configure:1853: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1855 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1856 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1857 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1858 ac_cpp='$CPP '"$xe_cppflags"
1859 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1860 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1863 cat > conftest.$ac_ext << EOF
1865 #line 1866 "configure"
1866 #include "confdefs.h"
1870 if { (eval echo configure:1871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1871 ac_cv_prog_cc_works=yes
1872 # If we can't run a trivial program, we are probably using a cross compiler.
1873 if (./conftest; exit) 2>/dev/null; then
1874 ac_cv_prog_cc_cross=no
1876 ac_cv_prog_cc_cross=yes
1879 echo "configure: failed program was:" >&5
1880 cat conftest.$ac_ext >&5
1881 ac_cv_prog_cc_works=no
1885 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1886 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1887 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1888 ac_cpp='$CPP '"$xe_cppflags"
1889 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1890 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1893 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1894 if test $ac_cv_prog_cc_works = no; then
1895 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1897 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1898 echo "configure:1899: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1899 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1900 cross_compiling=$ac_cv_prog_cc_cross
1902 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1903 echo "configure:1904: checking whether we are using GNU C" >&5
1905 cat > conftest.c <<EOF
1910 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1916 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1918 if test $ac_cv_prog_gcc = yes; then
1924 ac_test_CFLAGS="${CFLAGS+set}"
1925 ac_save_CFLAGS="$CFLAGS"
1927 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1928 echo "configure:1929: checking whether ${CC-cc} accepts -g" >&5
1930 echo 'void f(){}' > conftest.c
1931 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1939 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1940 if test "$ac_test_CFLAGS" = set; then
1941 CFLAGS="$ac_save_CFLAGS"
1942 elif test $ac_cv_prog_cc_g = yes; then
1943 if test "$GCC" = yes; then
1949 if test "$GCC" = yes; then
1956 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1958 # Extract the first word of "gcc", so it can be a program name with args.
1959 set dummy gcc; ac_word=$2
1960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1961 echo "configure:1962: checking for $ac_word" >&5
1963 if test -n "$CC"; then
1964 ac_cv_prog_CC="$CC" # Let the user override the test.
1966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1968 for ac_dir in $ac_dummy; do
1969 test -z "$ac_dir" && ac_dir=.
1970 if test -f $ac_dir/$ac_word; then
1978 if test -n "$CC"; then
1979 echo "$ac_t""$CC" 1>&6
1981 echo "$ac_t""no" 1>&6
1984 if test -z "$CC"; then
1985 # Extract the first word of "cc", so it can be a program name with args.
1986 set dummy cc; ac_word=$2
1987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1988 echo "configure:1989: checking for $ac_word" >&5
1990 if test -n "$CC"; then
1991 ac_cv_prog_CC="$CC" # Let the user override the test.
1993 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1996 for ac_dir in $ac_dummy; do
1997 test -z "$ac_dir" && ac_dir=.
1998 if test -f $ac_dir/$ac_word; then
1999 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2000 ac_prog_rejected=yes
2008 if test $ac_prog_rejected = yes; then
2009 # We found a bogon in the path, so make sure we never use it.
2010 set dummy $ac_cv_prog_CC
2012 if test $# -gt 0; then
2013 # We chose a different compiler from the bogus one.
2014 # However, it has the same basename, so the bogon will be chosen
2015 # first if we set CC to just the basename; use the full file name.
2017 set dummy "$ac_dir/$ac_word" "$@"
2024 if test -n "$CC"; then
2025 echo "$ac_t""$CC" 1>&6
2027 echo "$ac_t""no" 1>&6
2030 if test -z "$CC"; then
2031 case "`uname -s`" in
2033 # Extract the first word of "cl", so it can be a program name with args.
2034 set dummy cl; ac_word=$2
2035 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2036 echo "configure:2037: checking for $ac_word" >&5
2038 if test -n "$CC"; then
2039 ac_cv_prog_CC="$CC" # Let the user override the test.
2041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2043 for ac_dir in $ac_dummy; do
2044 test -z "$ac_dir" && ac_dir=.
2045 if test -f $ac_dir/$ac_word; then
2053 if test -n "$CC"; then
2054 echo "$ac_t""$CC" 1>&6
2056 echo "$ac_t""no" 1>&6
2061 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2064 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2065 echo "configure:2066: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2068 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2069 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2070 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2071 ac_cpp='$CPP '"$xe_cppflags"
2072 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2073 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2076 cat > conftest.$ac_ext << EOF
2078 #line 2079 "configure"
2079 #include "confdefs.h"
2083 if { (eval echo configure:2084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2084 ac_cv_prog_cc_works=yes
2085 # If we can't run a trivial program, we are probably using a cross compiler.
2086 if (./conftest; exit) 2>/dev/null; then
2087 ac_cv_prog_cc_cross=no
2089 ac_cv_prog_cc_cross=yes
2092 echo "configure: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2094 ac_cv_prog_cc_works=no
2098 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2099 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2100 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2101 ac_cpp='$CPP '"$xe_cppflags"
2102 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2103 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2106 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2107 if test $ac_cv_prog_cc_works = no; then
2108 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2110 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2111 echo "configure:2112: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2112 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2113 cross_compiling=$ac_cv_prog_cc_cross
2115 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2116 echo "configure:2117: checking whether we are using GNU C" >&5
2118 cat > conftest.c <<EOF
2123 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2129 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2131 if test $ac_cv_prog_gcc = yes; then
2137 ac_test_CFLAGS="${CFLAGS+set}"
2138 ac_save_CFLAGS="$CFLAGS"
2140 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2141 echo "configure:2142: checking whether ${CC-cc} accepts -g" >&5
2143 echo 'void f(){}' > conftest.c
2144 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2152 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2153 if test "$ac_test_CFLAGS" = set; then
2154 CFLAGS="$ac_save_CFLAGS"
2155 elif test $ac_cv_prog_cc_g = yes; then
2156 if test "$GCC" = yes; then
2162 if test "$GCC" = yes; then
2170 CFLAGS="$xe_save_CFLAGS"
2173 test -n "$CPP" -a -d "$CPP" && CPP=
2175 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2177 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2178 echo "configure:2179: checking how to run the C preprocessor" >&5
2179 # On Suns, sometimes $CPP names a directory.
2180 if test -n "$CPP" && test -d "$CPP"; then
2183 if test -z "$CPP"; then
2185 # This must be in double quotes, not single quotes, because CPP may get
2186 # substituted into the Makefile and "${CC-cc}" will confuse make.
2188 # On the NeXT, cc -E runs the code through the compiler's parser,
2189 # not just through cpp.
2190 cat > conftest.$ac_ext <<EOF
2191 #line 2192 "configure"
2192 #include "confdefs.h"
2196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2197 { (eval echo configure:2198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2199 if test -z "$ac_err"; then
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2206 CPP="${CC-cc} -E -traditional-cpp"
2207 cat > conftest.$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2214 { (eval echo configure:2215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2216 if test -z "$ac_err"; then
2220 echo "configure: failed program was:" >&5
2221 cat conftest.$ac_ext >&5
2223 CPP="${CC-cc} -nologo -E"
2224 cat > conftest.$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2231 { (eval echo configure:2232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2233 if test -z "$ac_err"; then
2237 echo "configure: failed program was:" >&5
2238 cat conftest.$ac_ext >&5
2247 ac_cv_prog_CPP="$CPP"
2248 CPP="$ac_cv_prog_CPP"
2250 ac_cv_prog_CPP="$CPP"
2252 echo "$ac_t""$CPP" 1>&6
2255 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2256 echo "configure:2257: checking for AIX" >&5
2257 cat > conftest.$ac_ext <<EOF
2258 #line 2259 "configure"
2259 #include "confdefs.h"
2265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2266 egrep "yes" >/dev/null 2>&1; then
2268 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2269 Defining _ALL_SOURCE
2271 cat >> confdefs.h <<\EOF
2272 #define _ALL_SOURCE 1
2278 echo "$ac_t""no" 1>&6
2284 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2285 echo "configure:2286: checking for GNU libc" >&5
2286 cat > conftest.$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2289 #include <features.h>
2292 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2293 #error Not a GNU libc system :-(
2294 ******* ======= ******** &&&&&&&&
2299 if { (eval echo configure:2300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2303 echo "configure: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2309 echo "$ac_t""$have_glibc" 1>&6
2310 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2311 Defining _GNU_SOURCE
2313 cat >> confdefs.h <<\EOF
2314 #define _GNU_SOURCE 1
2320 cat > conftest.$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2324 #if defined __SUNPRO_C
2326 #elif defined __DECC
2333 if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2341 case "$conftest_rc" in
2342 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2343 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2351 echo "Extracting information from the machine- and system-dependent headers..."
2353 tempcname="conftest.c"
2357 cat > $tempcname <<EOF
2359 #define C_SWITCH_SITE
2360 #define C_SWITCH_X_SITE
2361 #define LD_SWITCH_SITE
2362 #define LD_SWITCH_X_SITE
2363 #define LD_SWITCH_X_SITE_AUX
2364 #define OS_RELEASE $os_release
2365 #include "$srcdir/src/$opsysfile"
2366 #include "$srcdir/src/$machfile"
2368 #ifndef LIBS_MACHINE
2369 #define LIBS_MACHINE
2371 configure___ libs_machine=LIBS_MACHINE
2376 configure___ libs_system=LIBS_SYSTEM
2378 #ifndef LIBS_TERMCAP
2379 #define LIBS_TERMCAP
2381 configure___ libs_termcap=LIBS_TERMCAP
2383 #ifndef LIB_STANDARD
2384 #define LIB_STANDARD
2386 configure___ libs_standard=LIB_STANDARD
2389 #ifndef OBJECTS_MACHINE
2390 #define OBJECTS_MACHINE
2392 configure___ objects_machine=OBJECTS_MACHINE
2394 #ifndef OBJECTS_SYSTEM
2395 #define OBJECTS_SYSTEM
2397 configure___ objects_system=OBJECTS_SYSTEM
2400 #ifndef C_SWITCH_MACHINE
2401 #define C_SWITCH_MACHINE
2403 configure___ c_switch_machine=C_SWITCH_MACHINE
2405 #ifndef C_SWITCH_SYSTEM
2406 #define C_SWITCH_SYSTEM
2408 configure___ c_switch_system=C_SWITCH_SYSTEM
2411 #ifndef LD_SWITCH_MACHINE
2412 #define LD_SWITCH_MACHINE
2414 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2416 #ifndef LD_SWITCH_SYSTEM
2417 #define LD_SWITCH_SYSTEM
2419 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2423 #define UNEXEC "unexec.o"
2425 configure___ unexec=UNEXEC
2428 #ifndef LD_SWITCH_SHARED
2429 #define LD_SWITCH_SHARED "-c"
2431 configure___ ld_switch_shared=LD_SWITCH_SHARED
2434 #ifdef ORDINARY_LINK
2435 #define LD "\$(CC) \$(CFLAGS)"
2436 #else /* no ORDINARY LINK */
2437 #ifdef COFF_ENCAPSULATE
2438 #define LD "\$(CC) -nostdlib"
2439 #else /* not COFF_ENCAPSULATE */
2442 #else /* ! defined (LINKER) */
2444 #endif /* ! defined (LINKER) */
2445 #endif /* ! defined (COFF_ENCAPSULATE) */
2446 #endif /* not ORDINARY_LINK */
2452 configure___ lib_gcc=LIB_GCC
2454 #ifndef LD_TEXT_START_ADDR
2455 #define LD_TEXT_START_ADDR
2457 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2460 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2462 #ifdef COFF_ENCAPSULATE
2463 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2464 #else /* ! defined (COFF_ENCAPSULATE) */
2465 #define START_FILES "pre-crt0.o /lib/crt0.o"
2466 #endif /* ! defined (COFF_ENCAPSULATE) */
2467 #else /* ! defined (NO_REMAP) */
2468 #define START_FILES "ecrt0.o"
2469 #endif /* ! defined (NO_REMAP) */
2470 #endif /* no ORDINARY_LINK */
2474 configure___ start_files=START_FILES
2476 #ifdef ORDINARY_LINK
2477 configure___ ordinary_link=yes
2479 configure___ ordinary_link=no
2482 #ifdef SYSTEM_MALLOC
2483 configure___ system_malloc=yes
2485 configure___ system_malloc=no
2489 configure___ have_terminfo=yes
2491 configure___ have_terminfo=no
2494 #ifdef MAIL_USE_FLOCK
2495 configure___ mail_use_flock=yes
2497 configure___ mail_use_flock=no
2500 #ifdef MAIL_USE_LOCKF
2501 configure___ mail_use_lockf=yes
2503 configure___ mail_use_lockf=no
2506 #ifdef HAVE_WIN32_PROCESSES
2507 configure___ win32_processes=yes
2509 configure___ win32_processes=no
2514 CPP=`eval "echo $CPP $CPPFLAGS"`
2515 eval `$CPP -Isrc $tempcname \
2516 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2520 test "$extra_verbose" = "yes" && \
2521 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 ""
2523 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2525 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2527 if test "$cflags_specified" = "no"; then
2528 if test "$GCC" = "yes"; then
2529 CFLAGS="-g -O3 -Wall -Wno-switch"
2530 elif test "$__SUNPRO_C" = "yes"; then
2532 sol2 ) CFLAGS="-v -xO4" ;;
2533 sunos4* ) CFLAGS="-xO2";;
2535 elif test "$__DECC" = "yes"; then
2537 elif test "$CC" = "xlc"; then
2538 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2544 if test "$GCC" = "yes"; then
2545 set x $ld_switch_system; shift; ld_switch_system=""
2546 while test -n "$1"; do
2548 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2549 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2551 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2557 if test "$GCC" = "yes"; then
2558 set x $ld_switch_machine; shift; ld_switch_machine=""
2559 while test -n "$1"; do
2561 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2562 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2564 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2570 if test "$GCC" = "yes"; then
2571 set x $LDFLAGS; shift; LDFLAGS=""
2572 while test -n "$1"; do
2574 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2575 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2577 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2583 if test "$GCC" = "yes"; then
2584 set x $ld_call_shared; shift; ld_call_shared=""
2585 while test -n "$1"; do
2587 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2588 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2590 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2596 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2597 echo " xemacs will be linked with \"$objects_machine\""
2599 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2600 echo " xemacs will be linked with \"$objects_system\""
2602 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2603 echo " xemacs will be linked with \"$unexec\""
2606 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2607 echo "configure:2608: checking for dynodump" >&5
2608 if test "$unexec" != "unexsol2.o"; then
2609 echo "$ac_t""no" 1>&6
2611 echo "$ac_t""yes" 1>&6
2612 { test "$extra_verbose" = "yes" && cat << \EOF
2615 cat >> confdefs.h <<\EOF
2620 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2621 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2623 sparc ) dynodump_arch=sparc ;;
2624 *86* ) dynodump_arch=i386 ;;
2625 powerpc ) dynodump_arch=ppc ;;
2627 test "$GCC" = "yes" && ld_switch_site="$ld_switch_site -fno-gnu-linker" && if test "$extra_verbose" = "yes"; then echo " Appending \"-fno-gnu-linker\" to \$ld_switch_site"; fi
2631 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2633 if test "$unexec" = "unexaix.o"; then
2634 if test "$dynamic" = "no"; then
2635 start_flags="-Wl,-bnso,-bnodelcsect"
2636 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2637 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2638 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2640 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2641 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2644 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2645 echo "configure:2646: checking for terminateAndUnload in -lC" >&5
2646 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2648 xe_check_libs=" -lC "
2649 cat > conftest.$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2652 /* Override any gcc2 internal prototype to avoid an error. */
2653 /* We use char because int might match the return type of a gcc2
2654 builtin and then its argument prototype would still apply. */
2655 char terminateAndUnload();
2658 terminateAndUnload()
2661 if { (eval echo configure:2662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2663 eval "ac_cv_lib_$ac_lib_var=yes"
2665 echo "configure: failed program was:" >&5
2666 cat conftest.$ac_ext >&5
2668 eval "ac_cv_lib_$ac_lib_var=no"
2673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2674 echo "$ac_t""yes" 1>&6
2675 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2677 echo "$ac_t""no" 1>&6
2682 elif test -n "$ld_text_start_addr"; then
2683 start_flags="-T $ld_text_start_addr -e __start"
2689 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2690 test -z "$linker" && linker='$(CC) -nostdlib'
2691 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2693 test "$GCC" != "yes" && lib_gcc=
2699 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2700 if test -n "$site_libraries"; then
2701 for arg in $site_libraries; do
2704 * ) test -d "$arg" || \
2705 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2708 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2712 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2713 if test -n "$site_includes"; then
2714 for arg in $site_includes; do
2717 * ) test -d "$arg" || \
2718 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2721 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2725 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2726 if test -n "$site_prefixes"; then
2727 for dir in $site_prefixes; do
2728 lib_dir="${dir}/lib"
2729 inc_dir="${dir}/include"
2730 if test ! -d "$dir"; then
2731 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2732 elif test ! -d "$lib_dir"; then
2733 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2735 if test -d "$inc_dir"; then
2736 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
2738 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
2744 for dir in "/usr/ccs/lib"; do
2745 test -d "$dir" && ld_switch_site="$ld_switch_site -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_site"; fi
2748 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2749 if test -n "$site_runtime_libraries"; then
2750 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2755 if test "$dynamic" = "no"; then add_runtime_path=no
2756 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2757 else case "$opsys" in
2758 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2759 * ) add_runtime_path=no ;;
2763 if test "$add_runtime_path" = "yes"; then
2764 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2765 echo "configure:2766: checking "for runtime libraries flag"" >&5
2767 sol2 ) dash_r="-R" ;;
2768 decosf* | linux* | irix*) dash_r="-rpath " ;;
2771 for try_dash_r in "-R" "-R " "-rpath "; do
2772 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2774 if test "$GCC" = "yes"; then
2775 set x $xe_check_libs; shift; xe_check_libs=""
2776 while test -n "$1"; do
2778 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2779 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2781 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2786 cat > conftest.$ac_ext <<EOF
2787 #line 2788 "configure"
2788 #include "confdefs.h"
2794 if { (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2796 dash_r="$try_dash_r"
2798 echo "configure: failed program was:" >&5
2799 cat conftest.$ac_ext >&5
2803 test -n "$dash_r" && break
2806 if test -n "$dash_r";
2807 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2808 else echo "$ac_t""NONE" 1>&6
2812 xe_add_unique_runpath_dir='
2814 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2816 if test "$xe_add_p" = "yes"; then
2817 test -n "$runpath" && runpath="${runpath}:"
2818 runpath="${runpath}${xe_runpath_dir}"
2819 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2825 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2826 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2827 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2829 runpath="" runpath_dirs=""
2830 if test -n "$LD_RUN_PATH"; then
2831 runpath="$LD_RUN_PATH"
2832 elif test "$GCC" = "yes"; then
2833 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2834 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2835 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2836 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2837 case "$arg" in P,* | -L* | -R* )
2838 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2840 xe_runpath_dir="$dir"
2841 test "$xe_runpath_dir" != "/lib" -a \
2842 "$xe_runpath_dir" != "/usr/lib" -a \
2843 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2844 eval "$xe_add_unique_runpath_dir"
2849 ld_switch_run="$ld_switch_run_save"
2852 for arg in $ld_switch_site $ld_switch_x_site; do
2853 case "$arg" in -L*) {
2854 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2855 test "$xe_runpath_dir" != "/lib" -a \
2856 "$xe_runpath_dir" != "/usr/lib" -a \
2857 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2858 eval "$xe_add_unique_runpath_dir"
2861 if test "$opsys $need_motif" = "sol2 yes"; then
2862 xe_runpath_dir="/opt/SUNWdt/lib";
2863 eval "$xe_add_unique_runpath_dir";
2866 if test -n "$runpath"; then
2867 ld_switch_run="${dash_r}${runpath}"
2869 if test "$GCC" = "yes"; then
2870 set x $ld_switch_run; shift; ld_switch_run=""
2871 while test -n "$1"; do
2873 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2874 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2876 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2881 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2889 if test "$with_dlmalloc" != "no"; then
2894 after_morecore_hook_exists=yes
2895 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2896 echo "configure:2897: checking for malloc_get_state" >&5
2898 cat > conftest.$ac_ext <<EOF
2899 #line 2900 "configure"
2900 #include "confdefs.h"
2901 /* System header to define __stub macros and hopefully few prototypes,
2902 which can conflict with char malloc_get_state(); below. */
2904 /* Override any gcc2 internal prototype to avoid an error. */
2905 /* We use char because int might match the return type of a gcc2
2906 builtin and then its argument prototype would still apply. */
2907 char malloc_get_state();
2911 /* The GNU C library defines this for functions which it implements
2912 to always fail with ENOSYS. Some functions are actually named
2913 something starting with __ and the normal name is an alias. */
2914 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2922 if { (eval echo configure:2923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2924 eval "ac_cv_func_malloc_get_state=yes"
2926 echo "configure: failed program was:" >&5
2927 cat conftest.$ac_ext >&5
2929 eval "ac_cv_func_malloc_get_state=no"
2933 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2934 echo "$ac_t""yes" 1>&6
2937 echo "$ac_t""no" 1>&6
2941 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2942 echo "configure:2943: checking for malloc_set_state" >&5
2944 cat > conftest.$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2947 /* System header to define __stub macros and hopefully few prototypes,
2948 which can conflict with char malloc_set_state(); below. */
2950 /* Override any gcc2 internal prototype to avoid an error. */
2951 /* We use char because int might match the return type of a gcc2
2952 builtin and then its argument prototype would still apply. */
2953 char malloc_set_state();
2957 /* The GNU C library defines this for functions which it implements
2958 to always fail with ENOSYS. Some functions are actually named
2959 something starting with __ and the normal name is an alias. */
2960 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
2968 if { (eval echo configure:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2970 eval "ac_cv_func_malloc_set_state=yes"
2972 echo "configure: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2975 eval "ac_cv_func_malloc_set_state=no"
2979 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
2980 echo "$ac_t""yes" 1>&6
2983 echo "$ac_t""no" 1>&6
2987 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2988 echo "configure:2989: checking whether __after_morecore_hook exists" >&5
2989 cat > conftest.$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2992 extern void (* __after_morecore_hook)();
2994 __after_morecore_hook = 0
2997 if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2999 echo "$ac_t""yes" 1>&6
3001 echo "configure: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3004 echo "$ac_t""no" 1>&6
3005 after_morecore_hook_exists=no
3008 if test "$system_malloc" = "yes" ; then
3011 (The GNU allocators don't work with this system configuration)."
3012 elif test "$with_system_malloc" = "yes" ; then
3015 (User chose not to use GNU allocators)."
3016 elif test "$with_debug_malloc" = "yes" ; then
3019 (User chose to use Debugging Malloc)."
3022 if test "$doug_lea_malloc" = "yes" ; then
3023 if test "$GNU_MALLOC" = yes ; then
3025 (Using Doug Lea's new malloc from the GNU C Library.)"
3027 { test "$extra_verbose" = "yes" && cat << \EOF
3028 Defining DOUG_LEA_MALLOC
3030 cat >> confdefs.h <<\EOF
3031 #define DOUG_LEA_MALLOC 1
3035 if test "$after_morecore_hook_exists" = "no" ; then
3037 (Using Doug Lea's new malloc from the Linux C Library.)"
3038 { test "$extra_verbose" = "yes" && cat << \EOF
3039 Defining _NO_MALLOC_WARNING_
3041 cat >> confdefs.h <<\EOF
3042 #define _NO_MALLOC_WARNING_ 1
3047 use_minimal_tagbits=yes
3053 # Extract the first word of "ranlib", so it can be a program name with args.
3054 set dummy ranlib; ac_word=$2
3055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3056 echo "configure:3057: checking for $ac_word" >&5
3058 if test -n "$RANLIB"; then
3059 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3063 for ac_dir in $ac_dummy; do
3064 test -z "$ac_dir" && ac_dir=.
3065 if test -f $ac_dir/$ac_word; then
3066 ac_cv_prog_RANLIB="ranlib"
3071 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3073 RANLIB="$ac_cv_prog_RANLIB"
3074 if test -n "$RANLIB"; then
3075 echo "$ac_t""$RANLIB" 1>&6
3077 echo "$ac_t""no" 1>&6
3081 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3082 if test -f $ac_dir/install-sh; then
3084 ac_install_sh="$ac_aux_dir/install-sh -c"
3086 elif test -f $ac_dir/install.sh; then
3088 ac_install_sh="$ac_aux_dir/install.sh -c"
3092 if test -z "$ac_aux_dir"; then
3093 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3095 ac_config_guess=$ac_aux_dir/config.guess
3096 ac_config_sub=$ac_aux_dir/config.sub
3097 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3099 # Find a good install program. We prefer a C program (faster),
3100 # so one script is as good as another. But avoid the broken or
3101 # incompatible versions:
3102 # SysV /etc/install, /usr/sbin/install
3103 # SunOS /usr/etc/install
3104 # IRIX /sbin/install
3106 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3107 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3108 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3109 # ./install, which can be erroneously created by make from ./install.sh.
3110 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3111 echo "configure:3112: checking for a BSD compatible install" >&5
3112 if test -z "$INSTALL"; then
3114 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3115 for ac_dir in $PATH; do
3116 # Account for people who put trailing slashes in PATH elements.
3118 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3120 # OSF1 and SCO ODT 3.0 have their own names for install.
3121 # Don't use installbsd from OSF since it installs stuff as root
3123 for ac_prog in ginstall scoinst install; do
3124 if test -f $ac_dir/$ac_prog; then
3125 if test $ac_prog = install &&
3126 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3127 # AIX install. It has an incompatible calling convention.
3130 ac_cv_path_install="$ac_dir/$ac_prog -c"
3140 if test "${ac_cv_path_install+set}" = set; then
3141 INSTALL="$ac_cv_path_install"
3143 # As a last resort, use the slow shell script. We don't cache a
3144 # path for INSTALL within a source directory, because that will
3145 # break other packages using the cache if that directory is
3146 # removed, or if the path is relative.
3147 INSTALL="$ac_install_sh"
3150 echo "$ac_t""$INSTALL" 1>&6
3152 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3153 # It thinks the first close brace ends the variable substitution.
3154 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3156 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3158 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3160 for ac_prog in 'bison -y' byacc
3162 # Extract the first word of "$ac_prog", so it can be a program name with args.
3163 set dummy $ac_prog; ac_word=$2
3164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3165 echo "configure:3166: checking for $ac_word" >&5
3167 if test -n "$YACC"; then
3168 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3172 for ac_dir in $ac_dummy; do
3173 test -z "$ac_dir" && ac_dir=.
3174 if test -f $ac_dir/$ac_word; then
3175 ac_cv_prog_YACC="$ac_prog"
3181 YACC="$ac_cv_prog_YACC"
3182 if test -n "$YACC"; then
3183 echo "$ac_t""$YACC" 1>&6
3185 echo "$ac_t""no" 1>&6
3188 test -n "$YACC" && break
3190 test -n "$YACC" || YACC="yacc"
3193 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3195 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3196 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3197 echo "configure:3198: checking for $ac_hdr" >&5
3199 cat > conftest.$ac_ext <<EOF
3200 #line 3201 "configure"
3201 #include "confdefs.h"
3204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3205 { (eval echo configure:3206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3207 if test -z "$ac_err"; then
3209 eval "ac_cv_header_$ac_safe=yes"
3212 echo "configure: failed program was:" >&5
3213 cat conftest.$ac_ext >&5
3215 eval "ac_cv_header_$ac_safe=no"
3218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3219 echo "$ac_t""yes" 1>&6
3220 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3221 { test "$extra_verbose" = "yes" && cat << EOF
3224 cat >> confdefs.h <<EOF
3225 #define $ac_tr_hdr 1
3230 echo "$ac_t""no" 1>&6
3234 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3236 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3237 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3238 echo "configure:3239: checking for $ac_hdr" >&5
3240 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3246 { (eval echo configure:3247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3248 if test -z "$ac_err"; then
3250 eval "ac_cv_header_$ac_safe=yes"
3253 echo "configure: failed program was:" >&5
3254 cat conftest.$ac_ext >&5
3256 eval "ac_cv_header_$ac_safe=no"
3259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3260 echo "$ac_t""yes" 1>&6
3261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3262 { test "$extra_verbose" = "yes" && cat << EOF
3265 cat >> confdefs.h <<EOF
3266 #define $ac_tr_hdr 1
3271 echo "$ac_t""no" 1>&6
3275 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3277 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3278 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3279 echo "configure:3280: checking for $ac_hdr" >&5
3281 cat > conftest.$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3287 { (eval echo configure:3288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3289 if test -z "$ac_err"; then
3291 eval "ac_cv_header_$ac_safe=yes"
3294 echo "configure: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3297 eval "ac_cv_header_$ac_safe=no"
3300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3301 echo "$ac_t""yes" 1>&6
3302 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3303 { test "$extra_verbose" = "yes" && cat << EOF
3306 cat >> confdefs.h <<EOF
3307 #define $ac_tr_hdr 1
3312 echo "$ac_t""no" 1>&6
3316 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3317 echo "configure:3318: checking for sys/wait.h that is POSIX.1 compatible" >&5
3319 cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 #include <sys/types.h>
3323 #include <sys/wait.h>
3325 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3328 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3333 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3336 if { (eval echo configure:3337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3338 ac_cv_header_sys_wait_h=yes
3340 echo "configure: failed program was:" >&5
3341 cat conftest.$ac_ext >&5
3343 ac_cv_header_sys_wait_h=no
3347 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3348 if test $ac_cv_header_sys_wait_h = yes; then
3349 { test "$extra_verbose" = "yes" && cat << \EOF
3350 Defining HAVE_SYS_WAIT_H
3352 cat >> confdefs.h <<\EOF
3353 #define HAVE_SYS_WAIT_H 1
3359 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3360 echo "configure:3361: checking for ANSI C header files" >&5
3362 cat > conftest.$ac_ext <<EOF
3363 #line 3364 "configure"
3364 #include "confdefs.h"
3370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3371 { (eval echo configure:3372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3373 if test -z "$ac_err"; then
3375 ac_cv_header_stdc=yes
3378 echo "configure: failed program was:" >&5
3379 cat conftest.$ac_ext >&5
3381 ac_cv_header_stdc=no
3385 if test $ac_cv_header_stdc = yes; then
3386 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3387 cat > conftest.$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3393 egrep "memchr" >/dev/null 2>&1; then
3397 ac_cv_header_stdc=no
3403 if test $ac_cv_header_stdc = yes; then
3404 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3405 cat > conftest.$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3411 egrep "free" >/dev/null 2>&1; then
3415 ac_cv_header_stdc=no
3421 if test $ac_cv_header_stdc = yes; then
3422 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3423 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3427 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3428 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3429 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3430 int main () { int i; for (i = 0; i < 256; i++)
3431 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3435 if { (eval echo configure:3436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3440 echo "configure: failed program was:" >&5
3441 cat conftest.$ac_ext >&5
3443 ac_cv_header_stdc=no
3448 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3449 if test $ac_cv_header_stdc = yes; then
3450 { test "$extra_verbose" = "yes" && cat << \EOF
3451 Defining STDC_HEADERS
3453 cat >> confdefs.h <<\EOF
3454 #define STDC_HEADERS 1
3460 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3461 echo "configure:3462: checking whether time.h and sys/time.h may both be included" >&5
3463 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3466 #include <sys/types.h>
3467 #include <sys/time.h>
3473 if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3475 ac_cv_header_time=yes
3477 echo "configure: failed program was:" >&5
3478 cat conftest.$ac_ext >&5
3480 ac_cv_header_time=no
3484 echo "$ac_t""$ac_cv_header_time" 1>&6
3485 if test $ac_cv_header_time = yes; then
3486 { test "$extra_verbose" = "yes" && cat << \EOF
3487 Defining TIME_WITH_SYS_TIME
3489 cat >> confdefs.h <<\EOF
3490 #define TIME_WITH_SYS_TIME 1
3496 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3497 echo "configure:3498: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3499 cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3502 #include <sys/types.h>
3504 /* NetBSD declares sys_siglist in unistd.h. */
3505 #ifdef HAVE_UNISTD_H
3509 char *msg = *(sys_siglist + 1);
3512 if { (eval echo configure:3513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3514 ac_cv_decl_sys_siglist=yes
3516 echo "configure: failed program was:" >&5
3517 cat conftest.$ac_ext >&5
3519 ac_cv_decl_sys_siglist=no
3523 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3524 if test $ac_cv_decl_sys_siglist = yes; then
3525 { test "$extra_verbose" = "yes" && cat << \EOF
3526 Defining SYS_SIGLIST_DECLARED
3528 cat >> confdefs.h <<\EOF
3529 #define SYS_SIGLIST_DECLARED 1
3536 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3537 echo "configure:3538: checking for struct utimbuf" >&5
3538 cat > conftest.$ac_ext <<EOF
3539 #line 3540 "configure"
3540 #include "confdefs.h"
3541 #ifdef TIME_WITH_SYS_TIME
3542 #include <sys/time.h>
3545 #ifdef HAVE_SYS_TIME_H
3546 #include <sys/time.h>
3555 static struct utimbuf x; x.actime = x.modtime;
3558 if { (eval echo configure:3559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3560 echo "$ac_t""yes" 1>&6
3561 { test "$extra_verbose" = "yes" && cat << \EOF
3562 Defining HAVE_STRUCT_UTIMBUF
3564 cat >> confdefs.h <<\EOF
3565 #define HAVE_STRUCT_UTIMBUF 1
3570 echo "configure: failed program was:" >&5
3571 cat conftest.$ac_ext >&5
3573 echo "$ac_t""no" 1>&6
3577 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3578 echo "configure:3579: checking return type of signal handlers" >&5
3580 cat > conftest.$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3583 #include <sys/types.h>
3589 extern "C" void (*signal (int, void (*)(int)))(int);
3591 void (*signal ()) ();
3598 if { (eval echo configure:3599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3600 ac_cv_type_signal=void
3602 echo "configure: failed program was:" >&5
3603 cat conftest.$ac_ext >&5
3605 ac_cv_type_signal=int
3609 echo "$ac_t""$ac_cv_type_signal" 1>&6
3610 { test "$extra_verbose" = "yes" && cat << EOF
3611 Defining RETSIGTYPE = $ac_cv_type_signal
3613 cat >> confdefs.h <<EOF
3614 #define RETSIGTYPE $ac_cv_type_signal
3619 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3620 echo "configure:3621: checking for size_t" >&5
3622 cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 #include <sys/types.h>
3631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3632 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3634 ac_cv_type_size_t=yes
3637 ac_cv_type_size_t=no
3641 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3642 if test $ac_cv_type_size_t = no; then
3643 { test "$extra_verbose" = "yes" && cat << \EOF
3644 Defining size_t = unsigned
3646 cat >> confdefs.h <<\EOF
3647 #define size_t unsigned
3653 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3654 echo "configure:3655: checking for pid_t" >&5
3656 cat > conftest.$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3659 #include <sys/types.h>
3665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3666 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3668 ac_cv_type_pid_t=yes
3675 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3676 if test $ac_cv_type_pid_t = no; then
3677 { test "$extra_verbose" = "yes" && cat << \EOF
3678 Defining pid_t = int
3680 cat >> confdefs.h <<\EOF
3687 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3688 echo "configure:3689: checking for uid_t in sys/types.h" >&5
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 #include <sys/types.h>
3695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3696 egrep "uid_t" >/dev/null 2>&1; then
3698 ac_cv_type_uid_t=yes
3706 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3707 if test $ac_cv_type_uid_t = no; then
3708 { test "$extra_verbose" = "yes" && cat << \EOF
3709 Defining uid_t = int
3711 cat >> confdefs.h <<\EOF
3716 { test "$extra_verbose" = "yes" && cat << \EOF
3717 Defining gid_t = int
3719 cat >> confdefs.h <<\EOF
3726 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3727 echo "configure:3728: checking for mode_t" >&5
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3732 #include <sys/types.h>
3738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3739 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3741 ac_cv_type_mode_t=yes
3744 ac_cv_type_mode_t=no
3748 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3749 if test $ac_cv_type_mode_t = no; then
3750 { test "$extra_verbose" = "yes" && cat << \EOF
3751 Defining mode_t = int
3753 cat >> confdefs.h <<\EOF
3760 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3761 echo "configure:3762: checking for off_t" >&5
3763 cat > conftest.$ac_ext <<EOF
3764 #line 3765 "configure"
3765 #include "confdefs.h"
3766 #include <sys/types.h>
3772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3773 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3775 ac_cv_type_off_t=yes
3782 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3783 if test $ac_cv_type_off_t = no; then
3784 { test "$extra_verbose" = "yes" && cat << \EOF
3785 Defining off_t = long
3787 cat >> confdefs.h <<\EOF
3795 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3796 echo "configure:3797: checking for struct timeval" >&5
3797 cat > conftest.$ac_ext <<EOF
3798 #line 3799 "configure"
3799 #include "confdefs.h"
3800 #ifdef TIME_WITH_SYS_TIME
3801 #include <sys/time.h>
3804 #ifdef HAVE_SYS_TIME_H
3805 #include <sys/time.h>
3811 static struct timeval x; x.tv_sec = x.tv_usec;
3814 if { (eval echo configure:3815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3816 echo "$ac_t""yes" 1>&6
3818 { test "$extra_verbose" = "yes" && cat << \EOF
3819 Defining HAVE_TIMEVAL
3821 cat >> confdefs.h <<\EOF
3822 #define HAVE_TIMEVAL 1
3827 echo "configure: failed program was:" >&5
3828 cat conftest.$ac_ext >&5
3830 echo "$ac_t""no" 1>&6
3835 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3836 echo "configure:3837: checking whether struct tm is in sys/time.h or time.h" >&5
3838 cat > conftest.$ac_ext <<EOF
3839 #line 3840 "configure"
3840 #include "confdefs.h"
3841 #include <sys/types.h>
3844 struct tm *tp; tp->tm_sec;
3847 if { (eval echo configure:3848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3849 ac_cv_struct_tm=time.h
3851 echo "configure: failed program was:" >&5
3852 cat conftest.$ac_ext >&5
3854 ac_cv_struct_tm=sys/time.h
3858 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3859 if test $ac_cv_struct_tm = sys/time.h; then
3860 { test "$extra_verbose" = "yes" && cat << \EOF
3861 Defining TM_IN_SYS_TIME
3863 cat >> confdefs.h <<\EOF
3864 #define TM_IN_SYS_TIME 1
3870 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3871 echo "configure:3872: checking for tm_zone in struct tm" >&5
3873 cat > conftest.$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3876 #include <sys/types.h>
3877 #include <$ac_cv_struct_tm>
3879 struct tm tm; tm.tm_zone;
3882 if { (eval echo configure:3883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3884 ac_cv_struct_tm_zone=yes
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3889 ac_cv_struct_tm_zone=no
3893 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3894 if test "$ac_cv_struct_tm_zone" = yes; then
3895 { test "$extra_verbose" = "yes" && cat << \EOF
3896 Defining HAVE_TM_ZONE
3898 cat >> confdefs.h <<\EOF
3899 #define HAVE_TM_ZONE 1
3904 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3905 echo "configure:3906: checking for tzname" >&5
3907 cat > conftest.$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3911 #ifndef tzname /* For SGI. */
3912 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3918 if { (eval echo configure:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3920 ac_cv_var_tzname=yes
3922 echo "configure: failed program was:" >&5
3923 cat conftest.$ac_ext >&5
3929 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3930 if test $ac_cv_var_tzname = yes; then
3931 { test "$extra_verbose" = "yes" && cat << \EOF
3932 Defining HAVE_TZNAME
3934 cat >> confdefs.h <<\EOF
3935 #define HAVE_TZNAME 1
3943 echo $ac_n "checking for working const""... $ac_c" 1>&6
3944 echo "configure:3945: checking for working const" >&5
3946 cat > conftest.$ac_ext <<EOF
3947 #line 3948 "configure"
3948 #include "confdefs.h"
3952 /* Ultrix mips cc rejects this. */
3953 typedef int charset[2]; const charset x;
3954 /* SunOS 4.1.1 cc rejects this. */
3955 char const *const *ccp;
3957 /* NEC SVR4.0.2 mips cc rejects this. */
3958 struct point {int x, y;};
3959 static struct point const zero = {0,0};
3960 /* AIX XL C 1.02.0.0 rejects this.
3961 It does not let you subtract one const X* pointer from another in an arm
3962 of an if-expression whose if-part is not a constant expression */
3963 const char *g = "string";
3964 ccp = &g + (g ? g-g : 0);
3965 /* HPUX 7.0 cc rejects these. */
3968 ccp = (char const *const *) p;
3969 { /* SCO 3.2v4 cc rejects this. */
3971 char const *s = 0 ? (char *) 0 : (char const *) 0;
3975 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3977 const int *foo = &x[0];
3980 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3981 typedef const int *iptr;
3985 { /* AIX XL C 1.02.0.0 rejects this saying
3986 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3987 struct s { int j; const int *ap[3]; };
3988 struct s *b; b->j = 5;
3990 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3996 if { (eval echo configure:3997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4000 echo "configure: failed program was:" >&5
4001 cat conftest.$ac_ext >&5
4007 echo "$ac_t""$ac_cv_c_const" 1>&6
4008 if test $ac_cv_c_const = no; then
4009 { test "$extra_verbose" = "yes" && cat << \EOF
4012 cat >> confdefs.h <<\EOF
4020 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4021 echo "configure:4022: checking whether ${MAKE-make} sets \${MAKE}" >&5
4022 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4024 cat > conftestmake <<\EOF
4026 @echo 'ac_maketemp="${MAKE}"'
4028 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4029 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4030 if test -n "$ac_maketemp"; then
4031 eval ac_cv_prog_make_${ac_make}_set=yes
4033 eval ac_cv_prog_make_${ac_make}_set=no
4036 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4037 echo "$ac_t""yes" 1>&6
4040 echo "$ac_t""no" 1>&6
4041 SET_MAKE="MAKE=${MAKE-make}"
4045 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4046 echo "configure:4047: checking whether byte ordering is bigendian" >&5
4048 ac_cv_c_bigendian=unknown
4049 # See if sys/param.h defines the BYTE_ORDER macro.
4050 cat > conftest.$ac_ext <<EOF
4051 #line 4052 "configure"
4052 #include "confdefs.h"
4053 #include <sys/types.h>
4054 #include <sys/param.h>
4057 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4062 if { (eval echo configure:4063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4064 # It does; now see whether it defined to BIG_ENDIAN or not.
4065 cat > conftest.$ac_ext <<EOF
4066 #line 4067 "configure"
4067 #include "confdefs.h"
4068 #include <sys/types.h>
4069 #include <sys/param.h>
4072 #if BYTE_ORDER != BIG_ENDIAN
4077 if { (eval echo configure:4078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4079 ac_cv_c_bigendian=yes
4081 echo "configure: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4084 ac_cv_c_bigendian=no
4088 echo "configure: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4092 if test $ac_cv_c_bigendian = unknown; then
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4097 /* Are we little or big endian? From Harbison&Steele. */
4101 char c[sizeof (long)];
4104 exit (u.c[sizeof (long) - 1] == 1);
4107 if { (eval echo configure:4108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4109 ac_cv_c_bigendian=no
4112 echo "configure: failed program was:" >&5
4113 cat conftest.$ac_ext >&5
4115 ac_cv_c_bigendian=yes
4120 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4121 if test $ac_cv_c_bigendian = yes; then
4122 { test "$extra_verbose" = "yes" && cat << \EOF
4123 Defining WORDS_BIGENDIAN
4125 cat >> confdefs.h <<\EOF
4126 #define WORDS_BIGENDIAN 1
4133 echo $ac_n "checking size of short""... $ac_c" 1>&6
4134 echo "configure:4135: checking size of short" >&5
4136 cat > conftest.$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4142 FILE *f=fopen("conftestval", "w");
4144 fprintf(f, "%d\n", sizeof(short));
4148 if { (eval echo configure:4149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4150 ac_cv_sizeof_short=`cat conftestval`
4153 echo "configure: failed program was:" >&5
4154 cat conftest.$ac_ext >&5
4156 ac_cv_sizeof_short=0
4159 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4160 { test "$extra_verbose" = "yes" && cat << EOF
4161 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4163 cat >> confdefs.h <<EOF
4164 #define SIZEOF_SHORT $ac_cv_sizeof_short
4169 if test "$ac_cv_sizeof_short" = 0; then
4171 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4172 echo "*** PANIC *** Please examine config.log for compilation errors."
4175 echo $ac_n "checking size of int""... $ac_c" 1>&6
4176 echo "configure:4177: checking size of int" >&5
4178 cat > conftest.$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4184 FILE *f=fopen("conftestval", "w");
4186 fprintf(f, "%d\n", sizeof(int));
4190 if { (eval echo configure:4191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4192 ac_cv_sizeof_int=`cat conftestval`
4195 echo "configure: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4201 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4202 { test "$extra_verbose" = "yes" && cat << EOF
4203 Defining SIZEOF_INT = $ac_cv_sizeof_int
4205 cat >> confdefs.h <<EOF
4206 #define SIZEOF_INT $ac_cv_sizeof_int
4211 echo $ac_n "checking size of long""... $ac_c" 1>&6
4212 echo "configure:4213: checking size of long" >&5
4214 cat > conftest.$ac_ext <<EOF
4215 #line 4216 "configure"
4216 #include "confdefs.h"
4220 FILE *f=fopen("conftestval", "w");
4222 fprintf(f, "%d\n", sizeof(long));
4226 if { (eval echo configure:4227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4228 ac_cv_sizeof_long=`cat conftestval`
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4237 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4238 { test "$extra_verbose" = "yes" && cat << EOF
4239 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4241 cat >> confdefs.h <<EOF
4242 #define SIZEOF_LONG $ac_cv_sizeof_long
4247 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4248 echo "configure:4249: checking size of long long" >&5
4250 cat > conftest.$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4256 FILE *f=fopen("conftestval", "w");
4258 fprintf(f, "%d\n", sizeof(long long));
4262 if { (eval echo configure:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4264 ac_cv_sizeof_long_long=`cat conftestval`
4267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4270 ac_cv_sizeof_long_long=0
4273 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4274 { test "$extra_verbose" = "yes" && cat << EOF
4275 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4277 cat >> confdefs.h <<EOF
4278 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4283 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4284 echo "configure:4285: checking size of void *" >&5
4286 cat > conftest.$ac_ext <<EOF
4287 #line 4288 "configure"
4288 #include "confdefs.h"
4292 FILE *f=fopen("conftestval", "w");
4294 fprintf(f, "%d\n", sizeof(void *));
4298 if { (eval echo configure:4299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4300 ac_cv_sizeof_void_p=`cat conftestval`
4303 echo "configure: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4306 ac_cv_sizeof_void_p=0
4309 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4310 { test "$extra_verbose" = "yes" && cat << EOF
4311 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4313 cat >> confdefs.h <<EOF
4314 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4320 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4321 echo "configure:4322: checking for long file names" >&5
4323 ac_cv_sys_long_file_names=yes
4324 # Test for long file names in all the places we know might matter:
4325 # . the current directory, where building will happen
4326 # $prefix/lib where we will be installing things
4327 # $exec_prefix/lib likewise
4328 # eval it to expand exec_prefix.
4329 # $TMPDIR if set, where it might want to write temporary files
4330 # if $TMPDIR is not set:
4331 # /tmp where it might want to write temporary files
4334 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4335 ac_tmpdirs="$TMPDIR"
4337 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4339 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4340 test -d $ac_dir || continue
4341 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4342 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4343 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4344 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4345 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4346 ac_cv_sys_long_file_names=no
4347 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4350 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4353 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4354 if test $ac_cv_sys_long_file_names = yes; then
4355 { test "$extra_verbose" = "yes" && cat << \EOF
4356 Defining HAVE_LONG_FILE_NAMES
4358 cat >> confdefs.h <<\EOF
4359 #define HAVE_LONG_FILE_NAMES 1
4366 echo $ac_n "checking for sin""... $ac_c" 1>&6
4367 echo "configure:4368: checking for sin" >&5
4369 cat > conftest.$ac_ext <<EOF
4370 #line 4371 "configure"
4371 #include "confdefs.h"
4372 /* System header to define __stub macros and hopefully few prototypes,
4373 which can conflict with char sin(); below. */
4375 /* Override any gcc2 internal prototype to avoid an error. */
4376 /* We use char because int might match the return type of a gcc2
4377 builtin and then its argument prototype would still apply. */
4382 /* The GNU C library defines this for functions which it implements
4383 to always fail with ENOSYS. Some functions are actually named
4384 something starting with __ and the normal name is an alias. */
4385 #if defined (__stub_sin) || defined (__stub___sin)
4393 if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4395 eval "ac_cv_func_sin=yes"
4397 echo "configure: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4400 eval "ac_cv_func_sin=no"
4404 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4405 echo "$ac_t""yes" 1>&6
4408 echo "$ac_t""no" 1>&6
4410 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4411 echo "configure:4412: checking for sin in -lm" >&5
4412 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4414 xe_check_libs=" -lm "
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4418 /* Override any gcc2 internal prototype to avoid an error. */
4419 /* We use char because int might match the return type of a gcc2
4420 builtin and then its argument prototype would still apply. */
4427 if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4429 eval "ac_cv_lib_$ac_lib_var=yes"
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4434 eval "ac_cv_lib_$ac_lib_var=no"
4439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4440 echo "$ac_t""yes" 1>&6
4441 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4442 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4443 { test "$extra_verbose" = "yes" && cat << EOF
4446 cat >> confdefs.h <<EOF
4447 #define $ac_tr_lib 1
4451 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4454 echo "$ac_t""no" 1>&6
4461 { test "$extra_verbose" = "yes" && cat << \EOF
4462 Defining LISP_FLOAT_TYPE
4464 cat >> confdefs.h <<\EOF
4465 #define LISP_FLOAT_TYPE 1
4470 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4475 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4478 if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4480 { test "$extra_verbose" = "yes" && cat << \EOF
4481 Defining HAVE_INVERSE_HYPERBOLIC
4483 cat >> confdefs.h <<\EOF
4484 #define HAVE_INVERSE_HYPERBOLIC 1
4489 echo "configure: failed program was:" >&5
4490 cat conftest.$ac_ext >&5
4494 echo "checking type of mail spool file locking" 1>&6
4495 echo "configure:4496: checking type of mail spool file locking" >&5
4496 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4497 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4498 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4499 Defining REAL_MAIL_USE_LOCKF
4501 cat >> confdefs.h <<\EOF
4502 #define REAL_MAIL_USE_LOCKF 1
4506 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4507 Defining REAL_MAIL_USE_FLOCK
4509 cat >> confdefs.h <<\EOF
4510 #define REAL_MAIL_USE_FLOCK 1
4514 else mail_locking="dot-locking"
4517 case "$opsys" in decosf*)
4519 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4520 echo "configure:4521: checking for cma_open in -lpthreads" >&5
4521 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4523 xe_check_libs=" -lpthreads "
4524 cat > conftest.$ac_ext <<EOF
4525 #line 4526 "configure"
4526 #include "confdefs.h"
4527 /* Override any gcc2 internal prototype to avoid an error. */
4528 /* We use char because int might match the return type of a gcc2
4529 builtin and then its argument prototype would still apply. */
4536 if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4538 eval "ac_cv_lib_$ac_lib_var=yes"
4540 echo "configure: failed program was:" >&5
4541 cat conftest.$ac_ext >&5
4543 eval "ac_cv_lib_$ac_lib_var=no"
4548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4549 echo "$ac_t""yes" 1>&6
4550 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4551 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4552 { test "$extra_verbose" = "yes" && cat << EOF
4555 cat >> confdefs.h <<EOF
4556 #define $ac_tr_lib 1
4560 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4563 echo "$ac_t""no" 1>&6
4567 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4568 c_switch_site="$c_switch_site -threads" ;;
4571 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4572 echo "configure:4573: checking whether the -xildoff compiler flag is required" >&5
4573 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4574 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4575 then echo "$ac_t""no" 1>&6;
4576 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
4578 else echo "$ac_t""no" 1>&6
4581 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4582 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4583 echo "configure:4584: checking for \"-z ignore\" linker flag" >&5
4584 case "`ld -h 2>&1`" in
4585 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4586 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4587 *) echo "$ac_t""no" 1>&6 ;;
4592 echo "checking "for specified window system"" 1>&6
4593 echo "configure:4594: checking "for specified window system"" >&5
4595 if test "$with_x11" != "no"; then
4596 test "$x_includes $x_libraries" != "NONE NONE" && \
4597 window_system=x11 with_x11=yes
4600 if test "$x_includes $x_libraries" = "NONE NONE" \
4601 -a -n "$OPENWINHOME" \
4602 -a "$OPENWINHOME" != "/usr/openwin" \
4603 -a -d "$OPENWINHOME"; then
4604 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4605 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4606 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4609 if test "$x_includes" = "NONE"; then
4610 for dir in "/usr/X11" "/usr/X11R6"; do
4611 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4615 if test "$x_libraries" = "NONE"; then
4616 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4617 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4621 # If we find X, set shell vars x_includes and x_libraries to the
4622 # paths, otherwise set no_x=yes.
4623 # Uses ac_ vars as temps to allow command line to override cache and checks.
4624 # --without-x overrides everything else, but does not touch the cache.
4625 echo $ac_n "checking for X""... $ac_c" 1>&6
4626 echo "configure:4627: checking for X" >&5
4628 # Check whether --with-x or --without-x was given.
4629 if test "${with_x+set}" = set; then
4634 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4635 if test "x$with_x" = xno; then
4636 # The user explicitly disabled X.
4639 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4640 # Both variables are already set.
4644 # One or both of the vars are not set, and there is no cached value.
4645 ac_x_includes=NO ac_x_libraries=NO
4647 if mkdir conftestdir; then
4649 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4650 cat > Imakefile <<'EOF'
4652 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4654 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4655 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4656 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4657 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4658 for ac_extension in a so sl; do
4659 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4660 test -f $ac_im_libdir/libX11.$ac_extension; then
4661 ac_im_usrlibdir=$ac_im_libdir; break
4664 # Screen out bogus values from the imake configuration. They are
4665 # bogus both because they are the default anyway, and because
4666 # using them would break gcc on systems where it needs fixed includes.
4667 case "$ac_im_incroot" in
4669 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4671 case "$ac_im_usrlibdir" in
4673 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4680 if test "$ac_x_includes" = NO; then
4681 # Guess where to find include files, by looking for this one X11 .h file.
4682 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4684 # First, try using that file with no special directory specified.
4685 cat > conftest.$ac_ext <<EOF
4686 #line 4687 "configure"
4687 #include "confdefs.h"
4688 #include <$x_direct_test_include>
4690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4691 { (eval echo configure:4692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4693 if test -z "$ac_err"; then
4695 # We can compile using X headers with no special include directory.
4699 echo "configure: failed program was:" >&5
4700 cat conftest.$ac_ext >&5
4702 # Look for the header file in a standard set of common directories.
4703 # Check X11 before X11Rn because it is often a symlink to the current release.
4706 /usr/X11R6/include \
4707 /usr/X11R5/include \
4708 /usr/X11R4/include \
4711 /usr/include/X11R6 \
4712 /usr/include/X11R5 \
4713 /usr/include/X11R4 \
4715 /usr/local/X11/include \
4716 /usr/local/X11R6/include \
4717 /usr/local/X11R5/include \
4718 /usr/local/X11R4/include \
4720 /usr/local/include/X11 \
4721 /usr/local/include/X11R6 \
4722 /usr/local/include/X11R5 \
4723 /usr/local/include/X11R4 \
4727 /usr/XFree86/include/X11 \
4730 /usr/local/include \
4731 /usr/unsupported/include \
4732 /usr/athena/include \
4733 /usr/local/x11r5/include \
4734 /usr/lpp/Xamples/include \
4736 /usr/openwin/include \
4737 /usr/openwin/share/include \
4740 if test -r "$ac_dir/$x_direct_test_include"; then
4741 ac_x_includes=$ac_dir
4747 fi # $ac_x_includes = NO
4749 if test "$ac_x_libraries" = NO; then
4750 # Check for the libraries.
4752 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4753 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4755 # See if we find them without any special options.
4756 # Don't add to $LIBS permanently.
4757 ac_save_LIBS="$LIBS"
4758 LIBS="-l$x_direct_test_library $LIBS"
4759 cat > conftest.$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4764 ${x_direct_test_function}()
4767 if { (eval echo configure:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4769 LIBS="$ac_save_LIBS"
4770 # We can link X programs with no special library path.
4773 echo "configure: failed program was:" >&5
4774 cat conftest.$ac_ext >&5
4776 LIBS="$ac_save_LIBS"
4777 # First see if replacing the include by lib works.
4778 # Check X11 before X11Rn because it is often a symlink to the current release.
4779 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4790 /usr/local/X11/lib \
4791 /usr/local/X11R6/lib \
4792 /usr/local/X11R5/lib \
4793 /usr/local/X11R4/lib \
4795 /usr/local/lib/X11 \
4796 /usr/local/lib/X11R6 \
4797 /usr/local/lib/X11R5 \
4798 /usr/local/lib/X11R4 \
4802 /usr/XFree86/lib/X11 \
4806 /usr/unsupported/lib \
4808 /usr/local/x11r5/lib \
4809 /usr/lpp/Xamples/lib \
4813 /usr/openwin/share/lib \
4816 for ac_extension in a so sl; do
4817 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4818 ac_x_libraries=$ac_dir
4825 fi # $ac_x_libraries = NO
4827 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4828 # Didn't find X anywhere. Cache the known absence of X.
4829 ac_cv_have_x="have_x=no"
4831 # Record where we found X for the cache.
4832 ac_cv_have_x="have_x=yes \
4833 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4836 eval "$ac_cv_have_x"
4839 if test "$have_x" != yes; then
4840 echo "$ac_t""$have_x" 1>&6
4843 # If each of the values was on the command line, it overrides each guess.
4844 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4845 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4846 # Update the cache value to reflect the command line values.
4847 ac_cv_have_x="have_x=yes \
4848 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4849 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4852 if test "$no_x" = yes; then
4853 # Not all programs may use this symbol, but it does not hurt to define it.
4854 { test "$extra_verbose" = "yes" && cat << \EOF
4855 Defining X_DISPLAY_MISSING
4857 cat >> confdefs.h <<\EOF
4858 #define X_DISPLAY_MISSING 1
4862 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4864 if test -n "$x_includes"; then
4865 X_CFLAGS="$X_CFLAGS -I$x_includes"
4868 # It would also be nice to do this for all -L options, not just this one.
4869 if test -n "$x_libraries"; then
4870 X_LIBS="$X_LIBS -L$x_libraries"
4871 # For Solaris; some versions of Sun CC require a space after -R and
4872 # others require no space. Words are not sufficient . . . .
4873 case "`(uname -sr) 2>/dev/null`" in
4875 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4876 echo "configure:4877: checking whether -R must be followed by a space" >&5
4877 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4878 cat > conftest.$ac_ext <<EOF
4879 #line 4880 "configure"
4880 #include "confdefs.h"
4886 if { (eval echo configure:4887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4890 echo "configure: failed program was:" >&5
4891 cat conftest.$ac_ext >&5
4896 if test $ac_R_nospace = yes; then
4897 echo "$ac_t""no" 1>&6
4898 X_LIBS="$X_LIBS -R$x_libraries"
4900 LIBS="$ac_xsave_LIBS -R $x_libraries"
4901 cat > conftest.$ac_ext <<EOF
4902 #line 4903 "configure"
4903 #include "confdefs.h"
4909 if { (eval echo configure:4910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4913 echo "configure: failed program was:" >&5
4914 cat conftest.$ac_ext >&5
4919 if test $ac_R_space = yes; then
4920 echo "$ac_t""yes" 1>&6
4921 X_LIBS="$X_LIBS -R $x_libraries"
4923 echo "$ac_t""neither works" 1>&6
4926 LIBS="$ac_xsave_LIBS"
4930 # Check for system-dependent libraries X programs must link with.
4931 # Do this before checking for the system-independent R6 libraries
4932 # (-lICE), since we may need -lsocket or whatever for X linking.
4934 if test "$ISC" = yes; then
4935 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4937 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4938 # libraries were built with DECnet support. And karl@cs.umb.edu says
4939 # the Alpha needs dnet_stub (dnet does not exist).
4940 if test "$with_dnet" = "no" ; then
4941 ac_cv_lib_dnet_dnet_ntoa=no
4944 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4945 echo "configure:4946: checking for dnet_ntoa in -ldnet" >&5
4946 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4948 xe_check_libs=" -ldnet "
4949 cat > conftest.$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4952 /* Override any gcc2 internal prototype to avoid an error. */
4953 /* We use char because int might match the return type of a gcc2
4954 builtin and then its argument prototype would still apply. */
4961 if { (eval echo configure:4962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4963 eval "ac_cv_lib_$ac_lib_var=yes"
4965 echo "configure: failed program was:" >&5
4966 cat conftest.$ac_ext >&5
4968 eval "ac_cv_lib_$ac_lib_var=no"
4973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4974 echo "$ac_t""yes" 1>&6
4975 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4977 echo "$ac_t""no" 1>&6
4982 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4984 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4985 echo "configure:4986: checking for dnet_ntoa in -ldnet_stub" >&5
4986 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4988 xe_check_libs=" -ldnet_stub "
4989 cat > conftest.$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4992 /* Override any gcc2 internal prototype to avoid an error. */
4993 /* We use char because int might match the return type of a gcc2
4994 builtin and then its argument prototype would still apply. */
5001 if { (eval echo configure:5002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5003 eval "ac_cv_lib_$ac_lib_var=yes"
5005 echo "configure: failed program was:" >&5
5006 cat conftest.$ac_ext >&5
5008 eval "ac_cv_lib_$ac_lib_var=no"
5013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5014 echo "$ac_t""yes" 1>&6
5015 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5017 echo "$ac_t""no" 1>&6
5023 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5024 # to get the SysV transport functions.
5025 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5027 # The nsl library prevents programs from opening the X display
5028 # on Irix 5.2, according to dickey@clark.net.
5029 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5030 echo "configure:5031: checking for gethostbyname" >&5
5032 cat > conftest.$ac_ext <<EOF
5033 #line 5034 "configure"
5034 #include "confdefs.h"
5035 /* System header to define __stub macros and hopefully few prototypes,
5036 which can conflict with char gethostbyname(); below. */
5038 /* Override any gcc2 internal prototype to avoid an error. */
5039 /* We use char because int might match the return type of a gcc2
5040 builtin and then its argument prototype would still apply. */
5041 char gethostbyname();
5045 /* The GNU C library defines this for functions which it implements
5046 to always fail with ENOSYS. Some functions are actually named
5047 something starting with __ and the normal name is an alias. */
5048 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5056 if { (eval echo configure:5057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5058 eval "ac_cv_func_gethostbyname=yes"
5060 echo "configure: failed program was:" >&5
5061 cat conftest.$ac_ext >&5
5063 eval "ac_cv_func_gethostbyname=no"
5067 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5068 echo "$ac_t""yes" 1>&6
5071 echo "$ac_t""no" 1>&6
5074 if test $ac_cv_func_gethostbyname = no; then
5076 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5077 echo "configure:5078: checking for gethostbyname in -lnsl" >&5
5078 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5080 xe_check_libs=" -lnsl "
5081 cat > conftest.$ac_ext <<EOF
5082 #line 5083 "configure"
5083 #include "confdefs.h"
5084 /* Override any gcc2 internal prototype to avoid an error. */
5085 /* We use char because int might match the return type of a gcc2
5086 builtin and then its argument prototype would still apply. */
5087 char gethostbyname();
5093 if { (eval echo configure:5094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5095 eval "ac_cv_lib_$ac_lib_var=yes"
5097 echo "configure: failed program was:" >&5
5098 cat conftest.$ac_ext >&5
5100 eval "ac_cv_lib_$ac_lib_var=no"
5105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5106 echo "$ac_t""yes" 1>&6
5107 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5109 echo "$ac_t""no" 1>&6
5115 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5116 # socket/setsockopt and other routines are undefined under SCO ODT
5117 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5118 # on later versions), says simon@lia.di.epfl.ch: it contains
5119 # gethostby* variants that don't use the nameserver (or something).
5120 # -lsocket must be given before -lnsl if both are needed.
5121 # We assume that if connect needs -lnsl, so does gethostbyname.
5122 echo $ac_n "checking for connect""... $ac_c" 1>&6
5123 echo "configure:5124: checking for connect" >&5
5125 cat > conftest.$ac_ext <<EOF
5126 #line 5127 "configure"
5127 #include "confdefs.h"
5128 /* System header to define __stub macros and hopefully few prototypes,
5129 which can conflict with char connect(); below. */
5131 /* Override any gcc2 internal prototype to avoid an error. */
5132 /* We use char because int might match the return type of a gcc2
5133 builtin and then its argument prototype would still apply. */
5138 /* The GNU C library defines this for functions which it implements
5139 to always fail with ENOSYS. Some functions are actually named
5140 something starting with __ and the normal name is an alias. */
5141 #if defined (__stub_connect) || defined (__stub___connect)
5149 if { (eval echo configure:5150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5151 eval "ac_cv_func_connect=yes"
5153 echo "configure: failed program was:" >&5
5154 cat conftest.$ac_ext >&5
5156 eval "ac_cv_func_connect=no"
5160 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5161 echo "$ac_t""yes" 1>&6
5164 echo "$ac_t""no" 1>&6
5167 if test $ac_cv_func_connect = no; then
5169 xe_msg_checking="for connect in -lsocket"
5170 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5171 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5172 echo "configure:5173: checking "$xe_msg_checking"" >&5
5173 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5175 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5176 cat > conftest.$ac_ext <<EOF
5177 #line 5178 "configure"
5178 #include "confdefs.h"
5179 /* Override any gcc2 internal prototype to avoid an error. */
5180 /* We use char because int might match the return type of a gcc2
5181 builtin and then its argument prototype would still apply. */
5188 if { (eval echo configure:5189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5190 eval "ac_cv_lib_$ac_lib_var=yes"
5192 echo "configure: failed program was:" >&5
5193 cat conftest.$ac_ext >&5
5195 eval "ac_cv_lib_$ac_lib_var=no"
5200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5201 echo "$ac_t""yes" 1>&6
5202 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5204 echo "$ac_t""no" 1>&6
5210 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5211 echo $ac_n "checking for remove""... $ac_c" 1>&6
5212 echo "configure:5213: checking for remove" >&5
5214 cat > conftest.$ac_ext <<EOF
5215 #line 5216 "configure"
5216 #include "confdefs.h"
5217 /* System header to define __stub macros and hopefully few prototypes,
5218 which can conflict with char remove(); below. */
5220 /* Override any gcc2 internal prototype to avoid an error. */
5221 /* We use char because int might match the return type of a gcc2
5222 builtin and then its argument prototype would still apply. */
5227 /* The GNU C library defines this for functions which it implements
5228 to always fail with ENOSYS. Some functions are actually named
5229 something starting with __ and the normal name is an alias. */
5230 #if defined (__stub_remove) || defined (__stub___remove)
5238 if { (eval echo configure:5239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5240 eval "ac_cv_func_remove=yes"
5242 echo "configure: failed program was:" >&5
5243 cat conftest.$ac_ext >&5
5245 eval "ac_cv_func_remove=no"
5249 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5250 echo "$ac_t""yes" 1>&6
5253 echo "$ac_t""no" 1>&6
5256 if test $ac_cv_func_remove = no; then
5258 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5259 echo "configure:5260: checking for remove in -lposix" >&5
5260 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5262 xe_check_libs=" -lposix "
5263 cat > conftest.$ac_ext <<EOF
5264 #line 5265 "configure"
5265 #include "confdefs.h"
5266 /* Override any gcc2 internal prototype to avoid an error. */
5267 /* We use char because int might match the return type of a gcc2
5268 builtin and then its argument prototype would still apply. */
5275 if { (eval echo configure:5276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5277 eval "ac_cv_lib_$ac_lib_var=yes"
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5282 eval "ac_cv_lib_$ac_lib_var=no"
5287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5288 echo "$ac_t""yes" 1>&6
5289 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5291 echo "$ac_t""no" 1>&6
5297 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5298 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5299 echo "configure:5300: checking for shmat" >&5
5301 cat > conftest.$ac_ext <<EOF
5302 #line 5303 "configure"
5303 #include "confdefs.h"
5304 /* System header to define __stub macros and hopefully few prototypes,
5305 which can conflict with char shmat(); below. */
5307 /* Override any gcc2 internal prototype to avoid an error. */
5308 /* We use char because int might match the return type of a gcc2
5309 builtin and then its argument prototype would still apply. */
5314 /* The GNU C library defines this for functions which it implements
5315 to always fail with ENOSYS. Some functions are actually named
5316 something starting with __ and the normal name is an alias. */
5317 #if defined (__stub_shmat) || defined (__stub___shmat)
5325 if { (eval echo configure:5326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5327 eval "ac_cv_func_shmat=yes"
5329 echo "configure: failed program was:" >&5
5330 cat conftest.$ac_ext >&5
5332 eval "ac_cv_func_shmat=no"
5336 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5337 echo "$ac_t""yes" 1>&6
5340 echo "$ac_t""no" 1>&6
5343 if test $ac_cv_func_shmat = no; then
5345 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5346 echo "configure:5347: checking for shmat in -lipc" >&5
5347 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5349 xe_check_libs=" -lipc "
5350 cat > conftest.$ac_ext <<EOF
5351 #line 5352 "configure"
5352 #include "confdefs.h"
5353 /* Override any gcc2 internal prototype to avoid an error. */
5354 /* We use char because int might match the return type of a gcc2
5355 builtin and then its argument prototype would still apply. */
5362 if { (eval echo configure:5363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5364 eval "ac_cv_lib_$ac_lib_var=yes"
5366 echo "configure: failed program was:" >&5
5367 cat conftest.$ac_ext >&5
5369 eval "ac_cv_lib_$ac_lib_var=no"
5374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5375 echo "$ac_t""yes" 1>&6
5376 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5378 echo "$ac_t""no" 1>&6
5385 # Check for libraries that X11R6 Xt/Xaw programs need.
5386 ac_save_LDFLAGS="$LDFLAGS"
5387 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5388 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5389 # check for ICE first), but we must link in the order -lSM -lICE or
5390 # we get undefined symbols. So assume we have SM if we have ICE.
5391 # These have to be linked with before -lX11, unlike the other
5392 # libraries we check for below, so use a different variable.
5393 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5395 xe_msg_checking="for IceConnectionNumber in -lICE"
5396 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5397 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5398 echo "configure:5399: checking "$xe_msg_checking"" >&5
5399 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5401 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5402 cat > conftest.$ac_ext <<EOF
5403 #line 5404 "configure"
5404 #include "confdefs.h"
5405 /* Override any gcc2 internal prototype to avoid an error. */
5406 /* We use char because int might match the return type of a gcc2
5407 builtin and then its argument prototype would still apply. */
5408 char IceConnectionNumber();
5411 IceConnectionNumber()
5414 if { (eval echo configure:5415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5416 eval "ac_cv_lib_$ac_lib_var=yes"
5418 echo "configure: failed program was:" >&5
5419 cat conftest.$ac_ext >&5
5421 eval "ac_cv_lib_$ac_lib_var=no"
5426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5427 echo "$ac_t""yes" 1>&6
5428 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5430 echo "$ac_t""no" 1>&6
5434 LDFLAGS="$ac_save_LDFLAGS"
5437 # Autoconf claims to find X library and include dirs for us.
5438 if test "$no_x" = "yes"
5439 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5440 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5445 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5446 no ) window_system=none HAVE_X_WINDOWS=no ;;
5449 if test "$with_x11" = "yes"; then
5450 { test "$extra_verbose" = "yes" && cat << \EOF
5451 Defining HAVE_X_WINDOWS
5453 cat >> confdefs.h <<\EOF
5454 #define HAVE_X_WINDOWS 1
5458 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5459 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5461 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5462 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5463 if test -d "$lib_dir" -a -d "$inc_dir"; then
5464 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5465 x_libraries="$lib_dir $x_libraries"
5466 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5468 case "$x_includes" in "$inc_dir"* ) ;; *)
5469 x_includes="$inc_dir $x_includes"
5470 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5475 for rel in "X11R6" "X11R5" "X11R4"; do
5476 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5477 if test -d "$lib_dir" -a -d "$inc_dir"; then
5478 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5479 x_libraries="$x_libraries $lib_dir"
5480 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5482 case "$x_includes" in "$inc_dir"* ) ;; *)
5483 x_includes="$x_includes $inc_dir"
5484 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5489 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
5491 ld_switch_x_site="$X_LIBS"
5494 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5495 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5496 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5498 runpath="" runpath_dirs=""
5499 if test -n "$LD_RUN_PATH"; then
5500 runpath="$LD_RUN_PATH"
5501 elif test "$GCC" = "yes"; then
5502 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5503 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5504 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5505 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5506 case "$arg" in P,* | -L* | -R* )
5507 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5509 xe_runpath_dir="$dir"
5510 test "$xe_runpath_dir" != "/lib" -a \
5511 "$xe_runpath_dir" != "/usr/lib" -a \
5512 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5513 eval "$xe_add_unique_runpath_dir"
5518 ld_switch_run="$ld_switch_run_save"
5521 for arg in $ld_switch_site $ld_switch_x_site; do
5522 case "$arg" in -L*) {
5523 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5524 test "$xe_runpath_dir" != "/lib" -a \
5525 "$xe_runpath_dir" != "/usr/lib" -a \
5526 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5527 eval "$xe_add_unique_runpath_dir"
5530 if test "$opsys $need_motif" = "sol2 yes"; then
5531 xe_runpath_dir="/opt/SUNWdt/lib";
5532 eval "$xe_add_unique_runpath_dir";
5535 if test -n "$runpath"; then
5536 ld_switch_run="${dash_r}${runpath}"
5538 if test "$GCC" = "yes"; then
5539 set x $ld_switch_run; shift; ld_switch_run=""
5540 while test -n "$1"; do
5542 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5543 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5545 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5550 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5555 if test "$extra_verbose" = "yes"; then
5556 echo; echo "X11 compilation variables:"
5557 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5562 if test "$x_includes" != NONE; then
5563 for i in $x_includes; do
5564 if test -d "$i/bitmaps"; then
5565 bitmapdirs="$i/bitmaps:$bitmapdirs"
5567 if test -d "$i/X11/bitmaps"; then
5568 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5571 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5573 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5574 Defining BITMAPDIR = "$bitmapdirs"
5576 cat >> confdefs.h <<EOF
5577 #define BITMAPDIR "$bitmapdirs"
5582 echo "checking for X defines extracted by xmkmf" 1>&6
5583 echo "configure:5584: checking for X defines extracted by xmkmf" >&5
5585 if mkdir conftestdir; then
5587 cat > Imakefile <<'EOF'
5589 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5591 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5592 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5593 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5597 for word in $xmkmf_defines; do
5600 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5601 { test "$extra_verbose" = "yes" && cat << EOF
5604 cat >> confdefs.h <<EOF
5613 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5614 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5615 echo "configure:5616: checking for X11/Intrinsic.h" >&5
5617 cat > conftest.$ac_ext <<EOF
5618 #line 5619 "configure"
5619 #include "confdefs.h"
5620 #include <X11/Intrinsic.h>
5622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5623 { (eval echo configure:5624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5625 if test -z "$ac_err"; then
5627 eval "ac_cv_header_$ac_safe=yes"
5630 echo "configure: failed program was:" >&5
5631 cat conftest.$ac_ext >&5
5633 eval "ac_cv_header_$ac_safe=no"
5636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5637 echo "$ac_t""yes" 1>&6
5640 echo "$ac_t""no" 1>&6
5641 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5646 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5647 echo "configure:5648: checking for XOpenDisplay in -lX11" >&5
5648 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5650 xe_check_libs=" -lX11 "
5651 cat > conftest.$ac_ext <<EOF
5652 #line 5653 "configure"
5653 #include "confdefs.h"
5654 /* Override any gcc2 internal prototype to avoid an error. */
5655 /* We use char because int might match the return type of a gcc2
5656 builtin and then its argument prototype would still apply. */
5657 char XOpenDisplay();
5663 if { (eval echo configure:5664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5665 eval "ac_cv_lib_$ac_lib_var=yes"
5667 echo "configure: failed program was:" >&5
5668 cat conftest.$ac_ext >&5
5670 eval "ac_cv_lib_$ac_lib_var=no"
5675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5676 echo "$ac_t""yes" 1>&6
5679 echo "$ac_t""no" 1>&6
5683 if test "$have_lib_x11" != "yes"; then
5685 xe_msg_checking="for XGetFontProperty in -lX11"
5686 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5687 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5688 echo "configure:5689: checking "$xe_msg_checking"" >&5
5689 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5691 xe_check_libs=" -lX11 -b i486-linuxaout"
5692 cat > conftest.$ac_ext <<EOF
5693 #line 5694 "configure"
5694 #include "confdefs.h"
5695 /* Override any gcc2 internal prototype to avoid an error. */
5696 /* We use char because int might match the return type of a gcc2
5697 builtin and then its argument prototype would still apply. */
5698 char XGetFontProperty();
5704 if { (eval echo configure:5705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5706 eval "ac_cv_lib_$ac_lib_var=yes"
5708 echo "configure: failed program was:" >&5
5709 cat conftest.$ac_ext >&5
5711 eval "ac_cv_lib_$ac_lib_var=no"
5716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5717 echo "$ac_t""yes" 1>&6
5718 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5720 echo "$ac_t""no" 1>&6
5721 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5727 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5730 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5731 echo "configure:5732: checking for XShapeSelectInput in -lXext" >&5
5732 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5734 xe_check_libs=" -lXext "
5735 cat > conftest.$ac_ext <<EOF
5736 #line 5737 "configure"
5737 #include "confdefs.h"
5738 /* Override any gcc2 internal prototype to avoid an error. */
5739 /* We use char because int might match the return type of a gcc2
5740 builtin and then its argument prototype would still apply. */
5741 char XShapeSelectInput();
5747 if { (eval echo configure:5748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5749 eval "ac_cv_lib_$ac_lib_var=yes"
5751 echo "configure: failed program was:" >&5
5752 cat conftest.$ac_ext >&5
5754 eval "ac_cv_lib_$ac_lib_var=no"
5759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5760 echo "$ac_t""yes" 1>&6
5761 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5763 echo "$ac_t""no" 1>&6
5769 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5770 echo "configure:5771: checking for XtOpenDisplay in -lXt" >&5
5771 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5773 xe_check_libs=" -lXt "
5774 cat > conftest.$ac_ext <<EOF
5775 #line 5776 "configure"
5776 #include "confdefs.h"
5777 /* Override any gcc2 internal prototype to avoid an error. */
5778 /* We use char because int might match the return type of a gcc2
5779 builtin and then its argument prototype would still apply. */
5780 char XtOpenDisplay();
5786 if { (eval echo configure:5787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5788 eval "ac_cv_lib_$ac_lib_var=yes"
5790 echo "configure: failed program was:" >&5
5791 cat conftest.$ac_ext >&5
5793 eval "ac_cv_lib_$ac_lib_var=no"
5798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5799 echo "$ac_t""yes" 1>&6
5800 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5802 echo "$ac_t""no" 1>&6
5803 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5808 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5809 echo "configure:5810: checking the version of X11 being used" >&5
5810 cat > conftest.$ac_ext <<EOF
5811 #line 5812 "configure"
5812 #include "confdefs.h"
5813 #include <X11/Intrinsic.h>
5814 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5816 if { (eval echo configure:5817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5818 ./conftest foobar; x11_release=$?
5821 echo "configure: failed program was:" >&5
5822 cat conftest.$ac_ext >&5
5827 echo "$ac_t""R${x11_release}" 1>&6
5828 { test "$extra_verbose" = "yes" && cat << EOF
5829 Defining THIS_IS_X11R${x11_release}
5831 cat >> confdefs.h <<EOF
5832 #define THIS_IS_X11R${x11_release} 1
5837 for ac_hdr in X11/Xlocale.h
5839 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5840 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5841 echo "configure:5842: checking for $ac_hdr" >&5
5843 cat > conftest.$ac_ext <<EOF
5844 #line 5845 "configure"
5845 #include "confdefs.h"
5848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5849 { (eval echo configure:5850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5851 if test -z "$ac_err"; then
5853 eval "ac_cv_header_$ac_safe=yes"
5856 echo "configure: failed program was:" >&5
5857 cat conftest.$ac_ext >&5
5859 eval "ac_cv_header_$ac_safe=no"
5862 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5863 echo "$ac_t""yes" 1>&6
5864 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5865 { test "$extra_verbose" = "yes" && cat << EOF
5868 cat >> confdefs.h <<EOF
5869 #define $ac_tr_hdr 1
5874 echo "$ac_t""no" 1>&6
5879 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5880 echo "configure:5881: checking for XFree86" >&5
5881 if test -d "/usr/X386/include" -o \
5882 -f "/etc/XF86Config" -o \
5883 -f "/etc/X11/XF86Config" -o \
5884 -f "/usr/X11R6/lib/X11/XF86Config"; then
5885 echo "$ac_t""yes" 1>&6
5886 { test "$extra_verbose" = "yes" && cat << \EOF
5887 Defining HAVE_XFREE386
5889 cat >> confdefs.h <<\EOF
5890 #define HAVE_XFREE386 1
5895 echo "$ac_t""no" 1>&6
5898 test -z "$with_xmu" && {
5899 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5900 echo "configure:5901: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5901 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5903 xe_check_libs=" -lXmu "
5904 cat > conftest.$ac_ext <<EOF
5905 #line 5906 "configure"
5906 #include "confdefs.h"
5907 /* Override any gcc2 internal prototype to avoid an error. */
5908 /* We use char because int might match the return type of a gcc2
5909 builtin and then its argument prototype would still apply. */
5910 char XmuReadBitmapDataFromFile();
5913 XmuReadBitmapDataFromFile()
5916 if { (eval echo configure:5917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5918 eval "ac_cv_lib_$ac_lib_var=yes"
5920 echo "configure: failed program was:" >&5
5921 cat conftest.$ac_ext >&5
5923 eval "ac_cv_lib_$ac_lib_var=no"
5928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5929 echo "$ac_t""yes" 1>&6
5932 echo "$ac_t""no" 1>&6
5937 if test "$with_xmu" = "no"; then
5938 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
5939 echo " xemacs will be linked with \"xmu.o\""
5942 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
5943 { test "$extra_verbose" = "yes" && cat << \EOF
5946 cat >> confdefs.h <<\EOF
5954 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5955 echo "configure:5956: checking for main in -lXbsd" >&5
5956 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5958 xe_check_libs=" -lXbsd "
5959 cat > conftest.$ac_ext <<EOF
5960 #line 5961 "configure"
5961 #include "confdefs.h"
5967 if { (eval echo configure:5968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5969 eval "ac_cv_lib_$ac_lib_var=yes"
5971 echo "configure: failed program was:" >&5
5972 cat conftest.$ac_ext >&5
5974 eval "ac_cv_lib_$ac_lib_var=no"
5979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5980 echo "$ac_t""yes" 1>&6
5981 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
5983 echo "$ac_t""no" 1>&6
5988 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
5989 if test "$GCC" = "yes"; then
5990 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
5991 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
5994 "xlc" ) CC="xlc_r" ;;
5995 "xlC" ) CC="xlC_r" ;;
6002 if test "$with_msw" != "no"; then
6003 echo "checking for MS-Windows" 1>&6
6004 echo "configure:6005: checking for MS-Windows" >&5
6006 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6007 echo "configure:6008: checking for main in -lgdi32" >&5
6008 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6010 xe_check_libs=" -lgdi32 "
6011 cat > conftest.$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6019 if { (eval echo configure:6020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6021 eval "ac_cv_lib_$ac_lib_var=yes"
6023 echo "configure: failed program was:" >&5
6024 cat conftest.$ac_ext >&5
6026 eval "ac_cv_lib_$ac_lib_var=no"
6031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6032 echo "$ac_t""yes" 1>&6
6035 echo "$ac_t""no" 1>&6
6039 if test "$with_msw" = "yes"; then
6040 { test "$extra_verbose" = "yes" && cat << \EOF
6041 Defining HAVE_MS_WINDOWS
6043 cat >> confdefs.h <<\EOF
6044 #define HAVE_MS_WINDOWS 1
6048 install_pp="$blddir/lib-src/installexe.sh"
6049 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
6050 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6051 if test "$window_system" != x11; then
6053 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6054 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6055 echo " xemacs will be linked with \"scrollbar-msw.o\""
6057 test "$with_menubars" != "no" && with_menubars=msw \
6058 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6059 echo " xemacs will be linked with \"menubar-msw.o\""
6061 test "$with_toolbars" != "no" && with_toolbars=msw \
6062 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6063 echo " xemacs will be linked with \"toolbar-msw.o\""
6065 test "$with_dialogs" != "no" && with_dialogs=msw \
6066 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6067 echo " xemacs will be linked with \"dialog-msw.o\""
6069 test "$with_widgets" != "no" && with_widgets=msw
6071 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6072 echo " xemacs will be linked with \"scrollbar-msw.o\""
6074 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6075 echo " xemacs will be linked with \"menubar-msw.o\""
6077 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6078 echo " xemacs will be linked with \"toolbar-msw.o\""
6080 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6081 echo " xemacs will be linked with \"dialog-msw.o\""
6084 cat > conftest.$ac_ext <<EOF
6085 #line 6086 "configure"
6086 #include "confdefs.h"
6088 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6090 if { (eval echo configure:6091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6092 { test "$extra_verbose" = "yes" && cat << \EOF
6093 Defining HAVE_MSG_SELECT
6095 cat >> confdefs.h <<\EOF
6096 #define HAVE_MSG_SELECT 1
6102 echo "configure: failed program was:" >&5
6103 cat conftest.$ac_ext >&5
6107 with_file_coding=yes
6108 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
6109 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\""
6116 test -z "$window_system" && window_system="none"
6118 if test "$window_system" = "none"; then
6119 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6121 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6122 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6124 eval "with_${feature}=no"
6127 test -z "$with_toolbars" && with_toolbars=yes
6130 if test "$with_msw" != "yes"; then
6131 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6133 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6134 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6136 eval "with_${feature}=no"
6142 if test "$with_x11" != "yes"; then
6143 for feature in tooltalk cde offix wmcommand xim xmu
6145 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6146 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6148 eval "with_${feature}=no"
6154 case "$window_system" in
6155 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6156 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6157 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6160 case "$x_libraries" in *X11R4* )
6161 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6162 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6165 echo "checking for WM_COMMAND option" 1>&6
6166 echo "configure:6167: checking for WM_COMMAND option" >&5;
6167 if test "$with_wmcommand" != "no"; then
6168 { test "$extra_verbose" = "yes" && cat << \EOF
6169 Defining HAVE_WMCOMMAND
6171 cat >> confdefs.h <<\EOF
6172 #define HAVE_WMCOMMAND 1
6178 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6179 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6180 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6181 echo "configure:6182: checking for X11/Xauth.h" >&5
6183 cat > conftest.$ac_ext <<EOF
6184 #line 6185 "configure"
6185 #include "confdefs.h"
6186 #include <X11/Xauth.h>
6188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6189 { (eval echo configure:6190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6191 if test -z "$ac_err"; then
6193 eval "ac_cv_header_$ac_safe=yes"
6196 echo "configure: failed program was:" >&5
6197 cat conftest.$ac_ext >&5
6199 eval "ac_cv_header_$ac_safe=no"
6202 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6203 echo "$ac_t""yes" 1>&6
6206 echo "$ac_t""no" 1>&6
6210 test -z "$with_xauth" && {
6211 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6212 echo "configure:6213: checking for XauGetAuthByAddr in -lXau" >&5
6213 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6215 xe_check_libs=" -lXau "
6216 cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6219 /* Override any gcc2 internal prototype to avoid an error. */
6220 /* We use char because int might match the return type of a gcc2
6221 builtin and then its argument prototype would still apply. */
6222 char XauGetAuthByAddr();
6228 if { (eval echo configure:6229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6230 eval "ac_cv_lib_$ac_lib_var=yes"
6232 echo "configure: failed program was:" >&5
6233 cat conftest.$ac_ext >&5
6235 eval "ac_cv_lib_$ac_lib_var=no"
6240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6241 echo "$ac_t""yes" 1>&6
6244 echo "$ac_t""no" 1>&6
6249 test -z "$with_xauth" && with_xauth=yes
6250 if test "$with_xauth" = "yes"; then
6251 { test "$extra_verbose" = "yes" && cat << \EOF
6254 cat >> confdefs.h <<\EOF
6255 #define HAVE_XAUTH 1
6261 for W in $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
6269 if test "$with_tooltalk" != "no" ; then
6270 for dir in "" "Tt/" "desktop/" ; do
6271 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6272 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6273 echo "configure:6274: checking for ${dir}tt_c.h" >&5
6275 cat > conftest.$ac_ext <<EOF
6276 #line 6277 "configure"
6277 #include "confdefs.h"
6278 #include <${dir}tt_c.h>
6280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6281 { (eval echo configure:6282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6283 if test -z "$ac_err"; then
6285 eval "ac_cv_header_$ac_safe=yes"
6288 echo "configure: failed program was:" >&5
6289 cat conftest.$ac_ext >&5
6291 eval "ac_cv_header_$ac_safe=no"
6294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6295 echo "$ac_t""yes" 1>&6
6296 tt_c_h_path="${dir}tt_c.h"; break
6298 echo "$ac_t""no" 1>&6
6302 if test -z "$tt_c_h_path"; then
6303 if test "$with_tooltalk" = "yes"; then
6304 (echo "$progname: Usage error:"
6305 echo " " "Unable to find required tooltalk header files."
6306 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6311 if test "$with_tooltalk" != "no" ; then
6312 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6314 xe_msg_checking="for tt_message_create in -ltt"
6315 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6316 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6317 echo "configure:6318: checking "$xe_msg_checking"" >&5
6318 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6320 xe_check_libs=" -ltt $extra_libs"
6321 cat > conftest.$ac_ext <<EOF
6322 #line 6323 "configure"
6323 #include "confdefs.h"
6324 /* Override any gcc2 internal prototype to avoid an error. */
6325 /* We use char because int might match the return type of a gcc2
6326 builtin and then its argument prototype would still apply. */
6327 char tt_message_create();
6333 if { (eval echo configure:6334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6335 eval "ac_cv_lib_$ac_lib_var=yes"
6337 echo "configure: failed program was:" >&5
6338 cat conftest.$ac_ext >&5
6340 eval "ac_cv_lib_$ac_lib_var=no"
6345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6346 echo "$ac_t""yes" 1>&6
6347 tt_libs="-ltt $extra_libs"; break
6349 echo "$ac_t""no" 1>&6
6355 if test -z "$tt_libs"; then
6356 if test "$with_tooltalk" = "yes"; then
6357 (echo "$progname: Usage error:"
6358 echo " " "Unable to find required tooltalk libraries."
6359 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6364 test -z "$with_tooltalk" && with_tooltalk=yes
6365 if test "$with_tooltalk" = "yes"; then
6366 { test "$extra_verbose" = "yes" && cat << \EOF
6369 cat >> confdefs.h <<\EOF
6374 { test "$extra_verbose" = "yes" && cat << EOF
6375 Defining TT_C_H_PATH = "$tt_c_h_path"
6377 cat >> confdefs.h <<EOF
6378 #define TT_C_H_PATH "$tt_c_h_path"
6382 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6383 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6384 echo " xemacs will be linked with \"tooltalk.o\""
6388 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6389 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6390 echo "configure:6391: checking for Dt/Dt.h" >&5
6392 cat > conftest.$ac_ext <<EOF
6393 #line 6394 "configure"
6394 #include "confdefs.h"
6397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6398 { (eval echo configure:6399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6400 if test -z "$ac_err"; then
6402 eval "ac_cv_header_$ac_safe=yes"
6405 echo "configure: failed program was:" >&5
6406 cat conftest.$ac_ext >&5
6408 eval "ac_cv_header_$ac_safe=no"
6411 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6412 echo "$ac_t""yes" 1>&6
6415 echo "$ac_t""no" 1>&6
6419 test -z "$with_cde" && {
6420 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6421 echo "configure:6422: checking for DtDndDragStart in -lDtSvc" >&5
6422 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6424 xe_check_libs=" -lDtSvc "
6425 cat > conftest.$ac_ext <<EOF
6426 #line 6427 "configure"
6427 #include "confdefs.h"
6428 /* Override any gcc2 internal prototype to avoid an error. */
6429 /* We use char because int might match the return type of a gcc2
6430 builtin and then its argument prototype would still apply. */
6431 char DtDndDragStart();
6437 if { (eval echo configure:6438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6439 eval "ac_cv_lib_$ac_lib_var=yes"
6441 echo "configure: failed program was:" >&5
6442 cat conftest.$ac_ext >&5
6444 eval "ac_cv_lib_$ac_lib_var=no"
6449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6450 echo "$ac_t""yes" 1>&6
6453 echo "$ac_t""no" 1>&6
6458 test -z "$with_cde" && with_cde=yes
6459 if test "$with_dragndrop" = no; then
6460 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6463 if test "$with_cde" = "yes" ; then
6464 { test "$extra_verbose" = "yes" && cat << \EOF
6467 cat >> confdefs.h <<\EOF
6472 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6473 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6474 with_tooltalk=yes # CDE requires Tooltalk
6475 need_motif=yes # CDE requires Motif
6478 test "$window_system" != "x11" && with_offix=no
6479 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6480 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6483 if test "$with_dragndrop" = no; then
6484 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6487 if test "$with_cde" = yes; then
6488 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6491 test -z "$with_offix" && with_offix=no
6492 if test "$with_offix" = "yes"; then
6493 { test "$extra_verbose" = "yes" && cat << \EOF
6494 Defining HAVE_OFFIX_DND
6496 cat >> confdefs.h <<\EOF
6497 #define HAVE_OFFIX_DND 1
6501 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6502 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6505 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6506 echo "configure:6507: checking if drag and drop API is needed" >&5
6507 if test "$with_dragndrop" != "no" ; then
6508 if test -n "$dragndrop_proto" ; then
6510 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6511 { test "$extra_verbose" = "yes" && cat << \EOF
6512 Defining HAVE_DRAGNDROP
6514 cat >> confdefs.h <<\EOF
6515 #define HAVE_DRAGNDROP 1
6519 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6522 echo "$ac_t""no" 1>&6
6526 echo "checking for LDAP" 1>&6
6527 echo "configure:6528: checking for LDAP" >&5
6528 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6529 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6530 echo "configure:6531: checking for ldap.h" >&5
6532 cat > conftest.$ac_ext <<EOF
6533 #line 6534 "configure"
6534 #include "confdefs.h"
6537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6538 { (eval echo configure:6539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6540 if test -z "$ac_err"; then
6542 eval "ac_cv_header_$ac_safe=yes"
6545 echo "configure: failed program was:" >&5
6546 cat conftest.$ac_ext >&5
6548 eval "ac_cv_header_$ac_safe=no"
6551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6552 echo "$ac_t""yes" 1>&6
6555 echo "$ac_t""no" 1>&6
6559 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6560 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6561 echo "configure:6562: checking for lber.h" >&5
6563 cat > conftest.$ac_ext <<EOF
6564 #line 6565 "configure"
6565 #include "confdefs.h"
6568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6569 { (eval echo configure:6570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6571 if test -z "$ac_err"; then
6573 eval "ac_cv_header_$ac_safe=yes"
6576 echo "configure: failed program was:" >&5
6577 cat conftest.$ac_ext >&5
6579 eval "ac_cv_header_$ac_safe=no"
6582 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6583 echo "$ac_t""yes" 1>&6
6586 echo "$ac_t""no" 1>&6
6590 if test "$with_ldap" != "no"; then
6592 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6593 echo "configure:6594: checking for ldap_search in -lldap" >&5
6594 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6596 xe_check_libs=" -lldap "
6597 cat > conftest.$ac_ext <<EOF
6598 #line 6599 "configure"
6599 #include "confdefs.h"
6600 /* Override any gcc2 internal prototype to avoid an error. */
6601 /* We use char because int might match the return type of a gcc2
6602 builtin and then its argument prototype would still apply. */
6609 if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6611 eval "ac_cv_lib_$ac_lib_var=yes"
6613 echo "configure: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6616 eval "ac_cv_lib_$ac_lib_var=no"
6621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6622 echo "$ac_t""yes" 1>&6
6623 with_ldap_nolber=yes
6625 echo "$ac_t""no" 1>&6
6630 test "$with_ldap_nolber" = "no" && {
6631 xe_msg_checking="for ldap_open in -lldap"
6632 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6633 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6634 echo "configure:6635: checking "$xe_msg_checking"" >&5
6635 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6637 xe_check_libs=" -lldap -llber"
6638 cat > conftest.$ac_ext <<EOF
6639 #line 6640 "configure"
6640 #include "confdefs.h"
6641 /* Override any gcc2 internal prototype to avoid an error. */
6642 /* We use char because int might match the return type of a gcc2
6643 builtin and then its argument prototype would still apply. */
6650 if { (eval echo configure:6651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6652 eval "ac_cv_lib_$ac_lib_var=yes"
6654 echo "configure: failed program was:" >&5
6655 cat conftest.$ac_ext >&5
6657 eval "ac_cv_lib_$ac_lib_var=no"
6662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6663 echo "$ac_t""yes" 1>&6
6666 echo "$ac_t""no" 1>&6
6671 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
6672 xe_msg_checking="for ldap_open in -lldap"
6673 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
6674 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6675 echo "configure:6676: checking "$xe_msg_checking"" >&5
6676 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6678 xe_check_libs=" -lldap -llber -lkrb"
6679 cat > conftest.$ac_ext <<EOF
6680 #line 6681 "configure"
6681 #include "confdefs.h"
6682 /* Override any gcc2 internal prototype to avoid an error. */
6683 /* We use char because int might match the return type of a gcc2
6684 builtin and then its argument prototype would still apply. */
6691 if { (eval echo configure:6692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6693 eval "ac_cv_lib_$ac_lib_var=yes"
6695 echo "configure: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6698 eval "ac_cv_lib_$ac_lib_var=no"
6703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6704 echo "$ac_t""yes" 1>&6
6707 echo "$ac_t""no" 1>&6
6712 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
6713 xe_msg_checking="for ldap_open in -lldap"
6714 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
6715 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6716 echo "configure:6717: checking "$xe_msg_checking"" >&5
6717 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6719 xe_check_libs=" -lldap -llber -lkrb -ldes"
6720 cat > conftest.$ac_ext <<EOF
6721 #line 6722 "configure"
6722 #include "confdefs.h"
6723 /* Override any gcc2 internal prototype to avoid an error. */
6724 /* We use char because int might match the return type of a gcc2
6725 builtin and then its argument prototype would still apply. */
6732 if { (eval echo configure:6733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6734 eval "ac_cv_lib_$ac_lib_var=yes"
6736 echo "configure: failed program was:" >&5
6737 cat conftest.$ac_ext >&5
6739 eval "ac_cv_lib_$ac_lib_var=no"
6744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6745 echo "$ac_t""yes" 1>&6
6746 with_ldap_krbdes=yes
6748 echo "$ac_t""no" 1>&6
6753 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
6755 if test "$with_ldap" = "yes"; then
6756 { test "$extra_verbose" = "yes" && cat << \EOF
6759 cat >> confdefs.h <<\EOF
6764 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6765 echo " xemacs will be linked with \"eldap.o\""
6767 if test "$with_ldap_nolber" = "yes" ; then
6768 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6770 if test "$with_ldap_krb" = "yes" ; then
6771 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6773 if test "$with_ldap_krbdes" = "yes" ; then
6774 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
6775 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6777 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6778 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6780 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
6782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6783 echo "configure:6784: checking for $ac_func" >&5
6785 cat > conftest.$ac_ext <<EOF
6786 #line 6787 "configure"
6787 #include "confdefs.h"
6788 /* System header to define __stub macros and hopefully few prototypes,
6789 which can conflict with char $ac_func(); below. */
6791 /* Override any gcc2 internal prototype to avoid an error. */
6792 /* We use char because int might match the return type of a gcc2
6793 builtin and then its argument prototype would still apply. */
6798 /* The GNU C library defines this for functions which it implements
6799 to always fail with ENOSYS. Some functions are actually named
6800 something starting with __ and the normal name is an alias. */
6801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6809 if { (eval echo configure:6810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6811 eval "ac_cv_func_$ac_func=yes"
6813 echo "configure: failed program was:" >&5
6814 cat conftest.$ac_ext >&5
6816 eval "ac_cv_func_$ac_func=no"
6820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6821 echo "$ac_t""yes" 1>&6
6822 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6823 { test "$extra_verbose" = "yes" && cat << EOF
6824 Defining $ac_tr_func
6826 cat >> confdefs.h <<EOF
6827 #define $ac_tr_func 1
6832 echo "$ac_t""no" 1>&6
6839 if test "$window_system" != "none"; then
6840 echo "checking for graphics libraries" 1>&6
6841 echo "configure:6842: checking for graphics libraries" >&5
6844 if test -z "$with_xpm"; then
6845 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6846 echo "configure:6847: checking for Xpm - no older than 3.4f" >&5
6848 cat > conftest.$ac_ext <<EOF
6849 #line 6850 "configure"
6850 #include "confdefs.h"
6851 #include <X11/xpm.h>
6852 int main(int c, char **v) {
6854 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6855 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6857 if { (eval echo configure:6858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6859 ./conftest dummy_arg; xpm_status=$?;
6860 if test "$xpm_status" = "0"; then
6864 if test "$xpm_status" = "1"; then
6865 xpm_problem="Xpm library version and header file version don't match!"
6866 elif test "$xpm_status" = "2"; then
6867 xpm_problem="Xpm library version is too old!"
6869 xpm_problem="Internal xpm detection logic error!"
6872 *** WARNING *** $xpm_problem
6873 I'm not touching that with a 10-foot pole!
6874 If you really want to use the installed version of Xpm, rerun
6875 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
6879 echo "configure: failed program was:" >&5
6880 cat conftest.$ac_ext >&5
6886 echo "$ac_t""$with_xpm" 1>&6
6888 if test "$with_xpm" = "yes"; then
6889 { test "$extra_verbose" = "yes" && cat << \EOF
6892 cat >> confdefs.h <<\EOF
6897 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6898 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6899 echo "configure:6900: checking for \"FOR_MSW\" xpm" >&5
6901 cat > conftest.$ac_ext <<EOF
6902 #line 6903 "configure"
6903 #include "confdefs.h"
6906 XpmCreatePixmapFromData()
6909 if { (eval echo configure:6910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6913 echo "configure: failed program was:" >&5
6914 cat conftest.$ac_ext >&5
6920 echo "$ac_t""$xpm_for_msw" 1>&6
6921 if test "$xpm_for_msw" = "yes"; then
6922 { test "$extra_verbose" = "yes" && cat << \EOF
6925 cat >> confdefs.h <<\EOF
6933 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6934 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6935 echo "configure:6936: checking for compface.h" >&5
6937 cat > conftest.$ac_ext <<EOF
6938 #line 6939 "configure"
6939 #include "confdefs.h"
6940 #include <compface.h>
6942 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6943 { (eval echo configure:6944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6944 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6945 if test -z "$ac_err"; then
6947 eval "ac_cv_header_$ac_safe=yes"
6950 echo "configure: failed program was:" >&5
6951 cat conftest.$ac_ext >&5
6953 eval "ac_cv_header_$ac_safe=no"
6956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6957 echo "$ac_t""yes" 1>&6
6960 echo "$ac_t""no" 1>&6
6964 test -z "$with_xface" && {
6965 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6966 echo "configure:6967: checking for UnGenFace in -lcompface" >&5
6967 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6969 xe_check_libs=" -lcompface "
6970 cat > conftest.$ac_ext <<EOF
6971 #line 6972 "configure"
6972 #include "confdefs.h"
6973 /* Override any gcc2 internal prototype to avoid an error. */
6974 /* We use char because int might match the return type of a gcc2
6975 builtin and then its argument prototype would still apply. */
6982 if { (eval echo configure:6983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6984 eval "ac_cv_lib_$ac_lib_var=yes"
6986 echo "configure: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6989 eval "ac_cv_lib_$ac_lib_var=no"
6994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6995 echo "$ac_t""yes" 1>&6
6998 echo "$ac_t""no" 1>&6
7003 test -z "$with_xface" && with_xface=yes
7004 if test "$with_xface" = "yes"; then
7005 { test "$extra_verbose" = "yes" && cat << \EOF
7008 cat >> confdefs.h <<\EOF
7009 #define HAVE_XFACE 1
7013 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7016 if test "$with_gif" != "no"; then
7018 { test "$extra_verbose" = "yes" && cat << \EOF
7021 cat >> confdefs.h <<\EOF
7026 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7027 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7031 if test "$with_png $with_tiff" != "no no"; then
7033 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7034 echo "configure:7035: checking for inflate in -lc" >&5
7035 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7037 xe_check_libs=" -lc "
7038 cat > conftest.$ac_ext <<EOF
7039 #line 7040 "configure"
7040 #include "confdefs.h"
7041 /* Override any gcc2 internal prototype to avoid an error. */
7042 /* We use char because int might match the return type of a gcc2
7043 builtin and then its argument prototype would still apply. */
7050 if { (eval echo configure:7051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7052 eval "ac_cv_lib_$ac_lib_var=yes"
7054 echo "configure: failed program was:" >&5
7055 cat conftest.$ac_ext >&5
7057 eval "ac_cv_lib_$ac_lib_var=no"
7062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7063 echo "$ac_t""yes" 1>&6
7066 echo "$ac_t""no" 1>&6
7068 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7069 echo "configure:7070: checking for inflate in -lz" >&5
7070 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7072 xe_check_libs=" -lz "
7073 cat > conftest.$ac_ext <<EOF
7074 #line 7075 "configure"
7075 #include "confdefs.h"
7076 /* Override any gcc2 internal prototype to avoid an error. */
7077 /* We use char because int might match the return type of a gcc2
7078 builtin and then its argument prototype would still apply. */
7085 if { (eval echo configure:7086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7087 eval "ac_cv_lib_$ac_lib_var=yes"
7089 echo "configure: failed program was:" >&5
7090 cat conftest.$ac_ext >&5
7092 eval "ac_cv_lib_$ac_lib_var=no"
7097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7098 echo "$ac_t""yes" 1>&6
7099 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7101 echo "$ac_t""no" 1>&6
7103 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7104 echo "configure:7105: checking for inflate in -lgz" >&5
7105 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7107 xe_check_libs=" -lgz "
7108 cat > conftest.$ac_ext <<EOF
7109 #line 7110 "configure"
7110 #include "confdefs.h"
7111 /* Override any gcc2 internal prototype to avoid an error. */
7112 /* We use char because int might match the return type of a gcc2
7113 builtin and then its argument prototype would still apply. */
7120 if { (eval echo configure:7121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7122 eval "ac_cv_lib_$ac_lib_var=yes"
7124 echo "configure: failed program was:" >&5
7125 cat conftest.$ac_ext >&5
7127 eval "ac_cv_lib_$ac_lib_var=no"
7132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7133 echo "$ac_t""yes" 1>&6
7134 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7136 echo "$ac_t""no" 1>&6
7148 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7149 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7150 echo "configure:7151: checking for jpeglib.h" >&5
7152 cat > conftest.$ac_ext <<EOF
7153 #line 7154 "configure"
7154 #include "confdefs.h"
7155 #include <jpeglib.h>
7157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7158 { (eval echo configure:7159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7160 if test -z "$ac_err"; then
7162 eval "ac_cv_header_$ac_safe=yes"
7165 echo "configure: failed program was:" >&5
7166 cat conftest.$ac_ext >&5
7168 eval "ac_cv_header_$ac_safe=no"
7171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7172 echo "$ac_t""yes" 1>&6
7175 echo "$ac_t""no" 1>&6
7179 test -z "$with_jpeg" && {
7180 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7181 echo "configure:7182: checking for jpeg_destroy_decompress in -ljpeg" >&5
7182 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7184 xe_check_libs=" -ljpeg "
7185 cat > conftest.$ac_ext <<EOF
7186 #line 7187 "configure"
7187 #include "confdefs.h"
7188 /* Override any gcc2 internal prototype to avoid an error. */
7189 /* We use char because int might match the return type of a gcc2
7190 builtin and then its argument prototype would still apply. */
7191 char jpeg_destroy_decompress();
7194 jpeg_destroy_decompress()
7197 if { (eval echo configure:7198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7199 eval "ac_cv_lib_$ac_lib_var=yes"
7201 echo "configure: failed program was:" >&5
7202 cat conftest.$ac_ext >&5
7204 eval "ac_cv_lib_$ac_lib_var=no"
7209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7210 echo "$ac_t""yes" 1>&6
7213 echo "$ac_t""no" 1>&6
7218 test -z "$with_jpeg" && with_jpeg=yes
7219 if test "$with_jpeg" = "yes"; then
7220 { test "$extra_verbose" = "yes" && cat << \EOF
7223 cat >> confdefs.h <<\EOF
7228 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7232 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7233 echo "configure:7234: checking for pow" >&5
7235 cat > conftest.$ac_ext <<EOF
7236 #line 7237 "configure"
7237 #include "confdefs.h"
7238 /* System header to define __stub macros and hopefully few prototypes,
7239 which can conflict with char pow(); below. */
7241 /* Override any gcc2 internal prototype to avoid an error. */
7242 /* We use char because int might match the return type of a gcc2
7243 builtin and then its argument prototype would still apply. */
7248 /* The GNU C library defines this for functions which it implements
7249 to always fail with ENOSYS. Some functions are actually named
7250 something starting with __ and the normal name is an alias. */
7251 #if defined (__stub_pow) || defined (__stub___pow)
7259 if { (eval echo configure:7260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7261 eval "ac_cv_func_pow=yes"
7263 echo "configure: failed program was:" >&5
7264 cat conftest.$ac_ext >&5
7266 eval "ac_cv_func_pow=no"
7270 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7271 echo "$ac_t""yes" 1>&6
7274 echo "$ac_t""no" 1>&6
7278 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7279 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7280 echo "configure:7281: checking for png.h" >&5
7282 cat > conftest.$ac_ext <<EOF
7283 #line 7284 "configure"
7284 #include "confdefs.h"
7287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7288 { (eval echo configure:7289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7290 if test -z "$ac_err"; then
7292 eval "ac_cv_header_$ac_safe=yes"
7295 echo "configure: failed program was:" >&5
7296 cat conftest.$ac_ext >&5
7298 eval "ac_cv_header_$ac_safe=no"
7301 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7302 echo "$ac_t""yes" 1>&6
7305 echo "$ac_t""no" 1>&6
7309 test -z "$with_png" && {
7310 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7311 echo "configure:7312: checking for png_read_image in -lpng" >&5
7312 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7314 xe_check_libs=" -lpng "
7315 cat > conftest.$ac_ext <<EOF
7316 #line 7317 "configure"
7317 #include "confdefs.h"
7318 /* Override any gcc2 internal prototype to avoid an error. */
7319 /* We use char because int might match the return type of a gcc2
7320 builtin and then its argument prototype would still apply. */
7321 char png_read_image();
7327 if { (eval echo configure:7328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7329 eval "ac_cv_lib_$ac_lib_var=yes"
7331 echo "configure: failed program was:" >&5
7332 cat conftest.$ac_ext >&5
7334 eval "ac_cv_lib_$ac_lib_var=no"
7339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7340 echo "$ac_t""yes" 1>&6
7343 echo "$ac_t""no" 1>&6
7348 if test -z "$with_png"; then
7349 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7350 echo "configure:7351: checking for workable png version information" >&5
7351 xe_check_libs="-lpng -lz"
7352 cat > conftest.$ac_ext <<EOF
7353 #line 7354 "configure"
7354 #include "confdefs.h"
7356 int main(int c, char **v) {
7357 if (c == 1) return 0;
7358 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7359 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7361 if { (eval echo configure:7362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7363 ./conftest dummy_arg; png_status=$?;
7364 if test "$png_status" = "0"; then
7368 if test "$png_status" = "1"; then
7369 png_problem="PNG library version and header file don't match!"
7370 elif test "$png_status" = "2"; then
7371 png_problem="PNG library version too old (pre 1.0.2)!"
7374 *** WARNING *** $png_problem
7375 I'm not touching that with a 10-foot pole!
7376 If you really want to use the installed version of libPNG, rerun
7377 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7381 echo "configure: failed program was:" >&5
7382 cat conftest.$ac_ext >&5
7388 echo "$ac_t""$with_png" 1>&6
7390 if test "$with_png" = "yes"; then
7391 { test "$extra_verbose" = "yes" && cat << \EOF
7394 cat >> confdefs.h <<\EOF
7399 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7402 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7403 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7404 echo "configure:7405: checking for tiffio.h" >&5
7406 cat > conftest.$ac_ext <<EOF
7407 #line 7408 "configure"
7408 #include "confdefs.h"
7411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7412 { (eval echo configure:7413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7414 if test -z "$ac_err"; then
7416 eval "ac_cv_header_$ac_safe=yes"
7419 echo "configure: failed program was:" >&5
7420 cat conftest.$ac_ext >&5
7422 eval "ac_cv_header_$ac_safe=no"
7425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7426 echo "$ac_t""yes" 1>&6
7429 echo "$ac_t""no" 1>&6
7433 test -z "$with_tiff" && {
7434 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7435 echo "configure:7436: checking for TIFFClientOpen in -ltiff" >&5
7436 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7438 xe_check_libs=" -ltiff "
7439 cat > conftest.$ac_ext <<EOF
7440 #line 7441 "configure"
7441 #include "confdefs.h"
7442 /* Override any gcc2 internal prototype to avoid an error. */
7443 /* We use char because int might match the return type of a gcc2
7444 builtin and then its argument prototype would still apply. */
7445 char TIFFClientOpen();
7451 if { (eval echo configure:7452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7453 eval "ac_cv_lib_$ac_lib_var=yes"
7455 echo "configure: failed program was:" >&5
7456 cat conftest.$ac_ext >&5
7458 eval "ac_cv_lib_$ac_lib_var=no"
7463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7464 echo "$ac_t""yes" 1>&6
7467 echo "$ac_t""no" 1>&6
7472 test -z "$with_tiff" && with_tiff=yes
7473 if test "$with_tiff" = "yes"; then
7474 { test "$extra_verbose" = "yes" && cat << \EOF
7477 cat >> confdefs.h <<\EOF
7482 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7487 if test "$with_x11" = "yes"; then
7489 echo "checking for X11 graphics libraries" 1>&6
7490 echo "configure:7491: checking for X11 graphics libraries" >&5
7493 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7494 echo "configure:7495: checking for XawScrollbarSetThumb in -lXaw" >&5
7495 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7497 xe_check_libs=" -lXaw "
7498 cat > conftest.$ac_ext <<EOF
7499 #line 7500 "configure"
7500 #include "confdefs.h"
7501 /* Override any gcc2 internal prototype to avoid an error. */
7502 /* We use char because int might match the return type of a gcc2
7503 builtin and then its argument prototype would still apply. */
7504 char XawScrollbarSetThumb();
7507 XawScrollbarSetThumb()
7510 if { (eval echo configure:7511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7512 eval "ac_cv_lib_$ac_lib_var=yes"
7514 echo "configure: failed program was:" >&5
7515 cat conftest.$ac_ext >&5
7517 eval "ac_cv_lib_$ac_lib_var=no"
7522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7523 echo "$ac_t""yes" 1>&6
7526 echo "$ac_t""no" 1>&6
7532 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7533 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7534 echo "configure:7535: checking for Xm/Xm.h" >&5
7536 cat > conftest.$ac_ext <<EOF
7537 #line 7538 "configure"
7538 #include "confdefs.h"
7541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7542 { (eval echo configure:7543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7544 if test -z "$ac_err"; then
7546 eval "ac_cv_header_$ac_safe=yes"
7549 echo "configure: failed program was:" >&5
7550 cat conftest.$ac_ext >&5
7552 eval "ac_cv_header_$ac_safe=no"
7555 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7556 echo "$ac_t""yes" 1>&6
7558 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7559 echo "configure:7560: checking for XmStringFree in -lXm" >&5
7560 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7562 xe_check_libs=" -lXm "
7563 cat > conftest.$ac_ext <<EOF
7564 #line 7565 "configure"
7565 #include "confdefs.h"
7566 /* Override any gcc2 internal prototype to avoid an error. */
7567 /* We use char because int might match the return type of a gcc2
7568 builtin and then its argument prototype would still apply. */
7569 char XmStringFree();
7575 if { (eval echo configure:7576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7577 eval "ac_cv_lib_$ac_lib_var=yes"
7579 echo "configure: failed program was:" >&5
7580 cat conftest.$ac_ext >&5
7582 eval "ac_cv_lib_$ac_lib_var=no"
7587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7588 echo "$ac_t""yes" 1>&6
7591 echo "$ac_t""no" 1>&6
7597 echo "$ac_t""no" 1>&6
7602 if test "$have_motif" = "yes"; then
7603 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7604 echo "configure:7605: checking for Lesstif" >&5
7605 cat > conftest.$ac_ext <<EOF
7606 #line 7607 "configure"
7607 #include "confdefs.h"
7609 #ifdef LESSTIF_VERSION
7614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7615 egrep "yes" >/dev/null 2>&1; then
7624 echo "$ac_t""$have_lesstif" 1>&6
7629 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
7630 with_menubars="lucid" ;;
7632 case "$with_dialogs" in "" | "yes" | "lucid" )
7633 if test "$have_motif" = "yes"; then with_dialogs="motif"
7634 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
7635 else with_dialogs=no
7638 case "$with_scrollbars" in "" | "yes" )
7639 with_scrollbars="lucid" ;;
7641 case "$with_widgets" in "" | "yes" )
7642 if test "$have_motif" = "yes"; then with_widgets="motif"
7643 else with_widgets=no
7647 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
7649 case "$all_widgets" in *athena* )
7650 { test "$extra_verbose" = "yes" && cat << \EOF
7651 Defining LWLIB_USES_ATHENA
7653 cat >> confdefs.h <<\EOF
7654 #define LWLIB_USES_ATHENA 1
7658 { test "$extra_verbose" = "yes" && cat << \EOF
7659 Defining NEED_ATHENA
7661 cat >> confdefs.h <<\EOF
7662 #define NEED_ATHENA 1
7666 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
7667 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
7670 case "$all_widgets" in *motif* )
7671 { test "$extra_verbose" = "yes" && cat << \EOF
7672 Defining LWLIB_USES_MOTIF
7674 cat >> confdefs.h <<\EOF
7675 #define LWLIB_USES_MOTIF 1
7679 { test "$extra_verbose" = "yes" && cat << \EOF
7682 cat >> confdefs.h <<\EOF
7683 #define NEED_MOTIF 1
7687 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
7691 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7692 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7693 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
7694 case "$all_widgets" in *lucid* )
7695 { test "$extra_verbose" = "yes" && cat << \EOF
7698 cat >> confdefs.h <<\EOF
7699 #define NEED_LUCID 1
7703 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
7708 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7709 Defining LWLIB_SCROLLBARS_ATHENA
7711 cat >> confdefs.h <<\EOF
7712 #define LWLIB_SCROLLBARS_ATHENA 1
7716 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7717 Defining LWLIB_DIALOGS_ATHENA
7719 cat >> confdefs.h <<\EOF
7720 #define LWLIB_DIALOGS_ATHENA 1
7724 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7725 Defining LWLIB_SCROLLBARS_ATHENA3D
7727 cat >> confdefs.h <<\EOF
7728 #define LWLIB_SCROLLBARS_ATHENA3D 1
7732 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7733 Defining LWLIB_DIALOGS_ATHENA3D
7735 cat >> confdefs.h <<\EOF
7736 #define LWLIB_DIALOGS_ATHENA3D 1
7741 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7742 Defining HAVE_MENUBARS
7744 cat >> confdefs.h <<\EOF
7745 #define HAVE_MENUBARS 1
7749 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7750 Defining HAVE_SCROLLBARS
7752 cat >> confdefs.h <<\EOF
7753 #define HAVE_SCROLLBARS 1
7757 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7758 Defining HAVE_DIALOGS
7760 cat >> confdefs.h <<\EOF
7761 #define HAVE_DIALOGS 1
7765 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7766 Defining HAVE_TOOLBARS
7768 cat >> confdefs.h <<\EOF
7769 #define HAVE_TOOLBARS 1
7774 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7775 Defining LWLIB_MENUBARS_LUCID
7777 cat >> confdefs.h <<\EOF
7778 #define LWLIB_MENUBARS_LUCID 1
7782 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7783 Defining LWLIB_SCROLLBARS_LUCID
7785 cat >> confdefs.h <<\EOF
7786 #define LWLIB_SCROLLBARS_LUCID 1
7791 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7792 Defining LWLIB_MENUBARS_MOTIF
7794 cat >> confdefs.h <<\EOF
7795 #define LWLIB_MENUBARS_MOTIF 1
7799 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7800 Defining LWLIB_SCROLLBARS_MOTIF
7802 cat >> confdefs.h <<\EOF
7803 #define LWLIB_SCROLLBARS_MOTIF 1
7807 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7808 Defining LWLIB_DIALOGS_MOTIF
7810 cat >> confdefs.h <<\EOF
7811 #define LWLIB_DIALOGS_MOTIF 1
7816 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
7817 echo " xemacs will be linked with \"menubar.o\""
7819 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
7820 echo " xemacs will be linked with \"scrollbar.o\""
7822 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
7823 echo " xemacs will be linked with \"dialog.o\""
7825 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
7826 echo " xemacs will be linked with \"toolbar.o\""
7829 if test "$with_x11" = "yes"; then
7830 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
7831 echo " xemacs will be linked with \"menubar-x.o\""
7833 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
7834 echo " xemacs will be linked with \"scrollbar-x.o\""
7836 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
7837 echo " xemacs will be linked with \"dialog-x.o\""
7839 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
7840 echo " xemacs will be linked with \"toolbar-x.o\""
7842 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
7843 echo " xemacs will be linked with \"gui-x.o\""
7846 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
7847 echo "Attempt to Build NAS sound without X"
7848 echo "Please remove NAS configuration or build with X"
7854 test -z "$with_mule" && with_mule=no
7855 test -z "$with_file_coding" && with_file_coding=no
7858 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
7859 { test "$extra_verbose" = "yes" && cat << \EOF
7860 Defining FILE_CODING
7862 cat >> confdefs.h <<\EOF
7863 #define FILE_CODING 1
7867 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
7868 echo " xemacs will be linked with \"file-coding.o\""
7872 if test "$with_mule" = "yes" ; then
7873 echo "checking for Mule-related features" 1>&6
7874 echo "configure:7875: checking for Mule-related features" >&5
7875 { test "$extra_verbose" = "yes" && cat << \EOF
7878 cat >> confdefs.h <<\EOF
7883 { test "$extra_verbose" = "yes" && cat << \EOF
7884 Defining FILE_CODING
7886 cat >> confdefs.h <<\EOF
7887 #define FILE_CODING 1
7891 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
7892 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
7895 for ac_hdr in libintl.h
7897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7899 echo "configure:7900: checking for $ac_hdr" >&5
7901 cat > conftest.$ac_ext <<EOF
7902 #line 7903 "configure"
7903 #include "confdefs.h"
7906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7907 { (eval echo configure:7908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7909 if test -z "$ac_err"; then
7911 eval "ac_cv_header_$ac_safe=yes"
7914 echo "configure: failed program was:" >&5
7915 cat conftest.$ac_ext >&5
7917 eval "ac_cv_header_$ac_safe=no"
7920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7921 echo "$ac_t""yes" 1>&6
7922 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7923 { test "$extra_verbose" = "yes" && cat << EOF
7926 cat >> confdefs.h <<EOF
7927 #define $ac_tr_hdr 1
7932 echo "$ac_t""no" 1>&6
7937 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7938 echo "configure:7939: checking for strerror in -lintl" >&5
7939 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7941 xe_check_libs=" -lintl "
7942 cat > conftest.$ac_ext <<EOF
7943 #line 7944 "configure"
7944 #include "confdefs.h"
7945 /* Override any gcc2 internal prototype to avoid an error. */
7946 /* We use char because int might match the return type of a gcc2
7947 builtin and then its argument prototype would still apply. */
7954 if { (eval echo configure:7955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7956 eval "ac_cv_lib_$ac_lib_var=yes"
7958 echo "configure: failed program was:" >&5
7959 cat conftest.$ac_ext >&5
7961 eval "ac_cv_lib_$ac_lib_var=no"
7966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7967 echo "$ac_t""yes" 1>&6
7968 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7969 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7970 { test "$extra_verbose" = "yes" && cat << EOF
7973 cat >> confdefs.h <<EOF
7974 #define $ac_tr_lib 1
7978 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
7981 echo "$ac_t""no" 1>&6
7986 if test "$with_utf_2000" = "yes" ; then
7987 { test "$extra_verbose" = "yes" && cat << \EOF
7988 Defining CHAR_IS_UCS4
7990 cat >> confdefs.h <<\EOF
7991 #define CHAR_IS_UCS4 1
7995 { test "$extra_verbose" = "yes" && cat << \EOF
7998 cat >> confdefs.h <<\EOF
8003 elif test "$with_ucs4" = "yes" ; then
8004 { test "$extra_verbose" = "yes" && cat << \EOF
8005 Defining CHAR_IS_UCS4
8007 cat >> confdefs.h <<\EOF
8008 #define CHAR_IS_UCS4 1
8014 echo "checking for Mule input methods" 1>&6
8015 echo "configure:8016: checking for Mule input methods" >&5
8016 case "$with_xim" in "" | "yes" )
8017 echo "checking for XIM" 1>&6
8018 echo "configure:8019: checking for XIM" >&5
8020 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
8021 echo "configure:8022: checking for XOpenIM in -lX11" >&5
8022 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
8024 xe_check_libs=" -lX11 "
8025 cat > conftest.$ac_ext <<EOF
8026 #line 8027 "configure"
8027 #include "confdefs.h"
8028 /* Override any gcc2 internal prototype to avoid an error. */
8029 /* We use char because int might match the return type of a gcc2
8030 builtin and then its argument prototype would still apply. */
8037 if { (eval echo configure:8038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8039 eval "ac_cv_lib_$ac_lib_var=yes"
8041 echo "configure: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8044 eval "ac_cv_lib_$ac_lib_var=no"
8049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8050 echo "$ac_t""yes" 1>&6
8053 echo "$ac_t""no" 1>&6
8058 if test "$have_motif $have_lesstif" = "yes no"; then
8060 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
8061 echo "configure:8062: checking for XmImMbLookupString in -lXm" >&5
8062 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
8064 xe_check_libs=" -lXm "
8065 cat > conftest.$ac_ext <<EOF
8066 #line 8067 "configure"
8067 #include "confdefs.h"
8068 /* Override any gcc2 internal prototype to avoid an error. */
8069 /* We use char because int might match the return type of a gcc2
8070 builtin and then its argument prototype would still apply. */
8071 char XmImMbLookupString();
8074 XmImMbLookupString()
8077 if { (eval echo configure:8078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8079 eval "ac_cv_lib_$ac_lib_var=yes"
8081 echo "configure: failed program was:" >&5
8082 cat conftest.$ac_ext >&5
8084 eval "ac_cv_lib_$ac_lib_var=no"
8089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8090 echo "$ac_t""yes" 1>&6
8093 echo "$ac_t""no" 1>&6
8099 if test "$with_xim" != "no"; then
8100 { test "$extra_verbose" = "yes" && cat << \EOF
8103 cat >> confdefs.h <<\EOF
8108 if test "$with_xim" = "xlib"; then
8109 { test "$extra_verbose" = "yes" && cat << \EOF
8112 cat >> confdefs.h <<\EOF
8117 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
8118 echo " xemacs will be linked with \"input-method-xlib.o\""
8121 if test "$with_xim" = "motif"; then
8122 { test "$extra_verbose" = "yes" && cat << \EOF
8125 cat >> confdefs.h <<\EOF
8131 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
8132 echo " xemacs will be linked with \"input-method-motif.o\""
8135 if test "$with_xim" = "motif"; then
8140 if test "$with_xfs" = "yes" ; then
8141 echo "checking for XFontSet" 1>&6
8142 echo "configure:8143: checking for XFontSet" >&5
8144 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8145 echo "configure:8146: checking for XmbDrawString in -lX11" >&5
8146 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8148 xe_check_libs=" -lX11 "
8149 cat > conftest.$ac_ext <<EOF
8150 #line 8151 "configure"
8151 #include "confdefs.h"
8152 /* Override any gcc2 internal prototype to avoid an error. */
8153 /* We use char because int might match the return type of a gcc2
8154 builtin and then its argument prototype would still apply. */
8155 char XmbDrawString();
8161 if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8163 eval "ac_cv_lib_$ac_lib_var=yes"
8165 echo "configure: failed program was:" >&5
8166 cat conftest.$ac_ext >&5
8168 eval "ac_cv_lib_$ac_lib_var=no"
8173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8174 echo "$ac_t""yes" 1>&6
8177 echo "$ac_t""no" 1>&6
8182 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
8183 { test "$extra_verbose" = "yes" && cat << \EOF
8184 Defining USE_XFONTSET
8186 cat >> confdefs.h <<\EOF
8187 #define USE_XFONTSET 1
8191 if test "$with_xim" = "no" ; then
8192 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
8193 echo " xemacs will be linked with \"input-method-xfs.o\""
8198 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8199 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8200 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8201 echo "configure:8202: checking for wnn/jllib.h" >&5
8203 cat > conftest.$ac_ext <<EOF
8204 #line 8205 "configure"
8205 #include "confdefs.h"
8206 #include <wnn/jllib.h>
8208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8209 { (eval echo configure:8210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8211 if test -z "$ac_err"; then
8213 eval "ac_cv_header_$ac_safe=yes"
8216 echo "configure: failed program was:" >&5
8217 cat conftest.$ac_ext >&5
8219 eval "ac_cv_header_$ac_safe=no"
8222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8223 echo "$ac_t""yes" 1>&6
8226 echo "$ac_t""no" 1>&6
8230 if test "$with_wnn" != "no"; then
8231 for ac_func in crypt
8233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8234 echo "configure:8235: checking for $ac_func" >&5
8236 cat > conftest.$ac_ext <<EOF
8237 #line 8238 "configure"
8238 #include "confdefs.h"
8239 /* System header to define __stub macros and hopefully few prototypes,
8240 which can conflict with char $ac_func(); below. */
8242 /* Override any gcc2 internal prototype to avoid an error. */
8243 /* We use char because int might match the return type of a gcc2
8244 builtin and then its argument prototype would still apply. */
8249 /* The GNU C library defines this for functions which it implements
8250 to always fail with ENOSYS. Some functions are actually named
8251 something starting with __ and the normal name is an alias. */
8252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8260 if { (eval echo configure:8261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8262 eval "ac_cv_func_$ac_func=yes"
8264 echo "configure: failed program was:" >&5
8265 cat conftest.$ac_ext >&5
8267 eval "ac_cv_func_$ac_func=no"
8271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8272 echo "$ac_t""yes" 1>&6
8273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8274 { test "$extra_verbose" = "yes" && cat << EOF
8275 Defining $ac_tr_func
8277 cat >> confdefs.h <<EOF
8278 #define $ac_tr_func 1
8283 echo "$ac_t""no" 1>&6
8287 test "$ac_cv_func_crypt" != "yes" && {
8288 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8289 echo "configure:8290: checking for crypt in -lcrypt" >&5
8290 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8292 xe_check_libs=" -lcrypt "
8293 cat > conftest.$ac_ext <<EOF
8294 #line 8295 "configure"
8295 #include "confdefs.h"
8296 /* Override any gcc2 internal prototype to avoid an error. */
8297 /* We use char because int might match the return type of a gcc2
8298 builtin and then its argument prototype would still apply. */
8305 if { (eval echo configure:8306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8307 eval "ac_cv_lib_$ac_lib_var=yes"
8309 echo "configure: failed program was:" >&5
8310 cat conftest.$ac_ext >&5
8312 eval "ac_cv_lib_$ac_lib_var=no"
8317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8318 echo "$ac_t""yes" 1>&6
8319 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8320 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8321 { test "$extra_verbose" = "yes" && cat << EOF
8324 cat >> confdefs.h <<EOF
8325 #define $ac_tr_lib 1
8329 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
8332 echo "$ac_t""no" 1>&6
8337 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8339 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8340 echo "configure:8341: checking for jl_dic_list_e in -lwnn" >&5
8341 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8343 xe_check_libs=" -lwnn "
8344 cat > conftest.$ac_ext <<EOF
8345 #line 8346 "configure"
8346 #include "confdefs.h"
8347 /* Override any gcc2 internal prototype to avoid an error. */
8348 /* We use char because int might match the return type of a gcc2
8349 builtin and then its argument prototype would still apply. */
8350 char jl_dic_list_e();
8356 if { (eval echo configure:8357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8358 eval "ac_cv_lib_$ac_lib_var=yes"
8360 echo "configure: failed program was:" >&5
8361 cat conftest.$ac_ext >&5
8363 eval "ac_cv_lib_$ac_lib_var=no"
8368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8369 echo "$ac_t""yes" 1>&6
8372 echo "$ac_t""no" 1>&6
8373 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8374 echo "configure:8375: checking for jl_dic_list_e in -lwnn4" >&5
8375 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8377 xe_check_libs=" -lwnn4 "
8378 cat > conftest.$ac_ext <<EOF
8379 #line 8380 "configure"
8380 #include "confdefs.h"
8381 /* Override any gcc2 internal prototype to avoid an error. */
8382 /* We use char because int might match the return type of a gcc2
8383 builtin and then its argument prototype would still apply. */
8384 char jl_dic_list_e();
8390 if { (eval echo configure:8391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8392 eval "ac_cv_lib_$ac_lib_var=yes"
8394 echo "configure: failed program was:" >&5
8395 cat conftest.$ac_ext >&5
8397 eval "ac_cv_lib_$ac_lib_var=no"
8402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8403 echo "$ac_t""yes" 1>&6
8406 echo "$ac_t""no" 1>&6
8407 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8408 echo "configure:8409: checking for jl_dic_list_e in -lwnn6" >&5
8409 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8411 xe_check_libs=" -lwnn6 "
8412 cat > conftest.$ac_ext <<EOF
8413 #line 8414 "configure"
8414 #include "confdefs.h"
8415 /* Override any gcc2 internal prototype to avoid an error. */
8416 /* We use char because int might match the return type of a gcc2
8417 builtin and then its argument prototype would still apply. */
8418 char jl_dic_list_e();
8424 if { (eval echo configure:8425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8426 eval "ac_cv_lib_$ac_lib_var=yes"
8428 echo "configure: failed program was:" >&5
8429 cat conftest.$ac_ext >&5
8431 eval "ac_cv_lib_$ac_lib_var=no"
8436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8437 echo "$ac_t""yes" 1>&6
8440 echo "$ac_t""no" 1>&6
8441 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8442 echo "configure:8443: checking for dic_list_e in -lwnn6_fromsrc" >&5
8443 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8445 xe_check_libs=" -lwnn6_fromsrc "
8446 cat > conftest.$ac_ext <<EOF
8447 #line 8448 "configure"
8448 #include "confdefs.h"
8449 /* Override any gcc2 internal prototype to avoid an error. */
8450 /* We use char because int might match the return type of a gcc2
8451 builtin and then its argument prototype would still apply. */
8458 if { (eval echo configure:8459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8460 eval "ac_cv_lib_$ac_lib_var=yes"
8462 echo "configure: failed program was:" >&5
8463 cat conftest.$ac_ext >&5
8465 eval "ac_cv_lib_$ac_lib_var=no"
8470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8471 echo "$ac_t""yes" 1>&6
8474 echo "$ac_t""no" 1>&6
8489 test -z "$with_wnn" && with_wnn=yes
8490 if test "$with_wnn" = "yes"; then
8491 { test "$extra_verbose" = "yes" && cat << \EOF
8494 cat >> confdefs.h <<\EOF
8499 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
8500 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
8501 echo " xemacs will be linked with \"mule-wnnfns.o\""
8503 if test "$with_wnn6" != "no"; then
8505 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8506 echo "configure:8507: checking for jl_fi_dic_list in -l$libwnn" >&5
8507 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8509 xe_check_libs=" -l$libwnn "
8510 cat > conftest.$ac_ext <<EOF
8511 #line 8512 "configure"
8512 #include "confdefs.h"
8513 /* Override any gcc2 internal prototype to avoid an error. */
8514 /* We use char because int might match the return type of a gcc2
8515 builtin and then its argument prototype would still apply. */
8516 char jl_fi_dic_list();
8522 if { (eval echo configure:8523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8524 eval "ac_cv_lib_$ac_lib_var=yes"
8526 echo "configure: failed program was:" >&5
8527 cat conftest.$ac_ext >&5
8529 eval "ac_cv_lib_$ac_lib_var=no"
8534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8535 echo "$ac_t""yes" 1>&6
8538 echo "$ac_t""no" 1>&6
8542 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8545 cat >> confdefs.h <<\EOF
8553 canna_includes_found=no
8554 if test "$with_canna" != "no"; then
8555 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8556 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8557 echo "configure:8558: checking for canna/jrkanji.h" >&5
8559 cat > conftest.$ac_ext <<EOF
8560 #line 8561 "configure"
8561 #include "confdefs.h"
8562 #include <canna/jrkanji.h>
8564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8565 { (eval echo configure:8566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8567 if test -z "$ac_err"; then
8569 eval "ac_cv_header_$ac_safe=yes"
8572 echo "configure: failed program was:" >&5
8573 cat conftest.$ac_ext >&5
8575 eval "ac_cv_header_$ac_safe=no"
8578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8579 echo "$ac_t""yes" 1>&6
8580 canna_includes_found=yes
8582 echo "$ac_t""no" 1>&6
8586 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
8587 -d "/usr/local/canna/include"; then
8588 save_c_switch_site="$c_switch_site"
8589 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8590 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8591 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8592 echo "configure:8593: checking for canna/jrkanji.h" >&5
8594 cat > conftest.$ac_ext <<EOF
8595 #line 8596 "configure"
8596 #include "confdefs.h"
8597 #include <canna/jrkanji.h>
8599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8600 { (eval echo configure:8601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8602 if test -z "$ac_err"; then
8604 eval "ac_cv_header_$ac_safe=yes"
8607 echo "configure: failed program was:" >&5
8608 cat conftest.$ac_ext >&5
8610 eval "ac_cv_header_$ac_safe=no"
8613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8614 echo "$ac_t""yes" 1>&6
8615 canna_includes_found=yes
8617 echo "$ac_t""no" 1>&6
8620 if test "$canna_includes_found" != "yes"; then
8621 c_switch_site="$save_c_switch_site"
8626 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8627 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8628 echo "configure:8629: checking for canna/RK.h" >&5
8630 cat > conftest.$ac_ext <<EOF
8631 #line 8632 "configure"
8632 #include "confdefs.h"
8633 #include <canna/RK.h>
8635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8636 { (eval echo configure:8637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8638 if test -z "$ac_err"; then
8640 eval "ac_cv_header_$ac_safe=yes"
8643 echo "configure: failed program was:" >&5
8644 cat conftest.$ac_ext >&5
8646 eval "ac_cv_header_$ac_safe=no"
8649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8650 echo "$ac_t""yes" 1>&6
8653 echo "$ac_t""no" 1>&6
8657 test -z "$with_canna" && {
8658 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8659 echo "configure:8660: checking for RkBgnBun in -lRKC" >&5
8660 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8662 xe_check_libs=" -lRKC "
8663 cat > conftest.$ac_ext <<EOF
8664 #line 8665 "configure"
8665 #include "confdefs.h"
8666 /* Override any gcc2 internal prototype to avoid an error. */
8667 /* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8675 if { (eval echo configure:8676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8677 eval "ac_cv_lib_$ac_lib_var=yes"
8679 echo "configure: failed program was:" >&5
8680 cat conftest.$ac_ext >&5
8682 eval "ac_cv_lib_$ac_lib_var=no"
8687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8688 echo "$ac_t""yes" 1>&6
8691 echo "$ac_t""no" 1>&6
8696 test -z "$with_canna" && {
8697 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8698 echo "configure:8699: checking for jrKanjiControl in -lcanna" >&5
8699 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8701 xe_check_libs=" -lcanna "
8702 cat > conftest.$ac_ext <<EOF
8703 #line 8704 "configure"
8704 #include "confdefs.h"
8705 /* Override any gcc2 internal prototype to avoid an error. */
8706 /* We use char because int might match the return type of a gcc2
8707 builtin and then its argument prototype would still apply. */
8708 char jrKanjiControl();
8714 if { (eval echo configure:8715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8716 eval "ac_cv_lib_$ac_lib_var=yes"
8718 echo "configure: failed program was:" >&5
8719 cat conftest.$ac_ext >&5
8721 eval "ac_cv_lib_$ac_lib_var=no"
8726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8727 echo "$ac_t""yes" 1>&6
8730 echo "$ac_t""no" 1>&6
8735 test -z "$with_canna" && with_canna=yes
8736 if test "$with_canna" = "yes"; then
8737 { test "$extra_verbose" = "yes" && cat << \EOF
8740 cat >> confdefs.h <<\EOF
8741 #define HAVE_CANNA 1
8745 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
8746 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
8747 echo " xemacs will be linked with \"mule-canna.o\""
8751 else for feature in xim canna wnn; do
8752 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
8753 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
8755 eval "with_${feature}=no"
8759 if test "$need_motif" = "yes" ; then
8760 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8762 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8763 echo "configure:8764: checking for layout_object_getvalue in -li18n" >&5
8764 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8766 xe_check_libs=" -li18n "
8767 cat > conftest.$ac_ext <<EOF
8768 #line 8769 "configure"
8769 #include "confdefs.h"
8770 /* Override any gcc2 internal prototype to avoid an error. */
8771 /* We use char because int might match the return type of a gcc2
8772 builtin and then its argument prototype would still apply. */
8773 char layout_object_getvalue();
8776 layout_object_getvalue()
8779 if { (eval echo configure:8780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8781 eval "ac_cv_lib_$ac_lib_var=yes"
8783 echo "configure: failed program was:" >&5
8784 cat conftest.$ac_ext >&5
8786 eval "ac_cv_lib_$ac_lib_var=no"
8791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8792 echo "$ac_t""yes" 1>&6
8793 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
8795 echo "$ac_t""no" 1>&6
8800 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
8801 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8802 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8804 runpath="" runpath_dirs=""
8805 if test -n "$LD_RUN_PATH"; then
8806 runpath="$LD_RUN_PATH"
8807 elif test "$GCC" = "yes"; then
8808 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
8809 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
8810 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
8811 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
8812 case "$arg" in P,* | -L* | -R* )
8813 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
8815 xe_runpath_dir="$dir"
8816 test "$xe_runpath_dir" != "/lib" -a \
8817 "$xe_runpath_dir" != "/usr/lib" -a \
8818 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8819 eval "$xe_add_unique_runpath_dir"
8824 ld_switch_run="$ld_switch_run_save"
8827 for arg in $ld_switch_site $ld_switch_x_site; do
8828 case "$arg" in -L*) {
8829 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
8830 test "$xe_runpath_dir" != "/lib" -a \
8831 "$xe_runpath_dir" != "/usr/lib" -a \
8832 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8833 eval "$xe_add_unique_runpath_dir"
8836 if test "$opsys $need_motif" = "sol2 yes"; then
8837 xe_runpath_dir="/opt/SUNWdt/lib";
8838 eval "$xe_add_unique_runpath_dir";
8841 if test -n "$runpath"; then
8842 ld_switch_run="${dash_r}${runpath}"
8844 if test "$GCC" = "yes"; then
8845 set x $ld_switch_run; shift; ld_switch_run=""
8846 while test -n "$1"; do
8848 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8849 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
8851 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
8856 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
8862 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf
8864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8865 echo "configure:8866: checking for $ac_func" >&5
8867 cat > conftest.$ac_ext <<EOF
8868 #line 8869 "configure"
8869 #include "confdefs.h"
8870 /* System header to define __stub macros and hopefully few prototypes,
8871 which can conflict with char $ac_func(); below. */
8873 /* Override any gcc2 internal prototype to avoid an error. */
8874 /* We use char because int might match the return type of a gcc2
8875 builtin and then its argument prototype would still apply. */
8880 /* The GNU C library defines this for functions which it implements
8881 to always fail with ENOSYS. Some functions are actually named
8882 something starting with __ and the normal name is an alias. */
8883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8891 if { (eval echo configure:8892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8893 eval "ac_cv_func_$ac_func=yes"
8895 echo "configure: failed program was:" >&5
8896 cat conftest.$ac_ext >&5
8898 eval "ac_cv_func_$ac_func=no"
8902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8903 echo "$ac_t""yes" 1>&6
8904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8905 { test "$extra_verbose" = "yes" && cat << EOF
8906 Defining $ac_tr_func
8908 cat >> confdefs.h <<EOF
8909 #define $ac_tr_func 1
8914 echo "$ac_t""no" 1>&6
8921 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8922 echo " xemacs will be linked with \"realpath.o\""
8925 case "$canonical" in
8926 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8927 echo " xemacs will be linked with \"realpath.o\""
8929 * ) for ac_func in realpath
8931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8932 echo "configure:8933: checking for $ac_func" >&5
8934 cat > conftest.$ac_ext <<EOF
8935 #line 8936 "configure"
8936 #include "confdefs.h"
8937 /* System header to define __stub macros and hopefully few prototypes,
8938 which can conflict with char $ac_func(); below. */
8940 /* Override any gcc2 internal prototype to avoid an error. */
8941 /* We use char because int might match the return type of a gcc2
8942 builtin and then its argument prototype would still apply. */
8947 /* The GNU C library defines this for functions which it implements
8948 to always fail with ENOSYS. Some functions are actually named
8949 something starting with __ and the normal name is an alias. */
8950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8958 if { (eval echo configure:8959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8960 eval "ac_cv_func_$ac_func=yes"
8962 echo "configure: failed program was:" >&5
8963 cat conftest.$ac_ext >&5
8965 eval "ac_cv_func_$ac_func=no"
8969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8970 echo "$ac_t""yes" 1>&6
8971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8972 { test "$extra_verbose" = "yes" && cat << EOF
8973 Defining $ac_tr_func
8975 cat >> confdefs.h <<EOF
8976 #define $ac_tr_func 1
8981 echo "$ac_t""no" 1>&6
8985 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8986 echo " xemacs will be linked with \"realpath.o\""
8991 for ac_func in getloadavg
8993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8994 echo "configure:8995: checking for $ac_func" >&5
8996 cat > conftest.$ac_ext <<EOF
8997 #line 8998 "configure"
8998 #include "confdefs.h"
8999 /* System header to define __stub macros and hopefully few prototypes,
9000 which can conflict with char $ac_func(); below. */
9002 /* Override any gcc2 internal prototype to avoid an error. */
9003 /* We use char because int might match the return type of a gcc2
9004 builtin and then its argument prototype would still apply. */
9009 /* The GNU C library defines this for functions which it implements
9010 to always fail with ENOSYS. Some functions are actually named
9011 something starting with __ and the normal name is an alias. */
9012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9020 if { (eval echo configure:9021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9022 eval "ac_cv_func_$ac_func=yes"
9024 echo "configure: failed program was:" >&5
9025 cat conftest.$ac_ext >&5
9027 eval "ac_cv_func_$ac_func=no"
9031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9032 echo "$ac_t""yes" 1>&6
9033 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9034 { test "$extra_verbose" = "yes" && cat << EOF
9035 Defining $ac_tr_func
9037 cat >> confdefs.h <<EOF
9038 #define $ac_tr_func 1
9043 echo "$ac_t""no" 1>&6
9048 if test "$ac_cv_func_getloadavg" != "yes"
9050 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
9051 echo " xemacs will be linked with \"getloadavg.o\""
9055 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
9056 echo "configure:9057: checking for kstat_open in -lkstat" >&5
9057 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
9059 xe_check_libs=" -lkstat "
9060 cat > conftest.$ac_ext <<EOF
9061 #line 9062 "configure"
9062 #include "confdefs.h"
9063 /* Override any gcc2 internal prototype to avoid an error. */
9064 /* We use char because int might match the return type of a gcc2
9065 builtin and then its argument prototype would still apply. */
9072 if { (eval echo configure:9073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9074 eval "ac_cv_lib_$ac_lib_var=yes"
9076 echo "configure: failed program was:" >&5
9077 cat conftest.$ac_ext >&5
9079 eval "ac_cv_lib_$ac_lib_var=no"
9084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9085 echo "$ac_t""yes" 1>&6
9086 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9087 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9088 { test "$extra_verbose" = "yes" && cat << EOF
9091 cat >> confdefs.h <<EOF
9092 #define $ac_tr_lib 1
9096 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
9099 echo "$ac_t""no" 1>&6
9105 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
9106 echo "configure:9107: checking for kvm_read in -lkvm" >&5
9107 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
9109 xe_check_libs=" -lkvm "
9110 cat > conftest.$ac_ext <<EOF
9111 #line 9112 "configure"
9112 #include "confdefs.h"
9113 /* Override any gcc2 internal prototype to avoid an error. */
9114 /* We use char because int might match the return type of a gcc2
9115 builtin and then its argument prototype would still apply. */
9122 if { (eval echo configure:9123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9124 eval "ac_cv_lib_$ac_lib_var=yes"
9126 echo "configure: failed program was:" >&5
9127 cat conftest.$ac_ext >&5
9129 eval "ac_cv_lib_$ac_lib_var=no"
9134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9135 echo "$ac_t""yes" 1>&6
9136 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9137 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9138 { test "$extra_verbose" = "yes" && cat << EOF
9141 cat >> confdefs.h <<EOF
9142 #define $ac_tr_lib 1
9146 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
9149 echo "$ac_t""no" 1>&6
9155 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9156 echo "configure:9157: checking whether netdb declares h_errno" >&5
9157 cat > conftest.$ac_ext <<EOF
9158 #line 9159 "configure"
9159 #include "confdefs.h"
9165 if { (eval echo configure:9166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9167 echo "$ac_t""yes" 1>&6
9168 { test "$extra_verbose" = "yes" && cat << \EOF
9169 Defining HAVE_H_ERRNO
9171 cat >> confdefs.h <<\EOF
9172 #define HAVE_H_ERRNO 1
9177 echo "configure: failed program was:" >&5
9178 cat conftest.$ac_ext >&5
9180 echo "$ac_t""no" 1>&6
9184 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9185 echo "configure:9186: checking for sigsetjmp" >&5
9186 cat > conftest.$ac_ext <<EOF
9187 #line 9188 "configure"
9188 #include "confdefs.h"
9191 sigjmp_buf bar; sigsetjmp (bar, 0);
9194 if { (eval echo configure:9195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9196 echo "$ac_t""yes" 1>&6
9197 { test "$extra_verbose" = "yes" && cat << \EOF
9198 Defining HAVE_SIGSETJMP
9200 cat >> confdefs.h <<\EOF
9201 #define HAVE_SIGSETJMP 1
9206 echo "configure: failed program was:" >&5
9207 cat conftest.$ac_ext >&5
9209 echo "$ac_t""no" 1>&6
9213 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9214 echo "configure:9215: checking whether localtime caches TZ" >&5
9216 if test "$ac_cv_func_tzset" = "yes"; then
9217 cat > conftest.$ac_ext <<EOF
9218 #line 9219 "configure"
9219 #include "confdefs.h"
9222 # include <stdlib.h>
9224 extern char **environ;
9228 for (to = from = environ; (*to = *from); from++)
9229 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
9232 char TZ_GMT0[] = "TZ=GMT0";
9233 char TZ_PST8[] = "TZ=PST8";
9236 time_t now = time ((time_t *) 0);
9237 int hour_GMT0, hour_unset;
9238 if (putenv (TZ_GMT0) != 0)
9240 hour_GMT0 = localtime (&now)->tm_hour;
9242 hour_unset = localtime (&now)->tm_hour;
9243 if (putenv (TZ_PST8) != 0)
9245 if (localtime (&now)->tm_hour == hour_GMT0)
9248 if (localtime (&now)->tm_hour != hour_unset)
9253 if { (eval echo configure:9254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9255 emacs_cv_localtime_cache=no
9258 echo "configure: failed program was:" >&5
9259 cat conftest.$ac_ext >&5
9261 emacs_cv_localtime_cache=yes
9265 # If we lack tzset, report that localtime does not cache TZ,
9266 # since we can't invalidate the cache if we don't have tzset.
9267 emacs_cv_localtime_cache=no
9269 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
9270 if test $emacs_cv_localtime_cache = yes; then
9271 { test "$extra_verbose" = "yes" && cat << \EOF
9272 Defining LOCALTIME_CACHE
9274 cat >> confdefs.h <<\EOF
9275 #define LOCALTIME_CACHE 1
9281 if test "$HAVE_TIMEVAL" = "yes"; then
9282 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9283 echo "configure:9284: checking whether gettimeofday accepts one or two arguments" >&5
9284 cat > conftest.$ac_ext <<EOF
9285 #line 9286 "configure"
9286 #include "confdefs.h"
9288 #ifdef TIME_WITH_SYS_TIME
9289 #include <sys/time.h>
9292 #ifdef HAVE_SYS_TIME_H
9293 #include <sys/time.h>
9301 struct timeval time;
9302 struct timezone dummy;
9303 gettimeofday (&time, &dummy);
9307 if { (eval echo configure:9308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9309 echo "$ac_t""two" 1>&6
9311 echo "configure: failed program was:" >&5
9312 cat conftest.$ac_ext >&5
9314 echo "$ac_t""one" 1>&6
9315 { test "$extra_verbose" = "yes" && cat << \EOF
9316 Defining GETTIMEOFDAY_ONE_ARGUMENT
9318 cat >> confdefs.h <<\EOF
9319 #define GETTIMEOFDAY_ONE_ARGUMENT 1
9328 echo $ac_n "checking for inline""... $ac_c" 1>&6
9329 echo "configure:9330: checking for inline" >&5
9332 for ac_kw in inline __inline__ __inline; do
9333 cat > conftest.$ac_ext <<EOF
9334 #line 9335 "configure"
9335 #include "confdefs.h"
9341 if { (eval echo configure:9342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9343 ac_cv_c_inline=$ac_kw; break
9345 echo "configure: failed program was:" >&5
9346 cat conftest.$ac_ext >&5
9352 echo "$ac_t""$ac_cv_c_inline" 1>&6
9353 case "$ac_cv_c_inline" in
9355 no) { test "$extra_verbose" = "yes" && cat << \EOF
9358 cat >> confdefs.h <<\EOF
9363 *) { test "$extra_verbose" = "yes" && cat << EOF
9364 Defining inline = $ac_cv_c_inline
9366 cat >> confdefs.h <<EOF
9367 #define inline $ac_cv_c_inline
9373 if test "$ac_cv_c_inline" != "no"; then
9374 { test "$extra_verbose" = "yes" && cat << \EOF
9375 Defining HAVE_INLINE
9377 cat >> confdefs.h <<\EOF
9378 #define HAVE_INLINE 1
9382 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
9383 echo " xemacs will be linked with \"inline.o\""
9388 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9389 # for constant arguments. Useless!
9390 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9391 echo "configure:9392: checking for working alloca.h" >&5
9393 cat > conftest.$ac_ext <<EOF
9394 #line 9395 "configure"
9395 #include "confdefs.h"
9398 char *p = alloca(2 * sizeof(int));
9401 if { (eval echo configure:9402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9403 ac_cv_header_alloca_h=yes
9405 echo "configure: failed program was:" >&5
9406 cat conftest.$ac_ext >&5
9408 ac_cv_header_alloca_h=no
9412 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
9413 if test $ac_cv_header_alloca_h = yes; then
9414 { test "$extra_verbose" = "yes" && cat << \EOF
9415 Defining HAVE_ALLOCA_H
9417 cat >> confdefs.h <<\EOF
9418 #define HAVE_ALLOCA_H 1
9424 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9425 echo "configure:9426: checking for alloca" >&5
9427 cat > conftest.$ac_ext <<EOF
9428 #line 9429 "configure"
9429 #include "confdefs.h"
9432 # define alloca __builtin_alloca
9435 # include <malloc.h>
9436 # define alloca _alloca
9439 # include <alloca.h>
9444 # ifndef alloca /* predefined by HP cc +Olibcalls */
9453 char *p = (char *) alloca(1);
9456 if { (eval echo configure:9457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9458 ac_cv_func_alloca_works=yes
9460 echo "configure: failed program was:" >&5
9461 cat conftest.$ac_ext >&5
9463 ac_cv_func_alloca_works=no
9467 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
9468 if test $ac_cv_func_alloca_works = yes; then
9469 { test "$extra_verbose" = "yes" && cat << \EOF
9470 Defining HAVE_ALLOCA
9472 cat >> confdefs.h <<\EOF
9473 #define HAVE_ALLOCA 1
9479 if test $ac_cv_func_alloca_works = no; then
9480 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9481 # that cause trouble. Some versions do not even contain alloca or
9482 # contain a buggy version. If you still want to use their alloca,
9483 # use ar to extract alloca.o from them instead of compiling alloca.c.
9484 ALLOCA=alloca.${ac_objext}
9485 { test "$extra_verbose" = "yes" && cat << \EOF
9488 cat >> confdefs.h <<\EOF
9494 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9495 echo "configure:9496: checking whether alloca needs Cray hooks" >&5
9497 cat > conftest.$ac_ext <<EOF
9498 #line 9499 "configure"
9499 #include "confdefs.h"
9500 #if defined(CRAY) && ! defined(CRAY2)
9507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9508 egrep "webecray" >/dev/null 2>&1; then
9518 echo "$ac_t""$ac_cv_os_cray" 1>&6
9519 if test $ac_cv_os_cray = yes; then
9520 for ac_func in _getb67 GETB67 getb67; do
9521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9522 echo "configure:9523: checking for $ac_func" >&5
9524 cat > conftest.$ac_ext <<EOF
9525 #line 9526 "configure"
9526 #include "confdefs.h"
9527 /* System header to define __stub macros and hopefully few prototypes,
9528 which can conflict with char $ac_func(); below. */
9530 /* Override any gcc2 internal prototype to avoid an error. */
9531 /* We use char because int might match the return type of a gcc2
9532 builtin and then its argument prototype would still apply. */
9537 /* The GNU C library defines this for functions which it implements
9538 to always fail with ENOSYS. Some functions are actually named
9539 something starting with __ and the normal name is an alias. */
9540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9548 if { (eval echo configure:9549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9550 eval "ac_cv_func_$ac_func=yes"
9552 echo "configure: failed program was:" >&5
9553 cat conftest.$ac_ext >&5
9555 eval "ac_cv_func_$ac_func=no"
9559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9560 echo "$ac_t""yes" 1>&6
9561 { test "$extra_verbose" = "yes" && cat << EOF
9562 Defining CRAY_STACKSEG_END = $ac_func
9564 cat >> confdefs.h <<EOF
9565 #define CRAY_STACKSEG_END $ac_func
9571 echo "$ac_t""no" 1>&6
9577 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9578 echo "configure:9579: checking stack direction for C alloca" >&5
9580 cat > conftest.$ac_ext <<EOF
9581 #line 9582 "configure"
9582 #include "confdefs.h"
9583 find_stack_direction ()
9585 static char *addr = 0;
9590 return find_stack_direction ();
9593 return (&dummy > addr) ? 1 : -1;
9597 exit (find_stack_direction() < 0);
9600 if { (eval echo configure:9601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9602 ac_cv_c_stack_direction=1
9605 echo "configure: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9608 ac_cv_c_stack_direction=-1
9612 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
9613 { test "$extra_verbose" = "yes" && cat << EOF
9614 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
9616 cat >> confdefs.h <<EOF
9617 #define STACK_DIRECTION $ac_cv_c_stack_direction
9623 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
9624 echo " xemacs will be linked with \"$ALLOCA\""
9627 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9628 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9629 echo "configure:9630: checking for vfork.h" >&5
9631 cat > conftest.$ac_ext <<EOF
9632 #line 9633 "configure"
9633 #include "confdefs.h"
9636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9637 { (eval echo configure:9638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9639 if test -z "$ac_err"; then
9641 eval "ac_cv_header_$ac_safe=yes"
9644 echo "configure: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9647 eval "ac_cv_header_$ac_safe=no"
9650 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9651 echo "$ac_t""yes" 1>&6
9652 { test "$extra_verbose" = "yes" && cat << \EOF
9653 Defining HAVE_VFORK_H
9655 cat >> confdefs.h <<\EOF
9656 #define HAVE_VFORK_H 1
9661 echo "$ac_t""no" 1>&6
9664 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9665 echo "configure:9666: checking for working vfork" >&5
9667 cat > conftest.$ac_ext <<EOF
9668 #line 9669 "configure"
9669 #include "confdefs.h"
9670 /* Thanks to Paul Eggert for this test. */
9672 #include <sys/types.h>
9673 #include <sys/stat.h>
9674 #ifdef HAVE_UNISTD_H
9680 /* On some sparc systems, changes by the child to local and incoming
9681 argument registers are propagated back to the parent.
9682 The compiler is told about this with #include <vfork.h>,
9683 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
9684 Test for this by using a static variable whose address
9685 is put into a register that is clobbered by the vfork. */
9688 sparc_address_test (int arg)
9690 sparc_address_test (arg) int arg;
9708 pid_t parent = getpid ();
9711 sparc_address_test ();
9716 /* Here is another test for sparc vfork register problems.
9717 This test uses lots of local variables, at least
9718 as many local variables as main has allocated so far
9719 including compiler temporaries. 4 locals are enough for
9720 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
9721 A buggy compiler should reuse the register of parent
9722 for one of the local variables, since it will think that
9723 parent can't possibly be used any more in this routine.
9724 Assigning to the local variable will thus munge parent
9725 in the parent process. */
9727 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9728 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9729 /* Convince the compiler that p..p7 are live; otherwise, it might
9730 use the same hardware register for all 8 local variables. */
9731 if (p != p1 || p != p2 || p != p3 || p != p4
9732 || p != p5 || p != p6 || p != p7)
9735 /* On some systems (e.g. IRIX 3.3),
9736 vfork doesn't separate parent from child file descriptors.
9737 If the child closes a descriptor before it execs or exits,
9738 this munges the parent's descriptor as well.
9739 Test for this by closing stdout in the child. */
9740 _exit(close(fileno(stdout)) != 0);
9745 while (wait(&status) != child)
9748 /* Was there some problem with vforking? */
9751 /* Did the child fail? (This shouldn't happen.) */
9754 /* Did the vfork/compiler bug occur? */
9755 || parent != getpid()
9757 /* Did the file descriptor bug occur? */
9758 || fstat(fileno(stdout), &st) != 0
9763 if { (eval echo configure:9764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9765 ac_cv_func_vfork_works=yes
9768 echo "configure: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9771 ac_cv_func_vfork_works=no
9775 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
9776 if test $ac_cv_func_vfork_works = no; then
9777 { test "$extra_verbose" = "yes" && cat << \EOF
9778 Defining vfork = fork
9780 cat >> confdefs.h <<\EOF
9788 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9789 echo "configure:9790: checking for working strcoll" >&5
9791 cat > conftest.$ac_ext <<EOF
9792 #line 9793 "configure"
9793 #include "confdefs.h"
9797 exit (strcoll ("abc", "def") >= 0 ||
9798 strcoll ("ABC", "DEF") >= 0 ||
9799 strcoll ("123", "456") >= 0);
9802 if { (eval echo configure:9803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9804 ac_cv_func_strcoll_works=yes
9807 echo "configure: failed program was:" >&5
9808 cat conftest.$ac_ext >&5
9810 ac_cv_func_strcoll_works=no
9814 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
9815 if test $ac_cv_func_strcoll_works = yes; then
9816 { test "$extra_verbose" = "yes" && cat << \EOF
9817 Defining HAVE_STRCOLL
9819 cat >> confdefs.h <<\EOF
9820 #define HAVE_STRCOLL 1
9827 for ac_func in getpgrp
9829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9830 echo "configure:9831: checking for $ac_func" >&5
9832 cat > conftest.$ac_ext <<EOF
9833 #line 9834 "configure"
9834 #include "confdefs.h"
9835 /* System header to define __stub macros and hopefully few prototypes,
9836 which can conflict with char $ac_func(); below. */
9838 /* Override any gcc2 internal prototype to avoid an error. */
9839 /* We use char because int might match the return type of a gcc2
9840 builtin and then its argument prototype would still apply. */
9845 /* The GNU C library defines this for functions which it implements
9846 to always fail with ENOSYS. Some functions are actually named
9847 something starting with __ and the normal name is an alias. */
9848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9856 if { (eval echo configure:9857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9858 eval "ac_cv_func_$ac_func=yes"
9860 echo "configure: failed program was:" >&5
9861 cat conftest.$ac_ext >&5
9863 eval "ac_cv_func_$ac_func=no"
9867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9868 echo "$ac_t""yes" 1>&6
9869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9870 { test "$extra_verbose" = "yes" && cat << EOF
9871 Defining $ac_tr_func
9873 cat >> confdefs.h <<EOF
9874 #define $ac_tr_func 1
9879 echo "$ac_t""no" 1>&6
9883 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9884 echo "configure:9885: checking whether getpgrp takes no argument" >&5
9886 cat > conftest.$ac_ext <<EOF
9887 #line 9888 "configure"
9888 #include "confdefs.h"
9891 * If this system has a BSD-style getpgrp(),
9892 * which takes a pid argument, exit unsuccessfully.
9894 * Snarfed from Chet Ramey's bash pgrp.c test program
9897 #include <sys/types.h>
9900 int pg1, pg2, pg3, pg4;
9901 int ng, np, s, child;
9912 * If all of these values are the same, it's pretty sure that
9913 * we're on a system that ignores getpgrp's first argument.
9915 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
9921 else if (child == 0) {
9924 * If this is Sys V, this will not work; pgrp will be
9925 * set to np because setpgrp just changes a pgrp to be
9926 * the same as the pid.
9929 ng = getpgrp(0); /* Same result for Sys V and BSD */
9942 if { (eval echo configure:9943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9944 ac_cv_func_getpgrp_void=yes
9947 echo "configure: failed program was:" >&5
9948 cat conftest.$ac_ext >&5
9950 ac_cv_func_getpgrp_void=no
9955 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
9956 if test $ac_cv_func_getpgrp_void = yes; then
9957 { test "$extra_verbose" = "yes" && cat << \EOF
9958 Defining GETPGRP_VOID
9960 cat >> confdefs.h <<\EOF
9961 #define GETPGRP_VOID 1
9968 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9969 echo "configure:9970: checking for working mmap" >&5
9970 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9971 cat > conftest.$ac_ext <<EOF
9972 #line 9973 "configure"
9973 #include "confdefs.h"
9977 #include <sys/mman.h>
9979 #ifndef MAP_VARIABLE
9980 #define MAP_VARIABLE 0
9984 #define MAP_FAILED -1
9987 int main (int argc, char *argv[])
9991 #ifndef MAP_ANONYMOUS
9992 fd = open ("/dev/zero", O_RDWR);
9995 #define MAP_ANONYMOUS 0
9997 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
9998 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
9999 fd, 0) != (void *) MAP_FAILED)
10001 perror ("conftest: mmap failed");
10005 if { (eval echo configure:10006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10010 echo "configure: failed program was:" >&5
10011 cat conftest.$ac_ext >&5
10015 rm -fr conftest* ;;
10017 echo "$ac_t""$have_mmap" 1>&6
10018 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10021 cat >> confdefs.h <<\EOF
10022 #define HAVE_MMAP 1
10027 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10028 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
10029 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10032 cat >> confdefs.h <<\EOF
10033 #define REL_ALLOC 1
10038 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10039 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10040 echo "configure:10041: checking for termios.h" >&5
10042 cat > conftest.$ac_ext <<EOF
10043 #line 10044 "configure"
10044 #include "confdefs.h"
10045 #include <termios.h>
10047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10048 { (eval echo configure:10049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10050 if test -z "$ac_err"; then
10052 eval "ac_cv_header_$ac_safe=yes"
10055 echo "configure: failed program was:" >&5
10056 cat conftest.$ac_ext >&5
10058 eval "ac_cv_header_$ac_safe=no"
10061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10062 echo "$ac_t""yes" 1>&6
10063 { test "$extra_verbose" = "yes" && cat << \EOF
10064 Defining HAVE_TERMIOS
10066 cat >> confdefs.h <<\EOF
10067 #define HAVE_TERMIOS 1
10071 { test "$extra_verbose" = "yes" && cat << \EOF
10072 Defining SIGNALS_VIA_CHARACTERS
10074 cat >> confdefs.h <<\EOF
10075 #define SIGNALS_VIA_CHARACTERS 1
10079 { test "$extra_verbose" = "yes" && cat << \EOF
10082 cat >> confdefs.h <<\EOF
10083 #define NO_TERMIO 1
10088 echo "$ac_t""no" 1>&6
10089 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10090 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10091 echo "configure:10092: checking for termio.h" >&5
10093 cat > conftest.$ac_ext <<EOF
10094 #line 10095 "configure"
10095 #include "confdefs.h"
10096 #include <termio.h>
10098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10099 { (eval echo configure:10100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10101 if test -z "$ac_err"; then
10103 eval "ac_cv_header_$ac_safe=yes"
10106 echo "configure: failed program was:" >&5
10107 cat conftest.$ac_ext >&5
10109 eval "ac_cv_header_$ac_safe=no"
10112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10113 echo "$ac_t""yes" 1>&6
10114 { test "$extra_verbose" = "yes" && cat << \EOF
10115 Defining HAVE_TERMIO
10117 cat >> confdefs.h <<\EOF
10118 #define HAVE_TERMIO 1
10123 echo "$ac_t""no" 1>&6
10130 echo $ac_n "checking for socket""... $ac_c" 1>&6
10131 echo "configure:10132: checking for socket" >&5
10133 cat > conftest.$ac_ext <<EOF
10134 #line 10135 "configure"
10135 #include "confdefs.h"
10136 /* System header to define __stub macros and hopefully few prototypes,
10137 which can conflict with char socket(); below. */
10138 #include <assert.h>
10139 /* Override any gcc2 internal prototype to avoid an error. */
10140 /* We use char because int might match the return type of a gcc2
10141 builtin and then its argument prototype would still apply. */
10146 /* The GNU C library defines this for functions which it implements
10147 to always fail with ENOSYS. Some functions are actually named
10148 something starting with __ and the normal name is an alias. */
10149 #if defined (__stub_socket) || defined (__stub___socket)
10157 if { (eval echo configure:10158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10159 eval "ac_cv_func_socket=yes"
10161 echo "configure: failed program was:" >&5
10162 cat conftest.$ac_ext >&5
10164 eval "ac_cv_func_socket=no"
10168 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10169 echo "$ac_t""yes" 1>&6
10170 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10171 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10172 echo "configure:10173: checking for netinet/in.h" >&5
10174 cat > conftest.$ac_ext <<EOF
10175 #line 10176 "configure"
10176 #include "confdefs.h"
10177 #include <netinet/in.h>
10179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10180 { (eval echo configure:10181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10182 if test -z "$ac_err"; then
10184 eval "ac_cv_header_$ac_safe=yes"
10187 echo "configure: failed program was:" >&5
10188 cat conftest.$ac_ext >&5
10190 eval "ac_cv_header_$ac_safe=no"
10193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10194 echo "$ac_t""yes" 1>&6
10195 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10196 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10197 echo "configure:10198: checking for arpa/inet.h" >&5
10199 cat > conftest.$ac_ext <<EOF
10200 #line 10201 "configure"
10201 #include "confdefs.h"
10202 #include <arpa/inet.h>
10204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10205 { (eval echo configure:10206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10207 if test -z "$ac_err"; then
10209 eval "ac_cv_header_$ac_safe=yes"
10212 echo "configure: failed program was:" >&5
10213 cat conftest.$ac_ext >&5
10215 eval "ac_cv_header_$ac_safe=no"
10218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10219 echo "$ac_t""yes" 1>&6
10221 { test "$extra_verbose" = "yes" && cat << \EOF
10222 Defining HAVE_SOCKETS
10224 cat >> confdefs.h <<\EOF
10225 #define HAVE_SOCKETS 1
10229 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10230 echo "configure:10231: checking "for sun_len member in struct sockaddr_un"" >&5
10231 cat > conftest.$ac_ext <<EOF
10232 #line 10233 "configure"
10233 #include "confdefs.h"
10235 #include <sys/types.h>
10236 #include <sys/socket.h>
10237 #include <sys/un.h>
10240 static struct sockaddr_un x; x.sun_len = 1;
10243 if { (eval echo configure:10244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10245 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10246 Defining HAVE_SOCKADDR_SUN_LEN
10248 cat >> confdefs.h <<\EOF
10249 #define HAVE_SOCKADDR_SUN_LEN 1
10254 echo "configure: failed program was:" >&5
10255 cat conftest.$ac_ext >&5
10257 echo "$ac_t""no" 1>&6
10260 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10261 echo "configure:10262: checking "for ip_mreq struct in netinet/in.h"" >&5
10262 cat > conftest.$ac_ext <<EOF
10263 #line 10264 "configure"
10264 #include "confdefs.h"
10266 #include <sys/types.h>
10267 #include <netinet/in.h>
10270 static struct ip_mreq x;
10273 if { (eval echo configure:10274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10275 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10276 Defining HAVE_MULTICAST
10278 cat >> confdefs.h <<\EOF
10279 #define HAVE_MULTICAST 1
10284 echo "configure: failed program was:" >&5
10285 cat conftest.$ac_ext >&5
10287 echo "$ac_t""no" 1>&6
10291 echo "$ac_t""no" 1>&6
10295 echo "$ac_t""no" 1>&6
10299 echo "$ac_t""no" 1>&6
10303 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10304 echo "configure:10305: checking for msgget" >&5
10306 cat > conftest.$ac_ext <<EOF
10307 #line 10308 "configure"
10308 #include "confdefs.h"
10309 /* System header to define __stub macros and hopefully few prototypes,
10310 which can conflict with char msgget(); below. */
10311 #include <assert.h>
10312 /* Override any gcc2 internal prototype to avoid an error. */
10313 /* We use char because int might match the return type of a gcc2
10314 builtin and then its argument prototype would still apply. */
10319 /* The GNU C library defines this for functions which it implements
10320 to always fail with ENOSYS. Some functions are actually named
10321 something starting with __ and the normal name is an alias. */
10322 #if defined (__stub_msgget) || defined (__stub___msgget)
10330 if { (eval echo configure:10331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10332 eval "ac_cv_func_msgget=yes"
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10337 eval "ac_cv_func_msgget=no"
10341 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10342 echo "$ac_t""yes" 1>&6
10343 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10344 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10345 echo "configure:10346: checking for sys/ipc.h" >&5
10347 cat > conftest.$ac_ext <<EOF
10348 #line 10349 "configure"
10349 #include "confdefs.h"
10350 #include <sys/ipc.h>
10352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10353 { (eval echo configure:10354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10355 if test -z "$ac_err"; then
10357 eval "ac_cv_header_$ac_safe=yes"
10360 echo "configure: failed program was:" >&5
10361 cat conftest.$ac_ext >&5
10363 eval "ac_cv_header_$ac_safe=no"
10366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10367 echo "$ac_t""yes" 1>&6
10368 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10369 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10370 echo "configure:10371: checking for sys/msg.h" >&5
10372 cat > conftest.$ac_ext <<EOF
10373 #line 10374 "configure"
10374 #include "confdefs.h"
10375 #include <sys/msg.h>
10377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10378 { (eval echo configure:10379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10380 if test -z "$ac_err"; then
10382 eval "ac_cv_header_$ac_safe=yes"
10385 echo "configure: failed program was:" >&5
10386 cat conftest.$ac_ext >&5
10388 eval "ac_cv_header_$ac_safe=no"
10391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10392 echo "$ac_t""yes" 1>&6
10393 { test "$extra_verbose" = "yes" && cat << \EOF
10394 Defining HAVE_SYSVIPC
10396 cat >> confdefs.h <<\EOF
10397 #define HAVE_SYSVIPC 1
10402 echo "$ac_t""no" 1>&6
10406 echo "$ac_t""no" 1>&6
10410 echo "$ac_t""no" 1>&6
10414 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10415 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10416 echo "configure:10417: checking for dirent.h" >&5
10418 cat > conftest.$ac_ext <<EOF
10419 #line 10420 "configure"
10420 #include "confdefs.h"
10421 #include <dirent.h>
10423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10424 { (eval echo configure:10425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10426 if test -z "$ac_err"; then
10428 eval "ac_cv_header_$ac_safe=yes"
10431 echo "configure: failed program was:" >&5
10432 cat conftest.$ac_ext >&5
10434 eval "ac_cv_header_$ac_safe=no"
10437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10438 echo "$ac_t""yes" 1>&6
10439 { test "$extra_verbose" = "yes" && cat << \EOF
10440 Defining SYSV_SYSTEM_DIR
10442 cat >> confdefs.h <<\EOF
10443 #define SYSV_SYSTEM_DIR 1
10448 echo "$ac_t""no" 1>&6
10449 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10450 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10451 echo "configure:10452: checking for sys/dir.h" >&5
10453 cat > conftest.$ac_ext <<EOF
10454 #line 10455 "configure"
10455 #include "confdefs.h"
10456 #include <sys/dir.h>
10458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10459 { (eval echo configure:10460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10461 if test -z "$ac_err"; then
10463 eval "ac_cv_header_$ac_safe=yes"
10466 echo "configure: failed program was:" >&5
10467 cat conftest.$ac_ext >&5
10469 eval "ac_cv_header_$ac_safe=no"
10472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10473 echo "$ac_t""yes" 1>&6
10476 echo "$ac_t""no" 1>&6
10477 { test "$extra_verbose" = "yes" && cat << \EOF
10478 Defining NONSYSTEM_DIR_LIBRARY
10480 cat >> confdefs.h <<\EOF
10481 #define NONSYSTEM_DIR_LIBRARY 1
10490 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10491 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10492 echo "configure:10493: checking for nlist.h" >&5
10494 cat > conftest.$ac_ext <<EOF
10495 #line 10496 "configure"
10496 #include "confdefs.h"
10499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10500 { (eval echo configure:10501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10502 if test -z "$ac_err"; then
10504 eval "ac_cv_header_$ac_safe=yes"
10507 echo "configure: failed program was:" >&5
10508 cat conftest.$ac_ext >&5
10510 eval "ac_cv_header_$ac_safe=no"
10513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10514 echo "$ac_t""yes" 1>&6
10515 { test "$extra_verbose" = "yes" && cat << \EOF
10516 Defining NLIST_STRUCT
10518 cat >> confdefs.h <<\EOF
10519 #define NLIST_STRUCT 1
10524 echo "$ac_t""no" 1>&6
10529 echo "checking "for sound support"" 1>&6
10530 echo "configure:10531: checking "for sound support"" >&5
10531 case "$with_sound" in
10532 native | both ) with_native_sound=yes;;
10533 nas | no ) with_native_sound=no;;
10535 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10537 if test "$with_native_sound" != "no"; then
10538 if test -n "$native_sound_lib"; then
10539 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10540 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10541 echo "configure:10542: checking for multimedia/audio_device.h" >&5
10543 cat > conftest.$ac_ext <<EOF
10544 #line 10545 "configure"
10545 #include "confdefs.h"
10546 #include <multimedia/audio_device.h>
10548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10549 { (eval echo configure:10550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10551 if test -z "$ac_err"; then
10553 eval "ac_cv_header_$ac_safe=yes"
10556 echo "configure: failed program was:" >&5
10557 cat conftest.$ac_ext >&5
10559 eval "ac_cv_header_$ac_safe=no"
10562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10563 echo "$ac_t""yes" 1>&6
10564 sound_found=yes sound_cflags=""
10565 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10566 echo " xemacs will be linked with \"sunplay.o\""
10569 echo "$ac_t""no" 1>&6
10574 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
10576 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10577 echo " xemacs will be linked with \"sunplay.o\""
10579 if test -d "/usr/demo/SOUND/include"
10580 then sound_cflags="-I/usr/demo/SOUND/include"
10581 else sound_cflags="-I/usr/demo/SOUND"
10583 if test -z "$native_sound_lib" ; then
10584 if test -r "/usr/demo/SOUND/lib/libaudio.a"
10585 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
10586 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
10591 if test -z "$sound_found"; then
10592 case "$canonical" in
10594 if test -z "$native_sound_lib"; then
10596 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10597 echo "configure:10598: checking for ALopenport in -laudio" >&5
10598 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10600 xe_check_libs=" -laudio "
10601 cat > conftest.$ac_ext <<EOF
10602 #line 10603 "configure"
10603 #include "confdefs.h"
10604 /* Override any gcc2 internal prototype to avoid an error. */
10605 /* We use char because int might match the return type of a gcc2
10606 builtin and then its argument prototype would still apply. */
10613 if { (eval echo configure:10614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10615 eval "ac_cv_lib_$ac_lib_var=yes"
10617 echo "configure: failed program was:" >&5
10618 cat conftest.$ac_ext >&5
10620 eval "ac_cv_lib_$ac_lib_var=no"
10625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10626 echo "$ac_t""yes" 1>&6
10627 native_sound_lib="-laudio"
10629 echo "$ac_t""no" 1>&6
10634 if test -n "$native_sound_lib"; then
10635 sound_found=yes sound_cflags=""
10636 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
10637 echo " xemacs will be linked with \"sgiplay.o\""
10641 if test -z "$native_sound_lib"; then
10643 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10644 echo "configure:10645: checking for AOpenAudio in -lAlib" >&5
10645 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10647 xe_check_libs=" -lAlib "
10648 cat > conftest.$ac_ext <<EOF
10649 #line 10650 "configure"
10650 #include "confdefs.h"
10651 /* Override any gcc2 internal prototype to avoid an error. */
10652 /* We use char because int might match the return type of a gcc2
10653 builtin and then its argument prototype would still apply. */
10660 if { (eval echo configure:10661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10662 eval "ac_cv_lib_$ac_lib_var=yes"
10664 echo "configure: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10667 eval "ac_cv_lib_$ac_lib_var=no"
10672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10673 echo "$ac_t""yes" 1>&6
10674 native_sound_lib="-lAlib"
10676 echo "$ac_t""no" 1>&6
10681 if test -n "$native_sound_lib"; then
10683 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
10684 echo " xemacs will be linked with \"hpplay.o\""
10686 if test "$GCC" = "yes" # Kludge city
10687 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
10688 else sound_cflags="+e -I/usr/audio/examples"
10694 if test -z "$sound_found"; then
10695 for dir in "machine" "sys" "linux"; do
10696 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10697 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10698 echo "configure:10699: checking for ${dir}/soundcard.h" >&5
10700 cat > conftest.$ac_ext <<EOF
10701 #line 10702 "configure"
10702 #include "confdefs.h"
10703 #include <${dir}/soundcard.h>
10705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10706 { (eval echo configure:10707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10708 if test -z "$ac_err"; then
10710 eval "ac_cv_header_$ac_safe=yes"
10713 echo "configure: failed program was:" >&5
10714 cat conftest.$ac_ext >&5
10716 eval "ac_cv_header_$ac_safe=no"
10719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10720 echo "$ac_t""yes" 1>&6
10722 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
10723 echo " xemacs will be linked with \"linuxplay.o\""
10725 { test "$extra_verbose" = "yes" && cat << EOF
10726 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
10728 cat >> confdefs.h <<EOF
10729 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
10735 echo "$ac_t""no" 1>&6
10741 test "$sound_found" = "yes" && with_native_sound=yes
10744 if test -z "$with_sound"; then
10745 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
10750 if test "$with_native_sound" = "yes"; then
10751 { test "$extra_verbose" = "yes" && cat << \EOF
10752 Defining HAVE_NATIVE_SOUND
10754 cat >> confdefs.h <<\EOF
10755 #define HAVE_NATIVE_SOUND 1
10759 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
10762 case "$with_sound" in both | nas )
10763 { test "$extra_verbose" = "yes" && cat << \EOF
10764 Defining HAVE_NAS_SOUND
10766 cat >> confdefs.h <<\EOF
10767 #define HAVE_NAS_SOUND 1
10771 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10772 echo " xemacs will be linked with \"nas.o\""
10774 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10775 cat > conftest.$ac_ext <<EOF
10776 #line 10777 "configure"
10777 #include "confdefs.h"
10778 #include <audio/Xtutil.h>
10780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10781 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10785 { test "$extra_verbose" = "yes" && cat << \EOF
10786 Defining NAS_NO_ERROR_JUMP
10788 cat >> confdefs.h <<\EOF
10789 #define NAS_NO_ERROR_JUMP 1
10799 test -z "$with_tty" && with_tty=yes
10801 if test "$with_tty" = "yes" ; then
10802 echo "checking for TTY-related features" 1>&6
10803 echo "configure:10804: checking for TTY-related features" >&5
10804 { test "$extra_verbose" = "yes" && cat << \EOF
10807 cat >> confdefs.h <<\EOF
10812 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
10813 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\""
10816 if test -z "$with_ncurses"; then
10818 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10819 echo "configure:10820: checking for tgetent in -lncurses" >&5
10820 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10822 xe_check_libs=" -lncurses "
10823 cat > conftest.$ac_ext <<EOF
10824 #line 10825 "configure"
10825 #include "confdefs.h"
10826 /* Override any gcc2 internal prototype to avoid an error. */
10827 /* We use char because int might match the return type of a gcc2
10828 builtin and then its argument prototype would still apply. */
10835 if { (eval echo configure:10836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10837 eval "ac_cv_lib_$ac_lib_var=yes"
10839 echo "configure: failed program was:" >&5
10840 cat conftest.$ac_ext >&5
10842 eval "ac_cv_lib_$ac_lib_var=no"
10847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10848 echo "$ac_t""yes" 1>&6
10851 echo "$ac_t""no" 1>&6
10857 if test "$with_ncurses" = "yes"; then
10858 { test "$extra_verbose" = "yes" && cat << \EOF
10859 Defining HAVE_NCURSES
10861 cat >> confdefs.h <<\EOF
10862 #define HAVE_NCURSES 1
10866 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10867 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10868 echo "configure:10869: checking for ncurses/curses.h" >&5
10870 cat > conftest.$ac_ext <<EOF
10871 #line 10872 "configure"
10872 #include "confdefs.h"
10873 #include <ncurses/curses.h>
10875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10876 { (eval echo configure:10877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10878 if test -z "$ac_err"; then
10880 eval "ac_cv_header_$ac_safe=yes"
10883 echo "configure: failed program was:" >&5
10884 cat conftest.$ac_ext >&5
10886 eval "ac_cv_header_$ac_safe=no"
10889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10890 echo "$ac_t""yes" 1>&6
10891 curses_h_path=ncurses/curses.h
10893 echo "$ac_t""no" 1>&6
10896 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10897 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10898 echo "configure:10899: checking for ncurses/term.h" >&5
10900 cat > conftest.$ac_ext <<EOF
10901 #line 10902 "configure"
10902 #include "confdefs.h"
10903 #include <ncurses/term.h>
10905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10906 { (eval echo configure:10907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10908 if test -z "$ac_err"; then
10910 eval "ac_cv_header_$ac_safe=yes"
10913 echo "configure: failed program was:" >&5
10914 cat conftest.$ac_ext >&5
10916 eval "ac_cv_header_$ac_safe=no"
10919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10920 echo "$ac_t""yes" 1>&6
10921 term_h_path=ncurses/term.h
10923 echo "$ac_t""no" 1>&6
10926 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
10927 echo " xemacs will be linked with \"terminfo.o\""
10929 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
10931 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
10932 save_c_switch_site="$c_switch_site"
10933 c_switch_site="$c_switch_site -I/usr/include/ncurses"
10934 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10935 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10936 echo "configure:10937: checking for ncurses/curses.h" >&5
10938 cat > conftest.$ac_ext <<EOF
10939 #line 10940 "configure"
10940 #include "confdefs.h"
10941 #include <ncurses/curses.h>
10943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10944 { (eval echo configure:10945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10946 if test -z "$ac_err"; then
10948 eval "ac_cv_header_$ac_safe=yes"
10951 echo "configure: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10954 eval "ac_cv_header_$ac_safe=no"
10957 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10958 echo "$ac_t""yes" 1>&6
10959 curses_h_path=ncurses/curses.h
10961 echo "$ac_t""no" 1>&6
10964 if test "$ac_cv_header_ncurses_curses_h" = "yes"
10965 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
10966 else c_switch_site="$save_c_switch_site"
10969 else if test "$have_terminfo" = "yes"; then
10970 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
10971 echo " xemacs will be linked with \"terminfo.o\""
10973 if test -n "$libs_termcap"; then
10974 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10976 for lib in curses termlib termcap; do
10978 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
10979 echo "configure:10980: checking for tgetent in -l$lib" >&5
10980 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
10982 xe_check_libs=" -l$lib "
10983 cat > conftest.$ac_ext <<EOF
10984 #line 10985 "configure"
10985 #include "confdefs.h"
10986 /* Override any gcc2 internal prototype to avoid an error. */
10987 /* We use char because int might match the return type of a gcc2
10988 builtin and then its argument prototype would still apply. */
10995 if { (eval echo configure:10996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10997 eval "ac_cv_lib_$ac_lib_var=yes"
10999 echo "configure: failed program was:" >&5
11000 cat conftest.$ac_ext >&5
11002 eval "ac_cv_lib_$ac_lib_var=no"
11007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11008 echo "$ac_t""yes" 1>&6
11009 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
11011 echo "$ac_t""no" 1>&6
11017 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
11018 echo " xemacs will be linked with \"tparam.o\""
11020 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
11021 if test -n "$libs_termcap"; then
11022 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11025 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11026 echo "configure:11027: checking for tgetent in -lcurses" >&5
11027 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11029 xe_check_libs=" -lcurses "
11030 cat > conftest.$ac_ext <<EOF
11031 #line 11032 "configure"
11032 #include "confdefs.h"
11033 /* Override any gcc2 internal prototype to avoid an error. */
11034 /* We use char because int might match the return type of a gcc2
11035 builtin and then its argument prototype would still apply. */
11042 if { (eval echo configure:11043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11044 eval "ac_cv_lib_$ac_lib_var=yes"
11046 echo "configure: failed program was:" >&5
11047 cat conftest.$ac_ext >&5
11049 eval "ac_cv_lib_$ac_lib_var=no"
11054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11055 echo "$ac_t""yes" 1>&6
11056 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11058 echo "$ac_t""no" 1>&6
11059 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11060 echo "configure:11061: checking for tgetent in -ltermcap" >&5
11061 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11063 xe_check_libs=" -ltermcap "
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. */
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
11090 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
11092 echo "$ac_t""no" 1>&6
11093 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
11094 echo " xemacs will be linked with \"termcap.o\""
11105 { test "$extra_verbose" = "yes" && cat << EOF
11106 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
11108 cat >> confdefs.h <<EOF
11109 #define CURSES_H_PATH "${curses_h_path-curses.h}"
11113 { test "$extra_verbose" = "yes" && cat << EOF
11114 Defining TERM_H_PATH = "${term_h_path-term.h}"
11116 cat >> confdefs.h <<EOF
11117 #define TERM_H_PATH "${term_h_path-term.h}"
11122 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11123 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11124 echo "configure:11125: checking for gpm.h" >&5
11126 cat > conftest.$ac_ext <<EOF
11127 #line 11128 "configure"
11128 #include "confdefs.h"
11131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11132 { (eval echo configure:11133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11134 if test -z "$ac_err"; then
11136 eval "ac_cv_header_$ac_safe=yes"
11139 echo "configure: failed program was:" >&5
11140 cat conftest.$ac_ext >&5
11142 eval "ac_cv_header_$ac_safe=no"
11145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11146 echo "$ac_t""yes" 1>&6
11149 echo "$ac_t""no" 1>&6
11153 test -z "$with_gpm" && {
11154 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11155 echo "configure:11156: checking for Gpm_Open in -lgpm" >&5
11156 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11158 xe_check_libs=" -lgpm "
11159 cat > conftest.$ac_ext <<EOF
11160 #line 11161 "configure"
11161 #include "confdefs.h"
11162 /* Override any gcc2 internal prototype to avoid an error. */
11163 /* We use char because int might match the return type of a gcc2
11164 builtin and then its argument prototype would still apply. */
11171 if { (eval echo configure:11172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11173 eval "ac_cv_lib_$ac_lib_var=yes"
11175 echo "configure: failed program was:" >&5
11176 cat conftest.$ac_ext >&5
11178 eval "ac_cv_lib_$ac_lib_var=no"
11183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11184 echo "$ac_t""yes" 1>&6
11187 echo "$ac_t""no" 1>&6
11192 if test "$with_gpm" = "yes"; then
11193 { test "$extra_verbose" = "yes" && cat << \EOF
11196 cat >> confdefs.h <<\EOF
11201 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
11202 echo " xemacs will be linked with \"gpmevent.o\""
11204 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
11207 else for feature in ncurses gpm; do
11208 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11209 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
11211 eval "with_${feature}=no"
11214 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
11215 echo " xemacs will be linked with \"event-unixoid.o\""
11219 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11220 != "no no no" && echo "checking for database support" 1>&6
11221 echo "configure:11222: checking for database support" >&5
11223 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
11224 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11225 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11226 echo "configure:11227: checking for ndbm.h" >&5
11228 cat > conftest.$ac_ext <<EOF
11229 #line 11230 "configure"
11230 #include "confdefs.h"
11233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11234 { (eval echo configure:11235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11236 if test -z "$ac_err"; then
11238 eval "ac_cv_header_$ac_safe=yes"
11241 echo "configure: failed program was:" >&5
11242 cat conftest.$ac_ext >&5
11244 eval "ac_cv_header_$ac_safe=no"
11247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11248 echo "$ac_t""yes" 1>&6
11251 echo "$ac_t""no" 1>&6
11253 test "$with_database_gnudbm" = "yes" -o \
11254 "$with_database_dbm" = "yes" && \
11255 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11256 with_database_gnudbm=no with_database_dbm=no
11261 if test "$with_database_gnudbm" != "no"; then
11263 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11264 echo "configure:11265: checking for dbm_open in -lgdbm" >&5
11265 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11267 xe_check_libs=" -lgdbm "
11268 cat > conftest.$ac_ext <<EOF
11269 #line 11270 "configure"
11270 #include "confdefs.h"
11271 /* Override any gcc2 internal prototype to avoid an error. */
11272 /* We use char because int might match the return type of a gcc2
11273 builtin and then its argument prototype would still apply. */
11280 if { (eval echo configure:11281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11282 eval "ac_cv_lib_$ac_lib_var=yes"
11284 echo "configure: failed program was:" >&5
11285 cat conftest.$ac_ext >&5
11287 eval "ac_cv_lib_$ac_lib_var=no"
11292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11293 echo "$ac_t""yes" 1>&6
11294 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm
11296 echo "$ac_t""no" 1>&6
11297 if test "$with_database_gnudbm" = "yes"; then
11298 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
11300 with_database_gnudbm=no
11306 if test "$with_database_dbm" != "no"; then
11307 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11308 echo "configure:11309: checking for dbm_open" >&5
11310 cat > conftest.$ac_ext <<EOF
11311 #line 11312 "configure"
11312 #include "confdefs.h"
11313 /* System header to define __stub macros and hopefully few prototypes,
11314 which can conflict with char dbm_open(); below. */
11315 #include <assert.h>
11316 /* Override any gcc2 internal prototype to avoid an error. */
11317 /* We use char because int might match the return type of a gcc2
11318 builtin and then its argument prototype would still apply. */
11323 /* The GNU C library defines this for functions which it implements
11324 to always fail with ENOSYS. Some functions are actually named
11325 something starting with __ and the normal name is an alias. */
11326 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11334 if { (eval echo configure:11335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11336 eval "ac_cv_func_dbm_open=yes"
11338 echo "configure: failed program was:" >&5
11339 cat conftest.$ac_ext >&5
11341 eval "ac_cv_func_dbm_open=no"
11345 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11346 echo "$ac_t""yes" 1>&6
11347 with_database_dbm=yes libdbm=
11349 echo "$ac_t""no" 1>&6
11352 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11353 echo "configure:11354: checking for dbm_open in -ldbm" >&5
11354 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11356 xe_check_libs=" -ldbm "
11357 cat > conftest.$ac_ext <<EOF
11358 #line 11359 "configure"
11359 #include "confdefs.h"
11360 /* Override any gcc2 internal prototype to avoid an error. */
11361 /* We use char because int might match the return type of a gcc2
11362 builtin and then its argument prototype would still apply. */
11369 if { (eval echo configure:11370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11371 eval "ac_cv_lib_$ac_lib_var=yes"
11373 echo "configure: failed program was:" >&5
11374 cat conftest.$ac_ext >&5
11376 eval "ac_cv_lib_$ac_lib_var=no"
11381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11382 echo "$ac_t""yes" 1>&6
11383 with_database_dbm=yes libdbm=-ldbm
11385 echo "$ac_t""no" 1>&6
11386 test "$with_database_dbm" = "yes" && \
11387 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11388 with_database_dbm=no
11396 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
11397 test "$with_database_gnudbm" = "yes" -o \
11398 "$with_database_dbm" = "yes" && \
11399 { test "$extra_verbose" = "yes" && cat << \EOF
11402 cat >> confdefs.h <<\EOF
11408 if test "$with_database_berkdb" != "no"; then
11409 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11410 echo "configure:11411: checking for Berkeley db.h" >&5
11411 for path in "db/db.h" "db.h"; do
11412 cat > conftest.$ac_ext <<EOF
11413 #line 11414 "configure"
11414 #include "confdefs.h"
11415 #ifdef HAVE_INTTYPES_H
11416 #define __BIT_TYPES_DEFINED__
11417 #include <inttypes.h>
11418 typedef uint8_t u_int8_t;
11419 typedef uint16_t u_int16_t;
11420 typedef uint32_t u_int32_t;
11421 #ifdef WE_DONT_NEED_QUADS
11422 typedef uint64_t u_int64_t;
11431 if { (eval echo configure:11432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11433 db_h_path="$path"; break
11435 echo "configure: failed program was:" >&5
11436 cat conftest.$ac_ext >&5
11440 if test -z "$db_h_path"
11441 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
11442 else echo "$ac_t""$db_h_path" 1>&6
11445 if test "$with_database_berkdb" != "no"; then
11446 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11447 echo "configure:11448: checking for Berkeley DB version" >&5
11448 cat > conftest.$ac_ext <<EOF
11449 #line 11450 "configure"
11450 #include "confdefs.h"
11451 #include <$db_h_path>
11452 #if DB_VERSION_MAJOR > 1
11457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11458 egrep "yes" >/dev/null 2>&1; then
11460 echo "$ac_t""2" 1>&6; dbfunc=db_open
11463 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11467 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11468 echo "configure:11469: checking for $dbfunc" >&5
11470 cat > conftest.$ac_ext <<EOF
11471 #line 11472 "configure"
11472 #include "confdefs.h"
11473 /* System header to define __stub macros and hopefully few prototypes,
11474 which can conflict with char $dbfunc(); below. */
11475 #include <assert.h>
11476 /* Override any gcc2 internal prototype to avoid an error. */
11477 /* We use char because int might match the return type of a gcc2
11478 builtin and then its argument prototype would still apply. */
11483 /* The GNU C library defines this for functions which it implements
11484 to always fail with ENOSYS. Some functions are actually named
11485 something starting with __ and the normal name is an alias. */
11486 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
11494 if { (eval echo configure:11495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11496 eval "ac_cv_func_$dbfunc=yes"
11498 echo "configure: failed program was:" >&5
11499 cat conftest.$ac_ext >&5
11501 eval "ac_cv_func_$dbfunc=no"
11505 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
11506 echo "$ac_t""yes" 1>&6
11507 with_database_berkdb=yes need_libdb=no
11509 echo "$ac_t""no" 1>&6
11512 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11513 echo "configure:11514: checking for $dbfunc in -ldb" >&5
11514 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11516 xe_check_libs=" -ldb "
11517 cat > conftest.$ac_ext <<EOF
11518 #line 11519 "configure"
11519 #include "confdefs.h"
11520 /* Override any gcc2 internal prototype to avoid an error. */
11521 /* We use char because int might match the return type of a gcc2
11522 builtin and then its argument prototype would still apply. */
11529 if { (eval echo configure:11530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11531 eval "ac_cv_lib_$ac_lib_var=yes"
11533 echo "configure: failed program was:" >&5
11534 cat conftest.$ac_ext >&5
11536 eval "ac_cv_lib_$ac_lib_var=no"
11541 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11542 echo "$ac_t""yes" 1>&6
11543 with_database_berkdb=yes need_libdb=yes
11545 echo "$ac_t""no" 1>&6
11553 if test "$with_database_berkdb" = "yes"; then
11554 { test "$extra_verbose" = "yes" && cat << EOF
11555 Defining DB_H_PATH = "$db_h_path"
11557 cat >> confdefs.h <<EOF
11558 #define DB_H_PATH "$db_h_path"
11562 { test "$extra_verbose" = "yes" && cat << \EOF
11563 Defining HAVE_BERKELEY_DB
11565 cat >> confdefs.h <<\EOF
11566 #define HAVE_BERKELEY_DB 1
11570 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
11571 else with_database_berkdb=no
11575 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11576 != "no no no"; then
11577 { test "$extra_verbose" = "yes" && cat << \EOF
11578 Defining HAVE_DATABASE
11580 cat >> confdefs.h <<\EOF
11581 #define HAVE_DATABASE 1
11585 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
11586 echo " xemacs will be linked with \"database.o\""
11590 if test "$with_socks" = "yes"; then
11592 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11593 echo "configure:11594: checking for SOCKSinit in -lsocks" >&5
11594 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11596 xe_check_libs=" -lsocks "
11597 cat > conftest.$ac_ext <<EOF
11598 #line 11599 "configure"
11599 #include "confdefs.h"
11600 /* Override any gcc2 internal prototype to avoid an error. */
11601 /* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11609 if { (eval echo configure:11610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11611 eval "ac_cv_lib_$ac_lib_var=yes"
11613 echo "configure: failed program was:" >&5
11614 cat conftest.$ac_ext >&5
11616 eval "ac_cv_lib_$ac_lib_var=no"
11621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11622 echo "$ac_t""yes" 1>&6
11623 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11624 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11625 { test "$extra_verbose" = "yes" && cat << EOF
11626 Defining $ac_tr_lib
11628 cat >> confdefs.h <<EOF
11629 #define $ac_tr_lib 1
11633 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
11636 echo "$ac_t""no" 1>&6
11640 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
11641 Defining HAVE_SOCKS
11643 cat >> confdefs.h <<\EOF
11644 #define HAVE_SOCKS 1
11650 if test "$usage_tracking" = "yes"; then
11651 { test "$extra_verbose" = "yes" && cat << \EOF
11652 Defining USAGE_TRACKING
11654 cat >> confdefs.h <<\EOF
11655 #define USAGE_TRACKING 1
11659 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11662 for ac_hdr in dlfcn.h
11664 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11665 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11666 echo "configure:11667: checking for $ac_hdr" >&5
11668 cat > conftest.$ac_ext <<EOF
11669 #line 11670 "configure"
11670 #include "confdefs.h"
11673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11674 { (eval echo configure:11675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11676 if test -z "$ac_err"; then
11678 eval "ac_cv_header_$ac_safe=yes"
11681 echo "configure: failed program was:" >&5
11682 cat conftest.$ac_ext >&5
11684 eval "ac_cv_header_$ac_safe=no"
11687 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11688 echo "$ac_t""yes" 1>&6
11689 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11690 { test "$extra_verbose" = "yes" && cat << EOF
11691 Defining $ac_tr_hdr
11693 cat >> confdefs.h <<EOF
11694 #define $ac_tr_hdr 1
11698 { test "$extra_verbose" = "yes" && cat << \EOF
11699 Defining HAVE_DLFCN_H
11701 cat >> confdefs.h <<\EOF
11702 #define HAVE_DLFCN_H 1
11707 echo "$ac_t""no" 1>&6
11711 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11712 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11713 echo "configure:11714: checking for dlopen in -ldl" >&5
11714 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11716 xe_check_libs=" -ldl "
11717 cat > conftest.$ac_ext <<EOF
11718 #line 11719 "configure"
11719 #include "confdefs.h"
11720 /* Override any gcc2 internal prototype to avoid an error. */
11721 /* We use char because int might match the return type of a gcc2
11722 builtin and then its argument prototype would still apply. */
11729 if { (eval echo configure:11730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11731 eval "ac_cv_lib_$ac_lib_var=yes"
11733 echo "configure: failed program was:" >&5
11734 cat conftest.$ac_ext >&5
11736 eval "ac_cv_lib_$ac_lib_var=no"
11741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11742 echo "$ac_t""yes" 1>&6
11743 { test "$extra_verbose" = "yes" && cat << \EOF
11744 Defining HAVE_DLOPEN
11746 cat >> confdefs.h <<\EOF
11747 #define HAVE_DLOPEN 1
11750 DLL_LIB=dl; with_modules=yes
11752 echo "$ac_t""no" 1>&6
11756 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11757 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11758 echo "configure:11759: checking for _dlopen in -lc" >&5
11759 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11761 xe_check_libs=" -lc "
11762 cat > conftest.$ac_ext <<EOF
11763 #line 11764 "configure"
11764 #include "confdefs.h"
11765 /* Override any gcc2 internal prototype to avoid an error. */
11766 /* We use char because int might match the return type of a gcc2
11767 builtin and then its argument prototype would still apply. */
11774 if { (eval echo configure:11775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11776 eval "ac_cv_lib_$ac_lib_var=yes"
11778 echo "configure: failed program was:" >&5
11779 cat conftest.$ac_ext >&5
11781 eval "ac_cv_lib_$ac_lib_var=no"
11786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11787 echo "$ac_t""yes" 1>&6
11788 { test "$extra_verbose" = "yes" && cat << \EOF
11789 Defining HAVE_DLOPEN
11791 cat >> confdefs.h <<\EOF
11792 #define HAVE_DLOPEN 1
11795 DLL_LIB=; with_modules=yes
11797 echo "$ac_t""no" 1>&6
11801 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11802 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11803 echo "configure:11804: checking for dlopen in -lc" >&5
11804 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11806 xe_check_libs=" -lc "
11807 cat > conftest.$ac_ext <<EOF
11808 #line 11809 "configure"
11809 #include "confdefs.h"
11810 /* Override any gcc2 internal prototype to avoid an error. */
11811 /* We use char because int might match the return type of a gcc2
11812 builtin and then its argument prototype would still apply. */
11819 if { (eval echo configure:11820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11821 eval "ac_cv_lib_$ac_lib_var=yes"
11823 echo "configure: failed program was:" >&5
11824 cat conftest.$ac_ext >&5
11826 eval "ac_cv_lib_$ac_lib_var=no"
11831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11832 echo "$ac_t""yes" 1>&6
11833 { test "$extra_verbose" = "yes" && cat << \EOF
11834 Defining HAVE_DLOPEN
11836 cat >> confdefs.h <<\EOF
11837 #define HAVE_DLOPEN 1
11840 DLL_LIB=; with_modules=yes
11842 echo "$ac_t""no" 1>&6
11846 test -z "$with_modules" && {
11847 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11848 echo "configure:11849: checking for shl_load in -ldld" >&5
11849 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11851 xe_check_libs=" -ldld "
11852 cat > conftest.$ac_ext <<EOF
11853 #line 11854 "configure"
11854 #include "confdefs.h"
11855 /* Override any gcc2 internal prototype to avoid an error. */
11856 /* We use char because int might match the return type of a gcc2
11857 builtin and then its argument prototype would still apply. */
11864 if { (eval echo configure:11865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11866 eval "ac_cv_lib_$ac_lib_var=yes"
11868 echo "configure: failed program was:" >&5
11869 cat conftest.$ac_ext >&5
11871 eval "ac_cv_lib_$ac_lib_var=no"
11876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11877 echo "$ac_t""yes" 1>&6
11878 { test "$extra_verbose" = "yes" && cat << \EOF
11879 Defining HAVE_SHL_LOAD
11881 cat >> confdefs.h <<\EOF
11882 #define HAVE_SHL_LOAD 1
11885 DLL_LIB=dld; with_modules=yes
11887 echo "$ac_t""no" 1>&6
11891 test -z "$with_modules" && {
11892 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11893 echo "configure:11894: checking for dld_init in -ldld" >&5
11894 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11896 xe_check_libs=" -ldld "
11897 cat > conftest.$ac_ext <<EOF
11898 #line 11899 "configure"
11899 #include "confdefs.h"
11900 /* Override any gcc2 internal prototype to avoid an error. */
11901 /* We use char because int might match the return type of a gcc2
11902 builtin and then its argument prototype would still apply. */
11909 if { (eval echo configure:11910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11911 eval "ac_cv_lib_$ac_lib_var=yes"
11913 echo "configure: failed program was:" >&5
11914 cat conftest.$ac_ext >&5
11916 eval "ac_cv_lib_$ac_lib_var=no"
11921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11922 echo "$ac_t""yes" 1>&6
11923 { test "$extra_verbose" = "yes" && cat << \EOF
11924 Defining HAVE_DLD_INIT
11926 cat >> confdefs.h <<\EOF
11927 #define HAVE_DLD_INIT 1
11930 DLL_LIB=dld; with_modules=yes
11932 echo "$ac_t""no" 1>&6
11936 if test "$with_modules" = "yes"; then
11943 ld_dynamic_link_flags=
11945 xealias=$internal_configuration
11947 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
11948 echo "configure:11949: checking how to build dynamic libraries for ${xehost}" >&5
11949 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
11952 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
11955 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11956 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11957 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11959 case "$xehost_os" in
11961 # AIX sometimes has problems with the GCC collect2 program. For some
11962 # reason, if we set the COLLECT_NAMES environment variable, the problems
11963 # vanish in a puff of smoke.
11964 if test "${COLLECT_NAMES+set}" != set; then
11966 export COLLECT_NAMES
11971 # Now see if the compiler is really GCC.
11972 if test "$GCC" = "yes"; then
11975 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
11976 echo "configure:11977: checking checking whether we are using GNU C" >&5
11977 cat > conftest.$ac_ext <<EOF
11978 #line 11979 "configure"
11979 #include "confdefs.h"
11986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11987 egrep "yes" >/dev/null 2>&1; then
11996 echo "$ac_t""${XEGCC}" 1>&6
11999 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12000 echo "configure:12001: checking how to produce PIC code" >&5
12003 can_build_shared=yes
12004 if test "$XEGCC" = yes; then
12007 case "$xehost_os" in
12008 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
12009 # PIC is the default for these OSes.
12013 # We can build DLLs from non-PIC.
12016 # FIXME: we need at least 68020 code to build shared libraries, but
12017 # adding the `-m68020' flag to GCC prevents building anything better,
12019 dll_cflags='-m68020 -resident32 -malways-restore-a4'
12026 # PORTME Check for PIC flags for the system compiler.
12027 case "$xehost_os" in
12029 # Is there a better link_static_flag that works with the bundled CC?
12036 # PIC (with -KPIC) is the default.
12040 # We can build DLLs from non-PIC.
12044 # All OSF/1 code is PIC.
12049 dll_cflags='-belf -Kpic'
12083 can_build_shared=no
12088 if test -n "$dll_cflags"; then
12089 echo "$ac_t""${dll_cflags}" 1>&6
12091 # Check to make sure the dll_cflags actually works.
12092 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12093 echo "configure:12094: checking if PIC flag ${dll_cflags} really works" >&5
12094 save_CFLAGS="$CFLAGS"
12095 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12096 cat > conftest.$ac_ext <<EOF
12097 #line 12098 "configure"
12098 #include "confdefs.h"
12104 if { (eval echo configure:12105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12107 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12108 # reports no error. So, we need to grep stderr for (Bundled).
12109 if grep '(Bundled)' config.log >/dev/null; then
12110 echo "$ac_t""no" 1>&6
12111 can_build_shared=no
12114 echo "$ac_t""yes" 1>&6
12117 echo "configure: failed program was:" >&5
12118 cat conftest.$ac_ext >&5
12120 echo "$ac_t""no" 1>&6
12121 can_build_shared=no
12125 CFLAGS="$save_CFLAGS"
12127 echo "$ac_t""none" 1>&6
12130 if test "$can_build_shared" = "yes"; then
12134 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12135 echo "configure:12136: checking if C compiler can produce shared libraries" >&5
12136 if test "$XEGCC" = yes; then
12139 else # Not using GCC
12140 case "$xehost_os" in
12142 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
12143 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
12146 freebsd2* | netbsd* | openbsd*)
12148 xcldf="${wl}-Bshareable"
12157 xcldf="${wl}-b ${wl}+s"
12160 irix5* | irix6* | osf3* | osf4*)
12161 xcldf="${wl}-shared"
12165 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
12171 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
12172 xldf="-assert pure-text -Bstatic"
12175 fi # End if if we are using gcc
12177 if test -n "$xcldf"; then
12178 save_LDFLAGS=$LDFLAGS
12180 save_xe_libs=$xe_libs
12181 LDFLAGS="$xcldf $LDFLAGS"
12184 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12185 cat > conftest.$ac_ext <<EOF
12186 #line 12187 "configure"
12187 #include "confdefs.h"
12193 if { (eval echo configure:12194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12197 echo "configure: failed program was:" >&5
12198 cat conftest.$ac_ext >&5
12203 LDFLAGS=$save_LDFLAGS
12205 xe_libs=$save_xe_libs
12206 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12210 echo "$ac_t""${cc_produces_so}" 1>&6
12213 if test -z "$LTLD"; then
12215 if test "$XEGCC" = yes; then
12216 # Check if gcc -print-prog-name=ld gives a path.
12217 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12218 echo "configure:12219: checking for ld used by GCC" >&5
12219 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12221 # Accept absolute paths.
12223 if test -z "$LTLD"; then
12225 *gcc-lib*) LTLD="$CC"
12233 # If it fails, then pretend we aren't using GCC.
12237 # If it is relative, then search for the first ld in PATH.
12238 with_gnu_ld=unknown
12242 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12243 echo "configure:12244: checking for GNU ld" >&5
12246 if test -z "$LTLD"; then
12247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12248 for ac_dir in $PATH; do
12249 test -z "$ac_dir" && ac_dir=.
12250 if test -f "$ac_dir/$ac_prog"; then
12251 LTLD="$ac_dir/$ac_prog"
12252 # Check to see if the program is GNU ld. I'd rather use --version,
12253 # but apparently some GNU ld's only accept -v.
12254 # Break only if it was the GNU/non-GNU ld that we prefer.
12255 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12265 if test -n "$LTLD"; then
12266 echo "$ac_t""${LTLD}" 1>&6
12268 echo "$ac_t""no" 1>&6
12271 if test -z "$LTLD" -a "$cc_produces_so" = no; then
12272 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
12277 ld_dynamic_link_flags=
12279 # Check to see if it really is or isn't GNU ld.
12280 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12281 echo "configure:12282: checking if the linker is GNU ld" >&5
12282 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12283 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12288 echo "$ac_t""${xe_gnu_ld}" 1>&6
12290 case "$xehost_os" in
12291 amigaos* | sunos4*)
12292 # On these operating systems, we should treat GNU ld like the system ld.
12293 gnu_ld_acts_native=yes
12296 gnu_ld_acts_native=no
12300 if test "$cc_produces_so" = "yes"; then
12303 can_build_shared=yes
12305 # OK - only NOW do we futz about with ld.
12306 # See if the linker supports building shared libraries.
12307 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12308 echo "configure:12309: checking whether the linker supports shared libraries" >&5
12310 dll_ldflags=$LDFLAGS
12312 can_build_shared=yes
12313 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12314 # See if GNU ld supports shared libraries.
12315 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12317 dll_ldflags="-shared"
12323 # PORTME fill in a description of your system's linker (not GNU ld)
12324 case "$xehost_os" in
12334 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12335 # support. Future versions do this automatically, but an explicit c++rt0.o
12336 # doesn't break anything, and helps significantly (at the cost of a little
12341 dll_post="/usr/lib/c++rt0.o"
12344 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
12347 dll_ldflags="-Bshareable"
12350 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
12352 dll_ldflags="-shared"
12366 # Tested with NetBSD 1.2 ld
12381 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
12382 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12385 *gcc*) dll_ldflags="-shared"
12388 *) dll_ldflags="-G"
12394 if test "$XEGCC" = yes; then
12414 can_build_shared=no
12418 echo "$ac_t""${ld_shlibs}" 1>&6
12419 if test "$ld_shlibs" = "no"; then
12420 can_build_shared=no
12422 fi # End of if cc_produces_so = no
12425 if test "$xe_gnu_ld" = yes; then
12426 if test "$ld_shlibs" = yes; then
12427 ld_dynamic_link_flags="${wl}-export-dynamic"
12431 if test -z "$ld_dynamic_link_flags"; then
12432 case "$xehost_os" in
12434 ld_dynamic_link_flags=
12438 ld_dynamic_link_flags=
12442 ld_dynamic_link_flags=
12446 ld_dynamic_link_flags=
12450 ld_dynamic_link_flags=
12454 ld_dynamic_link_flags="${wl}-E"
12458 ld_dynamic_link_flags=
12462 ld_dynamic_link_flags=
12466 ld_dynamic_link_flags=
12470 ld_dynamic_link_flags=
12473 solaris2* | solaris7*)
12474 ld_dynamic_link_flags="${wl}-Bdynamic"
12477 sco3.2v5* | unixware* | sysv5* | sysv4*)
12478 ld_dynamic_link_flags="${wl}-Bexport"
12482 ld_dynamic_link_flags=
12486 ld_dynamic_link_flags=
12490 ld_dynamic_link_flags=
12494 fi # End of if -z ld_dynamic_link_flags
12495 fi # End of if test "$can_build_shared" = "yes"
12504 if test "$can_build_shared" = "yes"; then
12505 { test "$extra_verbose" = "yes" && cat << \EOF
12506 Defining HAVE_SHLIB
12508 cat >> confdefs.h <<\EOF
12509 #define HAVE_SHLIB 1
12513 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then
12514 echo " xemacs will be linked with \"sysdll.o\""
12516 extra_objs="$extra_objs emodules.o" && if test "$extra_verbose" = "yes"; then
12517 echo " xemacs will be linked with \"emodules.o\""
12519 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12520 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
12521 for ac_func in dlerror _dlerror
12523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12524 echo "configure:12525: checking for $ac_func" >&5
12526 cat > conftest.$ac_ext <<EOF
12527 #line 12528 "configure"
12528 #include "confdefs.h"
12529 /* System header to define __stub macros and hopefully few prototypes,
12530 which can conflict with char $ac_func(); below. */
12531 #include <assert.h>
12532 /* Override any gcc2 internal prototype to avoid an error. */
12533 /* We use char because int might match the return type of a gcc2
12534 builtin and then its argument prototype would still apply. */
12539 /* The GNU C library defines this for functions which it implements
12540 to always fail with ENOSYS. Some functions are actually named
12541 something starting with __ and the normal name is an alias. */
12542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12550 if { (eval echo configure:12551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12552 eval "ac_cv_func_$ac_func=yes"
12554 echo "configure: failed program was:" >&5
12555 cat conftest.$ac_ext >&5
12557 eval "ac_cv_func_$ac_func=no"
12561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12562 echo "$ac_t""yes" 1>&6
12563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12564 { test "$extra_verbose" = "yes" && cat << EOF
12565 Defining $ac_tr_func
12567 cat >> confdefs.h <<EOF
12568 #define $ac_tr_func 1
12573 echo "$ac_t""no" 1>&6
12578 echo "configure: warning: disabling shared library support" 1>&2
12583 cat > conftest.$ac_ext <<EOF
12584 #line 12585 "configure"
12585 #include "confdefs.h"
12586 int main(int c,char *v[]){return 0;}
12588 if { (eval echo configure:12589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12593 echo "configure: failed program was:" >&5
12594 cat conftest.$ac_ext >&5
12598 echo "*** PANIC *** The C compiler can no longer build working executables."
12599 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
12600 echo "*** PANIC *** The most likely reason for this problem is that configure"
12601 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
12602 echo "*** PANIC *** found at run time."
12603 echo "*** PANIC ***"
12604 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
12605 echo "*** PANIC *** On other systems, try telling configure where to find the"
12606 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
12607 echo "*** PANIC ***"
12608 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
12609 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
12610 echo "*** PANIC *** on your system. Don't do that."
12615 if test "$win32_processes" = "yes"; then
12616 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
12617 echo " xemacs will be linked with \"process-nt.o\""
12620 { test "$extra_verbose" = "yes" && cat << \EOF
12621 Defining HAVE_UNIX_PROCESSES
12623 cat >> confdefs.h <<\EOF
12624 #define HAVE_UNIX_PROCESSES 1
12628 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
12629 echo " xemacs will be linked with \"process-unix.o\""
12636 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12641 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12646 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
12647 c_switch_general="$T"
12651 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12652 c_switch_window_system="$T"
12656 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12661 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
12662 ld_switch_general="$T"
12666 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12667 ld_switch_window_system="$T"
12671 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12676 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12677 ld_libs_general="$T"
12681 for W in $X_EXTRA_LIBS $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12682 ld_libs_window_system="$T"
12686 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12691 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
12692 internal_makefile_list="Makefile.in"
12693 SUBDIR_MAKEFILES=''
12694 test -d lock || mkdir lock
12695 for dir in $MAKE_SUBDIR; do
12696 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
12697 test -d "$d" || mkdir "$d"; cd "$d"
12699 * ) test -d "$dir" || mkdir "$dir" ;;
12703 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12704 SUBDIR_MAKEFILES="$T"
12708 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12709 internal_makefile_list="$T"
12716 for dir in src/s src/m; do
12717 if test ! -d "$dir" ; then
12718 echo Making symbolic link to "$srcdir/$dir"
12719 ${LN_S} "$srcdir/$dir" "$dir"
12723 if test "$extra_verbose" = "yes"; then
12725 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
12729 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
12730 echo "creating src/gdbinit"; echo ""
12731 echo "source $srcdir/src/gdbinit" > src/gdbinit
12734 if test "$__SUNPRO_C" = "yes"; then
12735 echo "creating .sbinit"; echo ""
12736 ( echo "# For use with Sun WorkShop's Source browser."
12737 echo "# See sbquery(1) and sbinit(4) for more information"
12738 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
12765 *\$* ) eval "PREFIX=$PREFIX" ;;
12773 EXEC_PREFIX=$exec_prefix
12775 case "$EXEC_PREFIX" in
12776 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
12787 *\$* ) eval "INFODIR=$INFODIR" ;;
12797 case "$INFOPATH" in
12798 *\$* ) eval "INFOPATH=$INFOPATH" ;;
12806 PACKAGE_PATH=$package_path
12808 case "$PACKAGE_PATH" in
12809 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
12820 *\$* ) eval "LISPDIR=$LISPDIR" ;;
12828 MODULEDIR=$moduledir
12830 case "$MODULEDIR" in
12831 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
12839 SITELISPDIR=$sitelispdir
12841 case "$SITELISPDIR" in
12842 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
12850 SITEMODULEDIR=$sitemoduledir
12852 case "$SITEMODULEDIR" in
12853 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
12864 *\$* ) eval "ETCDIR=$ETCDIR" ;;
12875 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
12886 *\$* ) eval "DOCDIR=$DOCDIR" ;;
12894 ARCHLIBDIR=$archlibdir
12896 case "$ARCHLIBDIR" in
12897 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
12921 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
12929 : ${XEMACS_CC:=$CC}
12932 if test "$with_prefix" = "yes"; then
12933 { test "$extra_verbose" = "yes" && cat << \EOF
12934 Defining PREFIX_USER_DEFINED
12936 cat >> confdefs.h <<\EOF
12937 #define PREFIX_USER_DEFINED 1
12943 if test "$with_site_lisp" = "no"; then
12944 { test "$extra_verbose" = "yes" && cat << \EOF
12945 Defining INHIBIT_SITE_LISP
12947 cat >> confdefs.h <<\EOF
12948 #define INHIBIT_SITE_LISP 1
12953 if test "$with_site_modules" = "no"; then
12954 { test "$extra_verbose" = "yes" && cat << \EOF
12955 Defining INHIBIT_SITE_MODULES
12957 cat >> confdefs.h <<\EOF
12958 #define INHIBIT_SITE_MODULES 1
12966 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12967 ac_configure_args="$T"
12969 { test "$extra_verbose" = "yes" && cat << EOF
12970 Defining EMACS_CONFIGURATION = "$canonical"
12972 cat >> confdefs.h <<EOF
12973 #define EMACS_CONFIGURATION "$canonical"
12977 { test "$extra_verbose" = "yes" && cat << EOF
12978 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
12980 cat >> confdefs.h <<EOF
12981 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
12985 { test "$extra_verbose" = "yes" && cat << EOF
12986 Defining config_machfile = "$machfile"
12988 cat >> confdefs.h <<EOF
12989 #define config_machfile "$machfile"
12993 { test "$extra_verbose" = "yes" && cat << EOF
12994 Defining config_opsysfile = "$opsysfile"
12996 cat >> confdefs.h <<EOF
12997 #define config_opsysfile "$opsysfile"
13004 { test "$extra_verbose" = "yes" && cat << EOF
13005 Defining LD_SWITCH_X_SITE = $null_string
13007 cat >> confdefs.h <<EOF
13008 #define LD_SWITCH_X_SITE $null_string
13012 { test "$extra_verbose" = "yes" && cat << EOF
13013 Defining LD_SWITCH_X_SITE_AUX = $null_string
13015 cat >> confdefs.h <<EOF
13016 #define LD_SWITCH_X_SITE_AUX $null_string
13020 { test "$extra_verbose" = "yes" && cat << EOF
13021 Defining C_SWITCH_X_SITE = $null_string
13023 cat >> confdefs.h <<EOF
13024 #define C_SWITCH_X_SITE $null_string
13028 { test "$extra_verbose" = "yes" && cat << EOF
13029 Defining LD_SWITCH_SITE = $null_string
13031 cat >> confdefs.h <<EOF
13032 #define LD_SWITCH_SITE $null_string
13036 { test "$extra_verbose" = "yes" && cat << EOF
13037 Defining C_SWITCH_SITE = $null_string
13039 cat >> confdefs.h <<EOF
13040 #define C_SWITCH_SITE $null_string
13046 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13047 Defining GNU_MALLOC
13049 cat >> confdefs.h <<\EOF
13050 #define GNU_MALLOC 1
13054 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13055 Defining USE_SYSTEM_MALLOC
13057 cat >> confdefs.h <<\EOF
13058 #define USE_SYSTEM_MALLOC 1
13062 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13063 Defining USE_DEBUG_MALLOC
13065 cat >> confdefs.h <<\EOF
13066 #define USE_DEBUG_MALLOC 1
13070 { test "$extra_verbose" = "yes" && cat << \EOF
13071 Defining USE_SYSTEM_MALLOC
13073 cat >> confdefs.h <<\EOF
13074 #define USE_SYSTEM_MALLOC 1
13079 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13082 cat >> confdefs.h <<\EOF
13087 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13090 cat >> confdefs.h <<\EOF
13095 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13096 Defining EXTERNAL_WIDGET
13098 cat >> confdefs.h <<\EOF
13099 #define EXTERNAL_WIDGET 1
13103 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13104 Defining NO_DOC_FILE
13106 cat >> confdefs.h <<\EOF
13107 #define NO_DOC_FILE 1
13111 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13114 cat >> confdefs.h <<\EOF
13119 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13122 cat >> confdefs.h <<\EOF
13127 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13128 Defining MAIL_USE_POP
13130 cat >> confdefs.h <<\EOF
13131 #define MAIL_USE_POP 1
13135 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13138 cat >> confdefs.h <<\EOF
13143 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13146 cat >> confdefs.h <<\EOF
13151 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13152 Defining USE_UNION_TYPE
13154 cat >> confdefs.h <<\EOF
13155 #define USE_UNION_TYPE 1
13162 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
13164 echo "uname -a: `uname -a`"
13167 echo "$0 $quoted_arguments"
13170 if test ! -z ${emacs_beta_version} ; then
13171 if test -z "${emacs_is_beta}" ; then
13172 xemacs_betaname=".${emacs_beta_version}"
13174 xemacs_betaname="-b${emacs_beta_version}"
13183 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13185 Where should the build process find the source code? $srcdir
13186 What installation prefix should install use? $prefix
13187 What operating system and machine description files should XEmacs use?
13188 \`$opsysfile' and \`$machfile'
13189 What compiler should XEmacs be built with? $CC $CFLAGS
13190 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13191 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13192 What window system should XEmacs use? ${window_system}"
13193 if test "$with_x11" = "yes"; then
13194 echo " Where do we find X Windows header files? $x_includes"
13195 echo " Where do we find X Windows libraries? $x_libraries"
13197 if test -n "$site_includes"; then
13198 echo " Additional header files: $site_includes"
13200 if test -n "$site_libraries"; then
13201 echo " Additional libraries: $site_libraries"
13203 if test -n "$site_prefixes"; then
13204 echo " Additional prefixes: $site_prefixes"
13206 if test -n "$runpath"; then
13207 echo " Runtime library search path: $runpath"
13209 test "$with_dnet" = yes && echo " Compiling in support for DNET."
13210 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
13211 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
13212 if test "$with_xmu" != yes -a "$with_x11" = yes; then
13213 echo " No Xmu; substituting equivalent routines."
13216 if test "$with_xpm" = yes; then
13217 echo " Compiling in support for XPM images."
13218 elif test "$with_x11" = yes; then
13219 echo " --------------------------------------------------------------------"
13220 echo " WARNING: Compiling without XPM support."
13221 if test "$xpm_problem" != ""; then
13222 echo " Reason: $xpm_problem"
13224 echo " WARNING: You should strongly consider installing XPM."
13225 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
13226 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13227 echo " --------------------------------------------------------------------"
13229 if test "$with_png" = yes; then
13230 echo " Compiling in support for PNG image handling."
13231 elif test "$window_system" != "none"; then
13232 echo " --------------------------------------------------------------------"
13233 echo " WARNING: Compiling without PNG image support."
13234 if test "$png_problem" != ""; then
13235 echo " Reason: $png_problem"
13237 echo " WARNING: You should strongly consider installing the PNG libraries."
13238 echo " WARNING: Otherwise certain images and glyphs may not display."
13239 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13240 echo " --------------------------------------------------------------------"
13242 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13243 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13244 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13245 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13246 case "$with_sound" in
13247 nas ) echo " Compiling in network sound (NAS) support." ;;
13248 native ) echo " Compiling in native sound support." ;;
13249 both ) echo " Compiling in both network and native sound support." ;;
13251 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13253 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13254 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13255 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
13257 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
13259 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
13260 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
13262 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
13263 test "$with_file_coding" = yes && echo " Compiling in File coding support."
13264 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
13265 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
13266 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
13267 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
13268 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
13269 if test "$with_wnn" = yes; then
13270 echo " Compiling in support for the WNN input method on Mule."
13271 test "$with_wnn6" = yes && echo " Using WNN version 6."
13273 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
13275 test "$with_cde" = yes && echo " Compiling in support for CDE."
13276 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
13277 test "$with_offix" = yes && echo " Compiling in support for OffiX."
13278 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
13279 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
13280 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
13281 case "$with_menubars" in
13282 lucid ) echo " Using Lucid menubars." ;;
13283 motif ) echo " Using Motif menubars."
13284 echo " *WARNING* The Motif menubar implementation is currently buggy."
13285 echo " We recommend using the Lucid menubar instead."
13286 echo " Re-run configure with --with-menubars='lucid'." ;;
13288 case "$with_scrollbars" in
13289 lucid ) echo " Using Lucid scrollbars." ;;
13290 motif ) echo " Using Motif scrollbars." ;;
13291 athena ) echo " Using Athena scrollbars." ;;
13292 athena3d ) echo " Using Athena-3d scrollbars." ;;
13294 case "$with_widgets" in
13295 motif ) echo " Using Motif native widgets." ;;
13297 case "$with_dialogs" in
13299 echo " Using Motif dialog boxes."
13300 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
13301 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
13302 echo " We recommend using the Athena dialog boxes instead."
13303 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
13304 echo " Read the PROBLEMS file for more information."
13307 athena ) echo " Using Athena dialog boxes." ;;
13308 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13310 test "$with_modules" = "yes" && echo " Compiling in DSO module support."
13311 test "$with_clash_detection" = yes && \
13312 echo " Clash detection will use \"$lockdir\" for locking files."
13313 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13314 test "$with_pop" = yes && echo " Using POP for mail access."
13315 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13316 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
13317 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
13318 test "$debug" = yes && echo " Compiling in extra code for debugging."
13319 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13320 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
13321 != "no no no no no"; then
13322 echo " WARNING: ---------------------------------------------------------"
13323 echo " WARNING: Compiling in support for runtime error checking."
13324 echo " WARNING: XEmacs will run noticeably more slowly as a result."
13325 echo " WARNING: Error checking is on by default for XEmacs beta releases."
13326 echo " WARNING: ---------------------------------------------------------"
13329 ) | tee -a Installation
13333 # Remove any trailing slashes in these variables.
13334 test -n "$prefix" &&
13335 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13336 test -n "$exec_prefix" &&
13337 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13340 for file in $internal_makefile_list; do
13341 test "$file" = src/Makefile.in && \
13342 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13343 ac_output_files="${ac_output_files+$ac_output_files }$file"
13345 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13346 if test "$with_modules" = "yes"; then
13347 ac_output_files="$ac_output_files lib-src/ellcc.h"
13352 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13354 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13355 # Let make expand exec_prefix.
13356 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13358 # Any assignment to VPATH causes Sun make to only execute
13359 # the first set of double-colon rules, so remove it if not needed.
13360 # If there is a colon in the path, we need to keep it.
13361 if test "x$srcdir" = x.; then
13362 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13365 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13367 DEFS=-DHAVE_CONFIG_H
13369 # Without the "./", some shells look in PATH for config.status.
13370 : ${CONFIG_STATUS=./config.status}
13372 echo creating $CONFIG_STATUS
13373 rm -f $CONFIG_STATUS
13374 cat > $CONFIG_STATUS <<EOF
13376 # Generated automatically by configure.
13377 # Run this file to recreate the current configuration.
13378 # This directory was configured as follows,
13379 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13381 # $0 $ac_configure_args
13383 # Compiler output produced by configure, useful for debugging
13384 # configure, is in ./config.log if it exists.
13386 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13389 case "\$ac_option" in
13390 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13391 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13392 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13393 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13394 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13396 -help | --help | --hel | --he | --h)
13397 echo "\$ac_cs_usage"; exit 0 ;;
13398 *) echo "\$ac_cs_usage"; exit 1 ;;
13402 ac_given_srcdir=$srcdir
13403 ac_given_INSTALL="$INSTALL"
13405 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13407 cat >> $CONFIG_STATUS <<EOF
13409 # Protect against being on the right side of a sed subst in config.status.
13410 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13411 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13415 s%@CFLAGS@%$CFLAGS%g
13416 s%@CPPFLAGS@%$CPPFLAGS%g
13417 s%@CXXFLAGS@%$CXXFLAGS%g
13418 s%@FFLAGS@%$FFLAGS%g
13420 s%@LDFLAGS@%$LDFLAGS%g
13422 s%@exec_prefix@%$exec_prefix%g
13423 s%@prefix@%$prefix%g
13424 s%@program_transform_name@%$program_transform_name%g
13425 s%@bindir@%$bindir%g
13426 s%@sbindir@%$sbindir%g
13427 s%@libexecdir@%$libexecdir%g
13428 s%@datadir@%$datadir%g
13429 s%@sysconfdir@%$sysconfdir%g
13430 s%@sharedstatedir@%$sharedstatedir%g
13431 s%@localstatedir@%$localstatedir%g
13432 s%@libdir@%$libdir%g
13433 s%@includedir@%$includedir%g
13434 s%@oldincludedir@%$oldincludedir%g
13435 s%@infodir@%$infodir%g
13436 s%@mandir@%$mandir%g
13438 s%@blddir@%$blddir%g
13441 s%@start_flags@%$start_flags%g
13442 s%@ld_switch_shared@%$ld_switch_shared%g
13443 s%@start_files@%$start_files%g
13445 s%@lib_gcc@%$lib_gcc%g
13446 s%@RANLIB@%$RANLIB%g
13447 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13448 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13449 s%@INSTALL_DATA@%$INSTALL_DATA%g
13451 s%@SET_MAKE@%$SET_MAKE%g
13452 s%@X_CFLAGS@%$X_CFLAGS%g
13453 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13454 s%@X_LIBS@%$X_LIBS%g
13455 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13456 s%@install_pp@%$install_pp%g
13457 s%@libs_xauth@%$libs_xauth%g
13458 s%@dnd_objs@%$dnd_objs%g
13459 s%@lwlib_objs@%$lwlib_objs%g
13460 s%@ALLOCA@%$ALLOCA%g
13461 s%@dll_ld@%$dll_ld%g
13462 s%@dll_cflags@%$dll_cflags%g
13463 s%@dll_ldflags@%$dll_ldflags%g
13464 s%@dll_post@%$dll_post%g
13465 s%@dll_ldo@%$dll_ldo%g
13466 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
13467 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
13468 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
13469 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
13470 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
13471 s%@PROGNAME@%$PROGNAME%g
13472 s%@version@%$version%g
13473 s%@configuration@%$configuration%g
13474 s%@canonical@%$canonical%g
13475 s%@inststaticdir@%$inststaticdir%g
13476 s%@instvardir@%$instvardir%g
13477 s%@srcdir@%$srcdir%g
13478 s%@pkgdir@%$pkgdir%g
13479 s%@statedir@%$statedir%g
13480 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
13481 s%@PREFIX@%$PREFIX%g
13482 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
13483 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
13484 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
13485 s%@INFODIR@%$INFODIR%g
13486 s%@infopath@%$infopath%g
13487 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
13488 s%@INFOPATH@%$INFOPATH%g
13489 s%@package_path@%$package_path%g
13490 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
13491 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
13492 s%@lispdir@%$lispdir%g
13493 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
13494 s%@LISPDIR@%$LISPDIR%g
13495 s%@moduledir@%$moduledir%g
13496 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
13497 s%@MODULEDIR@%$MODULEDIR%g
13498 s%@sitelispdir@%$sitelispdir%g
13499 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
13500 s%@SITELISPDIR@%$SITELISPDIR%g
13501 s%@sitemoduledir@%$sitemoduledir%g
13502 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
13503 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
13504 s%@etcdir@%$etcdir%g
13505 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
13506 s%@ETCDIR@%$ETCDIR%g
13507 s%@lockdir@%$lockdir%g
13508 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
13509 s%@LOCKDIR@%$LOCKDIR%g
13510 s%@docdir@%$docdir%g
13511 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
13512 s%@DOCDIR@%$DOCDIR%g
13513 s%@archlibdir@%$archlibdir%g
13514 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
13515 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
13516 s%@bitmapdir@%$bitmapdir%g
13517 s%@extra_objs@%$extra_objs%g
13518 s%@machfile@%$machfile%g
13519 s%@opsysfile@%$opsysfile%g
13520 s%@c_switch_general@%$c_switch_general%g
13521 s%@c_switch_window_system@%$c_switch_window_system%g
13522 s%@c_switch_all@%$c_switch_all%g
13523 s%@ld_switch_general@%$ld_switch_general%g
13524 s%@ld_switch_window_system@%$ld_switch_window_system%g
13525 s%@ld_switch_all@%$ld_switch_all%g
13526 s%@ld_libs_general@%$ld_libs_general%g
13527 s%@ld_libs_window_system@%$ld_libs_window_system%g
13528 s%@ld_libs_all@%$ld_libs_all%g
13529 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
13530 s%@native_sound_lib@%$native_sound_lib%g
13531 s%@sound_cflags@%$sound_cflags%g
13532 s%@dynodump_arch@%$dynodump_arch%g
13533 s%@XEMACS_CC@%$XEMACS_CC%g
13534 s%@internal_makefile_list@%$internal_makefile_list%g
13539 cat >> $CONFIG_STATUS <<\EOF
13541 # Split the substitutions into bite-sized pieces for seds with
13542 # small command number limits, like on Digital OSF/1 and HP-UX.
13543 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13544 ac_file=1 # Number of current file.
13545 ac_beg=1 # First line for current file.
13546 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13549 while $ac_more_lines; do
13550 if test $ac_beg -gt 1; then
13551 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13553 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13555 if test ! -s conftest.s$ac_file; then
13556 ac_more_lines=false
13557 rm -f conftest.s$ac_file
13559 if test -z "$ac_sed_cmds"; then
13560 ac_sed_cmds="sed -f conftest.s$ac_file"
13562 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13564 ac_file=`expr $ac_file + 1`
13566 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13569 if test -z "$ac_sed_cmds"; then
13574 cat >> $CONFIG_STATUS <<EOF
13576 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
13578 cat >> $CONFIG_STATUS <<\EOF
13579 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13580 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13582 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13583 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13584 *) ac_file_in="${ac_file}.in" ;;
13587 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13589 # Remove last slash and all that follows it. Not all systems have dirname.
13590 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13591 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13592 # The file is in a subdirectory.
13593 test ! -d "$ac_dir" && mkdir "$ac_dir"
13594 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13595 # A "../" for each directory in $ac_dir_suffix.
13596 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13598 ac_dir_suffix= ac_dots=
13601 case "$ac_given_srcdir" in
13603 if test -z "$ac_dots"; then top_srcdir=.
13604 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13605 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13606 *) # Relative path.
13607 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13608 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13611 case "$ac_given_INSTALL" in
13612 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13613 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13616 echo creating "$ac_file"
13618 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13620 *Makefile*) ac_comsub="1i\\
13621 # $configure_input" ;;
13625 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13627 s%@configure_input@%$configure_input%g
13628 s%@srcdir@%$srcdir%g
13629 s%@top_srcdir@%$top_srcdir%g
13630 s%@INSTALL@%$INSTALL%g
13631 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13635 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13636 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13638 # ac_d sets the value in "#define NAME VALUE" lines.
13639 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13640 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13643 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13644 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13645 ac_uB='\([ ]\)%\1#\2define\3'
13648 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13649 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13650 ac_eB='$%\1#\2define\3'
13654 if test "${CONFIG_HEADERS+set}" != set; then
13656 cat >> $CONFIG_STATUS <<EOF
13657 CONFIG_HEADERS="src/config.h lwlib/config.h"
13659 cat >> $CONFIG_STATUS <<\EOF
13661 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13662 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13664 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13665 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13666 *) ac_file_in="${ac_file}.in" ;;
13669 echo creating $ac_file
13671 rm -f conftest.frag conftest.in conftest.out
13672 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13673 cat $ac_file_inputs > conftest.in
13677 # Transform confdefs.h into a sed script conftest.vals that substitutes
13678 # the proper values into config.h.in to produce config.h. And first:
13679 # Protect against being on the right side of a sed subst in config.status.
13680 # Protect against being in an unquoted here document in config.status.
13681 rm -f conftest.vals
13682 cat > conftest.hdr <<\EOF
13685 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13689 sed -n -f conftest.hdr confdefs.h > conftest.vals
13692 # This sed command replaces #undef with comments. This is necessary, for
13693 # example, in the case of _POSIX_SOURCE, which is predefined and required
13694 # on some systems where configure will not decide to define it.
13695 cat >> conftest.vals <<\EOF
13696 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13699 # Break up conftest.vals because some shells have a limit on
13700 # the size of here documents, and old seds have small limits too.
13702 rm -f conftest.tail
13705 ac_lines=`grep -c . conftest.vals`
13706 # grep -c gives empty output for an empty file on some AIX systems.
13707 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13708 # Write a limited-size here document to conftest.frag.
13709 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13710 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13712 sed -f conftest.frag conftest.in > conftest.out
13714 mv conftest.out conftest.in
13715 ' >> $CONFIG_STATUS
13716 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13717 rm -f conftest.vals
13718 mv conftest.tail conftest.vals
13720 rm -f conftest.vals
13722 cat >> $CONFIG_STATUS <<\EOF
13723 rm -f conftest.frag conftest.h
13724 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13725 cat conftest.in >> conftest.h
13727 if cmp -s $ac_file conftest.h 2>/dev/null; then
13728 echo "$ac_file is unchanged"
13731 # Remove last slash and all that follows it. Not all systems have dirname.
13732 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13733 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13734 # The file is in a subdirectory.
13735 test ! -d "$ac_dir" && mkdir "$ac_dir"
13738 mv conftest.h $ac_file
13743 cat >> $CONFIG_STATUS <<EOF
13745 top_srcdir="$srcdir"
13746 MAKE_SUBDIR="$MAKE_SUBDIR"
13749 cat >> $CONFIG_STATUS <<\EOF
13750 for dir in . $MAKE_SUBDIR; do
13755 sed -e '/^# Generated/d' \
13756 -e 's%/\*\*/#.*%%' \
13771 echo creating $dir/Makefile
13772 $CPP -I. -I${top_srcdir}/src junk.c \
13773 | sed -e 's/^\#.*//' \
13774 -e 's/^[ ][ ]*$//'\
13776 | sed -n -e '/^..*$/p' \
13782 chmod 444 Makefile.new
13783 mv -f Makefile.new Makefile
13785 echo creating $dir/GNUmakefile
13786 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
13787 | sed -e 's/^\#.*//' \
13788 -e 's/^[ ][ ]*$//'\
13790 | sed -n -e '/^..*$/p' \
13796 chmod 444 Makefile.new
13797 mv -f Makefile.new GNUmakefile
13803 sed < config.status >> lib-src/config.values \
13804 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
13805 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
13806 -e 's/^\([^ ]*\) $/\1 ""/' \
13812 chmod +x $CONFIG_STATUS
13813 rm -fr confdefs* $ac_clean_files
13814 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1