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}'
245 with_site_modules='yes'
251 cpp='' cppflags='' libs='' ldflags=''
256 with_system_malloc='default'
257 with_dlmalloc='default'
270 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
275 | --no-cr | --no-c) ;;
276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
279 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
280 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
284 while test $# != 0; do
287 --no-create|--no-recursion) ;;
291 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
292 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
296 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
297 val="yes" valomitted=yes
302 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
304 case "${valomitted}-${opt}" in yes-without_* )
305 opt=`echo $opt | sed 's/without/with/'`
306 valomitted="no" val="no" ;;
313 with_site_modules | \
362 memory_usage_stats | \
363 with_clash_detection | \
367 y | ye | yes ) val=yes ;;
369 * ) (echo "$progname: Usage error:"
370 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
371 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
373 eval "$opt=\"$val\"" ;;
391 site_runtime_libraries )
392 if test "$valomitted" = "yes" ; then
393 if test "$#" = 0 ; then
394 (echo "$progname: Usage error:"
395 echo " " "The \`--$optname' option requires a value."
396 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
405 with_debug_malloc | use_debug_malloc | \
406 with_system_malloc | use_system_malloc )
408 y | ye | yes ) val=yes ;;
410 d | de | def | defa | defau | defaul | default ) val=default ;;
411 * ) (echo "$progname: Usage error:"
412 echo " " "The \`--$optname' option requires one of these values:
413 \`yes', \`no', or \`default'."
414 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
416 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
421 with_database_berkdb=no
423 with_database_gnudbm=no
424 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
427 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
428 d | db | dbm ) with_database_dbm=yes ;;
429 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
430 * ) (echo "$progname: Usage error:"
431 echo " " "The \`--$optname' option value
432 must be either \`no' or a comma-separated list
433 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
434 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
437 if test "$with_database_dbm" = "yes" -a \
438 "$with_database_gnudbm" = "yes"; then
439 (echo "$progname: Usage error:"
440 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
441 with the \`--$optname' option."
442 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
448 y | ye | yes ) val=native ;;
449 n | no | non | none ) val=no;;
450 na | nat | nati | nativ | native ) val=native ;;
451 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
452 b | bo | bot | both ) val=both;;
453 * ) (echo "$progname: Usage error:"
454 echo " " "The \`--$optname' option must have one of these values:
455 \`native', \`nas', \`both', or \`none'."
456 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
463 y | ye | yes ) val=yes ;;
464 n | no | non | none ) val=no ;;
465 x | xl | xli | xlib ) val=xlib ;;
466 m | mo | mot | moti | motif ) val=motif ;;
467 * ) (echo "$progname: Usage error:"
468 echo " " "The \`--$optname' option must have one of these values:
469 \`motif', \`xlib', \`yes', or \`no'."
470 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
480 * ) (echo "$progname: Usage error:"
481 echo " " "The \`--$optname' option must have one of these values:
482 \`lockf', \`flock', or \`file'."
483 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
490 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
492 n | no | non | none ) new_default=no ;;
493 a | al | all ) new_default=yes ;;
495 extents ) error_check_extents=yes ;;
496 noextents ) error_check_extents=no ;;
498 typecheck ) error_check_typecheck=yes ;;
499 notypecheck ) error_check_typecheck=no ;;
501 bufpos ) error_check_bufpos=yes ;;
502 nobufpos ) error_check_bufpos=no ;;
504 gc ) error_check_gc=yes ;;
505 nogc ) error_check_gc=no ;;
507 malloc ) error_check_malloc=yes ;;
508 nomalloc ) error_check_malloc=no ;;
510 byte_code ) error_check_byte_code=yes ;;
511 nobyte_code ) error_check_byte_code=no ;;
513 * ) bogus_error_check=yes ;;
515 if test "$bogus_error_check" -o \
516 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
517 if test "$error_check_default" = yes ; then
518 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'."
520 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'."
522 (echo "$progname: Usage error:"
523 echo " " "Valid types for the \`--$optname' option are:
525 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
526 elif test -n "$new_default" ; then
527 error_check_extents=$new_default
528 error_check_typecheck=$new_default
529 error_check_bufpos=$new_default
530 error_check_gc=$new_default
531 error_check_malloc=$new_default
532 error_check_byte_code=$new_default
533 new_default= # reset this
540 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
541 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
542 archlibdir | docdir | package_path )
543 if test "$valomitted" = "yes"; then
544 if test "$#" = 0; then
545 (echo "$progname: Usage error:"
546 echo " " "The \`--$optname' option requires a value."
547 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
554 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
555 Defining EXEC_PREFIX_USER_DEFINED
557 cat >> confdefs.h <<\EOF
558 #define EXEC_PREFIX_USER_DEFINED 1
562 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
563 Defining LISPDIR_USER_DEFINED
565 cat >> confdefs.h <<\EOF
566 #define LISPDIR_USER_DEFINED 1
570 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
571 Defining SITELISPDIR_USER_DEFINED
573 cat >> confdefs.h <<\EOF
574 #define SITELISPDIR_USER_DEFINED 1
578 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
579 Defining MODULEDIR_USER_DEFINED
581 cat >> confdefs.h <<\EOF
582 #define MODULEDIR_USER_DEFINED 1
586 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
587 Defining ETCDIR_USER_DEFINED
589 cat >> confdefs.h <<\EOF
590 #define ETCDIR_USER_DEFINED 1
594 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
595 Defining INFODIR_USER_DEFINED
597 cat >> confdefs.h <<\EOF
598 #define INFODIR_USER_DEFINED 1
602 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
603 Defining INFOPATH_USER_DEFINED
605 cat >> confdefs.h <<\EOF
606 #define INFOPATH_USER_DEFINED 1
610 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
611 Defining PACKAGE_PATH_USER_DEFINED
613 cat >> confdefs.h <<\EOF
614 #define PACKAGE_PATH_USER_DEFINED 1
619 { test "$extra_verbose" = "yes" && cat << \EOF
620 Defining INFODIR_USER_DEFINED
622 cat >> confdefs.h <<\EOF
623 #define INFODIR_USER_DEFINED 1
627 { test "$extra_verbose" = "yes" && cat << \EOF
628 Defining LISPDIR_USER_DEFINED
630 cat >> confdefs.h <<\EOF
631 #define LISPDIR_USER_DEFINED 1
635 { test "$extra_verbose" = "yes" && cat << \EOF
636 Defining MODULEDIR_USER_DEFINED
638 cat >> confdefs.h <<\EOF
639 #define MODULEDIR_USER_DEFINED 1
643 { test "$extra_verbose" = "yes" && cat << \EOF
644 Defining ETCDIR_USER_DEFINED
646 cat >> confdefs.h <<\EOF
647 #define ETCDIR_USER_DEFINED 1
651 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
652 Defining LOCKDIR_USER_DEFINED
654 cat >> confdefs.h <<\EOF
655 #define LOCKDIR_USER_DEFINED 1
659 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
660 Defining DOCDIR_USER_DEFINED
662 cat >> confdefs.h <<\EOF
663 #define DOCDIR_USER_DEFINED 1
667 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
668 Defining ARCHLIBDIR_USER_DEFINED
670 cat >> confdefs.h <<\EOF
671 #define ARCHLIBDIR_USER_DEFINED 1
680 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
683 "with_scrollbars" | \
687 l | lu | luc | luci | lucid ) val=lucid ;;
688 m | mo | mot | moti | motif ) val=motif ;;
689 athena3d | athena-3d ) val=athena3d ;;
690 a | at | ath | athe | athen | athena ) val=athena ;;
691 n | no | non | none ) val=no ;;
692 * ) (echo "$progname: Usage error:"
693 echo " " "The \`--$optname' option must have one of these values:
694 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
695 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
702 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
705 * ) (echo "$progname: Usage error:"
706 echo " " "Unrecognized option: $arg"
707 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
712 *-*-*) configuration="$arg" ;;
714 *) (echo "$progname: Usage error:"
715 echo " " "Unrecognized argument: $arg"
716 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
722 test -n "$cpp" && CPP="$cpp"
723 test -n "$cppflags" && CPPFLAGS="$cppflags"
724 test -n "$libs" && LIBS="$libs"
725 test -n "$ldflags" && LDFLAGS="$ldflags"
727 eval set x "$quoted_arguments"; shift
729 test "$extra_verbose" = "yes" && verbose=yes
731 test -n "$with_x" && with_x11="$with_x"
733 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
734 test "$with_system_malloc" = "default" && with_system_malloc=yes
739 if test "$with_cde $with_tooltalk" = "yes no"; then
740 (echo "$progname: Usage error:"
741 echo " " "--with-cde requires --with-tooltalk"
742 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
743 elif test "$with_tooltalk" = "no" ; then with_cde=no
744 elif test "$with_cde" = "yes"; then with_tooltalk=yes
751 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
752 if test -f "$dir/src/lisp.h" -a \
753 -f "$dir/lisp/version.el" ; then
758 if test -z "$srcdir" ; then
759 (echo "$progname: Usage error:"
760 echo " " "Neither the current directory nor its parent seem to
761 contain the XEmacs sources. If you do not want to build XEmacs in its
762 source tree, you should run \`$progname' in the directory in which
763 you wish to build XEmacs, using the \`--srcdir' option to say where the
764 sources may be found."
765 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
770 if test ! -f "$srcdir/src/lisp.h" -o \
771 ! -f "$srcdir/lisp/version.el" ; then
772 (echo "$progname: Usage error:"
773 echo " " "The directory specified with the \`--srcdir' option,
774 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
775 either run the \`$progname' script at the top of the XEmacs source
776 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
777 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
782 if test -z "$configuration"; then
783 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
784 if test -z "$configuration"; then
785 (echo "$progname: Usage error:"
786 echo " " "XEmacs has not been ported to this host type.
787 Try explicitly specifying the CONFIGURATION when rerunning configure."
788 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
792 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
793 echo "configure:794: checking whether ln -s works" >&5
796 if ln -s X conftestdata 2>/dev/null
799 ac_cv_prog_LN_S="ln -s"
803 LN_S="$ac_cv_prog_LN_S"
804 if test "$ac_cv_prog_LN_S" = "ln -s"; then
805 echo "$ac_t""yes" 1>&6
807 echo "$ac_t""no" 1>&6
811 for dir in lisp etc man info; do
812 if test ! -d "$dir" ; then
813 echo Making symbolic link to "$srcdir/$dir"
814 ${LN_S} "$srcdir/$dir" "$dir"
819 absolute_pwd="`pwd`";
820 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
822 else blddir="$absolute_pwd"; if test -d "/net"; then
823 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
824 blddir=`echo "$blddir" | \
825 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
832 . ) srcdir="$blddir" ;;
833 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
834 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
835 srcdir=`echo "$srcdir" | \
836 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
840 if test `pwd` != `sh -c cd $srcdir && pwd` \
841 && test -f "$srcdir/src/config.h"; then
842 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
843 echo " as a build directory right now; it has been configured in its own"
844 echo " right. To configure in another directory as well, you MUST"
845 echo " use GNU make. If you do not have GNU make, then you must"
846 echo " now do \`make distclean' in $srcdir,"
847 echo " and then run $progname again.") >&2
848 extrasub='/^VPATH[ ]*=/c\
854 vpath %.in $(srcdir)'
857 . "$srcdir/version.sh" || exit 1;
858 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
859 : "${extra_verbose=$beta}"
860 version="${emacs_major_version}.${emacs_minor_version}"
861 { test "$extra_verbose" = "yes" && cat << EOF
862 Defining EMACS_MAJOR_VERSION = $emacs_major_version
864 cat >> confdefs.h <<EOF
865 #define EMACS_MAJOR_VERSION $emacs_major_version
869 { test "$extra_verbose" = "yes" && cat << EOF
870 Defining EMACS_MINOR_VERSION = $emacs_minor_version
872 cat >> confdefs.h <<EOF
873 #define EMACS_MINOR_VERSION $emacs_minor_version
877 if test -n "$emacs_beta_version" ; then
878 if test "$beta" = "yes"; then
879 version="${version}-b${emacs_beta_version}"
880 { test "$extra_verbose" = "yes" && cat << EOF
881 Defining EMACS_BETA_VERSION = $emacs_beta_version
883 cat >> confdefs.h <<EOF
884 #define EMACS_BETA_VERSION $emacs_beta_version
889 version="${version}.${emacs_beta_version}"
890 { test "$extra_verbose" = "yes" && cat << EOF
891 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
893 cat >> confdefs.h <<EOF
894 #define EMACS_PATCH_LEVEL $emacs_beta_version
900 { test "$extra_verbose" = "yes" && cat << EOF
901 Defining XEMACS_CODENAME = "$xemacs_codename"
903 cat >> confdefs.h <<EOF
904 #define XEMACS_CODENAME "$xemacs_codename"
908 { test "$extra_verbose" = "yes" && cat << EOF
909 Defining EMACS_VERSION = "$version"
911 cat >> confdefs.h <<EOF
912 #define EMACS_VERSION "$version"
917 if test "$with_infodock" = "yes"; then
918 if test ! -f ../../ID-INSTALL; then
919 echo "Cannot build InfoDock without InfoDock sources"
924 if test "$with_infodock" = "yes"; then
925 { test "$extra_verbose" = "yes" && cat << EOF
926 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
928 cat >> confdefs.h <<EOF
929 #define INFODOCK_MAJOR_VERSION $infodock_major_version
933 { test "$extra_verbose" = "yes" && cat << EOF
934 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
936 cat >> confdefs.h <<EOF
937 #define INFODOCK_MINOR_VERSION $infodock_minor_version
941 { test "$extra_verbose" = "yes" && cat << EOF
942 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
944 cat >> confdefs.h <<EOF
945 #define INFODOCK_BUILD_VERSION $infodock_build_version
949 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
951 CPPFLAGS="$CPPFLAGS -DINFODOCK"
956 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
957 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
958 Defining ERROR_CHECK_EXTENTS
960 cat >> confdefs.h <<\EOF
961 #define ERROR_CHECK_EXTENTS 1
965 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
966 Defining ERROR_CHECK_TYPECHECK
968 cat >> confdefs.h <<\EOF
969 #define ERROR_CHECK_TYPECHECK 1
973 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
974 Defining ERROR_CHECK_BUFPOS
976 cat >> confdefs.h <<\EOF
977 #define ERROR_CHECK_BUFPOS 1
981 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
982 Defining ERROR_CHECK_GC
984 cat >> confdefs.h <<\EOF
985 #define ERROR_CHECK_GC 1
989 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
990 Defining ERROR_CHECK_MALLOC
992 cat >> confdefs.h <<\EOF
993 #define ERROR_CHECK_MALLOC 1
997 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
998 Defining ERROR_CHECK_BYTE_CODE
1000 cat >> confdefs.h <<\EOF
1001 #define ERROR_CHECK_BYTE_CODE 1
1005 if test "${debug:=$beta}" = "yes"; then
1006 use_assertions=yes memory_usage_stats=yes
1007 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1008 echo " xemacs will be linked with \"debug.o\""
1010 { test "$extra_verbose" = "yes" && cat << \EOF
1011 Defining DEBUG_XEMACS
1013 cat >> confdefs.h <<\EOF
1014 #define DEBUG_XEMACS 1
1019 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1020 Defining USE_ASSERTIONS
1022 cat >> confdefs.h <<\EOF
1023 #define USE_ASSERTIONS 1
1027 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1028 Defining MEMORY_USAGE_STATS
1030 cat >> confdefs.h <<\EOF
1031 #define MEMORY_USAGE_STATS 1
1037 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1038 echo "configure:1039: checking "host system type"" >&5
1039 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1040 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1041 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1042 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1043 echo "$ac_t""$configuration" 1>&6
1051 case "$canonical" in
1052 sparc-*-* ) machine=sparc ;;
1053 alpha*-*-* ) machine=alpha ;;
1054 vax-*-* ) machine=vax ;;
1055 mips-dec-* ) machine=pmax ;;
1056 mips-sgi-* ) machine=iris4d ;;
1057 romp-ibm-* ) machine=ibmrt ;;
1058 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1059 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1060 powerpc*-* ) machine=powerpc ;;
1061 hppa-*-* ) machine=hp800 ;;
1062 m88k-dg-* ) machine=aviion ;;
1063 m68*-sony-* ) machine=news ;;
1064 mips-sony-* ) machine=news-risc ;;
1065 clipper-* ) machine=clipper ;;
1066 arm-* ) machine=arm ;;
1067 ns32k-* ) machine=ns32000 ;;
1070 case "$canonical" in
1071 *-*-linux* ) opsys=linux ;;
1072 *-*-netbsd* ) opsys=netbsd ;;
1073 *-*-openbsd* ) opsys=openbsd ;;
1074 *-*-nextstep* ) opsys=nextstep ;;
1075 *-*-vms ) opsys=vms ;;
1077 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1078 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1079 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1080 *-dec-osf3* ) opsys=decosf3-1 ;;
1081 *-dec-osf4* ) opsys=decosf4-0 ;;
1083 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1084 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1085 *-*-ultrix* ) opsys=ultrix4-3 ;;
1087 *-*-aix3.1* ) opsys=aix3-1 ;;
1088 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1089 *-*-aix3* ) opsys=aix3-2 ;;
1090 *-*-aix4.0* ) opsys=aix4 ;;
1091 *-*-aix4.1* ) opsys=aix4-1 ;;
1092 *-*-aix4* ) opsys=aix4-2 ;;
1094 *-gnu* ) opsys=gnu ;;
1095 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1096 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1097 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1098 *-*-aos4.2 ) opsys=bsd4-2 ;;
1099 *-*-aos* ) opsys=bsd4-3 ;;
1100 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1101 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1102 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1103 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1104 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1105 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1106 if test -z "$NON_GNU_CPP" ; then
1107 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1108 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1112 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1113 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1116 case "$canonical" in
1119 case "$canonical" in
1120 i[3-9]86-*-netbsd*) machine=intel386 ;;
1121 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1122 machine=hp9000s300 ;;
1123 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1124 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1129 case "${canonical}" in
1130 i386-*-openbsd*) machine=intel386 ;;
1131 m68k-*-openbsd*) machine=hp9000s300 ;;
1132 mipsel-*-openbsd*) machine=pmax ;;
1136 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1137 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1139 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1140 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1142 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1144 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1146 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1148 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1150 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1152 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1153 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1154 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1157 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1159 *-convex-bsd* | *-convex-convexos* )
1160 machine=convex opsys=bsd4-3
1161 NON_GNU_CPP="cc -E -P"
1164 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1166 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1167 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1168 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1169 m88k-dg-dgux* ) opsys=dgux ;;
1171 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1172 m88k-motorola-sysv4* )
1173 machine=delta88k opsys=usg5-4-2
1175 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1177 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1178 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1180 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1182 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1183 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1184 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1187 case "`uname -r`" in
1188 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1189 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1191 NON_GNU_CPP="/lib/cpp"
1193 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1194 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1196 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1198 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1201 case "$canonical" in
1202 m68* ) machine=hp9000s300 ;;
1203 hppa* ) machine=hp800 ;;
1206 case "$canonical" in
1207 *-hp-hpux7* ) opsys=hpux ;;
1208 *-hp-hpux8* ) opsys=hpux8 ;;
1209 *-hp-hpux9* ) opsys=hpux9 ;;
1210 *-hp-hpux10* ) opsys=hpux10 ;;
1211 *-hp-hpux11* ) opsys=hpux11 ;;
1215 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1216 echo " xemacs will be linked with \"strcat.o\""
1219 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1220 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1221 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1223 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1226 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1227 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1229 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1230 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1231 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1232 romp-ibm-aos* ) opsys=bsd4-3 ;;
1233 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1234 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1236 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1237 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1239 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1241 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1243 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1245 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1247 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1249 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1251 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1253 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1255 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1257 mips-mips-usg* ) machine=mips4 ;;
1260 NON_GNU_CC="cc -systype bsd43"
1261 NON_GNU_CPP="cc -systype bsd43 -E"
1262 case "$canonical" in
1263 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1264 mips-mips-riscos5* ) opsys=riscos5 ;;
1267 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1268 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1270 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1272 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1274 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1275 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1277 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1279 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1281 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1283 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1285 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1286 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1288 mips-siemens-sysv* | mips-sni-sysv*)
1289 machine=mips-siemens opsys=usg5-4
1290 NON_GNU_CC=/usr/ccs/bin/cc
1291 NON_GNU_CPP=/usr/ccs/lib/cpp
1296 NON_GNU_CC=/usr/ccs/bin/cc
1297 NON_GNU_CPP=/usr/ccs/lib/cpp
1300 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1301 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1302 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1303 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1304 mips-sgi-irix6* ) opsys=irix6-0 ;;
1305 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1306 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1307 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1308 mips-sgi-irix* ) opsys=irix5-0 ;;
1310 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1311 *-sony-news* ) opsys=newsos5 ;;
1313 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1315 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1316 case "$canonical" in
1317 m68*-sunos1* ) machine=sun1 ;;
1318 m68*-sunos2* ) machine=sun2 ;;
1319 m68* ) machine=sun3 ;;
1320 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1321 i*86-*-* ) machine=intel386 ;;
1322 rs6000* ) machine=rs6000 ;;
1325 case "$canonical" in *-sunos5*)
1326 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1329 case "$canonical" in
1331 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1334 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1338 case "$canonical" in
1341 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1342 { test "$extra_verbose" = "yes" && cat << EOF
1343 Defining OS_RELEASE = $os_release
1345 cat >> confdefs.h <<EOF
1346 #define OS_RELEASE $os_release
1351 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1352 *-sunos4.0* ) opsys=sunos4-0 ;;
1353 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1354 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1355 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1356 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1357 *-mach* ) opsys=mach-bsd4-3 ;;
1361 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1363 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1366 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1368 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1369 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1371 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1373 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1375 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1376 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1378 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1380 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1383 case "$canonical" in
1384 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1385 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1386 *-mach* ) opsys=mach-bsd4-3 ;;
1390 ns16k-whitechapel-* ) machine=mg1 ;;
1392 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1396 case "$canonical" in
1397 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1398 *-isc2.2* ) opsys=isc2-2 ;;
1399 *-isc4.0* ) opsys=isc4-0 ;;
1400 *-isc4.* ) opsys=isc4-1
1401 GCC_TEST_OPTIONS=-posix
1402 NON_GCC_TEST_OPTIONS=-Xp
1404 *-isc* ) opsys=isc3-0 ;;
1405 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1406 *-esix* ) opsys=esix ;;
1407 *-mach* ) opsys=mach-bsd4-3 ;;
1408 *-xenix* ) opsys=xenix ;;
1409 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1410 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1411 *-bsdi4* ) opsys=bsdos4 ;;
1412 *-bsdi3* ) opsys=bsdos3 ;;
1413 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1414 *-bsdi2* ) opsys=bsdos2 ;;
1415 *-sco3.2v5* ) opsys=sco5 ;
1416 if test "$dynamic" = "yes" ; then
1417 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1419 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1421 *-386bsd* ) opsys=386bsd ;;
1422 *-freebsd* ) opsys=freebsd ;;
1423 *-nextstep* ) opsys=nextstep ;;
1424 *-pc-cygwin* ) opsys=cygwin32 ;;
1425 *-pc-mingw* ) opsys=mingw32 ;
1426 test -z "$with_tty" && with_tty="no";;
1430 m68k-*-linux* ) machine=m68k opsys=linux ;;
1434 if test -z "$machine" -o -z "$opsys"; then
1435 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1436 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1441 if test -z "$dynamic"; then
1443 hpux* | sunos4* ) dynamic=no ;;
1447 if test "$dynamic" = "yes"; then
1449 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1450 decosf* ) ld_call_shared="-call_shared" ;;
1452 else case "$opsys" in
1454 echo "Static linking is not supported on Solaris 2."
1455 echo "Rerun configure without specifying --dynamic=no."
1457 linux ) ld_call_shared="-Bstatic" ;;
1458 decosf* ) ld_call_shared="-non_shared" ;;
1462 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1464 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1465 { test "$extra_verbose" = "yes" && cat << EOF
1466 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1468 cat >> confdefs.h <<EOF
1469 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1474 machfile="m/${machine}.h"
1475 opsysfile="s/${opsys}.h"
1478 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1479 if test "$with_workshop $with_tooltalk" = "yes no"; then
1480 (echo "$progname: Usage error:"
1481 echo " " "--with-workshop requires --with-tooltalk"
1482 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1483 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1484 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1487 if test "$with_workshop" = "yes"; then
1488 { test "$extra_verbose" = "yes" && cat << \EOF
1491 cat >> confdefs.h <<\EOF
1496 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1497 echo " xemacs will be linked with \"sunpro.o\""
1501 if test "$with_clash_detection" = "yes"; then
1502 { test "$extra_verbose" = "yes" && cat << \EOF
1503 Defining CLASH_DETECTION
1505 cat >> confdefs.h <<\EOF
1506 #define CLASH_DETECTION 1
1510 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1511 echo " xemacs will be linked with \"filelock.o\""
1515 test -n "$compiler" && CC="$compiler"
1516 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1519 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1520 if test "${CFLAGS-unset}" != unset
1521 then cflags_specified=yes;
1522 else cflags_specified=no;
1525 xe_save_CFLAGS="$CFLAGS"
1527 # Extract the first word of "gcc", so it can be a program name with args.
1528 set dummy gcc; ac_word=$2
1529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1530 echo "configure:1531: checking for $ac_word" >&5
1532 if test -n "$CC"; then
1533 ac_cv_prog_CC="$CC" # Let the user override the test.
1535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1537 for ac_dir in $ac_dummy; do
1538 test -z "$ac_dir" && ac_dir=.
1539 if test -f $ac_dir/$ac_word; then
1547 if test -n "$CC"; then
1548 echo "$ac_t""$CC" 1>&6
1550 echo "$ac_t""no" 1>&6
1553 if test -z "$CC"; then
1554 # Extract the first word of "cc", so it can be a program name with args.
1555 set dummy cc; ac_word=$2
1556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1557 echo "configure:1558: checking for $ac_word" >&5
1559 if test -n "$CC"; then
1560 ac_cv_prog_CC="$CC" # Let the user override the test.
1562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1565 for ac_dir in $ac_dummy; do
1566 test -z "$ac_dir" && ac_dir=.
1567 if test -f $ac_dir/$ac_word; then
1568 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1569 ac_prog_rejected=yes
1577 if test $ac_prog_rejected = yes; then
1578 # We found a bogon in the path, so make sure we never use it.
1579 set dummy $ac_cv_prog_CC
1581 if test $# -gt 0; then
1582 # We chose a different compiler from the bogus one.
1583 # However, it has the same basename, so the bogon will be chosen
1584 # first if we set CC to just the basename; use the full file name.
1586 set dummy "$ac_dir/$ac_word" "$@"
1593 if test -n "$CC"; then
1594 echo "$ac_t""$CC" 1>&6
1596 echo "$ac_t""no" 1>&6
1599 if test -z "$CC"; then
1600 case "`uname -s`" in
1602 # Extract the first word of "cl", so it can be a program name with args.
1603 set dummy cl; ac_word=$2
1604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1605 echo "configure:1606: checking for $ac_word" >&5
1607 if test -n "$CC"; then
1608 ac_cv_prog_CC="$CC" # Let the user override the test.
1610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1612 for ac_dir in $ac_dummy; do
1613 test -z "$ac_dir" && ac_dir=.
1614 if test -f $ac_dir/$ac_word; then
1622 if test -n "$CC"; then
1623 echo "$ac_t""$CC" 1>&6
1625 echo "$ac_t""no" 1>&6
1630 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1633 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1634 echo "configure:1635: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1637 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1638 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1639 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1640 ac_cpp='$CPP '"$xe_cppflags"
1641 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1642 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1645 cat > conftest.$ac_ext << EOF
1647 #line 1648 "configure"
1648 #include "confdefs.h"
1652 if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1653 ac_cv_prog_cc_works=yes
1654 # If we can't run a trivial program, we are probably using a cross compiler.
1655 if (./conftest; exit) 2>/dev/null; then
1656 ac_cv_prog_cc_cross=no
1658 ac_cv_prog_cc_cross=yes
1661 echo "configure: failed program was:" >&5
1662 cat conftest.$ac_ext >&5
1663 ac_cv_prog_cc_works=no
1667 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1668 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1669 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1670 ac_cpp='$CPP '"$xe_cppflags"
1671 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1672 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1675 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1676 if test $ac_cv_prog_cc_works = no; then
1677 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1679 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1680 echo "configure:1681: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1681 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1682 cross_compiling=$ac_cv_prog_cc_cross
1684 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1685 echo "configure:1686: checking whether we are using GNU C" >&5
1687 cat > conftest.c <<EOF
1692 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1698 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1700 if test $ac_cv_prog_gcc = yes; then
1706 ac_test_CFLAGS="${CFLAGS+set}"
1707 ac_save_CFLAGS="$CFLAGS"
1709 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1710 echo "configure:1711: checking whether ${CC-cc} accepts -g" >&5
1712 echo 'void f(){}' > conftest.c
1713 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1721 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1722 if test "$ac_test_CFLAGS" = set; then
1723 CFLAGS="$ac_save_CFLAGS"
1724 elif test $ac_cv_prog_cc_g = yes; then
1725 if test "$GCC" = yes; then
1731 if test "$GCC" = yes; then
1738 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1740 # Extract the first word of "gcc", so it can be a program name with args.
1741 set dummy gcc; ac_word=$2
1742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1743 echo "configure:1744: checking for $ac_word" >&5
1745 if test -n "$CC"; then
1746 ac_cv_prog_CC="$CC" # Let the user override the test.
1748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1750 for ac_dir in $ac_dummy; do
1751 test -z "$ac_dir" && ac_dir=.
1752 if test -f $ac_dir/$ac_word; then
1760 if test -n "$CC"; then
1761 echo "$ac_t""$CC" 1>&6
1763 echo "$ac_t""no" 1>&6
1766 if test -z "$CC"; then
1767 # Extract the first word of "cc", so it can be a program name with args.
1768 set dummy cc; ac_word=$2
1769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1770 echo "configure:1771: checking for $ac_word" >&5
1772 if test -n "$CC"; then
1773 ac_cv_prog_CC="$CC" # Let the user override the test.
1775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1778 for ac_dir in $ac_dummy; do
1779 test -z "$ac_dir" && ac_dir=.
1780 if test -f $ac_dir/$ac_word; then
1781 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1782 ac_prog_rejected=yes
1790 if test $ac_prog_rejected = yes; then
1791 # We found a bogon in the path, so make sure we never use it.
1792 set dummy $ac_cv_prog_CC
1794 if test $# -gt 0; then
1795 # We chose a different compiler from the bogus one.
1796 # However, it has the same basename, so the bogon will be chosen
1797 # first if we set CC to just the basename; use the full file name.
1799 set dummy "$ac_dir/$ac_word" "$@"
1806 if test -n "$CC"; then
1807 echo "$ac_t""$CC" 1>&6
1809 echo "$ac_t""no" 1>&6
1812 if test -z "$CC"; then
1813 case "`uname -s`" in
1815 # Extract the first word of "cl", so it can be a program name with args.
1816 set dummy cl; ac_word=$2
1817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1818 echo "configure:1819: checking for $ac_word" >&5
1820 if test -n "$CC"; then
1821 ac_cv_prog_CC="$CC" # Let the user override the test.
1823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1825 for ac_dir in $ac_dummy; do
1826 test -z "$ac_dir" && ac_dir=.
1827 if test -f $ac_dir/$ac_word; then
1835 if test -n "$CC"; then
1836 echo "$ac_t""$CC" 1>&6
1838 echo "$ac_t""no" 1>&6
1843 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1846 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1847 echo "configure:1848: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1850 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1851 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1852 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1853 ac_cpp='$CPP '"$xe_cppflags"
1854 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1855 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1858 cat > conftest.$ac_ext << EOF
1860 #line 1861 "configure"
1861 #include "confdefs.h"
1865 if { (eval echo configure:1866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1866 ac_cv_prog_cc_works=yes
1867 # If we can't run a trivial program, we are probably using a cross compiler.
1868 if (./conftest; exit) 2>/dev/null; then
1869 ac_cv_prog_cc_cross=no
1871 ac_cv_prog_cc_cross=yes
1874 echo "configure: failed program was:" >&5
1875 cat conftest.$ac_ext >&5
1876 ac_cv_prog_cc_works=no
1880 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1881 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1882 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1883 ac_cpp='$CPP '"$xe_cppflags"
1884 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1885 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1888 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1889 if test $ac_cv_prog_cc_works = no; then
1890 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1892 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1893 echo "configure:1894: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1894 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1895 cross_compiling=$ac_cv_prog_cc_cross
1897 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1898 echo "configure:1899: checking whether we are using GNU C" >&5
1900 cat > conftest.c <<EOF
1905 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1911 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1913 if test $ac_cv_prog_gcc = yes; then
1919 ac_test_CFLAGS="${CFLAGS+set}"
1920 ac_save_CFLAGS="$CFLAGS"
1922 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1923 echo "configure:1924: checking whether ${CC-cc} accepts -g" >&5
1925 echo 'void f(){}' > conftest.c
1926 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1934 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1935 if test "$ac_test_CFLAGS" = set; then
1936 CFLAGS="$ac_save_CFLAGS"
1937 elif test $ac_cv_prog_cc_g = yes; then
1938 if test "$GCC" = yes; then
1944 if test "$GCC" = yes; then
1951 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1953 # Extract the first word of "gcc", so it can be a program name with args.
1954 set dummy gcc; ac_word=$2
1955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1956 echo "configure:1957: checking for $ac_word" >&5
1958 if test -n "$CC"; then
1959 ac_cv_prog_CC="$CC" # Let the user override the test.
1961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1963 for ac_dir in $ac_dummy; do
1964 test -z "$ac_dir" && ac_dir=.
1965 if test -f $ac_dir/$ac_word; then
1973 if test -n "$CC"; then
1974 echo "$ac_t""$CC" 1>&6
1976 echo "$ac_t""no" 1>&6
1979 if test -z "$CC"; then
1980 # Extract the first word of "cc", so it can be a program name with args.
1981 set dummy cc; ac_word=$2
1982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1983 echo "configure:1984: checking for $ac_word" >&5
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1991 for ac_dir in $ac_dummy; do
1992 test -z "$ac_dir" && ac_dir=.
1993 if test -f $ac_dir/$ac_word; then
1994 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1995 ac_prog_rejected=yes
2003 if test $ac_prog_rejected = yes; then
2004 # We found a bogon in the path, so make sure we never use it.
2005 set dummy $ac_cv_prog_CC
2007 if test $# -gt 0; then
2008 # We chose a different compiler from the bogus one.
2009 # However, it has the same basename, so the bogon will be chosen
2010 # first if we set CC to just the basename; use the full file name.
2012 set dummy "$ac_dir/$ac_word" "$@"
2019 if test -n "$CC"; then
2020 echo "$ac_t""$CC" 1>&6
2022 echo "$ac_t""no" 1>&6
2025 if test -z "$CC"; then
2026 case "`uname -s`" in
2028 # Extract the first word of "cl", so it can be a program name with args.
2029 set dummy cl; ac_word=$2
2030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2031 echo "configure:2032: checking for $ac_word" >&5
2033 if test -n "$CC"; then
2034 ac_cv_prog_CC="$CC" # Let the user override the test.
2036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2038 for ac_dir in $ac_dummy; do
2039 test -z "$ac_dir" && ac_dir=.
2040 if test -f $ac_dir/$ac_word; then
2048 if test -n "$CC"; then
2049 echo "$ac_t""$CC" 1>&6
2051 echo "$ac_t""no" 1>&6
2056 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2059 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2060 echo "configure:2061: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2063 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2064 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2065 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2066 ac_cpp='$CPP '"$xe_cppflags"
2067 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2068 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2071 cat > conftest.$ac_ext << EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2078 if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2079 ac_cv_prog_cc_works=yes
2080 # If we can't run a trivial program, we are probably using a cross compiler.
2081 if (./conftest; exit) 2>/dev/null; then
2082 ac_cv_prog_cc_cross=no
2084 ac_cv_prog_cc_cross=yes
2087 echo "configure: failed program was:" >&5
2088 cat conftest.$ac_ext >&5
2089 ac_cv_prog_cc_works=no
2093 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2094 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2095 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2096 ac_cpp='$CPP '"$xe_cppflags"
2097 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2098 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2101 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2102 if test $ac_cv_prog_cc_works = no; then
2103 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2105 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2106 echo "configure:2107: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2107 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2108 cross_compiling=$ac_cv_prog_cc_cross
2110 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2111 echo "configure:2112: checking whether we are using GNU C" >&5
2113 cat > conftest.c <<EOF
2118 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2124 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2126 if test $ac_cv_prog_gcc = yes; then
2132 ac_test_CFLAGS="${CFLAGS+set}"
2133 ac_save_CFLAGS="$CFLAGS"
2135 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2136 echo "configure:2137: checking whether ${CC-cc} accepts -g" >&5
2138 echo 'void f(){}' > conftest.c
2139 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2147 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2148 if test "$ac_test_CFLAGS" = set; then
2149 CFLAGS="$ac_save_CFLAGS"
2150 elif test $ac_cv_prog_cc_g = yes; then
2151 if test "$GCC" = yes; then
2157 if test "$GCC" = yes; then
2165 CFLAGS="$xe_save_CFLAGS"
2168 test -n "$CPP" -a -d "$CPP" && CPP=
2170 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2172 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2173 echo "configure:2174: checking how to run the C preprocessor" >&5
2174 # On Suns, sometimes $CPP names a directory.
2175 if test -n "$CPP" && test -d "$CPP"; then
2178 if test -z "$CPP"; then
2180 # This must be in double quotes, not single quotes, because CPP may get
2181 # substituted into the Makefile and "${CC-cc}" will confuse make.
2183 # On the NeXT, cc -E runs the code through the compiler's parser,
2184 # not just through cpp.
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2192 { (eval echo configure:2193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2194 if test -z "$ac_err"; then
2198 echo "configure: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2201 CPP="${CC-cc} -E -traditional-cpp"
2202 cat > conftest.$ac_ext <<EOF
2203 #line 2204 "configure"
2204 #include "confdefs.h"
2208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2209 { (eval echo configure:2210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2211 if test -z "$ac_err"; then
2215 echo "configure: failed program was:" >&5
2216 cat conftest.$ac_ext >&5
2218 CPP="${CC-cc} -nologo -E"
2219 cat > conftest.$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2226 { (eval echo configure:2227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2227 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2228 if test -z "$ac_err"; then
2232 echo "configure: failed program was:" >&5
2233 cat conftest.$ac_ext >&5
2242 ac_cv_prog_CPP="$CPP"
2243 CPP="$ac_cv_prog_CPP"
2245 ac_cv_prog_CPP="$CPP"
2247 echo "$ac_t""$CPP" 1>&6
2250 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2251 echo "configure:2252: checking for AIX" >&5
2252 cat > conftest.$ac_ext <<EOF
2253 #line 2254 "configure"
2254 #include "confdefs.h"
2260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2261 egrep "yes" >/dev/null 2>&1; then
2263 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2264 Defining _ALL_SOURCE
2266 cat >> confdefs.h <<\EOF
2267 #define _ALL_SOURCE 1
2273 echo "$ac_t""no" 1>&6
2279 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2280 echo "configure:2281: checking for GNU libc" >&5
2281 cat > conftest.$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2284 #include <features.h>
2287 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2288 #error Not a GNU libc system :-(
2289 ******* ======= ******** &&&&&&&&
2294 if { (eval echo configure:2295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2298 echo "configure: failed program was:" >&5
2299 cat conftest.$ac_ext >&5
2304 echo "$ac_t""$have_glibc" 1>&6
2305 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2306 Defining _GNU_SOURCE
2308 cat >> confdefs.h <<\EOF
2309 #define _GNU_SOURCE 1
2315 cat > conftest.$ac_ext <<EOF
2316 #line 2317 "configure"
2317 #include "confdefs.h"
2319 #if defined __SUNPRO_C
2321 #elif defined __DECC
2328 if { (eval echo configure:2329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2333 echo "configure: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2336 case "$conftest_rc" in
2337 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2338 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2346 echo "Extracting information from the machine- and system-dependent headers..."
2348 tempcname="conftest.c"
2352 cat > $tempcname <<EOF
2354 #define C_SWITCH_SITE
2355 #define C_SWITCH_X_SITE
2356 #define LD_SWITCH_SITE
2357 #define LD_SWITCH_X_SITE
2358 #define LD_SWITCH_X_SITE_AUX
2359 #define OS_RELEASE $os_release
2360 #include "$srcdir/src/$opsysfile"
2361 #include "$srcdir/src/$machfile"
2363 #ifndef LIBS_MACHINE
2364 #define LIBS_MACHINE
2366 configure___ libs_machine=LIBS_MACHINE
2371 configure___ libs_system=LIBS_SYSTEM
2373 #ifndef LIBS_TERMCAP
2374 #define LIBS_TERMCAP
2376 configure___ libs_termcap=LIBS_TERMCAP
2378 #ifndef LIB_STANDARD
2379 #define LIB_STANDARD
2381 configure___ libs_standard=LIB_STANDARD
2384 #ifndef OBJECTS_MACHINE
2385 #define OBJECTS_MACHINE
2387 configure___ objects_machine=OBJECTS_MACHINE
2389 #ifndef OBJECTS_SYSTEM
2390 #define OBJECTS_SYSTEM
2392 configure___ objects_system=OBJECTS_SYSTEM
2395 #ifndef C_SWITCH_MACHINE
2396 #define C_SWITCH_MACHINE
2398 configure___ c_switch_machine=C_SWITCH_MACHINE
2400 #ifndef C_SWITCH_SYSTEM
2401 #define C_SWITCH_SYSTEM
2403 configure___ c_switch_system=C_SWITCH_SYSTEM
2406 #ifndef LD_SWITCH_MACHINE
2407 #define LD_SWITCH_MACHINE
2409 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2411 #ifndef LD_SWITCH_SYSTEM
2412 #define LD_SWITCH_SYSTEM
2414 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2418 #define UNEXEC "unexec.o"
2420 configure___ unexec=UNEXEC
2423 #ifndef LD_SWITCH_SHARED
2424 #define LD_SWITCH_SHARED "-c"
2426 configure___ ld_switch_shared=LD_SWITCH_SHARED
2429 #ifdef ORDINARY_LINK
2430 #define LD "\$(CC) \$(CFLAGS)"
2431 #else /* no ORDINARY LINK */
2432 #ifdef COFF_ENCAPSULATE
2433 #define LD "\$(CC) -nostdlib"
2434 #else /* not COFF_ENCAPSULATE */
2437 #else /* ! defined (LINKER) */
2439 #endif /* ! defined (LINKER) */
2440 #endif /* ! defined (COFF_ENCAPSULATE) */
2441 #endif /* not ORDINARY_LINK */
2447 configure___ lib_gcc=LIB_GCC
2449 #ifndef LD_TEXT_START_ADDR
2450 #define LD_TEXT_START_ADDR
2452 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2455 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2457 #ifdef COFF_ENCAPSULATE
2458 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2459 #else /* ! defined (COFF_ENCAPSULATE) */
2460 #define START_FILES "pre-crt0.o /lib/crt0.o"
2461 #endif /* ! defined (COFF_ENCAPSULATE) */
2462 #else /* ! defined (NO_REMAP) */
2463 #define START_FILES "ecrt0.o"
2464 #endif /* ! defined (NO_REMAP) */
2465 #endif /* no ORDINARY_LINK */
2469 configure___ start_files=START_FILES
2471 #ifdef ORDINARY_LINK
2472 configure___ ordinary_link=yes
2474 configure___ ordinary_link=no
2477 #ifdef SYSTEM_MALLOC
2478 configure___ system_malloc=yes
2480 configure___ system_malloc=no
2484 configure___ have_terminfo=yes
2486 configure___ have_terminfo=no
2489 #ifdef MAIL_USE_FLOCK
2490 configure___ mail_use_flock=yes
2492 configure___ mail_use_flock=no
2495 #ifdef MAIL_USE_LOCKF
2496 configure___ mail_use_lockf=yes
2498 configure___ mail_use_lockf=no
2501 #ifdef HAVE_WIN32_PROCESSES
2502 configure___ win32_processes=yes
2504 configure___ win32_processes=no
2509 CPP=`eval "echo $CPP $CPPFLAGS"`
2510 eval `$CPP -Isrc $tempcname \
2511 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2515 test "$extra_verbose" = "yes" && \
2516 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 ""
2518 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2520 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2522 if test "$cflags_specified" = "no"; then
2523 if test "$GCC" = "yes"; then
2524 CFLAGS="-g -O3 -Wall -Wno-switch"
2525 elif test "$__SUNPRO_C" = "yes"; then
2527 sol2 ) CFLAGS="-v -xO4" ;;
2528 sunos4* ) CFLAGS="-xO2";;
2530 elif test "$__DECC" = "yes"; then
2532 elif test "$CC" = "xlc"; then
2533 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2539 if test "$GCC" = "yes"; then
2540 set x $ld_switch_system; shift; ld_switch_system=""
2541 while test -n "$1"; do
2543 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2544 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2546 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2552 if test "$GCC" = "yes"; then
2553 set x $ld_switch_machine; shift; ld_switch_machine=""
2554 while test -n "$1"; do
2556 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2557 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2559 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2565 if test "$GCC" = "yes"; then
2566 set x $LDFLAGS; shift; LDFLAGS=""
2567 while test -n "$1"; do
2569 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2570 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2572 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2578 if test "$GCC" = "yes"; then
2579 set x $ld_call_shared; shift; ld_call_shared=""
2580 while test -n "$1"; do
2582 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2583 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2585 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2591 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2592 echo " xemacs will be linked with \"$objects_machine\""
2594 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2595 echo " xemacs will be linked with \"$objects_system\""
2597 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2598 echo " xemacs will be linked with \"$unexec\""
2601 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2602 echo "configure:2603: checking for dynodump" >&5
2603 if test "$unexec" != "unexsol2.o"; then
2604 echo "$ac_t""no" 1>&6
2606 echo "$ac_t""yes" 1>&6
2607 { test "$extra_verbose" = "yes" && cat << \EOF
2610 cat >> confdefs.h <<\EOF
2615 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2616 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2618 sparc ) dynodump_arch=sparc ;;
2619 *86* ) dynodump_arch=i386 ;;
2620 powerpc ) dynodump_arch=ppc ;;
2622 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
2626 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2628 if test "$unexec" = "unexaix.o"; then
2629 if test "$dynamic" = "no"; then
2630 start_flags="-Wl,-bnso,-bnodelcsect"
2631 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2632 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2633 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2635 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2636 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2639 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2640 echo "configure:2641: checking for terminateAndUnload in -lC" >&5
2641 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2643 xe_check_libs=" -lC "
2644 cat > conftest.$ac_ext <<EOF
2645 #line 2646 "configure"
2646 #include "confdefs.h"
2647 /* Override any gcc2 internal prototype to avoid an error. */
2648 /* We use char because int might match the return type of a gcc2
2649 builtin and then its argument prototype would still apply. */
2650 char terminateAndUnload();
2653 terminateAndUnload()
2656 if { (eval echo configure:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2658 eval "ac_cv_lib_$ac_lib_var=yes"
2660 echo "configure: failed program was:" >&5
2661 cat conftest.$ac_ext >&5
2663 eval "ac_cv_lib_$ac_lib_var=no"
2668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2669 echo "$ac_t""yes" 1>&6
2670 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2672 echo "$ac_t""no" 1>&6
2677 elif test -n "$ld_text_start_addr"; then
2678 start_flags="-T $ld_text_start_addr -e __start"
2684 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2685 test -z "$linker" && linker='$(CC) -nostdlib'
2686 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2688 test "$GCC" != "yes" && lib_gcc=
2694 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2695 if test -n "$site_libraries"; then
2696 for arg in $site_libraries; do
2699 * ) test -d "$arg" || \
2700 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2703 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2707 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2708 if test -n "$site_includes"; then
2709 for arg in $site_includes; do
2712 * ) test -d "$arg" || \
2713 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2716 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2720 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2721 if test -n "$site_prefixes"; then
2722 for dir in $site_prefixes; do
2723 lib_dir="${dir}/lib"
2724 inc_dir="${dir}/include"
2725 if test ! -d "$dir"; then
2726 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2727 elif test ! -d "$lib_dir"; then
2728 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2730 if test -d "$inc_dir"; then
2731 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
2733 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
2739 for dir in "/usr/ccs/lib"; do
2740 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
2743 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2744 if test -n "$site_runtime_libraries"; then
2745 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2750 if test "$dynamic" = "no"; then add_runtime_path=no
2751 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2752 else case "$opsys" in
2753 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2754 * ) add_runtime_path=no ;;
2758 if test "$add_runtime_path" = "yes"; then
2759 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2760 echo "configure:2761: checking "for runtime libraries flag"" >&5
2762 sol2 ) dash_r="-R" ;;
2763 decosf* | linux* | irix*) dash_r="-rpath " ;;
2766 for try_dash_r in "-R" "-R " "-rpath "; do
2767 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2769 if test "$GCC" = "yes"; then
2770 set x $xe_check_libs; shift; xe_check_libs=""
2771 while test -n "$1"; do
2773 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2774 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2776 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2781 cat > conftest.$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2789 if { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2791 dash_r="$try_dash_r"
2793 echo "configure: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2798 test -n "$dash_r" && break
2801 if test -n "$dash_r";
2802 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2803 else echo "$ac_t""NONE" 1>&6
2807 xe_add_unique_runpath_dir='
2809 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2811 if test "$xe_add_p" = "yes"; then
2812 test -n "$runpath" && runpath="${runpath}:"
2813 runpath="${runpath}${xe_runpath_dir}"
2814 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2820 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2821 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2822 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2824 runpath="" runpath_dirs=""
2825 if test -n "$LD_RUN_PATH"; then
2826 runpath="$LD_RUN_PATH"
2827 elif test "$GCC" = "yes"; then
2828 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2829 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2830 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2831 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2832 case "$arg" in P,* | -L* | -R* )
2833 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2835 xe_runpath_dir="$dir"
2836 test "$xe_runpath_dir" != "/lib" -a \
2837 "$xe_runpath_dir" != "/usr/lib" -a \
2838 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2839 eval "$xe_add_unique_runpath_dir"
2844 ld_switch_run="$ld_switch_run_save"
2847 for arg in $ld_switch_site $ld_switch_x_site; do
2848 case "$arg" in -L*) {
2849 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2850 test "$xe_runpath_dir" != "/lib" -a \
2851 "$xe_runpath_dir" != "/usr/lib" -a \
2852 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2853 eval "$xe_add_unique_runpath_dir"
2856 if test "$opsys $need_motif" = "sol2 yes"; then
2857 xe_runpath_dir="/opt/SUNWdt/lib";
2858 eval "$xe_add_unique_runpath_dir";
2861 if test -n "$runpath"; then
2862 ld_switch_run="${dash_r}${runpath}"
2864 if test "$GCC" = "yes"; then
2865 set x $ld_switch_run; shift; ld_switch_run=""
2866 while test -n "$1"; do
2868 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2869 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2871 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2876 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2884 if test "$with_dlmalloc" != "no"; then
2889 after_morecore_hook_exists=yes
2890 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2891 echo "configure:2892: checking for malloc_get_state" >&5
2893 cat > conftest.$ac_ext <<EOF
2894 #line 2895 "configure"
2895 #include "confdefs.h"
2896 /* System header to define __stub macros and hopefully few prototypes,
2897 which can conflict with char malloc_get_state(); below. */
2899 /* Override any gcc2 internal prototype to avoid an error. */
2900 /* We use char because int might match the return type of a gcc2
2901 builtin and then its argument prototype would still apply. */
2902 char malloc_get_state();
2906 /* The GNU C library defines this for functions which it implements
2907 to always fail with ENOSYS. Some functions are actually named
2908 something starting with __ and the normal name is an alias. */
2909 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2917 if { (eval echo configure:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2919 eval "ac_cv_func_malloc_get_state=yes"
2921 echo "configure: failed program was:" >&5
2922 cat conftest.$ac_ext >&5
2924 eval "ac_cv_func_malloc_get_state=no"
2928 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2929 echo "$ac_t""yes" 1>&6
2932 echo "$ac_t""no" 1>&6
2936 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2937 echo "configure:2938: checking for malloc_set_state" >&5
2939 cat > conftest.$ac_ext <<EOF
2940 #line 2941 "configure"
2941 #include "confdefs.h"
2942 /* System header to define __stub macros and hopefully few prototypes,
2943 which can conflict with char malloc_set_state(); below. */
2945 /* Override any gcc2 internal prototype to avoid an error. */
2946 /* We use char because int might match the return type of a gcc2
2947 builtin and then its argument prototype would still apply. */
2948 char malloc_set_state();
2952 /* The GNU C library defines this for functions which it implements
2953 to always fail with ENOSYS. Some functions are actually named
2954 something starting with __ and the normal name is an alias. */
2955 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
2963 if { (eval echo configure:2964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2965 eval "ac_cv_func_malloc_set_state=yes"
2967 echo "configure: failed program was:" >&5
2968 cat conftest.$ac_ext >&5
2970 eval "ac_cv_func_malloc_set_state=no"
2974 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
2975 echo "$ac_t""yes" 1>&6
2978 echo "$ac_t""no" 1>&6
2982 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2983 echo "configure:2984: checking whether __after_morecore_hook exists" >&5
2984 cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2987 extern void (* __after_morecore_hook)();
2989 __after_morecore_hook = 0
2992 if { (eval echo configure:2993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2994 echo "$ac_t""yes" 1>&6
2996 echo "configure: failed program was:" >&5
2997 cat conftest.$ac_ext >&5
2999 echo "$ac_t""no" 1>&6
3000 after_morecore_hook_exists=no
3003 if test "$system_malloc" = "yes" ; then
3006 (The GNU allocators don't work with this system configuration)."
3007 elif test "$with_system_malloc" = "yes" ; then
3010 (User chose not to use GNU allocators)."
3011 elif test "$with_debug_malloc" = "yes" ; then
3014 (User chose to use Debugging Malloc)."
3017 if test "$doug_lea_malloc" = "yes" ; then
3018 if test "$GNU_MALLOC" = yes ; then
3020 (Using Doug Lea's new malloc from the GNU C Library.)"
3022 { test "$extra_verbose" = "yes" && cat << \EOF
3023 Defining DOUG_LEA_MALLOC
3025 cat >> confdefs.h <<\EOF
3026 #define DOUG_LEA_MALLOC 1
3030 if test "$after_morecore_hook_exists" = "no" ; then
3032 (Using Doug Lea's new malloc from the Linux C Library.)"
3033 { test "$extra_verbose" = "yes" && cat << \EOF
3034 Defining _NO_MALLOC_WARNING_
3036 cat >> confdefs.h <<\EOF
3037 #define _NO_MALLOC_WARNING_ 1
3042 use_minimal_tagbits=yes
3048 # Extract the first word of "ranlib", so it can be a program name with args.
3049 set dummy ranlib; ac_word=$2
3050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3051 echo "configure:3052: checking for $ac_word" >&5
3053 if test -n "$RANLIB"; then
3054 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3058 for ac_dir in $ac_dummy; do
3059 test -z "$ac_dir" && ac_dir=.
3060 if test -f $ac_dir/$ac_word; then
3061 ac_cv_prog_RANLIB="ranlib"
3066 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3068 RANLIB="$ac_cv_prog_RANLIB"
3069 if test -n "$RANLIB"; then
3070 echo "$ac_t""$RANLIB" 1>&6
3072 echo "$ac_t""no" 1>&6
3076 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3077 if test -f $ac_dir/install-sh; then
3079 ac_install_sh="$ac_aux_dir/install-sh -c"
3081 elif test -f $ac_dir/install.sh; then
3083 ac_install_sh="$ac_aux_dir/install.sh -c"
3087 if test -z "$ac_aux_dir"; then
3088 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3090 ac_config_guess=$ac_aux_dir/config.guess
3091 ac_config_sub=$ac_aux_dir/config.sub
3092 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3094 # Find a good install program. We prefer a C program (faster),
3095 # so one script is as good as another. But avoid the broken or
3096 # incompatible versions:
3097 # SysV /etc/install, /usr/sbin/install
3098 # SunOS /usr/etc/install
3099 # IRIX /sbin/install
3101 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3102 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3103 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3104 # ./install, which can be erroneously created by make from ./install.sh.
3105 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3106 echo "configure:3107: checking for a BSD compatible install" >&5
3107 if test -z "$INSTALL"; then
3109 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3110 for ac_dir in $PATH; do
3111 # Account for people who put trailing slashes in PATH elements.
3113 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3115 # OSF1 and SCO ODT 3.0 have their own names for install.
3116 # Don't use installbsd from OSF since it installs stuff as root
3118 for ac_prog in ginstall scoinst install; do
3119 if test -f $ac_dir/$ac_prog; then
3120 if test $ac_prog = install &&
3121 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3122 # AIX install. It has an incompatible calling convention.
3125 ac_cv_path_install="$ac_dir/$ac_prog -c"
3135 if test "${ac_cv_path_install+set}" = set; then
3136 INSTALL="$ac_cv_path_install"
3138 # As a last resort, use the slow shell script. We don't cache a
3139 # path for INSTALL within a source directory, because that will
3140 # break other packages using the cache if that directory is
3141 # removed, or if the path is relative.
3142 INSTALL="$ac_install_sh"
3145 echo "$ac_t""$INSTALL" 1>&6
3147 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3148 # It thinks the first close brace ends the variable substitution.
3149 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3151 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3153 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3155 for ac_prog in 'bison -y' byacc
3157 # Extract the first word of "$ac_prog", so it can be a program name with args.
3158 set dummy $ac_prog; ac_word=$2
3159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3160 echo "configure:3161: checking for $ac_word" >&5
3162 if test -n "$YACC"; then
3163 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3167 for ac_dir in $ac_dummy; do
3168 test -z "$ac_dir" && ac_dir=.
3169 if test -f $ac_dir/$ac_word; then
3170 ac_cv_prog_YACC="$ac_prog"
3176 YACC="$ac_cv_prog_YACC"
3177 if test -n "$YACC"; then
3178 echo "$ac_t""$YACC" 1>&6
3180 echo "$ac_t""no" 1>&6
3183 test -n "$YACC" && break
3185 test -n "$YACC" || YACC="yacc"
3188 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3190 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3191 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3192 echo "configure:3193: checking for $ac_hdr" >&5
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3200 { (eval echo configure:3201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3202 if test -z "$ac_err"; then
3204 eval "ac_cv_header_$ac_safe=yes"
3207 echo "configure: failed program was:" >&5
3208 cat conftest.$ac_ext >&5
3210 eval "ac_cv_header_$ac_safe=no"
3213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3214 echo "$ac_t""yes" 1>&6
3215 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3216 { test "$extra_verbose" = "yes" && cat << EOF
3219 cat >> confdefs.h <<EOF
3220 #define $ac_tr_hdr 1
3225 echo "$ac_t""no" 1>&6
3229 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3231 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3232 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3233 echo "configure:3234: checking for $ac_hdr" >&5
3235 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3241 { (eval echo configure:3242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3243 if test -z "$ac_err"; then
3245 eval "ac_cv_header_$ac_safe=yes"
3248 echo "configure: failed program was:" >&5
3249 cat conftest.$ac_ext >&5
3251 eval "ac_cv_header_$ac_safe=no"
3254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3255 echo "$ac_t""yes" 1>&6
3256 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3257 { test "$extra_verbose" = "yes" && cat << EOF
3260 cat >> confdefs.h <<EOF
3261 #define $ac_tr_hdr 1
3266 echo "$ac_t""no" 1>&6
3270 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3274 echo "configure:3275: checking for $ac_hdr" >&5
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3282 { (eval echo configure:3283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3284 if test -z "$ac_err"; then
3286 eval "ac_cv_header_$ac_safe=yes"
3289 echo "configure: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3292 eval "ac_cv_header_$ac_safe=no"
3295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3296 echo "$ac_t""yes" 1>&6
3297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3298 { test "$extra_verbose" = "yes" && cat << EOF
3301 cat >> confdefs.h <<EOF
3302 #define $ac_tr_hdr 1
3307 echo "$ac_t""no" 1>&6
3311 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3312 echo "configure:3313: checking for sys/wait.h that is POSIX.1 compatible" >&5
3314 cat > conftest.$ac_ext <<EOF
3315 #line 3316 "configure"
3316 #include "confdefs.h"
3317 #include <sys/types.h>
3318 #include <sys/wait.h>
3320 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3323 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3328 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3331 if { (eval echo configure:3332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3333 ac_cv_header_sys_wait_h=yes
3335 echo "configure: failed program was:" >&5
3336 cat conftest.$ac_ext >&5
3338 ac_cv_header_sys_wait_h=no
3342 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3343 if test $ac_cv_header_sys_wait_h = yes; then
3344 { test "$extra_verbose" = "yes" && cat << \EOF
3345 Defining HAVE_SYS_WAIT_H
3347 cat >> confdefs.h <<\EOF
3348 #define HAVE_SYS_WAIT_H 1
3354 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3355 echo "configure:3356: checking for ANSI C header files" >&5
3357 cat > conftest.$ac_ext <<EOF
3358 #line 3359 "configure"
3359 #include "confdefs.h"
3365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3366 { (eval echo configure:3367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3368 if test -z "$ac_err"; then
3370 ac_cv_header_stdc=yes
3373 echo "configure: failed program was:" >&5
3374 cat conftest.$ac_ext >&5
3376 ac_cv_header_stdc=no
3380 if test $ac_cv_header_stdc = yes; then
3381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3382 cat > conftest.$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3388 egrep "memchr" >/dev/null 2>&1; then
3392 ac_cv_header_stdc=no
3398 if test $ac_cv_header_stdc = yes; then
3399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3406 egrep "free" >/dev/null 2>&1; then
3410 ac_cv_header_stdc=no
3416 if test $ac_cv_header_stdc = yes; then
3417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3418 cat > conftest.$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3422 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3423 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3425 int main () { int i; for (i = 0; i < 256; i++)
3426 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3430 if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3435 echo "configure: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3438 ac_cv_header_stdc=no
3443 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3444 if test $ac_cv_header_stdc = yes; then
3445 { test "$extra_verbose" = "yes" && cat << \EOF
3446 Defining STDC_HEADERS
3448 cat >> confdefs.h <<\EOF
3449 #define STDC_HEADERS 1
3455 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3456 echo "configure:3457: checking whether time.h and sys/time.h may both be included" >&5
3458 cat > conftest.$ac_ext <<EOF
3459 #line 3460 "configure"
3460 #include "confdefs.h"
3461 #include <sys/types.h>
3462 #include <sys/time.h>
3468 if { (eval echo configure:3469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3470 ac_cv_header_time=yes
3472 echo "configure: failed program was:" >&5
3473 cat conftest.$ac_ext >&5
3475 ac_cv_header_time=no
3479 echo "$ac_t""$ac_cv_header_time" 1>&6
3480 if test $ac_cv_header_time = yes; then
3481 { test "$extra_verbose" = "yes" && cat << \EOF
3482 Defining TIME_WITH_SYS_TIME
3484 cat >> confdefs.h <<\EOF
3485 #define TIME_WITH_SYS_TIME 1
3491 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3492 echo "configure:3493: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3494 cat > conftest.$ac_ext <<EOF
3495 #line 3496 "configure"
3496 #include "confdefs.h"
3497 #include <sys/types.h>
3499 /* NetBSD declares sys_siglist in unistd.h. */
3500 #ifdef HAVE_UNISTD_H
3504 char *msg = *(sys_siglist + 1);
3507 if { (eval echo configure:3508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3509 ac_cv_decl_sys_siglist=yes
3511 echo "configure: failed program was:" >&5
3512 cat conftest.$ac_ext >&5
3514 ac_cv_decl_sys_siglist=no
3518 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3519 if test $ac_cv_decl_sys_siglist = yes; then
3520 { test "$extra_verbose" = "yes" && cat << \EOF
3521 Defining SYS_SIGLIST_DECLARED
3523 cat >> confdefs.h <<\EOF
3524 #define SYS_SIGLIST_DECLARED 1
3531 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3532 echo "configure:3533: checking for struct utimbuf" >&5
3533 cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3536 #ifdef TIME_WITH_SYS_TIME
3537 #include <sys/time.h>
3540 #ifdef HAVE_SYS_TIME_H
3541 #include <sys/time.h>
3550 static struct utimbuf x; x.actime = x.modtime;
3553 if { (eval echo configure:3554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3555 echo "$ac_t""yes" 1>&6
3556 { test "$extra_verbose" = "yes" && cat << \EOF
3557 Defining HAVE_STRUCT_UTIMBUF
3559 cat >> confdefs.h <<\EOF
3560 #define HAVE_STRUCT_UTIMBUF 1
3565 echo "configure: failed program was:" >&5
3566 cat conftest.$ac_ext >&5
3568 echo "$ac_t""no" 1>&6
3572 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3573 echo "configure:3574: checking return type of signal handlers" >&5
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 #include <sys/types.h>
3584 extern "C" void (*signal (int, void (*)(int)))(int);
3586 void (*signal ()) ();
3593 if { (eval echo configure:3594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3595 ac_cv_type_signal=void
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3600 ac_cv_type_signal=int
3604 echo "$ac_t""$ac_cv_type_signal" 1>&6
3605 { test "$extra_verbose" = "yes" && cat << EOF
3606 Defining RETSIGTYPE = $ac_cv_type_signal
3608 cat >> confdefs.h <<EOF
3609 #define RETSIGTYPE $ac_cv_type_signal
3614 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3615 echo "configure:3616: checking for size_t" >&5
3617 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3620 #include <sys/types.h>
3626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3627 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3629 ac_cv_type_size_t=yes
3632 ac_cv_type_size_t=no
3636 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3637 if test $ac_cv_type_size_t = no; then
3638 { test "$extra_verbose" = "yes" && cat << \EOF
3639 Defining size_t = unsigned
3641 cat >> confdefs.h <<\EOF
3642 #define size_t unsigned
3648 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3649 echo "configure:3650: checking for pid_t" >&5
3651 cat > conftest.$ac_ext <<EOF
3652 #line 3653 "configure"
3653 #include "confdefs.h"
3654 #include <sys/types.h>
3660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3661 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3663 ac_cv_type_pid_t=yes
3670 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3671 if test $ac_cv_type_pid_t = no; then
3672 { test "$extra_verbose" = "yes" && cat << \EOF
3673 Defining pid_t = int
3675 cat >> confdefs.h <<\EOF
3682 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3683 echo "configure:3684: checking for uid_t in sys/types.h" >&5
3685 cat > conftest.$ac_ext <<EOF
3686 #line 3687 "configure"
3687 #include "confdefs.h"
3688 #include <sys/types.h>
3690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3691 egrep "uid_t" >/dev/null 2>&1; then
3693 ac_cv_type_uid_t=yes
3701 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3702 if test $ac_cv_type_uid_t = no; then
3703 { test "$extra_verbose" = "yes" && cat << \EOF
3704 Defining uid_t = int
3706 cat >> confdefs.h <<\EOF
3711 { test "$extra_verbose" = "yes" && cat << \EOF
3712 Defining gid_t = int
3714 cat >> confdefs.h <<\EOF
3721 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3722 echo "configure:3723: checking for mode_t" >&5
3724 cat > conftest.$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3727 #include <sys/types.h>
3733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3734 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3736 ac_cv_type_mode_t=yes
3739 ac_cv_type_mode_t=no
3743 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3744 if test $ac_cv_type_mode_t = no; then
3745 { test "$extra_verbose" = "yes" && cat << \EOF
3746 Defining mode_t = int
3748 cat >> confdefs.h <<\EOF
3755 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3756 echo "configure:3757: checking for off_t" >&5
3758 cat > conftest.$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3761 #include <sys/types.h>
3767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3768 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3770 ac_cv_type_off_t=yes
3777 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3778 if test $ac_cv_type_off_t = no; then
3779 { test "$extra_verbose" = "yes" && cat << \EOF
3780 Defining off_t = long
3782 cat >> confdefs.h <<\EOF
3790 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3791 echo "configure:3792: checking for struct timeval" >&5
3792 cat > conftest.$ac_ext <<EOF
3793 #line 3794 "configure"
3794 #include "confdefs.h"
3795 #ifdef TIME_WITH_SYS_TIME
3796 #include <sys/time.h>
3799 #ifdef HAVE_SYS_TIME_H
3800 #include <sys/time.h>
3806 static struct timeval x; x.tv_sec = x.tv_usec;
3809 if { (eval echo configure:3810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3811 echo "$ac_t""yes" 1>&6
3813 { test "$extra_verbose" = "yes" && cat << \EOF
3814 Defining HAVE_TIMEVAL
3816 cat >> confdefs.h <<\EOF
3817 #define HAVE_TIMEVAL 1
3822 echo "configure: failed program was:" >&5
3823 cat conftest.$ac_ext >&5
3825 echo "$ac_t""no" 1>&6
3830 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3831 echo "configure:3832: checking whether struct tm is in sys/time.h or time.h" >&5
3833 cat > conftest.$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3836 #include <sys/types.h>
3839 struct tm *tp; tp->tm_sec;
3842 if { (eval echo configure:3843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3844 ac_cv_struct_tm=time.h
3846 echo "configure: failed program was:" >&5
3847 cat conftest.$ac_ext >&5
3849 ac_cv_struct_tm=sys/time.h
3853 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3854 if test $ac_cv_struct_tm = sys/time.h; then
3855 { test "$extra_verbose" = "yes" && cat << \EOF
3856 Defining TM_IN_SYS_TIME
3858 cat >> confdefs.h <<\EOF
3859 #define TM_IN_SYS_TIME 1
3865 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3866 echo "configure:3867: checking for tm_zone in struct tm" >&5
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3871 #include <sys/types.h>
3872 #include <$ac_cv_struct_tm>
3874 struct tm tm; tm.tm_zone;
3877 if { (eval echo configure:3878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3879 ac_cv_struct_tm_zone=yes
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3884 ac_cv_struct_tm_zone=no
3888 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3889 if test "$ac_cv_struct_tm_zone" = yes; then
3890 { test "$extra_verbose" = "yes" && cat << \EOF
3891 Defining HAVE_TM_ZONE
3893 cat >> confdefs.h <<\EOF
3894 #define HAVE_TM_ZONE 1
3899 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3900 echo "configure:3901: checking for tzname" >&5
3902 cat > conftest.$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3906 #ifndef tzname /* For SGI. */
3907 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3913 if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3915 ac_cv_var_tzname=yes
3917 echo "configure: failed program was:" >&5
3918 cat conftest.$ac_ext >&5
3924 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3925 if test $ac_cv_var_tzname = yes; then
3926 { test "$extra_verbose" = "yes" && cat << \EOF
3927 Defining HAVE_TZNAME
3929 cat >> confdefs.h <<\EOF
3930 #define HAVE_TZNAME 1
3938 echo $ac_n "checking for working const""... $ac_c" 1>&6
3939 echo "configure:3940: checking for working const" >&5
3941 cat > conftest.$ac_ext <<EOF
3942 #line 3943 "configure"
3943 #include "confdefs.h"
3947 /* Ultrix mips cc rejects this. */
3948 typedef int charset[2]; const charset x;
3949 /* SunOS 4.1.1 cc rejects this. */
3950 char const *const *ccp;
3952 /* NEC SVR4.0.2 mips cc rejects this. */
3953 struct point {int x, y;};
3954 static struct point const zero = {0,0};
3955 /* AIX XL C 1.02.0.0 rejects this.
3956 It does not let you subtract one const X* pointer from another in an arm
3957 of an if-expression whose if-part is not a constant expression */
3958 const char *g = "string";
3959 ccp = &g + (g ? g-g : 0);
3960 /* HPUX 7.0 cc rejects these. */
3963 ccp = (char const *const *) p;
3964 { /* SCO 3.2v4 cc rejects this. */
3966 char const *s = 0 ? (char *) 0 : (char const *) 0;
3970 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3972 const int *foo = &x[0];
3975 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3976 typedef const int *iptr;
3980 { /* AIX XL C 1.02.0.0 rejects this saying
3981 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3982 struct s { int j; const int *ap[3]; };
3983 struct s *b; b->j = 5;
3985 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3991 if { (eval echo configure:3992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3995 echo "configure: failed program was:" >&5
3996 cat conftest.$ac_ext >&5
4002 echo "$ac_t""$ac_cv_c_const" 1>&6
4003 if test $ac_cv_c_const = no; then
4004 { test "$extra_verbose" = "yes" && cat << \EOF
4007 cat >> confdefs.h <<\EOF
4015 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4016 echo "configure:4017: checking whether ${MAKE-make} sets \${MAKE}" >&5
4017 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4019 cat > conftestmake <<\EOF
4021 @echo 'ac_maketemp="${MAKE}"'
4023 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4024 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4025 if test -n "$ac_maketemp"; then
4026 eval ac_cv_prog_make_${ac_make}_set=yes
4028 eval ac_cv_prog_make_${ac_make}_set=no
4031 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4032 echo "$ac_t""yes" 1>&6
4035 echo "$ac_t""no" 1>&6
4036 SET_MAKE="MAKE=${MAKE-make}"
4040 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4041 echo "configure:4042: checking whether byte ordering is bigendian" >&5
4043 ac_cv_c_bigendian=unknown
4044 # See if sys/param.h defines the BYTE_ORDER macro.
4045 cat > conftest.$ac_ext <<EOF
4046 #line 4047 "configure"
4047 #include "confdefs.h"
4048 #include <sys/types.h>
4049 #include <sys/param.h>
4052 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4057 if { (eval echo configure:4058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4059 # It does; now see whether it defined to BIG_ENDIAN or not.
4060 cat > conftest.$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4063 #include <sys/types.h>
4064 #include <sys/param.h>
4067 #if BYTE_ORDER != BIG_ENDIAN
4072 if { (eval echo configure:4073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4074 ac_cv_c_bigendian=yes
4076 echo "configure: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4079 ac_cv_c_bigendian=no
4083 echo "configure: failed program was:" >&5
4084 cat conftest.$ac_ext >&5
4087 if test $ac_cv_c_bigendian = unknown; then
4088 cat > conftest.$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4092 /* Are we little or big endian? From Harbison&Steele. */
4096 char c[sizeof (long)];
4099 exit (u.c[sizeof (long) - 1] == 1);
4102 if { (eval echo configure:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4104 ac_cv_c_bigendian=no
4107 echo "configure: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4110 ac_cv_c_bigendian=yes
4115 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4116 if test $ac_cv_c_bigendian = yes; then
4117 { test "$extra_verbose" = "yes" && cat << \EOF
4118 Defining WORDS_BIGENDIAN
4120 cat >> confdefs.h <<\EOF
4121 #define WORDS_BIGENDIAN 1
4128 echo $ac_n "checking size of short""... $ac_c" 1>&6
4129 echo "configure:4130: checking size of short" >&5
4131 cat > conftest.$ac_ext <<EOF
4132 #line 4133 "configure"
4133 #include "confdefs.h"
4137 FILE *f=fopen("conftestval", "w");
4139 fprintf(f, "%d\n", sizeof(short));
4143 if { (eval echo configure:4144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4145 ac_cv_sizeof_short=`cat conftestval`
4148 echo "configure: failed program was:" >&5
4149 cat conftest.$ac_ext >&5
4151 ac_cv_sizeof_short=0
4154 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4155 { test "$extra_verbose" = "yes" && cat << EOF
4156 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4158 cat >> confdefs.h <<EOF
4159 #define SIZEOF_SHORT $ac_cv_sizeof_short
4164 if test "$ac_cv_sizeof_short" = 0; then
4166 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4167 echo "*** PANIC *** Please examine config.log for compilation errors."
4170 echo $ac_n "checking size of int""... $ac_c" 1>&6
4171 echo "configure:4172: checking size of int" >&5
4173 cat > conftest.$ac_ext <<EOF
4174 #line 4175 "configure"
4175 #include "confdefs.h"
4179 FILE *f=fopen("conftestval", "w");
4181 fprintf(f, "%d\n", sizeof(int));
4185 if { (eval echo configure:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4187 ac_cv_sizeof_int=`cat conftestval`
4190 echo "configure: failed program was:" >&5
4191 cat conftest.$ac_ext >&5
4196 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4197 { test "$extra_verbose" = "yes" && cat << EOF
4198 Defining SIZEOF_INT = $ac_cv_sizeof_int
4200 cat >> confdefs.h <<EOF
4201 #define SIZEOF_INT $ac_cv_sizeof_int
4206 echo $ac_n "checking size of long""... $ac_c" 1>&6
4207 echo "configure:4208: checking size of long" >&5
4209 cat > conftest.$ac_ext <<EOF
4210 #line 4211 "configure"
4211 #include "confdefs.h"
4215 FILE *f=fopen("conftestval", "w");
4217 fprintf(f, "%d\n", sizeof(long));
4221 if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4223 ac_cv_sizeof_long=`cat conftestval`
4226 echo "configure: failed program was:" >&5
4227 cat conftest.$ac_ext >&5
4232 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4233 { test "$extra_verbose" = "yes" && cat << EOF
4234 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4236 cat >> confdefs.h <<EOF
4237 #define SIZEOF_LONG $ac_cv_sizeof_long
4242 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4243 echo "configure:4244: checking size of long long" >&5
4245 cat > conftest.$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4251 FILE *f=fopen("conftestval", "w");
4253 fprintf(f, "%d\n", sizeof(long long));
4257 if { (eval echo configure:4258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4259 ac_cv_sizeof_long_long=`cat conftestval`
4262 echo "configure: failed program was:" >&5
4263 cat conftest.$ac_ext >&5
4265 ac_cv_sizeof_long_long=0
4268 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4269 { test "$extra_verbose" = "yes" && cat << EOF
4270 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4272 cat >> confdefs.h <<EOF
4273 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4278 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4279 echo "configure:4280: checking size of void *" >&5
4281 cat > conftest.$ac_ext <<EOF
4282 #line 4283 "configure"
4283 #include "confdefs.h"
4287 FILE *f=fopen("conftestval", "w");
4289 fprintf(f, "%d\n", sizeof(void *));
4293 if { (eval echo configure:4294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4295 ac_cv_sizeof_void_p=`cat conftestval`
4298 echo "configure: failed program was:" >&5
4299 cat conftest.$ac_ext >&5
4301 ac_cv_sizeof_void_p=0
4304 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4305 { test "$extra_verbose" = "yes" && cat << EOF
4306 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4308 cat >> confdefs.h <<EOF
4309 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4315 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4316 echo "configure:4317: checking for long file names" >&5
4318 ac_cv_sys_long_file_names=yes
4319 # Test for long file names in all the places we know might matter:
4320 # . the current directory, where building will happen
4321 # $prefix/lib where we will be installing things
4322 # $exec_prefix/lib likewise
4323 # eval it to expand exec_prefix.
4324 # $TMPDIR if set, where it might want to write temporary files
4325 # if $TMPDIR is not set:
4326 # /tmp where it might want to write temporary files
4329 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4330 ac_tmpdirs="$TMPDIR"
4332 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4334 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4335 test -d $ac_dir || continue
4336 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4337 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4338 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4339 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4340 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4341 ac_cv_sys_long_file_names=no
4342 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4345 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4348 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4349 if test $ac_cv_sys_long_file_names = yes; then
4350 { test "$extra_verbose" = "yes" && cat << \EOF
4351 Defining HAVE_LONG_FILE_NAMES
4353 cat >> confdefs.h <<\EOF
4354 #define HAVE_LONG_FILE_NAMES 1
4361 echo $ac_n "checking for sin""... $ac_c" 1>&6
4362 echo "configure:4363: checking for sin" >&5
4364 cat > conftest.$ac_ext <<EOF
4365 #line 4366 "configure"
4366 #include "confdefs.h"
4367 /* System header to define __stub macros and hopefully few prototypes,
4368 which can conflict with char sin(); below. */
4370 /* Override any gcc2 internal prototype to avoid an error. */
4371 /* We use char because int might match the return type of a gcc2
4372 builtin and then its argument prototype would still apply. */
4377 /* The GNU C library defines this for functions which it implements
4378 to always fail with ENOSYS. Some functions are actually named
4379 something starting with __ and the normal name is an alias. */
4380 #if defined (__stub_sin) || defined (__stub___sin)
4388 if { (eval echo configure:4389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4390 eval "ac_cv_func_sin=yes"
4392 echo "configure: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4395 eval "ac_cv_func_sin=no"
4399 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4400 echo "$ac_t""yes" 1>&6
4403 echo "$ac_t""no" 1>&6
4405 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4406 echo "configure:4407: checking for sin in -lm" >&5
4407 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4409 xe_check_libs=" -lm "
4410 cat > conftest.$ac_ext <<EOF
4411 #line 4412 "configure"
4412 #include "confdefs.h"
4413 /* Override any gcc2 internal prototype to avoid an error. */
4414 /* We use char because int might match the return type of a gcc2
4415 builtin and then its argument prototype would still apply. */
4422 if { (eval echo configure:4423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4424 eval "ac_cv_lib_$ac_lib_var=yes"
4426 echo "configure: failed program was:" >&5
4427 cat conftest.$ac_ext >&5
4429 eval "ac_cv_lib_$ac_lib_var=no"
4434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4435 echo "$ac_t""yes" 1>&6
4436 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4437 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4438 { test "$extra_verbose" = "yes" && cat << EOF
4441 cat >> confdefs.h <<EOF
4442 #define $ac_tr_lib 1
4446 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4449 echo "$ac_t""no" 1>&6
4456 { test "$extra_verbose" = "yes" && cat << \EOF
4457 Defining LISP_FLOAT_TYPE
4459 cat >> confdefs.h <<\EOF
4460 #define LISP_FLOAT_TYPE 1
4465 cat > conftest.$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4470 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4473 if { (eval echo configure:4474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4475 { test "$extra_verbose" = "yes" && cat << \EOF
4476 Defining HAVE_INVERSE_HYPERBOLIC
4478 cat >> confdefs.h <<\EOF
4479 #define HAVE_INVERSE_HYPERBOLIC 1
4484 echo "configure: failed program was:" >&5
4485 cat conftest.$ac_ext >&5
4489 echo "checking type of mail spool file locking" 1>&6
4490 echo "configure:4491: checking type of mail spool file locking" >&5
4491 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4492 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4493 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4494 Defining REAL_MAIL_USE_LOCKF
4496 cat >> confdefs.h <<\EOF
4497 #define REAL_MAIL_USE_LOCKF 1
4501 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4502 Defining REAL_MAIL_USE_FLOCK
4504 cat >> confdefs.h <<\EOF
4505 #define REAL_MAIL_USE_FLOCK 1
4509 else mail_locking="dot-locking"
4512 case "$opsys" in decosf*)
4514 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4515 echo "configure:4516: checking for cma_open in -lpthreads" >&5
4516 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4518 xe_check_libs=" -lpthreads "
4519 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4522 /* Override any gcc2 internal prototype to avoid an error. */
4523 /* We use char because int might match the return type of a gcc2
4524 builtin and then its argument prototype would still apply. */
4531 if { (eval echo configure:4532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4533 eval "ac_cv_lib_$ac_lib_var=yes"
4535 echo "configure: failed program was:" >&5
4536 cat conftest.$ac_ext >&5
4538 eval "ac_cv_lib_$ac_lib_var=no"
4543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4544 echo "$ac_t""yes" 1>&6
4545 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4546 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4547 { test "$extra_verbose" = "yes" && cat << EOF
4550 cat >> confdefs.h <<EOF
4551 #define $ac_tr_lib 1
4555 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4558 echo "$ac_t""no" 1>&6
4562 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4563 c_switch_site="$c_switch_site -threads" ;;
4566 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4567 echo "configure:4568: checking whether the -xildoff compiler flag is required" >&5
4568 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4569 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4570 then echo "$ac_t""no" 1>&6;
4571 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
4573 else echo "$ac_t""no" 1>&6
4576 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4577 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4578 echo "configure:4579: checking for \"-z ignore\" linker flag" >&5
4579 case "`ld -h 2>&1`" in
4580 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4581 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4582 *) echo "$ac_t""no" 1>&6 ;;
4587 echo "checking "for specified window system"" 1>&6
4588 echo "configure:4589: checking "for specified window system"" >&5
4590 if test "$with_x11" != "no"; then
4591 test "$x_includes $x_libraries" != "NONE NONE" && \
4592 window_system=x11 with_x11=yes
4595 if test "$x_includes $x_libraries" = "NONE NONE" \
4596 -a -n "$OPENWINHOME" \
4597 -a "$OPENWINHOME" != "/usr/openwin" \
4598 -a -d "$OPENWINHOME"; then
4599 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4600 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4601 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4604 if test "$x_includes" = "NONE"; then
4605 for dir in "/usr/X11" "/usr/X11R6"; do
4606 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4610 if test "$x_libraries" = "NONE"; then
4611 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4612 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4616 # If we find X, set shell vars x_includes and x_libraries to the
4617 # paths, otherwise set no_x=yes.
4618 # Uses ac_ vars as temps to allow command line to override cache and checks.
4619 # --without-x overrides everything else, but does not touch the cache.
4620 echo $ac_n "checking for X""... $ac_c" 1>&6
4621 echo "configure:4622: checking for X" >&5
4623 # Check whether --with-x or --without-x was given.
4624 if test "${with_x+set}" = set; then
4629 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4630 if test "x$with_x" = xno; then
4631 # The user explicitly disabled X.
4634 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4635 # Both variables are already set.
4639 # One or both of the vars are not set, and there is no cached value.
4640 ac_x_includes=NO ac_x_libraries=NO
4642 if mkdir conftestdir; then
4644 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4645 cat > Imakefile <<'EOF'
4647 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4649 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4650 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4651 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4652 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4653 for ac_extension in a so sl; do
4654 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4655 test -f $ac_im_libdir/libX11.$ac_extension; then
4656 ac_im_usrlibdir=$ac_im_libdir; break
4659 # Screen out bogus values from the imake configuration. They are
4660 # bogus both because they are the default anyway, and because
4661 # using them would break gcc on systems where it needs fixed includes.
4662 case "$ac_im_incroot" in
4664 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4666 case "$ac_im_usrlibdir" in
4668 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4675 if test "$ac_x_includes" = NO; then
4676 # Guess where to find include files, by looking for this one X11 .h file.
4677 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4679 # First, try using that file with no special directory specified.
4680 cat > conftest.$ac_ext <<EOF
4681 #line 4682 "configure"
4682 #include "confdefs.h"
4683 #include <$x_direct_test_include>
4685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4686 { (eval echo configure:4687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4688 if test -z "$ac_err"; then
4690 # We can compile using X headers with no special include directory.
4694 echo "configure: failed program was:" >&5
4695 cat conftest.$ac_ext >&5
4697 # Look for the header file in a standard set of common directories.
4698 # Check X11 before X11Rn because it is often a symlink to the current release.
4701 /usr/X11R6/include \
4702 /usr/X11R5/include \
4703 /usr/X11R4/include \
4706 /usr/include/X11R6 \
4707 /usr/include/X11R5 \
4708 /usr/include/X11R4 \
4710 /usr/local/X11/include \
4711 /usr/local/X11R6/include \
4712 /usr/local/X11R5/include \
4713 /usr/local/X11R4/include \
4715 /usr/local/include/X11 \
4716 /usr/local/include/X11R6 \
4717 /usr/local/include/X11R5 \
4718 /usr/local/include/X11R4 \
4722 /usr/XFree86/include/X11 \
4725 /usr/local/include \
4726 /usr/unsupported/include \
4727 /usr/athena/include \
4728 /usr/local/x11r5/include \
4729 /usr/lpp/Xamples/include \
4731 /usr/openwin/include \
4732 /usr/openwin/share/include \
4735 if test -r "$ac_dir/$x_direct_test_include"; then
4736 ac_x_includes=$ac_dir
4742 fi # $ac_x_includes = NO
4744 if test "$ac_x_libraries" = NO; then
4745 # Check for the libraries.
4747 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4748 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4750 # See if we find them without any special options.
4751 # Don't add to $LIBS permanently.
4752 ac_save_LIBS="$LIBS"
4753 LIBS="-l$x_direct_test_library $LIBS"
4754 cat > conftest.$ac_ext <<EOF
4755 #line 4756 "configure"
4756 #include "confdefs.h"
4759 ${x_direct_test_function}()
4762 if { (eval echo configure:4763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4764 LIBS="$ac_save_LIBS"
4765 # We can link X programs with no special library path.
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4771 LIBS="$ac_save_LIBS"
4772 # First see if replacing the include by lib works.
4773 # Check X11 before X11Rn because it is often a symlink to the current release.
4774 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4785 /usr/local/X11/lib \
4786 /usr/local/X11R6/lib \
4787 /usr/local/X11R5/lib \
4788 /usr/local/X11R4/lib \
4790 /usr/local/lib/X11 \
4791 /usr/local/lib/X11R6 \
4792 /usr/local/lib/X11R5 \
4793 /usr/local/lib/X11R4 \
4797 /usr/XFree86/lib/X11 \
4801 /usr/unsupported/lib \
4803 /usr/local/x11r5/lib \
4804 /usr/lpp/Xamples/lib \
4808 /usr/openwin/share/lib \
4811 for ac_extension in a so sl; do
4812 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4813 ac_x_libraries=$ac_dir
4820 fi # $ac_x_libraries = NO
4822 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4823 # Didn't find X anywhere. Cache the known absence of X.
4824 ac_cv_have_x="have_x=no"
4826 # Record where we found X for the cache.
4827 ac_cv_have_x="have_x=yes \
4828 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4831 eval "$ac_cv_have_x"
4834 if test "$have_x" != yes; then
4835 echo "$ac_t""$have_x" 1>&6
4838 # If each of the values was on the command line, it overrides each guess.
4839 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4840 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4841 # Update the cache value to reflect the command line values.
4842 ac_cv_have_x="have_x=yes \
4843 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4844 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4847 if test "$no_x" = yes; then
4848 # Not all programs may use this symbol, but it does not hurt to define it.
4849 { test "$extra_verbose" = "yes" && cat << \EOF
4850 Defining X_DISPLAY_MISSING
4852 cat >> confdefs.h <<\EOF
4853 #define X_DISPLAY_MISSING 1
4857 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4859 if test -n "$x_includes"; then
4860 X_CFLAGS="$X_CFLAGS -I$x_includes"
4863 # It would also be nice to do this for all -L options, not just this one.
4864 if test -n "$x_libraries"; then
4865 X_LIBS="$X_LIBS -L$x_libraries"
4866 # For Solaris; some versions of Sun CC require a space after -R and
4867 # others require no space. Words are not sufficient . . . .
4868 case "`(uname -sr) 2>/dev/null`" in
4870 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4871 echo "configure:4872: checking whether -R must be followed by a space" >&5
4872 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4885 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4891 if test $ac_R_nospace = yes; then
4892 echo "$ac_t""no" 1>&6
4893 X_LIBS="$X_LIBS -R$x_libraries"
4895 LIBS="$ac_xsave_LIBS -R $x_libraries"
4896 cat > conftest.$ac_ext <<EOF
4897 #line 4898 "configure"
4898 #include "confdefs.h"
4904 if { (eval echo configure:4905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4908 echo "configure: failed program was:" >&5
4909 cat conftest.$ac_ext >&5
4914 if test $ac_R_space = yes; then
4915 echo "$ac_t""yes" 1>&6
4916 X_LIBS="$X_LIBS -R $x_libraries"
4918 echo "$ac_t""neither works" 1>&6
4921 LIBS="$ac_xsave_LIBS"
4925 # Check for system-dependent libraries X programs must link with.
4926 # Do this before checking for the system-independent R6 libraries
4927 # (-lICE), since we may need -lsocket or whatever for X linking.
4929 if test "$ISC" = yes; then
4930 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4932 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4933 # libraries were built with DECnet support. And karl@cs.umb.edu says
4934 # the Alpha needs dnet_stub (dnet does not exist).
4935 if test "$with_dnet" = "no" ; then
4936 ac_cv_lib_dnet_dnet_ntoa=no
4939 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4940 echo "configure:4941: checking for dnet_ntoa in -ldnet" >&5
4941 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4943 xe_check_libs=" -ldnet "
4944 cat > conftest.$ac_ext <<EOF
4945 #line 4946 "configure"
4946 #include "confdefs.h"
4947 /* Override any gcc2 internal prototype to avoid an error. */
4948 /* We use char because int might match the return type of a gcc2
4949 builtin and then its argument prototype would still apply. */
4956 if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4958 eval "ac_cv_lib_$ac_lib_var=yes"
4960 echo "configure: failed program was:" >&5
4961 cat conftest.$ac_ext >&5
4963 eval "ac_cv_lib_$ac_lib_var=no"
4968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4969 echo "$ac_t""yes" 1>&6
4970 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4972 echo "$ac_t""no" 1>&6
4977 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4979 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4980 echo "configure:4981: checking for dnet_ntoa in -ldnet_stub" >&5
4981 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4983 xe_check_libs=" -ldnet_stub "
4984 cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4987 /* Override any gcc2 internal prototype to avoid an error. */
4988 /* We use char because int might match the return type of a gcc2
4989 builtin and then its argument prototype would still apply. */
4996 if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4998 eval "ac_cv_lib_$ac_lib_var=yes"
5000 echo "configure: failed program was:" >&5
5001 cat conftest.$ac_ext >&5
5003 eval "ac_cv_lib_$ac_lib_var=no"
5008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5009 echo "$ac_t""yes" 1>&6
5010 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5012 echo "$ac_t""no" 1>&6
5018 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5019 # to get the SysV transport functions.
5020 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5022 # The nsl library prevents programs from opening the X display
5023 # on Irix 5.2, according to dickey@clark.net.
5024 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5025 echo "configure:5026: checking for gethostbyname" >&5
5027 cat > conftest.$ac_ext <<EOF
5028 #line 5029 "configure"
5029 #include "confdefs.h"
5030 /* System header to define __stub macros and hopefully few prototypes,
5031 which can conflict with char gethostbyname(); below. */
5033 /* Override any gcc2 internal prototype to avoid an error. */
5034 /* We use char because int might match the return type of a gcc2
5035 builtin and then its argument prototype would still apply. */
5036 char gethostbyname();
5040 /* The GNU C library defines this for functions which it implements
5041 to always fail with ENOSYS. Some functions are actually named
5042 something starting with __ and the normal name is an alias. */
5043 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5051 if { (eval echo configure:5052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5053 eval "ac_cv_func_gethostbyname=yes"
5055 echo "configure: failed program was:" >&5
5056 cat conftest.$ac_ext >&5
5058 eval "ac_cv_func_gethostbyname=no"
5062 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5063 echo "$ac_t""yes" 1>&6
5066 echo "$ac_t""no" 1>&6
5069 if test $ac_cv_func_gethostbyname = no; then
5071 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5072 echo "configure:5073: checking for gethostbyname in -lnsl" >&5
5073 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5075 xe_check_libs=" -lnsl "
5076 cat > conftest.$ac_ext <<EOF
5077 #line 5078 "configure"
5078 #include "confdefs.h"
5079 /* Override any gcc2 internal prototype to avoid an error. */
5080 /* We use char because int might match the return type of a gcc2
5081 builtin and then its argument prototype would still apply. */
5082 char gethostbyname();
5088 if { (eval echo configure:5089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5090 eval "ac_cv_lib_$ac_lib_var=yes"
5092 echo "configure: failed program was:" >&5
5093 cat conftest.$ac_ext >&5
5095 eval "ac_cv_lib_$ac_lib_var=no"
5100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5101 echo "$ac_t""yes" 1>&6
5102 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5104 echo "$ac_t""no" 1>&6
5110 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5111 # socket/setsockopt and other routines are undefined under SCO ODT
5112 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5113 # on later versions), says simon@lia.di.epfl.ch: it contains
5114 # gethostby* variants that don't use the nameserver (or something).
5115 # -lsocket must be given before -lnsl if both are needed.
5116 # We assume that if connect needs -lnsl, so does gethostbyname.
5117 echo $ac_n "checking for connect""... $ac_c" 1>&6
5118 echo "configure:5119: checking for connect" >&5
5120 cat > conftest.$ac_ext <<EOF
5121 #line 5122 "configure"
5122 #include "confdefs.h"
5123 /* System header to define __stub macros and hopefully few prototypes,
5124 which can conflict with char connect(); below. */
5126 /* Override any gcc2 internal prototype to avoid an error. */
5127 /* We use char because int might match the return type of a gcc2
5128 builtin and then its argument prototype would still apply. */
5133 /* The GNU C library defines this for functions which it implements
5134 to always fail with ENOSYS. Some functions are actually named
5135 something starting with __ and the normal name is an alias. */
5136 #if defined (__stub_connect) || defined (__stub___connect)
5144 if { (eval echo configure:5145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5146 eval "ac_cv_func_connect=yes"
5148 echo "configure: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5151 eval "ac_cv_func_connect=no"
5155 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5156 echo "$ac_t""yes" 1>&6
5159 echo "$ac_t""no" 1>&6
5162 if test $ac_cv_func_connect = no; then
5164 xe_msg_checking="for connect in -lsocket"
5165 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5166 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5167 echo "configure:5168: checking "$xe_msg_checking"" >&5
5168 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5170 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5171 cat > conftest.$ac_ext <<EOF
5172 #line 5173 "configure"
5173 #include "confdefs.h"
5174 /* Override any gcc2 internal prototype to avoid an error. */
5175 /* We use char because int might match the return type of a gcc2
5176 builtin and then its argument prototype would still apply. */
5183 if { (eval echo configure:5184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5185 eval "ac_cv_lib_$ac_lib_var=yes"
5187 echo "configure: failed program was:" >&5
5188 cat conftest.$ac_ext >&5
5190 eval "ac_cv_lib_$ac_lib_var=no"
5195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5196 echo "$ac_t""yes" 1>&6
5197 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5199 echo "$ac_t""no" 1>&6
5205 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5206 echo $ac_n "checking for remove""... $ac_c" 1>&6
5207 echo "configure:5208: checking for remove" >&5
5209 cat > conftest.$ac_ext <<EOF
5210 #line 5211 "configure"
5211 #include "confdefs.h"
5212 /* System header to define __stub macros and hopefully few prototypes,
5213 which can conflict with char remove(); below. */
5215 /* Override any gcc2 internal prototype to avoid an error. */
5216 /* We use char because int might match the return type of a gcc2
5217 builtin and then its argument prototype would still apply. */
5222 /* The GNU C library defines this for functions which it implements
5223 to always fail with ENOSYS. Some functions are actually named
5224 something starting with __ and the normal name is an alias. */
5225 #if defined (__stub_remove) || defined (__stub___remove)
5233 if { (eval echo configure:5234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5235 eval "ac_cv_func_remove=yes"
5237 echo "configure: failed program was:" >&5
5238 cat conftest.$ac_ext >&5
5240 eval "ac_cv_func_remove=no"
5244 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5245 echo "$ac_t""yes" 1>&6
5248 echo "$ac_t""no" 1>&6
5251 if test $ac_cv_func_remove = no; then
5253 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5254 echo "configure:5255: checking for remove in -lposix" >&5
5255 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5257 xe_check_libs=" -lposix "
5258 cat > conftest.$ac_ext <<EOF
5259 #line 5260 "configure"
5260 #include "confdefs.h"
5261 /* Override any gcc2 internal prototype to avoid an error. */
5262 /* We use char because int might match the return type of a gcc2
5263 builtin and then its argument prototype would still apply. */
5270 if { (eval echo configure:5271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5272 eval "ac_cv_lib_$ac_lib_var=yes"
5274 echo "configure: failed program was:" >&5
5275 cat conftest.$ac_ext >&5
5277 eval "ac_cv_lib_$ac_lib_var=no"
5282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5283 echo "$ac_t""yes" 1>&6
5284 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5286 echo "$ac_t""no" 1>&6
5292 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5293 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5294 echo "configure:5295: checking for shmat" >&5
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5299 /* System header to define __stub macros and hopefully few prototypes,
5300 which can conflict with char shmat(); below. */
5302 /* Override any gcc2 internal prototype to avoid an error. */
5303 /* We use char because int might match the return type of a gcc2
5304 builtin and then its argument prototype would still apply. */
5309 /* The GNU C library defines this for functions which it implements
5310 to always fail with ENOSYS. Some functions are actually named
5311 something starting with __ and the normal name is an alias. */
5312 #if defined (__stub_shmat) || defined (__stub___shmat)
5320 if { (eval echo configure:5321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5322 eval "ac_cv_func_shmat=yes"
5324 echo "configure: failed program was:" >&5
5325 cat conftest.$ac_ext >&5
5327 eval "ac_cv_func_shmat=no"
5331 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5332 echo "$ac_t""yes" 1>&6
5335 echo "$ac_t""no" 1>&6
5338 if test $ac_cv_func_shmat = no; then
5340 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5341 echo "configure:5342: checking for shmat in -lipc" >&5
5342 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5344 xe_check_libs=" -lipc "
5345 cat > conftest.$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5348 /* Override any gcc2 internal prototype to avoid an error. */
5349 /* We use char because int might match the return type of a gcc2
5350 builtin and then its argument prototype would still apply. */
5357 if { (eval echo configure:5358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5359 eval "ac_cv_lib_$ac_lib_var=yes"
5361 echo "configure: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5364 eval "ac_cv_lib_$ac_lib_var=no"
5369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5370 echo "$ac_t""yes" 1>&6
5371 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5373 echo "$ac_t""no" 1>&6
5380 # Check for libraries that X11R6 Xt/Xaw programs need.
5381 ac_save_LDFLAGS="$LDFLAGS"
5382 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5383 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5384 # check for ICE first), but we must link in the order -lSM -lICE or
5385 # we get undefined symbols. So assume we have SM if we have ICE.
5386 # These have to be linked with before -lX11, unlike the other
5387 # libraries we check for below, so use a different variable.
5388 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5390 xe_msg_checking="for IceConnectionNumber in -lICE"
5391 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5392 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5393 echo "configure:5394: checking "$xe_msg_checking"" >&5
5394 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5396 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5397 cat > conftest.$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5400 /* Override any gcc2 internal prototype to avoid an error. */
5401 /* We use char because int might match the return type of a gcc2
5402 builtin and then its argument prototype would still apply. */
5403 char IceConnectionNumber();
5406 IceConnectionNumber()
5409 if { (eval echo configure:5410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5411 eval "ac_cv_lib_$ac_lib_var=yes"
5413 echo "configure: failed program was:" >&5
5414 cat conftest.$ac_ext >&5
5416 eval "ac_cv_lib_$ac_lib_var=no"
5421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5422 echo "$ac_t""yes" 1>&6
5423 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5425 echo "$ac_t""no" 1>&6
5429 LDFLAGS="$ac_save_LDFLAGS"
5432 # Autoconf claims to find X library and include dirs for us.
5433 if test "$no_x" = "yes"
5434 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5435 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5440 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5441 no ) window_system=none HAVE_X_WINDOWS=no ;;
5444 if test "$with_x11" = "yes"; then
5445 { test "$extra_verbose" = "yes" && cat << \EOF
5446 Defining HAVE_X_WINDOWS
5448 cat >> confdefs.h <<\EOF
5449 #define HAVE_X_WINDOWS 1
5453 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5454 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5456 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5457 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5458 if test -d "$lib_dir" -a -d "$inc_dir"; then
5459 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5460 x_libraries="$lib_dir $x_libraries"
5461 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5463 case "$x_includes" in "$inc_dir"* ) ;; *)
5464 x_includes="$inc_dir $x_includes"
5465 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5470 for rel in "X11R6" "X11R5" "X11R4"; do
5471 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5472 if test -d "$lib_dir" -a -d "$inc_dir"; then
5473 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5474 x_libraries="$x_libraries $lib_dir"
5475 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5477 case "$x_includes" in "$inc_dir"* ) ;; *)
5478 x_includes="$x_includes $inc_dir"
5479 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5484 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
5486 ld_switch_x_site="$X_LIBS"
5489 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5490 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5491 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5493 runpath="" runpath_dirs=""
5494 if test -n "$LD_RUN_PATH"; then
5495 runpath="$LD_RUN_PATH"
5496 elif test "$GCC" = "yes"; then
5497 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5498 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5499 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5500 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5501 case "$arg" in P,* | -L* | -R* )
5502 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5504 xe_runpath_dir="$dir"
5505 test "$xe_runpath_dir" != "/lib" -a \
5506 "$xe_runpath_dir" != "/usr/lib" -a \
5507 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5508 eval "$xe_add_unique_runpath_dir"
5513 ld_switch_run="$ld_switch_run_save"
5516 for arg in $ld_switch_site $ld_switch_x_site; do
5517 case "$arg" in -L*) {
5518 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5519 test "$xe_runpath_dir" != "/lib" -a \
5520 "$xe_runpath_dir" != "/usr/lib" -a \
5521 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5522 eval "$xe_add_unique_runpath_dir"
5525 if test "$opsys $need_motif" = "sol2 yes"; then
5526 xe_runpath_dir="/opt/SUNWdt/lib";
5527 eval "$xe_add_unique_runpath_dir";
5530 if test -n "$runpath"; then
5531 ld_switch_run="${dash_r}${runpath}"
5533 if test "$GCC" = "yes"; then
5534 set x $ld_switch_run; shift; ld_switch_run=""
5535 while test -n "$1"; do
5537 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5538 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5540 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5545 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5550 if test "$extra_verbose" = "yes"; then
5551 echo; echo "X11 compilation variables:"
5552 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5557 if test "$x_includes" != NONE; then
5558 for i in $x_includes; do
5559 if test -d "$i/bitmaps"; then
5560 bitmapdirs="$i/bitmaps:$bitmapdirs"
5562 if test -d "$i/X11/bitmaps"; then
5563 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5566 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5568 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5569 Defining BITMAPDIR = "$bitmapdirs"
5571 cat >> confdefs.h <<EOF
5572 #define BITMAPDIR "$bitmapdirs"
5577 echo "checking for X defines extracted by xmkmf" 1>&6
5578 echo "configure:5579: checking for X defines extracted by xmkmf" >&5
5580 if mkdir conftestdir; then
5582 cat > Imakefile <<'EOF'
5584 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5586 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5587 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5588 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5592 for word in $xmkmf_defines; do
5595 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5596 { test "$extra_verbose" = "yes" && cat << EOF
5599 cat >> confdefs.h <<EOF
5608 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5609 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5610 echo "configure:5611: checking for X11/Intrinsic.h" >&5
5612 cat > conftest.$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5615 #include <X11/Intrinsic.h>
5617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5618 { (eval echo configure:5619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5620 if test -z "$ac_err"; then
5622 eval "ac_cv_header_$ac_safe=yes"
5625 echo "configure: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5628 eval "ac_cv_header_$ac_safe=no"
5631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5632 echo "$ac_t""yes" 1>&6
5635 echo "$ac_t""no" 1>&6
5636 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5641 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5642 echo "configure:5643: checking for XOpenDisplay in -lX11" >&5
5643 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5645 xe_check_libs=" -lX11 "
5646 cat > conftest.$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5649 /* Override any gcc2 internal prototype to avoid an error. */
5650 /* We use char because int might match the return type of a gcc2
5651 builtin and then its argument prototype would still apply. */
5652 char XOpenDisplay();
5658 if { (eval echo configure:5659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5660 eval "ac_cv_lib_$ac_lib_var=yes"
5662 echo "configure: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5665 eval "ac_cv_lib_$ac_lib_var=no"
5670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5671 echo "$ac_t""yes" 1>&6
5674 echo "$ac_t""no" 1>&6
5678 if test "$have_lib_x11" != "yes"; then
5680 xe_msg_checking="for XGetFontProperty in -lX11"
5681 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5682 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5683 echo "configure:5684: checking "$xe_msg_checking"" >&5
5684 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5686 xe_check_libs=" -lX11 -b i486-linuxaout"
5687 cat > conftest.$ac_ext <<EOF
5688 #line 5689 "configure"
5689 #include "confdefs.h"
5690 /* Override any gcc2 internal prototype to avoid an error. */
5691 /* We use char because int might match the return type of a gcc2
5692 builtin and then its argument prototype would still apply. */
5693 char XGetFontProperty();
5699 if { (eval echo configure:5700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5701 eval "ac_cv_lib_$ac_lib_var=yes"
5703 echo "configure: failed program was:" >&5
5704 cat conftest.$ac_ext >&5
5706 eval "ac_cv_lib_$ac_lib_var=no"
5711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5712 echo "$ac_t""yes" 1>&6
5713 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5715 echo "$ac_t""no" 1>&6
5716 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5722 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5725 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5726 echo "configure:5727: checking for XShapeSelectInput in -lXext" >&5
5727 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5729 xe_check_libs=" -lXext "
5730 cat > conftest.$ac_ext <<EOF
5731 #line 5732 "configure"
5732 #include "confdefs.h"
5733 /* Override any gcc2 internal prototype to avoid an error. */
5734 /* We use char because int might match the return type of a gcc2
5735 builtin and then its argument prototype would still apply. */
5736 char XShapeSelectInput();
5742 if { (eval echo configure:5743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5744 eval "ac_cv_lib_$ac_lib_var=yes"
5746 echo "configure: failed program was:" >&5
5747 cat conftest.$ac_ext >&5
5749 eval "ac_cv_lib_$ac_lib_var=no"
5754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5755 echo "$ac_t""yes" 1>&6
5756 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5758 echo "$ac_t""no" 1>&6
5764 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5765 echo "configure:5766: checking for XtOpenDisplay in -lXt" >&5
5766 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5768 xe_check_libs=" -lXt "
5769 cat > conftest.$ac_ext <<EOF
5770 #line 5771 "configure"
5771 #include "confdefs.h"
5772 /* Override any gcc2 internal prototype to avoid an error. */
5773 /* We use char because int might match the return type of a gcc2
5774 builtin and then its argument prototype would still apply. */
5775 char XtOpenDisplay();
5781 if { (eval echo configure:5782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5783 eval "ac_cv_lib_$ac_lib_var=yes"
5785 echo "configure: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5788 eval "ac_cv_lib_$ac_lib_var=no"
5793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5794 echo "$ac_t""yes" 1>&6
5795 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5797 echo "$ac_t""no" 1>&6
5798 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5803 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5804 echo "configure:5805: checking the version of X11 being used" >&5
5805 cat > conftest.$ac_ext <<EOF
5806 #line 5807 "configure"
5807 #include "confdefs.h"
5808 #include <X11/Intrinsic.h>
5809 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5811 if { (eval echo configure:5812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5813 ./conftest foobar; x11_release=$?
5816 echo "configure: failed program was:" >&5
5817 cat conftest.$ac_ext >&5
5822 echo "$ac_t""R${x11_release}" 1>&6
5823 { test "$extra_verbose" = "yes" && cat << EOF
5824 Defining THIS_IS_X11R${x11_release}
5826 cat >> confdefs.h <<EOF
5827 #define THIS_IS_X11R${x11_release} 1
5832 for ac_hdr in X11/Xlocale.h
5834 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5835 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5836 echo "configure:5837: checking for $ac_hdr" >&5
5838 cat > conftest.$ac_ext <<EOF
5839 #line 5840 "configure"
5840 #include "confdefs.h"
5843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5844 { (eval echo configure:5845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5846 if test -z "$ac_err"; then
5848 eval "ac_cv_header_$ac_safe=yes"
5851 echo "configure: failed program was:" >&5
5852 cat conftest.$ac_ext >&5
5854 eval "ac_cv_header_$ac_safe=no"
5857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5858 echo "$ac_t""yes" 1>&6
5859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5860 { test "$extra_verbose" = "yes" && cat << EOF
5863 cat >> confdefs.h <<EOF
5864 #define $ac_tr_hdr 1
5869 echo "$ac_t""no" 1>&6
5874 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5875 echo "configure:5876: checking for XFree86" >&5
5876 if test -d "/usr/X386/include" -o \
5877 -f "/etc/XF86Config" -o \
5878 -f "/etc/X11/XF86Config" -o \
5879 -f "/usr/X11R6/lib/X11/XF86Config"; then
5880 echo "$ac_t""yes" 1>&6
5881 { test "$extra_verbose" = "yes" && cat << \EOF
5882 Defining HAVE_XFREE386
5884 cat >> confdefs.h <<\EOF
5885 #define HAVE_XFREE386 1
5890 echo "$ac_t""no" 1>&6
5893 test -z "$with_xmu" && {
5894 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5895 echo "configure:5896: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5896 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5898 xe_check_libs=" -lXmu "
5899 cat > conftest.$ac_ext <<EOF
5900 #line 5901 "configure"
5901 #include "confdefs.h"
5902 /* Override any gcc2 internal prototype to avoid an error. */
5903 /* We use char because int might match the return type of a gcc2
5904 builtin and then its argument prototype would still apply. */
5905 char XmuReadBitmapDataFromFile();
5908 XmuReadBitmapDataFromFile()
5911 if { (eval echo configure:5912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5913 eval "ac_cv_lib_$ac_lib_var=yes"
5915 echo "configure: failed program was:" >&5
5916 cat conftest.$ac_ext >&5
5918 eval "ac_cv_lib_$ac_lib_var=no"
5923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5924 echo "$ac_t""yes" 1>&6
5927 echo "$ac_t""no" 1>&6
5932 if test "$with_xmu" = "no"; then
5933 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
5934 echo " xemacs will be linked with \"xmu.o\""
5937 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
5938 { test "$extra_verbose" = "yes" && cat << \EOF
5941 cat >> confdefs.h <<\EOF
5949 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5950 echo "configure:5951: checking for main in -lXbsd" >&5
5951 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5953 xe_check_libs=" -lXbsd "
5954 cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure"
5956 #include "confdefs.h"
5962 if { (eval echo configure:5963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5964 eval "ac_cv_lib_$ac_lib_var=yes"
5966 echo "configure: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5969 eval "ac_cv_lib_$ac_lib_var=no"
5974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5975 echo "$ac_t""yes" 1>&6
5976 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
5978 echo "$ac_t""no" 1>&6
5983 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
5984 if test "$GCC" = "yes"; then
5985 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
5986 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
5989 "xlc" ) CC="xlc_r" ;;
5990 "xlC" ) CC="xlC_r" ;;
5997 if test "$with_msw" != "no"; then
5998 echo "checking for MS-Windows" 1>&6
5999 echo "configure:6000: checking for MS-Windows" >&5
6001 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6002 echo "configure:6003: checking for main in -lgdi32" >&5
6003 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6005 xe_check_libs=" -lgdi32 "
6006 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6014 if { (eval echo configure:6015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6016 eval "ac_cv_lib_$ac_lib_var=yes"
6018 echo "configure: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6021 eval "ac_cv_lib_$ac_lib_var=no"
6026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6027 echo "$ac_t""yes" 1>&6
6030 echo "$ac_t""no" 1>&6
6034 if test "$with_msw" = "yes"; then
6035 { test "$extra_verbose" = "yes" && cat << \EOF
6036 Defining HAVE_MS_WINDOWS
6038 cat >> confdefs.h <<\EOF
6039 #define HAVE_MS_WINDOWS 1
6043 install_pp="$blddir/lib-src/installexe.sh"
6044 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
6045 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6046 if test "$window_system" != x11; then
6048 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6049 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6050 echo " xemacs will be linked with \"scrollbar-msw.o\""
6052 test "$with_menubars" != "no" && with_menubars=msw \
6053 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6054 echo " xemacs will be linked with \"menubar-msw.o\""
6056 test "$with_toolbars" != "no" && with_toolbars=msw \
6057 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6058 echo " xemacs will be linked with \"toolbar-msw.o\""
6060 test "$with_dialogs" != "no" && with_dialogs=msw \
6061 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6062 echo " xemacs will be linked with \"dialog-msw.o\""
6065 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6066 echo " xemacs will be linked with \"scrollbar-msw.o\""
6068 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6069 echo " xemacs will be linked with \"menubar-msw.o\""
6071 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6072 echo " xemacs will be linked with \"toolbar-msw.o\""
6074 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6075 echo " xemacs will be linked with \"dialog-msw.o\""
6078 cat > conftest.$ac_ext <<EOF
6079 #line 6080 "configure"
6080 #include "confdefs.h"
6082 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6084 if { (eval echo configure:6085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6086 { test "$extra_verbose" = "yes" && cat << \EOF
6087 Defining HAVE_MSG_SELECT
6089 cat >> confdefs.h <<\EOF
6090 #define HAVE_MSG_SELECT 1
6096 echo "configure: failed program was:" >&5
6097 cat conftest.$ac_ext >&5
6101 with_file_coding=yes
6102 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
6103 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\""
6110 test -z "$window_system" && window_system="none"
6112 if test "$window_system" = "none"; then
6113 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6115 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6116 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6118 eval "with_${feature}=no"
6121 test -z "$with_toolbars" && with_toolbars=yes
6124 if test "$with_msw" != "yes"; then
6125 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6127 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6128 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6130 eval "with_${feature}=no"
6136 if test "$with_x11" != "yes"; then
6137 for feature in tooltalk cde offix wmcommand xim xmu
6139 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6140 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6142 eval "with_${feature}=no"
6148 case "$window_system" in
6149 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6150 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6151 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6154 case "$x_libraries" in *X11R4* )
6155 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6156 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6159 echo "checking for WM_COMMAND option" 1>&6
6160 echo "configure:6161: checking for WM_COMMAND option" >&5;
6161 if test "$with_wmcommand" != "no"; then
6162 { test "$extra_verbose" = "yes" && cat << \EOF
6163 Defining HAVE_WMCOMMAND
6165 cat >> confdefs.h <<\EOF
6166 #define HAVE_WMCOMMAND 1
6172 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6173 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6174 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6175 echo "configure:6176: checking for X11/Xauth.h" >&5
6177 cat > conftest.$ac_ext <<EOF
6178 #line 6179 "configure"
6179 #include "confdefs.h"
6180 #include <X11/Xauth.h>
6182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6183 { (eval echo configure:6184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6185 if test -z "$ac_err"; then
6187 eval "ac_cv_header_$ac_safe=yes"
6190 echo "configure: failed program was:" >&5
6191 cat conftest.$ac_ext >&5
6193 eval "ac_cv_header_$ac_safe=no"
6196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6197 echo "$ac_t""yes" 1>&6
6200 echo "$ac_t""no" 1>&6
6204 test -z "$with_xauth" && {
6205 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6206 echo "configure:6207: checking for XauGetAuthByAddr in -lXau" >&5
6207 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6209 xe_check_libs=" -lXau "
6210 cat > conftest.$ac_ext <<EOF
6211 #line 6212 "configure"
6212 #include "confdefs.h"
6213 /* Override any gcc2 internal prototype to avoid an error. */
6214 /* We use char because int might match the return type of a gcc2
6215 builtin and then its argument prototype would still apply. */
6216 char XauGetAuthByAddr();
6222 if { (eval echo configure:6223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6224 eval "ac_cv_lib_$ac_lib_var=yes"
6226 echo "configure: failed program was:" >&5
6227 cat conftest.$ac_ext >&5
6229 eval "ac_cv_lib_$ac_lib_var=no"
6234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6235 echo "$ac_t""yes" 1>&6
6238 echo "$ac_t""no" 1>&6
6243 test -z "$with_xauth" && with_xauth=yes
6244 if test "$with_xauth" = "yes"; then
6245 { test "$extra_verbose" = "yes" && cat << \EOF
6248 cat >> confdefs.h <<\EOF
6249 #define HAVE_XAUTH 1
6255 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
6263 if test "$with_tooltalk" != "no" ; then
6264 for dir in "" "Tt/" "desktop/" ; do
6265 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6266 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6267 echo "configure:6268: checking for ${dir}tt_c.h" >&5
6269 cat > conftest.$ac_ext <<EOF
6270 #line 6271 "configure"
6271 #include "confdefs.h"
6272 #include <${dir}tt_c.h>
6274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6275 { (eval echo configure:6276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6277 if test -z "$ac_err"; then
6279 eval "ac_cv_header_$ac_safe=yes"
6282 echo "configure: failed program was:" >&5
6283 cat conftest.$ac_ext >&5
6285 eval "ac_cv_header_$ac_safe=no"
6288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6289 echo "$ac_t""yes" 1>&6
6290 tt_c_h_path="${dir}tt_c.h"; break
6292 echo "$ac_t""no" 1>&6
6296 if test -z "$tt_c_h_path"; then
6297 if test "$with_tooltalk" = "yes"; then
6298 (echo "$progname: Usage error:"
6299 echo " " "Unable to find required tooltalk header files."
6300 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6305 if test "$with_tooltalk" != "no" ; then
6306 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6308 xe_msg_checking="for tt_message_create in -ltt"
6309 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6310 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6311 echo "configure:6312: checking "$xe_msg_checking"" >&5
6312 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6314 xe_check_libs=" -ltt $extra_libs"
6315 cat > conftest.$ac_ext <<EOF
6316 #line 6317 "configure"
6317 #include "confdefs.h"
6318 /* Override any gcc2 internal prototype to avoid an error. */
6319 /* We use char because int might match the return type of a gcc2
6320 builtin and then its argument prototype would still apply. */
6321 char tt_message_create();
6327 if { (eval echo configure:6328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6329 eval "ac_cv_lib_$ac_lib_var=yes"
6331 echo "configure: failed program was:" >&5
6332 cat conftest.$ac_ext >&5
6334 eval "ac_cv_lib_$ac_lib_var=no"
6339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6340 echo "$ac_t""yes" 1>&6
6341 tt_libs="-ltt $extra_libs"; break
6343 echo "$ac_t""no" 1>&6
6349 if test -z "$tt_libs"; then
6350 if test "$with_tooltalk" = "yes"; then
6351 (echo "$progname: Usage error:"
6352 echo " " "Unable to find required tooltalk libraries."
6353 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6358 test -z "$with_tooltalk" && with_tooltalk=yes
6359 if test "$with_tooltalk" = "yes"; then
6360 { test "$extra_verbose" = "yes" && cat << \EOF
6363 cat >> confdefs.h <<\EOF
6368 { test "$extra_verbose" = "yes" && cat << EOF
6369 Defining TT_C_H_PATH = "$tt_c_h_path"
6371 cat >> confdefs.h <<EOF
6372 #define TT_C_H_PATH "$tt_c_h_path"
6376 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6377 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6378 echo " xemacs will be linked with \"tooltalk.o\""
6382 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6383 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6384 echo "configure:6385: checking for Dt/Dt.h" >&5
6386 cat > conftest.$ac_ext <<EOF
6387 #line 6388 "configure"
6388 #include "confdefs.h"
6391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6392 { (eval echo configure:6393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6394 if test -z "$ac_err"; then
6396 eval "ac_cv_header_$ac_safe=yes"
6399 echo "configure: failed program was:" >&5
6400 cat conftest.$ac_ext >&5
6402 eval "ac_cv_header_$ac_safe=no"
6405 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6406 echo "$ac_t""yes" 1>&6
6409 echo "$ac_t""no" 1>&6
6413 test -z "$with_cde" && {
6414 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6415 echo "configure:6416: checking for DtDndDragStart in -lDtSvc" >&5
6416 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6418 xe_check_libs=" -lDtSvc "
6419 cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6422 /* Override any gcc2 internal prototype to avoid an error. */
6423 /* We use char because int might match the return type of a gcc2
6424 builtin and then its argument prototype would still apply. */
6425 char DtDndDragStart();
6431 if { (eval echo configure:6432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6433 eval "ac_cv_lib_$ac_lib_var=yes"
6435 echo "configure: failed program was:" >&5
6436 cat conftest.$ac_ext >&5
6438 eval "ac_cv_lib_$ac_lib_var=no"
6443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6444 echo "$ac_t""yes" 1>&6
6447 echo "$ac_t""no" 1>&6
6452 test -z "$with_cde" && with_cde=yes
6453 if test "$with_dragndrop" = no; then
6454 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6457 if test "$with_cde" = "yes" ; then
6458 { test "$extra_verbose" = "yes" && cat << \EOF
6461 cat >> confdefs.h <<\EOF
6466 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6467 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6468 with_tooltalk=yes # CDE requires Tooltalk
6469 need_motif=yes # CDE requires Motif
6472 test "$window_system" != "x11" && with_offix=no
6473 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6474 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6477 if test "$with_dragndrop" = no; then
6478 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6481 if test "$with_cde" = yes; then
6482 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6485 test -z "$with_offix" && with_offix=no
6486 if test "$with_offix" = "yes"; then
6487 { test "$extra_verbose" = "yes" && cat << \EOF
6488 Defining HAVE_OFFIX_DND
6490 cat >> confdefs.h <<\EOF
6491 #define HAVE_OFFIX_DND 1
6495 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6496 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6499 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6500 echo "configure:6501: checking if drag and drop API is needed" >&5
6501 if test "$with_dragndrop" != "no" ; then
6502 if test -n "$dragndrop_proto" ; then
6504 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6505 { test "$extra_verbose" = "yes" && cat << \EOF
6506 Defining HAVE_DRAGNDROP
6508 cat >> confdefs.h <<\EOF
6509 #define HAVE_DRAGNDROP 1
6513 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6516 echo "$ac_t""no" 1>&6
6520 echo "checking for LDAP" 1>&6
6521 echo "configure:6522: checking for LDAP" >&5
6522 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6523 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6524 echo "configure:6525: checking for ldap.h" >&5
6526 cat > conftest.$ac_ext <<EOF
6527 #line 6528 "configure"
6528 #include "confdefs.h"
6531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6532 { (eval echo configure:6533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6534 if test -z "$ac_err"; then
6536 eval "ac_cv_header_$ac_safe=yes"
6539 echo "configure: failed program was:" >&5
6540 cat conftest.$ac_ext >&5
6542 eval "ac_cv_header_$ac_safe=no"
6545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6546 echo "$ac_t""yes" 1>&6
6549 echo "$ac_t""no" 1>&6
6553 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6554 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6555 echo "configure:6556: checking for lber.h" >&5
6557 cat > conftest.$ac_ext <<EOF
6558 #line 6559 "configure"
6559 #include "confdefs.h"
6562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6563 { (eval echo configure:6564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6565 if test -z "$ac_err"; then
6567 eval "ac_cv_header_$ac_safe=yes"
6570 echo "configure: failed program was:" >&5
6571 cat conftest.$ac_ext >&5
6573 eval "ac_cv_header_$ac_safe=no"
6576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6577 echo "$ac_t""yes" 1>&6
6580 echo "$ac_t""no" 1>&6
6584 if test "$with_ldap" != "no"; then
6586 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6587 echo "configure:6588: checking for ldap_search in -lldap" >&5
6588 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6590 xe_check_libs=" -lldap "
6591 cat > conftest.$ac_ext <<EOF
6592 #line 6593 "configure"
6593 #include "confdefs.h"
6594 /* Override any gcc2 internal prototype to avoid an error. */
6595 /* We use char because int might match the return type of a gcc2
6596 builtin and then its argument prototype would still apply. */
6603 if { (eval echo configure:6604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6605 eval "ac_cv_lib_$ac_lib_var=yes"
6607 echo "configure: failed program was:" >&5
6608 cat conftest.$ac_ext >&5
6610 eval "ac_cv_lib_$ac_lib_var=no"
6615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6616 echo "$ac_t""yes" 1>&6
6617 with_ldap_nolber=yes
6619 echo "$ac_t""no" 1>&6
6624 test "$with_ldap_nolber" = "no" && {
6625 xe_msg_checking="for ldap_open in -lldap"
6626 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6627 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6628 echo "configure:6629: checking "$xe_msg_checking"" >&5
6629 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6631 xe_check_libs=" -lldap -llber"
6632 cat > conftest.$ac_ext <<EOF
6633 #line 6634 "configure"
6634 #include "confdefs.h"
6635 /* Override any gcc2 internal prototype to avoid an error. */
6636 /* We use char because int might match the return type of a gcc2
6637 builtin and then its argument prototype would still apply. */
6644 if { (eval echo configure:6645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6646 eval "ac_cv_lib_$ac_lib_var=yes"
6648 echo "configure: failed program was:" >&5
6649 cat conftest.$ac_ext >&5
6651 eval "ac_cv_lib_$ac_lib_var=no"
6656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6657 echo "$ac_t""yes" 1>&6
6660 echo "$ac_t""no" 1>&6
6665 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" \) && with_ldap=yes
6667 if test "$with_ldap" = "yes"; then
6668 { test "$extra_verbose" = "yes" && cat << \EOF
6671 cat >> confdefs.h <<\EOF
6676 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6677 echo " xemacs will be linked with \"eldap.o\""
6679 if test "$with_ldap_nolber" = "yes" ; then
6680 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6682 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6683 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6685 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
6687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6688 echo "configure:6689: checking for $ac_func" >&5
6690 cat > conftest.$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6693 /* System header to define __stub macros and hopefully few prototypes,
6694 which can conflict with char $ac_func(); below. */
6696 /* Override any gcc2 internal prototype to avoid an error. */
6697 /* We use char because int might match the return type of a gcc2
6698 builtin and then its argument prototype would still apply. */
6703 /* The GNU C library defines this for functions which it implements
6704 to always fail with ENOSYS. Some functions are actually named
6705 something starting with __ and the normal name is an alias. */
6706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6714 if { (eval echo configure:6715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6716 eval "ac_cv_func_$ac_func=yes"
6718 echo "configure: failed program was:" >&5
6719 cat conftest.$ac_ext >&5
6721 eval "ac_cv_func_$ac_func=no"
6725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6726 echo "$ac_t""yes" 1>&6
6727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6728 { test "$extra_verbose" = "yes" && cat << EOF
6729 Defining $ac_tr_func
6731 cat >> confdefs.h <<EOF
6732 #define $ac_tr_func 1
6737 echo "$ac_t""no" 1>&6
6744 if test "$window_system" != "none"; then
6745 echo "checking for graphics libraries" 1>&6
6746 echo "configure:6747: checking for graphics libraries" >&5
6749 if test -z "$with_xpm"; then
6750 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6751 echo "configure:6752: checking for Xpm - no older than 3.4f" >&5
6753 cat > conftest.$ac_ext <<EOF
6754 #line 6755 "configure"
6755 #include "confdefs.h"
6756 #include <X11/xpm.h>
6757 int main(int c, char **v) {
6759 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6760 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6762 if { (eval echo configure:6763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6764 ./conftest dummy_arg; xpm_status=$?;
6765 if test "$xpm_status" = "0"; then
6769 if test "$xpm_status" = "1"; then
6770 xpm_problem="Xpm library version and header file version don't match!"
6771 elif test "$xpm_status" = "2"; then
6772 xpm_problem="Xpm library version is too old!"
6774 xpm_problem="Internal xpm detection logic error!"
6777 *** WARNING *** $xpm_problem
6778 I'm not touching that with a 10-foot pole!
6779 If you really want to use the installed version of Xpm, rerun
6780 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
6784 echo "configure: failed program was:" >&5
6785 cat conftest.$ac_ext >&5
6791 echo "$ac_t""$with_xpm" 1>&6
6793 if test "$with_xpm" = "yes"; then
6794 { test "$extra_verbose" = "yes" && cat << \EOF
6797 cat >> confdefs.h <<\EOF
6802 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6803 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6804 echo "configure:6805: checking for \"FOR_MSW\" xpm" >&5
6806 cat > conftest.$ac_ext <<EOF
6807 #line 6808 "configure"
6808 #include "confdefs.h"
6811 XpmCreatePixmapFromData()
6814 if { (eval echo configure:6815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6818 echo "configure: failed program was:" >&5
6819 cat conftest.$ac_ext >&5
6825 echo "$ac_t""$xpm_for_msw" 1>&6
6826 if test "$xpm_for_msw" = "yes"; then
6827 { test "$extra_verbose" = "yes" && cat << \EOF
6830 cat >> confdefs.h <<\EOF
6838 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6839 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6840 echo "configure:6841: checking for compface.h" >&5
6842 cat > conftest.$ac_ext <<EOF
6843 #line 6844 "configure"
6844 #include "confdefs.h"
6845 #include <compface.h>
6847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6848 { (eval echo configure:6849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6850 if test -z "$ac_err"; then
6852 eval "ac_cv_header_$ac_safe=yes"
6855 echo "configure: failed program was:" >&5
6856 cat conftest.$ac_ext >&5
6858 eval "ac_cv_header_$ac_safe=no"
6861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6862 echo "$ac_t""yes" 1>&6
6865 echo "$ac_t""no" 1>&6
6869 test -z "$with_xface" && {
6870 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6871 echo "configure:6872: checking for UnGenFace in -lcompface" >&5
6872 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6874 xe_check_libs=" -lcompface "
6875 cat > conftest.$ac_ext <<EOF
6876 #line 6877 "configure"
6877 #include "confdefs.h"
6878 /* Override any gcc2 internal prototype to avoid an error. */
6879 /* We use char because int might match the return type of a gcc2
6880 builtin and then its argument prototype would still apply. */
6887 if { (eval echo configure:6888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6889 eval "ac_cv_lib_$ac_lib_var=yes"
6891 echo "configure: failed program was:" >&5
6892 cat conftest.$ac_ext >&5
6894 eval "ac_cv_lib_$ac_lib_var=no"
6899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6900 echo "$ac_t""yes" 1>&6
6903 echo "$ac_t""no" 1>&6
6908 test -z "$with_xface" && with_xface=yes
6909 if test "$with_xface" = "yes"; then
6910 { test "$extra_verbose" = "yes" && cat << \EOF
6913 cat >> confdefs.h <<\EOF
6914 #define HAVE_XFACE 1
6918 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
6921 if test "$with_gif" != "no"; then
6923 { test "$extra_verbose" = "yes" && cat << \EOF
6926 cat >> confdefs.h <<\EOF
6931 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
6932 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
6936 if test "$with_png $with_tiff" != "no no"; then
6938 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6939 echo "configure:6940: checking for inflate in -lc" >&5
6940 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6942 xe_check_libs=" -lc "
6943 cat > conftest.$ac_ext <<EOF
6944 #line 6945 "configure"
6945 #include "confdefs.h"
6946 /* Override any gcc2 internal prototype to avoid an error. */
6947 /* We use char because int might match the return type of a gcc2
6948 builtin and then its argument prototype would still apply. */
6955 if { (eval echo configure:6956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6957 eval "ac_cv_lib_$ac_lib_var=yes"
6959 echo "configure: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6962 eval "ac_cv_lib_$ac_lib_var=no"
6967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6968 echo "$ac_t""yes" 1>&6
6971 echo "$ac_t""no" 1>&6
6973 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6974 echo "configure:6975: checking for inflate in -lz" >&5
6975 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6977 xe_check_libs=" -lz "
6978 cat > conftest.$ac_ext <<EOF
6979 #line 6980 "configure"
6980 #include "confdefs.h"
6981 /* Override any gcc2 internal prototype to avoid an error. */
6982 /* We use char because int might match the return type of a gcc2
6983 builtin and then its argument prototype would still apply. */
6990 if { (eval echo configure:6991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6992 eval "ac_cv_lib_$ac_lib_var=yes"
6994 echo "configure: failed program was:" >&5
6995 cat conftest.$ac_ext >&5
6997 eval "ac_cv_lib_$ac_lib_var=no"
7002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7003 echo "$ac_t""yes" 1>&6
7004 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7006 echo "$ac_t""no" 1>&6
7008 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7009 echo "configure:7010: checking for inflate in -lgz" >&5
7010 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7012 xe_check_libs=" -lgz "
7013 cat > conftest.$ac_ext <<EOF
7014 #line 7015 "configure"
7015 #include "confdefs.h"
7016 /* Override any gcc2 internal prototype to avoid an error. */
7017 /* We use char because int might match the return type of a gcc2
7018 builtin and then its argument prototype would still apply. */
7025 if { (eval echo configure:7026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7027 eval "ac_cv_lib_$ac_lib_var=yes"
7029 echo "configure: failed program was:" >&5
7030 cat conftest.$ac_ext >&5
7032 eval "ac_cv_lib_$ac_lib_var=no"
7037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7038 echo "$ac_t""yes" 1>&6
7039 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7041 echo "$ac_t""no" 1>&6
7053 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7054 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7055 echo "configure:7056: checking for jpeglib.h" >&5
7057 cat > conftest.$ac_ext <<EOF
7058 #line 7059 "configure"
7059 #include "confdefs.h"
7060 #include <jpeglib.h>
7062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7063 { (eval echo configure:7064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7065 if test -z "$ac_err"; then
7067 eval "ac_cv_header_$ac_safe=yes"
7070 echo "configure: failed program was:" >&5
7071 cat conftest.$ac_ext >&5
7073 eval "ac_cv_header_$ac_safe=no"
7076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7077 echo "$ac_t""yes" 1>&6
7080 echo "$ac_t""no" 1>&6
7084 test -z "$with_jpeg" && {
7085 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7086 echo "configure:7087: checking for jpeg_destroy_decompress in -ljpeg" >&5
7087 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7089 xe_check_libs=" -ljpeg "
7090 cat > conftest.$ac_ext <<EOF
7091 #line 7092 "configure"
7092 #include "confdefs.h"
7093 /* Override any gcc2 internal prototype to avoid an error. */
7094 /* We use char because int might match the return type of a gcc2
7095 builtin and then its argument prototype would still apply. */
7096 char jpeg_destroy_decompress();
7099 jpeg_destroy_decompress()
7102 if { (eval echo configure:7103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7104 eval "ac_cv_lib_$ac_lib_var=yes"
7106 echo "configure: failed program was:" >&5
7107 cat conftest.$ac_ext >&5
7109 eval "ac_cv_lib_$ac_lib_var=no"
7114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7115 echo "$ac_t""yes" 1>&6
7118 echo "$ac_t""no" 1>&6
7123 test -z "$with_jpeg" && with_jpeg=yes
7124 if test "$with_jpeg" = "yes"; then
7125 { test "$extra_verbose" = "yes" && cat << \EOF
7128 cat >> confdefs.h <<\EOF
7133 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7137 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7138 echo "configure:7139: checking for pow" >&5
7140 cat > conftest.$ac_ext <<EOF
7141 #line 7142 "configure"
7142 #include "confdefs.h"
7143 /* System header to define __stub macros and hopefully few prototypes,
7144 which can conflict with char pow(); below. */
7146 /* Override any gcc2 internal prototype to avoid an error. */
7147 /* We use char because int might match the return type of a gcc2
7148 builtin and then its argument prototype would still apply. */
7153 /* The GNU C library defines this for functions which it implements
7154 to always fail with ENOSYS. Some functions are actually named
7155 something starting with __ and the normal name is an alias. */
7156 #if defined (__stub_pow) || defined (__stub___pow)
7164 if { (eval echo configure:7165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7166 eval "ac_cv_func_pow=yes"
7168 echo "configure: failed program was:" >&5
7169 cat conftest.$ac_ext >&5
7171 eval "ac_cv_func_pow=no"
7175 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7176 echo "$ac_t""yes" 1>&6
7179 echo "$ac_t""no" 1>&6
7183 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7184 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7185 echo "configure:7186: checking for png.h" >&5
7187 cat > conftest.$ac_ext <<EOF
7188 #line 7189 "configure"
7189 #include "confdefs.h"
7192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7193 { (eval echo configure:7194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7195 if test -z "$ac_err"; then
7197 eval "ac_cv_header_$ac_safe=yes"
7200 echo "configure: failed program was:" >&5
7201 cat conftest.$ac_ext >&5
7203 eval "ac_cv_header_$ac_safe=no"
7206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7207 echo "$ac_t""yes" 1>&6
7210 echo "$ac_t""no" 1>&6
7214 test -z "$with_png" && {
7215 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7216 echo "configure:7217: checking for png_read_image in -lpng" >&5
7217 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7219 xe_check_libs=" -lpng "
7220 cat > conftest.$ac_ext <<EOF
7221 #line 7222 "configure"
7222 #include "confdefs.h"
7223 /* Override any gcc2 internal prototype to avoid an error. */
7224 /* We use char because int might match the return type of a gcc2
7225 builtin and then its argument prototype would still apply. */
7226 char png_read_image();
7232 if { (eval echo configure:7233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7234 eval "ac_cv_lib_$ac_lib_var=yes"
7236 echo "configure: failed program was:" >&5
7237 cat conftest.$ac_ext >&5
7239 eval "ac_cv_lib_$ac_lib_var=no"
7244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7245 echo "$ac_t""yes" 1>&6
7248 echo "$ac_t""no" 1>&6
7253 if test -z "$with_png"; then
7254 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7255 echo "configure:7256: checking for workable png version information" >&5
7256 xe_check_libs="-lpng -lz"
7257 cat > conftest.$ac_ext <<EOF
7258 #line 7259 "configure"
7259 #include "confdefs.h"
7261 int main(int c, char **v) {
7262 if (c == 1) return 0;
7263 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7264 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7266 if { (eval echo configure:7267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7268 ./conftest dummy_arg; png_status=$?;
7269 if test "$png_status" = "0"; then
7273 if test "$png_status" = "1"; then
7274 png_problem="PNG library version and header file don't match!"
7275 elif test "$png_status" = "2"; then
7276 png_problem="PNG library version too old (pre 1.0.2)!"
7279 *** WARNING *** $png_problem
7280 I'm not touching that with a 10-foot pole!
7281 If you really want to use the installed version of libPNG, rerun
7282 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7286 echo "configure: failed program was:" >&5
7287 cat conftest.$ac_ext >&5
7293 echo "$ac_t""$with_png" 1>&6
7295 if test "$with_png" = "yes"; then
7296 { test "$extra_verbose" = "yes" && cat << \EOF
7299 cat >> confdefs.h <<\EOF
7304 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7307 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7308 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7309 echo "configure:7310: checking for tiffio.h" >&5
7311 cat > conftest.$ac_ext <<EOF
7312 #line 7313 "configure"
7313 #include "confdefs.h"
7316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7317 { (eval echo configure:7318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7319 if test -z "$ac_err"; then
7321 eval "ac_cv_header_$ac_safe=yes"
7324 echo "configure: failed program was:" >&5
7325 cat conftest.$ac_ext >&5
7327 eval "ac_cv_header_$ac_safe=no"
7330 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7331 echo "$ac_t""yes" 1>&6
7334 echo "$ac_t""no" 1>&6
7338 test -z "$with_tiff" && {
7339 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7340 echo "configure:7341: checking for TIFFClientOpen in -ltiff" >&5
7341 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7343 xe_check_libs=" -ltiff "
7344 cat > conftest.$ac_ext <<EOF
7345 #line 7346 "configure"
7346 #include "confdefs.h"
7347 /* Override any gcc2 internal prototype to avoid an error. */
7348 /* We use char because int might match the return type of a gcc2
7349 builtin and then its argument prototype would still apply. */
7350 char TIFFClientOpen();
7356 if { (eval echo configure:7357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7358 eval "ac_cv_lib_$ac_lib_var=yes"
7360 echo "configure: failed program was:" >&5
7361 cat conftest.$ac_ext >&5
7363 eval "ac_cv_lib_$ac_lib_var=no"
7368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7369 echo "$ac_t""yes" 1>&6
7372 echo "$ac_t""no" 1>&6
7377 test -z "$with_tiff" && with_tiff=yes
7378 if test "$with_tiff" = "yes"; then
7379 { test "$extra_verbose" = "yes" && cat << \EOF
7382 cat >> confdefs.h <<\EOF
7387 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7392 if test "$with_x11" = "yes"; then
7394 echo "checking for X11 graphics libraries" 1>&6
7395 echo "configure:7396: checking for X11 graphics libraries" >&5
7398 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7399 echo "configure:7400: checking for XawScrollbarSetThumb in -lXaw" >&5
7400 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7402 xe_check_libs=" -lXaw "
7403 cat > conftest.$ac_ext <<EOF
7404 #line 7405 "configure"
7405 #include "confdefs.h"
7406 /* Override any gcc2 internal prototype to avoid an error. */
7407 /* We use char because int might match the return type of a gcc2
7408 builtin and then its argument prototype would still apply. */
7409 char XawScrollbarSetThumb();
7412 XawScrollbarSetThumb()
7415 if { (eval echo configure:7416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7417 eval "ac_cv_lib_$ac_lib_var=yes"
7419 echo "configure: failed program was:" >&5
7420 cat conftest.$ac_ext >&5
7422 eval "ac_cv_lib_$ac_lib_var=no"
7427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7428 echo "$ac_t""yes" 1>&6
7431 echo "$ac_t""no" 1>&6
7437 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7438 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7439 echo "configure:7440: checking for Xm/Xm.h" >&5
7441 cat > conftest.$ac_ext <<EOF
7442 #line 7443 "configure"
7443 #include "confdefs.h"
7446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7447 { (eval echo configure:7448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7448 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7449 if test -z "$ac_err"; then
7451 eval "ac_cv_header_$ac_safe=yes"
7454 echo "configure: failed program was:" >&5
7455 cat conftest.$ac_ext >&5
7457 eval "ac_cv_header_$ac_safe=no"
7460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7461 echo "$ac_t""yes" 1>&6
7463 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7464 echo "configure:7465: checking for XmStringFree in -lXm" >&5
7465 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7467 xe_check_libs=" -lXm "
7468 cat > conftest.$ac_ext <<EOF
7469 #line 7470 "configure"
7470 #include "confdefs.h"
7471 /* Override any gcc2 internal prototype to avoid an error. */
7472 /* We use char because int might match the return type of a gcc2
7473 builtin and then its argument prototype would still apply. */
7474 char XmStringFree();
7480 if { (eval echo configure:7481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7482 eval "ac_cv_lib_$ac_lib_var=yes"
7484 echo "configure: failed program was:" >&5
7485 cat conftest.$ac_ext >&5
7487 eval "ac_cv_lib_$ac_lib_var=no"
7492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7493 echo "$ac_t""yes" 1>&6
7496 echo "$ac_t""no" 1>&6
7502 echo "$ac_t""no" 1>&6
7507 if test "$have_motif" = "yes"; then
7508 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7509 echo "configure:7510: checking for Lesstif" >&5
7510 cat > conftest.$ac_ext <<EOF
7511 #line 7512 "configure"
7512 #include "confdefs.h"
7514 #ifdef LESSTIF_VERSION
7519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7520 egrep "yes" >/dev/null 2>&1; then
7529 echo "$ac_t""$have_lesstif" 1>&6
7534 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
7535 with_menubars="lucid" ;;
7537 case "$with_dialogs" in "" | "yes" | "lucid" )
7538 if test "$have_motif" = "yes"; then with_dialogs="motif"
7539 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
7540 else with_dialogs=no
7543 case "$with_scrollbars" in "" | "yes" )
7544 with_scrollbars="lucid" ;;
7546 case "$with_widgets" in "" | "yes" )
7547 if test "$have_motif" = "yes"; then with_widgets="motif"
7548 else with_widgets=no
7552 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
7554 case "$all_widgets" in *athena* )
7555 { test "$extra_verbose" = "yes" && cat << \EOF
7556 Defining LWLIB_USES_ATHENA
7558 cat >> confdefs.h <<\EOF
7559 #define LWLIB_USES_ATHENA 1
7563 { test "$extra_verbose" = "yes" && cat << \EOF
7564 Defining NEED_ATHENA
7566 cat >> confdefs.h <<\EOF
7567 #define NEED_ATHENA 1
7571 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
7572 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
7575 case "$all_widgets" in *motif* )
7576 { test "$extra_verbose" = "yes" && cat << \EOF
7577 Defining LWLIB_USES_MOTIF
7579 cat >> confdefs.h <<\EOF
7580 #define LWLIB_USES_MOTIF 1
7584 { test "$extra_verbose" = "yes" && cat << \EOF
7587 cat >> confdefs.h <<\EOF
7588 #define NEED_MOTIF 1
7592 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
7596 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7597 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7598 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
7599 case "$all_widgets" in *lucid* )
7600 { test "$extra_verbose" = "yes" && cat << \EOF
7603 cat >> confdefs.h <<\EOF
7604 #define NEED_LUCID 1
7608 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
7613 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7614 Defining LWLIB_SCROLLBARS_ATHENA
7616 cat >> confdefs.h <<\EOF
7617 #define LWLIB_SCROLLBARS_ATHENA 1
7621 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7622 Defining LWLIB_DIALOGS_ATHENA
7624 cat >> confdefs.h <<\EOF
7625 #define LWLIB_DIALOGS_ATHENA 1
7629 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7630 Defining LWLIB_SCROLLBARS_ATHENA3D
7632 cat >> confdefs.h <<\EOF
7633 #define LWLIB_SCROLLBARS_ATHENA3D 1
7637 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7638 Defining LWLIB_DIALOGS_ATHENA3D
7640 cat >> confdefs.h <<\EOF
7641 #define LWLIB_DIALOGS_ATHENA3D 1
7646 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7647 Defining HAVE_MENUBARS
7649 cat >> confdefs.h <<\EOF
7650 #define HAVE_MENUBARS 1
7654 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7655 Defining HAVE_SCROLLBARS
7657 cat >> confdefs.h <<\EOF
7658 #define HAVE_SCROLLBARS 1
7662 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7663 Defining HAVE_DIALOGS
7665 cat >> confdefs.h <<\EOF
7666 #define HAVE_DIALOGS 1
7670 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7671 Defining HAVE_TOOLBARS
7673 cat >> confdefs.h <<\EOF
7674 #define HAVE_TOOLBARS 1
7679 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7680 Defining LWLIB_MENUBARS_LUCID
7682 cat >> confdefs.h <<\EOF
7683 #define LWLIB_MENUBARS_LUCID 1
7687 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7688 Defining LWLIB_SCROLLBARS_LUCID
7690 cat >> confdefs.h <<\EOF
7691 #define LWLIB_SCROLLBARS_LUCID 1
7696 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7697 Defining LWLIB_MENUBARS_MOTIF
7699 cat >> confdefs.h <<\EOF
7700 #define LWLIB_MENUBARS_MOTIF 1
7704 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7705 Defining LWLIB_SCROLLBARS_MOTIF
7707 cat >> confdefs.h <<\EOF
7708 #define LWLIB_SCROLLBARS_MOTIF 1
7712 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7713 Defining LWLIB_DIALOGS_MOTIF
7715 cat >> confdefs.h <<\EOF
7716 #define LWLIB_DIALOGS_MOTIF 1
7721 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
7722 echo " xemacs will be linked with \"menubar.o\""
7724 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
7725 echo " xemacs will be linked with \"scrollbar.o\""
7727 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
7728 echo " xemacs will be linked with \"dialog.o\""
7730 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
7731 echo " xemacs will be linked with \"toolbar.o\""
7734 if test "$with_x11" = "yes"; then
7735 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
7736 echo " xemacs will be linked with \"menubar-x.o\""
7738 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
7739 echo " xemacs will be linked with \"scrollbar-x.o\""
7741 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
7742 echo " xemacs will be linked with \"dialog-x.o\""
7744 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
7745 echo " xemacs will be linked with \"toolbar-x.o\""
7747 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
7748 echo " xemacs will be linked with \"gui-x.o\""
7751 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
7752 echo "Attempt to Build NAS sound without X"
7753 echo "Please remove NAS configuration or build with X"
7759 test -z "$with_mule" && with_mule=no
7760 test -z "$with_file_coding" && with_file_coding=no
7763 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
7764 { test "$extra_verbose" = "yes" && cat << \EOF
7765 Defining FILE_CODING
7767 cat >> confdefs.h <<\EOF
7768 #define FILE_CODING 1
7772 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
7773 echo " xemacs will be linked with \"file-coding.o\""
7777 if test "$with_mule" = "yes" ; then
7778 echo "checking for Mule-related features" 1>&6
7779 echo "configure:7780: checking for Mule-related features" >&5
7780 { test "$extra_verbose" = "yes" && cat << \EOF
7783 cat >> confdefs.h <<\EOF
7788 { test "$extra_verbose" = "yes" && cat << \EOF
7789 Defining FILE_CODING
7791 cat >> confdefs.h <<\EOF
7792 #define FILE_CODING 1
7796 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
7797 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
7800 for ac_hdr in libintl.h
7802 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7803 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7804 echo "configure:7805: checking for $ac_hdr" >&5
7806 cat > conftest.$ac_ext <<EOF
7807 #line 7808 "configure"
7808 #include "confdefs.h"
7811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7812 { (eval echo configure:7813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7814 if test -z "$ac_err"; then
7816 eval "ac_cv_header_$ac_safe=yes"
7819 echo "configure: failed program was:" >&5
7820 cat conftest.$ac_ext >&5
7822 eval "ac_cv_header_$ac_safe=no"
7825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7826 echo "$ac_t""yes" 1>&6
7827 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7828 { test "$extra_verbose" = "yes" && cat << EOF
7831 cat >> confdefs.h <<EOF
7832 #define $ac_tr_hdr 1
7837 echo "$ac_t""no" 1>&6
7842 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7843 echo "configure:7844: checking for strerror in -lintl" >&5
7844 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7846 xe_check_libs=" -lintl "
7847 cat > conftest.$ac_ext <<EOF
7848 #line 7849 "configure"
7849 #include "confdefs.h"
7850 /* Override any gcc2 internal prototype to avoid an error. */
7851 /* We use char because int might match the return type of a gcc2
7852 builtin and then its argument prototype would still apply. */
7859 if { (eval echo configure:7860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7861 eval "ac_cv_lib_$ac_lib_var=yes"
7863 echo "configure: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7866 eval "ac_cv_lib_$ac_lib_var=no"
7871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7872 echo "$ac_t""yes" 1>&6
7873 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7874 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7875 { test "$extra_verbose" = "yes" && cat << EOF
7878 cat >> confdefs.h <<EOF
7879 #define $ac_tr_lib 1
7883 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
7886 echo "$ac_t""no" 1>&6
7891 echo "checking for Mule input methods" 1>&6
7892 echo "configure:7893: checking for Mule input methods" >&5
7893 case "$with_xim" in "" | "yes" )
7894 echo "checking for XIM" 1>&6
7895 echo "configure:7896: checking for XIM" >&5
7897 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
7898 echo "configure:7899: checking for XOpenIM in -lX11" >&5
7899 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
7901 xe_check_libs=" -lX11 "
7902 cat > conftest.$ac_ext <<EOF
7903 #line 7904 "configure"
7904 #include "confdefs.h"
7905 /* Override any gcc2 internal prototype to avoid an error. */
7906 /* We use char because int might match the return type of a gcc2
7907 builtin and then its argument prototype would still apply. */
7914 if { (eval echo configure:7915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7916 eval "ac_cv_lib_$ac_lib_var=yes"
7918 echo "configure: failed program was:" >&5
7919 cat conftest.$ac_ext >&5
7921 eval "ac_cv_lib_$ac_lib_var=no"
7926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7927 echo "$ac_t""yes" 1>&6
7930 echo "$ac_t""no" 1>&6
7935 if test "$have_motif $have_lesstif" = "yes no"; then
7937 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7938 echo "configure:7939: checking for XmImMbLookupString in -lXm" >&5
7939 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7941 xe_check_libs=" -lXm "
7942 cat > conftest.$ac_ext <<EOF
7943 #line 7944 "configure"
7944 #include "confdefs.h"
7945 /* Override any gcc2 internal prototype to avoid an error. */
7946 /* We use char because int might match the return type of a gcc2
7947 builtin and then its argument prototype would still apply. */
7948 char XmImMbLookupString();
7951 XmImMbLookupString()
7954 if { (eval echo configure:7955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7956 eval "ac_cv_lib_$ac_lib_var=yes"
7958 echo "configure: failed program was:" >&5
7959 cat conftest.$ac_ext >&5
7961 eval "ac_cv_lib_$ac_lib_var=no"
7966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7967 echo "$ac_t""yes" 1>&6
7970 echo "$ac_t""no" 1>&6
7976 if test "$with_xim" != "no"; then
7977 { test "$extra_verbose" = "yes" && cat << \EOF
7980 cat >> confdefs.h <<\EOF
7985 if test "$with_xim" = "xlib"; then
7986 { test "$extra_verbose" = "yes" && cat << \EOF
7989 cat >> confdefs.h <<\EOF
7994 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
7995 echo " xemacs will be linked with \"input-method-xlib.o\""
7998 if test "$with_xim" = "motif"; then
7999 { test "$extra_verbose" = "yes" && cat << \EOF
8002 cat >> confdefs.h <<\EOF
8008 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
8009 echo " xemacs will be linked with \"input-method-motif.o\""
8012 if test "$with_xim" = "motif"; then
8017 if test "$with_xfs" = "yes" ; then
8018 echo "checking for XFontSet" 1>&6
8019 echo "configure:8020: checking for XFontSet" >&5
8021 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8022 echo "configure:8023: checking for XmbDrawString in -lX11" >&5
8023 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8025 xe_check_libs=" -lX11 "
8026 cat > conftest.$ac_ext <<EOF
8027 #line 8028 "configure"
8028 #include "confdefs.h"
8029 /* Override any gcc2 internal prototype to avoid an error. */
8030 /* We use char because int might match the return type of a gcc2
8031 builtin and then its argument prototype would still apply. */
8032 char XmbDrawString();
8038 if { (eval echo configure:8039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8040 eval "ac_cv_lib_$ac_lib_var=yes"
8042 echo "configure: failed program was:" >&5
8043 cat conftest.$ac_ext >&5
8045 eval "ac_cv_lib_$ac_lib_var=no"
8050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8051 echo "$ac_t""yes" 1>&6
8054 echo "$ac_t""no" 1>&6
8059 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
8060 { test "$extra_verbose" = "yes" && cat << \EOF
8061 Defining USE_XFONTSET
8063 cat >> confdefs.h <<\EOF
8064 #define USE_XFONTSET 1
8068 if test "$with_xim" = "no" ; then
8069 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
8070 echo " xemacs will be linked with \"input-method-xfs.o\""
8075 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8076 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8077 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8078 echo "configure:8079: checking for wnn/jllib.h" >&5
8080 cat > conftest.$ac_ext <<EOF
8081 #line 8082 "configure"
8082 #include "confdefs.h"
8083 #include <wnn/jllib.h>
8085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8086 { (eval echo configure:8087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8088 if test -z "$ac_err"; then
8090 eval "ac_cv_header_$ac_safe=yes"
8093 echo "configure: failed program was:" >&5
8094 cat conftest.$ac_ext >&5
8096 eval "ac_cv_header_$ac_safe=no"
8099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8100 echo "$ac_t""yes" 1>&6
8103 echo "$ac_t""no" 1>&6
8107 if test "$with_wnn" != "no"; then
8108 for ac_func in crypt
8110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8111 echo "configure:8112: checking for $ac_func" >&5
8113 cat > conftest.$ac_ext <<EOF
8114 #line 8115 "configure"
8115 #include "confdefs.h"
8116 /* System header to define __stub macros and hopefully few prototypes,
8117 which can conflict with char $ac_func(); below. */
8119 /* Override any gcc2 internal prototype to avoid an error. */
8120 /* We use char because int might match the return type of a gcc2
8121 builtin and then its argument prototype would still apply. */
8126 /* The GNU C library defines this for functions which it implements
8127 to always fail with ENOSYS. Some functions are actually named
8128 something starting with __ and the normal name is an alias. */
8129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8137 if { (eval echo configure:8138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8139 eval "ac_cv_func_$ac_func=yes"
8141 echo "configure: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8144 eval "ac_cv_func_$ac_func=no"
8148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8149 echo "$ac_t""yes" 1>&6
8150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8151 { test "$extra_verbose" = "yes" && cat << EOF
8152 Defining $ac_tr_func
8154 cat >> confdefs.h <<EOF
8155 #define $ac_tr_func 1
8160 echo "$ac_t""no" 1>&6
8164 test "$ac_cv_func_crypt" != "yes" && {
8165 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8166 echo "configure:8167: checking for crypt in -lcrypt" >&5
8167 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8169 xe_check_libs=" -lcrypt "
8170 cat > conftest.$ac_ext <<EOF
8171 #line 8172 "configure"
8172 #include "confdefs.h"
8173 /* Override any gcc2 internal prototype to avoid an error. */
8174 /* We use char because int might match the return type of a gcc2
8175 builtin and then its argument prototype would still apply. */
8182 if { (eval echo configure:8183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8184 eval "ac_cv_lib_$ac_lib_var=yes"
8186 echo "configure: failed program was:" >&5
8187 cat conftest.$ac_ext >&5
8189 eval "ac_cv_lib_$ac_lib_var=no"
8194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8195 echo "$ac_t""yes" 1>&6
8196 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8197 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8198 { test "$extra_verbose" = "yes" && cat << EOF
8201 cat >> confdefs.h <<EOF
8202 #define $ac_tr_lib 1
8206 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
8209 echo "$ac_t""no" 1>&6
8214 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8216 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8217 echo "configure:8218: checking for jl_dic_list_e in -lwnn" >&5
8218 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8220 xe_check_libs=" -lwnn "
8221 cat > conftest.$ac_ext <<EOF
8222 #line 8223 "configure"
8223 #include "confdefs.h"
8224 /* Override any gcc2 internal prototype to avoid an error. */
8225 /* We use char because int might match the return type of a gcc2
8226 builtin and then its argument prototype would still apply. */
8227 char jl_dic_list_e();
8233 if { (eval echo configure:8234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8235 eval "ac_cv_lib_$ac_lib_var=yes"
8237 echo "configure: failed program was:" >&5
8238 cat conftest.$ac_ext >&5
8240 eval "ac_cv_lib_$ac_lib_var=no"
8245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8246 echo "$ac_t""yes" 1>&6
8249 echo "$ac_t""no" 1>&6
8250 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8251 echo "configure:8252: checking for jl_dic_list_e in -lwnn4" >&5
8252 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8254 xe_check_libs=" -lwnn4 "
8255 cat > conftest.$ac_ext <<EOF
8256 #line 8257 "configure"
8257 #include "confdefs.h"
8258 /* Override any gcc2 internal prototype to avoid an error. */
8259 /* We use char because int might match the return type of a gcc2
8260 builtin and then its argument prototype would still apply. */
8261 char jl_dic_list_e();
8267 if { (eval echo configure:8268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8269 eval "ac_cv_lib_$ac_lib_var=yes"
8271 echo "configure: failed program was:" >&5
8272 cat conftest.$ac_ext >&5
8274 eval "ac_cv_lib_$ac_lib_var=no"
8279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8280 echo "$ac_t""yes" 1>&6
8283 echo "$ac_t""no" 1>&6
8284 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8285 echo "configure:8286: checking for jl_dic_list_e in -lwnn6" >&5
8286 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8288 xe_check_libs=" -lwnn6 "
8289 cat > conftest.$ac_ext <<EOF
8290 #line 8291 "configure"
8291 #include "confdefs.h"
8292 /* Override any gcc2 internal prototype to avoid an error. */
8293 /* We use char because int might match the return type of a gcc2
8294 builtin and then its argument prototype would still apply. */
8295 char jl_dic_list_e();
8301 if { (eval echo configure:8302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8303 eval "ac_cv_lib_$ac_lib_var=yes"
8305 echo "configure: failed program was:" >&5
8306 cat conftest.$ac_ext >&5
8308 eval "ac_cv_lib_$ac_lib_var=no"
8313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8314 echo "$ac_t""yes" 1>&6
8317 echo "$ac_t""no" 1>&6
8318 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8319 echo "configure:8320: checking for dic_list_e in -lwnn6_fromsrc" >&5
8320 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8322 xe_check_libs=" -lwnn6_fromsrc "
8323 cat > conftest.$ac_ext <<EOF
8324 #line 8325 "configure"
8325 #include "confdefs.h"
8326 /* Override any gcc2 internal prototype to avoid an error. */
8327 /* We use char because int might match the return type of a gcc2
8328 builtin and then its argument prototype would still apply. */
8335 if { (eval echo configure:8336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8337 eval "ac_cv_lib_$ac_lib_var=yes"
8339 echo "configure: failed program was:" >&5
8340 cat conftest.$ac_ext >&5
8342 eval "ac_cv_lib_$ac_lib_var=no"
8347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8348 echo "$ac_t""yes" 1>&6
8351 echo "$ac_t""no" 1>&6
8366 test -z "$with_wnn" && with_wnn=yes
8367 if test "$with_wnn" = "yes"; then
8368 { test "$extra_verbose" = "yes" && cat << \EOF
8371 cat >> confdefs.h <<\EOF
8376 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
8377 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
8378 echo " xemacs will be linked with \"mule-wnnfns.o\""
8380 if test "$with_wnn6" != "no"; then
8382 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8383 echo "configure:8384: checking for jl_fi_dic_list in -l$libwnn" >&5
8384 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8386 xe_check_libs=" -l$libwnn "
8387 cat > conftest.$ac_ext <<EOF
8388 #line 8389 "configure"
8389 #include "confdefs.h"
8390 /* Override any gcc2 internal prototype to avoid an error. */
8391 /* We use char because int might match the return type of a gcc2
8392 builtin and then its argument prototype would still apply. */
8393 char jl_fi_dic_list();
8399 if { (eval echo configure:8400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8401 eval "ac_cv_lib_$ac_lib_var=yes"
8403 echo "configure: failed program was:" >&5
8404 cat conftest.$ac_ext >&5
8406 eval "ac_cv_lib_$ac_lib_var=no"
8411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8412 echo "$ac_t""yes" 1>&6
8415 echo "$ac_t""no" 1>&6
8419 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8422 cat >> confdefs.h <<\EOF
8430 canna_includes_found=no
8431 if test "$with_canna" != "no"; then
8432 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8433 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8434 echo "configure:8435: checking for canna/jrkanji.h" >&5
8436 cat > conftest.$ac_ext <<EOF
8437 #line 8438 "configure"
8438 #include "confdefs.h"
8439 #include <canna/jrkanji.h>
8441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8442 { (eval echo configure:8443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8444 if test -z "$ac_err"; then
8446 eval "ac_cv_header_$ac_safe=yes"
8449 echo "configure: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8452 eval "ac_cv_header_$ac_safe=no"
8455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8456 echo "$ac_t""yes" 1>&6
8457 canna_includes_found=yes
8459 echo "$ac_t""no" 1>&6
8463 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
8464 -d "/usr/local/canna/include"; then
8465 save_c_switch_site="$c_switch_site"
8466 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8467 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8468 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8469 echo "configure:8470: checking for canna/jrkanji.h" >&5
8471 cat > conftest.$ac_ext <<EOF
8472 #line 8473 "configure"
8473 #include "confdefs.h"
8474 #include <canna/jrkanji.h>
8476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8477 { (eval echo configure:8478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8479 if test -z "$ac_err"; then
8481 eval "ac_cv_header_$ac_safe=yes"
8484 echo "configure: failed program was:" >&5
8485 cat conftest.$ac_ext >&5
8487 eval "ac_cv_header_$ac_safe=no"
8490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8491 echo "$ac_t""yes" 1>&6
8492 canna_includes_found=yes
8494 echo "$ac_t""no" 1>&6
8497 if test "$canna_includes_found" != "yes"; then
8498 c_switch_site="$save_c_switch_site"
8503 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8504 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8505 echo "configure:8506: checking for canna/RK.h" >&5
8507 cat > conftest.$ac_ext <<EOF
8508 #line 8509 "configure"
8509 #include "confdefs.h"
8510 #include <canna/RK.h>
8512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8513 { (eval echo configure:8514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8515 if test -z "$ac_err"; then
8517 eval "ac_cv_header_$ac_safe=yes"
8520 echo "configure: failed program was:" >&5
8521 cat conftest.$ac_ext >&5
8523 eval "ac_cv_header_$ac_safe=no"
8526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8527 echo "$ac_t""yes" 1>&6
8530 echo "$ac_t""no" 1>&6
8534 test -z "$with_canna" && {
8535 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8536 echo "configure:8537: checking for RkBgnBun in -lRKC" >&5
8537 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8539 xe_check_libs=" -lRKC "
8540 cat > conftest.$ac_ext <<EOF
8541 #line 8542 "configure"
8542 #include "confdefs.h"
8543 /* Override any gcc2 internal prototype to avoid an error. */
8544 /* We use char because int might match the return type of a gcc2
8545 builtin and then its argument prototype would still apply. */
8552 if { (eval echo configure:8553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8554 eval "ac_cv_lib_$ac_lib_var=yes"
8556 echo "configure: failed program was:" >&5
8557 cat conftest.$ac_ext >&5
8559 eval "ac_cv_lib_$ac_lib_var=no"
8564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8565 echo "$ac_t""yes" 1>&6
8568 echo "$ac_t""no" 1>&6
8573 test -z "$with_canna" && {
8574 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8575 echo "configure:8576: checking for jrKanjiControl in -lcanna" >&5
8576 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8578 xe_check_libs=" -lcanna "
8579 cat > conftest.$ac_ext <<EOF
8580 #line 8581 "configure"
8581 #include "confdefs.h"
8582 /* Override any gcc2 internal prototype to avoid an error. */
8583 /* We use char because int might match the return type of a gcc2
8584 builtin and then its argument prototype would still apply. */
8585 char jrKanjiControl();
8591 if { (eval echo configure:8592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8593 eval "ac_cv_lib_$ac_lib_var=yes"
8595 echo "configure: failed program was:" >&5
8596 cat conftest.$ac_ext >&5
8598 eval "ac_cv_lib_$ac_lib_var=no"
8603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8604 echo "$ac_t""yes" 1>&6
8607 echo "$ac_t""no" 1>&6
8612 test -z "$with_canna" && with_canna=yes
8613 if test "$with_canna" = "yes"; then
8614 { test "$extra_verbose" = "yes" && cat << \EOF
8617 cat >> confdefs.h <<\EOF
8618 #define HAVE_CANNA 1
8622 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
8623 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
8624 echo " xemacs will be linked with \"mule-canna.o\""
8628 else for feature in xim canna wnn; do
8629 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
8630 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
8632 eval "with_${feature}=no"
8636 if test "$need_motif" = "yes" ; then
8637 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8639 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8640 echo "configure:8641: checking for layout_object_getvalue in -li18n" >&5
8641 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8643 xe_check_libs=" -li18n "
8644 cat > conftest.$ac_ext <<EOF
8645 #line 8646 "configure"
8646 #include "confdefs.h"
8647 /* Override any gcc2 internal prototype to avoid an error. */
8648 /* We use char because int might match the return type of a gcc2
8649 builtin and then its argument prototype would still apply. */
8650 char layout_object_getvalue();
8653 layout_object_getvalue()
8656 if { (eval echo configure:8657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8658 eval "ac_cv_lib_$ac_lib_var=yes"
8660 echo "configure: failed program was:" >&5
8661 cat conftest.$ac_ext >&5
8663 eval "ac_cv_lib_$ac_lib_var=no"
8668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8669 echo "$ac_t""yes" 1>&6
8670 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
8672 echo "$ac_t""no" 1>&6
8677 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
8678 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8679 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8681 runpath="" runpath_dirs=""
8682 if test -n "$LD_RUN_PATH"; then
8683 runpath="$LD_RUN_PATH"
8684 elif test "$GCC" = "yes"; then
8685 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
8686 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
8687 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
8688 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
8689 case "$arg" in P,* | -L* | -R* )
8690 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
8692 xe_runpath_dir="$dir"
8693 test "$xe_runpath_dir" != "/lib" -a \
8694 "$xe_runpath_dir" != "/usr/lib" -a \
8695 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8696 eval "$xe_add_unique_runpath_dir"
8701 ld_switch_run="$ld_switch_run_save"
8704 for arg in $ld_switch_site $ld_switch_x_site; do
8705 case "$arg" in -L*) {
8706 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
8707 test "$xe_runpath_dir" != "/lib" -a \
8708 "$xe_runpath_dir" != "/usr/lib" -a \
8709 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8710 eval "$xe_add_unique_runpath_dir"
8713 if test "$opsys $need_motif" = "sol2 yes"; then
8714 xe_runpath_dir="/opt/SUNWdt/lib";
8715 eval "$xe_add_unique_runpath_dir";
8718 if test -n "$runpath"; then
8719 ld_switch_run="${dash_r}${runpath}"
8721 if test "$GCC" = "yes"; then
8722 set x $ld_switch_run; shift; ld_switch_run=""
8723 while test -n "$1"; do
8725 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8726 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
8728 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
8733 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
8739 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
8741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8742 echo "configure:8743: checking for $ac_func" >&5
8744 cat > conftest.$ac_ext <<EOF
8745 #line 8746 "configure"
8746 #include "confdefs.h"
8747 /* System header to define __stub macros and hopefully few prototypes,
8748 which can conflict with char $ac_func(); below. */
8750 /* Override any gcc2 internal prototype to avoid an error. */
8751 /* We use char because int might match the return type of a gcc2
8752 builtin and then its argument prototype would still apply. */
8757 /* The GNU C library defines this for functions which it implements
8758 to always fail with ENOSYS. Some functions are actually named
8759 something starting with __ and the normal name is an alias. */
8760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8768 if { (eval echo configure:8769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8770 eval "ac_cv_func_$ac_func=yes"
8772 echo "configure: failed program was:" >&5
8773 cat conftest.$ac_ext >&5
8775 eval "ac_cv_func_$ac_func=no"
8779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8780 echo "$ac_t""yes" 1>&6
8781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8782 { test "$extra_verbose" = "yes" && cat << EOF
8783 Defining $ac_tr_func
8785 cat >> confdefs.h <<EOF
8786 #define $ac_tr_func 1
8791 echo "$ac_t""no" 1>&6
8798 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8799 echo " xemacs will be linked with \"realpath.o\""
8802 case "$canonical" in
8803 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8804 echo " xemacs will be linked with \"realpath.o\""
8806 * ) for ac_func in realpath
8808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8809 echo "configure:8810: checking for $ac_func" >&5
8811 cat > conftest.$ac_ext <<EOF
8812 #line 8813 "configure"
8813 #include "confdefs.h"
8814 /* System header to define __stub macros and hopefully few prototypes,
8815 which can conflict with char $ac_func(); below. */
8817 /* Override any gcc2 internal prototype to avoid an error. */
8818 /* We use char because int might match the return type of a gcc2
8819 builtin and then its argument prototype would still apply. */
8824 /* The GNU C library defines this for functions which it implements
8825 to always fail with ENOSYS. Some functions are actually named
8826 something starting with __ and the normal name is an alias. */
8827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8835 if { (eval echo configure:8836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8837 eval "ac_cv_func_$ac_func=yes"
8839 echo "configure: failed program was:" >&5
8840 cat conftest.$ac_ext >&5
8842 eval "ac_cv_func_$ac_func=no"
8846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8847 echo "$ac_t""yes" 1>&6
8848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8849 { test "$extra_verbose" = "yes" && cat << EOF
8850 Defining $ac_tr_func
8852 cat >> confdefs.h <<EOF
8853 #define $ac_tr_func 1
8858 echo "$ac_t""no" 1>&6
8862 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8863 echo " xemacs will be linked with \"realpath.o\""
8868 for ac_func in getloadavg
8870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8871 echo "configure:8872: checking for $ac_func" >&5
8873 cat > conftest.$ac_ext <<EOF
8874 #line 8875 "configure"
8875 #include "confdefs.h"
8876 /* System header to define __stub macros and hopefully few prototypes,
8877 which can conflict with char $ac_func(); below. */
8879 /* Override any gcc2 internal prototype to avoid an error. */
8880 /* We use char because int might match the return type of a gcc2
8881 builtin and then its argument prototype would still apply. */
8886 /* The GNU C library defines this for functions which it implements
8887 to always fail with ENOSYS. Some functions are actually named
8888 something starting with __ and the normal name is an alias. */
8889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8897 if { (eval echo configure:8898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8899 eval "ac_cv_func_$ac_func=yes"
8901 echo "configure: failed program was:" >&5
8902 cat conftest.$ac_ext >&5
8904 eval "ac_cv_func_$ac_func=no"
8908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8909 echo "$ac_t""yes" 1>&6
8910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8911 { test "$extra_verbose" = "yes" && cat << EOF
8912 Defining $ac_tr_func
8914 cat >> confdefs.h <<EOF
8915 #define $ac_tr_func 1
8920 echo "$ac_t""no" 1>&6
8925 if test "$ac_cv_func_getloadavg" != "yes"
8927 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
8928 echo " xemacs will be linked with \"getloadavg.o\""
8932 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
8933 echo "configure:8934: checking for kstat_open in -lkstat" >&5
8934 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
8936 xe_check_libs=" -lkstat "
8937 cat > conftest.$ac_ext <<EOF
8938 #line 8939 "configure"
8939 #include "confdefs.h"
8940 /* Override any gcc2 internal prototype to avoid an error. */
8941 /* We use char because int might match the return type of a gcc2
8942 builtin and then its argument prototype would still apply. */
8949 if { (eval echo configure:8950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8951 eval "ac_cv_lib_$ac_lib_var=yes"
8953 echo "configure: failed program was:" >&5
8954 cat conftest.$ac_ext >&5
8956 eval "ac_cv_lib_$ac_lib_var=no"
8961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8962 echo "$ac_t""yes" 1>&6
8963 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8964 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8965 { test "$extra_verbose" = "yes" && cat << EOF
8968 cat >> confdefs.h <<EOF
8969 #define $ac_tr_lib 1
8973 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
8976 echo "$ac_t""no" 1>&6
8982 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
8983 echo "configure:8984: checking for kvm_read in -lkvm" >&5
8984 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
8986 xe_check_libs=" -lkvm "
8987 cat > conftest.$ac_ext <<EOF
8988 #line 8989 "configure"
8989 #include "confdefs.h"
8990 /* Override any gcc2 internal prototype to avoid an error. */
8991 /* We use char because int might match the return type of a gcc2
8992 builtin and then its argument prototype would still apply. */
8999 if { (eval echo configure:9000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9001 eval "ac_cv_lib_$ac_lib_var=yes"
9003 echo "configure: failed program was:" >&5
9004 cat conftest.$ac_ext >&5
9006 eval "ac_cv_lib_$ac_lib_var=no"
9011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9012 echo "$ac_t""yes" 1>&6
9013 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9014 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9015 { test "$extra_verbose" = "yes" && cat << EOF
9018 cat >> confdefs.h <<EOF
9019 #define $ac_tr_lib 1
9023 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
9026 echo "$ac_t""no" 1>&6
9032 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9033 echo "configure:9034: checking whether netdb declares h_errno" >&5
9034 cat > conftest.$ac_ext <<EOF
9035 #line 9036 "configure"
9036 #include "confdefs.h"
9042 if { (eval echo configure:9043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9044 echo "$ac_t""yes" 1>&6
9045 { test "$extra_verbose" = "yes" && cat << \EOF
9046 Defining HAVE_H_ERRNO
9048 cat >> confdefs.h <<\EOF
9049 #define HAVE_H_ERRNO 1
9054 echo "configure: failed program was:" >&5
9055 cat conftest.$ac_ext >&5
9057 echo "$ac_t""no" 1>&6
9061 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9062 echo "configure:9063: checking for sigsetjmp" >&5
9063 cat > conftest.$ac_ext <<EOF
9064 #line 9065 "configure"
9065 #include "confdefs.h"
9068 sigjmp_buf bar; sigsetjmp (bar, 0);
9071 if { (eval echo configure:9072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9073 echo "$ac_t""yes" 1>&6
9074 { test "$extra_verbose" = "yes" && cat << \EOF
9075 Defining HAVE_SIGSETJMP
9077 cat >> confdefs.h <<\EOF
9078 #define HAVE_SIGSETJMP 1
9083 echo "configure: failed program was:" >&5
9084 cat conftest.$ac_ext >&5
9086 echo "$ac_t""no" 1>&6
9090 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9091 echo "configure:9092: checking whether localtime caches TZ" >&5
9093 if test "$ac_cv_func_tzset" = "yes"; then
9094 cat > conftest.$ac_ext <<EOF
9095 #line 9096 "configure"
9096 #include "confdefs.h"
9099 # include <stdlib.h>
9101 extern char **environ;
9105 for (to = from = environ; (*to = *from); from++)
9106 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
9109 char TZ_GMT0[] = "TZ=GMT0";
9110 char TZ_PST8[] = "TZ=PST8";
9113 time_t now = time ((time_t *) 0);
9114 int hour_GMT0, hour_unset;
9115 if (putenv (TZ_GMT0) != 0)
9117 hour_GMT0 = localtime (&now)->tm_hour;
9119 hour_unset = localtime (&now)->tm_hour;
9120 if (putenv (TZ_PST8) != 0)
9122 if (localtime (&now)->tm_hour == hour_GMT0)
9125 if (localtime (&now)->tm_hour != hour_unset)
9130 if { (eval echo configure:9131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9132 emacs_cv_localtime_cache=no
9135 echo "configure: failed program was:" >&5
9136 cat conftest.$ac_ext >&5
9138 emacs_cv_localtime_cache=yes
9142 # If we lack tzset, report that localtime does not cache TZ,
9143 # since we can't invalidate the cache if we don't have tzset.
9144 emacs_cv_localtime_cache=no
9146 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
9147 if test $emacs_cv_localtime_cache = yes; then
9148 { test "$extra_verbose" = "yes" && cat << \EOF
9149 Defining LOCALTIME_CACHE
9151 cat >> confdefs.h <<\EOF
9152 #define LOCALTIME_CACHE 1
9158 if test "$HAVE_TIMEVAL" = "yes"; then
9159 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9160 echo "configure:9161: checking whether gettimeofday accepts one or two arguments" >&5
9161 cat > conftest.$ac_ext <<EOF
9162 #line 9163 "configure"
9163 #include "confdefs.h"
9165 #ifdef TIME_WITH_SYS_TIME
9166 #include <sys/time.h>
9169 #ifdef HAVE_SYS_TIME_H
9170 #include <sys/time.h>
9178 struct timeval time;
9179 struct timezone dummy;
9180 gettimeofday (&time, &dummy);
9184 if { (eval echo configure:9185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9186 echo "$ac_t""two" 1>&6
9188 echo "configure: failed program was:" >&5
9189 cat conftest.$ac_ext >&5
9191 echo "$ac_t""one" 1>&6
9192 { test "$extra_verbose" = "yes" && cat << \EOF
9193 Defining GETTIMEOFDAY_ONE_ARGUMENT
9195 cat >> confdefs.h <<\EOF
9196 #define GETTIMEOFDAY_ONE_ARGUMENT 1
9205 echo $ac_n "checking for inline""... $ac_c" 1>&6
9206 echo "configure:9207: checking for inline" >&5
9209 for ac_kw in inline __inline__ __inline; do
9210 cat > conftest.$ac_ext <<EOF
9211 #line 9212 "configure"
9212 #include "confdefs.h"
9218 if { (eval echo configure:9219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9220 ac_cv_c_inline=$ac_kw; break
9222 echo "configure: failed program was:" >&5
9223 cat conftest.$ac_ext >&5
9229 echo "$ac_t""$ac_cv_c_inline" 1>&6
9230 case "$ac_cv_c_inline" in
9232 no) { test "$extra_verbose" = "yes" && cat << \EOF
9235 cat >> confdefs.h <<\EOF
9240 *) { test "$extra_verbose" = "yes" && cat << EOF
9241 Defining inline = $ac_cv_c_inline
9243 cat >> confdefs.h <<EOF
9244 #define inline $ac_cv_c_inline
9250 if test "$ac_cv_c_inline" != "no"; then
9251 { test "$extra_verbose" = "yes" && cat << \EOF
9252 Defining HAVE_INLINE
9254 cat >> confdefs.h <<\EOF
9255 #define HAVE_INLINE 1
9259 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
9260 echo " xemacs will be linked with \"inline.o\""
9265 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9266 # for constant arguments. Useless!
9267 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9268 echo "configure:9269: checking for working alloca.h" >&5
9270 cat > conftest.$ac_ext <<EOF
9271 #line 9272 "configure"
9272 #include "confdefs.h"
9275 char *p = alloca(2 * sizeof(int));
9278 if { (eval echo configure:9279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9280 ac_cv_header_alloca_h=yes
9282 echo "configure: failed program was:" >&5
9283 cat conftest.$ac_ext >&5
9285 ac_cv_header_alloca_h=no
9289 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
9290 if test $ac_cv_header_alloca_h = yes; then
9291 { test "$extra_verbose" = "yes" && cat << \EOF
9292 Defining HAVE_ALLOCA_H
9294 cat >> confdefs.h <<\EOF
9295 #define HAVE_ALLOCA_H 1
9301 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9302 echo "configure:9303: checking for alloca" >&5
9304 cat > conftest.$ac_ext <<EOF
9305 #line 9306 "configure"
9306 #include "confdefs.h"
9309 # define alloca __builtin_alloca
9312 # include <malloc.h>
9313 # define alloca _alloca
9316 # include <alloca.h>
9321 # ifndef alloca /* predefined by HP cc +Olibcalls */
9330 char *p = (char *) alloca(1);
9333 if { (eval echo configure:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9335 ac_cv_func_alloca_works=yes
9337 echo "configure: failed program was:" >&5
9338 cat conftest.$ac_ext >&5
9340 ac_cv_func_alloca_works=no
9344 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
9345 if test $ac_cv_func_alloca_works = yes; then
9346 { test "$extra_verbose" = "yes" && cat << \EOF
9347 Defining HAVE_ALLOCA
9349 cat >> confdefs.h <<\EOF
9350 #define HAVE_ALLOCA 1
9356 if test $ac_cv_func_alloca_works = no; then
9357 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9358 # that cause trouble. Some versions do not even contain alloca or
9359 # contain a buggy version. If you still want to use their alloca,
9360 # use ar to extract alloca.o from them instead of compiling alloca.c.
9361 ALLOCA=alloca.${ac_objext}
9362 { test "$extra_verbose" = "yes" && cat << \EOF
9365 cat >> confdefs.h <<\EOF
9371 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9372 echo "configure:9373: checking whether alloca needs Cray hooks" >&5
9374 cat > conftest.$ac_ext <<EOF
9375 #line 9376 "configure"
9376 #include "confdefs.h"
9377 #if defined(CRAY) && ! defined(CRAY2)
9384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9385 egrep "webecray" >/dev/null 2>&1; then
9395 echo "$ac_t""$ac_cv_os_cray" 1>&6
9396 if test $ac_cv_os_cray = yes; then
9397 for ac_func in _getb67 GETB67 getb67; do
9398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9399 echo "configure:9400: checking for $ac_func" >&5
9401 cat > conftest.$ac_ext <<EOF
9402 #line 9403 "configure"
9403 #include "confdefs.h"
9404 /* System header to define __stub macros and hopefully few prototypes,
9405 which can conflict with char $ac_func(); below. */
9407 /* Override any gcc2 internal prototype to avoid an error. */
9408 /* We use char because int might match the return type of a gcc2
9409 builtin and then its argument prototype would still apply. */
9414 /* The GNU C library defines this for functions which it implements
9415 to always fail with ENOSYS. Some functions are actually named
9416 something starting with __ and the normal name is an alias. */
9417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9425 if { (eval echo configure:9426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9427 eval "ac_cv_func_$ac_func=yes"
9429 echo "configure: failed program was:" >&5
9430 cat conftest.$ac_ext >&5
9432 eval "ac_cv_func_$ac_func=no"
9436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9437 echo "$ac_t""yes" 1>&6
9438 { test "$extra_verbose" = "yes" && cat << EOF
9439 Defining CRAY_STACKSEG_END = $ac_func
9441 cat >> confdefs.h <<EOF
9442 #define CRAY_STACKSEG_END $ac_func
9448 echo "$ac_t""no" 1>&6
9454 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9455 echo "configure:9456: checking stack direction for C alloca" >&5
9457 cat > conftest.$ac_ext <<EOF
9458 #line 9459 "configure"
9459 #include "confdefs.h"
9460 find_stack_direction ()
9462 static char *addr = 0;
9467 return find_stack_direction ();
9470 return (&dummy > addr) ? 1 : -1;
9474 exit (find_stack_direction() < 0);
9477 if { (eval echo configure:9478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9479 ac_cv_c_stack_direction=1
9482 echo "configure: failed program was:" >&5
9483 cat conftest.$ac_ext >&5
9485 ac_cv_c_stack_direction=-1
9489 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
9490 { test "$extra_verbose" = "yes" && cat << EOF
9491 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
9493 cat >> confdefs.h <<EOF
9494 #define STACK_DIRECTION $ac_cv_c_stack_direction
9500 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
9501 echo " xemacs will be linked with \"$ALLOCA\""
9504 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9505 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9506 echo "configure:9507: checking for vfork.h" >&5
9508 cat > conftest.$ac_ext <<EOF
9509 #line 9510 "configure"
9510 #include "confdefs.h"
9513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9514 { (eval echo configure:9515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9516 if test -z "$ac_err"; then
9518 eval "ac_cv_header_$ac_safe=yes"
9521 echo "configure: failed program was:" >&5
9522 cat conftest.$ac_ext >&5
9524 eval "ac_cv_header_$ac_safe=no"
9527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9528 echo "$ac_t""yes" 1>&6
9529 { test "$extra_verbose" = "yes" && cat << \EOF
9530 Defining HAVE_VFORK_H
9532 cat >> confdefs.h <<\EOF
9533 #define HAVE_VFORK_H 1
9538 echo "$ac_t""no" 1>&6
9541 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9542 echo "configure:9543: checking for working vfork" >&5
9544 cat > conftest.$ac_ext <<EOF
9545 #line 9546 "configure"
9546 #include "confdefs.h"
9547 /* Thanks to Paul Eggert for this test. */
9549 #include <sys/types.h>
9550 #include <sys/stat.h>
9551 #ifdef HAVE_UNISTD_H
9557 /* On some sparc systems, changes by the child to local and incoming
9558 argument registers are propagated back to the parent.
9559 The compiler is told about this with #include <vfork.h>,
9560 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
9561 Test for this by using a static variable whose address
9562 is put into a register that is clobbered by the vfork. */
9565 sparc_address_test (int arg)
9567 sparc_address_test (arg) int arg;
9585 pid_t parent = getpid ();
9588 sparc_address_test ();
9593 /* Here is another test for sparc vfork register problems.
9594 This test uses lots of local variables, at least
9595 as many local variables as main has allocated so far
9596 including compiler temporaries. 4 locals are enough for
9597 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
9598 A buggy compiler should reuse the register of parent
9599 for one of the local variables, since it will think that
9600 parent can't possibly be used any more in this routine.
9601 Assigning to the local variable will thus munge parent
9602 in the parent process. */
9604 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9605 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9606 /* Convince the compiler that p..p7 are live; otherwise, it might
9607 use the same hardware register for all 8 local variables. */
9608 if (p != p1 || p != p2 || p != p3 || p != p4
9609 || p != p5 || p != p6 || p != p7)
9612 /* On some systems (e.g. IRIX 3.3),
9613 vfork doesn't separate parent from child file descriptors.
9614 If the child closes a descriptor before it execs or exits,
9615 this munges the parent's descriptor as well.
9616 Test for this by closing stdout in the child. */
9617 _exit(close(fileno(stdout)) != 0);
9622 while (wait(&status) != child)
9625 /* Was there some problem with vforking? */
9628 /* Did the child fail? (This shouldn't happen.) */
9631 /* Did the vfork/compiler bug occur? */
9632 || parent != getpid()
9634 /* Did the file descriptor bug occur? */
9635 || fstat(fileno(stdout), &st) != 0
9640 if { (eval echo configure:9641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9642 ac_cv_func_vfork_works=yes
9645 echo "configure: failed program was:" >&5
9646 cat conftest.$ac_ext >&5
9648 ac_cv_func_vfork_works=no
9652 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
9653 if test $ac_cv_func_vfork_works = no; then
9654 { test "$extra_verbose" = "yes" && cat << \EOF
9655 Defining vfork = fork
9657 cat >> confdefs.h <<\EOF
9665 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9666 echo "configure:9667: checking for working strcoll" >&5
9668 cat > conftest.$ac_ext <<EOF
9669 #line 9670 "configure"
9670 #include "confdefs.h"
9674 exit (strcoll ("abc", "def") >= 0 ||
9675 strcoll ("ABC", "DEF") >= 0 ||
9676 strcoll ("123", "456") >= 0);
9679 if { (eval echo configure:9680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9681 ac_cv_func_strcoll_works=yes
9684 echo "configure: failed program was:" >&5
9685 cat conftest.$ac_ext >&5
9687 ac_cv_func_strcoll_works=no
9691 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
9692 if test $ac_cv_func_strcoll_works = yes; then
9693 { test "$extra_verbose" = "yes" && cat << \EOF
9694 Defining HAVE_STRCOLL
9696 cat >> confdefs.h <<\EOF
9697 #define HAVE_STRCOLL 1
9704 for ac_func in getpgrp
9706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9707 echo "configure:9708: checking for $ac_func" >&5
9709 cat > conftest.$ac_ext <<EOF
9710 #line 9711 "configure"
9711 #include "confdefs.h"
9712 /* System header to define __stub macros and hopefully few prototypes,
9713 which can conflict with char $ac_func(); below. */
9715 /* Override any gcc2 internal prototype to avoid an error. */
9716 /* We use char because int might match the return type of a gcc2
9717 builtin and then its argument prototype would still apply. */
9722 /* The GNU C library defines this for functions which it implements
9723 to always fail with ENOSYS. Some functions are actually named
9724 something starting with __ and the normal name is an alias. */
9725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9733 if { (eval echo configure:9734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9735 eval "ac_cv_func_$ac_func=yes"
9737 echo "configure: failed program was:" >&5
9738 cat conftest.$ac_ext >&5
9740 eval "ac_cv_func_$ac_func=no"
9744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9745 echo "$ac_t""yes" 1>&6
9746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9747 { test "$extra_verbose" = "yes" && cat << EOF
9748 Defining $ac_tr_func
9750 cat >> confdefs.h <<EOF
9751 #define $ac_tr_func 1
9756 echo "$ac_t""no" 1>&6
9760 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9761 echo "configure:9762: checking whether getpgrp takes no argument" >&5
9763 cat > conftest.$ac_ext <<EOF
9764 #line 9765 "configure"
9765 #include "confdefs.h"
9768 * If this system has a BSD-style getpgrp(),
9769 * which takes a pid argument, exit unsuccessfully.
9771 * Snarfed from Chet Ramey's bash pgrp.c test program
9774 #include <sys/types.h>
9777 int pg1, pg2, pg3, pg4;
9778 int ng, np, s, child;
9789 * If all of these values are the same, it's pretty sure that
9790 * we're on a system that ignores getpgrp's first argument.
9792 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
9798 else if (child == 0) {
9801 * If this is Sys V, this will not work; pgrp will be
9802 * set to np because setpgrp just changes a pgrp to be
9803 * the same as the pid.
9806 ng = getpgrp(0); /* Same result for Sys V and BSD */
9819 if { (eval echo configure:9820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9821 ac_cv_func_getpgrp_void=yes
9824 echo "configure: failed program was:" >&5
9825 cat conftest.$ac_ext >&5
9827 ac_cv_func_getpgrp_void=no
9832 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
9833 if test $ac_cv_func_getpgrp_void = yes; then
9834 { test "$extra_verbose" = "yes" && cat << \EOF
9835 Defining GETPGRP_VOID
9837 cat >> confdefs.h <<\EOF
9838 #define GETPGRP_VOID 1
9845 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9846 echo "configure:9847: checking for working mmap" >&5
9847 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9848 cat > conftest.$ac_ext <<EOF
9849 #line 9850 "configure"
9850 #include "confdefs.h"
9854 #include <sys/mman.h>
9856 #ifndef MAP_VARIABLE
9857 #define MAP_VARIABLE 0
9861 #define MAP_FAILED -1
9864 int main (int argc, char *argv[])
9868 #ifndef MAP_ANONYMOUS
9869 fd = open ("/dev/zero", O_RDWR);
9872 #define MAP_ANONYMOUS 0
9874 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
9875 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
9876 fd, 0) != (void *) MAP_FAILED)
9878 perror ("conftest: mmap failed");
9882 if { (eval echo configure:9883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9887 echo "configure: failed program was:" >&5
9888 cat conftest.$ac_ext >&5
9894 echo "$ac_t""$have_mmap" 1>&6
9895 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9898 cat >> confdefs.h <<\EOF
9903 for ac_hdr in unistd.h
9905 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9906 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9907 echo "configure:9908: checking for $ac_hdr" >&5
9909 cat > conftest.$ac_ext <<EOF
9910 #line 9911 "configure"
9911 #include "confdefs.h"
9914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9915 { (eval echo configure:9916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9917 if test -z "$ac_err"; then
9919 eval "ac_cv_header_$ac_safe=yes"
9922 echo "configure: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9925 eval "ac_cv_header_$ac_safe=no"
9928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9929 echo "$ac_t""yes" 1>&6
9930 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9931 { test "$extra_verbose" = "yes" && cat << EOF
9934 cat >> confdefs.h <<EOF
9935 #define $ac_tr_hdr 1
9940 echo "$ac_t""no" 1>&6
9944 for ac_func in getpagesize
9946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9947 echo "configure:9948: checking for $ac_func" >&5
9949 cat > conftest.$ac_ext <<EOF
9950 #line 9951 "configure"
9951 #include "confdefs.h"
9952 /* System header to define __stub macros and hopefully few prototypes,
9953 which can conflict with char $ac_func(); below. */
9955 /* Override any gcc2 internal prototype to avoid an error. */
9956 /* We use char because int might match the return type of a gcc2
9957 builtin and then its argument prototype would still apply. */
9962 /* The GNU C library defines this for functions which it implements
9963 to always fail with ENOSYS. Some functions are actually named
9964 something starting with __ and the normal name is an alias. */
9965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9973 if { (eval echo configure:9974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9975 eval "ac_cv_func_$ac_func=yes"
9977 echo "configure: failed program was:" >&5
9978 cat conftest.$ac_ext >&5
9980 eval "ac_cv_func_$ac_func=no"
9984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9985 echo "$ac_t""yes" 1>&6
9986 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9987 { test "$extra_verbose" = "yes" && cat << EOF
9988 Defining $ac_tr_func
9990 cat >> confdefs.h <<EOF
9991 #define $ac_tr_func 1
9996 echo "$ac_t""no" 1>&6
10000 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10001 echo "configure:10002: checking for working mmap" >&5
10003 cat > conftest.$ac_ext <<EOF
10004 #line 10005 "configure"
10005 #include "confdefs.h"
10007 /* Thanks to Mike Haertel and Jim Avera for this test.
10008 Here is a matrix of mmap possibilities:
10009 mmap private not fixed
10010 mmap private fixed at somewhere currently unmapped
10011 mmap private fixed at somewhere already mapped
10012 mmap shared not fixed
10013 mmap shared fixed at somewhere currently unmapped
10014 mmap shared fixed at somewhere already mapped
10015 For private mappings, we should verify that changes cannot be read()
10016 back from the file, nor mmap's back from the file at a different
10017 address. (There have been systems where private was not correctly
10018 implemented like the infamous i386 svr4.0, and systems where the
10019 VM page cache was not coherent with the filesystem buffer cache
10020 like early versions of FreeBSD and possibly contemporary NetBSD.)
10021 For shared mappings, we should conversely verify that changes get
10022 propogated back to all the places they're supposed to be.
10024 Grep wants private fixed already mapped.
10025 The main things grep needs to know about mmap are:
10026 * does it exist and is it safe to write into the mmap'd area
10027 * how to use it (BSD variants) */
10028 #include <sys/types.h>
10030 #include <sys/mman.h>
10032 /* This mess was copied from the GNU getpagesize.h. */
10033 #ifndef HAVE_GETPAGESIZE
10034 # ifdef HAVE_UNISTD_H
10035 # include <unistd.h>
10038 /* Assume that all systems that can run configure have sys/param.h. */
10039 # ifndef HAVE_SYS_PARAM_H
10040 # define HAVE_SYS_PARAM_H 1
10043 # ifdef _SC_PAGESIZE
10044 # define getpagesize() sysconf(_SC_PAGESIZE)
10045 # else /* no _SC_PAGESIZE */
10046 # ifdef HAVE_SYS_PARAM_H
10047 # include <sys/param.h>
10048 # ifdef EXEC_PAGESIZE
10049 # define getpagesize() EXEC_PAGESIZE
10050 # else /* no EXEC_PAGESIZE */
10052 # define getpagesize() NBPG * CLSIZE
10055 # endif /* no CLSIZE */
10056 # else /* no NBPG */
10058 # define getpagesize() NBPC
10059 # else /* no NBPC */
10061 # define getpagesize() PAGESIZE
10062 # endif /* PAGESIZE */
10063 # endif /* no NBPC */
10064 # endif /* no NBPG */
10065 # endif /* no EXEC_PAGESIZE */
10066 # else /* no HAVE_SYS_PARAM_H */
10067 # define getpagesize() 8192 /* punt totally */
10068 # endif /* no HAVE_SYS_PARAM_H */
10069 # endif /* no _SC_PAGESIZE */
10071 #endif /* no HAVE_GETPAGESIZE */
10074 extern "C" { void *malloc(unsigned); }
10082 char *data, *data2, *data3;
10086 pagesize = getpagesize();
10089 * First, make a file with some known garbage in it.
10091 data = malloc(pagesize);
10094 for (i = 0; i < pagesize; ++i)
10095 *(data + i) = rand();
10097 fd = creat("conftestmmap", 0600);
10100 if (write(fd, data, pagesize) != pagesize)
10105 * Next, try to mmap the file at a fixed address which
10106 * already has something else allocated at it. If we can,
10107 * also make sure that we see the same garbage.
10109 fd = open("conftestmmap", O_RDWR);
10112 data2 = malloc(2 * pagesize);
10115 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
10116 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
10117 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10119 for (i = 0; i < pagesize; ++i)
10120 if (*(data + i) != *(data2 + i))
10124 * Finally, make sure that changes to the mapped area
10125 * do not percolate back to the file as seen by read().
10126 * (This is a bug on some variants of i386 svr4.0.)
10128 for (i = 0; i < pagesize; ++i)
10129 *(data2 + i) = *(data2 + i) + 1;
10130 data3 = malloc(pagesize);
10133 if (read(fd, data3, pagesize) != pagesize)
10135 for (i = 0; i < pagesize; ++i)
10136 if (*(data + i) != *(data3 + i))
10139 unlink("conftestmmap");
10144 if { (eval echo configure:10145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10146 ac_cv_func_mmap_fixed_mapped=yes
10149 echo "configure: failed program was:" >&5
10150 cat conftest.$ac_ext >&5
10152 ac_cv_func_mmap_fixed_mapped=no
10156 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
10157 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10158 { test "$extra_verbose" = "yes" && cat << \EOF
10161 cat >> confdefs.h <<\EOF
10162 #define HAVE_MMAP 1
10169 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10170 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
10171 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10174 cat >> confdefs.h <<\EOF
10175 #define REL_ALLOC 1
10180 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10181 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10182 echo "configure:10183: checking for termios.h" >&5
10184 cat > conftest.$ac_ext <<EOF
10185 #line 10186 "configure"
10186 #include "confdefs.h"
10187 #include <termios.h>
10189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10190 { (eval echo configure:10191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10192 if test -z "$ac_err"; then
10194 eval "ac_cv_header_$ac_safe=yes"
10197 echo "configure: failed program was:" >&5
10198 cat conftest.$ac_ext >&5
10200 eval "ac_cv_header_$ac_safe=no"
10203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10204 echo "$ac_t""yes" 1>&6
10205 { test "$extra_verbose" = "yes" && cat << \EOF
10206 Defining HAVE_TERMIOS
10208 cat >> confdefs.h <<\EOF
10209 #define HAVE_TERMIOS 1
10213 { test "$extra_verbose" = "yes" && cat << \EOF
10214 Defining SIGNALS_VIA_CHARACTERS
10216 cat >> confdefs.h <<\EOF
10217 #define SIGNALS_VIA_CHARACTERS 1
10221 { test "$extra_verbose" = "yes" && cat << \EOF
10224 cat >> confdefs.h <<\EOF
10225 #define NO_TERMIO 1
10230 echo "$ac_t""no" 1>&6
10231 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10232 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10233 echo "configure:10234: checking for termio.h" >&5
10235 cat > conftest.$ac_ext <<EOF
10236 #line 10237 "configure"
10237 #include "confdefs.h"
10238 #include <termio.h>
10240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10241 { (eval echo configure:10242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10243 if test -z "$ac_err"; then
10245 eval "ac_cv_header_$ac_safe=yes"
10248 echo "configure: failed program was:" >&5
10249 cat conftest.$ac_ext >&5
10251 eval "ac_cv_header_$ac_safe=no"
10254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10255 echo "$ac_t""yes" 1>&6
10256 { test "$extra_verbose" = "yes" && cat << \EOF
10257 Defining HAVE_TERMIO
10259 cat >> confdefs.h <<\EOF
10260 #define HAVE_TERMIO 1
10265 echo "$ac_t""no" 1>&6
10272 echo $ac_n "checking for socket""... $ac_c" 1>&6
10273 echo "configure:10274: checking for socket" >&5
10275 cat > conftest.$ac_ext <<EOF
10276 #line 10277 "configure"
10277 #include "confdefs.h"
10278 /* System header to define __stub macros and hopefully few prototypes,
10279 which can conflict with char socket(); below. */
10280 #include <assert.h>
10281 /* Override any gcc2 internal prototype to avoid an error. */
10282 /* We use char because int might match the return type of a gcc2
10283 builtin and then its argument prototype would still apply. */
10288 /* The GNU C library defines this for functions which it implements
10289 to always fail with ENOSYS. Some functions are actually named
10290 something starting with __ and the normal name is an alias. */
10291 #if defined (__stub_socket) || defined (__stub___socket)
10299 if { (eval echo configure:10300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10301 eval "ac_cv_func_socket=yes"
10303 echo "configure: failed program was:" >&5
10304 cat conftest.$ac_ext >&5
10306 eval "ac_cv_func_socket=no"
10310 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10311 echo "$ac_t""yes" 1>&6
10312 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10313 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10314 echo "configure:10315: checking for netinet/in.h" >&5
10316 cat > conftest.$ac_ext <<EOF
10317 #line 10318 "configure"
10318 #include "confdefs.h"
10319 #include <netinet/in.h>
10321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10322 { (eval echo configure:10323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10324 if test -z "$ac_err"; then
10326 eval "ac_cv_header_$ac_safe=yes"
10329 echo "configure: failed program was:" >&5
10330 cat conftest.$ac_ext >&5
10332 eval "ac_cv_header_$ac_safe=no"
10335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10336 echo "$ac_t""yes" 1>&6
10337 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10338 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10339 echo "configure:10340: checking for arpa/inet.h" >&5
10341 cat > conftest.$ac_ext <<EOF
10342 #line 10343 "configure"
10343 #include "confdefs.h"
10344 #include <arpa/inet.h>
10346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10347 { (eval echo configure:10348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10349 if test -z "$ac_err"; then
10351 eval "ac_cv_header_$ac_safe=yes"
10354 echo "configure: failed program was:" >&5
10355 cat conftest.$ac_ext >&5
10357 eval "ac_cv_header_$ac_safe=no"
10360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10361 echo "$ac_t""yes" 1>&6
10363 { test "$extra_verbose" = "yes" && cat << \EOF
10364 Defining HAVE_SOCKETS
10366 cat >> confdefs.h <<\EOF
10367 #define HAVE_SOCKETS 1
10371 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10372 echo "configure:10373: checking "for sun_len member in struct sockaddr_un"" >&5
10373 cat > conftest.$ac_ext <<EOF
10374 #line 10375 "configure"
10375 #include "confdefs.h"
10377 #include <sys/types.h>
10378 #include <sys/socket.h>
10379 #include <sys/un.h>
10382 static struct sockaddr_un x; x.sun_len = 1;
10385 if { (eval echo configure:10386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10387 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10388 Defining HAVE_SOCKADDR_SUN_LEN
10390 cat >> confdefs.h <<\EOF
10391 #define HAVE_SOCKADDR_SUN_LEN 1
10396 echo "configure: failed program was:" >&5
10397 cat conftest.$ac_ext >&5
10399 echo "$ac_t""no" 1>&6
10402 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10403 echo "configure:10404: checking "for ip_mreq struct in netinet/in.h"" >&5
10404 cat > conftest.$ac_ext <<EOF
10405 #line 10406 "configure"
10406 #include "confdefs.h"
10408 #include <sys/types.h>
10409 #include <netinet/in.h>
10412 static struct ip_mreq x;
10415 if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10417 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10418 Defining HAVE_MULTICAST
10420 cat >> confdefs.h <<\EOF
10421 #define HAVE_MULTICAST 1
10426 echo "configure: failed program was:" >&5
10427 cat conftest.$ac_ext >&5
10429 echo "$ac_t""no" 1>&6
10433 echo "$ac_t""no" 1>&6
10437 echo "$ac_t""no" 1>&6
10441 echo "$ac_t""no" 1>&6
10445 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10446 echo "configure:10447: checking for msgget" >&5
10448 cat > conftest.$ac_ext <<EOF
10449 #line 10450 "configure"
10450 #include "confdefs.h"
10451 /* System header to define __stub macros and hopefully few prototypes,
10452 which can conflict with char msgget(); below. */
10453 #include <assert.h>
10454 /* Override any gcc2 internal prototype to avoid an error. */
10455 /* We use char because int might match the return type of a gcc2
10456 builtin and then its argument prototype would still apply. */
10461 /* The GNU C library defines this for functions which it implements
10462 to always fail with ENOSYS. Some functions are actually named
10463 something starting with __ and the normal name is an alias. */
10464 #if defined (__stub_msgget) || defined (__stub___msgget)
10472 if { (eval echo configure:10473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10474 eval "ac_cv_func_msgget=yes"
10476 echo "configure: failed program was:" >&5
10477 cat conftest.$ac_ext >&5
10479 eval "ac_cv_func_msgget=no"
10483 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10484 echo "$ac_t""yes" 1>&6
10485 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10486 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10487 echo "configure:10488: checking for sys/ipc.h" >&5
10489 cat > conftest.$ac_ext <<EOF
10490 #line 10491 "configure"
10491 #include "confdefs.h"
10492 #include <sys/ipc.h>
10494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10495 { (eval echo configure:10496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10497 if test -z "$ac_err"; then
10499 eval "ac_cv_header_$ac_safe=yes"
10502 echo "configure: failed program was:" >&5
10503 cat conftest.$ac_ext >&5
10505 eval "ac_cv_header_$ac_safe=no"
10508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10509 echo "$ac_t""yes" 1>&6
10510 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10511 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10512 echo "configure:10513: checking for sys/msg.h" >&5
10514 cat > conftest.$ac_ext <<EOF
10515 #line 10516 "configure"
10516 #include "confdefs.h"
10517 #include <sys/msg.h>
10519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10520 { (eval echo configure:10521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10522 if test -z "$ac_err"; then
10524 eval "ac_cv_header_$ac_safe=yes"
10527 echo "configure: failed program was:" >&5
10528 cat conftest.$ac_ext >&5
10530 eval "ac_cv_header_$ac_safe=no"
10533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10534 echo "$ac_t""yes" 1>&6
10535 { test "$extra_verbose" = "yes" && cat << \EOF
10536 Defining HAVE_SYSVIPC
10538 cat >> confdefs.h <<\EOF
10539 #define HAVE_SYSVIPC 1
10544 echo "$ac_t""no" 1>&6
10548 echo "$ac_t""no" 1>&6
10552 echo "$ac_t""no" 1>&6
10556 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10557 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10558 echo "configure:10559: checking for dirent.h" >&5
10560 cat > conftest.$ac_ext <<EOF
10561 #line 10562 "configure"
10562 #include "confdefs.h"
10563 #include <dirent.h>
10565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10566 { (eval echo configure:10567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10568 if test -z "$ac_err"; then
10570 eval "ac_cv_header_$ac_safe=yes"
10573 echo "configure: failed program was:" >&5
10574 cat conftest.$ac_ext >&5
10576 eval "ac_cv_header_$ac_safe=no"
10579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10580 echo "$ac_t""yes" 1>&6
10581 { test "$extra_verbose" = "yes" && cat << \EOF
10582 Defining SYSV_SYSTEM_DIR
10584 cat >> confdefs.h <<\EOF
10585 #define SYSV_SYSTEM_DIR 1
10590 echo "$ac_t""no" 1>&6
10591 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10592 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10593 echo "configure:10594: checking for sys/dir.h" >&5
10595 cat > conftest.$ac_ext <<EOF
10596 #line 10597 "configure"
10597 #include "confdefs.h"
10598 #include <sys/dir.h>
10600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10601 { (eval echo configure:10602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10603 if test -z "$ac_err"; then
10605 eval "ac_cv_header_$ac_safe=yes"
10608 echo "configure: failed program was:" >&5
10609 cat conftest.$ac_ext >&5
10611 eval "ac_cv_header_$ac_safe=no"
10614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10615 echo "$ac_t""yes" 1>&6
10618 echo "$ac_t""no" 1>&6
10619 { test "$extra_verbose" = "yes" && cat << \EOF
10620 Defining NONSYSTEM_DIR_LIBRARY
10622 cat >> confdefs.h <<\EOF
10623 #define NONSYSTEM_DIR_LIBRARY 1
10632 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10633 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10634 echo "configure:10635: checking for nlist.h" >&5
10636 cat > conftest.$ac_ext <<EOF
10637 #line 10638 "configure"
10638 #include "confdefs.h"
10641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10642 { (eval echo configure:10643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10643 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10644 if test -z "$ac_err"; then
10646 eval "ac_cv_header_$ac_safe=yes"
10649 echo "configure: failed program was:" >&5
10650 cat conftest.$ac_ext >&5
10652 eval "ac_cv_header_$ac_safe=no"
10655 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10656 echo "$ac_t""yes" 1>&6
10657 { test "$extra_verbose" = "yes" && cat << \EOF
10658 Defining NLIST_STRUCT
10660 cat >> confdefs.h <<\EOF
10661 #define NLIST_STRUCT 1
10666 echo "$ac_t""no" 1>&6
10671 echo "checking "for sound support"" 1>&6
10672 echo "configure:10673: checking "for sound support"" >&5
10673 case "$with_sound" in
10674 native | both ) with_native_sound=yes;;
10675 nas | no ) with_native_sound=no;;
10677 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10679 if test "$with_native_sound" != "no"; then
10680 if test -n "$native_sound_lib"; then
10681 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10682 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10683 echo "configure:10684: checking for multimedia/audio_device.h" >&5
10685 cat > conftest.$ac_ext <<EOF
10686 #line 10687 "configure"
10687 #include "confdefs.h"
10688 #include <multimedia/audio_device.h>
10690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10691 { (eval echo configure:10692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10693 if test -z "$ac_err"; then
10695 eval "ac_cv_header_$ac_safe=yes"
10698 echo "configure: failed program was:" >&5
10699 cat conftest.$ac_ext >&5
10701 eval "ac_cv_header_$ac_safe=no"
10704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10705 echo "$ac_t""yes" 1>&6
10706 sound_found=yes sound_cflags=""
10707 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10708 echo " xemacs will be linked with \"sunplay.o\""
10711 echo "$ac_t""no" 1>&6
10716 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
10718 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10719 echo " xemacs will be linked with \"sunplay.o\""
10721 if test -d "/usr/demo/SOUND/include"
10722 then sound_cflags="-I/usr/demo/SOUND/include"
10723 else sound_cflags="-I/usr/demo/SOUND"
10725 if test -z "$native_sound_lib" ; then
10726 if test -r "/usr/demo/SOUND/lib/libaudio.a"
10727 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
10728 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
10733 if test -z "$sound_found"; then
10734 case "$canonical" in
10736 if test -z "$native_sound_lib"; then
10738 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10739 echo "configure:10740: checking for ALopenport in -laudio" >&5
10740 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10742 xe_check_libs=" -laudio "
10743 cat > conftest.$ac_ext <<EOF
10744 #line 10745 "configure"
10745 #include "confdefs.h"
10746 /* Override any gcc2 internal prototype to avoid an error. */
10747 /* We use char because int might match the return type of a gcc2
10748 builtin and then its argument prototype would still apply. */
10755 if { (eval echo configure:10756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10757 eval "ac_cv_lib_$ac_lib_var=yes"
10759 echo "configure: failed program was:" >&5
10760 cat conftest.$ac_ext >&5
10762 eval "ac_cv_lib_$ac_lib_var=no"
10767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10768 echo "$ac_t""yes" 1>&6
10769 native_sound_lib="-laudio"
10771 echo "$ac_t""no" 1>&6
10776 if test -n "$native_sound_lib"; then
10777 sound_found=yes sound_cflags=""
10778 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
10779 echo " xemacs will be linked with \"sgiplay.o\""
10783 if test -z "$native_sound_lib"; then
10785 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10786 echo "configure:10787: checking for AOpenAudio in -lAlib" >&5
10787 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10789 xe_check_libs=" -lAlib "
10790 cat > conftest.$ac_ext <<EOF
10791 #line 10792 "configure"
10792 #include "confdefs.h"
10793 /* Override any gcc2 internal prototype to avoid an error. */
10794 /* We use char because int might match the return type of a gcc2
10795 builtin and then its argument prototype would still apply. */
10802 if { (eval echo configure:10803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10804 eval "ac_cv_lib_$ac_lib_var=yes"
10806 echo "configure: failed program was:" >&5
10807 cat conftest.$ac_ext >&5
10809 eval "ac_cv_lib_$ac_lib_var=no"
10814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10815 echo "$ac_t""yes" 1>&6
10816 native_sound_lib="-lAlib"
10818 echo "$ac_t""no" 1>&6
10823 if test -n "$native_sound_lib"; then
10825 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
10826 echo " xemacs will be linked with \"hpplay.o\""
10828 if test "$GCC" = "yes" # Kludge city
10829 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
10830 else sound_cflags="+e -I/usr/audio/examples"
10836 if test -z "$sound_found"; then
10837 for dir in "machine" "sys" "linux"; do
10838 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10839 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10840 echo "configure:10841: checking for ${dir}/soundcard.h" >&5
10842 cat > conftest.$ac_ext <<EOF
10843 #line 10844 "configure"
10844 #include "confdefs.h"
10845 #include <${dir}/soundcard.h>
10847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10848 { (eval echo configure:10849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10850 if test -z "$ac_err"; then
10852 eval "ac_cv_header_$ac_safe=yes"
10855 echo "configure: failed program was:" >&5
10856 cat conftest.$ac_ext >&5
10858 eval "ac_cv_header_$ac_safe=no"
10861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10862 echo "$ac_t""yes" 1>&6
10864 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
10865 echo " xemacs will be linked with \"linuxplay.o\""
10867 { test "$extra_verbose" = "yes" && cat << EOF
10868 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
10870 cat >> confdefs.h <<EOF
10871 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
10877 echo "$ac_t""no" 1>&6
10883 test "$sound_found" = "yes" && with_native_sound=yes
10886 if test -z "$with_sound"; then
10887 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
10892 if test "$with_native_sound" = "yes"; then
10893 { test "$extra_verbose" = "yes" && cat << \EOF
10894 Defining HAVE_NATIVE_SOUND
10896 cat >> confdefs.h <<\EOF
10897 #define HAVE_NATIVE_SOUND 1
10901 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
10904 case "$with_sound" in both | nas )
10905 { test "$extra_verbose" = "yes" && cat << \EOF
10906 Defining HAVE_NAS_SOUND
10908 cat >> confdefs.h <<\EOF
10909 #define HAVE_NAS_SOUND 1
10913 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10914 echo " xemacs will be linked with \"nas.o\""
10916 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10917 cat > conftest.$ac_ext <<EOF
10918 #line 10919 "configure"
10919 #include "confdefs.h"
10920 #include <audio/Xtutil.h>
10922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10923 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10927 { test "$extra_verbose" = "yes" && cat << \EOF
10928 Defining NAS_NO_ERROR_JUMP
10930 cat >> confdefs.h <<\EOF
10931 #define NAS_NO_ERROR_JUMP 1
10941 test -z "$with_tty" && with_tty=yes
10943 if test "$with_tty" = "yes" ; then
10944 echo "checking for TTY-related features" 1>&6
10945 echo "configure:10946: checking for TTY-related features" >&5
10946 { test "$extra_verbose" = "yes" && cat << \EOF
10949 cat >> confdefs.h <<\EOF
10954 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
10955 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\""
10958 if test -z "$with_ncurses"; then
10960 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10961 echo "configure:10962: checking for tgetent in -lncurses" >&5
10962 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10964 xe_check_libs=" -lncurses "
10965 cat > conftest.$ac_ext <<EOF
10966 #line 10967 "configure"
10967 #include "confdefs.h"
10968 /* Override any gcc2 internal prototype to avoid an error. */
10969 /* We use char because int might match the return type of a gcc2
10970 builtin and then its argument prototype would still apply. */
10977 if { (eval echo configure:10978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10979 eval "ac_cv_lib_$ac_lib_var=yes"
10981 echo "configure: failed program was:" >&5
10982 cat conftest.$ac_ext >&5
10984 eval "ac_cv_lib_$ac_lib_var=no"
10989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10990 echo "$ac_t""yes" 1>&6
10993 echo "$ac_t""no" 1>&6
10999 if test "$with_ncurses" = "yes"; then
11000 { test "$extra_verbose" = "yes" && cat << \EOF
11001 Defining HAVE_NCURSES
11003 cat >> confdefs.h <<\EOF
11004 #define HAVE_NCURSES 1
11008 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11009 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11010 echo "configure:11011: checking for ncurses/curses.h" >&5
11012 cat > conftest.$ac_ext <<EOF
11013 #line 11014 "configure"
11014 #include "confdefs.h"
11015 #include <ncurses/curses.h>
11017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11018 { (eval echo configure:11019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11020 if test -z "$ac_err"; then
11022 eval "ac_cv_header_$ac_safe=yes"
11025 echo "configure: failed program was:" >&5
11026 cat conftest.$ac_ext >&5
11028 eval "ac_cv_header_$ac_safe=no"
11031 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11032 echo "$ac_t""yes" 1>&6
11033 curses_h_path=ncurses/curses.h
11035 echo "$ac_t""no" 1>&6
11038 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
11039 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
11040 echo "configure:11041: checking for ncurses/term.h" >&5
11042 cat > conftest.$ac_ext <<EOF
11043 #line 11044 "configure"
11044 #include "confdefs.h"
11045 #include <ncurses/term.h>
11047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11048 { (eval echo configure:11049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11050 if test -z "$ac_err"; then
11052 eval "ac_cv_header_$ac_safe=yes"
11055 echo "configure: failed program was:" >&5
11056 cat conftest.$ac_ext >&5
11058 eval "ac_cv_header_$ac_safe=no"
11061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11062 echo "$ac_t""yes" 1>&6
11063 term_h_path=ncurses/term.h
11065 echo "$ac_t""no" 1>&6
11068 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11069 echo " xemacs will be linked with \"terminfo.o\""
11071 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
11073 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
11074 save_c_switch_site="$c_switch_site"
11075 c_switch_site="$c_switch_site -I/usr/include/ncurses"
11076 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11077 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11078 echo "configure:11079: checking for ncurses/curses.h" >&5
11080 cat > conftest.$ac_ext <<EOF
11081 #line 11082 "configure"
11082 #include "confdefs.h"
11083 #include <ncurses/curses.h>
11085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11086 { (eval echo configure:11087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11088 if test -z "$ac_err"; then
11090 eval "ac_cv_header_$ac_safe=yes"
11093 echo "configure: failed program was:" >&5
11094 cat conftest.$ac_ext >&5
11096 eval "ac_cv_header_$ac_safe=no"
11099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11100 echo "$ac_t""yes" 1>&6
11101 curses_h_path=ncurses/curses.h
11103 echo "$ac_t""no" 1>&6
11106 if test "$ac_cv_header_ncurses_curses_h" = "yes"
11107 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
11108 else c_switch_site="$save_c_switch_site"
11111 else if test "$have_terminfo" = "yes"; then
11112 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11113 echo " xemacs will be linked with \"terminfo.o\""
11115 if test -n "$libs_termcap"; then
11116 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11118 for lib in curses termlib termcap; do
11120 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
11121 echo "configure:11122: checking for tgetent in -l$lib" >&5
11122 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
11124 xe_check_libs=" -l$lib "
11125 cat > conftest.$ac_ext <<EOF
11126 #line 11127 "configure"
11127 #include "confdefs.h"
11128 /* Override any gcc2 internal prototype to avoid an error. */
11129 /* We use char because int might match the return type of a gcc2
11130 builtin and then its argument prototype would still apply. */
11137 if { (eval echo configure:11138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11139 eval "ac_cv_lib_$ac_lib_var=yes"
11141 echo "configure: failed program was:" >&5
11142 cat conftest.$ac_ext >&5
11144 eval "ac_cv_lib_$ac_lib_var=no"
11149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11150 echo "$ac_t""yes" 1>&6
11151 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
11153 echo "$ac_t""no" 1>&6
11159 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
11160 echo " xemacs will be linked with \"tparam.o\""
11162 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
11163 if test -n "$libs_termcap"; then
11164 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11167 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11168 echo "configure:11169: checking for tgetent in -lcurses" >&5
11169 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11171 xe_check_libs=" -lcurses "
11172 cat > conftest.$ac_ext <<EOF
11173 #line 11174 "configure"
11174 #include "confdefs.h"
11175 /* Override any gcc2 internal prototype to avoid an error. */
11176 /* We use char because int might match the return type of a gcc2
11177 builtin and then its argument prototype would still apply. */
11184 if { (eval echo configure:11185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11186 eval "ac_cv_lib_$ac_lib_var=yes"
11188 echo "configure: failed program was:" >&5
11189 cat conftest.$ac_ext >&5
11191 eval "ac_cv_lib_$ac_lib_var=no"
11196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11197 echo "$ac_t""yes" 1>&6
11198 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11200 echo "$ac_t""no" 1>&6
11201 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11202 echo "configure:11203: checking for tgetent in -ltermcap" >&5
11203 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11205 xe_check_libs=" -ltermcap "
11206 cat > conftest.$ac_ext <<EOF
11207 #line 11208 "configure"
11208 #include "confdefs.h"
11209 /* Override any gcc2 internal prototype to avoid an error. */
11210 /* We use char because int might match the return type of a gcc2
11211 builtin and then its argument prototype would still apply. */
11218 if { (eval echo configure:11219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11220 eval "ac_cv_lib_$ac_lib_var=yes"
11222 echo "configure: failed program was:" >&5
11223 cat conftest.$ac_ext >&5
11225 eval "ac_cv_lib_$ac_lib_var=no"
11230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11231 echo "$ac_t""yes" 1>&6
11232 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
11234 echo "$ac_t""no" 1>&6
11235 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
11236 echo " xemacs will be linked with \"termcap.o\""
11247 { test "$extra_verbose" = "yes" && cat << EOF
11248 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
11250 cat >> confdefs.h <<EOF
11251 #define CURSES_H_PATH "${curses_h_path-curses.h}"
11255 { test "$extra_verbose" = "yes" && cat << EOF
11256 Defining TERM_H_PATH = "${term_h_path-term.h}"
11258 cat >> confdefs.h <<EOF
11259 #define TERM_H_PATH "${term_h_path-term.h}"
11264 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11265 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11266 echo "configure:11267: checking for gpm.h" >&5
11268 cat > conftest.$ac_ext <<EOF
11269 #line 11270 "configure"
11270 #include "confdefs.h"
11273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11274 { (eval echo configure:11275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11276 if test -z "$ac_err"; then
11278 eval "ac_cv_header_$ac_safe=yes"
11281 echo "configure: failed program was:" >&5
11282 cat conftest.$ac_ext >&5
11284 eval "ac_cv_header_$ac_safe=no"
11287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11288 echo "$ac_t""yes" 1>&6
11291 echo "$ac_t""no" 1>&6
11295 test -z "$with_gpm" && {
11296 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11297 echo "configure:11298: checking for Gpm_Open in -lgpm" >&5
11298 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11300 xe_check_libs=" -lgpm "
11301 cat > conftest.$ac_ext <<EOF
11302 #line 11303 "configure"
11303 #include "confdefs.h"
11304 /* Override any gcc2 internal prototype to avoid an error. */
11305 /* We use char because int might match the return type of a gcc2
11306 builtin and then its argument prototype would still apply. */
11313 if { (eval echo configure:11314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11315 eval "ac_cv_lib_$ac_lib_var=yes"
11317 echo "configure: failed program was:" >&5
11318 cat conftest.$ac_ext >&5
11320 eval "ac_cv_lib_$ac_lib_var=no"
11325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11326 echo "$ac_t""yes" 1>&6
11329 echo "$ac_t""no" 1>&6
11334 if test "$with_gpm" = "yes"; then
11335 { test "$extra_verbose" = "yes" && cat << \EOF
11338 cat >> confdefs.h <<\EOF
11343 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
11344 echo " xemacs will be linked with \"gpmevent.o\""
11346 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
11349 else for feature in ncurses gpm; do
11350 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11351 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
11353 eval "with_${feature}=no"
11356 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
11357 echo " xemacs will be linked with \"event-unixoid.o\""
11361 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11362 != "no no no" && echo "checking for database support" 1>&6
11363 echo "configure:11364: checking for database support" >&5
11365 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
11366 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11367 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11368 echo "configure:11369: checking for ndbm.h" >&5
11370 cat > conftest.$ac_ext <<EOF
11371 #line 11372 "configure"
11372 #include "confdefs.h"
11375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11376 { (eval echo configure:11377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11378 if test -z "$ac_err"; then
11380 eval "ac_cv_header_$ac_safe=yes"
11383 echo "configure: failed program was:" >&5
11384 cat conftest.$ac_ext >&5
11386 eval "ac_cv_header_$ac_safe=no"
11389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11390 echo "$ac_t""yes" 1>&6
11393 echo "$ac_t""no" 1>&6
11395 test "$with_database_gnudbm" = "yes" -o \
11396 "$with_database_dbm" = "yes" && \
11397 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11398 with_database_gnudbm=no with_database_dbm=no
11403 if test "$with_database_gnudbm" != "no"; then
11405 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11406 echo "configure:11407: checking for dbm_open in -lgdbm" >&5
11407 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11409 xe_check_libs=" -lgdbm "
11410 cat > conftest.$ac_ext <<EOF
11411 #line 11412 "configure"
11412 #include "confdefs.h"
11413 /* Override any gcc2 internal prototype to avoid an error. */
11414 /* We use char because int might match the return type of a gcc2
11415 builtin and then its argument prototype would still apply. */
11422 if { (eval echo configure:11423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11424 eval "ac_cv_lib_$ac_lib_var=yes"
11426 echo "configure: failed program was:" >&5
11427 cat conftest.$ac_ext >&5
11429 eval "ac_cv_lib_$ac_lib_var=no"
11434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11435 echo "$ac_t""yes" 1>&6
11436 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm
11438 echo "$ac_t""no" 1>&6
11439 if test "$with_database_gnudbm" = "yes"; then
11440 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
11442 with_database_gnudbm=no
11448 if test "$with_database_dbm" != "no"; then
11449 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11450 echo "configure:11451: checking for dbm_open" >&5
11452 cat > conftest.$ac_ext <<EOF
11453 #line 11454 "configure"
11454 #include "confdefs.h"
11455 /* System header to define __stub macros and hopefully few prototypes,
11456 which can conflict with char dbm_open(); below. */
11457 #include <assert.h>
11458 /* Override any gcc2 internal prototype to avoid an error. */
11459 /* We use char because int might match the return type of a gcc2
11460 builtin and then its argument prototype would still apply. */
11465 /* The GNU C library defines this for functions which it implements
11466 to always fail with ENOSYS. Some functions are actually named
11467 something starting with __ and the normal name is an alias. */
11468 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11476 if { (eval echo configure:11477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11478 eval "ac_cv_func_dbm_open=yes"
11480 echo "configure: failed program was:" >&5
11481 cat conftest.$ac_ext >&5
11483 eval "ac_cv_func_dbm_open=no"
11487 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11488 echo "$ac_t""yes" 1>&6
11489 with_database_dbm=yes libdbm=
11491 echo "$ac_t""no" 1>&6
11494 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11495 echo "configure:11496: checking for dbm_open in -ldbm" >&5
11496 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11498 xe_check_libs=" -ldbm "
11499 cat > conftest.$ac_ext <<EOF
11500 #line 11501 "configure"
11501 #include "confdefs.h"
11502 /* Override any gcc2 internal prototype to avoid an error. */
11503 /* We use char because int might match the return type of a gcc2
11504 builtin and then its argument prototype would still apply. */
11511 if { (eval echo configure:11512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11513 eval "ac_cv_lib_$ac_lib_var=yes"
11515 echo "configure: failed program was:" >&5
11516 cat conftest.$ac_ext >&5
11518 eval "ac_cv_lib_$ac_lib_var=no"
11523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11524 echo "$ac_t""yes" 1>&6
11525 with_database_dbm=yes libdbm=-ldbm
11527 echo "$ac_t""no" 1>&6
11528 test "$with_database_dbm" = "yes" && \
11529 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11530 with_database_dbm=no
11538 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
11539 test "$with_database_gnudbm" = "yes" -o \
11540 "$with_database_dbm" = "yes" && \
11541 { test "$extra_verbose" = "yes" && cat << \EOF
11544 cat >> confdefs.h <<\EOF
11550 if test "$with_database_berkdb" != "no"; then
11551 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11552 echo "configure:11553: checking for Berkeley db.h" >&5
11553 for path in "db/db.h" "db.h"; do
11554 cat > conftest.$ac_ext <<EOF
11555 #line 11556 "configure"
11556 #include "confdefs.h"
11557 #ifdef HAVE_INTTYPES_H
11558 #define __BIT_TYPES_DEFINED__
11559 #include <inttypes.h>
11560 typedef uint8_t u_int8_t;
11561 typedef uint16_t u_int16_t;
11562 typedef uint32_t u_int32_t;
11563 #ifdef WE_DONT_NEED_QUADS
11564 typedef uint64_t u_int64_t;
11573 if { (eval echo configure:11574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11575 db_h_path="$path"; break
11577 echo "configure: failed program was:" >&5
11578 cat conftest.$ac_ext >&5
11582 if test -z "$db_h_path"
11583 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
11584 else echo "$ac_t""$db_h_path" 1>&6
11587 if test "$with_database_berkdb" != "no"; then
11588 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11589 echo "configure:11590: checking for Berkeley DB version" >&5
11590 cat > conftest.$ac_ext <<EOF
11591 #line 11592 "configure"
11592 #include "confdefs.h"
11593 #include <$db_h_path>
11594 #if DB_VERSION_MAJOR > 1
11599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11600 egrep "yes" >/dev/null 2>&1; then
11602 echo "$ac_t""2" 1>&6; dbfunc=db_open
11605 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11609 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11610 echo "configure:11611: checking for $dbfunc" >&5
11612 cat > conftest.$ac_ext <<EOF
11613 #line 11614 "configure"
11614 #include "confdefs.h"
11615 /* System header to define __stub macros and hopefully few prototypes,
11616 which can conflict with char $dbfunc(); below. */
11617 #include <assert.h>
11618 /* Override any gcc2 internal prototype to avoid an error. */
11619 /* We use char because int might match the return type of a gcc2
11620 builtin and then its argument prototype would still apply. */
11625 /* The GNU C library defines this for functions which it implements
11626 to always fail with ENOSYS. Some functions are actually named
11627 something starting with __ and the normal name is an alias. */
11628 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
11636 if { (eval echo configure:11637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11638 eval "ac_cv_func_$dbfunc=yes"
11640 echo "configure: failed program was:" >&5
11641 cat conftest.$ac_ext >&5
11643 eval "ac_cv_func_$dbfunc=no"
11647 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
11648 echo "$ac_t""yes" 1>&6
11649 with_database_berkdb=yes need_libdb=no
11651 echo "$ac_t""no" 1>&6
11654 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11655 echo "configure:11656: checking for $dbfunc in -ldb" >&5
11656 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11658 xe_check_libs=" -ldb "
11659 cat > conftest.$ac_ext <<EOF
11660 #line 11661 "configure"
11661 #include "confdefs.h"
11662 /* Override any gcc2 internal prototype to avoid an error. */
11663 /* We use char because int might match the return type of a gcc2
11664 builtin and then its argument prototype would still apply. */
11671 if { (eval echo configure:11672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11673 eval "ac_cv_lib_$ac_lib_var=yes"
11675 echo "configure: failed program was:" >&5
11676 cat conftest.$ac_ext >&5
11678 eval "ac_cv_lib_$ac_lib_var=no"
11683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11684 echo "$ac_t""yes" 1>&6
11685 with_database_berkdb=yes need_libdb=yes
11687 echo "$ac_t""no" 1>&6
11695 if test "$with_database_berkdb" = "yes"; then
11696 { test "$extra_verbose" = "yes" && cat << EOF
11697 Defining DB_H_PATH = "$db_h_path"
11699 cat >> confdefs.h <<EOF
11700 #define DB_H_PATH "$db_h_path"
11704 { test "$extra_verbose" = "yes" && cat << \EOF
11705 Defining HAVE_BERKELEY_DB
11707 cat >> confdefs.h <<\EOF
11708 #define HAVE_BERKELEY_DB 1
11712 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
11713 else with_database_berkdb=no
11717 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11718 != "no no no"; then
11719 { test "$extra_verbose" = "yes" && cat << \EOF
11720 Defining HAVE_DATABASE
11722 cat >> confdefs.h <<\EOF
11723 #define HAVE_DATABASE 1
11727 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
11728 echo " xemacs will be linked with \"database.o\""
11732 if test "$with_socks" = "yes"; then
11734 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11735 echo "configure:11736: checking for SOCKSinit in -lsocks" >&5
11736 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11738 xe_check_libs=" -lsocks "
11739 cat > conftest.$ac_ext <<EOF
11740 #line 11741 "configure"
11741 #include "confdefs.h"
11742 /* Override any gcc2 internal prototype to avoid an error. */
11743 /* We use char because int might match the return type of a gcc2
11744 builtin and then its argument prototype would still apply. */
11751 if { (eval echo configure:11752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11753 eval "ac_cv_lib_$ac_lib_var=yes"
11755 echo "configure: failed program was:" >&5
11756 cat conftest.$ac_ext >&5
11758 eval "ac_cv_lib_$ac_lib_var=no"
11763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11764 echo "$ac_t""yes" 1>&6
11765 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11766 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11767 { test "$extra_verbose" = "yes" && cat << EOF
11768 Defining $ac_tr_lib
11770 cat >> confdefs.h <<EOF
11771 #define $ac_tr_lib 1
11775 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
11778 echo "$ac_t""no" 1>&6
11782 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
11783 Defining HAVE_SOCKS
11785 cat >> confdefs.h <<\EOF
11786 #define HAVE_SOCKS 1
11792 if test "$usage_tracking" = "yes"; then
11793 { test "$extra_verbose" = "yes" && cat << \EOF
11794 Defining USAGE_TRACKING
11796 cat >> confdefs.h <<\EOF
11797 #define USAGE_TRACKING 1
11801 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11804 for ac_hdr in dlfcn.h
11806 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11807 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11808 echo "configure:11809: checking for $ac_hdr" >&5
11810 cat > conftest.$ac_ext <<EOF
11811 #line 11812 "configure"
11812 #include "confdefs.h"
11815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11816 { (eval echo configure:11817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11818 if test -z "$ac_err"; then
11820 eval "ac_cv_header_$ac_safe=yes"
11823 echo "configure: failed program was:" >&5
11824 cat conftest.$ac_ext >&5
11826 eval "ac_cv_header_$ac_safe=no"
11829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11830 echo "$ac_t""yes" 1>&6
11831 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11832 { test "$extra_verbose" = "yes" && cat << EOF
11833 Defining $ac_tr_hdr
11835 cat >> confdefs.h <<EOF
11836 #define $ac_tr_hdr 1
11840 { test "$extra_verbose" = "yes" && cat << \EOF
11841 Defining HAVE_DLFCN_H
11843 cat >> confdefs.h <<\EOF
11844 #define HAVE_DLFCN_H 1
11849 echo "$ac_t""no" 1>&6
11853 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11854 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11855 echo "configure:11856: checking for dlopen in -ldl" >&5
11856 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11858 xe_check_libs=" -ldl "
11859 cat > conftest.$ac_ext <<EOF
11860 #line 11861 "configure"
11861 #include "confdefs.h"
11862 /* Override any gcc2 internal prototype to avoid an error. */
11863 /* We use char because int might match the return type of a gcc2
11864 builtin and then its argument prototype would still apply. */
11871 if { (eval echo configure:11872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11873 eval "ac_cv_lib_$ac_lib_var=yes"
11875 echo "configure: failed program was:" >&5
11876 cat conftest.$ac_ext >&5
11878 eval "ac_cv_lib_$ac_lib_var=no"
11883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11884 echo "$ac_t""yes" 1>&6
11885 { test "$extra_verbose" = "yes" && cat << \EOF
11886 Defining HAVE_DLOPEN
11888 cat >> confdefs.h <<\EOF
11889 #define HAVE_DLOPEN 1
11892 DLL_LIB=dl; with_shlib=yes
11894 echo "$ac_t""no" 1>&6
11898 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11899 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11900 echo "configure:11901: checking for _dlopen in -lc" >&5
11901 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11903 xe_check_libs=" -lc "
11904 cat > conftest.$ac_ext <<EOF
11905 #line 11906 "configure"
11906 #include "confdefs.h"
11907 /* Override any gcc2 internal prototype to avoid an error. */
11908 /* We use char because int might match the return type of a gcc2
11909 builtin and then its argument prototype would still apply. */
11916 if { (eval echo configure:11917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11918 eval "ac_cv_lib_$ac_lib_var=yes"
11920 echo "configure: failed program was:" >&5
11921 cat conftest.$ac_ext >&5
11923 eval "ac_cv_lib_$ac_lib_var=no"
11928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11929 echo "$ac_t""yes" 1>&6
11930 { test "$extra_verbose" = "yes" && cat << \EOF
11931 Defining HAVE_DLOPEN
11933 cat >> confdefs.h <<\EOF
11934 #define HAVE_DLOPEN 1
11937 DLL_LIB=; with_shlib=yes
11939 echo "$ac_t""no" 1>&6
11943 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11944 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11945 echo "configure:11946: checking for dlopen in -lc" >&5
11946 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11948 xe_check_libs=" -lc "
11949 cat > conftest.$ac_ext <<EOF
11950 #line 11951 "configure"
11951 #include "confdefs.h"
11952 /* Override any gcc2 internal prototype to avoid an error. */
11953 /* We use char because int might match the return type of a gcc2
11954 builtin and then its argument prototype would still apply. */
11961 if { (eval echo configure:11962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11963 eval "ac_cv_lib_$ac_lib_var=yes"
11965 echo "configure: failed program was:" >&5
11966 cat conftest.$ac_ext >&5
11968 eval "ac_cv_lib_$ac_lib_var=no"
11973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11974 echo "$ac_t""yes" 1>&6
11975 { test "$extra_verbose" = "yes" && cat << \EOF
11976 Defining HAVE_DLOPEN
11978 cat >> confdefs.h <<\EOF
11979 #define HAVE_DLOPEN 1
11982 DLL_LIB=; with_shlib=yes
11984 echo "$ac_t""no" 1>&6
11988 test -z "$with_shlib" && {
11989 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11990 echo "configure:11991: checking for shl_load in -ldld" >&5
11991 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11993 xe_check_libs=" -ldld "
11994 cat > conftest.$ac_ext <<EOF
11995 #line 11996 "configure"
11996 #include "confdefs.h"
11997 /* Override any gcc2 internal prototype to avoid an error. */
11998 /* We use char because int might match the return type of a gcc2
11999 builtin and then its argument prototype would still apply. */
12006 if { (eval echo configure:12007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12008 eval "ac_cv_lib_$ac_lib_var=yes"
12010 echo "configure: failed program was:" >&5
12011 cat conftest.$ac_ext >&5
12013 eval "ac_cv_lib_$ac_lib_var=no"
12018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12019 echo "$ac_t""yes" 1>&6
12020 { test "$extra_verbose" = "yes" && cat << \EOF
12021 Defining HAVE_SHL_LOAD
12023 cat >> confdefs.h <<\EOF
12024 #define HAVE_SHL_LOAD 1
12027 DLL_LIB=dld; with_shlib=yes
12029 echo "$ac_t""no" 1>&6
12033 test -z "$with_shlib" && {
12034 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
12035 echo "configure:12036: checking for dld_init in -ldld" >&5
12036 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
12038 xe_check_libs=" -ldld "
12039 cat > conftest.$ac_ext <<EOF
12040 #line 12041 "configure"
12041 #include "confdefs.h"
12042 /* Override any gcc2 internal prototype to avoid an error. */
12043 /* We use char because int might match the return type of a gcc2
12044 builtin and then its argument prototype would still apply. */
12051 if { (eval echo configure:12052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12053 eval "ac_cv_lib_$ac_lib_var=yes"
12055 echo "configure: failed program was:" >&5
12056 cat conftest.$ac_ext >&5
12058 eval "ac_cv_lib_$ac_lib_var=no"
12063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12064 echo "$ac_t""yes" 1>&6
12065 { test "$extra_verbose" = "yes" && cat << \EOF
12066 Defining HAVE_DLD_INIT
12068 cat >> confdefs.h <<\EOF
12069 #define HAVE_DLD_INIT 1
12072 DLL_LIB=dld; with_shlib=yes
12074 echo "$ac_t""no" 1>&6
12078 if test "$with_shlib" = "yes"; then
12085 ld_dynamic_link_flags=
12087 xealias=$internal_configuration
12089 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
12090 echo "configure:12091: checking how to build dynamic libraries for ${xehost}" >&5
12091 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
12094 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
12097 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
12098 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
12099 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
12101 case "$xehost_os" in
12103 # AIX sometimes has problems with the GCC collect2 program. For some
12104 # reason, if we set the COLLECT_NAMES environment variable, the problems
12105 # vanish in a puff of smoke.
12106 if test "${COLLECT_NAMES+set}" != set; then
12108 export COLLECT_NAMES
12113 # Now see if the compiler is really GCC.
12114 if test "$GCC" = "yes"; then
12117 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
12118 echo "configure:12119: checking checking whether we are using GNU C" >&5
12119 cat > conftest.$ac_ext <<EOF
12120 #line 12121 "configure"
12121 #include "confdefs.h"
12128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12129 egrep "yes" >/dev/null 2>&1; then
12138 echo "$ac_t""${XEGCC}" 1>&6
12141 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12142 echo "configure:12143: checking how to produce PIC code" >&5
12145 can_build_shared=yes
12146 if test "$XEGCC" = yes; then
12149 case "$xehost_os" in
12150 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
12151 # PIC is the default for these OSes.
12155 # We can build DLLs from non-PIC.
12158 # FIXME: we need at least 68020 code to build shared libraries, but
12159 # adding the `-m68020' flag to GCC prevents building anything better,
12161 dll_cflags='-m68020 -resident32 -malways-restore-a4'
12168 # PORTME Check for PIC flags for the system compiler.
12169 case "$xehost_os" in
12171 # Is there a better link_static_flag that works with the bundled CC?
12178 # PIC (with -KPIC) is the default.
12182 # We can build DLLs from non-PIC.
12186 # All OSF/1 code is PIC.
12191 dll_cflags='-belf -Kpic'
12225 can_build_shared=no
12230 if test -n "$dll_cflags"; then
12231 echo "$ac_t""${dll_cflags}" 1>&6
12233 # Check to make sure the dll_cflags actually works.
12234 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12235 echo "configure:12236: checking if PIC flag ${dll_cflags} really works" >&5
12236 save_CFLAGS="$CFLAGS"
12237 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12238 cat > conftest.$ac_ext <<EOF
12239 #line 12240 "configure"
12240 #include "confdefs.h"
12246 if { (eval echo configure:12247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12249 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12250 # reports no error. So, we need to grep stderr for (Bundled).
12251 if grep '(Bundled)' config.log >/dev/null; then
12252 echo "$ac_t""no" 1>&6
12253 can_build_shared=no
12256 echo "$ac_t""yes" 1>&6
12259 echo "configure: failed program was:" >&5
12260 cat conftest.$ac_ext >&5
12262 echo "$ac_t""no" 1>&6
12263 can_build_shared=no
12267 CFLAGS="$save_CFLAGS"
12269 echo "$ac_t""none" 1>&6
12272 if test "$can_build_shared" = "yes"; then
12276 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12277 echo "configure:12278: checking if C compiler can produce shared libraries" >&5
12278 if test "$XEGCC" = yes; then
12281 else # Not using GCC
12282 case "$xehost_os" in
12284 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
12285 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
12288 freebsd2* | netbsd* | openbsd*)
12290 xcldf="${wl}-Bshareable"
12299 xcldf="${wl}-b ${wl}+s"
12302 irix5* | irix6* | osf3* | osf4*)
12303 xcldf="${wl}-shared"
12307 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
12313 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
12314 xldf="-assert pure-text -Bstatic"
12317 fi # End if if we are using gcc
12319 if test -n "$xcldf"; then
12320 save_LDFLAGS=$LDFLAGS
12322 save_xe_libs=$xe_libs
12323 LDFLAGS="$xcldf $LDFLAGS"
12326 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12327 cat > conftest.$ac_ext <<EOF
12328 #line 12329 "configure"
12329 #include "confdefs.h"
12335 if { (eval echo configure:12336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12339 echo "configure: failed program was:" >&5
12340 cat conftest.$ac_ext >&5
12345 LDFLAGS=$save_LDFLAGS
12347 xe_libs=$save_xe_libs
12348 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12352 echo "$ac_t""${cc_produces_so}" 1>&6
12355 if test -z "$LTLD"; then
12357 if test "$XEGCC" = yes; then
12358 # Check if gcc -print-prog-name=ld gives a path.
12359 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12360 echo "configure:12361: checking for ld used by GCC" >&5
12361 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12363 # Accept absolute paths.
12365 if test -z "$LTLD"; then
12367 *gcc-lib*) LTLD="$CC"
12375 # If it fails, then pretend we aren't using GCC.
12379 # If it is relative, then search for the first ld in PATH.
12380 with_gnu_ld=unknown
12384 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12385 echo "configure:12386: checking for GNU ld" >&5
12388 if test -z "$LTLD"; then
12389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12390 for ac_dir in $PATH; do
12391 test -z "$ac_dir" && ac_dir=.
12392 if test -f "$ac_dir/$ac_prog"; then
12393 LTLD="$ac_dir/$ac_prog"
12394 # Check to see if the program is GNU ld. I'd rather use --version,
12395 # but apparently some GNU ld's only accept -v.
12396 # Break only if it was the GNU/non-GNU ld that we prefer.
12397 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12407 if test -n "$LTLD"; then
12408 echo "$ac_t""${LTLD}" 1>&6
12410 echo "$ac_t""no" 1>&6
12413 if test -z "$LTLD" -a "$cc_produces_so" = no; then
12414 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
12419 ld_dynamic_link_flags=
12421 # Check to see if it really is or isn't GNU ld.
12422 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12423 echo "configure:12424: checking if the linker is GNU ld" >&5
12424 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12425 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12430 echo "$ac_t""${xe_gnu_ld}" 1>&6
12432 case "$xehost_os" in
12433 amigaos* | sunos4*)
12434 # On these operating systems, we should treat GNU ld like the system ld.
12435 gnu_ld_acts_native=yes
12438 gnu_ld_acts_native=no
12442 if test "$cc_produces_so" = "yes"; then
12445 can_build_shared=yes
12447 # OK - only NOW do we futz about with ld.
12448 # See if the linker supports building shared libraries.
12449 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12450 echo "configure:12451: checking whether the linker supports shared libraries" >&5
12452 dll_ldflags=$LDFLAGS
12454 can_build_shared=yes
12455 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12456 # See if GNU ld supports shared libraries.
12457 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12459 dll_ldflags="-shared"
12465 # PORTME fill in a description of your system's linker (not GNU ld)
12466 case "$xehost_os" in
12476 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12477 # support. Future versions do this automatically, but an explicit c++rt0.o
12478 # doesn't break anything, and helps significantly (at the cost of a little
12483 dll_post="/usr/lib/c++rt0.o"
12486 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
12489 dll_ldflags="-Bshareable"
12492 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
12494 dll_ldflags="-shared"
12508 # Tested with NetBSD 1.2 ld
12523 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
12524 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12527 *gcc*) dll_ldflags="-shared"
12530 *) dll_ldflags="-G"
12536 if test "$XEGCC" = yes; then
12556 can_build_shared=no
12560 echo "$ac_t""${ld_shlibs}" 1>&6
12561 if test "$ld_shlibs" = "no"; then
12562 can_build_shared=no
12564 fi # End of if cc_produces_so = no
12567 if test "$xe_gnu_ld" = yes; then
12568 if test "$ld_shlibs" = yes; then
12569 ld_dynamic_link_flags="${wl}-export-dynamic"
12573 if test -z "$ld_dynamic_link_flags"; then
12574 case "$xehost_os" in
12576 ld_dynamic_link_flags=
12580 ld_dynamic_link_flags=
12584 ld_dynamic_link_flags=
12588 ld_dynamic_link_flags=
12592 ld_dynamic_link_flags=
12596 ld_dynamic_link_flags="${wl}-E"
12600 ld_dynamic_link_flags=
12604 ld_dynamic_link_flags=
12608 ld_dynamic_link_flags=
12612 ld_dynamic_link_flags=
12615 solaris2* | solaris7*)
12616 ld_dynamic_link_flags="${wl}-Bdynamic"
12619 sco3.2v5* | unixware* | sysv5* | sysv4*)
12620 ld_dynamic_link_flags="${wl}-Bexport"
12624 ld_dynamic_link_flags=
12628 ld_dynamic_link_flags=
12632 ld_dynamic_link_flags=
12636 fi # End of if -z ld_dynamic_link_flags
12637 fi # End of if test "$can_build_shared" = "yes"
12646 if test "$can_build_shared" = "yes"; then
12647 { test "$extra_verbose" = "yes" && cat << \EOF
12648 Defining HAVE_SHLIB
12650 cat >> confdefs.h <<\EOF
12651 #define HAVE_SHLIB 1
12655 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then
12656 echo " xemacs will be linked with \"sysdll.o\""
12658 extra_objs="$extra_objs emodules.o" && if test "$extra_verbose" = "yes"; then
12659 echo " xemacs will be linked with \"emodules.o\""
12661 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12662 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
12663 for ac_func in dlerror _dlerror
12665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12666 echo "configure:12667: checking for $ac_func" >&5
12668 cat > conftest.$ac_ext <<EOF
12669 #line 12670 "configure"
12670 #include "confdefs.h"
12671 /* System header to define __stub macros and hopefully few prototypes,
12672 which can conflict with char $ac_func(); below. */
12673 #include <assert.h>
12674 /* Override any gcc2 internal prototype to avoid an error. */
12675 /* We use char because int might match the return type of a gcc2
12676 builtin and then its argument prototype would still apply. */
12681 /* The GNU C library defines this for functions which it implements
12682 to always fail with ENOSYS. Some functions are actually named
12683 something starting with __ and the normal name is an alias. */
12684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12692 if { (eval echo configure:12693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12694 eval "ac_cv_func_$ac_func=yes"
12696 echo "configure: failed program was:" >&5
12697 cat conftest.$ac_ext >&5
12699 eval "ac_cv_func_$ac_func=no"
12703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12704 echo "$ac_t""yes" 1>&6
12705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12706 { test "$extra_verbose" = "yes" && cat << EOF
12707 Defining $ac_tr_func
12709 cat >> confdefs.h <<EOF
12710 #define $ac_tr_func 1
12715 echo "$ac_t""no" 1>&6
12720 echo "configure: warning: disabling shared library support" 1>&2
12725 cat > conftest.$ac_ext <<EOF
12726 #line 12727 "configure"
12727 #include "confdefs.h"
12728 int main(int c,char *v[]){return 0;}
12730 if { (eval echo configure:12731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12735 echo "configure: failed program was:" >&5
12736 cat conftest.$ac_ext >&5
12740 echo "*** PANIC *** The C compiler can no longer build working executables."
12741 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
12742 echo "*** PANIC *** The most likely reason for this problem is that configure"
12743 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
12744 echo "*** PANIC *** found at run time."
12745 echo "*** PANIC ***"
12746 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
12747 echo "*** PANIC *** On other systems, try telling configure where to find the"
12748 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
12749 echo "*** PANIC ***"
12750 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
12751 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
12752 echo "*** PANIC *** on your system. Don't do that."
12757 if test "$win32_processes" = "yes"; then
12758 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
12759 echo " xemacs will be linked with \"process-nt.o\""
12762 { test "$extra_verbose" = "yes" && cat << \EOF
12763 Defining HAVE_UNIX_PROCESSES
12765 cat >> confdefs.h <<\EOF
12766 #define HAVE_UNIX_PROCESSES 1
12770 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
12771 echo " xemacs will be linked with \"process-unix.o\""
12778 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12783 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12788 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
12789 c_switch_general="$T"
12793 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12794 c_switch_window_system="$T"
12798 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12803 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
12804 ld_switch_general="$T"
12808 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12809 ld_switch_window_system="$T"
12813 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12818 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12819 ld_libs_general="$T"
12823 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
12824 ld_libs_window_system="$T"
12828 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12833 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
12834 internal_makefile_list="Makefile.in"
12835 SUBDIR_MAKEFILES=''
12836 test -d lock || mkdir lock
12837 for dir in $MAKE_SUBDIR; do
12838 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
12839 test -d "$d" || mkdir "$d"; cd "$d"
12841 * ) test -d "$dir" || mkdir "$dir" ;;
12845 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12846 SUBDIR_MAKEFILES="$T"
12850 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12851 internal_makefile_list="$T"
12858 for dir in src/s src/m; do
12859 if test ! -d "$dir" ; then
12860 echo Making symbolic link to "$srcdir/$dir"
12861 ${LN_S} "$srcdir/$dir" "$dir"
12865 if test "$extra_verbose" = "yes"; then
12867 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
12871 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
12872 echo "creating src/gdbinit"; echo ""
12873 echo "source $srcdir/src/gdbinit" > src/gdbinit
12876 if test "$__SUNPRO_C" = "yes"; then
12877 echo "creating .sbinit"; echo ""
12878 ( echo "# For use with Sun WorkShop's Source browser."
12879 echo "# See sbquery(1) and sbinit(4) for more information"
12880 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
12905 *\$* ) eval "PREFIX=$PREFIX" ;;
12913 EXEC_PREFIX=$exec_prefix
12915 case "$EXEC_PREFIX" in
12916 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
12927 *\$* ) eval "INFODIR=$INFODIR" ;;
12937 case "$INFOPATH" in
12938 *\$* ) eval "INFOPATH=$INFOPATH" ;;
12946 PACKAGE_PATH=$package_path
12948 case "$PACKAGE_PATH" in
12949 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
12960 *\$* ) eval "LISPDIR=$LISPDIR" ;;
12968 MODULEDIR=$moduledir
12970 case "$MODULEDIR" in
12971 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
12979 SITELISPDIR=$sitelispdir
12981 case "$SITELISPDIR" in
12982 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
12990 SITEMODULEDIR=$sitemoduledir
12992 case "$SITEMODULEDIR" in
12993 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
13004 *\$* ) eval "ETCDIR=$ETCDIR" ;;
13015 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
13026 *\$* ) eval "DOCDIR=$DOCDIR" ;;
13034 ARCHLIBDIR=$archlibdir
13036 case "$ARCHLIBDIR" in
13037 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
13061 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
13069 : ${XEMACS_CC:=$CC}
13072 if test "$with_prefix" = "yes"; then
13073 { test "$extra_verbose" = "yes" && cat << \EOF
13074 Defining PREFIX_USER_DEFINED
13076 cat >> confdefs.h <<\EOF
13077 #define PREFIX_USER_DEFINED 1
13083 if test "$with_site_lisp" = "no"; then
13084 { test "$extra_verbose" = "yes" && cat << \EOF
13085 Defining INHIBIT_SITE_LISP
13087 cat >> confdefs.h <<\EOF
13088 #define INHIBIT_SITE_LISP 1
13093 if test "$with_site_modules" = "no"; then
13094 { test "$extra_verbose" = "yes" && cat << \EOF
13095 Defining INHIBIT_SITE_MODULES
13097 cat >> confdefs.h <<\EOF
13098 #define INHIBIT_SITE_MODULES 1
13106 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13107 ac_configure_args="$T"
13109 { test "$extra_verbose" = "yes" && cat << EOF
13110 Defining EMACS_CONFIGURATION = "$canonical"
13112 cat >> confdefs.h <<EOF
13113 #define EMACS_CONFIGURATION "$canonical"
13117 { test "$extra_verbose" = "yes" && cat << EOF
13118 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
13120 cat >> confdefs.h <<EOF
13121 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
13125 { test "$extra_verbose" = "yes" && cat << EOF
13126 Defining config_machfile = "$machfile"
13128 cat >> confdefs.h <<EOF
13129 #define config_machfile "$machfile"
13133 { test "$extra_verbose" = "yes" && cat << EOF
13134 Defining config_opsysfile = "$opsysfile"
13136 cat >> confdefs.h <<EOF
13137 #define config_opsysfile "$opsysfile"
13144 { test "$extra_verbose" = "yes" && cat << EOF
13145 Defining LD_SWITCH_X_SITE = $null_string
13147 cat >> confdefs.h <<EOF
13148 #define LD_SWITCH_X_SITE $null_string
13152 { test "$extra_verbose" = "yes" && cat << EOF
13153 Defining LD_SWITCH_X_SITE_AUX = $null_string
13155 cat >> confdefs.h <<EOF
13156 #define LD_SWITCH_X_SITE_AUX $null_string
13160 { test "$extra_verbose" = "yes" && cat << EOF
13161 Defining C_SWITCH_X_SITE = $null_string
13163 cat >> confdefs.h <<EOF
13164 #define C_SWITCH_X_SITE $null_string
13168 { test "$extra_verbose" = "yes" && cat << EOF
13169 Defining LD_SWITCH_SITE = $null_string
13171 cat >> confdefs.h <<EOF
13172 #define LD_SWITCH_SITE $null_string
13176 { test "$extra_verbose" = "yes" && cat << EOF
13177 Defining C_SWITCH_SITE = $null_string
13179 cat >> confdefs.h <<EOF
13180 #define C_SWITCH_SITE $null_string
13186 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13187 Defining GNU_MALLOC
13189 cat >> confdefs.h <<\EOF
13190 #define GNU_MALLOC 1
13194 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13195 Defining USE_SYSTEM_MALLOC
13197 cat >> confdefs.h <<\EOF
13198 #define USE_SYSTEM_MALLOC 1
13202 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13203 Defining USE_DEBUG_MALLOC
13205 cat >> confdefs.h <<\EOF
13206 #define USE_DEBUG_MALLOC 1
13210 { test "$extra_verbose" = "yes" && cat << \EOF
13211 Defining USE_SYSTEM_MALLOC
13213 cat >> confdefs.h <<\EOF
13214 #define USE_SYSTEM_MALLOC 1
13219 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13222 cat >> confdefs.h <<\EOF
13227 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13230 cat >> confdefs.h <<\EOF
13235 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13236 Defining EXTERNAL_WIDGET
13238 cat >> confdefs.h <<\EOF
13239 #define EXTERNAL_WIDGET 1
13243 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13244 Defining NO_DOC_FILE
13246 cat >> confdefs.h <<\EOF
13247 #define NO_DOC_FILE 1
13251 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13254 cat >> confdefs.h <<\EOF
13259 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13262 cat >> confdefs.h <<\EOF
13267 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13268 Defining MAIL_USE_POP
13270 cat >> confdefs.h <<\EOF
13271 #define MAIL_USE_POP 1
13275 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13278 cat >> confdefs.h <<\EOF
13283 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13286 cat >> confdefs.h <<\EOF
13291 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13292 Defining USE_UNION_TYPE
13294 cat >> confdefs.h <<\EOF
13295 #define USE_UNION_TYPE 1
13302 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
13304 echo "uname -a: `uname -a`"
13307 echo "$0 $quoted_arguments"
13310 if test ! -z ${emacs_beta_version} ; then
13311 if test -z "${emacs_is_beta}" ; then
13312 xemacs_betaname=".${emacs_beta_version}"
13314 xemacs_betaname="-b${emacs_beta_version}"
13323 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13325 Where should the build process find the source code? $srcdir
13326 What installation prefix should install use? $prefix
13327 What operating system and machine description files should XEmacs use?
13328 \`$opsysfile' and \`$machfile'
13329 What compiler should XEmacs be built with? $CC $CFLAGS
13330 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13331 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13332 What window system should XEmacs use? ${window_system}"
13333 if test "$with_x11" = "yes"; then
13334 echo " Where do we find X Windows header files? $x_includes"
13335 echo " Where do we find X Windows libraries? $x_libraries"
13337 if test -n "$site_includes"; then
13338 echo " Additional header files: $site_includes"
13340 if test -n "$site_libraries"; then
13341 echo " Additional libraries: $site_libraries"
13343 if test -n "$site_prefixes"; then
13344 echo " Additional prefixes: $site_prefixes"
13346 if test -n "$runpath"; then
13347 echo " Runtime library search path: $runpath"
13349 test "$with_dnet" = yes && echo " Compiling in support for DNET."
13350 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
13351 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
13352 if test "$with_xmu" != yes -a "$with_x11" = yes; then
13353 echo " No Xmu; substituting equivalent routines."
13356 if test "$with_xpm" = yes; then
13357 echo " Compiling in support for XPM images."
13358 elif test "$with_x11" = yes; then
13359 echo " --------------------------------------------------------------------"
13360 echo " WARNING: Compiling without XPM support."
13361 if test "$xpm_problem" != ""; then
13362 echo " Reason: $xpm_problem"
13364 echo " WARNING: You should strongly consider installing XPM."
13365 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
13366 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13367 echo " --------------------------------------------------------------------"
13369 if test "$with_png" = yes; then
13370 echo " Compiling in support for PNG image handling."
13371 elif test "$window_system" != "none"; then
13372 echo " --------------------------------------------------------------------"
13373 echo " WARNING: Compiling without PNG image support."
13374 if test "$png_problem" != ""; then
13375 echo " Reason: $png_problem"
13377 echo " WARNING: You should strongly consider installing the PNG libraries."
13378 echo " WARNING: Otherwise certain images and glyphs may not display."
13379 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13380 echo " --------------------------------------------------------------------"
13382 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13383 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13384 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13385 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13386 case "$with_sound" in
13387 nas ) echo " Compiling in network sound (NAS) support." ;;
13388 native ) echo " Compiling in native sound support." ;;
13389 both ) echo " Compiling in both network and native sound support." ;;
13391 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13393 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13394 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13395 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
13397 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
13399 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
13400 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
13402 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
13403 test "$with_file_coding" = yes && echo " Compiling in File coding support."
13404 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
13405 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
13406 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
13407 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
13408 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
13409 if test "$with_wnn" = yes; then
13410 echo " Compiling in support for the WNN input method on Mule."
13411 test "$with_wnn6" = yes && echo " Using WNN version 6."
13413 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
13415 test "$with_cde" = yes && echo " Compiling in support for CDE."
13416 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
13417 test "$with_offix" = yes && echo " Compiling in support for OffiX."
13418 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
13419 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
13420 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
13421 case "$with_menubars" in
13422 lucid ) echo " Using Lucid menubars." ;;
13423 motif ) echo " Using Motif menubars."
13424 echo " *WARNING* The Motif menubar implementation is currently buggy."
13425 echo " We recommend using the Lucid menubar instead."
13426 echo " Re-run configure with --with-menubars='lucid'." ;;
13428 case "$with_scrollbars" in
13429 lucid ) echo " Using Lucid scrollbars." ;;
13430 motif ) echo " Using Motif scrollbars." ;;
13431 athena ) echo " Using Athena scrollbars." ;;
13432 athena3d ) echo " Using Athena-3d scrollbars." ;;
13434 case "$with_dialogs" in
13436 echo " Using Motif dialog boxes."
13437 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
13438 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
13439 echo " We recommend using the Athena dialog boxes instead."
13440 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
13441 echo " Read the PROBLEMS file for more information."
13444 athena ) echo " Using Athena dialog boxes." ;;
13445 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13447 test "$with_shlib" = "yes" && echo " Compiling in DLL support."
13448 test "$with_clash_detection" = yes && \
13449 echo " Clash detection will use \"$lockdir\" for locking files."
13450 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13451 test "$with_pop" = yes && echo " Using POP for mail access."
13452 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13453 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
13454 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
13455 test "$debug" = yes && echo " Compiling in extra code for debugging."
13456 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13457 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
13458 != "no no no no no"; then
13459 echo " WARNING: ---------------------------------------------------------"
13460 echo " WARNING: Compiling in support for runtime error checking."
13461 echo " WARNING: XEmacs will run noticeably more slowly as a result."
13462 echo " WARNING: Error checking is on by default for XEmacs beta releases."
13463 echo " WARNING: ---------------------------------------------------------"
13466 ) | tee -a Installation
13470 # Remove any trailing slashes in these variables.
13471 test -n "$prefix" &&
13472 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13473 test -n "$exec_prefix" &&
13474 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13477 for file in $internal_makefile_list; do
13478 test "$file" = src/Makefile.in && \
13479 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13480 ac_output_files="${ac_output_files+$ac_output_files }$file"
13482 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13483 if test "$with_shlib" = "yes"; then
13484 ac_output_files="$ac_output_files lib-src/ellcc.h"
13489 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13491 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13492 # Let make expand exec_prefix.
13493 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13495 # Any assignment to VPATH causes Sun make to only execute
13496 # the first set of double-colon rules, so remove it if not needed.
13497 # If there is a colon in the path, we need to keep it.
13498 if test "x$srcdir" = x.; then
13499 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13502 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13504 DEFS=-DHAVE_CONFIG_H
13506 # Without the "./", some shells look in PATH for config.status.
13507 : ${CONFIG_STATUS=./config.status}
13509 echo creating $CONFIG_STATUS
13510 rm -f $CONFIG_STATUS
13511 cat > $CONFIG_STATUS <<EOF
13513 # Generated automatically by configure.
13514 # Run this file to recreate the current configuration.
13515 # This directory was configured as follows,
13516 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13518 # $0 $ac_configure_args
13520 # Compiler output produced by configure, useful for debugging
13521 # configure, is in ./config.log if it exists.
13523 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13526 case "\$ac_option" in
13527 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13528 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13529 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13530 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13531 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13533 -help | --help | --hel | --he | --h)
13534 echo "\$ac_cs_usage"; exit 0 ;;
13535 *) echo "\$ac_cs_usage"; exit 1 ;;
13539 ac_given_srcdir=$srcdir
13540 ac_given_INSTALL="$INSTALL"
13542 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13544 cat >> $CONFIG_STATUS <<EOF
13546 # Protect against being on the right side of a sed subst in config.status.
13547 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13548 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13552 s%@CFLAGS@%$CFLAGS%g
13553 s%@CPPFLAGS@%$CPPFLAGS%g
13554 s%@CXXFLAGS@%$CXXFLAGS%g
13555 s%@FFLAGS@%$FFLAGS%g
13557 s%@LDFLAGS@%$LDFLAGS%g
13559 s%@exec_prefix@%$exec_prefix%g
13560 s%@prefix@%$prefix%g
13561 s%@program_transform_name@%$program_transform_name%g
13562 s%@bindir@%$bindir%g
13563 s%@sbindir@%$sbindir%g
13564 s%@libexecdir@%$libexecdir%g
13565 s%@datadir@%$datadir%g
13566 s%@sysconfdir@%$sysconfdir%g
13567 s%@sharedstatedir@%$sharedstatedir%g
13568 s%@localstatedir@%$localstatedir%g
13569 s%@libdir@%$libdir%g
13570 s%@includedir@%$includedir%g
13571 s%@oldincludedir@%$oldincludedir%g
13572 s%@infodir@%$infodir%g
13573 s%@mandir@%$mandir%g
13575 s%@blddir@%$blddir%g
13578 s%@start_flags@%$start_flags%g
13579 s%@ld_switch_shared@%$ld_switch_shared%g
13580 s%@start_files@%$start_files%g
13582 s%@lib_gcc@%$lib_gcc%g
13583 s%@RANLIB@%$RANLIB%g
13584 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13585 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13586 s%@INSTALL_DATA@%$INSTALL_DATA%g
13588 s%@SET_MAKE@%$SET_MAKE%g
13589 s%@X_CFLAGS@%$X_CFLAGS%g
13590 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13591 s%@X_LIBS@%$X_LIBS%g
13592 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13593 s%@install_pp@%$install_pp%g
13594 s%@libs_xauth@%$libs_xauth%g
13595 s%@dnd_objs@%$dnd_objs%g
13596 s%@lwlib_objs@%$lwlib_objs%g
13597 s%@ALLOCA@%$ALLOCA%g
13598 s%@dll_ld@%$dll_ld%g
13599 s%@dll_cflags@%$dll_cflags%g
13600 s%@dll_ldflags@%$dll_ldflags%g
13601 s%@dll_post@%$dll_post%g
13602 s%@dll_ldo@%$dll_ldo%g
13603 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
13604 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
13605 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
13606 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
13607 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
13608 s%@PROGNAME@%$PROGNAME%g
13609 s%@version@%$version%g
13610 s%@configuration@%$configuration%g
13611 s%@canonical@%$canonical%g
13612 s%@srcdir@%$srcdir%g
13613 s%@pkgdir@%$pkgdir%g
13614 s%@statedir@%$statedir%g
13615 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
13616 s%@PREFIX@%$PREFIX%g
13617 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
13618 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
13619 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
13620 s%@INFODIR@%$INFODIR%g
13621 s%@infopath@%$infopath%g
13622 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
13623 s%@INFOPATH@%$INFOPATH%g
13624 s%@package_path@%$package_path%g
13625 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
13626 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
13627 s%@lispdir@%$lispdir%g
13628 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
13629 s%@LISPDIR@%$LISPDIR%g
13630 s%@moduledir@%$moduledir%g
13631 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
13632 s%@MODULEDIR@%$MODULEDIR%g
13633 s%@sitelispdir@%$sitelispdir%g
13634 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
13635 s%@SITELISPDIR@%$SITELISPDIR%g
13636 s%@sitemoduledir@%$sitemoduledir%g
13637 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
13638 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
13639 s%@etcdir@%$etcdir%g
13640 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
13641 s%@ETCDIR@%$ETCDIR%g
13642 s%@lockdir@%$lockdir%g
13643 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
13644 s%@LOCKDIR@%$LOCKDIR%g
13645 s%@docdir@%$docdir%g
13646 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
13647 s%@DOCDIR@%$DOCDIR%g
13648 s%@archlibdir@%$archlibdir%g
13649 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
13650 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
13651 s%@bitmapdir@%$bitmapdir%g
13652 s%@extra_objs@%$extra_objs%g
13653 s%@machfile@%$machfile%g
13654 s%@opsysfile@%$opsysfile%g
13655 s%@c_switch_general@%$c_switch_general%g
13656 s%@c_switch_window_system@%$c_switch_window_system%g
13657 s%@c_switch_all@%$c_switch_all%g
13658 s%@ld_switch_general@%$ld_switch_general%g
13659 s%@ld_switch_window_system@%$ld_switch_window_system%g
13660 s%@ld_switch_all@%$ld_switch_all%g
13661 s%@ld_libs_general@%$ld_libs_general%g
13662 s%@ld_libs_window_system@%$ld_libs_window_system%g
13663 s%@ld_libs_all@%$ld_libs_all%g
13664 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
13665 s%@native_sound_lib@%$native_sound_lib%g
13666 s%@sound_cflags@%$sound_cflags%g
13667 s%@dynodump_arch@%$dynodump_arch%g
13668 s%@XEMACS_CC@%$XEMACS_CC%g
13669 s%@internal_makefile_list@%$internal_makefile_list%g
13674 cat >> $CONFIG_STATUS <<\EOF
13676 # Split the substitutions into bite-sized pieces for seds with
13677 # small command number limits, like on Digital OSF/1 and HP-UX.
13678 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13679 ac_file=1 # Number of current file.
13680 ac_beg=1 # First line for current file.
13681 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13684 while $ac_more_lines; do
13685 if test $ac_beg -gt 1; then
13686 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13688 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13690 if test ! -s conftest.s$ac_file; then
13691 ac_more_lines=false
13692 rm -f conftest.s$ac_file
13694 if test -z "$ac_sed_cmds"; then
13695 ac_sed_cmds="sed -f conftest.s$ac_file"
13697 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13699 ac_file=`expr $ac_file + 1`
13701 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13704 if test -z "$ac_sed_cmds"; then
13709 cat >> $CONFIG_STATUS <<EOF
13711 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
13713 cat >> $CONFIG_STATUS <<\EOF
13714 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13715 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13717 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13718 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13719 *) ac_file_in="${ac_file}.in" ;;
13722 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13724 # Remove last slash and all that follows it. Not all systems have dirname.
13725 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13726 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13727 # The file is in a subdirectory.
13728 test ! -d "$ac_dir" && mkdir "$ac_dir"
13729 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13730 # A "../" for each directory in $ac_dir_suffix.
13731 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13733 ac_dir_suffix= ac_dots=
13736 case "$ac_given_srcdir" in
13738 if test -z "$ac_dots"; then top_srcdir=.
13739 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13740 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13741 *) # Relative path.
13742 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13743 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13746 case "$ac_given_INSTALL" in
13747 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13748 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13751 echo creating "$ac_file"
13753 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13755 *Makefile*) ac_comsub="1i\\
13756 # $configure_input" ;;
13760 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13762 s%@configure_input@%$configure_input%g
13763 s%@srcdir@%$srcdir%g
13764 s%@top_srcdir@%$top_srcdir%g
13765 s%@INSTALL@%$INSTALL%g
13766 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13770 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13771 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13773 # ac_d sets the value in "#define NAME VALUE" lines.
13774 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13775 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13778 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13779 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13780 ac_uB='\([ ]\)%\1#\2define\3'
13783 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13784 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13785 ac_eB='$%\1#\2define\3'
13789 if test "${CONFIG_HEADERS+set}" != set; then
13791 cat >> $CONFIG_STATUS <<EOF
13792 CONFIG_HEADERS="src/config.h lwlib/config.h"
13794 cat >> $CONFIG_STATUS <<\EOF
13796 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13797 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13799 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13800 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13801 *) ac_file_in="${ac_file}.in" ;;
13804 echo creating $ac_file
13806 rm -f conftest.frag conftest.in conftest.out
13807 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13808 cat $ac_file_inputs > conftest.in
13812 # Transform confdefs.h into a sed script conftest.vals that substitutes
13813 # the proper values into config.h.in to produce config.h. And first:
13814 # Protect against being on the right side of a sed subst in config.status.
13815 # Protect against being in an unquoted here document in config.status.
13816 rm -f conftest.vals
13817 cat > conftest.hdr <<\EOF
13820 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13824 sed -n -f conftest.hdr confdefs.h > conftest.vals
13827 # This sed command replaces #undef with comments. This is necessary, for
13828 # example, in the case of _POSIX_SOURCE, which is predefined and required
13829 # on some systems where configure will not decide to define it.
13830 cat >> conftest.vals <<\EOF
13831 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13834 # Break up conftest.vals because some shells have a limit on
13835 # the size of here documents, and old seds have small limits too.
13837 rm -f conftest.tail
13840 ac_lines=`grep -c . conftest.vals`
13841 # grep -c gives empty output for an empty file on some AIX systems.
13842 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13843 # Write a limited-size here document to conftest.frag.
13844 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13845 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13847 sed -f conftest.frag conftest.in > conftest.out
13849 mv conftest.out conftest.in
13850 ' >> $CONFIG_STATUS
13851 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13852 rm -f conftest.vals
13853 mv conftest.tail conftest.vals
13855 rm -f conftest.vals
13857 cat >> $CONFIG_STATUS <<\EOF
13858 rm -f conftest.frag conftest.h
13859 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13860 cat conftest.in >> conftest.h
13862 if cmp -s $ac_file conftest.h 2>/dev/null; then
13863 echo "$ac_file is unchanged"
13866 # Remove last slash and all that follows it. Not all systems have dirname.
13867 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13868 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13869 # The file is in a subdirectory.
13870 test ! -d "$ac_dir" && mkdir "$ac_dir"
13873 mv conftest.h $ac_file
13878 cat >> $CONFIG_STATUS <<EOF
13880 top_srcdir="$srcdir"
13881 MAKE_SUBDIR="$MAKE_SUBDIR"
13884 cat >> $CONFIG_STATUS <<\EOF
13885 for dir in . $MAKE_SUBDIR; do
13890 sed -e '/^# Generated/d' \
13891 -e 's%/\*\*/#.*%%' \
13906 echo creating $dir/Makefile
13907 $CPP -I. -I${top_srcdir}/src junk.c \
13908 | sed -e 's/^\#.*//' \
13909 -e 's/^[ ][ ]*$//'\
13911 | sed -n -e '/^..*$/p' \
13917 chmod 444 Makefile.new
13918 mv -f Makefile.new Makefile
13920 echo creating $dir/GNUmakefile
13921 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
13922 | sed -e 's/^\#.*//' \
13923 -e 's/^[ ][ ]*$//'\
13925 | sed -n -e '/^..*$/p' \
13931 chmod 444 Makefile.new
13932 mv -f Makefile.new GNUmakefile
13938 sed < config.status >> lib-src/config.values \
13939 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
13940 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
13941 -e 's/^\([^ ]*\) $/\1 ""/' \
13947 chmod +x $CONFIG_STATUS
13948 rm -fr confdefs* $ac_clean_files
13949 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1