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}'
242 docdir='${archlibdir}'
244 with_site_modules='yes'
249 cpp='' cppflags='' libs='' ldflags=''
254 with_system_malloc='default'
255 with_dlmalloc='default'
268 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
273 | --no-cr | --no-c) ;;
274 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
275 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
277 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
278 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
282 while test $# != 0; do
285 --no-create|--no-recursion) ;;
289 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
290 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
294 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
295 val="yes" valomitted=yes
300 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
302 case "${valomitted}-${opt}" in yes-without_* )
303 opt=`echo $opt | sed 's/without/with/'`
304 valomitted="no" val="no" ;;
310 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 prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
552 Defining PREFIX_USER_DEFINED
554 cat >> confdefs.h <<\EOF
555 #define PREFIX_USER_DEFINED 1
559 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
560 Defining EXEC_PREFIX_USER_DEFINED
562 cat >> confdefs.h <<\EOF
563 #define EXEC_PREFIX_USER_DEFINED 1
567 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
568 Defining LISPDIR_USER_DEFINED
570 cat >> confdefs.h <<\EOF
571 #define LISPDIR_USER_DEFINED 1
575 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
576 Defining SITELISPDIR_USER_DEFINED
578 cat >> confdefs.h <<\EOF
579 #define SITELISPDIR_USER_DEFINED 1
583 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
584 Defining MODULEDIR_USER_DEFINED
586 cat >> confdefs.h <<\EOF
587 #define MODULEDIR_USER_DEFINED 1
591 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
592 Defining ETCDIR_USER_DEFINED
594 cat >> confdefs.h <<\EOF
595 #define ETCDIR_USER_DEFINED 1
599 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
600 Defining INFODIR_USER_DEFINED
602 cat >> confdefs.h <<\EOF
603 #define INFODIR_USER_DEFINED 1
607 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
608 Defining INFOPATH_USER_DEFINED
610 cat >> confdefs.h <<\EOF
611 #define INFOPATH_USER_DEFINED 1
615 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
616 Defining PACKAGE_PATH_USER_DEFINED
618 cat >> confdefs.h <<\EOF
619 #define PACKAGE_PATH_USER_DEFINED 1
624 { test "$extra_verbose" = "yes" && cat << \EOF
625 Defining INFODIR_USER_DEFINED
627 cat >> confdefs.h <<\EOF
628 #define INFODIR_USER_DEFINED 1
632 { test "$extra_verbose" = "yes" && cat << \EOF
633 Defining LISPDIR_USER_DEFINED
635 cat >> confdefs.h <<\EOF
636 #define LISPDIR_USER_DEFINED 1
640 { test "$extra_verbose" = "yes" && cat << \EOF
641 Defining MODULEDIR_USER_DEFINED
643 cat >> confdefs.h <<\EOF
644 #define MODULEDIR_USER_DEFINED 1
648 { test "$extra_verbose" = "yes" && cat << \EOF
649 Defining ETCDIR_USER_DEFINED
651 cat >> confdefs.h <<\EOF
652 #define ETCDIR_USER_DEFINED 1
656 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
657 Defining LOCKDIR_USER_DEFINED
659 cat >> confdefs.h <<\EOF
660 #define LOCKDIR_USER_DEFINED 1
664 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
665 Defining DOCDIR_USER_DEFINED
667 cat >> confdefs.h <<\EOF
668 #define DOCDIR_USER_DEFINED 1
672 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
673 Defining ARCHLIBDIR_USER_DEFINED
675 cat >> confdefs.h <<\EOF
676 #define ARCHLIBDIR_USER_DEFINED 1
685 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
688 "with_scrollbars" | \
691 l | lu | luc | luci | lucid ) val=lucid ;;
692 m | mo | mot | moti | motif ) val=motif ;;
693 athena3d | athena-3d ) val=athena3d ;;
694 a | at | ath | athe | athen | athena ) val=athena ;;
695 n | no | non | none ) val=no ;;
696 * ) (echo "$progname: Usage error:"
697 echo " " "The \`--$optname' option must have one of these values:
698 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
699 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
706 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
709 * ) (echo "$progname: Usage error:"
710 echo " " "Unrecognized option: $arg"
711 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
716 *-*-*) configuration="$arg" ;;
718 *) (echo "$progname: Usage error:"
719 echo " " "Unrecognized argument: $arg"
720 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
726 test -n "$cpp" && CPP="$cpp"
727 test -n "$cppflags" && CPPFLAGS="$cppflags"
728 test -n "$libs" && LIBS="$libs"
729 test -n "$ldflags" && LDFLAGS="$ldflags"
731 eval set x "$quoted_arguments"; shift
733 test "$extra_verbose" = "yes" && verbose=yes
735 test -n "$with_x" && with_x11="$with_x"
737 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
738 test "$with_system_malloc" = "default" && with_system_malloc=yes
743 if test "$with_cde $with_tooltalk" = "yes no"; then
744 (echo "$progname: Usage error:"
745 echo " " "--with-cde requires --with-tooltalk"
746 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
747 elif test "$with_tooltalk" = "no" ; then with_cde=no
748 elif test "$with_cde" = "yes"; then with_tooltalk=yes
755 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
756 if test -f "$dir/src/lisp.h" -a \
757 -f "$dir/lisp/version.el" ; then
762 if test -z "$srcdir" ; then
763 (echo "$progname: Usage error:"
764 echo " " "Neither the current directory nor its parent seem to
765 contain the XEmacs sources. If you do not want to build XEmacs in its
766 source tree, you should run \`$progname' in the directory in which
767 you wish to build XEmacs, using the \`--srcdir' option to say where the
768 sources may be found."
769 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
774 if test ! -f "$srcdir/src/lisp.h" -o \
775 ! -f "$srcdir/lisp/version.el" ; then
776 (echo "$progname: Usage error:"
777 echo " " "The directory specified with the \`--srcdir' option,
778 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
779 either run the \`$progname' script at the top of the XEmacs source
780 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
781 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
786 if test -z "$configuration"; then
787 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
788 if test -z "$configuration"; then
789 (echo "$progname: Usage error:"
790 echo " " "XEmacs has not been ported to this host type.
791 Try explicitly specifying the CONFIGURATION when rerunning configure."
792 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
796 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
797 echo "configure:798: checking whether ln -s works" >&5
800 if ln -s X conftestdata 2>/dev/null
803 ac_cv_prog_LN_S="ln -s"
807 LN_S="$ac_cv_prog_LN_S"
808 if test "$ac_cv_prog_LN_S" = "ln -s"; then
809 echo "$ac_t""yes" 1>&6
811 echo "$ac_t""no" 1>&6
815 for dir in lisp etc man info; do
816 if test ! -d "$dir" ; then
817 echo Making symbolic link to "$srcdir/$dir"
818 ${LN_S} "$srcdir/$dir" "$dir"
823 absolute_pwd="`pwd`";
824 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
826 else blddir="$absolute_pwd"; if test -d "/net"; then
827 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
828 blddir=`echo "$blddir" | \
829 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
836 . ) srcdir="$blddir" ;;
837 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
838 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
839 srcdir=`echo "$srcdir" | \
840 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
844 if test `pwd` != `sh -c cd $srcdir && pwd` \
845 && test -f "$srcdir/src/config.h"; then
846 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
847 echo " as a build directory right now; it has been configured in its own"
848 echo " right. To configure in another directory as well, you MUST"
849 echo " use GNU make. If you do not have GNU make, then you must"
850 echo " now do \`make distclean' in $srcdir,"
851 echo " and then run $progname again.") >&2
852 extrasub='/^VPATH[ ]*=/c\
858 vpath %.in $(srcdir)'
861 . "$srcdir/version.sh" || exit 1;
862 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
863 : "${extra_verbose=$beta}"
864 version="${emacs_major_version}.${emacs_minor_version}"
865 { test "$extra_verbose" = "yes" && cat << EOF
866 Defining EMACS_MAJOR_VERSION = $emacs_major_version
868 cat >> confdefs.h <<EOF
869 #define EMACS_MAJOR_VERSION $emacs_major_version
873 { test "$extra_verbose" = "yes" && cat << EOF
874 Defining EMACS_MINOR_VERSION = $emacs_minor_version
876 cat >> confdefs.h <<EOF
877 #define EMACS_MINOR_VERSION $emacs_minor_version
881 if test -n "$emacs_beta_version" ; then
882 if test "$beta" = "yes"; then
883 version="${version}-b${emacs_beta_version}"
884 { test "$extra_verbose" = "yes" && cat << EOF
885 Defining EMACS_BETA_VERSION = $emacs_beta_version
887 cat >> confdefs.h <<EOF
888 #define EMACS_BETA_VERSION $emacs_beta_version
893 version="${version}.${emacs_beta_version}"
894 { test "$extra_verbose" = "yes" && cat << EOF
895 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
897 cat >> confdefs.h <<EOF
898 #define EMACS_PATCH_LEVEL $emacs_beta_version
904 { test "$extra_verbose" = "yes" && cat << EOF
905 Defining XEMACS_CODENAME = "$xemacs_codename"
907 cat >> confdefs.h <<EOF
908 #define XEMACS_CODENAME "$xemacs_codename"
912 { test "$extra_verbose" = "yes" && cat << EOF
913 Defining EMACS_VERSION = "$version"
915 cat >> confdefs.h <<EOF
916 #define EMACS_VERSION "$version"
921 if test "$with_infodock" = "yes"; then
922 if test ! -f ../ID-INSTALL; then
923 echo "Cannot build InfoDock without InfoDock sources"
928 if test "$with_infodock" = "yes"; then
929 { test "$extra_verbose" = "yes" && cat << EOF
930 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
932 cat >> confdefs.h <<EOF
933 #define INFODOCK_MAJOR_VERSION $infodock_major_version
937 { test "$extra_verbose" = "yes" && cat << EOF
938 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
940 cat >> confdefs.h <<EOF
941 #define INFODOCK_MINOR_VERSION $infodock_minor_version
945 { test "$extra_verbose" = "yes" && cat << EOF
946 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
948 cat >> confdefs.h <<EOF
949 #define INFODOCK_BUILD_VERSION $infodock_build_version
953 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
955 CPPFLAGS="$CPPFLAGS -DINFODOCK"
960 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
961 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
962 Defining ERROR_CHECK_EXTENTS
964 cat >> confdefs.h <<\EOF
965 #define ERROR_CHECK_EXTENTS 1
969 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
970 Defining ERROR_CHECK_TYPECHECK
972 cat >> confdefs.h <<\EOF
973 #define ERROR_CHECK_TYPECHECK 1
977 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
978 Defining ERROR_CHECK_BUFPOS
980 cat >> confdefs.h <<\EOF
981 #define ERROR_CHECK_BUFPOS 1
985 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
986 Defining ERROR_CHECK_GC
988 cat >> confdefs.h <<\EOF
989 #define ERROR_CHECK_GC 1
993 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
994 Defining ERROR_CHECK_MALLOC
996 cat >> confdefs.h <<\EOF
997 #define ERROR_CHECK_MALLOC 1
1001 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1002 Defining ERROR_CHECK_BYTE_CODE
1004 cat >> confdefs.h <<\EOF
1005 #define ERROR_CHECK_BYTE_CODE 1
1009 if test "${debug:=$beta}" = "yes"; then
1010 use_assertions=yes memory_usage_stats=yes
1011 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1012 echo " xemacs will be linked with \"debug.o\""
1014 { test "$extra_verbose" = "yes" && cat << \EOF
1015 Defining DEBUG_XEMACS
1017 cat >> confdefs.h <<\EOF
1018 #define DEBUG_XEMACS 1
1023 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1024 Defining USE_ASSERTIONS
1026 cat >> confdefs.h <<\EOF
1027 #define USE_ASSERTIONS 1
1031 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1032 Defining MEMORY_USAGE_STATS
1034 cat >> confdefs.h <<\EOF
1035 #define MEMORY_USAGE_STATS 1
1041 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1042 echo "configure:1043: checking "host system type"" >&5
1043 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1044 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1045 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1046 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1047 echo "$ac_t""$configuration" 1>&6
1055 case "$canonical" in
1056 sparc-*-* ) machine=sparc ;;
1057 alpha*-*-* ) machine=alpha ;;
1058 vax-*-* ) machine=vax ;;
1059 mips-dec-* ) machine=pmax ;;
1060 mips-sgi-* ) machine=iris4d ;;
1061 romp-ibm-* ) machine=ibmrt ;;
1062 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1063 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1064 powerpc*-* ) machine=powerpc ;;
1065 hppa-*-* ) machine=hp800 ;;
1066 m88k-dg-* ) machine=aviion ;;
1067 m68*-sony-* ) machine=news ;;
1068 mips-sony-* ) machine=news-risc ;;
1069 clipper-* ) machine=clipper ;;
1070 arm-* ) machine=arm ;;
1071 ns32k-* ) machine=ns32000 ;;
1074 case "$canonical" in
1075 *-*-linux* ) opsys=linux ;;
1076 *-*-netbsd* ) opsys=netbsd ;;
1077 *-*-openbsd* ) opsys=openbsd ;;
1078 *-*-nextstep* ) opsys=nextstep ;;
1079 *-*-vms ) opsys=vms ;;
1081 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1082 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1083 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1084 *-dec-osf3* ) opsys=decosf3-1 ;;
1085 *-dec-osf4* ) opsys=decosf4-0 ;;
1087 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1088 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1089 *-*-ultrix* ) opsys=ultrix4-3 ;;
1091 *-*-aix3.1* ) opsys=aix3-1 ;;
1092 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1093 *-*-aix3* ) opsys=aix3-2 ;;
1094 *-*-aix4.0* ) opsys=aix4 ;;
1095 *-*-aix4.1* ) opsys=aix4-1 ;;
1096 *-*-aix4* ) opsys=aix4-2 ;;
1098 *-gnu* ) opsys=gnu ;;
1099 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1100 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1101 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1102 *-*-aos4.2 ) opsys=bsd4-2 ;;
1103 *-*-aos* ) opsys=bsd4-3 ;;
1104 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1105 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1106 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1107 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1108 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1109 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1110 if test -z "$NON_GNU_CPP" ; then
1111 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1112 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1116 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1117 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1120 case "$canonical" in
1123 case "$canonical" in
1124 i[3-9]86-*-netbsd*) machine=intel386 ;;
1125 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1126 machine=hp9000s300 ;;
1127 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1128 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1133 case "${canonical}" in
1134 i386-*-openbsd*) machine=intel386 ;;
1135 m68k-*-openbsd*) machine=hp9000s300 ;;
1136 mipsel-*-openbsd*) machine=pmax ;;
1140 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1141 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1143 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1144 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1146 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1148 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1150 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1152 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1154 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1156 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1157 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1158 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1161 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1163 *-convex-bsd* | *-convex-convexos* )
1164 machine=convex opsys=bsd4-3
1165 NON_GNU_CPP="cc -E -P"
1168 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1170 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1171 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1172 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1173 m88k-dg-dgux* ) opsys=dgux ;;
1175 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1176 m88k-motorola-sysv4* )
1177 machine=delta88k opsys=usg5-4-2
1179 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1181 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1182 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1184 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1186 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1187 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1188 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1191 case "`uname -r`" in
1192 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1193 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1195 NON_GNU_CPP="/lib/cpp"
1197 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1198 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1200 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1202 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1205 case "$canonical" in
1206 m68* ) machine=hp9000s300 ;;
1207 hppa* ) machine=hp800 ;;
1210 case "$canonical" in
1211 *-hp-hpux7* ) opsys=hpux ;;
1212 *-hp-hpux8* ) opsys=hpux8 ;;
1213 *-hp-hpux9* ) opsys=hpux9 ;;
1214 *-hp-hpux10* ) opsys=hpux10 ;;
1215 *-hp-hpux11* ) opsys=hpux11 ;;
1219 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1220 echo " xemacs will be linked with \"strcat.o\""
1223 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1224 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1225 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1227 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1230 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1231 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1233 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1234 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1235 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1236 romp-ibm-aos* ) opsys=bsd4-3 ;;
1237 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1238 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1240 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1241 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1243 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1245 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1247 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1249 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1251 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1253 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1255 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1257 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1259 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1261 mips-mips-usg* ) machine=mips4 ;;
1264 NON_GNU_CC="cc -systype bsd43"
1265 NON_GNU_CPP="cc -systype bsd43 -E"
1266 case "$canonical" in
1267 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1268 mips-mips-riscos5* ) opsys=riscos5 ;;
1271 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1272 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1274 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1276 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1278 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1279 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1281 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1283 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1285 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1287 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1289 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1290 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1292 mips-siemens-sysv* | mips-sni-sysv*)
1293 machine=mips-siemens opsys=usg5-4
1294 NON_GNU_CC=/usr/ccs/bin/cc
1295 NON_GNU_CPP=/usr/ccs/lib/cpp
1300 NON_GNU_CC=/usr/ccs/bin/cc
1301 NON_GNU_CPP=/usr/ccs/lib/cpp
1304 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1305 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1306 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1307 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1308 mips-sgi-irix6* ) opsys=irix6-0 ;;
1309 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1310 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1311 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1312 mips-sgi-irix* ) opsys=irix5-0 ;;
1314 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1315 *-sony-news* ) opsys=newsos5 ;;
1317 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1319 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1320 case "$canonical" in
1321 m68*-sunos1* ) machine=sun1 ;;
1322 m68*-sunos2* ) machine=sun2 ;;
1323 m68* ) machine=sun3 ;;
1324 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1325 i*86-*-* ) machine=intel386 ;;
1326 rs6000* ) machine=rs6000 ;;
1329 case "$canonical" in *-sunos5*)
1330 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1333 case "$canonical" in
1335 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1338 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1342 case "$canonical" in
1345 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1346 { test "$extra_verbose" = "yes" && cat << EOF
1347 Defining OS_RELEASE = $os_release
1349 cat >> confdefs.h <<EOF
1350 #define OS_RELEASE $os_release
1355 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1356 *-sunos4.0* ) opsys=sunos4-0 ;;
1357 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1358 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1359 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1360 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1361 *-mach* ) opsys=mach-bsd4-3 ;;
1365 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1367 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1370 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1372 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1373 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1375 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1377 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1379 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1380 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1382 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1384 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1387 case "$canonical" in
1388 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1389 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1390 *-mach* ) opsys=mach-bsd4-3 ;;
1394 ns16k-whitechapel-* ) machine=mg1 ;;
1396 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1400 case "$canonical" in
1401 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1402 *-isc2.2* ) opsys=isc2-2 ;;
1403 *-isc4.0* ) opsys=isc4-0 ;;
1404 *-isc4.* ) opsys=isc4-1
1405 GCC_TEST_OPTIONS=-posix
1406 NON_GCC_TEST_OPTIONS=-Xp
1408 *-isc* ) opsys=isc3-0 ;;
1409 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1410 *-esix* ) opsys=esix ;;
1411 *-mach* ) opsys=mach-bsd4-3 ;;
1412 *-xenix* ) opsys=xenix ;;
1413 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1414 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1415 *-bsdi4* ) opsys=bsdos4 ;;
1416 *-bsdi3* ) opsys=bsdos3 ;;
1417 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1418 *-bsdi2* ) opsys=bsdos2 ;;
1419 *-sco3.2v5* ) opsys=sco5 ;
1420 if test "$dynamic" = "yes" ; then
1421 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1423 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1425 *-386bsd* ) opsys=386bsd ;;
1426 *-freebsd* ) opsys=freebsd ;;
1427 *-nextstep* ) opsys=nextstep ;;
1428 *-pc-cygwin* ) opsys=cygwin32 ;;
1429 *-pc-mingw* ) opsys=mingw32 ;
1430 test -z "$with_tty" && with_tty="no";;
1434 m68k-*-linux* ) machine=m68k opsys=linux ;;
1438 if test -z "$machine" -o -z "$opsys"; then
1439 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1440 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1445 if test -z "$dynamic"; then
1447 hpux* | sunos4* ) dynamic=no ;;
1451 if test "$dynamic" = "yes"; then
1453 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1454 decosf* ) ld_call_shared="-call_shared" ;;
1456 else case "$opsys" in
1458 echo "Static linking is not supported on Solaris 2."
1459 echo "Rerun configure without specifying --dynamic=no."
1461 linux ) ld_call_shared="-Bstatic" ;;
1462 decosf* ) ld_call_shared="-non_shared" ;;
1466 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1468 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1469 { test "$extra_verbose" = "yes" && cat << EOF
1470 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1472 cat >> confdefs.h <<EOF
1473 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1478 machfile="m/${machine}.h"
1479 opsysfile="s/${opsys}.h"
1482 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1483 if test "$with_workshop $with_tooltalk" = "yes no"; then
1484 (echo "$progname: Usage error:"
1485 echo " " "--with-workshop requires --with-tooltalk"
1486 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1487 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1488 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1491 if test "$with_workshop" = "yes"; then
1492 { test "$extra_verbose" = "yes" && cat << \EOF
1495 cat >> confdefs.h <<\EOF
1500 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1501 echo " xemacs will be linked with \"sunpro.o\""
1505 if test "$with_clash_detection" = "yes"; then
1506 { test "$extra_verbose" = "yes" && cat << \EOF
1507 Defining CLASH_DETECTION
1509 cat >> confdefs.h <<\EOF
1510 #define CLASH_DETECTION 1
1514 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1515 echo " xemacs will be linked with \"filelock.o\""
1519 test -n "$compiler" && CC="$compiler"
1520 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1523 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1524 if test "${CFLAGS-unset}" != unset
1525 then cflags_specified=yes;
1526 else cflags_specified=no;
1529 xe_save_CFLAGS="$CFLAGS"
1531 # Extract the first word of "gcc", so it can be a program name with args.
1532 set dummy gcc; ac_word=$2
1533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1534 echo "configure:1535: checking for $ac_word" >&5
1536 if test -n "$CC"; then
1537 ac_cv_prog_CC="$CC" # Let the user override the test.
1539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1541 for ac_dir in $ac_dummy; do
1542 test -z "$ac_dir" && ac_dir=.
1543 if test -f $ac_dir/$ac_word; then
1551 if test -n "$CC"; then
1552 echo "$ac_t""$CC" 1>&6
1554 echo "$ac_t""no" 1>&6
1557 if test -z "$CC"; then
1558 # Extract the first word of "cc", so it can be a program name with args.
1559 set dummy cc; ac_word=$2
1560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1561 echo "configure:1562: checking for $ac_word" >&5
1563 if test -n "$CC"; then
1564 ac_cv_prog_CC="$CC" # Let the user override the test.
1566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1569 for ac_dir in $ac_dummy; do
1570 test -z "$ac_dir" && ac_dir=.
1571 if test -f $ac_dir/$ac_word; then
1572 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1573 ac_prog_rejected=yes
1581 if test $ac_prog_rejected = yes; then
1582 # We found a bogon in the path, so make sure we never use it.
1583 set dummy $ac_cv_prog_CC
1585 if test $# -gt 0; then
1586 # We chose a different compiler from the bogus one.
1587 # However, it has the same basename, so the bogon will be chosen
1588 # first if we set CC to just the basename; use the full file name.
1590 set dummy "$ac_dir/$ac_word" "$@"
1597 if test -n "$CC"; then
1598 echo "$ac_t""$CC" 1>&6
1600 echo "$ac_t""no" 1>&6
1603 if test -z "$CC"; then
1604 case "`uname -s`" in
1606 # Extract the first word of "cl", so it can be a program name with args.
1607 set dummy cl; ac_word=$2
1608 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1609 echo "configure:1610: checking for $ac_word" >&5
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1616 for ac_dir in $ac_dummy; do
1617 test -z "$ac_dir" && ac_dir=.
1618 if test -f $ac_dir/$ac_word; then
1626 if test -n "$CC"; then
1627 echo "$ac_t""$CC" 1>&6
1629 echo "$ac_t""no" 1>&6
1634 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1637 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1638 echo "configure:1639: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1641 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1642 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1643 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1644 ac_cpp='$CPP '"$xe_cppflags"
1645 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1646 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1649 cat > conftest.$ac_ext << EOF
1651 #line 1652 "configure"
1652 #include "confdefs.h"
1656 if { (eval echo configure:1657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1657 ac_cv_prog_cc_works=yes
1658 # If we can't run a trivial program, we are probably using a cross compiler.
1659 if (./conftest; exit) 2>/dev/null; then
1660 ac_cv_prog_cc_cross=no
1662 ac_cv_prog_cc_cross=yes
1665 echo "configure: failed program was:" >&5
1666 cat conftest.$ac_ext >&5
1667 ac_cv_prog_cc_works=no
1671 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1672 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1673 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1674 ac_cpp='$CPP '"$xe_cppflags"
1675 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1676 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1679 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1680 if test $ac_cv_prog_cc_works = no; then
1681 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1683 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1684 echo "configure:1685: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1685 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1686 cross_compiling=$ac_cv_prog_cc_cross
1688 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1689 echo "configure:1690: checking whether we are using GNU C" >&5
1691 cat > conftest.c <<EOF
1696 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1702 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1704 if test $ac_cv_prog_gcc = yes; then
1710 ac_test_CFLAGS="${CFLAGS+set}"
1711 ac_save_CFLAGS="$CFLAGS"
1713 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1714 echo "configure:1715: checking whether ${CC-cc} accepts -g" >&5
1716 echo 'void f(){}' > conftest.c
1717 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1725 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1726 if test "$ac_test_CFLAGS" = set; then
1727 CFLAGS="$ac_save_CFLAGS"
1728 elif test $ac_cv_prog_cc_g = yes; then
1729 if test "$GCC" = yes; then
1735 if test "$GCC" = yes; then
1742 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1744 # Extract the first word of "gcc", so it can be a program name with args.
1745 set dummy gcc; ac_word=$2
1746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1747 echo "configure:1748: checking for $ac_word" >&5
1749 if test -n "$CC"; then
1750 ac_cv_prog_CC="$CC" # Let the user override the test.
1752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1754 for ac_dir in $ac_dummy; do
1755 test -z "$ac_dir" && ac_dir=.
1756 if test -f $ac_dir/$ac_word; then
1764 if test -n "$CC"; then
1765 echo "$ac_t""$CC" 1>&6
1767 echo "$ac_t""no" 1>&6
1770 if test -z "$CC"; then
1771 # Extract the first word of "cc", so it can be a program name with args.
1772 set dummy cc; ac_word=$2
1773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1774 echo "configure:1775: checking for $ac_word" >&5
1776 if test -n "$CC"; then
1777 ac_cv_prog_CC="$CC" # Let the user override the test.
1779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1782 for ac_dir in $ac_dummy; do
1783 test -z "$ac_dir" && ac_dir=.
1784 if test -f $ac_dir/$ac_word; then
1785 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1786 ac_prog_rejected=yes
1794 if test $ac_prog_rejected = yes; then
1795 # We found a bogon in the path, so make sure we never use it.
1796 set dummy $ac_cv_prog_CC
1798 if test $# -gt 0; then
1799 # We chose a different compiler from the bogus one.
1800 # However, it has the same basename, so the bogon will be chosen
1801 # first if we set CC to just the basename; use the full file name.
1803 set dummy "$ac_dir/$ac_word" "$@"
1810 if test -n "$CC"; then
1811 echo "$ac_t""$CC" 1>&6
1813 echo "$ac_t""no" 1>&6
1816 if test -z "$CC"; then
1817 case "`uname -s`" in
1819 # Extract the first word of "cl", so it can be a program name with args.
1820 set dummy cl; ac_word=$2
1821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1822 echo "configure:1823: checking for $ac_word" >&5
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC="$CC" # Let the user override the test.
1827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1829 for ac_dir in $ac_dummy; do
1830 test -z "$ac_dir" && ac_dir=.
1831 if test -f $ac_dir/$ac_word; then
1839 if test -n "$CC"; then
1840 echo "$ac_t""$CC" 1>&6
1842 echo "$ac_t""no" 1>&6
1847 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1850 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1851 echo "configure:1852: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1854 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1855 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1856 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1857 ac_cpp='$CPP '"$xe_cppflags"
1858 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1859 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1862 cat > conftest.$ac_ext << EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1869 if { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1870 ac_cv_prog_cc_works=yes
1871 # If we can't run a trivial program, we are probably using a cross compiler.
1872 if (./conftest; exit) 2>/dev/null; then
1873 ac_cv_prog_cc_cross=no
1875 ac_cv_prog_cc_cross=yes
1878 echo "configure: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1880 ac_cv_prog_cc_works=no
1884 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1885 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1886 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1887 ac_cpp='$CPP '"$xe_cppflags"
1888 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1889 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1892 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1893 if test $ac_cv_prog_cc_works = no; then
1894 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1896 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1897 echo "configure:1898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1898 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1899 cross_compiling=$ac_cv_prog_cc_cross
1901 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1902 echo "configure:1903: checking whether we are using GNU C" >&5
1904 cat > conftest.c <<EOF
1909 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1915 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1917 if test $ac_cv_prog_gcc = yes; then
1923 ac_test_CFLAGS="${CFLAGS+set}"
1924 ac_save_CFLAGS="$CFLAGS"
1926 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1927 echo "configure:1928: checking whether ${CC-cc} accepts -g" >&5
1929 echo 'void f(){}' > conftest.c
1930 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1938 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1939 if test "$ac_test_CFLAGS" = set; then
1940 CFLAGS="$ac_save_CFLAGS"
1941 elif test $ac_cv_prog_cc_g = yes; then
1942 if test "$GCC" = yes; then
1948 if test "$GCC" = yes; then
1955 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1957 # Extract the first word of "gcc", so it can be a program name with args.
1958 set dummy gcc; ac_word=$2
1959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1960 echo "configure:1961: checking for $ac_word" >&5
1962 if test -n "$CC"; then
1963 ac_cv_prog_CC="$CC" # Let the user override the test.
1965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1967 for ac_dir in $ac_dummy; do
1968 test -z "$ac_dir" && ac_dir=.
1969 if test -f $ac_dir/$ac_word; then
1977 if test -n "$CC"; then
1978 echo "$ac_t""$CC" 1>&6
1980 echo "$ac_t""no" 1>&6
1983 if test -z "$CC"; then
1984 # Extract the first word of "cc", so it can be a program name with args.
1985 set dummy cc; ac_word=$2
1986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1987 echo "configure:1988: checking for $ac_word" >&5
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
1992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1995 for ac_dir in $ac_dummy; do
1996 test -z "$ac_dir" && ac_dir=.
1997 if test -f $ac_dir/$ac_word; then
1998 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1999 ac_prog_rejected=yes
2007 if test $ac_prog_rejected = yes; then
2008 # We found a bogon in the path, so make sure we never use it.
2009 set dummy $ac_cv_prog_CC
2011 if test $# -gt 0; then
2012 # We chose a different compiler from the bogus one.
2013 # However, it has the same basename, so the bogon will be chosen
2014 # first if we set CC to just the basename; use the full file name.
2016 set dummy "$ac_dir/$ac_word" "$@"
2023 if test -n "$CC"; then
2024 echo "$ac_t""$CC" 1>&6
2026 echo "$ac_t""no" 1>&6
2029 if test -z "$CC"; then
2030 case "`uname -s`" in
2032 # Extract the first word of "cl", so it can be a program name with args.
2033 set dummy cl; ac_word=$2
2034 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2035 echo "configure:2036: checking for $ac_word" >&5
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC="$CC" # Let the user override the test.
2040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2042 for ac_dir in $ac_dummy; do
2043 test -z "$ac_dir" && ac_dir=.
2044 if test -f $ac_dir/$ac_word; then
2052 if test -n "$CC"; then
2053 echo "$ac_t""$CC" 1>&6
2055 echo "$ac_t""no" 1>&6
2060 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2063 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2064 echo "configure:2065: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2067 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2068 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2069 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2070 ac_cpp='$CPP '"$xe_cppflags"
2071 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2072 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2075 cat > conftest.$ac_ext << EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2082 if { (eval echo configure:2083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2083 ac_cv_prog_cc_works=yes
2084 # If we can't run a trivial program, we are probably using a cross compiler.
2085 if (./conftest; exit) 2>/dev/null; then
2086 ac_cv_prog_cc_cross=no
2088 ac_cv_prog_cc_cross=yes
2091 echo "configure: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2093 ac_cv_prog_cc_works=no
2097 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2098 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2099 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2100 ac_cpp='$CPP '"$xe_cppflags"
2101 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2102 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2105 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2106 if test $ac_cv_prog_cc_works = no; then
2107 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2109 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2110 echo "configure:2111: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2111 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2112 cross_compiling=$ac_cv_prog_cc_cross
2114 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2115 echo "configure:2116: checking whether we are using GNU C" >&5
2117 cat > conftest.c <<EOF
2122 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2128 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2130 if test $ac_cv_prog_gcc = yes; then
2136 ac_test_CFLAGS="${CFLAGS+set}"
2137 ac_save_CFLAGS="$CFLAGS"
2139 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2140 echo "configure:2141: checking whether ${CC-cc} accepts -g" >&5
2142 echo 'void f(){}' > conftest.c
2143 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2151 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2152 if test "$ac_test_CFLAGS" = set; then
2153 CFLAGS="$ac_save_CFLAGS"
2154 elif test $ac_cv_prog_cc_g = yes; then
2155 if test "$GCC" = yes; then
2161 if test "$GCC" = yes; then
2169 CFLAGS="$xe_save_CFLAGS"
2172 test -n "$CPP" -a -d "$CPP" && CPP=
2174 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2176 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2177 echo "configure:2178: checking how to run the C preprocessor" >&5
2178 # On Suns, sometimes $CPP names a directory.
2179 if test -n "$CPP" && test -d "$CPP"; then
2182 if test -z "$CPP"; then
2184 # This must be in double quotes, not single quotes, because CPP may get
2185 # substituted into the Makefile and "${CC-cc}" will confuse make.
2187 # On the NeXT, cc -E runs the code through the compiler's parser,
2188 # not just through cpp.
2189 cat > conftest.$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2196 { (eval echo configure:2197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2198 if test -z "$ac_err"; then
2202 echo "configure: failed program was:" >&5
2203 cat conftest.$ac_ext >&5
2205 CPP="${CC-cc} -E -traditional-cpp"
2206 cat > conftest.$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2213 { (eval echo configure:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2215 if test -z "$ac_err"; then
2219 echo "configure: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2222 CPP="${CC-cc} -nologo -E"
2223 cat > conftest.$ac_ext <<EOF
2224 #line 2225 "configure"
2225 #include "confdefs.h"
2229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2230 { (eval echo configure:2231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2232 if test -z "$ac_err"; then
2236 echo "configure: failed program was:" >&5
2237 cat conftest.$ac_ext >&5
2246 ac_cv_prog_CPP="$CPP"
2247 CPP="$ac_cv_prog_CPP"
2249 ac_cv_prog_CPP="$CPP"
2251 echo "$ac_t""$CPP" 1>&6
2254 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2255 echo "configure:2256: checking for AIX" >&5
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2265 egrep "yes" >/dev/null 2>&1; then
2267 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2268 Defining _ALL_SOURCE
2270 cat >> confdefs.h <<\EOF
2271 #define _ALL_SOURCE 1
2277 echo "$ac_t""no" 1>&6
2283 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2284 echo "configure:2285: checking for GNU libc" >&5
2285 cat > conftest.$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2288 #include <features.h>
2291 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2292 #error Not a GNU libc system :-(
2293 ******* ======= ******** &&&&&&&&
2298 if { (eval echo configure:2299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2302 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2308 echo "$ac_t""$have_glibc" 1>&6
2309 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2310 Defining _GNU_SOURCE
2312 cat >> confdefs.h <<\EOF
2313 #define _GNU_SOURCE 1
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2323 #if defined __SUNPRO_C
2325 #elif defined __DECC
2332 if { (eval echo configure:2333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2337 echo "configure: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2340 case "$conftest_rc" in
2341 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2342 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2350 echo "Extracting information from the machine- and system-dependent headers..."
2352 tempcname="conftest.c"
2356 cat > $tempcname <<EOF
2358 #define C_SWITCH_SITE
2359 #define C_SWITCH_X_SITE
2360 #define LD_SWITCH_SITE
2361 #define LD_SWITCH_X_SITE
2362 #define LD_SWITCH_X_SITE_AUX
2363 #define OS_RELEASE $os_release
2364 #include "$srcdir/src/$opsysfile"
2365 #include "$srcdir/src/$machfile"
2367 #ifndef LIBS_MACHINE
2368 #define LIBS_MACHINE
2370 configure___ libs_machine=LIBS_MACHINE
2375 configure___ libs_system=LIBS_SYSTEM
2377 #ifndef LIBS_TERMCAP
2378 #define LIBS_TERMCAP
2380 configure___ libs_termcap=LIBS_TERMCAP
2382 #ifndef LIB_STANDARD
2383 #define LIB_STANDARD
2385 configure___ libs_standard=LIB_STANDARD
2388 #ifndef OBJECTS_MACHINE
2389 #define OBJECTS_MACHINE
2391 configure___ objects_machine=OBJECTS_MACHINE
2393 #ifndef OBJECTS_SYSTEM
2394 #define OBJECTS_SYSTEM
2396 configure___ objects_system=OBJECTS_SYSTEM
2399 #ifndef C_SWITCH_MACHINE
2400 #define C_SWITCH_MACHINE
2402 configure___ c_switch_machine=C_SWITCH_MACHINE
2404 #ifndef C_SWITCH_SYSTEM
2405 #define C_SWITCH_SYSTEM
2407 configure___ c_switch_system=C_SWITCH_SYSTEM
2410 #ifndef LD_SWITCH_MACHINE
2411 #define LD_SWITCH_MACHINE
2413 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2415 #ifndef LD_SWITCH_SYSTEM
2416 #define LD_SWITCH_SYSTEM
2418 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2422 #define UNEXEC "unexec.o"
2424 configure___ unexec=UNEXEC
2427 #ifndef LD_SWITCH_SHARED
2428 #define LD_SWITCH_SHARED "-c"
2430 configure___ ld_switch_shared=LD_SWITCH_SHARED
2433 #ifdef ORDINARY_LINK
2434 #define LD "\$(CC) \$(CFLAGS)"
2435 #else /* no ORDINARY LINK */
2436 #ifdef COFF_ENCAPSULATE
2437 #define LD "\$(CC) -nostdlib"
2438 #else /* not COFF_ENCAPSULATE */
2441 #else /* ! defined (LINKER) */
2443 #endif /* ! defined (LINKER) */
2444 #endif /* ! defined (COFF_ENCAPSULATE) */
2445 #endif /* not ORDINARY_LINK */
2451 configure___ lib_gcc=LIB_GCC
2453 #ifndef LD_TEXT_START_ADDR
2454 #define LD_TEXT_START_ADDR
2456 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2459 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2461 #ifdef COFF_ENCAPSULATE
2462 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2463 #else /* ! defined (COFF_ENCAPSULATE) */
2464 #define START_FILES "pre-crt0.o /lib/crt0.o"
2465 #endif /* ! defined (COFF_ENCAPSULATE) */
2466 #else /* ! defined (NO_REMAP) */
2467 #define START_FILES "ecrt0.o"
2468 #endif /* ! defined (NO_REMAP) */
2469 #endif /* no ORDINARY_LINK */
2473 configure___ start_files=START_FILES
2475 #ifdef ORDINARY_LINK
2476 configure___ ordinary_link=yes
2478 configure___ ordinary_link=no
2481 #ifdef SYSTEM_MALLOC
2482 configure___ system_malloc=yes
2484 configure___ system_malloc=no
2488 configure___ have_terminfo=yes
2490 configure___ have_terminfo=no
2493 #ifdef MAIL_USE_FLOCK
2494 configure___ mail_use_flock=yes
2496 configure___ mail_use_flock=no
2499 #ifdef MAIL_USE_LOCKF
2500 configure___ mail_use_lockf=yes
2502 configure___ mail_use_lockf=no
2505 #ifdef HAVE_WIN32_PROCESSES
2506 configure___ win32_processes=yes
2508 configure___ win32_processes=no
2513 CPP=`eval "echo $CPP $CPPFLAGS"`
2514 eval `$CPP -Isrc $tempcname \
2515 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2519 test "$extra_verbose" = "yes" && \
2520 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 ""
2522 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2524 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2526 if test "$cflags_specified" = "no"; then
2527 if test "$GCC" = "yes"; then
2528 CFLAGS="-g -O3 -Wall -Wno-switch"
2529 elif test "$__SUNPRO_C" = "yes"; then
2531 sol2 ) CFLAGS="-v -xO4" ;;
2532 sunos4* ) CFLAGS="-xO2";;
2534 elif test "$__DECC" = "yes"; then
2536 elif test "$CC" = "xlc"; then
2537 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2543 if test "$GCC" = "yes"; then
2544 set x $ld_switch_system; shift; ld_switch_system=""
2545 while test -n "$1"; do
2547 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2548 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2550 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2556 if test "$GCC" = "yes"; then
2557 set x $ld_switch_machine; shift; ld_switch_machine=""
2558 while test -n "$1"; do
2560 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2561 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2563 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2569 if test "$GCC" = "yes"; then
2570 set x $LDFLAGS; shift; LDFLAGS=""
2571 while test -n "$1"; do
2573 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2574 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2576 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2582 if test "$GCC" = "yes"; then
2583 set x $ld_call_shared; shift; ld_call_shared=""
2584 while test -n "$1"; do
2586 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2587 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2589 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2595 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2596 echo " xemacs will be linked with \"$objects_machine\""
2598 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2599 echo " xemacs will be linked with \"$objects_system\""
2601 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2602 echo " xemacs will be linked with \"$unexec\""
2605 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2606 echo "configure:2607: checking for dynodump" >&5
2607 if test "$unexec" != "unexsol2.o"; then
2608 echo "$ac_t""no" 1>&6
2610 echo "$ac_t""yes" 1>&6
2611 { test "$extra_verbose" = "yes" && cat << \EOF
2614 cat >> confdefs.h <<\EOF
2619 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2620 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2622 sparc ) dynodump_arch=sparc ;;
2623 *86* ) dynodump_arch=i386 ;;
2624 powerpc ) dynodump_arch=ppc ;;
2626 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
2630 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2632 if test "$unexec" = "unexaix.o"; then
2633 if test "$dynamic" = "no"; then
2634 start_flags="-Wl,-bnso,-bnodelcsect"
2635 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2636 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2637 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2639 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2640 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2643 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2644 echo "configure:2645: checking for terminateAndUnload in -lC" >&5
2645 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2647 xe_check_libs=" -lC "
2648 cat > conftest.$ac_ext <<EOF
2649 #line 2650 "configure"
2650 #include "confdefs.h"
2651 /* Override any gcc2 internal prototype to avoid an error. */
2652 /* We use char because int might match the return type of a gcc2
2653 builtin and then its argument prototype would still apply. */
2654 char terminateAndUnload();
2657 terminateAndUnload()
2660 if { (eval echo configure:2661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2662 eval "ac_cv_lib_$ac_lib_var=yes"
2664 echo "configure: failed program was:" >&5
2665 cat conftest.$ac_ext >&5
2667 eval "ac_cv_lib_$ac_lib_var=no"
2672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2673 echo "$ac_t""yes" 1>&6
2674 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2676 echo "$ac_t""no" 1>&6
2681 elif test -n "$ld_text_start_addr"; then
2682 start_flags="-T $ld_text_start_addr -e __start"
2688 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2689 test -z "$linker" && linker='$(CC) -nostdlib'
2690 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2692 test "$GCC" != "yes" && lib_gcc=
2698 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2699 if test -n "$site_libraries"; then
2700 for arg in $site_libraries; do
2703 * ) test -d "$arg" || \
2704 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2707 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2711 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2712 if test -n "$site_includes"; then
2713 for arg in $site_includes; do
2716 * ) test -d "$arg" || \
2717 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2720 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2724 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2725 if test -n "$site_prefixes"; then
2726 for dir in $site_prefixes; do
2727 lib_dir="${dir}/lib"
2728 inc_dir="${dir}/include"
2729 if test ! -d "$dir"; then
2730 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2731 elif test ! -d "$lib_dir"; then
2732 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2734 if test -d "$inc_dir"; then
2735 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
2737 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
2743 for dir in "/usr/ccs/lib"; do
2744 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
2747 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2748 if test -n "$site_runtime_libraries"; then
2749 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2754 if test "$dynamic" = "no"; then add_runtime_path=no
2755 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2756 else case "$opsys" in
2757 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2758 * ) add_runtime_path=no ;;
2762 if test "$add_runtime_path" = "yes"; then
2763 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2764 echo "configure:2765: checking "for runtime libraries flag"" >&5
2766 sol2 ) dash_r="-R" ;;
2767 decosf* | linux* | irix*) dash_r="-rpath " ;;
2770 for try_dash_r in "-R" "-R " "-rpath "; do
2771 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2773 if test "$GCC" = "yes"; then
2774 set x $xe_check_libs; shift; xe_check_libs=""
2775 while test -n "$1"; do
2777 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2778 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2780 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2785 cat > conftest.$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2793 if { (eval echo configure:2794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2795 dash_r="$try_dash_r"
2797 echo "configure: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2802 test -n "$dash_r" && break
2805 if test -n "$dash_r";
2806 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2807 else echo "$ac_t""NONE" 1>&6
2811 xe_add_unique_runpath_dir='
2813 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2815 if test "$xe_add_p" = "yes"; then
2816 test -n "$runpath" && runpath="${runpath}:"
2817 runpath="${runpath}${xe_runpath_dir}"
2818 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2824 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2825 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2826 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2828 runpath="" runpath_dirs=""
2829 if test -n "$LD_RUN_PATH"; then
2830 runpath="$LD_RUN_PATH"
2831 elif test "$GCC" = "yes"; then
2832 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2833 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2834 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2835 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2836 case "$arg" in P,* | -L* | -R* )
2837 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2839 xe_runpath_dir="$dir"
2840 test "$xe_runpath_dir" != "/lib" -a \
2841 "$xe_runpath_dir" != "/usr/lib" -a \
2842 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2843 eval "$xe_add_unique_runpath_dir"
2848 ld_switch_run="$ld_switch_run_save"
2851 for arg in $ld_switch_site $ld_switch_x_site; do
2852 case "$arg" in -L*) {
2853 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2854 test "$xe_runpath_dir" != "/lib" -a \
2855 "$xe_runpath_dir" != "/usr/lib" -a \
2856 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2857 eval "$xe_add_unique_runpath_dir"
2860 if test "$opsys $need_motif" = "sol2 yes"; then
2861 xe_runpath_dir="/opt/SUNWdt/lib";
2862 eval "$xe_add_unique_runpath_dir";
2865 if test -n "$runpath"; then
2866 ld_switch_run="${dash_r}${runpath}"
2868 if test "$GCC" = "yes"; then
2869 set x $ld_switch_run; shift; ld_switch_run=""
2870 while test -n "$1"; do
2872 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2873 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2875 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2880 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2888 if test "$with_dlmalloc" != "no"; then
2893 after_morecore_hook_exists=yes
2894 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2895 echo "configure:2896: checking for malloc_get_state" >&5
2897 cat > conftest.$ac_ext <<EOF
2898 #line 2899 "configure"
2899 #include "confdefs.h"
2900 /* System header to define __stub macros and hopefully few prototypes,
2901 which can conflict with char malloc_get_state(); below. */
2903 /* Override any gcc2 internal prototype to avoid an error. */
2904 /* We use char because int might match the return type of a gcc2
2905 builtin and then its argument prototype would still apply. */
2906 char malloc_get_state();
2910 /* The GNU C library defines this for functions which it implements
2911 to always fail with ENOSYS. Some functions are actually named
2912 something starting with __ and the normal name is an alias. */
2913 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2921 if { (eval echo configure:2922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2923 eval "ac_cv_func_malloc_get_state=yes"
2925 echo "configure: failed program was:" >&5
2926 cat conftest.$ac_ext >&5
2928 eval "ac_cv_func_malloc_get_state=no"
2932 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2933 echo "$ac_t""yes" 1>&6
2936 echo "$ac_t""no" 1>&6
2940 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2941 echo "configure:2942: checking for malloc_set_state" >&5
2943 cat > conftest.$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2946 /* System header to define __stub macros and hopefully few prototypes,
2947 which can conflict with char malloc_set_state(); below. */
2949 /* Override any gcc2 internal prototype to avoid an error. */
2950 /* We use char because int might match the return type of a gcc2
2951 builtin and then its argument prototype would still apply. */
2952 char malloc_set_state();
2956 /* The GNU C library defines this for functions which it implements
2957 to always fail with ENOSYS. Some functions are actually named
2958 something starting with __ and the normal name is an alias. */
2959 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
2967 if { (eval echo configure:2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2969 eval "ac_cv_func_malloc_set_state=yes"
2971 echo "configure: failed program was:" >&5
2972 cat conftest.$ac_ext >&5
2974 eval "ac_cv_func_malloc_set_state=no"
2978 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
2979 echo "$ac_t""yes" 1>&6
2982 echo "$ac_t""no" 1>&6
2986 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2987 echo "configure:2988: checking whether __after_morecore_hook exists" >&5
2988 cat > conftest.$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2991 extern void (* __after_morecore_hook)();
2993 __after_morecore_hook = 0
2996 if { (eval echo configure:2997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2998 echo "$ac_t""yes" 1>&6
3000 echo "configure: failed program was:" >&5
3001 cat conftest.$ac_ext >&5
3003 echo "$ac_t""no" 1>&6
3004 after_morecore_hook_exists=no
3007 if test "$system_malloc" = "yes" ; then
3010 (The GNU allocators don't work with this system configuration)."
3011 elif test "$with_system_malloc" = "yes" ; then
3014 (User chose not to use GNU allocators)."
3015 elif test "$with_debug_malloc" = "yes" ; then
3018 (User chose to use Debugging Malloc)."
3021 if test "$doug_lea_malloc" = "yes" ; then
3022 if test "$GNU_MALLOC" = yes ; then
3024 (Using Doug Lea's new malloc from the GNU C Library.)"
3026 { test "$extra_verbose" = "yes" && cat << \EOF
3027 Defining DOUG_LEA_MALLOC
3029 cat >> confdefs.h <<\EOF
3030 #define DOUG_LEA_MALLOC 1
3034 if test "$after_morecore_hook_exists" = "no" ; then
3036 (Using Doug Lea's new malloc from the Linux C Library.)"
3037 { test "$extra_verbose" = "yes" && cat << \EOF
3038 Defining _NO_MALLOC_WARNING_
3040 cat >> confdefs.h <<\EOF
3041 #define _NO_MALLOC_WARNING_ 1
3046 use_minimal_tagbits=yes
3052 # Extract the first word of "ranlib", so it can be a program name with args.
3053 set dummy ranlib; ac_word=$2
3054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3055 echo "configure:3056: checking for $ac_word" >&5
3057 if test -n "$RANLIB"; then
3058 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3062 for ac_dir in $ac_dummy; do
3063 test -z "$ac_dir" && ac_dir=.
3064 if test -f $ac_dir/$ac_word; then
3065 ac_cv_prog_RANLIB="ranlib"
3070 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3072 RANLIB="$ac_cv_prog_RANLIB"
3073 if test -n "$RANLIB"; then
3074 echo "$ac_t""$RANLIB" 1>&6
3076 echo "$ac_t""no" 1>&6
3080 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3081 if test -f $ac_dir/install-sh; then
3083 ac_install_sh="$ac_aux_dir/install-sh -c"
3085 elif test -f $ac_dir/install.sh; then
3087 ac_install_sh="$ac_aux_dir/install.sh -c"
3091 if test -z "$ac_aux_dir"; then
3092 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3094 ac_config_guess=$ac_aux_dir/config.guess
3095 ac_config_sub=$ac_aux_dir/config.sub
3096 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3098 # Find a good install program. We prefer a C program (faster),
3099 # so one script is as good as another. But avoid the broken or
3100 # incompatible versions:
3101 # SysV /etc/install, /usr/sbin/install
3102 # SunOS /usr/etc/install
3103 # IRIX /sbin/install
3105 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3106 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3107 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3108 # ./install, which can be erroneously created by make from ./install.sh.
3109 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3110 echo "configure:3111: checking for a BSD compatible install" >&5
3111 if test -z "$INSTALL"; then
3113 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3114 for ac_dir in $PATH; do
3115 # Account for people who put trailing slashes in PATH elements.
3117 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3119 # OSF1 and SCO ODT 3.0 have their own names for install.
3120 # Don't use installbsd from OSF since it installs stuff as root
3122 for ac_prog in ginstall scoinst install; do
3123 if test -f $ac_dir/$ac_prog; then
3124 if test $ac_prog = install &&
3125 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3126 # AIX install. It has an incompatible calling convention.
3129 ac_cv_path_install="$ac_dir/$ac_prog -c"
3139 if test "${ac_cv_path_install+set}" = set; then
3140 INSTALL="$ac_cv_path_install"
3142 # As a last resort, use the slow shell script. We don't cache a
3143 # path for INSTALL within a source directory, because that will
3144 # break other packages using the cache if that directory is
3145 # removed, or if the path is relative.
3146 INSTALL="$ac_install_sh"
3149 echo "$ac_t""$INSTALL" 1>&6
3151 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3152 # It thinks the first close brace ends the variable substitution.
3153 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3155 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3157 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3159 for ac_prog in 'bison -y' byacc
3161 # Extract the first word of "$ac_prog", so it can be a program name with args.
3162 set dummy $ac_prog; ac_word=$2
3163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3164 echo "configure:3165: checking for $ac_word" >&5
3166 if test -n "$YACC"; then
3167 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3171 for ac_dir in $ac_dummy; do
3172 test -z "$ac_dir" && ac_dir=.
3173 if test -f $ac_dir/$ac_word; then
3174 ac_cv_prog_YACC="$ac_prog"
3180 YACC="$ac_cv_prog_YACC"
3181 if test -n "$YACC"; then
3182 echo "$ac_t""$YACC" 1>&6
3184 echo "$ac_t""no" 1>&6
3187 test -n "$YACC" && break
3189 test -n "$YACC" || YACC="yacc"
3192 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3194 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3195 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3196 echo "configure:3197: checking for $ac_hdr" >&5
3198 cat > conftest.$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3204 { (eval echo configure:3205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3206 if test -z "$ac_err"; then
3208 eval "ac_cv_header_$ac_safe=yes"
3211 echo "configure: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3214 eval "ac_cv_header_$ac_safe=no"
3217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3218 echo "$ac_t""yes" 1>&6
3219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3220 { test "$extra_verbose" = "yes" && cat << EOF
3223 cat >> confdefs.h <<EOF
3224 #define $ac_tr_hdr 1
3229 echo "$ac_t""no" 1>&6
3233 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3235 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3236 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3237 echo "configure:3238: checking for $ac_hdr" >&5
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3245 { (eval echo configure:3246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3247 if test -z "$ac_err"; then
3249 eval "ac_cv_header_$ac_safe=yes"
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3255 eval "ac_cv_header_$ac_safe=no"
3258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3259 echo "$ac_t""yes" 1>&6
3260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3261 { test "$extra_verbose" = "yes" && cat << EOF
3264 cat >> confdefs.h <<EOF
3265 #define $ac_tr_hdr 1
3270 echo "$ac_t""no" 1>&6
3274 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3276 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3277 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3278 echo "configure:3279: checking for $ac_hdr" >&5
3280 cat > conftest.$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3286 { (eval echo configure:3287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3288 if test -z "$ac_err"; then
3290 eval "ac_cv_header_$ac_safe=yes"
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3296 eval "ac_cv_header_$ac_safe=no"
3299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3300 echo "$ac_t""yes" 1>&6
3301 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3302 { test "$extra_verbose" = "yes" && cat << EOF
3305 cat >> confdefs.h <<EOF
3306 #define $ac_tr_hdr 1
3311 echo "$ac_t""no" 1>&6
3315 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3316 echo "configure:3317: checking for sys/wait.h that is POSIX.1 compatible" >&5
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 #include <sys/types.h>
3322 #include <sys/wait.h>
3324 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3327 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3332 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3335 if { (eval echo configure:3336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3337 ac_cv_header_sys_wait_h=yes
3339 echo "configure: failed program was:" >&5
3340 cat conftest.$ac_ext >&5
3342 ac_cv_header_sys_wait_h=no
3346 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3347 if test $ac_cv_header_sys_wait_h = yes; then
3348 { test "$extra_verbose" = "yes" && cat << \EOF
3349 Defining HAVE_SYS_WAIT_H
3351 cat >> confdefs.h <<\EOF
3352 #define HAVE_SYS_WAIT_H 1
3358 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3359 echo "configure:3360: checking for ANSI C header files" >&5
3361 cat > conftest.$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3370 { (eval echo configure:3371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3372 if test -z "$ac_err"; then
3374 ac_cv_header_stdc=yes
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3380 ac_cv_header_stdc=no
3384 if test $ac_cv_header_stdc = yes; then
3385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3386 cat > conftest.$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3392 egrep "memchr" >/dev/null 2>&1; then
3396 ac_cv_header_stdc=no
3402 if test $ac_cv_header_stdc = yes; then
3403 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3404 cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3410 egrep "free" >/dev/null 2>&1; then
3414 ac_cv_header_stdc=no
3420 if test $ac_cv_header_stdc = yes; then
3421 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3422 cat > conftest.$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3426 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3427 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3429 int main () { int i; for (i = 0; i < 256; i++)
3430 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3434 if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3439 echo "configure: failed program was:" >&5
3440 cat conftest.$ac_ext >&5
3442 ac_cv_header_stdc=no
3447 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3448 if test $ac_cv_header_stdc = yes; then
3449 { test "$extra_verbose" = "yes" && cat << \EOF
3450 Defining STDC_HEADERS
3452 cat >> confdefs.h <<\EOF
3453 #define STDC_HEADERS 1
3459 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3460 echo "configure:3461: checking whether time.h and sys/time.h may both be included" >&5
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 #include <sys/types.h>
3466 #include <sys/time.h>
3472 if { (eval echo configure:3473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3474 ac_cv_header_time=yes
3476 echo "configure: failed program was:" >&5
3477 cat conftest.$ac_ext >&5
3479 ac_cv_header_time=no
3483 echo "$ac_t""$ac_cv_header_time" 1>&6
3484 if test $ac_cv_header_time = yes; then
3485 { test "$extra_verbose" = "yes" && cat << \EOF
3486 Defining TIME_WITH_SYS_TIME
3488 cat >> confdefs.h <<\EOF
3489 #define TIME_WITH_SYS_TIME 1
3495 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3496 echo "configure:3497: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3498 cat > conftest.$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3501 #include <sys/types.h>
3503 /* NetBSD declares sys_siglist in unistd.h. */
3504 #ifdef HAVE_UNISTD_H
3508 char *msg = *(sys_siglist + 1);
3511 if { (eval echo configure:3512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3513 ac_cv_decl_sys_siglist=yes
3515 echo "configure: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3518 ac_cv_decl_sys_siglist=no
3522 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3523 if test $ac_cv_decl_sys_siglist = yes; then
3524 { test "$extra_verbose" = "yes" && cat << \EOF
3525 Defining SYS_SIGLIST_DECLARED
3527 cat >> confdefs.h <<\EOF
3528 #define SYS_SIGLIST_DECLARED 1
3535 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3536 echo "configure:3537: checking for struct utimbuf" >&5
3537 cat > conftest.$ac_ext <<EOF
3538 #line 3539 "configure"
3539 #include "confdefs.h"
3540 #ifdef TIME_WITH_SYS_TIME
3541 #include <sys/time.h>
3544 #ifdef HAVE_SYS_TIME_H
3545 #include <sys/time.h>
3554 static struct utimbuf x; x.actime = x.modtime;
3557 if { (eval echo configure:3558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3559 echo "$ac_t""yes" 1>&6
3560 { test "$extra_verbose" = "yes" && cat << \EOF
3561 Defining HAVE_STRUCT_UTIMBUF
3563 cat >> confdefs.h <<\EOF
3564 #define HAVE_STRUCT_UTIMBUF 1
3569 echo "configure: failed program was:" >&5
3570 cat conftest.$ac_ext >&5
3572 echo "$ac_t""no" 1>&6
3576 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3577 echo "configure:3578: checking return type of signal handlers" >&5
3579 cat > conftest.$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3582 #include <sys/types.h>
3588 extern "C" void (*signal (int, void (*)(int)))(int);
3590 void (*signal ()) ();
3597 if { (eval echo configure:3598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3599 ac_cv_type_signal=void
3601 echo "configure: failed program was:" >&5
3602 cat conftest.$ac_ext >&5
3604 ac_cv_type_signal=int
3608 echo "$ac_t""$ac_cv_type_signal" 1>&6
3609 { test "$extra_verbose" = "yes" && cat << EOF
3610 Defining RETSIGTYPE = $ac_cv_type_signal
3612 cat >> confdefs.h <<EOF
3613 #define RETSIGTYPE $ac_cv_type_signal
3618 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3619 echo "configure:3620: checking for size_t" >&5
3621 cat > conftest.$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 #include <sys/types.h>
3630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3631 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3633 ac_cv_type_size_t=yes
3636 ac_cv_type_size_t=no
3640 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3641 if test $ac_cv_type_size_t = no; then
3642 { test "$extra_verbose" = "yes" && cat << \EOF
3643 Defining size_t = unsigned
3645 cat >> confdefs.h <<\EOF
3646 #define size_t unsigned
3652 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3653 echo "configure:3654: checking for pid_t" >&5
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 #include <sys/types.h>
3664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3665 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3667 ac_cv_type_pid_t=yes
3674 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3675 if test $ac_cv_type_pid_t = no; then
3676 { test "$extra_verbose" = "yes" && cat << \EOF
3677 Defining pid_t = int
3679 cat >> confdefs.h <<\EOF
3686 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3687 echo "configure:3688: checking for uid_t in sys/types.h" >&5
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692 #include <sys/types.h>
3694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3695 egrep "uid_t" >/dev/null 2>&1; then
3697 ac_cv_type_uid_t=yes
3705 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3706 if test $ac_cv_type_uid_t = no; then
3707 { test "$extra_verbose" = "yes" && cat << \EOF
3708 Defining uid_t = int
3710 cat >> confdefs.h <<\EOF
3715 { test "$extra_verbose" = "yes" && cat << \EOF
3716 Defining gid_t = int
3718 cat >> confdefs.h <<\EOF
3725 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3726 echo "configure:3727: checking for mode_t" >&5
3728 cat > conftest.$ac_ext <<EOF
3729 #line 3730 "configure"
3730 #include "confdefs.h"
3731 #include <sys/types.h>
3737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3738 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3740 ac_cv_type_mode_t=yes
3743 ac_cv_type_mode_t=no
3747 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3748 if test $ac_cv_type_mode_t = no; then
3749 { test "$extra_verbose" = "yes" && cat << \EOF
3750 Defining mode_t = int
3752 cat >> confdefs.h <<\EOF
3759 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3760 echo "configure:3761: checking for off_t" >&5
3762 cat > conftest.$ac_ext <<EOF
3763 #line 3764 "configure"
3764 #include "confdefs.h"
3765 #include <sys/types.h>
3771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3772 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3774 ac_cv_type_off_t=yes
3781 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3782 if test $ac_cv_type_off_t = no; then
3783 { test "$extra_verbose" = "yes" && cat << \EOF
3784 Defining off_t = long
3786 cat >> confdefs.h <<\EOF
3794 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3795 echo "configure:3796: checking for struct timeval" >&5
3796 cat > conftest.$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 #ifdef TIME_WITH_SYS_TIME
3800 #include <sys/time.h>
3803 #ifdef HAVE_SYS_TIME_H
3804 #include <sys/time.h>
3810 static struct timeval x; x.tv_sec = x.tv_usec;
3813 if { (eval echo configure:3814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3815 echo "$ac_t""yes" 1>&6
3817 { test "$extra_verbose" = "yes" && cat << \EOF
3818 Defining HAVE_TIMEVAL
3820 cat >> confdefs.h <<\EOF
3821 #define HAVE_TIMEVAL 1
3826 echo "configure: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3829 echo "$ac_t""no" 1>&6
3834 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3835 echo "configure:3836: checking whether struct tm is in sys/time.h or time.h" >&5
3837 cat > conftest.$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3840 #include <sys/types.h>
3843 struct tm *tp; tp->tm_sec;
3846 if { (eval echo configure:3847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3848 ac_cv_struct_tm=time.h
3850 echo "configure: failed program was:" >&5
3851 cat conftest.$ac_ext >&5
3853 ac_cv_struct_tm=sys/time.h
3857 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3858 if test $ac_cv_struct_tm = sys/time.h; then
3859 { test "$extra_verbose" = "yes" && cat << \EOF
3860 Defining TM_IN_SYS_TIME
3862 cat >> confdefs.h <<\EOF
3863 #define TM_IN_SYS_TIME 1
3869 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3870 echo "configure:3871: checking for tm_zone in struct tm" >&5
3872 cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3875 #include <sys/types.h>
3876 #include <$ac_cv_struct_tm>
3878 struct tm tm; tm.tm_zone;
3881 if { (eval echo configure:3882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3883 ac_cv_struct_tm_zone=yes
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3888 ac_cv_struct_tm_zone=no
3892 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3893 if test "$ac_cv_struct_tm_zone" = yes; then
3894 { test "$extra_verbose" = "yes" && cat << \EOF
3895 Defining HAVE_TM_ZONE
3897 cat >> confdefs.h <<\EOF
3898 #define HAVE_TM_ZONE 1
3903 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3904 echo "configure:3905: checking for tzname" >&5
3906 cat > conftest.$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3910 #ifndef tzname /* For SGI. */
3911 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3917 if { (eval echo configure:3918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3919 ac_cv_var_tzname=yes
3921 echo "configure: failed program was:" >&5
3922 cat conftest.$ac_ext >&5
3928 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3929 if test $ac_cv_var_tzname = yes; then
3930 { test "$extra_verbose" = "yes" && cat << \EOF
3931 Defining HAVE_TZNAME
3933 cat >> confdefs.h <<\EOF
3934 #define HAVE_TZNAME 1
3942 echo $ac_n "checking for working const""... $ac_c" 1>&6
3943 echo "configure:3944: checking for working const" >&5
3945 cat > conftest.$ac_ext <<EOF
3946 #line 3947 "configure"
3947 #include "confdefs.h"
3951 /* Ultrix mips cc rejects this. */
3952 typedef int charset[2]; const charset x;
3953 /* SunOS 4.1.1 cc rejects this. */
3954 char const *const *ccp;
3956 /* NEC SVR4.0.2 mips cc rejects this. */
3957 struct point {int x, y;};
3958 static struct point const zero = {0,0};
3959 /* AIX XL C 1.02.0.0 rejects this.
3960 It does not let you subtract one const X* pointer from another in an arm
3961 of an if-expression whose if-part is not a constant expression */
3962 const char *g = "string";
3963 ccp = &g + (g ? g-g : 0);
3964 /* HPUX 7.0 cc rejects these. */
3967 ccp = (char const *const *) p;
3968 { /* SCO 3.2v4 cc rejects this. */
3970 char const *s = 0 ? (char *) 0 : (char const *) 0;
3974 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3976 const int *foo = &x[0];
3979 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3980 typedef const int *iptr;
3984 { /* AIX XL C 1.02.0.0 rejects this saying
3985 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3986 struct s { int j; const int *ap[3]; };
3987 struct s *b; b->j = 5;
3989 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3995 if { (eval echo configure:3996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3999 echo "configure: failed program was:" >&5
4000 cat conftest.$ac_ext >&5
4006 echo "$ac_t""$ac_cv_c_const" 1>&6
4007 if test $ac_cv_c_const = no; then
4008 { test "$extra_verbose" = "yes" && cat << \EOF
4011 cat >> confdefs.h <<\EOF
4019 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4020 echo "configure:4021: checking whether ${MAKE-make} sets \${MAKE}" >&5
4021 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4023 cat > conftestmake <<\EOF
4025 @echo 'ac_maketemp="${MAKE}"'
4027 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4028 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4029 if test -n "$ac_maketemp"; then
4030 eval ac_cv_prog_make_${ac_make}_set=yes
4032 eval ac_cv_prog_make_${ac_make}_set=no
4035 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4036 echo "$ac_t""yes" 1>&6
4039 echo "$ac_t""no" 1>&6
4040 SET_MAKE="MAKE=${MAKE-make}"
4044 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4045 echo "configure:4046: checking whether byte ordering is bigendian" >&5
4047 ac_cv_c_bigendian=unknown
4048 # See if sys/param.h defines the BYTE_ORDER macro.
4049 cat > conftest.$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4052 #include <sys/types.h>
4053 #include <sys/param.h>
4056 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4061 if { (eval echo configure:4062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4063 # It does; now see whether it defined to BIG_ENDIAN or not.
4064 cat > conftest.$ac_ext <<EOF
4065 #line 4066 "configure"
4066 #include "confdefs.h"
4067 #include <sys/types.h>
4068 #include <sys/param.h>
4071 #if BYTE_ORDER != BIG_ENDIAN
4076 if { (eval echo configure:4077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4078 ac_cv_c_bigendian=yes
4080 echo "configure: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4083 ac_cv_c_bigendian=no
4087 echo "configure: failed program was:" >&5
4088 cat conftest.$ac_ext >&5
4091 if test $ac_cv_c_bigendian = unknown; then
4092 cat > conftest.$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4096 /* Are we little or big endian? From Harbison&Steele. */
4100 char c[sizeof (long)];
4103 exit (u.c[sizeof (long) - 1] == 1);
4106 if { (eval echo configure:4107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4108 ac_cv_c_bigendian=no
4111 echo "configure: failed program was:" >&5
4112 cat conftest.$ac_ext >&5
4114 ac_cv_c_bigendian=yes
4119 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4120 if test $ac_cv_c_bigendian = yes; then
4121 { test "$extra_verbose" = "yes" && cat << \EOF
4122 Defining WORDS_BIGENDIAN
4124 cat >> confdefs.h <<\EOF
4125 #define WORDS_BIGENDIAN 1
4132 echo $ac_n "checking size of short""... $ac_c" 1>&6
4133 echo "configure:4134: checking size of short" >&5
4135 cat > conftest.$ac_ext <<EOF
4136 #line 4137 "configure"
4137 #include "confdefs.h"
4141 FILE *f=fopen("conftestval", "w");
4143 fprintf(f, "%d\n", sizeof(short));
4147 if { (eval echo configure:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4149 ac_cv_sizeof_short=`cat conftestval`
4152 echo "configure: failed program was:" >&5
4153 cat conftest.$ac_ext >&5
4155 ac_cv_sizeof_short=0
4158 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4159 { test "$extra_verbose" = "yes" && cat << EOF
4160 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4162 cat >> confdefs.h <<EOF
4163 #define SIZEOF_SHORT $ac_cv_sizeof_short
4168 if test "$ac_cv_sizeof_short" = 0; then
4170 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4171 echo "*** PANIC *** Please examine config.log for compilation errors."
4174 echo $ac_n "checking size of int""... $ac_c" 1>&6
4175 echo "configure:4176: checking size of int" >&5
4177 cat > conftest.$ac_ext <<EOF
4178 #line 4179 "configure"
4179 #include "confdefs.h"
4183 FILE *f=fopen("conftestval", "w");
4185 fprintf(f, "%d\n", sizeof(int));
4189 if { (eval echo configure:4190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4191 ac_cv_sizeof_int=`cat conftestval`
4194 echo "configure: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4200 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4201 { test "$extra_verbose" = "yes" && cat << EOF
4202 Defining SIZEOF_INT = $ac_cv_sizeof_int
4204 cat >> confdefs.h <<EOF
4205 #define SIZEOF_INT $ac_cv_sizeof_int
4210 echo $ac_n "checking size of long""... $ac_c" 1>&6
4211 echo "configure:4212: checking size of long" >&5
4213 cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4219 FILE *f=fopen("conftestval", "w");
4221 fprintf(f, "%d\n", sizeof(long));
4225 if { (eval echo configure:4226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4227 ac_cv_sizeof_long=`cat conftestval`
4230 echo "configure: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4236 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4237 { test "$extra_verbose" = "yes" && cat << EOF
4238 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4240 cat >> confdefs.h <<EOF
4241 #define SIZEOF_LONG $ac_cv_sizeof_long
4246 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4247 echo "configure:4248: checking size of long long" >&5
4249 cat > conftest.$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4255 FILE *f=fopen("conftestval", "w");
4257 fprintf(f, "%d\n", sizeof(long long));
4261 if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4263 ac_cv_sizeof_long_long=`cat conftestval`
4266 echo "configure: failed program was:" >&5
4267 cat conftest.$ac_ext >&5
4269 ac_cv_sizeof_long_long=0
4272 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4273 { test "$extra_verbose" = "yes" && cat << EOF
4274 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4276 cat >> confdefs.h <<EOF
4277 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4282 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4283 echo "configure:4284: checking size of void *" >&5
4285 cat > conftest.$ac_ext <<EOF
4286 #line 4287 "configure"
4287 #include "confdefs.h"
4291 FILE *f=fopen("conftestval", "w");
4293 fprintf(f, "%d\n", sizeof(void *));
4297 if { (eval echo configure:4298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4299 ac_cv_sizeof_void_p=`cat conftestval`
4302 echo "configure: failed program was:" >&5
4303 cat conftest.$ac_ext >&5
4305 ac_cv_sizeof_void_p=0
4308 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4309 { test "$extra_verbose" = "yes" && cat << EOF
4310 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4312 cat >> confdefs.h <<EOF
4313 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4319 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4320 echo "configure:4321: checking for long file names" >&5
4322 ac_cv_sys_long_file_names=yes
4323 # Test for long file names in all the places we know might matter:
4324 # . the current directory, where building will happen
4325 # $prefix/lib where we will be installing things
4326 # $exec_prefix/lib likewise
4327 # eval it to expand exec_prefix.
4328 # $TMPDIR if set, where it might want to write temporary files
4329 # if $TMPDIR is not set:
4330 # /tmp where it might want to write temporary files
4333 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4334 ac_tmpdirs="$TMPDIR"
4336 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4338 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4339 test -d $ac_dir || continue
4340 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4341 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4342 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4343 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4344 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4345 ac_cv_sys_long_file_names=no
4346 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4349 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4352 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4353 if test $ac_cv_sys_long_file_names = yes; then
4354 { test "$extra_verbose" = "yes" && cat << \EOF
4355 Defining HAVE_LONG_FILE_NAMES
4357 cat >> confdefs.h <<\EOF
4358 #define HAVE_LONG_FILE_NAMES 1
4365 echo $ac_n "checking for sin""... $ac_c" 1>&6
4366 echo "configure:4367: checking for sin" >&5
4368 cat > conftest.$ac_ext <<EOF
4369 #line 4370 "configure"
4370 #include "confdefs.h"
4371 /* System header to define __stub macros and hopefully few prototypes,
4372 which can conflict with char sin(); below. */
4374 /* Override any gcc2 internal prototype to avoid an error. */
4375 /* We use char because int might match the return type of a gcc2
4376 builtin and then its argument prototype would still apply. */
4381 /* The GNU C library defines this for functions which it implements
4382 to always fail with ENOSYS. Some functions are actually named
4383 something starting with __ and the normal name is an alias. */
4384 #if defined (__stub_sin) || defined (__stub___sin)
4392 if { (eval echo configure:4393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4394 eval "ac_cv_func_sin=yes"
4396 echo "configure: failed program was:" >&5
4397 cat conftest.$ac_ext >&5
4399 eval "ac_cv_func_sin=no"
4403 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4404 echo "$ac_t""yes" 1>&6
4407 echo "$ac_t""no" 1>&6
4409 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4410 echo "configure:4411: checking for sin in -lm" >&5
4411 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4413 xe_check_libs=" -lm "
4414 cat > conftest.$ac_ext <<EOF
4415 #line 4416 "configure"
4416 #include "confdefs.h"
4417 /* Override any gcc2 internal prototype to avoid an error. */
4418 /* We use char because int might match the return type of a gcc2
4419 builtin and then its argument prototype would still apply. */
4426 if { (eval echo configure:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4428 eval "ac_cv_lib_$ac_lib_var=yes"
4430 echo "configure: failed program was:" >&5
4431 cat conftest.$ac_ext >&5
4433 eval "ac_cv_lib_$ac_lib_var=no"
4438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4439 echo "$ac_t""yes" 1>&6
4440 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4441 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4442 { test "$extra_verbose" = "yes" && cat << EOF
4445 cat >> confdefs.h <<EOF
4446 #define $ac_tr_lib 1
4450 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4453 echo "$ac_t""no" 1>&6
4460 { test "$extra_verbose" = "yes" && cat << \EOF
4461 Defining LISP_FLOAT_TYPE
4463 cat >> confdefs.h <<\EOF
4464 #define LISP_FLOAT_TYPE 1
4469 cat > conftest.$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4474 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4479 { test "$extra_verbose" = "yes" && cat << \EOF
4480 Defining HAVE_INVERSE_HYPERBOLIC
4482 cat >> confdefs.h <<\EOF
4483 #define HAVE_INVERSE_HYPERBOLIC 1
4488 echo "configure: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4493 echo "checking type of mail spool file locking" 1>&6
4494 echo "configure:4495: checking type of mail spool file locking" >&5
4495 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4496 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4497 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4498 Defining REAL_MAIL_USE_LOCKF
4500 cat >> confdefs.h <<\EOF
4501 #define REAL_MAIL_USE_LOCKF 1
4505 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4506 Defining REAL_MAIL_USE_FLOCK
4508 cat >> confdefs.h <<\EOF
4509 #define REAL_MAIL_USE_FLOCK 1
4513 else mail_locking="dot-locking"
4516 case "$opsys" in decosf*)
4518 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4519 echo "configure:4520: checking for cma_open in -lpthreads" >&5
4520 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4522 xe_check_libs=" -lpthreads "
4523 cat > conftest.$ac_ext <<EOF
4524 #line 4525 "configure"
4525 #include "confdefs.h"
4526 /* Override any gcc2 internal prototype to avoid an error. */
4527 /* We use char because int might match the return type of a gcc2
4528 builtin and then its argument prototype would still apply. */
4535 if { (eval echo configure:4536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4537 eval "ac_cv_lib_$ac_lib_var=yes"
4539 echo "configure: failed program was:" >&5
4540 cat conftest.$ac_ext >&5
4542 eval "ac_cv_lib_$ac_lib_var=no"
4547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4548 echo "$ac_t""yes" 1>&6
4549 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4550 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4551 { test "$extra_verbose" = "yes" && cat << EOF
4554 cat >> confdefs.h <<EOF
4555 #define $ac_tr_lib 1
4559 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4562 echo "$ac_t""no" 1>&6
4566 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4567 c_switch_site="$c_switch_site -threads" ;;
4570 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4571 echo "configure:4572: checking whether the -xildoff compiler flag is required" >&5
4572 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4573 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4574 then echo "$ac_t""no" 1>&6;
4575 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
4577 else echo "$ac_t""no" 1>&6
4580 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4581 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4582 echo "configure:4583: checking for \"-z ignore\" linker flag" >&5
4583 case "`ld -h 2>&1`" in
4584 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4585 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4586 *) echo "$ac_t""no" 1>&6 ;;
4591 echo "checking "for specified window system"" 1>&6
4592 echo "configure:4593: checking "for specified window system"" >&5
4594 if test "$with_x11" != "no"; then
4595 test "$x_includes $x_libraries" != "NONE NONE" && \
4596 window_system=x11 with_x11=yes
4599 if test "$x_includes $x_libraries" = "NONE NONE" \
4600 -a -n "$OPENWINHOME" \
4601 -a "$OPENWINHOME" != "/usr/openwin" \
4602 -a -d "$OPENWINHOME"; then
4603 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4604 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4605 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4608 if test "$x_includes" = "NONE"; then
4609 for dir in "/usr/X11" "/usr/X11R6"; do
4610 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4614 if test "$x_libraries" = "NONE"; then
4615 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4616 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4620 # If we find X, set shell vars x_includes and x_libraries to the
4621 # paths, otherwise set no_x=yes.
4622 # Uses ac_ vars as temps to allow command line to override cache and checks.
4623 # --without-x overrides everything else, but does not touch the cache.
4624 echo $ac_n "checking for X""... $ac_c" 1>&6
4625 echo "configure:4626: checking for X" >&5
4627 # Check whether --with-x or --without-x was given.
4628 if test "${with_x+set}" = set; then
4633 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4634 if test "x$with_x" = xno; then
4635 # The user explicitly disabled X.
4638 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4639 # Both variables are already set.
4643 # One or both of the vars are not set, and there is no cached value.
4644 ac_x_includes=NO ac_x_libraries=NO
4646 if mkdir conftestdir; then
4648 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4649 cat > Imakefile <<'EOF'
4651 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4653 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4654 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4655 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4656 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4657 for ac_extension in a so sl; do
4658 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4659 test -f $ac_im_libdir/libX11.$ac_extension; then
4660 ac_im_usrlibdir=$ac_im_libdir; break
4663 # Screen out bogus values from the imake configuration. They are
4664 # bogus both because they are the default anyway, and because
4665 # using them would break gcc on systems where it needs fixed includes.
4666 case "$ac_im_incroot" in
4668 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4670 case "$ac_im_usrlibdir" in
4672 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4679 if test "$ac_x_includes" = NO; then
4680 # Guess where to find include files, by looking for this one X11 .h file.
4681 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4683 # First, try using that file with no special directory specified.
4684 cat > conftest.$ac_ext <<EOF
4685 #line 4686 "configure"
4686 #include "confdefs.h"
4687 #include <$x_direct_test_include>
4689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4690 { (eval echo configure:4691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4692 if test -z "$ac_err"; then
4694 # We can compile using X headers with no special include directory.
4698 echo "configure: failed program was:" >&5
4699 cat conftest.$ac_ext >&5
4701 # Look for the header file in a standard set of common directories.
4702 # Check X11 before X11Rn because it is often a symlink to the current release.
4705 /usr/X11R6/include \
4706 /usr/X11R5/include \
4707 /usr/X11R4/include \
4710 /usr/include/X11R6 \
4711 /usr/include/X11R5 \
4712 /usr/include/X11R4 \
4714 /usr/local/X11/include \
4715 /usr/local/X11R6/include \
4716 /usr/local/X11R5/include \
4717 /usr/local/X11R4/include \
4719 /usr/local/include/X11 \
4720 /usr/local/include/X11R6 \
4721 /usr/local/include/X11R5 \
4722 /usr/local/include/X11R4 \
4726 /usr/XFree86/include/X11 \
4729 /usr/local/include \
4730 /usr/unsupported/include \
4731 /usr/athena/include \
4732 /usr/local/x11r5/include \
4733 /usr/lpp/Xamples/include \
4735 /usr/openwin/include \
4736 /usr/openwin/share/include \
4739 if test -r "$ac_dir/$x_direct_test_include"; then
4740 ac_x_includes=$ac_dir
4746 fi # $ac_x_includes = NO
4748 if test "$ac_x_libraries" = NO; then
4749 # Check for the libraries.
4751 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4752 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4754 # See if we find them without any special options.
4755 # Don't add to $LIBS permanently.
4756 ac_save_LIBS="$LIBS"
4757 LIBS="-l$x_direct_test_library $LIBS"
4758 cat > conftest.$ac_ext <<EOF
4759 #line 4760 "configure"
4760 #include "confdefs.h"
4763 ${x_direct_test_function}()
4766 if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4768 LIBS="$ac_save_LIBS"
4769 # We can link X programs with no special library path.
4772 echo "configure: failed program was:" >&5
4773 cat conftest.$ac_ext >&5
4775 LIBS="$ac_save_LIBS"
4776 # First see if replacing the include by lib works.
4777 # Check X11 before X11Rn because it is often a symlink to the current release.
4778 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4789 /usr/local/X11/lib \
4790 /usr/local/X11R6/lib \
4791 /usr/local/X11R5/lib \
4792 /usr/local/X11R4/lib \
4794 /usr/local/lib/X11 \
4795 /usr/local/lib/X11R6 \
4796 /usr/local/lib/X11R5 \
4797 /usr/local/lib/X11R4 \
4801 /usr/XFree86/lib/X11 \
4805 /usr/unsupported/lib \
4807 /usr/local/x11r5/lib \
4808 /usr/lpp/Xamples/lib \
4812 /usr/openwin/share/lib \
4815 for ac_extension in a so sl; do
4816 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4817 ac_x_libraries=$ac_dir
4824 fi # $ac_x_libraries = NO
4826 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4827 # Didn't find X anywhere. Cache the known absence of X.
4828 ac_cv_have_x="have_x=no"
4830 # Record where we found X for the cache.
4831 ac_cv_have_x="have_x=yes \
4832 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4835 eval "$ac_cv_have_x"
4838 if test "$have_x" != yes; then
4839 echo "$ac_t""$have_x" 1>&6
4842 # If each of the values was on the command line, it overrides each guess.
4843 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4844 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4845 # Update the cache value to reflect the command line values.
4846 ac_cv_have_x="have_x=yes \
4847 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4848 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4851 if test "$no_x" = yes; then
4852 # Not all programs may use this symbol, but it does not hurt to define it.
4853 { test "$extra_verbose" = "yes" && cat << \EOF
4854 Defining X_DISPLAY_MISSING
4856 cat >> confdefs.h <<\EOF
4857 #define X_DISPLAY_MISSING 1
4861 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4863 if test -n "$x_includes"; then
4864 X_CFLAGS="$X_CFLAGS -I$x_includes"
4867 # It would also be nice to do this for all -L options, not just this one.
4868 if test -n "$x_libraries"; then
4869 X_LIBS="$X_LIBS -L$x_libraries"
4870 # For Solaris; some versions of Sun CC require a space after -R and
4871 # others require no space. Words are not sufficient . . . .
4872 case "`(uname -sr) 2>/dev/null`" in
4874 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4875 echo "configure:4876: checking whether -R must be followed by a space" >&5
4876 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4877 cat > conftest.$ac_ext <<EOF
4878 #line 4879 "configure"
4879 #include "confdefs.h"
4885 if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4889 echo "configure: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4895 if test $ac_R_nospace = yes; then
4896 echo "$ac_t""no" 1>&6
4897 X_LIBS="$X_LIBS -R$x_libraries"
4899 LIBS="$ac_xsave_LIBS -R $x_libraries"
4900 cat > conftest.$ac_ext <<EOF
4901 #line 4902 "configure"
4902 #include "confdefs.h"
4908 if { (eval echo configure:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4912 echo "configure: failed program was:" >&5
4913 cat conftest.$ac_ext >&5
4918 if test $ac_R_space = yes; then
4919 echo "$ac_t""yes" 1>&6
4920 X_LIBS="$X_LIBS -R $x_libraries"
4922 echo "$ac_t""neither works" 1>&6
4925 LIBS="$ac_xsave_LIBS"
4929 # Check for system-dependent libraries X programs must link with.
4930 # Do this before checking for the system-independent R6 libraries
4931 # (-lICE), since we may need -lsocket or whatever for X linking.
4933 if test "$ISC" = yes; then
4934 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4936 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4937 # libraries were built with DECnet support. And karl@cs.umb.edu says
4938 # the Alpha needs dnet_stub (dnet does not exist).
4939 if test "$with_dnet" = "no" ; then
4940 ac_cv_lib_dnet_dnet_ntoa=no
4943 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4944 echo "configure:4945: checking for dnet_ntoa in -ldnet" >&5
4945 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4947 xe_check_libs=" -ldnet "
4948 cat > conftest.$ac_ext <<EOF
4949 #line 4950 "configure"
4950 #include "confdefs.h"
4951 /* Override any gcc2 internal prototype to avoid an error. */
4952 /* We use char because int might match the return type of a gcc2
4953 builtin and then its argument prototype would still apply. */
4960 if { (eval echo configure:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4962 eval "ac_cv_lib_$ac_lib_var=yes"
4964 echo "configure: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4967 eval "ac_cv_lib_$ac_lib_var=no"
4972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4973 echo "$ac_t""yes" 1>&6
4974 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4976 echo "$ac_t""no" 1>&6
4981 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4983 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4984 echo "configure:4985: checking for dnet_ntoa in -ldnet_stub" >&5
4985 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4987 xe_check_libs=" -ldnet_stub "
4988 cat > conftest.$ac_ext <<EOF
4989 #line 4990 "configure"
4990 #include "confdefs.h"
4991 /* Override any gcc2 internal prototype to avoid an error. */
4992 /* We use char because int might match the return type of a gcc2
4993 builtin and then its argument prototype would still apply. */
5000 if { (eval echo configure:5001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5002 eval "ac_cv_lib_$ac_lib_var=yes"
5004 echo "configure: failed program was:" >&5
5005 cat conftest.$ac_ext >&5
5007 eval "ac_cv_lib_$ac_lib_var=no"
5012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5013 echo "$ac_t""yes" 1>&6
5014 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5016 echo "$ac_t""no" 1>&6
5022 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5023 # to get the SysV transport functions.
5024 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5026 # The nsl library prevents programs from opening the X display
5027 # on Irix 5.2, according to dickey@clark.net.
5028 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5029 echo "configure:5030: checking for gethostbyname" >&5
5031 cat > conftest.$ac_ext <<EOF
5032 #line 5033 "configure"
5033 #include "confdefs.h"
5034 /* System header to define __stub macros and hopefully few prototypes,
5035 which can conflict with char gethostbyname(); below. */
5037 /* Override any gcc2 internal prototype to avoid an error. */
5038 /* We use char because int might match the return type of a gcc2
5039 builtin and then its argument prototype would still apply. */
5040 char gethostbyname();
5044 /* The GNU C library defines this for functions which it implements
5045 to always fail with ENOSYS. Some functions are actually named
5046 something starting with __ and the normal name is an alias. */
5047 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5055 if { (eval echo configure:5056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5057 eval "ac_cv_func_gethostbyname=yes"
5059 echo "configure: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5062 eval "ac_cv_func_gethostbyname=no"
5066 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5067 echo "$ac_t""yes" 1>&6
5070 echo "$ac_t""no" 1>&6
5073 if test $ac_cv_func_gethostbyname = no; then
5075 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5076 echo "configure:5077: checking for gethostbyname in -lnsl" >&5
5077 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5079 xe_check_libs=" -lnsl "
5080 cat > conftest.$ac_ext <<EOF
5081 #line 5082 "configure"
5082 #include "confdefs.h"
5083 /* Override any gcc2 internal prototype to avoid an error. */
5084 /* We use char because int might match the return type of a gcc2
5085 builtin and then its argument prototype would still apply. */
5086 char gethostbyname();
5092 if { (eval echo configure:5093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5094 eval "ac_cv_lib_$ac_lib_var=yes"
5096 echo "configure: failed program was:" >&5
5097 cat conftest.$ac_ext >&5
5099 eval "ac_cv_lib_$ac_lib_var=no"
5104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5105 echo "$ac_t""yes" 1>&6
5106 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5108 echo "$ac_t""no" 1>&6
5114 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5115 # socket/setsockopt and other routines are undefined under SCO ODT
5116 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5117 # on later versions), says simon@lia.di.epfl.ch: it contains
5118 # gethostby* variants that don't use the nameserver (or something).
5119 # -lsocket must be given before -lnsl if both are needed.
5120 # We assume that if connect needs -lnsl, so does gethostbyname.
5121 echo $ac_n "checking for connect""... $ac_c" 1>&6
5122 echo "configure:5123: checking for connect" >&5
5124 cat > conftest.$ac_ext <<EOF
5125 #line 5126 "configure"
5126 #include "confdefs.h"
5127 /* System header to define __stub macros and hopefully few prototypes,
5128 which can conflict with char connect(); below. */
5130 /* Override any gcc2 internal prototype to avoid an error. */
5131 /* We use char because int might match the return type of a gcc2
5132 builtin and then its argument prototype would still apply. */
5137 /* The GNU C library defines this for functions which it implements
5138 to always fail with ENOSYS. Some functions are actually named
5139 something starting with __ and the normal name is an alias. */
5140 #if defined (__stub_connect) || defined (__stub___connect)
5148 if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5150 eval "ac_cv_func_connect=yes"
5152 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5155 eval "ac_cv_func_connect=no"
5159 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5160 echo "$ac_t""yes" 1>&6
5163 echo "$ac_t""no" 1>&6
5166 if test $ac_cv_func_connect = no; then
5168 xe_msg_checking="for connect in -lsocket"
5169 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5170 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5171 echo "configure:5172: checking "$xe_msg_checking"" >&5
5172 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5174 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5175 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5178 /* Override any gcc2 internal prototype to avoid an error. */
5179 /* We use char because int might match the return type of a gcc2
5180 builtin and then its argument prototype would still apply. */
5187 if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5189 eval "ac_cv_lib_$ac_lib_var=yes"
5191 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5
5194 eval "ac_cv_lib_$ac_lib_var=no"
5199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5200 echo "$ac_t""yes" 1>&6
5201 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5203 echo "$ac_t""no" 1>&6
5209 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5210 echo $ac_n "checking for remove""... $ac_c" 1>&6
5211 echo "configure:5212: checking for remove" >&5
5213 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5216 /* System header to define __stub macros and hopefully few prototypes,
5217 which can conflict with char remove(); below. */
5219 /* Override any gcc2 internal prototype to avoid an error. */
5220 /* We use char because int might match the return type of a gcc2
5221 builtin and then its argument prototype would still apply. */
5226 /* The GNU C library defines this for functions which it implements
5227 to always fail with ENOSYS. Some functions are actually named
5228 something starting with __ and the normal name is an alias. */
5229 #if defined (__stub_remove) || defined (__stub___remove)
5237 if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5239 eval "ac_cv_func_remove=yes"
5241 echo "configure: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5244 eval "ac_cv_func_remove=no"
5248 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5249 echo "$ac_t""yes" 1>&6
5252 echo "$ac_t""no" 1>&6
5255 if test $ac_cv_func_remove = no; then
5257 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5258 echo "configure:5259: checking for remove in -lposix" >&5
5259 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5261 xe_check_libs=" -lposix "
5262 cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5265 /* Override any gcc2 internal prototype to avoid an error. */
5266 /* We use char because int might match the return type of a gcc2
5267 builtin and then its argument prototype would still apply. */
5274 if { (eval echo configure:5275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5276 eval "ac_cv_lib_$ac_lib_var=yes"
5278 echo "configure: failed program was:" >&5
5279 cat conftest.$ac_ext >&5
5281 eval "ac_cv_lib_$ac_lib_var=no"
5286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5287 echo "$ac_t""yes" 1>&6
5288 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5290 echo "$ac_t""no" 1>&6
5296 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5297 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5298 echo "configure:5299: checking for shmat" >&5
5300 cat > conftest.$ac_ext <<EOF
5301 #line 5302 "configure"
5302 #include "confdefs.h"
5303 /* System header to define __stub macros and hopefully few prototypes,
5304 which can conflict with char shmat(); below. */
5306 /* Override any gcc2 internal prototype to avoid an error. */
5307 /* We use char because int might match the return type of a gcc2
5308 builtin and then its argument prototype would still apply. */
5313 /* The GNU C library defines this for functions which it implements
5314 to always fail with ENOSYS. Some functions are actually named
5315 something starting with __ and the normal name is an alias. */
5316 #if defined (__stub_shmat) || defined (__stub___shmat)
5324 if { (eval echo configure:5325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5326 eval "ac_cv_func_shmat=yes"
5328 echo "configure: failed program was:" >&5
5329 cat conftest.$ac_ext >&5
5331 eval "ac_cv_func_shmat=no"
5335 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5336 echo "$ac_t""yes" 1>&6
5339 echo "$ac_t""no" 1>&6
5342 if test $ac_cv_func_shmat = no; then
5344 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5345 echo "configure:5346: checking for shmat in -lipc" >&5
5346 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5348 xe_check_libs=" -lipc "
5349 cat > conftest.$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5352 /* Override any gcc2 internal prototype to avoid an error. */
5353 /* We use char because int might match the return type of a gcc2
5354 builtin and then its argument prototype would still apply. */
5361 if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5363 eval "ac_cv_lib_$ac_lib_var=yes"
5365 echo "configure: failed program was:" >&5
5366 cat conftest.$ac_ext >&5
5368 eval "ac_cv_lib_$ac_lib_var=no"
5373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5374 echo "$ac_t""yes" 1>&6
5375 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5377 echo "$ac_t""no" 1>&6
5384 # Check for libraries that X11R6 Xt/Xaw programs need.
5385 ac_save_LDFLAGS="$LDFLAGS"
5386 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5387 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5388 # check for ICE first), but we must link in the order -lSM -lICE or
5389 # we get undefined symbols. So assume we have SM if we have ICE.
5390 # These have to be linked with before -lX11, unlike the other
5391 # libraries we check for below, so use a different variable.
5392 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5394 xe_msg_checking="for IceConnectionNumber in -lICE"
5395 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5396 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5397 echo "configure:5398: checking "$xe_msg_checking"" >&5
5398 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5400 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5401 cat > conftest.$ac_ext <<EOF
5402 #line 5403 "configure"
5403 #include "confdefs.h"
5404 /* Override any gcc2 internal prototype to avoid an error. */
5405 /* We use char because int might match the return type of a gcc2
5406 builtin and then its argument prototype would still apply. */
5407 char IceConnectionNumber();
5410 IceConnectionNumber()
5413 if { (eval echo configure:5414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5415 eval "ac_cv_lib_$ac_lib_var=yes"
5417 echo "configure: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5420 eval "ac_cv_lib_$ac_lib_var=no"
5425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5426 echo "$ac_t""yes" 1>&6
5427 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5429 echo "$ac_t""no" 1>&6
5433 LDFLAGS="$ac_save_LDFLAGS"
5436 # Autoconf claims to find X library and include dirs for us.
5437 if test "$no_x" = "yes"
5438 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5439 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5444 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5445 no ) window_system=none HAVE_X_WINDOWS=no ;;
5448 if test "$with_x11" = "yes"; then
5449 { test "$extra_verbose" = "yes" && cat << \EOF
5450 Defining HAVE_X_WINDOWS
5452 cat >> confdefs.h <<\EOF
5453 #define HAVE_X_WINDOWS 1
5457 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5458 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5460 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5461 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5462 if test -d "$lib_dir" -a -d "$inc_dir"; then
5463 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5464 x_libraries="$lib_dir $x_libraries"
5465 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5467 case "$x_includes" in "$inc_dir"* ) ;; *)
5468 x_includes="$inc_dir $x_includes"
5469 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5474 for rel in "X11R6" "X11R5" "X11R4"; do
5475 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5476 if test -d "$lib_dir" -a -d "$inc_dir"; then
5477 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5478 x_libraries="$x_libraries $lib_dir"
5479 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5481 case "$x_includes" in "$inc_dir"* ) ;; *)
5482 x_includes="$x_includes $inc_dir"
5483 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5488 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
5490 ld_switch_x_site="$X_LIBS"
5493 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5494 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5495 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5497 runpath="" runpath_dirs=""
5498 if test -n "$LD_RUN_PATH"; then
5499 runpath="$LD_RUN_PATH"
5500 elif test "$GCC" = "yes"; then
5501 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5502 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5503 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5504 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5505 case "$arg" in P,* | -L* | -R* )
5506 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5508 xe_runpath_dir="$dir"
5509 test "$xe_runpath_dir" != "/lib" -a \
5510 "$xe_runpath_dir" != "/usr/lib" -a \
5511 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5512 eval "$xe_add_unique_runpath_dir"
5517 ld_switch_run="$ld_switch_run_save"
5520 for arg in $ld_switch_site $ld_switch_x_site; do
5521 case "$arg" in -L*) {
5522 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5523 test "$xe_runpath_dir" != "/lib" -a \
5524 "$xe_runpath_dir" != "/usr/lib" -a \
5525 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5526 eval "$xe_add_unique_runpath_dir"
5529 if test "$opsys $need_motif" = "sol2 yes"; then
5530 xe_runpath_dir="/opt/SUNWdt/lib";
5531 eval "$xe_add_unique_runpath_dir";
5534 if test -n "$runpath"; then
5535 ld_switch_run="${dash_r}${runpath}"
5537 if test "$GCC" = "yes"; then
5538 set x $ld_switch_run; shift; ld_switch_run=""
5539 while test -n "$1"; do
5541 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5542 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5544 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5549 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5554 if test "$extra_verbose" = "yes"; then
5555 echo; echo "X11 compilation variables:"
5556 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5561 if test "$x_includes" != NONE; then
5562 for i in $x_includes; do
5563 if test -d "$i/bitmaps"; then
5564 bitmapdirs="$i/bitmaps:$bitmapdirs"
5566 if test -d "$i/X11/bitmaps"; then
5567 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5570 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5572 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5573 Defining BITMAPDIR = "$bitmapdirs"
5575 cat >> confdefs.h <<EOF
5576 #define BITMAPDIR "$bitmapdirs"
5581 echo "checking for X defines extracted by xmkmf" 1>&6
5582 echo "configure:5583: checking for X defines extracted by xmkmf" >&5
5584 if mkdir conftestdir; then
5586 cat > Imakefile <<'EOF'
5588 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5590 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5591 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5592 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5596 for word in $xmkmf_defines; do
5599 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5600 { test "$extra_verbose" = "yes" && cat << EOF
5603 cat >> confdefs.h <<EOF
5612 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5613 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5614 echo "configure:5615: checking for X11/Intrinsic.h" >&5
5616 cat > conftest.$ac_ext <<EOF
5617 #line 5618 "configure"
5618 #include "confdefs.h"
5619 #include <X11/Intrinsic.h>
5621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5622 { (eval echo configure:5623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5624 if test -z "$ac_err"; then
5626 eval "ac_cv_header_$ac_safe=yes"
5629 echo "configure: failed program was:" >&5
5630 cat conftest.$ac_ext >&5
5632 eval "ac_cv_header_$ac_safe=no"
5635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5636 echo "$ac_t""yes" 1>&6
5639 echo "$ac_t""no" 1>&6
5640 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5645 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5646 echo "configure:5647: checking for XOpenDisplay in -lX11" >&5
5647 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5649 xe_check_libs=" -lX11 "
5650 cat > conftest.$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5653 /* Override any gcc2 internal prototype to avoid an error. */
5654 /* We use char because int might match the return type of a gcc2
5655 builtin and then its argument prototype would still apply. */
5656 char XOpenDisplay();
5662 if { (eval echo configure:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5664 eval "ac_cv_lib_$ac_lib_var=yes"
5666 echo "configure: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5669 eval "ac_cv_lib_$ac_lib_var=no"
5674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5675 echo "$ac_t""yes" 1>&6
5678 echo "$ac_t""no" 1>&6
5682 if test "$have_lib_x11" != "yes"; then
5684 xe_msg_checking="for XGetFontProperty in -lX11"
5685 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5686 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5687 echo "configure:5688: checking "$xe_msg_checking"" >&5
5688 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5690 xe_check_libs=" -lX11 -b i486-linuxaout"
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5694 /* Override any gcc2 internal prototype to avoid an error. */
5695 /* We use char because int might match the return type of a gcc2
5696 builtin and then its argument prototype would still apply. */
5697 char XGetFontProperty();
5703 if { (eval echo configure:5704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5705 eval "ac_cv_lib_$ac_lib_var=yes"
5707 echo "configure: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5710 eval "ac_cv_lib_$ac_lib_var=no"
5715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5716 echo "$ac_t""yes" 1>&6
5717 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5719 echo "$ac_t""no" 1>&6
5720 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5726 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5729 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5730 echo "configure:5731: checking for XShapeSelectInput in -lXext" >&5
5731 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5733 xe_check_libs=" -lXext "
5734 cat > conftest.$ac_ext <<EOF
5735 #line 5736 "configure"
5736 #include "confdefs.h"
5737 /* Override any gcc2 internal prototype to avoid an error. */
5738 /* We use char because int might match the return type of a gcc2
5739 builtin and then its argument prototype would still apply. */
5740 char XShapeSelectInput();
5746 if { (eval echo configure:5747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5748 eval "ac_cv_lib_$ac_lib_var=yes"
5750 echo "configure: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5753 eval "ac_cv_lib_$ac_lib_var=no"
5758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5759 echo "$ac_t""yes" 1>&6
5760 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5762 echo "$ac_t""no" 1>&6
5768 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5769 echo "configure:5770: checking for XtOpenDisplay in -lXt" >&5
5770 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5772 xe_check_libs=" -lXt "
5773 cat > conftest.$ac_ext <<EOF
5774 #line 5775 "configure"
5775 #include "confdefs.h"
5776 /* Override any gcc2 internal prototype to avoid an error. */
5777 /* We use char because int might match the return type of a gcc2
5778 builtin and then its argument prototype would still apply. */
5779 char XtOpenDisplay();
5785 if { (eval echo configure:5786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5787 eval "ac_cv_lib_$ac_lib_var=yes"
5789 echo "configure: failed program was:" >&5
5790 cat conftest.$ac_ext >&5
5792 eval "ac_cv_lib_$ac_lib_var=no"
5797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5798 echo "$ac_t""yes" 1>&6
5799 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5801 echo "$ac_t""no" 1>&6
5802 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5807 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5808 echo "configure:5809: checking the version of X11 being used" >&5
5809 cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5812 #include <X11/Intrinsic.h>
5813 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5815 if { (eval echo configure:5816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5817 ./conftest foobar; x11_release=$?
5820 echo "configure: failed program was:" >&5
5821 cat conftest.$ac_ext >&5
5826 echo "$ac_t""R${x11_release}" 1>&6
5827 { test "$extra_verbose" = "yes" && cat << EOF
5828 Defining THIS_IS_X11R${x11_release}
5830 cat >> confdefs.h <<EOF
5831 #define THIS_IS_X11R${x11_release} 1
5836 for ac_hdr in X11/Xlocale.h
5838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5840 echo "configure:5841: checking for $ac_hdr" >&5
5842 cat > conftest.$ac_ext <<EOF
5843 #line 5844 "configure"
5844 #include "confdefs.h"
5847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5848 { (eval echo configure:5849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5850 if test -z "$ac_err"; then
5852 eval "ac_cv_header_$ac_safe=yes"
5855 echo "configure: failed program was:" >&5
5856 cat conftest.$ac_ext >&5
5858 eval "ac_cv_header_$ac_safe=no"
5861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5862 echo "$ac_t""yes" 1>&6
5863 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5864 { test "$extra_verbose" = "yes" && cat << EOF
5867 cat >> confdefs.h <<EOF
5868 #define $ac_tr_hdr 1
5873 echo "$ac_t""no" 1>&6
5878 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5879 echo "configure:5880: checking for XFree86" >&5
5880 if test -d "/usr/X386/include" -o \
5881 -f "/etc/XF86Config" -o \
5882 -f "/etc/X11/XF86Config" -o \
5883 -f "/usr/X11R6/lib/X11/XF86Config"; then
5884 echo "$ac_t""yes" 1>&6
5885 { test "$extra_verbose" = "yes" && cat << \EOF
5886 Defining HAVE_XFREE386
5888 cat >> confdefs.h <<\EOF
5889 #define HAVE_XFREE386 1
5894 echo "$ac_t""no" 1>&6
5897 test -z "$with_xmu" && {
5898 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5899 echo "configure:5900: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5900 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5902 xe_check_libs=" -lXmu "
5903 cat > conftest.$ac_ext <<EOF
5904 #line 5905 "configure"
5905 #include "confdefs.h"
5906 /* Override any gcc2 internal prototype to avoid an error. */
5907 /* We use char because int might match the return type of a gcc2
5908 builtin and then its argument prototype would still apply. */
5909 char XmuReadBitmapDataFromFile();
5912 XmuReadBitmapDataFromFile()
5915 if { (eval echo configure:5916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5917 eval "ac_cv_lib_$ac_lib_var=yes"
5919 echo "configure: failed program was:" >&5
5920 cat conftest.$ac_ext >&5
5922 eval "ac_cv_lib_$ac_lib_var=no"
5927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5928 echo "$ac_t""yes" 1>&6
5931 echo "$ac_t""no" 1>&6
5936 if test "$with_xmu" = "no"; then
5937 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
5938 echo " xemacs will be linked with \"xmu.o\""
5941 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
5942 { test "$extra_verbose" = "yes" && cat << \EOF
5945 cat >> confdefs.h <<\EOF
5953 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5954 echo "configure:5955: checking for main in -lXbsd" >&5
5955 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5957 xe_check_libs=" -lXbsd "
5958 cat > conftest.$ac_ext <<EOF
5959 #line 5960 "configure"
5960 #include "confdefs.h"
5966 if { (eval echo configure:5967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5968 eval "ac_cv_lib_$ac_lib_var=yes"
5970 echo "configure: failed program was:" >&5
5971 cat conftest.$ac_ext >&5
5973 eval "ac_cv_lib_$ac_lib_var=no"
5978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5979 echo "$ac_t""yes" 1>&6
5980 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
5982 echo "$ac_t""no" 1>&6
5987 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
5988 if test "$GCC" = "yes"; then
5989 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
5990 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
5993 "xlc" ) CC="xlc_r" ;;
5994 "xlC" ) CC="xlC_r" ;;
6001 if test "$with_msw" != "no"; then
6002 echo "checking for MS-Windows" 1>&6
6003 echo "configure:6004: checking for MS-Windows" >&5
6005 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6006 echo "configure:6007: checking for main in -lgdi32" >&5
6007 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6009 xe_check_libs=" -lgdi32 "
6010 cat > conftest.$ac_ext <<EOF
6011 #line 6012 "configure"
6012 #include "confdefs.h"
6018 if { (eval echo configure:6019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6020 eval "ac_cv_lib_$ac_lib_var=yes"
6022 echo "configure: failed program was:" >&5
6023 cat conftest.$ac_ext >&5
6025 eval "ac_cv_lib_$ac_lib_var=no"
6030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6031 echo "$ac_t""yes" 1>&6
6034 echo "$ac_t""no" 1>&6
6038 if test "$with_msw" = "yes"; then
6039 { test "$extra_verbose" = "yes" && cat << \EOF
6040 Defining HAVE_MS_WINDOWS
6042 cat >> confdefs.h <<\EOF
6043 #define HAVE_MS_WINDOWS 1
6047 install_pp="$blddir/lib-src/installexe.sh"
6048 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
6049 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6050 if test "$window_system" != x11; then
6052 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6053 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6054 echo " xemacs will be linked with \"scrollbar-msw.o\""
6056 test "$with_menubars" != "no" && with_menubars=msw \
6057 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6058 echo " xemacs will be linked with \"menubar-msw.o\""
6060 test "$with_toolbars" != "no" && with_toolbars=msw \
6061 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6062 echo " xemacs will be linked with \"toolbar-msw.o\""
6064 test "$with_dialogs" != "no" && with_dialogs=msw \
6065 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6066 echo " xemacs will be linked with \"dialog-msw.o\""
6069 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6070 echo " xemacs will be linked with \"scrollbar-msw.o\""
6072 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6073 echo " xemacs will be linked with \"menubar-msw.o\""
6075 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6076 echo " xemacs will be linked with \"toolbar-msw.o\""
6078 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6079 echo " xemacs will be linked with \"dialog-msw.o\""
6082 cat > conftest.$ac_ext <<EOF
6083 #line 6084 "configure"
6084 #include "confdefs.h"
6086 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6088 if { (eval echo configure:6089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6090 { test "$extra_verbose" = "yes" && cat << \EOF
6091 Defining HAVE_MSG_SELECT
6093 cat >> confdefs.h <<\EOF
6094 #define HAVE_MSG_SELECT 1
6100 echo "configure: failed program was:" >&5
6101 cat conftest.$ac_ext >&5
6105 with_file_coding=yes
6106 extra_objs="$extra_objs console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o" && if test "$extra_verbose" = "yes"; then
6107 echo " xemacs will be linked with \"console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o\""
6114 test -z "$window_system" && window_system="none"
6116 if test "$window_system" = "none"; then
6117 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6119 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6120 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6122 eval "with_${feature}=no"
6125 test -z "$with_toolbars" && with_toolbars=yes
6128 if test "$with_msw" != "yes"; then
6129 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6131 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6132 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6134 eval "with_${feature}=no"
6140 if test "$with_x11" != "yes"; then
6141 for feature in tooltalk cde offix wmcommand xim xmu
6143 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6144 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6146 eval "with_${feature}=no"
6152 case "$window_system" in
6153 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6154 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6155 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6158 case "$x_libraries" in *X11R4* )
6159 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6160 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6163 echo "checking for WM_COMMAND option" 1>&6
6164 echo "configure:6165: checking for WM_COMMAND option" >&5;
6165 if test "$with_wmcommand" != "no"; then
6166 { test "$extra_verbose" = "yes" && cat << \EOF
6167 Defining HAVE_WMCOMMAND
6169 cat >> confdefs.h <<\EOF
6170 #define HAVE_WMCOMMAND 1
6176 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6177 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6178 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6179 echo "configure:6180: checking for X11/Xauth.h" >&5
6181 cat > conftest.$ac_ext <<EOF
6182 #line 6183 "configure"
6183 #include "confdefs.h"
6184 #include <X11/Xauth.h>
6186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6187 { (eval echo configure:6188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6189 if test -z "$ac_err"; then
6191 eval "ac_cv_header_$ac_safe=yes"
6194 echo "configure: failed program was:" >&5
6195 cat conftest.$ac_ext >&5
6197 eval "ac_cv_header_$ac_safe=no"
6200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6201 echo "$ac_t""yes" 1>&6
6204 echo "$ac_t""no" 1>&6
6208 test -z "$with_xauth" && {
6209 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6210 echo "configure:6211: checking for XauGetAuthByAddr in -lXau" >&5
6211 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6213 xe_check_libs=" -lXau "
6214 cat > conftest.$ac_ext <<EOF
6215 #line 6216 "configure"
6216 #include "confdefs.h"
6217 /* Override any gcc2 internal prototype to avoid an error. */
6218 /* We use char because int might match the return type of a gcc2
6219 builtin and then its argument prototype would still apply. */
6220 char XauGetAuthByAddr();
6226 if { (eval echo configure:6227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6228 eval "ac_cv_lib_$ac_lib_var=yes"
6230 echo "configure: failed program was:" >&5
6231 cat conftest.$ac_ext >&5
6233 eval "ac_cv_lib_$ac_lib_var=no"
6238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6239 echo "$ac_t""yes" 1>&6
6242 echo "$ac_t""no" 1>&6
6247 test -z "$with_xauth" && with_xauth=yes
6248 if test "$with_xauth" = "yes"; then
6249 { test "$extra_verbose" = "yes" && cat << \EOF
6252 cat >> confdefs.h <<\EOF
6253 #define HAVE_XAUTH 1
6259 for W in $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
6267 if test "$with_tooltalk" != "no" ; then
6268 for dir in "" "Tt/" "desktop/" ; do
6269 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6270 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6271 echo "configure:6272: checking for ${dir}tt_c.h" >&5
6273 cat > conftest.$ac_ext <<EOF
6274 #line 6275 "configure"
6275 #include "confdefs.h"
6276 #include <${dir}tt_c.h>
6278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6279 { (eval echo configure:6280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6281 if test -z "$ac_err"; then
6283 eval "ac_cv_header_$ac_safe=yes"
6286 echo "configure: failed program was:" >&5
6287 cat conftest.$ac_ext >&5
6289 eval "ac_cv_header_$ac_safe=no"
6292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6293 echo "$ac_t""yes" 1>&6
6294 tt_c_h_path="${dir}tt_c.h"; break
6296 echo "$ac_t""no" 1>&6
6300 if test -z "$tt_c_h_path"; then
6301 if test "$with_tooltalk" = "yes"; then
6302 (echo "$progname: Usage error:"
6303 echo " " "Unable to find required tooltalk header files."
6304 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6309 if test "$with_tooltalk" != "no" ; then
6310 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6312 xe_msg_checking="for tt_message_create in -ltt"
6313 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6314 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6315 echo "configure:6316: checking "$xe_msg_checking"" >&5
6316 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6318 xe_check_libs=" -ltt $extra_libs"
6319 cat > conftest.$ac_ext <<EOF
6320 #line 6321 "configure"
6321 #include "confdefs.h"
6322 /* Override any gcc2 internal prototype to avoid an error. */
6323 /* We use char because int might match the return type of a gcc2
6324 builtin and then its argument prototype would still apply. */
6325 char tt_message_create();
6331 if { (eval echo configure:6332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6333 eval "ac_cv_lib_$ac_lib_var=yes"
6335 echo "configure: failed program was:" >&5
6336 cat conftest.$ac_ext >&5
6338 eval "ac_cv_lib_$ac_lib_var=no"
6343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6344 echo "$ac_t""yes" 1>&6
6345 tt_libs="-ltt $extra_libs"; break
6347 echo "$ac_t""no" 1>&6
6353 if test -z "$tt_libs"; then
6354 if test "$with_tooltalk" = "yes"; then
6355 (echo "$progname: Usage error:"
6356 echo " " "Unable to find required tooltalk libraries."
6357 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6362 test -z "$with_tooltalk" && with_tooltalk=yes
6363 if test "$with_tooltalk" = "yes"; then
6364 { test "$extra_verbose" = "yes" && cat << \EOF
6367 cat >> confdefs.h <<\EOF
6372 { test "$extra_verbose" = "yes" && cat << EOF
6373 Defining TT_C_H_PATH = "$tt_c_h_path"
6375 cat >> confdefs.h <<EOF
6376 #define TT_C_H_PATH "$tt_c_h_path"
6380 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6381 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6382 echo " xemacs will be linked with \"tooltalk.o\""
6386 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6387 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6388 echo "configure:6389: checking for Dt/Dt.h" >&5
6390 cat > conftest.$ac_ext <<EOF
6391 #line 6392 "configure"
6392 #include "confdefs.h"
6395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6396 { (eval echo configure:6397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6398 if test -z "$ac_err"; then
6400 eval "ac_cv_header_$ac_safe=yes"
6403 echo "configure: failed program was:" >&5
6404 cat conftest.$ac_ext >&5
6406 eval "ac_cv_header_$ac_safe=no"
6409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6410 echo "$ac_t""yes" 1>&6
6413 echo "$ac_t""no" 1>&6
6417 test -z "$with_cde" && {
6418 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6419 echo "configure:6420: checking for DtDndDragStart in -lDtSvc" >&5
6420 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6422 xe_check_libs=" -lDtSvc "
6423 cat > conftest.$ac_ext <<EOF
6424 #line 6425 "configure"
6425 #include "confdefs.h"
6426 /* Override any gcc2 internal prototype to avoid an error. */
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6429 char DtDndDragStart();
6435 if { (eval echo configure:6436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6437 eval "ac_cv_lib_$ac_lib_var=yes"
6439 echo "configure: failed program was:" >&5
6440 cat conftest.$ac_ext >&5
6442 eval "ac_cv_lib_$ac_lib_var=no"
6447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6448 echo "$ac_t""yes" 1>&6
6451 echo "$ac_t""no" 1>&6
6456 test -z "$with_cde" && with_cde=yes
6457 if test "$with_dragndrop" = no; then
6458 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6461 if test "$with_cde" = "yes" ; then
6462 { test "$extra_verbose" = "yes" && cat << \EOF
6465 cat >> confdefs.h <<\EOF
6470 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6471 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6472 with_tooltalk=yes # CDE requires Tooltalk
6473 need_motif=yes # CDE requires Motif
6476 test "$window_system" != "x11" && with_offix=no
6477 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6478 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6481 if test "$with_dragndrop" = no; then
6482 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6485 if test "$with_cde" = yes; then
6486 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6489 test -z "$with_offix" && with_offix=no
6490 if test "$with_offix" = "yes"; then
6491 { test "$extra_verbose" = "yes" && cat << \EOF
6492 Defining HAVE_OFFIX_DND
6494 cat >> confdefs.h <<\EOF
6495 #define HAVE_OFFIX_DND 1
6499 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6500 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6503 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6504 echo "configure:6505: checking if drag and drop API is needed" >&5
6505 if test "$with_dragndrop" != "no" ; then
6506 if test -n "$dragndrop_proto" ; then
6508 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6509 { test "$extra_verbose" = "yes" && cat << \EOF
6510 Defining HAVE_DRAGNDROP
6512 cat >> confdefs.h <<\EOF
6513 #define HAVE_DRAGNDROP 1
6517 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6520 echo "$ac_t""no" 1>&6
6524 echo "checking for LDAP" 1>&6
6525 echo "configure:6526: checking for LDAP" >&5
6526 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6527 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6528 echo "configure:6529: checking for ldap.h" >&5
6530 cat > conftest.$ac_ext <<EOF
6531 #line 6532 "configure"
6532 #include "confdefs.h"
6535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6536 { (eval echo configure:6537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6538 if test -z "$ac_err"; then
6540 eval "ac_cv_header_$ac_safe=yes"
6543 echo "configure: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6546 eval "ac_cv_header_$ac_safe=no"
6549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6550 echo "$ac_t""yes" 1>&6
6553 echo "$ac_t""no" 1>&6
6557 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6558 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6559 echo "configure:6560: checking for lber.h" >&5
6561 cat > conftest.$ac_ext <<EOF
6562 #line 6563 "configure"
6563 #include "confdefs.h"
6566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6567 { (eval echo configure:6568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6569 if test -z "$ac_err"; then
6571 eval "ac_cv_header_$ac_safe=yes"
6574 echo "configure: failed program was:" >&5
6575 cat conftest.$ac_ext >&5
6577 eval "ac_cv_header_$ac_safe=no"
6580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6581 echo "$ac_t""yes" 1>&6
6584 echo "$ac_t""no" 1>&6
6588 if test "$with_ldap" != "no"; then
6590 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6591 echo "configure:6592: checking for ldap_search in -lldap" >&5
6592 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6594 xe_check_libs=" -lldap "
6595 cat > conftest.$ac_ext <<EOF
6596 #line 6597 "configure"
6597 #include "confdefs.h"
6598 /* Override any gcc2 internal prototype to avoid an error. */
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6607 if { (eval echo configure:6608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6609 eval "ac_cv_lib_$ac_lib_var=yes"
6611 echo "configure: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6614 eval "ac_cv_lib_$ac_lib_var=no"
6619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6620 echo "$ac_t""yes" 1>&6
6621 with_ldap_nolber=yes
6623 echo "$ac_t""no" 1>&6
6628 test "$with_ldap_nolber" = "no" && {
6629 xe_msg_checking="for ldap_open in -lldap"
6630 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6631 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6632 echo "configure:6633: checking "$xe_msg_checking"" >&5
6633 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6635 xe_check_libs=" -lldap -llber"
6636 cat > conftest.$ac_ext <<EOF
6637 #line 6638 "configure"
6638 #include "confdefs.h"
6639 /* Override any gcc2 internal prototype to avoid an error. */
6640 /* We use char because int might match the return type of a gcc2
6641 builtin and then its argument prototype would still apply. */
6648 if { (eval echo configure:6649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6650 eval "ac_cv_lib_$ac_lib_var=yes"
6652 echo "configure: failed program was:" >&5
6653 cat conftest.$ac_ext >&5
6655 eval "ac_cv_lib_$ac_lib_var=no"
6660 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6661 echo "$ac_t""yes" 1>&6
6664 echo "$ac_t""no" 1>&6
6669 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" \) && with_ldap=yes
6671 if test "$with_ldap" = "yes"; then
6672 { test "$extra_verbose" = "yes" && cat << \EOF
6675 cat >> confdefs.h <<\EOF
6680 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6681 echo " xemacs will be linked with \"eldap.o\""
6683 if test "$with_ldap_nolber" = "yes" ; then
6684 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6686 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6687 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6689 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
6691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6692 echo "configure:6693: checking for $ac_func" >&5
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 /* System header to define __stub macros and hopefully few prototypes,
6698 which can conflict with char $ac_func(); below. */
6700 /* Override any gcc2 internal prototype to avoid an error. */
6701 /* We use char because int might match the return type of a gcc2
6702 builtin and then its argument prototype would still apply. */
6707 /* The GNU C library defines this for functions which it implements
6708 to always fail with ENOSYS. Some functions are actually named
6709 something starting with __ and the normal name is an alias. */
6710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6718 if { (eval echo configure:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6720 eval "ac_cv_func_$ac_func=yes"
6722 echo "configure: failed program was:" >&5
6723 cat conftest.$ac_ext >&5
6725 eval "ac_cv_func_$ac_func=no"
6729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6730 echo "$ac_t""yes" 1>&6
6731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6732 { test "$extra_verbose" = "yes" && cat << EOF
6733 Defining $ac_tr_func
6735 cat >> confdefs.h <<EOF
6736 #define $ac_tr_func 1
6741 echo "$ac_t""no" 1>&6
6748 if test "$window_system" != "none"; then
6749 echo "checking for graphics libraries" 1>&6
6750 echo "configure:6751: checking for graphics libraries" >&5
6753 if test -z "$with_xpm"; then
6754 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6755 echo "configure:6756: checking for Xpm - no older than 3.4f" >&5
6757 cat > conftest.$ac_ext <<EOF
6758 #line 6759 "configure"
6759 #include "confdefs.h"
6760 #include <X11/xpm.h>
6761 int main(int c, char **v) {
6763 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6764 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6766 if { (eval echo configure:6767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6768 ./conftest dummy_arg; xpm_status=$?;
6769 if test "$xpm_status" = "0"; then
6773 if test "$xpm_status" = "1"; then
6774 xpm_problem="Xpm library version and header file version don't match!"
6775 elif test "$xpm_status" = "2"; then
6776 xpm_problem="Xpm library version is too old!"
6778 xpm_problem="Internal xpm detection logic error!"
6781 *** WARNING *** $xpm_problem
6782 I'm not touching that with a 10-foot pole!
6783 If you really want to use the installed version of Xpm, rerun
6784 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
6788 echo "configure: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6795 echo "$ac_t""$with_xpm" 1>&6
6797 if test "$with_xpm" = "yes"; then
6798 { test "$extra_verbose" = "yes" && cat << \EOF
6801 cat >> confdefs.h <<\EOF
6806 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6807 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6808 echo "configure:6809: checking for \"FOR_MSW\" xpm" >&5
6810 cat > conftest.$ac_ext <<EOF
6811 #line 6812 "configure"
6812 #include "confdefs.h"
6815 XpmCreatePixmapFromData()
6818 if { (eval echo configure:6819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6822 echo "configure: failed program was:" >&5
6823 cat conftest.$ac_ext >&5
6829 echo "$ac_t""$xpm_for_msw" 1>&6
6830 if test "$xpm_for_msw" = "yes"; then
6831 { test "$extra_verbose" = "yes" && cat << \EOF
6834 cat >> confdefs.h <<\EOF
6842 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6843 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6844 echo "configure:6845: checking for compface.h" >&5
6846 cat > conftest.$ac_ext <<EOF
6847 #line 6848 "configure"
6848 #include "confdefs.h"
6849 #include <compface.h>
6851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6852 { (eval echo configure:6853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6854 if test -z "$ac_err"; then
6856 eval "ac_cv_header_$ac_safe=yes"
6859 echo "configure: failed program was:" >&5
6860 cat conftest.$ac_ext >&5
6862 eval "ac_cv_header_$ac_safe=no"
6865 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6866 echo "$ac_t""yes" 1>&6
6869 echo "$ac_t""no" 1>&6
6873 test -z "$with_xface" && {
6874 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6875 echo "configure:6876: checking for UnGenFace in -lcompface" >&5
6876 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6878 xe_check_libs=" -lcompface "
6879 cat > conftest.$ac_ext <<EOF
6880 #line 6881 "configure"
6881 #include "confdefs.h"
6882 /* Override any gcc2 internal prototype to avoid an error. */
6883 /* We use char because int might match the return type of a gcc2
6884 builtin and then its argument prototype would still apply. */
6891 if { (eval echo configure:6892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6893 eval "ac_cv_lib_$ac_lib_var=yes"
6895 echo "configure: failed program was:" >&5
6896 cat conftest.$ac_ext >&5
6898 eval "ac_cv_lib_$ac_lib_var=no"
6903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6904 echo "$ac_t""yes" 1>&6
6907 echo "$ac_t""no" 1>&6
6912 test -z "$with_xface" && with_xface=yes
6913 if test "$with_xface" = "yes"; then
6914 { test "$extra_verbose" = "yes" && cat << \EOF
6917 cat >> confdefs.h <<\EOF
6918 #define HAVE_XFACE 1
6922 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
6925 if test "$with_gif" != "no"; then
6927 { test "$extra_verbose" = "yes" && cat << \EOF
6930 cat >> confdefs.h <<\EOF
6935 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
6936 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
6940 if test "$with_png $with_tiff" != "no no"; then
6942 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6943 echo "configure:6944: checking for inflate in -lc" >&5
6944 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6946 xe_check_libs=" -lc "
6947 cat > conftest.$ac_ext <<EOF
6948 #line 6949 "configure"
6949 #include "confdefs.h"
6950 /* Override any gcc2 internal prototype to avoid an error. */
6951 /* We use char because int might match the return type of a gcc2
6952 builtin and then its argument prototype would still apply. */
6959 if { (eval echo configure:6960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6961 eval "ac_cv_lib_$ac_lib_var=yes"
6963 echo "configure: failed program was:" >&5
6964 cat conftest.$ac_ext >&5
6966 eval "ac_cv_lib_$ac_lib_var=no"
6971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6972 echo "$ac_t""yes" 1>&6
6975 echo "$ac_t""no" 1>&6
6977 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6978 echo "configure:6979: checking for inflate in -lz" >&5
6979 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6981 xe_check_libs=" -lz "
6982 cat > conftest.$ac_ext <<EOF
6983 #line 6984 "configure"
6984 #include "confdefs.h"
6985 /* Override any gcc2 internal prototype to avoid an error. */
6986 /* We use char because int might match the return type of a gcc2
6987 builtin and then its argument prototype would still apply. */
6994 if { (eval echo configure:6995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6996 eval "ac_cv_lib_$ac_lib_var=yes"
6998 echo "configure: failed program was:" >&5
6999 cat conftest.$ac_ext >&5
7001 eval "ac_cv_lib_$ac_lib_var=no"
7006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7007 echo "$ac_t""yes" 1>&6
7008 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7010 echo "$ac_t""no" 1>&6
7012 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7013 echo "configure:7014: checking for inflate in -lgz" >&5
7014 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7016 xe_check_libs=" -lgz "
7017 cat > conftest.$ac_ext <<EOF
7018 #line 7019 "configure"
7019 #include "confdefs.h"
7020 /* Override any gcc2 internal prototype to avoid an error. */
7021 /* We use char because int might match the return type of a gcc2
7022 builtin and then its argument prototype would still apply. */
7029 if { (eval echo configure:7030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7031 eval "ac_cv_lib_$ac_lib_var=yes"
7033 echo "configure: failed program was:" >&5
7034 cat conftest.$ac_ext >&5
7036 eval "ac_cv_lib_$ac_lib_var=no"
7041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7042 echo "$ac_t""yes" 1>&6
7043 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7045 echo "$ac_t""no" 1>&6
7057 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7058 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7059 echo "configure:7060: checking for jpeglib.h" >&5
7061 cat > conftest.$ac_ext <<EOF
7062 #line 7063 "configure"
7063 #include "confdefs.h"
7064 #include <jpeglib.h>
7066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7067 { (eval echo configure:7068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7069 if test -z "$ac_err"; then
7071 eval "ac_cv_header_$ac_safe=yes"
7074 echo "configure: failed program was:" >&5
7075 cat conftest.$ac_ext >&5
7077 eval "ac_cv_header_$ac_safe=no"
7080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7081 echo "$ac_t""yes" 1>&6
7084 echo "$ac_t""no" 1>&6
7088 test -z "$with_jpeg" && {
7089 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7090 echo "configure:7091: checking for jpeg_destroy_decompress in -ljpeg" >&5
7091 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7093 xe_check_libs=" -ljpeg "
7094 cat > conftest.$ac_ext <<EOF
7095 #line 7096 "configure"
7096 #include "confdefs.h"
7097 /* Override any gcc2 internal prototype to avoid an error. */
7098 /* We use char because int might match the return type of a gcc2
7099 builtin and then its argument prototype would still apply. */
7100 char jpeg_destroy_decompress();
7103 jpeg_destroy_decompress()
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_lib_$ac_lib_var=yes"
7110 echo "configure: failed program was:" >&5
7111 cat conftest.$ac_ext >&5
7113 eval "ac_cv_lib_$ac_lib_var=no"
7118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7119 echo "$ac_t""yes" 1>&6
7122 echo "$ac_t""no" 1>&6
7127 test -z "$with_jpeg" && with_jpeg=yes
7128 if test "$with_jpeg" = "yes"; then
7129 { test "$extra_verbose" = "yes" && cat << \EOF
7132 cat >> confdefs.h <<\EOF
7137 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7141 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7142 echo "configure:7143: checking for pow" >&5
7144 cat > conftest.$ac_ext <<EOF
7145 #line 7146 "configure"
7146 #include "confdefs.h"
7147 /* System header to define __stub macros and hopefully few prototypes,
7148 which can conflict with char pow(); below. */
7150 /* Override any gcc2 internal prototype to avoid an error. */
7151 /* We use char because int might match the return type of a gcc2
7152 builtin and then its argument prototype would still apply. */
7157 /* The GNU C library defines this for functions which it implements
7158 to always fail with ENOSYS. Some functions are actually named
7159 something starting with __ and the normal name is an alias. */
7160 #if defined (__stub_pow) || defined (__stub___pow)
7168 if { (eval echo configure:7169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7170 eval "ac_cv_func_pow=yes"
7172 echo "configure: failed program was:" >&5
7173 cat conftest.$ac_ext >&5
7175 eval "ac_cv_func_pow=no"
7179 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7180 echo "$ac_t""yes" 1>&6
7183 echo "$ac_t""no" 1>&6
7187 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7188 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7189 echo "configure:7190: checking for png.h" >&5
7191 cat > conftest.$ac_ext <<EOF
7192 #line 7193 "configure"
7193 #include "confdefs.h"
7196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7197 { (eval echo configure:7198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7199 if test -z "$ac_err"; then
7201 eval "ac_cv_header_$ac_safe=yes"
7204 echo "configure: failed program was:" >&5
7205 cat conftest.$ac_ext >&5
7207 eval "ac_cv_header_$ac_safe=no"
7210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7211 echo "$ac_t""yes" 1>&6
7214 echo "$ac_t""no" 1>&6
7218 test -z "$with_png" && {
7219 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7220 echo "configure:7221: checking for png_read_image in -lpng" >&5
7221 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7223 xe_check_libs=" -lpng "
7224 cat > conftest.$ac_ext <<EOF
7225 #line 7226 "configure"
7226 #include "confdefs.h"
7227 /* Override any gcc2 internal prototype to avoid an error. */
7228 /* We use char because int might match the return type of a gcc2
7229 builtin and then its argument prototype would still apply. */
7230 char png_read_image();
7236 if { (eval echo configure:7237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7238 eval "ac_cv_lib_$ac_lib_var=yes"
7240 echo "configure: failed program was:" >&5
7241 cat conftest.$ac_ext >&5
7243 eval "ac_cv_lib_$ac_lib_var=no"
7248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7249 echo "$ac_t""yes" 1>&6
7252 echo "$ac_t""no" 1>&6
7257 if test -z "$with_png"; then
7258 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7259 echo "configure:7260: checking for workable png version information" >&5
7260 xe_check_libs="-lpng -lz"
7261 cat > conftest.$ac_ext <<EOF
7262 #line 7263 "configure"
7263 #include "confdefs.h"
7265 int main(int c, char **v) {
7266 if (c == 1) return 0;
7267 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7268 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7270 if { (eval echo configure:7271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7272 ./conftest dummy_arg; png_status=$?;
7273 if test "$png_status" = "0"; then
7277 if test "$png_status" = "1"; then
7278 png_problem="PNG library version and header file don't match!"
7279 elif test "$png_status" = "2"; then
7280 png_problem="PNG library version too old (pre 1.0.2)!"
7283 *** WARNING *** $png_problem
7284 I'm not touching that with a 10-foot pole!
7285 If you really want to use the installed version of libPNG, rerun
7286 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7290 echo "configure: failed program was:" >&5
7291 cat conftest.$ac_ext >&5
7297 echo "$ac_t""$with_png" 1>&6
7299 if test "$with_png" = "yes"; then
7300 { test "$extra_verbose" = "yes" && cat << \EOF
7303 cat >> confdefs.h <<\EOF
7308 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7311 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7312 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7313 echo "configure:7314: checking for tiffio.h" >&5
7315 cat > conftest.$ac_ext <<EOF
7316 #line 7317 "configure"
7317 #include "confdefs.h"
7320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7321 { (eval echo configure:7322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7322 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7323 if test -z "$ac_err"; then
7325 eval "ac_cv_header_$ac_safe=yes"
7328 echo "configure: failed program was:" >&5
7329 cat conftest.$ac_ext >&5
7331 eval "ac_cv_header_$ac_safe=no"
7334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7335 echo "$ac_t""yes" 1>&6
7338 echo "$ac_t""no" 1>&6
7342 test -z "$with_tiff" && {
7343 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7344 echo "configure:7345: checking for TIFFClientOpen in -ltiff" >&5
7345 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7347 xe_check_libs=" -ltiff "
7348 cat > conftest.$ac_ext <<EOF
7349 #line 7350 "configure"
7350 #include "confdefs.h"
7351 /* Override any gcc2 internal prototype to avoid an error. */
7352 /* We use char because int might match the return type of a gcc2
7353 builtin and then its argument prototype would still apply. */
7354 char TIFFClientOpen();
7360 if { (eval echo configure:7361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7362 eval "ac_cv_lib_$ac_lib_var=yes"
7364 echo "configure: failed program was:" >&5
7365 cat conftest.$ac_ext >&5
7367 eval "ac_cv_lib_$ac_lib_var=no"
7372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7373 echo "$ac_t""yes" 1>&6
7376 echo "$ac_t""no" 1>&6
7381 test -z "$with_tiff" && with_tiff=yes
7382 if test "$with_tiff" = "yes"; then
7383 { test "$extra_verbose" = "yes" && cat << \EOF
7386 cat >> confdefs.h <<\EOF
7391 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7396 if test "$with_x11" = "yes"; then
7398 echo "checking for X11 graphics libraries" 1>&6
7399 echo "configure:7400: checking for X11 graphics libraries" >&5
7402 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7403 echo "configure:7404: checking for XawScrollbarSetThumb in -lXaw" >&5
7404 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7406 xe_check_libs=" -lXaw "
7407 cat > conftest.$ac_ext <<EOF
7408 #line 7409 "configure"
7409 #include "confdefs.h"
7410 /* Override any gcc2 internal prototype to avoid an error. */
7411 /* We use char because int might match the return type of a gcc2
7412 builtin and then its argument prototype would still apply. */
7413 char XawScrollbarSetThumb();
7416 XawScrollbarSetThumb()
7419 if { (eval echo configure:7420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7421 eval "ac_cv_lib_$ac_lib_var=yes"
7423 echo "configure: failed program was:" >&5
7424 cat conftest.$ac_ext >&5
7426 eval "ac_cv_lib_$ac_lib_var=no"
7431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7432 echo "$ac_t""yes" 1>&6
7435 echo "$ac_t""no" 1>&6
7441 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7442 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7443 echo "configure:7444: checking for Xm/Xm.h" >&5
7445 cat > conftest.$ac_ext <<EOF
7446 #line 7447 "configure"
7447 #include "confdefs.h"
7450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7451 { (eval echo configure:7452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7453 if test -z "$ac_err"; then
7455 eval "ac_cv_header_$ac_safe=yes"
7458 echo "configure: failed program was:" >&5
7459 cat conftest.$ac_ext >&5
7461 eval "ac_cv_header_$ac_safe=no"
7464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7465 echo "$ac_t""yes" 1>&6
7467 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7468 echo "configure:7469: checking for XmStringFree in -lXm" >&5
7469 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7471 xe_check_libs=" -lXm "
7472 cat > conftest.$ac_ext <<EOF
7473 #line 7474 "configure"
7474 #include "confdefs.h"
7475 /* Override any gcc2 internal prototype to avoid an error. */
7476 /* We use char because int might match the return type of a gcc2
7477 builtin and then its argument prototype would still apply. */
7478 char XmStringFree();
7484 if { (eval echo configure:7485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7486 eval "ac_cv_lib_$ac_lib_var=yes"
7488 echo "configure: failed program was:" >&5
7489 cat conftest.$ac_ext >&5
7491 eval "ac_cv_lib_$ac_lib_var=no"
7496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7497 echo "$ac_t""yes" 1>&6
7500 echo "$ac_t""no" 1>&6
7506 echo "$ac_t""no" 1>&6
7511 if test "$have_motif" = "yes"; then
7512 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7513 echo "configure:7514: checking for Lesstif" >&5
7514 cat > conftest.$ac_ext <<EOF
7515 #line 7516 "configure"
7516 #include "confdefs.h"
7518 #ifdef LESSTIF_VERSION
7523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7524 egrep "yes" >/dev/null 2>&1; then
7533 echo "$ac_t""$have_lesstif" 1>&6
7538 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
7539 with_menubars="lucid" ;;
7541 case "$with_dialogs" in "" | "yes" | "lucid" )
7542 if test "$have_motif" = "yes"; then with_dialogs="motif"
7543 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
7544 else with_dialogs=no
7547 case "$with_scrollbars" in "" | "yes" )
7548 with_scrollbars="lucid" ;;
7551 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars"
7553 case "$all_widgets" in *athena* )
7554 { test "$extra_verbose" = "yes" && cat << \EOF
7555 Defining LWLIB_USES_ATHENA
7557 cat >> confdefs.h <<\EOF
7558 #define LWLIB_USES_ATHENA 1
7562 { test "$extra_verbose" = "yes" && cat << \EOF
7563 Defining NEED_ATHENA
7565 cat >> confdefs.h <<\EOF
7566 #define NEED_ATHENA 1
7570 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
7571 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
7574 case "$all_widgets" in *motif* )
7575 { test "$extra_verbose" = "yes" && cat << \EOF
7576 Defining LWLIB_USES_MOTIF
7578 cat >> confdefs.h <<\EOF
7579 #define LWLIB_USES_MOTIF 1
7583 { test "$extra_verbose" = "yes" && cat << \EOF
7586 cat >> confdefs.h <<\EOF
7587 #define NEED_MOTIF 1
7591 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
7595 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7596 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7597 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
7598 case "$all_widgets" in *lucid* )
7599 { test "$extra_verbose" = "yes" && cat << \EOF
7602 cat >> confdefs.h <<\EOF
7603 #define NEED_LUCID 1
7607 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
7612 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7613 Defining LWLIB_SCROLLBARS_ATHENA
7615 cat >> confdefs.h <<\EOF
7616 #define LWLIB_SCROLLBARS_ATHENA 1
7620 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7621 Defining LWLIB_DIALOGS_ATHENA
7623 cat >> confdefs.h <<\EOF
7624 #define LWLIB_DIALOGS_ATHENA 1
7628 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7629 Defining LWLIB_SCROLLBARS_ATHENA3D
7631 cat >> confdefs.h <<\EOF
7632 #define LWLIB_SCROLLBARS_ATHENA3D 1
7636 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7637 Defining LWLIB_DIALOGS_ATHENA3D
7639 cat >> confdefs.h <<\EOF
7640 #define LWLIB_DIALOGS_ATHENA3D 1
7645 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7646 Defining HAVE_MENUBARS
7648 cat >> confdefs.h <<\EOF
7649 #define HAVE_MENUBARS 1
7653 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7654 Defining HAVE_SCROLLBARS
7656 cat >> confdefs.h <<\EOF
7657 #define HAVE_SCROLLBARS 1
7661 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7662 Defining HAVE_DIALOGS
7664 cat >> confdefs.h <<\EOF
7665 #define HAVE_DIALOGS 1
7669 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7670 Defining HAVE_TOOLBARS
7672 cat >> confdefs.h <<\EOF
7673 #define HAVE_TOOLBARS 1
7678 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7679 Defining LWLIB_MENUBARS_LUCID
7681 cat >> confdefs.h <<\EOF
7682 #define LWLIB_MENUBARS_LUCID 1
7686 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7687 Defining LWLIB_SCROLLBARS_LUCID
7689 cat >> confdefs.h <<\EOF
7690 #define LWLIB_SCROLLBARS_LUCID 1
7695 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7696 Defining LWLIB_MENUBARS_MOTIF
7698 cat >> confdefs.h <<\EOF
7699 #define LWLIB_MENUBARS_MOTIF 1
7703 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7704 Defining LWLIB_SCROLLBARS_MOTIF
7706 cat >> confdefs.h <<\EOF
7707 #define LWLIB_SCROLLBARS_MOTIF 1
7711 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7712 Defining LWLIB_DIALOGS_MOTIF
7714 cat >> confdefs.h <<\EOF
7715 #define LWLIB_DIALOGS_MOTIF 1
7720 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
7721 echo " xemacs will be linked with \"menubar.o\""
7723 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
7724 echo " xemacs will be linked with \"scrollbar.o\""
7726 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
7727 echo " xemacs will be linked with \"dialog.o\""
7729 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
7730 echo " xemacs will be linked with \"toolbar.o\""
7733 if test "$with_x11" = "yes"; then
7734 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
7735 echo " xemacs will be linked with \"menubar-x.o\""
7737 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
7738 echo " xemacs will be linked with \"scrollbar-x.o\""
7740 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
7741 echo " xemacs will be linked with \"dialog-x.o\""
7743 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
7744 echo " xemacs will be linked with \"toolbar-x.o\""
7746 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
7747 echo " xemacs will be linked with \"gui-x.o\""
7750 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
7751 echo "Attempt to Build NAS sound without X"
7752 echo "Please remove NAS configuration or build with X"
7758 test -z "$with_mule" && with_mule=no
7759 test -z "$with_file_coding" && with_file_coding=no
7762 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
7763 { test "$extra_verbose" = "yes" && cat << \EOF
7764 Defining FILE_CODING
7766 cat >> confdefs.h <<\EOF
7767 #define FILE_CODING 1
7771 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
7772 echo " xemacs will be linked with \"file-coding.o\""
7776 if test "$with_mule" = "yes" ; then
7777 echo "checking for Mule-related features" 1>&6
7778 echo "configure:7779: checking for Mule-related features" >&5
7779 { test "$extra_verbose" = "yes" && cat << \EOF
7782 cat >> confdefs.h <<\EOF
7787 { test "$extra_verbose" = "yes" && cat << \EOF
7788 Defining FILE_CODING
7790 cat >> confdefs.h <<\EOF
7791 #define FILE_CODING 1
7795 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
7796 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
7799 for ac_hdr in libintl.h
7801 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7802 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7803 echo "configure:7804: checking for $ac_hdr" >&5
7805 cat > conftest.$ac_ext <<EOF
7806 #line 7807 "configure"
7807 #include "confdefs.h"
7810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7811 { (eval echo configure:7812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7813 if test -z "$ac_err"; then
7815 eval "ac_cv_header_$ac_safe=yes"
7818 echo "configure: failed program was:" >&5
7819 cat conftest.$ac_ext >&5
7821 eval "ac_cv_header_$ac_safe=no"
7824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7825 echo "$ac_t""yes" 1>&6
7826 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7827 { test "$extra_verbose" = "yes" && cat << EOF
7830 cat >> confdefs.h <<EOF
7831 #define $ac_tr_hdr 1
7836 echo "$ac_t""no" 1>&6
7841 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7842 echo "configure:7843: checking for strerror in -lintl" >&5
7843 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7845 xe_check_libs=" -lintl "
7846 cat > conftest.$ac_ext <<EOF
7847 #line 7848 "configure"
7848 #include "confdefs.h"
7849 /* Override any gcc2 internal prototype to avoid an error. */
7850 /* We use char because int might match the return type of a gcc2
7851 builtin and then its argument prototype would still apply. */
7858 if { (eval echo configure:7859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7860 eval "ac_cv_lib_$ac_lib_var=yes"
7862 echo "configure: failed program was:" >&5
7863 cat conftest.$ac_ext >&5
7865 eval "ac_cv_lib_$ac_lib_var=no"
7870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7871 echo "$ac_t""yes" 1>&6
7872 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7873 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7874 { test "$extra_verbose" = "yes" && cat << EOF
7877 cat >> confdefs.h <<EOF
7878 #define $ac_tr_lib 1
7882 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
7885 echo "$ac_t""no" 1>&6
7890 echo "checking for Mule input methods" 1>&6
7891 echo "configure:7892: checking for Mule input methods" >&5
7892 case "$with_xim" in "" | "yes" )
7893 echo "checking for XIM" 1>&6
7894 echo "configure:7895: checking for XIM" >&5
7896 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
7897 echo "configure:7898: checking for XOpenIM in -lX11" >&5
7898 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
7900 xe_check_libs=" -lX11 "
7901 cat > conftest.$ac_ext <<EOF
7902 #line 7903 "configure"
7903 #include "confdefs.h"
7904 /* Override any gcc2 internal prototype to avoid an error. */
7905 /* We use char because int might match the return type of a gcc2
7906 builtin and then its argument prototype would still apply. */
7913 if { (eval echo configure:7914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7915 eval "ac_cv_lib_$ac_lib_var=yes"
7917 echo "configure: failed program was:" >&5
7918 cat conftest.$ac_ext >&5
7920 eval "ac_cv_lib_$ac_lib_var=no"
7925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7926 echo "$ac_t""yes" 1>&6
7929 echo "$ac_t""no" 1>&6
7934 if test "$have_motif $have_lesstif" = "yes no"; then
7936 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7937 echo "configure:7938: checking for XmImMbLookupString in -lXm" >&5
7938 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7940 xe_check_libs=" -lXm "
7941 cat > conftest.$ac_ext <<EOF
7942 #line 7943 "configure"
7943 #include "confdefs.h"
7944 /* Override any gcc2 internal prototype to avoid an error. */
7945 /* We use char because int might match the return type of a gcc2
7946 builtin and then its argument prototype would still apply. */
7947 char XmImMbLookupString();
7950 XmImMbLookupString()
7953 if { (eval echo configure:7954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7955 eval "ac_cv_lib_$ac_lib_var=yes"
7957 echo "configure: failed program was:" >&5
7958 cat conftest.$ac_ext >&5
7960 eval "ac_cv_lib_$ac_lib_var=no"
7965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7966 echo "$ac_t""yes" 1>&6
7969 echo "$ac_t""no" 1>&6
7975 if test "$with_xim" != "no"; then
7976 { test "$extra_verbose" = "yes" && cat << \EOF
7979 cat >> confdefs.h <<\EOF
7984 if test "$with_xim" = "xlib"; then
7985 { test "$extra_verbose" = "yes" && cat << \EOF
7988 cat >> confdefs.h <<\EOF
7993 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
7994 echo " xemacs will be linked with \"input-method-xlib.o\""
7997 if test "$with_xim" = "motif"; then
7998 { test "$extra_verbose" = "yes" && cat << \EOF
8001 cat >> confdefs.h <<\EOF
8007 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
8008 echo " xemacs will be linked with \"input-method-motif.o\""
8011 if test "$with_xim" = "motif"; then
8016 if test "$with_xfs" = "yes" ; then
8017 echo "checking for XFontSet" 1>&6
8018 echo "configure:8019: checking for XFontSet" >&5
8020 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8021 echo "configure:8022: checking for XmbDrawString in -lX11" >&5
8022 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8024 xe_check_libs=" -lX11 "
8025 cat > conftest.$ac_ext <<EOF
8026 #line 8027 "configure"
8027 #include "confdefs.h"
8028 /* Override any gcc2 internal prototype to avoid an error. */
8029 /* We use char because int might match the return type of a gcc2
8030 builtin and then its argument prototype would still apply. */
8031 char XmbDrawString();
8037 if { (eval echo configure:8038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8039 eval "ac_cv_lib_$ac_lib_var=yes"
8041 echo "configure: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8044 eval "ac_cv_lib_$ac_lib_var=no"
8049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8050 echo "$ac_t""yes" 1>&6
8053 echo "$ac_t""no" 1>&6
8058 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
8059 { test "$extra_verbose" = "yes" && cat << \EOF
8060 Defining USE_XFONTSET
8062 cat >> confdefs.h <<\EOF
8063 #define USE_XFONTSET 1
8067 if test "$with_xim" = "no" ; then
8068 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
8069 echo " xemacs will be linked with \"input-method-xfs.o\""
8074 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8075 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8076 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8077 echo "configure:8078: checking for wnn/jllib.h" >&5
8079 cat > conftest.$ac_ext <<EOF
8080 #line 8081 "configure"
8081 #include "confdefs.h"
8082 #include <wnn/jllib.h>
8084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8085 { (eval echo configure:8086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8087 if test -z "$ac_err"; then
8089 eval "ac_cv_header_$ac_safe=yes"
8092 echo "configure: failed program was:" >&5
8093 cat conftest.$ac_ext >&5
8095 eval "ac_cv_header_$ac_safe=no"
8098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8099 echo "$ac_t""yes" 1>&6
8102 echo "$ac_t""no" 1>&6
8106 if test "$with_wnn" != "no"; then
8107 for ac_func in crypt
8109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8110 echo "configure:8111: checking for $ac_func" >&5
8112 cat > conftest.$ac_ext <<EOF
8113 #line 8114 "configure"
8114 #include "confdefs.h"
8115 /* System header to define __stub macros and hopefully few prototypes,
8116 which can conflict with char $ac_func(); below. */
8118 /* Override any gcc2 internal prototype to avoid an error. */
8119 /* We use char because int might match the return type of a gcc2
8120 builtin and then its argument prototype would still apply. */
8125 /* The GNU C library defines this for functions which it implements
8126 to always fail with ENOSYS. Some functions are actually named
8127 something starting with __ and the normal name is an alias. */
8128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8136 if { (eval echo configure:8137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8138 eval "ac_cv_func_$ac_func=yes"
8140 echo "configure: failed program was:" >&5
8141 cat conftest.$ac_ext >&5
8143 eval "ac_cv_func_$ac_func=no"
8147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8148 echo "$ac_t""yes" 1>&6
8149 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8150 { test "$extra_verbose" = "yes" && cat << EOF
8151 Defining $ac_tr_func
8153 cat >> confdefs.h <<EOF
8154 #define $ac_tr_func 1
8159 echo "$ac_t""no" 1>&6
8163 test "$ac_cv_func_crypt" != "yes" && {
8164 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8165 echo "configure:8166: checking for crypt in -lcrypt" >&5
8166 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8168 xe_check_libs=" -lcrypt "
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. */
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
8195 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8196 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8197 { test "$extra_verbose" = "yes" && cat << EOF
8200 cat >> confdefs.h <<EOF
8201 #define $ac_tr_lib 1
8205 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
8208 echo "$ac_t""no" 1>&6
8213 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8215 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8216 echo "configure:8217: checking for jl_dic_list_e in -lwnn" >&5
8217 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8219 xe_check_libs=" -lwnn "
8220 cat > conftest.$ac_ext <<EOF
8221 #line 8222 "configure"
8222 #include "confdefs.h"
8223 /* Override any gcc2 internal prototype to avoid an error. */
8224 /* We use char because int might match the return type of a gcc2
8225 builtin and then its argument prototype would still apply. */
8226 char jl_dic_list_e();
8232 if { (eval echo configure:8233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8234 eval "ac_cv_lib_$ac_lib_var=yes"
8236 echo "configure: failed program was:" >&5
8237 cat conftest.$ac_ext >&5
8239 eval "ac_cv_lib_$ac_lib_var=no"
8244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8245 echo "$ac_t""yes" 1>&6
8248 echo "$ac_t""no" 1>&6
8249 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8250 echo "configure:8251: checking for jl_dic_list_e in -lwnn4" >&5
8251 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8253 xe_check_libs=" -lwnn4 "
8254 cat > conftest.$ac_ext <<EOF
8255 #line 8256 "configure"
8256 #include "confdefs.h"
8257 /* Override any gcc2 internal prototype to avoid an error. */
8258 /* We use char because int might match the return type of a gcc2
8259 builtin and then its argument prototype would still apply. */
8260 char jl_dic_list_e();
8266 if { (eval echo configure:8267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8268 eval "ac_cv_lib_$ac_lib_var=yes"
8270 echo "configure: failed program was:" >&5
8271 cat conftest.$ac_ext >&5
8273 eval "ac_cv_lib_$ac_lib_var=no"
8278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8279 echo "$ac_t""yes" 1>&6
8282 echo "$ac_t""no" 1>&6
8283 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8284 echo "configure:8285: checking for jl_dic_list_e in -lwnn6" >&5
8285 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8287 xe_check_libs=" -lwnn6 "
8288 cat > conftest.$ac_ext <<EOF
8289 #line 8290 "configure"
8290 #include "confdefs.h"
8291 /* Override any gcc2 internal prototype to avoid an error. */
8292 /* We use char because int might match the return type of a gcc2
8293 builtin and then its argument prototype would still apply. */
8294 char jl_dic_list_e();
8300 if { (eval echo configure:8301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8302 eval "ac_cv_lib_$ac_lib_var=yes"
8304 echo "configure: failed program was:" >&5
8305 cat conftest.$ac_ext >&5
8307 eval "ac_cv_lib_$ac_lib_var=no"
8312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8313 echo "$ac_t""yes" 1>&6
8316 echo "$ac_t""no" 1>&6
8317 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8318 echo "configure:8319: checking for dic_list_e in -lwnn6_fromsrc" >&5
8319 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8321 xe_check_libs=" -lwnn6_fromsrc "
8322 cat > conftest.$ac_ext <<EOF
8323 #line 8324 "configure"
8324 #include "confdefs.h"
8325 /* Override any gcc2 internal prototype to avoid an error. */
8326 /* We use char because int might match the return type of a gcc2
8327 builtin and then its argument prototype would still apply. */
8334 if { (eval echo configure:8335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8336 eval "ac_cv_lib_$ac_lib_var=yes"
8338 echo "configure: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8341 eval "ac_cv_lib_$ac_lib_var=no"
8346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8347 echo "$ac_t""yes" 1>&6
8350 echo "$ac_t""no" 1>&6
8365 test -z "$with_wnn" && with_wnn=yes
8366 if test "$with_wnn" = "yes"; then
8367 { test "$extra_verbose" = "yes" && cat << \EOF
8370 cat >> confdefs.h <<\EOF
8375 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
8376 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
8377 echo " xemacs will be linked with \"mule-wnnfns.o\""
8379 if test "$with_wnn6" != "no"; then
8381 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8382 echo "configure:8383: checking for jl_fi_dic_list in -l$libwnn" >&5
8383 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8385 xe_check_libs=" -l$libwnn "
8386 cat > conftest.$ac_ext <<EOF
8387 #line 8388 "configure"
8388 #include "confdefs.h"
8389 /* Override any gcc2 internal prototype to avoid an error. */
8390 /* We use char because int might match the return type of a gcc2
8391 builtin and then its argument prototype would still apply. */
8392 char jl_fi_dic_list();
8398 if { (eval echo configure:8399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8400 eval "ac_cv_lib_$ac_lib_var=yes"
8402 echo "configure: failed program was:" >&5
8403 cat conftest.$ac_ext >&5
8405 eval "ac_cv_lib_$ac_lib_var=no"
8410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8411 echo "$ac_t""yes" 1>&6
8414 echo "$ac_t""no" 1>&6
8418 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8421 cat >> confdefs.h <<\EOF
8429 canna_includes_found=no
8430 if test "$with_canna" != "no"; then
8431 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8432 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8433 echo "configure:8434: checking for canna/jrkanji.h" >&5
8435 cat > conftest.$ac_ext <<EOF
8436 #line 8437 "configure"
8437 #include "confdefs.h"
8438 #include <canna/jrkanji.h>
8440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8441 { (eval echo configure:8442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8443 if test -z "$ac_err"; then
8445 eval "ac_cv_header_$ac_safe=yes"
8448 echo "configure: failed program was:" >&5
8449 cat conftest.$ac_ext >&5
8451 eval "ac_cv_header_$ac_safe=no"
8454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8455 echo "$ac_t""yes" 1>&6
8456 canna_includes_found=yes
8458 echo "$ac_t""no" 1>&6
8462 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
8463 -d "/usr/local/canna/include"; then
8464 save_c_switch_site="$c_switch_site"
8465 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8466 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8467 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8468 echo "configure:8469: checking for canna/jrkanji.h" >&5
8470 cat > conftest.$ac_ext <<EOF
8471 #line 8472 "configure"
8472 #include "confdefs.h"
8473 #include <canna/jrkanji.h>
8475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8476 { (eval echo configure:8477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8478 if test -z "$ac_err"; then
8480 eval "ac_cv_header_$ac_safe=yes"
8483 echo "configure: failed program was:" >&5
8484 cat conftest.$ac_ext >&5
8486 eval "ac_cv_header_$ac_safe=no"
8489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8490 echo "$ac_t""yes" 1>&6
8491 canna_includes_found=yes
8493 echo "$ac_t""no" 1>&6
8496 if test "$canna_includes_found" != "yes"; then
8497 c_switch_site="$save_c_switch_site"
8502 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8503 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8504 echo "configure:8505: checking for canna/RK.h" >&5
8506 cat > conftest.$ac_ext <<EOF
8507 #line 8508 "configure"
8508 #include "confdefs.h"
8509 #include <canna/RK.h>
8511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8512 { (eval echo configure:8513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8514 if test -z "$ac_err"; then
8516 eval "ac_cv_header_$ac_safe=yes"
8519 echo "configure: failed program was:" >&5
8520 cat conftest.$ac_ext >&5
8522 eval "ac_cv_header_$ac_safe=no"
8525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8526 echo "$ac_t""yes" 1>&6
8529 echo "$ac_t""no" 1>&6
8533 test -z "$with_canna" && {
8534 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8535 echo "configure:8536: checking for RkBgnBun in -lRKC" >&5
8536 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8538 xe_check_libs=" -lRKC "
8539 cat > conftest.$ac_ext <<EOF
8540 #line 8541 "configure"
8541 #include "confdefs.h"
8542 /* Override any gcc2 internal prototype to avoid an error. */
8543 /* We use char because int might match the return type of a gcc2
8544 builtin and then its argument prototype would still apply. */
8551 if { (eval echo configure:8552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8553 eval "ac_cv_lib_$ac_lib_var=yes"
8555 echo "configure: failed program was:" >&5
8556 cat conftest.$ac_ext >&5
8558 eval "ac_cv_lib_$ac_lib_var=no"
8563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8564 echo "$ac_t""yes" 1>&6
8567 echo "$ac_t""no" 1>&6
8572 test -z "$with_canna" && {
8573 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8574 echo "configure:8575: checking for jrKanjiControl in -lcanna" >&5
8575 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8577 xe_check_libs=" -lcanna "
8578 cat > conftest.$ac_ext <<EOF
8579 #line 8580 "configure"
8580 #include "confdefs.h"
8581 /* Override any gcc2 internal prototype to avoid an error. */
8582 /* We use char because int might match the return type of a gcc2
8583 builtin and then its argument prototype would still apply. */
8584 char jrKanjiControl();
8590 if { (eval echo configure:8591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8592 eval "ac_cv_lib_$ac_lib_var=yes"
8594 echo "configure: failed program was:" >&5
8595 cat conftest.$ac_ext >&5
8597 eval "ac_cv_lib_$ac_lib_var=no"
8602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8603 echo "$ac_t""yes" 1>&6
8606 echo "$ac_t""no" 1>&6
8611 test -z "$with_canna" && with_canna=yes
8612 if test "$with_canna" = "yes"; then
8613 { test "$extra_verbose" = "yes" && cat << \EOF
8616 cat >> confdefs.h <<\EOF
8617 #define HAVE_CANNA 1
8621 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
8622 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
8623 echo " xemacs will be linked with \"mule-canna.o\""
8627 else for feature in xim canna wnn; do
8628 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
8629 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
8631 eval "with_${feature}=no"
8635 if test "$need_motif" = "yes" ; then
8636 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8638 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8639 echo "configure:8640: checking for layout_object_getvalue in -li18n" >&5
8640 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8642 xe_check_libs=" -li18n "
8643 cat > conftest.$ac_ext <<EOF
8644 #line 8645 "configure"
8645 #include "confdefs.h"
8646 /* Override any gcc2 internal prototype to avoid an error. */
8647 /* We use char because int might match the return type of a gcc2
8648 builtin and then its argument prototype would still apply. */
8649 char layout_object_getvalue();
8652 layout_object_getvalue()
8655 if { (eval echo configure:8656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8657 eval "ac_cv_lib_$ac_lib_var=yes"
8659 echo "configure: failed program was:" >&5
8660 cat conftest.$ac_ext >&5
8662 eval "ac_cv_lib_$ac_lib_var=no"
8667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8668 echo "$ac_t""yes" 1>&6
8669 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
8671 echo "$ac_t""no" 1>&6
8676 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
8677 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8678 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8680 runpath="" runpath_dirs=""
8681 if test -n "$LD_RUN_PATH"; then
8682 runpath="$LD_RUN_PATH"
8683 elif test "$GCC" = "yes"; then
8684 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
8685 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
8686 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
8687 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
8688 case "$arg" in P,* | -L* | -R* )
8689 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
8691 xe_runpath_dir="$dir"
8692 test "$xe_runpath_dir" != "/lib" -a \
8693 "$xe_runpath_dir" != "/usr/lib" -a \
8694 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8695 eval "$xe_add_unique_runpath_dir"
8700 ld_switch_run="$ld_switch_run_save"
8703 for arg in $ld_switch_site $ld_switch_x_site; do
8704 case "$arg" in -L*) {
8705 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
8706 test "$xe_runpath_dir" != "/lib" -a \
8707 "$xe_runpath_dir" != "/usr/lib" -a \
8708 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8709 eval "$xe_add_unique_runpath_dir"
8712 if test "$opsys $need_motif" = "sol2 yes"; then
8713 xe_runpath_dir="/opt/SUNWdt/lib";
8714 eval "$xe_add_unique_runpath_dir";
8717 if test -n "$runpath"; then
8718 ld_switch_run="${dash_r}${runpath}"
8720 if test "$GCC" = "yes"; then
8721 set x $ld_switch_run; shift; ld_switch_run=""
8722 while test -n "$1"; do
8724 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8725 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
8727 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
8732 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
8738 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
8740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8741 echo "configure:8742: checking for $ac_func" >&5
8743 cat > conftest.$ac_ext <<EOF
8744 #line 8745 "configure"
8745 #include "confdefs.h"
8746 /* System header to define __stub macros and hopefully few prototypes,
8747 which can conflict with char $ac_func(); below. */
8749 /* Override any gcc2 internal prototype to avoid an error. */
8750 /* We use char because int might match the return type of a gcc2
8751 builtin and then its argument prototype would still apply. */
8756 /* The GNU C library defines this for functions which it implements
8757 to always fail with ENOSYS. Some functions are actually named
8758 something starting with __ and the normal name is an alias. */
8759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8767 if { (eval echo configure:8768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8769 eval "ac_cv_func_$ac_func=yes"
8771 echo "configure: failed program was:" >&5
8772 cat conftest.$ac_ext >&5
8774 eval "ac_cv_func_$ac_func=no"
8778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8779 echo "$ac_t""yes" 1>&6
8780 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8781 { test "$extra_verbose" = "yes" && cat << EOF
8782 Defining $ac_tr_func
8784 cat >> confdefs.h <<EOF
8785 #define $ac_tr_func 1
8790 echo "$ac_t""no" 1>&6
8797 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8798 echo " xemacs will be linked with \"realpath.o\""
8801 case "$canonical" in
8802 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8803 echo " xemacs will be linked with \"realpath.o\""
8805 * ) for ac_func in realpath
8807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8808 echo "configure:8809: checking for $ac_func" >&5
8810 cat > conftest.$ac_ext <<EOF
8811 #line 8812 "configure"
8812 #include "confdefs.h"
8813 /* System header to define __stub macros and hopefully few prototypes,
8814 which can conflict with char $ac_func(); below. */
8816 /* Override any gcc2 internal prototype to avoid an error. */
8817 /* We use char because int might match the return type of a gcc2
8818 builtin and then its argument prototype would still apply. */
8823 /* The GNU C library defines this for functions which it implements
8824 to always fail with ENOSYS. Some functions are actually named
8825 something starting with __ and the normal name is an alias. */
8826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8834 if { (eval echo configure:8835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8836 eval "ac_cv_func_$ac_func=yes"
8838 echo "configure: failed program was:" >&5
8839 cat conftest.$ac_ext >&5
8841 eval "ac_cv_func_$ac_func=no"
8845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8846 echo "$ac_t""yes" 1>&6
8847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8848 { test "$extra_verbose" = "yes" && cat << EOF
8849 Defining $ac_tr_func
8851 cat >> confdefs.h <<EOF
8852 #define $ac_tr_func 1
8857 echo "$ac_t""no" 1>&6
8861 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8862 echo " xemacs will be linked with \"realpath.o\""
8867 for ac_func in getloadavg
8869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8870 echo "configure:8871: checking for $ac_func" >&5
8872 cat > conftest.$ac_ext <<EOF
8873 #line 8874 "configure"
8874 #include "confdefs.h"
8875 /* System header to define __stub macros and hopefully few prototypes,
8876 which can conflict with char $ac_func(); below. */
8878 /* Override any gcc2 internal prototype to avoid an error. */
8879 /* We use char because int might match the return type of a gcc2
8880 builtin and then its argument prototype would still apply. */
8885 /* The GNU C library defines this for functions which it implements
8886 to always fail with ENOSYS. Some functions are actually named
8887 something starting with __ and the normal name is an alias. */
8888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8896 if { (eval echo configure:8897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8898 eval "ac_cv_func_$ac_func=yes"
8900 echo "configure: failed program was:" >&5
8901 cat conftest.$ac_ext >&5
8903 eval "ac_cv_func_$ac_func=no"
8907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8908 echo "$ac_t""yes" 1>&6
8909 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8910 { test "$extra_verbose" = "yes" && cat << EOF
8911 Defining $ac_tr_func
8913 cat >> confdefs.h <<EOF
8914 #define $ac_tr_func 1
8919 echo "$ac_t""no" 1>&6
8924 if test "$ac_cv_func_getloadavg" != "yes"
8926 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
8927 echo " xemacs will be linked with \"getloadavg.o\""
8931 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
8932 echo "configure:8933: checking for kstat_open in -lkstat" >&5
8933 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
8935 xe_check_libs=" -lkstat "
8936 cat > conftest.$ac_ext <<EOF
8937 #line 8938 "configure"
8938 #include "confdefs.h"
8939 /* Override any gcc2 internal prototype to avoid an error. */
8940 /* We use char because int might match the return type of a gcc2
8941 builtin and then its argument prototype would still apply. */
8948 if { (eval echo configure:8949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8950 eval "ac_cv_lib_$ac_lib_var=yes"
8952 echo "configure: failed program was:" >&5
8953 cat conftest.$ac_ext >&5
8955 eval "ac_cv_lib_$ac_lib_var=no"
8960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8961 echo "$ac_t""yes" 1>&6
8962 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8963 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8964 { test "$extra_verbose" = "yes" && cat << EOF
8967 cat >> confdefs.h <<EOF
8968 #define $ac_tr_lib 1
8972 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
8975 echo "$ac_t""no" 1>&6
8981 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
8982 echo "configure:8983: checking for kvm_read in -lkvm" >&5
8983 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
8985 xe_check_libs=" -lkvm "
8986 cat > conftest.$ac_ext <<EOF
8987 #line 8988 "configure"
8988 #include "confdefs.h"
8989 /* Override any gcc2 internal prototype to avoid an error. */
8990 /* We use char because int might match the return type of a gcc2
8991 builtin and then its argument prototype would still apply. */
8998 if { (eval echo configure:8999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9000 eval "ac_cv_lib_$ac_lib_var=yes"
9002 echo "configure: failed program was:" >&5
9003 cat conftest.$ac_ext >&5
9005 eval "ac_cv_lib_$ac_lib_var=no"
9010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9011 echo "$ac_t""yes" 1>&6
9012 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9013 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9014 { test "$extra_verbose" = "yes" && cat << EOF
9017 cat >> confdefs.h <<EOF
9018 #define $ac_tr_lib 1
9022 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
9025 echo "$ac_t""no" 1>&6
9031 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9032 echo "configure:9033: checking whether netdb declares h_errno" >&5
9033 cat > conftest.$ac_ext <<EOF
9034 #line 9035 "configure"
9035 #include "confdefs.h"
9041 if { (eval echo configure:9042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9043 echo "$ac_t""yes" 1>&6
9044 { test "$extra_verbose" = "yes" && cat << \EOF
9045 Defining HAVE_H_ERRNO
9047 cat >> confdefs.h <<\EOF
9048 #define HAVE_H_ERRNO 1
9053 echo "configure: failed program was:" >&5
9054 cat conftest.$ac_ext >&5
9056 echo "$ac_t""no" 1>&6
9060 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9061 echo "configure:9062: checking for sigsetjmp" >&5
9062 cat > conftest.$ac_ext <<EOF
9063 #line 9064 "configure"
9064 #include "confdefs.h"
9067 sigjmp_buf bar; sigsetjmp (bar, 0);
9070 if { (eval echo configure:9071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9072 echo "$ac_t""yes" 1>&6
9073 { test "$extra_verbose" = "yes" && cat << \EOF
9074 Defining HAVE_SIGSETJMP
9076 cat >> confdefs.h <<\EOF
9077 #define HAVE_SIGSETJMP 1
9082 echo "configure: failed program was:" >&5
9083 cat conftest.$ac_ext >&5
9085 echo "$ac_t""no" 1>&6
9089 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9090 echo "configure:9091: checking whether localtime caches TZ" >&5
9092 if test "$ac_cv_func_tzset" = "yes"; then
9093 cat > conftest.$ac_ext <<EOF
9094 #line 9095 "configure"
9095 #include "confdefs.h"
9098 # include <stdlib.h>
9100 extern char **environ;
9104 for (to = from = environ; (*to = *from); from++)
9105 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
9108 char TZ_GMT0[] = "TZ=GMT0";
9109 char TZ_PST8[] = "TZ=PST8";
9112 time_t now = time ((time_t *) 0);
9113 int hour_GMT0, hour_unset;
9114 if (putenv (TZ_GMT0) != 0)
9116 hour_GMT0 = localtime (&now)->tm_hour;
9118 hour_unset = localtime (&now)->tm_hour;
9119 if (putenv (TZ_PST8) != 0)
9121 if (localtime (&now)->tm_hour == hour_GMT0)
9124 if (localtime (&now)->tm_hour != hour_unset)
9129 if { (eval echo configure:9130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9131 emacs_cv_localtime_cache=no
9134 echo "configure: failed program was:" >&5
9135 cat conftest.$ac_ext >&5
9137 emacs_cv_localtime_cache=yes
9141 # If we lack tzset, report that localtime does not cache TZ,
9142 # since we can't invalidate the cache if we don't have tzset.
9143 emacs_cv_localtime_cache=no
9145 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
9146 if test $emacs_cv_localtime_cache = yes; then
9147 { test "$extra_verbose" = "yes" && cat << \EOF
9148 Defining LOCALTIME_CACHE
9150 cat >> confdefs.h <<\EOF
9151 #define LOCALTIME_CACHE 1
9157 if test "$HAVE_TIMEVAL" = "yes"; then
9158 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9159 echo "configure:9160: checking whether gettimeofday accepts one or two arguments" >&5
9160 cat > conftest.$ac_ext <<EOF
9161 #line 9162 "configure"
9162 #include "confdefs.h"
9164 #ifdef TIME_WITH_SYS_TIME
9165 #include <sys/time.h>
9168 #ifdef HAVE_SYS_TIME_H
9169 #include <sys/time.h>
9177 struct timeval time;
9178 struct timezone dummy;
9179 gettimeofday (&time, &dummy);
9183 if { (eval echo configure:9184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9185 echo "$ac_t""two" 1>&6
9187 echo "configure: failed program was:" >&5
9188 cat conftest.$ac_ext >&5
9190 echo "$ac_t""one" 1>&6
9191 { test "$extra_verbose" = "yes" && cat << \EOF
9192 Defining GETTIMEOFDAY_ONE_ARGUMENT
9194 cat >> confdefs.h <<\EOF
9195 #define GETTIMEOFDAY_ONE_ARGUMENT 1
9204 echo $ac_n "checking for inline""... $ac_c" 1>&6
9205 echo "configure:9206: checking for inline" >&5
9208 for ac_kw in inline __inline__ __inline; do
9209 cat > conftest.$ac_ext <<EOF
9210 #line 9211 "configure"
9211 #include "confdefs.h"
9217 if { (eval echo configure:9218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9219 ac_cv_c_inline=$ac_kw; break
9221 echo "configure: failed program was:" >&5
9222 cat conftest.$ac_ext >&5
9228 echo "$ac_t""$ac_cv_c_inline" 1>&6
9229 case "$ac_cv_c_inline" in
9231 no) { test "$extra_verbose" = "yes" && cat << \EOF
9234 cat >> confdefs.h <<\EOF
9239 *) { test "$extra_verbose" = "yes" && cat << EOF
9240 Defining inline = $ac_cv_c_inline
9242 cat >> confdefs.h <<EOF
9243 #define inline $ac_cv_c_inline
9249 if test "$ac_cv_c_inline" != "no"; then
9250 { test "$extra_verbose" = "yes" && cat << \EOF
9251 Defining HAVE_INLINE
9253 cat >> confdefs.h <<\EOF
9254 #define HAVE_INLINE 1
9258 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
9259 echo " xemacs will be linked with \"inline.o\""
9264 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9265 # for constant arguments. Useless!
9266 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9267 echo "configure:9268: checking for working alloca.h" >&5
9269 cat > conftest.$ac_ext <<EOF
9270 #line 9271 "configure"
9271 #include "confdefs.h"
9274 char *p = alloca(2 * sizeof(int));
9277 if { (eval echo configure:9278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9279 ac_cv_header_alloca_h=yes
9281 echo "configure: failed program was:" >&5
9282 cat conftest.$ac_ext >&5
9284 ac_cv_header_alloca_h=no
9288 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
9289 if test $ac_cv_header_alloca_h = yes; then
9290 { test "$extra_verbose" = "yes" && cat << \EOF
9291 Defining HAVE_ALLOCA_H
9293 cat >> confdefs.h <<\EOF
9294 #define HAVE_ALLOCA_H 1
9300 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9301 echo "configure:9302: checking for alloca" >&5
9303 cat > conftest.$ac_ext <<EOF
9304 #line 9305 "configure"
9305 #include "confdefs.h"
9308 # define alloca __builtin_alloca
9311 # include <malloc.h>
9312 # define alloca _alloca
9315 # include <alloca.h>
9320 # ifndef alloca /* predefined by HP cc +Olibcalls */
9329 char *p = (char *) alloca(1);
9332 if { (eval echo configure:9333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9334 ac_cv_func_alloca_works=yes
9336 echo "configure: failed program was:" >&5
9337 cat conftest.$ac_ext >&5
9339 ac_cv_func_alloca_works=no
9343 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
9344 if test $ac_cv_func_alloca_works = yes; then
9345 { test "$extra_verbose" = "yes" && cat << \EOF
9346 Defining HAVE_ALLOCA
9348 cat >> confdefs.h <<\EOF
9349 #define HAVE_ALLOCA 1
9355 if test $ac_cv_func_alloca_works = no; then
9356 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9357 # that cause trouble. Some versions do not even contain alloca or
9358 # contain a buggy version. If you still want to use their alloca,
9359 # use ar to extract alloca.o from them instead of compiling alloca.c.
9360 ALLOCA=alloca.${ac_objext}
9361 { test "$extra_verbose" = "yes" && cat << \EOF
9364 cat >> confdefs.h <<\EOF
9370 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9371 echo "configure:9372: checking whether alloca needs Cray hooks" >&5
9373 cat > conftest.$ac_ext <<EOF
9374 #line 9375 "configure"
9375 #include "confdefs.h"
9376 #if defined(CRAY) && ! defined(CRAY2)
9383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9384 egrep "webecray" >/dev/null 2>&1; then
9394 echo "$ac_t""$ac_cv_os_cray" 1>&6
9395 if test $ac_cv_os_cray = yes; then
9396 for ac_func in _getb67 GETB67 getb67; do
9397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9398 echo "configure:9399: checking for $ac_func" >&5
9400 cat > conftest.$ac_ext <<EOF
9401 #line 9402 "configure"
9402 #include "confdefs.h"
9403 /* System header to define __stub macros and hopefully few prototypes,
9404 which can conflict with char $ac_func(); below. */
9406 /* Override any gcc2 internal prototype to avoid an error. */
9407 /* We use char because int might match the return type of a gcc2
9408 builtin and then its argument prototype would still apply. */
9413 /* The GNU C library defines this for functions which it implements
9414 to always fail with ENOSYS. Some functions are actually named
9415 something starting with __ and the normal name is an alias. */
9416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9424 if { (eval echo configure:9425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9426 eval "ac_cv_func_$ac_func=yes"
9428 echo "configure: failed program was:" >&5
9429 cat conftest.$ac_ext >&5
9431 eval "ac_cv_func_$ac_func=no"
9435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9436 echo "$ac_t""yes" 1>&6
9437 { test "$extra_verbose" = "yes" && cat << EOF
9438 Defining CRAY_STACKSEG_END = $ac_func
9440 cat >> confdefs.h <<EOF
9441 #define CRAY_STACKSEG_END $ac_func
9447 echo "$ac_t""no" 1>&6
9453 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9454 echo "configure:9455: checking stack direction for C alloca" >&5
9456 cat > conftest.$ac_ext <<EOF
9457 #line 9458 "configure"
9458 #include "confdefs.h"
9459 find_stack_direction ()
9461 static char *addr = 0;
9466 return find_stack_direction ();
9469 return (&dummy > addr) ? 1 : -1;
9473 exit (find_stack_direction() < 0);
9476 if { (eval echo configure:9477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9478 ac_cv_c_stack_direction=1
9481 echo "configure: failed program was:" >&5
9482 cat conftest.$ac_ext >&5
9484 ac_cv_c_stack_direction=-1
9488 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
9489 { test "$extra_verbose" = "yes" && cat << EOF
9490 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
9492 cat >> confdefs.h <<EOF
9493 #define STACK_DIRECTION $ac_cv_c_stack_direction
9499 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
9500 echo " xemacs will be linked with \"$ALLOCA\""
9503 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9504 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9505 echo "configure:9506: checking for vfork.h" >&5
9507 cat > conftest.$ac_ext <<EOF
9508 #line 9509 "configure"
9509 #include "confdefs.h"
9512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9513 { (eval echo configure:9514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9515 if test -z "$ac_err"; then
9517 eval "ac_cv_header_$ac_safe=yes"
9520 echo "configure: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9523 eval "ac_cv_header_$ac_safe=no"
9526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9527 echo "$ac_t""yes" 1>&6
9528 { test "$extra_verbose" = "yes" && cat << \EOF
9529 Defining HAVE_VFORK_H
9531 cat >> confdefs.h <<\EOF
9532 #define HAVE_VFORK_H 1
9537 echo "$ac_t""no" 1>&6
9540 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9541 echo "configure:9542: checking for working vfork" >&5
9543 cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure"
9545 #include "confdefs.h"
9546 /* Thanks to Paul Eggert for this test. */
9548 #include <sys/types.h>
9549 #include <sys/stat.h>
9550 #ifdef HAVE_UNISTD_H
9556 /* On some sparc systems, changes by the child to local and incoming
9557 argument registers are propagated back to the parent.
9558 The compiler is told about this with #include <vfork.h>,
9559 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
9560 Test for this by using a static variable whose address
9561 is put into a register that is clobbered by the vfork. */
9564 sparc_address_test (int arg)
9566 sparc_address_test (arg) int arg;
9584 pid_t parent = getpid ();
9587 sparc_address_test ();
9592 /* Here is another test for sparc vfork register problems.
9593 This test uses lots of local variables, at least
9594 as many local variables as main has allocated so far
9595 including compiler temporaries. 4 locals are enough for
9596 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
9597 A buggy compiler should reuse the register of parent
9598 for one of the local variables, since it will think that
9599 parent can't possibly be used any more in this routine.
9600 Assigning to the local variable will thus munge parent
9601 in the parent process. */
9603 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9604 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9605 /* Convince the compiler that p..p7 are live; otherwise, it might
9606 use the same hardware register for all 8 local variables. */
9607 if (p != p1 || p != p2 || p != p3 || p != p4
9608 || p != p5 || p != p6 || p != p7)
9611 /* On some systems (e.g. IRIX 3.3),
9612 vfork doesn't separate parent from child file descriptors.
9613 If the child closes a descriptor before it execs or exits,
9614 this munges the parent's descriptor as well.
9615 Test for this by closing stdout in the child. */
9616 _exit(close(fileno(stdout)) != 0);
9621 while (wait(&status) != child)
9624 /* Was there some problem with vforking? */
9627 /* Did the child fail? (This shouldn't happen.) */
9630 /* Did the vfork/compiler bug occur? */
9631 || parent != getpid()
9633 /* Did the file descriptor bug occur? */
9634 || fstat(fileno(stdout), &st) != 0
9639 if { (eval echo configure:9640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9641 ac_cv_func_vfork_works=yes
9644 echo "configure: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9647 ac_cv_func_vfork_works=no
9651 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
9652 if test $ac_cv_func_vfork_works = no; then
9653 { test "$extra_verbose" = "yes" && cat << \EOF
9654 Defining vfork = fork
9656 cat >> confdefs.h <<\EOF
9664 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9665 echo "configure:9666: checking for working strcoll" >&5
9667 cat > conftest.$ac_ext <<EOF
9668 #line 9669 "configure"
9669 #include "confdefs.h"
9673 exit (strcoll ("abc", "def") >= 0 ||
9674 strcoll ("ABC", "DEF") >= 0 ||
9675 strcoll ("123", "456") >= 0);
9678 if { (eval echo configure:9679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9680 ac_cv_func_strcoll_works=yes
9683 echo "configure: failed program was:" >&5
9684 cat conftest.$ac_ext >&5
9686 ac_cv_func_strcoll_works=no
9690 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
9691 if test $ac_cv_func_strcoll_works = yes; then
9692 { test "$extra_verbose" = "yes" && cat << \EOF
9693 Defining HAVE_STRCOLL
9695 cat >> confdefs.h <<\EOF
9696 #define HAVE_STRCOLL 1
9703 for ac_func in getpgrp
9705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9706 echo "configure:9707: checking for $ac_func" >&5
9708 cat > conftest.$ac_ext <<EOF
9709 #line 9710 "configure"
9710 #include "confdefs.h"
9711 /* System header to define __stub macros and hopefully few prototypes,
9712 which can conflict with char $ac_func(); below. */
9714 /* Override any gcc2 internal prototype to avoid an error. */
9715 /* We use char because int might match the return type of a gcc2
9716 builtin and then its argument prototype would still apply. */
9721 /* The GNU C library defines this for functions which it implements
9722 to always fail with ENOSYS. Some functions are actually named
9723 something starting with __ and the normal name is an alias. */
9724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9732 if { (eval echo configure:9733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9734 eval "ac_cv_func_$ac_func=yes"
9736 echo "configure: failed program was:" >&5
9737 cat conftest.$ac_ext >&5
9739 eval "ac_cv_func_$ac_func=no"
9743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9744 echo "$ac_t""yes" 1>&6
9745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9746 { test "$extra_verbose" = "yes" && cat << EOF
9747 Defining $ac_tr_func
9749 cat >> confdefs.h <<EOF
9750 #define $ac_tr_func 1
9755 echo "$ac_t""no" 1>&6
9759 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9760 echo "configure:9761: checking whether getpgrp takes no argument" >&5
9762 cat > conftest.$ac_ext <<EOF
9763 #line 9764 "configure"
9764 #include "confdefs.h"
9767 * If this system has a BSD-style getpgrp(),
9768 * which takes a pid argument, exit unsuccessfully.
9770 * Snarfed from Chet Ramey's bash pgrp.c test program
9773 #include <sys/types.h>
9776 int pg1, pg2, pg3, pg4;
9777 int ng, np, s, child;
9788 * If all of these values are the same, it's pretty sure that
9789 * we're on a system that ignores getpgrp's first argument.
9791 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
9797 else if (child == 0) {
9800 * If this is Sys V, this will not work; pgrp will be
9801 * set to np because setpgrp just changes a pgrp to be
9802 * the same as the pid.
9805 ng = getpgrp(0); /* Same result for Sys V and BSD */
9818 if { (eval echo configure:9819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9820 ac_cv_func_getpgrp_void=yes
9823 echo "configure: failed program was:" >&5
9824 cat conftest.$ac_ext >&5
9826 ac_cv_func_getpgrp_void=no
9831 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
9832 if test $ac_cv_func_getpgrp_void = yes; then
9833 { test "$extra_verbose" = "yes" && cat << \EOF
9834 Defining GETPGRP_VOID
9836 cat >> confdefs.h <<\EOF
9837 #define GETPGRP_VOID 1
9844 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9845 echo "configure:9846: checking for working mmap" >&5
9846 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9847 cat > conftest.$ac_ext <<EOF
9848 #line 9849 "configure"
9849 #include "confdefs.h"
9853 #include <sys/mman.h>
9855 #ifndef MAP_VARIABLE
9856 #define MAP_VARIABLE 0
9860 #define MAP_FAILED -1
9863 int main (int argc, char *argv[])
9867 #ifndef MAP_ANONYMOUS
9868 fd = open ("/dev/zero", O_RDWR);
9871 #define MAP_ANONYMOUS 0
9873 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
9874 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
9875 fd, 0) != (void *) MAP_FAILED)
9877 perror ("conftest: mmap failed");
9881 if { (eval echo configure:9882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9886 echo "configure: failed program was:" >&5
9887 cat conftest.$ac_ext >&5
9893 echo "$ac_t""$have_mmap" 1>&6
9894 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9897 cat >> confdefs.h <<\EOF
9902 for ac_hdr in unistd.h
9904 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9905 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9906 echo "configure:9907: checking for $ac_hdr" >&5
9908 cat > conftest.$ac_ext <<EOF
9909 #line 9910 "configure"
9910 #include "confdefs.h"
9913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9914 { (eval echo configure:9915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9916 if test -z "$ac_err"; then
9918 eval "ac_cv_header_$ac_safe=yes"
9921 echo "configure: failed program was:" >&5
9922 cat conftest.$ac_ext >&5
9924 eval "ac_cv_header_$ac_safe=no"
9927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9928 echo "$ac_t""yes" 1>&6
9929 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9930 { test "$extra_verbose" = "yes" && cat << EOF
9933 cat >> confdefs.h <<EOF
9934 #define $ac_tr_hdr 1
9939 echo "$ac_t""no" 1>&6
9943 for ac_func in getpagesize
9945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9946 echo "configure:9947: checking for $ac_func" >&5
9948 cat > conftest.$ac_ext <<EOF
9949 #line 9950 "configure"
9950 #include "confdefs.h"
9951 /* System header to define __stub macros and hopefully few prototypes,
9952 which can conflict with char $ac_func(); below. */
9954 /* Override any gcc2 internal prototype to avoid an error. */
9955 /* We use char because int might match the return type of a gcc2
9956 builtin and then its argument prototype would still apply. */
9961 /* The GNU C library defines this for functions which it implements
9962 to always fail with ENOSYS. Some functions are actually named
9963 something starting with __ and the normal name is an alias. */
9964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9972 if { (eval echo configure:9973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9974 eval "ac_cv_func_$ac_func=yes"
9976 echo "configure: failed program was:" >&5
9977 cat conftest.$ac_ext >&5
9979 eval "ac_cv_func_$ac_func=no"
9983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9984 echo "$ac_t""yes" 1>&6
9985 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9986 { test "$extra_verbose" = "yes" && cat << EOF
9987 Defining $ac_tr_func
9989 cat >> confdefs.h <<EOF
9990 #define $ac_tr_func 1
9995 echo "$ac_t""no" 1>&6
9999 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10000 echo "configure:10001: checking for working mmap" >&5
10002 cat > conftest.$ac_ext <<EOF
10003 #line 10004 "configure"
10004 #include "confdefs.h"
10006 /* Thanks to Mike Haertel and Jim Avera for this test.
10007 Here is a matrix of mmap possibilities:
10008 mmap private not fixed
10009 mmap private fixed at somewhere currently unmapped
10010 mmap private fixed at somewhere already mapped
10011 mmap shared not fixed
10012 mmap shared fixed at somewhere currently unmapped
10013 mmap shared fixed at somewhere already mapped
10014 For private mappings, we should verify that changes cannot be read()
10015 back from the file, nor mmap's back from the file at a different
10016 address. (There have been systems where private was not correctly
10017 implemented like the infamous i386 svr4.0, and systems where the
10018 VM page cache was not coherent with the filesystem buffer cache
10019 like early versions of FreeBSD and possibly contemporary NetBSD.)
10020 For shared mappings, we should conversely verify that changes get
10021 propogated back to all the places they're supposed to be.
10023 Grep wants private fixed already mapped.
10024 The main things grep needs to know about mmap are:
10025 * does it exist and is it safe to write into the mmap'd area
10026 * how to use it (BSD variants) */
10027 #include <sys/types.h>
10029 #include <sys/mman.h>
10031 /* This mess was copied from the GNU getpagesize.h. */
10032 #ifndef HAVE_GETPAGESIZE
10033 # ifdef HAVE_UNISTD_H
10034 # include <unistd.h>
10037 /* Assume that all systems that can run configure have sys/param.h. */
10038 # ifndef HAVE_SYS_PARAM_H
10039 # define HAVE_SYS_PARAM_H 1
10042 # ifdef _SC_PAGESIZE
10043 # define getpagesize() sysconf(_SC_PAGESIZE)
10044 # else /* no _SC_PAGESIZE */
10045 # ifdef HAVE_SYS_PARAM_H
10046 # include <sys/param.h>
10047 # ifdef EXEC_PAGESIZE
10048 # define getpagesize() EXEC_PAGESIZE
10049 # else /* no EXEC_PAGESIZE */
10051 # define getpagesize() NBPG * CLSIZE
10054 # endif /* no CLSIZE */
10055 # else /* no NBPG */
10057 # define getpagesize() NBPC
10058 # else /* no NBPC */
10060 # define getpagesize() PAGESIZE
10061 # endif /* PAGESIZE */
10062 # endif /* no NBPC */
10063 # endif /* no NBPG */
10064 # endif /* no EXEC_PAGESIZE */
10065 # else /* no HAVE_SYS_PARAM_H */
10066 # define getpagesize() 8192 /* punt totally */
10067 # endif /* no HAVE_SYS_PARAM_H */
10068 # endif /* no _SC_PAGESIZE */
10070 #endif /* no HAVE_GETPAGESIZE */
10073 extern "C" { void *malloc(unsigned); }
10081 char *data, *data2, *data3;
10085 pagesize = getpagesize();
10088 * First, make a file with some known garbage in it.
10090 data = malloc(pagesize);
10093 for (i = 0; i < pagesize; ++i)
10094 *(data + i) = rand();
10096 fd = creat("conftestmmap", 0600);
10099 if (write(fd, data, pagesize) != pagesize)
10104 * Next, try to mmap the file at a fixed address which
10105 * already has something else allocated at it. If we can,
10106 * also make sure that we see the same garbage.
10108 fd = open("conftestmmap", O_RDWR);
10111 data2 = malloc(2 * pagesize);
10114 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
10115 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
10116 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10118 for (i = 0; i < pagesize; ++i)
10119 if (*(data + i) != *(data2 + i))
10123 * Finally, make sure that changes to the mapped area
10124 * do not percolate back to the file as seen by read().
10125 * (This is a bug on some variants of i386 svr4.0.)
10127 for (i = 0; i < pagesize; ++i)
10128 *(data2 + i) = *(data2 + i) + 1;
10129 data3 = malloc(pagesize);
10132 if (read(fd, data3, pagesize) != pagesize)
10134 for (i = 0; i < pagesize; ++i)
10135 if (*(data + i) != *(data3 + i))
10138 unlink("conftestmmap");
10143 if { (eval echo configure:10144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10145 ac_cv_func_mmap_fixed_mapped=yes
10148 echo "configure: failed program was:" >&5
10149 cat conftest.$ac_ext >&5
10151 ac_cv_func_mmap_fixed_mapped=no
10155 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
10156 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10157 { test "$extra_verbose" = "yes" && cat << \EOF
10160 cat >> confdefs.h <<\EOF
10161 #define HAVE_MMAP 1
10168 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10169 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
10170 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10173 cat >> confdefs.h <<\EOF
10174 #define REL_ALLOC 1
10179 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10180 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10181 echo "configure:10182: checking for termios.h" >&5
10183 cat > conftest.$ac_ext <<EOF
10184 #line 10185 "configure"
10185 #include "confdefs.h"
10186 #include <termios.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_TERMIOS
10207 cat >> confdefs.h <<\EOF
10208 #define HAVE_TERMIOS 1
10212 { test "$extra_verbose" = "yes" && cat << \EOF
10213 Defining SIGNALS_VIA_CHARACTERS
10215 cat >> confdefs.h <<\EOF
10216 #define SIGNALS_VIA_CHARACTERS 1
10220 { test "$extra_verbose" = "yes" && cat << \EOF
10223 cat >> confdefs.h <<\EOF
10224 #define NO_TERMIO 1
10229 echo "$ac_t""no" 1>&6
10230 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10231 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10232 echo "configure:10233: checking for termio.h" >&5
10234 cat > conftest.$ac_ext <<EOF
10235 #line 10236 "configure"
10236 #include "confdefs.h"
10237 #include <termio.h>
10239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10240 { (eval echo configure:10241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10242 if test -z "$ac_err"; then
10244 eval "ac_cv_header_$ac_safe=yes"
10247 echo "configure: failed program was:" >&5
10248 cat conftest.$ac_ext >&5
10250 eval "ac_cv_header_$ac_safe=no"
10253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10254 echo "$ac_t""yes" 1>&6
10255 { test "$extra_verbose" = "yes" && cat << \EOF
10256 Defining HAVE_TERMIO
10258 cat >> confdefs.h <<\EOF
10259 #define HAVE_TERMIO 1
10264 echo "$ac_t""no" 1>&6
10271 echo $ac_n "checking for socket""... $ac_c" 1>&6
10272 echo "configure:10273: checking for socket" >&5
10274 cat > conftest.$ac_ext <<EOF
10275 #line 10276 "configure"
10276 #include "confdefs.h"
10277 /* System header to define __stub macros and hopefully few prototypes,
10278 which can conflict with char socket(); below. */
10279 #include <assert.h>
10280 /* Override any gcc2 internal prototype to avoid an error. */
10281 /* We use char because int might match the return type of a gcc2
10282 builtin and then its argument prototype would still apply. */
10287 /* The GNU C library defines this for functions which it implements
10288 to always fail with ENOSYS. Some functions are actually named
10289 something starting with __ and the normal name is an alias. */
10290 #if defined (__stub_socket) || defined (__stub___socket)
10298 if { (eval echo configure:10299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10300 eval "ac_cv_func_socket=yes"
10302 echo "configure: failed program was:" >&5
10303 cat conftest.$ac_ext >&5
10305 eval "ac_cv_func_socket=no"
10309 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10310 echo "$ac_t""yes" 1>&6
10311 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10312 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10313 echo "configure:10314: checking for netinet/in.h" >&5
10315 cat > conftest.$ac_ext <<EOF
10316 #line 10317 "configure"
10317 #include "confdefs.h"
10318 #include <netinet/in.h>
10320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10321 { (eval echo configure:10322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10322 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10323 if test -z "$ac_err"; then
10325 eval "ac_cv_header_$ac_safe=yes"
10328 echo "configure: failed program was:" >&5
10329 cat conftest.$ac_ext >&5
10331 eval "ac_cv_header_$ac_safe=no"
10334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10335 echo "$ac_t""yes" 1>&6
10336 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10337 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10338 echo "configure:10339: checking for arpa/inet.h" >&5
10340 cat > conftest.$ac_ext <<EOF
10341 #line 10342 "configure"
10342 #include "confdefs.h"
10343 #include <arpa/inet.h>
10345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10346 { (eval echo configure:10347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10348 if test -z "$ac_err"; then
10350 eval "ac_cv_header_$ac_safe=yes"
10353 echo "configure: failed program was:" >&5
10354 cat conftest.$ac_ext >&5
10356 eval "ac_cv_header_$ac_safe=no"
10359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10360 echo "$ac_t""yes" 1>&6
10362 { test "$extra_verbose" = "yes" && cat << \EOF
10363 Defining HAVE_SOCKETS
10365 cat >> confdefs.h <<\EOF
10366 #define HAVE_SOCKETS 1
10370 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10371 echo "configure:10372: checking "for sun_len member in struct sockaddr_un"" >&5
10372 cat > conftest.$ac_ext <<EOF
10373 #line 10374 "configure"
10374 #include "confdefs.h"
10376 #include <sys/types.h>
10377 #include <sys/socket.h>
10378 #include <sys/un.h>
10381 static struct sockaddr_un x; x.sun_len = 1;
10384 if { (eval echo configure:10385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10386 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10387 Defining HAVE_SOCKADDR_SUN_LEN
10389 cat >> confdefs.h <<\EOF
10390 #define HAVE_SOCKADDR_SUN_LEN 1
10395 echo "configure: failed program was:" >&5
10396 cat conftest.$ac_ext >&5
10398 echo "$ac_t""no" 1>&6
10401 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10402 echo "configure:10403: checking "for ip_mreq struct in netinet/in.h"" >&5
10403 cat > conftest.$ac_ext <<EOF
10404 #line 10405 "configure"
10405 #include "confdefs.h"
10407 #include <sys/types.h>
10408 #include <netinet/in.h>
10411 static struct ip_mreq x;
10414 if { (eval echo configure:10415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10416 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10417 Defining HAVE_MULTICAST
10419 cat >> confdefs.h <<\EOF
10420 #define HAVE_MULTICAST 1
10425 echo "configure: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10428 echo "$ac_t""no" 1>&6
10432 echo "$ac_t""no" 1>&6
10436 echo "$ac_t""no" 1>&6
10440 echo "$ac_t""no" 1>&6
10444 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10445 echo "configure:10446: checking for msgget" >&5
10447 cat > conftest.$ac_ext <<EOF
10448 #line 10449 "configure"
10449 #include "confdefs.h"
10450 /* System header to define __stub macros and hopefully few prototypes,
10451 which can conflict with char msgget(); below. */
10452 #include <assert.h>
10453 /* Override any gcc2 internal prototype to avoid an error. */
10454 /* We use char because int might match the return type of a gcc2
10455 builtin and then its argument prototype would still apply. */
10460 /* The GNU C library defines this for functions which it implements
10461 to always fail with ENOSYS. Some functions are actually named
10462 something starting with __ and the normal name is an alias. */
10463 #if defined (__stub_msgget) || defined (__stub___msgget)
10471 if { (eval echo configure:10472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10473 eval "ac_cv_func_msgget=yes"
10475 echo "configure: failed program was:" >&5
10476 cat conftest.$ac_ext >&5
10478 eval "ac_cv_func_msgget=no"
10482 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10483 echo "$ac_t""yes" 1>&6
10484 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10485 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10486 echo "configure:10487: checking for sys/ipc.h" >&5
10488 cat > conftest.$ac_ext <<EOF
10489 #line 10490 "configure"
10490 #include "confdefs.h"
10491 #include <sys/ipc.h>
10493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10494 { (eval echo configure:10495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10496 if test -z "$ac_err"; then
10498 eval "ac_cv_header_$ac_safe=yes"
10501 echo "configure: failed program was:" >&5
10502 cat conftest.$ac_ext >&5
10504 eval "ac_cv_header_$ac_safe=no"
10507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10508 echo "$ac_t""yes" 1>&6
10509 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10510 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10511 echo "configure:10512: checking for sys/msg.h" >&5
10513 cat > conftest.$ac_ext <<EOF
10514 #line 10515 "configure"
10515 #include "confdefs.h"
10516 #include <sys/msg.h>
10518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10519 { (eval echo configure:10520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10521 if test -z "$ac_err"; then
10523 eval "ac_cv_header_$ac_safe=yes"
10526 echo "configure: failed program was:" >&5
10527 cat conftest.$ac_ext >&5
10529 eval "ac_cv_header_$ac_safe=no"
10532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10533 echo "$ac_t""yes" 1>&6
10534 { test "$extra_verbose" = "yes" && cat << \EOF
10535 Defining HAVE_SYSVIPC
10537 cat >> confdefs.h <<\EOF
10538 #define HAVE_SYSVIPC 1
10543 echo "$ac_t""no" 1>&6
10547 echo "$ac_t""no" 1>&6
10551 echo "$ac_t""no" 1>&6
10555 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10556 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10557 echo "configure:10558: checking for dirent.h" >&5
10559 cat > conftest.$ac_ext <<EOF
10560 #line 10561 "configure"
10561 #include "confdefs.h"
10562 #include <dirent.h>
10564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10565 { (eval echo configure:10566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10567 if test -z "$ac_err"; then
10569 eval "ac_cv_header_$ac_safe=yes"
10572 echo "configure: failed program was:" >&5
10573 cat conftest.$ac_ext >&5
10575 eval "ac_cv_header_$ac_safe=no"
10578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10579 echo "$ac_t""yes" 1>&6
10580 { test "$extra_verbose" = "yes" && cat << \EOF
10581 Defining SYSV_SYSTEM_DIR
10583 cat >> confdefs.h <<\EOF
10584 #define SYSV_SYSTEM_DIR 1
10589 echo "$ac_t""no" 1>&6
10590 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10591 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10592 echo "configure:10593: checking for sys/dir.h" >&5
10594 cat > conftest.$ac_ext <<EOF
10595 #line 10596 "configure"
10596 #include "confdefs.h"
10597 #include <sys/dir.h>
10599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10600 { (eval echo configure:10601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10602 if test -z "$ac_err"; then
10604 eval "ac_cv_header_$ac_safe=yes"
10607 echo "configure: failed program was:" >&5
10608 cat conftest.$ac_ext >&5
10610 eval "ac_cv_header_$ac_safe=no"
10613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10614 echo "$ac_t""yes" 1>&6
10617 echo "$ac_t""no" 1>&6
10618 { test "$extra_verbose" = "yes" && cat << \EOF
10619 Defining NONSYSTEM_DIR_LIBRARY
10621 cat >> confdefs.h <<\EOF
10622 #define NONSYSTEM_DIR_LIBRARY 1
10631 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10632 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10633 echo "configure:10634: checking for nlist.h" >&5
10635 cat > conftest.$ac_ext <<EOF
10636 #line 10637 "configure"
10637 #include "confdefs.h"
10640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10641 { (eval echo configure:10642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10643 if test -z "$ac_err"; then
10645 eval "ac_cv_header_$ac_safe=yes"
10648 echo "configure: failed program was:" >&5
10649 cat conftest.$ac_ext >&5
10651 eval "ac_cv_header_$ac_safe=no"
10654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10655 echo "$ac_t""yes" 1>&6
10656 { test "$extra_verbose" = "yes" && cat << \EOF
10657 Defining NLIST_STRUCT
10659 cat >> confdefs.h <<\EOF
10660 #define NLIST_STRUCT 1
10665 echo "$ac_t""no" 1>&6
10670 echo "checking "for sound support"" 1>&6
10671 echo "configure:10672: checking "for sound support"" >&5
10672 case "$with_sound" in
10673 native | both ) with_native_sound=yes;;
10674 nas | no ) with_native_sound=no;;
10676 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10678 if test "$with_native_sound" != "no"; then
10679 if test -n "$native_sound_lib"; then
10680 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10681 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10682 echo "configure:10683: checking for multimedia/audio_device.h" >&5
10684 cat > conftest.$ac_ext <<EOF
10685 #line 10686 "configure"
10686 #include "confdefs.h"
10687 #include <multimedia/audio_device.h>
10689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10690 { (eval echo configure:10691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10692 if test -z "$ac_err"; then
10694 eval "ac_cv_header_$ac_safe=yes"
10697 echo "configure: failed program was:" >&5
10698 cat conftest.$ac_ext >&5
10700 eval "ac_cv_header_$ac_safe=no"
10703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10704 echo "$ac_t""yes" 1>&6
10705 sound_found=yes sound_cflags=""
10706 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10707 echo " xemacs will be linked with \"sunplay.o\""
10710 echo "$ac_t""no" 1>&6
10715 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
10717 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10718 echo " xemacs will be linked with \"sunplay.o\""
10720 if test -d "/usr/demo/SOUND/include"
10721 then sound_cflags="-I/usr/demo/SOUND/include"
10722 else sound_cflags="-I/usr/demo/SOUND"
10724 if test -z "$native_sound_lib" ; then
10725 if test -r "/usr/demo/SOUND/lib/libaudio.a"
10726 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
10727 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
10732 if test -z "$sound_found"; then
10733 case "$canonical" in
10735 if test -z "$native_sound_lib"; then
10737 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10738 echo "configure:10739: checking for ALopenport in -laudio" >&5
10739 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10741 xe_check_libs=" -laudio "
10742 cat > conftest.$ac_ext <<EOF
10743 #line 10744 "configure"
10744 #include "confdefs.h"
10745 /* Override any gcc2 internal prototype to avoid an error. */
10746 /* We use char because int might match the return type of a gcc2
10747 builtin and then its argument prototype would still apply. */
10754 if { (eval echo configure:10755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10756 eval "ac_cv_lib_$ac_lib_var=yes"
10758 echo "configure: failed program was:" >&5
10759 cat conftest.$ac_ext >&5
10761 eval "ac_cv_lib_$ac_lib_var=no"
10766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10767 echo "$ac_t""yes" 1>&6
10768 native_sound_lib="-laudio"
10770 echo "$ac_t""no" 1>&6
10775 if test -n "$native_sound_lib"; then
10776 sound_found=yes sound_cflags=""
10777 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
10778 echo " xemacs will be linked with \"sgiplay.o\""
10782 if test -z "$native_sound_lib"; then
10784 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10785 echo "configure:10786: checking for AOpenAudio in -lAlib" >&5
10786 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10788 xe_check_libs=" -lAlib "
10789 cat > conftest.$ac_ext <<EOF
10790 #line 10791 "configure"
10791 #include "confdefs.h"
10792 /* Override any gcc2 internal prototype to avoid an error. */
10793 /* We use char because int might match the return type of a gcc2
10794 builtin and then its argument prototype would still apply. */
10801 if { (eval echo configure:10802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10803 eval "ac_cv_lib_$ac_lib_var=yes"
10805 echo "configure: failed program was:" >&5
10806 cat conftest.$ac_ext >&5
10808 eval "ac_cv_lib_$ac_lib_var=no"
10813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10814 echo "$ac_t""yes" 1>&6
10815 native_sound_lib="-lAlib"
10817 echo "$ac_t""no" 1>&6
10822 if test -n "$native_sound_lib"; then
10824 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
10825 echo " xemacs will be linked with \"hpplay.o\""
10827 if test "$GCC" = "yes" # Kludge city
10828 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
10829 else sound_cflags="+e -I/usr/audio/examples"
10835 if test -z "$sound_found"; then
10836 for dir in "machine" "sys" "linux"; do
10837 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10838 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10839 echo "configure:10840: checking for ${dir}/soundcard.h" >&5
10841 cat > conftest.$ac_ext <<EOF
10842 #line 10843 "configure"
10843 #include "confdefs.h"
10844 #include <${dir}/soundcard.h>
10846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10847 { (eval echo configure:10848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10849 if test -z "$ac_err"; then
10851 eval "ac_cv_header_$ac_safe=yes"
10854 echo "configure: failed program was:" >&5
10855 cat conftest.$ac_ext >&5
10857 eval "ac_cv_header_$ac_safe=no"
10860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10861 echo "$ac_t""yes" 1>&6
10863 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
10864 echo " xemacs will be linked with \"linuxplay.o\""
10866 { test "$extra_verbose" = "yes" && cat << EOF
10867 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
10869 cat >> confdefs.h <<EOF
10870 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
10876 echo "$ac_t""no" 1>&6
10882 test "$sound_found" = "yes" && with_native_sound=yes
10885 if test -z "$with_sound"; then
10886 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
10891 if test "$with_native_sound" = "yes"; then
10892 { test "$extra_verbose" = "yes" && cat << \EOF
10893 Defining HAVE_NATIVE_SOUND
10895 cat >> confdefs.h <<\EOF
10896 #define HAVE_NATIVE_SOUND 1
10900 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
10903 case "$with_sound" in both | nas )
10904 { test "$extra_verbose" = "yes" && cat << \EOF
10905 Defining HAVE_NAS_SOUND
10907 cat >> confdefs.h <<\EOF
10908 #define HAVE_NAS_SOUND 1
10912 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10913 echo " xemacs will be linked with \"nas.o\""
10915 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10916 cat > conftest.$ac_ext <<EOF
10917 #line 10918 "configure"
10918 #include "confdefs.h"
10919 #include <audio/Xtutil.h>
10921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10922 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10926 { test "$extra_verbose" = "yes" && cat << \EOF
10927 Defining NAS_NO_ERROR_JUMP
10929 cat >> confdefs.h <<\EOF
10930 #define NAS_NO_ERROR_JUMP 1
10940 test -z "$with_tty" && with_tty=yes
10942 if test "$with_tty" = "yes" ; then
10943 echo "checking for TTY-related features" 1>&6
10944 echo "configure:10945: checking for TTY-related features" >&5
10945 { test "$extra_verbose" = "yes" && cat << \EOF
10948 cat >> confdefs.h <<\EOF
10953 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
10954 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\""
10957 if test -z "$with_ncurses"; then
10959 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10960 echo "configure:10961: checking for tgetent in -lncurses" >&5
10961 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10963 xe_check_libs=" -lncurses "
10964 cat > conftest.$ac_ext <<EOF
10965 #line 10966 "configure"
10966 #include "confdefs.h"
10967 /* Override any gcc2 internal prototype to avoid an error. */
10968 /* We use char because int might match the return type of a gcc2
10969 builtin and then its argument prototype would still apply. */
10976 if { (eval echo configure:10977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10978 eval "ac_cv_lib_$ac_lib_var=yes"
10980 echo "configure: failed program was:" >&5
10981 cat conftest.$ac_ext >&5
10983 eval "ac_cv_lib_$ac_lib_var=no"
10988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10989 echo "$ac_t""yes" 1>&6
10992 echo "$ac_t""no" 1>&6
10998 if test "$with_ncurses" = "yes"; then
10999 { test "$extra_verbose" = "yes" && cat << \EOF
11000 Defining HAVE_NCURSES
11002 cat >> confdefs.h <<\EOF
11003 #define HAVE_NCURSES 1
11007 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11008 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11009 echo "configure:11010: checking for ncurses/curses.h" >&5
11011 cat > conftest.$ac_ext <<EOF
11012 #line 11013 "configure"
11013 #include "confdefs.h"
11014 #include <ncurses/curses.h>
11016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11017 { (eval echo configure:11018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11019 if test -z "$ac_err"; then
11021 eval "ac_cv_header_$ac_safe=yes"
11024 echo "configure: failed program was:" >&5
11025 cat conftest.$ac_ext >&5
11027 eval "ac_cv_header_$ac_safe=no"
11030 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11031 echo "$ac_t""yes" 1>&6
11032 curses_h_path=ncurses/curses.h
11034 echo "$ac_t""no" 1>&6
11037 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
11038 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
11039 echo "configure:11040: checking for ncurses/term.h" >&5
11041 cat > conftest.$ac_ext <<EOF
11042 #line 11043 "configure"
11043 #include "confdefs.h"
11044 #include <ncurses/term.h>
11046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11047 { (eval echo configure:11048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11049 if test -z "$ac_err"; then
11051 eval "ac_cv_header_$ac_safe=yes"
11054 echo "configure: failed program was:" >&5
11055 cat conftest.$ac_ext >&5
11057 eval "ac_cv_header_$ac_safe=no"
11060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11061 echo "$ac_t""yes" 1>&6
11062 term_h_path=ncurses/term.h
11064 echo "$ac_t""no" 1>&6
11067 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11068 echo " xemacs will be linked with \"terminfo.o\""
11070 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
11072 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
11073 save_c_switch_site="$c_switch_site"
11074 c_switch_site="$c_switch_site -I/usr/include/ncurses"
11075 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11076 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11077 echo "configure:11078: checking for ncurses/curses.h" >&5
11079 cat > conftest.$ac_ext <<EOF
11080 #line 11081 "configure"
11081 #include "confdefs.h"
11082 #include <ncurses/curses.h>
11084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11085 { (eval echo configure:11086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11087 if test -z "$ac_err"; then
11089 eval "ac_cv_header_$ac_safe=yes"
11092 echo "configure: failed program was:" >&5
11093 cat conftest.$ac_ext >&5
11095 eval "ac_cv_header_$ac_safe=no"
11098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11099 echo "$ac_t""yes" 1>&6
11100 curses_h_path=ncurses/curses.h
11102 echo "$ac_t""no" 1>&6
11105 if test "$ac_cv_header_ncurses_curses_h" = "yes"
11106 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
11107 else c_switch_site="$save_c_switch_site"
11110 else if test "$have_terminfo" = "yes"; then
11111 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11112 echo " xemacs will be linked with \"terminfo.o\""
11114 if test -n "$libs_termcap"; then
11115 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11117 for lib in curses termlib termcap; do
11119 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
11120 echo "configure:11121: checking for tgetent in -l$lib" >&5
11121 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
11123 xe_check_libs=" -l$lib "
11124 cat > conftest.$ac_ext <<EOF
11125 #line 11126 "configure"
11126 #include "confdefs.h"
11127 /* Override any gcc2 internal prototype to avoid an error. */
11128 /* We use char because int might match the return type of a gcc2
11129 builtin and then its argument prototype would still apply. */
11136 if { (eval echo configure:11137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11138 eval "ac_cv_lib_$ac_lib_var=yes"
11140 echo "configure: failed program was:" >&5
11141 cat conftest.$ac_ext >&5
11143 eval "ac_cv_lib_$ac_lib_var=no"
11148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11149 echo "$ac_t""yes" 1>&6
11150 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
11152 echo "$ac_t""no" 1>&6
11158 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
11159 echo " xemacs will be linked with \"tparam.o\""
11161 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
11162 if test -n "$libs_termcap"; then
11163 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11166 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11167 echo "configure:11168: checking for tgetent in -lcurses" >&5
11168 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11170 xe_check_libs=" -lcurses "
11171 cat > conftest.$ac_ext <<EOF
11172 #line 11173 "configure"
11173 #include "confdefs.h"
11174 /* Override any gcc2 internal prototype to avoid an error. */
11175 /* We use char because int might match the return type of a gcc2
11176 builtin and then its argument prototype would still apply. */
11183 if { (eval echo configure:11184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11185 eval "ac_cv_lib_$ac_lib_var=yes"
11187 echo "configure: failed program was:" >&5
11188 cat conftest.$ac_ext >&5
11190 eval "ac_cv_lib_$ac_lib_var=no"
11195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11196 echo "$ac_t""yes" 1>&6
11197 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11199 echo "$ac_t""no" 1>&6
11200 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11201 echo "configure:11202: checking for tgetent in -ltermcap" >&5
11202 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11204 xe_check_libs=" -ltermcap "
11205 cat > conftest.$ac_ext <<EOF
11206 #line 11207 "configure"
11207 #include "confdefs.h"
11208 /* Override any gcc2 internal prototype to avoid an error. */
11209 /* We use char because int might match the return type of a gcc2
11210 builtin and then its argument prototype would still apply. */
11217 if { (eval echo configure:11218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11219 eval "ac_cv_lib_$ac_lib_var=yes"
11221 echo "configure: failed program was:" >&5
11222 cat conftest.$ac_ext >&5
11224 eval "ac_cv_lib_$ac_lib_var=no"
11229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11230 echo "$ac_t""yes" 1>&6
11231 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
11233 echo "$ac_t""no" 1>&6
11234 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
11235 echo " xemacs will be linked with \"termcap.o\""
11246 { test "$extra_verbose" = "yes" && cat << EOF
11247 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
11249 cat >> confdefs.h <<EOF
11250 #define CURSES_H_PATH "${curses_h_path-curses.h}"
11254 { test "$extra_verbose" = "yes" && cat << EOF
11255 Defining TERM_H_PATH = "${term_h_path-term.h}"
11257 cat >> confdefs.h <<EOF
11258 #define TERM_H_PATH "${term_h_path-term.h}"
11263 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11264 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11265 echo "configure:11266: checking for gpm.h" >&5
11267 cat > conftest.$ac_ext <<EOF
11268 #line 11269 "configure"
11269 #include "confdefs.h"
11272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11273 { (eval echo configure:11274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11275 if test -z "$ac_err"; then
11277 eval "ac_cv_header_$ac_safe=yes"
11280 echo "configure: failed program was:" >&5
11281 cat conftest.$ac_ext >&5
11283 eval "ac_cv_header_$ac_safe=no"
11286 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11287 echo "$ac_t""yes" 1>&6
11290 echo "$ac_t""no" 1>&6
11294 test -z "$with_gpm" && {
11295 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11296 echo "configure:11297: checking for Gpm_Open in -lgpm" >&5
11297 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11299 xe_check_libs=" -lgpm "
11300 cat > conftest.$ac_ext <<EOF
11301 #line 11302 "configure"
11302 #include "confdefs.h"
11303 /* Override any gcc2 internal prototype to avoid an error. */
11304 /* We use char because int might match the return type of a gcc2
11305 builtin and then its argument prototype would still apply. */
11312 if { (eval echo configure:11313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11314 eval "ac_cv_lib_$ac_lib_var=yes"
11316 echo "configure: failed program was:" >&5
11317 cat conftest.$ac_ext >&5
11319 eval "ac_cv_lib_$ac_lib_var=no"
11324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11325 echo "$ac_t""yes" 1>&6
11328 echo "$ac_t""no" 1>&6
11333 if test "$with_gpm" = "yes"; then
11334 { test "$extra_verbose" = "yes" && cat << \EOF
11337 cat >> confdefs.h <<\EOF
11342 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
11343 echo " xemacs will be linked with \"gpmevent.o\""
11345 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
11348 else for feature in ncurses gpm; do
11349 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11350 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
11352 eval "with_${feature}=no"
11355 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
11356 echo " xemacs will be linked with \"event-unixoid.o\""
11360 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11361 != "no no no" && echo "checking for database support" 1>&6
11362 echo "configure:11363: checking for database support" >&5
11364 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
11365 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11366 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11367 echo "configure:11368: checking for ndbm.h" >&5
11369 cat > conftest.$ac_ext <<EOF
11370 #line 11371 "configure"
11371 #include "confdefs.h"
11374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11375 { (eval echo configure:11376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11377 if test -z "$ac_err"; then
11379 eval "ac_cv_header_$ac_safe=yes"
11382 echo "configure: failed program was:" >&5
11383 cat conftest.$ac_ext >&5
11385 eval "ac_cv_header_$ac_safe=no"
11388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11389 echo "$ac_t""yes" 1>&6
11392 echo "$ac_t""no" 1>&6
11394 test "$with_database_gnudbm" = "yes" -o \
11395 "$with_database_dbm" = "yes" && \
11396 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11397 with_database_gnudbm=no with_database_dbm=no
11402 if test "$with_database_gnudbm" != "no"; then
11404 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11405 echo "configure:11406: checking for dbm_open in -lgdbm" >&5
11406 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11408 xe_check_libs=" -lgdbm "
11409 cat > conftest.$ac_ext <<EOF
11410 #line 11411 "configure"
11411 #include "confdefs.h"
11412 /* Override any gcc2 internal prototype to avoid an error. */
11413 /* We use char because int might match the return type of a gcc2
11414 builtin and then its argument prototype would still apply. */
11421 if { (eval echo configure:11422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11423 eval "ac_cv_lib_$ac_lib_var=yes"
11425 echo "configure: failed program was:" >&5
11426 cat conftest.$ac_ext >&5
11428 eval "ac_cv_lib_$ac_lib_var=no"
11433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11434 echo "$ac_t""yes" 1>&6
11435 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm
11437 echo "$ac_t""no" 1>&6
11438 if test "$with_database_gnudbm" = "yes"; then
11439 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
11441 with_database_gnudbm=no
11447 if test "$with_database_dbm" != "no"; then
11448 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11449 echo "configure:11450: checking for dbm_open" >&5
11451 cat > conftest.$ac_ext <<EOF
11452 #line 11453 "configure"
11453 #include "confdefs.h"
11454 /* System header to define __stub macros and hopefully few prototypes,
11455 which can conflict with char dbm_open(); below. */
11456 #include <assert.h>
11457 /* Override any gcc2 internal prototype to avoid an error. */
11458 /* We use char because int might match the return type of a gcc2
11459 builtin and then its argument prototype would still apply. */
11464 /* The GNU C library defines this for functions which it implements
11465 to always fail with ENOSYS. Some functions are actually named
11466 something starting with __ and the normal name is an alias. */
11467 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11475 if { (eval echo configure:11476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11477 eval "ac_cv_func_dbm_open=yes"
11479 echo "configure: failed program was:" >&5
11480 cat conftest.$ac_ext >&5
11482 eval "ac_cv_func_dbm_open=no"
11486 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11487 echo "$ac_t""yes" 1>&6
11488 with_database_dbm=yes libdbm=
11490 echo "$ac_t""no" 1>&6
11493 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11494 echo "configure:11495: checking for dbm_open in -ldbm" >&5
11495 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11497 xe_check_libs=" -ldbm "
11498 cat > conftest.$ac_ext <<EOF
11499 #line 11500 "configure"
11500 #include "confdefs.h"
11501 /* Override any gcc2 internal prototype to avoid an error. */
11502 /* We use char because int might match the return type of a gcc2
11503 builtin and then its argument prototype would still apply. */
11510 if { (eval echo configure:11511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11512 eval "ac_cv_lib_$ac_lib_var=yes"
11514 echo "configure: failed program was:" >&5
11515 cat conftest.$ac_ext >&5
11517 eval "ac_cv_lib_$ac_lib_var=no"
11522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11523 echo "$ac_t""yes" 1>&6
11524 with_database_dbm=yes libdbm=-ldbm
11526 echo "$ac_t""no" 1>&6
11527 test "$with_database_dbm" = "yes" && \
11528 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11529 with_database_dbm=no
11537 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
11538 test "$with_database_gnudbm" = "yes" -o \
11539 "$with_database_dbm" = "yes" && \
11540 { test "$extra_verbose" = "yes" && cat << \EOF
11543 cat >> confdefs.h <<\EOF
11549 if test "$with_database_berkdb" != "no"; then
11550 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11551 echo "configure:11552: checking for Berkeley db.h" >&5
11552 for path in "db/db.h" "db.h"; do
11553 cat > conftest.$ac_ext <<EOF
11554 #line 11555 "configure"
11555 #include "confdefs.h"
11556 #ifdef HAVE_INTTYPES_H
11557 #define __BIT_TYPES_DEFINED__
11558 #include <inttypes.h>
11559 typedef uint8_t u_int8_t;
11560 typedef uint16_t u_int16_t;
11561 typedef uint32_t u_int32_t;
11562 #ifdef WE_DONT_NEED_QUADS
11563 typedef uint64_t u_int64_t;
11572 if { (eval echo configure:11573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11574 db_h_path="$path"; break
11576 echo "configure: failed program was:" >&5
11577 cat conftest.$ac_ext >&5
11581 if test -z "$db_h_path"
11582 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
11583 else echo "$ac_t""$db_h_path" 1>&6
11586 if test "$with_database_berkdb" != "no"; then
11587 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11588 echo "configure:11589: checking for Berkeley DB version" >&5
11589 cat > conftest.$ac_ext <<EOF
11590 #line 11591 "configure"
11591 #include "confdefs.h"
11592 #include <$db_h_path>
11593 #if DB_VERSION_MAJOR > 1
11598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11599 egrep "yes" >/dev/null 2>&1; then
11601 echo "$ac_t""2" 1>&6; dbfunc=db_open
11604 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11608 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11609 echo "configure:11610: checking for $dbfunc" >&5
11611 cat > conftest.$ac_ext <<EOF
11612 #line 11613 "configure"
11613 #include "confdefs.h"
11614 /* System header to define __stub macros and hopefully few prototypes,
11615 which can conflict with char $dbfunc(); below. */
11616 #include <assert.h>
11617 /* Override any gcc2 internal prototype to avoid an error. */
11618 /* We use char because int might match the return type of a gcc2
11619 builtin and then its argument prototype would still apply. */
11624 /* The GNU C library defines this for functions which it implements
11625 to always fail with ENOSYS. Some functions are actually named
11626 something starting with __ and the normal name is an alias. */
11627 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
11635 if { (eval echo configure:11636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11637 eval "ac_cv_func_$dbfunc=yes"
11639 echo "configure: failed program was:" >&5
11640 cat conftest.$ac_ext >&5
11642 eval "ac_cv_func_$dbfunc=no"
11646 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
11647 echo "$ac_t""yes" 1>&6
11648 with_database_berkdb=yes need_libdb=no
11650 echo "$ac_t""no" 1>&6
11653 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11654 echo "configure:11655: checking for $dbfunc in -ldb" >&5
11655 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11657 xe_check_libs=" -ldb "
11658 cat > conftest.$ac_ext <<EOF
11659 #line 11660 "configure"
11660 #include "confdefs.h"
11661 /* Override any gcc2 internal prototype to avoid an error. */
11662 /* We use char because int might match the return type of a gcc2
11663 builtin and then its argument prototype would still apply. */
11670 if { (eval echo configure:11671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11672 eval "ac_cv_lib_$ac_lib_var=yes"
11674 echo "configure: failed program was:" >&5
11675 cat conftest.$ac_ext >&5
11677 eval "ac_cv_lib_$ac_lib_var=no"
11682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11683 echo "$ac_t""yes" 1>&6
11684 with_database_berkdb=yes need_libdb=yes
11686 echo "$ac_t""no" 1>&6
11694 if test "$with_database_berkdb" = "yes"; then
11695 { test "$extra_verbose" = "yes" && cat << EOF
11696 Defining DB_H_PATH = "$db_h_path"
11698 cat >> confdefs.h <<EOF
11699 #define DB_H_PATH "$db_h_path"
11703 { test "$extra_verbose" = "yes" && cat << \EOF
11704 Defining HAVE_BERKELEY_DB
11706 cat >> confdefs.h <<\EOF
11707 #define HAVE_BERKELEY_DB 1
11711 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
11712 else with_database_berkdb=no
11716 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11717 != "no no no"; then
11718 { test "$extra_verbose" = "yes" && cat << \EOF
11719 Defining HAVE_DATABASE
11721 cat >> confdefs.h <<\EOF
11722 #define HAVE_DATABASE 1
11726 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
11727 echo " xemacs will be linked with \"database.o\""
11731 if test "$with_socks" = "yes"; then
11733 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11734 echo "configure:11735: checking for SOCKSinit in -lsocks" >&5
11735 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11737 xe_check_libs=" -lsocks "
11738 cat > conftest.$ac_ext <<EOF
11739 #line 11740 "configure"
11740 #include "confdefs.h"
11741 /* Override any gcc2 internal prototype to avoid an error. */
11742 /* We use char because int might match the return type of a gcc2
11743 builtin and then its argument prototype would still apply. */
11750 if { (eval echo configure:11751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11752 eval "ac_cv_lib_$ac_lib_var=yes"
11754 echo "configure: failed program was:" >&5
11755 cat conftest.$ac_ext >&5
11757 eval "ac_cv_lib_$ac_lib_var=no"
11762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11763 echo "$ac_t""yes" 1>&6
11764 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11765 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11766 { test "$extra_verbose" = "yes" && cat << EOF
11767 Defining $ac_tr_lib
11769 cat >> confdefs.h <<EOF
11770 #define $ac_tr_lib 1
11774 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
11777 echo "$ac_t""no" 1>&6
11781 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
11782 Defining HAVE_SOCKS
11784 cat >> confdefs.h <<\EOF
11785 #define HAVE_SOCKS 1
11791 if test "$usage_tracking" = "yes"; then
11792 { test "$extra_verbose" = "yes" && cat << \EOF
11793 Defining USAGE_TRACKING
11795 cat >> confdefs.h <<\EOF
11796 #define USAGE_TRACKING 1
11800 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11803 for ac_hdr in dlfcn.h
11805 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11806 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11807 echo "configure:11808: checking for $ac_hdr" >&5
11809 cat > conftest.$ac_ext <<EOF
11810 #line 11811 "configure"
11811 #include "confdefs.h"
11814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11815 { (eval echo configure:11816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11817 if test -z "$ac_err"; then
11819 eval "ac_cv_header_$ac_safe=yes"
11822 echo "configure: failed program was:" >&5
11823 cat conftest.$ac_ext >&5
11825 eval "ac_cv_header_$ac_safe=no"
11828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11829 echo "$ac_t""yes" 1>&6
11830 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11831 { test "$extra_verbose" = "yes" && cat << EOF
11832 Defining $ac_tr_hdr
11834 cat >> confdefs.h <<EOF
11835 #define $ac_tr_hdr 1
11839 { test "$extra_verbose" = "yes" && cat << \EOF
11840 Defining HAVE_DLFCN_H
11842 cat >> confdefs.h <<\EOF
11843 #define HAVE_DLFCN_H 1
11848 echo "$ac_t""no" 1>&6
11852 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11853 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11854 echo "configure:11855: checking for dlopen in -ldl" >&5
11855 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11857 xe_check_libs=" -ldl "
11858 cat > conftest.$ac_ext <<EOF
11859 #line 11860 "configure"
11860 #include "confdefs.h"
11861 /* Override any gcc2 internal prototype to avoid an error. */
11862 /* We use char because int might match the return type of a gcc2
11863 builtin and then its argument prototype would still apply. */
11870 if { (eval echo configure:11871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11872 eval "ac_cv_lib_$ac_lib_var=yes"
11874 echo "configure: failed program was:" >&5
11875 cat conftest.$ac_ext >&5
11877 eval "ac_cv_lib_$ac_lib_var=no"
11882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11883 echo "$ac_t""yes" 1>&6
11884 { test "$extra_verbose" = "yes" && cat << \EOF
11885 Defining HAVE_DLOPEN
11887 cat >> confdefs.h <<\EOF
11888 #define HAVE_DLOPEN 1
11891 DLL_LIB=dl; with_shlib=yes
11893 echo "$ac_t""no" 1>&6
11897 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11898 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11899 echo "configure:11900: checking for _dlopen in -lc" >&5
11900 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11902 xe_check_libs=" -lc "
11903 cat > conftest.$ac_ext <<EOF
11904 #line 11905 "configure"
11905 #include "confdefs.h"
11906 /* Override any gcc2 internal prototype to avoid an error. */
11907 /* We use char because int might match the return type of a gcc2
11908 builtin and then its argument prototype would still apply. */
11915 if { (eval echo configure:11916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11917 eval "ac_cv_lib_$ac_lib_var=yes"
11919 echo "configure: failed program was:" >&5
11920 cat conftest.$ac_ext >&5
11922 eval "ac_cv_lib_$ac_lib_var=no"
11927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11928 echo "$ac_t""yes" 1>&6
11929 { test "$extra_verbose" = "yes" && cat << \EOF
11930 Defining HAVE_DLOPEN
11932 cat >> confdefs.h <<\EOF
11933 #define HAVE_DLOPEN 1
11936 DLL_LIB=; with_shlib=yes
11938 echo "$ac_t""no" 1>&6
11942 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11943 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11944 echo "configure:11945: checking for dlopen in -lc" >&5
11945 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11947 xe_check_libs=" -lc "
11948 cat > conftest.$ac_ext <<EOF
11949 #line 11950 "configure"
11950 #include "confdefs.h"
11951 /* Override any gcc2 internal prototype to avoid an error. */
11952 /* We use char because int might match the return type of a gcc2
11953 builtin and then its argument prototype would still apply. */
11960 if { (eval echo configure:11961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11962 eval "ac_cv_lib_$ac_lib_var=yes"
11964 echo "configure: failed program was:" >&5
11965 cat conftest.$ac_ext >&5
11967 eval "ac_cv_lib_$ac_lib_var=no"
11972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11973 echo "$ac_t""yes" 1>&6
11974 { test "$extra_verbose" = "yes" && cat << \EOF
11975 Defining HAVE_DLOPEN
11977 cat >> confdefs.h <<\EOF
11978 #define HAVE_DLOPEN 1
11981 DLL_LIB=; with_shlib=yes
11983 echo "$ac_t""no" 1>&6
11987 test -z "$with_shlib" && {
11988 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11989 echo "configure:11990: checking for shl_load in -ldld" >&5
11990 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11992 xe_check_libs=" -ldld "
11993 cat > conftest.$ac_ext <<EOF
11994 #line 11995 "configure"
11995 #include "confdefs.h"
11996 /* Override any gcc2 internal prototype to avoid an error. */
11997 /* We use char because int might match the return type of a gcc2
11998 builtin and then its argument prototype would still apply. */
12005 if { (eval echo configure:12006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12007 eval "ac_cv_lib_$ac_lib_var=yes"
12009 echo "configure: failed program was:" >&5
12010 cat conftest.$ac_ext >&5
12012 eval "ac_cv_lib_$ac_lib_var=no"
12017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12018 echo "$ac_t""yes" 1>&6
12019 { test "$extra_verbose" = "yes" && cat << \EOF
12020 Defining HAVE_SHL_LOAD
12022 cat >> confdefs.h <<\EOF
12023 #define HAVE_SHL_LOAD 1
12026 DLL_LIB=dld; with_shlib=yes
12028 echo "$ac_t""no" 1>&6
12032 test -z "$with_shlib" && {
12033 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
12034 echo "configure:12035: checking for dld_init in -ldld" >&5
12035 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
12037 xe_check_libs=" -ldld "
12038 cat > conftest.$ac_ext <<EOF
12039 #line 12040 "configure"
12040 #include "confdefs.h"
12041 /* Override any gcc2 internal prototype to avoid an error. */
12042 /* We use char because int might match the return type of a gcc2
12043 builtin and then its argument prototype would still apply. */
12050 if { (eval echo configure:12051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12052 eval "ac_cv_lib_$ac_lib_var=yes"
12054 echo "configure: failed program was:" >&5
12055 cat conftest.$ac_ext >&5
12057 eval "ac_cv_lib_$ac_lib_var=no"
12062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12063 echo "$ac_t""yes" 1>&6
12064 { test "$extra_verbose" = "yes" && cat << \EOF
12065 Defining HAVE_DLD_INIT
12067 cat >> confdefs.h <<\EOF
12068 #define HAVE_DLD_INIT 1
12071 DLL_LIB=dld; with_shlib=yes
12073 echo "$ac_t""no" 1>&6
12077 if test "$with_shlib" = "yes"; then
12084 ld_dynamic_link_flags=
12086 xealias=$internal_configuration
12088 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
12089 echo "configure:12090: checking how to build dynamic libraries for ${xehost}" >&5
12090 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
12093 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
12096 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
12097 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
12098 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
12100 case "$xehost_os" in
12102 # AIX sometimes has problems with the GCC collect2 program. For some
12103 # reason, if we set the COLLECT_NAMES environment variable, the problems
12104 # vanish in a puff of smoke.
12105 if test "${COLLECT_NAMES+set}" != set; then
12107 export COLLECT_NAMES
12112 # Now see if the compiler is really GCC.
12113 if test "$GCC" = "yes"; then
12116 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
12117 echo "configure:12118: checking checking whether we are using GNU C" >&5
12118 cat > conftest.$ac_ext <<EOF
12119 #line 12120 "configure"
12120 #include "confdefs.h"
12127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12128 egrep "yes" >/dev/null 2>&1; then
12137 echo "$ac_t""${XEGCC}" 1>&6
12140 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12141 echo "configure:12142: checking how to produce PIC code" >&5
12144 can_build_shared=yes
12145 if test "$XEGCC" = yes; then
12148 case "$xehost_os" in
12149 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
12150 # PIC is the default for these OSes.
12154 # We can build DLLs from non-PIC.
12157 # FIXME: we need at least 68020 code to build shared libraries, but
12158 # adding the `-m68020' flag to GCC prevents building anything better,
12160 dll_cflags='-m68020 -resident32 -malways-restore-a4'
12167 # PORTME Check for PIC flags for the system compiler.
12168 case "$xehost_os" in
12170 # Is there a better link_static_flag that works with the bundled CC?
12177 # PIC (with -KPIC) is the default.
12181 # We can build DLLs from non-PIC.
12185 # All OSF/1 code is PIC.
12190 dll_cflags='-belf -Kpic'
12224 can_build_shared=no
12229 if test -n "$dll_cflags"; then
12230 echo "$ac_t""${dll_cflags}" 1>&6
12232 # Check to make sure the dll_cflags actually works.
12233 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12234 echo "configure:12235: checking if PIC flag ${dll_cflags} really works" >&5
12235 save_CFLAGS="$CFLAGS"
12236 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12237 cat > conftest.$ac_ext <<EOF
12238 #line 12239 "configure"
12239 #include "confdefs.h"
12245 if { (eval echo configure:12246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12248 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12249 # reports no error. So, we need to grep stderr for (Bundled).
12250 if grep '(Bundled)' config.log >/dev/null; then
12251 echo "$ac_t""no" 1>&6
12252 can_build_shared=no
12255 echo "$ac_t""yes" 1>&6
12258 echo "configure: failed program was:" >&5
12259 cat conftest.$ac_ext >&5
12261 echo "$ac_t""no" 1>&6
12262 can_build_shared=no
12266 CFLAGS="$save_CFLAGS"
12268 echo "$ac_t""none" 1>&6
12271 if test "$can_build_shared" = "yes"; then
12275 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12276 echo "configure:12277: checking if C compiler can produce shared libraries" >&5
12277 if test "$XEGCC" = yes; then
12280 else # Not using GCC
12281 case "$xehost_os" in
12283 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
12284 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
12287 freebsd2* | netbsd* | openbsd*)
12289 xcldf="${wl}-Bshareable"
12298 xcldf="${wl}-b ${wl}+s"
12301 irix5* | irix6* | osf3* | osf4*)
12302 xcldf="${wl}-shared"
12306 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
12312 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
12313 xldf="-assert pure-text -Bstatic"
12316 fi # End if if we are using gcc
12318 if test -n "$xcldf"; then
12319 save_LDFLAGS=$LDFLAGS
12321 save_xe_libs=$xe_libs
12322 LDFLAGS="$xcldf $LDFLAGS"
12325 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12326 cat > conftest.$ac_ext <<EOF
12327 #line 12328 "configure"
12328 #include "confdefs.h"
12334 if { (eval echo configure:12335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12338 echo "configure: failed program was:" >&5
12339 cat conftest.$ac_ext >&5
12344 LDFLAGS=$save_LDFLAGS
12346 xe_libs=$save_xe_libs
12347 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12351 echo "$ac_t""${cc_produces_so}" 1>&6
12354 if test -z "$LTLD"; then
12356 if test "$XEGCC" = yes; then
12357 # Check if gcc -print-prog-name=ld gives a path.
12358 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12359 echo "configure:12360: checking for ld used by GCC" >&5
12360 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12362 # Accept absolute paths.
12364 if test -z "$LTLD"; then
12366 *gcc-lib*) LTLD="$CC"
12374 # If it fails, then pretend we aren't using GCC.
12378 # If it is relative, then search for the first ld in PATH.
12379 with_gnu_ld=unknown
12383 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12384 echo "configure:12385: checking for GNU ld" >&5
12387 if test -z "$LTLD"; then
12388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12389 for ac_dir in $PATH; do
12390 test -z "$ac_dir" && ac_dir=.
12391 if test -f "$ac_dir/$ac_prog"; then
12392 LTLD="$ac_dir/$ac_prog"
12393 # Check to see if the program is GNU ld. I'd rather use --version,
12394 # but apparently some GNU ld's only accept -v.
12395 # Break only if it was the GNU/non-GNU ld that we prefer.
12396 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12406 if test -n "$LTLD"; then
12407 echo "$ac_t""${LTLD}" 1>&6
12409 echo "$ac_t""no" 1>&6
12412 if test -z "$LTLD" -a "$cc_produces_so" = no; then
12413 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
12418 ld_dynamic_link_flags=
12420 # Check to see if it really is or isn't GNU ld.
12421 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12422 echo "configure:12423: checking if the linker is GNU ld" >&5
12423 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12424 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12429 echo "$ac_t""${xe_gnu_ld}" 1>&6
12431 case "$xehost_os" in
12432 amigaos* | sunos4*)
12433 # On these operating systems, we should treat GNU ld like the system ld.
12434 gnu_ld_acts_native=yes
12437 gnu_ld_acts_native=no
12441 if test "$cc_produces_so" = "yes"; then
12444 can_build_shared=yes
12446 # OK - only NOW do we futz about with ld.
12447 # See if the linker supports building shared libraries.
12448 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12449 echo "configure:12450: checking whether the linker supports shared libraries" >&5
12451 dll_ldflags=$LDFLAGS
12453 can_build_shared=yes
12454 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12455 # See if GNU ld supports shared libraries.
12456 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12458 dll_ldflags="-shared"
12464 # PORTME fill in a description of your system's linker (not GNU ld)
12465 case "$xehost_os" in
12475 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12476 # support. Future versions do this automatically, but an explicit c++rt0.o
12477 # doesn't break anything, and helps significantly (at the cost of a little
12482 dll_post="/usr/lib/c++rt0.o"
12485 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
12488 dll_ldflags="-Bshareable"
12491 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
12493 dll_ldflags="-shared"
12507 # Tested with NetBSD 1.2 ld
12522 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
12523 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12526 *gcc*) dll_ldflags="-shared"
12529 *) dll_ldflags="-G"
12535 if test "$XEGCC" = yes; then
12555 can_build_shared=no
12559 echo "$ac_t""${ld_shlibs}" 1>&6
12560 if test "$ld_shlibs" = "no"; then
12561 can_build_shared=no
12563 fi # End of if cc_produces_so = no
12566 if test "$xe_gnu_ld" = yes; then
12567 if test "$ld_shlibs" = yes; then
12568 ld_dynamic_link_flags="${wl}-export-dynamic"
12572 if test -z "$ld_dynamic_link_flags"; then
12573 case "$xehost_os" in
12575 ld_dynamic_link_flags=
12579 ld_dynamic_link_flags=
12583 ld_dynamic_link_flags=
12587 ld_dynamic_link_flags=
12591 ld_dynamic_link_flags=
12595 ld_dynamic_link_flags="${wl}-E"
12599 ld_dynamic_link_flags=
12603 ld_dynamic_link_flags=
12607 ld_dynamic_link_flags=
12611 ld_dynamic_link_flags=
12614 solaris2* | solaris7*)
12615 ld_dynamic_link_flags="${wl}-Bdynamic"
12618 sco3.2v5* | unixware* | sysv5* | sysv4*)
12619 ld_dynamic_link_flags="${wl}-Bexport"
12623 ld_dynamic_link_flags=
12627 ld_dynamic_link_flags=
12631 ld_dynamic_link_flags=
12635 fi # End of if -z ld_dynamic_link_flags
12636 fi # End of if test "$can_build_shared" = "yes"
12645 if test "$can_build_shared" = "yes"; then
12646 { test "$extra_verbose" = "yes" && cat << \EOF
12647 Defining HAVE_SHLIB
12649 cat >> confdefs.h <<\EOF
12650 #define HAVE_SHLIB 1
12654 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then
12655 echo " xemacs will be linked with \"sysdll.o\""
12657 extra_objs="$extra_objs emodules.o" && if test "$extra_verbose" = "yes"; then
12658 echo " xemacs will be linked with \"emodules.o\""
12660 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12661 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
12662 for ac_func in dlerror _dlerror
12664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12665 echo "configure:12666: checking for $ac_func" >&5
12667 cat > conftest.$ac_ext <<EOF
12668 #line 12669 "configure"
12669 #include "confdefs.h"
12670 /* System header to define __stub macros and hopefully few prototypes,
12671 which can conflict with char $ac_func(); below. */
12672 #include <assert.h>
12673 /* Override any gcc2 internal prototype to avoid an error. */
12674 /* We use char because int might match the return type of a gcc2
12675 builtin and then its argument prototype would still apply. */
12680 /* The GNU C library defines this for functions which it implements
12681 to always fail with ENOSYS. Some functions are actually named
12682 something starting with __ and the normal name is an alias. */
12683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12691 if { (eval echo configure:12692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12693 eval "ac_cv_func_$ac_func=yes"
12695 echo "configure: failed program was:" >&5
12696 cat conftest.$ac_ext >&5
12698 eval "ac_cv_func_$ac_func=no"
12702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12703 echo "$ac_t""yes" 1>&6
12704 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12705 { test "$extra_verbose" = "yes" && cat << EOF
12706 Defining $ac_tr_func
12708 cat >> confdefs.h <<EOF
12709 #define $ac_tr_func 1
12714 echo "$ac_t""no" 1>&6
12719 echo "configure: warning: disabling shared library support" 1>&2
12724 cat > conftest.$ac_ext <<EOF
12725 #line 12726 "configure"
12726 #include "confdefs.h"
12727 int main(int c,char *v[]){return 0;}
12729 if { (eval echo configure:12730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12734 echo "configure: failed program was:" >&5
12735 cat conftest.$ac_ext >&5
12739 echo "*** PANIC *** The C compiler can no longer build working executables."
12740 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
12741 echo "*** PANIC *** The most likely reason for this problem is that configure"
12742 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
12743 echo "*** PANIC *** found at run time."
12744 echo "*** PANIC ***"
12745 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
12746 echo "*** PANIC *** On other systems, try telling configure where to find the"
12747 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
12748 echo "*** PANIC ***"
12749 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
12750 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
12751 echo "*** PANIC *** on your system. Don't do that."
12756 if test "$win32_processes" = "yes"; then
12757 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
12758 echo " xemacs will be linked with \"process-nt.o\""
12761 { test "$extra_verbose" = "yes" && cat << \EOF
12762 Defining HAVE_UNIX_PROCESSES
12764 cat >> confdefs.h <<\EOF
12765 #define HAVE_UNIX_PROCESSES 1
12769 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
12770 echo " xemacs will be linked with \"process-unix.o\""
12777 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12782 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12787 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
12788 c_switch_general="$T"
12792 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12793 c_switch_window_system="$T"
12797 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12802 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
12803 ld_switch_general="$T"
12807 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12808 ld_switch_window_system="$T"
12812 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12817 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12818 ld_libs_general="$T"
12822 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
12823 ld_libs_window_system="$T"
12827 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12832 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
12833 internal_makefile_list="Makefile.in"
12834 SUBDIR_MAKEFILES=''
12835 test -d lock || mkdir lock
12836 for dir in $MAKE_SUBDIR; do
12837 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
12838 test -d "$d" || mkdir "$d"; cd "$d"
12840 * ) test -d "$dir" || mkdir "$dir" ;;
12844 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12845 SUBDIR_MAKEFILES="$T"
12849 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12850 internal_makefile_list="$T"
12857 for dir in src/s src/m; do
12858 if test ! -d "$dir" ; then
12859 echo Making symbolic link to "$srcdir/$dir"
12860 ${LN_S} "$srcdir/$dir" "$dir"
12864 if test "$extra_verbose" = "yes"; then
12866 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
12870 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
12871 echo "creating src/gdbinit"; echo ""
12872 echo "source $srcdir/src/gdbinit" > src/gdbinit
12875 if test "$__SUNPRO_C" = "yes"; then
12876 echo "creating .sbinit"; echo ""
12877 ( echo "# For use with Sun WorkShop's Source browser."
12878 echo "# See sbquery(1) and sbinit(4) for more information"
12879 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
12904 *\$* ) eval "PREFIX=$PREFIX" ;;
12912 EXEC_PREFIX=$exec_prefix
12914 case "$EXEC_PREFIX" in
12915 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
12926 *\$* ) eval "INFODIR=$INFODIR" ;;
12936 case "$INFOPATH" in
12937 *\$* ) eval "INFOPATH=$INFOPATH" ;;
12945 PACKAGE_PATH=$package_path
12947 case "$PACKAGE_PATH" in
12948 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
12959 *\$* ) eval "LISPDIR=$LISPDIR" ;;
12967 MODULEDIR=$moduledir
12969 case "$MODULEDIR" in
12970 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
12978 SITELISPDIR=$sitelispdir
12980 case "$SITELISPDIR" in
12981 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
12989 SITEMODULEDIR=$sitemoduledir
12991 case "$SITEMODULEDIR" in
12992 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
13003 *\$* ) eval "ETCDIR=$ETCDIR" ;;
13014 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
13025 *\$* ) eval "DOCDIR=$DOCDIR" ;;
13033 ARCHLIBDIR=$archlibdir
13035 case "$ARCHLIBDIR" in
13036 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
13060 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
13068 : ${XEMACS_CC:=$CC}
13072 if test "$with_site_lisp" = "no"; then
13073 { test "$extra_verbose" = "yes" && cat << \EOF
13074 Defining INHIBIT_SITE_LISP
13076 cat >> confdefs.h <<\EOF
13077 #define INHIBIT_SITE_LISP 1
13082 if test "$with_site_modules" = "no"; then
13083 { test "$extra_verbose" = "yes" && cat << \EOF
13084 Defining INHIBIT_SITE_MODULES
13086 cat >> confdefs.h <<\EOF
13087 #define INHIBIT_SITE_MODULES 1
13095 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13096 ac_configure_args="$T"
13098 { test "$extra_verbose" = "yes" && cat << EOF
13099 Defining EMACS_CONFIGURATION = "$canonical"
13101 cat >> confdefs.h <<EOF
13102 #define EMACS_CONFIGURATION "$canonical"
13106 { test "$extra_verbose" = "yes" && cat << EOF
13107 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
13109 cat >> confdefs.h <<EOF
13110 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
13114 { test "$extra_verbose" = "yes" && cat << EOF
13115 Defining config_machfile = "$machfile"
13117 cat >> confdefs.h <<EOF
13118 #define config_machfile "$machfile"
13122 { test "$extra_verbose" = "yes" && cat << EOF
13123 Defining config_opsysfile = "$opsysfile"
13125 cat >> confdefs.h <<EOF
13126 #define config_opsysfile "$opsysfile"
13133 { test "$extra_verbose" = "yes" && cat << EOF
13134 Defining LD_SWITCH_X_SITE = $null_string
13136 cat >> confdefs.h <<EOF
13137 #define LD_SWITCH_X_SITE $null_string
13141 { test "$extra_verbose" = "yes" && cat << EOF
13142 Defining LD_SWITCH_X_SITE_AUX = $null_string
13144 cat >> confdefs.h <<EOF
13145 #define LD_SWITCH_X_SITE_AUX $null_string
13149 { test "$extra_verbose" = "yes" && cat << EOF
13150 Defining C_SWITCH_X_SITE = $null_string
13152 cat >> confdefs.h <<EOF
13153 #define C_SWITCH_X_SITE $null_string
13157 { test "$extra_verbose" = "yes" && cat << EOF
13158 Defining LD_SWITCH_SITE = $null_string
13160 cat >> confdefs.h <<EOF
13161 #define LD_SWITCH_SITE $null_string
13165 { test "$extra_verbose" = "yes" && cat << EOF
13166 Defining C_SWITCH_SITE = $null_string
13168 cat >> confdefs.h <<EOF
13169 #define C_SWITCH_SITE $null_string
13175 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13176 Defining GNU_MALLOC
13178 cat >> confdefs.h <<\EOF
13179 #define GNU_MALLOC 1
13183 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13184 Defining USE_SYSTEM_MALLOC
13186 cat >> confdefs.h <<\EOF
13187 #define USE_SYSTEM_MALLOC 1
13191 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13192 Defining USE_DEBUG_MALLOC
13194 cat >> confdefs.h <<\EOF
13195 #define USE_DEBUG_MALLOC 1
13199 { test "$extra_verbose" = "yes" && cat << \EOF
13200 Defining USE_SYSTEM_MALLOC
13202 cat >> confdefs.h <<\EOF
13203 #define USE_SYSTEM_MALLOC 1
13208 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13211 cat >> confdefs.h <<\EOF
13216 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13219 cat >> confdefs.h <<\EOF
13224 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13225 Defining EXTERNAL_WIDGET
13227 cat >> confdefs.h <<\EOF
13228 #define EXTERNAL_WIDGET 1
13232 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13233 Defining NO_DOC_FILE
13235 cat >> confdefs.h <<\EOF
13236 #define NO_DOC_FILE 1
13240 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13243 cat >> confdefs.h <<\EOF
13248 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13251 cat >> confdefs.h <<\EOF
13256 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13257 Defining MAIL_USE_POP
13259 cat >> confdefs.h <<\EOF
13260 #define MAIL_USE_POP 1
13264 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13267 cat >> confdefs.h <<\EOF
13272 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13275 cat >> confdefs.h <<\EOF
13280 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13281 Defining USE_UNION_TYPE
13283 cat >> confdefs.h <<\EOF
13284 #define USE_UNION_TYPE 1
13291 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
13293 echo "uname -a: `uname -a`"
13296 echo "$0 $quoted_arguments"
13299 if test ! -z ${emacs_beta_version} ; then
13300 if test -z "${emacs_is_beta}" ; then
13301 xemacs_betaname=".${emacs_beta_version}"
13303 xemacs_betaname="-b${emacs_beta_version}"
13312 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13314 Where should the build process find the source code? $srcdir
13315 What installation prefix should install use? $prefix
13316 What operating system and machine description files should XEmacs use?
13317 \`$opsysfile' and \`$machfile'
13318 What compiler should XEmacs be built with? $CC $CFLAGS
13319 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13320 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13321 What window system should XEmacs use? ${window_system}"
13322 if test "$with_x11" = "yes"; then
13323 echo " Where do we find X Windows header files? $x_includes"
13324 echo " Where do we find X Windows libraries? $x_libraries"
13326 if test -n "$site_includes"; then
13327 echo " Additional header files: $site_includes"
13329 if test -n "$site_libraries"; then
13330 echo " Additional libraries: $site_libraries"
13332 if test -n "$site_prefixes"; then
13333 echo " Additional prefixes: $site_prefixes"
13335 if test -n "$runpath"; then
13336 echo " Runtime library search path: $runpath"
13338 test "$with_dnet" = yes && echo " Compiling in support for DNET."
13339 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
13340 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
13341 if test "$with_xmu" != yes -a "$with_x11" = yes; then
13342 echo " No Xmu; substituting equivalent routines."
13345 if test "$with_xpm" = yes; then
13346 echo " Compiling in support for XPM images."
13347 elif test "$with_x11" = yes; then
13348 echo " --------------------------------------------------------------------"
13349 echo " WARNING: Compiling without XPM support."
13350 if test "$xpm_problem" != ""; then
13351 echo " Reason: $xpm_problem"
13353 echo " WARNING: You should strongly consider installing XPM."
13354 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
13355 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13356 echo " --------------------------------------------------------------------"
13358 if test "$with_png" = yes; then
13359 echo " Compiling in support for PNG image handling."
13360 elif test "$window_system" != "none"; then
13361 echo " --------------------------------------------------------------------"
13362 echo " WARNING: Compiling without PNG image support."
13363 if test "$png_problem" != ""; then
13364 echo " Reason: $png_problem"
13366 echo " WARNING: You should strongly consider installing the PNG libraries."
13367 echo " WARNING: Otherwise certain images and glyphs may not display."
13368 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13369 echo " --------------------------------------------------------------------"
13371 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13372 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13373 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13374 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13375 case "$with_sound" in
13376 nas ) echo " Compiling in network sound (NAS) support." ;;
13377 native ) echo " Compiling in native sound support." ;;
13378 both ) echo " Compiling in both network and native sound support." ;;
13380 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13382 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13383 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13384 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
13386 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
13388 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
13389 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
13391 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
13392 test "$with_file_coding" = yes && echo " Compiling in File coding support."
13393 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
13394 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
13395 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
13396 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
13397 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
13398 if test "$with_wnn" = yes; then
13399 echo " Compiling in support for the WNN input method on Mule."
13400 test "$with_wnn6" = yes && echo " Using WNN version 6."
13402 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
13404 test "$with_cde" = yes && echo " Compiling in support for CDE."
13405 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
13406 test "$with_offix" = yes && echo " Compiling in support for OffiX."
13407 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
13408 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
13409 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
13410 case "$with_menubars" in
13411 lucid ) echo " Using Lucid menubars." ;;
13412 motif ) echo " Using Motif menubars."
13413 echo " *WARNING* The Motif menubar implementation is currently buggy."
13414 echo " We recommend using the Lucid menubar instead."
13415 echo " Re-run configure with --with-menubars='lucid'." ;;
13417 case "$with_scrollbars" in
13418 lucid ) echo " Using Lucid scrollbars." ;;
13419 motif ) echo " Using Motif scrollbars." ;;
13420 athena ) echo " Using Athena scrollbars." ;;
13421 athena3d ) echo " Using Athena-3d scrollbars." ;;
13423 case "$with_dialogs" in
13425 echo " Using Motif dialog boxes."
13426 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
13427 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
13428 echo " We recommend using the Athena dialog boxes instead."
13429 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
13430 echo " Read the PROBLEMS file for more information."
13433 athena ) echo " Using Athena dialog boxes." ;;
13434 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13436 test "$with_shlib" = "yes" && echo " Compiling in DLL support."
13437 test "$with_clash_detection" = yes && \
13438 echo " Clash detection will use \"$lockdir\" for locking files."
13439 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13440 test "$with_pop" = yes && echo " Using POP for mail access."
13441 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13442 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
13443 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
13444 test "$debug" = yes && echo " Compiling in extra code for debugging."
13445 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13446 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
13447 != "no no no no no"; then
13448 echo " WARNING: ---------------------------------------------------------"
13449 echo " WARNING: Compiling in support for runtime error checking."
13450 echo " WARNING: XEmacs will run noticeably more slowly as a result."
13451 echo " WARNING: Error checking is on by default for XEmacs beta releases."
13452 echo " WARNING: ---------------------------------------------------------"
13455 ) | tee -a Installation
13459 # Remove any trailing slashes in these variables.
13460 test -n "$prefix" &&
13461 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13462 test -n "$exec_prefix" &&
13463 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13466 for file in $internal_makefile_list; do
13467 test "$file" = src/Makefile.in && \
13468 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13469 ac_output_files="${ac_output_files+$ac_output_files }$file"
13471 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13472 if test "$with_shlib" = "yes"; then
13473 ac_output_files="$ac_output_files lib-src/ellcc.h"
13478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13480 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13481 # Let make expand exec_prefix.
13482 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13484 # Any assignment to VPATH causes Sun make to only execute
13485 # the first set of double-colon rules, so remove it if not needed.
13486 # If there is a colon in the path, we need to keep it.
13487 if test "x$srcdir" = x.; then
13488 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13491 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13493 DEFS=-DHAVE_CONFIG_H
13495 # Without the "./", some shells look in PATH for config.status.
13496 : ${CONFIG_STATUS=./config.status}
13498 echo creating $CONFIG_STATUS
13499 rm -f $CONFIG_STATUS
13500 cat > $CONFIG_STATUS <<EOF
13502 # Generated automatically by configure.
13503 # Run this file to recreate the current configuration.
13504 # This directory was configured as follows,
13505 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13507 # $0 $ac_configure_args
13509 # Compiler output produced by configure, useful for debugging
13510 # configure, is in ./config.log if it exists.
13512 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13515 case "\$ac_option" in
13516 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13517 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13518 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13519 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13520 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13522 -help | --help | --hel | --he | --h)
13523 echo "\$ac_cs_usage"; exit 0 ;;
13524 *) echo "\$ac_cs_usage"; exit 1 ;;
13528 ac_given_srcdir=$srcdir
13529 ac_given_INSTALL="$INSTALL"
13531 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13533 cat >> $CONFIG_STATUS <<EOF
13535 # Protect against being on the right side of a sed subst in config.status.
13536 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13537 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13541 s%@CFLAGS@%$CFLAGS%g
13542 s%@CPPFLAGS@%$CPPFLAGS%g
13543 s%@CXXFLAGS@%$CXXFLAGS%g
13544 s%@FFLAGS@%$FFLAGS%g
13546 s%@LDFLAGS@%$LDFLAGS%g
13548 s%@exec_prefix@%$exec_prefix%g
13549 s%@prefix@%$prefix%g
13550 s%@program_transform_name@%$program_transform_name%g
13551 s%@bindir@%$bindir%g
13552 s%@sbindir@%$sbindir%g
13553 s%@libexecdir@%$libexecdir%g
13554 s%@datadir@%$datadir%g
13555 s%@sysconfdir@%$sysconfdir%g
13556 s%@sharedstatedir@%$sharedstatedir%g
13557 s%@localstatedir@%$localstatedir%g
13558 s%@libdir@%$libdir%g
13559 s%@includedir@%$includedir%g
13560 s%@oldincludedir@%$oldincludedir%g
13561 s%@infodir@%$infodir%g
13562 s%@mandir@%$mandir%g
13564 s%@blddir@%$blddir%g
13567 s%@start_flags@%$start_flags%g
13568 s%@ld_switch_shared@%$ld_switch_shared%g
13569 s%@start_files@%$start_files%g
13571 s%@lib_gcc@%$lib_gcc%g
13572 s%@RANLIB@%$RANLIB%g
13573 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13574 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13575 s%@INSTALL_DATA@%$INSTALL_DATA%g
13577 s%@SET_MAKE@%$SET_MAKE%g
13578 s%@X_CFLAGS@%$X_CFLAGS%g
13579 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13580 s%@X_LIBS@%$X_LIBS%g
13581 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13582 s%@install_pp@%$install_pp%g
13583 s%@libs_xauth@%$libs_xauth%g
13584 s%@dnd_objs@%$dnd_objs%g
13585 s%@lwlib_objs@%$lwlib_objs%g
13586 s%@ALLOCA@%$ALLOCA%g
13587 s%@dll_ld@%$dll_ld%g
13588 s%@dll_cflags@%$dll_cflags%g
13589 s%@dll_ldflags@%$dll_ldflags%g
13590 s%@dll_post@%$dll_post%g
13591 s%@dll_ldo@%$dll_ldo%g
13592 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
13593 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
13594 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
13595 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
13596 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
13597 s%@PROGNAME@%$PROGNAME%g
13598 s%@version@%$version%g
13599 s%@configuration@%$configuration%g
13600 s%@canonical@%$canonical%g
13601 s%@srcdir@%$srcdir%g
13602 s%@pkgdir@%$pkgdir%g
13603 s%@statedir@%$statedir%g
13604 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
13605 s%@PREFIX@%$PREFIX%g
13606 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
13607 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
13608 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
13609 s%@INFODIR@%$INFODIR%g
13610 s%@infopath@%$infopath%g
13611 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
13612 s%@INFOPATH@%$INFOPATH%g
13613 s%@package_path@%$package_path%g
13614 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
13615 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
13616 s%@lispdir@%$lispdir%g
13617 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
13618 s%@LISPDIR@%$LISPDIR%g
13619 s%@moduledir@%$moduledir%g
13620 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
13621 s%@MODULEDIR@%$MODULEDIR%g
13622 s%@sitelispdir@%$sitelispdir%g
13623 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
13624 s%@SITELISPDIR@%$SITELISPDIR%g
13625 s%@sitemoduledir@%$sitemoduledir%g
13626 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
13627 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
13628 s%@etcdir@%$etcdir%g
13629 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
13630 s%@ETCDIR@%$ETCDIR%g
13631 s%@lockdir@%$lockdir%g
13632 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
13633 s%@LOCKDIR@%$LOCKDIR%g
13634 s%@docdir@%$docdir%g
13635 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
13636 s%@DOCDIR@%$DOCDIR%g
13637 s%@archlibdir@%$archlibdir%g
13638 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
13639 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
13640 s%@bitmapdir@%$bitmapdir%g
13641 s%@extra_objs@%$extra_objs%g
13642 s%@machfile@%$machfile%g
13643 s%@opsysfile@%$opsysfile%g
13644 s%@c_switch_general@%$c_switch_general%g
13645 s%@c_switch_window_system@%$c_switch_window_system%g
13646 s%@c_switch_all@%$c_switch_all%g
13647 s%@ld_switch_general@%$ld_switch_general%g
13648 s%@ld_switch_window_system@%$ld_switch_window_system%g
13649 s%@ld_switch_all@%$ld_switch_all%g
13650 s%@ld_libs_general@%$ld_libs_general%g
13651 s%@ld_libs_window_system@%$ld_libs_window_system%g
13652 s%@ld_libs_all@%$ld_libs_all%g
13653 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
13654 s%@native_sound_lib@%$native_sound_lib%g
13655 s%@sound_cflags@%$sound_cflags%g
13656 s%@dynodump_arch@%$dynodump_arch%g
13657 s%@XEMACS_CC@%$XEMACS_CC%g
13658 s%@internal_makefile_list@%$internal_makefile_list%g
13663 cat >> $CONFIG_STATUS <<\EOF
13665 # Split the substitutions into bite-sized pieces for seds with
13666 # small command number limits, like on Digital OSF/1 and HP-UX.
13667 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13668 ac_file=1 # Number of current file.
13669 ac_beg=1 # First line for current file.
13670 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13673 while $ac_more_lines; do
13674 if test $ac_beg -gt 1; then
13675 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13677 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13679 if test ! -s conftest.s$ac_file; then
13680 ac_more_lines=false
13681 rm -f conftest.s$ac_file
13683 if test -z "$ac_sed_cmds"; then
13684 ac_sed_cmds="sed -f conftest.s$ac_file"
13686 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13688 ac_file=`expr $ac_file + 1`
13690 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13693 if test -z "$ac_sed_cmds"; then
13698 cat >> $CONFIG_STATUS <<EOF
13700 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
13702 cat >> $CONFIG_STATUS <<\EOF
13703 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13704 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13706 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13707 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13708 *) ac_file_in="${ac_file}.in" ;;
13711 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13713 # Remove last slash and all that follows it. Not all systems have dirname.
13714 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13715 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13716 # The file is in a subdirectory.
13717 test ! -d "$ac_dir" && mkdir "$ac_dir"
13718 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13719 # A "../" for each directory in $ac_dir_suffix.
13720 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13722 ac_dir_suffix= ac_dots=
13725 case "$ac_given_srcdir" in
13727 if test -z "$ac_dots"; then top_srcdir=.
13728 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13729 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13730 *) # Relative path.
13731 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13732 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13735 case "$ac_given_INSTALL" in
13736 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13737 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13740 echo creating "$ac_file"
13742 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13744 *Makefile*) ac_comsub="1i\\
13745 # $configure_input" ;;
13749 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13751 s%@configure_input@%$configure_input%g
13752 s%@srcdir@%$srcdir%g
13753 s%@top_srcdir@%$top_srcdir%g
13754 s%@INSTALL@%$INSTALL%g
13755 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13759 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13760 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13762 # ac_d sets the value in "#define NAME VALUE" lines.
13763 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13764 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13767 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13768 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13769 ac_uB='\([ ]\)%\1#\2define\3'
13772 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13773 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13774 ac_eB='$%\1#\2define\3'
13778 if test "${CONFIG_HEADERS+set}" != set; then
13780 cat >> $CONFIG_STATUS <<EOF
13781 CONFIG_HEADERS="src/config.h lwlib/config.h"
13783 cat >> $CONFIG_STATUS <<\EOF
13785 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13786 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13788 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13789 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13790 *) ac_file_in="${ac_file}.in" ;;
13793 echo creating $ac_file
13795 rm -f conftest.frag conftest.in conftest.out
13796 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13797 cat $ac_file_inputs > conftest.in
13801 # Transform confdefs.h into a sed script conftest.vals that substitutes
13802 # the proper values into config.h.in to produce config.h. And first:
13803 # Protect against being on the right side of a sed subst in config.status.
13804 # Protect against being in an unquoted here document in config.status.
13805 rm -f conftest.vals
13806 cat > conftest.hdr <<\EOF
13809 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13813 sed -n -f conftest.hdr confdefs.h > conftest.vals
13816 # This sed command replaces #undef with comments. This is necessary, for
13817 # example, in the case of _POSIX_SOURCE, which is predefined and required
13818 # on some systems where configure will not decide to define it.
13819 cat >> conftest.vals <<\EOF
13820 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13823 # Break up conftest.vals because some shells have a limit on
13824 # the size of here documents, and old seds have small limits too.
13826 rm -f conftest.tail
13829 ac_lines=`grep -c . conftest.vals`
13830 # grep -c gives empty output for an empty file on some AIX systems.
13831 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13832 # Write a limited-size here document to conftest.frag.
13833 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13834 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13836 sed -f conftest.frag conftest.in > conftest.out
13838 mv conftest.out conftest.in
13839 ' >> $CONFIG_STATUS
13840 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13841 rm -f conftest.vals
13842 mv conftest.tail conftest.vals
13844 rm -f conftest.vals
13846 cat >> $CONFIG_STATUS <<\EOF
13847 rm -f conftest.frag conftest.h
13848 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13849 cat conftest.in >> conftest.h
13851 if cmp -s $ac_file conftest.h 2>/dev/null; then
13852 echo "$ac_file is unchanged"
13855 # Remove last slash and all that follows it. Not all systems have dirname.
13856 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13857 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13858 # The file is in a subdirectory.
13859 test ! -d "$ac_dir" && mkdir "$ac_dir"
13862 mv conftest.h $ac_file
13867 cat >> $CONFIG_STATUS <<EOF
13869 top_srcdir="$srcdir"
13870 MAKE_SUBDIR="$MAKE_SUBDIR"
13873 cat >> $CONFIG_STATUS <<\EOF
13874 for dir in . $MAKE_SUBDIR; do
13879 sed -e '/^# Generated/d' \
13880 -e 's%/\*\*/#.*%%' \
13895 echo creating $dir/Makefile
13896 $CPP -I. -I${top_srcdir}/src junk.c \
13897 | sed -e 's/^\#.*//' \
13898 -e 's/^[ ][ ]*$//'\
13900 | sed -n -e '/^..*$/p' \
13906 chmod 444 Makefile.new
13907 mv -f Makefile.new Makefile
13909 echo creating $dir/GNUmakefile
13910 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
13911 | sed -e 's/^\#.*//' \
13912 -e 's/^[ ][ ]*$//'\
13914 | sed -n -e '/^..*$/p' \
13920 chmod 444 Makefile.new
13921 mv -f Makefile.new GNUmakefile
13927 sed < config.status >> lib-src/config.values \
13928 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
13929 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
13930 -e 's/^\([^ ]*\) $/\1 ""/' \
13936 chmod +x $CONFIG_STATUS
13937 rm -fr confdefs* $ac_clean_files
13938 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1