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'
274 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
278 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
279 | --no-cr | --no-c) ;;
280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
283 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
284 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
288 while test $# != 0; do
291 --no-create|--no-recursion) ;;
295 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
296 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
300 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
301 val="yes" valomitted=yes
306 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
308 case "${valomitted}-${opt}" in yes-without_* )
309 opt=`echo $opt | sed 's/without/with/'`
310 valomitted="no" val="no" ;;
317 with_site_modules | \
369 memory_usage_stats | \
370 with_clash_detection | \
374 y | ye | yes ) val=yes ;;
376 * ) (echo "$progname: Usage error:"
377 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
378 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
380 eval "$opt=\"$val\"" ;;
398 site_runtime_libraries )
399 if test "$valomitted" = "yes" ; then
400 if test "$#" = 0 ; then
401 (echo "$progname: Usage error:"
402 echo " " "The \`--$optname' option requires a value."
403 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
412 with_debug_malloc | use_debug_malloc | \
413 with_system_malloc | use_system_malloc )
415 y | ye | yes ) val=yes ;;
417 d | de | def | defa | defau | defaul | default ) val=default ;;
418 * ) (echo "$progname: Usage error:"
419 echo " " "The \`--$optname' option requires one of these values:
420 \`yes', \`no', or \`default'."
421 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
423 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
428 with_database_berkdb=no
430 with_database_gdbm=no
431 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
434 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
435 d | db | dbm ) with_database_dbm=yes ;;
436 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
437 * ) (echo "$progname: Usage error:"
438 echo " " "The \`--$optname' option value
439 must be either \`no' or a comma-separated list
440 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
441 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
444 if test "$with_database_dbm" = "yes" -a \
445 "$with_database_gdbm" = "yes"; then
446 (echo "$progname: Usage error:"
447 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
448 with the \`--$optname' option."
449 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
454 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
456 n | no | non | none ) new_sdefault=no ;;
457 a | al | all | both ) new_sdefault=yes ;;
459 native ) with_native_sound=yes ;;
460 nonative ) with_native_sound=no ;;
462 nas ) with_nas_sound=yes ;;
463 nonas ) with_nas_sound=no ;;
465 esd ) with_esd_sound=yes ;;
466 noesd ) with_esd_sound=no ;;
468 * ) bogus_sound=yes ;;
470 if test "$bogus_sound" -o \
471 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
472 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
473 (echo "$progname: Usage error:"
474 echo " " "Valid types for the \`--$optname' option are:
476 The default is to autodetect all sound support."
477 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
478 elif test -n "$new_sdefault" ; then
479 with_native_sound=$new_sdefault
480 with_nas_sound=$new_sdefault
481 with_esd_sound=$new_sdefault
482 new_sdefault= # reset this
490 xa | xaw ) val=xaw ;;
491 3 | 3d | xaw3d ) val=3d ;;
492 ne | nex | next | naxtaw) val=next ;;
493 9 | 95 | xaw95 ) val=95 ;;
494 xp | xpm | xawxpm ) val=xpm ;;
495 * ) (echo "$progname: Usage error:"
496 echo " " "The \`--$optname' option must have one of these values:
497 \`xaw', \`3d', \`next', \`95', or \`xpm'."
498 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
505 y | ye | yes ) val=yes ;;
506 n | no | non | none ) val=no ;;
507 x | xl | xli | xlib ) val=xlib ;;
508 m | mo | mot | moti | motif ) val=motif ;;
509 * ) (echo "$progname: Usage error:"
510 echo " " "The \`--$optname' option must have one of these values:
511 \`motif', \`xlib', \`yes', or \`no'."
512 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
521 file | dot ) val=file ;;
522 locking ) val=locking ;;
523 * ) (echo "$progname: Usage error:"
524 echo " " "The \`--$optname' option must have one of these values:
525 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
526 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
533 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
535 n | no | non | none ) new_default=no ;;
536 a | al | all ) new_default=yes ;;
538 extents ) error_check_extents=yes ;;
539 noextents ) error_check_extents=no ;;
541 typecheck ) error_check_typecheck=yes ;;
542 notypecheck ) error_check_typecheck=no ;;
544 bufpos ) error_check_bufpos=yes ;;
545 nobufpos ) error_check_bufpos=no ;;
547 gc ) error_check_gc=yes ;;
548 nogc ) error_check_gc=no ;;
550 malloc ) error_check_malloc=yes ;;
551 nomalloc ) error_check_malloc=no ;;
553 byte_code ) error_check_byte_code=yes ;;
554 nobyte_code ) error_check_byte_code=no ;;
556 * ) bogus_error_check=yes ;;
558 if test "$bogus_error_check" -o \
559 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
560 if test "$error_check_default" = yes ; then
561 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'."
563 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'."
565 (echo "$progname: Usage error:"
566 echo " " "Valid types for the \`--$optname' option are:
568 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
569 elif test -n "$new_default" ; then
570 error_check_extents=$new_default
571 error_check_typecheck=$new_default
572 error_check_bufpos=$new_default
573 error_check_gc=$new_default
574 error_check_malloc=$new_default
575 error_check_byte_code=$new_default
576 new_default= # reset this
583 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
584 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
585 archlibdir | docdir | package_path )
586 if test "$valomitted" = "yes"; then
587 if test "$#" = 0; then
588 (echo "$progname: Usage error:"
589 echo " " "The \`--$optname' option requires a value."
590 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
597 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
598 Defining EXEC_PREFIX_USER_DEFINED
600 cat >> confdefs.h <<\EOF
601 #define EXEC_PREFIX_USER_DEFINED 1
605 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
606 Defining LISPDIR_USER_DEFINED
608 cat >> confdefs.h <<\EOF
609 #define LISPDIR_USER_DEFINED 1
613 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
614 Defining SITELISPDIR_USER_DEFINED
616 cat >> confdefs.h <<\EOF
617 #define SITELISPDIR_USER_DEFINED 1
621 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
622 Defining MODULEDIR_USER_DEFINED
624 cat >> confdefs.h <<\EOF
625 #define MODULEDIR_USER_DEFINED 1
629 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
630 Defining ETCDIR_USER_DEFINED
632 cat >> confdefs.h <<\EOF
633 #define ETCDIR_USER_DEFINED 1
637 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
638 Defining INFODIR_USER_DEFINED
640 cat >> confdefs.h <<\EOF
641 #define INFODIR_USER_DEFINED 1
645 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
646 Defining INFOPATH_USER_DEFINED
648 cat >> confdefs.h <<\EOF
649 #define INFOPATH_USER_DEFINED 1
653 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
654 Defining PACKAGE_PATH_USER_DEFINED
656 cat >> confdefs.h <<\EOF
657 #define PACKAGE_PATH_USER_DEFINED 1
662 { test "$extra_verbose" = "yes" && cat << \EOF
663 Defining INFODIR_USER_DEFINED
665 cat >> confdefs.h <<\EOF
666 #define INFODIR_USER_DEFINED 1
670 { test "$extra_verbose" = "yes" && cat << \EOF
671 Defining LISPDIR_USER_DEFINED
673 cat >> confdefs.h <<\EOF
674 #define LISPDIR_USER_DEFINED 1
678 { test "$extra_verbose" = "yes" && cat << \EOF
679 Defining MODULEDIR_USER_DEFINED
681 cat >> confdefs.h <<\EOF
682 #define MODULEDIR_USER_DEFINED 1
686 { test "$extra_verbose" = "yes" && cat << \EOF
687 Defining ETCDIR_USER_DEFINED
689 cat >> confdefs.h <<\EOF
690 #define ETCDIR_USER_DEFINED 1
694 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
695 Defining LOCKDIR_USER_DEFINED
697 cat >> confdefs.h <<\EOF
698 #define LOCKDIR_USER_DEFINED 1
702 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
703 Defining DOCDIR_USER_DEFINED
705 cat >> confdefs.h <<\EOF
706 #define DOCDIR_USER_DEFINED 1
710 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
711 Defining ARCHLIBDIR_USER_DEFINED
713 cat >> confdefs.h <<\EOF
714 #define ARCHLIBDIR_USER_DEFINED 1
723 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
726 "with_scrollbars" | \
730 l | lu | luc | luci | lucid ) val=lucid ;;
731 m | mo | mot | moti | motif ) val=motif ;;
732 a | at | ath | athe | athen | athena ) val=athena ;;
733 n | no | non | none ) val=no ;;
734 * ) (echo "$progname: Usage error:"
735 echo " " "The \`--$optname' option must have one of these values:
736 \`lucid', \`motif', \`athena', or \`no'."
737 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
742 "use_minimal_tagbits" | \
743 "use_indexed_lrecord_implementation" | \
746 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
749 * ) (echo "$progname: Usage error:"
750 echo " " "Unrecognized option: $arg"
751 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
756 *-*-*) configuration="$arg" ;;
758 *) (echo "$progname: Usage error:"
759 echo " " "Unrecognized argument: $arg"
760 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
766 test -n "$cpp" && CPP="$cpp"
767 test -n "$cppflags" && CPPFLAGS="$cppflags"
768 test -n "$libs" && LIBS="$libs"
769 test -n "$ldflags" && LDFLAGS="$ldflags"
771 eval set x "$quoted_arguments"; shift
773 test "$extra_verbose" = "yes" && verbose=yes
775 test -n "$with_x" && with_x11="$with_x"
777 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
778 test "$with_system_malloc" = "default" && with_system_malloc=yes
783 if test "$with_cde $with_tooltalk" = "yes no"; then
784 (echo "$progname: Usage error:"
785 echo " " "--with-cde requires --with-tooltalk"
786 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
787 elif test "$with_tooltalk" = "no" ; then with_cde=no
788 elif test "$with_cde" = "yes"; then with_tooltalk=yes
795 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
796 if test -f "$dir/src/lisp.h" -a \
797 -f "$dir/lisp/version.el" ; then
802 if test -z "$srcdir" ; then
803 (echo "$progname: Usage error:"
804 echo " " "Neither the current directory nor its parent seem to
805 contain the XEmacs sources. If you do not want to build XEmacs in its
806 source tree, you should run \`$progname' in the directory in which
807 you wish to build XEmacs, using the \`--srcdir' option to say where the
808 sources may be found."
809 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
814 if test ! -f "$srcdir/src/lisp.h" -o \
815 ! -f "$srcdir/lisp/version.el" ; then
816 (echo "$progname: Usage error:"
817 echo " " "The directory specified with the \`--srcdir' option,
818 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
819 either run the \`$progname' script at the top of the XEmacs source
820 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
821 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
826 if test -z "$configuration"; then
827 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
828 if test -z "$configuration"; then
829 (echo "$progname: Usage error:"
830 echo " " "XEmacs has not been ported to this host type.
831 Try explicitly specifying the CONFIGURATION when rerunning configure."
832 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
836 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
837 echo "configure:838: checking whether ln -s works" >&5
840 if ln -s X conftestdata 2>/dev/null
843 ac_cv_prog_LN_S="ln -s"
847 LN_S="$ac_cv_prog_LN_S"
848 if test "$ac_cv_prog_LN_S" = "ln -s"; then
849 echo "$ac_t""yes" 1>&6
851 echo "$ac_t""no" 1>&6
855 for dir in lisp etc man info tests; do
856 if test ! -d "$dir" ; then
857 echo Making symbolic link to "$srcdir/$dir"
858 ${LN_S} "$srcdir/$dir" "$dir"
863 absolute_pwd="`pwd`";
864 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
866 else blddir="$absolute_pwd"; if test -d "/net"; then
867 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
868 blddir=`echo "$blddir" | \
869 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
876 . ) srcdir="$blddir" ;;
877 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
878 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
879 srcdir=`echo "$srcdir" | \
880 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
884 if test `pwd` != `sh -c cd $srcdir && pwd` \
885 && test -f "$srcdir/src/config.h"; then
886 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
887 echo " as a build directory right now; it has been configured in its own"
888 echo " right. To configure in another directory as well, you MUST"
889 echo " use GNU make. If you do not have GNU make, then you must"
890 echo " now do \`make distclean' in $srcdir,"
891 echo " and then run $progname again.") >&2
892 extrasub='/^VPATH[ ]*=/c\
898 vpath %.in $(srcdir)'
901 . "$srcdir/version.sh" || exit 1;
902 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
903 : "${extra_verbose=$beta}"
904 version="${emacs_major_version}.${emacs_minor_version}"
905 { test "$extra_verbose" = "yes" && cat << EOF
906 Defining EMACS_MAJOR_VERSION = $emacs_major_version
908 cat >> confdefs.h <<EOF
909 #define EMACS_MAJOR_VERSION $emacs_major_version
913 { test "$extra_verbose" = "yes" && cat << EOF
914 Defining EMACS_MINOR_VERSION = $emacs_minor_version
916 cat >> confdefs.h <<EOF
917 #define EMACS_MINOR_VERSION $emacs_minor_version
921 if test -n "$emacs_beta_version" ; then
922 if test "$beta" = "yes"; then
923 version="${version}-b${emacs_beta_version}"
924 { test "$extra_verbose" = "yes" && cat << EOF
925 Defining EMACS_BETA_VERSION = $emacs_beta_version
927 cat >> confdefs.h <<EOF
928 #define EMACS_BETA_VERSION $emacs_beta_version
933 version="${version}.${emacs_beta_version}"
934 { test "$extra_verbose" = "yes" && cat << EOF
935 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
937 cat >> confdefs.h <<EOF
938 #define EMACS_PATCH_LEVEL $emacs_beta_version
944 { test "$extra_verbose" = "yes" && cat << EOF
945 Defining XEMACS_CODENAME = "$xemacs_codename"
947 cat >> confdefs.h <<EOF
948 #define XEMACS_CODENAME "$xemacs_codename"
952 { test "$extra_verbose" = "yes" && cat << EOF
953 Defining EMACS_VERSION = "$version"
955 cat >> confdefs.h <<EOF
956 #define EMACS_VERSION "$version"
961 if test "$with_infodock" = "yes"; then
962 if test ! -f ../../ID-INSTALL; then
963 echo "Cannot build InfoDock without InfoDock sources"
968 if test "$with_infodock" = "yes"; then
969 { test "$extra_verbose" = "yes" && cat << EOF
970 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
972 cat >> confdefs.h <<EOF
973 #define INFODOCK_MAJOR_VERSION $infodock_major_version
977 { test "$extra_verbose" = "yes" && cat << EOF
978 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
980 cat >> confdefs.h <<EOF
981 #define INFODOCK_MINOR_VERSION $infodock_minor_version
985 { test "$extra_verbose" = "yes" && cat << EOF
986 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
988 cat >> confdefs.h <<EOF
989 #define INFODOCK_BUILD_VERSION $infodock_build_version
993 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
995 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1000 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1001 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1002 Defining ERROR_CHECK_EXTENTS
1004 cat >> confdefs.h <<\EOF
1005 #define ERROR_CHECK_EXTENTS 1
1009 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1010 Defining ERROR_CHECK_TYPECHECK
1012 cat >> confdefs.h <<\EOF
1013 #define ERROR_CHECK_TYPECHECK 1
1017 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1018 Defining ERROR_CHECK_BUFPOS
1020 cat >> confdefs.h <<\EOF
1021 #define ERROR_CHECK_BUFPOS 1
1025 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1026 Defining ERROR_CHECK_GC
1028 cat >> confdefs.h <<\EOF
1029 #define ERROR_CHECK_GC 1
1033 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1034 Defining ERROR_CHECK_MALLOC
1036 cat >> confdefs.h <<\EOF
1037 #define ERROR_CHECK_MALLOC 1
1041 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1042 Defining ERROR_CHECK_BYTE_CODE
1044 cat >> confdefs.h <<\EOF
1045 #define ERROR_CHECK_BYTE_CODE 1
1049 if test "${debug:=$beta}" = "yes"; then
1050 use_assertions=yes memory_usage_stats=yes
1051 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1052 echo " xemacs will be linked with \"debug.o\""
1054 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1055 echo " xemacs will be linked with \"tests.o\""
1057 { test "$extra_verbose" = "yes" && cat << \EOF
1058 Defining DEBUG_XEMACS
1060 cat >> confdefs.h <<\EOF
1061 #define DEBUG_XEMACS 1
1066 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1067 Defining USE_ASSERTIONS
1069 cat >> confdefs.h <<\EOF
1070 #define USE_ASSERTIONS 1
1074 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1075 Defining MEMORY_USAGE_STATS
1077 cat >> confdefs.h <<\EOF
1078 #define MEMORY_USAGE_STATS 1
1084 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1085 echo "configure:1086: checking "host system type"" >&5
1086 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1087 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1088 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1089 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1090 echo "$ac_t""$configuration" 1>&6
1098 case "$canonical" in
1099 sparc-*-* ) machine=sparc ;;
1100 alpha*-*-* ) machine=alpha ;;
1101 vax-*-* ) machine=vax ;;
1102 mips-dec-* ) machine=pmax ;;
1103 mips-sgi-irix6* ) machine=iris6d ;;
1104 mips-sgi-* ) machine=iris4d ;;
1105 mips*-linux ) machine=mips ;;
1106 romp-ibm-* ) machine=ibmrt ;;
1107 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1108 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1109 powerpc*-* ) machine=powerpc ;;
1110 hppa-*-* ) machine=hp800 ;;
1111 m88k-dg-* ) machine=aviion ;;
1112 m68*-sony-* ) machine=news ;;
1113 mips-sony-* ) machine=news-risc ;;
1114 clipper-* ) machine=clipper ;;
1115 arm-* ) machine=arm ;;
1116 armv34lb-* ) machine=arm ;;
1117 ns32k-* ) machine=ns32000 ;;
1120 case "$canonical" in
1121 *-*-linux* ) opsys=linux ;;
1122 *-*-netbsd* ) opsys=netbsd ;;
1123 *-*-openbsd* ) opsys=openbsd ;;
1124 *-*-nextstep* ) opsys=nextstep ;;
1125 *-*-vms ) opsys=vms ;;
1127 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1128 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1129 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1130 *-dec-osf3* ) opsys=decosf3-1 ;;
1131 *-dec-osf4* ) opsys=decosf4-0 ;;
1133 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1134 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1135 *-*-ultrix* ) opsys=ultrix4-3 ;;
1137 *-*-aix3.1* ) opsys=aix3-1 ;;
1138 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1139 *-*-aix3* ) opsys=aix3-2 ;;
1140 *-*-aix4.0* ) opsys=aix4 ;;
1141 *-*-aix4.1* ) opsys=aix4-1 ;;
1142 *-*-aix4* ) opsys=aix4-2 ;;
1144 *-gnu* ) opsys=gnu ;;
1145 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1146 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1147 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1148 *-*-aos4.2 ) opsys=bsd4-2 ;;
1149 *-*-aos* ) opsys=bsd4-3 ;;
1150 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1151 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1152 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1153 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1154 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1155 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1156 if test -z "$NON_GNU_CPP" ; then
1157 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1158 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1162 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1163 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1166 case "$canonical" in
1169 case "$canonical" in
1170 i[3-9]86-*-netbsd*) machine=intel386 ;;
1171 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1172 machine=hp9000s300 ;;
1173 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1174 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1179 case "${canonical}" in
1180 i386-*-openbsd*) machine=intel386 ;;
1181 m68k-*-openbsd*) machine=hp9000s300 ;;
1182 mipsel-*-openbsd*) machine=pmax ;;
1186 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1187 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1189 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1190 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1192 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1194 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1196 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1198 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1200 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1202 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1203 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1204 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1207 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1209 *-convex-bsd* | *-convex-convexos* )
1210 machine=convex opsys=bsd4-3
1211 NON_GNU_CPP="cc -E -P"
1214 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1216 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1217 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1218 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1219 m88k-dg-dgux* ) opsys=dgux ;;
1221 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1222 m88k-motorola-sysv4* )
1223 machine=delta88k opsys=usg5-4-2
1225 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1227 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1228 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1230 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1232 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1233 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1234 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1237 case "`uname -r`" in
1238 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1239 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1241 NON_GNU_CPP="/lib/cpp"
1243 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1244 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1246 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1248 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1251 case "$canonical" in
1252 m68* ) machine=hp9000s300 ;;
1253 hppa* ) machine=hp800 ;;
1256 case "$canonical" in
1257 *-hp-hpux7* ) opsys=hpux ;;
1258 *-hp-hpux8* ) opsys=hpux8 ;;
1259 *-hp-hpux9* ) opsys=hpux9 ;;
1260 *-hp-hpux10* ) opsys=hpux10 ;;
1261 *-hp-hpux11* ) opsys=hpux11 ;;
1265 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1266 echo " xemacs will be linked with \"strcat.o\""
1269 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1270 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1271 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1273 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1276 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1277 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1279 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1280 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1281 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1282 romp-ibm-aos* ) opsys=bsd4-3 ;;
1283 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1284 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1286 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1287 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1289 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1291 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1293 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1295 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1297 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1299 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1301 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1303 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1305 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1307 mips-mips-usg* ) machine=mips4 ;;
1310 NON_GNU_CC="cc -systype bsd43"
1311 NON_GNU_CPP="cc -systype bsd43 -E"
1312 case "$canonical" in
1313 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1314 mips-mips-riscos5* ) opsys=riscos5 ;;
1317 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1318 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1320 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1322 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1324 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1325 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1327 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1329 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1331 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1333 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1335 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1336 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1338 mips-siemens-sysv* | mips-sni-sysv*)
1339 machine=mips-siemens opsys=usg5-4
1340 NON_GNU_CC=/usr/ccs/bin/cc
1341 NON_GNU_CPP=/usr/ccs/lib/cpp
1346 NON_GNU_CC=/usr/ccs/bin/cc
1347 NON_GNU_CPP=/usr/ccs/lib/cpp
1350 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1351 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1352 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1353 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1354 mips-sgi-irix6* ) opsys=irix6-0 ;;
1355 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1356 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1357 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1358 mips-sgi-irix* ) opsys=irix5-0 ;;
1360 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1361 *-sony-news* ) opsys=newsos5 ;;
1363 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1365 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1366 case "$canonical" in
1367 m68*-sunos1* ) machine=sun1 ;;
1368 m68*-sunos2* ) machine=sun2 ;;
1369 m68* ) machine=sun3 ;;
1370 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1371 i*86-*-* ) machine=intel386 ;;
1372 rs6000* ) machine=rs6000 ;;
1375 case "$canonical" in *-sunos5*)
1376 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1379 case "$canonical" in
1381 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1384 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1388 case "$canonical" in
1391 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1392 { test "$extra_verbose" = "yes" && cat << EOF
1393 Defining OS_RELEASE = $os_release
1395 cat >> confdefs.h <<EOF
1396 #define OS_RELEASE $os_release
1401 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1402 *-sunos4.0* ) opsys=sunos4-0 ;;
1403 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1404 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1405 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1406 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1407 *-mach* ) opsys=mach-bsd4-3 ;;
1411 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1413 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1416 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1418 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1419 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1421 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1423 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1425 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1426 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1428 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1430 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1433 case "$canonical" in
1434 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1435 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1436 *-mach* ) opsys=mach-bsd4-3 ;;
1440 ns16k-whitechapel-* ) machine=mg1 ;;
1442 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1446 case "$canonical" in
1447 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1448 *-isc2.2* ) opsys=isc2-2 ;;
1449 *-isc4.0* ) opsys=isc4-0 ;;
1450 *-isc4.* ) opsys=isc4-1
1451 GCC_TEST_OPTIONS=-posix
1452 NON_GCC_TEST_OPTIONS=-Xp
1454 *-isc* ) opsys=isc3-0 ;;
1455 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1456 *-esix* ) opsys=esix ;;
1457 *-mach* ) opsys=mach-bsd4-3 ;;
1458 *-xenix* ) opsys=xenix ;;
1459 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1460 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1461 *-bsdi4* ) opsys=bsdos4 ;;
1462 *-bsdi3* ) opsys=bsdos3 ;;
1463 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1464 *-bsdi2* ) opsys=bsdos2 ;;
1465 *-sco3.2v5* ) opsys=sco5 ;
1466 if test "$dynamic" = "yes" ; then
1467 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1469 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1471 *-sysv5* ) opsys=sco7 ;;
1472 *-386bsd* ) opsys=386bsd ;;
1473 *-freebsd* ) opsys=freebsd ;;
1474 *-nextstep* ) opsys=nextstep ;;
1475 *-pc-cygwin* ) opsys=cygwin32 ;;
1476 *-pc-mingw* ) opsys=mingw32 ;
1477 test -z "$with_tty" && with_tty="no";;
1481 m68k-*-linux* ) machine=m68k opsys=linux ;;
1485 if test -z "$machine" -o -z "$opsys"; then
1486 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1487 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1492 if test -z "$dynamic"; then
1494 hpux* | sunos4* ) dynamic=no ;;
1498 if test "$dynamic" = "yes"; then
1500 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1501 decosf* ) ld_call_shared="-call_shared" ;;
1503 else case "$opsys" in
1505 echo "Static linking is not supported on Solaris 2."
1506 echo "Rerun configure without specifying --dynamic=no."
1508 linux ) ld_call_shared="-Bstatic" ;;
1509 decosf* ) ld_call_shared="-non_shared" ;;
1513 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1515 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1516 { test "$extra_verbose" = "yes" && cat << EOF
1517 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1519 cat >> confdefs.h <<EOF
1520 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1525 machfile="m/${machine}.h"
1526 opsysfile="s/${opsys}.h"
1529 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1530 if test "$with_workshop $with_tooltalk" = "yes no"; then
1531 (echo "$progname: Usage error:"
1532 echo " " "--with-workshop requires --with-tooltalk"
1533 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1534 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1535 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1538 if test "$with_workshop" = "yes"; then
1539 { test "$extra_verbose" = "yes" && cat << \EOF
1542 cat >> confdefs.h <<\EOF
1547 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1548 echo " xemacs will be linked with \"sunpro.o\""
1552 if test "$with_clash_detection" = "yes"; then
1553 { test "$extra_verbose" = "yes" && cat << \EOF
1554 Defining CLASH_DETECTION
1556 cat >> confdefs.h <<\EOF
1557 #define CLASH_DETECTION 1
1561 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1562 echo " xemacs will be linked with \"filelock.o\""
1566 test -n "$compiler" && CC="$compiler"
1567 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1570 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1571 if test "${CFLAGS-unset}" != unset
1572 then cflags_specified=yes;
1573 else cflags_specified=no;
1576 xe_save_CFLAGS="$CFLAGS"
1578 # Extract the first word of "gcc", so it can be a program name with args.
1579 set dummy gcc; ac_word=$2
1580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1581 echo "configure:1582: checking for $ac_word" >&5
1583 if test -n "$CC"; then
1584 ac_cv_prog_CC="$CC" # Let the user override the test.
1586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1588 for ac_dir in $ac_dummy; do
1589 test -z "$ac_dir" && ac_dir=.
1590 if test -f $ac_dir/$ac_word; then
1598 if test -n "$CC"; then
1599 echo "$ac_t""$CC" 1>&6
1601 echo "$ac_t""no" 1>&6
1604 if test -z "$CC"; then
1605 # Extract the first word of "cc", so it can be a program name with args.
1606 set dummy cc; ac_word=$2
1607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1608 echo "configure:1609: checking for $ac_word" >&5
1610 if test -n "$CC"; then
1611 ac_cv_prog_CC="$CC" # Let the user override the test.
1613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1616 for ac_dir in $ac_dummy; do
1617 test -z "$ac_dir" && ac_dir=.
1618 if test -f $ac_dir/$ac_word; then
1619 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1620 ac_prog_rejected=yes
1628 if test $ac_prog_rejected = yes; then
1629 # We found a bogon in the path, so make sure we never use it.
1630 set dummy $ac_cv_prog_CC
1632 if test $# -gt 0; then
1633 # We chose a different compiler from the bogus one.
1634 # However, it has the same basename, so the bogon will be chosen
1635 # first if we set CC to just the basename; use the full file name.
1637 set dummy "$ac_dir/$ac_word" "$@"
1644 if test -n "$CC"; then
1645 echo "$ac_t""$CC" 1>&6
1647 echo "$ac_t""no" 1>&6
1650 if test -z "$CC"; then
1651 case "`uname -s`" in
1653 # Extract the first word of "cl", so it can be a program name with args.
1654 set dummy cl; ac_word=$2
1655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1656 echo "configure:1657: checking for $ac_word" >&5
1658 if test -n "$CC"; then
1659 ac_cv_prog_CC="$CC" # Let the user override the test.
1661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1663 for ac_dir in $ac_dummy; do
1664 test -z "$ac_dir" && ac_dir=.
1665 if test -f $ac_dir/$ac_word; then
1673 if test -n "$CC"; then
1674 echo "$ac_t""$CC" 1>&6
1676 echo "$ac_t""no" 1>&6
1681 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1684 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1685 echo "configure:1686: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1688 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1689 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1690 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1691 ac_cpp='$CPP '"$xe_cppflags"
1692 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1693 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1696 cat > conftest.$ac_ext << EOF
1698 #line 1699 "configure"
1699 #include "confdefs.h"
1703 if { (eval echo configure:1704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1704 ac_cv_prog_cc_works=yes
1705 # If we can't run a trivial program, we are probably using a cross compiler.
1706 if (./conftest; exit) 2>/dev/null; then
1707 ac_cv_prog_cc_cross=no
1709 ac_cv_prog_cc_cross=yes
1712 echo "configure: failed program was:" >&5
1713 cat conftest.$ac_ext >&5
1714 ac_cv_prog_cc_works=no
1718 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1719 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1720 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1721 ac_cpp='$CPP '"$xe_cppflags"
1722 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1723 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1726 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1727 if test $ac_cv_prog_cc_works = no; then
1728 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1730 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1731 echo "configure:1732: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1732 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1733 cross_compiling=$ac_cv_prog_cc_cross
1735 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1736 echo "configure:1737: checking whether we are using GNU C" >&5
1738 cat > conftest.c <<EOF
1743 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1749 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1751 if test $ac_cv_prog_gcc = yes; then
1757 ac_test_CFLAGS="${CFLAGS+set}"
1758 ac_save_CFLAGS="$CFLAGS"
1760 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1761 echo "configure:1762: checking whether ${CC-cc} accepts -g" >&5
1763 echo 'void f(){}' > conftest.c
1764 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1772 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1773 if test "$ac_test_CFLAGS" = set; then
1774 CFLAGS="$ac_save_CFLAGS"
1775 elif test $ac_cv_prog_cc_g = yes; then
1776 if test "$GCC" = yes; then
1782 if test "$GCC" = yes; then
1789 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1791 # Extract the first word of "gcc", so it can be a program name with args.
1792 set dummy gcc; ac_word=$2
1793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1794 echo "configure:1795: checking for $ac_word" >&5
1796 if test -n "$CC"; then
1797 ac_cv_prog_CC="$CC" # Let the user override the test.
1799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1801 for ac_dir in $ac_dummy; do
1802 test -z "$ac_dir" && ac_dir=.
1803 if test -f $ac_dir/$ac_word; then
1811 if test -n "$CC"; then
1812 echo "$ac_t""$CC" 1>&6
1814 echo "$ac_t""no" 1>&6
1817 if test -z "$CC"; then
1818 # Extract the first word of "cc", so it can be a program name with args.
1819 set dummy cc; ac_word=$2
1820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1821 echo "configure:1822: checking for $ac_word" >&5
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1829 for ac_dir in $ac_dummy; do
1830 test -z "$ac_dir" && ac_dir=.
1831 if test -f $ac_dir/$ac_word; then
1832 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1833 ac_prog_rejected=yes
1841 if test $ac_prog_rejected = yes; then
1842 # We found a bogon in the path, so make sure we never use it.
1843 set dummy $ac_cv_prog_CC
1845 if test $# -gt 0; then
1846 # We chose a different compiler from the bogus one.
1847 # However, it has the same basename, so the bogon will be chosen
1848 # first if we set CC to just the basename; use the full file name.
1850 set dummy "$ac_dir/$ac_word" "$@"
1857 if test -n "$CC"; then
1858 echo "$ac_t""$CC" 1>&6
1860 echo "$ac_t""no" 1>&6
1863 if test -z "$CC"; then
1864 case "`uname -s`" in
1866 # Extract the first word of "cl", so it can be a program name with args.
1867 set dummy cl; ac_word=$2
1868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1869 echo "configure:1870: checking for $ac_word" >&5
1871 if test -n "$CC"; then
1872 ac_cv_prog_CC="$CC" # Let the user override the test.
1874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1876 for ac_dir in $ac_dummy; do
1877 test -z "$ac_dir" && ac_dir=.
1878 if test -f $ac_dir/$ac_word; then
1886 if test -n "$CC"; then
1887 echo "$ac_t""$CC" 1>&6
1889 echo "$ac_t""no" 1>&6
1894 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1897 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1898 echo "configure:1899: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1901 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1902 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1903 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1904 ac_cpp='$CPP '"$xe_cppflags"
1905 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1906 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1909 cat > conftest.$ac_ext << EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1916 if { (eval echo configure:1917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1917 ac_cv_prog_cc_works=yes
1918 # If we can't run a trivial program, we are probably using a cross compiler.
1919 if (./conftest; exit) 2>/dev/null; then
1920 ac_cv_prog_cc_cross=no
1922 ac_cv_prog_cc_cross=yes
1925 echo "configure: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1927 ac_cv_prog_cc_works=no
1931 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1932 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1933 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1934 ac_cpp='$CPP '"$xe_cppflags"
1935 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1936 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1939 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1940 if test $ac_cv_prog_cc_works = no; then
1941 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1943 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1944 echo "configure:1945: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1945 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1946 cross_compiling=$ac_cv_prog_cc_cross
1948 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1949 echo "configure:1950: checking whether we are using GNU C" >&5
1951 cat > conftest.c <<EOF
1956 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1962 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1964 if test $ac_cv_prog_gcc = yes; then
1970 ac_test_CFLAGS="${CFLAGS+set}"
1971 ac_save_CFLAGS="$CFLAGS"
1973 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1974 echo "configure:1975: checking whether ${CC-cc} accepts -g" >&5
1976 echo 'void f(){}' > conftest.c
1977 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1985 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1986 if test "$ac_test_CFLAGS" = set; then
1987 CFLAGS="$ac_save_CFLAGS"
1988 elif test $ac_cv_prog_cc_g = yes; then
1989 if test "$GCC" = yes; then
1995 if test "$GCC" = yes; then
2002 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2004 # Extract the first word of "gcc", so it can be a program name with args.
2005 set dummy gcc; ac_word=$2
2006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2007 echo "configure:2008: checking for $ac_word" >&5
2009 if test -n "$CC"; then
2010 ac_cv_prog_CC="$CC" # Let the user override the test.
2012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2014 for ac_dir in $ac_dummy; do
2015 test -z "$ac_dir" && ac_dir=.
2016 if test -f $ac_dir/$ac_word; then
2024 if test -n "$CC"; then
2025 echo "$ac_t""$CC" 1>&6
2027 echo "$ac_t""no" 1>&6
2030 if test -z "$CC"; then
2031 # Extract the first word of "cc", so it can be a program name with args.
2032 set dummy cc; ac_word=$2
2033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2034 echo "configure:2035: checking for $ac_word" >&5
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2042 for ac_dir in $ac_dummy; do
2043 test -z "$ac_dir" && ac_dir=.
2044 if test -f $ac_dir/$ac_word; then
2045 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2046 ac_prog_rejected=yes
2054 if test $ac_prog_rejected = yes; then
2055 # We found a bogon in the path, so make sure we never use it.
2056 set dummy $ac_cv_prog_CC
2058 if test $# -gt 0; then
2059 # We chose a different compiler from the bogus one.
2060 # However, it has the same basename, so the bogon will be chosen
2061 # first if we set CC to just the basename; use the full file name.
2063 set dummy "$ac_dir/$ac_word" "$@"
2070 if test -n "$CC"; then
2071 echo "$ac_t""$CC" 1>&6
2073 echo "$ac_t""no" 1>&6
2076 if test -z "$CC"; then
2077 case "`uname -s`" in
2079 # Extract the first word of "cl", so it can be a program name with args.
2080 set dummy cl; ac_word=$2
2081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2082 echo "configure:2083: checking for $ac_word" >&5
2084 if test -n "$CC"; then
2085 ac_cv_prog_CC="$CC" # Let the user override the test.
2087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2089 for ac_dir in $ac_dummy; do
2090 test -z "$ac_dir" && ac_dir=.
2091 if test -f $ac_dir/$ac_word; then
2099 if test -n "$CC"; then
2100 echo "$ac_t""$CC" 1>&6
2102 echo "$ac_t""no" 1>&6
2107 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2110 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2111 echo "configure:2112: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2114 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2115 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2116 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2117 ac_cpp='$CPP '"$xe_cppflags"
2118 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2119 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2122 cat > conftest.$ac_ext << EOF
2124 #line 2125 "configure"
2125 #include "confdefs.h"
2129 if { (eval echo configure:2130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2130 ac_cv_prog_cc_works=yes
2131 # If we can't run a trivial program, we are probably using a cross compiler.
2132 if (./conftest; exit) 2>/dev/null; then
2133 ac_cv_prog_cc_cross=no
2135 ac_cv_prog_cc_cross=yes
2138 echo "configure: failed program was:" >&5
2139 cat conftest.$ac_ext >&5
2140 ac_cv_prog_cc_works=no
2144 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2145 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2146 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2147 ac_cpp='$CPP '"$xe_cppflags"
2148 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2149 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2152 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2153 if test $ac_cv_prog_cc_works = no; then
2154 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2156 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2157 echo "configure:2158: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2158 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2159 cross_compiling=$ac_cv_prog_cc_cross
2161 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2162 echo "configure:2163: checking whether we are using GNU C" >&5
2164 cat > conftest.c <<EOF
2169 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2175 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2177 if test $ac_cv_prog_gcc = yes; then
2183 ac_test_CFLAGS="${CFLAGS+set}"
2184 ac_save_CFLAGS="$CFLAGS"
2186 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2187 echo "configure:2188: checking whether ${CC-cc} accepts -g" >&5
2189 echo 'void f(){}' > conftest.c
2190 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2198 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2199 if test "$ac_test_CFLAGS" = set; then
2200 CFLAGS="$ac_save_CFLAGS"
2201 elif test $ac_cv_prog_cc_g = yes; then
2202 if test "$GCC" = yes; then
2208 if test "$GCC" = yes; then
2216 CFLAGS="$xe_save_CFLAGS"
2219 test -n "$CPP" -a -d "$CPP" && CPP=
2221 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2223 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2224 echo "configure:2225: checking how to run the C preprocessor" >&5
2225 # On Suns, sometimes $CPP names a directory.
2226 if test -n "$CPP" && test -d "$CPP"; then
2229 if test -z "$CPP"; then
2231 # This must be in double quotes, not single quotes, because CPP may get
2232 # substituted into the Makefile and "${CC-cc}" will confuse make.
2234 # On the NeXT, cc -E runs the code through the compiler's parser,
2235 # not just through cpp.
2236 cat > conftest.$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2243 { (eval echo configure:2244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2245 if test -z "$ac_err"; then
2249 echo "configure: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2252 CPP="${CC-cc} -E -traditional-cpp"
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2260 { (eval echo configure:2261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2262 if test -z "$ac_err"; then
2266 echo "configure: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2269 CPP="${CC-cc} -nologo -E"
2270 cat > conftest.$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2277 { (eval echo configure:2278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2279 if test -z "$ac_err"; then
2283 echo "configure: failed program was:" >&5
2284 cat conftest.$ac_ext >&5
2293 ac_cv_prog_CPP="$CPP"
2294 CPP="$ac_cv_prog_CPP"
2296 ac_cv_prog_CPP="$CPP"
2298 echo "$ac_t""$CPP" 1>&6
2301 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2302 echo "configure:2303: checking for AIX" >&5
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2312 egrep "yes" >/dev/null 2>&1; then
2314 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2315 Defining _ALL_SOURCE
2317 cat >> confdefs.h <<\EOF
2318 #define _ALL_SOURCE 1
2324 echo "$ac_t""no" 1>&6
2330 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2331 echo "configure:2332: checking for GNU libc" >&5
2332 cat > conftest.$ac_ext <<EOF
2333 #line 2334 "configure"
2334 #include "confdefs.h"
2335 #include <features.h>
2338 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2339 #error Not a GNU libc system :-(
2340 ******* ======= ******** &&&&&&&&
2345 if { (eval echo configure:2346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2349 echo "configure: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2355 echo "$ac_t""$have_glibc" 1>&6
2356 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2357 Defining _GNU_SOURCE
2359 cat >> confdefs.h <<\EOF
2360 #define _GNU_SOURCE 1
2366 cat > conftest.$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2370 #if defined __SUNPRO_C
2372 #elif defined __DECC
2379 if { (eval echo configure:2380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2384 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2387 case "$conftest_rc" in
2388 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2389 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2397 echo "Extracting information from the machine- and system-dependent headers..."
2399 tempcname="conftest.c"
2403 cat > $tempcname <<EOF
2405 #define C_SWITCH_SITE
2406 #define C_SWITCH_X_SITE
2407 #define LD_SWITCH_SITE
2408 #define LD_SWITCH_X_SITE
2409 #define LD_SWITCH_X_SITE_AUX
2410 #define OS_RELEASE $os_release
2411 #include "$srcdir/src/$opsysfile"
2412 #include "$srcdir/src/$machfile"
2414 #ifndef LIBS_MACHINE
2415 #define LIBS_MACHINE
2417 configure___ libs_machine=LIBS_MACHINE
2422 configure___ libs_system=LIBS_SYSTEM
2424 #ifndef LIBS_TERMCAP
2425 #define LIBS_TERMCAP
2427 configure___ libs_termcap=LIBS_TERMCAP
2429 #ifndef LIB_STANDARD
2430 #define LIB_STANDARD
2432 configure___ libs_standard=LIB_STANDARD
2435 #ifndef OBJECTS_MACHINE
2436 #define OBJECTS_MACHINE
2438 configure___ objects_machine=OBJECTS_MACHINE
2440 #ifndef OBJECTS_SYSTEM
2441 #define OBJECTS_SYSTEM
2443 configure___ objects_system=OBJECTS_SYSTEM
2446 #ifndef C_SWITCH_MACHINE
2447 #define C_SWITCH_MACHINE
2449 configure___ c_switch_machine=C_SWITCH_MACHINE
2451 #ifndef C_SWITCH_SYSTEM
2452 #define C_SWITCH_SYSTEM
2454 configure___ c_switch_system=C_SWITCH_SYSTEM
2457 #ifndef LD_SWITCH_MACHINE
2458 #define LD_SWITCH_MACHINE
2460 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2462 #ifndef LD_SWITCH_SYSTEM
2463 #define LD_SWITCH_SYSTEM
2465 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2469 #define UNEXEC "unexec.o"
2471 configure___ unexec=UNEXEC
2474 #ifndef LD_SWITCH_SHARED
2475 #define LD_SWITCH_SHARED "-c"
2477 configure___ ld_switch_shared=LD_SWITCH_SHARED
2480 #ifdef ORDINARY_LINK
2481 #define LD "\$(CC) \$(CFLAGS)"
2482 #else /* no ORDINARY LINK */
2483 #ifdef COFF_ENCAPSULATE
2484 #define LD "\$(CC) -nostdlib"
2485 #else /* not COFF_ENCAPSULATE */
2488 #else /* ! defined (LINKER) */
2490 #endif /* ! defined (LINKER) */
2491 #endif /* ! defined (COFF_ENCAPSULATE) */
2492 #endif /* not ORDINARY_LINK */
2498 configure___ lib_gcc=LIB_GCC
2500 #ifndef LD_TEXT_START_ADDR
2501 #define LD_TEXT_START_ADDR
2503 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2506 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2508 #ifdef COFF_ENCAPSULATE
2509 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2510 #else /* ! defined (COFF_ENCAPSULATE) */
2511 #define START_FILES "pre-crt0.o /lib/crt0.o"
2512 #endif /* ! defined (COFF_ENCAPSULATE) */
2513 #else /* ! defined (NO_REMAP) */
2514 #define START_FILES "ecrt0.o"
2515 #endif /* ! defined (NO_REMAP) */
2516 #endif /* no ORDINARY_LINK */
2520 configure___ start_files=START_FILES
2522 #ifdef ORDINARY_LINK
2523 configure___ ordinary_link=yes
2525 configure___ ordinary_link=no
2528 #ifdef SYSTEM_MALLOC
2529 configure___ system_malloc=yes
2531 configure___ system_malloc=no
2535 configure___ have_terminfo=yes
2537 configure___ have_terminfo=no
2540 #ifdef MAIL_USE_FLOCK
2541 configure___ mail_use_flock=yes
2543 configure___ mail_use_flock=no
2546 #ifdef MAIL_USE_LOCKF
2547 configure___ mail_use_lockf=yes
2549 configure___ mail_use_lockf=no
2552 #ifdef MAIL_USE_LOCKING
2553 configure___ mail_use_locking=yes
2555 configure___ mail_use_locking=no
2558 #ifdef HAVE_WIN32_PROCESSES
2559 configure___ win32_processes=yes
2561 configure___ win32_processes=no
2566 CPP=`eval "echo $CPP $CPPFLAGS"`
2567 eval `$CPP -Isrc $tempcname \
2568 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2572 test "$extra_verbose" = "yes" && \
2573 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 ""
2575 case "$opsys" in mingw*) mingw_include=`eval "gcc -print-file-name=libc.a"` ;
2576 mingw_include=`eval "dirname $mingw_include"` ;
2577 mingw_include="-I$mingw_include/../include/mingw32" ;
2578 c_switch_system="$c_switch_system $mingw_include" && if test "$extra_verbose" = "yes"; then echo " Appending \"$mingw_include\" to \$c_switch_system"; fi ;;
2581 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2583 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2585 if test "$cflags_specified" = "no"; then
2586 if test "$GCC" = "yes"; then
2587 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow"
2588 elif test "$__SUNPRO_C" = "yes"; then
2590 sol2 ) CFLAGS="-v -xO4" ;;
2591 sunos4* ) CFLAGS="-xO2";;
2593 elif test "$__DECC" = "yes"; then
2595 elif test "$CC" = "xlc"; then
2596 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2602 if test "$GCC" = "yes"; then
2603 set x $ld_switch_system; shift; ld_switch_system=""
2604 while test -n "$1"; do
2606 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2607 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2609 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2615 if test "$GCC" = "yes"; then
2616 set x $ld_switch_machine; shift; ld_switch_machine=""
2617 while test -n "$1"; do
2619 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2620 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2622 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2628 if test "$GCC" = "yes"; then
2629 set x $LDFLAGS; shift; LDFLAGS=""
2630 while test -n "$1"; do
2632 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2633 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2635 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2641 if test "$GCC" = "yes"; then
2642 set x $ld_call_shared; shift; ld_call_shared=""
2643 while test -n "$1"; do
2645 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2646 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2648 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2654 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2655 echo " xemacs will be linked with \"$objects_machine\""
2657 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2658 echo " xemacs will be linked with \"$objects_system\""
2660 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2661 echo " xemacs will be linked with \"$unexec\""
2664 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2665 echo "configure:2666: checking for dynodump" >&5
2666 if test "$unexec" != "unexsol2.o"; then
2667 echo "$ac_t""no" 1>&6
2669 echo "$ac_t""yes" 1>&6
2670 { test "$extra_verbose" = "yes" && cat << \EOF
2673 cat >> confdefs.h <<\EOF
2678 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2679 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2681 sparc ) dynodump_arch=sparc ;;
2682 *86* ) dynodump_arch=i386 ;;
2683 powerpc ) dynodump_arch=ppc ;;
2685 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
2689 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2691 if test "$unexec" = "unexaix.o"; then
2692 if test "$dynamic" = "no"; then
2693 start_flags="-Wl,-bnso,-bnodelcsect"
2694 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2695 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2696 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2698 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2699 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2702 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2703 echo "configure:2704: checking for terminateAndUnload in -lC" >&5
2704 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2706 xe_check_libs=" -lC "
2707 cat > conftest.$ac_ext <<EOF
2708 #line 2709 "configure"
2709 #include "confdefs.h"
2710 /* Override any gcc2 internal prototype to avoid an error. */
2711 /* We use char because int might match the return type of a gcc2
2712 builtin and then its argument prototype would still apply. */
2713 char terminateAndUnload();
2716 terminateAndUnload()
2719 if { (eval echo configure:2720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2721 eval "ac_cv_lib_$ac_lib_var=yes"
2723 echo "configure: failed program was:" >&5
2724 cat conftest.$ac_ext >&5
2726 eval "ac_cv_lib_$ac_lib_var=no"
2731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2732 echo "$ac_t""yes" 1>&6
2733 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2735 echo "$ac_t""no" 1>&6
2740 elif test -n "$ld_text_start_addr"; then
2741 start_flags="-T $ld_text_start_addr -e __start"
2747 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2748 test -z "$linker" && linker='$(CC) -nostdlib'
2749 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2751 test "$GCC" != "yes" && lib_gcc=
2757 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2758 if test -n "$site_libraries"; then
2759 for arg in $site_libraries; do
2762 * ) test -d "$arg" || \
2763 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2766 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2770 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2771 if test -n "$site_includes"; then
2772 for arg in $site_includes; do
2775 * ) test -d "$arg" || \
2776 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2779 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2783 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2784 if test -n "$site_prefixes"; then
2785 for dir in $site_prefixes; do
2786 lib_dir="${dir}/lib"
2787 inc_dir="${dir}/include"
2788 if test ! -d "$dir"; then
2789 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2790 elif test ! -d "$lib_dir"; then
2791 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2793 if test -d "$inc_dir"; then
2794 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
2796 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
2802 for dir in "/usr/ccs/lib"; do
2803 test -d "$dir" && ld_switch_system="$ld_switch_system -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_system"; fi
2806 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2807 if test -n "$site_runtime_libraries"; then
2808 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2816 if test -n "$add_runtime_path"; then :;
2817 elif test "$dynamic" = "no"; then add_runtime_path=no
2818 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2819 else case "$opsys" in
2820 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2821 * ) add_runtime_path=no ;;
2825 if test "$add_runtime_path" = "yes"; then
2826 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2827 echo "configure:2828: checking "for runtime libraries flag"" >&5
2829 sol2 ) dash_r="-R" ;;
2830 decosf* | linux* | irix*) dash_r="-rpath " ;;
2833 for try_dash_r in "-R" "-R " "-rpath "; do
2834 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2836 if test "$GCC" = "yes"; then
2837 set x $xe_check_libs; shift; xe_check_libs=""
2838 while test -n "$1"; do
2840 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2841 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2843 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2856 if { (eval echo configure:2857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2858 dash_r="$try_dash_r"
2860 echo "configure: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2865 test -n "$dash_r" && break
2868 if test -n "$dash_r";
2869 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2870 else echo "$ac_t""NONE" 1>&6
2874 xe_add_unique_runpath_dir='
2876 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2878 if test "$xe_add_p" = "yes"; then
2879 test -n "$runpath" && runpath="${runpath}:"
2880 runpath="${runpath}${xe_runpath_dir}"
2881 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2887 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2888 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2889 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2891 runpath="" runpath_dirs=""
2892 if test -n "$LD_RUN_PATH"; then
2893 runpath="$LD_RUN_PATH"
2894 elif test "$GCC" = "yes"; then
2895 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2896 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2897 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2898 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2899 case "$arg" in P,* | -L* | -R* )
2900 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2902 xe_runpath_dir="$dir"
2903 test "$xe_runpath_dir" != "/lib" -a \
2904 "$xe_runpath_dir" != "/usr/lib" -a \
2905 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2906 eval "$xe_add_unique_runpath_dir"
2911 ld_switch_run="$ld_switch_run_save"
2914 for arg in $ld_switch_site $ld_switch_x_site; do
2915 case "$arg" in -L*) {
2916 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2917 test "$xe_runpath_dir" != "/lib" -a \
2918 "$xe_runpath_dir" != "/usr/lib" -a \
2919 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2920 eval "$xe_add_unique_runpath_dir"
2923 if test "$opsys $need_motif" = "sol2 yes"; then
2924 xe_runpath_dir="/opt/SUNWdt/lib";
2925 eval "$xe_add_unique_runpath_dir";
2928 if test -n "$runpath"; then
2929 ld_switch_run="${dash_r}${runpath}"
2931 if test "$GCC" = "yes"; then
2932 set x $ld_switch_run; shift; ld_switch_run=""
2933 while test -n "$1"; do
2935 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2936 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2938 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2943 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2951 if test "$with_dlmalloc" != "no"; then
2956 after_morecore_hook_exists=yes
2957 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2958 echo "configure:2959: checking for malloc_get_state" >&5
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 /* System header to define __stub macros and hopefully few prototypes,
2964 which can conflict with char malloc_get_state(); below. */
2966 /* Override any gcc2 internal prototype to avoid an error. */
2967 /* We use char because int might match the return type of a gcc2
2968 builtin and then its argument prototype would still apply. */
2969 char malloc_get_state();
2973 /* The GNU C library defines this for functions which it implements
2974 to always fail with ENOSYS. Some functions are actually named
2975 something starting with __ and the normal name is an alias. */
2976 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2984 if { (eval echo configure:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2986 eval "ac_cv_func_malloc_get_state=yes"
2988 echo "configure: failed program was:" >&5
2989 cat conftest.$ac_ext >&5
2991 eval "ac_cv_func_malloc_get_state=no"
2995 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2996 echo "$ac_t""yes" 1>&6
2999 echo "$ac_t""no" 1>&6
3003 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3004 echo "configure:3005: checking for malloc_set_state" >&5
3006 cat > conftest.$ac_ext <<EOF
3007 #line 3008 "configure"
3008 #include "confdefs.h"
3009 /* System header to define __stub macros and hopefully few prototypes,
3010 which can conflict with char malloc_set_state(); below. */
3012 /* Override any gcc2 internal prototype to avoid an error. */
3013 /* We use char because int might match the return type of a gcc2
3014 builtin and then its argument prototype would still apply. */
3015 char malloc_set_state();
3019 /* The GNU C library defines this for functions which it implements
3020 to always fail with ENOSYS. Some functions are actually named
3021 something starting with __ and the normal name is an alias. */
3022 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3030 if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3032 eval "ac_cv_func_malloc_set_state=yes"
3034 echo "configure: failed program was:" >&5
3035 cat conftest.$ac_ext >&5
3037 eval "ac_cv_func_malloc_set_state=no"
3041 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3042 echo "$ac_t""yes" 1>&6
3045 echo "$ac_t""no" 1>&6
3049 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3050 echo "configure:3051: checking whether __after_morecore_hook exists" >&5
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 extern void (* __after_morecore_hook)();
3056 __after_morecore_hook = 0
3059 if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3061 echo "$ac_t""yes" 1>&6
3063 echo "configure: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3066 echo "$ac_t""no" 1>&6
3067 after_morecore_hook_exists=no
3070 if test "$system_malloc" = "yes" ; then
3073 (The GNU allocators don't work with this system configuration)."
3074 elif test "$with_system_malloc" = "yes" ; then
3077 (User chose not to use GNU allocators)."
3078 elif test "$with_debug_malloc" = "yes" ; then
3081 (User chose to use Debugging Malloc)."
3084 if test "$doug_lea_malloc" = "yes" ; then
3085 if test "$GNU_MALLOC" = yes ; then
3087 (Using Doug Lea's new malloc from the GNU C Library.)"
3089 { test "$extra_verbose" = "yes" && cat << \EOF
3090 Defining DOUG_LEA_MALLOC
3092 cat >> confdefs.h <<\EOF
3093 #define DOUG_LEA_MALLOC 1
3097 if test "$after_morecore_hook_exists" = "no" ; then
3099 (Using Doug Lea's new malloc from the Linux C Library.)"
3100 { test "$extra_verbose" = "yes" && cat << \EOF
3101 Defining _NO_MALLOC_WARNING_
3103 cat >> confdefs.h <<\EOF
3104 #define _NO_MALLOC_WARNING_ 1
3109 use_minimal_tagbits=yes
3115 # Extract the first word of "ranlib", so it can be a program name with args.
3116 set dummy ranlib; ac_word=$2
3117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3118 echo "configure:3119: checking for $ac_word" >&5
3120 if test -n "$RANLIB"; then
3121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3125 for ac_dir in $ac_dummy; do
3126 test -z "$ac_dir" && ac_dir=.
3127 if test -f $ac_dir/$ac_word; then
3128 ac_cv_prog_RANLIB="ranlib"
3133 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3135 RANLIB="$ac_cv_prog_RANLIB"
3136 if test -n "$RANLIB"; then
3137 echo "$ac_t""$RANLIB" 1>&6
3139 echo "$ac_t""no" 1>&6
3143 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3144 if test -f $ac_dir/install-sh; then
3146 ac_install_sh="$ac_aux_dir/install-sh -c"
3148 elif test -f $ac_dir/install.sh; then
3150 ac_install_sh="$ac_aux_dir/install.sh -c"
3154 if test -z "$ac_aux_dir"; then
3155 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3157 ac_config_guess=$ac_aux_dir/config.guess
3158 ac_config_sub=$ac_aux_dir/config.sub
3159 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3161 # Find a good install program. We prefer a C program (faster),
3162 # so one script is as good as another. But avoid the broken or
3163 # incompatible versions:
3164 # SysV /etc/install, /usr/sbin/install
3165 # SunOS /usr/etc/install
3166 # IRIX /sbin/install
3168 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3169 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3170 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3171 # ./install, which can be erroneously created by make from ./install.sh.
3172 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3173 echo "configure:3174: checking for a BSD compatible install" >&5
3174 if test -z "$INSTALL"; then
3176 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3177 for ac_dir in $PATH; do
3178 # Account for people who put trailing slashes in PATH elements.
3180 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3182 # OSF1 and SCO ODT 3.0 have their own names for install.
3183 # Don't use installbsd from OSF since it installs stuff as root
3185 for ac_prog in ginstall scoinst install; do
3186 if test -f $ac_dir/$ac_prog; then
3187 if test $ac_prog = install &&
3188 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3189 # AIX install. It has an incompatible calling convention.
3192 ac_cv_path_install="$ac_dir/$ac_prog -c"
3202 if test "${ac_cv_path_install+set}" = set; then
3203 INSTALL="$ac_cv_path_install"
3205 # As a last resort, use the slow shell script. We don't cache a
3206 # path for INSTALL within a source directory, because that will
3207 # break other packages using the cache if that directory is
3208 # removed, or if the path is relative.
3209 INSTALL="$ac_install_sh"
3212 echo "$ac_t""$INSTALL" 1>&6
3214 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3215 # It thinks the first close brace ends the variable substitution.
3216 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3218 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3220 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3222 for ac_prog in 'bison -y' byacc
3224 # Extract the first word of "$ac_prog", so it can be a program name with args.
3225 set dummy $ac_prog; ac_word=$2
3226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3227 echo "configure:3228: checking for $ac_word" >&5
3229 if test -n "$YACC"; then
3230 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3234 for ac_dir in $ac_dummy; do
3235 test -z "$ac_dir" && ac_dir=.
3236 if test -f $ac_dir/$ac_word; then
3237 ac_cv_prog_YACC="$ac_prog"
3243 YACC="$ac_cv_prog_YACC"
3244 if test -n "$YACC"; then
3245 echo "$ac_t""$YACC" 1>&6
3247 echo "$ac_t""no" 1>&6
3250 test -n "$YACC" && break
3252 test -n "$YACC" || YACC="yacc"
3255 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3257 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3258 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3259 echo "configure:3260: checking for $ac_hdr" >&5
3261 cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3267 { (eval echo configure:3268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3269 if test -z "$ac_err"; then
3271 eval "ac_cv_header_$ac_safe=yes"
3274 echo "configure: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3277 eval "ac_cv_header_$ac_safe=no"
3280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3281 echo "$ac_t""yes" 1>&6
3282 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3283 { test "$extra_verbose" = "yes" && cat << EOF
3286 cat >> confdefs.h <<EOF
3287 #define $ac_tr_hdr 1
3292 echo "$ac_t""no" 1>&6
3296 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3298 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3300 echo "configure:3301: checking for $ac_hdr" >&5
3302 cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3308 { (eval echo configure:3309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3310 if test -z "$ac_err"; then
3312 eval "ac_cv_header_$ac_safe=yes"
3315 echo "configure: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3318 eval "ac_cv_header_$ac_safe=no"
3321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3322 echo "$ac_t""yes" 1>&6
3323 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3324 { test "$extra_verbose" = "yes" && cat << EOF
3327 cat >> confdefs.h <<EOF
3328 #define $ac_tr_hdr 1
3333 echo "$ac_t""no" 1>&6
3337 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3339 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3340 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3341 echo "configure:3342: checking for $ac_hdr" >&5
3343 cat > conftest.$ac_ext <<EOF
3344 #line 3345 "configure"
3345 #include "confdefs.h"
3348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3349 { (eval echo configure:3350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3351 if test -z "$ac_err"; then
3353 eval "ac_cv_header_$ac_safe=yes"
3356 echo "configure: failed program was:" >&5
3357 cat conftest.$ac_ext >&5
3359 eval "ac_cv_header_$ac_safe=no"
3362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3363 echo "$ac_t""yes" 1>&6
3364 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3365 { test "$extra_verbose" = "yes" && cat << EOF
3368 cat >> confdefs.h <<EOF
3369 #define $ac_tr_hdr 1
3374 echo "$ac_t""no" 1>&6
3378 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3379 echo "configure:3380: checking for sys/wait.h that is POSIX.1 compatible" >&5
3381 cat > conftest.$ac_ext <<EOF
3382 #line 3383 "configure"
3383 #include "confdefs.h"
3384 #include <sys/types.h>
3385 #include <sys/wait.h>
3387 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3390 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3395 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3398 if { (eval echo configure:3399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3400 ac_cv_header_sys_wait_h=yes
3402 echo "configure: failed program was:" >&5
3403 cat conftest.$ac_ext >&5
3405 ac_cv_header_sys_wait_h=no
3409 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3410 if test $ac_cv_header_sys_wait_h = yes; then
3411 { test "$extra_verbose" = "yes" && cat << \EOF
3412 Defining HAVE_SYS_WAIT_H
3414 cat >> confdefs.h <<\EOF
3415 #define HAVE_SYS_WAIT_H 1
3421 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3422 echo "configure:3423: checking for ANSI C header files" >&5
3424 cat > conftest.$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3433 { (eval echo configure:3434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3435 if test -z "$ac_err"; then
3437 ac_cv_header_stdc=yes
3440 echo "configure: failed program was:" >&5
3441 cat conftest.$ac_ext >&5
3443 ac_cv_header_stdc=no
3447 if test $ac_cv_header_stdc = yes; then
3448 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3449 cat > conftest.$ac_ext <<EOF
3450 #line 3451 "configure"
3451 #include "confdefs.h"
3454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3455 egrep "memchr" >/dev/null 2>&1; then
3459 ac_cv_header_stdc=no
3465 if test $ac_cv_header_stdc = yes; then
3466 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3467 cat > conftest.$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3473 egrep "free" >/dev/null 2>&1; then
3477 ac_cv_header_stdc=no
3483 if test $ac_cv_header_stdc = yes; then
3484 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3485 cat > conftest.$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3489 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3490 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3492 int main () { int i; for (i = 0; i < 256; i++)
3493 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3497 if { (eval echo configure:3498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3505 ac_cv_header_stdc=no
3510 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3511 if test $ac_cv_header_stdc = yes; then
3512 { test "$extra_verbose" = "yes" && cat << \EOF
3513 Defining STDC_HEADERS
3515 cat >> confdefs.h <<\EOF
3516 #define STDC_HEADERS 1
3522 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3523 echo "configure:3524: checking whether time.h and sys/time.h may both be included" >&5
3525 cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 #include <sys/types.h>
3529 #include <sys/time.h>
3535 if { (eval echo configure:3536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3537 ac_cv_header_time=yes
3539 echo "configure: failed program was:" >&5
3540 cat conftest.$ac_ext >&5
3542 ac_cv_header_time=no
3546 echo "$ac_t""$ac_cv_header_time" 1>&6
3547 if test $ac_cv_header_time = yes; then
3548 { test "$extra_verbose" = "yes" && cat << \EOF
3549 Defining TIME_WITH_SYS_TIME
3551 cat >> confdefs.h <<\EOF
3552 #define TIME_WITH_SYS_TIME 1
3558 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3559 echo "configure:3560: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3561 cat > conftest.$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 #include <sys/types.h>
3566 /* NetBSD declares sys_siglist in unistd.h. */
3567 #ifdef HAVE_UNISTD_H
3571 char *msg = *(sys_siglist + 1);
3574 if { (eval echo configure:3575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3576 ac_cv_decl_sys_siglist=yes
3578 echo "configure: failed program was:" >&5
3579 cat conftest.$ac_ext >&5
3581 ac_cv_decl_sys_siglist=no
3585 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3586 if test $ac_cv_decl_sys_siglist = yes; then
3587 { test "$extra_verbose" = "yes" && cat << \EOF
3588 Defining SYS_SIGLIST_DECLARED
3590 cat >> confdefs.h <<\EOF
3591 #define SYS_SIGLIST_DECLARED 1
3598 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3599 echo "configure:3600: checking for struct utimbuf" >&5
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 #ifdef TIME_WITH_SYS_TIME
3604 #include <sys/time.h>
3607 #ifdef HAVE_SYS_TIME_H
3608 #include <sys/time.h>
3617 static struct utimbuf x; x.actime = x.modtime;
3620 if { (eval echo configure:3621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3622 echo "$ac_t""yes" 1>&6
3623 { test "$extra_verbose" = "yes" && cat << \EOF
3624 Defining HAVE_STRUCT_UTIMBUF
3626 cat >> confdefs.h <<\EOF
3627 #define HAVE_STRUCT_UTIMBUF 1
3632 echo "configure: failed program was:" >&5
3633 cat conftest.$ac_ext >&5
3635 echo "$ac_t""no" 1>&6
3639 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3640 echo "configure:3641: checking return type of signal handlers" >&5
3642 cat > conftest.$ac_ext <<EOF
3643 #line 3644 "configure"
3644 #include "confdefs.h"
3645 #include <sys/types.h>
3651 extern "C" void (*signal (int, void (*)(int)))(int);
3653 void (*signal ()) ();
3660 if { (eval echo configure:3661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3662 ac_cv_type_signal=void
3664 echo "configure: failed program was:" >&5
3665 cat conftest.$ac_ext >&5
3667 ac_cv_type_signal=int
3671 echo "$ac_t""$ac_cv_type_signal" 1>&6
3672 { test "$extra_verbose" = "yes" && cat << EOF
3673 Defining RETSIGTYPE = $ac_cv_type_signal
3675 cat >> confdefs.h <<EOF
3676 #define RETSIGTYPE $ac_cv_type_signal
3681 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3682 echo "configure:3683: checking for size_t" >&5
3684 cat > conftest.$ac_ext <<EOF
3685 #line 3686 "configure"
3686 #include "confdefs.h"
3687 #include <sys/types.h>
3693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3694 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3696 ac_cv_type_size_t=yes
3699 ac_cv_type_size_t=no
3703 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3704 if test $ac_cv_type_size_t = no; then
3705 { test "$extra_verbose" = "yes" && cat << \EOF
3706 Defining size_t = unsigned
3708 cat >> confdefs.h <<\EOF
3709 #define size_t unsigned
3715 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3716 echo "configure:3717: checking for pid_t" >&5
3718 cat > conftest.$ac_ext <<EOF
3719 #line 3720 "configure"
3720 #include "confdefs.h"
3721 #include <sys/types.h>
3727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3728 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3730 ac_cv_type_pid_t=yes
3737 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3738 if test $ac_cv_type_pid_t = no; then
3739 { test "$extra_verbose" = "yes" && cat << \EOF
3740 Defining pid_t = int
3742 cat >> confdefs.h <<\EOF
3749 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3750 echo "configure:3751: checking for uid_t in sys/types.h" >&5
3752 cat > conftest.$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3755 #include <sys/types.h>
3757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3758 egrep "uid_t" >/dev/null 2>&1; then
3760 ac_cv_type_uid_t=yes
3768 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3769 if test $ac_cv_type_uid_t = no; then
3770 { test "$extra_verbose" = "yes" && cat << \EOF
3771 Defining uid_t = int
3773 cat >> confdefs.h <<\EOF
3778 { test "$extra_verbose" = "yes" && cat << \EOF
3779 Defining gid_t = int
3781 cat >> confdefs.h <<\EOF
3788 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3789 echo "configure:3790: checking for mode_t" >&5
3791 cat > conftest.$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3794 #include <sys/types.h>
3800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3801 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3803 ac_cv_type_mode_t=yes
3806 ac_cv_type_mode_t=no
3810 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3811 if test $ac_cv_type_mode_t = no; then
3812 { test "$extra_verbose" = "yes" && cat << \EOF
3813 Defining mode_t = int
3815 cat >> confdefs.h <<\EOF
3822 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3823 echo "configure:3824: checking for off_t" >&5
3825 cat > conftest.$ac_ext <<EOF
3826 #line 3827 "configure"
3827 #include "confdefs.h"
3828 #include <sys/types.h>
3834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3835 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3837 ac_cv_type_off_t=yes
3844 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3845 if test $ac_cv_type_off_t = no; then
3846 { test "$extra_verbose" = "yes" && cat << \EOF
3847 Defining off_t = long
3849 cat >> confdefs.h <<\EOF
3856 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3857 echo "configure:3858: checking for ssize_t" >&5
3859 cat > conftest.$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 #include <sys/types.h>
3868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3869 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3871 ac_cv_type_ssize_t=yes
3874 ac_cv_type_ssize_t=no
3878 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3879 if test $ac_cv_type_ssize_t = no; then
3880 { test "$extra_verbose" = "yes" && cat << \EOF
3881 Defining ssize_t = int
3883 cat >> confdefs.h <<\EOF
3891 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3892 echo "configure:3893: checking for struct timeval" >&5
3893 cat > conftest.$ac_ext <<EOF
3894 #line 3895 "configure"
3895 #include "confdefs.h"
3896 #ifdef TIME_WITH_SYS_TIME
3897 #include <sys/time.h>
3900 #ifdef HAVE_SYS_TIME_H
3901 #include <sys/time.h>
3907 static struct timeval x; x.tv_sec = x.tv_usec;
3910 if { (eval echo configure:3911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3912 echo "$ac_t""yes" 1>&6
3914 { test "$extra_verbose" = "yes" && cat << \EOF
3915 Defining HAVE_TIMEVAL
3917 cat >> confdefs.h <<\EOF
3918 #define HAVE_TIMEVAL 1
3923 echo "configure: failed program was:" >&5
3924 cat conftest.$ac_ext >&5
3926 echo "$ac_t""no" 1>&6
3931 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3932 echo "configure:3933: checking whether struct tm is in sys/time.h or time.h" >&5
3934 cat > conftest.$ac_ext <<EOF
3935 #line 3936 "configure"
3936 #include "confdefs.h"
3937 #include <sys/types.h>
3940 struct tm *tp; tp->tm_sec;
3943 if { (eval echo configure:3944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3945 ac_cv_struct_tm=time.h
3947 echo "configure: failed program was:" >&5
3948 cat conftest.$ac_ext >&5
3950 ac_cv_struct_tm=sys/time.h
3954 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3955 if test $ac_cv_struct_tm = sys/time.h; then
3956 { test "$extra_verbose" = "yes" && cat << \EOF
3957 Defining TM_IN_SYS_TIME
3959 cat >> confdefs.h <<\EOF
3960 #define TM_IN_SYS_TIME 1
3966 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3967 echo "configure:3968: checking for tm_zone in struct tm" >&5
3969 cat > conftest.$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3972 #include <sys/types.h>
3973 #include <$ac_cv_struct_tm>
3975 struct tm tm; tm.tm_zone;
3978 if { (eval echo configure:3979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3980 ac_cv_struct_tm_zone=yes
3982 echo "configure: failed program was:" >&5
3983 cat conftest.$ac_ext >&5
3985 ac_cv_struct_tm_zone=no
3989 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3990 if test "$ac_cv_struct_tm_zone" = yes; then
3991 { test "$extra_verbose" = "yes" && cat << \EOF
3992 Defining HAVE_TM_ZONE
3994 cat >> confdefs.h <<\EOF
3995 #define HAVE_TM_ZONE 1
4000 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4001 echo "configure:4002: checking for tzname" >&5
4003 cat > conftest.$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4007 #ifndef tzname /* For SGI. */
4008 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4014 if { (eval echo configure:4015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4016 ac_cv_var_tzname=yes
4018 echo "configure: failed program was:" >&5
4019 cat conftest.$ac_ext >&5
4025 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4026 if test $ac_cv_var_tzname = yes; then
4027 { test "$extra_verbose" = "yes" && cat << \EOF
4028 Defining HAVE_TZNAME
4030 cat >> confdefs.h <<\EOF
4031 #define HAVE_TZNAME 1
4039 echo $ac_n "checking for working const""... $ac_c" 1>&6
4040 echo "configure:4041: checking for working const" >&5
4042 cat > conftest.$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4048 /* Ultrix mips cc rejects this. */
4049 typedef int charset[2]; const charset x = {0,0};
4050 /* SunOS 4.1.1 cc rejects this. */
4051 char const *const *ccp;
4053 /* NEC SVR4.0.2 mips cc rejects this. */
4054 struct point {int x, y;};
4055 static struct point const zero = {0,0};
4056 /* AIX XL C 1.02.0.0 rejects this.
4057 It does not let you subtract one const X* pointer from another in an arm
4058 of an if-expression whose if-part is not a constant expression */
4059 const char *g = "string";
4060 ccp = &g + (g ? g-g : 0);
4061 /* HPUX 7.0 cc rejects these. */
4064 ccp = (char const *const *) p;
4065 { /* SCO 3.2v4 cc rejects this. */
4067 char const *s = 0 ? (char *) 0 : (char const *) 0;
4071 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4073 const int *foo = &x[0];
4076 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4077 typedef const int *iptr;
4081 { /* AIX XL C 1.02.0.0 rejects this saying
4082 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4083 struct s { int j; const int *ap[3]; };
4084 struct s *b; b->j = 5;
4086 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4092 if { (eval echo configure:4093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4096 echo "configure: failed program was:" >&5
4097 cat conftest.$ac_ext >&5
4103 echo "$ac_t""$ac_cv_c_const" 1>&6
4104 if test $ac_cv_c_const = no; then
4105 { test "$extra_verbose" = "yes" && cat << \EOF
4108 cat >> confdefs.h <<\EOF
4116 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4117 echo "configure:4118: checking whether ${MAKE-make} sets \${MAKE}" >&5
4118 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4120 cat > conftestmake <<\EOF
4122 @echo 'ac_maketemp="${MAKE}"'
4124 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4125 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4126 if test -n "$ac_maketemp"; then
4127 eval ac_cv_prog_make_${ac_make}_set=yes
4129 eval ac_cv_prog_make_${ac_make}_set=no
4132 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4133 echo "$ac_t""yes" 1>&6
4136 echo "$ac_t""no" 1>&6
4137 SET_MAKE="MAKE=${MAKE-make}"
4141 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4142 echo "configure:4143: checking whether byte ordering is bigendian" >&5
4144 ac_cv_c_bigendian=unknown
4145 # See if sys/param.h defines the BYTE_ORDER macro.
4146 cat > conftest.$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4149 #include <sys/types.h>
4150 #include <sys/param.h>
4153 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4158 if { (eval echo configure:4159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4160 # It does; now see whether it defined to BIG_ENDIAN or not.
4161 cat > conftest.$ac_ext <<EOF
4162 #line 4163 "configure"
4163 #include "confdefs.h"
4164 #include <sys/types.h>
4165 #include <sys/param.h>
4168 #if BYTE_ORDER != BIG_ENDIAN
4173 if { (eval echo configure:4174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4175 ac_cv_c_bigendian=yes
4177 echo "configure: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4180 ac_cv_c_bigendian=no
4184 echo "configure: failed program was:" >&5
4185 cat conftest.$ac_ext >&5
4188 if test $ac_cv_c_bigendian = unknown; then
4189 cat > conftest.$ac_ext <<EOF
4190 #line 4191 "configure"
4191 #include "confdefs.h"
4193 /* Are we little or big endian? From Harbison&Steele. */
4197 char c[sizeof (long)];
4200 exit (u.c[sizeof (long) - 1] == 1);
4203 if { (eval echo configure:4204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4205 ac_cv_c_bigendian=no
4208 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4211 ac_cv_c_bigendian=yes
4216 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4217 if test $ac_cv_c_bigendian = yes; then
4218 { test "$extra_verbose" = "yes" && cat << \EOF
4219 Defining WORDS_BIGENDIAN
4221 cat >> confdefs.h <<\EOF
4222 #define WORDS_BIGENDIAN 1
4229 echo $ac_n "checking size of short""... $ac_c" 1>&6
4230 echo "configure:4231: checking size of short" >&5
4232 cat > conftest.$ac_ext <<EOF
4233 #line 4234 "configure"
4234 #include "confdefs.h"
4238 FILE *f=fopen("conftestval", "w");
4240 fprintf(f, "%d\n", sizeof(short));
4244 if { (eval echo configure:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4246 ac_cv_sizeof_short=`cat conftestval`
4249 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4252 ac_cv_sizeof_short=0
4255 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4256 { test "$extra_verbose" = "yes" && cat << EOF
4257 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4259 cat >> confdefs.h <<EOF
4260 #define SIZEOF_SHORT $ac_cv_sizeof_short
4265 if test "$ac_cv_sizeof_short" = 0; then
4267 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4268 echo "*** PANIC *** Please examine config.log for compilation errors."
4271 echo $ac_n "checking size of int""... $ac_c" 1>&6
4272 echo "configure:4273: checking size of int" >&5
4274 cat > conftest.$ac_ext <<EOF
4275 #line 4276 "configure"
4276 #include "confdefs.h"
4280 FILE *f=fopen("conftestval", "w");
4282 fprintf(f, "%d\n", sizeof(int));
4286 if { (eval echo configure:4287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4288 ac_cv_sizeof_int=`cat conftestval`
4291 echo "configure: failed program was:" >&5
4292 cat conftest.$ac_ext >&5
4297 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4298 { test "$extra_verbose" = "yes" && cat << EOF
4299 Defining SIZEOF_INT = $ac_cv_sizeof_int
4301 cat >> confdefs.h <<EOF
4302 #define SIZEOF_INT $ac_cv_sizeof_int
4307 echo $ac_n "checking size of long""... $ac_c" 1>&6
4308 echo "configure:4309: checking size of long" >&5
4310 cat > conftest.$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4316 FILE *f=fopen("conftestval", "w");
4318 fprintf(f, "%d\n", sizeof(long));
4322 if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4324 ac_cv_sizeof_long=`cat conftestval`
4327 echo "configure: failed program was:" >&5
4328 cat conftest.$ac_ext >&5
4333 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4334 { test "$extra_verbose" = "yes" && cat << EOF
4335 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4337 cat >> confdefs.h <<EOF
4338 #define SIZEOF_LONG $ac_cv_sizeof_long
4343 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4344 echo "configure:4345: checking size of long long" >&5
4346 cat > conftest.$ac_ext <<EOF
4347 #line 4348 "configure"
4348 #include "confdefs.h"
4352 FILE *f=fopen("conftestval", "w");
4354 fprintf(f, "%d\n", sizeof(long long));
4358 if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4360 ac_cv_sizeof_long_long=`cat conftestval`
4363 echo "configure: failed program was:" >&5
4364 cat conftest.$ac_ext >&5
4366 ac_cv_sizeof_long_long=0
4369 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4370 { test "$extra_verbose" = "yes" && cat << EOF
4371 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4373 cat >> confdefs.h <<EOF
4374 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4379 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4380 echo "configure:4381: checking size of void *" >&5
4382 cat > conftest.$ac_ext <<EOF
4383 #line 4384 "configure"
4384 #include "confdefs.h"
4388 FILE *f=fopen("conftestval", "w");
4390 fprintf(f, "%d\n", sizeof(void *));
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4396 ac_cv_sizeof_void_p=`cat conftestval`
4399 echo "configure: failed program was:" >&5
4400 cat conftest.$ac_ext >&5
4402 ac_cv_sizeof_void_p=0
4405 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4406 { test "$extra_verbose" = "yes" && cat << EOF
4407 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4409 cat >> confdefs.h <<EOF
4410 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4416 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4417 echo "configure:4418: checking for long file names" >&5
4419 ac_cv_sys_long_file_names=yes
4420 # Test for long file names in all the places we know might matter:
4421 # . the current directory, where building will happen
4422 # $prefix/lib where we will be installing things
4423 # $exec_prefix/lib likewise
4424 # eval it to expand exec_prefix.
4425 # $TMPDIR if set, where it might want to write temporary files
4426 # if $TMPDIR is not set:
4427 # /tmp where it might want to write temporary files
4430 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4431 ac_tmpdirs="$TMPDIR"
4433 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4435 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4436 test -d $ac_dir || continue
4437 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4438 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4439 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4440 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4441 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4442 ac_cv_sys_long_file_names=no
4443 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4446 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4449 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4450 if test $ac_cv_sys_long_file_names = yes; then
4451 { test "$extra_verbose" = "yes" && cat << \EOF
4452 Defining HAVE_LONG_FILE_NAMES
4454 cat >> confdefs.h <<\EOF
4455 #define HAVE_LONG_FILE_NAMES 1
4462 echo $ac_n "checking for sin""... $ac_c" 1>&6
4463 echo "configure:4464: checking for sin" >&5
4465 cat > conftest.$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4468 /* System header to define __stub macros and hopefully few prototypes,
4469 which can conflict with char sin(); below. */
4471 /* Override any gcc2 internal prototype to avoid an error. */
4472 /* We use char because int might match the return type of a gcc2
4473 builtin and then its argument prototype would still apply. */
4478 /* The GNU C library defines this for functions which it implements
4479 to always fail with ENOSYS. Some functions are actually named
4480 something starting with __ and the normal name is an alias. */
4481 #if defined (__stub_sin) || defined (__stub___sin)
4489 if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4491 eval "ac_cv_func_sin=yes"
4493 echo "configure: failed program was:" >&5
4494 cat conftest.$ac_ext >&5
4496 eval "ac_cv_func_sin=no"
4500 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4501 echo "$ac_t""yes" 1>&6
4504 echo "$ac_t""no" 1>&6
4506 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4507 echo "configure:4508: checking for sin in -lm" >&5
4508 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4510 xe_check_libs=" -lm "
4511 cat > conftest.$ac_ext <<EOF
4512 #line 4513 "configure"
4513 #include "confdefs.h"
4514 /* Override any gcc2 internal prototype to avoid an error. */
4515 /* We use char because int might match the return type of a gcc2
4516 builtin and then its argument prototype would still apply. */
4523 if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4525 eval "ac_cv_lib_$ac_lib_var=yes"
4527 echo "configure: failed program was:" >&5
4528 cat conftest.$ac_ext >&5
4530 eval "ac_cv_lib_$ac_lib_var=no"
4535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4536 echo "$ac_t""yes" 1>&6
4537 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4538 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4539 { test "$extra_verbose" = "yes" && cat << EOF
4542 cat >> confdefs.h <<EOF
4543 #define $ac_tr_lib 1
4547 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4550 echo "$ac_t""no" 1>&6
4557 { test "$extra_verbose" = "yes" && cat << \EOF
4558 Defining LISP_FLOAT_TYPE
4560 cat >> confdefs.h <<\EOF
4561 #define LISP_FLOAT_TYPE 1
4566 cat > conftest.$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4571 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4574 if { (eval echo configure:4575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4576 { test "$extra_verbose" = "yes" && cat << \EOF
4577 Defining HAVE_INVERSE_HYPERBOLIC
4579 cat >> confdefs.h <<\EOF
4580 #define HAVE_INVERSE_HYPERBOLIC 1
4585 echo "configure: failed program was:" >&5
4586 cat conftest.$ac_ext >&5
4590 echo "checking type of mail spool file locking" 1>&6
4591 echo "configure:4592: checking type of mail spool file locking" >&5
4592 for ac_func in lockf flock
4594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4595 echo "configure:4596: checking for $ac_func" >&5
4597 cat > conftest.$ac_ext <<EOF
4598 #line 4599 "configure"
4599 #include "confdefs.h"
4600 /* System header to define __stub macros and hopefully few prototypes,
4601 which can conflict with char $ac_func(); below. */
4603 /* Override any gcc2 internal prototype to avoid an error. */
4604 /* We use char because int might match the return type of a gcc2
4605 builtin and then its argument prototype would still apply. */
4610 /* The GNU C library defines this for functions which it implements
4611 to always fail with ENOSYS. Some functions are actually named
4612 something starting with __ and the normal name is an alias. */
4613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4621 if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4623 eval "ac_cv_func_$ac_func=yes"
4625 echo "configure: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4628 eval "ac_cv_func_$ac_func=no"
4632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4633 echo "$ac_t""yes" 1>&6
4634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4635 { test "$extra_verbose" = "yes" && cat << EOF
4636 Defining $ac_tr_func
4638 cat >> confdefs.h <<EOF
4639 #define $ac_tr_func 1
4644 echo "$ac_t""no" 1>&6
4648 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4649 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4650 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4651 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4652 Defining MAIL_LOCK_LOCKF
4654 cat >> confdefs.h <<\EOF
4655 #define MAIL_LOCK_LOCKF 1
4659 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4660 Defining MAIL_LOCK_FLOCK
4662 cat >> confdefs.h <<\EOF
4663 #define MAIL_LOCK_FLOCK 1
4667 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4668 Defining MAIL_LOCK_LOCKING
4670 cat >> confdefs.h <<\EOF
4671 #define MAIL_LOCK_LOCKING 1
4675 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4676 Defining MAIL_LOCK_DOT
4678 cat >> confdefs.h <<\EOF
4679 #define MAIL_LOCK_DOT 1
4684 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4685 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4686 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4687 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4688 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4689 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4691 case "$opsys" in decosf*)
4693 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4694 echo "configure:4695: checking for cma_open in -lpthreads" >&5
4695 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4697 xe_check_libs=" -lpthreads "
4698 cat > conftest.$ac_ext <<EOF
4699 #line 4700 "configure"
4700 #include "confdefs.h"
4701 /* Override any gcc2 internal prototype to avoid an error. */
4702 /* We use char because int might match the return type of a gcc2
4703 builtin and then its argument prototype would still apply. */
4710 if { (eval echo configure:4711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4712 eval "ac_cv_lib_$ac_lib_var=yes"
4714 echo "configure: failed program was:" >&5
4715 cat conftest.$ac_ext >&5
4717 eval "ac_cv_lib_$ac_lib_var=no"
4722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4723 echo "$ac_t""yes" 1>&6
4724 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4725 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4726 { test "$extra_verbose" = "yes" && cat << EOF
4729 cat >> confdefs.h <<EOF
4730 #define $ac_tr_lib 1
4734 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4737 echo "$ac_t""no" 1>&6
4741 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4742 c_switch_site="$c_switch_site -threads" ;;
4745 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4746 echo "configure:4747: checking whether the -xildoff compiler flag is required" >&5
4747 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4748 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4749 then echo "$ac_t""no" 1>&6;
4750 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
4752 else echo "$ac_t""no" 1>&6
4755 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4756 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4757 echo "configure:4758: checking for \"-z ignore\" linker flag" >&5
4758 case "`ld -h 2>&1`" in
4759 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4760 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4761 *) echo "$ac_t""no" 1>&6 ;;
4766 echo "checking "for specified window system"" 1>&6
4767 echo "configure:4768: checking "for specified window system"" >&5
4769 if test "$with_x11" != "no"; then
4770 test "$x_includes $x_libraries" != "NONE NONE" && \
4771 window_system=x11 with_x11=yes
4774 if test "$x_includes $x_libraries" = "NONE NONE" \
4775 -a -n "$OPENWINHOME" \
4776 -a "$OPENWINHOME" != "/usr/openwin" \
4777 -a -d "$OPENWINHOME"; then
4778 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4779 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4780 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4783 if test "$x_includes" = "NONE"; then
4784 for dir in "/usr/X11" "/usr/X11R6"; do
4785 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4789 if test "$x_libraries" = "NONE"; then
4790 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4791 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4795 # If we find X, set shell vars x_includes and x_libraries to the
4796 # paths, otherwise set no_x=yes.
4797 # Uses ac_ vars as temps to allow command line to override cache and checks.
4798 # --without-x overrides everything else, but does not touch the cache.
4799 echo $ac_n "checking for X""... $ac_c" 1>&6
4800 echo "configure:4801: checking for X" >&5
4802 # Check whether --with-x or --without-x was given.
4803 if test "${with_x+set}" = set; then
4808 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4809 if test "x$with_x" = xno; then
4810 # The user explicitly disabled X.
4813 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4814 # Both variables are already set.
4818 # One or both of the vars are not set, and there is no cached value.
4819 ac_x_includes=NO ac_x_libraries=NO
4821 if mkdir conftestdir; then
4823 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4824 cat > Imakefile <<'EOF'
4826 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4828 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4829 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4830 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4831 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4832 for ac_extension in a so sl; do
4833 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4834 test -f $ac_im_libdir/libX11.$ac_extension; then
4835 ac_im_usrlibdir=$ac_im_libdir; break
4838 # Screen out bogus values from the imake configuration. They are
4839 # bogus both because they are the default anyway, and because
4840 # using them would break gcc on systems where it needs fixed includes.
4841 case "$ac_im_incroot" in
4843 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4845 case "$ac_im_usrlibdir" in
4847 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4854 if test "$ac_x_includes" = NO; then
4855 # Guess where to find include files, by looking for this one X11 .h file.
4856 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4858 # First, try using that file with no special directory specified.
4859 cat > conftest.$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4862 #include <$x_direct_test_include>
4864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4865 { (eval echo configure:4866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4867 if test -z "$ac_err"; then
4869 # We can compile using X headers with no special include directory.
4873 echo "configure: failed program was:" >&5
4874 cat conftest.$ac_ext >&5
4876 # Look for the header file in a standard set of common directories.
4877 # Check X11 before X11Rn because it is often a symlink to the current release.
4880 /usr/X11R6/include \
4881 /usr/X11R5/include \
4882 /usr/X11R4/include \
4885 /usr/include/X11R6 \
4886 /usr/include/X11R5 \
4887 /usr/include/X11R4 \
4889 /usr/local/X11/include \
4890 /usr/local/X11R6/include \
4891 /usr/local/X11R5/include \
4892 /usr/local/X11R4/include \
4894 /usr/local/include/X11 \
4895 /usr/local/include/X11R6 \
4896 /usr/local/include/X11R5 \
4897 /usr/local/include/X11R4 \
4901 /usr/XFree86/include/X11 \
4904 /usr/local/include \
4905 /usr/unsupported/include \
4906 /usr/athena/include \
4907 /usr/local/x11r5/include \
4908 /usr/lpp/Xamples/include \
4910 /usr/openwin/include \
4911 /usr/openwin/share/include \
4914 if test -r "$ac_dir/$x_direct_test_include"; then
4915 ac_x_includes=$ac_dir
4921 fi # $ac_x_includes = NO
4923 if test "$ac_x_libraries" = NO; then
4924 # Check for the libraries.
4926 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4927 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4929 # See if we find them without any special options.
4930 # Don't add to $LIBS permanently.
4931 ac_save_LIBS="$LIBS"
4932 LIBS="-l$x_direct_test_library $LIBS"
4933 cat > conftest.$ac_ext <<EOF
4934 #line 4935 "configure"
4935 #include "confdefs.h"
4938 ${x_direct_test_function}()
4941 if { (eval echo configure:4942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4943 LIBS="$ac_save_LIBS"
4944 # We can link X programs with no special library path.
4947 echo "configure: failed program was:" >&5
4948 cat conftest.$ac_ext >&5
4950 LIBS="$ac_save_LIBS"
4951 # First see if replacing the include by lib works.
4952 # Check X11 before X11Rn because it is often a symlink to the current release.
4953 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4964 /usr/local/X11/lib \
4965 /usr/local/X11R6/lib \
4966 /usr/local/X11R5/lib \
4967 /usr/local/X11R4/lib \
4969 /usr/local/lib/X11 \
4970 /usr/local/lib/X11R6 \
4971 /usr/local/lib/X11R5 \
4972 /usr/local/lib/X11R4 \
4976 /usr/XFree86/lib/X11 \
4980 /usr/unsupported/lib \
4982 /usr/local/x11r5/lib \
4983 /usr/lpp/Xamples/lib \
4987 /usr/openwin/share/lib \
4990 for ac_extension in a so sl; do
4991 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4992 ac_x_libraries=$ac_dir
4999 fi # $ac_x_libraries = NO
5001 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5002 # Didn't find X anywhere. Cache the known absence of X.
5003 ac_cv_have_x="have_x=no"
5005 # Record where we found X for the cache.
5006 ac_cv_have_x="have_x=yes \
5007 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5010 eval "$ac_cv_have_x"
5013 if test "$have_x" != yes; then
5014 echo "$ac_t""$have_x" 1>&6
5017 # If each of the values was on the command line, it overrides each guess.
5018 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5019 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5020 # Update the cache value to reflect the command line values.
5021 ac_cv_have_x="have_x=yes \
5022 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5023 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5026 if test "$no_x" = yes; then
5027 # Not all programs may use this symbol, but it does not hurt to define it.
5028 { test "$extra_verbose" = "yes" && cat << \EOF
5029 Defining X_DISPLAY_MISSING
5031 cat >> confdefs.h <<\EOF
5032 #define X_DISPLAY_MISSING 1
5036 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5038 if test -n "$x_includes"; then
5039 X_CFLAGS="$X_CFLAGS -I$x_includes"
5042 # It would also be nice to do this for all -L options, not just this one.
5043 if test -n "$x_libraries"; then
5044 X_LIBS="$X_LIBS -L$x_libraries"
5045 # For Solaris; some versions of Sun CC require a space after -R and
5046 # others require no space. Words are not sufficient . . . .
5047 case "`(uname -sr) 2>/dev/null`" in
5049 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5050 echo "configure:5051: checking whether -R must be followed by a space" >&5
5051 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5052 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5060 if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5070 if test $ac_R_nospace = yes; then
5071 echo "$ac_t""no" 1>&6
5072 X_LIBS="$X_LIBS -R$x_libraries"
5074 LIBS="$ac_xsave_LIBS -R $x_libraries"
5075 cat > conftest.$ac_ext <<EOF
5076 #line 5077 "configure"
5077 #include "confdefs.h"
5083 if { (eval echo configure:5084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5087 echo "configure: failed program was:" >&5
5088 cat conftest.$ac_ext >&5
5093 if test $ac_R_space = yes; then
5094 echo "$ac_t""yes" 1>&6
5095 X_LIBS="$X_LIBS -R $x_libraries"
5097 echo "$ac_t""neither works" 1>&6
5100 LIBS="$ac_xsave_LIBS"
5104 # Check for system-dependent libraries X programs must link with.
5105 # Do this before checking for the system-independent R6 libraries
5106 # (-lICE), since we may need -lsocket or whatever for X linking.
5108 if test "$ISC" = yes; then
5109 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5111 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5112 # libraries were built with DECnet support. And karl@cs.umb.edu says
5113 # the Alpha needs dnet_stub (dnet does not exist).
5114 if test "$with_dnet" = "no" ; then
5115 ac_cv_lib_dnet_dnet_ntoa=no
5118 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5119 echo "configure:5120: checking for dnet_ntoa in -ldnet" >&5
5120 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5122 xe_check_libs=" -ldnet "
5123 cat > conftest.$ac_ext <<EOF
5124 #line 5125 "configure"
5125 #include "confdefs.h"
5126 /* Override any gcc2 internal prototype to avoid an error. */
5127 /* We use char because int might match the return type of a gcc2
5128 builtin and then its argument prototype would still apply. */
5135 if { (eval echo configure:5136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5137 eval "ac_cv_lib_$ac_lib_var=yes"
5139 echo "configure: failed program was:" >&5
5140 cat conftest.$ac_ext >&5
5142 eval "ac_cv_lib_$ac_lib_var=no"
5147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5148 echo "$ac_t""yes" 1>&6
5149 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5151 echo "$ac_t""no" 1>&6
5156 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5158 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5159 echo "configure:5160: checking for dnet_ntoa in -ldnet_stub" >&5
5160 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5162 xe_check_libs=" -ldnet_stub "
5163 cat > conftest.$ac_ext <<EOF
5164 #line 5165 "configure"
5165 #include "confdefs.h"
5166 /* Override any gcc2 internal prototype to avoid an error. */
5167 /* We use char because int might match the return type of a gcc2
5168 builtin and then its argument prototype would still apply. */
5175 if { (eval echo configure:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5177 eval "ac_cv_lib_$ac_lib_var=yes"
5179 echo "configure: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5182 eval "ac_cv_lib_$ac_lib_var=no"
5187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5188 echo "$ac_t""yes" 1>&6
5189 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5191 echo "$ac_t""no" 1>&6
5197 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5198 # to get the SysV transport functions.
5199 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5201 # The nsl library prevents programs from opening the X display
5202 # on Irix 5.2, according to dickey@clark.net.
5203 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5204 echo "configure:5205: checking for gethostbyname" >&5
5206 cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 /* System header to define __stub macros and hopefully few prototypes,
5210 which can conflict with char gethostbyname(); below. */
5212 /* Override any gcc2 internal prototype to avoid an error. */
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5215 char gethostbyname();
5219 /* The GNU C library defines this for functions which it implements
5220 to always fail with ENOSYS. Some functions are actually named
5221 something starting with __ and the normal name is an alias. */
5222 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5230 if { (eval echo configure:5231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5232 eval "ac_cv_func_gethostbyname=yes"
5234 echo "configure: failed program was:" >&5
5235 cat conftest.$ac_ext >&5
5237 eval "ac_cv_func_gethostbyname=no"
5241 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5242 echo "$ac_t""yes" 1>&6
5245 echo "$ac_t""no" 1>&6
5248 if test $ac_cv_func_gethostbyname = no; then
5250 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5251 echo "configure:5252: checking for gethostbyname in -lnsl" >&5
5252 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5254 xe_check_libs=" -lnsl "
5255 cat > conftest.$ac_ext <<EOF
5256 #line 5257 "configure"
5257 #include "confdefs.h"
5258 /* Override any gcc2 internal prototype to avoid an error. */
5259 /* We use char because int might match the return type of a gcc2
5260 builtin and then its argument prototype would still apply. */
5261 char gethostbyname();
5267 if { (eval echo configure:5268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5269 eval "ac_cv_lib_$ac_lib_var=yes"
5271 echo "configure: failed program was:" >&5
5272 cat conftest.$ac_ext >&5
5274 eval "ac_cv_lib_$ac_lib_var=no"
5279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5280 echo "$ac_t""yes" 1>&6
5281 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5283 echo "$ac_t""no" 1>&6
5289 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5290 # socket/setsockopt and other routines are undefined under SCO ODT
5291 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5292 # on later versions), says simon@lia.di.epfl.ch: it contains
5293 # gethostby* variants that don't use the nameserver (or something).
5294 # -lsocket must be given before -lnsl if both are needed.
5295 # We assume that if connect needs -lnsl, so does gethostbyname.
5296 echo $ac_n "checking for connect""... $ac_c" 1>&6
5297 echo "configure:5298: checking for connect" >&5
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5302 /* System header to define __stub macros and hopefully few prototypes,
5303 which can conflict with char connect(); below. */
5305 /* Override any gcc2 internal prototype to avoid an error. */
5306 /* We use char because int might match the return type of a gcc2
5307 builtin and then its argument prototype would still apply. */
5312 /* The GNU C library defines this for functions which it implements
5313 to always fail with ENOSYS. Some functions are actually named
5314 something starting with __ and the normal name is an alias. */
5315 #if defined (__stub_connect) || defined (__stub___connect)
5323 if { (eval echo configure:5324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5325 eval "ac_cv_func_connect=yes"
5327 echo "configure: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5330 eval "ac_cv_func_connect=no"
5334 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5335 echo "$ac_t""yes" 1>&6
5338 echo "$ac_t""no" 1>&6
5341 if test $ac_cv_func_connect = no; then
5343 xe_msg_checking="for connect in -lsocket"
5344 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5345 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5346 echo "configure:5347: checking "$xe_msg_checking"" >&5
5347 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5349 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5350 cat > conftest.$ac_ext <<EOF
5351 #line 5352 "configure"
5352 #include "confdefs.h"
5353 /* Override any gcc2 internal prototype to avoid an error. */
5354 /* We use char because int might match the return type of a gcc2
5355 builtin and then its argument prototype would still apply. */
5362 if { (eval echo configure:5363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5364 eval "ac_cv_lib_$ac_lib_var=yes"
5366 echo "configure: failed program was:" >&5
5367 cat conftest.$ac_ext >&5
5369 eval "ac_cv_lib_$ac_lib_var=no"
5374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5375 echo "$ac_t""yes" 1>&6
5376 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5378 echo "$ac_t""no" 1>&6
5384 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5385 echo $ac_n "checking for remove""... $ac_c" 1>&6
5386 echo "configure:5387: checking for remove" >&5
5388 cat > conftest.$ac_ext <<EOF
5389 #line 5390 "configure"
5390 #include "confdefs.h"
5391 /* System header to define __stub macros and hopefully few prototypes,
5392 which can conflict with char remove(); below. */
5394 /* Override any gcc2 internal prototype to avoid an error. */
5395 /* We use char because int might match the return type of a gcc2
5396 builtin and then its argument prototype would still apply. */
5401 /* The GNU C library defines this for functions which it implements
5402 to always fail with ENOSYS. Some functions are actually named
5403 something starting with __ and the normal name is an alias. */
5404 #if defined (__stub_remove) || defined (__stub___remove)
5412 if { (eval echo configure:5413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5414 eval "ac_cv_func_remove=yes"
5416 echo "configure: failed program was:" >&5
5417 cat conftest.$ac_ext >&5
5419 eval "ac_cv_func_remove=no"
5423 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5424 echo "$ac_t""yes" 1>&6
5427 echo "$ac_t""no" 1>&6
5430 if test $ac_cv_func_remove = no; then
5432 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5433 echo "configure:5434: checking for remove in -lposix" >&5
5434 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5436 xe_check_libs=" -lposix "
5437 cat > conftest.$ac_ext <<EOF
5438 #line 5439 "configure"
5439 #include "confdefs.h"
5440 /* Override any gcc2 internal prototype to avoid an error. */
5441 /* We use char because int might match the return type of a gcc2
5442 builtin and then its argument prototype would still apply. */
5449 if { (eval echo configure:5450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5451 eval "ac_cv_lib_$ac_lib_var=yes"
5453 echo "configure: failed program was:" >&5
5454 cat conftest.$ac_ext >&5
5456 eval "ac_cv_lib_$ac_lib_var=no"
5461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5462 echo "$ac_t""yes" 1>&6
5463 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5465 echo "$ac_t""no" 1>&6
5471 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5472 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5473 echo "configure:5474: checking for shmat" >&5
5475 cat > conftest.$ac_ext <<EOF
5476 #line 5477 "configure"
5477 #include "confdefs.h"
5478 /* System header to define __stub macros and hopefully few prototypes,
5479 which can conflict with char shmat(); below. */
5481 /* Override any gcc2 internal prototype to avoid an error. */
5482 /* We use char because int might match the return type of a gcc2
5483 builtin and then its argument prototype would still apply. */
5488 /* The GNU C library defines this for functions which it implements
5489 to always fail with ENOSYS. Some functions are actually named
5490 something starting with __ and the normal name is an alias. */
5491 #if defined (__stub_shmat) || defined (__stub___shmat)
5499 if { (eval echo configure:5500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5501 eval "ac_cv_func_shmat=yes"
5503 echo "configure: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5506 eval "ac_cv_func_shmat=no"
5510 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5511 echo "$ac_t""yes" 1>&6
5514 echo "$ac_t""no" 1>&6
5517 if test $ac_cv_func_shmat = no; then
5519 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5520 echo "configure:5521: checking for shmat in -lipc" >&5
5521 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5523 xe_check_libs=" -lipc "
5524 cat > conftest.$ac_ext <<EOF
5525 #line 5526 "configure"
5526 #include "confdefs.h"
5527 /* Override any gcc2 internal prototype to avoid an error. */
5528 /* We use char because int might match the return type of a gcc2
5529 builtin and then its argument prototype would still apply. */
5536 if { (eval echo configure:5537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5538 eval "ac_cv_lib_$ac_lib_var=yes"
5540 echo "configure: failed program was:" >&5
5541 cat conftest.$ac_ext >&5
5543 eval "ac_cv_lib_$ac_lib_var=no"
5548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5549 echo "$ac_t""yes" 1>&6
5550 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5552 echo "$ac_t""no" 1>&6
5559 # Check for libraries that X11R6 Xt/Xaw programs need.
5560 ac_save_LDFLAGS="$LDFLAGS"
5561 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5562 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5563 # check for ICE first), but we must link in the order -lSM -lICE or
5564 # we get undefined symbols. So assume we have SM if we have ICE.
5565 # These have to be linked with before -lX11, unlike the other
5566 # libraries we check for below, so use a different variable.
5567 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5569 xe_msg_checking="for IceConnectionNumber in -lICE"
5570 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5571 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5572 echo "configure:5573: checking "$xe_msg_checking"" >&5
5573 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5575 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5576 cat > conftest.$ac_ext <<EOF
5577 #line 5578 "configure"
5578 #include "confdefs.h"
5579 /* Override any gcc2 internal prototype to avoid an error. */
5580 /* We use char because int might match the return type of a gcc2
5581 builtin and then its argument prototype would still apply. */
5582 char IceConnectionNumber();
5585 IceConnectionNumber()
5588 if { (eval echo configure:5589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5590 eval "ac_cv_lib_$ac_lib_var=yes"
5592 echo "configure: failed program was:" >&5
5593 cat conftest.$ac_ext >&5
5595 eval "ac_cv_lib_$ac_lib_var=no"
5600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5601 echo "$ac_t""yes" 1>&6
5602 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5604 echo "$ac_t""no" 1>&6
5608 LDFLAGS="$ac_save_LDFLAGS"
5611 # Autoconf claims to find X library and include dirs for us.
5612 if test "$no_x" = "yes"
5613 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5614 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5619 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5620 no ) window_system=none HAVE_X_WINDOWS=no ;;
5623 if test "$with_x11" = "yes"; then
5624 { test "$extra_verbose" = "yes" && cat << \EOF
5625 Defining HAVE_X_WINDOWS
5627 cat >> confdefs.h <<\EOF
5628 #define HAVE_X_WINDOWS 1
5632 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5633 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5635 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5636 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5637 if test -d "$lib_dir" -a -d "$inc_dir"; then
5638 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5639 x_libraries="$lib_dir $x_libraries"
5640 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5642 case "$x_includes" in "$inc_dir"* ) ;; *)
5643 x_includes="$inc_dir $x_includes"
5644 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5649 for rel in "X11R6" "X11R5" "X11R4"; do
5650 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5651 if test -d "$lib_dir" -a -d "$inc_dir"; then
5652 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5653 x_libraries="$x_libraries $lib_dir"
5654 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5656 case "$x_includes" in "$inc_dir"* ) ;; *)
5657 x_includes="$x_includes $inc_dir"
5658 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5663 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
5665 ld_switch_x_site="$X_LIBS"
5668 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5669 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5670 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5672 runpath="" runpath_dirs=""
5673 if test -n "$LD_RUN_PATH"; then
5674 runpath="$LD_RUN_PATH"
5675 elif test "$GCC" = "yes"; then
5676 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5677 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5678 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5679 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5680 case "$arg" in P,* | -L* | -R* )
5681 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5683 xe_runpath_dir="$dir"
5684 test "$xe_runpath_dir" != "/lib" -a \
5685 "$xe_runpath_dir" != "/usr/lib" -a \
5686 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5687 eval "$xe_add_unique_runpath_dir"
5692 ld_switch_run="$ld_switch_run_save"
5695 for arg in $ld_switch_site $ld_switch_x_site; do
5696 case "$arg" in -L*) {
5697 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5698 test "$xe_runpath_dir" != "/lib" -a \
5699 "$xe_runpath_dir" != "/usr/lib" -a \
5700 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5701 eval "$xe_add_unique_runpath_dir"
5704 if test "$opsys $need_motif" = "sol2 yes"; then
5705 xe_runpath_dir="/opt/SUNWdt/lib";
5706 eval "$xe_add_unique_runpath_dir";
5709 if test -n "$runpath"; then
5710 ld_switch_run="${dash_r}${runpath}"
5712 if test "$GCC" = "yes"; then
5713 set x $ld_switch_run; shift; ld_switch_run=""
5714 while test -n "$1"; do
5716 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5717 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5719 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5724 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5729 if test "$extra_verbose" = "yes"; then
5730 echo; echo "X11 compilation variables:"
5731 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5736 if test "$x_includes" != NONE; then
5737 for i in $x_includes; do
5738 if test -d "$i/bitmaps"; then
5739 bitmapdirs="$i/bitmaps:$bitmapdirs"
5741 if test -d "$i/X11/bitmaps"; then
5742 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5745 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5747 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5748 Defining BITMAPDIR = "$bitmapdirs"
5750 cat >> confdefs.h <<EOF
5751 #define BITMAPDIR "$bitmapdirs"
5756 echo "checking for X defines extracted by xmkmf" 1>&6
5757 echo "configure:5758: checking for X defines extracted by xmkmf" >&5
5759 if mkdir conftestdir; then
5761 cat > Imakefile <<'EOF'
5763 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5765 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5766 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5767 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5771 for word in $xmkmf_defines; do
5774 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5775 { test "$extra_verbose" = "yes" && cat << EOF
5778 cat >> confdefs.h <<EOF
5787 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5788 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5789 echo "configure:5790: checking for X11/Intrinsic.h" >&5
5791 cat > conftest.$ac_ext <<EOF
5792 #line 5793 "configure"
5793 #include "confdefs.h"
5794 #include <X11/Intrinsic.h>
5796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5797 { (eval echo configure:5798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5799 if test -z "$ac_err"; then
5801 eval "ac_cv_header_$ac_safe=yes"
5804 echo "configure: failed program was:" >&5
5805 cat conftest.$ac_ext >&5
5807 eval "ac_cv_header_$ac_safe=no"
5810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5811 echo "$ac_t""yes" 1>&6
5814 echo "$ac_t""no" 1>&6
5815 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5820 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5821 echo "configure:5822: checking for XOpenDisplay in -lX11" >&5
5822 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5824 xe_check_libs=" -lX11 "
5825 cat > conftest.$ac_ext <<EOF
5826 #line 5827 "configure"
5827 #include "confdefs.h"
5828 /* Override any gcc2 internal prototype to avoid an error. */
5829 /* We use char because int might match the return type of a gcc2
5830 builtin and then its argument prototype would still apply. */
5831 char XOpenDisplay();
5837 if { (eval echo configure:5838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5839 eval "ac_cv_lib_$ac_lib_var=yes"
5841 echo "configure: failed program was:" >&5
5842 cat conftest.$ac_ext >&5
5844 eval "ac_cv_lib_$ac_lib_var=no"
5849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5850 echo "$ac_t""yes" 1>&6
5853 echo "$ac_t""no" 1>&6
5857 if test "$have_lib_x11" != "yes"; then
5859 xe_msg_checking="for XGetFontProperty in -lX11"
5860 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5861 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5862 echo "configure:5863: checking "$xe_msg_checking"" >&5
5863 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5865 xe_check_libs=" -lX11 -b i486-linuxaout"
5866 cat > conftest.$ac_ext <<EOF
5867 #line 5868 "configure"
5868 #include "confdefs.h"
5869 /* Override any gcc2 internal prototype to avoid an error. */
5870 /* We use char because int might match the return type of a gcc2
5871 builtin and then its argument prototype would still apply. */
5872 char XGetFontProperty();
5878 if { (eval echo configure:5879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5880 eval "ac_cv_lib_$ac_lib_var=yes"
5882 echo "configure: failed program was:" >&5
5883 cat conftest.$ac_ext >&5
5885 eval "ac_cv_lib_$ac_lib_var=no"
5890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5891 echo "$ac_t""yes" 1>&6
5892 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5894 echo "$ac_t""no" 1>&6
5895 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5901 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5904 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5905 echo "configure:5906: checking for XShapeSelectInput in -lXext" >&5
5906 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5908 xe_check_libs=" -lXext "
5909 cat > conftest.$ac_ext <<EOF
5910 #line 5911 "configure"
5911 #include "confdefs.h"
5912 /* Override any gcc2 internal prototype to avoid an error. */
5913 /* We use char because int might match the return type of a gcc2
5914 builtin and then its argument prototype would still apply. */
5915 char XShapeSelectInput();
5921 if { (eval echo configure:5922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5923 eval "ac_cv_lib_$ac_lib_var=yes"
5925 echo "configure: failed program was:" >&5
5926 cat conftest.$ac_ext >&5
5928 eval "ac_cv_lib_$ac_lib_var=no"
5933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5934 echo "$ac_t""yes" 1>&6
5935 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5937 echo "$ac_t""no" 1>&6
5943 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5944 echo "configure:5945: checking for XtOpenDisplay in -lXt" >&5
5945 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5947 xe_check_libs=" -lXt "
5948 cat > conftest.$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5951 /* Override any gcc2 internal prototype to avoid an error. */
5952 /* We use char because int might match the return type of a gcc2
5953 builtin and then its argument prototype would still apply. */
5954 char XtOpenDisplay();
5960 if { (eval echo configure:5961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5962 eval "ac_cv_lib_$ac_lib_var=yes"
5964 echo "configure: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5967 eval "ac_cv_lib_$ac_lib_var=no"
5972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5973 echo "$ac_t""yes" 1>&6
5974 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5976 echo "$ac_t""no" 1>&6
5977 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5982 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5983 echo "configure:5984: checking the version of X11 being used" >&5
5984 cat > conftest.$ac_ext <<EOF
5985 #line 5986 "configure"
5986 #include "confdefs.h"
5987 #include <X11/Intrinsic.h>
5988 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5990 if { (eval echo configure:5991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5992 ./conftest foobar; x11_release=$?
5995 echo "configure: failed program was:" >&5
5996 cat conftest.$ac_ext >&5
6001 echo "$ac_t""R${x11_release}" 1>&6
6002 { test "$extra_verbose" = "yes" && cat << EOF
6003 Defining THIS_IS_X11R${x11_release}
6005 cat >> confdefs.h <<EOF
6006 #define THIS_IS_X11R${x11_release} 1
6011 for ac_hdr in X11/Xlocale.h
6013 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6014 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6015 echo "configure:6016: checking for $ac_hdr" >&5
6017 cat > conftest.$ac_ext <<EOF
6018 #line 6019 "configure"
6019 #include "confdefs.h"
6022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6023 { (eval echo configure:6024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6025 if test -z "$ac_err"; then
6027 eval "ac_cv_header_$ac_safe=yes"
6030 echo "configure: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6033 eval "ac_cv_header_$ac_safe=no"
6036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6037 echo "$ac_t""yes" 1>&6
6038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6039 { test "$extra_verbose" = "yes" && cat << EOF
6042 cat >> confdefs.h <<EOF
6043 #define $ac_tr_hdr 1
6048 echo "$ac_t""no" 1>&6
6053 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
6054 echo "configure:6055: checking for XFree86" >&5
6055 if test -d "/usr/X386/include" -o \
6056 -f "/etc/XF86Config" -o \
6057 -f "/etc/X11/XF86Config" -o \
6058 -f "/usr/X11R6/lib/X11/XF86Config"; then
6059 echo "$ac_t""yes" 1>&6
6060 { test "$extra_verbose" = "yes" && cat << \EOF
6061 Defining HAVE_XFREE386
6063 cat >> confdefs.h <<\EOF
6064 #define HAVE_XFREE386 1
6069 echo "$ac_t""no" 1>&6
6072 test -z "$with_xmu" && {
6073 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6074 echo "configure:6075: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6075 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6077 xe_check_libs=" -lXmu "
6078 cat > conftest.$ac_ext <<EOF
6079 #line 6080 "configure"
6080 #include "confdefs.h"
6081 /* Override any gcc2 internal prototype to avoid an error. */
6082 /* We use char because int might match the return type of a gcc2
6083 builtin and then its argument prototype would still apply. */
6084 char XmuReadBitmapDataFromFile();
6087 XmuReadBitmapDataFromFile()
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
6111 if test "$with_xmu" = "no"; then
6112 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6113 echo " xemacs will be linked with \"xmu.o\""
6116 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6117 { test "$extra_verbose" = "yes" && cat << \EOF
6120 cat >> confdefs.h <<\EOF
6128 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6129 echo "configure:6130: checking for main in -lXbsd" >&5
6130 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6132 xe_check_libs=" -lXbsd "
6133 cat > conftest.$ac_ext <<EOF
6134 #line 6135 "configure"
6135 #include "confdefs.h"
6141 if { (eval echo configure:6142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6143 eval "ac_cv_lib_$ac_lib_var=yes"
6145 echo "configure: failed program was:" >&5
6146 cat conftest.$ac_ext >&5
6148 eval "ac_cv_lib_$ac_lib_var=no"
6153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6154 echo "$ac_t""yes" 1>&6
6155 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6157 echo "$ac_t""no" 1>&6
6162 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6163 if test "$GCC" = "yes"; then
6164 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6165 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6168 "xlc" ) CC="xlc_r" ;;
6169 "xlC" ) CC="xlC_r" ;;
6176 if test "$with_msw" != "no"; then
6177 echo "checking for MS-Windows" 1>&6
6178 echo "configure:6179: checking for MS-Windows" >&5
6180 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6181 echo "configure:6182: checking for main in -lgdi32" >&5
6182 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6184 xe_check_libs=" -lgdi32 "
6185 cat > conftest.$ac_ext <<EOF
6186 #line 6187 "configure"
6187 #include "confdefs.h"
6193 if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6195 eval "ac_cv_lib_$ac_lib_var=yes"
6197 echo "configure: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6200 eval "ac_cv_lib_$ac_lib_var=no"
6205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6206 echo "$ac_t""yes" 1>&6
6209 echo "$ac_t""no" 1>&6
6213 if test "$with_msw" = "yes"; then
6214 { test "$extra_verbose" = "yes" && cat << \EOF
6215 Defining HAVE_MS_WINDOWS
6217 cat >> confdefs.h <<\EOF
6218 #define HAVE_MS_WINDOWS 1
6222 install_pp="$blddir/lib-src/installexe.sh"
6223 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
6224 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6225 if test "$window_system" != x11; then
6227 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6228 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6229 echo " xemacs will be linked with \"scrollbar-msw.o\""
6231 test "$with_menubars" != "no" && with_menubars=msw \
6232 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6233 echo " xemacs will be linked with \"menubar-msw.o\""
6235 test "$with_toolbars" != "no" && with_toolbars=msw \
6236 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6237 echo " xemacs will be linked with \"toolbar-msw.o\""
6239 test "$with_dialogs" != "no" && with_dialogs=msw \
6240 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6241 echo " xemacs will be linked with \"dialog-msw.o\""
6243 test "$with_widgets" != "no" && with_widgets=msw
6245 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6246 echo " xemacs will be linked with \"scrollbar-msw.o\""
6248 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6249 echo " xemacs will be linked with \"menubar-msw.o\""
6251 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6252 echo " xemacs will be linked with \"toolbar-msw.o\""
6254 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6255 echo " xemacs will be linked with \"dialog-msw.o\""
6258 cat > conftest.$ac_ext <<EOF
6259 #line 6260 "configure"
6260 #include "confdefs.h"
6262 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6264 if { (eval echo configure:6265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6266 { test "$extra_verbose" = "yes" && cat << \EOF
6267 Defining HAVE_MSG_SELECT
6269 cat >> confdefs.h <<\EOF
6270 #define HAVE_MSG_SELECT 1
6276 echo "configure: failed program was:" >&5
6277 cat conftest.$ac_ext >&5
6281 with_file_coding=yes
6282 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
6283 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\""
6290 test -z "$window_system" && window_system="none"
6292 if test "$window_system" = "none"; then
6293 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6295 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6296 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6298 eval "with_${feature}=no"
6301 test -z "$with_toolbars" && with_toolbars=yes
6304 if test "$with_msw" != "yes"; then
6305 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6307 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6308 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6310 eval "with_${feature}=no"
6316 if test "$with_x11" != "yes"; then
6317 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
6319 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6320 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6322 eval "with_${feature}=no"
6328 case "$window_system" in
6329 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6330 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6331 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6334 case "$x_libraries" in *X11R4* )
6335 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6336 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6339 echo "checking for WM_COMMAND option" 1>&6
6340 echo "configure:6341: checking for WM_COMMAND option" >&5;
6341 if test "$with_wmcommand" != "no"; then
6342 { test "$extra_verbose" = "yes" && cat << \EOF
6343 Defining HAVE_WMCOMMAND
6345 cat >> confdefs.h <<\EOF
6346 #define HAVE_WMCOMMAND 1
6352 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6353 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6354 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6355 echo "configure:6356: checking for X11/Xauth.h" >&5
6357 cat > conftest.$ac_ext <<EOF
6358 #line 6359 "configure"
6359 #include "confdefs.h"
6360 #include <X11/Xauth.h>
6362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6363 { (eval echo configure:6364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6365 if test -z "$ac_err"; then
6367 eval "ac_cv_header_$ac_safe=yes"
6370 echo "configure: failed program was:" >&5
6371 cat conftest.$ac_ext >&5
6373 eval "ac_cv_header_$ac_safe=no"
6376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6377 echo "$ac_t""yes" 1>&6
6380 echo "$ac_t""no" 1>&6
6384 test -z "$with_xauth" && {
6385 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6386 echo "configure:6387: checking for XauGetAuthByAddr in -lXau" >&5
6387 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6389 xe_check_libs=" -lXau "
6390 cat > conftest.$ac_ext <<EOF
6391 #line 6392 "configure"
6392 #include "confdefs.h"
6393 /* Override any gcc2 internal prototype to avoid an error. */
6394 /* We use char because int might match the return type of a gcc2
6395 builtin and then its argument prototype would still apply. */
6396 char XauGetAuthByAddr();
6402 if { (eval echo configure:6403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6404 eval "ac_cv_lib_$ac_lib_var=yes"
6406 echo "configure: failed program was:" >&5
6407 cat conftest.$ac_ext >&5
6409 eval "ac_cv_lib_$ac_lib_var=no"
6414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6415 echo "$ac_t""yes" 1>&6
6418 echo "$ac_t""no" 1>&6
6423 test -z "$with_xauth" && with_xauth=yes
6424 if test "$with_xauth" = "yes"; then
6425 { test "$extra_verbose" = "yes" && cat << \EOF
6428 cat >> confdefs.h <<\EOF
6429 #define HAVE_XAUTH 1
6435 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
6443 if test "$with_tooltalk" != "no" ; then
6444 for dir in "" "Tt/" "desktop/" ; do
6445 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6446 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6447 echo "configure:6448: checking for ${dir}tt_c.h" >&5
6449 cat > conftest.$ac_ext <<EOF
6450 #line 6451 "configure"
6451 #include "confdefs.h"
6452 #include <${dir}tt_c.h>
6454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6455 { (eval echo configure:6456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6457 if test -z "$ac_err"; then
6459 eval "ac_cv_header_$ac_safe=yes"
6462 echo "configure: failed program was:" >&5
6463 cat conftest.$ac_ext >&5
6465 eval "ac_cv_header_$ac_safe=no"
6468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6469 echo "$ac_t""yes" 1>&6
6470 tt_c_h_path="${dir}tt_c.h"; break
6472 echo "$ac_t""no" 1>&6
6476 if test -z "$tt_c_h_path"; then
6477 if test "$with_tooltalk" = "yes"; then
6478 (echo "$progname: Usage error:"
6479 echo " " "Unable to find required tooltalk header files."
6480 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6485 if test "$with_tooltalk" != "no" ; then
6486 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6488 xe_msg_checking="for tt_message_create in -ltt"
6489 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6490 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6491 echo "configure:6492: checking "$xe_msg_checking"" >&5
6492 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6494 xe_check_libs=" -ltt $extra_libs"
6495 cat > conftest.$ac_ext <<EOF
6496 #line 6497 "configure"
6497 #include "confdefs.h"
6498 /* Override any gcc2 internal prototype to avoid an error. */
6499 /* We use char because int might match the return type of a gcc2
6500 builtin and then its argument prototype would still apply. */
6501 char tt_message_create();
6507 if { (eval echo configure:6508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6509 eval "ac_cv_lib_$ac_lib_var=yes"
6511 echo "configure: failed program was:" >&5
6512 cat conftest.$ac_ext >&5
6514 eval "ac_cv_lib_$ac_lib_var=no"
6519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6520 echo "$ac_t""yes" 1>&6
6521 tt_libs="-ltt $extra_libs"; break
6523 echo "$ac_t""no" 1>&6
6529 if test -z "$tt_libs"; then
6530 if test "$with_tooltalk" = "yes"; then
6531 (echo "$progname: Usage error:"
6532 echo " " "Unable to find required tooltalk libraries."
6533 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6538 test -z "$with_tooltalk" && with_tooltalk=yes
6539 if test "$with_tooltalk" = "yes"; then
6540 { test "$extra_verbose" = "yes" && cat << \EOF
6543 cat >> confdefs.h <<\EOF
6548 { test "$extra_verbose" = "yes" && cat << EOF
6549 Defining TT_C_H_PATH = "$tt_c_h_path"
6551 cat >> confdefs.h <<EOF
6552 #define TT_C_H_PATH "$tt_c_h_path"
6556 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6557 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6558 echo " xemacs will be linked with \"tooltalk.o\""
6562 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6563 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6564 echo "configure:6565: checking for Dt/Dt.h" >&5
6566 cat > conftest.$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6572 { (eval echo configure:6573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6574 if test -z "$ac_err"; then
6576 eval "ac_cv_header_$ac_safe=yes"
6579 echo "configure: failed program was:" >&5
6580 cat conftest.$ac_ext >&5
6582 eval "ac_cv_header_$ac_safe=no"
6585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6586 echo "$ac_t""yes" 1>&6
6589 echo "$ac_t""no" 1>&6
6593 test -z "$with_cde" && {
6594 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6595 echo "configure:6596: checking for DtDndDragStart in -lDtSvc" >&5
6596 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6598 xe_check_libs=" -lDtSvc "
6599 cat > conftest.$ac_ext <<EOF
6600 #line 6601 "configure"
6601 #include "confdefs.h"
6602 /* Override any gcc2 internal prototype to avoid an error. */
6603 /* We use char because int might match the return type of a gcc2
6604 builtin and then its argument prototype would still apply. */
6605 char DtDndDragStart();
6611 if { (eval echo configure:6612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6613 eval "ac_cv_lib_$ac_lib_var=yes"
6615 echo "configure: failed program was:" >&5
6616 cat conftest.$ac_ext >&5
6618 eval "ac_cv_lib_$ac_lib_var=no"
6623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6624 echo "$ac_t""yes" 1>&6
6627 echo "$ac_t""no" 1>&6
6632 test -z "$with_cde" && with_cde=yes
6633 if test "$with_dragndrop" = no; then
6634 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6637 if test "$with_cde" = "yes" ; then
6638 { test "$extra_verbose" = "yes" && cat << \EOF
6641 cat >> confdefs.h <<\EOF
6646 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6647 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6648 with_tooltalk=yes # CDE requires Tooltalk
6649 need_motif=yes # CDE requires Motif
6652 test "$window_system" != "x11" && with_offix=no
6653 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6654 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6657 if test "$with_dragndrop" = no; then
6658 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6661 if test "$with_cde" = yes; then
6662 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6665 test -z "$with_offix" && with_offix=no
6666 if test "$with_offix" = "yes"; then
6667 { test "$extra_verbose" = "yes" && cat << \EOF
6668 Defining HAVE_OFFIX_DND
6670 cat >> confdefs.h <<\EOF
6671 #define HAVE_OFFIX_DND 1
6675 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6676 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6679 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6680 echo "configure:6681: checking if drag and drop API is needed" >&5
6681 if test "$with_dragndrop" != "no" ; then
6682 if test -n "$dragndrop_proto" ; then
6684 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6685 { test "$extra_verbose" = "yes" && cat << \EOF
6686 Defining HAVE_DRAGNDROP
6688 cat >> confdefs.h <<\EOF
6689 #define HAVE_DRAGNDROP 1
6693 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6696 echo "$ac_t""no" 1>&6
6700 echo "checking for LDAP" 1>&6
6701 echo "configure:6702: checking for LDAP" >&5
6702 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6703 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6704 echo "configure:6705: checking for ldap.h" >&5
6706 cat > conftest.$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6712 { (eval echo configure:6713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6714 if test -z "$ac_err"; then
6716 eval "ac_cv_header_$ac_safe=yes"
6719 echo "configure: failed program was:" >&5
6720 cat conftest.$ac_ext >&5
6722 eval "ac_cv_header_$ac_safe=no"
6725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6726 echo "$ac_t""yes" 1>&6
6729 echo "$ac_t""no" 1>&6
6733 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6734 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6735 echo "configure:6736: checking for lber.h" >&5
6737 cat > conftest.$ac_ext <<EOF
6738 #line 6739 "configure"
6739 #include "confdefs.h"
6742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6743 { (eval echo configure:6744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6745 if test -z "$ac_err"; then
6747 eval "ac_cv_header_$ac_safe=yes"
6750 echo "configure: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6753 eval "ac_cv_header_$ac_safe=no"
6756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6757 echo "$ac_t""yes" 1>&6
6760 echo "$ac_t""no" 1>&6
6764 if test "$with_ldap" != "no"; then
6766 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6767 echo "configure:6768: checking for ldap_search in -lldap" >&5
6768 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6770 xe_check_libs=" -lldap "
6771 cat > conftest.$ac_ext <<EOF
6772 #line 6773 "configure"
6773 #include "confdefs.h"
6774 /* Override any gcc2 internal prototype to avoid an error. */
6775 /* We use char because int might match the return type of a gcc2
6776 builtin and then its argument prototype would still apply. */
6783 if { (eval echo configure:6784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6785 eval "ac_cv_lib_$ac_lib_var=yes"
6787 echo "configure: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6790 eval "ac_cv_lib_$ac_lib_var=no"
6795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6796 echo "$ac_t""yes" 1>&6
6797 with_ldap_nolber=yes
6799 echo "$ac_t""no" 1>&6
6804 test "$with_ldap_nolber" = "no" && {
6805 xe_msg_checking="for ldap_open in -lldap"
6806 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6807 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6808 echo "configure:6809: checking "$xe_msg_checking"" >&5
6809 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6811 xe_check_libs=" -lldap -llber"
6812 cat > conftest.$ac_ext <<EOF
6813 #line 6814 "configure"
6814 #include "confdefs.h"
6815 /* Override any gcc2 internal prototype to avoid an error. */
6816 /* We use char because int might match the return type of a gcc2
6817 builtin and then its argument prototype would still apply. */
6824 if { (eval echo configure:6825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6826 eval "ac_cv_lib_$ac_lib_var=yes"
6828 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6831 eval "ac_cv_lib_$ac_lib_var=no"
6836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6837 echo "$ac_t""yes" 1>&6
6840 echo "$ac_t""no" 1>&6
6845 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
6846 xe_msg_checking="for ldap_open in -lldap"
6847 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
6848 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6849 echo "configure:6850: checking "$xe_msg_checking"" >&5
6850 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6852 xe_check_libs=" -lldap -llber -lkrb"
6853 cat > conftest.$ac_ext <<EOF
6854 #line 6855 "configure"
6855 #include "confdefs.h"
6856 /* Override any gcc2 internal prototype to avoid an error. */
6857 /* We use char because int might match the return type of a gcc2
6858 builtin and then its argument prototype would still apply. */
6865 if { (eval echo configure:6866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6867 eval "ac_cv_lib_$ac_lib_var=yes"
6869 echo "configure: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6872 eval "ac_cv_lib_$ac_lib_var=no"
6877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6878 echo "$ac_t""yes" 1>&6
6881 echo "$ac_t""no" 1>&6
6886 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
6887 xe_msg_checking="for ldap_open in -lldap"
6888 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
6889 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6890 echo "configure:6891: checking "$xe_msg_checking"" >&5
6891 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6893 xe_check_libs=" -lldap -llber -lkrb -ldes"
6894 cat > conftest.$ac_ext <<EOF
6895 #line 6896 "configure"
6896 #include "confdefs.h"
6897 /* Override any gcc2 internal prototype to avoid an error. */
6898 /* We use char because int might match the return type of a gcc2
6899 builtin and then its argument prototype would still apply. */
6906 if { (eval echo configure:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6908 eval "ac_cv_lib_$ac_lib_var=yes"
6910 echo "configure: failed program was:" >&5
6911 cat conftest.$ac_ext >&5
6913 eval "ac_cv_lib_$ac_lib_var=no"
6918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6919 echo "$ac_t""yes" 1>&6
6920 with_ldap_krbdes=yes
6922 echo "$ac_t""no" 1>&6
6927 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
6929 if test "$with_ldap" = "yes"; then
6930 { test "$extra_verbose" = "yes" && cat << \EOF
6933 cat >> confdefs.h <<\EOF
6938 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6939 echo " xemacs will be linked with \"eldap.o\""
6941 if test "$with_ldap_nolber" = "yes" ; then
6942 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6944 if test "$with_ldap_krb" = "yes" ; then
6945 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6947 if test "$with_ldap_krbdes" = "yes" ; then
6948 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
6949 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6951 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6952 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6954 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
6956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6957 echo "configure:6958: checking for $ac_func" >&5
6959 cat > conftest.$ac_ext <<EOF
6960 #line 6961 "configure"
6961 #include "confdefs.h"
6962 /* System header to define __stub macros and hopefully few prototypes,
6963 which can conflict with char $ac_func(); below. */
6965 /* Override any gcc2 internal prototype to avoid an error. */
6966 /* We use char because int might match the return type of a gcc2
6967 builtin and then its argument prototype would still apply. */
6972 /* The GNU C library defines this for functions which it implements
6973 to always fail with ENOSYS. Some functions are actually named
6974 something starting with __ and the normal name is an alias. */
6975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6983 if { (eval echo configure:6984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6985 eval "ac_cv_func_$ac_func=yes"
6987 echo "configure: failed program was:" >&5
6988 cat conftest.$ac_ext >&5
6990 eval "ac_cv_func_$ac_func=no"
6994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6995 echo "$ac_t""yes" 1>&6
6996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6997 { test "$extra_verbose" = "yes" && cat << EOF
6998 Defining $ac_tr_func
7000 cat >> confdefs.h <<EOF
7001 #define $ac_tr_func 1
7006 echo "$ac_t""no" 1>&6
7013 if test "$window_system" != "none"; then
7014 echo "checking for graphics libraries" 1>&6
7015 echo "configure:7016: checking for graphics libraries" >&5
7018 if test -z "$with_xpm"; then
7019 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7020 echo "configure:7021: checking for Xpm - no older than 3.4f" >&5
7022 cat > conftest.$ac_ext <<EOF
7023 #line 7024 "configure"
7024 #include "confdefs.h"
7025 #include <X11/xpm.h>
7026 int main(int c, char **v) {
7028 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7029 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7031 if { (eval echo configure:7032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7033 ./conftest dummy_arg; xpm_status=$?;
7034 if test "$xpm_status" = "0"; then
7038 if test "$xpm_status" = "1"; then
7039 xpm_problem="Xpm library version and header file version don't match!"
7040 elif test "$xpm_status" = "2"; then
7041 xpm_problem="Xpm library version is too old!"
7043 xpm_problem="Internal xpm detection logic error!"
7046 *** WARNING *** $xpm_problem
7047 I'm not touching that with a 10-foot pole!
7048 If you really want to use the installed version of Xpm, rerun
7049 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
7053 echo "configure: failed program was:" >&5
7054 cat conftest.$ac_ext >&5
7060 echo "$ac_t""$with_xpm" 1>&6
7062 if test "$with_xpm" = "yes"; then
7063 { test "$extra_verbose" = "yes" && cat << \EOF
7066 cat >> confdefs.h <<\EOF
7071 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7072 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7073 echo "configure:7074: checking for \"FOR_MSW\" xpm" >&5
7075 cat > conftest.$ac_ext <<EOF
7076 #line 7077 "configure"
7077 #include "confdefs.h"
7080 XpmCreatePixmapFromData()
7083 if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7087 echo "configure: failed program was:" >&5
7088 cat conftest.$ac_ext >&5
7094 echo "$ac_t""$xpm_for_msw" 1>&6
7095 if test "$xpm_for_msw" = "yes"; then
7096 { test "$extra_verbose" = "yes" && cat << \EOF
7099 cat >> confdefs.h <<\EOF
7107 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7108 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7109 echo "configure:7110: checking for compface.h" >&5
7111 cat > conftest.$ac_ext <<EOF
7112 #line 7113 "configure"
7113 #include "confdefs.h"
7114 #include <compface.h>
7116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7117 { (eval echo configure:7118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7119 if test -z "$ac_err"; then
7121 eval "ac_cv_header_$ac_safe=yes"
7124 echo "configure: failed program was:" >&5
7125 cat conftest.$ac_ext >&5
7127 eval "ac_cv_header_$ac_safe=no"
7130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7131 echo "$ac_t""yes" 1>&6
7134 echo "$ac_t""no" 1>&6
7138 test -z "$with_xface" && {
7139 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7140 echo "configure:7141: checking for UnGenFace in -lcompface" >&5
7141 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7143 xe_check_libs=" -lcompface "
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
7172 echo "$ac_t""no" 1>&6
7177 test -z "$with_xface" && with_xface=yes
7178 if test "$with_xface" = "yes"; then
7179 { test "$extra_verbose" = "yes" && cat << \EOF
7182 cat >> confdefs.h <<\EOF
7183 #define HAVE_XFACE 1
7187 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7190 if test "$with_gif" != "no"; then
7192 { test "$extra_verbose" = "yes" && cat << \EOF
7195 cat >> confdefs.h <<\EOF
7200 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7201 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7205 if test "$with_png $with_tiff" != "no no"; then
7207 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7208 echo "configure:7209: checking for inflate in -lc" >&5
7209 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7211 xe_check_libs=" -lc "
7212 cat > conftest.$ac_ext <<EOF
7213 #line 7214 "configure"
7214 #include "confdefs.h"
7215 /* Override any gcc2 internal prototype to avoid an error. */
7216 /* We use char because int might match the return type of a gcc2
7217 builtin and then its argument prototype would still apply. */
7224 if { (eval echo configure:7225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7226 eval "ac_cv_lib_$ac_lib_var=yes"
7228 echo "configure: failed program was:" >&5
7229 cat conftest.$ac_ext >&5
7231 eval "ac_cv_lib_$ac_lib_var=no"
7236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7237 echo "$ac_t""yes" 1>&6
7240 echo "$ac_t""no" 1>&6
7242 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7243 echo "configure:7244: checking for inflate in -lz" >&5
7244 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7246 xe_check_libs=" -lz "
7247 cat > conftest.$ac_ext <<EOF
7248 #line 7249 "configure"
7249 #include "confdefs.h"
7250 /* Override any gcc2 internal prototype to avoid an error. */
7251 /* We use char because int might match the return type of a gcc2
7252 builtin and then its argument prototype would still apply. */
7259 if { (eval echo configure:7260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7261 eval "ac_cv_lib_$ac_lib_var=yes"
7263 echo "configure: failed program was:" >&5
7264 cat conftest.$ac_ext >&5
7266 eval "ac_cv_lib_$ac_lib_var=no"
7271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7272 echo "$ac_t""yes" 1>&6
7273 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7275 echo "$ac_t""no" 1>&6
7277 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7278 echo "configure:7279: checking for inflate in -lgz" >&5
7279 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7281 xe_check_libs=" -lgz "
7282 cat > conftest.$ac_ext <<EOF
7283 #line 7284 "configure"
7284 #include "confdefs.h"
7285 /* Override any gcc2 internal prototype to avoid an error. */
7286 /* We use char because int might match the return type of a gcc2
7287 builtin and then its argument prototype would still apply. */
7294 if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7296 eval "ac_cv_lib_$ac_lib_var=yes"
7298 echo "configure: failed program was:" >&5
7299 cat conftest.$ac_ext >&5
7301 eval "ac_cv_lib_$ac_lib_var=no"
7306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7307 echo "$ac_t""yes" 1>&6
7308 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7310 echo "$ac_t""no" 1>&6
7322 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7323 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7324 echo "configure:7325: checking for jpeglib.h" >&5
7326 cat > conftest.$ac_ext <<EOF
7327 #line 7328 "configure"
7328 #include "confdefs.h"
7329 #include <jpeglib.h>
7331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7332 { (eval echo configure:7333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7334 if test -z "$ac_err"; then
7336 eval "ac_cv_header_$ac_safe=yes"
7339 echo "configure: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7342 eval "ac_cv_header_$ac_safe=no"
7345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7346 echo "$ac_t""yes" 1>&6
7349 echo "$ac_t""no" 1>&6
7353 test -z "$with_jpeg" && {
7354 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7355 echo "configure:7356: checking for jpeg_destroy_decompress in -ljpeg" >&5
7356 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7358 xe_check_libs=" -ljpeg "
7359 cat > conftest.$ac_ext <<EOF
7360 #line 7361 "configure"
7361 #include "confdefs.h"
7362 /* Override any gcc2 internal prototype to avoid an error. */
7363 /* We use char because int might match the return type of a gcc2
7364 builtin and then its argument prototype would still apply. */
7365 char jpeg_destroy_decompress();
7368 jpeg_destroy_decompress()
7371 if { (eval echo configure:7372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7373 eval "ac_cv_lib_$ac_lib_var=yes"
7375 echo "configure: failed program was:" >&5
7376 cat conftest.$ac_ext >&5
7378 eval "ac_cv_lib_$ac_lib_var=no"
7383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7384 echo "$ac_t""yes" 1>&6
7387 echo "$ac_t""no" 1>&6
7392 test -z "$with_jpeg" && with_jpeg=yes
7393 if test "$with_jpeg" = "yes"; then
7394 { test "$extra_verbose" = "yes" && cat << \EOF
7397 cat >> confdefs.h <<\EOF
7402 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7406 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7407 echo "configure:7408: checking for pow" >&5
7409 cat > conftest.$ac_ext <<EOF
7410 #line 7411 "configure"
7411 #include "confdefs.h"
7412 /* System header to define __stub macros and hopefully few prototypes,
7413 which can conflict with char pow(); below. */
7415 /* Override any gcc2 internal prototype to avoid an error. */
7416 /* We use char because int might match the return type of a gcc2
7417 builtin and then its argument prototype would still apply. */
7422 /* The GNU C library defines this for functions which it implements
7423 to always fail with ENOSYS. Some functions are actually named
7424 something starting with __ and the normal name is an alias. */
7425 #if defined (__stub_pow) || defined (__stub___pow)
7433 if { (eval echo configure:7434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7435 eval "ac_cv_func_pow=yes"
7437 echo "configure: failed program was:" >&5
7438 cat conftest.$ac_ext >&5
7440 eval "ac_cv_func_pow=no"
7444 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7445 echo "$ac_t""yes" 1>&6
7448 echo "$ac_t""no" 1>&6
7452 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7453 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7454 echo "configure:7455: checking for png.h" >&5
7456 cat > conftest.$ac_ext <<EOF
7457 #line 7458 "configure"
7458 #include "confdefs.h"
7461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7462 { (eval echo configure:7463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7464 if test -z "$ac_err"; then
7466 eval "ac_cv_header_$ac_safe=yes"
7469 echo "configure: failed program was:" >&5
7470 cat conftest.$ac_ext >&5
7472 eval "ac_cv_header_$ac_safe=no"
7475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7476 echo "$ac_t""yes" 1>&6
7479 echo "$ac_t""no" 1>&6
7483 test -z "$with_png" && {
7484 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7485 echo "configure:7486: checking for png_read_image in -lpng" >&5
7486 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7488 xe_check_libs=" -lpng "
7489 cat > conftest.$ac_ext <<EOF
7490 #line 7491 "configure"
7491 #include "confdefs.h"
7492 /* Override any gcc2 internal prototype to avoid an error. */
7493 /* We use char because int might match the return type of a gcc2
7494 builtin and then its argument prototype would still apply. */
7495 char png_read_image();
7501 if { (eval echo configure:7502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7503 eval "ac_cv_lib_$ac_lib_var=yes"
7505 echo "configure: failed program was:" >&5
7506 cat conftest.$ac_ext >&5
7508 eval "ac_cv_lib_$ac_lib_var=no"
7513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7514 echo "$ac_t""yes" 1>&6
7517 echo "$ac_t""no" 1>&6
7522 if test -z "$with_png"; then
7523 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7524 echo "configure:7525: checking for workable png version information" >&5
7525 xe_check_libs="-lpng -lz"
7526 cat > conftest.$ac_ext <<EOF
7527 #line 7528 "configure"
7528 #include "confdefs.h"
7530 int main(int c, char **v) {
7531 if (c == 1) return 0;
7532 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7533 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7535 if { (eval echo configure:7536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7537 ./conftest dummy_arg; png_status=$?;
7538 if test "$png_status" = "0"; then
7542 if test "$png_status" = "1"; then
7543 png_problem="PNG library version and header file don't match!"
7544 elif test "$png_status" = "2"; then
7545 png_problem="PNG library version too old (pre 1.0.2)!"
7548 *** WARNING *** $png_problem
7549 I'm not touching that with a 10-foot pole!
7550 If you really want to use the installed version of libPNG, rerun
7551 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7555 echo "configure: failed program was:" >&5
7556 cat conftest.$ac_ext >&5
7562 echo "$ac_t""$with_png" 1>&6
7564 if test "$with_png" = "yes"; then
7565 { test "$extra_verbose" = "yes" && cat << \EOF
7568 cat >> confdefs.h <<\EOF
7573 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7576 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7577 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7578 echo "configure:7579: checking for tiffio.h" >&5
7580 cat > conftest.$ac_ext <<EOF
7581 #line 7582 "configure"
7582 #include "confdefs.h"
7585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7586 { (eval echo configure:7587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7588 if test -z "$ac_err"; then
7590 eval "ac_cv_header_$ac_safe=yes"
7593 echo "configure: failed program was:" >&5
7594 cat conftest.$ac_ext >&5
7596 eval "ac_cv_header_$ac_safe=no"
7599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7600 echo "$ac_t""yes" 1>&6
7603 echo "$ac_t""no" 1>&6
7607 test -z "$with_tiff" && {
7608 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7609 echo "configure:7610: checking for TIFFClientOpen in -ltiff" >&5
7610 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7612 xe_check_libs=" -ltiff "
7613 cat > conftest.$ac_ext <<EOF
7614 #line 7615 "configure"
7615 #include "confdefs.h"
7616 /* Override any gcc2 internal prototype to avoid an error. */
7617 /* We use char because int might match the return type of a gcc2
7618 builtin and then its argument prototype would still apply. */
7619 char TIFFClientOpen();
7625 if { (eval echo configure:7626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7627 eval "ac_cv_lib_$ac_lib_var=yes"
7629 echo "configure: failed program was:" >&5
7630 cat conftest.$ac_ext >&5
7632 eval "ac_cv_lib_$ac_lib_var=no"
7637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7638 echo "$ac_t""yes" 1>&6
7641 echo "$ac_t""no" 1>&6
7646 test -z "$with_tiff" && with_tiff=yes
7647 if test "$with_tiff" = "yes"; then
7648 { test "$extra_verbose" = "yes" && cat << \EOF
7651 cat >> confdefs.h <<\EOF
7656 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7661 if test "$with_x11" = "yes"; then
7663 echo "checking for X11 graphics libraries" 1>&6
7664 echo "configure:7665: checking for X11 graphics libraries" >&5
7666 echo "checking for the Athena widgets" 1>&6
7667 echo "configure:7668: checking for the Athena widgets" >&5
7669 case "$with_athena" in
7670 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
7671 "3d") athena_variant=Xaw3d athena_3d=yes ;;
7672 "next") athena_variant=neXtaw athena_3d=yes ;;
7673 "95") athena_variant=Xaw95 athena_3d=yes ;;
7674 "xpm") athena_variant=XawXpm athena_3d=yes ;;
7675 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
7678 if test "$athena_3d" = "no"; then
7680 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
7681 echo "configure:7682: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
7682 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7684 xe_check_libs=" -l$athena_variant "
7685 cat > conftest.$ac_ext <<EOF
7686 #line 7687 "configure"
7687 #include "confdefs.h"
7688 /* Override any gcc2 internal prototype to avoid an error. */
7689 /* We use char because int might match the return type of a gcc2
7690 builtin and then its argument prototype would still apply. */
7691 char XawScrollbarSetThumb();
7694 XawScrollbarSetThumb()
7697 if { (eval echo configure:7698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7699 eval "ac_cv_lib_$ac_lib_var=yes"
7701 echo "configure: failed program was:" >&5
7702 cat conftest.$ac_ext >&5
7704 eval "ac_cv_lib_$ac_lib_var=no"
7709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7710 echo "$ac_t""yes" 1>&6
7712 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
7713 echo "configure:7714: checking for threeDClassRec in -l$athena_variant" >&5
7714 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
7716 xe_check_libs=" -l$athena_variant "
7717 cat > conftest.$ac_ext <<EOF
7718 #line 7719 "configure"
7719 #include "confdefs.h"
7720 /* Override any gcc2 internal prototype to avoid an error. */
7721 /* We use char because int might match the return type of a gcc2
7722 builtin and then its argument prototype would still apply. */
7723 char threeDClassRec();
7729 if { (eval echo configure:7730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7731 eval "ac_cv_lib_$ac_lib_var=yes"
7733 echo "configure: failed program was:" >&5
7734 cat conftest.$ac_ext >&5
7736 eval "ac_cv_lib_$ac_lib_var=no"
7741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7742 echo "$ac_t""yes" 1>&6
7743 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
7745 echo "$ac_t""no" 1>&6
7746 athena_lib=$athena_variant
7752 echo "$ac_t""no" 1>&6
7753 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
7759 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
7760 echo "configure:7761: checking for threeDClassRec in -l$athena_variant" >&5
7761 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
7763 xe_check_libs=" -l$athena_variant "
7764 cat > conftest.$ac_ext <<EOF
7765 #line 7766 "configure"
7766 #include "confdefs.h"
7767 /* Override any gcc2 internal prototype to avoid an error. */
7768 /* We use char because int might match the return type of a gcc2
7769 builtin and then its argument prototype would still apply. */
7770 char threeDClassRec();
7776 if { (eval echo configure:7777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7778 eval "ac_cv_lib_$ac_lib_var=yes"
7780 echo "configure: failed program was:" >&5
7781 cat conftest.$ac_ext >&5
7783 eval "ac_cv_lib_$ac_lib_var=no"
7788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7789 echo "$ac_t""yes" 1>&6
7790 athena_lib=$athena_variant
7792 echo "$ac_t""no" 1>&6
7793 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
7794 echo "configure:7795: checking for threeDClassRec in -lXaw" >&5
7795 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
7797 xe_check_libs=" -lXaw "
7798 cat > conftest.$ac_ext <<EOF
7799 #line 7800 "configure"
7800 #include "confdefs.h"
7801 /* Override any gcc2 internal prototype to avoid an error. */
7802 /* We use char because int might match the return type of a gcc2
7803 builtin and then its argument prototype would still apply. */
7804 char threeDClassRec();
7810 if { (eval echo configure:7811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7812 eval "ac_cv_lib_$ac_lib_var=yes"
7814 echo "configure: failed program was:" >&5
7815 cat conftest.$ac_ext >&5
7817 eval "ac_cv_lib_$ac_lib_var=no"
7822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7823 echo "$ac_t""yes" 1>&6
7825 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
7828 echo "$ac_t""no" 1>&6
7829 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
7838 if test "$athena_3d" = "no"; then
7839 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
7840 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
7841 echo "configure:7842: checking for X11/Xaw/ThreeD.h" >&5
7843 cat > conftest.$ac_ext <<EOF
7844 #line 7845 "configure"
7845 #include "confdefs.h"
7846 #include <X11/Xaw/ThreeD.h>
7848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7849 { (eval echo configure:7850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7851 if test -z "$ac_err"; then
7853 eval "ac_cv_header_$ac_safe=yes"
7856 echo "configure: failed program was:" >&5
7857 cat conftest.$ac_ext >&5
7859 eval "ac_cv_header_$ac_safe=no"
7862 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7863 echo "$ac_t""yes" 1>&6
7864 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
7866 echo "$ac_t""no" 1>&6
7867 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
7868 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
7869 echo "configure:7870: checking for X11/Xaw/XawInit.h" >&5
7871 cat > conftest.$ac_ext <<EOF
7872 #line 7873 "configure"
7873 #include "confdefs.h"
7874 #include <X11/Xaw/XawInit.h>
7876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7877 { (eval echo configure:7878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7879 if test -z "$ac_err"; then
7881 eval "ac_cv_header_$ac_safe=yes"
7884 echo "configure: failed program was:" >&5
7885 cat conftest.$ac_ext >&5
7887 eval "ac_cv_header_$ac_safe=no"
7890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7891 echo "$ac_t""yes" 1>&6
7892 athena_h_path=X11/Xaw
7894 echo "$ac_t""no" 1>&6
7895 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
7901 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
7902 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
7903 echo "configure:7904: checking for X11/$athena_variant/XawInit.h" >&5
7905 cat > conftest.$ac_ext <<EOF
7906 #line 7907 "configure"
7907 #include "confdefs.h"
7908 #include <X11/$athena_variant/XawInit.h>
7910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7911 { (eval echo configure:7912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7913 if test -z "$ac_err"; then
7915 eval "ac_cv_header_$ac_safe=yes"
7918 echo "configure: failed program was:" >&5
7919 cat conftest.$ac_ext >&5
7921 eval "ac_cv_header_$ac_safe=no"
7924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7925 echo "$ac_t""yes" 1>&6
7926 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
7927 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
7928 echo "configure:7929: checking for X11/$athena_variant/ThreeD.h" >&5
7930 cat > conftest.$ac_ext <<EOF
7931 #line 7932 "configure"
7932 #include "confdefs.h"
7933 #include <X11/$athena_variant/ThreeD.h>
7935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7936 { (eval echo configure:7937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7938 if test -z "$ac_err"; then
7940 eval "ac_cv_header_$ac_safe=yes"
7943 echo "configure: failed program was:" >&5
7944 cat conftest.$ac_ext >&5
7946 eval "ac_cv_header_$ac_safe=no"
7949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7950 echo "$ac_t""yes" 1>&6
7951 athena_h_path=X11/$athena_variant
7953 echo "$ac_t""no" 1>&6
7957 echo "$ac_t""no" 1>&6
7961 if test -z "$athena_h_path"; then
7962 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
7963 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
7964 echo "configure:7965: checking for $athena_variant/XawInit.h" >&5
7966 cat > conftest.$ac_ext <<EOF
7967 #line 7968 "configure"
7968 #include "confdefs.h"
7969 #include <$athena_variant/XawInit.h>
7971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7972 { (eval echo configure:7973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7974 if test -z "$ac_err"; then
7976 eval "ac_cv_header_$ac_safe=yes"
7979 echo "configure: failed program was:" >&5
7980 cat conftest.$ac_ext >&5
7982 eval "ac_cv_header_$ac_safe=no"
7985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7986 echo "$ac_t""yes" 1>&6
7987 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
7988 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
7989 echo "configure:7990: checking for $athena_variant/ThreeD.h" >&5
7991 cat > conftest.$ac_ext <<EOF
7992 #line 7993 "configure"
7993 #include "confdefs.h"
7994 #include <$athena_variant/ThreeD.h>
7996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7997 { (eval echo configure:7998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7999 if test -z "$ac_err"; then
8001 eval "ac_cv_header_$ac_safe=yes"
8004 echo "configure: failed program was:" >&5
8005 cat conftest.$ac_ext >&5
8007 eval "ac_cv_header_$ac_safe=no"
8010 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8011 echo "$ac_t""yes" 1>&6
8012 athena_h_path=$athena_variant
8014 echo "$ac_t""no" 1>&6
8018 echo "$ac_t""no" 1>&6
8023 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8024 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8025 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8026 echo "configure:8027: checking for X11/Xaw3d/XawInit.h" >&5
8028 cat > conftest.$ac_ext <<EOF
8029 #line 8030 "configure"
8030 #include "confdefs.h"
8031 #include <X11/Xaw3d/XawInit.h>
8033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8034 { (eval echo configure:8035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8036 if test -z "$ac_err"; then
8038 eval "ac_cv_header_$ac_safe=yes"
8041 echo "configure: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8044 eval "ac_cv_header_$ac_safe=no"
8047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8048 echo "$ac_t""yes" 1>&6
8049 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8050 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8051 echo "configure:8052: checking for X11/Xaw3d/ThreeD.h" >&5
8053 cat > conftest.$ac_ext <<EOF
8054 #line 8055 "configure"
8055 #include "confdefs.h"
8056 #include <X11/Xaw3d/ThreeD.h>
8058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8059 { (eval echo configure:8060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8061 if test -z "$ac_err"; then
8063 eval "ac_cv_header_$ac_safe=yes"
8066 echo "configure: failed program was:" >&5
8067 cat conftest.$ac_ext >&5
8069 eval "ac_cv_header_$ac_safe=no"
8072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8073 echo "$ac_t""yes" 1>&6
8075 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
8076 athena_h_path=X11/Xaw3d
8079 echo "$ac_t""no" 1>&6
8083 echo "$ac_t""no" 1>&6
8088 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8089 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8090 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8091 echo "configure:8092: checking for Xaw3d/XawInit.h" >&5
8093 cat > conftest.$ac_ext <<EOF
8094 #line 8095 "configure"
8095 #include "confdefs.h"
8096 #include <Xaw3d/XawInit.h>
8098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8099 { (eval echo configure:8100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8101 if test -z "$ac_err"; then
8103 eval "ac_cv_header_$ac_safe=yes"
8106 echo "configure: failed program was:" >&5
8107 cat conftest.$ac_ext >&5
8109 eval "ac_cv_header_$ac_safe=no"
8112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8113 echo "$ac_t""yes" 1>&6
8114 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8115 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8116 echo "configure:8117: checking for Xaw3d/ThreeD.h" >&5
8118 cat > conftest.$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8121 #include <Xaw3d/ThreeD.h>
8123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8124 { (eval echo configure:8125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8126 if test -z "$ac_err"; then
8128 eval "ac_cv_header_$ac_safe=yes"
8131 echo "configure: failed program was:" >&5
8132 cat conftest.$ac_ext >&5
8134 eval "ac_cv_header_$ac_safe=no"
8137 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8138 echo "$ac_t""yes" 1>&6
8140 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
8144 echo "$ac_t""no" 1>&6
8148 echo "$ac_t""no" 1>&6
8153 if test -z "$athena_h_path"; then
8154 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8155 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8156 echo "configure:8157: checking for X11/Xaw/ThreeD.h" >&5
8158 cat > conftest.$ac_ext <<EOF
8159 #line 8160 "configure"
8160 #include "confdefs.h"
8161 #include <X11/Xaw/ThreeD.h>
8163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8164 { (eval echo configure:8165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8166 if test -z "$ac_err"; then
8168 eval "ac_cv_header_$ac_safe=yes"
8171 echo "configure: failed program was:" >&5
8172 cat conftest.$ac_ext >&5
8174 eval "ac_cv_header_$ac_safe=no"
8177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8178 echo "$ac_t""yes" 1>&6
8180 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
8181 athena_h_path=X11/Xaw
8184 echo "$ac_t""no" 1>&6
8185 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
8191 if test -n "$athena_lib" -a -n "$athena_h_path"; then
8197 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8198 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8199 echo "configure:8200: checking for Xm/Xm.h" >&5
8201 cat > conftest.$ac_ext <<EOF
8202 #line 8203 "configure"
8203 #include "confdefs.h"
8206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8207 { (eval echo configure:8208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8208 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8209 if test -z "$ac_err"; then
8211 eval "ac_cv_header_$ac_safe=yes"
8214 echo "configure: failed program was:" >&5
8215 cat conftest.$ac_ext >&5
8217 eval "ac_cv_header_$ac_safe=no"
8220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8221 echo "$ac_t""yes" 1>&6
8223 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8224 echo "configure:8225: checking for XmStringFree in -lXm" >&5
8225 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8227 xe_check_libs=" -lXm "
8228 cat > conftest.$ac_ext <<EOF
8229 #line 8230 "configure"
8230 #include "confdefs.h"
8231 /* Override any gcc2 internal prototype to avoid an error. */
8232 /* We use char because int might match the return type of a gcc2
8233 builtin and then its argument prototype would still apply. */
8234 char XmStringFree();
8240 if { (eval echo configure:8241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8242 eval "ac_cv_lib_$ac_lib_var=yes"
8244 echo "configure: failed program was:" >&5
8245 cat conftest.$ac_ext >&5
8247 eval "ac_cv_lib_$ac_lib_var=no"
8252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8253 echo "$ac_t""yes" 1>&6
8256 echo "$ac_t""no" 1>&6
8262 echo "$ac_t""no" 1>&6
8267 if test "$have_motif" = "yes"; then
8268 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8269 echo "configure:8270: checking for Lesstif" >&5
8270 cat > conftest.$ac_ext <<EOF
8271 #line 8272 "configure"
8272 #include "confdefs.h"
8274 #ifdef LESSTIF_VERSION
8279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8280 egrep "yes" >/dev/null 2>&1; then
8289 echo "$ac_t""$have_lesstif" 1>&6
8294 case "$with_menubars" in "" | "yes" | "athena" )
8295 with_menubars="lucid" ;;
8297 case "$with_dialogs" in "" | "yes" | "lucid" )
8298 if test "$have_motif" = "yes"; then with_dialogs="motif"
8299 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
8300 else with_dialogs=no
8303 case "$with_scrollbars" in "" | "yes" )
8304 with_scrollbars="lucid" ;;
8306 case "$with_widgets" in "" | "yes" | "lucid")
8307 if test "$have_motif" = "yes"; then with_widgets="motif"
8308 elif test "$have_xaw" = "yes"; then with_widgets="athena"
8309 else with_widgets=no
8313 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
8315 case "$all_widgets" in
8317 if test "$have_xaw" != "yes"; then
8318 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
8321 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8323 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
8325 { test "$extra_verbose" = "yes" && cat << EOF
8326 Defining ATHENA_H_PATH = $athena_h_path
8328 cat >> confdefs.h <<EOF
8329 #define ATHENA_H_PATH $athena_h_path
8334 { test "$extra_verbose" = "yes" && cat << \EOF
8335 Defining LWLIB_USES_ATHENA
8337 cat >> confdefs.h <<\EOF
8338 #define LWLIB_USES_ATHENA 1
8342 { test "$extra_verbose" = "yes" && cat << \EOF
8343 Defining NEED_ATHENA
8345 cat >> confdefs.h <<\EOF
8346 #define NEED_ATHENA 1
8351 if test "$athena_3d" = "yes"; then
8352 { test "$extra_verbose" = "yes" && cat << \EOF
8353 Defining HAVE_ATHENA_3D
8355 cat >> confdefs.h <<\EOF
8356 #define HAVE_ATHENA_3D 1
8364 case "$all_widgets" in *motif* )
8365 { test "$extra_verbose" = "yes" && cat << \EOF
8366 Defining LWLIB_USES_MOTIF
8368 cat >> confdefs.h <<\EOF
8369 #define LWLIB_USES_MOTIF 1
8373 { test "$extra_verbose" = "yes" && cat << \EOF
8376 cat >> confdefs.h <<\EOF
8377 #define NEED_MOTIF 1
8381 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
8385 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8386 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8387 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
8388 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8389 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
8390 case "$with_widgets" in athena* )
8391 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;;
8393 case "$all_widgets" in *lucid* )
8394 { test "$extra_verbose" = "yes" && cat << \EOF
8397 cat >> confdefs.h <<\EOF
8398 #define NEED_LUCID 1
8402 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
8407 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8408 Defining LWLIB_SCROLLBARS_ATHENA
8410 cat >> confdefs.h <<\EOF
8411 #define LWLIB_SCROLLBARS_ATHENA 1
8415 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8416 Defining LWLIB_DIALOGS_ATHENA
8418 cat >> confdefs.h <<\EOF
8419 #define LWLIB_DIALOGS_ATHENA 1
8424 if test "$athena_3d" = "yes"; then
8425 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8426 Defining LWLIB_SCROLLBARS_ATHENA3D
8428 cat >> confdefs.h <<\EOF
8429 #define LWLIB_SCROLLBARS_ATHENA3D 1
8433 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8434 Defining LWLIB_DIALOGS_ATHENA3D
8436 cat >> confdefs.h <<\EOF
8437 #define LWLIB_DIALOGS_ATHENA3D 1
8443 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
8444 Defining LWLIB_WIDGETS_ATHENA
8446 cat >> confdefs.h <<\EOF
8447 #define LWLIB_WIDGETS_ATHENA 1
8451 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8452 { test "$extra_verbose" = "yes" && cat << \EOF
8453 Defining LWLIB_TABS_LUCID
8455 cat >> confdefs.h <<\EOF
8456 #define LWLIB_TABS_LUCID 1
8461 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8462 Defining HAVE_MENUBARS
8464 cat >> confdefs.h <<\EOF
8465 #define HAVE_MENUBARS 1
8469 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8470 Defining HAVE_SCROLLBARS
8472 cat >> confdefs.h <<\EOF
8473 #define HAVE_SCROLLBARS 1
8477 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8478 Defining HAVE_DIALOGS
8480 cat >> confdefs.h <<\EOF
8481 #define HAVE_DIALOGS 1
8485 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8486 Defining HAVE_TOOLBARS
8488 cat >> confdefs.h <<\EOF
8489 #define HAVE_TOOLBARS 1
8493 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8494 Defining HAVE_WIDGETS
8496 cat >> confdefs.h <<\EOF
8497 #define HAVE_WIDGETS 1
8502 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
8503 Defining LWLIB_MENUBARS_LUCID
8505 cat >> confdefs.h <<\EOF
8506 #define LWLIB_MENUBARS_LUCID 1
8510 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
8511 Defining LWLIB_SCROLLBARS_LUCID
8513 cat >> confdefs.h <<\EOF
8514 #define LWLIB_SCROLLBARS_LUCID 1
8519 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8520 Defining LWLIB_MENUBARS_MOTIF
8522 cat >> confdefs.h <<\EOF
8523 #define LWLIB_MENUBARS_MOTIF 1
8527 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8528 Defining LWLIB_SCROLLBARS_MOTIF
8530 cat >> confdefs.h <<\EOF
8531 #define LWLIB_SCROLLBARS_MOTIF 1
8535 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8536 Defining LWLIB_DIALOGS_MOTIF
8538 cat >> confdefs.h <<\EOF
8539 #define LWLIB_DIALOGS_MOTIF 1
8543 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8544 Defining LWLIB_WIDGETS_MOTIF
8546 cat >> confdefs.h <<\EOF
8547 #define LWLIB_WIDGETS_MOTIF 1
8552 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
8553 echo " xemacs will be linked with \"menubar.o\""
8555 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
8556 echo " xemacs will be linked with \"scrollbar.o\""
8558 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
8559 echo " xemacs will be linked with \"dialog.o\""
8561 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
8562 echo " xemacs will be linked with \"toolbar.o\""
8565 if test "$with_x11" = "yes"; then
8566 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
8567 echo " xemacs will be linked with \"menubar-x.o\""
8569 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
8570 echo " xemacs will be linked with \"scrollbar-x.o\""
8572 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
8573 echo " xemacs will be linked with \"dialog-x.o\""
8575 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
8576 echo " xemacs will be linked with \"toolbar-x.o\""
8578 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
8579 echo " xemacs will be linked with \"gui-x.o\""
8584 test -z "$with_mule" && with_mule=no
8585 test -z "$with_file_coding" && with_file_coding=no
8588 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
8589 { test "$extra_verbose" = "yes" && cat << \EOF
8590 Defining FILE_CODING
8592 cat >> confdefs.h <<\EOF
8593 #define FILE_CODING 1
8597 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
8598 echo " xemacs will be linked with \"file-coding.o\""
8602 if test "$with_mule" = "yes" ; then
8603 echo "checking for Mule-related features" 1>&6
8604 echo "configure:8605: checking for Mule-related features" >&5
8605 { test "$extra_verbose" = "yes" && cat << \EOF
8608 cat >> confdefs.h <<\EOF
8613 { test "$extra_verbose" = "yes" && cat << \EOF
8614 Defining FILE_CODING
8616 cat >> confdefs.h <<\EOF
8617 #define FILE_CODING 1
8621 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o" && if test "$extra_verbose" = "yes"; then
8622 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o\""
8624 if test "$with_utf_2000" = "yes" && test "$with_text_coding" = "yes"; then
8625 { test "$extra_verbose" = "yes" && cat << \EOF
8626 Defining TEXT_CODING
8628 cat >> confdefs.h <<\EOF
8629 #define TEXT_CODING 1
8633 extra_objs="$extra_objs text-coding.o" && if test "$extra_verbose" = "yes"; then
8634 echo " xemacs will be linked with \"text-coding.o\""
8637 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
8638 echo " xemacs will be linked with \"file-coding.o\""
8641 for ac_hdr in libintl.h
8643 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8644 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8645 echo "configure:8646: checking for $ac_hdr" >&5
8647 cat > conftest.$ac_ext <<EOF
8648 #line 8649 "configure"
8649 #include "confdefs.h"
8652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8653 { (eval echo configure:8654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8655 if test -z "$ac_err"; then
8657 eval "ac_cv_header_$ac_safe=yes"
8660 echo "configure: failed program was:" >&5
8661 cat conftest.$ac_ext >&5
8663 eval "ac_cv_header_$ac_safe=no"
8666 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8667 echo "$ac_t""yes" 1>&6
8668 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8669 { test "$extra_verbose" = "yes" && cat << EOF
8672 cat >> confdefs.h <<EOF
8673 #define $ac_tr_hdr 1
8678 echo "$ac_t""no" 1>&6
8683 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
8684 echo "configure:8685: checking for strerror in -lintl" >&5
8685 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
8687 xe_check_libs=" -lintl "
8688 cat > conftest.$ac_ext <<EOF
8689 #line 8690 "configure"
8690 #include "confdefs.h"
8691 /* Override any gcc2 internal prototype to avoid an error. */
8692 /* We use char because int might match the return type of a gcc2
8693 builtin and then its argument prototype would still apply. */
8700 if { (eval echo configure:8701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8702 eval "ac_cv_lib_$ac_lib_var=yes"
8704 echo "configure: failed program was:" >&5
8705 cat conftest.$ac_ext >&5
8707 eval "ac_cv_lib_$ac_lib_var=no"
8712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8713 echo "$ac_t""yes" 1>&6
8714 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8715 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8716 { test "$extra_verbose" = "yes" && cat << EOF
8719 cat >> confdefs.h <<EOF
8720 #define $ac_tr_lib 1
8724 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
8727 echo "$ac_t""no" 1>&6
8732 if test "$with_utf_2000" = "yes" ; then
8733 { test "$extra_verbose" = "yes" && cat << \EOF
8734 Defining CHAR_IS_UCS4
8736 cat >> confdefs.h <<\EOF
8737 #define CHAR_IS_UCS4 1
8741 { test "$extra_verbose" = "yes" && cat << \EOF
8744 cat >> confdefs.h <<\EOF
8751 echo "checking for Mule input methods" 1>&6
8752 echo "configure:8753: checking for Mule input methods" >&5
8753 case "$with_xim" in "" | "yes" )
8754 echo "checking for XIM" 1>&6
8755 echo "configure:8756: checking for XIM" >&5
8757 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
8758 echo "configure:8759: checking for XOpenIM in -lX11" >&5
8759 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
8761 xe_check_libs=" -lX11 "
8762 cat > conftest.$ac_ext <<EOF
8763 #line 8764 "configure"
8764 #include "confdefs.h"
8765 /* Override any gcc2 internal prototype to avoid an error. */
8766 /* We use char because int might match the return type of a gcc2
8767 builtin and then its argument prototype would still apply. */
8774 if { (eval echo configure:8775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8776 eval "ac_cv_lib_$ac_lib_var=yes"
8778 echo "configure: failed program was:" >&5
8779 cat conftest.$ac_ext >&5
8781 eval "ac_cv_lib_$ac_lib_var=no"
8786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8787 echo "$ac_t""yes" 1>&6
8790 echo "$ac_t""no" 1>&6
8795 if test "$have_motif $have_lesstif" = "yes no"; then
8797 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
8798 echo "configure:8799: checking for XmImMbLookupString in -lXm" >&5
8799 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
8801 xe_check_libs=" -lXm "
8802 cat > conftest.$ac_ext <<EOF
8803 #line 8804 "configure"
8804 #include "confdefs.h"
8805 /* Override any gcc2 internal prototype to avoid an error. */
8806 /* We use char because int might match the return type of a gcc2
8807 builtin and then its argument prototype would still apply. */
8808 char XmImMbLookupString();
8811 XmImMbLookupString()
8814 if { (eval echo configure:8815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8816 eval "ac_cv_lib_$ac_lib_var=yes"
8818 echo "configure: failed program was:" >&5
8819 cat conftest.$ac_ext >&5
8821 eval "ac_cv_lib_$ac_lib_var=no"
8826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8827 echo "$ac_t""yes" 1>&6
8830 echo "$ac_t""no" 1>&6
8836 if test "$with_xim" != "no"; then
8837 { test "$extra_verbose" = "yes" && cat << \EOF
8840 cat >> confdefs.h <<\EOF
8845 if test "$with_xim" = "xlib"; then
8846 { test "$extra_verbose" = "yes" && cat << \EOF
8849 cat >> confdefs.h <<\EOF
8854 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
8855 echo " xemacs will be linked with \"input-method-xlib.o\""
8858 if test "$with_xim" = "motif"; then
8859 { test "$extra_verbose" = "yes" && cat << \EOF
8862 cat >> confdefs.h <<\EOF
8868 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
8869 echo " xemacs will be linked with \"input-method-motif.o\""
8872 if test "$with_xim" = "motif"; then
8877 if test "$with_xfs" = "yes" ; then
8878 echo "checking for XFontSet" 1>&6
8879 echo "configure:8880: checking for XFontSet" >&5
8881 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8882 echo "configure:8883: checking for XmbDrawString in -lX11" >&5
8883 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8885 xe_check_libs=" -lX11 "
8886 cat > conftest.$ac_ext <<EOF
8887 #line 8888 "configure"
8888 #include "confdefs.h"
8889 /* Override any gcc2 internal prototype to avoid an error. */
8890 /* We use char because int might match the return type of a gcc2
8891 builtin and then its argument prototype would still apply. */
8892 char XmbDrawString();
8898 if { (eval echo configure:8899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8900 eval "ac_cv_lib_$ac_lib_var=yes"
8902 echo "configure: failed program was:" >&5
8903 cat conftest.$ac_ext >&5
8905 eval "ac_cv_lib_$ac_lib_var=no"
8910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8911 echo "$ac_t""yes" 1>&6
8914 echo "$ac_t""no" 1>&6
8919 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
8920 { test "$extra_verbose" = "yes" && cat << \EOF
8921 Defining USE_XFONTSET
8923 cat >> confdefs.h <<\EOF
8924 #define USE_XFONTSET 1
8928 if test "$with_xim" = "no" ; then
8929 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
8930 echo " xemacs will be linked with \"input-method-xfs.o\""
8935 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8936 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8937 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8938 echo "configure:8939: checking for wnn/jllib.h" >&5
8940 cat > conftest.$ac_ext <<EOF
8941 #line 8942 "configure"
8942 #include "confdefs.h"
8943 #include <wnn/jllib.h>
8945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8946 { (eval echo configure:8947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8948 if test -z "$ac_err"; then
8950 eval "ac_cv_header_$ac_safe=yes"
8953 echo "configure: failed program was:" >&5
8954 cat conftest.$ac_ext >&5
8956 eval "ac_cv_header_$ac_safe=no"
8959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8960 echo "$ac_t""yes" 1>&6
8963 echo "$ac_t""no" 1>&6
8967 if test "$with_wnn" != "no"; then
8968 for ac_func in crypt
8970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8971 echo "configure:8972: checking for $ac_func" >&5
8973 cat > conftest.$ac_ext <<EOF
8974 #line 8975 "configure"
8975 #include "confdefs.h"
8976 /* System header to define __stub macros and hopefully few prototypes,
8977 which can conflict with char $ac_func(); below. */
8979 /* Override any gcc2 internal prototype to avoid an error. */
8980 /* We use char because int might match the return type of a gcc2
8981 builtin and then its argument prototype would still apply. */
8986 /* The GNU C library defines this for functions which it implements
8987 to always fail with ENOSYS. Some functions are actually named
8988 something starting with __ and the normal name is an alias. */
8989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8997 if { (eval echo configure:8998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8999 eval "ac_cv_func_$ac_func=yes"
9001 echo "configure: failed program was:" >&5
9002 cat conftest.$ac_ext >&5
9004 eval "ac_cv_func_$ac_func=no"
9008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9009 echo "$ac_t""yes" 1>&6
9010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9011 { test "$extra_verbose" = "yes" && cat << EOF
9012 Defining $ac_tr_func
9014 cat >> confdefs.h <<EOF
9015 #define $ac_tr_func 1
9020 echo "$ac_t""no" 1>&6
9024 test "$ac_cv_func_crypt" != "yes" && {
9025 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9026 echo "configure:9027: checking for crypt in -lcrypt" >&5
9027 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9029 xe_check_libs=" -lcrypt "
9030 cat > conftest.$ac_ext <<EOF
9031 #line 9032 "configure"
9032 #include "confdefs.h"
9033 /* Override any gcc2 internal prototype to avoid an error. */
9034 /* We use char because int might match the return type of a gcc2
9035 builtin and then its argument prototype would still apply. */
9042 if { (eval echo configure:9043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9044 eval "ac_cv_lib_$ac_lib_var=yes"
9046 echo "configure: failed program was:" >&5
9047 cat conftest.$ac_ext >&5
9049 eval "ac_cv_lib_$ac_lib_var=no"
9054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9055 echo "$ac_t""yes" 1>&6
9056 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9057 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9058 { test "$extra_verbose" = "yes" && cat << EOF
9061 cat >> confdefs.h <<EOF
9062 #define $ac_tr_lib 1
9066 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
9069 echo "$ac_t""no" 1>&6
9074 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9076 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9077 echo "configure:9078: checking for jl_dic_list_e in -lwnn" >&5
9078 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9080 xe_check_libs=" -lwnn "
9081 cat > conftest.$ac_ext <<EOF
9082 #line 9083 "configure"
9083 #include "confdefs.h"
9084 /* Override any gcc2 internal prototype to avoid an error. */
9085 /* We use char because int might match the return type of a gcc2
9086 builtin and then its argument prototype would still apply. */
9087 char jl_dic_list_e();
9093 if { (eval echo configure:9094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9095 eval "ac_cv_lib_$ac_lib_var=yes"
9097 echo "configure: failed program was:" >&5
9098 cat conftest.$ac_ext >&5
9100 eval "ac_cv_lib_$ac_lib_var=no"
9105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9106 echo "$ac_t""yes" 1>&6
9109 echo "$ac_t""no" 1>&6
9110 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9111 echo "configure:9112: checking for jl_dic_list_e in -lwnn4" >&5
9112 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9114 xe_check_libs=" -lwnn4 "
9115 cat > conftest.$ac_ext <<EOF
9116 #line 9117 "configure"
9117 #include "confdefs.h"
9118 /* Override any gcc2 internal prototype to avoid an error. */
9119 /* We use char because int might match the return type of a gcc2
9120 builtin and then its argument prototype would still apply. */
9121 char jl_dic_list_e();
9127 if { (eval echo configure:9128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9129 eval "ac_cv_lib_$ac_lib_var=yes"
9131 echo "configure: failed program was:" >&5
9132 cat conftest.$ac_ext >&5
9134 eval "ac_cv_lib_$ac_lib_var=no"
9139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9140 echo "$ac_t""yes" 1>&6
9143 echo "$ac_t""no" 1>&6
9144 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9145 echo "configure:9146: checking for jl_dic_list_e in -lwnn6" >&5
9146 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9148 xe_check_libs=" -lwnn6 "
9149 cat > conftest.$ac_ext <<EOF
9150 #line 9151 "configure"
9151 #include "confdefs.h"
9152 /* Override any gcc2 internal prototype to avoid an error. */
9153 /* We use char because int might match the return type of a gcc2
9154 builtin and then its argument prototype would still apply. */
9155 char jl_dic_list_e();
9161 if { (eval echo configure:9162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9163 eval "ac_cv_lib_$ac_lib_var=yes"
9165 echo "configure: failed program was:" >&5
9166 cat conftest.$ac_ext >&5
9168 eval "ac_cv_lib_$ac_lib_var=no"
9173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9174 echo "$ac_t""yes" 1>&6
9177 echo "$ac_t""no" 1>&6
9178 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9179 echo "configure:9180: checking for dic_list_e in -lwnn6_fromsrc" >&5
9180 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9182 xe_check_libs=" -lwnn6_fromsrc "
9183 cat > conftest.$ac_ext <<EOF
9184 #line 9185 "configure"
9185 #include "confdefs.h"
9186 /* Override any gcc2 internal prototype to avoid an error. */
9187 /* We use char because int might match the return type of a gcc2
9188 builtin and then its argument prototype would still apply. */
9195 if { (eval echo configure:9196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9197 eval "ac_cv_lib_$ac_lib_var=yes"
9199 echo "configure: failed program was:" >&5
9200 cat conftest.$ac_ext >&5
9202 eval "ac_cv_lib_$ac_lib_var=no"
9207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9208 echo "$ac_t""yes" 1>&6
9211 echo "$ac_t""no" 1>&6
9226 test -z "$with_wnn" && with_wnn=yes
9227 if test "$with_wnn" = "yes"; then
9228 { test "$extra_verbose" = "yes" && cat << \EOF
9231 cat >> confdefs.h <<\EOF
9236 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
9237 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
9238 echo " xemacs will be linked with \"mule-wnnfns.o\""
9240 if test "$with_wnn6" != "no"; then
9242 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9243 echo "configure:9244: checking for jl_fi_dic_list in -l$libwnn" >&5
9244 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9246 xe_check_libs=" -l$libwnn "
9247 cat > conftest.$ac_ext <<EOF
9248 #line 9249 "configure"
9249 #include "confdefs.h"
9250 /* Override any gcc2 internal prototype to avoid an error. */
9251 /* We use char because int might match the return type of a gcc2
9252 builtin and then its argument prototype would still apply. */
9253 char jl_fi_dic_list();
9259 if { (eval echo configure:9260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9261 eval "ac_cv_lib_$ac_lib_var=yes"
9263 echo "configure: failed program was:" >&5
9264 cat conftest.$ac_ext >&5
9266 eval "ac_cv_lib_$ac_lib_var=no"
9271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9272 echo "$ac_t""yes" 1>&6
9275 echo "$ac_t""no" 1>&6
9279 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9282 cat >> confdefs.h <<\EOF
9290 canna_includes_found=no
9291 if test "$with_canna" != "no"; then
9292 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9293 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9294 echo "configure:9295: checking for canna/jrkanji.h" >&5
9296 cat > conftest.$ac_ext <<EOF
9297 #line 9298 "configure"
9298 #include "confdefs.h"
9299 #include <canna/jrkanji.h>
9301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9302 { (eval echo configure:9303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9304 if test -z "$ac_err"; then
9306 eval "ac_cv_header_$ac_safe=yes"
9309 echo "configure: failed program was:" >&5
9310 cat conftest.$ac_ext >&5
9312 eval "ac_cv_header_$ac_safe=no"
9315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9316 echo "$ac_t""yes" 1>&6
9317 canna_includes_found=yes
9319 echo "$ac_t""no" 1>&6
9323 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
9324 -d "/usr/local/canna/include"; then
9325 save_c_switch_site="$c_switch_site"
9326 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9327 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9328 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9329 echo "configure:9330: checking for canna/jrkanji.h" >&5
9331 cat > conftest.$ac_ext <<EOF
9332 #line 9333 "configure"
9333 #include "confdefs.h"
9334 #include <canna/jrkanji.h>
9336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9337 { (eval echo configure:9338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9339 if test -z "$ac_err"; then
9341 eval "ac_cv_header_$ac_safe=yes"
9344 echo "configure: failed program was:" >&5
9345 cat conftest.$ac_ext >&5
9347 eval "ac_cv_header_$ac_safe=no"
9350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9351 echo "$ac_t""yes" 1>&6
9352 canna_includes_found=yes
9354 echo "$ac_t""no" 1>&6
9357 if test "$canna_includes_found" != "yes"; then
9358 c_switch_site="$save_c_switch_site"
9363 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9364 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9365 echo "configure:9366: checking for canna/RK.h" >&5
9367 cat > conftest.$ac_ext <<EOF
9368 #line 9369 "configure"
9369 #include "confdefs.h"
9370 #include <canna/RK.h>
9372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9373 { (eval echo configure:9374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9375 if test -z "$ac_err"; then
9377 eval "ac_cv_header_$ac_safe=yes"
9380 echo "configure: failed program was:" >&5
9381 cat conftest.$ac_ext >&5
9383 eval "ac_cv_header_$ac_safe=no"
9386 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9387 echo "$ac_t""yes" 1>&6
9390 echo "$ac_t""no" 1>&6
9394 test -z "$with_canna" && {
9395 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9396 echo "configure:9397: checking for RkBgnBun in -lRKC" >&5
9397 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9399 xe_check_libs=" -lRKC "
9400 cat > conftest.$ac_ext <<EOF
9401 #line 9402 "configure"
9402 #include "confdefs.h"
9403 /* Override any gcc2 internal prototype to avoid an error. */
9404 /* We use char because int might match the return type of a gcc2
9405 builtin and then its argument prototype would still apply. */
9412 if { (eval echo configure:9413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9414 eval "ac_cv_lib_$ac_lib_var=yes"
9416 echo "configure: failed program was:" >&5
9417 cat conftest.$ac_ext >&5
9419 eval "ac_cv_lib_$ac_lib_var=no"
9424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9425 echo "$ac_t""yes" 1>&6
9428 echo "$ac_t""no" 1>&6
9433 test -z "$with_canna" && {
9434 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
9435 echo "configure:9436: checking for jrKanjiControl in -lcanna" >&5
9436 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
9438 xe_check_libs=" -lcanna "
9439 cat > conftest.$ac_ext <<EOF
9440 #line 9441 "configure"
9441 #include "confdefs.h"
9442 /* Override any gcc2 internal prototype to avoid an error. */
9443 /* We use char because int might match the return type of a gcc2
9444 builtin and then its argument prototype would still apply. */
9445 char jrKanjiControl();
9451 if { (eval echo configure:9452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9453 eval "ac_cv_lib_$ac_lib_var=yes"
9455 echo "configure: failed program was:" >&5
9456 cat conftest.$ac_ext >&5
9458 eval "ac_cv_lib_$ac_lib_var=no"
9463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9464 echo "$ac_t""yes" 1>&6
9467 echo "$ac_t""no" 1>&6
9472 test -z "$with_canna" && with_canna=yes
9473 if test "$with_canna" = "yes"; then
9474 { test "$extra_verbose" = "yes" && cat << \EOF
9477 cat >> confdefs.h <<\EOF
9478 #define HAVE_CANNA 1
9482 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
9483 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
9484 echo " xemacs will be linked with \"mule-canna.o\""
9488 else for feature in xim canna wnn; do
9489 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
9490 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
9492 eval "with_${feature}=no"
9496 if test "$need_motif" = "yes" ; then
9497 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
9499 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
9500 echo "configure:9501: checking for layout_object_getvalue in -li18n" >&5
9501 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
9503 xe_check_libs=" -li18n "
9504 cat > conftest.$ac_ext <<EOF
9505 #line 9506 "configure"
9506 #include "confdefs.h"
9507 /* Override any gcc2 internal prototype to avoid an error. */
9508 /* We use char because int might match the return type of a gcc2
9509 builtin and then its argument prototype would still apply. */
9510 char layout_object_getvalue();
9513 layout_object_getvalue()
9516 if { (eval echo configure:9517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9518 eval "ac_cv_lib_$ac_lib_var=yes"
9520 echo "configure: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9523 eval "ac_cv_lib_$ac_lib_var=no"
9528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9529 echo "$ac_t""yes" 1>&6
9530 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
9532 echo "$ac_t""no" 1>&6
9537 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
9538 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
9539 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
9541 runpath="" runpath_dirs=""
9542 if test -n "$LD_RUN_PATH"; then
9543 runpath="$LD_RUN_PATH"
9544 elif test "$GCC" = "yes"; then
9545 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
9546 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
9547 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
9548 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
9549 case "$arg" in P,* | -L* | -R* )
9550 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
9552 xe_runpath_dir="$dir"
9553 test "$xe_runpath_dir" != "/lib" -a \
9554 "$xe_runpath_dir" != "/usr/lib" -a \
9555 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
9556 eval "$xe_add_unique_runpath_dir"
9561 ld_switch_run="$ld_switch_run_save"
9564 for arg in $ld_switch_site $ld_switch_x_site; do
9565 case "$arg" in -L*) {
9566 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
9567 test "$xe_runpath_dir" != "/lib" -a \
9568 "$xe_runpath_dir" != "/usr/lib" -a \
9569 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
9570 eval "$xe_add_unique_runpath_dir"
9573 if test "$opsys $need_motif" = "sol2 yes"; then
9574 xe_runpath_dir="/opt/SUNWdt/lib";
9575 eval "$xe_add_unique_runpath_dir";
9578 if test -n "$runpath"; then
9579 ld_switch_run="${dash_r}${runpath}"
9581 if test "$GCC" = "yes"; then
9582 set x $ld_switch_run; shift; ld_switch_run=""
9583 while test -n "$1"; do
9585 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
9586 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
9588 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
9593 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
9599 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo 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 fsync ftruncate umask
9601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9602 echo "configure:9603: checking for $ac_func" >&5
9604 cat > conftest.$ac_ext <<EOF
9605 #line 9606 "configure"
9606 #include "confdefs.h"
9607 /* System header to define __stub macros and hopefully few prototypes,
9608 which can conflict with char $ac_func(); below. */
9610 /* Override any gcc2 internal prototype to avoid an error. */
9611 /* We use char because int might match the return type of a gcc2
9612 builtin and then its argument prototype would still apply. */
9617 /* The GNU C library defines this for functions which it implements
9618 to always fail with ENOSYS. Some functions are actually named
9619 something starting with __ and the normal name is an alias. */
9620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9628 if { (eval echo configure:9629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9630 eval "ac_cv_func_$ac_func=yes"
9632 echo "configure: failed program was:" >&5
9633 cat conftest.$ac_ext >&5
9635 eval "ac_cv_func_$ac_func=no"
9639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9640 echo "$ac_t""yes" 1>&6
9641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9642 { test "$extra_verbose" = "yes" && cat << EOF
9643 Defining $ac_tr_func
9645 cat >> confdefs.h <<EOF
9646 #define $ac_tr_func 1
9651 echo "$ac_t""no" 1>&6
9656 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9657 echo " xemacs will be linked with \"realpath.o\""
9660 for ac_func in getloadavg
9662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9663 echo "configure:9664: checking for $ac_func" >&5
9665 cat > conftest.$ac_ext <<EOF
9666 #line 9667 "configure"
9667 #include "confdefs.h"
9668 /* System header to define __stub macros and hopefully few prototypes,
9669 which can conflict with char $ac_func(); below. */
9671 /* Override any gcc2 internal prototype to avoid an error. */
9672 /* We use char because int might match the return type of a gcc2
9673 builtin and then its argument prototype would still apply. */
9678 /* The GNU C library defines this for functions which it implements
9679 to always fail with ENOSYS. Some functions are actually named
9680 something starting with __ and the normal name is an alias. */
9681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9689 if { (eval echo configure:9690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9691 eval "ac_cv_func_$ac_func=yes"
9693 echo "configure: failed program was:" >&5
9694 cat conftest.$ac_ext >&5
9696 eval "ac_cv_func_$ac_func=no"
9700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9701 echo "$ac_t""yes" 1>&6
9702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9703 { test "$extra_verbose" = "yes" && cat << EOF
9704 Defining $ac_tr_func
9706 cat >> confdefs.h <<EOF
9707 #define $ac_tr_func 1
9712 echo "$ac_t""no" 1>&6
9717 if test "$ac_cv_func_getloadavg" != "yes"
9719 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
9720 echo " xemacs will be linked with \"getloadavg.o\""
9724 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
9725 echo "configure:9726: checking for kstat_open in -lkstat" >&5
9726 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
9728 xe_check_libs=" -lkstat "
9729 cat > conftest.$ac_ext <<EOF
9730 #line 9731 "configure"
9731 #include "confdefs.h"
9732 /* Override any gcc2 internal prototype to avoid an error. */
9733 /* We use char because int might match the return type of a gcc2
9734 builtin and then its argument prototype would still apply. */
9741 if { (eval echo configure:9742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9743 eval "ac_cv_lib_$ac_lib_var=yes"
9745 echo "configure: failed program was:" >&5
9746 cat conftest.$ac_ext >&5
9748 eval "ac_cv_lib_$ac_lib_var=no"
9753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9754 echo "$ac_t""yes" 1>&6
9755 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9756 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9757 { test "$extra_verbose" = "yes" && cat << EOF
9760 cat >> confdefs.h <<EOF
9761 #define $ac_tr_lib 1
9765 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
9768 echo "$ac_t""no" 1>&6
9774 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
9775 echo "configure:9776: checking for kvm_read in -lkvm" >&5
9776 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
9778 xe_check_libs=" -lkvm "
9779 cat > conftest.$ac_ext <<EOF
9780 #line 9781 "configure"
9781 #include "confdefs.h"
9782 /* Override any gcc2 internal prototype to avoid an error. */
9783 /* We use char because int might match the return type of a gcc2
9784 builtin and then its argument prototype would still apply. */
9791 if { (eval echo configure:9792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9793 eval "ac_cv_lib_$ac_lib_var=yes"
9795 echo "configure: failed program was:" >&5
9796 cat conftest.$ac_ext >&5
9798 eval "ac_cv_lib_$ac_lib_var=no"
9803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9804 echo "$ac_t""yes" 1>&6
9805 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9806 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9807 { test "$extra_verbose" = "yes" && cat << EOF
9810 cat >> confdefs.h <<EOF
9811 #define $ac_tr_lib 1
9815 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
9818 echo "$ac_t""no" 1>&6
9824 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9825 echo "configure:9826: checking whether netdb declares h_errno" >&5
9826 cat > conftest.$ac_ext <<EOF
9827 #line 9828 "configure"
9828 #include "confdefs.h"
9834 if { (eval echo configure:9835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9836 echo "$ac_t""yes" 1>&6
9837 { test "$extra_verbose" = "yes" && cat << \EOF
9838 Defining HAVE_H_ERRNO
9840 cat >> confdefs.h <<\EOF
9841 #define HAVE_H_ERRNO 1
9846 echo "configure: failed program was:" >&5
9847 cat conftest.$ac_ext >&5
9849 echo "$ac_t""no" 1>&6
9853 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9854 echo "configure:9855: checking for sigsetjmp" >&5
9855 cat > conftest.$ac_ext <<EOF
9856 #line 9857 "configure"
9857 #include "confdefs.h"
9860 sigjmp_buf bar; sigsetjmp (bar, 0);
9863 if { (eval echo configure:9864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9865 echo "$ac_t""yes" 1>&6
9866 { test "$extra_verbose" = "yes" && cat << \EOF
9867 Defining HAVE_SIGSETJMP
9869 cat >> confdefs.h <<\EOF
9870 #define HAVE_SIGSETJMP 1
9875 echo "configure: failed program was:" >&5
9876 cat conftest.$ac_ext >&5
9878 echo "$ac_t""no" 1>&6
9882 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9883 echo "configure:9884: checking whether localtime caches TZ" >&5
9885 if test "$ac_cv_func_tzset" = "yes"; then
9886 cat > conftest.$ac_ext <<EOF
9887 #line 9888 "configure"
9888 #include "confdefs.h"
9891 # include <stdlib.h>
9893 extern char **environ;
9897 for (to = from = environ; (*to = *from); from++)
9898 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
9901 char TZ_GMT0[] = "TZ=GMT0";
9902 char TZ_PST8[] = "TZ=PST8";
9905 time_t now = time ((time_t *) 0);
9906 int hour_GMT0, hour_unset;
9907 if (putenv (TZ_GMT0) != 0)
9909 hour_GMT0 = localtime (&now)->tm_hour;
9911 hour_unset = localtime (&now)->tm_hour;
9912 if (putenv (TZ_PST8) != 0)
9914 if (localtime (&now)->tm_hour == hour_GMT0)
9917 if (localtime (&now)->tm_hour != hour_unset)
9922 if { (eval echo configure:9923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9924 emacs_cv_localtime_cache=no
9927 echo "configure: failed program was:" >&5
9928 cat conftest.$ac_ext >&5
9930 emacs_cv_localtime_cache=yes
9934 # If we lack tzset, report that localtime does not cache TZ,
9935 # since we can't invalidate the cache if we don't have tzset.
9936 emacs_cv_localtime_cache=no
9938 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
9939 if test $emacs_cv_localtime_cache = yes; then
9940 { test "$extra_verbose" = "yes" && cat << \EOF
9941 Defining LOCALTIME_CACHE
9943 cat >> confdefs.h <<\EOF
9944 #define LOCALTIME_CACHE 1
9950 if test "$HAVE_TIMEVAL" = "yes"; then
9951 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9952 echo "configure:9953: checking whether gettimeofday accepts one or two arguments" >&5
9953 cat > conftest.$ac_ext <<EOF
9954 #line 9955 "configure"
9955 #include "confdefs.h"
9957 #ifdef TIME_WITH_SYS_TIME
9958 #include <sys/time.h>
9961 #ifdef HAVE_SYS_TIME_H
9962 #include <sys/time.h>
9970 struct timeval time;
9971 struct timezone dummy;
9972 gettimeofday (&time, &dummy);
9976 if { (eval echo configure:9977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9978 echo "$ac_t""two" 1>&6
9980 echo "configure: failed program was:" >&5
9981 cat conftest.$ac_ext >&5
9983 echo "$ac_t""one" 1>&6
9984 { test "$extra_verbose" = "yes" && cat << \EOF
9985 Defining GETTIMEOFDAY_ONE_ARGUMENT
9987 cat >> confdefs.h <<\EOF
9988 #define GETTIMEOFDAY_ONE_ARGUMENT 1
9997 echo $ac_n "checking for inline""... $ac_c" 1>&6
9998 echo "configure:9999: checking for inline" >&5
10001 for ac_kw in inline __inline__ __inline; do
10002 cat > conftest.$ac_ext <<EOF
10003 #line 10004 "configure"
10004 #include "confdefs.h"
10007 } int $ac_kw foo() {
10010 if { (eval echo configure:10011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10012 ac_cv_c_inline=$ac_kw; break
10014 echo "configure: failed program was:" >&5
10015 cat conftest.$ac_ext >&5
10021 echo "$ac_t""$ac_cv_c_inline" 1>&6
10022 case "$ac_cv_c_inline" in
10024 no) { test "$extra_verbose" = "yes" && cat << \EOF
10027 cat >> confdefs.h <<\EOF
10032 *) { test "$extra_verbose" = "yes" && cat << EOF
10033 Defining inline = $ac_cv_c_inline
10035 cat >> confdefs.h <<EOF
10036 #define inline $ac_cv_c_inline
10042 if test "$ac_cv_c_inline" != "no"; then
10043 { test "$extra_verbose" = "yes" && cat << \EOF
10044 Defining HAVE_INLINE
10046 cat >> confdefs.h <<\EOF
10047 #define HAVE_INLINE 1
10051 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
10052 echo " xemacs will be linked with \"inline.o\""
10057 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10058 # for constant arguments. Useless!
10059 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
10060 echo "configure:10061: checking for working alloca.h" >&5
10062 cat > conftest.$ac_ext <<EOF
10063 #line 10064 "configure"
10064 #include "confdefs.h"
10065 #include <alloca.h>
10067 void *p = alloca(2 * sizeof(int));
10070 if { (eval echo configure:10071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10072 ac_cv_header_alloca_h=yes
10074 echo "configure: failed program was:" >&5
10075 cat conftest.$ac_ext >&5
10077 ac_cv_header_alloca_h=no
10081 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
10082 if test $ac_cv_header_alloca_h = yes; then
10083 { test "$extra_verbose" = "yes" && cat << \EOF
10084 Defining HAVE_ALLOCA_H
10086 cat >> confdefs.h <<\EOF
10087 #define HAVE_ALLOCA_H 1
10093 echo $ac_n "checking for alloca""... $ac_c" 1>&6
10094 echo "configure:10095: checking for alloca" >&5
10096 cat > conftest.$ac_ext <<EOF
10097 #line 10098 "configure"
10098 #include "confdefs.h"
10101 # define alloca __builtin_alloca
10104 # include <malloc.h>
10105 # define alloca _alloca
10108 # include <alloca.h>
10113 # ifndef alloca /* predefined by HP cc +Olibcalls */
10122 char *p = (char *) alloca(1);
10125 if { (eval echo configure:10126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10127 ac_cv_func_alloca_works=yes
10129 echo "configure: failed program was:" >&5
10130 cat conftest.$ac_ext >&5
10132 ac_cv_func_alloca_works=no
10136 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
10137 if test $ac_cv_func_alloca_works = yes; then
10138 { test "$extra_verbose" = "yes" && cat << \EOF
10139 Defining HAVE_ALLOCA
10141 cat >> confdefs.h <<\EOF
10142 #define HAVE_ALLOCA 1
10148 if test $ac_cv_func_alloca_works = no; then
10149 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10150 # that cause trouble. Some versions do not even contain alloca or
10151 # contain a buggy version. If you still want to use their alloca,
10152 # use ar to extract alloca.o from them instead of compiling alloca.c.
10153 ALLOCA=alloca.${ac_objext}
10154 { test "$extra_verbose" = "yes" && cat << \EOF
10157 cat >> confdefs.h <<\EOF
10163 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
10164 echo "configure:10165: checking whether alloca needs Cray hooks" >&5
10166 cat > conftest.$ac_ext <<EOF
10167 #line 10168 "configure"
10168 #include "confdefs.h"
10169 #if defined(CRAY) && ! defined(CRAY2)
10176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10177 egrep "webecray" >/dev/null 2>&1; then
10187 echo "$ac_t""$ac_cv_os_cray" 1>&6
10188 if test $ac_cv_os_cray = yes; then
10189 for ac_func in _getb67 GETB67 getb67; do
10190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10191 echo "configure:10192: checking for $ac_func" >&5
10193 cat > conftest.$ac_ext <<EOF
10194 #line 10195 "configure"
10195 #include "confdefs.h"
10196 /* System header to define __stub macros and hopefully few prototypes,
10197 which can conflict with char $ac_func(); below. */
10198 #include <assert.h>
10199 /* Override any gcc2 internal prototype to avoid an error. */
10200 /* We use char because int might match the return type of a gcc2
10201 builtin and then its argument prototype would still apply. */
10206 /* The GNU C library defines this for functions which it implements
10207 to always fail with ENOSYS. Some functions are actually named
10208 something starting with __ and the normal name is an alias. */
10209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10217 if { (eval echo configure:10218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10219 eval "ac_cv_func_$ac_func=yes"
10221 echo "configure: failed program was:" >&5
10222 cat conftest.$ac_ext >&5
10224 eval "ac_cv_func_$ac_func=no"
10228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10229 echo "$ac_t""yes" 1>&6
10230 { test "$extra_verbose" = "yes" && cat << EOF
10231 Defining CRAY_STACKSEG_END = $ac_func
10233 cat >> confdefs.h <<EOF
10234 #define CRAY_STACKSEG_END $ac_func
10240 echo "$ac_t""no" 1>&6
10246 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
10247 echo "configure:10248: checking stack direction for C alloca" >&5
10249 cat > conftest.$ac_ext <<EOF
10250 #line 10251 "configure"
10251 #include "confdefs.h"
10252 find_stack_direction ()
10254 static char *addr = 0;
10259 return find_stack_direction ();
10262 return (&dummy > addr) ? 1 : -1;
10266 exit (find_stack_direction() < 0);
10269 if { (eval echo configure:10270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10271 ac_cv_c_stack_direction=1
10274 echo "configure: failed program was:" >&5
10275 cat conftest.$ac_ext >&5
10277 ac_cv_c_stack_direction=-1
10281 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
10282 { test "$extra_verbose" = "yes" && cat << EOF
10283 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
10285 cat >> confdefs.h <<EOF
10286 #define STACK_DIRECTION $ac_cv_c_stack_direction
10292 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
10293 echo " xemacs will be linked with \"$ALLOCA\""
10296 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
10297 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
10298 echo "configure:10299: checking for vfork.h" >&5
10300 cat > conftest.$ac_ext <<EOF
10301 #line 10302 "configure"
10302 #include "confdefs.h"
10305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10306 { (eval echo configure:10307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10308 if test -z "$ac_err"; then
10310 eval "ac_cv_header_$ac_safe=yes"
10313 echo "configure: failed program was:" >&5
10314 cat conftest.$ac_ext >&5
10316 eval "ac_cv_header_$ac_safe=no"
10319 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10320 echo "$ac_t""yes" 1>&6
10321 { test "$extra_verbose" = "yes" && cat << \EOF
10322 Defining HAVE_VFORK_H
10324 cat >> confdefs.h <<\EOF
10325 #define HAVE_VFORK_H 1
10330 echo "$ac_t""no" 1>&6
10333 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
10334 echo "configure:10335: checking for working vfork" >&5
10336 cat > conftest.$ac_ext <<EOF
10337 #line 10338 "configure"
10338 #include "confdefs.h"
10339 /* Thanks to Paul Eggert for this test. */
10341 #include <sys/types.h>
10342 #include <sys/stat.h>
10343 #ifdef HAVE_UNISTD_H
10344 #include <unistd.h>
10346 #ifdef HAVE_VFORK_H
10349 /* On some sparc systems, changes by the child to local and incoming
10350 argument registers are propagated back to the parent.
10351 The compiler is told about this with #include <vfork.h>,
10352 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
10353 Test for this by using a static variable whose address
10354 is put into a register that is clobbered by the vfork. */
10357 sparc_address_test (int arg)
10359 sparc_address_test (arg) int arg;
10362 static pid_t child;
10377 pid_t parent = getpid ();
10380 sparc_address_test ();
10385 /* Here is another test for sparc vfork register problems.
10386 This test uses lots of local variables, at least
10387 as many local variables as main has allocated so far
10388 including compiler temporaries. 4 locals are enough for
10389 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
10390 A buggy compiler should reuse the register of parent
10391 for one of the local variables, since it will think that
10392 parent can't possibly be used any more in this routine.
10393 Assigning to the local variable will thus munge parent
10394 in the parent process. */
10396 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10397 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10398 /* Convince the compiler that p..p7 are live; otherwise, it might
10399 use the same hardware register for all 8 local variables. */
10400 if (p != p1 || p != p2 || p != p3 || p != p4
10401 || p != p5 || p != p6 || p != p7)
10404 /* On some systems (e.g. IRIX 3.3),
10405 vfork doesn't separate parent from child file descriptors.
10406 If the child closes a descriptor before it execs or exits,
10407 this munges the parent's descriptor as well.
10408 Test for this by closing stdout in the child. */
10409 _exit(close(fileno(stdout)) != 0);
10414 while (wait(&status) != child)
10417 /* Was there some problem with vforking? */
10420 /* Did the child fail? (This shouldn't happen.) */
10423 /* Did the vfork/compiler bug occur? */
10424 || parent != getpid()
10426 /* Did the file descriptor bug occur? */
10427 || fstat(fileno(stdout), &st) != 0
10432 if { (eval echo configure:10433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10434 ac_cv_func_vfork_works=yes
10437 echo "configure: failed program was:" >&5
10438 cat conftest.$ac_ext >&5
10440 ac_cv_func_vfork_works=no
10444 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
10445 if test $ac_cv_func_vfork_works = no; then
10446 { test "$extra_verbose" = "yes" && cat << \EOF
10447 Defining vfork = fork
10449 cat >> confdefs.h <<\EOF
10457 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
10458 echo "configure:10459: checking for working strcoll" >&5
10460 cat > conftest.$ac_ext <<EOF
10461 #line 10462 "configure"
10462 #include "confdefs.h"
10463 #include <string.h>
10466 exit (strcoll ("abc", "def") >= 0 ||
10467 strcoll ("ABC", "DEF") >= 0 ||
10468 strcoll ("123", "456") >= 0);
10471 if { (eval echo configure:10472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10473 ac_cv_func_strcoll_works=yes
10476 echo "configure: failed program was:" >&5
10477 cat conftest.$ac_ext >&5
10479 ac_cv_func_strcoll_works=no
10483 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
10484 if test $ac_cv_func_strcoll_works = yes; then
10485 { test "$extra_verbose" = "yes" && cat << \EOF
10486 Defining HAVE_STRCOLL
10488 cat >> confdefs.h <<\EOF
10489 #define HAVE_STRCOLL 1
10496 for ac_func in getpgrp
10498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10499 echo "configure:10500: checking for $ac_func" >&5
10501 cat > conftest.$ac_ext <<EOF
10502 #line 10503 "configure"
10503 #include "confdefs.h"
10504 /* System header to define __stub macros and hopefully few prototypes,
10505 which can conflict with char $ac_func(); below. */
10506 #include <assert.h>
10507 /* Override any gcc2 internal prototype to avoid an error. */
10508 /* We use char because int might match the return type of a gcc2
10509 builtin and then its argument prototype would still apply. */
10514 /* The GNU C library defines this for functions which it implements
10515 to always fail with ENOSYS. Some functions are actually named
10516 something starting with __ and the normal name is an alias. */
10517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10525 if { (eval echo configure:10526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10527 eval "ac_cv_func_$ac_func=yes"
10529 echo "configure: failed program was:" >&5
10530 cat conftest.$ac_ext >&5
10532 eval "ac_cv_func_$ac_func=no"
10536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10537 echo "$ac_t""yes" 1>&6
10538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10539 { test "$extra_verbose" = "yes" && cat << EOF
10540 Defining $ac_tr_func
10542 cat >> confdefs.h <<EOF
10543 #define $ac_tr_func 1
10548 echo "$ac_t""no" 1>&6
10552 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
10553 echo "configure:10554: checking whether getpgrp takes no argument" >&5
10555 cat > conftest.$ac_ext <<EOF
10556 #line 10557 "configure"
10557 #include "confdefs.h"
10560 * If this system has a BSD-style getpgrp(),
10561 * which takes a pid argument, exit unsuccessfully.
10563 * Snarfed from Chet Ramey's bash pgrp.c test program
10566 #include <sys/types.h>
10569 int pg1, pg2, pg3, pg4;
10570 int ng, np, s, child;
10577 pg3 = getpgrp(pid);
10581 * If all of these values are the same, it's pretty sure that
10582 * we're on a system that ignores getpgrp's first argument.
10584 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
10590 else if (child == 0) {
10593 * If this is Sys V, this will not work; pgrp will be
10594 * set to np because setpgrp just changes a pgrp to be
10595 * the same as the pid.
10598 ng = getpgrp(0); /* Same result for Sys V and BSD */
10611 if { (eval echo configure:10612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10613 ac_cv_func_getpgrp_void=yes
10616 echo "configure: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10619 ac_cv_func_getpgrp_void=no
10624 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
10625 if test $ac_cv_func_getpgrp_void = yes; then
10626 { test "$extra_verbose" = "yes" && cat << \EOF
10627 Defining GETPGRP_VOID
10629 cat >> confdefs.h <<\EOF
10630 #define GETPGRP_VOID 1
10637 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10638 echo "configure:10639: checking for working mmap" >&5
10639 case "$opsys" in ultrix* ) have_mmap=no ;; *)
10640 cat > conftest.$ac_ext <<EOF
10641 #line 10642 "configure"
10642 #include "confdefs.h"
10644 #include <unistd.h>
10646 #include <sys/mman.h>
10648 #ifndef MAP_VARIABLE
10649 #define MAP_VARIABLE 0
10653 #define MAP_FAILED -1
10656 int main (int argc, char *argv[])
10660 #ifndef MAP_ANONYMOUS
10661 fd = open ("/dev/zero", O_RDWR);
10664 #define MAP_ANONYMOUS 0
10666 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
10667 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
10668 fd, 0) != (void *) MAP_FAILED)
10670 perror ("conftest: mmap failed");
10674 if { (eval echo configure:10675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10679 echo "configure: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10684 rm -fr conftest* ;;
10686 echo "$ac_t""$have_mmap" 1>&6
10687 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10690 cat >> confdefs.h <<\EOF
10691 #define HAVE_MMAP 1
10696 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10697 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
10698 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10701 cat >> confdefs.h <<\EOF
10702 #define REL_ALLOC 1
10707 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10708 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10709 echo "configure:10710: checking for termios.h" >&5
10711 cat > conftest.$ac_ext <<EOF
10712 #line 10713 "configure"
10713 #include "confdefs.h"
10714 #include <termios.h>
10716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10717 { (eval echo configure:10718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10719 if test -z "$ac_err"; then
10721 eval "ac_cv_header_$ac_safe=yes"
10724 echo "configure: failed program was:" >&5
10725 cat conftest.$ac_ext >&5
10727 eval "ac_cv_header_$ac_safe=no"
10730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10731 echo "$ac_t""yes" 1>&6
10732 { test "$extra_verbose" = "yes" && cat << \EOF
10733 Defining HAVE_TERMIOS
10735 cat >> confdefs.h <<\EOF
10736 #define HAVE_TERMIOS 1
10740 { test "$extra_verbose" = "yes" && cat << \EOF
10741 Defining SIGNALS_VIA_CHARACTERS
10743 cat >> confdefs.h <<\EOF
10744 #define SIGNALS_VIA_CHARACTERS 1
10748 { test "$extra_verbose" = "yes" && cat << \EOF
10751 cat >> confdefs.h <<\EOF
10752 #define NO_TERMIO 1
10757 echo "$ac_t""no" 1>&6
10758 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10759 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10760 echo "configure:10761: checking for termio.h" >&5
10762 cat > conftest.$ac_ext <<EOF
10763 #line 10764 "configure"
10764 #include "confdefs.h"
10765 #include <termio.h>
10767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10768 { (eval echo configure:10769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10770 if test -z "$ac_err"; then
10772 eval "ac_cv_header_$ac_safe=yes"
10775 echo "configure: failed program was:" >&5
10776 cat conftest.$ac_ext >&5
10778 eval "ac_cv_header_$ac_safe=no"
10781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10782 echo "$ac_t""yes" 1>&6
10783 { test "$extra_verbose" = "yes" && cat << \EOF
10784 Defining HAVE_TERMIO
10786 cat >> confdefs.h <<\EOF
10787 #define HAVE_TERMIO 1
10792 echo "$ac_t""no" 1>&6
10799 echo $ac_n "checking for socket""... $ac_c" 1>&6
10800 echo "configure:10801: checking for socket" >&5
10802 cat > conftest.$ac_ext <<EOF
10803 #line 10804 "configure"
10804 #include "confdefs.h"
10805 /* System header to define __stub macros and hopefully few prototypes,
10806 which can conflict with char socket(); below. */
10807 #include <assert.h>
10808 /* Override any gcc2 internal prototype to avoid an error. */
10809 /* We use char because int might match the return type of a gcc2
10810 builtin and then its argument prototype would still apply. */
10815 /* The GNU C library defines this for functions which it implements
10816 to always fail with ENOSYS. Some functions are actually named
10817 something starting with __ and the normal name is an alias. */
10818 #if defined (__stub_socket) || defined (__stub___socket)
10826 if { (eval echo configure:10827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10828 eval "ac_cv_func_socket=yes"
10830 echo "configure: failed program was:" >&5
10831 cat conftest.$ac_ext >&5
10833 eval "ac_cv_func_socket=no"
10837 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10838 echo "$ac_t""yes" 1>&6
10839 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10840 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10841 echo "configure:10842: checking for netinet/in.h" >&5
10843 cat > conftest.$ac_ext <<EOF
10844 #line 10845 "configure"
10845 #include "confdefs.h"
10846 #include <netinet/in.h>
10848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10849 { (eval echo configure:10850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10851 if test -z "$ac_err"; then
10853 eval "ac_cv_header_$ac_safe=yes"
10856 echo "configure: failed program was:" >&5
10857 cat conftest.$ac_ext >&5
10859 eval "ac_cv_header_$ac_safe=no"
10862 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10863 echo "$ac_t""yes" 1>&6
10864 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10865 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10866 echo "configure:10867: checking for arpa/inet.h" >&5
10868 cat > conftest.$ac_ext <<EOF
10869 #line 10870 "configure"
10870 #include "confdefs.h"
10871 #include <arpa/inet.h>
10873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10874 { (eval echo configure:10875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10876 if test -z "$ac_err"; then
10878 eval "ac_cv_header_$ac_safe=yes"
10881 echo "configure: failed program was:" >&5
10882 cat conftest.$ac_ext >&5
10884 eval "ac_cv_header_$ac_safe=no"
10887 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10888 echo "$ac_t""yes" 1>&6
10890 { test "$extra_verbose" = "yes" && cat << \EOF
10891 Defining HAVE_SOCKETS
10893 cat >> confdefs.h <<\EOF
10894 #define HAVE_SOCKETS 1
10898 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10899 echo "configure:10900: checking "for sun_len member in struct sockaddr_un"" >&5
10900 cat > conftest.$ac_ext <<EOF
10901 #line 10902 "configure"
10902 #include "confdefs.h"
10904 #include <sys/types.h>
10905 #include <sys/socket.h>
10906 #include <sys/un.h>
10909 static struct sockaddr_un x; x.sun_len = 1;
10912 if { (eval echo configure:10913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10914 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10915 Defining HAVE_SOCKADDR_SUN_LEN
10917 cat >> confdefs.h <<\EOF
10918 #define HAVE_SOCKADDR_SUN_LEN 1
10923 echo "configure: failed program was:" >&5
10924 cat conftest.$ac_ext >&5
10926 echo "$ac_t""no" 1>&6
10929 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10930 echo "configure:10931: checking "for ip_mreq struct in netinet/in.h"" >&5
10931 cat > conftest.$ac_ext <<EOF
10932 #line 10933 "configure"
10933 #include "confdefs.h"
10935 #include <sys/types.h>
10936 #include <netinet/in.h>
10939 static struct ip_mreq x;
10942 if { (eval echo configure:10943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10944 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10945 Defining HAVE_MULTICAST
10947 cat >> confdefs.h <<\EOF
10948 #define HAVE_MULTICAST 1
10953 echo "configure: failed program was:" >&5
10954 cat conftest.$ac_ext >&5
10956 echo "$ac_t""no" 1>&6
10960 echo "$ac_t""no" 1>&6
10964 echo "$ac_t""no" 1>&6
10968 echo "$ac_t""no" 1>&6
10972 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10973 echo "configure:10974: checking for msgget" >&5
10975 cat > conftest.$ac_ext <<EOF
10976 #line 10977 "configure"
10977 #include "confdefs.h"
10978 /* System header to define __stub macros and hopefully few prototypes,
10979 which can conflict with char msgget(); below. */
10980 #include <assert.h>
10981 /* Override any gcc2 internal prototype to avoid an error. */
10982 /* We use char because int might match the return type of a gcc2
10983 builtin and then its argument prototype would still apply. */
10988 /* The GNU C library defines this for functions which it implements
10989 to always fail with ENOSYS. Some functions are actually named
10990 something starting with __ and the normal name is an alias. */
10991 #if defined (__stub_msgget) || defined (__stub___msgget)
10999 if { (eval echo configure:11000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11001 eval "ac_cv_func_msgget=yes"
11003 echo "configure: failed program was:" >&5
11004 cat conftest.$ac_ext >&5
11006 eval "ac_cv_func_msgget=no"
11010 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
11011 echo "$ac_t""yes" 1>&6
11012 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
11013 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
11014 echo "configure:11015: checking for sys/ipc.h" >&5
11016 cat > conftest.$ac_ext <<EOF
11017 #line 11018 "configure"
11018 #include "confdefs.h"
11019 #include <sys/ipc.h>
11021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11022 { (eval echo configure:11023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11024 if test -z "$ac_err"; then
11026 eval "ac_cv_header_$ac_safe=yes"
11029 echo "configure: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11032 eval "ac_cv_header_$ac_safe=no"
11035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11036 echo "$ac_t""yes" 1>&6
11037 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
11038 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
11039 echo "configure:11040: checking for sys/msg.h" >&5
11041 cat > conftest.$ac_ext <<EOF
11042 #line 11043 "configure"
11043 #include "confdefs.h"
11044 #include <sys/msg.h>
11046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11047 { (eval echo configure:11048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11049 if test -z "$ac_err"; then
11051 eval "ac_cv_header_$ac_safe=yes"
11054 echo "configure: failed program was:" >&5
11055 cat conftest.$ac_ext >&5
11057 eval "ac_cv_header_$ac_safe=no"
11060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11061 echo "$ac_t""yes" 1>&6
11062 { test "$extra_verbose" = "yes" && cat << \EOF
11063 Defining HAVE_SYSVIPC
11065 cat >> confdefs.h <<\EOF
11066 #define HAVE_SYSVIPC 1
11071 echo "$ac_t""no" 1>&6
11075 echo "$ac_t""no" 1>&6
11079 echo "$ac_t""no" 1>&6
11083 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
11084 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
11085 echo "configure:11086: checking for dirent.h" >&5
11087 cat > conftest.$ac_ext <<EOF
11088 #line 11089 "configure"
11089 #include "confdefs.h"
11090 #include <dirent.h>
11092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11093 { (eval echo configure:11094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11095 if test -z "$ac_err"; then
11097 eval "ac_cv_header_$ac_safe=yes"
11100 echo "configure: failed program was:" >&5
11101 cat conftest.$ac_ext >&5
11103 eval "ac_cv_header_$ac_safe=no"
11106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11107 echo "$ac_t""yes" 1>&6
11108 { test "$extra_verbose" = "yes" && cat << \EOF
11109 Defining SYSV_SYSTEM_DIR
11111 cat >> confdefs.h <<\EOF
11112 #define SYSV_SYSTEM_DIR 1
11117 echo "$ac_t""no" 1>&6
11118 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
11119 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
11120 echo "configure:11121: checking for sys/dir.h" >&5
11122 cat > conftest.$ac_ext <<EOF
11123 #line 11124 "configure"
11124 #include "confdefs.h"
11125 #include <sys/dir.h>
11127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11128 { (eval echo configure:11129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11130 if test -z "$ac_err"; then
11132 eval "ac_cv_header_$ac_safe=yes"
11135 echo "configure: failed program was:" >&5
11136 cat conftest.$ac_ext >&5
11138 eval "ac_cv_header_$ac_safe=no"
11141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11142 echo "$ac_t""yes" 1>&6
11145 echo "$ac_t""no" 1>&6
11146 { test "$extra_verbose" = "yes" && cat << \EOF
11147 Defining NONSYSTEM_DIR_LIBRARY
11149 cat >> confdefs.h <<\EOF
11150 #define NONSYSTEM_DIR_LIBRARY 1
11159 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
11160 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
11161 echo "configure:11162: checking for nlist.h" >&5
11163 cat > conftest.$ac_ext <<EOF
11164 #line 11165 "configure"
11165 #include "confdefs.h"
11168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11169 { (eval echo configure:11170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11171 if test -z "$ac_err"; then
11173 eval "ac_cv_header_$ac_safe=yes"
11176 echo "configure: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11179 eval "ac_cv_header_$ac_safe=no"
11182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11183 echo "$ac_t""yes" 1>&6
11184 { test "$extra_verbose" = "yes" && cat << \EOF
11185 Defining NLIST_STRUCT
11187 cat >> confdefs.h <<\EOF
11188 #define NLIST_STRUCT 1
11193 echo "$ac_t""no" 1>&6
11198 echo "checking "for sound support"" 1>&6
11199 echo "configure:11200: checking "for sound support"" >&5
11200 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
11202 if test "$with_native_sound" != "no"; then
11203 if test -n "$native_sound_lib"; then
11204 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
11205 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
11206 echo "configure:11207: checking for multimedia/audio_device.h" >&5
11208 cat > conftest.$ac_ext <<EOF
11209 #line 11210 "configure"
11210 #include "confdefs.h"
11211 #include <multimedia/audio_device.h>
11213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11214 { (eval echo configure:11215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11216 if test -z "$ac_err"; then
11218 eval "ac_cv_header_$ac_safe=yes"
11221 echo "configure: failed program was:" >&5
11222 cat conftest.$ac_ext >&5
11224 eval "ac_cv_header_$ac_safe=no"
11227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11228 echo "$ac_t""yes" 1>&6
11229 sound_found=yes sound_cflags=""
11230 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
11231 echo " xemacs will be linked with \"sunplay.o\""
11234 echo "$ac_t""no" 1>&6
11239 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
11241 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
11242 echo " xemacs will be linked with \"sunplay.o\""
11244 if test -d "/usr/demo/SOUND/include"
11245 then sound_cflags="-I/usr/demo/SOUND/include"
11246 else sound_cflags="-I/usr/demo/SOUND"
11248 if test -z "$native_sound_lib" ; then
11249 if test -r "/usr/demo/SOUND/lib/libaudio.a"
11250 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
11251 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
11256 if test -z "$sound_found"; then
11257 case "$canonical" in
11259 if test -z "$native_sound_lib"; then
11261 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
11262 echo "configure:11263: checking for ALopenport in -laudio" >&5
11263 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
11265 xe_check_libs=" -laudio "
11266 cat > conftest.$ac_ext <<EOF
11267 #line 11268 "configure"
11268 #include "confdefs.h"
11269 /* Override any gcc2 internal prototype to avoid an error. */
11270 /* We use char because int might match the return type of a gcc2
11271 builtin and then its argument prototype would still apply. */
11278 if { (eval echo configure:11279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11280 eval "ac_cv_lib_$ac_lib_var=yes"
11282 echo "configure: failed program was:" >&5
11283 cat conftest.$ac_ext >&5
11285 eval "ac_cv_lib_$ac_lib_var=no"
11290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11291 echo "$ac_t""yes" 1>&6
11292 native_sound_lib="-laudio"
11294 echo "$ac_t""no" 1>&6
11299 if test -n "$native_sound_lib"; then
11300 sound_found=yes sound_cflags=""
11301 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
11302 echo " xemacs will be linked with \"sgiplay.o\""
11306 if test -z "$native_sound_lib"; then
11308 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
11309 echo "configure:11310: checking for AOpenAudio in -lAlib" >&5
11310 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
11312 xe_check_libs=" -lAlib "
11313 cat > conftest.$ac_ext <<EOF
11314 #line 11315 "configure"
11315 #include "confdefs.h"
11316 /* Override any gcc2 internal prototype to avoid an error. */
11317 /* We use char because int might match the return type of a gcc2
11318 builtin and then its argument prototype would still apply. */
11325 if { (eval echo configure:11326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11327 eval "ac_cv_lib_$ac_lib_var=yes"
11329 echo "configure: failed program was:" >&5
11330 cat conftest.$ac_ext >&5
11332 eval "ac_cv_lib_$ac_lib_var=no"
11337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11338 echo "$ac_t""yes" 1>&6
11339 native_sound_lib="-lAlib"
11341 echo "$ac_t""no" 1>&6
11346 if test -n "$native_sound_lib"; then
11348 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
11349 echo " xemacs will be linked with \"hpplay.o\""
11351 if test "$GCC" = "yes" # Kludge city
11352 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
11353 else sound_cflags="+e -I/usr/audio/examples"
11359 if test -z "$sound_found"; then
11360 for dir in "machine" "sys" "linux"; do
11361 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
11362 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
11363 echo "configure:11364: checking for ${dir}/soundcard.h" >&5
11365 cat > conftest.$ac_ext <<EOF
11366 #line 11367 "configure"
11367 #include "confdefs.h"
11368 #include <${dir}/soundcard.h>
11370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11371 { (eval echo configure:11372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11373 if test -z "$ac_err"; then
11375 eval "ac_cv_header_$ac_safe=yes"
11378 echo "configure: failed program was:" >&5
11379 cat conftest.$ac_ext >&5
11381 eval "ac_cv_header_$ac_safe=no"
11384 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11385 echo "$ac_t""yes" 1>&6
11388 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
11389 echo " xemacs will be linked with \"linuxplay.o\""
11391 { test "$extra_verbose" = "yes" && cat << EOF
11392 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
11394 cat >> confdefs.h <<EOF
11395 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
11401 echo "$ac_t""no" 1>&6
11407 test "$sound_found" = "yes" && with_native_sound=yes
11410 if test "$with_native_sound" = "yes"; then
11411 { test "$extra_verbose" = "yes" && cat << \EOF
11412 Defining HAVE_NATIVE_SOUND
11414 cat >> confdefs.h <<\EOF
11415 #define HAVE_NATIVE_SOUND 1
11419 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
11422 if test "$with_nas_sound" != "no"; then
11423 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
11424 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
11425 echo "configure:11426: checking for audio/audiolib.h" >&5
11427 cat > conftest.$ac_ext <<EOF
11428 #line 11429 "configure"
11429 #include "confdefs.h"
11430 #include <audio/audiolib.h>
11432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11433 { (eval echo configure:11434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11435 if test -z "$ac_err"; then
11437 eval "ac_cv_header_$ac_safe=yes"
11440 echo "configure: failed program was:" >&5
11441 cat conftest.$ac_ext >&5
11443 eval "ac_cv_header_$ac_safe=no"
11446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11447 echo "$ac_t""yes" 1>&6
11450 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
11451 echo "configure:11452: checking for AuOpenServer in -laudio" >&5
11452 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
11454 xe_check_libs=" -laudio "
11455 cat > conftest.$ac_ext <<EOF
11456 #line 11457 "configure"
11457 #include "confdefs.h"
11458 /* Override any gcc2 internal prototype to avoid an error. */
11459 /* We use char because int might match the return type of a gcc2
11460 builtin and then its argument prototype would still apply. */
11461 char AuOpenServer();
11467 if { (eval echo configure:11468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11469 eval "ac_cv_lib_$ac_lib_var=yes"
11471 echo "configure: failed program was:" >&5
11472 cat conftest.$ac_ext >&5
11474 eval "ac_cv_lib_$ac_lib_var=no"
11479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11480 echo "$ac_t""yes" 1>&6
11483 echo "$ac_t""no" 1>&6
11488 echo "$ac_t""no" 1>&6
11491 if test "$have_nas_sound" = "yes"; then
11493 { test "$extra_verbose" = "yes" && cat << \EOF
11494 Defining HAVE_NAS_SOUND
11496 cat >> confdefs.h <<\EOF
11497 #define HAVE_NAS_SOUND 1
11501 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
11502 echo " xemacs will be linked with \"nas.o\""
11504 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
11505 cat > conftest.$ac_ext <<EOF
11506 #line 11507 "configure"
11507 #include "confdefs.h"
11508 #include <audio/Xtutil.h>
11510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11511 egrep "AuXtErrorJump" >/dev/null 2>&1; then
11515 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
11516 Defining NAS_NO_ERROR_JUMP
11518 cat >> confdefs.h <<\EOF
11519 #define NAS_NO_ERROR_JUMP 1
11527 test "$with_nas_sound" = "yes" && \
11528 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
11533 if test "$with_esd_sound" != "no"; then
11534 # Extract the first word of "esd-config", so it can be a program name with args.
11535 set dummy esd-config; ac_word=$2
11536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11537 echo "configure:11538: checking for $ac_word" >&5
11539 if test -n "$have_esd_config"; then
11540 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
11542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11544 for ac_dir in $ac_dummy; do
11545 test -z "$ac_dir" && ac_dir=.
11546 if test -f $ac_dir/$ac_word; then
11547 ac_cv_prog_have_esd_config="yes"
11552 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
11554 have_esd_config="$ac_cv_prog_have_esd_config"
11555 if test -n "$have_esd_config"; then
11556 echo "$ac_t""$have_esd_config" 1>&6
11558 echo "$ac_t""no" 1>&6
11561 if test "$have_esd_config" = "yes"; then
11562 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
11563 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
11564 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
11565 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
11566 echo "configure:11567: checking for esd_play_stream" >&5
11568 cat > conftest.$ac_ext <<EOF
11569 #line 11570 "configure"
11570 #include "confdefs.h"
11571 /* System header to define __stub macros and hopefully few prototypes,
11572 which can conflict with char esd_play_stream(); below. */
11573 #include <assert.h>
11574 /* Override any gcc2 internal prototype to avoid an error. */
11575 /* We use char because int might match the return type of a gcc2
11576 builtin and then its argument prototype would still apply. */
11577 char esd_play_stream();
11581 /* The GNU C library defines this for functions which it implements
11582 to always fail with ENOSYS. Some functions are actually named
11583 something starting with __ and the normal name is an alias. */
11584 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
11592 if { (eval echo configure:11593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11594 eval "ac_cv_func_esd_play_stream=yes"
11596 echo "configure: failed program was:" >&5
11597 cat conftest.$ac_ext >&5
11599 eval "ac_cv_func_esd_play_stream=no"
11603 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
11604 echo "$ac_t""yes" 1>&6
11607 echo "$ac_t""no" 1>&6
11608 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
11613 if test "$have_esd_sound" = "yes"; then
11616 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
11617 echo " xemacs will be linked with \"esd.o\""
11619 { test "$extra_verbose" = "yes" && cat << \EOF
11620 Defining HAVE_ESD_SOUND
11622 cat >> confdefs.h <<\EOF
11623 #define HAVE_ESD_SOUND 1
11628 test "$with_esd_sound" = "yes" && \
11629 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
11634 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
11635 echo " xemacs will be linked with \"miscplay.o\""
11639 test -z "$with_tty" && with_tty=yes
11641 if test "$with_tty" = "yes" ; then
11642 echo "checking for TTY-related features" 1>&6
11643 echo "configure:11644: checking for TTY-related features" >&5
11644 { test "$extra_verbose" = "yes" && cat << \EOF
11647 cat >> confdefs.h <<\EOF
11652 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
11653 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\""
11656 if test -z "$with_ncurses"; then
11658 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
11659 echo "configure:11660: checking for tgetent in -lncurses" >&5
11660 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
11662 xe_check_libs=" -lncurses "
11663 cat > conftest.$ac_ext <<EOF
11664 #line 11665 "configure"
11665 #include "confdefs.h"
11666 /* Override any gcc2 internal prototype to avoid an error. */
11667 /* We use char because int might match the return type of a gcc2
11668 builtin and then its argument prototype would still apply. */
11675 if { (eval echo configure:11676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11677 eval "ac_cv_lib_$ac_lib_var=yes"
11679 echo "configure: failed program was:" >&5
11680 cat conftest.$ac_ext >&5
11682 eval "ac_cv_lib_$ac_lib_var=no"
11687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11688 echo "$ac_t""yes" 1>&6
11691 echo "$ac_t""no" 1>&6
11697 if test "$with_ncurses" = "yes"; then
11698 { test "$extra_verbose" = "yes" && cat << \EOF
11699 Defining HAVE_NCURSES
11701 cat >> confdefs.h <<\EOF
11702 #define HAVE_NCURSES 1
11706 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11707 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11708 echo "configure:11709: checking for ncurses/curses.h" >&5
11710 cat > conftest.$ac_ext <<EOF
11711 #line 11712 "configure"
11712 #include "confdefs.h"
11713 #include <ncurses/curses.h>
11715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11716 { (eval echo configure:11717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11718 if test -z "$ac_err"; then
11720 eval "ac_cv_header_$ac_safe=yes"
11723 echo "configure: failed program was:" >&5
11724 cat conftest.$ac_ext >&5
11726 eval "ac_cv_header_$ac_safe=no"
11729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11730 echo "$ac_t""yes" 1>&6
11731 curses_h_path=ncurses/curses.h
11733 echo "$ac_t""no" 1>&6
11736 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
11737 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
11738 echo "configure:11739: checking for ncurses/term.h" >&5
11740 cat > conftest.$ac_ext <<EOF
11741 #line 11742 "configure"
11742 #include "confdefs.h"
11743 #include <ncurses/term.h>
11745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11746 { (eval echo configure:11747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11748 if test -z "$ac_err"; then
11750 eval "ac_cv_header_$ac_safe=yes"
11753 echo "configure: failed program was:" >&5
11754 cat conftest.$ac_ext >&5
11756 eval "ac_cv_header_$ac_safe=no"
11759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11760 echo "$ac_t""yes" 1>&6
11761 term_h_path=ncurses/term.h
11763 echo "$ac_t""no" 1>&6
11766 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11767 echo " xemacs will be linked with \"terminfo.o\""
11769 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
11771 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
11772 save_c_switch_site="$c_switch_site"
11773 c_switch_site="$c_switch_site -I/usr/include/ncurses"
11774 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11775 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11776 echo "configure:11777: checking for ncurses/curses.h" >&5
11778 cat > conftest.$ac_ext <<EOF
11779 #line 11780 "configure"
11780 #include "confdefs.h"
11781 #include <ncurses/curses.h>
11783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11784 { (eval echo configure:11785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11786 if test -z "$ac_err"; then
11788 eval "ac_cv_header_$ac_safe=yes"
11791 echo "configure: failed program was:" >&5
11792 cat conftest.$ac_ext >&5
11794 eval "ac_cv_header_$ac_safe=no"
11797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11798 echo "$ac_t""yes" 1>&6
11799 curses_h_path=ncurses/curses.h
11801 echo "$ac_t""no" 1>&6
11804 if test "$ac_cv_header_ncurses_curses_h" = "yes"
11805 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
11806 else c_switch_site="$save_c_switch_site"
11809 else if test "$have_terminfo" = "yes"; then
11810 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11811 echo " xemacs will be linked with \"terminfo.o\""
11813 if test -n "$libs_termcap"; then
11814 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11816 for lib in curses termlib termcap; do
11818 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
11819 echo "configure:11820: checking for tgetent in -l$lib" >&5
11820 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
11822 xe_check_libs=" -l$lib "
11823 cat > conftest.$ac_ext <<EOF
11824 #line 11825 "configure"
11825 #include "confdefs.h"
11826 /* Override any gcc2 internal prototype to avoid an error. */
11827 /* We use char because int might match the return type of a gcc2
11828 builtin and then its argument prototype would still apply. */
11835 if { (eval echo configure:11836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11837 eval "ac_cv_lib_$ac_lib_var=yes"
11839 echo "configure: failed program was:" >&5
11840 cat conftest.$ac_ext >&5
11842 eval "ac_cv_lib_$ac_lib_var=no"
11847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11848 echo "$ac_t""yes" 1>&6
11849 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
11851 echo "$ac_t""no" 1>&6
11857 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
11858 echo " xemacs will be linked with \"tparam.o\""
11860 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
11861 if test -n "$libs_termcap"; then
11862 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11865 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11866 echo "configure:11867: checking for tgetent in -lcurses" >&5
11867 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11869 xe_check_libs=" -lcurses "
11870 cat > conftest.$ac_ext <<EOF
11871 #line 11872 "configure"
11872 #include "confdefs.h"
11873 /* Override any gcc2 internal prototype to avoid an error. */
11874 /* We use char because int might match the return type of a gcc2
11875 builtin and then its argument prototype would still apply. */
11882 if { (eval echo configure:11883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11884 eval "ac_cv_lib_$ac_lib_var=yes"
11886 echo "configure: failed program was:" >&5
11887 cat conftest.$ac_ext >&5
11889 eval "ac_cv_lib_$ac_lib_var=no"
11894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11895 echo "$ac_t""yes" 1>&6
11896 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11898 echo "$ac_t""no" 1>&6
11899 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11900 echo "configure:11901: checking for tgetent in -ltermcap" >&5
11901 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11903 xe_check_libs=" -ltermcap "
11904 cat > conftest.$ac_ext <<EOF
11905 #line 11906 "configure"
11906 #include "confdefs.h"
11907 /* Override any gcc2 internal prototype to avoid an error. */
11908 /* We use char because int might match the return type of a gcc2
11909 builtin and then its argument prototype would still apply. */
11916 if { (eval echo configure:11917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11918 eval "ac_cv_lib_$ac_lib_var=yes"
11920 echo "configure: failed program was:" >&5
11921 cat conftest.$ac_ext >&5
11923 eval "ac_cv_lib_$ac_lib_var=no"
11928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11929 echo "$ac_t""yes" 1>&6
11930 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
11932 echo "$ac_t""no" 1>&6
11933 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
11934 echo " xemacs will be linked with \"termcap.o\""
11945 { test "$extra_verbose" = "yes" && cat << EOF
11946 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
11948 cat >> confdefs.h <<EOF
11949 #define CURSES_H_PATH "${curses_h_path-curses.h}"
11953 { test "$extra_verbose" = "yes" && cat << EOF
11954 Defining TERM_H_PATH = "${term_h_path-term.h}"
11956 cat >> confdefs.h <<EOF
11957 #define TERM_H_PATH "${term_h_path-term.h}"
11962 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11963 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11964 echo "configure:11965: checking for gpm.h" >&5
11966 cat > conftest.$ac_ext <<EOF
11967 #line 11968 "configure"
11968 #include "confdefs.h"
11971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11972 { (eval echo configure:11973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11974 if test -z "$ac_err"; then
11976 eval "ac_cv_header_$ac_safe=yes"
11979 echo "configure: failed program was:" >&5
11980 cat conftest.$ac_ext >&5
11982 eval "ac_cv_header_$ac_safe=no"
11985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11986 echo "$ac_t""yes" 1>&6
11989 echo "$ac_t""no" 1>&6
11993 test -z "$with_gpm" && {
11994 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11995 echo "configure:11996: checking for Gpm_Open in -lgpm" >&5
11996 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11998 xe_check_libs=" -lgpm "
11999 cat > conftest.$ac_ext <<EOF
12000 #line 12001 "configure"
12001 #include "confdefs.h"
12002 /* Override any gcc2 internal prototype to avoid an error. */
12003 /* We use char because int might match the return type of a gcc2
12004 builtin and then its argument prototype would still apply. */
12011 if { (eval echo configure:12012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12013 eval "ac_cv_lib_$ac_lib_var=yes"
12015 echo "configure: failed program was:" >&5
12016 cat conftest.$ac_ext >&5
12018 eval "ac_cv_lib_$ac_lib_var=no"
12023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12024 echo "$ac_t""yes" 1>&6
12027 echo "$ac_t""no" 1>&6
12032 if test "$with_gpm" = "yes"; then
12033 { test "$extra_verbose" = "yes" && cat << \EOF
12036 cat >> confdefs.h <<\EOF
12041 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
12042 echo " xemacs will be linked with \"gpmevent.o\""
12044 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
12047 else for feature in ncurses gpm; do
12048 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
12049 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
12051 eval "with_${feature}=no"
12054 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
12055 echo " xemacs will be linked with \"event-unixoid.o\""
12059 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
12060 != "no no no" && echo "checking for database support" 1>&6
12061 echo "configure:12062: checking for database support" >&5
12063 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
12064 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
12065 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
12066 echo "configure:12067: checking for ndbm.h" >&5
12068 cat > conftest.$ac_ext <<EOF
12069 #line 12070 "configure"
12070 #include "confdefs.h"
12073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12074 { (eval echo configure:12075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12076 if test -z "$ac_err"; then
12078 eval "ac_cv_header_$ac_safe=yes"
12081 echo "configure: failed program was:" >&5
12082 cat conftest.$ac_ext >&5
12084 eval "ac_cv_header_$ac_safe=no"
12087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12088 echo "$ac_t""yes" 1>&6
12091 echo "$ac_t""no" 1>&6
12093 test "$with_database_gdbm" = "yes" -o \
12094 "$with_database_dbm" = "yes" && \
12095 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
12096 with_database_gdbm=no with_database_dbm=no
12101 if test "$with_database_gdbm" != "no"; then
12103 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
12104 echo "configure:12105: checking for dbm_open in -lgdbm" >&5
12105 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
12107 xe_check_libs=" -lgdbm "
12108 cat > conftest.$ac_ext <<EOF
12109 #line 12110 "configure"
12110 #include "confdefs.h"
12111 /* Override any gcc2 internal prototype to avoid an error. */
12112 /* We use char because int might match the return type of a gcc2
12113 builtin and then its argument prototype would still apply. */
12120 if { (eval echo configure:12121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12122 eval "ac_cv_lib_$ac_lib_var=yes"
12124 echo "configure: failed program was:" >&5
12125 cat conftest.$ac_ext >&5
12127 eval "ac_cv_lib_$ac_lib_var=no"
12132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12133 echo "$ac_t""yes" 1>&6
12134 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
12136 echo "$ac_t""no" 1>&6
12137 if test "$with_database_gdbm" = "yes"; then
12138 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
12140 with_database_gdbm=no
12146 if test "$with_database_dbm" != "no"; then
12147 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12148 echo "configure:12149: checking for dbm_open" >&5
12150 cat > conftest.$ac_ext <<EOF
12151 #line 12152 "configure"
12152 #include "confdefs.h"
12153 /* System header to define __stub macros and hopefully few prototypes,
12154 which can conflict with char dbm_open(); below. */
12155 #include <assert.h>
12156 /* Override any gcc2 internal prototype to avoid an error. */
12157 /* We use char because int might match the return type of a gcc2
12158 builtin and then its argument prototype would still apply. */
12163 /* The GNU C library defines this for functions which it implements
12164 to always fail with ENOSYS. Some functions are actually named
12165 something starting with __ and the normal name is an alias. */
12166 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12174 if { (eval echo configure:12175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12176 eval "ac_cv_func_dbm_open=yes"
12178 echo "configure: failed program was:" >&5
12179 cat conftest.$ac_ext >&5
12181 eval "ac_cv_func_dbm_open=no"
12185 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12186 echo "$ac_t""yes" 1>&6
12187 with_database_dbm=yes libdbm=
12189 echo "$ac_t""no" 1>&6
12192 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12193 echo "configure:12194: checking for dbm_open in -ldbm" >&5
12194 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
12196 xe_check_libs=" -ldbm "
12197 cat > conftest.$ac_ext <<EOF
12198 #line 12199 "configure"
12199 #include "confdefs.h"
12200 /* Override any gcc2 internal prototype to avoid an error. */
12201 /* We use char because int might match the return type of a gcc2
12202 builtin and then its argument prototype would still apply. */
12209 if { (eval echo configure:12210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12211 eval "ac_cv_lib_$ac_lib_var=yes"
12213 echo "configure: failed program was:" >&5
12214 cat conftest.$ac_ext >&5
12216 eval "ac_cv_lib_$ac_lib_var=no"
12221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12222 echo "$ac_t""yes" 1>&6
12223 with_database_dbm=yes libdbm=-ldbm
12225 echo "$ac_t""no" 1>&6
12226 test "$with_database_dbm" = "yes" && \
12227 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
12228 with_database_dbm=no
12236 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
12237 test "$with_database_gdbm" = "yes" -o \
12238 "$with_database_dbm" = "yes" && \
12239 { test "$extra_verbose" = "yes" && cat << \EOF
12242 cat >> confdefs.h <<\EOF
12248 if test "$with_database_berkdb" != "no"; then
12249 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
12250 echo "configure:12251: checking for Berkeley db.h" >&5
12251 for path in "db/db.h" "db.h"; do
12252 cat > conftest.$ac_ext <<EOF
12253 #line 12254 "configure"
12254 #include "confdefs.h"
12255 #ifdef HAVE_INTTYPES_H
12256 #define __BIT_TYPES_DEFINED__
12257 #include <inttypes.h>
12258 typedef uint8_t u_int8_t;
12259 typedef uint16_t u_int16_t;
12260 typedef uint32_t u_int32_t;
12261 #ifdef WE_DONT_NEED_QUADS
12262 typedef uint64_t u_int64_t;
12271 if { (eval echo configure:12272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12273 db_h_path="$path"; break
12275 echo "configure: failed program was:" >&5
12276 cat conftest.$ac_ext >&5
12280 if test -z "$db_h_path"
12281 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
12282 else echo "$ac_t""$db_h_path" 1>&6
12285 if test "$with_database_berkdb" != "no"; then
12286 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
12287 echo "configure:12288: checking for Berkeley DB version" >&5
12288 cat > conftest.$ac_ext <<EOF
12289 #line 12290 "configure"
12290 #include "confdefs.h"
12291 #include <$db_h_path>
12292 #if DB_VERSION_MAJOR > 1
12297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12298 egrep "yes" >/dev/null 2>&1; then
12300 echo "$ac_t""2" 1>&6; dbfunc=db_open
12303 echo "$ac_t""1" 1>&6; dbfunc=dbopen
12307 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
12308 echo "configure:12309: checking for $dbfunc" >&5
12310 cat > conftest.$ac_ext <<EOF
12311 #line 12312 "configure"
12312 #include "confdefs.h"
12313 /* System header to define __stub macros and hopefully few prototypes,
12314 which can conflict with char $dbfunc(); below. */
12315 #include <assert.h>
12316 /* Override any gcc2 internal prototype to avoid an error. */
12317 /* We use char because int might match the return type of a gcc2
12318 builtin and then its argument prototype would still apply. */
12323 /* The GNU C library defines this for functions which it implements
12324 to always fail with ENOSYS. Some functions are actually named
12325 something starting with __ and the normal name is an alias. */
12326 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
12334 if { (eval echo configure:12335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12336 eval "ac_cv_func_$dbfunc=yes"
12338 echo "configure: failed program was:" >&5
12339 cat conftest.$ac_ext >&5
12341 eval "ac_cv_func_$dbfunc=no"
12345 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
12346 echo "$ac_t""yes" 1>&6
12347 with_database_berkdb=yes need_libdb=no
12349 echo "$ac_t""no" 1>&6
12352 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
12353 echo "configure:12354: checking for $dbfunc in -ldb" >&5
12354 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
12356 xe_check_libs=" -ldb "
12357 cat > conftest.$ac_ext <<EOF
12358 #line 12359 "configure"
12359 #include "confdefs.h"
12360 /* Override any gcc2 internal prototype to avoid an error. */
12361 /* We use char because int might match the return type of a gcc2
12362 builtin and then its argument prototype would still apply. */
12369 if { (eval echo configure:12370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12371 eval "ac_cv_lib_$ac_lib_var=yes"
12373 echo "configure: failed program was:" >&5
12374 cat conftest.$ac_ext >&5
12376 eval "ac_cv_lib_$ac_lib_var=no"
12381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12382 echo "$ac_t""yes" 1>&6
12383 with_database_berkdb=yes need_libdb=yes
12385 echo "$ac_t""no" 1>&6
12393 if test "$with_database_berkdb" = "yes"; then
12394 { test "$extra_verbose" = "yes" && cat << EOF
12395 Defining DB_H_PATH = "$db_h_path"
12397 cat >> confdefs.h <<EOF
12398 #define DB_H_PATH "$db_h_path"
12402 { test "$extra_verbose" = "yes" && cat << \EOF
12403 Defining HAVE_BERKELEY_DB
12405 cat >> confdefs.h <<\EOF
12406 #define HAVE_BERKELEY_DB 1
12410 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
12411 else with_database_berkdb=no
12415 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
12416 != "no no no"; then
12417 { test "$extra_verbose" = "yes" && cat << \EOF
12418 Defining HAVE_DATABASE
12420 cat >> confdefs.h <<\EOF
12421 #define HAVE_DATABASE 1
12425 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
12426 echo " xemacs will be linked with \"database.o\""
12430 if test "$with_socks" = "yes"; then
12432 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
12433 echo "configure:12434: checking for SOCKSinit in -lsocks" >&5
12434 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
12436 xe_check_libs=" -lsocks "
12437 cat > conftest.$ac_ext <<EOF
12438 #line 12439 "configure"
12439 #include "confdefs.h"
12440 /* Override any gcc2 internal prototype to avoid an error. */
12441 /* We use char because int might match the return type of a gcc2
12442 builtin and then its argument prototype would still apply. */
12449 if { (eval echo configure:12450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12451 eval "ac_cv_lib_$ac_lib_var=yes"
12453 echo "configure: failed program was:" >&5
12454 cat conftest.$ac_ext >&5
12456 eval "ac_cv_lib_$ac_lib_var=no"
12461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12462 echo "$ac_t""yes" 1>&6
12463 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12464 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12465 { test "$extra_verbose" = "yes" && cat << EOF
12466 Defining $ac_tr_lib
12468 cat >> confdefs.h <<EOF
12469 #define $ac_tr_lib 1
12473 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
12476 echo "$ac_t""no" 1>&6
12480 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
12481 Defining HAVE_SOCKS
12483 cat >> confdefs.h <<\EOF
12484 #define HAVE_SOCKS 1
12490 if test "$usage_tracking" = "yes"; then
12491 { test "$extra_verbose" = "yes" && cat << \EOF
12492 Defining USAGE_TRACKING
12494 cat >> confdefs.h <<\EOF
12495 #define USAGE_TRACKING 1
12499 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
12502 if test "$with_modules" != "no"; then
12503 echo "checking for module support" 1>&6
12504 echo "configure:12505: checking for module support" >&5
12506 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
12507 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
12508 echo "configure:12509: checking for dlfcn.h" >&5
12510 cat > conftest.$ac_ext <<EOF
12511 #line 12512 "configure"
12512 #include "confdefs.h"
12515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12516 { (eval echo configure:12517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12518 if test -z "$ac_err"; then
12520 eval "ac_cv_header_$ac_safe=yes"
12523 echo "configure: failed program was:" >&5
12524 cat conftest.$ac_ext >&5
12526 eval "ac_cv_header_$ac_safe=no"
12529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12530 echo "$ac_t""yes" 1>&6
12533 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12534 echo "configure:12535: checking for dlopen in -ldl" >&5
12535 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12537 xe_check_libs=" -ldl "
12538 cat > conftest.$ac_ext <<EOF
12539 #line 12540 "configure"
12540 #include "confdefs.h"
12541 /* Override any gcc2 internal prototype to avoid an error. */
12542 /* We use char because int might match the return type of a gcc2
12543 builtin and then its argument prototype would still apply. */
12550 if { (eval echo configure:12551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12552 eval "ac_cv_lib_$ac_lib_var=yes"
12554 echo "configure: failed program was:" >&5
12555 cat conftest.$ac_ext >&5
12557 eval "ac_cv_lib_$ac_lib_var=no"
12562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12563 echo "$ac_t""yes" 1>&6
12564 have_dl=yes libdl=dl
12566 echo "$ac_t""no" 1>&6
12568 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
12569 echo "configure:12570: checking for dlopen in -lc" >&5
12570 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
12572 xe_check_libs=" -lc "
12573 cat > conftest.$ac_ext <<EOF
12574 #line 12575 "configure"
12575 #include "confdefs.h"
12576 /* Override any gcc2 internal prototype to avoid an error. */
12577 /* We use char because int might match the return type of a gcc2
12578 builtin and then its argument prototype would still apply. */
12585 if { (eval echo configure:12586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12587 eval "ac_cv_lib_$ac_lib_var=yes"
12589 echo "configure: failed program was:" >&5
12590 cat conftest.$ac_ext >&5
12592 eval "ac_cv_lib_$ac_lib_var=no"
12597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12598 echo "$ac_t""yes" 1>&6
12601 echo "$ac_t""no" 1>&6
12609 echo "$ac_t""no" 1>&6
12612 if test -n "$have_dl"; then
12613 { test "$extra_verbose" = "yes" && cat << \EOF
12614 Defining HAVE_DLOPEN
12616 cat >> confdefs.h <<\EOF
12617 #define HAVE_DLOPEN 1
12623 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
12624 echo "configure:12625: checking for shl_load in -ldld" >&5
12625 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
12627 xe_check_libs=" -ldld "
12628 cat > conftest.$ac_ext <<EOF
12629 #line 12630 "configure"
12630 #include "confdefs.h"
12631 /* Override any gcc2 internal prototype to avoid an error. */
12632 /* We use char because int might match the return type of a gcc2
12633 builtin and then its argument prototype would still apply. */
12640 if { (eval echo configure:12641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12642 eval "ac_cv_lib_$ac_lib_var=yes"
12644 echo "configure: failed program was:" >&5
12645 cat conftest.$ac_ext >&5
12647 eval "ac_cv_lib_$ac_lib_var=no"
12652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12653 echo "$ac_t""yes" 1>&6
12654 libdl=dld have_dl=yes;
12655 { test "$extra_verbose" = "yes" && cat << \EOF
12656 Defining HAVE_SHL_LOAD
12658 cat >> confdefs.h <<\EOF
12659 #define HAVE_SHL_LOAD 1
12664 echo "$ac_t""no" 1>&6
12666 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
12667 echo "configure:12668: checking for dld_init in -ldld" >&5
12668 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
12670 xe_check_libs=" -ldld "
12671 cat > conftest.$ac_ext <<EOF
12672 #line 12673 "configure"
12673 #include "confdefs.h"
12674 /* Override any gcc2 internal prototype to avoid an error. */
12675 /* We use char because int might match the return type of a gcc2
12676 builtin and then its argument prototype would still apply. */
12683 if { (eval echo configure:12684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12685 eval "ac_cv_lib_$ac_lib_var=yes"
12687 echo "configure: failed program was:" >&5
12688 cat conftest.$ac_ext >&5
12690 eval "ac_cv_lib_$ac_lib_var=no"
12695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12696 echo "$ac_t""yes" 1>&6
12697 libdl=dld have_dl=yes;
12698 { test "$extra_verbose" = "yes" && cat << \EOF
12699 Defining HAVE_DLD_INIT
12701 cat >> confdefs.h <<\EOF
12702 #define HAVE_DLD_INIT 1
12707 echo "$ac_t""no" 1>&6
12716 if test -n "$have_dl"; then
12723 ld_dynamic_link_flags=
12725 xealias=$internal_configuration
12727 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
12728 echo "configure:12729: checking how to build dynamic libraries for ${xehost}" >&5
12729 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
12732 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
12735 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
12736 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
12737 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
12739 case "$xehost_os" in
12741 # AIX sometimes has problems with the GCC collect2 program. For some
12742 # reason, if we set the COLLECT_NAMES environment variable, the problems
12743 # vanish in a puff of smoke.
12744 if test "${COLLECT_NAMES+set}" != set; then
12746 export COLLECT_NAMES
12751 # Now see if the compiler is really GCC.
12752 if test "$GCC" = "yes"; then
12755 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
12756 echo "configure:12757: checking checking whether we are using GNU C" >&5
12757 cat > conftest.$ac_ext <<EOF
12758 #line 12759 "configure"
12759 #include "confdefs.h"
12766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12767 egrep "yes" >/dev/null 2>&1; then
12776 echo "$ac_t""${XEGCC}" 1>&6
12779 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12780 echo "configure:12781: checking how to produce PIC code" >&5
12783 can_build_shared=yes
12784 if test "$XEGCC" = yes; then
12787 case "$xehost_os" in
12788 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
12789 # PIC is the default for these OSes.
12793 # We can build DLLs from non-PIC.
12796 # FIXME: we need at least 68020 code to build shared libraries, but
12797 # adding the `-m68020' flag to GCC prevents building anything better,
12799 dll_cflags='-m68020 -resident32 -malways-restore-a4'
12806 # PORTME Check for PIC flags for the system compiler.
12807 case "$xehost_os" in
12808 hpux9* | hpux1[0-9]*)
12809 # Is there a better link_static_flag that works with the bundled CC?
12816 # PIC (with -KPIC) is the default.
12820 # We can build DLLs from non-PIC.
12824 # All OSF/1 code is PIC.
12829 dll_cflags='-belf -Kpic'
12863 can_build_shared=no
12868 if test -n "$dll_cflags"; then
12869 echo "$ac_t""${dll_cflags}" 1>&6
12871 # Check to make sure the dll_cflags actually works.
12872 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12873 echo "configure:12874: checking if PIC flag ${dll_cflags} really works" >&5
12874 save_CFLAGS="$CFLAGS"
12875 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12876 cat > conftest.$ac_ext <<EOF
12877 #line 12878 "configure"
12878 #include "confdefs.h"
12884 if { (eval echo configure:12885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12887 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12888 # reports no error. So, we need to grep stderr for (Bundled).
12889 if grep '(Bundled)' config.log >/dev/null; then
12890 echo "$ac_t""no" 1>&6
12891 can_build_shared=no
12894 echo "$ac_t""yes" 1>&6
12897 echo "configure: failed program was:" >&5
12898 cat conftest.$ac_ext >&5
12900 echo "$ac_t""no" 1>&6
12901 can_build_shared=no
12905 CFLAGS="$save_CFLAGS"
12907 echo "$ac_t""none" 1>&6
12910 if test "$can_build_shared" = "yes"; then
12914 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12915 echo "configure:12916: checking if C compiler can produce shared libraries" >&5
12916 if test "$XEGCC" = yes; then
12919 else # Not using GCC
12920 case "$xehost_os" in
12922 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
12923 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
12926 freebsd2* | netbsd* | openbsd*)
12928 xcldf="${wl}-Bshareable"
12937 xcldf="${wl}-b ${wl}+s"
12940 irix5* | irix6* | osf3* | osf4*)
12941 xcldf="${wl}-shared"
12945 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
12951 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
12952 xldf="-assert pure-text -Bstatic"
12955 fi # End if if we are using gcc
12957 if test -n "$xcldf"; then
12958 save_LDFLAGS=$LDFLAGS
12960 save_xe_libs=$xe_libs
12961 LDFLAGS="$xcldf $LDFLAGS"
12964 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12965 cat > conftest.$ac_ext <<EOF
12966 #line 12967 "configure"
12967 #include "confdefs.h"
12973 if { (eval echo configure:12974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12977 echo "configure: failed program was:" >&5
12978 cat conftest.$ac_ext >&5
12983 LDFLAGS=$save_LDFLAGS
12985 xe_libs=$save_xe_libs
12986 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12990 echo "$ac_t""${cc_produces_so}" 1>&6
12993 if test -z "$LTLD"; then
12995 if test "$XEGCC" = yes; then
12996 # Check if gcc -print-prog-name=ld gives a path.
12997 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12998 echo "configure:12999: checking for ld used by GCC" >&5
12999 ac_prog=`($CC -print-prog-name=ld) 2>&5`
13001 # Accept absolute paths.
13003 if test -z "$LTLD"; then
13005 *gcc-lib*) LTLD="$CC"
13013 # If it fails, then pretend we aren't using GCC.
13017 # If it is relative, then search for the first ld in PATH.
13018 with_gnu_ld=unknown
13022 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
13023 echo "configure:13024: checking for GNU ld" >&5
13026 if test -z "$LTLD"; then
13027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13028 for ac_dir in $PATH; do
13029 test -z "$ac_dir" && ac_dir=.
13030 if test -f "$ac_dir/$ac_prog"; then
13031 LTLD="$ac_dir/$ac_prog"
13032 # Check to see if the program is GNU ld. I'd rather use --version,
13033 # but apparently some GNU ld's only accept -v.
13034 # Break only if it was the GNU/non-GNU ld that we prefer.
13035 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13045 if test -n "$LTLD"; then
13046 echo "$ac_t""${LTLD}" 1>&6
13048 echo "$ac_t""no" 1>&6
13051 if test -z "$LTLD" -a "$cc_produces_so" = no; then
13052 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
13057 ld_dynamic_link_flags=
13059 # Check to see if it really is or isn't GNU ld.
13060 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
13061 echo "configure:13062: checking if the linker is GNU ld" >&5
13062 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13063 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13068 echo "$ac_t""${xe_gnu_ld}" 1>&6
13070 case "$xehost_os" in
13071 amigaos* | sunos4*)
13072 # On these operating systems, we should treat GNU ld like the system ld.
13073 gnu_ld_acts_native=yes
13076 gnu_ld_acts_native=no
13080 if test "$cc_produces_so" = "yes"; then
13083 can_build_shared=yes
13085 # OK - only NOW do we futz about with ld.
13086 # See if the linker supports building shared libraries.
13087 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
13088 echo "configure:13089: checking whether the linker supports shared libraries" >&5
13090 dll_ldflags=$LDFLAGS
13092 can_build_shared=yes
13093 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
13094 # See if GNU ld supports shared libraries.
13095 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13097 dll_ldflags="-shared"
13103 # PORTME fill in a description of your system's linker (not GNU ld)
13104 case "$xehost_os" in
13114 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13115 # support. Future versions do this automatically, but an explicit c++rt0.o
13116 # doesn't break anything, and helps significantly (at the cost of a little
13121 dll_post="/usr/lib/c++rt0.o"
13124 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
13127 dll_ldflags="-Bshareable"
13130 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
13132 dll_ldflags="-shared"
13146 # Tested with NetBSD 1.2 ld
13161 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
13162 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
13165 *gcc*) dll_ldflags="-shared"
13168 *) dll_ldflags="-G"
13174 if test "$XEGCC" = yes; then
13194 can_build_shared=no
13198 echo "$ac_t""${ld_shlibs}" 1>&6
13199 if test "$ld_shlibs" = "no"; then
13200 can_build_shared=no
13202 fi # End of if cc_produces_so = no
13205 if test "$xe_gnu_ld" = yes; then
13206 if test "$ld_shlibs" = yes; then
13207 ld_dynamic_link_flags="${wl}-export-dynamic"
13211 if test -z "$ld_dynamic_link_flags"; then
13212 case "$xehost_os" in
13214 ld_dynamic_link_flags=
13218 ld_dynamic_link_flags=
13222 ld_dynamic_link_flags=
13226 ld_dynamic_link_flags=
13230 ld_dynamic_link_flags=
13234 ld_dynamic_link_flags="${wl}-E"
13238 ld_dynamic_link_flags=
13242 ld_dynamic_link_flags=
13246 ld_dynamic_link_flags=
13250 ld_dynamic_link_flags=
13253 solaris2* | solaris7*)
13254 ld_dynamic_link_flags=
13257 sco3.2v5* | unixware* | sysv5* | sysv4*)
13258 ld_dynamic_link_flags="${wl}-Bexport"
13262 ld_dynamic_link_flags=
13266 ld_dynamic_link_flags=
13270 ld_dynamic_link_flags=
13274 fi # End of if -z ld_dynamic_link_flags
13275 fi # End of if test "$can_build_shared" = "yes"
13286 if test "$can_build_shared" = "yes"; then
13287 { test "$extra_verbose" = "yes" && cat << \EOF
13288 Defining HAVE_SHLIB
13290 cat >> confdefs.h <<\EOF
13291 #define HAVE_SHLIB 1
13295 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
13296 echo " xemacs will be linked with \"sysdll.o emodules.o\""
13298 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
13299 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
13300 for ac_func in dlerror _dlerror
13302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13303 echo "configure:13304: checking for $ac_func" >&5
13305 cat > conftest.$ac_ext <<EOF
13306 #line 13307 "configure"
13307 #include "confdefs.h"
13308 /* System header to define __stub macros and hopefully few prototypes,
13309 which can conflict with char $ac_func(); below. */
13310 #include <assert.h>
13311 /* Override any gcc2 internal prototype to avoid an error. */
13312 /* We use char because int might match the return type of a gcc2
13313 builtin and then its argument prototype would still apply. */
13318 /* The GNU C library defines this for functions which it implements
13319 to always fail with ENOSYS. Some functions are actually named
13320 something starting with __ and the normal name is an alias. */
13321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13329 if { (eval echo configure:13330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13331 eval "ac_cv_func_$ac_func=yes"
13333 echo "configure: failed program was:" >&5
13334 cat conftest.$ac_ext >&5
13336 eval "ac_cv_func_$ac_func=no"
13340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13341 echo "$ac_t""yes" 1>&6
13342 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13343 { test "$extra_verbose" = "yes" && cat << EOF
13344 Defining $ac_tr_func
13346 cat >> confdefs.h <<EOF
13347 #define $ac_tr_func 1
13352 echo "$ac_t""no" 1>&6
13358 if test "$with_modules" = "yes"; then
13359 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
13361 echo "configure: warning: "Module support cannot be provided."" 1>&2
13367 cat > conftest.$ac_ext <<EOF
13368 #line 13369 "configure"
13369 #include "confdefs.h"
13370 int main(int c,char *v[]){return 0;}
13372 if { (eval echo configure:13373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13377 echo "configure: failed program was:" >&5
13378 cat conftest.$ac_ext >&5
13382 echo "*** PANIC *** The C compiler can no longer build working executables."
13383 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
13384 echo "*** PANIC *** The most likely reason for this problem is that configure"
13385 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
13386 echo "*** PANIC *** found at run time."
13387 echo "*** PANIC ***"
13388 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
13389 echo "*** PANIC *** On other systems, try telling configure where to find the"
13390 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
13391 echo "*** PANIC ***"
13392 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
13393 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
13394 echo "*** PANIC *** on your system. Don't do that."
13399 if test "$win32_processes" = "yes"; then
13400 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
13401 echo " xemacs will be linked with \"process-nt.o\""
13404 { test "$extra_verbose" = "yes" && cat << \EOF
13405 Defining HAVE_UNIX_PROCESSES
13407 cat >> confdefs.h <<\EOF
13408 #define HAVE_UNIX_PROCESSES 1
13412 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
13413 echo " xemacs will be linked with \"process-unix.o\""
13420 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13425 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13430 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
13431 c_switch_general="$T"
13435 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13436 c_switch_window_system="$T"
13440 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13445 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
13446 ld_switch_general="$T"
13450 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13451 ld_switch_window_system="$T"
13455 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13460 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13461 ld_libs_general="$T"
13465 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
13466 ld_libs_window_system="$T"
13470 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13475 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
13476 internal_makefile_list="Makefile.in"
13477 SUBDIR_MAKEFILES=''
13478 test -d lock || mkdir lock
13479 for dir in $MAKE_SUBDIR; do
13480 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
13481 test -d "$d" || mkdir "$d"; cd "$d"
13483 * ) test -d "$dir" || mkdir "$dir" ;;
13487 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13488 SUBDIR_MAKEFILES="$T"
13492 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13493 internal_makefile_list="$T"
13500 for dir in src/s src/m; do
13501 if test ! -d "$dir" ; then
13502 echo Making symbolic link to "$srcdir/$dir"
13503 ${LN_S} "$srcdir/$dir" "$dir"
13507 if test "$extra_verbose" = "yes"; then
13509 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
13514 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
13515 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
13516 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
13519 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
13520 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
13521 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
13524 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
13525 test "$extra_verbose" = "yes" && echo "creating TAGS"
13527 $srcdir/TAGS,include" > "TAGS"
13530 if test "$__SUNPRO_C" = "yes"; then
13531 test "$extra_verbose" = "yes" && echo "creating .sbinit"
13532 ( echo "# For use with Sun WorkShop's Source browser."
13533 echo "# See sbquery(1) and sbinit(4) for more information"
13534 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
13561 *\$* ) eval "PREFIX=$PREFIX" ;;
13569 EXEC_PREFIX=$exec_prefix
13571 case "$EXEC_PREFIX" in
13572 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
13583 *\$* ) eval "INFODIR=$INFODIR" ;;
13593 case "$INFOPATH" in
13594 *\$* ) eval "INFOPATH=$INFOPATH" ;;
13602 PACKAGE_PATH=$package_path
13604 case "$PACKAGE_PATH" in
13605 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
13616 *\$* ) eval "LISPDIR=$LISPDIR" ;;
13624 MODULEDIR=$moduledir
13626 case "$MODULEDIR" in
13627 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
13635 SITELISPDIR=$sitelispdir
13637 case "$SITELISPDIR" in
13638 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
13646 SITEMODULEDIR=$sitemoduledir
13648 case "$SITEMODULEDIR" in
13649 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
13660 *\$* ) eval "ETCDIR=$ETCDIR" ;;
13671 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
13682 *\$* ) eval "DOCDIR=$DOCDIR" ;;
13690 ARCHLIBDIR=$archlibdir
13692 case "$ARCHLIBDIR" in
13693 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
13717 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
13725 : ${XEMACS_CC:=$CC}
13728 if test "$with_prefix" = "yes"; then
13729 { test "$extra_verbose" = "yes" && cat << \EOF
13730 Defining PREFIX_USER_DEFINED
13732 cat >> confdefs.h <<\EOF
13733 #define PREFIX_USER_DEFINED 1
13739 if test "$with_site_lisp" = "no"; then
13740 { test "$extra_verbose" = "yes" && cat << \EOF
13741 Defining INHIBIT_SITE_LISP
13743 cat >> confdefs.h <<\EOF
13744 #define INHIBIT_SITE_LISP 1
13749 if test "$with_site_modules" = "no"; then
13750 { test "$extra_verbose" = "yes" && cat << \EOF
13751 Defining INHIBIT_SITE_MODULES
13753 cat >> confdefs.h <<\EOF
13754 #define INHIBIT_SITE_MODULES 1
13762 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13763 ac_configure_args="$T"
13765 { test "$extra_verbose" = "yes" && cat << EOF
13766 Defining EMACS_CONFIGURATION = "$configuration"
13768 cat >> confdefs.h <<EOF
13769 #define EMACS_CONFIGURATION "$configuration"
13773 { test "$extra_verbose" = "yes" && cat << EOF
13774 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
13776 cat >> confdefs.h <<EOF
13777 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
13781 { test "$extra_verbose" = "yes" && cat << EOF
13782 Defining config_machfile = "$machfile"
13784 cat >> confdefs.h <<EOF
13785 #define config_machfile "$machfile"
13789 { test "$extra_verbose" = "yes" && cat << EOF
13790 Defining config_opsysfile = "$opsysfile"
13792 cat >> confdefs.h <<EOF
13793 #define config_opsysfile "$opsysfile"
13800 { test "$extra_verbose" = "yes" && cat << EOF
13801 Defining LD_SWITCH_X_SITE = $null_string
13803 cat >> confdefs.h <<EOF
13804 #define LD_SWITCH_X_SITE $null_string
13808 { test "$extra_verbose" = "yes" && cat << EOF
13809 Defining LD_SWITCH_X_SITE_AUX = $null_string
13811 cat >> confdefs.h <<EOF
13812 #define LD_SWITCH_X_SITE_AUX $null_string
13816 { test "$extra_verbose" = "yes" && cat << EOF
13817 Defining C_SWITCH_X_SITE = $null_string
13819 cat >> confdefs.h <<EOF
13820 #define C_SWITCH_X_SITE $null_string
13824 { test "$extra_verbose" = "yes" && cat << EOF
13825 Defining LD_SWITCH_SITE = $null_string
13827 cat >> confdefs.h <<EOF
13828 #define LD_SWITCH_SITE $null_string
13832 { test "$extra_verbose" = "yes" && cat << EOF
13833 Defining C_SWITCH_SITE = $null_string
13835 cat >> confdefs.h <<EOF
13836 #define C_SWITCH_SITE $null_string
13842 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13843 Defining GNU_MALLOC
13845 cat >> confdefs.h <<\EOF
13846 #define GNU_MALLOC 1
13850 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13851 Defining USE_SYSTEM_MALLOC
13853 cat >> confdefs.h <<\EOF
13854 #define USE_SYSTEM_MALLOC 1
13858 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13859 Defining USE_DEBUG_MALLOC
13861 cat >> confdefs.h <<\EOF
13862 #define USE_DEBUG_MALLOC 1
13866 { test "$extra_verbose" = "yes" && cat << \EOF
13867 Defining USE_SYSTEM_MALLOC
13869 cat >> confdefs.h <<\EOF
13870 #define USE_SYSTEM_MALLOC 1
13875 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13878 cat >> confdefs.h <<\EOF
13883 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13886 cat >> confdefs.h <<\EOF
13891 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13892 Defining EXTERNAL_WIDGET
13894 cat >> confdefs.h <<\EOF
13895 #define EXTERNAL_WIDGET 1
13899 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13900 Defining NO_DOC_FILE
13902 cat >> confdefs.h <<\EOF
13903 #define NO_DOC_FILE 1
13907 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13910 cat >> confdefs.h <<\EOF
13915 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13918 cat >> confdefs.h <<\EOF
13923 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13924 Defining MAIL_USE_POP
13926 cat >> confdefs.h <<\EOF
13927 #define MAIL_USE_POP 1
13931 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13934 cat >> confdefs.h <<\EOF
13939 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13942 cat >> confdefs.h <<\EOF
13947 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13948 Defining USE_UNION_TYPE
13950 cat >> confdefs.h <<\EOF
13951 #define USE_UNION_TYPE 1
13955 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13958 cat >> confdefs.h <<\EOF
13966 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
13968 echo "uname -a: `uname -a`"
13971 echo "$0 $quoted_arguments"
13974 if test ! -z ${emacs_beta_version} ; then
13975 if test -z "${emacs_is_beta}" ; then
13976 xemacs_betaname=".${emacs_beta_version}"
13978 xemacs_betaname="-b${emacs_beta_version}"
13987 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13989 Where should the build process find the source code? $srcdir
13990 What installation prefix should install use? $prefix
13991 What operating system and machine description files should XEmacs use?
13992 \`$opsysfile' and \`$machfile'
13993 What compiler should XEmacs be built with? $CC $CFLAGS
13994 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13995 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13996 What window system should XEmacs use? ${window_system}"
13997 if test "$with_x11" = "yes"; then
13998 echo " Where do we find X Windows header files? $x_includes"
13999 echo " Where do we find X Windows libraries? $x_libraries"
14001 if test -n "$site_includes"; then
14002 echo " Additional header files: $site_includes"
14004 if test -n "$site_libraries"; then
14005 echo " Additional libraries: $site_libraries"
14007 if test -n "$site_prefixes"; then
14008 echo " Additional prefixes: $site_prefixes"
14010 if test -n "$runpath"; then
14011 echo " Runtime library search path: $runpath"
14013 if test "$have_xaw" = "yes"; then
14014 echo " Athena library to link: $athena_lib"
14015 echo " Athena header include path: $athena_h_path"
14017 test "$with_dnet" = yes && echo " Compiling in support for DNET."
14018 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
14019 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
14020 if test "$with_xmu" != yes -a "$with_x11" = yes; then
14021 echo " No Xmu; substituting equivalent routines."
14024 if test "$with_xpm" = yes; then
14025 echo " Compiling in support for XPM images."
14026 elif test "$with_x11" = yes; then
14027 echo " --------------------------------------------------------------------"
14028 echo " WARNING: Compiling without XPM support."
14029 if test "$xpm_problem" != ""; then
14030 echo " Reason: $xpm_problem"
14032 echo " WARNING: You should strongly consider installing XPM."
14033 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
14034 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
14035 echo " --------------------------------------------------------------------"
14037 if test "$with_png" = yes; then
14038 echo " Compiling in support for PNG image handling."
14039 elif test "$window_system" != "none"; then
14040 echo " --------------------------------------------------------------------"
14041 echo " WARNING: Compiling without PNG image support."
14042 if test "$png_problem" != ""; then
14043 echo " Reason: $png_problem"
14045 echo " WARNING: You should strongly consider installing the PNG libraries."
14046 echo " WARNING: Otherwise certain images and glyphs may not display."
14047 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
14048 echo " --------------------------------------------------------------------"
14050 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
14051 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
14052 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
14053 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
14055 test "$with_native_sound" = yes && echo " Compiling in native sound support."
14056 test "$with_nas_sound" = yes && echo " Compiling in network sound (NAS) support."
14057 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
14058 test "$with_esd_sound" = yes && echo " Compiling in support for Enlightened Sound Daemon (ESD)."
14060 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
14061 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
14062 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
14064 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
14066 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
14067 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
14069 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
14070 test "$with_utf_2000" = yes && echo " Using UTF-2000 (UTF-8) buffer/string representation."
14071 test "$with_text_coding" = yes && echo " Compiling in Text coding support."
14072 test "$with_file_coding" = yes && echo " Compiling in File coding support."
14073 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
14074 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
14075 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
14076 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
14077 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
14078 if test "$with_wnn" = yes; then
14079 echo " Compiling in support for the WNN input method on Mule."
14080 test "$with_wnn6" = yes && echo " Using WNN version 6."
14082 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
14084 test "$with_cde" = yes && echo " Compiling in support for CDE."
14085 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
14086 test "$with_offix" = yes && echo " Compiling in support for OffiX."
14087 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
14088 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
14089 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
14090 case "$with_menubars" in
14091 lucid ) echo " Using Lucid menubars." ;;
14092 motif ) echo " Using Motif menubars."
14093 echo " *WARNING* The Motif menubar implementation is currently buggy."
14094 echo " We recommend using the Lucid menubar instead."
14095 echo " Re-run configure with --with-menubars='lucid'." ;;
14096 msw ) echo " Using MS-Windows menubars." ;;
14098 case "$with_scrollbars" in
14099 lucid ) echo " Using Lucid scrollbars." ;;
14100 motif ) echo " Using Motif scrollbars." ;;
14101 athena ) echo " Using Athena scrollbars." ;;
14102 msw ) echo " Using MS-Windows scrollbars." ;;
14104 case "$with_widgets" in
14105 motif ) echo " Using Motif native widgets." ;;
14106 athena ) echo " Using Athena native widgets." ;;
14107 msw ) echo " Using MS-Windows native widgets." ;;
14109 case "$with_dialogs" in
14111 echo " Using Motif dialog boxes."
14112 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
14113 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
14114 echo " We recommend using the Athena dialog boxes instead."
14115 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
14116 echo " Read the PROBLEMS file for more information."
14119 athena ) echo " Using Athena dialog boxes." ;;
14120 msw ) echo " Using MS-Windows dialog boxes." ;;
14122 test "$with_modules" = "yes" && echo " Compiling in dynamic shared object module support."
14123 test "$with_clash_detection" = yes && \
14124 echo " Clash detection will use \"$lockdir\" for locking files."
14125 echo " movemail will use \"$mail_locking\" for locking mail spool files."
14126 test "$with_pop" = yes && echo " Using POP for mail access."
14127 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
14128 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
14129 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
14130 test "$pdump" = yes && echo " Using the new portable dumper (wishful thinking)."
14131 test "$debug" = yes && echo " Compiling in extra code for debugging."
14132 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
14133 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
14134 != "no no no no no"; then
14135 echo " WARNING: ---------------------------------------------------------"
14136 echo " WARNING: Compiling in support for runtime error checking."
14137 echo " WARNING: XEmacs will run noticeably more slowly as a result."
14138 echo " WARNING: Error checking is on by default for XEmacs beta releases."
14139 echo " WARNING: ---------------------------------------------------------"
14142 ) | tee -a Installation
14146 # Remove any trailing slashes in these variables.
14147 test -n "$prefix" &&
14148 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
14149 test -n "$exec_prefix" &&
14150 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
14153 for file in $internal_makefile_list; do
14154 test "$file" = src/Makefile.in && \
14155 file="src/Makefile.in:src/Makefile.in.in:src/depend"
14156 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
14158 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
14159 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
14163 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14165 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14166 # Let make expand exec_prefix.
14167 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14169 # Any assignment to VPATH causes Sun make to only execute
14170 # the first set of double-colon rules, so remove it if not needed.
14171 # If there is a colon in the path, we need to keep it.
14172 if test "x$srcdir" = x.; then
14173 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14176 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14178 DEFS=-DHAVE_CONFIG_H
14180 # Without the "./", some shells look in PATH for config.status.
14181 : ${CONFIG_STATUS=./config.status}
14183 echo creating $CONFIG_STATUS
14184 rm -f $CONFIG_STATUS
14185 cat > $CONFIG_STATUS <<EOF
14187 # Generated automatically by configure.
14188 # Run this file to recreate the current configuration.
14189 # This directory was configured as follows,
14190 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14192 # $0 $ac_configure_args
14194 # Compiler output produced by configure, useful for debugging
14195 # configure, is in ./config.log if it exists.
14197 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14200 case "\$ac_option" in
14201 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14202 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14203 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14204 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14205 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14207 -help | --help | --hel | --he | --h)
14208 echo "\$ac_cs_usage"; exit 0 ;;
14209 *) echo "\$ac_cs_usage"; exit 1 ;;
14213 ac_given_srcdir=$srcdir
14214 ac_given_INSTALL="$INSTALL"
14216 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14218 cat >> $CONFIG_STATUS <<EOF
14220 # Protect against being on the right side of a sed subst in config.status.
14221 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14222 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14226 s%@CFLAGS@%$CFLAGS%g
14227 s%@CPPFLAGS@%$CPPFLAGS%g
14228 s%@CXXFLAGS@%$CXXFLAGS%g
14229 s%@FFLAGS@%$FFLAGS%g
14231 s%@LDFLAGS@%$LDFLAGS%g
14233 s%@exec_prefix@%$exec_prefix%g
14234 s%@prefix@%$prefix%g
14235 s%@program_transform_name@%$program_transform_name%g
14236 s%@bindir@%$bindir%g
14237 s%@sbindir@%$sbindir%g
14238 s%@libexecdir@%$libexecdir%g
14239 s%@datadir@%$datadir%g
14240 s%@sysconfdir@%$sysconfdir%g
14241 s%@sharedstatedir@%$sharedstatedir%g
14242 s%@localstatedir@%$localstatedir%g
14243 s%@libdir@%$libdir%g
14244 s%@includedir@%$includedir%g
14245 s%@oldincludedir@%$oldincludedir%g
14246 s%@infodir@%$infodir%g
14247 s%@mandir@%$mandir%g
14249 s%@blddir@%$blddir%g
14252 s%@start_flags@%$start_flags%g
14253 s%@ld_switch_shared@%$ld_switch_shared%g
14254 s%@start_files@%$start_files%g
14256 s%@lib_gcc@%$lib_gcc%g
14257 s%@RANLIB@%$RANLIB%g
14258 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14259 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14260 s%@INSTALL_DATA@%$INSTALL_DATA%g
14262 s%@SET_MAKE@%$SET_MAKE%g
14263 s%@X_CFLAGS@%$X_CFLAGS%g
14264 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
14265 s%@X_LIBS@%$X_LIBS%g
14266 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
14267 s%@install_pp@%$install_pp%g
14268 s%@libs_xauth@%$libs_xauth%g
14269 s%@dnd_objs@%$dnd_objs%g
14270 s%@lwlib_objs@%$lwlib_objs%g
14271 s%@ALLOCA@%$ALLOCA%g
14272 s%@have_esd_config@%$have_esd_config%g
14273 s%@dll_ld@%$dll_ld%g
14274 s%@dll_cflags@%$dll_cflags%g
14275 s%@dll_ldflags@%$dll_ldflags%g
14276 s%@dll_post@%$dll_post%g
14277 s%@dll_ldo@%$dll_ldo%g
14278 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
14279 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
14280 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
14281 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
14282 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
14283 s%@PROGNAME@%$PROGNAME%g
14284 s%@version@%$version%g
14285 s%@configuration@%$configuration%g
14286 s%@canonical@%$canonical%g
14287 s%@inststaticdir@%$inststaticdir%g
14288 s%@instvardir@%$instvardir%g
14289 s%@srcdir@%$srcdir%g
14290 s%@pkgdir@%$pkgdir%g
14291 s%@statedir@%$statedir%g
14292 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
14293 s%@PREFIX@%$PREFIX%g
14294 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
14295 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
14296 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
14297 s%@INFODIR@%$INFODIR%g
14298 s%@infopath@%$infopath%g
14299 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
14300 s%@INFOPATH@%$INFOPATH%g
14301 s%@package_path@%$package_path%g
14302 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
14303 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
14304 s%@lispdir@%$lispdir%g
14305 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
14306 s%@LISPDIR@%$LISPDIR%g
14307 s%@moduledir@%$moduledir%g
14308 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
14309 s%@MODULEDIR@%$MODULEDIR%g
14310 s%@sitelispdir@%$sitelispdir%g
14311 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
14312 s%@SITELISPDIR@%$SITELISPDIR%g
14313 s%@sitemoduledir@%$sitemoduledir%g
14314 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
14315 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
14316 s%@etcdir@%$etcdir%g
14317 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
14318 s%@ETCDIR@%$ETCDIR%g
14319 s%@lockdir@%$lockdir%g
14320 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
14321 s%@LOCKDIR@%$LOCKDIR%g
14322 s%@docdir@%$docdir%g
14323 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
14324 s%@DOCDIR@%$DOCDIR%g
14325 s%@archlibdir@%$archlibdir%g
14326 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
14327 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
14328 s%@bitmapdir@%$bitmapdir%g
14329 s%@extra_objs@%$extra_objs%g
14330 s%@machfile@%$machfile%g
14331 s%@opsysfile@%$opsysfile%g
14332 s%@c_switch_general@%$c_switch_general%g
14333 s%@c_switch_window_system@%$c_switch_window_system%g
14334 s%@c_switch_all@%$c_switch_all%g
14335 s%@ld_switch_general@%$ld_switch_general%g
14336 s%@ld_switch_window_system@%$ld_switch_window_system%g
14337 s%@ld_switch_all@%$ld_switch_all%g
14338 s%@ld_libs_general@%$ld_libs_general%g
14339 s%@ld_libs_window_system@%$ld_libs_window_system%g
14340 s%@ld_libs_all@%$ld_libs_all%g
14341 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
14342 s%@native_sound_lib@%$native_sound_lib%g
14343 s%@sound_cflags@%$sound_cflags%g
14344 s%@dynodump_arch@%$dynodump_arch%g
14345 s%@XEMACS_CC@%$XEMACS_CC%g
14346 s%@internal_makefile_list@%$internal_makefile_list%g
14351 cat >> $CONFIG_STATUS <<\EOF
14353 # Split the substitutions into bite-sized pieces for seds with
14354 # small command number limits, like on Digital OSF/1 and HP-UX.
14355 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14356 ac_file=1 # Number of current file.
14357 ac_beg=1 # First line for current file.
14358 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14361 while $ac_more_lines; do
14362 if test $ac_beg -gt 1; then
14363 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14365 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14367 if test ! -s conftest.s$ac_file; then
14368 ac_more_lines=false
14369 rm -f conftest.s$ac_file
14371 if test -z "$ac_sed_cmds"; then
14372 ac_sed_cmds="sed -f conftest.s$ac_file"
14374 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14376 ac_file=`expr $ac_file + 1`
14378 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14381 if test -z "$ac_sed_cmds"; then
14386 cat >> $CONFIG_STATUS <<EOF
14388 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
14390 cat >> $CONFIG_STATUS <<\EOF
14391 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14392 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14394 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14395 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14396 *) ac_file_in="${ac_file}.in" ;;
14399 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14401 # Remove last slash and all that follows it. Not all systems have dirname.
14402 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14403 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14404 # The file is in a subdirectory.
14405 test ! -d "$ac_dir" && mkdir "$ac_dir"
14406 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14407 # A "../" for each directory in $ac_dir_suffix.
14408 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14410 ac_dir_suffix= ac_dots=
14413 case "$ac_given_srcdir" in
14415 if test -z "$ac_dots"; then top_srcdir=.
14416 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14417 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14418 *) # Relative path.
14419 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14420 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14423 case "$ac_given_INSTALL" in
14424 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14425 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14428 echo creating "$ac_file"
14430 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14432 *Makefile*) ac_comsub="1i\\
14433 # $configure_input" ;;
14437 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14439 s%@configure_input@%$configure_input%g
14440 s%@srcdir@%$srcdir%g
14441 s%@top_srcdir@%$top_srcdir%g
14442 s%@INSTALL@%$INSTALL%g
14443 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14447 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14448 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14450 # ac_d sets the value in "#define NAME VALUE" lines.
14451 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14452 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14455 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14456 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14457 ac_uB='\([ ]\)%\1#\2define\3'
14460 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14461 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14462 ac_eB='$%\1#\2define\3'
14466 if test "${CONFIG_HEADERS+set}" != set; then
14468 cat >> $CONFIG_STATUS <<EOF
14469 CONFIG_HEADERS="src/config.h lwlib/config.h"
14471 cat >> $CONFIG_STATUS <<\EOF
14473 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14474 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14476 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14477 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14478 *) ac_file_in="${ac_file}.in" ;;
14481 echo creating $ac_file
14483 rm -f conftest.frag conftest.in conftest.out
14484 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14485 cat $ac_file_inputs > conftest.in
14489 # Transform confdefs.h into a sed script conftest.vals that substitutes
14490 # the proper values into config.h.in to produce config.h. And first:
14491 # Protect against being on the right side of a sed subst in config.status.
14492 # Protect against being in an unquoted here document in config.status.
14493 rm -f conftest.vals
14494 cat > conftest.hdr <<\EOF
14497 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14501 sed -n -f conftest.hdr confdefs.h > conftest.vals
14504 # This sed command replaces #undef with comments. This is necessary, for
14505 # example, in the case of _POSIX_SOURCE, which is predefined and required
14506 # on some systems where configure will not decide to define it.
14507 cat >> conftest.vals <<\EOF
14508 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14511 # Break up conftest.vals because some shells have a limit on
14512 # the size of here documents, and old seds have small limits too.
14514 rm -f conftest.tail
14517 ac_lines=`grep -c . conftest.vals`
14518 # grep -c gives empty output for an empty file on some AIX systems.
14519 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14520 # Write a limited-size here document to conftest.frag.
14521 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14522 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14524 sed -f conftest.frag conftest.in > conftest.out
14526 mv conftest.out conftest.in
14527 ' >> $CONFIG_STATUS
14528 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14529 rm -f conftest.vals
14530 mv conftest.tail conftest.vals
14532 rm -f conftest.vals
14534 cat >> $CONFIG_STATUS <<\EOF
14535 rm -f conftest.frag conftest.h
14536 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14537 cat conftest.in >> conftest.h
14539 if cmp -s $ac_file conftest.h 2>/dev/null; then
14540 echo "$ac_file is unchanged"
14543 # Remove last slash and all that follows it. Not all systems have dirname.
14544 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14545 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14546 # The file is in a subdirectory.
14547 test ! -d "$ac_dir" && mkdir "$ac_dir"
14550 mv conftest.h $ac_file
14555 cat >> $CONFIG_STATUS <<EOF
14557 top_srcdir="$srcdir"
14558 MAKE_SUBDIR="$MAKE_SUBDIR"
14561 cat >> $CONFIG_STATUS <<\EOF
14562 for dir in . $MAKE_SUBDIR; do
14567 sed -e '/^# Generated/d' \
14568 -e 's%/\*\*/#.*%%' \
14583 echo creating $dir/Makefile
14584 $CPP -I. -I${top_srcdir}/src junk.c \
14585 | sed -e 's/^\#.*//' \
14586 -e 's/^[ ][ ]*$//'\
14588 | sed -n -e '/^..*$/p' \
14594 chmod 444 Makefile.new
14595 mv -f Makefile.new Makefile
14597 echo creating $dir/GNUmakefile
14598 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
14599 | sed -e 's/^\#.*//' \
14600 -e 's/^[ ][ ]*$//'\
14602 | sed -n -e '/^..*$/p' \
14608 chmod 444 Makefile.new
14609 mv -f Makefile.new GNUmakefile
14615 sed < config.status >> lib-src/config.values \
14616 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
14617 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
14618 -e 's/^\([^ ]*\) $/\1 ""/' \
14624 chmod +x $CONFIG_STATUS
14625 rm -fr confdefs* $ac_clean_files
14626 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1