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" && if test "$extra_verbose" = "yes"; then
7892 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o\""
7894 if test "$with_utf_2000" = "yes" && test "$with_text_coding" = "yes"; then
7895 { test "$extra_verbose" = "yes" && cat << \EOF
7896 Defining TEXT_CODING
7898 cat >> confdefs.h <<\EOF
7899 #define TEXT_CODING 1
7903 extra_objs="$extra_objs text-coding.o" && if test "$extra_verbose" = "yes"; then
7904 echo " xemacs will be linked with \"text-coding.o\""
7907 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
7908 echo " xemacs will be linked with \"file-coding.o\""
7911 for ac_hdr in libintl.h
7913 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7914 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7915 echo "configure:7916: checking for $ac_hdr" >&5
7917 cat > conftest.$ac_ext <<EOF
7918 #line 7919 "configure"
7919 #include "confdefs.h"
7922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7923 { (eval echo configure:7924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7925 if test -z "$ac_err"; then
7927 eval "ac_cv_header_$ac_safe=yes"
7930 echo "configure: failed program was:" >&5
7931 cat conftest.$ac_ext >&5
7933 eval "ac_cv_header_$ac_safe=no"
7936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7937 echo "$ac_t""yes" 1>&6
7938 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7939 { test "$extra_verbose" = "yes" && cat << EOF
7942 cat >> confdefs.h <<EOF
7943 #define $ac_tr_hdr 1
7948 echo "$ac_t""no" 1>&6
7953 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7954 echo "configure:7955: checking for strerror in -lintl" >&5
7955 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7957 xe_check_libs=" -lintl "
7958 cat > conftest.$ac_ext <<EOF
7959 #line 7960 "configure"
7960 #include "confdefs.h"
7961 /* Override any gcc2 internal prototype to avoid an error. */
7962 /* We use char because int might match the return type of a gcc2
7963 builtin and then its argument prototype would still apply. */
7970 if { (eval echo configure:7971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7972 eval "ac_cv_lib_$ac_lib_var=yes"
7974 echo "configure: failed program was:" >&5
7975 cat conftest.$ac_ext >&5
7977 eval "ac_cv_lib_$ac_lib_var=no"
7982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7983 echo "$ac_t""yes" 1>&6
7984 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7985 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7986 { test "$extra_verbose" = "yes" && cat << EOF
7989 cat >> confdefs.h <<EOF
7990 #define $ac_tr_lib 1
7994 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
7997 echo "$ac_t""no" 1>&6
8002 if test "$with_utf_2000" = "yes" ; then
8003 { test "$extra_verbose" = "yes" && cat << \EOF
8004 Defining CHAR_IS_UCS4
8006 cat >> confdefs.h <<\EOF
8007 #define CHAR_IS_UCS4 1
8011 { test "$extra_verbose" = "yes" && cat << \EOF
8014 cat >> confdefs.h <<\EOF
8021 echo "checking for Mule input methods" 1>&6
8022 echo "configure:8023: checking for Mule input methods" >&5
8023 case "$with_xim" in "" | "yes" )
8024 echo "checking for XIM" 1>&6
8025 echo "configure:8026: checking for XIM" >&5
8027 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
8028 echo "configure:8029: checking for XOpenIM in -lX11" >&5
8029 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
8031 xe_check_libs=" -lX11 "
8032 cat > conftest.$ac_ext <<EOF
8033 #line 8034 "configure"
8034 #include "confdefs.h"
8035 /* Override any gcc2 internal prototype to avoid an error. */
8036 /* We use char because int might match the return type of a gcc2
8037 builtin and then its argument prototype would still apply. */
8044 if { (eval echo configure:8045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8046 eval "ac_cv_lib_$ac_lib_var=yes"
8048 echo "configure: failed program was:" >&5
8049 cat conftest.$ac_ext >&5
8051 eval "ac_cv_lib_$ac_lib_var=no"
8056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8057 echo "$ac_t""yes" 1>&6
8060 echo "$ac_t""no" 1>&6
8065 if test "$have_motif $have_lesstif" = "yes no"; then
8067 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
8068 echo "configure:8069: checking for XmImMbLookupString in -lXm" >&5
8069 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
8071 xe_check_libs=" -lXm "
8072 cat > conftest.$ac_ext <<EOF
8073 #line 8074 "configure"
8074 #include "confdefs.h"
8075 /* Override any gcc2 internal prototype to avoid an error. */
8076 /* We use char because int might match the return type of a gcc2
8077 builtin and then its argument prototype would still apply. */
8078 char XmImMbLookupString();
8081 XmImMbLookupString()
8084 if { (eval echo configure:8085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8086 eval "ac_cv_lib_$ac_lib_var=yes"
8088 echo "configure: failed program was:" >&5
8089 cat conftest.$ac_ext >&5
8091 eval "ac_cv_lib_$ac_lib_var=no"
8096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8097 echo "$ac_t""yes" 1>&6
8100 echo "$ac_t""no" 1>&6
8106 if test "$with_xim" != "no"; then
8107 { test "$extra_verbose" = "yes" && cat << \EOF
8110 cat >> confdefs.h <<\EOF
8115 if test "$with_xim" = "xlib"; then
8116 { test "$extra_verbose" = "yes" && cat << \EOF
8119 cat >> confdefs.h <<\EOF
8124 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
8125 echo " xemacs will be linked with \"input-method-xlib.o\""
8128 if test "$with_xim" = "motif"; then
8129 { test "$extra_verbose" = "yes" && cat << \EOF
8132 cat >> confdefs.h <<\EOF
8138 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
8139 echo " xemacs will be linked with \"input-method-motif.o\""
8142 if test "$with_xim" = "motif"; then
8147 if test "$with_xfs" = "yes" ; then
8148 echo "checking for XFontSet" 1>&6
8149 echo "configure:8150: checking for XFontSet" >&5
8151 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8152 echo "configure:8153: checking for XmbDrawString in -lX11" >&5
8153 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8155 xe_check_libs=" -lX11 "
8156 cat > conftest.$ac_ext <<EOF
8157 #line 8158 "configure"
8158 #include "confdefs.h"
8159 /* Override any gcc2 internal prototype to avoid an error. */
8160 /* We use char because int might match the return type of a gcc2
8161 builtin and then its argument prototype would still apply. */
8162 char XmbDrawString();
8168 if { (eval echo configure:8169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8170 eval "ac_cv_lib_$ac_lib_var=yes"
8172 echo "configure: failed program was:" >&5
8173 cat conftest.$ac_ext >&5
8175 eval "ac_cv_lib_$ac_lib_var=no"
8180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8181 echo "$ac_t""yes" 1>&6
8184 echo "$ac_t""no" 1>&6
8189 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
8190 { test "$extra_verbose" = "yes" && cat << \EOF
8191 Defining USE_XFONTSET
8193 cat >> confdefs.h <<\EOF
8194 #define USE_XFONTSET 1
8198 if test "$with_xim" = "no" ; then
8199 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
8200 echo " xemacs will be linked with \"input-method-xfs.o\""
8205 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8206 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8207 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8208 echo "configure:8209: checking for wnn/jllib.h" >&5
8210 cat > conftest.$ac_ext <<EOF
8211 #line 8212 "configure"
8212 #include "confdefs.h"
8213 #include <wnn/jllib.h>
8215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8216 { (eval echo configure:8217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8218 if test -z "$ac_err"; then
8220 eval "ac_cv_header_$ac_safe=yes"
8223 echo "configure: failed program was:" >&5
8224 cat conftest.$ac_ext >&5
8226 eval "ac_cv_header_$ac_safe=no"
8229 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8230 echo "$ac_t""yes" 1>&6
8233 echo "$ac_t""no" 1>&6
8237 if test "$with_wnn" != "no"; then
8238 for ac_func in crypt
8240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8241 echo "configure:8242: checking for $ac_func" >&5
8243 cat > conftest.$ac_ext <<EOF
8244 #line 8245 "configure"
8245 #include "confdefs.h"
8246 /* System header to define __stub macros and hopefully few prototypes,
8247 which can conflict with char $ac_func(); below. */
8249 /* Override any gcc2 internal prototype to avoid an error. */
8250 /* We use char because int might match the return type of a gcc2
8251 builtin and then its argument prototype would still apply. */
8256 /* The GNU C library defines this for functions which it implements
8257 to always fail with ENOSYS. Some functions are actually named
8258 something starting with __ and the normal name is an alias. */
8259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8267 if { (eval echo configure:8268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8269 eval "ac_cv_func_$ac_func=yes"
8271 echo "configure: failed program was:" >&5
8272 cat conftest.$ac_ext >&5
8274 eval "ac_cv_func_$ac_func=no"
8278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8279 echo "$ac_t""yes" 1>&6
8280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8281 { test "$extra_verbose" = "yes" && cat << EOF
8282 Defining $ac_tr_func
8284 cat >> confdefs.h <<EOF
8285 #define $ac_tr_func 1
8290 echo "$ac_t""no" 1>&6
8294 test "$ac_cv_func_crypt" != "yes" && {
8295 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8296 echo "configure:8297: checking for crypt in -lcrypt" >&5
8297 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8299 xe_check_libs=" -lcrypt "
8300 cat > conftest.$ac_ext <<EOF
8301 #line 8302 "configure"
8302 #include "confdefs.h"
8303 /* Override any gcc2 internal prototype to avoid an error. */
8304 /* We use char because int might match the return type of a gcc2
8305 builtin and then its argument prototype would still apply. */
8312 if { (eval echo configure:8313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8314 eval "ac_cv_lib_$ac_lib_var=yes"
8316 echo "configure: failed program was:" >&5
8317 cat conftest.$ac_ext >&5
8319 eval "ac_cv_lib_$ac_lib_var=no"
8324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8325 echo "$ac_t""yes" 1>&6
8326 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8327 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8328 { test "$extra_verbose" = "yes" && cat << EOF
8331 cat >> confdefs.h <<EOF
8332 #define $ac_tr_lib 1
8336 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
8339 echo "$ac_t""no" 1>&6
8344 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8346 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8347 echo "configure:8348: checking for jl_dic_list_e in -lwnn" >&5
8348 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8350 xe_check_libs=" -lwnn "
8351 cat > conftest.$ac_ext <<EOF
8352 #line 8353 "configure"
8353 #include "confdefs.h"
8354 /* Override any gcc2 internal prototype to avoid an error. */
8355 /* We use char because int might match the return type of a gcc2
8356 builtin and then its argument prototype would still apply. */
8357 char jl_dic_list_e();
8363 if { (eval echo configure:8364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8365 eval "ac_cv_lib_$ac_lib_var=yes"
8367 echo "configure: failed program was:" >&5
8368 cat conftest.$ac_ext >&5
8370 eval "ac_cv_lib_$ac_lib_var=no"
8375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8376 echo "$ac_t""yes" 1>&6
8379 echo "$ac_t""no" 1>&6
8380 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8381 echo "configure:8382: checking for jl_dic_list_e in -lwnn4" >&5
8382 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8384 xe_check_libs=" -lwnn4 "
8385 cat > conftest.$ac_ext <<EOF
8386 #line 8387 "configure"
8387 #include "confdefs.h"
8388 /* Override any gcc2 internal prototype to avoid an error. */
8389 /* We use char because int might match the return type of a gcc2
8390 builtin and then its argument prototype would still apply. */
8391 char jl_dic_list_e();
8397 if { (eval echo configure:8398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8399 eval "ac_cv_lib_$ac_lib_var=yes"
8401 echo "configure: failed program was:" >&5
8402 cat conftest.$ac_ext >&5
8404 eval "ac_cv_lib_$ac_lib_var=no"
8409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8410 echo "$ac_t""yes" 1>&6
8413 echo "$ac_t""no" 1>&6
8414 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8415 echo "configure:8416: checking for jl_dic_list_e in -lwnn6" >&5
8416 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8418 xe_check_libs=" -lwnn6 "
8419 cat > conftest.$ac_ext <<EOF
8420 #line 8421 "configure"
8421 #include "confdefs.h"
8422 /* Override any gcc2 internal prototype to avoid an error. */
8423 /* We use char because int might match the return type of a gcc2
8424 builtin and then its argument prototype would still apply. */
8425 char jl_dic_list_e();
8431 if { (eval echo configure:8432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8433 eval "ac_cv_lib_$ac_lib_var=yes"
8435 echo "configure: failed program was:" >&5
8436 cat conftest.$ac_ext >&5
8438 eval "ac_cv_lib_$ac_lib_var=no"
8443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8444 echo "$ac_t""yes" 1>&6
8447 echo "$ac_t""no" 1>&6
8448 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8449 echo "configure:8450: checking for dic_list_e in -lwnn6_fromsrc" >&5
8450 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8452 xe_check_libs=" -lwnn6_fromsrc "
8453 cat > conftest.$ac_ext <<EOF
8454 #line 8455 "configure"
8455 #include "confdefs.h"
8456 /* Override any gcc2 internal prototype to avoid an error. */
8457 /* We use char because int might match the return type of a gcc2
8458 builtin and then its argument prototype would still apply. */
8465 if { (eval echo configure:8466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8467 eval "ac_cv_lib_$ac_lib_var=yes"
8469 echo "configure: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8472 eval "ac_cv_lib_$ac_lib_var=no"
8477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8478 echo "$ac_t""yes" 1>&6
8481 echo "$ac_t""no" 1>&6
8496 test -z "$with_wnn" && with_wnn=yes
8497 if test "$with_wnn" = "yes"; then
8498 { test "$extra_verbose" = "yes" && cat << \EOF
8501 cat >> confdefs.h <<\EOF
8506 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
8507 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
8508 echo " xemacs will be linked with \"mule-wnnfns.o\""
8510 if test "$with_wnn6" != "no"; then
8512 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8513 echo "configure:8514: checking for jl_fi_dic_list in -l$libwnn" >&5
8514 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8516 xe_check_libs=" -l$libwnn "
8517 cat > conftest.$ac_ext <<EOF
8518 #line 8519 "configure"
8519 #include "confdefs.h"
8520 /* Override any gcc2 internal prototype to avoid an error. */
8521 /* We use char because int might match the return type of a gcc2
8522 builtin and then its argument prototype would still apply. */
8523 char jl_fi_dic_list();
8529 if { (eval echo configure:8530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8531 eval "ac_cv_lib_$ac_lib_var=yes"
8533 echo "configure: failed program was:" >&5
8534 cat conftest.$ac_ext >&5
8536 eval "ac_cv_lib_$ac_lib_var=no"
8541 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8542 echo "$ac_t""yes" 1>&6
8545 echo "$ac_t""no" 1>&6
8549 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8552 cat >> confdefs.h <<\EOF
8560 canna_includes_found=no
8561 if test "$with_canna" != "no"; then
8562 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8563 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8564 echo "configure:8565: checking for canna/jrkanji.h" >&5
8566 cat > conftest.$ac_ext <<EOF
8567 #line 8568 "configure"
8568 #include "confdefs.h"
8569 #include <canna/jrkanji.h>
8571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8572 { (eval echo configure:8573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8574 if test -z "$ac_err"; then
8576 eval "ac_cv_header_$ac_safe=yes"
8579 echo "configure: failed program was:" >&5
8580 cat conftest.$ac_ext >&5
8582 eval "ac_cv_header_$ac_safe=no"
8585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8586 echo "$ac_t""yes" 1>&6
8587 canna_includes_found=yes
8589 echo "$ac_t""no" 1>&6
8593 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
8594 -d "/usr/local/canna/include"; then
8595 save_c_switch_site="$c_switch_site"
8596 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8597 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8598 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8599 echo "configure:8600: checking for canna/jrkanji.h" >&5
8601 cat > conftest.$ac_ext <<EOF
8602 #line 8603 "configure"
8603 #include "confdefs.h"
8604 #include <canna/jrkanji.h>
8606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8607 { (eval echo configure:8608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8609 if test -z "$ac_err"; then
8611 eval "ac_cv_header_$ac_safe=yes"
8614 echo "configure: failed program was:" >&5
8615 cat conftest.$ac_ext >&5
8617 eval "ac_cv_header_$ac_safe=no"
8620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8621 echo "$ac_t""yes" 1>&6
8622 canna_includes_found=yes
8624 echo "$ac_t""no" 1>&6
8627 if test "$canna_includes_found" != "yes"; then
8628 c_switch_site="$save_c_switch_site"
8633 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8634 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8635 echo "configure:8636: checking for canna/RK.h" >&5
8637 cat > conftest.$ac_ext <<EOF
8638 #line 8639 "configure"
8639 #include "confdefs.h"
8640 #include <canna/RK.h>
8642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8643 { (eval echo configure:8644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8645 if test -z "$ac_err"; then
8647 eval "ac_cv_header_$ac_safe=yes"
8650 echo "configure: failed program was:" >&5
8651 cat conftest.$ac_ext >&5
8653 eval "ac_cv_header_$ac_safe=no"
8656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8657 echo "$ac_t""yes" 1>&6
8660 echo "$ac_t""no" 1>&6
8664 test -z "$with_canna" && {
8665 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8666 echo "configure:8667: checking for RkBgnBun in -lRKC" >&5
8667 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8669 xe_check_libs=" -lRKC "
8670 cat > conftest.$ac_ext <<EOF
8671 #line 8672 "configure"
8672 #include "confdefs.h"
8673 /* Override any gcc2 internal prototype to avoid an error. */
8674 /* We use char because int might match the return type of a gcc2
8675 builtin and then its argument prototype would still apply. */
8682 if { (eval echo configure:8683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8684 eval "ac_cv_lib_$ac_lib_var=yes"
8686 echo "configure: failed program was:" >&5
8687 cat conftest.$ac_ext >&5
8689 eval "ac_cv_lib_$ac_lib_var=no"
8694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8695 echo "$ac_t""yes" 1>&6
8698 echo "$ac_t""no" 1>&6
8703 test -z "$with_canna" && {
8704 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8705 echo "configure:8706: checking for jrKanjiControl in -lcanna" >&5
8706 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8708 xe_check_libs=" -lcanna "
8709 cat > conftest.$ac_ext <<EOF
8710 #line 8711 "configure"
8711 #include "confdefs.h"
8712 /* Override any gcc2 internal prototype to avoid an error. */
8713 /* We use char because int might match the return type of a gcc2
8714 builtin and then its argument prototype would still apply. */
8715 char jrKanjiControl();
8721 if { (eval echo configure:8722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8723 eval "ac_cv_lib_$ac_lib_var=yes"
8725 echo "configure: failed program was:" >&5
8726 cat conftest.$ac_ext >&5
8728 eval "ac_cv_lib_$ac_lib_var=no"
8733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8734 echo "$ac_t""yes" 1>&6
8737 echo "$ac_t""no" 1>&6
8742 test -z "$with_canna" && with_canna=yes
8743 if test "$with_canna" = "yes"; then
8744 { test "$extra_verbose" = "yes" && cat << \EOF
8747 cat >> confdefs.h <<\EOF
8748 #define HAVE_CANNA 1
8752 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
8753 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
8754 echo " xemacs will be linked with \"mule-canna.o\""
8758 else for feature in xim canna wnn; do
8759 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
8760 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
8762 eval "with_${feature}=no"
8766 if test "$need_motif" = "yes" ; then
8767 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8769 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8770 echo "configure:8771: checking for layout_object_getvalue in -li18n" >&5
8771 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8773 xe_check_libs=" -li18n "
8774 cat > conftest.$ac_ext <<EOF
8775 #line 8776 "configure"
8776 #include "confdefs.h"
8777 /* Override any gcc2 internal prototype to avoid an error. */
8778 /* We use char because int might match the return type of a gcc2
8779 builtin and then its argument prototype would still apply. */
8780 char layout_object_getvalue();
8783 layout_object_getvalue()
8786 if { (eval echo configure:8787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8788 eval "ac_cv_lib_$ac_lib_var=yes"
8790 echo "configure: failed program was:" >&5
8791 cat conftest.$ac_ext >&5
8793 eval "ac_cv_lib_$ac_lib_var=no"
8798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8799 echo "$ac_t""yes" 1>&6
8800 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
8802 echo "$ac_t""no" 1>&6
8807 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
8808 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8809 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8811 runpath="" runpath_dirs=""
8812 if test -n "$LD_RUN_PATH"; then
8813 runpath="$LD_RUN_PATH"
8814 elif test "$GCC" = "yes"; then
8815 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
8816 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
8817 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
8818 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
8819 case "$arg" in P,* | -L* | -R* )
8820 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
8822 xe_runpath_dir="$dir"
8823 test "$xe_runpath_dir" != "/lib" -a \
8824 "$xe_runpath_dir" != "/usr/lib" -a \
8825 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8826 eval "$xe_add_unique_runpath_dir"
8831 ld_switch_run="$ld_switch_run_save"
8834 for arg in $ld_switch_site $ld_switch_x_site; do
8835 case "$arg" in -L*) {
8836 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
8837 test "$xe_runpath_dir" != "/lib" -a \
8838 "$xe_runpath_dir" != "/usr/lib" -a \
8839 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8840 eval "$xe_add_unique_runpath_dir"
8843 if test "$opsys $need_motif" = "sol2 yes"; then
8844 xe_runpath_dir="/opt/SUNWdt/lib";
8845 eval "$xe_add_unique_runpath_dir";
8848 if test -n "$runpath"; then
8849 ld_switch_run="${dash_r}${runpath}"
8851 if test "$GCC" = "yes"; then
8852 set x $ld_switch_run; shift; ld_switch_run=""
8853 while test -n "$1"; do
8855 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8856 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
8858 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
8863 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
8869 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
8871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8872 echo "configure:8873: checking for $ac_func" >&5
8874 cat > conftest.$ac_ext <<EOF
8875 #line 8876 "configure"
8876 #include "confdefs.h"
8877 /* System header to define __stub macros and hopefully few prototypes,
8878 which can conflict with char $ac_func(); below. */
8880 /* Override any gcc2 internal prototype to avoid an error. */
8881 /* We use char because int might match the return type of a gcc2
8882 builtin and then its argument prototype would still apply. */
8887 /* The GNU C library defines this for functions which it implements
8888 to always fail with ENOSYS. Some functions are actually named
8889 something starting with __ and the normal name is an alias. */
8890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8898 if { (eval echo configure:8899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8900 eval "ac_cv_func_$ac_func=yes"
8902 echo "configure: failed program was:" >&5
8903 cat conftest.$ac_ext >&5
8905 eval "ac_cv_func_$ac_func=no"
8909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8910 echo "$ac_t""yes" 1>&6
8911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8912 { test "$extra_verbose" = "yes" && cat << EOF
8913 Defining $ac_tr_func
8915 cat >> confdefs.h <<EOF
8916 #define $ac_tr_func 1
8921 echo "$ac_t""no" 1>&6
8928 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8929 echo " xemacs will be linked with \"realpath.o\""
8932 case "$canonical" in
8933 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8934 echo " xemacs will be linked with \"realpath.o\""
8936 * ) for ac_func in realpath
8938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8939 echo "configure:8940: checking for $ac_func" >&5
8941 cat > conftest.$ac_ext <<EOF
8942 #line 8943 "configure"
8943 #include "confdefs.h"
8944 /* System header to define __stub macros and hopefully few prototypes,
8945 which can conflict with char $ac_func(); below. */
8947 /* Override any gcc2 internal prototype to avoid an error. */
8948 /* We use char because int might match the return type of a gcc2
8949 builtin and then its argument prototype would still apply. */
8954 /* The GNU C library defines this for functions which it implements
8955 to always fail with ENOSYS. Some functions are actually named
8956 something starting with __ and the normal name is an alias. */
8957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8965 if { (eval echo configure:8966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8967 eval "ac_cv_func_$ac_func=yes"
8969 echo "configure: failed program was:" >&5
8970 cat conftest.$ac_ext >&5
8972 eval "ac_cv_func_$ac_func=no"
8976 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8977 echo "$ac_t""yes" 1>&6
8978 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8979 { test "$extra_verbose" = "yes" && cat << EOF
8980 Defining $ac_tr_func
8982 cat >> confdefs.h <<EOF
8983 #define $ac_tr_func 1
8988 echo "$ac_t""no" 1>&6
8992 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8993 echo " xemacs will be linked with \"realpath.o\""
8998 for ac_func in getloadavg
9000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9001 echo "configure:9002: checking for $ac_func" >&5
9003 cat > conftest.$ac_ext <<EOF
9004 #line 9005 "configure"
9005 #include "confdefs.h"
9006 /* System header to define __stub macros and hopefully few prototypes,
9007 which can conflict with char $ac_func(); below. */
9009 /* Override any gcc2 internal prototype to avoid an error. */
9010 /* We use char because int might match the return type of a gcc2
9011 builtin and then its argument prototype would still apply. */
9016 /* The GNU C library defines this for functions which it implements
9017 to always fail with ENOSYS. Some functions are actually named
9018 something starting with __ and the normal name is an alias. */
9019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9027 if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9029 eval "ac_cv_func_$ac_func=yes"
9031 echo "configure: failed program was:" >&5
9032 cat conftest.$ac_ext >&5
9034 eval "ac_cv_func_$ac_func=no"
9038 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9039 echo "$ac_t""yes" 1>&6
9040 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9041 { test "$extra_verbose" = "yes" && cat << EOF
9042 Defining $ac_tr_func
9044 cat >> confdefs.h <<EOF
9045 #define $ac_tr_func 1
9050 echo "$ac_t""no" 1>&6
9055 if test "$ac_cv_func_getloadavg" != "yes"
9057 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
9058 echo " xemacs will be linked with \"getloadavg.o\""
9062 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
9063 echo "configure:9064: checking for kstat_open in -lkstat" >&5
9064 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
9066 xe_check_libs=" -lkstat "
9067 cat > conftest.$ac_ext <<EOF
9068 #line 9069 "configure"
9069 #include "confdefs.h"
9070 /* Override any gcc2 internal prototype to avoid an error. */
9071 /* We use char because int might match the return type of a gcc2
9072 builtin and then its argument prototype would still apply. */
9079 if { (eval echo configure:9080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9081 eval "ac_cv_lib_$ac_lib_var=yes"
9083 echo "configure: failed program was:" >&5
9084 cat conftest.$ac_ext >&5
9086 eval "ac_cv_lib_$ac_lib_var=no"
9091 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9092 echo "$ac_t""yes" 1>&6
9093 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9094 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9095 { test "$extra_verbose" = "yes" && cat << EOF
9098 cat >> confdefs.h <<EOF
9099 #define $ac_tr_lib 1
9103 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
9106 echo "$ac_t""no" 1>&6
9112 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
9113 echo "configure:9114: checking for kvm_read in -lkvm" >&5
9114 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
9116 xe_check_libs=" -lkvm "
9117 cat > conftest.$ac_ext <<EOF
9118 #line 9119 "configure"
9119 #include "confdefs.h"
9120 /* Override any gcc2 internal prototype to avoid an error. */
9121 /* We use char because int might match the return type of a gcc2
9122 builtin and then its argument prototype would still apply. */
9129 if { (eval echo configure:9130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9131 eval "ac_cv_lib_$ac_lib_var=yes"
9133 echo "configure: failed program was:" >&5
9134 cat conftest.$ac_ext >&5
9136 eval "ac_cv_lib_$ac_lib_var=no"
9141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9142 echo "$ac_t""yes" 1>&6
9143 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9144 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9145 { test "$extra_verbose" = "yes" && cat << EOF
9148 cat >> confdefs.h <<EOF
9149 #define $ac_tr_lib 1
9153 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
9156 echo "$ac_t""no" 1>&6
9162 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9163 echo "configure:9164: checking whether netdb declares h_errno" >&5
9164 cat > conftest.$ac_ext <<EOF
9165 #line 9166 "configure"
9166 #include "confdefs.h"
9172 if { (eval echo configure:9173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9174 echo "$ac_t""yes" 1>&6
9175 { test "$extra_verbose" = "yes" && cat << \EOF
9176 Defining HAVE_H_ERRNO
9178 cat >> confdefs.h <<\EOF
9179 #define HAVE_H_ERRNO 1
9184 echo "configure: failed program was:" >&5
9185 cat conftest.$ac_ext >&5
9187 echo "$ac_t""no" 1>&6
9191 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9192 echo "configure:9193: checking for sigsetjmp" >&5
9193 cat > conftest.$ac_ext <<EOF
9194 #line 9195 "configure"
9195 #include "confdefs.h"
9198 sigjmp_buf bar; sigsetjmp (bar, 0);
9201 if { (eval echo configure:9202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9203 echo "$ac_t""yes" 1>&6
9204 { test "$extra_verbose" = "yes" && cat << \EOF
9205 Defining HAVE_SIGSETJMP
9207 cat >> confdefs.h <<\EOF
9208 #define HAVE_SIGSETJMP 1
9213 echo "configure: failed program was:" >&5
9214 cat conftest.$ac_ext >&5
9216 echo "$ac_t""no" 1>&6
9220 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9221 echo "configure:9222: checking whether localtime caches TZ" >&5
9223 if test "$ac_cv_func_tzset" = "yes"; then
9224 cat > conftest.$ac_ext <<EOF
9225 #line 9226 "configure"
9226 #include "confdefs.h"
9229 # include <stdlib.h>
9231 extern char **environ;
9235 for (to = from = environ; (*to = *from); from++)
9236 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
9239 char TZ_GMT0[] = "TZ=GMT0";
9240 char TZ_PST8[] = "TZ=PST8";
9243 time_t now = time ((time_t *) 0);
9244 int hour_GMT0, hour_unset;
9245 if (putenv (TZ_GMT0) != 0)
9247 hour_GMT0 = localtime (&now)->tm_hour;
9249 hour_unset = localtime (&now)->tm_hour;
9250 if (putenv (TZ_PST8) != 0)
9252 if (localtime (&now)->tm_hour == hour_GMT0)
9255 if (localtime (&now)->tm_hour != hour_unset)
9260 if { (eval echo configure:9261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9262 emacs_cv_localtime_cache=no
9265 echo "configure: failed program was:" >&5
9266 cat conftest.$ac_ext >&5
9268 emacs_cv_localtime_cache=yes
9272 # If we lack tzset, report that localtime does not cache TZ,
9273 # since we can't invalidate the cache if we don't have tzset.
9274 emacs_cv_localtime_cache=no
9276 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
9277 if test $emacs_cv_localtime_cache = yes; then
9278 { test "$extra_verbose" = "yes" && cat << \EOF
9279 Defining LOCALTIME_CACHE
9281 cat >> confdefs.h <<\EOF
9282 #define LOCALTIME_CACHE 1
9288 if test "$HAVE_TIMEVAL" = "yes"; then
9289 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9290 echo "configure:9291: checking whether gettimeofday accepts one or two arguments" >&5
9291 cat > conftest.$ac_ext <<EOF
9292 #line 9293 "configure"
9293 #include "confdefs.h"
9295 #ifdef TIME_WITH_SYS_TIME
9296 #include <sys/time.h>
9299 #ifdef HAVE_SYS_TIME_H
9300 #include <sys/time.h>
9308 struct timeval time;
9309 struct timezone dummy;
9310 gettimeofday (&time, &dummy);
9314 if { (eval echo configure:9315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9316 echo "$ac_t""two" 1>&6
9318 echo "configure: failed program was:" >&5
9319 cat conftest.$ac_ext >&5
9321 echo "$ac_t""one" 1>&6
9322 { test "$extra_verbose" = "yes" && cat << \EOF
9323 Defining GETTIMEOFDAY_ONE_ARGUMENT
9325 cat >> confdefs.h <<\EOF
9326 #define GETTIMEOFDAY_ONE_ARGUMENT 1
9335 echo $ac_n "checking for inline""... $ac_c" 1>&6
9336 echo "configure:9337: checking for inline" >&5
9339 for ac_kw in inline __inline__ __inline; do
9340 cat > conftest.$ac_ext <<EOF
9341 #line 9342 "configure"
9342 #include "confdefs.h"
9348 if { (eval echo configure:9349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9350 ac_cv_c_inline=$ac_kw; break
9352 echo "configure: failed program was:" >&5
9353 cat conftest.$ac_ext >&5
9359 echo "$ac_t""$ac_cv_c_inline" 1>&6
9360 case "$ac_cv_c_inline" in
9362 no) { test "$extra_verbose" = "yes" && cat << \EOF
9365 cat >> confdefs.h <<\EOF
9370 *) { test "$extra_verbose" = "yes" && cat << EOF
9371 Defining inline = $ac_cv_c_inline
9373 cat >> confdefs.h <<EOF
9374 #define inline $ac_cv_c_inline
9380 if test "$ac_cv_c_inline" != "no"; then
9381 { test "$extra_verbose" = "yes" && cat << \EOF
9382 Defining HAVE_INLINE
9384 cat >> confdefs.h <<\EOF
9385 #define HAVE_INLINE 1
9389 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
9390 echo " xemacs will be linked with \"inline.o\""
9395 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9396 # for constant arguments. Useless!
9397 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9398 echo "configure:9399: checking for working alloca.h" >&5
9400 cat > conftest.$ac_ext <<EOF
9401 #line 9402 "configure"
9402 #include "confdefs.h"
9405 char *p = alloca(2 * sizeof(int));
9408 if { (eval echo configure:9409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9410 ac_cv_header_alloca_h=yes
9412 echo "configure: failed program was:" >&5
9413 cat conftest.$ac_ext >&5
9415 ac_cv_header_alloca_h=no
9419 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
9420 if test $ac_cv_header_alloca_h = yes; then
9421 { test "$extra_verbose" = "yes" && cat << \EOF
9422 Defining HAVE_ALLOCA_H
9424 cat >> confdefs.h <<\EOF
9425 #define HAVE_ALLOCA_H 1
9431 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9432 echo "configure:9433: checking for alloca" >&5
9434 cat > conftest.$ac_ext <<EOF
9435 #line 9436 "configure"
9436 #include "confdefs.h"
9439 # define alloca __builtin_alloca
9442 # include <malloc.h>
9443 # define alloca _alloca
9446 # include <alloca.h>
9451 # ifndef alloca /* predefined by HP cc +Olibcalls */
9460 char *p = (char *) alloca(1);
9463 if { (eval echo configure:9464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9465 ac_cv_func_alloca_works=yes
9467 echo "configure: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9470 ac_cv_func_alloca_works=no
9474 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
9475 if test $ac_cv_func_alloca_works = yes; then
9476 { test "$extra_verbose" = "yes" && cat << \EOF
9477 Defining HAVE_ALLOCA
9479 cat >> confdefs.h <<\EOF
9480 #define HAVE_ALLOCA 1
9486 if test $ac_cv_func_alloca_works = no; then
9487 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9488 # that cause trouble. Some versions do not even contain alloca or
9489 # contain a buggy version. If you still want to use their alloca,
9490 # use ar to extract alloca.o from them instead of compiling alloca.c.
9491 ALLOCA=alloca.${ac_objext}
9492 { test "$extra_verbose" = "yes" && cat << \EOF
9495 cat >> confdefs.h <<\EOF
9501 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9502 echo "configure:9503: checking whether alloca needs Cray hooks" >&5
9504 cat > conftest.$ac_ext <<EOF
9505 #line 9506 "configure"
9506 #include "confdefs.h"
9507 #if defined(CRAY) && ! defined(CRAY2)
9514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9515 egrep "webecray" >/dev/null 2>&1; then
9525 echo "$ac_t""$ac_cv_os_cray" 1>&6
9526 if test $ac_cv_os_cray = yes; then
9527 for ac_func in _getb67 GETB67 getb67; do
9528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9529 echo "configure:9530: checking for $ac_func" >&5
9531 cat > conftest.$ac_ext <<EOF
9532 #line 9533 "configure"
9533 #include "confdefs.h"
9534 /* System header to define __stub macros and hopefully few prototypes,
9535 which can conflict with char $ac_func(); below. */
9537 /* Override any gcc2 internal prototype to avoid an error. */
9538 /* We use char because int might match the return type of a gcc2
9539 builtin and then its argument prototype would still apply. */
9544 /* The GNU C library defines this for functions which it implements
9545 to always fail with ENOSYS. Some functions are actually named
9546 something starting with __ and the normal name is an alias. */
9547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9555 if { (eval echo configure:9556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9557 eval "ac_cv_func_$ac_func=yes"
9559 echo "configure: failed program was:" >&5
9560 cat conftest.$ac_ext >&5
9562 eval "ac_cv_func_$ac_func=no"
9566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9567 echo "$ac_t""yes" 1>&6
9568 { test "$extra_verbose" = "yes" && cat << EOF
9569 Defining CRAY_STACKSEG_END = $ac_func
9571 cat >> confdefs.h <<EOF
9572 #define CRAY_STACKSEG_END $ac_func
9578 echo "$ac_t""no" 1>&6
9584 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9585 echo "configure:9586: checking stack direction for C alloca" >&5
9587 cat > conftest.$ac_ext <<EOF
9588 #line 9589 "configure"
9589 #include "confdefs.h"
9590 find_stack_direction ()
9592 static char *addr = 0;
9597 return find_stack_direction ();
9600 return (&dummy > addr) ? 1 : -1;
9604 exit (find_stack_direction() < 0);
9607 if { (eval echo configure:9608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9609 ac_cv_c_stack_direction=1
9612 echo "configure: failed program was:" >&5
9613 cat conftest.$ac_ext >&5
9615 ac_cv_c_stack_direction=-1
9619 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
9620 { test "$extra_verbose" = "yes" && cat << EOF
9621 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
9623 cat >> confdefs.h <<EOF
9624 #define STACK_DIRECTION $ac_cv_c_stack_direction
9630 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
9631 echo " xemacs will be linked with \"$ALLOCA\""
9634 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9635 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9636 echo "configure:9637: checking for vfork.h" >&5
9638 cat > conftest.$ac_ext <<EOF
9639 #line 9640 "configure"
9640 #include "confdefs.h"
9643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9644 { (eval echo configure:9645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9646 if test -z "$ac_err"; then
9648 eval "ac_cv_header_$ac_safe=yes"
9651 echo "configure: failed program was:" >&5
9652 cat conftest.$ac_ext >&5
9654 eval "ac_cv_header_$ac_safe=no"
9657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9658 echo "$ac_t""yes" 1>&6
9659 { test "$extra_verbose" = "yes" && cat << \EOF
9660 Defining HAVE_VFORK_H
9662 cat >> confdefs.h <<\EOF
9663 #define HAVE_VFORK_H 1
9668 echo "$ac_t""no" 1>&6
9671 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9672 echo "configure:9673: checking for working vfork" >&5
9674 cat > conftest.$ac_ext <<EOF
9675 #line 9676 "configure"
9676 #include "confdefs.h"
9677 /* Thanks to Paul Eggert for this test. */
9679 #include <sys/types.h>
9680 #include <sys/stat.h>
9681 #ifdef HAVE_UNISTD_H
9687 /* On some sparc systems, changes by the child to local and incoming
9688 argument registers are propagated back to the parent.
9689 The compiler is told about this with #include <vfork.h>,
9690 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
9691 Test for this by using a static variable whose address
9692 is put into a register that is clobbered by the vfork. */
9695 sparc_address_test (int arg)
9697 sparc_address_test (arg) int arg;
9715 pid_t parent = getpid ();
9718 sparc_address_test ();
9723 /* Here is another test for sparc vfork register problems.
9724 This test uses lots of local variables, at least
9725 as many local variables as main has allocated so far
9726 including compiler temporaries. 4 locals are enough for
9727 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
9728 A buggy compiler should reuse the register of parent
9729 for one of the local variables, since it will think that
9730 parent can't possibly be used any more in this routine.
9731 Assigning to the local variable will thus munge parent
9732 in the parent process. */
9734 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9735 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9736 /* Convince the compiler that p..p7 are live; otherwise, it might
9737 use the same hardware register for all 8 local variables. */
9738 if (p != p1 || p != p2 || p != p3 || p != p4
9739 || p != p5 || p != p6 || p != p7)
9742 /* On some systems (e.g. IRIX 3.3),
9743 vfork doesn't separate parent from child file descriptors.
9744 If the child closes a descriptor before it execs or exits,
9745 this munges the parent's descriptor as well.
9746 Test for this by closing stdout in the child. */
9747 _exit(close(fileno(stdout)) != 0);
9752 while (wait(&status) != child)
9755 /* Was there some problem with vforking? */
9758 /* Did the child fail? (This shouldn't happen.) */
9761 /* Did the vfork/compiler bug occur? */
9762 || parent != getpid()
9764 /* Did the file descriptor bug occur? */
9765 || fstat(fileno(stdout), &st) != 0
9770 if { (eval echo configure:9771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9772 ac_cv_func_vfork_works=yes
9775 echo "configure: failed program was:" >&5
9776 cat conftest.$ac_ext >&5
9778 ac_cv_func_vfork_works=no
9782 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
9783 if test $ac_cv_func_vfork_works = no; then
9784 { test "$extra_verbose" = "yes" && cat << \EOF
9785 Defining vfork = fork
9787 cat >> confdefs.h <<\EOF
9795 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9796 echo "configure:9797: checking for working strcoll" >&5
9798 cat > conftest.$ac_ext <<EOF
9799 #line 9800 "configure"
9800 #include "confdefs.h"
9804 exit (strcoll ("abc", "def") >= 0 ||
9805 strcoll ("ABC", "DEF") >= 0 ||
9806 strcoll ("123", "456") >= 0);
9809 if { (eval echo configure:9810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9811 ac_cv_func_strcoll_works=yes
9814 echo "configure: failed program was:" >&5
9815 cat conftest.$ac_ext >&5
9817 ac_cv_func_strcoll_works=no
9821 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
9822 if test $ac_cv_func_strcoll_works = yes; then
9823 { test "$extra_verbose" = "yes" && cat << \EOF
9824 Defining HAVE_STRCOLL
9826 cat >> confdefs.h <<\EOF
9827 #define HAVE_STRCOLL 1
9834 for ac_func in getpgrp
9836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9837 echo "configure:9838: checking for $ac_func" >&5
9839 cat > conftest.$ac_ext <<EOF
9840 #line 9841 "configure"
9841 #include "confdefs.h"
9842 /* System header to define __stub macros and hopefully few prototypes,
9843 which can conflict with char $ac_func(); below. */
9845 /* Override any gcc2 internal prototype to avoid an error. */
9846 /* We use char because int might match the return type of a gcc2
9847 builtin and then its argument prototype would still apply. */
9852 /* The GNU C library defines this for functions which it implements
9853 to always fail with ENOSYS. Some functions are actually named
9854 something starting with __ and the normal name is an alias. */
9855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9863 if { (eval echo configure:9864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9865 eval "ac_cv_func_$ac_func=yes"
9867 echo "configure: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9870 eval "ac_cv_func_$ac_func=no"
9874 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9875 echo "$ac_t""yes" 1>&6
9876 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9877 { test "$extra_verbose" = "yes" && cat << EOF
9878 Defining $ac_tr_func
9880 cat >> confdefs.h <<EOF
9881 #define $ac_tr_func 1
9886 echo "$ac_t""no" 1>&6
9890 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9891 echo "configure:9892: checking whether getpgrp takes no argument" >&5
9893 cat > conftest.$ac_ext <<EOF
9894 #line 9895 "configure"
9895 #include "confdefs.h"
9898 * If this system has a BSD-style getpgrp(),
9899 * which takes a pid argument, exit unsuccessfully.
9901 * Snarfed from Chet Ramey's bash pgrp.c test program
9904 #include <sys/types.h>
9907 int pg1, pg2, pg3, pg4;
9908 int ng, np, s, child;
9919 * If all of these values are the same, it's pretty sure that
9920 * we're on a system that ignores getpgrp's first argument.
9922 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
9928 else if (child == 0) {
9931 * If this is Sys V, this will not work; pgrp will be
9932 * set to np because setpgrp just changes a pgrp to be
9933 * the same as the pid.
9936 ng = getpgrp(0); /* Same result for Sys V and BSD */
9949 if { (eval echo configure:9950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9951 ac_cv_func_getpgrp_void=yes
9954 echo "configure: failed program was:" >&5
9955 cat conftest.$ac_ext >&5
9957 ac_cv_func_getpgrp_void=no
9962 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
9963 if test $ac_cv_func_getpgrp_void = yes; then
9964 { test "$extra_verbose" = "yes" && cat << \EOF
9965 Defining GETPGRP_VOID
9967 cat >> confdefs.h <<\EOF
9968 #define GETPGRP_VOID 1
9975 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9976 echo "configure:9977: checking for working mmap" >&5
9977 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9978 cat > conftest.$ac_ext <<EOF
9979 #line 9980 "configure"
9980 #include "confdefs.h"
9984 #include <sys/mman.h>
9986 #ifndef MAP_VARIABLE
9987 #define MAP_VARIABLE 0
9991 #define MAP_FAILED -1
9994 int main (int argc, char *argv[])
9998 #ifndef MAP_ANONYMOUS
9999 fd = open ("/dev/zero", O_RDWR);
10002 #define MAP_ANONYMOUS 0
10004 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
10005 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
10006 fd, 0) != (void *) MAP_FAILED)
10008 perror ("conftest: mmap failed");
10012 if { (eval echo configure:10013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10017 echo "configure: failed program was:" >&5
10018 cat conftest.$ac_ext >&5
10022 rm -fr conftest* ;;
10024 echo "$ac_t""$have_mmap" 1>&6
10025 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10028 cat >> confdefs.h <<\EOF
10029 #define HAVE_MMAP 1
10034 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10035 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
10036 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10039 cat >> confdefs.h <<\EOF
10040 #define REL_ALLOC 1
10045 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10046 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10047 echo "configure:10048: checking for termios.h" >&5
10049 cat > conftest.$ac_ext <<EOF
10050 #line 10051 "configure"
10051 #include "confdefs.h"
10052 #include <termios.h>
10054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10055 { (eval echo configure:10056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10057 if test -z "$ac_err"; then
10059 eval "ac_cv_header_$ac_safe=yes"
10062 echo "configure: failed program was:" >&5
10063 cat conftest.$ac_ext >&5
10065 eval "ac_cv_header_$ac_safe=no"
10068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10069 echo "$ac_t""yes" 1>&6
10070 { test "$extra_verbose" = "yes" && cat << \EOF
10071 Defining HAVE_TERMIOS
10073 cat >> confdefs.h <<\EOF
10074 #define HAVE_TERMIOS 1
10078 { test "$extra_verbose" = "yes" && cat << \EOF
10079 Defining SIGNALS_VIA_CHARACTERS
10081 cat >> confdefs.h <<\EOF
10082 #define SIGNALS_VIA_CHARACTERS 1
10086 { test "$extra_verbose" = "yes" && cat << \EOF
10089 cat >> confdefs.h <<\EOF
10090 #define NO_TERMIO 1
10095 echo "$ac_t""no" 1>&6
10096 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10097 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10098 echo "configure:10099: checking for termio.h" >&5
10100 cat > conftest.$ac_ext <<EOF
10101 #line 10102 "configure"
10102 #include "confdefs.h"
10103 #include <termio.h>
10105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10106 { (eval echo configure:10107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10108 if test -z "$ac_err"; then
10110 eval "ac_cv_header_$ac_safe=yes"
10113 echo "configure: failed program was:" >&5
10114 cat conftest.$ac_ext >&5
10116 eval "ac_cv_header_$ac_safe=no"
10119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10120 echo "$ac_t""yes" 1>&6
10121 { test "$extra_verbose" = "yes" && cat << \EOF
10122 Defining HAVE_TERMIO
10124 cat >> confdefs.h <<\EOF
10125 #define HAVE_TERMIO 1
10130 echo "$ac_t""no" 1>&6
10137 echo $ac_n "checking for socket""... $ac_c" 1>&6
10138 echo "configure:10139: checking for socket" >&5
10140 cat > conftest.$ac_ext <<EOF
10141 #line 10142 "configure"
10142 #include "confdefs.h"
10143 /* System header to define __stub macros and hopefully few prototypes,
10144 which can conflict with char socket(); below. */
10145 #include <assert.h>
10146 /* Override any gcc2 internal prototype to avoid an error. */
10147 /* We use char because int might match the return type of a gcc2
10148 builtin and then its argument prototype would still apply. */
10153 /* The GNU C library defines this for functions which it implements
10154 to always fail with ENOSYS. Some functions are actually named
10155 something starting with __ and the normal name is an alias. */
10156 #if defined (__stub_socket) || defined (__stub___socket)
10164 if { (eval echo configure:10165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10166 eval "ac_cv_func_socket=yes"
10168 echo "configure: failed program was:" >&5
10169 cat conftest.$ac_ext >&5
10171 eval "ac_cv_func_socket=no"
10175 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10176 echo "$ac_t""yes" 1>&6
10177 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10178 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10179 echo "configure:10180: checking for netinet/in.h" >&5
10181 cat > conftest.$ac_ext <<EOF
10182 #line 10183 "configure"
10183 #include "confdefs.h"
10184 #include <netinet/in.h>
10186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10187 { (eval echo configure:10188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10189 if test -z "$ac_err"; then
10191 eval "ac_cv_header_$ac_safe=yes"
10194 echo "configure: failed program was:" >&5
10195 cat conftest.$ac_ext >&5
10197 eval "ac_cv_header_$ac_safe=no"
10200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10201 echo "$ac_t""yes" 1>&6
10202 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10203 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10204 echo "configure:10205: checking for arpa/inet.h" >&5
10206 cat > conftest.$ac_ext <<EOF
10207 #line 10208 "configure"
10208 #include "confdefs.h"
10209 #include <arpa/inet.h>
10211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10212 { (eval echo configure:10213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10214 if test -z "$ac_err"; then
10216 eval "ac_cv_header_$ac_safe=yes"
10219 echo "configure: failed program was:" >&5
10220 cat conftest.$ac_ext >&5
10222 eval "ac_cv_header_$ac_safe=no"
10225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10226 echo "$ac_t""yes" 1>&6
10228 { test "$extra_verbose" = "yes" && cat << \EOF
10229 Defining HAVE_SOCKETS
10231 cat >> confdefs.h <<\EOF
10232 #define HAVE_SOCKETS 1
10236 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10237 echo "configure:10238: checking "for sun_len member in struct sockaddr_un"" >&5
10238 cat > conftest.$ac_ext <<EOF
10239 #line 10240 "configure"
10240 #include "confdefs.h"
10242 #include <sys/types.h>
10243 #include <sys/socket.h>
10244 #include <sys/un.h>
10247 static struct sockaddr_un x; x.sun_len = 1;
10250 if { (eval echo configure:10251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10252 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10253 Defining HAVE_SOCKADDR_SUN_LEN
10255 cat >> confdefs.h <<\EOF
10256 #define HAVE_SOCKADDR_SUN_LEN 1
10261 echo "configure: failed program was:" >&5
10262 cat conftest.$ac_ext >&5
10264 echo "$ac_t""no" 1>&6
10267 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10268 echo "configure:10269: checking "for ip_mreq struct in netinet/in.h"" >&5
10269 cat > conftest.$ac_ext <<EOF
10270 #line 10271 "configure"
10271 #include "confdefs.h"
10273 #include <sys/types.h>
10274 #include <netinet/in.h>
10277 static struct ip_mreq x;
10280 if { (eval echo configure:10281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10282 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10283 Defining HAVE_MULTICAST
10285 cat >> confdefs.h <<\EOF
10286 #define HAVE_MULTICAST 1
10291 echo "configure: failed program was:" >&5
10292 cat conftest.$ac_ext >&5
10294 echo "$ac_t""no" 1>&6
10298 echo "$ac_t""no" 1>&6
10302 echo "$ac_t""no" 1>&6
10306 echo "$ac_t""no" 1>&6
10310 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10311 echo "configure:10312: checking for msgget" >&5
10313 cat > conftest.$ac_ext <<EOF
10314 #line 10315 "configure"
10315 #include "confdefs.h"
10316 /* System header to define __stub macros and hopefully few prototypes,
10317 which can conflict with char msgget(); below. */
10318 #include <assert.h>
10319 /* Override any gcc2 internal prototype to avoid an error. */
10320 /* We use char because int might match the return type of a gcc2
10321 builtin and then its argument prototype would still apply. */
10326 /* The GNU C library defines this for functions which it implements
10327 to always fail with ENOSYS. Some functions are actually named
10328 something starting with __ and the normal name is an alias. */
10329 #if defined (__stub_msgget) || defined (__stub___msgget)
10337 if { (eval echo configure:10338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10339 eval "ac_cv_func_msgget=yes"
10341 echo "configure: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10344 eval "ac_cv_func_msgget=no"
10348 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10349 echo "$ac_t""yes" 1>&6
10350 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10351 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10352 echo "configure:10353: checking for sys/ipc.h" >&5
10354 cat > conftest.$ac_ext <<EOF
10355 #line 10356 "configure"
10356 #include "confdefs.h"
10357 #include <sys/ipc.h>
10359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10360 { (eval echo configure:10361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10362 if test -z "$ac_err"; then
10364 eval "ac_cv_header_$ac_safe=yes"
10367 echo "configure: failed program was:" >&5
10368 cat conftest.$ac_ext >&5
10370 eval "ac_cv_header_$ac_safe=no"
10373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10374 echo "$ac_t""yes" 1>&6
10375 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10376 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10377 echo "configure:10378: checking for sys/msg.h" >&5
10379 cat > conftest.$ac_ext <<EOF
10380 #line 10381 "configure"
10381 #include "confdefs.h"
10382 #include <sys/msg.h>
10384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10385 { (eval echo configure:10386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10387 if test -z "$ac_err"; then
10389 eval "ac_cv_header_$ac_safe=yes"
10392 echo "configure: failed program was:" >&5
10393 cat conftest.$ac_ext >&5
10395 eval "ac_cv_header_$ac_safe=no"
10398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10399 echo "$ac_t""yes" 1>&6
10400 { test "$extra_verbose" = "yes" && cat << \EOF
10401 Defining HAVE_SYSVIPC
10403 cat >> confdefs.h <<\EOF
10404 #define HAVE_SYSVIPC 1
10409 echo "$ac_t""no" 1>&6
10413 echo "$ac_t""no" 1>&6
10417 echo "$ac_t""no" 1>&6
10421 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10422 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10423 echo "configure:10424: checking for dirent.h" >&5
10425 cat > conftest.$ac_ext <<EOF
10426 #line 10427 "configure"
10427 #include "confdefs.h"
10428 #include <dirent.h>
10430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10431 { (eval echo configure:10432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10433 if test -z "$ac_err"; then
10435 eval "ac_cv_header_$ac_safe=yes"
10438 echo "configure: failed program was:" >&5
10439 cat conftest.$ac_ext >&5
10441 eval "ac_cv_header_$ac_safe=no"
10444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10445 echo "$ac_t""yes" 1>&6
10446 { test "$extra_verbose" = "yes" && cat << \EOF
10447 Defining SYSV_SYSTEM_DIR
10449 cat >> confdefs.h <<\EOF
10450 #define SYSV_SYSTEM_DIR 1
10455 echo "$ac_t""no" 1>&6
10456 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10457 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10458 echo "configure:10459: checking for sys/dir.h" >&5
10460 cat > conftest.$ac_ext <<EOF
10461 #line 10462 "configure"
10462 #include "confdefs.h"
10463 #include <sys/dir.h>
10465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10466 { (eval echo configure:10467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10468 if test -z "$ac_err"; then
10470 eval "ac_cv_header_$ac_safe=yes"
10473 echo "configure: failed program was:" >&5
10474 cat conftest.$ac_ext >&5
10476 eval "ac_cv_header_$ac_safe=no"
10479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10480 echo "$ac_t""yes" 1>&6
10483 echo "$ac_t""no" 1>&6
10484 { test "$extra_verbose" = "yes" && cat << \EOF
10485 Defining NONSYSTEM_DIR_LIBRARY
10487 cat >> confdefs.h <<\EOF
10488 #define NONSYSTEM_DIR_LIBRARY 1
10497 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10498 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10499 echo "configure:10500: checking for nlist.h" >&5
10501 cat > conftest.$ac_ext <<EOF
10502 #line 10503 "configure"
10503 #include "confdefs.h"
10506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10507 { (eval echo configure:10508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10509 if test -z "$ac_err"; then
10511 eval "ac_cv_header_$ac_safe=yes"
10514 echo "configure: failed program was:" >&5
10515 cat conftest.$ac_ext >&5
10517 eval "ac_cv_header_$ac_safe=no"
10520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10521 echo "$ac_t""yes" 1>&6
10522 { test "$extra_verbose" = "yes" && cat << \EOF
10523 Defining NLIST_STRUCT
10525 cat >> confdefs.h <<\EOF
10526 #define NLIST_STRUCT 1
10531 echo "$ac_t""no" 1>&6
10536 echo "checking "for sound support"" 1>&6
10537 echo "configure:10538: checking "for sound support"" >&5
10538 case "$with_sound" in
10539 native | both ) with_native_sound=yes;;
10540 nas | no ) with_native_sound=no;;
10542 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10544 if test "$with_native_sound" != "no"; then
10545 if test -n "$native_sound_lib"; then
10546 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10547 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10548 echo "configure:10549: checking for multimedia/audio_device.h" >&5
10550 cat > conftest.$ac_ext <<EOF
10551 #line 10552 "configure"
10552 #include "confdefs.h"
10553 #include <multimedia/audio_device.h>
10555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10556 { (eval echo configure:10557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10558 if test -z "$ac_err"; then
10560 eval "ac_cv_header_$ac_safe=yes"
10563 echo "configure: failed program was:" >&5
10564 cat conftest.$ac_ext >&5
10566 eval "ac_cv_header_$ac_safe=no"
10569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10570 echo "$ac_t""yes" 1>&6
10571 sound_found=yes sound_cflags=""
10572 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10573 echo " xemacs will be linked with \"sunplay.o\""
10576 echo "$ac_t""no" 1>&6
10581 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
10583 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10584 echo " xemacs will be linked with \"sunplay.o\""
10586 if test -d "/usr/demo/SOUND/include"
10587 then sound_cflags="-I/usr/demo/SOUND/include"
10588 else sound_cflags="-I/usr/demo/SOUND"
10590 if test -z "$native_sound_lib" ; then
10591 if test -r "/usr/demo/SOUND/lib/libaudio.a"
10592 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
10593 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
10598 if test -z "$sound_found"; then
10599 case "$canonical" in
10601 if test -z "$native_sound_lib"; then
10603 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10604 echo "configure:10605: checking for ALopenport in -laudio" >&5
10605 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10607 xe_check_libs=" -laudio "
10608 cat > conftest.$ac_ext <<EOF
10609 #line 10610 "configure"
10610 #include "confdefs.h"
10611 /* Override any gcc2 internal prototype to avoid an error. */
10612 /* We use char because int might match the return type of a gcc2
10613 builtin and then its argument prototype would still apply. */
10620 if { (eval echo configure:10621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10622 eval "ac_cv_lib_$ac_lib_var=yes"
10624 echo "configure: failed program was:" >&5
10625 cat conftest.$ac_ext >&5
10627 eval "ac_cv_lib_$ac_lib_var=no"
10632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10633 echo "$ac_t""yes" 1>&6
10634 native_sound_lib="-laudio"
10636 echo "$ac_t""no" 1>&6
10641 if test -n "$native_sound_lib"; then
10642 sound_found=yes sound_cflags=""
10643 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
10644 echo " xemacs will be linked with \"sgiplay.o\""
10648 if test -z "$native_sound_lib"; then
10650 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10651 echo "configure:10652: checking for AOpenAudio in -lAlib" >&5
10652 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10654 xe_check_libs=" -lAlib "
10655 cat > conftest.$ac_ext <<EOF
10656 #line 10657 "configure"
10657 #include "confdefs.h"
10658 /* Override any gcc2 internal prototype to avoid an error. */
10659 /* We use char because int might match the return type of a gcc2
10660 builtin and then its argument prototype would still apply. */
10667 if { (eval echo configure:10668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10669 eval "ac_cv_lib_$ac_lib_var=yes"
10671 echo "configure: failed program was:" >&5
10672 cat conftest.$ac_ext >&5
10674 eval "ac_cv_lib_$ac_lib_var=no"
10679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10680 echo "$ac_t""yes" 1>&6
10681 native_sound_lib="-lAlib"
10683 echo "$ac_t""no" 1>&6
10688 if test -n "$native_sound_lib"; then
10690 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
10691 echo " xemacs will be linked with \"hpplay.o\""
10693 if test "$GCC" = "yes" # Kludge city
10694 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
10695 else sound_cflags="+e -I/usr/audio/examples"
10701 if test -z "$sound_found"; then
10702 for dir in "machine" "sys" "linux"; do
10703 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10704 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10705 echo "configure:10706: checking for ${dir}/soundcard.h" >&5
10707 cat > conftest.$ac_ext <<EOF
10708 #line 10709 "configure"
10709 #include "confdefs.h"
10710 #include <${dir}/soundcard.h>
10712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10713 { (eval echo configure:10714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10715 if test -z "$ac_err"; then
10717 eval "ac_cv_header_$ac_safe=yes"
10720 echo "configure: failed program was:" >&5
10721 cat conftest.$ac_ext >&5
10723 eval "ac_cv_header_$ac_safe=no"
10726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10727 echo "$ac_t""yes" 1>&6
10729 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
10730 echo " xemacs will be linked with \"linuxplay.o\""
10732 { test "$extra_verbose" = "yes" && cat << EOF
10733 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
10735 cat >> confdefs.h <<EOF
10736 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
10742 echo "$ac_t""no" 1>&6
10748 test "$sound_found" = "yes" && with_native_sound=yes
10751 if test -z "$with_sound"; then
10752 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
10757 if test "$with_native_sound" = "yes"; then
10758 { test "$extra_verbose" = "yes" && cat << \EOF
10759 Defining HAVE_NATIVE_SOUND
10761 cat >> confdefs.h <<\EOF
10762 #define HAVE_NATIVE_SOUND 1
10766 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
10769 case "$with_sound" in both | nas )
10770 { test "$extra_verbose" = "yes" && cat << \EOF
10771 Defining HAVE_NAS_SOUND
10773 cat >> confdefs.h <<\EOF
10774 #define HAVE_NAS_SOUND 1
10778 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10779 echo " xemacs will be linked with \"nas.o\""
10781 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10782 cat > conftest.$ac_ext <<EOF
10783 #line 10784 "configure"
10784 #include "confdefs.h"
10785 #include <audio/Xtutil.h>
10787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10788 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10792 { test "$extra_verbose" = "yes" && cat << \EOF
10793 Defining NAS_NO_ERROR_JUMP
10795 cat >> confdefs.h <<\EOF
10796 #define NAS_NO_ERROR_JUMP 1
10806 test -z "$with_tty" && with_tty=yes
10808 if test "$with_tty" = "yes" ; then
10809 echo "checking for TTY-related features" 1>&6
10810 echo "configure:10811: checking for TTY-related features" >&5
10811 { test "$extra_verbose" = "yes" && cat << \EOF
10814 cat >> confdefs.h <<\EOF
10819 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
10820 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\""
10823 if test -z "$with_ncurses"; then
10825 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10826 echo "configure:10827: checking for tgetent in -lncurses" >&5
10827 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10829 xe_check_libs=" -lncurses "
10830 cat > conftest.$ac_ext <<EOF
10831 #line 10832 "configure"
10832 #include "confdefs.h"
10833 /* Override any gcc2 internal prototype to avoid an error. */
10834 /* We use char because int might match the return type of a gcc2
10835 builtin and then its argument prototype would still apply. */
10842 if { (eval echo configure:10843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10844 eval "ac_cv_lib_$ac_lib_var=yes"
10846 echo "configure: failed program was:" >&5
10847 cat conftest.$ac_ext >&5
10849 eval "ac_cv_lib_$ac_lib_var=no"
10854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10855 echo "$ac_t""yes" 1>&6
10858 echo "$ac_t""no" 1>&6
10864 if test "$with_ncurses" = "yes"; then
10865 { test "$extra_verbose" = "yes" && cat << \EOF
10866 Defining HAVE_NCURSES
10868 cat >> confdefs.h <<\EOF
10869 #define HAVE_NCURSES 1
10873 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10874 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10875 echo "configure:10876: checking for ncurses/curses.h" >&5
10877 cat > conftest.$ac_ext <<EOF
10878 #line 10879 "configure"
10879 #include "confdefs.h"
10880 #include <ncurses/curses.h>
10882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10883 { (eval echo configure:10884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10885 if test -z "$ac_err"; then
10887 eval "ac_cv_header_$ac_safe=yes"
10890 echo "configure: failed program was:" >&5
10891 cat conftest.$ac_ext >&5
10893 eval "ac_cv_header_$ac_safe=no"
10896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10897 echo "$ac_t""yes" 1>&6
10898 curses_h_path=ncurses/curses.h
10900 echo "$ac_t""no" 1>&6
10903 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10904 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10905 echo "configure:10906: checking for ncurses/term.h" >&5
10907 cat > conftest.$ac_ext <<EOF
10908 #line 10909 "configure"
10909 #include "confdefs.h"
10910 #include <ncurses/term.h>
10912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10913 { (eval echo configure:10914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10915 if test -z "$ac_err"; then
10917 eval "ac_cv_header_$ac_safe=yes"
10920 echo "configure: failed program was:" >&5
10921 cat conftest.$ac_ext >&5
10923 eval "ac_cv_header_$ac_safe=no"
10926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10927 echo "$ac_t""yes" 1>&6
10928 term_h_path=ncurses/term.h
10930 echo "$ac_t""no" 1>&6
10933 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
10934 echo " xemacs will be linked with \"terminfo.o\""
10936 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
10938 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
10939 save_c_switch_site="$c_switch_site"
10940 c_switch_site="$c_switch_site -I/usr/include/ncurses"
10941 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10942 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10943 echo "configure:10944: checking for ncurses/curses.h" >&5
10945 cat > conftest.$ac_ext <<EOF
10946 #line 10947 "configure"
10947 #include "confdefs.h"
10948 #include <ncurses/curses.h>
10950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10951 { (eval echo configure:10952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10953 if test -z "$ac_err"; then
10955 eval "ac_cv_header_$ac_safe=yes"
10958 echo "configure: failed program was:" >&5
10959 cat conftest.$ac_ext >&5
10961 eval "ac_cv_header_$ac_safe=no"
10964 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10965 echo "$ac_t""yes" 1>&6
10966 curses_h_path=ncurses/curses.h
10968 echo "$ac_t""no" 1>&6
10971 if test "$ac_cv_header_ncurses_curses_h" = "yes"
10972 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
10973 else c_switch_site="$save_c_switch_site"
10976 else if test "$have_terminfo" = "yes"; then
10977 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
10978 echo " xemacs will be linked with \"terminfo.o\""
10980 if test -n "$libs_termcap"; then
10981 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10983 for lib in curses termlib termcap; do
10985 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
10986 echo "configure:10987: checking for tgetent in -l$lib" >&5
10987 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
10989 xe_check_libs=" -l$lib "
10990 cat > conftest.$ac_ext <<EOF
10991 #line 10992 "configure"
10992 #include "confdefs.h"
10993 /* Override any gcc2 internal prototype to avoid an error. */
10994 /* We use char because int might match the return type of a gcc2
10995 builtin and then its argument prototype would still apply. */
11002 if { (eval echo configure:11003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11004 eval "ac_cv_lib_$ac_lib_var=yes"
11006 echo "configure: failed program was:" >&5
11007 cat conftest.$ac_ext >&5
11009 eval "ac_cv_lib_$ac_lib_var=no"
11014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11015 echo "$ac_t""yes" 1>&6
11016 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
11018 echo "$ac_t""no" 1>&6
11024 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
11025 echo " xemacs will be linked with \"tparam.o\""
11027 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
11028 if test -n "$libs_termcap"; then
11029 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11032 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11033 echo "configure:11034: checking for tgetent in -lcurses" >&5
11034 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11036 xe_check_libs=" -lcurses "
11037 cat > conftest.$ac_ext <<EOF
11038 #line 11039 "configure"
11039 #include "confdefs.h"
11040 /* Override any gcc2 internal prototype to avoid an error. */
11041 /* We use char because int might match the return type of a gcc2
11042 builtin and then its argument prototype would still apply. */
11049 if { (eval echo configure:11050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11051 eval "ac_cv_lib_$ac_lib_var=yes"
11053 echo "configure: failed program was:" >&5
11054 cat conftest.$ac_ext >&5
11056 eval "ac_cv_lib_$ac_lib_var=no"
11061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11062 echo "$ac_t""yes" 1>&6
11063 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11065 echo "$ac_t""no" 1>&6
11066 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11067 echo "configure:11068: checking for tgetent in -ltermcap" >&5
11068 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11070 xe_check_libs=" -ltermcap "
11071 cat > conftest.$ac_ext <<EOF
11072 #line 11073 "configure"
11073 #include "confdefs.h"
11074 /* Override any gcc2 internal prototype to avoid an error. */
11075 /* We use char because int might match the return type of a gcc2
11076 builtin and then its argument prototype would still apply. */
11083 if { (eval echo configure:11084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11085 eval "ac_cv_lib_$ac_lib_var=yes"
11087 echo "configure: failed program was:" >&5
11088 cat conftest.$ac_ext >&5
11090 eval "ac_cv_lib_$ac_lib_var=no"
11095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11096 echo "$ac_t""yes" 1>&6
11097 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
11099 echo "$ac_t""no" 1>&6
11100 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
11101 echo " xemacs will be linked with \"termcap.o\""
11112 { test "$extra_verbose" = "yes" && cat << EOF
11113 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
11115 cat >> confdefs.h <<EOF
11116 #define CURSES_H_PATH "${curses_h_path-curses.h}"
11120 { test "$extra_verbose" = "yes" && cat << EOF
11121 Defining TERM_H_PATH = "${term_h_path-term.h}"
11123 cat >> confdefs.h <<EOF
11124 #define TERM_H_PATH "${term_h_path-term.h}"
11129 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11130 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11131 echo "configure:11132: checking for gpm.h" >&5
11133 cat > conftest.$ac_ext <<EOF
11134 #line 11135 "configure"
11135 #include "confdefs.h"
11138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11139 { (eval echo configure:11140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11141 if test -z "$ac_err"; then
11143 eval "ac_cv_header_$ac_safe=yes"
11146 echo "configure: failed program was:" >&5
11147 cat conftest.$ac_ext >&5
11149 eval "ac_cv_header_$ac_safe=no"
11152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11153 echo "$ac_t""yes" 1>&6
11156 echo "$ac_t""no" 1>&6
11160 test -z "$with_gpm" && {
11161 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11162 echo "configure:11163: checking for Gpm_Open in -lgpm" >&5
11163 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11165 xe_check_libs=" -lgpm "
11166 cat > conftest.$ac_ext <<EOF
11167 #line 11168 "configure"
11168 #include "confdefs.h"
11169 /* Override any gcc2 internal prototype to avoid an error. */
11170 /* We use char because int might match the return type of a gcc2
11171 builtin and then its argument prototype would still apply. */
11178 if { (eval echo configure:11179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11180 eval "ac_cv_lib_$ac_lib_var=yes"
11182 echo "configure: failed program was:" >&5
11183 cat conftest.$ac_ext >&5
11185 eval "ac_cv_lib_$ac_lib_var=no"
11190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11191 echo "$ac_t""yes" 1>&6
11194 echo "$ac_t""no" 1>&6
11199 if test "$with_gpm" = "yes"; then
11200 { test "$extra_verbose" = "yes" && cat << \EOF
11203 cat >> confdefs.h <<\EOF
11208 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
11209 echo " xemacs will be linked with \"gpmevent.o\""
11211 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
11214 else for feature in ncurses gpm; do
11215 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11216 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
11218 eval "with_${feature}=no"
11221 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
11222 echo " xemacs will be linked with \"event-unixoid.o\""
11226 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11227 != "no no no" && echo "checking for database support" 1>&6
11228 echo "configure:11229: checking for database support" >&5
11230 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
11231 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11232 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11233 echo "configure:11234: checking for ndbm.h" >&5
11235 cat > conftest.$ac_ext <<EOF
11236 #line 11237 "configure"
11237 #include "confdefs.h"
11240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11241 { (eval echo configure:11242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11243 if test -z "$ac_err"; then
11245 eval "ac_cv_header_$ac_safe=yes"
11248 echo "configure: failed program was:" >&5
11249 cat conftest.$ac_ext >&5
11251 eval "ac_cv_header_$ac_safe=no"
11254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11255 echo "$ac_t""yes" 1>&6
11258 echo "$ac_t""no" 1>&6
11260 test "$with_database_gnudbm" = "yes" -o \
11261 "$with_database_dbm" = "yes" && \
11262 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11263 with_database_gnudbm=no with_database_dbm=no
11268 if test "$with_database_gnudbm" != "no"; then
11270 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11271 echo "configure:11272: checking for dbm_open in -lgdbm" >&5
11272 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11274 xe_check_libs=" -lgdbm "
11275 cat > conftest.$ac_ext <<EOF
11276 #line 11277 "configure"
11277 #include "confdefs.h"
11278 /* Override any gcc2 internal prototype to avoid an error. */
11279 /* We use char because int might match the return type of a gcc2
11280 builtin and then its argument prototype would still apply. */
11287 if { (eval echo configure:11288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11289 eval "ac_cv_lib_$ac_lib_var=yes"
11291 echo "configure: failed program was:" >&5
11292 cat conftest.$ac_ext >&5
11294 eval "ac_cv_lib_$ac_lib_var=no"
11299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11300 echo "$ac_t""yes" 1>&6
11301 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm
11303 echo "$ac_t""no" 1>&6
11304 if test "$with_database_gnudbm" = "yes"; then
11305 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
11307 with_database_gnudbm=no
11313 if test "$with_database_dbm" != "no"; then
11314 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11315 echo "configure:11316: checking for dbm_open" >&5
11317 cat > conftest.$ac_ext <<EOF
11318 #line 11319 "configure"
11319 #include "confdefs.h"
11320 /* System header to define __stub macros and hopefully few prototypes,
11321 which can conflict with char dbm_open(); below. */
11322 #include <assert.h>
11323 /* Override any gcc2 internal prototype to avoid an error. */
11324 /* We use char because int might match the return type of a gcc2
11325 builtin and then its argument prototype would still apply. */
11330 /* The GNU C library defines this for functions which it implements
11331 to always fail with ENOSYS. Some functions are actually named
11332 something starting with __ and the normal name is an alias. */
11333 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11341 if { (eval echo configure:11342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11343 eval "ac_cv_func_dbm_open=yes"
11345 echo "configure: failed program was:" >&5
11346 cat conftest.$ac_ext >&5
11348 eval "ac_cv_func_dbm_open=no"
11352 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11353 echo "$ac_t""yes" 1>&6
11354 with_database_dbm=yes libdbm=
11356 echo "$ac_t""no" 1>&6
11359 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11360 echo "configure:11361: checking for dbm_open in -ldbm" >&5
11361 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11363 xe_check_libs=" -ldbm "
11364 cat > conftest.$ac_ext <<EOF
11365 #line 11366 "configure"
11366 #include "confdefs.h"
11367 /* Override any gcc2 internal prototype to avoid an error. */
11368 /* We use char because int might match the return type of a gcc2
11369 builtin and then its argument prototype would still apply. */
11376 if { (eval echo configure:11377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11378 eval "ac_cv_lib_$ac_lib_var=yes"
11380 echo "configure: failed program was:" >&5
11381 cat conftest.$ac_ext >&5
11383 eval "ac_cv_lib_$ac_lib_var=no"
11388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11389 echo "$ac_t""yes" 1>&6
11390 with_database_dbm=yes libdbm=-ldbm
11392 echo "$ac_t""no" 1>&6
11393 test "$with_database_dbm" = "yes" && \
11394 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11395 with_database_dbm=no
11403 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
11404 test "$with_database_gnudbm" = "yes" -o \
11405 "$with_database_dbm" = "yes" && \
11406 { test "$extra_verbose" = "yes" && cat << \EOF
11409 cat >> confdefs.h <<\EOF
11415 if test "$with_database_berkdb" != "no"; then
11416 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11417 echo "configure:11418: checking for Berkeley db.h" >&5
11418 for path in "db/db.h" "db.h"; do
11419 cat > conftest.$ac_ext <<EOF
11420 #line 11421 "configure"
11421 #include "confdefs.h"
11422 #ifdef HAVE_INTTYPES_H
11423 #define __BIT_TYPES_DEFINED__
11424 #include <inttypes.h>
11425 typedef uint8_t u_int8_t;
11426 typedef uint16_t u_int16_t;
11427 typedef uint32_t u_int32_t;
11428 #ifdef WE_DONT_NEED_QUADS
11429 typedef uint64_t u_int64_t;
11438 if { (eval echo configure:11439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11440 db_h_path="$path"; break
11442 echo "configure: failed program was:" >&5
11443 cat conftest.$ac_ext >&5
11447 if test -z "$db_h_path"
11448 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
11449 else echo "$ac_t""$db_h_path" 1>&6
11452 if test "$with_database_berkdb" != "no"; then
11453 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11454 echo "configure:11455: checking for Berkeley DB version" >&5
11455 cat > conftest.$ac_ext <<EOF
11456 #line 11457 "configure"
11457 #include "confdefs.h"
11458 #include <$db_h_path>
11459 #if DB_VERSION_MAJOR > 1
11464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11465 egrep "yes" >/dev/null 2>&1; then
11467 echo "$ac_t""2" 1>&6; dbfunc=db_open
11470 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11474 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11475 echo "configure:11476: checking for $dbfunc" >&5
11477 cat > conftest.$ac_ext <<EOF
11478 #line 11479 "configure"
11479 #include "confdefs.h"
11480 /* System header to define __stub macros and hopefully few prototypes,
11481 which can conflict with char $dbfunc(); below. */
11482 #include <assert.h>
11483 /* Override any gcc2 internal prototype to avoid an error. */
11484 /* We use char because int might match the return type of a gcc2
11485 builtin and then its argument prototype would still apply. */
11490 /* The GNU C library defines this for functions which it implements
11491 to always fail with ENOSYS. Some functions are actually named
11492 something starting with __ and the normal name is an alias. */
11493 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
11501 if { (eval echo configure:11502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11503 eval "ac_cv_func_$dbfunc=yes"
11505 echo "configure: failed program was:" >&5
11506 cat conftest.$ac_ext >&5
11508 eval "ac_cv_func_$dbfunc=no"
11512 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
11513 echo "$ac_t""yes" 1>&6
11514 with_database_berkdb=yes need_libdb=no
11516 echo "$ac_t""no" 1>&6
11519 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11520 echo "configure:11521: checking for $dbfunc in -ldb" >&5
11521 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11523 xe_check_libs=" -ldb "
11524 cat > conftest.$ac_ext <<EOF
11525 #line 11526 "configure"
11526 #include "confdefs.h"
11527 /* Override any gcc2 internal prototype to avoid an error. */
11528 /* We use char because int might match the return type of a gcc2
11529 builtin and then its argument prototype would still apply. */
11536 if { (eval echo configure:11537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11538 eval "ac_cv_lib_$ac_lib_var=yes"
11540 echo "configure: failed program was:" >&5
11541 cat conftest.$ac_ext >&5
11543 eval "ac_cv_lib_$ac_lib_var=no"
11548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11549 echo "$ac_t""yes" 1>&6
11550 with_database_berkdb=yes need_libdb=yes
11552 echo "$ac_t""no" 1>&6
11560 if test "$with_database_berkdb" = "yes"; then
11561 { test "$extra_verbose" = "yes" && cat << EOF
11562 Defining DB_H_PATH = "$db_h_path"
11564 cat >> confdefs.h <<EOF
11565 #define DB_H_PATH "$db_h_path"
11569 { test "$extra_verbose" = "yes" && cat << \EOF
11570 Defining HAVE_BERKELEY_DB
11572 cat >> confdefs.h <<\EOF
11573 #define HAVE_BERKELEY_DB 1
11577 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
11578 else with_database_berkdb=no
11582 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11583 != "no no no"; then
11584 { test "$extra_verbose" = "yes" && cat << \EOF
11585 Defining HAVE_DATABASE
11587 cat >> confdefs.h <<\EOF
11588 #define HAVE_DATABASE 1
11592 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
11593 echo " xemacs will be linked with \"database.o\""
11597 if test "$with_socks" = "yes"; then
11599 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11600 echo "configure:11601: checking for SOCKSinit in -lsocks" >&5
11601 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11603 xe_check_libs=" -lsocks "
11604 cat > conftest.$ac_ext <<EOF
11605 #line 11606 "configure"
11606 #include "confdefs.h"
11607 /* Override any gcc2 internal prototype to avoid an error. */
11608 /* We use char because int might match the return type of a gcc2
11609 builtin and then its argument prototype would still apply. */
11616 if { (eval echo configure:11617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11618 eval "ac_cv_lib_$ac_lib_var=yes"
11620 echo "configure: failed program was:" >&5
11621 cat conftest.$ac_ext >&5
11623 eval "ac_cv_lib_$ac_lib_var=no"
11628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11629 echo "$ac_t""yes" 1>&6
11630 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11631 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11632 { test "$extra_verbose" = "yes" && cat << EOF
11633 Defining $ac_tr_lib
11635 cat >> confdefs.h <<EOF
11636 #define $ac_tr_lib 1
11640 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
11643 echo "$ac_t""no" 1>&6
11647 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
11648 Defining HAVE_SOCKS
11650 cat >> confdefs.h <<\EOF
11651 #define HAVE_SOCKS 1
11657 if test "$usage_tracking" = "yes"; then
11658 { test "$extra_verbose" = "yes" && cat << \EOF
11659 Defining USAGE_TRACKING
11661 cat >> confdefs.h <<\EOF
11662 #define USAGE_TRACKING 1
11666 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11669 for ac_hdr in dlfcn.h
11671 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11673 echo "configure:11674: checking for $ac_hdr" >&5
11675 cat > conftest.$ac_ext <<EOF
11676 #line 11677 "configure"
11677 #include "confdefs.h"
11680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11681 { (eval echo configure:11682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11683 if test -z "$ac_err"; then
11685 eval "ac_cv_header_$ac_safe=yes"
11688 echo "configure: failed program was:" >&5
11689 cat conftest.$ac_ext >&5
11691 eval "ac_cv_header_$ac_safe=no"
11694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11695 echo "$ac_t""yes" 1>&6
11696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11697 { test "$extra_verbose" = "yes" && cat << EOF
11698 Defining $ac_tr_hdr
11700 cat >> confdefs.h <<EOF
11701 #define $ac_tr_hdr 1
11705 { test "$extra_verbose" = "yes" && cat << \EOF
11706 Defining HAVE_DLFCN_H
11708 cat >> confdefs.h <<\EOF
11709 #define HAVE_DLFCN_H 1
11714 echo "$ac_t""no" 1>&6
11718 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11719 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11720 echo "configure:11721: checking for dlopen in -ldl" >&5
11721 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11723 xe_check_libs=" -ldl "
11724 cat > conftest.$ac_ext <<EOF
11725 #line 11726 "configure"
11726 #include "confdefs.h"
11727 /* Override any gcc2 internal prototype to avoid an error. */
11728 /* We use char because int might match the return type of a gcc2
11729 builtin and then its argument prototype would still apply. */
11736 if { (eval echo configure:11737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11738 eval "ac_cv_lib_$ac_lib_var=yes"
11740 echo "configure: failed program was:" >&5
11741 cat conftest.$ac_ext >&5
11743 eval "ac_cv_lib_$ac_lib_var=no"
11748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11749 echo "$ac_t""yes" 1>&6
11750 { test "$extra_verbose" = "yes" && cat << \EOF
11751 Defining HAVE_DLOPEN
11753 cat >> confdefs.h <<\EOF
11754 #define HAVE_DLOPEN 1
11757 DLL_LIB=dl; with_modules=yes
11759 echo "$ac_t""no" 1>&6
11763 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11764 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11765 echo "configure:11766: checking for _dlopen in -lc" >&5
11766 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11768 xe_check_libs=" -lc "
11769 cat > conftest.$ac_ext <<EOF
11770 #line 11771 "configure"
11771 #include "confdefs.h"
11772 /* Override any gcc2 internal prototype to avoid an error. */
11773 /* We use char because int might match the return type of a gcc2
11774 builtin and then its argument prototype would still apply. */
11781 if { (eval echo configure:11782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11783 eval "ac_cv_lib_$ac_lib_var=yes"
11785 echo "configure: failed program was:" >&5
11786 cat conftest.$ac_ext >&5
11788 eval "ac_cv_lib_$ac_lib_var=no"
11793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11794 echo "$ac_t""yes" 1>&6
11795 { test "$extra_verbose" = "yes" && cat << \EOF
11796 Defining HAVE_DLOPEN
11798 cat >> confdefs.h <<\EOF
11799 #define HAVE_DLOPEN 1
11802 DLL_LIB=; with_modules=yes
11804 echo "$ac_t""no" 1>&6
11808 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11809 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11810 echo "configure:11811: checking for dlopen in -lc" >&5
11811 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11813 xe_check_libs=" -lc "
11814 cat > conftest.$ac_ext <<EOF
11815 #line 11816 "configure"
11816 #include "confdefs.h"
11817 /* Override any gcc2 internal prototype to avoid an error. */
11818 /* We use char because int might match the return type of a gcc2
11819 builtin and then its argument prototype would still apply. */
11826 if { (eval echo configure:11827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11828 eval "ac_cv_lib_$ac_lib_var=yes"
11830 echo "configure: failed program was:" >&5
11831 cat conftest.$ac_ext >&5
11833 eval "ac_cv_lib_$ac_lib_var=no"
11838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11839 echo "$ac_t""yes" 1>&6
11840 { test "$extra_verbose" = "yes" && cat << \EOF
11841 Defining HAVE_DLOPEN
11843 cat >> confdefs.h <<\EOF
11844 #define HAVE_DLOPEN 1
11847 DLL_LIB=; with_modules=yes
11849 echo "$ac_t""no" 1>&6
11853 test -z "$with_modules" && {
11854 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11855 echo "configure:11856: checking for shl_load in -ldld" >&5
11856 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11858 xe_check_libs=" -ldld "
11859 cat > conftest.$ac_ext <<EOF
11860 #line 11861 "configure"
11861 #include "confdefs.h"
11862 /* Override any gcc2 internal prototype to avoid an error. */
11863 /* We use char because int might match the return type of a gcc2
11864 builtin and then its argument prototype would still apply. */
11871 if { (eval echo configure:11872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11873 eval "ac_cv_lib_$ac_lib_var=yes"
11875 echo "configure: failed program was:" >&5
11876 cat conftest.$ac_ext >&5
11878 eval "ac_cv_lib_$ac_lib_var=no"
11883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11884 echo "$ac_t""yes" 1>&6
11885 { test "$extra_verbose" = "yes" && cat << \EOF
11886 Defining HAVE_SHL_LOAD
11888 cat >> confdefs.h <<\EOF
11889 #define HAVE_SHL_LOAD 1
11892 DLL_LIB=dld; with_modules=yes
11894 echo "$ac_t""no" 1>&6
11898 test -z "$with_modules" && {
11899 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11900 echo "configure:11901: checking for dld_init in -ldld" >&5
11901 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11903 xe_check_libs=" -ldld "
11904 cat > conftest.$ac_ext <<EOF
11905 #line 11906 "configure"
11906 #include "confdefs.h"
11907 /* Override any gcc2 internal prototype to avoid an error. */
11908 /* We use char because int might match the return type of a gcc2
11909 builtin and then its argument prototype would still apply. */
11916 if { (eval echo configure:11917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11918 eval "ac_cv_lib_$ac_lib_var=yes"
11920 echo "configure: failed program was:" >&5
11921 cat conftest.$ac_ext >&5
11923 eval "ac_cv_lib_$ac_lib_var=no"
11928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11929 echo "$ac_t""yes" 1>&6
11930 { test "$extra_verbose" = "yes" && cat << \EOF
11931 Defining HAVE_DLD_INIT
11933 cat >> confdefs.h <<\EOF
11934 #define HAVE_DLD_INIT 1
11937 DLL_LIB=dld; with_modules=yes
11939 echo "$ac_t""no" 1>&6
11943 if test "$with_modules" = "yes"; then
11950 ld_dynamic_link_flags=
11952 xealias=$internal_configuration
11954 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
11955 echo "configure:11956: checking how to build dynamic libraries for ${xehost}" >&5
11956 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
11959 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
11962 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11963 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11964 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11966 case "$xehost_os" in
11968 # AIX sometimes has problems with the GCC collect2 program. For some
11969 # reason, if we set the COLLECT_NAMES environment variable, the problems
11970 # vanish in a puff of smoke.
11971 if test "${COLLECT_NAMES+set}" != set; then
11973 export COLLECT_NAMES
11978 # Now see if the compiler is really GCC.
11979 if test "$GCC" = "yes"; then
11982 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
11983 echo "configure:11984: checking checking whether we are using GNU C" >&5
11984 cat > conftest.$ac_ext <<EOF
11985 #line 11986 "configure"
11986 #include "confdefs.h"
11993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11994 egrep "yes" >/dev/null 2>&1; then
12003 echo "$ac_t""${XEGCC}" 1>&6
12006 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12007 echo "configure:12008: checking how to produce PIC code" >&5
12010 can_build_shared=yes
12011 if test "$XEGCC" = yes; then
12014 case "$xehost_os" in
12015 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
12016 # PIC is the default for these OSes.
12020 # We can build DLLs from non-PIC.
12023 # FIXME: we need at least 68020 code to build shared libraries, but
12024 # adding the `-m68020' flag to GCC prevents building anything better,
12026 dll_cflags='-m68020 -resident32 -malways-restore-a4'
12033 # PORTME Check for PIC flags for the system compiler.
12034 case "$xehost_os" in
12036 # Is there a better link_static_flag that works with the bundled CC?
12043 # PIC (with -KPIC) is the default.
12047 # We can build DLLs from non-PIC.
12051 # All OSF/1 code is PIC.
12056 dll_cflags='-belf -Kpic'
12090 can_build_shared=no
12095 if test -n "$dll_cflags"; then
12096 echo "$ac_t""${dll_cflags}" 1>&6
12098 # Check to make sure the dll_cflags actually works.
12099 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12100 echo "configure:12101: checking if PIC flag ${dll_cflags} really works" >&5
12101 save_CFLAGS="$CFLAGS"
12102 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12103 cat > conftest.$ac_ext <<EOF
12104 #line 12105 "configure"
12105 #include "confdefs.h"
12111 if { (eval echo configure:12112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12114 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12115 # reports no error. So, we need to grep stderr for (Bundled).
12116 if grep '(Bundled)' config.log >/dev/null; then
12117 echo "$ac_t""no" 1>&6
12118 can_build_shared=no
12121 echo "$ac_t""yes" 1>&6
12124 echo "configure: failed program was:" >&5
12125 cat conftest.$ac_ext >&5
12127 echo "$ac_t""no" 1>&6
12128 can_build_shared=no
12132 CFLAGS="$save_CFLAGS"
12134 echo "$ac_t""none" 1>&6
12137 if test "$can_build_shared" = "yes"; then
12141 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12142 echo "configure:12143: checking if C compiler can produce shared libraries" >&5
12143 if test "$XEGCC" = yes; then
12146 else # Not using GCC
12147 case "$xehost_os" in
12149 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
12150 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
12153 freebsd2* | netbsd* | openbsd*)
12155 xcldf="${wl}-Bshareable"
12164 xcldf="${wl}-b ${wl}+s"
12167 irix5* | irix6* | osf3* | osf4*)
12168 xcldf="${wl}-shared"
12172 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
12178 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
12179 xldf="-assert pure-text -Bstatic"
12182 fi # End if if we are using gcc
12184 if test -n "$xcldf"; then
12185 save_LDFLAGS=$LDFLAGS
12187 save_xe_libs=$xe_libs
12188 LDFLAGS="$xcldf $LDFLAGS"
12191 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12192 cat > conftest.$ac_ext <<EOF
12193 #line 12194 "configure"
12194 #include "confdefs.h"
12200 if { (eval echo configure:12201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12204 echo "configure: failed program was:" >&5
12205 cat conftest.$ac_ext >&5
12210 LDFLAGS=$save_LDFLAGS
12212 xe_libs=$save_xe_libs
12213 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12217 echo "$ac_t""${cc_produces_so}" 1>&6
12220 if test -z "$LTLD"; then
12222 if test "$XEGCC" = yes; then
12223 # Check if gcc -print-prog-name=ld gives a path.
12224 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12225 echo "configure:12226: checking for ld used by GCC" >&5
12226 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12228 # Accept absolute paths.
12230 if test -z "$LTLD"; then
12232 *gcc-lib*) LTLD="$CC"
12240 # If it fails, then pretend we aren't using GCC.
12244 # If it is relative, then search for the first ld in PATH.
12245 with_gnu_ld=unknown
12249 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12250 echo "configure:12251: checking for GNU ld" >&5
12253 if test -z "$LTLD"; then
12254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12255 for ac_dir in $PATH; do
12256 test -z "$ac_dir" && ac_dir=.
12257 if test -f "$ac_dir/$ac_prog"; then
12258 LTLD="$ac_dir/$ac_prog"
12259 # Check to see if the program is GNU ld. I'd rather use --version,
12260 # but apparently some GNU ld's only accept -v.
12261 # Break only if it was the GNU/non-GNU ld that we prefer.
12262 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12272 if test -n "$LTLD"; then
12273 echo "$ac_t""${LTLD}" 1>&6
12275 echo "$ac_t""no" 1>&6
12278 if test -z "$LTLD" -a "$cc_produces_so" = no; then
12279 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
12284 ld_dynamic_link_flags=
12286 # Check to see if it really is or isn't GNU ld.
12287 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12288 echo "configure:12289: checking if the linker is GNU ld" >&5
12289 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12290 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12295 echo "$ac_t""${xe_gnu_ld}" 1>&6
12297 case "$xehost_os" in
12298 amigaos* | sunos4*)
12299 # On these operating systems, we should treat GNU ld like the system ld.
12300 gnu_ld_acts_native=yes
12303 gnu_ld_acts_native=no
12307 if test "$cc_produces_so" = "yes"; then
12310 can_build_shared=yes
12312 # OK - only NOW do we futz about with ld.
12313 # See if the linker supports building shared libraries.
12314 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12315 echo "configure:12316: checking whether the linker supports shared libraries" >&5
12317 dll_ldflags=$LDFLAGS
12319 can_build_shared=yes
12320 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12321 # See if GNU ld supports shared libraries.
12322 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12324 dll_ldflags="-shared"
12330 # PORTME fill in a description of your system's linker (not GNU ld)
12331 case "$xehost_os" in
12341 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12342 # support. Future versions do this automatically, but an explicit c++rt0.o
12343 # doesn't break anything, and helps significantly (at the cost of a little
12348 dll_post="/usr/lib/c++rt0.o"
12351 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
12354 dll_ldflags="-Bshareable"
12357 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
12359 dll_ldflags="-shared"
12373 # Tested with NetBSD 1.2 ld
12388 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
12389 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12392 *gcc*) dll_ldflags="-shared"
12395 *) dll_ldflags="-G"
12401 if test "$XEGCC" = yes; then
12421 can_build_shared=no
12425 echo "$ac_t""${ld_shlibs}" 1>&6
12426 if test "$ld_shlibs" = "no"; then
12427 can_build_shared=no
12429 fi # End of if cc_produces_so = no
12432 if test "$xe_gnu_ld" = yes; then
12433 if test "$ld_shlibs" = yes; then
12434 ld_dynamic_link_flags="${wl}-export-dynamic"
12438 if test -z "$ld_dynamic_link_flags"; then
12439 case "$xehost_os" in
12441 ld_dynamic_link_flags=
12445 ld_dynamic_link_flags=
12449 ld_dynamic_link_flags=
12453 ld_dynamic_link_flags=
12457 ld_dynamic_link_flags=
12461 ld_dynamic_link_flags="${wl}-E"
12465 ld_dynamic_link_flags=
12469 ld_dynamic_link_flags=
12473 ld_dynamic_link_flags=
12477 ld_dynamic_link_flags=
12480 solaris2* | solaris7*)
12481 ld_dynamic_link_flags="${wl}-Bdynamic"
12484 sco3.2v5* | unixware* | sysv5* | sysv4*)
12485 ld_dynamic_link_flags="${wl}-Bexport"
12489 ld_dynamic_link_flags=
12493 ld_dynamic_link_flags=
12497 ld_dynamic_link_flags=
12501 fi # End of if -z ld_dynamic_link_flags
12502 fi # End of if test "$can_build_shared" = "yes"
12511 if test "$can_build_shared" = "yes"; then
12512 { test "$extra_verbose" = "yes" && cat << \EOF
12513 Defining HAVE_SHLIB
12515 cat >> confdefs.h <<\EOF
12516 #define HAVE_SHLIB 1
12520 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then
12521 echo " xemacs will be linked with \"sysdll.o\""
12523 extra_objs="$extra_objs emodules.o" && if test "$extra_verbose" = "yes"; then
12524 echo " xemacs will be linked with \"emodules.o\""
12526 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12527 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
12528 for ac_func in dlerror _dlerror
12530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12531 echo "configure:12532: checking for $ac_func" >&5
12533 cat > conftest.$ac_ext <<EOF
12534 #line 12535 "configure"
12535 #include "confdefs.h"
12536 /* System header to define __stub macros and hopefully few prototypes,
12537 which can conflict with char $ac_func(); below. */
12538 #include <assert.h>
12539 /* Override any gcc2 internal prototype to avoid an error. */
12540 /* We use char because int might match the return type of a gcc2
12541 builtin and then its argument prototype would still apply. */
12546 /* The GNU C library defines this for functions which it implements
12547 to always fail with ENOSYS. Some functions are actually named
12548 something starting with __ and the normal name is an alias. */
12549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12557 if { (eval echo configure:12558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12559 eval "ac_cv_func_$ac_func=yes"
12561 echo "configure: failed program was:" >&5
12562 cat conftest.$ac_ext >&5
12564 eval "ac_cv_func_$ac_func=no"
12568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12569 echo "$ac_t""yes" 1>&6
12570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12571 { test "$extra_verbose" = "yes" && cat << EOF
12572 Defining $ac_tr_func
12574 cat >> confdefs.h <<EOF
12575 #define $ac_tr_func 1
12580 echo "$ac_t""no" 1>&6
12585 echo "configure: warning: disabling shared library support" 1>&2
12590 cat > conftest.$ac_ext <<EOF
12591 #line 12592 "configure"
12592 #include "confdefs.h"
12593 int main(int c,char *v[]){return 0;}
12595 if { (eval echo configure:12596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12600 echo "configure: failed program was:" >&5
12601 cat conftest.$ac_ext >&5
12605 echo "*** PANIC *** The C compiler can no longer build working executables."
12606 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
12607 echo "*** PANIC *** The most likely reason for this problem is that configure"
12608 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
12609 echo "*** PANIC *** found at run time."
12610 echo "*** PANIC ***"
12611 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
12612 echo "*** PANIC *** On other systems, try telling configure where to find the"
12613 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
12614 echo "*** PANIC ***"
12615 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
12616 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
12617 echo "*** PANIC *** on your system. Don't do that."
12622 if test "$win32_processes" = "yes"; then
12623 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
12624 echo " xemacs will be linked with \"process-nt.o\""
12627 { test "$extra_verbose" = "yes" && cat << \EOF
12628 Defining HAVE_UNIX_PROCESSES
12630 cat >> confdefs.h <<\EOF
12631 #define HAVE_UNIX_PROCESSES 1
12635 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
12636 echo " xemacs will be linked with \"process-unix.o\""
12643 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12648 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12653 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
12654 c_switch_general="$T"
12658 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12659 c_switch_window_system="$T"
12663 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12668 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
12669 ld_switch_general="$T"
12673 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12674 ld_switch_window_system="$T"
12678 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12683 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12684 ld_libs_general="$T"
12688 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
12689 ld_libs_window_system="$T"
12693 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12698 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
12699 internal_makefile_list="Makefile.in"
12700 SUBDIR_MAKEFILES=''
12701 test -d lock || mkdir lock
12702 for dir in $MAKE_SUBDIR; do
12703 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
12704 test -d "$d" || mkdir "$d"; cd "$d"
12706 * ) test -d "$dir" || mkdir "$dir" ;;
12710 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12711 SUBDIR_MAKEFILES="$T"
12715 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12716 internal_makefile_list="$T"
12723 for dir in src/s src/m; do
12724 if test ! -d "$dir" ; then
12725 echo Making symbolic link to "$srcdir/$dir"
12726 ${LN_S} "$srcdir/$dir" "$dir"
12730 if test "$extra_verbose" = "yes"; then
12732 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
12736 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
12737 echo "creating src/gdbinit"; echo ""
12738 echo "source $srcdir/src/gdbinit" > src/gdbinit
12741 if test "$__SUNPRO_C" = "yes"; then
12742 echo "creating .sbinit"; echo ""
12743 ( echo "# For use with Sun WorkShop's Source browser."
12744 echo "# See sbquery(1) and sbinit(4) for more information"
12745 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
12772 *\$* ) eval "PREFIX=$PREFIX" ;;
12780 EXEC_PREFIX=$exec_prefix
12782 case "$EXEC_PREFIX" in
12783 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
12794 *\$* ) eval "INFODIR=$INFODIR" ;;
12804 case "$INFOPATH" in
12805 *\$* ) eval "INFOPATH=$INFOPATH" ;;
12813 PACKAGE_PATH=$package_path
12815 case "$PACKAGE_PATH" in
12816 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
12827 *\$* ) eval "LISPDIR=$LISPDIR" ;;
12835 MODULEDIR=$moduledir
12837 case "$MODULEDIR" in
12838 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
12846 SITELISPDIR=$sitelispdir
12848 case "$SITELISPDIR" in
12849 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
12857 SITEMODULEDIR=$sitemoduledir
12859 case "$SITEMODULEDIR" in
12860 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
12871 *\$* ) eval "ETCDIR=$ETCDIR" ;;
12882 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
12893 *\$* ) eval "DOCDIR=$DOCDIR" ;;
12901 ARCHLIBDIR=$archlibdir
12903 case "$ARCHLIBDIR" in
12904 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
12928 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
12936 : ${XEMACS_CC:=$CC}
12939 if test "$with_prefix" = "yes"; then
12940 { test "$extra_verbose" = "yes" && cat << \EOF
12941 Defining PREFIX_USER_DEFINED
12943 cat >> confdefs.h <<\EOF
12944 #define PREFIX_USER_DEFINED 1
12950 if test "$with_site_lisp" = "no"; then
12951 { test "$extra_verbose" = "yes" && cat << \EOF
12952 Defining INHIBIT_SITE_LISP
12954 cat >> confdefs.h <<\EOF
12955 #define INHIBIT_SITE_LISP 1
12960 if test "$with_site_modules" = "no"; then
12961 { test "$extra_verbose" = "yes" && cat << \EOF
12962 Defining INHIBIT_SITE_MODULES
12964 cat >> confdefs.h <<\EOF
12965 #define INHIBIT_SITE_MODULES 1
12973 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12974 ac_configure_args="$T"
12976 { test "$extra_verbose" = "yes" && cat << EOF
12977 Defining EMACS_CONFIGURATION = "$canonical"
12979 cat >> confdefs.h <<EOF
12980 #define EMACS_CONFIGURATION "$canonical"
12984 { test "$extra_verbose" = "yes" && cat << EOF
12985 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
12987 cat >> confdefs.h <<EOF
12988 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
12992 { test "$extra_verbose" = "yes" && cat << EOF
12993 Defining config_machfile = "$machfile"
12995 cat >> confdefs.h <<EOF
12996 #define config_machfile "$machfile"
13000 { test "$extra_verbose" = "yes" && cat << EOF
13001 Defining config_opsysfile = "$opsysfile"
13003 cat >> confdefs.h <<EOF
13004 #define config_opsysfile "$opsysfile"
13011 { test "$extra_verbose" = "yes" && cat << EOF
13012 Defining LD_SWITCH_X_SITE = $null_string
13014 cat >> confdefs.h <<EOF
13015 #define LD_SWITCH_X_SITE $null_string
13019 { test "$extra_verbose" = "yes" && cat << EOF
13020 Defining LD_SWITCH_X_SITE_AUX = $null_string
13022 cat >> confdefs.h <<EOF
13023 #define LD_SWITCH_X_SITE_AUX $null_string
13027 { test "$extra_verbose" = "yes" && cat << EOF
13028 Defining C_SWITCH_X_SITE = $null_string
13030 cat >> confdefs.h <<EOF
13031 #define C_SWITCH_X_SITE $null_string
13035 { test "$extra_verbose" = "yes" && cat << EOF
13036 Defining LD_SWITCH_SITE = $null_string
13038 cat >> confdefs.h <<EOF
13039 #define LD_SWITCH_SITE $null_string
13043 { test "$extra_verbose" = "yes" && cat << EOF
13044 Defining C_SWITCH_SITE = $null_string
13046 cat >> confdefs.h <<EOF
13047 #define C_SWITCH_SITE $null_string
13053 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13054 Defining GNU_MALLOC
13056 cat >> confdefs.h <<\EOF
13057 #define GNU_MALLOC 1
13061 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13062 Defining USE_SYSTEM_MALLOC
13064 cat >> confdefs.h <<\EOF
13065 #define USE_SYSTEM_MALLOC 1
13069 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13070 Defining USE_DEBUG_MALLOC
13072 cat >> confdefs.h <<\EOF
13073 #define USE_DEBUG_MALLOC 1
13077 { test "$extra_verbose" = "yes" && cat << \EOF
13078 Defining USE_SYSTEM_MALLOC
13080 cat >> confdefs.h <<\EOF
13081 #define USE_SYSTEM_MALLOC 1
13086 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13089 cat >> confdefs.h <<\EOF
13094 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13097 cat >> confdefs.h <<\EOF
13102 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13103 Defining EXTERNAL_WIDGET
13105 cat >> confdefs.h <<\EOF
13106 #define EXTERNAL_WIDGET 1
13110 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13111 Defining NO_DOC_FILE
13113 cat >> confdefs.h <<\EOF
13114 #define NO_DOC_FILE 1
13118 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13121 cat >> confdefs.h <<\EOF
13126 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13129 cat >> confdefs.h <<\EOF
13134 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13135 Defining MAIL_USE_POP
13137 cat >> confdefs.h <<\EOF
13138 #define MAIL_USE_POP 1
13142 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13145 cat >> confdefs.h <<\EOF
13150 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13153 cat >> confdefs.h <<\EOF
13158 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13159 Defining USE_UNION_TYPE
13161 cat >> confdefs.h <<\EOF
13162 #define USE_UNION_TYPE 1
13169 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
13171 echo "uname -a: `uname -a`"
13174 echo "$0 $quoted_arguments"
13177 if test ! -z ${emacs_beta_version} ; then
13178 if test -z "${emacs_is_beta}" ; then
13179 xemacs_betaname=".${emacs_beta_version}"
13181 xemacs_betaname="-b${emacs_beta_version}"
13190 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13192 Where should the build process find the source code? $srcdir
13193 What installation prefix should install use? $prefix
13194 What operating system and machine description files should XEmacs use?
13195 \`$opsysfile' and \`$machfile'
13196 What compiler should XEmacs be built with? $CC $CFLAGS
13197 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13198 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13199 What window system should XEmacs use? ${window_system}"
13200 if test "$with_x11" = "yes"; then
13201 echo " Where do we find X Windows header files? $x_includes"
13202 echo " Where do we find X Windows libraries? $x_libraries"
13204 if test -n "$site_includes"; then
13205 echo " Additional header files: $site_includes"
13207 if test -n "$site_libraries"; then
13208 echo " Additional libraries: $site_libraries"
13210 if test -n "$site_prefixes"; then
13211 echo " Additional prefixes: $site_prefixes"
13213 if test -n "$runpath"; then
13214 echo " Runtime library search path: $runpath"
13216 test "$with_dnet" = yes && echo " Compiling in support for DNET."
13217 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
13218 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
13219 if test "$with_xmu" != yes -a "$with_x11" = yes; then
13220 echo " No Xmu; substituting equivalent routines."
13223 if test "$with_xpm" = yes; then
13224 echo " Compiling in support for XPM images."
13225 elif test "$with_x11" = yes; then
13226 echo " --------------------------------------------------------------------"
13227 echo " WARNING: Compiling without XPM support."
13228 if test "$xpm_problem" != ""; then
13229 echo " Reason: $xpm_problem"
13231 echo " WARNING: You should strongly consider installing XPM."
13232 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
13233 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13234 echo " --------------------------------------------------------------------"
13236 if test "$with_png" = yes; then
13237 echo " Compiling in support for PNG image handling."
13238 elif test "$window_system" != "none"; then
13239 echo " --------------------------------------------------------------------"
13240 echo " WARNING: Compiling without PNG image support."
13241 if test "$png_problem" != ""; then
13242 echo " Reason: $png_problem"
13244 echo " WARNING: You should strongly consider installing the PNG libraries."
13245 echo " WARNING: Otherwise certain images and glyphs may not display."
13246 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13247 echo " --------------------------------------------------------------------"
13249 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13250 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13251 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13252 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13253 case "$with_sound" in
13254 nas ) echo " Compiling in network sound (NAS) support." ;;
13255 native ) echo " Compiling in native sound support." ;;
13256 both ) echo " Compiling in both network and native sound support." ;;
13258 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13260 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13261 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13262 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
13264 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
13266 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
13267 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
13269 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
13270 test "$with_utf_2000" = yes && echo " Using UTF-2000 (UTF-8) buffer/string representation."
13271 test "$with_text_coding" = yes && echo " Compiling in Text coding support."
13272 test "$with_file_coding" = yes && echo " Compiling in File coding support."
13273 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
13274 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
13275 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
13276 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
13277 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
13278 if test "$with_wnn" = yes; then
13279 echo " Compiling in support for the WNN input method on Mule."
13280 test "$with_wnn6" = yes && echo " Using WNN version 6."
13282 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
13284 test "$with_cde" = yes && echo " Compiling in support for CDE."
13285 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
13286 test "$with_offix" = yes && echo " Compiling in support for OffiX."
13287 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
13288 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
13289 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
13290 case "$with_menubars" in
13291 lucid ) echo " Using Lucid menubars." ;;
13292 motif ) echo " Using Motif menubars."
13293 echo " *WARNING* The Motif menubar implementation is currently buggy."
13294 echo " We recommend using the Lucid menubar instead."
13295 echo " Re-run configure with --with-menubars='lucid'." ;;
13297 case "$with_scrollbars" in
13298 lucid ) echo " Using Lucid scrollbars." ;;
13299 motif ) echo " Using Motif scrollbars." ;;
13300 athena ) echo " Using Athena scrollbars." ;;
13301 athena3d ) echo " Using Athena-3d scrollbars." ;;
13303 case "$with_widgets" in
13304 motif ) echo " Using Motif native widgets." ;;
13306 case "$with_dialogs" in
13308 echo " Using Motif dialog boxes."
13309 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
13310 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
13311 echo " We recommend using the Athena dialog boxes instead."
13312 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
13313 echo " Read the PROBLEMS file for more information."
13316 athena ) echo " Using Athena dialog boxes." ;;
13317 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13319 test "$with_modules" = "yes" && echo " Compiling in DSO module support."
13320 test "$with_clash_detection" = yes && \
13321 echo " Clash detection will use \"$lockdir\" for locking files."
13322 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13323 test "$with_pop" = yes && echo " Using POP for mail access."
13324 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13325 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
13326 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
13327 test "$debug" = yes && echo " Compiling in extra code for debugging."
13328 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13329 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
13330 != "no no no no no"; then
13331 echo " WARNING: ---------------------------------------------------------"
13332 echo " WARNING: Compiling in support for runtime error checking."
13333 echo " WARNING: XEmacs will run noticeably more slowly as a result."
13334 echo " WARNING: Error checking is on by default for XEmacs beta releases."
13335 echo " WARNING: ---------------------------------------------------------"
13338 ) | tee -a Installation
13342 # Remove any trailing slashes in these variables.
13343 test -n "$prefix" &&
13344 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13345 test -n "$exec_prefix" &&
13346 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13349 for file in $internal_makefile_list; do
13350 test "$file" = src/Makefile.in && \
13351 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13352 ac_output_files="${ac_output_files+$ac_output_files }$file"
13354 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13355 if test "$with_modules" = "yes"; then
13356 ac_output_files="$ac_output_files lib-src/ellcc.h"
13361 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13363 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13364 # Let make expand exec_prefix.
13365 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13367 # Any assignment to VPATH causes Sun make to only execute
13368 # the first set of double-colon rules, so remove it if not needed.
13369 # If there is a colon in the path, we need to keep it.
13370 if test "x$srcdir" = x.; then
13371 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13374 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13376 DEFS=-DHAVE_CONFIG_H
13378 # Without the "./", some shells look in PATH for config.status.
13379 : ${CONFIG_STATUS=./config.status}
13381 echo creating $CONFIG_STATUS
13382 rm -f $CONFIG_STATUS
13383 cat > $CONFIG_STATUS <<EOF
13385 # Generated automatically by configure.
13386 # Run this file to recreate the current configuration.
13387 # This directory was configured as follows,
13388 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13390 # $0 $ac_configure_args
13392 # Compiler output produced by configure, useful for debugging
13393 # configure, is in ./config.log if it exists.
13395 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13398 case "\$ac_option" in
13399 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13400 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13401 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13402 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13403 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13405 -help | --help | --hel | --he | --h)
13406 echo "\$ac_cs_usage"; exit 0 ;;
13407 *) echo "\$ac_cs_usage"; exit 1 ;;
13411 ac_given_srcdir=$srcdir
13412 ac_given_INSTALL="$INSTALL"
13414 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13416 cat >> $CONFIG_STATUS <<EOF
13418 # Protect against being on the right side of a sed subst in config.status.
13419 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13420 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13424 s%@CFLAGS@%$CFLAGS%g
13425 s%@CPPFLAGS@%$CPPFLAGS%g
13426 s%@CXXFLAGS@%$CXXFLAGS%g
13427 s%@FFLAGS@%$FFLAGS%g
13429 s%@LDFLAGS@%$LDFLAGS%g
13431 s%@exec_prefix@%$exec_prefix%g
13432 s%@prefix@%$prefix%g
13433 s%@program_transform_name@%$program_transform_name%g
13434 s%@bindir@%$bindir%g
13435 s%@sbindir@%$sbindir%g
13436 s%@libexecdir@%$libexecdir%g
13437 s%@datadir@%$datadir%g
13438 s%@sysconfdir@%$sysconfdir%g
13439 s%@sharedstatedir@%$sharedstatedir%g
13440 s%@localstatedir@%$localstatedir%g
13441 s%@libdir@%$libdir%g
13442 s%@includedir@%$includedir%g
13443 s%@oldincludedir@%$oldincludedir%g
13444 s%@infodir@%$infodir%g
13445 s%@mandir@%$mandir%g
13447 s%@blddir@%$blddir%g
13450 s%@start_flags@%$start_flags%g
13451 s%@ld_switch_shared@%$ld_switch_shared%g
13452 s%@start_files@%$start_files%g
13454 s%@lib_gcc@%$lib_gcc%g
13455 s%@RANLIB@%$RANLIB%g
13456 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13457 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13458 s%@INSTALL_DATA@%$INSTALL_DATA%g
13460 s%@SET_MAKE@%$SET_MAKE%g
13461 s%@X_CFLAGS@%$X_CFLAGS%g
13462 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13463 s%@X_LIBS@%$X_LIBS%g
13464 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13465 s%@install_pp@%$install_pp%g
13466 s%@libs_xauth@%$libs_xauth%g
13467 s%@dnd_objs@%$dnd_objs%g
13468 s%@lwlib_objs@%$lwlib_objs%g
13469 s%@ALLOCA@%$ALLOCA%g
13470 s%@dll_ld@%$dll_ld%g
13471 s%@dll_cflags@%$dll_cflags%g
13472 s%@dll_ldflags@%$dll_ldflags%g
13473 s%@dll_post@%$dll_post%g
13474 s%@dll_ldo@%$dll_ldo%g
13475 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
13476 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
13477 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
13478 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
13479 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
13480 s%@PROGNAME@%$PROGNAME%g
13481 s%@version@%$version%g
13482 s%@configuration@%$configuration%g
13483 s%@canonical@%$canonical%g
13484 s%@inststaticdir@%$inststaticdir%g
13485 s%@instvardir@%$instvardir%g
13486 s%@srcdir@%$srcdir%g
13487 s%@pkgdir@%$pkgdir%g
13488 s%@statedir@%$statedir%g
13489 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
13490 s%@PREFIX@%$PREFIX%g
13491 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
13492 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
13493 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
13494 s%@INFODIR@%$INFODIR%g
13495 s%@infopath@%$infopath%g
13496 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
13497 s%@INFOPATH@%$INFOPATH%g
13498 s%@package_path@%$package_path%g
13499 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
13500 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
13501 s%@lispdir@%$lispdir%g
13502 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
13503 s%@LISPDIR@%$LISPDIR%g
13504 s%@moduledir@%$moduledir%g
13505 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
13506 s%@MODULEDIR@%$MODULEDIR%g
13507 s%@sitelispdir@%$sitelispdir%g
13508 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
13509 s%@SITELISPDIR@%$SITELISPDIR%g
13510 s%@sitemoduledir@%$sitemoduledir%g
13511 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
13512 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
13513 s%@etcdir@%$etcdir%g
13514 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
13515 s%@ETCDIR@%$ETCDIR%g
13516 s%@lockdir@%$lockdir%g
13517 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
13518 s%@LOCKDIR@%$LOCKDIR%g
13519 s%@docdir@%$docdir%g
13520 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
13521 s%@DOCDIR@%$DOCDIR%g
13522 s%@archlibdir@%$archlibdir%g
13523 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
13524 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
13525 s%@bitmapdir@%$bitmapdir%g
13526 s%@extra_objs@%$extra_objs%g
13527 s%@machfile@%$machfile%g
13528 s%@opsysfile@%$opsysfile%g
13529 s%@c_switch_general@%$c_switch_general%g
13530 s%@c_switch_window_system@%$c_switch_window_system%g
13531 s%@c_switch_all@%$c_switch_all%g
13532 s%@ld_switch_general@%$ld_switch_general%g
13533 s%@ld_switch_window_system@%$ld_switch_window_system%g
13534 s%@ld_switch_all@%$ld_switch_all%g
13535 s%@ld_libs_general@%$ld_libs_general%g
13536 s%@ld_libs_window_system@%$ld_libs_window_system%g
13537 s%@ld_libs_all@%$ld_libs_all%g
13538 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
13539 s%@native_sound_lib@%$native_sound_lib%g
13540 s%@sound_cflags@%$sound_cflags%g
13541 s%@dynodump_arch@%$dynodump_arch%g
13542 s%@XEMACS_CC@%$XEMACS_CC%g
13543 s%@internal_makefile_list@%$internal_makefile_list%g
13548 cat >> $CONFIG_STATUS <<\EOF
13550 # Split the substitutions into bite-sized pieces for seds with
13551 # small command number limits, like on Digital OSF/1 and HP-UX.
13552 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13553 ac_file=1 # Number of current file.
13554 ac_beg=1 # First line for current file.
13555 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13558 while $ac_more_lines; do
13559 if test $ac_beg -gt 1; then
13560 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13562 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13564 if test ! -s conftest.s$ac_file; then
13565 ac_more_lines=false
13566 rm -f conftest.s$ac_file
13568 if test -z "$ac_sed_cmds"; then
13569 ac_sed_cmds="sed -f conftest.s$ac_file"
13571 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13573 ac_file=`expr $ac_file + 1`
13575 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13578 if test -z "$ac_sed_cmds"; then
13583 cat >> $CONFIG_STATUS <<EOF
13585 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
13587 cat >> $CONFIG_STATUS <<\EOF
13588 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13589 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13591 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13592 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13593 *) ac_file_in="${ac_file}.in" ;;
13596 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13598 # Remove last slash and all that follows it. Not all systems have dirname.
13599 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13600 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13601 # The file is in a subdirectory.
13602 test ! -d "$ac_dir" && mkdir "$ac_dir"
13603 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13604 # A "../" for each directory in $ac_dir_suffix.
13605 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13607 ac_dir_suffix= ac_dots=
13610 case "$ac_given_srcdir" in
13612 if test -z "$ac_dots"; then top_srcdir=.
13613 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13614 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13615 *) # Relative path.
13616 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13617 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13620 case "$ac_given_INSTALL" in
13621 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13622 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13625 echo creating "$ac_file"
13627 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13629 *Makefile*) ac_comsub="1i\\
13630 # $configure_input" ;;
13634 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13636 s%@configure_input@%$configure_input%g
13637 s%@srcdir@%$srcdir%g
13638 s%@top_srcdir@%$top_srcdir%g
13639 s%@INSTALL@%$INSTALL%g
13640 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13644 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13645 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13647 # ac_d sets the value in "#define NAME VALUE" lines.
13648 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13649 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13652 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13653 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13654 ac_uB='\([ ]\)%\1#\2define\3'
13657 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13658 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13659 ac_eB='$%\1#\2define\3'
13663 if test "${CONFIG_HEADERS+set}" != set; then
13665 cat >> $CONFIG_STATUS <<EOF
13666 CONFIG_HEADERS="src/config.h lwlib/config.h"
13668 cat >> $CONFIG_STATUS <<\EOF
13670 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13671 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13673 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13674 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13675 *) ac_file_in="${ac_file}.in" ;;
13678 echo creating $ac_file
13680 rm -f conftest.frag conftest.in conftest.out
13681 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13682 cat $ac_file_inputs > conftest.in
13686 # Transform confdefs.h into a sed script conftest.vals that substitutes
13687 # the proper values into config.h.in to produce config.h. And first:
13688 # Protect against being on the right side of a sed subst in config.status.
13689 # Protect against being in an unquoted here document in config.status.
13690 rm -f conftest.vals
13691 cat > conftest.hdr <<\EOF
13694 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13698 sed -n -f conftest.hdr confdefs.h > conftest.vals
13701 # This sed command replaces #undef with comments. This is necessary, for
13702 # example, in the case of _POSIX_SOURCE, which is predefined and required
13703 # on some systems where configure will not decide to define it.
13704 cat >> conftest.vals <<\EOF
13705 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13708 # Break up conftest.vals because some shells have a limit on
13709 # the size of here documents, and old seds have small limits too.
13711 rm -f conftest.tail
13714 ac_lines=`grep -c . conftest.vals`
13715 # grep -c gives empty output for an empty file on some AIX systems.
13716 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13717 # Write a limited-size here document to conftest.frag.
13718 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13719 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13721 sed -f conftest.frag conftest.in > conftest.out
13723 mv conftest.out conftest.in
13724 ' >> $CONFIG_STATUS
13725 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13726 rm -f conftest.vals
13727 mv conftest.tail conftest.vals
13729 rm -f conftest.vals
13731 cat >> $CONFIG_STATUS <<\EOF
13732 rm -f conftest.frag conftest.h
13733 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13734 cat conftest.in >> conftest.h
13736 if cmp -s $ac_file conftest.h 2>/dev/null; then
13737 echo "$ac_file is unchanged"
13740 # Remove last slash and all that follows it. Not all systems have dirname.
13741 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13742 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13743 # The file is in a subdirectory.
13744 test ! -d "$ac_dir" && mkdir "$ac_dir"
13747 mv conftest.h $ac_file
13752 cat >> $CONFIG_STATUS <<EOF
13754 top_srcdir="$srcdir"
13755 MAKE_SUBDIR="$MAKE_SUBDIR"
13758 cat >> $CONFIG_STATUS <<\EOF
13759 for dir in . $MAKE_SUBDIR; do
13764 sed -e '/^# Generated/d' \
13765 -e 's%/\*\*/#.*%%' \
13780 echo creating $dir/Makefile
13781 $CPP -I. -I${top_srcdir}/src junk.c \
13782 | sed -e 's/^\#.*//' \
13783 -e 's/^[ ][ ]*$//'\
13785 | sed -n -e '/^..*$/p' \
13791 chmod 444 Makefile.new
13792 mv -f Makefile.new Makefile
13794 echo creating $dir/GNUmakefile
13795 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
13796 | sed -e 's/^\#.*//' \
13797 -e 's/^[ ][ ]*$//'\
13799 | sed -n -e '/^..*$/p' \
13805 chmod 444 Makefile.new
13806 mv -f Makefile.new GNUmakefile
13812 sed < config.status >> lib-src/config.values \
13813 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
13814 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
13815 -e 's/^\([^ ]*\) $/\1 ""/' \
13821 chmod +x $CONFIG_STATUS
13822 rm -fr confdefs* $ac_clean_files
13823 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1