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 infodir='${datadir}/${PROGNAME}-${version}/info'
233 lispdir='${datadir}/${PROGNAME}-${version}/lisp'
234 moduledir='${datadir}/${PROGNAME}-${version}/${configuration}/modules'
235 sitelispdir='${datadir}/xemacs/site-lisp'
236 sitemoduledir='${datadir}/xemacs/site-modules'
237 pkgdir='${datadir}/${PROGNAME}-${version}/lisp'
239 etcdir='${datadir}/${PROGNAME}-${version}/etc'
240 lockdir='${statedir}/${PROGNAME}/lock'
241 archlibdir='${datadir}/${PROGNAME}-${version}/${configuration}'
243 with_site_modules='yes'
248 cpp='' cppflags='' libs='' ldflags=''
253 with_system_malloc='default'
254 with_dlmalloc='default'
267 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
271 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
272 | --no-cr | --no-c) ;;
273 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
274 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
276 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
277 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
281 while test $# != 0; do
284 --no-create|--no-recursion) ;;
288 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
289 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
293 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
294 val="yes" valomitted=yes
299 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
301 case "${valomitted}-${opt}" in yes-without_* )
302 opt=`echo $opt | sed 's/without/with/'`
303 valomitted="no" val="no" ;;
309 with_site_modules | \
358 memory_usage_stats | \
359 with_clash_detection | \
363 y | ye | yes ) val=yes ;;
365 * ) (echo "$progname: Usage error:"
366 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
367 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
369 eval "$opt=\"$val\"" ;;
387 site_runtime_libraries )
388 if test "$valomitted" = "yes" ; then
389 if test "$#" = 0 ; then
390 (echo "$progname: Usage error:"
391 echo " " "The \`--$optname' option requires a value."
392 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
401 with_debug_malloc | use_debug_malloc | \
402 with_system_malloc | use_system_malloc )
404 y | ye | yes ) val=yes ;;
406 d | de | def | defa | defau | defaul | default ) val=default ;;
407 * ) (echo "$progname: Usage error:"
408 echo " " "The \`--$optname' option requires one of these values:
409 \`yes', \`no', or \`default'."
410 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
412 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
417 with_database_berkdb=no
419 with_database_gnudbm=no
420 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
423 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
424 d | db | dbm ) with_database_dbm=yes ;;
425 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
426 * ) (echo "$progname: Usage error:"
427 echo " " "The \`--$optname' option value
428 must be either \`no' or a comma-separated list
429 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
430 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
433 if test "$with_database_dbm" = "yes" -a \
434 "$with_database_gnudbm" = "yes"; then
435 (echo "$progname: Usage error:"
436 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
437 with the \`--$optname' option."
438 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
444 y | ye | yes ) val=native ;;
445 n | no | non | none ) val=no;;
446 na | nat | nati | nativ | native ) val=native ;;
447 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
448 b | bo | bot | both ) val=both;;
449 * ) (echo "$progname: Usage error:"
450 echo " " "The \`--$optname' option must have one of these values:
451 \`native', \`nas', \`both', or \`none'."
452 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
459 y | ye | yes ) val=yes ;;
460 n | no | non | none ) val=no ;;
461 x | xl | xli | xlib ) val=xlib ;;
462 m | mo | mot | moti | motif ) val=motif ;;
463 * ) (echo "$progname: Usage error:"
464 echo " " "The \`--$optname' option must have one of these values:
465 \`motif', \`xlib', \`yes', or \`no'."
466 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
476 * ) (echo "$progname: Usage error:"
477 echo " " "The \`--$optname' option must have one of these values:
478 \`lockf', \`flock', or \`file'."
479 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
486 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
488 n | no | non | none ) new_default=no ;;
489 a | al | all ) new_default=yes ;;
491 extents ) error_check_extents=yes ;;
492 noextents ) error_check_extents=no ;;
494 typecheck ) error_check_typecheck=yes ;;
495 notypecheck ) error_check_typecheck=no ;;
497 bufpos ) error_check_bufpos=yes ;;
498 nobufpos ) error_check_bufpos=no ;;
500 gc ) error_check_gc=yes ;;
501 nogc ) error_check_gc=no ;;
503 malloc ) error_check_malloc=yes ;;
504 nomalloc ) error_check_malloc=no ;;
506 byte_code ) error_check_byte_code=yes ;;
507 nobyte_code ) error_check_byte_code=no ;;
509 * ) bogus_error_check=yes ;;
511 if test "$bogus_error_check" -o \
512 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
513 if test "$error_check_default" = yes ; then
514 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'."
516 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'."
518 (echo "$progname: Usage error:"
519 echo " " "Valid types for the \`--$optname' option are:
521 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
522 elif test -n "$new_default" ; then
523 error_check_extents=$new_default
524 error_check_typecheck=$new_default
525 error_check_bufpos=$new_default
526 error_check_gc=$new_default
527 error_check_malloc=$new_default
528 error_check_byte_code=$new_default
529 new_default= # reset this
536 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
537 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
538 archlibdir | docdir | package_path )
539 if test "$valomitted" = "yes"; then
540 if test "$#" = 0; then
541 (echo "$progname: Usage error:"
542 echo " " "The \`--$optname' option requires a value."
543 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
550 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
551 Defining LISPDIR_USER_DEFINED
553 cat >> confdefs.h <<\EOF
554 #define LISPDIR_USER_DEFINED 1
558 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
559 Defining SITELISPDIR_USER_DEFINED
561 cat >> confdefs.h <<\EOF
562 #define SITELISPDIR_USER_DEFINED 1
566 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
567 Defining MODULEDIR_USER_DEFINED
569 cat >> confdefs.h <<\EOF
570 #define MODULEDIR_USER_DEFINED 1
574 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
575 Defining ETCDIR_USER_DEFINED
577 cat >> confdefs.h <<\EOF
578 #define ETCDIR_USER_DEFINED 1
582 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
583 Defining INFODIR_USER_DEFINED
585 cat >> confdefs.h <<\EOF
586 #define INFODIR_USER_DEFINED 1
590 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
591 Defining INFOPATH_USER_DEFINED
593 cat >> confdefs.h <<\EOF
594 #define INFOPATH_USER_DEFINED 1
598 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
599 Defining PACKAGE_PATH_USER_DEFINED
601 cat >> confdefs.h <<\EOF
602 #define PACKAGE_PATH_USER_DEFINED 1
607 { test "$extra_verbose" = "yes" && cat << \EOF
608 Defining INFODIR_USER_DEFINED
610 cat >> confdefs.h <<\EOF
611 #define INFODIR_USER_DEFINED 1
615 { test "$extra_verbose" = "yes" && cat << \EOF
616 Defining LISPDIR_USER_DEFINED
618 cat >> confdefs.h <<\EOF
619 #define LISPDIR_USER_DEFINED 1
623 { test "$extra_verbose" = "yes" && cat << \EOF
624 Defining MODULEDIR_USER_DEFINED
626 cat >> confdefs.h <<\EOF
627 #define MODULEDIR_USER_DEFINED 1
631 { test "$extra_verbose" = "yes" && cat << \EOF
632 Defining ETCDIR_USER_DEFINED
634 cat >> confdefs.h <<\EOF
635 #define ETCDIR_USER_DEFINED 1
639 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
640 Defining LOCKDIR_USER_DEFINED
642 cat >> confdefs.h <<\EOF
643 #define LOCKDIR_USER_DEFINED 1
647 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
648 Defining ARCHLIBDIR_USER_DEFINED
650 cat >> confdefs.h <<\EOF
651 #define ARCHLIBDIR_USER_DEFINED 1
660 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
663 "with_scrollbars" | \
666 l | lu | luc | luci | lucid ) val=lucid ;;
667 m | mo | mot | moti | motif ) val=motif ;;
668 athena3d | athena-3d ) val=athena3d ;;
669 a | at | ath | athe | athen | athena ) val=athena ;;
670 n | no | non | none ) val=no ;;
671 * ) (echo "$progname: Usage error:"
672 echo " " "The \`--$optname' option must have one of these values:
673 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
674 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
681 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
684 * ) (echo "$progname: Usage error:"
685 echo " " "Unrecognized option: $arg"
686 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
691 *-*-*) configuration="$arg" ;;
693 *) (echo "$progname: Usage error:"
694 echo " " "Unrecognized argument: $arg"
695 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
701 test -n "$cpp" && CPP="$cpp"
702 test -n "$cppflags" && CPPFLAGS="$cppflags"
703 test -n "$libs" && LIBS="$libs"
704 test -n "$ldflags" && LDFLAGS="$ldflags"
706 eval set x "$quoted_arguments"; shift
708 test "$extra_verbose" = "yes" && verbose=yes
710 test -n "$with_x" && with_x11="$with_x"
712 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
713 test "$with_system_malloc" = "default" && with_system_malloc=yes
718 if test "$with_cde $with_tooltalk" = "yes no"; then
719 (echo "$progname: Usage error:"
720 echo " " "--with-cde requires --with-tooltalk"
721 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
722 elif test "$with_tooltalk" = "no" ; then with_cde=no
723 elif test "$with_cde" = "yes"; then with_tooltalk=yes
730 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
731 if test -f "$dir/src/lisp.h" -a \
732 -f "$dir/lisp/version.el" ; then
737 if test -z "$srcdir" ; then
738 (echo "$progname: Usage error:"
739 echo " " "Neither the current directory nor its parent seem to
740 contain the XEmacs sources. If you do not want to build XEmacs in its
741 source tree, you should run \`$progname' in the directory in which
742 you wish to build XEmacs, using the \`--srcdir' option to say where the
743 sources may be found."
744 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
749 if test ! -f "$srcdir/src/lisp.h" -o \
750 ! -f "$srcdir/lisp/version.el" ; then
751 (echo "$progname: Usage error:"
752 echo " " "The directory specified with the \`--srcdir' option,
753 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
754 either run the \`$progname' script at the top of the XEmacs source
755 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
756 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
761 if test -z "$configuration"; then
762 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
763 if test -z "$configuration"; then
764 (echo "$progname: Usage error:"
765 echo " " "XEmacs has not been ported to this host type.
766 Try explicitly specifying the CONFIGURATION when rerunning configure."
767 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
771 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
772 echo "configure:773: checking whether ln -s works" >&5
775 if ln -s X conftestdata 2>/dev/null
778 ac_cv_prog_LN_S="ln -s"
782 LN_S="$ac_cv_prog_LN_S"
783 if test "$ac_cv_prog_LN_S" = "ln -s"; then
784 echo "$ac_t""yes" 1>&6
786 echo "$ac_t""no" 1>&6
790 for dir in lisp etc man info; do
791 if test ! -d "$dir" ; then
792 echo Making symbolic link to "$srcdir/$dir"
793 ${LN_S} "$srcdir/$dir" "$dir"
798 absolute_pwd="`pwd`";
799 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
801 else blddir="$absolute_pwd"; if test -d "/net"; then
802 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
803 blddir=`echo "$blddir" | \
804 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
811 . ) srcdir="$blddir" ;;
812 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
813 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
814 srcdir=`echo "$srcdir" | \
815 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
819 if test `pwd` != `sh -c cd $srcdir && pwd` \
820 && test -f "$srcdir/src/config.h"; then
821 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
822 echo " as a build directory right now; it has been configured in its own"
823 echo " right. To configure in another directory as well, you MUST"
824 echo " use GNU make. If you do not have GNU make, then you must"
825 echo " now do \`make distclean' in $srcdir,"
826 echo " and then run $progname again.") >&2
827 extrasub='/^VPATH[ ]*=/c\
833 vpath %.in $(srcdir)'
836 . "$srcdir/version.sh" || exit 1;
837 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
838 : "${extra_verbose=$beta}"
839 version="${emacs_major_version}.${emacs_minor_version}"
840 { test "$extra_verbose" = "yes" && cat << EOF
841 Defining EMACS_MAJOR_VERSION = $emacs_major_version
843 cat >> confdefs.h <<EOF
844 #define EMACS_MAJOR_VERSION $emacs_major_version
848 { test "$extra_verbose" = "yes" && cat << EOF
849 Defining EMACS_MINOR_VERSION = $emacs_minor_version
851 cat >> confdefs.h <<EOF
852 #define EMACS_MINOR_VERSION $emacs_minor_version
856 if test -n "$emacs_beta_version" ; then
857 if test "$beta" = "yes"; then
858 version="${version}-b${emacs_beta_version}"
859 { test "$extra_verbose" = "yes" && cat << EOF
860 Defining EMACS_BETA_VERSION = $emacs_beta_version
862 cat >> confdefs.h <<EOF
863 #define EMACS_BETA_VERSION $emacs_beta_version
868 version="${version}.${emacs_beta_version}"
869 { test "$extra_verbose" = "yes" && cat << EOF
870 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
872 cat >> confdefs.h <<EOF
873 #define EMACS_PATCH_LEVEL $emacs_beta_version
879 { test "$extra_verbose" = "yes" && cat << EOF
880 Defining XEMACS_CODENAME = "$xemacs_codename"
882 cat >> confdefs.h <<EOF
883 #define XEMACS_CODENAME "$xemacs_codename"
887 { test "$extra_verbose" = "yes" && cat << EOF
888 Defining EMACS_VERSION = "$version"
890 cat >> confdefs.h <<EOF
891 #define EMACS_VERSION "$version"
896 if test "$with_infodock" = "yes"; then
897 if test ! -f ../ID-INSTALL; then
898 echo "Cannot build InfoDock without InfoDock sources"
903 if test "$with_infodock" = "yes"; then
904 { test "$extra_verbose" = "yes" && cat << EOF
905 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
907 cat >> confdefs.h <<EOF
908 #define INFODOCK_MAJOR_VERSION $infodock_major_version
912 { test "$extra_verbose" = "yes" && cat << EOF
913 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
915 cat >> confdefs.h <<EOF
916 #define INFODOCK_MINOR_VERSION $infodock_minor_version
920 { test "$extra_verbose" = "yes" && cat << EOF
921 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
923 cat >> confdefs.h <<EOF
924 #define INFODOCK_BUILD_VERSION $infodock_build_version
928 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
930 CPPFLAGS="$CPPFLAGS -DINFODOCK"
935 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
936 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
937 Defining ERROR_CHECK_EXTENTS
939 cat >> confdefs.h <<\EOF
940 #define ERROR_CHECK_EXTENTS 1
944 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
945 Defining ERROR_CHECK_TYPECHECK
947 cat >> confdefs.h <<\EOF
948 #define ERROR_CHECK_TYPECHECK 1
952 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
953 Defining ERROR_CHECK_BUFPOS
955 cat >> confdefs.h <<\EOF
956 #define ERROR_CHECK_BUFPOS 1
960 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
961 Defining ERROR_CHECK_GC
963 cat >> confdefs.h <<\EOF
964 #define ERROR_CHECK_GC 1
968 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
969 Defining ERROR_CHECK_MALLOC
971 cat >> confdefs.h <<\EOF
972 #define ERROR_CHECK_MALLOC 1
976 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
977 Defining ERROR_CHECK_BYTE_CODE
979 cat >> confdefs.h <<\EOF
980 #define ERROR_CHECK_BYTE_CODE 1
984 if test "${debug:=$beta}" = "yes"; then
985 use_assertions=yes memory_usage_stats=yes
986 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
987 echo " xemacs will be linked with \"debug.o\""
989 { test "$extra_verbose" = "yes" && cat << \EOF
990 Defining DEBUG_XEMACS
992 cat >> confdefs.h <<\EOF
993 #define DEBUG_XEMACS 1
998 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
999 Defining USE_ASSERTIONS
1001 cat >> confdefs.h <<\EOF
1002 #define USE_ASSERTIONS 1
1006 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1007 Defining MEMORY_USAGE_STATS
1009 cat >> confdefs.h <<\EOF
1010 #define MEMORY_USAGE_STATS 1
1016 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1017 echo "configure:1018: checking "host system type"" >&5
1018 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1019 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1020 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1021 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1022 echo "$ac_t""$configuration" 1>&6
1030 case "$canonical" in
1031 sparc-*-* ) machine=sparc ;;
1032 alpha*-*-* ) machine=alpha ;;
1033 vax-*-* ) machine=vax ;;
1034 mips-dec-* ) machine=pmax ;;
1035 mips-sgi-* ) machine=iris4d ;;
1036 romp-ibm-* ) machine=ibmrt ;;
1037 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1038 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1039 powerpc*-* ) machine=powerpc ;;
1040 hppa-*-* ) machine=hp800 ;;
1041 m88k-dg-* ) machine=aviion ;;
1042 m68*-sony-* ) machine=news ;;
1043 mips-sony-* ) machine=news-risc ;;
1044 clipper-* ) machine=clipper ;;
1045 arm-* ) machine=arm ;;
1046 ns32k-* ) machine=ns32000 ;;
1049 case "$canonical" in
1050 *-*-linux* ) opsys=linux ;;
1051 *-*-netbsd* ) opsys=netbsd ;;
1052 *-*-openbsd* ) opsys=openbsd ;;
1053 *-*-nextstep* ) opsys=nextstep ;;
1054 *-*-vms ) opsys=vms ;;
1056 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1057 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1058 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1059 *-dec-osf3* ) opsys=decosf3-1 ;;
1060 *-dec-osf4* ) opsys=decosf4-0 ;;
1062 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1063 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1064 *-*-ultrix* ) opsys=ultrix4-3 ;;
1066 *-*-aix3.1* ) opsys=aix3-1 ;;
1067 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1068 *-*-aix3* ) opsys=aix3-2 ;;
1069 *-*-aix4.0* ) opsys=aix4 ;;
1070 *-*-aix4.1* ) opsys=aix4-1 ;;
1071 *-*-aix4* ) opsys=aix4-2 ;;
1073 *-gnu* ) opsys=gnu ;;
1074 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1075 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1076 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1077 *-*-aos4.2 ) opsys=bsd4-2 ;;
1078 *-*-aos* ) opsys=bsd4-3 ;;
1079 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1080 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1081 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1082 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1083 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1084 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1085 if test -z "$NON_GNU_CPP" ; then
1086 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1087 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1091 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1092 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1095 case "$canonical" in
1098 case "$canonical" in
1099 i[3-9]86-*-netbsd*) machine=intel386 ;;
1100 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1101 machine=hp9000s300 ;;
1102 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1103 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1108 case "${canonical}" in
1109 i386-*-openbsd*) machine=intel386 ;;
1110 m68k-*-openbsd*) machine=hp9000s300 ;;
1111 mipsel-*-openbsd*) machine=pmax ;;
1115 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1116 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1118 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1119 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1121 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1123 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1125 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1127 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1129 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1131 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1132 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1133 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1136 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1138 *-convex-bsd* | *-convex-convexos* )
1139 machine=convex opsys=bsd4-3
1140 NON_GNU_CPP="cc -E -P"
1143 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1145 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1146 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1147 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1148 m88k-dg-dgux* ) opsys=dgux ;;
1150 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1151 m88k-motorola-sysv4* )
1152 machine=delta88k opsys=usg5-4-2
1154 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1156 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1157 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1159 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1161 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1162 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1163 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1166 case "`uname -r`" in
1167 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1168 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1170 NON_GNU_CPP="/lib/cpp"
1172 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1173 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1175 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1177 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1180 case "$canonical" in
1181 m68* ) machine=hp9000s300 ;;
1182 hppa* ) machine=hp800 ;;
1185 case "$canonical" in
1186 *-hp-hpux7* ) opsys=hpux ;;
1187 *-hp-hpux8* ) opsys=hpux8 ;;
1188 *-hp-hpux9* ) opsys=hpux9 ;;
1189 *-hp-hpux10* ) opsys=hpux10 ;;
1190 *-hp-hpux11* ) opsys=hpux11 ;;
1194 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1195 echo " xemacs will be linked with \"strcat.o\""
1198 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1199 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1200 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1202 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1205 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1206 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1208 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1209 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1210 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1211 romp-ibm-aos* ) opsys=bsd4-3 ;;
1212 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1213 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1215 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1216 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1218 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1220 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1222 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1224 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1226 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1228 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1230 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1232 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1234 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1236 mips-mips-usg* ) machine=mips4 ;;
1239 NON_GNU_CC="cc -systype bsd43"
1240 NON_GNU_CPP="cc -systype bsd43 -E"
1241 case "$canonical" in
1242 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1243 mips-mips-riscos5* ) opsys=riscos5 ;;
1246 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1247 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1249 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1251 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1253 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1254 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1256 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1258 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1260 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1262 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1264 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1265 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1267 mips-siemens-sysv* | mips-sni-sysv*)
1268 machine=mips-siemens opsys=usg5-4
1269 NON_GNU_CC=/usr/ccs/bin/cc
1270 NON_GNU_CPP=/usr/ccs/lib/cpp
1275 NON_GNU_CC=/usr/ccs/bin/cc
1276 NON_GNU_CPP=/usr/ccs/lib/cpp
1279 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1280 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1281 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1282 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1283 mips-sgi-irix6* ) opsys=irix6-0 ;;
1284 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1285 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1286 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1287 mips-sgi-irix* ) opsys=irix5-0 ;;
1289 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1290 *-sony-news* ) opsys=newsos5 ;;
1292 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1294 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1295 case "$canonical" in
1296 m68*-sunos1* ) machine=sun1 ;;
1297 m68*-sunos2* ) machine=sun2 ;;
1298 m68* ) machine=sun3 ;;
1299 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1300 i*86-*-* ) machine=intel386 ;;
1301 rs6000* ) machine=rs6000 ;;
1304 case "$canonical" in *-sunos5*)
1305 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1308 case "$canonical" in
1310 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1313 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1317 case "$canonical" in
1320 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1321 { test "$extra_verbose" = "yes" && cat << EOF
1322 Defining OS_RELEASE = $os_release
1324 cat >> confdefs.h <<EOF
1325 #define OS_RELEASE $os_release
1330 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1331 *-sunos4.0* ) opsys=sunos4-0 ;;
1332 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1333 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1334 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1335 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1336 *-mach* ) opsys=mach-bsd4-3 ;;
1340 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1342 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1345 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1347 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1348 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1350 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1352 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1354 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1355 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1357 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1359 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1362 case "$canonical" in
1363 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1364 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1365 *-mach* ) opsys=mach-bsd4-3 ;;
1369 ns16k-whitechapel-* ) machine=mg1 ;;
1371 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1375 case "$canonical" in
1376 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1377 *-isc2.2* ) opsys=isc2-2 ;;
1378 *-isc4.0* ) opsys=isc4-0 ;;
1379 *-isc4.* ) opsys=isc4-1
1380 GCC_TEST_OPTIONS=-posix
1381 NON_GCC_TEST_OPTIONS=-Xp
1383 *-isc* ) opsys=isc3-0 ;;
1384 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1385 *-esix* ) opsys=esix ;;
1386 *-mach* ) opsys=mach-bsd4-3 ;;
1387 *-xenix* ) opsys=xenix ;;
1388 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1389 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1390 *-bsdi4* ) opsys=bsdos4 ;;
1391 *-bsdi3* ) opsys=bsdos3 ;;
1392 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1393 *-bsdi2* ) opsys=bsdos2 ;;
1394 *-sco3.2v5* ) opsys=sco5 ;
1395 if test "$dynamic" = "yes" ; then
1396 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1398 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1400 *-386bsd* ) opsys=386bsd ;;
1401 *-freebsd* ) opsys=freebsd ;;
1402 *-nextstep* ) opsys=nextstep ;;
1403 *-pc-cygwin* ) opsys=cygwin32 ;;
1404 *-pc-mingw* ) opsys=mingw32 ;
1405 test -z "$with_tty" && with_tty="no";;
1409 m68k-*-linux* ) machine=m68k opsys=linux ;;
1413 if test -z "$machine" -o -z "$opsys"; then
1414 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1415 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1420 if test -z "$dynamic"; then
1422 hpux* | sunos4* ) dynamic=no ;;
1426 if test "$dynamic" = "yes"; then
1428 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1429 decosf* ) ld_call_shared="-call_shared" ;;
1431 else case "$opsys" in
1433 echo "Static linking is not supported on Solaris 2."
1434 echo "Rerun configure without specifying --dynamic=no."
1436 linux ) ld_call_shared="-Bstatic" ;;
1437 decosf* ) ld_call_shared="-non_shared" ;;
1441 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1443 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1444 { test "$extra_verbose" = "yes" && cat << EOF
1445 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1447 cat >> confdefs.h <<EOF
1448 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1453 machfile="m/${machine}.h"
1454 opsysfile="s/${opsys}.h"
1457 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1458 if test "$with_workshop $with_tooltalk" = "yes no"; then
1459 (echo "$progname: Usage error:"
1460 echo " " "--with-workshop requires --with-tooltalk"
1461 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1462 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1463 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1466 if test "$with_workshop" = "yes"; then
1467 { test "$extra_verbose" = "yes" && cat << \EOF
1470 cat >> confdefs.h <<\EOF
1475 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1476 echo " xemacs will be linked with \"sunpro.o\""
1480 if test "$with_clash_detection" = "yes"; then
1481 { test "$extra_verbose" = "yes" && cat << \EOF
1482 Defining CLASH_DETECTION
1484 cat >> confdefs.h <<\EOF
1485 #define CLASH_DETECTION 1
1489 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1490 echo " xemacs will be linked with \"filelock.o\""
1494 test -n "$compiler" && CC="$compiler"
1495 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1498 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1499 if test "${CFLAGS-unset}" != unset
1500 then cflags_specified=yes;
1501 else cflags_specified=no;
1504 xe_save_CFLAGS="$CFLAGS"
1506 # Extract the first word of "gcc", so it can be a program name with args.
1507 set dummy gcc; ac_word=$2
1508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1509 echo "configure:1510: checking for $ac_word" >&5
1511 if test -n "$CC"; then
1512 ac_cv_prog_CC="$CC" # Let the user override the test.
1514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1516 for ac_dir in $ac_dummy; do
1517 test -z "$ac_dir" && ac_dir=.
1518 if test -f $ac_dir/$ac_word; then
1526 if test -n "$CC"; then
1527 echo "$ac_t""$CC" 1>&6
1529 echo "$ac_t""no" 1>&6
1532 if test -z "$CC"; then
1533 # Extract the first word of "cc", so it can be a program name with args.
1534 set dummy cc; ac_word=$2
1535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1536 echo "configure:1537: checking for $ac_word" >&5
1538 if test -n "$CC"; then
1539 ac_cv_prog_CC="$CC" # Let the user override the test.
1541 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1544 for ac_dir in $ac_dummy; do
1545 test -z "$ac_dir" && ac_dir=.
1546 if test -f $ac_dir/$ac_word; then
1547 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1548 ac_prog_rejected=yes
1556 if test $ac_prog_rejected = yes; then
1557 # We found a bogon in the path, so make sure we never use it.
1558 set dummy $ac_cv_prog_CC
1560 if test $# -gt 0; then
1561 # We chose a different compiler from the bogus one.
1562 # However, it has the same basename, so the bogon will be chosen
1563 # first if we set CC to just the basename; use the full file name.
1565 set dummy "$ac_dir/$ac_word" "$@"
1572 if test -n "$CC"; then
1573 echo "$ac_t""$CC" 1>&6
1575 echo "$ac_t""no" 1>&6
1578 if test -z "$CC"; then
1579 case "`uname -s`" in
1581 # Extract the first word of "cl", so it can be a program name with args.
1582 set dummy cl; ac_word=$2
1583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1584 echo "configure:1585: checking for $ac_word" >&5
1586 if test -n "$CC"; then
1587 ac_cv_prog_CC="$CC" # Let the user override the test.
1589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1591 for ac_dir in $ac_dummy; do
1592 test -z "$ac_dir" && ac_dir=.
1593 if test -f $ac_dir/$ac_word; then
1601 if test -n "$CC"; then
1602 echo "$ac_t""$CC" 1>&6
1604 echo "$ac_t""no" 1>&6
1609 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1612 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1613 echo "configure:1614: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1616 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1617 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1618 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1619 ac_cpp='$CPP '"$xe_cppflags"
1620 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1621 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1624 cat > conftest.$ac_ext << EOF
1626 #line 1627 "configure"
1627 #include "confdefs.h"
1631 if { (eval echo configure:1632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1632 ac_cv_prog_cc_works=yes
1633 # If we can't run a trivial program, we are probably using a cross compiler.
1634 if (./conftest; exit) 2>/dev/null; then
1635 ac_cv_prog_cc_cross=no
1637 ac_cv_prog_cc_cross=yes
1640 echo "configure: failed program was:" >&5
1641 cat conftest.$ac_ext >&5
1642 ac_cv_prog_cc_works=no
1646 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1647 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1648 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1649 ac_cpp='$CPP '"$xe_cppflags"
1650 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1651 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1654 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1655 if test $ac_cv_prog_cc_works = no; then
1656 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1658 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1659 echo "configure:1660: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1660 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1661 cross_compiling=$ac_cv_prog_cc_cross
1663 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1664 echo "configure:1665: checking whether we are using GNU C" >&5
1666 cat > conftest.c <<EOF
1671 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1677 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1679 if test $ac_cv_prog_gcc = yes; then
1685 ac_test_CFLAGS="${CFLAGS+set}"
1686 ac_save_CFLAGS="$CFLAGS"
1688 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1689 echo "configure:1690: checking whether ${CC-cc} accepts -g" >&5
1691 echo 'void f(){}' > conftest.c
1692 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1700 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1701 if test "$ac_test_CFLAGS" = set; then
1702 CFLAGS="$ac_save_CFLAGS"
1703 elif test $ac_cv_prog_cc_g = yes; then
1704 if test "$GCC" = yes; then
1710 if test "$GCC" = yes; then
1717 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1719 # Extract the first word of "gcc", so it can be a program name with args.
1720 set dummy gcc; ac_word=$2
1721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1722 echo "configure:1723: checking for $ac_word" >&5
1724 if test -n "$CC"; then
1725 ac_cv_prog_CC="$CC" # Let the user override the test.
1727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1729 for ac_dir in $ac_dummy; do
1730 test -z "$ac_dir" && ac_dir=.
1731 if test -f $ac_dir/$ac_word; then
1739 if test -n "$CC"; then
1740 echo "$ac_t""$CC" 1>&6
1742 echo "$ac_t""no" 1>&6
1745 if test -z "$CC"; then
1746 # Extract the first word of "cc", so it can be a program name with args.
1747 set dummy cc; ac_word=$2
1748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1749 echo "configure:1750: checking for $ac_word" >&5
1751 if test -n "$CC"; then
1752 ac_cv_prog_CC="$CC" # Let the user override the test.
1754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1757 for ac_dir in $ac_dummy; do
1758 test -z "$ac_dir" && ac_dir=.
1759 if test -f $ac_dir/$ac_word; then
1760 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1761 ac_prog_rejected=yes
1769 if test $ac_prog_rejected = yes; then
1770 # We found a bogon in the path, so make sure we never use it.
1771 set dummy $ac_cv_prog_CC
1773 if test $# -gt 0; then
1774 # We chose a different compiler from the bogus one.
1775 # However, it has the same basename, so the bogon will be chosen
1776 # first if we set CC to just the basename; use the full file name.
1778 set dummy "$ac_dir/$ac_word" "$@"
1785 if test -n "$CC"; then
1786 echo "$ac_t""$CC" 1>&6
1788 echo "$ac_t""no" 1>&6
1791 if test -z "$CC"; then
1792 case "`uname -s`" in
1794 # Extract the first word of "cl", so it can be a program name with args.
1795 set dummy cl; ac_word=$2
1796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1797 echo "configure:1798: checking for $ac_word" >&5
1799 if test -n "$CC"; then
1800 ac_cv_prog_CC="$CC" # Let the user override the test.
1802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1804 for ac_dir in $ac_dummy; do
1805 test -z "$ac_dir" && ac_dir=.
1806 if test -f $ac_dir/$ac_word; then
1814 if test -n "$CC"; then
1815 echo "$ac_t""$CC" 1>&6
1817 echo "$ac_t""no" 1>&6
1822 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1825 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1826 echo "configure:1827: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1829 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1830 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1831 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1832 ac_cpp='$CPP '"$xe_cppflags"
1833 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1834 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1837 cat > conftest.$ac_ext << EOF
1839 #line 1840 "configure"
1840 #include "confdefs.h"
1844 if { (eval echo configure:1845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1845 ac_cv_prog_cc_works=yes
1846 # If we can't run a trivial program, we are probably using a cross compiler.
1847 if (./conftest; exit) 2>/dev/null; then
1848 ac_cv_prog_cc_cross=no
1850 ac_cv_prog_cc_cross=yes
1853 echo "configure: failed program was:" >&5
1854 cat conftest.$ac_ext >&5
1855 ac_cv_prog_cc_works=no
1859 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1860 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1861 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1862 ac_cpp='$CPP '"$xe_cppflags"
1863 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1864 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1867 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1868 if test $ac_cv_prog_cc_works = no; then
1869 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1871 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1872 echo "configure:1873: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1873 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1874 cross_compiling=$ac_cv_prog_cc_cross
1876 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1877 echo "configure:1878: checking whether we are using GNU C" >&5
1879 cat > conftest.c <<EOF
1884 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1890 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1892 if test $ac_cv_prog_gcc = yes; then
1898 ac_test_CFLAGS="${CFLAGS+set}"
1899 ac_save_CFLAGS="$CFLAGS"
1901 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1902 echo "configure:1903: checking whether ${CC-cc} accepts -g" >&5
1904 echo 'void f(){}' > conftest.c
1905 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1913 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1914 if test "$ac_test_CFLAGS" = set; then
1915 CFLAGS="$ac_save_CFLAGS"
1916 elif test $ac_cv_prog_cc_g = yes; then
1917 if test "$GCC" = yes; then
1923 if test "$GCC" = yes; then
1930 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1932 # Extract the first word of "gcc", so it can be a program name with args.
1933 set dummy gcc; ac_word=$2
1934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1935 echo "configure:1936: checking for $ac_word" >&5
1937 if test -n "$CC"; then
1938 ac_cv_prog_CC="$CC" # Let the user override the test.
1940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1942 for ac_dir in $ac_dummy; do
1943 test -z "$ac_dir" && ac_dir=.
1944 if test -f $ac_dir/$ac_word; then
1952 if test -n "$CC"; then
1953 echo "$ac_t""$CC" 1>&6
1955 echo "$ac_t""no" 1>&6
1958 if test -z "$CC"; then
1959 # Extract the first word of "cc", so it can be a program name with args.
1960 set dummy cc; ac_word=$2
1961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1962 echo "configure:1963: checking for $ac_word" >&5
1964 if test -n "$CC"; then
1965 ac_cv_prog_CC="$CC" # Let the user override the test.
1967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1970 for ac_dir in $ac_dummy; do
1971 test -z "$ac_dir" && ac_dir=.
1972 if test -f $ac_dir/$ac_word; then
1973 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1974 ac_prog_rejected=yes
1982 if test $ac_prog_rejected = yes; then
1983 # We found a bogon in the path, so make sure we never use it.
1984 set dummy $ac_cv_prog_CC
1986 if test $# -gt 0; then
1987 # We chose a different compiler from the bogus one.
1988 # However, it has the same basename, so the bogon will be chosen
1989 # first if we set CC to just the basename; use the full file name.
1991 set dummy "$ac_dir/$ac_word" "$@"
1998 if test -n "$CC"; then
1999 echo "$ac_t""$CC" 1>&6
2001 echo "$ac_t""no" 1>&6
2004 if test -z "$CC"; then
2005 case "`uname -s`" in
2007 # Extract the first word of "cl", so it can be a program name with args.
2008 set dummy cl; ac_word=$2
2009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2010 echo "configure:2011: checking for $ac_word" >&5
2012 if test -n "$CC"; then
2013 ac_cv_prog_CC="$CC" # Let the user override the test.
2015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2017 for ac_dir in $ac_dummy; do
2018 test -z "$ac_dir" && ac_dir=.
2019 if test -f $ac_dir/$ac_word; then
2027 if test -n "$CC"; then
2028 echo "$ac_t""$CC" 1>&6
2030 echo "$ac_t""no" 1>&6
2035 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2038 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2039 echo "configure:2040: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2042 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2043 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2044 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2045 ac_cpp='$CPP '"$xe_cppflags"
2046 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2047 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2050 cat > conftest.$ac_ext << EOF
2052 #line 2053 "configure"
2053 #include "confdefs.h"
2057 if { (eval echo configure:2058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2058 ac_cv_prog_cc_works=yes
2059 # If we can't run a trivial program, we are probably using a cross compiler.
2060 if (./conftest; exit) 2>/dev/null; then
2061 ac_cv_prog_cc_cross=no
2063 ac_cv_prog_cc_cross=yes
2066 echo "configure: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2068 ac_cv_prog_cc_works=no
2072 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2073 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2074 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2075 ac_cpp='$CPP '"$xe_cppflags"
2076 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2077 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2080 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2081 if test $ac_cv_prog_cc_works = no; then
2082 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2084 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2085 echo "configure:2086: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2086 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2087 cross_compiling=$ac_cv_prog_cc_cross
2089 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2090 echo "configure:2091: checking whether we are using GNU C" >&5
2092 cat > conftest.c <<EOF
2097 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2103 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2105 if test $ac_cv_prog_gcc = yes; then
2111 ac_test_CFLAGS="${CFLAGS+set}"
2112 ac_save_CFLAGS="$CFLAGS"
2114 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2115 echo "configure:2116: checking whether ${CC-cc} accepts -g" >&5
2117 echo 'void f(){}' > conftest.c
2118 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2126 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2127 if test "$ac_test_CFLAGS" = set; then
2128 CFLAGS="$ac_save_CFLAGS"
2129 elif test $ac_cv_prog_cc_g = yes; then
2130 if test "$GCC" = yes; then
2136 if test "$GCC" = yes; then
2144 CFLAGS="$xe_save_CFLAGS"
2147 test -n "$CPP" -a -d "$CPP" && CPP=
2149 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2151 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2152 echo "configure:2153: checking how to run the C preprocessor" >&5
2153 # On Suns, sometimes $CPP names a directory.
2154 if test -n "$CPP" && test -d "$CPP"; then
2157 if test -z "$CPP"; then
2159 # This must be in double quotes, not single quotes, because CPP may get
2160 # substituted into the Makefile and "${CC-cc}" will confuse make.
2162 # On the NeXT, cc -E runs the code through the compiler's parser,
2163 # not just through cpp.
2164 cat > conftest.$ac_ext <<EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2171 { (eval echo configure:2172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2173 if test -z "$ac_err"; then
2177 echo "configure: failed program was:" >&5
2178 cat conftest.$ac_ext >&5
2180 CPP="${CC-cc} -E -traditional-cpp"
2181 cat > conftest.$ac_ext <<EOF
2182 #line 2183 "configure"
2183 #include "confdefs.h"
2187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2188 { (eval echo configure:2189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2190 if test -z "$ac_err"; then
2194 echo "configure: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2197 CPP="${CC-cc} -nologo -E"
2198 cat > conftest.$ac_ext <<EOF
2199 #line 2200 "configure"
2200 #include "confdefs.h"
2204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2205 { (eval echo configure:2206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2207 if test -z "$ac_err"; then
2211 echo "configure: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2221 ac_cv_prog_CPP="$CPP"
2222 CPP="$ac_cv_prog_CPP"
2224 ac_cv_prog_CPP="$CPP"
2226 echo "$ac_t""$CPP" 1>&6
2229 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2230 echo "configure:2231: checking for AIX" >&5
2231 cat > conftest.$ac_ext <<EOF
2232 #line 2233 "configure"
2233 #include "confdefs.h"
2239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2240 egrep "yes" >/dev/null 2>&1; then
2242 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2243 Defining _ALL_SOURCE
2245 cat >> confdefs.h <<\EOF
2246 #define _ALL_SOURCE 1
2252 echo "$ac_t""no" 1>&6
2258 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2259 echo "configure:2260: checking for GNU libc" >&5
2260 cat > conftest.$ac_ext <<EOF
2261 #line 2262 "configure"
2262 #include "confdefs.h"
2263 #include <features.h>
2266 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2267 #error Not a GNU libc system :-(
2268 ******* ======= ******** &&&&&&&&
2273 if { (eval echo configure:2274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2277 echo "configure: failed program was:" >&5
2278 cat conftest.$ac_ext >&5
2283 echo "$ac_t""$have_glibc" 1>&6
2284 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2285 Defining _GNU_SOURCE
2287 cat >> confdefs.h <<\EOF
2288 #define _GNU_SOURCE 1
2294 cat > conftest.$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2298 #if defined __SUNPRO_C
2300 #elif defined __DECC
2307 if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2312 echo "configure: failed program was:" >&5
2313 cat conftest.$ac_ext >&5
2315 case "$conftest_rc" in
2316 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2317 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2325 echo "Extracting information from the machine- and system-dependent headers..."
2327 tempcname="conftest.c"
2331 cat > $tempcname <<EOF
2333 #define C_SWITCH_SITE
2334 #define C_SWITCH_X_SITE
2335 #define LD_SWITCH_SITE
2336 #define LD_SWITCH_X_SITE
2337 #define LD_SWITCH_X_SITE_AUX
2338 #define OS_RELEASE $os_release
2339 #include "$srcdir/src/$opsysfile"
2340 #include "$srcdir/src/$machfile"
2342 #ifndef LIBS_MACHINE
2343 #define LIBS_MACHINE
2345 configure___ libs_machine=LIBS_MACHINE
2350 configure___ libs_system=LIBS_SYSTEM
2352 #ifndef LIBS_TERMCAP
2353 #define LIBS_TERMCAP
2355 configure___ libs_termcap=LIBS_TERMCAP
2357 #ifndef LIB_STANDARD
2358 #define LIB_STANDARD
2360 configure___ libs_standard=LIB_STANDARD
2363 #ifndef OBJECTS_MACHINE
2364 #define OBJECTS_MACHINE
2366 configure___ objects_machine=OBJECTS_MACHINE
2368 #ifndef OBJECTS_SYSTEM
2369 #define OBJECTS_SYSTEM
2371 configure___ objects_system=OBJECTS_SYSTEM
2374 #ifndef C_SWITCH_MACHINE
2375 #define C_SWITCH_MACHINE
2377 configure___ c_switch_machine=C_SWITCH_MACHINE
2379 #ifndef C_SWITCH_SYSTEM
2380 #define C_SWITCH_SYSTEM
2382 configure___ c_switch_system=C_SWITCH_SYSTEM
2385 #ifndef LD_SWITCH_MACHINE
2386 #define LD_SWITCH_MACHINE
2388 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2390 #ifndef LD_SWITCH_SYSTEM
2391 #define LD_SWITCH_SYSTEM
2393 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2397 #define UNEXEC "unexec.o"
2399 configure___ unexec=UNEXEC
2402 #ifndef LD_SWITCH_SHARED
2403 #define LD_SWITCH_SHARED "-c"
2405 configure___ ld_switch_shared=LD_SWITCH_SHARED
2408 #ifdef ORDINARY_LINK
2409 #define LD "\$(CC) \$(CFLAGS)"
2410 #else /* no ORDINARY LINK */
2411 #ifdef COFF_ENCAPSULATE
2412 #define LD "\$(CC) -nostdlib"
2413 #else /* not COFF_ENCAPSULATE */
2416 #else /* ! defined (LINKER) */
2418 #endif /* ! defined (LINKER) */
2419 #endif /* ! defined (COFF_ENCAPSULATE) */
2420 #endif /* not ORDINARY_LINK */
2426 configure___ lib_gcc=LIB_GCC
2428 #ifndef LD_TEXT_START_ADDR
2429 #define LD_TEXT_START_ADDR
2431 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2434 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2436 #ifdef COFF_ENCAPSULATE
2437 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2438 #else /* ! defined (COFF_ENCAPSULATE) */
2439 #define START_FILES "pre-crt0.o /lib/crt0.o"
2440 #endif /* ! defined (COFF_ENCAPSULATE) */
2441 #else /* ! defined (NO_REMAP) */
2442 #define START_FILES "ecrt0.o"
2443 #endif /* ! defined (NO_REMAP) */
2444 #endif /* no ORDINARY_LINK */
2448 configure___ start_files=START_FILES
2450 #ifdef ORDINARY_LINK
2451 configure___ ordinary_link=yes
2453 configure___ ordinary_link=no
2456 #ifdef SYSTEM_MALLOC
2457 configure___ system_malloc=yes
2459 configure___ system_malloc=no
2463 configure___ have_terminfo=yes
2465 configure___ have_terminfo=no
2468 #ifdef MAIL_USE_FLOCK
2469 configure___ mail_use_flock=yes
2471 configure___ mail_use_flock=no
2474 #ifdef MAIL_USE_LOCKF
2475 configure___ mail_use_lockf=yes
2477 configure___ mail_use_lockf=no
2480 #ifdef HAVE_WIN32_PROCESSES
2481 configure___ win32_processes=yes
2483 configure___ win32_processes=no
2488 CPP=`eval "echo $CPP $CPPFLAGS"`
2489 eval `$CPP -Isrc $tempcname \
2490 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2494 test "$extra_verbose" = "yes" && \
2495 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 ""
2497 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2499 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2501 if test "$cflags_specified" = "no"; then
2502 if test "$GCC" = "yes"; then
2503 CFLAGS="-g -O3 -Wall -Wno-switch"
2504 elif test "$__SUNPRO_C" = "yes"; then
2506 sol2 ) CFLAGS="-v -xO4" ;;
2507 sunos4* ) CFLAGS="-xO2";;
2509 elif test "$__DECC" = "yes"; then
2511 elif test "$CC" = "xlc"; then
2512 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2518 if test "$GCC" = "yes"; then
2519 set x $ld_switch_system; shift; ld_switch_system=""
2520 while test -n "$1"; do
2522 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2523 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2525 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2531 if test "$GCC" = "yes"; then
2532 set x $ld_switch_machine; shift; ld_switch_machine=""
2533 while test -n "$1"; do
2535 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2536 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2538 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2544 if test "$GCC" = "yes"; then
2545 set x $LDFLAGS; shift; LDFLAGS=""
2546 while test -n "$1"; do
2548 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2549 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2551 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2557 if test "$GCC" = "yes"; then
2558 set x $ld_call_shared; shift; ld_call_shared=""
2559 while test -n "$1"; do
2561 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2562 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2564 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2570 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2571 echo " xemacs will be linked with \"$objects_machine\""
2573 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2574 echo " xemacs will be linked with \"$objects_system\""
2576 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2577 echo " xemacs will be linked with \"$unexec\""
2580 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2581 echo "configure:2582: checking for dynodump" >&5
2582 if test "$unexec" != "unexsol2.o"; then
2583 echo "$ac_t""no" 1>&6
2585 echo "$ac_t""yes" 1>&6
2586 { test "$extra_verbose" = "yes" && cat << \EOF
2589 cat >> confdefs.h <<\EOF
2594 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2595 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2597 sparc ) dynodump_arch=sparc ;;
2598 *86* ) dynodump_arch=i386 ;;
2599 powerpc ) dynodump_arch=ppc ;;
2601 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
2605 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2607 if test "$unexec" = "unexaix.o"; then
2608 if test "$dynamic" = "no"; then
2609 start_flags="-Wl,-bnso,-bnodelcsect"
2610 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2611 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2612 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2614 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2615 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2618 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2619 echo "configure:2620: checking for terminateAndUnload in -lC" >&5
2620 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2622 xe_check_libs=" -lC "
2623 cat > conftest.$ac_ext <<EOF
2624 #line 2625 "configure"
2625 #include "confdefs.h"
2626 /* Override any gcc2 internal prototype to avoid an error. */
2627 /* We use char because int might match the return type of a gcc2
2628 builtin and then its argument prototype would still apply. */
2629 char terminateAndUnload();
2632 terminateAndUnload()
2635 if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2637 eval "ac_cv_lib_$ac_lib_var=yes"
2639 echo "configure: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2642 eval "ac_cv_lib_$ac_lib_var=no"
2647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2648 echo "$ac_t""yes" 1>&6
2649 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2651 echo "$ac_t""no" 1>&6
2656 elif test -n "$ld_text_start_addr"; then
2657 start_flags="-T $ld_text_start_addr -e __start"
2663 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2664 test -z "$linker" && linker='$(CC) -nostdlib'
2665 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2667 test "$GCC" != "yes" && lib_gcc=
2673 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2674 if test -n "$site_libraries"; then
2675 for arg in $site_libraries; do
2678 * ) test -d "$arg" || \
2679 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2682 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2686 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2687 if test -n "$site_includes"; then
2688 for arg in $site_includes; do
2691 * ) test -d "$arg" || \
2692 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2695 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2699 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2700 if test -n "$site_prefixes"; then
2701 for dir in $site_prefixes; do
2702 lib_dir="${dir}/lib"
2703 inc_dir="${dir}/include"
2704 if test ! -d "$dir"; then
2705 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2706 elif test ! -d "$lib_dir"; then
2707 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2709 if test -d "$inc_dir"; then
2710 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
2712 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
2718 for dir in "/usr/ccs/lib"; do
2719 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
2722 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2723 if test -n "$site_runtime_libraries"; then
2724 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2729 if test "$dynamic" = "no"; then add_runtime_path=no
2730 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2731 else case "$opsys" in
2732 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2733 * ) add_runtime_path=no ;;
2737 if test "$add_runtime_path" = "yes"; then
2738 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2739 echo "configure:2740: checking "for runtime libraries flag"" >&5
2741 sol2 ) dash_r="-R" ;;
2742 decosf* | linux* | irix*) dash_r="-rpath " ;;
2745 for try_dash_r in "-R" "-R " "-rpath "; do
2746 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2748 if test "$GCC" = "yes"; then
2749 set x $xe_check_libs; shift; xe_check_libs=""
2750 while test -n "$1"; do
2752 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2753 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2755 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2760 cat > conftest.$ac_ext <<EOF
2761 #line 2762 "configure"
2762 #include "confdefs.h"
2768 if { (eval echo configure:2769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2770 dash_r="$try_dash_r"
2772 echo "configure: failed program was:" >&5
2773 cat conftest.$ac_ext >&5
2777 test -n "$dash_r" && break
2780 if test -n "$dash_r";
2781 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2782 else echo "$ac_t""NONE" 1>&6
2786 xe_add_unique_runpath_dir='
2788 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2790 if test "$xe_add_p" = "yes"; then
2791 test -n "$runpath" && runpath="${runpath}:"
2792 runpath="${runpath}${xe_runpath_dir}"
2793 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2799 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2800 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2801 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2803 runpath="" runpath_dirs=""
2804 if test -n "$LD_RUN_PATH"; then
2805 runpath="$LD_RUN_PATH"
2806 elif test "$GCC" = "yes"; then
2807 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2808 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2809 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2810 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2811 case "$arg" in P,* | -L* | -R* )
2812 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2814 xe_runpath_dir="$dir"
2815 test "$xe_runpath_dir" != "/lib" -a \
2816 "$xe_runpath_dir" != "/usr/lib" -a \
2817 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2818 eval "$xe_add_unique_runpath_dir"
2823 ld_switch_run="$ld_switch_run_save"
2826 for arg in $ld_switch_site $ld_switch_x_site; do
2827 case "$arg" in -L*) {
2828 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2829 test "$xe_runpath_dir" != "/lib" -a \
2830 "$xe_runpath_dir" != "/usr/lib" -a \
2831 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2832 eval "$xe_add_unique_runpath_dir"
2835 if test "$opsys $need_motif" = "sol2 yes"; then
2836 xe_runpath_dir="/opt/SUNWdt/lib";
2837 eval "$xe_add_unique_runpath_dir";
2840 if test -n "$runpath"; then
2841 ld_switch_run="${dash_r}${runpath}"
2843 if test "$GCC" = "yes"; then
2844 set x $ld_switch_run; shift; ld_switch_run=""
2845 while test -n "$1"; do
2847 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2848 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2850 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2855 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2863 if test "$with_dlmalloc" != "no"; then
2868 after_morecore_hook_exists=yes
2869 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2870 echo "configure:2871: checking for malloc_get_state" >&5
2872 cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2875 /* System header to define __stub macros and hopefully few prototypes,
2876 which can conflict with char malloc_get_state(); below. */
2878 /* Override any gcc2 internal prototype to avoid an error. */
2879 /* We use char because int might match the return type of a gcc2
2880 builtin and then its argument prototype would still apply. */
2881 char malloc_get_state();
2885 /* The GNU C library defines this for functions which it implements
2886 to always fail with ENOSYS. Some functions are actually named
2887 something starting with __ and the normal name is an alias. */
2888 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2896 if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2898 eval "ac_cv_func_malloc_get_state=yes"
2900 echo "configure: failed program was:" >&5
2901 cat conftest.$ac_ext >&5
2903 eval "ac_cv_func_malloc_get_state=no"
2907 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2908 echo "$ac_t""yes" 1>&6
2911 echo "$ac_t""no" 1>&6
2915 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2916 echo "configure:2917: checking for malloc_set_state" >&5
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2921 /* System header to define __stub macros and hopefully few prototypes,
2922 which can conflict with char malloc_set_state(); below. */
2924 /* Override any gcc2 internal prototype to avoid an error. */
2925 /* We use char because int might match the return type of a gcc2
2926 builtin and then its argument prototype would still apply. */
2927 char malloc_set_state();
2931 /* The GNU C library defines this for functions which it implements
2932 to always fail with ENOSYS. Some functions are actually named
2933 something starting with __ and the normal name is an alias. */
2934 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
2942 if { (eval echo configure:2943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2944 eval "ac_cv_func_malloc_set_state=yes"
2946 echo "configure: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2949 eval "ac_cv_func_malloc_set_state=no"
2953 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
2954 echo "$ac_t""yes" 1>&6
2957 echo "$ac_t""no" 1>&6
2961 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2962 echo "configure:2963: checking whether __after_morecore_hook exists" >&5
2963 cat > conftest.$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2966 extern void (* __after_morecore_hook)();
2968 __after_morecore_hook = 0
2971 if { (eval echo configure:2972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2973 echo "$ac_t""yes" 1>&6
2975 echo "configure: failed program was:" >&5
2976 cat conftest.$ac_ext >&5
2978 echo "$ac_t""no" 1>&6
2979 after_morecore_hook_exists=no
2982 if test "$system_malloc" = "yes" ; then
2985 (The GNU allocators don't work with this system configuration)."
2986 elif test "$with_system_malloc" = "yes" ; then
2989 (User chose not to use GNU allocators)."
2990 elif test "$with_debug_malloc" = "yes" ; then
2993 (User chose to use Debugging Malloc)."
2996 if test "$doug_lea_malloc" = "yes" ; then
2997 if test "$GNU_MALLOC" = yes ; then
2999 (Using Doug Lea's new malloc from the GNU C Library.)"
3001 { test "$extra_verbose" = "yes" && cat << \EOF
3002 Defining DOUG_LEA_MALLOC
3004 cat >> confdefs.h <<\EOF
3005 #define DOUG_LEA_MALLOC 1
3009 if test "$after_morecore_hook_exists" = "no" ; then
3011 (Using Doug Lea's new malloc from the Linux C Library.)"
3012 { test "$extra_verbose" = "yes" && cat << \EOF
3013 Defining _NO_MALLOC_WARNING_
3015 cat >> confdefs.h <<\EOF
3016 #define _NO_MALLOC_WARNING_ 1
3021 use_minimal_tagbits=yes
3027 # Extract the first word of "ranlib", so it can be a program name with args.
3028 set dummy ranlib; ac_word=$2
3029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3030 echo "configure:3031: checking for $ac_word" >&5
3032 if test -n "$RANLIB"; then
3033 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3037 for ac_dir in $ac_dummy; do
3038 test -z "$ac_dir" && ac_dir=.
3039 if test -f $ac_dir/$ac_word; then
3040 ac_cv_prog_RANLIB="ranlib"
3045 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3047 RANLIB="$ac_cv_prog_RANLIB"
3048 if test -n "$RANLIB"; then
3049 echo "$ac_t""$RANLIB" 1>&6
3051 echo "$ac_t""no" 1>&6
3055 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3056 if test -f $ac_dir/install-sh; then
3058 ac_install_sh="$ac_aux_dir/install-sh -c"
3060 elif test -f $ac_dir/install.sh; then
3062 ac_install_sh="$ac_aux_dir/install.sh -c"
3066 if test -z "$ac_aux_dir"; then
3067 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3069 ac_config_guess=$ac_aux_dir/config.guess
3070 ac_config_sub=$ac_aux_dir/config.sub
3071 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3073 # Find a good install program. We prefer a C program (faster),
3074 # so one script is as good as another. But avoid the broken or
3075 # incompatible versions:
3076 # SysV /etc/install, /usr/sbin/install
3077 # SunOS /usr/etc/install
3078 # IRIX /sbin/install
3080 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3081 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3082 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3083 # ./install, which can be erroneously created by make from ./install.sh.
3084 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3085 echo "configure:3086: checking for a BSD compatible install" >&5
3086 if test -z "$INSTALL"; then
3088 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3089 for ac_dir in $PATH; do
3090 # Account for people who put trailing slashes in PATH elements.
3092 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3094 # OSF1 and SCO ODT 3.0 have their own names for install.
3095 # Don't use installbsd from OSF since it installs stuff as root
3097 for ac_prog in ginstall scoinst install; do
3098 if test -f $ac_dir/$ac_prog; then
3099 if test $ac_prog = install &&
3100 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3101 # AIX install. It has an incompatible calling convention.
3104 ac_cv_path_install="$ac_dir/$ac_prog -c"
3114 if test "${ac_cv_path_install+set}" = set; then
3115 INSTALL="$ac_cv_path_install"
3117 # As a last resort, use the slow shell script. We don't cache a
3118 # path for INSTALL within a source directory, because that will
3119 # break other packages using the cache if that directory is
3120 # removed, or if the path is relative.
3121 INSTALL="$ac_install_sh"
3124 echo "$ac_t""$INSTALL" 1>&6
3126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3127 # It thinks the first close brace ends the variable substitution.
3128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3134 for ac_prog in 'bison -y' byacc
3136 # Extract the first word of "$ac_prog", so it can be a program name with args.
3137 set dummy $ac_prog; ac_word=$2
3138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3139 echo "configure:3140: checking for $ac_word" >&5
3141 if test -n "$YACC"; then
3142 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3146 for ac_dir in $ac_dummy; do
3147 test -z "$ac_dir" && ac_dir=.
3148 if test -f $ac_dir/$ac_word; then
3149 ac_cv_prog_YACC="$ac_prog"
3155 YACC="$ac_cv_prog_YACC"
3156 if test -n "$YACC"; then
3157 echo "$ac_t""$YACC" 1>&6
3159 echo "$ac_t""no" 1>&6
3162 test -n "$YACC" && break
3164 test -n "$YACC" || YACC="yacc"
3167 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3169 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3171 echo "configure:3172: checking for $ac_hdr" >&5
3173 cat > conftest.$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3179 { (eval echo configure:3180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3181 if test -z "$ac_err"; then
3183 eval "ac_cv_header_$ac_safe=yes"
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3189 eval "ac_cv_header_$ac_safe=no"
3192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3193 echo "$ac_t""yes" 1>&6
3194 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3195 { test "$extra_verbose" = "yes" && cat << EOF
3198 cat >> confdefs.h <<EOF
3199 #define $ac_tr_hdr 1
3204 echo "$ac_t""no" 1>&6
3208 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3210 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3211 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3212 echo "configure:3213: checking for $ac_hdr" >&5
3214 cat > conftest.$ac_ext <<EOF
3215 #line 3216 "configure"
3216 #include "confdefs.h"
3219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3220 { (eval echo configure:3221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3222 if test -z "$ac_err"; then
3224 eval "ac_cv_header_$ac_safe=yes"
3227 echo "configure: failed program was:" >&5
3228 cat conftest.$ac_ext >&5
3230 eval "ac_cv_header_$ac_safe=no"
3233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3234 echo "$ac_t""yes" 1>&6
3235 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3236 { test "$extra_verbose" = "yes" && cat << EOF
3239 cat >> confdefs.h <<EOF
3240 #define $ac_tr_hdr 1
3245 echo "$ac_t""no" 1>&6
3249 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3251 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3252 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3253 echo "configure:3254: checking for $ac_hdr" >&5
3255 cat > conftest.$ac_ext <<EOF
3256 #line 3257 "configure"
3257 #include "confdefs.h"
3260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3261 { (eval echo configure:3262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3263 if test -z "$ac_err"; then
3265 eval "ac_cv_header_$ac_safe=yes"
3268 echo "configure: failed program was:" >&5
3269 cat conftest.$ac_ext >&5
3271 eval "ac_cv_header_$ac_safe=no"
3274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3275 echo "$ac_t""yes" 1>&6
3276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3277 { test "$extra_verbose" = "yes" && cat << EOF
3280 cat >> confdefs.h <<EOF
3281 #define $ac_tr_hdr 1
3286 echo "$ac_t""no" 1>&6
3290 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3291 echo "configure:3292: checking for sys/wait.h that is POSIX.1 compatible" >&5
3293 cat > conftest.$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3296 #include <sys/types.h>
3297 #include <sys/wait.h>
3299 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3302 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3307 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3310 if { (eval echo configure:3311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3312 ac_cv_header_sys_wait_h=yes
3314 echo "configure: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3317 ac_cv_header_sys_wait_h=no
3321 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3322 if test $ac_cv_header_sys_wait_h = yes; then
3323 { test "$extra_verbose" = "yes" && cat << \EOF
3324 Defining HAVE_SYS_WAIT_H
3326 cat >> confdefs.h <<\EOF
3327 #define HAVE_SYS_WAIT_H 1
3333 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3334 echo "configure:3335: checking for ANSI C header files" >&5
3336 cat > conftest.$ac_ext <<EOF
3337 #line 3338 "configure"
3338 #include "confdefs.h"
3344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3345 { (eval echo configure:3346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3347 if test -z "$ac_err"; then
3349 ac_cv_header_stdc=yes
3352 echo "configure: failed program was:" >&5
3353 cat conftest.$ac_ext >&5
3355 ac_cv_header_stdc=no
3359 if test $ac_cv_header_stdc = yes; then
3360 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3361 cat > conftest.$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3367 egrep "memchr" >/dev/null 2>&1; then
3371 ac_cv_header_stdc=no
3377 if test $ac_cv_header_stdc = yes; then
3378 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3379 cat > conftest.$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3385 egrep "free" >/dev/null 2>&1; then
3389 ac_cv_header_stdc=no
3395 if test $ac_cv_header_stdc = yes; then
3396 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3401 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3402 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3404 int main () { int i; for (i = 0; i < 256; i++)
3405 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3409 if { (eval echo configure:3410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3414 echo "configure: failed program was:" >&5
3415 cat conftest.$ac_ext >&5
3417 ac_cv_header_stdc=no
3422 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3423 if test $ac_cv_header_stdc = yes; then
3424 { test "$extra_verbose" = "yes" && cat << \EOF
3425 Defining STDC_HEADERS
3427 cat >> confdefs.h <<\EOF
3428 #define STDC_HEADERS 1
3434 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3435 echo "configure:3436: checking whether time.h and sys/time.h may both be included" >&5
3437 cat > conftest.$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 #include <sys/types.h>
3441 #include <sys/time.h>
3447 if { (eval echo configure:3448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3449 ac_cv_header_time=yes
3451 echo "configure: failed program was:" >&5
3452 cat conftest.$ac_ext >&5
3454 ac_cv_header_time=no
3458 echo "$ac_t""$ac_cv_header_time" 1>&6
3459 if test $ac_cv_header_time = yes; then
3460 { test "$extra_verbose" = "yes" && cat << \EOF
3461 Defining TIME_WITH_SYS_TIME
3463 cat >> confdefs.h <<\EOF
3464 #define TIME_WITH_SYS_TIME 1
3470 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3471 echo "configure:3472: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3473 cat > conftest.$ac_ext <<EOF
3474 #line 3475 "configure"
3475 #include "confdefs.h"
3476 #include <sys/types.h>
3478 /* NetBSD declares sys_siglist in unistd.h. */
3479 #ifdef HAVE_UNISTD_H
3483 char *msg = *(sys_siglist + 1);
3486 if { (eval echo configure:3487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3488 ac_cv_decl_sys_siglist=yes
3490 echo "configure: failed program was:" >&5
3491 cat conftest.$ac_ext >&5
3493 ac_cv_decl_sys_siglist=no
3497 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3498 if test $ac_cv_decl_sys_siglist = yes; then
3499 { test "$extra_verbose" = "yes" && cat << \EOF
3500 Defining SYS_SIGLIST_DECLARED
3502 cat >> confdefs.h <<\EOF
3503 #define SYS_SIGLIST_DECLARED 1
3510 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3511 echo "configure:3512: checking for struct utimbuf" >&5
3512 cat > conftest.$ac_ext <<EOF
3513 #line 3514 "configure"
3514 #include "confdefs.h"
3515 #ifdef TIME_WITH_SYS_TIME
3516 #include <sys/time.h>
3519 #ifdef HAVE_SYS_TIME_H
3520 #include <sys/time.h>
3529 static struct utimbuf x; x.actime = x.modtime;
3532 if { (eval echo configure:3533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3534 echo "$ac_t""yes" 1>&6
3535 { test "$extra_verbose" = "yes" && cat << \EOF
3536 Defining HAVE_STRUCT_UTIMBUF
3538 cat >> confdefs.h <<\EOF
3539 #define HAVE_STRUCT_UTIMBUF 1
3544 echo "configure: failed program was:" >&5
3545 cat conftest.$ac_ext >&5
3547 echo "$ac_t""no" 1>&6
3551 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3552 echo "configure:3553: checking return type of signal handlers" >&5
3554 cat > conftest.$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3557 #include <sys/types.h>
3563 extern "C" void (*signal (int, void (*)(int)))(int);
3565 void (*signal ()) ();
3572 if { (eval echo configure:3573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3574 ac_cv_type_signal=void
3576 echo "configure: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3579 ac_cv_type_signal=int
3583 echo "$ac_t""$ac_cv_type_signal" 1>&6
3584 { test "$extra_verbose" = "yes" && cat << EOF
3585 Defining RETSIGTYPE = $ac_cv_type_signal
3587 cat >> confdefs.h <<EOF
3588 #define RETSIGTYPE $ac_cv_type_signal
3593 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3594 echo "configure:3595: checking for size_t" >&5
3596 cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3599 #include <sys/types.h>
3605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3606 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3608 ac_cv_type_size_t=yes
3611 ac_cv_type_size_t=no
3615 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3616 if test $ac_cv_type_size_t = no; then
3617 { test "$extra_verbose" = "yes" && cat << \EOF
3618 Defining size_t = unsigned
3620 cat >> confdefs.h <<\EOF
3621 #define size_t unsigned
3627 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3628 echo "configure:3629: checking for pid_t" >&5
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 #include <sys/types.h>
3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3642 ac_cv_type_pid_t=yes
3649 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3650 if test $ac_cv_type_pid_t = no; then
3651 { test "$extra_verbose" = "yes" && cat << \EOF
3652 Defining pid_t = int
3654 cat >> confdefs.h <<\EOF
3661 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3662 echo "configure:3663: checking for uid_t in sys/types.h" >&5
3664 cat > conftest.$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3667 #include <sys/types.h>
3669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3670 egrep "uid_t" >/dev/null 2>&1; then
3672 ac_cv_type_uid_t=yes
3680 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3681 if test $ac_cv_type_uid_t = no; then
3682 { test "$extra_verbose" = "yes" && cat << \EOF
3683 Defining uid_t = int
3685 cat >> confdefs.h <<\EOF
3690 { test "$extra_verbose" = "yes" && cat << \EOF
3691 Defining gid_t = int
3693 cat >> confdefs.h <<\EOF
3700 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3701 echo "configure:3702: checking for mode_t" >&5
3703 cat > conftest.$ac_ext <<EOF
3704 #line 3705 "configure"
3705 #include "confdefs.h"
3706 #include <sys/types.h>
3712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3713 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3715 ac_cv_type_mode_t=yes
3718 ac_cv_type_mode_t=no
3722 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3723 if test $ac_cv_type_mode_t = no; then
3724 { test "$extra_verbose" = "yes" && cat << \EOF
3725 Defining mode_t = int
3727 cat >> confdefs.h <<\EOF
3734 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3735 echo "configure:3736: checking for off_t" >&5
3737 cat > conftest.$ac_ext <<EOF
3738 #line 3739 "configure"
3739 #include "confdefs.h"
3740 #include <sys/types.h>
3746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3747 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3749 ac_cv_type_off_t=yes
3756 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3757 if test $ac_cv_type_off_t = no; then
3758 { test "$extra_verbose" = "yes" && cat << \EOF
3759 Defining off_t = long
3761 cat >> confdefs.h <<\EOF
3769 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3770 echo "configure:3771: checking for struct timeval" >&5
3771 cat > conftest.$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3774 #ifdef TIME_WITH_SYS_TIME
3775 #include <sys/time.h>
3778 #ifdef HAVE_SYS_TIME_H
3779 #include <sys/time.h>
3785 static struct timeval x; x.tv_sec = x.tv_usec;
3788 if { (eval echo configure:3789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3790 echo "$ac_t""yes" 1>&6
3792 { test "$extra_verbose" = "yes" && cat << \EOF
3793 Defining HAVE_TIMEVAL
3795 cat >> confdefs.h <<\EOF
3796 #define HAVE_TIMEVAL 1
3801 echo "configure: failed program was:" >&5
3802 cat conftest.$ac_ext >&5
3804 echo "$ac_t""no" 1>&6
3809 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3810 echo "configure:3811: checking whether struct tm is in sys/time.h or time.h" >&5
3812 cat > conftest.$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3815 #include <sys/types.h>
3818 struct tm *tp; tp->tm_sec;
3821 if { (eval echo configure:3822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3823 ac_cv_struct_tm=time.h
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3828 ac_cv_struct_tm=sys/time.h
3832 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3833 if test $ac_cv_struct_tm = sys/time.h; then
3834 { test "$extra_verbose" = "yes" && cat << \EOF
3835 Defining TM_IN_SYS_TIME
3837 cat >> confdefs.h <<\EOF
3838 #define TM_IN_SYS_TIME 1
3844 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3845 echo "configure:3846: checking for tm_zone in struct tm" >&5
3847 cat > conftest.$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3850 #include <sys/types.h>
3851 #include <$ac_cv_struct_tm>
3853 struct tm tm; tm.tm_zone;
3856 if { (eval echo configure:3857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3858 ac_cv_struct_tm_zone=yes
3860 echo "configure: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3863 ac_cv_struct_tm_zone=no
3867 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3868 if test "$ac_cv_struct_tm_zone" = yes; then
3869 { test "$extra_verbose" = "yes" && cat << \EOF
3870 Defining HAVE_TM_ZONE
3872 cat >> confdefs.h <<\EOF
3873 #define HAVE_TM_ZONE 1
3878 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3879 echo "configure:3880: checking for tzname" >&5
3881 cat > conftest.$ac_ext <<EOF
3882 #line 3883 "configure"
3883 #include "confdefs.h"
3885 #ifndef tzname /* For SGI. */
3886 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3892 if { (eval echo configure:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3894 ac_cv_var_tzname=yes
3896 echo "configure: failed program was:" >&5
3897 cat conftest.$ac_ext >&5
3903 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3904 if test $ac_cv_var_tzname = yes; then
3905 { test "$extra_verbose" = "yes" && cat << \EOF
3906 Defining HAVE_TZNAME
3908 cat >> confdefs.h <<\EOF
3909 #define HAVE_TZNAME 1
3917 echo $ac_n "checking for working const""... $ac_c" 1>&6
3918 echo "configure:3919: checking for working const" >&5
3920 cat > conftest.$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3926 /* Ultrix mips cc rejects this. */
3927 typedef int charset[2]; const charset x;
3928 /* SunOS 4.1.1 cc rejects this. */
3929 char const *const *ccp;
3931 /* NEC SVR4.0.2 mips cc rejects this. */
3932 struct point {int x, y;};
3933 static struct point const zero = {0,0};
3934 /* AIX XL C 1.02.0.0 rejects this.
3935 It does not let you subtract one const X* pointer from another in an arm
3936 of an if-expression whose if-part is not a constant expression */
3937 const char *g = "string";
3938 ccp = &g + (g ? g-g : 0);
3939 /* HPUX 7.0 cc rejects these. */
3942 ccp = (char const *const *) p;
3943 { /* SCO 3.2v4 cc rejects this. */
3945 char const *s = 0 ? (char *) 0 : (char const *) 0;
3949 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3951 const int *foo = &x[0];
3954 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3955 typedef const int *iptr;
3959 { /* AIX XL C 1.02.0.0 rejects this saying
3960 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3961 struct s { int j; const int *ap[3]; };
3962 struct s *b; b->j = 5;
3964 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3970 if { (eval echo configure:3971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3974 echo "configure: failed program was:" >&5
3975 cat conftest.$ac_ext >&5
3981 echo "$ac_t""$ac_cv_c_const" 1>&6
3982 if test $ac_cv_c_const = no; then
3983 { test "$extra_verbose" = "yes" && cat << \EOF
3986 cat >> confdefs.h <<\EOF
3994 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3995 echo "configure:3996: checking whether ${MAKE-make} sets \${MAKE}" >&5
3996 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3998 cat > conftestmake <<\EOF
4000 @echo 'ac_maketemp="${MAKE}"'
4002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4003 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4004 if test -n "$ac_maketemp"; then
4005 eval ac_cv_prog_make_${ac_make}_set=yes
4007 eval ac_cv_prog_make_${ac_make}_set=no
4010 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4011 echo "$ac_t""yes" 1>&6
4014 echo "$ac_t""no" 1>&6
4015 SET_MAKE="MAKE=${MAKE-make}"
4019 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4020 echo "configure:4021: checking whether byte ordering is bigendian" >&5
4022 ac_cv_c_bigendian=unknown
4023 # See if sys/param.h defines the BYTE_ORDER macro.
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4027 #include <sys/types.h>
4028 #include <sys/param.h>
4031 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4036 if { (eval echo configure:4037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4038 # It does; now see whether it defined to BIG_ENDIAN or not.
4039 cat > conftest.$ac_ext <<EOF
4040 #line 4041 "configure"
4041 #include "confdefs.h"
4042 #include <sys/types.h>
4043 #include <sys/param.h>
4046 #if BYTE_ORDER != BIG_ENDIAN
4051 if { (eval echo configure:4052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4053 ac_cv_c_bigendian=yes
4055 echo "configure: failed program was:" >&5
4056 cat conftest.$ac_ext >&5
4058 ac_cv_c_bigendian=no
4062 echo "configure: failed program was:" >&5
4063 cat conftest.$ac_ext >&5
4066 if test $ac_cv_c_bigendian = unknown; then
4067 cat > conftest.$ac_ext <<EOF
4068 #line 4069 "configure"
4069 #include "confdefs.h"
4071 /* Are we little or big endian? From Harbison&Steele. */
4075 char c[sizeof (long)];
4078 exit (u.c[sizeof (long) - 1] == 1);
4081 if { (eval echo configure:4082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4083 ac_cv_c_bigendian=no
4086 echo "configure: failed program was:" >&5
4087 cat conftest.$ac_ext >&5
4089 ac_cv_c_bigendian=yes
4094 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4095 if test $ac_cv_c_bigendian = yes; then
4096 { test "$extra_verbose" = "yes" && cat << \EOF
4097 Defining WORDS_BIGENDIAN
4099 cat >> confdefs.h <<\EOF
4100 #define WORDS_BIGENDIAN 1
4107 echo $ac_n "checking size of short""... $ac_c" 1>&6
4108 echo "configure:4109: checking size of short" >&5
4110 cat > conftest.$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4116 FILE *f=fopen("conftestval", "w");
4118 fprintf(f, "%d\n", sizeof(short));
4122 if { (eval echo configure:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4124 ac_cv_sizeof_short=`cat conftestval`
4127 echo "configure: failed program was:" >&5
4128 cat conftest.$ac_ext >&5
4130 ac_cv_sizeof_short=0
4133 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4134 { test "$extra_verbose" = "yes" && cat << EOF
4135 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4137 cat >> confdefs.h <<EOF
4138 #define SIZEOF_SHORT $ac_cv_sizeof_short
4143 if test "$ac_cv_sizeof_short" = 0; then
4145 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4146 echo "*** PANIC *** Please examine config.log for compilation errors."
4149 echo $ac_n "checking size of int""... $ac_c" 1>&6
4150 echo "configure:4151: checking size of int" >&5
4152 cat > conftest.$ac_ext <<EOF
4153 #line 4154 "configure"
4154 #include "confdefs.h"
4158 FILE *f=fopen("conftestval", "w");
4160 fprintf(f, "%d\n", sizeof(int));
4164 if { (eval echo configure:4165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4166 ac_cv_sizeof_int=`cat conftestval`
4169 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4175 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4176 { test "$extra_verbose" = "yes" && cat << EOF
4177 Defining SIZEOF_INT = $ac_cv_sizeof_int
4179 cat >> confdefs.h <<EOF
4180 #define SIZEOF_INT $ac_cv_sizeof_int
4185 echo $ac_n "checking size of long""... $ac_c" 1>&6
4186 echo "configure:4187: checking size of long" >&5
4188 cat > conftest.$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4194 FILE *f=fopen("conftestval", "w");
4196 fprintf(f, "%d\n", sizeof(long));
4200 if { (eval echo configure:4201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4202 ac_cv_sizeof_long=`cat conftestval`
4205 echo "configure: failed program was:" >&5
4206 cat conftest.$ac_ext >&5
4211 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4212 { test "$extra_verbose" = "yes" && cat << EOF
4213 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4215 cat >> confdefs.h <<EOF
4216 #define SIZEOF_LONG $ac_cv_sizeof_long
4221 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4222 echo "configure:4223: checking size of long long" >&5
4224 cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4230 FILE *f=fopen("conftestval", "w");
4232 fprintf(f, "%d\n", sizeof(long long));
4236 if { (eval echo configure:4237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4238 ac_cv_sizeof_long_long=`cat conftestval`
4241 echo "configure: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4244 ac_cv_sizeof_long_long=0
4247 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4248 { test "$extra_verbose" = "yes" && cat << EOF
4249 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4251 cat >> confdefs.h <<EOF
4252 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4257 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4258 echo "configure:4259: checking size of void *" >&5
4260 cat > conftest.$ac_ext <<EOF
4261 #line 4262 "configure"
4262 #include "confdefs.h"
4266 FILE *f=fopen("conftestval", "w");
4268 fprintf(f, "%d\n", sizeof(void *));
4272 if { (eval echo configure:4273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4274 ac_cv_sizeof_void_p=`cat conftestval`
4277 echo "configure: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4280 ac_cv_sizeof_void_p=0
4283 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4284 { test "$extra_verbose" = "yes" && cat << EOF
4285 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4287 cat >> confdefs.h <<EOF
4288 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4294 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4295 echo "configure:4296: checking for long file names" >&5
4297 ac_cv_sys_long_file_names=yes
4298 # Test for long file names in all the places we know might matter:
4299 # . the current directory, where building will happen
4300 # $prefix/lib where we will be installing things
4301 # $exec_prefix/lib likewise
4302 # eval it to expand exec_prefix.
4303 # $TMPDIR if set, where it might want to write temporary files
4304 # if $TMPDIR is not set:
4305 # /tmp where it might want to write temporary files
4308 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4309 ac_tmpdirs="$TMPDIR"
4311 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4313 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4314 test -d $ac_dir || continue
4315 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4316 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4317 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4318 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4319 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4320 ac_cv_sys_long_file_names=no
4321 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4324 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4327 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4328 if test $ac_cv_sys_long_file_names = yes; then
4329 { test "$extra_verbose" = "yes" && cat << \EOF
4330 Defining HAVE_LONG_FILE_NAMES
4332 cat >> confdefs.h <<\EOF
4333 #define HAVE_LONG_FILE_NAMES 1
4340 echo $ac_n "checking for sin""... $ac_c" 1>&6
4341 echo "configure:4342: checking for sin" >&5
4343 cat > conftest.$ac_ext <<EOF
4344 #line 4345 "configure"
4345 #include "confdefs.h"
4346 /* System header to define __stub macros and hopefully few prototypes,
4347 which can conflict with char sin(); below. */
4349 /* Override any gcc2 internal prototype to avoid an error. */
4350 /* We use char because int might match the return type of a gcc2
4351 builtin and then its argument prototype would still apply. */
4356 /* The GNU C library defines this for functions which it implements
4357 to always fail with ENOSYS. Some functions are actually named
4358 something starting with __ and the normal name is an alias. */
4359 #if defined (__stub_sin) || defined (__stub___sin)
4367 if { (eval echo configure:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4369 eval "ac_cv_func_sin=yes"
4371 echo "configure: failed program was:" >&5
4372 cat conftest.$ac_ext >&5
4374 eval "ac_cv_func_sin=no"
4378 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4379 echo "$ac_t""yes" 1>&6
4382 echo "$ac_t""no" 1>&6
4384 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4385 echo "configure:4386: checking for sin in -lm" >&5
4386 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4388 xe_check_libs=" -lm "
4389 cat > conftest.$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4392 /* Override any gcc2 internal prototype to avoid an error. */
4393 /* We use char because int might match the return type of a gcc2
4394 builtin and then its argument prototype would still apply. */
4401 if { (eval echo configure:4402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4403 eval "ac_cv_lib_$ac_lib_var=yes"
4405 echo "configure: failed program was:" >&5
4406 cat conftest.$ac_ext >&5
4408 eval "ac_cv_lib_$ac_lib_var=no"
4413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4414 echo "$ac_t""yes" 1>&6
4415 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4416 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4417 { test "$extra_verbose" = "yes" && cat << EOF
4420 cat >> confdefs.h <<EOF
4421 #define $ac_tr_lib 1
4425 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4428 echo "$ac_t""no" 1>&6
4435 { test "$extra_verbose" = "yes" && cat << \EOF
4436 Defining LISP_FLOAT_TYPE
4438 cat >> confdefs.h <<\EOF
4439 #define LISP_FLOAT_TYPE 1
4444 cat > conftest.$ac_ext <<EOF
4445 #line 4446 "configure"
4446 #include "confdefs.h"
4449 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4452 if { (eval echo configure:4453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4454 { test "$extra_verbose" = "yes" && cat << \EOF
4455 Defining HAVE_INVERSE_HYPERBOLIC
4457 cat >> confdefs.h <<\EOF
4458 #define HAVE_INVERSE_HYPERBOLIC 1
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4468 echo "checking type of mail spool file locking" 1>&6
4469 echo "configure:4470: checking type of mail spool file locking" >&5
4470 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4471 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4472 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4473 Defining REAL_MAIL_USE_LOCKF
4475 cat >> confdefs.h <<\EOF
4476 #define REAL_MAIL_USE_LOCKF 1
4480 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4481 Defining REAL_MAIL_USE_FLOCK
4483 cat >> confdefs.h <<\EOF
4484 #define REAL_MAIL_USE_FLOCK 1
4488 else mail_locking="dot-locking"
4491 case "$opsys" in decosf*)
4493 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4494 echo "configure:4495: checking for cma_open in -lpthreads" >&5
4495 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4497 xe_check_libs=" -lpthreads "
4498 cat > conftest.$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4501 /* Override any gcc2 internal prototype to avoid an error. */
4502 /* We use char because int might match the return type of a gcc2
4503 builtin and then its argument prototype would still apply. */
4510 if { (eval echo configure:4511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4512 eval "ac_cv_lib_$ac_lib_var=yes"
4514 echo "configure: failed program was:" >&5
4515 cat conftest.$ac_ext >&5
4517 eval "ac_cv_lib_$ac_lib_var=no"
4522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4523 echo "$ac_t""yes" 1>&6
4524 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4525 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4526 { test "$extra_verbose" = "yes" && cat << EOF
4529 cat >> confdefs.h <<EOF
4530 #define $ac_tr_lib 1
4534 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4537 echo "$ac_t""no" 1>&6
4541 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4542 c_switch_site="$c_switch_site -threads" ;;
4545 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4546 echo "configure:4547: checking whether the -xildoff compiler flag is required" >&5
4547 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4548 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4549 then echo "$ac_t""no" 1>&6;
4550 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
4552 else echo "$ac_t""no" 1>&6
4555 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4556 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4557 echo "configure:4558: checking for \"-z ignore\" linker flag" >&5
4558 case "`ld -h 2>&1`" in
4559 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4560 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4561 *) echo "$ac_t""no" 1>&6 ;;
4566 echo "checking "for specified window system"" 1>&6
4567 echo "configure:4568: checking "for specified window system"" >&5
4569 if test "$with_x11" != "no"; then
4570 test "$x_includes $x_libraries" != "NONE NONE" && \
4571 window_system=x11 with_x11=yes
4574 if test "$x_includes $x_libraries" = "NONE NONE" \
4575 -a -n "$OPENWINHOME" \
4576 -a "$OPENWINHOME" != "/usr/openwin" \
4577 -a -d "$OPENWINHOME"; then
4578 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4579 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4580 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4583 if test "$x_includes" = "NONE"; then
4584 for dir in "/usr/X11" "/usr/X11R6"; do
4585 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4589 if test "$x_libraries" = "NONE"; then
4590 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4591 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4595 # If we find X, set shell vars x_includes and x_libraries to the
4596 # paths, otherwise set no_x=yes.
4597 # Uses ac_ vars as temps to allow command line to override cache and checks.
4598 # --without-x overrides everything else, but does not touch the cache.
4599 echo $ac_n "checking for X""... $ac_c" 1>&6
4600 echo "configure:4601: checking for X" >&5
4602 # Check whether --with-x or --without-x was given.
4603 if test "${with_x+set}" = set; then
4608 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4609 if test "x$with_x" = xno; then
4610 # The user explicitly disabled X.
4613 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4614 # Both variables are already set.
4618 # One or both of the vars are not set, and there is no cached value.
4619 ac_x_includes=NO ac_x_libraries=NO
4621 if mkdir conftestdir; then
4623 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4624 cat > Imakefile <<'EOF'
4626 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4628 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4630 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4631 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4632 for ac_extension in a so sl; do
4633 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4634 test -f $ac_im_libdir/libX11.$ac_extension; then
4635 ac_im_usrlibdir=$ac_im_libdir; break
4638 # Screen out bogus values from the imake configuration. They are
4639 # bogus both because they are the default anyway, and because
4640 # using them would break gcc on systems where it needs fixed includes.
4641 case "$ac_im_incroot" in
4643 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4645 case "$ac_im_usrlibdir" in
4647 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4654 if test "$ac_x_includes" = NO; then
4655 # Guess where to find include files, by looking for this one X11 .h file.
4656 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4658 # First, try using that file with no special directory specified.
4659 cat > conftest.$ac_ext <<EOF
4660 #line 4661 "configure"
4661 #include "confdefs.h"
4662 #include <$x_direct_test_include>
4664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4665 { (eval echo configure:4666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4667 if test -z "$ac_err"; then
4669 # We can compile using X headers with no special include directory.
4673 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4676 # Look for the header file in a standard set of common directories.
4677 # Check X11 before X11Rn because it is often a symlink to the current release.
4680 /usr/X11R6/include \
4681 /usr/X11R5/include \
4682 /usr/X11R4/include \
4685 /usr/include/X11R6 \
4686 /usr/include/X11R5 \
4687 /usr/include/X11R4 \
4689 /usr/local/X11/include \
4690 /usr/local/X11R6/include \
4691 /usr/local/X11R5/include \
4692 /usr/local/X11R4/include \
4694 /usr/local/include/X11 \
4695 /usr/local/include/X11R6 \
4696 /usr/local/include/X11R5 \
4697 /usr/local/include/X11R4 \
4701 /usr/XFree86/include/X11 \
4704 /usr/local/include \
4705 /usr/unsupported/include \
4706 /usr/athena/include \
4707 /usr/local/x11r5/include \
4708 /usr/lpp/Xamples/include \
4710 /usr/openwin/include \
4711 /usr/openwin/share/include \
4714 if test -r "$ac_dir/$x_direct_test_include"; then
4715 ac_x_includes=$ac_dir
4721 fi # $ac_x_includes = NO
4723 if test "$ac_x_libraries" = NO; then
4724 # Check for the libraries.
4726 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4727 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4729 # See if we find them without any special options.
4730 # Don't add to $LIBS permanently.
4731 ac_save_LIBS="$LIBS"
4732 LIBS="-l$x_direct_test_library $LIBS"
4733 cat > conftest.$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4738 ${x_direct_test_function}()
4741 if { (eval echo configure:4742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4743 LIBS="$ac_save_LIBS"
4744 # We can link X programs with no special library path.
4747 echo "configure: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4750 LIBS="$ac_save_LIBS"
4751 # First see if replacing the include by lib works.
4752 # Check X11 before X11Rn because it is often a symlink to the current release.
4753 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4764 /usr/local/X11/lib \
4765 /usr/local/X11R6/lib \
4766 /usr/local/X11R5/lib \
4767 /usr/local/X11R4/lib \
4769 /usr/local/lib/X11 \
4770 /usr/local/lib/X11R6 \
4771 /usr/local/lib/X11R5 \
4772 /usr/local/lib/X11R4 \
4776 /usr/XFree86/lib/X11 \
4780 /usr/unsupported/lib \
4782 /usr/local/x11r5/lib \
4783 /usr/lpp/Xamples/lib \
4787 /usr/openwin/share/lib \
4790 for ac_extension in a so sl; do
4791 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4792 ac_x_libraries=$ac_dir
4799 fi # $ac_x_libraries = NO
4801 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4802 # Didn't find X anywhere. Cache the known absence of X.
4803 ac_cv_have_x="have_x=no"
4805 # Record where we found X for the cache.
4806 ac_cv_have_x="have_x=yes \
4807 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4810 eval "$ac_cv_have_x"
4813 if test "$have_x" != yes; then
4814 echo "$ac_t""$have_x" 1>&6
4817 # If each of the values was on the command line, it overrides each guess.
4818 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4819 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4820 # Update the cache value to reflect the command line values.
4821 ac_cv_have_x="have_x=yes \
4822 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4823 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4826 if test "$no_x" = yes; then
4827 # Not all programs may use this symbol, but it does not hurt to define it.
4828 { test "$extra_verbose" = "yes" && cat << \EOF
4829 Defining X_DISPLAY_MISSING
4831 cat >> confdefs.h <<\EOF
4832 #define X_DISPLAY_MISSING 1
4836 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4838 if test -n "$x_includes"; then
4839 X_CFLAGS="$X_CFLAGS -I$x_includes"
4842 # It would also be nice to do this for all -L options, not just this one.
4843 if test -n "$x_libraries"; then
4844 X_LIBS="$X_LIBS -L$x_libraries"
4845 # For Solaris; some versions of Sun CC require a space after -R and
4846 # others require no space. Words are not sufficient . . . .
4847 case "`(uname -sr) 2>/dev/null`" in
4849 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4850 echo "configure:4851: checking whether -R must be followed by a space" >&5
4851 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4852 cat > conftest.$ac_ext <<EOF
4853 #line 4854 "configure"
4854 #include "confdefs.h"
4860 if { (eval echo configure:4861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4864 echo "configure: failed program was:" >&5
4865 cat conftest.$ac_ext >&5
4870 if test $ac_R_nospace = yes; then
4871 echo "$ac_t""no" 1>&6
4872 X_LIBS="$X_LIBS -R$x_libraries"
4874 LIBS="$ac_xsave_LIBS -R $x_libraries"
4875 cat > conftest.$ac_ext <<EOF
4876 #line 4877 "configure"
4877 #include "confdefs.h"
4883 if { (eval echo configure:4884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4887 echo "configure: failed program was:" >&5
4888 cat conftest.$ac_ext >&5
4893 if test $ac_R_space = yes; then
4894 echo "$ac_t""yes" 1>&6
4895 X_LIBS="$X_LIBS -R $x_libraries"
4897 echo "$ac_t""neither works" 1>&6
4900 LIBS="$ac_xsave_LIBS"
4904 # Check for system-dependent libraries X programs must link with.
4905 # Do this before checking for the system-independent R6 libraries
4906 # (-lICE), since we may need -lsocket or whatever for X linking.
4908 if test "$ISC" = yes; then
4909 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4911 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4912 # libraries were built with DECnet support. And karl@cs.umb.edu says
4913 # the Alpha needs dnet_stub (dnet does not exist).
4914 if test "$with_dnet" = "no" ; then
4915 ac_cv_lib_dnet_dnet_ntoa=no
4918 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4919 echo "configure:4920: checking for dnet_ntoa in -ldnet" >&5
4920 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4922 xe_check_libs=" -ldnet "
4923 cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4926 /* Override any gcc2 internal prototype to avoid an error. */
4927 /* We use char because int might match the return type of a gcc2
4928 builtin and then its argument prototype would still apply. */
4935 if { (eval echo configure:4936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4937 eval "ac_cv_lib_$ac_lib_var=yes"
4939 echo "configure: failed program was:" >&5
4940 cat conftest.$ac_ext >&5
4942 eval "ac_cv_lib_$ac_lib_var=no"
4947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4948 echo "$ac_t""yes" 1>&6
4949 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4951 echo "$ac_t""no" 1>&6
4956 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4958 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4959 echo "configure:4960: checking for dnet_ntoa in -ldnet_stub" >&5
4960 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4962 xe_check_libs=" -ldnet_stub "
4963 cat > conftest.$ac_ext <<EOF
4964 #line 4965 "configure"
4965 #include "confdefs.h"
4966 /* Override any gcc2 internal prototype to avoid an error. */
4967 /* We use char because int might match the return type of a gcc2
4968 builtin and then its argument prototype would still apply. */
4975 if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4977 eval "ac_cv_lib_$ac_lib_var=yes"
4979 echo "configure: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4982 eval "ac_cv_lib_$ac_lib_var=no"
4987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4988 echo "$ac_t""yes" 1>&6
4989 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4991 echo "$ac_t""no" 1>&6
4997 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4998 # to get the SysV transport functions.
4999 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5001 # The nsl library prevents programs from opening the X display
5002 # on Irix 5.2, according to dickey@clark.net.
5003 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5004 echo "configure:5005: checking for gethostbyname" >&5
5006 cat > conftest.$ac_ext <<EOF
5007 #line 5008 "configure"
5008 #include "confdefs.h"
5009 /* System header to define __stub macros and hopefully few prototypes,
5010 which can conflict with char gethostbyname(); below. */
5012 /* Override any gcc2 internal prototype to avoid an error. */
5013 /* We use char because int might match the return type of a gcc2
5014 builtin and then its argument prototype would still apply. */
5015 char gethostbyname();
5019 /* The GNU C library defines this for functions which it implements
5020 to always fail with ENOSYS. Some functions are actually named
5021 something starting with __ and the normal name is an alias. */
5022 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5030 if { (eval echo configure:5031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5032 eval "ac_cv_func_gethostbyname=yes"
5034 echo "configure: failed program was:" >&5
5035 cat conftest.$ac_ext >&5
5037 eval "ac_cv_func_gethostbyname=no"
5041 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5042 echo "$ac_t""yes" 1>&6
5045 echo "$ac_t""no" 1>&6
5048 if test $ac_cv_func_gethostbyname = no; then
5050 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5051 echo "configure:5052: checking for gethostbyname in -lnsl" >&5
5052 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5054 xe_check_libs=" -lnsl "
5055 cat > conftest.$ac_ext <<EOF
5056 #line 5057 "configure"
5057 #include "confdefs.h"
5058 /* Override any gcc2 internal prototype to avoid an error. */
5059 /* We use char because int might match the return type of a gcc2
5060 builtin and then its argument prototype would still apply. */
5061 char gethostbyname();
5067 if { (eval echo configure:5068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5069 eval "ac_cv_lib_$ac_lib_var=yes"
5071 echo "configure: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5074 eval "ac_cv_lib_$ac_lib_var=no"
5079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5080 echo "$ac_t""yes" 1>&6
5081 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5083 echo "$ac_t""no" 1>&6
5089 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5090 # socket/setsockopt and other routines are undefined under SCO ODT
5091 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5092 # on later versions), says simon@lia.di.epfl.ch: it contains
5093 # gethostby* variants that don't use the nameserver (or something).
5094 # -lsocket must be given before -lnsl if both are needed.
5095 # We assume that if connect needs -lnsl, so does gethostbyname.
5096 echo $ac_n "checking for connect""... $ac_c" 1>&6
5097 echo "configure:5098: checking for connect" >&5
5099 cat > conftest.$ac_ext <<EOF
5100 #line 5101 "configure"
5101 #include "confdefs.h"
5102 /* System header to define __stub macros and hopefully few prototypes,
5103 which can conflict with char connect(); below. */
5105 /* Override any gcc2 internal prototype to avoid an error. */
5106 /* We use char because int might match the return type of a gcc2
5107 builtin and then its argument prototype would still apply. */
5112 /* The GNU C library defines this for functions which it implements
5113 to always fail with ENOSYS. Some functions are actually named
5114 something starting with __ and the normal name is an alias. */
5115 #if defined (__stub_connect) || defined (__stub___connect)
5123 if { (eval echo configure:5124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5125 eval "ac_cv_func_connect=yes"
5127 echo "configure: failed program was:" >&5
5128 cat conftest.$ac_ext >&5
5130 eval "ac_cv_func_connect=no"
5134 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5135 echo "$ac_t""yes" 1>&6
5138 echo "$ac_t""no" 1>&6
5141 if test $ac_cv_func_connect = no; then
5143 xe_msg_checking="for connect in -lsocket"
5144 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5145 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5146 echo "configure:5147: checking "$xe_msg_checking"" >&5
5147 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5149 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5150 cat > conftest.$ac_ext <<EOF
5151 #line 5152 "configure"
5152 #include "confdefs.h"
5153 /* Override any gcc2 internal prototype to avoid an error. */
5154 /* We use char because int might match the return type of a gcc2
5155 builtin and then its argument prototype would still apply. */
5162 if { (eval echo configure:5163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5164 eval "ac_cv_lib_$ac_lib_var=yes"
5166 echo "configure: failed program was:" >&5
5167 cat conftest.$ac_ext >&5
5169 eval "ac_cv_lib_$ac_lib_var=no"
5174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5175 echo "$ac_t""yes" 1>&6
5176 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5178 echo "$ac_t""no" 1>&6
5184 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5185 echo $ac_n "checking for remove""... $ac_c" 1>&6
5186 echo "configure:5187: checking for remove" >&5
5188 cat > conftest.$ac_ext <<EOF
5189 #line 5190 "configure"
5190 #include "confdefs.h"
5191 /* System header to define __stub macros and hopefully few prototypes,
5192 which can conflict with char remove(); below. */
5194 /* Override any gcc2 internal prototype to avoid an error. */
5195 /* We use char because int might match the return type of a gcc2
5196 builtin and then its argument prototype would still apply. */
5201 /* The GNU C library defines this for functions which it implements
5202 to always fail with ENOSYS. Some functions are actually named
5203 something starting with __ and the normal name is an alias. */
5204 #if defined (__stub_remove) || defined (__stub___remove)
5212 if { (eval echo configure:5213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5214 eval "ac_cv_func_remove=yes"
5216 echo "configure: failed program was:" >&5
5217 cat conftest.$ac_ext >&5
5219 eval "ac_cv_func_remove=no"
5223 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5224 echo "$ac_t""yes" 1>&6
5227 echo "$ac_t""no" 1>&6
5230 if test $ac_cv_func_remove = no; then
5232 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5233 echo "configure:5234: checking for remove in -lposix" >&5
5234 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5236 xe_check_libs=" -lposix "
5237 cat > conftest.$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5240 /* Override any gcc2 internal prototype to avoid an error. */
5241 /* We use char because int might match the return type of a gcc2
5242 builtin and then its argument prototype would still apply. */
5249 if { (eval echo configure:5250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5251 eval "ac_cv_lib_$ac_lib_var=yes"
5253 echo "configure: failed program was:" >&5
5254 cat conftest.$ac_ext >&5
5256 eval "ac_cv_lib_$ac_lib_var=no"
5261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5262 echo "$ac_t""yes" 1>&6
5263 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5265 echo "$ac_t""no" 1>&6
5271 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5272 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5273 echo "configure:5274: checking for shmat" >&5
5275 cat > conftest.$ac_ext <<EOF
5276 #line 5277 "configure"
5277 #include "confdefs.h"
5278 /* System header to define __stub macros and hopefully few prototypes,
5279 which can conflict with char shmat(); below. */
5281 /* Override any gcc2 internal prototype to avoid an error. */
5282 /* We use char because int might match the return type of a gcc2
5283 builtin and then its argument prototype would still apply. */
5288 /* The GNU C library defines this for functions which it implements
5289 to always fail with ENOSYS. Some functions are actually named
5290 something starting with __ and the normal name is an alias. */
5291 #if defined (__stub_shmat) || defined (__stub___shmat)
5299 if { (eval echo configure:5300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5301 eval "ac_cv_func_shmat=yes"
5303 echo "configure: failed program was:" >&5
5304 cat conftest.$ac_ext >&5
5306 eval "ac_cv_func_shmat=no"
5310 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5311 echo "$ac_t""yes" 1>&6
5314 echo "$ac_t""no" 1>&6
5317 if test $ac_cv_func_shmat = no; then
5319 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5320 echo "configure:5321: checking for shmat in -lipc" >&5
5321 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5323 xe_check_libs=" -lipc "
5324 cat > conftest.$ac_ext <<EOF
5325 #line 5326 "configure"
5326 #include "confdefs.h"
5327 /* Override any gcc2 internal prototype to avoid an error. */
5328 /* We use char because int might match the return type of a gcc2
5329 builtin and then its argument prototype would still apply. */
5336 if { (eval echo configure:5337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5338 eval "ac_cv_lib_$ac_lib_var=yes"
5340 echo "configure: failed program was:" >&5
5341 cat conftest.$ac_ext >&5
5343 eval "ac_cv_lib_$ac_lib_var=no"
5348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5349 echo "$ac_t""yes" 1>&6
5350 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5352 echo "$ac_t""no" 1>&6
5359 # Check for libraries that X11R6 Xt/Xaw programs need.
5360 ac_save_LDFLAGS="$LDFLAGS"
5361 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5362 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5363 # check for ICE first), but we must link in the order -lSM -lICE or
5364 # we get undefined symbols. So assume we have SM if we have ICE.
5365 # These have to be linked with before -lX11, unlike the other
5366 # libraries we check for below, so use a different variable.
5367 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5369 xe_msg_checking="for IceConnectionNumber in -lICE"
5370 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5371 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5372 echo "configure:5373: checking "$xe_msg_checking"" >&5
5373 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5375 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5376 cat > conftest.$ac_ext <<EOF
5377 #line 5378 "configure"
5378 #include "confdefs.h"
5379 /* Override any gcc2 internal prototype to avoid an error. */
5380 /* We use char because int might match the return type of a gcc2
5381 builtin and then its argument prototype would still apply. */
5382 char IceConnectionNumber();
5385 IceConnectionNumber()
5388 if { (eval echo configure:5389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5390 eval "ac_cv_lib_$ac_lib_var=yes"
5392 echo "configure: failed program was:" >&5
5393 cat conftest.$ac_ext >&5
5395 eval "ac_cv_lib_$ac_lib_var=no"
5400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5401 echo "$ac_t""yes" 1>&6
5402 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5404 echo "$ac_t""no" 1>&6
5408 LDFLAGS="$ac_save_LDFLAGS"
5411 # Autoconf claims to find X library and include dirs for us.
5412 if test "$no_x" = "yes"
5413 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5414 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5419 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5420 no ) window_system=none HAVE_X_WINDOWS=no ;;
5423 if test "$with_x11" = "yes"; then
5424 { test "$extra_verbose" = "yes" && cat << \EOF
5425 Defining HAVE_X_WINDOWS
5427 cat >> confdefs.h <<\EOF
5428 #define HAVE_X_WINDOWS 1
5432 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5433 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5435 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5436 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5437 if test -d "$lib_dir" -a -d "$inc_dir"; then
5438 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5439 x_libraries="$lib_dir $x_libraries"
5440 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5442 case "$x_includes" in "$inc_dir"* ) ;; *)
5443 x_includes="$inc_dir $x_includes"
5444 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5449 for rel in "X11R6" "X11R5" "X11R4"; do
5450 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5451 if test -d "$lib_dir" -a -d "$inc_dir"; then
5452 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5453 x_libraries="$x_libraries $lib_dir"
5454 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5456 case "$x_includes" in "$inc_dir"* ) ;; *)
5457 x_includes="$x_includes $inc_dir"
5458 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5463 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
5465 ld_switch_x_site="$X_LIBS"
5468 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5469 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5470 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5472 runpath="" runpath_dirs=""
5473 if test -n "$LD_RUN_PATH"; then
5474 runpath="$LD_RUN_PATH"
5475 elif test "$GCC" = "yes"; then
5476 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5477 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5478 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5479 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5480 case "$arg" in P,* | -L* | -R* )
5481 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5483 xe_runpath_dir="$dir"
5484 test "$xe_runpath_dir" != "/lib" -a \
5485 "$xe_runpath_dir" != "/usr/lib" -a \
5486 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5487 eval "$xe_add_unique_runpath_dir"
5492 ld_switch_run="$ld_switch_run_save"
5495 for arg in $ld_switch_site $ld_switch_x_site; do
5496 case "$arg" in -L*) {
5497 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5498 test "$xe_runpath_dir" != "/lib" -a \
5499 "$xe_runpath_dir" != "/usr/lib" -a \
5500 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5501 eval "$xe_add_unique_runpath_dir"
5504 if test "$opsys $need_motif" = "sol2 yes"; then
5505 xe_runpath_dir="/opt/SUNWdt/lib";
5506 eval "$xe_add_unique_runpath_dir";
5509 if test -n "$runpath"; then
5510 ld_switch_run="${dash_r}${runpath}"
5512 if test "$GCC" = "yes"; then
5513 set x $ld_switch_run; shift; ld_switch_run=""
5514 while test -n "$1"; do
5516 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5517 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5519 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5524 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5529 if test "$extra_verbose" = "yes"; then
5530 echo; echo "X11 compilation variables:"
5531 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5536 if test "$x_includes" != NONE; then
5537 for i in $x_includes; do
5538 if test -d "$i/bitmaps"; then
5539 bitmapdirs="$i/bitmaps:$bitmapdirs"
5541 if test -d "$i/X11/bitmaps"; then
5542 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5545 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5547 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5548 Defining BITMAPDIR = "$bitmapdirs"
5550 cat >> confdefs.h <<EOF
5551 #define BITMAPDIR "$bitmapdirs"
5556 echo "checking for X defines extracted by xmkmf" 1>&6
5557 echo "configure:5558: checking for X defines extracted by xmkmf" >&5
5559 if mkdir conftestdir; then
5561 cat > Imakefile <<'EOF'
5563 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5565 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5566 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5567 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5571 for word in $xmkmf_defines; do
5574 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5575 { test "$extra_verbose" = "yes" && cat << EOF
5578 cat >> confdefs.h <<EOF
5587 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5588 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5589 echo "configure:5590: checking for X11/Intrinsic.h" >&5
5591 cat > conftest.$ac_ext <<EOF
5592 #line 5593 "configure"
5593 #include "confdefs.h"
5594 #include <X11/Intrinsic.h>
5596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5597 { (eval echo configure:5598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5599 if test -z "$ac_err"; then
5601 eval "ac_cv_header_$ac_safe=yes"
5604 echo "configure: failed program was:" >&5
5605 cat conftest.$ac_ext >&5
5607 eval "ac_cv_header_$ac_safe=no"
5610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5611 echo "$ac_t""yes" 1>&6
5614 echo "$ac_t""no" 1>&6
5615 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5620 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5621 echo "configure:5622: checking for XOpenDisplay in -lX11" >&5
5622 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5624 xe_check_libs=" -lX11 "
5625 cat > conftest.$ac_ext <<EOF
5626 #line 5627 "configure"
5627 #include "confdefs.h"
5628 /* Override any gcc2 internal prototype to avoid an error. */
5629 /* We use char because int might match the return type of a gcc2
5630 builtin and then its argument prototype would still apply. */
5631 char XOpenDisplay();
5637 if { (eval echo configure:5638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5639 eval "ac_cv_lib_$ac_lib_var=yes"
5641 echo "configure: failed program was:" >&5
5642 cat conftest.$ac_ext >&5
5644 eval "ac_cv_lib_$ac_lib_var=no"
5649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5650 echo "$ac_t""yes" 1>&6
5653 echo "$ac_t""no" 1>&6
5657 if test "$have_lib_x11" != "yes"; then
5659 xe_msg_checking="for XGetFontProperty in -lX11"
5660 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5661 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5662 echo "configure:5663: checking "$xe_msg_checking"" >&5
5663 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5665 xe_check_libs=" -lX11 -b i486-linuxaout"
5666 cat > conftest.$ac_ext <<EOF
5667 #line 5668 "configure"
5668 #include "confdefs.h"
5669 /* Override any gcc2 internal prototype to avoid an error. */
5670 /* We use char because int might match the return type of a gcc2
5671 builtin and then its argument prototype would still apply. */
5672 char XGetFontProperty();
5678 if { (eval echo configure:5679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5680 eval "ac_cv_lib_$ac_lib_var=yes"
5682 echo "configure: failed program was:" >&5
5683 cat conftest.$ac_ext >&5
5685 eval "ac_cv_lib_$ac_lib_var=no"
5690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5691 echo "$ac_t""yes" 1>&6
5692 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5694 echo "$ac_t""no" 1>&6
5695 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5701 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5704 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5705 echo "configure:5706: checking for XShapeSelectInput in -lXext" >&5
5706 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5708 xe_check_libs=" -lXext "
5709 cat > conftest.$ac_ext <<EOF
5710 #line 5711 "configure"
5711 #include "confdefs.h"
5712 /* Override any gcc2 internal prototype to avoid an error. */
5713 /* We use char because int might match the return type of a gcc2
5714 builtin and then its argument prototype would still apply. */
5715 char XShapeSelectInput();
5721 if { (eval echo configure:5722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5723 eval "ac_cv_lib_$ac_lib_var=yes"
5725 echo "configure: failed program was:" >&5
5726 cat conftest.$ac_ext >&5
5728 eval "ac_cv_lib_$ac_lib_var=no"
5733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5734 echo "$ac_t""yes" 1>&6
5735 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5737 echo "$ac_t""no" 1>&6
5743 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5744 echo "configure:5745: checking for XtOpenDisplay in -lXt" >&5
5745 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5747 xe_check_libs=" -lXt "
5748 cat > conftest.$ac_ext <<EOF
5749 #line 5750 "configure"
5750 #include "confdefs.h"
5751 /* Override any gcc2 internal prototype to avoid an error. */
5752 /* We use char because int might match the return type of a gcc2
5753 builtin and then its argument prototype would still apply. */
5754 char XtOpenDisplay();
5760 if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5762 eval "ac_cv_lib_$ac_lib_var=yes"
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5767 eval "ac_cv_lib_$ac_lib_var=no"
5772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5773 echo "$ac_t""yes" 1>&6
5774 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5776 echo "$ac_t""no" 1>&6
5777 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5782 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5783 echo "configure:5784: checking the version of X11 being used" >&5
5784 cat > conftest.$ac_ext <<EOF
5785 #line 5786 "configure"
5786 #include "confdefs.h"
5787 #include <X11/Intrinsic.h>
5788 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5790 if { (eval echo configure:5791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5792 ./conftest foobar; x11_release=$?
5795 echo "configure: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5801 echo "$ac_t""R${x11_release}" 1>&6
5802 { test "$extra_verbose" = "yes" && cat << EOF
5803 Defining THIS_IS_X11R${x11_release}
5805 cat >> confdefs.h <<EOF
5806 #define THIS_IS_X11R${x11_release} 1
5811 for ac_hdr in X11/Xlocale.h
5813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5815 echo "configure:5816: checking for $ac_hdr" >&5
5817 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5823 { (eval echo configure:5824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5825 if test -z "$ac_err"; then
5827 eval "ac_cv_header_$ac_safe=yes"
5830 echo "configure: failed program was:" >&5
5831 cat conftest.$ac_ext >&5
5833 eval "ac_cv_header_$ac_safe=no"
5836 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5837 echo "$ac_t""yes" 1>&6
5838 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5839 { test "$extra_verbose" = "yes" && cat << EOF
5842 cat >> confdefs.h <<EOF
5843 #define $ac_tr_hdr 1
5848 echo "$ac_t""no" 1>&6
5853 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5854 echo "configure:5855: checking for XFree86" >&5
5855 if test -d "/usr/X386/include" -o \
5856 -f "/etc/XF86Config" -o \
5857 -f "/etc/X11/XF86Config" -o \
5858 -f "/usr/X11R6/lib/X11/XF86Config"; then
5859 echo "$ac_t""yes" 1>&6
5860 { test "$extra_verbose" = "yes" && cat << \EOF
5861 Defining HAVE_XFREE386
5863 cat >> confdefs.h <<\EOF
5864 #define HAVE_XFREE386 1
5869 echo "$ac_t""no" 1>&6
5872 test -z "$with_xmu" && {
5873 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5874 echo "configure:5875: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5875 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5877 xe_check_libs=" -lXmu "
5878 cat > conftest.$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5881 /* Override any gcc2 internal prototype to avoid an error. */
5882 /* We use char because int might match the return type of a gcc2
5883 builtin and then its argument prototype would still apply. */
5884 char XmuReadBitmapDataFromFile();
5887 XmuReadBitmapDataFromFile()
5890 if { (eval echo configure:5891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5892 eval "ac_cv_lib_$ac_lib_var=yes"
5894 echo "configure: failed program was:" >&5
5895 cat conftest.$ac_ext >&5
5897 eval "ac_cv_lib_$ac_lib_var=no"
5902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5903 echo "$ac_t""yes" 1>&6
5906 echo "$ac_t""no" 1>&6
5911 if test "$with_xmu" = "no"; then
5912 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
5913 echo " xemacs will be linked with \"xmu.o\""
5916 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
5917 { test "$extra_verbose" = "yes" && cat << \EOF
5920 cat >> confdefs.h <<\EOF
5928 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5929 echo "configure:5930: checking for main in -lXbsd" >&5
5930 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5932 xe_check_libs=" -lXbsd "
5933 cat > conftest.$ac_ext <<EOF
5934 #line 5935 "configure"
5935 #include "confdefs.h"
5941 if { (eval echo configure:5942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5943 eval "ac_cv_lib_$ac_lib_var=yes"
5945 echo "configure: failed program was:" >&5
5946 cat conftest.$ac_ext >&5
5948 eval "ac_cv_lib_$ac_lib_var=no"
5953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5954 echo "$ac_t""yes" 1>&6
5955 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
5957 echo "$ac_t""no" 1>&6
5962 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
5963 if test "$GCC" = "yes"; then
5964 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
5965 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
5968 "xlc" ) CC="xlc_r" ;;
5969 "xlC" ) CC="xlC_r" ;;
5976 if test "$with_msw" != "no"; then
5977 echo "checking for MS-Windows" 1>&6
5978 echo "configure:5979: checking for MS-Windows" >&5
5980 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
5981 echo "configure:5982: checking for main in -lgdi32" >&5
5982 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
5984 xe_check_libs=" -lgdi32 "
5985 cat > conftest.$ac_ext <<EOF
5986 #line 5987 "configure"
5987 #include "confdefs.h"
5993 if { (eval echo configure:5994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5995 eval "ac_cv_lib_$ac_lib_var=yes"
5997 echo "configure: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
6000 eval "ac_cv_lib_$ac_lib_var=no"
6005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6006 echo "$ac_t""yes" 1>&6
6009 echo "$ac_t""no" 1>&6
6013 if test "$with_msw" = "yes"; then
6014 { test "$extra_verbose" = "yes" && cat << \EOF
6015 Defining HAVE_MS_WINDOWS
6017 cat >> confdefs.h <<\EOF
6018 #define HAVE_MS_WINDOWS 1
6022 install_pp="$blddir/lib-src/installexe.sh"
6023 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
6024 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6025 if test "$window_system" != x11; then
6027 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6028 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6029 echo " xemacs will be linked with \"scrollbar-msw.o\""
6031 test "$with_menubars" != "no" && with_menubars=msw \
6032 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6033 echo " xemacs will be linked with \"menubar-msw.o\""
6035 test "$with_toolbars" != "no" && with_toolbars=msw \
6036 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6037 echo " xemacs will be linked with \"toolbar-msw.o\""
6039 test "$with_dialogs" != "no" && with_dialogs=msw \
6040 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6041 echo " xemacs will be linked with \"dialog-msw.o\""
6044 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6045 echo " xemacs will be linked with \"scrollbar-msw.o\""
6047 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6048 echo " xemacs will be linked with \"menubar-msw.o\""
6050 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6051 echo " xemacs will be linked with \"toolbar-msw.o\""
6053 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6054 echo " xemacs will be linked with \"dialog-msw.o\""
6057 cat > conftest.$ac_ext <<EOF
6058 #line 6059 "configure"
6059 #include "confdefs.h"
6061 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6063 if { (eval echo configure:6064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6065 { test "$extra_verbose" = "yes" && cat << \EOF
6066 Defining HAVE_MSG_SELECT
6068 cat >> confdefs.h <<\EOF
6069 #define HAVE_MSG_SELECT 1
6075 echo "configure: failed program was:" >&5
6076 cat conftest.$ac_ext >&5
6080 with_file_coding=yes
6081 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
6082 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\""
6089 test -z "$window_system" && window_system="none"
6091 if test "$window_system" = "none"; then
6092 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6094 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6095 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6097 eval "with_${feature}=no"
6100 test -z "$with_toolbars" && with_toolbars=yes
6103 if test "$with_msw" != "yes"; then
6104 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6106 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6107 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6109 eval "with_${feature}=no"
6115 if test "$with_x11" != "yes"; then
6116 for feature in tooltalk cde offix wmcommand xim xmu
6118 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6119 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6121 eval "with_${feature}=no"
6127 case "$window_system" in
6128 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6129 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6130 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6133 case "$x_libraries" in *X11R4* )
6134 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6135 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6138 echo "checking for WM_COMMAND option" 1>&6
6139 echo "configure:6140: checking for WM_COMMAND option" >&5;
6140 if test "$with_wmcommand" != "no"; then
6141 { test "$extra_verbose" = "yes" && cat << \EOF
6142 Defining HAVE_WMCOMMAND
6144 cat >> confdefs.h <<\EOF
6145 #define HAVE_WMCOMMAND 1
6151 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6152 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6153 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6154 echo "configure:6155: checking for X11/Xauth.h" >&5
6156 cat > conftest.$ac_ext <<EOF
6157 #line 6158 "configure"
6158 #include "confdefs.h"
6159 #include <X11/Xauth.h>
6161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6162 { (eval echo configure:6163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6164 if test -z "$ac_err"; then
6166 eval "ac_cv_header_$ac_safe=yes"
6169 echo "configure: failed program was:" >&5
6170 cat conftest.$ac_ext >&5
6172 eval "ac_cv_header_$ac_safe=no"
6175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6176 echo "$ac_t""yes" 1>&6
6179 echo "$ac_t""no" 1>&6
6183 test -z "$with_xauth" && {
6184 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6185 echo "configure:6186: checking for XauGetAuthByAddr in -lXau" >&5
6186 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6188 xe_check_libs=" -lXau "
6189 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6192 /* Override any gcc2 internal prototype to avoid an error. */
6193 /* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */
6195 char XauGetAuthByAddr();
6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6203 eval "ac_cv_lib_$ac_lib_var=yes"
6205 echo "configure: failed program was:" >&5
6206 cat conftest.$ac_ext >&5
6208 eval "ac_cv_lib_$ac_lib_var=no"
6213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6214 echo "$ac_t""yes" 1>&6
6217 echo "$ac_t""no" 1>&6
6222 test -z "$with_xauth" && with_xauth=yes
6223 if test "$with_xauth" = "yes"; then
6224 { test "$extra_verbose" = "yes" && cat << \EOF
6227 cat >> confdefs.h <<\EOF
6228 #define HAVE_XAUTH 1
6234 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
6242 if test "$with_tooltalk" != "no" ; then
6243 for dir in "" "Tt/" "desktop/" ; do
6244 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6245 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6246 echo "configure:6247: checking for ${dir}tt_c.h" >&5
6248 cat > conftest.$ac_ext <<EOF
6249 #line 6250 "configure"
6250 #include "confdefs.h"
6251 #include <${dir}tt_c.h>
6253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6254 { (eval echo configure:6255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6256 if test -z "$ac_err"; then
6258 eval "ac_cv_header_$ac_safe=yes"
6261 echo "configure: failed program was:" >&5
6262 cat conftest.$ac_ext >&5
6264 eval "ac_cv_header_$ac_safe=no"
6267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6268 echo "$ac_t""yes" 1>&6
6269 tt_c_h_path="${dir}tt_c.h"; break
6271 echo "$ac_t""no" 1>&6
6275 if test -z "$tt_c_h_path"; then
6276 if test "$with_tooltalk" = "yes"; then
6277 (echo "$progname: Usage error:"
6278 echo " " "Unable to find required tooltalk header files."
6279 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6284 if test "$with_tooltalk" != "no" ; then
6285 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6287 xe_msg_checking="for tt_message_create in -ltt"
6288 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6289 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6290 echo "configure:6291: checking "$xe_msg_checking"" >&5
6291 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6293 xe_check_libs=" -ltt $extra_libs"
6294 cat > conftest.$ac_ext <<EOF
6295 #line 6296 "configure"
6296 #include "confdefs.h"
6297 /* Override any gcc2 internal prototype to avoid an error. */
6298 /* We use char because int might match the return type of a gcc2
6299 builtin and then its argument prototype would still apply. */
6300 char tt_message_create();
6306 if { (eval echo configure:6307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6308 eval "ac_cv_lib_$ac_lib_var=yes"
6310 echo "configure: failed program was:" >&5
6311 cat conftest.$ac_ext >&5
6313 eval "ac_cv_lib_$ac_lib_var=no"
6318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6319 echo "$ac_t""yes" 1>&6
6320 tt_libs="-ltt $extra_libs"; break
6322 echo "$ac_t""no" 1>&6
6328 if test -z "$tt_libs"; then
6329 if test "$with_tooltalk" = "yes"; then
6330 (echo "$progname: Usage error:"
6331 echo " " "Unable to find required tooltalk libraries."
6332 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6337 test -z "$with_tooltalk" && with_tooltalk=yes
6338 if test "$with_tooltalk" = "yes"; then
6339 { test "$extra_verbose" = "yes" && cat << \EOF
6342 cat >> confdefs.h <<\EOF
6347 { test "$extra_verbose" = "yes" && cat << EOF
6348 Defining TT_C_H_PATH = "$tt_c_h_path"
6350 cat >> confdefs.h <<EOF
6351 #define TT_C_H_PATH "$tt_c_h_path"
6355 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6356 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6357 echo " xemacs will be linked with \"tooltalk.o\""
6361 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6362 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6363 echo "configure:6364: checking for Dt/Dt.h" >&5
6365 cat > conftest.$ac_ext <<EOF
6366 #line 6367 "configure"
6367 #include "confdefs.h"
6370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6371 { (eval echo configure:6372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6373 if test -z "$ac_err"; then
6375 eval "ac_cv_header_$ac_safe=yes"
6378 echo "configure: failed program was:" >&5
6379 cat conftest.$ac_ext >&5
6381 eval "ac_cv_header_$ac_safe=no"
6384 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6385 echo "$ac_t""yes" 1>&6
6388 echo "$ac_t""no" 1>&6
6392 test -z "$with_cde" && {
6393 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6394 echo "configure:6395: checking for DtDndDragStart in -lDtSvc" >&5
6395 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6397 xe_check_libs=" -lDtSvc "
6398 cat > conftest.$ac_ext <<EOF
6399 #line 6400 "configure"
6400 #include "confdefs.h"
6401 /* Override any gcc2 internal prototype to avoid an error. */
6402 /* We use char because int might match the return type of a gcc2
6403 builtin and then its argument prototype would still apply. */
6404 char DtDndDragStart();
6410 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6412 eval "ac_cv_lib_$ac_lib_var=yes"
6414 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6417 eval "ac_cv_lib_$ac_lib_var=no"
6422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6423 echo "$ac_t""yes" 1>&6
6426 echo "$ac_t""no" 1>&6
6431 test -z "$with_cde" && with_cde=yes
6432 if test "$with_dragndrop" = no; then
6433 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6436 if test "$with_cde" = "yes" ; then
6437 { test "$extra_verbose" = "yes" && cat << \EOF
6440 cat >> confdefs.h <<\EOF
6445 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6446 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6447 with_tooltalk=yes # CDE requires Tooltalk
6448 need_motif=yes # CDE requires Motif
6451 test "$window_system" != "x11" && with_offix=no
6452 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6453 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6456 if test "$with_dragndrop" = no; then
6457 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6460 if test "$with_cde" = yes; then
6461 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6464 test -z "$with_offix" && with_offix=no
6465 if test "$with_offix" = "yes"; then
6466 { test "$extra_verbose" = "yes" && cat << \EOF
6467 Defining HAVE_OFFIX_DND
6469 cat >> confdefs.h <<\EOF
6470 #define HAVE_OFFIX_DND 1
6474 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6475 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6478 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6479 echo "configure:6480: checking if drag and drop API is needed" >&5
6480 if test "$with_dragndrop" != "no" ; then
6481 if test -n "$dragndrop_proto" ; then
6483 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6484 { test "$extra_verbose" = "yes" && cat << \EOF
6485 Defining HAVE_DRAGNDROP
6487 cat >> confdefs.h <<\EOF
6488 #define HAVE_DRAGNDROP 1
6492 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6495 echo "$ac_t""no" 1>&6
6499 echo "checking for LDAP" 1>&6
6500 echo "configure:6501: checking for LDAP" >&5
6501 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6502 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6503 echo "configure:6504: checking for ldap.h" >&5
6505 cat > conftest.$ac_ext <<EOF
6506 #line 6507 "configure"
6507 #include "confdefs.h"
6510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6511 { (eval echo configure:6512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6513 if test -z "$ac_err"; then
6515 eval "ac_cv_header_$ac_safe=yes"
6518 echo "configure: failed program was:" >&5
6519 cat conftest.$ac_ext >&5
6521 eval "ac_cv_header_$ac_safe=no"
6524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6525 echo "$ac_t""yes" 1>&6
6528 echo "$ac_t""no" 1>&6
6532 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6533 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6534 echo "configure:6535: checking for lber.h" >&5
6536 cat > conftest.$ac_ext <<EOF
6537 #line 6538 "configure"
6538 #include "confdefs.h"
6541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6542 { (eval echo configure:6543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6544 if test -z "$ac_err"; then
6546 eval "ac_cv_header_$ac_safe=yes"
6549 echo "configure: failed program was:" >&5
6550 cat conftest.$ac_ext >&5
6552 eval "ac_cv_header_$ac_safe=no"
6555 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6556 echo "$ac_t""yes" 1>&6
6559 echo "$ac_t""no" 1>&6
6563 if test "$with_ldap" != "no"; then
6564 test -z "$with_umich_ldap" && {
6565 xe_msg_checking="for ldap_open in -lldap"
6566 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6567 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6568 echo "configure:6569: checking "$xe_msg_checking"" >&5
6569 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6571 xe_check_libs=" -lldap -llber"
6572 cat > conftest.$ac_ext <<EOF
6573 #line 6574 "configure"
6574 #include "confdefs.h"
6575 /* Override any gcc2 internal prototype to avoid an error. */
6576 /* We use char because int might match the return type of a gcc2
6577 builtin and then its argument prototype would still apply. */
6584 if { (eval echo configure:6585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6586 eval "ac_cv_lib_$ac_lib_var=yes"
6588 echo "configure: failed program was:" >&5
6589 cat conftest.$ac_ext >&5
6591 eval "ac_cv_lib_$ac_lib_var=no"
6596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6597 echo "$ac_t""yes" 1>&6
6600 echo "$ac_t""no" 1>&6
6605 test "$with_umich_ldap" = "no" && {
6606 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
6607 echo "configure:6608: checking for ldap_set_option in -lldap10" >&5
6608 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
6610 xe_check_libs=" -lldap10 "
6611 cat > conftest.$ac_ext <<EOF
6612 #line 6613 "configure"
6613 #include "confdefs.h"
6614 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6617 char ldap_set_option();
6623 if { (eval echo configure:6624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6625 eval "ac_cv_lib_$ac_lib_var=yes"
6627 echo "configure: failed program was:" >&5
6628 cat conftest.$ac_ext >&5
6630 eval "ac_cv_lib_$ac_lib_var=no"
6635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6636 echo "$ac_t""yes" 1>&6
6639 echo "$ac_t""no" 1>&6
6644 test -z "$with_ldap" -a \( "$with_umich_ldap" = "yes" -o "$with_ns_ldap" = "yes" \) && with_ldap=yes
6646 if test "$with_ldap" = "yes"; then
6647 { test "$extra_verbose" = "yes" && cat << \EOF
6650 cat >> confdefs.h <<\EOF
6655 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6656 echo " xemacs will be linked with \"eldap.o\""
6658 if test "$with_umich_ldap" = "yes" ; then
6659 { test "$extra_verbose" = "yes" && cat << \EOF
6660 Defining HAVE_UMICH_LDAP
6662 cat >> confdefs.h <<\EOF
6663 #define HAVE_UMICH_LDAP 1
6667 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6668 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6669 elif test "$with_ldap" = "yes" -a "$with_ns_ldap" = "yes" ; then
6670 { test "$extra_verbose" = "yes" && cat << \EOF
6671 Defining HAVE_NS_LDAP
6673 cat >> confdefs.h <<\EOF
6674 #define HAVE_NS_LDAP 1
6678 LIBS="-lldap10 $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap10\" to \$LIBS"; fi
6679 elif test "$with_ldap" = "yes" ; then
6680 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6685 if test "$window_system" != "none"; then
6686 echo "checking for graphics libraries" 1>&6
6687 echo "configure:6688: checking for graphics libraries" >&5
6690 if test -z "$with_xpm"; then
6691 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6692 echo "configure:6693: checking for Xpm - no older than 3.4f" >&5
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 #include <X11/xpm.h>
6698 int main(int c, char **v) {
6700 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6701 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6703 if { (eval echo configure:6704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6705 ./conftest dummy_arg; xpm_status=$?;
6706 if test "$xpm_status" = "0"; then
6710 if test "$xpm_status" = "1"; then
6711 xpm_problem="Xpm library version and header file version don't match!"
6712 elif test "$xpm_status" = "2"; then
6713 xpm_problem="Xpm library version is too old!"
6715 xpm_problem="Internal xpm detection logic error!"
6718 *** WARNING *** $xpm_problem
6719 I'm not touching that with a 10-foot pole!
6720 If you really want to use the installed version of Xpm, rerun
6721 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
6725 echo "configure: failed program was:" >&5
6726 cat conftest.$ac_ext >&5
6732 echo "$ac_t""$with_xpm" 1>&6
6734 if test "$with_xpm" = "yes"; then
6735 { test "$extra_verbose" = "yes" && cat << \EOF
6738 cat >> confdefs.h <<\EOF
6743 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6744 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6745 echo "configure:6746: checking for \"FOR_MSW\" xpm" >&5
6747 cat > conftest.$ac_ext <<EOF
6748 #line 6749 "configure"
6749 #include "confdefs.h"
6752 XpmCreatePixmapFromData()
6755 if { (eval echo configure:6756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6759 echo "configure: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6766 echo "$ac_t""$xpm_for_msw" 1>&6
6767 if test "$xpm_for_msw" = "yes"; then
6768 { test "$extra_verbose" = "yes" && cat << \EOF
6771 cat >> confdefs.h <<\EOF
6779 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6780 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6781 echo "configure:6782: checking for compface.h" >&5
6783 cat > conftest.$ac_ext <<EOF
6784 #line 6785 "configure"
6785 #include "confdefs.h"
6786 #include <compface.h>
6788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6789 { (eval echo configure:6790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6791 if test -z "$ac_err"; then
6793 eval "ac_cv_header_$ac_safe=yes"
6796 echo "configure: failed program was:" >&5
6797 cat conftest.$ac_ext >&5
6799 eval "ac_cv_header_$ac_safe=no"
6802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6803 echo "$ac_t""yes" 1>&6
6806 echo "$ac_t""no" 1>&6
6810 test -z "$with_xface" && {
6811 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6812 echo "configure:6813: checking for UnGenFace in -lcompface" >&5
6813 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6815 xe_check_libs=" -lcompface "
6816 cat > conftest.$ac_ext <<EOF
6817 #line 6818 "configure"
6818 #include "confdefs.h"
6819 /* Override any gcc2 internal prototype to avoid an error. */
6820 /* We use char because int might match the return type of a gcc2
6821 builtin and then its argument prototype would still apply. */
6828 if { (eval echo configure:6829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6830 eval "ac_cv_lib_$ac_lib_var=yes"
6832 echo "configure: failed program was:" >&5
6833 cat conftest.$ac_ext >&5
6835 eval "ac_cv_lib_$ac_lib_var=no"
6840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6841 echo "$ac_t""yes" 1>&6
6844 echo "$ac_t""no" 1>&6
6849 test -z "$with_xface" && with_xface=yes
6850 if test "$with_xface" = "yes"; then
6851 { test "$extra_verbose" = "yes" && cat << \EOF
6854 cat >> confdefs.h <<\EOF
6855 #define HAVE_XFACE 1
6859 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
6862 if test "$with_gif" != "no"; then
6864 { test "$extra_verbose" = "yes" && cat << \EOF
6867 cat >> confdefs.h <<\EOF
6872 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
6873 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
6877 if test "$with_png $with_tiff" != "no no"; then
6879 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6880 echo "configure:6881: checking for inflate in -lc" >&5
6881 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6883 xe_check_libs=" -lc "
6884 cat > conftest.$ac_ext <<EOF
6885 #line 6886 "configure"
6886 #include "confdefs.h"
6887 /* Override any gcc2 internal prototype to avoid an error. */
6888 /* We use char because int might match the return type of a gcc2
6889 builtin and then its argument prototype would still apply. */
6896 if { (eval echo configure:6897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6898 eval "ac_cv_lib_$ac_lib_var=yes"
6900 echo "configure: failed program was:" >&5
6901 cat conftest.$ac_ext >&5
6903 eval "ac_cv_lib_$ac_lib_var=no"
6908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6909 echo "$ac_t""yes" 1>&6
6912 echo "$ac_t""no" 1>&6
6914 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6915 echo "configure:6916: checking for inflate in -lz" >&5
6916 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6918 xe_check_libs=" -lz "
6919 cat > conftest.$ac_ext <<EOF
6920 #line 6921 "configure"
6921 #include "confdefs.h"
6922 /* Override any gcc2 internal prototype to avoid an error. */
6923 /* We use char because int might match the return type of a gcc2
6924 builtin and then its argument prototype would still apply. */
6931 if { (eval echo configure:6932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6933 eval "ac_cv_lib_$ac_lib_var=yes"
6935 echo "configure: failed program was:" >&5
6936 cat conftest.$ac_ext >&5
6938 eval "ac_cv_lib_$ac_lib_var=no"
6943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6944 echo "$ac_t""yes" 1>&6
6945 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
6947 echo "$ac_t""no" 1>&6
6949 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
6950 echo "configure:6951: checking for inflate in -lgz" >&5
6951 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
6953 xe_check_libs=" -lgz "
6954 cat > conftest.$ac_ext <<EOF
6955 #line 6956 "configure"
6956 #include "confdefs.h"
6957 /* Override any gcc2 internal prototype to avoid an error. */
6958 /* We use char because int might match the return type of a gcc2
6959 builtin and then its argument prototype would still apply. */
6966 if { (eval echo configure:6967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6968 eval "ac_cv_lib_$ac_lib_var=yes"
6970 echo "configure: failed program was:" >&5
6971 cat conftest.$ac_ext >&5
6973 eval "ac_cv_lib_$ac_lib_var=no"
6978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6979 echo "$ac_t""yes" 1>&6
6980 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
6982 echo "$ac_t""no" 1>&6
6994 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6995 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6996 echo "configure:6997: checking for jpeglib.h" >&5
6998 cat > conftest.$ac_ext <<EOF
6999 #line 7000 "configure"
7000 #include "confdefs.h"
7001 #include <jpeglib.h>
7003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7004 { (eval echo configure:7005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7006 if test -z "$ac_err"; then
7008 eval "ac_cv_header_$ac_safe=yes"
7011 echo "configure: failed program was:" >&5
7012 cat conftest.$ac_ext >&5
7014 eval "ac_cv_header_$ac_safe=no"
7017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7018 echo "$ac_t""yes" 1>&6
7021 echo "$ac_t""no" 1>&6
7025 test -z "$with_jpeg" && {
7026 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7027 echo "configure:7028: checking for jpeg_destroy_decompress in -ljpeg" >&5
7028 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7030 xe_check_libs=" -ljpeg "
7031 cat > conftest.$ac_ext <<EOF
7032 #line 7033 "configure"
7033 #include "confdefs.h"
7034 /* Override any gcc2 internal prototype to avoid an error. */
7035 /* We use char because int might match the return type of a gcc2
7036 builtin and then its argument prototype would still apply. */
7037 char jpeg_destroy_decompress();
7040 jpeg_destroy_decompress()
7043 if { (eval echo configure:7044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7045 eval "ac_cv_lib_$ac_lib_var=yes"
7047 echo "configure: failed program was:" >&5
7048 cat conftest.$ac_ext >&5
7050 eval "ac_cv_lib_$ac_lib_var=no"
7055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7056 echo "$ac_t""yes" 1>&6
7059 echo "$ac_t""no" 1>&6
7064 test -z "$with_jpeg" && with_jpeg=yes
7065 if test "$with_jpeg" = "yes"; then
7066 { test "$extra_verbose" = "yes" && cat << \EOF
7069 cat >> confdefs.h <<\EOF
7074 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7078 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7079 echo "configure:7080: checking for pow" >&5
7081 cat > conftest.$ac_ext <<EOF
7082 #line 7083 "configure"
7083 #include "confdefs.h"
7084 /* System header to define __stub macros and hopefully few prototypes,
7085 which can conflict with char pow(); below. */
7087 /* Override any gcc2 internal prototype to avoid an error. */
7088 /* We use char because int might match the return type of a gcc2
7089 builtin and then its argument prototype would still apply. */
7094 /* The GNU C library defines this for functions which it implements
7095 to always fail with ENOSYS. Some functions are actually named
7096 something starting with __ and the normal name is an alias. */
7097 #if defined (__stub_pow) || defined (__stub___pow)
7105 if { (eval echo configure:7106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7107 eval "ac_cv_func_pow=yes"
7109 echo "configure: failed program was:" >&5
7110 cat conftest.$ac_ext >&5
7112 eval "ac_cv_func_pow=no"
7116 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7117 echo "$ac_t""yes" 1>&6
7120 echo "$ac_t""no" 1>&6
7124 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7125 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7126 echo "configure:7127: checking for png.h" >&5
7128 cat > conftest.$ac_ext <<EOF
7129 #line 7130 "configure"
7130 #include "confdefs.h"
7133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7134 { (eval echo configure:7135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7136 if test -z "$ac_err"; then
7138 eval "ac_cv_header_$ac_safe=yes"
7141 echo "configure: failed program was:" >&5
7142 cat conftest.$ac_ext >&5
7144 eval "ac_cv_header_$ac_safe=no"
7147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7148 echo "$ac_t""yes" 1>&6
7151 echo "$ac_t""no" 1>&6
7155 test -z "$with_png" && {
7156 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7157 echo "configure:7158: checking for png_read_image in -lpng" >&5
7158 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7160 xe_check_libs=" -lpng "
7161 cat > conftest.$ac_ext <<EOF
7162 #line 7163 "configure"
7163 #include "confdefs.h"
7164 /* Override any gcc2 internal prototype to avoid an error. */
7165 /* We use char because int might match the return type of a gcc2
7166 builtin and then its argument prototype would still apply. */
7167 char png_read_image();
7173 if { (eval echo configure:7174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7175 eval "ac_cv_lib_$ac_lib_var=yes"
7177 echo "configure: failed program was:" >&5
7178 cat conftest.$ac_ext >&5
7180 eval "ac_cv_lib_$ac_lib_var=no"
7185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7186 echo "$ac_t""yes" 1>&6
7189 echo "$ac_t""no" 1>&6
7194 if test -z "$with_png"; then
7195 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7196 echo "configure:7197: checking for workable png version information" >&5
7197 xe_check_libs="-lpng -lz"
7198 cat > conftest.$ac_ext <<EOF
7199 #line 7200 "configure"
7200 #include "confdefs.h"
7202 int main(int c, char **v) {
7203 if (c == 1) return 0;
7204 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7205 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7207 if { (eval echo configure:7208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7209 ./conftest dummy_arg; png_status=$?;
7210 if test "$png_status" = "0"; then
7214 if test "$png_status" = "1"; then
7215 png_problem="PNG library version and header file don't match!"
7216 elif test "$png_status" = "2"; then
7217 png_problem="PNG library version too old (pre 1.0.2)!"
7220 *** WARNING *** $png_problem
7221 I'm not touching that with a 10-foot pole!
7222 If you really want to use the installed version of libPNG, rerun
7223 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7227 echo "configure: failed program was:" >&5
7228 cat conftest.$ac_ext >&5
7234 echo "$ac_t""$with_png" 1>&6
7236 if test "$with_png" = "yes"; then
7237 { test "$extra_verbose" = "yes" && cat << \EOF
7240 cat >> confdefs.h <<\EOF
7245 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7248 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7249 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7250 echo "configure:7251: checking for tiffio.h" >&5
7252 cat > conftest.$ac_ext <<EOF
7253 #line 7254 "configure"
7254 #include "confdefs.h"
7257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7258 { (eval echo configure:7259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7260 if test -z "$ac_err"; then
7262 eval "ac_cv_header_$ac_safe=yes"
7265 echo "configure: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7268 eval "ac_cv_header_$ac_safe=no"
7271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7272 echo "$ac_t""yes" 1>&6
7275 echo "$ac_t""no" 1>&6
7279 test -z "$with_tiff" && {
7280 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7281 echo "configure:7282: checking for TIFFClientOpen in -ltiff" >&5
7282 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7284 xe_check_libs=" -ltiff "
7285 cat > conftest.$ac_ext <<EOF
7286 #line 7287 "configure"
7287 #include "confdefs.h"
7288 /* Override any gcc2 internal prototype to avoid an error. */
7289 /* We use char because int might match the return type of a gcc2
7290 builtin and then its argument prototype would still apply. */
7291 char TIFFClientOpen();
7297 if { (eval echo configure:7298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7299 eval "ac_cv_lib_$ac_lib_var=yes"
7301 echo "configure: failed program was:" >&5
7302 cat conftest.$ac_ext >&5
7304 eval "ac_cv_lib_$ac_lib_var=no"
7309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7310 echo "$ac_t""yes" 1>&6
7313 echo "$ac_t""no" 1>&6
7318 test -z "$with_tiff" && with_tiff=yes
7319 if test "$with_tiff" = "yes"; then
7320 { test "$extra_verbose" = "yes" && cat << \EOF
7323 cat >> confdefs.h <<\EOF
7328 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7333 if test "$with_x11" = "yes"; then
7335 echo "checking for X11 graphics libraries" 1>&6
7336 echo "configure:7337: checking for X11 graphics libraries" >&5
7339 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7340 echo "configure:7341: checking for XawScrollbarSetThumb in -lXaw" >&5
7341 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7343 xe_check_libs=" -lXaw "
7344 cat > conftest.$ac_ext <<EOF
7345 #line 7346 "configure"
7346 #include "confdefs.h"
7347 /* Override any gcc2 internal prototype to avoid an error. */
7348 /* We use char because int might match the return type of a gcc2
7349 builtin and then its argument prototype would still apply. */
7350 char XawScrollbarSetThumb();
7353 XawScrollbarSetThumb()
7356 if { (eval echo configure:7357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7358 eval "ac_cv_lib_$ac_lib_var=yes"
7360 echo "configure: failed program was:" >&5
7361 cat conftest.$ac_ext >&5
7363 eval "ac_cv_lib_$ac_lib_var=no"
7368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7369 echo "$ac_t""yes" 1>&6
7372 echo "$ac_t""no" 1>&6
7378 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7379 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7380 echo "configure:7381: checking for Xm/Xm.h" >&5
7382 cat > conftest.$ac_ext <<EOF
7383 #line 7384 "configure"
7384 #include "confdefs.h"
7387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7388 { (eval echo configure:7389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7389 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7390 if test -z "$ac_err"; then
7392 eval "ac_cv_header_$ac_safe=yes"
7395 echo "configure: failed program was:" >&5
7396 cat conftest.$ac_ext >&5
7398 eval "ac_cv_header_$ac_safe=no"
7401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7402 echo "$ac_t""yes" 1>&6
7404 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7405 echo "configure:7406: checking for XmStringFree in -lXm" >&5
7406 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7408 xe_check_libs=" -lXm "
7409 cat > conftest.$ac_ext <<EOF
7410 #line 7411 "configure"
7411 #include "confdefs.h"
7412 /* Override any gcc2 internal prototype to avoid an error. */
7413 /* We use char because int might match the return type of a gcc2
7414 builtin and then its argument prototype would still apply. */
7415 char XmStringFree();
7421 if { (eval echo configure:7422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7423 eval "ac_cv_lib_$ac_lib_var=yes"
7425 echo "configure: failed program was:" >&5
7426 cat conftest.$ac_ext >&5
7428 eval "ac_cv_lib_$ac_lib_var=no"
7433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7434 echo "$ac_t""yes" 1>&6
7437 echo "$ac_t""no" 1>&6
7443 echo "$ac_t""no" 1>&6
7448 if test "$have_motif" = "yes"; then
7449 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7450 echo "configure:7451: checking for Lesstif" >&5
7451 cat > conftest.$ac_ext <<EOF
7452 #line 7453 "configure"
7453 #include "confdefs.h"
7455 #ifdef LESSTIF_VERSION
7460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7461 egrep "yes" >/dev/null 2>&1; then
7470 echo "$ac_t""$have_lesstif" 1>&6
7475 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
7476 with_menubars="lucid" ;;
7478 case "$with_dialogs" in "" | "yes" | "lucid" )
7479 if test "$have_motif" = "yes"; then with_dialogs="motif"
7480 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
7481 else with_dialogs=no
7484 case "$with_scrollbars" in "" | "yes" )
7485 with_scrollbars="lucid" ;;
7488 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars"
7490 case "$all_widgets" in *athena* )
7491 { test "$extra_verbose" = "yes" && cat << \EOF
7492 Defining LWLIB_USES_ATHENA
7494 cat >> confdefs.h <<\EOF
7495 #define LWLIB_USES_ATHENA 1
7499 { test "$extra_verbose" = "yes" && cat << \EOF
7500 Defining NEED_ATHENA
7502 cat >> confdefs.h <<\EOF
7503 #define NEED_ATHENA 1
7507 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
7508 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
7511 case "$all_widgets" in *motif* )
7512 { test "$extra_verbose" = "yes" && cat << \EOF
7513 Defining LWLIB_USES_MOTIF
7515 cat >> confdefs.h <<\EOF
7516 #define LWLIB_USES_MOTIF 1
7520 { test "$extra_verbose" = "yes" && cat << \EOF
7523 cat >> confdefs.h <<\EOF
7524 #define NEED_MOTIF 1
7528 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
7532 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7533 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7534 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
7535 case "$all_widgets" in *lucid* )
7536 { test "$extra_verbose" = "yes" && cat << \EOF
7539 cat >> confdefs.h <<\EOF
7540 #define NEED_LUCID 1
7544 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
7549 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7550 Defining LWLIB_SCROLLBARS_ATHENA
7552 cat >> confdefs.h <<\EOF
7553 #define LWLIB_SCROLLBARS_ATHENA 1
7557 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7558 Defining LWLIB_DIALOGS_ATHENA
7560 cat >> confdefs.h <<\EOF
7561 #define LWLIB_DIALOGS_ATHENA 1
7565 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7566 Defining LWLIB_SCROLLBARS_ATHENA3D
7568 cat >> confdefs.h <<\EOF
7569 #define LWLIB_SCROLLBARS_ATHENA3D 1
7573 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7574 Defining LWLIB_DIALOGS_ATHENA3D
7576 cat >> confdefs.h <<\EOF
7577 #define LWLIB_DIALOGS_ATHENA3D 1
7582 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7583 Defining HAVE_MENUBARS
7585 cat >> confdefs.h <<\EOF
7586 #define HAVE_MENUBARS 1
7590 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7591 Defining HAVE_SCROLLBARS
7593 cat >> confdefs.h <<\EOF
7594 #define HAVE_SCROLLBARS 1
7598 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7599 Defining HAVE_DIALOGS
7601 cat >> confdefs.h <<\EOF
7602 #define HAVE_DIALOGS 1
7606 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7607 Defining HAVE_TOOLBARS
7609 cat >> confdefs.h <<\EOF
7610 #define HAVE_TOOLBARS 1
7615 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7616 Defining LWLIB_MENUBARS_LUCID
7618 cat >> confdefs.h <<\EOF
7619 #define LWLIB_MENUBARS_LUCID 1
7623 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7624 Defining LWLIB_SCROLLBARS_LUCID
7626 cat >> confdefs.h <<\EOF
7627 #define LWLIB_SCROLLBARS_LUCID 1
7632 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7633 Defining LWLIB_MENUBARS_MOTIF
7635 cat >> confdefs.h <<\EOF
7636 #define LWLIB_MENUBARS_MOTIF 1
7640 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7641 Defining LWLIB_SCROLLBARS_MOTIF
7643 cat >> confdefs.h <<\EOF
7644 #define LWLIB_SCROLLBARS_MOTIF 1
7648 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7649 Defining LWLIB_DIALOGS_MOTIF
7651 cat >> confdefs.h <<\EOF
7652 #define LWLIB_DIALOGS_MOTIF 1
7657 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
7658 echo " xemacs will be linked with \"menubar.o\""
7660 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
7661 echo " xemacs will be linked with \"scrollbar.o\""
7663 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
7664 echo " xemacs will be linked with \"dialog.o\""
7666 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
7667 echo " xemacs will be linked with \"toolbar.o\""
7670 if test "$with_x11" = "yes"; then
7671 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
7672 echo " xemacs will be linked with \"menubar-x.o\""
7674 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
7675 echo " xemacs will be linked with \"scrollbar-x.o\""
7677 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
7678 echo " xemacs will be linked with \"dialog-x.o\""
7680 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
7681 echo " xemacs will be linked with \"toolbar-x.o\""
7683 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
7684 echo " xemacs will be linked with \"gui-x.o\""
7687 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
7688 echo "Attempt to Build NAS sound without X"
7689 echo "Please remove NAS configuration or build with X"
7695 test -z "$with_mule" && with_mule=no
7696 test -z "$with_file_coding" && with_file_coding=no
7699 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
7700 { test "$extra_verbose" = "yes" && cat << \EOF
7701 Defining FILE_CODING
7703 cat >> confdefs.h <<\EOF
7704 #define FILE_CODING 1
7708 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
7709 echo " xemacs will be linked with \"file-coding.o\""
7713 if test "$with_mule" = "yes" ; then
7714 echo "checking for Mule-related features" 1>&6
7715 echo "configure:7716: checking for Mule-related features" >&5
7716 { test "$extra_verbose" = "yes" && cat << \EOF
7719 cat >> confdefs.h <<\EOF
7724 { test "$extra_verbose" = "yes" && cat << \EOF
7725 Defining FILE_CODING
7727 cat >> confdefs.h <<\EOF
7728 #define FILE_CODING 1
7732 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
7733 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
7736 for ac_hdr in libintl.h
7738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7740 echo "configure:7741: checking for $ac_hdr" >&5
7742 cat > conftest.$ac_ext <<EOF
7743 #line 7744 "configure"
7744 #include "confdefs.h"
7747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7748 { (eval echo configure:7749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7750 if test -z "$ac_err"; then
7752 eval "ac_cv_header_$ac_safe=yes"
7755 echo "configure: failed program was:" >&5
7756 cat conftest.$ac_ext >&5
7758 eval "ac_cv_header_$ac_safe=no"
7761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7762 echo "$ac_t""yes" 1>&6
7763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7764 { test "$extra_verbose" = "yes" && cat << EOF
7767 cat >> confdefs.h <<EOF
7768 #define $ac_tr_hdr 1
7773 echo "$ac_t""no" 1>&6
7778 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7779 echo "configure:7780: checking for strerror in -lintl" >&5
7780 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7782 xe_check_libs=" -lintl "
7783 cat > conftest.$ac_ext <<EOF
7784 #line 7785 "configure"
7785 #include "confdefs.h"
7786 /* Override any gcc2 internal prototype to avoid an error. */
7787 /* We use char because int might match the return type of a gcc2
7788 builtin and then its argument prototype would still apply. */
7795 if { (eval echo configure:7796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7797 eval "ac_cv_lib_$ac_lib_var=yes"
7799 echo "configure: failed program was:" >&5
7800 cat conftest.$ac_ext >&5
7802 eval "ac_cv_lib_$ac_lib_var=no"
7807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7808 echo "$ac_t""yes" 1>&6
7809 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7810 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7811 { test "$extra_verbose" = "yes" && cat << EOF
7814 cat >> confdefs.h <<EOF
7815 #define $ac_tr_lib 1
7819 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
7822 echo "$ac_t""no" 1>&6
7827 echo "checking for Mule input methods" 1>&6
7828 echo "configure:7829: checking for Mule input methods" >&5
7829 case "$with_xim" in "" | "yes" )
7830 echo "checking for XIM" 1>&6
7831 echo "configure:7832: checking for XIM" >&5
7833 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
7834 echo "configure:7835: checking for XOpenIM in -lX11" >&5
7835 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
7837 xe_check_libs=" -lX11 "
7838 cat > conftest.$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7841 /* Override any gcc2 internal prototype to avoid an error. */
7842 /* We use char because int might match the return type of a gcc2
7843 builtin and then its argument prototype would still apply. */
7850 if { (eval echo configure:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7852 eval "ac_cv_lib_$ac_lib_var=yes"
7854 echo "configure: failed program was:" >&5
7855 cat conftest.$ac_ext >&5
7857 eval "ac_cv_lib_$ac_lib_var=no"
7862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7863 echo "$ac_t""yes" 1>&6
7866 echo "$ac_t""no" 1>&6
7871 if test "$have_motif $have_lesstif" = "yes no"; then
7873 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7874 echo "configure:7875: checking for XmImMbLookupString in -lXm" >&5
7875 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7877 xe_check_libs=" -lXm "
7878 cat > conftest.$ac_ext <<EOF
7879 #line 7880 "configure"
7880 #include "confdefs.h"
7881 /* Override any gcc2 internal prototype to avoid an error. */
7882 /* We use char because int might match the return type of a gcc2
7883 builtin and then its argument prototype would still apply. */
7884 char XmImMbLookupString();
7887 XmImMbLookupString()
7890 if { (eval echo configure:7891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7892 eval "ac_cv_lib_$ac_lib_var=yes"
7894 echo "configure: failed program was:" >&5
7895 cat conftest.$ac_ext >&5
7897 eval "ac_cv_lib_$ac_lib_var=no"
7902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7903 echo "$ac_t""yes" 1>&6
7906 echo "$ac_t""no" 1>&6
7912 if test "$with_xim" != "no"; then
7913 { test "$extra_verbose" = "yes" && cat << \EOF
7916 cat >> confdefs.h <<\EOF
7921 if test "$with_xim" = "xlib"; then
7922 { test "$extra_verbose" = "yes" && cat << \EOF
7925 cat >> confdefs.h <<\EOF
7930 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
7931 echo " xemacs will be linked with \"input-method-xlib.o\""
7934 if test "$with_xim" = "motif"; then
7935 { test "$extra_verbose" = "yes" && cat << \EOF
7938 cat >> confdefs.h <<\EOF
7944 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
7945 echo " xemacs will be linked with \"input-method-motif.o\""
7948 if test "$with_xim" = "motif"; then
7953 if test "$with_xfs" = "yes" ; then
7954 echo "checking for XFontSet" 1>&6
7955 echo "configure:7956: checking for XFontSet" >&5
7957 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
7958 echo "configure:7959: checking for XmbDrawString in -lX11" >&5
7959 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
7961 xe_check_libs=" -lX11 "
7962 cat > conftest.$ac_ext <<EOF
7963 #line 7964 "configure"
7964 #include "confdefs.h"
7965 /* Override any gcc2 internal prototype to avoid an error. */
7966 /* We use char because int might match the return type of a gcc2
7967 builtin and then its argument prototype would still apply. */
7968 char XmbDrawString();
7974 if { (eval echo configure:7975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7976 eval "ac_cv_lib_$ac_lib_var=yes"
7978 echo "configure: failed program was:" >&5
7979 cat conftest.$ac_ext >&5
7981 eval "ac_cv_lib_$ac_lib_var=no"
7986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7987 echo "$ac_t""yes" 1>&6
7990 echo "$ac_t""no" 1>&6
7995 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
7996 { test "$extra_verbose" = "yes" && cat << \EOF
7997 Defining USE_XFONTSET
7999 cat >> confdefs.h <<\EOF
8000 #define USE_XFONTSET 1
8004 if test "$with_xim" = "no" ; then
8005 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
8006 echo " xemacs will be linked with \"input-method-xfs.o\""
8011 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8012 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8013 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8014 echo "configure:8015: checking for wnn/jllib.h" >&5
8016 cat > conftest.$ac_ext <<EOF
8017 #line 8018 "configure"
8018 #include "confdefs.h"
8019 #include <wnn/jllib.h>
8021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8022 { (eval echo configure:8023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8024 if test -z "$ac_err"; then
8026 eval "ac_cv_header_$ac_safe=yes"
8029 echo "configure: failed program was:" >&5
8030 cat conftest.$ac_ext >&5
8032 eval "ac_cv_header_$ac_safe=no"
8035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8036 echo "$ac_t""yes" 1>&6
8039 echo "$ac_t""no" 1>&6
8043 if test "$with_wnn" != "no"; then
8044 for ac_func in crypt
8046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8047 echo "configure:8048: checking for $ac_func" >&5
8049 cat > conftest.$ac_ext <<EOF
8050 #line 8051 "configure"
8051 #include "confdefs.h"
8052 /* System header to define __stub macros and hopefully few prototypes,
8053 which can conflict with char $ac_func(); below. */
8055 /* Override any gcc2 internal prototype to avoid an error. */
8056 /* We use char because int might match the return type of a gcc2
8057 builtin and then its argument prototype would still apply. */
8062 /* The GNU C library defines this for functions which it implements
8063 to always fail with ENOSYS. Some functions are actually named
8064 something starting with __ and the normal name is an alias. */
8065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8073 if { (eval echo configure:8074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8075 eval "ac_cv_func_$ac_func=yes"
8077 echo "configure: failed program was:" >&5
8078 cat conftest.$ac_ext >&5
8080 eval "ac_cv_func_$ac_func=no"
8084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8085 echo "$ac_t""yes" 1>&6
8086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8087 { test "$extra_verbose" = "yes" && cat << EOF
8088 Defining $ac_tr_func
8090 cat >> confdefs.h <<EOF
8091 #define $ac_tr_func 1
8096 echo "$ac_t""no" 1>&6
8100 test "$ac_cv_func_crypt" != "yes" && {
8101 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8102 echo "configure:8103: checking for crypt in -lcrypt" >&5
8103 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8105 xe_check_libs=" -lcrypt "
8106 cat > conftest.$ac_ext <<EOF
8107 #line 8108 "configure"
8108 #include "confdefs.h"
8109 /* Override any gcc2 internal prototype to avoid an error. */
8110 /* We use char because int might match the return type of a gcc2
8111 builtin and then its argument prototype would still apply. */
8118 if { (eval echo configure:8119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8120 eval "ac_cv_lib_$ac_lib_var=yes"
8122 echo "configure: failed program was:" >&5
8123 cat conftest.$ac_ext >&5
8125 eval "ac_cv_lib_$ac_lib_var=no"
8130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8131 echo "$ac_t""yes" 1>&6
8132 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8133 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8134 { test "$extra_verbose" = "yes" && cat << EOF
8137 cat >> confdefs.h <<EOF
8138 #define $ac_tr_lib 1
8142 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
8145 echo "$ac_t""no" 1>&6
8150 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8152 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8153 echo "configure:8154: checking for jl_dic_list_e in -lwnn" >&5
8154 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8156 xe_check_libs=" -lwnn "
8157 cat > conftest.$ac_ext <<EOF
8158 #line 8159 "configure"
8159 #include "confdefs.h"
8160 /* Override any gcc2 internal prototype to avoid an error. */
8161 /* We use char because int might match the return type of a gcc2
8162 builtin and then its argument prototype would still apply. */
8163 char jl_dic_list_e();
8169 if { (eval echo configure:8170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8171 eval "ac_cv_lib_$ac_lib_var=yes"
8173 echo "configure: failed program was:" >&5
8174 cat conftest.$ac_ext >&5
8176 eval "ac_cv_lib_$ac_lib_var=no"
8181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8182 echo "$ac_t""yes" 1>&6
8185 echo "$ac_t""no" 1>&6
8186 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8187 echo "configure:8188: checking for jl_dic_list_e in -lwnn4" >&5
8188 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8190 xe_check_libs=" -lwnn4 "
8191 cat > conftest.$ac_ext <<EOF
8192 #line 8193 "configure"
8193 #include "confdefs.h"
8194 /* Override any gcc2 internal prototype to avoid an error. */
8195 /* We use char because int might match the return type of a gcc2
8196 builtin and then its argument prototype would still apply. */
8197 char jl_dic_list_e();
8203 if { (eval echo configure:8204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8205 eval "ac_cv_lib_$ac_lib_var=yes"
8207 echo "configure: failed program was:" >&5
8208 cat conftest.$ac_ext >&5
8210 eval "ac_cv_lib_$ac_lib_var=no"
8215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8216 echo "$ac_t""yes" 1>&6
8219 echo "$ac_t""no" 1>&6
8220 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8221 echo "configure:8222: checking for jl_dic_list_e in -lwnn6" >&5
8222 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8224 xe_check_libs=" -lwnn6 "
8225 cat > conftest.$ac_ext <<EOF
8226 #line 8227 "configure"
8227 #include "confdefs.h"
8228 /* Override any gcc2 internal prototype to avoid an error. */
8229 /* We use char because int might match the return type of a gcc2
8230 builtin and then its argument prototype would still apply. */
8231 char jl_dic_list_e();
8237 if { (eval echo configure:8238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8239 eval "ac_cv_lib_$ac_lib_var=yes"
8241 echo "configure: failed program was:" >&5
8242 cat conftest.$ac_ext >&5
8244 eval "ac_cv_lib_$ac_lib_var=no"
8249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8250 echo "$ac_t""yes" 1>&6
8253 echo "$ac_t""no" 1>&6
8254 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8255 echo "configure:8256: checking for dic_list_e in -lwnn6_fromsrc" >&5
8256 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8258 xe_check_libs=" -lwnn6_fromsrc "
8259 cat > conftest.$ac_ext <<EOF
8260 #line 8261 "configure"
8261 #include "confdefs.h"
8262 /* Override any gcc2 internal prototype to avoid an error. */
8263 /* We use char because int might match the return type of a gcc2
8264 builtin and then its argument prototype would still apply. */
8271 if { (eval echo configure:8272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8273 eval "ac_cv_lib_$ac_lib_var=yes"
8275 echo "configure: failed program was:" >&5
8276 cat conftest.$ac_ext >&5
8278 eval "ac_cv_lib_$ac_lib_var=no"
8283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8284 echo "$ac_t""yes" 1>&6
8287 echo "$ac_t""no" 1>&6
8302 test -z "$with_wnn" && with_wnn=yes
8303 if test "$with_wnn" = "yes"; then
8304 { test "$extra_verbose" = "yes" && cat << \EOF
8307 cat >> confdefs.h <<\EOF
8312 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
8313 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
8314 echo " xemacs will be linked with \"mule-wnnfns.o\""
8316 if test "$with_wnn6" != "no"; then
8318 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8319 echo "configure:8320: checking for jl_fi_dic_list in -l$libwnn" >&5
8320 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8322 xe_check_libs=" -l$libwnn "
8323 cat > conftest.$ac_ext <<EOF
8324 #line 8325 "configure"
8325 #include "confdefs.h"
8326 /* Override any gcc2 internal prototype to avoid an error. */
8327 /* We use char because int might match the return type of a gcc2
8328 builtin and then its argument prototype would still apply. */
8329 char jl_fi_dic_list();
8335 if { (eval echo configure:8336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8337 eval "ac_cv_lib_$ac_lib_var=yes"
8339 echo "configure: failed program was:" >&5
8340 cat conftest.$ac_ext >&5
8342 eval "ac_cv_lib_$ac_lib_var=no"
8347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8348 echo "$ac_t""yes" 1>&6
8351 echo "$ac_t""no" 1>&6
8355 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8358 cat >> confdefs.h <<\EOF
8366 canna_includes_found=no
8367 if test "$with_canna" != "no"; then
8368 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8369 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8370 echo "configure:8371: checking for canna/jrkanji.h" >&5
8372 cat > conftest.$ac_ext <<EOF
8373 #line 8374 "configure"
8374 #include "confdefs.h"
8375 #include <canna/jrkanji.h>
8377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8378 { (eval echo configure:8379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8380 if test -z "$ac_err"; then
8382 eval "ac_cv_header_$ac_safe=yes"
8385 echo "configure: failed program was:" >&5
8386 cat conftest.$ac_ext >&5
8388 eval "ac_cv_header_$ac_safe=no"
8391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8392 echo "$ac_t""yes" 1>&6
8393 canna_includes_found=yes
8395 echo "$ac_t""no" 1>&6
8399 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
8400 -d "/usr/local/canna/include"; then
8401 save_c_switch_site="$c_switch_site"
8402 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8403 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8404 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8405 echo "configure:8406: checking for canna/jrkanji.h" >&5
8407 cat > conftest.$ac_ext <<EOF
8408 #line 8409 "configure"
8409 #include "confdefs.h"
8410 #include <canna/jrkanji.h>
8412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8413 { (eval echo configure:8414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8415 if test -z "$ac_err"; then
8417 eval "ac_cv_header_$ac_safe=yes"
8420 echo "configure: failed program was:" >&5
8421 cat conftest.$ac_ext >&5
8423 eval "ac_cv_header_$ac_safe=no"
8426 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8427 echo "$ac_t""yes" 1>&6
8428 canna_includes_found=yes
8430 echo "$ac_t""no" 1>&6
8433 if test "$canna_includes_found" != "yes"; then
8434 c_switch_site="$save_c_switch_site"
8439 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8440 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8441 echo "configure:8442: checking for canna/RK.h" >&5
8443 cat > conftest.$ac_ext <<EOF
8444 #line 8445 "configure"
8445 #include "confdefs.h"
8446 #include <canna/RK.h>
8448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8449 { (eval echo configure:8450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8451 if test -z "$ac_err"; then
8453 eval "ac_cv_header_$ac_safe=yes"
8456 echo "configure: failed program was:" >&5
8457 cat conftest.$ac_ext >&5
8459 eval "ac_cv_header_$ac_safe=no"
8462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8463 echo "$ac_t""yes" 1>&6
8466 echo "$ac_t""no" 1>&6
8470 test -z "$with_canna" && {
8471 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8472 echo "configure:8473: checking for RkBgnBun in -lRKC" >&5
8473 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8475 xe_check_libs=" -lRKC "
8476 cat > conftest.$ac_ext <<EOF
8477 #line 8478 "configure"
8478 #include "confdefs.h"
8479 /* Override any gcc2 internal prototype to avoid an error. */
8480 /* We use char because int might match the return type of a gcc2
8481 builtin and then its argument prototype would still apply. */
8488 if { (eval echo configure:8489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8490 eval "ac_cv_lib_$ac_lib_var=yes"
8492 echo "configure: failed program was:" >&5
8493 cat conftest.$ac_ext >&5
8495 eval "ac_cv_lib_$ac_lib_var=no"
8500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8501 echo "$ac_t""yes" 1>&6
8504 echo "$ac_t""no" 1>&6
8509 test -z "$with_canna" && {
8510 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8511 echo "configure:8512: checking for jrKanjiControl in -lcanna" >&5
8512 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8514 xe_check_libs=" -lcanna "
8515 cat > conftest.$ac_ext <<EOF
8516 #line 8517 "configure"
8517 #include "confdefs.h"
8518 /* Override any gcc2 internal prototype to avoid an error. */
8519 /* We use char because int might match the return type of a gcc2
8520 builtin and then its argument prototype would still apply. */
8521 char jrKanjiControl();
8527 if { (eval echo configure:8528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8529 eval "ac_cv_lib_$ac_lib_var=yes"
8531 echo "configure: failed program was:" >&5
8532 cat conftest.$ac_ext >&5
8534 eval "ac_cv_lib_$ac_lib_var=no"
8539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8540 echo "$ac_t""yes" 1>&6
8543 echo "$ac_t""no" 1>&6
8548 test -z "$with_canna" && with_canna=yes
8549 if test "$with_canna" = "yes"; then
8550 { test "$extra_verbose" = "yes" && cat << \EOF
8553 cat >> confdefs.h <<\EOF
8554 #define HAVE_CANNA 1
8558 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
8559 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
8560 echo " xemacs will be linked with \"mule-canna.o\""
8564 else for feature in xim canna wnn; do
8565 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
8566 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
8568 eval "with_${feature}=no"
8572 if test "$need_motif" = "yes" ; then
8573 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8575 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8576 echo "configure:8577: checking for layout_object_getvalue in -li18n" >&5
8577 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8579 xe_check_libs=" -li18n "
8580 cat > conftest.$ac_ext <<EOF
8581 #line 8582 "configure"
8582 #include "confdefs.h"
8583 /* Override any gcc2 internal prototype to avoid an error. */
8584 /* We use char because int might match the return type of a gcc2
8585 builtin and then its argument prototype would still apply. */
8586 char layout_object_getvalue();
8589 layout_object_getvalue()
8592 if { (eval echo configure:8593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8594 eval "ac_cv_lib_$ac_lib_var=yes"
8596 echo "configure: failed program was:" >&5
8597 cat conftest.$ac_ext >&5
8599 eval "ac_cv_lib_$ac_lib_var=no"
8604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8605 echo "$ac_t""yes" 1>&6
8606 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
8608 echo "$ac_t""no" 1>&6
8613 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
8614 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8615 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8617 runpath="" runpath_dirs=""
8618 if test -n "$LD_RUN_PATH"; then
8619 runpath="$LD_RUN_PATH"
8620 elif test "$GCC" = "yes"; then
8621 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
8622 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
8623 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
8624 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
8625 case "$arg" in P,* | -L* | -R* )
8626 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
8628 xe_runpath_dir="$dir"
8629 test "$xe_runpath_dir" != "/lib" -a \
8630 "$xe_runpath_dir" != "/usr/lib" -a \
8631 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8632 eval "$xe_add_unique_runpath_dir"
8637 ld_switch_run="$ld_switch_run_save"
8640 for arg in $ld_switch_site $ld_switch_x_site; do
8641 case "$arg" in -L*) {
8642 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
8643 test "$xe_runpath_dir" != "/lib" -a \
8644 "$xe_runpath_dir" != "/usr/lib" -a \
8645 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8646 eval "$xe_add_unique_runpath_dir"
8649 if test "$opsys $need_motif" = "sol2 yes"; then
8650 xe_runpath_dir="/opt/SUNWdt/lib";
8651 eval "$xe_add_unique_runpath_dir";
8654 if test -n "$runpath"; then
8655 ld_switch_run="${dash_r}${runpath}"
8657 if test "$GCC" = "yes"; then
8658 set x $ld_switch_run; shift; ld_switch_run=""
8659 while test -n "$1"; do
8661 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8662 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
8664 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
8669 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
8675 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
8677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8678 echo "configure:8679: checking for $ac_func" >&5
8680 cat > conftest.$ac_ext <<EOF
8681 #line 8682 "configure"
8682 #include "confdefs.h"
8683 /* System header to define __stub macros and hopefully few prototypes,
8684 which can conflict with char $ac_func(); below. */
8686 /* Override any gcc2 internal prototype to avoid an error. */
8687 /* We use char because int might match the return type of a gcc2
8688 builtin and then its argument prototype would still apply. */
8693 /* The GNU C library defines this for functions which it implements
8694 to always fail with ENOSYS. Some functions are actually named
8695 something starting with __ and the normal name is an alias. */
8696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8704 if { (eval echo configure:8705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8706 eval "ac_cv_func_$ac_func=yes"
8708 echo "configure: failed program was:" >&5
8709 cat conftest.$ac_ext >&5
8711 eval "ac_cv_func_$ac_func=no"
8715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8716 echo "$ac_t""yes" 1>&6
8717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8718 { test "$extra_verbose" = "yes" && cat << EOF
8719 Defining $ac_tr_func
8721 cat >> confdefs.h <<EOF
8722 #define $ac_tr_func 1
8727 echo "$ac_t""no" 1>&6
8734 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8735 echo " xemacs will be linked with \"realpath.o\""
8738 case "$canonical" in
8739 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8740 echo " xemacs will be linked with \"realpath.o\""
8742 * ) for ac_func in realpath
8744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8745 echo "configure:8746: checking for $ac_func" >&5
8747 cat > conftest.$ac_ext <<EOF
8748 #line 8749 "configure"
8749 #include "confdefs.h"
8750 /* System header to define __stub macros and hopefully few prototypes,
8751 which can conflict with char $ac_func(); below. */
8753 /* Override any gcc2 internal prototype to avoid an error. */
8754 /* We use char because int might match the return type of a gcc2
8755 builtin and then its argument prototype would still apply. */
8760 /* The GNU C library defines this for functions which it implements
8761 to always fail with ENOSYS. Some functions are actually named
8762 something starting with __ and the normal name is an alias. */
8763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8771 if { (eval echo configure:8772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8773 eval "ac_cv_func_$ac_func=yes"
8775 echo "configure: failed program was:" >&5
8776 cat conftest.$ac_ext >&5
8778 eval "ac_cv_func_$ac_func=no"
8782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8783 echo "$ac_t""yes" 1>&6
8784 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8785 { test "$extra_verbose" = "yes" && cat << EOF
8786 Defining $ac_tr_func
8788 cat >> confdefs.h <<EOF
8789 #define $ac_tr_func 1
8794 echo "$ac_t""no" 1>&6
8798 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8799 echo " xemacs will be linked with \"realpath.o\""
8804 for ac_func in getloadavg
8806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8807 echo "configure:8808: checking for $ac_func" >&5
8809 cat > conftest.$ac_ext <<EOF
8810 #line 8811 "configure"
8811 #include "confdefs.h"
8812 /* System header to define __stub macros and hopefully few prototypes,
8813 which can conflict with char $ac_func(); below. */
8815 /* Override any gcc2 internal prototype to avoid an error. */
8816 /* We use char because int might match the return type of a gcc2
8817 builtin and then its argument prototype would still apply. */
8822 /* The GNU C library defines this for functions which it implements
8823 to always fail with ENOSYS. Some functions are actually named
8824 something starting with __ and the normal name is an alias. */
8825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8833 if { (eval echo configure:8834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8835 eval "ac_cv_func_$ac_func=yes"
8837 echo "configure: failed program was:" >&5
8838 cat conftest.$ac_ext >&5
8840 eval "ac_cv_func_$ac_func=no"
8844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8845 echo "$ac_t""yes" 1>&6
8846 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8847 { test "$extra_verbose" = "yes" && cat << EOF
8848 Defining $ac_tr_func
8850 cat >> confdefs.h <<EOF
8851 #define $ac_tr_func 1
8856 echo "$ac_t""no" 1>&6
8861 if test "$ac_cv_func_getloadavg" != "yes"
8863 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
8864 echo " xemacs will be linked with \"getloadavg.o\""
8868 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
8869 echo "configure:8870: checking for kstat_open in -lkstat" >&5
8870 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
8872 xe_check_libs=" -lkstat "
8873 cat > conftest.$ac_ext <<EOF
8874 #line 8875 "configure"
8875 #include "confdefs.h"
8876 /* Override any gcc2 internal prototype to avoid an error. */
8877 /* We use char because int might match the return type of a gcc2
8878 builtin and then its argument prototype would still apply. */
8885 if { (eval echo configure:8886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8887 eval "ac_cv_lib_$ac_lib_var=yes"
8889 echo "configure: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8892 eval "ac_cv_lib_$ac_lib_var=no"
8897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8898 echo "$ac_t""yes" 1>&6
8899 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8900 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8901 { test "$extra_verbose" = "yes" && cat << EOF
8904 cat >> confdefs.h <<EOF
8905 #define $ac_tr_lib 1
8909 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
8912 echo "$ac_t""no" 1>&6
8918 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
8919 echo "configure:8920: checking for kvm_read in -lkvm" >&5
8920 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
8922 xe_check_libs=" -lkvm "
8923 cat > conftest.$ac_ext <<EOF
8924 #line 8925 "configure"
8925 #include "confdefs.h"
8926 /* Override any gcc2 internal prototype to avoid an error. */
8927 /* We use char because int might match the return type of a gcc2
8928 builtin and then its argument prototype would still apply. */
8935 if { (eval echo configure:8936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8937 eval "ac_cv_lib_$ac_lib_var=yes"
8939 echo "configure: failed program was:" >&5
8940 cat conftest.$ac_ext >&5
8942 eval "ac_cv_lib_$ac_lib_var=no"
8947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8948 echo "$ac_t""yes" 1>&6
8949 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8950 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8951 { test "$extra_verbose" = "yes" && cat << EOF
8954 cat >> confdefs.h <<EOF
8955 #define $ac_tr_lib 1
8959 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
8962 echo "$ac_t""no" 1>&6
8968 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
8969 echo "configure:8970: checking whether netdb declares h_errno" >&5
8970 cat > conftest.$ac_ext <<EOF
8971 #line 8972 "configure"
8972 #include "confdefs.h"
8978 if { (eval echo configure:8979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8980 echo "$ac_t""yes" 1>&6
8981 { test "$extra_verbose" = "yes" && cat << \EOF
8982 Defining HAVE_H_ERRNO
8984 cat >> confdefs.h <<\EOF
8985 #define HAVE_H_ERRNO 1
8990 echo "configure: failed program was:" >&5
8991 cat conftest.$ac_ext >&5
8993 echo "$ac_t""no" 1>&6
8997 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
8998 echo "configure:8999: checking for sigsetjmp" >&5
8999 cat > conftest.$ac_ext <<EOF
9000 #line 9001 "configure"
9001 #include "confdefs.h"
9004 sigjmp_buf bar; sigsetjmp (bar, 0);
9007 if { (eval echo configure:9008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9009 echo "$ac_t""yes" 1>&6
9010 { test "$extra_verbose" = "yes" && cat << \EOF
9011 Defining HAVE_SIGSETJMP
9013 cat >> confdefs.h <<\EOF
9014 #define HAVE_SIGSETJMP 1
9019 echo "configure: failed program was:" >&5
9020 cat conftest.$ac_ext >&5
9022 echo "$ac_t""no" 1>&6
9026 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9027 echo "configure:9028: checking whether localtime caches TZ" >&5
9029 if test "$ac_cv_func_tzset" = "yes"; then
9030 cat > conftest.$ac_ext <<EOF
9031 #line 9032 "configure"
9032 #include "confdefs.h"
9035 # include <stdlib.h>
9037 extern char **environ;
9041 for (to = from = environ; (*to = *from); from++)
9042 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
9045 char TZ_GMT0[] = "TZ=GMT0";
9046 char TZ_PST8[] = "TZ=PST8";
9049 time_t now = time ((time_t *) 0);
9050 int hour_GMT0, hour_unset;
9051 if (putenv (TZ_GMT0) != 0)
9053 hour_GMT0 = localtime (&now)->tm_hour;
9055 hour_unset = localtime (&now)->tm_hour;
9056 if (putenv (TZ_PST8) != 0)
9058 if (localtime (&now)->tm_hour == hour_GMT0)
9061 if (localtime (&now)->tm_hour != hour_unset)
9066 if { (eval echo configure:9067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9068 emacs_cv_localtime_cache=no
9071 echo "configure: failed program was:" >&5
9072 cat conftest.$ac_ext >&5
9074 emacs_cv_localtime_cache=yes
9078 # If we lack tzset, report that localtime does not cache TZ,
9079 # since we can't invalidate the cache if we don't have tzset.
9080 emacs_cv_localtime_cache=no
9082 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
9083 if test $emacs_cv_localtime_cache = yes; then
9084 { test "$extra_verbose" = "yes" && cat << \EOF
9085 Defining LOCALTIME_CACHE
9087 cat >> confdefs.h <<\EOF
9088 #define LOCALTIME_CACHE 1
9094 if test "$HAVE_TIMEVAL" = "yes"; then
9095 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9096 echo "configure:9097: checking whether gettimeofday accepts one or two arguments" >&5
9097 cat > conftest.$ac_ext <<EOF
9098 #line 9099 "configure"
9099 #include "confdefs.h"
9101 #ifdef TIME_WITH_SYS_TIME
9102 #include <sys/time.h>
9105 #ifdef HAVE_SYS_TIME_H
9106 #include <sys/time.h>
9114 struct timeval time;
9115 struct timezone dummy;
9116 gettimeofday (&time, &dummy);
9120 if { (eval echo configure:9121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9122 echo "$ac_t""two" 1>&6
9124 echo "configure: failed program was:" >&5
9125 cat conftest.$ac_ext >&5
9127 echo "$ac_t""one" 1>&6
9128 { test "$extra_verbose" = "yes" && cat << \EOF
9129 Defining GETTIMEOFDAY_ONE_ARGUMENT
9131 cat >> confdefs.h <<\EOF
9132 #define GETTIMEOFDAY_ONE_ARGUMENT 1
9141 echo $ac_n "checking for inline""... $ac_c" 1>&6
9142 echo "configure:9143: checking for inline" >&5
9145 for ac_kw in inline __inline__ __inline; do
9146 cat > conftest.$ac_ext <<EOF
9147 #line 9148 "configure"
9148 #include "confdefs.h"
9154 if { (eval echo configure:9155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9156 ac_cv_c_inline=$ac_kw; break
9158 echo "configure: failed program was:" >&5
9159 cat conftest.$ac_ext >&5
9165 echo "$ac_t""$ac_cv_c_inline" 1>&6
9166 case "$ac_cv_c_inline" in
9168 no) { test "$extra_verbose" = "yes" && cat << \EOF
9171 cat >> confdefs.h <<\EOF
9176 *) { test "$extra_verbose" = "yes" && cat << EOF
9177 Defining inline = $ac_cv_c_inline
9179 cat >> confdefs.h <<EOF
9180 #define inline $ac_cv_c_inline
9186 if test "$ac_cv_c_inline" != "no"; then
9187 { test "$extra_verbose" = "yes" && cat << \EOF
9188 Defining HAVE_INLINE
9190 cat >> confdefs.h <<\EOF
9191 #define HAVE_INLINE 1
9195 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
9196 echo " xemacs will be linked with \"inline.o\""
9201 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9202 # for constant arguments. Useless!
9203 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9204 echo "configure:9205: checking for working alloca.h" >&5
9206 cat > conftest.$ac_ext <<EOF
9207 #line 9208 "configure"
9208 #include "confdefs.h"
9211 char *p = alloca(2 * sizeof(int));
9214 if { (eval echo configure:9215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9216 ac_cv_header_alloca_h=yes
9218 echo "configure: failed program was:" >&5
9219 cat conftest.$ac_ext >&5
9221 ac_cv_header_alloca_h=no
9225 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
9226 if test $ac_cv_header_alloca_h = yes; then
9227 { test "$extra_verbose" = "yes" && cat << \EOF
9228 Defining HAVE_ALLOCA_H
9230 cat >> confdefs.h <<\EOF
9231 #define HAVE_ALLOCA_H 1
9237 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9238 echo "configure:9239: checking for alloca" >&5
9240 cat > conftest.$ac_ext <<EOF
9241 #line 9242 "configure"
9242 #include "confdefs.h"
9245 # define alloca __builtin_alloca
9248 # include <malloc.h>
9249 # define alloca _alloca
9252 # include <alloca.h>
9257 # ifndef alloca /* predefined by HP cc +Olibcalls */
9266 char *p = (char *) alloca(1);
9269 if { (eval echo configure:9270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9271 ac_cv_func_alloca_works=yes
9273 echo "configure: failed program was:" >&5
9274 cat conftest.$ac_ext >&5
9276 ac_cv_func_alloca_works=no
9280 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
9281 if test $ac_cv_func_alloca_works = yes; then
9282 { test "$extra_verbose" = "yes" && cat << \EOF
9283 Defining HAVE_ALLOCA
9285 cat >> confdefs.h <<\EOF
9286 #define HAVE_ALLOCA 1
9292 if test $ac_cv_func_alloca_works = no; then
9293 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9294 # that cause trouble. Some versions do not even contain alloca or
9295 # contain a buggy version. If you still want to use their alloca,
9296 # use ar to extract alloca.o from them instead of compiling alloca.c.
9297 ALLOCA=alloca.${ac_objext}
9298 { test "$extra_verbose" = "yes" && cat << \EOF
9301 cat >> confdefs.h <<\EOF
9307 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9308 echo "configure:9309: checking whether alloca needs Cray hooks" >&5
9310 cat > conftest.$ac_ext <<EOF
9311 #line 9312 "configure"
9312 #include "confdefs.h"
9313 #if defined(CRAY) && ! defined(CRAY2)
9320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9321 egrep "webecray" >/dev/null 2>&1; then
9331 echo "$ac_t""$ac_cv_os_cray" 1>&6
9332 if test $ac_cv_os_cray = yes; then
9333 for ac_func in _getb67 GETB67 getb67; do
9334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9335 echo "configure:9336: checking for $ac_func" >&5
9337 cat > conftest.$ac_ext <<EOF
9338 #line 9339 "configure"
9339 #include "confdefs.h"
9340 /* System header to define __stub macros and hopefully few prototypes,
9341 which can conflict with char $ac_func(); below. */
9343 /* Override any gcc2 internal prototype to avoid an error. */
9344 /* We use char because int might match the return type of a gcc2
9345 builtin and then its argument prototype would still apply. */
9350 /* The GNU C library defines this for functions which it implements
9351 to always fail with ENOSYS. Some functions are actually named
9352 something starting with __ and the normal name is an alias. */
9353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9361 if { (eval echo configure:9362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9363 eval "ac_cv_func_$ac_func=yes"
9365 echo "configure: failed program was:" >&5
9366 cat conftest.$ac_ext >&5
9368 eval "ac_cv_func_$ac_func=no"
9372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9373 echo "$ac_t""yes" 1>&6
9374 { test "$extra_verbose" = "yes" && cat << EOF
9375 Defining CRAY_STACKSEG_END = $ac_func
9377 cat >> confdefs.h <<EOF
9378 #define CRAY_STACKSEG_END $ac_func
9384 echo "$ac_t""no" 1>&6
9390 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9391 echo "configure:9392: checking stack direction for C alloca" >&5
9393 cat > conftest.$ac_ext <<EOF
9394 #line 9395 "configure"
9395 #include "confdefs.h"
9396 find_stack_direction ()
9398 static char *addr = 0;
9403 return find_stack_direction ();
9406 return (&dummy > addr) ? 1 : -1;
9410 exit (find_stack_direction() < 0);
9413 if { (eval echo configure:9414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9415 ac_cv_c_stack_direction=1
9418 echo "configure: failed program was:" >&5
9419 cat conftest.$ac_ext >&5
9421 ac_cv_c_stack_direction=-1
9425 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
9426 { test "$extra_verbose" = "yes" && cat << EOF
9427 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
9429 cat >> confdefs.h <<EOF
9430 #define STACK_DIRECTION $ac_cv_c_stack_direction
9436 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
9437 echo " xemacs will be linked with \"$ALLOCA\""
9440 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9441 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9442 echo "configure:9443: checking for vfork.h" >&5
9444 cat > conftest.$ac_ext <<EOF
9445 #line 9446 "configure"
9446 #include "confdefs.h"
9449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9450 { (eval echo configure:9451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9452 if test -z "$ac_err"; then
9454 eval "ac_cv_header_$ac_safe=yes"
9457 echo "configure: failed program was:" >&5
9458 cat conftest.$ac_ext >&5
9460 eval "ac_cv_header_$ac_safe=no"
9463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9464 echo "$ac_t""yes" 1>&6
9465 { test "$extra_verbose" = "yes" && cat << \EOF
9466 Defining HAVE_VFORK_H
9468 cat >> confdefs.h <<\EOF
9469 #define HAVE_VFORK_H 1
9474 echo "$ac_t""no" 1>&6
9477 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9478 echo "configure:9479: checking for working vfork" >&5
9480 cat > conftest.$ac_ext <<EOF
9481 #line 9482 "configure"
9482 #include "confdefs.h"
9483 /* Thanks to Paul Eggert for this test. */
9485 #include <sys/types.h>
9486 #include <sys/stat.h>
9487 #ifdef HAVE_UNISTD_H
9493 /* On some sparc systems, changes by the child to local and incoming
9494 argument registers are propagated back to the parent.
9495 The compiler is told about this with #include <vfork.h>,
9496 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
9497 Test for this by using a static variable whose address
9498 is put into a register that is clobbered by the vfork. */
9501 sparc_address_test (int arg)
9503 sparc_address_test (arg) int arg;
9521 pid_t parent = getpid ();
9524 sparc_address_test ();
9529 /* Here is another test for sparc vfork register problems.
9530 This test uses lots of local variables, at least
9531 as many local variables as main has allocated so far
9532 including compiler temporaries. 4 locals are enough for
9533 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
9534 A buggy compiler should reuse the register of parent
9535 for one of the local variables, since it will think that
9536 parent can't possibly be used any more in this routine.
9537 Assigning to the local variable will thus munge parent
9538 in the parent process. */
9540 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9541 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9542 /* Convince the compiler that p..p7 are live; otherwise, it might
9543 use the same hardware register for all 8 local variables. */
9544 if (p != p1 || p != p2 || p != p3 || p != p4
9545 || p != p5 || p != p6 || p != p7)
9548 /* On some systems (e.g. IRIX 3.3),
9549 vfork doesn't separate parent from child file descriptors.
9550 If the child closes a descriptor before it execs or exits,
9551 this munges the parent's descriptor as well.
9552 Test for this by closing stdout in the child. */
9553 _exit(close(fileno(stdout)) != 0);
9558 while (wait(&status) != child)
9561 /* Was there some problem with vforking? */
9564 /* Did the child fail? (This shouldn't happen.) */
9567 /* Did the vfork/compiler bug occur? */
9568 || parent != getpid()
9570 /* Did the file descriptor bug occur? */
9571 || fstat(fileno(stdout), &st) != 0
9576 if { (eval echo configure:9577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9578 ac_cv_func_vfork_works=yes
9581 echo "configure: failed program was:" >&5
9582 cat conftest.$ac_ext >&5
9584 ac_cv_func_vfork_works=no
9588 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
9589 if test $ac_cv_func_vfork_works = no; then
9590 { test "$extra_verbose" = "yes" && cat << \EOF
9591 Defining vfork = fork
9593 cat >> confdefs.h <<\EOF
9601 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9602 echo "configure:9603: checking for working strcoll" >&5
9604 cat > conftest.$ac_ext <<EOF
9605 #line 9606 "configure"
9606 #include "confdefs.h"
9610 exit (strcoll ("abc", "def") >= 0 ||
9611 strcoll ("ABC", "DEF") >= 0 ||
9612 strcoll ("123", "456") >= 0);
9615 if { (eval echo configure:9616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9617 ac_cv_func_strcoll_works=yes
9620 echo "configure: failed program was:" >&5
9621 cat conftest.$ac_ext >&5
9623 ac_cv_func_strcoll_works=no
9627 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
9628 if test $ac_cv_func_strcoll_works = yes; then
9629 { test "$extra_verbose" = "yes" && cat << \EOF
9630 Defining HAVE_STRCOLL
9632 cat >> confdefs.h <<\EOF
9633 #define HAVE_STRCOLL 1
9640 for ac_func in getpgrp
9642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9643 echo "configure:9644: checking for $ac_func" >&5
9645 cat > conftest.$ac_ext <<EOF
9646 #line 9647 "configure"
9647 #include "confdefs.h"
9648 /* System header to define __stub macros and hopefully few prototypes,
9649 which can conflict with char $ac_func(); below. */
9651 /* Override any gcc2 internal prototype to avoid an error. */
9652 /* We use char because int might match the return type of a gcc2
9653 builtin and then its argument prototype would still apply. */
9658 /* The GNU C library defines this for functions which it implements
9659 to always fail with ENOSYS. Some functions are actually named
9660 something starting with __ and the normal name is an alias. */
9661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9669 if { (eval echo configure:9670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9671 eval "ac_cv_func_$ac_func=yes"
9673 echo "configure: failed program was:" >&5
9674 cat conftest.$ac_ext >&5
9676 eval "ac_cv_func_$ac_func=no"
9680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9681 echo "$ac_t""yes" 1>&6
9682 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9683 { test "$extra_verbose" = "yes" && cat << EOF
9684 Defining $ac_tr_func
9686 cat >> confdefs.h <<EOF
9687 #define $ac_tr_func 1
9692 echo "$ac_t""no" 1>&6
9696 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9697 echo "configure:9698: checking whether getpgrp takes no argument" >&5
9699 cat > conftest.$ac_ext <<EOF
9700 #line 9701 "configure"
9701 #include "confdefs.h"
9704 * If this system has a BSD-style getpgrp(),
9705 * which takes a pid argument, exit unsuccessfully.
9707 * Snarfed from Chet Ramey's bash pgrp.c test program
9710 #include <sys/types.h>
9713 int pg1, pg2, pg3, pg4;
9714 int ng, np, s, child;
9725 * If all of these values are the same, it's pretty sure that
9726 * we're on a system that ignores getpgrp's first argument.
9728 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
9734 else if (child == 0) {
9737 * If this is Sys V, this will not work; pgrp will be
9738 * set to np because setpgrp just changes a pgrp to be
9739 * the same as the pid.
9742 ng = getpgrp(0); /* Same result for Sys V and BSD */
9755 if { (eval echo configure:9756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9757 ac_cv_func_getpgrp_void=yes
9760 echo "configure: failed program was:" >&5
9761 cat conftest.$ac_ext >&5
9763 ac_cv_func_getpgrp_void=no
9768 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
9769 if test $ac_cv_func_getpgrp_void = yes; then
9770 { test "$extra_verbose" = "yes" && cat << \EOF
9771 Defining GETPGRP_VOID
9773 cat >> confdefs.h <<\EOF
9774 #define GETPGRP_VOID 1
9781 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9782 echo "configure:9783: checking for working mmap" >&5
9783 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9784 cat > conftest.$ac_ext <<EOF
9785 #line 9786 "configure"
9786 #include "confdefs.h"
9790 #include <sys/mman.h>
9792 #ifndef MAP_VARIABLE
9793 #define MAP_VARIABLE 0
9797 #define MAP_FAILED -1
9800 int main (int argc, char *argv[])
9804 #ifndef MAP_ANONYMOUS
9805 fd = open ("/dev/zero", O_RDWR);
9808 #define MAP_ANONYMOUS 0
9810 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
9811 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
9812 fd, 0) != (void *) MAP_FAILED)
9814 perror ("conftest: mmap failed");
9818 if { (eval echo configure:9819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9823 echo "configure: failed program was:" >&5
9824 cat conftest.$ac_ext >&5
9830 echo "$ac_t""$have_mmap" 1>&6
9831 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9834 cat >> confdefs.h <<\EOF
9839 for ac_hdr in unistd.h
9841 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9842 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9843 echo "configure:9844: checking for $ac_hdr" >&5
9845 cat > conftest.$ac_ext <<EOF
9846 #line 9847 "configure"
9847 #include "confdefs.h"
9850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9851 { (eval echo configure:9852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9853 if test -z "$ac_err"; then
9855 eval "ac_cv_header_$ac_safe=yes"
9858 echo "configure: failed program was:" >&5
9859 cat conftest.$ac_ext >&5
9861 eval "ac_cv_header_$ac_safe=no"
9864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9865 echo "$ac_t""yes" 1>&6
9866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9867 { test "$extra_verbose" = "yes" && cat << EOF
9870 cat >> confdefs.h <<EOF
9871 #define $ac_tr_hdr 1
9876 echo "$ac_t""no" 1>&6
9880 for ac_func in getpagesize
9882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9883 echo "configure:9884: checking for $ac_func" >&5
9885 cat > conftest.$ac_ext <<EOF
9886 #line 9887 "configure"
9887 #include "confdefs.h"
9888 /* System header to define __stub macros and hopefully few prototypes,
9889 which can conflict with char $ac_func(); below. */
9891 /* Override any gcc2 internal prototype to avoid an error. */
9892 /* We use char because int might match the return type of a gcc2
9893 builtin and then its argument prototype would still apply. */
9898 /* The GNU C library defines this for functions which it implements
9899 to always fail with ENOSYS. Some functions are actually named
9900 something starting with __ and the normal name is an alias. */
9901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9909 if { (eval echo configure:9910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9911 eval "ac_cv_func_$ac_func=yes"
9913 echo "configure: failed program was:" >&5
9914 cat conftest.$ac_ext >&5
9916 eval "ac_cv_func_$ac_func=no"
9920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9921 echo "$ac_t""yes" 1>&6
9922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9923 { test "$extra_verbose" = "yes" && cat << EOF
9924 Defining $ac_tr_func
9926 cat >> confdefs.h <<EOF
9927 #define $ac_tr_func 1
9932 echo "$ac_t""no" 1>&6
9936 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9937 echo "configure:9938: checking for working mmap" >&5
9939 cat > conftest.$ac_ext <<EOF
9940 #line 9941 "configure"
9941 #include "confdefs.h"
9943 /* Thanks to Mike Haertel and Jim Avera for this test.
9944 Here is a matrix of mmap possibilities:
9945 mmap private not fixed
9946 mmap private fixed at somewhere currently unmapped
9947 mmap private fixed at somewhere already mapped
9948 mmap shared not fixed
9949 mmap shared fixed at somewhere currently unmapped
9950 mmap shared fixed at somewhere already mapped
9951 For private mappings, we should verify that changes cannot be read()
9952 back from the file, nor mmap's back from the file at a different
9953 address. (There have been systems where private was not correctly
9954 implemented like the infamous i386 svr4.0, and systems where the
9955 VM page cache was not coherent with the filesystem buffer cache
9956 like early versions of FreeBSD and possibly contemporary NetBSD.)
9957 For shared mappings, we should conversely verify that changes get
9958 propogated back to all the places they're supposed to be.
9960 Grep wants private fixed already mapped.
9961 The main things grep needs to know about mmap are:
9962 * does it exist and is it safe to write into the mmap'd area
9963 * how to use it (BSD variants) */
9964 #include <sys/types.h>
9966 #include <sys/mman.h>
9968 /* This mess was copied from the GNU getpagesize.h. */
9969 #ifndef HAVE_GETPAGESIZE
9970 # ifdef HAVE_UNISTD_H
9971 # include <unistd.h>
9974 /* Assume that all systems that can run configure have sys/param.h. */
9975 # ifndef HAVE_SYS_PARAM_H
9976 # define HAVE_SYS_PARAM_H 1
9979 # ifdef _SC_PAGESIZE
9980 # define getpagesize() sysconf(_SC_PAGESIZE)
9981 # else /* no _SC_PAGESIZE */
9982 # ifdef HAVE_SYS_PARAM_H
9983 # include <sys/param.h>
9984 # ifdef EXEC_PAGESIZE
9985 # define getpagesize() EXEC_PAGESIZE
9986 # else /* no EXEC_PAGESIZE */
9988 # define getpagesize() NBPG * CLSIZE
9991 # endif /* no CLSIZE */
9992 # else /* no NBPG */
9994 # define getpagesize() NBPC
9995 # else /* no NBPC */
9997 # define getpagesize() PAGESIZE
9998 # endif /* PAGESIZE */
9999 # endif /* no NBPC */
10000 # endif /* no NBPG */
10001 # endif /* no EXEC_PAGESIZE */
10002 # else /* no HAVE_SYS_PARAM_H */
10003 # define getpagesize() 8192 /* punt totally */
10004 # endif /* no HAVE_SYS_PARAM_H */
10005 # endif /* no _SC_PAGESIZE */
10007 #endif /* no HAVE_GETPAGESIZE */
10010 extern "C" { void *malloc(unsigned); }
10018 char *data, *data2, *data3;
10022 pagesize = getpagesize();
10025 * First, make a file with some known garbage in it.
10027 data = malloc(pagesize);
10030 for (i = 0; i < pagesize; ++i)
10031 *(data + i) = rand();
10033 fd = creat("conftestmmap", 0600);
10036 if (write(fd, data, pagesize) != pagesize)
10041 * Next, try to mmap the file at a fixed address which
10042 * already has something else allocated at it. If we can,
10043 * also make sure that we see the same garbage.
10045 fd = open("conftestmmap", O_RDWR);
10048 data2 = malloc(2 * pagesize);
10051 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
10052 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
10053 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10055 for (i = 0; i < pagesize; ++i)
10056 if (*(data + i) != *(data2 + i))
10060 * Finally, make sure that changes to the mapped area
10061 * do not percolate back to the file as seen by read().
10062 * (This is a bug on some variants of i386 svr4.0.)
10064 for (i = 0; i < pagesize; ++i)
10065 *(data2 + i) = *(data2 + i) + 1;
10066 data3 = malloc(pagesize);
10069 if (read(fd, data3, pagesize) != pagesize)
10071 for (i = 0; i < pagesize; ++i)
10072 if (*(data + i) != *(data3 + i))
10075 unlink("conftestmmap");
10080 if { (eval echo configure:10081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10082 ac_cv_func_mmap_fixed_mapped=yes
10085 echo "configure: failed program was:" >&5
10086 cat conftest.$ac_ext >&5
10088 ac_cv_func_mmap_fixed_mapped=no
10092 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
10093 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10094 { test "$extra_verbose" = "yes" && cat << \EOF
10097 cat >> confdefs.h <<\EOF
10098 #define HAVE_MMAP 1
10105 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10106 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
10107 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10110 cat >> confdefs.h <<\EOF
10111 #define REL_ALLOC 1
10116 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10117 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10118 echo "configure:10119: checking for termios.h" >&5
10120 cat > conftest.$ac_ext <<EOF
10121 #line 10122 "configure"
10122 #include "confdefs.h"
10123 #include <termios.h>
10125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10126 { (eval echo configure:10127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10128 if test -z "$ac_err"; then
10130 eval "ac_cv_header_$ac_safe=yes"
10133 echo "configure: failed program was:" >&5
10134 cat conftest.$ac_ext >&5
10136 eval "ac_cv_header_$ac_safe=no"
10139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10140 echo "$ac_t""yes" 1>&6
10141 { test "$extra_verbose" = "yes" && cat << \EOF
10142 Defining HAVE_TERMIOS
10144 cat >> confdefs.h <<\EOF
10145 #define HAVE_TERMIOS 1
10149 { test "$extra_verbose" = "yes" && cat << \EOF
10150 Defining SIGNALS_VIA_CHARACTERS
10152 cat >> confdefs.h <<\EOF
10153 #define SIGNALS_VIA_CHARACTERS 1
10157 { test "$extra_verbose" = "yes" && cat << \EOF
10160 cat >> confdefs.h <<\EOF
10161 #define NO_TERMIO 1
10166 echo "$ac_t""no" 1>&6
10167 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10168 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10169 echo "configure:10170: checking for termio.h" >&5
10171 cat > conftest.$ac_ext <<EOF
10172 #line 10173 "configure"
10173 #include "confdefs.h"
10174 #include <termio.h>
10176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10177 { (eval echo configure:10178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10179 if test -z "$ac_err"; then
10181 eval "ac_cv_header_$ac_safe=yes"
10184 echo "configure: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10187 eval "ac_cv_header_$ac_safe=no"
10190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10191 echo "$ac_t""yes" 1>&6
10192 { test "$extra_verbose" = "yes" && cat << \EOF
10193 Defining HAVE_TERMIO
10195 cat >> confdefs.h <<\EOF
10196 #define HAVE_TERMIO 1
10201 echo "$ac_t""no" 1>&6
10208 echo $ac_n "checking for socket""... $ac_c" 1>&6
10209 echo "configure:10210: checking for socket" >&5
10211 cat > conftest.$ac_ext <<EOF
10212 #line 10213 "configure"
10213 #include "confdefs.h"
10214 /* System header to define __stub macros and hopefully few prototypes,
10215 which can conflict with char socket(); below. */
10216 #include <assert.h>
10217 /* Override any gcc2 internal prototype to avoid an error. */
10218 /* We use char because int might match the return type of a gcc2
10219 builtin and then its argument prototype would still apply. */
10224 /* The GNU C library defines this for functions which it implements
10225 to always fail with ENOSYS. Some functions are actually named
10226 something starting with __ and the normal name is an alias. */
10227 #if defined (__stub_socket) || defined (__stub___socket)
10235 if { (eval echo configure:10236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10237 eval "ac_cv_func_socket=yes"
10239 echo "configure: failed program was:" >&5
10240 cat conftest.$ac_ext >&5
10242 eval "ac_cv_func_socket=no"
10246 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10247 echo "$ac_t""yes" 1>&6
10248 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10249 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10250 echo "configure:10251: checking for netinet/in.h" >&5
10252 cat > conftest.$ac_ext <<EOF
10253 #line 10254 "configure"
10254 #include "confdefs.h"
10255 #include <netinet/in.h>
10257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10258 { (eval echo configure:10259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10260 if test -z "$ac_err"; then
10262 eval "ac_cv_header_$ac_safe=yes"
10265 echo "configure: failed program was:" >&5
10266 cat conftest.$ac_ext >&5
10268 eval "ac_cv_header_$ac_safe=no"
10271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10272 echo "$ac_t""yes" 1>&6
10273 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10274 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10275 echo "configure:10276: checking for arpa/inet.h" >&5
10277 cat > conftest.$ac_ext <<EOF
10278 #line 10279 "configure"
10279 #include "confdefs.h"
10280 #include <arpa/inet.h>
10282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10283 { (eval echo configure:10284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10285 if test -z "$ac_err"; then
10287 eval "ac_cv_header_$ac_safe=yes"
10290 echo "configure: failed program was:" >&5
10291 cat conftest.$ac_ext >&5
10293 eval "ac_cv_header_$ac_safe=no"
10296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10297 echo "$ac_t""yes" 1>&6
10299 { test "$extra_verbose" = "yes" && cat << \EOF
10300 Defining HAVE_SOCKETS
10302 cat >> confdefs.h <<\EOF
10303 #define HAVE_SOCKETS 1
10307 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10308 echo "configure:10309: checking "for sun_len member in struct sockaddr_un"" >&5
10309 cat > conftest.$ac_ext <<EOF
10310 #line 10311 "configure"
10311 #include "confdefs.h"
10313 #include <sys/types.h>
10314 #include <sys/socket.h>
10315 #include <sys/un.h>
10318 static struct sockaddr_un x; x.sun_len = 1;
10321 if { (eval echo configure:10322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10323 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10324 Defining HAVE_SOCKADDR_SUN_LEN
10326 cat >> confdefs.h <<\EOF
10327 #define HAVE_SOCKADDR_SUN_LEN 1
10332 echo "configure: failed program was:" >&5
10333 cat conftest.$ac_ext >&5
10335 echo "$ac_t""no" 1>&6
10338 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10339 echo "configure:10340: checking "for ip_mreq struct in netinet/in.h"" >&5
10340 cat > conftest.$ac_ext <<EOF
10341 #line 10342 "configure"
10342 #include "confdefs.h"
10344 #include <sys/types.h>
10345 #include <netinet/in.h>
10348 static struct ip_mreq x;
10351 if { (eval echo configure:10352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10353 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10354 Defining HAVE_MULTICAST
10356 cat >> confdefs.h <<\EOF
10357 #define HAVE_MULTICAST 1
10362 echo "configure: failed program was:" >&5
10363 cat conftest.$ac_ext >&5
10365 echo "$ac_t""no" 1>&6
10369 echo "$ac_t""no" 1>&6
10373 echo "$ac_t""no" 1>&6
10377 echo "$ac_t""no" 1>&6
10381 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10382 echo "configure:10383: checking for msgget" >&5
10384 cat > conftest.$ac_ext <<EOF
10385 #line 10386 "configure"
10386 #include "confdefs.h"
10387 /* System header to define __stub macros and hopefully few prototypes,
10388 which can conflict with char msgget(); below. */
10389 #include <assert.h>
10390 /* Override any gcc2 internal prototype to avoid an error. */
10391 /* We use char because int might match the return type of a gcc2
10392 builtin and then its argument prototype would still apply. */
10397 /* The GNU C library defines this for functions which it implements
10398 to always fail with ENOSYS. Some functions are actually named
10399 something starting with __ and the normal name is an alias. */
10400 #if defined (__stub_msgget) || defined (__stub___msgget)
10408 if { (eval echo configure:10409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10410 eval "ac_cv_func_msgget=yes"
10412 echo "configure: failed program was:" >&5
10413 cat conftest.$ac_ext >&5
10415 eval "ac_cv_func_msgget=no"
10419 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10420 echo "$ac_t""yes" 1>&6
10421 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10422 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10423 echo "configure:10424: checking for sys/ipc.h" >&5
10425 cat > conftest.$ac_ext <<EOF
10426 #line 10427 "configure"
10427 #include "confdefs.h"
10428 #include <sys/ipc.h>
10430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10431 { (eval echo configure:10432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10433 if test -z "$ac_err"; then
10435 eval "ac_cv_header_$ac_safe=yes"
10438 echo "configure: failed program was:" >&5
10439 cat conftest.$ac_ext >&5
10441 eval "ac_cv_header_$ac_safe=no"
10444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10445 echo "$ac_t""yes" 1>&6
10446 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10447 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10448 echo "configure:10449: checking for sys/msg.h" >&5
10450 cat > conftest.$ac_ext <<EOF
10451 #line 10452 "configure"
10452 #include "confdefs.h"
10453 #include <sys/msg.h>
10455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10456 { (eval echo configure:10457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10458 if test -z "$ac_err"; then
10460 eval "ac_cv_header_$ac_safe=yes"
10463 echo "configure: failed program was:" >&5
10464 cat conftest.$ac_ext >&5
10466 eval "ac_cv_header_$ac_safe=no"
10469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10470 echo "$ac_t""yes" 1>&6
10471 { test "$extra_verbose" = "yes" && cat << \EOF
10472 Defining HAVE_SYSVIPC
10474 cat >> confdefs.h <<\EOF
10475 #define HAVE_SYSVIPC 1
10480 echo "$ac_t""no" 1>&6
10484 echo "$ac_t""no" 1>&6
10488 echo "$ac_t""no" 1>&6
10492 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10493 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10494 echo "configure:10495: checking for dirent.h" >&5
10496 cat > conftest.$ac_ext <<EOF
10497 #line 10498 "configure"
10498 #include "confdefs.h"
10499 #include <dirent.h>
10501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10502 { (eval echo configure:10503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10504 if test -z "$ac_err"; then
10506 eval "ac_cv_header_$ac_safe=yes"
10509 echo "configure: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10512 eval "ac_cv_header_$ac_safe=no"
10515 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10516 echo "$ac_t""yes" 1>&6
10517 { test "$extra_verbose" = "yes" && cat << \EOF
10518 Defining SYSV_SYSTEM_DIR
10520 cat >> confdefs.h <<\EOF
10521 #define SYSV_SYSTEM_DIR 1
10526 echo "$ac_t""no" 1>&6
10527 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10528 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10529 echo "configure:10530: checking for sys/dir.h" >&5
10531 cat > conftest.$ac_ext <<EOF
10532 #line 10533 "configure"
10533 #include "confdefs.h"
10534 #include <sys/dir.h>
10536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10537 { (eval echo configure:10538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10539 if test -z "$ac_err"; then
10541 eval "ac_cv_header_$ac_safe=yes"
10544 echo "configure: failed program was:" >&5
10545 cat conftest.$ac_ext >&5
10547 eval "ac_cv_header_$ac_safe=no"
10550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10551 echo "$ac_t""yes" 1>&6
10554 echo "$ac_t""no" 1>&6
10555 { test "$extra_verbose" = "yes" && cat << \EOF
10556 Defining NONSYSTEM_DIR_LIBRARY
10558 cat >> confdefs.h <<\EOF
10559 #define NONSYSTEM_DIR_LIBRARY 1
10568 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10569 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10570 echo "configure:10571: checking for nlist.h" >&5
10572 cat > conftest.$ac_ext <<EOF
10573 #line 10574 "configure"
10574 #include "confdefs.h"
10577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10578 { (eval echo configure:10579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10580 if test -z "$ac_err"; then
10582 eval "ac_cv_header_$ac_safe=yes"
10585 echo "configure: failed program was:" >&5
10586 cat conftest.$ac_ext >&5
10588 eval "ac_cv_header_$ac_safe=no"
10591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10592 echo "$ac_t""yes" 1>&6
10593 { test "$extra_verbose" = "yes" && cat << \EOF
10594 Defining NLIST_STRUCT
10596 cat >> confdefs.h <<\EOF
10597 #define NLIST_STRUCT 1
10602 echo "$ac_t""no" 1>&6
10607 echo "checking "for sound support"" 1>&6
10608 echo "configure:10609: checking "for sound support"" >&5
10609 case "$with_sound" in
10610 native | both ) with_native_sound=yes;;
10611 nas | no ) with_native_sound=no;;
10613 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10615 if test "$with_native_sound" != "no"; then
10616 if test -n "$native_sound_lib"; then
10617 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10618 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10619 echo "configure:10620: checking for multimedia/audio_device.h" >&5
10621 cat > conftest.$ac_ext <<EOF
10622 #line 10623 "configure"
10623 #include "confdefs.h"
10624 #include <multimedia/audio_device.h>
10626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10627 { (eval echo configure:10628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10629 if test -z "$ac_err"; then
10631 eval "ac_cv_header_$ac_safe=yes"
10634 echo "configure: failed program was:" >&5
10635 cat conftest.$ac_ext >&5
10637 eval "ac_cv_header_$ac_safe=no"
10640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10641 echo "$ac_t""yes" 1>&6
10642 sound_found=yes sound_cflags=""
10643 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10644 echo " xemacs will be linked with \"sunplay.o\""
10647 echo "$ac_t""no" 1>&6
10652 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
10654 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10655 echo " xemacs will be linked with \"sunplay.o\""
10657 if test -d "/usr/demo/SOUND/include"
10658 then sound_cflags="-I/usr/demo/SOUND/include"
10659 else sound_cflags="-I/usr/demo/SOUND"
10661 if test -z "$native_sound_lib" ; then
10662 if test -r "/usr/demo/SOUND/lib/libaudio.a"
10663 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
10664 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
10669 if test -z "$sound_found"; then
10670 case "$canonical" in
10672 if test -z "$native_sound_lib"; then
10674 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10675 echo "configure:10676: checking for ALopenport in -laudio" >&5
10676 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10678 xe_check_libs=" -laudio "
10679 cat > conftest.$ac_ext <<EOF
10680 #line 10681 "configure"
10681 #include "confdefs.h"
10682 /* Override any gcc2 internal prototype to avoid an error. */
10683 /* We use char because int might match the return type of a gcc2
10684 builtin and then its argument prototype would still apply. */
10691 if { (eval echo configure:10692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10693 eval "ac_cv_lib_$ac_lib_var=yes"
10695 echo "configure: failed program was:" >&5
10696 cat conftest.$ac_ext >&5
10698 eval "ac_cv_lib_$ac_lib_var=no"
10703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10704 echo "$ac_t""yes" 1>&6
10705 native_sound_lib="-laudio"
10707 echo "$ac_t""no" 1>&6
10712 if test -n "$native_sound_lib"; then
10713 sound_found=yes sound_cflags=""
10714 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
10715 echo " xemacs will be linked with \"sgiplay.o\""
10719 if test -z "$native_sound_lib"; then
10721 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10722 echo "configure:10723: checking for AOpenAudio in -lAlib" >&5
10723 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10725 xe_check_libs=" -lAlib "
10726 cat > conftest.$ac_ext <<EOF
10727 #line 10728 "configure"
10728 #include "confdefs.h"
10729 /* Override any gcc2 internal prototype to avoid an error. */
10730 /* We use char because int might match the return type of a gcc2
10731 builtin and then its argument prototype would still apply. */
10738 if { (eval echo configure:10739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10740 eval "ac_cv_lib_$ac_lib_var=yes"
10742 echo "configure: failed program was:" >&5
10743 cat conftest.$ac_ext >&5
10745 eval "ac_cv_lib_$ac_lib_var=no"
10750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10751 echo "$ac_t""yes" 1>&6
10752 native_sound_lib="-lAlib"
10754 echo "$ac_t""no" 1>&6
10759 if test -n "$native_sound_lib"; then
10761 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
10762 echo " xemacs will be linked with \"hpplay.o\""
10764 if test "$GCC" = "yes" # Kludge city
10765 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
10766 else sound_cflags="+e -I/usr/audio/examples"
10772 if test -z "$sound_found"; then
10773 for dir in "machine" "sys" "linux"; do
10774 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10775 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10776 echo "configure:10777: checking for ${dir}/soundcard.h" >&5
10778 cat > conftest.$ac_ext <<EOF
10779 #line 10780 "configure"
10780 #include "confdefs.h"
10781 #include <${dir}/soundcard.h>
10783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10784 { (eval echo configure:10785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10786 if test -z "$ac_err"; then
10788 eval "ac_cv_header_$ac_safe=yes"
10791 echo "configure: failed program was:" >&5
10792 cat conftest.$ac_ext >&5
10794 eval "ac_cv_header_$ac_safe=no"
10797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10798 echo "$ac_t""yes" 1>&6
10800 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
10801 echo " xemacs will be linked with \"linuxplay.o\""
10803 { test "$extra_verbose" = "yes" && cat << EOF
10804 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
10806 cat >> confdefs.h <<EOF
10807 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
10813 echo "$ac_t""no" 1>&6
10819 test "$sound_found" = "yes" && with_native_sound=yes
10822 if test -z "$with_sound"; then
10823 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
10828 if test "$with_native_sound" = "yes"; then
10829 { test "$extra_verbose" = "yes" && cat << \EOF
10830 Defining HAVE_NATIVE_SOUND
10832 cat >> confdefs.h <<\EOF
10833 #define HAVE_NATIVE_SOUND 1
10837 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
10840 case "$with_sound" in both | nas )
10841 { test "$extra_verbose" = "yes" && cat << \EOF
10842 Defining HAVE_NAS_SOUND
10844 cat >> confdefs.h <<\EOF
10845 #define HAVE_NAS_SOUND 1
10849 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10850 echo " xemacs will be linked with \"nas.o\""
10852 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10853 cat > conftest.$ac_ext <<EOF
10854 #line 10855 "configure"
10855 #include "confdefs.h"
10856 #include <audio/Xtutil.h>
10858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10859 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10863 { test "$extra_verbose" = "yes" && cat << \EOF
10864 Defining NAS_NO_ERROR_JUMP
10866 cat >> confdefs.h <<\EOF
10867 #define NAS_NO_ERROR_JUMP 1
10877 test -z "$with_tty" && with_tty=yes
10879 if test "$with_tty" = "yes" ; then
10880 echo "checking for TTY-related features" 1>&6
10881 echo "configure:10882: checking for TTY-related features" >&5
10882 { test "$extra_verbose" = "yes" && cat << \EOF
10885 cat >> confdefs.h <<\EOF
10890 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
10891 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\""
10894 if test -z "$with_ncurses"; then
10896 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10897 echo "configure:10898: checking for tgetent in -lncurses" >&5
10898 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10900 xe_check_libs=" -lncurses "
10901 cat > conftest.$ac_ext <<EOF
10902 #line 10903 "configure"
10903 #include "confdefs.h"
10904 /* Override any gcc2 internal prototype to avoid an error. */
10905 /* We use char because int might match the return type of a gcc2
10906 builtin and then its argument prototype would still apply. */
10913 if { (eval echo configure:10914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10915 eval "ac_cv_lib_$ac_lib_var=yes"
10917 echo "configure: failed program was:" >&5
10918 cat conftest.$ac_ext >&5
10920 eval "ac_cv_lib_$ac_lib_var=no"
10925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10926 echo "$ac_t""yes" 1>&6
10929 echo "$ac_t""no" 1>&6
10935 if test "$with_ncurses" = "yes"; then
10936 { test "$extra_verbose" = "yes" && cat << \EOF
10937 Defining HAVE_NCURSES
10939 cat >> confdefs.h <<\EOF
10940 #define HAVE_NCURSES 1
10944 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10945 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10946 echo "configure:10947: checking for ncurses/curses.h" >&5
10948 cat > conftest.$ac_ext <<EOF
10949 #line 10950 "configure"
10950 #include "confdefs.h"
10951 #include <ncurses/curses.h>
10953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10954 { (eval echo configure:10955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10956 if test -z "$ac_err"; then
10958 eval "ac_cv_header_$ac_safe=yes"
10961 echo "configure: failed program was:" >&5
10962 cat conftest.$ac_ext >&5
10964 eval "ac_cv_header_$ac_safe=no"
10967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10968 echo "$ac_t""yes" 1>&6
10969 curses_h_path=ncurses/curses.h
10971 echo "$ac_t""no" 1>&6
10974 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10975 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10976 echo "configure:10977: checking for ncurses/term.h" >&5
10978 cat > conftest.$ac_ext <<EOF
10979 #line 10980 "configure"
10980 #include "confdefs.h"
10981 #include <ncurses/term.h>
10983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10984 { (eval echo configure:10985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10986 if test -z "$ac_err"; then
10988 eval "ac_cv_header_$ac_safe=yes"
10991 echo "configure: failed program was:" >&5
10992 cat conftest.$ac_ext >&5
10994 eval "ac_cv_header_$ac_safe=no"
10997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10998 echo "$ac_t""yes" 1>&6
10999 term_h_path=ncurses/term.h
11001 echo "$ac_t""no" 1>&6
11004 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11005 echo " xemacs will be linked with \"terminfo.o\""
11007 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
11009 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
11010 save_c_switch_site="$c_switch_site"
11011 c_switch_site="$c_switch_site -I/usr/include/ncurses"
11012 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11013 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11014 echo "configure:11015: checking for ncurses/curses.h" >&5
11016 cat > conftest.$ac_ext <<EOF
11017 #line 11018 "configure"
11018 #include "confdefs.h"
11019 #include <ncurses/curses.h>
11021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11022 { (eval echo configure:11023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11024 if test -z "$ac_err"; then
11026 eval "ac_cv_header_$ac_safe=yes"
11029 echo "configure: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11032 eval "ac_cv_header_$ac_safe=no"
11035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11036 echo "$ac_t""yes" 1>&6
11037 curses_h_path=ncurses/curses.h
11039 echo "$ac_t""no" 1>&6
11042 if test "$ac_cv_header_ncurses_curses_h" = "yes"
11043 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
11044 else c_switch_site="$save_c_switch_site"
11047 else if test "$have_terminfo" = "yes"; then
11048 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11049 echo " xemacs will be linked with \"terminfo.o\""
11051 if test -n "$libs_termcap"; then
11052 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11054 for lib in curses termlib termcap; do
11056 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
11057 echo "configure:11058: checking for tgetent in -l$lib" >&5
11058 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
11060 xe_check_libs=" -l$lib "
11061 cat > conftest.$ac_ext <<EOF
11062 #line 11063 "configure"
11063 #include "confdefs.h"
11064 /* Override any gcc2 internal prototype to avoid an error. */
11065 /* We use char because int might match the return type of a gcc2
11066 builtin and then its argument prototype would still apply. */
11073 if { (eval echo configure:11074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11075 eval "ac_cv_lib_$ac_lib_var=yes"
11077 echo "configure: failed program was:" >&5
11078 cat conftest.$ac_ext >&5
11080 eval "ac_cv_lib_$ac_lib_var=no"
11085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11086 echo "$ac_t""yes" 1>&6
11087 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
11089 echo "$ac_t""no" 1>&6
11095 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
11096 echo " xemacs will be linked with \"tparam.o\""
11098 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
11099 if test -n "$libs_termcap"; then
11100 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11103 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11104 echo "configure:11105: checking for tgetent in -lcurses" >&5
11105 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11107 xe_check_libs=" -lcurses "
11108 cat > conftest.$ac_ext <<EOF
11109 #line 11110 "configure"
11110 #include "confdefs.h"
11111 /* Override any gcc2 internal prototype to avoid an error. */
11112 /* We use char because int might match the return type of a gcc2
11113 builtin and then its argument prototype would still apply. */
11120 if { (eval echo configure:11121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11122 eval "ac_cv_lib_$ac_lib_var=yes"
11124 echo "configure: failed program was:" >&5
11125 cat conftest.$ac_ext >&5
11127 eval "ac_cv_lib_$ac_lib_var=no"
11132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11133 echo "$ac_t""yes" 1>&6
11134 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11136 echo "$ac_t""no" 1>&6
11137 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11138 echo "configure:11139: checking for tgetent in -ltermcap" >&5
11139 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11141 xe_check_libs=" -ltermcap "
11142 cat > conftest.$ac_ext <<EOF
11143 #line 11144 "configure"
11144 #include "confdefs.h"
11145 /* Override any gcc2 internal prototype to avoid an error. */
11146 /* We use char because int might match the return type of a gcc2
11147 builtin and then its argument prototype would still apply. */
11154 if { (eval echo configure:11155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11156 eval "ac_cv_lib_$ac_lib_var=yes"
11158 echo "configure: failed program was:" >&5
11159 cat conftest.$ac_ext >&5
11161 eval "ac_cv_lib_$ac_lib_var=no"
11166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11167 echo "$ac_t""yes" 1>&6
11168 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
11170 echo "$ac_t""no" 1>&6
11171 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
11172 echo " xemacs will be linked with \"termcap.o\""
11183 { test "$extra_verbose" = "yes" && cat << EOF
11184 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
11186 cat >> confdefs.h <<EOF
11187 #define CURSES_H_PATH "${curses_h_path-curses.h}"
11191 { test "$extra_verbose" = "yes" && cat << EOF
11192 Defining TERM_H_PATH = "${term_h_path-term.h}"
11194 cat >> confdefs.h <<EOF
11195 #define TERM_H_PATH "${term_h_path-term.h}"
11200 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11201 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11202 echo "configure:11203: checking for gpm.h" >&5
11204 cat > conftest.$ac_ext <<EOF
11205 #line 11206 "configure"
11206 #include "confdefs.h"
11209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11210 { (eval echo configure:11211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11212 if test -z "$ac_err"; then
11214 eval "ac_cv_header_$ac_safe=yes"
11217 echo "configure: failed program was:" >&5
11218 cat conftest.$ac_ext >&5
11220 eval "ac_cv_header_$ac_safe=no"
11223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11224 echo "$ac_t""yes" 1>&6
11227 echo "$ac_t""no" 1>&6
11231 test -z "$with_gpm" && {
11232 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11233 echo "configure:11234: checking for Gpm_Open in -lgpm" >&5
11234 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11236 xe_check_libs=" -lgpm "
11237 cat > conftest.$ac_ext <<EOF
11238 #line 11239 "configure"
11239 #include "confdefs.h"
11240 /* Override any gcc2 internal prototype to avoid an error. */
11241 /* We use char because int might match the return type of a gcc2
11242 builtin and then its argument prototype would still apply. */
11249 if { (eval echo configure:11250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11251 eval "ac_cv_lib_$ac_lib_var=yes"
11253 echo "configure: failed program was:" >&5
11254 cat conftest.$ac_ext >&5
11256 eval "ac_cv_lib_$ac_lib_var=no"
11261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11262 echo "$ac_t""yes" 1>&6
11265 echo "$ac_t""no" 1>&6
11270 if test "$with_gpm" = "yes"; then
11271 { test "$extra_verbose" = "yes" && cat << \EOF
11274 cat >> confdefs.h <<\EOF
11279 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
11280 echo " xemacs will be linked with \"gpmevent.o\""
11282 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
11285 else for feature in ncurses gpm; do
11286 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11287 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
11289 eval "with_${feature}=no"
11292 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
11293 echo " xemacs will be linked with \"event-unixoid.o\""
11297 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11298 != "no no no" && echo "checking for database support" 1>&6
11299 echo "configure:11300: checking for database support" >&5
11301 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
11302 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11303 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11304 echo "configure:11305: checking for ndbm.h" >&5
11306 cat > conftest.$ac_ext <<EOF
11307 #line 11308 "configure"
11308 #include "confdefs.h"
11311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11312 { (eval echo configure:11313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11314 if test -z "$ac_err"; then
11316 eval "ac_cv_header_$ac_safe=yes"
11319 echo "configure: failed program was:" >&5
11320 cat conftest.$ac_ext >&5
11322 eval "ac_cv_header_$ac_safe=no"
11325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11326 echo "$ac_t""yes" 1>&6
11329 echo "$ac_t""no" 1>&6
11331 test "$with_database_gnudbm" = "yes" -o \
11332 "$with_database_dbm" = "yes" && \
11333 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11334 with_database_gnudbm=no with_database_dbm=no
11339 if test "$with_database_gnudbm" != "no"; then
11341 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11342 echo "configure:11343: checking for dbm_open in -lgdbm" >&5
11343 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11345 xe_check_libs=" -lgdbm "
11346 cat > conftest.$ac_ext <<EOF
11347 #line 11348 "configure"
11348 #include "confdefs.h"
11349 /* Override any gcc2 internal prototype to avoid an error. */
11350 /* We use char because int might match the return type of a gcc2
11351 builtin and then its argument prototype would still apply. */
11358 if { (eval echo configure:11359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11360 eval "ac_cv_lib_$ac_lib_var=yes"
11362 echo "configure: failed program was:" >&5
11363 cat conftest.$ac_ext >&5
11365 eval "ac_cv_lib_$ac_lib_var=no"
11370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11371 echo "$ac_t""yes" 1>&6
11372 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm
11374 echo "$ac_t""no" 1>&6
11375 if test "$with_database_gnudbm" = "yes"; then
11376 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
11378 with_database_gnudbm=no
11384 if test "$with_database_dbm" != "no"; then
11385 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11386 echo "configure:11387: checking for dbm_open" >&5
11388 cat > conftest.$ac_ext <<EOF
11389 #line 11390 "configure"
11390 #include "confdefs.h"
11391 /* System header to define __stub macros and hopefully few prototypes,
11392 which can conflict with char dbm_open(); below. */
11393 #include <assert.h>
11394 /* Override any gcc2 internal prototype to avoid an error. */
11395 /* We use char because int might match the return type of a gcc2
11396 builtin and then its argument prototype would still apply. */
11401 /* The GNU C library defines this for functions which it implements
11402 to always fail with ENOSYS. Some functions are actually named
11403 something starting with __ and the normal name is an alias. */
11404 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11412 if { (eval echo configure:11413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11414 eval "ac_cv_func_dbm_open=yes"
11416 echo "configure: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11419 eval "ac_cv_func_dbm_open=no"
11423 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11424 echo "$ac_t""yes" 1>&6
11425 with_database_dbm=yes libdbm=
11427 echo "$ac_t""no" 1>&6
11430 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11431 echo "configure:11432: checking for dbm_open in -ldbm" >&5
11432 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11434 xe_check_libs=" -ldbm "
11435 cat > conftest.$ac_ext <<EOF
11436 #line 11437 "configure"
11437 #include "confdefs.h"
11438 /* Override any gcc2 internal prototype to avoid an error. */
11439 /* We use char because int might match the return type of a gcc2
11440 builtin and then its argument prototype would still apply. */
11447 if { (eval echo configure:11448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11449 eval "ac_cv_lib_$ac_lib_var=yes"
11451 echo "configure: failed program was:" >&5
11452 cat conftest.$ac_ext >&5
11454 eval "ac_cv_lib_$ac_lib_var=no"
11459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11460 echo "$ac_t""yes" 1>&6
11461 with_database_dbm=yes libdbm=-ldbm
11463 echo "$ac_t""no" 1>&6
11464 test "$with_database_dbm" = "yes" && \
11465 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11466 with_database_dbm=no
11474 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
11475 test "$with_database_gnudbm" = "yes" -o \
11476 "$with_database_dbm" = "yes" && \
11477 { test "$extra_verbose" = "yes" && cat << \EOF
11480 cat >> confdefs.h <<\EOF
11486 if test "$with_database_berkdb" != "no"; then
11487 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11488 echo "configure:11489: checking for Berkeley db.h" >&5
11489 for path in "db/db.h" "db.h"; do
11490 cat > conftest.$ac_ext <<EOF
11491 #line 11492 "configure"
11492 #include "confdefs.h"
11493 #ifdef HAVE_INTTYPES_H
11494 #define __BIT_TYPES_DEFINED__
11495 #include <inttypes.h>
11496 typedef uint8_t u_int8_t;
11497 typedef uint16_t u_int16_t;
11498 typedef uint32_t u_int32_t;
11499 #ifdef WE_DONT_NEED_QUADS
11500 typedef uint64_t u_int64_t;
11509 if { (eval echo configure:11510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11511 db_h_path="$path"; break
11513 echo "configure: failed program was:" >&5
11514 cat conftest.$ac_ext >&5
11518 if test -z "$db_h_path"
11519 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
11520 else echo "$ac_t""$db_h_path" 1>&6
11523 if test "$with_database_berkdb" != "no"; then
11524 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11525 echo "configure:11526: checking for Berkeley DB version" >&5
11526 cat > conftest.$ac_ext <<EOF
11527 #line 11528 "configure"
11528 #include "confdefs.h"
11529 #include <$db_h_path>
11530 #if DB_VERSION_MAJOR > 1
11535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11536 egrep "yes" >/dev/null 2>&1; then
11538 echo "$ac_t""2" 1>&6; dbfunc=db_open
11541 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11545 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11546 echo "configure:11547: checking for $dbfunc" >&5
11548 cat > conftest.$ac_ext <<EOF
11549 #line 11550 "configure"
11550 #include "confdefs.h"
11551 /* System header to define __stub macros and hopefully few prototypes,
11552 which can conflict with char $dbfunc(); below. */
11553 #include <assert.h>
11554 /* Override any gcc2 internal prototype to avoid an error. */
11555 /* We use char because int might match the return type of a gcc2
11556 builtin and then its argument prototype would still apply. */
11561 /* The GNU C library defines this for functions which it implements
11562 to always fail with ENOSYS. Some functions are actually named
11563 something starting with __ and the normal name is an alias. */
11564 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
11572 if { (eval echo configure:11573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11574 eval "ac_cv_func_$dbfunc=yes"
11576 echo "configure: failed program was:" >&5
11577 cat conftest.$ac_ext >&5
11579 eval "ac_cv_func_$dbfunc=no"
11583 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
11584 echo "$ac_t""yes" 1>&6
11585 with_database_berkdb=yes need_libdb=no
11587 echo "$ac_t""no" 1>&6
11590 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11591 echo "configure:11592: checking for $dbfunc in -ldb" >&5
11592 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11594 xe_check_libs=" -ldb "
11595 cat > conftest.$ac_ext <<EOF
11596 #line 11597 "configure"
11597 #include "confdefs.h"
11598 /* Override any gcc2 internal prototype to avoid an error. */
11599 /* We use char because int might match the return type of a gcc2
11600 builtin and then its argument prototype would still apply. */
11607 if { (eval echo configure:11608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11609 eval "ac_cv_lib_$ac_lib_var=yes"
11611 echo "configure: failed program was:" >&5
11612 cat conftest.$ac_ext >&5
11614 eval "ac_cv_lib_$ac_lib_var=no"
11619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11620 echo "$ac_t""yes" 1>&6
11621 with_database_berkdb=yes need_libdb=yes
11623 echo "$ac_t""no" 1>&6
11631 if test "$with_database_berkdb" = "yes"; then
11632 { test "$extra_verbose" = "yes" && cat << EOF
11633 Defining DB_H_PATH = "$db_h_path"
11635 cat >> confdefs.h <<EOF
11636 #define DB_H_PATH "$db_h_path"
11640 { test "$extra_verbose" = "yes" && cat << \EOF
11641 Defining HAVE_BERKELEY_DB
11643 cat >> confdefs.h <<\EOF
11644 #define HAVE_BERKELEY_DB 1
11648 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
11649 else with_database_berkdb=no
11653 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11654 != "no no no"; then
11655 { test "$extra_verbose" = "yes" && cat << \EOF
11656 Defining HAVE_DATABASE
11658 cat >> confdefs.h <<\EOF
11659 #define HAVE_DATABASE 1
11663 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
11664 echo " xemacs will be linked with \"database.o\""
11668 if test "$with_socks" = "yes"; then
11670 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11671 echo "configure:11672: checking for SOCKSinit in -lsocks" >&5
11672 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11674 xe_check_libs=" -lsocks "
11675 cat > conftest.$ac_ext <<EOF
11676 #line 11677 "configure"
11677 #include "confdefs.h"
11678 /* Override any gcc2 internal prototype to avoid an error. */
11679 /* We use char because int might match the return type of a gcc2
11680 builtin and then its argument prototype would still apply. */
11687 if { (eval echo configure:11688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11689 eval "ac_cv_lib_$ac_lib_var=yes"
11691 echo "configure: failed program was:" >&5
11692 cat conftest.$ac_ext >&5
11694 eval "ac_cv_lib_$ac_lib_var=no"
11699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11700 echo "$ac_t""yes" 1>&6
11701 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11702 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11703 { test "$extra_verbose" = "yes" && cat << EOF
11704 Defining $ac_tr_lib
11706 cat >> confdefs.h <<EOF
11707 #define $ac_tr_lib 1
11711 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
11714 echo "$ac_t""no" 1>&6
11718 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
11719 Defining HAVE_SOCKS
11721 cat >> confdefs.h <<\EOF
11722 #define HAVE_SOCKS 1
11728 if test "$usage_tracking" = "yes"; then
11729 { test "$extra_verbose" = "yes" && cat << \EOF
11730 Defining USAGE_TRACKING
11732 cat >> confdefs.h <<\EOF
11733 #define USAGE_TRACKING 1
11737 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11740 for ac_hdr in dlfcn.h
11742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11744 echo "configure:11745: checking for $ac_hdr" >&5
11746 cat > conftest.$ac_ext <<EOF
11747 #line 11748 "configure"
11748 #include "confdefs.h"
11751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11752 { (eval echo configure:11753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11754 if test -z "$ac_err"; then
11756 eval "ac_cv_header_$ac_safe=yes"
11759 echo "configure: failed program was:" >&5
11760 cat conftest.$ac_ext >&5
11762 eval "ac_cv_header_$ac_safe=no"
11765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11766 echo "$ac_t""yes" 1>&6
11767 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11768 { test "$extra_verbose" = "yes" && cat << EOF
11769 Defining $ac_tr_hdr
11771 cat >> confdefs.h <<EOF
11772 #define $ac_tr_hdr 1
11776 { test "$extra_verbose" = "yes" && cat << \EOF
11777 Defining HAVE_DLFCN_H
11779 cat >> confdefs.h <<\EOF
11780 #define HAVE_DLFCN_H 1
11785 echo "$ac_t""no" 1>&6
11789 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11790 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11791 echo "configure:11792: checking for dlopen in -ldl" >&5
11792 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11794 xe_check_libs=" -ldl "
11795 cat > conftest.$ac_ext <<EOF
11796 #line 11797 "configure"
11797 #include "confdefs.h"
11798 /* Override any gcc2 internal prototype to avoid an error. */
11799 /* We use char because int might match the return type of a gcc2
11800 builtin and then its argument prototype would still apply. */
11807 if { (eval echo configure:11808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11809 eval "ac_cv_lib_$ac_lib_var=yes"
11811 echo "configure: failed program was:" >&5
11812 cat conftest.$ac_ext >&5
11814 eval "ac_cv_lib_$ac_lib_var=no"
11819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11820 echo "$ac_t""yes" 1>&6
11821 { test "$extra_verbose" = "yes" && cat << \EOF
11822 Defining HAVE_DLOPEN
11824 cat >> confdefs.h <<\EOF
11825 #define HAVE_DLOPEN 1
11828 DLL_LIB=dl; with_shlib=yes
11830 echo "$ac_t""no" 1>&6
11834 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11835 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11836 echo "configure:11837: checking for _dlopen in -lc" >&5
11837 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11839 xe_check_libs=" -lc "
11840 cat > conftest.$ac_ext <<EOF
11841 #line 11842 "configure"
11842 #include "confdefs.h"
11843 /* Override any gcc2 internal prototype to avoid an error. */
11844 /* We use char because int might match the return type of a gcc2
11845 builtin and then its argument prototype would still apply. */
11852 if { (eval echo configure:11853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11854 eval "ac_cv_lib_$ac_lib_var=yes"
11856 echo "configure: failed program was:" >&5
11857 cat conftest.$ac_ext >&5
11859 eval "ac_cv_lib_$ac_lib_var=no"
11864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11865 echo "$ac_t""yes" 1>&6
11866 { test "$extra_verbose" = "yes" && cat << \EOF
11867 Defining HAVE_DLOPEN
11869 cat >> confdefs.h <<\EOF
11870 #define HAVE_DLOPEN 1
11873 DLL_LIB=; with_shlib=yes
11875 echo "$ac_t""no" 1>&6
11879 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11880 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11881 echo "configure:11882: checking for dlopen in -lc" >&5
11882 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11884 xe_check_libs=" -lc "
11885 cat > conftest.$ac_ext <<EOF
11886 #line 11887 "configure"
11887 #include "confdefs.h"
11888 /* Override any gcc2 internal prototype to avoid an error. */
11889 /* We use char because int might match the return type of a gcc2
11890 builtin and then its argument prototype would still apply. */
11897 if { (eval echo configure:11898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11899 eval "ac_cv_lib_$ac_lib_var=yes"
11901 echo "configure: failed program was:" >&5
11902 cat conftest.$ac_ext >&5
11904 eval "ac_cv_lib_$ac_lib_var=no"
11909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11910 echo "$ac_t""yes" 1>&6
11911 { test "$extra_verbose" = "yes" && cat << \EOF
11912 Defining HAVE_DLOPEN
11914 cat >> confdefs.h <<\EOF
11915 #define HAVE_DLOPEN 1
11918 DLL_LIB=; with_shlib=yes
11920 echo "$ac_t""no" 1>&6
11924 test -z "$with_shlib" && {
11925 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11926 echo "configure:11927: checking for shl_load in -ldld" >&5
11927 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11929 xe_check_libs=" -ldld "
11930 cat > conftest.$ac_ext <<EOF
11931 #line 11932 "configure"
11932 #include "confdefs.h"
11933 /* Override any gcc2 internal prototype to avoid an error. */
11934 /* We use char because int might match the return type of a gcc2
11935 builtin and then its argument prototype would still apply. */
11942 if { (eval echo configure:11943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11944 eval "ac_cv_lib_$ac_lib_var=yes"
11946 echo "configure: failed program was:" >&5
11947 cat conftest.$ac_ext >&5
11949 eval "ac_cv_lib_$ac_lib_var=no"
11954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11955 echo "$ac_t""yes" 1>&6
11956 { test "$extra_verbose" = "yes" && cat << \EOF
11957 Defining HAVE_SHL_LOAD
11959 cat >> confdefs.h <<\EOF
11960 #define HAVE_SHL_LOAD 1
11963 DLL_LIB=dld; with_shlib=yes
11965 echo "$ac_t""no" 1>&6
11969 test -z "$with_shlib" && {
11970 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11971 echo "configure:11972: checking for dld_init in -ldld" >&5
11972 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11974 xe_check_libs=" -ldld "
11975 cat > conftest.$ac_ext <<EOF
11976 #line 11977 "configure"
11977 #include "confdefs.h"
11978 /* Override any gcc2 internal prototype to avoid an error. */
11979 /* We use char because int might match the return type of a gcc2
11980 builtin and then its argument prototype would still apply. */
11987 if { (eval echo configure:11988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11989 eval "ac_cv_lib_$ac_lib_var=yes"
11991 echo "configure: failed program was:" >&5
11992 cat conftest.$ac_ext >&5
11994 eval "ac_cv_lib_$ac_lib_var=no"
11999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12000 echo "$ac_t""yes" 1>&6
12001 { test "$extra_verbose" = "yes" && cat << \EOF
12002 Defining HAVE_DLD_INIT
12004 cat >> confdefs.h <<\EOF
12005 #define HAVE_DLD_INIT 1
12008 DLL_LIB=dld; with_shlib=yes
12010 echo "$ac_t""no" 1>&6
12014 if test "$with_shlib" = "yes"; then
12021 ld_dynamic_link_flags=
12023 xealias=$internal_configuration
12025 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
12026 echo "configure:12027: checking how to build dynamic libraries for ${xehost}" >&5
12027 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
12030 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
12033 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
12034 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
12035 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
12037 case "$xehost_os" in
12039 # AIX sometimes has problems with the GCC collect2 program. For some
12040 # reason, if we set the COLLECT_NAMES environment variable, the problems
12041 # vanish in a puff of smoke.
12042 if test "${COLLECT_NAMES+set}" != set; then
12044 export COLLECT_NAMES
12049 # Now see if the compiler is really GCC.
12050 if test "$GCC" = "yes"; then
12053 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
12054 echo "configure:12055: checking checking whether we are using GNU C" >&5
12055 cat > conftest.$ac_ext <<EOF
12056 #line 12057 "configure"
12057 #include "confdefs.h"
12064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12065 egrep "yes" >/dev/null 2>&1; then
12074 echo "$ac_t""${XEGCC}" 1>&6
12077 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12078 echo "configure:12079: checking how to produce PIC code" >&5
12081 can_build_shared=yes
12082 if test "$XEGCC" = yes; then
12085 case "$xehost_os" in
12086 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
12087 # PIC is the default for these OSes.
12091 # We can build DLLs from non-PIC.
12094 # FIXME: we need at least 68020 code to build shared libraries, but
12095 # adding the `-m68020' flag to GCC prevents building anything better,
12097 dll_cflags='-m68020 -resident32 -malways-restore-a4'
12104 # PORTME Check for PIC flags for the system compiler.
12105 case "$xehost_os" in
12107 # Is there a better link_static_flag that works with the bundled CC?
12114 # PIC (with -KPIC) is the default.
12118 # We can build DLLs from non-PIC.
12122 # All OSF/1 code is PIC.
12127 dll_cflags='-belf -Kpic'
12161 can_build_shared=no
12166 if test -n "$dll_cflags"; then
12167 echo "$ac_t""${dll_cflags}" 1>&6
12169 # Check to make sure the dll_cflags actually works.
12170 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12171 echo "configure:12172: checking if PIC flag ${dll_cflags} really works" >&5
12172 save_CFLAGS="$CFLAGS"
12173 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12174 cat > conftest.$ac_ext <<EOF
12175 #line 12176 "configure"
12176 #include "confdefs.h"
12182 if { (eval echo configure:12183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12185 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12186 # reports no error. So, we need to grep stderr for (Bundled).
12187 if grep '(Bundled)' config.log >/dev/null; then
12188 echo "$ac_t""no" 1>&6
12189 can_build_shared=no
12192 echo "$ac_t""yes" 1>&6
12195 echo "configure: failed program was:" >&5
12196 cat conftest.$ac_ext >&5
12198 echo "$ac_t""no" 1>&6
12199 can_build_shared=no
12203 CFLAGS="$save_CFLAGS"
12205 echo "$ac_t""none" 1>&6
12208 if test "$can_build_shared" = "yes"; then
12212 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12213 echo "configure:12214: checking if C compiler can produce shared libraries" >&5
12214 if test "$XEGCC" = yes; then
12217 else # Not using GCC
12218 case "$xehost_os" in
12220 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
12221 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
12224 freebsd2* | netbsd* | openbsd*)
12226 xcldf="${wl}-Bshareable"
12235 xcldf="${wl}-b ${wl}+s"
12238 irix5* | irix6* | osf3* | osf4*)
12239 xcldf="${wl}-shared"
12243 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
12249 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
12250 xldf="-assert pure-text -Bstatic"
12253 fi # End if if we are using gcc
12255 if test -n "$xcldf"; then
12256 save_LDFLAGS=$LDFLAGS
12258 save_xe_libs=$xe_libs
12259 LDFLAGS="$xcldf $LDFLAGS"
12262 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12263 cat > conftest.$ac_ext <<EOF
12264 #line 12265 "configure"
12265 #include "confdefs.h"
12271 if { (eval echo configure:12272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12275 echo "configure: failed program was:" >&5
12276 cat conftest.$ac_ext >&5
12281 LDFLAGS=$save_LDFLAGS
12283 xe_libs=$save_xe_libs
12284 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12288 echo "$ac_t""${cc_produces_so}" 1>&6
12291 if test -z "$LTLD"; then
12293 if test "$XEGCC" = yes; then
12294 # Check if gcc -print-prog-name=ld gives a path.
12295 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12296 echo "configure:12297: checking for ld used by GCC" >&5
12297 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12299 # Accept absolute paths.
12301 if test -z "$LTLD"; then
12303 *gcc-lib*) LTLD="$CC"
12311 # If it fails, then pretend we aren't using GCC.
12315 # If it is relative, then search for the first ld in PATH.
12316 with_gnu_ld=unknown
12320 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12321 echo "configure:12322: checking for GNU ld" >&5
12324 if test -z "$LTLD"; then
12325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12326 for ac_dir in $PATH; do
12327 test -z "$ac_dir" && ac_dir=.
12328 if test -f "$ac_dir/$ac_prog"; then
12329 LTLD="$ac_dir/$ac_prog"
12330 # Check to see if the program is GNU ld. I'd rather use --version,
12331 # but apparently some GNU ld's only accept -v.
12332 # Break only if it was the GNU/non-GNU ld that we prefer.
12333 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12343 if test -n "$LTLD"; then
12344 echo "$ac_t""${LTLD}" 1>&6
12346 echo "$ac_t""no" 1>&6
12349 if test -z "$LTLD" -a "$cc_produces_so" = no; then
12350 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
12355 ld_dynamic_link_flags=
12357 # Check to see if it really is or isn't GNU ld.
12358 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12359 echo "configure:12360: checking if the linker is GNU ld" >&5
12360 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12361 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12366 echo "$ac_t""${xe_gnu_ld}" 1>&6
12368 case "$xehost_os" in
12369 amigaos* | sunos4*)
12370 # On these operating systems, we should treat GNU ld like the system ld.
12371 gnu_ld_acts_native=yes
12374 gnu_ld_acts_native=no
12378 if test "$cc_produces_so" = "yes"; then
12381 can_build_shared=yes
12383 # OK - only NOW do we futz about with ld.
12384 # See if the linker supports building shared libraries.
12385 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12386 echo "configure:12387: checking whether the linker supports shared libraries" >&5
12388 dll_ldflags=$LDFLAGS
12390 can_build_shared=yes
12391 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12392 # See if GNU ld supports shared libraries.
12393 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12395 dll_ldflags="-shared"
12401 # PORTME fill in a description of your system's linker (not GNU ld)
12402 case "$xehost_os" in
12412 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12413 # support. Future versions do this automatically, but an explicit c++rt0.o
12414 # doesn't break anything, and helps significantly (at the cost of a little
12419 dll_post="/usr/lib/c++rt0.o"
12422 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
12425 dll_ldflags="-Bshareable"
12428 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
12430 dll_ldflags="-shared"
12444 # Tested with NetBSD 1.2 ld
12459 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
12460 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12463 *gcc*) dll_ldflags="-shared"
12466 *) dll_ldflags="-G"
12472 if test "$XEGCC" = yes; then
12492 can_build_shared=no
12496 echo "$ac_t""${ld_shlibs}" 1>&6
12497 if test "$ld_shlibs" = "no"; then
12498 can_build_shared=no
12500 fi # End of if cc_produces_so = no
12503 if test "$xe_gnu_ld" = yes; then
12504 if test "$ld_shlibs" = yes; then
12505 ld_dynamic_link_flags="${wl}-export-dynamic"
12509 if test -z "$ld_dynamic_link_flags"; then
12510 case "$xehost_os" in
12512 ld_dynamic_link_flags=
12516 ld_dynamic_link_flags=
12520 ld_dynamic_link_flags=
12524 ld_dynamic_link_flags=
12528 ld_dynamic_link_flags=
12532 ld_dynamic_link_flags="${wl}-E"
12536 ld_dynamic_link_flags=
12540 ld_dynamic_link_flags=
12544 ld_dynamic_link_flags=
12548 ld_dynamic_link_flags=
12551 solaris2* | solaris7*)
12552 ld_dynamic_link_flags="${wl}-Bdynamic"
12555 sco3.2v5* | unixware* | sysv5* | sysv4*)
12556 ld_dynamic_link_flags="${wl}-Bexport"
12560 ld_dynamic_link_flags=
12564 ld_dynamic_link_flags=
12568 ld_dynamic_link_flags=
12572 fi # End of if -z ld_dynamic_link_flags
12573 fi # End of if test "$can_build_shared" = "yes"
12582 if test "$can_build_shared" = "yes"; then
12583 { test "$extra_verbose" = "yes" && cat << \EOF
12584 Defining HAVE_SHLIB
12586 cat >> confdefs.h <<\EOF
12587 #define HAVE_SHLIB 1
12591 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then
12592 echo " xemacs will be linked with \"sysdll.o\""
12594 extra_objs="$extra_objs emodules.o" && if test "$extra_verbose" = "yes"; then
12595 echo " xemacs will be linked with \"emodules.o\""
12597 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12598 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
12599 for ac_func in dlerror _dlerror
12601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12602 echo "configure:12603: checking for $ac_func" >&5
12604 cat > conftest.$ac_ext <<EOF
12605 #line 12606 "configure"
12606 #include "confdefs.h"
12607 /* System header to define __stub macros and hopefully few prototypes,
12608 which can conflict with char $ac_func(); below. */
12609 #include <assert.h>
12610 /* Override any gcc2 internal prototype to avoid an error. */
12611 /* We use char because int might match the return type of a gcc2
12612 builtin and then its argument prototype would still apply. */
12617 /* The GNU C library defines this for functions which it implements
12618 to always fail with ENOSYS. Some functions are actually named
12619 something starting with __ and the normal name is an alias. */
12620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12628 if { (eval echo configure:12629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12630 eval "ac_cv_func_$ac_func=yes"
12632 echo "configure: failed program was:" >&5
12633 cat conftest.$ac_ext >&5
12635 eval "ac_cv_func_$ac_func=no"
12639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12640 echo "$ac_t""yes" 1>&6
12641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12642 { test "$extra_verbose" = "yes" && cat << EOF
12643 Defining $ac_tr_func
12645 cat >> confdefs.h <<EOF
12646 #define $ac_tr_func 1
12651 echo "$ac_t""no" 1>&6
12656 echo "configure: warning: disabling shared library support" 1>&2
12661 cat > conftest.$ac_ext <<EOF
12662 #line 12663 "configure"
12663 #include "confdefs.h"
12664 int main(int c,char *v[]){return 0;}
12666 if { (eval echo configure:12667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12671 echo "configure: failed program was:" >&5
12672 cat conftest.$ac_ext >&5
12676 echo "*** PANIC *** The C compiler can no longer build working executables."
12677 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
12678 echo "*** PANIC *** The most likely reason for this problem is that configure"
12679 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
12680 echo "*** PANIC *** found at run time."
12681 echo "*** PANIC ***"
12682 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
12683 echo "*** PANIC *** On other systems, try telling configure where to find the"
12684 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
12685 echo "*** PANIC ***"
12686 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
12687 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
12688 echo "*** PANIC *** on your system. Don't do that."
12693 if test "$win32_processes" = "yes"; then
12694 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
12695 echo " xemacs will be linked with \"process-nt.o\""
12698 { test "$extra_verbose" = "yes" && cat << \EOF
12699 Defining HAVE_UNIX_PROCESSES
12701 cat >> confdefs.h <<\EOF
12702 #define HAVE_UNIX_PROCESSES 1
12706 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
12707 echo " xemacs will be linked with \"process-unix.o\""
12714 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12719 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12724 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
12725 c_switch_general="$T"
12729 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12730 c_switch_window_system="$T"
12734 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12739 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
12740 ld_switch_general="$T"
12744 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12745 ld_switch_window_system="$T"
12749 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12754 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12755 ld_libs_general="$T"
12759 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
12760 ld_libs_window_system="$T"
12764 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12769 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
12770 internal_makefile_list="Makefile.in"
12771 SUBDIR_MAKEFILES=''
12772 test -d lock || mkdir lock
12773 for dir in $MAKE_SUBDIR; do
12774 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
12775 test -d "$d" || mkdir "$d"; cd "$d"
12777 * ) test -d "$dir" || mkdir "$dir" ;;
12781 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12782 SUBDIR_MAKEFILES="$T"
12786 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12787 internal_makefile_list="$T"
12794 for dir in src/s src/m; do
12795 if test ! -d "$dir" ; then
12796 echo Making symbolic link to "$srcdir/$dir"
12797 ${LN_S} "$srcdir/$dir" "$dir"
12801 if test "$extra_verbose" = "yes"; then
12803 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
12807 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
12808 echo "creating src/gdbinit"; echo ""
12809 echo "source $srcdir/src/gdbinit" > src/gdbinit
12812 if test "$__SUNPRO_C" = "yes"; then
12813 echo "creating .sbinit"; echo ""
12814 ( echo "# For use with Sun WorkShop's Source browser."
12815 echo "# See sbquery(1) and sbinit(4) for more information"
12816 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
12840 *\$* ) eval "PREFIX=$PREFIX" ;;
12847 EXEC_PREFIX=$exec_prefix
12849 case "$EXEC_PREFIX" in
12850 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
12861 *\$* ) eval "INFODIR=$INFODIR" ;;
12871 case "$INFOPATH" in
12872 *\$* ) eval "INFOPATH=$INFOPATH" ;;
12880 PACKAGE_PATH=$package_path
12882 case "$PACKAGE_PATH" in
12883 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
12894 *\$* ) eval "LISPDIR=$LISPDIR" ;;
12902 MODULEDIR=$moduledir
12904 case "$MODULEDIR" in
12905 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
12913 SITELISPDIR=$sitelispdir
12915 case "$SITELISPDIR" in
12916 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
12924 SITEMODULEDIR=$sitemoduledir
12926 case "$SITEMODULEDIR" in
12927 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
12938 *\$* ) eval "ETCDIR=$ETCDIR" ;;
12949 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
12957 ARCHLIBDIR=$archlibdir
12959 case "$ARCHLIBDIR" in
12960 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
12984 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
12992 : ${XEMACS_CC:=$CC}
12996 if test "$with_site_lisp" = "no"; then
12997 { test "$extra_verbose" = "yes" && cat << \EOF
12998 Defining INHIBIT_SITE_LISP
13000 cat >> confdefs.h <<\EOF
13001 #define INHIBIT_SITE_LISP 1
13006 if test "$with_site_modules" = "no"; then
13007 { test "$extra_verbose" = "yes" && cat << \EOF
13008 Defining INHIBIT_SITE_MODULES
13010 cat >> confdefs.h <<\EOF
13011 #define INHIBIT_SITE_MODULES 1
13019 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13020 ac_configure_args="$T"
13022 { test "$extra_verbose" = "yes" && cat << EOF
13023 Defining EMACS_CONFIGURATION = "$canonical"
13025 cat >> confdefs.h <<EOF
13026 #define EMACS_CONFIGURATION "$canonical"
13030 { test "$extra_verbose" = "yes" && cat << EOF
13031 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
13033 cat >> confdefs.h <<EOF
13034 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
13038 { test "$extra_verbose" = "yes" && cat << EOF
13039 Defining config_machfile = "$machfile"
13041 cat >> confdefs.h <<EOF
13042 #define config_machfile "$machfile"
13046 { test "$extra_verbose" = "yes" && cat << EOF
13047 Defining config_opsysfile = "$opsysfile"
13049 cat >> confdefs.h <<EOF
13050 #define config_opsysfile "$opsysfile"
13057 { test "$extra_verbose" = "yes" && cat << EOF
13058 Defining LD_SWITCH_X_SITE = $null_string
13060 cat >> confdefs.h <<EOF
13061 #define LD_SWITCH_X_SITE $null_string
13065 { test "$extra_verbose" = "yes" && cat << EOF
13066 Defining LD_SWITCH_X_SITE_AUX = $null_string
13068 cat >> confdefs.h <<EOF
13069 #define LD_SWITCH_X_SITE_AUX $null_string
13073 { test "$extra_verbose" = "yes" && cat << EOF
13074 Defining C_SWITCH_X_SITE = $null_string
13076 cat >> confdefs.h <<EOF
13077 #define C_SWITCH_X_SITE $null_string
13081 { test "$extra_verbose" = "yes" && cat << EOF
13082 Defining LD_SWITCH_SITE = $null_string
13084 cat >> confdefs.h <<EOF
13085 #define LD_SWITCH_SITE $null_string
13089 { test "$extra_verbose" = "yes" && cat << EOF
13090 Defining C_SWITCH_SITE = $null_string
13092 cat >> confdefs.h <<EOF
13093 #define C_SWITCH_SITE $null_string
13099 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13100 Defining GNU_MALLOC
13102 cat >> confdefs.h <<\EOF
13103 #define GNU_MALLOC 1
13107 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13108 Defining USE_SYSTEM_MALLOC
13110 cat >> confdefs.h <<\EOF
13111 #define USE_SYSTEM_MALLOC 1
13115 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13116 Defining USE_DEBUG_MALLOC
13118 cat >> confdefs.h <<\EOF
13119 #define USE_DEBUG_MALLOC 1
13123 { test "$extra_verbose" = "yes" && cat << \EOF
13124 Defining USE_SYSTEM_MALLOC
13126 cat >> confdefs.h <<\EOF
13127 #define USE_SYSTEM_MALLOC 1
13132 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13135 cat >> confdefs.h <<\EOF
13140 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13143 cat >> confdefs.h <<\EOF
13148 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13149 Defining EXTERNAL_WIDGET
13151 cat >> confdefs.h <<\EOF
13152 #define EXTERNAL_WIDGET 1
13156 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13157 Defining NO_DOC_FILE
13159 cat >> confdefs.h <<\EOF
13160 #define NO_DOC_FILE 1
13164 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13167 cat >> confdefs.h <<\EOF
13172 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13175 cat >> confdefs.h <<\EOF
13180 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13181 Defining MAIL_USE_POP
13183 cat >> confdefs.h <<\EOF
13184 #define MAIL_USE_POP 1
13188 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13191 cat >> confdefs.h <<\EOF
13196 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13199 cat >> confdefs.h <<\EOF
13204 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13205 Defining USE_UNION_TYPE
13207 cat >> confdefs.h <<\EOF
13208 #define USE_UNION_TYPE 1
13215 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
13217 echo "uname -a: `uname -a`"
13220 echo "$0 $quoted_arguments"
13223 if test ! -z ${emacs_beta_version} ; then
13224 if test -z "${emacs_is_beta}" ; then
13225 xemacs_betaname=".${emacs_beta_version}"
13227 xemacs_betaname="-b${emacs_beta_version}"
13236 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13238 Where should the build process find the source code? $srcdir
13239 What installation prefix should install use? $prefix
13240 What operating system and machine description files should XEmacs use?
13241 \`$opsysfile' and \`$machfile'
13242 What compiler should XEmacs be built with? $CC $CFLAGS
13243 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13244 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13245 What window system should XEmacs use? ${window_system}"
13246 if test "$with_x11" = "yes"; then
13247 echo " Where do we find X Windows header files? $x_includes"
13248 echo " Where do we find X Windows libraries? $x_libraries"
13250 if test -n "$site_includes"; then
13251 echo " Additional header files: $site_includes"
13253 if test -n "$site_libraries"; then
13254 echo " Additional libraries: $site_libraries"
13256 if test -n "$site_prefixes"; then
13257 echo " Additional prefixes: $site_prefixes"
13259 if test -n "$runpath"; then
13260 echo " Runtime library search path: $runpath"
13262 test "$with_dnet" = yes && echo " Compiling in support for DNET."
13263 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
13264 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
13265 if test "$with_xmu" != yes -a "$with_x11" = yes; then
13266 echo " No Xmu; substituting equivalent routines."
13269 if test "$with_xpm" = yes; then
13270 echo " Compiling in support for XPM images."
13271 elif test "$with_x11" = yes; then
13272 echo " --------------------------------------------------------------------"
13273 echo " WARNING: Compiling without XPM support."
13274 if test "$xpm_problem" != ""; then
13275 echo " Reason: $xpm_problem"
13277 echo " WARNING: You should strongly consider installing XPM."
13278 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
13279 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13280 echo " --------------------------------------------------------------------"
13282 if test "$with_png" = yes; then
13283 echo " Compiling in support for PNG image handling."
13284 elif test "$window_system" != "none"; then
13285 echo " --------------------------------------------------------------------"
13286 echo " WARNING: Compiling without PNG image support."
13287 if test "$png_problem" != ""; then
13288 echo " Reason: $png_problem"
13290 echo " WARNING: You should strongly consider installing the PNG libraries."
13291 echo " WARNING: Otherwise certain images and glyphs may not display."
13292 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13293 echo " --------------------------------------------------------------------"
13295 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13296 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13297 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13298 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13299 case "$with_sound" in
13300 nas ) echo " Compiling in network sound (NAS) support." ;;
13301 native ) echo " Compiling in native sound support." ;;
13302 both ) echo " Compiling in both network and native sound support." ;;
13304 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13306 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13307 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13308 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
13310 test "$with_umich_ldap" = yes && echo " Compiling in support for LDAP (UMich libs)."
13311 test "$with_ns_ldap" = yes && echo " Compiling in support for LDAP (Netscape SDK)."
13312 test "$with_ldap" = yes -a "$with_umich_ldap" = no -a "$with_ns_ldap" = no && echo " Compiling in support for LDAP (Generic)."
13314 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
13315 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
13317 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
13318 test "$with_file_coding" = yes && echo " Compiling in File coding support."
13319 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
13320 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
13321 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
13322 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
13323 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
13324 if test "$with_wnn" = yes; then
13325 echo " Compiling in support for the WNN input method on Mule."
13326 test "$with_wnn6" = yes && echo " Using WNN version 6."
13328 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
13330 test "$with_cde" = yes && echo " Compiling in support for CDE."
13331 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
13332 test "$with_offix" = yes && echo " Compiling in support for OffiX."
13333 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
13334 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
13335 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
13336 case "$with_menubars" in
13337 lucid ) echo " Using Lucid menubars." ;;
13338 motif ) echo " Using Motif menubars."
13339 echo " *WARNING* The Motif menubar implementation is currently buggy."
13340 echo " We recommend using the Lucid menubar instead."
13341 echo " Re-run configure with --with-menubars='lucid'." ;;
13343 case "$with_scrollbars" in
13344 lucid ) echo " Using Lucid scrollbars." ;;
13345 motif ) echo " Using Motif scrollbars." ;;
13346 athena ) echo " Using Athena scrollbars." ;;
13347 athena3d ) echo " Using Athena-3d scrollbars." ;;
13349 case "$with_dialogs" in
13351 echo " Using Motif dialog boxes."
13352 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
13353 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
13354 echo " We recommend using the Athena dialog boxes instead."
13355 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
13356 echo " Read the PROBLEMS file for more information."
13359 athena ) echo " Using Athena dialog boxes." ;;
13360 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13362 test "$with_shlib" = "yes" && echo " Compiling in DLL support."
13363 test "$with_clash_detection" = yes && \
13364 echo " Clash detection will use \"$lockdir\" for locking files."
13365 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13366 test "$with_pop" = yes && echo " Using POP for mail access."
13367 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13368 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
13369 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
13370 test "$debug" = yes && echo " Compiling in extra code for debugging."
13371 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13372 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
13373 != "no no no no no"; then
13374 echo " WARNING: ---------------------------------------------------------"
13375 echo " WARNING: Compiling in support for runtime error checking."
13376 echo " WARNING: XEmacs will run noticeably more slowly as a result."
13377 echo " WARNING: Error checking is on by default for XEmacs beta releases."
13378 echo " WARNING: ---------------------------------------------------------"
13381 ) | tee -a Installation
13385 # Remove any trailing slashes in these variables.
13386 test -n "$prefix" &&
13387 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13388 test -n "$exec_prefix" &&
13389 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13392 for file in $internal_makefile_list; do
13393 test "$file" = src/Makefile.in && \
13394 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13395 ac_output_files="${ac_output_files+$ac_output_files }$file"
13397 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13398 if test "$with_shlib" = "yes"; then
13399 ac_output_files="$ac_output_files lib-src/ellcc.h"
13404 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13406 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13407 # Let make expand exec_prefix.
13408 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13410 # Any assignment to VPATH causes Sun make to only execute
13411 # the first set of double-colon rules, so remove it if not needed.
13412 # If there is a colon in the path, we need to keep it.
13413 if test "x$srcdir" = x.; then
13414 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13417 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13419 DEFS=-DHAVE_CONFIG_H
13421 # Without the "./", some shells look in PATH for config.status.
13422 : ${CONFIG_STATUS=./config.status}
13424 echo creating $CONFIG_STATUS
13425 rm -f $CONFIG_STATUS
13426 cat > $CONFIG_STATUS <<EOF
13428 # Generated automatically by configure.
13429 # Run this file to recreate the current configuration.
13430 # This directory was configured as follows,
13431 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13433 # $0 $ac_configure_args
13435 # Compiler output produced by configure, useful for debugging
13436 # configure, is in ./config.log if it exists.
13438 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13441 case "\$ac_option" in
13442 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13443 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13444 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13445 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13446 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13448 -help | --help | --hel | --he | --h)
13449 echo "\$ac_cs_usage"; exit 0 ;;
13450 *) echo "\$ac_cs_usage"; exit 1 ;;
13454 ac_given_srcdir=$srcdir
13455 ac_given_INSTALL="$INSTALL"
13457 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13459 cat >> $CONFIG_STATUS <<EOF
13461 # Protect against being on the right side of a sed subst in config.status.
13462 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13463 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13467 s%@CFLAGS@%$CFLAGS%g
13468 s%@CPPFLAGS@%$CPPFLAGS%g
13469 s%@CXXFLAGS@%$CXXFLAGS%g
13470 s%@FFLAGS@%$FFLAGS%g
13472 s%@LDFLAGS@%$LDFLAGS%g
13474 s%@exec_prefix@%$exec_prefix%g
13475 s%@prefix@%$prefix%g
13476 s%@program_transform_name@%$program_transform_name%g
13477 s%@bindir@%$bindir%g
13478 s%@sbindir@%$sbindir%g
13479 s%@libexecdir@%$libexecdir%g
13480 s%@datadir@%$datadir%g
13481 s%@sysconfdir@%$sysconfdir%g
13482 s%@sharedstatedir@%$sharedstatedir%g
13483 s%@localstatedir@%$localstatedir%g
13484 s%@libdir@%$libdir%g
13485 s%@includedir@%$includedir%g
13486 s%@oldincludedir@%$oldincludedir%g
13487 s%@infodir@%$infodir%g
13488 s%@mandir@%$mandir%g
13490 s%@blddir@%$blddir%g
13493 s%@start_flags@%$start_flags%g
13494 s%@ld_switch_shared@%$ld_switch_shared%g
13495 s%@start_files@%$start_files%g
13497 s%@lib_gcc@%$lib_gcc%g
13498 s%@RANLIB@%$RANLIB%g
13499 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13500 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13501 s%@INSTALL_DATA@%$INSTALL_DATA%g
13503 s%@SET_MAKE@%$SET_MAKE%g
13504 s%@X_CFLAGS@%$X_CFLAGS%g
13505 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13506 s%@X_LIBS@%$X_LIBS%g
13507 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13508 s%@install_pp@%$install_pp%g
13509 s%@libs_xauth@%$libs_xauth%g
13510 s%@dnd_objs@%$dnd_objs%g
13511 s%@lwlib_objs@%$lwlib_objs%g
13512 s%@ALLOCA@%$ALLOCA%g
13513 s%@dll_ld@%$dll_ld%g
13514 s%@dll_cflags@%$dll_cflags%g
13515 s%@dll_ldflags@%$dll_ldflags%g
13516 s%@dll_post@%$dll_post%g
13517 s%@dll_ldo@%$dll_ldo%g
13518 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
13519 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
13520 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
13521 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
13522 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
13523 s%@PROGNAME@%$PROGNAME%g
13524 s%@version@%$version%g
13525 s%@configuration@%$configuration%g
13526 s%@canonical@%$canonical%g
13527 s%@srcdir@%$srcdir%g
13528 s%@pkgdir@%$pkgdir%g
13529 s%@statedir@%$statedir%g
13530 s%@PREFIX@%$PREFIX%g
13531 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
13532 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
13533 s%@INFODIR@%$INFODIR%g
13534 s%@infopath@%$infopath%g
13535 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
13536 s%@INFOPATH@%$INFOPATH%g
13537 s%@package_path@%$package_path%g
13538 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
13539 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
13540 s%@lispdir@%$lispdir%g
13541 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
13542 s%@LISPDIR@%$LISPDIR%g
13543 s%@moduledir@%$moduledir%g
13544 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
13545 s%@MODULEDIR@%$MODULEDIR%g
13546 s%@sitelispdir@%$sitelispdir%g
13547 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
13548 s%@SITELISPDIR@%$SITELISPDIR%g
13549 s%@sitemoduledir@%$sitemoduledir%g
13550 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
13551 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
13552 s%@etcdir@%$etcdir%g
13553 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
13554 s%@ETCDIR@%$ETCDIR%g
13555 s%@lockdir@%$lockdir%g
13556 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
13557 s%@LOCKDIR@%$LOCKDIR%g
13558 s%@archlibdir@%$archlibdir%g
13559 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
13560 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
13561 s%@docdir@%$docdir%g
13562 s%@bitmapdir@%$bitmapdir%g
13563 s%@extra_objs@%$extra_objs%g
13564 s%@machfile@%$machfile%g
13565 s%@opsysfile@%$opsysfile%g
13566 s%@c_switch_general@%$c_switch_general%g
13567 s%@c_switch_window_system@%$c_switch_window_system%g
13568 s%@c_switch_all@%$c_switch_all%g
13569 s%@ld_switch_general@%$ld_switch_general%g
13570 s%@ld_switch_window_system@%$ld_switch_window_system%g
13571 s%@ld_switch_all@%$ld_switch_all%g
13572 s%@ld_libs_general@%$ld_libs_general%g
13573 s%@ld_libs_window_system@%$ld_libs_window_system%g
13574 s%@ld_libs_all@%$ld_libs_all%g
13575 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
13576 s%@native_sound_lib@%$native_sound_lib%g
13577 s%@sound_cflags@%$sound_cflags%g
13578 s%@dynodump_arch@%$dynodump_arch%g
13579 s%@XEMACS_CC@%$XEMACS_CC%g
13580 s%@internal_makefile_list@%$internal_makefile_list%g
13585 cat >> $CONFIG_STATUS <<\EOF
13587 # Split the substitutions into bite-sized pieces for seds with
13588 # small command number limits, like on Digital OSF/1 and HP-UX.
13589 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13590 ac_file=1 # Number of current file.
13591 ac_beg=1 # First line for current file.
13592 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13595 while $ac_more_lines; do
13596 if test $ac_beg -gt 1; then
13597 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13599 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13601 if test ! -s conftest.s$ac_file; then
13602 ac_more_lines=false
13603 rm -f conftest.s$ac_file
13605 if test -z "$ac_sed_cmds"; then
13606 ac_sed_cmds="sed -f conftest.s$ac_file"
13608 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13610 ac_file=`expr $ac_file + 1`
13612 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13615 if test -z "$ac_sed_cmds"; then
13620 cat >> $CONFIG_STATUS <<EOF
13622 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
13624 cat >> $CONFIG_STATUS <<\EOF
13625 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13626 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13628 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13629 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13630 *) ac_file_in="${ac_file}.in" ;;
13633 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13635 # Remove last slash and all that follows it. Not all systems have dirname.
13636 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13637 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13638 # The file is in a subdirectory.
13639 test ! -d "$ac_dir" && mkdir "$ac_dir"
13640 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13641 # A "../" for each directory in $ac_dir_suffix.
13642 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13644 ac_dir_suffix= ac_dots=
13647 case "$ac_given_srcdir" in
13649 if test -z "$ac_dots"; then top_srcdir=.
13650 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13651 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13652 *) # Relative path.
13653 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13654 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13657 case "$ac_given_INSTALL" in
13658 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13659 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13662 echo creating "$ac_file"
13664 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13666 *Makefile*) ac_comsub="1i\\
13667 # $configure_input" ;;
13671 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13673 s%@configure_input@%$configure_input%g
13674 s%@srcdir@%$srcdir%g
13675 s%@top_srcdir@%$top_srcdir%g
13676 s%@INSTALL@%$INSTALL%g
13677 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13681 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13682 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13684 # ac_d sets the value in "#define NAME VALUE" lines.
13685 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13686 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13689 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13690 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13691 ac_uB='\([ ]\)%\1#\2define\3'
13694 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13695 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13696 ac_eB='$%\1#\2define\3'
13700 if test "${CONFIG_HEADERS+set}" != set; then
13702 cat >> $CONFIG_STATUS <<EOF
13703 CONFIG_HEADERS="src/config.h lwlib/config.h"
13705 cat >> $CONFIG_STATUS <<\EOF
13707 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13708 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13710 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13711 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13712 *) ac_file_in="${ac_file}.in" ;;
13715 echo creating $ac_file
13717 rm -f conftest.frag conftest.in conftest.out
13718 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13719 cat $ac_file_inputs > conftest.in
13723 # Transform confdefs.h into a sed script conftest.vals that substitutes
13724 # the proper values into config.h.in to produce config.h. And first:
13725 # Protect against being on the right side of a sed subst in config.status.
13726 # Protect against being in an unquoted here document in config.status.
13727 rm -f conftest.vals
13728 cat > conftest.hdr <<\EOF
13731 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13735 sed -n -f conftest.hdr confdefs.h > conftest.vals
13738 # This sed command replaces #undef with comments. This is necessary, for
13739 # example, in the case of _POSIX_SOURCE, which is predefined and required
13740 # on some systems where configure will not decide to define it.
13741 cat >> conftest.vals <<\EOF
13742 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13745 # Break up conftest.vals because some shells have a limit on
13746 # the size of here documents, and old seds have small limits too.
13748 rm -f conftest.tail
13751 ac_lines=`grep -c . conftest.vals`
13752 # grep -c gives empty output for an empty file on some AIX systems.
13753 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13754 # Write a limited-size here document to conftest.frag.
13755 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13756 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13758 sed -f conftest.frag conftest.in > conftest.out
13760 mv conftest.out conftest.in
13761 ' >> $CONFIG_STATUS
13762 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13763 rm -f conftest.vals
13764 mv conftest.tail conftest.vals
13766 rm -f conftest.vals
13768 cat >> $CONFIG_STATUS <<\EOF
13769 rm -f conftest.frag conftest.h
13770 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13771 cat conftest.in >> conftest.h
13773 if cmp -s $ac_file conftest.h 2>/dev/null; then
13774 echo "$ac_file is unchanged"
13777 # Remove last slash and all that follows it. Not all systems have dirname.
13778 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13779 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13780 # The file is in a subdirectory.
13781 test ! -d "$ac_dir" && mkdir "$ac_dir"
13784 mv conftest.h $ac_file
13789 cat >> $CONFIG_STATUS <<EOF
13791 top_srcdir="$srcdir"
13792 MAKE_SUBDIR="$MAKE_SUBDIR"
13795 cat >> $CONFIG_STATUS <<\EOF
13796 for dir in . $MAKE_SUBDIR; do
13801 sed -e '/^# Generated/d' \
13802 -e 's%/\*\*/#.*%%' \
13817 echo creating $dir/Makefile
13818 $CPP -I. -I${top_srcdir}/src junk.c \
13819 | sed -e 's/^\#.*//' \
13820 -e 's/^[ ][ ]*$//'\
13822 | sed -n -e '/^..*$/p' \
13828 chmod 444 Makefile.new
13829 mv -f Makefile.new Makefile
13831 echo creating $dir/GNUmakefile
13832 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
13833 | sed -e 's/^\#.*//' \
13834 -e 's/^[ ][ ]*$//'\
13836 | sed -n -e '/^..*$/p' \
13842 chmod 444 Makefile.new
13843 mv -f Makefile.new GNUmakefile
13849 sed < config.status >> lib-src/config.values \
13850 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
13851 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
13852 -e 's/^\([^ ]*\) $/\1 ""/' \
13858 chmod +x $CONFIG_STATUS
13859 rm -fr confdefs* $ac_clean_files
13860 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1