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 | \
364 memory_usage_stats | \
365 with_clash_detection | \
369 y | ye | yes ) val=yes ;;
371 * ) (echo "$progname: Usage error:"
372 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
373 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
375 eval "$opt=\"$val\"" ;;
393 site_runtime_libraries )
394 if test "$valomitted" = "yes" ; then
395 if test "$#" = 0 ; then
396 (echo "$progname: Usage error:"
397 echo " " "The \`--$optname' option requires a value."
398 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
407 with_debug_malloc | use_debug_malloc | \
408 with_system_malloc | use_system_malloc )
410 y | ye | yes ) val=yes ;;
412 d | de | def | defa | defau | defaul | default ) val=default ;;
413 * ) (echo "$progname: Usage error:"
414 echo " " "The \`--$optname' option requires one of these values:
415 \`yes', \`no', or \`default'."
416 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
418 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
423 with_database_berkdb=no
425 with_database_gnudbm=no
426 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
429 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
430 d | db | dbm ) with_database_dbm=yes ;;
431 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
432 * ) (echo "$progname: Usage error:"
433 echo " " "The \`--$optname' option value
434 must be either \`no' or a comma-separated list
435 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
436 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
439 if test "$with_database_dbm" = "yes" -a \
440 "$with_database_gnudbm" = "yes"; then
441 (echo "$progname: Usage error:"
442 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
443 with the \`--$optname' option."
444 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
450 y | ye | yes ) val=native ;;
451 n | no | non | none ) val=no;;
452 na | nat | nati | nativ | native ) val=native ;;
453 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
454 b | bo | bot | both ) val=both;;
455 * ) (echo "$progname: Usage error:"
456 echo " " "The \`--$optname' option must have one of these values:
457 \`native', \`nas', \`both', or \`none'."
458 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
465 y | ye | yes ) val=yes ;;
466 n | no | non | none ) val=no ;;
467 x | xl | xli | xlib ) val=xlib ;;
468 m | mo | mot | moti | motif ) val=motif ;;
469 * ) (echo "$progname: Usage error:"
470 echo " " "The \`--$optname' option must have one of these values:
471 \`motif', \`xlib', \`yes', or \`no'."
472 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
482 * ) (echo "$progname: Usage error:"
483 echo " " "The \`--$optname' option must have one of these values:
484 \`lockf', \`flock', or \`file'."
485 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
492 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
494 n | no | non | none ) new_default=no ;;
495 a | al | all ) new_default=yes ;;
497 extents ) error_check_extents=yes ;;
498 noextents ) error_check_extents=no ;;
500 typecheck ) error_check_typecheck=yes ;;
501 notypecheck ) error_check_typecheck=no ;;
503 bufpos ) error_check_bufpos=yes ;;
504 nobufpos ) error_check_bufpos=no ;;
506 gc ) error_check_gc=yes ;;
507 nogc ) error_check_gc=no ;;
509 malloc ) error_check_malloc=yes ;;
510 nomalloc ) error_check_malloc=no ;;
512 byte_code ) error_check_byte_code=yes ;;
513 nobyte_code ) error_check_byte_code=no ;;
515 * ) bogus_error_check=yes ;;
517 if test "$bogus_error_check" -o \
518 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
519 if test "$error_check_default" = yes ; then
520 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'."
522 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'."
524 (echo "$progname: Usage error:"
525 echo " " "Valid types for the \`--$optname' option are:
527 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
528 elif test -n "$new_default" ; then
529 error_check_extents=$new_default
530 error_check_typecheck=$new_default
531 error_check_bufpos=$new_default
532 error_check_gc=$new_default
533 error_check_malloc=$new_default
534 error_check_byte_code=$new_default
535 new_default= # reset this
542 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
543 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
544 archlibdir | docdir | package_path )
545 if test "$valomitted" = "yes"; then
546 if test "$#" = 0; then
547 (echo "$progname: Usage error:"
548 echo " " "The \`--$optname' option requires a value."
549 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
556 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
557 Defining EXEC_PREFIX_USER_DEFINED
559 cat >> confdefs.h <<\EOF
560 #define EXEC_PREFIX_USER_DEFINED 1
564 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
565 Defining LISPDIR_USER_DEFINED
567 cat >> confdefs.h <<\EOF
568 #define LISPDIR_USER_DEFINED 1
572 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
573 Defining SITELISPDIR_USER_DEFINED
575 cat >> confdefs.h <<\EOF
576 #define SITELISPDIR_USER_DEFINED 1
580 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
581 Defining MODULEDIR_USER_DEFINED
583 cat >> confdefs.h <<\EOF
584 #define MODULEDIR_USER_DEFINED 1
588 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
589 Defining ETCDIR_USER_DEFINED
591 cat >> confdefs.h <<\EOF
592 #define ETCDIR_USER_DEFINED 1
596 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
597 Defining INFODIR_USER_DEFINED
599 cat >> confdefs.h <<\EOF
600 #define INFODIR_USER_DEFINED 1
604 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
605 Defining INFOPATH_USER_DEFINED
607 cat >> confdefs.h <<\EOF
608 #define INFOPATH_USER_DEFINED 1
612 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
613 Defining PACKAGE_PATH_USER_DEFINED
615 cat >> confdefs.h <<\EOF
616 #define PACKAGE_PATH_USER_DEFINED 1
621 { test "$extra_verbose" = "yes" && cat << \EOF
622 Defining INFODIR_USER_DEFINED
624 cat >> confdefs.h <<\EOF
625 #define INFODIR_USER_DEFINED 1
629 { test "$extra_verbose" = "yes" && cat << \EOF
630 Defining LISPDIR_USER_DEFINED
632 cat >> confdefs.h <<\EOF
633 #define LISPDIR_USER_DEFINED 1
637 { test "$extra_verbose" = "yes" && cat << \EOF
638 Defining MODULEDIR_USER_DEFINED
640 cat >> confdefs.h <<\EOF
641 #define MODULEDIR_USER_DEFINED 1
645 { test "$extra_verbose" = "yes" && cat << \EOF
646 Defining ETCDIR_USER_DEFINED
648 cat >> confdefs.h <<\EOF
649 #define ETCDIR_USER_DEFINED 1
653 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
654 Defining LOCKDIR_USER_DEFINED
656 cat >> confdefs.h <<\EOF
657 #define LOCKDIR_USER_DEFINED 1
661 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
662 Defining DOCDIR_USER_DEFINED
664 cat >> confdefs.h <<\EOF
665 #define DOCDIR_USER_DEFINED 1
669 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
670 Defining ARCHLIBDIR_USER_DEFINED
672 cat >> confdefs.h <<\EOF
673 #define ARCHLIBDIR_USER_DEFINED 1
682 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
685 "with_scrollbars" | \
689 l | lu | luc | luci | lucid ) val=lucid ;;
690 m | mo | mot | moti | motif ) val=motif ;;
691 athena3d | athena-3d ) val=athena3d ;;
692 a | at | ath | athe | athen | athena ) val=athena ;;
693 n | no | non | none ) val=no ;;
694 * ) (echo "$progname: Usage error:"
695 echo " " "The \`--$optname' option must have one of these values:
696 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
697 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
704 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
707 * ) (echo "$progname: Usage error:"
708 echo " " "Unrecognized option: $arg"
709 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
714 *-*-*) configuration="$arg" ;;
716 *) (echo "$progname: Usage error:"
717 echo " " "Unrecognized argument: $arg"
718 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
724 test -n "$cpp" && CPP="$cpp"
725 test -n "$cppflags" && CPPFLAGS="$cppflags"
726 test -n "$libs" && LIBS="$libs"
727 test -n "$ldflags" && LDFLAGS="$ldflags"
729 eval set x "$quoted_arguments"; shift
731 test "$extra_verbose" = "yes" && verbose=yes
733 test -n "$with_x" && with_x11="$with_x"
735 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
736 test "$with_system_malloc" = "default" && with_system_malloc=yes
741 if test "$with_cde $with_tooltalk" = "yes no"; then
742 (echo "$progname: Usage error:"
743 echo " " "--with-cde requires --with-tooltalk"
744 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
745 elif test "$with_tooltalk" = "no" ; then with_cde=no
746 elif test "$with_cde" = "yes"; then with_tooltalk=yes
753 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
754 if test -f "$dir/src/lisp.h" -a \
755 -f "$dir/lisp/version.el" ; then
760 if test -z "$srcdir" ; then
761 (echo "$progname: Usage error:"
762 echo " " "Neither the current directory nor its parent seem to
763 contain the XEmacs sources. If you do not want to build XEmacs in its
764 source tree, you should run \`$progname' in the directory in which
765 you wish to build XEmacs, using the \`--srcdir' option to say where the
766 sources may be found."
767 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
772 if test ! -f "$srcdir/src/lisp.h" -o \
773 ! -f "$srcdir/lisp/version.el" ; then
774 (echo "$progname: Usage error:"
775 echo " " "The directory specified with the \`--srcdir' option,
776 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
777 either run the \`$progname' script at the top of the XEmacs source
778 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
779 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
784 if test -z "$configuration"; then
785 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
786 if test -z "$configuration"; then
787 (echo "$progname: Usage error:"
788 echo " " "XEmacs has not been ported to this host type.
789 Try explicitly specifying the CONFIGURATION when rerunning configure."
790 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
794 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
795 echo "configure:796: checking whether ln -s works" >&5
798 if ln -s X conftestdata 2>/dev/null
801 ac_cv_prog_LN_S="ln -s"
805 LN_S="$ac_cv_prog_LN_S"
806 if test "$ac_cv_prog_LN_S" = "ln -s"; then
807 echo "$ac_t""yes" 1>&6
809 echo "$ac_t""no" 1>&6
813 for dir in lisp etc man info; do
814 if test ! -d "$dir" ; then
815 echo Making symbolic link to "$srcdir/$dir"
816 ${LN_S} "$srcdir/$dir" "$dir"
821 absolute_pwd="`pwd`";
822 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
824 else blddir="$absolute_pwd"; if test -d "/net"; then
825 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
826 blddir=`echo "$blddir" | \
827 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
834 . ) srcdir="$blddir" ;;
835 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
836 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
837 srcdir=`echo "$srcdir" | \
838 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
842 if test `pwd` != `sh -c cd $srcdir && pwd` \
843 && test -f "$srcdir/src/config.h"; then
844 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
845 echo " as a build directory right now; it has been configured in its own"
846 echo " right. To configure in another directory as well, you MUST"
847 echo " use GNU make. If you do not have GNU make, then you must"
848 echo " now do \`make distclean' in $srcdir,"
849 echo " and then run $progname again.") >&2
850 extrasub='/^VPATH[ ]*=/c\
856 vpath %.in $(srcdir)'
859 . "$srcdir/version.sh" || exit 1;
860 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
861 : "${extra_verbose=$beta}"
862 version="${emacs_major_version}.${emacs_minor_version}"
863 { test "$extra_verbose" = "yes" && cat << EOF
864 Defining EMACS_MAJOR_VERSION = $emacs_major_version
866 cat >> confdefs.h <<EOF
867 #define EMACS_MAJOR_VERSION $emacs_major_version
871 { test "$extra_verbose" = "yes" && cat << EOF
872 Defining EMACS_MINOR_VERSION = $emacs_minor_version
874 cat >> confdefs.h <<EOF
875 #define EMACS_MINOR_VERSION $emacs_minor_version
879 if test -n "$emacs_beta_version" ; then
880 if test "$beta" = "yes"; then
881 version="${version}-b${emacs_beta_version}"
882 { test "$extra_verbose" = "yes" && cat << EOF
883 Defining EMACS_BETA_VERSION = $emacs_beta_version
885 cat >> confdefs.h <<EOF
886 #define EMACS_BETA_VERSION $emacs_beta_version
891 version="${version}.${emacs_beta_version}"
892 { test "$extra_verbose" = "yes" && cat << EOF
893 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
895 cat >> confdefs.h <<EOF
896 #define EMACS_PATCH_LEVEL $emacs_beta_version
902 { test "$extra_verbose" = "yes" && cat << EOF
903 Defining XEMACS_CODENAME = "$xemacs_codename"
905 cat >> confdefs.h <<EOF
906 #define XEMACS_CODENAME "$xemacs_codename"
910 { test "$extra_verbose" = "yes" && cat << EOF
911 Defining EMACS_VERSION = "$version"
913 cat >> confdefs.h <<EOF
914 #define EMACS_VERSION "$version"
919 if test "$with_infodock" = "yes"; then
920 if test ! -f ../../ID-INSTALL; then
921 echo "Cannot build InfoDock without InfoDock sources"
926 if test "$with_infodock" = "yes"; then
927 { test "$extra_verbose" = "yes" && cat << EOF
928 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
930 cat >> confdefs.h <<EOF
931 #define INFODOCK_MAJOR_VERSION $infodock_major_version
935 { test "$extra_verbose" = "yes" && cat << EOF
936 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
938 cat >> confdefs.h <<EOF
939 #define INFODOCK_MINOR_VERSION $infodock_minor_version
943 { test "$extra_verbose" = "yes" && cat << EOF
944 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
946 cat >> confdefs.h <<EOF
947 #define INFODOCK_BUILD_VERSION $infodock_build_version
951 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
953 CPPFLAGS="$CPPFLAGS -DINFODOCK"
958 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
959 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
960 Defining ERROR_CHECK_EXTENTS
962 cat >> confdefs.h <<\EOF
963 #define ERROR_CHECK_EXTENTS 1
967 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
968 Defining ERROR_CHECK_TYPECHECK
970 cat >> confdefs.h <<\EOF
971 #define ERROR_CHECK_TYPECHECK 1
975 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
976 Defining ERROR_CHECK_BUFPOS
978 cat >> confdefs.h <<\EOF
979 #define ERROR_CHECK_BUFPOS 1
983 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
984 Defining ERROR_CHECK_GC
986 cat >> confdefs.h <<\EOF
987 #define ERROR_CHECK_GC 1
991 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
992 Defining ERROR_CHECK_MALLOC
994 cat >> confdefs.h <<\EOF
995 #define ERROR_CHECK_MALLOC 1
999 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1000 Defining ERROR_CHECK_BYTE_CODE
1002 cat >> confdefs.h <<\EOF
1003 #define ERROR_CHECK_BYTE_CODE 1
1007 if test "${debug:=$beta}" = "yes"; then
1008 use_assertions=yes memory_usage_stats=yes
1009 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1010 echo " xemacs will be linked with \"debug.o\""
1012 { test "$extra_verbose" = "yes" && cat << \EOF
1013 Defining DEBUG_XEMACS
1015 cat >> confdefs.h <<\EOF
1016 #define DEBUG_XEMACS 1
1021 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1022 Defining USE_ASSERTIONS
1024 cat >> confdefs.h <<\EOF
1025 #define USE_ASSERTIONS 1
1029 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1030 Defining MEMORY_USAGE_STATS
1032 cat >> confdefs.h <<\EOF
1033 #define MEMORY_USAGE_STATS 1
1039 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1040 echo "configure:1041: checking "host system type"" >&5
1041 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1042 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1043 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1044 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1045 echo "$ac_t""$configuration" 1>&6
1053 case "$canonical" in
1054 sparc-*-* ) machine=sparc ;;
1055 alpha*-*-* ) machine=alpha ;;
1056 vax-*-* ) machine=vax ;;
1057 mips-dec-* ) machine=pmax ;;
1058 mips-sgi-* ) machine=iris4d ;;
1059 romp-ibm-* ) machine=ibmrt ;;
1060 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1061 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1062 powerpc*-* ) machine=powerpc ;;
1063 hppa-*-* ) machine=hp800 ;;
1064 m88k-dg-* ) machine=aviion ;;
1065 m68*-sony-* ) machine=news ;;
1066 mips-sony-* ) machine=news-risc ;;
1067 clipper-* ) machine=clipper ;;
1068 arm-* ) machine=arm ;;
1069 ns32k-* ) machine=ns32000 ;;
1072 case "$canonical" in
1073 *-*-linux* ) opsys=linux ;;
1074 *-*-netbsd* ) opsys=netbsd ;;
1075 *-*-openbsd* ) opsys=openbsd ;;
1076 *-*-nextstep* ) opsys=nextstep ;;
1077 *-*-vms ) opsys=vms ;;
1079 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1080 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1081 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1082 *-dec-osf3* ) opsys=decosf3-1 ;;
1083 *-dec-osf4* ) opsys=decosf4-0 ;;
1085 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1086 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1087 *-*-ultrix* ) opsys=ultrix4-3 ;;
1089 *-*-aix3.1* ) opsys=aix3-1 ;;
1090 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1091 *-*-aix3* ) opsys=aix3-2 ;;
1092 *-*-aix4.0* ) opsys=aix4 ;;
1093 *-*-aix4.1* ) opsys=aix4-1 ;;
1094 *-*-aix4* ) opsys=aix4-2 ;;
1096 *-gnu* ) opsys=gnu ;;
1097 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1098 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1099 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1100 *-*-aos4.2 ) opsys=bsd4-2 ;;
1101 *-*-aos* ) opsys=bsd4-3 ;;
1102 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1103 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1104 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1105 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1106 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1107 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1108 if test -z "$NON_GNU_CPP" ; then
1109 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1110 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1114 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1115 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1118 case "$canonical" in
1121 case "$canonical" in
1122 i[3-9]86-*-netbsd*) machine=intel386 ;;
1123 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1124 machine=hp9000s300 ;;
1125 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1126 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1131 case "${canonical}" in
1132 i386-*-openbsd*) machine=intel386 ;;
1133 m68k-*-openbsd*) machine=hp9000s300 ;;
1134 mipsel-*-openbsd*) machine=pmax ;;
1138 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1139 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1141 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1142 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1144 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1146 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1148 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1150 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1152 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1154 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1155 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1156 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1159 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1161 *-convex-bsd* | *-convex-convexos* )
1162 machine=convex opsys=bsd4-3
1163 NON_GNU_CPP="cc -E -P"
1166 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1168 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1169 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1170 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1171 m88k-dg-dgux* ) opsys=dgux ;;
1173 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1174 m88k-motorola-sysv4* )
1175 machine=delta88k opsys=usg5-4-2
1177 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1179 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1180 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1182 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1184 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1185 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1186 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1189 case "`uname -r`" in
1190 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1191 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1193 NON_GNU_CPP="/lib/cpp"
1195 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1196 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1198 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1200 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1203 case "$canonical" in
1204 m68* ) machine=hp9000s300 ;;
1205 hppa* ) machine=hp800 ;;
1208 case "$canonical" in
1209 *-hp-hpux7* ) opsys=hpux ;;
1210 *-hp-hpux8* ) opsys=hpux8 ;;
1211 *-hp-hpux9* ) opsys=hpux9 ;;
1212 *-hp-hpux10* ) opsys=hpux10 ;;
1213 *-hp-hpux11* ) opsys=hpux11 ;;
1217 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1218 echo " xemacs will be linked with \"strcat.o\""
1221 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1222 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1223 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1225 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1228 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1229 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1231 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1232 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1233 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1234 romp-ibm-aos* ) opsys=bsd4-3 ;;
1235 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1236 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1238 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1239 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1241 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1243 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1245 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1247 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1249 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1251 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1253 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1255 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1257 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1259 mips-mips-usg* ) machine=mips4 ;;
1262 NON_GNU_CC="cc -systype bsd43"
1263 NON_GNU_CPP="cc -systype bsd43 -E"
1264 case "$canonical" in
1265 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1266 mips-mips-riscos5* ) opsys=riscos5 ;;
1269 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1270 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1272 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1274 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1276 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1277 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1279 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1281 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1283 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1285 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1287 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1288 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1290 mips-siemens-sysv* | mips-sni-sysv*)
1291 machine=mips-siemens opsys=usg5-4
1292 NON_GNU_CC=/usr/ccs/bin/cc
1293 NON_GNU_CPP=/usr/ccs/lib/cpp
1298 NON_GNU_CC=/usr/ccs/bin/cc
1299 NON_GNU_CPP=/usr/ccs/lib/cpp
1302 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1303 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1304 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1305 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1306 mips-sgi-irix6* ) opsys=irix6-0 ;;
1307 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1308 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1309 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1310 mips-sgi-irix* ) opsys=irix5-0 ;;
1312 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1313 *-sony-news* ) opsys=newsos5 ;;
1315 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1317 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1318 case "$canonical" in
1319 m68*-sunos1* ) machine=sun1 ;;
1320 m68*-sunos2* ) machine=sun2 ;;
1321 m68* ) machine=sun3 ;;
1322 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1323 i*86-*-* ) machine=intel386 ;;
1324 rs6000* ) machine=rs6000 ;;
1327 case "$canonical" in *-sunos5*)
1328 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1331 case "$canonical" in
1333 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1336 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1340 case "$canonical" in
1343 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1344 { test "$extra_verbose" = "yes" && cat << EOF
1345 Defining OS_RELEASE = $os_release
1347 cat >> confdefs.h <<EOF
1348 #define OS_RELEASE $os_release
1353 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1354 *-sunos4.0* ) opsys=sunos4-0 ;;
1355 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1356 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1357 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1358 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1359 *-mach* ) opsys=mach-bsd4-3 ;;
1363 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1365 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1368 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1370 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1371 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1373 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1375 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1377 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1378 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1380 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1382 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1385 case "$canonical" in
1386 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1387 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1388 *-mach* ) opsys=mach-bsd4-3 ;;
1392 ns16k-whitechapel-* ) machine=mg1 ;;
1394 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1398 case "$canonical" in
1399 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1400 *-isc2.2* ) opsys=isc2-2 ;;
1401 *-isc4.0* ) opsys=isc4-0 ;;
1402 *-isc4.* ) opsys=isc4-1
1403 GCC_TEST_OPTIONS=-posix
1404 NON_GCC_TEST_OPTIONS=-Xp
1406 *-isc* ) opsys=isc3-0 ;;
1407 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1408 *-esix* ) opsys=esix ;;
1409 *-mach* ) opsys=mach-bsd4-3 ;;
1410 *-xenix* ) opsys=xenix ;;
1411 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1412 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1413 *-bsdi4* ) opsys=bsdos4 ;;
1414 *-bsdi3* ) opsys=bsdos3 ;;
1415 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1416 *-bsdi2* ) opsys=bsdos2 ;;
1417 *-sco3.2v5* ) opsys=sco5 ;
1418 if test "$dynamic" = "yes" ; then
1419 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1421 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1423 *-sysv5* ) opsys=sco7 ;;
1424 *-386bsd* ) opsys=386bsd ;;
1425 *-freebsd* ) opsys=freebsd ;;
1426 *-nextstep* ) opsys=nextstep ;;
1427 *-pc-cygwin* ) opsys=cygwin32 ;;
1428 *-pc-mingw* ) opsys=mingw32 ;
1429 test -z "$with_tty" && with_tty="no";;
1433 m68k-*-linux* ) machine=m68k opsys=linux ;;
1437 if test -z "$machine" -o -z "$opsys"; then
1438 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1439 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1444 if test -z "$dynamic"; then
1446 hpux* | sunos4* ) dynamic=no ;;
1450 if test "$dynamic" = "yes"; then
1452 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1453 decosf* ) ld_call_shared="-call_shared" ;;
1455 else case "$opsys" in
1457 echo "Static linking is not supported on Solaris 2."
1458 echo "Rerun configure without specifying --dynamic=no."
1460 linux ) ld_call_shared="-Bstatic" ;;
1461 decosf* ) ld_call_shared="-non_shared" ;;
1465 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1467 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1468 { test "$extra_verbose" = "yes" && cat << EOF
1469 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1471 cat >> confdefs.h <<EOF
1472 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1477 machfile="m/${machine}.h"
1478 opsysfile="s/${opsys}.h"
1481 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1482 if test "$with_workshop $with_tooltalk" = "yes no"; then
1483 (echo "$progname: Usage error:"
1484 echo " " "--with-workshop requires --with-tooltalk"
1485 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1486 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1487 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1490 if test "$with_workshop" = "yes"; then
1491 { test "$extra_verbose" = "yes" && cat << \EOF
1494 cat >> confdefs.h <<\EOF
1499 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1500 echo " xemacs will be linked with \"sunpro.o\""
1504 if test "$with_clash_detection" = "yes"; then
1505 { test "$extra_verbose" = "yes" && cat << \EOF
1506 Defining CLASH_DETECTION
1508 cat >> confdefs.h <<\EOF
1509 #define CLASH_DETECTION 1
1513 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1514 echo " xemacs will be linked with \"filelock.o\""
1518 test -n "$compiler" && CC="$compiler"
1519 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1522 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1523 if test "${CFLAGS-unset}" != unset
1524 then cflags_specified=yes;
1525 else cflags_specified=no;
1528 xe_save_CFLAGS="$CFLAGS"
1530 # Extract the first word of "gcc", so it can be a program name with args.
1531 set dummy gcc; ac_word=$2
1532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1533 echo "configure:1534: checking for $ac_word" >&5
1535 if test -n "$CC"; then
1536 ac_cv_prog_CC="$CC" # Let the user override the test.
1538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1540 for ac_dir in $ac_dummy; do
1541 test -z "$ac_dir" && ac_dir=.
1542 if test -f $ac_dir/$ac_word; then
1550 if test -n "$CC"; then
1551 echo "$ac_t""$CC" 1>&6
1553 echo "$ac_t""no" 1>&6
1556 if test -z "$CC"; then
1557 # Extract the first word of "cc", so it can be a program name with args.
1558 set dummy cc; ac_word=$2
1559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1560 echo "configure:1561: checking for $ac_word" >&5
1562 if test -n "$CC"; then
1563 ac_cv_prog_CC="$CC" # Let the user override the test.
1565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1568 for ac_dir in $ac_dummy; do
1569 test -z "$ac_dir" && ac_dir=.
1570 if test -f $ac_dir/$ac_word; then
1571 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1572 ac_prog_rejected=yes
1580 if test $ac_prog_rejected = yes; then
1581 # We found a bogon in the path, so make sure we never use it.
1582 set dummy $ac_cv_prog_CC
1584 if test $# -gt 0; then
1585 # We chose a different compiler from the bogus one.
1586 # However, it has the same basename, so the bogon will be chosen
1587 # first if we set CC to just the basename; use the full file name.
1589 set dummy "$ac_dir/$ac_word" "$@"
1596 if test -n "$CC"; then
1597 echo "$ac_t""$CC" 1>&6
1599 echo "$ac_t""no" 1>&6
1602 if test -z "$CC"; then
1603 case "`uname -s`" in
1605 # Extract the first word of "cl", so it can be a program name with args.
1606 set dummy cl; ac_word=$2
1607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1608 echo "configure:1609: checking for $ac_word" >&5
1610 if test -n "$CC"; then
1611 ac_cv_prog_CC="$CC" # Let the user override the test.
1613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1615 for ac_dir in $ac_dummy; do
1616 test -z "$ac_dir" && ac_dir=.
1617 if test -f $ac_dir/$ac_word; then
1625 if test -n "$CC"; then
1626 echo "$ac_t""$CC" 1>&6
1628 echo "$ac_t""no" 1>&6
1633 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1636 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1637 echo "configure:1638: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1640 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1641 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1642 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1643 ac_cpp='$CPP '"$xe_cppflags"
1644 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1645 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1648 cat > conftest.$ac_ext << EOF
1650 #line 1651 "configure"
1651 #include "confdefs.h"
1655 if { (eval echo configure:1656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1656 ac_cv_prog_cc_works=yes
1657 # If we can't run a trivial program, we are probably using a cross compiler.
1658 if (./conftest; exit) 2>/dev/null; then
1659 ac_cv_prog_cc_cross=no
1661 ac_cv_prog_cc_cross=yes
1664 echo "configure: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1666 ac_cv_prog_cc_works=no
1670 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1671 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1672 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1673 ac_cpp='$CPP '"$xe_cppflags"
1674 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1675 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1678 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1679 if test $ac_cv_prog_cc_works = no; then
1680 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1682 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1683 echo "configure:1684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1684 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1685 cross_compiling=$ac_cv_prog_cc_cross
1687 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1688 echo "configure:1689: checking whether we are using GNU C" >&5
1690 cat > conftest.c <<EOF
1695 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1701 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1703 if test $ac_cv_prog_gcc = yes; then
1709 ac_test_CFLAGS="${CFLAGS+set}"
1710 ac_save_CFLAGS="$CFLAGS"
1712 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1713 echo "configure:1714: checking whether ${CC-cc} accepts -g" >&5
1715 echo 'void f(){}' > conftest.c
1716 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1724 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1725 if test "$ac_test_CFLAGS" = set; then
1726 CFLAGS="$ac_save_CFLAGS"
1727 elif test $ac_cv_prog_cc_g = yes; then
1728 if test "$GCC" = yes; then
1734 if test "$GCC" = yes; then
1741 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1743 # Extract the first word of "gcc", so it can be a program name with args.
1744 set dummy gcc; ac_word=$2
1745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1746 echo "configure:1747: checking for $ac_word" >&5
1748 if test -n "$CC"; then
1749 ac_cv_prog_CC="$CC" # Let the user override the test.
1751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1753 for ac_dir in $ac_dummy; do
1754 test -z "$ac_dir" && ac_dir=.
1755 if test -f $ac_dir/$ac_word; then
1763 if test -n "$CC"; then
1764 echo "$ac_t""$CC" 1>&6
1766 echo "$ac_t""no" 1>&6
1769 if test -z "$CC"; then
1770 # Extract the first word of "cc", so it can be a program name with args.
1771 set dummy cc; ac_word=$2
1772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1773 echo "configure:1774: checking for $ac_word" >&5
1775 if test -n "$CC"; then
1776 ac_cv_prog_CC="$CC" # Let the user override the test.
1778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1781 for ac_dir in $ac_dummy; do
1782 test -z "$ac_dir" && ac_dir=.
1783 if test -f $ac_dir/$ac_word; then
1784 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1785 ac_prog_rejected=yes
1793 if test $ac_prog_rejected = yes; then
1794 # We found a bogon in the path, so make sure we never use it.
1795 set dummy $ac_cv_prog_CC
1797 if test $# -gt 0; then
1798 # We chose a different compiler from the bogus one.
1799 # However, it has the same basename, so the bogon will be chosen
1800 # first if we set CC to just the basename; use the full file name.
1802 set dummy "$ac_dir/$ac_word" "$@"
1809 if test -n "$CC"; then
1810 echo "$ac_t""$CC" 1>&6
1812 echo "$ac_t""no" 1>&6
1815 if test -z "$CC"; then
1816 case "`uname -s`" in
1818 # Extract the first word of "cl", so it can be a program name with args.
1819 set dummy cl; ac_word=$2
1820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1821 echo "configure:1822: checking for $ac_word" >&5
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1828 for ac_dir in $ac_dummy; do
1829 test -z "$ac_dir" && ac_dir=.
1830 if test -f $ac_dir/$ac_word; then
1838 if test -n "$CC"; then
1839 echo "$ac_t""$CC" 1>&6
1841 echo "$ac_t""no" 1>&6
1846 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1849 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1850 echo "configure:1851: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1853 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1854 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1855 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1856 ac_cpp='$CPP '"$xe_cppflags"
1857 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1858 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1861 cat > conftest.$ac_ext << EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1868 if { (eval echo configure:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1869 ac_cv_prog_cc_works=yes
1870 # If we can't run a trivial program, we are probably using a cross compiler.
1871 if (./conftest; exit) 2>/dev/null; then
1872 ac_cv_prog_cc_cross=no
1874 ac_cv_prog_cc_cross=yes
1877 echo "configure: failed program was:" >&5
1878 cat conftest.$ac_ext >&5
1879 ac_cv_prog_cc_works=no
1883 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1884 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1885 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1886 ac_cpp='$CPP '"$xe_cppflags"
1887 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1888 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1891 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1892 if test $ac_cv_prog_cc_works = no; then
1893 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1895 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1896 echo "configure:1897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1897 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1898 cross_compiling=$ac_cv_prog_cc_cross
1900 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1901 echo "configure:1902: checking whether we are using GNU C" >&5
1903 cat > conftest.c <<EOF
1908 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1914 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1916 if test $ac_cv_prog_gcc = yes; then
1922 ac_test_CFLAGS="${CFLAGS+set}"
1923 ac_save_CFLAGS="$CFLAGS"
1925 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1926 echo "configure:1927: checking whether ${CC-cc} accepts -g" >&5
1928 echo 'void f(){}' > conftest.c
1929 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1937 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1938 if test "$ac_test_CFLAGS" = set; then
1939 CFLAGS="$ac_save_CFLAGS"
1940 elif test $ac_cv_prog_cc_g = yes; then
1941 if test "$GCC" = yes; then
1947 if test "$GCC" = yes; then
1954 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1956 # Extract the first word of "gcc", so it can be a program name with args.
1957 set dummy gcc; ac_word=$2
1958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1959 echo "configure:1960: checking for $ac_word" >&5
1961 if test -n "$CC"; then
1962 ac_cv_prog_CC="$CC" # Let the user override the test.
1964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1966 for ac_dir in $ac_dummy; do
1967 test -z "$ac_dir" && ac_dir=.
1968 if test -f $ac_dir/$ac_word; then
1976 if test -n "$CC"; then
1977 echo "$ac_t""$CC" 1>&6
1979 echo "$ac_t""no" 1>&6
1982 if test -z "$CC"; then
1983 # Extract the first word of "cc", so it can be a program name with args.
1984 set dummy cc; ac_word=$2
1985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1986 echo "configure:1987: checking for $ac_word" >&5
1988 if test -n "$CC"; then
1989 ac_cv_prog_CC="$CC" # Let the user override the test.
1991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1994 for ac_dir in $ac_dummy; do
1995 test -z "$ac_dir" && ac_dir=.
1996 if test -f $ac_dir/$ac_word; then
1997 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1998 ac_prog_rejected=yes
2006 if test $ac_prog_rejected = yes; then
2007 # We found a bogon in the path, so make sure we never use it.
2008 set dummy $ac_cv_prog_CC
2010 if test $# -gt 0; then
2011 # We chose a different compiler from the bogus one.
2012 # However, it has the same basename, so the bogon will be chosen
2013 # first if we set CC to just the basename; use the full file name.
2015 set dummy "$ac_dir/$ac_word" "$@"
2022 if test -n "$CC"; then
2023 echo "$ac_t""$CC" 1>&6
2025 echo "$ac_t""no" 1>&6
2028 if test -z "$CC"; then
2029 case "`uname -s`" in
2031 # Extract the first word of "cl", so it can be a program name with args.
2032 set dummy cl; ac_word=$2
2033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2034 echo "configure:2035: checking for $ac_word" >&5
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2041 for ac_dir in $ac_dummy; do
2042 test -z "$ac_dir" && ac_dir=.
2043 if test -f $ac_dir/$ac_word; then
2051 if test -n "$CC"; then
2052 echo "$ac_t""$CC" 1>&6
2054 echo "$ac_t""no" 1>&6
2059 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2062 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2063 echo "configure:2064: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2066 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2067 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2068 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2069 ac_cpp='$CPP '"$xe_cppflags"
2070 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2071 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2074 cat > conftest.$ac_ext << EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2081 if { (eval echo configure:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2082 ac_cv_prog_cc_works=yes
2083 # If we can't run a trivial program, we are probably using a cross compiler.
2084 if (./conftest; exit) 2>/dev/null; then
2085 ac_cv_prog_cc_cross=no
2087 ac_cv_prog_cc_cross=yes
2090 echo "configure: failed program was:" >&5
2091 cat conftest.$ac_ext >&5
2092 ac_cv_prog_cc_works=no
2096 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2097 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2098 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2099 ac_cpp='$CPP '"$xe_cppflags"
2100 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2101 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2104 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2105 if test $ac_cv_prog_cc_works = no; then
2106 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2108 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2109 echo "configure:2110: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2110 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2111 cross_compiling=$ac_cv_prog_cc_cross
2113 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2114 echo "configure:2115: checking whether we are using GNU C" >&5
2116 cat > conftest.c <<EOF
2121 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2127 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2129 if test $ac_cv_prog_gcc = yes; then
2135 ac_test_CFLAGS="${CFLAGS+set}"
2136 ac_save_CFLAGS="$CFLAGS"
2138 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2139 echo "configure:2140: checking whether ${CC-cc} accepts -g" >&5
2141 echo 'void f(){}' > conftest.c
2142 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2150 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2151 if test "$ac_test_CFLAGS" = set; then
2152 CFLAGS="$ac_save_CFLAGS"
2153 elif test $ac_cv_prog_cc_g = yes; then
2154 if test "$GCC" = yes; then
2160 if test "$GCC" = yes; then
2168 CFLAGS="$xe_save_CFLAGS"
2171 test -n "$CPP" -a -d "$CPP" && CPP=
2173 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2175 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2176 echo "configure:2177: checking how to run the C preprocessor" >&5
2177 # On Suns, sometimes $CPP names a directory.
2178 if test -n "$CPP" && test -d "$CPP"; then
2181 if test -z "$CPP"; then
2183 # This must be in double quotes, not single quotes, because CPP may get
2184 # substituted into the Makefile and "${CC-cc}" will confuse make.
2186 # On the NeXT, cc -E runs the code through the compiler's parser,
2187 # not just through cpp.
2188 cat > conftest.$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2195 { (eval echo configure:2196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2197 if test -z "$ac_err"; then
2201 echo "configure: failed program was:" >&5
2202 cat conftest.$ac_ext >&5
2204 CPP="${CC-cc} -E -traditional-cpp"
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2212 { (eval echo configure:2213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2214 if test -z "$ac_err"; then
2218 echo "configure: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2221 CPP="${CC-cc} -nologo -E"
2222 cat > conftest.$ac_ext <<EOF
2223 #line 2224 "configure"
2224 #include "confdefs.h"
2228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2229 { (eval echo configure:2230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2231 if test -z "$ac_err"; then
2235 echo "configure: failed program was:" >&5
2236 cat conftest.$ac_ext >&5
2245 ac_cv_prog_CPP="$CPP"
2246 CPP="$ac_cv_prog_CPP"
2248 ac_cv_prog_CPP="$CPP"
2250 echo "$ac_t""$CPP" 1>&6
2253 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2254 echo "configure:2255: checking for AIX" >&5
2255 cat > conftest.$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2264 egrep "yes" >/dev/null 2>&1; then
2266 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2267 Defining _ALL_SOURCE
2269 cat >> confdefs.h <<\EOF
2270 #define _ALL_SOURCE 1
2276 echo "$ac_t""no" 1>&6
2282 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2283 echo "configure:2284: checking for GNU libc" >&5
2284 cat > conftest.$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2287 #include <features.h>
2290 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2291 #error Not a GNU libc system :-(
2292 ******* ======= ******** &&&&&&&&
2297 if { (eval echo configure:2298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2301 echo "configure: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2307 echo "$ac_t""$have_glibc" 1>&6
2308 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2309 Defining _GNU_SOURCE
2311 cat >> confdefs.h <<\EOF
2312 #define _GNU_SOURCE 1
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2322 #if defined __SUNPRO_C
2324 #elif defined __DECC
2331 if { (eval echo configure:2332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2336 echo "configure: failed program was:" >&5
2337 cat conftest.$ac_ext >&5
2339 case "$conftest_rc" in
2340 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2341 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2349 echo "Extracting information from the machine- and system-dependent headers..."
2351 tempcname="conftest.c"
2355 cat > $tempcname <<EOF
2357 #define C_SWITCH_SITE
2358 #define C_SWITCH_X_SITE
2359 #define LD_SWITCH_SITE
2360 #define LD_SWITCH_X_SITE
2361 #define LD_SWITCH_X_SITE_AUX
2362 #define OS_RELEASE $os_release
2363 #include "$srcdir/src/$opsysfile"
2364 #include "$srcdir/src/$machfile"
2366 #ifndef LIBS_MACHINE
2367 #define LIBS_MACHINE
2369 configure___ libs_machine=LIBS_MACHINE
2374 configure___ libs_system=LIBS_SYSTEM
2376 #ifndef LIBS_TERMCAP
2377 #define LIBS_TERMCAP
2379 configure___ libs_termcap=LIBS_TERMCAP
2381 #ifndef LIB_STANDARD
2382 #define LIB_STANDARD
2384 configure___ libs_standard=LIB_STANDARD
2387 #ifndef OBJECTS_MACHINE
2388 #define OBJECTS_MACHINE
2390 configure___ objects_machine=OBJECTS_MACHINE
2392 #ifndef OBJECTS_SYSTEM
2393 #define OBJECTS_SYSTEM
2395 configure___ objects_system=OBJECTS_SYSTEM
2398 #ifndef C_SWITCH_MACHINE
2399 #define C_SWITCH_MACHINE
2401 configure___ c_switch_machine=C_SWITCH_MACHINE
2403 #ifndef C_SWITCH_SYSTEM
2404 #define C_SWITCH_SYSTEM
2406 configure___ c_switch_system=C_SWITCH_SYSTEM
2409 #ifndef LD_SWITCH_MACHINE
2410 #define LD_SWITCH_MACHINE
2412 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2414 #ifndef LD_SWITCH_SYSTEM
2415 #define LD_SWITCH_SYSTEM
2417 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2421 #define UNEXEC "unexec.o"
2423 configure___ unexec=UNEXEC
2426 #ifndef LD_SWITCH_SHARED
2427 #define LD_SWITCH_SHARED "-c"
2429 configure___ ld_switch_shared=LD_SWITCH_SHARED
2432 #ifdef ORDINARY_LINK
2433 #define LD "\$(CC) \$(CFLAGS)"
2434 #else /* no ORDINARY LINK */
2435 #ifdef COFF_ENCAPSULATE
2436 #define LD "\$(CC) -nostdlib"
2437 #else /* not COFF_ENCAPSULATE */
2440 #else /* ! defined (LINKER) */
2442 #endif /* ! defined (LINKER) */
2443 #endif /* ! defined (COFF_ENCAPSULATE) */
2444 #endif /* not ORDINARY_LINK */
2450 configure___ lib_gcc=LIB_GCC
2452 #ifndef LD_TEXT_START_ADDR
2453 #define LD_TEXT_START_ADDR
2455 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2458 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2460 #ifdef COFF_ENCAPSULATE
2461 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2462 #else /* ! defined (COFF_ENCAPSULATE) */
2463 #define START_FILES "pre-crt0.o /lib/crt0.o"
2464 #endif /* ! defined (COFF_ENCAPSULATE) */
2465 #else /* ! defined (NO_REMAP) */
2466 #define START_FILES "ecrt0.o"
2467 #endif /* ! defined (NO_REMAP) */
2468 #endif /* no ORDINARY_LINK */
2472 configure___ start_files=START_FILES
2474 #ifdef ORDINARY_LINK
2475 configure___ ordinary_link=yes
2477 configure___ ordinary_link=no
2480 #ifdef SYSTEM_MALLOC
2481 configure___ system_malloc=yes
2483 configure___ system_malloc=no
2487 configure___ have_terminfo=yes
2489 configure___ have_terminfo=no
2492 #ifdef MAIL_USE_FLOCK
2493 configure___ mail_use_flock=yes
2495 configure___ mail_use_flock=no
2498 #ifdef MAIL_USE_LOCKF
2499 configure___ mail_use_lockf=yes
2501 configure___ mail_use_lockf=no
2504 #ifdef HAVE_WIN32_PROCESSES
2505 configure___ win32_processes=yes
2507 configure___ win32_processes=no
2512 CPP=`eval "echo $CPP $CPPFLAGS"`
2513 eval `$CPP -Isrc $tempcname \
2514 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2518 test "$extra_verbose" = "yes" && \
2519 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 ""
2521 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2523 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2525 if test "$cflags_specified" = "no"; then
2526 if test "$GCC" = "yes"; then
2527 CFLAGS="-g -O3 -Wall -Wno-switch"
2528 elif test "$__SUNPRO_C" = "yes"; then
2530 sol2 ) CFLAGS="-v -xO4" ;;
2531 sunos4* ) CFLAGS="-xO2";;
2533 elif test "$__DECC" = "yes"; then
2535 elif test "$CC" = "xlc"; then
2536 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2542 if test "$GCC" = "yes"; then
2543 set x $ld_switch_system; shift; ld_switch_system=""
2544 while test -n "$1"; do
2546 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2547 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2549 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2555 if test "$GCC" = "yes"; then
2556 set x $ld_switch_machine; shift; ld_switch_machine=""
2557 while test -n "$1"; do
2559 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2560 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2562 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2568 if test "$GCC" = "yes"; then
2569 set x $LDFLAGS; shift; LDFLAGS=""
2570 while test -n "$1"; do
2572 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2573 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2575 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2581 if test "$GCC" = "yes"; then
2582 set x $ld_call_shared; shift; ld_call_shared=""
2583 while test -n "$1"; do
2585 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2586 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2588 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2594 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2595 echo " xemacs will be linked with \"$objects_machine\""
2597 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2598 echo " xemacs will be linked with \"$objects_system\""
2600 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2601 echo " xemacs will be linked with \"$unexec\""
2604 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2605 echo "configure:2606: checking for dynodump" >&5
2606 if test "$unexec" != "unexsol2.o"; then
2607 echo "$ac_t""no" 1>&6
2609 echo "$ac_t""yes" 1>&6
2610 { test "$extra_verbose" = "yes" && cat << \EOF
2613 cat >> confdefs.h <<\EOF
2618 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2619 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2621 sparc ) dynodump_arch=sparc ;;
2622 *86* ) dynodump_arch=i386 ;;
2623 powerpc ) dynodump_arch=ppc ;;
2625 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
2629 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2631 if test "$unexec" = "unexaix.o"; then
2632 if test "$dynamic" = "no"; then
2633 start_flags="-Wl,-bnso,-bnodelcsect"
2634 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2635 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2636 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2638 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2639 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2642 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2643 echo "configure:2644: checking for terminateAndUnload in -lC" >&5
2644 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2646 xe_check_libs=" -lC "
2647 cat > conftest.$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2650 /* Override any gcc2 internal prototype to avoid an error. */
2651 /* We use char because int might match the return type of a gcc2
2652 builtin and then its argument prototype would still apply. */
2653 char terminateAndUnload();
2656 terminateAndUnload()
2659 if { (eval echo configure:2660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2661 eval "ac_cv_lib_$ac_lib_var=yes"
2663 echo "configure: failed program was:" >&5
2664 cat conftest.$ac_ext >&5
2666 eval "ac_cv_lib_$ac_lib_var=no"
2671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2672 echo "$ac_t""yes" 1>&6
2673 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2675 echo "$ac_t""no" 1>&6
2680 elif test -n "$ld_text_start_addr"; then
2681 start_flags="-T $ld_text_start_addr -e __start"
2687 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2688 test -z "$linker" && linker='$(CC) -nostdlib'
2689 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2691 test "$GCC" != "yes" && lib_gcc=
2697 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2698 if test -n "$site_libraries"; then
2699 for arg in $site_libraries; do
2702 * ) test -d "$arg" || \
2703 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2706 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2710 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2711 if test -n "$site_includes"; then
2712 for arg in $site_includes; do
2715 * ) test -d "$arg" || \
2716 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2719 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2723 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2724 if test -n "$site_prefixes"; then
2725 for dir in $site_prefixes; do
2726 lib_dir="${dir}/lib"
2727 inc_dir="${dir}/include"
2728 if test ! -d "$dir"; then
2729 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2730 elif test ! -d "$lib_dir"; then
2731 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2733 if test -d "$inc_dir"; then
2734 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
2736 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
2742 for dir in "/usr/ccs/lib"; do
2743 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
2746 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2747 if test -n "$site_runtime_libraries"; then
2748 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2753 if test "$dynamic" = "no"; then add_runtime_path=no
2754 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2755 else case "$opsys" in
2756 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2757 * ) add_runtime_path=no ;;
2761 if test "$add_runtime_path" = "yes"; then
2762 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2763 echo "configure:2764: checking "for runtime libraries flag"" >&5
2765 sol2 ) dash_r="-R" ;;
2766 decosf* | linux* | irix*) dash_r="-rpath " ;;
2769 for try_dash_r in "-R" "-R " "-rpath "; do
2770 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2772 if test "$GCC" = "yes"; then
2773 set x $xe_check_libs; shift; xe_check_libs=""
2774 while test -n "$1"; do
2776 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2777 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2779 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2784 cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2792 if { (eval echo configure:2793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2794 dash_r="$try_dash_r"
2796 echo "configure: failed program was:" >&5
2797 cat conftest.$ac_ext >&5
2801 test -n "$dash_r" && break
2804 if test -n "$dash_r";
2805 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2806 else echo "$ac_t""NONE" 1>&6
2810 xe_add_unique_runpath_dir='
2812 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2814 if test "$xe_add_p" = "yes"; then
2815 test -n "$runpath" && runpath="${runpath}:"
2816 runpath="${runpath}${xe_runpath_dir}"
2817 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2823 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2824 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2825 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2827 runpath="" runpath_dirs=""
2828 if test -n "$LD_RUN_PATH"; then
2829 runpath="$LD_RUN_PATH"
2830 elif test "$GCC" = "yes"; then
2831 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2832 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2833 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2834 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2835 case "$arg" in P,* | -L* | -R* )
2836 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2838 xe_runpath_dir="$dir"
2839 test "$xe_runpath_dir" != "/lib" -a \
2840 "$xe_runpath_dir" != "/usr/lib" -a \
2841 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2842 eval "$xe_add_unique_runpath_dir"
2847 ld_switch_run="$ld_switch_run_save"
2850 for arg in $ld_switch_site $ld_switch_x_site; do
2851 case "$arg" in -L*) {
2852 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2853 test "$xe_runpath_dir" != "/lib" -a \
2854 "$xe_runpath_dir" != "/usr/lib" -a \
2855 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2856 eval "$xe_add_unique_runpath_dir"
2859 if test "$opsys $need_motif" = "sol2 yes"; then
2860 xe_runpath_dir="/opt/SUNWdt/lib";
2861 eval "$xe_add_unique_runpath_dir";
2864 if test -n "$runpath"; then
2865 ld_switch_run="${dash_r}${runpath}"
2867 if test "$GCC" = "yes"; then
2868 set x $ld_switch_run; shift; ld_switch_run=""
2869 while test -n "$1"; do
2871 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2872 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2874 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2879 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2887 if test "$with_dlmalloc" != "no"; then
2892 after_morecore_hook_exists=yes
2893 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2894 echo "configure:2895: checking for malloc_get_state" >&5
2896 cat > conftest.$ac_ext <<EOF
2897 #line 2898 "configure"
2898 #include "confdefs.h"
2899 /* System header to define __stub macros and hopefully few prototypes,
2900 which can conflict with char malloc_get_state(); below. */
2902 /* Override any gcc2 internal prototype to avoid an error. */
2903 /* We use char because int might match the return type of a gcc2
2904 builtin and then its argument prototype would still apply. */
2905 char malloc_get_state();
2909 /* The GNU C library defines this for functions which it implements
2910 to always fail with ENOSYS. Some functions are actually named
2911 something starting with __ and the normal name is an alias. */
2912 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2920 if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2922 eval "ac_cv_func_malloc_get_state=yes"
2924 echo "configure: failed program was:" >&5
2925 cat conftest.$ac_ext >&5
2927 eval "ac_cv_func_malloc_get_state=no"
2931 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2932 echo "$ac_t""yes" 1>&6
2935 echo "$ac_t""no" 1>&6
2939 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2940 echo "configure:2941: checking for malloc_set_state" >&5
2942 cat > conftest.$ac_ext <<EOF
2943 #line 2944 "configure"
2944 #include "confdefs.h"
2945 /* System header to define __stub macros and hopefully few prototypes,
2946 which can conflict with char malloc_set_state(); below. */
2948 /* Override any gcc2 internal prototype to avoid an error. */
2949 /* We use char because int might match the return type of a gcc2
2950 builtin and then its argument prototype would still apply. */
2951 char malloc_set_state();
2955 /* The GNU C library defines this for functions which it implements
2956 to always fail with ENOSYS. Some functions are actually named
2957 something starting with __ and the normal name is an alias. */
2958 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
2966 if { (eval echo configure:2967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2968 eval "ac_cv_func_malloc_set_state=yes"
2970 echo "configure: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2973 eval "ac_cv_func_malloc_set_state=no"
2977 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
2978 echo "$ac_t""yes" 1>&6
2981 echo "$ac_t""no" 1>&6
2985 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2986 echo "configure:2987: checking whether __after_morecore_hook exists" >&5
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2990 extern void (* __after_morecore_hook)();
2992 __after_morecore_hook = 0
2995 if { (eval echo configure:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2997 echo "$ac_t""yes" 1>&6
2999 echo "configure: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3002 echo "$ac_t""no" 1>&6
3003 after_morecore_hook_exists=no
3006 if test "$system_malloc" = "yes" ; then
3009 (The GNU allocators don't work with this system configuration)."
3010 elif test "$with_system_malloc" = "yes" ; then
3013 (User chose not to use GNU allocators)."
3014 elif test "$with_debug_malloc" = "yes" ; then
3017 (User chose to use Debugging Malloc)."
3020 if test "$doug_lea_malloc" = "yes" ; then
3021 if test "$GNU_MALLOC" = yes ; then
3023 (Using Doug Lea's new malloc from the GNU C Library.)"
3025 { test "$extra_verbose" = "yes" && cat << \EOF
3026 Defining DOUG_LEA_MALLOC
3028 cat >> confdefs.h <<\EOF
3029 #define DOUG_LEA_MALLOC 1
3033 if test "$after_morecore_hook_exists" = "no" ; then
3035 (Using Doug Lea's new malloc from the Linux C Library.)"
3036 { test "$extra_verbose" = "yes" && cat << \EOF
3037 Defining _NO_MALLOC_WARNING_
3039 cat >> confdefs.h <<\EOF
3040 #define _NO_MALLOC_WARNING_ 1
3045 use_minimal_tagbits=yes
3051 # Extract the first word of "ranlib", so it can be a program name with args.
3052 set dummy ranlib; ac_word=$2
3053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3054 echo "configure:3055: checking for $ac_word" >&5
3056 if test -n "$RANLIB"; then
3057 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3061 for ac_dir in $ac_dummy; do
3062 test -z "$ac_dir" && ac_dir=.
3063 if test -f $ac_dir/$ac_word; then
3064 ac_cv_prog_RANLIB="ranlib"
3069 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3071 RANLIB="$ac_cv_prog_RANLIB"
3072 if test -n "$RANLIB"; then
3073 echo "$ac_t""$RANLIB" 1>&6
3075 echo "$ac_t""no" 1>&6
3079 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3080 if test -f $ac_dir/install-sh; then
3082 ac_install_sh="$ac_aux_dir/install-sh -c"
3084 elif test -f $ac_dir/install.sh; then
3086 ac_install_sh="$ac_aux_dir/install.sh -c"
3090 if test -z "$ac_aux_dir"; then
3091 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3093 ac_config_guess=$ac_aux_dir/config.guess
3094 ac_config_sub=$ac_aux_dir/config.sub
3095 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3097 # Find a good install program. We prefer a C program (faster),
3098 # so one script is as good as another. But avoid the broken or
3099 # incompatible versions:
3100 # SysV /etc/install, /usr/sbin/install
3101 # SunOS /usr/etc/install
3102 # IRIX /sbin/install
3104 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3105 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3106 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3107 # ./install, which can be erroneously created by make from ./install.sh.
3108 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3109 echo "configure:3110: checking for a BSD compatible install" >&5
3110 if test -z "$INSTALL"; then
3112 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3113 for ac_dir in $PATH; do
3114 # Account for people who put trailing slashes in PATH elements.
3116 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3118 # OSF1 and SCO ODT 3.0 have their own names for install.
3119 # Don't use installbsd from OSF since it installs stuff as root
3121 for ac_prog in ginstall scoinst install; do
3122 if test -f $ac_dir/$ac_prog; then
3123 if test $ac_prog = install &&
3124 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3125 # AIX install. It has an incompatible calling convention.
3128 ac_cv_path_install="$ac_dir/$ac_prog -c"
3138 if test "${ac_cv_path_install+set}" = set; then
3139 INSTALL="$ac_cv_path_install"
3141 # As a last resort, use the slow shell script. We don't cache a
3142 # path for INSTALL within a source directory, because that will
3143 # break other packages using the cache if that directory is
3144 # removed, or if the path is relative.
3145 INSTALL="$ac_install_sh"
3148 echo "$ac_t""$INSTALL" 1>&6
3150 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3151 # It thinks the first close brace ends the variable substitution.
3152 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3154 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3156 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3158 for ac_prog in 'bison -y' byacc
3160 # Extract the first word of "$ac_prog", so it can be a program name with args.
3161 set dummy $ac_prog; ac_word=$2
3162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3163 echo "configure:3164: checking for $ac_word" >&5
3165 if test -n "$YACC"; then
3166 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3170 for ac_dir in $ac_dummy; do
3171 test -z "$ac_dir" && ac_dir=.
3172 if test -f $ac_dir/$ac_word; then
3173 ac_cv_prog_YACC="$ac_prog"
3179 YACC="$ac_cv_prog_YACC"
3180 if test -n "$YACC"; then
3181 echo "$ac_t""$YACC" 1>&6
3183 echo "$ac_t""no" 1>&6
3186 test -n "$YACC" && break
3188 test -n "$YACC" || YACC="yacc"
3191 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3193 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3194 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3195 echo "configure:3196: checking for $ac_hdr" >&5
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3203 { (eval echo configure:3204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3205 if test -z "$ac_err"; then
3207 eval "ac_cv_header_$ac_safe=yes"
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3213 eval "ac_cv_header_$ac_safe=no"
3216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3217 echo "$ac_t""yes" 1>&6
3218 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3219 { test "$extra_verbose" = "yes" && cat << EOF
3222 cat >> confdefs.h <<EOF
3223 #define $ac_tr_hdr 1
3228 echo "$ac_t""no" 1>&6
3232 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3236 echo "configure:3237: checking for $ac_hdr" >&5
3238 cat > conftest.$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3244 { (eval echo configure:3245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3246 if test -z "$ac_err"; then
3248 eval "ac_cv_header_$ac_safe=yes"
3251 echo "configure: failed program was:" >&5
3252 cat conftest.$ac_ext >&5
3254 eval "ac_cv_header_$ac_safe=no"
3257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3258 echo "$ac_t""yes" 1>&6
3259 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3260 { test "$extra_verbose" = "yes" && cat << EOF
3263 cat >> confdefs.h <<EOF
3264 #define $ac_tr_hdr 1
3269 echo "$ac_t""no" 1>&6
3273 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3275 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3276 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3277 echo "configure:3278: checking for $ac_hdr" >&5
3279 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3285 { (eval echo configure:3286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3287 if test -z "$ac_err"; then
3289 eval "ac_cv_header_$ac_safe=yes"
3292 echo "configure: failed program was:" >&5
3293 cat conftest.$ac_ext >&5
3295 eval "ac_cv_header_$ac_safe=no"
3298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3299 echo "$ac_t""yes" 1>&6
3300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3301 { test "$extra_verbose" = "yes" && cat << EOF
3304 cat >> confdefs.h <<EOF
3305 #define $ac_tr_hdr 1
3310 echo "$ac_t""no" 1>&6
3314 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3315 echo "configure:3316: checking for sys/wait.h that is POSIX.1 compatible" >&5
3317 cat > conftest.$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3320 #include <sys/types.h>
3321 #include <sys/wait.h>
3323 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3326 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3331 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3334 if { (eval echo configure:3335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3336 ac_cv_header_sys_wait_h=yes
3338 echo "configure: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3341 ac_cv_header_sys_wait_h=no
3345 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3346 if test $ac_cv_header_sys_wait_h = yes; then
3347 { test "$extra_verbose" = "yes" && cat << \EOF
3348 Defining HAVE_SYS_WAIT_H
3350 cat >> confdefs.h <<\EOF
3351 #define HAVE_SYS_WAIT_H 1
3357 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3358 echo "configure:3359: checking for ANSI C header files" >&5
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3369 { (eval echo configure:3370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3371 if test -z "$ac_err"; then
3373 ac_cv_header_stdc=yes
3376 echo "configure: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3379 ac_cv_header_stdc=no
3383 if test $ac_cv_header_stdc = yes; then
3384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3385 cat > conftest.$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3391 egrep "memchr" >/dev/null 2>&1; then
3395 ac_cv_header_stdc=no
3401 if test $ac_cv_header_stdc = yes; then
3402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3403 cat > conftest.$ac_ext <<EOF
3404 #line 3405 "configure"
3405 #include "confdefs.h"
3408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3409 egrep "free" >/dev/null 2>&1; then
3413 ac_cv_header_stdc=no
3419 if test $ac_cv_header_stdc = yes; then
3420 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3421 cat > conftest.$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3425 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3426 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3427 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3428 int main () { int i; for (i = 0; i < 256; i++)
3429 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3433 if { (eval echo configure:3434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3438 echo "configure: failed program was:" >&5
3439 cat conftest.$ac_ext >&5
3441 ac_cv_header_stdc=no
3446 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3447 if test $ac_cv_header_stdc = yes; then
3448 { test "$extra_verbose" = "yes" && cat << \EOF
3449 Defining STDC_HEADERS
3451 cat >> confdefs.h <<\EOF
3452 #define STDC_HEADERS 1
3458 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3459 echo "configure:3460: checking whether time.h and sys/time.h may both be included" >&5
3461 cat > conftest.$ac_ext <<EOF
3462 #line 3463 "configure"
3463 #include "confdefs.h"
3464 #include <sys/types.h>
3465 #include <sys/time.h>
3471 if { (eval echo configure:3472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3473 ac_cv_header_time=yes
3475 echo "configure: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3478 ac_cv_header_time=no
3482 echo "$ac_t""$ac_cv_header_time" 1>&6
3483 if test $ac_cv_header_time = yes; then
3484 { test "$extra_verbose" = "yes" && cat << \EOF
3485 Defining TIME_WITH_SYS_TIME
3487 cat >> confdefs.h <<\EOF
3488 #define TIME_WITH_SYS_TIME 1
3494 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3495 echo "configure:3496: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3497 cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 #include <sys/types.h>
3502 /* NetBSD declares sys_siglist in unistd.h. */
3503 #ifdef HAVE_UNISTD_H
3507 char *msg = *(sys_siglist + 1);
3510 if { (eval echo configure:3511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3512 ac_cv_decl_sys_siglist=yes
3514 echo "configure: failed program was:" >&5
3515 cat conftest.$ac_ext >&5
3517 ac_cv_decl_sys_siglist=no
3521 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3522 if test $ac_cv_decl_sys_siglist = yes; then
3523 { test "$extra_verbose" = "yes" && cat << \EOF
3524 Defining SYS_SIGLIST_DECLARED
3526 cat >> confdefs.h <<\EOF
3527 #define SYS_SIGLIST_DECLARED 1
3534 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3535 echo "configure:3536: checking for struct utimbuf" >&5
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 #ifdef TIME_WITH_SYS_TIME
3540 #include <sys/time.h>
3543 #ifdef HAVE_SYS_TIME_H
3544 #include <sys/time.h>
3553 static struct utimbuf x; x.actime = x.modtime;
3556 if { (eval echo configure:3557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3558 echo "$ac_t""yes" 1>&6
3559 { test "$extra_verbose" = "yes" && cat << \EOF
3560 Defining HAVE_STRUCT_UTIMBUF
3562 cat >> confdefs.h <<\EOF
3563 #define HAVE_STRUCT_UTIMBUF 1
3568 echo "configure: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3571 echo "$ac_t""no" 1>&6
3575 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3576 echo "configure:3577: checking return type of signal handlers" >&5
3578 cat > conftest.$ac_ext <<EOF
3579 #line 3580 "configure"
3580 #include "confdefs.h"
3581 #include <sys/types.h>
3587 extern "C" void (*signal (int, void (*)(int)))(int);
3589 void (*signal ()) ();
3596 if { (eval echo configure:3597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3598 ac_cv_type_signal=void
3600 echo "configure: failed program was:" >&5
3601 cat conftest.$ac_ext >&5
3603 ac_cv_type_signal=int
3607 echo "$ac_t""$ac_cv_type_signal" 1>&6
3608 { test "$extra_verbose" = "yes" && cat << EOF
3609 Defining RETSIGTYPE = $ac_cv_type_signal
3611 cat >> confdefs.h <<EOF
3612 #define RETSIGTYPE $ac_cv_type_signal
3617 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3618 echo "configure:3619: checking for size_t" >&5
3620 cat > conftest.$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3623 #include <sys/types.h>
3629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3630 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3632 ac_cv_type_size_t=yes
3635 ac_cv_type_size_t=no
3639 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3640 if test $ac_cv_type_size_t = no; then
3641 { test "$extra_verbose" = "yes" && cat << \EOF
3642 Defining size_t = unsigned
3644 cat >> confdefs.h <<\EOF
3645 #define size_t unsigned
3651 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3652 echo "configure:3653: checking for pid_t" >&5
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 #include <sys/types.h>
3663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3664 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3666 ac_cv_type_pid_t=yes
3673 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3674 if test $ac_cv_type_pid_t = no; then
3675 { test "$extra_verbose" = "yes" && cat << \EOF
3676 Defining pid_t = int
3678 cat >> confdefs.h <<\EOF
3685 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3686 echo "configure:3687: checking for uid_t in sys/types.h" >&5
3688 cat > conftest.$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3691 #include <sys/types.h>
3693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3694 egrep "uid_t" >/dev/null 2>&1; then
3696 ac_cv_type_uid_t=yes
3704 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3705 if test $ac_cv_type_uid_t = no; then
3706 { test "$extra_verbose" = "yes" && cat << \EOF
3707 Defining uid_t = int
3709 cat >> confdefs.h <<\EOF
3714 { test "$extra_verbose" = "yes" && cat << \EOF
3715 Defining gid_t = int
3717 cat >> confdefs.h <<\EOF
3724 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3725 echo "configure:3726: checking for mode_t" >&5
3727 cat > conftest.$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 #include <sys/types.h>
3736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3737 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3739 ac_cv_type_mode_t=yes
3742 ac_cv_type_mode_t=no
3746 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3747 if test $ac_cv_type_mode_t = no; then
3748 { test "$extra_verbose" = "yes" && cat << \EOF
3749 Defining mode_t = int
3751 cat >> confdefs.h <<\EOF
3758 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3759 echo "configure:3760: checking for off_t" >&5
3761 cat > conftest.$ac_ext <<EOF
3762 #line 3763 "configure"
3763 #include "confdefs.h"
3764 #include <sys/types.h>
3770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3771 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3773 ac_cv_type_off_t=yes
3780 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3781 if test $ac_cv_type_off_t = no; then
3782 { test "$extra_verbose" = "yes" && cat << \EOF
3783 Defining off_t = long
3785 cat >> confdefs.h <<\EOF
3793 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3794 echo "configure:3795: checking for struct timeval" >&5
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 #ifdef TIME_WITH_SYS_TIME
3799 #include <sys/time.h>
3802 #ifdef HAVE_SYS_TIME_H
3803 #include <sys/time.h>
3809 static struct timeval x; x.tv_sec = x.tv_usec;
3812 if { (eval echo configure:3813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3814 echo "$ac_t""yes" 1>&6
3816 { test "$extra_verbose" = "yes" && cat << \EOF
3817 Defining HAVE_TIMEVAL
3819 cat >> confdefs.h <<\EOF
3820 #define HAVE_TIMEVAL 1
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3828 echo "$ac_t""no" 1>&6
3833 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3834 echo "configure:3835: checking whether struct tm is in sys/time.h or time.h" >&5
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 #include <sys/types.h>
3842 struct tm *tp; tp->tm_sec;
3845 if { (eval echo configure:3846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3847 ac_cv_struct_tm=time.h
3849 echo "configure: failed program was:" >&5
3850 cat conftest.$ac_ext >&5
3852 ac_cv_struct_tm=sys/time.h
3856 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3857 if test $ac_cv_struct_tm = sys/time.h; then
3858 { test "$extra_verbose" = "yes" && cat << \EOF
3859 Defining TM_IN_SYS_TIME
3861 cat >> confdefs.h <<\EOF
3862 #define TM_IN_SYS_TIME 1
3868 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3869 echo "configure:3870: checking for tm_zone in struct tm" >&5
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 #include <sys/types.h>
3875 #include <$ac_cv_struct_tm>
3877 struct tm tm; tm.tm_zone;
3880 if { (eval echo configure:3881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3882 ac_cv_struct_tm_zone=yes
3884 echo "configure: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3887 ac_cv_struct_tm_zone=no
3891 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3892 if test "$ac_cv_struct_tm_zone" = yes; then
3893 { test "$extra_verbose" = "yes" && cat << \EOF
3894 Defining HAVE_TM_ZONE
3896 cat >> confdefs.h <<\EOF
3897 #define HAVE_TM_ZONE 1
3902 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3903 echo "configure:3904: checking for tzname" >&5
3905 cat > conftest.$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3909 #ifndef tzname /* For SGI. */
3910 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3916 if { (eval echo configure:3917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3918 ac_cv_var_tzname=yes
3920 echo "configure: failed program was:" >&5
3921 cat conftest.$ac_ext >&5
3927 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3928 if test $ac_cv_var_tzname = yes; then
3929 { test "$extra_verbose" = "yes" && cat << \EOF
3930 Defining HAVE_TZNAME
3932 cat >> confdefs.h <<\EOF
3933 #define HAVE_TZNAME 1
3941 echo $ac_n "checking for working const""... $ac_c" 1>&6
3942 echo "configure:3943: checking for working const" >&5
3944 cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3950 /* Ultrix mips cc rejects this. */
3951 typedef int charset[2]; const charset x;
3952 /* SunOS 4.1.1 cc rejects this. */
3953 char const *const *ccp;
3955 /* NEC SVR4.0.2 mips cc rejects this. */
3956 struct point {int x, y;};
3957 static struct point const zero = {0,0};
3958 /* AIX XL C 1.02.0.0 rejects this.
3959 It does not let you subtract one const X* pointer from another in an arm
3960 of an if-expression whose if-part is not a constant expression */
3961 const char *g = "string";
3962 ccp = &g + (g ? g-g : 0);
3963 /* HPUX 7.0 cc rejects these. */
3966 ccp = (char const *const *) p;
3967 { /* SCO 3.2v4 cc rejects this. */
3969 char const *s = 0 ? (char *) 0 : (char const *) 0;
3973 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3975 const int *foo = &x[0];
3978 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3979 typedef const int *iptr;
3983 { /* AIX XL C 1.02.0.0 rejects this saying
3984 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3985 struct s { int j; const int *ap[3]; };
3986 struct s *b; b->j = 5;
3988 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3994 if { (eval echo configure:3995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3998 echo "configure: failed program was:" >&5
3999 cat conftest.$ac_ext >&5
4005 echo "$ac_t""$ac_cv_c_const" 1>&6
4006 if test $ac_cv_c_const = no; then
4007 { test "$extra_verbose" = "yes" && cat << \EOF
4010 cat >> confdefs.h <<\EOF
4018 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4019 echo "configure:4020: checking whether ${MAKE-make} sets \${MAKE}" >&5
4020 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4022 cat > conftestmake <<\EOF
4024 @echo 'ac_maketemp="${MAKE}"'
4026 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4027 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4028 if test -n "$ac_maketemp"; then
4029 eval ac_cv_prog_make_${ac_make}_set=yes
4031 eval ac_cv_prog_make_${ac_make}_set=no
4034 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4035 echo "$ac_t""yes" 1>&6
4038 echo "$ac_t""no" 1>&6
4039 SET_MAKE="MAKE=${MAKE-make}"
4043 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4044 echo "configure:4045: checking whether byte ordering is bigendian" >&5
4046 ac_cv_c_bigendian=unknown
4047 # See if sys/param.h defines the BYTE_ORDER macro.
4048 cat > conftest.$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4051 #include <sys/types.h>
4052 #include <sys/param.h>
4055 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4060 if { (eval echo configure:4061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4062 # It does; now see whether it defined to BIG_ENDIAN or not.
4063 cat > conftest.$ac_ext <<EOF
4064 #line 4065 "configure"
4065 #include "confdefs.h"
4066 #include <sys/types.h>
4067 #include <sys/param.h>
4070 #if BYTE_ORDER != BIG_ENDIAN
4075 if { (eval echo configure:4076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4077 ac_cv_c_bigendian=yes
4079 echo "configure: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4082 ac_cv_c_bigendian=no
4086 echo "configure: failed program was:" >&5
4087 cat conftest.$ac_ext >&5
4090 if test $ac_cv_c_bigendian = unknown; then
4091 cat > conftest.$ac_ext <<EOF
4092 #line 4093 "configure"
4093 #include "confdefs.h"
4095 /* Are we little or big endian? From Harbison&Steele. */
4099 char c[sizeof (long)];
4102 exit (u.c[sizeof (long) - 1] == 1);
4105 if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4107 ac_cv_c_bigendian=no
4110 echo "configure: failed program was:" >&5
4111 cat conftest.$ac_ext >&5
4113 ac_cv_c_bigendian=yes
4118 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4119 if test $ac_cv_c_bigendian = yes; then
4120 { test "$extra_verbose" = "yes" && cat << \EOF
4121 Defining WORDS_BIGENDIAN
4123 cat >> confdefs.h <<\EOF
4124 #define WORDS_BIGENDIAN 1
4131 echo $ac_n "checking size of short""... $ac_c" 1>&6
4132 echo "configure:4133: checking size of short" >&5
4134 cat > conftest.$ac_ext <<EOF
4135 #line 4136 "configure"
4136 #include "confdefs.h"
4140 FILE *f=fopen("conftestval", "w");
4142 fprintf(f, "%d\n", sizeof(short));
4146 if { (eval echo configure:4147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4148 ac_cv_sizeof_short=`cat conftestval`
4151 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4154 ac_cv_sizeof_short=0
4157 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4158 { test "$extra_verbose" = "yes" && cat << EOF
4159 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4161 cat >> confdefs.h <<EOF
4162 #define SIZEOF_SHORT $ac_cv_sizeof_short
4167 if test "$ac_cv_sizeof_short" = 0; then
4169 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4170 echo "*** PANIC *** Please examine config.log for compilation errors."
4173 echo $ac_n "checking size of int""... $ac_c" 1>&6
4174 echo "configure:4175: checking size of int" >&5
4176 cat > conftest.$ac_ext <<EOF
4177 #line 4178 "configure"
4178 #include "confdefs.h"
4182 FILE *f=fopen("conftestval", "w");
4184 fprintf(f, "%d\n", sizeof(int));
4188 if { (eval echo configure:4189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4190 ac_cv_sizeof_int=`cat conftestval`
4193 echo "configure: failed program was:" >&5
4194 cat conftest.$ac_ext >&5
4199 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4200 { test "$extra_verbose" = "yes" && cat << EOF
4201 Defining SIZEOF_INT = $ac_cv_sizeof_int
4203 cat >> confdefs.h <<EOF
4204 #define SIZEOF_INT $ac_cv_sizeof_int
4209 echo $ac_n "checking size of long""... $ac_c" 1>&6
4210 echo "configure:4211: checking size of long" >&5
4212 cat > conftest.$ac_ext <<EOF
4213 #line 4214 "configure"
4214 #include "confdefs.h"
4218 FILE *f=fopen("conftestval", "w");
4220 fprintf(f, "%d\n", sizeof(long));
4224 if { (eval echo configure:4225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4226 ac_cv_sizeof_long=`cat conftestval`
4229 echo "configure: failed program was:" >&5
4230 cat conftest.$ac_ext >&5
4235 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4236 { test "$extra_verbose" = "yes" && cat << EOF
4237 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4239 cat >> confdefs.h <<EOF
4240 #define SIZEOF_LONG $ac_cv_sizeof_long
4245 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4246 echo "configure:4247: checking size of long long" >&5
4248 cat > conftest.$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4254 FILE *f=fopen("conftestval", "w");
4256 fprintf(f, "%d\n", sizeof(long long));
4260 if { (eval echo configure:4261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4262 ac_cv_sizeof_long_long=`cat conftestval`
4265 echo "configure: failed program was:" >&5
4266 cat conftest.$ac_ext >&5
4268 ac_cv_sizeof_long_long=0
4271 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4272 { test "$extra_verbose" = "yes" && cat << EOF
4273 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4275 cat >> confdefs.h <<EOF
4276 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4281 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4282 echo "configure:4283: checking size of void *" >&5
4284 cat > conftest.$ac_ext <<EOF
4285 #line 4286 "configure"
4286 #include "confdefs.h"
4290 FILE *f=fopen("conftestval", "w");
4292 fprintf(f, "%d\n", sizeof(void *));
4296 if { (eval echo configure:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4298 ac_cv_sizeof_void_p=`cat conftestval`
4301 echo "configure: failed program was:" >&5
4302 cat conftest.$ac_ext >&5
4304 ac_cv_sizeof_void_p=0
4307 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4308 { test "$extra_verbose" = "yes" && cat << EOF
4309 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4311 cat >> confdefs.h <<EOF
4312 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4318 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4319 echo "configure:4320: checking for long file names" >&5
4321 ac_cv_sys_long_file_names=yes
4322 # Test for long file names in all the places we know might matter:
4323 # . the current directory, where building will happen
4324 # $prefix/lib where we will be installing things
4325 # $exec_prefix/lib likewise
4326 # eval it to expand exec_prefix.
4327 # $TMPDIR if set, where it might want to write temporary files
4328 # if $TMPDIR is not set:
4329 # /tmp where it might want to write temporary files
4332 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4333 ac_tmpdirs="$TMPDIR"
4335 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4337 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4338 test -d $ac_dir || continue
4339 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4340 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4341 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4342 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4343 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4344 ac_cv_sys_long_file_names=no
4345 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4348 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4351 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4352 if test $ac_cv_sys_long_file_names = yes; then
4353 { test "$extra_verbose" = "yes" && cat << \EOF
4354 Defining HAVE_LONG_FILE_NAMES
4356 cat >> confdefs.h <<\EOF
4357 #define HAVE_LONG_FILE_NAMES 1
4364 echo $ac_n "checking for sin""... $ac_c" 1>&6
4365 echo "configure:4366: checking for sin" >&5
4367 cat > conftest.$ac_ext <<EOF
4368 #line 4369 "configure"
4369 #include "confdefs.h"
4370 /* System header to define __stub macros and hopefully few prototypes,
4371 which can conflict with char sin(); below. */
4373 /* Override any gcc2 internal prototype to avoid an error. */
4374 /* We use char because int might match the return type of a gcc2
4375 builtin and then its argument prototype would still apply. */
4380 /* The GNU C library defines this for functions which it implements
4381 to always fail with ENOSYS. Some functions are actually named
4382 something starting with __ and the normal name is an alias. */
4383 #if defined (__stub_sin) || defined (__stub___sin)
4391 if { (eval echo configure:4392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4393 eval "ac_cv_func_sin=yes"
4395 echo "configure: failed program was:" >&5
4396 cat conftest.$ac_ext >&5
4398 eval "ac_cv_func_sin=no"
4402 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4403 echo "$ac_t""yes" 1>&6
4406 echo "$ac_t""no" 1>&6
4408 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4409 echo "configure:4410: checking for sin in -lm" >&5
4410 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4412 xe_check_libs=" -lm "
4413 cat > conftest.$ac_ext <<EOF
4414 #line 4415 "configure"
4415 #include "confdefs.h"
4416 /* Override any gcc2 internal prototype to avoid an error. */
4417 /* We use char because int might match the return type of a gcc2
4418 builtin and then its argument prototype would still apply. */
4425 if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4427 eval "ac_cv_lib_$ac_lib_var=yes"
4429 echo "configure: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4432 eval "ac_cv_lib_$ac_lib_var=no"
4437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4438 echo "$ac_t""yes" 1>&6
4439 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4440 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4441 { test "$extra_verbose" = "yes" && cat << EOF
4444 cat >> confdefs.h <<EOF
4445 #define $ac_tr_lib 1
4449 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4452 echo "$ac_t""no" 1>&6
4459 { test "$extra_verbose" = "yes" && cat << \EOF
4460 Defining LISP_FLOAT_TYPE
4462 cat >> confdefs.h <<\EOF
4463 #define LISP_FLOAT_TYPE 1
4468 cat > conftest.$ac_ext <<EOF
4469 #line 4470 "configure"
4470 #include "confdefs.h"
4473 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4476 if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4478 { test "$extra_verbose" = "yes" && cat << \EOF
4479 Defining HAVE_INVERSE_HYPERBOLIC
4481 cat >> confdefs.h <<\EOF
4482 #define HAVE_INVERSE_HYPERBOLIC 1
4487 echo "configure: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4492 echo "checking type of mail spool file locking" 1>&6
4493 echo "configure:4494: checking type of mail spool file locking" >&5
4494 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4495 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4496 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4497 Defining REAL_MAIL_USE_LOCKF
4499 cat >> confdefs.h <<\EOF
4500 #define REAL_MAIL_USE_LOCKF 1
4504 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4505 Defining REAL_MAIL_USE_FLOCK
4507 cat >> confdefs.h <<\EOF
4508 #define REAL_MAIL_USE_FLOCK 1
4512 else mail_locking="dot-locking"
4515 case "$opsys" in decosf*)
4517 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4518 echo "configure:4519: checking for cma_open in -lpthreads" >&5
4519 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4521 xe_check_libs=" -lpthreads "
4522 cat > conftest.$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4525 /* Override any gcc2 internal prototype to avoid an error. */
4526 /* We use char because int might match the return type of a gcc2
4527 builtin and then its argument prototype would still apply. */
4534 if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4536 eval "ac_cv_lib_$ac_lib_var=yes"
4538 echo "configure: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4541 eval "ac_cv_lib_$ac_lib_var=no"
4546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4547 echo "$ac_t""yes" 1>&6
4548 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4549 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4550 { test "$extra_verbose" = "yes" && cat << EOF
4553 cat >> confdefs.h <<EOF
4554 #define $ac_tr_lib 1
4558 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4561 echo "$ac_t""no" 1>&6
4565 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4566 c_switch_site="$c_switch_site -threads" ;;
4569 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4570 echo "configure:4571: checking whether the -xildoff compiler flag is required" >&5
4571 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4572 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4573 then echo "$ac_t""no" 1>&6;
4574 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
4576 else echo "$ac_t""no" 1>&6
4579 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4580 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4581 echo "configure:4582: checking for \"-z ignore\" linker flag" >&5
4582 case "`ld -h 2>&1`" in
4583 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4584 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4585 *) echo "$ac_t""no" 1>&6 ;;
4590 echo "checking "for specified window system"" 1>&6
4591 echo "configure:4592: checking "for specified window system"" >&5
4593 if test "$with_x11" != "no"; then
4594 test "$x_includes $x_libraries" != "NONE NONE" && \
4595 window_system=x11 with_x11=yes
4598 if test "$x_includes $x_libraries" = "NONE NONE" \
4599 -a -n "$OPENWINHOME" \
4600 -a "$OPENWINHOME" != "/usr/openwin" \
4601 -a -d "$OPENWINHOME"; then
4602 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4603 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4604 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4607 if test "$x_includes" = "NONE"; then
4608 for dir in "/usr/X11" "/usr/X11R6"; do
4609 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4613 if test "$x_libraries" = "NONE"; then
4614 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4615 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4619 # If we find X, set shell vars x_includes and x_libraries to the
4620 # paths, otherwise set no_x=yes.
4621 # Uses ac_ vars as temps to allow command line to override cache and checks.
4622 # --without-x overrides everything else, but does not touch the cache.
4623 echo $ac_n "checking for X""... $ac_c" 1>&6
4624 echo "configure:4625: checking for X" >&5
4626 # Check whether --with-x or --without-x was given.
4627 if test "${with_x+set}" = set; then
4632 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4633 if test "x$with_x" = xno; then
4634 # The user explicitly disabled X.
4637 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4638 # Both variables are already set.
4642 # One or both of the vars are not set, and there is no cached value.
4643 ac_x_includes=NO ac_x_libraries=NO
4645 if mkdir conftestdir; then
4647 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4648 cat > Imakefile <<'EOF'
4650 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4652 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4653 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4654 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4655 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4656 for ac_extension in a so sl; do
4657 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4658 test -f $ac_im_libdir/libX11.$ac_extension; then
4659 ac_im_usrlibdir=$ac_im_libdir; break
4662 # Screen out bogus values from the imake configuration. They are
4663 # bogus both because they are the default anyway, and because
4664 # using them would break gcc on systems where it needs fixed includes.
4665 case "$ac_im_incroot" in
4667 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4669 case "$ac_im_usrlibdir" in
4671 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4678 if test "$ac_x_includes" = NO; then
4679 # Guess where to find include files, by looking for this one X11 .h file.
4680 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4682 # First, try using that file with no special directory specified.
4683 cat > conftest.$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4686 #include <$x_direct_test_include>
4688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4689 { (eval echo configure:4690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4691 if test -z "$ac_err"; then
4693 # We can compile using X headers with no special include directory.
4697 echo "configure: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4700 # Look for the header file in a standard set of common directories.
4701 # Check X11 before X11Rn because it is often a symlink to the current release.
4704 /usr/X11R6/include \
4705 /usr/X11R5/include \
4706 /usr/X11R4/include \
4709 /usr/include/X11R6 \
4710 /usr/include/X11R5 \
4711 /usr/include/X11R4 \
4713 /usr/local/X11/include \
4714 /usr/local/X11R6/include \
4715 /usr/local/X11R5/include \
4716 /usr/local/X11R4/include \
4718 /usr/local/include/X11 \
4719 /usr/local/include/X11R6 \
4720 /usr/local/include/X11R5 \
4721 /usr/local/include/X11R4 \
4725 /usr/XFree86/include/X11 \
4728 /usr/local/include \
4729 /usr/unsupported/include \
4730 /usr/athena/include \
4731 /usr/local/x11r5/include \
4732 /usr/lpp/Xamples/include \
4734 /usr/openwin/include \
4735 /usr/openwin/share/include \
4738 if test -r "$ac_dir/$x_direct_test_include"; then
4739 ac_x_includes=$ac_dir
4745 fi # $ac_x_includes = NO
4747 if test "$ac_x_libraries" = NO; then
4748 # Check for the libraries.
4750 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4751 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4753 # See if we find them without any special options.
4754 # Don't add to $LIBS permanently.
4755 ac_save_LIBS="$LIBS"
4756 LIBS="-l$x_direct_test_library $LIBS"
4757 cat > conftest.$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4762 ${x_direct_test_function}()
4765 if { (eval echo configure:4766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4767 LIBS="$ac_save_LIBS"
4768 # We can link X programs with no special library path.
4771 echo "configure: failed program was:" >&5
4772 cat conftest.$ac_ext >&5
4774 LIBS="$ac_save_LIBS"
4775 # First see if replacing the include by lib works.
4776 # Check X11 before X11Rn because it is often a symlink to the current release.
4777 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4788 /usr/local/X11/lib \
4789 /usr/local/X11R6/lib \
4790 /usr/local/X11R5/lib \
4791 /usr/local/X11R4/lib \
4793 /usr/local/lib/X11 \
4794 /usr/local/lib/X11R6 \
4795 /usr/local/lib/X11R5 \
4796 /usr/local/lib/X11R4 \
4800 /usr/XFree86/lib/X11 \
4804 /usr/unsupported/lib \
4806 /usr/local/x11r5/lib \
4807 /usr/lpp/Xamples/lib \
4811 /usr/openwin/share/lib \
4814 for ac_extension in a so sl; do
4815 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4816 ac_x_libraries=$ac_dir
4823 fi # $ac_x_libraries = NO
4825 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4826 # Didn't find X anywhere. Cache the known absence of X.
4827 ac_cv_have_x="have_x=no"
4829 # Record where we found X for the cache.
4830 ac_cv_have_x="have_x=yes \
4831 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4834 eval "$ac_cv_have_x"
4837 if test "$have_x" != yes; then
4838 echo "$ac_t""$have_x" 1>&6
4841 # If each of the values was on the command line, it overrides each guess.
4842 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4843 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4844 # Update the cache value to reflect the command line values.
4845 ac_cv_have_x="have_x=yes \
4846 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4847 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4850 if test "$no_x" = yes; then
4851 # Not all programs may use this symbol, but it does not hurt to define it.
4852 { test "$extra_verbose" = "yes" && cat << \EOF
4853 Defining X_DISPLAY_MISSING
4855 cat >> confdefs.h <<\EOF
4856 #define X_DISPLAY_MISSING 1
4860 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4862 if test -n "$x_includes"; then
4863 X_CFLAGS="$X_CFLAGS -I$x_includes"
4866 # It would also be nice to do this for all -L options, not just this one.
4867 if test -n "$x_libraries"; then
4868 X_LIBS="$X_LIBS -L$x_libraries"
4869 # For Solaris; some versions of Sun CC require a space after -R and
4870 # others require no space. Words are not sufficient . . . .
4871 case "`(uname -sr) 2>/dev/null`" in
4873 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4874 echo "configure:4875: checking whether -R must be followed by a space" >&5
4875 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4876 cat > conftest.$ac_ext <<EOF
4877 #line 4878 "configure"
4878 #include "confdefs.h"
4884 if { (eval echo configure:4885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4888 echo "configure: failed program was:" >&5
4889 cat conftest.$ac_ext >&5
4894 if test $ac_R_nospace = yes; then
4895 echo "$ac_t""no" 1>&6
4896 X_LIBS="$X_LIBS -R$x_libraries"
4898 LIBS="$ac_xsave_LIBS -R $x_libraries"
4899 cat > conftest.$ac_ext <<EOF
4900 #line 4901 "configure"
4901 #include "confdefs.h"
4907 if { (eval echo configure:4908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4911 echo "configure: failed program was:" >&5
4912 cat conftest.$ac_ext >&5
4917 if test $ac_R_space = yes; then
4918 echo "$ac_t""yes" 1>&6
4919 X_LIBS="$X_LIBS -R $x_libraries"
4921 echo "$ac_t""neither works" 1>&6
4924 LIBS="$ac_xsave_LIBS"
4928 # Check for system-dependent libraries X programs must link with.
4929 # Do this before checking for the system-independent R6 libraries
4930 # (-lICE), since we may need -lsocket or whatever for X linking.
4932 if test "$ISC" = yes; then
4933 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4935 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4936 # libraries were built with DECnet support. And karl@cs.umb.edu says
4937 # the Alpha needs dnet_stub (dnet does not exist).
4938 if test "$with_dnet" = "no" ; then
4939 ac_cv_lib_dnet_dnet_ntoa=no
4942 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4943 echo "configure:4944: checking for dnet_ntoa in -ldnet" >&5
4944 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4946 xe_check_libs=" -ldnet "
4947 cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4950 /* Override any gcc2 internal prototype to avoid an error. */
4951 /* We use char because int might match the return type of a gcc2
4952 builtin and then its argument prototype would still apply. */
4959 if { (eval echo configure:4960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4961 eval "ac_cv_lib_$ac_lib_var=yes"
4963 echo "configure: failed program was:" >&5
4964 cat conftest.$ac_ext >&5
4966 eval "ac_cv_lib_$ac_lib_var=no"
4971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4972 echo "$ac_t""yes" 1>&6
4973 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4975 echo "$ac_t""no" 1>&6
4980 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4982 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4983 echo "configure:4984: checking for dnet_ntoa in -ldnet_stub" >&5
4984 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4986 xe_check_libs=" -ldnet_stub "
4987 cat > conftest.$ac_ext <<EOF
4988 #line 4989 "configure"
4989 #include "confdefs.h"
4990 /* Override any gcc2 internal prototype to avoid an error. */
4991 /* We use char because int might match the return type of a gcc2
4992 builtin and then its argument prototype would still apply. */
4999 if { (eval echo configure:5000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5001 eval "ac_cv_lib_$ac_lib_var=yes"
5003 echo "configure: failed program was:" >&5
5004 cat conftest.$ac_ext >&5
5006 eval "ac_cv_lib_$ac_lib_var=no"
5011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5012 echo "$ac_t""yes" 1>&6
5013 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5015 echo "$ac_t""no" 1>&6
5021 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5022 # to get the SysV transport functions.
5023 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5025 # The nsl library prevents programs from opening the X display
5026 # on Irix 5.2, according to dickey@clark.net.
5027 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5028 echo "configure:5029: checking for gethostbyname" >&5
5030 cat > conftest.$ac_ext <<EOF
5031 #line 5032 "configure"
5032 #include "confdefs.h"
5033 /* System header to define __stub macros and hopefully few prototypes,
5034 which can conflict with char gethostbyname(); below. */
5036 /* Override any gcc2 internal prototype to avoid an error. */
5037 /* We use char because int might match the return type of a gcc2
5038 builtin and then its argument prototype would still apply. */
5039 char gethostbyname();
5043 /* The GNU C library defines this for functions which it implements
5044 to always fail with ENOSYS. Some functions are actually named
5045 something starting with __ and the normal name is an alias. */
5046 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5054 if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5056 eval "ac_cv_func_gethostbyname=yes"
5058 echo "configure: failed program was:" >&5
5059 cat conftest.$ac_ext >&5
5061 eval "ac_cv_func_gethostbyname=no"
5065 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5066 echo "$ac_t""yes" 1>&6
5069 echo "$ac_t""no" 1>&6
5072 if test $ac_cv_func_gethostbyname = no; then
5074 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5075 echo "configure:5076: checking for gethostbyname in -lnsl" >&5
5076 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5078 xe_check_libs=" -lnsl "
5079 cat > conftest.$ac_ext <<EOF
5080 #line 5081 "configure"
5081 #include "confdefs.h"
5082 /* Override any gcc2 internal prototype to avoid an error. */
5083 /* We use char because int might match the return type of a gcc2
5084 builtin and then its argument prototype would still apply. */
5085 char gethostbyname();
5091 if { (eval echo configure:5092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5093 eval "ac_cv_lib_$ac_lib_var=yes"
5095 echo "configure: failed program was:" >&5
5096 cat conftest.$ac_ext >&5
5098 eval "ac_cv_lib_$ac_lib_var=no"
5103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5104 echo "$ac_t""yes" 1>&6
5105 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5107 echo "$ac_t""no" 1>&6
5113 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5114 # socket/setsockopt and other routines are undefined under SCO ODT
5115 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5116 # on later versions), says simon@lia.di.epfl.ch: it contains
5117 # gethostby* variants that don't use the nameserver (or something).
5118 # -lsocket must be given before -lnsl if both are needed.
5119 # We assume that if connect needs -lnsl, so does gethostbyname.
5120 echo $ac_n "checking for connect""... $ac_c" 1>&6
5121 echo "configure:5122: checking for connect" >&5
5123 cat > conftest.$ac_ext <<EOF
5124 #line 5125 "configure"
5125 #include "confdefs.h"
5126 /* System header to define __stub macros and hopefully few prototypes,
5127 which can conflict with char connect(); below. */
5129 /* Override any gcc2 internal prototype to avoid an error. */
5130 /* We use char because int might match the return type of a gcc2
5131 builtin and then its argument prototype would still apply. */
5136 /* The GNU C library defines this for functions which it implements
5137 to always fail with ENOSYS. Some functions are actually named
5138 something starting with __ and the normal name is an alias. */
5139 #if defined (__stub_connect) || defined (__stub___connect)
5147 if { (eval echo configure:5148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5149 eval "ac_cv_func_connect=yes"
5151 echo "configure: failed program was:" >&5
5152 cat conftest.$ac_ext >&5
5154 eval "ac_cv_func_connect=no"
5158 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5159 echo "$ac_t""yes" 1>&6
5162 echo "$ac_t""no" 1>&6
5165 if test $ac_cv_func_connect = no; then
5167 xe_msg_checking="for connect in -lsocket"
5168 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5169 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5170 echo "configure:5171: checking "$xe_msg_checking"" >&5
5171 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5173 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5174 cat > conftest.$ac_ext <<EOF
5175 #line 5176 "configure"
5176 #include "confdefs.h"
5177 /* Override any gcc2 internal prototype to avoid an error. */
5178 /* We use char because int might match the return type of a gcc2
5179 builtin and then its argument prototype would still apply. */
5186 if { (eval echo configure:5187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5188 eval "ac_cv_lib_$ac_lib_var=yes"
5190 echo "configure: failed program was:" >&5
5191 cat conftest.$ac_ext >&5
5193 eval "ac_cv_lib_$ac_lib_var=no"
5198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5199 echo "$ac_t""yes" 1>&6
5200 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5202 echo "$ac_t""no" 1>&6
5208 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5209 echo $ac_n "checking for remove""... $ac_c" 1>&6
5210 echo "configure:5211: checking for remove" >&5
5212 cat > conftest.$ac_ext <<EOF
5213 #line 5214 "configure"
5214 #include "confdefs.h"
5215 /* System header to define __stub macros and hopefully few prototypes,
5216 which can conflict with char remove(); below. */
5218 /* Override any gcc2 internal prototype to avoid an error. */
5219 /* We use char because int might match the return type of a gcc2
5220 builtin and then its argument prototype would still apply. */
5225 /* The GNU C library defines this for functions which it implements
5226 to always fail with ENOSYS. Some functions are actually named
5227 something starting with __ and the normal name is an alias. */
5228 #if defined (__stub_remove) || defined (__stub___remove)
5236 if { (eval echo configure:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5238 eval "ac_cv_func_remove=yes"
5240 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5243 eval "ac_cv_func_remove=no"
5247 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5248 echo "$ac_t""yes" 1>&6
5251 echo "$ac_t""no" 1>&6
5254 if test $ac_cv_func_remove = no; then
5256 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5257 echo "configure:5258: checking for remove in -lposix" >&5
5258 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5260 xe_check_libs=" -lposix "
5261 cat > conftest.$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5264 /* Override any gcc2 internal prototype to avoid an error. */
5265 /* We use char because int might match the return type of a gcc2
5266 builtin and then its argument prototype would still apply. */
5273 if { (eval echo configure:5274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5275 eval "ac_cv_lib_$ac_lib_var=yes"
5277 echo "configure: failed program was:" >&5
5278 cat conftest.$ac_ext >&5
5280 eval "ac_cv_lib_$ac_lib_var=no"
5285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5286 echo "$ac_t""yes" 1>&6
5287 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5289 echo "$ac_t""no" 1>&6
5295 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5296 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5297 echo "configure:5298: checking for shmat" >&5
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5302 /* System header to define __stub macros and hopefully few prototypes,
5303 which can conflict with char shmat(); below. */
5305 /* Override any gcc2 internal prototype to avoid an error. */
5306 /* We use char because int might match the return type of a gcc2
5307 builtin and then its argument prototype would still apply. */
5312 /* The GNU C library defines this for functions which it implements
5313 to always fail with ENOSYS. Some functions are actually named
5314 something starting with __ and the normal name is an alias. */
5315 #if defined (__stub_shmat) || defined (__stub___shmat)
5323 if { (eval echo configure:5324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5325 eval "ac_cv_func_shmat=yes"
5327 echo "configure: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5330 eval "ac_cv_func_shmat=no"
5334 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5335 echo "$ac_t""yes" 1>&6
5338 echo "$ac_t""no" 1>&6
5341 if test $ac_cv_func_shmat = no; then
5343 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5344 echo "configure:5345: checking for shmat in -lipc" >&5
5345 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5347 xe_check_libs=" -lipc "
5348 cat > conftest.$ac_ext <<EOF
5349 #line 5350 "configure"
5350 #include "confdefs.h"
5351 /* Override any gcc2 internal prototype to avoid an error. */
5352 /* We use char because int might match the return type of a gcc2
5353 builtin and then its argument prototype would still apply. */
5360 if { (eval echo configure:5361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5362 eval "ac_cv_lib_$ac_lib_var=yes"
5364 echo "configure: failed program was:" >&5
5365 cat conftest.$ac_ext >&5
5367 eval "ac_cv_lib_$ac_lib_var=no"
5372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5373 echo "$ac_t""yes" 1>&6
5374 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5376 echo "$ac_t""no" 1>&6
5383 # Check for libraries that X11R6 Xt/Xaw programs need.
5384 ac_save_LDFLAGS="$LDFLAGS"
5385 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5386 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5387 # check for ICE first), but we must link in the order -lSM -lICE or
5388 # we get undefined symbols. So assume we have SM if we have ICE.
5389 # These have to be linked with before -lX11, unlike the other
5390 # libraries we check for below, so use a different variable.
5391 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5393 xe_msg_checking="for IceConnectionNumber in -lICE"
5394 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5395 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5396 echo "configure:5397: checking "$xe_msg_checking"" >&5
5397 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5399 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5400 cat > conftest.$ac_ext <<EOF
5401 #line 5402 "configure"
5402 #include "confdefs.h"
5403 /* Override any gcc2 internal prototype to avoid an error. */
5404 /* We use char because int might match the return type of a gcc2
5405 builtin and then its argument prototype would still apply. */
5406 char IceConnectionNumber();
5409 IceConnectionNumber()
5412 if { (eval echo configure:5413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5414 eval "ac_cv_lib_$ac_lib_var=yes"
5416 echo "configure: failed program was:" >&5
5417 cat conftest.$ac_ext >&5
5419 eval "ac_cv_lib_$ac_lib_var=no"
5424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5425 echo "$ac_t""yes" 1>&6
5426 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5428 echo "$ac_t""no" 1>&6
5432 LDFLAGS="$ac_save_LDFLAGS"
5435 # Autoconf claims to find X library and include dirs for us.
5436 if test "$no_x" = "yes"
5437 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5438 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5443 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5444 no ) window_system=none HAVE_X_WINDOWS=no ;;
5447 if test "$with_x11" = "yes"; then
5448 { test "$extra_verbose" = "yes" && cat << \EOF
5449 Defining HAVE_X_WINDOWS
5451 cat >> confdefs.h <<\EOF
5452 #define HAVE_X_WINDOWS 1
5456 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5457 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5459 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5460 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5461 if test -d "$lib_dir" -a -d "$inc_dir"; then
5462 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5463 x_libraries="$lib_dir $x_libraries"
5464 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5466 case "$x_includes" in "$inc_dir"* ) ;; *)
5467 x_includes="$inc_dir $x_includes"
5468 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5473 for rel in "X11R6" "X11R5" "X11R4"; do
5474 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5475 if test -d "$lib_dir" -a -d "$inc_dir"; then
5476 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5477 x_libraries="$x_libraries $lib_dir"
5478 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5480 case "$x_includes" in "$inc_dir"* ) ;; *)
5481 x_includes="$x_includes $inc_dir"
5482 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5487 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
5489 ld_switch_x_site="$X_LIBS"
5492 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5493 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5494 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5496 runpath="" runpath_dirs=""
5497 if test -n "$LD_RUN_PATH"; then
5498 runpath="$LD_RUN_PATH"
5499 elif test "$GCC" = "yes"; then
5500 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5501 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5502 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5503 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5504 case "$arg" in P,* | -L* | -R* )
5505 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5507 xe_runpath_dir="$dir"
5508 test "$xe_runpath_dir" != "/lib" -a \
5509 "$xe_runpath_dir" != "/usr/lib" -a \
5510 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5511 eval "$xe_add_unique_runpath_dir"
5516 ld_switch_run="$ld_switch_run_save"
5519 for arg in $ld_switch_site $ld_switch_x_site; do
5520 case "$arg" in -L*) {
5521 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5522 test "$xe_runpath_dir" != "/lib" -a \
5523 "$xe_runpath_dir" != "/usr/lib" -a \
5524 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5525 eval "$xe_add_unique_runpath_dir"
5528 if test "$opsys $need_motif" = "sol2 yes"; then
5529 xe_runpath_dir="/opt/SUNWdt/lib";
5530 eval "$xe_add_unique_runpath_dir";
5533 if test -n "$runpath"; then
5534 ld_switch_run="${dash_r}${runpath}"
5536 if test "$GCC" = "yes"; then
5537 set x $ld_switch_run; shift; ld_switch_run=""
5538 while test -n "$1"; do
5540 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5541 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5543 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5548 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5553 if test "$extra_verbose" = "yes"; then
5554 echo; echo "X11 compilation variables:"
5555 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5560 if test "$x_includes" != NONE; then
5561 for i in $x_includes; do
5562 if test -d "$i/bitmaps"; then
5563 bitmapdirs="$i/bitmaps:$bitmapdirs"
5565 if test -d "$i/X11/bitmaps"; then
5566 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5569 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5571 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5572 Defining BITMAPDIR = "$bitmapdirs"
5574 cat >> confdefs.h <<EOF
5575 #define BITMAPDIR "$bitmapdirs"
5580 echo "checking for X defines extracted by xmkmf" 1>&6
5581 echo "configure:5582: checking for X defines extracted by xmkmf" >&5
5583 if mkdir conftestdir; then
5585 cat > Imakefile <<'EOF'
5587 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5589 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5590 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5591 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5595 for word in $xmkmf_defines; do
5598 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5599 { test "$extra_verbose" = "yes" && cat << EOF
5602 cat >> confdefs.h <<EOF
5611 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5612 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5613 echo "configure:5614: checking for X11/Intrinsic.h" >&5
5615 cat > conftest.$ac_ext <<EOF
5616 #line 5617 "configure"
5617 #include "confdefs.h"
5618 #include <X11/Intrinsic.h>
5620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5621 { (eval echo configure:5622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5623 if test -z "$ac_err"; then
5625 eval "ac_cv_header_$ac_safe=yes"
5628 echo "configure: failed program was:" >&5
5629 cat conftest.$ac_ext >&5
5631 eval "ac_cv_header_$ac_safe=no"
5634 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5635 echo "$ac_t""yes" 1>&6
5638 echo "$ac_t""no" 1>&6
5639 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5644 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5645 echo "configure:5646: checking for XOpenDisplay in -lX11" >&5
5646 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5648 xe_check_libs=" -lX11 "
5649 cat > conftest.$ac_ext <<EOF
5650 #line 5651 "configure"
5651 #include "confdefs.h"
5652 /* Override any gcc2 internal prototype to avoid an error. */
5653 /* We use char because int might match the return type of a gcc2
5654 builtin and then its argument prototype would still apply. */
5655 char XOpenDisplay();
5661 if { (eval echo configure:5662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5663 eval "ac_cv_lib_$ac_lib_var=yes"
5665 echo "configure: failed program was:" >&5
5666 cat conftest.$ac_ext >&5
5668 eval "ac_cv_lib_$ac_lib_var=no"
5673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5674 echo "$ac_t""yes" 1>&6
5677 echo "$ac_t""no" 1>&6
5681 if test "$have_lib_x11" != "yes"; then
5683 xe_msg_checking="for XGetFontProperty in -lX11"
5684 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5685 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5686 echo "configure:5687: checking "$xe_msg_checking"" >&5
5687 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5689 xe_check_libs=" -lX11 -b i486-linuxaout"
5690 cat > conftest.$ac_ext <<EOF
5691 #line 5692 "configure"
5692 #include "confdefs.h"
5693 /* Override any gcc2 internal prototype to avoid an error. */
5694 /* We use char because int might match the return type of a gcc2
5695 builtin and then its argument prototype would still apply. */
5696 char XGetFontProperty();
5702 if { (eval echo configure:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5704 eval "ac_cv_lib_$ac_lib_var=yes"
5706 echo "configure: failed program was:" >&5
5707 cat conftest.$ac_ext >&5
5709 eval "ac_cv_lib_$ac_lib_var=no"
5714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5715 echo "$ac_t""yes" 1>&6
5716 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5718 echo "$ac_t""no" 1>&6
5719 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5725 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5728 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5729 echo "configure:5730: checking for XShapeSelectInput in -lXext" >&5
5730 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5732 xe_check_libs=" -lXext "
5733 cat > conftest.$ac_ext <<EOF
5734 #line 5735 "configure"
5735 #include "confdefs.h"
5736 /* Override any gcc2 internal prototype to avoid an error. */
5737 /* We use char because int might match the return type of a gcc2
5738 builtin and then its argument prototype would still apply. */
5739 char XShapeSelectInput();
5745 if { (eval echo configure:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5747 eval "ac_cv_lib_$ac_lib_var=yes"
5749 echo "configure: failed program was:" >&5
5750 cat conftest.$ac_ext >&5
5752 eval "ac_cv_lib_$ac_lib_var=no"
5757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5758 echo "$ac_t""yes" 1>&6
5759 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5761 echo "$ac_t""no" 1>&6
5767 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5768 echo "configure:5769: checking for XtOpenDisplay in -lXt" >&5
5769 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5771 xe_check_libs=" -lXt "
5772 cat > conftest.$ac_ext <<EOF
5773 #line 5774 "configure"
5774 #include "confdefs.h"
5775 /* Override any gcc2 internal prototype to avoid an error. */
5776 /* We use char because int might match the return type of a gcc2
5777 builtin and then its argument prototype would still apply. */
5778 char XtOpenDisplay();
5784 if { (eval echo configure:5785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5786 eval "ac_cv_lib_$ac_lib_var=yes"
5788 echo "configure: failed program was:" >&5
5789 cat conftest.$ac_ext >&5
5791 eval "ac_cv_lib_$ac_lib_var=no"
5796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5797 echo "$ac_t""yes" 1>&6
5798 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5800 echo "$ac_t""no" 1>&6
5801 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5806 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5807 echo "configure:5808: checking the version of X11 being used" >&5
5808 cat > conftest.$ac_ext <<EOF
5809 #line 5810 "configure"
5810 #include "confdefs.h"
5811 #include <X11/Intrinsic.h>
5812 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5814 if { (eval echo configure:5815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5816 ./conftest foobar; x11_release=$?
5819 echo "configure: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5825 echo "$ac_t""R${x11_release}" 1>&6
5826 { test "$extra_verbose" = "yes" && cat << EOF
5827 Defining THIS_IS_X11R${x11_release}
5829 cat >> confdefs.h <<EOF
5830 #define THIS_IS_X11R${x11_release} 1
5835 for ac_hdr in X11/Xlocale.h
5837 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5838 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5839 echo "configure:5840: checking for $ac_hdr" >&5
5841 cat > conftest.$ac_ext <<EOF
5842 #line 5843 "configure"
5843 #include "confdefs.h"
5846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5847 { (eval echo configure:5848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5849 if test -z "$ac_err"; then
5851 eval "ac_cv_header_$ac_safe=yes"
5854 echo "configure: failed program was:" >&5
5855 cat conftest.$ac_ext >&5
5857 eval "ac_cv_header_$ac_safe=no"
5860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5861 echo "$ac_t""yes" 1>&6
5862 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5863 { test "$extra_verbose" = "yes" && cat << EOF
5866 cat >> confdefs.h <<EOF
5867 #define $ac_tr_hdr 1
5872 echo "$ac_t""no" 1>&6
5877 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5878 echo "configure:5879: checking for XFree86" >&5
5879 if test -d "/usr/X386/include" -o \
5880 -f "/etc/XF86Config" -o \
5881 -f "/etc/X11/XF86Config" -o \
5882 -f "/usr/X11R6/lib/X11/XF86Config"; then
5883 echo "$ac_t""yes" 1>&6
5884 { test "$extra_verbose" = "yes" && cat << \EOF
5885 Defining HAVE_XFREE386
5887 cat >> confdefs.h <<\EOF
5888 #define HAVE_XFREE386 1
5893 echo "$ac_t""no" 1>&6
5896 test -z "$with_xmu" && {
5897 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5898 echo "configure:5899: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5899 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5901 xe_check_libs=" -lXmu "
5902 cat > conftest.$ac_ext <<EOF
5903 #line 5904 "configure"
5904 #include "confdefs.h"
5905 /* Override any gcc2 internal prototype to avoid an error. */
5906 /* We use char because int might match the return type of a gcc2
5907 builtin and then its argument prototype would still apply. */
5908 char XmuReadBitmapDataFromFile();
5911 XmuReadBitmapDataFromFile()
5914 if { (eval echo configure:5915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5916 eval "ac_cv_lib_$ac_lib_var=yes"
5918 echo "configure: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5921 eval "ac_cv_lib_$ac_lib_var=no"
5926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5927 echo "$ac_t""yes" 1>&6
5930 echo "$ac_t""no" 1>&6
5935 if test "$with_xmu" = "no"; then
5936 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
5937 echo " xemacs will be linked with \"xmu.o\""
5940 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
5941 { test "$extra_verbose" = "yes" && cat << \EOF
5944 cat >> confdefs.h <<\EOF
5952 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5953 echo "configure:5954: checking for main in -lXbsd" >&5
5954 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5956 xe_check_libs=" -lXbsd "
5957 cat > conftest.$ac_ext <<EOF
5958 #line 5959 "configure"
5959 #include "confdefs.h"
5965 if { (eval echo configure:5966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5967 eval "ac_cv_lib_$ac_lib_var=yes"
5969 echo "configure: failed program was:" >&5
5970 cat conftest.$ac_ext >&5
5972 eval "ac_cv_lib_$ac_lib_var=no"
5977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5978 echo "$ac_t""yes" 1>&6
5979 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
5981 echo "$ac_t""no" 1>&6
5986 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
5987 if test "$GCC" = "yes"; then
5988 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
5989 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
5992 "xlc" ) CC="xlc_r" ;;
5993 "xlC" ) CC="xlC_r" ;;
6000 if test "$with_msw" != "no"; then
6001 echo "checking for MS-Windows" 1>&6
6002 echo "configure:6003: checking for MS-Windows" >&5
6004 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6005 echo "configure:6006: checking for main in -lgdi32" >&5
6006 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6008 xe_check_libs=" -lgdi32 "
6009 cat > conftest.$ac_ext <<EOF
6010 #line 6011 "configure"
6011 #include "confdefs.h"
6017 if { (eval echo configure:6018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6019 eval "ac_cv_lib_$ac_lib_var=yes"
6021 echo "configure: failed program was:" >&5
6022 cat conftest.$ac_ext >&5
6024 eval "ac_cv_lib_$ac_lib_var=no"
6029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6030 echo "$ac_t""yes" 1>&6
6033 echo "$ac_t""no" 1>&6
6037 if test "$with_msw" = "yes"; then
6038 { test "$extra_verbose" = "yes" && cat << \EOF
6039 Defining HAVE_MS_WINDOWS
6041 cat >> confdefs.h <<\EOF
6042 #define HAVE_MS_WINDOWS 1
6046 install_pp="$blddir/lib-src/installexe.sh"
6047 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
6048 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6049 if test "$window_system" != x11; then
6051 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6052 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6053 echo " xemacs will be linked with \"scrollbar-msw.o\""
6055 test "$with_menubars" != "no" && with_menubars=msw \
6056 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6057 echo " xemacs will be linked with \"menubar-msw.o\""
6059 test "$with_toolbars" != "no" && with_toolbars=msw \
6060 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6061 echo " xemacs will be linked with \"toolbar-msw.o\""
6063 test "$with_dialogs" != "no" && with_dialogs=msw \
6064 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6065 echo " xemacs will be linked with \"dialog-msw.o\""
6067 test "$with_widgets" != "no" && with_widgets=msw
6069 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6070 echo " xemacs will be linked with \"scrollbar-msw.o\""
6072 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6073 echo " xemacs will be linked with \"menubar-msw.o\""
6075 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6076 echo " xemacs will be linked with \"toolbar-msw.o\""
6078 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6079 echo " xemacs will be linked with \"dialog-msw.o\""
6082 cat > conftest.$ac_ext <<EOF
6083 #line 6084 "configure"
6084 #include "confdefs.h"
6086 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6088 if { (eval echo configure:6089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6090 { test "$extra_verbose" = "yes" && cat << \EOF
6091 Defining HAVE_MSG_SELECT
6093 cat >> confdefs.h <<\EOF
6094 #define HAVE_MSG_SELECT 1
6100 echo "configure: failed program was:" >&5
6101 cat conftest.$ac_ext >&5
6105 with_file_coding=yes
6106 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
6107 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\""
6114 test -z "$window_system" && window_system="none"
6116 if test "$window_system" = "none"; then
6117 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6119 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6120 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6122 eval "with_${feature}=no"
6125 test -z "$with_toolbars" && with_toolbars=yes
6128 if test "$with_msw" != "yes"; then
6129 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6131 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6132 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6134 eval "with_${feature}=no"
6140 if test "$with_x11" != "yes"; then
6141 for feature in tooltalk cde offix wmcommand xim xmu
6143 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6144 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6146 eval "with_${feature}=no"
6152 case "$window_system" in
6153 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6154 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6155 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6158 case "$x_libraries" in *X11R4* )
6159 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6160 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6163 echo "checking for WM_COMMAND option" 1>&6
6164 echo "configure:6165: checking for WM_COMMAND option" >&5;
6165 if test "$with_wmcommand" != "no"; then
6166 { test "$extra_verbose" = "yes" && cat << \EOF
6167 Defining HAVE_WMCOMMAND
6169 cat >> confdefs.h <<\EOF
6170 #define HAVE_WMCOMMAND 1
6176 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6177 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6178 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6179 echo "configure:6180: checking for X11/Xauth.h" >&5
6181 cat > conftest.$ac_ext <<EOF
6182 #line 6183 "configure"
6183 #include "confdefs.h"
6184 #include <X11/Xauth.h>
6186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6187 { (eval echo configure:6188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6189 if test -z "$ac_err"; then
6191 eval "ac_cv_header_$ac_safe=yes"
6194 echo "configure: failed program was:" >&5
6195 cat conftest.$ac_ext >&5
6197 eval "ac_cv_header_$ac_safe=no"
6200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6201 echo "$ac_t""yes" 1>&6
6204 echo "$ac_t""no" 1>&6
6208 test -z "$with_xauth" && {
6209 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6210 echo "configure:6211: checking for XauGetAuthByAddr in -lXau" >&5
6211 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6213 xe_check_libs=" -lXau "
6214 cat > conftest.$ac_ext <<EOF
6215 #line 6216 "configure"
6216 #include "confdefs.h"
6217 /* Override any gcc2 internal prototype to avoid an error. */
6218 /* We use char because int might match the return type of a gcc2
6219 builtin and then its argument prototype would still apply. */
6220 char XauGetAuthByAddr();
6226 if { (eval echo configure:6227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6228 eval "ac_cv_lib_$ac_lib_var=yes"
6230 echo "configure: failed program was:" >&5
6231 cat conftest.$ac_ext >&5
6233 eval "ac_cv_lib_$ac_lib_var=no"
6238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6239 echo "$ac_t""yes" 1>&6
6242 echo "$ac_t""no" 1>&6
6247 test -z "$with_xauth" && with_xauth=yes
6248 if test "$with_xauth" = "yes"; then
6249 { test "$extra_verbose" = "yes" && cat << \EOF
6252 cat >> confdefs.h <<\EOF
6253 #define HAVE_XAUTH 1
6259 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
6267 if test "$with_tooltalk" != "no" ; then
6268 for dir in "" "Tt/" "desktop/" ; do
6269 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6270 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6271 echo "configure:6272: checking for ${dir}tt_c.h" >&5
6273 cat > conftest.$ac_ext <<EOF
6274 #line 6275 "configure"
6275 #include "confdefs.h"
6276 #include <${dir}tt_c.h>
6278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6279 { (eval echo configure:6280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6281 if test -z "$ac_err"; then
6283 eval "ac_cv_header_$ac_safe=yes"
6286 echo "configure: failed program was:" >&5
6287 cat conftest.$ac_ext >&5
6289 eval "ac_cv_header_$ac_safe=no"
6292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6293 echo "$ac_t""yes" 1>&6
6294 tt_c_h_path="${dir}tt_c.h"; break
6296 echo "$ac_t""no" 1>&6
6300 if test -z "$tt_c_h_path"; then
6301 if test "$with_tooltalk" = "yes"; then
6302 (echo "$progname: Usage error:"
6303 echo " " "Unable to find required tooltalk header files."
6304 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6309 if test "$with_tooltalk" != "no" ; then
6310 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6312 xe_msg_checking="for tt_message_create in -ltt"
6313 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6314 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6315 echo "configure:6316: checking "$xe_msg_checking"" >&5
6316 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6318 xe_check_libs=" -ltt $extra_libs"
6319 cat > conftest.$ac_ext <<EOF
6320 #line 6321 "configure"
6321 #include "confdefs.h"
6322 /* Override any gcc2 internal prototype to avoid an error. */
6323 /* We use char because int might match the return type of a gcc2
6324 builtin and then its argument prototype would still apply. */
6325 char tt_message_create();
6331 if { (eval echo configure:6332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6333 eval "ac_cv_lib_$ac_lib_var=yes"
6335 echo "configure: failed program was:" >&5
6336 cat conftest.$ac_ext >&5
6338 eval "ac_cv_lib_$ac_lib_var=no"
6343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6344 echo "$ac_t""yes" 1>&6
6345 tt_libs="-ltt $extra_libs"; break
6347 echo "$ac_t""no" 1>&6
6353 if test -z "$tt_libs"; then
6354 if test "$with_tooltalk" = "yes"; then
6355 (echo "$progname: Usage error:"
6356 echo " " "Unable to find required tooltalk libraries."
6357 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6362 test -z "$with_tooltalk" && with_tooltalk=yes
6363 if test "$with_tooltalk" = "yes"; then
6364 { test "$extra_verbose" = "yes" && cat << \EOF
6367 cat >> confdefs.h <<\EOF
6372 { test "$extra_verbose" = "yes" && cat << EOF
6373 Defining TT_C_H_PATH = "$tt_c_h_path"
6375 cat >> confdefs.h <<EOF
6376 #define TT_C_H_PATH "$tt_c_h_path"
6380 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6381 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6382 echo " xemacs will be linked with \"tooltalk.o\""
6386 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6387 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6388 echo "configure:6389: checking for Dt/Dt.h" >&5
6390 cat > conftest.$ac_ext <<EOF
6391 #line 6392 "configure"
6392 #include "confdefs.h"
6395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6396 { (eval echo configure:6397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6398 if test -z "$ac_err"; then
6400 eval "ac_cv_header_$ac_safe=yes"
6403 echo "configure: failed program was:" >&5
6404 cat conftest.$ac_ext >&5
6406 eval "ac_cv_header_$ac_safe=no"
6409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6410 echo "$ac_t""yes" 1>&6
6413 echo "$ac_t""no" 1>&6
6417 test -z "$with_cde" && {
6418 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6419 echo "configure:6420: checking for DtDndDragStart in -lDtSvc" >&5
6420 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6422 xe_check_libs=" -lDtSvc "
6423 cat > conftest.$ac_ext <<EOF
6424 #line 6425 "configure"
6425 #include "confdefs.h"
6426 /* Override any gcc2 internal prototype to avoid an error. */
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6429 char DtDndDragStart();
6435 if { (eval echo configure:6436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6437 eval "ac_cv_lib_$ac_lib_var=yes"
6439 echo "configure: failed program was:" >&5
6440 cat conftest.$ac_ext >&5
6442 eval "ac_cv_lib_$ac_lib_var=no"
6447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6448 echo "$ac_t""yes" 1>&6
6451 echo "$ac_t""no" 1>&6
6456 test -z "$with_cde" && with_cde=yes
6457 if test "$with_dragndrop" = no; then
6458 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6461 if test "$with_cde" = "yes" ; then
6462 { test "$extra_verbose" = "yes" && cat << \EOF
6465 cat >> confdefs.h <<\EOF
6470 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6471 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6472 with_tooltalk=yes # CDE requires Tooltalk
6473 need_motif=yes # CDE requires Motif
6476 test "$window_system" != "x11" && with_offix=no
6477 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6478 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6481 if test "$with_dragndrop" = no; then
6482 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6485 if test "$with_cde" = yes; then
6486 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6489 test -z "$with_offix" && with_offix=no
6490 if test "$with_offix" = "yes"; then
6491 { test "$extra_verbose" = "yes" && cat << \EOF
6492 Defining HAVE_OFFIX_DND
6494 cat >> confdefs.h <<\EOF
6495 #define HAVE_OFFIX_DND 1
6499 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6500 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6503 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6504 echo "configure:6505: checking if drag and drop API is needed" >&5
6505 if test "$with_dragndrop" != "no" ; then
6506 if test -n "$dragndrop_proto" ; then
6508 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6509 { test "$extra_verbose" = "yes" && cat << \EOF
6510 Defining HAVE_DRAGNDROP
6512 cat >> confdefs.h <<\EOF
6513 #define HAVE_DRAGNDROP 1
6517 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6520 echo "$ac_t""no" 1>&6
6524 echo "checking for LDAP" 1>&6
6525 echo "configure:6526: checking for LDAP" >&5
6526 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6527 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6528 echo "configure:6529: checking for ldap.h" >&5
6530 cat > conftest.$ac_ext <<EOF
6531 #line 6532 "configure"
6532 #include "confdefs.h"
6535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6536 { (eval echo configure:6537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6538 if test -z "$ac_err"; then
6540 eval "ac_cv_header_$ac_safe=yes"
6543 echo "configure: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6546 eval "ac_cv_header_$ac_safe=no"
6549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6550 echo "$ac_t""yes" 1>&6
6553 echo "$ac_t""no" 1>&6
6557 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6558 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6559 echo "configure:6560: checking for lber.h" >&5
6561 cat > conftest.$ac_ext <<EOF
6562 #line 6563 "configure"
6563 #include "confdefs.h"
6566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6567 { (eval echo configure:6568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6569 if test -z "$ac_err"; then
6571 eval "ac_cv_header_$ac_safe=yes"
6574 echo "configure: failed program was:" >&5
6575 cat conftest.$ac_ext >&5
6577 eval "ac_cv_header_$ac_safe=no"
6580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6581 echo "$ac_t""yes" 1>&6
6584 echo "$ac_t""no" 1>&6
6588 if test "$with_ldap" != "no"; then
6590 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6591 echo "configure:6592: checking for ldap_search in -lldap" >&5
6592 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6594 xe_check_libs=" -lldap "
6595 cat > conftest.$ac_ext <<EOF
6596 #line 6597 "configure"
6597 #include "confdefs.h"
6598 /* Override any gcc2 internal prototype to avoid an error. */
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6607 if { (eval echo configure:6608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6609 eval "ac_cv_lib_$ac_lib_var=yes"
6611 echo "configure: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6614 eval "ac_cv_lib_$ac_lib_var=no"
6619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6620 echo "$ac_t""yes" 1>&6
6621 with_ldap_nolber=yes
6623 echo "$ac_t""no" 1>&6
6628 test "$with_ldap_nolber" = "no" && {
6629 xe_msg_checking="for ldap_open in -lldap"
6630 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6631 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6632 echo "configure:6633: checking "$xe_msg_checking"" >&5
6633 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6635 xe_check_libs=" -lldap -llber"
6636 cat > conftest.$ac_ext <<EOF
6637 #line 6638 "configure"
6638 #include "confdefs.h"
6639 /* Override any gcc2 internal prototype to avoid an error. */
6640 /* We use char because int might match the return type of a gcc2
6641 builtin and then its argument prototype would still apply. */
6648 if { (eval echo configure:6649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6650 eval "ac_cv_lib_$ac_lib_var=yes"
6652 echo "configure: failed program was:" >&5
6653 cat conftest.$ac_ext >&5
6655 eval "ac_cv_lib_$ac_lib_var=no"
6660 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6661 echo "$ac_t""yes" 1>&6
6664 echo "$ac_t""no" 1>&6
6669 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
6670 xe_msg_checking="for ldap_open in -lldap"
6671 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
6672 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6673 echo "configure:6674: checking "$xe_msg_checking"" >&5
6674 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6676 xe_check_libs=" -lldap -llber -lkrb"
6677 cat > conftest.$ac_ext <<EOF
6678 #line 6679 "configure"
6679 #include "confdefs.h"
6680 /* Override any gcc2 internal prototype to avoid an error. */
6681 /* We use char because int might match the return type of a gcc2
6682 builtin and then its argument prototype would still apply. */
6689 if { (eval echo configure:6690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6691 eval "ac_cv_lib_$ac_lib_var=yes"
6693 echo "configure: failed program was:" >&5
6694 cat conftest.$ac_ext >&5
6696 eval "ac_cv_lib_$ac_lib_var=no"
6701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6702 echo "$ac_t""yes" 1>&6
6705 echo "$ac_t""no" 1>&6
6710 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
6711 xe_msg_checking="for ldap_open in -lldap"
6712 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
6713 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6714 echo "configure:6715: checking "$xe_msg_checking"" >&5
6715 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6717 xe_check_libs=" -lldap -llber -lkrb -ldes"
6718 cat > conftest.$ac_ext <<EOF
6719 #line 6720 "configure"
6720 #include "confdefs.h"
6721 /* Override any gcc2 internal prototype to avoid an error. */
6722 /* We use char because int might match the return type of a gcc2
6723 builtin and then its argument prototype would still apply. */
6730 if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6732 eval "ac_cv_lib_$ac_lib_var=yes"
6734 echo "configure: failed program was:" >&5
6735 cat conftest.$ac_ext >&5
6737 eval "ac_cv_lib_$ac_lib_var=no"
6742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6743 echo "$ac_t""yes" 1>&6
6744 with_ldap_krbdes=yes
6746 echo "$ac_t""no" 1>&6
6751 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
6753 if test "$with_ldap" = "yes"; then
6754 { test "$extra_verbose" = "yes" && cat << \EOF
6757 cat >> confdefs.h <<\EOF
6762 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6763 echo " xemacs will be linked with \"eldap.o\""
6765 if test "$with_ldap_nolber" = "yes" ; then
6766 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6768 if test "$with_ldap_krb" = "yes" ; then
6769 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6771 if test "$with_ldap_krbdes" = "yes" ; then
6772 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
6773 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6775 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6776 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6778 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
6780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6781 echo "configure:6782: checking for $ac_func" >&5
6783 cat > conftest.$ac_ext <<EOF
6784 #line 6785 "configure"
6785 #include "confdefs.h"
6786 /* System header to define __stub macros and hopefully few prototypes,
6787 which can conflict with char $ac_func(); below. */
6789 /* Override any gcc2 internal prototype to avoid an error. */
6790 /* We use char because int might match the return type of a gcc2
6791 builtin and then its argument prototype would still apply. */
6796 /* The GNU C library defines this for functions which it implements
6797 to always fail with ENOSYS. Some functions are actually named
6798 something starting with __ and the normal name is an alias. */
6799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6807 if { (eval echo configure:6808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6809 eval "ac_cv_func_$ac_func=yes"
6811 echo "configure: failed program was:" >&5
6812 cat conftest.$ac_ext >&5
6814 eval "ac_cv_func_$ac_func=no"
6818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6819 echo "$ac_t""yes" 1>&6
6820 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6821 { test "$extra_verbose" = "yes" && cat << EOF
6822 Defining $ac_tr_func
6824 cat >> confdefs.h <<EOF
6825 #define $ac_tr_func 1
6830 echo "$ac_t""no" 1>&6
6837 if test "$window_system" != "none"; then
6838 echo "checking for graphics libraries" 1>&6
6839 echo "configure:6840: checking for graphics libraries" >&5
6842 if test -z "$with_xpm"; then
6843 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6844 echo "configure:6845: checking for Xpm - no older than 3.4f" >&5
6846 cat > conftest.$ac_ext <<EOF
6847 #line 6848 "configure"
6848 #include "confdefs.h"
6849 #include <X11/xpm.h>
6850 int main(int c, char **v) {
6852 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6853 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6855 if { (eval echo configure:6856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6857 ./conftest dummy_arg; xpm_status=$?;
6858 if test "$xpm_status" = "0"; then
6862 if test "$xpm_status" = "1"; then
6863 xpm_problem="Xpm library version and header file version don't match!"
6864 elif test "$xpm_status" = "2"; then
6865 xpm_problem="Xpm library version is too old!"
6867 xpm_problem="Internal xpm detection logic error!"
6870 *** WARNING *** $xpm_problem
6871 I'm not touching that with a 10-foot pole!
6872 If you really want to use the installed version of Xpm, rerun
6873 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
6877 echo "configure: failed program was:" >&5
6878 cat conftest.$ac_ext >&5
6884 echo "$ac_t""$with_xpm" 1>&6
6886 if test "$with_xpm" = "yes"; then
6887 { test "$extra_verbose" = "yes" && cat << \EOF
6890 cat >> confdefs.h <<\EOF
6895 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6896 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6897 echo "configure:6898: checking for \"FOR_MSW\" xpm" >&5
6899 cat > conftest.$ac_ext <<EOF
6900 #line 6901 "configure"
6901 #include "confdefs.h"
6904 XpmCreatePixmapFromData()
6907 if { (eval echo configure:6908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6911 echo "configure: failed program was:" >&5
6912 cat conftest.$ac_ext >&5
6918 echo "$ac_t""$xpm_for_msw" 1>&6
6919 if test "$xpm_for_msw" = "yes"; then
6920 { test "$extra_verbose" = "yes" && cat << \EOF
6923 cat >> confdefs.h <<\EOF
6931 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6932 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6933 echo "configure:6934: checking for compface.h" >&5
6935 cat > conftest.$ac_ext <<EOF
6936 #line 6937 "configure"
6937 #include "confdefs.h"
6938 #include <compface.h>
6940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6941 { (eval echo configure:6942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6943 if test -z "$ac_err"; then
6945 eval "ac_cv_header_$ac_safe=yes"
6948 echo "configure: failed program was:" >&5
6949 cat conftest.$ac_ext >&5
6951 eval "ac_cv_header_$ac_safe=no"
6954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6955 echo "$ac_t""yes" 1>&6
6958 echo "$ac_t""no" 1>&6
6962 test -z "$with_xface" && {
6963 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6964 echo "configure:6965: checking for UnGenFace in -lcompface" >&5
6965 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6967 xe_check_libs=" -lcompface "
6968 cat > conftest.$ac_ext <<EOF
6969 #line 6970 "configure"
6970 #include "confdefs.h"
6971 /* Override any gcc2 internal prototype to avoid an error. */
6972 /* We use char because int might match the return type of a gcc2
6973 builtin and then its argument prototype would still apply. */
6980 if { (eval echo configure:6981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6982 eval "ac_cv_lib_$ac_lib_var=yes"
6984 echo "configure: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6987 eval "ac_cv_lib_$ac_lib_var=no"
6992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6993 echo "$ac_t""yes" 1>&6
6996 echo "$ac_t""no" 1>&6
7001 test -z "$with_xface" && with_xface=yes
7002 if test "$with_xface" = "yes"; then
7003 { test "$extra_verbose" = "yes" && cat << \EOF
7006 cat >> confdefs.h <<\EOF
7007 #define HAVE_XFACE 1
7011 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7014 if test "$with_gif" != "no"; then
7016 { test "$extra_verbose" = "yes" && cat << \EOF
7019 cat >> confdefs.h <<\EOF
7024 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7025 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7029 if test "$with_png $with_tiff" != "no no"; then
7031 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7032 echo "configure:7033: checking for inflate in -lc" >&5
7033 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7035 xe_check_libs=" -lc "
7036 cat > conftest.$ac_ext <<EOF
7037 #line 7038 "configure"
7038 #include "confdefs.h"
7039 /* Override any gcc2 internal prototype to avoid an error. */
7040 /* We use char because int might match the return type of a gcc2
7041 builtin and then its argument prototype would still apply. */
7048 if { (eval echo configure:7049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7050 eval "ac_cv_lib_$ac_lib_var=yes"
7052 echo "configure: failed program was:" >&5
7053 cat conftest.$ac_ext >&5
7055 eval "ac_cv_lib_$ac_lib_var=no"
7060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7061 echo "$ac_t""yes" 1>&6
7064 echo "$ac_t""no" 1>&6
7066 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7067 echo "configure:7068: checking for inflate in -lz" >&5
7068 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7070 xe_check_libs=" -lz "
7071 cat > conftest.$ac_ext <<EOF
7072 #line 7073 "configure"
7073 #include "confdefs.h"
7074 /* Override any gcc2 internal prototype to avoid an error. */
7075 /* We use char because int might match the return type of a gcc2
7076 builtin and then its argument prototype would still apply. */
7083 if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7085 eval "ac_cv_lib_$ac_lib_var=yes"
7087 echo "configure: failed program was:" >&5
7088 cat conftest.$ac_ext >&5
7090 eval "ac_cv_lib_$ac_lib_var=no"
7095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7096 echo "$ac_t""yes" 1>&6
7097 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7099 echo "$ac_t""no" 1>&6
7101 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7102 echo "configure:7103: checking for inflate in -lgz" >&5
7103 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7105 xe_check_libs=" -lgz "
7106 cat > conftest.$ac_ext <<EOF
7107 #line 7108 "configure"
7108 #include "confdefs.h"
7109 /* Override any gcc2 internal prototype to avoid an error. */
7110 /* We use char because int might match the return type of a gcc2
7111 builtin and then its argument prototype would still apply. */
7118 if { (eval echo configure:7119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7120 eval "ac_cv_lib_$ac_lib_var=yes"
7122 echo "configure: failed program was:" >&5
7123 cat conftest.$ac_ext >&5
7125 eval "ac_cv_lib_$ac_lib_var=no"
7130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7131 echo "$ac_t""yes" 1>&6
7132 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7134 echo "$ac_t""no" 1>&6
7146 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7147 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7148 echo "configure:7149: checking for jpeglib.h" >&5
7150 cat > conftest.$ac_ext <<EOF
7151 #line 7152 "configure"
7152 #include "confdefs.h"
7153 #include <jpeglib.h>
7155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7156 { (eval echo configure:7157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7158 if test -z "$ac_err"; then
7160 eval "ac_cv_header_$ac_safe=yes"
7163 echo "configure: failed program was:" >&5
7164 cat conftest.$ac_ext >&5
7166 eval "ac_cv_header_$ac_safe=no"
7169 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7170 echo "$ac_t""yes" 1>&6
7173 echo "$ac_t""no" 1>&6
7177 test -z "$with_jpeg" && {
7178 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7179 echo "configure:7180: checking for jpeg_destroy_decompress in -ljpeg" >&5
7180 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7182 xe_check_libs=" -ljpeg "
7183 cat > conftest.$ac_ext <<EOF
7184 #line 7185 "configure"
7185 #include "confdefs.h"
7186 /* Override any gcc2 internal prototype to avoid an error. */
7187 /* We use char because int might match the return type of a gcc2
7188 builtin and then its argument prototype would still apply. */
7189 char jpeg_destroy_decompress();
7192 jpeg_destroy_decompress()
7195 if { (eval echo configure:7196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7197 eval "ac_cv_lib_$ac_lib_var=yes"
7199 echo "configure: failed program was:" >&5
7200 cat conftest.$ac_ext >&5
7202 eval "ac_cv_lib_$ac_lib_var=no"
7207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7208 echo "$ac_t""yes" 1>&6
7211 echo "$ac_t""no" 1>&6
7216 test -z "$with_jpeg" && with_jpeg=yes
7217 if test "$with_jpeg" = "yes"; then
7218 { test "$extra_verbose" = "yes" && cat << \EOF
7221 cat >> confdefs.h <<\EOF
7226 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7230 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7231 echo "configure:7232: checking for pow" >&5
7233 cat > conftest.$ac_ext <<EOF
7234 #line 7235 "configure"
7235 #include "confdefs.h"
7236 /* System header to define __stub macros and hopefully few prototypes,
7237 which can conflict with char pow(); below. */
7239 /* Override any gcc2 internal prototype to avoid an error. */
7240 /* We use char because int might match the return type of a gcc2
7241 builtin and then its argument prototype would still apply. */
7246 /* The GNU C library defines this for functions which it implements
7247 to always fail with ENOSYS. Some functions are actually named
7248 something starting with __ and the normal name is an alias. */
7249 #if defined (__stub_pow) || defined (__stub___pow)
7257 if { (eval echo configure:7258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7259 eval "ac_cv_func_pow=yes"
7261 echo "configure: failed program was:" >&5
7262 cat conftest.$ac_ext >&5
7264 eval "ac_cv_func_pow=no"
7268 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7269 echo "$ac_t""yes" 1>&6
7272 echo "$ac_t""no" 1>&6
7276 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7277 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7278 echo "configure:7279: checking for png.h" >&5
7280 cat > conftest.$ac_ext <<EOF
7281 #line 7282 "configure"
7282 #include "confdefs.h"
7285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7286 { (eval echo configure:7287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7288 if test -z "$ac_err"; then
7290 eval "ac_cv_header_$ac_safe=yes"
7293 echo "configure: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7296 eval "ac_cv_header_$ac_safe=no"
7299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7300 echo "$ac_t""yes" 1>&6
7303 echo "$ac_t""no" 1>&6
7307 test -z "$with_png" && {
7308 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7309 echo "configure:7310: checking for png_read_image in -lpng" >&5
7310 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7312 xe_check_libs=" -lpng "
7313 cat > conftest.$ac_ext <<EOF
7314 #line 7315 "configure"
7315 #include "confdefs.h"
7316 /* Override any gcc2 internal prototype to avoid an error. */
7317 /* We use char because int might match the return type of a gcc2
7318 builtin and then its argument prototype would still apply. */
7319 char png_read_image();
7325 if { (eval echo configure:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7327 eval "ac_cv_lib_$ac_lib_var=yes"
7329 echo "configure: failed program was:" >&5
7330 cat conftest.$ac_ext >&5
7332 eval "ac_cv_lib_$ac_lib_var=no"
7337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7338 echo "$ac_t""yes" 1>&6
7341 echo "$ac_t""no" 1>&6
7346 if test -z "$with_png"; then
7347 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7348 echo "configure:7349: checking for workable png version information" >&5
7349 xe_check_libs="-lpng -lz"
7350 cat > conftest.$ac_ext <<EOF
7351 #line 7352 "configure"
7352 #include "confdefs.h"
7354 int main(int c, char **v) {
7355 if (c == 1) return 0;
7356 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7357 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7359 if { (eval echo configure:7360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7361 ./conftest dummy_arg; png_status=$?;
7362 if test "$png_status" = "0"; then
7366 if test "$png_status" = "1"; then
7367 png_problem="PNG library version and header file don't match!"
7368 elif test "$png_status" = "2"; then
7369 png_problem="PNG library version too old (pre 1.0.2)!"
7372 *** WARNING *** $png_problem
7373 I'm not touching that with a 10-foot pole!
7374 If you really want to use the installed version of libPNG, rerun
7375 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7379 echo "configure: failed program was:" >&5
7380 cat conftest.$ac_ext >&5
7386 echo "$ac_t""$with_png" 1>&6
7388 if test "$with_png" = "yes"; then
7389 { test "$extra_verbose" = "yes" && cat << \EOF
7392 cat >> confdefs.h <<\EOF
7397 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7400 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7401 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7402 echo "configure:7403: checking for tiffio.h" >&5
7404 cat > conftest.$ac_ext <<EOF
7405 #line 7406 "configure"
7406 #include "confdefs.h"
7409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7410 { (eval echo configure:7411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7412 if test -z "$ac_err"; then
7414 eval "ac_cv_header_$ac_safe=yes"
7417 echo "configure: failed program was:" >&5
7418 cat conftest.$ac_ext >&5
7420 eval "ac_cv_header_$ac_safe=no"
7423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7424 echo "$ac_t""yes" 1>&6
7427 echo "$ac_t""no" 1>&6
7431 test -z "$with_tiff" && {
7432 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7433 echo "configure:7434: checking for TIFFClientOpen in -ltiff" >&5
7434 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7436 xe_check_libs=" -ltiff "
7437 cat > conftest.$ac_ext <<EOF
7438 #line 7439 "configure"
7439 #include "confdefs.h"
7440 /* Override any gcc2 internal prototype to avoid an error. */
7441 /* We use char because int might match the return type of a gcc2
7442 builtin and then its argument prototype would still apply. */
7443 char TIFFClientOpen();
7449 if { (eval echo configure:7450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7451 eval "ac_cv_lib_$ac_lib_var=yes"
7453 echo "configure: failed program was:" >&5
7454 cat conftest.$ac_ext >&5
7456 eval "ac_cv_lib_$ac_lib_var=no"
7461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7462 echo "$ac_t""yes" 1>&6
7465 echo "$ac_t""no" 1>&6
7470 test -z "$with_tiff" && with_tiff=yes
7471 if test "$with_tiff" = "yes"; then
7472 { test "$extra_verbose" = "yes" && cat << \EOF
7475 cat >> confdefs.h <<\EOF
7480 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7485 if test "$with_x11" = "yes"; then
7487 echo "checking for X11 graphics libraries" 1>&6
7488 echo "configure:7489: checking for X11 graphics libraries" >&5
7491 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7492 echo "configure:7493: checking for XawScrollbarSetThumb in -lXaw" >&5
7493 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7495 xe_check_libs=" -lXaw "
7496 cat > conftest.$ac_ext <<EOF
7497 #line 7498 "configure"
7498 #include "confdefs.h"
7499 /* Override any gcc2 internal prototype to avoid an error. */
7500 /* We use char because int might match the return type of a gcc2
7501 builtin and then its argument prototype would still apply. */
7502 char XawScrollbarSetThumb();
7505 XawScrollbarSetThumb()
7508 if { (eval echo configure:7509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7510 eval "ac_cv_lib_$ac_lib_var=yes"
7512 echo "configure: failed program was:" >&5
7513 cat conftest.$ac_ext >&5
7515 eval "ac_cv_lib_$ac_lib_var=no"
7520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7521 echo "$ac_t""yes" 1>&6
7524 echo "$ac_t""no" 1>&6
7530 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7531 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7532 echo "configure:7533: checking for Xm/Xm.h" >&5
7534 cat > conftest.$ac_ext <<EOF
7535 #line 7536 "configure"
7536 #include "confdefs.h"
7539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7540 { (eval echo configure:7541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7542 if test -z "$ac_err"; then
7544 eval "ac_cv_header_$ac_safe=yes"
7547 echo "configure: failed program was:" >&5
7548 cat conftest.$ac_ext >&5
7550 eval "ac_cv_header_$ac_safe=no"
7553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7554 echo "$ac_t""yes" 1>&6
7556 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7557 echo "configure:7558: checking for XmStringFree in -lXm" >&5
7558 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7560 xe_check_libs=" -lXm "
7561 cat > conftest.$ac_ext <<EOF
7562 #line 7563 "configure"
7563 #include "confdefs.h"
7564 /* Override any gcc2 internal prototype to avoid an error. */
7565 /* We use char because int might match the return type of a gcc2
7566 builtin and then its argument prototype would still apply. */
7567 char XmStringFree();
7573 if { (eval echo configure:7574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7575 eval "ac_cv_lib_$ac_lib_var=yes"
7577 echo "configure: failed program was:" >&5
7578 cat conftest.$ac_ext >&5
7580 eval "ac_cv_lib_$ac_lib_var=no"
7585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7586 echo "$ac_t""yes" 1>&6
7589 echo "$ac_t""no" 1>&6
7595 echo "$ac_t""no" 1>&6
7600 if test "$have_motif" = "yes"; then
7601 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7602 echo "configure:7603: checking for Lesstif" >&5
7603 cat > conftest.$ac_ext <<EOF
7604 #line 7605 "configure"
7605 #include "confdefs.h"
7607 #ifdef LESSTIF_VERSION
7612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7613 egrep "yes" >/dev/null 2>&1; then
7622 echo "$ac_t""$have_lesstif" 1>&6
7627 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
7628 with_menubars="lucid" ;;
7630 case "$with_dialogs" in "" | "yes" | "lucid" )
7631 if test "$have_motif" = "yes"; then with_dialogs="motif"
7632 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
7633 else with_dialogs=no
7636 case "$with_scrollbars" in "" | "yes" )
7637 with_scrollbars="lucid" ;;
7639 case "$with_widgets" in "" | "yes" )
7640 if test "$have_motif" = "yes"; then with_widgets="motif"
7641 else with_widgets=no
7645 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
7647 case "$all_widgets" in *athena* )
7648 { test "$extra_verbose" = "yes" && cat << \EOF
7649 Defining LWLIB_USES_ATHENA
7651 cat >> confdefs.h <<\EOF
7652 #define LWLIB_USES_ATHENA 1
7656 { test "$extra_verbose" = "yes" && cat << \EOF
7657 Defining NEED_ATHENA
7659 cat >> confdefs.h <<\EOF
7660 #define NEED_ATHENA 1
7664 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
7665 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
7668 case "$all_widgets" in *motif* )
7669 { test "$extra_verbose" = "yes" && cat << \EOF
7670 Defining LWLIB_USES_MOTIF
7672 cat >> confdefs.h <<\EOF
7673 #define LWLIB_USES_MOTIF 1
7677 { test "$extra_verbose" = "yes" && cat << \EOF
7680 cat >> confdefs.h <<\EOF
7681 #define NEED_MOTIF 1
7685 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
7689 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7690 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7691 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
7692 case "$all_widgets" in *lucid* )
7693 { test "$extra_verbose" = "yes" && cat << \EOF
7696 cat >> confdefs.h <<\EOF
7697 #define NEED_LUCID 1
7701 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
7706 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7707 Defining LWLIB_SCROLLBARS_ATHENA
7709 cat >> confdefs.h <<\EOF
7710 #define LWLIB_SCROLLBARS_ATHENA 1
7714 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7715 Defining LWLIB_DIALOGS_ATHENA
7717 cat >> confdefs.h <<\EOF
7718 #define LWLIB_DIALOGS_ATHENA 1
7722 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7723 Defining LWLIB_SCROLLBARS_ATHENA3D
7725 cat >> confdefs.h <<\EOF
7726 #define LWLIB_SCROLLBARS_ATHENA3D 1
7730 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7731 Defining LWLIB_DIALOGS_ATHENA3D
7733 cat >> confdefs.h <<\EOF
7734 #define LWLIB_DIALOGS_ATHENA3D 1
7739 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7740 Defining HAVE_MENUBARS
7742 cat >> confdefs.h <<\EOF
7743 #define HAVE_MENUBARS 1
7747 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7748 Defining HAVE_SCROLLBARS
7750 cat >> confdefs.h <<\EOF
7751 #define HAVE_SCROLLBARS 1
7755 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7756 Defining HAVE_DIALOGS
7758 cat >> confdefs.h <<\EOF
7759 #define HAVE_DIALOGS 1
7763 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7764 Defining HAVE_TOOLBARS
7766 cat >> confdefs.h <<\EOF
7767 #define HAVE_TOOLBARS 1
7772 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7773 Defining LWLIB_MENUBARS_LUCID
7775 cat >> confdefs.h <<\EOF
7776 #define LWLIB_MENUBARS_LUCID 1
7780 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7781 Defining LWLIB_SCROLLBARS_LUCID
7783 cat >> confdefs.h <<\EOF
7784 #define LWLIB_SCROLLBARS_LUCID 1
7789 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7790 Defining LWLIB_MENUBARS_MOTIF
7792 cat >> confdefs.h <<\EOF
7793 #define LWLIB_MENUBARS_MOTIF 1
7797 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7798 Defining LWLIB_SCROLLBARS_MOTIF
7800 cat >> confdefs.h <<\EOF
7801 #define LWLIB_SCROLLBARS_MOTIF 1
7805 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7806 Defining LWLIB_DIALOGS_MOTIF
7808 cat >> confdefs.h <<\EOF
7809 #define LWLIB_DIALOGS_MOTIF 1
7814 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
7815 echo " xemacs will be linked with \"menubar.o\""
7817 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
7818 echo " xemacs will be linked with \"scrollbar.o\""
7820 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
7821 echo " xemacs will be linked with \"dialog.o\""
7823 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
7824 echo " xemacs will be linked with \"toolbar.o\""
7827 if test "$with_x11" = "yes"; then
7828 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
7829 echo " xemacs will be linked with \"menubar-x.o\""
7831 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
7832 echo " xemacs will be linked with \"scrollbar-x.o\""
7834 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
7835 echo " xemacs will be linked with \"dialog-x.o\""
7837 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
7838 echo " xemacs will be linked with \"toolbar-x.o\""
7840 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
7841 echo " xemacs will be linked with \"gui-x.o\""
7844 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
7845 echo "Attempt to Build NAS sound without X"
7846 echo "Please remove NAS configuration or build with X"
7852 test -z "$with_mule" && with_mule=no
7853 test -z "$with_file_coding" && with_file_coding=no
7856 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
7857 { test "$extra_verbose" = "yes" && cat << \EOF
7858 Defining FILE_CODING
7860 cat >> confdefs.h <<\EOF
7861 #define FILE_CODING 1
7865 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
7866 echo " xemacs will be linked with \"file-coding.o\""
7870 if test "$with_mule" = "yes" ; then
7871 echo "checking for Mule-related features" 1>&6
7872 echo "configure:7873: checking for Mule-related features" >&5
7873 { test "$extra_verbose" = "yes" && cat << \EOF
7876 cat >> confdefs.h <<\EOF
7881 { test "$extra_verbose" = "yes" && cat << \EOF
7882 Defining FILE_CODING
7884 cat >> confdefs.h <<\EOF
7885 #define FILE_CODING 1
7889 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
7890 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
7893 for ac_hdr in libintl.h
7895 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7897 echo "configure:7898: checking for $ac_hdr" >&5
7899 cat > conftest.$ac_ext <<EOF
7900 #line 7901 "configure"
7901 #include "confdefs.h"
7904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7905 { (eval echo configure:7906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7907 if test -z "$ac_err"; then
7909 eval "ac_cv_header_$ac_safe=yes"
7912 echo "configure: failed program was:" >&5
7913 cat conftest.$ac_ext >&5
7915 eval "ac_cv_header_$ac_safe=no"
7918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7919 echo "$ac_t""yes" 1>&6
7920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7921 { test "$extra_verbose" = "yes" && cat << EOF
7924 cat >> confdefs.h <<EOF
7925 #define $ac_tr_hdr 1
7930 echo "$ac_t""no" 1>&6
7935 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7936 echo "configure:7937: checking for strerror in -lintl" >&5
7937 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7939 xe_check_libs=" -lintl "
7940 cat > conftest.$ac_ext <<EOF
7941 #line 7942 "configure"
7942 #include "confdefs.h"
7943 /* Override any gcc2 internal prototype to avoid an error. */
7944 /* We use char because int might match the return type of a gcc2
7945 builtin and then its argument prototype would still apply. */
7952 if { (eval echo configure:7953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7954 eval "ac_cv_lib_$ac_lib_var=yes"
7956 echo "configure: failed program was:" >&5
7957 cat conftest.$ac_ext >&5
7959 eval "ac_cv_lib_$ac_lib_var=no"
7964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7965 echo "$ac_t""yes" 1>&6
7966 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7967 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7968 { test "$extra_verbose" = "yes" && cat << EOF
7971 cat >> confdefs.h <<EOF
7972 #define $ac_tr_lib 1
7976 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
7979 echo "$ac_t""no" 1>&6
7984 echo "checking for Mule input methods" 1>&6
7985 echo "configure:7986: checking for Mule input methods" >&5
7986 case "$with_xim" in "" | "yes" )
7987 echo "checking for XIM" 1>&6
7988 echo "configure:7989: checking for XIM" >&5
7990 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
7991 echo "configure:7992: checking for XOpenIM in -lX11" >&5
7992 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
7994 xe_check_libs=" -lX11 "
7995 cat > conftest.$ac_ext <<EOF
7996 #line 7997 "configure"
7997 #include "confdefs.h"
7998 /* Override any gcc2 internal prototype to avoid an error. */
7999 /* We use char because int might match the return type of a gcc2
8000 builtin and then its argument prototype would still apply. */
8007 if { (eval echo configure:8008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8009 eval "ac_cv_lib_$ac_lib_var=yes"
8011 echo "configure: failed program was:" >&5
8012 cat conftest.$ac_ext >&5
8014 eval "ac_cv_lib_$ac_lib_var=no"
8019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8020 echo "$ac_t""yes" 1>&6
8023 echo "$ac_t""no" 1>&6
8028 if test "$have_motif $have_lesstif" = "yes no"; then
8030 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
8031 echo "configure:8032: checking for XmImMbLookupString in -lXm" >&5
8032 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
8034 xe_check_libs=" -lXm "
8035 cat > conftest.$ac_ext <<EOF
8036 #line 8037 "configure"
8037 #include "confdefs.h"
8038 /* Override any gcc2 internal prototype to avoid an error. */
8039 /* We use char because int might match the return type of a gcc2
8040 builtin and then its argument prototype would still apply. */
8041 char XmImMbLookupString();
8044 XmImMbLookupString()
8047 if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8049 eval "ac_cv_lib_$ac_lib_var=yes"
8051 echo "configure: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8054 eval "ac_cv_lib_$ac_lib_var=no"
8059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8060 echo "$ac_t""yes" 1>&6
8063 echo "$ac_t""no" 1>&6
8069 if test "$with_xim" != "no"; then
8070 { test "$extra_verbose" = "yes" && cat << \EOF
8073 cat >> confdefs.h <<\EOF
8078 if test "$with_xim" = "xlib"; then
8079 { test "$extra_verbose" = "yes" && cat << \EOF
8082 cat >> confdefs.h <<\EOF
8087 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
8088 echo " xemacs will be linked with \"input-method-xlib.o\""
8091 if test "$with_xim" = "motif"; then
8092 { test "$extra_verbose" = "yes" && cat << \EOF
8095 cat >> confdefs.h <<\EOF
8101 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
8102 echo " xemacs will be linked with \"input-method-motif.o\""
8105 if test "$with_xim" = "motif"; then
8110 if test "$with_xfs" = "yes" ; then
8111 echo "checking for XFontSet" 1>&6
8112 echo "configure:8113: checking for XFontSet" >&5
8114 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8115 echo "configure:8116: checking for XmbDrawString in -lX11" >&5
8116 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8118 xe_check_libs=" -lX11 "
8119 cat > conftest.$ac_ext <<EOF
8120 #line 8121 "configure"
8121 #include "confdefs.h"
8122 /* Override any gcc2 internal prototype to avoid an error. */
8123 /* We use char because int might match the return type of a gcc2
8124 builtin and then its argument prototype would still apply. */
8125 char XmbDrawString();
8131 if { (eval echo configure:8132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8133 eval "ac_cv_lib_$ac_lib_var=yes"
8135 echo "configure: failed program was:" >&5
8136 cat conftest.$ac_ext >&5
8138 eval "ac_cv_lib_$ac_lib_var=no"
8143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8144 echo "$ac_t""yes" 1>&6
8147 echo "$ac_t""no" 1>&6
8152 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
8153 { test "$extra_verbose" = "yes" && cat << \EOF
8154 Defining USE_XFONTSET
8156 cat >> confdefs.h <<\EOF
8157 #define USE_XFONTSET 1
8161 if test "$with_xim" = "no" ; then
8162 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
8163 echo " xemacs will be linked with \"input-method-xfs.o\""
8168 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8169 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8170 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8171 echo "configure:8172: checking for wnn/jllib.h" >&5
8173 cat > conftest.$ac_ext <<EOF
8174 #line 8175 "configure"
8175 #include "confdefs.h"
8176 #include <wnn/jllib.h>
8178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8179 { (eval echo configure:8180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8181 if test -z "$ac_err"; then
8183 eval "ac_cv_header_$ac_safe=yes"
8186 echo "configure: failed program was:" >&5
8187 cat conftest.$ac_ext >&5
8189 eval "ac_cv_header_$ac_safe=no"
8192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8193 echo "$ac_t""yes" 1>&6
8196 echo "$ac_t""no" 1>&6
8200 if test "$with_wnn" != "no"; then
8201 for ac_func in crypt
8203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8204 echo "configure:8205: checking for $ac_func" >&5
8206 cat > conftest.$ac_ext <<EOF
8207 #line 8208 "configure"
8208 #include "confdefs.h"
8209 /* System header to define __stub macros and hopefully few prototypes,
8210 which can conflict with char $ac_func(); below. */
8212 /* Override any gcc2 internal prototype to avoid an error. */
8213 /* We use char because int might match the return type of a gcc2
8214 builtin and then its argument prototype would still apply. */
8219 /* The GNU C library defines this for functions which it implements
8220 to always fail with ENOSYS. Some functions are actually named
8221 something starting with __ and the normal name is an alias. */
8222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8230 if { (eval echo configure:8231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8232 eval "ac_cv_func_$ac_func=yes"
8234 echo "configure: failed program was:" >&5
8235 cat conftest.$ac_ext >&5
8237 eval "ac_cv_func_$ac_func=no"
8241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8242 echo "$ac_t""yes" 1>&6
8243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8244 { test "$extra_verbose" = "yes" && cat << EOF
8245 Defining $ac_tr_func
8247 cat >> confdefs.h <<EOF
8248 #define $ac_tr_func 1
8253 echo "$ac_t""no" 1>&6
8257 test "$ac_cv_func_crypt" != "yes" && {
8258 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8259 echo "configure:8260: checking for crypt in -lcrypt" >&5
8260 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8262 xe_check_libs=" -lcrypt "
8263 cat > conftest.$ac_ext <<EOF
8264 #line 8265 "configure"
8265 #include "confdefs.h"
8266 /* Override any gcc2 internal prototype to avoid an error. */
8267 /* We use char because int might match the return type of a gcc2
8268 builtin and then its argument prototype would still apply. */
8275 if { (eval echo configure:8276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8277 eval "ac_cv_lib_$ac_lib_var=yes"
8279 echo "configure: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8282 eval "ac_cv_lib_$ac_lib_var=no"
8287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8288 echo "$ac_t""yes" 1>&6
8289 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8290 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8291 { test "$extra_verbose" = "yes" && cat << EOF
8294 cat >> confdefs.h <<EOF
8295 #define $ac_tr_lib 1
8299 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
8302 echo "$ac_t""no" 1>&6
8307 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8309 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8310 echo "configure:8311: checking for jl_dic_list_e in -lwnn" >&5
8311 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8313 xe_check_libs=" -lwnn "
8314 cat > conftest.$ac_ext <<EOF
8315 #line 8316 "configure"
8316 #include "confdefs.h"
8317 /* Override any gcc2 internal prototype to avoid an error. */
8318 /* We use char because int might match the return type of a gcc2
8319 builtin and then its argument prototype would still apply. */
8320 char jl_dic_list_e();
8326 if { (eval echo configure:8327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8328 eval "ac_cv_lib_$ac_lib_var=yes"
8330 echo "configure: failed program was:" >&5
8331 cat conftest.$ac_ext >&5
8333 eval "ac_cv_lib_$ac_lib_var=no"
8338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8339 echo "$ac_t""yes" 1>&6
8342 echo "$ac_t""no" 1>&6
8343 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8344 echo "configure:8345: checking for jl_dic_list_e in -lwnn4" >&5
8345 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8347 xe_check_libs=" -lwnn4 "
8348 cat > conftest.$ac_ext <<EOF
8349 #line 8350 "configure"
8350 #include "confdefs.h"
8351 /* Override any gcc2 internal prototype to avoid an error. */
8352 /* We use char because int might match the return type of a gcc2
8353 builtin and then its argument prototype would still apply. */
8354 char jl_dic_list_e();
8360 if { (eval echo configure:8361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8362 eval "ac_cv_lib_$ac_lib_var=yes"
8364 echo "configure: failed program was:" >&5
8365 cat conftest.$ac_ext >&5
8367 eval "ac_cv_lib_$ac_lib_var=no"
8372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8373 echo "$ac_t""yes" 1>&6
8376 echo "$ac_t""no" 1>&6
8377 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8378 echo "configure:8379: checking for jl_dic_list_e in -lwnn6" >&5
8379 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8381 xe_check_libs=" -lwnn6 "
8382 cat > conftest.$ac_ext <<EOF
8383 #line 8384 "configure"
8384 #include "confdefs.h"
8385 /* Override any gcc2 internal prototype to avoid an error. */
8386 /* We use char because int might match the return type of a gcc2
8387 builtin and then its argument prototype would still apply. */
8388 char jl_dic_list_e();
8394 if { (eval echo configure:8395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8396 eval "ac_cv_lib_$ac_lib_var=yes"
8398 echo "configure: failed program was:" >&5
8399 cat conftest.$ac_ext >&5
8401 eval "ac_cv_lib_$ac_lib_var=no"
8406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8407 echo "$ac_t""yes" 1>&6
8410 echo "$ac_t""no" 1>&6
8411 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8412 echo "configure:8413: checking for dic_list_e in -lwnn6_fromsrc" >&5
8413 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8415 xe_check_libs=" -lwnn6_fromsrc "
8416 cat > conftest.$ac_ext <<EOF
8417 #line 8418 "configure"
8418 #include "confdefs.h"
8419 /* Override any gcc2 internal prototype to avoid an error. */
8420 /* We use char because int might match the return type of a gcc2
8421 builtin and then its argument prototype would still apply. */
8428 if { (eval echo configure:8429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8430 eval "ac_cv_lib_$ac_lib_var=yes"
8432 echo "configure: failed program was:" >&5
8433 cat conftest.$ac_ext >&5
8435 eval "ac_cv_lib_$ac_lib_var=no"
8440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8441 echo "$ac_t""yes" 1>&6
8444 echo "$ac_t""no" 1>&6
8459 test -z "$with_wnn" && with_wnn=yes
8460 if test "$with_wnn" = "yes"; then
8461 { test "$extra_verbose" = "yes" && cat << \EOF
8464 cat >> confdefs.h <<\EOF
8469 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
8470 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
8471 echo " xemacs will be linked with \"mule-wnnfns.o\""
8473 if test "$with_wnn6" != "no"; then
8475 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8476 echo "configure:8477: checking for jl_fi_dic_list in -l$libwnn" >&5
8477 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8479 xe_check_libs=" -l$libwnn "
8480 cat > conftest.$ac_ext <<EOF
8481 #line 8482 "configure"
8482 #include "confdefs.h"
8483 /* Override any gcc2 internal prototype to avoid an error. */
8484 /* We use char because int might match the return type of a gcc2
8485 builtin and then its argument prototype would still apply. */
8486 char jl_fi_dic_list();
8492 if { (eval echo configure:8493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8494 eval "ac_cv_lib_$ac_lib_var=yes"
8496 echo "configure: failed program was:" >&5
8497 cat conftest.$ac_ext >&5
8499 eval "ac_cv_lib_$ac_lib_var=no"
8504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8505 echo "$ac_t""yes" 1>&6
8508 echo "$ac_t""no" 1>&6
8512 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8515 cat >> confdefs.h <<\EOF
8523 canna_includes_found=no
8524 if test "$with_canna" != "no"; then
8525 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8526 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8527 echo "configure:8528: checking for canna/jrkanji.h" >&5
8529 cat > conftest.$ac_ext <<EOF
8530 #line 8531 "configure"
8531 #include "confdefs.h"
8532 #include <canna/jrkanji.h>
8534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8535 { (eval echo configure:8536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8537 if test -z "$ac_err"; then
8539 eval "ac_cv_header_$ac_safe=yes"
8542 echo "configure: failed program was:" >&5
8543 cat conftest.$ac_ext >&5
8545 eval "ac_cv_header_$ac_safe=no"
8548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8549 echo "$ac_t""yes" 1>&6
8550 canna_includes_found=yes
8552 echo "$ac_t""no" 1>&6
8556 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
8557 -d "/usr/local/canna/include"; then
8558 save_c_switch_site="$c_switch_site"
8559 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8560 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8561 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8562 echo "configure:8563: checking for canna/jrkanji.h" >&5
8564 cat > conftest.$ac_ext <<EOF
8565 #line 8566 "configure"
8566 #include "confdefs.h"
8567 #include <canna/jrkanji.h>
8569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8570 { (eval echo configure:8571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8572 if test -z "$ac_err"; then
8574 eval "ac_cv_header_$ac_safe=yes"
8577 echo "configure: failed program was:" >&5
8578 cat conftest.$ac_ext >&5
8580 eval "ac_cv_header_$ac_safe=no"
8583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8584 echo "$ac_t""yes" 1>&6
8585 canna_includes_found=yes
8587 echo "$ac_t""no" 1>&6
8590 if test "$canna_includes_found" != "yes"; then
8591 c_switch_site="$save_c_switch_site"
8596 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8597 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8598 echo "configure:8599: checking for canna/RK.h" >&5
8600 cat > conftest.$ac_ext <<EOF
8601 #line 8602 "configure"
8602 #include "confdefs.h"
8603 #include <canna/RK.h>
8605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8606 { (eval echo configure:8607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8608 if test -z "$ac_err"; then
8610 eval "ac_cv_header_$ac_safe=yes"
8613 echo "configure: failed program was:" >&5
8614 cat conftest.$ac_ext >&5
8616 eval "ac_cv_header_$ac_safe=no"
8619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8620 echo "$ac_t""yes" 1>&6
8623 echo "$ac_t""no" 1>&6
8627 test -z "$with_canna" && {
8628 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8629 echo "configure:8630: checking for RkBgnBun in -lRKC" >&5
8630 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8632 xe_check_libs=" -lRKC "
8633 cat > conftest.$ac_ext <<EOF
8634 #line 8635 "configure"
8635 #include "confdefs.h"
8636 /* Override any gcc2 internal prototype to avoid an error. */
8637 /* We use char because int might match the return type of a gcc2
8638 builtin and then its argument prototype would still apply. */
8645 if { (eval echo configure:8646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8647 eval "ac_cv_lib_$ac_lib_var=yes"
8649 echo "configure: failed program was:" >&5
8650 cat conftest.$ac_ext >&5
8652 eval "ac_cv_lib_$ac_lib_var=no"
8657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8658 echo "$ac_t""yes" 1>&6
8661 echo "$ac_t""no" 1>&6
8666 test -z "$with_canna" && {
8667 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8668 echo "configure:8669: checking for jrKanjiControl in -lcanna" >&5
8669 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8671 xe_check_libs=" -lcanna "
8672 cat > conftest.$ac_ext <<EOF
8673 #line 8674 "configure"
8674 #include "confdefs.h"
8675 /* Override any gcc2 internal prototype to avoid an error. */
8676 /* We use char because int might match the return type of a gcc2
8677 builtin and then its argument prototype would still apply. */
8678 char jrKanjiControl();
8684 if { (eval echo configure:8685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8686 eval "ac_cv_lib_$ac_lib_var=yes"
8688 echo "configure: failed program was:" >&5
8689 cat conftest.$ac_ext >&5
8691 eval "ac_cv_lib_$ac_lib_var=no"
8696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8697 echo "$ac_t""yes" 1>&6
8700 echo "$ac_t""no" 1>&6
8705 test -z "$with_canna" && with_canna=yes
8706 if test "$with_canna" = "yes"; then
8707 { test "$extra_verbose" = "yes" && cat << \EOF
8710 cat >> confdefs.h <<\EOF
8711 #define HAVE_CANNA 1
8715 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
8716 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
8717 echo " xemacs will be linked with \"mule-canna.o\""
8721 else for feature in xim canna wnn; do
8722 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
8723 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
8725 eval "with_${feature}=no"
8729 if test "$need_motif" = "yes" ; then
8730 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8732 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8733 echo "configure:8734: checking for layout_object_getvalue in -li18n" >&5
8734 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8736 xe_check_libs=" -li18n "
8737 cat > conftest.$ac_ext <<EOF
8738 #line 8739 "configure"
8739 #include "confdefs.h"
8740 /* Override any gcc2 internal prototype to avoid an error. */
8741 /* We use char because int might match the return type of a gcc2
8742 builtin and then its argument prototype would still apply. */
8743 char layout_object_getvalue();
8746 layout_object_getvalue()
8749 if { (eval echo configure:8750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8751 eval "ac_cv_lib_$ac_lib_var=yes"
8753 echo "configure: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8756 eval "ac_cv_lib_$ac_lib_var=no"
8761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8762 echo "$ac_t""yes" 1>&6
8763 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
8765 echo "$ac_t""no" 1>&6
8770 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
8771 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8772 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8774 runpath="" runpath_dirs=""
8775 if test -n "$LD_RUN_PATH"; then
8776 runpath="$LD_RUN_PATH"
8777 elif test "$GCC" = "yes"; then
8778 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
8779 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
8780 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
8781 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
8782 case "$arg" in P,* | -L* | -R* )
8783 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
8785 xe_runpath_dir="$dir"
8786 test "$xe_runpath_dir" != "/lib" -a \
8787 "$xe_runpath_dir" != "/usr/lib" -a \
8788 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8789 eval "$xe_add_unique_runpath_dir"
8794 ld_switch_run="$ld_switch_run_save"
8797 for arg in $ld_switch_site $ld_switch_x_site; do
8798 case "$arg" in -L*) {
8799 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
8800 test "$xe_runpath_dir" != "/lib" -a \
8801 "$xe_runpath_dir" != "/usr/lib" -a \
8802 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8803 eval "$xe_add_unique_runpath_dir"
8806 if test "$opsys $need_motif" = "sol2 yes"; then
8807 xe_runpath_dir="/opt/SUNWdt/lib";
8808 eval "$xe_add_unique_runpath_dir";
8811 if test -n "$runpath"; then
8812 ld_switch_run="${dash_r}${runpath}"
8814 if test "$GCC" = "yes"; then
8815 set x $ld_switch_run; shift; ld_switch_run=""
8816 while test -n "$1"; do
8818 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8819 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
8821 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
8826 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
8832 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
8834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8835 echo "configure:8836: checking for $ac_func" >&5
8837 cat > conftest.$ac_ext <<EOF
8838 #line 8839 "configure"
8839 #include "confdefs.h"
8840 /* System header to define __stub macros and hopefully few prototypes,
8841 which can conflict with char $ac_func(); below. */
8843 /* Override any gcc2 internal prototype to avoid an error. */
8844 /* We use char because int might match the return type of a gcc2
8845 builtin and then its argument prototype would still apply. */
8850 /* The GNU C library defines this for functions which it implements
8851 to always fail with ENOSYS. Some functions are actually named
8852 something starting with __ and the normal name is an alias. */
8853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8861 if { (eval echo configure:8862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8863 eval "ac_cv_func_$ac_func=yes"
8865 echo "configure: failed program was:" >&5
8866 cat conftest.$ac_ext >&5
8868 eval "ac_cv_func_$ac_func=no"
8872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8873 echo "$ac_t""yes" 1>&6
8874 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8875 { test "$extra_verbose" = "yes" && cat << EOF
8876 Defining $ac_tr_func
8878 cat >> confdefs.h <<EOF
8879 #define $ac_tr_func 1
8884 echo "$ac_t""no" 1>&6
8891 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8892 echo " xemacs will be linked with \"realpath.o\""
8895 case "$canonical" in
8896 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8897 echo " xemacs will be linked with \"realpath.o\""
8899 * ) for ac_func in realpath
8901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8902 echo "configure:8903: checking for $ac_func" >&5
8904 cat > conftest.$ac_ext <<EOF
8905 #line 8906 "configure"
8906 #include "confdefs.h"
8907 /* System header to define __stub macros and hopefully few prototypes,
8908 which can conflict with char $ac_func(); below. */
8910 /* Override any gcc2 internal prototype to avoid an error. */
8911 /* We use char because int might match the return type of a gcc2
8912 builtin and then its argument prototype would still apply. */
8917 /* The GNU C library defines this for functions which it implements
8918 to always fail with ENOSYS. Some functions are actually named
8919 something starting with __ and the normal name is an alias. */
8920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8928 if { (eval echo configure:8929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8930 eval "ac_cv_func_$ac_func=yes"
8932 echo "configure: failed program was:" >&5
8933 cat conftest.$ac_ext >&5
8935 eval "ac_cv_func_$ac_func=no"
8939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8940 echo "$ac_t""yes" 1>&6
8941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8942 { test "$extra_verbose" = "yes" && cat << EOF
8943 Defining $ac_tr_func
8945 cat >> confdefs.h <<EOF
8946 #define $ac_tr_func 1
8951 echo "$ac_t""no" 1>&6
8955 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8956 echo " xemacs will be linked with \"realpath.o\""
8961 for ac_func in getloadavg
8963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8964 echo "configure:8965: checking for $ac_func" >&5
8966 cat > conftest.$ac_ext <<EOF
8967 #line 8968 "configure"
8968 #include "confdefs.h"
8969 /* System header to define __stub macros and hopefully few prototypes,
8970 which can conflict with char $ac_func(); below. */
8972 /* Override any gcc2 internal prototype to avoid an error. */
8973 /* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8979 /* The GNU C library defines this for functions which it implements
8980 to always fail with ENOSYS. Some functions are actually named
8981 something starting with __ and the normal name is an alias. */
8982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8990 if { (eval echo configure:8991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8992 eval "ac_cv_func_$ac_func=yes"
8994 echo "configure: failed program was:" >&5
8995 cat conftest.$ac_ext >&5
8997 eval "ac_cv_func_$ac_func=no"
9001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9002 echo "$ac_t""yes" 1>&6
9003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9004 { test "$extra_verbose" = "yes" && cat << EOF
9005 Defining $ac_tr_func
9007 cat >> confdefs.h <<EOF
9008 #define $ac_tr_func 1
9013 echo "$ac_t""no" 1>&6
9018 if test "$ac_cv_func_getloadavg" != "yes"
9020 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
9021 echo " xemacs will be linked with \"getloadavg.o\""
9025 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
9026 echo "configure:9027: checking for kstat_open in -lkstat" >&5
9027 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
9029 xe_check_libs=" -lkstat "
9030 cat > conftest.$ac_ext <<EOF
9031 #line 9032 "configure"
9032 #include "confdefs.h"
9033 /* Override any gcc2 internal prototype to avoid an error. */
9034 /* We use char because int might match the return type of a gcc2
9035 builtin and then its argument prototype would still apply. */
9042 if { (eval echo configure:9043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9044 eval "ac_cv_lib_$ac_lib_var=yes"
9046 echo "configure: failed program was:" >&5
9047 cat conftest.$ac_ext >&5
9049 eval "ac_cv_lib_$ac_lib_var=no"
9054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9055 echo "$ac_t""yes" 1>&6
9056 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9057 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9058 { test "$extra_verbose" = "yes" && cat << EOF
9061 cat >> confdefs.h <<EOF
9062 #define $ac_tr_lib 1
9066 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
9069 echo "$ac_t""no" 1>&6
9075 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
9076 echo "configure:9077: checking for kvm_read in -lkvm" >&5
9077 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
9079 xe_check_libs=" -lkvm "
9080 cat > conftest.$ac_ext <<EOF
9081 #line 9082 "configure"
9082 #include "confdefs.h"
9083 /* Override any gcc2 internal prototype to avoid an error. */
9084 /* We use char because int might match the return type of a gcc2
9085 builtin and then its argument prototype would still apply. */
9092 if { (eval echo configure:9093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9094 eval "ac_cv_lib_$ac_lib_var=yes"
9096 echo "configure: failed program was:" >&5
9097 cat conftest.$ac_ext >&5
9099 eval "ac_cv_lib_$ac_lib_var=no"
9104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9105 echo "$ac_t""yes" 1>&6
9106 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9107 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9108 { test "$extra_verbose" = "yes" && cat << EOF
9111 cat >> confdefs.h <<EOF
9112 #define $ac_tr_lib 1
9116 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
9119 echo "$ac_t""no" 1>&6
9125 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9126 echo "configure:9127: checking whether netdb declares h_errno" >&5
9127 cat > conftest.$ac_ext <<EOF
9128 #line 9129 "configure"
9129 #include "confdefs.h"
9135 if { (eval echo configure:9136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9137 echo "$ac_t""yes" 1>&6
9138 { test "$extra_verbose" = "yes" && cat << \EOF
9139 Defining HAVE_H_ERRNO
9141 cat >> confdefs.h <<\EOF
9142 #define HAVE_H_ERRNO 1
9147 echo "configure: failed program was:" >&5
9148 cat conftest.$ac_ext >&5
9150 echo "$ac_t""no" 1>&6
9154 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9155 echo "configure:9156: checking for sigsetjmp" >&5
9156 cat > conftest.$ac_ext <<EOF
9157 #line 9158 "configure"
9158 #include "confdefs.h"
9161 sigjmp_buf bar; sigsetjmp (bar, 0);
9164 if { (eval echo configure:9165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9166 echo "$ac_t""yes" 1>&6
9167 { test "$extra_verbose" = "yes" && cat << \EOF
9168 Defining HAVE_SIGSETJMP
9170 cat >> confdefs.h <<\EOF
9171 #define HAVE_SIGSETJMP 1
9176 echo "configure: failed program was:" >&5
9177 cat conftest.$ac_ext >&5
9179 echo "$ac_t""no" 1>&6
9183 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9184 echo "configure:9185: checking whether localtime caches TZ" >&5
9186 if test "$ac_cv_func_tzset" = "yes"; then
9187 cat > conftest.$ac_ext <<EOF
9188 #line 9189 "configure"
9189 #include "confdefs.h"
9192 # include <stdlib.h>
9194 extern char **environ;
9198 for (to = from = environ; (*to = *from); from++)
9199 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
9202 char TZ_GMT0[] = "TZ=GMT0";
9203 char TZ_PST8[] = "TZ=PST8";
9206 time_t now = time ((time_t *) 0);
9207 int hour_GMT0, hour_unset;
9208 if (putenv (TZ_GMT0) != 0)
9210 hour_GMT0 = localtime (&now)->tm_hour;
9212 hour_unset = localtime (&now)->tm_hour;
9213 if (putenv (TZ_PST8) != 0)
9215 if (localtime (&now)->tm_hour == hour_GMT0)
9218 if (localtime (&now)->tm_hour != hour_unset)
9223 if { (eval echo configure:9224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9225 emacs_cv_localtime_cache=no
9228 echo "configure: failed program was:" >&5
9229 cat conftest.$ac_ext >&5
9231 emacs_cv_localtime_cache=yes
9235 # If we lack tzset, report that localtime does not cache TZ,
9236 # since we can't invalidate the cache if we don't have tzset.
9237 emacs_cv_localtime_cache=no
9239 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
9240 if test $emacs_cv_localtime_cache = yes; then
9241 { test "$extra_verbose" = "yes" && cat << \EOF
9242 Defining LOCALTIME_CACHE
9244 cat >> confdefs.h <<\EOF
9245 #define LOCALTIME_CACHE 1
9251 if test "$HAVE_TIMEVAL" = "yes"; then
9252 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9253 echo "configure:9254: checking whether gettimeofday accepts one or two arguments" >&5
9254 cat > conftest.$ac_ext <<EOF
9255 #line 9256 "configure"
9256 #include "confdefs.h"
9258 #ifdef TIME_WITH_SYS_TIME
9259 #include <sys/time.h>
9262 #ifdef HAVE_SYS_TIME_H
9263 #include <sys/time.h>
9271 struct timeval time;
9272 struct timezone dummy;
9273 gettimeofday (&time, &dummy);
9277 if { (eval echo configure:9278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9279 echo "$ac_t""two" 1>&6
9281 echo "configure: failed program was:" >&5
9282 cat conftest.$ac_ext >&5
9284 echo "$ac_t""one" 1>&6
9285 { test "$extra_verbose" = "yes" && cat << \EOF
9286 Defining GETTIMEOFDAY_ONE_ARGUMENT
9288 cat >> confdefs.h <<\EOF
9289 #define GETTIMEOFDAY_ONE_ARGUMENT 1
9298 echo $ac_n "checking for inline""... $ac_c" 1>&6
9299 echo "configure:9300: checking for inline" >&5
9302 for ac_kw in inline __inline__ __inline; do
9303 cat > conftest.$ac_ext <<EOF
9304 #line 9305 "configure"
9305 #include "confdefs.h"
9311 if { (eval echo configure:9312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9313 ac_cv_c_inline=$ac_kw; break
9315 echo "configure: failed program was:" >&5
9316 cat conftest.$ac_ext >&5
9322 echo "$ac_t""$ac_cv_c_inline" 1>&6
9323 case "$ac_cv_c_inline" in
9325 no) { test "$extra_verbose" = "yes" && cat << \EOF
9328 cat >> confdefs.h <<\EOF
9333 *) { test "$extra_verbose" = "yes" && cat << EOF
9334 Defining inline = $ac_cv_c_inline
9336 cat >> confdefs.h <<EOF
9337 #define inline $ac_cv_c_inline
9343 if test "$ac_cv_c_inline" != "no"; then
9344 { test "$extra_verbose" = "yes" && cat << \EOF
9345 Defining HAVE_INLINE
9347 cat >> confdefs.h <<\EOF
9348 #define HAVE_INLINE 1
9352 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
9353 echo " xemacs will be linked with \"inline.o\""
9358 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9359 # for constant arguments. Useless!
9360 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9361 echo "configure:9362: checking for working alloca.h" >&5
9363 cat > conftest.$ac_ext <<EOF
9364 #line 9365 "configure"
9365 #include "confdefs.h"
9368 char *p = alloca(2 * sizeof(int));
9371 if { (eval echo configure:9372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9373 ac_cv_header_alloca_h=yes
9375 echo "configure: failed program was:" >&5
9376 cat conftest.$ac_ext >&5
9378 ac_cv_header_alloca_h=no
9382 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
9383 if test $ac_cv_header_alloca_h = yes; then
9384 { test "$extra_verbose" = "yes" && cat << \EOF
9385 Defining HAVE_ALLOCA_H
9387 cat >> confdefs.h <<\EOF
9388 #define HAVE_ALLOCA_H 1
9394 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9395 echo "configure:9396: checking for alloca" >&5
9397 cat > conftest.$ac_ext <<EOF
9398 #line 9399 "configure"
9399 #include "confdefs.h"
9402 # define alloca __builtin_alloca
9405 # include <malloc.h>
9406 # define alloca _alloca
9409 # include <alloca.h>
9414 # ifndef alloca /* predefined by HP cc +Olibcalls */
9423 char *p = (char *) alloca(1);
9426 if { (eval echo configure:9427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9428 ac_cv_func_alloca_works=yes
9430 echo "configure: failed program was:" >&5
9431 cat conftest.$ac_ext >&5
9433 ac_cv_func_alloca_works=no
9437 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
9438 if test $ac_cv_func_alloca_works = yes; then
9439 { test "$extra_verbose" = "yes" && cat << \EOF
9440 Defining HAVE_ALLOCA
9442 cat >> confdefs.h <<\EOF
9443 #define HAVE_ALLOCA 1
9449 if test $ac_cv_func_alloca_works = no; then
9450 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9451 # that cause trouble. Some versions do not even contain alloca or
9452 # contain a buggy version. If you still want to use their alloca,
9453 # use ar to extract alloca.o from them instead of compiling alloca.c.
9454 ALLOCA=alloca.${ac_objext}
9455 { test "$extra_verbose" = "yes" && cat << \EOF
9458 cat >> confdefs.h <<\EOF
9464 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9465 echo "configure:9466: checking whether alloca needs Cray hooks" >&5
9467 cat > conftest.$ac_ext <<EOF
9468 #line 9469 "configure"
9469 #include "confdefs.h"
9470 #if defined(CRAY) && ! defined(CRAY2)
9477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9478 egrep "webecray" >/dev/null 2>&1; then
9488 echo "$ac_t""$ac_cv_os_cray" 1>&6
9489 if test $ac_cv_os_cray = yes; then
9490 for ac_func in _getb67 GETB67 getb67; do
9491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9492 echo "configure:9493: checking for $ac_func" >&5
9494 cat > conftest.$ac_ext <<EOF
9495 #line 9496 "configure"
9496 #include "confdefs.h"
9497 /* System header to define __stub macros and hopefully few prototypes,
9498 which can conflict with char $ac_func(); below. */
9500 /* Override any gcc2 internal prototype to avoid an error. */
9501 /* We use char because int might match the return type of a gcc2
9502 builtin and then its argument prototype would still apply. */
9507 /* The GNU C library defines this for functions which it implements
9508 to always fail with ENOSYS. Some functions are actually named
9509 something starting with __ and the normal name is an alias. */
9510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9518 if { (eval echo configure:9519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9520 eval "ac_cv_func_$ac_func=yes"
9522 echo "configure: failed program was:" >&5
9523 cat conftest.$ac_ext >&5
9525 eval "ac_cv_func_$ac_func=no"
9529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9530 echo "$ac_t""yes" 1>&6
9531 { test "$extra_verbose" = "yes" && cat << EOF
9532 Defining CRAY_STACKSEG_END = $ac_func
9534 cat >> confdefs.h <<EOF
9535 #define CRAY_STACKSEG_END $ac_func
9541 echo "$ac_t""no" 1>&6
9547 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9548 echo "configure:9549: checking stack direction for C alloca" >&5
9550 cat > conftest.$ac_ext <<EOF
9551 #line 9552 "configure"
9552 #include "confdefs.h"
9553 find_stack_direction ()
9555 static char *addr = 0;
9560 return find_stack_direction ();
9563 return (&dummy > addr) ? 1 : -1;
9567 exit (find_stack_direction() < 0);
9570 if { (eval echo configure:9571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9572 ac_cv_c_stack_direction=1
9575 echo "configure: failed program was:" >&5
9576 cat conftest.$ac_ext >&5
9578 ac_cv_c_stack_direction=-1
9582 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
9583 { test "$extra_verbose" = "yes" && cat << EOF
9584 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
9586 cat >> confdefs.h <<EOF
9587 #define STACK_DIRECTION $ac_cv_c_stack_direction
9593 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
9594 echo " xemacs will be linked with \"$ALLOCA\""
9597 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9598 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9599 echo "configure:9600: checking for vfork.h" >&5
9601 cat > conftest.$ac_ext <<EOF
9602 #line 9603 "configure"
9603 #include "confdefs.h"
9606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9607 { (eval echo configure:9608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9609 if test -z "$ac_err"; then
9611 eval "ac_cv_header_$ac_safe=yes"
9614 echo "configure: failed program was:" >&5
9615 cat conftest.$ac_ext >&5
9617 eval "ac_cv_header_$ac_safe=no"
9620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9621 echo "$ac_t""yes" 1>&6
9622 { test "$extra_verbose" = "yes" && cat << \EOF
9623 Defining HAVE_VFORK_H
9625 cat >> confdefs.h <<\EOF
9626 #define HAVE_VFORK_H 1
9631 echo "$ac_t""no" 1>&6
9634 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9635 echo "configure:9636: checking for working vfork" >&5
9637 cat > conftest.$ac_ext <<EOF
9638 #line 9639 "configure"
9639 #include "confdefs.h"
9640 /* Thanks to Paul Eggert for this test. */
9642 #include <sys/types.h>
9643 #include <sys/stat.h>
9644 #ifdef HAVE_UNISTD_H
9650 /* On some sparc systems, changes by the child to local and incoming
9651 argument registers are propagated back to the parent.
9652 The compiler is told about this with #include <vfork.h>,
9653 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
9654 Test for this by using a static variable whose address
9655 is put into a register that is clobbered by the vfork. */
9658 sparc_address_test (int arg)
9660 sparc_address_test (arg) int arg;
9678 pid_t parent = getpid ();
9681 sparc_address_test ();
9686 /* Here is another test for sparc vfork register problems.
9687 This test uses lots of local variables, at least
9688 as many local variables as main has allocated so far
9689 including compiler temporaries. 4 locals are enough for
9690 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
9691 A buggy compiler should reuse the register of parent
9692 for one of the local variables, since it will think that
9693 parent can't possibly be used any more in this routine.
9694 Assigning to the local variable will thus munge parent
9695 in the parent process. */
9697 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9698 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9699 /* Convince the compiler that p..p7 are live; otherwise, it might
9700 use the same hardware register for all 8 local variables. */
9701 if (p != p1 || p != p2 || p != p3 || p != p4
9702 || p != p5 || p != p6 || p != p7)
9705 /* On some systems (e.g. IRIX 3.3),
9706 vfork doesn't separate parent from child file descriptors.
9707 If the child closes a descriptor before it execs or exits,
9708 this munges the parent's descriptor as well.
9709 Test for this by closing stdout in the child. */
9710 _exit(close(fileno(stdout)) != 0);
9715 while (wait(&status) != child)
9718 /* Was there some problem with vforking? */
9721 /* Did the child fail? (This shouldn't happen.) */
9724 /* Did the vfork/compiler bug occur? */
9725 || parent != getpid()
9727 /* Did the file descriptor bug occur? */
9728 || fstat(fileno(stdout), &st) != 0
9733 if { (eval echo configure:9734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9735 ac_cv_func_vfork_works=yes
9738 echo "configure: failed program was:" >&5
9739 cat conftest.$ac_ext >&5
9741 ac_cv_func_vfork_works=no
9745 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
9746 if test $ac_cv_func_vfork_works = no; then
9747 { test "$extra_verbose" = "yes" && cat << \EOF
9748 Defining vfork = fork
9750 cat >> confdefs.h <<\EOF
9758 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9759 echo "configure:9760: checking for working strcoll" >&5
9761 cat > conftest.$ac_ext <<EOF
9762 #line 9763 "configure"
9763 #include "confdefs.h"
9767 exit (strcoll ("abc", "def") >= 0 ||
9768 strcoll ("ABC", "DEF") >= 0 ||
9769 strcoll ("123", "456") >= 0);
9772 if { (eval echo configure:9773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9774 ac_cv_func_strcoll_works=yes
9777 echo "configure: failed program was:" >&5
9778 cat conftest.$ac_ext >&5
9780 ac_cv_func_strcoll_works=no
9784 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
9785 if test $ac_cv_func_strcoll_works = yes; then
9786 { test "$extra_verbose" = "yes" && cat << \EOF
9787 Defining HAVE_STRCOLL
9789 cat >> confdefs.h <<\EOF
9790 #define HAVE_STRCOLL 1
9797 for ac_func in getpgrp
9799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9800 echo "configure:9801: checking for $ac_func" >&5
9802 cat > conftest.$ac_ext <<EOF
9803 #line 9804 "configure"
9804 #include "confdefs.h"
9805 /* System header to define __stub macros and hopefully few prototypes,
9806 which can conflict with char $ac_func(); below. */
9808 /* Override any gcc2 internal prototype to avoid an error. */
9809 /* We use char because int might match the return type of a gcc2
9810 builtin and then its argument prototype would still apply. */
9815 /* The GNU C library defines this for functions which it implements
9816 to always fail with ENOSYS. Some functions are actually named
9817 something starting with __ and the normal name is an alias. */
9818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9826 if { (eval echo configure:9827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9828 eval "ac_cv_func_$ac_func=yes"
9830 echo "configure: failed program was:" >&5
9831 cat conftest.$ac_ext >&5
9833 eval "ac_cv_func_$ac_func=no"
9837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9838 echo "$ac_t""yes" 1>&6
9839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9840 { test "$extra_verbose" = "yes" && cat << EOF
9841 Defining $ac_tr_func
9843 cat >> confdefs.h <<EOF
9844 #define $ac_tr_func 1
9849 echo "$ac_t""no" 1>&6
9853 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9854 echo "configure:9855: checking whether getpgrp takes no argument" >&5
9856 cat > conftest.$ac_ext <<EOF
9857 #line 9858 "configure"
9858 #include "confdefs.h"
9861 * If this system has a BSD-style getpgrp(),
9862 * which takes a pid argument, exit unsuccessfully.
9864 * Snarfed from Chet Ramey's bash pgrp.c test program
9867 #include <sys/types.h>
9870 int pg1, pg2, pg3, pg4;
9871 int ng, np, s, child;
9882 * If all of these values are the same, it's pretty sure that
9883 * we're on a system that ignores getpgrp's first argument.
9885 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
9891 else if (child == 0) {
9894 * If this is Sys V, this will not work; pgrp will be
9895 * set to np because setpgrp just changes a pgrp to be
9896 * the same as the pid.
9899 ng = getpgrp(0); /* Same result for Sys V and BSD */
9912 if { (eval echo configure:9913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9914 ac_cv_func_getpgrp_void=yes
9917 echo "configure: failed program was:" >&5
9918 cat conftest.$ac_ext >&5
9920 ac_cv_func_getpgrp_void=no
9925 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
9926 if test $ac_cv_func_getpgrp_void = yes; then
9927 { test "$extra_verbose" = "yes" && cat << \EOF
9928 Defining GETPGRP_VOID
9930 cat >> confdefs.h <<\EOF
9931 #define GETPGRP_VOID 1
9938 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9939 echo "configure:9940: checking for working mmap" >&5
9940 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9941 cat > conftest.$ac_ext <<EOF
9942 #line 9943 "configure"
9943 #include "confdefs.h"
9947 #include <sys/mman.h>
9949 #ifndef MAP_VARIABLE
9950 #define MAP_VARIABLE 0
9954 #define MAP_FAILED -1
9957 int main (int argc, char *argv[])
9961 #ifndef MAP_ANONYMOUS
9962 fd = open ("/dev/zero", O_RDWR);
9965 #define MAP_ANONYMOUS 0
9967 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
9968 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
9969 fd, 0) != (void *) MAP_FAILED)
9971 perror ("conftest: mmap failed");
9975 if { (eval echo configure:9976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9980 echo "configure: failed program was:" >&5
9981 cat conftest.$ac_ext >&5
9987 echo "$ac_t""$have_mmap" 1>&6
9988 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9991 cat >> confdefs.h <<\EOF
9997 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
9998 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
9999 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10002 cat >> confdefs.h <<\EOF
10003 #define REL_ALLOC 1
10008 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10009 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10010 echo "configure:10011: checking for termios.h" >&5
10012 cat > conftest.$ac_ext <<EOF
10013 #line 10014 "configure"
10014 #include "confdefs.h"
10015 #include <termios.h>
10017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10018 { (eval echo configure:10019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10020 if test -z "$ac_err"; then
10022 eval "ac_cv_header_$ac_safe=yes"
10025 echo "configure: failed program was:" >&5
10026 cat conftest.$ac_ext >&5
10028 eval "ac_cv_header_$ac_safe=no"
10031 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10032 echo "$ac_t""yes" 1>&6
10033 { test "$extra_verbose" = "yes" && cat << \EOF
10034 Defining HAVE_TERMIOS
10036 cat >> confdefs.h <<\EOF
10037 #define HAVE_TERMIOS 1
10041 { test "$extra_verbose" = "yes" && cat << \EOF
10042 Defining SIGNALS_VIA_CHARACTERS
10044 cat >> confdefs.h <<\EOF
10045 #define SIGNALS_VIA_CHARACTERS 1
10049 { test "$extra_verbose" = "yes" && cat << \EOF
10052 cat >> confdefs.h <<\EOF
10053 #define NO_TERMIO 1
10058 echo "$ac_t""no" 1>&6
10059 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10060 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10061 echo "configure:10062: checking for termio.h" >&5
10063 cat > conftest.$ac_ext <<EOF
10064 #line 10065 "configure"
10065 #include "confdefs.h"
10066 #include <termio.h>
10068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10069 { (eval echo configure:10070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10071 if test -z "$ac_err"; then
10073 eval "ac_cv_header_$ac_safe=yes"
10076 echo "configure: failed program was:" >&5
10077 cat conftest.$ac_ext >&5
10079 eval "ac_cv_header_$ac_safe=no"
10082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10083 echo "$ac_t""yes" 1>&6
10084 { test "$extra_verbose" = "yes" && cat << \EOF
10085 Defining HAVE_TERMIO
10087 cat >> confdefs.h <<\EOF
10088 #define HAVE_TERMIO 1
10093 echo "$ac_t""no" 1>&6
10100 echo $ac_n "checking for socket""... $ac_c" 1>&6
10101 echo "configure:10102: checking for socket" >&5
10103 cat > conftest.$ac_ext <<EOF
10104 #line 10105 "configure"
10105 #include "confdefs.h"
10106 /* System header to define __stub macros and hopefully few prototypes,
10107 which can conflict with char socket(); below. */
10108 #include <assert.h>
10109 /* Override any gcc2 internal prototype to avoid an error. */
10110 /* We use char because int might match the return type of a gcc2
10111 builtin and then its argument prototype would still apply. */
10116 /* The GNU C library defines this for functions which it implements
10117 to always fail with ENOSYS. Some functions are actually named
10118 something starting with __ and the normal name is an alias. */
10119 #if defined (__stub_socket) || defined (__stub___socket)
10127 if { (eval echo configure:10128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10129 eval "ac_cv_func_socket=yes"
10131 echo "configure: failed program was:" >&5
10132 cat conftest.$ac_ext >&5
10134 eval "ac_cv_func_socket=no"
10138 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10139 echo "$ac_t""yes" 1>&6
10140 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10141 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10142 echo "configure:10143: checking for netinet/in.h" >&5
10144 cat > conftest.$ac_ext <<EOF
10145 #line 10146 "configure"
10146 #include "confdefs.h"
10147 #include <netinet/in.h>
10149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10150 { (eval echo configure:10151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10151 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10152 if test -z "$ac_err"; then
10154 eval "ac_cv_header_$ac_safe=yes"
10157 echo "configure: failed program was:" >&5
10158 cat conftest.$ac_ext >&5
10160 eval "ac_cv_header_$ac_safe=no"
10163 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10164 echo "$ac_t""yes" 1>&6
10165 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10166 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10167 echo "configure:10168: checking for arpa/inet.h" >&5
10169 cat > conftest.$ac_ext <<EOF
10170 #line 10171 "configure"
10171 #include "confdefs.h"
10172 #include <arpa/inet.h>
10174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10175 { (eval echo configure:10176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10177 if test -z "$ac_err"; then
10179 eval "ac_cv_header_$ac_safe=yes"
10182 echo "configure: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10185 eval "ac_cv_header_$ac_safe=no"
10188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10189 echo "$ac_t""yes" 1>&6
10191 { test "$extra_verbose" = "yes" && cat << \EOF
10192 Defining HAVE_SOCKETS
10194 cat >> confdefs.h <<\EOF
10195 #define HAVE_SOCKETS 1
10199 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10200 echo "configure:10201: checking "for sun_len member in struct sockaddr_un"" >&5
10201 cat > conftest.$ac_ext <<EOF
10202 #line 10203 "configure"
10203 #include "confdefs.h"
10205 #include <sys/types.h>
10206 #include <sys/socket.h>
10207 #include <sys/un.h>
10210 static struct sockaddr_un x; x.sun_len = 1;
10213 if { (eval echo configure:10214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10215 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10216 Defining HAVE_SOCKADDR_SUN_LEN
10218 cat >> confdefs.h <<\EOF
10219 #define HAVE_SOCKADDR_SUN_LEN 1
10224 echo "configure: failed program was:" >&5
10225 cat conftest.$ac_ext >&5
10227 echo "$ac_t""no" 1>&6
10230 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10231 echo "configure:10232: checking "for ip_mreq struct in netinet/in.h"" >&5
10232 cat > conftest.$ac_ext <<EOF
10233 #line 10234 "configure"
10234 #include "confdefs.h"
10236 #include <sys/types.h>
10237 #include <netinet/in.h>
10240 static struct ip_mreq x;
10243 if { (eval echo configure:10244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10245 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10246 Defining HAVE_MULTICAST
10248 cat >> confdefs.h <<\EOF
10249 #define HAVE_MULTICAST 1
10254 echo "configure: failed program was:" >&5
10255 cat conftest.$ac_ext >&5
10257 echo "$ac_t""no" 1>&6
10261 echo "$ac_t""no" 1>&6
10265 echo "$ac_t""no" 1>&6
10269 echo "$ac_t""no" 1>&6
10273 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10274 echo "configure:10275: checking for msgget" >&5
10276 cat > conftest.$ac_ext <<EOF
10277 #line 10278 "configure"
10278 #include "confdefs.h"
10279 /* System header to define __stub macros and hopefully few prototypes,
10280 which can conflict with char msgget(); below. */
10281 #include <assert.h>
10282 /* Override any gcc2 internal prototype to avoid an error. */
10283 /* We use char because int might match the return type of a gcc2
10284 builtin and then its argument prototype would still apply. */
10289 /* The GNU C library defines this for functions which it implements
10290 to always fail with ENOSYS. Some functions are actually named
10291 something starting with __ and the normal name is an alias. */
10292 #if defined (__stub_msgget) || defined (__stub___msgget)
10300 if { (eval echo configure:10301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10302 eval "ac_cv_func_msgget=yes"
10304 echo "configure: failed program was:" >&5
10305 cat conftest.$ac_ext >&5
10307 eval "ac_cv_func_msgget=no"
10311 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10312 echo "$ac_t""yes" 1>&6
10313 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10314 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10315 echo "configure:10316: checking for sys/ipc.h" >&5
10317 cat > conftest.$ac_ext <<EOF
10318 #line 10319 "configure"
10319 #include "confdefs.h"
10320 #include <sys/ipc.h>
10322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10323 { (eval echo configure:10324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10325 if test -z "$ac_err"; then
10327 eval "ac_cv_header_$ac_safe=yes"
10330 echo "configure: failed program was:" >&5
10331 cat conftest.$ac_ext >&5
10333 eval "ac_cv_header_$ac_safe=no"
10336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10337 echo "$ac_t""yes" 1>&6
10338 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10339 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10340 echo "configure:10341: checking for sys/msg.h" >&5
10342 cat > conftest.$ac_ext <<EOF
10343 #line 10344 "configure"
10344 #include "confdefs.h"
10345 #include <sys/msg.h>
10347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10348 { (eval echo configure:10349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10350 if test -z "$ac_err"; then
10352 eval "ac_cv_header_$ac_safe=yes"
10355 echo "configure: failed program was:" >&5
10356 cat conftest.$ac_ext >&5
10358 eval "ac_cv_header_$ac_safe=no"
10361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10362 echo "$ac_t""yes" 1>&6
10363 { test "$extra_verbose" = "yes" && cat << \EOF
10364 Defining HAVE_SYSVIPC
10366 cat >> confdefs.h <<\EOF
10367 #define HAVE_SYSVIPC 1
10372 echo "$ac_t""no" 1>&6
10376 echo "$ac_t""no" 1>&6
10380 echo "$ac_t""no" 1>&6
10384 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10385 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10386 echo "configure:10387: checking for dirent.h" >&5
10388 cat > conftest.$ac_ext <<EOF
10389 #line 10390 "configure"
10390 #include "confdefs.h"
10391 #include <dirent.h>
10393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10394 { (eval echo configure:10395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10396 if test -z "$ac_err"; then
10398 eval "ac_cv_header_$ac_safe=yes"
10401 echo "configure: failed program was:" >&5
10402 cat conftest.$ac_ext >&5
10404 eval "ac_cv_header_$ac_safe=no"
10407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10408 echo "$ac_t""yes" 1>&6
10409 { test "$extra_verbose" = "yes" && cat << \EOF
10410 Defining SYSV_SYSTEM_DIR
10412 cat >> confdefs.h <<\EOF
10413 #define SYSV_SYSTEM_DIR 1
10418 echo "$ac_t""no" 1>&6
10419 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10420 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10421 echo "configure:10422: checking for sys/dir.h" >&5
10423 cat > conftest.$ac_ext <<EOF
10424 #line 10425 "configure"
10425 #include "confdefs.h"
10426 #include <sys/dir.h>
10428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10429 { (eval echo configure:10430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10431 if test -z "$ac_err"; then
10433 eval "ac_cv_header_$ac_safe=yes"
10436 echo "configure: failed program was:" >&5
10437 cat conftest.$ac_ext >&5
10439 eval "ac_cv_header_$ac_safe=no"
10442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10443 echo "$ac_t""yes" 1>&6
10446 echo "$ac_t""no" 1>&6
10447 { test "$extra_verbose" = "yes" && cat << \EOF
10448 Defining NONSYSTEM_DIR_LIBRARY
10450 cat >> confdefs.h <<\EOF
10451 #define NONSYSTEM_DIR_LIBRARY 1
10460 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10461 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10462 echo "configure:10463: checking for nlist.h" >&5
10464 cat > conftest.$ac_ext <<EOF
10465 #line 10466 "configure"
10466 #include "confdefs.h"
10469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10470 { (eval echo configure:10471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10471 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10472 if test -z "$ac_err"; then
10474 eval "ac_cv_header_$ac_safe=yes"
10477 echo "configure: failed program was:" >&5
10478 cat conftest.$ac_ext >&5
10480 eval "ac_cv_header_$ac_safe=no"
10483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10484 echo "$ac_t""yes" 1>&6
10485 { test "$extra_verbose" = "yes" && cat << \EOF
10486 Defining NLIST_STRUCT
10488 cat >> confdefs.h <<\EOF
10489 #define NLIST_STRUCT 1
10494 echo "$ac_t""no" 1>&6
10499 echo "checking "for sound support"" 1>&6
10500 echo "configure:10501: checking "for sound support"" >&5
10501 case "$with_sound" in
10502 native | both ) with_native_sound=yes;;
10503 nas | no ) with_native_sound=no;;
10505 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10507 if test "$with_native_sound" != "no"; then
10508 if test -n "$native_sound_lib"; then
10509 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10510 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10511 echo "configure:10512: checking for multimedia/audio_device.h" >&5
10513 cat > conftest.$ac_ext <<EOF
10514 #line 10515 "configure"
10515 #include "confdefs.h"
10516 #include <multimedia/audio_device.h>
10518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10519 { (eval echo configure:10520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10521 if test -z "$ac_err"; then
10523 eval "ac_cv_header_$ac_safe=yes"
10526 echo "configure: failed program was:" >&5
10527 cat conftest.$ac_ext >&5
10529 eval "ac_cv_header_$ac_safe=no"
10532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10533 echo "$ac_t""yes" 1>&6
10534 sound_found=yes sound_cflags=""
10535 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10536 echo " xemacs will be linked with \"sunplay.o\""
10539 echo "$ac_t""no" 1>&6
10544 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
10546 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10547 echo " xemacs will be linked with \"sunplay.o\""
10549 if test -d "/usr/demo/SOUND/include"
10550 then sound_cflags="-I/usr/demo/SOUND/include"
10551 else sound_cflags="-I/usr/demo/SOUND"
10553 if test -z "$native_sound_lib" ; then
10554 if test -r "/usr/demo/SOUND/lib/libaudio.a"
10555 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
10556 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
10561 if test -z "$sound_found"; then
10562 case "$canonical" in
10564 if test -z "$native_sound_lib"; then
10566 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10567 echo "configure:10568: checking for ALopenport in -laudio" >&5
10568 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10570 xe_check_libs=" -laudio "
10571 cat > conftest.$ac_ext <<EOF
10572 #line 10573 "configure"
10573 #include "confdefs.h"
10574 /* Override any gcc2 internal prototype to avoid an error. */
10575 /* We use char because int might match the return type of a gcc2
10576 builtin and then its argument prototype would still apply. */
10583 if { (eval echo configure:10584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10585 eval "ac_cv_lib_$ac_lib_var=yes"
10587 echo "configure: failed program was:" >&5
10588 cat conftest.$ac_ext >&5
10590 eval "ac_cv_lib_$ac_lib_var=no"
10595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10596 echo "$ac_t""yes" 1>&6
10597 native_sound_lib="-laudio"
10599 echo "$ac_t""no" 1>&6
10604 if test -n "$native_sound_lib"; then
10605 sound_found=yes sound_cflags=""
10606 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
10607 echo " xemacs will be linked with \"sgiplay.o\""
10611 if test -z "$native_sound_lib"; then
10613 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10614 echo "configure:10615: checking for AOpenAudio in -lAlib" >&5
10615 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10617 xe_check_libs=" -lAlib "
10618 cat > conftest.$ac_ext <<EOF
10619 #line 10620 "configure"
10620 #include "confdefs.h"
10621 /* Override any gcc2 internal prototype to avoid an error. */
10622 /* We use char because int might match the return type of a gcc2
10623 builtin and then its argument prototype would still apply. */
10630 if { (eval echo configure:10631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10632 eval "ac_cv_lib_$ac_lib_var=yes"
10634 echo "configure: failed program was:" >&5
10635 cat conftest.$ac_ext >&5
10637 eval "ac_cv_lib_$ac_lib_var=no"
10642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10643 echo "$ac_t""yes" 1>&6
10644 native_sound_lib="-lAlib"
10646 echo "$ac_t""no" 1>&6
10651 if test -n "$native_sound_lib"; then
10653 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
10654 echo " xemacs will be linked with \"hpplay.o\""
10656 if test "$GCC" = "yes" # Kludge city
10657 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
10658 else sound_cflags="+e -I/usr/audio/examples"
10664 if test -z "$sound_found"; then
10665 for dir in "machine" "sys" "linux"; do
10666 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10667 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10668 echo "configure:10669: checking for ${dir}/soundcard.h" >&5
10670 cat > conftest.$ac_ext <<EOF
10671 #line 10672 "configure"
10672 #include "confdefs.h"
10673 #include <${dir}/soundcard.h>
10675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10676 { (eval echo configure:10677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10678 if test -z "$ac_err"; then
10680 eval "ac_cv_header_$ac_safe=yes"
10683 echo "configure: failed program was:" >&5
10684 cat conftest.$ac_ext >&5
10686 eval "ac_cv_header_$ac_safe=no"
10689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10690 echo "$ac_t""yes" 1>&6
10692 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
10693 echo " xemacs will be linked with \"linuxplay.o\""
10695 { test "$extra_verbose" = "yes" && cat << EOF
10696 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
10698 cat >> confdefs.h <<EOF
10699 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
10705 echo "$ac_t""no" 1>&6
10711 test "$sound_found" = "yes" && with_native_sound=yes
10714 if test -z "$with_sound"; then
10715 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
10720 if test "$with_native_sound" = "yes"; then
10721 { test "$extra_verbose" = "yes" && cat << \EOF
10722 Defining HAVE_NATIVE_SOUND
10724 cat >> confdefs.h <<\EOF
10725 #define HAVE_NATIVE_SOUND 1
10729 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
10732 case "$with_sound" in both | nas )
10733 { test "$extra_verbose" = "yes" && cat << \EOF
10734 Defining HAVE_NAS_SOUND
10736 cat >> confdefs.h <<\EOF
10737 #define HAVE_NAS_SOUND 1
10741 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10742 echo " xemacs will be linked with \"nas.o\""
10744 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10745 cat > conftest.$ac_ext <<EOF
10746 #line 10747 "configure"
10747 #include "confdefs.h"
10748 #include <audio/Xtutil.h>
10750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10751 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10755 { test "$extra_verbose" = "yes" && cat << \EOF
10756 Defining NAS_NO_ERROR_JUMP
10758 cat >> confdefs.h <<\EOF
10759 #define NAS_NO_ERROR_JUMP 1
10769 test -z "$with_tty" && with_tty=yes
10771 if test "$with_tty" = "yes" ; then
10772 echo "checking for TTY-related features" 1>&6
10773 echo "configure:10774: checking for TTY-related features" >&5
10774 { test "$extra_verbose" = "yes" && cat << \EOF
10777 cat >> confdefs.h <<\EOF
10782 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
10783 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\""
10786 if test -z "$with_ncurses"; then
10788 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10789 echo "configure:10790: checking for tgetent in -lncurses" >&5
10790 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10792 xe_check_libs=" -lncurses "
10793 cat > conftest.$ac_ext <<EOF
10794 #line 10795 "configure"
10795 #include "confdefs.h"
10796 /* Override any gcc2 internal prototype to avoid an error. */
10797 /* We use char because int might match the return type of a gcc2
10798 builtin and then its argument prototype would still apply. */
10805 if { (eval echo configure:10806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10807 eval "ac_cv_lib_$ac_lib_var=yes"
10809 echo "configure: failed program was:" >&5
10810 cat conftest.$ac_ext >&5
10812 eval "ac_cv_lib_$ac_lib_var=no"
10817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10818 echo "$ac_t""yes" 1>&6
10821 echo "$ac_t""no" 1>&6
10827 if test "$with_ncurses" = "yes"; then
10828 { test "$extra_verbose" = "yes" && cat << \EOF
10829 Defining HAVE_NCURSES
10831 cat >> confdefs.h <<\EOF
10832 #define HAVE_NCURSES 1
10836 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10837 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10838 echo "configure:10839: checking for ncurses/curses.h" >&5
10840 cat > conftest.$ac_ext <<EOF
10841 #line 10842 "configure"
10842 #include "confdefs.h"
10843 #include <ncurses/curses.h>
10845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10846 { (eval echo configure:10847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10848 if test -z "$ac_err"; then
10850 eval "ac_cv_header_$ac_safe=yes"
10853 echo "configure: failed program was:" >&5
10854 cat conftest.$ac_ext >&5
10856 eval "ac_cv_header_$ac_safe=no"
10859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10860 echo "$ac_t""yes" 1>&6
10861 curses_h_path=ncurses/curses.h
10863 echo "$ac_t""no" 1>&6
10866 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10867 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10868 echo "configure:10869: checking for ncurses/term.h" >&5
10870 cat > conftest.$ac_ext <<EOF
10871 #line 10872 "configure"
10872 #include "confdefs.h"
10873 #include <ncurses/term.h>
10875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10876 { (eval echo configure:10877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10878 if test -z "$ac_err"; then
10880 eval "ac_cv_header_$ac_safe=yes"
10883 echo "configure: failed program was:" >&5
10884 cat conftest.$ac_ext >&5
10886 eval "ac_cv_header_$ac_safe=no"
10889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10890 echo "$ac_t""yes" 1>&6
10891 term_h_path=ncurses/term.h
10893 echo "$ac_t""no" 1>&6
10896 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
10897 echo " xemacs will be linked with \"terminfo.o\""
10899 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
10901 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
10902 save_c_switch_site="$c_switch_site"
10903 c_switch_site="$c_switch_site -I/usr/include/ncurses"
10904 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10905 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10906 echo "configure:10907: checking for ncurses/curses.h" >&5
10908 cat > conftest.$ac_ext <<EOF
10909 #line 10910 "configure"
10910 #include "confdefs.h"
10911 #include <ncurses/curses.h>
10913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10914 { (eval echo configure:10915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10916 if test -z "$ac_err"; then
10918 eval "ac_cv_header_$ac_safe=yes"
10921 echo "configure: failed program was:" >&5
10922 cat conftest.$ac_ext >&5
10924 eval "ac_cv_header_$ac_safe=no"
10927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10928 echo "$ac_t""yes" 1>&6
10929 curses_h_path=ncurses/curses.h
10931 echo "$ac_t""no" 1>&6
10934 if test "$ac_cv_header_ncurses_curses_h" = "yes"
10935 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
10936 else c_switch_site="$save_c_switch_site"
10939 else if test "$have_terminfo" = "yes"; then
10940 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
10941 echo " xemacs will be linked with \"terminfo.o\""
10943 if test -n "$libs_termcap"; then
10944 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10946 for lib in curses termlib termcap; do
10948 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
10949 echo "configure:10950: checking for tgetent in -l$lib" >&5
10950 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
10952 xe_check_libs=" -l$lib "
10953 cat > conftest.$ac_ext <<EOF
10954 #line 10955 "configure"
10955 #include "confdefs.h"
10956 /* Override any gcc2 internal prototype to avoid an error. */
10957 /* We use char because int might match the return type of a gcc2
10958 builtin and then its argument prototype would still apply. */
10965 if { (eval echo configure:10966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10967 eval "ac_cv_lib_$ac_lib_var=yes"
10969 echo "configure: failed program was:" >&5
10970 cat conftest.$ac_ext >&5
10972 eval "ac_cv_lib_$ac_lib_var=no"
10977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10978 echo "$ac_t""yes" 1>&6
10979 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
10981 echo "$ac_t""no" 1>&6
10987 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
10988 echo " xemacs will be linked with \"tparam.o\""
10990 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
10991 if test -n "$libs_termcap"; then
10992 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10995 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
10996 echo "configure:10997: checking for tgetent in -lcurses" >&5
10997 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
10999 xe_check_libs=" -lcurses "
11000 cat > conftest.$ac_ext <<EOF
11001 #line 11002 "configure"
11002 #include "confdefs.h"
11003 /* Override any gcc2 internal prototype to avoid an error. */
11004 /* We use char because int might match the return type of a gcc2
11005 builtin and then its argument prototype would still apply. */
11012 if { (eval echo configure:11013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11014 eval "ac_cv_lib_$ac_lib_var=yes"
11016 echo "configure: failed program was:" >&5
11017 cat conftest.$ac_ext >&5
11019 eval "ac_cv_lib_$ac_lib_var=no"
11024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11025 echo "$ac_t""yes" 1>&6
11026 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11028 echo "$ac_t""no" 1>&6
11029 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11030 echo "configure:11031: checking for tgetent in -ltermcap" >&5
11031 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11033 xe_check_libs=" -ltermcap "
11034 cat > conftest.$ac_ext <<EOF
11035 #line 11036 "configure"
11036 #include "confdefs.h"
11037 /* Override any gcc2 internal prototype to avoid an error. */
11038 /* We use char because int might match the return type of a gcc2
11039 builtin and then its argument prototype would still apply. */
11046 if { (eval echo configure:11047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11048 eval "ac_cv_lib_$ac_lib_var=yes"
11050 echo "configure: failed program was:" >&5
11051 cat conftest.$ac_ext >&5
11053 eval "ac_cv_lib_$ac_lib_var=no"
11058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11059 echo "$ac_t""yes" 1>&6
11060 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
11062 echo "$ac_t""no" 1>&6
11063 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
11064 echo " xemacs will be linked with \"termcap.o\""
11075 { test "$extra_verbose" = "yes" && cat << EOF
11076 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
11078 cat >> confdefs.h <<EOF
11079 #define CURSES_H_PATH "${curses_h_path-curses.h}"
11083 { test "$extra_verbose" = "yes" && cat << EOF
11084 Defining TERM_H_PATH = "${term_h_path-term.h}"
11086 cat >> confdefs.h <<EOF
11087 #define TERM_H_PATH "${term_h_path-term.h}"
11092 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11093 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11094 echo "configure:11095: checking for gpm.h" >&5
11096 cat > conftest.$ac_ext <<EOF
11097 #line 11098 "configure"
11098 #include "confdefs.h"
11101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11102 { (eval echo configure:11103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11104 if test -z "$ac_err"; then
11106 eval "ac_cv_header_$ac_safe=yes"
11109 echo "configure: failed program was:" >&5
11110 cat conftest.$ac_ext >&5
11112 eval "ac_cv_header_$ac_safe=no"
11115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11116 echo "$ac_t""yes" 1>&6
11119 echo "$ac_t""no" 1>&6
11123 test -z "$with_gpm" && {
11124 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11125 echo "configure:11126: checking for Gpm_Open in -lgpm" >&5
11126 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11128 xe_check_libs=" -lgpm "
11129 cat > conftest.$ac_ext <<EOF
11130 #line 11131 "configure"
11131 #include "confdefs.h"
11132 /* Override any gcc2 internal prototype to avoid an error. */
11133 /* We use char because int might match the return type of a gcc2
11134 builtin and then its argument prototype would still apply. */
11141 if { (eval echo configure:11142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11143 eval "ac_cv_lib_$ac_lib_var=yes"
11145 echo "configure: failed program was:" >&5
11146 cat conftest.$ac_ext >&5
11148 eval "ac_cv_lib_$ac_lib_var=no"
11153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11154 echo "$ac_t""yes" 1>&6
11157 echo "$ac_t""no" 1>&6
11162 if test "$with_gpm" = "yes"; then
11163 { test "$extra_verbose" = "yes" && cat << \EOF
11166 cat >> confdefs.h <<\EOF
11171 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
11172 echo " xemacs will be linked with \"gpmevent.o\""
11174 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
11177 else for feature in ncurses gpm; do
11178 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11179 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
11181 eval "with_${feature}=no"
11184 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
11185 echo " xemacs will be linked with \"event-unixoid.o\""
11189 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11190 != "no no no" && echo "checking for database support" 1>&6
11191 echo "configure:11192: checking for database support" >&5
11193 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
11194 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11195 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11196 echo "configure:11197: checking for ndbm.h" >&5
11198 cat > conftest.$ac_ext <<EOF
11199 #line 11200 "configure"
11200 #include "confdefs.h"
11203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11204 { (eval echo configure:11205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11206 if test -z "$ac_err"; then
11208 eval "ac_cv_header_$ac_safe=yes"
11211 echo "configure: failed program was:" >&5
11212 cat conftest.$ac_ext >&5
11214 eval "ac_cv_header_$ac_safe=no"
11217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11218 echo "$ac_t""yes" 1>&6
11221 echo "$ac_t""no" 1>&6
11223 test "$with_database_gnudbm" = "yes" -o \
11224 "$with_database_dbm" = "yes" && \
11225 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11226 with_database_gnudbm=no with_database_dbm=no
11231 if test "$with_database_gnudbm" != "no"; then
11233 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11234 echo "configure:11235: checking for dbm_open in -lgdbm" >&5
11235 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11237 xe_check_libs=" -lgdbm "
11238 cat > conftest.$ac_ext <<EOF
11239 #line 11240 "configure"
11240 #include "confdefs.h"
11241 /* Override any gcc2 internal prototype to avoid an error. */
11242 /* We use char because int might match the return type of a gcc2
11243 builtin and then its argument prototype would still apply. */
11250 if { (eval echo configure:11251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11252 eval "ac_cv_lib_$ac_lib_var=yes"
11254 echo "configure: failed program was:" >&5
11255 cat conftest.$ac_ext >&5
11257 eval "ac_cv_lib_$ac_lib_var=no"
11262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11263 echo "$ac_t""yes" 1>&6
11264 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm
11266 echo "$ac_t""no" 1>&6
11267 if test "$with_database_gnudbm" = "yes"; then
11268 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
11270 with_database_gnudbm=no
11276 if test "$with_database_dbm" != "no"; then
11277 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11278 echo "configure:11279: checking for dbm_open" >&5
11280 cat > conftest.$ac_ext <<EOF
11281 #line 11282 "configure"
11282 #include "confdefs.h"
11283 /* System header to define __stub macros and hopefully few prototypes,
11284 which can conflict with char dbm_open(); below. */
11285 #include <assert.h>
11286 /* Override any gcc2 internal prototype to avoid an error. */
11287 /* We use char because int might match the return type of a gcc2
11288 builtin and then its argument prototype would still apply. */
11293 /* The GNU C library defines this for functions which it implements
11294 to always fail with ENOSYS. Some functions are actually named
11295 something starting with __ and the normal name is an alias. */
11296 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11304 if { (eval echo configure:11305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11306 eval "ac_cv_func_dbm_open=yes"
11308 echo "configure: failed program was:" >&5
11309 cat conftest.$ac_ext >&5
11311 eval "ac_cv_func_dbm_open=no"
11315 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11316 echo "$ac_t""yes" 1>&6
11317 with_database_dbm=yes libdbm=
11319 echo "$ac_t""no" 1>&6
11322 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11323 echo "configure:11324: checking for dbm_open in -ldbm" >&5
11324 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11326 xe_check_libs=" -ldbm "
11327 cat > conftest.$ac_ext <<EOF
11328 #line 11329 "configure"
11329 #include "confdefs.h"
11330 /* Override any gcc2 internal prototype to avoid an error. */
11331 /* We use char because int might match the return type of a gcc2
11332 builtin and then its argument prototype would still apply. */
11339 if { (eval echo configure:11340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11341 eval "ac_cv_lib_$ac_lib_var=yes"
11343 echo "configure: failed program was:" >&5
11344 cat conftest.$ac_ext >&5
11346 eval "ac_cv_lib_$ac_lib_var=no"
11351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11352 echo "$ac_t""yes" 1>&6
11353 with_database_dbm=yes libdbm=-ldbm
11355 echo "$ac_t""no" 1>&6
11356 test "$with_database_dbm" = "yes" && \
11357 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11358 with_database_dbm=no
11366 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
11367 test "$with_database_gnudbm" = "yes" -o \
11368 "$with_database_dbm" = "yes" && \
11369 { test "$extra_verbose" = "yes" && cat << \EOF
11372 cat >> confdefs.h <<\EOF
11378 if test "$with_database_berkdb" != "no"; then
11379 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11380 echo "configure:11381: checking for Berkeley db.h" >&5
11381 for path in "db/db.h" "db.h"; do
11382 cat > conftest.$ac_ext <<EOF
11383 #line 11384 "configure"
11384 #include "confdefs.h"
11385 #ifdef HAVE_INTTYPES_H
11386 #define __BIT_TYPES_DEFINED__
11387 #include <inttypes.h>
11388 typedef uint8_t u_int8_t;
11389 typedef uint16_t u_int16_t;
11390 typedef uint32_t u_int32_t;
11391 #ifdef WE_DONT_NEED_QUADS
11392 typedef uint64_t u_int64_t;
11401 if { (eval echo configure:11402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11403 db_h_path="$path"; break
11405 echo "configure: failed program was:" >&5
11406 cat conftest.$ac_ext >&5
11410 if test -z "$db_h_path"
11411 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
11412 else echo "$ac_t""$db_h_path" 1>&6
11415 if test "$with_database_berkdb" != "no"; then
11416 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11417 echo "configure:11418: checking for Berkeley DB version" >&5
11418 cat > conftest.$ac_ext <<EOF
11419 #line 11420 "configure"
11420 #include "confdefs.h"
11421 #include <$db_h_path>
11422 #if DB_VERSION_MAJOR > 1
11427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11428 egrep "yes" >/dev/null 2>&1; then
11430 echo "$ac_t""2" 1>&6; dbfunc=db_open
11433 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11437 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11438 echo "configure:11439: checking for $dbfunc" >&5
11440 cat > conftest.$ac_ext <<EOF
11441 #line 11442 "configure"
11442 #include "confdefs.h"
11443 /* System header to define __stub macros and hopefully few prototypes,
11444 which can conflict with char $dbfunc(); below. */
11445 #include <assert.h>
11446 /* Override any gcc2 internal prototype to avoid an error. */
11447 /* We use char because int might match the return type of a gcc2
11448 builtin and then its argument prototype would still apply. */
11453 /* The GNU C library defines this for functions which it implements
11454 to always fail with ENOSYS. Some functions are actually named
11455 something starting with __ and the normal name is an alias. */
11456 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
11464 if { (eval echo configure:11465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11466 eval "ac_cv_func_$dbfunc=yes"
11468 echo "configure: failed program was:" >&5
11469 cat conftest.$ac_ext >&5
11471 eval "ac_cv_func_$dbfunc=no"
11475 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
11476 echo "$ac_t""yes" 1>&6
11477 with_database_berkdb=yes need_libdb=no
11479 echo "$ac_t""no" 1>&6
11482 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11483 echo "configure:11484: checking for $dbfunc in -ldb" >&5
11484 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11486 xe_check_libs=" -ldb "
11487 cat > conftest.$ac_ext <<EOF
11488 #line 11489 "configure"
11489 #include "confdefs.h"
11490 /* Override any gcc2 internal prototype to avoid an error. */
11491 /* We use char because int might match the return type of a gcc2
11492 builtin and then its argument prototype would still apply. */
11499 if { (eval echo configure:11500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11501 eval "ac_cv_lib_$ac_lib_var=yes"
11503 echo "configure: failed program was:" >&5
11504 cat conftest.$ac_ext >&5
11506 eval "ac_cv_lib_$ac_lib_var=no"
11511 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11512 echo "$ac_t""yes" 1>&6
11513 with_database_berkdb=yes need_libdb=yes
11515 echo "$ac_t""no" 1>&6
11523 if test "$with_database_berkdb" = "yes"; then
11524 { test "$extra_verbose" = "yes" && cat << EOF
11525 Defining DB_H_PATH = "$db_h_path"
11527 cat >> confdefs.h <<EOF
11528 #define DB_H_PATH "$db_h_path"
11532 { test "$extra_verbose" = "yes" && cat << \EOF
11533 Defining HAVE_BERKELEY_DB
11535 cat >> confdefs.h <<\EOF
11536 #define HAVE_BERKELEY_DB 1
11540 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
11541 else with_database_berkdb=no
11545 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11546 != "no no no"; then
11547 { test "$extra_verbose" = "yes" && cat << \EOF
11548 Defining HAVE_DATABASE
11550 cat >> confdefs.h <<\EOF
11551 #define HAVE_DATABASE 1
11555 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
11556 echo " xemacs will be linked with \"database.o\""
11560 if test "$with_socks" = "yes"; then
11562 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11563 echo "configure:11564: checking for SOCKSinit in -lsocks" >&5
11564 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11566 xe_check_libs=" -lsocks "
11567 cat > conftest.$ac_ext <<EOF
11568 #line 11569 "configure"
11569 #include "confdefs.h"
11570 /* Override any gcc2 internal prototype to avoid an error. */
11571 /* We use char because int might match the return type of a gcc2
11572 builtin and then its argument prototype would still apply. */
11579 if { (eval echo configure:11580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11581 eval "ac_cv_lib_$ac_lib_var=yes"
11583 echo "configure: failed program was:" >&5
11584 cat conftest.$ac_ext >&5
11586 eval "ac_cv_lib_$ac_lib_var=no"
11591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11592 echo "$ac_t""yes" 1>&6
11593 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11594 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11595 { test "$extra_verbose" = "yes" && cat << EOF
11596 Defining $ac_tr_lib
11598 cat >> confdefs.h <<EOF
11599 #define $ac_tr_lib 1
11603 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
11606 echo "$ac_t""no" 1>&6
11610 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
11611 Defining HAVE_SOCKS
11613 cat >> confdefs.h <<\EOF
11614 #define HAVE_SOCKS 1
11620 if test "$usage_tracking" = "yes"; then
11621 { test "$extra_verbose" = "yes" && cat << \EOF
11622 Defining USAGE_TRACKING
11624 cat >> confdefs.h <<\EOF
11625 #define USAGE_TRACKING 1
11629 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11632 for ac_hdr in dlfcn.h
11634 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11635 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11636 echo "configure:11637: checking for $ac_hdr" >&5
11638 cat > conftest.$ac_ext <<EOF
11639 #line 11640 "configure"
11640 #include "confdefs.h"
11643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11644 { (eval echo configure:11645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11646 if test -z "$ac_err"; then
11648 eval "ac_cv_header_$ac_safe=yes"
11651 echo "configure: failed program was:" >&5
11652 cat conftest.$ac_ext >&5
11654 eval "ac_cv_header_$ac_safe=no"
11657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11658 echo "$ac_t""yes" 1>&6
11659 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11660 { test "$extra_verbose" = "yes" && cat << EOF
11661 Defining $ac_tr_hdr
11663 cat >> confdefs.h <<EOF
11664 #define $ac_tr_hdr 1
11668 { test "$extra_verbose" = "yes" && cat << \EOF
11669 Defining HAVE_DLFCN_H
11671 cat >> confdefs.h <<\EOF
11672 #define HAVE_DLFCN_H 1
11677 echo "$ac_t""no" 1>&6
11681 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11682 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11683 echo "configure:11684: checking for dlopen in -ldl" >&5
11684 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11686 xe_check_libs=" -ldl "
11687 cat > conftest.$ac_ext <<EOF
11688 #line 11689 "configure"
11689 #include "confdefs.h"
11690 /* Override any gcc2 internal prototype to avoid an error. */
11691 /* We use char because int might match the return type of a gcc2
11692 builtin and then its argument prototype would still apply. */
11699 if { (eval echo configure:11700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11701 eval "ac_cv_lib_$ac_lib_var=yes"
11703 echo "configure: failed program was:" >&5
11704 cat conftest.$ac_ext >&5
11706 eval "ac_cv_lib_$ac_lib_var=no"
11711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11712 echo "$ac_t""yes" 1>&6
11713 { test "$extra_verbose" = "yes" && cat << \EOF
11714 Defining HAVE_DLOPEN
11716 cat >> confdefs.h <<\EOF
11717 #define HAVE_DLOPEN 1
11720 DLL_LIB=dl; with_modules=yes
11722 echo "$ac_t""no" 1>&6
11726 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11727 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11728 echo "configure:11729: checking for _dlopen in -lc" >&5
11729 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11731 xe_check_libs=" -lc "
11732 cat > conftest.$ac_ext <<EOF
11733 #line 11734 "configure"
11734 #include "confdefs.h"
11735 /* Override any gcc2 internal prototype to avoid an error. */
11736 /* We use char because int might match the return type of a gcc2
11737 builtin and then its argument prototype would still apply. */
11744 if { (eval echo configure:11745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11746 eval "ac_cv_lib_$ac_lib_var=yes"
11748 echo "configure: failed program was:" >&5
11749 cat conftest.$ac_ext >&5
11751 eval "ac_cv_lib_$ac_lib_var=no"
11756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11757 echo "$ac_t""yes" 1>&6
11758 { test "$extra_verbose" = "yes" && cat << \EOF
11759 Defining HAVE_DLOPEN
11761 cat >> confdefs.h <<\EOF
11762 #define HAVE_DLOPEN 1
11765 DLL_LIB=; with_modules=yes
11767 echo "$ac_t""no" 1>&6
11771 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11772 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11773 echo "configure:11774: checking for dlopen in -lc" >&5
11774 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11776 xe_check_libs=" -lc "
11777 cat > conftest.$ac_ext <<EOF
11778 #line 11779 "configure"
11779 #include "confdefs.h"
11780 /* Override any gcc2 internal prototype to avoid an error. */
11781 /* We use char because int might match the return type of a gcc2
11782 builtin and then its argument prototype would still apply. */
11789 if { (eval echo configure:11790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11791 eval "ac_cv_lib_$ac_lib_var=yes"
11793 echo "configure: failed program was:" >&5
11794 cat conftest.$ac_ext >&5
11796 eval "ac_cv_lib_$ac_lib_var=no"
11801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11802 echo "$ac_t""yes" 1>&6
11803 { test "$extra_verbose" = "yes" && cat << \EOF
11804 Defining HAVE_DLOPEN
11806 cat >> confdefs.h <<\EOF
11807 #define HAVE_DLOPEN 1
11810 DLL_LIB=; with_modules=yes
11812 echo "$ac_t""no" 1>&6
11816 test -z "$with_modules" && {
11817 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11818 echo "configure:11819: checking for shl_load in -ldld" >&5
11819 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11821 xe_check_libs=" -ldld "
11822 cat > conftest.$ac_ext <<EOF
11823 #line 11824 "configure"
11824 #include "confdefs.h"
11825 /* Override any gcc2 internal prototype to avoid an error. */
11826 /* We use char because int might match the return type of a gcc2
11827 builtin and then its argument prototype would still apply. */
11834 if { (eval echo configure:11835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11836 eval "ac_cv_lib_$ac_lib_var=yes"
11838 echo "configure: failed program was:" >&5
11839 cat conftest.$ac_ext >&5
11841 eval "ac_cv_lib_$ac_lib_var=no"
11846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11847 echo "$ac_t""yes" 1>&6
11848 { test "$extra_verbose" = "yes" && cat << \EOF
11849 Defining HAVE_SHL_LOAD
11851 cat >> confdefs.h <<\EOF
11852 #define HAVE_SHL_LOAD 1
11855 DLL_LIB=dld; with_modules=yes
11857 echo "$ac_t""no" 1>&6
11861 test -z "$with_modules" && {
11862 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11863 echo "configure:11864: checking for dld_init in -ldld" >&5
11864 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11866 xe_check_libs=" -ldld "
11867 cat > conftest.$ac_ext <<EOF
11868 #line 11869 "configure"
11869 #include "confdefs.h"
11870 /* Override any gcc2 internal prototype to avoid an error. */
11871 /* We use char because int might match the return type of a gcc2
11872 builtin and then its argument prototype would still apply. */
11879 if { (eval echo configure:11880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11881 eval "ac_cv_lib_$ac_lib_var=yes"
11883 echo "configure: failed program was:" >&5
11884 cat conftest.$ac_ext >&5
11886 eval "ac_cv_lib_$ac_lib_var=no"
11891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11892 echo "$ac_t""yes" 1>&6
11893 { test "$extra_verbose" = "yes" && cat << \EOF
11894 Defining HAVE_DLD_INIT
11896 cat >> confdefs.h <<\EOF
11897 #define HAVE_DLD_INIT 1
11900 DLL_LIB=dld; with_modules=yes
11902 echo "$ac_t""no" 1>&6
11906 if test "$with_modules" = "yes"; then
11913 ld_dynamic_link_flags=
11915 xealias=$internal_configuration
11917 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
11918 echo "configure:11919: checking how to build dynamic libraries for ${xehost}" >&5
11919 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
11922 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
11925 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11926 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11927 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11929 case "$xehost_os" in
11931 # AIX sometimes has problems with the GCC collect2 program. For some
11932 # reason, if we set the COLLECT_NAMES environment variable, the problems
11933 # vanish in a puff of smoke.
11934 if test "${COLLECT_NAMES+set}" != set; then
11936 export COLLECT_NAMES
11941 # Now see if the compiler is really GCC.
11942 if test "$GCC" = "yes"; then
11945 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
11946 echo "configure:11947: checking checking whether we are using GNU C" >&5
11947 cat > conftest.$ac_ext <<EOF
11948 #line 11949 "configure"
11949 #include "confdefs.h"
11956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11957 egrep "yes" >/dev/null 2>&1; then
11966 echo "$ac_t""${XEGCC}" 1>&6
11969 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
11970 echo "configure:11971: checking how to produce PIC code" >&5
11973 can_build_shared=yes
11974 if test "$XEGCC" = yes; then
11977 case "$xehost_os" in
11978 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
11979 # PIC is the default for these OSes.
11983 # We can build DLLs from non-PIC.
11986 # FIXME: we need at least 68020 code to build shared libraries, but
11987 # adding the `-m68020' flag to GCC prevents building anything better,
11989 dll_cflags='-m68020 -resident32 -malways-restore-a4'
11996 # PORTME Check for PIC flags for the system compiler.
11997 case "$xehost_os" in
11999 # Is there a better link_static_flag that works with the bundled CC?
12006 # PIC (with -KPIC) is the default.
12010 # We can build DLLs from non-PIC.
12014 # All OSF/1 code is PIC.
12019 dll_cflags='-belf -Kpic'
12053 can_build_shared=no
12058 if test -n "$dll_cflags"; then
12059 echo "$ac_t""${dll_cflags}" 1>&6
12061 # Check to make sure the dll_cflags actually works.
12062 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12063 echo "configure:12064: checking if PIC flag ${dll_cflags} really works" >&5
12064 save_CFLAGS="$CFLAGS"
12065 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12066 cat > conftest.$ac_ext <<EOF
12067 #line 12068 "configure"
12068 #include "confdefs.h"
12074 if { (eval echo configure:12075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12077 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12078 # reports no error. So, we need to grep stderr for (Bundled).
12079 if grep '(Bundled)' config.log >/dev/null; then
12080 echo "$ac_t""no" 1>&6
12081 can_build_shared=no
12084 echo "$ac_t""yes" 1>&6
12087 echo "configure: failed program was:" >&5
12088 cat conftest.$ac_ext >&5
12090 echo "$ac_t""no" 1>&6
12091 can_build_shared=no
12095 CFLAGS="$save_CFLAGS"
12097 echo "$ac_t""none" 1>&6
12100 if test "$can_build_shared" = "yes"; then
12104 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12105 echo "configure:12106: checking if C compiler can produce shared libraries" >&5
12106 if test "$XEGCC" = yes; then
12109 else # Not using GCC
12110 case "$xehost_os" in
12112 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
12113 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
12116 freebsd2* | netbsd* | openbsd*)
12118 xcldf="${wl}-Bshareable"
12127 xcldf="${wl}-b ${wl}+s"
12130 irix5* | irix6* | osf3* | osf4*)
12131 xcldf="${wl}-shared"
12135 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
12141 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
12142 xldf="-assert pure-text -Bstatic"
12145 fi # End if if we are using gcc
12147 if test -n "$xcldf"; then
12148 save_LDFLAGS=$LDFLAGS
12150 save_xe_libs=$xe_libs
12151 LDFLAGS="$xcldf $LDFLAGS"
12154 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12155 cat > conftest.$ac_ext <<EOF
12156 #line 12157 "configure"
12157 #include "confdefs.h"
12163 if { (eval echo configure:12164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12167 echo "configure: failed program was:" >&5
12168 cat conftest.$ac_ext >&5
12173 LDFLAGS=$save_LDFLAGS
12175 xe_libs=$save_xe_libs
12176 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12180 echo "$ac_t""${cc_produces_so}" 1>&6
12183 if test -z "$LTLD"; then
12185 if test "$XEGCC" = yes; then
12186 # Check if gcc -print-prog-name=ld gives a path.
12187 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12188 echo "configure:12189: checking for ld used by GCC" >&5
12189 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12191 # Accept absolute paths.
12193 if test -z "$LTLD"; then
12195 *gcc-lib*) LTLD="$CC"
12203 # If it fails, then pretend we aren't using GCC.
12207 # If it is relative, then search for the first ld in PATH.
12208 with_gnu_ld=unknown
12212 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12213 echo "configure:12214: checking for GNU ld" >&5
12216 if test -z "$LTLD"; then
12217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12218 for ac_dir in $PATH; do
12219 test -z "$ac_dir" && ac_dir=.
12220 if test -f "$ac_dir/$ac_prog"; then
12221 LTLD="$ac_dir/$ac_prog"
12222 # Check to see if the program is GNU ld. I'd rather use --version,
12223 # but apparently some GNU ld's only accept -v.
12224 # Break only if it was the GNU/non-GNU ld that we prefer.
12225 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12235 if test -n "$LTLD"; then
12236 echo "$ac_t""${LTLD}" 1>&6
12238 echo "$ac_t""no" 1>&6
12241 if test -z "$LTLD" -a "$cc_produces_so" = no; then
12242 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
12247 ld_dynamic_link_flags=
12249 # Check to see if it really is or isn't GNU ld.
12250 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12251 echo "configure:12252: checking if the linker is GNU ld" >&5
12252 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12253 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12258 echo "$ac_t""${xe_gnu_ld}" 1>&6
12260 case "$xehost_os" in
12261 amigaos* | sunos4*)
12262 # On these operating systems, we should treat GNU ld like the system ld.
12263 gnu_ld_acts_native=yes
12266 gnu_ld_acts_native=no
12270 if test "$cc_produces_so" = "yes"; then
12273 can_build_shared=yes
12275 # OK - only NOW do we futz about with ld.
12276 # See if the linker supports building shared libraries.
12277 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12278 echo "configure:12279: checking whether the linker supports shared libraries" >&5
12280 dll_ldflags=$LDFLAGS
12282 can_build_shared=yes
12283 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12284 # See if GNU ld supports shared libraries.
12285 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12287 dll_ldflags="-shared"
12293 # PORTME fill in a description of your system's linker (not GNU ld)
12294 case "$xehost_os" in
12304 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12305 # support. Future versions do this automatically, but an explicit c++rt0.o
12306 # doesn't break anything, and helps significantly (at the cost of a little
12311 dll_post="/usr/lib/c++rt0.o"
12314 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
12317 dll_ldflags="-Bshareable"
12320 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
12322 dll_ldflags="-shared"
12336 # Tested with NetBSD 1.2 ld
12351 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
12352 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12355 *gcc*) dll_ldflags="-shared"
12358 *) dll_ldflags="-G"
12364 if test "$XEGCC" = yes; then
12384 can_build_shared=no
12388 echo "$ac_t""${ld_shlibs}" 1>&6
12389 if test "$ld_shlibs" = "no"; then
12390 can_build_shared=no
12392 fi # End of if cc_produces_so = no
12395 if test "$xe_gnu_ld" = yes; then
12396 if test "$ld_shlibs" = yes; then
12397 ld_dynamic_link_flags="${wl}-export-dynamic"
12401 if test -z "$ld_dynamic_link_flags"; then
12402 case "$xehost_os" in
12404 ld_dynamic_link_flags=
12408 ld_dynamic_link_flags=
12412 ld_dynamic_link_flags=
12416 ld_dynamic_link_flags=
12420 ld_dynamic_link_flags=
12424 ld_dynamic_link_flags="${wl}-E"
12428 ld_dynamic_link_flags=
12432 ld_dynamic_link_flags=
12436 ld_dynamic_link_flags=
12440 ld_dynamic_link_flags=
12443 solaris2* | solaris7*)
12444 ld_dynamic_link_flags="${wl}-Bdynamic"
12447 sco3.2v5* | unixware* | sysv5* | sysv4*)
12448 ld_dynamic_link_flags="${wl}-Bexport"
12452 ld_dynamic_link_flags=
12456 ld_dynamic_link_flags=
12460 ld_dynamic_link_flags=
12464 fi # End of if -z ld_dynamic_link_flags
12465 fi # End of if test "$can_build_shared" = "yes"
12474 if test "$can_build_shared" = "yes"; then
12475 { test "$extra_verbose" = "yes" && cat << \EOF
12476 Defining HAVE_SHLIB
12478 cat >> confdefs.h <<\EOF
12479 #define HAVE_SHLIB 1
12483 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then
12484 echo " xemacs will be linked with \"sysdll.o\""
12486 extra_objs="$extra_objs emodules.o" && if test "$extra_verbose" = "yes"; then
12487 echo " xemacs will be linked with \"emodules.o\""
12489 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12490 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
12491 for ac_func in dlerror _dlerror
12493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12494 echo "configure:12495: checking for $ac_func" >&5
12496 cat > conftest.$ac_ext <<EOF
12497 #line 12498 "configure"
12498 #include "confdefs.h"
12499 /* System header to define __stub macros and hopefully few prototypes,
12500 which can conflict with char $ac_func(); below. */
12501 #include <assert.h>
12502 /* Override any gcc2 internal prototype to avoid an error. */
12503 /* We use char because int might match the return type of a gcc2
12504 builtin and then its argument prototype would still apply. */
12509 /* The GNU C library defines this for functions which it implements
12510 to always fail with ENOSYS. Some functions are actually named
12511 something starting with __ and the normal name is an alias. */
12512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12520 if { (eval echo configure:12521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12522 eval "ac_cv_func_$ac_func=yes"
12524 echo "configure: failed program was:" >&5
12525 cat conftest.$ac_ext >&5
12527 eval "ac_cv_func_$ac_func=no"
12531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12532 echo "$ac_t""yes" 1>&6
12533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12534 { test "$extra_verbose" = "yes" && cat << EOF
12535 Defining $ac_tr_func
12537 cat >> confdefs.h <<EOF
12538 #define $ac_tr_func 1
12543 echo "$ac_t""no" 1>&6
12548 echo "configure: warning: disabling shared library support" 1>&2
12553 cat > conftest.$ac_ext <<EOF
12554 #line 12555 "configure"
12555 #include "confdefs.h"
12556 int main(int c,char *v[]){return 0;}
12558 if { (eval echo configure:12559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12563 echo "configure: failed program was:" >&5
12564 cat conftest.$ac_ext >&5
12568 echo "*** PANIC *** The C compiler can no longer build working executables."
12569 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
12570 echo "*** PANIC *** The most likely reason for this problem is that configure"
12571 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
12572 echo "*** PANIC *** found at run time."
12573 echo "*** PANIC ***"
12574 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
12575 echo "*** PANIC *** On other systems, try telling configure where to find the"
12576 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
12577 echo "*** PANIC ***"
12578 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
12579 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
12580 echo "*** PANIC *** on your system. Don't do that."
12585 if test "$win32_processes" = "yes"; then
12586 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
12587 echo " xemacs will be linked with \"process-nt.o\""
12590 { test "$extra_verbose" = "yes" && cat << \EOF
12591 Defining HAVE_UNIX_PROCESSES
12593 cat >> confdefs.h <<\EOF
12594 #define HAVE_UNIX_PROCESSES 1
12598 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
12599 echo " xemacs will be linked with \"process-unix.o\""
12606 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12611 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12616 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
12617 c_switch_general="$T"
12621 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12622 c_switch_window_system="$T"
12626 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12631 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
12632 ld_switch_general="$T"
12636 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12637 ld_switch_window_system="$T"
12641 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12646 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12647 ld_libs_general="$T"
12651 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
12652 ld_libs_window_system="$T"
12656 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12661 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
12662 internal_makefile_list="Makefile.in"
12663 SUBDIR_MAKEFILES=''
12664 test -d lock || mkdir lock
12665 for dir in $MAKE_SUBDIR; do
12666 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
12667 test -d "$d" || mkdir "$d"; cd "$d"
12669 * ) test -d "$dir" || mkdir "$dir" ;;
12673 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12674 SUBDIR_MAKEFILES="$T"
12678 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12679 internal_makefile_list="$T"
12686 for dir in src/s src/m; do
12687 if test ! -d "$dir" ; then
12688 echo Making symbolic link to "$srcdir/$dir"
12689 ${LN_S} "$srcdir/$dir" "$dir"
12693 if test "$extra_verbose" = "yes"; then
12695 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
12699 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
12700 echo "creating src/gdbinit"; echo ""
12701 echo "source $srcdir/src/gdbinit" > src/gdbinit
12704 if test "$__SUNPRO_C" = "yes"; then
12705 echo "creating .sbinit"; echo ""
12706 ( echo "# For use with Sun WorkShop's Source browser."
12707 echo "# See sbquery(1) and sbinit(4) for more information"
12708 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
12735 *\$* ) eval "PREFIX=$PREFIX" ;;
12743 EXEC_PREFIX=$exec_prefix
12745 case "$EXEC_PREFIX" in
12746 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
12757 *\$* ) eval "INFODIR=$INFODIR" ;;
12767 case "$INFOPATH" in
12768 *\$* ) eval "INFOPATH=$INFOPATH" ;;
12776 PACKAGE_PATH=$package_path
12778 case "$PACKAGE_PATH" in
12779 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
12790 *\$* ) eval "LISPDIR=$LISPDIR" ;;
12798 MODULEDIR=$moduledir
12800 case "$MODULEDIR" in
12801 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
12809 SITELISPDIR=$sitelispdir
12811 case "$SITELISPDIR" in
12812 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
12820 SITEMODULEDIR=$sitemoduledir
12822 case "$SITEMODULEDIR" in
12823 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
12834 *\$* ) eval "ETCDIR=$ETCDIR" ;;
12845 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
12856 *\$* ) eval "DOCDIR=$DOCDIR" ;;
12864 ARCHLIBDIR=$archlibdir
12866 case "$ARCHLIBDIR" in
12867 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
12891 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
12899 : ${XEMACS_CC:=$CC}
12902 if test "$with_prefix" = "yes"; then
12903 { test "$extra_verbose" = "yes" && cat << \EOF
12904 Defining PREFIX_USER_DEFINED
12906 cat >> confdefs.h <<\EOF
12907 #define PREFIX_USER_DEFINED 1
12913 if test "$with_site_lisp" = "no"; then
12914 { test "$extra_verbose" = "yes" && cat << \EOF
12915 Defining INHIBIT_SITE_LISP
12917 cat >> confdefs.h <<\EOF
12918 #define INHIBIT_SITE_LISP 1
12923 if test "$with_site_modules" = "no"; then
12924 { test "$extra_verbose" = "yes" && cat << \EOF
12925 Defining INHIBIT_SITE_MODULES
12927 cat >> confdefs.h <<\EOF
12928 #define INHIBIT_SITE_MODULES 1
12936 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12937 ac_configure_args="$T"
12939 { test "$extra_verbose" = "yes" && cat << EOF
12940 Defining EMACS_CONFIGURATION = "$canonical"
12942 cat >> confdefs.h <<EOF
12943 #define EMACS_CONFIGURATION "$canonical"
12947 { test "$extra_verbose" = "yes" && cat << EOF
12948 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
12950 cat >> confdefs.h <<EOF
12951 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
12955 { test "$extra_verbose" = "yes" && cat << EOF
12956 Defining config_machfile = "$machfile"
12958 cat >> confdefs.h <<EOF
12959 #define config_machfile "$machfile"
12963 { test "$extra_verbose" = "yes" && cat << EOF
12964 Defining config_opsysfile = "$opsysfile"
12966 cat >> confdefs.h <<EOF
12967 #define config_opsysfile "$opsysfile"
12974 { test "$extra_verbose" = "yes" && cat << EOF
12975 Defining LD_SWITCH_X_SITE = $null_string
12977 cat >> confdefs.h <<EOF
12978 #define LD_SWITCH_X_SITE $null_string
12982 { test "$extra_verbose" = "yes" && cat << EOF
12983 Defining LD_SWITCH_X_SITE_AUX = $null_string
12985 cat >> confdefs.h <<EOF
12986 #define LD_SWITCH_X_SITE_AUX $null_string
12990 { test "$extra_verbose" = "yes" && cat << EOF
12991 Defining C_SWITCH_X_SITE = $null_string
12993 cat >> confdefs.h <<EOF
12994 #define C_SWITCH_X_SITE $null_string
12998 { test "$extra_verbose" = "yes" && cat << EOF
12999 Defining LD_SWITCH_SITE = $null_string
13001 cat >> confdefs.h <<EOF
13002 #define LD_SWITCH_SITE $null_string
13006 { test "$extra_verbose" = "yes" && cat << EOF
13007 Defining C_SWITCH_SITE = $null_string
13009 cat >> confdefs.h <<EOF
13010 #define C_SWITCH_SITE $null_string
13016 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13017 Defining GNU_MALLOC
13019 cat >> confdefs.h <<\EOF
13020 #define GNU_MALLOC 1
13024 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13025 Defining USE_SYSTEM_MALLOC
13027 cat >> confdefs.h <<\EOF
13028 #define USE_SYSTEM_MALLOC 1
13032 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13033 Defining USE_DEBUG_MALLOC
13035 cat >> confdefs.h <<\EOF
13036 #define USE_DEBUG_MALLOC 1
13040 { test "$extra_verbose" = "yes" && cat << \EOF
13041 Defining USE_SYSTEM_MALLOC
13043 cat >> confdefs.h <<\EOF
13044 #define USE_SYSTEM_MALLOC 1
13049 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13052 cat >> confdefs.h <<\EOF
13057 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13060 cat >> confdefs.h <<\EOF
13065 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13066 Defining EXTERNAL_WIDGET
13068 cat >> confdefs.h <<\EOF
13069 #define EXTERNAL_WIDGET 1
13073 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13074 Defining NO_DOC_FILE
13076 cat >> confdefs.h <<\EOF
13077 #define NO_DOC_FILE 1
13081 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13084 cat >> confdefs.h <<\EOF
13089 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13092 cat >> confdefs.h <<\EOF
13097 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13098 Defining MAIL_USE_POP
13100 cat >> confdefs.h <<\EOF
13101 #define MAIL_USE_POP 1
13105 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13108 cat >> confdefs.h <<\EOF
13113 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13116 cat >> confdefs.h <<\EOF
13121 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13122 Defining USE_UNION_TYPE
13124 cat >> confdefs.h <<\EOF
13125 #define USE_UNION_TYPE 1
13132 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
13134 echo "uname -a: `uname -a`"
13137 echo "$0 $quoted_arguments"
13140 if test ! -z ${emacs_beta_version} ; then
13141 if test -z "${emacs_is_beta}" ; then
13142 xemacs_betaname=".${emacs_beta_version}"
13144 xemacs_betaname="-b${emacs_beta_version}"
13153 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13155 Where should the build process find the source code? $srcdir
13156 What installation prefix should install use? $prefix
13157 What operating system and machine description files should XEmacs use?
13158 \`$opsysfile' and \`$machfile'
13159 What compiler should XEmacs be built with? $CC $CFLAGS
13160 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13161 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13162 What window system should XEmacs use? ${window_system}"
13163 if test "$with_x11" = "yes"; then
13164 echo " Where do we find X Windows header files? $x_includes"
13165 echo " Where do we find X Windows libraries? $x_libraries"
13167 if test -n "$site_includes"; then
13168 echo " Additional header files: $site_includes"
13170 if test -n "$site_libraries"; then
13171 echo " Additional libraries: $site_libraries"
13173 if test -n "$site_prefixes"; then
13174 echo " Additional prefixes: $site_prefixes"
13176 if test -n "$runpath"; then
13177 echo " Runtime library search path: $runpath"
13179 test "$with_dnet" = yes && echo " Compiling in support for DNET."
13180 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
13181 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
13182 if test "$with_xmu" != yes -a "$with_x11" = yes; then
13183 echo " No Xmu; substituting equivalent routines."
13186 if test "$with_xpm" = yes; then
13187 echo " Compiling in support for XPM images."
13188 elif test "$with_x11" = yes; then
13189 echo " --------------------------------------------------------------------"
13190 echo " WARNING: Compiling without XPM support."
13191 if test "$xpm_problem" != ""; then
13192 echo " Reason: $xpm_problem"
13194 echo " WARNING: You should strongly consider installing XPM."
13195 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
13196 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13197 echo " --------------------------------------------------------------------"
13199 if test "$with_png" = yes; then
13200 echo " Compiling in support for PNG image handling."
13201 elif test "$window_system" != "none"; then
13202 echo " --------------------------------------------------------------------"
13203 echo " WARNING: Compiling without PNG image support."
13204 if test "$png_problem" != ""; then
13205 echo " Reason: $png_problem"
13207 echo " WARNING: You should strongly consider installing the PNG libraries."
13208 echo " WARNING: Otherwise certain images and glyphs may not display."
13209 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13210 echo " --------------------------------------------------------------------"
13212 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13213 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13214 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13215 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13216 case "$with_sound" in
13217 nas ) echo " Compiling in network sound (NAS) support." ;;
13218 native ) echo " Compiling in native sound support." ;;
13219 both ) echo " Compiling in both network and native sound support." ;;
13221 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13223 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13224 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13225 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
13227 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
13229 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
13230 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
13232 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
13233 test "$with_file_coding" = yes && echo " Compiling in File coding support."
13234 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
13235 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
13236 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
13237 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
13238 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
13239 if test "$with_wnn" = yes; then
13240 echo " Compiling in support for the WNN input method on Mule."
13241 test "$with_wnn6" = yes && echo " Using WNN version 6."
13243 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
13245 test "$with_cde" = yes && echo " Compiling in support for CDE."
13246 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
13247 test "$with_offix" = yes && echo " Compiling in support for OffiX."
13248 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
13249 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
13250 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
13251 case "$with_menubars" in
13252 lucid ) echo " Using Lucid menubars." ;;
13253 motif ) echo " Using Motif menubars."
13254 echo " *WARNING* The Motif menubar implementation is currently buggy."
13255 echo " We recommend using the Lucid menubar instead."
13256 echo " Re-run configure with --with-menubars='lucid'." ;;
13258 case "$with_scrollbars" in
13259 lucid ) echo " Using Lucid scrollbars." ;;
13260 motif ) echo " Using Motif scrollbars." ;;
13261 athena ) echo " Using Athena scrollbars." ;;
13262 athena3d ) echo " Using Athena-3d scrollbars." ;;
13264 case "$with_widgets" in
13265 motif ) echo " Using Motif native widgets." ;;
13267 case "$with_dialogs" in
13269 echo " Using Motif dialog boxes."
13270 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
13271 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
13272 echo " We recommend using the Athena dialog boxes instead."
13273 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
13274 echo " Read the PROBLEMS file for more information."
13277 athena ) echo " Using Athena dialog boxes." ;;
13278 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13280 test "$with_modules" = "yes" && echo " Compiling in DSO module support."
13281 test "$with_clash_detection" = yes && \
13282 echo " Clash detection will use \"$lockdir\" for locking files."
13283 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13284 test "$with_pop" = yes && echo " Using POP for mail access."
13285 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13286 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
13287 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
13288 test "$debug" = yes && echo " Compiling in extra code for debugging."
13289 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13290 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
13291 != "no no no no no"; then
13292 echo " WARNING: ---------------------------------------------------------"
13293 echo " WARNING: Compiling in support for runtime error checking."
13294 echo " WARNING: XEmacs will run noticeably more slowly as a result."
13295 echo " WARNING: Error checking is on by default for XEmacs beta releases."
13296 echo " WARNING: ---------------------------------------------------------"
13299 ) | tee -a Installation
13303 # Remove any trailing slashes in these variables.
13304 test -n "$prefix" &&
13305 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13306 test -n "$exec_prefix" &&
13307 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13310 for file in $internal_makefile_list; do
13311 test "$file" = src/Makefile.in && \
13312 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13313 ac_output_files="${ac_output_files+$ac_output_files }$file"
13315 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13316 if test "$with_modules" = "yes"; then
13317 ac_output_files="$ac_output_files lib-src/ellcc.h"
13322 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13324 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13325 # Let make expand exec_prefix.
13326 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13328 # Any assignment to VPATH causes Sun make to only execute
13329 # the first set of double-colon rules, so remove it if not needed.
13330 # If there is a colon in the path, we need to keep it.
13331 if test "x$srcdir" = x.; then
13332 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13335 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13337 DEFS=-DHAVE_CONFIG_H
13339 # Without the "./", some shells look in PATH for config.status.
13340 : ${CONFIG_STATUS=./config.status}
13342 echo creating $CONFIG_STATUS
13343 rm -f $CONFIG_STATUS
13344 cat > $CONFIG_STATUS <<EOF
13346 # Generated automatically by configure.
13347 # Run this file to recreate the current configuration.
13348 # This directory was configured as follows,
13349 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13351 # $0 $ac_configure_args
13353 # Compiler output produced by configure, useful for debugging
13354 # configure, is in ./config.log if it exists.
13356 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13359 case "\$ac_option" in
13360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13361 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13362 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13363 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13364 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13366 -help | --help | --hel | --he | --h)
13367 echo "\$ac_cs_usage"; exit 0 ;;
13368 *) echo "\$ac_cs_usage"; exit 1 ;;
13372 ac_given_srcdir=$srcdir
13373 ac_given_INSTALL="$INSTALL"
13375 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13377 cat >> $CONFIG_STATUS <<EOF
13379 # Protect against being on the right side of a sed subst in config.status.
13380 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13381 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13385 s%@CFLAGS@%$CFLAGS%g
13386 s%@CPPFLAGS@%$CPPFLAGS%g
13387 s%@CXXFLAGS@%$CXXFLAGS%g
13388 s%@FFLAGS@%$FFLAGS%g
13390 s%@LDFLAGS@%$LDFLAGS%g
13392 s%@exec_prefix@%$exec_prefix%g
13393 s%@prefix@%$prefix%g
13394 s%@program_transform_name@%$program_transform_name%g
13395 s%@bindir@%$bindir%g
13396 s%@sbindir@%$sbindir%g
13397 s%@libexecdir@%$libexecdir%g
13398 s%@datadir@%$datadir%g
13399 s%@sysconfdir@%$sysconfdir%g
13400 s%@sharedstatedir@%$sharedstatedir%g
13401 s%@localstatedir@%$localstatedir%g
13402 s%@libdir@%$libdir%g
13403 s%@includedir@%$includedir%g
13404 s%@oldincludedir@%$oldincludedir%g
13405 s%@infodir@%$infodir%g
13406 s%@mandir@%$mandir%g
13408 s%@blddir@%$blddir%g
13411 s%@start_flags@%$start_flags%g
13412 s%@ld_switch_shared@%$ld_switch_shared%g
13413 s%@start_files@%$start_files%g
13415 s%@lib_gcc@%$lib_gcc%g
13416 s%@RANLIB@%$RANLIB%g
13417 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13418 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13419 s%@INSTALL_DATA@%$INSTALL_DATA%g
13421 s%@SET_MAKE@%$SET_MAKE%g
13422 s%@X_CFLAGS@%$X_CFLAGS%g
13423 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13424 s%@X_LIBS@%$X_LIBS%g
13425 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13426 s%@install_pp@%$install_pp%g
13427 s%@libs_xauth@%$libs_xauth%g
13428 s%@dnd_objs@%$dnd_objs%g
13429 s%@lwlib_objs@%$lwlib_objs%g
13430 s%@ALLOCA@%$ALLOCA%g
13431 s%@dll_ld@%$dll_ld%g
13432 s%@dll_cflags@%$dll_cflags%g
13433 s%@dll_ldflags@%$dll_ldflags%g
13434 s%@dll_post@%$dll_post%g
13435 s%@dll_ldo@%$dll_ldo%g
13436 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
13437 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
13438 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
13439 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
13440 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
13441 s%@PROGNAME@%$PROGNAME%g
13442 s%@version@%$version%g
13443 s%@configuration@%$configuration%g
13444 s%@canonical@%$canonical%g
13445 s%@inststaticdir@%$inststaticdir%g
13446 s%@instvardir@%$instvardir%g
13447 s%@srcdir@%$srcdir%g
13448 s%@pkgdir@%$pkgdir%g
13449 s%@statedir@%$statedir%g
13450 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
13451 s%@PREFIX@%$PREFIX%g
13452 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
13453 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
13454 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
13455 s%@INFODIR@%$INFODIR%g
13456 s%@infopath@%$infopath%g
13457 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
13458 s%@INFOPATH@%$INFOPATH%g
13459 s%@package_path@%$package_path%g
13460 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
13461 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
13462 s%@lispdir@%$lispdir%g
13463 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
13464 s%@LISPDIR@%$LISPDIR%g
13465 s%@moduledir@%$moduledir%g
13466 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
13467 s%@MODULEDIR@%$MODULEDIR%g
13468 s%@sitelispdir@%$sitelispdir%g
13469 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
13470 s%@SITELISPDIR@%$SITELISPDIR%g
13471 s%@sitemoduledir@%$sitemoduledir%g
13472 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
13473 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
13474 s%@etcdir@%$etcdir%g
13475 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
13476 s%@ETCDIR@%$ETCDIR%g
13477 s%@lockdir@%$lockdir%g
13478 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
13479 s%@LOCKDIR@%$LOCKDIR%g
13480 s%@docdir@%$docdir%g
13481 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
13482 s%@DOCDIR@%$DOCDIR%g
13483 s%@archlibdir@%$archlibdir%g
13484 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
13485 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
13486 s%@bitmapdir@%$bitmapdir%g
13487 s%@extra_objs@%$extra_objs%g
13488 s%@machfile@%$machfile%g
13489 s%@opsysfile@%$opsysfile%g
13490 s%@c_switch_general@%$c_switch_general%g
13491 s%@c_switch_window_system@%$c_switch_window_system%g
13492 s%@c_switch_all@%$c_switch_all%g
13493 s%@ld_switch_general@%$ld_switch_general%g
13494 s%@ld_switch_window_system@%$ld_switch_window_system%g
13495 s%@ld_switch_all@%$ld_switch_all%g
13496 s%@ld_libs_general@%$ld_libs_general%g
13497 s%@ld_libs_window_system@%$ld_libs_window_system%g
13498 s%@ld_libs_all@%$ld_libs_all%g
13499 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
13500 s%@native_sound_lib@%$native_sound_lib%g
13501 s%@sound_cflags@%$sound_cflags%g
13502 s%@dynodump_arch@%$dynodump_arch%g
13503 s%@XEMACS_CC@%$XEMACS_CC%g
13504 s%@internal_makefile_list@%$internal_makefile_list%g
13509 cat >> $CONFIG_STATUS <<\EOF
13511 # Split the substitutions into bite-sized pieces for seds with
13512 # small command number limits, like on Digital OSF/1 and HP-UX.
13513 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13514 ac_file=1 # Number of current file.
13515 ac_beg=1 # First line for current file.
13516 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13519 while $ac_more_lines; do
13520 if test $ac_beg -gt 1; then
13521 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13523 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13525 if test ! -s conftest.s$ac_file; then
13526 ac_more_lines=false
13527 rm -f conftest.s$ac_file
13529 if test -z "$ac_sed_cmds"; then
13530 ac_sed_cmds="sed -f conftest.s$ac_file"
13532 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13534 ac_file=`expr $ac_file + 1`
13536 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13539 if test -z "$ac_sed_cmds"; then
13544 cat >> $CONFIG_STATUS <<EOF
13546 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
13548 cat >> $CONFIG_STATUS <<\EOF
13549 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13550 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13552 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13553 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13554 *) ac_file_in="${ac_file}.in" ;;
13557 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13559 # Remove last slash and all that follows it. Not all systems have dirname.
13560 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13561 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13562 # The file is in a subdirectory.
13563 test ! -d "$ac_dir" && mkdir "$ac_dir"
13564 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13565 # A "../" for each directory in $ac_dir_suffix.
13566 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13568 ac_dir_suffix= ac_dots=
13571 case "$ac_given_srcdir" in
13573 if test -z "$ac_dots"; then top_srcdir=.
13574 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13575 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13576 *) # Relative path.
13577 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13578 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13581 case "$ac_given_INSTALL" in
13582 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13583 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13586 echo creating "$ac_file"
13588 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13590 *Makefile*) ac_comsub="1i\\
13591 # $configure_input" ;;
13595 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13597 s%@configure_input@%$configure_input%g
13598 s%@srcdir@%$srcdir%g
13599 s%@top_srcdir@%$top_srcdir%g
13600 s%@INSTALL@%$INSTALL%g
13601 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13605 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13606 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13608 # ac_d sets the value in "#define NAME VALUE" lines.
13609 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13610 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13613 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13614 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13615 ac_uB='\([ ]\)%\1#\2define\3'
13618 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13619 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13620 ac_eB='$%\1#\2define\3'
13624 if test "${CONFIG_HEADERS+set}" != set; then
13626 cat >> $CONFIG_STATUS <<EOF
13627 CONFIG_HEADERS="src/config.h lwlib/config.h"
13629 cat >> $CONFIG_STATUS <<\EOF
13631 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13632 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13634 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13635 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13636 *) ac_file_in="${ac_file}.in" ;;
13639 echo creating $ac_file
13641 rm -f conftest.frag conftest.in conftest.out
13642 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13643 cat $ac_file_inputs > conftest.in
13647 # Transform confdefs.h into a sed script conftest.vals that substitutes
13648 # the proper values into config.h.in to produce config.h. And first:
13649 # Protect against being on the right side of a sed subst in config.status.
13650 # Protect against being in an unquoted here document in config.status.
13651 rm -f conftest.vals
13652 cat > conftest.hdr <<\EOF
13655 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13659 sed -n -f conftest.hdr confdefs.h > conftest.vals
13662 # This sed command replaces #undef with comments. This is necessary, for
13663 # example, in the case of _POSIX_SOURCE, which is predefined and required
13664 # on some systems where configure will not decide to define it.
13665 cat >> conftest.vals <<\EOF
13666 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13669 # Break up conftest.vals because some shells have a limit on
13670 # the size of here documents, and old seds have small limits too.
13672 rm -f conftest.tail
13675 ac_lines=`grep -c . conftest.vals`
13676 # grep -c gives empty output for an empty file on some AIX systems.
13677 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13678 # Write a limited-size here document to conftest.frag.
13679 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13680 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13682 sed -f conftest.frag conftest.in > conftest.out
13684 mv conftest.out conftest.in
13685 ' >> $CONFIG_STATUS
13686 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13687 rm -f conftest.vals
13688 mv conftest.tail conftest.vals
13690 rm -f conftest.vals
13692 cat >> $CONFIG_STATUS <<\EOF
13693 rm -f conftest.frag conftest.h
13694 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13695 cat conftest.in >> conftest.h
13697 if cmp -s $ac_file conftest.h 2>/dev/null; then
13698 echo "$ac_file is unchanged"
13701 # Remove last slash and all that follows it. Not all systems have dirname.
13702 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13703 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13704 # The file is in a subdirectory.
13705 test ! -d "$ac_dir" && mkdir "$ac_dir"
13708 mv conftest.h $ac_file
13713 cat >> $CONFIG_STATUS <<EOF
13715 top_srcdir="$srcdir"
13716 MAKE_SUBDIR="$MAKE_SUBDIR"
13719 cat >> $CONFIG_STATUS <<\EOF
13720 for dir in . $MAKE_SUBDIR; do
13725 sed -e '/^# Generated/d' \
13726 -e 's%/\*\*/#.*%%' \
13741 echo creating $dir/Makefile
13742 $CPP -I. -I${top_srcdir}/src junk.c \
13743 | sed -e 's/^\#.*//' \
13744 -e 's/^[ ][ ]*$//'\
13746 | sed -n -e '/^..*$/p' \
13752 chmod 444 Makefile.new
13753 mv -f Makefile.new Makefile
13755 echo creating $dir/GNUmakefile
13756 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
13757 | sed -e 's/^\#.*//' \
13758 -e 's/^[ ][ ]*$//'\
13760 | sed -n -e '/^..*$/p' \
13766 chmod 444 Makefile.new
13767 mv -f Makefile.new GNUmakefile
13773 sed < config.status >> lib-src/config.values \
13774 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
13775 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
13776 -e 's/^\([^ ]*\) $/\1 ""/' \
13782 chmod +x $CONFIG_STATUS
13783 rm -fr confdefs* $ac_clean_files
13784 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1