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 inststaticdir='${PROGNAME}'
231 instvardir='${PROGNAME}-${version}'
232 infodir='${datadir}/${instvardir}/info'
235 lispdir='${datadir}/${instvardir}/lisp'
236 moduledir='${datadir}/${instvardir}/${configuration}/modules'
237 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
238 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
239 pkgdir='${datadir}/${instvardir}/lisp'
241 etcdir='${datadir}/${instvardir}/etc'
242 lockdir='${statedir}/${inststaticdir}/lock'
243 archlibdir='${datadir}/${instvardir}/${configuration}'
244 docdir='${archlibdir}'
247 with_site_modules='yes'
253 cpp='' cppflags='' libs='' ldflags=''
258 with_system_malloc='default'
259 with_dlmalloc='default'
273 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
277 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
278 | --no-cr | --no-c) ;;
279 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
280 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
282 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
283 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
287 while test $# != 0; do
290 --no-create|--no-recursion) ;;
294 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
295 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
299 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
300 val="yes" valomitted=yes
305 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
307 case "${valomitted}-${opt}" in yes-without_* )
308 opt=`echo $opt | sed 's/without/with/'`
309 valomitted="no" val="no" ;;
316 with_site_modules | \
366 memory_usage_stats | \
367 with_clash_detection | \
371 y | ye | yes ) val=yes ;;
373 * ) (echo "$progname: Usage error:"
374 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
375 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
377 eval "$opt=\"$val\"" ;;
395 site_runtime_libraries )
396 if test "$valomitted" = "yes" ; then
397 if test "$#" = 0 ; then
398 (echo "$progname: Usage error:"
399 echo " " "The \`--$optname' option requires a value."
400 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
409 with_debug_malloc | use_debug_malloc | \
410 with_system_malloc | use_system_malloc )
412 y | ye | yes ) val=yes ;;
414 d | de | def | defa | defau | defaul | default ) val=default ;;
415 * ) (echo "$progname: Usage error:"
416 echo " " "The \`--$optname' option requires one of these values:
417 \`yes', \`no', or \`default'."
418 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
420 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
425 with_database_berkdb=no
427 with_database_gnudbm=no
428 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
431 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
432 d | db | dbm ) with_database_dbm=yes ;;
433 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
434 * ) (echo "$progname: Usage error:"
435 echo " " "The \`--$optname' option value
436 must be either \`no' or a comma-separated list
437 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
438 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
441 if test "$with_database_dbm" = "yes" -a \
442 "$with_database_gnudbm" = "yes"; then
443 (echo "$progname: Usage error:"
444 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
445 with the \`--$optname' option."
446 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
452 y | ye | yes ) val=native ;;
453 n | no | non | none ) val=no;;
454 na | nat | nati | nativ | native ) val=native ;;
455 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
456 b | bo | bot | both ) val=both;;
457 * ) (echo "$progname: Usage error:"
458 echo " " "The \`--$optname' option must have one of these values:
459 \`native', \`nas', \`both', or \`none'."
460 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
467 y | ye | yes ) val=yes ;;
468 n | no | non | none ) val=no ;;
469 x | xl | xli | xlib ) val=xlib ;;
470 m | mo | mot | moti | motif ) val=motif ;;
471 * ) (echo "$progname: Usage error:"
472 echo " " "The \`--$optname' option must have one of these values:
473 \`motif', \`xlib', \`yes', or \`no'."
474 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
484 * ) (echo "$progname: Usage error:"
485 echo " " "The \`--$optname' option must have one of these values:
486 \`lockf', \`flock', or \`file'."
487 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
494 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
496 n | no | non | none ) new_default=no ;;
497 a | al | all ) new_default=yes ;;
499 extents ) error_check_extents=yes ;;
500 noextents ) error_check_extents=no ;;
502 typecheck ) error_check_typecheck=yes ;;
503 notypecheck ) error_check_typecheck=no ;;
505 bufpos ) error_check_bufpos=yes ;;
506 nobufpos ) error_check_bufpos=no ;;
508 gc ) error_check_gc=yes ;;
509 nogc ) error_check_gc=no ;;
511 malloc ) error_check_malloc=yes ;;
512 nomalloc ) error_check_malloc=no ;;
514 byte_code ) error_check_byte_code=yes ;;
515 nobyte_code ) error_check_byte_code=no ;;
517 * ) bogus_error_check=yes ;;
519 if test "$bogus_error_check" -o \
520 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
521 if test "$error_check_default" = yes ; then
522 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'."
524 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'."
526 (echo "$progname: Usage error:"
527 echo " " "Valid types for the \`--$optname' option are:
529 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
530 elif test -n "$new_default" ; then
531 error_check_extents=$new_default
532 error_check_typecheck=$new_default
533 error_check_bufpos=$new_default
534 error_check_gc=$new_default
535 error_check_malloc=$new_default
536 error_check_byte_code=$new_default
537 new_default= # reset this
544 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
545 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
546 archlibdir | docdir | package_path )
547 if test "$valomitted" = "yes"; then
548 if test "$#" = 0; then
549 (echo "$progname: Usage error:"
550 echo " " "The \`--$optname' option requires a value."
551 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
558 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
559 Defining EXEC_PREFIX_USER_DEFINED
561 cat >> confdefs.h <<\EOF
562 #define EXEC_PREFIX_USER_DEFINED 1
566 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
567 Defining LISPDIR_USER_DEFINED
569 cat >> confdefs.h <<\EOF
570 #define LISPDIR_USER_DEFINED 1
574 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
575 Defining SITELISPDIR_USER_DEFINED
577 cat >> confdefs.h <<\EOF
578 #define SITELISPDIR_USER_DEFINED 1
582 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
583 Defining MODULEDIR_USER_DEFINED
585 cat >> confdefs.h <<\EOF
586 #define MODULEDIR_USER_DEFINED 1
590 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
591 Defining ETCDIR_USER_DEFINED
593 cat >> confdefs.h <<\EOF
594 #define ETCDIR_USER_DEFINED 1
598 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
599 Defining INFODIR_USER_DEFINED
601 cat >> confdefs.h <<\EOF
602 #define INFODIR_USER_DEFINED 1
606 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
607 Defining INFOPATH_USER_DEFINED
609 cat >> confdefs.h <<\EOF
610 #define INFOPATH_USER_DEFINED 1
614 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
615 Defining PACKAGE_PATH_USER_DEFINED
617 cat >> confdefs.h <<\EOF
618 #define PACKAGE_PATH_USER_DEFINED 1
623 { test "$extra_verbose" = "yes" && cat << \EOF
624 Defining INFODIR_USER_DEFINED
626 cat >> confdefs.h <<\EOF
627 #define INFODIR_USER_DEFINED 1
631 { test "$extra_verbose" = "yes" && cat << \EOF
632 Defining LISPDIR_USER_DEFINED
634 cat >> confdefs.h <<\EOF
635 #define LISPDIR_USER_DEFINED 1
639 { test "$extra_verbose" = "yes" && cat << \EOF
640 Defining MODULEDIR_USER_DEFINED
642 cat >> confdefs.h <<\EOF
643 #define MODULEDIR_USER_DEFINED 1
647 { test "$extra_verbose" = "yes" && cat << \EOF
648 Defining ETCDIR_USER_DEFINED
650 cat >> confdefs.h <<\EOF
651 #define ETCDIR_USER_DEFINED 1
655 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
656 Defining LOCKDIR_USER_DEFINED
658 cat >> confdefs.h <<\EOF
659 #define LOCKDIR_USER_DEFINED 1
663 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
664 Defining DOCDIR_USER_DEFINED
666 cat >> confdefs.h <<\EOF
667 #define DOCDIR_USER_DEFINED 1
671 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
672 Defining ARCHLIBDIR_USER_DEFINED
674 cat >> confdefs.h <<\EOF
675 #define ARCHLIBDIR_USER_DEFINED 1
684 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
687 "with_scrollbars" | \
691 l | lu | luc | luci | lucid ) val=lucid ;;
692 m | mo | mot | moti | motif ) val=motif ;;
693 athena3d | athena-3d ) val=athena3d ;;
694 a | at | ath | athe | athen | athena ) val=athena ;;
695 n | no | non | none ) val=no ;;
696 * ) (echo "$progname: Usage error:"
697 echo " " "The \`--$optname' option must have one of these values:
698 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
699 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
704 "use_minimal_tagbits" | \
705 "use_indexed_lrecord_implementation" | \
708 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
711 * ) (echo "$progname: Usage error:"
712 echo " " "Unrecognized option: $arg"
713 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
718 *-*-*) configuration="$arg" ;;
720 *) (echo "$progname: Usage error:"
721 echo " " "Unrecognized argument: $arg"
722 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
728 test -n "$cpp" && CPP="$cpp"
729 test -n "$cppflags" && CPPFLAGS="$cppflags"
730 test -n "$libs" && LIBS="$libs"
731 test -n "$ldflags" && LDFLAGS="$ldflags"
733 eval set x "$quoted_arguments"; shift
735 test "$extra_verbose" = "yes" && verbose=yes
737 test -n "$with_x" && with_x11="$with_x"
739 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
740 test "$with_system_malloc" = "default" && with_system_malloc=yes
745 if test "$with_cde $with_tooltalk" = "yes no"; then
746 (echo "$progname: Usage error:"
747 echo " " "--with-cde requires --with-tooltalk"
748 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
749 elif test "$with_tooltalk" = "no" ; then with_cde=no
750 elif test "$with_cde" = "yes"; then with_tooltalk=yes
757 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
758 if test -f "$dir/src/lisp.h" -a \
759 -f "$dir/lisp/version.el" ; then
764 if test -z "$srcdir" ; then
765 (echo "$progname: Usage error:"
766 echo " " "Neither the current directory nor its parent seem to
767 contain the XEmacs sources. If you do not want to build XEmacs in its
768 source tree, you should run \`$progname' in the directory in which
769 you wish to build XEmacs, using the \`--srcdir' option to say where the
770 sources may be found."
771 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
776 if test ! -f "$srcdir/src/lisp.h" -o \
777 ! -f "$srcdir/lisp/version.el" ; then
778 (echo "$progname: Usage error:"
779 echo " " "The directory specified with the \`--srcdir' option,
780 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
781 either run the \`$progname' script at the top of the XEmacs source
782 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
783 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
788 if test -z "$configuration"; then
789 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
790 if test -z "$configuration"; then
791 (echo "$progname: Usage error:"
792 echo " " "XEmacs has not been ported to this host type.
793 Try explicitly specifying the CONFIGURATION when rerunning configure."
794 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
798 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
799 echo "configure:800: checking whether ln -s works" >&5
802 if ln -s X conftestdata 2>/dev/null
805 ac_cv_prog_LN_S="ln -s"
809 LN_S="$ac_cv_prog_LN_S"
810 if test "$ac_cv_prog_LN_S" = "ln -s"; then
811 echo "$ac_t""yes" 1>&6
813 echo "$ac_t""no" 1>&6
817 for dir in lisp etc man info; do
818 if test ! -d "$dir" ; then
819 echo Making symbolic link to "$srcdir/$dir"
820 ${LN_S} "$srcdir/$dir" "$dir"
825 absolute_pwd="`pwd`";
826 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
828 else blddir="$absolute_pwd"; if test -d "/net"; then
829 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
830 blddir=`echo "$blddir" | \
831 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
838 . ) srcdir="$blddir" ;;
839 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
840 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
841 srcdir=`echo "$srcdir" | \
842 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
846 if test `pwd` != `sh -c cd $srcdir && pwd` \
847 && test -f "$srcdir/src/config.h"; then
848 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
849 echo " as a build directory right now; it has been configured in its own"
850 echo " right. To configure in another directory as well, you MUST"
851 echo " use GNU make. If you do not have GNU make, then you must"
852 echo " now do \`make distclean' in $srcdir,"
853 echo " and then run $progname again.") >&2
854 extrasub='/^VPATH[ ]*=/c\
860 vpath %.in $(srcdir)'
863 . "$srcdir/version.sh" || exit 1;
864 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
865 : "${extra_verbose=$beta}"
866 version="${emacs_major_version}.${emacs_minor_version}"
867 { test "$extra_verbose" = "yes" && cat << EOF
868 Defining EMACS_MAJOR_VERSION = $emacs_major_version
870 cat >> confdefs.h <<EOF
871 #define EMACS_MAJOR_VERSION $emacs_major_version
875 { test "$extra_verbose" = "yes" && cat << EOF
876 Defining EMACS_MINOR_VERSION = $emacs_minor_version
878 cat >> confdefs.h <<EOF
879 #define EMACS_MINOR_VERSION $emacs_minor_version
883 if test -n "$emacs_beta_version" ; then
884 if test "$beta" = "yes"; then
885 version="${version}-b${emacs_beta_version}"
886 { test "$extra_verbose" = "yes" && cat << EOF
887 Defining EMACS_BETA_VERSION = $emacs_beta_version
889 cat >> confdefs.h <<EOF
890 #define EMACS_BETA_VERSION $emacs_beta_version
895 version="${version}.${emacs_beta_version}"
896 { test "$extra_verbose" = "yes" && cat << EOF
897 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
899 cat >> confdefs.h <<EOF
900 #define EMACS_PATCH_LEVEL $emacs_beta_version
906 { test "$extra_verbose" = "yes" && cat << EOF
907 Defining XEMACS_CODENAME = "$xemacs_codename"
909 cat >> confdefs.h <<EOF
910 #define XEMACS_CODENAME "$xemacs_codename"
914 { test "$extra_verbose" = "yes" && cat << EOF
915 Defining EMACS_VERSION = "$version"
917 cat >> confdefs.h <<EOF
918 #define EMACS_VERSION "$version"
923 if test "$with_infodock" = "yes"; then
924 if test ! -f ../../ID-INSTALL; then
925 echo "Cannot build InfoDock without InfoDock sources"
930 if test "$with_infodock" = "yes"; then
931 { test "$extra_verbose" = "yes" && cat << EOF
932 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
934 cat >> confdefs.h <<EOF
935 #define INFODOCK_MAJOR_VERSION $infodock_major_version
939 { test "$extra_verbose" = "yes" && cat << EOF
940 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
942 cat >> confdefs.h <<EOF
943 #define INFODOCK_MINOR_VERSION $infodock_minor_version
947 { test "$extra_verbose" = "yes" && cat << EOF
948 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
950 cat >> confdefs.h <<EOF
951 #define INFODOCK_BUILD_VERSION $infodock_build_version
955 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
957 CPPFLAGS="$CPPFLAGS -DINFODOCK"
962 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
963 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
964 Defining ERROR_CHECK_EXTENTS
966 cat >> confdefs.h <<\EOF
967 #define ERROR_CHECK_EXTENTS 1
971 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
972 Defining ERROR_CHECK_TYPECHECK
974 cat >> confdefs.h <<\EOF
975 #define ERROR_CHECK_TYPECHECK 1
979 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
980 Defining ERROR_CHECK_BUFPOS
982 cat >> confdefs.h <<\EOF
983 #define ERROR_CHECK_BUFPOS 1
987 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
988 Defining ERROR_CHECK_GC
990 cat >> confdefs.h <<\EOF
991 #define ERROR_CHECK_GC 1
995 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
996 Defining ERROR_CHECK_MALLOC
998 cat >> confdefs.h <<\EOF
999 #define ERROR_CHECK_MALLOC 1
1003 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1004 Defining ERROR_CHECK_BYTE_CODE
1006 cat >> confdefs.h <<\EOF
1007 #define ERROR_CHECK_BYTE_CODE 1
1011 if test "${debug:=$beta}" = "yes"; then
1012 use_assertions=yes memory_usage_stats=yes
1013 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1014 echo " xemacs will be linked with \"debug.o\""
1016 { test "$extra_verbose" = "yes" && cat << \EOF
1017 Defining DEBUG_XEMACS
1019 cat >> confdefs.h <<\EOF
1020 #define DEBUG_XEMACS 1
1025 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1026 Defining USE_ASSERTIONS
1028 cat >> confdefs.h <<\EOF
1029 #define USE_ASSERTIONS 1
1033 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1034 Defining MEMORY_USAGE_STATS
1036 cat >> confdefs.h <<\EOF
1037 #define MEMORY_USAGE_STATS 1
1043 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1044 echo "configure:1045: checking "host system type"" >&5
1045 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1046 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1047 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1048 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1049 echo "$ac_t""$configuration" 1>&6
1057 case "$canonical" in
1058 sparc-*-* ) machine=sparc ;;
1059 alpha*-*-* ) machine=alpha ;;
1060 vax-*-* ) machine=vax ;;
1061 mips-dec-* ) machine=pmax ;;
1062 mips-sgi-* ) machine=iris4d ;;
1063 mips*-linux ) machine=mips ;;
1064 romp-ibm-* ) machine=ibmrt ;;
1065 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1066 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1067 powerpc*-* ) machine=powerpc ;;
1068 hppa-*-* ) machine=hp800 ;;
1069 m88k-dg-* ) machine=aviion ;;
1070 m68*-sony-* ) machine=news ;;
1071 mips-sony-* ) machine=news-risc ;;
1072 clipper-* ) machine=clipper ;;
1073 arm-* ) machine=arm ;;
1074 ns32k-* ) machine=ns32000 ;;
1077 case "$canonical" in
1078 *-*-linux* ) opsys=linux ;;
1079 *-*-netbsd* ) opsys=netbsd ;;
1080 *-*-openbsd* ) opsys=openbsd ;;
1081 *-*-nextstep* ) opsys=nextstep ;;
1082 *-*-vms ) opsys=vms ;;
1084 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1085 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1086 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1087 *-dec-osf3* ) opsys=decosf3-1 ;;
1088 *-dec-osf4* ) opsys=decosf4-0 ;;
1090 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1091 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1092 *-*-ultrix* ) opsys=ultrix4-3 ;;
1094 *-*-aix3.1* ) opsys=aix3-1 ;;
1095 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1096 *-*-aix3* ) opsys=aix3-2 ;;
1097 *-*-aix4.0* ) opsys=aix4 ;;
1098 *-*-aix4.1* ) opsys=aix4-1 ;;
1099 *-*-aix4* ) opsys=aix4-2 ;;
1101 *-gnu* ) opsys=gnu ;;
1102 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1103 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1104 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1105 *-*-aos4.2 ) opsys=bsd4-2 ;;
1106 *-*-aos* ) opsys=bsd4-3 ;;
1107 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1108 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1109 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1110 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1111 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1112 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1113 if test -z "$NON_GNU_CPP" ; then
1114 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1115 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1119 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1120 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1123 case "$canonical" in
1126 case "$canonical" in
1127 i[3-9]86-*-netbsd*) machine=intel386 ;;
1128 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1129 machine=hp9000s300 ;;
1130 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1131 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1136 case "${canonical}" in
1137 i386-*-openbsd*) machine=intel386 ;;
1138 m68k-*-openbsd*) machine=hp9000s300 ;;
1139 mipsel-*-openbsd*) machine=pmax ;;
1143 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1144 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1146 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1147 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1149 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1151 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1153 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1155 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1157 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1159 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1160 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1161 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1164 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1166 *-convex-bsd* | *-convex-convexos* )
1167 machine=convex opsys=bsd4-3
1168 NON_GNU_CPP="cc -E -P"
1171 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1173 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1174 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1175 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1176 m88k-dg-dgux* ) opsys=dgux ;;
1178 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1179 m88k-motorola-sysv4* )
1180 machine=delta88k opsys=usg5-4-2
1182 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1184 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1185 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1187 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1189 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1190 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1191 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1194 case "`uname -r`" in
1195 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1196 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1198 NON_GNU_CPP="/lib/cpp"
1200 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1201 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1203 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1205 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1208 case "$canonical" in
1209 m68* ) machine=hp9000s300 ;;
1210 hppa* ) machine=hp800 ;;
1213 case "$canonical" in
1214 *-hp-hpux7* ) opsys=hpux ;;
1215 *-hp-hpux8* ) opsys=hpux8 ;;
1216 *-hp-hpux9* ) opsys=hpux9 ;;
1217 *-hp-hpux10* ) opsys=hpux10 ;;
1218 *-hp-hpux11* ) opsys=hpux11 ;;
1222 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1223 echo " xemacs will be linked with \"strcat.o\""
1226 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1227 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1228 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1230 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1233 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1234 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1236 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1237 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1238 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1239 romp-ibm-aos* ) opsys=bsd4-3 ;;
1240 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1241 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1243 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1244 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1246 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1248 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1250 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1252 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1254 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1256 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1258 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1260 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1262 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1264 mips-mips-usg* ) machine=mips4 ;;
1267 NON_GNU_CC="cc -systype bsd43"
1268 NON_GNU_CPP="cc -systype bsd43 -E"
1269 case "$canonical" in
1270 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1271 mips-mips-riscos5* ) opsys=riscos5 ;;
1274 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1275 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1277 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1279 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1281 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1282 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1284 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1286 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1288 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1290 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1292 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1293 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1295 mips-siemens-sysv* | mips-sni-sysv*)
1296 machine=mips-siemens opsys=usg5-4
1297 NON_GNU_CC=/usr/ccs/bin/cc
1298 NON_GNU_CPP=/usr/ccs/lib/cpp
1303 NON_GNU_CC=/usr/ccs/bin/cc
1304 NON_GNU_CPP=/usr/ccs/lib/cpp
1307 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1308 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1309 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1310 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1311 mips-sgi-irix6* ) opsys=irix6-0 ;;
1312 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1313 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1314 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1315 mips-sgi-irix* ) opsys=irix5-0 ;;
1317 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1318 *-sony-news* ) opsys=newsos5 ;;
1320 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1322 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1323 case "$canonical" in
1324 m68*-sunos1* ) machine=sun1 ;;
1325 m68*-sunos2* ) machine=sun2 ;;
1326 m68* ) machine=sun3 ;;
1327 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1328 i*86-*-* ) machine=intel386 ;;
1329 rs6000* ) machine=rs6000 ;;
1332 case "$canonical" in *-sunos5*)
1333 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1336 case "$canonical" in
1338 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1341 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1345 case "$canonical" in
1348 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1349 { test "$extra_verbose" = "yes" && cat << EOF
1350 Defining OS_RELEASE = $os_release
1352 cat >> confdefs.h <<EOF
1353 #define OS_RELEASE $os_release
1358 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1359 *-sunos4.0* ) opsys=sunos4-0 ;;
1360 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1361 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1362 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1363 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1364 *-mach* ) opsys=mach-bsd4-3 ;;
1368 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1370 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1373 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1375 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1376 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1378 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1380 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1382 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1383 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1385 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1387 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1390 case "$canonical" in
1391 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1392 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1393 *-mach* ) opsys=mach-bsd4-3 ;;
1397 ns16k-whitechapel-* ) machine=mg1 ;;
1399 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1403 case "$canonical" in
1404 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1405 *-isc2.2* ) opsys=isc2-2 ;;
1406 *-isc4.0* ) opsys=isc4-0 ;;
1407 *-isc4.* ) opsys=isc4-1
1408 GCC_TEST_OPTIONS=-posix
1409 NON_GCC_TEST_OPTIONS=-Xp
1411 *-isc* ) opsys=isc3-0 ;;
1412 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1413 *-esix* ) opsys=esix ;;
1414 *-mach* ) opsys=mach-bsd4-3 ;;
1415 *-xenix* ) opsys=xenix ;;
1416 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1417 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1418 *-bsdi4* ) opsys=bsdos4 ;;
1419 *-bsdi3* ) opsys=bsdos3 ;;
1420 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1421 *-bsdi2* ) opsys=bsdos2 ;;
1422 *-sco3.2v5* ) opsys=sco5 ;
1423 if test "$dynamic" = "yes" ; then
1424 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1426 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1428 *-sysv5* ) opsys=sco7 ;;
1429 *-386bsd* ) opsys=386bsd ;;
1430 *-freebsd* ) opsys=freebsd ;;
1431 *-nextstep* ) opsys=nextstep ;;
1432 *-pc-cygwin* ) opsys=cygwin32 ;;
1433 *-pc-mingw* ) opsys=mingw32 ;
1434 test -z "$with_tty" && with_tty="no";;
1438 m68k-*-linux* ) machine=m68k opsys=linux ;;
1442 if test -z "$machine" -o -z "$opsys"; then
1443 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1444 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1449 if test -z "$dynamic"; then
1451 hpux* | sunos4* ) dynamic=no ;;
1455 if test "$dynamic" = "yes"; then
1457 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1458 decosf* ) ld_call_shared="-call_shared" ;;
1460 else case "$opsys" in
1462 echo "Static linking is not supported on Solaris 2."
1463 echo "Rerun configure without specifying --dynamic=no."
1465 linux ) ld_call_shared="-Bstatic" ;;
1466 decosf* ) ld_call_shared="-non_shared" ;;
1470 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1472 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1473 { test "$extra_verbose" = "yes" && cat << EOF
1474 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1476 cat >> confdefs.h <<EOF
1477 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1482 machfile="m/${machine}.h"
1483 opsysfile="s/${opsys}.h"
1486 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1487 if test "$with_workshop $with_tooltalk" = "yes no"; then
1488 (echo "$progname: Usage error:"
1489 echo " " "--with-workshop requires --with-tooltalk"
1490 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1491 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1492 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1495 if test "$with_workshop" = "yes"; then
1496 { test "$extra_verbose" = "yes" && cat << \EOF
1499 cat >> confdefs.h <<\EOF
1504 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1505 echo " xemacs will be linked with \"sunpro.o\""
1509 if test "$with_clash_detection" = "yes"; then
1510 { test "$extra_verbose" = "yes" && cat << \EOF
1511 Defining CLASH_DETECTION
1513 cat >> confdefs.h <<\EOF
1514 #define CLASH_DETECTION 1
1518 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1519 echo " xemacs will be linked with \"filelock.o\""
1523 test -n "$compiler" && CC="$compiler"
1524 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1527 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1528 if test "${CFLAGS-unset}" != unset
1529 then cflags_specified=yes;
1530 else cflags_specified=no;
1533 xe_save_CFLAGS="$CFLAGS"
1535 # Extract the first word of "gcc", so it can be a program name with args.
1536 set dummy gcc; ac_word=$2
1537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1538 echo "configure:1539: checking for $ac_word" >&5
1540 if test -n "$CC"; then
1541 ac_cv_prog_CC="$CC" # Let the user override the test.
1543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1545 for ac_dir in $ac_dummy; do
1546 test -z "$ac_dir" && ac_dir=.
1547 if test -f $ac_dir/$ac_word; then
1555 if test -n "$CC"; then
1556 echo "$ac_t""$CC" 1>&6
1558 echo "$ac_t""no" 1>&6
1561 if test -z "$CC"; then
1562 # Extract the first word of "cc", so it can be a program name with args.
1563 set dummy cc; ac_word=$2
1564 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1565 echo "configure:1566: checking for $ac_word" >&5
1567 if test -n "$CC"; then
1568 ac_cv_prog_CC="$CC" # Let the user override the test.
1570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1573 for ac_dir in $ac_dummy; do
1574 test -z "$ac_dir" && ac_dir=.
1575 if test -f $ac_dir/$ac_word; then
1576 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1577 ac_prog_rejected=yes
1585 if test $ac_prog_rejected = yes; then
1586 # We found a bogon in the path, so make sure we never use it.
1587 set dummy $ac_cv_prog_CC
1589 if test $# -gt 0; then
1590 # We chose a different compiler from the bogus one.
1591 # However, it has the same basename, so the bogon will be chosen
1592 # first if we set CC to just the basename; use the full file name.
1594 set dummy "$ac_dir/$ac_word" "$@"
1601 if test -n "$CC"; then
1602 echo "$ac_t""$CC" 1>&6
1604 echo "$ac_t""no" 1>&6
1607 if test -z "$CC"; then
1608 case "`uname -s`" in
1610 # Extract the first word of "cl", so it can be a program name with args.
1611 set dummy cl; ac_word=$2
1612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1613 echo "configure:1614: checking for $ac_word" >&5
1615 if test -n "$CC"; then
1616 ac_cv_prog_CC="$CC" # Let the user override the test.
1618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1620 for ac_dir in $ac_dummy; do
1621 test -z "$ac_dir" && ac_dir=.
1622 if test -f $ac_dir/$ac_word; then
1630 if test -n "$CC"; then
1631 echo "$ac_t""$CC" 1>&6
1633 echo "$ac_t""no" 1>&6
1638 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1641 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1642 echo "configure:1643: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1645 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1646 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1647 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1648 ac_cpp='$CPP '"$xe_cppflags"
1649 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1650 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1653 cat > conftest.$ac_ext << EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1660 if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1661 ac_cv_prog_cc_works=yes
1662 # If we can't run a trivial program, we are probably using a cross compiler.
1663 if (./conftest; exit) 2>/dev/null; then
1664 ac_cv_prog_cc_cross=no
1666 ac_cv_prog_cc_cross=yes
1669 echo "configure: failed program was:" >&5
1670 cat conftest.$ac_ext >&5
1671 ac_cv_prog_cc_works=no
1675 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1676 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1677 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1678 ac_cpp='$CPP '"$xe_cppflags"
1679 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1680 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1683 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1684 if test $ac_cv_prog_cc_works = no; then
1685 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1687 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1688 echo "configure:1689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1689 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1690 cross_compiling=$ac_cv_prog_cc_cross
1692 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1693 echo "configure:1694: checking whether we are using GNU C" >&5
1695 cat > conftest.c <<EOF
1700 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1706 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1708 if test $ac_cv_prog_gcc = yes; then
1714 ac_test_CFLAGS="${CFLAGS+set}"
1715 ac_save_CFLAGS="$CFLAGS"
1717 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1718 echo "configure:1719: checking whether ${CC-cc} accepts -g" >&5
1720 echo 'void f(){}' > conftest.c
1721 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1729 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1730 if test "$ac_test_CFLAGS" = set; then
1731 CFLAGS="$ac_save_CFLAGS"
1732 elif test $ac_cv_prog_cc_g = yes; then
1733 if test "$GCC" = yes; then
1739 if test "$GCC" = yes; then
1746 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1748 # Extract the first word of "gcc", so it can be a program name with args.
1749 set dummy gcc; ac_word=$2
1750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1751 echo "configure:1752: checking for $ac_word" >&5
1753 if test -n "$CC"; then
1754 ac_cv_prog_CC="$CC" # Let the user override the test.
1756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1758 for ac_dir in $ac_dummy; do
1759 test -z "$ac_dir" && ac_dir=.
1760 if test -f $ac_dir/$ac_word; then
1768 if test -n "$CC"; then
1769 echo "$ac_t""$CC" 1>&6
1771 echo "$ac_t""no" 1>&6
1774 if test -z "$CC"; then
1775 # Extract the first word of "cc", so it can be a program name with args.
1776 set dummy cc; ac_word=$2
1777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1778 echo "configure:1779: checking for $ac_word" >&5
1780 if test -n "$CC"; then
1781 ac_cv_prog_CC="$CC" # Let the user override the test.
1783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1786 for ac_dir in $ac_dummy; do
1787 test -z "$ac_dir" && ac_dir=.
1788 if test -f $ac_dir/$ac_word; then
1789 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1790 ac_prog_rejected=yes
1798 if test $ac_prog_rejected = yes; then
1799 # We found a bogon in the path, so make sure we never use it.
1800 set dummy $ac_cv_prog_CC
1802 if test $# -gt 0; then
1803 # We chose a different compiler from the bogus one.
1804 # However, it has the same basename, so the bogon will be chosen
1805 # first if we set CC to just the basename; use the full file name.
1807 set dummy "$ac_dir/$ac_word" "$@"
1814 if test -n "$CC"; then
1815 echo "$ac_t""$CC" 1>&6
1817 echo "$ac_t""no" 1>&6
1820 if test -z "$CC"; then
1821 case "`uname -s`" in
1823 # Extract the first word of "cl", so it can be a program name with args.
1824 set dummy cl; ac_word=$2
1825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1826 echo "configure:1827: checking for $ac_word" >&5
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1833 for ac_dir in $ac_dummy; do
1834 test -z "$ac_dir" && ac_dir=.
1835 if test -f $ac_dir/$ac_word; then
1843 if test -n "$CC"; then
1844 echo "$ac_t""$CC" 1>&6
1846 echo "$ac_t""no" 1>&6
1851 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1854 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1855 echo "configure:1856: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1858 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1859 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1860 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1861 ac_cpp='$CPP '"$xe_cppflags"
1862 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1863 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1866 cat > conftest.$ac_ext << EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1873 if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1874 ac_cv_prog_cc_works=yes
1875 # If we can't run a trivial program, we are probably using a cross compiler.
1876 if (./conftest; exit) 2>/dev/null; then
1877 ac_cv_prog_cc_cross=no
1879 ac_cv_prog_cc_cross=yes
1882 echo "configure: failed program was:" >&5
1883 cat conftest.$ac_ext >&5
1884 ac_cv_prog_cc_works=no
1888 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1889 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1890 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1891 ac_cpp='$CPP '"$xe_cppflags"
1892 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1893 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1896 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1897 if test $ac_cv_prog_cc_works = no; then
1898 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1900 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1901 echo "configure:1902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1902 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1903 cross_compiling=$ac_cv_prog_cc_cross
1905 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1906 echo "configure:1907: checking whether we are using GNU C" >&5
1908 cat > conftest.c <<EOF
1913 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1919 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1921 if test $ac_cv_prog_gcc = yes; then
1927 ac_test_CFLAGS="${CFLAGS+set}"
1928 ac_save_CFLAGS="$CFLAGS"
1930 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1931 echo "configure:1932: checking whether ${CC-cc} accepts -g" >&5
1933 echo 'void f(){}' > conftest.c
1934 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1942 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1943 if test "$ac_test_CFLAGS" = set; then
1944 CFLAGS="$ac_save_CFLAGS"
1945 elif test $ac_cv_prog_cc_g = yes; then
1946 if test "$GCC" = yes; then
1952 if test "$GCC" = yes; then
1959 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1961 # Extract the first word of "gcc", so it can be a program name with args.
1962 set dummy gcc; ac_word=$2
1963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1964 echo "configure:1965: checking for $ac_word" >&5
1966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
1969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1971 for ac_dir in $ac_dummy; do
1972 test -z "$ac_dir" && ac_dir=.
1973 if test -f $ac_dir/$ac_word; then
1981 if test -n "$CC"; then
1982 echo "$ac_t""$CC" 1>&6
1984 echo "$ac_t""no" 1>&6
1987 if test -z "$CC"; then
1988 # Extract the first word of "cc", so it can be a program name with args.
1989 set dummy cc; ac_word=$2
1990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1991 echo "configure:1992: checking for $ac_word" >&5
1993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
1996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1999 for ac_dir in $ac_dummy; do
2000 test -z "$ac_dir" && ac_dir=.
2001 if test -f $ac_dir/$ac_word; then
2002 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2003 ac_prog_rejected=yes
2011 if test $ac_prog_rejected = yes; then
2012 # We found a bogon in the path, so make sure we never use it.
2013 set dummy $ac_cv_prog_CC
2015 if test $# -gt 0; then
2016 # We chose a different compiler from the bogus one.
2017 # However, it has the same basename, so the bogon will be chosen
2018 # first if we set CC to just the basename; use the full file name.
2020 set dummy "$ac_dir/$ac_word" "$@"
2027 if test -n "$CC"; then
2028 echo "$ac_t""$CC" 1>&6
2030 echo "$ac_t""no" 1>&6
2033 if test -z "$CC"; then
2034 case "`uname -s`" in
2036 # Extract the first word of "cl", so it can be a program name with args.
2037 set dummy cl; ac_word=$2
2038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2039 echo "configure:2040: checking for $ac_word" >&5
2041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
2044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2046 for ac_dir in $ac_dummy; do
2047 test -z "$ac_dir" && ac_dir=.
2048 if test -f $ac_dir/$ac_word; then
2056 if test -n "$CC"; then
2057 echo "$ac_t""$CC" 1>&6
2059 echo "$ac_t""no" 1>&6
2064 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2067 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2068 echo "configure:2069: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2071 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2072 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2073 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2074 ac_cpp='$CPP '"$xe_cppflags"
2075 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2076 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2079 cat > conftest.$ac_ext << EOF
2081 #line 2082 "configure"
2082 #include "confdefs.h"
2086 if { (eval echo configure:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2087 ac_cv_prog_cc_works=yes
2088 # If we can't run a trivial program, we are probably using a cross compiler.
2089 if (./conftest; exit) 2>/dev/null; then
2090 ac_cv_prog_cc_cross=no
2092 ac_cv_prog_cc_cross=yes
2095 echo "configure: failed program was:" >&5
2096 cat conftest.$ac_ext >&5
2097 ac_cv_prog_cc_works=no
2101 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2102 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2103 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2104 ac_cpp='$CPP '"$xe_cppflags"
2105 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2106 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2109 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2110 if test $ac_cv_prog_cc_works = no; then
2111 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2113 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2114 echo "configure:2115: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2115 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2116 cross_compiling=$ac_cv_prog_cc_cross
2118 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2119 echo "configure:2120: checking whether we are using GNU C" >&5
2121 cat > conftest.c <<EOF
2126 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2132 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2134 if test $ac_cv_prog_gcc = yes; then
2140 ac_test_CFLAGS="${CFLAGS+set}"
2141 ac_save_CFLAGS="$CFLAGS"
2143 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2144 echo "configure:2145: checking whether ${CC-cc} accepts -g" >&5
2146 echo 'void f(){}' > conftest.c
2147 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2155 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2156 if test "$ac_test_CFLAGS" = set; then
2157 CFLAGS="$ac_save_CFLAGS"
2158 elif test $ac_cv_prog_cc_g = yes; then
2159 if test "$GCC" = yes; then
2165 if test "$GCC" = yes; then
2173 CFLAGS="$xe_save_CFLAGS"
2176 test -n "$CPP" -a -d "$CPP" && CPP=
2178 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2180 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2181 echo "configure:2182: checking how to run the C preprocessor" >&5
2182 # On Suns, sometimes $CPP names a directory.
2183 if test -n "$CPP" && test -d "$CPP"; then
2186 if test -z "$CPP"; then
2188 # This must be in double quotes, not single quotes, because CPP may get
2189 # substituted into the Makefile and "${CC-cc}" will confuse make.
2191 # On the NeXT, cc -E runs the code through the compiler's parser,
2192 # not just through cpp.
2193 cat > conftest.$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2200 { (eval echo configure:2201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2202 if test -z "$ac_err"; then
2206 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2209 CPP="${CC-cc} -E -traditional-cpp"
2210 cat > conftest.$ac_ext <<EOF
2211 #line 2212 "configure"
2212 #include "confdefs.h"
2216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2217 { (eval echo configure:2218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2219 if test -z "$ac_err"; then
2223 echo "configure: failed program was:" >&5
2224 cat conftest.$ac_ext >&5
2226 CPP="${CC-cc} -nologo -E"
2227 cat > conftest.$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2234 { (eval echo configure:2235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2236 if test -z "$ac_err"; then
2240 echo "configure: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2250 ac_cv_prog_CPP="$CPP"
2251 CPP="$ac_cv_prog_CPP"
2253 ac_cv_prog_CPP="$CPP"
2255 echo "$ac_t""$CPP" 1>&6
2258 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2259 echo "configure:2260: checking for AIX" >&5
2260 cat > conftest.$ac_ext <<EOF
2261 #line 2262 "configure"
2262 #include "confdefs.h"
2268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2269 egrep "yes" >/dev/null 2>&1; then
2271 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2272 Defining _ALL_SOURCE
2274 cat >> confdefs.h <<\EOF
2275 #define _ALL_SOURCE 1
2281 echo "$ac_t""no" 1>&6
2287 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2288 echo "configure:2289: checking for GNU libc" >&5
2289 cat > conftest.$ac_ext <<EOF
2290 #line 2291 "configure"
2291 #include "confdefs.h"
2292 #include <features.h>
2295 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2296 #error Not a GNU libc system :-(
2297 ******* ======= ******** &&&&&&&&
2302 if { (eval echo configure:2303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2312 echo "$ac_t""$have_glibc" 1>&6
2313 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2314 Defining _GNU_SOURCE
2316 cat >> confdefs.h <<\EOF
2317 #define _GNU_SOURCE 1
2323 cat > conftest.$ac_ext <<EOF
2324 #line 2325 "configure"
2325 #include "confdefs.h"
2327 #if defined __SUNPRO_C
2329 #elif defined __DECC
2336 if { (eval echo configure:2337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2341 echo "configure: failed program was:" >&5
2342 cat conftest.$ac_ext >&5
2344 case "$conftest_rc" in
2345 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2346 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2354 echo "Extracting information from the machine- and system-dependent headers..."
2356 tempcname="conftest.c"
2360 cat > $tempcname <<EOF
2362 #define C_SWITCH_SITE
2363 #define C_SWITCH_X_SITE
2364 #define LD_SWITCH_SITE
2365 #define LD_SWITCH_X_SITE
2366 #define LD_SWITCH_X_SITE_AUX
2367 #define OS_RELEASE $os_release
2368 #include "$srcdir/src/$opsysfile"
2369 #include "$srcdir/src/$machfile"
2371 #ifndef LIBS_MACHINE
2372 #define LIBS_MACHINE
2374 configure___ libs_machine=LIBS_MACHINE
2379 configure___ libs_system=LIBS_SYSTEM
2381 #ifndef LIBS_TERMCAP
2382 #define LIBS_TERMCAP
2384 configure___ libs_termcap=LIBS_TERMCAP
2386 #ifndef LIB_STANDARD
2387 #define LIB_STANDARD
2389 configure___ libs_standard=LIB_STANDARD
2392 #ifndef OBJECTS_MACHINE
2393 #define OBJECTS_MACHINE
2395 configure___ objects_machine=OBJECTS_MACHINE
2397 #ifndef OBJECTS_SYSTEM
2398 #define OBJECTS_SYSTEM
2400 configure___ objects_system=OBJECTS_SYSTEM
2403 #ifndef C_SWITCH_MACHINE
2404 #define C_SWITCH_MACHINE
2406 configure___ c_switch_machine=C_SWITCH_MACHINE
2408 #ifndef C_SWITCH_SYSTEM
2409 #define C_SWITCH_SYSTEM
2411 configure___ c_switch_system=C_SWITCH_SYSTEM
2414 #ifndef LD_SWITCH_MACHINE
2415 #define LD_SWITCH_MACHINE
2417 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2419 #ifndef LD_SWITCH_SYSTEM
2420 #define LD_SWITCH_SYSTEM
2422 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2426 #define UNEXEC "unexec.o"
2428 configure___ unexec=UNEXEC
2431 #ifndef LD_SWITCH_SHARED
2432 #define LD_SWITCH_SHARED "-c"
2434 configure___ ld_switch_shared=LD_SWITCH_SHARED
2437 #ifdef ORDINARY_LINK
2438 #define LD "\$(CC) \$(CFLAGS)"
2439 #else /* no ORDINARY LINK */
2440 #ifdef COFF_ENCAPSULATE
2441 #define LD "\$(CC) -nostdlib"
2442 #else /* not COFF_ENCAPSULATE */
2445 #else /* ! defined (LINKER) */
2447 #endif /* ! defined (LINKER) */
2448 #endif /* ! defined (COFF_ENCAPSULATE) */
2449 #endif /* not ORDINARY_LINK */
2455 configure___ lib_gcc=LIB_GCC
2457 #ifndef LD_TEXT_START_ADDR
2458 #define LD_TEXT_START_ADDR
2460 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2463 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2465 #ifdef COFF_ENCAPSULATE
2466 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2467 #else /* ! defined (COFF_ENCAPSULATE) */
2468 #define START_FILES "pre-crt0.o /lib/crt0.o"
2469 #endif /* ! defined (COFF_ENCAPSULATE) */
2470 #else /* ! defined (NO_REMAP) */
2471 #define START_FILES "ecrt0.o"
2472 #endif /* ! defined (NO_REMAP) */
2473 #endif /* no ORDINARY_LINK */
2477 configure___ start_files=START_FILES
2479 #ifdef ORDINARY_LINK
2480 configure___ ordinary_link=yes
2482 configure___ ordinary_link=no
2485 #ifdef SYSTEM_MALLOC
2486 configure___ system_malloc=yes
2488 configure___ system_malloc=no
2492 configure___ have_terminfo=yes
2494 configure___ have_terminfo=no
2497 #ifdef MAIL_USE_FLOCK
2498 configure___ mail_use_flock=yes
2500 configure___ mail_use_flock=no
2503 #ifdef MAIL_USE_LOCKF
2504 configure___ mail_use_lockf=yes
2506 configure___ mail_use_lockf=no
2509 #ifdef HAVE_WIN32_PROCESSES
2510 configure___ win32_processes=yes
2512 configure___ win32_processes=no
2517 CPP=`eval "echo $CPP $CPPFLAGS"`
2518 eval `$CPP -Isrc $tempcname \
2519 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2523 test "$extra_verbose" = "yes" && \
2524 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 ""
2526 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2528 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2530 if test "$cflags_specified" = "no"; then
2531 if test "$GCC" = "yes"; then
2532 CFLAGS="-g -O3 -Wall -Wno-switch"
2533 elif test "$__SUNPRO_C" = "yes"; then
2535 sol2 ) CFLAGS="-v -xO4" ;;
2536 sunos4* ) CFLAGS="-xO2";;
2538 elif test "$__DECC" = "yes"; then
2540 elif test "$CC" = "xlc"; then
2541 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2547 if test "$GCC" = "yes"; then
2548 set x $ld_switch_system; shift; ld_switch_system=""
2549 while test -n "$1"; do
2551 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2552 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2554 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2560 if test "$GCC" = "yes"; then
2561 set x $ld_switch_machine; shift; ld_switch_machine=""
2562 while test -n "$1"; do
2564 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2565 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2567 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2573 if test "$GCC" = "yes"; then
2574 set x $LDFLAGS; shift; LDFLAGS=""
2575 while test -n "$1"; do
2577 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2578 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2580 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2586 if test "$GCC" = "yes"; then
2587 set x $ld_call_shared; shift; ld_call_shared=""
2588 while test -n "$1"; do
2590 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2591 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2593 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2599 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2600 echo " xemacs will be linked with \"$objects_machine\""
2602 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2603 echo " xemacs will be linked with \"$objects_system\""
2605 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2606 echo " xemacs will be linked with \"$unexec\""
2609 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2610 echo "configure:2611: checking for dynodump" >&5
2611 if test "$unexec" != "unexsol2.o"; then
2612 echo "$ac_t""no" 1>&6
2614 echo "$ac_t""yes" 1>&6
2615 { test "$extra_verbose" = "yes" && cat << \EOF
2618 cat >> confdefs.h <<\EOF
2623 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2624 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2626 sparc ) dynodump_arch=sparc ;;
2627 *86* ) dynodump_arch=i386 ;;
2628 powerpc ) dynodump_arch=ppc ;;
2630 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
2634 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2636 if test "$unexec" = "unexaix.o"; then
2637 if test "$dynamic" = "no"; then
2638 start_flags="-Wl,-bnso,-bnodelcsect"
2639 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2640 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2641 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2643 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2644 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2647 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2648 echo "configure:2649: checking for terminateAndUnload in -lC" >&5
2649 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2651 xe_check_libs=" -lC "
2652 cat > conftest.$ac_ext <<EOF
2653 #line 2654 "configure"
2654 #include "confdefs.h"
2655 /* Override any gcc2 internal prototype to avoid an error. */
2656 /* We use char because int might match the return type of a gcc2
2657 builtin and then its argument prototype would still apply. */
2658 char terminateAndUnload();
2661 terminateAndUnload()
2664 if { (eval echo configure:2665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2666 eval "ac_cv_lib_$ac_lib_var=yes"
2668 echo "configure: failed program was:" >&5
2669 cat conftest.$ac_ext >&5
2671 eval "ac_cv_lib_$ac_lib_var=no"
2676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2677 echo "$ac_t""yes" 1>&6
2678 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2680 echo "$ac_t""no" 1>&6
2685 elif test -n "$ld_text_start_addr"; then
2686 start_flags="-T $ld_text_start_addr -e __start"
2692 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2693 test -z "$linker" && linker='$(CC) -nostdlib'
2694 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2696 test "$GCC" != "yes" && lib_gcc=
2702 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2703 if test -n "$site_libraries"; then
2704 for arg in $site_libraries; do
2707 * ) test -d "$arg" || \
2708 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2711 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2715 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2716 if test -n "$site_includes"; then
2717 for arg in $site_includes; do
2720 * ) test -d "$arg" || \
2721 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2724 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2728 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2729 if test -n "$site_prefixes"; then
2730 for dir in $site_prefixes; do
2731 lib_dir="${dir}/lib"
2732 inc_dir="${dir}/include"
2733 if test ! -d "$dir"; then
2734 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2735 elif test ! -d "$lib_dir"; then
2736 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2738 if test -d "$inc_dir"; then
2739 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
2741 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
2747 for dir in "/usr/ccs/lib"; do
2748 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
2751 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2752 if test -n "$site_runtime_libraries"; then
2753 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2758 if test "$dynamic" = "no"; then add_runtime_path=no
2759 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2760 else case "$opsys" in
2761 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2762 * ) add_runtime_path=no ;;
2766 if test "$add_runtime_path" = "yes"; then
2767 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2768 echo "configure:2769: checking "for runtime libraries flag"" >&5
2770 sol2 ) dash_r="-R" ;;
2771 decosf* | linux* | irix*) dash_r="-rpath " ;;
2774 for try_dash_r in "-R" "-R " "-rpath "; do
2775 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2777 if test "$GCC" = "yes"; then
2778 set x $xe_check_libs; shift; xe_check_libs=""
2779 while test -n "$1"; do
2781 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2782 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2784 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2789 cat > conftest.$ac_ext <<EOF
2790 #line 2791 "configure"
2791 #include "confdefs.h"
2797 if { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2799 dash_r="$try_dash_r"
2801 echo "configure: failed program was:" >&5
2802 cat conftest.$ac_ext >&5
2806 test -n "$dash_r" && break
2809 if test -n "$dash_r";
2810 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2811 else echo "$ac_t""NONE" 1>&6
2815 xe_add_unique_runpath_dir='
2817 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2819 if test "$xe_add_p" = "yes"; then
2820 test -n "$runpath" && runpath="${runpath}:"
2821 runpath="${runpath}${xe_runpath_dir}"
2822 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2828 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2829 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2830 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2832 runpath="" runpath_dirs=""
2833 if test -n "$LD_RUN_PATH"; then
2834 runpath="$LD_RUN_PATH"
2835 elif test "$GCC" = "yes"; then
2836 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2837 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2838 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2839 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2840 case "$arg" in P,* | -L* | -R* )
2841 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2843 xe_runpath_dir="$dir"
2844 test "$xe_runpath_dir" != "/lib" -a \
2845 "$xe_runpath_dir" != "/usr/lib" -a \
2846 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2847 eval "$xe_add_unique_runpath_dir"
2852 ld_switch_run="$ld_switch_run_save"
2855 for arg in $ld_switch_site $ld_switch_x_site; do
2856 case "$arg" in -L*) {
2857 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2858 test "$xe_runpath_dir" != "/lib" -a \
2859 "$xe_runpath_dir" != "/usr/lib" -a \
2860 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2861 eval "$xe_add_unique_runpath_dir"
2864 if test "$opsys $need_motif" = "sol2 yes"; then
2865 xe_runpath_dir="/opt/SUNWdt/lib";
2866 eval "$xe_add_unique_runpath_dir";
2869 if test -n "$runpath"; then
2870 ld_switch_run="${dash_r}${runpath}"
2872 if test "$GCC" = "yes"; then
2873 set x $ld_switch_run; shift; ld_switch_run=""
2874 while test -n "$1"; do
2876 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2877 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2879 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2884 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2892 if test "$with_dlmalloc" != "no"; then
2897 after_morecore_hook_exists=yes
2898 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2899 echo "configure:2900: checking for malloc_get_state" >&5
2901 cat > conftest.$ac_ext <<EOF
2902 #line 2903 "configure"
2903 #include "confdefs.h"
2904 /* System header to define __stub macros and hopefully few prototypes,
2905 which can conflict with char malloc_get_state(); below. */
2907 /* Override any gcc2 internal prototype to avoid an error. */
2908 /* We use char because int might match the return type of a gcc2
2909 builtin and then its argument prototype would still apply. */
2910 char malloc_get_state();
2914 /* The GNU C library defines this for functions which it implements
2915 to always fail with ENOSYS. Some functions are actually named
2916 something starting with __ and the normal name is an alias. */
2917 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2925 if { (eval echo configure:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2927 eval "ac_cv_func_malloc_get_state=yes"
2929 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2932 eval "ac_cv_func_malloc_get_state=no"
2936 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2937 echo "$ac_t""yes" 1>&6
2940 echo "$ac_t""no" 1>&6
2944 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2945 echo "configure:2946: checking for malloc_set_state" >&5
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 /* System header to define __stub macros and hopefully few prototypes,
2951 which can conflict with char malloc_set_state(); below. */
2953 /* Override any gcc2 internal prototype to avoid an error. */
2954 /* We use char because int might match the return type of a gcc2
2955 builtin and then its argument prototype would still apply. */
2956 char malloc_set_state();
2960 /* The GNU C library defines this for functions which it implements
2961 to always fail with ENOSYS. Some functions are actually named
2962 something starting with __ and the normal name is an alias. */
2963 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
2971 if { (eval echo configure:2972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2973 eval "ac_cv_func_malloc_set_state=yes"
2975 echo "configure: failed program was:" >&5
2976 cat conftest.$ac_ext >&5
2978 eval "ac_cv_func_malloc_set_state=no"
2982 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
2983 echo "$ac_t""yes" 1>&6
2986 echo "$ac_t""no" 1>&6
2990 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2991 echo "configure:2992: checking whether __after_morecore_hook exists" >&5
2992 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2995 extern void (* __after_morecore_hook)();
2997 __after_morecore_hook = 0
3000 if { (eval echo configure:3001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3002 echo "$ac_t""yes" 1>&6
3004 echo "configure: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3007 echo "$ac_t""no" 1>&6
3008 after_morecore_hook_exists=no
3011 if test "$system_malloc" = "yes" ; then
3014 (The GNU allocators don't work with this system configuration)."
3015 elif test "$with_system_malloc" = "yes" ; then
3018 (User chose not to use GNU allocators)."
3019 elif test "$with_debug_malloc" = "yes" ; then
3022 (User chose to use Debugging Malloc)."
3025 if test "$doug_lea_malloc" = "yes" ; then
3026 if test "$GNU_MALLOC" = yes ; then
3028 (Using Doug Lea's new malloc from the GNU C Library.)"
3030 { test "$extra_verbose" = "yes" && cat << \EOF
3031 Defining DOUG_LEA_MALLOC
3033 cat >> confdefs.h <<\EOF
3034 #define DOUG_LEA_MALLOC 1
3038 if test "$after_morecore_hook_exists" = "no" ; then
3040 (Using Doug Lea's new malloc from the Linux C Library.)"
3041 { test "$extra_verbose" = "yes" && cat << \EOF
3042 Defining _NO_MALLOC_WARNING_
3044 cat >> confdefs.h <<\EOF
3045 #define _NO_MALLOC_WARNING_ 1
3050 use_minimal_tagbits=yes
3056 # Extract the first word of "ranlib", so it can be a program name with args.
3057 set dummy ranlib; ac_word=$2
3058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3059 echo "configure:3060: checking for $ac_word" >&5
3061 if test -n "$RANLIB"; then
3062 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3066 for ac_dir in $ac_dummy; do
3067 test -z "$ac_dir" && ac_dir=.
3068 if test -f $ac_dir/$ac_word; then
3069 ac_cv_prog_RANLIB="ranlib"
3074 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3076 RANLIB="$ac_cv_prog_RANLIB"
3077 if test -n "$RANLIB"; then
3078 echo "$ac_t""$RANLIB" 1>&6
3080 echo "$ac_t""no" 1>&6
3084 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3085 if test -f $ac_dir/install-sh; then
3087 ac_install_sh="$ac_aux_dir/install-sh -c"
3089 elif test -f $ac_dir/install.sh; then
3091 ac_install_sh="$ac_aux_dir/install.sh -c"
3095 if test -z "$ac_aux_dir"; then
3096 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3098 ac_config_guess=$ac_aux_dir/config.guess
3099 ac_config_sub=$ac_aux_dir/config.sub
3100 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3102 # Find a good install program. We prefer a C program (faster),
3103 # so one script is as good as another. But avoid the broken or
3104 # incompatible versions:
3105 # SysV /etc/install, /usr/sbin/install
3106 # SunOS /usr/etc/install
3107 # IRIX /sbin/install
3109 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3112 # ./install, which can be erroneously created by make from ./install.sh.
3113 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3114 echo "configure:3115: checking for a BSD compatible install" >&5
3115 if test -z "$INSTALL"; then
3117 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3118 for ac_dir in $PATH; do
3119 # Account for people who put trailing slashes in PATH elements.
3121 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3123 # OSF1 and SCO ODT 3.0 have their own names for install.
3124 # Don't use installbsd from OSF since it installs stuff as root
3126 for ac_prog in ginstall scoinst install; do
3127 if test -f $ac_dir/$ac_prog; then
3128 if test $ac_prog = install &&
3129 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3130 # AIX install. It has an incompatible calling convention.
3133 ac_cv_path_install="$ac_dir/$ac_prog -c"
3143 if test "${ac_cv_path_install+set}" = set; then
3144 INSTALL="$ac_cv_path_install"
3146 # As a last resort, use the slow shell script. We don't cache a
3147 # path for INSTALL within a source directory, because that will
3148 # break other packages using the cache if that directory is
3149 # removed, or if the path is relative.
3150 INSTALL="$ac_install_sh"
3153 echo "$ac_t""$INSTALL" 1>&6
3155 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3156 # It thinks the first close brace ends the variable substitution.
3157 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3159 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3161 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3163 for ac_prog in 'bison -y' byacc
3165 # Extract the first word of "$ac_prog", so it can be a program name with args.
3166 set dummy $ac_prog; ac_word=$2
3167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3168 echo "configure:3169: checking for $ac_word" >&5
3170 if test -n "$YACC"; then
3171 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3175 for ac_dir in $ac_dummy; do
3176 test -z "$ac_dir" && ac_dir=.
3177 if test -f $ac_dir/$ac_word; then
3178 ac_cv_prog_YACC="$ac_prog"
3184 YACC="$ac_cv_prog_YACC"
3185 if test -n "$YACC"; then
3186 echo "$ac_t""$YACC" 1>&6
3188 echo "$ac_t""no" 1>&6
3191 test -n "$YACC" && break
3193 test -n "$YACC" || YACC="yacc"
3196 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3198 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3199 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3200 echo "configure:3201: checking for $ac_hdr" >&5
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3208 { (eval echo configure:3209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3210 if test -z "$ac_err"; then
3212 eval "ac_cv_header_$ac_safe=yes"
3215 echo "configure: failed program was:" >&5
3216 cat conftest.$ac_ext >&5
3218 eval "ac_cv_header_$ac_safe=no"
3221 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3222 echo "$ac_t""yes" 1>&6
3223 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3224 { test "$extra_verbose" = "yes" && cat << EOF
3227 cat >> confdefs.h <<EOF
3228 #define $ac_tr_hdr 1
3233 echo "$ac_t""no" 1>&6
3237 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3239 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3240 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3241 echo "configure:3242: checking for $ac_hdr" >&5
3243 cat > conftest.$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3249 { (eval echo configure:3250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3251 if test -z "$ac_err"; then
3253 eval "ac_cv_header_$ac_safe=yes"
3256 echo "configure: failed program was:" >&5
3257 cat conftest.$ac_ext >&5
3259 eval "ac_cv_header_$ac_safe=no"
3262 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3263 echo "$ac_t""yes" 1>&6
3264 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3265 { test "$extra_verbose" = "yes" && cat << EOF
3268 cat >> confdefs.h <<EOF
3269 #define $ac_tr_hdr 1
3274 echo "$ac_t""no" 1>&6
3278 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3280 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3281 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3282 echo "configure:3283: checking for $ac_hdr" >&5
3284 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3290 { (eval echo configure:3291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3292 if test -z "$ac_err"; then
3294 eval "ac_cv_header_$ac_safe=yes"
3297 echo "configure: failed program was:" >&5
3298 cat conftest.$ac_ext >&5
3300 eval "ac_cv_header_$ac_safe=no"
3303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3304 echo "$ac_t""yes" 1>&6
3305 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3306 { test "$extra_verbose" = "yes" && cat << EOF
3309 cat >> confdefs.h <<EOF
3310 #define $ac_tr_hdr 1
3315 echo "$ac_t""no" 1>&6
3319 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3320 echo "configure:3321: checking for sys/wait.h that is POSIX.1 compatible" >&5
3322 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 #include <sys/types.h>
3326 #include <sys/wait.h>
3328 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3331 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3336 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3339 if { (eval echo configure:3340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3341 ac_cv_header_sys_wait_h=yes
3343 echo "configure: failed program was:" >&5
3344 cat conftest.$ac_ext >&5
3346 ac_cv_header_sys_wait_h=no
3350 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3351 if test $ac_cv_header_sys_wait_h = yes; then
3352 { test "$extra_verbose" = "yes" && cat << \EOF
3353 Defining HAVE_SYS_WAIT_H
3355 cat >> confdefs.h <<\EOF
3356 #define HAVE_SYS_WAIT_H 1
3362 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3363 echo "configure:3364: checking for ANSI C header files" >&5
3365 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3374 { (eval echo configure:3375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3376 if test -z "$ac_err"; then
3378 ac_cv_header_stdc=yes
3381 echo "configure: failed program was:" >&5
3382 cat conftest.$ac_ext >&5
3384 ac_cv_header_stdc=no
3388 if test $ac_cv_header_stdc = yes; then
3389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3390 cat > conftest.$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3396 egrep "memchr" >/dev/null 2>&1; then
3400 ac_cv_header_stdc=no
3406 if test $ac_cv_header_stdc = yes; then
3407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3408 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3414 egrep "free" >/dev/null 2>&1; then
3418 ac_cv_header_stdc=no
3424 if test $ac_cv_header_stdc = yes; then
3425 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3426 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3430 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3431 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3432 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3433 int main () { int i; for (i = 0; i < 256; i++)
3434 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3438 if { (eval echo configure:3439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3443 echo "configure: failed program was:" >&5
3444 cat conftest.$ac_ext >&5
3446 ac_cv_header_stdc=no
3451 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3452 if test $ac_cv_header_stdc = yes; then
3453 { test "$extra_verbose" = "yes" && cat << \EOF
3454 Defining STDC_HEADERS
3456 cat >> confdefs.h <<\EOF
3457 #define STDC_HEADERS 1
3463 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3464 echo "configure:3465: checking whether time.h and sys/time.h may both be included" >&5
3466 cat > conftest.$ac_ext <<EOF
3467 #line 3468 "configure"
3468 #include "confdefs.h"
3469 #include <sys/types.h>
3470 #include <sys/time.h>
3476 if { (eval echo configure:3477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3478 ac_cv_header_time=yes
3480 echo "configure: failed program was:" >&5
3481 cat conftest.$ac_ext >&5
3483 ac_cv_header_time=no
3487 echo "$ac_t""$ac_cv_header_time" 1>&6
3488 if test $ac_cv_header_time = yes; then
3489 { test "$extra_verbose" = "yes" && cat << \EOF
3490 Defining TIME_WITH_SYS_TIME
3492 cat >> confdefs.h <<\EOF
3493 #define TIME_WITH_SYS_TIME 1
3499 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3500 echo "configure:3501: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3502 cat > conftest.$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3505 #include <sys/types.h>
3507 /* NetBSD declares sys_siglist in unistd.h. */
3508 #ifdef HAVE_UNISTD_H
3512 char *msg = *(sys_siglist + 1);
3515 if { (eval echo configure:3516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3517 ac_cv_decl_sys_siglist=yes
3519 echo "configure: failed program was:" >&5
3520 cat conftest.$ac_ext >&5
3522 ac_cv_decl_sys_siglist=no
3526 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3527 if test $ac_cv_decl_sys_siglist = yes; then
3528 { test "$extra_verbose" = "yes" && cat << \EOF
3529 Defining SYS_SIGLIST_DECLARED
3531 cat >> confdefs.h <<\EOF
3532 #define SYS_SIGLIST_DECLARED 1
3539 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3540 echo "configure:3541: checking for struct utimbuf" >&5
3541 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3544 #ifdef TIME_WITH_SYS_TIME
3545 #include <sys/time.h>
3548 #ifdef HAVE_SYS_TIME_H
3549 #include <sys/time.h>
3558 static struct utimbuf x; x.actime = x.modtime;
3561 if { (eval echo configure:3562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3563 echo "$ac_t""yes" 1>&6
3564 { test "$extra_verbose" = "yes" && cat << \EOF
3565 Defining HAVE_STRUCT_UTIMBUF
3567 cat >> confdefs.h <<\EOF
3568 #define HAVE_STRUCT_UTIMBUF 1
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3576 echo "$ac_t""no" 1>&6
3580 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3581 echo "configure:3582: checking return type of signal handlers" >&5
3583 cat > conftest.$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3586 #include <sys/types.h>
3592 extern "C" void (*signal (int, void (*)(int)))(int);
3594 void (*signal ()) ();
3601 if { (eval echo configure:3602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3603 ac_cv_type_signal=void
3605 echo "configure: failed program was:" >&5
3606 cat conftest.$ac_ext >&5
3608 ac_cv_type_signal=int
3612 echo "$ac_t""$ac_cv_type_signal" 1>&6
3613 { test "$extra_verbose" = "yes" && cat << EOF
3614 Defining RETSIGTYPE = $ac_cv_type_signal
3616 cat >> confdefs.h <<EOF
3617 #define RETSIGTYPE $ac_cv_type_signal
3622 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3623 echo "configure:3624: checking for size_t" >&5
3625 cat > conftest.$ac_ext <<EOF
3626 #line 3627 "configure"
3627 #include "confdefs.h"
3628 #include <sys/types.h>
3634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3635 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3637 ac_cv_type_size_t=yes
3640 ac_cv_type_size_t=no
3644 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3645 if test $ac_cv_type_size_t = no; then
3646 { test "$extra_verbose" = "yes" && cat << \EOF
3647 Defining size_t = unsigned
3649 cat >> confdefs.h <<\EOF
3650 #define size_t unsigned
3656 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3657 echo "configure:3658: checking for pid_t" >&5
3659 cat > conftest.$ac_ext <<EOF
3660 #line 3661 "configure"
3661 #include "confdefs.h"
3662 #include <sys/types.h>
3668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3669 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3671 ac_cv_type_pid_t=yes
3678 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3679 if test $ac_cv_type_pid_t = no; then
3680 { test "$extra_verbose" = "yes" && cat << \EOF
3681 Defining pid_t = int
3683 cat >> confdefs.h <<\EOF
3690 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3691 echo "configure:3692: checking for uid_t in sys/types.h" >&5
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3696 #include <sys/types.h>
3698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3699 egrep "uid_t" >/dev/null 2>&1; then
3701 ac_cv_type_uid_t=yes
3709 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3710 if test $ac_cv_type_uid_t = no; then
3711 { test "$extra_verbose" = "yes" && cat << \EOF
3712 Defining uid_t = int
3714 cat >> confdefs.h <<\EOF
3719 { test "$extra_verbose" = "yes" && cat << \EOF
3720 Defining gid_t = int
3722 cat >> confdefs.h <<\EOF
3729 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3730 echo "configure:3731: checking for mode_t" >&5
3732 cat > conftest.$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3735 #include <sys/types.h>
3741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3742 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3744 ac_cv_type_mode_t=yes
3747 ac_cv_type_mode_t=no
3751 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3752 if test $ac_cv_type_mode_t = no; then
3753 { test "$extra_verbose" = "yes" && cat << \EOF
3754 Defining mode_t = int
3756 cat >> confdefs.h <<\EOF
3763 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3764 echo "configure:3765: checking for off_t" >&5
3766 cat > conftest.$ac_ext <<EOF
3767 #line 3768 "configure"
3768 #include "confdefs.h"
3769 #include <sys/types.h>
3775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3778 ac_cv_type_off_t=yes
3785 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3786 if test $ac_cv_type_off_t = no; then
3787 { test "$extra_verbose" = "yes" && cat << \EOF
3788 Defining off_t = long
3790 cat >> confdefs.h <<\EOF
3798 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3799 echo "configure:3800: checking for struct timeval" >&5
3800 cat > conftest.$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3803 #ifdef TIME_WITH_SYS_TIME
3804 #include <sys/time.h>
3807 #ifdef HAVE_SYS_TIME_H
3808 #include <sys/time.h>
3814 static struct timeval x; x.tv_sec = x.tv_usec;
3817 if { (eval echo configure:3818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3819 echo "$ac_t""yes" 1>&6
3821 { test "$extra_verbose" = "yes" && cat << \EOF
3822 Defining HAVE_TIMEVAL
3824 cat >> confdefs.h <<\EOF
3825 #define HAVE_TIMEVAL 1
3830 echo "configure: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3833 echo "$ac_t""no" 1>&6
3838 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3839 echo "configure:3840: checking whether struct tm is in sys/time.h or time.h" >&5
3841 cat > conftest.$ac_ext <<EOF
3842 #line 3843 "configure"
3843 #include "confdefs.h"
3844 #include <sys/types.h>
3847 struct tm *tp; tp->tm_sec;
3850 if { (eval echo configure:3851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3852 ac_cv_struct_tm=time.h
3854 echo "configure: failed program was:" >&5
3855 cat conftest.$ac_ext >&5
3857 ac_cv_struct_tm=sys/time.h
3861 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3862 if test $ac_cv_struct_tm = sys/time.h; then
3863 { test "$extra_verbose" = "yes" && cat << \EOF
3864 Defining TM_IN_SYS_TIME
3866 cat >> confdefs.h <<\EOF
3867 #define TM_IN_SYS_TIME 1
3873 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3874 echo "configure:3875: checking for tm_zone in struct tm" >&5
3876 cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3879 #include <sys/types.h>
3880 #include <$ac_cv_struct_tm>
3882 struct tm tm; tm.tm_zone;
3885 if { (eval echo configure:3886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3887 ac_cv_struct_tm_zone=yes
3889 echo "configure: failed program was:" >&5
3890 cat conftest.$ac_ext >&5
3892 ac_cv_struct_tm_zone=no
3896 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3897 if test "$ac_cv_struct_tm_zone" = yes; then
3898 { test "$extra_verbose" = "yes" && cat << \EOF
3899 Defining HAVE_TM_ZONE
3901 cat >> confdefs.h <<\EOF
3902 #define HAVE_TM_ZONE 1
3907 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3908 echo "configure:3909: checking for tzname" >&5
3910 cat > conftest.$ac_ext <<EOF
3911 #line 3912 "configure"
3912 #include "confdefs.h"
3914 #ifndef tzname /* For SGI. */
3915 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3921 if { (eval echo configure:3922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3923 ac_cv_var_tzname=yes
3925 echo "configure: failed program was:" >&5
3926 cat conftest.$ac_ext >&5
3932 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3933 if test $ac_cv_var_tzname = yes; then
3934 { test "$extra_verbose" = "yes" && cat << \EOF
3935 Defining HAVE_TZNAME
3937 cat >> confdefs.h <<\EOF
3938 #define HAVE_TZNAME 1
3946 echo $ac_n "checking for working const""... $ac_c" 1>&6
3947 echo "configure:3948: checking for working const" >&5
3949 cat > conftest.$ac_ext <<EOF
3950 #line 3951 "configure"
3951 #include "confdefs.h"
3955 /* Ultrix mips cc rejects this. */
3956 typedef int charset[2]; const charset x;
3957 /* SunOS 4.1.1 cc rejects this. */
3958 char const *const *ccp;
3960 /* NEC SVR4.0.2 mips cc rejects this. */
3961 struct point {int x, y;};
3962 static struct point const zero = {0,0};
3963 /* AIX XL C 1.02.0.0 rejects this.
3964 It does not let you subtract one const X* pointer from another in an arm
3965 of an if-expression whose if-part is not a constant expression */
3966 const char *g = "string";
3967 ccp = &g + (g ? g-g : 0);
3968 /* HPUX 7.0 cc rejects these. */
3971 ccp = (char const *const *) p;
3972 { /* SCO 3.2v4 cc rejects this. */
3974 char const *s = 0 ? (char *) 0 : (char const *) 0;
3978 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3980 const int *foo = &x[0];
3983 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3984 typedef const int *iptr;
3988 { /* AIX XL C 1.02.0.0 rejects this saying
3989 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3990 struct s { int j; const int *ap[3]; };
3991 struct s *b; b->j = 5;
3993 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3999 if { (eval echo configure:4000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4003 echo "configure: failed program was:" >&5
4004 cat conftest.$ac_ext >&5
4010 echo "$ac_t""$ac_cv_c_const" 1>&6
4011 if test $ac_cv_c_const = no; then
4012 { test "$extra_verbose" = "yes" && cat << \EOF
4015 cat >> confdefs.h <<\EOF
4023 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4024 echo "configure:4025: checking whether ${MAKE-make} sets \${MAKE}" >&5
4025 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4027 cat > conftestmake <<\EOF
4029 @echo 'ac_maketemp="${MAKE}"'
4031 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4032 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4033 if test -n "$ac_maketemp"; then
4034 eval ac_cv_prog_make_${ac_make}_set=yes
4036 eval ac_cv_prog_make_${ac_make}_set=no
4039 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4040 echo "$ac_t""yes" 1>&6
4043 echo "$ac_t""no" 1>&6
4044 SET_MAKE="MAKE=${MAKE-make}"
4048 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4049 echo "configure:4050: checking whether byte ordering is bigendian" >&5
4051 ac_cv_c_bigendian=unknown
4052 # See if sys/param.h defines the BYTE_ORDER macro.
4053 cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4056 #include <sys/types.h>
4057 #include <sys/param.h>
4060 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4065 if { (eval echo configure:4066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4067 # It does; now see whether it defined to BIG_ENDIAN or not.
4068 cat > conftest.$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4071 #include <sys/types.h>
4072 #include <sys/param.h>
4075 #if BYTE_ORDER != BIG_ENDIAN
4080 if { (eval echo configure:4081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4082 ac_cv_c_bigendian=yes
4084 echo "configure: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4087 ac_cv_c_bigendian=no
4091 echo "configure: failed program was:" >&5
4092 cat conftest.$ac_ext >&5
4095 if test $ac_cv_c_bigendian = unknown; then
4096 cat > conftest.$ac_ext <<EOF
4097 #line 4098 "configure"
4098 #include "confdefs.h"
4100 /* Are we little or big endian? From Harbison&Steele. */
4104 char c[sizeof (long)];
4107 exit (u.c[sizeof (long) - 1] == 1);
4110 if { (eval echo configure:4111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4112 ac_cv_c_bigendian=no
4115 echo "configure: failed program was:" >&5
4116 cat conftest.$ac_ext >&5
4118 ac_cv_c_bigendian=yes
4123 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4124 if test $ac_cv_c_bigendian = yes; then
4125 { test "$extra_verbose" = "yes" && cat << \EOF
4126 Defining WORDS_BIGENDIAN
4128 cat >> confdefs.h <<\EOF
4129 #define WORDS_BIGENDIAN 1
4136 echo $ac_n "checking size of short""... $ac_c" 1>&6
4137 echo "configure:4138: checking size of short" >&5
4139 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure"
4141 #include "confdefs.h"
4145 FILE *f=fopen("conftestval", "w");
4147 fprintf(f, "%d\n", sizeof(short));
4151 if { (eval echo configure:4152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4153 ac_cv_sizeof_short=`cat conftestval`
4156 echo "configure: failed program was:" >&5
4157 cat conftest.$ac_ext >&5
4159 ac_cv_sizeof_short=0
4162 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4163 { test "$extra_verbose" = "yes" && cat << EOF
4164 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4166 cat >> confdefs.h <<EOF
4167 #define SIZEOF_SHORT $ac_cv_sizeof_short
4172 if test "$ac_cv_sizeof_short" = 0; then
4174 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4175 echo "*** PANIC *** Please examine config.log for compilation errors."
4178 echo $ac_n "checking size of int""... $ac_c" 1>&6
4179 echo "configure:4180: checking size of int" >&5
4181 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4187 FILE *f=fopen("conftestval", "w");
4189 fprintf(f, "%d\n", sizeof(int));
4193 if { (eval echo configure:4194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4195 ac_cv_sizeof_int=`cat conftestval`
4198 echo "configure: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4204 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4205 { test "$extra_verbose" = "yes" && cat << EOF
4206 Defining SIZEOF_INT = $ac_cv_sizeof_int
4208 cat >> confdefs.h <<EOF
4209 #define SIZEOF_INT $ac_cv_sizeof_int
4214 echo $ac_n "checking size of long""... $ac_c" 1>&6
4215 echo "configure:4216: checking size of long" >&5
4217 cat > conftest.$ac_ext <<EOF
4218 #line 4219 "configure"
4219 #include "confdefs.h"
4223 FILE *f=fopen("conftestval", "w");
4225 fprintf(f, "%d\n", sizeof(long));
4229 if { (eval echo configure:4230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4231 ac_cv_sizeof_long=`cat conftestval`
4234 echo "configure: failed program was:" >&5
4235 cat conftest.$ac_ext >&5
4240 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4241 { test "$extra_verbose" = "yes" && cat << EOF
4242 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4244 cat >> confdefs.h <<EOF
4245 #define SIZEOF_LONG $ac_cv_sizeof_long
4250 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4251 echo "configure:4252: checking size of long long" >&5
4253 cat > conftest.$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4259 FILE *f=fopen("conftestval", "w");
4261 fprintf(f, "%d\n", sizeof(long long));
4265 if { (eval echo configure:4266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4267 ac_cv_sizeof_long_long=`cat conftestval`
4270 echo "configure: failed program was:" >&5
4271 cat conftest.$ac_ext >&5
4273 ac_cv_sizeof_long_long=0
4276 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4277 { test "$extra_verbose" = "yes" && cat << EOF
4278 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4280 cat >> confdefs.h <<EOF
4281 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4286 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4287 echo "configure:4288: checking size of void *" >&5
4289 cat > conftest.$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4295 FILE *f=fopen("conftestval", "w");
4297 fprintf(f, "%d\n", sizeof(void *));
4301 if { (eval echo configure:4302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4303 ac_cv_sizeof_void_p=`cat conftestval`
4306 echo "configure: failed program was:" >&5
4307 cat conftest.$ac_ext >&5
4309 ac_cv_sizeof_void_p=0
4312 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4313 { test "$extra_verbose" = "yes" && cat << EOF
4314 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4316 cat >> confdefs.h <<EOF
4317 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4323 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4324 echo "configure:4325: checking for long file names" >&5
4326 ac_cv_sys_long_file_names=yes
4327 # Test for long file names in all the places we know might matter:
4328 # . the current directory, where building will happen
4329 # $prefix/lib where we will be installing things
4330 # $exec_prefix/lib likewise
4331 # eval it to expand exec_prefix.
4332 # $TMPDIR if set, where it might want to write temporary files
4333 # if $TMPDIR is not set:
4334 # /tmp where it might want to write temporary files
4337 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4338 ac_tmpdirs="$TMPDIR"
4340 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4342 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4343 test -d $ac_dir || continue
4344 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4345 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4346 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4347 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4348 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4349 ac_cv_sys_long_file_names=no
4350 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4353 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4356 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4357 if test $ac_cv_sys_long_file_names = yes; then
4358 { test "$extra_verbose" = "yes" && cat << \EOF
4359 Defining HAVE_LONG_FILE_NAMES
4361 cat >> confdefs.h <<\EOF
4362 #define HAVE_LONG_FILE_NAMES 1
4369 echo $ac_n "checking for sin""... $ac_c" 1>&6
4370 echo "configure:4371: checking for sin" >&5
4372 cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4375 /* System header to define __stub macros and hopefully few prototypes,
4376 which can conflict with char sin(); below. */
4378 /* Override any gcc2 internal prototype to avoid an error. */
4379 /* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4385 /* The GNU C library defines this for functions which it implements
4386 to always fail with ENOSYS. Some functions are actually named
4387 something starting with __ and the normal name is an alias. */
4388 #if defined (__stub_sin) || defined (__stub___sin)
4396 if { (eval echo configure:4397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4398 eval "ac_cv_func_sin=yes"
4400 echo "configure: failed program was:" >&5
4401 cat conftest.$ac_ext >&5
4403 eval "ac_cv_func_sin=no"
4407 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4408 echo "$ac_t""yes" 1>&6
4411 echo "$ac_t""no" 1>&6
4413 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4414 echo "configure:4415: checking for sin in -lm" >&5
4415 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4417 xe_check_libs=" -lm "
4418 cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure"
4420 #include "confdefs.h"
4421 /* Override any gcc2 internal prototype to avoid an error. */
4422 /* We use char because int might match the return type of a gcc2
4423 builtin and then its argument prototype would still apply. */
4430 if { (eval echo configure:4431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4432 eval "ac_cv_lib_$ac_lib_var=yes"
4434 echo "configure: failed program was:" >&5
4435 cat conftest.$ac_ext >&5
4437 eval "ac_cv_lib_$ac_lib_var=no"
4442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4443 echo "$ac_t""yes" 1>&6
4444 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4445 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4446 { test "$extra_verbose" = "yes" && cat << EOF
4449 cat >> confdefs.h <<EOF
4450 #define $ac_tr_lib 1
4454 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4457 echo "$ac_t""no" 1>&6
4464 { test "$extra_verbose" = "yes" && cat << \EOF
4465 Defining LISP_FLOAT_TYPE
4467 cat >> confdefs.h <<\EOF
4468 #define LISP_FLOAT_TYPE 1
4473 cat > conftest.$ac_ext <<EOF
4474 #line 4475 "configure"
4475 #include "confdefs.h"
4478 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4481 if { (eval echo configure:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4483 { test "$extra_verbose" = "yes" && cat << \EOF
4484 Defining HAVE_INVERSE_HYPERBOLIC
4486 cat >> confdefs.h <<\EOF
4487 #define HAVE_INVERSE_HYPERBOLIC 1
4492 echo "configure: failed program was:" >&5
4493 cat conftest.$ac_ext >&5
4497 echo "checking type of mail spool file locking" 1>&6
4498 echo "configure:4499: checking type of mail spool file locking" >&5
4499 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4500 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4501 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4502 Defining REAL_MAIL_USE_LOCKF
4504 cat >> confdefs.h <<\EOF
4505 #define REAL_MAIL_USE_LOCKF 1
4509 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4510 Defining REAL_MAIL_USE_FLOCK
4512 cat >> confdefs.h <<\EOF
4513 #define REAL_MAIL_USE_FLOCK 1
4517 else mail_locking="dot-locking"
4520 case "$opsys" in decosf*)
4522 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4523 echo "configure:4524: checking for cma_open in -lpthreads" >&5
4524 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4526 xe_check_libs=" -lpthreads "
4527 cat > conftest.$ac_ext <<EOF
4528 #line 4529 "configure"
4529 #include "confdefs.h"
4530 /* Override any gcc2 internal prototype to avoid an error. */
4531 /* We use char because int might match the return type of a gcc2
4532 builtin and then its argument prototype would still apply. */
4539 if { (eval echo configure:4540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4541 eval "ac_cv_lib_$ac_lib_var=yes"
4543 echo "configure: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4546 eval "ac_cv_lib_$ac_lib_var=no"
4551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4552 echo "$ac_t""yes" 1>&6
4553 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4554 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4555 { test "$extra_verbose" = "yes" && cat << EOF
4558 cat >> confdefs.h <<EOF
4559 #define $ac_tr_lib 1
4563 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4566 echo "$ac_t""no" 1>&6
4570 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4571 c_switch_site="$c_switch_site -threads" ;;
4574 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4575 echo "configure:4576: checking whether the -xildoff compiler flag is required" >&5
4576 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4577 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4578 then echo "$ac_t""no" 1>&6;
4579 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
4581 else echo "$ac_t""no" 1>&6
4584 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4585 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4586 echo "configure:4587: checking for \"-z ignore\" linker flag" >&5
4587 case "`ld -h 2>&1`" in
4588 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4589 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4590 *) echo "$ac_t""no" 1>&6 ;;
4595 echo "checking "for specified window system"" 1>&6
4596 echo "configure:4597: checking "for specified window system"" >&5
4598 if test "$with_x11" != "no"; then
4599 test "$x_includes $x_libraries" != "NONE NONE" && \
4600 window_system=x11 with_x11=yes
4603 if test "$x_includes $x_libraries" = "NONE NONE" \
4604 -a -n "$OPENWINHOME" \
4605 -a "$OPENWINHOME" != "/usr/openwin" \
4606 -a -d "$OPENWINHOME"; then
4607 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4608 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4609 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4612 if test "$x_includes" = "NONE"; then
4613 for dir in "/usr/X11" "/usr/X11R6"; do
4614 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4618 if test "$x_libraries" = "NONE"; then
4619 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4620 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4624 # If we find X, set shell vars x_includes and x_libraries to the
4625 # paths, otherwise set no_x=yes.
4626 # Uses ac_ vars as temps to allow command line to override cache and checks.
4627 # --without-x overrides everything else, but does not touch the cache.
4628 echo $ac_n "checking for X""... $ac_c" 1>&6
4629 echo "configure:4630: checking for X" >&5
4631 # Check whether --with-x or --without-x was given.
4632 if test "${with_x+set}" = set; then
4637 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4638 if test "x$with_x" = xno; then
4639 # The user explicitly disabled X.
4642 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4643 # Both variables are already set.
4647 # One or both of the vars are not set, and there is no cached value.
4648 ac_x_includes=NO ac_x_libraries=NO
4650 if mkdir conftestdir; then
4652 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4653 cat > Imakefile <<'EOF'
4655 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4657 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4658 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4659 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4660 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4661 for ac_extension in a so sl; do
4662 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4663 test -f $ac_im_libdir/libX11.$ac_extension; then
4664 ac_im_usrlibdir=$ac_im_libdir; break
4667 # Screen out bogus values from the imake configuration. They are
4668 # bogus both because they are the default anyway, and because
4669 # using them would break gcc on systems where it needs fixed includes.
4670 case "$ac_im_incroot" in
4672 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4674 case "$ac_im_usrlibdir" in
4676 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4683 if test "$ac_x_includes" = NO; then
4684 # Guess where to find include files, by looking for this one X11 .h file.
4685 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4687 # First, try using that file with no special directory specified.
4688 cat > conftest.$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4691 #include <$x_direct_test_include>
4693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4694 { (eval echo configure:4695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4696 if test -z "$ac_err"; then
4698 # We can compile using X headers with no special include directory.
4702 echo "configure: failed program was:" >&5
4703 cat conftest.$ac_ext >&5
4705 # Look for the header file in a standard set of common directories.
4706 # Check X11 before X11Rn because it is often a symlink to the current release.
4709 /usr/X11R6/include \
4710 /usr/X11R5/include \
4711 /usr/X11R4/include \
4714 /usr/include/X11R6 \
4715 /usr/include/X11R5 \
4716 /usr/include/X11R4 \
4718 /usr/local/X11/include \
4719 /usr/local/X11R6/include \
4720 /usr/local/X11R5/include \
4721 /usr/local/X11R4/include \
4723 /usr/local/include/X11 \
4724 /usr/local/include/X11R6 \
4725 /usr/local/include/X11R5 \
4726 /usr/local/include/X11R4 \
4730 /usr/XFree86/include/X11 \
4733 /usr/local/include \
4734 /usr/unsupported/include \
4735 /usr/athena/include \
4736 /usr/local/x11r5/include \
4737 /usr/lpp/Xamples/include \
4739 /usr/openwin/include \
4740 /usr/openwin/share/include \
4743 if test -r "$ac_dir/$x_direct_test_include"; then
4744 ac_x_includes=$ac_dir
4750 fi # $ac_x_includes = NO
4752 if test "$ac_x_libraries" = NO; then
4753 # Check for the libraries.
4755 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4756 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4758 # See if we find them without any special options.
4759 # Don't add to $LIBS permanently.
4760 ac_save_LIBS="$LIBS"
4761 LIBS="-l$x_direct_test_library $LIBS"
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4767 ${x_direct_test_function}()
4770 if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4772 LIBS="$ac_save_LIBS"
4773 # We can link X programs with no special library path.
4776 echo "configure: failed program was:" >&5
4777 cat conftest.$ac_ext >&5
4779 LIBS="$ac_save_LIBS"
4780 # First see if replacing the include by lib works.
4781 # Check X11 before X11Rn because it is often a symlink to the current release.
4782 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4793 /usr/local/X11/lib \
4794 /usr/local/X11R6/lib \
4795 /usr/local/X11R5/lib \
4796 /usr/local/X11R4/lib \
4798 /usr/local/lib/X11 \
4799 /usr/local/lib/X11R6 \
4800 /usr/local/lib/X11R5 \
4801 /usr/local/lib/X11R4 \
4805 /usr/XFree86/lib/X11 \
4809 /usr/unsupported/lib \
4811 /usr/local/x11r5/lib \
4812 /usr/lpp/Xamples/lib \
4816 /usr/openwin/share/lib \
4819 for ac_extension in a so sl; do
4820 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4821 ac_x_libraries=$ac_dir
4828 fi # $ac_x_libraries = NO
4830 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4831 # Didn't find X anywhere. Cache the known absence of X.
4832 ac_cv_have_x="have_x=no"
4834 # Record where we found X for the cache.
4835 ac_cv_have_x="have_x=yes \
4836 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4839 eval "$ac_cv_have_x"
4842 if test "$have_x" != yes; then
4843 echo "$ac_t""$have_x" 1>&6
4846 # If each of the values was on the command line, it overrides each guess.
4847 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4848 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4849 # Update the cache value to reflect the command line values.
4850 ac_cv_have_x="have_x=yes \
4851 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4852 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4855 if test "$no_x" = yes; then
4856 # Not all programs may use this symbol, but it does not hurt to define it.
4857 { test "$extra_verbose" = "yes" && cat << \EOF
4858 Defining X_DISPLAY_MISSING
4860 cat >> confdefs.h <<\EOF
4861 #define X_DISPLAY_MISSING 1
4865 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4867 if test -n "$x_includes"; then
4868 X_CFLAGS="$X_CFLAGS -I$x_includes"
4871 # It would also be nice to do this for all -L options, not just this one.
4872 if test -n "$x_libraries"; then
4873 X_LIBS="$X_LIBS -L$x_libraries"
4874 # For Solaris; some versions of Sun CC require a space after -R and
4875 # others require no space. Words are not sufficient . . . .
4876 case "`(uname -sr) 2>/dev/null`" in
4878 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4879 echo "configure:4880: checking whether -R must be followed by a space" >&5
4880 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4881 cat > conftest.$ac_ext <<EOF
4882 #line 4883 "configure"
4883 #include "confdefs.h"
4889 if { (eval echo configure:4890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4893 echo "configure: failed program was:" >&5
4894 cat conftest.$ac_ext >&5
4899 if test $ac_R_nospace = yes; then
4900 echo "$ac_t""no" 1>&6
4901 X_LIBS="$X_LIBS -R$x_libraries"
4903 LIBS="$ac_xsave_LIBS -R $x_libraries"
4904 cat > conftest.$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4912 if { (eval echo configure:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4916 echo "configure: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4922 if test $ac_R_space = yes; then
4923 echo "$ac_t""yes" 1>&6
4924 X_LIBS="$X_LIBS -R $x_libraries"
4926 echo "$ac_t""neither works" 1>&6
4929 LIBS="$ac_xsave_LIBS"
4933 # Check for system-dependent libraries X programs must link with.
4934 # Do this before checking for the system-independent R6 libraries
4935 # (-lICE), since we may need -lsocket or whatever for X linking.
4937 if test "$ISC" = yes; then
4938 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4940 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4941 # libraries were built with DECnet support. And karl@cs.umb.edu says
4942 # the Alpha needs dnet_stub (dnet does not exist).
4943 if test "$with_dnet" = "no" ; then
4944 ac_cv_lib_dnet_dnet_ntoa=no
4947 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4948 echo "configure:4949: checking for dnet_ntoa in -ldnet" >&5
4949 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4951 xe_check_libs=" -ldnet "
4952 cat > conftest.$ac_ext <<EOF
4953 #line 4954 "configure"
4954 #include "confdefs.h"
4955 /* Override any gcc2 internal prototype to avoid an error. */
4956 /* We use char because int might match the return type of a gcc2
4957 builtin and then its argument prototype would still apply. */
4964 if { (eval echo configure:4965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4966 eval "ac_cv_lib_$ac_lib_var=yes"
4968 echo "configure: failed program was:" >&5
4969 cat conftest.$ac_ext >&5
4971 eval "ac_cv_lib_$ac_lib_var=no"
4976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4977 echo "$ac_t""yes" 1>&6
4978 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4980 echo "$ac_t""no" 1>&6
4985 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4987 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4988 echo "configure:4989: checking for dnet_ntoa in -ldnet_stub" >&5
4989 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4991 xe_check_libs=" -ldnet_stub "
4992 cat > conftest.$ac_ext <<EOF
4993 #line 4994 "configure"
4994 #include "confdefs.h"
4995 /* Override any gcc2 internal prototype to avoid an error. */
4996 /* We use char because int might match the return type of a gcc2
4997 builtin and then its argument prototype would still apply. */
5004 if { (eval echo configure:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5006 eval "ac_cv_lib_$ac_lib_var=yes"
5008 echo "configure: failed program was:" >&5
5009 cat conftest.$ac_ext >&5
5011 eval "ac_cv_lib_$ac_lib_var=no"
5016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5017 echo "$ac_t""yes" 1>&6
5018 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5020 echo "$ac_t""no" 1>&6
5026 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5027 # to get the SysV transport functions.
5028 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5030 # The nsl library prevents programs from opening the X display
5031 # on Irix 5.2, according to dickey@clark.net.
5032 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5033 echo "configure:5034: checking for gethostbyname" >&5
5035 cat > conftest.$ac_ext <<EOF
5036 #line 5037 "configure"
5037 #include "confdefs.h"
5038 /* System header to define __stub macros and hopefully few prototypes,
5039 which can conflict with char gethostbyname(); below. */
5041 /* Override any gcc2 internal prototype to avoid an error. */
5042 /* We use char because int might match the return type of a gcc2
5043 builtin and then its argument prototype would still apply. */
5044 char gethostbyname();
5048 /* The GNU C library defines this for functions which it implements
5049 to always fail with ENOSYS. Some functions are actually named
5050 something starting with __ and the normal name is an alias. */
5051 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5059 if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5061 eval "ac_cv_func_gethostbyname=yes"
5063 echo "configure: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5066 eval "ac_cv_func_gethostbyname=no"
5070 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5071 echo "$ac_t""yes" 1>&6
5074 echo "$ac_t""no" 1>&6
5077 if test $ac_cv_func_gethostbyname = no; then
5079 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5080 echo "configure:5081: checking for gethostbyname in -lnsl" >&5
5081 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5083 xe_check_libs=" -lnsl "
5084 cat > conftest.$ac_ext <<EOF
5085 #line 5086 "configure"
5086 #include "confdefs.h"
5087 /* Override any gcc2 internal prototype to avoid an error. */
5088 /* We use char because int might match the return type of a gcc2
5089 builtin and then its argument prototype would still apply. */
5090 char gethostbyname();
5096 if { (eval echo configure:5097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5098 eval "ac_cv_lib_$ac_lib_var=yes"
5100 echo "configure: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5103 eval "ac_cv_lib_$ac_lib_var=no"
5108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5109 echo "$ac_t""yes" 1>&6
5110 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5112 echo "$ac_t""no" 1>&6
5118 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5119 # socket/setsockopt and other routines are undefined under SCO ODT
5120 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5121 # on later versions), says simon@lia.di.epfl.ch: it contains
5122 # gethostby* variants that don't use the nameserver (or something).
5123 # -lsocket must be given before -lnsl if both are needed.
5124 # We assume that if connect needs -lnsl, so does gethostbyname.
5125 echo $ac_n "checking for connect""... $ac_c" 1>&6
5126 echo "configure:5127: checking for connect" >&5
5128 cat > conftest.$ac_ext <<EOF
5129 #line 5130 "configure"
5130 #include "confdefs.h"
5131 /* System header to define __stub macros and hopefully few prototypes,
5132 which can conflict with char connect(); below. */
5134 /* Override any gcc2 internal prototype to avoid an error. */
5135 /* We use char because int might match the return type of a gcc2
5136 builtin and then its argument prototype would still apply. */
5141 /* The GNU C library defines this for functions which it implements
5142 to always fail with ENOSYS. Some functions are actually named
5143 something starting with __ and the normal name is an alias. */
5144 #if defined (__stub_connect) || defined (__stub___connect)
5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5154 eval "ac_cv_func_connect=yes"
5156 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5159 eval "ac_cv_func_connect=no"
5163 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5164 echo "$ac_t""yes" 1>&6
5167 echo "$ac_t""no" 1>&6
5170 if test $ac_cv_func_connect = no; then
5172 xe_msg_checking="for connect in -lsocket"
5173 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5174 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5175 echo "configure:5176: checking "$xe_msg_checking"" >&5
5176 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5178 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5179 cat > conftest.$ac_ext <<EOF
5180 #line 5181 "configure"
5181 #include "confdefs.h"
5182 /* Override any gcc2 internal prototype to avoid an error. */
5183 /* We use char because int might match the return type of a gcc2
5184 builtin and then its argument prototype would still apply. */
5191 if { (eval echo configure:5192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5193 eval "ac_cv_lib_$ac_lib_var=yes"
5195 echo "configure: failed program was:" >&5
5196 cat conftest.$ac_ext >&5
5198 eval "ac_cv_lib_$ac_lib_var=no"
5203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5204 echo "$ac_t""yes" 1>&6
5205 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5207 echo "$ac_t""no" 1>&6
5213 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5214 echo $ac_n "checking for remove""... $ac_c" 1>&6
5215 echo "configure:5216: checking for remove" >&5
5217 cat > conftest.$ac_ext <<EOF
5218 #line 5219 "configure"
5219 #include "confdefs.h"
5220 /* System header to define __stub macros and hopefully few prototypes,
5221 which can conflict with char remove(); below. */
5223 /* Override any gcc2 internal prototype to avoid an error. */
5224 /* We use char because int might match the return type of a gcc2
5225 builtin and then its argument prototype would still apply. */
5230 /* The GNU C library defines this for functions which it implements
5231 to always fail with ENOSYS. Some functions are actually named
5232 something starting with __ and the normal name is an alias. */
5233 #if defined (__stub_remove) || defined (__stub___remove)
5241 if { (eval echo configure:5242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5243 eval "ac_cv_func_remove=yes"
5245 echo "configure: failed program was:" >&5
5246 cat conftest.$ac_ext >&5
5248 eval "ac_cv_func_remove=no"
5252 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5253 echo "$ac_t""yes" 1>&6
5256 echo "$ac_t""no" 1>&6
5259 if test $ac_cv_func_remove = no; then
5261 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5262 echo "configure:5263: checking for remove in -lposix" >&5
5263 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5265 xe_check_libs=" -lposix "
5266 cat > conftest.$ac_ext <<EOF
5267 #line 5268 "configure"
5268 #include "confdefs.h"
5269 /* Override any gcc2 internal prototype to avoid an error. */
5270 /* We use char because int might match the return type of a gcc2
5271 builtin and then its argument prototype would still apply. */
5278 if { (eval echo configure:5279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5280 eval "ac_cv_lib_$ac_lib_var=yes"
5282 echo "configure: failed program was:" >&5
5283 cat conftest.$ac_ext >&5
5285 eval "ac_cv_lib_$ac_lib_var=no"
5290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5291 echo "$ac_t""yes" 1>&6
5292 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5294 echo "$ac_t""no" 1>&6
5300 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5301 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5302 echo "configure:5303: checking for shmat" >&5
5304 cat > conftest.$ac_ext <<EOF
5305 #line 5306 "configure"
5306 #include "confdefs.h"
5307 /* System header to define __stub macros and hopefully few prototypes,
5308 which can conflict with char shmat(); below. */
5310 /* Override any gcc2 internal prototype to avoid an error. */
5311 /* We use char because int might match the return type of a gcc2
5312 builtin and then its argument prototype would still apply. */
5317 /* The GNU C library defines this for functions which it implements
5318 to always fail with ENOSYS. Some functions are actually named
5319 something starting with __ and the normal name is an alias. */
5320 #if defined (__stub_shmat) || defined (__stub___shmat)
5328 if { (eval echo configure:5329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5330 eval "ac_cv_func_shmat=yes"
5332 echo "configure: failed program was:" >&5
5333 cat conftest.$ac_ext >&5
5335 eval "ac_cv_func_shmat=no"
5339 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5340 echo "$ac_t""yes" 1>&6
5343 echo "$ac_t""no" 1>&6
5346 if test $ac_cv_func_shmat = no; then
5348 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5349 echo "configure:5350: checking for shmat in -lipc" >&5
5350 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5352 xe_check_libs=" -lipc "
5353 cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5356 /* Override any gcc2 internal prototype to avoid an error. */
5357 /* We use char because int might match the return type of a gcc2
5358 builtin and then its argument prototype would still apply. */
5365 if { (eval echo configure:5366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5367 eval "ac_cv_lib_$ac_lib_var=yes"
5369 echo "configure: failed program was:" >&5
5370 cat conftest.$ac_ext >&5
5372 eval "ac_cv_lib_$ac_lib_var=no"
5377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5378 echo "$ac_t""yes" 1>&6
5379 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5381 echo "$ac_t""no" 1>&6
5388 # Check for libraries that X11R6 Xt/Xaw programs need.
5389 ac_save_LDFLAGS="$LDFLAGS"
5390 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5391 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5392 # check for ICE first), but we must link in the order -lSM -lICE or
5393 # we get undefined symbols. So assume we have SM if we have ICE.
5394 # These have to be linked with before -lX11, unlike the other
5395 # libraries we check for below, so use a different variable.
5396 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5398 xe_msg_checking="for IceConnectionNumber in -lICE"
5399 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5400 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5401 echo "configure:5402: checking "$xe_msg_checking"" >&5
5402 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5404 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5405 cat > conftest.$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5408 /* Override any gcc2 internal prototype to avoid an error. */
5409 /* We use char because int might match the return type of a gcc2
5410 builtin and then its argument prototype would still apply. */
5411 char IceConnectionNumber();
5414 IceConnectionNumber()
5417 if { (eval echo configure:5418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5419 eval "ac_cv_lib_$ac_lib_var=yes"
5421 echo "configure: failed program was:" >&5
5422 cat conftest.$ac_ext >&5
5424 eval "ac_cv_lib_$ac_lib_var=no"
5429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5430 echo "$ac_t""yes" 1>&6
5431 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5433 echo "$ac_t""no" 1>&6
5437 LDFLAGS="$ac_save_LDFLAGS"
5440 # Autoconf claims to find X library and include dirs for us.
5441 if test "$no_x" = "yes"
5442 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5443 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5448 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5449 no ) window_system=none HAVE_X_WINDOWS=no ;;
5452 if test "$with_x11" = "yes"; then
5453 { test "$extra_verbose" = "yes" && cat << \EOF
5454 Defining HAVE_X_WINDOWS
5456 cat >> confdefs.h <<\EOF
5457 #define HAVE_X_WINDOWS 1
5461 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5462 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5464 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5465 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5466 if test -d "$lib_dir" -a -d "$inc_dir"; then
5467 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5468 x_libraries="$lib_dir $x_libraries"
5469 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5471 case "$x_includes" in "$inc_dir"* ) ;; *)
5472 x_includes="$inc_dir $x_includes"
5473 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5478 for rel in "X11R6" "X11R5" "X11R4"; do
5479 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5480 if test -d "$lib_dir" -a -d "$inc_dir"; then
5481 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5482 x_libraries="$x_libraries $lib_dir"
5483 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5485 case "$x_includes" in "$inc_dir"* ) ;; *)
5486 x_includes="$x_includes $inc_dir"
5487 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5492 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
5494 ld_switch_x_site="$X_LIBS"
5497 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5498 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5499 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5501 runpath="" runpath_dirs=""
5502 if test -n "$LD_RUN_PATH"; then
5503 runpath="$LD_RUN_PATH"
5504 elif test "$GCC" = "yes"; then
5505 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5506 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5507 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5508 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5509 case "$arg" in P,* | -L* | -R* )
5510 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5512 xe_runpath_dir="$dir"
5513 test "$xe_runpath_dir" != "/lib" -a \
5514 "$xe_runpath_dir" != "/usr/lib" -a \
5515 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5516 eval "$xe_add_unique_runpath_dir"
5521 ld_switch_run="$ld_switch_run_save"
5524 for arg in $ld_switch_site $ld_switch_x_site; do
5525 case "$arg" in -L*) {
5526 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5527 test "$xe_runpath_dir" != "/lib" -a \
5528 "$xe_runpath_dir" != "/usr/lib" -a \
5529 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5530 eval "$xe_add_unique_runpath_dir"
5533 if test "$opsys $need_motif" = "sol2 yes"; then
5534 xe_runpath_dir="/opt/SUNWdt/lib";
5535 eval "$xe_add_unique_runpath_dir";
5538 if test -n "$runpath"; then
5539 ld_switch_run="${dash_r}${runpath}"
5541 if test "$GCC" = "yes"; then
5542 set x $ld_switch_run; shift; ld_switch_run=""
5543 while test -n "$1"; do
5545 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5546 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5548 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5553 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5558 if test "$extra_verbose" = "yes"; then
5559 echo; echo "X11 compilation variables:"
5560 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5565 if test "$x_includes" != NONE; then
5566 for i in $x_includes; do
5567 if test -d "$i/bitmaps"; then
5568 bitmapdirs="$i/bitmaps:$bitmapdirs"
5570 if test -d "$i/X11/bitmaps"; then
5571 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5574 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5576 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5577 Defining BITMAPDIR = "$bitmapdirs"
5579 cat >> confdefs.h <<EOF
5580 #define BITMAPDIR "$bitmapdirs"
5585 echo "checking for X defines extracted by xmkmf" 1>&6
5586 echo "configure:5587: checking for X defines extracted by xmkmf" >&5
5588 if mkdir conftestdir; then
5590 cat > Imakefile <<'EOF'
5592 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5594 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5595 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5596 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5600 for word in $xmkmf_defines; do
5603 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5604 { test "$extra_verbose" = "yes" && cat << EOF
5607 cat >> confdefs.h <<EOF
5616 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5617 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5618 echo "configure:5619: checking for X11/Intrinsic.h" >&5
5620 cat > conftest.$ac_ext <<EOF
5621 #line 5622 "configure"
5622 #include "confdefs.h"
5623 #include <X11/Intrinsic.h>
5625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5626 { (eval echo configure:5627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5628 if test -z "$ac_err"; then
5630 eval "ac_cv_header_$ac_safe=yes"
5633 echo "configure: failed program was:" >&5
5634 cat conftest.$ac_ext >&5
5636 eval "ac_cv_header_$ac_safe=no"
5639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5640 echo "$ac_t""yes" 1>&6
5643 echo "$ac_t""no" 1>&6
5644 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5649 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5650 echo "configure:5651: checking for XOpenDisplay in -lX11" >&5
5651 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5653 xe_check_libs=" -lX11 "
5654 cat > conftest.$ac_ext <<EOF
5655 #line 5656 "configure"
5656 #include "confdefs.h"
5657 /* Override any gcc2 internal prototype to avoid an error. */
5658 /* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */
5660 char XOpenDisplay();
5666 if { (eval echo configure:5667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5668 eval "ac_cv_lib_$ac_lib_var=yes"
5670 echo "configure: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5673 eval "ac_cv_lib_$ac_lib_var=no"
5678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5679 echo "$ac_t""yes" 1>&6
5682 echo "$ac_t""no" 1>&6
5686 if test "$have_lib_x11" != "yes"; then
5688 xe_msg_checking="for XGetFontProperty in -lX11"
5689 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5690 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5691 echo "configure:5692: checking "$xe_msg_checking"" >&5
5692 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5694 xe_check_libs=" -lX11 -b i486-linuxaout"
5695 cat > conftest.$ac_ext <<EOF
5696 #line 5697 "configure"
5697 #include "confdefs.h"
5698 /* Override any gcc2 internal prototype to avoid an error. */
5699 /* We use char because int might match the return type of a gcc2
5700 builtin and then its argument prototype would still apply. */
5701 char XGetFontProperty();
5707 if { (eval echo configure:5708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5709 eval "ac_cv_lib_$ac_lib_var=yes"
5711 echo "configure: failed program was:" >&5
5712 cat conftest.$ac_ext >&5
5714 eval "ac_cv_lib_$ac_lib_var=no"
5719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5720 echo "$ac_t""yes" 1>&6
5721 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5723 echo "$ac_t""no" 1>&6
5724 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5730 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5733 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5734 echo "configure:5735: checking for XShapeSelectInput in -lXext" >&5
5735 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5737 xe_check_libs=" -lXext "
5738 cat > conftest.$ac_ext <<EOF
5739 #line 5740 "configure"
5740 #include "confdefs.h"
5741 /* Override any gcc2 internal prototype to avoid an error. */
5742 /* We use char because int might match the return type of a gcc2
5743 builtin and then its argument prototype would still apply. */
5744 char XShapeSelectInput();
5750 if { (eval echo configure:5751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5752 eval "ac_cv_lib_$ac_lib_var=yes"
5754 echo "configure: failed program was:" >&5
5755 cat conftest.$ac_ext >&5
5757 eval "ac_cv_lib_$ac_lib_var=no"
5762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5763 echo "$ac_t""yes" 1>&6
5764 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5766 echo "$ac_t""no" 1>&6
5772 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5773 echo "configure:5774: checking for XtOpenDisplay in -lXt" >&5
5774 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5776 xe_check_libs=" -lXt "
5777 cat > conftest.$ac_ext <<EOF
5778 #line 5779 "configure"
5779 #include "confdefs.h"
5780 /* Override any gcc2 internal prototype to avoid an error. */
5781 /* We use char because int might match the return type of a gcc2
5782 builtin and then its argument prototype would still apply. */
5783 char XtOpenDisplay();
5789 if { (eval echo configure:5790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5791 eval "ac_cv_lib_$ac_lib_var=yes"
5793 echo "configure: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5796 eval "ac_cv_lib_$ac_lib_var=no"
5801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5802 echo "$ac_t""yes" 1>&6
5803 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5805 echo "$ac_t""no" 1>&6
5806 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5811 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5812 echo "configure:5813: checking the version of X11 being used" >&5
5813 cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5816 #include <X11/Intrinsic.h>
5817 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5819 if { (eval echo configure:5820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5821 ./conftest foobar; x11_release=$?
5824 echo "configure: failed program was:" >&5
5825 cat conftest.$ac_ext >&5
5830 echo "$ac_t""R${x11_release}" 1>&6
5831 { test "$extra_verbose" = "yes" && cat << EOF
5832 Defining THIS_IS_X11R${x11_release}
5834 cat >> confdefs.h <<EOF
5835 #define THIS_IS_X11R${x11_release} 1
5840 for ac_hdr in X11/Xlocale.h
5842 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5843 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5844 echo "configure:5845: checking for $ac_hdr" >&5
5846 cat > conftest.$ac_ext <<EOF
5847 #line 5848 "configure"
5848 #include "confdefs.h"
5851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5852 { (eval echo configure:5853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5854 if test -z "$ac_err"; then
5856 eval "ac_cv_header_$ac_safe=yes"
5859 echo "configure: failed program was:" >&5
5860 cat conftest.$ac_ext >&5
5862 eval "ac_cv_header_$ac_safe=no"
5865 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5866 echo "$ac_t""yes" 1>&6
5867 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5868 { test "$extra_verbose" = "yes" && cat << EOF
5871 cat >> confdefs.h <<EOF
5872 #define $ac_tr_hdr 1
5877 echo "$ac_t""no" 1>&6
5882 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5883 echo "configure:5884: checking for XFree86" >&5
5884 if test -d "/usr/X386/include" -o \
5885 -f "/etc/XF86Config" -o \
5886 -f "/etc/X11/XF86Config" -o \
5887 -f "/usr/X11R6/lib/X11/XF86Config"; then
5888 echo "$ac_t""yes" 1>&6
5889 { test "$extra_verbose" = "yes" && cat << \EOF
5890 Defining HAVE_XFREE386
5892 cat >> confdefs.h <<\EOF
5893 #define HAVE_XFREE386 1
5898 echo "$ac_t""no" 1>&6
5901 test -z "$with_xmu" && {
5902 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5903 echo "configure:5904: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5904 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5906 xe_check_libs=" -lXmu "
5907 cat > conftest.$ac_ext <<EOF
5908 #line 5909 "configure"
5909 #include "confdefs.h"
5910 /* Override any gcc2 internal prototype to avoid an error. */
5911 /* We use char because int might match the return type of a gcc2
5912 builtin and then its argument prototype would still apply. */
5913 char XmuReadBitmapDataFromFile();
5916 XmuReadBitmapDataFromFile()
5919 if { (eval echo configure:5920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5921 eval "ac_cv_lib_$ac_lib_var=yes"
5923 echo "configure: failed program was:" >&5
5924 cat conftest.$ac_ext >&5
5926 eval "ac_cv_lib_$ac_lib_var=no"
5931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5932 echo "$ac_t""yes" 1>&6
5935 echo "$ac_t""no" 1>&6
5940 if test "$with_xmu" = "no"; then
5941 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
5942 echo " xemacs will be linked with \"xmu.o\""
5945 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
5946 { test "$extra_verbose" = "yes" && cat << \EOF
5949 cat >> confdefs.h <<\EOF
5957 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5958 echo "configure:5959: checking for main in -lXbsd" >&5
5959 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5961 xe_check_libs=" -lXbsd "
5962 cat > conftest.$ac_ext <<EOF
5963 #line 5964 "configure"
5964 #include "confdefs.h"
5970 if { (eval echo configure:5971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5972 eval "ac_cv_lib_$ac_lib_var=yes"
5974 echo "configure: failed program was:" >&5
5975 cat conftest.$ac_ext >&5
5977 eval "ac_cv_lib_$ac_lib_var=no"
5982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5983 echo "$ac_t""yes" 1>&6
5984 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
5986 echo "$ac_t""no" 1>&6
5991 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
5992 if test "$GCC" = "yes"; then
5993 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
5994 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
5997 "xlc" ) CC="xlc_r" ;;
5998 "xlC" ) CC="xlC_r" ;;
6005 if test "$with_msw" != "no"; then
6006 echo "checking for MS-Windows" 1>&6
6007 echo "configure:6008: checking for MS-Windows" >&5
6009 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6010 echo "configure:6011: checking for main in -lgdi32" >&5
6011 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6013 xe_check_libs=" -lgdi32 "
6014 cat > conftest.$ac_ext <<EOF
6015 #line 6016 "configure"
6016 #include "confdefs.h"
6022 if { (eval echo configure:6023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6024 eval "ac_cv_lib_$ac_lib_var=yes"
6026 echo "configure: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6029 eval "ac_cv_lib_$ac_lib_var=no"
6034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6035 echo "$ac_t""yes" 1>&6
6038 echo "$ac_t""no" 1>&6
6042 if test "$with_msw" = "yes"; then
6043 { test "$extra_verbose" = "yes" && cat << \EOF
6044 Defining HAVE_MS_WINDOWS
6046 cat >> confdefs.h <<\EOF
6047 #define HAVE_MS_WINDOWS 1
6051 install_pp="$blddir/lib-src/installexe.sh"
6052 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
6053 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6054 if test "$window_system" != x11; then
6056 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6057 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6058 echo " xemacs will be linked with \"scrollbar-msw.o\""
6060 test "$with_menubars" != "no" && with_menubars=msw \
6061 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6062 echo " xemacs will be linked with \"menubar-msw.o\""
6064 test "$with_toolbars" != "no" && with_toolbars=msw \
6065 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6066 echo " xemacs will be linked with \"toolbar-msw.o\""
6068 test "$with_dialogs" != "no" && with_dialogs=msw \
6069 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6070 echo " xemacs will be linked with \"dialog-msw.o\""
6072 test "$with_widgets" != "no" && with_widgets=msw
6074 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6075 echo " xemacs will be linked with \"scrollbar-msw.o\""
6077 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6078 echo " xemacs will be linked with \"menubar-msw.o\""
6080 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6081 echo " xemacs will be linked with \"toolbar-msw.o\""
6083 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6084 echo " xemacs will be linked with \"dialog-msw.o\""
6087 cat > conftest.$ac_ext <<EOF
6088 #line 6089 "configure"
6089 #include "confdefs.h"
6091 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6093 if { (eval echo configure:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6095 { test "$extra_verbose" = "yes" && cat << \EOF
6096 Defining HAVE_MSG_SELECT
6098 cat >> confdefs.h <<\EOF
6099 #define HAVE_MSG_SELECT 1
6105 echo "configure: failed program was:" >&5
6106 cat conftest.$ac_ext >&5
6110 with_file_coding=yes
6111 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
6112 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\""
6119 test -z "$window_system" && window_system="none"
6121 if test "$window_system" = "none"; then
6122 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6124 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6125 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6127 eval "with_${feature}=no"
6130 test -z "$with_toolbars" && with_toolbars=yes
6133 if test "$with_msw" != "yes"; then
6134 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6136 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6137 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6139 eval "with_${feature}=no"
6145 if test "$with_x11" != "yes"; then
6146 for feature in tooltalk cde offix wmcommand xim xmu
6148 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6149 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6151 eval "with_${feature}=no"
6157 case "$window_system" in
6158 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6159 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6160 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6163 case "$x_libraries" in *X11R4* )
6164 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6165 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6168 echo "checking for WM_COMMAND option" 1>&6
6169 echo "configure:6170: checking for WM_COMMAND option" >&5;
6170 if test "$with_wmcommand" != "no"; then
6171 { test "$extra_verbose" = "yes" && cat << \EOF
6172 Defining HAVE_WMCOMMAND
6174 cat >> confdefs.h <<\EOF
6175 #define HAVE_WMCOMMAND 1
6181 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6182 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6183 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6184 echo "configure:6185: checking for X11/Xauth.h" >&5
6186 cat > conftest.$ac_ext <<EOF
6187 #line 6188 "configure"
6188 #include "confdefs.h"
6189 #include <X11/Xauth.h>
6191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6192 { (eval echo configure:6193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6194 if test -z "$ac_err"; then
6196 eval "ac_cv_header_$ac_safe=yes"
6199 echo "configure: failed program was:" >&5
6200 cat conftest.$ac_ext >&5
6202 eval "ac_cv_header_$ac_safe=no"
6205 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6206 echo "$ac_t""yes" 1>&6
6209 echo "$ac_t""no" 1>&6
6213 test -z "$with_xauth" && {
6214 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6215 echo "configure:6216: checking for XauGetAuthByAddr in -lXau" >&5
6216 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6218 xe_check_libs=" -lXau "
6219 cat > conftest.$ac_ext <<EOF
6220 #line 6221 "configure"
6221 #include "confdefs.h"
6222 /* Override any gcc2 internal prototype to avoid an error. */
6223 /* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */
6225 char XauGetAuthByAddr();
6231 if { (eval echo configure:6232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6233 eval "ac_cv_lib_$ac_lib_var=yes"
6235 echo "configure: failed program was:" >&5
6236 cat conftest.$ac_ext >&5
6238 eval "ac_cv_lib_$ac_lib_var=no"
6243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6244 echo "$ac_t""yes" 1>&6
6247 echo "$ac_t""no" 1>&6
6252 test -z "$with_xauth" && with_xauth=yes
6253 if test "$with_xauth" = "yes"; then
6254 { test "$extra_verbose" = "yes" && cat << \EOF
6257 cat >> confdefs.h <<\EOF
6258 #define HAVE_XAUTH 1
6264 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
6272 if test "$with_tooltalk" != "no" ; then
6273 for dir in "" "Tt/" "desktop/" ; do
6274 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6275 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6276 echo "configure:6277: checking for ${dir}tt_c.h" >&5
6278 cat > conftest.$ac_ext <<EOF
6279 #line 6280 "configure"
6280 #include "confdefs.h"
6281 #include <${dir}tt_c.h>
6283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6284 { (eval echo configure:6285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6286 if test -z "$ac_err"; then
6288 eval "ac_cv_header_$ac_safe=yes"
6291 echo "configure: failed program was:" >&5
6292 cat conftest.$ac_ext >&5
6294 eval "ac_cv_header_$ac_safe=no"
6297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6298 echo "$ac_t""yes" 1>&6
6299 tt_c_h_path="${dir}tt_c.h"; break
6301 echo "$ac_t""no" 1>&6
6305 if test -z "$tt_c_h_path"; then
6306 if test "$with_tooltalk" = "yes"; then
6307 (echo "$progname: Usage error:"
6308 echo " " "Unable to find required tooltalk header files."
6309 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6314 if test "$with_tooltalk" != "no" ; then
6315 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6317 xe_msg_checking="for tt_message_create in -ltt"
6318 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6319 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6320 echo "configure:6321: checking "$xe_msg_checking"" >&5
6321 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6323 xe_check_libs=" -ltt $extra_libs"
6324 cat > conftest.$ac_ext <<EOF
6325 #line 6326 "configure"
6326 #include "confdefs.h"
6327 /* Override any gcc2 internal prototype to avoid an error. */
6328 /* We use char because int might match the return type of a gcc2
6329 builtin and then its argument prototype would still apply. */
6330 char tt_message_create();
6336 if { (eval echo configure:6337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6338 eval "ac_cv_lib_$ac_lib_var=yes"
6340 echo "configure: failed program was:" >&5
6341 cat conftest.$ac_ext >&5
6343 eval "ac_cv_lib_$ac_lib_var=no"
6348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6349 echo "$ac_t""yes" 1>&6
6350 tt_libs="-ltt $extra_libs"; break
6352 echo "$ac_t""no" 1>&6
6358 if test -z "$tt_libs"; then
6359 if test "$with_tooltalk" = "yes"; then
6360 (echo "$progname: Usage error:"
6361 echo " " "Unable to find required tooltalk libraries."
6362 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6367 test -z "$with_tooltalk" && with_tooltalk=yes
6368 if test "$with_tooltalk" = "yes"; then
6369 { test "$extra_verbose" = "yes" && cat << \EOF
6372 cat >> confdefs.h <<\EOF
6377 { test "$extra_verbose" = "yes" && cat << EOF
6378 Defining TT_C_H_PATH = "$tt_c_h_path"
6380 cat >> confdefs.h <<EOF
6381 #define TT_C_H_PATH "$tt_c_h_path"
6385 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6386 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6387 echo " xemacs will be linked with \"tooltalk.o\""
6391 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6392 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6393 echo "configure:6394: checking for Dt/Dt.h" >&5
6395 cat > conftest.$ac_ext <<EOF
6396 #line 6397 "configure"
6397 #include "confdefs.h"
6400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6401 { (eval echo configure:6402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6403 if test -z "$ac_err"; then
6405 eval "ac_cv_header_$ac_safe=yes"
6408 echo "configure: failed program was:" >&5
6409 cat conftest.$ac_ext >&5
6411 eval "ac_cv_header_$ac_safe=no"
6414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6415 echo "$ac_t""yes" 1>&6
6418 echo "$ac_t""no" 1>&6
6422 test -z "$with_cde" && {
6423 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6424 echo "configure:6425: checking for DtDndDragStart in -lDtSvc" >&5
6425 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6427 xe_check_libs=" -lDtSvc "
6428 cat > conftest.$ac_ext <<EOF
6429 #line 6430 "configure"
6430 #include "confdefs.h"
6431 /* Override any gcc2 internal prototype to avoid an error. */
6432 /* We use char because int might match the return type of a gcc2
6433 builtin and then its argument prototype would still apply. */
6434 char DtDndDragStart();
6440 if { (eval echo configure:6441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6442 eval "ac_cv_lib_$ac_lib_var=yes"
6444 echo "configure: failed program was:" >&5
6445 cat conftest.$ac_ext >&5
6447 eval "ac_cv_lib_$ac_lib_var=no"
6452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6453 echo "$ac_t""yes" 1>&6
6456 echo "$ac_t""no" 1>&6
6461 test -z "$with_cde" && with_cde=yes
6462 if test "$with_dragndrop" = no; then
6463 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6466 if test "$with_cde" = "yes" ; then
6467 { test "$extra_verbose" = "yes" && cat << \EOF
6470 cat >> confdefs.h <<\EOF
6475 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6476 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6477 with_tooltalk=yes # CDE requires Tooltalk
6478 need_motif=yes # CDE requires Motif
6481 test "$window_system" != "x11" && with_offix=no
6482 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6483 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6486 if test "$with_dragndrop" = no; then
6487 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6490 if test "$with_cde" = yes; then
6491 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6494 test -z "$with_offix" && with_offix=no
6495 if test "$with_offix" = "yes"; then
6496 { test "$extra_verbose" = "yes" && cat << \EOF
6497 Defining HAVE_OFFIX_DND
6499 cat >> confdefs.h <<\EOF
6500 #define HAVE_OFFIX_DND 1
6504 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6505 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6508 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6509 echo "configure:6510: checking if drag and drop API is needed" >&5
6510 if test "$with_dragndrop" != "no" ; then
6511 if test -n "$dragndrop_proto" ; then
6513 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6514 { test "$extra_verbose" = "yes" && cat << \EOF
6515 Defining HAVE_DRAGNDROP
6517 cat >> confdefs.h <<\EOF
6518 #define HAVE_DRAGNDROP 1
6522 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6525 echo "$ac_t""no" 1>&6
6529 echo "checking for LDAP" 1>&6
6530 echo "configure:6531: checking for LDAP" >&5
6531 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6532 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6533 echo "configure:6534: checking for ldap.h" >&5
6535 cat > conftest.$ac_ext <<EOF
6536 #line 6537 "configure"
6537 #include "confdefs.h"
6540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6541 { (eval echo configure:6542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6543 if test -z "$ac_err"; then
6545 eval "ac_cv_header_$ac_safe=yes"
6548 echo "configure: failed program was:" >&5
6549 cat conftest.$ac_ext >&5
6551 eval "ac_cv_header_$ac_safe=no"
6554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6555 echo "$ac_t""yes" 1>&6
6558 echo "$ac_t""no" 1>&6
6562 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6563 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6564 echo "configure:6565: checking for lber.h" >&5
6566 cat > conftest.$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6572 { (eval echo configure:6573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6574 if test -z "$ac_err"; then
6576 eval "ac_cv_header_$ac_safe=yes"
6579 echo "configure: failed program was:" >&5
6580 cat conftest.$ac_ext >&5
6582 eval "ac_cv_header_$ac_safe=no"
6585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6586 echo "$ac_t""yes" 1>&6
6589 echo "$ac_t""no" 1>&6
6593 if test "$with_ldap" != "no"; then
6595 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6596 echo "configure:6597: checking for ldap_search in -lldap" >&5
6597 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6599 xe_check_libs=" -lldap "
6600 cat > conftest.$ac_ext <<EOF
6601 #line 6602 "configure"
6602 #include "confdefs.h"
6603 /* Override any gcc2 internal prototype to avoid an error. */
6604 /* We use char because int might match the return type of a gcc2
6605 builtin and then its argument prototype would still apply. */
6612 if { (eval echo configure:6613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6614 eval "ac_cv_lib_$ac_lib_var=yes"
6616 echo "configure: failed program was:" >&5
6617 cat conftest.$ac_ext >&5
6619 eval "ac_cv_lib_$ac_lib_var=no"
6624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6625 echo "$ac_t""yes" 1>&6
6626 with_ldap_nolber=yes
6628 echo "$ac_t""no" 1>&6
6633 test "$with_ldap_nolber" = "no" && {
6634 xe_msg_checking="for ldap_open in -lldap"
6635 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6636 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6637 echo "configure:6638: checking "$xe_msg_checking"" >&5
6638 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6640 xe_check_libs=" -lldap -llber"
6641 cat > conftest.$ac_ext <<EOF
6642 #line 6643 "configure"
6643 #include "confdefs.h"
6644 /* Override any gcc2 internal prototype to avoid an error. */
6645 /* We use char because int might match the return type of a gcc2
6646 builtin and then its argument prototype would still apply. */
6653 if { (eval echo configure:6654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6655 eval "ac_cv_lib_$ac_lib_var=yes"
6657 echo "configure: failed program was:" >&5
6658 cat conftest.$ac_ext >&5
6660 eval "ac_cv_lib_$ac_lib_var=no"
6665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6666 echo "$ac_t""yes" 1>&6
6669 echo "$ac_t""no" 1>&6
6674 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
6675 xe_msg_checking="for ldap_open in -lldap"
6676 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
6677 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6678 echo "configure:6679: checking "$xe_msg_checking"" >&5
6679 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6681 xe_check_libs=" -lldap -llber -lkrb"
6682 cat > conftest.$ac_ext <<EOF
6683 #line 6684 "configure"
6684 #include "confdefs.h"
6685 /* Override any gcc2 internal prototype to avoid an error. */
6686 /* We use char because int might match the return type of a gcc2
6687 builtin and then its argument prototype would still apply. */
6694 if { (eval echo configure:6695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6696 eval "ac_cv_lib_$ac_lib_var=yes"
6698 echo "configure: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6701 eval "ac_cv_lib_$ac_lib_var=no"
6706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6707 echo "$ac_t""yes" 1>&6
6710 echo "$ac_t""no" 1>&6
6715 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
6716 xe_msg_checking="for ldap_open in -lldap"
6717 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
6718 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6719 echo "configure:6720: checking "$xe_msg_checking"" >&5
6720 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6722 xe_check_libs=" -lldap -llber -lkrb -ldes"
6723 cat > conftest.$ac_ext <<EOF
6724 #line 6725 "configure"
6725 #include "confdefs.h"
6726 /* Override any gcc2 internal prototype to avoid an error. */
6727 /* We use char because int might match the return type of a gcc2
6728 builtin and then its argument prototype would still apply. */
6735 if { (eval echo configure:6736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6737 eval "ac_cv_lib_$ac_lib_var=yes"
6739 echo "configure: failed program was:" >&5
6740 cat conftest.$ac_ext >&5
6742 eval "ac_cv_lib_$ac_lib_var=no"
6747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6748 echo "$ac_t""yes" 1>&6
6749 with_ldap_krbdes=yes
6751 echo "$ac_t""no" 1>&6
6756 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
6758 if test "$with_ldap" = "yes"; then
6759 { test "$extra_verbose" = "yes" && cat << \EOF
6762 cat >> confdefs.h <<\EOF
6767 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6768 echo " xemacs will be linked with \"eldap.o\""
6770 if test "$with_ldap_nolber" = "yes" ; then
6771 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6773 if test "$with_ldap_krb" = "yes" ; then
6774 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6776 if test "$with_ldap_krbdes" = "yes" ; then
6777 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
6778 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6780 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6781 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6783 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
6785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6786 echo "configure:6787: checking for $ac_func" >&5
6788 cat > conftest.$ac_ext <<EOF
6789 #line 6790 "configure"
6790 #include "confdefs.h"
6791 /* System header to define __stub macros and hopefully few prototypes,
6792 which can conflict with char $ac_func(); below. */
6794 /* Override any gcc2 internal prototype to avoid an error. */
6795 /* We use char because int might match the return type of a gcc2
6796 builtin and then its argument prototype would still apply. */
6801 /* The GNU C library defines this for functions which it implements
6802 to always fail with ENOSYS. Some functions are actually named
6803 something starting with __ and the normal name is an alias. */
6804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6812 if { (eval echo configure:6813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6814 eval "ac_cv_func_$ac_func=yes"
6816 echo "configure: failed program was:" >&5
6817 cat conftest.$ac_ext >&5
6819 eval "ac_cv_func_$ac_func=no"
6823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6824 echo "$ac_t""yes" 1>&6
6825 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6826 { test "$extra_verbose" = "yes" && cat << EOF
6827 Defining $ac_tr_func
6829 cat >> confdefs.h <<EOF
6830 #define $ac_tr_func 1
6835 echo "$ac_t""no" 1>&6
6842 if test "$window_system" != "none"; then
6843 echo "checking for graphics libraries" 1>&6
6844 echo "configure:6845: checking for graphics libraries" >&5
6847 if test -z "$with_xpm"; then
6848 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6849 echo "configure:6850: checking for Xpm - no older than 3.4f" >&5
6851 cat > conftest.$ac_ext <<EOF
6852 #line 6853 "configure"
6853 #include "confdefs.h"
6854 #include <X11/xpm.h>
6855 int main(int c, char **v) {
6857 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6858 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6860 if { (eval echo configure:6861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6862 ./conftest dummy_arg; xpm_status=$?;
6863 if test "$xpm_status" = "0"; then
6867 if test "$xpm_status" = "1"; then
6868 xpm_problem="Xpm library version and header file version don't match!"
6869 elif test "$xpm_status" = "2"; then
6870 xpm_problem="Xpm library version is too old!"
6872 xpm_problem="Internal xpm detection logic error!"
6875 *** WARNING *** $xpm_problem
6876 I'm not touching that with a 10-foot pole!
6877 If you really want to use the installed version of Xpm, rerun
6878 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
6882 echo "configure: failed program was:" >&5
6883 cat conftest.$ac_ext >&5
6889 echo "$ac_t""$with_xpm" 1>&6
6891 if test "$with_xpm" = "yes"; then
6892 { test "$extra_verbose" = "yes" && cat << \EOF
6895 cat >> confdefs.h <<\EOF
6900 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6901 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6902 echo "configure:6903: checking for \"FOR_MSW\" xpm" >&5
6904 cat > conftest.$ac_ext <<EOF
6905 #line 6906 "configure"
6906 #include "confdefs.h"
6909 XpmCreatePixmapFromData()
6912 if { (eval echo configure:6913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6916 echo "configure: failed program was:" >&5
6917 cat conftest.$ac_ext >&5
6923 echo "$ac_t""$xpm_for_msw" 1>&6
6924 if test "$xpm_for_msw" = "yes"; then
6925 { test "$extra_verbose" = "yes" && cat << \EOF
6928 cat >> confdefs.h <<\EOF
6936 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6937 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6938 echo "configure:6939: checking for compface.h" >&5
6940 cat > conftest.$ac_ext <<EOF
6941 #line 6942 "configure"
6942 #include "confdefs.h"
6943 #include <compface.h>
6945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6946 { (eval echo configure:6947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6948 if test -z "$ac_err"; then
6950 eval "ac_cv_header_$ac_safe=yes"
6953 echo "configure: failed program was:" >&5
6954 cat conftest.$ac_ext >&5
6956 eval "ac_cv_header_$ac_safe=no"
6959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6960 echo "$ac_t""yes" 1>&6
6963 echo "$ac_t""no" 1>&6
6967 test -z "$with_xface" && {
6968 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6969 echo "configure:6970: checking for UnGenFace in -lcompface" >&5
6970 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6972 xe_check_libs=" -lcompface "
6973 cat > conftest.$ac_ext <<EOF
6974 #line 6975 "configure"
6975 #include "confdefs.h"
6976 /* Override any gcc2 internal prototype to avoid an error. */
6977 /* We use char because int might match the return type of a gcc2
6978 builtin and then its argument prototype would still apply. */
6985 if { (eval echo configure:6986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6987 eval "ac_cv_lib_$ac_lib_var=yes"
6989 echo "configure: failed program was:" >&5
6990 cat conftest.$ac_ext >&5
6992 eval "ac_cv_lib_$ac_lib_var=no"
6997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6998 echo "$ac_t""yes" 1>&6
7001 echo "$ac_t""no" 1>&6
7006 test -z "$with_xface" && with_xface=yes
7007 if test "$with_xface" = "yes"; then
7008 { test "$extra_verbose" = "yes" && cat << \EOF
7011 cat >> confdefs.h <<\EOF
7012 #define HAVE_XFACE 1
7016 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7019 if test "$with_gif" != "no"; then
7021 { test "$extra_verbose" = "yes" && cat << \EOF
7024 cat >> confdefs.h <<\EOF
7029 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7030 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7034 if test "$with_png $with_tiff" != "no no"; then
7036 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7037 echo "configure:7038: checking for inflate in -lc" >&5
7038 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7040 xe_check_libs=" -lc "
7041 cat > conftest.$ac_ext <<EOF
7042 #line 7043 "configure"
7043 #include "confdefs.h"
7044 /* Override any gcc2 internal prototype to avoid an error. */
7045 /* We use char because int might match the return type of a gcc2
7046 builtin and then its argument prototype would still apply. */
7053 if { (eval echo configure:7054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7055 eval "ac_cv_lib_$ac_lib_var=yes"
7057 echo "configure: failed program was:" >&5
7058 cat conftest.$ac_ext >&5
7060 eval "ac_cv_lib_$ac_lib_var=no"
7065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7066 echo "$ac_t""yes" 1>&6
7069 echo "$ac_t""no" 1>&6
7071 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7072 echo "configure:7073: checking for inflate in -lz" >&5
7073 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7075 xe_check_libs=" -lz "
7076 cat > conftest.$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7079 /* Override any gcc2 internal prototype to avoid an error. */
7080 /* We use char because int might match the return type of a gcc2
7081 builtin and then its argument prototype would still apply. */
7088 if { (eval echo configure:7089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7090 eval "ac_cv_lib_$ac_lib_var=yes"
7092 echo "configure: failed program was:" >&5
7093 cat conftest.$ac_ext >&5
7095 eval "ac_cv_lib_$ac_lib_var=no"
7100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7101 echo "$ac_t""yes" 1>&6
7102 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7104 echo "$ac_t""no" 1>&6
7106 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7107 echo "configure:7108: checking for inflate in -lgz" >&5
7108 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7110 xe_check_libs=" -lgz "
7111 cat > conftest.$ac_ext <<EOF
7112 #line 7113 "configure"
7113 #include "confdefs.h"
7114 /* Override any gcc2 internal prototype to avoid an error. */
7115 /* We use char because int might match the return type of a gcc2
7116 builtin and then its argument prototype would still apply. */
7123 if { (eval echo configure:7124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7125 eval "ac_cv_lib_$ac_lib_var=yes"
7127 echo "configure: failed program was:" >&5
7128 cat conftest.$ac_ext >&5
7130 eval "ac_cv_lib_$ac_lib_var=no"
7135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7136 echo "$ac_t""yes" 1>&6
7137 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7139 echo "$ac_t""no" 1>&6
7151 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7152 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7153 echo "configure:7154: checking for jpeglib.h" >&5
7155 cat > conftest.$ac_ext <<EOF
7156 #line 7157 "configure"
7157 #include "confdefs.h"
7158 #include <jpeglib.h>
7160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7161 { (eval echo configure:7162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7163 if test -z "$ac_err"; then
7165 eval "ac_cv_header_$ac_safe=yes"
7168 echo "configure: failed program was:" >&5
7169 cat conftest.$ac_ext >&5
7171 eval "ac_cv_header_$ac_safe=no"
7174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7175 echo "$ac_t""yes" 1>&6
7178 echo "$ac_t""no" 1>&6
7182 test -z "$with_jpeg" && {
7183 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7184 echo "configure:7185: checking for jpeg_destroy_decompress in -ljpeg" >&5
7185 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7187 xe_check_libs=" -ljpeg "
7188 cat > conftest.$ac_ext <<EOF
7189 #line 7190 "configure"
7190 #include "confdefs.h"
7191 /* Override any gcc2 internal prototype to avoid an error. */
7192 /* We use char because int might match the return type of a gcc2
7193 builtin and then its argument prototype would still apply. */
7194 char jpeg_destroy_decompress();
7197 jpeg_destroy_decompress()
7200 if { (eval echo configure:7201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7202 eval "ac_cv_lib_$ac_lib_var=yes"
7204 echo "configure: failed program was:" >&5
7205 cat conftest.$ac_ext >&5
7207 eval "ac_cv_lib_$ac_lib_var=no"
7212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7213 echo "$ac_t""yes" 1>&6
7216 echo "$ac_t""no" 1>&6
7221 test -z "$with_jpeg" && with_jpeg=yes
7222 if test "$with_jpeg" = "yes"; then
7223 { test "$extra_verbose" = "yes" && cat << \EOF
7226 cat >> confdefs.h <<\EOF
7231 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7235 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7236 echo "configure:7237: checking for pow" >&5
7238 cat > conftest.$ac_ext <<EOF
7239 #line 7240 "configure"
7240 #include "confdefs.h"
7241 /* System header to define __stub macros and hopefully few prototypes,
7242 which can conflict with char pow(); below. */
7244 /* Override any gcc2 internal prototype to avoid an error. */
7245 /* We use char because int might match the return type of a gcc2
7246 builtin and then its argument prototype would still apply. */
7251 /* The GNU C library defines this for functions which it implements
7252 to always fail with ENOSYS. Some functions are actually named
7253 something starting with __ and the normal name is an alias. */
7254 #if defined (__stub_pow) || defined (__stub___pow)
7262 if { (eval echo configure:7263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7264 eval "ac_cv_func_pow=yes"
7266 echo "configure: failed program was:" >&5
7267 cat conftest.$ac_ext >&5
7269 eval "ac_cv_func_pow=no"
7273 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7274 echo "$ac_t""yes" 1>&6
7277 echo "$ac_t""no" 1>&6
7281 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7282 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7283 echo "configure:7284: checking for png.h" >&5
7285 cat > conftest.$ac_ext <<EOF
7286 #line 7287 "configure"
7287 #include "confdefs.h"
7290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7291 { (eval echo configure:7292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7293 if test -z "$ac_err"; then
7295 eval "ac_cv_header_$ac_safe=yes"
7298 echo "configure: failed program was:" >&5
7299 cat conftest.$ac_ext >&5
7301 eval "ac_cv_header_$ac_safe=no"
7304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7305 echo "$ac_t""yes" 1>&6
7308 echo "$ac_t""no" 1>&6
7312 test -z "$with_png" && {
7313 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7314 echo "configure:7315: checking for png_read_image in -lpng" >&5
7315 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7317 xe_check_libs=" -lpng "
7318 cat > conftest.$ac_ext <<EOF
7319 #line 7320 "configure"
7320 #include "confdefs.h"
7321 /* Override any gcc2 internal prototype to avoid an error. */
7322 /* We use char because int might match the return type of a gcc2
7323 builtin and then its argument prototype would still apply. */
7324 char png_read_image();
7330 if { (eval echo configure:7331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7332 eval "ac_cv_lib_$ac_lib_var=yes"
7334 echo "configure: failed program was:" >&5
7335 cat conftest.$ac_ext >&5
7337 eval "ac_cv_lib_$ac_lib_var=no"
7342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7343 echo "$ac_t""yes" 1>&6
7346 echo "$ac_t""no" 1>&6
7351 if test -z "$with_png"; then
7352 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7353 echo "configure:7354: checking for workable png version information" >&5
7354 xe_check_libs="-lpng -lz"
7355 cat > conftest.$ac_ext <<EOF
7356 #line 7357 "configure"
7357 #include "confdefs.h"
7359 int main(int c, char **v) {
7360 if (c == 1) return 0;
7361 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7362 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7364 if { (eval echo configure:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7366 ./conftest dummy_arg; png_status=$?;
7367 if test "$png_status" = "0"; then
7371 if test "$png_status" = "1"; then
7372 png_problem="PNG library version and header file don't match!"
7373 elif test "$png_status" = "2"; then
7374 png_problem="PNG library version too old (pre 1.0.2)!"
7377 *** WARNING *** $png_problem
7378 I'm not touching that with a 10-foot pole!
7379 If you really want to use the installed version of libPNG, rerun
7380 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7384 echo "configure: failed program was:" >&5
7385 cat conftest.$ac_ext >&5
7391 echo "$ac_t""$with_png" 1>&6
7393 if test "$with_png" = "yes"; then
7394 { test "$extra_verbose" = "yes" && cat << \EOF
7397 cat >> confdefs.h <<\EOF
7402 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7405 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7406 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7407 echo "configure:7408: checking for tiffio.h" >&5
7409 cat > conftest.$ac_ext <<EOF
7410 #line 7411 "configure"
7411 #include "confdefs.h"
7414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7415 { (eval echo configure:7416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7417 if test -z "$ac_err"; then
7419 eval "ac_cv_header_$ac_safe=yes"
7422 echo "configure: failed program was:" >&5
7423 cat conftest.$ac_ext >&5
7425 eval "ac_cv_header_$ac_safe=no"
7428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7429 echo "$ac_t""yes" 1>&6
7432 echo "$ac_t""no" 1>&6
7436 test -z "$with_tiff" && {
7437 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7438 echo "configure:7439: checking for TIFFClientOpen in -ltiff" >&5
7439 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7441 xe_check_libs=" -ltiff "
7442 cat > conftest.$ac_ext <<EOF
7443 #line 7444 "configure"
7444 #include "confdefs.h"
7445 /* Override any gcc2 internal prototype to avoid an error. */
7446 /* We use char because int might match the return type of a gcc2
7447 builtin and then its argument prototype would still apply. */
7448 char TIFFClientOpen();
7454 if { (eval echo configure:7455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7456 eval "ac_cv_lib_$ac_lib_var=yes"
7458 echo "configure: failed program was:" >&5
7459 cat conftest.$ac_ext >&5
7461 eval "ac_cv_lib_$ac_lib_var=no"
7466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7467 echo "$ac_t""yes" 1>&6
7470 echo "$ac_t""no" 1>&6
7475 test -z "$with_tiff" && with_tiff=yes
7476 if test "$with_tiff" = "yes"; then
7477 { test "$extra_verbose" = "yes" && cat << \EOF
7480 cat >> confdefs.h <<\EOF
7485 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7490 if test "$with_x11" = "yes"; then
7492 echo "checking for X11 graphics libraries" 1>&6
7493 echo "configure:7494: checking for X11 graphics libraries" >&5
7496 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7497 echo "configure:7498: checking for XawScrollbarSetThumb in -lXaw" >&5
7498 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7500 xe_check_libs=" -lXaw "
7501 cat > conftest.$ac_ext <<EOF
7502 #line 7503 "configure"
7503 #include "confdefs.h"
7504 /* Override any gcc2 internal prototype to avoid an error. */
7505 /* We use char because int might match the return type of a gcc2
7506 builtin and then its argument prototype would still apply. */
7507 char XawScrollbarSetThumb();
7510 XawScrollbarSetThumb()
7513 if { (eval echo configure:7514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7515 eval "ac_cv_lib_$ac_lib_var=yes"
7517 echo "configure: failed program was:" >&5
7518 cat conftest.$ac_ext >&5
7520 eval "ac_cv_lib_$ac_lib_var=no"
7525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7526 echo "$ac_t""yes" 1>&6
7529 echo "$ac_t""no" 1>&6
7536 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
7537 echo "configure:7538: checking for XawScrollbarSetThumb in -lXaw3d" >&5
7538 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7540 xe_check_libs=" -lXaw3d "
7541 cat > conftest.$ac_ext <<EOF
7542 #line 7543 "configure"
7543 #include "confdefs.h"
7544 /* Override any gcc2 internal prototype to avoid an error. */
7545 /* We use char because int might match the return type of a gcc2
7546 builtin and then its argument prototype would still apply. */
7547 char XawScrollbarSetThumb();
7550 XawScrollbarSetThumb()
7553 if { (eval echo configure:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7555 eval "ac_cv_lib_$ac_lib_var=yes"
7557 echo "configure: failed program was:" >&5
7558 cat conftest.$ac_ext >&5
7560 eval "ac_cv_lib_$ac_lib_var=no"
7565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7566 echo "$ac_t""yes" 1>&6
7569 echo "$ac_t""no" 1>&6
7575 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7576 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7577 echo "configure:7578: checking for Xm/Xm.h" >&5
7579 cat > conftest.$ac_ext <<EOF
7580 #line 7581 "configure"
7581 #include "confdefs.h"
7584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7585 { (eval echo configure:7586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7587 if test -z "$ac_err"; then
7589 eval "ac_cv_header_$ac_safe=yes"
7592 echo "configure: failed program was:" >&5
7593 cat conftest.$ac_ext >&5
7595 eval "ac_cv_header_$ac_safe=no"
7598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7599 echo "$ac_t""yes" 1>&6
7601 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7602 echo "configure:7603: checking for XmStringFree in -lXm" >&5
7603 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7605 xe_check_libs=" -lXm "
7606 cat > conftest.$ac_ext <<EOF
7607 #line 7608 "configure"
7608 #include "confdefs.h"
7609 /* Override any gcc2 internal prototype to avoid an error. */
7610 /* We use char because int might match the return type of a gcc2
7611 builtin and then its argument prototype would still apply. */
7612 char XmStringFree();
7618 if { (eval echo configure:7619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7620 eval "ac_cv_lib_$ac_lib_var=yes"
7622 echo "configure: failed program was:" >&5
7623 cat conftest.$ac_ext >&5
7625 eval "ac_cv_lib_$ac_lib_var=no"
7630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7631 echo "$ac_t""yes" 1>&6
7634 echo "$ac_t""no" 1>&6
7640 echo "$ac_t""no" 1>&6
7645 if test "$have_motif" = "yes"; then
7646 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7647 echo "configure:7648: checking for Lesstif" >&5
7648 cat > conftest.$ac_ext <<EOF
7649 #line 7650 "configure"
7650 #include "confdefs.h"
7652 #ifdef LESSTIF_VERSION
7657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7658 egrep "yes" >/dev/null 2>&1; then
7667 echo "$ac_t""$have_lesstif" 1>&6
7672 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
7673 with_menubars="lucid" ;;
7675 case "$with_dialogs" in "" | "yes" | "lucid" )
7676 if test "$have_motif" = "yes"; then with_dialogs="motif"
7677 elif test "$have_xaw3d" = "yes"; then with_dialogs="athena3d"
7678 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
7679 else with_dialogs=no
7682 case "$with_scrollbars" in "" | "yes" )
7683 with_scrollbars="lucid" ;;
7685 case "$with_widgets" in "" | "yes" | "lucid")
7686 if test "$have_motif" = "yes"; then with_widgets="motif"
7687 elif test "$have_xaw3d" = "yes"; then with_widgets="athena3d"
7688 elif test "$have_xaw" = "yes"; then with_widgets="athena"
7689 else with_widgets=no
7693 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
7695 case "$all_widgets" in
7697 { test "$extra_verbose" = "yes" && cat << \EOF
7698 Defining LWLIB_USES_ATHENA
7700 cat >> confdefs.h <<\EOF
7701 #define LWLIB_USES_ATHENA 1
7705 { test "$extra_verbose" = "yes" && cat << \EOF
7706 Defining NEED_ATHENA
7708 cat >> confdefs.h <<\EOF
7709 #define NEED_ATHENA 1
7713 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
7714 if test "$have_xaw3d"; then
7715 libs_x="-lXaw3d $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw3d\" to \$libs_x"; fi
7717 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi
7720 { test "$extra_verbose" = "yes" && cat << \EOF
7721 Defining LWLIB_USES_ATHENA
7723 cat >> confdefs.h <<\EOF
7724 #define LWLIB_USES_ATHENA 1
7728 { test "$extra_verbose" = "yes" && cat << \EOF
7729 Defining NEED_ATHENA
7731 cat >> confdefs.h <<\EOF
7732 #define NEED_ATHENA 1
7736 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
7737 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
7740 case "$all_widgets" in *motif* )
7741 { test "$extra_verbose" = "yes" && cat << \EOF
7742 Defining LWLIB_USES_MOTIF
7744 cat >> confdefs.h <<\EOF
7745 #define LWLIB_USES_MOTIF 1
7749 { test "$extra_verbose" = "yes" && cat << \EOF
7752 cat >> confdefs.h <<\EOF
7753 #define NEED_MOTIF 1
7757 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
7761 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7762 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7763 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
7764 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
7765 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
7766 case "$with_widgets" in athena* )
7767 lwlib_objs="$lwlib_objs xlwradio.o xlwcheckbox.o xlwgauge.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwradio.o xlwcheckbox.o xlwgauge.o\" to \$lwlib_objs"; fi;;
7769 case "$all_widgets" in *lucid* )
7770 { test "$extra_verbose" = "yes" && cat << \EOF
7773 cat >> confdefs.h <<\EOF
7774 #define NEED_LUCID 1
7778 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
7783 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7784 Defining LWLIB_SCROLLBARS_ATHENA
7786 cat >> confdefs.h <<\EOF
7787 #define LWLIB_SCROLLBARS_ATHENA 1
7791 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7792 Defining LWLIB_DIALOGS_ATHENA
7794 cat >> confdefs.h <<\EOF
7795 #define LWLIB_DIALOGS_ATHENA 1
7799 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7800 Defining LWLIB_SCROLLBARS_ATHENA3D
7802 cat >> confdefs.h <<\EOF
7803 #define LWLIB_SCROLLBARS_ATHENA3D 1
7807 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7808 Defining LWLIB_DIALOGS_ATHENA3D
7810 cat >> confdefs.h <<\EOF
7811 #define LWLIB_DIALOGS_ATHENA3D 1
7815 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7816 Defining LWLIB_WIDGETS_ATHENA
7818 cat >> confdefs.h <<\EOF
7819 #define LWLIB_WIDGETS_ATHENA 1
7823 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
7824 { test "$extra_verbose" = "yes" && cat << \EOF
7825 Defining LWLIB_TABS_LUCID
7827 cat >> confdefs.h <<\EOF
7828 #define LWLIB_TABS_LUCID 1
7833 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7834 Defining HAVE_MENUBARS
7836 cat >> confdefs.h <<\EOF
7837 #define HAVE_MENUBARS 1
7841 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7842 Defining HAVE_SCROLLBARS
7844 cat >> confdefs.h <<\EOF
7845 #define HAVE_SCROLLBARS 1
7849 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7850 Defining HAVE_DIALOGS
7852 cat >> confdefs.h <<\EOF
7853 #define HAVE_DIALOGS 1
7857 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7858 Defining HAVE_TOOLBARS
7860 cat >> confdefs.h <<\EOF
7861 #define HAVE_TOOLBARS 1
7865 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7866 Defining HAVE_WIDGETS
7868 cat >> confdefs.h <<\EOF
7869 #define HAVE_WIDGETS 1
7874 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7875 Defining LWLIB_MENUBARS_LUCID
7877 cat >> confdefs.h <<\EOF
7878 #define LWLIB_MENUBARS_LUCID 1
7882 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7883 Defining LWLIB_SCROLLBARS_LUCID
7885 cat >> confdefs.h <<\EOF
7886 #define LWLIB_SCROLLBARS_LUCID 1
7891 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7892 Defining LWLIB_MENUBARS_MOTIF
7894 cat >> confdefs.h <<\EOF
7895 #define LWLIB_MENUBARS_MOTIF 1
7899 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7900 Defining LWLIB_SCROLLBARS_MOTIF
7902 cat >> confdefs.h <<\EOF
7903 #define LWLIB_SCROLLBARS_MOTIF 1
7907 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7908 Defining LWLIB_DIALOGS_MOTIF
7910 cat >> confdefs.h <<\EOF
7911 #define LWLIB_DIALOGS_MOTIF 1
7915 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7916 Defining LWLIB_WIDGETS_MOTIF
7918 cat >> confdefs.h <<\EOF
7919 #define LWLIB_WIDGETS_MOTIF 1
7924 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
7925 echo " xemacs will be linked with \"menubar.o\""
7927 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
7928 echo " xemacs will be linked with \"scrollbar.o\""
7930 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
7931 echo " xemacs will be linked with \"dialog.o\""
7933 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
7934 echo " xemacs will be linked with \"toolbar.o\""
7937 if test "$with_x11" = "yes"; then
7938 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
7939 echo " xemacs will be linked with \"menubar-x.o\""
7941 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
7942 echo " xemacs will be linked with \"scrollbar-x.o\""
7944 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
7945 echo " xemacs will be linked with \"dialog-x.o\""
7947 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
7948 echo " xemacs will be linked with \"toolbar-x.o\""
7950 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
7951 echo " xemacs will be linked with \"gui-x.o\""
7954 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
7955 echo "Attempt to Build NAS sound without X"
7956 echo "Please remove NAS configuration or build with X"
7962 test -z "$with_mule" && with_mule=no
7963 test -z "$with_file_coding" && with_file_coding=no
7966 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
7967 { test "$extra_verbose" = "yes" && cat << \EOF
7968 Defining FILE_CODING
7970 cat >> confdefs.h <<\EOF
7971 #define FILE_CODING 1
7975 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
7976 echo " xemacs will be linked with \"file-coding.o\""
7980 if test "$with_mule" = "yes" ; then
7981 echo "checking for Mule-related features" 1>&6
7982 echo "configure:7983: checking for Mule-related features" >&5
7983 { test "$extra_verbose" = "yes" && cat << \EOF
7986 cat >> confdefs.h <<\EOF
7991 { test "$extra_verbose" = "yes" && cat << \EOF
7992 Defining FILE_CODING
7994 cat >> confdefs.h <<\EOF
7995 #define FILE_CODING 1
7999 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
8000 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
8003 for ac_hdr in libintl.h
8005 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8006 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8007 echo "configure:8008: checking for $ac_hdr" >&5
8009 cat > conftest.$ac_ext <<EOF
8010 #line 8011 "configure"
8011 #include "confdefs.h"
8014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8015 { (eval echo configure:8016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8017 if test -z "$ac_err"; then
8019 eval "ac_cv_header_$ac_safe=yes"
8022 echo "configure: failed program was:" >&5
8023 cat conftest.$ac_ext >&5
8025 eval "ac_cv_header_$ac_safe=no"
8028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8029 echo "$ac_t""yes" 1>&6
8030 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8031 { test "$extra_verbose" = "yes" && cat << EOF
8034 cat >> confdefs.h <<EOF
8035 #define $ac_tr_hdr 1
8040 echo "$ac_t""no" 1>&6
8045 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
8046 echo "configure:8047: checking for strerror in -lintl" >&5
8047 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
8049 xe_check_libs=" -lintl "
8050 cat > conftest.$ac_ext <<EOF
8051 #line 8052 "configure"
8052 #include "confdefs.h"
8053 /* Override any gcc2 internal prototype to avoid an error. */
8054 /* We use char because int might match the return type of a gcc2
8055 builtin and then its argument prototype would still apply. */
8062 if { (eval echo configure:8063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8064 eval "ac_cv_lib_$ac_lib_var=yes"
8066 echo "configure: failed program was:" >&5
8067 cat conftest.$ac_ext >&5
8069 eval "ac_cv_lib_$ac_lib_var=no"
8074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8075 echo "$ac_t""yes" 1>&6
8076 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8077 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8078 { test "$extra_verbose" = "yes" && cat << EOF
8081 cat >> confdefs.h <<EOF
8082 #define $ac_tr_lib 1
8086 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
8089 echo "$ac_t""no" 1>&6
8094 echo "checking for Mule input methods" 1>&6
8095 echo "configure:8096: checking for Mule input methods" >&5
8096 case "$with_xim" in "" | "yes" )
8097 echo "checking for XIM" 1>&6
8098 echo "configure:8099: checking for XIM" >&5
8100 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
8101 echo "configure:8102: checking for XOpenIM in -lX11" >&5
8102 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
8104 xe_check_libs=" -lX11 "
8105 cat > conftest.$ac_ext <<EOF
8106 #line 8107 "configure"
8107 #include "confdefs.h"
8108 /* Override any gcc2 internal prototype to avoid an error. */
8109 /* We use char because int might match the return type of a gcc2
8110 builtin and then its argument prototype would still apply. */
8117 if { (eval echo configure:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8119 eval "ac_cv_lib_$ac_lib_var=yes"
8121 echo "configure: failed program was:" >&5
8122 cat conftest.$ac_ext >&5
8124 eval "ac_cv_lib_$ac_lib_var=no"
8129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8130 echo "$ac_t""yes" 1>&6
8133 echo "$ac_t""no" 1>&6
8138 if test "$have_motif $have_lesstif" = "yes no"; then
8140 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
8141 echo "configure:8142: checking for XmImMbLookupString in -lXm" >&5
8142 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
8144 xe_check_libs=" -lXm "
8145 cat > conftest.$ac_ext <<EOF
8146 #line 8147 "configure"
8147 #include "confdefs.h"
8148 /* Override any gcc2 internal prototype to avoid an error. */
8149 /* We use char because int might match the return type of a gcc2
8150 builtin and then its argument prototype would still apply. */
8151 char XmImMbLookupString();
8154 XmImMbLookupString()
8157 if { (eval echo configure:8158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8159 eval "ac_cv_lib_$ac_lib_var=yes"
8161 echo "configure: failed program was:" >&5
8162 cat conftest.$ac_ext >&5
8164 eval "ac_cv_lib_$ac_lib_var=no"
8169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8170 echo "$ac_t""yes" 1>&6
8173 echo "$ac_t""no" 1>&6
8179 if test "$with_xim" != "no"; then
8180 { test "$extra_verbose" = "yes" && cat << \EOF
8183 cat >> confdefs.h <<\EOF
8188 if test "$with_xim" = "xlib"; then
8189 { test "$extra_verbose" = "yes" && cat << \EOF
8192 cat >> confdefs.h <<\EOF
8197 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
8198 echo " xemacs will be linked with \"input-method-xlib.o\""
8201 if test "$with_xim" = "motif"; then
8202 { test "$extra_verbose" = "yes" && cat << \EOF
8205 cat >> confdefs.h <<\EOF
8211 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
8212 echo " xemacs will be linked with \"input-method-motif.o\""
8215 if test "$with_xim" = "motif"; then
8220 if test "$with_xfs" = "yes" ; then
8221 echo "checking for XFontSet" 1>&6
8222 echo "configure:8223: checking for XFontSet" >&5
8224 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8225 echo "configure:8226: checking for XmbDrawString in -lX11" >&5
8226 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8228 xe_check_libs=" -lX11 "
8229 cat > conftest.$ac_ext <<EOF
8230 #line 8231 "configure"
8231 #include "confdefs.h"
8232 /* Override any gcc2 internal prototype to avoid an error. */
8233 /* We use char because int might match the return type of a gcc2
8234 builtin and then its argument prototype would still apply. */
8235 char XmbDrawString();
8241 if { (eval echo configure:8242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8243 eval "ac_cv_lib_$ac_lib_var=yes"
8245 echo "configure: failed program was:" >&5
8246 cat conftest.$ac_ext >&5
8248 eval "ac_cv_lib_$ac_lib_var=no"
8253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8254 echo "$ac_t""yes" 1>&6
8257 echo "$ac_t""no" 1>&6
8262 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
8263 { test "$extra_verbose" = "yes" && cat << \EOF
8264 Defining USE_XFONTSET
8266 cat >> confdefs.h <<\EOF
8267 #define USE_XFONTSET 1
8271 if test "$with_xim" = "no" ; then
8272 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
8273 echo " xemacs will be linked with \"input-method-xfs.o\""
8278 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8279 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8280 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8281 echo "configure:8282: checking for wnn/jllib.h" >&5
8283 cat > conftest.$ac_ext <<EOF
8284 #line 8285 "configure"
8285 #include "confdefs.h"
8286 #include <wnn/jllib.h>
8288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8289 { (eval echo configure:8290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8291 if test -z "$ac_err"; then
8293 eval "ac_cv_header_$ac_safe=yes"
8296 echo "configure: failed program was:" >&5
8297 cat conftest.$ac_ext >&5
8299 eval "ac_cv_header_$ac_safe=no"
8302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8303 echo "$ac_t""yes" 1>&6
8306 echo "$ac_t""no" 1>&6
8310 if test "$with_wnn" != "no"; then
8311 for ac_func in crypt
8313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8314 echo "configure:8315: checking for $ac_func" >&5
8316 cat > conftest.$ac_ext <<EOF
8317 #line 8318 "configure"
8318 #include "confdefs.h"
8319 /* System header to define __stub macros and hopefully few prototypes,
8320 which can conflict with char $ac_func(); below. */
8322 /* Override any gcc2 internal prototype to avoid an error. */
8323 /* We use char because int might match the return type of a gcc2
8324 builtin and then its argument prototype would still apply. */
8329 /* The GNU C library defines this for functions which it implements
8330 to always fail with ENOSYS. Some functions are actually named
8331 something starting with __ and the normal name is an alias. */
8332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8340 if { (eval echo configure:8341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8342 eval "ac_cv_func_$ac_func=yes"
8344 echo "configure: failed program was:" >&5
8345 cat conftest.$ac_ext >&5
8347 eval "ac_cv_func_$ac_func=no"
8351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8352 echo "$ac_t""yes" 1>&6
8353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8354 { test "$extra_verbose" = "yes" && cat << EOF
8355 Defining $ac_tr_func
8357 cat >> confdefs.h <<EOF
8358 #define $ac_tr_func 1
8363 echo "$ac_t""no" 1>&6
8367 test "$ac_cv_func_crypt" != "yes" && {
8368 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8369 echo "configure:8370: checking for crypt in -lcrypt" >&5
8370 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8372 xe_check_libs=" -lcrypt "
8373 cat > conftest.$ac_ext <<EOF
8374 #line 8375 "configure"
8375 #include "confdefs.h"
8376 /* Override any gcc2 internal prototype to avoid an error. */
8377 /* We use char because int might match the return type of a gcc2
8378 builtin and then its argument prototype would still apply. */
8385 if { (eval echo configure:8386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8387 eval "ac_cv_lib_$ac_lib_var=yes"
8389 echo "configure: failed program was:" >&5
8390 cat conftest.$ac_ext >&5
8392 eval "ac_cv_lib_$ac_lib_var=no"
8397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8398 echo "$ac_t""yes" 1>&6
8399 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8401 { test "$extra_verbose" = "yes" && cat << EOF
8404 cat >> confdefs.h <<EOF
8405 #define $ac_tr_lib 1
8409 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
8412 echo "$ac_t""no" 1>&6
8417 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8419 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8420 echo "configure:8421: checking for jl_dic_list_e in -lwnn" >&5
8421 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8423 xe_check_libs=" -lwnn "
8424 cat > conftest.$ac_ext <<EOF
8425 #line 8426 "configure"
8426 #include "confdefs.h"
8427 /* Override any gcc2 internal prototype to avoid an error. */
8428 /* We use char because int might match the return type of a gcc2
8429 builtin and then its argument prototype would still apply. */
8430 char jl_dic_list_e();
8436 if { (eval echo configure:8437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8438 eval "ac_cv_lib_$ac_lib_var=yes"
8440 echo "configure: failed program was:" >&5
8441 cat conftest.$ac_ext >&5
8443 eval "ac_cv_lib_$ac_lib_var=no"
8448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8449 echo "$ac_t""yes" 1>&6
8452 echo "$ac_t""no" 1>&6
8453 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8454 echo "configure:8455: checking for jl_dic_list_e in -lwnn4" >&5
8455 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8457 xe_check_libs=" -lwnn4 "
8458 cat > conftest.$ac_ext <<EOF
8459 #line 8460 "configure"
8460 #include "confdefs.h"
8461 /* Override any gcc2 internal prototype to avoid an error. */
8462 /* We use char because int might match the return type of a gcc2
8463 builtin and then its argument prototype would still apply. */
8464 char jl_dic_list_e();
8470 if { (eval echo configure:8471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8472 eval "ac_cv_lib_$ac_lib_var=yes"
8474 echo "configure: failed program was:" >&5
8475 cat conftest.$ac_ext >&5
8477 eval "ac_cv_lib_$ac_lib_var=no"
8482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8483 echo "$ac_t""yes" 1>&6
8486 echo "$ac_t""no" 1>&6
8487 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8488 echo "configure:8489: checking for jl_dic_list_e in -lwnn6" >&5
8489 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8491 xe_check_libs=" -lwnn6 "
8492 cat > conftest.$ac_ext <<EOF
8493 #line 8494 "configure"
8494 #include "confdefs.h"
8495 /* Override any gcc2 internal prototype to avoid an error. */
8496 /* We use char because int might match the return type of a gcc2
8497 builtin and then its argument prototype would still apply. */
8498 char jl_dic_list_e();
8504 if { (eval echo configure:8505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8506 eval "ac_cv_lib_$ac_lib_var=yes"
8508 echo "configure: failed program was:" >&5
8509 cat conftest.$ac_ext >&5
8511 eval "ac_cv_lib_$ac_lib_var=no"
8516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8517 echo "$ac_t""yes" 1>&6
8520 echo "$ac_t""no" 1>&6
8521 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8522 echo "configure:8523: checking for dic_list_e in -lwnn6_fromsrc" >&5
8523 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8525 xe_check_libs=" -lwnn6_fromsrc "
8526 cat > conftest.$ac_ext <<EOF
8527 #line 8528 "configure"
8528 #include "confdefs.h"
8529 /* Override any gcc2 internal prototype to avoid an error. */
8530 /* We use char because int might match the return type of a gcc2
8531 builtin and then its argument prototype would still apply. */
8538 if { (eval echo configure:8539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8540 eval "ac_cv_lib_$ac_lib_var=yes"
8542 echo "configure: failed program was:" >&5
8543 cat conftest.$ac_ext >&5
8545 eval "ac_cv_lib_$ac_lib_var=no"
8550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8551 echo "$ac_t""yes" 1>&6
8554 echo "$ac_t""no" 1>&6
8569 test -z "$with_wnn" && with_wnn=yes
8570 if test "$with_wnn" = "yes"; then
8571 { test "$extra_verbose" = "yes" && cat << \EOF
8574 cat >> confdefs.h <<\EOF
8579 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
8580 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
8581 echo " xemacs will be linked with \"mule-wnnfns.o\""
8583 if test "$with_wnn6" != "no"; then
8585 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8586 echo "configure:8587: checking for jl_fi_dic_list in -l$libwnn" >&5
8587 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8589 xe_check_libs=" -l$libwnn "
8590 cat > conftest.$ac_ext <<EOF
8591 #line 8592 "configure"
8592 #include "confdefs.h"
8593 /* Override any gcc2 internal prototype to avoid an error. */
8594 /* We use char because int might match the return type of a gcc2
8595 builtin and then its argument prototype would still apply. */
8596 char jl_fi_dic_list();
8602 if { (eval echo configure:8603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8604 eval "ac_cv_lib_$ac_lib_var=yes"
8606 echo "configure: failed program was:" >&5
8607 cat conftest.$ac_ext >&5
8609 eval "ac_cv_lib_$ac_lib_var=no"
8614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8615 echo "$ac_t""yes" 1>&6
8618 echo "$ac_t""no" 1>&6
8622 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8625 cat >> confdefs.h <<\EOF
8633 canna_includes_found=no
8634 if test "$with_canna" != "no"; then
8635 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8636 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8637 echo "configure:8638: checking for canna/jrkanji.h" >&5
8639 cat > conftest.$ac_ext <<EOF
8640 #line 8641 "configure"
8641 #include "confdefs.h"
8642 #include <canna/jrkanji.h>
8644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8645 { (eval echo configure:8646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8647 if test -z "$ac_err"; then
8649 eval "ac_cv_header_$ac_safe=yes"
8652 echo "configure: failed program was:" >&5
8653 cat conftest.$ac_ext >&5
8655 eval "ac_cv_header_$ac_safe=no"
8658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8659 echo "$ac_t""yes" 1>&6
8660 canna_includes_found=yes
8662 echo "$ac_t""no" 1>&6
8666 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
8667 -d "/usr/local/canna/include"; then
8668 save_c_switch_site="$c_switch_site"
8669 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8670 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8671 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8672 echo "configure:8673: checking for canna/jrkanji.h" >&5
8674 cat > conftest.$ac_ext <<EOF
8675 #line 8676 "configure"
8676 #include "confdefs.h"
8677 #include <canna/jrkanji.h>
8679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8680 { (eval echo configure:8681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8682 if test -z "$ac_err"; then
8684 eval "ac_cv_header_$ac_safe=yes"
8687 echo "configure: failed program was:" >&5
8688 cat conftest.$ac_ext >&5
8690 eval "ac_cv_header_$ac_safe=no"
8693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8694 echo "$ac_t""yes" 1>&6
8695 canna_includes_found=yes
8697 echo "$ac_t""no" 1>&6
8700 if test "$canna_includes_found" != "yes"; then
8701 c_switch_site="$save_c_switch_site"
8706 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8707 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8708 echo "configure:8709: checking for canna/RK.h" >&5
8710 cat > conftest.$ac_ext <<EOF
8711 #line 8712 "configure"
8712 #include "confdefs.h"
8713 #include <canna/RK.h>
8715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8716 { (eval echo configure:8717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8718 if test -z "$ac_err"; then
8720 eval "ac_cv_header_$ac_safe=yes"
8723 echo "configure: failed program was:" >&5
8724 cat conftest.$ac_ext >&5
8726 eval "ac_cv_header_$ac_safe=no"
8729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8730 echo "$ac_t""yes" 1>&6
8733 echo "$ac_t""no" 1>&6
8737 test -z "$with_canna" && {
8738 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8739 echo "configure:8740: checking for RkBgnBun in -lRKC" >&5
8740 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8742 xe_check_libs=" -lRKC "
8743 cat > conftest.$ac_ext <<EOF
8744 #line 8745 "configure"
8745 #include "confdefs.h"
8746 /* Override any gcc2 internal prototype to avoid an error. */
8747 /* We use char because int might match the return type of a gcc2
8748 builtin and then its argument prototype would still apply. */
8755 if { (eval echo configure:8756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8757 eval "ac_cv_lib_$ac_lib_var=yes"
8759 echo "configure: failed program was:" >&5
8760 cat conftest.$ac_ext >&5
8762 eval "ac_cv_lib_$ac_lib_var=no"
8767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8768 echo "$ac_t""yes" 1>&6
8771 echo "$ac_t""no" 1>&6
8776 test -z "$with_canna" && {
8777 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8778 echo "configure:8779: checking for jrKanjiControl in -lcanna" >&5
8779 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8781 xe_check_libs=" -lcanna "
8782 cat > conftest.$ac_ext <<EOF
8783 #line 8784 "configure"
8784 #include "confdefs.h"
8785 /* Override any gcc2 internal prototype to avoid an error. */
8786 /* We use char because int might match the return type of a gcc2
8787 builtin and then its argument prototype would still apply. */
8788 char jrKanjiControl();
8794 if { (eval echo configure:8795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8796 eval "ac_cv_lib_$ac_lib_var=yes"
8798 echo "configure: failed program was:" >&5
8799 cat conftest.$ac_ext >&5
8801 eval "ac_cv_lib_$ac_lib_var=no"
8806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8807 echo "$ac_t""yes" 1>&6
8810 echo "$ac_t""no" 1>&6
8815 test -z "$with_canna" && with_canna=yes
8816 if test "$with_canna" = "yes"; then
8817 { test "$extra_verbose" = "yes" && cat << \EOF
8820 cat >> confdefs.h <<\EOF
8821 #define HAVE_CANNA 1
8825 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
8826 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
8827 echo " xemacs will be linked with \"mule-canna.o\""
8831 else for feature in xim canna wnn; do
8832 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
8833 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
8835 eval "with_${feature}=no"
8839 if test "$need_motif" = "yes" ; then
8840 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8842 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8843 echo "configure:8844: checking for layout_object_getvalue in -li18n" >&5
8844 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8846 xe_check_libs=" -li18n "
8847 cat > conftest.$ac_ext <<EOF
8848 #line 8849 "configure"
8849 #include "confdefs.h"
8850 /* Override any gcc2 internal prototype to avoid an error. */
8851 /* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */
8853 char layout_object_getvalue();
8856 layout_object_getvalue()
8859 if { (eval echo configure:8860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8861 eval "ac_cv_lib_$ac_lib_var=yes"
8863 echo "configure: failed program was:" >&5
8864 cat conftest.$ac_ext >&5
8866 eval "ac_cv_lib_$ac_lib_var=no"
8871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8872 echo "$ac_t""yes" 1>&6
8873 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
8875 echo "$ac_t""no" 1>&6
8880 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
8881 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8882 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8884 runpath="" runpath_dirs=""
8885 if test -n "$LD_RUN_PATH"; then
8886 runpath="$LD_RUN_PATH"
8887 elif test "$GCC" = "yes"; then
8888 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
8889 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
8890 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
8891 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
8892 case "$arg" in P,* | -L* | -R* )
8893 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
8895 xe_runpath_dir="$dir"
8896 test "$xe_runpath_dir" != "/lib" -a \
8897 "$xe_runpath_dir" != "/usr/lib" -a \
8898 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8899 eval "$xe_add_unique_runpath_dir"
8904 ld_switch_run="$ld_switch_run_save"
8907 for arg in $ld_switch_site $ld_switch_x_site; do
8908 case "$arg" in -L*) {
8909 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
8910 test "$xe_runpath_dir" != "/lib" -a \
8911 "$xe_runpath_dir" != "/usr/lib" -a \
8912 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8913 eval "$xe_add_unique_runpath_dir"
8916 if test "$opsys $need_motif" = "sol2 yes"; then
8917 xe_runpath_dir="/opt/SUNWdt/lib";
8918 eval "$xe_add_unique_runpath_dir";
8921 if test -n "$runpath"; then
8922 ld_switch_run="${dash_r}${runpath}"
8924 if test "$GCC" = "yes"; then
8925 set x $ld_switch_run; shift; ld_switch_run=""
8926 while test -n "$1"; do
8928 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8929 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
8931 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
8936 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
8942 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getpt getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf
8944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8945 echo "configure:8946: checking for $ac_func" >&5
8947 cat > conftest.$ac_ext <<EOF
8948 #line 8949 "configure"
8949 #include "confdefs.h"
8950 /* System header to define __stub macros and hopefully few prototypes,
8951 which can conflict with char $ac_func(); below. */
8953 /* Override any gcc2 internal prototype to avoid an error. */
8954 /* We use char because int might match the return type of a gcc2
8955 builtin and then its argument prototype would still apply. */
8960 /* The GNU C library defines this for functions which it implements
8961 to always fail with ENOSYS. Some functions are actually named
8962 something starting with __ and the normal name is an alias. */
8963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8971 if { (eval echo configure:8972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8973 eval "ac_cv_func_$ac_func=yes"
8975 echo "configure: failed program was:" >&5
8976 cat conftest.$ac_ext >&5
8978 eval "ac_cv_func_$ac_func=no"
8982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8983 echo "$ac_t""yes" 1>&6
8984 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8985 { test "$extra_verbose" = "yes" && cat << EOF
8986 Defining $ac_tr_func
8988 cat >> confdefs.h <<EOF
8989 #define $ac_tr_func 1
8994 echo "$ac_t""no" 1>&6
9001 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9002 echo " xemacs will be linked with \"realpath.o\""
9005 case "$canonical" in
9006 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9007 echo " xemacs will be linked with \"realpath.o\""
9009 * ) for ac_func in realpath
9011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9012 echo "configure:9013: checking for $ac_func" >&5
9014 cat > conftest.$ac_ext <<EOF
9015 #line 9016 "configure"
9016 #include "confdefs.h"
9017 /* System header to define __stub macros and hopefully few prototypes,
9018 which can conflict with char $ac_func(); below. */
9020 /* Override any gcc2 internal prototype to avoid an error. */
9021 /* We use char because int might match the return type of a gcc2
9022 builtin and then its argument prototype would still apply. */
9027 /* The GNU C library defines this for functions which it implements
9028 to always fail with ENOSYS. Some functions are actually named
9029 something starting with __ and the normal name is an alias. */
9030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9038 if { (eval echo configure:9039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9040 eval "ac_cv_func_$ac_func=yes"
9042 echo "configure: failed program was:" >&5
9043 cat conftest.$ac_ext >&5
9045 eval "ac_cv_func_$ac_func=no"
9049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9050 echo "$ac_t""yes" 1>&6
9051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9052 { test "$extra_verbose" = "yes" && cat << EOF
9053 Defining $ac_tr_func
9055 cat >> confdefs.h <<EOF
9056 #define $ac_tr_func 1
9061 echo "$ac_t""no" 1>&6
9065 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9066 echo " xemacs will be linked with \"realpath.o\""
9071 for ac_func in getloadavg
9073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9074 echo "configure:9075: checking for $ac_func" >&5
9076 cat > conftest.$ac_ext <<EOF
9077 #line 9078 "configure"
9078 #include "confdefs.h"
9079 /* System header to define __stub macros and hopefully few prototypes,
9080 which can conflict with char $ac_func(); below. */
9082 /* Override any gcc2 internal prototype to avoid an error. */
9083 /* We use char because int might match the return type of a gcc2
9084 builtin and then its argument prototype would still apply. */
9089 /* The GNU C library defines this for functions which it implements
9090 to always fail with ENOSYS. Some functions are actually named
9091 something starting with __ and the normal name is an alias. */
9092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9100 if { (eval echo configure:9101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9102 eval "ac_cv_func_$ac_func=yes"
9104 echo "configure: failed program was:" >&5
9105 cat conftest.$ac_ext >&5
9107 eval "ac_cv_func_$ac_func=no"
9111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9112 echo "$ac_t""yes" 1>&6
9113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9114 { test "$extra_verbose" = "yes" && cat << EOF
9115 Defining $ac_tr_func
9117 cat >> confdefs.h <<EOF
9118 #define $ac_tr_func 1
9123 echo "$ac_t""no" 1>&6
9128 if test "$ac_cv_func_getloadavg" != "yes"
9130 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
9131 echo " xemacs will be linked with \"getloadavg.o\""
9135 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
9136 echo "configure:9137: checking for kstat_open in -lkstat" >&5
9137 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
9139 xe_check_libs=" -lkstat "
9140 cat > conftest.$ac_ext <<EOF
9141 #line 9142 "configure"
9142 #include "confdefs.h"
9143 /* Override any gcc2 internal prototype to avoid an error. */
9144 /* We use char because int might match the return type of a gcc2
9145 builtin and then its argument prototype would still apply. */
9152 if { (eval echo configure:9153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9154 eval "ac_cv_lib_$ac_lib_var=yes"
9156 echo "configure: failed program was:" >&5
9157 cat conftest.$ac_ext >&5
9159 eval "ac_cv_lib_$ac_lib_var=no"
9164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9165 echo "$ac_t""yes" 1>&6
9166 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9167 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9168 { test "$extra_verbose" = "yes" && cat << EOF
9171 cat >> confdefs.h <<EOF
9172 #define $ac_tr_lib 1
9176 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
9179 echo "$ac_t""no" 1>&6
9185 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
9186 echo "configure:9187: checking for kvm_read in -lkvm" >&5
9187 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
9189 xe_check_libs=" -lkvm "
9190 cat > conftest.$ac_ext <<EOF
9191 #line 9192 "configure"
9192 #include "confdefs.h"
9193 /* Override any gcc2 internal prototype to avoid an error. */
9194 /* We use char because int might match the return type of a gcc2
9195 builtin and then its argument prototype would still apply. */
9202 if { (eval echo configure:9203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9204 eval "ac_cv_lib_$ac_lib_var=yes"
9206 echo "configure: failed program was:" >&5
9207 cat conftest.$ac_ext >&5
9209 eval "ac_cv_lib_$ac_lib_var=no"
9214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9215 echo "$ac_t""yes" 1>&6
9216 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9217 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9218 { test "$extra_verbose" = "yes" && cat << EOF
9221 cat >> confdefs.h <<EOF
9222 #define $ac_tr_lib 1
9226 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
9229 echo "$ac_t""no" 1>&6
9235 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9236 echo "configure:9237: checking whether netdb declares h_errno" >&5
9237 cat > conftest.$ac_ext <<EOF
9238 #line 9239 "configure"
9239 #include "confdefs.h"
9245 if { (eval echo configure:9246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9247 echo "$ac_t""yes" 1>&6
9248 { test "$extra_verbose" = "yes" && cat << \EOF
9249 Defining HAVE_H_ERRNO
9251 cat >> confdefs.h <<\EOF
9252 #define HAVE_H_ERRNO 1
9257 echo "configure: failed program was:" >&5
9258 cat conftest.$ac_ext >&5
9260 echo "$ac_t""no" 1>&6
9264 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9265 echo "configure:9266: checking for sigsetjmp" >&5
9266 cat > conftest.$ac_ext <<EOF
9267 #line 9268 "configure"
9268 #include "confdefs.h"
9271 sigjmp_buf bar; sigsetjmp (bar, 0);
9274 if { (eval echo configure:9275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9276 echo "$ac_t""yes" 1>&6
9277 { test "$extra_verbose" = "yes" && cat << \EOF
9278 Defining HAVE_SIGSETJMP
9280 cat >> confdefs.h <<\EOF
9281 #define HAVE_SIGSETJMP 1
9286 echo "configure: failed program was:" >&5
9287 cat conftest.$ac_ext >&5
9289 echo "$ac_t""no" 1>&6
9293 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9294 echo "configure:9295: checking whether localtime caches TZ" >&5
9296 if test "$ac_cv_func_tzset" = "yes"; then
9297 cat > conftest.$ac_ext <<EOF
9298 #line 9299 "configure"
9299 #include "confdefs.h"
9302 # include <stdlib.h>
9304 extern char **environ;
9308 for (to = from = environ; (*to = *from); from++)
9309 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
9312 char TZ_GMT0[] = "TZ=GMT0";
9313 char TZ_PST8[] = "TZ=PST8";
9316 time_t now = time ((time_t *) 0);
9317 int hour_GMT0, hour_unset;
9318 if (putenv (TZ_GMT0) != 0)
9320 hour_GMT0 = localtime (&now)->tm_hour;
9322 hour_unset = localtime (&now)->tm_hour;
9323 if (putenv (TZ_PST8) != 0)
9325 if (localtime (&now)->tm_hour == hour_GMT0)
9328 if (localtime (&now)->tm_hour != hour_unset)
9333 if { (eval echo configure:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9335 emacs_cv_localtime_cache=no
9338 echo "configure: failed program was:" >&5
9339 cat conftest.$ac_ext >&5
9341 emacs_cv_localtime_cache=yes
9345 # If we lack tzset, report that localtime does not cache TZ,
9346 # since we can't invalidate the cache if we don't have tzset.
9347 emacs_cv_localtime_cache=no
9349 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
9350 if test $emacs_cv_localtime_cache = yes; then
9351 { test "$extra_verbose" = "yes" && cat << \EOF
9352 Defining LOCALTIME_CACHE
9354 cat >> confdefs.h <<\EOF
9355 #define LOCALTIME_CACHE 1
9361 if test "$HAVE_TIMEVAL" = "yes"; then
9362 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9363 echo "configure:9364: checking whether gettimeofday accepts one or two arguments" >&5
9364 cat > conftest.$ac_ext <<EOF
9365 #line 9366 "configure"
9366 #include "confdefs.h"
9368 #ifdef TIME_WITH_SYS_TIME
9369 #include <sys/time.h>
9372 #ifdef HAVE_SYS_TIME_H
9373 #include <sys/time.h>
9381 struct timeval time;
9382 struct timezone dummy;
9383 gettimeofday (&time, &dummy);
9387 if { (eval echo configure:9388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9389 echo "$ac_t""two" 1>&6
9391 echo "configure: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9394 echo "$ac_t""one" 1>&6
9395 { test "$extra_verbose" = "yes" && cat << \EOF
9396 Defining GETTIMEOFDAY_ONE_ARGUMENT
9398 cat >> confdefs.h <<\EOF
9399 #define GETTIMEOFDAY_ONE_ARGUMENT 1
9408 echo $ac_n "checking for inline""... $ac_c" 1>&6
9409 echo "configure:9410: checking for inline" >&5
9412 for ac_kw in inline __inline__ __inline; do
9413 cat > conftest.$ac_ext <<EOF
9414 #line 9415 "configure"
9415 #include "confdefs.h"
9421 if { (eval echo configure:9422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9423 ac_cv_c_inline=$ac_kw; break
9425 echo "configure: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9432 echo "$ac_t""$ac_cv_c_inline" 1>&6
9433 case "$ac_cv_c_inline" in
9435 no) { test "$extra_verbose" = "yes" && cat << \EOF
9438 cat >> confdefs.h <<\EOF
9443 *) { test "$extra_verbose" = "yes" && cat << EOF
9444 Defining inline = $ac_cv_c_inline
9446 cat >> confdefs.h <<EOF
9447 #define inline $ac_cv_c_inline
9453 if test "$ac_cv_c_inline" != "no"; then
9454 { test "$extra_verbose" = "yes" && cat << \EOF
9455 Defining HAVE_INLINE
9457 cat >> confdefs.h <<\EOF
9458 #define HAVE_INLINE 1
9462 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
9463 echo " xemacs will be linked with \"inline.o\""
9468 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9469 # for constant arguments. Useless!
9470 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9471 echo "configure:9472: checking for working alloca.h" >&5
9473 cat > conftest.$ac_ext <<EOF
9474 #line 9475 "configure"
9475 #include "confdefs.h"
9478 char *p = alloca(2 * sizeof(int));
9481 if { (eval echo configure:9482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9483 ac_cv_header_alloca_h=yes
9485 echo "configure: failed program was:" >&5
9486 cat conftest.$ac_ext >&5
9488 ac_cv_header_alloca_h=no
9492 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
9493 if test $ac_cv_header_alloca_h = yes; then
9494 { test "$extra_verbose" = "yes" && cat << \EOF
9495 Defining HAVE_ALLOCA_H
9497 cat >> confdefs.h <<\EOF
9498 #define HAVE_ALLOCA_H 1
9504 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9505 echo "configure:9506: checking for alloca" >&5
9507 cat > conftest.$ac_ext <<EOF
9508 #line 9509 "configure"
9509 #include "confdefs.h"
9512 # define alloca __builtin_alloca
9515 # include <malloc.h>
9516 # define alloca _alloca
9519 # include <alloca.h>
9524 # ifndef alloca /* predefined by HP cc +Olibcalls */
9533 char *p = (char *) alloca(1);
9536 if { (eval echo configure:9537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9538 ac_cv_func_alloca_works=yes
9540 echo "configure: failed program was:" >&5
9541 cat conftest.$ac_ext >&5
9543 ac_cv_func_alloca_works=no
9547 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
9548 if test $ac_cv_func_alloca_works = yes; then
9549 { test "$extra_verbose" = "yes" && cat << \EOF
9550 Defining HAVE_ALLOCA
9552 cat >> confdefs.h <<\EOF
9553 #define HAVE_ALLOCA 1
9559 if test $ac_cv_func_alloca_works = no; then
9560 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9561 # that cause trouble. Some versions do not even contain alloca or
9562 # contain a buggy version. If you still want to use their alloca,
9563 # use ar to extract alloca.o from them instead of compiling alloca.c.
9564 ALLOCA=alloca.${ac_objext}
9565 { test "$extra_verbose" = "yes" && cat << \EOF
9568 cat >> confdefs.h <<\EOF
9574 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9575 echo "configure:9576: checking whether alloca needs Cray hooks" >&5
9577 cat > conftest.$ac_ext <<EOF
9578 #line 9579 "configure"
9579 #include "confdefs.h"
9580 #if defined(CRAY) && ! defined(CRAY2)
9587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9588 egrep "webecray" >/dev/null 2>&1; then
9598 echo "$ac_t""$ac_cv_os_cray" 1>&6
9599 if test $ac_cv_os_cray = yes; then
9600 for ac_func in _getb67 GETB67 getb67; do
9601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9602 echo "configure:9603: checking for $ac_func" >&5
9604 cat > conftest.$ac_ext <<EOF
9605 #line 9606 "configure"
9606 #include "confdefs.h"
9607 /* System header to define __stub macros and hopefully few prototypes,
9608 which can conflict with char $ac_func(); below. */
9610 /* Override any gcc2 internal prototype to avoid an error. */
9611 /* We use char because int might match the return type of a gcc2
9612 builtin and then its argument prototype would still apply. */
9617 /* The GNU C library defines this for functions which it implements
9618 to always fail with ENOSYS. Some functions are actually named
9619 something starting with __ and the normal name is an alias. */
9620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9628 if { (eval echo configure:9629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9630 eval "ac_cv_func_$ac_func=yes"
9632 echo "configure: failed program was:" >&5
9633 cat conftest.$ac_ext >&5
9635 eval "ac_cv_func_$ac_func=no"
9639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9640 echo "$ac_t""yes" 1>&6
9641 { test "$extra_verbose" = "yes" && cat << EOF
9642 Defining CRAY_STACKSEG_END = $ac_func
9644 cat >> confdefs.h <<EOF
9645 #define CRAY_STACKSEG_END $ac_func
9651 echo "$ac_t""no" 1>&6
9657 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9658 echo "configure:9659: checking stack direction for C alloca" >&5
9660 cat > conftest.$ac_ext <<EOF
9661 #line 9662 "configure"
9662 #include "confdefs.h"
9663 find_stack_direction ()
9665 static char *addr = 0;
9670 return find_stack_direction ();
9673 return (&dummy > addr) ? 1 : -1;
9677 exit (find_stack_direction() < 0);
9680 if { (eval echo configure:9681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9682 ac_cv_c_stack_direction=1
9685 echo "configure: failed program was:" >&5
9686 cat conftest.$ac_ext >&5
9688 ac_cv_c_stack_direction=-1
9692 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
9693 { test "$extra_verbose" = "yes" && cat << EOF
9694 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
9696 cat >> confdefs.h <<EOF
9697 #define STACK_DIRECTION $ac_cv_c_stack_direction
9703 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
9704 echo " xemacs will be linked with \"$ALLOCA\""
9707 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9708 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9709 echo "configure:9710: checking for vfork.h" >&5
9711 cat > conftest.$ac_ext <<EOF
9712 #line 9713 "configure"
9713 #include "confdefs.h"
9716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9717 { (eval echo configure:9718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9719 if test -z "$ac_err"; then
9721 eval "ac_cv_header_$ac_safe=yes"
9724 echo "configure: failed program was:" >&5
9725 cat conftest.$ac_ext >&5
9727 eval "ac_cv_header_$ac_safe=no"
9730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9731 echo "$ac_t""yes" 1>&6
9732 { test "$extra_verbose" = "yes" && cat << \EOF
9733 Defining HAVE_VFORK_H
9735 cat >> confdefs.h <<\EOF
9736 #define HAVE_VFORK_H 1
9741 echo "$ac_t""no" 1>&6
9744 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9745 echo "configure:9746: checking for working vfork" >&5
9747 cat > conftest.$ac_ext <<EOF
9748 #line 9749 "configure"
9749 #include "confdefs.h"
9750 /* Thanks to Paul Eggert for this test. */
9752 #include <sys/types.h>
9753 #include <sys/stat.h>
9754 #ifdef HAVE_UNISTD_H
9760 /* On some sparc systems, changes by the child to local and incoming
9761 argument registers are propagated back to the parent.
9762 The compiler is told about this with #include <vfork.h>,
9763 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
9764 Test for this by using a static variable whose address
9765 is put into a register that is clobbered by the vfork. */
9768 sparc_address_test (int arg)
9770 sparc_address_test (arg) int arg;
9788 pid_t parent = getpid ();
9791 sparc_address_test ();
9796 /* Here is another test for sparc vfork register problems.
9797 This test uses lots of local variables, at least
9798 as many local variables as main has allocated so far
9799 including compiler temporaries. 4 locals are enough for
9800 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
9801 A buggy compiler should reuse the register of parent
9802 for one of the local variables, since it will think that
9803 parent can't possibly be used any more in this routine.
9804 Assigning to the local variable will thus munge parent
9805 in the parent process. */
9807 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9808 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9809 /* Convince the compiler that p..p7 are live; otherwise, it might
9810 use the same hardware register for all 8 local variables. */
9811 if (p != p1 || p != p2 || p != p3 || p != p4
9812 || p != p5 || p != p6 || p != p7)
9815 /* On some systems (e.g. IRIX 3.3),
9816 vfork doesn't separate parent from child file descriptors.
9817 If the child closes a descriptor before it execs or exits,
9818 this munges the parent's descriptor as well.
9819 Test for this by closing stdout in the child. */
9820 _exit(close(fileno(stdout)) != 0);
9825 while (wait(&status) != child)
9828 /* Was there some problem with vforking? */
9831 /* Did the child fail? (This shouldn't happen.) */
9834 /* Did the vfork/compiler bug occur? */
9835 || parent != getpid()
9837 /* Did the file descriptor bug occur? */
9838 || fstat(fileno(stdout), &st) != 0
9843 if { (eval echo configure:9844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9845 ac_cv_func_vfork_works=yes
9848 echo "configure: failed program was:" >&5
9849 cat conftest.$ac_ext >&5
9851 ac_cv_func_vfork_works=no
9855 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
9856 if test $ac_cv_func_vfork_works = no; then
9857 { test "$extra_verbose" = "yes" && cat << \EOF
9858 Defining vfork = fork
9860 cat >> confdefs.h <<\EOF
9868 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9869 echo "configure:9870: checking for working strcoll" >&5
9871 cat > conftest.$ac_ext <<EOF
9872 #line 9873 "configure"
9873 #include "confdefs.h"
9877 exit (strcoll ("abc", "def") >= 0 ||
9878 strcoll ("ABC", "DEF") >= 0 ||
9879 strcoll ("123", "456") >= 0);
9882 if { (eval echo configure:9883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9884 ac_cv_func_strcoll_works=yes
9887 echo "configure: failed program was:" >&5
9888 cat conftest.$ac_ext >&5
9890 ac_cv_func_strcoll_works=no
9894 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
9895 if test $ac_cv_func_strcoll_works = yes; then
9896 { test "$extra_verbose" = "yes" && cat << \EOF
9897 Defining HAVE_STRCOLL
9899 cat >> confdefs.h <<\EOF
9900 #define HAVE_STRCOLL 1
9907 for ac_func in getpgrp
9909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9910 echo "configure:9911: checking for $ac_func" >&5
9912 cat > conftest.$ac_ext <<EOF
9913 #line 9914 "configure"
9914 #include "confdefs.h"
9915 /* System header to define __stub macros and hopefully few prototypes,
9916 which can conflict with char $ac_func(); below. */
9918 /* Override any gcc2 internal prototype to avoid an error. */
9919 /* We use char because int might match the return type of a gcc2
9920 builtin and then its argument prototype would still apply. */
9925 /* The GNU C library defines this for functions which it implements
9926 to always fail with ENOSYS. Some functions are actually named
9927 something starting with __ and the normal name is an alias. */
9928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9936 if { (eval echo configure:9937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9938 eval "ac_cv_func_$ac_func=yes"
9940 echo "configure: failed program was:" >&5
9941 cat conftest.$ac_ext >&5
9943 eval "ac_cv_func_$ac_func=no"
9947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9948 echo "$ac_t""yes" 1>&6
9949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9950 { test "$extra_verbose" = "yes" && cat << EOF
9951 Defining $ac_tr_func
9953 cat >> confdefs.h <<EOF
9954 #define $ac_tr_func 1
9959 echo "$ac_t""no" 1>&6
9963 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9964 echo "configure:9965: checking whether getpgrp takes no argument" >&5
9966 cat > conftest.$ac_ext <<EOF
9967 #line 9968 "configure"
9968 #include "confdefs.h"
9971 * If this system has a BSD-style getpgrp(),
9972 * which takes a pid argument, exit unsuccessfully.
9974 * Snarfed from Chet Ramey's bash pgrp.c test program
9977 #include <sys/types.h>
9980 int pg1, pg2, pg3, pg4;
9981 int ng, np, s, child;
9992 * If all of these values are the same, it's pretty sure that
9993 * we're on a system that ignores getpgrp's first argument.
9995 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
10001 else if (child == 0) {
10004 * If this is Sys V, this will not work; pgrp will be
10005 * set to np because setpgrp just changes a pgrp to be
10006 * the same as the pid.
10009 ng = getpgrp(0); /* Same result for Sys V and BSD */
10022 if { (eval echo configure:10023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10024 ac_cv_func_getpgrp_void=yes
10027 echo "configure: failed program was:" >&5
10028 cat conftest.$ac_ext >&5
10030 ac_cv_func_getpgrp_void=no
10035 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
10036 if test $ac_cv_func_getpgrp_void = yes; then
10037 { test "$extra_verbose" = "yes" && cat << \EOF
10038 Defining GETPGRP_VOID
10040 cat >> confdefs.h <<\EOF
10041 #define GETPGRP_VOID 1
10048 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10049 echo "configure:10050: checking for working mmap" >&5
10050 case "$opsys" in ultrix* ) have_mmap=no ;; *)
10051 cat > conftest.$ac_ext <<EOF
10052 #line 10053 "configure"
10053 #include "confdefs.h"
10055 #include <unistd.h>
10057 #include <sys/mman.h>
10059 #ifndef MAP_VARIABLE
10060 #define MAP_VARIABLE 0
10064 #define MAP_FAILED -1
10067 int main (int argc, char *argv[])
10071 #ifndef MAP_ANONYMOUS
10072 fd = open ("/dev/zero", O_RDWR);
10075 #define MAP_ANONYMOUS 0
10077 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
10078 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
10079 fd, 0) != (void *) MAP_FAILED)
10081 perror ("conftest: mmap failed");
10085 if { (eval echo configure:10086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10090 echo "configure: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10095 rm -fr conftest* ;;
10097 echo "$ac_t""$have_mmap" 1>&6
10098 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10101 cat >> confdefs.h <<\EOF
10102 #define HAVE_MMAP 1
10107 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10108 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
10109 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10112 cat >> confdefs.h <<\EOF
10113 #define REL_ALLOC 1
10118 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10119 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10120 echo "configure:10121: checking for termios.h" >&5
10122 cat > conftest.$ac_ext <<EOF
10123 #line 10124 "configure"
10124 #include "confdefs.h"
10125 #include <termios.h>
10127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10128 { (eval echo configure:10129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10130 if test -z "$ac_err"; then
10132 eval "ac_cv_header_$ac_safe=yes"
10135 echo "configure: failed program was:" >&5
10136 cat conftest.$ac_ext >&5
10138 eval "ac_cv_header_$ac_safe=no"
10141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10142 echo "$ac_t""yes" 1>&6
10143 { test "$extra_verbose" = "yes" && cat << \EOF
10144 Defining HAVE_TERMIOS
10146 cat >> confdefs.h <<\EOF
10147 #define HAVE_TERMIOS 1
10151 { test "$extra_verbose" = "yes" && cat << \EOF
10152 Defining SIGNALS_VIA_CHARACTERS
10154 cat >> confdefs.h <<\EOF
10155 #define SIGNALS_VIA_CHARACTERS 1
10159 { test "$extra_verbose" = "yes" && cat << \EOF
10162 cat >> confdefs.h <<\EOF
10163 #define NO_TERMIO 1
10168 echo "$ac_t""no" 1>&6
10169 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10170 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10171 echo "configure:10172: checking for termio.h" >&5
10173 cat > conftest.$ac_ext <<EOF
10174 #line 10175 "configure"
10175 #include "confdefs.h"
10176 #include <termio.h>
10178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10179 { (eval echo configure:10180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10181 if test -z "$ac_err"; then
10183 eval "ac_cv_header_$ac_safe=yes"
10186 echo "configure: failed program was:" >&5
10187 cat conftest.$ac_ext >&5
10189 eval "ac_cv_header_$ac_safe=no"
10192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10193 echo "$ac_t""yes" 1>&6
10194 { test "$extra_verbose" = "yes" && cat << \EOF
10195 Defining HAVE_TERMIO
10197 cat >> confdefs.h <<\EOF
10198 #define HAVE_TERMIO 1
10203 echo "$ac_t""no" 1>&6
10210 echo $ac_n "checking for socket""... $ac_c" 1>&6
10211 echo "configure:10212: checking for socket" >&5
10213 cat > conftest.$ac_ext <<EOF
10214 #line 10215 "configure"
10215 #include "confdefs.h"
10216 /* System header to define __stub macros and hopefully few prototypes,
10217 which can conflict with char socket(); below. */
10218 #include <assert.h>
10219 /* Override any gcc2 internal prototype to avoid an error. */
10220 /* We use char because int might match the return type of a gcc2
10221 builtin and then its argument prototype would still apply. */
10226 /* The GNU C library defines this for functions which it implements
10227 to always fail with ENOSYS. Some functions are actually named
10228 something starting with __ and the normal name is an alias. */
10229 #if defined (__stub_socket) || defined (__stub___socket)
10237 if { (eval echo configure:10238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10239 eval "ac_cv_func_socket=yes"
10241 echo "configure: failed program was:" >&5
10242 cat conftest.$ac_ext >&5
10244 eval "ac_cv_func_socket=no"
10248 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10249 echo "$ac_t""yes" 1>&6
10250 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10251 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10252 echo "configure:10253: checking for netinet/in.h" >&5
10254 cat > conftest.$ac_ext <<EOF
10255 #line 10256 "configure"
10256 #include "confdefs.h"
10257 #include <netinet/in.h>
10259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10260 { (eval echo configure:10261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10262 if test -z "$ac_err"; then
10264 eval "ac_cv_header_$ac_safe=yes"
10267 echo "configure: failed program was:" >&5
10268 cat conftest.$ac_ext >&5
10270 eval "ac_cv_header_$ac_safe=no"
10273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10274 echo "$ac_t""yes" 1>&6
10275 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10276 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10277 echo "configure:10278: checking for arpa/inet.h" >&5
10279 cat > conftest.$ac_ext <<EOF
10280 #line 10281 "configure"
10281 #include "confdefs.h"
10282 #include <arpa/inet.h>
10284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10285 { (eval echo configure:10286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10287 if test -z "$ac_err"; then
10289 eval "ac_cv_header_$ac_safe=yes"
10292 echo "configure: failed program was:" >&5
10293 cat conftest.$ac_ext >&5
10295 eval "ac_cv_header_$ac_safe=no"
10298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10299 echo "$ac_t""yes" 1>&6
10301 { test "$extra_verbose" = "yes" && cat << \EOF
10302 Defining HAVE_SOCKETS
10304 cat >> confdefs.h <<\EOF
10305 #define HAVE_SOCKETS 1
10309 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10310 echo "configure:10311: checking "for sun_len member in struct sockaddr_un"" >&5
10311 cat > conftest.$ac_ext <<EOF
10312 #line 10313 "configure"
10313 #include "confdefs.h"
10315 #include <sys/types.h>
10316 #include <sys/socket.h>
10317 #include <sys/un.h>
10320 static struct sockaddr_un x; x.sun_len = 1;
10323 if { (eval echo configure:10324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10325 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10326 Defining HAVE_SOCKADDR_SUN_LEN
10328 cat >> confdefs.h <<\EOF
10329 #define HAVE_SOCKADDR_SUN_LEN 1
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10337 echo "$ac_t""no" 1>&6
10340 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10341 echo "configure:10342: checking "for ip_mreq struct in netinet/in.h"" >&5
10342 cat > conftest.$ac_ext <<EOF
10343 #line 10344 "configure"
10344 #include "confdefs.h"
10346 #include <sys/types.h>
10347 #include <netinet/in.h>
10350 static struct ip_mreq x;
10353 if { (eval echo configure:10354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10355 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10356 Defining HAVE_MULTICAST
10358 cat >> confdefs.h <<\EOF
10359 #define HAVE_MULTICAST 1
10364 echo "configure: failed program was:" >&5
10365 cat conftest.$ac_ext >&5
10367 echo "$ac_t""no" 1>&6
10371 echo "$ac_t""no" 1>&6
10375 echo "$ac_t""no" 1>&6
10379 echo "$ac_t""no" 1>&6
10383 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10384 echo "configure:10385: checking for msgget" >&5
10386 cat > conftest.$ac_ext <<EOF
10387 #line 10388 "configure"
10388 #include "confdefs.h"
10389 /* System header to define __stub macros and hopefully few prototypes,
10390 which can conflict with char msgget(); below. */
10391 #include <assert.h>
10392 /* Override any gcc2 internal prototype to avoid an error. */
10393 /* We use char because int might match the return type of a gcc2
10394 builtin and then its argument prototype would still apply. */
10399 /* The GNU C library defines this for functions which it implements
10400 to always fail with ENOSYS. Some functions are actually named
10401 something starting with __ and the normal name is an alias. */
10402 #if defined (__stub_msgget) || defined (__stub___msgget)
10410 if { (eval echo configure:10411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10412 eval "ac_cv_func_msgget=yes"
10414 echo "configure: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10417 eval "ac_cv_func_msgget=no"
10421 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10422 echo "$ac_t""yes" 1>&6
10423 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10424 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10425 echo "configure:10426: checking for sys/ipc.h" >&5
10427 cat > conftest.$ac_ext <<EOF
10428 #line 10429 "configure"
10429 #include "confdefs.h"
10430 #include <sys/ipc.h>
10432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10433 { (eval echo configure:10434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10435 if test -z "$ac_err"; then
10437 eval "ac_cv_header_$ac_safe=yes"
10440 echo "configure: failed program was:" >&5
10441 cat conftest.$ac_ext >&5
10443 eval "ac_cv_header_$ac_safe=no"
10446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10447 echo "$ac_t""yes" 1>&6
10448 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10449 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10450 echo "configure:10451: checking for sys/msg.h" >&5
10452 cat > conftest.$ac_ext <<EOF
10453 #line 10454 "configure"
10454 #include "confdefs.h"
10455 #include <sys/msg.h>
10457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10458 { (eval echo configure:10459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10460 if test -z "$ac_err"; then
10462 eval "ac_cv_header_$ac_safe=yes"
10465 echo "configure: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10468 eval "ac_cv_header_$ac_safe=no"
10471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10472 echo "$ac_t""yes" 1>&6
10473 { test "$extra_verbose" = "yes" && cat << \EOF
10474 Defining HAVE_SYSVIPC
10476 cat >> confdefs.h <<\EOF
10477 #define HAVE_SYSVIPC 1
10482 echo "$ac_t""no" 1>&6
10486 echo "$ac_t""no" 1>&6
10490 echo "$ac_t""no" 1>&6
10494 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10495 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10496 echo "configure:10497: checking for dirent.h" >&5
10498 cat > conftest.$ac_ext <<EOF
10499 #line 10500 "configure"
10500 #include "confdefs.h"
10501 #include <dirent.h>
10503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10504 { (eval echo configure:10505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10506 if test -z "$ac_err"; then
10508 eval "ac_cv_header_$ac_safe=yes"
10511 echo "configure: failed program was:" >&5
10512 cat conftest.$ac_ext >&5
10514 eval "ac_cv_header_$ac_safe=no"
10517 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10518 echo "$ac_t""yes" 1>&6
10519 { test "$extra_verbose" = "yes" && cat << \EOF
10520 Defining SYSV_SYSTEM_DIR
10522 cat >> confdefs.h <<\EOF
10523 #define SYSV_SYSTEM_DIR 1
10528 echo "$ac_t""no" 1>&6
10529 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10530 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10531 echo "configure:10532: checking for sys/dir.h" >&5
10533 cat > conftest.$ac_ext <<EOF
10534 #line 10535 "configure"
10535 #include "confdefs.h"
10536 #include <sys/dir.h>
10538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10539 { (eval echo configure:10540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10541 if test -z "$ac_err"; then
10543 eval "ac_cv_header_$ac_safe=yes"
10546 echo "configure: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10549 eval "ac_cv_header_$ac_safe=no"
10552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10553 echo "$ac_t""yes" 1>&6
10556 echo "$ac_t""no" 1>&6
10557 { test "$extra_verbose" = "yes" && cat << \EOF
10558 Defining NONSYSTEM_DIR_LIBRARY
10560 cat >> confdefs.h <<\EOF
10561 #define NONSYSTEM_DIR_LIBRARY 1
10570 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10571 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10572 echo "configure:10573: checking for nlist.h" >&5
10574 cat > conftest.$ac_ext <<EOF
10575 #line 10576 "configure"
10576 #include "confdefs.h"
10579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10580 { (eval echo configure:10581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10581 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10582 if test -z "$ac_err"; then
10584 eval "ac_cv_header_$ac_safe=yes"
10587 echo "configure: failed program was:" >&5
10588 cat conftest.$ac_ext >&5
10590 eval "ac_cv_header_$ac_safe=no"
10593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10594 echo "$ac_t""yes" 1>&6
10595 { test "$extra_verbose" = "yes" && cat << \EOF
10596 Defining NLIST_STRUCT
10598 cat >> confdefs.h <<\EOF
10599 #define NLIST_STRUCT 1
10604 echo "$ac_t""no" 1>&6
10609 echo "checking "for sound support"" 1>&6
10610 echo "configure:10611: checking "for sound support"" >&5
10611 case "$with_sound" in
10612 native | both ) with_native_sound=yes;;
10613 nas | no ) with_native_sound=no;;
10615 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10617 if test "$with_native_sound" != "no"; then
10618 if test -n "$native_sound_lib"; then
10619 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10620 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10621 echo "configure:10622: checking for multimedia/audio_device.h" >&5
10623 cat > conftest.$ac_ext <<EOF
10624 #line 10625 "configure"
10625 #include "confdefs.h"
10626 #include <multimedia/audio_device.h>
10628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10629 { (eval echo configure:10630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10631 if test -z "$ac_err"; then
10633 eval "ac_cv_header_$ac_safe=yes"
10636 echo "configure: failed program was:" >&5
10637 cat conftest.$ac_ext >&5
10639 eval "ac_cv_header_$ac_safe=no"
10642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10643 echo "$ac_t""yes" 1>&6
10644 sound_found=yes sound_cflags=""
10645 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10646 echo " xemacs will be linked with \"sunplay.o\""
10649 echo "$ac_t""no" 1>&6
10654 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
10656 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10657 echo " xemacs will be linked with \"sunplay.o\""
10659 if test -d "/usr/demo/SOUND/include"
10660 then sound_cflags="-I/usr/demo/SOUND/include"
10661 else sound_cflags="-I/usr/demo/SOUND"
10663 if test -z "$native_sound_lib" ; then
10664 if test -r "/usr/demo/SOUND/lib/libaudio.a"
10665 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
10666 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
10671 if test -z "$sound_found"; then
10672 case "$canonical" in
10674 if test -z "$native_sound_lib"; then
10676 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10677 echo "configure:10678: checking for ALopenport in -laudio" >&5
10678 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10680 xe_check_libs=" -laudio "
10681 cat > conftest.$ac_ext <<EOF
10682 #line 10683 "configure"
10683 #include "confdefs.h"
10684 /* Override any gcc2 internal prototype to avoid an error. */
10685 /* We use char because int might match the return type of a gcc2
10686 builtin and then its argument prototype would still apply. */
10693 if { (eval echo configure:10694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10695 eval "ac_cv_lib_$ac_lib_var=yes"
10697 echo "configure: failed program was:" >&5
10698 cat conftest.$ac_ext >&5
10700 eval "ac_cv_lib_$ac_lib_var=no"
10705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10706 echo "$ac_t""yes" 1>&6
10707 native_sound_lib="-laudio"
10709 echo "$ac_t""no" 1>&6
10714 if test -n "$native_sound_lib"; then
10715 sound_found=yes sound_cflags=""
10716 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
10717 echo " xemacs will be linked with \"sgiplay.o\""
10721 if test -z "$native_sound_lib"; then
10723 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10724 echo "configure:10725: checking for AOpenAudio in -lAlib" >&5
10725 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10727 xe_check_libs=" -lAlib "
10728 cat > conftest.$ac_ext <<EOF
10729 #line 10730 "configure"
10730 #include "confdefs.h"
10731 /* Override any gcc2 internal prototype to avoid an error. */
10732 /* We use char because int might match the return type of a gcc2
10733 builtin and then its argument prototype would still apply. */
10740 if { (eval echo configure:10741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10742 eval "ac_cv_lib_$ac_lib_var=yes"
10744 echo "configure: failed program was:" >&5
10745 cat conftest.$ac_ext >&5
10747 eval "ac_cv_lib_$ac_lib_var=no"
10752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10753 echo "$ac_t""yes" 1>&6
10754 native_sound_lib="-lAlib"
10756 echo "$ac_t""no" 1>&6
10761 if test -n "$native_sound_lib"; then
10763 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
10764 echo " xemacs will be linked with \"hpplay.o\""
10766 if test "$GCC" = "yes" # Kludge city
10767 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
10768 else sound_cflags="+e -I/usr/audio/examples"
10774 if test -z "$sound_found"; then
10775 for dir in "machine" "sys" "linux"; do
10776 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10777 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10778 echo "configure:10779: checking for ${dir}/soundcard.h" >&5
10780 cat > conftest.$ac_ext <<EOF
10781 #line 10782 "configure"
10782 #include "confdefs.h"
10783 #include <${dir}/soundcard.h>
10785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10786 { (eval echo configure:10787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10788 if test -z "$ac_err"; then
10790 eval "ac_cv_header_$ac_safe=yes"
10793 echo "configure: failed program was:" >&5
10794 cat conftest.$ac_ext >&5
10796 eval "ac_cv_header_$ac_safe=no"
10799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10800 echo "$ac_t""yes" 1>&6
10802 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
10803 echo " xemacs will be linked with \"linuxplay.o\""
10805 { test "$extra_verbose" = "yes" && cat << EOF
10806 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
10808 cat >> confdefs.h <<EOF
10809 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
10815 echo "$ac_t""no" 1>&6
10821 test "$sound_found" = "yes" && with_native_sound=yes
10824 if test -z "$with_sound"; then
10825 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
10830 if test "$with_native_sound" = "yes"; then
10831 { test "$extra_verbose" = "yes" && cat << \EOF
10832 Defining HAVE_NATIVE_SOUND
10834 cat >> confdefs.h <<\EOF
10835 #define HAVE_NATIVE_SOUND 1
10839 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
10842 case "$with_sound" in both | nas )
10843 { test "$extra_verbose" = "yes" && cat << \EOF
10844 Defining HAVE_NAS_SOUND
10846 cat >> confdefs.h <<\EOF
10847 #define HAVE_NAS_SOUND 1
10851 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10852 echo " xemacs will be linked with \"nas.o\""
10854 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10855 cat > conftest.$ac_ext <<EOF
10856 #line 10857 "configure"
10857 #include "confdefs.h"
10858 #include <audio/Xtutil.h>
10860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10861 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10865 { test "$extra_verbose" = "yes" && cat << \EOF
10866 Defining NAS_NO_ERROR_JUMP
10868 cat >> confdefs.h <<\EOF
10869 #define NAS_NO_ERROR_JUMP 1
10879 test -z "$with_tty" && with_tty=yes
10881 if test "$with_tty" = "yes" ; then
10882 echo "checking for TTY-related features" 1>&6
10883 echo "configure:10884: checking for TTY-related features" >&5
10884 { test "$extra_verbose" = "yes" && cat << \EOF
10887 cat >> confdefs.h <<\EOF
10892 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
10893 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\""
10896 if test -z "$with_ncurses"; then
10898 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10899 echo "configure:10900: checking for tgetent in -lncurses" >&5
10900 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10902 xe_check_libs=" -lncurses "
10903 cat > conftest.$ac_ext <<EOF
10904 #line 10905 "configure"
10905 #include "confdefs.h"
10906 /* Override any gcc2 internal prototype to avoid an error. */
10907 /* We use char because int might match the return type of a gcc2
10908 builtin and then its argument prototype would still apply. */
10915 if { (eval echo configure:10916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10917 eval "ac_cv_lib_$ac_lib_var=yes"
10919 echo "configure: failed program was:" >&5
10920 cat conftest.$ac_ext >&5
10922 eval "ac_cv_lib_$ac_lib_var=no"
10927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10928 echo "$ac_t""yes" 1>&6
10931 echo "$ac_t""no" 1>&6
10937 if test "$with_ncurses" = "yes"; then
10938 { test "$extra_verbose" = "yes" && cat << \EOF
10939 Defining HAVE_NCURSES
10941 cat >> confdefs.h <<\EOF
10942 #define HAVE_NCURSES 1
10946 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10947 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10948 echo "configure:10949: checking for ncurses/curses.h" >&5
10950 cat > conftest.$ac_ext <<EOF
10951 #line 10952 "configure"
10952 #include "confdefs.h"
10953 #include <ncurses/curses.h>
10955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10956 { (eval echo configure:10957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10958 if test -z "$ac_err"; then
10960 eval "ac_cv_header_$ac_safe=yes"
10963 echo "configure: failed program was:" >&5
10964 cat conftest.$ac_ext >&5
10966 eval "ac_cv_header_$ac_safe=no"
10969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10970 echo "$ac_t""yes" 1>&6
10971 curses_h_path=ncurses/curses.h
10973 echo "$ac_t""no" 1>&6
10976 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10977 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10978 echo "configure:10979: checking for ncurses/term.h" >&5
10980 cat > conftest.$ac_ext <<EOF
10981 #line 10982 "configure"
10982 #include "confdefs.h"
10983 #include <ncurses/term.h>
10985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10986 { (eval echo configure:10987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10987 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10988 if test -z "$ac_err"; then
10990 eval "ac_cv_header_$ac_safe=yes"
10993 echo "configure: failed program was:" >&5
10994 cat conftest.$ac_ext >&5
10996 eval "ac_cv_header_$ac_safe=no"
10999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11000 echo "$ac_t""yes" 1>&6
11001 term_h_path=ncurses/term.h
11003 echo "$ac_t""no" 1>&6
11006 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11007 echo " xemacs will be linked with \"terminfo.o\""
11009 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
11011 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
11012 save_c_switch_site="$c_switch_site"
11013 c_switch_site="$c_switch_site -I/usr/include/ncurses"
11014 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11015 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11016 echo "configure:11017: checking for ncurses/curses.h" >&5
11018 cat > conftest.$ac_ext <<EOF
11019 #line 11020 "configure"
11020 #include "confdefs.h"
11021 #include <ncurses/curses.h>
11023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11024 { (eval echo configure:11025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11026 if test -z "$ac_err"; then
11028 eval "ac_cv_header_$ac_safe=yes"
11031 echo "configure: failed program was:" >&5
11032 cat conftest.$ac_ext >&5
11034 eval "ac_cv_header_$ac_safe=no"
11037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11038 echo "$ac_t""yes" 1>&6
11039 curses_h_path=ncurses/curses.h
11041 echo "$ac_t""no" 1>&6
11044 if test "$ac_cv_header_ncurses_curses_h" = "yes"
11045 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
11046 else c_switch_site="$save_c_switch_site"
11049 else if test "$have_terminfo" = "yes"; then
11050 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11051 echo " xemacs will be linked with \"terminfo.o\""
11053 if test -n "$libs_termcap"; then
11054 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11056 for lib in curses termlib termcap; do
11058 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
11059 echo "configure:11060: checking for tgetent in -l$lib" >&5
11060 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
11062 xe_check_libs=" -l$lib "
11063 cat > conftest.$ac_ext <<EOF
11064 #line 11065 "configure"
11065 #include "confdefs.h"
11066 /* Override any gcc2 internal prototype to avoid an error. */
11067 /* We use char because int might match the return type of a gcc2
11068 builtin and then its argument prototype would still apply. */
11075 if { (eval echo configure:11076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11077 eval "ac_cv_lib_$ac_lib_var=yes"
11079 echo "configure: failed program was:" >&5
11080 cat conftest.$ac_ext >&5
11082 eval "ac_cv_lib_$ac_lib_var=no"
11087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11088 echo "$ac_t""yes" 1>&6
11089 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
11091 echo "$ac_t""no" 1>&6
11097 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
11098 echo " xemacs will be linked with \"tparam.o\""
11100 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
11101 if test -n "$libs_termcap"; then
11102 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11105 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11106 echo "configure:11107: checking for tgetent in -lcurses" >&5
11107 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11109 xe_check_libs=" -lcurses "
11110 cat > conftest.$ac_ext <<EOF
11111 #line 11112 "configure"
11112 #include "confdefs.h"
11113 /* Override any gcc2 internal prototype to avoid an error. */
11114 /* We use char because int might match the return type of a gcc2
11115 builtin and then its argument prototype would still apply. */
11122 if { (eval echo configure:11123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11124 eval "ac_cv_lib_$ac_lib_var=yes"
11126 echo "configure: failed program was:" >&5
11127 cat conftest.$ac_ext >&5
11129 eval "ac_cv_lib_$ac_lib_var=no"
11134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11135 echo "$ac_t""yes" 1>&6
11136 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11138 echo "$ac_t""no" 1>&6
11139 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11140 echo "configure:11141: checking for tgetent in -ltermcap" >&5
11141 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11143 xe_check_libs=" -ltermcap "
11144 cat > conftest.$ac_ext <<EOF
11145 #line 11146 "configure"
11146 #include "confdefs.h"
11147 /* Override any gcc2 internal prototype to avoid an error. */
11148 /* We use char because int might match the return type of a gcc2
11149 builtin and then its argument prototype would still apply. */
11156 if { (eval echo configure:11157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11158 eval "ac_cv_lib_$ac_lib_var=yes"
11160 echo "configure: failed program was:" >&5
11161 cat conftest.$ac_ext >&5
11163 eval "ac_cv_lib_$ac_lib_var=no"
11168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11169 echo "$ac_t""yes" 1>&6
11170 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
11172 echo "$ac_t""no" 1>&6
11173 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
11174 echo " xemacs will be linked with \"termcap.o\""
11185 { test "$extra_verbose" = "yes" && cat << EOF
11186 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
11188 cat >> confdefs.h <<EOF
11189 #define CURSES_H_PATH "${curses_h_path-curses.h}"
11193 { test "$extra_verbose" = "yes" && cat << EOF
11194 Defining TERM_H_PATH = "${term_h_path-term.h}"
11196 cat >> confdefs.h <<EOF
11197 #define TERM_H_PATH "${term_h_path-term.h}"
11202 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11203 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11204 echo "configure:11205: checking for gpm.h" >&5
11206 cat > conftest.$ac_ext <<EOF
11207 #line 11208 "configure"
11208 #include "confdefs.h"
11211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11212 { (eval echo configure:11213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11214 if test -z "$ac_err"; then
11216 eval "ac_cv_header_$ac_safe=yes"
11219 echo "configure: failed program was:" >&5
11220 cat conftest.$ac_ext >&5
11222 eval "ac_cv_header_$ac_safe=no"
11225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11226 echo "$ac_t""yes" 1>&6
11229 echo "$ac_t""no" 1>&6
11233 test -z "$with_gpm" && {
11234 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11235 echo "configure:11236: checking for Gpm_Open in -lgpm" >&5
11236 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11238 xe_check_libs=" -lgpm "
11239 cat > conftest.$ac_ext <<EOF
11240 #line 11241 "configure"
11241 #include "confdefs.h"
11242 /* Override any gcc2 internal prototype to avoid an error. */
11243 /* We use char because int might match the return type of a gcc2
11244 builtin and then its argument prototype would still apply. */
11251 if { (eval echo configure:11252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11253 eval "ac_cv_lib_$ac_lib_var=yes"
11255 echo "configure: failed program was:" >&5
11256 cat conftest.$ac_ext >&5
11258 eval "ac_cv_lib_$ac_lib_var=no"
11263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11264 echo "$ac_t""yes" 1>&6
11267 echo "$ac_t""no" 1>&6
11272 if test "$with_gpm" = "yes"; then
11273 { test "$extra_verbose" = "yes" && cat << \EOF
11276 cat >> confdefs.h <<\EOF
11281 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
11282 echo " xemacs will be linked with \"gpmevent.o\""
11284 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
11287 else for feature in ncurses gpm; do
11288 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11289 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
11291 eval "with_${feature}=no"
11294 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
11295 echo " xemacs will be linked with \"event-unixoid.o\""
11299 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11300 != "no no no" && echo "checking for database support" 1>&6
11301 echo "configure:11302: checking for database support" >&5
11303 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
11304 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11305 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11306 echo "configure:11307: checking for ndbm.h" >&5
11308 cat > conftest.$ac_ext <<EOF
11309 #line 11310 "configure"
11310 #include "confdefs.h"
11313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11314 { (eval echo configure:11315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11316 if test -z "$ac_err"; then
11318 eval "ac_cv_header_$ac_safe=yes"
11321 echo "configure: failed program was:" >&5
11322 cat conftest.$ac_ext >&5
11324 eval "ac_cv_header_$ac_safe=no"
11327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11328 echo "$ac_t""yes" 1>&6
11331 echo "$ac_t""no" 1>&6
11333 test "$with_database_gnudbm" = "yes" -o \
11334 "$with_database_dbm" = "yes" && \
11335 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11336 with_database_gnudbm=no with_database_dbm=no
11341 if test "$with_database_gnudbm" != "no"; then
11343 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11344 echo "configure:11345: checking for dbm_open in -lgdbm" >&5
11345 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11347 xe_check_libs=" -lgdbm "
11348 cat > conftest.$ac_ext <<EOF
11349 #line 11350 "configure"
11350 #include "confdefs.h"
11351 /* Override any gcc2 internal prototype to avoid an error. */
11352 /* We use char because int might match the return type of a gcc2
11353 builtin and then its argument prototype would still apply. */
11360 if { (eval echo configure:11361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11362 eval "ac_cv_lib_$ac_lib_var=yes"
11364 echo "configure: failed program was:" >&5
11365 cat conftest.$ac_ext >&5
11367 eval "ac_cv_lib_$ac_lib_var=no"
11372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11373 echo "$ac_t""yes" 1>&6
11374 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm
11376 echo "$ac_t""no" 1>&6
11377 if test "$with_database_gnudbm" = "yes"; then
11378 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
11380 with_database_gnudbm=no
11386 if test "$with_database_dbm" != "no"; then
11387 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11388 echo "configure:11389: checking for dbm_open" >&5
11390 cat > conftest.$ac_ext <<EOF
11391 #line 11392 "configure"
11392 #include "confdefs.h"
11393 /* System header to define __stub macros and hopefully few prototypes,
11394 which can conflict with char dbm_open(); below. */
11395 #include <assert.h>
11396 /* Override any gcc2 internal prototype to avoid an error. */
11397 /* We use char because int might match the return type of a gcc2
11398 builtin and then its argument prototype would still apply. */
11403 /* The GNU C library defines this for functions which it implements
11404 to always fail with ENOSYS. Some functions are actually named
11405 something starting with __ and the normal name is an alias. */
11406 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11414 if { (eval echo configure:11415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11416 eval "ac_cv_func_dbm_open=yes"
11418 echo "configure: failed program was:" >&5
11419 cat conftest.$ac_ext >&5
11421 eval "ac_cv_func_dbm_open=no"
11425 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11426 echo "$ac_t""yes" 1>&6
11427 with_database_dbm=yes libdbm=
11429 echo "$ac_t""no" 1>&6
11432 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11433 echo "configure:11434: checking for dbm_open in -ldbm" >&5
11434 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11436 xe_check_libs=" -ldbm "
11437 cat > conftest.$ac_ext <<EOF
11438 #line 11439 "configure"
11439 #include "confdefs.h"
11440 /* Override any gcc2 internal prototype to avoid an error. */
11441 /* We use char because int might match the return type of a gcc2
11442 builtin and then its argument prototype would still apply. */
11449 if { (eval echo configure:11450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11451 eval "ac_cv_lib_$ac_lib_var=yes"
11453 echo "configure: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11456 eval "ac_cv_lib_$ac_lib_var=no"
11461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11462 echo "$ac_t""yes" 1>&6
11463 with_database_dbm=yes libdbm=-ldbm
11465 echo "$ac_t""no" 1>&6
11466 test "$with_database_dbm" = "yes" && \
11467 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11468 with_database_dbm=no
11476 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
11477 test "$with_database_gnudbm" = "yes" -o \
11478 "$with_database_dbm" = "yes" && \
11479 { test "$extra_verbose" = "yes" && cat << \EOF
11482 cat >> confdefs.h <<\EOF
11488 if test "$with_database_berkdb" != "no"; then
11489 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11490 echo "configure:11491: checking for Berkeley db.h" >&5
11491 for path in "db/db.h" "db.h"; do
11492 cat > conftest.$ac_ext <<EOF
11493 #line 11494 "configure"
11494 #include "confdefs.h"
11495 #ifdef HAVE_INTTYPES_H
11496 #define __BIT_TYPES_DEFINED__
11497 #include <inttypes.h>
11498 typedef uint8_t u_int8_t;
11499 typedef uint16_t u_int16_t;
11500 typedef uint32_t u_int32_t;
11501 #ifdef WE_DONT_NEED_QUADS
11502 typedef uint64_t u_int64_t;
11511 if { (eval echo configure:11512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11513 db_h_path="$path"; break
11515 echo "configure: failed program was:" >&5
11516 cat conftest.$ac_ext >&5
11520 if test -z "$db_h_path"
11521 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
11522 else echo "$ac_t""$db_h_path" 1>&6
11525 if test "$with_database_berkdb" != "no"; then
11526 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11527 echo "configure:11528: checking for Berkeley DB version" >&5
11528 cat > conftest.$ac_ext <<EOF
11529 #line 11530 "configure"
11530 #include "confdefs.h"
11531 #include <$db_h_path>
11532 #if DB_VERSION_MAJOR > 1
11537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11538 egrep "yes" >/dev/null 2>&1; then
11540 echo "$ac_t""2" 1>&6; dbfunc=db_open
11543 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11547 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11548 echo "configure:11549: checking for $dbfunc" >&5
11550 cat > conftest.$ac_ext <<EOF
11551 #line 11552 "configure"
11552 #include "confdefs.h"
11553 /* System header to define __stub macros and hopefully few prototypes,
11554 which can conflict with char $dbfunc(); below. */
11555 #include <assert.h>
11556 /* Override any gcc2 internal prototype to avoid an error. */
11557 /* We use char because int might match the return type of a gcc2
11558 builtin and then its argument prototype would still apply. */
11563 /* The GNU C library defines this for functions which it implements
11564 to always fail with ENOSYS. Some functions are actually named
11565 something starting with __ and the normal name is an alias. */
11566 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
11574 if { (eval echo configure:11575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11576 eval "ac_cv_func_$dbfunc=yes"
11578 echo "configure: failed program was:" >&5
11579 cat conftest.$ac_ext >&5
11581 eval "ac_cv_func_$dbfunc=no"
11585 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
11586 echo "$ac_t""yes" 1>&6
11587 with_database_berkdb=yes need_libdb=no
11589 echo "$ac_t""no" 1>&6
11592 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11593 echo "configure:11594: checking for $dbfunc in -ldb" >&5
11594 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11596 xe_check_libs=" -ldb "
11597 cat > conftest.$ac_ext <<EOF
11598 #line 11599 "configure"
11599 #include "confdefs.h"
11600 /* Override any gcc2 internal prototype to avoid an error. */
11601 /* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11609 if { (eval echo configure:11610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11611 eval "ac_cv_lib_$ac_lib_var=yes"
11613 echo "configure: failed program was:" >&5
11614 cat conftest.$ac_ext >&5
11616 eval "ac_cv_lib_$ac_lib_var=no"
11621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11622 echo "$ac_t""yes" 1>&6
11623 with_database_berkdb=yes need_libdb=yes
11625 echo "$ac_t""no" 1>&6
11633 if test "$with_database_berkdb" = "yes"; then
11634 { test "$extra_verbose" = "yes" && cat << EOF
11635 Defining DB_H_PATH = "$db_h_path"
11637 cat >> confdefs.h <<EOF
11638 #define DB_H_PATH "$db_h_path"
11642 { test "$extra_verbose" = "yes" && cat << \EOF
11643 Defining HAVE_BERKELEY_DB
11645 cat >> confdefs.h <<\EOF
11646 #define HAVE_BERKELEY_DB 1
11650 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
11651 else with_database_berkdb=no
11655 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11656 != "no no no"; then
11657 { test "$extra_verbose" = "yes" && cat << \EOF
11658 Defining HAVE_DATABASE
11660 cat >> confdefs.h <<\EOF
11661 #define HAVE_DATABASE 1
11665 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
11666 echo " xemacs will be linked with \"database.o\""
11670 if test "$with_socks" = "yes"; then
11672 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11673 echo "configure:11674: checking for SOCKSinit in -lsocks" >&5
11674 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11676 xe_check_libs=" -lsocks "
11677 cat > conftest.$ac_ext <<EOF
11678 #line 11679 "configure"
11679 #include "confdefs.h"
11680 /* Override any gcc2 internal prototype to avoid an error. */
11681 /* We use char because int might match the return type of a gcc2
11682 builtin and then its argument prototype would still apply. */
11689 if { (eval echo configure:11690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11691 eval "ac_cv_lib_$ac_lib_var=yes"
11693 echo "configure: failed program was:" >&5
11694 cat conftest.$ac_ext >&5
11696 eval "ac_cv_lib_$ac_lib_var=no"
11701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11702 echo "$ac_t""yes" 1>&6
11703 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11704 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11705 { test "$extra_verbose" = "yes" && cat << EOF
11706 Defining $ac_tr_lib
11708 cat >> confdefs.h <<EOF
11709 #define $ac_tr_lib 1
11713 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
11716 echo "$ac_t""no" 1>&6
11720 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
11721 Defining HAVE_SOCKS
11723 cat >> confdefs.h <<\EOF
11724 #define HAVE_SOCKS 1
11730 if test "$usage_tracking" = "yes"; then
11731 { test "$extra_verbose" = "yes" && cat << \EOF
11732 Defining USAGE_TRACKING
11734 cat >> confdefs.h <<\EOF
11735 #define USAGE_TRACKING 1
11739 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11742 for ac_hdr in dlfcn.h
11744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11746 echo "configure:11747: checking for $ac_hdr" >&5
11748 cat > conftest.$ac_ext <<EOF
11749 #line 11750 "configure"
11750 #include "confdefs.h"
11753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11754 { (eval echo configure:11755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11756 if test -z "$ac_err"; then
11758 eval "ac_cv_header_$ac_safe=yes"
11761 echo "configure: failed program was:" >&5
11762 cat conftest.$ac_ext >&5
11764 eval "ac_cv_header_$ac_safe=no"
11767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11768 echo "$ac_t""yes" 1>&6
11769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11770 { test "$extra_verbose" = "yes" && cat << EOF
11771 Defining $ac_tr_hdr
11773 cat >> confdefs.h <<EOF
11774 #define $ac_tr_hdr 1
11778 { test "$extra_verbose" = "yes" && cat << \EOF
11779 Defining HAVE_DLFCN_H
11781 cat >> confdefs.h <<\EOF
11782 #define HAVE_DLFCN_H 1
11787 echo "$ac_t""no" 1>&6
11791 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11792 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11793 echo "configure:11794: checking for dlopen in -ldl" >&5
11794 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11796 xe_check_libs=" -ldl "
11797 cat > conftest.$ac_ext <<EOF
11798 #line 11799 "configure"
11799 #include "confdefs.h"
11800 /* Override any gcc2 internal prototype to avoid an error. */
11801 /* We use char because int might match the return type of a gcc2
11802 builtin and then its argument prototype would still apply. */
11809 if { (eval echo configure:11810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11811 eval "ac_cv_lib_$ac_lib_var=yes"
11813 echo "configure: failed program was:" >&5
11814 cat conftest.$ac_ext >&5
11816 eval "ac_cv_lib_$ac_lib_var=no"
11821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11822 echo "$ac_t""yes" 1>&6
11823 { test "$extra_verbose" = "yes" && cat << \EOF
11824 Defining HAVE_DLOPEN
11826 cat >> confdefs.h <<\EOF
11827 #define HAVE_DLOPEN 1
11830 DLL_LIB=dl; with_modules=yes
11832 echo "$ac_t""no" 1>&6
11836 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11837 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11838 echo "configure:11839: checking for _dlopen in -lc" >&5
11839 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11841 xe_check_libs=" -lc "
11842 cat > conftest.$ac_ext <<EOF
11843 #line 11844 "configure"
11844 #include "confdefs.h"
11845 /* Override any gcc2 internal prototype to avoid an error. */
11846 /* We use char because int might match the return type of a gcc2
11847 builtin and then its argument prototype would still apply. */
11854 if { (eval echo configure:11855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11856 eval "ac_cv_lib_$ac_lib_var=yes"
11858 echo "configure: failed program was:" >&5
11859 cat conftest.$ac_ext >&5
11861 eval "ac_cv_lib_$ac_lib_var=no"
11866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11867 echo "$ac_t""yes" 1>&6
11868 { test "$extra_verbose" = "yes" && cat << \EOF
11869 Defining HAVE_DLOPEN
11871 cat >> confdefs.h <<\EOF
11872 #define HAVE_DLOPEN 1
11875 DLL_LIB=; with_modules=yes
11877 echo "$ac_t""no" 1>&6
11881 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11882 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11883 echo "configure:11884: checking for dlopen in -lc" >&5
11884 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11886 xe_check_libs=" -lc "
11887 cat > conftest.$ac_ext <<EOF
11888 #line 11889 "configure"
11889 #include "confdefs.h"
11890 /* Override any gcc2 internal prototype to avoid an error. */
11891 /* We use char because int might match the return type of a gcc2
11892 builtin and then its argument prototype would still apply. */
11899 if { (eval echo configure:11900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11901 eval "ac_cv_lib_$ac_lib_var=yes"
11903 echo "configure: failed program was:" >&5
11904 cat conftest.$ac_ext >&5
11906 eval "ac_cv_lib_$ac_lib_var=no"
11911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11912 echo "$ac_t""yes" 1>&6
11913 { test "$extra_verbose" = "yes" && cat << \EOF
11914 Defining HAVE_DLOPEN
11916 cat >> confdefs.h <<\EOF
11917 #define HAVE_DLOPEN 1
11920 DLL_LIB=; with_modules=yes
11922 echo "$ac_t""no" 1>&6
11926 test -z "$with_modules" && {
11927 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11928 echo "configure:11929: checking for shl_load in -ldld" >&5
11929 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11931 xe_check_libs=" -ldld "
11932 cat > conftest.$ac_ext <<EOF
11933 #line 11934 "configure"
11934 #include "confdefs.h"
11935 /* Override any gcc2 internal prototype to avoid an error. */
11936 /* We use char because int might match the return type of a gcc2
11937 builtin and then its argument prototype would still apply. */
11944 if { (eval echo configure:11945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11946 eval "ac_cv_lib_$ac_lib_var=yes"
11948 echo "configure: failed program was:" >&5
11949 cat conftest.$ac_ext >&5
11951 eval "ac_cv_lib_$ac_lib_var=no"
11956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11957 echo "$ac_t""yes" 1>&6
11958 { test "$extra_verbose" = "yes" && cat << \EOF
11959 Defining HAVE_SHL_LOAD
11961 cat >> confdefs.h <<\EOF
11962 #define HAVE_SHL_LOAD 1
11965 DLL_LIB=dld; with_modules=yes
11967 echo "$ac_t""no" 1>&6
11971 test -z "$with_modules" && {
11972 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11973 echo "configure:11974: checking for dld_init in -ldld" >&5
11974 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11976 xe_check_libs=" -ldld "
11977 cat > conftest.$ac_ext <<EOF
11978 #line 11979 "configure"
11979 #include "confdefs.h"
11980 /* Override any gcc2 internal prototype to avoid an error. */
11981 /* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11989 if { (eval echo configure:11990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11991 eval "ac_cv_lib_$ac_lib_var=yes"
11993 echo "configure: failed program was:" >&5
11994 cat conftest.$ac_ext >&5
11996 eval "ac_cv_lib_$ac_lib_var=no"
12001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12002 echo "$ac_t""yes" 1>&6
12003 { test "$extra_verbose" = "yes" && cat << \EOF
12004 Defining HAVE_DLD_INIT
12006 cat >> confdefs.h <<\EOF
12007 #define HAVE_DLD_INIT 1
12010 DLL_LIB=dld; with_modules=yes
12012 echo "$ac_t""no" 1>&6
12016 if test "$with_modules" = "yes"; then
12023 ld_dynamic_link_flags=
12025 xealias=$internal_configuration
12027 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
12028 echo "configure:12029: checking how to build dynamic libraries for ${xehost}" >&5
12029 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
12032 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
12035 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
12036 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
12037 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
12039 case "$xehost_os" in
12041 # AIX sometimes has problems with the GCC collect2 program. For some
12042 # reason, if we set the COLLECT_NAMES environment variable, the problems
12043 # vanish in a puff of smoke.
12044 if test "${COLLECT_NAMES+set}" != set; then
12046 export COLLECT_NAMES
12051 # Now see if the compiler is really GCC.
12052 if test "$GCC" = "yes"; then
12055 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
12056 echo "configure:12057: checking checking whether we are using GNU C" >&5
12057 cat > conftest.$ac_ext <<EOF
12058 #line 12059 "configure"
12059 #include "confdefs.h"
12066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12067 egrep "yes" >/dev/null 2>&1; then
12076 echo "$ac_t""${XEGCC}" 1>&6
12079 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12080 echo "configure:12081: checking how to produce PIC code" >&5
12083 can_build_shared=yes
12084 if test "$XEGCC" = yes; then
12087 case "$xehost_os" in
12088 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
12089 # PIC is the default for these OSes.
12093 # We can build DLLs from non-PIC.
12096 # FIXME: we need at least 68020 code to build shared libraries, but
12097 # adding the `-m68020' flag to GCC prevents building anything better,
12099 dll_cflags='-m68020 -resident32 -malways-restore-a4'
12106 # PORTME Check for PIC flags for the system compiler.
12107 case "$xehost_os" in
12109 # Is there a better link_static_flag that works with the bundled CC?
12116 # PIC (with -KPIC) is the default.
12120 # We can build DLLs from non-PIC.
12124 # All OSF/1 code is PIC.
12129 dll_cflags='-belf -Kpic'
12163 can_build_shared=no
12168 if test -n "$dll_cflags"; then
12169 echo "$ac_t""${dll_cflags}" 1>&6
12171 # Check to make sure the dll_cflags actually works.
12172 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12173 echo "configure:12174: checking if PIC flag ${dll_cflags} really works" >&5
12174 save_CFLAGS="$CFLAGS"
12175 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12176 cat > conftest.$ac_ext <<EOF
12177 #line 12178 "configure"
12178 #include "confdefs.h"
12184 if { (eval echo configure:12185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12187 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12188 # reports no error. So, we need to grep stderr for (Bundled).
12189 if grep '(Bundled)' config.log >/dev/null; then
12190 echo "$ac_t""no" 1>&6
12191 can_build_shared=no
12194 echo "$ac_t""yes" 1>&6
12197 echo "configure: failed program was:" >&5
12198 cat conftest.$ac_ext >&5
12200 echo "$ac_t""no" 1>&6
12201 can_build_shared=no
12205 CFLAGS="$save_CFLAGS"
12207 echo "$ac_t""none" 1>&6
12210 if test "$can_build_shared" = "yes"; then
12214 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12215 echo "configure:12216: checking if C compiler can produce shared libraries" >&5
12216 if test "$XEGCC" = yes; then
12219 else # Not using GCC
12220 case "$xehost_os" in
12222 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
12223 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
12226 freebsd2* | netbsd* | openbsd*)
12228 xcldf="${wl}-Bshareable"
12237 xcldf="${wl}-b ${wl}+s"
12240 irix5* | irix6* | osf3* | osf4*)
12241 xcldf="${wl}-shared"
12245 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
12251 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
12252 xldf="-assert pure-text -Bstatic"
12255 fi # End if if we are using gcc
12257 if test -n "$xcldf"; then
12258 save_LDFLAGS=$LDFLAGS
12260 save_xe_libs=$xe_libs
12261 LDFLAGS="$xcldf $LDFLAGS"
12264 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12265 cat > conftest.$ac_ext <<EOF
12266 #line 12267 "configure"
12267 #include "confdefs.h"
12273 if { (eval echo configure:12274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12277 echo "configure: failed program was:" >&5
12278 cat conftest.$ac_ext >&5
12283 LDFLAGS=$save_LDFLAGS
12285 xe_libs=$save_xe_libs
12286 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12290 echo "$ac_t""${cc_produces_so}" 1>&6
12293 if test -z "$LTLD"; then
12295 if test "$XEGCC" = yes; then
12296 # Check if gcc -print-prog-name=ld gives a path.
12297 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12298 echo "configure:12299: checking for ld used by GCC" >&5
12299 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12301 # Accept absolute paths.
12303 if test -z "$LTLD"; then
12305 *gcc-lib*) LTLD="$CC"
12313 # If it fails, then pretend we aren't using GCC.
12317 # If it is relative, then search for the first ld in PATH.
12318 with_gnu_ld=unknown
12322 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12323 echo "configure:12324: checking for GNU ld" >&5
12326 if test -z "$LTLD"; then
12327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12328 for ac_dir in $PATH; do
12329 test -z "$ac_dir" && ac_dir=.
12330 if test -f "$ac_dir/$ac_prog"; then
12331 LTLD="$ac_dir/$ac_prog"
12332 # Check to see if the program is GNU ld. I'd rather use --version,
12333 # but apparently some GNU ld's only accept -v.
12334 # Break only if it was the GNU/non-GNU ld that we prefer.
12335 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12345 if test -n "$LTLD"; then
12346 echo "$ac_t""${LTLD}" 1>&6
12348 echo "$ac_t""no" 1>&6
12351 if test -z "$LTLD" -a "$cc_produces_so" = no; then
12352 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
12357 ld_dynamic_link_flags=
12359 # Check to see if it really is or isn't GNU ld.
12360 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12361 echo "configure:12362: checking if the linker is GNU ld" >&5
12362 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12363 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12368 echo "$ac_t""${xe_gnu_ld}" 1>&6
12370 case "$xehost_os" in
12371 amigaos* | sunos4*)
12372 # On these operating systems, we should treat GNU ld like the system ld.
12373 gnu_ld_acts_native=yes
12376 gnu_ld_acts_native=no
12380 if test "$cc_produces_so" = "yes"; then
12383 can_build_shared=yes
12385 # OK - only NOW do we futz about with ld.
12386 # See if the linker supports building shared libraries.
12387 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12388 echo "configure:12389: checking whether the linker supports shared libraries" >&5
12390 dll_ldflags=$LDFLAGS
12392 can_build_shared=yes
12393 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12394 # See if GNU ld supports shared libraries.
12395 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12397 dll_ldflags="-shared"
12403 # PORTME fill in a description of your system's linker (not GNU ld)
12404 case "$xehost_os" in
12414 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12415 # support. Future versions do this automatically, but an explicit c++rt0.o
12416 # doesn't break anything, and helps significantly (at the cost of a little
12421 dll_post="/usr/lib/c++rt0.o"
12424 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
12427 dll_ldflags="-Bshareable"
12430 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
12432 dll_ldflags="-shared"
12446 # Tested with NetBSD 1.2 ld
12461 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
12462 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12465 *gcc*) dll_ldflags="-shared"
12468 *) dll_ldflags="-G"
12474 if test "$XEGCC" = yes; then
12494 can_build_shared=no
12498 echo "$ac_t""${ld_shlibs}" 1>&6
12499 if test "$ld_shlibs" = "no"; then
12500 can_build_shared=no
12502 fi # End of if cc_produces_so = no
12505 if test "$xe_gnu_ld" = yes; then
12506 if test "$ld_shlibs" = yes; then
12507 ld_dynamic_link_flags="${wl}-export-dynamic"
12511 if test -z "$ld_dynamic_link_flags"; then
12512 case "$xehost_os" in
12514 ld_dynamic_link_flags=
12518 ld_dynamic_link_flags=
12522 ld_dynamic_link_flags=
12526 ld_dynamic_link_flags=
12530 ld_dynamic_link_flags=
12534 ld_dynamic_link_flags="${wl}-E"
12538 ld_dynamic_link_flags=
12542 ld_dynamic_link_flags=
12546 ld_dynamic_link_flags=
12550 ld_dynamic_link_flags=
12553 solaris2* | solaris7*)
12554 ld_dynamic_link_flags="${wl}-Bdynamic"
12557 sco3.2v5* | unixware* | sysv5* | sysv4*)
12558 ld_dynamic_link_flags="${wl}-Bexport"
12562 ld_dynamic_link_flags=
12566 ld_dynamic_link_flags=
12570 ld_dynamic_link_flags=
12574 fi # End of if -z ld_dynamic_link_flags
12575 fi # End of if test "$can_build_shared" = "yes"
12584 if test "$can_build_shared" = "yes"; then
12585 { test "$extra_verbose" = "yes" && cat << \EOF
12586 Defining HAVE_SHLIB
12588 cat >> confdefs.h <<\EOF
12589 #define HAVE_SHLIB 1
12593 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then
12594 echo " xemacs will be linked with \"sysdll.o\""
12596 extra_objs="$extra_objs emodules.o" && if test "$extra_verbose" = "yes"; then
12597 echo " xemacs will be linked with \"emodules.o\""
12599 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12600 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
12601 for ac_func in dlerror _dlerror
12603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12604 echo "configure:12605: checking for $ac_func" >&5
12606 cat > conftest.$ac_ext <<EOF
12607 #line 12608 "configure"
12608 #include "confdefs.h"
12609 /* System header to define __stub macros and hopefully few prototypes,
12610 which can conflict with char $ac_func(); below. */
12611 #include <assert.h>
12612 /* Override any gcc2 internal prototype to avoid an error. */
12613 /* We use char because int might match the return type of a gcc2
12614 builtin and then its argument prototype would still apply. */
12619 /* The GNU C library defines this for functions which it implements
12620 to always fail with ENOSYS. Some functions are actually named
12621 something starting with __ and the normal name is an alias. */
12622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12630 if { (eval echo configure:12631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12632 eval "ac_cv_func_$ac_func=yes"
12634 echo "configure: failed program was:" >&5
12635 cat conftest.$ac_ext >&5
12637 eval "ac_cv_func_$ac_func=no"
12641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12642 echo "$ac_t""yes" 1>&6
12643 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12644 { test "$extra_verbose" = "yes" && cat << EOF
12645 Defining $ac_tr_func
12647 cat >> confdefs.h <<EOF
12648 #define $ac_tr_func 1
12653 echo "$ac_t""no" 1>&6
12658 echo "configure: warning: disabling shared library support" 1>&2
12663 cat > conftest.$ac_ext <<EOF
12664 #line 12665 "configure"
12665 #include "confdefs.h"
12666 int main(int c,char *v[]){return 0;}
12668 if { (eval echo configure:12669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12673 echo "configure: failed program was:" >&5
12674 cat conftest.$ac_ext >&5
12678 echo "*** PANIC *** The C compiler can no longer build working executables."
12679 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
12680 echo "*** PANIC *** The most likely reason for this problem is that configure"
12681 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
12682 echo "*** PANIC *** found at run time."
12683 echo "*** PANIC ***"
12684 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
12685 echo "*** PANIC *** On other systems, try telling configure where to find the"
12686 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
12687 echo "*** PANIC ***"
12688 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
12689 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
12690 echo "*** PANIC *** on your system. Don't do that."
12695 if test "$win32_processes" = "yes"; then
12696 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
12697 echo " xemacs will be linked with \"process-nt.o\""
12700 { test "$extra_verbose" = "yes" && cat << \EOF
12701 Defining HAVE_UNIX_PROCESSES
12703 cat >> confdefs.h <<\EOF
12704 #define HAVE_UNIX_PROCESSES 1
12708 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
12709 echo " xemacs will be linked with \"process-unix.o\""
12716 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12721 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12726 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
12727 c_switch_general="$T"
12731 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12732 c_switch_window_system="$T"
12736 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12741 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
12742 ld_switch_general="$T"
12746 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12747 ld_switch_window_system="$T"
12751 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12756 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12757 ld_libs_general="$T"
12761 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
12762 ld_libs_window_system="$T"
12766 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12771 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
12772 internal_makefile_list="Makefile.in"
12773 SUBDIR_MAKEFILES=''
12774 test -d lock || mkdir lock
12775 for dir in $MAKE_SUBDIR; do
12776 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
12777 test -d "$d" || mkdir "$d"; cd "$d"
12779 * ) test -d "$dir" || mkdir "$dir" ;;
12783 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12784 SUBDIR_MAKEFILES="$T"
12788 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12789 internal_makefile_list="$T"
12796 for dir in src/s src/m; do
12797 if test ! -d "$dir" ; then
12798 echo Making symbolic link to "$srcdir/$dir"
12799 ${LN_S} "$srcdir/$dir" "$dir"
12803 if test "$extra_verbose" = "yes"; then
12805 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
12809 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
12810 echo "creating src/gdbinit"; echo ""
12811 echo "source $srcdir/src/gdbinit" > src/gdbinit
12814 if test "$__SUNPRO_C" = "yes"; then
12815 echo "creating .sbinit"; echo ""
12816 ( echo "# For use with Sun WorkShop's Source browser."
12817 echo "# See sbquery(1) and sbinit(4) for more information"
12818 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
12845 *\$* ) eval "PREFIX=$PREFIX" ;;
12853 EXEC_PREFIX=$exec_prefix
12855 case "$EXEC_PREFIX" in
12856 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
12867 *\$* ) eval "INFODIR=$INFODIR" ;;
12877 case "$INFOPATH" in
12878 *\$* ) eval "INFOPATH=$INFOPATH" ;;
12886 PACKAGE_PATH=$package_path
12888 case "$PACKAGE_PATH" in
12889 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
12900 *\$* ) eval "LISPDIR=$LISPDIR" ;;
12908 MODULEDIR=$moduledir
12910 case "$MODULEDIR" in
12911 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
12919 SITELISPDIR=$sitelispdir
12921 case "$SITELISPDIR" in
12922 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
12930 SITEMODULEDIR=$sitemoduledir
12932 case "$SITEMODULEDIR" in
12933 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
12944 *\$* ) eval "ETCDIR=$ETCDIR" ;;
12955 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
12966 *\$* ) eval "DOCDIR=$DOCDIR" ;;
12974 ARCHLIBDIR=$archlibdir
12976 case "$ARCHLIBDIR" in
12977 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
13001 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
13009 : ${XEMACS_CC:=$CC}
13012 if test "$with_prefix" = "yes"; then
13013 { test "$extra_verbose" = "yes" && cat << \EOF
13014 Defining PREFIX_USER_DEFINED
13016 cat >> confdefs.h <<\EOF
13017 #define PREFIX_USER_DEFINED 1
13023 if test "$with_site_lisp" = "no"; then
13024 { test "$extra_verbose" = "yes" && cat << \EOF
13025 Defining INHIBIT_SITE_LISP
13027 cat >> confdefs.h <<\EOF
13028 #define INHIBIT_SITE_LISP 1
13033 if test "$with_site_modules" = "no"; then
13034 { test "$extra_verbose" = "yes" && cat << \EOF
13035 Defining INHIBIT_SITE_MODULES
13037 cat >> confdefs.h <<\EOF
13038 #define INHIBIT_SITE_MODULES 1
13046 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13047 ac_configure_args="$T"
13049 { test "$extra_verbose" = "yes" && cat << EOF
13050 Defining EMACS_CONFIGURATION = "$configuration"
13052 cat >> confdefs.h <<EOF
13053 #define EMACS_CONFIGURATION "$configuration"
13057 { test "$extra_verbose" = "yes" && cat << EOF
13058 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
13060 cat >> confdefs.h <<EOF
13061 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
13065 { test "$extra_verbose" = "yes" && cat << EOF
13066 Defining config_machfile = "$machfile"
13068 cat >> confdefs.h <<EOF
13069 #define config_machfile "$machfile"
13073 { test "$extra_verbose" = "yes" && cat << EOF
13074 Defining config_opsysfile = "$opsysfile"
13076 cat >> confdefs.h <<EOF
13077 #define config_opsysfile "$opsysfile"
13084 { test "$extra_verbose" = "yes" && cat << EOF
13085 Defining LD_SWITCH_X_SITE = $null_string
13087 cat >> confdefs.h <<EOF
13088 #define LD_SWITCH_X_SITE $null_string
13092 { test "$extra_verbose" = "yes" && cat << EOF
13093 Defining LD_SWITCH_X_SITE_AUX = $null_string
13095 cat >> confdefs.h <<EOF
13096 #define LD_SWITCH_X_SITE_AUX $null_string
13100 { test "$extra_verbose" = "yes" && cat << EOF
13101 Defining C_SWITCH_X_SITE = $null_string
13103 cat >> confdefs.h <<EOF
13104 #define C_SWITCH_X_SITE $null_string
13108 { test "$extra_verbose" = "yes" && cat << EOF
13109 Defining LD_SWITCH_SITE = $null_string
13111 cat >> confdefs.h <<EOF
13112 #define LD_SWITCH_SITE $null_string
13116 { test "$extra_verbose" = "yes" && cat << EOF
13117 Defining C_SWITCH_SITE = $null_string
13119 cat >> confdefs.h <<EOF
13120 #define C_SWITCH_SITE $null_string
13126 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13127 Defining GNU_MALLOC
13129 cat >> confdefs.h <<\EOF
13130 #define GNU_MALLOC 1
13134 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13135 Defining USE_SYSTEM_MALLOC
13137 cat >> confdefs.h <<\EOF
13138 #define USE_SYSTEM_MALLOC 1
13142 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13143 Defining USE_DEBUG_MALLOC
13145 cat >> confdefs.h <<\EOF
13146 #define USE_DEBUG_MALLOC 1
13150 { test "$extra_verbose" = "yes" && cat << \EOF
13151 Defining USE_SYSTEM_MALLOC
13153 cat >> confdefs.h <<\EOF
13154 #define USE_SYSTEM_MALLOC 1
13159 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13162 cat >> confdefs.h <<\EOF
13167 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13170 cat >> confdefs.h <<\EOF
13175 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13176 Defining EXTERNAL_WIDGET
13178 cat >> confdefs.h <<\EOF
13179 #define EXTERNAL_WIDGET 1
13183 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13184 Defining NO_DOC_FILE
13186 cat >> confdefs.h <<\EOF
13187 #define NO_DOC_FILE 1
13191 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13194 cat >> confdefs.h <<\EOF
13199 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13202 cat >> confdefs.h <<\EOF
13207 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13208 Defining MAIL_USE_POP
13210 cat >> confdefs.h <<\EOF
13211 #define MAIL_USE_POP 1
13215 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13218 cat >> confdefs.h <<\EOF
13223 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13226 cat >> confdefs.h <<\EOF
13231 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13232 Defining USE_UNION_TYPE
13234 cat >> confdefs.h <<\EOF
13235 #define USE_UNION_TYPE 1
13239 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13242 cat >> confdefs.h <<\EOF
13250 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
13252 echo "uname -a: `uname -a`"
13255 echo "$0 $quoted_arguments"
13258 if test ! -z ${emacs_beta_version} ; then
13259 if test -z "${emacs_is_beta}" ; then
13260 xemacs_betaname=".${emacs_beta_version}"
13262 xemacs_betaname="-b${emacs_beta_version}"
13271 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13273 Where should the build process find the source code? $srcdir
13274 What installation prefix should install use? $prefix
13275 What operating system and machine description files should XEmacs use?
13276 \`$opsysfile' and \`$machfile'
13277 What compiler should XEmacs be built with? $CC $CFLAGS
13278 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13279 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13280 What window system should XEmacs use? ${window_system}"
13281 if test "$with_x11" = "yes"; then
13282 echo " Where do we find X Windows header files? $x_includes"
13283 echo " Where do we find X Windows libraries? $x_libraries"
13285 if test -n "$site_includes"; then
13286 echo " Additional header files: $site_includes"
13288 if test -n "$site_libraries"; then
13289 echo " Additional libraries: $site_libraries"
13291 if test -n "$site_prefixes"; then
13292 echo " Additional prefixes: $site_prefixes"
13294 if test -n "$runpath"; then
13295 echo " Runtime library search path: $runpath"
13297 test "$with_dnet" = yes && echo " Compiling in support for DNET."
13298 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
13299 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
13300 if test "$with_xmu" != yes -a "$with_x11" = yes; then
13301 echo " No Xmu; substituting equivalent routines."
13304 if test "$with_xpm" = yes; then
13305 echo " Compiling in support for XPM images."
13306 elif test "$with_x11" = yes; then
13307 echo " --------------------------------------------------------------------"
13308 echo " WARNING: Compiling without XPM support."
13309 if test "$xpm_problem" != ""; then
13310 echo " Reason: $xpm_problem"
13312 echo " WARNING: You should strongly consider installing XPM."
13313 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
13314 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13315 echo " --------------------------------------------------------------------"
13317 if test "$with_png" = yes; then
13318 echo " Compiling in support for PNG image handling."
13319 elif test "$window_system" != "none"; then
13320 echo " --------------------------------------------------------------------"
13321 echo " WARNING: Compiling without PNG image support."
13322 if test "$png_problem" != ""; then
13323 echo " Reason: $png_problem"
13325 echo " WARNING: You should strongly consider installing the PNG libraries."
13326 echo " WARNING: Otherwise certain images and glyphs may not display."
13327 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13328 echo " --------------------------------------------------------------------"
13330 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13331 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13332 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13333 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13334 case "$with_sound" in
13335 nas ) echo " Compiling in network sound (NAS) support." ;;
13336 native ) echo " Compiling in native sound support." ;;
13337 both ) echo " Compiling in both network and native sound support." ;;
13339 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13341 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13342 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13343 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
13345 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
13347 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
13348 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
13350 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
13351 test "$with_file_coding" = yes && echo " Compiling in File coding support."
13352 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
13353 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
13354 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
13355 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
13356 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
13357 if test "$with_wnn" = yes; then
13358 echo " Compiling in support for the WNN input method on Mule."
13359 test "$with_wnn6" = yes && echo " Using WNN version 6."
13361 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
13363 test "$with_cde" = yes && echo " Compiling in support for CDE."
13364 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
13365 test "$with_offix" = yes && echo " Compiling in support for OffiX."
13366 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
13367 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
13368 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
13369 case "$with_menubars" in
13370 lucid ) echo " Using Lucid menubars." ;;
13371 motif ) echo " Using Motif menubars."
13372 echo " *WARNING* The Motif menubar implementation is currently buggy."
13373 echo " We recommend using the Lucid menubar instead."
13374 echo " Re-run configure with --with-menubars='lucid'." ;;
13375 msw ) echo " Using MS-Windows menubars." ;;
13377 case "$with_scrollbars" in
13378 lucid ) echo " Using Lucid scrollbars." ;;
13379 motif ) echo " Using Motif scrollbars." ;;
13380 athena ) echo " Using Athena scrollbars." ;;
13381 athena3d ) echo " Using Athena-3d scrollbars." ;;
13382 msw ) echo " Using MS-Windows scrollbars." ;;
13384 case "$with_widgets" in
13385 motif ) echo " Using Motif native widgets." ;;
13386 athena ) echo " Using Athena native widgets." ;;
13387 athena3d ) echo " Using Athena-3d native widgets." ;;
13388 msw ) echo " Using MS-Windows native widgets." ;;
13390 case "$with_dialogs" in
13392 echo " Using Motif dialog boxes."
13393 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
13394 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
13395 echo " We recommend using the Athena dialog boxes instead."
13396 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
13397 echo " Read the PROBLEMS file for more information."
13400 athena ) echo " Using Athena dialog boxes." ;;
13401 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13402 msw ) echo " Using MS-Windows dialog boxes." ;;
13404 test "$with_modules" = "yes" && echo " Compiling in DSO module support."
13405 test "$with_clash_detection" = yes && \
13406 echo " Clash detection will use \"$lockdir\" for locking files."
13407 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13408 test "$with_pop" = yes && echo " Using POP for mail access."
13409 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13410 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
13411 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
13412 test "$pdump" = yes && echo " Using the new portable dumper (wishful thinking)."
13413 test "$debug" = yes && echo " Compiling in extra code for debugging."
13414 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13415 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
13416 != "no no no no no"; then
13417 echo " WARNING: ---------------------------------------------------------"
13418 echo " WARNING: Compiling in support for runtime error checking."
13419 echo " WARNING: XEmacs will run noticeably more slowly as a result."
13420 echo " WARNING: Error checking is on by default for XEmacs beta releases."
13421 echo " WARNING: ---------------------------------------------------------"
13424 ) | tee -a Installation
13428 # Remove any trailing slashes in these variables.
13429 test -n "$prefix" &&
13430 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13431 test -n "$exec_prefix" &&
13432 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13435 for file in $internal_makefile_list; do
13436 test "$file" = src/Makefile.in && \
13437 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13438 ac_output_files="${ac_output_files+$ac_output_files }$file"
13440 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13441 if test "$with_modules" = "yes"; then
13442 ac_output_files="$ac_output_files lib-src/ellcc.h"
13447 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13449 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13450 # Let make expand exec_prefix.
13451 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13453 # Any assignment to VPATH causes Sun make to only execute
13454 # the first set of double-colon rules, so remove it if not needed.
13455 # If there is a colon in the path, we need to keep it.
13456 if test "x$srcdir" = x.; then
13457 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13460 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13462 DEFS=-DHAVE_CONFIG_H
13464 # Without the "./", some shells look in PATH for config.status.
13465 : ${CONFIG_STATUS=./config.status}
13467 echo creating $CONFIG_STATUS
13468 rm -f $CONFIG_STATUS
13469 cat > $CONFIG_STATUS <<EOF
13471 # Generated automatically by configure.
13472 # Run this file to recreate the current configuration.
13473 # This directory was configured as follows,
13474 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13476 # $0 $ac_configure_args
13478 # Compiler output produced by configure, useful for debugging
13479 # configure, is in ./config.log if it exists.
13481 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13484 case "\$ac_option" in
13485 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13486 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13487 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13488 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13489 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13491 -help | --help | --hel | --he | --h)
13492 echo "\$ac_cs_usage"; exit 0 ;;
13493 *) echo "\$ac_cs_usage"; exit 1 ;;
13497 ac_given_srcdir=$srcdir
13498 ac_given_INSTALL="$INSTALL"
13500 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13502 cat >> $CONFIG_STATUS <<EOF
13504 # Protect against being on the right side of a sed subst in config.status.
13505 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13506 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13510 s%@CFLAGS@%$CFLAGS%g
13511 s%@CPPFLAGS@%$CPPFLAGS%g
13512 s%@CXXFLAGS@%$CXXFLAGS%g
13513 s%@FFLAGS@%$FFLAGS%g
13515 s%@LDFLAGS@%$LDFLAGS%g
13517 s%@exec_prefix@%$exec_prefix%g
13518 s%@prefix@%$prefix%g
13519 s%@program_transform_name@%$program_transform_name%g
13520 s%@bindir@%$bindir%g
13521 s%@sbindir@%$sbindir%g
13522 s%@libexecdir@%$libexecdir%g
13523 s%@datadir@%$datadir%g
13524 s%@sysconfdir@%$sysconfdir%g
13525 s%@sharedstatedir@%$sharedstatedir%g
13526 s%@localstatedir@%$localstatedir%g
13527 s%@libdir@%$libdir%g
13528 s%@includedir@%$includedir%g
13529 s%@oldincludedir@%$oldincludedir%g
13530 s%@infodir@%$infodir%g
13531 s%@mandir@%$mandir%g
13533 s%@blddir@%$blddir%g
13536 s%@start_flags@%$start_flags%g
13537 s%@ld_switch_shared@%$ld_switch_shared%g
13538 s%@start_files@%$start_files%g
13540 s%@lib_gcc@%$lib_gcc%g
13541 s%@RANLIB@%$RANLIB%g
13542 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13543 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13544 s%@INSTALL_DATA@%$INSTALL_DATA%g
13546 s%@SET_MAKE@%$SET_MAKE%g
13547 s%@X_CFLAGS@%$X_CFLAGS%g
13548 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13549 s%@X_LIBS@%$X_LIBS%g
13550 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13551 s%@install_pp@%$install_pp%g
13552 s%@libs_xauth@%$libs_xauth%g
13553 s%@dnd_objs@%$dnd_objs%g
13554 s%@lwlib_objs@%$lwlib_objs%g
13555 s%@ALLOCA@%$ALLOCA%g
13556 s%@dll_ld@%$dll_ld%g
13557 s%@dll_cflags@%$dll_cflags%g
13558 s%@dll_ldflags@%$dll_ldflags%g
13559 s%@dll_post@%$dll_post%g
13560 s%@dll_ldo@%$dll_ldo%g
13561 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
13562 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
13563 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
13564 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
13565 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
13566 s%@PROGNAME@%$PROGNAME%g
13567 s%@version@%$version%g
13568 s%@configuration@%$configuration%g
13569 s%@canonical@%$canonical%g
13570 s%@inststaticdir@%$inststaticdir%g
13571 s%@instvardir@%$instvardir%g
13572 s%@srcdir@%$srcdir%g
13573 s%@pkgdir@%$pkgdir%g
13574 s%@statedir@%$statedir%g
13575 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
13576 s%@PREFIX@%$PREFIX%g
13577 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
13578 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
13579 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
13580 s%@INFODIR@%$INFODIR%g
13581 s%@infopath@%$infopath%g
13582 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
13583 s%@INFOPATH@%$INFOPATH%g
13584 s%@package_path@%$package_path%g
13585 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
13586 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
13587 s%@lispdir@%$lispdir%g
13588 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
13589 s%@LISPDIR@%$LISPDIR%g
13590 s%@moduledir@%$moduledir%g
13591 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
13592 s%@MODULEDIR@%$MODULEDIR%g
13593 s%@sitelispdir@%$sitelispdir%g
13594 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
13595 s%@SITELISPDIR@%$SITELISPDIR%g
13596 s%@sitemoduledir@%$sitemoduledir%g
13597 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
13598 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
13599 s%@etcdir@%$etcdir%g
13600 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
13601 s%@ETCDIR@%$ETCDIR%g
13602 s%@lockdir@%$lockdir%g
13603 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
13604 s%@LOCKDIR@%$LOCKDIR%g
13605 s%@docdir@%$docdir%g
13606 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
13607 s%@DOCDIR@%$DOCDIR%g
13608 s%@archlibdir@%$archlibdir%g
13609 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
13610 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
13611 s%@bitmapdir@%$bitmapdir%g
13612 s%@extra_objs@%$extra_objs%g
13613 s%@machfile@%$machfile%g
13614 s%@opsysfile@%$opsysfile%g
13615 s%@c_switch_general@%$c_switch_general%g
13616 s%@c_switch_window_system@%$c_switch_window_system%g
13617 s%@c_switch_all@%$c_switch_all%g
13618 s%@ld_switch_general@%$ld_switch_general%g
13619 s%@ld_switch_window_system@%$ld_switch_window_system%g
13620 s%@ld_switch_all@%$ld_switch_all%g
13621 s%@ld_libs_general@%$ld_libs_general%g
13622 s%@ld_libs_window_system@%$ld_libs_window_system%g
13623 s%@ld_libs_all@%$ld_libs_all%g
13624 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
13625 s%@native_sound_lib@%$native_sound_lib%g
13626 s%@sound_cflags@%$sound_cflags%g
13627 s%@dynodump_arch@%$dynodump_arch%g
13628 s%@XEMACS_CC@%$XEMACS_CC%g
13629 s%@internal_makefile_list@%$internal_makefile_list%g
13634 cat >> $CONFIG_STATUS <<\EOF
13636 # Split the substitutions into bite-sized pieces for seds with
13637 # small command number limits, like on Digital OSF/1 and HP-UX.
13638 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13639 ac_file=1 # Number of current file.
13640 ac_beg=1 # First line for current file.
13641 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13644 while $ac_more_lines; do
13645 if test $ac_beg -gt 1; then
13646 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13648 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13650 if test ! -s conftest.s$ac_file; then
13651 ac_more_lines=false
13652 rm -f conftest.s$ac_file
13654 if test -z "$ac_sed_cmds"; then
13655 ac_sed_cmds="sed -f conftest.s$ac_file"
13657 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13659 ac_file=`expr $ac_file + 1`
13661 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13664 if test -z "$ac_sed_cmds"; then
13669 cat >> $CONFIG_STATUS <<EOF
13671 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
13673 cat >> $CONFIG_STATUS <<\EOF
13674 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13675 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13677 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13678 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13679 *) ac_file_in="${ac_file}.in" ;;
13682 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13684 # Remove last slash and all that follows it. Not all systems have dirname.
13685 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13686 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13687 # The file is in a subdirectory.
13688 test ! -d "$ac_dir" && mkdir "$ac_dir"
13689 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13690 # A "../" for each directory in $ac_dir_suffix.
13691 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13693 ac_dir_suffix= ac_dots=
13696 case "$ac_given_srcdir" in
13698 if test -z "$ac_dots"; then top_srcdir=.
13699 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13700 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13701 *) # Relative path.
13702 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13703 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13706 case "$ac_given_INSTALL" in
13707 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13708 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13711 echo creating "$ac_file"
13713 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13715 *Makefile*) ac_comsub="1i\\
13716 # $configure_input" ;;
13720 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13722 s%@configure_input@%$configure_input%g
13723 s%@srcdir@%$srcdir%g
13724 s%@top_srcdir@%$top_srcdir%g
13725 s%@INSTALL@%$INSTALL%g
13726 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13730 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13731 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13733 # ac_d sets the value in "#define NAME VALUE" lines.
13734 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13735 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13738 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13739 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13740 ac_uB='\([ ]\)%\1#\2define\3'
13743 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13744 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13745 ac_eB='$%\1#\2define\3'
13749 if test "${CONFIG_HEADERS+set}" != set; then
13751 cat >> $CONFIG_STATUS <<EOF
13752 CONFIG_HEADERS="src/config.h lwlib/config.h"
13754 cat >> $CONFIG_STATUS <<\EOF
13756 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13757 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13759 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13760 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13761 *) ac_file_in="${ac_file}.in" ;;
13764 echo creating $ac_file
13766 rm -f conftest.frag conftest.in conftest.out
13767 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13768 cat $ac_file_inputs > conftest.in
13772 # Transform confdefs.h into a sed script conftest.vals that substitutes
13773 # the proper values into config.h.in to produce config.h. And first:
13774 # Protect against being on the right side of a sed subst in config.status.
13775 # Protect against being in an unquoted here document in config.status.
13776 rm -f conftest.vals
13777 cat > conftest.hdr <<\EOF
13780 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13784 sed -n -f conftest.hdr confdefs.h > conftest.vals
13787 # This sed command replaces #undef with comments. This is necessary, for
13788 # example, in the case of _POSIX_SOURCE, which is predefined and required
13789 # on some systems where configure will not decide to define it.
13790 cat >> conftest.vals <<\EOF
13791 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13794 # Break up conftest.vals because some shells have a limit on
13795 # the size of here documents, and old seds have small limits too.
13797 rm -f conftest.tail
13800 ac_lines=`grep -c . conftest.vals`
13801 # grep -c gives empty output for an empty file on some AIX systems.
13802 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13803 # Write a limited-size here document to conftest.frag.
13804 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13805 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13807 sed -f conftest.frag conftest.in > conftest.out
13809 mv conftest.out conftest.in
13810 ' >> $CONFIG_STATUS
13811 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13812 rm -f conftest.vals
13813 mv conftest.tail conftest.vals
13815 rm -f conftest.vals
13817 cat >> $CONFIG_STATUS <<\EOF
13818 rm -f conftest.frag conftest.h
13819 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13820 cat conftest.in >> conftest.h
13822 if cmp -s $ac_file conftest.h 2>/dev/null; then
13823 echo "$ac_file is unchanged"
13826 # Remove last slash and all that follows it. Not all systems have dirname.
13827 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13828 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13829 # The file is in a subdirectory.
13830 test ! -d "$ac_dir" && mkdir "$ac_dir"
13833 mv conftest.h $ac_file
13838 cat >> $CONFIG_STATUS <<EOF
13840 top_srcdir="$srcdir"
13841 MAKE_SUBDIR="$MAKE_SUBDIR"
13844 cat >> $CONFIG_STATUS <<\EOF
13845 for dir in . $MAKE_SUBDIR; do
13850 sed -e '/^# Generated/d' \
13851 -e 's%/\*\*/#.*%%' \
13866 echo creating $dir/Makefile
13867 $CPP -I. -I${top_srcdir}/src junk.c \
13868 | sed -e 's/^\#.*//' \
13869 -e 's/^[ ][ ]*$//'\
13871 | sed -n -e '/^..*$/p' \
13877 chmod 444 Makefile.new
13878 mv -f Makefile.new Makefile
13880 echo creating $dir/GNUmakefile
13881 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
13882 | sed -e 's/^\#.*//' \
13883 -e 's/^[ ][ ]*$//'\
13885 | sed -n -e '/^..*$/p' \
13891 chmod 444 Makefile.new
13892 mv -f Makefile.new GNUmakefile
13898 sed < config.status >> lib-src/config.values \
13899 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
13900 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
13901 -e 's/^\([^ ]*\) $/\1 ""/' \
13907 chmod +x $CONFIG_STATUS
13908 rm -fr confdefs* $ac_clean_files
13909 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1