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_gdbm=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 | gdbm) with_database_gdbm=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_gdbm" = "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
451 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
453 n | no | non | none ) new_sdefault=no ;;
454 a | al | all | both ) new_sdefault=yes ;;
456 native ) with_native_sound=yes ;;
457 nonative ) with_native_sound=no ;;
459 nas ) with_nas_sound=yes ;;
460 nonas ) with_nas_sound=no ;;
462 esd ) with_esd_sound=yes ;;
463 noesd ) with_esd_sound=no ;;
465 * ) bogus_sound=yes ;;
467 if test "$bogus_sound" -o \
468 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
469 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
470 (echo "$progname: Usage error:"
471 echo " " "Valid types for the \`--$optname' option are:
473 The default is to autodetect all sound support."
474 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
475 elif test -n "$new_sdefault" ; then
476 with_native_sound=$new_sdefault
477 with_nas_sound=$new_sdefault
478 with_esd_sound=$new_sdefault
479 new_sdefault= # reset this
487 xa | xaw ) val=xaw ;;
488 3 | 3d | xaw3d ) val=3d ;;
489 ne | nex | next | naxtaw) val=next ;;
490 9 | 95 | xaw95 ) val=95 ;;
491 xp | xpm | xawxpm ) val=xpm ;;
492 * ) (echo "$progname: Usage error:"
493 echo " " "The \`--$optname' option must have one of these values:
494 \`xaw', \`3d', \`next', \`95', or \`xpm'."
495 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
502 y | ye | yes ) val=yes ;;
503 n | no | non | none ) val=no ;;
504 x | xl | xli | xlib ) val=xlib ;;
505 m | mo | mot | moti | motif ) val=motif ;;
506 * ) (echo "$progname: Usage error:"
507 echo " " "The \`--$optname' option must have one of these values:
508 \`motif', \`xlib', \`yes', or \`no'."
509 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
519 * ) (echo "$progname: Usage error:"
520 echo " " "The \`--$optname' option must have one of these values:
521 \`lockf', \`flock', or \`file'."
522 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
529 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
531 n | no | non | none ) new_default=no ;;
532 a | al | all ) new_default=yes ;;
534 extents ) error_check_extents=yes ;;
535 noextents ) error_check_extents=no ;;
537 typecheck ) error_check_typecheck=yes ;;
538 notypecheck ) error_check_typecheck=no ;;
540 bufpos ) error_check_bufpos=yes ;;
541 nobufpos ) error_check_bufpos=no ;;
543 gc ) error_check_gc=yes ;;
544 nogc ) error_check_gc=no ;;
546 malloc ) error_check_malloc=yes ;;
547 nomalloc ) error_check_malloc=no ;;
549 byte_code ) error_check_byte_code=yes ;;
550 nobyte_code ) error_check_byte_code=no ;;
552 * ) bogus_error_check=yes ;;
554 if test "$bogus_error_check" -o \
555 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
556 if test "$error_check_default" = yes ; then
557 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'."
559 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'."
561 (echo "$progname: Usage error:"
562 echo " " "Valid types for the \`--$optname' option are:
564 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
565 elif test -n "$new_default" ; then
566 error_check_extents=$new_default
567 error_check_typecheck=$new_default
568 error_check_bufpos=$new_default
569 error_check_gc=$new_default
570 error_check_malloc=$new_default
571 error_check_byte_code=$new_default
572 new_default= # reset this
579 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
580 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
581 archlibdir | docdir | package_path )
582 if test "$valomitted" = "yes"; then
583 if test "$#" = 0; then
584 (echo "$progname: Usage error:"
585 echo " " "The \`--$optname' option requires a value."
586 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
593 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
594 Defining EXEC_PREFIX_USER_DEFINED
596 cat >> confdefs.h <<\EOF
597 #define EXEC_PREFIX_USER_DEFINED 1
601 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
602 Defining LISPDIR_USER_DEFINED
604 cat >> confdefs.h <<\EOF
605 #define LISPDIR_USER_DEFINED 1
609 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
610 Defining SITELISPDIR_USER_DEFINED
612 cat >> confdefs.h <<\EOF
613 #define SITELISPDIR_USER_DEFINED 1
617 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
618 Defining MODULEDIR_USER_DEFINED
620 cat >> confdefs.h <<\EOF
621 #define MODULEDIR_USER_DEFINED 1
625 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
626 Defining ETCDIR_USER_DEFINED
628 cat >> confdefs.h <<\EOF
629 #define ETCDIR_USER_DEFINED 1
633 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
634 Defining INFODIR_USER_DEFINED
636 cat >> confdefs.h <<\EOF
637 #define INFODIR_USER_DEFINED 1
641 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
642 Defining INFOPATH_USER_DEFINED
644 cat >> confdefs.h <<\EOF
645 #define INFOPATH_USER_DEFINED 1
649 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
650 Defining PACKAGE_PATH_USER_DEFINED
652 cat >> confdefs.h <<\EOF
653 #define PACKAGE_PATH_USER_DEFINED 1
658 { test "$extra_verbose" = "yes" && cat << \EOF
659 Defining INFODIR_USER_DEFINED
661 cat >> confdefs.h <<\EOF
662 #define INFODIR_USER_DEFINED 1
666 { test "$extra_verbose" = "yes" && cat << \EOF
667 Defining LISPDIR_USER_DEFINED
669 cat >> confdefs.h <<\EOF
670 #define LISPDIR_USER_DEFINED 1
674 { test "$extra_verbose" = "yes" && cat << \EOF
675 Defining MODULEDIR_USER_DEFINED
677 cat >> confdefs.h <<\EOF
678 #define MODULEDIR_USER_DEFINED 1
682 { test "$extra_verbose" = "yes" && cat << \EOF
683 Defining ETCDIR_USER_DEFINED
685 cat >> confdefs.h <<\EOF
686 #define ETCDIR_USER_DEFINED 1
690 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
691 Defining LOCKDIR_USER_DEFINED
693 cat >> confdefs.h <<\EOF
694 #define LOCKDIR_USER_DEFINED 1
698 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
699 Defining DOCDIR_USER_DEFINED
701 cat >> confdefs.h <<\EOF
702 #define DOCDIR_USER_DEFINED 1
706 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
707 Defining ARCHLIBDIR_USER_DEFINED
709 cat >> confdefs.h <<\EOF
710 #define ARCHLIBDIR_USER_DEFINED 1
719 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
722 "with_scrollbars" | \
726 l | lu | luc | luci | lucid ) val=lucid ;;
727 m | mo | mot | moti | motif ) val=motif ;;
728 a | at | ath | athe | athen | athena ) val=athena ;;
729 n | no | non | none ) val=no ;;
730 * ) (echo "$progname: Usage error:"
731 echo " " "The \`--$optname' option must have one of these values:
732 \`lucid', \`motif', \`athena', or \`no'."
733 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
738 "use_minimal_tagbits" | \
739 "use_indexed_lrecord_implementation" | \
742 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
745 * ) (echo "$progname: Usage error:"
746 echo " " "Unrecognized option: $arg"
747 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
752 *-*-*) configuration="$arg" ;;
754 *) (echo "$progname: Usage error:"
755 echo " " "Unrecognized argument: $arg"
756 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
762 test -n "$cpp" && CPP="$cpp"
763 test -n "$cppflags" && CPPFLAGS="$cppflags"
764 test -n "$libs" && LIBS="$libs"
765 test -n "$ldflags" && LDFLAGS="$ldflags"
767 eval set x "$quoted_arguments"; shift
769 test "$extra_verbose" = "yes" && verbose=yes
771 test -n "$with_x" && with_x11="$with_x"
773 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
774 test "$with_system_malloc" = "default" && with_system_malloc=yes
779 if test "$with_cde $with_tooltalk" = "yes no"; then
780 (echo "$progname: Usage error:"
781 echo " " "--with-cde requires --with-tooltalk"
782 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
783 elif test "$with_tooltalk" = "no" ; then with_cde=no
784 elif test "$with_cde" = "yes"; then with_tooltalk=yes
791 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
792 if test -f "$dir/src/lisp.h" -a \
793 -f "$dir/lisp/version.el" ; then
798 if test -z "$srcdir" ; then
799 (echo "$progname: Usage error:"
800 echo " " "Neither the current directory nor its parent seem to
801 contain the XEmacs sources. If you do not want to build XEmacs in its
802 source tree, you should run \`$progname' in the directory in which
803 you wish to build XEmacs, using the \`--srcdir' option to say where the
804 sources may be found."
805 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
810 if test ! -f "$srcdir/src/lisp.h" -o \
811 ! -f "$srcdir/lisp/version.el" ; then
812 (echo "$progname: Usage error:"
813 echo " " "The directory specified with the \`--srcdir' option,
814 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
815 either run the \`$progname' script at the top of the XEmacs source
816 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
817 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
822 if test -z "$configuration"; then
823 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
824 if test -z "$configuration"; then
825 (echo "$progname: Usage error:"
826 echo " " "XEmacs has not been ported to this host type.
827 Try explicitly specifying the CONFIGURATION when rerunning configure."
828 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
832 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
833 echo "configure:834: checking whether ln -s works" >&5
836 if ln -s X conftestdata 2>/dev/null
839 ac_cv_prog_LN_S="ln -s"
843 LN_S="$ac_cv_prog_LN_S"
844 if test "$ac_cv_prog_LN_S" = "ln -s"; then
845 echo "$ac_t""yes" 1>&6
847 echo "$ac_t""no" 1>&6
851 for dir in lisp etc man info; do
852 if test ! -d "$dir" ; then
853 echo Making symbolic link to "$srcdir/$dir"
854 ${LN_S} "$srcdir/$dir" "$dir"
859 absolute_pwd="`pwd`";
860 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
862 else blddir="$absolute_pwd"; if test -d "/net"; then
863 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
864 blddir=`echo "$blddir" | \
865 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
872 . ) srcdir="$blddir" ;;
873 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
874 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
875 srcdir=`echo "$srcdir" | \
876 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
880 if test `pwd` != `sh -c cd $srcdir && pwd` \
881 && test -f "$srcdir/src/config.h"; then
882 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
883 echo " as a build directory right now; it has been configured in its own"
884 echo " right. To configure in another directory as well, you MUST"
885 echo " use GNU make. If you do not have GNU make, then you must"
886 echo " now do \`make distclean' in $srcdir,"
887 echo " and then run $progname again.") >&2
888 extrasub='/^VPATH[ ]*=/c\
894 vpath %.in $(srcdir)'
897 . "$srcdir/version.sh" || exit 1;
898 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
899 : "${extra_verbose=$beta}"
900 version="${emacs_major_version}.${emacs_minor_version}"
901 { test "$extra_verbose" = "yes" && cat << EOF
902 Defining EMACS_MAJOR_VERSION = $emacs_major_version
904 cat >> confdefs.h <<EOF
905 #define EMACS_MAJOR_VERSION $emacs_major_version
909 { test "$extra_verbose" = "yes" && cat << EOF
910 Defining EMACS_MINOR_VERSION = $emacs_minor_version
912 cat >> confdefs.h <<EOF
913 #define EMACS_MINOR_VERSION $emacs_minor_version
917 if test -n "$emacs_beta_version" ; then
918 if test "$beta" = "yes"; then
919 version="${version}-b${emacs_beta_version}"
920 { test "$extra_verbose" = "yes" && cat << EOF
921 Defining EMACS_BETA_VERSION = $emacs_beta_version
923 cat >> confdefs.h <<EOF
924 #define EMACS_BETA_VERSION $emacs_beta_version
929 version="${version}.${emacs_beta_version}"
930 { test "$extra_verbose" = "yes" && cat << EOF
931 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
933 cat >> confdefs.h <<EOF
934 #define EMACS_PATCH_LEVEL $emacs_beta_version
940 { test "$extra_verbose" = "yes" && cat << EOF
941 Defining XEMACS_CODENAME = "$xemacs_codename"
943 cat >> confdefs.h <<EOF
944 #define XEMACS_CODENAME "$xemacs_codename"
948 { test "$extra_verbose" = "yes" && cat << EOF
949 Defining EMACS_VERSION = "$version"
951 cat >> confdefs.h <<EOF
952 #define EMACS_VERSION "$version"
957 if test "$with_infodock" = "yes"; then
958 if test ! -f ../../ID-INSTALL; then
959 echo "Cannot build InfoDock without InfoDock sources"
964 if test "$with_infodock" = "yes"; then
965 { test "$extra_verbose" = "yes" && cat << EOF
966 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
968 cat >> confdefs.h <<EOF
969 #define INFODOCK_MAJOR_VERSION $infodock_major_version
973 { test "$extra_verbose" = "yes" && cat << EOF
974 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
976 cat >> confdefs.h <<EOF
977 #define INFODOCK_MINOR_VERSION $infodock_minor_version
981 { test "$extra_verbose" = "yes" && cat << EOF
982 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
984 cat >> confdefs.h <<EOF
985 #define INFODOCK_BUILD_VERSION $infodock_build_version
989 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
991 CPPFLAGS="$CPPFLAGS -DINFODOCK"
996 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
997 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
998 Defining ERROR_CHECK_EXTENTS
1000 cat >> confdefs.h <<\EOF
1001 #define ERROR_CHECK_EXTENTS 1
1005 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1006 Defining ERROR_CHECK_TYPECHECK
1008 cat >> confdefs.h <<\EOF
1009 #define ERROR_CHECK_TYPECHECK 1
1013 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1014 Defining ERROR_CHECK_BUFPOS
1016 cat >> confdefs.h <<\EOF
1017 #define ERROR_CHECK_BUFPOS 1
1021 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1022 Defining ERROR_CHECK_GC
1024 cat >> confdefs.h <<\EOF
1025 #define ERROR_CHECK_GC 1
1029 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1030 Defining ERROR_CHECK_MALLOC
1032 cat >> confdefs.h <<\EOF
1033 #define ERROR_CHECK_MALLOC 1
1037 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1038 Defining ERROR_CHECK_BYTE_CODE
1040 cat >> confdefs.h <<\EOF
1041 #define ERROR_CHECK_BYTE_CODE 1
1045 if test "${debug:=$beta}" = "yes"; then
1046 use_assertions=yes memory_usage_stats=yes
1047 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1048 echo " xemacs will be linked with \"debug.o\""
1050 { test "$extra_verbose" = "yes" && cat << \EOF
1051 Defining DEBUG_XEMACS
1053 cat >> confdefs.h <<\EOF
1054 #define DEBUG_XEMACS 1
1059 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1060 Defining USE_ASSERTIONS
1062 cat >> confdefs.h <<\EOF
1063 #define USE_ASSERTIONS 1
1067 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1068 Defining MEMORY_USAGE_STATS
1070 cat >> confdefs.h <<\EOF
1071 #define MEMORY_USAGE_STATS 1
1077 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1078 echo "configure:1079: checking "host system type"" >&5
1079 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1080 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1081 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1082 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1083 echo "$ac_t""$configuration" 1>&6
1091 case "$canonical" in
1092 sparc-*-* ) machine=sparc ;;
1093 alpha*-*-* ) machine=alpha ;;
1094 vax-*-* ) machine=vax ;;
1095 mips-dec-* ) machine=pmax ;;
1096 mips-sgi-* ) machine=iris4d ;;
1097 mips*-linux ) machine=mips ;;
1098 romp-ibm-* ) machine=ibmrt ;;
1099 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1100 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1101 powerpc*-* ) machine=powerpc ;;
1102 hppa-*-* ) machine=hp800 ;;
1103 m88k-dg-* ) machine=aviion ;;
1104 m68*-sony-* ) machine=news ;;
1105 mips-sony-* ) machine=news-risc ;;
1106 clipper-* ) machine=clipper ;;
1107 arm-* ) machine=arm ;;
1108 ns32k-* ) machine=ns32000 ;;
1111 case "$canonical" in
1112 *-*-linux* ) opsys=linux ;;
1113 *-*-netbsd* ) opsys=netbsd ;;
1114 *-*-openbsd* ) opsys=openbsd ;;
1115 *-*-nextstep* ) opsys=nextstep ;;
1116 *-*-vms ) opsys=vms ;;
1118 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1119 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1120 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1121 *-dec-osf3* ) opsys=decosf3-1 ;;
1122 *-dec-osf4* ) opsys=decosf4-0 ;;
1124 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1125 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1126 *-*-ultrix* ) opsys=ultrix4-3 ;;
1128 *-*-aix3.1* ) opsys=aix3-1 ;;
1129 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1130 *-*-aix3* ) opsys=aix3-2 ;;
1131 *-*-aix4.0* ) opsys=aix4 ;;
1132 *-*-aix4.1* ) opsys=aix4-1 ;;
1133 *-*-aix4* ) opsys=aix4-2 ;;
1135 *-gnu* ) opsys=gnu ;;
1136 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1137 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1138 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1139 *-*-aos4.2 ) opsys=bsd4-2 ;;
1140 *-*-aos* ) opsys=bsd4-3 ;;
1141 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1142 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1143 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1144 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1145 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1146 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1147 if test -z "$NON_GNU_CPP" ; then
1148 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1149 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1153 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1154 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1157 case "$canonical" in
1160 case "$canonical" in
1161 i[3-9]86-*-netbsd*) machine=intel386 ;;
1162 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1163 machine=hp9000s300 ;;
1164 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1165 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1170 case "${canonical}" in
1171 i386-*-openbsd*) machine=intel386 ;;
1172 m68k-*-openbsd*) machine=hp9000s300 ;;
1173 mipsel-*-openbsd*) machine=pmax ;;
1177 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1178 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1180 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1181 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1183 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1185 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1187 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1189 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1191 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1193 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1194 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1195 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1198 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1200 *-convex-bsd* | *-convex-convexos* )
1201 machine=convex opsys=bsd4-3
1202 NON_GNU_CPP="cc -E -P"
1205 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1207 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1208 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1209 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1210 m88k-dg-dgux* ) opsys=dgux ;;
1212 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1213 m88k-motorola-sysv4* )
1214 machine=delta88k opsys=usg5-4-2
1216 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1218 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1219 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1221 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1223 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1224 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1225 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1228 case "`uname -r`" in
1229 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1230 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1232 NON_GNU_CPP="/lib/cpp"
1234 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1235 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1237 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1239 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1242 case "$canonical" in
1243 m68* ) machine=hp9000s300 ;;
1244 hppa* ) machine=hp800 ;;
1247 case "$canonical" in
1248 *-hp-hpux7* ) opsys=hpux ;;
1249 *-hp-hpux8* ) opsys=hpux8 ;;
1250 *-hp-hpux9* ) opsys=hpux9 ;;
1251 *-hp-hpux10* ) opsys=hpux10 ;;
1252 *-hp-hpux11* ) opsys=hpux11 ;;
1256 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1257 echo " xemacs will be linked with \"strcat.o\""
1260 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1261 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1262 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1264 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1267 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1268 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1270 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1271 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1272 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1273 romp-ibm-aos* ) opsys=bsd4-3 ;;
1274 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1275 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1277 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1278 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1280 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1282 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1284 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1286 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1288 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1290 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1292 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1294 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1296 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1298 mips-mips-usg* ) machine=mips4 ;;
1301 NON_GNU_CC="cc -systype bsd43"
1302 NON_GNU_CPP="cc -systype bsd43 -E"
1303 case "$canonical" in
1304 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1305 mips-mips-riscos5* ) opsys=riscos5 ;;
1308 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1309 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1311 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1313 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1315 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1316 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1318 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1320 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1322 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1324 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1326 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1327 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1329 mips-siemens-sysv* | mips-sni-sysv*)
1330 machine=mips-siemens opsys=usg5-4
1331 NON_GNU_CC=/usr/ccs/bin/cc
1332 NON_GNU_CPP=/usr/ccs/lib/cpp
1337 NON_GNU_CC=/usr/ccs/bin/cc
1338 NON_GNU_CPP=/usr/ccs/lib/cpp
1341 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1342 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1343 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1344 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1345 mips-sgi-irix6* ) opsys=irix6-0 ;;
1346 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1347 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1348 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1349 mips-sgi-irix* ) opsys=irix5-0 ;;
1351 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1352 *-sony-news* ) opsys=newsos5 ;;
1354 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1356 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1357 case "$canonical" in
1358 m68*-sunos1* ) machine=sun1 ;;
1359 m68*-sunos2* ) machine=sun2 ;;
1360 m68* ) machine=sun3 ;;
1361 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1362 i*86-*-* ) machine=intel386 ;;
1363 rs6000* ) machine=rs6000 ;;
1366 case "$canonical" in *-sunos5*)
1367 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1370 case "$canonical" in
1372 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1375 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1379 case "$canonical" in
1382 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1383 { test "$extra_verbose" = "yes" && cat << EOF
1384 Defining OS_RELEASE = $os_release
1386 cat >> confdefs.h <<EOF
1387 #define OS_RELEASE $os_release
1392 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1393 *-sunos4.0* ) opsys=sunos4-0 ;;
1394 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1395 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1396 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1397 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1398 *-mach* ) opsys=mach-bsd4-3 ;;
1402 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1404 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1407 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1409 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1410 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1412 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1414 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1416 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1417 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1419 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1421 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1424 case "$canonical" in
1425 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1426 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1427 *-mach* ) opsys=mach-bsd4-3 ;;
1431 ns16k-whitechapel-* ) machine=mg1 ;;
1433 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1437 case "$canonical" in
1438 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1439 *-isc2.2* ) opsys=isc2-2 ;;
1440 *-isc4.0* ) opsys=isc4-0 ;;
1441 *-isc4.* ) opsys=isc4-1
1442 GCC_TEST_OPTIONS=-posix
1443 NON_GCC_TEST_OPTIONS=-Xp
1445 *-isc* ) opsys=isc3-0 ;;
1446 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1447 *-esix* ) opsys=esix ;;
1448 *-mach* ) opsys=mach-bsd4-3 ;;
1449 *-xenix* ) opsys=xenix ;;
1450 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1451 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1452 *-bsdi4* ) opsys=bsdos4 ;;
1453 *-bsdi3* ) opsys=bsdos3 ;;
1454 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1455 *-bsdi2* ) opsys=bsdos2 ;;
1456 *-sco3.2v5* ) opsys=sco5 ;
1457 if test "$dynamic" = "yes" ; then
1458 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1460 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1462 *-sysv5* ) opsys=sco7 ;;
1463 *-386bsd* ) opsys=386bsd ;;
1464 *-freebsd* ) opsys=freebsd ;;
1465 *-nextstep* ) opsys=nextstep ;;
1466 *-pc-cygwin* ) opsys=cygwin32 ;;
1467 *-pc-mingw* ) opsys=mingw32 ;
1468 test -z "$with_tty" && with_tty="no";;
1472 m68k-*-linux* ) machine=m68k opsys=linux ;;
1476 if test -z "$machine" -o -z "$opsys"; then
1477 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1478 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1483 if test -z "$dynamic"; then
1485 hpux* | sunos4* ) dynamic=no ;;
1489 if test "$dynamic" = "yes"; then
1491 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1492 decosf* ) ld_call_shared="-call_shared" ;;
1494 else case "$opsys" in
1496 echo "Static linking is not supported on Solaris 2."
1497 echo "Rerun configure without specifying --dynamic=no."
1499 linux ) ld_call_shared="-Bstatic" ;;
1500 decosf* ) ld_call_shared="-non_shared" ;;
1504 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1506 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1507 { test "$extra_verbose" = "yes" && cat << EOF
1508 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1510 cat >> confdefs.h <<EOF
1511 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1516 machfile="m/${machine}.h"
1517 opsysfile="s/${opsys}.h"
1520 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1521 if test "$with_workshop $with_tooltalk" = "yes no"; then
1522 (echo "$progname: Usage error:"
1523 echo " " "--with-workshop requires --with-tooltalk"
1524 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1525 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1526 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1529 if test "$with_workshop" = "yes"; then
1530 { test "$extra_verbose" = "yes" && cat << \EOF
1533 cat >> confdefs.h <<\EOF
1538 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1539 echo " xemacs will be linked with \"sunpro.o\""
1543 if test "$with_clash_detection" = "yes"; then
1544 { test "$extra_verbose" = "yes" && cat << \EOF
1545 Defining CLASH_DETECTION
1547 cat >> confdefs.h <<\EOF
1548 #define CLASH_DETECTION 1
1552 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1553 echo " xemacs will be linked with \"filelock.o\""
1557 test -n "$compiler" && CC="$compiler"
1558 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1561 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1562 if test "${CFLAGS-unset}" != unset
1563 then cflags_specified=yes;
1564 else cflags_specified=no;
1567 xe_save_CFLAGS="$CFLAGS"
1569 # Extract the first word of "gcc", so it can be a program name with args.
1570 set dummy gcc; ac_word=$2
1571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1572 echo "configure:1573: checking for $ac_word" >&5
1574 if test -n "$CC"; then
1575 ac_cv_prog_CC="$CC" # Let the user override the test.
1577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1579 for ac_dir in $ac_dummy; do
1580 test -z "$ac_dir" && ac_dir=.
1581 if test -f $ac_dir/$ac_word; then
1589 if test -n "$CC"; then
1590 echo "$ac_t""$CC" 1>&6
1592 echo "$ac_t""no" 1>&6
1595 if test -z "$CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1599 echo "configure:1600: checking for $ac_word" >&5
1601 if test -n "$CC"; then
1602 ac_cv_prog_CC="$CC" # Let the user override the test.
1604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1607 for ac_dir in $ac_dummy; do
1608 test -z "$ac_dir" && ac_dir=.
1609 if test -f $ac_dir/$ac_word; then
1610 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1611 ac_prog_rejected=yes
1619 if test $ac_prog_rejected = yes; then
1620 # We found a bogon in the path, so make sure we never use it.
1621 set dummy $ac_cv_prog_CC
1623 if test $# -gt 0; then
1624 # We chose a different compiler from the bogus one.
1625 # However, it has the same basename, so the bogon will be chosen
1626 # first if we set CC to just the basename; use the full file name.
1628 set dummy "$ac_dir/$ac_word" "$@"
1635 if test -n "$CC"; then
1636 echo "$ac_t""$CC" 1>&6
1638 echo "$ac_t""no" 1>&6
1641 if test -z "$CC"; then
1642 case "`uname -s`" in
1644 # Extract the first word of "cl", so it can be a program name with args.
1645 set dummy cl; ac_word=$2
1646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1647 echo "configure:1648: checking for $ac_word" >&5
1649 if test -n "$CC"; then
1650 ac_cv_prog_CC="$CC" # Let the user override the test.
1652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1654 for ac_dir in $ac_dummy; do
1655 test -z "$ac_dir" && ac_dir=.
1656 if test -f $ac_dir/$ac_word; then
1664 if test -n "$CC"; then
1665 echo "$ac_t""$CC" 1>&6
1667 echo "$ac_t""no" 1>&6
1672 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1675 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1676 echo "configure:1677: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1679 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1680 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1681 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1682 ac_cpp='$CPP '"$xe_cppflags"
1683 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1684 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1687 cat > conftest.$ac_ext << EOF
1689 #line 1690 "configure"
1690 #include "confdefs.h"
1694 if { (eval echo configure:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1695 ac_cv_prog_cc_works=yes
1696 # If we can't run a trivial program, we are probably using a cross compiler.
1697 if (./conftest; exit) 2>/dev/null; then
1698 ac_cv_prog_cc_cross=no
1700 ac_cv_prog_cc_cross=yes
1703 echo "configure: failed program was:" >&5
1704 cat conftest.$ac_ext >&5
1705 ac_cv_prog_cc_works=no
1709 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1710 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1711 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1712 ac_cpp='$CPP '"$xe_cppflags"
1713 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1714 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1717 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1718 if test $ac_cv_prog_cc_works = no; then
1719 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1721 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1722 echo "configure:1723: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1723 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1724 cross_compiling=$ac_cv_prog_cc_cross
1726 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1727 echo "configure:1728: checking whether we are using GNU C" >&5
1729 cat > conftest.c <<EOF
1734 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1740 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1742 if test $ac_cv_prog_gcc = yes; then
1748 ac_test_CFLAGS="${CFLAGS+set}"
1749 ac_save_CFLAGS="$CFLAGS"
1751 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1752 echo "configure:1753: checking whether ${CC-cc} accepts -g" >&5
1754 echo 'void f(){}' > conftest.c
1755 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1763 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1764 if test "$ac_test_CFLAGS" = set; then
1765 CFLAGS="$ac_save_CFLAGS"
1766 elif test $ac_cv_prog_cc_g = yes; then
1767 if test "$GCC" = yes; then
1773 if test "$GCC" = yes; then
1780 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1782 # Extract the first word of "gcc", so it can be a program name with args.
1783 set dummy gcc; ac_word=$2
1784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1785 echo "configure:1786: checking for $ac_word" >&5
1787 if test -n "$CC"; then
1788 ac_cv_prog_CC="$CC" # Let the user override the test.
1790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1792 for ac_dir in $ac_dummy; do
1793 test -z "$ac_dir" && ac_dir=.
1794 if test -f $ac_dir/$ac_word; then
1802 if test -n "$CC"; then
1803 echo "$ac_t""$CC" 1>&6
1805 echo "$ac_t""no" 1>&6
1808 if test -z "$CC"; then
1809 # Extract the first word of "cc", so it can be a program name with args.
1810 set dummy cc; ac_word=$2
1811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1812 echo "configure:1813: checking for $ac_word" >&5
1814 if test -n "$CC"; then
1815 ac_cv_prog_CC="$CC" # Let the user override the test.
1817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1820 for ac_dir in $ac_dummy; do
1821 test -z "$ac_dir" && ac_dir=.
1822 if test -f $ac_dir/$ac_word; then
1823 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1824 ac_prog_rejected=yes
1832 if test $ac_prog_rejected = yes; then
1833 # We found a bogon in the path, so make sure we never use it.
1834 set dummy $ac_cv_prog_CC
1836 if test $# -gt 0; then
1837 # We chose a different compiler from the bogus one.
1838 # However, it has the same basename, so the bogon will be chosen
1839 # first if we set CC to just the basename; use the full file name.
1841 set dummy "$ac_dir/$ac_word" "$@"
1848 if test -n "$CC"; then
1849 echo "$ac_t""$CC" 1>&6
1851 echo "$ac_t""no" 1>&6
1854 if test -z "$CC"; then
1855 case "`uname -s`" in
1857 # Extract the first word of "cl", so it can be a program name with args.
1858 set dummy cl; ac_word=$2
1859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1860 echo "configure:1861: checking for $ac_word" >&5
1862 if test -n "$CC"; then
1863 ac_cv_prog_CC="$CC" # Let the user override the test.
1865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1867 for ac_dir in $ac_dummy; do
1868 test -z "$ac_dir" && ac_dir=.
1869 if test -f $ac_dir/$ac_word; then
1877 if test -n "$CC"; then
1878 echo "$ac_t""$CC" 1>&6
1880 echo "$ac_t""no" 1>&6
1885 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1888 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1889 echo "configure:1890: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1892 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1893 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1894 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1895 ac_cpp='$CPP '"$xe_cppflags"
1896 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1897 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1900 cat > conftest.$ac_ext << EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1907 if { (eval echo configure:1908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1908 ac_cv_prog_cc_works=yes
1909 # If we can't run a trivial program, we are probably using a cross compiler.
1910 if (./conftest; exit) 2>/dev/null; then
1911 ac_cv_prog_cc_cross=no
1913 ac_cv_prog_cc_cross=yes
1916 echo "configure: failed program was:" >&5
1917 cat conftest.$ac_ext >&5
1918 ac_cv_prog_cc_works=no
1922 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1923 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1924 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1925 ac_cpp='$CPP '"$xe_cppflags"
1926 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1927 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1930 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1931 if test $ac_cv_prog_cc_works = no; then
1932 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1934 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1935 echo "configure:1936: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1936 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1937 cross_compiling=$ac_cv_prog_cc_cross
1939 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1940 echo "configure:1941: checking whether we are using GNU C" >&5
1942 cat > conftest.c <<EOF
1947 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1953 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1955 if test $ac_cv_prog_gcc = yes; then
1961 ac_test_CFLAGS="${CFLAGS+set}"
1962 ac_save_CFLAGS="$CFLAGS"
1964 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1965 echo "configure:1966: checking whether ${CC-cc} accepts -g" >&5
1967 echo 'void f(){}' > conftest.c
1968 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1976 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1977 if test "$ac_test_CFLAGS" = set; then
1978 CFLAGS="$ac_save_CFLAGS"
1979 elif test $ac_cv_prog_cc_g = yes; then
1980 if test "$GCC" = yes; then
1986 if test "$GCC" = yes; then
1993 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1995 # Extract the first word of "gcc", so it can be a program name with args.
1996 set dummy gcc; ac_word=$2
1997 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1998 echo "configure:1999: checking for $ac_word" >&5
2000 if test -n "$CC"; then
2001 ac_cv_prog_CC="$CC" # Let the user override the test.
2003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2005 for ac_dir in $ac_dummy; do
2006 test -z "$ac_dir" && ac_dir=.
2007 if test -f $ac_dir/$ac_word; then
2015 if test -n "$CC"; then
2016 echo "$ac_t""$CC" 1>&6
2018 echo "$ac_t""no" 1>&6
2021 if test -z "$CC"; then
2022 # Extract the first word of "cc", so it can be a program name with args.
2023 set dummy cc; ac_word=$2
2024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2025 echo "configure:2026: checking for $ac_word" >&5
2027 if test -n "$CC"; then
2028 ac_cv_prog_CC="$CC" # Let the user override the test.
2030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2033 for ac_dir in $ac_dummy; do
2034 test -z "$ac_dir" && ac_dir=.
2035 if test -f $ac_dir/$ac_word; then
2036 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2037 ac_prog_rejected=yes
2045 if test $ac_prog_rejected = yes; then
2046 # We found a bogon in the path, so make sure we never use it.
2047 set dummy $ac_cv_prog_CC
2049 if test $# -gt 0; then
2050 # We chose a different compiler from the bogus one.
2051 # However, it has the same basename, so the bogon will be chosen
2052 # first if we set CC to just the basename; use the full file name.
2054 set dummy "$ac_dir/$ac_word" "$@"
2061 if test -n "$CC"; then
2062 echo "$ac_t""$CC" 1>&6
2064 echo "$ac_t""no" 1>&6
2067 if test -z "$CC"; then
2068 case "`uname -s`" in
2070 # Extract the first word of "cl", so it can be a program name with args.
2071 set dummy cl; ac_word=$2
2072 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2073 echo "configure:2074: checking for $ac_word" >&5
2075 if test -n "$CC"; then
2076 ac_cv_prog_CC="$CC" # Let the user override the test.
2078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2080 for ac_dir in $ac_dummy; do
2081 test -z "$ac_dir" && ac_dir=.
2082 if test -f $ac_dir/$ac_word; then
2090 if test -n "$CC"; then
2091 echo "$ac_t""$CC" 1>&6
2093 echo "$ac_t""no" 1>&6
2098 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2101 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2102 echo "configure:2103: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2105 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2106 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2107 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2108 ac_cpp='$CPP '"$xe_cppflags"
2109 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2110 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2113 cat > conftest.$ac_ext << EOF
2115 #line 2116 "configure"
2116 #include "confdefs.h"
2120 if { (eval echo configure:2121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2121 ac_cv_prog_cc_works=yes
2122 # If we can't run a trivial program, we are probably using a cross compiler.
2123 if (./conftest; exit) 2>/dev/null; then
2124 ac_cv_prog_cc_cross=no
2126 ac_cv_prog_cc_cross=yes
2129 echo "configure: failed program was:" >&5
2130 cat conftest.$ac_ext >&5
2131 ac_cv_prog_cc_works=no
2135 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2136 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2137 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2138 ac_cpp='$CPP '"$xe_cppflags"
2139 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2140 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2143 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2144 if test $ac_cv_prog_cc_works = no; then
2145 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2147 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2148 echo "configure:2149: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2149 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2150 cross_compiling=$ac_cv_prog_cc_cross
2152 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2153 echo "configure:2154: checking whether we are using GNU C" >&5
2155 cat > conftest.c <<EOF
2160 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2166 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2168 if test $ac_cv_prog_gcc = yes; then
2174 ac_test_CFLAGS="${CFLAGS+set}"
2175 ac_save_CFLAGS="$CFLAGS"
2177 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2178 echo "configure:2179: checking whether ${CC-cc} accepts -g" >&5
2180 echo 'void f(){}' > conftest.c
2181 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2189 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2190 if test "$ac_test_CFLAGS" = set; then
2191 CFLAGS="$ac_save_CFLAGS"
2192 elif test $ac_cv_prog_cc_g = yes; then
2193 if test "$GCC" = yes; then
2199 if test "$GCC" = yes; then
2207 CFLAGS="$xe_save_CFLAGS"
2210 test -n "$CPP" -a -d "$CPP" && CPP=
2212 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2214 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2215 echo "configure:2216: checking how to run the C preprocessor" >&5
2216 # On Suns, sometimes $CPP names a directory.
2217 if test -n "$CPP" && test -d "$CPP"; then
2220 if test -z "$CPP"; then
2222 # This must be in double quotes, not single quotes, because CPP may get
2223 # substituted into the Makefile and "${CC-cc}" will confuse make.
2225 # On the NeXT, cc -E runs the code through the compiler's parser,
2226 # not just through cpp.
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
2243 CPP="${CC-cc} -E -traditional-cpp"
2244 cat > conftest.$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2251 { (eval echo configure:2252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2253 if test -z "$ac_err"; then
2257 echo "configure: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2260 CPP="${CC-cc} -nologo -E"
2261 cat > conftest.$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2268 { (eval echo configure:2269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2270 if test -z "$ac_err"; then
2274 echo "configure: failed program was:" >&5
2275 cat conftest.$ac_ext >&5
2284 ac_cv_prog_CPP="$CPP"
2285 CPP="$ac_cv_prog_CPP"
2287 ac_cv_prog_CPP="$CPP"
2289 echo "$ac_t""$CPP" 1>&6
2292 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2293 echo "configure:2294: checking for AIX" >&5
2294 cat > conftest.$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2303 egrep "yes" >/dev/null 2>&1; then
2305 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2306 Defining _ALL_SOURCE
2308 cat >> confdefs.h <<\EOF
2309 #define _ALL_SOURCE 1
2315 echo "$ac_t""no" 1>&6
2321 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2322 echo "configure:2323: checking for GNU libc" >&5
2323 cat > conftest.$ac_ext <<EOF
2324 #line 2325 "configure"
2325 #include "confdefs.h"
2326 #include <features.h>
2329 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2330 #error Not a GNU libc system :-(
2331 ******* ======= ******** &&&&&&&&
2336 if { (eval echo configure:2337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2340 echo "configure: failed program was:" >&5
2341 cat conftest.$ac_ext >&5
2346 echo "$ac_t""$have_glibc" 1>&6
2347 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2348 Defining _GNU_SOURCE
2350 cat >> confdefs.h <<\EOF
2351 #define _GNU_SOURCE 1
2357 cat > conftest.$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2361 #if defined __SUNPRO_C
2363 #elif defined __DECC
2370 if { (eval echo configure:2371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2375 echo "configure: failed program was:" >&5
2376 cat conftest.$ac_ext >&5
2378 case "$conftest_rc" in
2379 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2380 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2388 echo "Extracting information from the machine- and system-dependent headers..."
2390 tempcname="conftest.c"
2394 cat > $tempcname <<EOF
2396 #define C_SWITCH_SITE
2397 #define C_SWITCH_X_SITE
2398 #define LD_SWITCH_SITE
2399 #define LD_SWITCH_X_SITE
2400 #define LD_SWITCH_X_SITE_AUX
2401 #define OS_RELEASE $os_release
2402 #include "$srcdir/src/$opsysfile"
2403 #include "$srcdir/src/$machfile"
2405 #ifndef LIBS_MACHINE
2406 #define LIBS_MACHINE
2408 configure___ libs_machine=LIBS_MACHINE
2413 configure___ libs_system=LIBS_SYSTEM
2415 #ifndef LIBS_TERMCAP
2416 #define LIBS_TERMCAP
2418 configure___ libs_termcap=LIBS_TERMCAP
2420 #ifndef LIB_STANDARD
2421 #define LIB_STANDARD
2423 configure___ libs_standard=LIB_STANDARD
2426 #ifndef OBJECTS_MACHINE
2427 #define OBJECTS_MACHINE
2429 configure___ objects_machine=OBJECTS_MACHINE
2431 #ifndef OBJECTS_SYSTEM
2432 #define OBJECTS_SYSTEM
2434 configure___ objects_system=OBJECTS_SYSTEM
2437 #ifndef C_SWITCH_MACHINE
2438 #define C_SWITCH_MACHINE
2440 configure___ c_switch_machine=C_SWITCH_MACHINE
2442 #ifndef C_SWITCH_SYSTEM
2443 #define C_SWITCH_SYSTEM
2445 configure___ c_switch_system=C_SWITCH_SYSTEM
2448 #ifndef LD_SWITCH_MACHINE
2449 #define LD_SWITCH_MACHINE
2451 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2453 #ifndef LD_SWITCH_SYSTEM
2454 #define LD_SWITCH_SYSTEM
2456 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2460 #define UNEXEC "unexec.o"
2462 configure___ unexec=UNEXEC
2465 #ifndef LD_SWITCH_SHARED
2466 #define LD_SWITCH_SHARED "-c"
2468 configure___ ld_switch_shared=LD_SWITCH_SHARED
2471 #ifdef ORDINARY_LINK
2472 #define LD "\$(CC) \$(CFLAGS)"
2473 #else /* no ORDINARY LINK */
2474 #ifdef COFF_ENCAPSULATE
2475 #define LD "\$(CC) -nostdlib"
2476 #else /* not COFF_ENCAPSULATE */
2479 #else /* ! defined (LINKER) */
2481 #endif /* ! defined (LINKER) */
2482 #endif /* ! defined (COFF_ENCAPSULATE) */
2483 #endif /* not ORDINARY_LINK */
2489 configure___ lib_gcc=LIB_GCC
2491 #ifndef LD_TEXT_START_ADDR
2492 #define LD_TEXT_START_ADDR
2494 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2497 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2499 #ifdef COFF_ENCAPSULATE
2500 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2501 #else /* ! defined (COFF_ENCAPSULATE) */
2502 #define START_FILES "pre-crt0.o /lib/crt0.o"
2503 #endif /* ! defined (COFF_ENCAPSULATE) */
2504 #else /* ! defined (NO_REMAP) */
2505 #define START_FILES "ecrt0.o"
2506 #endif /* ! defined (NO_REMAP) */
2507 #endif /* no ORDINARY_LINK */
2511 configure___ start_files=START_FILES
2513 #ifdef ORDINARY_LINK
2514 configure___ ordinary_link=yes
2516 configure___ ordinary_link=no
2519 #ifdef SYSTEM_MALLOC
2520 configure___ system_malloc=yes
2522 configure___ system_malloc=no
2526 configure___ have_terminfo=yes
2528 configure___ have_terminfo=no
2531 #ifdef MAIL_USE_FLOCK
2532 configure___ mail_use_flock=yes
2534 configure___ mail_use_flock=no
2537 #ifdef MAIL_USE_LOCKF
2538 configure___ mail_use_lockf=yes
2540 configure___ mail_use_lockf=no
2543 #ifdef HAVE_WIN32_PROCESSES
2544 configure___ win32_processes=yes
2546 configure___ win32_processes=no
2551 CPP=`eval "echo $CPP $CPPFLAGS"`
2552 eval `$CPP -Isrc $tempcname \
2553 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2557 test "$extra_verbose" = "yes" && \
2558 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 ""
2560 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2562 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2564 if test "$cflags_specified" = "no"; then
2565 if test "$GCC" = "yes"; then
2566 CFLAGS="-g -O3 -Wall -Wno-switch"
2567 elif test "$__SUNPRO_C" = "yes"; then
2569 sol2 ) CFLAGS="-v -xO4" ;;
2570 sunos4* ) CFLAGS="-xO2";;
2572 elif test "$__DECC" = "yes"; then
2574 elif test "$CC" = "xlc"; then
2575 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2581 if test "$GCC" = "yes"; then
2582 set x $ld_switch_system; shift; ld_switch_system=""
2583 while test -n "$1"; do
2585 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2586 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2588 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2594 if test "$GCC" = "yes"; then
2595 set x $ld_switch_machine; shift; ld_switch_machine=""
2596 while test -n "$1"; do
2598 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2599 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2601 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2607 if test "$GCC" = "yes"; then
2608 set x $LDFLAGS; shift; LDFLAGS=""
2609 while test -n "$1"; do
2611 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2612 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2614 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2620 if test "$GCC" = "yes"; then
2621 set x $ld_call_shared; shift; ld_call_shared=""
2622 while test -n "$1"; do
2624 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2625 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2627 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2633 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2634 echo " xemacs will be linked with \"$objects_machine\""
2636 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2637 echo " xemacs will be linked with \"$objects_system\""
2639 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2640 echo " xemacs will be linked with \"$unexec\""
2643 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2644 echo "configure:2645: checking for dynodump" >&5
2645 if test "$unexec" != "unexsol2.o"; then
2646 echo "$ac_t""no" 1>&6
2648 echo "$ac_t""yes" 1>&6
2649 { test "$extra_verbose" = "yes" && cat << \EOF
2652 cat >> confdefs.h <<\EOF
2657 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2658 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2660 sparc ) dynodump_arch=sparc ;;
2661 *86* ) dynodump_arch=i386 ;;
2662 powerpc ) dynodump_arch=ppc ;;
2664 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
2668 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2670 if test "$unexec" = "unexaix.o"; then
2671 if test "$dynamic" = "no"; then
2672 start_flags="-Wl,-bnso,-bnodelcsect"
2673 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2674 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2675 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2677 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2678 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2681 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2682 echo "configure:2683: checking for terminateAndUnload in -lC" >&5
2683 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2685 xe_check_libs=" -lC "
2686 cat > conftest.$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2689 /* Override any gcc2 internal prototype to avoid an error. */
2690 /* We use char because int might match the return type of a gcc2
2691 builtin and then its argument prototype would still apply. */
2692 char terminateAndUnload();
2695 terminateAndUnload()
2698 if { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2700 eval "ac_cv_lib_$ac_lib_var=yes"
2702 echo "configure: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2705 eval "ac_cv_lib_$ac_lib_var=no"
2710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2711 echo "$ac_t""yes" 1>&6
2712 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2714 echo "$ac_t""no" 1>&6
2719 elif test -n "$ld_text_start_addr"; then
2720 start_flags="-T $ld_text_start_addr -e __start"
2726 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2727 test -z "$linker" && linker='$(CC) -nostdlib'
2728 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2730 test "$GCC" != "yes" && lib_gcc=
2736 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2737 if test -n "$site_libraries"; then
2738 for arg in $site_libraries; do
2741 * ) test -d "$arg" || \
2742 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2745 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2749 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2750 if test -n "$site_includes"; then
2751 for arg in $site_includes; do
2754 * ) test -d "$arg" || \
2755 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2758 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2762 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2763 if test -n "$site_prefixes"; then
2764 for dir in $site_prefixes; do
2765 lib_dir="${dir}/lib"
2766 inc_dir="${dir}/include"
2767 if test ! -d "$dir"; then
2768 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2769 elif test ! -d "$lib_dir"; then
2770 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2772 if test -d "$inc_dir"; then
2773 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
2775 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
2781 for dir in "/usr/ccs/lib"; do
2782 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
2785 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2786 if test -n "$site_runtime_libraries"; then
2787 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2792 if test "$dynamic" = "no"; then add_runtime_path=no
2793 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2794 else case "$opsys" in
2795 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2796 * ) add_runtime_path=no ;;
2800 if test "$add_runtime_path" = "yes"; then
2801 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2802 echo "configure:2803: checking "for runtime libraries flag"" >&5
2804 sol2 ) dash_r="-R" ;;
2805 decosf* | linux* | irix*) dash_r="-rpath " ;;
2808 for try_dash_r in "-R" "-R " "-rpath "; do
2809 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2811 if test "$GCC" = "yes"; then
2812 set x $xe_check_libs; shift; xe_check_libs=""
2813 while test -n "$1"; do
2815 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2816 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2818 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2823 cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2831 if { (eval echo configure:2832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2833 dash_r="$try_dash_r"
2835 echo "configure: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2840 test -n "$dash_r" && break
2843 if test -n "$dash_r";
2844 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2845 else echo "$ac_t""NONE" 1>&6
2849 xe_add_unique_runpath_dir='
2851 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2853 if test "$xe_add_p" = "yes"; then
2854 test -n "$runpath" && runpath="${runpath}:"
2855 runpath="${runpath}${xe_runpath_dir}"
2856 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2862 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2863 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2864 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2866 runpath="" runpath_dirs=""
2867 if test -n "$LD_RUN_PATH"; then
2868 runpath="$LD_RUN_PATH"
2869 elif test "$GCC" = "yes"; then
2870 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2871 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2872 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2873 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2874 case "$arg" in P,* | -L* | -R* )
2875 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2877 xe_runpath_dir="$dir"
2878 test "$xe_runpath_dir" != "/lib" -a \
2879 "$xe_runpath_dir" != "/usr/lib" -a \
2880 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2881 eval "$xe_add_unique_runpath_dir"
2886 ld_switch_run="$ld_switch_run_save"
2889 for arg in $ld_switch_site $ld_switch_x_site; do
2890 case "$arg" in -L*) {
2891 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2892 test "$xe_runpath_dir" != "/lib" -a \
2893 "$xe_runpath_dir" != "/usr/lib" -a \
2894 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2895 eval "$xe_add_unique_runpath_dir"
2898 if test "$opsys $need_motif" = "sol2 yes"; then
2899 xe_runpath_dir="/opt/SUNWdt/lib";
2900 eval "$xe_add_unique_runpath_dir";
2903 if test -n "$runpath"; then
2904 ld_switch_run="${dash_r}${runpath}"
2906 if test "$GCC" = "yes"; then
2907 set x $ld_switch_run; shift; ld_switch_run=""
2908 while test -n "$1"; do
2910 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2911 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2913 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2918 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2926 if test "$with_dlmalloc" != "no"; then
2931 after_morecore_hook_exists=yes
2932 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2933 echo "configure:2934: checking for malloc_get_state" >&5
2935 cat > conftest.$ac_ext <<EOF
2936 #line 2937 "configure"
2937 #include "confdefs.h"
2938 /* System header to define __stub macros and hopefully few prototypes,
2939 which can conflict with char malloc_get_state(); below. */
2941 /* Override any gcc2 internal prototype to avoid an error. */
2942 /* We use char because int might match the return type of a gcc2
2943 builtin and then its argument prototype would still apply. */
2944 char malloc_get_state();
2948 /* The GNU C library defines this for functions which it implements
2949 to always fail with ENOSYS. Some functions are actually named
2950 something starting with __ and the normal name is an alias. */
2951 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2959 if { (eval echo configure:2960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2961 eval "ac_cv_func_malloc_get_state=yes"
2963 echo "configure: failed program was:" >&5
2964 cat conftest.$ac_ext >&5
2966 eval "ac_cv_func_malloc_get_state=no"
2970 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2971 echo "$ac_t""yes" 1>&6
2974 echo "$ac_t""no" 1>&6
2978 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2979 echo "configure:2980: checking for malloc_set_state" >&5
2981 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2984 /* System header to define __stub macros and hopefully few prototypes,
2985 which can conflict with char malloc_set_state(); below. */
2987 /* Override any gcc2 internal prototype to avoid an error. */
2988 /* We use char because int might match the return type of a gcc2
2989 builtin and then its argument prototype would still apply. */
2990 char malloc_set_state();
2994 /* The GNU C library defines this for functions which it implements
2995 to always fail with ENOSYS. Some functions are actually named
2996 something starting with __ and the normal name is an alias. */
2997 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3005 if { (eval echo configure:3006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3007 eval "ac_cv_func_malloc_set_state=yes"
3009 echo "configure: failed program was:" >&5
3010 cat conftest.$ac_ext >&5
3012 eval "ac_cv_func_malloc_set_state=no"
3016 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3017 echo "$ac_t""yes" 1>&6
3020 echo "$ac_t""no" 1>&6
3024 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3025 echo "configure:3026: checking whether __after_morecore_hook exists" >&5
3026 cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3029 extern void (* __after_morecore_hook)();
3031 __after_morecore_hook = 0
3034 if { (eval echo configure:3035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3036 echo "$ac_t""yes" 1>&6
3038 echo "configure: failed program was:" >&5
3039 cat conftest.$ac_ext >&5
3041 echo "$ac_t""no" 1>&6
3042 after_morecore_hook_exists=no
3045 if test "$system_malloc" = "yes" ; then
3048 (The GNU allocators don't work with this system configuration)."
3049 elif test "$with_system_malloc" = "yes" ; then
3052 (User chose not to use GNU allocators)."
3053 elif test "$with_debug_malloc" = "yes" ; then
3056 (User chose to use Debugging Malloc)."
3059 if test "$doug_lea_malloc" = "yes" ; then
3060 if test "$GNU_MALLOC" = yes ; then
3062 (Using Doug Lea's new malloc from the GNU C Library.)"
3064 { test "$extra_verbose" = "yes" && cat << \EOF
3065 Defining DOUG_LEA_MALLOC
3067 cat >> confdefs.h <<\EOF
3068 #define DOUG_LEA_MALLOC 1
3072 if test "$after_morecore_hook_exists" = "no" ; then
3074 (Using Doug Lea's new malloc from the Linux C Library.)"
3075 { test "$extra_verbose" = "yes" && cat << \EOF
3076 Defining _NO_MALLOC_WARNING_
3078 cat >> confdefs.h <<\EOF
3079 #define _NO_MALLOC_WARNING_ 1
3084 use_minimal_tagbits=yes
3090 # Extract the first word of "ranlib", so it can be a program name with args.
3091 set dummy ranlib; ac_word=$2
3092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3093 echo "configure:3094: checking for $ac_word" >&5
3095 if test -n "$RANLIB"; then
3096 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3100 for ac_dir in $ac_dummy; do
3101 test -z "$ac_dir" && ac_dir=.
3102 if test -f $ac_dir/$ac_word; then
3103 ac_cv_prog_RANLIB="ranlib"
3108 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3110 RANLIB="$ac_cv_prog_RANLIB"
3111 if test -n "$RANLIB"; then
3112 echo "$ac_t""$RANLIB" 1>&6
3114 echo "$ac_t""no" 1>&6
3118 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3119 if test -f $ac_dir/install-sh; then
3121 ac_install_sh="$ac_aux_dir/install-sh -c"
3123 elif test -f $ac_dir/install.sh; then
3125 ac_install_sh="$ac_aux_dir/install.sh -c"
3129 if test -z "$ac_aux_dir"; then
3130 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3132 ac_config_guess=$ac_aux_dir/config.guess
3133 ac_config_sub=$ac_aux_dir/config.sub
3134 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3136 # Find a good install program. We prefer a C program (faster),
3137 # so one script is as good as another. But avoid the broken or
3138 # incompatible versions:
3139 # SysV /etc/install, /usr/sbin/install
3140 # SunOS /usr/etc/install
3141 # IRIX /sbin/install
3143 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3144 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3145 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3146 # ./install, which can be erroneously created by make from ./install.sh.
3147 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3148 echo "configure:3149: checking for a BSD compatible install" >&5
3149 if test -z "$INSTALL"; then
3151 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3152 for ac_dir in $PATH; do
3153 # Account for people who put trailing slashes in PATH elements.
3155 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3157 # OSF1 and SCO ODT 3.0 have their own names for install.
3158 # Don't use installbsd from OSF since it installs stuff as root
3160 for ac_prog in ginstall scoinst install; do
3161 if test -f $ac_dir/$ac_prog; then
3162 if test $ac_prog = install &&
3163 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3164 # AIX install. It has an incompatible calling convention.
3167 ac_cv_path_install="$ac_dir/$ac_prog -c"
3177 if test "${ac_cv_path_install+set}" = set; then
3178 INSTALL="$ac_cv_path_install"
3180 # As a last resort, use the slow shell script. We don't cache a
3181 # path for INSTALL within a source directory, because that will
3182 # break other packages using the cache if that directory is
3183 # removed, or if the path is relative.
3184 INSTALL="$ac_install_sh"
3187 echo "$ac_t""$INSTALL" 1>&6
3189 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3190 # It thinks the first close brace ends the variable substitution.
3191 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3193 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3195 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3197 for ac_prog in 'bison -y' byacc
3199 # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy $ac_prog; ac_word=$2
3201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3202 echo "configure:3203: checking for $ac_word" >&5
3204 if test -n "$YACC"; then
3205 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3209 for ac_dir in $ac_dummy; do
3210 test -z "$ac_dir" && ac_dir=.
3211 if test -f $ac_dir/$ac_word; then
3212 ac_cv_prog_YACC="$ac_prog"
3218 YACC="$ac_cv_prog_YACC"
3219 if test -n "$YACC"; then
3220 echo "$ac_t""$YACC" 1>&6
3222 echo "$ac_t""no" 1>&6
3225 test -n "$YACC" && break
3227 test -n "$YACC" || YACC="yacc"
3230 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3232 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3233 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3234 echo "configure:3235: checking for $ac_hdr" >&5
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3242 { (eval echo configure:3243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3244 if test -z "$ac_err"; then
3246 eval "ac_cv_header_$ac_safe=yes"
3249 echo "configure: failed program was:" >&5
3250 cat conftest.$ac_ext >&5
3252 eval "ac_cv_header_$ac_safe=no"
3255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3256 echo "$ac_t""yes" 1>&6
3257 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3258 { test "$extra_verbose" = "yes" && cat << EOF
3261 cat >> confdefs.h <<EOF
3262 #define $ac_tr_hdr 1
3267 echo "$ac_t""no" 1>&6
3271 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3273 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3274 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3275 echo "configure:3276: checking for $ac_hdr" >&5
3277 cat > conftest.$ac_ext <<EOF
3278 #line 3279 "configure"
3279 #include "confdefs.h"
3282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3283 { (eval echo configure:3284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3285 if test -z "$ac_err"; then
3287 eval "ac_cv_header_$ac_safe=yes"
3290 echo "configure: failed program was:" >&5
3291 cat conftest.$ac_ext >&5
3293 eval "ac_cv_header_$ac_safe=no"
3296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3297 echo "$ac_t""yes" 1>&6
3298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3299 { test "$extra_verbose" = "yes" && cat << EOF
3302 cat >> confdefs.h <<EOF
3303 #define $ac_tr_hdr 1
3308 echo "$ac_t""no" 1>&6
3312 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3314 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3315 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3316 echo "configure:3317: checking for $ac_hdr" >&5
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3324 { (eval echo configure:3325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3326 if test -z "$ac_err"; then
3328 eval "ac_cv_header_$ac_safe=yes"
3331 echo "configure: failed program was:" >&5
3332 cat conftest.$ac_ext >&5
3334 eval "ac_cv_header_$ac_safe=no"
3337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3338 echo "$ac_t""yes" 1>&6
3339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3340 { test "$extra_verbose" = "yes" && cat << EOF
3343 cat >> confdefs.h <<EOF
3344 #define $ac_tr_hdr 1
3349 echo "$ac_t""no" 1>&6
3353 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3354 echo "configure:3355: checking for sys/wait.h that is POSIX.1 compatible" >&5
3356 cat > conftest.$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3359 #include <sys/types.h>
3360 #include <sys/wait.h>
3362 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3365 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3370 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3373 if { (eval echo configure:3374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3375 ac_cv_header_sys_wait_h=yes
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3380 ac_cv_header_sys_wait_h=no
3384 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3385 if test $ac_cv_header_sys_wait_h = yes; then
3386 { test "$extra_verbose" = "yes" && cat << \EOF
3387 Defining HAVE_SYS_WAIT_H
3389 cat >> confdefs.h <<\EOF
3390 #define HAVE_SYS_WAIT_H 1
3396 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3397 echo "configure:3398: checking for ANSI C header files" >&5
3399 cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3408 { (eval echo configure:3409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3410 if test -z "$ac_err"; then
3412 ac_cv_header_stdc=yes
3415 echo "configure: failed program was:" >&5
3416 cat conftest.$ac_ext >&5
3418 ac_cv_header_stdc=no
3422 if test $ac_cv_header_stdc = yes; then
3423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3424 cat > conftest.$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3430 egrep "memchr" >/dev/null 2>&1; then
3434 ac_cv_header_stdc=no
3440 if test $ac_cv_header_stdc = yes; then
3441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3442 cat > conftest.$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3448 egrep "free" >/dev/null 2>&1; then
3452 ac_cv_header_stdc=no
3458 if test $ac_cv_header_stdc = yes; then
3459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3460 cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3464 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3465 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3467 int main () { int i; for (i = 0; i < 256; i++)
3468 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3472 if { (eval echo configure:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3477 echo "configure: failed program was:" >&5
3478 cat conftest.$ac_ext >&5
3480 ac_cv_header_stdc=no
3485 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3486 if test $ac_cv_header_stdc = yes; then
3487 { test "$extra_verbose" = "yes" && cat << \EOF
3488 Defining STDC_HEADERS
3490 cat >> confdefs.h <<\EOF
3491 #define STDC_HEADERS 1
3497 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3498 echo "configure:3499: checking whether time.h and sys/time.h may both be included" >&5
3500 cat > conftest.$ac_ext <<EOF
3501 #line 3502 "configure"
3502 #include "confdefs.h"
3503 #include <sys/types.h>
3504 #include <sys/time.h>
3510 if { (eval echo configure:3511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3512 ac_cv_header_time=yes
3514 echo "configure: failed program was:" >&5
3515 cat conftest.$ac_ext >&5
3517 ac_cv_header_time=no
3521 echo "$ac_t""$ac_cv_header_time" 1>&6
3522 if test $ac_cv_header_time = yes; then
3523 { test "$extra_verbose" = "yes" && cat << \EOF
3524 Defining TIME_WITH_SYS_TIME
3526 cat >> confdefs.h <<\EOF
3527 #define TIME_WITH_SYS_TIME 1
3533 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3534 echo "configure:3535: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 #include <sys/types.h>
3541 /* NetBSD declares sys_siglist in unistd.h. */
3542 #ifdef HAVE_UNISTD_H
3546 char *msg = *(sys_siglist + 1);
3549 if { (eval echo configure:3550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3551 ac_cv_decl_sys_siglist=yes
3553 echo "configure: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3556 ac_cv_decl_sys_siglist=no
3560 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3561 if test $ac_cv_decl_sys_siglist = yes; then
3562 { test "$extra_verbose" = "yes" && cat << \EOF
3563 Defining SYS_SIGLIST_DECLARED
3565 cat >> confdefs.h <<\EOF
3566 #define SYS_SIGLIST_DECLARED 1
3573 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3574 echo "configure:3575: checking for struct utimbuf" >&5
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 #ifdef TIME_WITH_SYS_TIME
3579 #include <sys/time.h>
3582 #ifdef HAVE_SYS_TIME_H
3583 #include <sys/time.h>
3592 static struct utimbuf x; x.actime = x.modtime;
3595 if { (eval echo configure:3596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3597 echo "$ac_t""yes" 1>&6
3598 { test "$extra_verbose" = "yes" && cat << \EOF
3599 Defining HAVE_STRUCT_UTIMBUF
3601 cat >> confdefs.h <<\EOF
3602 #define HAVE_STRUCT_UTIMBUF 1
3607 echo "configure: failed program was:" >&5
3608 cat conftest.$ac_ext >&5
3610 echo "$ac_t""no" 1>&6
3614 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3615 echo "configure:3616: checking return type of signal handlers" >&5
3617 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3620 #include <sys/types.h>
3626 extern "C" void (*signal (int, void (*)(int)))(int);
3628 void (*signal ()) ();
3635 if { (eval echo configure:3636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3637 ac_cv_type_signal=void
3639 echo "configure: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
3642 ac_cv_type_signal=int
3646 echo "$ac_t""$ac_cv_type_signal" 1>&6
3647 { test "$extra_verbose" = "yes" && cat << EOF
3648 Defining RETSIGTYPE = $ac_cv_type_signal
3650 cat >> confdefs.h <<EOF
3651 #define RETSIGTYPE $ac_cv_type_signal
3656 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3657 echo "configure:3658: checking for size_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])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3671 ac_cv_type_size_t=yes
3674 ac_cv_type_size_t=no
3678 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3679 if test $ac_cv_type_size_t = no; then
3680 { test "$extra_verbose" = "yes" && cat << \EOF
3681 Defining size_t = unsigned
3683 cat >> confdefs.h <<\EOF
3684 #define size_t unsigned
3690 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3691 echo "configure:3692: checking for pid_t" >&5
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3696 #include <sys/types.h>
3702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3703 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3705 ac_cv_type_pid_t=yes
3712 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3713 if test $ac_cv_type_pid_t = no; then
3714 { test "$extra_verbose" = "yes" && cat << \EOF
3715 Defining pid_t = int
3717 cat >> confdefs.h <<\EOF
3724 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3725 echo "configure:3726: checking for uid_t in sys/types.h" >&5
3727 cat > conftest.$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 #include <sys/types.h>
3732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3733 egrep "uid_t" >/dev/null 2>&1; then
3735 ac_cv_type_uid_t=yes
3743 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3744 if test $ac_cv_type_uid_t = no; then
3745 { test "$extra_verbose" = "yes" && cat << \EOF
3746 Defining uid_t = int
3748 cat >> confdefs.h <<\EOF
3753 { test "$extra_verbose" = "yes" && cat << \EOF
3754 Defining gid_t = int
3756 cat >> confdefs.h <<\EOF
3763 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3764 echo "configure:3765: checking for mode_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])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3778 ac_cv_type_mode_t=yes
3781 ac_cv_type_mode_t=no
3785 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3786 if test $ac_cv_type_mode_t = no; then
3787 { test "$extra_verbose" = "yes" && cat << \EOF
3788 Defining mode_t = int
3790 cat >> confdefs.h <<\EOF
3797 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3798 echo "configure:3799: checking for off_t" >&5
3800 cat > conftest.$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3803 #include <sys/types.h>
3809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3810 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3812 ac_cv_type_off_t=yes
3819 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3820 if test $ac_cv_type_off_t = no; then
3821 { test "$extra_verbose" = "yes" && cat << \EOF
3822 Defining off_t = long
3824 cat >> confdefs.h <<\EOF
3831 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3832 echo "configure:3833: checking for ssize_t" >&5
3834 cat > conftest.$ac_ext <<EOF
3835 #line 3836 "configure"
3836 #include "confdefs.h"
3837 #include <sys/types.h>
3843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3844 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3846 ac_cv_type_ssize_t=yes
3849 ac_cv_type_ssize_t=no
3853 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3854 if test $ac_cv_type_ssize_t = no; then
3855 { test "$extra_verbose" = "yes" && cat << \EOF
3856 Defining ssize_t = int
3858 cat >> confdefs.h <<\EOF
3866 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3867 echo "configure:3868: checking for struct timeval" >&5
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3871 #ifdef TIME_WITH_SYS_TIME
3872 #include <sys/time.h>
3875 #ifdef HAVE_SYS_TIME_H
3876 #include <sys/time.h>
3882 static struct timeval x; x.tv_sec = x.tv_usec;
3885 if { (eval echo configure:3886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3887 echo "$ac_t""yes" 1>&6
3889 { test "$extra_verbose" = "yes" && cat << \EOF
3890 Defining HAVE_TIMEVAL
3892 cat >> confdefs.h <<\EOF
3893 #define HAVE_TIMEVAL 1
3898 echo "configure: failed program was:" >&5
3899 cat conftest.$ac_ext >&5
3901 echo "$ac_t""no" 1>&6
3906 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3907 echo "configure:3908: checking whether struct tm is in sys/time.h or time.h" >&5
3909 cat > conftest.$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3912 #include <sys/types.h>
3915 struct tm *tp; tp->tm_sec;
3918 if { (eval echo configure:3919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3920 ac_cv_struct_tm=time.h
3922 echo "configure: failed program was:" >&5
3923 cat conftest.$ac_ext >&5
3925 ac_cv_struct_tm=sys/time.h
3929 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3930 if test $ac_cv_struct_tm = sys/time.h; then
3931 { test "$extra_verbose" = "yes" && cat << \EOF
3932 Defining TM_IN_SYS_TIME
3934 cat >> confdefs.h <<\EOF
3935 #define TM_IN_SYS_TIME 1
3941 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3942 echo "configure:3943: checking for tm_zone in struct tm" >&5
3944 cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3947 #include <sys/types.h>
3948 #include <$ac_cv_struct_tm>
3950 struct tm tm; tm.tm_zone;
3953 if { (eval echo configure:3954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3955 ac_cv_struct_tm_zone=yes
3957 echo "configure: failed program was:" >&5
3958 cat conftest.$ac_ext >&5
3960 ac_cv_struct_tm_zone=no
3964 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3965 if test "$ac_cv_struct_tm_zone" = yes; then
3966 { test "$extra_verbose" = "yes" && cat << \EOF
3967 Defining HAVE_TM_ZONE
3969 cat >> confdefs.h <<\EOF
3970 #define HAVE_TM_ZONE 1
3975 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3976 echo "configure:3977: checking for tzname" >&5
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3982 #ifndef tzname /* For SGI. */
3983 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3989 if { (eval echo configure:3990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3991 ac_cv_var_tzname=yes
3993 echo "configure: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
4000 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4001 if test $ac_cv_var_tzname = yes; then
4002 { test "$extra_verbose" = "yes" && cat << \EOF
4003 Defining HAVE_TZNAME
4005 cat >> confdefs.h <<\EOF
4006 #define HAVE_TZNAME 1
4014 echo $ac_n "checking for working const""... $ac_c" 1>&6
4015 echo "configure:4016: checking for working const" >&5
4017 cat > conftest.$ac_ext <<EOF
4018 #line 4019 "configure"
4019 #include "confdefs.h"
4023 /* Ultrix mips cc rejects this. */
4024 typedef int charset[2]; const charset x;
4025 /* SunOS 4.1.1 cc rejects this. */
4026 char const *const *ccp;
4028 /* NEC SVR4.0.2 mips cc rejects this. */
4029 struct point {int x, y;};
4030 static struct point const zero = {0,0};
4031 /* AIX XL C 1.02.0.0 rejects this.
4032 It does not let you subtract one const X* pointer from another in an arm
4033 of an if-expression whose if-part is not a constant expression */
4034 const char *g = "string";
4035 ccp = &g + (g ? g-g : 0);
4036 /* HPUX 7.0 cc rejects these. */
4039 ccp = (char const *const *) p;
4040 { /* SCO 3.2v4 cc rejects this. */
4042 char const *s = 0 ? (char *) 0 : (char const *) 0;
4046 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4048 const int *foo = &x[0];
4051 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4052 typedef const int *iptr;
4056 { /* AIX XL C 1.02.0.0 rejects this saying
4057 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4058 struct s { int j; const int *ap[3]; };
4059 struct s *b; b->j = 5;
4061 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4067 if { (eval echo configure:4068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4071 echo "configure: failed program was:" >&5
4072 cat conftest.$ac_ext >&5
4078 echo "$ac_t""$ac_cv_c_const" 1>&6
4079 if test $ac_cv_c_const = no; then
4080 { test "$extra_verbose" = "yes" && cat << \EOF
4083 cat >> confdefs.h <<\EOF
4091 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4092 echo "configure:4093: checking whether ${MAKE-make} sets \${MAKE}" >&5
4093 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4095 cat > conftestmake <<\EOF
4097 @echo 'ac_maketemp="${MAKE}"'
4099 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4100 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4101 if test -n "$ac_maketemp"; then
4102 eval ac_cv_prog_make_${ac_make}_set=yes
4104 eval ac_cv_prog_make_${ac_make}_set=no
4107 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4108 echo "$ac_t""yes" 1>&6
4111 echo "$ac_t""no" 1>&6
4112 SET_MAKE="MAKE=${MAKE-make}"
4116 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4117 echo "configure:4118: checking whether byte ordering is bigendian" >&5
4119 ac_cv_c_bigendian=unknown
4120 # See if sys/param.h defines the BYTE_ORDER macro.
4121 cat > conftest.$ac_ext <<EOF
4122 #line 4123 "configure"
4123 #include "confdefs.h"
4124 #include <sys/types.h>
4125 #include <sys/param.h>
4128 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4133 if { (eval echo configure:4134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4135 # It does; now see whether it defined to BIG_ENDIAN or not.
4136 cat > conftest.$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4139 #include <sys/types.h>
4140 #include <sys/param.h>
4143 #if BYTE_ORDER != BIG_ENDIAN
4148 if { (eval echo configure:4149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4150 ac_cv_c_bigendian=yes
4152 echo "configure: failed program was:" >&5
4153 cat conftest.$ac_ext >&5
4155 ac_cv_c_bigendian=no
4159 echo "configure: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4163 if test $ac_cv_c_bigendian = unknown; then
4164 cat > conftest.$ac_ext <<EOF
4165 #line 4166 "configure"
4166 #include "confdefs.h"
4168 /* Are we little or big endian? From Harbison&Steele. */
4172 char c[sizeof (long)];
4175 exit (u.c[sizeof (long) - 1] == 1);
4178 if { (eval echo configure:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4180 ac_cv_c_bigendian=no
4183 echo "configure: failed program was:" >&5
4184 cat conftest.$ac_ext >&5
4186 ac_cv_c_bigendian=yes
4191 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4192 if test $ac_cv_c_bigendian = yes; then
4193 { test "$extra_verbose" = "yes" && cat << \EOF
4194 Defining WORDS_BIGENDIAN
4196 cat >> confdefs.h <<\EOF
4197 #define WORDS_BIGENDIAN 1
4204 echo $ac_n "checking size of short""... $ac_c" 1>&6
4205 echo "configure:4206: checking size of short" >&5
4207 cat > conftest.$ac_ext <<EOF
4208 #line 4209 "configure"
4209 #include "confdefs.h"
4213 FILE *f=fopen("conftestval", "w");
4215 fprintf(f, "%d\n", sizeof(short));
4219 if { (eval echo configure:4220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4221 ac_cv_sizeof_short=`cat conftestval`
4224 echo "configure: failed program was:" >&5
4225 cat conftest.$ac_ext >&5
4227 ac_cv_sizeof_short=0
4230 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4231 { test "$extra_verbose" = "yes" && cat << EOF
4232 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4234 cat >> confdefs.h <<EOF
4235 #define SIZEOF_SHORT $ac_cv_sizeof_short
4240 if test "$ac_cv_sizeof_short" = 0; then
4242 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4243 echo "*** PANIC *** Please examine config.log for compilation errors."
4246 echo $ac_n "checking size of int""... $ac_c" 1>&6
4247 echo "configure:4248: checking size of int" >&5
4249 cat > conftest.$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4255 FILE *f=fopen("conftestval", "w");
4257 fprintf(f, "%d\n", sizeof(int));
4261 if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4263 ac_cv_sizeof_int=`cat conftestval`
4266 echo "configure: failed program was:" >&5
4267 cat conftest.$ac_ext >&5
4272 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4273 { test "$extra_verbose" = "yes" && cat << EOF
4274 Defining SIZEOF_INT = $ac_cv_sizeof_int
4276 cat >> confdefs.h <<EOF
4277 #define SIZEOF_INT $ac_cv_sizeof_int
4282 echo $ac_n "checking size of long""... $ac_c" 1>&6
4283 echo "configure:4284: checking size of long" >&5
4285 cat > conftest.$ac_ext <<EOF
4286 #line 4287 "configure"
4287 #include "confdefs.h"
4291 FILE *f=fopen("conftestval", "w");
4293 fprintf(f, "%d\n", sizeof(long));
4297 if { (eval echo configure:4298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4299 ac_cv_sizeof_long=`cat conftestval`
4302 echo "configure: failed program was:" >&5
4303 cat conftest.$ac_ext >&5
4308 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4309 { test "$extra_verbose" = "yes" && cat << EOF
4310 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4312 cat >> confdefs.h <<EOF
4313 #define SIZEOF_LONG $ac_cv_sizeof_long
4318 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4319 echo "configure:4320: checking size of long long" >&5
4321 cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4327 FILE *f=fopen("conftestval", "w");
4329 fprintf(f, "%d\n", sizeof(long long));
4333 if { (eval echo configure:4334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4335 ac_cv_sizeof_long_long=`cat conftestval`
4338 echo "configure: failed program was:" >&5
4339 cat conftest.$ac_ext >&5
4341 ac_cv_sizeof_long_long=0
4344 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4345 { test "$extra_verbose" = "yes" && cat << EOF
4346 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4348 cat >> confdefs.h <<EOF
4349 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4354 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4355 echo "configure:4356: checking size of void *" >&5
4357 cat > conftest.$ac_ext <<EOF
4358 #line 4359 "configure"
4359 #include "confdefs.h"
4363 FILE *f=fopen("conftestval", "w");
4365 fprintf(f, "%d\n", sizeof(void *));
4369 if { (eval echo configure:4370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4371 ac_cv_sizeof_void_p=`cat conftestval`
4374 echo "configure: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4377 ac_cv_sizeof_void_p=0
4380 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4381 { test "$extra_verbose" = "yes" && cat << EOF
4382 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4384 cat >> confdefs.h <<EOF
4385 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4391 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4392 echo "configure:4393: checking for long file names" >&5
4394 ac_cv_sys_long_file_names=yes
4395 # Test for long file names in all the places we know might matter:
4396 # . the current directory, where building will happen
4397 # $prefix/lib where we will be installing things
4398 # $exec_prefix/lib likewise
4399 # eval it to expand exec_prefix.
4400 # $TMPDIR if set, where it might want to write temporary files
4401 # if $TMPDIR is not set:
4402 # /tmp where it might want to write temporary files
4405 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4406 ac_tmpdirs="$TMPDIR"
4408 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4410 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4411 test -d $ac_dir || continue
4412 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4413 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4414 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4415 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4416 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4417 ac_cv_sys_long_file_names=no
4418 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4421 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4424 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4425 if test $ac_cv_sys_long_file_names = yes; then
4426 { test "$extra_verbose" = "yes" && cat << \EOF
4427 Defining HAVE_LONG_FILE_NAMES
4429 cat >> confdefs.h <<\EOF
4430 #define HAVE_LONG_FILE_NAMES 1
4437 echo $ac_n "checking for sin""... $ac_c" 1>&6
4438 echo "configure:4439: checking for sin" >&5
4440 cat > conftest.$ac_ext <<EOF
4441 #line 4442 "configure"
4442 #include "confdefs.h"
4443 /* System header to define __stub macros and hopefully few prototypes,
4444 which can conflict with char sin(); below. */
4446 /* Override any gcc2 internal prototype to avoid an error. */
4447 /* We use char because int might match the return type of a gcc2
4448 builtin and then its argument prototype would still apply. */
4453 /* The GNU C library defines this for functions which it implements
4454 to always fail with ENOSYS. Some functions are actually named
4455 something starting with __ and the normal name is an alias. */
4456 #if defined (__stub_sin) || defined (__stub___sin)
4464 if { (eval echo configure:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4466 eval "ac_cv_func_sin=yes"
4468 echo "configure: failed program was:" >&5
4469 cat conftest.$ac_ext >&5
4471 eval "ac_cv_func_sin=no"
4475 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4476 echo "$ac_t""yes" 1>&6
4479 echo "$ac_t""no" 1>&6
4481 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4482 echo "configure:4483: checking for sin in -lm" >&5
4483 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4485 xe_check_libs=" -lm "
4486 cat > conftest.$ac_ext <<EOF
4487 #line 4488 "configure"
4488 #include "confdefs.h"
4489 /* Override any gcc2 internal prototype to avoid an error. */
4490 /* We use char because int might match the return type of a gcc2
4491 builtin and then its argument prototype would still apply. */
4498 if { (eval echo configure:4499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4500 eval "ac_cv_lib_$ac_lib_var=yes"
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4505 eval "ac_cv_lib_$ac_lib_var=no"
4510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4511 echo "$ac_t""yes" 1>&6
4512 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4513 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4514 { test "$extra_verbose" = "yes" && cat << EOF
4517 cat >> confdefs.h <<EOF
4518 #define $ac_tr_lib 1
4522 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4525 echo "$ac_t""no" 1>&6
4532 { test "$extra_verbose" = "yes" && cat << \EOF
4533 Defining LISP_FLOAT_TYPE
4535 cat >> confdefs.h <<\EOF
4536 #define LISP_FLOAT_TYPE 1
4541 cat > conftest.$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4546 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4549 if { (eval echo configure:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4551 { test "$extra_verbose" = "yes" && cat << \EOF
4552 Defining HAVE_INVERSE_HYPERBOLIC
4554 cat >> confdefs.h <<\EOF
4555 #define HAVE_INVERSE_HYPERBOLIC 1
4560 echo "configure: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4565 echo "checking type of mail spool file locking" 1>&6
4566 echo "configure:4567: checking type of mail spool file locking" >&5
4567 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4568 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4569 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4570 Defining REAL_MAIL_USE_LOCKF
4572 cat >> confdefs.h <<\EOF
4573 #define REAL_MAIL_USE_LOCKF 1
4577 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4578 Defining REAL_MAIL_USE_FLOCK
4580 cat >> confdefs.h <<\EOF
4581 #define REAL_MAIL_USE_FLOCK 1
4585 else mail_locking="dot-locking"
4588 case "$opsys" in decosf*)
4590 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4591 echo "configure:4592: checking for cma_open in -lpthreads" >&5
4592 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4594 xe_check_libs=" -lpthreads "
4595 cat > conftest.$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4598 /* Override any gcc2 internal prototype to avoid an error. */
4599 /* We use char because int might match the return type of a gcc2
4600 builtin and then its argument prototype would still apply. */
4607 if { (eval echo configure:4608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4609 eval "ac_cv_lib_$ac_lib_var=yes"
4611 echo "configure: failed program was:" >&5
4612 cat conftest.$ac_ext >&5
4614 eval "ac_cv_lib_$ac_lib_var=no"
4619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4620 echo "$ac_t""yes" 1>&6
4621 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4622 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4623 { test "$extra_verbose" = "yes" && cat << EOF
4626 cat >> confdefs.h <<EOF
4627 #define $ac_tr_lib 1
4631 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4634 echo "$ac_t""no" 1>&6
4638 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4639 c_switch_site="$c_switch_site -threads" ;;
4642 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4643 echo "configure:4644: checking whether the -xildoff compiler flag is required" >&5
4644 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4645 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4646 then echo "$ac_t""no" 1>&6;
4647 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
4649 else echo "$ac_t""no" 1>&6
4652 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4653 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4654 echo "configure:4655: checking for \"-z ignore\" linker flag" >&5
4655 case "`ld -h 2>&1`" in
4656 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4657 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4658 *) echo "$ac_t""no" 1>&6 ;;
4663 echo "checking "for specified window system"" 1>&6
4664 echo "configure:4665: checking "for specified window system"" >&5
4666 if test "$with_x11" != "no"; then
4667 test "$x_includes $x_libraries" != "NONE NONE" && \
4668 window_system=x11 with_x11=yes
4671 if test "$x_includes $x_libraries" = "NONE NONE" \
4672 -a -n "$OPENWINHOME" \
4673 -a "$OPENWINHOME" != "/usr/openwin" \
4674 -a -d "$OPENWINHOME"; then
4675 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4676 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4677 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4680 if test "$x_includes" = "NONE"; then
4681 for dir in "/usr/X11" "/usr/X11R6"; do
4682 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4686 if test "$x_libraries" = "NONE"; then
4687 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4688 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4692 # If we find X, set shell vars x_includes and x_libraries to the
4693 # paths, otherwise set no_x=yes.
4694 # Uses ac_ vars as temps to allow command line to override cache and checks.
4695 # --without-x overrides everything else, but does not touch the cache.
4696 echo $ac_n "checking for X""... $ac_c" 1>&6
4697 echo "configure:4698: checking for X" >&5
4699 # Check whether --with-x or --without-x was given.
4700 if test "${with_x+set}" = set; then
4705 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4706 if test "x$with_x" = xno; then
4707 # The user explicitly disabled X.
4710 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4711 # Both variables are already set.
4715 # One or both of the vars are not set, and there is no cached value.
4716 ac_x_includes=NO ac_x_libraries=NO
4718 if mkdir conftestdir; then
4720 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4721 cat > Imakefile <<'EOF'
4723 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4725 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4726 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4727 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4728 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4729 for ac_extension in a so sl; do
4730 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4731 test -f $ac_im_libdir/libX11.$ac_extension; then
4732 ac_im_usrlibdir=$ac_im_libdir; break
4735 # Screen out bogus values from the imake configuration. They are
4736 # bogus both because they are the default anyway, and because
4737 # using them would break gcc on systems where it needs fixed includes.
4738 case "$ac_im_incroot" in
4740 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4742 case "$ac_im_usrlibdir" in
4744 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4751 if test "$ac_x_includes" = NO; then
4752 # Guess where to find include files, by looking for this one X11 .h file.
4753 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4755 # First, try using that file with no special directory specified.
4756 cat > conftest.$ac_ext <<EOF
4757 #line 4758 "configure"
4758 #include "confdefs.h"
4759 #include <$x_direct_test_include>
4761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4762 { (eval echo configure:4763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4764 if test -z "$ac_err"; then
4766 # We can compile using X headers with no special include directory.
4770 echo "configure: failed program was:" >&5
4771 cat conftest.$ac_ext >&5
4773 # Look for the header file in a standard set of common directories.
4774 # Check X11 before X11Rn because it is often a symlink to the current release.
4777 /usr/X11R6/include \
4778 /usr/X11R5/include \
4779 /usr/X11R4/include \
4782 /usr/include/X11R6 \
4783 /usr/include/X11R5 \
4784 /usr/include/X11R4 \
4786 /usr/local/X11/include \
4787 /usr/local/X11R6/include \
4788 /usr/local/X11R5/include \
4789 /usr/local/X11R4/include \
4791 /usr/local/include/X11 \
4792 /usr/local/include/X11R6 \
4793 /usr/local/include/X11R5 \
4794 /usr/local/include/X11R4 \
4798 /usr/XFree86/include/X11 \
4801 /usr/local/include \
4802 /usr/unsupported/include \
4803 /usr/athena/include \
4804 /usr/local/x11r5/include \
4805 /usr/lpp/Xamples/include \
4807 /usr/openwin/include \
4808 /usr/openwin/share/include \
4811 if test -r "$ac_dir/$x_direct_test_include"; then
4812 ac_x_includes=$ac_dir
4818 fi # $ac_x_includes = NO
4820 if test "$ac_x_libraries" = NO; then
4821 # Check for the libraries.
4823 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4824 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4826 # See if we find them without any special options.
4827 # Don't add to $LIBS permanently.
4828 ac_save_LIBS="$LIBS"
4829 LIBS="-l$x_direct_test_library $LIBS"
4830 cat > conftest.$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4835 ${x_direct_test_function}()
4838 if { (eval echo configure:4839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4840 LIBS="$ac_save_LIBS"
4841 # We can link X programs with no special library path.
4844 echo "configure: failed program was:" >&5
4845 cat conftest.$ac_ext >&5
4847 LIBS="$ac_save_LIBS"
4848 # First see if replacing the include by lib works.
4849 # Check X11 before X11Rn because it is often a symlink to the current release.
4850 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4861 /usr/local/X11/lib \
4862 /usr/local/X11R6/lib \
4863 /usr/local/X11R5/lib \
4864 /usr/local/X11R4/lib \
4866 /usr/local/lib/X11 \
4867 /usr/local/lib/X11R6 \
4868 /usr/local/lib/X11R5 \
4869 /usr/local/lib/X11R4 \
4873 /usr/XFree86/lib/X11 \
4877 /usr/unsupported/lib \
4879 /usr/local/x11r5/lib \
4880 /usr/lpp/Xamples/lib \
4884 /usr/openwin/share/lib \
4887 for ac_extension in a so sl; do
4888 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4889 ac_x_libraries=$ac_dir
4896 fi # $ac_x_libraries = NO
4898 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4899 # Didn't find X anywhere. Cache the known absence of X.
4900 ac_cv_have_x="have_x=no"
4902 # Record where we found X for the cache.
4903 ac_cv_have_x="have_x=yes \
4904 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4907 eval "$ac_cv_have_x"
4910 if test "$have_x" != yes; then
4911 echo "$ac_t""$have_x" 1>&6
4914 # If each of the values was on the command line, it overrides each guess.
4915 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4916 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4917 # Update the cache value to reflect the command line values.
4918 ac_cv_have_x="have_x=yes \
4919 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4920 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4923 if test "$no_x" = yes; then
4924 # Not all programs may use this symbol, but it does not hurt to define it.
4925 { test "$extra_verbose" = "yes" && cat << \EOF
4926 Defining X_DISPLAY_MISSING
4928 cat >> confdefs.h <<\EOF
4929 #define X_DISPLAY_MISSING 1
4933 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4935 if test -n "$x_includes"; then
4936 X_CFLAGS="$X_CFLAGS -I$x_includes"
4939 # It would also be nice to do this for all -L options, not just this one.
4940 if test -n "$x_libraries"; then
4941 X_LIBS="$X_LIBS -L$x_libraries"
4942 # For Solaris; some versions of Sun CC require a space after -R and
4943 # others require no space. Words are not sufficient . . . .
4944 case "`(uname -sr) 2>/dev/null`" in
4946 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4947 echo "configure:4948: checking whether -R must be followed by a space" >&5
4948 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4949 cat > conftest.$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4957 if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4961 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5
4967 if test $ac_R_nospace = yes; then
4968 echo "$ac_t""no" 1>&6
4969 X_LIBS="$X_LIBS -R$x_libraries"
4971 LIBS="$ac_xsave_LIBS -R $x_libraries"
4972 cat > conftest.$ac_ext <<EOF
4973 #line 4974 "configure"
4974 #include "confdefs.h"
4980 if { (eval echo configure:4981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4984 echo "configure: failed program was:" >&5
4985 cat conftest.$ac_ext >&5
4990 if test $ac_R_space = yes; then
4991 echo "$ac_t""yes" 1>&6
4992 X_LIBS="$X_LIBS -R $x_libraries"
4994 echo "$ac_t""neither works" 1>&6
4997 LIBS="$ac_xsave_LIBS"
5001 # Check for system-dependent libraries X programs must link with.
5002 # Do this before checking for the system-independent R6 libraries
5003 # (-lICE), since we may need -lsocket or whatever for X linking.
5005 if test "$ISC" = yes; then
5006 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5008 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5009 # libraries were built with DECnet support. And karl@cs.umb.edu says
5010 # the Alpha needs dnet_stub (dnet does not exist).
5011 if test "$with_dnet" = "no" ; then
5012 ac_cv_lib_dnet_dnet_ntoa=no
5015 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5016 echo "configure:5017: checking for dnet_ntoa in -ldnet" >&5
5017 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5019 xe_check_libs=" -ldnet "
5020 cat > conftest.$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5023 /* Override any gcc2 internal prototype to avoid an error. */
5024 /* We use char because int might match the return type of a gcc2
5025 builtin and then its argument prototype would still apply. */
5032 if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5034 eval "ac_cv_lib_$ac_lib_var=yes"
5036 echo "configure: failed program was:" >&5
5037 cat conftest.$ac_ext >&5
5039 eval "ac_cv_lib_$ac_lib_var=no"
5044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5045 echo "$ac_t""yes" 1>&6
5046 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5048 echo "$ac_t""no" 1>&6
5053 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5055 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5056 echo "configure:5057: checking for dnet_ntoa in -ldnet_stub" >&5
5057 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5059 xe_check_libs=" -ldnet_stub "
5060 cat > conftest.$ac_ext <<EOF
5061 #line 5062 "configure"
5062 #include "confdefs.h"
5063 /* Override any gcc2 internal prototype to avoid an error. */
5064 /* We use char because int might match the return type of a gcc2
5065 builtin and then its argument prototype would still apply. */
5072 if { (eval echo configure:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5074 eval "ac_cv_lib_$ac_lib_var=yes"
5076 echo "configure: failed program was:" >&5
5077 cat conftest.$ac_ext >&5
5079 eval "ac_cv_lib_$ac_lib_var=no"
5084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5085 echo "$ac_t""yes" 1>&6
5086 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5088 echo "$ac_t""no" 1>&6
5094 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5095 # to get the SysV transport functions.
5096 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5098 # The nsl library prevents programs from opening the X display
5099 # on Irix 5.2, according to dickey@clark.net.
5100 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5101 echo "configure:5102: checking for gethostbyname" >&5
5103 cat > conftest.$ac_ext <<EOF
5104 #line 5105 "configure"
5105 #include "confdefs.h"
5106 /* System header to define __stub macros and hopefully few prototypes,
5107 which can conflict with char gethostbyname(); below. */
5109 /* Override any gcc2 internal prototype to avoid an error. */
5110 /* We use char because int might match the return type of a gcc2
5111 builtin and then its argument prototype would still apply. */
5112 char gethostbyname();
5116 /* The GNU C library defines this for functions which it implements
5117 to always fail with ENOSYS. Some functions are actually named
5118 something starting with __ and the normal name is an alias. */
5119 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5127 if { (eval echo configure:5128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5129 eval "ac_cv_func_gethostbyname=yes"
5131 echo "configure: failed program was:" >&5
5132 cat conftest.$ac_ext >&5
5134 eval "ac_cv_func_gethostbyname=no"
5138 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5139 echo "$ac_t""yes" 1>&6
5142 echo "$ac_t""no" 1>&6
5145 if test $ac_cv_func_gethostbyname = no; then
5147 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5148 echo "configure:5149: checking for gethostbyname in -lnsl" >&5
5149 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5151 xe_check_libs=" -lnsl "
5152 cat > conftest.$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5155 /* Override any gcc2 internal prototype to avoid an error. */
5156 /* We use char because int might match the return type of a gcc2
5157 builtin and then its argument prototype would still apply. */
5158 char gethostbyname();
5164 if { (eval echo configure:5165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5166 eval "ac_cv_lib_$ac_lib_var=yes"
5168 echo "configure: failed program was:" >&5
5169 cat conftest.$ac_ext >&5
5171 eval "ac_cv_lib_$ac_lib_var=no"
5176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5177 echo "$ac_t""yes" 1>&6
5178 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5180 echo "$ac_t""no" 1>&6
5186 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5187 # socket/setsockopt and other routines are undefined under SCO ODT
5188 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5189 # on later versions), says simon@lia.di.epfl.ch: it contains
5190 # gethostby* variants that don't use the nameserver (or something).
5191 # -lsocket must be given before -lnsl if both are needed.
5192 # We assume that if connect needs -lnsl, so does gethostbyname.
5193 echo $ac_n "checking for connect""... $ac_c" 1>&6
5194 echo "configure:5195: checking for connect" >&5
5196 cat > conftest.$ac_ext <<EOF
5197 #line 5198 "configure"
5198 #include "confdefs.h"
5199 /* System header to define __stub macros and hopefully few prototypes,
5200 which can conflict with char connect(); below. */
5202 /* Override any gcc2 internal prototype to avoid an error. */
5203 /* We use char because int might match the return type of a gcc2
5204 builtin and then its argument prototype would still apply. */
5209 /* The GNU C library defines this for functions which it implements
5210 to always fail with ENOSYS. Some functions are actually named
5211 something starting with __ and the normal name is an alias. */
5212 #if defined (__stub_connect) || defined (__stub___connect)
5220 if { (eval echo configure:5221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5222 eval "ac_cv_func_connect=yes"
5224 echo "configure: failed program was:" >&5
5225 cat conftest.$ac_ext >&5
5227 eval "ac_cv_func_connect=no"
5231 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5232 echo "$ac_t""yes" 1>&6
5235 echo "$ac_t""no" 1>&6
5238 if test $ac_cv_func_connect = no; then
5240 xe_msg_checking="for connect in -lsocket"
5241 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5242 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5243 echo "configure:5244: checking "$xe_msg_checking"" >&5
5244 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5246 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5247 cat > conftest.$ac_ext <<EOF
5248 #line 5249 "configure"
5249 #include "confdefs.h"
5250 /* Override any gcc2 internal prototype to avoid an error. */
5251 /* We use char because int might match the return type of a gcc2
5252 builtin and then its argument prototype would still apply. */
5259 if { (eval echo configure:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5261 eval "ac_cv_lib_$ac_lib_var=yes"
5263 echo "configure: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5266 eval "ac_cv_lib_$ac_lib_var=no"
5271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5272 echo "$ac_t""yes" 1>&6
5273 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5275 echo "$ac_t""no" 1>&6
5281 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5282 echo $ac_n "checking for remove""... $ac_c" 1>&6
5283 echo "configure:5284: checking for remove" >&5
5285 cat > conftest.$ac_ext <<EOF
5286 #line 5287 "configure"
5287 #include "confdefs.h"
5288 /* System header to define __stub macros and hopefully few prototypes,
5289 which can conflict with char remove(); below. */
5291 /* Override any gcc2 internal prototype to avoid an error. */
5292 /* We use char because int might match the return type of a gcc2
5293 builtin and then its argument prototype would still apply. */
5298 /* The GNU C library defines this for functions which it implements
5299 to always fail with ENOSYS. Some functions are actually named
5300 something starting with __ and the normal name is an alias. */
5301 #if defined (__stub_remove) || defined (__stub___remove)
5309 if { (eval echo configure:5310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5311 eval "ac_cv_func_remove=yes"
5313 echo "configure: failed program was:" >&5
5314 cat conftest.$ac_ext >&5
5316 eval "ac_cv_func_remove=no"
5320 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5321 echo "$ac_t""yes" 1>&6
5324 echo "$ac_t""no" 1>&6
5327 if test $ac_cv_func_remove = no; then
5329 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5330 echo "configure:5331: checking for remove in -lposix" >&5
5331 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5333 xe_check_libs=" -lposix "
5334 cat > conftest.$ac_ext <<EOF
5335 #line 5336 "configure"
5336 #include "confdefs.h"
5337 /* Override any gcc2 internal prototype to avoid an error. */
5338 /* We use char because int might match the return type of a gcc2
5339 builtin and then its argument prototype would still apply. */
5346 if { (eval echo configure:5347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5348 eval "ac_cv_lib_$ac_lib_var=yes"
5350 echo "configure: failed program was:" >&5
5351 cat conftest.$ac_ext >&5
5353 eval "ac_cv_lib_$ac_lib_var=no"
5358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5359 echo "$ac_t""yes" 1>&6
5360 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5362 echo "$ac_t""no" 1>&6
5368 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5369 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5370 echo "configure:5371: checking for shmat" >&5
5372 cat > conftest.$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5375 /* System header to define __stub macros and hopefully few prototypes,
5376 which can conflict with char shmat(); below. */
5378 /* Override any gcc2 internal prototype to avoid an error. */
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5385 /* The GNU C library defines this for functions which it implements
5386 to always fail with ENOSYS. Some functions are actually named
5387 something starting with __ and the normal name is an alias. */
5388 #if defined (__stub_shmat) || defined (__stub___shmat)
5396 if { (eval echo configure:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5398 eval "ac_cv_func_shmat=yes"
5400 echo "configure: failed program was:" >&5
5401 cat conftest.$ac_ext >&5
5403 eval "ac_cv_func_shmat=no"
5407 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5408 echo "$ac_t""yes" 1>&6
5411 echo "$ac_t""no" 1>&6
5414 if test $ac_cv_func_shmat = no; then
5416 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5417 echo "configure:5418: checking for shmat in -lipc" >&5
5418 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5420 xe_check_libs=" -lipc "
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5424 /* Override any gcc2 internal prototype to avoid an error. */
5425 /* We use char because int might match the return type of a gcc2
5426 builtin and then its argument prototype would still apply. */
5433 if { (eval echo configure:5434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5435 eval "ac_cv_lib_$ac_lib_var=yes"
5437 echo "configure: failed program was:" >&5
5438 cat conftest.$ac_ext >&5
5440 eval "ac_cv_lib_$ac_lib_var=no"
5445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5446 echo "$ac_t""yes" 1>&6
5447 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5449 echo "$ac_t""no" 1>&6
5456 # Check for libraries that X11R6 Xt/Xaw programs need.
5457 ac_save_LDFLAGS="$LDFLAGS"
5458 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5459 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5460 # check for ICE first), but we must link in the order -lSM -lICE or
5461 # we get undefined symbols. So assume we have SM if we have ICE.
5462 # These have to be linked with before -lX11, unlike the other
5463 # libraries we check for below, so use a different variable.
5464 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5466 xe_msg_checking="for IceConnectionNumber in -lICE"
5467 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5468 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5469 echo "configure:5470: checking "$xe_msg_checking"" >&5
5470 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5472 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5473 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure"
5475 #include "confdefs.h"
5476 /* Override any gcc2 internal prototype to avoid an error. */
5477 /* We use char because int might match the return type of a gcc2
5478 builtin and then its argument prototype would still apply. */
5479 char IceConnectionNumber();
5482 IceConnectionNumber()
5485 if { (eval echo configure:5486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5487 eval "ac_cv_lib_$ac_lib_var=yes"
5489 echo "configure: failed program was:" >&5
5490 cat conftest.$ac_ext >&5
5492 eval "ac_cv_lib_$ac_lib_var=no"
5497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5498 echo "$ac_t""yes" 1>&6
5499 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5501 echo "$ac_t""no" 1>&6
5505 LDFLAGS="$ac_save_LDFLAGS"
5508 # Autoconf claims to find X library and include dirs for us.
5509 if test "$no_x" = "yes"
5510 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5511 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5516 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5517 no ) window_system=none HAVE_X_WINDOWS=no ;;
5520 if test "$with_x11" = "yes"; then
5521 { test "$extra_verbose" = "yes" && cat << \EOF
5522 Defining HAVE_X_WINDOWS
5524 cat >> confdefs.h <<\EOF
5525 #define HAVE_X_WINDOWS 1
5529 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5530 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5532 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5533 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5534 if test -d "$lib_dir" -a -d "$inc_dir"; then
5535 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5536 x_libraries="$lib_dir $x_libraries"
5537 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5539 case "$x_includes" in "$inc_dir"* ) ;; *)
5540 x_includes="$inc_dir $x_includes"
5541 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5546 for rel in "X11R6" "X11R5" "X11R4"; do
5547 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5548 if test -d "$lib_dir" -a -d "$inc_dir"; then
5549 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5550 x_libraries="$x_libraries $lib_dir"
5551 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5553 case "$x_includes" in "$inc_dir"* ) ;; *)
5554 x_includes="$x_includes $inc_dir"
5555 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5560 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
5562 ld_switch_x_site="$X_LIBS"
5565 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5566 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5567 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5569 runpath="" runpath_dirs=""
5570 if test -n "$LD_RUN_PATH"; then
5571 runpath="$LD_RUN_PATH"
5572 elif test "$GCC" = "yes"; then
5573 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5574 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5575 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5576 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5577 case "$arg" in P,* | -L* | -R* )
5578 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5580 xe_runpath_dir="$dir"
5581 test "$xe_runpath_dir" != "/lib" -a \
5582 "$xe_runpath_dir" != "/usr/lib" -a \
5583 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5584 eval "$xe_add_unique_runpath_dir"
5589 ld_switch_run="$ld_switch_run_save"
5592 for arg in $ld_switch_site $ld_switch_x_site; do
5593 case "$arg" in -L*) {
5594 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5595 test "$xe_runpath_dir" != "/lib" -a \
5596 "$xe_runpath_dir" != "/usr/lib" -a \
5597 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5598 eval "$xe_add_unique_runpath_dir"
5601 if test "$opsys $need_motif" = "sol2 yes"; then
5602 xe_runpath_dir="/opt/SUNWdt/lib";
5603 eval "$xe_add_unique_runpath_dir";
5606 if test -n "$runpath"; then
5607 ld_switch_run="${dash_r}${runpath}"
5609 if test "$GCC" = "yes"; then
5610 set x $ld_switch_run; shift; ld_switch_run=""
5611 while test -n "$1"; do
5613 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5614 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5616 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5621 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5626 if test "$extra_verbose" = "yes"; then
5627 echo; echo "X11 compilation variables:"
5628 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5633 if test "$x_includes" != NONE; then
5634 for i in $x_includes; do
5635 if test -d "$i/bitmaps"; then
5636 bitmapdirs="$i/bitmaps:$bitmapdirs"
5638 if test -d "$i/X11/bitmaps"; then
5639 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5642 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5644 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5645 Defining BITMAPDIR = "$bitmapdirs"
5647 cat >> confdefs.h <<EOF
5648 #define BITMAPDIR "$bitmapdirs"
5653 echo "checking for X defines extracted by xmkmf" 1>&6
5654 echo "configure:5655: checking for X defines extracted by xmkmf" >&5
5656 if mkdir conftestdir; then
5658 cat > Imakefile <<'EOF'
5660 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5662 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5663 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5664 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5668 for word in $xmkmf_defines; do
5671 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5672 { test "$extra_verbose" = "yes" && cat << EOF
5675 cat >> confdefs.h <<EOF
5684 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5685 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5686 echo "configure:5687: checking for X11/Intrinsic.h" >&5
5688 cat > conftest.$ac_ext <<EOF
5689 #line 5690 "configure"
5690 #include "confdefs.h"
5691 #include <X11/Intrinsic.h>
5693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5694 { (eval echo configure:5695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5696 if test -z "$ac_err"; then
5698 eval "ac_cv_header_$ac_safe=yes"
5701 echo "configure: failed program was:" >&5
5702 cat conftest.$ac_ext >&5
5704 eval "ac_cv_header_$ac_safe=no"
5707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5708 echo "$ac_t""yes" 1>&6
5711 echo "$ac_t""no" 1>&6
5712 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5717 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5718 echo "configure:5719: checking for XOpenDisplay in -lX11" >&5
5719 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5721 xe_check_libs=" -lX11 "
5722 cat > conftest.$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5725 /* Override any gcc2 internal prototype to avoid an error. */
5726 /* We use char because int might match the return type of a gcc2
5727 builtin and then its argument prototype would still apply. */
5728 char XOpenDisplay();
5734 if { (eval echo configure:5735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5736 eval "ac_cv_lib_$ac_lib_var=yes"
5738 echo "configure: failed program was:" >&5
5739 cat conftest.$ac_ext >&5
5741 eval "ac_cv_lib_$ac_lib_var=no"
5746 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5747 echo "$ac_t""yes" 1>&6
5750 echo "$ac_t""no" 1>&6
5754 if test "$have_lib_x11" != "yes"; then
5756 xe_msg_checking="for XGetFontProperty in -lX11"
5757 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5758 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5759 echo "configure:5760: checking "$xe_msg_checking"" >&5
5760 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5762 xe_check_libs=" -lX11 -b i486-linuxaout"
5763 cat > conftest.$ac_ext <<EOF
5764 #line 5765 "configure"
5765 #include "confdefs.h"
5766 /* Override any gcc2 internal prototype to avoid an error. */
5767 /* We use char because int might match the return type of a gcc2
5768 builtin and then its argument prototype would still apply. */
5769 char XGetFontProperty();
5775 if { (eval echo configure:5776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5777 eval "ac_cv_lib_$ac_lib_var=yes"
5779 echo "configure: failed program was:" >&5
5780 cat conftest.$ac_ext >&5
5782 eval "ac_cv_lib_$ac_lib_var=no"
5787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5788 echo "$ac_t""yes" 1>&6
5789 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5791 echo "$ac_t""no" 1>&6
5792 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5798 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5801 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5802 echo "configure:5803: checking for XShapeSelectInput in -lXext" >&5
5803 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5805 xe_check_libs=" -lXext "
5806 cat > conftest.$ac_ext <<EOF
5807 #line 5808 "configure"
5808 #include "confdefs.h"
5809 /* Override any gcc2 internal prototype to avoid an error. */
5810 /* We use char because int might match the return type of a gcc2
5811 builtin and then its argument prototype would still apply. */
5812 char XShapeSelectInput();
5818 if { (eval echo configure:5819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5820 eval "ac_cv_lib_$ac_lib_var=yes"
5822 echo "configure: failed program was:" >&5
5823 cat conftest.$ac_ext >&5
5825 eval "ac_cv_lib_$ac_lib_var=no"
5830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5831 echo "$ac_t""yes" 1>&6
5832 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5834 echo "$ac_t""no" 1>&6
5840 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5841 echo "configure:5842: checking for XtOpenDisplay in -lXt" >&5
5842 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5844 xe_check_libs=" -lXt "
5845 cat > conftest.$ac_ext <<EOF
5846 #line 5847 "configure"
5847 #include "confdefs.h"
5848 /* Override any gcc2 internal prototype to avoid an error. */
5849 /* We use char because int might match the return type of a gcc2
5850 builtin and then its argument prototype would still apply. */
5851 char XtOpenDisplay();
5857 if { (eval echo configure:5858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5859 eval "ac_cv_lib_$ac_lib_var=yes"
5861 echo "configure: failed program was:" >&5
5862 cat conftest.$ac_ext >&5
5864 eval "ac_cv_lib_$ac_lib_var=no"
5869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5870 echo "$ac_t""yes" 1>&6
5871 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5873 echo "$ac_t""no" 1>&6
5874 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5879 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5880 echo "configure:5881: checking the version of X11 being used" >&5
5881 cat > conftest.$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5884 #include <X11/Intrinsic.h>
5885 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5887 if { (eval echo configure:5888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5889 ./conftest foobar; x11_release=$?
5892 echo "configure: failed program was:" >&5
5893 cat conftest.$ac_ext >&5
5898 echo "$ac_t""R${x11_release}" 1>&6
5899 { test "$extra_verbose" = "yes" && cat << EOF
5900 Defining THIS_IS_X11R${x11_release}
5902 cat >> confdefs.h <<EOF
5903 #define THIS_IS_X11R${x11_release} 1
5908 for ac_hdr in X11/Xlocale.h
5910 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5912 echo "configure:5913: checking for $ac_hdr" >&5
5914 cat > conftest.$ac_ext <<EOF
5915 #line 5916 "configure"
5916 #include "confdefs.h"
5919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5920 { (eval echo configure:5921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5922 if test -z "$ac_err"; then
5924 eval "ac_cv_header_$ac_safe=yes"
5927 echo "configure: failed program was:" >&5
5928 cat conftest.$ac_ext >&5
5930 eval "ac_cv_header_$ac_safe=no"
5933 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5934 echo "$ac_t""yes" 1>&6
5935 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5936 { test "$extra_verbose" = "yes" && cat << EOF
5939 cat >> confdefs.h <<EOF
5940 #define $ac_tr_hdr 1
5945 echo "$ac_t""no" 1>&6
5950 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5951 echo "configure:5952: checking for XFree86" >&5
5952 if test -d "/usr/X386/include" -o \
5953 -f "/etc/XF86Config" -o \
5954 -f "/etc/X11/XF86Config" -o \
5955 -f "/usr/X11R6/lib/X11/XF86Config"; then
5956 echo "$ac_t""yes" 1>&6
5957 { test "$extra_verbose" = "yes" && cat << \EOF
5958 Defining HAVE_XFREE386
5960 cat >> confdefs.h <<\EOF
5961 #define HAVE_XFREE386 1
5966 echo "$ac_t""no" 1>&6
5969 test -z "$with_xmu" && {
5970 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5971 echo "configure:5972: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5972 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5974 xe_check_libs=" -lXmu "
5975 cat > conftest.$ac_ext <<EOF
5976 #line 5977 "configure"
5977 #include "confdefs.h"
5978 /* Override any gcc2 internal prototype to avoid an error. */
5979 /* We use char because int might match the return type of a gcc2
5980 builtin and then its argument prototype would still apply. */
5981 char XmuReadBitmapDataFromFile();
5984 XmuReadBitmapDataFromFile()
5987 if { (eval echo configure:5988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5989 eval "ac_cv_lib_$ac_lib_var=yes"
5991 echo "configure: failed program was:" >&5
5992 cat conftest.$ac_ext >&5
5994 eval "ac_cv_lib_$ac_lib_var=no"
5999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6000 echo "$ac_t""yes" 1>&6
6003 echo "$ac_t""no" 1>&6
6008 if test "$with_xmu" = "no"; then
6009 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6010 echo " xemacs will be linked with \"xmu.o\""
6013 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6014 { test "$extra_verbose" = "yes" && cat << \EOF
6017 cat >> confdefs.h <<\EOF
6025 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6026 echo "configure:6027: checking for main in -lXbsd" >&5
6027 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6029 xe_check_libs=" -lXbsd "
6030 cat > conftest.$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6038 if { (eval echo configure:6039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6040 eval "ac_cv_lib_$ac_lib_var=yes"
6042 echo "configure: failed program was:" >&5
6043 cat conftest.$ac_ext >&5
6045 eval "ac_cv_lib_$ac_lib_var=no"
6050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6051 echo "$ac_t""yes" 1>&6
6052 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6054 echo "$ac_t""no" 1>&6
6059 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6060 if test "$GCC" = "yes"; then
6061 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6062 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6065 "xlc" ) CC="xlc_r" ;;
6066 "xlC" ) CC="xlC_r" ;;
6073 if test "$with_msw" != "no"; then
6074 echo "checking for MS-Windows" 1>&6
6075 echo "configure:6076: checking for MS-Windows" >&5
6077 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6078 echo "configure:6079: checking for main in -lgdi32" >&5
6079 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6081 xe_check_libs=" -lgdi32 "
6082 cat > conftest.$ac_ext <<EOF
6083 #line 6084 "configure"
6084 #include "confdefs.h"
6090 if { (eval echo configure:6091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6092 eval "ac_cv_lib_$ac_lib_var=yes"
6094 echo "configure: failed program was:" >&5
6095 cat conftest.$ac_ext >&5
6097 eval "ac_cv_lib_$ac_lib_var=no"
6102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6103 echo "$ac_t""yes" 1>&6
6106 echo "$ac_t""no" 1>&6
6110 if test "$with_msw" = "yes"; then
6111 { test "$extra_verbose" = "yes" && cat << \EOF
6112 Defining HAVE_MS_WINDOWS
6114 cat >> confdefs.h <<\EOF
6115 #define HAVE_MS_WINDOWS 1
6119 install_pp="$blddir/lib-src/installexe.sh"
6120 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
6121 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6122 if test "$window_system" != x11; then
6124 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6125 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6126 echo " xemacs will be linked with \"scrollbar-msw.o\""
6128 test "$with_menubars" != "no" && with_menubars=msw \
6129 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6130 echo " xemacs will be linked with \"menubar-msw.o\""
6132 test "$with_toolbars" != "no" && with_toolbars=msw \
6133 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6134 echo " xemacs will be linked with \"toolbar-msw.o\""
6136 test "$with_dialogs" != "no" && with_dialogs=msw \
6137 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6138 echo " xemacs will be linked with \"dialog-msw.o\""
6140 test "$with_widgets" != "no" && with_widgets=msw
6142 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6143 echo " xemacs will be linked with \"scrollbar-msw.o\""
6145 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6146 echo " xemacs will be linked with \"menubar-msw.o\""
6148 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6149 echo " xemacs will be linked with \"toolbar-msw.o\""
6151 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6152 echo " xemacs will be linked with \"dialog-msw.o\""
6155 cat > conftest.$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6159 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6161 if { (eval echo configure:6162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6163 { test "$extra_verbose" = "yes" && cat << \EOF
6164 Defining HAVE_MSG_SELECT
6166 cat >> confdefs.h <<\EOF
6167 #define HAVE_MSG_SELECT 1
6173 echo "configure: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6178 with_file_coding=yes
6179 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
6180 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\""
6187 test -z "$window_system" && window_system="none"
6189 if test "$window_system" = "none"; then
6190 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6192 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6193 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6195 eval "with_${feature}=no"
6198 test -z "$with_toolbars" && with_toolbars=yes
6201 if test "$with_msw" != "yes"; then
6202 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6204 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6205 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6207 eval "with_${feature}=no"
6213 if test "$with_x11" != "yes"; then
6214 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
6216 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6217 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6219 eval "with_${feature}=no"
6225 case "$window_system" in
6226 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6227 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6228 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6231 case "$x_libraries" in *X11R4* )
6232 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6233 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6236 echo "checking for WM_COMMAND option" 1>&6
6237 echo "configure:6238: checking for WM_COMMAND option" >&5;
6238 if test "$with_wmcommand" != "no"; then
6239 { test "$extra_verbose" = "yes" && cat << \EOF
6240 Defining HAVE_WMCOMMAND
6242 cat >> confdefs.h <<\EOF
6243 #define HAVE_WMCOMMAND 1
6249 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6250 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6251 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6252 echo "configure:6253: checking for X11/Xauth.h" >&5
6254 cat > conftest.$ac_ext <<EOF
6255 #line 6256 "configure"
6256 #include "confdefs.h"
6257 #include <X11/Xauth.h>
6259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6260 { (eval echo configure:6261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6262 if test -z "$ac_err"; then
6264 eval "ac_cv_header_$ac_safe=yes"
6267 echo "configure: failed program was:" >&5
6268 cat conftest.$ac_ext >&5
6270 eval "ac_cv_header_$ac_safe=no"
6273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6274 echo "$ac_t""yes" 1>&6
6277 echo "$ac_t""no" 1>&6
6281 test -z "$with_xauth" && {
6282 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6283 echo "configure:6284: checking for XauGetAuthByAddr in -lXau" >&5
6284 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6286 xe_check_libs=" -lXau "
6287 cat > conftest.$ac_ext <<EOF
6288 #line 6289 "configure"
6289 #include "confdefs.h"
6290 /* Override any gcc2 internal prototype to avoid an error. */
6291 /* We use char because int might match the return type of a gcc2
6292 builtin and then its argument prototype would still apply. */
6293 char XauGetAuthByAddr();
6299 if { (eval echo configure:6300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6301 eval "ac_cv_lib_$ac_lib_var=yes"
6303 echo "configure: failed program was:" >&5
6304 cat conftest.$ac_ext >&5
6306 eval "ac_cv_lib_$ac_lib_var=no"
6311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6312 echo "$ac_t""yes" 1>&6
6315 echo "$ac_t""no" 1>&6
6320 test -z "$with_xauth" && with_xauth=yes
6321 if test "$with_xauth" = "yes"; then
6322 { test "$extra_verbose" = "yes" && cat << \EOF
6325 cat >> confdefs.h <<\EOF
6326 #define HAVE_XAUTH 1
6332 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
6340 if test "$with_tooltalk" != "no" ; then
6341 for dir in "" "Tt/" "desktop/" ; do
6342 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6343 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6344 echo "configure:6345: checking for ${dir}tt_c.h" >&5
6346 cat > conftest.$ac_ext <<EOF
6347 #line 6348 "configure"
6348 #include "confdefs.h"
6349 #include <${dir}tt_c.h>
6351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6352 { (eval echo configure:6353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6354 if test -z "$ac_err"; then
6356 eval "ac_cv_header_$ac_safe=yes"
6359 echo "configure: failed program was:" >&5
6360 cat conftest.$ac_ext >&5
6362 eval "ac_cv_header_$ac_safe=no"
6365 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6366 echo "$ac_t""yes" 1>&6
6367 tt_c_h_path="${dir}tt_c.h"; break
6369 echo "$ac_t""no" 1>&6
6373 if test -z "$tt_c_h_path"; then
6374 if test "$with_tooltalk" = "yes"; then
6375 (echo "$progname: Usage error:"
6376 echo " " "Unable to find required tooltalk header files."
6377 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6382 if test "$with_tooltalk" != "no" ; then
6383 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6385 xe_msg_checking="for tt_message_create in -ltt"
6386 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6387 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6388 echo "configure:6389: checking "$xe_msg_checking"" >&5
6389 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6391 xe_check_libs=" -ltt $extra_libs"
6392 cat > conftest.$ac_ext <<EOF
6393 #line 6394 "configure"
6394 #include "confdefs.h"
6395 /* Override any gcc2 internal prototype to avoid an error. */
6396 /* We use char because int might match the return type of a gcc2
6397 builtin and then its argument prototype would still apply. */
6398 char tt_message_create();
6404 if { (eval echo configure:6405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6406 eval "ac_cv_lib_$ac_lib_var=yes"
6408 echo "configure: failed program was:" >&5
6409 cat conftest.$ac_ext >&5
6411 eval "ac_cv_lib_$ac_lib_var=no"
6416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6417 echo "$ac_t""yes" 1>&6
6418 tt_libs="-ltt $extra_libs"; break
6420 echo "$ac_t""no" 1>&6
6426 if test -z "$tt_libs"; then
6427 if test "$with_tooltalk" = "yes"; then
6428 (echo "$progname: Usage error:"
6429 echo " " "Unable to find required tooltalk libraries."
6430 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6435 test -z "$with_tooltalk" && with_tooltalk=yes
6436 if test "$with_tooltalk" = "yes"; then
6437 { test "$extra_verbose" = "yes" && cat << \EOF
6440 cat >> confdefs.h <<\EOF
6445 { test "$extra_verbose" = "yes" && cat << EOF
6446 Defining TT_C_H_PATH = "$tt_c_h_path"
6448 cat >> confdefs.h <<EOF
6449 #define TT_C_H_PATH "$tt_c_h_path"
6453 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6454 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6455 echo " xemacs will be linked with \"tooltalk.o\""
6459 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6460 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6461 echo "configure:6462: checking for Dt/Dt.h" >&5
6463 cat > conftest.$ac_ext <<EOF
6464 #line 6465 "configure"
6465 #include "confdefs.h"
6468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6469 { (eval echo configure:6470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6470 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6471 if test -z "$ac_err"; then
6473 eval "ac_cv_header_$ac_safe=yes"
6476 echo "configure: failed program was:" >&5
6477 cat conftest.$ac_ext >&5
6479 eval "ac_cv_header_$ac_safe=no"
6482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6483 echo "$ac_t""yes" 1>&6
6486 echo "$ac_t""no" 1>&6
6490 test -z "$with_cde" && {
6491 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6492 echo "configure:6493: checking for DtDndDragStart in -lDtSvc" >&5
6493 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6495 xe_check_libs=" -lDtSvc "
6496 cat > conftest.$ac_ext <<EOF
6497 #line 6498 "configure"
6498 #include "confdefs.h"
6499 /* Override any gcc2 internal prototype to avoid an error. */
6500 /* We use char because int might match the return type of a gcc2
6501 builtin and then its argument prototype would still apply. */
6502 char DtDndDragStart();
6508 if { (eval echo configure:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6510 eval "ac_cv_lib_$ac_lib_var=yes"
6512 echo "configure: failed program was:" >&5
6513 cat conftest.$ac_ext >&5
6515 eval "ac_cv_lib_$ac_lib_var=no"
6520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6521 echo "$ac_t""yes" 1>&6
6524 echo "$ac_t""no" 1>&6
6529 test -z "$with_cde" && with_cde=yes
6530 if test "$with_dragndrop" = no; then
6531 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6534 if test "$with_cde" = "yes" ; then
6535 { test "$extra_verbose" = "yes" && cat << \EOF
6538 cat >> confdefs.h <<\EOF
6543 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6544 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6545 with_tooltalk=yes # CDE requires Tooltalk
6546 need_motif=yes # CDE requires Motif
6549 test "$window_system" != "x11" && with_offix=no
6550 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6551 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6554 if test "$with_dragndrop" = no; then
6555 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6558 if test "$with_cde" = yes; then
6559 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6562 test -z "$with_offix" && with_offix=no
6563 if test "$with_offix" = "yes"; then
6564 { test "$extra_verbose" = "yes" && cat << \EOF
6565 Defining HAVE_OFFIX_DND
6567 cat >> confdefs.h <<\EOF
6568 #define HAVE_OFFIX_DND 1
6572 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6573 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6576 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6577 echo "configure:6578: checking if drag and drop API is needed" >&5
6578 if test "$with_dragndrop" != "no" ; then
6579 if test -n "$dragndrop_proto" ; then
6581 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6582 { test "$extra_verbose" = "yes" && cat << \EOF
6583 Defining HAVE_DRAGNDROP
6585 cat >> confdefs.h <<\EOF
6586 #define HAVE_DRAGNDROP 1
6590 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6593 echo "$ac_t""no" 1>&6
6597 echo "checking for LDAP" 1>&6
6598 echo "configure:6599: checking for LDAP" >&5
6599 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6600 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6601 echo "configure:6602: checking for ldap.h" >&5
6603 cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6609 { (eval echo configure:6610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6611 if test -z "$ac_err"; then
6613 eval "ac_cv_header_$ac_safe=yes"
6616 echo "configure: failed program was:" >&5
6617 cat conftest.$ac_ext >&5
6619 eval "ac_cv_header_$ac_safe=no"
6622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6623 echo "$ac_t""yes" 1>&6
6626 echo "$ac_t""no" 1>&6
6630 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6631 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6632 echo "configure:6633: checking for lber.h" >&5
6634 cat > conftest.$ac_ext <<EOF
6635 #line 6636 "configure"
6636 #include "confdefs.h"
6639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6640 { (eval echo configure:6641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6642 if test -z "$ac_err"; then
6644 eval "ac_cv_header_$ac_safe=yes"
6647 echo "configure: failed program was:" >&5
6648 cat conftest.$ac_ext >&5
6650 eval "ac_cv_header_$ac_safe=no"
6653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6654 echo "$ac_t""yes" 1>&6
6657 echo "$ac_t""no" 1>&6
6661 if test "$with_ldap" != "no"; then
6663 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6664 echo "configure:6665: checking for ldap_search in -lldap" >&5
6665 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6667 xe_check_libs=" -lldap "
6668 cat > conftest.$ac_ext <<EOF
6669 #line 6670 "configure"
6670 #include "confdefs.h"
6671 /* Override any gcc2 internal prototype to avoid an error. */
6672 /* We use char because int might match the return type of a gcc2
6673 builtin and then its argument prototype would still apply. */
6680 if { (eval echo configure:6681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6682 eval "ac_cv_lib_$ac_lib_var=yes"
6684 echo "configure: failed program was:" >&5
6685 cat conftest.$ac_ext >&5
6687 eval "ac_cv_lib_$ac_lib_var=no"
6692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6693 echo "$ac_t""yes" 1>&6
6694 with_ldap_nolber=yes
6696 echo "$ac_t""no" 1>&6
6701 test "$with_ldap_nolber" = "no" && {
6702 xe_msg_checking="for ldap_open in -lldap"
6703 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6704 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6705 echo "configure:6706: checking "$xe_msg_checking"" >&5
6706 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6708 xe_check_libs=" -lldap -llber"
6709 cat > conftest.$ac_ext <<EOF
6710 #line 6711 "configure"
6711 #include "confdefs.h"
6712 /* Override any gcc2 internal prototype to avoid an error. */
6713 /* We use char because int might match the return type of a gcc2
6714 builtin and then its argument prototype would still apply. */
6721 if { (eval echo configure:6722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6723 eval "ac_cv_lib_$ac_lib_var=yes"
6725 echo "configure: failed program was:" >&5
6726 cat conftest.$ac_ext >&5
6728 eval "ac_cv_lib_$ac_lib_var=no"
6733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6734 echo "$ac_t""yes" 1>&6
6737 echo "$ac_t""no" 1>&6
6742 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
6743 xe_msg_checking="for ldap_open in -lldap"
6744 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
6745 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6746 echo "configure:6747: checking "$xe_msg_checking"" >&5
6747 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6749 xe_check_libs=" -lldap -llber -lkrb"
6750 cat > conftest.$ac_ext <<EOF
6751 #line 6752 "configure"
6752 #include "confdefs.h"
6753 /* Override any gcc2 internal prototype to avoid an error. */
6754 /* We use char because int might match the return type of a gcc2
6755 builtin and then its argument prototype would still apply. */
6762 if { (eval echo configure:6763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6764 eval "ac_cv_lib_$ac_lib_var=yes"
6766 echo "configure: failed program was:" >&5
6767 cat conftest.$ac_ext >&5
6769 eval "ac_cv_lib_$ac_lib_var=no"
6774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6775 echo "$ac_t""yes" 1>&6
6778 echo "$ac_t""no" 1>&6
6783 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
6784 xe_msg_checking="for ldap_open in -lldap"
6785 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
6786 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6787 echo "configure:6788: checking "$xe_msg_checking"" >&5
6788 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6790 xe_check_libs=" -lldap -llber -lkrb -ldes"
6791 cat > conftest.$ac_ext <<EOF
6792 #line 6793 "configure"
6793 #include "confdefs.h"
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. */
6803 if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6805 eval "ac_cv_lib_$ac_lib_var=yes"
6807 echo "configure: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6810 eval "ac_cv_lib_$ac_lib_var=no"
6815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6816 echo "$ac_t""yes" 1>&6
6817 with_ldap_krbdes=yes
6819 echo "$ac_t""no" 1>&6
6824 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
6826 if test "$with_ldap" = "yes"; then
6827 { test "$extra_verbose" = "yes" && cat << \EOF
6830 cat >> confdefs.h <<\EOF
6835 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6836 echo " xemacs will be linked with \"eldap.o\""
6838 if test "$with_ldap_nolber" = "yes" ; then
6839 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6841 if test "$with_ldap_krb" = "yes" ; then
6842 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6844 if test "$with_ldap_krbdes" = "yes" ; then
6845 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
6846 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6848 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6849 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6851 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
6853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6854 echo "configure:6855: checking for $ac_func" >&5
6856 cat > conftest.$ac_ext <<EOF
6857 #line 6858 "configure"
6858 #include "confdefs.h"
6859 /* System header to define __stub macros and hopefully few prototypes,
6860 which can conflict with char $ac_func(); below. */
6862 /* Override any gcc2 internal prototype to avoid an error. */
6863 /* We use char because int might match the return type of a gcc2
6864 builtin and then its argument prototype would still apply. */
6869 /* The GNU C library defines this for functions which it implements
6870 to always fail with ENOSYS. Some functions are actually named
6871 something starting with __ and the normal name is an alias. */
6872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6880 if { (eval echo configure:6881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6882 eval "ac_cv_func_$ac_func=yes"
6884 echo "configure: failed program was:" >&5
6885 cat conftest.$ac_ext >&5
6887 eval "ac_cv_func_$ac_func=no"
6891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6892 echo "$ac_t""yes" 1>&6
6893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6894 { test "$extra_verbose" = "yes" && cat << EOF
6895 Defining $ac_tr_func
6897 cat >> confdefs.h <<EOF
6898 #define $ac_tr_func 1
6903 echo "$ac_t""no" 1>&6
6910 if test "$window_system" != "none"; then
6911 echo "checking for graphics libraries" 1>&6
6912 echo "configure:6913: checking for graphics libraries" >&5
6915 if test -z "$with_xpm"; then
6916 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6917 echo "configure:6918: checking for Xpm - no older than 3.4f" >&5
6919 cat > conftest.$ac_ext <<EOF
6920 #line 6921 "configure"
6921 #include "confdefs.h"
6922 #include <X11/xpm.h>
6923 int main(int c, char **v) {
6925 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6926 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6928 if { (eval echo configure:6929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6930 ./conftest dummy_arg; xpm_status=$?;
6931 if test "$xpm_status" = "0"; then
6935 if test "$xpm_status" = "1"; then
6936 xpm_problem="Xpm library version and header file version don't match!"
6937 elif test "$xpm_status" = "2"; then
6938 xpm_problem="Xpm library version is too old!"
6940 xpm_problem="Internal xpm detection logic error!"
6943 *** WARNING *** $xpm_problem
6944 I'm not touching that with a 10-foot pole!
6945 If you really want to use the installed version of Xpm, rerun
6946 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
6950 echo "configure: failed program was:" >&5
6951 cat conftest.$ac_ext >&5
6957 echo "$ac_t""$with_xpm" 1>&6
6959 if test "$with_xpm" = "yes"; then
6960 { test "$extra_verbose" = "yes" && cat << \EOF
6963 cat >> confdefs.h <<\EOF
6968 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6969 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6970 echo "configure:6971: checking for \"FOR_MSW\" xpm" >&5
6972 cat > conftest.$ac_ext <<EOF
6973 #line 6974 "configure"
6974 #include "confdefs.h"
6977 XpmCreatePixmapFromData()
6980 if { (eval echo configure:6981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6984 echo "configure: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6991 echo "$ac_t""$xpm_for_msw" 1>&6
6992 if test "$xpm_for_msw" = "yes"; then
6993 { test "$extra_verbose" = "yes" && cat << \EOF
6996 cat >> confdefs.h <<\EOF
7004 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7005 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7006 echo "configure:7007: checking for compface.h" >&5
7008 cat > conftest.$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7011 #include <compface.h>
7013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7014 { (eval echo configure:7015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7016 if test -z "$ac_err"; then
7018 eval "ac_cv_header_$ac_safe=yes"
7021 echo "configure: failed program was:" >&5
7022 cat conftest.$ac_ext >&5
7024 eval "ac_cv_header_$ac_safe=no"
7027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7028 echo "$ac_t""yes" 1>&6
7031 echo "$ac_t""no" 1>&6
7035 test -z "$with_xface" && {
7036 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7037 echo "configure:7038: checking for UnGenFace in -lcompface" >&5
7038 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7040 xe_check_libs=" -lcompface "
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
7074 test -z "$with_xface" && with_xface=yes
7075 if test "$with_xface" = "yes"; then
7076 { test "$extra_verbose" = "yes" && cat << \EOF
7079 cat >> confdefs.h <<\EOF
7080 #define HAVE_XFACE 1
7084 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7087 if test "$with_gif" != "no"; then
7089 { test "$extra_verbose" = "yes" && cat << \EOF
7092 cat >> confdefs.h <<\EOF
7097 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7098 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7102 if test "$with_png $with_tiff" != "no no"; then
7104 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7105 echo "configure:7106: checking for inflate in -lc" >&5
7106 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7108 xe_check_libs=" -lc "
7109 cat > conftest.$ac_ext <<EOF
7110 #line 7111 "configure"
7111 #include "confdefs.h"
7112 /* Override any gcc2 internal prototype to avoid an error. */
7113 /* We use char because int might match the return type of a gcc2
7114 builtin and then its argument prototype would still apply. */
7121 if { (eval echo configure:7122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7123 eval "ac_cv_lib_$ac_lib_var=yes"
7125 echo "configure: failed program was:" >&5
7126 cat conftest.$ac_ext >&5
7128 eval "ac_cv_lib_$ac_lib_var=no"
7133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7134 echo "$ac_t""yes" 1>&6
7137 echo "$ac_t""no" 1>&6
7139 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7140 echo "configure:7141: checking for inflate in -lz" >&5
7141 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7143 xe_check_libs=" -lz "
7144 cat > conftest.$ac_ext <<EOF
7145 #line 7146 "configure"
7146 #include "confdefs.h"
7147 /* Override any gcc2 internal prototype to avoid an error. */
7148 /* We use char because int might match the return type of a gcc2
7149 builtin and then its argument prototype would still apply. */
7156 if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7158 eval "ac_cv_lib_$ac_lib_var=yes"
7160 echo "configure: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7163 eval "ac_cv_lib_$ac_lib_var=no"
7168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7169 echo "$ac_t""yes" 1>&6
7170 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7172 echo "$ac_t""no" 1>&6
7174 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7175 echo "configure:7176: checking for inflate in -lgz" >&5
7176 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7178 xe_check_libs=" -lgz "
7179 cat > conftest.$ac_ext <<EOF
7180 #line 7181 "configure"
7181 #include "confdefs.h"
7182 /* Override any gcc2 internal prototype to avoid an error. */
7183 /* We use char because int might match the return type of a gcc2
7184 builtin and then its argument prototype would still apply. */
7191 if { (eval echo configure:7192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7193 eval "ac_cv_lib_$ac_lib_var=yes"
7195 echo "configure: failed program was:" >&5
7196 cat conftest.$ac_ext >&5
7198 eval "ac_cv_lib_$ac_lib_var=no"
7203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7204 echo "$ac_t""yes" 1>&6
7205 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7207 echo "$ac_t""no" 1>&6
7219 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7220 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7221 echo "configure:7222: checking for jpeglib.h" >&5
7223 cat > conftest.$ac_ext <<EOF
7224 #line 7225 "configure"
7225 #include "confdefs.h"
7226 #include <jpeglib.h>
7228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7229 { (eval echo configure:7230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7231 if test -z "$ac_err"; then
7233 eval "ac_cv_header_$ac_safe=yes"
7236 echo "configure: failed program was:" >&5
7237 cat conftest.$ac_ext >&5
7239 eval "ac_cv_header_$ac_safe=no"
7242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7243 echo "$ac_t""yes" 1>&6
7246 echo "$ac_t""no" 1>&6
7250 test -z "$with_jpeg" && {
7251 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7252 echo "configure:7253: checking for jpeg_destroy_decompress in -ljpeg" >&5
7253 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7255 xe_check_libs=" -ljpeg "
7256 cat > conftest.$ac_ext <<EOF
7257 #line 7258 "configure"
7258 #include "confdefs.h"
7259 /* Override any gcc2 internal prototype to avoid an error. */
7260 /* We use char because int might match the return type of a gcc2
7261 builtin and then its argument prototype would still apply. */
7262 char jpeg_destroy_decompress();
7265 jpeg_destroy_decompress()
7268 if { (eval echo configure:7269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7270 eval "ac_cv_lib_$ac_lib_var=yes"
7272 echo "configure: failed program was:" >&5
7273 cat conftest.$ac_ext >&5
7275 eval "ac_cv_lib_$ac_lib_var=no"
7280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7281 echo "$ac_t""yes" 1>&6
7284 echo "$ac_t""no" 1>&6
7289 test -z "$with_jpeg" && with_jpeg=yes
7290 if test "$with_jpeg" = "yes"; then
7291 { test "$extra_verbose" = "yes" && cat << \EOF
7294 cat >> confdefs.h <<\EOF
7299 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7303 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7304 echo "configure:7305: checking for pow" >&5
7306 cat > conftest.$ac_ext <<EOF
7307 #line 7308 "configure"
7308 #include "confdefs.h"
7309 /* System header to define __stub macros and hopefully few prototypes,
7310 which can conflict with char pow(); below. */
7312 /* Override any gcc2 internal prototype to avoid an error. */
7313 /* We use char because int might match the return type of a gcc2
7314 builtin and then its argument prototype would still apply. */
7319 /* The GNU C library defines this for functions which it implements
7320 to always fail with ENOSYS. Some functions are actually named
7321 something starting with __ and the normal name is an alias. */
7322 #if defined (__stub_pow) || defined (__stub___pow)
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_func_pow=yes"
7334 echo "configure: failed program was:" >&5
7335 cat conftest.$ac_ext >&5
7337 eval "ac_cv_func_pow=no"
7341 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7342 echo "$ac_t""yes" 1>&6
7345 echo "$ac_t""no" 1>&6
7349 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7350 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7351 echo "configure:7352: checking for png.h" >&5
7353 cat > conftest.$ac_ext <<EOF
7354 #line 7355 "configure"
7355 #include "confdefs.h"
7358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7359 { (eval echo configure:7360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7361 if test -z "$ac_err"; then
7363 eval "ac_cv_header_$ac_safe=yes"
7366 echo "configure: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7369 eval "ac_cv_header_$ac_safe=no"
7372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7373 echo "$ac_t""yes" 1>&6
7376 echo "$ac_t""no" 1>&6
7380 test -z "$with_png" && {
7381 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7382 echo "configure:7383: checking for png_read_image in -lpng" >&5
7383 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7385 xe_check_libs=" -lpng "
7386 cat > conftest.$ac_ext <<EOF
7387 #line 7388 "configure"
7388 #include "confdefs.h"
7389 /* Override any gcc2 internal prototype to avoid an error. */
7390 /* We use char because int might match the return type of a gcc2
7391 builtin and then its argument prototype would still apply. */
7392 char png_read_image();
7398 if { (eval echo configure:7399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7400 eval "ac_cv_lib_$ac_lib_var=yes"
7402 echo "configure: failed program was:" >&5
7403 cat conftest.$ac_ext >&5
7405 eval "ac_cv_lib_$ac_lib_var=no"
7410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7411 echo "$ac_t""yes" 1>&6
7414 echo "$ac_t""no" 1>&6
7419 if test -z "$with_png"; then
7420 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7421 echo "configure:7422: checking for workable png version information" >&5
7422 xe_check_libs="-lpng -lz"
7423 cat > conftest.$ac_ext <<EOF
7424 #line 7425 "configure"
7425 #include "confdefs.h"
7427 int main(int c, char **v) {
7428 if (c == 1) return 0;
7429 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7430 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7432 if { (eval echo configure:7433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7434 ./conftest dummy_arg; png_status=$?;
7435 if test "$png_status" = "0"; then
7439 if test "$png_status" = "1"; then
7440 png_problem="PNG library version and header file don't match!"
7441 elif test "$png_status" = "2"; then
7442 png_problem="PNG library version too old (pre 1.0.2)!"
7445 *** WARNING *** $png_problem
7446 I'm not touching that with a 10-foot pole!
7447 If you really want to use the installed version of libPNG, rerun
7448 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7452 echo "configure: failed program was:" >&5
7453 cat conftest.$ac_ext >&5
7459 echo "$ac_t""$with_png" 1>&6
7461 if test "$with_png" = "yes"; then
7462 { test "$extra_verbose" = "yes" && cat << \EOF
7465 cat >> confdefs.h <<\EOF
7470 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7473 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7474 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7475 echo "configure:7476: checking for tiffio.h" >&5
7477 cat > conftest.$ac_ext <<EOF
7478 #line 7479 "configure"
7479 #include "confdefs.h"
7482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7483 { (eval echo configure:7484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7485 if test -z "$ac_err"; then
7487 eval "ac_cv_header_$ac_safe=yes"
7490 echo "configure: failed program was:" >&5
7491 cat conftest.$ac_ext >&5
7493 eval "ac_cv_header_$ac_safe=no"
7496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7497 echo "$ac_t""yes" 1>&6
7500 echo "$ac_t""no" 1>&6
7504 test -z "$with_tiff" && {
7505 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7506 echo "configure:7507: checking for TIFFClientOpen in -ltiff" >&5
7507 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7509 xe_check_libs=" -ltiff "
7510 cat > conftest.$ac_ext <<EOF
7511 #line 7512 "configure"
7512 #include "confdefs.h"
7513 /* Override any gcc2 internal prototype to avoid an error. */
7514 /* We use char because int might match the return type of a gcc2
7515 builtin and then its argument prototype would still apply. */
7516 char TIFFClientOpen();
7522 if { (eval echo configure:7523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7524 eval "ac_cv_lib_$ac_lib_var=yes"
7526 echo "configure: failed program was:" >&5
7527 cat conftest.$ac_ext >&5
7529 eval "ac_cv_lib_$ac_lib_var=no"
7534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7535 echo "$ac_t""yes" 1>&6
7538 echo "$ac_t""no" 1>&6
7543 test -z "$with_tiff" && with_tiff=yes
7544 if test "$with_tiff" = "yes"; then
7545 { test "$extra_verbose" = "yes" && cat << \EOF
7548 cat >> confdefs.h <<\EOF
7553 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7558 if test "$with_x11" = "yes"; then
7560 echo "checking for X11 graphics libraries" 1>&6
7561 echo "configure:7562: checking for X11 graphics libraries" >&5
7563 echo "checking for the Athena widgets" 1>&6
7564 echo "configure:7565: checking for the Athena widgets" >&5
7566 case "$with_athena" in
7567 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
7568 "3d") athena_variant=Xaw3d athena_3d=yes ;;
7569 "next") athena_variant=neXtaw athena_3d=yes ;;
7570 "95") athena_variant=Xaw95 athena_3d=yes ;;
7571 "xpm") athena_variant=XawXpm athena_3d=yes ;;
7572 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
7575 if test "$athena_3d" = "no"; then
7577 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
7578 echo "configure:7579: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
7579 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7581 xe_check_libs=" -l$athena_variant "
7582 cat > conftest.$ac_ext <<EOF
7583 #line 7584 "configure"
7584 #include "confdefs.h"
7585 /* Override any gcc2 internal prototype to avoid an error. */
7586 /* We use char because int might match the return type of a gcc2
7587 builtin and then its argument prototype would still apply. */
7588 char XawScrollbarSetThumb();
7591 XawScrollbarSetThumb()
7594 if { (eval echo configure:7595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7596 eval "ac_cv_lib_$ac_lib_var=yes"
7598 echo "configure: failed program was:" >&5
7599 cat conftest.$ac_ext >&5
7601 eval "ac_cv_lib_$ac_lib_var=no"
7606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7607 echo "$ac_t""yes" 1>&6
7609 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
7610 echo "configure:7611: checking for threeDClassRec in -l$athena_variant" >&5
7611 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
7613 xe_check_libs=" -l$athena_variant "
7614 cat > conftest.$ac_ext <<EOF
7615 #line 7616 "configure"
7616 #include "confdefs.h"
7617 /* Override any gcc2 internal prototype to avoid an error. */
7618 /* We use char because int might match the return type of a gcc2
7619 builtin and then its argument prototype would still apply. */
7620 char threeDClassRec();
7626 if { (eval echo configure:7627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7628 eval "ac_cv_lib_$ac_lib_var=yes"
7630 echo "configure: failed program was:" >&5
7631 cat conftest.$ac_ext >&5
7633 eval "ac_cv_lib_$ac_lib_var=no"
7638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7639 echo "$ac_t""yes" 1>&6
7640 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
7642 echo "$ac_t""no" 1>&6
7643 athena_lib=$athena_variant
7649 echo "$ac_t""no" 1>&6
7650 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
7656 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
7657 echo "configure:7658: checking for threeDClassRec in -l$athena_variant" >&5
7658 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
7660 xe_check_libs=" -l$athena_variant "
7661 cat > conftest.$ac_ext <<EOF
7662 #line 7663 "configure"
7663 #include "confdefs.h"
7664 /* Override any gcc2 internal prototype to avoid an error. */
7665 /* We use char because int might match the return type of a gcc2
7666 builtin and then its argument prototype would still apply. */
7667 char threeDClassRec();
7673 if { (eval echo configure:7674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7675 eval "ac_cv_lib_$ac_lib_var=yes"
7677 echo "configure: failed program was:" >&5
7678 cat conftest.$ac_ext >&5
7680 eval "ac_cv_lib_$ac_lib_var=no"
7685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7686 echo "$ac_t""yes" 1>&6
7687 athena_lib=$athena_variant
7689 echo "$ac_t""no" 1>&6
7690 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
7691 echo "configure:7692: checking for threeDClassRec in -lXaw" >&5
7692 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
7694 xe_check_libs=" -lXaw "
7695 cat > conftest.$ac_ext <<EOF
7696 #line 7697 "configure"
7697 #include "confdefs.h"
7698 /* Override any gcc2 internal prototype to avoid an error. */
7699 /* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7701 char threeDClassRec();
7707 if { (eval echo configure:7708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7709 eval "ac_cv_lib_$ac_lib_var=yes"
7711 echo "configure: failed program was:" >&5
7712 cat conftest.$ac_ext >&5
7714 eval "ac_cv_lib_$ac_lib_var=no"
7719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7720 echo "$ac_t""yes" 1>&6
7722 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
7725 echo "$ac_t""no" 1>&6
7726 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
7735 if test "$athena_3d" = "no"; then
7736 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
7737 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
7738 echo "configure:7739: checking for X11/Xaw/ThreeD.h" >&5
7740 cat > conftest.$ac_ext <<EOF
7741 #line 7742 "configure"
7742 #include "confdefs.h"
7743 #include <X11/Xaw/ThreeD.h>
7745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7746 { (eval echo configure:7747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7748 if test -z "$ac_err"; then
7750 eval "ac_cv_header_$ac_safe=yes"
7753 echo "configure: failed program was:" >&5
7754 cat conftest.$ac_ext >&5
7756 eval "ac_cv_header_$ac_safe=no"
7759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7760 echo "$ac_t""yes" 1>&6
7761 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
7763 echo "$ac_t""no" 1>&6
7764 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
7765 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
7766 echo "configure:7767: checking for X11/Xaw/XawInit.h" >&5
7768 cat > conftest.$ac_ext <<EOF
7769 #line 7770 "configure"
7770 #include "confdefs.h"
7771 #include <X11/Xaw/XawInit.h>
7773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7774 { (eval echo configure:7775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7776 if test -z "$ac_err"; then
7778 eval "ac_cv_header_$ac_safe=yes"
7781 echo "configure: failed program was:" >&5
7782 cat conftest.$ac_ext >&5
7784 eval "ac_cv_header_$ac_safe=no"
7787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7788 echo "$ac_t""yes" 1>&6
7789 athena_h_path=X11/Xaw
7791 echo "$ac_t""no" 1>&6
7792 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
7798 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
7799 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
7800 echo "configure:7801: checking for X11/$athena_variant/XawInit.h" >&5
7802 cat > conftest.$ac_ext <<EOF
7803 #line 7804 "configure"
7804 #include "confdefs.h"
7805 #include <X11/$athena_variant/XawInit.h>
7807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7808 { (eval echo configure:7809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7810 if test -z "$ac_err"; then
7812 eval "ac_cv_header_$ac_safe=yes"
7815 echo "configure: failed program was:" >&5
7816 cat conftest.$ac_ext >&5
7818 eval "ac_cv_header_$ac_safe=no"
7821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7822 echo "$ac_t""yes" 1>&6
7823 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
7824 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
7825 echo "configure:7826: checking for X11/$athena_variant/ThreeD.h" >&5
7827 cat > conftest.$ac_ext <<EOF
7828 #line 7829 "configure"
7829 #include "confdefs.h"
7830 #include <X11/$athena_variant/ThreeD.h>
7832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7833 { (eval echo configure:7834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7835 if test -z "$ac_err"; then
7837 eval "ac_cv_header_$ac_safe=yes"
7840 echo "configure: failed program was:" >&5
7841 cat conftest.$ac_ext >&5
7843 eval "ac_cv_header_$ac_safe=no"
7846 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7847 echo "$ac_t""yes" 1>&6
7848 athena_h_path=X11/$athena_variant
7850 echo "$ac_t""no" 1>&6
7854 echo "$ac_t""no" 1>&6
7858 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
7859 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
7860 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
7861 echo "configure:7862: checking for X11/Xaw3d/XawInit.h" >&5
7863 cat > conftest.$ac_ext <<EOF
7864 #line 7865 "configure"
7865 #include "confdefs.h"
7866 #include <X11/Xaw3d/XawInit.h>
7868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7869 { (eval echo configure:7870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7871 if test -z "$ac_err"; then
7873 eval "ac_cv_header_$ac_safe=yes"
7876 echo "configure: failed program was:" >&5
7877 cat conftest.$ac_ext >&5
7879 eval "ac_cv_header_$ac_safe=no"
7882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7883 echo "$ac_t""yes" 1>&6
7884 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
7885 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
7886 echo "configure:7887: checking for X11/Xaw3d/ThreeD.h" >&5
7888 cat > conftest.$ac_ext <<EOF
7889 #line 7890 "configure"
7890 #include "confdefs.h"
7891 #include <X11/Xaw3d/ThreeD.h>
7893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7894 { (eval echo configure:7895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7896 if test -z "$ac_err"; then
7898 eval "ac_cv_header_$ac_safe=yes"
7901 echo "configure: failed program was:" >&5
7902 cat conftest.$ac_ext >&5
7904 eval "ac_cv_header_$ac_safe=no"
7907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7908 echo "$ac_t""yes" 1>&6
7910 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
7911 athena_h_path=X11/Xaw3d
7914 echo "$ac_t""no" 1>&6
7918 echo "$ac_t""no" 1>&6
7923 if test -z "$athena_h_path"; then
7924 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
7925 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
7926 echo "configure:7927: checking for X11/Xaw/ThreeD.h" >&5
7928 cat > conftest.$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7931 #include <X11/Xaw/ThreeD.h>
7933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7934 { (eval echo configure:7935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7936 if test -z "$ac_err"; then
7938 eval "ac_cv_header_$ac_safe=yes"
7941 echo "configure: failed program was:" >&5
7942 cat conftest.$ac_ext >&5
7944 eval "ac_cv_header_$ac_safe=no"
7947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7948 echo "$ac_t""yes" 1>&6
7950 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
7951 athena_h_path=X11/Xaw
7954 echo "$ac_t""no" 1>&6
7955 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
7961 if test -n "$athena_lib" -a -n "$athena_h_path"; then
7967 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7968 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7969 echo "configure:7970: checking for Xm/Xm.h" >&5
7971 cat > conftest.$ac_ext <<EOF
7972 #line 7973 "configure"
7973 #include "confdefs.h"
7976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7977 { (eval echo configure:7978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7979 if test -z "$ac_err"; then
7981 eval "ac_cv_header_$ac_safe=yes"
7984 echo "configure: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7987 eval "ac_cv_header_$ac_safe=no"
7990 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7991 echo "$ac_t""yes" 1>&6
7993 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7994 echo "configure:7995: checking for XmStringFree in -lXm" >&5
7995 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7997 xe_check_libs=" -lXm "
7998 cat > conftest.$ac_ext <<EOF
7999 #line 8000 "configure"
8000 #include "confdefs.h"
8001 /* Override any gcc2 internal prototype to avoid an error. */
8002 /* We use char because int might match the return type of a gcc2
8003 builtin and then its argument prototype would still apply. */
8004 char XmStringFree();
8010 if { (eval echo configure:8011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8012 eval "ac_cv_lib_$ac_lib_var=yes"
8014 echo "configure: failed program was:" >&5
8015 cat conftest.$ac_ext >&5
8017 eval "ac_cv_lib_$ac_lib_var=no"
8022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8023 echo "$ac_t""yes" 1>&6
8026 echo "$ac_t""no" 1>&6
8032 echo "$ac_t""no" 1>&6
8037 if test "$have_motif" = "yes"; then
8038 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8039 echo "configure:8040: checking for Lesstif" >&5
8040 cat > conftest.$ac_ext <<EOF
8041 #line 8042 "configure"
8042 #include "confdefs.h"
8044 #ifdef LESSTIF_VERSION
8049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8050 egrep "yes" >/dev/null 2>&1; then
8059 echo "$ac_t""$have_lesstif" 1>&6
8064 case "$with_menubars" in "" | "yes" | "athena" )
8065 with_menubars="lucid" ;;
8067 case "$with_dialogs" in "" | "yes" | "lucid" )
8068 if test "$have_motif" = "yes"; then with_dialogs="motif"
8069 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
8070 else with_dialogs=no
8073 case "$with_scrollbars" in "" | "yes" )
8074 with_scrollbars="lucid" ;;
8076 case "$with_widgets" in "" | "yes" | "lucid")
8077 if test "$have_motif" = "yes"; then with_widgets="motif"
8078 elif test "$have_xaw" = "yes"; then with_widgets="athena"
8079 else with_widgets=no
8083 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
8085 case "$all_widgets" in
8087 if test "$have_xaw" != "yes"; then
8088 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
8091 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8093 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
8095 { test "$extra_verbose" = "yes" && cat << EOF
8096 Defining ATHENA_H_PATH = $athena_h_path
8098 cat >> confdefs.h <<EOF
8099 #define ATHENA_H_PATH $athena_h_path
8104 { test "$extra_verbose" = "yes" && cat << \EOF
8105 Defining LWLIB_USES_ATHENA
8107 cat >> confdefs.h <<\EOF
8108 #define LWLIB_USES_ATHENA 1
8112 { test "$extra_verbose" = "yes" && cat << \EOF
8113 Defining NEED_ATHENA
8115 cat >> confdefs.h <<\EOF
8116 #define NEED_ATHENA 1
8121 if test "$athena_3d" = "yes"; then
8122 { test "$extra_verbose" = "yes" && cat << \EOF
8123 Defining HAVE_ATHENA_3D
8125 cat >> confdefs.h <<\EOF
8126 #define HAVE_ATHENA_3D 1
8134 case "$all_widgets" in *motif* )
8135 { test "$extra_verbose" = "yes" && cat << \EOF
8136 Defining LWLIB_USES_MOTIF
8138 cat >> confdefs.h <<\EOF
8139 #define LWLIB_USES_MOTIF 1
8143 { test "$extra_verbose" = "yes" && cat << \EOF
8146 cat >> confdefs.h <<\EOF
8147 #define NEED_MOTIF 1
8151 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
8155 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8156 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8157 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
8158 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8159 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
8160 case "$with_widgets" in athena* )
8161 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;;
8163 case "$all_widgets" in *lucid* )
8164 { test "$extra_verbose" = "yes" && cat << \EOF
8167 cat >> confdefs.h <<\EOF
8168 #define NEED_LUCID 1
8172 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
8177 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8178 Defining LWLIB_SCROLLBARS_ATHENA
8180 cat >> confdefs.h <<\EOF
8181 #define LWLIB_SCROLLBARS_ATHENA 1
8185 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8186 Defining LWLIB_DIALOGS_ATHENA
8188 cat >> confdefs.h <<\EOF
8189 #define LWLIB_DIALOGS_ATHENA 1
8194 if test "$athena_3d" = "yes"; then
8195 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8196 Defining LWLIB_SCROLLBARS_ATHENA3D
8198 cat >> confdefs.h <<\EOF
8199 #define LWLIB_SCROLLBARS_ATHENA3D 1
8203 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8204 Defining LWLIB_DIALOGS_ATHENA3D
8206 cat >> confdefs.h <<\EOF
8207 #define LWLIB_DIALOGS_ATHENA3D 1
8213 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
8214 Defining LWLIB_WIDGETS_ATHENA
8216 cat >> confdefs.h <<\EOF
8217 #define LWLIB_WIDGETS_ATHENA 1
8221 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8222 { test "$extra_verbose" = "yes" && cat << \EOF
8223 Defining LWLIB_TABS_LUCID
8225 cat >> confdefs.h <<\EOF
8226 #define LWLIB_TABS_LUCID 1
8231 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8232 Defining HAVE_MENUBARS
8234 cat >> confdefs.h <<\EOF
8235 #define HAVE_MENUBARS 1
8239 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8240 Defining HAVE_SCROLLBARS
8242 cat >> confdefs.h <<\EOF
8243 #define HAVE_SCROLLBARS 1
8247 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8248 Defining HAVE_DIALOGS
8250 cat >> confdefs.h <<\EOF
8251 #define HAVE_DIALOGS 1
8255 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8256 Defining HAVE_TOOLBARS
8258 cat >> confdefs.h <<\EOF
8259 #define HAVE_TOOLBARS 1
8263 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8264 Defining HAVE_WIDGETS
8266 cat >> confdefs.h <<\EOF
8267 #define HAVE_WIDGETS 1
8272 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
8273 Defining LWLIB_MENUBARS_LUCID
8275 cat >> confdefs.h <<\EOF
8276 #define LWLIB_MENUBARS_LUCID 1
8280 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
8281 Defining LWLIB_SCROLLBARS_LUCID
8283 cat >> confdefs.h <<\EOF
8284 #define LWLIB_SCROLLBARS_LUCID 1
8289 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8290 Defining LWLIB_MENUBARS_MOTIF
8292 cat >> confdefs.h <<\EOF
8293 #define LWLIB_MENUBARS_MOTIF 1
8297 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8298 Defining LWLIB_SCROLLBARS_MOTIF
8300 cat >> confdefs.h <<\EOF
8301 #define LWLIB_SCROLLBARS_MOTIF 1
8305 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8306 Defining LWLIB_DIALOGS_MOTIF
8308 cat >> confdefs.h <<\EOF
8309 #define LWLIB_DIALOGS_MOTIF 1
8313 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8314 Defining LWLIB_WIDGETS_MOTIF
8316 cat >> confdefs.h <<\EOF
8317 #define LWLIB_WIDGETS_MOTIF 1
8322 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
8323 echo " xemacs will be linked with \"menubar.o\""
8325 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
8326 echo " xemacs will be linked with \"scrollbar.o\""
8328 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
8329 echo " xemacs will be linked with \"dialog.o\""
8331 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
8332 echo " xemacs will be linked with \"toolbar.o\""
8335 if test "$with_x11" = "yes"; then
8336 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
8337 echo " xemacs will be linked with \"menubar-x.o\""
8339 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
8340 echo " xemacs will be linked with \"scrollbar-x.o\""
8342 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
8343 echo " xemacs will be linked with \"dialog-x.o\""
8345 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
8346 echo " xemacs will be linked with \"toolbar-x.o\""
8348 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
8349 echo " xemacs will be linked with \"gui-x.o\""
8354 test -z "$with_mule" && with_mule=no
8355 test -z "$with_file_coding" && with_file_coding=no
8358 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
8359 { test "$extra_verbose" = "yes" && cat << \EOF
8360 Defining FILE_CODING
8362 cat >> confdefs.h <<\EOF
8363 #define FILE_CODING 1
8367 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
8368 echo " xemacs will be linked with \"file-coding.o\""
8372 if test "$with_mule" = "yes" ; then
8373 echo "checking for Mule-related features" 1>&6
8374 echo "configure:8375: checking for Mule-related features" >&5
8375 { test "$extra_verbose" = "yes" && cat << \EOF
8378 cat >> confdefs.h <<\EOF
8383 { test "$extra_verbose" = "yes" && cat << \EOF
8384 Defining FILE_CODING
8386 cat >> confdefs.h <<\EOF
8387 #define FILE_CODING 1
8391 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
8392 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
8395 for ac_hdr in libintl.h
8397 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8398 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8399 echo "configure:8400: checking for $ac_hdr" >&5
8401 cat > conftest.$ac_ext <<EOF
8402 #line 8403 "configure"
8403 #include "confdefs.h"
8406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8407 { (eval echo configure:8408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8409 if test -z "$ac_err"; then
8411 eval "ac_cv_header_$ac_safe=yes"
8414 echo "configure: failed program was:" >&5
8415 cat conftest.$ac_ext >&5
8417 eval "ac_cv_header_$ac_safe=no"
8420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8421 echo "$ac_t""yes" 1>&6
8422 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8423 { test "$extra_verbose" = "yes" && cat << EOF
8426 cat >> confdefs.h <<EOF
8427 #define $ac_tr_hdr 1
8432 echo "$ac_t""no" 1>&6
8437 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
8438 echo "configure:8439: checking for strerror in -lintl" >&5
8439 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
8441 xe_check_libs=" -lintl "
8442 cat > conftest.$ac_ext <<EOF
8443 #line 8444 "configure"
8444 #include "confdefs.h"
8445 /* Override any gcc2 internal prototype to avoid an error. */
8446 /* We use char because int might match the return type of a gcc2
8447 builtin and then its argument prototype would still apply. */
8454 if { (eval echo configure:8455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8456 eval "ac_cv_lib_$ac_lib_var=yes"
8458 echo "configure: failed program was:" >&5
8459 cat conftest.$ac_ext >&5
8461 eval "ac_cv_lib_$ac_lib_var=no"
8466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8467 echo "$ac_t""yes" 1>&6
8468 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8469 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8470 { test "$extra_verbose" = "yes" && cat << EOF
8473 cat >> confdefs.h <<EOF
8474 #define $ac_tr_lib 1
8478 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
8481 echo "$ac_t""no" 1>&6
8486 echo "checking for Mule input methods" 1>&6
8487 echo "configure:8488: checking for Mule input methods" >&5
8488 case "$with_xim" in "" | "yes" )
8489 echo "checking for XIM" 1>&6
8490 echo "configure:8491: checking for XIM" >&5
8492 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
8493 echo "configure:8494: checking for XOpenIM in -lX11" >&5
8494 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
8496 xe_check_libs=" -lX11 "
8497 cat > conftest.$ac_ext <<EOF
8498 #line 8499 "configure"
8499 #include "confdefs.h"
8500 /* Override any gcc2 internal prototype to avoid an error. */
8501 /* We use char because int might match the return type of a gcc2
8502 builtin and then its argument prototype would still apply. */
8509 if { (eval echo configure:8510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8511 eval "ac_cv_lib_$ac_lib_var=yes"
8513 echo "configure: failed program was:" >&5
8514 cat conftest.$ac_ext >&5
8516 eval "ac_cv_lib_$ac_lib_var=no"
8521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8522 echo "$ac_t""yes" 1>&6
8525 echo "$ac_t""no" 1>&6
8530 if test "$have_motif $have_lesstif" = "yes no"; then
8532 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
8533 echo "configure:8534: checking for XmImMbLookupString in -lXm" >&5
8534 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
8536 xe_check_libs=" -lXm "
8537 cat > conftest.$ac_ext <<EOF
8538 #line 8539 "configure"
8539 #include "confdefs.h"
8540 /* Override any gcc2 internal prototype to avoid an error. */
8541 /* We use char because int might match the return type of a gcc2
8542 builtin and then its argument prototype would still apply. */
8543 char XmImMbLookupString();
8546 XmImMbLookupString()
8549 if { (eval echo configure:8550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8551 eval "ac_cv_lib_$ac_lib_var=yes"
8553 echo "configure: failed program was:" >&5
8554 cat conftest.$ac_ext >&5
8556 eval "ac_cv_lib_$ac_lib_var=no"
8561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8562 echo "$ac_t""yes" 1>&6
8565 echo "$ac_t""no" 1>&6
8571 if test "$with_xim" != "no"; then
8572 { test "$extra_verbose" = "yes" && cat << \EOF
8575 cat >> confdefs.h <<\EOF
8580 if test "$with_xim" = "xlib"; then
8581 { test "$extra_verbose" = "yes" && cat << \EOF
8584 cat >> confdefs.h <<\EOF
8589 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
8590 echo " xemacs will be linked with \"input-method-xlib.o\""
8593 if test "$with_xim" = "motif"; then
8594 { test "$extra_verbose" = "yes" && cat << \EOF
8597 cat >> confdefs.h <<\EOF
8603 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
8604 echo " xemacs will be linked with \"input-method-motif.o\""
8607 if test "$with_xim" = "motif"; then
8612 if test "$with_xfs" = "yes" ; then
8613 echo "checking for XFontSet" 1>&6
8614 echo "configure:8615: checking for XFontSet" >&5
8616 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8617 echo "configure:8618: checking for XmbDrawString in -lX11" >&5
8618 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8620 xe_check_libs=" -lX11 "
8621 cat > conftest.$ac_ext <<EOF
8622 #line 8623 "configure"
8623 #include "confdefs.h"
8624 /* Override any gcc2 internal prototype to avoid an error. */
8625 /* We use char because int might match the return type of a gcc2
8626 builtin and then its argument prototype would still apply. */
8627 char XmbDrawString();
8633 if { (eval echo configure:8634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8635 eval "ac_cv_lib_$ac_lib_var=yes"
8637 echo "configure: failed program was:" >&5
8638 cat conftest.$ac_ext >&5
8640 eval "ac_cv_lib_$ac_lib_var=no"
8645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8646 echo "$ac_t""yes" 1>&6
8649 echo "$ac_t""no" 1>&6
8654 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
8655 { test "$extra_verbose" = "yes" && cat << \EOF
8656 Defining USE_XFONTSET
8658 cat >> confdefs.h <<\EOF
8659 #define USE_XFONTSET 1
8663 if test "$with_xim" = "no" ; then
8664 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
8665 echo " xemacs will be linked with \"input-method-xfs.o\""
8670 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8671 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8672 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8673 echo "configure:8674: checking for wnn/jllib.h" >&5
8675 cat > conftest.$ac_ext <<EOF
8676 #line 8677 "configure"
8677 #include "confdefs.h"
8678 #include <wnn/jllib.h>
8680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8681 { (eval echo configure:8682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8683 if test -z "$ac_err"; then
8685 eval "ac_cv_header_$ac_safe=yes"
8688 echo "configure: failed program was:" >&5
8689 cat conftest.$ac_ext >&5
8691 eval "ac_cv_header_$ac_safe=no"
8694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8695 echo "$ac_t""yes" 1>&6
8698 echo "$ac_t""no" 1>&6
8702 if test "$with_wnn" != "no"; then
8703 for ac_func in crypt
8705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8706 echo "configure:8707: checking for $ac_func" >&5
8708 cat > conftest.$ac_ext <<EOF
8709 #line 8710 "configure"
8710 #include "confdefs.h"
8711 /* System header to define __stub macros and hopefully few prototypes,
8712 which can conflict with char $ac_func(); below. */
8714 /* Override any gcc2 internal prototype to avoid an error. */
8715 /* We use char because int might match the return type of a gcc2
8716 builtin and then its argument prototype would still apply. */
8721 /* The GNU C library defines this for functions which it implements
8722 to always fail with ENOSYS. Some functions are actually named
8723 something starting with __ and the normal name is an alias. */
8724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8732 if { (eval echo configure:8733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8734 eval "ac_cv_func_$ac_func=yes"
8736 echo "configure: failed program was:" >&5
8737 cat conftest.$ac_ext >&5
8739 eval "ac_cv_func_$ac_func=no"
8743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8744 echo "$ac_t""yes" 1>&6
8745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8746 { test "$extra_verbose" = "yes" && cat << EOF
8747 Defining $ac_tr_func
8749 cat >> confdefs.h <<EOF
8750 #define $ac_tr_func 1
8755 echo "$ac_t""no" 1>&6
8759 test "$ac_cv_func_crypt" != "yes" && {
8760 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8761 echo "configure:8762: checking for crypt in -lcrypt" >&5
8762 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8764 xe_check_libs=" -lcrypt "
8765 cat > conftest.$ac_ext <<EOF
8766 #line 8767 "configure"
8767 #include "confdefs.h"
8768 /* Override any gcc2 internal prototype to avoid an error. */
8769 /* We use char because int might match the return type of a gcc2
8770 builtin and then its argument prototype would still apply. */
8777 if { (eval echo configure:8778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8779 eval "ac_cv_lib_$ac_lib_var=yes"
8781 echo "configure: failed program was:" >&5
8782 cat conftest.$ac_ext >&5
8784 eval "ac_cv_lib_$ac_lib_var=no"
8789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8790 echo "$ac_t""yes" 1>&6
8791 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8792 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8793 { test "$extra_verbose" = "yes" && cat << EOF
8796 cat >> confdefs.h <<EOF
8797 #define $ac_tr_lib 1
8801 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
8804 echo "$ac_t""no" 1>&6
8809 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8811 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8812 echo "configure:8813: checking for jl_dic_list_e in -lwnn" >&5
8813 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8815 xe_check_libs=" -lwnn "
8816 cat > conftest.$ac_ext <<EOF
8817 #line 8818 "configure"
8818 #include "confdefs.h"
8819 /* Override any gcc2 internal prototype to avoid an error. */
8820 /* We use char because int might match the return type of a gcc2
8821 builtin and then its argument prototype would still apply. */
8822 char jl_dic_list_e();
8828 if { (eval echo configure:8829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8830 eval "ac_cv_lib_$ac_lib_var=yes"
8832 echo "configure: failed program was:" >&5
8833 cat conftest.$ac_ext >&5
8835 eval "ac_cv_lib_$ac_lib_var=no"
8840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8841 echo "$ac_t""yes" 1>&6
8844 echo "$ac_t""no" 1>&6
8845 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8846 echo "configure:8847: checking for jl_dic_list_e in -lwnn4" >&5
8847 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8849 xe_check_libs=" -lwnn4 "
8850 cat > conftest.$ac_ext <<EOF
8851 #line 8852 "configure"
8852 #include "confdefs.h"
8853 /* Override any gcc2 internal prototype to avoid an error. */
8854 /* We use char because int might match the return type of a gcc2
8855 builtin and then its argument prototype would still apply. */
8856 char jl_dic_list_e();
8862 if { (eval echo configure:8863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8864 eval "ac_cv_lib_$ac_lib_var=yes"
8866 echo "configure: failed program was:" >&5
8867 cat conftest.$ac_ext >&5
8869 eval "ac_cv_lib_$ac_lib_var=no"
8874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8875 echo "$ac_t""yes" 1>&6
8878 echo "$ac_t""no" 1>&6
8879 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8880 echo "configure:8881: checking for jl_dic_list_e in -lwnn6" >&5
8881 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8883 xe_check_libs=" -lwnn6 "
8884 cat > conftest.$ac_ext <<EOF
8885 #line 8886 "configure"
8886 #include "confdefs.h"
8887 /* Override any gcc2 internal prototype to avoid an error. */
8888 /* We use char because int might match the return type of a gcc2
8889 builtin and then its argument prototype would still apply. */
8890 char jl_dic_list_e();
8896 if { (eval echo configure:8897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8898 eval "ac_cv_lib_$ac_lib_var=yes"
8900 echo "configure: failed program was:" >&5
8901 cat conftest.$ac_ext >&5
8903 eval "ac_cv_lib_$ac_lib_var=no"
8908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8909 echo "$ac_t""yes" 1>&6
8912 echo "$ac_t""no" 1>&6
8913 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8914 echo "configure:8915: checking for dic_list_e in -lwnn6_fromsrc" >&5
8915 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8917 xe_check_libs=" -lwnn6_fromsrc "
8918 cat > conftest.$ac_ext <<EOF
8919 #line 8920 "configure"
8920 #include "confdefs.h"
8921 /* Override any gcc2 internal prototype to avoid an error. */
8922 /* We use char because int might match the return type of a gcc2
8923 builtin and then its argument prototype would still apply. */
8930 if { (eval echo configure:8931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8932 eval "ac_cv_lib_$ac_lib_var=yes"
8934 echo "configure: failed program was:" >&5
8935 cat conftest.$ac_ext >&5
8937 eval "ac_cv_lib_$ac_lib_var=no"
8942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8943 echo "$ac_t""yes" 1>&6
8946 echo "$ac_t""no" 1>&6
8961 test -z "$with_wnn" && with_wnn=yes
8962 if test "$with_wnn" = "yes"; then
8963 { test "$extra_verbose" = "yes" && cat << \EOF
8966 cat >> confdefs.h <<\EOF
8971 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
8972 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
8973 echo " xemacs will be linked with \"mule-wnnfns.o\""
8975 if test "$with_wnn6" != "no"; then
8977 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8978 echo "configure:8979: checking for jl_fi_dic_list in -l$libwnn" >&5
8979 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8981 xe_check_libs=" -l$libwnn "
8982 cat > conftest.$ac_ext <<EOF
8983 #line 8984 "configure"
8984 #include "confdefs.h"
8985 /* Override any gcc2 internal prototype to avoid an error. */
8986 /* We use char because int might match the return type of a gcc2
8987 builtin and then its argument prototype would still apply. */
8988 char jl_fi_dic_list();
8994 if { (eval echo configure:8995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8996 eval "ac_cv_lib_$ac_lib_var=yes"
8998 echo "configure: failed program was:" >&5
8999 cat conftest.$ac_ext >&5
9001 eval "ac_cv_lib_$ac_lib_var=no"
9006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9007 echo "$ac_t""yes" 1>&6
9010 echo "$ac_t""no" 1>&6
9014 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9017 cat >> confdefs.h <<\EOF
9025 canna_includes_found=no
9026 if test "$with_canna" != "no"; then
9027 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9028 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9029 echo "configure:9030: checking for canna/jrkanji.h" >&5
9031 cat > conftest.$ac_ext <<EOF
9032 #line 9033 "configure"
9033 #include "confdefs.h"
9034 #include <canna/jrkanji.h>
9036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9037 { (eval echo configure:9038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9039 if test -z "$ac_err"; then
9041 eval "ac_cv_header_$ac_safe=yes"
9044 echo "configure: failed program was:" >&5
9045 cat conftest.$ac_ext >&5
9047 eval "ac_cv_header_$ac_safe=no"
9050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9051 echo "$ac_t""yes" 1>&6
9052 canna_includes_found=yes
9054 echo "$ac_t""no" 1>&6
9058 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
9059 -d "/usr/local/canna/include"; then
9060 save_c_switch_site="$c_switch_site"
9061 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9062 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9063 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9064 echo "configure:9065: checking for canna/jrkanji.h" >&5
9066 cat > conftest.$ac_ext <<EOF
9067 #line 9068 "configure"
9068 #include "confdefs.h"
9069 #include <canna/jrkanji.h>
9071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9072 { (eval echo configure:9073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9073 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9074 if test -z "$ac_err"; then
9076 eval "ac_cv_header_$ac_safe=yes"
9079 echo "configure: failed program was:" >&5
9080 cat conftest.$ac_ext >&5
9082 eval "ac_cv_header_$ac_safe=no"
9085 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9086 echo "$ac_t""yes" 1>&6
9087 canna_includes_found=yes
9089 echo "$ac_t""no" 1>&6
9092 if test "$canna_includes_found" != "yes"; then
9093 c_switch_site="$save_c_switch_site"
9098 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9099 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9100 echo "configure:9101: checking for canna/RK.h" >&5
9102 cat > conftest.$ac_ext <<EOF
9103 #line 9104 "configure"
9104 #include "confdefs.h"
9105 #include <canna/RK.h>
9107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9108 { (eval echo configure:9109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9110 if test -z "$ac_err"; then
9112 eval "ac_cv_header_$ac_safe=yes"
9115 echo "configure: failed program was:" >&5
9116 cat conftest.$ac_ext >&5
9118 eval "ac_cv_header_$ac_safe=no"
9121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9122 echo "$ac_t""yes" 1>&6
9125 echo "$ac_t""no" 1>&6
9129 test -z "$with_canna" && {
9130 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9131 echo "configure:9132: checking for RkBgnBun in -lRKC" >&5
9132 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9134 xe_check_libs=" -lRKC "
9135 cat > conftest.$ac_ext <<EOF
9136 #line 9137 "configure"
9137 #include "confdefs.h"
9138 /* Override any gcc2 internal prototype to avoid an error. */
9139 /* We use char because int might match the return type of a gcc2
9140 builtin and then its argument prototype would still apply. */
9147 if { (eval echo configure:9148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9149 eval "ac_cv_lib_$ac_lib_var=yes"
9151 echo "configure: failed program was:" >&5
9152 cat conftest.$ac_ext >&5
9154 eval "ac_cv_lib_$ac_lib_var=no"
9159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9160 echo "$ac_t""yes" 1>&6
9163 echo "$ac_t""no" 1>&6
9168 test -z "$with_canna" && {
9169 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
9170 echo "configure:9171: checking for jrKanjiControl in -lcanna" >&5
9171 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
9173 xe_check_libs=" -lcanna "
9174 cat > conftest.$ac_ext <<EOF
9175 #line 9176 "configure"
9176 #include "confdefs.h"
9177 /* Override any gcc2 internal prototype to avoid an error. */
9178 /* We use char because int might match the return type of a gcc2
9179 builtin and then its argument prototype would still apply. */
9180 char jrKanjiControl();
9186 if { (eval echo configure:9187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9188 eval "ac_cv_lib_$ac_lib_var=yes"
9190 echo "configure: failed program was:" >&5
9191 cat conftest.$ac_ext >&5
9193 eval "ac_cv_lib_$ac_lib_var=no"
9198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9199 echo "$ac_t""yes" 1>&6
9202 echo "$ac_t""no" 1>&6
9207 test -z "$with_canna" && with_canna=yes
9208 if test "$with_canna" = "yes"; then
9209 { test "$extra_verbose" = "yes" && cat << \EOF
9212 cat >> confdefs.h <<\EOF
9213 #define HAVE_CANNA 1
9217 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
9218 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
9219 echo " xemacs will be linked with \"mule-canna.o\""
9223 else for feature in xim canna wnn; do
9224 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
9225 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
9227 eval "with_${feature}=no"
9231 if test "$need_motif" = "yes" ; then
9232 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
9234 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
9235 echo "configure:9236: checking for layout_object_getvalue in -li18n" >&5
9236 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
9238 xe_check_libs=" -li18n "
9239 cat > conftest.$ac_ext <<EOF
9240 #line 9241 "configure"
9241 #include "confdefs.h"
9242 /* Override any gcc2 internal prototype to avoid an error. */
9243 /* We use char because int might match the return type of a gcc2
9244 builtin and then its argument prototype would still apply. */
9245 char layout_object_getvalue();
9248 layout_object_getvalue()
9251 if { (eval echo configure:9252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9253 eval "ac_cv_lib_$ac_lib_var=yes"
9255 echo "configure: failed program was:" >&5
9256 cat conftest.$ac_ext >&5
9258 eval "ac_cv_lib_$ac_lib_var=no"
9263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9264 echo "$ac_t""yes" 1>&6
9265 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
9267 echo "$ac_t""no" 1>&6
9272 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
9273 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
9274 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
9276 runpath="" runpath_dirs=""
9277 if test -n "$LD_RUN_PATH"; then
9278 runpath="$LD_RUN_PATH"
9279 elif test "$GCC" = "yes"; then
9280 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
9281 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
9282 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
9283 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
9284 case "$arg" in P,* | -L* | -R* )
9285 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
9287 xe_runpath_dir="$dir"
9288 test "$xe_runpath_dir" != "/lib" -a \
9289 "$xe_runpath_dir" != "/usr/lib" -a \
9290 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
9291 eval "$xe_add_unique_runpath_dir"
9296 ld_switch_run="$ld_switch_run_save"
9299 for arg in $ld_switch_site $ld_switch_x_site; do
9300 case "$arg" in -L*) {
9301 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
9302 test "$xe_runpath_dir" != "/lib" -a \
9303 "$xe_runpath_dir" != "/usr/lib" -a \
9304 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
9305 eval "$xe_add_unique_runpath_dir"
9308 if test "$opsys $need_motif" = "sol2 yes"; then
9309 xe_runpath_dir="/opt/SUNWdt/lib";
9310 eval "$xe_add_unique_runpath_dir";
9313 if test -n "$runpath"; then
9314 ld_switch_run="${dash_r}${runpath}"
9316 if test "$GCC" = "yes"; then
9317 set x $ld_switch_run; shift; ld_switch_run=""
9318 while test -n "$1"; do
9320 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
9321 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
9323 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
9328 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
9334 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
9336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9337 echo "configure:9338: checking for $ac_func" >&5
9339 cat > conftest.$ac_ext <<EOF
9340 #line 9341 "configure"
9341 #include "confdefs.h"
9342 /* System header to define __stub macros and hopefully few prototypes,
9343 which can conflict with char $ac_func(); below. */
9345 /* Override any gcc2 internal prototype to avoid an error. */
9346 /* We use char because int might match the return type of a gcc2
9347 builtin and then its argument prototype would still apply. */
9352 /* The GNU C library defines this for functions which it implements
9353 to always fail with ENOSYS. Some functions are actually named
9354 something starting with __ and the normal name is an alias. */
9355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9363 if { (eval echo configure:9364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9365 eval "ac_cv_func_$ac_func=yes"
9367 echo "configure: failed program was:" >&5
9368 cat conftest.$ac_ext >&5
9370 eval "ac_cv_func_$ac_func=no"
9374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9375 echo "$ac_t""yes" 1>&6
9376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9377 { test "$extra_verbose" = "yes" && cat << EOF
9378 Defining $ac_tr_func
9380 cat >> confdefs.h <<EOF
9381 #define $ac_tr_func 1
9386 echo "$ac_t""no" 1>&6
9393 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9394 echo " xemacs will be linked with \"realpath.o\""
9397 case "$canonical" in
9398 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9399 echo " xemacs will be linked with \"realpath.o\""
9401 * ) for ac_func in realpath
9403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9404 echo "configure:9405: checking for $ac_func" >&5
9406 cat > conftest.$ac_ext <<EOF
9407 #line 9408 "configure"
9408 #include "confdefs.h"
9409 /* System header to define __stub macros and hopefully few prototypes,
9410 which can conflict with char $ac_func(); below. */
9412 /* Override any gcc2 internal prototype to avoid an error. */
9413 /* We use char because int might match the return type of a gcc2
9414 builtin and then its argument prototype would still apply. */
9419 /* The GNU C library defines this for functions which it implements
9420 to always fail with ENOSYS. Some functions are actually named
9421 something starting with __ and the normal name is an alias. */
9422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9430 if { (eval echo configure:9431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9432 eval "ac_cv_func_$ac_func=yes"
9434 echo "configure: failed program was:" >&5
9435 cat conftest.$ac_ext >&5
9437 eval "ac_cv_func_$ac_func=no"
9441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9442 echo "$ac_t""yes" 1>&6
9443 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9444 { test "$extra_verbose" = "yes" && cat << EOF
9445 Defining $ac_tr_func
9447 cat >> confdefs.h <<EOF
9448 #define $ac_tr_func 1
9453 echo "$ac_t""no" 1>&6
9457 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9458 echo " xemacs will be linked with \"realpath.o\""
9463 for ac_func in getloadavg
9465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9466 echo "configure:9467: checking for $ac_func" >&5
9468 cat > conftest.$ac_ext <<EOF
9469 #line 9470 "configure"
9470 #include "confdefs.h"
9471 /* System header to define __stub macros and hopefully few prototypes,
9472 which can conflict with char $ac_func(); below. */
9474 /* Override any gcc2 internal prototype to avoid an error. */
9475 /* We use char because int might match the return type of a gcc2
9476 builtin and then its argument prototype would still apply. */
9481 /* The GNU C library defines this for functions which it implements
9482 to always fail with ENOSYS. Some functions are actually named
9483 something starting with __ and the normal name is an alias. */
9484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9492 if { (eval echo configure:9493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9494 eval "ac_cv_func_$ac_func=yes"
9496 echo "configure: failed program was:" >&5
9497 cat conftest.$ac_ext >&5
9499 eval "ac_cv_func_$ac_func=no"
9503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9504 echo "$ac_t""yes" 1>&6
9505 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9506 { test "$extra_verbose" = "yes" && cat << EOF
9507 Defining $ac_tr_func
9509 cat >> confdefs.h <<EOF
9510 #define $ac_tr_func 1
9515 echo "$ac_t""no" 1>&6
9520 if test "$ac_cv_func_getloadavg" != "yes"
9522 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
9523 echo " xemacs will be linked with \"getloadavg.o\""
9527 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
9528 echo "configure:9529: checking for kstat_open in -lkstat" >&5
9529 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
9531 xe_check_libs=" -lkstat "
9532 cat > conftest.$ac_ext <<EOF
9533 #line 9534 "configure"
9534 #include "confdefs.h"
9535 /* Override any gcc2 internal prototype to avoid an error. */
9536 /* We use char because int might match the return type of a gcc2
9537 builtin and then its argument prototype would still apply. */
9544 if { (eval echo configure:9545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9546 eval "ac_cv_lib_$ac_lib_var=yes"
9548 echo "configure: failed program was:" >&5
9549 cat conftest.$ac_ext >&5
9551 eval "ac_cv_lib_$ac_lib_var=no"
9556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9557 echo "$ac_t""yes" 1>&6
9558 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9559 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9560 { test "$extra_verbose" = "yes" && cat << EOF
9563 cat >> confdefs.h <<EOF
9564 #define $ac_tr_lib 1
9568 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
9571 echo "$ac_t""no" 1>&6
9577 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
9578 echo "configure:9579: checking for kvm_read in -lkvm" >&5
9579 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
9581 xe_check_libs=" -lkvm "
9582 cat > conftest.$ac_ext <<EOF
9583 #line 9584 "configure"
9584 #include "confdefs.h"
9585 /* Override any gcc2 internal prototype to avoid an error. */
9586 /* We use char because int might match the return type of a gcc2
9587 builtin and then its argument prototype would still apply. */
9594 if { (eval echo configure:9595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9596 eval "ac_cv_lib_$ac_lib_var=yes"
9598 echo "configure: failed program was:" >&5
9599 cat conftest.$ac_ext >&5
9601 eval "ac_cv_lib_$ac_lib_var=no"
9606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9607 echo "$ac_t""yes" 1>&6
9608 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9609 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9610 { test "$extra_verbose" = "yes" && cat << EOF
9613 cat >> confdefs.h <<EOF
9614 #define $ac_tr_lib 1
9618 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
9621 echo "$ac_t""no" 1>&6
9627 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9628 echo "configure:9629: checking whether netdb declares h_errno" >&5
9629 cat > conftest.$ac_ext <<EOF
9630 #line 9631 "configure"
9631 #include "confdefs.h"
9637 if { (eval echo configure:9638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9639 echo "$ac_t""yes" 1>&6
9640 { test "$extra_verbose" = "yes" && cat << \EOF
9641 Defining HAVE_H_ERRNO
9643 cat >> confdefs.h <<\EOF
9644 #define HAVE_H_ERRNO 1
9649 echo "configure: failed program was:" >&5
9650 cat conftest.$ac_ext >&5
9652 echo "$ac_t""no" 1>&6
9656 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9657 echo "configure:9658: checking for sigsetjmp" >&5
9658 cat > conftest.$ac_ext <<EOF
9659 #line 9660 "configure"
9660 #include "confdefs.h"
9663 sigjmp_buf bar; sigsetjmp (bar, 0);
9666 if { (eval echo configure:9667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9668 echo "$ac_t""yes" 1>&6
9669 { test "$extra_verbose" = "yes" && cat << \EOF
9670 Defining HAVE_SIGSETJMP
9672 cat >> confdefs.h <<\EOF
9673 #define HAVE_SIGSETJMP 1
9678 echo "configure: failed program was:" >&5
9679 cat conftest.$ac_ext >&5
9681 echo "$ac_t""no" 1>&6
9685 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9686 echo "configure:9687: checking whether localtime caches TZ" >&5
9688 if test "$ac_cv_func_tzset" = "yes"; then
9689 cat > conftest.$ac_ext <<EOF
9690 #line 9691 "configure"
9691 #include "confdefs.h"
9694 # include <stdlib.h>
9696 extern char **environ;
9700 for (to = from = environ; (*to = *from); from++)
9701 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
9704 char TZ_GMT0[] = "TZ=GMT0";
9705 char TZ_PST8[] = "TZ=PST8";
9708 time_t now = time ((time_t *) 0);
9709 int hour_GMT0, hour_unset;
9710 if (putenv (TZ_GMT0) != 0)
9712 hour_GMT0 = localtime (&now)->tm_hour;
9714 hour_unset = localtime (&now)->tm_hour;
9715 if (putenv (TZ_PST8) != 0)
9717 if (localtime (&now)->tm_hour == hour_GMT0)
9720 if (localtime (&now)->tm_hour != hour_unset)
9725 if { (eval echo configure:9726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9727 emacs_cv_localtime_cache=no
9730 echo "configure: failed program was:" >&5
9731 cat conftest.$ac_ext >&5
9733 emacs_cv_localtime_cache=yes
9737 # If we lack tzset, report that localtime does not cache TZ,
9738 # since we can't invalidate the cache if we don't have tzset.
9739 emacs_cv_localtime_cache=no
9741 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
9742 if test $emacs_cv_localtime_cache = yes; then
9743 { test "$extra_verbose" = "yes" && cat << \EOF
9744 Defining LOCALTIME_CACHE
9746 cat >> confdefs.h <<\EOF
9747 #define LOCALTIME_CACHE 1
9753 if test "$HAVE_TIMEVAL" = "yes"; then
9754 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9755 echo "configure:9756: checking whether gettimeofday accepts one or two arguments" >&5
9756 cat > conftest.$ac_ext <<EOF
9757 #line 9758 "configure"
9758 #include "confdefs.h"
9760 #ifdef TIME_WITH_SYS_TIME
9761 #include <sys/time.h>
9764 #ifdef HAVE_SYS_TIME_H
9765 #include <sys/time.h>
9773 struct timeval time;
9774 struct timezone dummy;
9775 gettimeofday (&time, &dummy);
9779 if { (eval echo configure:9780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9781 echo "$ac_t""two" 1>&6
9783 echo "configure: failed program was:" >&5
9784 cat conftest.$ac_ext >&5
9786 echo "$ac_t""one" 1>&6
9787 { test "$extra_verbose" = "yes" && cat << \EOF
9788 Defining GETTIMEOFDAY_ONE_ARGUMENT
9790 cat >> confdefs.h <<\EOF
9791 #define GETTIMEOFDAY_ONE_ARGUMENT 1
9800 echo $ac_n "checking for inline""... $ac_c" 1>&6
9801 echo "configure:9802: checking for inline" >&5
9804 for ac_kw in inline __inline__ __inline; do
9805 cat > conftest.$ac_ext <<EOF
9806 #line 9807 "configure"
9807 #include "confdefs.h"
9813 if { (eval echo configure:9814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9815 ac_cv_c_inline=$ac_kw; break
9817 echo "configure: failed program was:" >&5
9818 cat conftest.$ac_ext >&5
9824 echo "$ac_t""$ac_cv_c_inline" 1>&6
9825 case "$ac_cv_c_inline" in
9827 no) { test "$extra_verbose" = "yes" && cat << \EOF
9830 cat >> confdefs.h <<\EOF
9835 *) { test "$extra_verbose" = "yes" && cat << EOF
9836 Defining inline = $ac_cv_c_inline
9838 cat >> confdefs.h <<EOF
9839 #define inline $ac_cv_c_inline
9845 if test "$ac_cv_c_inline" != "no"; then
9846 { test "$extra_verbose" = "yes" && cat << \EOF
9847 Defining HAVE_INLINE
9849 cat >> confdefs.h <<\EOF
9850 #define HAVE_INLINE 1
9854 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
9855 echo " xemacs will be linked with \"inline.o\""
9860 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9861 # for constant arguments. Useless!
9862 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9863 echo "configure:9864: checking for working alloca.h" >&5
9865 cat > conftest.$ac_ext <<EOF
9866 #line 9867 "configure"
9867 #include "confdefs.h"
9870 char *p = alloca(2 * sizeof(int));
9873 if { (eval echo configure:9874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9875 ac_cv_header_alloca_h=yes
9877 echo "configure: failed program was:" >&5
9878 cat conftest.$ac_ext >&5
9880 ac_cv_header_alloca_h=no
9884 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
9885 if test $ac_cv_header_alloca_h = yes; then
9886 { test "$extra_verbose" = "yes" && cat << \EOF
9887 Defining HAVE_ALLOCA_H
9889 cat >> confdefs.h <<\EOF
9890 #define HAVE_ALLOCA_H 1
9896 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9897 echo "configure:9898: checking for alloca" >&5
9899 cat > conftest.$ac_ext <<EOF
9900 #line 9901 "configure"
9901 #include "confdefs.h"
9904 # define alloca __builtin_alloca
9907 # include <malloc.h>
9908 # define alloca _alloca
9911 # include <alloca.h>
9916 # ifndef alloca /* predefined by HP cc +Olibcalls */
9925 char *p = (char *) alloca(1);
9928 if { (eval echo configure:9929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9930 ac_cv_func_alloca_works=yes
9932 echo "configure: failed program was:" >&5
9933 cat conftest.$ac_ext >&5
9935 ac_cv_func_alloca_works=no
9939 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
9940 if test $ac_cv_func_alloca_works = yes; then
9941 { test "$extra_verbose" = "yes" && cat << \EOF
9942 Defining HAVE_ALLOCA
9944 cat >> confdefs.h <<\EOF
9945 #define HAVE_ALLOCA 1
9951 if test $ac_cv_func_alloca_works = no; then
9952 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9953 # that cause trouble. Some versions do not even contain alloca or
9954 # contain a buggy version. If you still want to use their alloca,
9955 # use ar to extract alloca.o from them instead of compiling alloca.c.
9956 ALLOCA=alloca.${ac_objext}
9957 { test "$extra_verbose" = "yes" && cat << \EOF
9960 cat >> confdefs.h <<\EOF
9966 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9967 echo "configure:9968: checking whether alloca needs Cray hooks" >&5
9969 cat > conftest.$ac_ext <<EOF
9970 #line 9971 "configure"
9971 #include "confdefs.h"
9972 #if defined(CRAY) && ! defined(CRAY2)
9979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9980 egrep "webecray" >/dev/null 2>&1; then
9990 echo "$ac_t""$ac_cv_os_cray" 1>&6
9991 if test $ac_cv_os_cray = yes; then
9992 for ac_func in _getb67 GETB67 getb67; do
9993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9994 echo "configure:9995: checking for $ac_func" >&5
9996 cat > conftest.$ac_ext <<EOF
9997 #line 9998 "configure"
9998 #include "confdefs.h"
9999 /* System header to define __stub macros and hopefully few prototypes,
10000 which can conflict with char $ac_func(); below. */
10001 #include <assert.h>
10002 /* Override any gcc2 internal prototype to avoid an error. */
10003 /* We use char because int might match the return type of a gcc2
10004 builtin and then its argument prototype would still apply. */
10009 /* The GNU C library defines this for functions which it implements
10010 to always fail with ENOSYS. Some functions are actually named
10011 something starting with __ and the normal name is an alias. */
10012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10020 if { (eval echo configure:10021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10022 eval "ac_cv_func_$ac_func=yes"
10024 echo "configure: failed program was:" >&5
10025 cat conftest.$ac_ext >&5
10027 eval "ac_cv_func_$ac_func=no"
10031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10032 echo "$ac_t""yes" 1>&6
10033 { test "$extra_verbose" = "yes" && cat << EOF
10034 Defining CRAY_STACKSEG_END = $ac_func
10036 cat >> confdefs.h <<EOF
10037 #define CRAY_STACKSEG_END $ac_func
10043 echo "$ac_t""no" 1>&6
10049 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
10050 echo "configure:10051: checking stack direction for C alloca" >&5
10052 cat > conftest.$ac_ext <<EOF
10053 #line 10054 "configure"
10054 #include "confdefs.h"
10055 find_stack_direction ()
10057 static char *addr = 0;
10062 return find_stack_direction ();
10065 return (&dummy > addr) ? 1 : -1;
10069 exit (find_stack_direction() < 0);
10072 if { (eval echo configure:10073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10074 ac_cv_c_stack_direction=1
10077 echo "configure: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10080 ac_cv_c_stack_direction=-1
10084 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
10085 { test "$extra_verbose" = "yes" && cat << EOF
10086 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
10088 cat >> confdefs.h <<EOF
10089 #define STACK_DIRECTION $ac_cv_c_stack_direction
10095 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
10096 echo " xemacs will be linked with \"$ALLOCA\""
10099 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
10100 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
10101 echo "configure:10102: checking for vfork.h" >&5
10103 cat > conftest.$ac_ext <<EOF
10104 #line 10105 "configure"
10105 #include "confdefs.h"
10108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10109 { (eval echo configure:10110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10111 if test -z "$ac_err"; then
10113 eval "ac_cv_header_$ac_safe=yes"
10116 echo "configure: failed program was:" >&5
10117 cat conftest.$ac_ext >&5
10119 eval "ac_cv_header_$ac_safe=no"
10122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10123 echo "$ac_t""yes" 1>&6
10124 { test "$extra_verbose" = "yes" && cat << \EOF
10125 Defining HAVE_VFORK_H
10127 cat >> confdefs.h <<\EOF
10128 #define HAVE_VFORK_H 1
10133 echo "$ac_t""no" 1>&6
10136 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
10137 echo "configure:10138: checking for working vfork" >&5
10139 cat > conftest.$ac_ext <<EOF
10140 #line 10141 "configure"
10141 #include "confdefs.h"
10142 /* Thanks to Paul Eggert for this test. */
10144 #include <sys/types.h>
10145 #include <sys/stat.h>
10146 #ifdef HAVE_UNISTD_H
10147 #include <unistd.h>
10149 #ifdef HAVE_VFORK_H
10152 /* On some sparc systems, changes by the child to local and incoming
10153 argument registers are propagated back to the parent.
10154 The compiler is told about this with #include <vfork.h>,
10155 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
10156 Test for this by using a static variable whose address
10157 is put into a register that is clobbered by the vfork. */
10160 sparc_address_test (int arg)
10162 sparc_address_test (arg) int arg;
10165 static pid_t child;
10180 pid_t parent = getpid ();
10183 sparc_address_test ();
10188 /* Here is another test for sparc vfork register problems.
10189 This test uses lots of local variables, at least
10190 as many local variables as main has allocated so far
10191 including compiler temporaries. 4 locals are enough for
10192 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
10193 A buggy compiler should reuse the register of parent
10194 for one of the local variables, since it will think that
10195 parent can't possibly be used any more in this routine.
10196 Assigning to the local variable will thus munge parent
10197 in the parent process. */
10199 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10200 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10201 /* Convince the compiler that p..p7 are live; otherwise, it might
10202 use the same hardware register for all 8 local variables. */
10203 if (p != p1 || p != p2 || p != p3 || p != p4
10204 || p != p5 || p != p6 || p != p7)
10207 /* On some systems (e.g. IRIX 3.3),
10208 vfork doesn't separate parent from child file descriptors.
10209 If the child closes a descriptor before it execs or exits,
10210 this munges the parent's descriptor as well.
10211 Test for this by closing stdout in the child. */
10212 _exit(close(fileno(stdout)) != 0);
10217 while (wait(&status) != child)
10220 /* Was there some problem with vforking? */
10223 /* Did the child fail? (This shouldn't happen.) */
10226 /* Did the vfork/compiler bug occur? */
10227 || parent != getpid()
10229 /* Did the file descriptor bug occur? */
10230 || fstat(fileno(stdout), &st) != 0
10235 if { (eval echo configure:10236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10237 ac_cv_func_vfork_works=yes
10240 echo "configure: failed program was:" >&5
10241 cat conftest.$ac_ext >&5
10243 ac_cv_func_vfork_works=no
10247 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
10248 if test $ac_cv_func_vfork_works = no; then
10249 { test "$extra_verbose" = "yes" && cat << \EOF
10250 Defining vfork = fork
10252 cat >> confdefs.h <<\EOF
10260 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
10261 echo "configure:10262: checking for working strcoll" >&5
10263 cat > conftest.$ac_ext <<EOF
10264 #line 10265 "configure"
10265 #include "confdefs.h"
10266 #include <string.h>
10269 exit (strcoll ("abc", "def") >= 0 ||
10270 strcoll ("ABC", "DEF") >= 0 ||
10271 strcoll ("123", "456") >= 0);
10274 if { (eval echo configure:10275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10276 ac_cv_func_strcoll_works=yes
10279 echo "configure: failed program was:" >&5
10280 cat conftest.$ac_ext >&5
10282 ac_cv_func_strcoll_works=no
10286 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
10287 if test $ac_cv_func_strcoll_works = yes; then
10288 { test "$extra_verbose" = "yes" && cat << \EOF
10289 Defining HAVE_STRCOLL
10291 cat >> confdefs.h <<\EOF
10292 #define HAVE_STRCOLL 1
10299 for ac_func in getpgrp
10301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10302 echo "configure:10303: checking for $ac_func" >&5
10304 cat > conftest.$ac_ext <<EOF
10305 #line 10306 "configure"
10306 #include "confdefs.h"
10307 /* System header to define __stub macros and hopefully few prototypes,
10308 which can conflict with char $ac_func(); below. */
10309 #include <assert.h>
10310 /* Override any gcc2 internal prototype to avoid an error. */
10311 /* We use char because int might match the return type of a gcc2
10312 builtin and then its argument prototype would still apply. */
10317 /* The GNU C library defines this for functions which it implements
10318 to always fail with ENOSYS. Some functions are actually named
10319 something starting with __ and the normal name is an alias. */
10320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10328 if { (eval echo configure:10329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10330 eval "ac_cv_func_$ac_func=yes"
10332 echo "configure: failed program was:" >&5
10333 cat conftest.$ac_ext >&5
10335 eval "ac_cv_func_$ac_func=no"
10339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10340 echo "$ac_t""yes" 1>&6
10341 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10342 { test "$extra_verbose" = "yes" && cat << EOF
10343 Defining $ac_tr_func
10345 cat >> confdefs.h <<EOF
10346 #define $ac_tr_func 1
10351 echo "$ac_t""no" 1>&6
10355 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
10356 echo "configure:10357: checking whether getpgrp takes no argument" >&5
10358 cat > conftest.$ac_ext <<EOF
10359 #line 10360 "configure"
10360 #include "confdefs.h"
10363 * If this system has a BSD-style getpgrp(),
10364 * which takes a pid argument, exit unsuccessfully.
10366 * Snarfed from Chet Ramey's bash pgrp.c test program
10369 #include <sys/types.h>
10372 int pg1, pg2, pg3, pg4;
10373 int ng, np, s, child;
10380 pg3 = getpgrp(pid);
10384 * If all of these values are the same, it's pretty sure that
10385 * we're on a system that ignores getpgrp's first argument.
10387 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
10393 else if (child == 0) {
10396 * If this is Sys V, this will not work; pgrp will be
10397 * set to np because setpgrp just changes a pgrp to be
10398 * the same as the pid.
10401 ng = getpgrp(0); /* Same result for Sys V and BSD */
10414 if { (eval echo configure:10415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10416 ac_cv_func_getpgrp_void=yes
10419 echo "configure: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10422 ac_cv_func_getpgrp_void=no
10427 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
10428 if test $ac_cv_func_getpgrp_void = yes; then
10429 { test "$extra_verbose" = "yes" && cat << \EOF
10430 Defining GETPGRP_VOID
10432 cat >> confdefs.h <<\EOF
10433 #define GETPGRP_VOID 1
10440 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10441 echo "configure:10442: checking for working mmap" >&5
10442 case "$opsys" in ultrix* ) have_mmap=no ;; *)
10443 cat > conftest.$ac_ext <<EOF
10444 #line 10445 "configure"
10445 #include "confdefs.h"
10447 #include <unistd.h>
10449 #include <sys/mman.h>
10451 #ifndef MAP_VARIABLE
10452 #define MAP_VARIABLE 0
10456 #define MAP_FAILED -1
10459 int main (int argc, char *argv[])
10463 #ifndef MAP_ANONYMOUS
10464 fd = open ("/dev/zero", O_RDWR);
10467 #define MAP_ANONYMOUS 0
10469 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
10470 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
10471 fd, 0) != (void *) MAP_FAILED)
10473 perror ("conftest: mmap failed");
10477 if { (eval echo configure:10478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10482 echo "configure: failed program was:" >&5
10483 cat conftest.$ac_ext >&5
10487 rm -fr conftest* ;;
10489 echo "$ac_t""$have_mmap" 1>&6
10490 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10493 cat >> confdefs.h <<\EOF
10494 #define HAVE_MMAP 1
10499 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10500 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
10501 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10504 cat >> confdefs.h <<\EOF
10505 #define REL_ALLOC 1
10510 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10511 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10512 echo "configure:10513: checking for termios.h" >&5
10514 cat > conftest.$ac_ext <<EOF
10515 #line 10516 "configure"
10516 #include "confdefs.h"
10517 #include <termios.h>
10519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10520 { (eval echo configure:10521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10522 if test -z "$ac_err"; then
10524 eval "ac_cv_header_$ac_safe=yes"
10527 echo "configure: failed program was:" >&5
10528 cat conftest.$ac_ext >&5
10530 eval "ac_cv_header_$ac_safe=no"
10533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10534 echo "$ac_t""yes" 1>&6
10535 { test "$extra_verbose" = "yes" && cat << \EOF
10536 Defining HAVE_TERMIOS
10538 cat >> confdefs.h <<\EOF
10539 #define HAVE_TERMIOS 1
10543 { test "$extra_verbose" = "yes" && cat << \EOF
10544 Defining SIGNALS_VIA_CHARACTERS
10546 cat >> confdefs.h <<\EOF
10547 #define SIGNALS_VIA_CHARACTERS 1
10551 { test "$extra_verbose" = "yes" && cat << \EOF
10554 cat >> confdefs.h <<\EOF
10555 #define NO_TERMIO 1
10560 echo "$ac_t""no" 1>&6
10561 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10562 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10563 echo "configure:10564: checking for termio.h" >&5
10565 cat > conftest.$ac_ext <<EOF
10566 #line 10567 "configure"
10567 #include "confdefs.h"
10568 #include <termio.h>
10570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10571 { (eval echo configure:10572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10573 if test -z "$ac_err"; then
10575 eval "ac_cv_header_$ac_safe=yes"
10578 echo "configure: failed program was:" >&5
10579 cat conftest.$ac_ext >&5
10581 eval "ac_cv_header_$ac_safe=no"
10584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10585 echo "$ac_t""yes" 1>&6
10586 { test "$extra_verbose" = "yes" && cat << \EOF
10587 Defining HAVE_TERMIO
10589 cat >> confdefs.h <<\EOF
10590 #define HAVE_TERMIO 1
10595 echo "$ac_t""no" 1>&6
10602 echo $ac_n "checking for socket""... $ac_c" 1>&6
10603 echo "configure:10604: checking for socket" >&5
10605 cat > conftest.$ac_ext <<EOF
10606 #line 10607 "configure"
10607 #include "confdefs.h"
10608 /* System header to define __stub macros and hopefully few prototypes,
10609 which can conflict with char socket(); below. */
10610 #include <assert.h>
10611 /* Override any gcc2 internal prototype to avoid an error. */
10612 /* We use char because int might match the return type of a gcc2
10613 builtin and then its argument prototype would still apply. */
10618 /* The GNU C library defines this for functions which it implements
10619 to always fail with ENOSYS. Some functions are actually named
10620 something starting with __ and the normal name is an alias. */
10621 #if defined (__stub_socket) || defined (__stub___socket)
10629 if { (eval echo configure:10630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10631 eval "ac_cv_func_socket=yes"
10633 echo "configure: failed program was:" >&5
10634 cat conftest.$ac_ext >&5
10636 eval "ac_cv_func_socket=no"
10640 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10641 echo "$ac_t""yes" 1>&6
10642 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10643 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10644 echo "configure:10645: checking for netinet/in.h" >&5
10646 cat > conftest.$ac_ext <<EOF
10647 #line 10648 "configure"
10648 #include "confdefs.h"
10649 #include <netinet/in.h>
10651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10652 { (eval echo configure:10653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10654 if test -z "$ac_err"; then
10656 eval "ac_cv_header_$ac_safe=yes"
10659 echo "configure: failed program was:" >&5
10660 cat conftest.$ac_ext >&5
10662 eval "ac_cv_header_$ac_safe=no"
10665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10666 echo "$ac_t""yes" 1>&6
10667 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10668 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10669 echo "configure:10670: checking for arpa/inet.h" >&5
10671 cat > conftest.$ac_ext <<EOF
10672 #line 10673 "configure"
10673 #include "confdefs.h"
10674 #include <arpa/inet.h>
10676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10677 { (eval echo configure:10678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10679 if test -z "$ac_err"; then
10681 eval "ac_cv_header_$ac_safe=yes"
10684 echo "configure: failed program was:" >&5
10685 cat conftest.$ac_ext >&5
10687 eval "ac_cv_header_$ac_safe=no"
10690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10691 echo "$ac_t""yes" 1>&6
10693 { test "$extra_verbose" = "yes" && cat << \EOF
10694 Defining HAVE_SOCKETS
10696 cat >> confdefs.h <<\EOF
10697 #define HAVE_SOCKETS 1
10701 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10702 echo "configure:10703: checking "for sun_len member in struct sockaddr_un"" >&5
10703 cat > conftest.$ac_ext <<EOF
10704 #line 10705 "configure"
10705 #include "confdefs.h"
10707 #include <sys/types.h>
10708 #include <sys/socket.h>
10709 #include <sys/un.h>
10712 static struct sockaddr_un x; x.sun_len = 1;
10715 if { (eval echo configure:10716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10717 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10718 Defining HAVE_SOCKADDR_SUN_LEN
10720 cat >> confdefs.h <<\EOF
10721 #define HAVE_SOCKADDR_SUN_LEN 1
10726 echo "configure: failed program was:" >&5
10727 cat conftest.$ac_ext >&5
10729 echo "$ac_t""no" 1>&6
10732 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10733 echo "configure:10734: checking "for ip_mreq struct in netinet/in.h"" >&5
10734 cat > conftest.$ac_ext <<EOF
10735 #line 10736 "configure"
10736 #include "confdefs.h"
10738 #include <sys/types.h>
10739 #include <netinet/in.h>
10742 static struct ip_mreq x;
10745 if { (eval echo configure:10746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10747 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10748 Defining HAVE_MULTICAST
10750 cat >> confdefs.h <<\EOF
10751 #define HAVE_MULTICAST 1
10756 echo "configure: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10759 echo "$ac_t""no" 1>&6
10763 echo "$ac_t""no" 1>&6
10767 echo "$ac_t""no" 1>&6
10771 echo "$ac_t""no" 1>&6
10775 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10776 echo "configure:10777: checking for msgget" >&5
10778 cat > conftest.$ac_ext <<EOF
10779 #line 10780 "configure"
10780 #include "confdefs.h"
10781 /* System header to define __stub macros and hopefully few prototypes,
10782 which can conflict with char msgget(); below. */
10783 #include <assert.h>
10784 /* Override any gcc2 internal prototype to avoid an error. */
10785 /* We use char because int might match the return type of a gcc2
10786 builtin and then its argument prototype would still apply. */
10791 /* The GNU C library defines this for functions which it implements
10792 to always fail with ENOSYS. Some functions are actually named
10793 something starting with __ and the normal name is an alias. */
10794 #if defined (__stub_msgget) || defined (__stub___msgget)
10802 if { (eval echo configure:10803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10804 eval "ac_cv_func_msgget=yes"
10806 echo "configure: failed program was:" >&5
10807 cat conftest.$ac_ext >&5
10809 eval "ac_cv_func_msgget=no"
10813 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10814 echo "$ac_t""yes" 1>&6
10815 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10816 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10817 echo "configure:10818: checking for sys/ipc.h" >&5
10819 cat > conftest.$ac_ext <<EOF
10820 #line 10821 "configure"
10821 #include "confdefs.h"
10822 #include <sys/ipc.h>
10824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10825 { (eval echo configure:10826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10827 if test -z "$ac_err"; then
10829 eval "ac_cv_header_$ac_safe=yes"
10832 echo "configure: failed program was:" >&5
10833 cat conftest.$ac_ext >&5
10835 eval "ac_cv_header_$ac_safe=no"
10838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10839 echo "$ac_t""yes" 1>&6
10840 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10841 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10842 echo "configure:10843: checking for sys/msg.h" >&5
10844 cat > conftest.$ac_ext <<EOF
10845 #line 10846 "configure"
10846 #include "confdefs.h"
10847 #include <sys/msg.h>
10849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10850 { (eval echo configure:10851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10852 if test -z "$ac_err"; then
10854 eval "ac_cv_header_$ac_safe=yes"
10857 echo "configure: failed program was:" >&5
10858 cat conftest.$ac_ext >&5
10860 eval "ac_cv_header_$ac_safe=no"
10863 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10864 echo "$ac_t""yes" 1>&6
10865 { test "$extra_verbose" = "yes" && cat << \EOF
10866 Defining HAVE_SYSVIPC
10868 cat >> confdefs.h <<\EOF
10869 #define HAVE_SYSVIPC 1
10874 echo "$ac_t""no" 1>&6
10878 echo "$ac_t""no" 1>&6
10882 echo "$ac_t""no" 1>&6
10886 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10887 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10888 echo "configure:10889: checking for dirent.h" >&5
10890 cat > conftest.$ac_ext <<EOF
10891 #line 10892 "configure"
10892 #include "confdefs.h"
10893 #include <dirent.h>
10895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10896 { (eval echo configure:10897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10898 if test -z "$ac_err"; then
10900 eval "ac_cv_header_$ac_safe=yes"
10903 echo "configure: failed program was:" >&5
10904 cat conftest.$ac_ext >&5
10906 eval "ac_cv_header_$ac_safe=no"
10909 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10910 echo "$ac_t""yes" 1>&6
10911 { test "$extra_verbose" = "yes" && cat << \EOF
10912 Defining SYSV_SYSTEM_DIR
10914 cat >> confdefs.h <<\EOF
10915 #define SYSV_SYSTEM_DIR 1
10920 echo "$ac_t""no" 1>&6
10921 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10922 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10923 echo "configure:10924: checking for sys/dir.h" >&5
10925 cat > conftest.$ac_ext <<EOF
10926 #line 10927 "configure"
10927 #include "confdefs.h"
10928 #include <sys/dir.h>
10930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10931 { (eval echo configure:10932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10933 if test -z "$ac_err"; then
10935 eval "ac_cv_header_$ac_safe=yes"
10938 echo "configure: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10941 eval "ac_cv_header_$ac_safe=no"
10944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10945 echo "$ac_t""yes" 1>&6
10948 echo "$ac_t""no" 1>&6
10949 { test "$extra_verbose" = "yes" && cat << \EOF
10950 Defining NONSYSTEM_DIR_LIBRARY
10952 cat >> confdefs.h <<\EOF
10953 #define NONSYSTEM_DIR_LIBRARY 1
10962 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10963 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10964 echo "configure:10965: checking for nlist.h" >&5
10966 cat > conftest.$ac_ext <<EOF
10967 #line 10968 "configure"
10968 #include "confdefs.h"
10971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10972 { (eval echo configure:10973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10974 if test -z "$ac_err"; then
10976 eval "ac_cv_header_$ac_safe=yes"
10979 echo "configure: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10982 eval "ac_cv_header_$ac_safe=no"
10985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10986 echo "$ac_t""yes" 1>&6
10987 { test "$extra_verbose" = "yes" && cat << \EOF
10988 Defining NLIST_STRUCT
10990 cat >> confdefs.h <<\EOF
10991 #define NLIST_STRUCT 1
10996 echo "$ac_t""no" 1>&6
11001 echo "checking "for sound support"" 1>&6
11002 echo "configure:11003: checking "for sound support"" >&5
11003 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
11005 if test "$with_native_sound" != "no"; then
11006 if test -n "$native_sound_lib"; then
11007 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
11008 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
11009 echo "configure:11010: checking for multimedia/audio_device.h" >&5
11011 cat > conftest.$ac_ext <<EOF
11012 #line 11013 "configure"
11013 #include "confdefs.h"
11014 #include <multimedia/audio_device.h>
11016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11017 { (eval echo configure:11018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11019 if test -z "$ac_err"; then
11021 eval "ac_cv_header_$ac_safe=yes"
11024 echo "configure: failed program was:" >&5
11025 cat conftest.$ac_ext >&5
11027 eval "ac_cv_header_$ac_safe=no"
11030 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11031 echo "$ac_t""yes" 1>&6
11032 sound_found=yes sound_cflags=""
11033 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
11034 echo " xemacs will be linked with \"sunplay.o\""
11037 echo "$ac_t""no" 1>&6
11042 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
11044 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
11045 echo " xemacs will be linked with \"sunplay.o\""
11047 if test -d "/usr/demo/SOUND/include"
11048 then sound_cflags="-I/usr/demo/SOUND/include"
11049 else sound_cflags="-I/usr/demo/SOUND"
11051 if test -z "$native_sound_lib" ; then
11052 if test -r "/usr/demo/SOUND/lib/libaudio.a"
11053 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
11054 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
11059 if test -z "$sound_found"; then
11060 case "$canonical" in
11062 if test -z "$native_sound_lib"; then
11064 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
11065 echo "configure:11066: checking for ALopenport in -laudio" >&5
11066 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
11068 xe_check_libs=" -laudio "
11069 cat > conftest.$ac_ext <<EOF
11070 #line 11071 "configure"
11071 #include "confdefs.h"
11072 /* Override any gcc2 internal prototype to avoid an error. */
11073 /* We use char because int might match the return type of a gcc2
11074 builtin and then its argument prototype would still apply. */
11081 if { (eval echo configure:11082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11083 eval "ac_cv_lib_$ac_lib_var=yes"
11085 echo "configure: failed program was:" >&5
11086 cat conftest.$ac_ext >&5
11088 eval "ac_cv_lib_$ac_lib_var=no"
11093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11094 echo "$ac_t""yes" 1>&6
11095 native_sound_lib="-laudio"
11097 echo "$ac_t""no" 1>&6
11102 if test -n "$native_sound_lib"; then
11103 sound_found=yes sound_cflags=""
11104 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
11105 echo " xemacs will be linked with \"sgiplay.o\""
11109 if test -z "$native_sound_lib"; then
11111 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
11112 echo "configure:11113: checking for AOpenAudio in -lAlib" >&5
11113 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
11115 xe_check_libs=" -lAlib "
11116 cat > conftest.$ac_ext <<EOF
11117 #line 11118 "configure"
11118 #include "confdefs.h"
11119 /* Override any gcc2 internal prototype to avoid an error. */
11120 /* We use char because int might match the return type of a gcc2
11121 builtin and then its argument prototype would still apply. */
11128 if { (eval echo configure:11129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11130 eval "ac_cv_lib_$ac_lib_var=yes"
11132 echo "configure: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11135 eval "ac_cv_lib_$ac_lib_var=no"
11140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11141 echo "$ac_t""yes" 1>&6
11142 native_sound_lib="-lAlib"
11144 echo "$ac_t""no" 1>&6
11149 if test -n "$native_sound_lib"; then
11151 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
11152 echo " xemacs will be linked with \"hpplay.o\""
11154 if test "$GCC" = "yes" # Kludge city
11155 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
11156 else sound_cflags="+e -I/usr/audio/examples"
11162 if test -z "$sound_found"; then
11163 for dir in "machine" "sys" "linux"; do
11164 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
11165 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
11166 echo "configure:11167: checking for ${dir}/soundcard.h" >&5
11168 cat > conftest.$ac_ext <<EOF
11169 #line 11170 "configure"
11170 #include "confdefs.h"
11171 #include <${dir}/soundcard.h>
11173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11174 { (eval echo configure:11175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11176 if test -z "$ac_err"; then
11178 eval "ac_cv_header_$ac_safe=yes"
11181 echo "configure: failed program was:" >&5
11182 cat conftest.$ac_ext >&5
11184 eval "ac_cv_header_$ac_safe=no"
11187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11188 echo "$ac_t""yes" 1>&6
11191 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
11192 echo " xemacs will be linked with \"linuxplay.o\""
11194 { test "$extra_verbose" = "yes" && cat << EOF
11195 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
11197 cat >> confdefs.h <<EOF
11198 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
11204 echo "$ac_t""no" 1>&6
11210 test "$sound_found" = "yes" && with_native_sound=yes
11213 if test "$with_native_sound" = "yes"; then
11214 { test "$extra_verbose" = "yes" && cat << \EOF
11215 Defining HAVE_NATIVE_SOUND
11217 cat >> confdefs.h <<\EOF
11218 #define HAVE_NATIVE_SOUND 1
11222 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
11225 if test "$with_nas_sound" != "no"; then
11226 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
11227 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
11228 echo "configure:11229: checking for audio/audiolib.h" >&5
11230 cat > conftest.$ac_ext <<EOF
11231 #line 11232 "configure"
11232 #include "confdefs.h"
11233 #include <audio/audiolib.h>
11235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11236 { (eval echo configure:11237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11238 if test -z "$ac_err"; then
11240 eval "ac_cv_header_$ac_safe=yes"
11243 echo "configure: failed program was:" >&5
11244 cat conftest.$ac_ext >&5
11246 eval "ac_cv_header_$ac_safe=no"
11249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11250 echo "$ac_t""yes" 1>&6
11253 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
11254 echo "configure:11255: checking for AuOpenServer in -laudio" >&5
11255 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
11257 xe_check_libs=" -laudio "
11258 cat > conftest.$ac_ext <<EOF
11259 #line 11260 "configure"
11260 #include "confdefs.h"
11261 /* Override any gcc2 internal prototype to avoid an error. */
11262 /* We use char because int might match the return type of a gcc2
11263 builtin and then its argument prototype would still apply. */
11264 char AuOpenServer();
11270 if { (eval echo configure:11271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11272 eval "ac_cv_lib_$ac_lib_var=yes"
11274 echo "configure: failed program was:" >&5
11275 cat conftest.$ac_ext >&5
11277 eval "ac_cv_lib_$ac_lib_var=no"
11282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11283 echo "$ac_t""yes" 1>&6
11286 echo "$ac_t""no" 1>&6
11291 echo "$ac_t""no" 1>&6
11294 if test "$have_nas_sound" = "yes"; then
11296 { test "$extra_verbose" = "yes" && cat << \EOF
11297 Defining HAVE_NAS_SOUND
11299 cat >> confdefs.h <<\EOF
11300 #define HAVE_NAS_SOUND 1
11304 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
11305 echo " xemacs will be linked with \"nas.o\""
11307 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
11308 cat > conftest.$ac_ext <<EOF
11309 #line 11310 "configure"
11310 #include "confdefs.h"
11311 #include <audio/Xtutil.h>
11313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11314 egrep "AuXtErrorJump" >/dev/null 2>&1; then
11318 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
11319 Defining NAS_NO_ERROR_JUMP
11321 cat >> confdefs.h <<\EOF
11322 #define NAS_NO_ERROR_JUMP 1
11330 test "$with_nas_sound" = "yes" && \
11331 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
11336 if test "$with_esd_sound" != "no"; then
11337 # Extract the first word of "esd-config", so it can be a program name with args.
11338 set dummy esd-config; ac_word=$2
11339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11340 echo "configure:11341: checking for $ac_word" >&5
11342 if test -n "$have_esd_config"; then
11343 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
11345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11347 for ac_dir in $ac_dummy; do
11348 test -z "$ac_dir" && ac_dir=.
11349 if test -f $ac_dir/$ac_word; then
11350 ac_cv_prog_have_esd_config="yes"
11355 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
11357 have_esd_config="$ac_cv_prog_have_esd_config"
11358 if test -n "$have_esd_config"; then
11359 echo "$ac_t""$have_esd_config" 1>&6
11361 echo "$ac_t""no" 1>&6
11364 if test "$have_esd_config" = "yes"; then
11365 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
11366 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi
11367 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
11368 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
11369 echo "configure:11370: checking for esd_play_stream" >&5
11371 cat > conftest.$ac_ext <<EOF
11372 #line 11373 "configure"
11373 #include "confdefs.h"
11374 /* System header to define __stub macros and hopefully few prototypes,
11375 which can conflict with char esd_play_stream(); below. */
11376 #include <assert.h>
11377 /* Override any gcc2 internal prototype to avoid an error. */
11378 /* We use char because int might match the return type of a gcc2
11379 builtin and then its argument prototype would still apply. */
11380 char esd_play_stream();
11384 /* The GNU C library defines this for functions which it implements
11385 to always fail with ENOSYS. Some functions are actually named
11386 something starting with __ and the normal name is an alias. */
11387 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
11395 if { (eval echo configure:11396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11397 eval "ac_cv_func_esd_play_stream=yes"
11399 echo "configure: failed program was:" >&5
11400 cat conftest.$ac_ext >&5
11402 eval "ac_cv_func_esd_play_stream=no"
11406 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
11407 echo "$ac_t""yes" 1>&6
11410 echo "$ac_t""no" 1>&6
11411 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
11416 if test "$have_esd_sound" = "yes"; then
11419 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
11420 echo " xemacs will be linked with \"esd.o\""
11422 { test "$extra_verbose" = "yes" && cat << \EOF
11423 Defining HAVE_ESD_SOUND
11425 cat >> confdefs.h <<\EOF
11426 #define HAVE_ESD_SOUND 1
11431 test "$with_esd_sound" = "yes" && \
11432 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
11437 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
11438 echo " xemacs will be linked with \"miscplay.o\""
11442 test -z "$with_tty" && with_tty=yes
11444 if test "$with_tty" = "yes" ; then
11445 echo "checking for TTY-related features" 1>&6
11446 echo "configure:11447: checking for TTY-related features" >&5
11447 { test "$extra_verbose" = "yes" && cat << \EOF
11450 cat >> confdefs.h <<\EOF
11455 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
11456 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\""
11459 if test -z "$with_ncurses"; then
11461 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
11462 echo "configure:11463: checking for tgetent in -lncurses" >&5
11463 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
11465 xe_check_libs=" -lncurses "
11466 cat > conftest.$ac_ext <<EOF
11467 #line 11468 "configure"
11468 #include "confdefs.h"
11469 /* Override any gcc2 internal prototype to avoid an error. */
11470 /* We use char because int might match the return type of a gcc2
11471 builtin and then its argument prototype would still apply. */
11478 if { (eval echo configure:11479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11480 eval "ac_cv_lib_$ac_lib_var=yes"
11482 echo "configure: failed program was:" >&5
11483 cat conftest.$ac_ext >&5
11485 eval "ac_cv_lib_$ac_lib_var=no"
11490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11491 echo "$ac_t""yes" 1>&6
11494 echo "$ac_t""no" 1>&6
11500 if test "$with_ncurses" = "yes"; then
11501 { test "$extra_verbose" = "yes" && cat << \EOF
11502 Defining HAVE_NCURSES
11504 cat >> confdefs.h <<\EOF
11505 #define HAVE_NCURSES 1
11509 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11510 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11511 echo "configure:11512: checking for ncurses/curses.h" >&5
11513 cat > conftest.$ac_ext <<EOF
11514 #line 11515 "configure"
11515 #include "confdefs.h"
11516 #include <ncurses/curses.h>
11518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11519 { (eval echo configure:11520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11521 if test -z "$ac_err"; then
11523 eval "ac_cv_header_$ac_safe=yes"
11526 echo "configure: failed program was:" >&5
11527 cat conftest.$ac_ext >&5
11529 eval "ac_cv_header_$ac_safe=no"
11532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11533 echo "$ac_t""yes" 1>&6
11534 curses_h_path=ncurses/curses.h
11536 echo "$ac_t""no" 1>&6
11539 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
11540 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
11541 echo "configure:11542: checking for ncurses/term.h" >&5
11543 cat > conftest.$ac_ext <<EOF
11544 #line 11545 "configure"
11545 #include "confdefs.h"
11546 #include <ncurses/term.h>
11548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11549 { (eval echo configure:11550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11551 if test -z "$ac_err"; then
11553 eval "ac_cv_header_$ac_safe=yes"
11556 echo "configure: failed program was:" >&5
11557 cat conftest.$ac_ext >&5
11559 eval "ac_cv_header_$ac_safe=no"
11562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11563 echo "$ac_t""yes" 1>&6
11564 term_h_path=ncurses/term.h
11566 echo "$ac_t""no" 1>&6
11569 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11570 echo " xemacs will be linked with \"terminfo.o\""
11572 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
11574 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
11575 save_c_switch_site="$c_switch_site"
11576 c_switch_site="$c_switch_site -I/usr/include/ncurses"
11577 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11578 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11579 echo "configure:11580: checking for ncurses/curses.h" >&5
11581 cat > conftest.$ac_ext <<EOF
11582 #line 11583 "configure"
11583 #include "confdefs.h"
11584 #include <ncurses/curses.h>
11586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11587 { (eval echo configure:11588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11589 if test -z "$ac_err"; then
11591 eval "ac_cv_header_$ac_safe=yes"
11594 echo "configure: failed program was:" >&5
11595 cat conftest.$ac_ext >&5
11597 eval "ac_cv_header_$ac_safe=no"
11600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11601 echo "$ac_t""yes" 1>&6
11602 curses_h_path=ncurses/curses.h
11604 echo "$ac_t""no" 1>&6
11607 if test "$ac_cv_header_ncurses_curses_h" = "yes"
11608 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
11609 else c_switch_site="$save_c_switch_site"
11612 else if test "$have_terminfo" = "yes"; then
11613 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11614 echo " xemacs will be linked with \"terminfo.o\""
11616 if test -n "$libs_termcap"; then
11617 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11619 for lib in curses termlib termcap; do
11621 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
11622 echo "configure:11623: checking for tgetent in -l$lib" >&5
11623 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
11625 xe_check_libs=" -l$lib "
11626 cat > conftest.$ac_ext <<EOF
11627 #line 11628 "configure"
11628 #include "confdefs.h"
11629 /* Override any gcc2 internal prototype to avoid an error. */
11630 /* We use char because int might match the return type of a gcc2
11631 builtin and then its argument prototype would still apply. */
11638 if { (eval echo configure:11639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11640 eval "ac_cv_lib_$ac_lib_var=yes"
11642 echo "configure: failed program was:" >&5
11643 cat conftest.$ac_ext >&5
11645 eval "ac_cv_lib_$ac_lib_var=no"
11650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11651 echo "$ac_t""yes" 1>&6
11652 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
11654 echo "$ac_t""no" 1>&6
11660 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
11661 echo " xemacs will be linked with \"tparam.o\""
11663 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
11664 if test -n "$libs_termcap"; then
11665 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11668 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11669 echo "configure:11670: checking for tgetent in -lcurses" >&5
11670 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11672 xe_check_libs=" -lcurses "
11673 cat > conftest.$ac_ext <<EOF
11674 #line 11675 "configure"
11675 #include "confdefs.h"
11676 /* Override any gcc2 internal prototype to avoid an error. */
11677 /* We use char because int might match the return type of a gcc2
11678 builtin and then its argument prototype would still apply. */
11685 if { (eval echo configure:11686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11687 eval "ac_cv_lib_$ac_lib_var=yes"
11689 echo "configure: failed program was:" >&5
11690 cat conftest.$ac_ext >&5
11692 eval "ac_cv_lib_$ac_lib_var=no"
11697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11698 echo "$ac_t""yes" 1>&6
11699 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11701 echo "$ac_t""no" 1>&6
11702 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11703 echo "configure:11704: checking for tgetent in -ltermcap" >&5
11704 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11706 xe_check_libs=" -ltermcap "
11707 cat > conftest.$ac_ext <<EOF
11708 #line 11709 "configure"
11709 #include "confdefs.h"
11710 /* Override any gcc2 internal prototype to avoid an error. */
11711 /* We use char because int might match the return type of a gcc2
11712 builtin and then its argument prototype would still apply. */
11719 if { (eval echo configure:11720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11721 eval "ac_cv_lib_$ac_lib_var=yes"
11723 echo "configure: failed program was:" >&5
11724 cat conftest.$ac_ext >&5
11726 eval "ac_cv_lib_$ac_lib_var=no"
11731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11732 echo "$ac_t""yes" 1>&6
11733 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
11735 echo "$ac_t""no" 1>&6
11736 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
11737 echo " xemacs will be linked with \"termcap.o\""
11748 { test "$extra_verbose" = "yes" && cat << EOF
11749 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
11751 cat >> confdefs.h <<EOF
11752 #define CURSES_H_PATH "${curses_h_path-curses.h}"
11756 { test "$extra_verbose" = "yes" && cat << EOF
11757 Defining TERM_H_PATH = "${term_h_path-term.h}"
11759 cat >> confdefs.h <<EOF
11760 #define TERM_H_PATH "${term_h_path-term.h}"
11765 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11766 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11767 echo "configure:11768: checking for gpm.h" >&5
11769 cat > conftest.$ac_ext <<EOF
11770 #line 11771 "configure"
11771 #include "confdefs.h"
11774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11775 { (eval echo configure:11776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11777 if test -z "$ac_err"; then
11779 eval "ac_cv_header_$ac_safe=yes"
11782 echo "configure: failed program was:" >&5
11783 cat conftest.$ac_ext >&5
11785 eval "ac_cv_header_$ac_safe=no"
11788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11789 echo "$ac_t""yes" 1>&6
11792 echo "$ac_t""no" 1>&6
11796 test -z "$with_gpm" && {
11797 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11798 echo "configure:11799: checking for Gpm_Open in -lgpm" >&5
11799 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11801 xe_check_libs=" -lgpm "
11802 cat > conftest.$ac_ext <<EOF
11803 #line 11804 "configure"
11804 #include "confdefs.h"
11805 /* Override any gcc2 internal prototype to avoid an error. */
11806 /* We use char because int might match the return type of a gcc2
11807 builtin and then its argument prototype would still apply. */
11814 if { (eval echo configure:11815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11816 eval "ac_cv_lib_$ac_lib_var=yes"
11818 echo "configure: failed program was:" >&5
11819 cat conftest.$ac_ext >&5
11821 eval "ac_cv_lib_$ac_lib_var=no"
11826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11827 echo "$ac_t""yes" 1>&6
11830 echo "$ac_t""no" 1>&6
11835 if test "$with_gpm" = "yes"; then
11836 { test "$extra_verbose" = "yes" && cat << \EOF
11839 cat >> confdefs.h <<\EOF
11844 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
11845 echo " xemacs will be linked with \"gpmevent.o\""
11847 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
11850 else for feature in ncurses gpm; do
11851 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11852 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
11854 eval "with_${feature}=no"
11857 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
11858 echo " xemacs will be linked with \"event-unixoid.o\""
11862 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
11863 != "no no no" && echo "checking for database support" 1>&6
11864 echo "configure:11865: checking for database support" >&5
11866 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
11867 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11868 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11869 echo "configure:11870: checking for ndbm.h" >&5
11871 cat > conftest.$ac_ext <<EOF
11872 #line 11873 "configure"
11873 #include "confdefs.h"
11876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11877 { (eval echo configure:11878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11879 if test -z "$ac_err"; then
11881 eval "ac_cv_header_$ac_safe=yes"
11884 echo "configure: failed program was:" >&5
11885 cat conftest.$ac_ext >&5
11887 eval "ac_cv_header_$ac_safe=no"
11890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11891 echo "$ac_t""yes" 1>&6
11894 echo "$ac_t""no" 1>&6
11896 test "$with_database_gdbm" = "yes" -o \
11897 "$with_database_dbm" = "yes" && \
11898 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11899 with_database_gdbm=no with_database_dbm=no
11904 if test "$with_database_gdbm" != "no"; then
11906 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11907 echo "configure:11908: checking for dbm_open in -lgdbm" >&5
11908 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11910 xe_check_libs=" -lgdbm "
11911 cat > conftest.$ac_ext <<EOF
11912 #line 11913 "configure"
11913 #include "confdefs.h"
11914 /* Override any gcc2 internal prototype to avoid an error. */
11915 /* We use char because int might match the return type of a gcc2
11916 builtin and then its argument prototype would still apply. */
11923 if { (eval echo configure:11924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11925 eval "ac_cv_lib_$ac_lib_var=yes"
11927 echo "configure: failed program was:" >&5
11928 cat conftest.$ac_ext >&5
11930 eval "ac_cv_lib_$ac_lib_var=no"
11935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11936 echo "$ac_t""yes" 1>&6
11937 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
11939 echo "$ac_t""no" 1>&6
11940 if test "$with_database_gdbm" = "yes"; then
11941 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
11943 with_database_gdbm=no
11949 if test "$with_database_dbm" != "no"; then
11950 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11951 echo "configure:11952: checking for dbm_open" >&5
11953 cat > conftest.$ac_ext <<EOF
11954 #line 11955 "configure"
11955 #include "confdefs.h"
11956 /* System header to define __stub macros and hopefully few prototypes,
11957 which can conflict with char dbm_open(); below. */
11958 #include <assert.h>
11959 /* Override any gcc2 internal prototype to avoid an error. */
11960 /* We use char because int might match the return type of a gcc2
11961 builtin and then its argument prototype would still apply. */
11966 /* The GNU C library defines this for functions which it implements
11967 to always fail with ENOSYS. Some functions are actually named
11968 something starting with __ and the normal name is an alias. */
11969 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11977 if { (eval echo configure:11978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11979 eval "ac_cv_func_dbm_open=yes"
11981 echo "configure: failed program was:" >&5
11982 cat conftest.$ac_ext >&5
11984 eval "ac_cv_func_dbm_open=no"
11988 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11989 echo "$ac_t""yes" 1>&6
11990 with_database_dbm=yes libdbm=
11992 echo "$ac_t""no" 1>&6
11995 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11996 echo "configure:11997: checking for dbm_open in -ldbm" >&5
11997 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11999 xe_check_libs=" -ldbm "
12000 cat > conftest.$ac_ext <<EOF
12001 #line 12002 "configure"
12002 #include "confdefs.h"
12003 /* Override any gcc2 internal prototype to avoid an error. */
12004 /* We use char because int might match the return type of a gcc2
12005 builtin and then its argument prototype would still apply. */
12012 if { (eval echo configure:12013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12014 eval "ac_cv_lib_$ac_lib_var=yes"
12016 echo "configure: failed program was:" >&5
12017 cat conftest.$ac_ext >&5
12019 eval "ac_cv_lib_$ac_lib_var=no"
12024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12025 echo "$ac_t""yes" 1>&6
12026 with_database_dbm=yes libdbm=-ldbm
12028 echo "$ac_t""no" 1>&6
12029 test "$with_database_dbm" = "yes" && \
12030 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
12031 with_database_dbm=no
12039 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
12040 test "$with_database_gdbm" = "yes" -o \
12041 "$with_database_dbm" = "yes" && \
12042 { test "$extra_verbose" = "yes" && cat << \EOF
12045 cat >> confdefs.h <<\EOF
12051 if test "$with_database_berkdb" != "no"; then
12052 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
12053 echo "configure:12054: checking for Berkeley db.h" >&5
12054 for path in "db/db.h" "db.h"; do
12055 cat > conftest.$ac_ext <<EOF
12056 #line 12057 "configure"
12057 #include "confdefs.h"
12058 #ifdef HAVE_INTTYPES_H
12059 #define __BIT_TYPES_DEFINED__
12060 #include <inttypes.h>
12061 typedef uint8_t u_int8_t;
12062 typedef uint16_t u_int16_t;
12063 typedef uint32_t u_int32_t;
12064 #ifdef WE_DONT_NEED_QUADS
12065 typedef uint64_t u_int64_t;
12074 if { (eval echo configure:12075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12076 db_h_path="$path"; break
12078 echo "configure: failed program was:" >&5
12079 cat conftest.$ac_ext >&5
12083 if test -z "$db_h_path"
12084 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
12085 else echo "$ac_t""$db_h_path" 1>&6
12088 if test "$with_database_berkdb" != "no"; then
12089 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
12090 echo "configure:12091: checking for Berkeley DB version" >&5
12091 cat > conftest.$ac_ext <<EOF
12092 #line 12093 "configure"
12093 #include "confdefs.h"
12094 #include <$db_h_path>
12095 #if DB_VERSION_MAJOR > 1
12100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12101 egrep "yes" >/dev/null 2>&1; then
12103 echo "$ac_t""2" 1>&6; dbfunc=db_open
12106 echo "$ac_t""1" 1>&6; dbfunc=dbopen
12110 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
12111 echo "configure:12112: checking for $dbfunc" >&5
12113 cat > conftest.$ac_ext <<EOF
12114 #line 12115 "configure"
12115 #include "confdefs.h"
12116 /* System header to define __stub macros and hopefully few prototypes,
12117 which can conflict with char $dbfunc(); below. */
12118 #include <assert.h>
12119 /* Override any gcc2 internal prototype to avoid an error. */
12120 /* We use char because int might match the return type of a gcc2
12121 builtin and then its argument prototype would still apply. */
12126 /* The GNU C library defines this for functions which it implements
12127 to always fail with ENOSYS. Some functions are actually named
12128 something starting with __ and the normal name is an alias. */
12129 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
12137 if { (eval echo configure:12138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12139 eval "ac_cv_func_$dbfunc=yes"
12141 echo "configure: failed program was:" >&5
12142 cat conftest.$ac_ext >&5
12144 eval "ac_cv_func_$dbfunc=no"
12148 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
12149 echo "$ac_t""yes" 1>&6
12150 with_database_berkdb=yes need_libdb=no
12152 echo "$ac_t""no" 1>&6
12155 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
12156 echo "configure:12157: checking for $dbfunc in -ldb" >&5
12157 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
12159 xe_check_libs=" -ldb "
12160 cat > conftest.$ac_ext <<EOF
12161 #line 12162 "configure"
12162 #include "confdefs.h"
12163 /* Override any gcc2 internal prototype to avoid an error. */
12164 /* We use char because int might match the return type of a gcc2
12165 builtin and then its argument prototype would still apply. */
12172 if { (eval echo configure:12173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12174 eval "ac_cv_lib_$ac_lib_var=yes"
12176 echo "configure: failed program was:" >&5
12177 cat conftest.$ac_ext >&5
12179 eval "ac_cv_lib_$ac_lib_var=no"
12184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12185 echo "$ac_t""yes" 1>&6
12186 with_database_berkdb=yes need_libdb=yes
12188 echo "$ac_t""no" 1>&6
12196 if test "$with_database_berkdb" = "yes"; then
12197 { test "$extra_verbose" = "yes" && cat << EOF
12198 Defining DB_H_PATH = "$db_h_path"
12200 cat >> confdefs.h <<EOF
12201 #define DB_H_PATH "$db_h_path"
12205 { test "$extra_verbose" = "yes" && cat << \EOF
12206 Defining HAVE_BERKELEY_DB
12208 cat >> confdefs.h <<\EOF
12209 #define HAVE_BERKELEY_DB 1
12213 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
12214 else with_database_berkdb=no
12218 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
12219 != "no no no"; then
12220 { test "$extra_verbose" = "yes" && cat << \EOF
12221 Defining HAVE_DATABASE
12223 cat >> confdefs.h <<\EOF
12224 #define HAVE_DATABASE 1
12228 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
12229 echo " xemacs will be linked with \"database.o\""
12233 if test "$with_socks" = "yes"; then
12235 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
12236 echo "configure:12237: checking for SOCKSinit in -lsocks" >&5
12237 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
12239 xe_check_libs=" -lsocks "
12240 cat > conftest.$ac_ext <<EOF
12241 #line 12242 "configure"
12242 #include "confdefs.h"
12243 /* Override any gcc2 internal prototype to avoid an error. */
12244 /* We use char because int might match the return type of a gcc2
12245 builtin and then its argument prototype would still apply. */
12252 if { (eval echo configure:12253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12254 eval "ac_cv_lib_$ac_lib_var=yes"
12256 echo "configure: failed program was:" >&5
12257 cat conftest.$ac_ext >&5
12259 eval "ac_cv_lib_$ac_lib_var=no"
12264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12265 echo "$ac_t""yes" 1>&6
12266 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12267 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12268 { test "$extra_verbose" = "yes" && cat << EOF
12269 Defining $ac_tr_lib
12271 cat >> confdefs.h <<EOF
12272 #define $ac_tr_lib 1
12276 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
12279 echo "$ac_t""no" 1>&6
12283 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
12284 Defining HAVE_SOCKS
12286 cat >> confdefs.h <<\EOF
12287 #define HAVE_SOCKS 1
12293 if test "$usage_tracking" = "yes"; then
12294 { test "$extra_verbose" = "yes" && cat << \EOF
12295 Defining USAGE_TRACKING
12297 cat >> confdefs.h <<\EOF
12298 #define USAGE_TRACKING 1
12302 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
12305 if test "$with_modules" != "no"; then
12306 echo "checking for module support" 1>&6
12307 echo "configure:12308: checking for module support" >&5
12309 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
12310 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
12311 echo "configure:12312: checking for dlfcn.h" >&5
12313 cat > conftest.$ac_ext <<EOF
12314 #line 12315 "configure"
12315 #include "confdefs.h"
12318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12319 { (eval echo configure:12320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12321 if test -z "$ac_err"; then
12323 eval "ac_cv_header_$ac_safe=yes"
12326 echo "configure: failed program was:" >&5
12327 cat conftest.$ac_ext >&5
12329 eval "ac_cv_header_$ac_safe=no"
12332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12333 echo "$ac_t""yes" 1>&6
12336 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12337 echo "configure:12338: checking for dlopen in -ldl" >&5
12338 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12340 xe_check_libs=" -ldl "
12341 cat > conftest.$ac_ext <<EOF
12342 #line 12343 "configure"
12343 #include "confdefs.h"
12344 /* Override any gcc2 internal prototype to avoid an error. */
12345 /* We use char because int might match the return type of a gcc2
12346 builtin and then its argument prototype would still apply. */
12353 if { (eval echo configure:12354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12355 eval "ac_cv_lib_$ac_lib_var=yes"
12357 echo "configure: failed program was:" >&5
12358 cat conftest.$ac_ext >&5
12360 eval "ac_cv_lib_$ac_lib_var=no"
12365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12366 echo "$ac_t""yes" 1>&6
12367 have_dl=yes libdl=dl
12369 echo "$ac_t""no" 1>&6
12371 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
12372 echo "configure:12373: checking for dlopen in -lc" >&5
12373 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
12375 xe_check_libs=" -lc "
12376 cat > conftest.$ac_ext <<EOF
12377 #line 12378 "configure"
12378 #include "confdefs.h"
12379 /* Override any gcc2 internal prototype to avoid an error. */
12380 /* We use char because int might match the return type of a gcc2
12381 builtin and then its argument prototype would still apply. */
12388 if { (eval echo configure:12389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12390 eval "ac_cv_lib_$ac_lib_var=yes"
12392 echo "configure: failed program was:" >&5
12393 cat conftest.$ac_ext >&5
12395 eval "ac_cv_lib_$ac_lib_var=no"
12400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12401 echo "$ac_t""yes" 1>&6
12404 echo "$ac_t""no" 1>&6
12412 echo "$ac_t""no" 1>&6
12415 if test -n "$have_dl"; then
12416 { test "$extra_verbose" = "yes" && cat << \EOF
12417 Defining HAVE_DLOPEN
12419 cat >> confdefs.h <<\EOF
12420 #define HAVE_DLOPEN 1
12426 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
12427 echo "configure:12428: checking for shl_load in -ldld" >&5
12428 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
12430 xe_check_libs=" -ldld "
12431 cat > conftest.$ac_ext <<EOF
12432 #line 12433 "configure"
12433 #include "confdefs.h"
12434 /* Override any gcc2 internal prototype to avoid an error. */
12435 /* We use char because int might match the return type of a gcc2
12436 builtin and then its argument prototype would still apply. */
12443 if { (eval echo configure:12444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12445 eval "ac_cv_lib_$ac_lib_var=yes"
12447 echo "configure: failed program was:" >&5
12448 cat conftest.$ac_ext >&5
12450 eval "ac_cv_lib_$ac_lib_var=no"
12455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12456 echo "$ac_t""yes" 1>&6
12457 libdl=dld have_dl=yes;
12458 { test "$extra_verbose" = "yes" && cat << \EOF
12459 Defining HAVE_SHL_LOAD
12461 cat >> confdefs.h <<\EOF
12462 #define HAVE_SHL_LOAD 1
12467 echo "$ac_t""no" 1>&6
12469 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
12470 echo "configure:12471: checking for dld_init in -ldld" >&5
12471 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
12473 xe_check_libs=" -ldld "
12474 cat > conftest.$ac_ext <<EOF
12475 #line 12476 "configure"
12476 #include "confdefs.h"
12477 /* Override any gcc2 internal prototype to avoid an error. */
12478 /* We use char because int might match the return type of a gcc2
12479 builtin and then its argument prototype would still apply. */
12486 if { (eval echo configure:12487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12488 eval "ac_cv_lib_$ac_lib_var=yes"
12490 echo "configure: failed program was:" >&5
12491 cat conftest.$ac_ext >&5
12493 eval "ac_cv_lib_$ac_lib_var=no"
12498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12499 echo "$ac_t""yes" 1>&6
12500 libdl=dld have_dl=yes;
12501 { test "$extra_verbose" = "yes" && cat << \EOF
12502 Defining HAVE_DLD_INIT
12504 cat >> confdefs.h <<\EOF
12505 #define HAVE_DLD_INIT 1
12510 echo "$ac_t""no" 1>&6
12519 if test -n "$have_dl"; then
12526 ld_dynamic_link_flags=
12528 xealias=$internal_configuration
12530 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
12531 echo "configure:12532: checking how to build dynamic libraries for ${xehost}" >&5
12532 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
12535 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
12538 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
12539 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
12540 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
12542 case "$xehost_os" in
12544 # AIX sometimes has problems with the GCC collect2 program. For some
12545 # reason, if we set the COLLECT_NAMES environment variable, the problems
12546 # vanish in a puff of smoke.
12547 if test "${COLLECT_NAMES+set}" != set; then
12549 export COLLECT_NAMES
12554 # Now see if the compiler is really GCC.
12555 if test "$GCC" = "yes"; then
12558 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
12559 echo "configure:12560: checking checking whether we are using GNU C" >&5
12560 cat > conftest.$ac_ext <<EOF
12561 #line 12562 "configure"
12562 #include "confdefs.h"
12569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12570 egrep "yes" >/dev/null 2>&1; then
12579 echo "$ac_t""${XEGCC}" 1>&6
12582 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12583 echo "configure:12584: checking how to produce PIC code" >&5
12586 can_build_shared=yes
12587 if test "$XEGCC" = yes; then
12590 case "$xehost_os" in
12591 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
12592 # PIC is the default for these OSes.
12596 # We can build DLLs from non-PIC.
12599 # FIXME: we need at least 68020 code to build shared libraries, but
12600 # adding the `-m68020' flag to GCC prevents building anything better,
12602 dll_cflags='-m68020 -resident32 -malways-restore-a4'
12609 # PORTME Check for PIC flags for the system compiler.
12610 case "$xehost_os" in
12611 hpux9* | hpux1[0-9]*)
12612 # Is there a better link_static_flag that works with the bundled CC?
12619 # PIC (with -KPIC) is the default.
12623 # We can build DLLs from non-PIC.
12627 # All OSF/1 code is PIC.
12632 dll_cflags='-belf -Kpic'
12666 can_build_shared=no
12671 if test -n "$dll_cflags"; then
12672 echo "$ac_t""${dll_cflags}" 1>&6
12674 # Check to make sure the dll_cflags actually works.
12675 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12676 echo "configure:12677: checking if PIC flag ${dll_cflags} really works" >&5
12677 save_CFLAGS="$CFLAGS"
12678 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12679 cat > conftest.$ac_ext <<EOF
12680 #line 12681 "configure"
12681 #include "confdefs.h"
12687 if { (eval echo configure:12688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12690 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12691 # reports no error. So, we need to grep stderr for (Bundled).
12692 if grep '(Bundled)' config.log >/dev/null; then
12693 echo "$ac_t""no" 1>&6
12694 can_build_shared=no
12697 echo "$ac_t""yes" 1>&6
12700 echo "configure: failed program was:" >&5
12701 cat conftest.$ac_ext >&5
12703 echo "$ac_t""no" 1>&6
12704 can_build_shared=no
12708 CFLAGS="$save_CFLAGS"
12710 echo "$ac_t""none" 1>&6
12713 if test "$can_build_shared" = "yes"; then
12717 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12718 echo "configure:12719: checking if C compiler can produce shared libraries" >&5
12719 if test "$XEGCC" = yes; then
12722 else # Not using GCC
12723 case "$xehost_os" in
12725 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
12726 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
12729 freebsd2* | netbsd* | openbsd*)
12731 xcldf="${wl}-Bshareable"
12740 xcldf="${wl}-b ${wl}+s"
12743 irix5* | irix6* | osf3* | osf4*)
12744 xcldf="${wl}-shared"
12748 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
12754 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
12755 xldf="-assert pure-text -Bstatic"
12758 fi # End if if we are using gcc
12760 if test -n "$xcldf"; then
12761 save_LDFLAGS=$LDFLAGS
12763 save_xe_libs=$xe_libs
12764 LDFLAGS="$xcldf $LDFLAGS"
12767 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12768 cat > conftest.$ac_ext <<EOF
12769 #line 12770 "configure"
12770 #include "confdefs.h"
12776 if { (eval echo configure:12777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12780 echo "configure: failed program was:" >&5
12781 cat conftest.$ac_ext >&5
12786 LDFLAGS=$save_LDFLAGS
12788 xe_libs=$save_xe_libs
12789 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12793 echo "$ac_t""${cc_produces_so}" 1>&6
12796 if test -z "$LTLD"; then
12798 if test "$XEGCC" = yes; then
12799 # Check if gcc -print-prog-name=ld gives a path.
12800 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12801 echo "configure:12802: checking for ld used by GCC" >&5
12802 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12804 # Accept absolute paths.
12806 if test -z "$LTLD"; then
12808 *gcc-lib*) LTLD="$CC"
12816 # If it fails, then pretend we aren't using GCC.
12820 # If it is relative, then search for the first ld in PATH.
12821 with_gnu_ld=unknown
12825 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12826 echo "configure:12827: checking for GNU ld" >&5
12829 if test -z "$LTLD"; then
12830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12831 for ac_dir in $PATH; do
12832 test -z "$ac_dir" && ac_dir=.
12833 if test -f "$ac_dir/$ac_prog"; then
12834 LTLD="$ac_dir/$ac_prog"
12835 # Check to see if the program is GNU ld. I'd rather use --version,
12836 # but apparently some GNU ld's only accept -v.
12837 # Break only if it was the GNU/non-GNU ld that we prefer.
12838 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12848 if test -n "$LTLD"; then
12849 echo "$ac_t""${LTLD}" 1>&6
12851 echo "$ac_t""no" 1>&6
12854 if test -z "$LTLD" -a "$cc_produces_so" = no; then
12855 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
12860 ld_dynamic_link_flags=
12862 # Check to see if it really is or isn't GNU ld.
12863 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12864 echo "configure:12865: checking if the linker is GNU ld" >&5
12865 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12866 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12871 echo "$ac_t""${xe_gnu_ld}" 1>&6
12873 case "$xehost_os" in
12874 amigaos* | sunos4*)
12875 # On these operating systems, we should treat GNU ld like the system ld.
12876 gnu_ld_acts_native=yes
12879 gnu_ld_acts_native=no
12883 if test "$cc_produces_so" = "yes"; then
12886 can_build_shared=yes
12888 # OK - only NOW do we futz about with ld.
12889 # See if the linker supports building shared libraries.
12890 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12891 echo "configure:12892: checking whether the linker supports shared libraries" >&5
12893 dll_ldflags=$LDFLAGS
12895 can_build_shared=yes
12896 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12897 # See if GNU ld supports shared libraries.
12898 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12900 dll_ldflags="-shared"
12906 # PORTME fill in a description of your system's linker (not GNU ld)
12907 case "$xehost_os" in
12917 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12918 # support. Future versions do this automatically, but an explicit c++rt0.o
12919 # doesn't break anything, and helps significantly (at the cost of a little
12924 dll_post="/usr/lib/c++rt0.o"
12927 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
12930 dll_ldflags="-Bshareable"
12933 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
12935 dll_ldflags="-shared"
12949 # Tested with NetBSD 1.2 ld
12964 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
12965 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12968 *gcc*) dll_ldflags="-shared"
12971 *) dll_ldflags="-G"
12977 if test "$XEGCC" = yes; then
12997 can_build_shared=no
13001 echo "$ac_t""${ld_shlibs}" 1>&6
13002 if test "$ld_shlibs" = "no"; then
13003 can_build_shared=no
13005 fi # End of if cc_produces_so = no
13008 if test "$xe_gnu_ld" = yes; then
13009 if test "$ld_shlibs" = yes; then
13010 ld_dynamic_link_flags="${wl}-export-dynamic"
13014 if test -z "$ld_dynamic_link_flags"; then
13015 case "$xehost_os" in
13017 ld_dynamic_link_flags=
13021 ld_dynamic_link_flags=
13025 ld_dynamic_link_flags=
13029 ld_dynamic_link_flags=
13033 ld_dynamic_link_flags=
13037 ld_dynamic_link_flags="${wl}-E"
13041 ld_dynamic_link_flags=
13045 ld_dynamic_link_flags=
13049 ld_dynamic_link_flags=
13053 ld_dynamic_link_flags=
13056 solaris2* | solaris7*)
13057 ld_dynamic_link_flags=
13060 sco3.2v5* | unixware* | sysv5* | sysv4*)
13061 ld_dynamic_link_flags="${wl}-Bexport"
13065 ld_dynamic_link_flags=
13069 ld_dynamic_link_flags=
13073 ld_dynamic_link_flags=
13077 fi # End of if -z ld_dynamic_link_flags
13078 fi # End of if test "$can_build_shared" = "yes"
13089 if test "$can_build_shared" = "yes"; then
13090 { test "$extra_verbose" = "yes" && cat << \EOF
13091 Defining HAVE_SHLIB
13093 cat >> confdefs.h <<\EOF
13094 #define HAVE_SHLIB 1
13098 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
13099 echo " xemacs will be linked with \"sysdll.o emodules.o\""
13101 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
13102 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
13103 for ac_func in dlerror _dlerror
13105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13106 echo "configure:13107: checking for $ac_func" >&5
13108 cat > conftest.$ac_ext <<EOF
13109 #line 13110 "configure"
13110 #include "confdefs.h"
13111 /* System header to define __stub macros and hopefully few prototypes,
13112 which can conflict with char $ac_func(); below. */
13113 #include <assert.h>
13114 /* Override any gcc2 internal prototype to avoid an error. */
13115 /* We use char because int might match the return type of a gcc2
13116 builtin and then its argument prototype would still apply. */
13121 /* The GNU C library defines this for functions which it implements
13122 to always fail with ENOSYS. Some functions are actually named
13123 something starting with __ and the normal name is an alias. */
13124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13132 if { (eval echo configure:13133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13134 eval "ac_cv_func_$ac_func=yes"
13136 echo "configure: failed program was:" >&5
13137 cat conftest.$ac_ext >&5
13139 eval "ac_cv_func_$ac_func=no"
13143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13144 echo "$ac_t""yes" 1>&6
13145 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13146 { test "$extra_verbose" = "yes" && cat << EOF
13147 Defining $ac_tr_func
13149 cat >> confdefs.h <<EOF
13150 #define $ac_tr_func 1
13155 echo "$ac_t""no" 1>&6
13161 if test "$with_modules" = "yes"; then
13162 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
13164 echo "configure: warning: "Module support cannot be provided."" 1>&2
13170 cat > conftest.$ac_ext <<EOF
13171 #line 13172 "configure"
13172 #include "confdefs.h"
13173 int main(int c,char *v[]){return 0;}
13175 if { (eval echo configure:13176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13180 echo "configure: failed program was:" >&5
13181 cat conftest.$ac_ext >&5
13185 echo "*** PANIC *** The C compiler can no longer build working executables."
13186 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
13187 echo "*** PANIC *** The most likely reason for this problem is that configure"
13188 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
13189 echo "*** PANIC *** found at run time."
13190 echo "*** PANIC ***"
13191 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
13192 echo "*** PANIC *** On other systems, try telling configure where to find the"
13193 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
13194 echo "*** PANIC ***"
13195 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
13196 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
13197 echo "*** PANIC *** on your system. Don't do that."
13202 if test "$win32_processes" = "yes"; then
13203 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
13204 echo " xemacs will be linked with \"process-nt.o\""
13207 { test "$extra_verbose" = "yes" && cat << \EOF
13208 Defining HAVE_UNIX_PROCESSES
13210 cat >> confdefs.h <<\EOF
13211 #define HAVE_UNIX_PROCESSES 1
13215 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
13216 echo " xemacs will be linked with \"process-unix.o\""
13223 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13228 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13233 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
13234 c_switch_general="$T"
13238 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13239 c_switch_window_system="$T"
13243 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13248 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
13249 ld_switch_general="$T"
13253 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13254 ld_switch_window_system="$T"
13258 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13263 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13264 ld_libs_general="$T"
13268 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
13269 ld_libs_window_system="$T"
13273 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13278 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
13279 internal_makefile_list="Makefile.in"
13280 SUBDIR_MAKEFILES=''
13281 test -d lock || mkdir lock
13282 for dir in $MAKE_SUBDIR; do
13283 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
13284 test -d "$d" || mkdir "$d"; cd "$d"
13286 * ) test -d "$dir" || mkdir "$dir" ;;
13290 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13291 SUBDIR_MAKEFILES="$T"
13295 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13296 internal_makefile_list="$T"
13303 for dir in src/s src/m; do
13304 if test ! -d "$dir" ; then
13305 echo Making symbolic link to "$srcdir/$dir"
13306 ${LN_S} "$srcdir/$dir" "$dir"
13310 if test "$extra_verbose" = "yes"; then
13312 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
13316 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
13317 echo "creating src/gdbinit"; echo ""
13318 echo "source $srcdir/src/gdbinit" > src/gdbinit
13321 if test "$__SUNPRO_C" = "yes"; then
13322 echo "creating .sbinit"; echo ""
13323 ( echo "# For use with Sun WorkShop's Source browser."
13324 echo "# See sbquery(1) and sbinit(4) for more information"
13325 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
13352 *\$* ) eval "PREFIX=$PREFIX" ;;
13360 EXEC_PREFIX=$exec_prefix
13362 case "$EXEC_PREFIX" in
13363 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
13374 *\$* ) eval "INFODIR=$INFODIR" ;;
13384 case "$INFOPATH" in
13385 *\$* ) eval "INFOPATH=$INFOPATH" ;;
13393 PACKAGE_PATH=$package_path
13395 case "$PACKAGE_PATH" in
13396 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
13407 *\$* ) eval "LISPDIR=$LISPDIR" ;;
13415 MODULEDIR=$moduledir
13417 case "$MODULEDIR" in
13418 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
13426 SITELISPDIR=$sitelispdir
13428 case "$SITELISPDIR" in
13429 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
13437 SITEMODULEDIR=$sitemoduledir
13439 case "$SITEMODULEDIR" in
13440 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
13451 *\$* ) eval "ETCDIR=$ETCDIR" ;;
13462 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
13473 *\$* ) eval "DOCDIR=$DOCDIR" ;;
13481 ARCHLIBDIR=$archlibdir
13483 case "$ARCHLIBDIR" in
13484 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
13508 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
13516 : ${XEMACS_CC:=$CC}
13519 if test "$with_prefix" = "yes"; then
13520 { test "$extra_verbose" = "yes" && cat << \EOF
13521 Defining PREFIX_USER_DEFINED
13523 cat >> confdefs.h <<\EOF
13524 #define PREFIX_USER_DEFINED 1
13530 if test "$with_site_lisp" = "no"; then
13531 { test "$extra_verbose" = "yes" && cat << \EOF
13532 Defining INHIBIT_SITE_LISP
13534 cat >> confdefs.h <<\EOF
13535 #define INHIBIT_SITE_LISP 1
13540 if test "$with_site_modules" = "no"; then
13541 { test "$extra_verbose" = "yes" && cat << \EOF
13542 Defining INHIBIT_SITE_MODULES
13544 cat >> confdefs.h <<\EOF
13545 #define INHIBIT_SITE_MODULES 1
13553 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13554 ac_configure_args="$T"
13556 { test "$extra_verbose" = "yes" && cat << EOF
13557 Defining EMACS_CONFIGURATION = "$configuration"
13559 cat >> confdefs.h <<EOF
13560 #define EMACS_CONFIGURATION "$configuration"
13564 { test "$extra_verbose" = "yes" && cat << EOF
13565 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
13567 cat >> confdefs.h <<EOF
13568 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
13572 { test "$extra_verbose" = "yes" && cat << EOF
13573 Defining config_machfile = "$machfile"
13575 cat >> confdefs.h <<EOF
13576 #define config_machfile "$machfile"
13580 { test "$extra_verbose" = "yes" && cat << EOF
13581 Defining config_opsysfile = "$opsysfile"
13583 cat >> confdefs.h <<EOF
13584 #define config_opsysfile "$opsysfile"
13591 { test "$extra_verbose" = "yes" && cat << EOF
13592 Defining LD_SWITCH_X_SITE = $null_string
13594 cat >> confdefs.h <<EOF
13595 #define LD_SWITCH_X_SITE $null_string
13599 { test "$extra_verbose" = "yes" && cat << EOF
13600 Defining LD_SWITCH_X_SITE_AUX = $null_string
13602 cat >> confdefs.h <<EOF
13603 #define LD_SWITCH_X_SITE_AUX $null_string
13607 { test "$extra_verbose" = "yes" && cat << EOF
13608 Defining C_SWITCH_X_SITE = $null_string
13610 cat >> confdefs.h <<EOF
13611 #define C_SWITCH_X_SITE $null_string
13615 { test "$extra_verbose" = "yes" && cat << EOF
13616 Defining LD_SWITCH_SITE = $null_string
13618 cat >> confdefs.h <<EOF
13619 #define LD_SWITCH_SITE $null_string
13623 { test "$extra_verbose" = "yes" && cat << EOF
13624 Defining C_SWITCH_SITE = $null_string
13626 cat >> confdefs.h <<EOF
13627 #define C_SWITCH_SITE $null_string
13633 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13634 Defining GNU_MALLOC
13636 cat >> confdefs.h <<\EOF
13637 #define GNU_MALLOC 1
13641 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13642 Defining USE_SYSTEM_MALLOC
13644 cat >> confdefs.h <<\EOF
13645 #define USE_SYSTEM_MALLOC 1
13649 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13650 Defining USE_DEBUG_MALLOC
13652 cat >> confdefs.h <<\EOF
13653 #define USE_DEBUG_MALLOC 1
13657 { test "$extra_verbose" = "yes" && cat << \EOF
13658 Defining USE_SYSTEM_MALLOC
13660 cat >> confdefs.h <<\EOF
13661 #define USE_SYSTEM_MALLOC 1
13666 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13669 cat >> confdefs.h <<\EOF
13674 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13677 cat >> confdefs.h <<\EOF
13682 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13683 Defining EXTERNAL_WIDGET
13685 cat >> confdefs.h <<\EOF
13686 #define EXTERNAL_WIDGET 1
13690 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13691 Defining NO_DOC_FILE
13693 cat >> confdefs.h <<\EOF
13694 #define NO_DOC_FILE 1
13698 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13701 cat >> confdefs.h <<\EOF
13706 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13709 cat >> confdefs.h <<\EOF
13714 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13715 Defining MAIL_USE_POP
13717 cat >> confdefs.h <<\EOF
13718 #define MAIL_USE_POP 1
13722 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13725 cat >> confdefs.h <<\EOF
13730 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13733 cat >> confdefs.h <<\EOF
13738 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13739 Defining USE_UNION_TYPE
13741 cat >> confdefs.h <<\EOF
13742 #define USE_UNION_TYPE 1
13746 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13749 cat >> confdefs.h <<\EOF
13757 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
13759 echo "uname -a: `uname -a`"
13762 echo "$0 $quoted_arguments"
13765 if test ! -z ${emacs_beta_version} ; then
13766 if test -z "${emacs_is_beta}" ; then
13767 xemacs_betaname=".${emacs_beta_version}"
13769 xemacs_betaname="-b${emacs_beta_version}"
13778 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13780 Where should the build process find the source code? $srcdir
13781 What installation prefix should install use? $prefix
13782 What operating system and machine description files should XEmacs use?
13783 \`$opsysfile' and \`$machfile'
13784 What compiler should XEmacs be built with? $CC $CFLAGS
13785 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13786 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13787 What window system should XEmacs use? ${window_system}"
13788 if test "$with_x11" = "yes"; then
13789 echo " Where do we find X Windows header files? $x_includes"
13790 echo " Where do we find X Windows libraries? $x_libraries"
13792 if test -n "$site_includes"; then
13793 echo " Additional header files: $site_includes"
13795 if test -n "$site_libraries"; then
13796 echo " Additional libraries: $site_libraries"
13798 if test -n "$site_prefixes"; then
13799 echo " Additional prefixes: $site_prefixes"
13801 if test -n "$runpath"; then
13802 echo " Runtime library search path: $runpath"
13804 test "$with_dnet" = yes && echo " Compiling in support for DNET."
13805 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
13806 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
13807 if test "$with_xmu" != yes -a "$with_x11" = yes; then
13808 echo " No Xmu; substituting equivalent routines."
13811 if test "$with_xpm" = yes; then
13812 echo " Compiling in support for XPM images."
13813 elif test "$with_x11" = yes; then
13814 echo " --------------------------------------------------------------------"
13815 echo " WARNING: Compiling without XPM support."
13816 if test "$xpm_problem" != ""; then
13817 echo " Reason: $xpm_problem"
13819 echo " WARNING: You should strongly consider installing XPM."
13820 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
13821 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13822 echo " --------------------------------------------------------------------"
13824 if test "$with_png" = yes; then
13825 echo " Compiling in support for PNG image handling."
13826 elif test "$window_system" != "none"; then
13827 echo " --------------------------------------------------------------------"
13828 echo " WARNING: Compiling without PNG image support."
13829 if test "$png_problem" != ""; then
13830 echo " Reason: $png_problem"
13832 echo " WARNING: You should strongly consider installing the PNG libraries."
13833 echo " WARNING: Otherwise certain images and glyphs may not display."
13834 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13835 echo " --------------------------------------------------------------------"
13837 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13838 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13839 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13840 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13842 test "$with_native_sound" = yes && echo " Compiling in native sound support."
13843 test "$with_nas_sound" = yes && echo " Compiling in network sound (NAS) support."
13844 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13845 test "$with_esd_sound" = yes && echo " Compiling in support for Enlightened Sound Daemon (ESD)."
13847 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13848 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13849 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
13851 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
13853 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
13854 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
13856 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
13857 test "$with_file_coding" = yes && echo " Compiling in File coding support."
13858 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
13859 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
13860 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
13861 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
13862 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
13863 if test "$with_wnn" = yes; then
13864 echo " Compiling in support for the WNN input method on Mule."
13865 test "$with_wnn6" = yes && echo " Using WNN version 6."
13867 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
13869 test "$with_cde" = yes && echo " Compiling in support for CDE."
13870 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
13871 test "$with_offix" = yes && echo " Compiling in support for OffiX."
13872 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
13873 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
13874 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
13875 case "$with_menubars" in
13876 lucid ) echo " Using Lucid menubars." ;;
13877 motif ) echo " Using Motif menubars."
13878 echo " *WARNING* The Motif menubar implementation is currently buggy."
13879 echo " We recommend using the Lucid menubar instead."
13880 echo " Re-run configure with --with-menubars='lucid'." ;;
13881 msw ) echo " Using MS-Windows menubars." ;;
13883 case "$with_scrollbars" in
13884 lucid ) echo " Using Lucid scrollbars." ;;
13885 motif ) echo " Using Motif scrollbars." ;;
13886 athena ) echo " Using Athena scrollbars." ;;
13887 athena3d ) echo " Using Athena-3d scrollbars." ;;
13888 msw ) echo " Using MS-Windows scrollbars." ;;
13890 case "$with_widgets" in
13891 motif ) echo " Using Motif native widgets." ;;
13892 athena ) echo " Using Athena native widgets." ;;
13893 athena3d ) echo " Using Athena-3d native widgets." ;;
13894 msw ) echo " Using MS-Windows native widgets." ;;
13896 case "$with_dialogs" in
13898 echo " Using Motif dialog boxes."
13899 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
13900 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
13901 echo " We recommend using the Athena dialog boxes instead."
13902 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
13903 echo " Read the PROBLEMS file for more information."
13906 athena ) echo " Using Athena dialog boxes." ;;
13907 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13908 msw ) echo " Using MS-Windows dialog boxes." ;;
13910 test "$with_modules" = "yes" && echo " Compiling in dynamic shared object module support."
13911 test "$with_clash_detection" = yes && \
13912 echo " Clash detection will use \"$lockdir\" for locking files."
13913 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13914 test "$with_pop" = yes && echo " Using POP for mail access."
13915 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13916 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
13917 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
13918 test "$pdump" = yes && echo " Using the new portable dumper (wishful thinking)."
13919 test "$debug" = yes && echo " Compiling in extra code for debugging."
13920 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13921 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
13922 != "no no no no no"; then
13923 echo " WARNING: ---------------------------------------------------------"
13924 echo " WARNING: Compiling in support for runtime error checking."
13925 echo " WARNING: XEmacs will run noticeably more slowly as a result."
13926 echo " WARNING: Error checking is on by default for XEmacs beta releases."
13927 echo " WARNING: ---------------------------------------------------------"
13930 ) | tee -a Installation
13934 # Remove any trailing slashes in these variables.
13935 test -n "$prefix" &&
13936 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13937 test -n "$exec_prefix" &&
13938 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13941 for file in $internal_makefile_list; do
13942 test "$file" = src/Makefile.in && \
13943 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13944 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
13946 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13947 test "$with_modules" = "yes" && ac_output_files="$ac_output_files lib-src/ellcc.h" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src/ellcc.h\" to \$ac_output_files"; fi
13951 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13953 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13954 # Let make expand exec_prefix.
13955 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13957 # Any assignment to VPATH causes Sun make to only execute
13958 # the first set of double-colon rules, so remove it if not needed.
13959 # If there is a colon in the path, we need to keep it.
13960 if test "x$srcdir" = x.; then
13961 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13964 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13966 DEFS=-DHAVE_CONFIG_H
13968 # Without the "./", some shells look in PATH for config.status.
13969 : ${CONFIG_STATUS=./config.status}
13971 echo creating $CONFIG_STATUS
13972 rm -f $CONFIG_STATUS
13973 cat > $CONFIG_STATUS <<EOF
13975 # Generated automatically by configure.
13976 # Run this file to recreate the current configuration.
13977 # This directory was configured as follows,
13978 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13980 # $0 $ac_configure_args
13982 # Compiler output produced by configure, useful for debugging
13983 # configure, is in ./config.log if it exists.
13985 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13988 case "\$ac_option" in
13989 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13990 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13991 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13992 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13993 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13995 -help | --help | --hel | --he | --h)
13996 echo "\$ac_cs_usage"; exit 0 ;;
13997 *) echo "\$ac_cs_usage"; exit 1 ;;
14001 ac_given_srcdir=$srcdir
14002 ac_given_INSTALL="$INSTALL"
14004 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14006 cat >> $CONFIG_STATUS <<EOF
14008 # Protect against being on the right side of a sed subst in config.status.
14009 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14010 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14014 s%@CFLAGS@%$CFLAGS%g
14015 s%@CPPFLAGS@%$CPPFLAGS%g
14016 s%@CXXFLAGS@%$CXXFLAGS%g
14017 s%@FFLAGS@%$FFLAGS%g
14019 s%@LDFLAGS@%$LDFLAGS%g
14021 s%@exec_prefix@%$exec_prefix%g
14022 s%@prefix@%$prefix%g
14023 s%@program_transform_name@%$program_transform_name%g
14024 s%@bindir@%$bindir%g
14025 s%@sbindir@%$sbindir%g
14026 s%@libexecdir@%$libexecdir%g
14027 s%@datadir@%$datadir%g
14028 s%@sysconfdir@%$sysconfdir%g
14029 s%@sharedstatedir@%$sharedstatedir%g
14030 s%@localstatedir@%$localstatedir%g
14031 s%@libdir@%$libdir%g
14032 s%@includedir@%$includedir%g
14033 s%@oldincludedir@%$oldincludedir%g
14034 s%@infodir@%$infodir%g
14035 s%@mandir@%$mandir%g
14037 s%@blddir@%$blddir%g
14040 s%@start_flags@%$start_flags%g
14041 s%@ld_switch_shared@%$ld_switch_shared%g
14042 s%@start_files@%$start_files%g
14044 s%@lib_gcc@%$lib_gcc%g
14045 s%@RANLIB@%$RANLIB%g
14046 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14047 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14048 s%@INSTALL_DATA@%$INSTALL_DATA%g
14050 s%@SET_MAKE@%$SET_MAKE%g
14051 s%@X_CFLAGS@%$X_CFLAGS%g
14052 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
14053 s%@X_LIBS@%$X_LIBS%g
14054 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
14055 s%@install_pp@%$install_pp%g
14056 s%@libs_xauth@%$libs_xauth%g
14057 s%@dnd_objs@%$dnd_objs%g
14058 s%@lwlib_objs@%$lwlib_objs%g
14059 s%@ALLOCA@%$ALLOCA%g
14060 s%@have_esd_config@%$have_esd_config%g
14061 s%@dll_ld@%$dll_ld%g
14062 s%@dll_cflags@%$dll_cflags%g
14063 s%@dll_ldflags@%$dll_ldflags%g
14064 s%@dll_post@%$dll_post%g
14065 s%@dll_ldo@%$dll_ldo%g
14066 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
14067 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
14068 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
14069 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
14070 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
14071 s%@PROGNAME@%$PROGNAME%g
14072 s%@version@%$version%g
14073 s%@configuration@%$configuration%g
14074 s%@canonical@%$canonical%g
14075 s%@inststaticdir@%$inststaticdir%g
14076 s%@instvardir@%$instvardir%g
14077 s%@srcdir@%$srcdir%g
14078 s%@pkgdir@%$pkgdir%g
14079 s%@statedir@%$statedir%g
14080 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
14081 s%@PREFIX@%$PREFIX%g
14082 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
14083 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
14084 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
14085 s%@INFODIR@%$INFODIR%g
14086 s%@infopath@%$infopath%g
14087 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
14088 s%@INFOPATH@%$INFOPATH%g
14089 s%@package_path@%$package_path%g
14090 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
14091 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
14092 s%@lispdir@%$lispdir%g
14093 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
14094 s%@LISPDIR@%$LISPDIR%g
14095 s%@moduledir@%$moduledir%g
14096 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
14097 s%@MODULEDIR@%$MODULEDIR%g
14098 s%@sitelispdir@%$sitelispdir%g
14099 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
14100 s%@SITELISPDIR@%$SITELISPDIR%g
14101 s%@sitemoduledir@%$sitemoduledir%g
14102 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
14103 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
14104 s%@etcdir@%$etcdir%g
14105 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
14106 s%@ETCDIR@%$ETCDIR%g
14107 s%@lockdir@%$lockdir%g
14108 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
14109 s%@LOCKDIR@%$LOCKDIR%g
14110 s%@docdir@%$docdir%g
14111 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
14112 s%@DOCDIR@%$DOCDIR%g
14113 s%@archlibdir@%$archlibdir%g
14114 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
14115 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
14116 s%@bitmapdir@%$bitmapdir%g
14117 s%@extra_objs@%$extra_objs%g
14118 s%@machfile@%$machfile%g
14119 s%@opsysfile@%$opsysfile%g
14120 s%@c_switch_general@%$c_switch_general%g
14121 s%@c_switch_window_system@%$c_switch_window_system%g
14122 s%@c_switch_all@%$c_switch_all%g
14123 s%@ld_switch_general@%$ld_switch_general%g
14124 s%@ld_switch_window_system@%$ld_switch_window_system%g
14125 s%@ld_switch_all@%$ld_switch_all%g
14126 s%@ld_libs_general@%$ld_libs_general%g
14127 s%@ld_libs_window_system@%$ld_libs_window_system%g
14128 s%@ld_libs_all@%$ld_libs_all%g
14129 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
14130 s%@native_sound_lib@%$native_sound_lib%g
14131 s%@sound_cflags@%$sound_cflags%g
14132 s%@dynodump_arch@%$dynodump_arch%g
14133 s%@XEMACS_CC@%$XEMACS_CC%g
14134 s%@internal_makefile_list@%$internal_makefile_list%g
14139 cat >> $CONFIG_STATUS <<\EOF
14141 # Split the substitutions into bite-sized pieces for seds with
14142 # small command number limits, like on Digital OSF/1 and HP-UX.
14143 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14144 ac_file=1 # Number of current file.
14145 ac_beg=1 # First line for current file.
14146 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14149 while $ac_more_lines; do
14150 if test $ac_beg -gt 1; then
14151 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14153 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14155 if test ! -s conftest.s$ac_file; then
14156 ac_more_lines=false
14157 rm -f conftest.s$ac_file
14159 if test -z "$ac_sed_cmds"; then
14160 ac_sed_cmds="sed -f conftest.s$ac_file"
14162 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14164 ac_file=`expr $ac_file + 1`
14166 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14169 if test -z "$ac_sed_cmds"; then
14174 cat >> $CONFIG_STATUS <<EOF
14176 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
14178 cat >> $CONFIG_STATUS <<\EOF
14179 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14180 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14182 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14183 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14184 *) ac_file_in="${ac_file}.in" ;;
14187 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14189 # Remove last slash and all that follows it. Not all systems have dirname.
14190 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14191 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14192 # The file is in a subdirectory.
14193 test ! -d "$ac_dir" && mkdir "$ac_dir"
14194 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14195 # A "../" for each directory in $ac_dir_suffix.
14196 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14198 ac_dir_suffix= ac_dots=
14201 case "$ac_given_srcdir" in
14203 if test -z "$ac_dots"; then top_srcdir=.
14204 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14205 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14206 *) # Relative path.
14207 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14208 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14211 case "$ac_given_INSTALL" in
14212 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14213 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14216 echo creating "$ac_file"
14218 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14220 *Makefile*) ac_comsub="1i\\
14221 # $configure_input" ;;
14225 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14227 s%@configure_input@%$configure_input%g
14228 s%@srcdir@%$srcdir%g
14229 s%@top_srcdir@%$top_srcdir%g
14230 s%@INSTALL@%$INSTALL%g
14231 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14235 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14236 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14238 # ac_d sets the value in "#define NAME VALUE" lines.
14239 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14240 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14243 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14244 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14245 ac_uB='\([ ]\)%\1#\2define\3'
14248 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14249 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14250 ac_eB='$%\1#\2define\3'
14254 if test "${CONFIG_HEADERS+set}" != set; then
14256 cat >> $CONFIG_STATUS <<EOF
14257 CONFIG_HEADERS="src/config.h lwlib/config.h"
14259 cat >> $CONFIG_STATUS <<\EOF
14261 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14262 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14264 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14265 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14266 *) ac_file_in="${ac_file}.in" ;;
14269 echo creating $ac_file
14271 rm -f conftest.frag conftest.in conftest.out
14272 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14273 cat $ac_file_inputs > conftest.in
14277 # Transform confdefs.h into a sed script conftest.vals that substitutes
14278 # the proper values into config.h.in to produce config.h. And first:
14279 # Protect against being on the right side of a sed subst in config.status.
14280 # Protect against being in an unquoted here document in config.status.
14281 rm -f conftest.vals
14282 cat > conftest.hdr <<\EOF
14285 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14289 sed -n -f conftest.hdr confdefs.h > conftest.vals
14292 # This sed command replaces #undef with comments. This is necessary, for
14293 # example, in the case of _POSIX_SOURCE, which is predefined and required
14294 # on some systems where configure will not decide to define it.
14295 cat >> conftest.vals <<\EOF
14296 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14299 # Break up conftest.vals because some shells have a limit on
14300 # the size of here documents, and old seds have small limits too.
14302 rm -f conftest.tail
14305 ac_lines=`grep -c . conftest.vals`
14306 # grep -c gives empty output for an empty file on some AIX systems.
14307 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14308 # Write a limited-size here document to conftest.frag.
14309 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14310 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14312 sed -f conftest.frag conftest.in > conftest.out
14314 mv conftest.out conftest.in
14315 ' >> $CONFIG_STATUS
14316 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14317 rm -f conftest.vals
14318 mv conftest.tail conftest.vals
14320 rm -f conftest.vals
14322 cat >> $CONFIG_STATUS <<\EOF
14323 rm -f conftest.frag conftest.h
14324 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14325 cat conftest.in >> conftest.h
14327 if cmp -s $ac_file conftest.h 2>/dev/null; then
14328 echo "$ac_file is unchanged"
14331 # Remove last slash and all that follows it. Not all systems have dirname.
14332 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14333 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14334 # The file is in a subdirectory.
14335 test ! -d "$ac_dir" && mkdir "$ac_dir"
14338 mv conftest.h $ac_file
14343 cat >> $CONFIG_STATUS <<EOF
14345 top_srcdir="$srcdir"
14346 MAKE_SUBDIR="$MAKE_SUBDIR"
14349 cat >> $CONFIG_STATUS <<\EOF
14350 for dir in . $MAKE_SUBDIR; do
14355 sed -e '/^# Generated/d' \
14356 -e 's%/\*\*/#.*%%' \
14371 echo creating $dir/Makefile
14372 $CPP -I. -I${top_srcdir}/src junk.c \
14373 | sed -e 's/^\#.*//' \
14374 -e 's/^[ ][ ]*$//'\
14376 | sed -n -e '/^..*$/p' \
14382 chmod 444 Makefile.new
14383 mv -f Makefile.new Makefile
14385 echo creating $dir/GNUmakefile
14386 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
14387 | sed -e 's/^\#.*//' \
14388 -e 's/^[ ][ ]*$//'\
14390 | sed -n -e '/^..*$/p' \
14396 chmod 444 Makefile.new
14397 mv -f Makefile.new GNUmakefile
14403 sed < config.status >> lib-src/config.values \
14404 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
14405 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
14406 -e 's/^\([^ ]*\) $/\1 ""/' \
14412 chmod +x $CONFIG_STATUS
14413 rm -fr confdefs* $ac_clean_files
14414 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1