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 | \
359 memory_usage_stats | \
360 with_clash_detection | \
364 y | ye | yes ) val=yes ;;
366 * ) (echo "$progname: Usage error:"
367 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
368 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
370 eval "$opt=\"$val\"" ;;
388 site_runtime_libraries )
389 if test "$valomitted" = "yes" ; then
390 if test "$#" = 0 ; then
391 (echo "$progname: Usage error:"
392 echo " " "The \`--$optname' option requires a value."
393 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
402 with_debug_malloc | use_debug_malloc | \
403 with_system_malloc | use_system_malloc )
405 y | ye | yes ) val=yes ;;
407 d | de | def | defa | defau | defaul | default ) val=default ;;
408 * ) (echo "$progname: Usage error:"
409 echo " " "The \`--$optname' option requires one of these values:
410 \`yes', \`no', or \`default'."
411 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
413 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
418 with_database_berkdb=no
420 with_database_gnudbm=no
421 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
424 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
425 d | db | dbm ) with_database_dbm=yes ;;
426 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
427 * ) (echo "$progname: Usage error:"
428 echo " " "The \`--$optname' option value
429 must be either \`no' or a comma-separated list
430 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
431 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
434 if test "$with_database_dbm" = "yes" -a \
435 "$with_database_gnudbm" = "yes"; then
436 (echo "$progname: Usage error:"
437 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
438 with the \`--$optname' option."
439 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
445 y | ye | yes ) val=native ;;
446 n | no | non | none ) val=no;;
447 na | nat | nati | nativ | native ) val=native ;;
448 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
449 b | bo | bot | both ) val=both;;
450 * ) (echo "$progname: Usage error:"
451 echo " " "The \`--$optname' option must have one of these values:
452 \`native', \`nas', \`both', or \`none'."
453 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
460 y | ye | yes ) val=yes ;;
461 n | no | non | none ) val=no ;;
462 x | xl | xli | xlib ) val=xlib ;;
463 m | mo | mot | moti | motif ) val=motif ;;
464 * ) (echo "$progname: Usage error:"
465 echo " " "The \`--$optname' option must have one of these values:
466 \`motif', \`xlib', \`yes', or \`no'."
467 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
477 * ) (echo "$progname: Usage error:"
478 echo " " "The \`--$optname' option must have one of these values:
479 \`lockf', \`flock', or \`file'."
480 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
487 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
489 n | no | non | none ) new_default=no ;;
490 a | al | all ) new_default=yes ;;
492 extents ) error_check_extents=yes ;;
493 noextents ) error_check_extents=no ;;
495 typecheck ) error_check_typecheck=yes ;;
496 notypecheck ) error_check_typecheck=no ;;
498 bufpos ) error_check_bufpos=yes ;;
499 nobufpos ) error_check_bufpos=no ;;
501 gc ) error_check_gc=yes ;;
502 nogc ) error_check_gc=no ;;
504 malloc ) error_check_malloc=yes ;;
505 nomalloc ) error_check_malloc=no ;;
507 byte_code ) error_check_byte_code=yes ;;
508 nobyte_code ) error_check_byte_code=no ;;
510 * ) bogus_error_check=yes ;;
512 if test "$bogus_error_check" -o \
513 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
514 if test "$error_check_default" = yes ; then
515 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'."
517 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'."
519 (echo "$progname: Usage error:"
520 echo " " "Valid types for the \`--$optname' option are:
522 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
523 elif test -n "$new_default" ; then
524 error_check_extents=$new_default
525 error_check_typecheck=$new_default
526 error_check_bufpos=$new_default
527 error_check_gc=$new_default
528 error_check_malloc=$new_default
529 error_check_byte_code=$new_default
530 new_default= # reset this
537 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
538 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
539 archlibdir | docdir | package_path )
540 if test "$valomitted" = "yes"; then
541 if test "$#" = 0; then
542 (echo "$progname: Usage error:"
543 echo " " "The \`--$optname' option requires a value."
544 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
551 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
552 Defining LISPDIR_USER_DEFINED
554 cat >> confdefs.h <<\EOF
555 #define LISPDIR_USER_DEFINED 1
559 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
560 Defining SITELISPDIR_USER_DEFINED
562 cat >> confdefs.h <<\EOF
563 #define SITELISPDIR_USER_DEFINED 1
567 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
568 Defining MODULEDIR_USER_DEFINED
570 cat >> confdefs.h <<\EOF
571 #define MODULEDIR_USER_DEFINED 1
575 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
576 Defining ETCDIR_USER_DEFINED
578 cat >> confdefs.h <<\EOF
579 #define ETCDIR_USER_DEFINED 1
583 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
584 Defining INFODIR_USER_DEFINED
586 cat >> confdefs.h <<\EOF
587 #define INFODIR_USER_DEFINED 1
591 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
592 Defining INFOPATH_USER_DEFINED
594 cat >> confdefs.h <<\EOF
595 #define INFOPATH_USER_DEFINED 1
599 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
600 Defining PACKAGE_PATH_USER_DEFINED
602 cat >> confdefs.h <<\EOF
603 #define PACKAGE_PATH_USER_DEFINED 1
608 { test "$extra_verbose" = "yes" && cat << \EOF
609 Defining INFODIR_USER_DEFINED
611 cat >> confdefs.h <<\EOF
612 #define INFODIR_USER_DEFINED 1
616 { test "$extra_verbose" = "yes" && cat << \EOF
617 Defining LISPDIR_USER_DEFINED
619 cat >> confdefs.h <<\EOF
620 #define LISPDIR_USER_DEFINED 1
624 { test "$extra_verbose" = "yes" && cat << \EOF
625 Defining MODULEDIR_USER_DEFINED
627 cat >> confdefs.h <<\EOF
628 #define MODULEDIR_USER_DEFINED 1
632 { test "$extra_verbose" = "yes" && cat << \EOF
633 Defining ETCDIR_USER_DEFINED
635 cat >> confdefs.h <<\EOF
636 #define ETCDIR_USER_DEFINED 1
640 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
641 Defining LOCKDIR_USER_DEFINED
643 cat >> confdefs.h <<\EOF
644 #define LOCKDIR_USER_DEFINED 1
648 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
649 Defining ARCHLIBDIR_USER_DEFINED
651 cat >> confdefs.h <<\EOF
652 #define ARCHLIBDIR_USER_DEFINED 1
661 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
664 "with_scrollbars" | \
667 l | lu | luc | luci | lucid ) val=lucid ;;
668 m | mo | mot | moti | motif ) val=motif ;;
669 athena3d | athena-3d ) val=athena3d ;;
670 a | at | ath | athe | athen | athena ) val=athena ;;
671 n | no | non | none ) val=no ;;
672 * ) (echo "$progname: Usage error:"
673 echo " " "The \`--$optname' option must have one of these values:
674 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
675 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
682 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
685 * ) (echo "$progname: Usage error:"
686 echo " " "Unrecognized option: $arg"
687 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
692 *-*-*) configuration="$arg" ;;
694 *) (echo "$progname: Usage error:"
695 echo " " "Unrecognized argument: $arg"
696 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
702 test -n "$cpp" && CPP="$cpp"
703 test -n "$cppflags" && CPPFLAGS="$cppflags"
704 test -n "$libs" && LIBS="$libs"
705 test -n "$ldflags" && LDFLAGS="$ldflags"
707 eval set x "$quoted_arguments"; shift
709 test "$extra_verbose" = "yes" && verbose=yes
711 test -n "$with_x" && with_x11="$with_x"
713 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
714 test "$with_system_malloc" = "default" && with_system_malloc=yes
719 if test "$with_cde $with_tooltalk" = "yes no"; then
720 (echo "$progname: Usage error:"
721 echo " " "--with-cde requires --with-tooltalk"
722 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
723 elif test "$with_tooltalk" = "no" ; then with_cde=no
724 elif test "$with_cde" = "yes"; then with_tooltalk=yes
731 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
732 if test -f "$dir/src/lisp.h" -a \
733 -f "$dir/lisp/version.el" ; then
738 if test -z "$srcdir" ; then
739 (echo "$progname: Usage error:"
740 echo " " "Neither the current directory nor its parent seem to
741 contain the XEmacs sources. If you do not want to build XEmacs in its
742 source tree, you should run \`$progname' in the directory in which
743 you wish to build XEmacs, using the \`--srcdir' option to say where the
744 sources may be found."
745 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
750 if test ! -f "$srcdir/src/lisp.h" -o \
751 ! -f "$srcdir/lisp/version.el" ; then
752 (echo "$progname: Usage error:"
753 echo " " "The directory specified with the \`--srcdir' option,
754 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
755 either run the \`$progname' script at the top of the XEmacs source
756 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
757 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
762 if test -z "$configuration"; then
763 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
764 if test -z "$configuration"; then
765 (echo "$progname: Usage error:"
766 echo " " "XEmacs has not been ported to this host type.
767 Try explicitly specifying the CONFIGURATION when rerunning configure."
768 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
772 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
773 echo "configure:774: checking whether ln -s works" >&5
776 if ln -s X conftestdata 2>/dev/null
779 ac_cv_prog_LN_S="ln -s"
783 LN_S="$ac_cv_prog_LN_S"
784 if test "$ac_cv_prog_LN_S" = "ln -s"; then
785 echo "$ac_t""yes" 1>&6
787 echo "$ac_t""no" 1>&6
791 for dir in lisp etc man info; do
792 if test ! -d "$dir" ; then
793 echo Making symbolic link to "$srcdir/$dir"
794 ${LN_S} "$srcdir/$dir" "$dir"
799 absolute_pwd="`pwd`";
800 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
802 else blddir="$absolute_pwd"; if test -d "/net"; then
803 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
804 blddir=`echo "$blddir" | \
805 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
812 . ) srcdir="$blddir" ;;
813 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
814 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
815 srcdir=`echo "$srcdir" | \
816 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
820 if test `pwd` != `sh -c cd $srcdir && pwd` \
821 && test -f "$srcdir/src/config.h"; then
822 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
823 echo " as a build directory right now; it has been configured in its own"
824 echo " right. To configure in another directory as well, you MUST"
825 echo " use GNU make. If you do not have GNU make, then you must"
826 echo " now do \`make distclean' in $srcdir,"
827 echo " and then run $progname again.") >&2
828 extrasub='/^VPATH[ ]*=/c\
834 vpath %.in $(srcdir)'
837 . "$srcdir/version.sh" || exit 1;
838 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
839 : "${extra_verbose=$beta}"
840 version="${emacs_major_version}.${emacs_minor_version}"
841 { test "$extra_verbose" = "yes" && cat << EOF
842 Defining EMACS_MAJOR_VERSION = $emacs_major_version
844 cat >> confdefs.h <<EOF
845 #define EMACS_MAJOR_VERSION $emacs_major_version
849 { test "$extra_verbose" = "yes" && cat << EOF
850 Defining EMACS_MINOR_VERSION = $emacs_minor_version
852 cat >> confdefs.h <<EOF
853 #define EMACS_MINOR_VERSION $emacs_minor_version
857 if test -n "$emacs_beta_version" ; then
858 if test "$beta" = "yes"; then
859 version="${version}-b${emacs_beta_version}"
860 { test "$extra_verbose" = "yes" && cat << EOF
861 Defining EMACS_BETA_VERSION = $emacs_beta_version
863 cat >> confdefs.h <<EOF
864 #define EMACS_BETA_VERSION $emacs_beta_version
869 version="${version}.${emacs_beta_version}"
870 { test "$extra_verbose" = "yes" && cat << EOF
871 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
873 cat >> confdefs.h <<EOF
874 #define EMACS_PATCH_LEVEL $emacs_beta_version
880 { test "$extra_verbose" = "yes" && cat << EOF
881 Defining XEMACS_CODENAME = "$xemacs_codename"
883 cat >> confdefs.h <<EOF
884 #define XEMACS_CODENAME "$xemacs_codename"
888 { test "$extra_verbose" = "yes" && cat << EOF
889 Defining EMACS_VERSION = "$version"
891 cat >> confdefs.h <<EOF
892 #define EMACS_VERSION "$version"
897 if test "$with_infodock" = "yes"; then
898 if test ! -f ../ID-INSTALL; then
899 echo "Cannot build InfoDock without InfoDock sources"
904 if test "$with_infodock" = "yes"; then
905 { test "$extra_verbose" = "yes" && cat << EOF
906 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
908 cat >> confdefs.h <<EOF
909 #define INFODOCK_MAJOR_VERSION $infodock_major_version
913 { test "$extra_verbose" = "yes" && cat << EOF
914 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
916 cat >> confdefs.h <<EOF
917 #define INFODOCK_MINOR_VERSION $infodock_minor_version
921 { test "$extra_verbose" = "yes" && cat << EOF
922 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
924 cat >> confdefs.h <<EOF
925 #define INFODOCK_BUILD_VERSION $infodock_build_version
929 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
931 CPPFLAGS="$CPPFLAGS -DINFODOCK"
936 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
937 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
938 Defining ERROR_CHECK_EXTENTS
940 cat >> confdefs.h <<\EOF
941 #define ERROR_CHECK_EXTENTS 1
945 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
946 Defining ERROR_CHECK_TYPECHECK
948 cat >> confdefs.h <<\EOF
949 #define ERROR_CHECK_TYPECHECK 1
953 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
954 Defining ERROR_CHECK_BUFPOS
956 cat >> confdefs.h <<\EOF
957 #define ERROR_CHECK_BUFPOS 1
961 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
962 Defining ERROR_CHECK_GC
964 cat >> confdefs.h <<\EOF
965 #define ERROR_CHECK_GC 1
969 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
970 Defining ERROR_CHECK_MALLOC
972 cat >> confdefs.h <<\EOF
973 #define ERROR_CHECK_MALLOC 1
977 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
978 Defining ERROR_CHECK_BYTE_CODE
980 cat >> confdefs.h <<\EOF
981 #define ERROR_CHECK_BYTE_CODE 1
985 if test "${debug:=$beta}" = "yes"; then
986 use_assertions=yes memory_usage_stats=yes
987 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
988 echo " xemacs will be linked with \"debug.o\""
990 { test "$extra_verbose" = "yes" && cat << \EOF
991 Defining DEBUG_XEMACS
993 cat >> confdefs.h <<\EOF
994 #define DEBUG_XEMACS 1
999 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1000 Defining USE_ASSERTIONS
1002 cat >> confdefs.h <<\EOF
1003 #define USE_ASSERTIONS 1
1007 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1008 Defining MEMORY_USAGE_STATS
1010 cat >> confdefs.h <<\EOF
1011 #define MEMORY_USAGE_STATS 1
1017 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1018 echo "configure:1019: checking "host system type"" >&5
1019 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1020 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1021 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1022 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1023 echo "$ac_t""$configuration" 1>&6
1031 case "$canonical" in
1032 sparc-*-* ) machine=sparc ;;
1033 alpha*-*-* ) machine=alpha ;;
1034 vax-*-* ) machine=vax ;;
1035 mips-dec-* ) machine=pmax ;;
1036 mips-sgi-* ) machine=iris4d ;;
1037 romp-ibm-* ) machine=ibmrt ;;
1038 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1039 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1040 powerpc*-* ) machine=powerpc ;;
1041 hppa-*-* ) machine=hp800 ;;
1042 m88k-dg-* ) machine=aviion ;;
1043 m68*-sony-* ) machine=news ;;
1044 mips-sony-* ) machine=news-risc ;;
1045 clipper-* ) machine=clipper ;;
1046 arm-* ) machine=arm ;;
1047 ns32k-* ) machine=ns32000 ;;
1050 case "$canonical" in
1051 *-*-linux* ) opsys=linux ;;
1052 *-*-netbsd* ) opsys=netbsd ;;
1053 *-*-openbsd* ) opsys=openbsd ;;
1054 *-*-nextstep* ) opsys=nextstep ;;
1055 *-*-vms ) opsys=vms ;;
1057 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1058 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1059 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1060 *-dec-osf3* ) opsys=decosf3-1 ;;
1061 *-dec-osf4* ) opsys=decosf4-0 ;;
1063 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1064 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1065 *-*-ultrix* ) opsys=ultrix4-3 ;;
1067 *-*-aix3.1* ) opsys=aix3-1 ;;
1068 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1069 *-*-aix3* ) opsys=aix3-2 ;;
1070 *-*-aix4.0* ) opsys=aix4 ;;
1071 *-*-aix4.1* ) opsys=aix4-1 ;;
1072 *-*-aix4* ) opsys=aix4-2 ;;
1074 *-gnu* ) opsys=gnu ;;
1075 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1076 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1077 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1078 *-*-aos4.2 ) opsys=bsd4-2 ;;
1079 *-*-aos* ) opsys=bsd4-3 ;;
1080 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1081 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1082 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1083 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1084 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1085 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1086 if test -z "$NON_GNU_CPP" ; then
1087 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1088 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1092 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1093 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1096 case "$canonical" in
1099 case "$canonical" in
1100 i[3-9]86-*-netbsd*) machine=intel386 ;;
1101 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1102 machine=hp9000s300 ;;
1103 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1104 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1109 case "${canonical}" in
1110 i386-*-openbsd*) machine=intel386 ;;
1111 m68k-*-openbsd*) machine=hp9000s300 ;;
1112 mipsel-*-openbsd*) machine=pmax ;;
1116 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1117 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1119 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1120 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1122 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1124 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1126 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1128 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1130 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1132 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1133 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1134 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1137 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1139 *-convex-bsd* | *-convex-convexos* )
1140 machine=convex opsys=bsd4-3
1141 NON_GNU_CPP="cc -E -P"
1144 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1146 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1147 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1148 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1149 m88k-dg-dgux* ) opsys=dgux ;;
1151 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1152 m88k-motorola-sysv4* )
1153 machine=delta88k opsys=usg5-4-2
1155 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1157 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1158 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1160 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1162 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1163 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1164 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1167 case "`uname -r`" in
1168 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1169 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1171 NON_GNU_CPP="/lib/cpp"
1173 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1174 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1176 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1178 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1181 case "$canonical" in
1182 m68* ) machine=hp9000s300 ;;
1183 hppa* ) machine=hp800 ;;
1186 case "$canonical" in
1187 *-hp-hpux7* ) opsys=hpux ;;
1188 *-hp-hpux8* ) opsys=hpux8 ;;
1189 *-hp-hpux9* ) opsys=hpux9 ;;
1190 *-hp-hpux10* ) opsys=hpux10 ;;
1191 *-hp-hpux11* ) opsys=hpux11 ;;
1195 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1196 echo " xemacs will be linked with \"strcat.o\""
1199 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1200 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1201 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1203 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1206 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1207 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1209 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1210 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1211 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1212 romp-ibm-aos* ) opsys=bsd4-3 ;;
1213 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1214 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1216 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1217 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1219 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1221 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1223 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1225 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1227 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1229 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1231 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1233 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1235 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1237 mips-mips-usg* ) machine=mips4 ;;
1240 NON_GNU_CC="cc -systype bsd43"
1241 NON_GNU_CPP="cc -systype bsd43 -E"
1242 case "$canonical" in
1243 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1244 mips-mips-riscos5* ) opsys=riscos5 ;;
1247 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1248 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1250 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1252 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1254 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1255 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1257 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1259 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1261 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1263 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1265 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1266 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1268 mips-siemens-sysv* | mips-sni-sysv*)
1269 machine=mips-siemens opsys=usg5-4
1270 NON_GNU_CC=/usr/ccs/bin/cc
1271 NON_GNU_CPP=/usr/ccs/lib/cpp
1276 NON_GNU_CC=/usr/ccs/bin/cc
1277 NON_GNU_CPP=/usr/ccs/lib/cpp
1280 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1281 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1282 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1283 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1284 mips-sgi-irix6* ) opsys=irix6-0 ;;
1285 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1286 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1287 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1288 mips-sgi-irix* ) opsys=irix5-0 ;;
1290 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1291 *-sony-news* ) opsys=newsos5 ;;
1293 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1295 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1296 case "$canonical" in
1297 m68*-sunos1* ) machine=sun1 ;;
1298 m68*-sunos2* ) machine=sun2 ;;
1299 m68* ) machine=sun3 ;;
1300 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1301 i*86-*-* ) machine=intel386 ;;
1302 rs6000* ) machine=rs6000 ;;
1305 case "$canonical" in *-sunos5*)
1306 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1309 case "$canonical" in
1311 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1314 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1318 case "$canonical" in
1321 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1322 { test "$extra_verbose" = "yes" && cat << EOF
1323 Defining OS_RELEASE = $os_release
1325 cat >> confdefs.h <<EOF
1326 #define OS_RELEASE $os_release
1331 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1332 *-sunos4.0* ) opsys=sunos4-0 ;;
1333 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1334 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1335 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1336 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1337 *-mach* ) opsys=mach-bsd4-3 ;;
1341 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1343 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1346 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1348 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1349 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1351 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1353 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1355 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1356 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1358 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1360 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1363 case "$canonical" in
1364 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1365 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1366 *-mach* ) opsys=mach-bsd4-3 ;;
1370 ns16k-whitechapel-* ) machine=mg1 ;;
1372 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1376 case "$canonical" in
1377 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1378 *-isc2.2* ) opsys=isc2-2 ;;
1379 *-isc4.0* ) opsys=isc4-0 ;;
1380 *-isc4.* ) opsys=isc4-1
1381 GCC_TEST_OPTIONS=-posix
1382 NON_GCC_TEST_OPTIONS=-Xp
1384 *-isc* ) opsys=isc3-0 ;;
1385 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1386 *-esix* ) opsys=esix ;;
1387 *-mach* ) opsys=mach-bsd4-3 ;;
1388 *-xenix* ) opsys=xenix ;;
1389 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1390 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1391 *-bsdi4* ) opsys=bsdos4 ;;
1392 *-bsdi3* ) opsys=bsdos3 ;;
1393 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1394 *-bsdi2* ) opsys=bsdos2 ;;
1395 *-sco3.2v5* ) opsys=sco5 ;
1396 if test "$dynamic" = "yes" ; then
1397 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1399 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1401 *-386bsd* ) opsys=386bsd ;;
1402 *-freebsd* ) opsys=freebsd ;;
1403 *-nextstep* ) opsys=nextstep ;;
1404 *-pc-cygwin* ) opsys=cygwin32 ;;
1405 *-pc-mingw* ) opsys=mingw32 ;
1406 test -z "$with_tty" && with_tty="no";;
1410 m68k-*-linux* ) machine=m68k opsys=linux ;;
1414 if test -z "$machine" -o -z "$opsys"; then
1415 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1416 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1421 if test -z "$dynamic"; then
1423 hpux* | sunos4* ) dynamic=no ;;
1427 if test "$dynamic" = "yes"; then
1429 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1430 decosf* ) ld_call_shared="-call_shared" ;;
1432 else case "$opsys" in
1434 echo "Static linking is not supported on Solaris 2."
1435 echo "Rerun configure without specifying --dynamic=no."
1437 linux ) ld_call_shared="-Bstatic" ;;
1438 decosf* ) ld_call_shared="-non_shared" ;;
1442 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1444 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1445 { test "$extra_verbose" = "yes" && cat << EOF
1446 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1448 cat >> confdefs.h <<EOF
1449 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1454 machfile="m/${machine}.h"
1455 opsysfile="s/${opsys}.h"
1458 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1459 if test "$with_workshop $with_tooltalk" = "yes no"; then
1460 (echo "$progname: Usage error:"
1461 echo " " "--with-workshop requires --with-tooltalk"
1462 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1463 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1464 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1467 if test "$with_workshop" = "yes"; then
1468 { test "$extra_verbose" = "yes" && cat << \EOF
1471 cat >> confdefs.h <<\EOF
1476 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1477 echo " xemacs will be linked with \"sunpro.o\""
1481 if test "$with_clash_detection" = "yes"; then
1482 { test "$extra_verbose" = "yes" && cat << \EOF
1483 Defining CLASH_DETECTION
1485 cat >> confdefs.h <<\EOF
1486 #define CLASH_DETECTION 1
1490 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1491 echo " xemacs will be linked with \"filelock.o\""
1495 test -n "$compiler" && CC="$compiler"
1496 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1499 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1500 if test "${CFLAGS-unset}" != unset
1501 then cflags_specified=yes;
1502 else cflags_specified=no;
1505 xe_save_CFLAGS="$CFLAGS"
1507 # Extract the first word of "gcc", so it can be a program name with args.
1508 set dummy gcc; ac_word=$2
1509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1510 echo "configure:1511: checking for $ac_word" >&5
1512 if test -n "$CC"; then
1513 ac_cv_prog_CC="$CC" # Let the user override the test.
1515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1517 for ac_dir in $ac_dummy; do
1518 test -z "$ac_dir" && ac_dir=.
1519 if test -f $ac_dir/$ac_word; then
1527 if test -n "$CC"; then
1528 echo "$ac_t""$CC" 1>&6
1530 echo "$ac_t""no" 1>&6
1533 if test -z "$CC"; then
1534 # Extract the first word of "cc", so it can be a program name with args.
1535 set dummy cc; ac_word=$2
1536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1537 echo "configure:1538: checking for $ac_word" >&5
1539 if test -n "$CC"; then
1540 ac_cv_prog_CC="$CC" # Let the user override the test.
1542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1545 for ac_dir in $ac_dummy; do
1546 test -z "$ac_dir" && ac_dir=.
1547 if test -f $ac_dir/$ac_word; then
1548 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1549 ac_prog_rejected=yes
1557 if test $ac_prog_rejected = yes; then
1558 # We found a bogon in the path, so make sure we never use it.
1559 set dummy $ac_cv_prog_CC
1561 if test $# -gt 0; then
1562 # We chose a different compiler from the bogus one.
1563 # However, it has the same basename, so the bogon will be chosen
1564 # first if we set CC to just the basename; use the full file name.
1566 set dummy "$ac_dir/$ac_word" "$@"
1573 if test -n "$CC"; then
1574 echo "$ac_t""$CC" 1>&6
1576 echo "$ac_t""no" 1>&6
1579 if test -z "$CC"; then
1580 case "`uname -s`" in
1582 # Extract the first word of "cl", so it can be a program name with args.
1583 set dummy cl; ac_word=$2
1584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1585 echo "configure:1586: checking for $ac_word" >&5
1587 if test -n "$CC"; then
1588 ac_cv_prog_CC="$CC" # Let the user override the test.
1590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1592 for ac_dir in $ac_dummy; do
1593 test -z "$ac_dir" && ac_dir=.
1594 if test -f $ac_dir/$ac_word; then
1602 if test -n "$CC"; then
1603 echo "$ac_t""$CC" 1>&6
1605 echo "$ac_t""no" 1>&6
1610 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1613 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1614 echo "configure:1615: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1617 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1618 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1619 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1620 ac_cpp='$CPP '"$xe_cppflags"
1621 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1622 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1625 cat > conftest.$ac_ext << EOF
1627 #line 1628 "configure"
1628 #include "confdefs.h"
1632 if { (eval echo configure:1633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1633 ac_cv_prog_cc_works=yes
1634 # If we can't run a trivial program, we are probably using a cross compiler.
1635 if (./conftest; exit) 2>/dev/null; then
1636 ac_cv_prog_cc_cross=no
1638 ac_cv_prog_cc_cross=yes
1641 echo "configure: failed program was:" >&5
1642 cat conftest.$ac_ext >&5
1643 ac_cv_prog_cc_works=no
1647 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1648 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1649 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1650 ac_cpp='$CPP '"$xe_cppflags"
1651 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1652 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1655 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1656 if test $ac_cv_prog_cc_works = no; then
1657 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1659 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1660 echo "configure:1661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1661 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1662 cross_compiling=$ac_cv_prog_cc_cross
1664 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1665 echo "configure:1666: checking whether we are using GNU C" >&5
1667 cat > conftest.c <<EOF
1672 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1678 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1680 if test $ac_cv_prog_gcc = yes; then
1686 ac_test_CFLAGS="${CFLAGS+set}"
1687 ac_save_CFLAGS="$CFLAGS"
1689 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1690 echo "configure:1691: checking whether ${CC-cc} accepts -g" >&5
1692 echo 'void f(){}' > conftest.c
1693 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1701 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1702 if test "$ac_test_CFLAGS" = set; then
1703 CFLAGS="$ac_save_CFLAGS"
1704 elif test $ac_cv_prog_cc_g = yes; then
1705 if test "$GCC" = yes; then
1711 if test "$GCC" = yes; then
1718 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1720 # Extract the first word of "gcc", so it can be a program name with args.
1721 set dummy gcc; ac_word=$2
1722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1723 echo "configure:1724: checking for $ac_word" >&5
1725 if test -n "$CC"; then
1726 ac_cv_prog_CC="$CC" # Let the user override the test.
1728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1730 for ac_dir in $ac_dummy; do
1731 test -z "$ac_dir" && ac_dir=.
1732 if test -f $ac_dir/$ac_word; then
1740 if test -n "$CC"; then
1741 echo "$ac_t""$CC" 1>&6
1743 echo "$ac_t""no" 1>&6
1746 if test -z "$CC"; then
1747 # Extract the first word of "cc", so it can be a program name with args.
1748 set dummy cc; ac_word=$2
1749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1750 echo "configure:1751: checking for $ac_word" >&5
1752 if test -n "$CC"; then
1753 ac_cv_prog_CC="$CC" # Let the user override the test.
1755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1758 for ac_dir in $ac_dummy; do
1759 test -z "$ac_dir" && ac_dir=.
1760 if test -f $ac_dir/$ac_word; then
1761 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1762 ac_prog_rejected=yes
1770 if test $ac_prog_rejected = yes; then
1771 # We found a bogon in the path, so make sure we never use it.
1772 set dummy $ac_cv_prog_CC
1774 if test $# -gt 0; then
1775 # We chose a different compiler from the bogus one.
1776 # However, it has the same basename, so the bogon will be chosen
1777 # first if we set CC to just the basename; use the full file name.
1779 set dummy "$ac_dir/$ac_word" "$@"
1786 if test -n "$CC"; then
1787 echo "$ac_t""$CC" 1>&6
1789 echo "$ac_t""no" 1>&6
1792 if test -z "$CC"; then
1793 case "`uname -s`" in
1795 # Extract the first word of "cl", so it can be a program name with args.
1796 set dummy cl; ac_word=$2
1797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1798 echo "configure:1799: checking for $ac_word" >&5
1800 if test -n "$CC"; then
1801 ac_cv_prog_CC="$CC" # Let the user override the test.
1803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1805 for ac_dir in $ac_dummy; do
1806 test -z "$ac_dir" && ac_dir=.
1807 if test -f $ac_dir/$ac_word; then
1815 if test -n "$CC"; then
1816 echo "$ac_t""$CC" 1>&6
1818 echo "$ac_t""no" 1>&6
1823 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1826 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1827 echo "configure:1828: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1830 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1831 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1832 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1833 ac_cpp='$CPP '"$xe_cppflags"
1834 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1835 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1838 cat > conftest.$ac_ext << EOF
1840 #line 1841 "configure"
1841 #include "confdefs.h"
1845 if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1846 ac_cv_prog_cc_works=yes
1847 # If we can't run a trivial program, we are probably using a cross compiler.
1848 if (./conftest; exit) 2>/dev/null; then
1849 ac_cv_prog_cc_cross=no
1851 ac_cv_prog_cc_cross=yes
1854 echo "configure: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1856 ac_cv_prog_cc_works=no
1860 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1861 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1862 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1863 ac_cpp='$CPP '"$xe_cppflags"
1864 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1865 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1868 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1869 if test $ac_cv_prog_cc_works = no; then
1870 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1872 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1873 echo "configure:1874: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1874 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1875 cross_compiling=$ac_cv_prog_cc_cross
1877 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1878 echo "configure:1879: checking whether we are using GNU C" >&5
1880 cat > conftest.c <<EOF
1885 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1891 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1893 if test $ac_cv_prog_gcc = yes; then
1899 ac_test_CFLAGS="${CFLAGS+set}"
1900 ac_save_CFLAGS="$CFLAGS"
1902 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1903 echo "configure:1904: checking whether ${CC-cc} accepts -g" >&5
1905 echo 'void f(){}' > conftest.c
1906 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1914 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1915 if test "$ac_test_CFLAGS" = set; then
1916 CFLAGS="$ac_save_CFLAGS"
1917 elif test $ac_cv_prog_cc_g = yes; then
1918 if test "$GCC" = yes; then
1924 if test "$GCC" = yes; then
1931 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1933 # Extract the first word of "gcc", so it can be a program name with args.
1934 set dummy gcc; ac_word=$2
1935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1936 echo "configure:1937: checking for $ac_word" >&5
1938 if test -n "$CC"; then
1939 ac_cv_prog_CC="$CC" # Let the user override the test.
1941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1943 for ac_dir in $ac_dummy; do
1944 test -z "$ac_dir" && ac_dir=.
1945 if test -f $ac_dir/$ac_word; then
1953 if test -n "$CC"; then
1954 echo "$ac_t""$CC" 1>&6
1956 echo "$ac_t""no" 1>&6
1959 if test -z "$CC"; then
1960 # Extract the first word of "cc", so it can be a program name with args.
1961 set dummy cc; ac_word=$2
1962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1963 echo "configure:1964: checking for $ac_word" >&5
1965 if test -n "$CC"; then
1966 ac_cv_prog_CC="$CC" # Let the user override the test.
1968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1971 for ac_dir in $ac_dummy; do
1972 test -z "$ac_dir" && ac_dir=.
1973 if test -f $ac_dir/$ac_word; then
1974 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1975 ac_prog_rejected=yes
1983 if test $ac_prog_rejected = yes; then
1984 # We found a bogon in the path, so make sure we never use it.
1985 set dummy $ac_cv_prog_CC
1987 if test $# -gt 0; then
1988 # We chose a different compiler from the bogus one.
1989 # However, it has the same basename, so the bogon will be chosen
1990 # first if we set CC to just the basename; use the full file name.
1992 set dummy "$ac_dir/$ac_word" "$@"
1999 if test -n "$CC"; then
2000 echo "$ac_t""$CC" 1>&6
2002 echo "$ac_t""no" 1>&6
2005 if test -z "$CC"; then
2006 case "`uname -s`" in
2008 # Extract the first word of "cl", so it can be a program name with args.
2009 set dummy cl; ac_word=$2
2010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2011 echo "configure:2012: checking for $ac_word" >&5
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2018 for ac_dir in $ac_dummy; do
2019 test -z "$ac_dir" && ac_dir=.
2020 if test -f $ac_dir/$ac_word; then
2028 if test -n "$CC"; then
2029 echo "$ac_t""$CC" 1>&6
2031 echo "$ac_t""no" 1>&6
2036 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2039 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2040 echo "configure:2041: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2043 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2044 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2045 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2046 ac_cpp='$CPP '"$xe_cppflags"
2047 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2048 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2051 cat > conftest.$ac_ext << EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2058 if { (eval echo configure:2059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2059 ac_cv_prog_cc_works=yes
2060 # If we can't run a trivial program, we are probably using a cross compiler.
2061 if (./conftest; exit) 2>/dev/null; then
2062 ac_cv_prog_cc_cross=no
2064 ac_cv_prog_cc_cross=yes
2067 echo "configure: failed program was:" >&5
2068 cat conftest.$ac_ext >&5
2069 ac_cv_prog_cc_works=no
2073 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2074 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2075 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2076 ac_cpp='$CPP '"$xe_cppflags"
2077 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2078 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2081 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2082 if test $ac_cv_prog_cc_works = no; then
2083 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2085 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2086 echo "configure:2087: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2087 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2088 cross_compiling=$ac_cv_prog_cc_cross
2090 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2091 echo "configure:2092: checking whether we are using GNU C" >&5
2093 cat > conftest.c <<EOF
2098 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2104 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2106 if test $ac_cv_prog_gcc = yes; then
2112 ac_test_CFLAGS="${CFLAGS+set}"
2113 ac_save_CFLAGS="$CFLAGS"
2115 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2116 echo "configure:2117: checking whether ${CC-cc} accepts -g" >&5
2118 echo 'void f(){}' > conftest.c
2119 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2127 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2128 if test "$ac_test_CFLAGS" = set; then
2129 CFLAGS="$ac_save_CFLAGS"
2130 elif test $ac_cv_prog_cc_g = yes; then
2131 if test "$GCC" = yes; then
2137 if test "$GCC" = yes; then
2145 CFLAGS="$xe_save_CFLAGS"
2148 test -n "$CPP" -a -d "$CPP" && CPP=
2150 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2152 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2153 echo "configure:2154: checking how to run the C preprocessor" >&5
2154 # On Suns, sometimes $CPP names a directory.
2155 if test -n "$CPP" && test -d "$CPP"; then
2158 if test -z "$CPP"; then
2160 # This must be in double quotes, not single quotes, because CPP may get
2161 # substituted into the Makefile and "${CC-cc}" will confuse make.
2163 # On the NeXT, cc -E runs the code through the compiler's parser,
2164 # not just through cpp.
2165 cat > conftest.$ac_ext <<EOF
2166 #line 2167 "configure"
2167 #include "confdefs.h"
2171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2172 { (eval echo configure:2173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2174 if test -z "$ac_err"; then
2178 echo "configure: failed program was:" >&5
2179 cat conftest.$ac_ext >&5
2181 CPP="${CC-cc} -E -traditional-cpp"
2182 cat > conftest.$ac_ext <<EOF
2183 #line 2184 "configure"
2184 #include "confdefs.h"
2188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2189 { (eval echo configure:2190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2191 if test -z "$ac_err"; then
2195 echo "configure: failed program was:" >&5
2196 cat conftest.$ac_ext >&5
2198 CPP="${CC-cc} -nologo -E"
2199 cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2206 { (eval echo configure:2207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2208 if test -z "$ac_err"; then
2212 echo "configure: failed program was:" >&5
2213 cat conftest.$ac_ext >&5
2222 ac_cv_prog_CPP="$CPP"
2223 CPP="$ac_cv_prog_CPP"
2225 ac_cv_prog_CPP="$CPP"
2227 echo "$ac_t""$CPP" 1>&6
2230 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2231 echo "configure:2232: checking for AIX" >&5
2232 cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2241 egrep "yes" >/dev/null 2>&1; then
2243 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2244 Defining _ALL_SOURCE
2246 cat >> confdefs.h <<\EOF
2247 #define _ALL_SOURCE 1
2253 echo "$ac_t""no" 1>&6
2259 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2260 echo "configure:2261: checking for GNU libc" >&5
2261 cat > conftest.$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2264 #include <features.h>
2267 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2268 #error Not a GNU libc system :-(
2269 ******* ======= ******** &&&&&&&&
2274 if { (eval echo configure:2275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2278 echo "configure: failed program was:" >&5
2279 cat conftest.$ac_ext >&5
2284 echo "$ac_t""$have_glibc" 1>&6
2285 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2286 Defining _GNU_SOURCE
2288 cat >> confdefs.h <<\EOF
2289 #define _GNU_SOURCE 1
2295 cat > conftest.$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2299 #if defined __SUNPRO_C
2301 #elif defined __DECC
2308 if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2313 echo "configure: failed program was:" >&5
2314 cat conftest.$ac_ext >&5
2316 case "$conftest_rc" in
2317 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2318 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2326 echo "Extracting information from the machine- and system-dependent headers..."
2328 tempcname="conftest.c"
2332 cat > $tempcname <<EOF
2334 #define C_SWITCH_SITE
2335 #define C_SWITCH_X_SITE
2336 #define LD_SWITCH_SITE
2337 #define LD_SWITCH_X_SITE
2338 #define LD_SWITCH_X_SITE_AUX
2339 #define OS_RELEASE $os_release
2340 #include "$srcdir/src/$opsysfile"
2341 #include "$srcdir/src/$machfile"
2343 #ifndef LIBS_MACHINE
2344 #define LIBS_MACHINE
2346 configure___ libs_machine=LIBS_MACHINE
2351 configure___ libs_system=LIBS_SYSTEM
2353 #ifndef LIBS_TERMCAP
2354 #define LIBS_TERMCAP
2356 configure___ libs_termcap=LIBS_TERMCAP
2358 #ifndef LIB_STANDARD
2359 #define LIB_STANDARD
2361 configure___ libs_standard=LIB_STANDARD
2364 #ifndef OBJECTS_MACHINE
2365 #define OBJECTS_MACHINE
2367 configure___ objects_machine=OBJECTS_MACHINE
2369 #ifndef OBJECTS_SYSTEM
2370 #define OBJECTS_SYSTEM
2372 configure___ objects_system=OBJECTS_SYSTEM
2375 #ifndef C_SWITCH_MACHINE
2376 #define C_SWITCH_MACHINE
2378 configure___ c_switch_machine=C_SWITCH_MACHINE
2380 #ifndef C_SWITCH_SYSTEM
2381 #define C_SWITCH_SYSTEM
2383 configure___ c_switch_system=C_SWITCH_SYSTEM
2386 #ifndef LD_SWITCH_MACHINE
2387 #define LD_SWITCH_MACHINE
2389 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2391 #ifndef LD_SWITCH_SYSTEM
2392 #define LD_SWITCH_SYSTEM
2394 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2398 #define UNEXEC "unexec.o"
2400 configure___ unexec=UNEXEC
2403 #ifndef LD_SWITCH_SHARED
2404 #define LD_SWITCH_SHARED "-c"
2406 configure___ ld_switch_shared=LD_SWITCH_SHARED
2409 #ifdef ORDINARY_LINK
2410 #define LD "\$(CC) \$(CFLAGS)"
2411 #else /* no ORDINARY LINK */
2412 #ifdef COFF_ENCAPSULATE
2413 #define LD "\$(CC) -nostdlib"
2414 #else /* not COFF_ENCAPSULATE */
2417 #else /* ! defined (LINKER) */
2419 #endif /* ! defined (LINKER) */
2420 #endif /* ! defined (COFF_ENCAPSULATE) */
2421 #endif /* not ORDINARY_LINK */
2427 configure___ lib_gcc=LIB_GCC
2429 #ifndef LD_TEXT_START_ADDR
2430 #define LD_TEXT_START_ADDR
2432 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2435 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2437 #ifdef COFF_ENCAPSULATE
2438 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2439 #else /* ! defined (COFF_ENCAPSULATE) */
2440 #define START_FILES "pre-crt0.o /lib/crt0.o"
2441 #endif /* ! defined (COFF_ENCAPSULATE) */
2442 #else /* ! defined (NO_REMAP) */
2443 #define START_FILES "ecrt0.o"
2444 #endif /* ! defined (NO_REMAP) */
2445 #endif /* no ORDINARY_LINK */
2449 configure___ start_files=START_FILES
2451 #ifdef ORDINARY_LINK
2452 configure___ ordinary_link=yes
2454 configure___ ordinary_link=no
2457 #ifdef SYSTEM_MALLOC
2458 configure___ system_malloc=yes
2460 configure___ system_malloc=no
2464 configure___ have_terminfo=yes
2466 configure___ have_terminfo=no
2469 #ifdef MAIL_USE_FLOCK
2470 configure___ mail_use_flock=yes
2472 configure___ mail_use_flock=no
2475 #ifdef MAIL_USE_LOCKF
2476 configure___ mail_use_lockf=yes
2478 configure___ mail_use_lockf=no
2481 #ifdef HAVE_WIN32_PROCESSES
2482 configure___ win32_processes=yes
2484 configure___ win32_processes=no
2489 CPP=`eval "echo $CPP $CPPFLAGS"`
2490 eval `$CPP -Isrc $tempcname \
2491 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2495 test "$extra_verbose" = "yes" && \
2496 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 ""
2498 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2500 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2502 if test "$cflags_specified" = "no"; then
2503 if test "$GCC" = "yes"; then
2504 CFLAGS="-g -O3 -Wall -Wno-switch"
2505 elif test "$__SUNPRO_C" = "yes"; then
2507 sol2 ) CFLAGS="-v -xO4" ;;
2508 sunos4* ) CFLAGS="-xO2";;
2510 elif test "$__DECC" = "yes"; then
2512 elif test "$CC" = "xlc"; then
2513 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2519 if test "$GCC" = "yes"; then
2520 set x $ld_switch_system; shift; ld_switch_system=""
2521 while test -n "$1"; do
2523 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2524 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2526 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2532 if test "$GCC" = "yes"; then
2533 set x $ld_switch_machine; shift; ld_switch_machine=""
2534 while test -n "$1"; do
2536 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2537 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2539 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2545 if test "$GCC" = "yes"; then
2546 set x $LDFLAGS; shift; LDFLAGS=""
2547 while test -n "$1"; do
2549 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2550 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2552 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2558 if test "$GCC" = "yes"; then
2559 set x $ld_call_shared; shift; ld_call_shared=""
2560 while test -n "$1"; do
2562 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2563 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2565 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2571 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2572 echo " xemacs will be linked with \"$objects_machine\""
2574 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2575 echo " xemacs will be linked with \"$objects_system\""
2577 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2578 echo " xemacs will be linked with \"$unexec\""
2581 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2582 echo "configure:2583: checking for dynodump" >&5
2583 if test "$unexec" != "unexsol2.o"; then
2584 echo "$ac_t""no" 1>&6
2586 echo "$ac_t""yes" 1>&6
2587 { test "$extra_verbose" = "yes" && cat << \EOF
2590 cat >> confdefs.h <<\EOF
2595 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2596 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2598 sparc ) dynodump_arch=sparc ;;
2599 *86* ) dynodump_arch=i386 ;;
2600 powerpc ) dynodump_arch=ppc ;;
2602 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
2606 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2608 if test "$unexec" = "unexaix.o"; then
2609 if test "$dynamic" = "no"; then
2610 start_flags="-Wl,-bnso,-bnodelcsect"
2611 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2612 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2613 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2615 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2616 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2619 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2620 echo "configure:2621: checking for terminateAndUnload in -lC" >&5
2621 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2623 xe_check_libs=" -lC "
2624 cat > conftest.$ac_ext <<EOF
2625 #line 2626 "configure"
2626 #include "confdefs.h"
2627 /* Override any gcc2 internal prototype to avoid an error. */
2628 /* We use char because int might match the return type of a gcc2
2629 builtin and then its argument prototype would still apply. */
2630 char terminateAndUnload();
2633 terminateAndUnload()
2636 if { (eval echo configure:2637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2638 eval "ac_cv_lib_$ac_lib_var=yes"
2640 echo "configure: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2643 eval "ac_cv_lib_$ac_lib_var=no"
2648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2649 echo "$ac_t""yes" 1>&6
2650 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2652 echo "$ac_t""no" 1>&6
2657 elif test -n "$ld_text_start_addr"; then
2658 start_flags="-T $ld_text_start_addr -e __start"
2664 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2665 test -z "$linker" && linker='$(CC) -nostdlib'
2666 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2668 test "$GCC" != "yes" && lib_gcc=
2674 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2675 if test -n "$site_libraries"; then
2676 for arg in $site_libraries; do
2679 * ) test -d "$arg" || \
2680 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2683 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2687 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2688 if test -n "$site_includes"; then
2689 for arg in $site_includes; do
2692 * ) test -d "$arg" || \
2693 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2696 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2700 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2701 if test -n "$site_prefixes"; then
2702 for dir in $site_prefixes; do
2703 lib_dir="${dir}/lib"
2704 inc_dir="${dir}/include"
2705 if test ! -d "$dir"; then
2706 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2707 elif test ! -d "$lib_dir"; then
2708 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2710 if test -d "$inc_dir"; then
2711 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
2713 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
2719 for dir in "/usr/ccs/lib"; do
2720 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
2723 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2724 if test -n "$site_runtime_libraries"; then
2725 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2730 if test "$dynamic" = "no"; then add_runtime_path=no
2731 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2732 else case "$opsys" in
2733 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2734 * ) add_runtime_path=no ;;
2738 if test "$add_runtime_path" = "yes"; then
2739 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2740 echo "configure:2741: checking "for runtime libraries flag"" >&5
2742 sol2 ) dash_r="-R" ;;
2743 decosf* | linux* | irix*) dash_r="-rpath " ;;
2746 for try_dash_r in "-R" "-R " "-rpath "; do
2747 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2749 if test "$GCC" = "yes"; then
2750 set x $xe_check_libs; shift; xe_check_libs=""
2751 while test -n "$1"; do
2753 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2754 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2756 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2761 cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2769 if { (eval echo configure:2770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2771 dash_r="$try_dash_r"
2773 echo "configure: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2778 test -n "$dash_r" && break
2781 if test -n "$dash_r";
2782 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2783 else echo "$ac_t""NONE" 1>&6
2787 xe_add_unique_runpath_dir='
2789 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2791 if test "$xe_add_p" = "yes"; then
2792 test -n "$runpath" && runpath="${runpath}:"
2793 runpath="${runpath}${xe_runpath_dir}"
2794 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2800 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2801 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2802 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2804 runpath="" runpath_dirs=""
2805 if test -n "$LD_RUN_PATH"; then
2806 runpath="$LD_RUN_PATH"
2807 elif test "$GCC" = "yes"; then
2808 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2809 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2810 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2811 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2812 case "$arg" in P,* | -L* | -R* )
2813 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2815 xe_runpath_dir="$dir"
2816 test "$xe_runpath_dir" != "/lib" -a \
2817 "$xe_runpath_dir" != "/usr/lib" -a \
2818 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2819 eval "$xe_add_unique_runpath_dir"
2824 ld_switch_run="$ld_switch_run_save"
2827 for arg in $ld_switch_site $ld_switch_x_site; do
2828 case "$arg" in -L*) {
2829 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2830 test "$xe_runpath_dir" != "/lib" -a \
2831 "$xe_runpath_dir" != "/usr/lib" -a \
2832 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2833 eval "$xe_add_unique_runpath_dir"
2836 if test "$opsys $need_motif" = "sol2 yes"; then
2837 xe_runpath_dir="/opt/SUNWdt/lib";
2838 eval "$xe_add_unique_runpath_dir";
2841 if test -n "$runpath"; then
2842 ld_switch_run="${dash_r}${runpath}"
2844 if test "$GCC" = "yes"; then
2845 set x $ld_switch_run; shift; ld_switch_run=""
2846 while test -n "$1"; do
2848 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2849 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2851 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2856 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2864 if test "$with_dlmalloc" != "no"; then
2869 after_morecore_hook_exists=yes
2870 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2871 echo "configure:2872: checking for malloc_get_state" >&5
2873 cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2876 /* System header to define __stub macros and hopefully few prototypes,
2877 which can conflict with char malloc_get_state(); below. */
2879 /* Override any gcc2 internal prototype to avoid an error. */
2880 /* We use char because int might match the return type of a gcc2
2881 builtin and then its argument prototype would still apply. */
2882 char malloc_get_state();
2886 /* The GNU C library defines this for functions which it implements
2887 to always fail with ENOSYS. Some functions are actually named
2888 something starting with __ and the normal name is an alias. */
2889 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2897 if { (eval echo configure:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2899 eval "ac_cv_func_malloc_get_state=yes"
2901 echo "configure: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2904 eval "ac_cv_func_malloc_get_state=no"
2908 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2909 echo "$ac_t""yes" 1>&6
2912 echo "$ac_t""no" 1>&6
2916 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2917 echo "configure:2918: checking for malloc_set_state" >&5
2919 cat > conftest.$ac_ext <<EOF
2920 #line 2921 "configure"
2921 #include "confdefs.h"
2922 /* System header to define __stub macros and hopefully few prototypes,
2923 which can conflict with char malloc_set_state(); below. */
2925 /* Override any gcc2 internal prototype to avoid an error. */
2926 /* We use char because int might match the return type of a gcc2
2927 builtin and then its argument prototype would still apply. */
2928 char malloc_set_state();
2932 /* The GNU C library defines this for functions which it implements
2933 to always fail with ENOSYS. Some functions are actually named
2934 something starting with __ and the normal name is an alias. */
2935 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
2943 if { (eval echo configure:2944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2945 eval "ac_cv_func_malloc_set_state=yes"
2947 echo "configure: failed program was:" >&5
2948 cat conftest.$ac_ext >&5
2950 eval "ac_cv_func_malloc_set_state=no"
2954 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
2955 echo "$ac_t""yes" 1>&6
2958 echo "$ac_t""no" 1>&6
2962 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2963 echo "configure:2964: checking whether __after_morecore_hook exists" >&5
2964 cat > conftest.$ac_ext <<EOF
2965 #line 2966 "configure"
2966 #include "confdefs.h"
2967 extern void (* __after_morecore_hook)();
2969 __after_morecore_hook = 0
2972 if { (eval echo configure:2973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2974 echo "$ac_t""yes" 1>&6
2976 echo "configure: failed program was:" >&5
2977 cat conftest.$ac_ext >&5
2979 echo "$ac_t""no" 1>&6
2980 after_morecore_hook_exists=no
2983 if test "$system_malloc" = "yes" ; then
2986 (The GNU allocators don't work with this system configuration)."
2987 elif test "$with_system_malloc" = "yes" ; then
2990 (User chose not to use GNU allocators)."
2991 elif test "$with_debug_malloc" = "yes" ; then
2994 (User chose to use Debugging Malloc)."
2997 if test "$doug_lea_malloc" = "yes" ; then
2998 if test "$GNU_MALLOC" = yes ; then
3000 (Using Doug Lea's new malloc from the GNU C Library.)"
3002 { test "$extra_verbose" = "yes" && cat << \EOF
3003 Defining DOUG_LEA_MALLOC
3005 cat >> confdefs.h <<\EOF
3006 #define DOUG_LEA_MALLOC 1
3010 if test "$after_morecore_hook_exists" = "no" ; then
3012 (Using Doug Lea's new malloc from the Linux C Library.)"
3013 { test "$extra_verbose" = "yes" && cat << \EOF
3014 Defining _NO_MALLOC_WARNING_
3016 cat >> confdefs.h <<\EOF
3017 #define _NO_MALLOC_WARNING_ 1
3022 use_minimal_tagbits=yes
3028 # Extract the first word of "ranlib", so it can be a program name with args.
3029 set dummy ranlib; ac_word=$2
3030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3031 echo "configure:3032: checking for $ac_word" >&5
3033 if test -n "$RANLIB"; then
3034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3038 for ac_dir in $ac_dummy; do
3039 test -z "$ac_dir" && ac_dir=.
3040 if test -f $ac_dir/$ac_word; then
3041 ac_cv_prog_RANLIB="ranlib"
3046 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3048 RANLIB="$ac_cv_prog_RANLIB"
3049 if test -n "$RANLIB"; then
3050 echo "$ac_t""$RANLIB" 1>&6
3052 echo "$ac_t""no" 1>&6
3056 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3057 if test -f $ac_dir/install-sh; then
3059 ac_install_sh="$ac_aux_dir/install-sh -c"
3061 elif test -f $ac_dir/install.sh; then
3063 ac_install_sh="$ac_aux_dir/install.sh -c"
3067 if test -z "$ac_aux_dir"; then
3068 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3070 ac_config_guess=$ac_aux_dir/config.guess
3071 ac_config_sub=$ac_aux_dir/config.sub
3072 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3074 # Find a good install program. We prefer a C program (faster),
3075 # so one script is as good as another. But avoid the broken or
3076 # incompatible versions:
3077 # SysV /etc/install, /usr/sbin/install
3078 # SunOS /usr/etc/install
3079 # IRIX /sbin/install
3081 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3082 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3083 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3084 # ./install, which can be erroneously created by make from ./install.sh.
3085 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3086 echo "configure:3087: checking for a BSD compatible install" >&5
3087 if test -z "$INSTALL"; then
3089 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3090 for ac_dir in $PATH; do
3091 # Account for people who put trailing slashes in PATH elements.
3093 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3095 # OSF1 and SCO ODT 3.0 have their own names for install.
3096 # Don't use installbsd from OSF since it installs stuff as root
3098 for ac_prog in ginstall scoinst install; do
3099 if test -f $ac_dir/$ac_prog; then
3100 if test $ac_prog = install &&
3101 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3102 # AIX install. It has an incompatible calling convention.
3105 ac_cv_path_install="$ac_dir/$ac_prog -c"
3115 if test "${ac_cv_path_install+set}" = set; then
3116 INSTALL="$ac_cv_path_install"
3118 # As a last resort, use the slow shell script. We don't cache a
3119 # path for INSTALL within a source directory, because that will
3120 # break other packages using the cache if that directory is
3121 # removed, or if the path is relative.
3122 INSTALL="$ac_install_sh"
3125 echo "$ac_t""$INSTALL" 1>&6
3127 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3128 # It thinks the first close brace ends the variable substitution.
3129 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3131 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3133 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3135 for ac_prog in 'bison -y' byacc
3137 # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3140 echo "configure:3141: checking for $ac_word" >&5
3142 if test -n "$YACC"; then
3143 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3147 for ac_dir in $ac_dummy; do
3148 test -z "$ac_dir" && ac_dir=.
3149 if test -f $ac_dir/$ac_word; then
3150 ac_cv_prog_YACC="$ac_prog"
3156 YACC="$ac_cv_prog_YACC"
3157 if test -n "$YACC"; then
3158 echo "$ac_t""$YACC" 1>&6
3160 echo "$ac_t""no" 1>&6
3163 test -n "$YACC" && break
3165 test -n "$YACC" || YACC="yacc"
3168 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3170 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3171 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3172 echo "configure:3173: checking for $ac_hdr" >&5
3174 cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3180 { (eval echo configure:3181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3182 if test -z "$ac_err"; then
3184 eval "ac_cv_header_$ac_safe=yes"
3187 echo "configure: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3190 eval "ac_cv_header_$ac_safe=no"
3193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3194 echo "$ac_t""yes" 1>&6
3195 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3196 { test "$extra_verbose" = "yes" && cat << EOF
3199 cat >> confdefs.h <<EOF
3200 #define $ac_tr_hdr 1
3205 echo "$ac_t""no" 1>&6
3209 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3211 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3212 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3213 echo "configure:3214: checking for $ac_hdr" >&5
3215 cat > conftest.$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3221 { (eval echo configure:3222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3223 if test -z "$ac_err"; then
3225 eval "ac_cv_header_$ac_safe=yes"
3228 echo "configure: failed program was:" >&5
3229 cat conftest.$ac_ext >&5
3231 eval "ac_cv_header_$ac_safe=no"
3234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3235 echo "$ac_t""yes" 1>&6
3236 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3237 { test "$extra_verbose" = "yes" && cat << EOF
3240 cat >> confdefs.h <<EOF
3241 #define $ac_tr_hdr 1
3246 echo "$ac_t""no" 1>&6
3250 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3252 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3253 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3254 echo "configure:3255: checking for $ac_hdr" >&5
3256 cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3262 { (eval echo configure:3263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3264 if test -z "$ac_err"; then
3266 eval "ac_cv_header_$ac_safe=yes"
3269 echo "configure: failed program was:" >&5
3270 cat conftest.$ac_ext >&5
3272 eval "ac_cv_header_$ac_safe=no"
3275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3276 echo "$ac_t""yes" 1>&6
3277 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3278 { test "$extra_verbose" = "yes" && cat << EOF
3281 cat >> confdefs.h <<EOF
3282 #define $ac_tr_hdr 1
3287 echo "$ac_t""no" 1>&6
3291 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3292 echo "configure:3293: checking for sys/wait.h that is POSIX.1 compatible" >&5
3294 cat > conftest.$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3297 #include <sys/types.h>
3298 #include <sys/wait.h>
3300 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3303 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3308 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3311 if { (eval echo configure:3312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3313 ac_cv_header_sys_wait_h=yes
3315 echo "configure: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3318 ac_cv_header_sys_wait_h=no
3322 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3323 if test $ac_cv_header_sys_wait_h = yes; then
3324 { test "$extra_verbose" = "yes" && cat << \EOF
3325 Defining HAVE_SYS_WAIT_H
3327 cat >> confdefs.h <<\EOF
3328 #define HAVE_SYS_WAIT_H 1
3334 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3335 echo "configure:3336: checking for ANSI C header files" >&5
3337 cat > conftest.$ac_ext <<EOF
3338 #line 3339 "configure"
3339 #include "confdefs.h"
3345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3346 { (eval echo configure:3347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3348 if test -z "$ac_err"; then
3350 ac_cv_header_stdc=yes
3353 echo "configure: failed program was:" >&5
3354 cat conftest.$ac_ext >&5
3356 ac_cv_header_stdc=no
3360 if test $ac_cv_header_stdc = yes; then
3361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3362 cat > conftest.$ac_ext <<EOF
3363 #line 3364 "configure"
3364 #include "confdefs.h"
3367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3368 egrep "memchr" >/dev/null 2>&1; then
3372 ac_cv_header_stdc=no
3378 if test $ac_cv_header_stdc = yes; then
3379 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3380 cat > conftest.$ac_ext <<EOF
3381 #line 3382 "configure"
3382 #include "confdefs.h"
3385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3386 egrep "free" >/dev/null 2>&1; then
3390 ac_cv_header_stdc=no
3396 if test $ac_cv_header_stdc = yes; then
3397 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3398 cat > conftest.$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3402 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3403 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3404 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3405 int main () { int i; for (i = 0; i < 256; i++)
3406 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3410 if { (eval echo configure:3411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3415 echo "configure: failed program was:" >&5
3416 cat conftest.$ac_ext >&5
3418 ac_cv_header_stdc=no
3423 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3424 if test $ac_cv_header_stdc = yes; then
3425 { test "$extra_verbose" = "yes" && cat << \EOF
3426 Defining STDC_HEADERS
3428 cat >> confdefs.h <<\EOF
3429 #define STDC_HEADERS 1
3435 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3436 echo "configure:3437: checking whether time.h and sys/time.h may both be included" >&5
3438 cat > conftest.$ac_ext <<EOF
3439 #line 3440 "configure"
3440 #include "confdefs.h"
3441 #include <sys/types.h>
3442 #include <sys/time.h>
3448 if { (eval echo configure:3449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3450 ac_cv_header_time=yes
3452 echo "configure: failed program was:" >&5
3453 cat conftest.$ac_ext >&5
3455 ac_cv_header_time=no
3459 echo "$ac_t""$ac_cv_header_time" 1>&6
3460 if test $ac_cv_header_time = yes; then
3461 { test "$extra_verbose" = "yes" && cat << \EOF
3462 Defining TIME_WITH_SYS_TIME
3464 cat >> confdefs.h <<\EOF
3465 #define TIME_WITH_SYS_TIME 1
3471 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3472 echo "configure:3473: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3474 cat > conftest.$ac_ext <<EOF
3475 #line 3476 "configure"
3476 #include "confdefs.h"
3477 #include <sys/types.h>
3479 /* NetBSD declares sys_siglist in unistd.h. */
3480 #ifdef HAVE_UNISTD_H
3484 char *msg = *(sys_siglist + 1);
3487 if { (eval echo configure:3488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3489 ac_cv_decl_sys_siglist=yes
3491 echo "configure: failed program was:" >&5
3492 cat conftest.$ac_ext >&5
3494 ac_cv_decl_sys_siglist=no
3498 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3499 if test $ac_cv_decl_sys_siglist = yes; then
3500 { test "$extra_verbose" = "yes" && cat << \EOF
3501 Defining SYS_SIGLIST_DECLARED
3503 cat >> confdefs.h <<\EOF
3504 #define SYS_SIGLIST_DECLARED 1
3511 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3512 echo "configure:3513: checking for struct utimbuf" >&5
3513 cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3516 #ifdef TIME_WITH_SYS_TIME
3517 #include <sys/time.h>
3520 #ifdef HAVE_SYS_TIME_H
3521 #include <sys/time.h>
3530 static struct utimbuf x; x.actime = x.modtime;
3533 if { (eval echo configure:3534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3535 echo "$ac_t""yes" 1>&6
3536 { test "$extra_verbose" = "yes" && cat << \EOF
3537 Defining HAVE_STRUCT_UTIMBUF
3539 cat >> confdefs.h <<\EOF
3540 #define HAVE_STRUCT_UTIMBUF 1
3545 echo "configure: failed program was:" >&5
3546 cat conftest.$ac_ext >&5
3548 echo "$ac_t""no" 1>&6
3552 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3553 echo "configure:3554: checking return type of signal handlers" >&5
3555 cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 #include <sys/types.h>
3564 extern "C" void (*signal (int, void (*)(int)))(int);
3566 void (*signal ()) ();
3573 if { (eval echo configure:3574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3575 ac_cv_type_signal=void
3577 echo "configure: failed program was:" >&5
3578 cat conftest.$ac_ext >&5
3580 ac_cv_type_signal=int
3584 echo "$ac_t""$ac_cv_type_signal" 1>&6
3585 { test "$extra_verbose" = "yes" && cat << EOF
3586 Defining RETSIGTYPE = $ac_cv_type_signal
3588 cat >> confdefs.h <<EOF
3589 #define RETSIGTYPE $ac_cv_type_signal
3594 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3595 echo "configure:3596: checking for size_t" >&5
3597 cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 #include <sys/types.h>
3606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3607 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3609 ac_cv_type_size_t=yes
3612 ac_cv_type_size_t=no
3616 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3617 if test $ac_cv_type_size_t = no; then
3618 { test "$extra_verbose" = "yes" && cat << \EOF
3619 Defining size_t = unsigned
3621 cat >> confdefs.h <<\EOF
3622 #define size_t unsigned
3628 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3629 echo "configure:3630: checking for pid_t" >&5
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 #include <sys/types.h>
3640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3641 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3643 ac_cv_type_pid_t=yes
3650 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3651 if test $ac_cv_type_pid_t = no; then
3652 { test "$extra_verbose" = "yes" && cat << \EOF
3653 Defining pid_t = int
3655 cat >> confdefs.h <<\EOF
3662 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3663 echo "configure:3664: checking for uid_t in sys/types.h" >&5
3665 cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 #include <sys/types.h>
3670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3671 egrep "uid_t" >/dev/null 2>&1; then
3673 ac_cv_type_uid_t=yes
3681 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3682 if test $ac_cv_type_uid_t = no; then
3683 { test "$extra_verbose" = "yes" && cat << \EOF
3684 Defining uid_t = int
3686 cat >> confdefs.h <<\EOF
3691 { test "$extra_verbose" = "yes" && cat << \EOF
3692 Defining gid_t = int
3694 cat >> confdefs.h <<\EOF
3701 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3702 echo "configure:3703: checking for mode_t" >&5
3704 cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3707 #include <sys/types.h>
3713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3714 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3716 ac_cv_type_mode_t=yes
3719 ac_cv_type_mode_t=no
3723 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3724 if test $ac_cv_type_mode_t = no; then
3725 { test "$extra_verbose" = "yes" && cat << \EOF
3726 Defining mode_t = int
3728 cat >> confdefs.h <<\EOF
3735 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3736 echo "configure:3737: checking for off_t" >&5
3738 cat > conftest.$ac_ext <<EOF
3739 #line 3740 "configure"
3740 #include "confdefs.h"
3741 #include <sys/types.h>
3747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3748 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3750 ac_cv_type_off_t=yes
3757 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3758 if test $ac_cv_type_off_t = no; then
3759 { test "$extra_verbose" = "yes" && cat << \EOF
3760 Defining off_t = long
3762 cat >> confdefs.h <<\EOF
3770 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3771 echo "configure:3772: checking for struct timeval" >&5
3772 cat > conftest.$ac_ext <<EOF
3773 #line 3774 "configure"
3774 #include "confdefs.h"
3775 #ifdef TIME_WITH_SYS_TIME
3776 #include <sys/time.h>
3779 #ifdef HAVE_SYS_TIME_H
3780 #include <sys/time.h>
3786 static struct timeval x; x.tv_sec = x.tv_usec;
3789 if { (eval echo configure:3790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3791 echo "$ac_t""yes" 1>&6
3793 { test "$extra_verbose" = "yes" && cat << \EOF
3794 Defining HAVE_TIMEVAL
3796 cat >> confdefs.h <<\EOF
3797 #define HAVE_TIMEVAL 1
3802 echo "configure: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3805 echo "$ac_t""no" 1>&6
3810 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3811 echo "configure:3812: checking whether struct tm is in sys/time.h or time.h" >&5
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 #include <sys/types.h>
3819 struct tm *tp; tp->tm_sec;
3822 if { (eval echo configure:3823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3824 ac_cv_struct_tm=time.h
3826 echo "configure: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3829 ac_cv_struct_tm=sys/time.h
3833 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3834 if test $ac_cv_struct_tm = sys/time.h; then
3835 { test "$extra_verbose" = "yes" && cat << \EOF
3836 Defining TM_IN_SYS_TIME
3838 cat >> confdefs.h <<\EOF
3839 #define TM_IN_SYS_TIME 1
3845 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3846 echo "configure:3847: checking for tm_zone in struct tm" >&5
3848 cat > conftest.$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3851 #include <sys/types.h>
3852 #include <$ac_cv_struct_tm>
3854 struct tm tm; tm.tm_zone;
3857 if { (eval echo configure:3858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3859 ac_cv_struct_tm_zone=yes
3861 echo "configure: failed program was:" >&5
3862 cat conftest.$ac_ext >&5
3864 ac_cv_struct_tm_zone=no
3868 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3869 if test "$ac_cv_struct_tm_zone" = yes; then
3870 { test "$extra_verbose" = "yes" && cat << \EOF
3871 Defining HAVE_TM_ZONE
3873 cat >> confdefs.h <<\EOF
3874 #define HAVE_TM_ZONE 1
3879 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3880 echo "configure:3881: checking for tzname" >&5
3882 cat > conftest.$ac_ext <<EOF
3883 #line 3884 "configure"
3884 #include "confdefs.h"
3886 #ifndef tzname /* For SGI. */
3887 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3893 if { (eval echo configure:3894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3895 ac_cv_var_tzname=yes
3897 echo "configure: failed program was:" >&5
3898 cat conftest.$ac_ext >&5
3904 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3905 if test $ac_cv_var_tzname = yes; then
3906 { test "$extra_verbose" = "yes" && cat << \EOF
3907 Defining HAVE_TZNAME
3909 cat >> confdefs.h <<\EOF
3910 #define HAVE_TZNAME 1
3918 echo $ac_n "checking for working const""... $ac_c" 1>&6
3919 echo "configure:3920: checking for working const" >&5
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3927 /* Ultrix mips cc rejects this. */
3928 typedef int charset[2]; const charset x;
3929 /* SunOS 4.1.1 cc rejects this. */
3930 char const *const *ccp;
3932 /* NEC SVR4.0.2 mips cc rejects this. */
3933 struct point {int x, y;};
3934 static struct point const zero = {0,0};
3935 /* AIX XL C 1.02.0.0 rejects this.
3936 It does not let you subtract one const X* pointer from another in an arm
3937 of an if-expression whose if-part is not a constant expression */
3938 const char *g = "string";
3939 ccp = &g + (g ? g-g : 0);
3940 /* HPUX 7.0 cc rejects these. */
3943 ccp = (char const *const *) p;
3944 { /* SCO 3.2v4 cc rejects this. */
3946 char const *s = 0 ? (char *) 0 : (char const *) 0;
3950 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3952 const int *foo = &x[0];
3955 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3956 typedef const int *iptr;
3960 { /* AIX XL C 1.02.0.0 rejects this saying
3961 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3962 struct s { int j; const int *ap[3]; };
3963 struct s *b; b->j = 5;
3965 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3971 if { (eval echo configure:3972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3975 echo "configure: failed program was:" >&5
3976 cat conftest.$ac_ext >&5
3982 echo "$ac_t""$ac_cv_c_const" 1>&6
3983 if test $ac_cv_c_const = no; then
3984 { test "$extra_verbose" = "yes" && cat << \EOF
3987 cat >> confdefs.h <<\EOF
3995 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3996 echo "configure:3997: checking whether ${MAKE-make} sets \${MAKE}" >&5
3997 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3999 cat > conftestmake <<\EOF
4001 @echo 'ac_maketemp="${MAKE}"'
4003 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4004 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4005 if test -n "$ac_maketemp"; then
4006 eval ac_cv_prog_make_${ac_make}_set=yes
4008 eval ac_cv_prog_make_${ac_make}_set=no
4011 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4012 echo "$ac_t""yes" 1>&6
4015 echo "$ac_t""no" 1>&6
4016 SET_MAKE="MAKE=${MAKE-make}"
4020 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4021 echo "configure:4022: checking whether byte ordering is bigendian" >&5
4023 ac_cv_c_bigendian=unknown
4024 # See if sys/param.h defines the BYTE_ORDER macro.
4025 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4028 #include <sys/types.h>
4029 #include <sys/param.h>
4032 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4037 if { (eval echo configure:4038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4039 # It does; now see whether it defined to BIG_ENDIAN or not.
4040 cat > conftest.$ac_ext <<EOF
4041 #line 4042 "configure"
4042 #include "confdefs.h"
4043 #include <sys/types.h>
4044 #include <sys/param.h>
4047 #if BYTE_ORDER != BIG_ENDIAN
4052 if { (eval echo configure:4053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4054 ac_cv_c_bigendian=yes
4056 echo "configure: failed program was:" >&5
4057 cat conftest.$ac_ext >&5
4059 ac_cv_c_bigendian=no
4063 echo "configure: failed program was:" >&5
4064 cat conftest.$ac_ext >&5
4067 if test $ac_cv_c_bigendian = unknown; then
4068 cat > conftest.$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4072 /* Are we little or big endian? From Harbison&Steele. */
4076 char c[sizeof (long)];
4079 exit (u.c[sizeof (long) - 1] == 1);
4082 if { (eval echo configure:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4084 ac_cv_c_bigendian=no
4087 echo "configure: failed program was:" >&5
4088 cat conftest.$ac_ext >&5
4090 ac_cv_c_bigendian=yes
4095 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4096 if test $ac_cv_c_bigendian = yes; then
4097 { test "$extra_verbose" = "yes" && cat << \EOF
4098 Defining WORDS_BIGENDIAN
4100 cat >> confdefs.h <<\EOF
4101 #define WORDS_BIGENDIAN 1
4108 echo $ac_n "checking size of short""... $ac_c" 1>&6
4109 echo "configure:4110: checking size of short" >&5
4111 cat > conftest.$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4117 FILE *f=fopen("conftestval", "w");
4119 fprintf(f, "%d\n", sizeof(short));
4123 if { (eval echo configure:4124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4125 ac_cv_sizeof_short=`cat conftestval`
4128 echo "configure: failed program was:" >&5
4129 cat conftest.$ac_ext >&5
4131 ac_cv_sizeof_short=0
4134 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4135 { test "$extra_verbose" = "yes" && cat << EOF
4136 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4138 cat >> confdefs.h <<EOF
4139 #define SIZEOF_SHORT $ac_cv_sizeof_short
4144 if test "$ac_cv_sizeof_short" = 0; then
4146 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4147 echo "*** PANIC *** Please examine config.log for compilation errors."
4150 echo $ac_n "checking size of int""... $ac_c" 1>&6
4151 echo "configure:4152: checking size of int" >&5
4153 cat > conftest.$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4159 FILE *f=fopen("conftestval", "w");
4161 fprintf(f, "%d\n", sizeof(int));
4165 if { (eval echo configure:4166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4167 ac_cv_sizeof_int=`cat conftestval`
4170 echo "configure: failed program was:" >&5
4171 cat conftest.$ac_ext >&5
4176 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4177 { test "$extra_verbose" = "yes" && cat << EOF
4178 Defining SIZEOF_INT = $ac_cv_sizeof_int
4180 cat >> confdefs.h <<EOF
4181 #define SIZEOF_INT $ac_cv_sizeof_int
4186 echo $ac_n "checking size of long""... $ac_c" 1>&6
4187 echo "configure:4188: checking size of long" >&5
4189 cat > conftest.$ac_ext <<EOF
4190 #line 4191 "configure"
4191 #include "confdefs.h"
4195 FILE *f=fopen("conftestval", "w");
4197 fprintf(f, "%d\n", sizeof(long));
4201 if { (eval echo configure:4202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4203 ac_cv_sizeof_long=`cat conftestval`
4206 echo "configure: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4212 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4213 { test "$extra_verbose" = "yes" && cat << EOF
4214 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4216 cat >> confdefs.h <<EOF
4217 #define SIZEOF_LONG $ac_cv_sizeof_long
4222 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4223 echo "configure:4224: checking size of long long" >&5
4225 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4231 FILE *f=fopen("conftestval", "w");
4233 fprintf(f, "%d\n", sizeof(long long));
4237 if { (eval echo configure:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4239 ac_cv_sizeof_long_long=`cat conftestval`
4242 echo "configure: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4245 ac_cv_sizeof_long_long=0
4248 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4249 { test "$extra_verbose" = "yes" && cat << EOF
4250 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4252 cat >> confdefs.h <<EOF
4253 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4258 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4259 echo "configure:4260: checking size of void *" >&5
4261 cat > conftest.$ac_ext <<EOF
4262 #line 4263 "configure"
4263 #include "confdefs.h"
4267 FILE *f=fopen("conftestval", "w");
4269 fprintf(f, "%d\n", sizeof(void *));
4273 if { (eval echo configure:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4275 ac_cv_sizeof_void_p=`cat conftestval`
4278 echo "configure: failed program was:" >&5
4279 cat conftest.$ac_ext >&5
4281 ac_cv_sizeof_void_p=0
4284 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4285 { test "$extra_verbose" = "yes" && cat << EOF
4286 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4288 cat >> confdefs.h <<EOF
4289 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4295 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4296 echo "configure:4297: checking for long file names" >&5
4298 ac_cv_sys_long_file_names=yes
4299 # Test for long file names in all the places we know might matter:
4300 # . the current directory, where building will happen
4301 # $prefix/lib where we will be installing things
4302 # $exec_prefix/lib likewise
4303 # eval it to expand exec_prefix.
4304 # $TMPDIR if set, where it might want to write temporary files
4305 # if $TMPDIR is not set:
4306 # /tmp where it might want to write temporary files
4309 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4310 ac_tmpdirs="$TMPDIR"
4312 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4314 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4315 test -d $ac_dir || continue
4316 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4317 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4318 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4319 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4320 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4321 ac_cv_sys_long_file_names=no
4322 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4325 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4328 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4329 if test $ac_cv_sys_long_file_names = yes; then
4330 { test "$extra_verbose" = "yes" && cat << \EOF
4331 Defining HAVE_LONG_FILE_NAMES
4333 cat >> confdefs.h <<\EOF
4334 #define HAVE_LONG_FILE_NAMES 1
4341 echo $ac_n "checking for sin""... $ac_c" 1>&6
4342 echo "configure:4343: checking for sin" >&5
4344 cat > conftest.$ac_ext <<EOF
4345 #line 4346 "configure"
4346 #include "confdefs.h"
4347 /* System header to define __stub macros and hopefully few prototypes,
4348 which can conflict with char sin(); below. */
4350 /* Override any gcc2 internal prototype to avoid an error. */
4351 /* We use char because int might match the return type of a gcc2
4352 builtin and then its argument prototype would still apply. */
4357 /* The GNU C library defines this for functions which it implements
4358 to always fail with ENOSYS. Some functions are actually named
4359 something starting with __ and the normal name is an alias. */
4360 #if defined (__stub_sin) || defined (__stub___sin)
4368 if { (eval echo configure:4369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4370 eval "ac_cv_func_sin=yes"
4372 echo "configure: failed program was:" >&5
4373 cat conftest.$ac_ext >&5
4375 eval "ac_cv_func_sin=no"
4379 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4380 echo "$ac_t""yes" 1>&6
4383 echo "$ac_t""no" 1>&6
4385 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4386 echo "configure:4387: checking for sin in -lm" >&5
4387 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4389 xe_check_libs=" -lm "
4390 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4393 /* Override any gcc2 internal prototype to avoid an error. */
4394 /* We use char because int might match the return type of a gcc2
4395 builtin and then its argument prototype would still apply. */
4402 if { (eval echo configure:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4404 eval "ac_cv_lib_$ac_lib_var=yes"
4406 echo "configure: failed program was:" >&5
4407 cat conftest.$ac_ext >&5
4409 eval "ac_cv_lib_$ac_lib_var=no"
4414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4415 echo "$ac_t""yes" 1>&6
4416 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4417 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4418 { test "$extra_verbose" = "yes" && cat << EOF
4421 cat >> confdefs.h <<EOF
4422 #define $ac_tr_lib 1
4426 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4429 echo "$ac_t""no" 1>&6
4436 { test "$extra_verbose" = "yes" && cat << \EOF
4437 Defining LISP_FLOAT_TYPE
4439 cat >> confdefs.h <<\EOF
4440 #define LISP_FLOAT_TYPE 1
4445 cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4450 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4453 if { (eval echo configure:4454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4455 { test "$extra_verbose" = "yes" && cat << \EOF
4456 Defining HAVE_INVERSE_HYPERBOLIC
4458 cat >> confdefs.h <<\EOF
4459 #define HAVE_INVERSE_HYPERBOLIC 1
4464 echo "configure: failed program was:" >&5
4465 cat conftest.$ac_ext >&5
4469 echo "checking type of mail spool file locking" 1>&6
4470 echo "configure:4471: checking type of mail spool file locking" >&5
4471 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4472 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4473 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4474 Defining REAL_MAIL_USE_LOCKF
4476 cat >> confdefs.h <<\EOF
4477 #define REAL_MAIL_USE_LOCKF 1
4481 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4482 Defining REAL_MAIL_USE_FLOCK
4484 cat >> confdefs.h <<\EOF
4485 #define REAL_MAIL_USE_FLOCK 1
4489 else mail_locking="dot-locking"
4492 case "$opsys" in decosf*)
4494 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4495 echo "configure:4496: checking for cma_open in -lpthreads" >&5
4496 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4498 xe_check_libs=" -lpthreads "
4499 cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4502 /* Override any gcc2 internal prototype to avoid an error. */
4503 /* We use char because int might match the return type of a gcc2
4504 builtin and then its argument prototype would still apply. */
4511 if { (eval echo configure:4512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4513 eval "ac_cv_lib_$ac_lib_var=yes"
4515 echo "configure: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4518 eval "ac_cv_lib_$ac_lib_var=no"
4523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4524 echo "$ac_t""yes" 1>&6
4525 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4526 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4527 { test "$extra_verbose" = "yes" && cat << EOF
4530 cat >> confdefs.h <<EOF
4531 #define $ac_tr_lib 1
4535 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4538 echo "$ac_t""no" 1>&6
4542 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4543 c_switch_site="$c_switch_site -threads" ;;
4546 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4547 echo "configure:4548: checking whether the -xildoff compiler flag is required" >&5
4548 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4549 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4550 then echo "$ac_t""no" 1>&6;
4551 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
4553 else echo "$ac_t""no" 1>&6
4556 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4557 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4558 echo "configure:4559: checking for \"-z ignore\" linker flag" >&5
4559 case "`ld -h 2>&1`" in
4560 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4561 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4562 *) echo "$ac_t""no" 1>&6 ;;
4567 echo "checking "for specified window system"" 1>&6
4568 echo "configure:4569: checking "for specified window system"" >&5
4570 if test "$with_x11" != "no"; then
4571 test "$x_includes $x_libraries" != "NONE NONE" && \
4572 window_system=x11 with_x11=yes
4575 if test "$x_includes $x_libraries" = "NONE NONE" \
4576 -a -n "$OPENWINHOME" \
4577 -a "$OPENWINHOME" != "/usr/openwin" \
4578 -a -d "$OPENWINHOME"; then
4579 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4580 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4581 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4584 if test "$x_includes" = "NONE"; then
4585 for dir in "/usr/X11" "/usr/X11R6"; do
4586 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4590 if test "$x_libraries" = "NONE"; then
4591 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4592 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4596 # If we find X, set shell vars x_includes and x_libraries to the
4597 # paths, otherwise set no_x=yes.
4598 # Uses ac_ vars as temps to allow command line to override cache and checks.
4599 # --without-x overrides everything else, but does not touch the cache.
4600 echo $ac_n "checking for X""... $ac_c" 1>&6
4601 echo "configure:4602: checking for X" >&5
4603 # Check whether --with-x or --without-x was given.
4604 if test "${with_x+set}" = set; then
4609 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4610 if test "x$with_x" = xno; then
4611 # The user explicitly disabled X.
4614 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4615 # Both variables are already set.
4619 # One or both of the vars are not set, and there is no cached value.
4620 ac_x_includes=NO ac_x_libraries=NO
4622 if mkdir conftestdir; then
4624 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4625 cat > Imakefile <<'EOF'
4627 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4629 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4630 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4631 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4632 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4633 for ac_extension in a so sl; do
4634 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4635 test -f $ac_im_libdir/libX11.$ac_extension; then
4636 ac_im_usrlibdir=$ac_im_libdir; break
4639 # Screen out bogus values from the imake configuration. They are
4640 # bogus both because they are the default anyway, and because
4641 # using them would break gcc on systems where it needs fixed includes.
4642 case "$ac_im_incroot" in
4644 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4646 case "$ac_im_usrlibdir" in
4648 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4655 if test "$ac_x_includes" = NO; then
4656 # Guess where to find include files, by looking for this one X11 .h file.
4657 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4659 # First, try using that file with no special directory specified.
4660 cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4663 #include <$x_direct_test_include>
4665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4666 { (eval echo configure:4667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4668 if test -z "$ac_err"; then
4670 # We can compile using X headers with no special include directory.
4674 echo "configure: failed program was:" >&5
4675 cat conftest.$ac_ext >&5
4677 # Look for the header file in a standard set of common directories.
4678 # Check X11 before X11Rn because it is often a symlink to the current release.
4681 /usr/X11R6/include \
4682 /usr/X11R5/include \
4683 /usr/X11R4/include \
4686 /usr/include/X11R6 \
4687 /usr/include/X11R5 \
4688 /usr/include/X11R4 \
4690 /usr/local/X11/include \
4691 /usr/local/X11R6/include \
4692 /usr/local/X11R5/include \
4693 /usr/local/X11R4/include \
4695 /usr/local/include/X11 \
4696 /usr/local/include/X11R6 \
4697 /usr/local/include/X11R5 \
4698 /usr/local/include/X11R4 \
4702 /usr/XFree86/include/X11 \
4705 /usr/local/include \
4706 /usr/unsupported/include \
4707 /usr/athena/include \
4708 /usr/local/x11r5/include \
4709 /usr/lpp/Xamples/include \
4711 /usr/openwin/include \
4712 /usr/openwin/share/include \
4715 if test -r "$ac_dir/$x_direct_test_include"; then
4716 ac_x_includes=$ac_dir
4722 fi # $ac_x_includes = NO
4724 if test "$ac_x_libraries" = NO; then
4725 # Check for the libraries.
4727 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4728 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4730 # See if we find them without any special options.
4731 # Don't add to $LIBS permanently.
4732 ac_save_LIBS="$LIBS"
4733 LIBS="-l$x_direct_test_library $LIBS"
4734 cat > conftest.$ac_ext <<EOF
4735 #line 4736 "configure"
4736 #include "confdefs.h"
4739 ${x_direct_test_function}()
4742 if { (eval echo configure:4743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4744 LIBS="$ac_save_LIBS"
4745 # We can link X programs with no special library path.
4748 echo "configure: failed program was:" >&5
4749 cat conftest.$ac_ext >&5
4751 LIBS="$ac_save_LIBS"
4752 # First see if replacing the include by lib works.
4753 # Check X11 before X11Rn because it is often a symlink to the current release.
4754 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4765 /usr/local/X11/lib \
4766 /usr/local/X11R6/lib \
4767 /usr/local/X11R5/lib \
4768 /usr/local/X11R4/lib \
4770 /usr/local/lib/X11 \
4771 /usr/local/lib/X11R6 \
4772 /usr/local/lib/X11R5 \
4773 /usr/local/lib/X11R4 \
4777 /usr/XFree86/lib/X11 \
4781 /usr/unsupported/lib \
4783 /usr/local/x11r5/lib \
4784 /usr/lpp/Xamples/lib \
4788 /usr/openwin/share/lib \
4791 for ac_extension in a so sl; do
4792 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4793 ac_x_libraries=$ac_dir
4800 fi # $ac_x_libraries = NO
4802 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4803 # Didn't find X anywhere. Cache the known absence of X.
4804 ac_cv_have_x="have_x=no"
4806 # Record where we found X for the cache.
4807 ac_cv_have_x="have_x=yes \
4808 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4811 eval "$ac_cv_have_x"
4814 if test "$have_x" != yes; then
4815 echo "$ac_t""$have_x" 1>&6
4818 # If each of the values was on the command line, it overrides each guess.
4819 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4820 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4821 # Update the cache value to reflect the command line values.
4822 ac_cv_have_x="have_x=yes \
4823 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4824 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4827 if test "$no_x" = yes; then
4828 # Not all programs may use this symbol, but it does not hurt to define it.
4829 { test "$extra_verbose" = "yes" && cat << \EOF
4830 Defining X_DISPLAY_MISSING
4832 cat >> confdefs.h <<\EOF
4833 #define X_DISPLAY_MISSING 1
4837 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4839 if test -n "$x_includes"; then
4840 X_CFLAGS="$X_CFLAGS -I$x_includes"
4843 # It would also be nice to do this for all -L options, not just this one.
4844 if test -n "$x_libraries"; then
4845 X_LIBS="$X_LIBS -L$x_libraries"
4846 # For Solaris; some versions of Sun CC require a space after -R and
4847 # others require no space. Words are not sufficient . . . .
4848 case "`(uname -sr) 2>/dev/null`" in
4850 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4851 echo "configure:4852: checking whether -R must be followed by a space" >&5
4852 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4853 cat > conftest.$ac_ext <<EOF
4854 #line 4855 "configure"
4855 #include "confdefs.h"
4861 if { (eval echo configure:4862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4865 echo "configure: failed program was:" >&5
4866 cat conftest.$ac_ext >&5
4871 if test $ac_R_nospace = yes; then
4872 echo "$ac_t""no" 1>&6
4873 X_LIBS="$X_LIBS -R$x_libraries"
4875 LIBS="$ac_xsave_LIBS -R $x_libraries"
4876 cat > conftest.$ac_ext <<EOF
4877 #line 4878 "configure"
4878 #include "confdefs.h"
4884 if { (eval echo configure:4885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4888 echo "configure: failed program was:" >&5
4889 cat conftest.$ac_ext >&5
4894 if test $ac_R_space = yes; then
4895 echo "$ac_t""yes" 1>&6
4896 X_LIBS="$X_LIBS -R $x_libraries"
4898 echo "$ac_t""neither works" 1>&6
4901 LIBS="$ac_xsave_LIBS"
4905 # Check for system-dependent libraries X programs must link with.
4906 # Do this before checking for the system-independent R6 libraries
4907 # (-lICE), since we may need -lsocket or whatever for X linking.
4909 if test "$ISC" = yes; then
4910 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4912 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4913 # libraries were built with DECnet support. And karl@cs.umb.edu says
4914 # the Alpha needs dnet_stub (dnet does not exist).
4915 if test "$with_dnet" = "no" ; then
4916 ac_cv_lib_dnet_dnet_ntoa=no
4919 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4920 echo "configure:4921: checking for dnet_ntoa in -ldnet" >&5
4921 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4923 xe_check_libs=" -ldnet "
4924 cat > conftest.$ac_ext <<EOF
4925 #line 4926 "configure"
4926 #include "confdefs.h"
4927 /* Override any gcc2 internal prototype to avoid an error. */
4928 /* We use char because int might match the return type of a gcc2
4929 builtin and then its argument prototype would still apply. */
4936 if { (eval echo configure:4937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4938 eval "ac_cv_lib_$ac_lib_var=yes"
4940 echo "configure: failed program was:" >&5
4941 cat conftest.$ac_ext >&5
4943 eval "ac_cv_lib_$ac_lib_var=no"
4948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4949 echo "$ac_t""yes" 1>&6
4950 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4952 echo "$ac_t""no" 1>&6
4957 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4959 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4960 echo "configure:4961: checking for dnet_ntoa in -ldnet_stub" >&5
4961 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4963 xe_check_libs=" -ldnet_stub "
4964 cat > conftest.$ac_ext <<EOF
4965 #line 4966 "configure"
4966 #include "confdefs.h"
4967 /* Override any gcc2 internal prototype to avoid an error. */
4968 /* We use char because int might match the return type of a gcc2
4969 builtin and then its argument prototype would still apply. */
4976 if { (eval echo configure:4977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4978 eval "ac_cv_lib_$ac_lib_var=yes"
4980 echo "configure: failed program was:" >&5
4981 cat conftest.$ac_ext >&5
4983 eval "ac_cv_lib_$ac_lib_var=no"
4988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4989 echo "$ac_t""yes" 1>&6
4990 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4992 echo "$ac_t""no" 1>&6
4998 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4999 # to get the SysV transport functions.
5000 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5002 # The nsl library prevents programs from opening the X display
5003 # on Irix 5.2, according to dickey@clark.net.
5004 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5005 echo "configure:5006: checking for gethostbyname" >&5
5007 cat > conftest.$ac_ext <<EOF
5008 #line 5009 "configure"
5009 #include "confdefs.h"
5010 /* System header to define __stub macros and hopefully few prototypes,
5011 which can conflict with char gethostbyname(); below. */
5013 /* Override any gcc2 internal prototype to avoid an error. */
5014 /* We use char because int might match the return type of a gcc2
5015 builtin and then its argument prototype would still apply. */
5016 char gethostbyname();
5020 /* The GNU C library defines this for functions which it implements
5021 to always fail with ENOSYS. Some functions are actually named
5022 something starting with __ and the normal name is an alias. */
5023 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5031 if { (eval echo configure:5032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5033 eval "ac_cv_func_gethostbyname=yes"
5035 echo "configure: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5038 eval "ac_cv_func_gethostbyname=no"
5042 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5043 echo "$ac_t""yes" 1>&6
5046 echo "$ac_t""no" 1>&6
5049 if test $ac_cv_func_gethostbyname = no; then
5051 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5052 echo "configure:5053: checking for gethostbyname in -lnsl" >&5
5053 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5055 xe_check_libs=" -lnsl "
5056 cat > conftest.$ac_ext <<EOF
5057 #line 5058 "configure"
5058 #include "confdefs.h"
5059 /* Override any gcc2 internal prototype to avoid an error. */
5060 /* We use char because int might match the return type of a gcc2
5061 builtin and then its argument prototype would still apply. */
5062 char gethostbyname();
5068 if { (eval echo configure:5069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5070 eval "ac_cv_lib_$ac_lib_var=yes"
5072 echo "configure: failed program was:" >&5
5073 cat conftest.$ac_ext >&5
5075 eval "ac_cv_lib_$ac_lib_var=no"
5080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5081 echo "$ac_t""yes" 1>&6
5082 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5084 echo "$ac_t""no" 1>&6
5090 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5091 # socket/setsockopt and other routines are undefined under SCO ODT
5092 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5093 # on later versions), says simon@lia.di.epfl.ch: it contains
5094 # gethostby* variants that don't use the nameserver (or something).
5095 # -lsocket must be given before -lnsl if both are needed.
5096 # We assume that if connect needs -lnsl, so does gethostbyname.
5097 echo $ac_n "checking for connect""... $ac_c" 1>&6
5098 echo "configure:5099: checking for connect" >&5
5100 cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5103 /* System header to define __stub macros and hopefully few prototypes,
5104 which can conflict with char connect(); below. */
5106 /* Override any gcc2 internal prototype to avoid an error. */
5107 /* We use char because int might match the return type of a gcc2
5108 builtin and then its argument prototype would still apply. */
5113 /* The GNU C library defines this for functions which it implements
5114 to always fail with ENOSYS. Some functions are actually named
5115 something starting with __ and the normal name is an alias. */
5116 #if defined (__stub_connect) || defined (__stub___connect)
5124 if { (eval echo configure:5125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5126 eval "ac_cv_func_connect=yes"
5128 echo "configure: failed program was:" >&5
5129 cat conftest.$ac_ext >&5
5131 eval "ac_cv_func_connect=no"
5135 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5136 echo "$ac_t""yes" 1>&6
5139 echo "$ac_t""no" 1>&6
5142 if test $ac_cv_func_connect = no; then
5144 xe_msg_checking="for connect in -lsocket"
5145 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5146 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5147 echo "configure:5148: checking "$xe_msg_checking"" >&5
5148 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5150 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5151 cat > conftest.$ac_ext <<EOF
5152 #line 5153 "configure"
5153 #include "confdefs.h"
5154 /* Override any gcc2 internal prototype to avoid an error. */
5155 /* We use char because int might match the return type of a gcc2
5156 builtin and then its argument prototype would still apply. */
5163 if { (eval echo configure:5164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5165 eval "ac_cv_lib_$ac_lib_var=yes"
5167 echo "configure: failed program was:" >&5
5168 cat conftest.$ac_ext >&5
5170 eval "ac_cv_lib_$ac_lib_var=no"
5175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5176 echo "$ac_t""yes" 1>&6
5177 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5179 echo "$ac_t""no" 1>&6
5185 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5186 echo $ac_n "checking for remove""... $ac_c" 1>&6
5187 echo "configure:5188: checking for remove" >&5
5189 cat > conftest.$ac_ext <<EOF
5190 #line 5191 "configure"
5191 #include "confdefs.h"
5192 /* System header to define __stub macros and hopefully few prototypes,
5193 which can conflict with char remove(); below. */
5195 /* Override any gcc2 internal prototype to avoid an error. */
5196 /* We use char because int might match the return type of a gcc2
5197 builtin and then its argument prototype would still apply. */
5202 /* The GNU C library defines this for functions which it implements
5203 to always fail with ENOSYS. Some functions are actually named
5204 something starting with __ and the normal name is an alias. */
5205 #if defined (__stub_remove) || defined (__stub___remove)
5213 if { (eval echo configure:5214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5215 eval "ac_cv_func_remove=yes"
5217 echo "configure: failed program was:" >&5
5218 cat conftest.$ac_ext >&5
5220 eval "ac_cv_func_remove=no"
5224 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5225 echo "$ac_t""yes" 1>&6
5228 echo "$ac_t""no" 1>&6
5231 if test $ac_cv_func_remove = no; then
5233 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5234 echo "configure:5235: checking for remove in -lposix" >&5
5235 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5237 xe_check_libs=" -lposix "
5238 cat > conftest.$ac_ext <<EOF
5239 #line 5240 "configure"
5240 #include "confdefs.h"
5241 /* Override any gcc2 internal prototype to avoid an error. */
5242 /* We use char because int might match the return type of a gcc2
5243 builtin and then its argument prototype would still apply. */
5250 if { (eval echo configure:5251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5252 eval "ac_cv_lib_$ac_lib_var=yes"
5254 echo "configure: failed program was:" >&5
5255 cat conftest.$ac_ext >&5
5257 eval "ac_cv_lib_$ac_lib_var=no"
5262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5263 echo "$ac_t""yes" 1>&6
5264 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5266 echo "$ac_t""no" 1>&6
5272 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5273 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5274 echo "configure:5275: checking for shmat" >&5
5276 cat > conftest.$ac_ext <<EOF
5277 #line 5278 "configure"
5278 #include "confdefs.h"
5279 /* System header to define __stub macros and hopefully few prototypes,
5280 which can conflict with char shmat(); below. */
5282 /* Override any gcc2 internal prototype to avoid an error. */
5283 /* We use char because int might match the return type of a gcc2
5284 builtin and then its argument prototype would still apply. */
5289 /* The GNU C library defines this for functions which it implements
5290 to always fail with ENOSYS. Some functions are actually named
5291 something starting with __ and the normal name is an alias. */
5292 #if defined (__stub_shmat) || defined (__stub___shmat)
5300 if { (eval echo configure:5301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5302 eval "ac_cv_func_shmat=yes"
5304 echo "configure: failed program was:" >&5
5305 cat conftest.$ac_ext >&5
5307 eval "ac_cv_func_shmat=no"
5311 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5312 echo "$ac_t""yes" 1>&6
5315 echo "$ac_t""no" 1>&6
5318 if test $ac_cv_func_shmat = no; then
5320 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5321 echo "configure:5322: checking for shmat in -lipc" >&5
5322 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5324 xe_check_libs=" -lipc "
5325 cat > conftest.$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5328 /* Override any gcc2 internal prototype to avoid an error. */
5329 /* We use char because int might match the return type of a gcc2
5330 builtin and then its argument prototype would still apply. */
5337 if { (eval echo configure:5338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5339 eval "ac_cv_lib_$ac_lib_var=yes"
5341 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
5344 eval "ac_cv_lib_$ac_lib_var=no"
5349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5350 echo "$ac_t""yes" 1>&6
5351 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5353 echo "$ac_t""no" 1>&6
5360 # Check for libraries that X11R6 Xt/Xaw programs need.
5361 ac_save_LDFLAGS="$LDFLAGS"
5362 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5363 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5364 # check for ICE first), but we must link in the order -lSM -lICE or
5365 # we get undefined symbols. So assume we have SM if we have ICE.
5366 # These have to be linked with before -lX11, unlike the other
5367 # libraries we check for below, so use a different variable.
5368 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5370 xe_msg_checking="for IceConnectionNumber in -lICE"
5371 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5372 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5373 echo "configure:5374: checking "$xe_msg_checking"" >&5
5374 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5376 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5377 cat > conftest.$ac_ext <<EOF
5378 #line 5379 "configure"
5379 #include "confdefs.h"
5380 /* Override any gcc2 internal prototype to avoid an error. */
5381 /* We use char because int might match the return type of a gcc2
5382 builtin and then its argument prototype would still apply. */
5383 char IceConnectionNumber();
5386 IceConnectionNumber()
5389 if { (eval echo configure:5390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5391 eval "ac_cv_lib_$ac_lib_var=yes"
5393 echo "configure: failed program was:" >&5
5394 cat conftest.$ac_ext >&5
5396 eval "ac_cv_lib_$ac_lib_var=no"
5401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5402 echo "$ac_t""yes" 1>&6
5403 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5405 echo "$ac_t""no" 1>&6
5409 LDFLAGS="$ac_save_LDFLAGS"
5412 # Autoconf claims to find X library and include dirs for us.
5413 if test "$no_x" = "yes"
5414 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5415 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5420 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5421 no ) window_system=none HAVE_X_WINDOWS=no ;;
5424 if test "$with_x11" = "yes"; then
5425 { test "$extra_verbose" = "yes" && cat << \EOF
5426 Defining HAVE_X_WINDOWS
5428 cat >> confdefs.h <<\EOF
5429 #define HAVE_X_WINDOWS 1
5433 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5434 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5436 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5437 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5438 if test -d "$lib_dir" -a -d "$inc_dir"; then
5439 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5440 x_libraries="$lib_dir $x_libraries"
5441 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5443 case "$x_includes" in "$inc_dir"* ) ;; *)
5444 x_includes="$inc_dir $x_includes"
5445 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5450 for rel in "X11R6" "X11R5" "X11R4"; do
5451 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5452 if test -d "$lib_dir" -a -d "$inc_dir"; then
5453 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5454 x_libraries="$x_libraries $lib_dir"
5455 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5457 case "$x_includes" in "$inc_dir"* ) ;; *)
5458 x_includes="$x_includes $inc_dir"
5459 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5464 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
5466 ld_switch_x_site="$X_LIBS"
5469 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5470 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5471 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5473 runpath="" runpath_dirs=""
5474 if test -n "$LD_RUN_PATH"; then
5475 runpath="$LD_RUN_PATH"
5476 elif test "$GCC" = "yes"; then
5477 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5478 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5479 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5480 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5481 case "$arg" in P,* | -L* | -R* )
5482 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5484 xe_runpath_dir="$dir"
5485 test "$xe_runpath_dir" != "/lib" -a \
5486 "$xe_runpath_dir" != "/usr/lib" -a \
5487 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5488 eval "$xe_add_unique_runpath_dir"
5493 ld_switch_run="$ld_switch_run_save"
5496 for arg in $ld_switch_site $ld_switch_x_site; do
5497 case "$arg" in -L*) {
5498 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5499 test "$xe_runpath_dir" != "/lib" -a \
5500 "$xe_runpath_dir" != "/usr/lib" -a \
5501 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5502 eval "$xe_add_unique_runpath_dir"
5505 if test "$opsys $need_motif" = "sol2 yes"; then
5506 xe_runpath_dir="/opt/SUNWdt/lib";
5507 eval "$xe_add_unique_runpath_dir";
5510 if test -n "$runpath"; then
5511 ld_switch_run="${dash_r}${runpath}"
5513 if test "$GCC" = "yes"; then
5514 set x $ld_switch_run; shift; ld_switch_run=""
5515 while test -n "$1"; do
5517 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5518 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5520 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5525 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5530 if test "$extra_verbose" = "yes"; then
5531 echo; echo "X11 compilation variables:"
5532 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5537 if test "$x_includes" != NONE; then
5538 for i in $x_includes; do
5539 if test -d "$i/bitmaps"; then
5540 bitmapdirs="$i/bitmaps:$bitmapdirs"
5542 if test -d "$i/X11/bitmaps"; then
5543 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5546 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5548 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5549 Defining BITMAPDIR = "$bitmapdirs"
5551 cat >> confdefs.h <<EOF
5552 #define BITMAPDIR "$bitmapdirs"
5557 echo "checking for X defines extracted by xmkmf" 1>&6
5558 echo "configure:5559: checking for X defines extracted by xmkmf" >&5
5560 if mkdir conftestdir; then
5562 cat > Imakefile <<'EOF'
5564 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5566 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5567 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5568 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5572 for word in $xmkmf_defines; do
5575 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5576 { test "$extra_verbose" = "yes" && cat << EOF
5579 cat >> confdefs.h <<EOF
5588 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5589 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5590 echo "configure:5591: checking for X11/Intrinsic.h" >&5
5592 cat > conftest.$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5595 #include <X11/Intrinsic.h>
5597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5598 { (eval echo configure:5599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5600 if test -z "$ac_err"; then
5602 eval "ac_cv_header_$ac_safe=yes"
5605 echo "configure: failed program was:" >&5
5606 cat conftest.$ac_ext >&5
5608 eval "ac_cv_header_$ac_safe=no"
5611 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5612 echo "$ac_t""yes" 1>&6
5615 echo "$ac_t""no" 1>&6
5616 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5621 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5622 echo "configure:5623: checking for XOpenDisplay in -lX11" >&5
5623 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5625 xe_check_libs=" -lX11 "
5626 cat > conftest.$ac_ext <<EOF
5627 #line 5628 "configure"
5628 #include "confdefs.h"
5629 /* Override any gcc2 internal prototype to avoid an error. */
5630 /* We use char because int might match the return type of a gcc2
5631 builtin and then its argument prototype would still apply. */
5632 char XOpenDisplay();
5638 if { (eval echo configure:5639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5640 eval "ac_cv_lib_$ac_lib_var=yes"
5642 echo "configure: failed program was:" >&5
5643 cat conftest.$ac_ext >&5
5645 eval "ac_cv_lib_$ac_lib_var=no"
5650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5651 echo "$ac_t""yes" 1>&6
5654 echo "$ac_t""no" 1>&6
5658 if test "$have_lib_x11" != "yes"; then
5660 xe_msg_checking="for XGetFontProperty in -lX11"
5661 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5662 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5663 echo "configure:5664: checking "$xe_msg_checking"" >&5
5664 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5666 xe_check_libs=" -lX11 -b i486-linuxaout"
5667 cat > conftest.$ac_ext <<EOF
5668 #line 5669 "configure"
5669 #include "confdefs.h"
5670 /* Override any gcc2 internal prototype to avoid an error. */
5671 /* We use char because int might match the return type of a gcc2
5672 builtin and then its argument prototype would still apply. */
5673 char XGetFontProperty();
5679 if { (eval echo configure:5680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5681 eval "ac_cv_lib_$ac_lib_var=yes"
5683 echo "configure: failed program was:" >&5
5684 cat conftest.$ac_ext >&5
5686 eval "ac_cv_lib_$ac_lib_var=no"
5691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5692 echo "$ac_t""yes" 1>&6
5693 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5695 echo "$ac_t""no" 1>&6
5696 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5702 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5705 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5706 echo "configure:5707: checking for XShapeSelectInput in -lXext" >&5
5707 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5709 xe_check_libs=" -lXext "
5710 cat > conftest.$ac_ext <<EOF
5711 #line 5712 "configure"
5712 #include "confdefs.h"
5713 /* Override any gcc2 internal prototype to avoid an error. */
5714 /* We use char because int might match the return type of a gcc2
5715 builtin and then its argument prototype would still apply. */
5716 char XShapeSelectInput();
5722 if { (eval echo configure:5723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5724 eval "ac_cv_lib_$ac_lib_var=yes"
5726 echo "configure: failed program was:" >&5
5727 cat conftest.$ac_ext >&5
5729 eval "ac_cv_lib_$ac_lib_var=no"
5734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5735 echo "$ac_t""yes" 1>&6
5736 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5738 echo "$ac_t""no" 1>&6
5744 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5745 echo "configure:5746: checking for XtOpenDisplay in -lXt" >&5
5746 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5748 xe_check_libs=" -lXt "
5749 cat > conftest.$ac_ext <<EOF
5750 #line 5751 "configure"
5751 #include "confdefs.h"
5752 /* Override any gcc2 internal prototype to avoid an error. */
5753 /* We use char because int might match the return type of a gcc2
5754 builtin and then its argument prototype would still apply. */
5755 char XtOpenDisplay();
5761 if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5763 eval "ac_cv_lib_$ac_lib_var=yes"
5765 echo "configure: failed program was:" >&5
5766 cat conftest.$ac_ext >&5
5768 eval "ac_cv_lib_$ac_lib_var=no"
5773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5774 echo "$ac_t""yes" 1>&6
5775 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5777 echo "$ac_t""no" 1>&6
5778 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5783 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5784 echo "configure:5785: checking the version of X11 being used" >&5
5785 cat > conftest.$ac_ext <<EOF
5786 #line 5787 "configure"
5787 #include "confdefs.h"
5788 #include <X11/Intrinsic.h>
5789 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5791 if { (eval echo configure:5792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5793 ./conftest foobar; x11_release=$?
5796 echo "configure: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5802 echo "$ac_t""R${x11_release}" 1>&6
5803 { test "$extra_verbose" = "yes" && cat << EOF
5804 Defining THIS_IS_X11R${x11_release}
5806 cat >> confdefs.h <<EOF
5807 #define THIS_IS_X11R${x11_release} 1
5812 for ac_hdr in X11/Xlocale.h
5814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5816 echo "configure:5817: checking for $ac_hdr" >&5
5818 cat > conftest.$ac_ext <<EOF
5819 #line 5820 "configure"
5820 #include "confdefs.h"
5823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5824 { (eval echo configure:5825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5826 if test -z "$ac_err"; then
5828 eval "ac_cv_header_$ac_safe=yes"
5831 echo "configure: failed program was:" >&5
5832 cat conftest.$ac_ext >&5
5834 eval "ac_cv_header_$ac_safe=no"
5837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5838 echo "$ac_t""yes" 1>&6
5839 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5840 { test "$extra_verbose" = "yes" && cat << EOF
5843 cat >> confdefs.h <<EOF
5844 #define $ac_tr_hdr 1
5849 echo "$ac_t""no" 1>&6
5854 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5855 echo "configure:5856: checking for XFree86" >&5
5856 if test -d "/usr/X386/include" -o \
5857 -f "/etc/XF86Config" -o \
5858 -f "/etc/X11/XF86Config" -o \
5859 -f "/usr/X11R6/lib/X11/XF86Config"; then
5860 echo "$ac_t""yes" 1>&6
5861 { test "$extra_verbose" = "yes" && cat << \EOF
5862 Defining HAVE_XFREE386
5864 cat >> confdefs.h <<\EOF
5865 #define HAVE_XFREE386 1
5870 echo "$ac_t""no" 1>&6
5873 test -z "$with_xmu" && {
5874 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5875 echo "configure:5876: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5876 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5878 xe_check_libs=" -lXmu "
5879 cat > conftest.$ac_ext <<EOF
5880 #line 5881 "configure"
5881 #include "confdefs.h"
5882 /* Override any gcc2 internal prototype to avoid an error. */
5883 /* We use char because int might match the return type of a gcc2
5884 builtin and then its argument prototype would still apply. */
5885 char XmuReadBitmapDataFromFile();
5888 XmuReadBitmapDataFromFile()
5891 if { (eval echo configure:5892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5893 eval "ac_cv_lib_$ac_lib_var=yes"
5895 echo "configure: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5898 eval "ac_cv_lib_$ac_lib_var=no"
5903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5904 echo "$ac_t""yes" 1>&6
5907 echo "$ac_t""no" 1>&6
5912 if test "$with_xmu" = "no"; then
5913 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
5914 echo " xemacs will be linked with \"xmu.o\""
5917 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
5918 { test "$extra_verbose" = "yes" && cat << \EOF
5921 cat >> confdefs.h <<\EOF
5929 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5930 echo "configure:5931: checking for main in -lXbsd" >&5
5931 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5933 xe_check_libs=" -lXbsd "
5934 cat > conftest.$ac_ext <<EOF
5935 #line 5936 "configure"
5936 #include "confdefs.h"
5942 if { (eval echo configure:5943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5944 eval "ac_cv_lib_$ac_lib_var=yes"
5946 echo "configure: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5949 eval "ac_cv_lib_$ac_lib_var=no"
5954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5955 echo "$ac_t""yes" 1>&6
5956 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
5958 echo "$ac_t""no" 1>&6
5963 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
5964 if test "$GCC" = "yes"; then
5965 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
5966 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
5969 "xlc" ) CC="xlc_r" ;;
5970 "xlC" ) CC="xlC_r" ;;
5977 if test "$with_msw" != "no"; then
5978 echo "checking for MS-Windows" 1>&6
5979 echo "configure:5980: checking for MS-Windows" >&5
5981 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
5982 echo "configure:5983: checking for main in -lgdi32" >&5
5983 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
5985 xe_check_libs=" -lgdi32 "
5986 cat > conftest.$ac_ext <<EOF
5987 #line 5988 "configure"
5988 #include "confdefs.h"
5994 if { (eval echo configure:5995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5996 eval "ac_cv_lib_$ac_lib_var=yes"
5998 echo "configure: failed program was:" >&5
5999 cat conftest.$ac_ext >&5
6001 eval "ac_cv_lib_$ac_lib_var=no"
6006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6007 echo "$ac_t""yes" 1>&6
6010 echo "$ac_t""no" 1>&6
6014 if test "$with_msw" = "yes"; then
6015 { test "$extra_verbose" = "yes" && cat << \EOF
6016 Defining HAVE_MS_WINDOWS
6018 cat >> confdefs.h <<\EOF
6019 #define HAVE_MS_WINDOWS 1
6023 install_pp="$blddir/lib-src/installexe.sh"
6024 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
6025 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6026 if test "$window_system" != x11; then
6028 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6029 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6030 echo " xemacs will be linked with \"scrollbar-msw.o\""
6032 test "$with_menubars" != "no" && with_menubars=msw \
6033 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6034 echo " xemacs will be linked with \"menubar-msw.o\""
6036 test "$with_toolbars" != "no" && with_toolbars=msw \
6037 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6038 echo " xemacs will be linked with \"toolbar-msw.o\""
6040 test "$with_dialogs" != "no" && with_dialogs=msw \
6041 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6042 echo " xemacs will be linked with \"dialog-msw.o\""
6045 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6046 echo " xemacs will be linked with \"scrollbar-msw.o\""
6048 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6049 echo " xemacs will be linked with \"menubar-msw.o\""
6051 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6052 echo " xemacs will be linked with \"toolbar-msw.o\""
6054 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6055 echo " xemacs will be linked with \"dialog-msw.o\""
6058 cat > conftest.$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6062 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6064 if { (eval echo configure:6065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6066 { test "$extra_verbose" = "yes" && cat << \EOF
6067 Defining HAVE_MSG_SELECT
6069 cat >> confdefs.h <<\EOF
6070 #define HAVE_MSG_SELECT 1
6076 echo "configure: failed program was:" >&5
6077 cat conftest.$ac_ext >&5
6081 with_file_coding=yes
6082 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
6083 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\""
6090 test -z "$window_system" && window_system="none"
6092 if test "$window_system" = "none"; then
6093 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6095 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6096 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6098 eval "with_${feature}=no"
6101 test -z "$with_toolbars" && with_toolbars=yes
6104 if test "$with_msw" != "yes"; then
6105 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6107 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6108 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6110 eval "with_${feature}=no"
6116 if test "$with_x11" != "yes"; then
6117 for feature in tooltalk cde offix wmcommand xim xmu
6119 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6120 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6122 eval "with_${feature}=no"
6128 case "$window_system" in
6129 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6130 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6131 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6134 case "$x_libraries" in *X11R4* )
6135 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6136 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6139 echo "checking for WM_COMMAND option" 1>&6
6140 echo "configure:6141: checking for WM_COMMAND option" >&5;
6141 if test "$with_wmcommand" != "no"; then
6142 { test "$extra_verbose" = "yes" && cat << \EOF
6143 Defining HAVE_WMCOMMAND
6145 cat >> confdefs.h <<\EOF
6146 #define HAVE_WMCOMMAND 1
6152 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6153 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6154 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6155 echo "configure:6156: checking for X11/Xauth.h" >&5
6157 cat > conftest.$ac_ext <<EOF
6158 #line 6159 "configure"
6159 #include "confdefs.h"
6160 #include <X11/Xauth.h>
6162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6163 { (eval echo configure:6164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6165 if test -z "$ac_err"; then
6167 eval "ac_cv_header_$ac_safe=yes"
6170 echo "configure: failed program was:" >&5
6171 cat conftest.$ac_ext >&5
6173 eval "ac_cv_header_$ac_safe=no"
6176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6177 echo "$ac_t""yes" 1>&6
6180 echo "$ac_t""no" 1>&6
6184 test -z "$with_xauth" && {
6185 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6186 echo "configure:6187: checking for XauGetAuthByAddr in -lXau" >&5
6187 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6189 xe_check_libs=" -lXau "
6190 cat > conftest.$ac_ext <<EOF
6191 #line 6192 "configure"
6192 #include "confdefs.h"
6193 /* Override any gcc2 internal prototype to avoid an error. */
6194 /* We use char because int might match the return type of a gcc2
6195 builtin and then its argument prototype would still apply. */
6196 char XauGetAuthByAddr();
6202 if { (eval echo configure:6203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6204 eval "ac_cv_lib_$ac_lib_var=yes"
6206 echo "configure: failed program was:" >&5
6207 cat conftest.$ac_ext >&5
6209 eval "ac_cv_lib_$ac_lib_var=no"
6214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6215 echo "$ac_t""yes" 1>&6
6218 echo "$ac_t""no" 1>&6
6223 test -z "$with_xauth" && with_xauth=yes
6224 if test "$with_xauth" = "yes"; then
6225 { test "$extra_verbose" = "yes" && cat << \EOF
6228 cat >> confdefs.h <<\EOF
6229 #define HAVE_XAUTH 1
6235 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
6243 if test "$with_tooltalk" != "no" ; then
6244 for dir in "" "Tt/" "desktop/" ; do
6245 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6246 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6247 echo "configure:6248: checking for ${dir}tt_c.h" >&5
6249 cat > conftest.$ac_ext <<EOF
6250 #line 6251 "configure"
6251 #include "confdefs.h"
6252 #include <${dir}tt_c.h>
6254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6255 { (eval echo configure:6256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6257 if test -z "$ac_err"; then
6259 eval "ac_cv_header_$ac_safe=yes"
6262 echo "configure: failed program was:" >&5
6263 cat conftest.$ac_ext >&5
6265 eval "ac_cv_header_$ac_safe=no"
6268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6269 echo "$ac_t""yes" 1>&6
6270 tt_c_h_path="${dir}tt_c.h"; break
6272 echo "$ac_t""no" 1>&6
6276 if test -z "$tt_c_h_path"; then
6277 if test "$with_tooltalk" = "yes"; then
6278 (echo "$progname: Usage error:"
6279 echo " " "Unable to find required tooltalk header files."
6280 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6285 if test "$with_tooltalk" != "no" ; then
6286 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6288 xe_msg_checking="for tt_message_create in -ltt"
6289 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6290 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6291 echo "configure:6292: checking "$xe_msg_checking"" >&5
6292 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6294 xe_check_libs=" -ltt $extra_libs"
6295 cat > conftest.$ac_ext <<EOF
6296 #line 6297 "configure"
6297 #include "confdefs.h"
6298 /* Override any gcc2 internal prototype to avoid an error. */
6299 /* We use char because int might match the return type of a gcc2
6300 builtin and then its argument prototype would still apply. */
6301 char tt_message_create();
6307 if { (eval echo configure:6308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6309 eval "ac_cv_lib_$ac_lib_var=yes"
6311 echo "configure: failed program was:" >&5
6312 cat conftest.$ac_ext >&5
6314 eval "ac_cv_lib_$ac_lib_var=no"
6319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6320 echo "$ac_t""yes" 1>&6
6321 tt_libs="-ltt $extra_libs"; break
6323 echo "$ac_t""no" 1>&6
6329 if test -z "$tt_libs"; then
6330 if test "$with_tooltalk" = "yes"; then
6331 (echo "$progname: Usage error:"
6332 echo " " "Unable to find required tooltalk libraries."
6333 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6338 test -z "$with_tooltalk" && with_tooltalk=yes
6339 if test "$with_tooltalk" = "yes"; then
6340 { test "$extra_verbose" = "yes" && cat << \EOF
6343 cat >> confdefs.h <<\EOF
6348 { test "$extra_verbose" = "yes" && cat << EOF
6349 Defining TT_C_H_PATH = "$tt_c_h_path"
6351 cat >> confdefs.h <<EOF
6352 #define TT_C_H_PATH "$tt_c_h_path"
6356 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6357 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6358 echo " xemacs will be linked with \"tooltalk.o\""
6362 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6363 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6364 echo "configure:6365: checking for Dt/Dt.h" >&5
6366 cat > conftest.$ac_ext <<EOF
6367 #line 6368 "configure"
6368 #include "confdefs.h"
6371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6372 { (eval echo configure:6373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6374 if test -z "$ac_err"; then
6376 eval "ac_cv_header_$ac_safe=yes"
6379 echo "configure: failed program was:" >&5
6380 cat conftest.$ac_ext >&5
6382 eval "ac_cv_header_$ac_safe=no"
6385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6386 echo "$ac_t""yes" 1>&6
6389 echo "$ac_t""no" 1>&6
6393 test -z "$with_cde" && {
6394 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6395 echo "configure:6396: checking for DtDndDragStart in -lDtSvc" >&5
6396 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6398 xe_check_libs=" -lDtSvc "
6399 cat > conftest.$ac_ext <<EOF
6400 #line 6401 "configure"
6401 #include "confdefs.h"
6402 /* Override any gcc2 internal prototype to avoid an error. */
6403 /* We use char because int might match the return type of a gcc2
6404 builtin and then its argument prototype would still apply. */
6405 char DtDndDragStart();
6411 if { (eval echo configure:6412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6413 eval "ac_cv_lib_$ac_lib_var=yes"
6415 echo "configure: failed program was:" >&5
6416 cat conftest.$ac_ext >&5
6418 eval "ac_cv_lib_$ac_lib_var=no"
6423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6424 echo "$ac_t""yes" 1>&6
6427 echo "$ac_t""no" 1>&6
6432 test -z "$with_cde" && with_cde=yes
6433 if test "$with_dragndrop" = no; then
6434 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6437 if test "$with_cde" = "yes" ; then
6438 { test "$extra_verbose" = "yes" && cat << \EOF
6441 cat >> confdefs.h <<\EOF
6446 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6447 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6448 with_tooltalk=yes # CDE requires Tooltalk
6449 need_motif=yes # CDE requires Motif
6452 test "$window_system" != "x11" && with_offix=no
6453 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6454 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6457 if test "$with_dragndrop" = no; then
6458 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6461 if test "$with_cde" = yes; then
6462 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6465 test -z "$with_offix" && with_offix=no
6466 if test "$with_offix" = "yes"; then
6467 { test "$extra_verbose" = "yes" && cat << \EOF
6468 Defining HAVE_OFFIX_DND
6470 cat >> confdefs.h <<\EOF
6471 #define HAVE_OFFIX_DND 1
6475 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6476 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6479 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6480 echo "configure:6481: checking if drag and drop API is needed" >&5
6481 if test "$with_dragndrop" != "no" ; then
6482 if test -n "$dragndrop_proto" ; then
6484 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6485 { test "$extra_verbose" = "yes" && cat << \EOF
6486 Defining HAVE_DRAGNDROP
6488 cat >> confdefs.h <<\EOF
6489 #define HAVE_DRAGNDROP 1
6493 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6496 echo "$ac_t""no" 1>&6
6500 echo "checking for LDAP" 1>&6
6501 echo "configure:6502: checking for LDAP" >&5
6502 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6503 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6504 echo "configure:6505: checking for ldap.h" >&5
6506 cat > conftest.$ac_ext <<EOF
6507 #line 6508 "configure"
6508 #include "confdefs.h"
6511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6512 { (eval echo configure:6513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6514 if test -z "$ac_err"; then
6516 eval "ac_cv_header_$ac_safe=yes"
6519 echo "configure: failed program was:" >&5
6520 cat conftest.$ac_ext >&5
6522 eval "ac_cv_header_$ac_safe=no"
6525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6526 echo "$ac_t""yes" 1>&6
6529 echo "$ac_t""no" 1>&6
6533 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6534 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6535 echo "configure:6536: checking for lber.h" >&5
6537 cat > conftest.$ac_ext <<EOF
6538 #line 6539 "configure"
6539 #include "confdefs.h"
6542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6543 { (eval echo configure:6544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6545 if test -z "$ac_err"; then
6547 eval "ac_cv_header_$ac_safe=yes"
6550 echo "configure: failed program was:" >&5
6551 cat conftest.$ac_ext >&5
6553 eval "ac_cv_header_$ac_safe=no"
6556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6557 echo "$ac_t""yes" 1>&6
6560 echo "$ac_t""no" 1>&6
6564 if test "$with_ldap" != "no"; then
6565 test -z "$with_umich_ldap" && {
6566 xe_msg_checking="for ldap_open in -lldap"
6567 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6568 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6569 echo "configure:6570: checking "$xe_msg_checking"" >&5
6570 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6572 xe_check_libs=" -lldap -llber"
6573 cat > conftest.$ac_ext <<EOF
6574 #line 6575 "configure"
6575 #include "confdefs.h"
6576 /* Override any gcc2 internal prototype to avoid an error. */
6577 /* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6585 if { (eval echo configure:6586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6587 eval "ac_cv_lib_$ac_lib_var=yes"
6589 echo "configure: failed program was:" >&5
6590 cat conftest.$ac_ext >&5
6592 eval "ac_cv_lib_$ac_lib_var=no"
6597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6598 echo "$ac_t""yes" 1>&6
6601 echo "$ac_t""no" 1>&6
6606 test "$with_umich_ldap" = "no" && {
6607 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
6608 echo "configure:6609: checking for ldap_set_option in -lldap10" >&5
6609 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
6611 xe_check_libs=" -lldap10 "
6612 cat > conftest.$ac_ext <<EOF
6613 #line 6614 "configure"
6614 #include "confdefs.h"
6615 /* Override any gcc2 internal prototype to avoid an error. */
6616 /* We use char because int might match the return type of a gcc2
6617 builtin and then its argument prototype would still apply. */
6618 char ldap_set_option();
6624 if { (eval echo configure:6625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6626 eval "ac_cv_lib_$ac_lib_var=yes"
6628 echo "configure: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6631 eval "ac_cv_lib_$ac_lib_var=no"
6636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6637 echo "$ac_t""yes" 1>&6
6640 echo "$ac_t""no" 1>&6
6645 test -z "$with_ldap" -a \( "$with_umich_ldap" = "yes" -o "$with_ns_ldap" = "yes" \) && with_ldap=yes
6647 if test "$with_ldap" = "yes"; then
6648 { test "$extra_verbose" = "yes" && cat << \EOF
6651 cat >> confdefs.h <<\EOF
6656 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6657 echo " xemacs will be linked with \"eldap.o\""
6659 if test "$with_umich_ldap" = "yes" ; then
6660 { test "$extra_verbose" = "yes" && cat << \EOF
6661 Defining HAVE_UMICH_LDAP
6663 cat >> confdefs.h <<\EOF
6664 #define HAVE_UMICH_LDAP 1
6668 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6669 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6670 elif test "$with_ldap" = "yes" -a "$with_ns_ldap" = "yes" ; then
6671 { test "$extra_verbose" = "yes" && cat << \EOF
6672 Defining HAVE_NS_LDAP
6674 cat >> confdefs.h <<\EOF
6675 #define HAVE_NS_LDAP 1
6679 LIBS="-lldap10 $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap10\" to \$LIBS"; fi
6680 elif test "$with_ldap" = "yes" ; then
6681 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6686 if test "$window_system" != "none"; then
6687 echo "checking for graphics libraries" 1>&6
6688 echo "configure:6689: checking for graphics libraries" >&5
6691 if test -z "$with_xpm"; then
6692 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6693 echo "configure:6694: checking for Xpm - no older than 3.4f" >&5
6695 cat > conftest.$ac_ext <<EOF
6696 #line 6697 "configure"
6697 #include "confdefs.h"
6698 #include <X11/xpm.h>
6699 int main(int c, char **v) {
6701 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6702 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6704 if { (eval echo configure:6705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6706 ./conftest dummy_arg; xpm_status=$?;
6707 if test "$xpm_status" = "0"; then
6711 if test "$xpm_status" = "1"; then
6712 xpm_problem="Xpm library version and header file version don't match!"
6713 elif test "$xpm_status" = "2"; then
6714 xpm_problem="Xpm library version is too old!"
6716 xpm_problem="Internal xpm detection logic error!"
6719 *** WARNING *** $xpm_problem
6720 I'm not touching that with a 10-foot pole!
6721 If you really want to use the installed version of Xpm, rerun
6722 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
6726 echo "configure: failed program was:" >&5
6727 cat conftest.$ac_ext >&5
6733 echo "$ac_t""$with_xpm" 1>&6
6735 if test "$with_xpm" = "yes"; then
6736 { test "$extra_verbose" = "yes" && cat << \EOF
6739 cat >> confdefs.h <<\EOF
6744 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6745 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6746 echo "configure:6747: checking for \"FOR_MSW\" xpm" >&5
6748 cat > conftest.$ac_ext <<EOF
6749 #line 6750 "configure"
6750 #include "confdefs.h"
6753 XpmCreatePixmapFromData()
6756 if { (eval echo configure:6757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6760 echo "configure: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6767 echo "$ac_t""$xpm_for_msw" 1>&6
6768 if test "$xpm_for_msw" = "yes"; then
6769 { test "$extra_verbose" = "yes" && cat << \EOF
6772 cat >> confdefs.h <<\EOF
6780 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6781 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6782 echo "configure:6783: checking for compface.h" >&5
6784 cat > conftest.$ac_ext <<EOF
6785 #line 6786 "configure"
6786 #include "confdefs.h"
6787 #include <compface.h>
6789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6790 { (eval echo configure:6791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6792 if test -z "$ac_err"; then
6794 eval "ac_cv_header_$ac_safe=yes"
6797 echo "configure: failed program was:" >&5
6798 cat conftest.$ac_ext >&5
6800 eval "ac_cv_header_$ac_safe=no"
6803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6804 echo "$ac_t""yes" 1>&6
6807 echo "$ac_t""no" 1>&6
6811 test -z "$with_xface" && {
6812 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6813 echo "configure:6814: checking for UnGenFace in -lcompface" >&5
6814 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6816 xe_check_libs=" -lcompface "
6817 cat > conftest.$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6820 /* Override any gcc2 internal prototype to avoid an error. */
6821 /* We use char because int might match the return type of a gcc2
6822 builtin and then its argument prototype would still apply. */
6829 if { (eval echo configure:6830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6831 eval "ac_cv_lib_$ac_lib_var=yes"
6833 echo "configure: failed program was:" >&5
6834 cat conftest.$ac_ext >&5
6836 eval "ac_cv_lib_$ac_lib_var=no"
6841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6842 echo "$ac_t""yes" 1>&6
6845 echo "$ac_t""no" 1>&6
6850 test -z "$with_xface" && with_xface=yes
6851 if test "$with_xface" = "yes"; then
6852 { test "$extra_verbose" = "yes" && cat << \EOF
6855 cat >> confdefs.h <<\EOF
6856 #define HAVE_XFACE 1
6860 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
6863 if test "$with_gif" != "no"; then
6865 { test "$extra_verbose" = "yes" && cat << \EOF
6868 cat >> confdefs.h <<\EOF
6873 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
6874 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
6878 if test "$with_png $with_tiff" != "no no"; then
6880 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6881 echo "configure:6882: checking for inflate in -lc" >&5
6882 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6884 xe_check_libs=" -lc "
6885 cat > conftest.$ac_ext <<EOF
6886 #line 6887 "configure"
6887 #include "confdefs.h"
6888 /* Override any gcc2 internal prototype to avoid an error. */
6889 /* We use char because int might match the return type of a gcc2
6890 builtin and then its argument prototype would still apply. */
6897 if { (eval echo configure:6898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6899 eval "ac_cv_lib_$ac_lib_var=yes"
6901 echo "configure: failed program was:" >&5
6902 cat conftest.$ac_ext >&5
6904 eval "ac_cv_lib_$ac_lib_var=no"
6909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6910 echo "$ac_t""yes" 1>&6
6913 echo "$ac_t""no" 1>&6
6915 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6916 echo "configure:6917: checking for inflate in -lz" >&5
6917 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6919 xe_check_libs=" -lz "
6920 cat > conftest.$ac_ext <<EOF
6921 #line 6922 "configure"
6922 #include "confdefs.h"
6923 /* Override any gcc2 internal prototype to avoid an error. */
6924 /* We use char because int might match the return type of a gcc2
6925 builtin and then its argument prototype would still apply. */
6932 if { (eval echo configure:6933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6934 eval "ac_cv_lib_$ac_lib_var=yes"
6936 echo "configure: failed program was:" >&5
6937 cat conftest.$ac_ext >&5
6939 eval "ac_cv_lib_$ac_lib_var=no"
6944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6945 echo "$ac_t""yes" 1>&6
6946 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
6948 echo "$ac_t""no" 1>&6
6950 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
6951 echo "configure:6952: checking for inflate in -lgz" >&5
6952 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
6954 xe_check_libs=" -lgz "
6955 cat > conftest.$ac_ext <<EOF
6956 #line 6957 "configure"
6957 #include "confdefs.h"
6958 /* Override any gcc2 internal prototype to avoid an error. */
6959 /* We use char because int might match the return type of a gcc2
6960 builtin and then its argument prototype would still apply. */
6967 if { (eval echo configure:6968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6969 eval "ac_cv_lib_$ac_lib_var=yes"
6971 echo "configure: failed program was:" >&5
6972 cat conftest.$ac_ext >&5
6974 eval "ac_cv_lib_$ac_lib_var=no"
6979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6980 echo "$ac_t""yes" 1>&6
6981 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
6983 echo "$ac_t""no" 1>&6
6995 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6996 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6997 echo "configure:6998: checking for jpeglib.h" >&5
6999 cat > conftest.$ac_ext <<EOF
7000 #line 7001 "configure"
7001 #include "confdefs.h"
7002 #include <jpeglib.h>
7004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7005 { (eval echo configure:7006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7007 if test -z "$ac_err"; then
7009 eval "ac_cv_header_$ac_safe=yes"
7012 echo "configure: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7015 eval "ac_cv_header_$ac_safe=no"
7018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7019 echo "$ac_t""yes" 1>&6
7022 echo "$ac_t""no" 1>&6
7026 test -z "$with_jpeg" && {
7027 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7028 echo "configure:7029: checking for jpeg_destroy_decompress in -ljpeg" >&5
7029 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7031 xe_check_libs=" -ljpeg "
7032 cat > conftest.$ac_ext <<EOF
7033 #line 7034 "configure"
7034 #include "confdefs.h"
7035 /* Override any gcc2 internal prototype to avoid an error. */
7036 /* We use char because int might match the return type of a gcc2
7037 builtin and then its argument prototype would still apply. */
7038 char jpeg_destroy_decompress();
7041 jpeg_destroy_decompress()
7044 if { (eval echo configure:7045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7046 eval "ac_cv_lib_$ac_lib_var=yes"
7048 echo "configure: failed program was:" >&5
7049 cat conftest.$ac_ext >&5
7051 eval "ac_cv_lib_$ac_lib_var=no"
7056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7057 echo "$ac_t""yes" 1>&6
7060 echo "$ac_t""no" 1>&6
7065 test -z "$with_jpeg" && with_jpeg=yes
7066 if test "$with_jpeg" = "yes"; then
7067 { test "$extra_verbose" = "yes" && cat << \EOF
7070 cat >> confdefs.h <<\EOF
7075 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7079 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7080 echo "configure:7081: checking for pow" >&5
7082 cat > conftest.$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7085 /* System header to define __stub macros and hopefully few prototypes,
7086 which can conflict with char pow(); below. */
7088 /* Override any gcc2 internal prototype to avoid an error. */
7089 /* We use char because int might match the return type of a gcc2
7090 builtin and then its argument prototype would still apply. */
7095 /* The GNU C library defines this for functions which it implements
7096 to always fail with ENOSYS. Some functions are actually named
7097 something starting with __ and the normal name is an alias. */
7098 #if defined (__stub_pow) || defined (__stub___pow)
7106 if { (eval echo configure:7107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7108 eval "ac_cv_func_pow=yes"
7110 echo "configure: failed program was:" >&5
7111 cat conftest.$ac_ext >&5
7113 eval "ac_cv_func_pow=no"
7117 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7118 echo "$ac_t""yes" 1>&6
7121 echo "$ac_t""no" 1>&6
7125 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7126 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7127 echo "configure:7128: checking for png.h" >&5
7129 cat > conftest.$ac_ext <<EOF
7130 #line 7131 "configure"
7131 #include "confdefs.h"
7134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7135 { (eval echo configure:7136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7137 if test -z "$ac_err"; then
7139 eval "ac_cv_header_$ac_safe=yes"
7142 echo "configure: failed program was:" >&5
7143 cat conftest.$ac_ext >&5
7145 eval "ac_cv_header_$ac_safe=no"
7148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7149 echo "$ac_t""yes" 1>&6
7152 echo "$ac_t""no" 1>&6
7156 test -z "$with_png" && {
7157 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7158 echo "configure:7159: checking for png_read_image in -lpng" >&5
7159 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7161 xe_check_libs=" -lpng "
7162 cat > conftest.$ac_ext <<EOF
7163 #line 7164 "configure"
7164 #include "confdefs.h"
7165 /* Override any gcc2 internal prototype to avoid an error. */
7166 /* We use char because int might match the return type of a gcc2
7167 builtin and then its argument prototype would still apply. */
7168 char png_read_image();
7174 if { (eval echo configure:7175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7176 eval "ac_cv_lib_$ac_lib_var=yes"
7178 echo "configure: failed program was:" >&5
7179 cat conftest.$ac_ext >&5
7181 eval "ac_cv_lib_$ac_lib_var=no"
7186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7187 echo "$ac_t""yes" 1>&6
7190 echo "$ac_t""no" 1>&6
7195 if test -z "$with_png"; then
7196 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7197 echo "configure:7198: checking for workable png version information" >&5
7198 xe_check_libs="-lpng -lz"
7199 cat > conftest.$ac_ext <<EOF
7200 #line 7201 "configure"
7201 #include "confdefs.h"
7203 int main(int c, char **v) {
7204 if (c == 1) return 0;
7205 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7206 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7208 if { (eval echo configure:7209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7210 ./conftest dummy_arg; png_status=$?;
7211 if test "$png_status" = "0"; then
7215 if test "$png_status" = "1"; then
7216 png_problem="PNG library version and header file don't match!"
7217 elif test "$png_status" = "2"; then
7218 png_problem="PNG library version too old (pre 1.0.2)!"
7221 *** WARNING *** $png_problem
7222 I'm not touching that with a 10-foot pole!
7223 If you really want to use the installed version of libPNG, rerun
7224 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7228 echo "configure: failed program was:" >&5
7229 cat conftest.$ac_ext >&5
7235 echo "$ac_t""$with_png" 1>&6
7237 if test "$with_png" = "yes"; then
7238 { test "$extra_verbose" = "yes" && cat << \EOF
7241 cat >> confdefs.h <<\EOF
7246 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7249 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7250 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7251 echo "configure:7252: checking for tiffio.h" >&5
7253 cat > conftest.$ac_ext <<EOF
7254 #line 7255 "configure"
7255 #include "confdefs.h"
7258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7259 { (eval echo configure:7260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7261 if test -z "$ac_err"; then
7263 eval "ac_cv_header_$ac_safe=yes"
7266 echo "configure: failed program was:" >&5
7267 cat conftest.$ac_ext >&5
7269 eval "ac_cv_header_$ac_safe=no"
7272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7273 echo "$ac_t""yes" 1>&6
7276 echo "$ac_t""no" 1>&6
7280 test -z "$with_tiff" && {
7281 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7282 echo "configure:7283: checking for TIFFClientOpen in -ltiff" >&5
7283 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7285 xe_check_libs=" -ltiff "
7286 cat > conftest.$ac_ext <<EOF
7287 #line 7288 "configure"
7288 #include "confdefs.h"
7289 /* Override any gcc2 internal prototype to avoid an error. */
7290 /* We use char because int might match the return type of a gcc2
7291 builtin and then its argument prototype would still apply. */
7292 char TIFFClientOpen();
7298 if { (eval echo configure:7299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7300 eval "ac_cv_lib_$ac_lib_var=yes"
7302 echo "configure: failed program was:" >&5
7303 cat conftest.$ac_ext >&5
7305 eval "ac_cv_lib_$ac_lib_var=no"
7310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7311 echo "$ac_t""yes" 1>&6
7314 echo "$ac_t""no" 1>&6
7319 test -z "$with_tiff" && with_tiff=yes
7320 if test "$with_tiff" = "yes"; then
7321 { test "$extra_verbose" = "yes" && cat << \EOF
7324 cat >> confdefs.h <<\EOF
7329 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7334 if test "$with_x11" = "yes"; then
7336 echo "checking for X11 graphics libraries" 1>&6
7337 echo "configure:7338: checking for X11 graphics libraries" >&5
7340 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7341 echo "configure:7342: checking for XawScrollbarSetThumb in -lXaw" >&5
7342 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7344 xe_check_libs=" -lXaw "
7345 cat > conftest.$ac_ext <<EOF
7346 #line 7347 "configure"
7347 #include "confdefs.h"
7348 /* Override any gcc2 internal prototype to avoid an error. */
7349 /* We use char because int might match the return type of a gcc2
7350 builtin and then its argument prototype would still apply. */
7351 char XawScrollbarSetThumb();
7354 XawScrollbarSetThumb()
7357 if { (eval echo configure:7358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7359 eval "ac_cv_lib_$ac_lib_var=yes"
7361 echo "configure: failed program was:" >&5
7362 cat conftest.$ac_ext >&5
7364 eval "ac_cv_lib_$ac_lib_var=no"
7369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7370 echo "$ac_t""yes" 1>&6
7373 echo "$ac_t""no" 1>&6
7379 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7380 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7381 echo "configure:7382: checking for Xm/Xm.h" >&5
7383 cat > conftest.$ac_ext <<EOF
7384 #line 7385 "configure"
7385 #include "confdefs.h"
7388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7389 { (eval echo configure:7390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7391 if test -z "$ac_err"; then
7393 eval "ac_cv_header_$ac_safe=yes"
7396 echo "configure: failed program was:" >&5
7397 cat conftest.$ac_ext >&5
7399 eval "ac_cv_header_$ac_safe=no"
7402 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7403 echo "$ac_t""yes" 1>&6
7405 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7406 echo "configure:7407: checking for XmStringFree in -lXm" >&5
7407 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7409 xe_check_libs=" -lXm "
7410 cat > conftest.$ac_ext <<EOF
7411 #line 7412 "configure"
7412 #include "confdefs.h"
7413 /* Override any gcc2 internal prototype to avoid an error. */
7414 /* We use char because int might match the return type of a gcc2
7415 builtin and then its argument prototype would still apply. */
7416 char XmStringFree();
7422 if { (eval echo configure:7423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7424 eval "ac_cv_lib_$ac_lib_var=yes"
7426 echo "configure: failed program was:" >&5
7427 cat conftest.$ac_ext >&5
7429 eval "ac_cv_lib_$ac_lib_var=no"
7434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7435 echo "$ac_t""yes" 1>&6
7438 echo "$ac_t""no" 1>&6
7444 echo "$ac_t""no" 1>&6
7449 if test "$have_motif" = "yes"; then
7450 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7451 echo "configure:7452: checking for Lesstif" >&5
7452 cat > conftest.$ac_ext <<EOF
7453 #line 7454 "configure"
7454 #include "confdefs.h"
7456 #ifdef LESSTIF_VERSION
7461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7462 egrep "yes" >/dev/null 2>&1; then
7471 echo "$ac_t""$have_lesstif" 1>&6
7476 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
7477 with_menubars="lucid" ;;
7479 case "$with_dialogs" in "" | "yes" | "lucid" )
7480 if test "$have_motif" = "yes"; then with_dialogs="motif"
7481 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
7482 else with_dialogs=no
7485 case "$with_scrollbars" in "" | "yes" )
7486 with_scrollbars="lucid" ;;
7489 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars"
7491 case "$all_widgets" in *athena* )
7492 { test "$extra_verbose" = "yes" && cat << \EOF
7493 Defining LWLIB_USES_ATHENA
7495 cat >> confdefs.h <<\EOF
7496 #define LWLIB_USES_ATHENA 1
7500 { test "$extra_verbose" = "yes" && cat << \EOF
7501 Defining NEED_ATHENA
7503 cat >> confdefs.h <<\EOF
7504 #define NEED_ATHENA 1
7508 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
7509 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
7512 case "$all_widgets" in *motif* )
7513 { test "$extra_verbose" = "yes" && cat << \EOF
7514 Defining LWLIB_USES_MOTIF
7516 cat >> confdefs.h <<\EOF
7517 #define LWLIB_USES_MOTIF 1
7521 { test "$extra_verbose" = "yes" && cat << \EOF
7524 cat >> confdefs.h <<\EOF
7525 #define NEED_MOTIF 1
7529 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
7533 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7534 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7535 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
7536 case "$all_widgets" in *lucid* )
7537 { test "$extra_verbose" = "yes" && cat << \EOF
7540 cat >> confdefs.h <<\EOF
7541 #define NEED_LUCID 1
7545 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
7550 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7551 Defining LWLIB_SCROLLBARS_ATHENA
7553 cat >> confdefs.h <<\EOF
7554 #define LWLIB_SCROLLBARS_ATHENA 1
7558 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7559 Defining LWLIB_DIALOGS_ATHENA
7561 cat >> confdefs.h <<\EOF
7562 #define LWLIB_DIALOGS_ATHENA 1
7566 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7567 Defining LWLIB_SCROLLBARS_ATHENA3D
7569 cat >> confdefs.h <<\EOF
7570 #define LWLIB_SCROLLBARS_ATHENA3D 1
7574 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7575 Defining LWLIB_DIALOGS_ATHENA3D
7577 cat >> confdefs.h <<\EOF
7578 #define LWLIB_DIALOGS_ATHENA3D 1
7583 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7584 Defining HAVE_MENUBARS
7586 cat >> confdefs.h <<\EOF
7587 #define HAVE_MENUBARS 1
7591 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7592 Defining HAVE_SCROLLBARS
7594 cat >> confdefs.h <<\EOF
7595 #define HAVE_SCROLLBARS 1
7599 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7600 Defining HAVE_DIALOGS
7602 cat >> confdefs.h <<\EOF
7603 #define HAVE_DIALOGS 1
7607 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7608 Defining HAVE_TOOLBARS
7610 cat >> confdefs.h <<\EOF
7611 #define HAVE_TOOLBARS 1
7616 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7617 Defining LWLIB_MENUBARS_LUCID
7619 cat >> confdefs.h <<\EOF
7620 #define LWLIB_MENUBARS_LUCID 1
7624 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7625 Defining LWLIB_SCROLLBARS_LUCID
7627 cat >> confdefs.h <<\EOF
7628 #define LWLIB_SCROLLBARS_LUCID 1
7633 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7634 Defining LWLIB_MENUBARS_MOTIF
7636 cat >> confdefs.h <<\EOF
7637 #define LWLIB_MENUBARS_MOTIF 1
7641 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7642 Defining LWLIB_SCROLLBARS_MOTIF
7644 cat >> confdefs.h <<\EOF
7645 #define LWLIB_SCROLLBARS_MOTIF 1
7649 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7650 Defining LWLIB_DIALOGS_MOTIF
7652 cat >> confdefs.h <<\EOF
7653 #define LWLIB_DIALOGS_MOTIF 1
7658 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
7659 echo " xemacs will be linked with \"menubar.o\""
7661 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
7662 echo " xemacs will be linked with \"scrollbar.o\""
7664 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
7665 echo " xemacs will be linked with \"dialog.o\""
7667 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
7668 echo " xemacs will be linked with \"toolbar.o\""
7671 if test "$with_x11" = "yes"; then
7672 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
7673 echo " xemacs will be linked with \"menubar-x.o\""
7675 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
7676 echo " xemacs will be linked with \"scrollbar-x.o\""
7678 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
7679 echo " xemacs will be linked with \"dialog-x.o\""
7681 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
7682 echo " xemacs will be linked with \"toolbar-x.o\""
7684 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
7685 echo " xemacs will be linked with \"gui-x.o\""
7688 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
7689 echo "Attempt to Build NAS sound without X"
7690 echo "Please remove NAS configuration or build with X"
7696 test -z "$with_mule" && with_mule=no
7697 test -z "$with_file_coding" && with_file_coding=no
7700 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
7701 { test "$extra_verbose" = "yes" && cat << \EOF
7702 Defining FILE_CODING
7704 cat >> confdefs.h <<\EOF
7705 #define FILE_CODING 1
7709 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
7710 echo " xemacs will be linked with \"file-coding.o\""
7714 if test "$with_mule" = "yes" ; then
7715 echo "checking for Mule-related features" 1>&6
7716 echo "configure:7717: checking for Mule-related features" >&5
7717 { test "$extra_verbose" = "yes" && cat << \EOF
7720 cat >> confdefs.h <<\EOF
7725 { test "$extra_verbose" = "yes" && cat << \EOF
7726 Defining FILE_CODING
7728 cat >> confdefs.h <<\EOF
7729 #define FILE_CODING 1
7733 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
7734 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
7737 for ac_hdr in libintl.h
7739 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7740 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7741 echo "configure:7742: checking for $ac_hdr" >&5
7743 cat > conftest.$ac_ext <<EOF
7744 #line 7745 "configure"
7745 #include "confdefs.h"
7748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7749 { (eval echo configure:7750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7751 if test -z "$ac_err"; then
7753 eval "ac_cv_header_$ac_safe=yes"
7756 echo "configure: failed program was:" >&5
7757 cat conftest.$ac_ext >&5
7759 eval "ac_cv_header_$ac_safe=no"
7762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7763 echo "$ac_t""yes" 1>&6
7764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7765 { test "$extra_verbose" = "yes" && cat << EOF
7768 cat >> confdefs.h <<EOF
7769 #define $ac_tr_hdr 1
7774 echo "$ac_t""no" 1>&6
7779 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7780 echo "configure:7781: checking for strerror in -lintl" >&5
7781 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7783 xe_check_libs=" -lintl "
7784 cat > conftest.$ac_ext <<EOF
7785 #line 7786 "configure"
7786 #include "confdefs.h"
7787 /* Override any gcc2 internal prototype to avoid an error. */
7788 /* We use char because int might match the return type of a gcc2
7789 builtin and then its argument prototype would still apply. */
7796 if { (eval echo configure:7797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7798 eval "ac_cv_lib_$ac_lib_var=yes"
7800 echo "configure: failed program was:" >&5
7801 cat conftest.$ac_ext >&5
7803 eval "ac_cv_lib_$ac_lib_var=no"
7808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7809 echo "$ac_t""yes" 1>&6
7810 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7811 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7812 { test "$extra_verbose" = "yes" && cat << EOF
7815 cat >> confdefs.h <<EOF
7816 #define $ac_tr_lib 1
7820 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
7823 echo "$ac_t""no" 1>&6
7828 if test "$with_utf_2000" = "yes" ; then
7829 { test "$extra_verbose" = "yes" && cat << \EOF
7832 cat >> confdefs.h <<\EOF
7839 echo "checking for Mule input methods" 1>&6
7840 echo "configure:7841: checking for Mule input methods" >&5
7841 case "$with_xim" in "" | "yes" )
7842 echo "checking for XIM" 1>&6
7843 echo "configure:7844: checking for XIM" >&5
7845 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
7846 echo "configure:7847: checking for XOpenIM in -lX11" >&5
7847 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
7849 xe_check_libs=" -lX11 "
7850 cat > conftest.$ac_ext <<EOF
7851 #line 7852 "configure"
7852 #include "confdefs.h"
7853 /* Override any gcc2 internal prototype to avoid an error. */
7854 /* We use char because int might match the return type of a gcc2
7855 builtin and then its argument prototype would still apply. */
7862 if { (eval echo configure:7863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7864 eval "ac_cv_lib_$ac_lib_var=yes"
7866 echo "configure: failed program was:" >&5
7867 cat conftest.$ac_ext >&5
7869 eval "ac_cv_lib_$ac_lib_var=no"
7874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7875 echo "$ac_t""yes" 1>&6
7878 echo "$ac_t""no" 1>&6
7883 if test "$have_motif $have_lesstif" = "yes no"; then
7885 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7886 echo "configure:7887: checking for XmImMbLookupString in -lXm" >&5
7887 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7889 xe_check_libs=" -lXm "
7890 cat > conftest.$ac_ext <<EOF
7891 #line 7892 "configure"
7892 #include "confdefs.h"
7893 /* Override any gcc2 internal prototype to avoid an error. */
7894 /* We use char because int might match the return type of a gcc2
7895 builtin and then its argument prototype would still apply. */
7896 char XmImMbLookupString();
7899 XmImMbLookupString()
7902 if { (eval echo configure:7903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7904 eval "ac_cv_lib_$ac_lib_var=yes"
7906 echo "configure: failed program was:" >&5
7907 cat conftest.$ac_ext >&5
7909 eval "ac_cv_lib_$ac_lib_var=no"
7914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7915 echo "$ac_t""yes" 1>&6
7918 echo "$ac_t""no" 1>&6
7924 if test "$with_xim" != "no"; then
7925 { test "$extra_verbose" = "yes" && cat << \EOF
7928 cat >> confdefs.h <<\EOF
7933 if test "$with_xim" = "xlib"; then
7934 { test "$extra_verbose" = "yes" && cat << \EOF
7937 cat >> confdefs.h <<\EOF
7942 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
7943 echo " xemacs will be linked with \"input-method-xlib.o\""
7946 if test "$with_xim" = "motif"; then
7947 { test "$extra_verbose" = "yes" && cat << \EOF
7950 cat >> confdefs.h <<\EOF
7956 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
7957 echo " xemacs will be linked with \"input-method-motif.o\""
7960 if test "$with_xim" = "motif"; then
7965 if test "$with_xfs" = "yes" ; then
7966 echo "checking for XFontSet" 1>&6
7967 echo "configure:7968: checking for XFontSet" >&5
7969 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
7970 echo "configure:7971: checking for XmbDrawString in -lX11" >&5
7971 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
7973 xe_check_libs=" -lX11 "
7974 cat > conftest.$ac_ext <<EOF
7975 #line 7976 "configure"
7976 #include "confdefs.h"
7977 /* Override any gcc2 internal prototype to avoid an error. */
7978 /* We use char because int might match the return type of a gcc2
7979 builtin and then its argument prototype would still apply. */
7980 char XmbDrawString();
7986 if { (eval echo configure:7987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7988 eval "ac_cv_lib_$ac_lib_var=yes"
7990 echo "configure: failed program was:" >&5
7991 cat conftest.$ac_ext >&5
7993 eval "ac_cv_lib_$ac_lib_var=no"
7998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7999 echo "$ac_t""yes" 1>&6
8002 echo "$ac_t""no" 1>&6
8007 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
8008 { test "$extra_verbose" = "yes" && cat << \EOF
8009 Defining USE_XFONTSET
8011 cat >> confdefs.h <<\EOF
8012 #define USE_XFONTSET 1
8016 if test "$with_xim" = "no" ; then
8017 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
8018 echo " xemacs will be linked with \"input-method-xfs.o\""
8023 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8024 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8025 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8026 echo "configure:8027: checking for wnn/jllib.h" >&5
8028 cat > conftest.$ac_ext <<EOF
8029 #line 8030 "configure"
8030 #include "confdefs.h"
8031 #include <wnn/jllib.h>
8033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8034 { (eval echo configure:8035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8036 if test -z "$ac_err"; then
8038 eval "ac_cv_header_$ac_safe=yes"
8041 echo "configure: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8044 eval "ac_cv_header_$ac_safe=no"
8047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8048 echo "$ac_t""yes" 1>&6
8051 echo "$ac_t""no" 1>&6
8055 if test "$with_wnn" != "no"; then
8056 for ac_func in crypt
8058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8059 echo "configure:8060: checking for $ac_func" >&5
8061 cat > conftest.$ac_ext <<EOF
8062 #line 8063 "configure"
8063 #include "confdefs.h"
8064 /* System header to define __stub macros and hopefully few prototypes,
8065 which can conflict with char $ac_func(); below. */
8067 /* Override any gcc2 internal prototype to avoid an error. */
8068 /* We use char because int might match the return type of a gcc2
8069 builtin and then its argument prototype would still apply. */
8074 /* The GNU C library defines this for functions which it implements
8075 to always fail with ENOSYS. Some functions are actually named
8076 something starting with __ and the normal name is an alias. */
8077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8085 if { (eval echo configure:8086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8087 eval "ac_cv_func_$ac_func=yes"
8089 echo "configure: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8092 eval "ac_cv_func_$ac_func=no"
8096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8097 echo "$ac_t""yes" 1>&6
8098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8099 { test "$extra_verbose" = "yes" && cat << EOF
8100 Defining $ac_tr_func
8102 cat >> confdefs.h <<EOF
8103 #define $ac_tr_func 1
8108 echo "$ac_t""no" 1>&6
8112 test "$ac_cv_func_crypt" != "yes" && {
8113 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8114 echo "configure:8115: checking for crypt in -lcrypt" >&5
8115 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8117 xe_check_libs=" -lcrypt "
8118 cat > conftest.$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8121 /* Override any gcc2 internal prototype to avoid an error. */
8122 /* We use char because int might match the return type of a gcc2
8123 builtin and then its argument prototype would still apply. */
8130 if { (eval echo configure:8131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8132 eval "ac_cv_lib_$ac_lib_var=yes"
8134 echo "configure: failed program was:" >&5
8135 cat conftest.$ac_ext >&5
8137 eval "ac_cv_lib_$ac_lib_var=no"
8142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8143 echo "$ac_t""yes" 1>&6
8144 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8145 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8146 { test "$extra_verbose" = "yes" && cat << EOF
8149 cat >> confdefs.h <<EOF
8150 #define $ac_tr_lib 1
8154 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
8157 echo "$ac_t""no" 1>&6
8162 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8164 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8165 echo "configure:8166: checking for jl_dic_list_e in -lwnn" >&5
8166 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8168 xe_check_libs=" -lwnn "
8169 cat > conftest.$ac_ext <<EOF
8170 #line 8171 "configure"
8171 #include "confdefs.h"
8172 /* Override any gcc2 internal prototype to avoid an error. */
8173 /* We use char because int might match the return type of a gcc2
8174 builtin and then its argument prototype would still apply. */
8175 char jl_dic_list_e();
8181 if { (eval echo configure:8182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8183 eval "ac_cv_lib_$ac_lib_var=yes"
8185 echo "configure: failed program was:" >&5
8186 cat conftest.$ac_ext >&5
8188 eval "ac_cv_lib_$ac_lib_var=no"
8193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8194 echo "$ac_t""yes" 1>&6
8197 echo "$ac_t""no" 1>&6
8198 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8199 echo "configure:8200: checking for jl_dic_list_e in -lwnn4" >&5
8200 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8202 xe_check_libs=" -lwnn4 "
8203 cat > conftest.$ac_ext <<EOF
8204 #line 8205 "configure"
8205 #include "confdefs.h"
8206 /* Override any gcc2 internal prototype to avoid an error. */
8207 /* We use char because int might match the return type of a gcc2
8208 builtin and then its argument prototype would still apply. */
8209 char jl_dic_list_e();
8215 if { (eval echo configure:8216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8217 eval "ac_cv_lib_$ac_lib_var=yes"
8219 echo "configure: failed program was:" >&5
8220 cat conftest.$ac_ext >&5
8222 eval "ac_cv_lib_$ac_lib_var=no"
8227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8228 echo "$ac_t""yes" 1>&6
8231 echo "$ac_t""no" 1>&6
8232 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8233 echo "configure:8234: checking for jl_dic_list_e in -lwnn6" >&5
8234 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8236 xe_check_libs=" -lwnn6 "
8237 cat > conftest.$ac_ext <<EOF
8238 #line 8239 "configure"
8239 #include "confdefs.h"
8240 /* Override any gcc2 internal prototype to avoid an error. */
8241 /* We use char because int might match the return type of a gcc2
8242 builtin and then its argument prototype would still apply. */
8243 char jl_dic_list_e();
8249 if { (eval echo configure:8250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8251 eval "ac_cv_lib_$ac_lib_var=yes"
8253 echo "configure: failed program was:" >&5
8254 cat conftest.$ac_ext >&5
8256 eval "ac_cv_lib_$ac_lib_var=no"
8261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8262 echo "$ac_t""yes" 1>&6
8265 echo "$ac_t""no" 1>&6
8266 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8267 echo "configure:8268: checking for dic_list_e in -lwnn6_fromsrc" >&5
8268 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8270 xe_check_libs=" -lwnn6_fromsrc "
8271 cat > conftest.$ac_ext <<EOF
8272 #line 8273 "configure"
8273 #include "confdefs.h"
8274 /* Override any gcc2 internal prototype to avoid an error. */
8275 /* We use char because int might match the return type of a gcc2
8276 builtin and then its argument prototype would still apply. */
8283 if { (eval echo configure:8284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8285 eval "ac_cv_lib_$ac_lib_var=yes"
8287 echo "configure: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8290 eval "ac_cv_lib_$ac_lib_var=no"
8295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8296 echo "$ac_t""yes" 1>&6
8299 echo "$ac_t""no" 1>&6
8314 test -z "$with_wnn" && with_wnn=yes
8315 if test "$with_wnn" = "yes"; then
8316 { test "$extra_verbose" = "yes" && cat << \EOF
8319 cat >> confdefs.h <<\EOF
8324 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
8325 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
8326 echo " xemacs will be linked with \"mule-wnnfns.o\""
8328 if test "$with_wnn6" != "no"; then
8330 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8331 echo "configure:8332: checking for jl_fi_dic_list in -l$libwnn" >&5
8332 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8334 xe_check_libs=" -l$libwnn "
8335 cat > conftest.$ac_ext <<EOF
8336 #line 8337 "configure"
8337 #include "confdefs.h"
8338 /* Override any gcc2 internal prototype to avoid an error. */
8339 /* We use char because int might match the return type of a gcc2
8340 builtin and then its argument prototype would still apply. */
8341 char jl_fi_dic_list();
8347 if { (eval echo configure:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8349 eval "ac_cv_lib_$ac_lib_var=yes"
8351 echo "configure: failed program was:" >&5
8352 cat conftest.$ac_ext >&5
8354 eval "ac_cv_lib_$ac_lib_var=no"
8359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8360 echo "$ac_t""yes" 1>&6
8363 echo "$ac_t""no" 1>&6
8367 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8370 cat >> confdefs.h <<\EOF
8378 canna_includes_found=no
8379 if test "$with_canna" != "no"; then
8380 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8381 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8382 echo "configure:8383: checking for canna/jrkanji.h" >&5
8384 cat > conftest.$ac_ext <<EOF
8385 #line 8386 "configure"
8386 #include "confdefs.h"
8387 #include <canna/jrkanji.h>
8389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8390 { (eval echo configure:8391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8392 if test -z "$ac_err"; then
8394 eval "ac_cv_header_$ac_safe=yes"
8397 echo "configure: failed program was:" >&5
8398 cat conftest.$ac_ext >&5
8400 eval "ac_cv_header_$ac_safe=no"
8403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8404 echo "$ac_t""yes" 1>&6
8405 canna_includes_found=yes
8407 echo "$ac_t""no" 1>&6
8411 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
8412 -d "/usr/local/canna/include"; then
8413 save_c_switch_site="$c_switch_site"
8414 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8415 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8416 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8417 echo "configure:8418: checking for canna/jrkanji.h" >&5
8419 cat > conftest.$ac_ext <<EOF
8420 #line 8421 "configure"
8421 #include "confdefs.h"
8422 #include <canna/jrkanji.h>
8424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8425 { (eval echo configure:8426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8427 if test -z "$ac_err"; then
8429 eval "ac_cv_header_$ac_safe=yes"
8432 echo "configure: failed program was:" >&5
8433 cat conftest.$ac_ext >&5
8435 eval "ac_cv_header_$ac_safe=no"
8438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8439 echo "$ac_t""yes" 1>&6
8440 canna_includes_found=yes
8442 echo "$ac_t""no" 1>&6
8445 if test "$canna_includes_found" != "yes"; then
8446 c_switch_site="$save_c_switch_site"
8451 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8452 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8453 echo "configure:8454: checking for canna/RK.h" >&5
8455 cat > conftest.$ac_ext <<EOF
8456 #line 8457 "configure"
8457 #include "confdefs.h"
8458 #include <canna/RK.h>
8460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8461 { (eval echo configure:8462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8463 if test -z "$ac_err"; then
8465 eval "ac_cv_header_$ac_safe=yes"
8468 echo "configure: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8471 eval "ac_cv_header_$ac_safe=no"
8474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8475 echo "$ac_t""yes" 1>&6
8478 echo "$ac_t""no" 1>&6
8482 test -z "$with_canna" && {
8483 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8484 echo "configure:8485: checking for RkBgnBun in -lRKC" >&5
8485 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8487 xe_check_libs=" -lRKC "
8488 cat > conftest.$ac_ext <<EOF
8489 #line 8490 "configure"
8490 #include "confdefs.h"
8491 /* Override any gcc2 internal prototype to avoid an error. */
8492 /* We use char because int might match the return type of a gcc2
8493 builtin and then its argument prototype would still apply. */
8500 if { (eval echo configure:8501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8502 eval "ac_cv_lib_$ac_lib_var=yes"
8504 echo "configure: failed program was:" >&5
8505 cat conftest.$ac_ext >&5
8507 eval "ac_cv_lib_$ac_lib_var=no"
8512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8513 echo "$ac_t""yes" 1>&6
8516 echo "$ac_t""no" 1>&6
8521 test -z "$with_canna" && {
8522 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8523 echo "configure:8524: checking for jrKanjiControl in -lcanna" >&5
8524 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8526 xe_check_libs=" -lcanna "
8527 cat > conftest.$ac_ext <<EOF
8528 #line 8529 "configure"
8529 #include "confdefs.h"
8530 /* Override any gcc2 internal prototype to avoid an error. */
8531 /* We use char because int might match the return type of a gcc2
8532 builtin and then its argument prototype would still apply. */
8533 char jrKanjiControl();
8539 if { (eval echo configure:8540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8541 eval "ac_cv_lib_$ac_lib_var=yes"
8543 echo "configure: failed program was:" >&5
8544 cat conftest.$ac_ext >&5
8546 eval "ac_cv_lib_$ac_lib_var=no"
8551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8552 echo "$ac_t""yes" 1>&6
8555 echo "$ac_t""no" 1>&6
8560 test -z "$with_canna" && with_canna=yes
8561 if test "$with_canna" = "yes"; then
8562 { test "$extra_verbose" = "yes" && cat << \EOF
8565 cat >> confdefs.h <<\EOF
8566 #define HAVE_CANNA 1
8570 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
8571 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
8572 echo " xemacs will be linked with \"mule-canna.o\""
8576 else for feature in xim canna wnn; do
8577 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
8578 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
8580 eval "with_${feature}=no"
8584 if test "$need_motif" = "yes" ; then
8585 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8587 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8588 echo "configure:8589: checking for layout_object_getvalue in -li18n" >&5
8589 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8591 xe_check_libs=" -li18n "
8592 cat > conftest.$ac_ext <<EOF
8593 #line 8594 "configure"
8594 #include "confdefs.h"
8595 /* Override any gcc2 internal prototype to avoid an error. */
8596 /* We use char because int might match the return type of a gcc2
8597 builtin and then its argument prototype would still apply. */
8598 char layout_object_getvalue();
8601 layout_object_getvalue()
8604 if { (eval echo configure:8605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8606 eval "ac_cv_lib_$ac_lib_var=yes"
8608 echo "configure: failed program was:" >&5
8609 cat conftest.$ac_ext >&5
8611 eval "ac_cv_lib_$ac_lib_var=no"
8616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8617 echo "$ac_t""yes" 1>&6
8618 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
8620 echo "$ac_t""no" 1>&6
8625 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
8626 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8627 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8629 runpath="" runpath_dirs=""
8630 if test -n "$LD_RUN_PATH"; then
8631 runpath="$LD_RUN_PATH"
8632 elif test "$GCC" = "yes"; then
8633 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
8634 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
8635 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
8636 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
8637 case "$arg" in P,* | -L* | -R* )
8638 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
8640 xe_runpath_dir="$dir"
8641 test "$xe_runpath_dir" != "/lib" -a \
8642 "$xe_runpath_dir" != "/usr/lib" -a \
8643 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8644 eval "$xe_add_unique_runpath_dir"
8649 ld_switch_run="$ld_switch_run_save"
8652 for arg in $ld_switch_site $ld_switch_x_site; do
8653 case "$arg" in -L*) {
8654 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
8655 test "$xe_runpath_dir" != "/lib" -a \
8656 "$xe_runpath_dir" != "/usr/lib" -a \
8657 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8658 eval "$xe_add_unique_runpath_dir"
8661 if test "$opsys $need_motif" = "sol2 yes"; then
8662 xe_runpath_dir="/opt/SUNWdt/lib";
8663 eval "$xe_add_unique_runpath_dir";
8666 if test -n "$runpath"; then
8667 ld_switch_run="${dash_r}${runpath}"
8669 if test "$GCC" = "yes"; then
8670 set x $ld_switch_run; shift; ld_switch_run=""
8671 while test -n "$1"; do
8673 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8674 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
8676 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
8681 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
8687 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
8689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8690 echo "configure:8691: checking for $ac_func" >&5
8692 cat > conftest.$ac_ext <<EOF
8693 #line 8694 "configure"
8694 #include "confdefs.h"
8695 /* System header to define __stub macros and hopefully few prototypes,
8696 which can conflict with char $ac_func(); below. */
8698 /* Override any gcc2 internal prototype to avoid an error. */
8699 /* We use char because int might match the return type of a gcc2
8700 builtin and then its argument prototype would still apply. */
8705 /* The GNU C library defines this for functions which it implements
8706 to always fail with ENOSYS. Some functions are actually named
8707 something starting with __ and the normal name is an alias. */
8708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8716 if { (eval echo configure:8717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8718 eval "ac_cv_func_$ac_func=yes"
8720 echo "configure: failed program was:" >&5
8721 cat conftest.$ac_ext >&5
8723 eval "ac_cv_func_$ac_func=no"
8727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8728 echo "$ac_t""yes" 1>&6
8729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8730 { test "$extra_verbose" = "yes" && cat << EOF
8731 Defining $ac_tr_func
8733 cat >> confdefs.h <<EOF
8734 #define $ac_tr_func 1
8739 echo "$ac_t""no" 1>&6
8746 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8747 echo " xemacs will be linked with \"realpath.o\""
8750 case "$canonical" in
8751 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8752 echo " xemacs will be linked with \"realpath.o\""
8754 * ) for ac_func in realpath
8756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8757 echo "configure:8758: checking for $ac_func" >&5
8759 cat > conftest.$ac_ext <<EOF
8760 #line 8761 "configure"
8761 #include "confdefs.h"
8762 /* System header to define __stub macros and hopefully few prototypes,
8763 which can conflict with char $ac_func(); below. */
8765 /* Override any gcc2 internal prototype to avoid an error. */
8766 /* We use char because int might match the return type of a gcc2
8767 builtin and then its argument prototype would still apply. */
8772 /* The GNU C library defines this for functions which it implements
8773 to always fail with ENOSYS. Some functions are actually named
8774 something starting with __ and the normal name is an alias. */
8775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8783 if { (eval echo configure:8784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8785 eval "ac_cv_func_$ac_func=yes"
8787 echo "configure: failed program was:" >&5
8788 cat conftest.$ac_ext >&5
8790 eval "ac_cv_func_$ac_func=no"
8794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8795 echo "$ac_t""yes" 1>&6
8796 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8797 { test "$extra_verbose" = "yes" && cat << EOF
8798 Defining $ac_tr_func
8800 cat >> confdefs.h <<EOF
8801 #define $ac_tr_func 1
8806 echo "$ac_t""no" 1>&6
8810 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8811 echo " xemacs will be linked with \"realpath.o\""
8816 for ac_func in getloadavg
8818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8819 echo "configure:8820: checking for $ac_func" >&5
8821 cat > conftest.$ac_ext <<EOF
8822 #line 8823 "configure"
8823 #include "confdefs.h"
8824 /* System header to define __stub macros and hopefully few prototypes,
8825 which can conflict with char $ac_func(); below. */
8827 /* Override any gcc2 internal prototype to avoid an error. */
8828 /* We use char because int might match the return type of a gcc2
8829 builtin and then its argument prototype would still apply. */
8834 /* The GNU C library defines this for functions which it implements
8835 to always fail with ENOSYS. Some functions are actually named
8836 something starting with __ and the normal name is an alias. */
8837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8845 if { (eval echo configure:8846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8847 eval "ac_cv_func_$ac_func=yes"
8849 echo "configure: failed program was:" >&5
8850 cat conftest.$ac_ext >&5
8852 eval "ac_cv_func_$ac_func=no"
8856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8857 echo "$ac_t""yes" 1>&6
8858 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8859 { test "$extra_verbose" = "yes" && cat << EOF
8860 Defining $ac_tr_func
8862 cat >> confdefs.h <<EOF
8863 #define $ac_tr_func 1
8868 echo "$ac_t""no" 1>&6
8873 if test "$ac_cv_func_getloadavg" != "yes"
8875 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
8876 echo " xemacs will be linked with \"getloadavg.o\""
8880 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
8881 echo "configure:8882: checking for kstat_open in -lkstat" >&5
8882 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
8884 xe_check_libs=" -lkstat "
8885 cat > conftest.$ac_ext <<EOF
8886 #line 8887 "configure"
8887 #include "confdefs.h"
8888 /* Override any gcc2 internal prototype to avoid an error. */
8889 /* We use char because int might match the return type of a gcc2
8890 builtin and then its argument prototype would still apply. */
8897 if { (eval echo configure:8898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8899 eval "ac_cv_lib_$ac_lib_var=yes"
8901 echo "configure: failed program was:" >&5
8902 cat conftest.$ac_ext >&5
8904 eval "ac_cv_lib_$ac_lib_var=no"
8909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8910 echo "$ac_t""yes" 1>&6
8911 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8912 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8913 { test "$extra_verbose" = "yes" && cat << EOF
8916 cat >> confdefs.h <<EOF
8917 #define $ac_tr_lib 1
8921 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
8924 echo "$ac_t""no" 1>&6
8930 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
8931 echo "configure:8932: checking for kvm_read in -lkvm" >&5
8932 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
8934 xe_check_libs=" -lkvm "
8935 cat > conftest.$ac_ext <<EOF
8936 #line 8937 "configure"
8937 #include "confdefs.h"
8938 /* Override any gcc2 internal prototype to avoid an error. */
8939 /* We use char because int might match the return type of a gcc2
8940 builtin and then its argument prototype would still apply. */
8947 if { (eval echo configure:8948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8949 eval "ac_cv_lib_$ac_lib_var=yes"
8951 echo "configure: failed program was:" >&5
8952 cat conftest.$ac_ext >&5
8954 eval "ac_cv_lib_$ac_lib_var=no"
8959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8960 echo "$ac_t""yes" 1>&6
8961 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8962 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8963 { test "$extra_verbose" = "yes" && cat << EOF
8966 cat >> confdefs.h <<EOF
8967 #define $ac_tr_lib 1
8971 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
8974 echo "$ac_t""no" 1>&6
8980 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
8981 echo "configure:8982: checking whether netdb declares h_errno" >&5
8982 cat > conftest.$ac_ext <<EOF
8983 #line 8984 "configure"
8984 #include "confdefs.h"
8990 if { (eval echo configure:8991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8992 echo "$ac_t""yes" 1>&6
8993 { test "$extra_verbose" = "yes" && cat << \EOF
8994 Defining HAVE_H_ERRNO
8996 cat >> confdefs.h <<\EOF
8997 #define HAVE_H_ERRNO 1
9002 echo "configure: failed program was:" >&5
9003 cat conftest.$ac_ext >&5
9005 echo "$ac_t""no" 1>&6
9009 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9010 echo "configure:9011: checking for sigsetjmp" >&5
9011 cat > conftest.$ac_ext <<EOF
9012 #line 9013 "configure"
9013 #include "confdefs.h"
9016 sigjmp_buf bar; sigsetjmp (bar, 0);
9019 if { (eval echo configure:9020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9021 echo "$ac_t""yes" 1>&6
9022 { test "$extra_verbose" = "yes" && cat << \EOF
9023 Defining HAVE_SIGSETJMP
9025 cat >> confdefs.h <<\EOF
9026 #define HAVE_SIGSETJMP 1
9031 echo "configure: failed program was:" >&5
9032 cat conftest.$ac_ext >&5
9034 echo "$ac_t""no" 1>&6
9038 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9039 echo "configure:9040: checking whether localtime caches TZ" >&5
9041 if test "$ac_cv_func_tzset" = "yes"; then
9042 cat > conftest.$ac_ext <<EOF
9043 #line 9044 "configure"
9044 #include "confdefs.h"
9047 # include <stdlib.h>
9049 extern char **environ;
9053 for (to = from = environ; (*to = *from); from++)
9054 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
9057 char TZ_GMT0[] = "TZ=GMT0";
9058 char TZ_PST8[] = "TZ=PST8";
9061 time_t now = time ((time_t *) 0);
9062 int hour_GMT0, hour_unset;
9063 if (putenv (TZ_GMT0) != 0)
9065 hour_GMT0 = localtime (&now)->tm_hour;
9067 hour_unset = localtime (&now)->tm_hour;
9068 if (putenv (TZ_PST8) != 0)
9070 if (localtime (&now)->tm_hour == hour_GMT0)
9073 if (localtime (&now)->tm_hour != hour_unset)
9078 if { (eval echo configure:9079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9080 emacs_cv_localtime_cache=no
9083 echo "configure: failed program was:" >&5
9084 cat conftest.$ac_ext >&5
9086 emacs_cv_localtime_cache=yes
9090 # If we lack tzset, report that localtime does not cache TZ,
9091 # since we can't invalidate the cache if we don't have tzset.
9092 emacs_cv_localtime_cache=no
9094 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
9095 if test $emacs_cv_localtime_cache = yes; then
9096 { test "$extra_verbose" = "yes" && cat << \EOF
9097 Defining LOCALTIME_CACHE
9099 cat >> confdefs.h <<\EOF
9100 #define LOCALTIME_CACHE 1
9106 if test "$HAVE_TIMEVAL" = "yes"; then
9107 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9108 echo "configure:9109: checking whether gettimeofday accepts one or two arguments" >&5
9109 cat > conftest.$ac_ext <<EOF
9110 #line 9111 "configure"
9111 #include "confdefs.h"
9113 #ifdef TIME_WITH_SYS_TIME
9114 #include <sys/time.h>
9117 #ifdef HAVE_SYS_TIME_H
9118 #include <sys/time.h>
9126 struct timeval time;
9127 struct timezone dummy;
9128 gettimeofday (&time, &dummy);
9132 if { (eval echo configure:9133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9134 echo "$ac_t""two" 1>&6
9136 echo "configure: failed program was:" >&5
9137 cat conftest.$ac_ext >&5
9139 echo "$ac_t""one" 1>&6
9140 { test "$extra_verbose" = "yes" && cat << \EOF
9141 Defining GETTIMEOFDAY_ONE_ARGUMENT
9143 cat >> confdefs.h <<\EOF
9144 #define GETTIMEOFDAY_ONE_ARGUMENT 1
9153 echo $ac_n "checking for inline""... $ac_c" 1>&6
9154 echo "configure:9155: checking for inline" >&5
9157 for ac_kw in inline __inline__ __inline; do
9158 cat > conftest.$ac_ext <<EOF
9159 #line 9160 "configure"
9160 #include "confdefs.h"
9166 if { (eval echo configure:9167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9168 ac_cv_c_inline=$ac_kw; break
9170 echo "configure: failed program was:" >&5
9171 cat conftest.$ac_ext >&5
9177 echo "$ac_t""$ac_cv_c_inline" 1>&6
9178 case "$ac_cv_c_inline" in
9180 no) { test "$extra_verbose" = "yes" && cat << \EOF
9183 cat >> confdefs.h <<\EOF
9188 *) { test "$extra_verbose" = "yes" && cat << EOF
9189 Defining inline = $ac_cv_c_inline
9191 cat >> confdefs.h <<EOF
9192 #define inline $ac_cv_c_inline
9198 if test "$ac_cv_c_inline" != "no"; then
9199 { test "$extra_verbose" = "yes" && cat << \EOF
9200 Defining HAVE_INLINE
9202 cat >> confdefs.h <<\EOF
9203 #define HAVE_INLINE 1
9207 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
9208 echo " xemacs will be linked with \"inline.o\""
9213 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9214 # for constant arguments. Useless!
9215 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9216 echo "configure:9217: checking for working alloca.h" >&5
9218 cat > conftest.$ac_ext <<EOF
9219 #line 9220 "configure"
9220 #include "confdefs.h"
9223 char *p = alloca(2 * sizeof(int));
9226 if { (eval echo configure:9227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9228 ac_cv_header_alloca_h=yes
9230 echo "configure: failed program was:" >&5
9231 cat conftest.$ac_ext >&5
9233 ac_cv_header_alloca_h=no
9237 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
9238 if test $ac_cv_header_alloca_h = yes; then
9239 { test "$extra_verbose" = "yes" && cat << \EOF
9240 Defining HAVE_ALLOCA_H
9242 cat >> confdefs.h <<\EOF
9243 #define HAVE_ALLOCA_H 1
9249 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9250 echo "configure:9251: checking for alloca" >&5
9252 cat > conftest.$ac_ext <<EOF
9253 #line 9254 "configure"
9254 #include "confdefs.h"
9257 # define alloca __builtin_alloca
9260 # include <malloc.h>
9261 # define alloca _alloca
9264 # include <alloca.h>
9269 # ifndef alloca /* predefined by HP cc +Olibcalls */
9278 char *p = (char *) alloca(1);
9281 if { (eval echo configure:9282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9283 ac_cv_func_alloca_works=yes
9285 echo "configure: failed program was:" >&5
9286 cat conftest.$ac_ext >&5
9288 ac_cv_func_alloca_works=no
9292 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
9293 if test $ac_cv_func_alloca_works = yes; then
9294 { test "$extra_verbose" = "yes" && cat << \EOF
9295 Defining HAVE_ALLOCA
9297 cat >> confdefs.h <<\EOF
9298 #define HAVE_ALLOCA 1
9304 if test $ac_cv_func_alloca_works = no; then
9305 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9306 # that cause trouble. Some versions do not even contain alloca or
9307 # contain a buggy version. If you still want to use their alloca,
9308 # use ar to extract alloca.o from them instead of compiling alloca.c.
9309 ALLOCA=alloca.${ac_objext}
9310 { test "$extra_verbose" = "yes" && cat << \EOF
9313 cat >> confdefs.h <<\EOF
9319 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9320 echo "configure:9321: checking whether alloca needs Cray hooks" >&5
9322 cat > conftest.$ac_ext <<EOF
9323 #line 9324 "configure"
9324 #include "confdefs.h"
9325 #if defined(CRAY) && ! defined(CRAY2)
9332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9333 egrep "webecray" >/dev/null 2>&1; then
9343 echo "$ac_t""$ac_cv_os_cray" 1>&6
9344 if test $ac_cv_os_cray = yes; then
9345 for ac_func in _getb67 GETB67 getb67; do
9346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9347 echo "configure:9348: checking for $ac_func" >&5
9349 cat > conftest.$ac_ext <<EOF
9350 #line 9351 "configure"
9351 #include "confdefs.h"
9352 /* System header to define __stub macros and hopefully few prototypes,
9353 which can conflict with char $ac_func(); below. */
9355 /* Override any gcc2 internal prototype to avoid an error. */
9356 /* We use char because int might match the return type of a gcc2
9357 builtin and then its argument prototype would still apply. */
9362 /* The GNU C library defines this for functions which it implements
9363 to always fail with ENOSYS. Some functions are actually named
9364 something starting with __ and the normal name is an alias. */
9365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9373 if { (eval echo configure:9374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9375 eval "ac_cv_func_$ac_func=yes"
9377 echo "configure: failed program was:" >&5
9378 cat conftest.$ac_ext >&5
9380 eval "ac_cv_func_$ac_func=no"
9384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9385 echo "$ac_t""yes" 1>&6
9386 { test "$extra_verbose" = "yes" && cat << EOF
9387 Defining CRAY_STACKSEG_END = $ac_func
9389 cat >> confdefs.h <<EOF
9390 #define CRAY_STACKSEG_END $ac_func
9396 echo "$ac_t""no" 1>&6
9402 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9403 echo "configure:9404: checking stack direction for C alloca" >&5
9405 cat > conftest.$ac_ext <<EOF
9406 #line 9407 "configure"
9407 #include "confdefs.h"
9408 find_stack_direction ()
9410 static char *addr = 0;
9415 return find_stack_direction ();
9418 return (&dummy > addr) ? 1 : -1;
9422 exit (find_stack_direction() < 0);
9425 if { (eval echo configure:9426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9427 ac_cv_c_stack_direction=1
9430 echo "configure: failed program was:" >&5
9431 cat conftest.$ac_ext >&5
9433 ac_cv_c_stack_direction=-1
9437 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
9438 { test "$extra_verbose" = "yes" && cat << EOF
9439 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
9441 cat >> confdefs.h <<EOF
9442 #define STACK_DIRECTION $ac_cv_c_stack_direction
9448 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
9449 echo " xemacs will be linked with \"$ALLOCA\""
9452 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9453 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9454 echo "configure:9455: checking for vfork.h" >&5
9456 cat > conftest.$ac_ext <<EOF
9457 #line 9458 "configure"
9458 #include "confdefs.h"
9461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9462 { (eval echo configure:9463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9464 if test -z "$ac_err"; then
9466 eval "ac_cv_header_$ac_safe=yes"
9469 echo "configure: failed program was:" >&5
9470 cat conftest.$ac_ext >&5
9472 eval "ac_cv_header_$ac_safe=no"
9475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9476 echo "$ac_t""yes" 1>&6
9477 { test "$extra_verbose" = "yes" && cat << \EOF
9478 Defining HAVE_VFORK_H
9480 cat >> confdefs.h <<\EOF
9481 #define HAVE_VFORK_H 1
9486 echo "$ac_t""no" 1>&6
9489 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9490 echo "configure:9491: checking for working vfork" >&5
9492 cat > conftest.$ac_ext <<EOF
9493 #line 9494 "configure"
9494 #include "confdefs.h"
9495 /* Thanks to Paul Eggert for this test. */
9497 #include <sys/types.h>
9498 #include <sys/stat.h>
9499 #ifdef HAVE_UNISTD_H
9505 /* On some sparc systems, changes by the child to local and incoming
9506 argument registers are propagated back to the parent.
9507 The compiler is told about this with #include <vfork.h>,
9508 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
9509 Test for this by using a static variable whose address
9510 is put into a register that is clobbered by the vfork. */
9513 sparc_address_test (int arg)
9515 sparc_address_test (arg) int arg;
9533 pid_t parent = getpid ();
9536 sparc_address_test ();
9541 /* Here is another test for sparc vfork register problems.
9542 This test uses lots of local variables, at least
9543 as many local variables as main has allocated so far
9544 including compiler temporaries. 4 locals are enough for
9545 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
9546 A buggy compiler should reuse the register of parent
9547 for one of the local variables, since it will think that
9548 parent can't possibly be used any more in this routine.
9549 Assigning to the local variable will thus munge parent
9550 in the parent process. */
9552 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9553 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9554 /* Convince the compiler that p..p7 are live; otherwise, it might
9555 use the same hardware register for all 8 local variables. */
9556 if (p != p1 || p != p2 || p != p3 || p != p4
9557 || p != p5 || p != p6 || p != p7)
9560 /* On some systems (e.g. IRIX 3.3),
9561 vfork doesn't separate parent from child file descriptors.
9562 If the child closes a descriptor before it execs or exits,
9563 this munges the parent's descriptor as well.
9564 Test for this by closing stdout in the child. */
9565 _exit(close(fileno(stdout)) != 0);
9570 while (wait(&status) != child)
9573 /* Was there some problem with vforking? */
9576 /* Did the child fail? (This shouldn't happen.) */
9579 /* Did the vfork/compiler bug occur? */
9580 || parent != getpid()
9582 /* Did the file descriptor bug occur? */
9583 || fstat(fileno(stdout), &st) != 0
9588 if { (eval echo configure:9589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9590 ac_cv_func_vfork_works=yes
9593 echo "configure: failed program was:" >&5
9594 cat conftest.$ac_ext >&5
9596 ac_cv_func_vfork_works=no
9600 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
9601 if test $ac_cv_func_vfork_works = no; then
9602 { test "$extra_verbose" = "yes" && cat << \EOF
9603 Defining vfork = fork
9605 cat >> confdefs.h <<\EOF
9613 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9614 echo "configure:9615: checking for working strcoll" >&5
9616 cat > conftest.$ac_ext <<EOF
9617 #line 9618 "configure"
9618 #include "confdefs.h"
9622 exit (strcoll ("abc", "def") >= 0 ||
9623 strcoll ("ABC", "DEF") >= 0 ||
9624 strcoll ("123", "456") >= 0);
9627 if { (eval echo configure:9628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9629 ac_cv_func_strcoll_works=yes
9632 echo "configure: failed program was:" >&5
9633 cat conftest.$ac_ext >&5
9635 ac_cv_func_strcoll_works=no
9639 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
9640 if test $ac_cv_func_strcoll_works = yes; then
9641 { test "$extra_verbose" = "yes" && cat << \EOF
9642 Defining HAVE_STRCOLL
9644 cat >> confdefs.h <<\EOF
9645 #define HAVE_STRCOLL 1
9652 for ac_func in getpgrp
9654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9655 echo "configure:9656: checking for $ac_func" >&5
9657 cat > conftest.$ac_ext <<EOF
9658 #line 9659 "configure"
9659 #include "confdefs.h"
9660 /* System header to define __stub macros and hopefully few prototypes,
9661 which can conflict with char $ac_func(); below. */
9663 /* Override any gcc2 internal prototype to avoid an error. */
9664 /* We use char because int might match the return type of a gcc2
9665 builtin and then its argument prototype would still apply. */
9670 /* The GNU C library defines this for functions which it implements
9671 to always fail with ENOSYS. Some functions are actually named
9672 something starting with __ and the normal name is an alias. */
9673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9681 if { (eval echo configure:9682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9683 eval "ac_cv_func_$ac_func=yes"
9685 echo "configure: failed program was:" >&5
9686 cat conftest.$ac_ext >&5
9688 eval "ac_cv_func_$ac_func=no"
9692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9693 echo "$ac_t""yes" 1>&6
9694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9695 { test "$extra_verbose" = "yes" && cat << EOF
9696 Defining $ac_tr_func
9698 cat >> confdefs.h <<EOF
9699 #define $ac_tr_func 1
9704 echo "$ac_t""no" 1>&6
9708 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9709 echo "configure:9710: checking whether getpgrp takes no argument" >&5
9711 cat > conftest.$ac_ext <<EOF
9712 #line 9713 "configure"
9713 #include "confdefs.h"
9716 * If this system has a BSD-style getpgrp(),
9717 * which takes a pid argument, exit unsuccessfully.
9719 * Snarfed from Chet Ramey's bash pgrp.c test program
9722 #include <sys/types.h>
9725 int pg1, pg2, pg3, pg4;
9726 int ng, np, s, child;
9737 * If all of these values are the same, it's pretty sure that
9738 * we're on a system that ignores getpgrp's first argument.
9740 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
9746 else if (child == 0) {
9749 * If this is Sys V, this will not work; pgrp will be
9750 * set to np because setpgrp just changes a pgrp to be
9751 * the same as the pid.
9754 ng = getpgrp(0); /* Same result for Sys V and BSD */
9767 if { (eval echo configure:9768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9769 ac_cv_func_getpgrp_void=yes
9772 echo "configure: failed program was:" >&5
9773 cat conftest.$ac_ext >&5
9775 ac_cv_func_getpgrp_void=no
9780 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
9781 if test $ac_cv_func_getpgrp_void = yes; then
9782 { test "$extra_verbose" = "yes" && cat << \EOF
9783 Defining GETPGRP_VOID
9785 cat >> confdefs.h <<\EOF
9786 #define GETPGRP_VOID 1
9793 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9794 echo "configure:9795: checking for working mmap" >&5
9795 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9796 cat > conftest.$ac_ext <<EOF
9797 #line 9798 "configure"
9798 #include "confdefs.h"
9802 #include <sys/mman.h>
9804 #ifndef MAP_VARIABLE
9805 #define MAP_VARIABLE 0
9809 #define MAP_FAILED -1
9812 int main (int argc, char *argv[])
9816 #ifndef MAP_ANONYMOUS
9817 fd = open ("/dev/zero", O_RDWR);
9820 #define MAP_ANONYMOUS 0
9822 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
9823 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
9824 fd, 0) != (void *) MAP_FAILED)
9826 perror ("conftest: mmap failed");
9830 if { (eval echo configure:9831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9835 echo "configure: failed program was:" >&5
9836 cat conftest.$ac_ext >&5
9842 echo "$ac_t""$have_mmap" 1>&6
9843 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9846 cat >> confdefs.h <<\EOF
9851 for ac_hdr in unistd.h
9853 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9855 echo "configure:9856: checking for $ac_hdr" >&5
9857 cat > conftest.$ac_ext <<EOF
9858 #line 9859 "configure"
9859 #include "confdefs.h"
9862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9863 { (eval echo configure:9864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9865 if test -z "$ac_err"; then
9867 eval "ac_cv_header_$ac_safe=yes"
9870 echo "configure: failed program was:" >&5
9871 cat conftest.$ac_ext >&5
9873 eval "ac_cv_header_$ac_safe=no"
9876 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9877 echo "$ac_t""yes" 1>&6
9878 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9879 { test "$extra_verbose" = "yes" && cat << EOF
9882 cat >> confdefs.h <<EOF
9883 #define $ac_tr_hdr 1
9888 echo "$ac_t""no" 1>&6
9892 for ac_func in getpagesize
9894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9895 echo "configure:9896: checking for $ac_func" >&5
9897 cat > conftest.$ac_ext <<EOF
9898 #line 9899 "configure"
9899 #include "confdefs.h"
9900 /* System header to define __stub macros and hopefully few prototypes,
9901 which can conflict with char $ac_func(); below. */
9903 /* Override any gcc2 internal prototype to avoid an error. */
9904 /* We use char because int might match the return type of a gcc2
9905 builtin and then its argument prototype would still apply. */
9910 /* The GNU C library defines this for functions which it implements
9911 to always fail with ENOSYS. Some functions are actually named
9912 something starting with __ and the normal name is an alias. */
9913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9921 if { (eval echo configure:9922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9923 eval "ac_cv_func_$ac_func=yes"
9925 echo "configure: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9928 eval "ac_cv_func_$ac_func=no"
9932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9933 echo "$ac_t""yes" 1>&6
9934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9935 { test "$extra_verbose" = "yes" && cat << EOF
9936 Defining $ac_tr_func
9938 cat >> confdefs.h <<EOF
9939 #define $ac_tr_func 1
9944 echo "$ac_t""no" 1>&6
9948 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9949 echo "configure:9950: checking for working mmap" >&5
9951 cat > conftest.$ac_ext <<EOF
9952 #line 9953 "configure"
9953 #include "confdefs.h"
9955 /* Thanks to Mike Haertel and Jim Avera for this test.
9956 Here is a matrix of mmap possibilities:
9957 mmap private not fixed
9958 mmap private fixed at somewhere currently unmapped
9959 mmap private fixed at somewhere already mapped
9960 mmap shared not fixed
9961 mmap shared fixed at somewhere currently unmapped
9962 mmap shared fixed at somewhere already mapped
9963 For private mappings, we should verify that changes cannot be read()
9964 back from the file, nor mmap's back from the file at a different
9965 address. (There have been systems where private was not correctly
9966 implemented like the infamous i386 svr4.0, and systems where the
9967 VM page cache was not coherent with the filesystem buffer cache
9968 like early versions of FreeBSD and possibly contemporary NetBSD.)
9969 For shared mappings, we should conversely verify that changes get
9970 propogated back to all the places they're supposed to be.
9972 Grep wants private fixed already mapped.
9973 The main things grep needs to know about mmap are:
9974 * does it exist and is it safe to write into the mmap'd area
9975 * how to use it (BSD variants) */
9976 #include <sys/types.h>
9978 #include <sys/mman.h>
9980 /* This mess was copied from the GNU getpagesize.h. */
9981 #ifndef HAVE_GETPAGESIZE
9982 # ifdef HAVE_UNISTD_H
9983 # include <unistd.h>
9986 /* Assume that all systems that can run configure have sys/param.h. */
9987 # ifndef HAVE_SYS_PARAM_H
9988 # define HAVE_SYS_PARAM_H 1
9991 # ifdef _SC_PAGESIZE
9992 # define getpagesize() sysconf(_SC_PAGESIZE)
9993 # else /* no _SC_PAGESIZE */
9994 # ifdef HAVE_SYS_PARAM_H
9995 # include <sys/param.h>
9996 # ifdef EXEC_PAGESIZE
9997 # define getpagesize() EXEC_PAGESIZE
9998 # else /* no EXEC_PAGESIZE */
10000 # define getpagesize() NBPG * CLSIZE
10003 # endif /* no CLSIZE */
10004 # else /* no NBPG */
10006 # define getpagesize() NBPC
10007 # else /* no NBPC */
10009 # define getpagesize() PAGESIZE
10010 # endif /* PAGESIZE */
10011 # endif /* no NBPC */
10012 # endif /* no NBPG */
10013 # endif /* no EXEC_PAGESIZE */
10014 # else /* no HAVE_SYS_PARAM_H */
10015 # define getpagesize() 8192 /* punt totally */
10016 # endif /* no HAVE_SYS_PARAM_H */
10017 # endif /* no _SC_PAGESIZE */
10019 #endif /* no HAVE_GETPAGESIZE */
10022 extern "C" { void *malloc(unsigned); }
10030 char *data, *data2, *data3;
10034 pagesize = getpagesize();
10037 * First, make a file with some known garbage in it.
10039 data = malloc(pagesize);
10042 for (i = 0; i < pagesize; ++i)
10043 *(data + i) = rand();
10045 fd = creat("conftestmmap", 0600);
10048 if (write(fd, data, pagesize) != pagesize)
10053 * Next, try to mmap the file at a fixed address which
10054 * already has something else allocated at it. If we can,
10055 * also make sure that we see the same garbage.
10057 fd = open("conftestmmap", O_RDWR);
10060 data2 = malloc(2 * pagesize);
10063 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
10064 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
10065 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10067 for (i = 0; i < pagesize; ++i)
10068 if (*(data + i) != *(data2 + i))
10072 * Finally, make sure that changes to the mapped area
10073 * do not percolate back to the file as seen by read().
10074 * (This is a bug on some variants of i386 svr4.0.)
10076 for (i = 0; i < pagesize; ++i)
10077 *(data2 + i) = *(data2 + i) + 1;
10078 data3 = malloc(pagesize);
10081 if (read(fd, data3, pagesize) != pagesize)
10083 for (i = 0; i < pagesize; ++i)
10084 if (*(data + i) != *(data3 + i))
10087 unlink("conftestmmap");
10092 if { (eval echo configure:10093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10094 ac_cv_func_mmap_fixed_mapped=yes
10097 echo "configure: failed program was:" >&5
10098 cat conftest.$ac_ext >&5
10100 ac_cv_func_mmap_fixed_mapped=no
10104 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
10105 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10106 { test "$extra_verbose" = "yes" && cat << \EOF
10109 cat >> confdefs.h <<\EOF
10110 #define HAVE_MMAP 1
10117 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10118 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
10119 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10122 cat >> confdefs.h <<\EOF
10123 #define REL_ALLOC 1
10128 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10129 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10130 echo "configure:10131: checking for termios.h" >&5
10132 cat > conftest.$ac_ext <<EOF
10133 #line 10134 "configure"
10134 #include "confdefs.h"
10135 #include <termios.h>
10137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10138 { (eval echo configure:10139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10140 if test -z "$ac_err"; then
10142 eval "ac_cv_header_$ac_safe=yes"
10145 echo "configure: failed program was:" >&5
10146 cat conftest.$ac_ext >&5
10148 eval "ac_cv_header_$ac_safe=no"
10151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10152 echo "$ac_t""yes" 1>&6
10153 { test "$extra_verbose" = "yes" && cat << \EOF
10154 Defining HAVE_TERMIOS
10156 cat >> confdefs.h <<\EOF
10157 #define HAVE_TERMIOS 1
10161 { test "$extra_verbose" = "yes" && cat << \EOF
10162 Defining SIGNALS_VIA_CHARACTERS
10164 cat >> confdefs.h <<\EOF
10165 #define SIGNALS_VIA_CHARACTERS 1
10169 { test "$extra_verbose" = "yes" && cat << \EOF
10172 cat >> confdefs.h <<\EOF
10173 #define NO_TERMIO 1
10178 echo "$ac_t""no" 1>&6
10179 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10180 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10181 echo "configure:10182: checking for termio.h" >&5
10183 cat > conftest.$ac_ext <<EOF
10184 #line 10185 "configure"
10185 #include "confdefs.h"
10186 #include <termio.h>
10188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10189 { (eval echo configure:10190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10191 if test -z "$ac_err"; then
10193 eval "ac_cv_header_$ac_safe=yes"
10196 echo "configure: failed program was:" >&5
10197 cat conftest.$ac_ext >&5
10199 eval "ac_cv_header_$ac_safe=no"
10202 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10203 echo "$ac_t""yes" 1>&6
10204 { test "$extra_verbose" = "yes" && cat << \EOF
10205 Defining HAVE_TERMIO
10207 cat >> confdefs.h <<\EOF
10208 #define HAVE_TERMIO 1
10213 echo "$ac_t""no" 1>&6
10220 echo $ac_n "checking for socket""... $ac_c" 1>&6
10221 echo "configure:10222: checking for socket" >&5
10223 cat > conftest.$ac_ext <<EOF
10224 #line 10225 "configure"
10225 #include "confdefs.h"
10226 /* System header to define __stub macros and hopefully few prototypes,
10227 which can conflict with char socket(); below. */
10228 #include <assert.h>
10229 /* Override any gcc2 internal prototype to avoid an error. */
10230 /* We use char because int might match the return type of a gcc2
10231 builtin and then its argument prototype would still apply. */
10236 /* The GNU C library defines this for functions which it implements
10237 to always fail with ENOSYS. Some functions are actually named
10238 something starting with __ and the normal name is an alias. */
10239 #if defined (__stub_socket) || defined (__stub___socket)
10247 if { (eval echo configure:10248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10249 eval "ac_cv_func_socket=yes"
10251 echo "configure: failed program was:" >&5
10252 cat conftest.$ac_ext >&5
10254 eval "ac_cv_func_socket=no"
10258 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10259 echo "$ac_t""yes" 1>&6
10260 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10261 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10262 echo "configure:10263: checking for netinet/in.h" >&5
10264 cat > conftest.$ac_ext <<EOF
10265 #line 10266 "configure"
10266 #include "confdefs.h"
10267 #include <netinet/in.h>
10269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10270 { (eval echo configure:10271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10271 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10272 if test -z "$ac_err"; then
10274 eval "ac_cv_header_$ac_safe=yes"
10277 echo "configure: failed program was:" >&5
10278 cat conftest.$ac_ext >&5
10280 eval "ac_cv_header_$ac_safe=no"
10283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10284 echo "$ac_t""yes" 1>&6
10285 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10286 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10287 echo "configure:10288: checking for arpa/inet.h" >&5
10289 cat > conftest.$ac_ext <<EOF
10290 #line 10291 "configure"
10291 #include "confdefs.h"
10292 #include <arpa/inet.h>
10294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10295 { (eval echo configure:10296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10297 if test -z "$ac_err"; then
10299 eval "ac_cv_header_$ac_safe=yes"
10302 echo "configure: failed program was:" >&5
10303 cat conftest.$ac_ext >&5
10305 eval "ac_cv_header_$ac_safe=no"
10308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10309 echo "$ac_t""yes" 1>&6
10311 { test "$extra_verbose" = "yes" && cat << \EOF
10312 Defining HAVE_SOCKETS
10314 cat >> confdefs.h <<\EOF
10315 #define HAVE_SOCKETS 1
10319 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10320 echo "configure:10321: checking "for sun_len member in struct sockaddr_un"" >&5
10321 cat > conftest.$ac_ext <<EOF
10322 #line 10323 "configure"
10323 #include "confdefs.h"
10325 #include <sys/types.h>
10326 #include <sys/socket.h>
10327 #include <sys/un.h>
10330 static struct sockaddr_un x; x.sun_len = 1;
10333 if { (eval echo configure:10334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10335 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10336 Defining HAVE_SOCKADDR_SUN_LEN
10338 cat >> confdefs.h <<\EOF
10339 #define HAVE_SOCKADDR_SUN_LEN 1
10344 echo "configure: failed program was:" >&5
10345 cat conftest.$ac_ext >&5
10347 echo "$ac_t""no" 1>&6
10350 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10351 echo "configure:10352: checking "for ip_mreq struct in netinet/in.h"" >&5
10352 cat > conftest.$ac_ext <<EOF
10353 #line 10354 "configure"
10354 #include "confdefs.h"
10356 #include <sys/types.h>
10357 #include <netinet/in.h>
10360 static struct ip_mreq x;
10363 if { (eval echo configure:10364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10365 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10366 Defining HAVE_MULTICAST
10368 cat >> confdefs.h <<\EOF
10369 #define HAVE_MULTICAST 1
10374 echo "configure: failed program was:" >&5
10375 cat conftest.$ac_ext >&5
10377 echo "$ac_t""no" 1>&6
10381 echo "$ac_t""no" 1>&6
10385 echo "$ac_t""no" 1>&6
10389 echo "$ac_t""no" 1>&6
10393 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10394 echo "configure:10395: checking for msgget" >&5
10396 cat > conftest.$ac_ext <<EOF
10397 #line 10398 "configure"
10398 #include "confdefs.h"
10399 /* System header to define __stub macros and hopefully few prototypes,
10400 which can conflict with char msgget(); below. */
10401 #include <assert.h>
10402 /* Override any gcc2 internal prototype to avoid an error. */
10403 /* We use char because int might match the return type of a gcc2
10404 builtin and then its argument prototype would still apply. */
10409 /* The GNU C library defines this for functions which it implements
10410 to always fail with ENOSYS. Some functions are actually named
10411 something starting with __ and the normal name is an alias. */
10412 #if defined (__stub_msgget) || defined (__stub___msgget)
10420 if { (eval echo configure:10421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10422 eval "ac_cv_func_msgget=yes"
10424 echo "configure: failed program was:" >&5
10425 cat conftest.$ac_ext >&5
10427 eval "ac_cv_func_msgget=no"
10431 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10432 echo "$ac_t""yes" 1>&6
10433 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10434 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10435 echo "configure:10436: checking for sys/ipc.h" >&5
10437 cat > conftest.$ac_ext <<EOF
10438 #line 10439 "configure"
10439 #include "confdefs.h"
10440 #include <sys/ipc.h>
10442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10443 { (eval echo configure:10444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10445 if test -z "$ac_err"; then
10447 eval "ac_cv_header_$ac_safe=yes"
10450 echo "configure: failed program was:" >&5
10451 cat conftest.$ac_ext >&5
10453 eval "ac_cv_header_$ac_safe=no"
10456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10457 echo "$ac_t""yes" 1>&6
10458 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10459 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10460 echo "configure:10461: checking for sys/msg.h" >&5
10462 cat > conftest.$ac_ext <<EOF
10463 #line 10464 "configure"
10464 #include "confdefs.h"
10465 #include <sys/msg.h>
10467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10468 { (eval echo configure:10469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10470 if test -z "$ac_err"; then
10472 eval "ac_cv_header_$ac_safe=yes"
10475 echo "configure: failed program was:" >&5
10476 cat conftest.$ac_ext >&5
10478 eval "ac_cv_header_$ac_safe=no"
10481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10482 echo "$ac_t""yes" 1>&6
10483 { test "$extra_verbose" = "yes" && cat << \EOF
10484 Defining HAVE_SYSVIPC
10486 cat >> confdefs.h <<\EOF
10487 #define HAVE_SYSVIPC 1
10492 echo "$ac_t""no" 1>&6
10496 echo "$ac_t""no" 1>&6
10500 echo "$ac_t""no" 1>&6
10504 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10505 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10506 echo "configure:10507: checking for dirent.h" >&5
10508 cat > conftest.$ac_ext <<EOF
10509 #line 10510 "configure"
10510 #include "confdefs.h"
10511 #include <dirent.h>
10513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10514 { (eval echo configure:10515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10516 if test -z "$ac_err"; then
10518 eval "ac_cv_header_$ac_safe=yes"
10521 echo "configure: failed program was:" >&5
10522 cat conftest.$ac_ext >&5
10524 eval "ac_cv_header_$ac_safe=no"
10527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10528 echo "$ac_t""yes" 1>&6
10529 { test "$extra_verbose" = "yes" && cat << \EOF
10530 Defining SYSV_SYSTEM_DIR
10532 cat >> confdefs.h <<\EOF
10533 #define SYSV_SYSTEM_DIR 1
10538 echo "$ac_t""no" 1>&6
10539 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10540 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10541 echo "configure:10542: checking for sys/dir.h" >&5
10543 cat > conftest.$ac_ext <<EOF
10544 #line 10545 "configure"
10545 #include "confdefs.h"
10546 #include <sys/dir.h>
10548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10549 { (eval echo configure:10550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10551 if test -z "$ac_err"; then
10553 eval "ac_cv_header_$ac_safe=yes"
10556 echo "configure: failed program was:" >&5
10557 cat conftest.$ac_ext >&5
10559 eval "ac_cv_header_$ac_safe=no"
10562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10563 echo "$ac_t""yes" 1>&6
10566 echo "$ac_t""no" 1>&6
10567 { test "$extra_verbose" = "yes" && cat << \EOF
10568 Defining NONSYSTEM_DIR_LIBRARY
10570 cat >> confdefs.h <<\EOF
10571 #define NONSYSTEM_DIR_LIBRARY 1
10580 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10581 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10582 echo "configure:10583: checking for nlist.h" >&5
10584 cat > conftest.$ac_ext <<EOF
10585 #line 10586 "configure"
10586 #include "confdefs.h"
10589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10590 { (eval echo configure:10591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10592 if test -z "$ac_err"; then
10594 eval "ac_cv_header_$ac_safe=yes"
10597 echo "configure: failed program was:" >&5
10598 cat conftest.$ac_ext >&5
10600 eval "ac_cv_header_$ac_safe=no"
10603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10604 echo "$ac_t""yes" 1>&6
10605 { test "$extra_verbose" = "yes" && cat << \EOF
10606 Defining NLIST_STRUCT
10608 cat >> confdefs.h <<\EOF
10609 #define NLIST_STRUCT 1
10614 echo "$ac_t""no" 1>&6
10619 echo "checking "for sound support"" 1>&6
10620 echo "configure:10621: checking "for sound support"" >&5
10621 case "$with_sound" in
10622 native | both ) with_native_sound=yes;;
10623 nas | no ) with_native_sound=no;;
10625 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10627 if test "$with_native_sound" != "no"; then
10628 if test -n "$native_sound_lib"; then
10629 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10630 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10631 echo "configure:10632: checking for multimedia/audio_device.h" >&5
10633 cat > conftest.$ac_ext <<EOF
10634 #line 10635 "configure"
10635 #include "confdefs.h"
10636 #include <multimedia/audio_device.h>
10638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10639 { (eval echo configure:10640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10641 if test -z "$ac_err"; then
10643 eval "ac_cv_header_$ac_safe=yes"
10646 echo "configure: failed program was:" >&5
10647 cat conftest.$ac_ext >&5
10649 eval "ac_cv_header_$ac_safe=no"
10652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10653 echo "$ac_t""yes" 1>&6
10654 sound_found=yes sound_cflags=""
10655 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10656 echo " xemacs will be linked with \"sunplay.o\""
10659 echo "$ac_t""no" 1>&6
10664 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
10666 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10667 echo " xemacs will be linked with \"sunplay.o\""
10669 if test -d "/usr/demo/SOUND/include"
10670 then sound_cflags="-I/usr/demo/SOUND/include"
10671 else sound_cflags="-I/usr/demo/SOUND"
10673 if test -z "$native_sound_lib" ; then
10674 if test -r "/usr/demo/SOUND/lib/libaudio.a"
10675 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
10676 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
10681 if test -z "$sound_found"; then
10682 case "$canonical" in
10684 if test -z "$native_sound_lib"; then
10686 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10687 echo "configure:10688: checking for ALopenport in -laudio" >&5
10688 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10690 xe_check_libs=" -laudio "
10691 cat > conftest.$ac_ext <<EOF
10692 #line 10693 "configure"
10693 #include "confdefs.h"
10694 /* Override any gcc2 internal prototype to avoid an error. */
10695 /* We use char because int might match the return type of a gcc2
10696 builtin and then its argument prototype would still apply. */
10703 if { (eval echo configure:10704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10705 eval "ac_cv_lib_$ac_lib_var=yes"
10707 echo "configure: failed program was:" >&5
10708 cat conftest.$ac_ext >&5
10710 eval "ac_cv_lib_$ac_lib_var=no"
10715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10716 echo "$ac_t""yes" 1>&6
10717 native_sound_lib="-laudio"
10719 echo "$ac_t""no" 1>&6
10724 if test -n "$native_sound_lib"; then
10725 sound_found=yes sound_cflags=""
10726 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
10727 echo " xemacs will be linked with \"sgiplay.o\""
10731 if test -z "$native_sound_lib"; then
10733 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10734 echo "configure:10735: checking for AOpenAudio in -lAlib" >&5
10735 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10737 xe_check_libs=" -lAlib "
10738 cat > conftest.$ac_ext <<EOF
10739 #line 10740 "configure"
10740 #include "confdefs.h"
10741 /* Override any gcc2 internal prototype to avoid an error. */
10742 /* We use char because int might match the return type of a gcc2
10743 builtin and then its argument prototype would still apply. */
10750 if { (eval echo configure:10751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10752 eval "ac_cv_lib_$ac_lib_var=yes"
10754 echo "configure: failed program was:" >&5
10755 cat conftest.$ac_ext >&5
10757 eval "ac_cv_lib_$ac_lib_var=no"
10762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10763 echo "$ac_t""yes" 1>&6
10764 native_sound_lib="-lAlib"
10766 echo "$ac_t""no" 1>&6
10771 if test -n "$native_sound_lib"; then
10773 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
10774 echo " xemacs will be linked with \"hpplay.o\""
10776 if test "$GCC" = "yes" # Kludge city
10777 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
10778 else sound_cflags="+e -I/usr/audio/examples"
10784 if test -z "$sound_found"; then
10785 for dir in "machine" "sys" "linux"; do
10786 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10787 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10788 echo "configure:10789: checking for ${dir}/soundcard.h" >&5
10790 cat > conftest.$ac_ext <<EOF
10791 #line 10792 "configure"
10792 #include "confdefs.h"
10793 #include <${dir}/soundcard.h>
10795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10796 { (eval echo configure:10797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10798 if test -z "$ac_err"; then
10800 eval "ac_cv_header_$ac_safe=yes"
10803 echo "configure: failed program was:" >&5
10804 cat conftest.$ac_ext >&5
10806 eval "ac_cv_header_$ac_safe=no"
10809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10810 echo "$ac_t""yes" 1>&6
10812 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
10813 echo " xemacs will be linked with \"linuxplay.o\""
10815 { test "$extra_verbose" = "yes" && cat << EOF
10816 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
10818 cat >> confdefs.h <<EOF
10819 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
10825 echo "$ac_t""no" 1>&6
10831 test "$sound_found" = "yes" && with_native_sound=yes
10834 if test -z "$with_sound"; then
10835 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
10840 if test "$with_native_sound" = "yes"; then
10841 { test "$extra_verbose" = "yes" && cat << \EOF
10842 Defining HAVE_NATIVE_SOUND
10844 cat >> confdefs.h <<\EOF
10845 #define HAVE_NATIVE_SOUND 1
10849 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
10852 case "$with_sound" in both | nas )
10853 { test "$extra_verbose" = "yes" && cat << \EOF
10854 Defining HAVE_NAS_SOUND
10856 cat >> confdefs.h <<\EOF
10857 #define HAVE_NAS_SOUND 1
10861 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10862 echo " xemacs will be linked with \"nas.o\""
10864 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10865 cat > conftest.$ac_ext <<EOF
10866 #line 10867 "configure"
10867 #include "confdefs.h"
10868 #include <audio/Xtutil.h>
10870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10871 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10875 { test "$extra_verbose" = "yes" && cat << \EOF
10876 Defining NAS_NO_ERROR_JUMP
10878 cat >> confdefs.h <<\EOF
10879 #define NAS_NO_ERROR_JUMP 1
10889 test -z "$with_tty" && with_tty=yes
10891 if test "$with_tty" = "yes" ; then
10892 echo "checking for TTY-related features" 1>&6
10893 echo "configure:10894: checking for TTY-related features" >&5
10894 { test "$extra_verbose" = "yes" && cat << \EOF
10897 cat >> confdefs.h <<\EOF
10902 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
10903 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\""
10906 if test -z "$with_ncurses"; then
10908 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10909 echo "configure:10910: checking for tgetent in -lncurses" >&5
10910 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10912 xe_check_libs=" -lncurses "
10913 cat > conftest.$ac_ext <<EOF
10914 #line 10915 "configure"
10915 #include "confdefs.h"
10916 /* Override any gcc2 internal prototype to avoid an error. */
10917 /* We use char because int might match the return type of a gcc2
10918 builtin and then its argument prototype would still apply. */
10925 if { (eval echo configure:10926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10927 eval "ac_cv_lib_$ac_lib_var=yes"
10929 echo "configure: failed program was:" >&5
10930 cat conftest.$ac_ext >&5
10932 eval "ac_cv_lib_$ac_lib_var=no"
10937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10938 echo "$ac_t""yes" 1>&6
10941 echo "$ac_t""no" 1>&6
10947 if test "$with_ncurses" = "yes"; then
10948 { test "$extra_verbose" = "yes" && cat << \EOF
10949 Defining HAVE_NCURSES
10951 cat >> confdefs.h <<\EOF
10952 #define HAVE_NCURSES 1
10956 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10957 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10958 echo "configure:10959: checking for ncurses/curses.h" >&5
10960 cat > conftest.$ac_ext <<EOF
10961 #line 10962 "configure"
10962 #include "confdefs.h"
10963 #include <ncurses/curses.h>
10965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10966 { (eval echo configure:10967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10967 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10968 if test -z "$ac_err"; then
10970 eval "ac_cv_header_$ac_safe=yes"
10973 echo "configure: failed program was:" >&5
10974 cat conftest.$ac_ext >&5
10976 eval "ac_cv_header_$ac_safe=no"
10979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10980 echo "$ac_t""yes" 1>&6
10981 curses_h_path=ncurses/curses.h
10983 echo "$ac_t""no" 1>&6
10986 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10987 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10988 echo "configure:10989: checking for ncurses/term.h" >&5
10990 cat > conftest.$ac_ext <<EOF
10991 #line 10992 "configure"
10992 #include "confdefs.h"
10993 #include <ncurses/term.h>
10995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10996 { (eval echo configure:10997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10998 if test -z "$ac_err"; then
11000 eval "ac_cv_header_$ac_safe=yes"
11003 echo "configure: failed program was:" >&5
11004 cat conftest.$ac_ext >&5
11006 eval "ac_cv_header_$ac_safe=no"
11009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11010 echo "$ac_t""yes" 1>&6
11011 term_h_path=ncurses/term.h
11013 echo "$ac_t""no" 1>&6
11016 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11017 echo " xemacs will be linked with \"terminfo.o\""
11019 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
11021 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
11022 save_c_switch_site="$c_switch_site"
11023 c_switch_site="$c_switch_site -I/usr/include/ncurses"
11024 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11025 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11026 echo "configure:11027: checking for ncurses/curses.h" >&5
11028 cat > conftest.$ac_ext <<EOF
11029 #line 11030 "configure"
11030 #include "confdefs.h"
11031 #include <ncurses/curses.h>
11033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11034 { (eval echo configure:11035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11036 if test -z "$ac_err"; then
11038 eval "ac_cv_header_$ac_safe=yes"
11041 echo "configure: failed program was:" >&5
11042 cat conftest.$ac_ext >&5
11044 eval "ac_cv_header_$ac_safe=no"
11047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11048 echo "$ac_t""yes" 1>&6
11049 curses_h_path=ncurses/curses.h
11051 echo "$ac_t""no" 1>&6
11054 if test "$ac_cv_header_ncurses_curses_h" = "yes"
11055 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
11056 else c_switch_site="$save_c_switch_site"
11059 else if test "$have_terminfo" = "yes"; then
11060 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11061 echo " xemacs will be linked with \"terminfo.o\""
11063 if test -n "$libs_termcap"; then
11064 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11066 for lib in curses termlib termcap; do
11068 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
11069 echo "configure:11070: checking for tgetent in -l$lib" >&5
11070 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
11072 xe_check_libs=" -l$lib "
11073 cat > conftest.$ac_ext <<EOF
11074 #line 11075 "configure"
11075 #include "confdefs.h"
11076 /* Override any gcc2 internal prototype to avoid an error. */
11077 /* We use char because int might match the return type of a gcc2
11078 builtin and then its argument prototype would still apply. */
11085 if { (eval echo configure:11086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11087 eval "ac_cv_lib_$ac_lib_var=yes"
11089 echo "configure: failed program was:" >&5
11090 cat conftest.$ac_ext >&5
11092 eval "ac_cv_lib_$ac_lib_var=no"
11097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11098 echo "$ac_t""yes" 1>&6
11099 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
11101 echo "$ac_t""no" 1>&6
11107 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
11108 echo " xemacs will be linked with \"tparam.o\""
11110 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
11111 if test -n "$libs_termcap"; then
11112 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11115 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11116 echo "configure:11117: checking for tgetent in -lcurses" >&5
11117 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11119 xe_check_libs=" -lcurses "
11120 cat > conftest.$ac_ext <<EOF
11121 #line 11122 "configure"
11122 #include "confdefs.h"
11123 /* Override any gcc2 internal prototype to avoid an error. */
11124 /* We use char because int might match the return type of a gcc2
11125 builtin and then its argument prototype would still apply. */
11132 if { (eval echo configure:11133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11134 eval "ac_cv_lib_$ac_lib_var=yes"
11136 echo "configure: failed program was:" >&5
11137 cat conftest.$ac_ext >&5
11139 eval "ac_cv_lib_$ac_lib_var=no"
11144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11145 echo "$ac_t""yes" 1>&6
11146 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11148 echo "$ac_t""no" 1>&6
11149 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11150 echo "configure:11151: checking for tgetent in -ltermcap" >&5
11151 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11153 xe_check_libs=" -ltermcap "
11154 cat > conftest.$ac_ext <<EOF
11155 #line 11156 "configure"
11156 #include "confdefs.h"
11157 /* Override any gcc2 internal prototype to avoid an error. */
11158 /* We use char because int might match the return type of a gcc2
11159 builtin and then its argument prototype would still apply. */
11166 if { (eval echo configure:11167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11168 eval "ac_cv_lib_$ac_lib_var=yes"
11170 echo "configure: failed program was:" >&5
11171 cat conftest.$ac_ext >&5
11173 eval "ac_cv_lib_$ac_lib_var=no"
11178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11179 echo "$ac_t""yes" 1>&6
11180 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
11182 echo "$ac_t""no" 1>&6
11183 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
11184 echo " xemacs will be linked with \"termcap.o\""
11195 { test "$extra_verbose" = "yes" && cat << EOF
11196 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
11198 cat >> confdefs.h <<EOF
11199 #define CURSES_H_PATH "${curses_h_path-curses.h}"
11203 { test "$extra_verbose" = "yes" && cat << EOF
11204 Defining TERM_H_PATH = "${term_h_path-term.h}"
11206 cat >> confdefs.h <<EOF
11207 #define TERM_H_PATH "${term_h_path-term.h}"
11212 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11213 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11214 echo "configure:11215: checking for gpm.h" >&5
11216 cat > conftest.$ac_ext <<EOF
11217 #line 11218 "configure"
11218 #include "confdefs.h"
11221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11222 { (eval echo configure:11223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11224 if test -z "$ac_err"; then
11226 eval "ac_cv_header_$ac_safe=yes"
11229 echo "configure: failed program was:" >&5
11230 cat conftest.$ac_ext >&5
11232 eval "ac_cv_header_$ac_safe=no"
11235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11236 echo "$ac_t""yes" 1>&6
11239 echo "$ac_t""no" 1>&6
11243 test -z "$with_gpm" && {
11244 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11245 echo "configure:11246: checking for Gpm_Open in -lgpm" >&5
11246 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11248 xe_check_libs=" -lgpm "
11249 cat > conftest.$ac_ext <<EOF
11250 #line 11251 "configure"
11251 #include "confdefs.h"
11252 /* Override any gcc2 internal prototype to avoid an error. */
11253 /* We use char because int might match the return type of a gcc2
11254 builtin and then its argument prototype would still apply. */
11261 if { (eval echo configure:11262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11263 eval "ac_cv_lib_$ac_lib_var=yes"
11265 echo "configure: failed program was:" >&5
11266 cat conftest.$ac_ext >&5
11268 eval "ac_cv_lib_$ac_lib_var=no"
11273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11274 echo "$ac_t""yes" 1>&6
11277 echo "$ac_t""no" 1>&6
11282 if test "$with_gpm" = "yes"; then
11283 { test "$extra_verbose" = "yes" && cat << \EOF
11286 cat >> confdefs.h <<\EOF
11291 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
11292 echo " xemacs will be linked with \"gpmevent.o\""
11294 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
11297 else for feature in ncurses gpm; do
11298 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11299 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
11301 eval "with_${feature}=no"
11304 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
11305 echo " xemacs will be linked with \"event-unixoid.o\""
11309 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11310 != "no no no" && echo "checking for database support" 1>&6
11311 echo "configure:11312: checking for database support" >&5
11313 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
11314 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11315 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11316 echo "configure:11317: checking for ndbm.h" >&5
11318 cat > conftest.$ac_ext <<EOF
11319 #line 11320 "configure"
11320 #include "confdefs.h"
11323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11324 { (eval echo configure:11325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11326 if test -z "$ac_err"; then
11328 eval "ac_cv_header_$ac_safe=yes"
11331 echo "configure: failed program was:" >&5
11332 cat conftest.$ac_ext >&5
11334 eval "ac_cv_header_$ac_safe=no"
11337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11338 echo "$ac_t""yes" 1>&6
11341 echo "$ac_t""no" 1>&6
11343 test "$with_database_gnudbm" = "yes" -o \
11344 "$with_database_dbm" = "yes" && \
11345 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11346 with_database_gnudbm=no with_database_dbm=no
11351 if test "$with_database_gnudbm" != "no"; then
11353 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11354 echo "configure:11355: checking for dbm_open in -lgdbm" >&5
11355 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11357 xe_check_libs=" -lgdbm "
11358 cat > conftest.$ac_ext <<EOF
11359 #line 11360 "configure"
11360 #include "confdefs.h"
11361 /* Override any gcc2 internal prototype to avoid an error. */
11362 /* We use char because int might match the return type of a gcc2
11363 builtin and then its argument prototype would still apply. */
11370 if { (eval echo configure:11371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11372 eval "ac_cv_lib_$ac_lib_var=yes"
11374 echo "configure: failed program was:" >&5
11375 cat conftest.$ac_ext >&5
11377 eval "ac_cv_lib_$ac_lib_var=no"
11382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11383 echo "$ac_t""yes" 1>&6
11384 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm
11386 echo "$ac_t""no" 1>&6
11387 if test "$with_database_gnudbm" = "yes"; then
11388 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
11390 with_database_gnudbm=no
11396 if test "$with_database_dbm" != "no"; then
11397 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11398 echo "configure:11399: checking for dbm_open" >&5
11400 cat > conftest.$ac_ext <<EOF
11401 #line 11402 "configure"
11402 #include "confdefs.h"
11403 /* System header to define __stub macros and hopefully few prototypes,
11404 which can conflict with char dbm_open(); below. */
11405 #include <assert.h>
11406 /* Override any gcc2 internal prototype to avoid an error. */
11407 /* We use char because int might match the return type of a gcc2
11408 builtin and then its argument prototype would still apply. */
11413 /* The GNU C library defines this for functions which it implements
11414 to always fail with ENOSYS. Some functions are actually named
11415 something starting with __ and the normal name is an alias. */
11416 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11424 if { (eval echo configure:11425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11426 eval "ac_cv_func_dbm_open=yes"
11428 echo "configure: failed program was:" >&5
11429 cat conftest.$ac_ext >&5
11431 eval "ac_cv_func_dbm_open=no"
11435 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11436 echo "$ac_t""yes" 1>&6
11437 with_database_dbm=yes libdbm=
11439 echo "$ac_t""no" 1>&6
11442 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11443 echo "configure:11444: checking for dbm_open in -ldbm" >&5
11444 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11446 xe_check_libs=" -ldbm "
11447 cat > conftest.$ac_ext <<EOF
11448 #line 11449 "configure"
11449 #include "confdefs.h"
11450 /* Override any gcc2 internal prototype to avoid an error. */
11451 /* We use char because int might match the return type of a gcc2
11452 builtin and then its argument prototype would still apply. */
11459 if { (eval echo configure:11460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11461 eval "ac_cv_lib_$ac_lib_var=yes"
11463 echo "configure: failed program was:" >&5
11464 cat conftest.$ac_ext >&5
11466 eval "ac_cv_lib_$ac_lib_var=no"
11471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11472 echo "$ac_t""yes" 1>&6
11473 with_database_dbm=yes libdbm=-ldbm
11475 echo "$ac_t""no" 1>&6
11476 test "$with_database_dbm" = "yes" && \
11477 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11478 with_database_dbm=no
11486 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
11487 test "$with_database_gnudbm" = "yes" -o \
11488 "$with_database_dbm" = "yes" && \
11489 { test "$extra_verbose" = "yes" && cat << \EOF
11492 cat >> confdefs.h <<\EOF
11498 if test "$with_database_berkdb" != "no"; then
11499 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11500 echo "configure:11501: checking for Berkeley db.h" >&5
11501 for path in "db/db.h" "db.h"; do
11502 cat > conftest.$ac_ext <<EOF
11503 #line 11504 "configure"
11504 #include "confdefs.h"
11505 #ifdef HAVE_INTTYPES_H
11506 #define __BIT_TYPES_DEFINED__
11507 #include <inttypes.h>
11508 typedef uint8_t u_int8_t;
11509 typedef uint16_t u_int16_t;
11510 typedef uint32_t u_int32_t;
11511 #ifdef WE_DONT_NEED_QUADS
11512 typedef uint64_t u_int64_t;
11521 if { (eval echo configure:11522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11523 db_h_path="$path"; break
11525 echo "configure: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11530 if test -z "$db_h_path"
11531 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
11532 else echo "$ac_t""$db_h_path" 1>&6
11535 if test "$with_database_berkdb" != "no"; then
11536 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11537 echo "configure:11538: checking for Berkeley DB version" >&5
11538 cat > conftest.$ac_ext <<EOF
11539 #line 11540 "configure"
11540 #include "confdefs.h"
11541 #include <$db_h_path>
11542 #if DB_VERSION_MAJOR > 1
11547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11548 egrep "yes" >/dev/null 2>&1; then
11550 echo "$ac_t""2" 1>&6; dbfunc=db_open
11553 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11557 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11558 echo "configure:11559: checking for $dbfunc" >&5
11560 cat > conftest.$ac_ext <<EOF
11561 #line 11562 "configure"
11562 #include "confdefs.h"
11563 /* System header to define __stub macros and hopefully few prototypes,
11564 which can conflict with char $dbfunc(); below. */
11565 #include <assert.h>
11566 /* Override any gcc2 internal prototype to avoid an error. */
11567 /* We use char because int might match the return type of a gcc2
11568 builtin and then its argument prototype would still apply. */
11573 /* The GNU C library defines this for functions which it implements
11574 to always fail with ENOSYS. Some functions are actually named
11575 something starting with __ and the normal name is an alias. */
11576 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
11584 if { (eval echo configure:11585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11586 eval "ac_cv_func_$dbfunc=yes"
11588 echo "configure: failed program was:" >&5
11589 cat conftest.$ac_ext >&5
11591 eval "ac_cv_func_$dbfunc=no"
11595 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
11596 echo "$ac_t""yes" 1>&6
11597 with_database_berkdb=yes need_libdb=no
11599 echo "$ac_t""no" 1>&6
11602 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11603 echo "configure:11604: checking for $dbfunc in -ldb" >&5
11604 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11606 xe_check_libs=" -ldb "
11607 cat > conftest.$ac_ext <<EOF
11608 #line 11609 "configure"
11609 #include "confdefs.h"
11610 /* Override any gcc2 internal prototype to avoid an error. */
11611 /* We use char because int might match the return type of a gcc2
11612 builtin and then its argument prototype would still apply. */
11619 if { (eval echo configure:11620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11621 eval "ac_cv_lib_$ac_lib_var=yes"
11623 echo "configure: failed program was:" >&5
11624 cat conftest.$ac_ext >&5
11626 eval "ac_cv_lib_$ac_lib_var=no"
11631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11632 echo "$ac_t""yes" 1>&6
11633 with_database_berkdb=yes need_libdb=yes
11635 echo "$ac_t""no" 1>&6
11643 if test "$with_database_berkdb" = "yes"; then
11644 { test "$extra_verbose" = "yes" && cat << EOF
11645 Defining DB_H_PATH = "$db_h_path"
11647 cat >> confdefs.h <<EOF
11648 #define DB_H_PATH "$db_h_path"
11652 { test "$extra_verbose" = "yes" && cat << \EOF
11653 Defining HAVE_BERKELEY_DB
11655 cat >> confdefs.h <<\EOF
11656 #define HAVE_BERKELEY_DB 1
11660 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
11661 else with_database_berkdb=no
11665 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11666 != "no no no"; then
11667 { test "$extra_verbose" = "yes" && cat << \EOF
11668 Defining HAVE_DATABASE
11670 cat >> confdefs.h <<\EOF
11671 #define HAVE_DATABASE 1
11675 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
11676 echo " xemacs will be linked with \"database.o\""
11680 if test "$with_socks" = "yes"; then
11682 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11683 echo "configure:11684: checking for SOCKSinit in -lsocks" >&5
11684 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11686 xe_check_libs=" -lsocks "
11687 cat > conftest.$ac_ext <<EOF
11688 #line 11689 "configure"
11689 #include "confdefs.h"
11690 /* Override any gcc2 internal prototype to avoid an error. */
11691 /* We use char because int might match the return type of a gcc2
11692 builtin and then its argument prototype would still apply. */
11699 if { (eval echo configure:11700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11701 eval "ac_cv_lib_$ac_lib_var=yes"
11703 echo "configure: failed program was:" >&5
11704 cat conftest.$ac_ext >&5
11706 eval "ac_cv_lib_$ac_lib_var=no"
11711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11712 echo "$ac_t""yes" 1>&6
11713 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11714 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11715 { test "$extra_verbose" = "yes" && cat << EOF
11716 Defining $ac_tr_lib
11718 cat >> confdefs.h <<EOF
11719 #define $ac_tr_lib 1
11723 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
11726 echo "$ac_t""no" 1>&6
11730 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
11731 Defining HAVE_SOCKS
11733 cat >> confdefs.h <<\EOF
11734 #define HAVE_SOCKS 1
11740 if test "$usage_tracking" = "yes"; then
11741 { test "$extra_verbose" = "yes" && cat << \EOF
11742 Defining USAGE_TRACKING
11744 cat >> confdefs.h <<\EOF
11745 #define USAGE_TRACKING 1
11749 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11752 for ac_hdr in dlfcn.h
11754 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11755 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11756 echo "configure:11757: checking for $ac_hdr" >&5
11758 cat > conftest.$ac_ext <<EOF
11759 #line 11760 "configure"
11760 #include "confdefs.h"
11763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11764 { (eval echo configure:11765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11766 if test -z "$ac_err"; then
11768 eval "ac_cv_header_$ac_safe=yes"
11771 echo "configure: failed program was:" >&5
11772 cat conftest.$ac_ext >&5
11774 eval "ac_cv_header_$ac_safe=no"
11777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11778 echo "$ac_t""yes" 1>&6
11779 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11780 { test "$extra_verbose" = "yes" && cat << EOF
11781 Defining $ac_tr_hdr
11783 cat >> confdefs.h <<EOF
11784 #define $ac_tr_hdr 1
11788 { test "$extra_verbose" = "yes" && cat << \EOF
11789 Defining HAVE_DLFCN_H
11791 cat >> confdefs.h <<\EOF
11792 #define HAVE_DLFCN_H 1
11797 echo "$ac_t""no" 1>&6
11801 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11802 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11803 echo "configure:11804: checking for dlopen in -ldl" >&5
11804 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11806 xe_check_libs=" -ldl "
11807 cat > conftest.$ac_ext <<EOF
11808 #line 11809 "configure"
11809 #include "confdefs.h"
11810 /* Override any gcc2 internal prototype to avoid an error. */
11811 /* We use char because int might match the return type of a gcc2
11812 builtin and then its argument prototype would still apply. */
11819 if { (eval echo configure:11820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11821 eval "ac_cv_lib_$ac_lib_var=yes"
11823 echo "configure: failed program was:" >&5
11824 cat conftest.$ac_ext >&5
11826 eval "ac_cv_lib_$ac_lib_var=no"
11831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11832 echo "$ac_t""yes" 1>&6
11833 { test "$extra_verbose" = "yes" && cat << \EOF
11834 Defining HAVE_DLOPEN
11836 cat >> confdefs.h <<\EOF
11837 #define HAVE_DLOPEN 1
11840 DLL_LIB=dl; with_shlib=yes
11842 echo "$ac_t""no" 1>&6
11846 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11847 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11848 echo "configure:11849: checking for _dlopen in -lc" >&5
11849 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11851 xe_check_libs=" -lc "
11852 cat > conftest.$ac_ext <<EOF
11853 #line 11854 "configure"
11854 #include "confdefs.h"
11855 /* Override any gcc2 internal prototype to avoid an error. */
11856 /* We use char because int might match the return type of a gcc2
11857 builtin and then its argument prototype would still apply. */
11864 if { (eval echo configure:11865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11866 eval "ac_cv_lib_$ac_lib_var=yes"
11868 echo "configure: failed program was:" >&5
11869 cat conftest.$ac_ext >&5
11871 eval "ac_cv_lib_$ac_lib_var=no"
11876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11877 echo "$ac_t""yes" 1>&6
11878 { test "$extra_verbose" = "yes" && cat << \EOF
11879 Defining HAVE_DLOPEN
11881 cat >> confdefs.h <<\EOF
11882 #define HAVE_DLOPEN 1
11885 DLL_LIB=; with_shlib=yes
11887 echo "$ac_t""no" 1>&6
11891 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11892 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11893 echo "configure:11894: checking for dlopen in -lc" >&5
11894 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11896 xe_check_libs=" -lc "
11897 cat > conftest.$ac_ext <<EOF
11898 #line 11899 "configure"
11899 #include "confdefs.h"
11900 /* Override any gcc2 internal prototype to avoid an error. */
11901 /* We use char because int might match the return type of a gcc2
11902 builtin and then its argument prototype would still apply. */
11909 if { (eval echo configure:11910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11911 eval "ac_cv_lib_$ac_lib_var=yes"
11913 echo "configure: failed program was:" >&5
11914 cat conftest.$ac_ext >&5
11916 eval "ac_cv_lib_$ac_lib_var=no"
11921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11922 echo "$ac_t""yes" 1>&6
11923 { test "$extra_verbose" = "yes" && cat << \EOF
11924 Defining HAVE_DLOPEN
11926 cat >> confdefs.h <<\EOF
11927 #define HAVE_DLOPEN 1
11930 DLL_LIB=; with_shlib=yes
11932 echo "$ac_t""no" 1>&6
11936 test -z "$with_shlib" && {
11937 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11938 echo "configure:11939: checking for shl_load in -ldld" >&5
11939 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11941 xe_check_libs=" -ldld "
11942 cat > conftest.$ac_ext <<EOF
11943 #line 11944 "configure"
11944 #include "confdefs.h"
11945 /* Override any gcc2 internal prototype to avoid an error. */
11946 /* We use char because int might match the return type of a gcc2
11947 builtin and then its argument prototype would still apply. */
11954 if { (eval echo configure:11955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11956 eval "ac_cv_lib_$ac_lib_var=yes"
11958 echo "configure: failed program was:" >&5
11959 cat conftest.$ac_ext >&5
11961 eval "ac_cv_lib_$ac_lib_var=no"
11966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11967 echo "$ac_t""yes" 1>&6
11968 { test "$extra_verbose" = "yes" && cat << \EOF
11969 Defining HAVE_SHL_LOAD
11971 cat >> confdefs.h <<\EOF
11972 #define HAVE_SHL_LOAD 1
11975 DLL_LIB=dld; with_shlib=yes
11977 echo "$ac_t""no" 1>&6
11981 test -z "$with_shlib" && {
11982 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11983 echo "configure:11984: checking for dld_init in -ldld" >&5
11984 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11986 xe_check_libs=" -ldld "
11987 cat > conftest.$ac_ext <<EOF
11988 #line 11989 "configure"
11989 #include "confdefs.h"
11990 /* Override any gcc2 internal prototype to avoid an error. */
11991 /* We use char because int might match the return type of a gcc2
11992 builtin and then its argument prototype would still apply. */
11999 if { (eval echo configure:12000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12001 eval "ac_cv_lib_$ac_lib_var=yes"
12003 echo "configure: failed program was:" >&5
12004 cat conftest.$ac_ext >&5
12006 eval "ac_cv_lib_$ac_lib_var=no"
12011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12012 echo "$ac_t""yes" 1>&6
12013 { test "$extra_verbose" = "yes" && cat << \EOF
12014 Defining HAVE_DLD_INIT
12016 cat >> confdefs.h <<\EOF
12017 #define HAVE_DLD_INIT 1
12020 DLL_LIB=dld; with_shlib=yes
12022 echo "$ac_t""no" 1>&6
12026 if test "$with_shlib" = "yes"; then
12033 ld_dynamic_link_flags=
12035 xealias=$internal_configuration
12037 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
12038 echo "configure:12039: checking how to build dynamic libraries for ${xehost}" >&5
12039 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
12042 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
12045 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
12046 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
12047 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
12049 case "$xehost_os" in
12051 # AIX sometimes has problems with the GCC collect2 program. For some
12052 # reason, if we set the COLLECT_NAMES environment variable, the problems
12053 # vanish in a puff of smoke.
12054 if test "${COLLECT_NAMES+set}" != set; then
12056 export COLLECT_NAMES
12061 # Now see if the compiler is really GCC.
12062 if test "$GCC" = "yes"; then
12065 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
12066 echo "configure:12067: checking checking whether we are using GNU C" >&5
12067 cat > conftest.$ac_ext <<EOF
12068 #line 12069 "configure"
12069 #include "confdefs.h"
12076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12077 egrep "yes" >/dev/null 2>&1; then
12086 echo "$ac_t""${XEGCC}" 1>&6
12089 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12090 echo "configure:12091: checking how to produce PIC code" >&5
12093 can_build_shared=yes
12094 if test "$XEGCC" = yes; then
12097 case "$xehost_os" in
12098 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
12099 # PIC is the default for these OSes.
12103 # We can build DLLs from non-PIC.
12106 # FIXME: we need at least 68020 code to build shared libraries, but
12107 # adding the `-m68020' flag to GCC prevents building anything better,
12109 dll_cflags='-m68020 -resident32 -malways-restore-a4'
12116 # PORTME Check for PIC flags for the system compiler.
12117 case "$xehost_os" in
12119 # Is there a better link_static_flag that works with the bundled CC?
12126 # PIC (with -KPIC) is the default.
12130 # We can build DLLs from non-PIC.
12134 # All OSF/1 code is PIC.
12139 dll_cflags='-belf -Kpic'
12173 can_build_shared=no
12178 if test -n "$dll_cflags"; then
12179 echo "$ac_t""${dll_cflags}" 1>&6
12181 # Check to make sure the dll_cflags actually works.
12182 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12183 echo "configure:12184: checking if PIC flag ${dll_cflags} really works" >&5
12184 save_CFLAGS="$CFLAGS"
12185 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12186 cat > conftest.$ac_ext <<EOF
12187 #line 12188 "configure"
12188 #include "confdefs.h"
12194 if { (eval echo configure:12195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12197 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12198 # reports no error. So, we need to grep stderr for (Bundled).
12199 if grep '(Bundled)' config.log >/dev/null; then
12200 echo "$ac_t""no" 1>&6
12201 can_build_shared=no
12204 echo "$ac_t""yes" 1>&6
12207 echo "configure: failed program was:" >&5
12208 cat conftest.$ac_ext >&5
12210 echo "$ac_t""no" 1>&6
12211 can_build_shared=no
12215 CFLAGS="$save_CFLAGS"
12217 echo "$ac_t""none" 1>&6
12220 if test "$can_build_shared" = "yes"; then
12224 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12225 echo "configure:12226: checking if C compiler can produce shared libraries" >&5
12226 if test "$XEGCC" = yes; then
12229 else # Not using GCC
12230 case "$xehost_os" in
12232 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
12233 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
12236 freebsd2* | netbsd* | openbsd*)
12238 xcldf="${wl}-Bshareable"
12247 xcldf="${wl}-b ${wl}+s"
12250 irix5* | irix6* | osf3* | osf4*)
12251 xcldf="${wl}-shared"
12255 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
12261 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
12262 xldf="-assert pure-text -Bstatic"
12265 fi # End if if we are using gcc
12267 if test -n "$xcldf"; then
12268 save_LDFLAGS=$LDFLAGS
12270 save_xe_libs=$xe_libs
12271 LDFLAGS="$xcldf $LDFLAGS"
12274 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12275 cat > conftest.$ac_ext <<EOF
12276 #line 12277 "configure"
12277 #include "confdefs.h"
12283 if { (eval echo configure:12284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12287 echo "configure: failed program was:" >&5
12288 cat conftest.$ac_ext >&5
12293 LDFLAGS=$save_LDFLAGS
12295 xe_libs=$save_xe_libs
12296 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12300 echo "$ac_t""${cc_produces_so}" 1>&6
12303 if test -z "$LTLD"; then
12305 if test "$XEGCC" = yes; then
12306 # Check if gcc -print-prog-name=ld gives a path.
12307 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12308 echo "configure:12309: checking for ld used by GCC" >&5
12309 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12311 # Accept absolute paths.
12313 if test -z "$LTLD"; then
12315 *gcc-lib*) LTLD="$CC"
12323 # If it fails, then pretend we aren't using GCC.
12327 # If it is relative, then search for the first ld in PATH.
12328 with_gnu_ld=unknown
12332 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12333 echo "configure:12334: checking for GNU ld" >&5
12336 if test -z "$LTLD"; then
12337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12338 for ac_dir in $PATH; do
12339 test -z "$ac_dir" && ac_dir=.
12340 if test -f "$ac_dir/$ac_prog"; then
12341 LTLD="$ac_dir/$ac_prog"
12342 # Check to see if the program is GNU ld. I'd rather use --version,
12343 # but apparently some GNU ld's only accept -v.
12344 # Break only if it was the GNU/non-GNU ld that we prefer.
12345 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12355 if test -n "$LTLD"; then
12356 echo "$ac_t""${LTLD}" 1>&6
12358 echo "$ac_t""no" 1>&6
12361 if test -z "$LTLD" -a "$cc_produces_so" = no; then
12362 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
12367 ld_dynamic_link_flags=
12369 # Check to see if it really is or isn't GNU ld.
12370 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12371 echo "configure:12372: checking if the linker is GNU ld" >&5
12372 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12373 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12378 echo "$ac_t""${xe_gnu_ld}" 1>&6
12380 case "$xehost_os" in
12381 amigaos* | sunos4*)
12382 # On these operating systems, we should treat GNU ld like the system ld.
12383 gnu_ld_acts_native=yes
12386 gnu_ld_acts_native=no
12390 if test "$cc_produces_so" = "yes"; then
12393 can_build_shared=yes
12395 # OK - only NOW do we futz about with ld.
12396 # See if the linker supports building shared libraries.
12397 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12398 echo "configure:12399: checking whether the linker supports shared libraries" >&5
12400 dll_ldflags=$LDFLAGS
12402 can_build_shared=yes
12403 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12404 # See if GNU ld supports shared libraries.
12405 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12407 dll_ldflags="-shared"
12413 # PORTME fill in a description of your system's linker (not GNU ld)
12414 case "$xehost_os" in
12424 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12425 # support. Future versions do this automatically, but an explicit c++rt0.o
12426 # doesn't break anything, and helps significantly (at the cost of a little
12431 dll_post="/usr/lib/c++rt0.o"
12434 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
12437 dll_ldflags="-Bshareable"
12440 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
12442 dll_ldflags="-shared"
12456 # Tested with NetBSD 1.2 ld
12471 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
12472 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12475 *gcc*) dll_ldflags="-shared"
12478 *) dll_ldflags="-G"
12484 if test "$XEGCC" = yes; then
12504 can_build_shared=no
12508 echo "$ac_t""${ld_shlibs}" 1>&6
12509 if test "$ld_shlibs" = "no"; then
12510 can_build_shared=no
12512 fi # End of if cc_produces_so = no
12515 if test "$xe_gnu_ld" = yes; then
12516 if test "$ld_shlibs" = yes; then
12517 ld_dynamic_link_flags="${wl}-export-dynamic"
12521 if test -z "$ld_dynamic_link_flags"; then
12522 case "$xehost_os" in
12524 ld_dynamic_link_flags=
12528 ld_dynamic_link_flags=
12532 ld_dynamic_link_flags=
12536 ld_dynamic_link_flags=
12540 ld_dynamic_link_flags=
12544 ld_dynamic_link_flags="${wl}-E"
12548 ld_dynamic_link_flags=
12552 ld_dynamic_link_flags=
12556 ld_dynamic_link_flags=
12560 ld_dynamic_link_flags=
12563 solaris2* | solaris7*)
12564 ld_dynamic_link_flags="${wl}-Bdynamic"
12567 sco3.2v5* | unixware* | sysv5* | sysv4*)
12568 ld_dynamic_link_flags="${wl}-Bexport"
12572 ld_dynamic_link_flags=
12576 ld_dynamic_link_flags=
12580 ld_dynamic_link_flags=
12584 fi # End of if -z ld_dynamic_link_flags
12585 fi # End of if test "$can_build_shared" = "yes"
12594 if test "$can_build_shared" = "yes"; then
12595 { test "$extra_verbose" = "yes" && cat << \EOF
12596 Defining HAVE_SHLIB
12598 cat >> confdefs.h <<\EOF
12599 #define HAVE_SHLIB 1
12603 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then
12604 echo " xemacs will be linked with \"sysdll.o\""
12606 extra_objs="$extra_objs emodules.o" && if test "$extra_verbose" = "yes"; then
12607 echo " xemacs will be linked with \"emodules.o\""
12609 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12610 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
12611 for ac_func in dlerror _dlerror
12613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12614 echo "configure:12615: checking for $ac_func" >&5
12616 cat > conftest.$ac_ext <<EOF
12617 #line 12618 "configure"
12618 #include "confdefs.h"
12619 /* System header to define __stub macros and hopefully few prototypes,
12620 which can conflict with char $ac_func(); below. */
12621 #include <assert.h>
12622 /* Override any gcc2 internal prototype to avoid an error. */
12623 /* We use char because int might match the return type of a gcc2
12624 builtin and then its argument prototype would still apply. */
12629 /* The GNU C library defines this for functions which it implements
12630 to always fail with ENOSYS. Some functions are actually named
12631 something starting with __ and the normal name is an alias. */
12632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12640 if { (eval echo configure:12641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12642 eval "ac_cv_func_$ac_func=yes"
12644 echo "configure: failed program was:" >&5
12645 cat conftest.$ac_ext >&5
12647 eval "ac_cv_func_$ac_func=no"
12651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12652 echo "$ac_t""yes" 1>&6
12653 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12654 { test "$extra_verbose" = "yes" && cat << EOF
12655 Defining $ac_tr_func
12657 cat >> confdefs.h <<EOF
12658 #define $ac_tr_func 1
12663 echo "$ac_t""no" 1>&6
12668 echo "configure: warning: disabling shared library support" 1>&2
12673 cat > conftest.$ac_ext <<EOF
12674 #line 12675 "configure"
12675 #include "confdefs.h"
12676 int main(int c,char *v[]){return 0;}
12678 if { (eval echo configure:12679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12683 echo "configure: failed program was:" >&5
12684 cat conftest.$ac_ext >&5
12688 echo "*** PANIC *** The C compiler can no longer build working executables."
12689 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
12690 echo "*** PANIC *** The most likely reason for this problem is that configure"
12691 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
12692 echo "*** PANIC *** found at run time."
12693 echo "*** PANIC ***"
12694 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
12695 echo "*** PANIC *** On other systems, try telling configure where to find the"
12696 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
12697 echo "*** PANIC ***"
12698 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
12699 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
12700 echo "*** PANIC *** on your system. Don't do that."
12705 if test "$win32_processes" = "yes"; then
12706 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
12707 echo " xemacs will be linked with \"process-nt.o\""
12710 { test "$extra_verbose" = "yes" && cat << \EOF
12711 Defining HAVE_UNIX_PROCESSES
12713 cat >> confdefs.h <<\EOF
12714 #define HAVE_UNIX_PROCESSES 1
12718 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
12719 echo " xemacs will be linked with \"process-unix.o\""
12726 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12731 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12736 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
12737 c_switch_general="$T"
12741 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12742 c_switch_window_system="$T"
12746 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12751 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
12752 ld_switch_general="$T"
12756 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12757 ld_switch_window_system="$T"
12761 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12766 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12767 ld_libs_general="$T"
12771 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
12772 ld_libs_window_system="$T"
12776 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12781 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
12782 internal_makefile_list="Makefile.in"
12783 SUBDIR_MAKEFILES=''
12784 test -d lock || mkdir lock
12785 for dir in $MAKE_SUBDIR; do
12786 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
12787 test -d "$d" || mkdir "$d"; cd "$d"
12789 * ) test -d "$dir" || mkdir "$dir" ;;
12793 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12794 SUBDIR_MAKEFILES="$T"
12798 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12799 internal_makefile_list="$T"
12806 for dir in src/s src/m; do
12807 if test ! -d "$dir" ; then
12808 echo Making symbolic link to "$srcdir/$dir"
12809 ${LN_S} "$srcdir/$dir" "$dir"
12813 if test "$extra_verbose" = "yes"; then
12815 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
12819 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
12820 echo "creating src/gdbinit"; echo ""
12821 echo "source $srcdir/src/gdbinit" > src/gdbinit
12824 if test "$__SUNPRO_C" = "yes"; then
12825 echo "creating .sbinit"; echo ""
12826 ( echo "# For use with Sun WorkShop's Source browser."
12827 echo "# See sbquery(1) and sbinit(4) for more information"
12828 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
12852 *\$* ) eval "PREFIX=$PREFIX" ;;
12859 EXEC_PREFIX=$exec_prefix
12861 case "$EXEC_PREFIX" in
12862 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
12873 *\$* ) eval "INFODIR=$INFODIR" ;;
12883 case "$INFOPATH" in
12884 *\$* ) eval "INFOPATH=$INFOPATH" ;;
12892 PACKAGE_PATH=$package_path
12894 case "$PACKAGE_PATH" in
12895 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
12906 *\$* ) eval "LISPDIR=$LISPDIR" ;;
12914 MODULEDIR=$moduledir
12916 case "$MODULEDIR" in
12917 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
12925 SITELISPDIR=$sitelispdir
12927 case "$SITELISPDIR" in
12928 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
12936 SITEMODULEDIR=$sitemoduledir
12938 case "$SITEMODULEDIR" in
12939 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
12950 *\$* ) eval "ETCDIR=$ETCDIR" ;;
12961 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
12969 ARCHLIBDIR=$archlibdir
12971 case "$ARCHLIBDIR" in
12972 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
12996 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
13004 : ${XEMACS_CC:=$CC}
13008 if test "$with_site_lisp" = "no"; then
13009 { test "$extra_verbose" = "yes" && cat << \EOF
13010 Defining INHIBIT_SITE_LISP
13012 cat >> confdefs.h <<\EOF
13013 #define INHIBIT_SITE_LISP 1
13018 if test "$with_site_modules" = "no"; then
13019 { test "$extra_verbose" = "yes" && cat << \EOF
13020 Defining INHIBIT_SITE_MODULES
13022 cat >> confdefs.h <<\EOF
13023 #define INHIBIT_SITE_MODULES 1
13031 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13032 ac_configure_args="$T"
13034 { test "$extra_verbose" = "yes" && cat << EOF
13035 Defining EMACS_CONFIGURATION = "$canonical"
13037 cat >> confdefs.h <<EOF
13038 #define EMACS_CONFIGURATION "$canonical"
13042 { test "$extra_verbose" = "yes" && cat << EOF
13043 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
13045 cat >> confdefs.h <<EOF
13046 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
13050 { test "$extra_verbose" = "yes" && cat << EOF
13051 Defining config_machfile = "$machfile"
13053 cat >> confdefs.h <<EOF
13054 #define config_machfile "$machfile"
13058 { test "$extra_verbose" = "yes" && cat << EOF
13059 Defining config_opsysfile = "$opsysfile"
13061 cat >> confdefs.h <<EOF
13062 #define config_opsysfile "$opsysfile"
13069 { test "$extra_verbose" = "yes" && cat << EOF
13070 Defining LD_SWITCH_X_SITE = $null_string
13072 cat >> confdefs.h <<EOF
13073 #define LD_SWITCH_X_SITE $null_string
13077 { test "$extra_verbose" = "yes" && cat << EOF
13078 Defining LD_SWITCH_X_SITE_AUX = $null_string
13080 cat >> confdefs.h <<EOF
13081 #define LD_SWITCH_X_SITE_AUX $null_string
13085 { test "$extra_verbose" = "yes" && cat << EOF
13086 Defining C_SWITCH_X_SITE = $null_string
13088 cat >> confdefs.h <<EOF
13089 #define C_SWITCH_X_SITE $null_string
13093 { test "$extra_verbose" = "yes" && cat << EOF
13094 Defining LD_SWITCH_SITE = $null_string
13096 cat >> confdefs.h <<EOF
13097 #define LD_SWITCH_SITE $null_string
13101 { test "$extra_verbose" = "yes" && cat << EOF
13102 Defining C_SWITCH_SITE = $null_string
13104 cat >> confdefs.h <<EOF
13105 #define C_SWITCH_SITE $null_string
13111 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13112 Defining GNU_MALLOC
13114 cat >> confdefs.h <<\EOF
13115 #define GNU_MALLOC 1
13119 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13120 Defining USE_SYSTEM_MALLOC
13122 cat >> confdefs.h <<\EOF
13123 #define USE_SYSTEM_MALLOC 1
13127 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13128 Defining USE_DEBUG_MALLOC
13130 cat >> confdefs.h <<\EOF
13131 #define USE_DEBUG_MALLOC 1
13135 { test "$extra_verbose" = "yes" && cat << \EOF
13136 Defining USE_SYSTEM_MALLOC
13138 cat >> confdefs.h <<\EOF
13139 #define USE_SYSTEM_MALLOC 1
13144 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13147 cat >> confdefs.h <<\EOF
13152 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13155 cat >> confdefs.h <<\EOF
13160 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13161 Defining EXTERNAL_WIDGET
13163 cat >> confdefs.h <<\EOF
13164 #define EXTERNAL_WIDGET 1
13168 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13169 Defining NO_DOC_FILE
13171 cat >> confdefs.h <<\EOF
13172 #define NO_DOC_FILE 1
13176 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13179 cat >> confdefs.h <<\EOF
13184 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13187 cat >> confdefs.h <<\EOF
13192 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13193 Defining MAIL_USE_POP
13195 cat >> confdefs.h <<\EOF
13196 #define MAIL_USE_POP 1
13200 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13203 cat >> confdefs.h <<\EOF
13208 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13211 cat >> confdefs.h <<\EOF
13216 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13217 Defining USE_UNION_TYPE
13219 cat >> confdefs.h <<\EOF
13220 #define USE_UNION_TYPE 1
13227 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
13229 echo "uname -a: `uname -a`"
13232 echo "$0 $quoted_arguments"
13235 if test ! -z ${emacs_beta_version} ; then
13236 if test -z "${emacs_is_beta}" ; then
13237 xemacs_betaname=".${emacs_beta_version}"
13239 xemacs_betaname="-b${emacs_beta_version}"
13248 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13250 Where should the build process find the source code? $srcdir
13251 What installation prefix should install use? $prefix
13252 What operating system and machine description files should XEmacs use?
13253 \`$opsysfile' and \`$machfile'
13254 What compiler should XEmacs be built with? $CC $CFLAGS
13255 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13256 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13257 What window system should XEmacs use? ${window_system}"
13258 if test "$with_x11" = "yes"; then
13259 echo " Where do we find X Windows header files? $x_includes"
13260 echo " Where do we find X Windows libraries? $x_libraries"
13262 if test -n "$site_includes"; then
13263 echo " Additional header files: $site_includes"
13265 if test -n "$site_libraries"; then
13266 echo " Additional libraries: $site_libraries"
13268 if test -n "$site_prefixes"; then
13269 echo " Additional prefixes: $site_prefixes"
13271 if test -n "$runpath"; then
13272 echo " Runtime library search path: $runpath"
13274 test "$with_dnet" = yes && echo " Compiling in support for DNET."
13275 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
13276 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
13277 if test "$with_xmu" != yes -a "$with_x11" = yes; then
13278 echo " No Xmu; substituting equivalent routines."
13281 if test "$with_xpm" = yes; then
13282 echo " Compiling in support for XPM images."
13283 elif test "$with_x11" = yes; then
13284 echo " --------------------------------------------------------------------"
13285 echo " WARNING: Compiling without XPM support."
13286 if test "$xpm_problem" != ""; then
13287 echo " Reason: $xpm_problem"
13289 echo " WARNING: You should strongly consider installing XPM."
13290 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
13291 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13292 echo " --------------------------------------------------------------------"
13294 if test "$with_png" = yes; then
13295 echo " Compiling in support for PNG image handling."
13296 elif test "$window_system" != "none"; then
13297 echo " --------------------------------------------------------------------"
13298 echo " WARNING: Compiling without PNG image support."
13299 if test "$png_problem" != ""; then
13300 echo " Reason: $png_problem"
13302 echo " WARNING: You should strongly consider installing the PNG libraries."
13303 echo " WARNING: Otherwise certain images and glyphs may not display."
13304 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13305 echo " --------------------------------------------------------------------"
13307 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13308 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13309 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13310 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13311 case "$with_sound" in
13312 nas ) echo " Compiling in network sound (NAS) support." ;;
13313 native ) echo " Compiling in native sound support." ;;
13314 both ) echo " Compiling in both network and native sound support." ;;
13316 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13318 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13319 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13320 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
13322 test "$with_umich_ldap" = yes && echo " Compiling in support for LDAP (UMich libs)."
13323 test "$with_ns_ldap" = yes && echo " Compiling in support for LDAP (Netscape SDK)."
13324 test "$with_ldap" = yes -a "$with_umich_ldap" = no -a "$with_ns_ldap" = no && echo " Compiling in support for LDAP (Generic)."
13326 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
13327 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
13329 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
13330 test "$with_file_coding" = yes && echo " Compiling in File coding support."
13331 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
13332 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
13333 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
13334 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
13335 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
13336 if test "$with_wnn" = yes; then
13337 echo " Compiling in support for the WNN input method on Mule."
13338 test "$with_wnn6" = yes && echo " Using WNN version 6."
13340 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
13342 test "$with_cde" = yes && echo " Compiling in support for CDE."
13343 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
13344 test "$with_offix" = yes && echo " Compiling in support for OffiX."
13345 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
13346 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
13347 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
13348 case "$with_menubars" in
13349 lucid ) echo " Using Lucid menubars." ;;
13350 motif ) echo " Using Motif menubars."
13351 echo " *WARNING* The Motif menubar implementation is currently buggy."
13352 echo " We recommend using the Lucid menubar instead."
13353 echo " Re-run configure with --with-menubars='lucid'." ;;
13355 case "$with_scrollbars" in
13356 lucid ) echo " Using Lucid scrollbars." ;;
13357 motif ) echo " Using Motif scrollbars." ;;
13358 athena ) echo " Using Athena scrollbars." ;;
13359 athena3d ) echo " Using Athena-3d scrollbars." ;;
13361 case "$with_dialogs" in
13363 echo " Using Motif dialog boxes."
13364 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
13365 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
13366 echo " We recommend using the Athena dialog boxes instead."
13367 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
13368 echo " Read the PROBLEMS file for more information."
13371 athena ) echo " Using Athena dialog boxes." ;;
13372 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13374 test "$with_shlib" = "yes" && echo " Compiling in DLL support."
13375 test "$with_clash_detection" = yes && \
13376 echo " Clash detection will use \"$lockdir\" for locking files."
13377 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13378 test "$with_pop" = yes && echo " Using POP for mail access."
13379 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13380 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
13381 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
13382 test "$debug" = yes && echo " Compiling in extra code for debugging."
13383 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13384 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
13385 != "no no no no no"; then
13386 echo " WARNING: ---------------------------------------------------------"
13387 echo " WARNING: Compiling in support for runtime error checking."
13388 echo " WARNING: XEmacs will run noticeably more slowly as a result."
13389 echo " WARNING: Error checking is on by default for XEmacs beta releases."
13390 echo " WARNING: ---------------------------------------------------------"
13393 ) | tee -a Installation
13397 # Remove any trailing slashes in these variables.
13398 test -n "$prefix" &&
13399 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13400 test -n "$exec_prefix" &&
13401 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13404 for file in $internal_makefile_list; do
13405 test "$file" = src/Makefile.in && \
13406 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13407 ac_output_files="${ac_output_files+$ac_output_files }$file"
13409 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13410 if test "$with_shlib" = "yes"; then
13411 ac_output_files="$ac_output_files lib-src/ellcc.h"
13416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13418 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13419 # Let make expand exec_prefix.
13420 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13422 # Any assignment to VPATH causes Sun make to only execute
13423 # the first set of double-colon rules, so remove it if not needed.
13424 # If there is a colon in the path, we need to keep it.
13425 if test "x$srcdir" = x.; then
13426 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13429 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13431 DEFS=-DHAVE_CONFIG_H
13433 # Without the "./", some shells look in PATH for config.status.
13434 : ${CONFIG_STATUS=./config.status}
13436 echo creating $CONFIG_STATUS
13437 rm -f $CONFIG_STATUS
13438 cat > $CONFIG_STATUS <<EOF
13440 # Generated automatically by configure.
13441 # Run this file to recreate the current configuration.
13442 # This directory was configured as follows,
13443 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13445 # $0 $ac_configure_args
13447 # Compiler output produced by configure, useful for debugging
13448 # configure, is in ./config.log if it exists.
13450 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13453 case "\$ac_option" in
13454 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13455 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13456 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13457 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13458 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13460 -help | --help | --hel | --he | --h)
13461 echo "\$ac_cs_usage"; exit 0 ;;
13462 *) echo "\$ac_cs_usage"; exit 1 ;;
13466 ac_given_srcdir=$srcdir
13467 ac_given_INSTALL="$INSTALL"
13469 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13471 cat >> $CONFIG_STATUS <<EOF
13473 # Protect against being on the right side of a sed subst in config.status.
13474 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13475 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13479 s%@CFLAGS@%$CFLAGS%g
13480 s%@CPPFLAGS@%$CPPFLAGS%g
13481 s%@CXXFLAGS@%$CXXFLAGS%g
13482 s%@FFLAGS@%$FFLAGS%g
13484 s%@LDFLAGS@%$LDFLAGS%g
13486 s%@exec_prefix@%$exec_prefix%g
13487 s%@prefix@%$prefix%g
13488 s%@program_transform_name@%$program_transform_name%g
13489 s%@bindir@%$bindir%g
13490 s%@sbindir@%$sbindir%g
13491 s%@libexecdir@%$libexecdir%g
13492 s%@datadir@%$datadir%g
13493 s%@sysconfdir@%$sysconfdir%g
13494 s%@sharedstatedir@%$sharedstatedir%g
13495 s%@localstatedir@%$localstatedir%g
13496 s%@libdir@%$libdir%g
13497 s%@includedir@%$includedir%g
13498 s%@oldincludedir@%$oldincludedir%g
13499 s%@infodir@%$infodir%g
13500 s%@mandir@%$mandir%g
13502 s%@blddir@%$blddir%g
13505 s%@start_flags@%$start_flags%g
13506 s%@ld_switch_shared@%$ld_switch_shared%g
13507 s%@start_files@%$start_files%g
13509 s%@lib_gcc@%$lib_gcc%g
13510 s%@RANLIB@%$RANLIB%g
13511 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13512 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13513 s%@INSTALL_DATA@%$INSTALL_DATA%g
13515 s%@SET_MAKE@%$SET_MAKE%g
13516 s%@X_CFLAGS@%$X_CFLAGS%g
13517 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13518 s%@X_LIBS@%$X_LIBS%g
13519 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13520 s%@install_pp@%$install_pp%g
13521 s%@libs_xauth@%$libs_xauth%g
13522 s%@dnd_objs@%$dnd_objs%g
13523 s%@lwlib_objs@%$lwlib_objs%g
13524 s%@ALLOCA@%$ALLOCA%g
13525 s%@dll_ld@%$dll_ld%g
13526 s%@dll_cflags@%$dll_cflags%g
13527 s%@dll_ldflags@%$dll_ldflags%g
13528 s%@dll_post@%$dll_post%g
13529 s%@dll_ldo@%$dll_ldo%g
13530 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
13531 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
13532 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
13533 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
13534 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
13535 s%@PROGNAME@%$PROGNAME%g
13536 s%@version@%$version%g
13537 s%@configuration@%$configuration%g
13538 s%@canonical@%$canonical%g
13539 s%@srcdir@%$srcdir%g
13540 s%@pkgdir@%$pkgdir%g
13541 s%@statedir@%$statedir%g
13542 s%@PREFIX@%$PREFIX%g
13543 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
13544 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
13545 s%@INFODIR@%$INFODIR%g
13546 s%@infopath@%$infopath%g
13547 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
13548 s%@INFOPATH@%$INFOPATH%g
13549 s%@package_path@%$package_path%g
13550 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
13551 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
13552 s%@lispdir@%$lispdir%g
13553 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
13554 s%@LISPDIR@%$LISPDIR%g
13555 s%@moduledir@%$moduledir%g
13556 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
13557 s%@MODULEDIR@%$MODULEDIR%g
13558 s%@sitelispdir@%$sitelispdir%g
13559 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
13560 s%@SITELISPDIR@%$SITELISPDIR%g
13561 s%@sitemoduledir@%$sitemoduledir%g
13562 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
13563 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
13564 s%@etcdir@%$etcdir%g
13565 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
13566 s%@ETCDIR@%$ETCDIR%g
13567 s%@lockdir@%$lockdir%g
13568 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
13569 s%@LOCKDIR@%$LOCKDIR%g
13570 s%@archlibdir@%$archlibdir%g
13571 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
13572 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
13573 s%@docdir@%$docdir%g
13574 s%@bitmapdir@%$bitmapdir%g
13575 s%@extra_objs@%$extra_objs%g
13576 s%@machfile@%$machfile%g
13577 s%@opsysfile@%$opsysfile%g
13578 s%@c_switch_general@%$c_switch_general%g
13579 s%@c_switch_window_system@%$c_switch_window_system%g
13580 s%@c_switch_all@%$c_switch_all%g
13581 s%@ld_switch_general@%$ld_switch_general%g
13582 s%@ld_switch_window_system@%$ld_switch_window_system%g
13583 s%@ld_switch_all@%$ld_switch_all%g
13584 s%@ld_libs_general@%$ld_libs_general%g
13585 s%@ld_libs_window_system@%$ld_libs_window_system%g
13586 s%@ld_libs_all@%$ld_libs_all%g
13587 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
13588 s%@native_sound_lib@%$native_sound_lib%g
13589 s%@sound_cflags@%$sound_cflags%g
13590 s%@dynodump_arch@%$dynodump_arch%g
13591 s%@XEMACS_CC@%$XEMACS_CC%g
13592 s%@internal_makefile_list@%$internal_makefile_list%g
13597 cat >> $CONFIG_STATUS <<\EOF
13599 # Split the substitutions into bite-sized pieces for seds with
13600 # small command number limits, like on Digital OSF/1 and HP-UX.
13601 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13602 ac_file=1 # Number of current file.
13603 ac_beg=1 # First line for current file.
13604 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13607 while $ac_more_lines; do
13608 if test $ac_beg -gt 1; then
13609 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13611 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13613 if test ! -s conftest.s$ac_file; then
13614 ac_more_lines=false
13615 rm -f conftest.s$ac_file
13617 if test -z "$ac_sed_cmds"; then
13618 ac_sed_cmds="sed -f conftest.s$ac_file"
13620 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13622 ac_file=`expr $ac_file + 1`
13624 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13627 if test -z "$ac_sed_cmds"; then
13632 cat >> $CONFIG_STATUS <<EOF
13634 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
13636 cat >> $CONFIG_STATUS <<\EOF
13637 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13638 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13640 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13641 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13642 *) ac_file_in="${ac_file}.in" ;;
13645 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13647 # Remove last slash and all that follows it. Not all systems have dirname.
13648 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13649 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13650 # The file is in a subdirectory.
13651 test ! -d "$ac_dir" && mkdir "$ac_dir"
13652 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13653 # A "../" for each directory in $ac_dir_suffix.
13654 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13656 ac_dir_suffix= ac_dots=
13659 case "$ac_given_srcdir" in
13661 if test -z "$ac_dots"; then top_srcdir=.
13662 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13663 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13664 *) # Relative path.
13665 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13666 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13669 case "$ac_given_INSTALL" in
13670 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13671 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13674 echo creating "$ac_file"
13676 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13678 *Makefile*) ac_comsub="1i\\
13679 # $configure_input" ;;
13683 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13685 s%@configure_input@%$configure_input%g
13686 s%@srcdir@%$srcdir%g
13687 s%@top_srcdir@%$top_srcdir%g
13688 s%@INSTALL@%$INSTALL%g
13689 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13693 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13694 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13696 # ac_d sets the value in "#define NAME VALUE" lines.
13697 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13698 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13701 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13702 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13703 ac_uB='\([ ]\)%\1#\2define\3'
13706 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13707 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13708 ac_eB='$%\1#\2define\3'
13712 if test "${CONFIG_HEADERS+set}" != set; then
13714 cat >> $CONFIG_STATUS <<EOF
13715 CONFIG_HEADERS="src/config.h lwlib/config.h"
13717 cat >> $CONFIG_STATUS <<\EOF
13719 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13720 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13722 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13723 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13724 *) ac_file_in="${ac_file}.in" ;;
13727 echo creating $ac_file
13729 rm -f conftest.frag conftest.in conftest.out
13730 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13731 cat $ac_file_inputs > conftest.in
13735 # Transform confdefs.h into a sed script conftest.vals that substitutes
13736 # the proper values into config.h.in to produce config.h. And first:
13737 # Protect against being on the right side of a sed subst in config.status.
13738 # Protect against being in an unquoted here document in config.status.
13739 rm -f conftest.vals
13740 cat > conftest.hdr <<\EOF
13743 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13747 sed -n -f conftest.hdr confdefs.h > conftest.vals
13750 # This sed command replaces #undef with comments. This is necessary, for
13751 # example, in the case of _POSIX_SOURCE, which is predefined and required
13752 # on some systems where configure will not decide to define it.
13753 cat >> conftest.vals <<\EOF
13754 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13757 # Break up conftest.vals because some shells have a limit on
13758 # the size of here documents, and old seds have small limits too.
13760 rm -f conftest.tail
13763 ac_lines=`grep -c . conftest.vals`
13764 # grep -c gives empty output for an empty file on some AIX systems.
13765 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13766 # Write a limited-size here document to conftest.frag.
13767 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13768 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13770 sed -f conftest.frag conftest.in > conftest.out
13772 mv conftest.out conftest.in
13773 ' >> $CONFIG_STATUS
13774 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13775 rm -f conftest.vals
13776 mv conftest.tail conftest.vals
13778 rm -f conftest.vals
13780 cat >> $CONFIG_STATUS <<\EOF
13781 rm -f conftest.frag conftest.h
13782 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13783 cat conftest.in >> conftest.h
13785 if cmp -s $ac_file conftest.h 2>/dev/null; then
13786 echo "$ac_file is unchanged"
13789 # Remove last slash and all that follows it. Not all systems have dirname.
13790 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13791 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13792 # The file is in a subdirectory.
13793 test ! -d "$ac_dir" && mkdir "$ac_dir"
13796 mv conftest.h $ac_file
13801 cat >> $CONFIG_STATUS <<EOF
13803 top_srcdir="$srcdir"
13804 MAKE_SUBDIR="$MAKE_SUBDIR"
13807 cat >> $CONFIG_STATUS <<\EOF
13808 for dir in . $MAKE_SUBDIR; do
13813 sed -e '/^# Generated/d' \
13814 -e 's%/\*\*/#.*%%' \
13829 echo creating $dir/Makefile
13830 $CPP -I. -I${top_srcdir}/src junk.c \
13831 | sed -e 's/^\#.*//' \
13832 -e 's/^[ ][ ]*$//'\
13834 | sed -n -e '/^..*$/p' \
13840 chmod 444 Makefile.new
13841 mv -f Makefile.new Makefile
13843 echo creating $dir/GNUmakefile
13844 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
13845 | sed -e 's/^\#.*//' \
13846 -e 's/^[ ][ ]*$//'\
13848 | sed -n -e '/^..*$/p' \
13854 chmod 444 Makefile.new
13855 mv -f Makefile.new GNUmakefile
13861 sed < config.status >> lib-src/config.values \
13862 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
13863 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
13864 -e 's/^\([^ ]*\) $/\1 ""/' \
13870 chmod +x $CONFIG_STATUS
13871 rm -fr confdefs* $ac_clean_files
13872 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1