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 if test ! -d "$dir"; then
2704 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2705 elif test ! -d "$lib_dir"; then
2706 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2708 if test -d "$inc_dir"; then
2709 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
2711 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
2717 for dir in "/usr/ccs/lib"; do
2718 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
2721 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2722 if test -n "$site_runtime_libraries"; then
2723 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2728 if test "$dynamic" = "no"; then add_runtime_path=no
2729 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2730 else case "$opsys" in
2731 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2732 * ) add_runtime_path=no ;;
2736 if test "$add_runtime_path" = "yes"; then
2737 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2738 echo "configure:2739: checking "for runtime libraries flag"" >&5
2740 sol2 ) dash_r="-R" ;;
2741 decosf* | linux* | irix*) dash_r="-rpath " ;;
2744 for try_dash_r in "-R" "-R " "-rpath "; do
2745 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2747 if test "$GCC" = "yes"; then
2748 set x $xe_check_libs; shift; xe_check_libs=""
2749 while test -n "$1"; do
2751 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2752 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2754 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2759 cat > conftest.$ac_ext <<EOF
2760 #line 2761 "configure"
2761 #include "confdefs.h"
2767 if { (eval echo configure:2768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2769 dash_r="$try_dash_r"
2771 echo "configure: failed program was:" >&5
2772 cat conftest.$ac_ext >&5
2776 test -n "$dash_r" && break
2779 if test -n "$dash_r";
2780 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2781 else echo "$ac_t""NONE" 1>&6
2785 xe_add_unique_runpath_dir='
2787 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2789 if test "$xe_add_p" = "yes"; then
2790 test -n "$runpath" && runpath="${runpath}:"
2791 runpath="${runpath}${xe_runpath_dir}"
2792 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2798 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2799 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2800 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2802 runpath="" runpath_dirs=""
2803 if test -n "$LD_RUN_PATH"; then
2804 runpath="$LD_RUN_PATH"
2805 elif test "$GCC" = "yes"; then
2806 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2807 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2808 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2809 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2810 case "$arg" in P,* | -L* | -R* )
2811 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2813 xe_runpath_dir="$dir"
2814 test "$xe_runpath_dir" != "/lib" -a \
2815 "$xe_runpath_dir" != "/usr/lib" -a \
2816 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2817 eval "$xe_add_unique_runpath_dir"
2822 ld_switch_run="$ld_switch_run_save"
2825 for arg in $ld_switch_site $ld_switch_x_site; do
2826 case "$arg" in -L*) {
2827 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2828 test "$xe_runpath_dir" != "/lib" -a \
2829 "$xe_runpath_dir" != "/usr/lib" -a \
2830 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2831 eval "$xe_add_unique_runpath_dir"
2834 if test "$opsys $need_motif" = "sol2 yes"; then
2835 xe_runpath_dir="/opt/SUNWdt/lib";
2836 eval "$xe_add_unique_runpath_dir";
2839 if test -n "$runpath"; then
2840 ld_switch_run="${dash_r}${runpath}"
2842 if test "$GCC" = "yes"; then
2843 set x $ld_switch_run; shift; ld_switch_run=""
2844 while test -n "$1"; do
2846 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2847 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2849 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2854 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2862 if test "$with_dlmalloc" != "no"; then
2867 after_morecore_hook_exists=yes
2868 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2869 echo "configure:2870: checking for malloc_get_state" >&5
2871 cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2874 /* System header to define __stub macros and hopefully few prototypes,
2875 which can conflict with char malloc_get_state(); below. */
2877 /* Override any gcc2 internal prototype to avoid an error. */
2878 /* We use char because int might match the return type of a gcc2
2879 builtin and then its argument prototype would still apply. */
2880 char malloc_get_state();
2884 /* The GNU C library defines this for functions which it implements
2885 to always fail with ENOSYS. Some functions are actually named
2886 something starting with __ and the normal name is an alias. */
2887 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2895 if { (eval echo configure:2896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2897 eval "ac_cv_func_malloc_get_state=yes"
2899 echo "configure: failed program was:" >&5
2900 cat conftest.$ac_ext >&5
2902 eval "ac_cv_func_malloc_get_state=no"
2906 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2907 echo "$ac_t""yes" 1>&6
2910 echo "$ac_t""no" 1>&6
2914 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2915 echo "configure:2916: checking for malloc_set_state" >&5
2917 cat > conftest.$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2920 /* System header to define __stub macros and hopefully few prototypes,
2921 which can conflict with char malloc_set_state(); below. */
2923 /* Override any gcc2 internal prototype to avoid an error. */
2924 /* We use char because int might match the return type of a gcc2
2925 builtin and then its argument prototype would still apply. */
2926 char malloc_set_state();
2930 /* The GNU C library defines this for functions which it implements
2931 to always fail with ENOSYS. Some functions are actually named
2932 something starting with __ and the normal name is an alias. */
2933 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
2941 if { (eval echo configure:2942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2943 eval "ac_cv_func_malloc_set_state=yes"
2945 echo "configure: failed program was:" >&5
2946 cat conftest.$ac_ext >&5
2948 eval "ac_cv_func_malloc_set_state=no"
2952 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
2953 echo "$ac_t""yes" 1>&6
2956 echo "$ac_t""no" 1>&6
2960 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2961 echo "configure:2962: checking whether __after_morecore_hook exists" >&5
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 extern void (* __after_morecore_hook)();
2967 __after_morecore_hook = 0
2970 if { (eval echo configure:2971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2972 echo "$ac_t""yes" 1>&6
2974 echo "configure: failed program was:" >&5
2975 cat conftest.$ac_ext >&5
2977 echo "$ac_t""no" 1>&6
2978 after_morecore_hook_exists=no
2981 if test "$system_malloc" = "yes" ; then
2984 (The GNU allocators don't work with this system configuration)."
2985 elif test "$with_system_malloc" = "yes" ; then
2988 (User chose not to use GNU allocators)."
2989 elif test "$with_debug_malloc" = "yes" ; then
2992 (User chose to use Debugging Malloc)."
2995 if test "$doug_lea_malloc" = "yes" ; then
2996 if test "$GNU_MALLOC" = yes ; then
2998 (Using Doug Lea's new malloc from the GNU C Library.)"
3000 { test "$extra_verbose" = "yes" && cat << \EOF
3001 Defining DOUG_LEA_MALLOC
3003 cat >> confdefs.h <<\EOF
3004 #define DOUG_LEA_MALLOC 1
3008 if test "$after_morecore_hook_exists" = "no" ; then
3010 (Using Doug Lea's new malloc from the Linux C Library.)"
3011 { test "$extra_verbose" = "yes" && cat << \EOF
3012 Defining _NO_MALLOC_WARNING_
3014 cat >> confdefs.h <<\EOF
3015 #define _NO_MALLOC_WARNING_ 1
3020 use_minimal_tagbits=yes
3026 # Extract the first word of "ranlib", so it can be a program name with args.
3027 set dummy ranlib; ac_word=$2
3028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3029 echo "configure:3030: checking for $ac_word" >&5
3031 if test -n "$RANLIB"; then
3032 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3036 for ac_dir in $ac_dummy; do
3037 test -z "$ac_dir" && ac_dir=.
3038 if test -f $ac_dir/$ac_word; then
3039 ac_cv_prog_RANLIB="ranlib"
3044 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3046 RANLIB="$ac_cv_prog_RANLIB"
3047 if test -n "$RANLIB"; then
3048 echo "$ac_t""$RANLIB" 1>&6
3050 echo "$ac_t""no" 1>&6
3054 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3055 if test -f $ac_dir/install-sh; then
3057 ac_install_sh="$ac_aux_dir/install-sh -c"
3059 elif test -f $ac_dir/install.sh; then
3061 ac_install_sh="$ac_aux_dir/install.sh -c"
3065 if test -z "$ac_aux_dir"; then
3066 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3068 ac_config_guess=$ac_aux_dir/config.guess
3069 ac_config_sub=$ac_aux_dir/config.sub
3070 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3072 # Find a good install program. We prefer a C program (faster),
3073 # so one script is as good as another. But avoid the broken or
3074 # incompatible versions:
3075 # SysV /etc/install, /usr/sbin/install
3076 # SunOS /usr/etc/install
3077 # IRIX /sbin/install
3079 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3080 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3081 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3082 # ./install, which can be erroneously created by make from ./install.sh.
3083 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3084 echo "configure:3085: checking for a BSD compatible install" >&5
3085 if test -z "$INSTALL"; then
3087 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3088 for ac_dir in $PATH; do
3089 # Account for people who put trailing slashes in PATH elements.
3091 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3093 # OSF1 and SCO ODT 3.0 have their own names for install.
3094 # Don't use installbsd from OSF since it installs stuff as root
3096 for ac_prog in ginstall scoinst install; do
3097 if test -f $ac_dir/$ac_prog; then
3098 if test $ac_prog = install &&
3099 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3100 # AIX install. It has an incompatible calling convention.
3103 ac_cv_path_install="$ac_dir/$ac_prog -c"
3113 if test "${ac_cv_path_install+set}" = set; then
3114 INSTALL="$ac_cv_path_install"
3116 # As a last resort, use the slow shell script. We don't cache a
3117 # path for INSTALL within a source directory, because that will
3118 # break other packages using the cache if that directory is
3119 # removed, or if the path is relative.
3120 INSTALL="$ac_install_sh"
3123 echo "$ac_t""$INSTALL" 1>&6
3125 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3126 # It thinks the first close brace ends the variable substitution.
3127 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3129 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3131 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3133 for ac_prog in 'bison -y' byacc
3135 # Extract the first word of "$ac_prog", so it can be a program name with args.
3136 set dummy $ac_prog; ac_word=$2
3137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3138 echo "configure:3139: checking for $ac_word" >&5
3140 if test -n "$YACC"; then
3141 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3145 for ac_dir in $ac_dummy; do
3146 test -z "$ac_dir" && ac_dir=.
3147 if test -f $ac_dir/$ac_word; then
3148 ac_cv_prog_YACC="$ac_prog"
3154 YACC="$ac_cv_prog_YACC"
3155 if test -n "$YACC"; then
3156 echo "$ac_t""$YACC" 1>&6
3158 echo "$ac_t""no" 1>&6
3161 test -n "$YACC" && break
3163 test -n "$YACC" || YACC="yacc"
3166 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3168 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3169 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3170 echo "configure:3171: checking for $ac_hdr" >&5
3172 cat > conftest.$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3178 { (eval echo configure:3179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3180 if test -z "$ac_err"; then
3182 eval "ac_cv_header_$ac_safe=yes"
3185 echo "configure: failed program was:" >&5
3186 cat conftest.$ac_ext >&5
3188 eval "ac_cv_header_$ac_safe=no"
3191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3192 echo "$ac_t""yes" 1>&6
3193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3194 { test "$extra_verbose" = "yes" && cat << EOF
3197 cat >> confdefs.h <<EOF
3198 #define $ac_tr_hdr 1
3203 echo "$ac_t""no" 1>&6
3207 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3209 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3210 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3211 echo "configure:3212: checking for $ac_hdr" >&5
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3219 { (eval echo configure:3220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3221 if test -z "$ac_err"; then
3223 eval "ac_cv_header_$ac_safe=yes"
3226 echo "configure: failed program was:" >&5
3227 cat conftest.$ac_ext >&5
3229 eval "ac_cv_header_$ac_safe=no"
3232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3233 echo "$ac_t""yes" 1>&6
3234 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3235 { test "$extra_verbose" = "yes" && cat << EOF
3238 cat >> confdefs.h <<EOF
3239 #define $ac_tr_hdr 1
3244 echo "$ac_t""no" 1>&6
3248 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3250 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3252 echo "configure:3253: checking for $ac_hdr" >&5
3254 cat > conftest.$ac_ext <<EOF
3255 #line 3256 "configure"
3256 #include "confdefs.h"
3259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3260 { (eval echo configure:3261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3262 if test -z "$ac_err"; then
3264 eval "ac_cv_header_$ac_safe=yes"
3267 echo "configure: failed program was:" >&5
3268 cat conftest.$ac_ext >&5
3270 eval "ac_cv_header_$ac_safe=no"
3273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3274 echo "$ac_t""yes" 1>&6
3275 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3276 { test "$extra_verbose" = "yes" && cat << EOF
3279 cat >> confdefs.h <<EOF
3280 #define $ac_tr_hdr 1
3285 echo "$ac_t""no" 1>&6
3289 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3290 echo "configure:3291: checking for sys/wait.h that is POSIX.1 compatible" >&5
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 #include <sys/types.h>
3296 #include <sys/wait.h>
3298 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3301 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3306 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3309 if { (eval echo configure:3310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3311 ac_cv_header_sys_wait_h=yes
3313 echo "configure: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3316 ac_cv_header_sys_wait_h=no
3320 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3321 if test $ac_cv_header_sys_wait_h = yes; then
3322 { test "$extra_verbose" = "yes" && cat << \EOF
3323 Defining HAVE_SYS_WAIT_H
3325 cat >> confdefs.h <<\EOF
3326 #define HAVE_SYS_WAIT_H 1
3332 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3333 echo "configure:3334: checking for ANSI C header files" >&5
3335 cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3344 { (eval echo configure:3345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3346 if test -z "$ac_err"; then
3348 ac_cv_header_stdc=yes
3351 echo "configure: failed program was:" >&5
3352 cat conftest.$ac_ext >&5
3354 ac_cv_header_stdc=no
3358 if test $ac_cv_header_stdc = yes; then
3359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3366 egrep "memchr" >/dev/null 2>&1; then
3370 ac_cv_header_stdc=no
3376 if test $ac_cv_header_stdc = yes; then
3377 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3378 cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3384 egrep "free" >/dev/null 2>&1; then
3388 ac_cv_header_stdc=no
3394 if test $ac_cv_header_stdc = yes; then
3395 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3396 cat > conftest.$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3400 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3401 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3403 int main () { int i; for (i = 0; i < 256; i++)
3404 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3408 if { (eval echo configure:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3413 echo "configure: failed program was:" >&5
3414 cat conftest.$ac_ext >&5
3416 ac_cv_header_stdc=no
3421 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3422 if test $ac_cv_header_stdc = yes; then
3423 { test "$extra_verbose" = "yes" && cat << \EOF
3424 Defining STDC_HEADERS
3426 cat >> confdefs.h <<\EOF
3427 #define STDC_HEADERS 1
3433 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3434 echo "configure:3435: checking whether time.h and sys/time.h may both be included" >&5
3436 cat > conftest.$ac_ext <<EOF
3437 #line 3438 "configure"
3438 #include "confdefs.h"
3439 #include <sys/types.h>
3440 #include <sys/time.h>
3446 if { (eval echo configure:3447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3448 ac_cv_header_time=yes
3450 echo "configure: failed program was:" >&5
3451 cat conftest.$ac_ext >&5
3453 ac_cv_header_time=no
3457 echo "$ac_t""$ac_cv_header_time" 1>&6
3458 if test $ac_cv_header_time = yes; then
3459 { test "$extra_verbose" = "yes" && cat << \EOF
3460 Defining TIME_WITH_SYS_TIME
3462 cat >> confdefs.h <<\EOF
3463 #define TIME_WITH_SYS_TIME 1
3469 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3470 echo "configure:3471: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3472 cat > conftest.$ac_ext <<EOF
3473 #line 3474 "configure"
3474 #include "confdefs.h"
3475 #include <sys/types.h>
3477 /* NetBSD declares sys_siglist in unistd.h. */
3478 #ifdef HAVE_UNISTD_H
3482 char *msg = *(sys_siglist + 1);
3485 if { (eval echo configure:3486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3487 ac_cv_decl_sys_siglist=yes
3489 echo "configure: failed program was:" >&5
3490 cat conftest.$ac_ext >&5
3492 ac_cv_decl_sys_siglist=no
3496 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3497 if test $ac_cv_decl_sys_siglist = yes; then
3498 { test "$extra_verbose" = "yes" && cat << \EOF
3499 Defining SYS_SIGLIST_DECLARED
3501 cat >> confdefs.h <<\EOF
3502 #define SYS_SIGLIST_DECLARED 1
3509 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3510 echo "configure:3511: checking for struct utimbuf" >&5
3511 cat > conftest.$ac_ext <<EOF
3512 #line 3513 "configure"
3513 #include "confdefs.h"
3514 #ifdef TIME_WITH_SYS_TIME
3515 #include <sys/time.h>
3518 #ifdef HAVE_SYS_TIME_H
3519 #include <sys/time.h>
3528 static struct utimbuf x; x.actime = x.modtime;
3531 if { (eval echo configure:3532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3533 echo "$ac_t""yes" 1>&6
3534 { test "$extra_verbose" = "yes" && cat << \EOF
3535 Defining HAVE_STRUCT_UTIMBUF
3537 cat >> confdefs.h <<\EOF
3538 #define HAVE_STRUCT_UTIMBUF 1
3543 echo "configure: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3546 echo "$ac_t""no" 1>&6
3550 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3551 echo "configure:3552: checking return type of signal handlers" >&5
3553 cat > conftest.$ac_ext <<EOF
3554 #line 3555 "configure"
3555 #include "confdefs.h"
3556 #include <sys/types.h>
3562 extern "C" void (*signal (int, void (*)(int)))(int);
3564 void (*signal ()) ();
3571 if { (eval echo configure:3572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3573 ac_cv_type_signal=void
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3578 ac_cv_type_signal=int
3582 echo "$ac_t""$ac_cv_type_signal" 1>&6
3583 { test "$extra_verbose" = "yes" && cat << EOF
3584 Defining RETSIGTYPE = $ac_cv_type_signal
3586 cat >> confdefs.h <<EOF
3587 #define RETSIGTYPE $ac_cv_type_signal
3592 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3593 echo "configure:3594: checking for size_t" >&5
3595 cat > conftest.$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3598 #include <sys/types.h>
3604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3605 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3607 ac_cv_type_size_t=yes
3610 ac_cv_type_size_t=no
3614 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3615 if test $ac_cv_type_size_t = no; then
3616 { test "$extra_verbose" = "yes" && cat << \EOF
3617 Defining size_t = unsigned
3619 cat >> confdefs.h <<\EOF
3620 #define size_t unsigned
3626 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3627 echo "configure:3628: checking for pid_t" >&5
3629 cat > conftest.$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3632 #include <sys/types.h>
3638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3639 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3641 ac_cv_type_pid_t=yes
3648 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3649 if test $ac_cv_type_pid_t = no; then
3650 { test "$extra_verbose" = "yes" && cat << \EOF
3651 Defining pid_t = int
3653 cat >> confdefs.h <<\EOF
3660 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3661 echo "configure:3662: checking for uid_t in sys/types.h" >&5
3663 cat > conftest.$ac_ext <<EOF
3664 #line 3665 "configure"
3665 #include "confdefs.h"
3666 #include <sys/types.h>
3668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3669 egrep "uid_t" >/dev/null 2>&1; then
3671 ac_cv_type_uid_t=yes
3679 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3680 if test $ac_cv_type_uid_t = no; then
3681 { test "$extra_verbose" = "yes" && cat << \EOF
3682 Defining uid_t = int
3684 cat >> confdefs.h <<\EOF
3689 { test "$extra_verbose" = "yes" && cat << \EOF
3690 Defining gid_t = int
3692 cat >> confdefs.h <<\EOF
3699 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3700 echo "configure:3701: checking for mode_t" >&5
3702 cat > conftest.$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3705 #include <sys/types.h>
3711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3712 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3714 ac_cv_type_mode_t=yes
3717 ac_cv_type_mode_t=no
3721 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3722 if test $ac_cv_type_mode_t = no; then
3723 { test "$extra_verbose" = "yes" && cat << \EOF
3724 Defining mode_t = int
3726 cat >> confdefs.h <<\EOF
3733 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3734 echo "configure:3735: checking for off_t" >&5
3736 cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3739 #include <sys/types.h>
3745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3746 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3748 ac_cv_type_off_t=yes
3755 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3756 if test $ac_cv_type_off_t = no; then
3757 { test "$extra_verbose" = "yes" && cat << \EOF
3758 Defining off_t = long
3760 cat >> confdefs.h <<\EOF
3768 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3769 echo "configure:3770: checking for struct timeval" >&5
3770 cat > conftest.$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3773 #ifdef TIME_WITH_SYS_TIME
3774 #include <sys/time.h>
3777 #ifdef HAVE_SYS_TIME_H
3778 #include <sys/time.h>
3784 static struct timeval x; x.tv_sec = x.tv_usec;
3787 if { (eval echo configure:3788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3789 echo "$ac_t""yes" 1>&6
3791 { test "$extra_verbose" = "yes" && cat << \EOF
3792 Defining HAVE_TIMEVAL
3794 cat >> confdefs.h <<\EOF
3795 #define HAVE_TIMEVAL 1
3800 echo "configure: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3803 echo "$ac_t""no" 1>&6
3808 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3809 echo "configure:3810: checking whether struct tm is in sys/time.h or time.h" >&5
3811 cat > conftest.$ac_ext <<EOF
3812 #line 3813 "configure"
3813 #include "confdefs.h"
3814 #include <sys/types.h>
3817 struct tm *tp; tp->tm_sec;
3820 if { (eval echo configure:3821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3822 ac_cv_struct_tm=time.h
3824 echo "configure: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3827 ac_cv_struct_tm=sys/time.h
3831 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3832 if test $ac_cv_struct_tm = sys/time.h; then
3833 { test "$extra_verbose" = "yes" && cat << \EOF
3834 Defining TM_IN_SYS_TIME
3836 cat >> confdefs.h <<\EOF
3837 #define TM_IN_SYS_TIME 1
3843 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3844 echo "configure:3845: checking for tm_zone in struct tm" >&5
3846 cat > conftest.$ac_ext <<EOF
3847 #line 3848 "configure"
3848 #include "confdefs.h"
3849 #include <sys/types.h>
3850 #include <$ac_cv_struct_tm>
3852 struct tm tm; tm.tm_zone;
3855 if { (eval echo configure:3856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3857 ac_cv_struct_tm_zone=yes
3859 echo "configure: failed program was:" >&5
3860 cat conftest.$ac_ext >&5
3862 ac_cv_struct_tm_zone=no
3866 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3867 if test "$ac_cv_struct_tm_zone" = yes; then
3868 { test "$extra_verbose" = "yes" && cat << \EOF
3869 Defining HAVE_TM_ZONE
3871 cat >> confdefs.h <<\EOF
3872 #define HAVE_TM_ZONE 1
3877 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3878 echo "configure:3879: checking for tzname" >&5
3880 cat > conftest.$ac_ext <<EOF
3881 #line 3882 "configure"
3882 #include "confdefs.h"
3884 #ifndef tzname /* For SGI. */
3885 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3891 if { (eval echo configure:3892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3893 ac_cv_var_tzname=yes
3895 echo "configure: failed program was:" >&5
3896 cat conftest.$ac_ext >&5
3902 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3903 if test $ac_cv_var_tzname = yes; then
3904 { test "$extra_verbose" = "yes" && cat << \EOF
3905 Defining HAVE_TZNAME
3907 cat >> confdefs.h <<\EOF
3908 #define HAVE_TZNAME 1
3916 echo $ac_n "checking for working const""... $ac_c" 1>&6
3917 echo "configure:3918: checking for working const" >&5
3919 cat > conftest.$ac_ext <<EOF
3920 #line 3921 "configure"
3921 #include "confdefs.h"
3925 /* Ultrix mips cc rejects this. */
3926 typedef int charset[2]; const charset x;
3927 /* SunOS 4.1.1 cc rejects this. */
3928 char const *const *ccp;
3930 /* NEC SVR4.0.2 mips cc rejects this. */
3931 struct point {int x, y;};
3932 static struct point const zero = {0,0};
3933 /* AIX XL C 1.02.0.0 rejects this.
3934 It does not let you subtract one const X* pointer from another in an arm
3935 of an if-expression whose if-part is not a constant expression */
3936 const char *g = "string";
3937 ccp = &g + (g ? g-g : 0);
3938 /* HPUX 7.0 cc rejects these. */
3941 ccp = (char const *const *) p;
3942 { /* SCO 3.2v4 cc rejects this. */
3944 char const *s = 0 ? (char *) 0 : (char const *) 0;
3948 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3950 const int *foo = &x[0];
3953 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3954 typedef const int *iptr;
3958 { /* AIX XL C 1.02.0.0 rejects this saying
3959 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3960 struct s { int j; const int *ap[3]; };
3961 struct s *b; b->j = 5;
3963 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3969 if { (eval echo configure:3970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3973 echo "configure: failed program was:" >&5
3974 cat conftest.$ac_ext >&5
3980 echo "$ac_t""$ac_cv_c_const" 1>&6
3981 if test $ac_cv_c_const = no; then
3982 { test "$extra_verbose" = "yes" && cat << \EOF
3985 cat >> confdefs.h <<\EOF
3993 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3994 echo "configure:3995: checking whether ${MAKE-make} sets \${MAKE}" >&5
3995 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3997 cat > conftestmake <<\EOF
3999 @echo 'ac_maketemp="${MAKE}"'
4001 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4002 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4003 if test -n "$ac_maketemp"; then
4004 eval ac_cv_prog_make_${ac_make}_set=yes
4006 eval ac_cv_prog_make_${ac_make}_set=no
4009 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4010 echo "$ac_t""yes" 1>&6
4013 echo "$ac_t""no" 1>&6
4014 SET_MAKE="MAKE=${MAKE-make}"
4018 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4019 echo "configure:4020: checking whether byte ordering is bigendian" >&5
4021 ac_cv_c_bigendian=unknown
4022 # See if sys/param.h defines the BYTE_ORDER macro.
4023 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4026 #include <sys/types.h>
4027 #include <sys/param.h>
4030 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4035 if { (eval echo configure:4036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4037 # It does; now see whether it defined to BIG_ENDIAN or not.
4038 cat > conftest.$ac_ext <<EOF
4039 #line 4040 "configure"
4040 #include "confdefs.h"
4041 #include <sys/types.h>
4042 #include <sys/param.h>
4045 #if BYTE_ORDER != BIG_ENDIAN
4050 if { (eval echo configure:4051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4052 ac_cv_c_bigendian=yes
4054 echo "configure: failed program was:" >&5
4055 cat conftest.$ac_ext >&5
4057 ac_cv_c_bigendian=no
4061 echo "configure: failed program was:" >&5
4062 cat conftest.$ac_ext >&5
4065 if test $ac_cv_c_bigendian = unknown; then
4066 cat > conftest.$ac_ext <<EOF
4067 #line 4068 "configure"
4068 #include "confdefs.h"
4070 /* Are we little or big endian? From Harbison&Steele. */
4074 char c[sizeof (long)];
4077 exit (u.c[sizeof (long) - 1] == 1);
4080 if { (eval echo configure:4081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4082 ac_cv_c_bigendian=no
4085 echo "configure: failed program was:" >&5
4086 cat conftest.$ac_ext >&5
4088 ac_cv_c_bigendian=yes
4093 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4094 if test $ac_cv_c_bigendian = yes; then
4095 { test "$extra_verbose" = "yes" && cat << \EOF
4096 Defining WORDS_BIGENDIAN
4098 cat >> confdefs.h <<\EOF
4099 #define WORDS_BIGENDIAN 1
4106 echo $ac_n "checking size of short""... $ac_c" 1>&6
4107 echo "configure:4108: checking size of short" >&5
4109 cat > conftest.$ac_ext <<EOF
4110 #line 4111 "configure"
4111 #include "confdefs.h"
4115 FILE *f=fopen("conftestval", "w");
4117 fprintf(f, "%d\n", sizeof(short));
4121 if { (eval echo configure:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4123 ac_cv_sizeof_short=`cat conftestval`
4126 echo "configure: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4129 ac_cv_sizeof_short=0
4132 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4133 { test "$extra_verbose" = "yes" && cat << EOF
4134 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4136 cat >> confdefs.h <<EOF
4137 #define SIZEOF_SHORT $ac_cv_sizeof_short
4142 if test "$ac_cv_sizeof_short" = 0; then
4144 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4145 echo "*** PANIC *** Please examine config.log for compilation errors."
4148 echo $ac_n "checking size of int""... $ac_c" 1>&6
4149 echo "configure:4150: checking size of int" >&5
4151 cat > conftest.$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4157 FILE *f=fopen("conftestval", "w");
4159 fprintf(f, "%d\n", sizeof(int));
4163 if { (eval echo configure:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4165 ac_cv_sizeof_int=`cat conftestval`
4168 echo "configure: failed program was:" >&5
4169 cat conftest.$ac_ext >&5
4174 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4175 { test "$extra_verbose" = "yes" && cat << EOF
4176 Defining SIZEOF_INT = $ac_cv_sizeof_int
4178 cat >> confdefs.h <<EOF
4179 #define SIZEOF_INT $ac_cv_sizeof_int
4184 echo $ac_n "checking size of long""... $ac_c" 1>&6
4185 echo "configure:4186: checking size of long" >&5
4187 cat > conftest.$ac_ext <<EOF
4188 #line 4189 "configure"
4189 #include "confdefs.h"
4193 FILE *f=fopen("conftestval", "w");
4195 fprintf(f, "%d\n", sizeof(long));
4199 if { (eval echo configure:4200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4201 ac_cv_sizeof_long=`cat conftestval`
4204 echo "configure: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4210 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4211 { test "$extra_verbose" = "yes" && cat << EOF
4212 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4214 cat >> confdefs.h <<EOF
4215 #define SIZEOF_LONG $ac_cv_sizeof_long
4220 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4221 echo "configure:4222: checking size of long long" >&5
4223 cat > conftest.$ac_ext <<EOF
4224 #line 4225 "configure"
4225 #include "confdefs.h"
4229 FILE *f=fopen("conftestval", "w");
4231 fprintf(f, "%d\n", sizeof(long long));
4235 if { (eval echo configure:4236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4237 ac_cv_sizeof_long_long=`cat conftestval`
4240 echo "configure: failed program was:" >&5
4241 cat conftest.$ac_ext >&5
4243 ac_cv_sizeof_long_long=0
4246 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4247 { test "$extra_verbose" = "yes" && cat << EOF
4248 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4250 cat >> confdefs.h <<EOF
4251 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4256 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4257 echo "configure:4258: checking size of void *" >&5
4259 cat > conftest.$ac_ext <<EOF
4260 #line 4261 "configure"
4261 #include "confdefs.h"
4265 FILE *f=fopen("conftestval", "w");
4267 fprintf(f, "%d\n", sizeof(void *));
4271 if { (eval echo configure:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4273 ac_cv_sizeof_void_p=`cat conftestval`
4276 echo "configure: failed program was:" >&5
4277 cat conftest.$ac_ext >&5
4279 ac_cv_sizeof_void_p=0
4282 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4283 { test "$extra_verbose" = "yes" && cat << EOF
4284 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4286 cat >> confdefs.h <<EOF
4287 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4293 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4294 echo "configure:4295: checking for long file names" >&5
4296 ac_cv_sys_long_file_names=yes
4297 # Test for long file names in all the places we know might matter:
4298 # . the current directory, where building will happen
4299 # $prefix/lib where we will be installing things
4300 # $exec_prefix/lib likewise
4301 # eval it to expand exec_prefix.
4302 # $TMPDIR if set, where it might want to write temporary files
4303 # if $TMPDIR is not set:
4304 # /tmp where it might want to write temporary files
4307 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4308 ac_tmpdirs="$TMPDIR"
4310 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4312 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4313 test -d $ac_dir || continue
4314 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4315 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4316 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4317 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4318 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4319 ac_cv_sys_long_file_names=no
4320 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4323 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4326 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4327 if test $ac_cv_sys_long_file_names = yes; then
4328 { test "$extra_verbose" = "yes" && cat << \EOF
4329 Defining HAVE_LONG_FILE_NAMES
4331 cat >> confdefs.h <<\EOF
4332 #define HAVE_LONG_FILE_NAMES 1
4339 echo $ac_n "checking for sin""... $ac_c" 1>&6
4340 echo "configure:4341: checking for sin" >&5
4342 cat > conftest.$ac_ext <<EOF
4343 #line 4344 "configure"
4344 #include "confdefs.h"
4345 /* System header to define __stub macros and hopefully few prototypes,
4346 which can conflict with char sin(); below. */
4348 /* Override any gcc2 internal prototype to avoid an error. */
4349 /* We use char because int might match the return type of a gcc2
4350 builtin and then its argument prototype would still apply. */
4355 /* The GNU C library defines this for functions which it implements
4356 to always fail with ENOSYS. Some functions are actually named
4357 something starting with __ and the normal name is an alias. */
4358 #if defined (__stub_sin) || defined (__stub___sin)
4366 if { (eval echo configure:4367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4368 eval "ac_cv_func_sin=yes"
4370 echo "configure: failed program was:" >&5
4371 cat conftest.$ac_ext >&5
4373 eval "ac_cv_func_sin=no"
4377 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4378 echo "$ac_t""yes" 1>&6
4381 echo "$ac_t""no" 1>&6
4383 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4384 echo "configure:4385: checking for sin in -lm" >&5
4385 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4387 xe_check_libs=" -lm "
4388 cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4391 /* Override any gcc2 internal prototype to avoid an error. */
4392 /* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */
4400 if { (eval echo configure:4401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4402 eval "ac_cv_lib_$ac_lib_var=yes"
4404 echo "configure: failed program was:" >&5
4405 cat conftest.$ac_ext >&5
4407 eval "ac_cv_lib_$ac_lib_var=no"
4412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4413 echo "$ac_t""yes" 1>&6
4414 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4415 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4416 { test "$extra_verbose" = "yes" && cat << EOF
4419 cat >> confdefs.h <<EOF
4420 #define $ac_tr_lib 1
4424 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4427 echo "$ac_t""no" 1>&6
4434 { test "$extra_verbose" = "yes" && cat << \EOF
4435 Defining LISP_FLOAT_TYPE
4437 cat >> confdefs.h <<\EOF
4438 #define LISP_FLOAT_TYPE 1
4443 cat > conftest.$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
4448 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4451 if { (eval echo configure:4452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4453 { test "$extra_verbose" = "yes" && cat << \EOF
4454 Defining HAVE_INVERSE_HYPERBOLIC
4456 cat >> confdefs.h <<\EOF
4457 #define HAVE_INVERSE_HYPERBOLIC 1
4462 echo "configure: failed program was:" >&5
4463 cat conftest.$ac_ext >&5
4467 echo "checking type of mail spool file locking" 1>&6
4468 echo "configure:4469: checking type of mail spool file locking" >&5
4469 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4470 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4471 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4472 Defining REAL_MAIL_USE_LOCKF
4474 cat >> confdefs.h <<\EOF
4475 #define REAL_MAIL_USE_LOCKF 1
4479 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4480 Defining REAL_MAIL_USE_FLOCK
4482 cat >> confdefs.h <<\EOF
4483 #define REAL_MAIL_USE_FLOCK 1
4487 else mail_locking="dot-locking"
4490 case "$opsys" in decosf*)
4492 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4493 echo "configure:4494: checking for cma_open in -lpthreads" >&5
4494 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4496 xe_check_libs=" -lpthreads "
4497 cat > conftest.$ac_ext <<EOF
4498 #line 4499 "configure"
4499 #include "confdefs.h"
4500 /* Override any gcc2 internal prototype to avoid an error. */
4501 /* We use char because int might match the return type of a gcc2
4502 builtin and then its argument prototype would still apply. */
4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4511 eval "ac_cv_lib_$ac_lib_var=yes"
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 eval "ac_cv_lib_$ac_lib_var=no"
4521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4522 echo "$ac_t""yes" 1>&6
4523 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4524 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4525 { test "$extra_verbose" = "yes" && cat << EOF
4528 cat >> confdefs.h <<EOF
4529 #define $ac_tr_lib 1
4533 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4536 echo "$ac_t""no" 1>&6
4540 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4541 c_switch_site="$c_switch_site -threads" ;;
4544 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4545 echo "configure:4546: checking whether the -xildoff compiler flag is required" >&5
4546 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4547 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4548 then echo "$ac_t""no" 1>&6;
4549 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
4551 else echo "$ac_t""no" 1>&6
4554 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4555 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4556 echo "configure:4557: checking for \"-z ignore\" linker flag" >&5
4557 case "`ld -h 2>&1`" in
4558 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4559 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4560 *) echo "$ac_t""no" 1>&6 ;;
4565 echo "checking "for specified window system"" 1>&6
4566 echo "configure:4567: checking "for specified window system"" >&5
4568 if test "$with_x11" != "no"; then
4569 test "$x_includes $x_libraries" != "NONE NONE" && \
4570 window_system=x11 with_x11=yes
4573 if test "$x_includes $x_libraries" = "NONE NONE" \
4574 -a -n "$OPENWINHOME" \
4575 -a "$OPENWINHOME" != "/usr/openwin" \
4576 -a -d "$OPENWINHOME"; then
4577 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4578 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4579 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4582 if test "$x_includes" = "NONE"; then
4583 for dir in "/usr/X11" "/usr/X11R6"; do
4584 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4588 if test "$x_libraries" = "NONE"; then
4589 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4590 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4594 # If we find X, set shell vars x_includes and x_libraries to the
4595 # paths, otherwise set no_x=yes.
4596 # Uses ac_ vars as temps to allow command line to override cache and checks.
4597 # --without-x overrides everything else, but does not touch the cache.
4598 echo $ac_n "checking for X""... $ac_c" 1>&6
4599 echo "configure:4600: checking for X" >&5
4601 # Check whether --with-x or --without-x was given.
4602 if test "${with_x+set}" = set; then
4607 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4608 if test "x$with_x" = xno; then
4609 # The user explicitly disabled X.
4612 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4613 # Both variables are already set.
4617 # One or both of the vars are not set, and there is no cached value.
4618 ac_x_includes=NO ac_x_libraries=NO
4620 if mkdir conftestdir; then
4622 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4623 cat > Imakefile <<'EOF'
4625 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4627 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4628 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4629 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4630 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4631 for ac_extension in a so sl; do
4632 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4633 test -f $ac_im_libdir/libX11.$ac_extension; then
4634 ac_im_usrlibdir=$ac_im_libdir; break
4637 # Screen out bogus values from the imake configuration. They are
4638 # bogus both because they are the default anyway, and because
4639 # using them would break gcc on systems where it needs fixed includes.
4640 case "$ac_im_incroot" in
4642 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4644 case "$ac_im_usrlibdir" in
4646 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4653 if test "$ac_x_includes" = NO; then
4654 # Guess where to find include files, by looking for this one X11 .h file.
4655 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4657 # First, try using that file with no special directory specified.
4658 cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4661 #include <$x_direct_test_include>
4663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4664 { (eval echo configure:4665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4666 if test -z "$ac_err"; then
4668 # We can compile using X headers with no special include directory.
4672 echo "configure: failed program was:" >&5
4673 cat conftest.$ac_ext >&5
4675 # Look for the header file in a standard set of common directories.
4676 # Check X11 before X11Rn because it is often a symlink to the current release.
4679 /usr/X11R6/include \
4680 /usr/X11R5/include \
4681 /usr/X11R4/include \
4684 /usr/include/X11R6 \
4685 /usr/include/X11R5 \
4686 /usr/include/X11R4 \
4688 /usr/local/X11/include \
4689 /usr/local/X11R6/include \
4690 /usr/local/X11R5/include \
4691 /usr/local/X11R4/include \
4693 /usr/local/include/X11 \
4694 /usr/local/include/X11R6 \
4695 /usr/local/include/X11R5 \
4696 /usr/local/include/X11R4 \
4700 /usr/XFree86/include/X11 \
4703 /usr/local/include \
4704 /usr/unsupported/include \
4705 /usr/athena/include \
4706 /usr/local/x11r5/include \
4707 /usr/lpp/Xamples/include \
4709 /usr/openwin/include \
4710 /usr/openwin/share/include \
4713 if test -r "$ac_dir/$x_direct_test_include"; then
4714 ac_x_includes=$ac_dir
4720 fi # $ac_x_includes = NO
4722 if test "$ac_x_libraries" = NO; then
4723 # Check for the libraries.
4725 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4726 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4728 # See if we find them without any special options.
4729 # Don't add to $LIBS permanently.
4730 ac_save_LIBS="$LIBS"
4731 LIBS="-l$x_direct_test_library $LIBS"
4732 cat > conftest.$ac_ext <<EOF
4733 #line 4734 "configure"
4734 #include "confdefs.h"
4737 ${x_direct_test_function}()
4740 if { (eval echo configure:4741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4742 LIBS="$ac_save_LIBS"
4743 # We can link X programs with no special library path.
4746 echo "configure: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
4749 LIBS="$ac_save_LIBS"
4750 # First see if replacing the include by lib works.
4751 # Check X11 before X11Rn because it is often a symlink to the current release.
4752 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4763 /usr/local/X11/lib \
4764 /usr/local/X11R6/lib \
4765 /usr/local/X11R5/lib \
4766 /usr/local/X11R4/lib \
4768 /usr/local/lib/X11 \
4769 /usr/local/lib/X11R6 \
4770 /usr/local/lib/X11R5 \
4771 /usr/local/lib/X11R4 \
4775 /usr/XFree86/lib/X11 \
4779 /usr/unsupported/lib \
4781 /usr/local/x11r5/lib \
4782 /usr/lpp/Xamples/lib \
4786 /usr/openwin/share/lib \
4789 for ac_extension in a so sl; do
4790 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4791 ac_x_libraries=$ac_dir
4798 fi # $ac_x_libraries = NO
4800 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4801 # Didn't find X anywhere. Cache the known absence of X.
4802 ac_cv_have_x="have_x=no"
4804 # Record where we found X for the cache.
4805 ac_cv_have_x="have_x=yes \
4806 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4809 eval "$ac_cv_have_x"
4812 if test "$have_x" != yes; then
4813 echo "$ac_t""$have_x" 1>&6
4816 # If each of the values was on the command line, it overrides each guess.
4817 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4818 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4819 # Update the cache value to reflect the command line values.
4820 ac_cv_have_x="have_x=yes \
4821 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4822 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4825 if test "$no_x" = yes; then
4826 # Not all programs may use this symbol, but it does not hurt to define it.
4827 { test "$extra_verbose" = "yes" && cat << \EOF
4828 Defining X_DISPLAY_MISSING
4830 cat >> confdefs.h <<\EOF
4831 #define X_DISPLAY_MISSING 1
4835 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4837 if test -n "$x_includes"; then
4838 X_CFLAGS="$X_CFLAGS -I$x_includes"
4841 # It would also be nice to do this for all -L options, not just this one.
4842 if test -n "$x_libraries"; then
4843 X_LIBS="$X_LIBS -L$x_libraries"
4844 # For Solaris; some versions of Sun CC require a space after -R and
4845 # others require no space. Words are not sufficient . . . .
4846 case "`(uname -sr) 2>/dev/null`" in
4848 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4849 echo "configure:4850: checking whether -R must be followed by a space" >&5
4850 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4851 cat > conftest.$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4859 if { (eval echo configure:4860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4863 echo "configure: failed program was:" >&5
4864 cat conftest.$ac_ext >&5
4869 if test $ac_R_nospace = yes; then
4870 echo "$ac_t""no" 1>&6
4871 X_LIBS="$X_LIBS -R$x_libraries"
4873 LIBS="$ac_xsave_LIBS -R $x_libraries"
4874 cat > conftest.$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4882 if { (eval echo configure:4883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4886 echo "configure: failed program was:" >&5
4887 cat conftest.$ac_ext >&5
4892 if test $ac_R_space = yes; then
4893 echo "$ac_t""yes" 1>&6
4894 X_LIBS="$X_LIBS -R $x_libraries"
4896 echo "$ac_t""neither works" 1>&6
4899 LIBS="$ac_xsave_LIBS"
4903 # Check for system-dependent libraries X programs must link with.
4904 # Do this before checking for the system-independent R6 libraries
4905 # (-lICE), since we may need -lsocket or whatever for X linking.
4907 if test "$ISC" = yes; then
4908 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4910 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4911 # libraries were built with DECnet support. And karl@cs.umb.edu says
4912 # the Alpha needs dnet_stub (dnet does not exist).
4913 if test "$with_dnet" = "no" ; then
4914 ac_cv_lib_dnet_dnet_ntoa=no
4917 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4918 echo "configure:4919: checking for dnet_ntoa in -ldnet" >&5
4919 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4921 xe_check_libs=" -ldnet "
4922 cat > conftest.$ac_ext <<EOF
4923 #line 4924 "configure"
4924 #include "confdefs.h"
4925 /* Override any gcc2 internal prototype to avoid an error. */
4926 /* We use char because int might match the return type of a gcc2
4927 builtin and then its argument prototype would still apply. */
4934 if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4936 eval "ac_cv_lib_$ac_lib_var=yes"
4938 echo "configure: failed program was:" >&5
4939 cat conftest.$ac_ext >&5
4941 eval "ac_cv_lib_$ac_lib_var=no"
4946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4947 echo "$ac_t""yes" 1>&6
4948 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4950 echo "$ac_t""no" 1>&6
4955 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4957 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4958 echo "configure:4959: checking for dnet_ntoa in -ldnet_stub" >&5
4959 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4961 xe_check_libs=" -ldnet_stub "
4962 cat > conftest.$ac_ext <<EOF
4963 #line 4964 "configure"
4964 #include "confdefs.h"
4965 /* Override any gcc2 internal prototype to avoid an error. */
4966 /* We use char because int might match the return type of a gcc2
4967 builtin and then its argument prototype would still apply. */
4974 if { (eval echo configure:4975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4976 eval "ac_cv_lib_$ac_lib_var=yes"
4978 echo "configure: failed program was:" >&5
4979 cat conftest.$ac_ext >&5
4981 eval "ac_cv_lib_$ac_lib_var=no"
4986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4987 echo "$ac_t""yes" 1>&6
4988 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4990 echo "$ac_t""no" 1>&6
4996 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4997 # to get the SysV transport functions.
4998 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5000 # The nsl library prevents programs from opening the X display
5001 # on Irix 5.2, according to dickey@clark.net.
5002 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5003 echo "configure:5004: checking for gethostbyname" >&5
5005 cat > conftest.$ac_ext <<EOF
5006 #line 5007 "configure"
5007 #include "confdefs.h"
5008 /* System header to define __stub macros and hopefully few prototypes,
5009 which can conflict with char gethostbyname(); below. */
5011 /* Override any gcc2 internal prototype to avoid an error. */
5012 /* We use char because int might match the return type of a gcc2
5013 builtin and then its argument prototype would still apply. */
5014 char gethostbyname();
5018 /* The GNU C library defines this for functions which it implements
5019 to always fail with ENOSYS. Some functions are actually named
5020 something starting with __ and the normal name is an alias. */
5021 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5029 if { (eval echo configure:5030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5031 eval "ac_cv_func_gethostbyname=yes"
5033 echo "configure: failed program was:" >&5
5034 cat conftest.$ac_ext >&5
5036 eval "ac_cv_func_gethostbyname=no"
5040 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5041 echo "$ac_t""yes" 1>&6
5044 echo "$ac_t""no" 1>&6
5047 if test $ac_cv_func_gethostbyname = no; then
5049 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5050 echo "configure:5051: checking for gethostbyname in -lnsl" >&5
5051 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5053 xe_check_libs=" -lnsl "
5054 cat > conftest.$ac_ext <<EOF
5055 #line 5056 "configure"
5056 #include "confdefs.h"
5057 /* Override any gcc2 internal prototype to avoid an error. */
5058 /* We use char because int might match the return type of a gcc2
5059 builtin and then its argument prototype would still apply. */
5060 char gethostbyname();
5066 if { (eval echo configure:5067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5068 eval "ac_cv_lib_$ac_lib_var=yes"
5070 echo "configure: failed program was:" >&5
5071 cat conftest.$ac_ext >&5
5073 eval "ac_cv_lib_$ac_lib_var=no"
5078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5079 echo "$ac_t""yes" 1>&6
5080 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5082 echo "$ac_t""no" 1>&6
5088 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5089 # socket/setsockopt and other routines are undefined under SCO ODT
5090 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5091 # on later versions), says simon@lia.di.epfl.ch: it contains
5092 # gethostby* variants that don't use the nameserver (or something).
5093 # -lsocket must be given before -lnsl if both are needed.
5094 # We assume that if connect needs -lnsl, so does gethostbyname.
5095 echo $ac_n "checking for connect""... $ac_c" 1>&6
5096 echo "configure:5097: checking for connect" >&5
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 /* System header to define __stub macros and hopefully few prototypes,
5102 which can conflict with char connect(); below. */
5104 /* Override any gcc2 internal prototype to avoid an error. */
5105 /* We use char because int might match the return type of a gcc2
5106 builtin and then its argument prototype would still apply. */
5111 /* The GNU C library defines this for functions which it implements
5112 to always fail with ENOSYS. Some functions are actually named
5113 something starting with __ and the normal name is an alias. */
5114 #if defined (__stub_connect) || defined (__stub___connect)
5122 if { (eval echo configure:5123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5124 eval "ac_cv_func_connect=yes"
5126 echo "configure: failed program was:" >&5
5127 cat conftest.$ac_ext >&5
5129 eval "ac_cv_func_connect=no"
5133 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5134 echo "$ac_t""yes" 1>&6
5137 echo "$ac_t""no" 1>&6
5140 if test $ac_cv_func_connect = no; then
5142 xe_msg_checking="for connect in -lsocket"
5143 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5144 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5145 echo "configure:5146: checking "$xe_msg_checking"" >&5
5146 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5148 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5149 cat > conftest.$ac_ext <<EOF
5150 #line 5151 "configure"
5151 #include "confdefs.h"
5152 /* Override any gcc2 internal prototype to avoid an error. */
5153 /* We use char because int might match the return type of a gcc2
5154 builtin and then its argument prototype would still apply. */
5161 if { (eval echo configure:5162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5163 eval "ac_cv_lib_$ac_lib_var=yes"
5165 echo "configure: failed program was:" >&5
5166 cat conftest.$ac_ext >&5
5168 eval "ac_cv_lib_$ac_lib_var=no"
5173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5174 echo "$ac_t""yes" 1>&6
5175 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5177 echo "$ac_t""no" 1>&6
5183 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5184 echo $ac_n "checking for remove""... $ac_c" 1>&6
5185 echo "configure:5186: checking for remove" >&5
5187 cat > conftest.$ac_ext <<EOF
5188 #line 5189 "configure"
5189 #include "confdefs.h"
5190 /* System header to define __stub macros and hopefully few prototypes,
5191 which can conflict with char remove(); below. */
5193 /* Override any gcc2 internal prototype to avoid an error. */
5194 /* We use char because int might match the return type of a gcc2
5195 builtin and then its argument prototype would still apply. */
5200 /* The GNU C library defines this for functions which it implements
5201 to always fail with ENOSYS. Some functions are actually named
5202 something starting with __ and the normal name is an alias. */
5203 #if defined (__stub_remove) || defined (__stub___remove)
5211 if { (eval echo configure:5212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5213 eval "ac_cv_func_remove=yes"
5215 echo "configure: failed program was:" >&5
5216 cat conftest.$ac_ext >&5
5218 eval "ac_cv_func_remove=no"
5222 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5223 echo "$ac_t""yes" 1>&6
5226 echo "$ac_t""no" 1>&6
5229 if test $ac_cv_func_remove = no; then
5231 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5232 echo "configure:5233: checking for remove in -lposix" >&5
5233 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5235 xe_check_libs=" -lposix "
5236 cat > conftest.$ac_ext <<EOF
5237 #line 5238 "configure"
5238 #include "confdefs.h"
5239 /* Override any gcc2 internal prototype to avoid an error. */
5240 /* We use char because int might match the return type of a gcc2
5241 builtin and then its argument prototype would still apply. */
5248 if { (eval echo configure:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5250 eval "ac_cv_lib_$ac_lib_var=yes"
5252 echo "configure: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5255 eval "ac_cv_lib_$ac_lib_var=no"
5260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5261 echo "$ac_t""yes" 1>&6
5262 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5264 echo "$ac_t""no" 1>&6
5270 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5271 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5272 echo "configure:5273: checking for shmat" >&5
5274 cat > conftest.$ac_ext <<EOF
5275 #line 5276 "configure"
5276 #include "confdefs.h"
5277 /* System header to define __stub macros and hopefully few prototypes,
5278 which can conflict with char shmat(); below. */
5280 /* Override any gcc2 internal prototype to avoid an error. */
5281 /* We use char because int might match the return type of a gcc2
5282 builtin and then its argument prototype would still apply. */
5287 /* The GNU C library defines this for functions which it implements
5288 to always fail with ENOSYS. Some functions are actually named
5289 something starting with __ and the normal name is an alias. */
5290 #if defined (__stub_shmat) || defined (__stub___shmat)
5298 if { (eval echo configure:5299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5300 eval "ac_cv_func_shmat=yes"
5302 echo "configure: failed program was:" >&5
5303 cat conftest.$ac_ext >&5
5305 eval "ac_cv_func_shmat=no"
5309 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5310 echo "$ac_t""yes" 1>&6
5313 echo "$ac_t""no" 1>&6
5316 if test $ac_cv_func_shmat = no; then
5318 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5319 echo "configure:5320: checking for shmat in -lipc" >&5
5320 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5322 xe_check_libs=" -lipc "
5323 cat > conftest.$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5326 /* Override any gcc2 internal prototype to avoid an error. */
5327 /* We use char because int might match the return type of a gcc2
5328 builtin and then its argument prototype would still apply. */
5335 if { (eval echo configure:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5337 eval "ac_cv_lib_$ac_lib_var=yes"
5339 echo "configure: failed program was:" >&5
5340 cat conftest.$ac_ext >&5
5342 eval "ac_cv_lib_$ac_lib_var=no"
5347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5348 echo "$ac_t""yes" 1>&6
5349 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5351 echo "$ac_t""no" 1>&6
5358 # Check for libraries that X11R6 Xt/Xaw programs need.
5359 ac_save_LDFLAGS="$LDFLAGS"
5360 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5361 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5362 # check for ICE first), but we must link in the order -lSM -lICE or
5363 # we get undefined symbols. So assume we have SM if we have ICE.
5364 # These have to be linked with before -lX11, unlike the other
5365 # libraries we check for below, so use a different variable.
5366 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5368 xe_msg_checking="for IceConnectionNumber in -lICE"
5369 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5370 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5371 echo "configure:5372: checking "$xe_msg_checking"" >&5
5372 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5374 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5375 cat > conftest.$ac_ext <<EOF
5376 #line 5377 "configure"
5377 #include "confdefs.h"
5378 /* Override any gcc2 internal prototype to avoid an error. */
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5381 char IceConnectionNumber();
5384 IceConnectionNumber()
5387 if { (eval echo configure:5388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5389 eval "ac_cv_lib_$ac_lib_var=yes"
5391 echo "configure: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5394 eval "ac_cv_lib_$ac_lib_var=no"
5399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5400 echo "$ac_t""yes" 1>&6
5401 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5403 echo "$ac_t""no" 1>&6
5407 LDFLAGS="$ac_save_LDFLAGS"
5410 # Autoconf claims to find X library and include dirs for us.
5411 if test "$no_x" = "yes"
5412 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5413 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5418 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5419 no ) window_system=none HAVE_X_WINDOWS=no ;;
5422 if test "$with_x11" = "yes"; then
5423 { test "$extra_verbose" = "yes" && cat << \EOF
5424 Defining HAVE_X_WINDOWS
5426 cat >> confdefs.h <<\EOF
5427 #define HAVE_X_WINDOWS 1
5431 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5432 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5434 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5435 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5436 if test -d "$lib_dir" -a -d "$inc_dir"; then
5437 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5438 x_libraries="$lib_dir $x_libraries"
5439 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5441 case "$x_includes" in "$inc_dir"* ) ;; *)
5442 x_includes="$inc_dir $x_includes"
5443 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5448 for rel in "X11R6" "X11R5" "X11R4"; do
5449 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5450 if test -d "$lib_dir" -a -d "$inc_dir"; then
5451 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5452 x_libraries="$x_libraries $lib_dir"
5453 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5455 case "$x_includes" in "$inc_dir"* ) ;; *)
5456 x_includes="$x_includes $inc_dir"
5457 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5462 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
5464 ld_switch_x_site="$X_LIBS"
5467 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5468 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5469 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5471 runpath="" runpath_dirs=""
5472 if test -n "$LD_RUN_PATH"; then
5473 runpath="$LD_RUN_PATH"
5474 elif test "$GCC" = "yes"; then
5475 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5476 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5477 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5478 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5479 case "$arg" in P,* | -L* | -R* )
5480 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5482 xe_runpath_dir="$dir"
5483 test "$xe_runpath_dir" != "/lib" -a \
5484 "$xe_runpath_dir" != "/usr/lib" -a \
5485 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5486 eval "$xe_add_unique_runpath_dir"
5491 ld_switch_run="$ld_switch_run_save"
5494 for arg in $ld_switch_site $ld_switch_x_site; do
5495 case "$arg" in -L*) {
5496 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5497 test "$xe_runpath_dir" != "/lib" -a \
5498 "$xe_runpath_dir" != "/usr/lib" -a \
5499 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5500 eval "$xe_add_unique_runpath_dir"
5503 if test "$opsys $need_motif" = "sol2 yes"; then
5504 xe_runpath_dir="/opt/SUNWdt/lib";
5505 eval "$xe_add_unique_runpath_dir";
5508 if test -n "$runpath"; then
5509 ld_switch_run="${dash_r}${runpath}"
5511 if test "$GCC" = "yes"; then
5512 set x $ld_switch_run; shift; ld_switch_run=""
5513 while test -n "$1"; do
5515 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5516 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5518 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5523 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5528 if test "$extra_verbose" = "yes"; then
5529 echo; echo "X11 compilation variables:"
5530 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5535 if test "$x_includes" != NONE; then
5536 for i in $x_includes; do
5537 if test -d "$i/bitmaps"; then
5538 bitmapdirs="$i/bitmaps:$bitmapdirs"
5540 if test -d "$i/X11/bitmaps"; then
5541 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5544 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5546 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5547 Defining BITMAPDIR = "$bitmapdirs"
5549 cat >> confdefs.h <<EOF
5550 #define BITMAPDIR "$bitmapdirs"
5555 echo "checking for X defines extracted by xmkmf" 1>&6
5556 echo "configure:5557: checking for X defines extracted by xmkmf" >&5
5558 if mkdir conftestdir; then
5560 cat > Imakefile <<'EOF'
5562 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5564 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5565 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5566 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5570 for word in $xmkmf_defines; do
5573 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5574 { test "$extra_verbose" = "yes" && cat << EOF
5577 cat >> confdefs.h <<EOF
5586 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5587 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5588 echo "configure:5589: checking for X11/Intrinsic.h" >&5
5590 cat > conftest.$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5593 #include <X11/Intrinsic.h>
5595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5596 { (eval echo configure:5597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5598 if test -z "$ac_err"; then
5600 eval "ac_cv_header_$ac_safe=yes"
5603 echo "configure: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5606 eval "ac_cv_header_$ac_safe=no"
5609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5610 echo "$ac_t""yes" 1>&6
5613 echo "$ac_t""no" 1>&6
5614 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5619 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5620 echo "configure:5621: checking for XOpenDisplay in -lX11" >&5
5621 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5623 xe_check_libs=" -lX11 "
5624 cat > conftest.$ac_ext <<EOF
5625 #line 5626 "configure"
5626 #include "confdefs.h"
5627 /* Override any gcc2 internal prototype to avoid an error. */
5628 /* We use char because int might match the return type of a gcc2
5629 builtin and then its argument prototype would still apply. */
5630 char XOpenDisplay();
5636 if { (eval echo configure:5637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5638 eval "ac_cv_lib_$ac_lib_var=yes"
5640 echo "configure: failed program was:" >&5
5641 cat conftest.$ac_ext >&5
5643 eval "ac_cv_lib_$ac_lib_var=no"
5648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5649 echo "$ac_t""yes" 1>&6
5652 echo "$ac_t""no" 1>&6
5656 if test "$have_lib_x11" != "yes"; then
5658 xe_msg_checking="for XGetFontProperty in -lX11"
5659 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5660 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5661 echo "configure:5662: checking "$xe_msg_checking"" >&5
5662 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5664 xe_check_libs=" -lX11 -b i486-linuxaout"
5665 cat > conftest.$ac_ext <<EOF
5666 #line 5667 "configure"
5667 #include "confdefs.h"
5668 /* Override any gcc2 internal prototype to avoid an error. */
5669 /* We use char because int might match the return type of a gcc2
5670 builtin and then its argument prototype would still apply. */
5671 char XGetFontProperty();
5677 if { (eval echo configure:5678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5679 eval "ac_cv_lib_$ac_lib_var=yes"
5681 echo "configure: failed program was:" >&5
5682 cat conftest.$ac_ext >&5
5684 eval "ac_cv_lib_$ac_lib_var=no"
5689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5690 echo "$ac_t""yes" 1>&6
5691 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5693 echo "$ac_t""no" 1>&6
5694 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5700 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5703 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5704 echo "configure:5705: checking for XShapeSelectInput in -lXext" >&5
5705 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5707 xe_check_libs=" -lXext "
5708 cat > conftest.$ac_ext <<EOF
5709 #line 5710 "configure"
5710 #include "confdefs.h"
5711 /* Override any gcc2 internal prototype to avoid an error. */
5712 /* We use char because int might match the return type of a gcc2
5713 builtin and then its argument prototype would still apply. */
5714 char XShapeSelectInput();
5720 if { (eval echo configure:5721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5722 eval "ac_cv_lib_$ac_lib_var=yes"
5724 echo "configure: failed program was:" >&5
5725 cat conftest.$ac_ext >&5
5727 eval "ac_cv_lib_$ac_lib_var=no"
5732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5733 echo "$ac_t""yes" 1>&6
5734 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5736 echo "$ac_t""no" 1>&6
5742 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5743 echo "configure:5744: checking for XtOpenDisplay in -lXt" >&5
5744 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5746 xe_check_libs=" -lXt "
5747 cat > conftest.$ac_ext <<EOF
5748 #line 5749 "configure"
5749 #include "confdefs.h"
5750 /* Override any gcc2 internal prototype to avoid an error. */
5751 /* We use char because int might match the return type of a gcc2
5752 builtin and then its argument prototype would still apply. */
5753 char XtOpenDisplay();
5759 if { (eval echo configure:5760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5761 eval "ac_cv_lib_$ac_lib_var=yes"
5763 echo "configure: failed program was:" >&5
5764 cat conftest.$ac_ext >&5
5766 eval "ac_cv_lib_$ac_lib_var=no"
5771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5772 echo "$ac_t""yes" 1>&6
5773 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5775 echo "$ac_t""no" 1>&6
5776 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5781 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5782 echo "configure:5783: checking the version of X11 being used" >&5
5783 cat > conftest.$ac_ext <<EOF
5784 #line 5785 "configure"
5785 #include "confdefs.h"
5786 #include <X11/Intrinsic.h>
5787 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5789 if { (eval echo configure:5790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5791 ./conftest foobar; x11_release=$?
5794 echo "configure: failed program was:" >&5
5795 cat conftest.$ac_ext >&5
5800 echo "$ac_t""R${x11_release}" 1>&6
5801 { test "$extra_verbose" = "yes" && cat << EOF
5802 Defining THIS_IS_X11R${x11_release}
5804 cat >> confdefs.h <<EOF
5805 #define THIS_IS_X11R${x11_release} 1
5810 for ac_hdr in X11/Xlocale.h
5812 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5813 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5814 echo "configure:5815: checking for $ac_hdr" >&5
5816 cat > conftest.$ac_ext <<EOF
5817 #line 5818 "configure"
5818 #include "confdefs.h"
5821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5822 { (eval echo configure:5823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5824 if test -z "$ac_err"; then
5826 eval "ac_cv_header_$ac_safe=yes"
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5832 eval "ac_cv_header_$ac_safe=no"
5835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5836 echo "$ac_t""yes" 1>&6
5837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5838 { test "$extra_verbose" = "yes" && cat << EOF
5841 cat >> confdefs.h <<EOF
5842 #define $ac_tr_hdr 1
5847 echo "$ac_t""no" 1>&6
5852 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5853 echo "configure:5854: checking for XFree86" >&5
5854 if test -d "/usr/X386/include" -o \
5855 -f "/etc/XF86Config" -o \
5856 -f "/etc/X11/XF86Config" -o \
5857 -f "/usr/X11R6/lib/X11/XF86Config"; then
5858 echo "$ac_t""yes" 1>&6
5859 { test "$extra_verbose" = "yes" && cat << \EOF
5860 Defining HAVE_XFREE386
5862 cat >> confdefs.h <<\EOF
5863 #define HAVE_XFREE386 1
5868 echo "$ac_t""no" 1>&6
5871 test -z "$with_xmu" && {
5872 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5873 echo "configure:5874: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5874 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5876 xe_check_libs=" -lXmu "
5877 cat > conftest.$ac_ext <<EOF
5878 #line 5879 "configure"
5879 #include "confdefs.h"
5880 /* Override any gcc2 internal prototype to avoid an error. */
5881 /* We use char because int might match the return type of a gcc2
5882 builtin and then its argument prototype would still apply. */
5883 char XmuReadBitmapDataFromFile();
5886 XmuReadBitmapDataFromFile()
5889 if { (eval echo configure:5890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5891 eval "ac_cv_lib_$ac_lib_var=yes"
5893 echo "configure: failed program was:" >&5
5894 cat conftest.$ac_ext >&5
5896 eval "ac_cv_lib_$ac_lib_var=no"
5901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5902 echo "$ac_t""yes" 1>&6
5905 echo "$ac_t""no" 1>&6
5910 if test "$with_xmu" = "no"; then
5911 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
5912 echo " xemacs will be linked with \"xmu.o\""
5915 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
5916 { test "$extra_verbose" = "yes" && cat << \EOF
5919 cat >> confdefs.h <<\EOF
5927 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5928 echo "configure:5929: checking for main in -lXbsd" >&5
5929 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5931 xe_check_libs=" -lXbsd "
5932 cat > conftest.$ac_ext <<EOF
5933 #line 5934 "configure"
5934 #include "confdefs.h"
5940 if { (eval echo configure:5941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5942 eval "ac_cv_lib_$ac_lib_var=yes"
5944 echo "configure: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5947 eval "ac_cv_lib_$ac_lib_var=no"
5952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5953 echo "$ac_t""yes" 1>&6
5954 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
5956 echo "$ac_t""no" 1>&6
5961 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
5962 if test "$GCC" = "yes"; then
5963 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
5964 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
5967 "xlc" ) CC="xlc_r" ;;
5968 "xlC" ) CC="xlC_r" ;;
5975 if test "$with_msw" != "no"; then
5976 echo "checking for MS-Windows" 1>&6
5977 echo "configure:5978: checking for MS-Windows" >&5
5979 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
5980 echo "configure:5981: checking for main in -lgdi32" >&5
5981 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
5983 xe_check_libs=" -lgdi32 "
5984 cat > conftest.$ac_ext <<EOF
5985 #line 5986 "configure"
5986 #include "confdefs.h"
5992 if { (eval echo configure:5993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5994 eval "ac_cv_lib_$ac_lib_var=yes"
5996 echo "configure: failed program was:" >&5
5997 cat conftest.$ac_ext >&5
5999 eval "ac_cv_lib_$ac_lib_var=no"
6004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6005 echo "$ac_t""yes" 1>&6
6008 echo "$ac_t""no" 1>&6
6012 if test "$with_msw" = "yes"; then
6013 { test "$extra_verbose" = "yes" && cat << \EOF
6014 Defining HAVE_MS_WINDOWS
6016 cat >> confdefs.h <<\EOF
6017 #define HAVE_MS_WINDOWS 1
6021 install_pp="$blddir/lib-src/installexe.sh"
6022 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
6023 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6024 if test "$window_system" != x11; then
6026 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6027 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6028 echo " xemacs will be linked with \"scrollbar-msw.o\""
6030 test "$with_menubars" != "no" && with_menubars=msw \
6031 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6032 echo " xemacs will be linked with \"menubar-msw.o\""
6034 test "$with_toolbars" != "no" && with_toolbars=msw \
6035 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6036 echo " xemacs will be linked with \"toolbar-msw.o\""
6038 test "$with_dialogs" != "no" && with_dialogs=msw \
6039 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6040 echo " xemacs will be linked with \"dialog-msw.o\""
6043 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6044 echo " xemacs will be linked with \"scrollbar-msw.o\""
6046 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6047 echo " xemacs will be linked with \"menubar-msw.o\""
6049 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6050 echo " xemacs will be linked with \"toolbar-msw.o\""
6052 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6053 echo " xemacs will be linked with \"dialog-msw.o\""
6056 cat > conftest.$ac_ext <<EOF
6057 #line 6058 "configure"
6058 #include "confdefs.h"
6060 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6062 if { (eval echo configure:6063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6064 { test "$extra_verbose" = "yes" && cat << \EOF
6065 Defining HAVE_MSG_SELECT
6067 cat >> confdefs.h <<\EOF
6068 #define HAVE_MSG_SELECT 1
6074 echo "configure: failed program was:" >&5
6075 cat conftest.$ac_ext >&5
6079 with_file_coding=yes
6080 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
6081 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\""
6088 test -z "$window_system" && window_system="none"
6090 if test "$window_system" = "none"; then
6091 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6093 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6094 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6096 eval "with_${feature}=no"
6099 test -z "$with_toolbars" && with_toolbars=yes
6102 if test "$with_msw" != "yes"; then
6103 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6105 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6106 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6108 eval "with_${feature}=no"
6114 if test "$with_x11" != "yes"; then
6115 for feature in tooltalk cde offix wmcommand xim xmu
6117 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6118 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6120 eval "with_${feature}=no"
6126 case "$window_system" in
6127 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6128 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6129 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6132 case "$x_libraries" in *X11R4* )
6133 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6134 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6137 echo "checking for WM_COMMAND option" 1>&6
6138 echo "configure:6139: checking for WM_COMMAND option" >&5;
6139 if test "$with_wmcommand" != "no"; then
6140 { test "$extra_verbose" = "yes" && cat << \EOF
6141 Defining HAVE_WMCOMMAND
6143 cat >> confdefs.h <<\EOF
6144 #define HAVE_WMCOMMAND 1
6150 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6151 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6152 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6153 echo "configure:6154: checking for X11/Xauth.h" >&5
6155 cat > conftest.$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6158 #include <X11/Xauth.h>
6160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6161 { (eval echo configure:6162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6163 if test -z "$ac_err"; then
6165 eval "ac_cv_header_$ac_safe=yes"
6168 echo "configure: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6171 eval "ac_cv_header_$ac_safe=no"
6174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6175 echo "$ac_t""yes" 1>&6
6178 echo "$ac_t""no" 1>&6
6182 test -z "$with_xauth" && {
6183 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6184 echo "configure:6185: checking for XauGetAuthByAddr in -lXau" >&5
6185 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6187 xe_check_libs=" -lXau "
6188 cat > conftest.$ac_ext <<EOF
6189 #line 6190 "configure"
6190 #include "confdefs.h"
6191 /* Override any gcc2 internal prototype to avoid an error. */
6192 /* We use char because int might match the return type of a gcc2
6193 builtin and then its argument prototype would still apply. */
6194 char XauGetAuthByAddr();
6200 if { (eval echo configure:6201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6202 eval "ac_cv_lib_$ac_lib_var=yes"
6204 echo "configure: failed program was:" >&5
6205 cat conftest.$ac_ext >&5
6207 eval "ac_cv_lib_$ac_lib_var=no"
6212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6213 echo "$ac_t""yes" 1>&6
6216 echo "$ac_t""no" 1>&6
6221 test -z "$with_xauth" && with_xauth=yes
6222 if test "$with_xauth" = "yes"; then
6223 { test "$extra_verbose" = "yes" && cat << \EOF
6226 cat >> confdefs.h <<\EOF
6227 #define HAVE_XAUTH 1
6233 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
6241 if test "$with_tooltalk" != "no" ; then
6242 for dir in "" "Tt/" "desktop/" ; do
6243 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6244 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6245 echo "configure:6246: checking for ${dir}tt_c.h" >&5
6247 cat > conftest.$ac_ext <<EOF
6248 #line 6249 "configure"
6249 #include "confdefs.h"
6250 #include <${dir}tt_c.h>
6252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6253 { (eval echo configure:6254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6255 if test -z "$ac_err"; then
6257 eval "ac_cv_header_$ac_safe=yes"
6260 echo "configure: failed program was:" >&5
6261 cat conftest.$ac_ext >&5
6263 eval "ac_cv_header_$ac_safe=no"
6266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6267 echo "$ac_t""yes" 1>&6
6268 tt_c_h_path="${dir}tt_c.h"; break
6270 echo "$ac_t""no" 1>&6
6274 if test -z "$tt_c_h_path"; then
6275 if test "$with_tooltalk" = "yes"; then
6276 (echo "$progname: Usage error:"
6277 echo " " "Unable to find required tooltalk header files."
6278 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6283 if test "$with_tooltalk" != "no" ; then
6284 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6286 xe_msg_checking="for tt_message_create in -ltt"
6287 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6288 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6289 echo "configure:6290: checking "$xe_msg_checking"" >&5
6290 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6292 xe_check_libs=" -ltt $extra_libs"
6293 cat > conftest.$ac_ext <<EOF
6294 #line 6295 "configure"
6295 #include "confdefs.h"
6296 /* Override any gcc2 internal prototype to avoid an error. */
6297 /* We use char because int might match the return type of a gcc2
6298 builtin and then its argument prototype would still apply. */
6299 char tt_message_create();
6305 if { (eval echo configure:6306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6307 eval "ac_cv_lib_$ac_lib_var=yes"
6309 echo "configure: failed program was:" >&5
6310 cat conftest.$ac_ext >&5
6312 eval "ac_cv_lib_$ac_lib_var=no"
6317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6318 echo "$ac_t""yes" 1>&6
6319 tt_libs="-ltt $extra_libs"; break
6321 echo "$ac_t""no" 1>&6
6327 if test -z "$tt_libs"; then
6328 if test "$with_tooltalk" = "yes"; then
6329 (echo "$progname: Usage error:"
6330 echo " " "Unable to find required tooltalk libraries."
6331 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6336 test -z "$with_tooltalk" && with_tooltalk=yes
6337 if test "$with_tooltalk" = "yes"; then
6338 { test "$extra_verbose" = "yes" && cat << \EOF
6341 cat >> confdefs.h <<\EOF
6346 { test "$extra_verbose" = "yes" && cat << EOF
6347 Defining TT_C_H_PATH = "$tt_c_h_path"
6349 cat >> confdefs.h <<EOF
6350 #define TT_C_H_PATH "$tt_c_h_path"
6354 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6355 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6356 echo " xemacs will be linked with \"tooltalk.o\""
6360 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6361 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6362 echo "configure:6363: checking for Dt/Dt.h" >&5
6364 cat > conftest.$ac_ext <<EOF
6365 #line 6366 "configure"
6366 #include "confdefs.h"
6369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6370 { (eval echo configure:6371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6372 if test -z "$ac_err"; then
6374 eval "ac_cv_header_$ac_safe=yes"
6377 echo "configure: failed program was:" >&5
6378 cat conftest.$ac_ext >&5
6380 eval "ac_cv_header_$ac_safe=no"
6383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6384 echo "$ac_t""yes" 1>&6
6387 echo "$ac_t""no" 1>&6
6391 test -z "$with_cde" && {
6392 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6393 echo "configure:6394: checking for DtDndDragStart in -lDtSvc" >&5
6394 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6396 xe_check_libs=" -lDtSvc "
6397 cat > conftest.$ac_ext <<EOF
6398 #line 6399 "configure"
6399 #include "confdefs.h"
6400 /* Override any gcc2 internal prototype to avoid an error. */
6401 /* We use char because int might match the return type of a gcc2
6402 builtin and then its argument prototype would still apply. */
6403 char DtDndDragStart();
6409 if { (eval echo configure:6410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6411 eval "ac_cv_lib_$ac_lib_var=yes"
6413 echo "configure: failed program was:" >&5
6414 cat conftest.$ac_ext >&5
6416 eval "ac_cv_lib_$ac_lib_var=no"
6421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6422 echo "$ac_t""yes" 1>&6
6425 echo "$ac_t""no" 1>&6
6430 test -z "$with_cde" && with_cde=yes
6431 if test "$with_dragndrop" = no; then
6432 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6435 if test "$with_cde" = "yes" ; then
6436 { test "$extra_verbose" = "yes" && cat << \EOF
6439 cat >> confdefs.h <<\EOF
6444 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6445 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6446 with_tooltalk=yes # CDE requires Tooltalk
6447 need_motif=yes # CDE requires Motif
6450 test "$window_system" != "x11" && with_offix=no
6451 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6452 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6455 if test "$with_dragndrop" = no; then
6456 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6459 if test "$with_cde" = yes; then
6460 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6463 test -z "$with_offix" && with_offix=no
6464 if test "$with_offix" = "yes"; then
6465 { test "$extra_verbose" = "yes" && cat << \EOF
6466 Defining HAVE_OFFIX_DND
6468 cat >> confdefs.h <<\EOF
6469 #define HAVE_OFFIX_DND 1
6473 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6474 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6477 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6478 echo "configure:6479: checking if drag and drop API is needed" >&5
6479 if test "$with_dragndrop" != "no" ; then
6480 if test -n "$dragndrop_proto" ; then
6482 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6483 { test "$extra_verbose" = "yes" && cat << \EOF
6484 Defining HAVE_DRAGNDROP
6486 cat >> confdefs.h <<\EOF
6487 #define HAVE_DRAGNDROP 1
6491 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6494 echo "$ac_t""no" 1>&6
6498 echo "checking for LDAP" 1>&6
6499 echo "configure:6500: checking for LDAP" >&5
6500 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6501 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6502 echo "configure:6503: checking for ldap.h" >&5
6504 cat > conftest.$ac_ext <<EOF
6505 #line 6506 "configure"
6506 #include "confdefs.h"
6509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6510 { (eval echo configure:6511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6512 if test -z "$ac_err"; then
6514 eval "ac_cv_header_$ac_safe=yes"
6517 echo "configure: failed program was:" >&5
6518 cat conftest.$ac_ext >&5
6520 eval "ac_cv_header_$ac_safe=no"
6523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6524 echo "$ac_t""yes" 1>&6
6527 echo "$ac_t""no" 1>&6
6531 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6532 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6533 echo "configure:6534: checking for lber.h" >&5
6535 cat > conftest.$ac_ext <<EOF
6536 #line 6537 "configure"
6537 #include "confdefs.h"
6540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6541 { (eval echo configure:6542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6543 if test -z "$ac_err"; then
6545 eval "ac_cv_header_$ac_safe=yes"
6548 echo "configure: failed program was:" >&5
6549 cat conftest.$ac_ext >&5
6551 eval "ac_cv_header_$ac_safe=no"
6554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6555 echo "$ac_t""yes" 1>&6
6558 echo "$ac_t""no" 1>&6
6562 if test "$with_ldap" != "no"; then
6563 test -z "$with_umich_ldap" && {
6564 xe_msg_checking="for ldap_open in -lldap"
6565 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6566 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6567 echo "configure:6568: checking "$xe_msg_checking"" >&5
6568 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6570 xe_check_libs=" -lldap -llber"
6571 cat > conftest.$ac_ext <<EOF
6572 #line 6573 "configure"
6573 #include "confdefs.h"
6574 /* Override any gcc2 internal prototype to avoid an error. */
6575 /* We use char because int might match the return type of a gcc2
6576 builtin and then its argument prototype would still apply. */
6583 if { (eval echo configure:6584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6585 eval "ac_cv_lib_$ac_lib_var=yes"
6587 echo "configure: failed program was:" >&5
6588 cat conftest.$ac_ext >&5
6590 eval "ac_cv_lib_$ac_lib_var=no"
6595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6596 echo "$ac_t""yes" 1>&6
6599 echo "$ac_t""no" 1>&6
6604 test "$with_umich_ldap" = "no" && {
6605 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
6606 echo "configure:6607: checking for ldap_set_option in -lldap10" >&5
6607 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
6609 xe_check_libs=" -lldap10 "
6610 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure"
6612 #include "confdefs.h"
6613 /* Override any gcc2 internal prototype to avoid an error. */
6614 /* We use char because int might match the return type of a gcc2
6615 builtin and then its argument prototype would still apply. */
6616 char ldap_set_option();
6622 if { (eval echo configure:6623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6624 eval "ac_cv_lib_$ac_lib_var=yes"
6626 echo "configure: failed program was:" >&5
6627 cat conftest.$ac_ext >&5
6629 eval "ac_cv_lib_$ac_lib_var=no"
6634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6635 echo "$ac_t""yes" 1>&6
6638 echo "$ac_t""no" 1>&6
6643 test -z "$with_ldap" -a \( "$with_umich_ldap" = "yes" -o "$with_ns_ldap" = "yes" \) && with_ldap=yes
6645 if test "$with_ldap" = "yes"; then
6646 { test "$extra_verbose" = "yes" && cat << \EOF
6649 cat >> confdefs.h <<\EOF
6654 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6655 echo " xemacs will be linked with \"eldap.o\""
6657 if test "$with_umich_ldap" = "yes" ; then
6658 { test "$extra_verbose" = "yes" && cat << \EOF
6659 Defining HAVE_UMICH_LDAP
6661 cat >> confdefs.h <<\EOF
6662 #define HAVE_UMICH_LDAP 1
6666 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6667 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6668 elif test "$with_ldap" = "yes" -a "$with_ns_ldap" = "yes" ; then
6669 { test "$extra_verbose" = "yes" && cat << \EOF
6670 Defining HAVE_NS_LDAP
6672 cat >> confdefs.h <<\EOF
6673 #define HAVE_NS_LDAP 1
6677 LIBS="-lldap10 $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap10\" to \$LIBS"; fi
6678 elif test "$with_ldap" = "yes" ; then
6679 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6684 if test "$window_system" != "none"; then
6685 echo "checking for graphics libraries" 1>&6
6686 echo "configure:6687: checking for graphics libraries" >&5
6689 if test -z "$with_xpm"; then
6690 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6691 echo "configure:6692: checking for Xpm - no older than 3.4f" >&5
6693 cat > conftest.$ac_ext <<EOF
6694 #line 6695 "configure"
6695 #include "confdefs.h"
6696 #include <X11/xpm.h>
6697 int main(int c, char **v) {
6699 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6700 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6702 if { (eval echo configure:6703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6704 ./conftest dummy_arg; xpm_status=$?;
6705 if test "$xpm_status" = "0"; then
6709 if test "$xpm_status" = "1"; then
6710 xpm_problem="Xpm library version and header file version don't match!"
6711 elif test "$xpm_status" = "2"; then
6712 xpm_problem="Xpm library version is too old!"
6714 xpm_problem="Internal xpm detection logic error!"
6717 *** WARNING *** $xpm_problem
6718 I'm not touching that with a 10-foot pole!
6719 If you really want to use the installed version of Xpm, rerun
6720 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
6724 echo "configure: failed program was:" >&5
6725 cat conftest.$ac_ext >&5
6731 echo "$ac_t""$with_xpm" 1>&6
6733 if test "$with_xpm" = "yes"; then
6734 { test "$extra_verbose" = "yes" && cat << \EOF
6737 cat >> confdefs.h <<\EOF
6742 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6743 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6744 echo "configure:6745: checking for \"FOR_MSW\" xpm" >&5
6746 cat > conftest.$ac_ext <<EOF
6747 #line 6748 "configure"
6748 #include "confdefs.h"
6751 XpmCreatePixmapFromData()
6754 if { (eval echo configure:6755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6758 echo "configure: failed program was:" >&5
6759 cat conftest.$ac_ext >&5
6765 echo "$ac_t""$xpm_for_msw" 1>&6
6766 if test "$xpm_for_msw" = "yes"; then
6767 { test "$extra_verbose" = "yes" && cat << \EOF
6770 cat >> confdefs.h <<\EOF
6778 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6779 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6780 echo "configure:6781: checking for compface.h" >&5
6782 cat > conftest.$ac_ext <<EOF
6783 #line 6784 "configure"
6784 #include "confdefs.h"
6785 #include <compface.h>
6787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6788 { (eval echo configure:6789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6790 if test -z "$ac_err"; then
6792 eval "ac_cv_header_$ac_safe=yes"
6795 echo "configure: failed program was:" >&5
6796 cat conftest.$ac_ext >&5
6798 eval "ac_cv_header_$ac_safe=no"
6801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6802 echo "$ac_t""yes" 1>&6
6805 echo "$ac_t""no" 1>&6
6809 test -z "$with_xface" && {
6810 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6811 echo "configure:6812: checking for UnGenFace in -lcompface" >&5
6812 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6814 xe_check_libs=" -lcompface "
6815 cat > conftest.$ac_ext <<EOF
6816 #line 6817 "configure"
6817 #include "confdefs.h"
6818 /* Override any gcc2 internal prototype to avoid an error. */
6819 /* We use char because int might match the return type of a gcc2
6820 builtin and then its argument prototype would still apply. */
6827 if { (eval echo configure:6828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6829 eval "ac_cv_lib_$ac_lib_var=yes"
6831 echo "configure: failed program was:" >&5
6832 cat conftest.$ac_ext >&5
6834 eval "ac_cv_lib_$ac_lib_var=no"
6839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6840 echo "$ac_t""yes" 1>&6
6843 echo "$ac_t""no" 1>&6
6848 test -z "$with_xface" && with_xface=yes
6849 if test "$with_xface" = "yes"; then
6850 { test "$extra_verbose" = "yes" && cat << \EOF
6853 cat >> confdefs.h <<\EOF
6854 #define HAVE_XFACE 1
6858 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
6861 if test "$with_gif" != "no"; then
6863 { test "$extra_verbose" = "yes" && cat << \EOF
6866 cat >> confdefs.h <<\EOF
6871 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
6872 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
6876 if test "$with_png $with_tiff" != "no no"; then
6878 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6879 echo "configure:6880: checking for inflate in -lc" >&5
6880 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6882 xe_check_libs=" -lc "
6883 cat > conftest.$ac_ext <<EOF
6884 #line 6885 "configure"
6885 #include "confdefs.h"
6886 /* Override any gcc2 internal prototype to avoid an error. */
6887 /* We use char because int might match the return type of a gcc2
6888 builtin and then its argument prototype would still apply. */
6895 if { (eval echo configure:6896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6897 eval "ac_cv_lib_$ac_lib_var=yes"
6899 echo "configure: failed program was:" >&5
6900 cat conftest.$ac_ext >&5
6902 eval "ac_cv_lib_$ac_lib_var=no"
6907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6908 echo "$ac_t""yes" 1>&6
6911 echo "$ac_t""no" 1>&6
6913 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6914 echo "configure:6915: checking for inflate in -lz" >&5
6915 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6917 xe_check_libs=" -lz "
6918 cat > conftest.$ac_ext <<EOF
6919 #line 6920 "configure"
6920 #include "confdefs.h"
6921 /* Override any gcc2 internal prototype to avoid an error. */
6922 /* We use char because int might match the return type of a gcc2
6923 builtin and then its argument prototype would still apply. */
6930 if { (eval echo configure:6931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6932 eval "ac_cv_lib_$ac_lib_var=yes"
6934 echo "configure: failed program was:" >&5
6935 cat conftest.$ac_ext >&5
6937 eval "ac_cv_lib_$ac_lib_var=no"
6942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6943 echo "$ac_t""yes" 1>&6
6944 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
6946 echo "$ac_t""no" 1>&6
6948 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
6949 echo "configure:6950: checking for inflate in -lgz" >&5
6950 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
6952 xe_check_libs=" -lgz "
6953 cat > conftest.$ac_ext <<EOF
6954 #line 6955 "configure"
6955 #include "confdefs.h"
6956 /* Override any gcc2 internal prototype to avoid an error. */
6957 /* We use char because int might match the return type of a gcc2
6958 builtin and then its argument prototype would still apply. */
6965 if { (eval echo configure:6966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6967 eval "ac_cv_lib_$ac_lib_var=yes"
6969 echo "configure: failed program was:" >&5
6970 cat conftest.$ac_ext >&5
6972 eval "ac_cv_lib_$ac_lib_var=no"
6977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6978 echo "$ac_t""yes" 1>&6
6979 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
6981 echo "$ac_t""no" 1>&6
6993 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6994 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6995 echo "configure:6996: checking for jpeglib.h" >&5
6997 cat > conftest.$ac_ext <<EOF
6998 #line 6999 "configure"
6999 #include "confdefs.h"
7000 #include <jpeglib.h>
7002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7003 { (eval echo configure:7004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7005 if test -z "$ac_err"; then
7007 eval "ac_cv_header_$ac_safe=yes"
7010 echo "configure: failed program was:" >&5
7011 cat conftest.$ac_ext >&5
7013 eval "ac_cv_header_$ac_safe=no"
7016 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7017 echo "$ac_t""yes" 1>&6
7020 echo "$ac_t""no" 1>&6
7024 test -z "$with_jpeg" && {
7025 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7026 echo "configure:7027: checking for jpeg_destroy_decompress in -ljpeg" >&5
7027 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7029 xe_check_libs=" -ljpeg "
7030 cat > conftest.$ac_ext <<EOF
7031 #line 7032 "configure"
7032 #include "confdefs.h"
7033 /* Override any gcc2 internal prototype to avoid an error. */
7034 /* We use char because int might match the return type of a gcc2
7035 builtin and then its argument prototype would still apply. */
7036 char jpeg_destroy_decompress();
7039 jpeg_destroy_decompress()
7042 if { (eval echo configure:7043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7044 eval "ac_cv_lib_$ac_lib_var=yes"
7046 echo "configure: failed program was:" >&5
7047 cat conftest.$ac_ext >&5
7049 eval "ac_cv_lib_$ac_lib_var=no"
7054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7055 echo "$ac_t""yes" 1>&6
7058 echo "$ac_t""no" 1>&6
7063 test -z "$with_jpeg" && with_jpeg=yes
7064 if test "$with_jpeg" = "yes"; then
7065 { test "$extra_verbose" = "yes" && cat << \EOF
7068 cat >> confdefs.h <<\EOF
7073 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7077 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7078 echo "configure:7079: checking for pow" >&5
7080 cat > conftest.$ac_ext <<EOF
7081 #line 7082 "configure"
7082 #include "confdefs.h"
7083 /* System header to define __stub macros and hopefully few prototypes,
7084 which can conflict with char pow(); below. */
7086 /* Override any gcc2 internal prototype to avoid an error. */
7087 /* We use char because int might match the return type of a gcc2
7088 builtin and then its argument prototype would still apply. */
7093 /* The GNU C library defines this for functions which it implements
7094 to always fail with ENOSYS. Some functions are actually named
7095 something starting with __ and the normal name is an alias. */
7096 #if defined (__stub_pow) || defined (__stub___pow)
7104 if { (eval echo configure:7105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7106 eval "ac_cv_func_pow=yes"
7108 echo "configure: failed program was:" >&5
7109 cat conftest.$ac_ext >&5
7111 eval "ac_cv_func_pow=no"
7115 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7116 echo "$ac_t""yes" 1>&6
7119 echo "$ac_t""no" 1>&6
7123 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7124 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7125 echo "configure:7126: checking for png.h" >&5
7127 cat > conftest.$ac_ext <<EOF
7128 #line 7129 "configure"
7129 #include "confdefs.h"
7132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7133 { (eval echo configure:7134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7135 if test -z "$ac_err"; then
7137 eval "ac_cv_header_$ac_safe=yes"
7140 echo "configure: failed program was:" >&5
7141 cat conftest.$ac_ext >&5
7143 eval "ac_cv_header_$ac_safe=no"
7146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7147 echo "$ac_t""yes" 1>&6
7150 echo "$ac_t""no" 1>&6
7154 test -z "$with_png" && {
7155 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7156 echo "configure:7157: checking for png_read_image in -lpng" >&5
7157 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7159 xe_check_libs=" -lpng "
7160 cat > conftest.$ac_ext <<EOF
7161 #line 7162 "configure"
7162 #include "confdefs.h"
7163 /* Override any gcc2 internal prototype to avoid an error. */
7164 /* We use char because int might match the return type of a gcc2
7165 builtin and then its argument prototype would still apply. */
7166 char png_read_image();
7172 if { (eval echo configure:7173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7174 eval "ac_cv_lib_$ac_lib_var=yes"
7176 echo "configure: failed program was:" >&5
7177 cat conftest.$ac_ext >&5
7179 eval "ac_cv_lib_$ac_lib_var=no"
7184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7185 echo "$ac_t""yes" 1>&6
7188 echo "$ac_t""no" 1>&6
7193 if test -z "$with_png"; then
7194 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7195 echo "configure:7196: checking for workable png version information" >&5
7196 xe_check_libs="-lpng -lz"
7197 cat > conftest.$ac_ext <<EOF
7198 #line 7199 "configure"
7199 #include "confdefs.h"
7201 int main(int c, char **v) {
7202 if (c == 1) return 0;
7203 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7204 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7206 if { (eval echo configure:7207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7208 ./conftest dummy_arg; png_status=$?;
7209 if test "$png_status" = "0"; then
7213 if test "$png_status" = "1"; then
7214 png_problem="PNG library version and header file don't match!"
7215 elif test "$png_status" = "2"; then
7216 png_problem="PNG library version too old (pre 1.0.2)!"
7219 *** WARNING *** $png_problem
7220 I'm not touching that with a 10-foot pole!
7221 If you really want to use the installed version of libPNG, rerun
7222 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7226 echo "configure: failed program was:" >&5
7227 cat conftest.$ac_ext >&5
7233 echo "$ac_t""$with_png" 1>&6
7235 if test "$with_png" = "yes"; then
7236 { test "$extra_verbose" = "yes" && cat << \EOF
7239 cat >> confdefs.h <<\EOF
7244 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7247 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7248 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7249 echo "configure:7250: checking for tiffio.h" >&5
7251 cat > conftest.$ac_ext <<EOF
7252 #line 7253 "configure"
7253 #include "confdefs.h"
7256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7257 { (eval echo configure:7258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7259 if test -z "$ac_err"; then
7261 eval "ac_cv_header_$ac_safe=yes"
7264 echo "configure: failed program was:" >&5
7265 cat conftest.$ac_ext >&5
7267 eval "ac_cv_header_$ac_safe=no"
7270 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7271 echo "$ac_t""yes" 1>&6
7274 echo "$ac_t""no" 1>&6
7278 test -z "$with_tiff" && {
7279 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7280 echo "configure:7281: checking for TIFFClientOpen in -ltiff" >&5
7281 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7283 xe_check_libs=" -ltiff "
7284 cat > conftest.$ac_ext <<EOF
7285 #line 7286 "configure"
7286 #include "confdefs.h"
7287 /* Override any gcc2 internal prototype to avoid an error. */
7288 /* We use char because int might match the return type of a gcc2
7289 builtin and then its argument prototype would still apply. */
7290 char TIFFClientOpen();
7296 if { (eval echo configure:7297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7298 eval "ac_cv_lib_$ac_lib_var=yes"
7300 echo "configure: failed program was:" >&5
7301 cat conftest.$ac_ext >&5
7303 eval "ac_cv_lib_$ac_lib_var=no"
7308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7309 echo "$ac_t""yes" 1>&6
7312 echo "$ac_t""no" 1>&6
7317 test -z "$with_tiff" && with_tiff=yes
7318 if test "$with_tiff" = "yes"; then
7319 { test "$extra_verbose" = "yes" && cat << \EOF
7322 cat >> confdefs.h <<\EOF
7327 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7332 if test "$with_x11" = "yes"; then
7334 echo "checking for X11 graphics libraries" 1>&6
7335 echo "configure:7336: checking for X11 graphics libraries" >&5
7338 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7339 echo "configure:7340: checking for XawScrollbarSetThumb in -lXaw" >&5
7340 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7342 xe_check_libs=" -lXaw "
7343 cat > conftest.$ac_ext <<EOF
7344 #line 7345 "configure"
7345 #include "confdefs.h"
7346 /* Override any gcc2 internal prototype to avoid an error. */
7347 /* We use char because int might match the return type of a gcc2
7348 builtin and then its argument prototype would still apply. */
7349 char XawScrollbarSetThumb();
7352 XawScrollbarSetThumb()
7355 if { (eval echo configure:7356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7357 eval "ac_cv_lib_$ac_lib_var=yes"
7359 echo "configure: failed program was:" >&5
7360 cat conftest.$ac_ext >&5
7362 eval "ac_cv_lib_$ac_lib_var=no"
7367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7368 echo "$ac_t""yes" 1>&6
7371 echo "$ac_t""no" 1>&6
7377 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7378 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7379 echo "configure:7380: checking for Xm/Xm.h" >&5
7381 cat > conftest.$ac_ext <<EOF
7382 #line 7383 "configure"
7383 #include "confdefs.h"
7386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7387 { (eval echo configure:7388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7389 if test -z "$ac_err"; then
7391 eval "ac_cv_header_$ac_safe=yes"
7394 echo "configure: failed program was:" >&5
7395 cat conftest.$ac_ext >&5
7397 eval "ac_cv_header_$ac_safe=no"
7400 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7401 echo "$ac_t""yes" 1>&6
7403 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7404 echo "configure:7405: checking for XmStringFree in -lXm" >&5
7405 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7407 xe_check_libs=" -lXm "
7408 cat > conftest.$ac_ext <<EOF
7409 #line 7410 "configure"
7410 #include "confdefs.h"
7411 /* Override any gcc2 internal prototype to avoid an error. */
7412 /* We use char because int might match the return type of a gcc2
7413 builtin and then its argument prototype would still apply. */
7414 char XmStringFree();
7420 if { (eval echo configure:7421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7422 eval "ac_cv_lib_$ac_lib_var=yes"
7424 echo "configure: failed program was:" >&5
7425 cat conftest.$ac_ext >&5
7427 eval "ac_cv_lib_$ac_lib_var=no"
7432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7433 echo "$ac_t""yes" 1>&6
7436 echo "$ac_t""no" 1>&6
7442 echo "$ac_t""no" 1>&6
7447 if test "$have_motif" = "yes"; then
7448 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7449 echo "configure:7450: checking for Lesstif" >&5
7450 cat > conftest.$ac_ext <<EOF
7451 #line 7452 "configure"
7452 #include "confdefs.h"
7454 #ifdef LESSTIF_VERSION
7459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7460 egrep "yes" >/dev/null 2>&1; then
7469 echo "$ac_t""$have_lesstif" 1>&6
7474 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
7475 with_menubars="lucid" ;;
7477 case "$with_dialogs" in "" | "yes" | "lucid" )
7478 if test "$have_motif" = "yes"; then with_dialogs="motif"
7479 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
7480 else with_dialogs=no
7483 case "$with_scrollbars" in "" | "yes" )
7484 with_scrollbars="lucid" ;;
7487 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars"
7489 case "$all_widgets" in *athena* )
7490 { test "$extra_verbose" = "yes" && cat << \EOF
7491 Defining LWLIB_USES_ATHENA
7493 cat >> confdefs.h <<\EOF
7494 #define LWLIB_USES_ATHENA 1
7498 { test "$extra_verbose" = "yes" && cat << \EOF
7499 Defining NEED_ATHENA
7501 cat >> confdefs.h <<\EOF
7502 #define NEED_ATHENA 1
7506 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
7507 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
7510 case "$all_widgets" in *motif* )
7511 { test "$extra_verbose" = "yes" && cat << \EOF
7512 Defining LWLIB_USES_MOTIF
7514 cat >> confdefs.h <<\EOF
7515 #define LWLIB_USES_MOTIF 1
7519 { test "$extra_verbose" = "yes" && cat << \EOF
7522 cat >> confdefs.h <<\EOF
7523 #define NEED_MOTIF 1
7527 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
7531 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7532 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7533 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
7534 case "$all_widgets" in *lucid* )
7535 { test "$extra_verbose" = "yes" && cat << \EOF
7538 cat >> confdefs.h <<\EOF
7539 #define NEED_LUCID 1
7543 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
7548 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7549 Defining LWLIB_SCROLLBARS_ATHENA
7551 cat >> confdefs.h <<\EOF
7552 #define LWLIB_SCROLLBARS_ATHENA 1
7556 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7557 Defining LWLIB_DIALOGS_ATHENA
7559 cat >> confdefs.h <<\EOF
7560 #define LWLIB_DIALOGS_ATHENA 1
7564 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7565 Defining LWLIB_SCROLLBARS_ATHENA3D
7567 cat >> confdefs.h <<\EOF
7568 #define LWLIB_SCROLLBARS_ATHENA3D 1
7572 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7573 Defining LWLIB_DIALOGS_ATHENA3D
7575 cat >> confdefs.h <<\EOF
7576 #define LWLIB_DIALOGS_ATHENA3D 1
7581 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7582 Defining HAVE_MENUBARS
7584 cat >> confdefs.h <<\EOF
7585 #define HAVE_MENUBARS 1
7589 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7590 Defining HAVE_SCROLLBARS
7592 cat >> confdefs.h <<\EOF
7593 #define HAVE_SCROLLBARS 1
7597 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7598 Defining HAVE_DIALOGS
7600 cat >> confdefs.h <<\EOF
7601 #define HAVE_DIALOGS 1
7605 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7606 Defining HAVE_TOOLBARS
7608 cat >> confdefs.h <<\EOF
7609 #define HAVE_TOOLBARS 1
7614 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7615 Defining LWLIB_MENUBARS_LUCID
7617 cat >> confdefs.h <<\EOF
7618 #define LWLIB_MENUBARS_LUCID 1
7622 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7623 Defining LWLIB_SCROLLBARS_LUCID
7625 cat >> confdefs.h <<\EOF
7626 #define LWLIB_SCROLLBARS_LUCID 1
7631 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7632 Defining LWLIB_MENUBARS_MOTIF
7634 cat >> confdefs.h <<\EOF
7635 #define LWLIB_MENUBARS_MOTIF 1
7639 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7640 Defining LWLIB_SCROLLBARS_MOTIF
7642 cat >> confdefs.h <<\EOF
7643 #define LWLIB_SCROLLBARS_MOTIF 1
7647 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7648 Defining LWLIB_DIALOGS_MOTIF
7650 cat >> confdefs.h <<\EOF
7651 #define LWLIB_DIALOGS_MOTIF 1
7656 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
7657 echo " xemacs will be linked with \"menubar.o\""
7659 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
7660 echo " xemacs will be linked with \"scrollbar.o\""
7662 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
7663 echo " xemacs will be linked with \"dialog.o\""
7665 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
7666 echo " xemacs will be linked with \"toolbar.o\""
7669 if test "$with_x11" = "yes"; then
7670 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
7671 echo " xemacs will be linked with \"menubar-x.o\""
7673 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
7674 echo " xemacs will be linked with \"scrollbar-x.o\""
7676 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
7677 echo " xemacs will be linked with \"dialog-x.o\""
7679 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
7680 echo " xemacs will be linked with \"toolbar-x.o\""
7682 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
7683 echo " xemacs will be linked with \"gui-x.o\""
7686 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
7687 echo "Attempt to Build NAS sound without X"
7688 echo "Please remove NAS configuration or build with X"
7694 test -z "$with_mule" && with_mule=no
7695 test -z "$with_file_coding" && with_file_coding=no
7698 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
7699 { test "$extra_verbose" = "yes" && cat << \EOF
7700 Defining FILE_CODING
7702 cat >> confdefs.h <<\EOF
7703 #define FILE_CODING 1
7707 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
7708 echo " xemacs will be linked with \"file-coding.o\""
7712 if test "$with_mule" = "yes" ; then
7713 echo "checking for Mule-related features" 1>&6
7714 echo "configure:7715: checking for Mule-related features" >&5
7715 { test "$extra_verbose" = "yes" && cat << \EOF
7718 cat >> confdefs.h <<\EOF
7723 { test "$extra_verbose" = "yes" && cat << \EOF
7724 Defining FILE_CODING
7726 cat >> confdefs.h <<\EOF
7727 #define FILE_CODING 1
7731 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
7732 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
7735 for ac_hdr in libintl.h
7737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7739 echo "configure:7740: checking for $ac_hdr" >&5
7741 cat > conftest.$ac_ext <<EOF
7742 #line 7743 "configure"
7743 #include "confdefs.h"
7746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7747 { (eval echo configure:7748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7749 if test -z "$ac_err"; then
7751 eval "ac_cv_header_$ac_safe=yes"
7754 echo "configure: failed program was:" >&5
7755 cat conftest.$ac_ext >&5
7757 eval "ac_cv_header_$ac_safe=no"
7760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7761 echo "$ac_t""yes" 1>&6
7762 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7763 { test "$extra_verbose" = "yes" && cat << EOF
7766 cat >> confdefs.h <<EOF
7767 #define $ac_tr_hdr 1
7772 echo "$ac_t""no" 1>&6
7777 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7778 echo "configure:7779: checking for strerror in -lintl" >&5
7779 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7781 xe_check_libs=" -lintl "
7782 cat > conftest.$ac_ext <<EOF
7783 #line 7784 "configure"
7784 #include "confdefs.h"
7785 /* Override any gcc2 internal prototype to avoid an error. */
7786 /* We use char because int might match the return type of a gcc2
7787 builtin and then its argument prototype would still apply. */
7794 if { (eval echo configure:7795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7796 eval "ac_cv_lib_$ac_lib_var=yes"
7798 echo "configure: failed program was:" >&5
7799 cat conftest.$ac_ext >&5
7801 eval "ac_cv_lib_$ac_lib_var=no"
7806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7807 echo "$ac_t""yes" 1>&6
7808 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7809 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7810 { test "$extra_verbose" = "yes" && cat << EOF
7813 cat >> confdefs.h <<EOF
7814 #define $ac_tr_lib 1
7818 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
7821 echo "$ac_t""no" 1>&6
7826 echo "checking for Mule input methods" 1>&6
7827 echo "configure:7828: checking for Mule input methods" >&5
7828 case "$with_xim" in "" | "yes" )
7829 echo "checking for XIM" 1>&6
7830 echo "configure:7831: checking for XIM" >&5
7832 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
7833 echo "configure:7834: checking for XOpenIM in -lX11" >&5
7834 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
7836 xe_check_libs=" -lX11 "
7837 cat > conftest.$ac_ext <<EOF
7838 #line 7839 "configure"
7839 #include "confdefs.h"
7840 /* Override any gcc2 internal prototype to avoid an error. */
7841 /* We use char because int might match the return type of a gcc2
7842 builtin and then its argument prototype would still apply. */
7849 if { (eval echo configure:7850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7851 eval "ac_cv_lib_$ac_lib_var=yes"
7853 echo "configure: failed program was:" >&5
7854 cat conftest.$ac_ext >&5
7856 eval "ac_cv_lib_$ac_lib_var=no"
7861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7862 echo "$ac_t""yes" 1>&6
7865 echo "$ac_t""no" 1>&6
7870 if test "$have_motif $have_lesstif" = "yes no"; then
7872 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7873 echo "configure:7874: checking for XmImMbLookupString in -lXm" >&5
7874 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7876 xe_check_libs=" -lXm "
7877 cat > conftest.$ac_ext <<EOF
7878 #line 7879 "configure"
7879 #include "confdefs.h"
7880 /* Override any gcc2 internal prototype to avoid an error. */
7881 /* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7883 char XmImMbLookupString();
7886 XmImMbLookupString()
7889 if { (eval echo configure:7890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7891 eval "ac_cv_lib_$ac_lib_var=yes"
7893 echo "configure: failed program was:" >&5
7894 cat conftest.$ac_ext >&5
7896 eval "ac_cv_lib_$ac_lib_var=no"
7901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7902 echo "$ac_t""yes" 1>&6
7905 echo "$ac_t""no" 1>&6
7911 if test "$with_xim" != "no"; then
7912 { test "$extra_verbose" = "yes" && cat << \EOF
7915 cat >> confdefs.h <<\EOF
7920 if test "$with_xim" = "xlib"; then
7921 { test "$extra_verbose" = "yes" && cat << \EOF
7924 cat >> confdefs.h <<\EOF
7929 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
7930 echo " xemacs will be linked with \"input-method-xlib.o\""
7933 if test "$with_xim" = "motif"; then
7934 { test "$extra_verbose" = "yes" && cat << \EOF
7937 cat >> confdefs.h <<\EOF
7943 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
7944 echo " xemacs will be linked with \"input-method-motif.o\""
7947 if test "$with_xim" = "motif"; then
7952 if test "$with_xfs" = "yes" ; then
7953 echo "checking for XFontSet" 1>&6
7954 echo "configure:7955: checking for XFontSet" >&5
7956 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
7957 echo "configure:7958: checking for XmbDrawString in -lX11" >&5
7958 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
7960 xe_check_libs=" -lX11 "
7961 cat > conftest.$ac_ext <<EOF
7962 #line 7963 "configure"
7963 #include "confdefs.h"
7964 /* Override any gcc2 internal prototype to avoid an error. */
7965 /* We use char because int might match the return type of a gcc2
7966 builtin and then its argument prototype would still apply. */
7967 char XmbDrawString();
7973 if { (eval echo configure:7974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7975 eval "ac_cv_lib_$ac_lib_var=yes"
7977 echo "configure: failed program was:" >&5
7978 cat conftest.$ac_ext >&5
7980 eval "ac_cv_lib_$ac_lib_var=no"
7985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7986 echo "$ac_t""yes" 1>&6
7989 echo "$ac_t""no" 1>&6
7994 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
7995 { test "$extra_verbose" = "yes" && cat << \EOF
7996 Defining USE_XFONTSET
7998 cat >> confdefs.h <<\EOF
7999 #define USE_XFONTSET 1
8003 if test "$with_xim" = "no" ; then
8004 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
8005 echo " xemacs will be linked with \"input-method-xfs.o\""
8010 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8011 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8012 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8013 echo "configure:8014: checking for wnn/jllib.h" >&5
8015 cat > conftest.$ac_ext <<EOF
8016 #line 8017 "configure"
8017 #include "confdefs.h"
8018 #include <wnn/jllib.h>
8020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8021 { (eval echo configure:8022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8023 if test -z "$ac_err"; then
8025 eval "ac_cv_header_$ac_safe=yes"
8028 echo "configure: failed program was:" >&5
8029 cat conftest.$ac_ext >&5
8031 eval "ac_cv_header_$ac_safe=no"
8034 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8035 echo "$ac_t""yes" 1>&6
8038 echo "$ac_t""no" 1>&6
8042 if test "$with_wnn" != "no"; then
8043 for ac_func in crypt
8045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8046 echo "configure:8047: checking for $ac_func" >&5
8048 cat > conftest.$ac_ext <<EOF
8049 #line 8050 "configure"
8050 #include "confdefs.h"
8051 /* System header to define __stub macros and hopefully few prototypes,
8052 which can conflict with char $ac_func(); below. */
8054 /* Override any gcc2 internal prototype to avoid an error. */
8055 /* We use char because int might match the return type of a gcc2
8056 builtin and then its argument prototype would still apply. */
8061 /* The GNU C library defines this for functions which it implements
8062 to always fail with ENOSYS. Some functions are actually named
8063 something starting with __ and the normal name is an alias. */
8064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8072 if { (eval echo configure:8073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8074 eval "ac_cv_func_$ac_func=yes"
8076 echo "configure: failed program was:" >&5
8077 cat conftest.$ac_ext >&5
8079 eval "ac_cv_func_$ac_func=no"
8083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8084 echo "$ac_t""yes" 1>&6
8085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8086 { test "$extra_verbose" = "yes" && cat << EOF
8087 Defining $ac_tr_func
8089 cat >> confdefs.h <<EOF
8090 #define $ac_tr_func 1
8095 echo "$ac_t""no" 1>&6
8099 test "$ac_cv_func_crypt" != "yes" && {
8100 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8101 echo "configure:8102: checking for crypt in -lcrypt" >&5
8102 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8104 xe_check_libs=" -lcrypt "
8105 cat > conftest.$ac_ext <<EOF
8106 #line 8107 "configure"
8107 #include "confdefs.h"
8108 /* Override any gcc2 internal prototype to avoid an error. */
8109 /* We use char because int might match the return type of a gcc2
8110 builtin and then its argument prototype would still apply. */
8117 if { (eval echo configure:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8119 eval "ac_cv_lib_$ac_lib_var=yes"
8121 echo "configure: failed program was:" >&5
8122 cat conftest.$ac_ext >&5
8124 eval "ac_cv_lib_$ac_lib_var=no"
8129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8130 echo "$ac_t""yes" 1>&6
8131 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8132 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8133 { test "$extra_verbose" = "yes" && cat << EOF
8136 cat >> confdefs.h <<EOF
8137 #define $ac_tr_lib 1
8141 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
8144 echo "$ac_t""no" 1>&6
8149 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8151 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8152 echo "configure:8153: checking for jl_dic_list_e in -lwnn" >&5
8153 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8155 xe_check_libs=" -lwnn "
8156 cat > conftest.$ac_ext <<EOF
8157 #line 8158 "configure"
8158 #include "confdefs.h"
8159 /* Override any gcc2 internal prototype to avoid an error. */
8160 /* We use char because int might match the return type of a gcc2
8161 builtin and then its argument prototype would still apply. */
8162 char jl_dic_list_e();
8168 if { (eval echo configure:8169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8170 eval "ac_cv_lib_$ac_lib_var=yes"
8172 echo "configure: failed program was:" >&5
8173 cat conftest.$ac_ext >&5
8175 eval "ac_cv_lib_$ac_lib_var=no"
8180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8181 echo "$ac_t""yes" 1>&6
8184 echo "$ac_t""no" 1>&6
8185 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8186 echo "configure:8187: checking for jl_dic_list_e in -lwnn4" >&5
8187 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8189 xe_check_libs=" -lwnn4 "
8190 cat > conftest.$ac_ext <<EOF
8191 #line 8192 "configure"
8192 #include "confdefs.h"
8193 /* Override any gcc2 internal prototype to avoid an error. */
8194 /* We use char because int might match the return type of a gcc2
8195 builtin and then its argument prototype would still apply. */
8196 char jl_dic_list_e();
8202 if { (eval echo configure:8203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8204 eval "ac_cv_lib_$ac_lib_var=yes"
8206 echo "configure: failed program was:" >&5
8207 cat conftest.$ac_ext >&5
8209 eval "ac_cv_lib_$ac_lib_var=no"
8214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8215 echo "$ac_t""yes" 1>&6
8218 echo "$ac_t""no" 1>&6
8219 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8220 echo "configure:8221: checking for jl_dic_list_e in -lwnn6" >&5
8221 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8223 xe_check_libs=" -lwnn6 "
8224 cat > conftest.$ac_ext <<EOF
8225 #line 8226 "configure"
8226 #include "confdefs.h"
8227 /* Override any gcc2 internal prototype to avoid an error. */
8228 /* We use char because int might match the return type of a gcc2
8229 builtin and then its argument prototype would still apply. */
8230 char jl_dic_list_e();
8236 if { (eval echo configure:8237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8238 eval "ac_cv_lib_$ac_lib_var=yes"
8240 echo "configure: failed program was:" >&5
8241 cat conftest.$ac_ext >&5
8243 eval "ac_cv_lib_$ac_lib_var=no"
8248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8249 echo "$ac_t""yes" 1>&6
8252 echo "$ac_t""no" 1>&6
8253 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8254 echo "configure:8255: checking for dic_list_e in -lwnn6_fromsrc" >&5
8255 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8257 xe_check_libs=" -lwnn6_fromsrc "
8258 cat > conftest.$ac_ext <<EOF
8259 #line 8260 "configure"
8260 #include "confdefs.h"
8261 /* Override any gcc2 internal prototype to avoid an error. */
8262 /* We use char because int might match the return type of a gcc2
8263 builtin and then its argument prototype would still apply. */
8270 if { (eval echo configure:8271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8272 eval "ac_cv_lib_$ac_lib_var=yes"
8274 echo "configure: failed program was:" >&5
8275 cat conftest.$ac_ext >&5
8277 eval "ac_cv_lib_$ac_lib_var=no"
8282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8283 echo "$ac_t""yes" 1>&6
8286 echo "$ac_t""no" 1>&6
8301 test -z "$with_wnn" && with_wnn=yes
8302 if test "$with_wnn" = "yes"; then
8303 { test "$extra_verbose" = "yes" && cat << \EOF
8306 cat >> confdefs.h <<\EOF
8311 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
8312 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
8313 echo " xemacs will be linked with \"mule-wnnfns.o\""
8315 if test "$with_wnn6" != "no"; then
8317 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8318 echo "configure:8319: checking for jl_fi_dic_list in -l$libwnn" >&5
8319 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8321 xe_check_libs=" -l$libwnn "
8322 cat > conftest.$ac_ext <<EOF
8323 #line 8324 "configure"
8324 #include "confdefs.h"
8325 /* Override any gcc2 internal prototype to avoid an error. */
8326 /* We use char because int might match the return type of a gcc2
8327 builtin and then its argument prototype would still apply. */
8328 char jl_fi_dic_list();
8334 if { (eval echo configure:8335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8336 eval "ac_cv_lib_$ac_lib_var=yes"
8338 echo "configure: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8341 eval "ac_cv_lib_$ac_lib_var=no"
8346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8347 echo "$ac_t""yes" 1>&6
8350 echo "$ac_t""no" 1>&6
8354 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8357 cat >> confdefs.h <<\EOF
8365 canna_includes_found=no
8366 if test "$with_canna" != "no"; then
8367 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8368 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8369 echo "configure:8370: checking for canna/jrkanji.h" >&5
8371 cat > conftest.$ac_ext <<EOF
8372 #line 8373 "configure"
8373 #include "confdefs.h"
8374 #include <canna/jrkanji.h>
8376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8377 { (eval echo configure:8378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8379 if test -z "$ac_err"; then
8381 eval "ac_cv_header_$ac_safe=yes"
8384 echo "configure: failed program was:" >&5
8385 cat conftest.$ac_ext >&5
8387 eval "ac_cv_header_$ac_safe=no"
8390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8391 echo "$ac_t""yes" 1>&6
8392 canna_includes_found=yes
8394 echo "$ac_t""no" 1>&6
8398 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
8399 -d "/usr/local/canna/include"; then
8400 save_c_switch_site="$c_switch_site"
8401 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8402 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8403 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8404 echo "configure:8405: checking for canna/jrkanji.h" >&5
8406 cat > conftest.$ac_ext <<EOF
8407 #line 8408 "configure"
8408 #include "confdefs.h"
8409 #include <canna/jrkanji.h>
8411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8412 { (eval echo configure:8413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8414 if test -z "$ac_err"; then
8416 eval "ac_cv_header_$ac_safe=yes"
8419 echo "configure: failed program was:" >&5
8420 cat conftest.$ac_ext >&5
8422 eval "ac_cv_header_$ac_safe=no"
8425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8426 echo "$ac_t""yes" 1>&6
8427 canna_includes_found=yes
8429 echo "$ac_t""no" 1>&6
8432 if test "$canna_includes_found" != "yes"; then
8433 c_switch_site="$save_c_switch_site"
8438 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8439 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8440 echo "configure:8441: checking for canna/RK.h" >&5
8442 cat > conftest.$ac_ext <<EOF
8443 #line 8444 "configure"
8444 #include "confdefs.h"
8445 #include <canna/RK.h>
8447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8448 { (eval echo configure:8449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8450 if test -z "$ac_err"; then
8452 eval "ac_cv_header_$ac_safe=yes"
8455 echo "configure: failed program was:" >&5
8456 cat conftest.$ac_ext >&5
8458 eval "ac_cv_header_$ac_safe=no"
8461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8462 echo "$ac_t""yes" 1>&6
8465 echo "$ac_t""no" 1>&6
8469 test -z "$with_canna" && {
8470 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8471 echo "configure:8472: checking for RkBgnBun in -lRKC" >&5
8472 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8474 xe_check_libs=" -lRKC "
8475 cat > conftest.$ac_ext <<EOF
8476 #line 8477 "configure"
8477 #include "confdefs.h"
8478 /* Override any gcc2 internal prototype to avoid an error. */
8479 /* We use char because int might match the return type of a gcc2
8480 builtin and then its argument prototype would still apply. */
8487 if { (eval echo configure:8488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8489 eval "ac_cv_lib_$ac_lib_var=yes"
8491 echo "configure: failed program was:" >&5
8492 cat conftest.$ac_ext >&5
8494 eval "ac_cv_lib_$ac_lib_var=no"
8499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8500 echo "$ac_t""yes" 1>&6
8503 echo "$ac_t""no" 1>&6
8508 test -z "$with_canna" && {
8509 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8510 echo "configure:8511: checking for jrKanjiControl in -lcanna" >&5
8511 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8513 xe_check_libs=" -lcanna "
8514 cat > conftest.$ac_ext <<EOF
8515 #line 8516 "configure"
8516 #include "confdefs.h"
8517 /* Override any gcc2 internal prototype to avoid an error. */
8518 /* We use char because int might match the return type of a gcc2
8519 builtin and then its argument prototype would still apply. */
8520 char jrKanjiControl();
8526 if { (eval echo configure:8527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8528 eval "ac_cv_lib_$ac_lib_var=yes"
8530 echo "configure: failed program was:" >&5
8531 cat conftest.$ac_ext >&5
8533 eval "ac_cv_lib_$ac_lib_var=no"
8538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8539 echo "$ac_t""yes" 1>&6
8542 echo "$ac_t""no" 1>&6
8547 test -z "$with_canna" && with_canna=yes
8548 if test "$with_canna" = "yes"; then
8549 { test "$extra_verbose" = "yes" && cat << \EOF
8552 cat >> confdefs.h <<\EOF
8553 #define HAVE_CANNA 1
8557 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
8558 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
8559 echo " xemacs will be linked with \"mule-canna.o\""
8563 else for feature in xim canna wnn; do
8564 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
8565 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
8567 eval "with_${feature}=no"
8571 if test "$need_motif" = "yes" ; then
8572 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8574 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8575 echo "configure:8576: checking for layout_object_getvalue in -li18n" >&5
8576 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8578 xe_check_libs=" -li18n "
8579 cat > conftest.$ac_ext <<EOF
8580 #line 8581 "configure"
8581 #include "confdefs.h"
8582 /* Override any gcc2 internal prototype to avoid an error. */
8583 /* We use char because int might match the return type of a gcc2
8584 builtin and then its argument prototype would still apply. */
8585 char layout_object_getvalue();
8588 layout_object_getvalue()
8591 if { (eval echo configure:8592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8593 eval "ac_cv_lib_$ac_lib_var=yes"
8595 echo "configure: failed program was:" >&5
8596 cat conftest.$ac_ext >&5
8598 eval "ac_cv_lib_$ac_lib_var=no"
8603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8604 echo "$ac_t""yes" 1>&6
8605 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
8607 echo "$ac_t""no" 1>&6
8612 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
8613 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8614 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8616 runpath="" runpath_dirs=""
8617 if test -n "$LD_RUN_PATH"; then
8618 runpath="$LD_RUN_PATH"
8619 elif test "$GCC" = "yes"; then
8620 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
8621 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
8622 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
8623 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
8624 case "$arg" in P,* | -L* | -R* )
8625 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
8627 xe_runpath_dir="$dir"
8628 test "$xe_runpath_dir" != "/lib" -a \
8629 "$xe_runpath_dir" != "/usr/lib" -a \
8630 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8631 eval "$xe_add_unique_runpath_dir"
8636 ld_switch_run="$ld_switch_run_save"
8639 for arg in $ld_switch_site $ld_switch_x_site; do
8640 case "$arg" in -L*) {
8641 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
8642 test "$xe_runpath_dir" != "/lib" -a \
8643 "$xe_runpath_dir" != "/usr/lib" -a \
8644 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8645 eval "$xe_add_unique_runpath_dir"
8648 if test "$opsys $need_motif" = "sol2 yes"; then
8649 xe_runpath_dir="/opt/SUNWdt/lib";
8650 eval "$xe_add_unique_runpath_dir";
8653 if test -n "$runpath"; then
8654 ld_switch_run="${dash_r}${runpath}"
8656 if test "$GCC" = "yes"; then
8657 set x $ld_switch_run; shift; ld_switch_run=""
8658 while test -n "$1"; do
8660 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8661 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
8663 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
8668 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
8674 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
8676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8677 echo "configure:8678: checking for $ac_func" >&5
8679 cat > conftest.$ac_ext <<EOF
8680 #line 8681 "configure"
8681 #include "confdefs.h"
8682 /* System header to define __stub macros and hopefully few prototypes,
8683 which can conflict with char $ac_func(); below. */
8685 /* Override any gcc2 internal prototype to avoid an error. */
8686 /* We use char because int might match the return type of a gcc2
8687 builtin and then its argument prototype would still apply. */
8692 /* The GNU C library defines this for functions which it implements
8693 to always fail with ENOSYS. Some functions are actually named
8694 something starting with __ and the normal name is an alias. */
8695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8703 if { (eval echo configure:8704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8705 eval "ac_cv_func_$ac_func=yes"
8707 echo "configure: failed program was:" >&5
8708 cat conftest.$ac_ext >&5
8710 eval "ac_cv_func_$ac_func=no"
8714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8715 echo "$ac_t""yes" 1>&6
8716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8717 { test "$extra_verbose" = "yes" && cat << EOF
8718 Defining $ac_tr_func
8720 cat >> confdefs.h <<EOF
8721 #define $ac_tr_func 1
8726 echo "$ac_t""no" 1>&6
8733 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8734 echo " xemacs will be linked with \"realpath.o\""
8737 case "$canonical" in
8738 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8739 echo " xemacs will be linked with \"realpath.o\""
8741 * ) for ac_func in realpath
8743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8744 echo "configure:8745: checking for $ac_func" >&5
8746 cat > conftest.$ac_ext <<EOF
8747 #line 8748 "configure"
8748 #include "confdefs.h"
8749 /* System header to define __stub macros and hopefully few prototypes,
8750 which can conflict with char $ac_func(); below. */
8752 /* Override any gcc2 internal prototype to avoid an error. */
8753 /* We use char because int might match the return type of a gcc2
8754 builtin and then its argument prototype would still apply. */
8759 /* The GNU C library defines this for functions which it implements
8760 to always fail with ENOSYS. Some functions are actually named
8761 something starting with __ and the normal name is an alias. */
8762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8770 if { (eval echo configure:8771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8772 eval "ac_cv_func_$ac_func=yes"
8774 echo "configure: failed program was:" >&5
8775 cat conftest.$ac_ext >&5
8777 eval "ac_cv_func_$ac_func=no"
8781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8782 echo "$ac_t""yes" 1>&6
8783 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8784 { test "$extra_verbose" = "yes" && cat << EOF
8785 Defining $ac_tr_func
8787 cat >> confdefs.h <<EOF
8788 #define $ac_tr_func 1
8793 echo "$ac_t""no" 1>&6
8797 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8798 echo " xemacs will be linked with \"realpath.o\""
8803 for ac_func in getloadavg
8805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8806 echo "configure:8807: checking for $ac_func" >&5
8808 cat > conftest.$ac_ext <<EOF
8809 #line 8810 "configure"
8810 #include "confdefs.h"
8811 /* System header to define __stub macros and hopefully few prototypes,
8812 which can conflict with char $ac_func(); below. */
8814 /* Override any gcc2 internal prototype to avoid an error. */
8815 /* We use char because int might match the return type of a gcc2
8816 builtin and then its argument prototype would still apply. */
8821 /* The GNU C library defines this for functions which it implements
8822 to always fail with ENOSYS. Some functions are actually named
8823 something starting with __ and the normal name is an alias. */
8824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8832 if { (eval echo configure:8833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8834 eval "ac_cv_func_$ac_func=yes"
8836 echo "configure: failed program was:" >&5
8837 cat conftest.$ac_ext >&5
8839 eval "ac_cv_func_$ac_func=no"
8843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8844 echo "$ac_t""yes" 1>&6
8845 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8846 { test "$extra_verbose" = "yes" && cat << EOF
8847 Defining $ac_tr_func
8849 cat >> confdefs.h <<EOF
8850 #define $ac_tr_func 1
8855 echo "$ac_t""no" 1>&6
8860 if test "$ac_cv_func_getloadavg" != "yes"
8862 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
8863 echo " xemacs will be linked with \"getloadavg.o\""
8867 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
8868 echo "configure:8869: checking for kstat_open in -lkstat" >&5
8869 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
8871 xe_check_libs=" -lkstat "
8872 cat > conftest.$ac_ext <<EOF
8873 #line 8874 "configure"
8874 #include "confdefs.h"
8875 /* Override any gcc2 internal prototype to avoid an error. */
8876 /* We use char because int might match the return type of a gcc2
8877 builtin and then its argument prototype would still apply. */
8884 if { (eval echo configure:8885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8886 eval "ac_cv_lib_$ac_lib_var=yes"
8888 echo "configure: failed program was:" >&5
8889 cat conftest.$ac_ext >&5
8891 eval "ac_cv_lib_$ac_lib_var=no"
8896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8897 echo "$ac_t""yes" 1>&6
8898 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8899 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8900 { test "$extra_verbose" = "yes" && cat << EOF
8903 cat >> confdefs.h <<EOF
8904 #define $ac_tr_lib 1
8908 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
8911 echo "$ac_t""no" 1>&6
8917 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
8918 echo "configure:8919: checking for kvm_read in -lkvm" >&5
8919 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
8921 xe_check_libs=" -lkvm "
8922 cat > conftest.$ac_ext <<EOF
8923 #line 8924 "configure"
8924 #include "confdefs.h"
8925 /* Override any gcc2 internal prototype to avoid an error. */
8926 /* We use char because int might match the return type of a gcc2
8927 builtin and then its argument prototype would still apply. */
8934 if { (eval echo configure:8935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8936 eval "ac_cv_lib_$ac_lib_var=yes"
8938 echo "configure: failed program was:" >&5
8939 cat conftest.$ac_ext >&5
8941 eval "ac_cv_lib_$ac_lib_var=no"
8946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8947 echo "$ac_t""yes" 1>&6
8948 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8949 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8950 { test "$extra_verbose" = "yes" && cat << EOF
8953 cat >> confdefs.h <<EOF
8954 #define $ac_tr_lib 1
8958 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
8961 echo "$ac_t""no" 1>&6
8967 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
8968 echo "configure:8969: checking whether netdb declares h_errno" >&5
8969 cat > conftest.$ac_ext <<EOF
8970 #line 8971 "configure"
8971 #include "confdefs.h"
8977 if { (eval echo configure:8978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8979 echo "$ac_t""yes" 1>&6
8980 { test "$extra_verbose" = "yes" && cat << \EOF
8981 Defining HAVE_H_ERRNO
8983 cat >> confdefs.h <<\EOF
8984 #define HAVE_H_ERRNO 1
8989 echo "configure: failed program was:" >&5
8990 cat conftest.$ac_ext >&5
8992 echo "$ac_t""no" 1>&6
8996 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
8997 echo "configure:8998: checking for sigsetjmp" >&5
8998 cat > conftest.$ac_ext <<EOF
8999 #line 9000 "configure"
9000 #include "confdefs.h"
9003 sigjmp_buf bar; sigsetjmp (bar, 0);
9006 if { (eval echo configure:9007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9008 echo "$ac_t""yes" 1>&6
9009 { test "$extra_verbose" = "yes" && cat << \EOF
9010 Defining HAVE_SIGSETJMP
9012 cat >> confdefs.h <<\EOF
9013 #define HAVE_SIGSETJMP 1
9018 echo "configure: failed program was:" >&5
9019 cat conftest.$ac_ext >&5
9021 echo "$ac_t""no" 1>&6
9025 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9026 echo "configure:9027: checking whether localtime caches TZ" >&5
9028 if test "$ac_cv_func_tzset" = "yes"; then
9029 cat > conftest.$ac_ext <<EOF
9030 #line 9031 "configure"
9031 #include "confdefs.h"
9034 # include <stdlib.h>
9036 extern char **environ;
9040 for (to = from = environ; (*to = *from); from++)
9041 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
9044 char TZ_GMT0[] = "TZ=GMT0";
9045 char TZ_PST8[] = "TZ=PST8";
9048 time_t now = time ((time_t *) 0);
9049 int hour_GMT0, hour_unset;
9050 if (putenv (TZ_GMT0) != 0)
9052 hour_GMT0 = localtime (&now)->tm_hour;
9054 hour_unset = localtime (&now)->tm_hour;
9055 if (putenv (TZ_PST8) != 0)
9057 if (localtime (&now)->tm_hour == hour_GMT0)
9060 if (localtime (&now)->tm_hour != hour_unset)
9065 if { (eval echo configure:9066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9067 emacs_cv_localtime_cache=no
9070 echo "configure: failed program was:" >&5
9071 cat conftest.$ac_ext >&5
9073 emacs_cv_localtime_cache=yes
9077 # If we lack tzset, report that localtime does not cache TZ,
9078 # since we can't invalidate the cache if we don't have tzset.
9079 emacs_cv_localtime_cache=no
9081 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
9082 if test $emacs_cv_localtime_cache = yes; then
9083 { test "$extra_verbose" = "yes" && cat << \EOF
9084 Defining LOCALTIME_CACHE
9086 cat >> confdefs.h <<\EOF
9087 #define LOCALTIME_CACHE 1
9093 if test "$HAVE_TIMEVAL" = "yes"; then
9094 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9095 echo "configure:9096: checking whether gettimeofday accepts one or two arguments" >&5
9096 cat > conftest.$ac_ext <<EOF
9097 #line 9098 "configure"
9098 #include "confdefs.h"
9100 #ifdef TIME_WITH_SYS_TIME
9101 #include <sys/time.h>
9104 #ifdef HAVE_SYS_TIME_H
9105 #include <sys/time.h>
9113 struct timeval time;
9114 struct timezone dummy;
9115 gettimeofday (&time, &dummy);
9119 if { (eval echo configure:9120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9121 echo "$ac_t""two" 1>&6
9123 echo "configure: failed program was:" >&5
9124 cat conftest.$ac_ext >&5
9126 echo "$ac_t""one" 1>&6
9127 { test "$extra_verbose" = "yes" && cat << \EOF
9128 Defining GETTIMEOFDAY_ONE_ARGUMENT
9130 cat >> confdefs.h <<\EOF
9131 #define GETTIMEOFDAY_ONE_ARGUMENT 1
9140 echo $ac_n "checking for inline""... $ac_c" 1>&6
9141 echo "configure:9142: checking for inline" >&5
9144 for ac_kw in inline __inline__ __inline; do
9145 cat > conftest.$ac_ext <<EOF
9146 #line 9147 "configure"
9147 #include "confdefs.h"
9153 if { (eval echo configure:9154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9155 ac_cv_c_inline=$ac_kw; break
9157 echo "configure: failed program was:" >&5
9158 cat conftest.$ac_ext >&5
9164 echo "$ac_t""$ac_cv_c_inline" 1>&6
9165 case "$ac_cv_c_inline" in
9167 no) { test "$extra_verbose" = "yes" && cat << \EOF
9170 cat >> confdefs.h <<\EOF
9175 *) { test "$extra_verbose" = "yes" && cat << EOF
9176 Defining inline = $ac_cv_c_inline
9178 cat >> confdefs.h <<EOF
9179 #define inline $ac_cv_c_inline
9185 if test "$ac_cv_c_inline" != "no"; then
9186 { test "$extra_verbose" = "yes" && cat << \EOF
9187 Defining HAVE_INLINE
9189 cat >> confdefs.h <<\EOF
9190 #define HAVE_INLINE 1
9194 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
9195 echo " xemacs will be linked with \"inline.o\""
9200 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9201 # for constant arguments. Useless!
9202 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9203 echo "configure:9204: checking for working alloca.h" >&5
9205 cat > conftest.$ac_ext <<EOF
9206 #line 9207 "configure"
9207 #include "confdefs.h"
9210 char *p = alloca(2 * sizeof(int));
9213 if { (eval echo configure:9214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9215 ac_cv_header_alloca_h=yes
9217 echo "configure: failed program was:" >&5
9218 cat conftest.$ac_ext >&5
9220 ac_cv_header_alloca_h=no
9224 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
9225 if test $ac_cv_header_alloca_h = yes; then
9226 { test "$extra_verbose" = "yes" && cat << \EOF
9227 Defining HAVE_ALLOCA_H
9229 cat >> confdefs.h <<\EOF
9230 #define HAVE_ALLOCA_H 1
9236 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9237 echo "configure:9238: checking for alloca" >&5
9239 cat > conftest.$ac_ext <<EOF
9240 #line 9241 "configure"
9241 #include "confdefs.h"
9244 # define alloca __builtin_alloca
9247 # include <malloc.h>
9248 # define alloca _alloca
9251 # include <alloca.h>
9256 # ifndef alloca /* predefined by HP cc +Olibcalls */
9265 char *p = (char *) alloca(1);
9268 if { (eval echo configure:9269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9270 ac_cv_func_alloca_works=yes
9272 echo "configure: failed program was:" >&5
9273 cat conftest.$ac_ext >&5
9275 ac_cv_func_alloca_works=no
9279 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
9280 if test $ac_cv_func_alloca_works = yes; then
9281 { test "$extra_verbose" = "yes" && cat << \EOF
9282 Defining HAVE_ALLOCA
9284 cat >> confdefs.h <<\EOF
9285 #define HAVE_ALLOCA 1
9291 if test $ac_cv_func_alloca_works = no; then
9292 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9293 # that cause trouble. Some versions do not even contain alloca or
9294 # contain a buggy version. If you still want to use their alloca,
9295 # use ar to extract alloca.o from them instead of compiling alloca.c.
9296 ALLOCA=alloca.${ac_objext}
9297 { test "$extra_verbose" = "yes" && cat << \EOF
9300 cat >> confdefs.h <<\EOF
9306 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9307 echo "configure:9308: checking whether alloca needs Cray hooks" >&5
9309 cat > conftest.$ac_ext <<EOF
9310 #line 9311 "configure"
9311 #include "confdefs.h"
9312 #if defined(CRAY) && ! defined(CRAY2)
9319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9320 egrep "webecray" >/dev/null 2>&1; then
9330 echo "$ac_t""$ac_cv_os_cray" 1>&6
9331 if test $ac_cv_os_cray = yes; then
9332 for ac_func in _getb67 GETB67 getb67; do
9333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9334 echo "configure:9335: checking for $ac_func" >&5
9336 cat > conftest.$ac_ext <<EOF
9337 #line 9338 "configure"
9338 #include "confdefs.h"
9339 /* System header to define __stub macros and hopefully few prototypes,
9340 which can conflict with char $ac_func(); below. */
9342 /* Override any gcc2 internal prototype to avoid an error. */
9343 /* We use char because int might match the return type of a gcc2
9344 builtin and then its argument prototype would still apply. */
9349 /* The GNU C library defines this for functions which it implements
9350 to always fail with ENOSYS. Some functions are actually named
9351 something starting with __ and the normal name is an alias. */
9352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9360 if { (eval echo configure:9361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9362 eval "ac_cv_func_$ac_func=yes"
9364 echo "configure: failed program was:" >&5
9365 cat conftest.$ac_ext >&5
9367 eval "ac_cv_func_$ac_func=no"
9371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9372 echo "$ac_t""yes" 1>&6
9373 { test "$extra_verbose" = "yes" && cat << EOF
9374 Defining CRAY_STACKSEG_END = $ac_func
9376 cat >> confdefs.h <<EOF
9377 #define CRAY_STACKSEG_END $ac_func
9383 echo "$ac_t""no" 1>&6
9389 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9390 echo "configure:9391: checking stack direction for C alloca" >&5
9392 cat > conftest.$ac_ext <<EOF
9393 #line 9394 "configure"
9394 #include "confdefs.h"
9395 find_stack_direction ()
9397 static char *addr = 0;
9402 return find_stack_direction ();
9405 return (&dummy > addr) ? 1 : -1;
9409 exit (find_stack_direction() < 0);
9412 if { (eval echo configure:9413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9414 ac_cv_c_stack_direction=1
9417 echo "configure: failed program was:" >&5
9418 cat conftest.$ac_ext >&5
9420 ac_cv_c_stack_direction=-1
9424 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
9425 { test "$extra_verbose" = "yes" && cat << EOF
9426 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
9428 cat >> confdefs.h <<EOF
9429 #define STACK_DIRECTION $ac_cv_c_stack_direction
9435 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
9436 echo " xemacs will be linked with \"$ALLOCA\""
9439 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9440 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9441 echo "configure:9442: checking for vfork.h" >&5
9443 cat > conftest.$ac_ext <<EOF
9444 #line 9445 "configure"
9445 #include "confdefs.h"
9448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9449 { (eval echo configure:9450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9451 if test -z "$ac_err"; then
9453 eval "ac_cv_header_$ac_safe=yes"
9456 echo "configure: failed program was:" >&5
9457 cat conftest.$ac_ext >&5
9459 eval "ac_cv_header_$ac_safe=no"
9462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9463 echo "$ac_t""yes" 1>&6
9464 { test "$extra_verbose" = "yes" && cat << \EOF
9465 Defining HAVE_VFORK_H
9467 cat >> confdefs.h <<\EOF
9468 #define HAVE_VFORK_H 1
9473 echo "$ac_t""no" 1>&6
9476 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9477 echo "configure:9478: checking for working vfork" >&5
9479 cat > conftest.$ac_ext <<EOF
9480 #line 9481 "configure"
9481 #include "confdefs.h"
9482 /* Thanks to Paul Eggert for this test. */
9484 #include <sys/types.h>
9485 #include <sys/stat.h>
9486 #ifdef HAVE_UNISTD_H
9492 /* On some sparc systems, changes by the child to local and incoming
9493 argument registers are propagated back to the parent.
9494 The compiler is told about this with #include <vfork.h>,
9495 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
9496 Test for this by using a static variable whose address
9497 is put into a register that is clobbered by the vfork. */
9500 sparc_address_test (int arg)
9502 sparc_address_test (arg) int arg;
9520 pid_t parent = getpid ();
9523 sparc_address_test ();
9528 /* Here is another test for sparc vfork register problems.
9529 This test uses lots of local variables, at least
9530 as many local variables as main has allocated so far
9531 including compiler temporaries. 4 locals are enough for
9532 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
9533 A buggy compiler should reuse the register of parent
9534 for one of the local variables, since it will think that
9535 parent can't possibly be used any more in this routine.
9536 Assigning to the local variable will thus munge parent
9537 in the parent process. */
9539 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9540 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9541 /* Convince the compiler that p..p7 are live; otherwise, it might
9542 use the same hardware register for all 8 local variables. */
9543 if (p != p1 || p != p2 || p != p3 || p != p4
9544 || p != p5 || p != p6 || p != p7)
9547 /* On some systems (e.g. IRIX 3.3),
9548 vfork doesn't separate parent from child file descriptors.
9549 If the child closes a descriptor before it execs or exits,
9550 this munges the parent's descriptor as well.
9551 Test for this by closing stdout in the child. */
9552 _exit(close(fileno(stdout)) != 0);
9557 while (wait(&status) != child)
9560 /* Was there some problem with vforking? */
9563 /* Did the child fail? (This shouldn't happen.) */
9566 /* Did the vfork/compiler bug occur? */
9567 || parent != getpid()
9569 /* Did the file descriptor bug occur? */
9570 || fstat(fileno(stdout), &st) != 0
9575 if { (eval echo configure:9576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9577 ac_cv_func_vfork_works=yes
9580 echo "configure: failed program was:" >&5
9581 cat conftest.$ac_ext >&5
9583 ac_cv_func_vfork_works=no
9587 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
9588 if test $ac_cv_func_vfork_works = no; then
9589 { test "$extra_verbose" = "yes" && cat << \EOF
9590 Defining vfork = fork
9592 cat >> confdefs.h <<\EOF
9600 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9601 echo "configure:9602: checking for working strcoll" >&5
9603 cat > conftest.$ac_ext <<EOF
9604 #line 9605 "configure"
9605 #include "confdefs.h"
9609 exit (strcoll ("abc", "def") >= 0 ||
9610 strcoll ("ABC", "DEF") >= 0 ||
9611 strcoll ("123", "456") >= 0);
9614 if { (eval echo configure:9615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9616 ac_cv_func_strcoll_works=yes
9619 echo "configure: failed program was:" >&5
9620 cat conftest.$ac_ext >&5
9622 ac_cv_func_strcoll_works=no
9626 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
9627 if test $ac_cv_func_strcoll_works = yes; then
9628 { test "$extra_verbose" = "yes" && cat << \EOF
9629 Defining HAVE_STRCOLL
9631 cat >> confdefs.h <<\EOF
9632 #define HAVE_STRCOLL 1
9639 for ac_func in getpgrp
9641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9642 echo "configure:9643: checking for $ac_func" >&5
9644 cat > conftest.$ac_ext <<EOF
9645 #line 9646 "configure"
9646 #include "confdefs.h"
9647 /* System header to define __stub macros and hopefully few prototypes,
9648 which can conflict with char $ac_func(); below. */
9650 /* Override any gcc2 internal prototype to avoid an error. */
9651 /* We use char because int might match the return type of a gcc2
9652 builtin and then its argument prototype would still apply. */
9657 /* The GNU C library defines this for functions which it implements
9658 to always fail with ENOSYS. Some functions are actually named
9659 something starting with __ and the normal name is an alias. */
9660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9668 if { (eval echo configure:9669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9670 eval "ac_cv_func_$ac_func=yes"
9672 echo "configure: failed program was:" >&5
9673 cat conftest.$ac_ext >&5
9675 eval "ac_cv_func_$ac_func=no"
9679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9680 echo "$ac_t""yes" 1>&6
9681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9682 { test "$extra_verbose" = "yes" && cat << EOF
9683 Defining $ac_tr_func
9685 cat >> confdefs.h <<EOF
9686 #define $ac_tr_func 1
9691 echo "$ac_t""no" 1>&6
9695 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9696 echo "configure:9697: checking whether getpgrp takes no argument" >&5
9698 cat > conftest.$ac_ext <<EOF
9699 #line 9700 "configure"
9700 #include "confdefs.h"
9703 * If this system has a BSD-style getpgrp(),
9704 * which takes a pid argument, exit unsuccessfully.
9706 * Snarfed from Chet Ramey's bash pgrp.c test program
9709 #include <sys/types.h>
9712 int pg1, pg2, pg3, pg4;
9713 int ng, np, s, child;
9724 * If all of these values are the same, it's pretty sure that
9725 * we're on a system that ignores getpgrp's first argument.
9727 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
9733 else if (child == 0) {
9736 * If this is Sys V, this will not work; pgrp will be
9737 * set to np because setpgrp just changes a pgrp to be
9738 * the same as the pid.
9741 ng = getpgrp(0); /* Same result for Sys V and BSD */
9754 if { (eval echo configure:9755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9756 ac_cv_func_getpgrp_void=yes
9759 echo "configure: failed program was:" >&5
9760 cat conftest.$ac_ext >&5
9762 ac_cv_func_getpgrp_void=no
9767 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
9768 if test $ac_cv_func_getpgrp_void = yes; then
9769 { test "$extra_verbose" = "yes" && cat << \EOF
9770 Defining GETPGRP_VOID
9772 cat >> confdefs.h <<\EOF
9773 #define GETPGRP_VOID 1
9780 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9781 echo "configure:9782: checking for working mmap" >&5
9782 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9783 cat > conftest.$ac_ext <<EOF
9784 #line 9785 "configure"
9785 #include "confdefs.h"
9789 #include <sys/mman.h>
9791 #ifndef MAP_VARIABLE
9792 #define MAP_VARIABLE 0
9796 #define MAP_FAILED -1
9799 int main (int argc, char *argv[])
9803 #ifndef MAP_ANONYMOUS
9804 fd = open ("/dev/zero", O_RDWR);
9807 #define MAP_ANONYMOUS 0
9809 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
9810 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
9811 fd, 0) != (void *) MAP_FAILED)
9813 perror ("conftest: mmap failed");
9817 if { (eval echo configure:9818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9822 echo "configure: failed program was:" >&5
9823 cat conftest.$ac_ext >&5
9829 echo "$ac_t""$have_mmap" 1>&6
9830 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9833 cat >> confdefs.h <<\EOF
9838 for ac_hdr in unistd.h
9840 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9841 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9842 echo "configure:9843: checking for $ac_hdr" >&5
9844 cat > conftest.$ac_ext <<EOF
9845 #line 9846 "configure"
9846 #include "confdefs.h"
9849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9850 { (eval echo configure:9851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9852 if test -z "$ac_err"; then
9854 eval "ac_cv_header_$ac_safe=yes"
9857 echo "configure: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9860 eval "ac_cv_header_$ac_safe=no"
9863 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9864 echo "$ac_t""yes" 1>&6
9865 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9866 { test "$extra_verbose" = "yes" && cat << EOF
9869 cat >> confdefs.h <<EOF
9870 #define $ac_tr_hdr 1
9875 echo "$ac_t""no" 1>&6
9879 for ac_func in getpagesize
9881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9882 echo "configure:9883: checking for $ac_func" >&5
9884 cat > conftest.$ac_ext <<EOF
9885 #line 9886 "configure"
9886 #include "confdefs.h"
9887 /* System header to define __stub macros and hopefully few prototypes,
9888 which can conflict with char $ac_func(); below. */
9890 /* Override any gcc2 internal prototype to avoid an error. */
9891 /* We use char because int might match the return type of a gcc2
9892 builtin and then its argument prototype would still apply. */
9897 /* The GNU C library defines this for functions which it implements
9898 to always fail with ENOSYS. Some functions are actually named
9899 something starting with __ and the normal name is an alias. */
9900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9908 if { (eval echo configure:9909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9910 eval "ac_cv_func_$ac_func=yes"
9912 echo "configure: failed program was:" >&5
9913 cat conftest.$ac_ext >&5
9915 eval "ac_cv_func_$ac_func=no"
9919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9920 echo "$ac_t""yes" 1>&6
9921 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9922 { test "$extra_verbose" = "yes" && cat << EOF
9923 Defining $ac_tr_func
9925 cat >> confdefs.h <<EOF
9926 #define $ac_tr_func 1
9931 echo "$ac_t""no" 1>&6
9935 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9936 echo "configure:9937: checking for working mmap" >&5
9938 cat > conftest.$ac_ext <<EOF
9939 #line 9940 "configure"
9940 #include "confdefs.h"
9942 /* Thanks to Mike Haertel and Jim Avera for this test.
9943 Here is a matrix of mmap possibilities:
9944 mmap private not fixed
9945 mmap private fixed at somewhere currently unmapped
9946 mmap private fixed at somewhere already mapped
9947 mmap shared not fixed
9948 mmap shared fixed at somewhere currently unmapped
9949 mmap shared fixed at somewhere already mapped
9950 For private mappings, we should verify that changes cannot be read()
9951 back from the file, nor mmap's back from the file at a different
9952 address. (There have been systems where private was not correctly
9953 implemented like the infamous i386 svr4.0, and systems where the
9954 VM page cache was not coherent with the filesystem buffer cache
9955 like early versions of FreeBSD and possibly contemporary NetBSD.)
9956 For shared mappings, we should conversely verify that changes get
9957 propogated back to all the places they're supposed to be.
9959 Grep wants private fixed already mapped.
9960 The main things grep needs to know about mmap are:
9961 * does it exist and is it safe to write into the mmap'd area
9962 * how to use it (BSD variants) */
9963 #include <sys/types.h>
9965 #include <sys/mman.h>
9967 /* This mess was copied from the GNU getpagesize.h. */
9968 #ifndef HAVE_GETPAGESIZE
9969 # ifdef HAVE_UNISTD_H
9970 # include <unistd.h>
9973 /* Assume that all systems that can run configure have sys/param.h. */
9974 # ifndef HAVE_SYS_PARAM_H
9975 # define HAVE_SYS_PARAM_H 1
9978 # ifdef _SC_PAGESIZE
9979 # define getpagesize() sysconf(_SC_PAGESIZE)
9980 # else /* no _SC_PAGESIZE */
9981 # ifdef HAVE_SYS_PARAM_H
9982 # include <sys/param.h>
9983 # ifdef EXEC_PAGESIZE
9984 # define getpagesize() EXEC_PAGESIZE
9985 # else /* no EXEC_PAGESIZE */
9987 # define getpagesize() NBPG * CLSIZE
9990 # endif /* no CLSIZE */
9991 # else /* no NBPG */
9993 # define getpagesize() NBPC
9994 # else /* no NBPC */
9996 # define getpagesize() PAGESIZE
9997 # endif /* PAGESIZE */
9998 # endif /* no NBPC */
9999 # endif /* no NBPG */
10000 # endif /* no EXEC_PAGESIZE */
10001 # else /* no HAVE_SYS_PARAM_H */
10002 # define getpagesize() 8192 /* punt totally */
10003 # endif /* no HAVE_SYS_PARAM_H */
10004 # endif /* no _SC_PAGESIZE */
10006 #endif /* no HAVE_GETPAGESIZE */
10009 extern "C" { void *malloc(unsigned); }
10017 char *data, *data2, *data3;
10021 pagesize = getpagesize();
10024 * First, make a file with some known garbage in it.
10026 data = malloc(pagesize);
10029 for (i = 0; i < pagesize; ++i)
10030 *(data + i) = rand();
10032 fd = creat("conftestmmap", 0600);
10035 if (write(fd, data, pagesize) != pagesize)
10040 * Next, try to mmap the file at a fixed address which
10041 * already has something else allocated at it. If we can,
10042 * also make sure that we see the same garbage.
10044 fd = open("conftestmmap", O_RDWR);
10047 data2 = malloc(2 * pagesize);
10050 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
10051 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
10052 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10054 for (i = 0; i < pagesize; ++i)
10055 if (*(data + i) != *(data2 + i))
10059 * Finally, make sure that changes to the mapped area
10060 * do not percolate back to the file as seen by read().
10061 * (This is a bug on some variants of i386 svr4.0.)
10063 for (i = 0; i < pagesize; ++i)
10064 *(data2 + i) = *(data2 + i) + 1;
10065 data3 = malloc(pagesize);
10068 if (read(fd, data3, pagesize) != pagesize)
10070 for (i = 0; i < pagesize; ++i)
10071 if (*(data + i) != *(data3 + i))
10074 unlink("conftestmmap");
10079 if { (eval echo configure:10080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10081 ac_cv_func_mmap_fixed_mapped=yes
10084 echo "configure: failed program was:" >&5
10085 cat conftest.$ac_ext >&5
10087 ac_cv_func_mmap_fixed_mapped=no
10091 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
10092 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10093 { test "$extra_verbose" = "yes" && cat << \EOF
10096 cat >> confdefs.h <<\EOF
10097 #define HAVE_MMAP 1
10104 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10105 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
10106 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10109 cat >> confdefs.h <<\EOF
10110 #define REL_ALLOC 1
10115 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10116 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10117 echo "configure:10118: checking for termios.h" >&5
10119 cat > conftest.$ac_ext <<EOF
10120 #line 10121 "configure"
10121 #include "confdefs.h"
10122 #include <termios.h>
10124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10125 { (eval echo configure:10126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10127 if test -z "$ac_err"; then
10129 eval "ac_cv_header_$ac_safe=yes"
10132 echo "configure: failed program was:" >&5
10133 cat conftest.$ac_ext >&5
10135 eval "ac_cv_header_$ac_safe=no"
10138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10139 echo "$ac_t""yes" 1>&6
10140 { test "$extra_verbose" = "yes" && cat << \EOF
10141 Defining HAVE_TERMIOS
10143 cat >> confdefs.h <<\EOF
10144 #define HAVE_TERMIOS 1
10148 { test "$extra_verbose" = "yes" && cat << \EOF
10149 Defining SIGNALS_VIA_CHARACTERS
10151 cat >> confdefs.h <<\EOF
10152 #define SIGNALS_VIA_CHARACTERS 1
10156 { test "$extra_verbose" = "yes" && cat << \EOF
10159 cat >> confdefs.h <<\EOF
10160 #define NO_TERMIO 1
10165 echo "$ac_t""no" 1>&6
10166 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10167 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10168 echo "configure:10169: checking for termio.h" >&5
10170 cat > conftest.$ac_ext <<EOF
10171 #line 10172 "configure"
10172 #include "confdefs.h"
10173 #include <termio.h>
10175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10176 { (eval echo configure:10177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10178 if test -z "$ac_err"; then
10180 eval "ac_cv_header_$ac_safe=yes"
10183 echo "configure: failed program was:" >&5
10184 cat conftest.$ac_ext >&5
10186 eval "ac_cv_header_$ac_safe=no"
10189 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10190 echo "$ac_t""yes" 1>&6
10191 { test "$extra_verbose" = "yes" && cat << \EOF
10192 Defining HAVE_TERMIO
10194 cat >> confdefs.h <<\EOF
10195 #define HAVE_TERMIO 1
10200 echo "$ac_t""no" 1>&6
10207 echo $ac_n "checking for socket""... $ac_c" 1>&6
10208 echo "configure:10209: checking for socket" >&5
10210 cat > conftest.$ac_ext <<EOF
10211 #line 10212 "configure"
10212 #include "confdefs.h"
10213 /* System header to define __stub macros and hopefully few prototypes,
10214 which can conflict with char socket(); below. */
10215 #include <assert.h>
10216 /* Override any gcc2 internal prototype to avoid an error. */
10217 /* We use char because int might match the return type of a gcc2
10218 builtin and then its argument prototype would still apply. */
10223 /* The GNU C library defines this for functions which it implements
10224 to always fail with ENOSYS. Some functions are actually named
10225 something starting with __ and the normal name is an alias. */
10226 #if defined (__stub_socket) || defined (__stub___socket)
10234 if { (eval echo configure:10235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10236 eval "ac_cv_func_socket=yes"
10238 echo "configure: failed program was:" >&5
10239 cat conftest.$ac_ext >&5
10241 eval "ac_cv_func_socket=no"
10245 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10246 echo "$ac_t""yes" 1>&6
10247 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10248 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10249 echo "configure:10250: checking for netinet/in.h" >&5
10251 cat > conftest.$ac_ext <<EOF
10252 #line 10253 "configure"
10253 #include "confdefs.h"
10254 #include <netinet/in.h>
10256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10257 { (eval echo configure:10258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10259 if test -z "$ac_err"; then
10261 eval "ac_cv_header_$ac_safe=yes"
10264 echo "configure: failed program was:" >&5
10265 cat conftest.$ac_ext >&5
10267 eval "ac_cv_header_$ac_safe=no"
10270 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10271 echo "$ac_t""yes" 1>&6
10272 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10273 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10274 echo "configure:10275: checking for arpa/inet.h" >&5
10276 cat > conftest.$ac_ext <<EOF
10277 #line 10278 "configure"
10278 #include "confdefs.h"
10279 #include <arpa/inet.h>
10281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10282 { (eval echo configure:10283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10284 if test -z "$ac_err"; then
10286 eval "ac_cv_header_$ac_safe=yes"
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10292 eval "ac_cv_header_$ac_safe=no"
10295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10296 echo "$ac_t""yes" 1>&6
10298 { test "$extra_verbose" = "yes" && cat << \EOF
10299 Defining HAVE_SOCKETS
10301 cat >> confdefs.h <<\EOF
10302 #define HAVE_SOCKETS 1
10306 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10307 echo "configure:10308: checking "for sun_len member in struct sockaddr_un"" >&5
10308 cat > conftest.$ac_ext <<EOF
10309 #line 10310 "configure"
10310 #include "confdefs.h"
10312 #include <sys/types.h>
10313 #include <sys/socket.h>
10314 #include <sys/un.h>
10317 static struct sockaddr_un x; x.sun_len = 1;
10320 if { (eval echo configure:10321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10322 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10323 Defining HAVE_SOCKADDR_SUN_LEN
10325 cat >> confdefs.h <<\EOF
10326 #define HAVE_SOCKADDR_SUN_LEN 1
10331 echo "configure: failed program was:" >&5
10332 cat conftest.$ac_ext >&5
10334 echo "$ac_t""no" 1>&6
10337 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10338 echo "configure:10339: checking "for ip_mreq struct in netinet/in.h"" >&5
10339 cat > conftest.$ac_ext <<EOF
10340 #line 10341 "configure"
10341 #include "confdefs.h"
10343 #include <sys/types.h>
10344 #include <netinet/in.h>
10347 static struct ip_mreq x;
10350 if { (eval echo configure:10351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10352 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10353 Defining HAVE_MULTICAST
10355 cat >> confdefs.h <<\EOF
10356 #define HAVE_MULTICAST 1
10361 echo "configure: failed program was:" >&5
10362 cat conftest.$ac_ext >&5
10364 echo "$ac_t""no" 1>&6
10368 echo "$ac_t""no" 1>&6
10372 echo "$ac_t""no" 1>&6
10376 echo "$ac_t""no" 1>&6
10380 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10381 echo "configure:10382: checking for msgget" >&5
10383 cat > conftest.$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10386 /* System header to define __stub macros and hopefully few prototypes,
10387 which can conflict with char msgget(); below. */
10388 #include <assert.h>
10389 /* Override any gcc2 internal prototype to avoid an error. */
10390 /* We use char because int might match the return type of a gcc2
10391 builtin and then its argument prototype would still apply. */
10396 /* The GNU C library defines this for functions which it implements
10397 to always fail with ENOSYS. Some functions are actually named
10398 something starting with __ and the normal name is an alias. */
10399 #if defined (__stub_msgget) || defined (__stub___msgget)
10407 if { (eval echo configure:10408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10409 eval "ac_cv_func_msgget=yes"
10411 echo "configure: failed program was:" >&5
10412 cat conftest.$ac_ext >&5
10414 eval "ac_cv_func_msgget=no"
10418 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10419 echo "$ac_t""yes" 1>&6
10420 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10421 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10422 echo "configure:10423: checking for sys/ipc.h" >&5
10424 cat > conftest.$ac_ext <<EOF
10425 #line 10426 "configure"
10426 #include "confdefs.h"
10427 #include <sys/ipc.h>
10429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10430 { (eval echo configure:10431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10432 if test -z "$ac_err"; then
10434 eval "ac_cv_header_$ac_safe=yes"
10437 echo "configure: failed program was:" >&5
10438 cat conftest.$ac_ext >&5
10440 eval "ac_cv_header_$ac_safe=no"
10443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10444 echo "$ac_t""yes" 1>&6
10445 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10446 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10447 echo "configure:10448: checking for sys/msg.h" >&5
10449 cat > conftest.$ac_ext <<EOF
10450 #line 10451 "configure"
10451 #include "confdefs.h"
10452 #include <sys/msg.h>
10454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10455 { (eval echo configure:10456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10457 if test -z "$ac_err"; then
10459 eval "ac_cv_header_$ac_safe=yes"
10462 echo "configure: failed program was:" >&5
10463 cat conftest.$ac_ext >&5
10465 eval "ac_cv_header_$ac_safe=no"
10468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10469 echo "$ac_t""yes" 1>&6
10470 { test "$extra_verbose" = "yes" && cat << \EOF
10471 Defining HAVE_SYSVIPC
10473 cat >> confdefs.h <<\EOF
10474 #define HAVE_SYSVIPC 1
10479 echo "$ac_t""no" 1>&6
10483 echo "$ac_t""no" 1>&6
10487 echo "$ac_t""no" 1>&6
10491 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10492 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10493 echo "configure:10494: checking for dirent.h" >&5
10495 cat > conftest.$ac_ext <<EOF
10496 #line 10497 "configure"
10497 #include "confdefs.h"
10498 #include <dirent.h>
10500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10501 { (eval echo configure:10502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10502 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10503 if test -z "$ac_err"; then
10505 eval "ac_cv_header_$ac_safe=yes"
10508 echo "configure: failed program was:" >&5
10509 cat conftest.$ac_ext >&5
10511 eval "ac_cv_header_$ac_safe=no"
10514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10515 echo "$ac_t""yes" 1>&6
10516 { test "$extra_verbose" = "yes" && cat << \EOF
10517 Defining SYSV_SYSTEM_DIR
10519 cat >> confdefs.h <<\EOF
10520 #define SYSV_SYSTEM_DIR 1
10525 echo "$ac_t""no" 1>&6
10526 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10527 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10528 echo "configure:10529: checking for sys/dir.h" >&5
10530 cat > conftest.$ac_ext <<EOF
10531 #line 10532 "configure"
10532 #include "confdefs.h"
10533 #include <sys/dir.h>
10535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10536 { (eval echo configure:10537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10538 if test -z "$ac_err"; then
10540 eval "ac_cv_header_$ac_safe=yes"
10543 echo "configure: failed program was:" >&5
10544 cat conftest.$ac_ext >&5
10546 eval "ac_cv_header_$ac_safe=no"
10549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10550 echo "$ac_t""yes" 1>&6
10553 echo "$ac_t""no" 1>&6
10554 { test "$extra_verbose" = "yes" && cat << \EOF
10555 Defining NONSYSTEM_DIR_LIBRARY
10557 cat >> confdefs.h <<\EOF
10558 #define NONSYSTEM_DIR_LIBRARY 1
10567 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10568 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10569 echo "configure:10570: checking for nlist.h" >&5
10571 cat > conftest.$ac_ext <<EOF
10572 #line 10573 "configure"
10573 #include "confdefs.h"
10576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10577 { (eval echo configure:10578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10579 if test -z "$ac_err"; then
10581 eval "ac_cv_header_$ac_safe=yes"
10584 echo "configure: failed program was:" >&5
10585 cat conftest.$ac_ext >&5
10587 eval "ac_cv_header_$ac_safe=no"
10590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10591 echo "$ac_t""yes" 1>&6
10592 { test "$extra_verbose" = "yes" && cat << \EOF
10593 Defining NLIST_STRUCT
10595 cat >> confdefs.h <<\EOF
10596 #define NLIST_STRUCT 1
10601 echo "$ac_t""no" 1>&6
10606 echo "checking "for sound support"" 1>&6
10607 echo "configure:10608: checking "for sound support"" >&5
10608 case "$with_sound" in
10609 native | both ) with_native_sound=yes;;
10610 nas | no ) with_native_sound=no;;
10612 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10614 if test "$with_native_sound" != "no"; then
10615 if test -n "$native_sound_lib"; then
10616 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10617 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10618 echo "configure:10619: checking for multimedia/audio_device.h" >&5
10620 cat > conftest.$ac_ext <<EOF
10621 #line 10622 "configure"
10622 #include "confdefs.h"
10623 #include <multimedia/audio_device.h>
10625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10626 { (eval echo configure:10627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10628 if test -z "$ac_err"; then
10630 eval "ac_cv_header_$ac_safe=yes"
10633 echo "configure: failed program was:" >&5
10634 cat conftest.$ac_ext >&5
10636 eval "ac_cv_header_$ac_safe=no"
10639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10640 echo "$ac_t""yes" 1>&6
10641 sound_found=yes sound_cflags=""
10642 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10643 echo " xemacs will be linked with \"sunplay.o\""
10646 echo "$ac_t""no" 1>&6
10651 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
10653 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10654 echo " xemacs will be linked with \"sunplay.o\""
10656 if test -d "/usr/demo/SOUND/include"
10657 then sound_cflags="-I/usr/demo/SOUND/include"
10658 else sound_cflags="-I/usr/demo/SOUND"
10660 if test -z "$native_sound_lib" ; then
10661 if test -r "/usr/demo/SOUND/lib/libaudio.a"
10662 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
10663 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
10668 if test -z "$sound_found"; then
10669 case "$canonical" in
10671 if test -z "$native_sound_lib"; then
10673 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10674 echo "configure:10675: checking for ALopenport in -laudio" >&5
10675 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10677 xe_check_libs=" -laudio "
10678 cat > conftest.$ac_ext <<EOF
10679 #line 10680 "configure"
10680 #include "confdefs.h"
10681 /* Override any gcc2 internal prototype to avoid an error. */
10682 /* We use char because int might match the return type of a gcc2
10683 builtin and then its argument prototype would still apply. */
10690 if { (eval echo configure:10691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10692 eval "ac_cv_lib_$ac_lib_var=yes"
10694 echo "configure: failed program was:" >&5
10695 cat conftest.$ac_ext >&5
10697 eval "ac_cv_lib_$ac_lib_var=no"
10702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10703 echo "$ac_t""yes" 1>&6
10704 native_sound_lib="-laudio"
10706 echo "$ac_t""no" 1>&6
10711 if test -n "$native_sound_lib"; then
10712 sound_found=yes sound_cflags=""
10713 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
10714 echo " xemacs will be linked with \"sgiplay.o\""
10718 if test -z "$native_sound_lib"; then
10720 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10721 echo "configure:10722: checking for AOpenAudio in -lAlib" >&5
10722 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10724 xe_check_libs=" -lAlib "
10725 cat > conftest.$ac_ext <<EOF
10726 #line 10727 "configure"
10727 #include "confdefs.h"
10728 /* Override any gcc2 internal prototype to avoid an error. */
10729 /* We use char because int might match the return type of a gcc2
10730 builtin and then its argument prototype would still apply. */
10737 if { (eval echo configure:10738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10739 eval "ac_cv_lib_$ac_lib_var=yes"
10741 echo "configure: failed program was:" >&5
10742 cat conftest.$ac_ext >&5
10744 eval "ac_cv_lib_$ac_lib_var=no"
10749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10750 echo "$ac_t""yes" 1>&6
10751 native_sound_lib="-lAlib"
10753 echo "$ac_t""no" 1>&6
10758 if test -n "$native_sound_lib"; then
10760 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
10761 echo " xemacs will be linked with \"hpplay.o\""
10763 if test "$GCC" = "yes" # Kludge city
10764 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
10765 else sound_cflags="+e -I/usr/audio/examples"
10771 if test -z "$sound_found"; then
10772 for dir in "machine" "sys" "linux"; do
10773 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10774 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10775 echo "configure:10776: checking for ${dir}/soundcard.h" >&5
10777 cat > conftest.$ac_ext <<EOF
10778 #line 10779 "configure"
10779 #include "confdefs.h"
10780 #include <${dir}/soundcard.h>
10782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10783 { (eval echo configure:10784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10785 if test -z "$ac_err"; then
10787 eval "ac_cv_header_$ac_safe=yes"
10790 echo "configure: failed program was:" >&5
10791 cat conftest.$ac_ext >&5
10793 eval "ac_cv_header_$ac_safe=no"
10796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10797 echo "$ac_t""yes" 1>&6
10799 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
10800 echo " xemacs will be linked with \"linuxplay.o\""
10802 { test "$extra_verbose" = "yes" && cat << EOF
10803 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
10805 cat >> confdefs.h <<EOF
10806 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
10812 echo "$ac_t""no" 1>&6
10818 test "$sound_found" = "yes" && with_native_sound=yes
10821 if test -z "$with_sound"; then
10822 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
10827 if test "$with_native_sound" = "yes"; then
10828 { test "$extra_verbose" = "yes" && cat << \EOF
10829 Defining HAVE_NATIVE_SOUND
10831 cat >> confdefs.h <<\EOF
10832 #define HAVE_NATIVE_SOUND 1
10836 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
10839 case "$with_sound" in both | nas )
10840 { test "$extra_verbose" = "yes" && cat << \EOF
10841 Defining HAVE_NAS_SOUND
10843 cat >> confdefs.h <<\EOF
10844 #define HAVE_NAS_SOUND 1
10848 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10849 echo " xemacs will be linked with \"nas.o\""
10851 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10852 cat > conftest.$ac_ext <<EOF
10853 #line 10854 "configure"
10854 #include "confdefs.h"
10855 #include <audio/Xtutil.h>
10857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10858 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10862 { test "$extra_verbose" = "yes" && cat << \EOF
10863 Defining NAS_NO_ERROR_JUMP
10865 cat >> confdefs.h <<\EOF
10866 #define NAS_NO_ERROR_JUMP 1
10876 test -z "$with_tty" && with_tty=yes
10878 if test "$with_tty" = "yes" ; then
10879 echo "checking for TTY-related features" 1>&6
10880 echo "configure:10881: checking for TTY-related features" >&5
10881 { test "$extra_verbose" = "yes" && cat << \EOF
10884 cat >> confdefs.h <<\EOF
10889 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
10890 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\""
10893 if test -z "$with_ncurses"; then
10895 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10896 echo "configure:10897: checking for tgetent in -lncurses" >&5
10897 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10899 xe_check_libs=" -lncurses "
10900 cat > conftest.$ac_ext <<EOF
10901 #line 10902 "configure"
10902 #include "confdefs.h"
10903 /* Override any gcc2 internal prototype to avoid an error. */
10904 /* We use char because int might match the return type of a gcc2
10905 builtin and then its argument prototype would still apply. */
10912 if { (eval echo configure:10913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10914 eval "ac_cv_lib_$ac_lib_var=yes"
10916 echo "configure: failed program was:" >&5
10917 cat conftest.$ac_ext >&5
10919 eval "ac_cv_lib_$ac_lib_var=no"
10924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10925 echo "$ac_t""yes" 1>&6
10928 echo "$ac_t""no" 1>&6
10934 if test "$with_ncurses" = "yes"; then
10935 { test "$extra_verbose" = "yes" && cat << \EOF
10936 Defining HAVE_NCURSES
10938 cat >> confdefs.h <<\EOF
10939 #define HAVE_NCURSES 1
10943 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10944 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10945 echo "configure:10946: checking for ncurses/curses.h" >&5
10947 cat > conftest.$ac_ext <<EOF
10948 #line 10949 "configure"
10949 #include "confdefs.h"
10950 #include <ncurses/curses.h>
10952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10953 { (eval echo configure:10954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10955 if test -z "$ac_err"; then
10957 eval "ac_cv_header_$ac_safe=yes"
10960 echo "configure: failed program was:" >&5
10961 cat conftest.$ac_ext >&5
10963 eval "ac_cv_header_$ac_safe=no"
10966 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10967 echo "$ac_t""yes" 1>&6
10968 curses_h_path=ncurses/curses.h
10970 echo "$ac_t""no" 1>&6
10973 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10974 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10975 echo "configure:10976: checking for ncurses/term.h" >&5
10977 cat > conftest.$ac_ext <<EOF
10978 #line 10979 "configure"
10979 #include "confdefs.h"
10980 #include <ncurses/term.h>
10982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10983 { (eval echo configure:10984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10985 if test -z "$ac_err"; then
10987 eval "ac_cv_header_$ac_safe=yes"
10990 echo "configure: failed program was:" >&5
10991 cat conftest.$ac_ext >&5
10993 eval "ac_cv_header_$ac_safe=no"
10996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10997 echo "$ac_t""yes" 1>&6
10998 term_h_path=ncurses/term.h
11000 echo "$ac_t""no" 1>&6
11003 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11004 echo " xemacs will be linked with \"terminfo.o\""
11006 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
11008 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
11009 save_c_switch_site="$c_switch_site"
11010 c_switch_site="$c_switch_site -I/usr/include/ncurses"
11011 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11012 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11013 echo "configure:11014: checking for ncurses/curses.h" >&5
11015 cat > conftest.$ac_ext <<EOF
11016 #line 11017 "configure"
11017 #include "confdefs.h"
11018 #include <ncurses/curses.h>
11020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11021 { (eval echo configure:11022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11023 if test -z "$ac_err"; then
11025 eval "ac_cv_header_$ac_safe=yes"
11028 echo "configure: failed program was:" >&5
11029 cat conftest.$ac_ext >&5
11031 eval "ac_cv_header_$ac_safe=no"
11034 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11035 echo "$ac_t""yes" 1>&6
11036 curses_h_path=ncurses/curses.h
11038 echo "$ac_t""no" 1>&6
11041 if test "$ac_cv_header_ncurses_curses_h" = "yes"
11042 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
11043 else c_switch_site="$save_c_switch_site"
11046 else if test "$have_terminfo" = "yes"; then
11047 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11048 echo " xemacs will be linked with \"terminfo.o\""
11050 if test -n "$libs_termcap"; then
11051 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11053 for lib in curses termlib termcap; do
11055 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
11056 echo "configure:11057: checking for tgetent in -l$lib" >&5
11057 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
11059 xe_check_libs=" -l$lib "
11060 cat > conftest.$ac_ext <<EOF
11061 #line 11062 "configure"
11062 #include "confdefs.h"
11063 /* Override any gcc2 internal prototype to avoid an error. */
11064 /* We use char because int might match the return type of a gcc2
11065 builtin and then its argument prototype would still apply. */
11072 if { (eval echo configure:11073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11074 eval "ac_cv_lib_$ac_lib_var=yes"
11076 echo "configure: failed program was:" >&5
11077 cat conftest.$ac_ext >&5
11079 eval "ac_cv_lib_$ac_lib_var=no"
11084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11085 echo "$ac_t""yes" 1>&6
11086 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
11088 echo "$ac_t""no" 1>&6
11094 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
11095 echo " xemacs will be linked with \"tparam.o\""
11097 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
11098 if test -n "$libs_termcap"; then
11099 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11102 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11103 echo "configure:11104: checking for tgetent in -lcurses" >&5
11104 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11106 xe_check_libs=" -lcurses "
11107 cat > conftest.$ac_ext <<EOF
11108 #line 11109 "configure"
11109 #include "confdefs.h"
11110 /* Override any gcc2 internal prototype to avoid an error. */
11111 /* We use char because int might match the return type of a gcc2
11112 builtin and then its argument prototype would still apply. */
11119 if { (eval echo configure:11120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11121 eval "ac_cv_lib_$ac_lib_var=yes"
11123 echo "configure: failed program was:" >&5
11124 cat conftest.$ac_ext >&5
11126 eval "ac_cv_lib_$ac_lib_var=no"
11131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11132 echo "$ac_t""yes" 1>&6
11133 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11135 echo "$ac_t""no" 1>&6
11136 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11137 echo "configure:11138: checking for tgetent in -ltermcap" >&5
11138 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11140 xe_check_libs=" -ltermcap "
11141 cat > conftest.$ac_ext <<EOF
11142 #line 11143 "configure"
11143 #include "confdefs.h"
11144 /* Override any gcc2 internal prototype to avoid an error. */
11145 /* We use char because int might match the return type of a gcc2
11146 builtin and then its argument prototype would still apply. */
11153 if { (eval echo configure:11154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11155 eval "ac_cv_lib_$ac_lib_var=yes"
11157 echo "configure: failed program was:" >&5
11158 cat conftest.$ac_ext >&5
11160 eval "ac_cv_lib_$ac_lib_var=no"
11165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11166 echo "$ac_t""yes" 1>&6
11167 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
11169 echo "$ac_t""no" 1>&6
11170 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
11171 echo " xemacs will be linked with \"termcap.o\""
11182 { test "$extra_verbose" = "yes" && cat << EOF
11183 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
11185 cat >> confdefs.h <<EOF
11186 #define CURSES_H_PATH "${curses_h_path-curses.h}"
11190 { test "$extra_verbose" = "yes" && cat << EOF
11191 Defining TERM_H_PATH = "${term_h_path-term.h}"
11193 cat >> confdefs.h <<EOF
11194 #define TERM_H_PATH "${term_h_path-term.h}"
11199 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11200 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11201 echo "configure:11202: checking for gpm.h" >&5
11203 cat > conftest.$ac_ext <<EOF
11204 #line 11205 "configure"
11205 #include "confdefs.h"
11208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11209 { (eval echo configure:11210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11211 if test -z "$ac_err"; then
11213 eval "ac_cv_header_$ac_safe=yes"
11216 echo "configure: failed program was:" >&5
11217 cat conftest.$ac_ext >&5
11219 eval "ac_cv_header_$ac_safe=no"
11222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11223 echo "$ac_t""yes" 1>&6
11226 echo "$ac_t""no" 1>&6
11230 test -z "$with_gpm" && {
11231 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11232 echo "configure:11233: checking for Gpm_Open in -lgpm" >&5
11233 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11235 xe_check_libs=" -lgpm "
11236 cat > conftest.$ac_ext <<EOF
11237 #line 11238 "configure"
11238 #include "confdefs.h"
11239 /* Override any gcc2 internal prototype to avoid an error. */
11240 /* We use char because int might match the return type of a gcc2
11241 builtin and then its argument prototype would still apply. */
11248 if { (eval echo configure:11249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11250 eval "ac_cv_lib_$ac_lib_var=yes"
11252 echo "configure: failed program was:" >&5
11253 cat conftest.$ac_ext >&5
11255 eval "ac_cv_lib_$ac_lib_var=no"
11260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11261 echo "$ac_t""yes" 1>&6
11264 echo "$ac_t""no" 1>&6
11269 if test "$with_gpm" = "yes"; then
11270 { test "$extra_verbose" = "yes" && cat << \EOF
11273 cat >> confdefs.h <<\EOF
11278 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
11279 echo " xemacs will be linked with \"gpmevent.o\""
11281 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
11284 else for feature in ncurses gpm; do
11285 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11286 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
11288 eval "with_${feature}=no"
11291 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
11292 echo " xemacs will be linked with \"event-unixoid.o\""
11296 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11297 != "no no no" && echo "checking for database support" 1>&6
11298 echo "configure:11299: checking for database support" >&5
11300 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
11301 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11302 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11303 echo "configure:11304: checking for ndbm.h" >&5
11305 cat > conftest.$ac_ext <<EOF
11306 #line 11307 "configure"
11307 #include "confdefs.h"
11310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11311 { (eval echo configure:11312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11313 if test -z "$ac_err"; then
11315 eval "ac_cv_header_$ac_safe=yes"
11318 echo "configure: failed program was:" >&5
11319 cat conftest.$ac_ext >&5
11321 eval "ac_cv_header_$ac_safe=no"
11324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11325 echo "$ac_t""yes" 1>&6
11328 echo "$ac_t""no" 1>&6
11330 test "$with_database_gnudbm" = "yes" -o \
11331 "$with_database_dbm" = "yes" && \
11332 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11333 with_database_gnudbm=no with_database_dbm=no
11338 if test "$with_database_gnudbm" != "no"; then
11340 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11341 echo "configure:11342: checking for dbm_open in -lgdbm" >&5
11342 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11344 xe_check_libs=" -lgdbm "
11345 cat > conftest.$ac_ext <<EOF
11346 #line 11347 "configure"
11347 #include "confdefs.h"
11348 /* Override any gcc2 internal prototype to avoid an error. */
11349 /* We use char because int might match the return type of a gcc2
11350 builtin and then its argument prototype would still apply. */
11357 if { (eval echo configure:11358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11359 eval "ac_cv_lib_$ac_lib_var=yes"
11361 echo "configure: failed program was:" >&5
11362 cat conftest.$ac_ext >&5
11364 eval "ac_cv_lib_$ac_lib_var=no"
11369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11370 echo "$ac_t""yes" 1>&6
11371 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm
11373 echo "$ac_t""no" 1>&6
11374 if test "$with_database_gnudbm" = "yes"; then
11375 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
11377 with_database_gnudbm=no
11383 if test "$with_database_dbm" != "no"; then
11384 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11385 echo "configure:11386: checking for dbm_open" >&5
11387 cat > conftest.$ac_ext <<EOF
11388 #line 11389 "configure"
11389 #include "confdefs.h"
11390 /* System header to define __stub macros and hopefully few prototypes,
11391 which can conflict with char dbm_open(); below. */
11392 #include <assert.h>
11393 /* Override any gcc2 internal prototype to avoid an error. */
11394 /* We use char because int might match the return type of a gcc2
11395 builtin and then its argument prototype would still apply. */
11400 /* The GNU C library defines this for functions which it implements
11401 to always fail with ENOSYS. Some functions are actually named
11402 something starting with __ and the normal name is an alias. */
11403 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11411 if { (eval echo configure:11412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11413 eval "ac_cv_func_dbm_open=yes"
11415 echo "configure: failed program was:" >&5
11416 cat conftest.$ac_ext >&5
11418 eval "ac_cv_func_dbm_open=no"
11422 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11423 echo "$ac_t""yes" 1>&6
11424 with_database_dbm=yes libdbm=
11426 echo "$ac_t""no" 1>&6
11429 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11430 echo "configure:11431: checking for dbm_open in -ldbm" >&5
11431 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11433 xe_check_libs=" -ldbm "
11434 cat > conftest.$ac_ext <<EOF
11435 #line 11436 "configure"
11436 #include "confdefs.h"
11437 /* Override any gcc2 internal prototype to avoid an error. */
11438 /* We use char because int might match the return type of a gcc2
11439 builtin and then its argument prototype would still apply. */
11446 if { (eval echo configure:11447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11448 eval "ac_cv_lib_$ac_lib_var=yes"
11450 echo "configure: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11453 eval "ac_cv_lib_$ac_lib_var=no"
11458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11459 echo "$ac_t""yes" 1>&6
11460 with_database_dbm=yes libdbm=-ldbm
11462 echo "$ac_t""no" 1>&6
11463 test "$with_database_dbm" = "yes" && \
11464 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11465 with_database_dbm=no
11473 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
11474 test "$with_database_gnudbm" = "yes" -o \
11475 "$with_database_dbm" = "yes" && \
11476 { test "$extra_verbose" = "yes" && cat << \EOF
11479 cat >> confdefs.h <<\EOF
11485 if test "$with_database_berkdb" != "no"; then
11486 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11487 echo "configure:11488: checking for Berkeley db.h" >&5
11488 for path in "db/db.h" "db.h"; do
11489 cat > conftest.$ac_ext <<EOF
11490 #line 11491 "configure"
11491 #include "confdefs.h"
11492 #ifdef HAVE_INTTYPES_H
11493 #define __BIT_TYPES_DEFINED__
11494 #include <inttypes.h>
11495 typedef uint8_t u_int8_t;
11496 typedef uint16_t u_int16_t;
11497 typedef uint32_t u_int32_t;
11498 #ifdef WE_DONT_NEED_QUADS
11499 typedef uint64_t u_int64_t;
11508 if { (eval echo configure:11509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11510 db_h_path="$path"; break
11512 echo "configure: failed program was:" >&5
11513 cat conftest.$ac_ext >&5
11517 if test -z "$db_h_path"
11518 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
11519 else echo "$ac_t""$db_h_path" 1>&6
11522 if test "$with_database_berkdb" != "no"; then
11523 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11524 echo "configure:11525: checking for Berkeley DB version" >&5
11525 cat > conftest.$ac_ext <<EOF
11526 #line 11527 "configure"
11527 #include "confdefs.h"
11528 #include <$db_h_path>
11529 #if DB_VERSION_MAJOR > 1
11534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11535 egrep "yes" >/dev/null 2>&1; then
11537 echo "$ac_t""2" 1>&6; dbfunc=db_open
11540 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11544 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11545 echo "configure:11546: checking for $dbfunc" >&5
11547 cat > conftest.$ac_ext <<EOF
11548 #line 11549 "configure"
11549 #include "confdefs.h"
11550 /* System header to define __stub macros and hopefully few prototypes,
11551 which can conflict with char $dbfunc(); below. */
11552 #include <assert.h>
11553 /* Override any gcc2 internal prototype to avoid an error. */
11554 /* We use char because int might match the return type of a gcc2
11555 builtin and then its argument prototype would still apply. */
11560 /* The GNU C library defines this for functions which it implements
11561 to always fail with ENOSYS. Some functions are actually named
11562 something starting with __ and the normal name is an alias. */
11563 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
11571 if { (eval echo configure:11572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11573 eval "ac_cv_func_$dbfunc=yes"
11575 echo "configure: failed program was:" >&5
11576 cat conftest.$ac_ext >&5
11578 eval "ac_cv_func_$dbfunc=no"
11582 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
11583 echo "$ac_t""yes" 1>&6
11584 with_database_berkdb=yes need_libdb=no
11586 echo "$ac_t""no" 1>&6
11589 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11590 echo "configure:11591: checking for $dbfunc in -ldb" >&5
11591 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11593 xe_check_libs=" -ldb "
11594 cat > conftest.$ac_ext <<EOF
11595 #line 11596 "configure"
11596 #include "confdefs.h"
11597 /* Override any gcc2 internal prototype to avoid an error. */
11598 /* We use char because int might match the return type of a gcc2
11599 builtin and then its argument prototype would still apply. */
11606 if { (eval echo configure:11607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11608 eval "ac_cv_lib_$ac_lib_var=yes"
11610 echo "configure: failed program was:" >&5
11611 cat conftest.$ac_ext >&5
11613 eval "ac_cv_lib_$ac_lib_var=no"
11618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11619 echo "$ac_t""yes" 1>&6
11620 with_database_berkdb=yes need_libdb=yes
11622 echo "$ac_t""no" 1>&6
11630 if test "$with_database_berkdb" = "yes"; then
11631 { test "$extra_verbose" = "yes" && cat << EOF
11632 Defining DB_H_PATH = "$db_h_path"
11634 cat >> confdefs.h <<EOF
11635 #define DB_H_PATH "$db_h_path"
11639 { test "$extra_verbose" = "yes" && cat << \EOF
11640 Defining HAVE_BERKELEY_DB
11642 cat >> confdefs.h <<\EOF
11643 #define HAVE_BERKELEY_DB 1
11647 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
11648 else with_database_berkdb=no
11652 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11653 != "no no no"; then
11654 { test "$extra_verbose" = "yes" && cat << \EOF
11655 Defining HAVE_DATABASE
11657 cat >> confdefs.h <<\EOF
11658 #define HAVE_DATABASE 1
11662 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
11663 echo " xemacs will be linked with \"database.o\""
11667 if test "$with_socks" = "yes"; then
11669 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11670 echo "configure:11671: checking for SOCKSinit in -lsocks" >&5
11671 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11673 xe_check_libs=" -lsocks "
11674 cat > conftest.$ac_ext <<EOF
11675 #line 11676 "configure"
11676 #include "confdefs.h"
11677 /* Override any gcc2 internal prototype to avoid an error. */
11678 /* We use char because int might match the return type of a gcc2
11679 builtin and then its argument prototype would still apply. */
11686 if { (eval echo configure:11687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11688 eval "ac_cv_lib_$ac_lib_var=yes"
11690 echo "configure: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11693 eval "ac_cv_lib_$ac_lib_var=no"
11698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11699 echo "$ac_t""yes" 1>&6
11700 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11701 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11702 { test "$extra_verbose" = "yes" && cat << EOF
11703 Defining $ac_tr_lib
11705 cat >> confdefs.h <<EOF
11706 #define $ac_tr_lib 1
11710 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
11713 echo "$ac_t""no" 1>&6
11717 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
11718 Defining HAVE_SOCKS
11720 cat >> confdefs.h <<\EOF
11721 #define HAVE_SOCKS 1
11727 if test "$usage_tracking" = "yes"; then
11728 { test "$extra_verbose" = "yes" && cat << \EOF
11729 Defining USAGE_TRACKING
11731 cat >> confdefs.h <<\EOF
11732 #define USAGE_TRACKING 1
11736 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11739 for ac_hdr in dlfcn.h
11741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11743 echo "configure:11744: checking for $ac_hdr" >&5
11745 cat > conftest.$ac_ext <<EOF
11746 #line 11747 "configure"
11747 #include "confdefs.h"
11750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11751 { (eval echo configure:11752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11753 if test -z "$ac_err"; then
11755 eval "ac_cv_header_$ac_safe=yes"
11758 echo "configure: failed program was:" >&5
11759 cat conftest.$ac_ext >&5
11761 eval "ac_cv_header_$ac_safe=no"
11764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11765 echo "$ac_t""yes" 1>&6
11766 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11767 { test "$extra_verbose" = "yes" && cat << EOF
11768 Defining $ac_tr_hdr
11770 cat >> confdefs.h <<EOF
11771 #define $ac_tr_hdr 1
11775 { test "$extra_verbose" = "yes" && cat << \EOF
11776 Defining HAVE_DLFCN_H
11778 cat >> confdefs.h <<\EOF
11779 #define HAVE_DLFCN_H 1
11784 echo "$ac_t""no" 1>&6
11788 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11789 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11790 echo "configure:11791: checking for dlopen in -ldl" >&5
11791 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11793 xe_check_libs=" -ldl "
11794 cat > conftest.$ac_ext <<EOF
11795 #line 11796 "configure"
11796 #include "confdefs.h"
11797 /* Override any gcc2 internal prototype to avoid an error. */
11798 /* We use char because int might match the return type of a gcc2
11799 builtin and then its argument prototype would still apply. */
11806 if { (eval echo configure:11807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11808 eval "ac_cv_lib_$ac_lib_var=yes"
11810 echo "configure: failed program was:" >&5
11811 cat conftest.$ac_ext >&5
11813 eval "ac_cv_lib_$ac_lib_var=no"
11818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11819 echo "$ac_t""yes" 1>&6
11820 { test "$extra_verbose" = "yes" && cat << \EOF
11821 Defining HAVE_DLOPEN
11823 cat >> confdefs.h <<\EOF
11824 #define HAVE_DLOPEN 1
11827 DLL_LIB=dl; with_shlib=yes
11829 echo "$ac_t""no" 1>&6
11833 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11834 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11835 echo "configure:11836: checking for _dlopen in -lc" >&5
11836 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11838 xe_check_libs=" -lc "
11839 cat > conftest.$ac_ext <<EOF
11840 #line 11841 "configure"
11841 #include "confdefs.h"
11842 /* Override any gcc2 internal prototype to avoid an error. */
11843 /* We use char because int might match the return type of a gcc2
11844 builtin and then its argument prototype would still apply. */
11851 if { (eval echo configure:11852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11853 eval "ac_cv_lib_$ac_lib_var=yes"
11855 echo "configure: failed program was:" >&5
11856 cat conftest.$ac_ext >&5
11858 eval "ac_cv_lib_$ac_lib_var=no"
11863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11864 echo "$ac_t""yes" 1>&6
11865 { test "$extra_verbose" = "yes" && cat << \EOF
11866 Defining HAVE_DLOPEN
11868 cat >> confdefs.h <<\EOF
11869 #define HAVE_DLOPEN 1
11872 DLL_LIB=; with_shlib=yes
11874 echo "$ac_t""no" 1>&6
11878 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11879 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11880 echo "configure:11881: checking for dlopen in -lc" >&5
11881 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11883 xe_check_libs=" -lc "
11884 cat > conftest.$ac_ext <<EOF
11885 #line 11886 "configure"
11886 #include "confdefs.h"
11887 /* Override any gcc2 internal prototype to avoid an error. */
11888 /* We use char because int might match the return type of a gcc2
11889 builtin and then its argument prototype would still apply. */
11896 if { (eval echo configure:11897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11898 eval "ac_cv_lib_$ac_lib_var=yes"
11900 echo "configure: failed program was:" >&5
11901 cat conftest.$ac_ext >&5
11903 eval "ac_cv_lib_$ac_lib_var=no"
11908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11909 echo "$ac_t""yes" 1>&6
11910 { test "$extra_verbose" = "yes" && cat << \EOF
11911 Defining HAVE_DLOPEN
11913 cat >> confdefs.h <<\EOF
11914 #define HAVE_DLOPEN 1
11917 DLL_LIB=; with_shlib=yes
11919 echo "$ac_t""no" 1>&6
11923 test -z "$with_shlib" && {
11924 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11925 echo "configure:11926: checking for shl_load in -ldld" >&5
11926 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11928 xe_check_libs=" -ldld "
11929 cat > conftest.$ac_ext <<EOF
11930 #line 11931 "configure"
11931 #include "confdefs.h"
11932 /* Override any gcc2 internal prototype to avoid an error. */
11933 /* We use char because int might match the return type of a gcc2
11934 builtin and then its argument prototype would still apply. */
11941 if { (eval echo configure:11942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11943 eval "ac_cv_lib_$ac_lib_var=yes"
11945 echo "configure: failed program was:" >&5
11946 cat conftest.$ac_ext >&5
11948 eval "ac_cv_lib_$ac_lib_var=no"
11953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11954 echo "$ac_t""yes" 1>&6
11955 { test "$extra_verbose" = "yes" && cat << \EOF
11956 Defining HAVE_SHL_LOAD
11958 cat >> confdefs.h <<\EOF
11959 #define HAVE_SHL_LOAD 1
11962 DLL_LIB=dld; with_shlib=yes
11964 echo "$ac_t""no" 1>&6
11968 test -z "$with_shlib" && {
11969 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11970 echo "configure:11971: checking for dld_init in -ldld" >&5
11971 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11973 xe_check_libs=" -ldld "
11974 cat > conftest.$ac_ext <<EOF
11975 #line 11976 "configure"
11976 #include "confdefs.h"
11977 /* Override any gcc2 internal prototype to avoid an error. */
11978 /* We use char because int might match the return type of a gcc2
11979 builtin and then its argument prototype would still apply. */
11986 if { (eval echo configure:11987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11988 eval "ac_cv_lib_$ac_lib_var=yes"
11990 echo "configure: failed program was:" >&5
11991 cat conftest.$ac_ext >&5
11993 eval "ac_cv_lib_$ac_lib_var=no"
11998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11999 echo "$ac_t""yes" 1>&6
12000 { test "$extra_verbose" = "yes" && cat << \EOF
12001 Defining HAVE_DLD_INIT
12003 cat >> confdefs.h <<\EOF
12004 #define HAVE_DLD_INIT 1
12007 DLL_LIB=dld; with_shlib=yes
12009 echo "$ac_t""no" 1>&6
12013 if test "$with_shlib" = "yes"; then
12020 ld_dynamic_link_flags=
12022 xealias=$internal_configuration
12024 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
12025 echo "configure:12026: checking how to build dynamic libraries for ${xehost}" >&5
12026 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
12029 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
12032 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
12033 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
12034 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
12036 case "$xehost_os" in
12038 # AIX sometimes has problems with the GCC collect2 program. For some
12039 # reason, if we set the COLLECT_NAMES environment variable, the problems
12040 # vanish in a puff of smoke.
12041 if test "${COLLECT_NAMES+set}" != set; then
12043 export COLLECT_NAMES
12048 # Now see if the compiler is really GCC.
12049 if test "$GCC" = "yes"; then
12052 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
12053 echo "configure:12054: checking checking whether we are using GNU C" >&5
12054 cat > conftest.$ac_ext <<EOF
12055 #line 12056 "configure"
12056 #include "confdefs.h"
12063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12064 egrep "yes" >/dev/null 2>&1; then
12073 echo "$ac_t""${XEGCC}" 1>&6
12076 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12077 echo "configure:12078: checking how to produce PIC code" >&5
12080 can_build_shared=yes
12081 if test "$XEGCC" = yes; then
12084 case "$xehost_os" in
12085 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
12086 # PIC is the default for these OSes.
12090 # We can build DLLs from non-PIC.
12093 # FIXME: we need at least 68020 code to build shared libraries, but
12094 # adding the `-m68020' flag to GCC prevents building anything better,
12096 dll_cflags='-m68020 -resident32 -malways-restore-a4'
12103 # PORTME Check for PIC flags for the system compiler.
12104 case "$xehost_os" in
12106 # Is there a better link_static_flag that works with the bundled CC?
12113 # PIC (with -KPIC) is the default.
12117 # We can build DLLs from non-PIC.
12121 # All OSF/1 code is PIC.
12126 dll_cflags='-belf -Kpic'
12160 can_build_shared=no
12165 if test -n "$dll_cflags"; then
12166 echo "$ac_t""${dll_cflags}" 1>&6
12168 # Check to make sure the dll_cflags actually works.
12169 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12170 echo "configure:12171: checking if PIC flag ${dll_cflags} really works" >&5
12171 save_CFLAGS="$CFLAGS"
12172 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12173 cat > conftest.$ac_ext <<EOF
12174 #line 12175 "configure"
12175 #include "confdefs.h"
12181 if { (eval echo configure:12182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12184 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12185 # reports no error. So, we need to grep stderr for (Bundled).
12186 if grep '(Bundled)' config.log >/dev/null; then
12187 echo "$ac_t""no" 1>&6
12188 can_build_shared=no
12191 echo "$ac_t""yes" 1>&6
12194 echo "configure: failed program was:" >&5
12195 cat conftest.$ac_ext >&5
12197 echo "$ac_t""no" 1>&6
12198 can_build_shared=no
12202 CFLAGS="$save_CFLAGS"
12204 echo "$ac_t""none" 1>&6
12207 if test "$can_build_shared" = "yes"; then
12211 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12212 echo "configure:12213: checking if C compiler can produce shared libraries" >&5
12213 if test "$XEGCC" = yes; then
12216 else # Not using GCC
12217 case "$xehost_os" in
12219 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
12220 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
12223 freebsd2* | netbsd* | openbsd*)
12225 xcldf="${wl}-Bshareable"
12234 xcldf="${wl}-b ${wl}+s"
12237 irix5* | irix6* | osf3* | osf4*)
12238 xcldf="${wl}-shared"
12242 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
12248 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
12249 xldf="-assert pure-text -Bstatic"
12252 fi # End if if we are using gcc
12254 if test -n "$xcldf"; then
12255 save_LDFLAGS=$LDFLAGS
12257 save_xe_libs=$xe_libs
12258 LDFLAGS="$xcldf $LDFLAGS"
12261 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12262 cat > conftest.$ac_ext <<EOF
12263 #line 12264 "configure"
12264 #include "confdefs.h"
12270 if { (eval echo configure:12271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12274 echo "configure: failed program was:" >&5
12275 cat conftest.$ac_ext >&5
12280 LDFLAGS=$save_LDFLAGS
12282 xe_libs=$save_xe_libs
12283 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12287 echo "$ac_t""${cc_produces_so}" 1>&6
12290 if test -z "$LTLD"; then
12292 if test "$XEGCC" = yes; then
12293 # Check if gcc -print-prog-name=ld gives a path.
12294 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12295 echo "configure:12296: checking for ld used by GCC" >&5
12296 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12298 # Accept absolute paths.
12300 if test -z "$LTLD"; then
12302 *gcc-lib*) LTLD="$CC"
12310 # If it fails, then pretend we aren't using GCC.
12314 # If it is relative, then search for the first ld in PATH.
12315 with_gnu_ld=unknown
12319 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12320 echo "configure:12321: checking for GNU ld" >&5
12323 if test -z "$LTLD"; then
12324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12325 for ac_dir in $PATH; do
12326 test -z "$ac_dir" && ac_dir=.
12327 if test -f "$ac_dir/$ac_prog"; then
12328 LTLD="$ac_dir/$ac_prog"
12329 # Check to see if the program is GNU ld. I'd rather use --version,
12330 # but apparently some GNU ld's only accept -v.
12331 # Break only if it was the GNU/non-GNU ld that we prefer.
12332 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12342 if test -n "$LTLD"; then
12343 echo "$ac_t""${LTLD}" 1>&6
12345 echo "$ac_t""no" 1>&6
12348 if test -z "$LTLD" -a "$cc_produces_so" = no; then
12349 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
12354 ld_dynamic_link_flags=
12356 # Check to see if it really is or isn't GNU ld.
12357 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12358 echo "configure:12359: checking if the linker is GNU ld" >&5
12359 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12360 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12365 echo "$ac_t""${xe_gnu_ld}" 1>&6
12367 case "$xehost_os" in
12368 amigaos* | sunos4*)
12369 # On these operating systems, we should treat GNU ld like the system ld.
12370 gnu_ld_acts_native=yes
12373 gnu_ld_acts_native=no
12377 if test "$cc_produces_so" = "yes"; then
12380 can_build_shared=yes
12382 # OK - only NOW do we futz about with ld.
12383 # See if the linker supports building shared libraries.
12384 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12385 echo "configure:12386: checking whether the linker supports shared libraries" >&5
12387 dll_ldflags=$LDFLAGS
12389 can_build_shared=yes
12390 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12391 # See if GNU ld supports shared libraries.
12392 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12394 dll_ldflags="-shared"
12400 # PORTME fill in a description of your system's linker (not GNU ld)
12401 case "$xehost_os" in
12411 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12412 # support. Future versions do this automatically, but an explicit c++rt0.o
12413 # doesn't break anything, and helps significantly (at the cost of a little
12418 dll_post="/usr/lib/c++rt0.o"
12421 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
12424 dll_ldflags="-Bshareable"
12427 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
12429 dll_ldflags="-shared"
12443 # Tested with NetBSD 1.2 ld
12458 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
12459 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12462 *gcc*) dll_ldflags="-shared"
12465 *) dll_ldflags="-G"
12471 if test "$XEGCC" = yes; then
12491 can_build_shared=no
12495 echo "$ac_t""${ld_shlibs}" 1>&6
12496 if test "$ld_shlibs" = "no"; then
12497 can_build_shared=no
12499 fi # End of if cc_produces_so = no
12502 if test "$xe_gnu_ld" = yes; then
12503 if test "$ld_shlibs" = yes; then
12504 ld_dynamic_link_flags="${wl}-export-dynamic"
12508 if test -z "$ld_dynamic_link_flags"; then
12509 case "$xehost_os" in
12511 ld_dynamic_link_flags=
12515 ld_dynamic_link_flags=
12519 ld_dynamic_link_flags=
12523 ld_dynamic_link_flags=
12527 ld_dynamic_link_flags=
12531 ld_dynamic_link_flags="${wl}-E"
12535 ld_dynamic_link_flags=
12539 ld_dynamic_link_flags=
12543 ld_dynamic_link_flags=
12547 ld_dynamic_link_flags=
12550 solaris2* | solaris7*)
12551 ld_dynamic_link_flags="${wl}-Bdynamic"
12554 sco3.2v5* | unixware* | sysv5* | sysv4*)
12555 ld_dynamic_link_flags="${wl}-Bexport"
12559 ld_dynamic_link_flags=
12563 ld_dynamic_link_flags=
12567 ld_dynamic_link_flags=
12571 fi # End of if -z ld_dynamic_link_flags
12572 fi # End of if test "$can_build_shared" = "yes"
12581 if test "$can_build_shared" = "yes"; then
12582 { test "$extra_verbose" = "yes" && cat << \EOF
12583 Defining HAVE_SHLIB
12585 cat >> confdefs.h <<\EOF
12586 #define HAVE_SHLIB 1
12590 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then
12591 echo " xemacs will be linked with \"sysdll.o\""
12593 extra_objs="$extra_objs emodules.o" && if test "$extra_verbose" = "yes"; then
12594 echo " xemacs will be linked with \"emodules.o\""
12596 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12597 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
12598 for ac_func in dlerror _dlerror
12600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12601 echo "configure:12602: checking for $ac_func" >&5
12603 cat > conftest.$ac_ext <<EOF
12604 #line 12605 "configure"
12605 #include "confdefs.h"
12606 /* System header to define __stub macros and hopefully few prototypes,
12607 which can conflict with char $ac_func(); below. */
12608 #include <assert.h>
12609 /* Override any gcc2 internal prototype to avoid an error. */
12610 /* We use char because int might match the return type of a gcc2
12611 builtin and then its argument prototype would still apply. */
12616 /* The GNU C library defines this for functions which it implements
12617 to always fail with ENOSYS. Some functions are actually named
12618 something starting with __ and the normal name is an alias. */
12619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12627 if { (eval echo configure:12628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12629 eval "ac_cv_func_$ac_func=yes"
12631 echo "configure: failed program was:" >&5
12632 cat conftest.$ac_ext >&5
12634 eval "ac_cv_func_$ac_func=no"
12638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12639 echo "$ac_t""yes" 1>&6
12640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12641 { test "$extra_verbose" = "yes" && cat << EOF
12642 Defining $ac_tr_func
12644 cat >> confdefs.h <<EOF
12645 #define $ac_tr_func 1
12650 echo "$ac_t""no" 1>&6
12655 echo "configure: warning: disabling shared library support" 1>&2
12660 cat > conftest.$ac_ext <<EOF
12661 #line 12662 "configure"
12662 #include "confdefs.h"
12663 int main(int c,char *v[]){return 0;}
12665 if { (eval echo configure:12666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12670 echo "configure: failed program was:" >&5
12671 cat conftest.$ac_ext >&5
12675 echo "*** PANIC *** The C compiler can no longer build working executables."
12676 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
12677 echo "*** PANIC *** The most likely reason for this problem is that configure"
12678 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
12679 echo "*** PANIC *** found at run time."
12680 echo "*** PANIC ***"
12681 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
12682 echo "*** PANIC *** On other systems, try telling configure where to find the"
12683 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
12684 echo "*** PANIC ***"
12685 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
12686 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
12687 echo "*** PANIC *** on your system. Don't do that."
12692 if test "$win32_processes" = "yes"; then
12693 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
12694 echo " xemacs will be linked with \"process-nt.o\""
12697 { test "$extra_verbose" = "yes" && cat << \EOF
12698 Defining HAVE_UNIX_PROCESSES
12700 cat >> confdefs.h <<\EOF
12701 #define HAVE_UNIX_PROCESSES 1
12705 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
12706 echo " xemacs will be linked with \"process-unix.o\""
12713 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12718 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12723 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
12724 c_switch_general="$T"
12728 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12729 c_switch_window_system="$T"
12733 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12738 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
12739 ld_switch_general="$T"
12743 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12744 ld_switch_window_system="$T"
12748 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12753 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12754 ld_libs_general="$T"
12758 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
12759 ld_libs_window_system="$T"
12763 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12768 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
12769 internal_makefile_list="Makefile.in"
12770 SUBDIR_MAKEFILES=''
12771 test -d lock || mkdir lock
12772 for dir in $MAKE_SUBDIR; do
12773 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
12774 test -d "$d" || mkdir "$d"; cd "$d"
12776 * ) test -d "$dir" || mkdir "$dir" ;;
12780 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12781 SUBDIR_MAKEFILES="$T"
12785 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12786 internal_makefile_list="$T"
12793 for dir in src/s src/m; do
12794 if test ! -d "$dir" ; then
12795 echo Making symbolic link to "$srcdir/$dir"
12796 ${LN_S} "$srcdir/$dir" "$dir"
12800 if test "$extra_verbose" = "yes"; then
12802 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
12806 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
12807 echo "creating src/gdbinit"; echo ""
12808 echo "source $srcdir/src/gdbinit" > src/gdbinit
12811 if test "$__SUNPRO_C" = "yes"; then
12812 echo "creating .sbinit"; echo ""
12813 ( echo "# For use with Sun WorkShop's Source browser."
12814 echo "# See sbquery(1) and sbinit(4) for more information"
12815 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
12839 *\$* ) eval "PREFIX=$PREFIX" ;;
12846 EXEC_PREFIX=$exec_prefix
12848 case "$EXEC_PREFIX" in
12849 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
12860 *\$* ) eval "INFODIR=$INFODIR" ;;
12870 case "$INFOPATH" in
12871 *\$* ) eval "INFOPATH=$INFOPATH" ;;
12879 PACKAGE_PATH=$package_path
12881 case "$PACKAGE_PATH" in
12882 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
12893 *\$* ) eval "LISPDIR=$LISPDIR" ;;
12901 MODULEDIR=$moduledir
12903 case "$MODULEDIR" in
12904 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
12912 SITELISPDIR=$sitelispdir
12914 case "$SITELISPDIR" in
12915 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
12923 SITEMODULEDIR=$sitemoduledir
12925 case "$SITEMODULEDIR" in
12926 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
12937 *\$* ) eval "ETCDIR=$ETCDIR" ;;
12948 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
12956 ARCHLIBDIR=$archlibdir
12958 case "$ARCHLIBDIR" in
12959 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
12983 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
12991 : ${XEMACS_CC:=$CC}
12995 if test "$with_site_lisp" = "no"; then
12996 { test "$extra_verbose" = "yes" && cat << \EOF
12997 Defining INHIBIT_SITE_LISP
12999 cat >> confdefs.h <<\EOF
13000 #define INHIBIT_SITE_LISP 1
13005 if test "$with_site_modules" = "no"; then
13006 { test "$extra_verbose" = "yes" && cat << \EOF
13007 Defining INHIBIT_SITE_MODULES
13009 cat >> confdefs.h <<\EOF
13010 #define INHIBIT_SITE_MODULES 1
13018 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13019 ac_configure_args="$T"
13021 { test "$extra_verbose" = "yes" && cat << EOF
13022 Defining EMACS_CONFIGURATION = "$canonical"
13024 cat >> confdefs.h <<EOF
13025 #define EMACS_CONFIGURATION "$canonical"
13029 { test "$extra_verbose" = "yes" && cat << EOF
13030 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
13032 cat >> confdefs.h <<EOF
13033 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
13037 { test "$extra_verbose" = "yes" && cat << EOF
13038 Defining config_machfile = "$machfile"
13040 cat >> confdefs.h <<EOF
13041 #define config_machfile "$machfile"
13045 { test "$extra_verbose" = "yes" && cat << EOF
13046 Defining config_opsysfile = "$opsysfile"
13048 cat >> confdefs.h <<EOF
13049 #define config_opsysfile "$opsysfile"
13056 { test "$extra_verbose" = "yes" && cat << EOF
13057 Defining LD_SWITCH_X_SITE = $null_string
13059 cat >> confdefs.h <<EOF
13060 #define LD_SWITCH_X_SITE $null_string
13064 { test "$extra_verbose" = "yes" && cat << EOF
13065 Defining LD_SWITCH_X_SITE_AUX = $null_string
13067 cat >> confdefs.h <<EOF
13068 #define LD_SWITCH_X_SITE_AUX $null_string
13072 { test "$extra_verbose" = "yes" && cat << EOF
13073 Defining C_SWITCH_X_SITE = $null_string
13075 cat >> confdefs.h <<EOF
13076 #define C_SWITCH_X_SITE $null_string
13080 { test "$extra_verbose" = "yes" && cat << EOF
13081 Defining LD_SWITCH_SITE = $null_string
13083 cat >> confdefs.h <<EOF
13084 #define LD_SWITCH_SITE $null_string
13088 { test "$extra_verbose" = "yes" && cat << EOF
13089 Defining C_SWITCH_SITE = $null_string
13091 cat >> confdefs.h <<EOF
13092 #define C_SWITCH_SITE $null_string
13098 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13099 Defining GNU_MALLOC
13101 cat >> confdefs.h <<\EOF
13102 #define GNU_MALLOC 1
13106 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13107 Defining USE_SYSTEM_MALLOC
13109 cat >> confdefs.h <<\EOF
13110 #define USE_SYSTEM_MALLOC 1
13114 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13115 Defining USE_DEBUG_MALLOC
13117 cat >> confdefs.h <<\EOF
13118 #define USE_DEBUG_MALLOC 1
13122 { test "$extra_verbose" = "yes" && cat << \EOF
13123 Defining USE_SYSTEM_MALLOC
13125 cat >> confdefs.h <<\EOF
13126 #define USE_SYSTEM_MALLOC 1
13131 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13134 cat >> confdefs.h <<\EOF
13139 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13142 cat >> confdefs.h <<\EOF
13147 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13148 Defining EXTERNAL_WIDGET
13150 cat >> confdefs.h <<\EOF
13151 #define EXTERNAL_WIDGET 1
13155 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13156 Defining NO_DOC_FILE
13158 cat >> confdefs.h <<\EOF
13159 #define NO_DOC_FILE 1
13163 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13166 cat >> confdefs.h <<\EOF
13171 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13174 cat >> confdefs.h <<\EOF
13179 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13180 Defining MAIL_USE_POP
13182 cat >> confdefs.h <<\EOF
13183 #define MAIL_USE_POP 1
13187 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13190 cat >> confdefs.h <<\EOF
13195 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13198 cat >> confdefs.h <<\EOF
13203 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13204 Defining USE_UNION_TYPE
13206 cat >> confdefs.h <<\EOF
13207 #define USE_UNION_TYPE 1
13214 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
13216 echo "uname -a: `uname -a`"
13219 echo "$0 $quoted_arguments"
13222 if test ! -z ${emacs_beta_version} ; then
13223 if test -z "${emacs_is_beta}" ; then
13224 xemacs_betaname=".${emacs_beta_version}"
13226 xemacs_betaname="-b${emacs_beta_version}"
13235 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13237 Where should the build process find the source code? $srcdir
13238 What installation prefix should install use? $prefix
13239 What operating system and machine description files should XEmacs use?
13240 \`$opsysfile' and \`$machfile'
13241 What compiler should XEmacs be built with? $CC $CFLAGS
13242 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13243 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13244 What window system should XEmacs use? ${window_system}"
13245 if test "$with_x11" = "yes"; then
13246 echo " Where do we find X Windows header files? $x_includes"
13247 echo " Where do we find X Windows libraries? $x_libraries"
13249 if test -n "$site_includes"; then
13250 echo " Additional header files: $site_includes"
13252 if test -n "$site_libraries"; then
13253 echo " Additional libraries: $site_libraries"
13255 if test -n "$site_prefixes"; then
13256 echo " Additional prefixes: $site_prefixes"
13258 if test -n "$runpath"; then
13259 echo " Runtime library search path: $runpath"
13261 test "$with_dnet" = yes && echo " Compiling in support for DNET."
13262 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
13263 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
13264 if test "$with_xmu" != yes -a "$with_x11" = yes; then
13265 echo " No Xmu; substituting equivalent routines."
13268 if test "$with_xpm" = yes; then
13269 echo " Compiling in support for XPM images."
13270 elif test "$with_x11" = yes; then
13271 echo " --------------------------------------------------------------------"
13272 echo " WARNING: Compiling without XPM support."
13273 if test "$xpm_problem" != ""; then
13274 echo " Reason: $xpm_problem"
13276 echo " WARNING: You should strongly consider installing XPM."
13277 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
13278 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13279 echo " --------------------------------------------------------------------"
13281 if test "$with_png" = yes; then
13282 echo " Compiling in support for PNG image handling."
13283 elif test "$window_system" != "none"; then
13284 echo " --------------------------------------------------------------------"
13285 echo " WARNING: Compiling without PNG image support."
13286 if test "$png_problem" != ""; then
13287 echo " Reason: $png_problem"
13289 echo " WARNING: You should strongly consider installing the PNG libraries."
13290 echo " WARNING: Otherwise certain images and glyphs may not display."
13291 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13292 echo " --------------------------------------------------------------------"
13294 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13295 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13296 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13297 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13298 case "$with_sound" in
13299 nas ) echo " Compiling in network sound (NAS) support." ;;
13300 native ) echo " Compiling in native sound support." ;;
13301 both ) echo " Compiling in both network and native sound support." ;;
13303 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13305 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13306 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13307 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
13309 test "$with_umich_ldap" = yes && echo " Compiling in support for LDAP (UMich libs)."
13310 test "$with_ns_ldap" = yes && echo " Compiling in support for LDAP (Netscape SDK)."
13311 test "$with_ldap" = yes -a "$with_umich_ldap" = no -a "$with_ns_ldap" = no && echo " Compiling in support for LDAP (Generic)."
13313 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
13314 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
13316 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
13317 test "$with_file_coding" = yes && echo " Compiling in File coding support."
13318 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
13319 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
13320 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
13321 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
13322 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
13323 if test "$with_wnn" = yes; then
13324 echo " Compiling in support for the WNN input method on Mule."
13325 test "$with_wnn6" = yes && echo " Using WNN version 6."
13327 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
13329 test "$with_cde" = yes && echo " Compiling in support for CDE."
13330 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
13331 test "$with_offix" = yes && echo " Compiling in support for OffiX."
13332 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
13333 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
13334 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
13335 case "$with_menubars" in
13336 lucid ) echo " Using Lucid menubars." ;;
13337 motif ) echo " Using Motif menubars."
13338 echo " *WARNING* The Motif menubar implementation is currently buggy."
13339 echo " We recommend using the Lucid menubar instead."
13340 echo " Re-run configure with --with-menubars='lucid'." ;;
13342 case "$with_scrollbars" in
13343 lucid ) echo " Using Lucid scrollbars." ;;
13344 motif ) echo " Using Motif scrollbars." ;;
13345 athena ) echo " Using Athena scrollbars." ;;
13346 athena3d ) echo " Using Athena-3d scrollbars." ;;
13348 case "$with_dialogs" in
13350 echo " Using Motif dialog boxes."
13351 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
13352 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
13353 echo " We recommend using the Athena dialog boxes instead."
13354 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
13355 echo " Read the PROBLEMS file for more information."
13358 athena ) echo " Using Athena dialog boxes." ;;
13359 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13361 test "$with_shlib" = "yes" && echo " Compiling in DLL support."
13362 test "$with_clash_detection" = yes && \
13363 echo " Clash detection will use \"$lockdir\" for locking files."
13364 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13365 test "$with_pop" = yes && echo " Using POP for mail access."
13366 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13367 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
13368 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
13369 test "$debug" = yes && echo " Compiling in extra code for debugging."
13370 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13371 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
13372 != "no no no no no"; then
13373 echo " WARNING: ---------------------------------------------------------"
13374 echo " WARNING: Compiling in support for runtime error checking."
13375 echo " WARNING: XEmacs will run noticeably more slowly as a result."
13376 echo " WARNING: Error checking is on by default for XEmacs beta releases."
13377 echo " WARNING: ---------------------------------------------------------"
13380 ) | tee -a Installation
13384 # Remove any trailing slashes in these variables.
13385 test -n "$prefix" &&
13386 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13387 test -n "$exec_prefix" &&
13388 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13391 for file in $internal_makefile_list; do
13392 test "$file" = src/Makefile.in && \
13393 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13394 ac_output_files="${ac_output_files+$ac_output_files }$file"
13396 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13397 if test "$with_shlib" = "yes"; then
13398 ac_output_files="$ac_output_files lib-src/ellcc.h"
13403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13405 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13406 # Let make expand exec_prefix.
13407 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13409 # Any assignment to VPATH causes Sun make to only execute
13410 # the first set of double-colon rules, so remove it if not needed.
13411 # If there is a colon in the path, we need to keep it.
13412 if test "x$srcdir" = x.; then
13413 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13416 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13418 DEFS=-DHAVE_CONFIG_H
13420 # Without the "./", some shells look in PATH for config.status.
13421 : ${CONFIG_STATUS=./config.status}
13423 echo creating $CONFIG_STATUS
13424 rm -f $CONFIG_STATUS
13425 cat > $CONFIG_STATUS <<EOF
13427 # Generated automatically by configure.
13428 # Run this file to recreate the current configuration.
13429 # This directory was configured as follows,
13430 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13432 # $0 $ac_configure_args
13434 # Compiler output produced by configure, useful for debugging
13435 # configure, is in ./config.log if it exists.
13437 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13440 case "\$ac_option" in
13441 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13442 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13443 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13444 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13445 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13447 -help | --help | --hel | --he | --h)
13448 echo "\$ac_cs_usage"; exit 0 ;;
13449 *) echo "\$ac_cs_usage"; exit 1 ;;
13453 ac_given_srcdir=$srcdir
13454 ac_given_INSTALL="$INSTALL"
13456 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13458 cat >> $CONFIG_STATUS <<EOF
13460 # Protect against being on the right side of a sed subst in config.status.
13461 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13462 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13466 s%@CFLAGS@%$CFLAGS%g
13467 s%@CPPFLAGS@%$CPPFLAGS%g
13468 s%@CXXFLAGS@%$CXXFLAGS%g
13469 s%@FFLAGS@%$FFLAGS%g
13471 s%@LDFLAGS@%$LDFLAGS%g
13473 s%@exec_prefix@%$exec_prefix%g
13474 s%@prefix@%$prefix%g
13475 s%@program_transform_name@%$program_transform_name%g
13476 s%@bindir@%$bindir%g
13477 s%@sbindir@%$sbindir%g
13478 s%@libexecdir@%$libexecdir%g
13479 s%@datadir@%$datadir%g
13480 s%@sysconfdir@%$sysconfdir%g
13481 s%@sharedstatedir@%$sharedstatedir%g
13482 s%@localstatedir@%$localstatedir%g
13483 s%@libdir@%$libdir%g
13484 s%@includedir@%$includedir%g
13485 s%@oldincludedir@%$oldincludedir%g
13486 s%@infodir@%$infodir%g
13487 s%@mandir@%$mandir%g
13489 s%@blddir@%$blddir%g
13492 s%@start_flags@%$start_flags%g
13493 s%@ld_switch_shared@%$ld_switch_shared%g
13494 s%@start_files@%$start_files%g
13496 s%@lib_gcc@%$lib_gcc%g
13497 s%@RANLIB@%$RANLIB%g
13498 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13499 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13500 s%@INSTALL_DATA@%$INSTALL_DATA%g
13502 s%@SET_MAKE@%$SET_MAKE%g
13503 s%@X_CFLAGS@%$X_CFLAGS%g
13504 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13505 s%@X_LIBS@%$X_LIBS%g
13506 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13507 s%@install_pp@%$install_pp%g
13508 s%@libs_xauth@%$libs_xauth%g
13509 s%@dnd_objs@%$dnd_objs%g
13510 s%@lwlib_objs@%$lwlib_objs%g
13511 s%@ALLOCA@%$ALLOCA%g
13512 s%@dll_ld@%$dll_ld%g
13513 s%@dll_cflags@%$dll_cflags%g
13514 s%@dll_ldflags@%$dll_ldflags%g
13515 s%@dll_post@%$dll_post%g
13516 s%@dll_ldo@%$dll_ldo%g
13517 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
13518 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
13519 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
13520 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
13521 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
13522 s%@PROGNAME@%$PROGNAME%g
13523 s%@version@%$version%g
13524 s%@configuration@%$configuration%g
13525 s%@canonical@%$canonical%g
13526 s%@srcdir@%$srcdir%g
13527 s%@pkgdir@%$pkgdir%g
13528 s%@statedir@%$statedir%g
13529 s%@PREFIX@%$PREFIX%g
13530 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
13531 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
13532 s%@INFODIR@%$INFODIR%g
13533 s%@infopath@%$infopath%g
13534 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
13535 s%@INFOPATH@%$INFOPATH%g
13536 s%@package_path@%$package_path%g
13537 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
13538 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
13539 s%@lispdir@%$lispdir%g
13540 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
13541 s%@LISPDIR@%$LISPDIR%g
13542 s%@moduledir@%$moduledir%g
13543 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
13544 s%@MODULEDIR@%$MODULEDIR%g
13545 s%@sitelispdir@%$sitelispdir%g
13546 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
13547 s%@SITELISPDIR@%$SITELISPDIR%g
13548 s%@sitemoduledir@%$sitemoduledir%g
13549 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
13550 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
13551 s%@etcdir@%$etcdir%g
13552 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
13553 s%@ETCDIR@%$ETCDIR%g
13554 s%@lockdir@%$lockdir%g
13555 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
13556 s%@LOCKDIR@%$LOCKDIR%g
13557 s%@archlibdir@%$archlibdir%g
13558 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
13559 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
13560 s%@docdir@%$docdir%g
13561 s%@bitmapdir@%$bitmapdir%g
13562 s%@extra_objs@%$extra_objs%g
13563 s%@machfile@%$machfile%g
13564 s%@opsysfile@%$opsysfile%g
13565 s%@c_switch_general@%$c_switch_general%g
13566 s%@c_switch_window_system@%$c_switch_window_system%g
13567 s%@c_switch_all@%$c_switch_all%g
13568 s%@ld_switch_general@%$ld_switch_general%g
13569 s%@ld_switch_window_system@%$ld_switch_window_system%g
13570 s%@ld_switch_all@%$ld_switch_all%g
13571 s%@ld_libs_general@%$ld_libs_general%g
13572 s%@ld_libs_window_system@%$ld_libs_window_system%g
13573 s%@ld_libs_all@%$ld_libs_all%g
13574 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
13575 s%@native_sound_lib@%$native_sound_lib%g
13576 s%@sound_cflags@%$sound_cflags%g
13577 s%@dynodump_arch@%$dynodump_arch%g
13578 s%@XEMACS_CC@%$XEMACS_CC%g
13579 s%@internal_makefile_list@%$internal_makefile_list%g
13584 cat >> $CONFIG_STATUS <<\EOF
13586 # Split the substitutions into bite-sized pieces for seds with
13587 # small command number limits, like on Digital OSF/1 and HP-UX.
13588 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13589 ac_file=1 # Number of current file.
13590 ac_beg=1 # First line for current file.
13591 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13594 while $ac_more_lines; do
13595 if test $ac_beg -gt 1; then
13596 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13598 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13600 if test ! -s conftest.s$ac_file; then
13601 ac_more_lines=false
13602 rm -f conftest.s$ac_file
13604 if test -z "$ac_sed_cmds"; then
13605 ac_sed_cmds="sed -f conftest.s$ac_file"
13607 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13609 ac_file=`expr $ac_file + 1`
13611 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13614 if test -z "$ac_sed_cmds"; then
13619 cat >> $CONFIG_STATUS <<EOF
13621 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
13623 cat >> $CONFIG_STATUS <<\EOF
13624 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13625 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13627 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13628 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13629 *) ac_file_in="${ac_file}.in" ;;
13632 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13634 # Remove last slash and all that follows it. Not all systems have dirname.
13635 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13636 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13637 # The file is in a subdirectory.
13638 test ! -d "$ac_dir" && mkdir "$ac_dir"
13639 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13640 # A "../" for each directory in $ac_dir_suffix.
13641 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13643 ac_dir_suffix= ac_dots=
13646 case "$ac_given_srcdir" in
13648 if test -z "$ac_dots"; then top_srcdir=.
13649 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13650 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13651 *) # Relative path.
13652 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13653 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13656 case "$ac_given_INSTALL" in
13657 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13658 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13661 echo creating "$ac_file"
13663 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13665 *Makefile*) ac_comsub="1i\\
13666 # $configure_input" ;;
13670 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13672 s%@configure_input@%$configure_input%g
13673 s%@srcdir@%$srcdir%g
13674 s%@top_srcdir@%$top_srcdir%g
13675 s%@INSTALL@%$INSTALL%g
13676 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13680 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13681 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13683 # ac_d sets the value in "#define NAME VALUE" lines.
13684 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13685 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13688 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13689 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13690 ac_uB='\([ ]\)%\1#\2define\3'
13693 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13694 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13695 ac_eB='$%\1#\2define\3'
13699 if test "${CONFIG_HEADERS+set}" != set; then
13701 cat >> $CONFIG_STATUS <<EOF
13702 CONFIG_HEADERS="src/config.h lwlib/config.h"
13704 cat >> $CONFIG_STATUS <<\EOF
13706 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13707 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13709 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13710 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13711 *) ac_file_in="${ac_file}.in" ;;
13714 echo creating $ac_file
13716 rm -f conftest.frag conftest.in conftest.out
13717 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13718 cat $ac_file_inputs > conftest.in
13722 # Transform confdefs.h into a sed script conftest.vals that substitutes
13723 # the proper values into config.h.in to produce config.h. And first:
13724 # Protect against being on the right side of a sed subst in config.status.
13725 # Protect against being in an unquoted here document in config.status.
13726 rm -f conftest.vals
13727 cat > conftest.hdr <<\EOF
13730 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13734 sed -n -f conftest.hdr confdefs.h > conftest.vals
13737 # This sed command replaces #undef with comments. This is necessary, for
13738 # example, in the case of _POSIX_SOURCE, which is predefined and required
13739 # on some systems where configure will not decide to define it.
13740 cat >> conftest.vals <<\EOF
13741 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13744 # Break up conftest.vals because some shells have a limit on
13745 # the size of here documents, and old seds have small limits too.
13747 rm -f conftest.tail
13750 ac_lines=`grep -c . conftest.vals`
13751 # grep -c gives empty output for an empty file on some AIX systems.
13752 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13753 # Write a limited-size here document to conftest.frag.
13754 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13755 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13757 sed -f conftest.frag conftest.in > conftest.out
13759 mv conftest.out conftest.in
13760 ' >> $CONFIG_STATUS
13761 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13762 rm -f conftest.vals
13763 mv conftest.tail conftest.vals
13765 rm -f conftest.vals
13767 cat >> $CONFIG_STATUS <<\EOF
13768 rm -f conftest.frag conftest.h
13769 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13770 cat conftest.in >> conftest.h
13772 if cmp -s $ac_file conftest.h 2>/dev/null; then
13773 echo "$ac_file is unchanged"
13776 # Remove last slash and all that follows it. Not all systems have dirname.
13777 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13778 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13779 # The file is in a subdirectory.
13780 test ! -d "$ac_dir" && mkdir "$ac_dir"
13783 mv conftest.h $ac_file
13788 cat >> $CONFIG_STATUS <<EOF
13790 top_srcdir="$srcdir"
13791 MAKE_SUBDIR="$MAKE_SUBDIR"
13794 cat >> $CONFIG_STATUS <<\EOF
13795 for dir in . $MAKE_SUBDIR; do
13800 sed -e '/^# Generated/d' \
13801 -e 's%/\*\*/#.*%%' \
13816 echo creating $dir/Makefile
13817 $CPP -I. -I${top_srcdir}/src junk.c \
13818 | sed -e 's/^\#.*//' \
13819 -e 's/^[ ][ ]*$//'\
13821 | sed -n -e '/^..*$/p' \
13827 chmod 444 Makefile.new
13828 mv -f Makefile.new Makefile
13830 echo creating $dir/GNUmakefile
13831 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
13832 | sed -e 's/^\#.*//' \
13833 -e 's/^[ ][ ]*$//'\
13835 | sed -n -e '/^..*$/p' \
13841 chmod 444 Makefile.new
13842 mv -f Makefile.new GNUmakefile
13848 sed < config.status >> lib-src/config.values \
13849 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
13850 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
13851 -e 's/^\([^ ]*\) $/\1 ""/' \
13857 chmod +x $CONFIG_STATUS
13858 rm -fr confdefs* $ac_clean_files
13859 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1