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, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 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) 2000, 2001 Martin Buchholz.
11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
13 ### Don't edit this script!
14 ### This script was automatically generated by the `autoconf' program
15 ### from the file `./configure.in'.
16 ### To rebuild it, execute the command
18 ### in the this directory. You must have autoconf version 2.13 or later.
20 ### This file is part of XEmacs.
22 ### XEmacs is free software; you can redistribute it and/or modify it
23 ### under the terms of the GNU General Public License as published by
24 ### the Free Software Foundation; either version 2, or (at your
25 ### option) any later version.
27 ### XEmacs is distributed in the hope that it will be useful, but
28 ### WITHOUT ANY WARRANTY; without even the implied warranty of
29 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
30 ### General Public License for more details.
32 ### You should have received a copy of the GNU General Public License
33 ### along with XEmacs; see the file COPYING. If not, write to the Free
34 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
37 ### For usage, run `./configure --help'
38 ### For more detailed information on building and installing XEmacs,
39 ### read the file `INSTALL'.
41 ### If configure succeeds, it leaves its status in config.status.
42 ### A log of configuration tests can be found in config.log.
43 ### If configure fails after disturbing the status quo,
44 ### config.status is removed.
47 --with-x use the X Window System"
51 if test -n "$ZSH_VERSION"; then
52 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
53 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
54 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
55 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
56 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
57 elif test -n "$BASH_VERSION"; then
61 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
72 program_transform_name=s,x,x,
83 SHELL=${CONFIG_SHELL-/bin/sh}
86 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
88 # File descriptor usage:
91 # 2 errors and warnings
92 # 3 some systems may open it to /dev/tty
93 # 4 used on the Kubota Titan
94 # 6 checking for... messages and results
95 # 5 compiler messages saved in config.log
96 if test "$silent" = yes; then
104 This file contains any messages produced by compilers while
105 running configure, to aid debugging if configure makes a mistake.
108 # Strip out --no-create and --no-recursion so they do not pile up.
109 # Also quote any args containing shell metacharacters.
114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
115 | --no-cr | --no-c) ;;
116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
118 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
119 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
120 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
125 # Only set these to C if already set. These must not be set unconditionally
126 # because not all systems understand e.g. LANG=C (notably SCO).
127 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
128 # Non-C LC_CTYPE values break the ctype check.
129 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
130 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
131 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
132 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
135 rm -rf conftest* confdefs.h
136 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
139 # A filename unique to this package, relative to the directory that
140 # configure is in, which we can look for to find out if srcdir is correct.
141 ac_unique_file=src/lisp.h
143 # Find the source files, if location was not specified.
144 if test -z "$srcdir"; then
145 ac_srcdir_defaulted=yes
146 # Try the directory containing this script, then its parent.
148 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
149 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
151 if test ! -r $srcdir/$ac_unique_file; then
155 ac_srcdir_defaulted=no
157 if test ! -r $srcdir/$ac_unique_file; then
158 if test "$ac_srcdir_defaulted" = yes; then
159 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
161 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
164 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
166 # Prefer explicitly selected file to automatically selected ones.
167 if test -z "$CONFIG_SITE"; then
168 if test "x$prefix" != xNONE; then
169 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
171 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
174 for ac_site_file in $CONFIG_SITE; do
175 if test -r "$ac_site_file"; then
176 echo "loading site script $ac_site_file"
183 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
184 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
185 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
186 ac_cpp='$CPP '"$xe_cppflags"
187 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
188 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
193 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
194 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
195 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
202 ac_n= ac_c='\c' ac_t=
206 progname="`echo $0 | sed 's:^\./\./:\./:'`"
209 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
210 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
213 exec_prefix='${prefix}'
214 bindir='${exec_prefix}/bin'
215 datadir='${prefix}/lib'
216 statedir='${prefix}/lib'
217 libdir='${exec_prefix}/lib'
218 mandir='${prefix}/man/man1'
219 inststaticdir='${PROGNAME}'
220 instvardir='${PROGNAME}-${version}'
221 infodir='${datadir}/${instvardir}/info'
224 lispdir='${datadir}/${instvardir}/lisp'
225 moduledir='${datadir}/${instvardir}/${configuration}/modules'
226 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
227 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
228 pkgdir='${datadir}/${instvardir}/lisp'
230 etcdir='${datadir}/${instvardir}/etc'
231 archlibdir='${datadir}/${instvardir}/${configuration}'
232 docdir='${archlibdir}'
236 with_site_modules='yes'
242 cpp='' cppflags='' libs='' ldflags=''
248 with_system_malloc='default'
249 with_dlmalloc='default'
261 with_ipv6_cname="yes"
268 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
273 | --no-cr | --no-c) ;;
274 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
275 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
277 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
278 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
282 while test $# != 0; do
285 --no-create|--no-recursion) ;;
289 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
290 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
294 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
295 val="yes" valomitted=yes
300 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
302 case "${valomitted}-${opt}" in yes-without_* )
303 opt=`echo $opt | sed 's/without/with/'`
304 valomitted="no" val="no" ;;
311 with_site_modules | \
365 memory_usage_stats | \
366 with_clash_detection | \
370 y | ye | yes ) val=yes ;;
372 * ) (echo "$progname: Usage error:"
373 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
374 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
376 eval "$opt=\"$val\"" ;;
394 site_runtime_libraries )
395 if test "$valomitted" = "yes" ; then
396 if test "$#" = 0 ; then
397 (echo "$progname: Usage error:"
398 echo " " "The \`--$optname' option requires a value."
399 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
408 with_debug_malloc | use_debug_malloc | \
409 with_system_malloc | use_system_malloc )
411 y | ye | yes ) val=yes ;;
413 d | de | def | defa | defau | defaul | default ) val=default ;;
414 * ) (echo "$progname: Usage error:"
415 echo " " "The \`--$optname' option requires one of these values:
416 \`yes', \`no', or \`default'."
417 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
419 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
424 with_database_berkdb=no
426 with_database_gdbm=no
427 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
430 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
431 d | db | dbm ) with_database_dbm=yes ;;
432 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
433 * ) (echo "$progname: Usage error:"
434 echo " " "The \`--$optname' option value
435 must be either \`no' or a comma-separated list
436 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
437 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
440 if test "$with_database_dbm" = "yes" -a \
441 "$with_database_gdbm" = "yes"; then
442 (echo "$progname: Usage error:"
443 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
444 with the \`--$optname' option."
445 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
450 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
452 n | no | non | none ) new_sdefault=no ;;
453 a | al | all | both ) new_sdefault=yes ;;
455 native ) with_native_sound=yes ;;
456 nonative ) with_native_sound=no ;;
458 nas ) with_nas_sound=yes ;;
459 nonas ) with_nas_sound=no ;;
461 esd ) with_esd_sound=yes ;;
462 noesd ) with_esd_sound=no ;;
464 * ) bogus_sound=yes ;;
466 if test "$bogus_sound" -o \
467 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
468 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
469 (echo "$progname: Usage error:"
470 echo " " "Valid types for the \`--$optname' option are:
472 Option \`all' or \`none' must be first in the list.
473 The default is to autodetect native and NAS sound support."
474 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
475 elif test -n "$new_sdefault" ; then
476 with_native_sound=$new_sdefault
477 with_nas_sound=$new_sdefault
478 with_esd_sound=$new_sdefault
479 new_sdefault= # reset this
487 xa | xaw ) val=xaw ;;
488 3 | 3d | xaw3d ) val=3d ;;
489 ne | nex | next | naxtaw) val=next ;;
490 9 | 95 | xaw95 ) val=95 ;;
491 xp | xpm | xawxpm ) val=xpm ;;
492 * ) (echo "$progname: Usage error:"
493 echo " " "The \`--$optname' option must have one of these values:
494 \`xaw', \`3d', \`next', \`95', or \`xpm'."
495 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
502 y | ye | yes ) val=yes ;;
503 n | no | non | none ) val=no ;;
504 x | xl | xli | xlib ) val=xlib ;;
505 m | mo | mot | moti | motif ) val=motif ;;
506 * ) (echo "$progname: Usage error:"
507 echo " " "The \`--$optname' option must have one of these values:
508 \`motif', \`xlib', \`yes', or \`no'."
509 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
518 file | dot ) val=file ;;
519 locking ) val=locking ;;
520 * ) (echo "$progname: Usage error:"
521 echo " " "The \`--$optname' option must have one of these values:
522 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
523 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
530 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
532 n | no | non | none ) new_default=no ;;
533 a | al | all ) new_default=yes ;;
535 extents ) error_check_extents=yes ;;
536 noextents ) error_check_extents=no ;;
538 typecheck ) error_check_typecheck=yes ;;
539 notypecheck ) error_check_typecheck=no ;;
541 bufpos ) error_check_bufpos=yes ;;
542 nobufpos ) error_check_bufpos=no ;;
544 gc ) error_check_gc=yes ;;
545 nogc ) error_check_gc=no ;;
547 malloc ) error_check_malloc=yes ;;
548 nomalloc ) error_check_malloc=no ;;
550 byte_code ) error_check_byte_code=yes ;;
551 nobyte_code ) error_check_byte_code=no ;;
553 glyphs ) error_check_glyphs=yes ;;
554 noglyphs ) error_check_glyphs=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', \`noglyphs' and \`nobyte-code'."
563 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' 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 error_check_glyphs=$new_default
577 new_default= # reset this
584 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
585 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
586 archlibdir | docdir | package_path )
587 if test "$valomitted" = "yes"; then
588 if test "$#" = 0; then
589 (echo "$progname: Usage error:"
590 echo " " "The \`--$optname' option requires a value."
591 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
598 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
599 Defining EXEC_PREFIX_USER_DEFINED
601 cat >> confdefs.h <<\EOF
602 #define EXEC_PREFIX_USER_DEFINED 1
606 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
607 Defining LISPDIR_USER_DEFINED
609 cat >> confdefs.h <<\EOF
610 #define LISPDIR_USER_DEFINED 1
614 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
615 Defining SITELISPDIR_USER_DEFINED
617 cat >> confdefs.h <<\EOF
618 #define SITELISPDIR_USER_DEFINED 1
622 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
623 Defining MODULEDIR_USER_DEFINED
625 cat >> confdefs.h <<\EOF
626 #define MODULEDIR_USER_DEFINED 1
630 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
631 Defining ETCDIR_USER_DEFINED
633 cat >> confdefs.h <<\EOF
634 #define ETCDIR_USER_DEFINED 1
638 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
639 Defining INFODIR_USER_DEFINED
641 cat >> confdefs.h <<\EOF
642 #define INFODIR_USER_DEFINED 1
646 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
647 Defining INFOPATH_USER_DEFINED
649 cat >> confdefs.h <<\EOF
650 #define INFOPATH_USER_DEFINED 1
654 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
655 Defining PACKAGE_PATH_USER_DEFINED
657 cat >> confdefs.h <<\EOF
658 #define PACKAGE_PATH_USER_DEFINED 1
663 { test "$extra_verbose" = "yes" && cat << \EOF
664 Defining INFODIR_USER_DEFINED
666 cat >> confdefs.h <<\EOF
667 #define INFODIR_USER_DEFINED 1
671 { test "$extra_verbose" = "yes" && cat << \EOF
672 Defining LISPDIR_USER_DEFINED
674 cat >> confdefs.h <<\EOF
675 #define LISPDIR_USER_DEFINED 1
679 { test "$extra_verbose" = "yes" && cat << \EOF
680 Defining MODULEDIR_USER_DEFINED
682 cat >> confdefs.h <<\EOF
683 #define MODULEDIR_USER_DEFINED 1
687 { test "$extra_verbose" = "yes" && cat << \EOF
688 Defining ETCDIR_USER_DEFINED
690 cat >> confdefs.h <<\EOF
691 #define ETCDIR_USER_DEFINED 1
695 { test "$extra_verbose" = "yes" && cat << \EOF
696 Defining DOCDIR_USER_DEFINED
698 cat >> confdefs.h <<\EOF
699 #define DOCDIR_USER_DEFINED 1
703 { test "$extra_verbose" = "yes" && cat << \EOF
704 Defining ARCHLIBDIR_USER_DEFINED
706 cat >> confdefs.h <<\EOF
707 #define ARCHLIBDIR_USER_DEFINED 1
711 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
712 Defining DOCDIR_USER_DEFINED
714 cat >> confdefs.h <<\EOF
715 #define DOCDIR_USER_DEFINED 1
719 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
720 Defining ARCHLIBDIR_USER_DEFINED
722 cat >> confdefs.h <<\EOF
723 #define ARCHLIBDIR_USER_DEFINED 1
732 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
735 "with_scrollbars" | \
739 l | lu | luc | luci | lucid ) val=lucid ;;
740 mo | mot | moti | motif ) val=motif ;;
741 a | at | ath | athe | athen | athena ) val=athena ;;
742 n | no | non | none ) val=no ;;
743 y | ye | yes ) val=yes ;;
744 g | gt | gtk ) val=gtk ;;
745 ms | msw ) val=msw ;;
746 * ) (echo "$progname: Usage error:"
747 echo " " "The \`--$optname' option must have one of these values:
748 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
749 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
754 "use_minimal_tagbits" | \
755 "use_indexed_lrecord_implementation" | \
757 "const_is_losing" | \
759 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
762 * ) (echo "$progname: Usage error:"
763 echo " " "Unrecognized option: $arg"
764 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
769 *-*-*) configuration="$arg" ;;
771 *) (echo "$progname: Usage error:"
772 echo " " "Unrecognized argument: $arg"
773 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
779 test -n "$cpp" && CPP="$cpp"
780 test -n "$cppflags" && CPPFLAGS="$cppflags"
781 test -n "$libs" && LIBS="$libs"
782 test -n "$ldflags" && LDFLAGS="$ldflags"
784 eval set x "$quoted_arguments"; shift
786 test "$extra_verbose" = "yes" && verbose=yes
788 test -n "$with_x" && with_x11="$with_x"
790 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
791 test "$with_system_malloc" = "default" && with_system_malloc=yes
796 if test "$with_cde $with_tooltalk" = "yes no"; then
797 (echo "$progname: Usage error:"
798 echo " " "--with-cde requires --with-tooltalk"
799 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
800 elif test "$with_tooltalk" = "no" ; then with_cde=no
801 elif test "$with_cde" = "yes"; then with_tooltalk=yes
808 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
809 if test -f "$dir/src/lisp.h" -a \
810 -f "$dir/lisp/version.el" ; then
815 if test -z "$srcdir" ; then
816 (echo "$progname: Usage error:"
817 echo " " "Neither the current directory nor its parent seem to
818 contain the XEmacs sources. If you do not want to build XEmacs in its
819 source tree, you should run \`$progname' in the directory in which
820 you wish to build XEmacs, using the \`--srcdir' option to say where the
821 sources may be found."
822 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
827 if test ! -f "$srcdir/src/lisp.h" -o \
828 ! -f "$srcdir/lisp/version.el" ; then
829 (echo "$progname: Usage error:"
830 echo " " "The directory specified with the \`--srcdir' option,
831 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
832 either run the \`$progname' script at the top of the XEmacs source
833 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
834 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
839 if test -z "$configuration"; then
840 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
841 if test -z "$configuration"; then
842 (echo "$progname: Usage error:"
843 echo " " "XEmacs has not been ported to this host type.
844 Try explicitly specifying the CONFIGURATION when rerunning configure."
845 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
849 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
850 echo "configure:851: checking whether ln -s works" >&5
853 if ln -s X conftestdata 2>/dev/null
856 ac_cv_prog_LN_S="ln -s"
860 LN_S="$ac_cv_prog_LN_S"
861 if test "$ac_cv_prog_LN_S" = "ln -s"; then
862 echo "$ac_t""yes" 1>&6
864 echo "$ac_t""no" 1>&6
868 for dir in lisp etc man info tests; do
869 if test ! -d "$dir" ; then
870 echo Making symbolic link to "$srcdir/$dir"
871 ${LN_S} "$srcdir/$dir" "$dir"
876 absolute_pwd="`pwd`";
877 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
879 else blddir="$absolute_pwd"; if test -d "/net"; then
880 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
881 blddir=`echo "$blddir" | \
882 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
889 . ) srcdir="$blddir" ;;
890 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
891 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
892 srcdir=`echo "$srcdir" | \
893 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
897 if test `pwd` != `sh -c cd $srcdir && pwd` \
898 && test -f "$srcdir/src/config.h"; then
899 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
900 echo " as a build directory right now; it has been configured in its own"
901 echo " right. To configure in another directory as well, you MUST"
902 echo " use GNU make. If you do not have GNU make, then you must"
903 echo " now do \`make distclean' in $srcdir,"
904 echo " and then run $progname again.") >&2
905 extrasub='/^VPATH[ ]*=/c\
911 vpath %.in $(srcdir)'
914 . "$srcdir/version.sh" || exit 1;
915 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
916 : "${extra_verbose=$beta}"
917 version="${emacs_major_version}.${emacs_minor_version}"
918 { test "$extra_verbose" = "yes" && cat << EOF
919 Defining EMACS_MAJOR_VERSION = $emacs_major_version
921 cat >> confdefs.h <<EOF
922 #define EMACS_MAJOR_VERSION $emacs_major_version
926 { test "$extra_verbose" = "yes" && cat << EOF
927 Defining EMACS_MINOR_VERSION = $emacs_minor_version
929 cat >> confdefs.h <<EOF
930 #define EMACS_MINOR_VERSION $emacs_minor_version
934 if test -n "$emacs_beta_version" ; then
935 if test "$beta" = "yes"; then
936 version="${version}-b${emacs_beta_version}"
937 { test "$extra_verbose" = "yes" && cat << EOF
938 Defining EMACS_BETA_VERSION = $emacs_beta_version
940 cat >> confdefs.h <<EOF
941 #define EMACS_BETA_VERSION $emacs_beta_version
946 version="${version}.${emacs_beta_version}"
947 { test "$extra_verbose" = "yes" && cat << EOF
948 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
950 cat >> confdefs.h <<EOF
951 #define EMACS_PATCH_LEVEL $emacs_beta_version
957 { test "$extra_verbose" = "yes" && cat << EOF
958 Defining XEMACS_CODENAME = "$xemacs_codename"
960 cat >> confdefs.h <<EOF
961 #define XEMACS_CODENAME "$xemacs_codename"
965 { test "$extra_verbose" = "yes" && cat << EOF
966 Defining EMACS_VERSION = "$version"
968 cat >> confdefs.h <<EOF
969 #define EMACS_VERSION "$version"
974 if test "$with_infodock" = "yes"; then
975 if test ! -f ../../ID-INSTALL; then
976 echo "Cannot build InfoDock without InfoDock sources"
981 if test "$with_infodock" = "yes"; then
982 { test "$extra_verbose" = "yes" && cat << EOF
983 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
985 cat >> confdefs.h <<EOF
986 #define INFODOCK_MAJOR_VERSION $infodock_major_version
990 { test "$extra_verbose" = "yes" && cat << EOF
991 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
993 cat >> confdefs.h <<EOF
994 #define INFODOCK_MINOR_VERSION $infodock_minor_version
998 { test "$extra_verbose" = "yes" && cat << EOF
999 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
1001 cat >> confdefs.h <<EOF
1002 #define INFODOCK_BUILD_VERSION $infodock_build_version
1006 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
1008 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1013 { test "$extra_verbose" = "yes" && cat << EOF
1014 Defining EMACS_PROGNAME = "$PROGNAME"
1016 cat >> confdefs.h <<EOF
1017 #define EMACS_PROGNAME "$PROGNAME"
1022 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1023 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1024 Defining ERROR_CHECK_EXTENTS
1026 cat >> confdefs.h <<\EOF
1027 #define ERROR_CHECK_EXTENTS 1
1031 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1032 Defining ERROR_CHECK_TYPECHECK
1034 cat >> confdefs.h <<\EOF
1035 #define ERROR_CHECK_TYPECHECK 1
1039 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1040 Defining ERROR_CHECK_BUFPOS
1042 cat >> confdefs.h <<\EOF
1043 #define ERROR_CHECK_BUFPOS 1
1047 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1048 Defining ERROR_CHECK_GC
1050 cat >> confdefs.h <<\EOF
1051 #define ERROR_CHECK_GC 1
1055 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1056 Defining ERROR_CHECK_MALLOC
1058 cat >> confdefs.h <<\EOF
1059 #define ERROR_CHECK_MALLOC 1
1063 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1064 Defining ERROR_CHECK_BYTE_CODE
1066 cat >> confdefs.h <<\EOF
1067 #define ERROR_CHECK_BYTE_CODE 1
1071 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1072 Defining ERROR_CHECK_GLYPHS
1074 cat >> confdefs.h <<\EOF
1075 #define ERROR_CHECK_GLYPHS 1
1079 if test "${debug:=$beta}" = "yes"; then
1080 use_assertions=yes memory_usage_stats=yes
1081 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1082 echo " xemacs will be linked with \"debug.o\""
1084 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1085 echo " xemacs will be linked with \"tests.o\""
1087 { test "$extra_verbose" = "yes" && cat << \EOF
1088 Defining DEBUG_XEMACS
1090 cat >> confdefs.h <<\EOF
1091 #define DEBUG_XEMACS 1
1096 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1097 Defining USE_ASSERTIONS
1099 cat >> confdefs.h <<\EOF
1100 #define USE_ASSERTIONS 1
1104 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1105 Defining MEMORY_USAGE_STATS
1107 cat >> confdefs.h <<\EOF
1108 #define MEMORY_USAGE_STATS 1
1114 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1115 echo "configure:1116: checking "host system type"" >&5
1116 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1117 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1118 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1119 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1120 echo "$ac_t""$configuration" 1>&6
1128 case "$canonical" in
1129 sparc-*-* ) machine=sparc ;;
1130 alpha*-*-* ) machine=alpha ;;
1131 vax-*-* ) machine=vax ;;
1132 mips-dec-* ) machine=pmax ;;
1133 mips-sgi-irix6* ) machine=iris6d ;;
1134 mips-sgi-* ) machine=iris4d ;;
1135 mips*-linux ) machine=mips ;;
1136 romp-ibm-* ) machine=ibmrt ;;
1137 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1138 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1139 powerpc*-* ) machine=powerpc ;;
1140 hppa-*-* ) machine=hp800 ;;
1141 m88k-dg-* ) machine=aviion ;;
1142 m68*-sony-* ) machine=news ;;
1143 mips-sony-* ) machine=news-risc ;;
1144 clipper-* ) machine=clipper ;;
1145 arm* ) machine=arm ;;
1146 ns32k-* ) machine=ns32000 ;;
1149 case "$canonical" in
1150 *-*-linux* ) opsys=linux ;;
1151 *-*-netbsd* ) opsys=netbsd ;;
1152 *-*-openbsd* ) opsys=openbsd ;;
1153 *-*-nextstep* ) opsys=nextstep ;;
1154 *-*-vms ) opsys=vms ;;
1156 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1157 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1158 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1159 *-dec-osf3* ) opsys=decosf3-1 ;;
1160 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1162 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1163 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1164 *-*-ultrix* ) opsys=ultrix4-3 ;;
1166 *-*-aix3.1* ) opsys=aix3-1 ;;
1167 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1168 *-*-aix3* ) opsys=aix3-2 ;;
1169 *-*-aix4.0* ) opsys=aix4 ;;
1170 *-*-aix4.1* ) opsys=aix4-1 ;;
1171 *-*-aix4* ) opsys=aix4-2 ;;
1173 *-gnu* ) opsys=gnu ;;
1174 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1175 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1176 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1177 *-*-aos4.2 ) opsys=bsd4-2 ;;
1178 *-*-aos* ) opsys=bsd4-3 ;;
1179 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1180 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1181 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1182 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1183 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1184 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1185 if test -z "$NON_GNU_CPP" ; then
1186 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1187 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1191 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1192 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1195 case "$canonical" in
1198 case "$canonical" in
1199 i[3-9]86-*-netbsd*) machine=intel386 ;;
1200 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1201 machine=hp9000s300 ;;
1202 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1203 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1208 case "${canonical}" in
1209 i386-*-openbsd*) machine=intel386 ;;
1210 m68k-*-openbsd*) machine=hp9000s300 ;;
1211 mipsel-*-openbsd*) machine=pmax ;;
1215 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1216 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1218 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1219 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1221 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1223 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1225 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1227 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1229 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1231 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1232 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1233 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1236 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1238 *-convex-bsd* | *-convex-convexos* )
1239 machine=convex opsys=bsd4-3
1240 NON_GNU_CPP="cc -E -P"
1243 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1245 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1246 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1247 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1248 m88k-dg-dgux* ) opsys=dgux ;;
1250 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1251 m88k-motorola-sysv4* )
1252 machine=delta88k opsys=usg5-4-2
1254 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1256 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1257 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1259 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1261 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1262 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1263 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1266 case "`uname -r`" in
1267 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1268 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1270 NON_GNU_CPP="/lib/cpp"
1272 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1273 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1275 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1277 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1280 case "$canonical" in
1281 m68* ) machine=hp9000s300 ;;
1282 hppa* ) machine=hp800 ;;
1285 case "$canonical" in
1286 *-hp-hpux7* ) opsys=hpux ;;
1287 *-hp-hpux8* ) opsys=hpux8 ;;
1288 *-hp-hpux9* ) opsys=hpux9 ;;
1289 *-hp-hpux10* ) opsys=hpux10 ;;
1290 *-hp-hpux11* ) opsys=hpux11 ;;
1294 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1295 echo " xemacs will be linked with \"strcat.o\""
1298 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1299 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1300 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1302 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1305 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1306 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1308 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1309 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1310 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1311 romp-ibm-aos* ) opsys=bsd4-3 ;;
1312 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1313 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1315 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1316 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1318 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1320 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1322 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1324 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1326 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1328 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1330 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1332 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1334 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1336 mips-mips-usg* ) machine=mips4 ;;
1339 NON_GNU_CC="cc -systype bsd43"
1340 NON_GNU_CPP="cc -systype bsd43 -E"
1341 case "$canonical" in
1342 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1343 mips-mips-riscos5* ) opsys=riscos5 ;;
1346 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1347 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1349 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1351 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1353 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1354 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1356 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1358 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1360 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1362 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1364 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1365 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1367 mips-siemens-sysv* | mips-sni-sysv*)
1368 machine=mips-siemens opsys=usg5-4
1369 NON_GNU_CC=/usr/ccs/bin/cc
1370 NON_GNU_CPP=/usr/ccs/lib/cpp
1375 NON_GNU_CC=/usr/ccs/bin/cc
1376 NON_GNU_CPP=/usr/ccs/lib/cpp
1379 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1380 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1381 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1382 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1383 mips-sgi-irix6* ) opsys=irix6-0 ;;
1384 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1385 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1386 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1387 mips-sgi-irix* ) opsys=irix5-0 ;;
1389 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1390 *-sony-news* ) opsys=newsos5 ;;
1392 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1394 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1395 case "$canonical" in
1396 m68*-sunos1* ) machine=sun1 ;;
1397 m68*-sunos2* ) machine=sun2 ;;
1398 m68* ) machine=sun3 ;;
1399 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1400 i*86-*-* ) machine=intel386 ;;
1401 rs6000* ) machine=rs6000 ;;
1404 case "$canonical" in *-sunos5*)
1405 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1408 case "$canonical" in
1410 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1413 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1417 case "$canonical" in
1420 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1421 { test "$extra_verbose" = "yes" && cat << EOF
1422 Defining OS_RELEASE = $os_release
1424 cat >> confdefs.h <<EOF
1425 #define OS_RELEASE $os_release
1430 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1431 *-sunos4.0* ) opsys=sunos4-0 ;;
1432 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1433 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1434 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1435 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1436 *-mach* ) opsys=mach-bsd4-3 ;;
1440 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1442 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1445 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1447 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1448 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1450 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1452 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1454 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1455 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1457 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1459 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1462 case "$canonical" in
1463 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1464 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1465 *-mach* ) opsys=mach-bsd4-3 ;;
1469 ns16k-whitechapel-* ) machine=mg1 ;;
1471 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1475 case "$canonical" in
1476 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1477 *-isc2.2* ) opsys=isc2-2 ;;
1478 *-isc4.0* ) opsys=isc4-0 ;;
1479 *-isc4.* ) opsys=isc4-1
1480 GCC_TEST_OPTIONS=-posix
1481 NON_GCC_TEST_OPTIONS=-Xp
1483 *-isc* ) opsys=isc3-0 ;;
1484 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1485 *-esix* ) opsys=esix ;;
1486 *-mach* ) opsys=mach-bsd4-3 ;;
1487 *-xenix* ) opsys=xenix ;;
1488 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1489 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1490 *-bsdi4* ) opsys=bsdos4 ;;
1491 *-bsdi3* ) opsys=bsdos3 ;;
1492 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1493 *-bsdi2* ) opsys=bsdos2 ;;
1494 *-sco3.2v5* ) opsys=sco5 ;;
1495 *-sysv5* ) opsys=sco7 ;;
1496 *-386bsd* ) opsys=386bsd ;;
1497 *-freebsd* ) opsys=freebsd ;;
1498 *-nextstep* ) opsys=nextstep ;;
1499 *-pc-cygwin* ) opsys=cygwin32 ;;
1500 *-pc-mingw* ) opsys=mingw32 ;
1501 test -z "$with_tty" && with_tty="no";;
1505 m68k-*-linux* ) machine=m68k opsys=linux ;;
1509 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1511 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
1513 if test -r "${srcdir}/src/m/${machine}.h"; then
1514 machfile="m/${machine}.h"
1515 { test "$extra_verbose" = "yes" && cat << EOF
1516 Defining config_machfile = "$machfile"
1518 cat >> confdefs.h <<EOF
1519 #define config_machfile "$machfile"
1524 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1525 echo "Using configure-time autodetection only."
1528 if test -r "${srcdir}/src/s/${opsys}.h"; then
1529 opsysfile="s/${opsys}.h"
1530 { test "$extra_verbose" = "yes" && cat << EOF
1531 Defining config_opsysfile = "$opsysfile"
1533 cat >> confdefs.h <<EOF
1534 #define config_opsysfile "$opsysfile"
1539 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1540 echo "Using configure-time autodetection only."
1544 if test -z "$dynamic"; then
1546 hpux* | sunos4* ) dynamic=no ;;
1550 if test "$dynamic" = "yes"; then
1552 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1553 decosf* ) ld_call_shared="-call_shared" ;;
1555 else case "$opsys" in
1557 echo "Static linking is not supported on Solaris 2."
1558 echo "Rerun configure without specifying --dynamic=no."
1560 linux ) ld_call_shared="-Bstatic" ;;
1561 decosf* ) ld_call_shared="-non_shared" ;;
1565 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1567 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1568 { test "$extra_verbose" = "yes" && cat << EOF
1569 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1571 cat >> confdefs.h <<EOF
1572 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1578 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1579 if test "$with_workshop $with_tooltalk" = "yes no"; then
1580 (echo "$progname: Usage error:"
1581 echo " " "--with-workshop requires --with-tooltalk"
1582 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1583 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1584 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1587 if test "$with_workshop" = "yes"; then
1588 { test "$extra_verbose" = "yes" && cat << \EOF
1591 cat >> confdefs.h <<\EOF
1596 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1597 echo " xemacs will be linked with \"sunpro.o\""
1601 if test "$with_clash_detection" != "no"; then
1602 { test "$extra_verbose" = "yes" && cat << \EOF
1603 Defining CLASH_DETECTION
1605 cat >> confdefs.h <<\EOF
1606 #define CLASH_DETECTION 1
1610 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1611 echo " xemacs will be linked with \"filelock.o\""
1615 test -n "$compiler" && CC="$compiler"
1616 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1619 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1620 if test "${CFLAGS-unset}" != unset
1621 then cflags_specified=yes;
1622 else cflags_specified=no;
1625 xe_save_CFLAGS="$CFLAGS"
1627 # Extract the first word of "gcc", so it can be a program name with args.
1628 set dummy gcc; ac_word=$2
1629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1630 echo "configure:1631: checking for $ac_word" >&5
1632 if test -n "$CC"; then
1633 ac_cv_prog_CC="$CC" # Let the user override the test.
1635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1637 for ac_dir in $ac_dummy; do
1638 test -z "$ac_dir" && ac_dir=.
1639 if test -f $ac_dir/$ac_word; then
1647 if test -n "$CC"; then
1648 echo "$ac_t""$CC" 1>&6
1650 echo "$ac_t""no" 1>&6
1653 if test -z "$CC"; then
1654 # Extract the first word of "cc", so it can be a program name with args.
1655 set dummy cc; ac_word=$2
1656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1657 echo "configure:1658: checking for $ac_word" >&5
1659 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test.
1662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1665 for ac_dir in $ac_dummy; do
1666 test -z "$ac_dir" && ac_dir=.
1667 if test -f $ac_dir/$ac_word; then
1668 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1669 ac_prog_rejected=yes
1677 if test $ac_prog_rejected = yes; then
1678 # We found a bogon in the path, so make sure we never use it.
1679 set dummy $ac_cv_prog_CC
1681 if test $# -gt 0; then
1682 # We chose a different compiler from the bogus one.
1683 # However, it has the same basename, so the bogon will be chosen
1684 # first if we set CC to just the basename; use the full file name.
1686 set dummy "$ac_dir/$ac_word" "$@"
1693 if test -n "$CC"; then
1694 echo "$ac_t""$CC" 1>&6
1696 echo "$ac_t""no" 1>&6
1699 if test -z "$CC"; then
1700 case "`uname -s`" in
1702 # Extract the first word of "cl", so it can be a program name with args.
1703 set dummy cl; ac_word=$2
1704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1705 echo "configure:1706: checking for $ac_word" >&5
1707 if test -n "$CC"; then
1708 ac_cv_prog_CC="$CC" # Let the user override the test.
1710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1712 for ac_dir in $ac_dummy; do
1713 test -z "$ac_dir" && ac_dir=.
1714 if test -f $ac_dir/$ac_word; then
1722 if test -n "$CC"; then
1723 echo "$ac_t""$CC" 1>&6
1725 echo "$ac_t""no" 1>&6
1730 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1733 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1734 echo "configure:1735: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1737 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1738 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1739 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1740 ac_cpp='$CPP '"$xe_cppflags"
1741 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1742 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1745 cat > conftest.$ac_ext << EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1752 if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1753 ac_cv_prog_cc_works=yes
1754 # If we can't run a trivial program, we are probably using a cross compiler.
1755 if (./conftest; exit) 2>/dev/null; then
1756 ac_cv_prog_cc_cross=no
1758 ac_cv_prog_cc_cross=yes
1761 echo "configure: failed program was:" >&5
1762 cat conftest.$ac_ext >&5
1763 ac_cv_prog_cc_works=no
1767 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1768 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1769 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1770 ac_cpp='$CPP '"$xe_cppflags"
1771 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1772 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1775 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1776 if test $ac_cv_prog_cc_works = no; then
1777 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1779 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1780 echo "configure:1781: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1781 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1782 cross_compiling=$ac_cv_prog_cc_cross
1784 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1785 echo "configure:1786: checking whether we are using GNU C" >&5
1787 cat > conftest.c <<EOF
1792 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1798 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1800 if test $ac_cv_prog_gcc = yes; then
1806 ac_test_CFLAGS="${CFLAGS+set}"
1807 ac_save_CFLAGS="$CFLAGS"
1809 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1810 echo "configure:1811: checking whether ${CC-cc} accepts -g" >&5
1812 echo 'void f(){}' > conftest.c
1813 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1821 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1822 if test "$ac_test_CFLAGS" = set; then
1823 CFLAGS="$ac_save_CFLAGS"
1824 elif test $ac_cv_prog_cc_g = yes; then
1825 if test "$GCC" = yes; then
1831 if test "$GCC" = yes; then
1838 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1840 # Extract the first word of "gcc", so it can be a program name with args.
1841 set dummy gcc; ac_word=$2
1842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1843 echo "configure:1844: checking for $ac_word" >&5
1845 if test -n "$CC"; then
1846 ac_cv_prog_CC="$CC" # Let the user override the test.
1848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1850 for ac_dir in $ac_dummy; do
1851 test -z "$ac_dir" && ac_dir=.
1852 if test -f $ac_dir/$ac_word; then
1860 if test -n "$CC"; then
1861 echo "$ac_t""$CC" 1>&6
1863 echo "$ac_t""no" 1>&6
1866 if test -z "$CC"; then
1867 # Extract the first word of "cc", so it can be a program name with args.
1868 set dummy cc; ac_word=$2
1869 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1870 echo "configure:1871: checking for $ac_word" >&5
1872 if test -n "$CC"; then
1873 ac_cv_prog_CC="$CC" # Let the user override the test.
1875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1878 for ac_dir in $ac_dummy; do
1879 test -z "$ac_dir" && ac_dir=.
1880 if test -f $ac_dir/$ac_word; then
1881 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1882 ac_prog_rejected=yes
1890 if test $ac_prog_rejected = yes; then
1891 # We found a bogon in the path, so make sure we never use it.
1892 set dummy $ac_cv_prog_CC
1894 if test $# -gt 0; then
1895 # We chose a different compiler from the bogus one.
1896 # However, it has the same basename, so the bogon will be chosen
1897 # first if we set CC to just the basename; use the full file name.
1899 set dummy "$ac_dir/$ac_word" "$@"
1906 if test -n "$CC"; then
1907 echo "$ac_t""$CC" 1>&6
1909 echo "$ac_t""no" 1>&6
1912 if test -z "$CC"; then
1913 case "`uname -s`" in
1915 # Extract the first word of "cl", so it can be a program name with args.
1916 set dummy cl; ac_word=$2
1917 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1918 echo "configure:1919: checking for $ac_word" >&5
1920 if test -n "$CC"; then
1921 ac_cv_prog_CC="$CC" # Let the user override the test.
1923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1925 for ac_dir in $ac_dummy; do
1926 test -z "$ac_dir" && ac_dir=.
1927 if test -f $ac_dir/$ac_word; then
1935 if test -n "$CC"; then
1936 echo "$ac_t""$CC" 1>&6
1938 echo "$ac_t""no" 1>&6
1943 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1946 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1947 echo "configure:1948: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1950 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1951 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1952 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1953 ac_cpp='$CPP '"$xe_cppflags"
1954 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1955 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1958 cat > conftest.$ac_ext << EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1965 if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1966 ac_cv_prog_cc_works=yes
1967 # If we can't run a trivial program, we are probably using a cross compiler.
1968 if (./conftest; exit) 2>/dev/null; then
1969 ac_cv_prog_cc_cross=no
1971 ac_cv_prog_cc_cross=yes
1974 echo "configure: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1976 ac_cv_prog_cc_works=no
1980 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1981 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1982 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1983 ac_cpp='$CPP '"$xe_cppflags"
1984 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1985 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1988 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1989 if test $ac_cv_prog_cc_works = no; then
1990 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1992 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1993 echo "configure:1994: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1994 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1995 cross_compiling=$ac_cv_prog_cc_cross
1997 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1998 echo "configure:1999: checking whether we are using GNU C" >&5
2000 cat > conftest.c <<EOF
2005 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2011 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2013 if test $ac_cv_prog_gcc = yes; then
2019 ac_test_CFLAGS="${CFLAGS+set}"
2020 ac_save_CFLAGS="$CFLAGS"
2022 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2023 echo "configure:2024: checking whether ${CC-cc} accepts -g" >&5
2025 echo 'void f(){}' > conftest.c
2026 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2034 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2035 if test "$ac_test_CFLAGS" = set; then
2036 CFLAGS="$ac_save_CFLAGS"
2037 elif test $ac_cv_prog_cc_g = yes; then
2038 if test "$GCC" = yes; then
2044 if test "$GCC" = yes; then
2051 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2053 # Extract the first word of "gcc", so it can be a program name with args.
2054 set dummy gcc; ac_word=$2
2055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2056 echo "configure:2057: checking for $ac_word" >&5
2058 if test -n "$CC"; then
2059 ac_cv_prog_CC="$CC" # Let the user override the test.
2061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2063 for ac_dir in $ac_dummy; do
2064 test -z "$ac_dir" && ac_dir=.
2065 if test -f $ac_dir/$ac_word; then
2073 if test -n "$CC"; then
2074 echo "$ac_t""$CC" 1>&6
2076 echo "$ac_t""no" 1>&6
2079 if test -z "$CC"; then
2080 # Extract the first word of "cc", so it can be a program name with args.
2081 set dummy cc; ac_word=$2
2082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2083 echo "configure:2084: checking for $ac_word" >&5
2085 if test -n "$CC"; then
2086 ac_cv_prog_CC="$CC" # Let the user override the test.
2088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2091 for ac_dir in $ac_dummy; do
2092 test -z "$ac_dir" && ac_dir=.
2093 if test -f $ac_dir/$ac_word; then
2094 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2095 ac_prog_rejected=yes
2103 if test $ac_prog_rejected = yes; then
2104 # We found a bogon in the path, so make sure we never use it.
2105 set dummy $ac_cv_prog_CC
2107 if test $# -gt 0; then
2108 # We chose a different compiler from the bogus one.
2109 # However, it has the same basename, so the bogon will be chosen
2110 # first if we set CC to just the basename; use the full file name.
2112 set dummy "$ac_dir/$ac_word" "$@"
2119 if test -n "$CC"; then
2120 echo "$ac_t""$CC" 1>&6
2122 echo "$ac_t""no" 1>&6
2125 if test -z "$CC"; then
2126 case "`uname -s`" in
2128 # Extract the first word of "cl", so it can be a program name with args.
2129 set dummy cl; ac_word=$2
2130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2131 echo "configure:2132: checking for $ac_word" >&5
2133 if test -n "$CC"; then
2134 ac_cv_prog_CC="$CC" # Let the user override the test.
2136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2138 for ac_dir in $ac_dummy; do
2139 test -z "$ac_dir" && ac_dir=.
2140 if test -f $ac_dir/$ac_word; then
2148 if test -n "$CC"; then
2149 echo "$ac_t""$CC" 1>&6
2151 echo "$ac_t""no" 1>&6
2156 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2159 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2160 echo "configure:2161: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2163 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2164 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2165 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2166 ac_cpp='$CPP '"$xe_cppflags"
2167 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2168 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2171 cat > conftest.$ac_ext << EOF
2173 #line 2174 "configure"
2174 #include "confdefs.h"
2178 if { (eval echo configure:2179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2179 ac_cv_prog_cc_works=yes
2180 # If we can't run a trivial program, we are probably using a cross compiler.
2181 if (./conftest; exit) 2>/dev/null; then
2182 ac_cv_prog_cc_cross=no
2184 ac_cv_prog_cc_cross=yes
2187 echo "configure: failed program was:" >&5
2188 cat conftest.$ac_ext >&5
2189 ac_cv_prog_cc_works=no
2193 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2194 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2195 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2196 ac_cpp='$CPP '"$xe_cppflags"
2197 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2198 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2201 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2202 if test $ac_cv_prog_cc_works = no; then
2203 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2205 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2206 echo "configure:2207: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2207 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2208 cross_compiling=$ac_cv_prog_cc_cross
2210 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2211 echo "configure:2212: checking whether we are using GNU C" >&5
2213 cat > conftest.c <<EOF
2218 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2224 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2226 if test $ac_cv_prog_gcc = yes; then
2232 ac_test_CFLAGS="${CFLAGS+set}"
2233 ac_save_CFLAGS="$CFLAGS"
2235 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2236 echo "configure:2237: checking whether ${CC-cc} accepts -g" >&5
2238 echo 'void f(){}' > conftest.c
2239 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2247 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2248 if test "$ac_test_CFLAGS" = set; then
2249 CFLAGS="$ac_save_CFLAGS"
2250 elif test $ac_cv_prog_cc_g = yes; then
2251 if test "$GCC" = yes; then
2257 if test "$GCC" = yes; then
2265 CFLAGS="$xe_save_CFLAGS"
2268 test -n "$CPP" -a -d "$CPP" && CPP=
2270 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2272 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2273 echo "configure:2274: checking how to run the C preprocessor" >&5
2274 # On Suns, sometimes $CPP names a directory.
2275 if test -n "$CPP" && test -d "$CPP"; then
2278 if test -z "$CPP"; then
2280 # This must be in double quotes, not single quotes, because CPP may get
2281 # substituted into the Makefile and "${CC-cc}" will confuse make.
2283 # On the NeXT, cc -E runs the code through the compiler's parser,
2284 # not just through cpp.
2285 cat > conftest.$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2292 { (eval echo configure:2293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2294 if test -z "$ac_err"; then
2298 echo "configure: failed program was:" >&5
2299 cat conftest.$ac_ext >&5
2301 CPP="${CC-cc} -E -traditional-cpp"
2302 cat > conftest.$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2309 { (eval echo configure:2310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2311 if test -z "$ac_err"; then
2315 echo "configure: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2318 CPP="${CC-cc} -nologo -E"
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2326 { (eval echo configure:2327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2328 if test -z "$ac_err"; then
2332 echo "configure: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2342 ac_cv_prog_CPP="$CPP"
2343 CPP="$ac_cv_prog_CPP"
2345 ac_cv_prog_CPP="$CPP"
2347 echo "$ac_t""$CPP" 1>&6
2351 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2352 echo "configure:2353: checking for AIX" >&5
2353 cat > conftest.$ac_ext <<EOF
2354 #line 2355 "configure"
2355 #include "confdefs.h"
2361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2362 egrep "yes" >/dev/null 2>&1; then
2364 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2365 Defining _ALL_SOURCE
2367 cat >> confdefs.h <<\EOF
2368 #define _ALL_SOURCE 1
2374 echo "$ac_t""no" 1>&6
2380 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2381 echo "configure:2382: checking for GNU libc" >&5
2382 cat > conftest.$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2385 #include <features.h>
2388 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2389 #error Not a GNU libc system :-(
2390 ******* ======= ******** &&&&&&&&
2395 if { (eval echo configure:2396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2399 echo "configure: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2405 echo "$ac_t""$have_glibc" 1>&6
2406 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2407 Defining _GNU_SOURCE
2409 cat >> confdefs.h <<\EOF
2410 #define _GNU_SOURCE 1
2417 { test "$extra_verbose" = "yes" && cat << \EOF
2418 Defining __EXTENSIONS__
2420 cat >> confdefs.h <<\EOF
2421 #define __EXTENSIONS__ 1
2425 if test "$os_release" -ge 55; then
2426 { test "$extra_verbose" = "yes" && cat << \EOF
2427 Defining _XOPEN_SOURCE = 500
2429 cat >> confdefs.h <<\EOF
2430 #define _XOPEN_SOURCE 500
2434 { test "$extra_verbose" = "yes" && cat << \EOF
2435 Defining _XOPEN_SOURCE_EXTENDED
2437 cat >> confdefs.h <<\EOF
2438 #define _XOPEN_SOURCE_EXTENDED 1
2444 { test "$extra_verbose" = "yes" && cat << \EOF
2445 Defining _POSIX_C_SOURCE = 199506L
2447 cat >> confdefs.h <<\EOF
2448 #define _POSIX_C_SOURCE 199506L
2452 { test "$extra_verbose" = "yes" && cat << \EOF
2453 Defining _XOPEN_SOURCE = 500
2455 cat >> confdefs.h <<\EOF
2456 #define _XOPEN_SOURCE 500
2460 { test "$extra_verbose" = "yes" && cat << \EOF
2461 Defining _XOPEN_SOURCE_EXTENDED
2463 cat >> confdefs.h <<\EOF
2464 #define _XOPEN_SOURCE_EXTENDED 1
2471 cat > conftest.$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2475 #if defined __SUNPRO_C
2477 #elif defined __DECC
2479 #elif defined __USLC__ && defined __SCO_VERSION__
2486 if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2491 echo "configure: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2494 case "$conftest_rc" in
2495 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2496 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2497 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2505 echo "Extracting information from the machine- and system-dependent headers..."
2507 tempcname="conftest.c"
2511 cat > $tempcname < confdefs.h
2512 cat >> $tempcname <<EOF
2514 #define C_SWITCH_SITE
2515 #define C_SWITCH_X_SITE
2516 #define LD_SWITCH_SITE
2517 #define LD_SWITCH_X_SITE
2518 #define LD_SWITCH_X_SITE_AUX
2519 #define OS_RELEASE $os_release
2521 #ifdef config_opsysfile
2522 #include "$srcdir/src/$opsysfile"
2525 #ifdef config_machfile
2526 #include "$srcdir/src/$machfile"
2529 #ifndef LIBS_MACHINE
2530 #define LIBS_MACHINE
2532 configure___ libs_machine=LIBS_MACHINE
2537 configure___ libs_system=LIBS_SYSTEM
2539 #ifndef LIBS_TERMCAP
2540 #define LIBS_TERMCAP
2542 configure___ libs_termcap=LIBS_TERMCAP
2544 #ifndef LIB_STANDARD
2545 #define LIB_STANDARD
2547 configure___ libs_standard=LIB_STANDARD
2550 #ifndef OBJECTS_MACHINE
2551 #define OBJECTS_MACHINE
2553 configure___ objects_machine=OBJECTS_MACHINE
2555 #ifndef OBJECTS_SYSTEM
2556 #define OBJECTS_SYSTEM
2558 configure___ objects_system=OBJECTS_SYSTEM
2561 #ifndef C_SWITCH_MACHINE
2562 #define C_SWITCH_MACHINE
2564 configure___ c_switch_machine=C_SWITCH_MACHINE
2566 #ifndef C_SWITCH_SYSTEM
2567 #define C_SWITCH_SYSTEM
2569 configure___ c_switch_system=C_SWITCH_SYSTEM
2572 #ifndef LD_SWITCH_MACHINE
2573 #define LD_SWITCH_MACHINE
2575 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2577 #ifndef LD_SWITCH_SYSTEM
2578 #define LD_SWITCH_SYSTEM
2580 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2584 #define UNEXEC "unexec.o"
2586 configure___ unexec=UNEXEC
2589 #ifndef LD_SWITCH_SHARED
2590 #define LD_SWITCH_SHARED "-c"
2592 configure___ ld_switch_shared=LD_SWITCH_SHARED
2595 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2596 configure___ ordinary_ld=ORDINARY_LD
2598 #ifdef ORDINARY_LINK
2599 #define LD ORDINARY_LD
2600 #else /* no ORDINARY LINK */
2601 #ifdef COFF_ENCAPSULATE
2602 #define LD "\$(CC) -nostdlib"
2603 #else /* not COFF_ENCAPSULATE */
2606 #else /* ! defined (LINKER) */
2608 #endif /* ! defined (LINKER) */
2609 #endif /* ! defined (COFF_ENCAPSULATE) */
2610 #endif /* not ORDINARY_LINK */
2616 configure___ lib_gcc=LIB_GCC
2618 #ifndef LD_TEXT_START_ADDR
2619 #define LD_TEXT_START_ADDR
2621 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2624 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2626 #ifdef COFF_ENCAPSULATE
2627 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2628 #else /* ! defined (COFF_ENCAPSULATE) */
2629 #define START_FILES "pre-crt0.o /lib/crt0.o"
2630 #endif /* ! defined (COFF_ENCAPSULATE) */
2631 #else /* ! defined (NO_REMAP) */
2632 #define START_FILES "ecrt0.o"
2633 #endif /* ! defined (NO_REMAP) */
2634 #endif /* no ORDINARY_LINK */
2638 configure___ start_files=START_FILES
2640 #ifdef ORDINARY_LINK
2641 configure___ ordinary_link=yes
2643 configure___ ordinary_link=no
2646 #ifdef SYSTEM_MALLOC
2647 configure___ system_malloc=yes
2649 configure___ system_malloc=no
2653 configure___ have_terminfo=yes
2655 configure___ have_terminfo=no
2658 #ifdef MAIL_USE_FLOCK
2659 configure___ mail_use_flock=yes
2661 configure___ mail_use_flock=no
2664 #ifdef MAIL_USE_LOCKF
2665 configure___ mail_use_lockf=yes
2667 configure___ mail_use_lockf=no
2670 #ifdef MAIL_USE_LOCKING
2671 configure___ mail_use_locking=yes
2673 configure___ mail_use_locking=no
2676 #ifdef HAVE_WIN32_PROCESSES
2677 configure___ win32_processes=yes
2679 configure___ win32_processes=no
2684 CPP=`eval "echo $CPP $CPPFLAGS"`
2685 eval `$CPP -Isrc $tempcname \
2686 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2690 if test "$pdump" = "yes"; then
2699 test "$extra_verbose" = "yes" && \
2700 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 ""
2702 case "$opsys" in mingw* | cygwin*)
2703 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2704 cygwin_include=`eval "dirname $cygwin_include"` ;
2705 cygwin_include="-I$cygwin_include/../include" ;
2706 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2707 case "$opsys" in mingw*)
2708 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2713 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2716 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2718 if test "$__USLC__" = yes; then
2719 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2720 echo "configure:2721: checking for whether the -Kalloca compiler flag is needed" >&5
2722 cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2727 void *x = alloca(4);
2730 if { (eval echo configure:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2734 echo "configure: failed program was:" >&5
2735 cat conftest.$ac_ext >&5
2738 xe_save_c_switch_system="$c_switch_system"
2739 c_switch_system="$c_switch_system -Kalloca"
2740 cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2745 void *x = alloca(4);
2748 if { (eval echo configure:2749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2752 echo "configure: failed program was:" >&5
2753 cat conftest.$ac_ext >&5
2756 c_switch_system="$xe_save_c_switch_system"
2759 echo "$ac_t""$need_kalloca" 1>&6
2760 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi
2763 if test "$cflags_specified" = "no"; then
2764 if test "$GCC" = "yes"; then
2765 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow"
2766 CFLAGS="$CFLAGS -Wsign-compare"
2767 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2768 elif test "$__SUNPRO_C" = "yes"; then
2770 sol2 ) CFLAGS="-v -xO4" ;;
2771 sunos4* ) CFLAGS="-xO2";;
2773 elif test "$__DECC" = "yes"; then
2775 elif test "$CC" = "xlc"; then
2776 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2781 if test "$GCC" = "yes"; then
2782 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2783 echo "configure:2784: checking for buggy gcc versions" >&5
2784 GCC_VERSION=`$CC --version`
2785 case `uname -s`:`uname -m`:$GCC_VERSION in
2786 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2790 *-fno-schedule-insns*) ;;
2792 echo "$ac_t""yes" 1>&6
2793 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2794 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2795 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2801 Linux:alpha:egcs-2.91.*)
2802 echo "$ac_t""yes" 1>&6
2803 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2804 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2805 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2810 case "$GCC_VERSION" in
2813 *-fno-strength-reduce*) ;;
2815 echo "$ac_t""yes" 1>&6
2816 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2817 echo "configure: warning: -fno-strength-reduce." 1>&2
2818 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2824 *-fno-caller-saves*) ;;
2826 echo "$ac_t""yes" 1>&6
2827 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2828 echo "configure: warning: -fno-caller-saves." 1>&2
2829 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2836 echo "$ac_t""no" 1>&6
2840 if test "$GCC" = "yes"; then
2841 set x $ld_switch_system; shift; ld_switch_system=""
2842 while test -n "$1"; do
2844 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2845 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2847 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2853 if test "$GCC" = "yes"; then
2854 set x $ld_switch_machine; shift; ld_switch_machine=""
2855 while test -n "$1"; do
2857 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2858 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2860 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2866 if test "$GCC" = "yes"; then
2867 set x $LDFLAGS; shift; LDFLAGS=""
2868 while test -n "$1"; do
2870 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2871 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2873 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2879 if test "$GCC" = "yes"; then
2880 set x $ld_call_shared; shift; ld_call_shared=""
2881 while test -n "$1"; do
2883 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2884 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2886 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2892 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2893 echo " xemacs will be linked with \"$objects_machine\""
2895 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2896 echo " xemacs will be linked with \"$objects_system\""
2898 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2899 echo " xemacs will be linked with \"$unexec\""
2901 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2902 echo " xemacs will be linked with \"dumper.o\""
2905 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2906 echo "configure:2907: checking for dynodump" >&5
2907 if test "$unexec" != "unexsol2.o"; then
2908 echo "$ac_t""no" 1>&6
2910 echo "$ac_t""yes" 1>&6
2911 { test "$extra_verbose" = "yes" && cat << \EOF
2914 cat >> confdefs.h <<\EOF
2919 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2920 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2922 sparc ) dynodump_arch=sparc ;;
2923 *86* ) dynodump_arch=i386 ;;
2924 powerpc ) dynodump_arch=ppc ;;
2926 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
2930 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2932 if test "$unexec" = "unexaix.o"; then
2933 if test "$dynamic" = "no"; then
2934 start_flags="-Wl,-bnso,-bnodelcsect"
2935 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2936 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2937 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2939 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2940 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2943 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2944 echo "configure:2945: checking for terminateAndUnload in -lC" >&5
2945 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2947 xe_check_libs=" -lC "
2948 cat > conftest.$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2951 /* Override any gcc2 internal prototype to avoid an error. */
2952 /* We use char because int might match the return type of a gcc2
2953 builtin and then its argument prototype would still apply. */
2954 char terminateAndUnload();
2957 terminateAndUnload()
2960 if { (eval echo configure:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2962 eval "ac_cv_lib_$ac_lib_var=yes"
2964 echo "configure: failed program was:" >&5
2965 cat conftest.$ac_ext >&5
2967 eval "ac_cv_lib_$ac_lib_var=no"
2972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2973 echo "$ac_t""yes" 1>&6
2974 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2976 echo "$ac_t""no" 1>&6
2981 elif test -n "$ld_text_start_addr"; then
2982 start_flags="-T $ld_text_start_addr -e __start"
2988 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2989 test -z "$linker" && linker='$(CC) -nostdlib'
2990 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2992 test "$GCC" != "yes" && lib_gcc=
2998 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2999 if test -n "$site_libraries"; then
3000 for arg in $site_libraries; do
3003 * ) test -d "$arg" || \
3004 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3007 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3011 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3012 if test -n "$site_includes"; then
3013 for arg in $site_includes; do
3016 * ) test -d "$arg" || \
3017 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3020 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3024 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3025 if test -n "$site_prefixes"; then
3026 for dir in $site_prefixes; do
3027 lib_dir="${dir}/lib"
3028 inc_dir="${dir}/include"
3029 if test ! -d "$dir"; then
3030 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3031 elif test ! -d "$lib_dir"; then
3032 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3034 if test -d "$inc_dir"; then
3035 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
3037 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
3043 for dir in "/usr/ccs/lib"; do
3044 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
3047 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3048 if test -n "$site_runtime_libraries"; then
3049 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3057 if test -n "$add_runtime_path"; then :;
3058 elif test "$dynamic" = "no"; then add_runtime_path=no
3059 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3060 else case "$opsys" in
3061 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3062 * ) add_runtime_path=no ;;
3066 if test "$add_runtime_path" = "yes"; then
3067 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3068 echo "configure:3069: checking "for runtime libraries flag"" >&5
3070 sol2 ) dash_r="-R" ;;
3071 decosf* | linux* | irix*) dash_r="-rpath " ;;
3074 for try_dash_r in "-R" "-R " "-rpath "; do
3075 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3077 if test "$GCC" = "yes"; then
3078 set x $xe_check_libs; shift; xe_check_libs=""
3079 while test -n "$1"; do
3081 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3082 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3084 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3089 cat > conftest.$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3097 if { (eval echo configure:3098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3099 dash_r="$try_dash_r"
3101 echo "configure: failed program was:" >&5
3102 cat conftest.$ac_ext >&5
3106 test -n "$dash_r" && break
3109 if test -n "$dash_r";
3110 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3111 else echo "$ac_t""NONE" 1>&6
3115 xe_add_unique_runpath_dir='
3117 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3119 if test "$xe_add_p" = "yes"; then
3120 test -n "$runpath" && runpath="${runpath}:"
3121 runpath="${runpath}${xe_runpath_dir}"
3122 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3128 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3129 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3130 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3132 runpath="" runpath_dirs=""
3133 if test -n "$LD_RUN_PATH"; then
3134 runpath="$LD_RUN_PATH"
3135 elif test "$GCC" = "yes"; then
3136 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3137 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3138 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3139 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3140 case "$arg" in P,* | -L* | -R* )
3141 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3143 xe_runpath_dir="$dir"
3144 test "$xe_runpath_dir" != "/lib" -a \
3145 "$xe_runpath_dir" != "/usr/lib" -a \
3146 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3147 eval "$xe_add_unique_runpath_dir"
3152 ld_switch_run="$ld_switch_run_save"
3155 for arg in $ld_switch_site $ld_switch_x_site; do
3156 case "$arg" in -L*) {
3157 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3158 test "$xe_runpath_dir" != "/lib" -a \
3159 "$xe_runpath_dir" != "/usr/lib" -a \
3160 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3161 eval "$xe_add_unique_runpath_dir"
3164 if test "$opsys $need_motif" = "sol2 yes"; then
3165 xe_runpath_dir="/opt/SUNWdt/lib";
3166 eval "$xe_add_unique_runpath_dir";
3169 if test -n "$runpath"; then
3170 ld_switch_run="${dash_r}${runpath}"
3172 if test "$GCC" = "yes"; then
3173 set x $ld_switch_run; shift; ld_switch_run=""
3174 while test -n "$1"; do
3176 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3177 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3179 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3184 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3191 if test "$with_dlmalloc" != "no"; then
3196 after_morecore_hook_exists=yes
3197 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3198 echo "configure:3199: checking for malloc_set_state" >&5
3200 cat > conftest.$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3203 /* System header to define __stub macros and hopefully few prototypes,
3204 which can conflict with char malloc_set_state(); below. */
3206 /* Override any gcc2 internal prototype to avoid an error. */
3207 /* We use char because int might match the return type of a gcc2
3208 builtin and then its argument prototype would still apply. */
3209 char malloc_set_state();
3213 /* The GNU C library defines this for functions which it implements
3214 to always fail with ENOSYS. Some functions are actually named
3215 something starting with __ and the normal name is an alias. */
3216 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3224 if { (eval echo configure:3225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3226 eval "ac_cv_func_malloc_set_state=yes"
3228 echo "configure: failed program was:" >&5
3229 cat conftest.$ac_ext >&5
3231 eval "ac_cv_func_malloc_set_state=no"
3235 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3236 echo "$ac_t""yes" 1>&6
3239 echo "$ac_t""no" 1>&6
3243 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3244 echo "configure:3245: checking whether __after_morecore_hook exists" >&5
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3248 extern void (* __after_morecore_hook)();
3250 __after_morecore_hook = 0
3253 if { (eval echo configure:3254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3255 echo "$ac_t""yes" 1>&6
3257 echo "configure: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3260 echo "$ac_t""no" 1>&6
3261 after_morecore_hook_exists=no
3264 if test "$system_malloc" = "yes" ; then
3267 - The GNU allocators don't work with this system configuration."
3268 elif test "$with_system_malloc" = "yes" ; then
3271 - User chose not to use GNU allocators."
3272 elif test "$with_debug_malloc" = "yes" ; then
3275 - User chose to use Debugging Malloc."
3278 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3280 - Using Doug Lea's new malloc from the GNU C Library."
3281 { test "$extra_verbose" = "yes" && cat << \EOF
3282 Defining DOUG_LEA_MALLOC
3284 cat >> confdefs.h <<\EOF
3285 #define DOUG_LEA_MALLOC 1
3289 if test "$after_morecore_hook_exists" = "no" ; then
3291 - Using Doug Lea's new malloc from the Linux C Library."
3292 { test "$extra_verbose" = "yes" && cat << \EOF
3293 Defining _NO_MALLOC_WARNING_
3295 cat >> confdefs.h <<\EOF
3296 #define _NO_MALLOC_WARNING_ 1
3306 # Extract the first word of "ranlib", so it can be a program name with args.
3307 set dummy ranlib; ac_word=$2
3308 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3309 echo "configure:3310: checking for $ac_word" >&5
3311 if test -n "$RANLIB"; then
3312 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3316 for ac_dir in $ac_dummy; do
3317 test -z "$ac_dir" && ac_dir=.
3318 if test -f $ac_dir/$ac_word; then
3319 ac_cv_prog_RANLIB="ranlib"
3324 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3326 RANLIB="$ac_cv_prog_RANLIB"
3327 if test -n "$RANLIB"; then
3328 echo "$ac_t""$RANLIB" 1>&6
3330 echo "$ac_t""no" 1>&6
3334 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3335 if test -f $ac_dir/install-sh; then
3337 ac_install_sh="$ac_aux_dir/install-sh -c"
3339 elif test -f $ac_dir/install.sh; then
3341 ac_install_sh="$ac_aux_dir/install.sh -c"
3345 if test -z "$ac_aux_dir"; then
3346 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3348 ac_config_guess=$ac_aux_dir/config.guess
3349 ac_config_sub=$ac_aux_dir/config.sub
3350 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3352 # Find a good install program. We prefer a C program (faster),
3353 # so one script is as good as another. But avoid the broken or
3354 # incompatible versions:
3355 # SysV /etc/install, /usr/sbin/install
3356 # SunOS /usr/etc/install
3357 # IRIX /sbin/install
3359 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3360 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3361 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3362 # ./install, which can be erroneously created by make from ./install.sh.
3363 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3364 echo "configure:3365: checking for a BSD compatible install" >&5
3365 if test -z "$INSTALL"; then
3367 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3368 for ac_dir in $PATH; do
3369 # Account for people who put trailing slashes in PATH elements.
3371 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3373 # OSF1 and SCO ODT 3.0 have their own names for install.
3374 # Don't use installbsd from OSF since it installs stuff as root
3376 for ac_prog in ginstall scoinst install; do
3377 if test -f $ac_dir/$ac_prog; then
3378 if test $ac_prog = install &&
3379 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3380 # AIX install. It has an incompatible calling convention.
3383 ac_cv_path_install="$ac_dir/$ac_prog -c"
3393 if test "${ac_cv_path_install+set}" = set; then
3394 INSTALL="$ac_cv_path_install"
3396 # As a last resort, use the slow shell script. We don't cache a
3397 # path for INSTALL within a source directory, because that will
3398 # break other packages using the cache if that directory is
3399 # removed, or if the path is relative.
3400 INSTALL="$ac_install_sh"
3403 echo "$ac_t""$INSTALL" 1>&6
3405 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3406 # It thinks the first close brace ends the variable substitution.
3407 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3409 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3411 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3413 for ac_prog in 'bison -y' byacc
3415 # Extract the first word of "$ac_prog", so it can be a program name with args.
3416 set dummy $ac_prog; ac_word=$2
3417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3418 echo "configure:3419: checking for $ac_word" >&5
3420 if test -n "$YACC"; then
3421 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3425 for ac_dir in $ac_dummy; do
3426 test -z "$ac_dir" && ac_dir=.
3427 if test -f $ac_dir/$ac_word; then
3428 ac_cv_prog_YACC="$ac_prog"
3434 YACC="$ac_cv_prog_YACC"
3435 if test -n "$YACC"; then
3436 echo "$ac_t""$YACC" 1>&6
3438 echo "$ac_t""no" 1>&6
3441 test -n "$YACC" && break
3443 test -n "$YACC" || YACC="yacc"
3446 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h
3448 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3449 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3450 echo "configure:3451: checking for $ac_hdr" >&5
3452 cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3458 { (eval echo configure:3459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3460 if test -z "$ac_err"; then
3462 eval "ac_cv_header_$ac_safe=yes"
3465 echo "configure: failed program was:" >&5
3466 cat conftest.$ac_ext >&5
3468 eval "ac_cv_header_$ac_safe=no"
3471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3472 echo "$ac_t""yes" 1>&6
3473 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3474 { test "$extra_verbose" = "yes" && cat << EOF
3477 cat >> confdefs.h <<EOF
3478 #define $ac_tr_hdr 1
3483 echo "$ac_t""no" 1>&6
3487 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3488 echo "configure:3489: checking for sys/wait.h that is POSIX.1 compatible" >&5
3490 cat > conftest.$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3493 #include <sys/types.h>
3494 #include <sys/wait.h>
3496 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3499 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3504 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3507 if { (eval echo configure:3508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3509 ac_cv_header_sys_wait_h=yes
3511 echo "configure: failed program was:" >&5
3512 cat conftest.$ac_ext >&5
3514 ac_cv_header_sys_wait_h=no
3518 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3519 if test $ac_cv_header_sys_wait_h = yes; then
3520 { test "$extra_verbose" = "yes" && cat << \EOF
3521 Defining HAVE_SYS_WAIT_H
3523 cat >> confdefs.h <<\EOF
3524 #define HAVE_SYS_WAIT_H 1
3530 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3531 echo "configure:3532: checking for ANSI C header files" >&5
3533 cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3542 { (eval echo configure:3543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3544 if test -z "$ac_err"; then
3546 ac_cv_header_stdc=yes
3549 echo "configure: failed program was:" >&5
3550 cat conftest.$ac_ext >&5
3552 ac_cv_header_stdc=no
3556 if test $ac_cv_header_stdc = yes; then
3557 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3558 cat > conftest.$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3564 egrep "memchr" >/dev/null 2>&1; then
3568 ac_cv_header_stdc=no
3574 if test $ac_cv_header_stdc = yes; then
3575 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3576 cat > conftest.$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3582 egrep "free" >/dev/null 2>&1; then
3586 ac_cv_header_stdc=no
3592 if test $ac_cv_header_stdc = yes; then
3593 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3594 cat > conftest.$ac_ext <<EOF
3595 #line 3596 "configure"
3596 #include "confdefs.h"
3598 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3599 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3600 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3601 int main () { int i; for (i = 0; i < 256; i++)
3602 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3606 if { (eval echo configure:3607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3611 echo "configure: failed program was:" >&5
3612 cat conftest.$ac_ext >&5
3614 ac_cv_header_stdc=no
3619 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3620 if test $ac_cv_header_stdc = yes; then
3621 { test "$extra_verbose" = "yes" && cat << \EOF
3622 Defining STDC_HEADERS
3624 cat >> confdefs.h <<\EOF
3625 #define STDC_HEADERS 1
3631 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3632 echo "configure:3633: checking whether time.h and sys/time.h may both be included" >&5
3634 cat > conftest.$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3637 #include <sys/types.h>
3638 #include <sys/time.h>
3644 if { (eval echo configure:3645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3646 ac_cv_header_time=yes
3648 echo "configure: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3651 ac_cv_header_time=no
3655 echo "$ac_t""$ac_cv_header_time" 1>&6
3656 if test $ac_cv_header_time = yes; then
3657 { test "$extra_verbose" = "yes" && cat << \EOF
3658 Defining TIME_WITH_SYS_TIME
3660 cat >> confdefs.h <<\EOF
3661 #define TIME_WITH_SYS_TIME 1
3667 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3668 echo "configure:3669: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3670 cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3673 #include <sys/types.h>
3675 /* NetBSD declares sys_siglist in unistd.h. */
3676 #ifdef HAVE_UNISTD_H
3680 char *msg = *(sys_siglist + 1);
3683 if { (eval echo configure:3684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3685 ac_cv_decl_sys_siglist=yes
3687 echo "configure: failed program was:" >&5
3688 cat conftest.$ac_ext >&5
3690 ac_cv_decl_sys_siglist=no
3694 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3695 if test $ac_cv_decl_sys_siglist = yes; then
3696 { test "$extra_verbose" = "yes" && cat << \EOF
3697 Defining SYS_SIGLIST_DECLARED
3699 cat >> confdefs.h <<\EOF
3700 #define SYS_SIGLIST_DECLARED 1
3708 echo $ac_n "checking for utime""... $ac_c" 1>&6
3709 echo "configure:3710: checking for utime" >&5
3710 cat > conftest.$ac_ext <<EOF
3711 #line 3712 "configure"
3712 #include "confdefs.h"
3713 #include <sys/types.h>
3716 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3719 if { (eval echo configure:3720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3721 echo "$ac_t""yes" 1>&6
3722 { test "$extra_verbose" = "yes" && cat << \EOF
3725 cat >> confdefs.h <<\EOF
3726 #define HAVE_UTIME 1
3731 echo "configure: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3734 echo "$ac_t""no" 1>&6
3735 for ac_func in utimes
3737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3738 echo "configure:3739: checking for $ac_func" >&5
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 /* System header to define __stub macros and hopefully few prototypes,
3744 which can conflict with char $ac_func(); below. */
3746 /* Override any gcc2 internal prototype to avoid an error. */
3747 /* We use char because int might match the return type of a gcc2
3748 builtin and then its argument prototype would still apply. */
3753 /* The GNU C library defines this for functions which it implements
3754 to always fail with ENOSYS. Some functions are actually named
3755 something starting with __ and the normal name is an alias. */
3756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3764 if { (eval echo configure:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3766 eval "ac_cv_func_$ac_func=yes"
3768 echo "configure: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3771 eval "ac_cv_func_$ac_func=no"
3775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3776 echo "$ac_t""yes" 1>&6
3777 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3778 { test "$extra_verbose" = "yes" && cat << EOF
3779 Defining $ac_tr_func
3781 cat >> confdefs.h <<EOF
3782 #define $ac_tr_func 1
3787 echo "$ac_t""no" 1>&6
3795 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3796 echo "configure:3797: checking return type of signal handlers" >&5
3798 cat > conftest.$ac_ext <<EOF
3799 #line 3800 "configure"
3800 #include "confdefs.h"
3801 #include <sys/types.h>
3807 extern "C" void (*signal (int, void (*)(int)))(int);
3809 void (*signal ()) ();
3816 if { (eval echo configure:3817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3818 ac_cv_type_signal=void
3820 echo "configure: failed program was:" >&5
3821 cat conftest.$ac_ext >&5
3823 ac_cv_type_signal=int
3827 echo "$ac_t""$ac_cv_type_signal" 1>&6
3828 { test "$extra_verbose" = "yes" && cat << EOF
3829 Defining RETSIGTYPE = $ac_cv_type_signal
3831 cat >> confdefs.h <<EOF
3832 #define RETSIGTYPE $ac_cv_type_signal
3837 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3838 echo "configure:3839: checking for size_t" >&5
3840 cat > conftest.$ac_ext <<EOF
3841 #line 3842 "configure"
3842 #include "confdefs.h"
3843 #include <sys/types.h>
3849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3850 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3852 ac_cv_type_size_t=yes
3855 ac_cv_type_size_t=no
3859 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3860 if test $ac_cv_type_size_t = no; then
3861 { test "$extra_verbose" = "yes" && cat << \EOF
3862 Defining size_t = unsigned
3864 cat >> confdefs.h <<\EOF
3865 #define size_t unsigned
3871 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3872 echo "configure:3873: checking for pid_t" >&5
3874 cat > conftest.$ac_ext <<EOF
3875 #line 3876 "configure"
3876 #include "confdefs.h"
3877 #include <sys/types.h>
3883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3884 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3886 ac_cv_type_pid_t=yes
3893 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3894 if test $ac_cv_type_pid_t = no; then
3895 { test "$extra_verbose" = "yes" && cat << \EOF
3896 Defining pid_t = int
3898 cat >> confdefs.h <<\EOF
3905 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3906 echo "configure:3907: checking for uid_t in sys/types.h" >&5
3908 cat > conftest.$ac_ext <<EOF
3909 #line 3910 "configure"
3910 #include "confdefs.h"
3911 #include <sys/types.h>
3913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3914 egrep "uid_t" >/dev/null 2>&1; then
3916 ac_cv_type_uid_t=yes
3924 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3925 if test $ac_cv_type_uid_t = no; then
3926 { test "$extra_verbose" = "yes" && cat << \EOF
3927 Defining uid_t = int
3929 cat >> confdefs.h <<\EOF
3934 { test "$extra_verbose" = "yes" && cat << \EOF
3935 Defining gid_t = int
3937 cat >> confdefs.h <<\EOF
3944 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3945 echo "configure:3946: checking for mode_t" >&5
3947 cat > conftest.$ac_ext <<EOF
3948 #line 3949 "configure"
3949 #include "confdefs.h"
3950 #include <sys/types.h>
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3959 ac_cv_type_mode_t=yes
3962 ac_cv_type_mode_t=no
3966 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3967 if test $ac_cv_type_mode_t = no; then
3968 { test "$extra_verbose" = "yes" && cat << \EOF
3969 Defining mode_t = int
3971 cat >> confdefs.h <<\EOF
3978 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3979 echo "configure:3980: checking for off_t" >&5
3981 cat > conftest.$ac_ext <<EOF
3982 #line 3983 "configure"
3983 #include "confdefs.h"
3984 #include <sys/types.h>
3990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3991 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3993 ac_cv_type_off_t=yes
4000 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4001 if test $ac_cv_type_off_t = no; then
4002 { test "$extra_verbose" = "yes" && cat << \EOF
4003 Defining off_t = long
4005 cat >> confdefs.h <<\EOF
4012 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4013 echo "configure:4014: checking for ssize_t" >&5
4015 cat > conftest.$ac_ext <<EOF
4016 #line 4017 "configure"
4017 #include "confdefs.h"
4018 #include <sys/types.h>
4024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4025 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4027 ac_cv_type_ssize_t=yes
4030 ac_cv_type_ssize_t=no
4034 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4035 if test $ac_cv_type_ssize_t = no; then
4036 { test "$extra_verbose" = "yes" && cat << \EOF
4037 Defining ssize_t = int
4039 cat >> confdefs.h <<\EOF
4047 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4048 echo "configure:4049: checking for socklen_t" >&5
4049 cat > conftest.$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4052 #include <sys/socket.h>
4059 if { (eval echo configure:4060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4061 echo "$ac_t""yes" 1>&6
4063 echo "configure: failed program was:" >&5
4064 cat conftest.$ac_ext >&5
4067 cat > conftest.$ac_ext <<EOF
4068 #line 4069 "configure"
4069 #include "confdefs.h"
4070 #include <sys/socket.h>
4071 int accept (int, struct sockaddr *, size_t *);
4077 if { (eval echo configure:4078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4080 echo "$ac_t""size_t" 1>&6
4081 { test "$extra_verbose" = "yes" && cat << \EOF
4082 Defining socklen_t = size_t
4084 cat >> confdefs.h <<\EOF
4085 #define socklen_t size_t
4090 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5
4094 echo "$ac_t""int" 1>&6
4095 { test "$extra_verbose" = "yes" && cat << \EOF
4096 Defining socklen_t = int
4098 cat >> confdefs.h <<\EOF
4099 #define socklen_t int
4108 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4109 echo "configure:4110: checking for struct timeval" >&5
4110 cat > conftest.$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4113 #ifdef TIME_WITH_SYS_TIME
4114 #include <sys/time.h>
4117 #ifdef HAVE_SYS_TIME_H
4118 #include <sys/time.h>
4124 static struct timeval x; x.tv_sec = x.tv_usec;
4127 if { (eval echo configure:4128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4129 echo "$ac_t""yes" 1>&6
4131 { test "$extra_verbose" = "yes" && cat << \EOF
4132 Defining HAVE_TIMEVAL
4134 cat >> confdefs.h <<\EOF
4135 #define HAVE_TIMEVAL 1
4140 echo "configure: failed program was:" >&5
4141 cat conftest.$ac_ext >&5
4143 echo "$ac_t""no" 1>&6
4148 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4149 echo "configure:4150: checking whether struct tm is in sys/time.h or time.h" >&5
4151 cat > conftest.$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4154 #include <sys/types.h>
4157 struct tm *tp; tp->tm_sec;
4160 if { (eval echo configure:4161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4162 ac_cv_struct_tm=time.h
4164 echo "configure: failed program was:" >&5
4165 cat conftest.$ac_ext >&5
4167 ac_cv_struct_tm=sys/time.h
4171 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4172 if test $ac_cv_struct_tm = sys/time.h; then
4173 { test "$extra_verbose" = "yes" && cat << \EOF
4174 Defining TM_IN_SYS_TIME
4176 cat >> confdefs.h <<\EOF
4177 #define TM_IN_SYS_TIME 1
4183 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4184 echo "configure:4185: checking for tm_zone in struct tm" >&5
4186 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4189 #include <sys/types.h>
4190 #include <$ac_cv_struct_tm>
4192 struct tm tm; tm.tm_zone;
4195 if { (eval echo configure:4196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4197 ac_cv_struct_tm_zone=yes
4199 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4202 ac_cv_struct_tm_zone=no
4206 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4207 if test "$ac_cv_struct_tm_zone" = yes; then
4208 { test "$extra_verbose" = "yes" && cat << \EOF
4209 Defining HAVE_TM_ZONE
4211 cat >> confdefs.h <<\EOF
4212 #define HAVE_TM_ZONE 1
4217 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4218 echo "configure:4219: checking for tzname" >&5
4220 cat > conftest.$ac_ext <<EOF
4221 #line 4222 "configure"
4222 #include "confdefs.h"
4224 #ifndef tzname /* For SGI. */
4225 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4231 if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4233 ac_cv_var_tzname=yes
4235 echo "configure: failed program was:" >&5
4236 cat conftest.$ac_ext >&5
4242 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4243 if test $ac_cv_var_tzname = yes; then
4244 { test "$extra_verbose" = "yes" && cat << \EOF
4245 Defining HAVE_TZNAME
4247 cat >> confdefs.h <<\EOF
4248 #define HAVE_TZNAME 1
4256 echo $ac_n "checking for working const""... $ac_c" 1>&6
4257 echo "configure:4258: checking for working const" >&5
4259 cat > conftest.$ac_ext <<EOF
4260 #line 4261 "configure"
4261 #include "confdefs.h"
4265 /* Ultrix mips cc rejects this. */
4266 typedef int charset[2]; const charset x;
4267 /* SunOS 4.1.1 cc rejects this. */
4268 char const *const *ccp;
4270 /* NEC SVR4.0.2 mips cc rejects this. */
4271 struct point {int x, y;};
4272 static struct point const zero = {0,0};
4273 /* AIX XL C 1.02.0.0 rejects this.
4274 It does not let you subtract one const X* pointer from another in an arm
4275 of an if-expression whose if-part is not a constant expression */
4276 const char *g = "string";
4277 ccp = &g + (g ? g-g : 0);
4278 /* HPUX 7.0 cc rejects these. */
4281 ccp = (char const *const *) p;
4282 { /* SCO 3.2v4 cc rejects this. */
4284 char const *s = 0 ? (char *) 0 : (char const *) 0;
4288 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4290 const int *foo = &x[0];
4293 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4294 typedef const int *iptr;
4298 { /* AIX XL C 1.02.0.0 rejects this saying
4299 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4300 struct s { int j; const int *ap[3]; };
4301 struct s *b; b->j = 5;
4303 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4309 if { (eval echo configure:4310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4313 echo "configure: failed program was:" >&5
4314 cat conftest.$ac_ext >&5
4320 echo "$ac_t""$ac_cv_c_const" 1>&6
4321 if test $ac_cv_c_const = no; then
4322 { test "$extra_verbose" = "yes" && cat << \EOF
4325 cat >> confdefs.h <<\EOF
4333 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4334 echo "configure:4335: checking whether ${MAKE-make} sets \${MAKE}" >&5
4335 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4337 cat > conftestmake <<\EOF
4339 @echo 'ac_maketemp="${MAKE}"'
4341 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4342 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4343 if test -n "$ac_maketemp"; then
4344 eval ac_cv_prog_make_${ac_make}_set=yes
4346 eval ac_cv_prog_make_${ac_make}_set=no
4349 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4350 echo "$ac_t""yes" 1>&6
4353 echo "$ac_t""no" 1>&6
4354 SET_MAKE="MAKE=${MAKE-make}"
4358 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4359 echo "configure:4360: checking whether byte ordering is bigendian" >&5
4361 ac_cv_c_bigendian=unknown
4362 # See if sys/param.h defines the BYTE_ORDER macro.
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4366 #include <sys/types.h>
4367 #include <sys/param.h>
4370 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4375 if { (eval echo configure:4376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4377 # It does; now see whether it defined to BIG_ENDIAN or not.
4378 cat > conftest.$ac_ext <<EOF
4379 #line 4380 "configure"
4380 #include "confdefs.h"
4381 #include <sys/types.h>
4382 #include <sys/param.h>
4385 #if BYTE_ORDER != BIG_ENDIAN
4390 if { (eval echo configure:4391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4392 ac_cv_c_bigendian=yes
4394 echo "configure: failed program was:" >&5
4395 cat conftest.$ac_ext >&5
4397 ac_cv_c_bigendian=no
4401 echo "configure: failed program was:" >&5
4402 cat conftest.$ac_ext >&5
4405 if test $ac_cv_c_bigendian = unknown; then
4406 cat > conftest.$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4410 /* Are we little or big endian? From Harbison&Steele. */
4414 char c[sizeof (long)];
4417 exit (u.c[sizeof (long) - 1] == 1);
4420 if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4422 ac_cv_c_bigendian=no
4425 echo "configure: failed program was:" >&5
4426 cat conftest.$ac_ext >&5
4428 ac_cv_c_bigendian=yes
4433 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4434 if test $ac_cv_c_bigendian = yes; then
4435 { test "$extra_verbose" = "yes" && cat << \EOF
4436 Defining WORDS_BIGENDIAN
4438 cat >> confdefs.h <<\EOF
4439 #define WORDS_BIGENDIAN 1
4446 echo $ac_n "checking size of short""... $ac_c" 1>&6
4447 echo "configure:4448: checking size of short" >&5
4449 cat > conftest.$ac_ext <<EOF
4450 #line 4451 "configure"
4451 #include "confdefs.h"
4453 #include <sys/types.h>
4456 FILE *f=fopen("conftestval", "w");
4458 fprintf(f, "%d\n", sizeof(short));
4462 if { (eval echo configure:4463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4464 ac_cv_sizeof_short=`cat conftestval`
4467 echo "configure: failed program was:" >&5
4468 cat conftest.$ac_ext >&5
4470 ac_cv_sizeof_short=0
4473 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4474 { test "$extra_verbose" = "yes" && cat << EOF
4475 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4477 cat >> confdefs.h <<EOF
4478 #define SIZEOF_SHORT $ac_cv_sizeof_short
4483 if test "$ac_cv_sizeof_short" = 0; then
4485 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4486 echo "*** PANIC *** Please examine config.log for compilation errors."
4489 echo $ac_n "checking size of int""... $ac_c" 1>&6
4490 echo "configure:4491: checking size of int" >&5
4492 cat > conftest.$ac_ext <<EOF
4493 #line 4494 "configure"
4494 #include "confdefs.h"
4496 #include <sys/types.h>
4499 FILE *f=fopen("conftestval", "w");
4501 fprintf(f, "%d\n", sizeof(int));
4505 if { (eval echo configure:4506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4507 ac_cv_sizeof_int=`cat conftestval`
4510 echo "configure: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4516 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4517 { test "$extra_verbose" = "yes" && cat << EOF
4518 Defining SIZEOF_INT = $ac_cv_sizeof_int
4520 cat >> confdefs.h <<EOF
4521 #define SIZEOF_INT $ac_cv_sizeof_int
4526 echo $ac_n "checking size of long""... $ac_c" 1>&6
4527 echo "configure:4528: checking size of long" >&5
4529 cat > conftest.$ac_ext <<EOF
4530 #line 4531 "configure"
4531 #include "confdefs.h"
4533 #include <sys/types.h>
4536 FILE *f=fopen("conftestval", "w");
4538 fprintf(f, "%d\n", sizeof(long));
4542 if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4544 ac_cv_sizeof_long=`cat conftestval`
4547 echo "configure: failed program was:" >&5
4548 cat conftest.$ac_ext >&5
4553 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4554 { test "$extra_verbose" = "yes" && cat << EOF
4555 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4557 cat >> confdefs.h <<EOF
4558 #define SIZEOF_LONG $ac_cv_sizeof_long
4563 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4564 echo "configure:4565: checking size of long long" >&5
4566 cat > conftest.$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4570 #include <sys/types.h>
4573 FILE *f=fopen("conftestval", "w");
4575 fprintf(f, "%d\n", sizeof(long long));
4579 if { (eval echo configure:4580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4581 ac_cv_sizeof_long_long=`cat conftestval`
4584 echo "configure: failed program was:" >&5
4585 cat conftest.$ac_ext >&5
4587 ac_cv_sizeof_long_long=0
4590 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4591 { test "$extra_verbose" = "yes" && cat << EOF
4592 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4594 cat >> confdefs.h <<EOF
4595 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4600 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4601 echo "configure:4602: checking size of void *" >&5
4603 cat > conftest.$ac_ext <<EOF
4604 #line 4605 "configure"
4605 #include "confdefs.h"
4607 #include <sys/types.h>
4610 FILE *f=fopen("conftestval", "w");
4612 fprintf(f, "%d\n", sizeof(void *));
4616 if { (eval echo configure:4617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4618 ac_cv_sizeof_void_p=`cat conftestval`
4621 echo "configure: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4624 ac_cv_sizeof_void_p=0
4627 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4628 { test "$extra_verbose" = "yes" && cat << EOF
4629 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4631 cat >> confdefs.h <<EOF
4632 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4638 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4639 echo "configure:4640: checking for long file names" >&5
4641 ac_cv_sys_long_file_names=yes
4642 # Test for long file names in all the places we know might matter:
4643 # . the current directory, where building will happen
4644 # $prefix/lib where we will be installing things
4645 # $exec_prefix/lib likewise
4646 # eval it to expand exec_prefix.
4647 # $TMPDIR if set, where it might want to write temporary files
4648 # if $TMPDIR is not set:
4649 # /tmp where it might want to write temporary files
4652 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4653 ac_tmpdirs="$TMPDIR"
4655 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4657 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4658 test -d $ac_dir || continue
4659 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4660 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4661 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4662 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4663 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4664 ac_cv_sys_long_file_names=no
4665 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4668 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4671 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4672 if test $ac_cv_sys_long_file_names = yes; then
4673 { test "$extra_verbose" = "yes" && cat << \EOF
4674 Defining HAVE_LONG_FILE_NAMES
4676 cat >> confdefs.h <<\EOF
4677 #define HAVE_LONG_FILE_NAMES 1
4684 echo $ac_n "checking for sin""... $ac_c" 1>&6
4685 echo "configure:4686: checking for sin" >&5
4687 cat > conftest.$ac_ext <<EOF
4688 #line 4689 "configure"
4689 #include "confdefs.h"
4690 /* System header to define __stub macros and hopefully few prototypes,
4691 which can conflict with char sin(); below. */
4693 /* Override any gcc2 internal prototype to avoid an error. */
4694 /* We use char because int might match the return type of a gcc2
4695 builtin and then its argument prototype would still apply. */
4700 /* The GNU C library defines this for functions which it implements
4701 to always fail with ENOSYS. Some functions are actually named
4702 something starting with __ and the normal name is an alias. */
4703 #if defined (__stub_sin) || defined (__stub___sin)
4711 if { (eval echo configure:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4713 eval "ac_cv_func_sin=yes"
4715 echo "configure: failed program was:" >&5
4716 cat conftest.$ac_ext >&5
4718 eval "ac_cv_func_sin=no"
4722 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4723 echo "$ac_t""yes" 1>&6
4726 echo "$ac_t""no" 1>&6
4728 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4729 echo "configure:4730: checking for sin in -lm" >&5
4730 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4732 xe_check_libs=" -lm "
4733 cat > conftest.$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4736 /* Override any gcc2 internal prototype to avoid an error. */
4737 /* We use char because int might match the return type of a gcc2
4738 builtin and then its argument prototype would still apply. */
4745 if { (eval echo configure:4746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4747 eval "ac_cv_lib_$ac_lib_var=yes"
4749 echo "configure: failed program was:" >&5
4750 cat conftest.$ac_ext >&5
4752 eval "ac_cv_lib_$ac_lib_var=no"
4757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4758 echo "$ac_t""yes" 1>&6
4759 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4760 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4761 { test "$extra_verbose" = "yes" && cat << EOF
4764 cat >> confdefs.h <<EOF
4765 #define $ac_tr_lib 1
4769 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4772 echo "$ac_t""no" 1>&6
4779 { test "$extra_verbose" = "yes" && cat << \EOF
4780 Defining LISP_FLOAT_TYPE
4782 cat >> confdefs.h <<\EOF
4783 #define LISP_FLOAT_TYPE 1
4788 cat > conftest.$ac_ext <<EOF
4789 #line 4790 "configure"
4790 #include "confdefs.h"
4793 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4796 if { (eval echo configure:4797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4798 { test "$extra_verbose" = "yes" && cat << \EOF
4799 Defining HAVE_INVERSE_HYPERBOLIC
4801 cat >> confdefs.h <<\EOF
4802 #define HAVE_INVERSE_HYPERBOLIC 1
4807 echo "configure: failed program was:" >&5
4808 cat conftest.$ac_ext >&5
4812 echo "checking type of mail spool file locking" 1>&6
4813 echo "configure:4814: checking type of mail spool file locking" >&5
4814 for ac_func in lockf flock
4816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4817 echo "configure:4818: checking for $ac_func" >&5
4819 cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4822 /* System header to define __stub macros and hopefully few prototypes,
4823 which can conflict with char $ac_func(); below. */
4825 /* Override any gcc2 internal prototype to avoid an error. */
4826 /* We use char because int might match the return type of a gcc2
4827 builtin and then its argument prototype would still apply. */
4832 /* The GNU C library defines this for functions which it implements
4833 to always fail with ENOSYS. Some functions are actually named
4834 something starting with __ and the normal name is an alias. */
4835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4843 if { (eval echo configure:4844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4845 eval "ac_cv_func_$ac_func=yes"
4847 echo "configure: failed program was:" >&5
4848 cat conftest.$ac_ext >&5
4850 eval "ac_cv_func_$ac_func=no"
4854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4855 echo "$ac_t""yes" 1>&6
4856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4857 { test "$extra_verbose" = "yes" && cat << EOF
4858 Defining $ac_tr_func
4860 cat >> confdefs.h <<EOF
4861 #define $ac_tr_func 1
4866 echo "$ac_t""no" 1>&6
4870 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4871 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4872 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4873 if test -z "$mail_locking"; then
4874 case "$opsys" in cygwin* | mingw*)
4879 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4880 Defining MAIL_LOCK_LOCKF
4882 cat >> confdefs.h <<\EOF
4883 #define MAIL_LOCK_LOCKF 1
4887 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4888 Defining MAIL_LOCK_FLOCK
4890 cat >> confdefs.h <<\EOF
4891 #define MAIL_LOCK_FLOCK 1
4895 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4896 Defining MAIL_LOCK_LOCKING
4898 cat >> confdefs.h <<\EOF
4899 #define MAIL_LOCK_LOCKING 1
4903 elif test "$mail_locking" = "pop"; then
4906 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4907 Defining MAIL_LOCK_DOT
4909 cat >> confdefs.h <<\EOF
4910 #define MAIL_LOCK_DOT 1
4915 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4916 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4917 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4918 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4919 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4920 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4922 case "$opsys" in decosf*)
4924 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4925 echo "configure:4926: checking for cma_open in -lpthreads" >&5
4926 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4928 xe_check_libs=" -lpthreads "
4929 cat > conftest.$ac_ext <<EOF
4930 #line 4931 "configure"
4931 #include "confdefs.h"
4932 /* Override any gcc2 internal prototype to avoid an error. */
4933 /* We use char because int might match the return type of a gcc2
4934 builtin and then its argument prototype would still apply. */
4941 if { (eval echo configure:4942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4943 eval "ac_cv_lib_$ac_lib_var=yes"
4945 echo "configure: failed program was:" >&5
4946 cat conftest.$ac_ext >&5
4948 eval "ac_cv_lib_$ac_lib_var=no"
4953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4954 echo "$ac_t""yes" 1>&6
4955 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4956 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4957 { test "$extra_verbose" = "yes" && cat << EOF
4960 cat >> confdefs.h <<EOF
4961 #define $ac_tr_lib 1
4965 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4968 echo "$ac_t""no" 1>&6
4972 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4973 c_switch_site="$c_switch_site -threads" ;;
4976 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4977 echo "configure:4978: checking whether the -xildoff compiler flag is required" >&5
4978 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4979 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4980 then echo "$ac_t""no" 1>&6;
4981 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
4983 else echo "$ac_t""no" 1>&6
4986 if test "$opsys" = "sol2"; then
4987 if test "$os_release" -ge 56; then
4988 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4989 echo "configure:4990: checking for \"-z ignore\" linker flag" >&5
4990 case "`ld -h 2>&1`" in
4991 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4992 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4993 *) echo "$ac_t""no" 1>&6 ;;
4999 echo "checking "for specified window system"" 1>&6
5000 echo "configure:5001: checking "for specified window system"" >&5
5006 if test "$with_gnome" != "no"; then
5007 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5008 echo "configure:5009: checking for GNOME configuration script" >&5
5009 for possible in gnome-config
5011 possible_version=`${possible} --version 2> /dev/null`
5012 if test "x${possible_version}" != "x"; then
5013 GNOME_CONFIG="${possible}"
5019 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5022 if test "${GNOME_CONFIG}" != "no"; then
5023 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5024 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5025 { test "$extra_verbose" = "yes" && cat << \EOF
5028 cat >> confdefs.h <<\EOF
5029 #define HAVE_GNOME 1
5033 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5034 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5037 if test "$with_gtk" != "no";then
5038 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5039 echo "configure:5040: checking for GTK configuration script" >&5
5040 for possible in gtk12-config gtk14-config gtk-config
5042 possible_version=`${possible} --version 2> /dev/null`
5043 if test "x${possible_version}" != "x"; then
5044 GTK_CONFIG="${possible}"
5046 case "${possible_version}" in
5047 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5048 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5053 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5056 echo "$ac_t""${GTK_CONFIG}" 1>&6
5059 if test "${GTK_CONFIG}" != "no"; then
5060 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5061 echo "configure:5062: checking gtk version" >&5
5062 GTK_VERSION=`${GTK_CONFIG} --version`
5063 echo "$ac_t""${GTK_VERSION}" 1>&6
5065 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5066 echo "configure:5067: checking gtk libs" >&5
5067 GTK_LIBS=`${GTK_CONFIG} --libs`
5068 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5069 echo "$ac_t""${GTK_LIBS}" 1>&6
5071 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5072 echo "configure:5073: checking gtk cflags" >&5
5073 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5074 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5075 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5078 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5079 echo "configure:5080: checking for main in -lgdk_imlib" >&5
5080 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5082 xe_check_libs=" -lgdk_imlib "
5083 cat > conftest.$ac_ext <<EOF
5084 #line 5085 "configure"
5085 #include "confdefs.h"
5091 if { (eval echo configure:5092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5093 eval "ac_cv_lib_$ac_lib_var=yes"
5095 echo "configure: failed program was:" >&5
5096 cat conftest.$ac_ext >&5
5098 eval "ac_cv_lib_$ac_lib_var=no"
5103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5104 echo "$ac_t""yes" 1>&6
5105 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5107 echo "$ac_t""no" 1>&6
5112 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5113 echo "configure:5114: checking for Imlib_init in -lImlib" >&5
5114 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5116 xe_check_libs=" -lImlib "
5117 cat > conftest.$ac_ext <<EOF
5118 #line 5119 "configure"
5119 #include "confdefs.h"
5120 /* Override any gcc2 internal prototype to avoid an error. */
5121 /* We use char because int might match the return type of a gcc2
5122 builtin and then its argument prototype would still apply. */
5129 if { (eval echo configure:5130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5131 eval "ac_cv_lib_$ac_lib_var=yes"
5133 echo "configure: failed program was:" >&5
5134 cat conftest.$ac_ext >&5
5136 eval "ac_cv_lib_$ac_lib_var=no"
5141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5142 echo "$ac_t""yes" 1>&6
5143 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5145 echo "$ac_t""no" 1>&6
5149 for ac_func in gdk_imlib_init
5151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5152 echo "configure:5153: checking for $ac_func" >&5
5154 cat > conftest.$ac_ext <<EOF
5155 #line 5156 "configure"
5156 #include "confdefs.h"
5157 /* System header to define __stub macros and hopefully few prototypes,
5158 which can conflict with char $ac_func(); below. */
5160 /* Override any gcc2 internal prototype to avoid an error. */
5161 /* We use char because int might match the return type of a gcc2
5162 builtin and then its argument prototype would still apply. */
5167 /* The GNU C library defines this for functions which it implements
5168 to always fail with ENOSYS. Some functions are actually named
5169 something starting with __ and the normal name is an alias. */
5170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5178 if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5180 eval "ac_cv_func_$ac_func=yes"
5182 echo "configure: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5185 eval "ac_cv_func_$ac_func=no"
5189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5190 echo "$ac_t""yes" 1>&6
5191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5192 { test "$extra_verbose" = "yes" && cat << EOF
5193 Defining $ac_tr_func
5195 cat >> confdefs.h <<EOF
5196 #define $ac_tr_func 1
5201 echo "$ac_t""no" 1>&6
5206 { test "$extra_verbose" = "yes" && cat << \EOF
5209 cat >> confdefs.h <<\EOF
5214 { test "$extra_verbose" = "yes" && cat << \EOF
5217 cat >> confdefs.h <<\EOF
5228 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5229 test "${with_toolbars}" != no && with_toolbars=gtk
5230 test "${with_menubars}" != "no" && with_menubars=gtk
5231 test "${with_dialogs}" != "no" && with_dialogs=gtk
5232 test "${with_widgets}" != "no" && with_widgets=gtk
5234 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5235 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5237 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5238 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5240 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5241 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5243 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5244 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5247 OLD_CFLAGS="${CFLAGS}"
5248 OLD_CPPFLAGS="${CPPFLAGS}"
5249 OLD_LDFLAGS="${LDFLAGS}"
5250 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5251 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5252 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5253 for ac_hdr in glade/glade.h glade.h
5255 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5257 echo "configure:5258: checking for $ac_hdr" >&5
5259 cat > conftest.$ac_ext <<EOF
5260 #line 5261 "configure"
5261 #include "confdefs.h"
5264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5265 { (eval echo configure:5266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5267 if test -z "$ac_err"; then
5269 eval "ac_cv_header_$ac_safe=yes"
5272 echo "configure: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5275 eval "ac_cv_header_$ac_safe=no"
5278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5279 echo "$ac_t""yes" 1>&6
5280 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5281 { test "$extra_verbose" = "yes" && cat << EOF
5284 cat >> confdefs.h <<EOF
5285 #define $ac_tr_hdr 1
5290 echo "$ac_t""no" 1>&6
5295 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5296 echo "configure:5297: checking for main in -lxml" >&5
5297 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5299 xe_check_libs=" -lxml "
5300 cat > conftest.$ac_ext <<EOF
5301 #line 5302 "configure"
5302 #include "confdefs.h"
5308 if { (eval echo configure:5309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5310 eval "ac_cv_lib_$ac_lib_var=yes"
5312 echo "configure: failed program was:" >&5
5313 cat conftest.$ac_ext >&5
5315 eval "ac_cv_lib_$ac_lib_var=no"
5320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5321 echo "$ac_t""yes" 1>&6
5322 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5324 echo "$ac_t""no" 1>&6
5329 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5330 echo "configure:5331: checking for main in -lglade" >&5
5331 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5333 xe_check_libs=" -lglade "
5334 cat > conftest.$ac_ext <<EOF
5335 #line 5336 "configure"
5336 #include "confdefs.h"
5342 if { (eval echo configure:5343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5344 eval "ac_cv_lib_$ac_lib_var=yes"
5346 echo "configure: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5349 eval "ac_cv_lib_$ac_lib_var=no"
5354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5355 echo "$ac_t""yes" 1>&6
5356 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5358 echo "$ac_t""no" 1>&6
5363 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5364 echo "configure:5365: checking for main in -lglade-gnome" >&5
5365 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5367 xe_check_libs=" -lglade-gnome "
5368 cat > conftest.$ac_ext <<EOF
5369 #line 5370 "configure"
5370 #include "confdefs.h"
5376 if { (eval echo configure:5377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5378 eval "ac_cv_lib_$ac_lib_var=yes"
5380 echo "configure: failed program was:" >&5
5381 cat conftest.$ac_ext >&5
5383 eval "ac_cv_lib_$ac_lib_var=no"
5388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5389 echo "$ac_t""yes" 1>&6
5390 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5392 echo "$ac_t""no" 1>&6
5396 cat > conftest.$ac_ext <<EOF
5397 #line 5398 "configure"
5398 #include "confdefs.h"
5399 #include <glade/glade-xml.h>
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5404 echo "$ac_t""yes" 1>&6
5405 { test "$extra_verbose" = "yes" && cat << \EOF
5406 Defining LIBGLADE_XML_TXTDOMAIN = 1
5408 cat >> confdefs.h <<\EOF
5409 #define LIBGLADE_XML_TXTDOMAIN 1
5415 echo "$ac_t""no" 1>&6
5419 CFLAGS="${OLD_CFLAGS}"
5420 CPPFLAGS="${OLD_CPPFLAGS}"
5421 LDFLAGS="${OLD_LDFLAGS}"
5425 if test "$with_x11" != "no"; then
5426 test "$x_includes $x_libraries" != "NONE NONE" && \
5427 window_system=x11 with_x11=yes
5430 if test "$x_includes $x_libraries" = "NONE NONE" \
5431 -a -n "$OPENWINHOME" \
5432 -a "$OPENWINHOME" != "/usr/openwin" \
5433 -a -d "$OPENWINHOME"; then
5434 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5435 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5436 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5439 if test "$x_includes" = "NONE"; then
5440 for dir in "/usr/X11" "/usr/X11R6"; do
5441 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5445 if test "$x_libraries" = "NONE"; then
5446 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5447 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5451 # If we find X, set shell vars x_includes and x_libraries to the
5452 # paths, otherwise set no_x=yes.
5453 # Uses ac_ vars as temps to allow command line to override cache and checks.
5454 # --without-x overrides everything else, but does not touch the cache.
5455 echo $ac_n "checking for X""... $ac_c" 1>&6
5456 echo "configure:5457: checking for X" >&5
5458 # Check whether --with-x or --without-x was given.
5459 if test "${with_x+set}" = set; then
5464 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5465 if test "x$with_x" = xno; then
5466 # The user explicitly disabled X.
5469 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5470 # Both variables are already set.
5474 # One or both of the vars are not set, and there is no cached value.
5475 ac_x_includes=NO ac_x_libraries=NO
5477 if mkdir conftestdir; then
5479 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5480 cat > Imakefile <<'EOF'
5482 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5484 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5485 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5486 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5487 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5488 for ac_extension in a so sl; do
5489 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5490 test -f $ac_im_libdir/libX11.$ac_extension; then
5491 ac_im_usrlibdir=$ac_im_libdir; break
5494 # Screen out bogus values from the imake configuration. They are
5495 # bogus both because they are the default anyway, and because
5496 # using them would break gcc on systems where it needs fixed includes.
5497 case "$ac_im_incroot" in
5499 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5501 case "$ac_im_usrlibdir" in
5503 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5510 if test "$ac_x_includes" = NO; then
5511 # Guess where to find include files, by looking for this one X11 .h file.
5512 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5514 # First, try using that file with no special directory specified.
5515 cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5518 #include <$x_direct_test_include>
5520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5521 { (eval echo configure:5522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5523 if test -z "$ac_err"; then
5525 # We can compile using X headers with no special include directory.
5529 echo "configure: failed program was:" >&5
5530 cat conftest.$ac_ext >&5
5532 # Look for the header file in a standard set of common directories.
5533 # Check X11 before X11Rn because it is often a symlink to the current release.
5536 /usr/X11R6/include \
5537 /usr/X11R5/include \
5538 /usr/X11R4/include \
5541 /usr/include/X11R6 \
5542 /usr/include/X11R5 \
5543 /usr/include/X11R4 \
5545 /usr/local/X11/include \
5546 /usr/local/X11R6/include \
5547 /usr/local/X11R5/include \
5548 /usr/local/X11R4/include \
5550 /usr/local/include/X11 \
5551 /usr/local/include/X11R6 \
5552 /usr/local/include/X11R5 \
5553 /usr/local/include/X11R4 \
5557 /usr/XFree86/include/X11 \
5560 /usr/local/include \
5561 /usr/unsupported/include \
5562 /usr/athena/include \
5563 /usr/local/x11r5/include \
5564 /usr/lpp/Xamples/include \
5566 /usr/openwin/include \
5567 /usr/openwin/share/include \
5570 if test -r "$ac_dir/$x_direct_test_include"; then
5571 ac_x_includes=$ac_dir
5577 fi # $ac_x_includes = NO
5579 if test "$ac_x_libraries" = NO; then
5580 # Check for the libraries.
5582 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5583 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5585 # See if we find them without any special options.
5586 # Don't add to $LIBS permanently.
5587 ac_save_LIBS="$LIBS"
5588 LIBS="-l$x_direct_test_library $LIBS"
5589 cat > conftest.$ac_ext <<EOF
5590 #line 5591 "configure"
5591 #include "confdefs.h"
5594 ${x_direct_test_function}()
5597 if { (eval echo configure:5598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5599 LIBS="$ac_save_LIBS"
5600 # We can link X programs with no special library path.
5603 echo "configure: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5606 LIBS="$ac_save_LIBS"
5607 # First see if replacing the include by lib works.
5608 # Check X11 before X11Rn because it is often a symlink to the current release.
5609 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5620 /usr/local/X11/lib \
5621 /usr/local/X11R6/lib \
5622 /usr/local/X11R5/lib \
5623 /usr/local/X11R4/lib \
5625 /usr/local/lib/X11 \
5626 /usr/local/lib/X11R6 \
5627 /usr/local/lib/X11R5 \
5628 /usr/local/lib/X11R4 \
5632 /usr/XFree86/lib/X11 \
5636 /usr/unsupported/lib \
5638 /usr/local/x11r5/lib \
5639 /usr/lpp/Xamples/lib \
5643 /usr/openwin/share/lib \
5646 for ac_extension in a so sl; do
5647 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5648 ac_x_libraries=$ac_dir
5655 fi # $ac_x_libraries = NO
5657 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5658 # Didn't find X anywhere. Cache the known absence of X.
5659 ac_cv_have_x="have_x=no"
5661 # Record where we found X for the cache.
5662 ac_cv_have_x="have_x=yes \
5663 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5666 eval "$ac_cv_have_x"
5669 if test "$have_x" != yes; then
5670 echo "$ac_t""$have_x" 1>&6
5673 # If each of the values was on the command line, it overrides each guess.
5674 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5675 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5676 # Update the cache value to reflect the command line values.
5677 ac_cv_have_x="have_x=yes \
5678 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5679 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5682 if test "$no_x" = yes; then
5683 # Not all programs may use this symbol, but it does not hurt to define it.
5684 { test "$extra_verbose" = "yes" && cat << \EOF
5685 Defining X_DISPLAY_MISSING
5687 cat >> confdefs.h <<\EOF
5688 #define X_DISPLAY_MISSING 1
5692 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5694 if test -n "$x_includes"; then
5695 X_CFLAGS="$X_CFLAGS -I$x_includes"
5698 # It would also be nice to do this for all -L options, not just this one.
5699 if test -n "$x_libraries"; then
5700 X_LIBS="$X_LIBS -L$x_libraries"
5701 # For Solaris; some versions of Sun CC require a space after -R and
5702 # others require no space. Words are not sufficient . . . .
5703 case "`(uname -sr) 2>/dev/null`" in
5705 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5706 echo "configure:5707: checking whether -R must be followed by a space" >&5
5707 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5708 cat > conftest.$ac_ext <<EOF
5709 #line 5710 "configure"
5710 #include "confdefs.h"
5716 if { (eval echo configure:5717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5720 echo "configure: failed program was:" >&5
5721 cat conftest.$ac_ext >&5
5726 if test $ac_R_nospace = yes; then
5727 echo "$ac_t""no" 1>&6
5728 X_LIBS="$X_LIBS -R$x_libraries"
5730 LIBS="$ac_xsave_LIBS -R $x_libraries"
5731 cat > conftest.$ac_ext <<EOF
5732 #line 5733 "configure"
5733 #include "confdefs.h"
5739 if { (eval echo configure:5740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5743 echo "configure: failed program was:" >&5
5744 cat conftest.$ac_ext >&5
5749 if test $ac_R_space = yes; then
5750 echo "$ac_t""yes" 1>&6
5751 X_LIBS="$X_LIBS -R $x_libraries"
5753 echo "$ac_t""neither works" 1>&6
5756 LIBS="$ac_xsave_LIBS"
5760 # Check for system-dependent libraries X programs must link with.
5761 # Do this before checking for the system-independent R6 libraries
5762 # (-lICE), since we may need -lsocket or whatever for X linking.
5764 if test "$ISC" = yes; then
5765 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5767 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5768 # libraries were built with DECnet support. And karl@cs.umb.edu says
5769 # the Alpha needs dnet_stub (dnet does not exist).
5770 if test "$with_dnet" = "no" ; then
5771 ac_cv_lib_dnet_dnet_ntoa=no
5774 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5775 echo "configure:5776: checking for dnet_ntoa in -ldnet" >&5
5776 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5778 xe_check_libs=" -ldnet "
5779 cat > conftest.$ac_ext <<EOF
5780 #line 5781 "configure"
5781 #include "confdefs.h"
5782 /* Override any gcc2 internal prototype to avoid an error. */
5783 /* We use char because int might match the return type of a gcc2
5784 builtin and then its argument prototype would still apply. */
5791 if { (eval echo configure:5792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5793 eval "ac_cv_lib_$ac_lib_var=yes"
5795 echo "configure: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5798 eval "ac_cv_lib_$ac_lib_var=no"
5803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5804 echo "$ac_t""yes" 1>&6
5805 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5807 echo "$ac_t""no" 1>&6
5812 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5814 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5815 echo "configure:5816: checking for dnet_ntoa in -ldnet_stub" >&5
5816 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5818 xe_check_libs=" -ldnet_stub "
5819 cat > conftest.$ac_ext <<EOF
5820 #line 5821 "configure"
5821 #include "confdefs.h"
5822 /* Override any gcc2 internal prototype to avoid an error. */
5823 /* We use char because int might match the return type of a gcc2
5824 builtin and then its argument prototype would still apply. */
5831 if { (eval echo configure:5832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5833 eval "ac_cv_lib_$ac_lib_var=yes"
5835 echo "configure: failed program was:" >&5
5836 cat conftest.$ac_ext >&5
5838 eval "ac_cv_lib_$ac_lib_var=no"
5843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5844 echo "$ac_t""yes" 1>&6
5845 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5847 echo "$ac_t""no" 1>&6
5853 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5854 # to get the SysV transport functions.
5855 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5857 # The nsl library prevents programs from opening the X display
5858 # on Irix 5.2, according to dickey@clark.net.
5859 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5860 echo "configure:5861: checking for gethostbyname" >&5
5862 cat > conftest.$ac_ext <<EOF
5863 #line 5864 "configure"
5864 #include "confdefs.h"
5865 /* System header to define __stub macros and hopefully few prototypes,
5866 which can conflict with char gethostbyname(); below. */
5868 /* Override any gcc2 internal prototype to avoid an error. */
5869 /* We use char because int might match the return type of a gcc2
5870 builtin and then its argument prototype would still apply. */
5871 char gethostbyname();
5875 /* The GNU C library defines this for functions which it implements
5876 to always fail with ENOSYS. Some functions are actually named
5877 something starting with __ and the normal name is an alias. */
5878 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5886 if { (eval echo configure:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5888 eval "ac_cv_func_gethostbyname=yes"
5890 echo "configure: failed program was:" >&5
5891 cat conftest.$ac_ext >&5
5893 eval "ac_cv_func_gethostbyname=no"
5897 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5898 echo "$ac_t""yes" 1>&6
5901 echo "$ac_t""no" 1>&6
5904 if test $ac_cv_func_gethostbyname = no; then
5906 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5907 echo "configure:5908: checking for gethostbyname in -lnsl" >&5
5908 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5910 xe_check_libs=" -lnsl "
5911 cat > conftest.$ac_ext <<EOF
5912 #line 5913 "configure"
5913 #include "confdefs.h"
5914 /* Override any gcc2 internal prototype to avoid an error. */
5915 /* We use char because int might match the return type of a gcc2
5916 builtin and then its argument prototype would still apply. */
5917 char gethostbyname();
5923 if { (eval echo configure:5924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5925 eval "ac_cv_lib_$ac_lib_var=yes"
5927 echo "configure: failed program was:" >&5
5928 cat conftest.$ac_ext >&5
5930 eval "ac_cv_lib_$ac_lib_var=no"
5935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5936 echo "$ac_t""yes" 1>&6
5937 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5939 echo "$ac_t""no" 1>&6
5945 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5946 # socket/setsockopt and other routines are undefined under SCO ODT
5947 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5948 # on later versions), says simon@lia.di.epfl.ch: it contains
5949 # gethostby* variants that don't use the nameserver (or something).
5950 # -lsocket must be given before -lnsl if both are needed.
5951 # We assume that if connect needs -lnsl, so does gethostbyname.
5952 echo $ac_n "checking for connect""... $ac_c" 1>&6
5953 echo "configure:5954: checking for connect" >&5
5955 cat > conftest.$ac_ext <<EOF
5956 #line 5957 "configure"
5957 #include "confdefs.h"
5958 /* System header to define __stub macros and hopefully few prototypes,
5959 which can conflict with char connect(); below. */
5961 /* Override any gcc2 internal prototype to avoid an error. */
5962 /* We use char because int might match the return type of a gcc2
5963 builtin and then its argument prototype would still apply. */
5968 /* The GNU C library defines this for functions which it implements
5969 to always fail with ENOSYS. Some functions are actually named
5970 something starting with __ and the normal name is an alias. */
5971 #if defined (__stub_connect) || defined (__stub___connect)
5979 if { (eval echo configure:5980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5981 eval "ac_cv_func_connect=yes"
5983 echo "configure: failed program was:" >&5
5984 cat conftest.$ac_ext >&5
5986 eval "ac_cv_func_connect=no"
5990 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5991 echo "$ac_t""yes" 1>&6
5994 echo "$ac_t""no" 1>&6
5997 if test $ac_cv_func_connect = no; then
5999 xe_msg_checking="for connect in -lsocket"
6000 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6001 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6002 echo "configure:6003: checking "$xe_msg_checking"" >&5
6003 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6005 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6006 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6009 /* Override any gcc2 internal prototype to avoid an error. */
6010 /* We use char because int might match the return type of a gcc2
6011 builtin and then its argument prototype would still apply. */
6018 if { (eval echo configure:6019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6020 eval "ac_cv_lib_$ac_lib_var=yes"
6022 echo "configure: failed program was:" >&5
6023 cat conftest.$ac_ext >&5
6025 eval "ac_cv_lib_$ac_lib_var=no"
6030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6031 echo "$ac_t""yes" 1>&6
6032 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6034 echo "$ac_t""no" 1>&6
6040 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6041 echo $ac_n "checking for remove""... $ac_c" 1>&6
6042 echo "configure:6043: checking for remove" >&5
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 /* System header to define __stub macros and hopefully few prototypes,
6048 which can conflict with char remove(); below. */
6050 /* Override any gcc2 internal prototype to avoid an error. */
6051 /* We use char because int might match the return type of a gcc2
6052 builtin and then its argument prototype would still apply. */
6057 /* The GNU C library defines this for functions which it implements
6058 to always fail with ENOSYS. Some functions are actually named
6059 something starting with __ and the normal name is an alias. */
6060 #if defined (__stub_remove) || defined (__stub___remove)
6068 if { (eval echo configure:6069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6070 eval "ac_cv_func_remove=yes"
6072 echo "configure: failed program was:" >&5
6073 cat conftest.$ac_ext >&5
6075 eval "ac_cv_func_remove=no"
6079 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6080 echo "$ac_t""yes" 1>&6
6083 echo "$ac_t""no" 1>&6
6086 if test $ac_cv_func_remove = no; then
6088 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6089 echo "configure:6090: checking for remove in -lposix" >&5
6090 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6092 xe_check_libs=" -lposix "
6093 cat > conftest.$ac_ext <<EOF
6094 #line 6095 "configure"
6095 #include "confdefs.h"
6096 /* Override any gcc2 internal prototype to avoid an error. */
6097 /* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6105 if { (eval echo configure:6106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6107 eval "ac_cv_lib_$ac_lib_var=yes"
6109 echo "configure: failed program was:" >&5
6110 cat conftest.$ac_ext >&5
6112 eval "ac_cv_lib_$ac_lib_var=no"
6117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6118 echo "$ac_t""yes" 1>&6
6119 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6121 echo "$ac_t""no" 1>&6
6127 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6128 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6129 echo "configure:6130: checking for shmat" >&5
6131 cat > conftest.$ac_ext <<EOF
6132 #line 6133 "configure"
6133 #include "confdefs.h"
6134 /* System header to define __stub macros and hopefully few prototypes,
6135 which can conflict with char shmat(); below. */
6137 /* Override any gcc2 internal prototype to avoid an error. */
6138 /* We use char because int might match the return type of a gcc2
6139 builtin and then its argument prototype would still apply. */
6144 /* The GNU C library defines this for functions which it implements
6145 to always fail with ENOSYS. Some functions are actually named
6146 something starting with __ and the normal name is an alias. */
6147 #if defined (__stub_shmat) || defined (__stub___shmat)
6155 if { (eval echo configure:6156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6157 eval "ac_cv_func_shmat=yes"
6159 echo "configure: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6162 eval "ac_cv_func_shmat=no"
6166 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6167 echo "$ac_t""yes" 1>&6
6170 echo "$ac_t""no" 1>&6
6173 if test $ac_cv_func_shmat = no; then
6175 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6176 echo "configure:6177: checking for shmat in -lipc" >&5
6177 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6179 xe_check_libs=" -lipc "
6180 cat > conftest.$ac_ext <<EOF
6181 #line 6182 "configure"
6182 #include "confdefs.h"
6183 /* Override any gcc2 internal prototype to avoid an error. */
6184 /* We use char because int might match the return type of a gcc2
6185 builtin and then its argument prototype would still apply. */
6192 if { (eval echo configure:6193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6194 eval "ac_cv_lib_$ac_lib_var=yes"
6196 echo "configure: failed program was:" >&5
6197 cat conftest.$ac_ext >&5
6199 eval "ac_cv_lib_$ac_lib_var=no"
6204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6205 echo "$ac_t""yes" 1>&6
6206 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6208 echo "$ac_t""no" 1>&6
6215 # Check for libraries that X11R6 Xt/Xaw programs need.
6216 ac_save_LDFLAGS="$LDFLAGS"
6217 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6218 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6219 # check for ICE first), but we must link in the order -lSM -lICE or
6220 # we get undefined symbols. So assume we have SM if we have ICE.
6221 # These have to be linked with before -lX11, unlike the other
6222 # libraries we check for below, so use a different variable.
6223 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6225 xe_msg_checking="for IceConnectionNumber in -lICE"
6226 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6227 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6228 echo "configure:6229: checking "$xe_msg_checking"" >&5
6229 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6231 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6232 cat > conftest.$ac_ext <<EOF
6233 #line 6234 "configure"
6234 #include "confdefs.h"
6235 /* Override any gcc2 internal prototype to avoid an error. */
6236 /* We use char because int might match the return type of a gcc2
6237 builtin and then its argument prototype would still apply. */
6238 char IceConnectionNumber();
6241 IceConnectionNumber()
6244 if { (eval echo configure:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6246 eval "ac_cv_lib_$ac_lib_var=yes"
6248 echo "configure: failed program was:" >&5
6249 cat conftest.$ac_ext >&5
6251 eval "ac_cv_lib_$ac_lib_var=no"
6256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6257 echo "$ac_t""yes" 1>&6
6258 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6260 echo "$ac_t""no" 1>&6
6264 LDFLAGS="$ac_save_LDFLAGS"
6267 # Autoconf claims to find X library and include dirs for us.
6268 if test "$no_x" = "yes"
6269 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6270 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6275 if test "$with_x11" = "yes"; then
6276 { test "$extra_verbose" = "yes" && cat << \EOF
6277 Defining HAVE_X_WINDOWS
6279 cat >> confdefs.h <<\EOF
6280 #define HAVE_X_WINDOWS 1
6284 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6285 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6287 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6288 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6289 if test -d "$lib_dir" -a -d "$inc_dir"; then
6290 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6291 x_libraries="$lib_dir $x_libraries"
6292 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6294 case "$x_includes" in "$inc_dir"* ) ;; *)
6295 x_includes="$inc_dir $x_includes"
6296 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6301 for rel in "X11R6" "X11R5" "X11R4"; do
6302 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6303 if test -d "$lib_dir" -a -d "$inc_dir"; then
6304 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6305 x_libraries="$x_libraries $lib_dir"
6306 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6308 case "$x_includes" in "$inc_dir"* ) ;; *)
6309 x_includes="$x_includes $inc_dir"
6310 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6316 decosf*) 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 ;;
6319 ld_switch_x_site="$X_LIBS"
6322 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6323 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6324 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6326 runpath="" runpath_dirs=""
6327 if test -n "$LD_RUN_PATH"; then
6328 runpath="$LD_RUN_PATH"
6329 elif test "$GCC" = "yes"; then
6330 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6331 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6332 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6333 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6334 case "$arg" in P,* | -L* | -R* )
6335 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6337 xe_runpath_dir="$dir"
6338 test "$xe_runpath_dir" != "/lib" -a \
6339 "$xe_runpath_dir" != "/usr/lib" -a \
6340 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6341 eval "$xe_add_unique_runpath_dir"
6346 ld_switch_run="$ld_switch_run_save"
6349 for arg in $ld_switch_site $ld_switch_x_site; do
6350 case "$arg" in -L*) {
6351 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6352 test "$xe_runpath_dir" != "/lib" -a \
6353 "$xe_runpath_dir" != "/usr/lib" -a \
6354 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6355 eval "$xe_add_unique_runpath_dir"
6358 if test "$opsys $need_motif" = "sol2 yes"; then
6359 xe_runpath_dir="/opt/SUNWdt/lib";
6360 eval "$xe_add_unique_runpath_dir";
6363 if test -n "$runpath"; then
6364 ld_switch_run="${dash_r}${runpath}"
6366 if test "$GCC" = "yes"; then
6367 set x $ld_switch_run; shift; ld_switch_run=""
6368 while test -n "$1"; do
6370 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6371 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6373 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6378 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6383 if test "$extra_verbose" = "yes"; then
6384 echo; echo "X11 compilation variables:"
6385 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6390 if test "$x_includes" != NONE; then
6391 for i in $x_includes; do
6392 if test -d "$i/bitmaps"; then
6393 bitmapdirs="$i/bitmaps:$bitmapdirs"
6395 if test -d "$i/X11/bitmaps"; then
6396 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6399 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6401 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6402 Defining BITMAPDIR = "$bitmapdirs"
6404 cat >> confdefs.h <<EOF
6405 #define BITMAPDIR "$bitmapdirs"
6410 echo "checking for X defines extracted by xmkmf" 1>&6
6411 echo "configure:6412: checking for X defines extracted by xmkmf" >&5
6413 if mkdir conftestdir; then
6415 cat > Imakefile <<'EOF'
6417 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6419 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6420 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6421 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6425 for word in $xmkmf_defines; do
6429 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6431 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6434 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6435 if test "$val" = "1"
6436 then { test "$extra_verbose" = "yes" && cat << EOF
6439 cat >> confdefs.h <<EOF
6444 else { test "$extra_verbose" = "yes" && cat << EOF
6445 Defining $sym = $val
6447 cat >> confdefs.h <<EOF
6458 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6459 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6460 echo "configure:6461: checking for X11/Intrinsic.h" >&5
6462 cat > conftest.$ac_ext <<EOF
6463 #line 6464 "configure"
6464 #include "confdefs.h"
6465 #include <X11/Intrinsic.h>
6467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6468 { (eval echo configure:6469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6470 if test -z "$ac_err"; then
6472 eval "ac_cv_header_$ac_safe=yes"
6475 echo "configure: failed program was:" >&5
6476 cat conftest.$ac_ext >&5
6478 eval "ac_cv_header_$ac_safe=no"
6481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6482 echo "$ac_t""yes" 1>&6
6485 echo "$ac_t""no" 1>&6
6486 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6491 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6492 echo "configure:6493: checking for XOpenDisplay in -lX11" >&5
6493 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6495 xe_check_libs=" -lX11 "
6496 cat > conftest.$ac_ext <<EOF
6497 #line 6498 "configure"
6498 #include "confdefs.h"
6499 /* Override any gcc2 internal prototype to avoid an error. */
6500 /* We use char because int might match the return type of a gcc2
6501 builtin and then its argument prototype would still apply. */
6502 char XOpenDisplay();
6508 if { (eval echo configure:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6510 eval "ac_cv_lib_$ac_lib_var=yes"
6512 echo "configure: failed program was:" >&5
6513 cat conftest.$ac_ext >&5
6515 eval "ac_cv_lib_$ac_lib_var=no"
6520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6521 echo "$ac_t""yes" 1>&6
6524 echo "$ac_t""no" 1>&6
6528 if test "$have_lib_x11" != "yes"; then
6530 xe_msg_checking="for XGetFontProperty in -lX11"
6531 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6532 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6533 echo "configure:6534: checking "$xe_msg_checking"" >&5
6534 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6536 xe_check_libs=" -lX11 -b i486-linuxaout"
6537 cat > conftest.$ac_ext <<EOF
6538 #line 6539 "configure"
6539 #include "confdefs.h"
6540 /* Override any gcc2 internal prototype to avoid an error. */
6541 /* We use char because int might match the return type of a gcc2
6542 builtin and then its argument prototype would still apply. */
6543 char XGetFontProperty();
6549 if { (eval echo configure:6550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6551 eval "ac_cv_lib_$ac_lib_var=yes"
6553 echo "configure: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6556 eval "ac_cv_lib_$ac_lib_var=no"
6561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6562 echo "$ac_t""yes" 1>&6
6563 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6565 echo "$ac_t""no" 1>&6
6566 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6572 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6575 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6576 echo "configure:6577: checking for XShapeSelectInput in -lXext" >&5
6577 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6579 xe_check_libs=" -lXext "
6580 cat > conftest.$ac_ext <<EOF
6581 #line 6582 "configure"
6582 #include "confdefs.h"
6583 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6586 char XShapeSelectInput();
6592 if { (eval echo configure:6593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6594 eval "ac_cv_lib_$ac_lib_var=yes"
6596 echo "configure: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6599 eval "ac_cv_lib_$ac_lib_var=no"
6604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6605 echo "$ac_t""yes" 1>&6
6606 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6608 echo "$ac_t""no" 1>&6
6614 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6615 echo "configure:6616: checking for XtOpenDisplay in -lXt" >&5
6616 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6618 xe_check_libs=" -lXt "
6619 cat > conftest.$ac_ext <<EOF
6620 #line 6621 "configure"
6621 #include "confdefs.h"
6622 /* Override any gcc2 internal prototype to avoid an error. */
6623 /* We use char because int might match the return type of a gcc2
6624 builtin and then its argument prototype would still apply. */
6625 char XtOpenDisplay();
6631 if { (eval echo configure:6632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6633 eval "ac_cv_lib_$ac_lib_var=yes"
6635 echo "configure: failed program was:" >&5
6636 cat conftest.$ac_ext >&5
6638 eval "ac_cv_lib_$ac_lib_var=no"
6643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6644 echo "$ac_t""yes" 1>&6
6645 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6647 echo "$ac_t""no" 1>&6
6648 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6653 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6654 echo "configure:6655: checking the version of X11 being used" >&5
6655 cat > conftest.$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6658 #include <X11/Intrinsic.h>
6659 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6661 if { (eval echo configure:6662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6663 ./conftest foobar; x11_release=$?
6666 echo "configure: failed program was:" >&5
6667 cat conftest.$ac_ext >&5
6672 echo "$ac_t""R${x11_release}" 1>&6
6673 { test "$extra_verbose" = "yes" && cat << EOF
6674 Defining THIS_IS_X11R${x11_release}
6676 cat >> confdefs.h <<EOF
6677 #define THIS_IS_X11R${x11_release} 1
6682 if test "${x11_release}" = "4"; then
6683 case "$with_widgets" in
6684 "" | "no") with_widgets=no ;;
6685 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6689 for ac_func in XConvertCase
6691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6692 echo "configure:6693: checking for $ac_func" >&5
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 /* System header to define __stub macros and hopefully few prototypes,
6698 which can conflict with char $ac_func(); below. */
6700 /* Override any gcc2 internal prototype to avoid an error. */
6701 /* We use char because int might match the return type of a gcc2
6702 builtin and then its argument prototype would still apply. */
6707 /* The GNU C library defines this for functions which it implements
6708 to always fail with ENOSYS. Some functions are actually named
6709 something starting with __ and the normal name is an alias. */
6710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6718 if { (eval echo configure:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6720 eval "ac_cv_func_$ac_func=yes"
6722 echo "configure: failed program was:" >&5
6723 cat conftest.$ac_ext >&5
6725 eval "ac_cv_func_$ac_func=no"
6729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6730 echo "$ac_t""yes" 1>&6
6731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6732 { test "$extra_verbose" = "yes" && cat << EOF
6733 Defining $ac_tr_func
6735 cat >> confdefs.h <<EOF
6736 #define $ac_tr_func 1
6741 echo "$ac_t""no" 1>&6
6746 for ac_hdr in X11/Xlocale.h
6748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6750 echo "configure:6751: checking for $ac_hdr" >&5
6752 cat > conftest.$ac_ext <<EOF
6753 #line 6754 "configure"
6754 #include "confdefs.h"
6757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6758 { (eval echo configure:6759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6760 if test -z "$ac_err"; then
6762 eval "ac_cv_header_$ac_safe=yes"
6765 echo "configure: failed program was:" >&5
6766 cat conftest.$ac_ext >&5
6768 eval "ac_cv_header_$ac_safe=no"
6771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6772 echo "$ac_t""yes" 1>&6
6773 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6774 { test "$extra_verbose" = "yes" && cat << EOF
6777 cat >> confdefs.h <<EOF
6778 #define $ac_tr_hdr 1
6783 echo "$ac_t""no" 1>&6
6788 for ac_func in XRegisterIMInstantiateCallback
6790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6791 echo "configure:6792: checking for $ac_func" >&5
6793 cat > conftest.$ac_ext <<EOF
6794 #line 6795 "configure"
6795 #include "confdefs.h"
6796 /* System header to define __stub macros and hopefully few prototypes,
6797 which can conflict with char $ac_func(); below. */
6799 /* Override any gcc2 internal prototype to avoid an error. */
6800 /* We use char because int might match the return type of a gcc2
6801 builtin and then its argument prototype would still apply. */
6806 /* The GNU C library defines this for functions which it implements
6807 to always fail with ENOSYS. Some functions are actually named
6808 something starting with __ and the normal name is an alias. */
6809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6817 if { (eval echo configure:6818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6819 eval "ac_cv_func_$ac_func=yes"
6821 echo "configure: failed program was:" >&5
6822 cat conftest.$ac_ext >&5
6824 eval "ac_cv_func_$ac_func=no"
6828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6829 echo "$ac_t""yes" 1>&6
6830 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6831 { test "$extra_verbose" = "yes" && cat << EOF
6832 Defining $ac_tr_func
6834 cat >> confdefs.h <<EOF
6835 #define $ac_tr_func 1
6840 echo "$ac_t""no" 1>&6
6844 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6845 echo "configure:6846: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6846 cat > conftest.$ac_ext <<EOF
6847 #line 6848 "configure"
6848 #include "confdefs.h"
6850 #define NeedFunctionPrototypes 1
6851 #include <X11/Xlib.h>
6852 extern Bool XRegisterIMInstantiateCallback(
6853 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6859 if { (eval echo configure:6860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6861 echo "$ac_t""yes" 1>&6
6863 echo "configure: failed program was:" >&5
6864 cat conftest.$ac_ext >&5
6866 echo "$ac_t""no" 1>&6
6867 { test "$extra_verbose" = "yes" && cat << \EOF
6868 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6870 cat >> confdefs.h <<\EOF
6871 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6878 test -z "$with_xmu" && {
6879 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6880 echo "configure:6881: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6881 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6883 xe_check_libs=" -lXmu "
6884 cat > conftest.$ac_ext <<EOF
6885 #line 6886 "configure"
6886 #include "confdefs.h"
6887 /* Override any gcc2 internal prototype to avoid an error. */
6888 /* We use char because int might match the return type of a gcc2
6889 builtin and then its argument prototype would still apply. */
6890 char XmuReadBitmapDataFromFile();
6893 XmuReadBitmapDataFromFile()
6896 if { (eval echo configure:6897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6898 eval "ac_cv_lib_$ac_lib_var=yes"
6900 echo "configure: failed program was:" >&5
6901 cat conftest.$ac_ext >&5
6903 eval "ac_cv_lib_$ac_lib_var=no"
6908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6909 echo "$ac_t""yes" 1>&6
6912 echo "$ac_t""no" 1>&6
6917 if test "$with_xmu" = "no"; then
6918 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6919 echo " xemacs will be linked with \"xmu.o\""
6922 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6923 { test "$extra_verbose" = "yes" && cat << \EOF
6926 cat >> confdefs.h <<\EOF
6934 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6935 echo "configure:6936: checking for main in -lXbsd" >&5
6936 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6938 xe_check_libs=" -lXbsd "
6939 cat > conftest.$ac_ext <<EOF
6940 #line 6941 "configure"
6941 #include "confdefs.h"
6947 if { (eval echo configure:6948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6949 eval "ac_cv_lib_$ac_lib_var=yes"
6951 echo "configure: failed program was:" >&5
6952 cat conftest.$ac_ext >&5
6954 eval "ac_cv_lib_$ac_lib_var=no"
6959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6960 echo "$ac_t""yes" 1>&6
6961 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6963 echo "$ac_t""no" 1>&6
6968 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6969 if test "$GCC" = "yes"; then
6970 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6971 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6974 "xlc" ) CC="xlc_r" ;;
6975 "xlC" ) CC="xlC_r" ;;
6982 if test "$with_msw" != "no"; then
6983 echo "checking for MS-Windows" 1>&6
6984 echo "configure:6985: checking for MS-Windows" >&5
6986 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6987 echo "configure:6988: checking for main in -lgdi32" >&5
6988 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6990 xe_check_libs=" -lgdi32 "
6991 cat > conftest.$ac_ext <<EOF
6992 #line 6993 "configure"
6993 #include "confdefs.h"
6999 if { (eval echo configure:7000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7001 eval "ac_cv_lib_$ac_lib_var=yes"
7003 echo "configure: failed program was:" >&5
7004 cat conftest.$ac_ext >&5
7006 eval "ac_cv_lib_$ac_lib_var=no"
7011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7012 echo "$ac_t""yes" 1>&6
7015 echo "$ac_t""no" 1>&6
7019 if test "$with_msw" = "yes"; then
7020 { test "$extra_verbose" = "yes" && cat << \EOF
7021 Defining HAVE_MS_WINDOWS
7023 cat >> confdefs.h <<\EOF
7024 #define HAVE_MS_WINDOWS 1
7029 if test "$with_netinstall" = "yes"; then
7030 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7031 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7032 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7035 install_pp="$blddir/lib-src/installexe.sh"
7036 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
7037 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7038 if test "$window_system" != x11; then
7040 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7041 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7042 echo " xemacs will be linked with \"scrollbar-msw.o\""
7044 test "$with_menubars" != "no" && with_menubars=msw \
7045 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7046 echo " xemacs will be linked with \"menubar-msw.o\""
7048 test "$with_toolbars" != "no" && with_toolbars=msw \
7049 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7050 echo " xemacs will be linked with \"toolbar-msw.o\""
7052 test "$with_dialogs" != "no" && with_dialogs=msw \
7053 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7054 echo " xemacs will be linked with \"dialog-msw.o\""
7056 test "$with_widgets" != "no" && with_widgets=msw
7058 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7059 echo " xemacs will be linked with \"scrollbar-msw.o\""
7061 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7062 echo " xemacs will be linked with \"menubar-msw.o\""
7064 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7065 echo " xemacs will be linked with \"toolbar-msw.o\""
7067 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7068 echo " xemacs will be linked with \"dialog-msw.o\""
7071 cat > conftest.$ac_ext <<EOF
7072 #line 7073 "configure"
7073 #include "confdefs.h"
7075 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7077 if { (eval echo configure:7078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7079 { test "$extra_verbose" = "yes" && cat << \EOF
7080 Defining HAVE_MSG_SELECT
7082 cat >> confdefs.h <<\EOF
7083 #define HAVE_MSG_SELECT 1
7089 echo "configure: failed program was:" >&5
7090 cat conftest.$ac_ext >&5
7093 with_file_coding=yes
7094 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
7095 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\""
7102 test -z "$window_system" && window_system="none"
7104 if test "$window_system" = "none"; then
7105 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7107 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7108 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7110 eval "with_${feature}=no"
7113 test -z "$with_toolbars" && with_toolbars=yes
7116 if test "$with_msw" != "yes"; then
7117 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7119 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7120 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7122 eval "with_${feature}=no"
7128 if test "$with_x11" != "yes"; then
7129 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7131 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7132 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7134 eval "with_${feature}=no"
7138 if test "$with_x11" = "yes"; then
7139 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7140 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7141 echo "configure:7142: checking for X11/extensions/shape.h" >&5
7143 cat > conftest.$ac_ext <<EOF
7144 #line 7145 "configure"
7145 #include "confdefs.h"
7146 #include <X11/extensions/shape.h>
7148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7149 { (eval echo configure:7150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7151 if test -z "$ac_err"; then
7153 eval "ac_cv_header_$ac_safe=yes"
7156 echo "configure: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7159 eval "ac_cv_header_$ac_safe=no"
7162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7163 echo "$ac_t""yes" 1>&6
7165 { test "$extra_verbose" = "yes" && cat << \EOF
7166 Defining HAVE_BALLOON_HELP
7168 cat >> confdefs.h <<\EOF
7169 #define HAVE_BALLOON_HELP 1
7173 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7174 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7177 echo "$ac_t""no" 1>&6
7184 case "$window_system" in
7185 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7186 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7189 test "$with_gnome" = "yes" && echo " Using GNOME."
7190 test "$with_gnome" = "no" && echo " Using GTK."
7192 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7195 case "$x_libraries" in *X11R4* )
7196 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7197 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7200 echo "checking for WM_COMMAND option" 1>&6
7201 echo "configure:7202: checking for WM_COMMAND option" >&5;
7202 if test "$with_wmcommand" != "no"; then
7203 { test "$extra_verbose" = "yes" && cat << \EOF
7204 Defining HAVE_WMCOMMAND
7206 cat >> confdefs.h <<\EOF
7207 #define HAVE_WMCOMMAND 1
7213 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7214 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7215 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7216 echo "configure:7217: checking for X11/Xauth.h" >&5
7218 cat > conftest.$ac_ext <<EOF
7219 #line 7220 "configure"
7220 #include "confdefs.h"
7221 #include <X11/Xauth.h>
7223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7224 { (eval echo configure:7225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7225 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7226 if test -z "$ac_err"; then
7228 eval "ac_cv_header_$ac_safe=yes"
7231 echo "configure: failed program was:" >&5
7232 cat conftest.$ac_ext >&5
7234 eval "ac_cv_header_$ac_safe=no"
7237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7238 echo "$ac_t""yes" 1>&6
7241 echo "$ac_t""no" 1>&6
7245 test -z "$with_xauth" && {
7246 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7247 echo "configure:7248: checking for XauGetAuthByAddr in -lXau" >&5
7248 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7250 xe_check_libs=" -lXau "
7251 cat > conftest.$ac_ext <<EOF
7252 #line 7253 "configure"
7253 #include "confdefs.h"
7254 /* Override any gcc2 internal prototype to avoid an error. */
7255 /* We use char because int might match the return type of a gcc2
7256 builtin and then its argument prototype would still apply. */
7257 char XauGetAuthByAddr();
7263 if { (eval echo configure:7264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7265 eval "ac_cv_lib_$ac_lib_var=yes"
7267 echo "configure: failed program was:" >&5
7268 cat conftest.$ac_ext >&5
7270 eval "ac_cv_lib_$ac_lib_var=no"
7275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7276 echo "$ac_t""yes" 1>&6
7279 echo "$ac_t""no" 1>&6
7284 test -z "$with_xauth" && with_xauth=yes
7285 if test "$with_xauth" = "yes"; then
7286 { test "$extra_verbose" = "yes" && cat << \EOF
7289 cat >> confdefs.h <<\EOF
7290 #define HAVE_XAUTH 1
7296 for W in $GTK_LIBS $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
7304 if test "$with_tooltalk" != "no" ; then
7305 for dir in "" "Tt/" "desktop/" ; do
7306 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7307 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7308 echo "configure:7309: checking for ${dir}tt_c.h" >&5
7310 cat > conftest.$ac_ext <<EOF
7311 #line 7312 "configure"
7312 #include "confdefs.h"
7313 #include <${dir}tt_c.h>
7315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7316 { (eval echo configure:7317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7318 if test -z "$ac_err"; then
7320 eval "ac_cv_header_$ac_safe=yes"
7323 echo "configure: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7326 eval "ac_cv_header_$ac_safe=no"
7329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7330 echo "$ac_t""yes" 1>&6
7331 tt_c_h_file="${dir}tt_c.h"; break
7333 echo "$ac_t""no" 1>&6
7337 if test -z "$tt_c_h_file"; then
7338 if test "$with_tooltalk" = "yes"; then
7339 (echo "$progname: Usage error:"
7340 echo " " "Unable to find required tooltalk header files."
7341 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7346 if test "$with_tooltalk" != "no" ; then
7347 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7349 xe_msg_checking="for tt_message_create in -ltt"
7350 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7351 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7352 echo "configure:7353: checking "$xe_msg_checking"" >&5
7353 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7355 xe_check_libs=" -ltt $extra_libs"
7356 cat > conftest.$ac_ext <<EOF
7357 #line 7358 "configure"
7358 #include "confdefs.h"
7359 /* Override any gcc2 internal prototype to avoid an error. */
7360 /* We use char because int might match the return type of a gcc2
7361 builtin and then its argument prototype would still apply. */
7362 char tt_message_create();
7368 if { (eval echo configure:7369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7370 eval "ac_cv_lib_$ac_lib_var=yes"
7372 echo "configure: failed program was:" >&5
7373 cat conftest.$ac_ext >&5
7375 eval "ac_cv_lib_$ac_lib_var=no"
7380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7381 echo "$ac_t""yes" 1>&6
7382 tt_libs="-ltt $extra_libs"; break
7384 echo "$ac_t""no" 1>&6
7390 if test -z "$tt_libs"; then
7391 if test "$with_tooltalk" = "yes"; then
7392 (echo "$progname: Usage error:"
7393 echo " " "Unable to find required tooltalk libraries."
7394 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7399 test -z "$with_tooltalk" && with_tooltalk=yes
7400 if test "$with_tooltalk" = "yes"; then
7401 { test "$extra_verbose" = "yes" && cat << \EOF
7404 cat >> confdefs.h <<\EOF
7409 { test "$extra_verbose" = "yes" && cat << EOF
7410 Defining TT_C_H_FILE = "$tt_c_h_file"
7412 cat >> confdefs.h <<EOF
7413 #define TT_C_H_FILE "$tt_c_h_file"
7417 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7418 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7419 echo " xemacs will be linked with \"tooltalk.o\""
7423 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7424 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7425 echo "configure:7426: checking for Dt/Dt.h" >&5
7427 cat > conftest.$ac_ext <<EOF
7428 #line 7429 "configure"
7429 #include "confdefs.h"
7432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7433 { (eval echo configure:7434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7435 if test -z "$ac_err"; then
7437 eval "ac_cv_header_$ac_safe=yes"
7440 echo "configure: failed program was:" >&5
7441 cat conftest.$ac_ext >&5
7443 eval "ac_cv_header_$ac_safe=no"
7446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7447 echo "$ac_t""yes" 1>&6
7450 echo "$ac_t""no" 1>&6
7454 test -z "$with_cde" && {
7455 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7456 echo "configure:7457: checking for DtDndDragStart in -lDtSvc" >&5
7457 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7459 xe_check_libs=" -lDtSvc "
7460 cat > conftest.$ac_ext <<EOF
7461 #line 7462 "configure"
7462 #include "confdefs.h"
7463 /* Override any gcc2 internal prototype to avoid an error. */
7464 /* We use char because int might match the return type of a gcc2
7465 builtin and then its argument prototype would still apply. */
7466 char DtDndDragStart();
7472 if { (eval echo configure:7473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7474 eval "ac_cv_lib_$ac_lib_var=yes"
7476 echo "configure: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7479 eval "ac_cv_lib_$ac_lib_var=no"
7484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7485 echo "$ac_t""yes" 1>&6
7488 echo "$ac_t""no" 1>&6
7493 test -z "$with_cde" && with_cde=yes
7494 if test "$with_dragndrop" = no; then
7495 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7498 if test "$with_cde" = "yes" ; then
7499 { test "$extra_verbose" = "yes" && cat << \EOF
7502 cat >> confdefs.h <<\EOF
7507 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7508 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7509 with_tooltalk=yes # CDE requires Tooltalk
7510 need_motif=yes # CDE requires Motif
7513 test "$window_system" != "x11" && with_offix=no
7514 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7515 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7518 if test "$with_dragndrop" = no; then
7519 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7522 if test "$with_cde" = yes; then
7523 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7526 test -z "$with_offix" && with_offix=no
7527 if test "$with_offix" = "yes"; then
7528 { test "$extra_verbose" = "yes" && cat << \EOF
7529 Defining HAVE_OFFIX_DND
7531 cat >> confdefs.h <<\EOF
7532 #define HAVE_OFFIX_DND 1
7536 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7537 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7539 if test "$with_gtk" = "yes"; then
7540 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7543 if test "$with_dragndrop" != "no" ; then
7544 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7545 echo "configure:7546: checking if drag and drop API is needed" >&5
7546 if test -n "$dragndrop_proto" ; then
7548 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7549 { test "$extra_verbose" = "yes" && cat << \EOF
7550 Defining HAVE_DRAGNDROP
7552 cat >> confdefs.h <<\EOF
7553 #define HAVE_DRAGNDROP 1
7557 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7560 echo "$ac_t""no" 1>&6
7564 echo "checking for LDAP" 1>&6
7565 echo "configure:7566: checking for LDAP" >&5
7566 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7567 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7568 echo "configure:7569: checking for ldap.h" >&5
7570 cat > conftest.$ac_ext <<EOF
7571 #line 7572 "configure"
7572 #include "confdefs.h"
7575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7576 { (eval echo configure:7577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7578 if test -z "$ac_err"; then
7580 eval "ac_cv_header_$ac_safe=yes"
7583 echo "configure: failed program was:" >&5
7584 cat conftest.$ac_ext >&5
7586 eval "ac_cv_header_$ac_safe=no"
7589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7590 echo "$ac_t""yes" 1>&6
7593 echo "$ac_t""no" 1>&6
7597 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7598 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7599 echo "configure:7600: checking for lber.h" >&5
7601 cat > conftest.$ac_ext <<EOF
7602 #line 7603 "configure"
7603 #include "confdefs.h"
7606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7607 { (eval echo configure:7608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7609 if test -z "$ac_err"; then
7611 eval "ac_cv_header_$ac_safe=yes"
7614 echo "configure: failed program was:" >&5
7615 cat conftest.$ac_ext >&5
7617 eval "ac_cv_header_$ac_safe=no"
7620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7621 echo "$ac_t""yes" 1>&6
7624 echo "$ac_t""no" 1>&6
7628 if test "$with_ldap" != "no"; then
7630 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7631 echo "configure:7632: checking for ldap_search in -lldap" >&5
7632 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7634 xe_check_libs=" -lldap "
7635 cat > conftest.$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7638 /* Override any gcc2 internal prototype to avoid an error. */
7639 /* We use char because int might match the return type of a gcc2
7640 builtin and then its argument prototype would still apply. */
7647 if { (eval echo configure:7648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7649 eval "ac_cv_lib_$ac_lib_var=yes"
7651 echo "configure: failed program was:" >&5
7652 cat conftest.$ac_ext >&5
7654 eval "ac_cv_lib_$ac_lib_var=no"
7659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7660 echo "$ac_t""yes" 1>&6
7661 with_ldap_nolber=yes
7663 echo "$ac_t""no" 1>&6
7668 test "$with_ldap_nolber" = "no" && {
7669 xe_msg_checking="for ldap_open in -lldap"
7670 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7671 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7672 echo "configure:7673: checking "$xe_msg_checking"" >&5
7673 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7675 xe_check_libs=" -lldap -llber"
7676 cat > conftest.$ac_ext <<EOF
7677 #line 7678 "configure"
7678 #include "confdefs.h"
7679 /* Override any gcc2 internal prototype to avoid an error. */
7680 /* We use char because int might match the return type of a gcc2
7681 builtin and then its argument prototype would still apply. */
7688 if { (eval echo configure:7689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7690 eval "ac_cv_lib_$ac_lib_var=yes"
7692 echo "configure: failed program was:" >&5
7693 cat conftest.$ac_ext >&5
7695 eval "ac_cv_lib_$ac_lib_var=no"
7700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7701 echo "$ac_t""yes" 1>&6
7704 echo "$ac_t""no" 1>&6
7709 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7710 xe_msg_checking="for ldap_open in -lldap"
7711 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7712 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7713 echo "configure:7714: checking "$xe_msg_checking"" >&5
7714 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7716 xe_check_libs=" -lldap -llber -lkrb"
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. */
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
7745 echo "$ac_t""no" 1>&6
7750 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7751 xe_msg_checking="for ldap_open in -lldap"
7752 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7753 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7754 echo "configure:7755: checking "$xe_msg_checking"" >&5
7755 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7757 xe_check_libs=" -lldap -llber -lkrb -ldes"
7758 cat > conftest.$ac_ext <<EOF
7759 #line 7760 "configure"
7760 #include "confdefs.h"
7761 /* Override any gcc2 internal prototype to avoid an error. */
7762 /* We use char because int might match the return type of a gcc2
7763 builtin and then its argument prototype would still apply. */
7770 if { (eval echo configure:7771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7772 eval "ac_cv_lib_$ac_lib_var=yes"
7774 echo "configure: failed program was:" >&5
7775 cat conftest.$ac_ext >&5
7777 eval "ac_cv_lib_$ac_lib_var=no"
7782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7783 echo "$ac_t""yes" 1>&6
7784 with_ldap_krbdes=yes
7786 echo "$ac_t""no" 1>&6
7791 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
7793 if test "$with_ldap" = "yes"; then
7794 { test "$extra_verbose" = "yes" && cat << \EOF
7797 cat >> confdefs.h <<\EOF
7802 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7803 echo " xemacs will be linked with \"eldap.o\""
7805 if test "$with_ldap_nolber" = "yes" ; then
7806 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7808 if test "$with_ldap_krb" = "yes" ; then
7809 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7811 if test "$with_ldap_krbdes" = "yes" ; then
7812 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7813 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7815 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7816 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7818 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7821 echo "configure:7822: checking for $ac_func" >&5
7823 cat > conftest.$ac_ext <<EOF
7824 #line 7825 "configure"
7825 #include "confdefs.h"
7826 /* System header to define __stub macros and hopefully few prototypes,
7827 which can conflict with char $ac_func(); below. */
7829 /* Override any gcc2 internal prototype to avoid an error. */
7830 /* We use char because int might match the return type of a gcc2
7831 builtin and then its argument prototype would still apply. */
7836 /* The GNU C library defines this for functions which it implements
7837 to always fail with ENOSYS. Some functions are actually named
7838 something starting with __ and the normal name is an alias. */
7839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7847 if { (eval echo configure:7848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7849 eval "ac_cv_func_$ac_func=yes"
7851 echo "configure: failed program was:" >&5
7852 cat conftest.$ac_ext >&5
7854 eval "ac_cv_func_$ac_func=no"
7858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7859 echo "$ac_t""yes" 1>&6
7860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7861 { test "$extra_verbose" = "yes" && cat << EOF
7862 Defining $ac_tr_func
7864 cat >> confdefs.h <<EOF
7865 #define $ac_tr_func 1
7870 echo "$ac_t""no" 1>&6
7876 if test "$with_postgresql" != "no"; then
7877 echo "checking for PostgreSQL" 1>&6
7878 echo "configure:7879: checking for PostgreSQL" >&5
7880 for header_dir in "" "pgsql/" "postgresql/"; do
7881 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7882 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7883 echo "configure:7884: checking for ${header_dir}libpq-fe.h" >&5
7885 cat > conftest.$ac_ext <<EOF
7886 #line 7887 "configure"
7887 #include "confdefs.h"
7888 #include <${header_dir}libpq-fe.h>
7890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7891 { (eval echo configure:7892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7893 if test -z "$ac_err"; then
7895 eval "ac_cv_header_$ac_safe=yes"
7898 echo "configure: failed program was:" >&5
7899 cat conftest.$ac_ext >&5
7901 eval "ac_cv_header_$ac_safe=no"
7904 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7905 echo "$ac_t""yes" 1>&6
7906 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7908 echo "$ac_t""no" 1>&6
7913 test -n "$libpq_fe_h_file" && {
7914 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7915 echo "configure:7916: checking for PQconnectdb in -lpq" >&5
7916 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7918 xe_check_libs=" -lpq "
7919 cat > conftest.$ac_ext <<EOF
7920 #line 7921 "configure"
7921 #include "confdefs.h"
7922 /* Override any gcc2 internal prototype to avoid an error. */
7923 /* We use char because int might match the return type of a gcc2
7924 builtin and then its argument prototype would still apply. */
7931 if { (eval echo configure:7932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7933 eval "ac_cv_lib_$ac_lib_var=yes"
7935 echo "configure: failed program was:" >&5
7936 cat conftest.$ac_ext >&5
7938 eval "ac_cv_lib_$ac_lib_var=no"
7943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7944 echo "$ac_t""yes" 1>&6
7947 echo "$ac_t""no" 1>&6
7952 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7954 { test "$extra_verbose" = "yes" && cat << \EOF
7955 Defining HAVE_POSTGRESQL
7957 cat >> confdefs.h <<\EOF
7958 #define HAVE_POSTGRESQL 1
7963 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7964 echo "configure:7965: checking for PQconnectStart in -lpq" >&5
7965 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7967 xe_check_libs=" -lpq "
7968 cat > conftest.$ac_ext <<EOF
7969 #line 7970 "configure"
7970 #include "confdefs.h"
7971 /* Override any gcc2 internal prototype to avoid an error. */
7972 /* We use char because int might match the return type of a gcc2
7973 builtin and then its argument prototype would still apply. */
7974 char PQconnectStart();
7980 if { (eval echo configure:7981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7982 eval "ac_cv_lib_$ac_lib_var=yes"
7984 echo "configure: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7987 eval "ac_cv_lib_$ac_lib_var=no"
7992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7993 echo "$ac_t""yes" 1>&6
7994 with_postgresqlv7=yes;
7995 { test "$extra_verbose" = "yes" && cat << \EOF
7996 Defining HAVE_POSTGRESQLV7
7998 cat >> confdefs.h <<\EOF
7999 #define HAVE_POSTGRESQLV7 1
8004 echo "$ac_t""no" 1>&6
8008 { test "$extra_verbose" = "yes" && cat << EOF
8009 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8011 cat >> confdefs.h <<EOF
8012 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8016 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8017 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8018 echo " xemacs will be linked with \"postgresql.o\""
8020 elif test "$with_postgresql" = "yes"; then
8021 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8026 if test "$window_system" != "none"; then
8027 echo "checking for graphics libraries" 1>&6
8028 echo "configure:8029: checking for graphics libraries" >&5
8031 if test -z "$with_xpm"; then
8032 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8033 echo "configure:8034: checking for Xpm - no older than 3.4f" >&5
8035 cat > conftest.$ac_ext <<EOF
8036 #line 8037 "configure"
8037 #include "confdefs.h"
8039 #include <X11/xpm.h>
8040 int main(int c, char **v) {
8042 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8043 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8045 if { (eval echo configure:8046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8047 ./conftest dummy_arg; xpm_status=$?;
8048 if test "$xpm_status" = "0"; then
8052 if test "$xpm_status" = "1"; then
8053 xpm_problem="Xpm library version and header file version don't match!"
8054 elif test "$xpm_status" = "2"; then
8055 xpm_problem="Xpm library version is too old!"
8057 xpm_problem="Internal xpm detection logic error!"
8060 *** WARNING *** $xpm_problem
8061 I'm not touching that with a 10-foot pole!
8062 If you really want to use the installed version of Xpm, rerun
8063 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8067 echo "configure: failed program was:" >&5
8068 cat conftest.$ac_ext >&5
8074 echo "$ac_t""$with_xpm" 1>&6
8076 if test "$with_xpm" = "yes"; then
8077 { test "$extra_verbose" = "yes" && cat << \EOF
8080 cat >> confdefs.h <<\EOF
8085 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8086 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8087 echo "configure:8088: checking for \"FOR_MSW\" xpm" >&5
8089 cat > conftest.$ac_ext <<EOF
8090 #line 8091 "configure"
8091 #include "confdefs.h"
8094 XpmCreatePixmapFromData()
8097 if { (eval echo configure:8098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8101 echo "configure: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8108 echo "$ac_t""$xpm_for_msw" 1>&6
8109 if test "$xpm_for_msw" = "yes"; then
8110 { test "$extra_verbose" = "yes" && cat << \EOF
8113 cat >> confdefs.h <<\EOF
8121 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8122 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8123 echo "configure:8124: checking for compface.h" >&5
8125 cat > conftest.$ac_ext <<EOF
8126 #line 8127 "configure"
8127 #include "confdefs.h"
8128 #include <compface.h>
8130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8131 { (eval echo configure:8132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8133 if test -z "$ac_err"; then
8135 eval "ac_cv_header_$ac_safe=yes"
8138 echo "configure: failed program was:" >&5
8139 cat conftest.$ac_ext >&5
8141 eval "ac_cv_header_$ac_safe=no"
8144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8145 echo "$ac_t""yes" 1>&6
8148 echo "$ac_t""no" 1>&6
8152 test -z "$with_xface" && {
8153 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8154 echo "configure:8155: checking for UnGenFace in -lcompface" >&5
8155 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8157 xe_check_libs=" -lcompface "
8158 cat > conftest.$ac_ext <<EOF
8159 #line 8160 "configure"
8160 #include "confdefs.h"
8161 /* Override any gcc2 internal prototype to avoid an error. */
8162 /* We use char because int might match the return type of a gcc2
8163 builtin and then its argument prototype would still apply. */
8170 if { (eval echo configure:8171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8172 eval "ac_cv_lib_$ac_lib_var=yes"
8174 echo "configure: failed program was:" >&5
8175 cat conftest.$ac_ext >&5
8177 eval "ac_cv_lib_$ac_lib_var=no"
8182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8183 echo "$ac_t""yes" 1>&6
8186 echo "$ac_t""no" 1>&6
8191 test -z "$with_xface" && with_xface=yes
8192 if test "$with_xface" = "yes"; then
8193 { test "$extra_verbose" = "yes" && cat << \EOF
8196 cat >> confdefs.h <<\EOF
8197 #define HAVE_XFACE 1
8201 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8204 if test "$with_gif" != "no"; then
8206 { test "$extra_verbose" = "yes" && cat << \EOF
8209 cat >> confdefs.h <<\EOF
8214 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8215 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8219 if test "$with_png $with_tiff" != "no no"; then
8221 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8222 echo "configure:8223: checking for inflate in -lc" >&5
8223 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8225 xe_check_libs=" -lc "
8226 cat > conftest.$ac_ext <<EOF
8227 #line 8228 "configure"
8228 #include "confdefs.h"
8229 /* Override any gcc2 internal prototype to avoid an error. */
8230 /* We use char because int might match the return type of a gcc2
8231 builtin and then its argument prototype would still apply. */
8238 if { (eval echo configure:8239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8240 eval "ac_cv_lib_$ac_lib_var=yes"
8242 echo "configure: failed program was:" >&5
8243 cat conftest.$ac_ext >&5
8245 eval "ac_cv_lib_$ac_lib_var=no"
8250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8251 echo "$ac_t""yes" 1>&6
8254 echo "$ac_t""no" 1>&6
8256 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8257 echo "configure:8258: checking for inflate in -lz" >&5
8258 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8260 xe_check_libs=" -lz "
8261 cat > conftest.$ac_ext <<EOF
8262 #line 8263 "configure"
8263 #include "confdefs.h"
8264 /* Override any gcc2 internal prototype to avoid an error. */
8265 /* We use char because int might match the return type of a gcc2
8266 builtin and then its argument prototype would still apply. */
8273 if { (eval echo configure:8274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8275 eval "ac_cv_lib_$ac_lib_var=yes"
8277 echo "configure: failed program was:" >&5
8278 cat conftest.$ac_ext >&5
8280 eval "ac_cv_lib_$ac_lib_var=no"
8285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8286 echo "$ac_t""yes" 1>&6
8287 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8289 echo "$ac_t""no" 1>&6
8291 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8292 echo "configure:8293: checking for inflate in -lgz" >&5
8293 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8295 xe_check_libs=" -lgz "
8296 cat > conftest.$ac_ext <<EOF
8297 #line 8298 "configure"
8298 #include "confdefs.h"
8299 /* Override any gcc2 internal prototype to avoid an error. */
8300 /* We use char because int might match the return type of a gcc2
8301 builtin and then its argument prototype would still apply. */
8308 if { (eval echo configure:8309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8310 eval "ac_cv_lib_$ac_lib_var=yes"
8312 echo "configure: failed program was:" >&5
8313 cat conftest.$ac_ext >&5
8315 eval "ac_cv_lib_$ac_lib_var=no"
8320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8321 echo "$ac_t""yes" 1>&6
8322 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8324 echo "$ac_t""no" 1>&6
8336 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8337 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8338 echo "configure:8339: checking for jpeglib.h" >&5
8340 cat > conftest.$ac_ext <<EOF
8341 #line 8342 "configure"
8342 #include "confdefs.h"
8343 #include <jpeglib.h>
8345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8346 { (eval echo configure:8347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8348 if test -z "$ac_err"; then
8350 eval "ac_cv_header_$ac_safe=yes"
8353 echo "configure: failed program was:" >&5
8354 cat conftest.$ac_ext >&5
8356 eval "ac_cv_header_$ac_safe=no"
8359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8360 echo "$ac_t""yes" 1>&6
8363 echo "$ac_t""no" 1>&6
8367 test -z "$with_jpeg" && {
8368 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8369 echo "configure:8370: checking for jpeg_destroy_decompress in -ljpeg" >&5
8370 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8372 xe_check_libs=" -ljpeg "
8373 cat > conftest.$ac_ext <<EOF
8374 #line 8375 "configure"
8375 #include "confdefs.h"
8376 /* Override any gcc2 internal prototype to avoid an error. */
8377 /* We use char because int might match the return type of a gcc2
8378 builtin and then its argument prototype would still apply. */
8379 char jpeg_destroy_decompress();
8382 jpeg_destroy_decompress()
8385 if { (eval echo configure:8386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8387 eval "ac_cv_lib_$ac_lib_var=yes"
8389 echo "configure: failed program was:" >&5
8390 cat conftest.$ac_ext >&5
8392 eval "ac_cv_lib_$ac_lib_var=no"
8397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8398 echo "$ac_t""yes" 1>&6
8401 echo "$ac_t""no" 1>&6
8406 test -z "$with_jpeg" && with_jpeg=yes
8407 if test "$with_jpeg" = "yes"; then
8408 { test "$extra_verbose" = "yes" && cat << \EOF
8411 cat >> confdefs.h <<\EOF
8416 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8420 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8421 echo "configure:8422: checking for pow" >&5
8423 cat > conftest.$ac_ext <<EOF
8424 #line 8425 "configure"
8425 #include "confdefs.h"
8426 /* System header to define __stub macros and hopefully few prototypes,
8427 which can conflict with char pow(); below. */
8429 /* Override any gcc2 internal prototype to avoid an error. */
8430 /* We use char because int might match the return type of a gcc2
8431 builtin and then its argument prototype would still apply. */
8436 /* The GNU C library defines this for functions which it implements
8437 to always fail with ENOSYS. Some functions are actually named
8438 something starting with __ and the normal name is an alias. */
8439 #if defined (__stub_pow) || defined (__stub___pow)
8447 if { (eval echo configure:8448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8449 eval "ac_cv_func_pow=yes"
8451 echo "configure: failed program was:" >&5
8452 cat conftest.$ac_ext >&5
8454 eval "ac_cv_func_pow=no"
8458 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8459 echo "$ac_t""yes" 1>&6
8462 echo "$ac_t""no" 1>&6
8466 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8467 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8468 echo "configure:8469: checking for png.h" >&5
8470 cat > conftest.$ac_ext <<EOF
8471 #line 8472 "configure"
8472 #include "confdefs.h"
8475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8476 { (eval echo configure:8477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8478 if test -z "$ac_err"; then
8480 eval "ac_cv_header_$ac_safe=yes"
8483 echo "configure: failed program was:" >&5
8484 cat conftest.$ac_ext >&5
8486 eval "ac_cv_header_$ac_safe=no"
8489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8490 echo "$ac_t""yes" 1>&6
8493 echo "$ac_t""no" 1>&6
8497 test -z "$with_png" && {
8498 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8499 echo "configure:8500: checking for png_read_image in -lpng" >&5
8500 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8502 xe_check_libs=" -lpng "
8503 cat > conftest.$ac_ext <<EOF
8504 #line 8505 "configure"
8505 #include "confdefs.h"
8506 /* Override any gcc2 internal prototype to avoid an error. */
8507 /* We use char because int might match the return type of a gcc2
8508 builtin and then its argument prototype would still apply. */
8509 char png_read_image();
8515 if { (eval echo configure:8516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8517 eval "ac_cv_lib_$ac_lib_var=yes"
8519 echo "configure: failed program was:" >&5
8520 cat conftest.$ac_ext >&5
8522 eval "ac_cv_lib_$ac_lib_var=no"
8527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8528 echo "$ac_t""yes" 1>&6
8531 echo "$ac_t""no" 1>&6
8536 if test -z "$with_png"; then
8537 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8538 echo "configure:8539: checking for workable png version information" >&5
8539 xe_check_libs="-lpng -lz"
8540 cat > conftest.$ac_ext <<EOF
8541 #line 8542 "configure"
8542 #include "confdefs.h"
8544 int main(int c, char **v) {
8545 if (c == 1) return 0;
8546 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8547 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8549 if { (eval echo configure:8550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8551 ./conftest dummy_arg; png_status=$?;
8552 if test "$png_status" = "0"; then
8556 if test "$png_status" = "1"; then
8557 png_problem="PNG library version and header file don't match!"
8558 elif test "$png_status" = "2"; then
8559 png_problem="PNG library version too old (pre 1.0.2)!"
8562 *** WARNING *** $png_problem
8563 I'm not touching that with a 10-foot pole!
8564 If you really want to use the installed version of libPNG, rerun
8565 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8569 echo "configure: failed program was:" >&5
8570 cat conftest.$ac_ext >&5
8576 echo "$ac_t""$with_png" 1>&6
8578 if test "$with_png" = "yes"; then
8579 { test "$extra_verbose" = "yes" && cat << \EOF
8582 cat >> confdefs.h <<\EOF
8587 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8590 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8591 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8592 echo "configure:8593: checking for tiffio.h" >&5
8594 cat > conftest.$ac_ext <<EOF
8595 #line 8596 "configure"
8596 #include "confdefs.h"
8599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8600 { (eval echo configure:8601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8602 if test -z "$ac_err"; then
8604 eval "ac_cv_header_$ac_safe=yes"
8607 echo "configure: failed program was:" >&5
8608 cat conftest.$ac_ext >&5
8610 eval "ac_cv_header_$ac_safe=no"
8613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8614 echo "$ac_t""yes" 1>&6
8617 echo "$ac_t""no" 1>&6
8621 test -z "$with_tiff" && {
8622 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8623 echo "configure:8624: checking for TIFFClientOpen in -ltiff" >&5
8624 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8626 xe_check_libs=" -ltiff "
8627 cat > conftest.$ac_ext <<EOF
8628 #line 8629 "configure"
8629 #include "confdefs.h"
8630 /* Override any gcc2 internal prototype to avoid an error. */
8631 /* We use char because int might match the return type of a gcc2
8632 builtin and then its argument prototype would still apply. */
8633 char TIFFClientOpen();
8639 if { (eval echo configure:8640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8641 eval "ac_cv_lib_$ac_lib_var=yes"
8643 echo "configure: failed program was:" >&5
8644 cat conftest.$ac_ext >&5
8646 eval "ac_cv_lib_$ac_lib_var=no"
8651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8652 echo "$ac_t""yes" 1>&6
8655 echo "$ac_t""no" 1>&6
8660 test -z "$with_tiff" && with_tiff=yes
8661 if test "$with_tiff" = "yes"; then
8662 { test "$extra_verbose" = "yes" && cat << \EOF
8665 cat >> confdefs.h <<\EOF
8670 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8675 if test "$with_gtk" = "yes"; then
8676 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8677 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8678 echo "configure:8679: checking for compface.h" >&5
8680 cat > conftest.$ac_ext <<EOF
8681 #line 8682 "configure"
8682 #include "confdefs.h"
8683 #include <compface.h>
8685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8686 { (eval echo configure:8687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8688 if test -z "$ac_err"; then
8690 eval "ac_cv_header_$ac_safe=yes"
8693 echo "configure: failed program was:" >&5
8694 cat conftest.$ac_ext >&5
8696 eval "ac_cv_header_$ac_safe=no"
8699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8700 echo "$ac_t""yes" 1>&6
8703 echo "$ac_t""no" 1>&6
8707 test -z "$with_xface" && {
8708 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8709 echo "configure:8710: checking for UnGenFace in -lcompface" >&5
8710 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8712 xe_check_libs=" -lcompface "
8713 cat > conftest.$ac_ext <<EOF
8714 #line 8715 "configure"
8715 #include "confdefs.h"
8716 /* Override any gcc2 internal prototype to avoid an error. */
8717 /* We use char because int might match the return type of a gcc2
8718 builtin and then its argument prototype would still apply. */
8725 if { (eval echo configure:8726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8727 eval "ac_cv_lib_$ac_lib_var=yes"
8729 echo "configure: failed program was:" >&5
8730 cat conftest.$ac_ext >&5
8732 eval "ac_cv_lib_$ac_lib_var=no"
8737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8738 echo "$ac_t""yes" 1>&6
8741 echo "$ac_t""no" 1>&6
8746 test -z "$with_xface" && with_xface=yes
8747 if test "$with_xface" = "yes"; then
8748 { test "$extra_verbose" = "yes" && cat << \EOF
8751 cat >> confdefs.h <<\EOF
8752 #define HAVE_XFACE 1
8756 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8762 if test "$with_x11" = "yes"; then
8763 echo "checking for X11 graphics libraries" 1>&6
8764 echo "configure:8765: checking for X11 graphics libraries" >&5
8767 if test "$with_x11" = "yes" -a "$with_widgets" = "athena"; then
8768 echo "checking for the Athena widgets" 1>&6
8769 echo "configure:8770: checking for the Athena widgets" >&5
8771 case "$with_athena" in
8772 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8773 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8774 "next") athena_variant=neXtaw athena_3d=yes ;;
8775 "95") athena_variant=Xaw95 athena_3d=yes ;;
8776 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8777 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8780 if test "$athena_3d" = "no"; then
8782 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8783 echo "configure:8784: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8784 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8786 xe_check_libs=" -l$athena_variant "
8787 cat > conftest.$ac_ext <<EOF
8788 #line 8789 "configure"
8789 #include "confdefs.h"
8790 /* Override any gcc2 internal prototype to avoid an error. */
8791 /* We use char because int might match the return type of a gcc2
8792 builtin and then its argument prototype would still apply. */
8793 char XawScrollbarSetThumb();
8796 XawScrollbarSetThumb()
8799 if { (eval echo configure:8800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8801 eval "ac_cv_lib_$ac_lib_var=yes"
8803 echo "configure: failed program was:" >&5
8804 cat conftest.$ac_ext >&5
8806 eval "ac_cv_lib_$ac_lib_var=no"
8811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8812 echo "$ac_t""yes" 1>&6
8814 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8815 echo "configure:8816: checking for threeDClassRec in -l$athena_variant" >&5
8816 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8818 xe_check_libs=" -l$athena_variant "
8819 cat > conftest.$ac_ext <<EOF
8820 #line 8821 "configure"
8821 #include "confdefs.h"
8822 /* Override any gcc2 internal prototype to avoid an error. */
8823 /* We use char because int might match the return type of a gcc2
8824 builtin and then its argument prototype would still apply. */
8825 char threeDClassRec();
8831 if { (eval echo configure:8832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8833 eval "ac_cv_lib_$ac_lib_var=yes"
8835 echo "configure: failed program was:" >&5
8836 cat conftest.$ac_ext >&5
8838 eval "ac_cv_lib_$ac_lib_var=no"
8843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8844 echo "$ac_t""yes" 1>&6
8845 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8847 echo "$ac_t""no" 1>&6
8848 athena_lib=$athena_variant
8854 echo "$ac_t""no" 1>&6
8855 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8861 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8862 echo "configure:8863: checking for threeDClassRec in -l$athena_variant" >&5
8863 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8865 xe_check_libs=" -l$athena_variant "
8866 cat > conftest.$ac_ext <<EOF
8867 #line 8868 "configure"
8868 #include "confdefs.h"
8869 /* Override any gcc2 internal prototype to avoid an error. */
8870 /* We use char because int might match the return type of a gcc2
8871 builtin and then its argument prototype would still apply. */
8872 char threeDClassRec();
8878 if { (eval echo configure:8879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8880 eval "ac_cv_lib_$ac_lib_var=yes"
8882 echo "configure: failed program was:" >&5
8883 cat conftest.$ac_ext >&5
8885 eval "ac_cv_lib_$ac_lib_var=no"
8890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8891 echo "$ac_t""yes" 1>&6
8892 athena_lib=$athena_variant
8894 echo "$ac_t""no" 1>&6
8895 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8896 echo "configure:8897: checking for threeDClassRec in -lXaw" >&5
8897 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8899 xe_check_libs=" -lXaw "
8900 cat > conftest.$ac_ext <<EOF
8901 #line 8902 "configure"
8902 #include "confdefs.h"
8903 /* Override any gcc2 internal prototype to avoid an error. */
8904 /* We use char because int might match the return type of a gcc2
8905 builtin and then its argument prototype would still apply. */
8906 char threeDClassRec();
8912 if { (eval echo configure:8913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8914 eval "ac_cv_lib_$ac_lib_var=yes"
8916 echo "configure: failed program was:" >&5
8917 cat conftest.$ac_ext >&5
8919 eval "ac_cv_lib_$ac_lib_var=no"
8924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8925 echo "$ac_t""yes" 1>&6
8927 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8930 echo "$ac_t""no" 1>&6
8931 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8940 if test "$athena_3d" = "no"; then
8941 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8942 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8943 echo "configure:8944: checking for X11/Xaw/ThreeD.h" >&5
8945 cat > conftest.$ac_ext <<EOF
8946 #line 8947 "configure"
8947 #include "confdefs.h"
8948 #include <X11/Xaw/ThreeD.h>
8950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8951 { (eval echo configure:8952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8953 if test -z "$ac_err"; then
8955 eval "ac_cv_header_$ac_safe=yes"
8958 echo "configure: failed program was:" >&5
8959 cat conftest.$ac_ext >&5
8961 eval "ac_cv_header_$ac_safe=no"
8964 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8965 echo "$ac_t""yes" 1>&6
8966 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8968 echo "$ac_t""no" 1>&6
8969 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8970 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8971 echo "configure:8972: checking for X11/Xaw/XawInit.h" >&5
8973 cat > conftest.$ac_ext <<EOF
8974 #line 8975 "configure"
8975 #include "confdefs.h"
8976 #include <X11/Xaw/XawInit.h>
8978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8979 { (eval echo configure:8980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8981 if test -z "$ac_err"; then
8983 eval "ac_cv_header_$ac_safe=yes"
8986 echo "configure: failed program was:" >&5
8987 cat conftest.$ac_ext >&5
8989 eval "ac_cv_header_$ac_safe=no"
8992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8993 echo "$ac_t""yes" 1>&6
8994 athena_h_path=X11/Xaw
8996 echo "$ac_t""no" 1>&6
8997 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9003 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9004 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
9005 echo "configure:9006: checking for X11/$athena_variant/XawInit.h" >&5
9007 cat > conftest.$ac_ext <<EOF
9008 #line 9009 "configure"
9009 #include "confdefs.h"
9010 #include <X11/$athena_variant/XawInit.h>
9012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9013 { (eval echo configure:9014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9015 if test -z "$ac_err"; then
9017 eval "ac_cv_header_$ac_safe=yes"
9020 echo "configure: failed program was:" >&5
9021 cat conftest.$ac_ext >&5
9023 eval "ac_cv_header_$ac_safe=no"
9026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9027 echo "$ac_t""yes" 1>&6
9028 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9029 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9030 echo "configure:9031: checking for X11/$athena_variant/ThreeD.h" >&5
9032 cat > conftest.$ac_ext <<EOF
9033 #line 9034 "configure"
9034 #include "confdefs.h"
9035 #include <X11/$athena_variant/ThreeD.h>
9037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9038 { (eval echo configure:9039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9040 if test -z "$ac_err"; then
9042 eval "ac_cv_header_$ac_safe=yes"
9045 echo "configure: failed program was:" >&5
9046 cat conftest.$ac_ext >&5
9048 eval "ac_cv_header_$ac_safe=no"
9051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9052 echo "$ac_t""yes" 1>&6
9053 athena_h_path=X11/$athena_variant
9055 echo "$ac_t""no" 1>&6
9059 echo "$ac_t""no" 1>&6
9063 if test -z "$athena_h_path"; then
9064 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9065 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9066 echo "configure:9067: checking for $athena_variant/XawInit.h" >&5
9068 cat > conftest.$ac_ext <<EOF
9069 #line 9070 "configure"
9070 #include "confdefs.h"
9071 #include <$athena_variant/XawInit.h>
9073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9074 { (eval echo configure:9075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9076 if test -z "$ac_err"; then
9078 eval "ac_cv_header_$ac_safe=yes"
9081 echo "configure: failed program was:" >&5
9082 cat conftest.$ac_ext >&5
9084 eval "ac_cv_header_$ac_safe=no"
9087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9088 echo "$ac_t""yes" 1>&6
9089 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9090 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9091 echo "configure:9092: checking for $athena_variant/ThreeD.h" >&5
9093 cat > conftest.$ac_ext <<EOF
9094 #line 9095 "configure"
9095 #include "confdefs.h"
9096 #include <$athena_variant/ThreeD.h>
9098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9099 { (eval echo configure:9100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9101 if test -z "$ac_err"; then
9103 eval "ac_cv_header_$ac_safe=yes"
9106 echo "configure: failed program was:" >&5
9107 cat conftest.$ac_ext >&5
9109 eval "ac_cv_header_$ac_safe=no"
9112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9113 echo "$ac_t""yes" 1>&6
9114 athena_h_path=$athena_variant
9116 echo "$ac_t""no" 1>&6
9120 echo "$ac_t""no" 1>&6
9125 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9126 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9127 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9128 echo "configure:9129: checking for X11/Xaw3d/XawInit.h" >&5
9130 cat > conftest.$ac_ext <<EOF
9131 #line 9132 "configure"
9132 #include "confdefs.h"
9133 #include <X11/Xaw3d/XawInit.h>
9135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9136 { (eval echo configure:9137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9138 if test -z "$ac_err"; then
9140 eval "ac_cv_header_$ac_safe=yes"
9143 echo "configure: failed program was:" >&5
9144 cat conftest.$ac_ext >&5
9146 eval "ac_cv_header_$ac_safe=no"
9149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9150 echo "$ac_t""yes" 1>&6
9151 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9152 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9153 echo "configure:9154: checking for X11/Xaw3d/ThreeD.h" >&5
9155 cat > conftest.$ac_ext <<EOF
9156 #line 9157 "configure"
9157 #include "confdefs.h"
9158 #include <X11/Xaw3d/ThreeD.h>
9160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9161 { (eval echo configure:9162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9163 if test -z "$ac_err"; then
9165 eval "ac_cv_header_$ac_safe=yes"
9168 echo "configure: failed program was:" >&5
9169 cat conftest.$ac_ext >&5
9171 eval "ac_cv_header_$ac_safe=no"
9174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9175 echo "$ac_t""yes" 1>&6
9177 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9178 athena_h_path=X11/Xaw3d
9181 echo "$ac_t""no" 1>&6
9185 echo "$ac_t""no" 1>&6
9190 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9191 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9192 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9193 echo "configure:9194: checking for Xaw3d/XawInit.h" >&5
9195 cat > conftest.$ac_ext <<EOF
9196 #line 9197 "configure"
9197 #include "confdefs.h"
9198 #include <Xaw3d/XawInit.h>
9200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9201 { (eval echo configure:9202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9203 if test -z "$ac_err"; then
9205 eval "ac_cv_header_$ac_safe=yes"
9208 echo "configure: failed program was:" >&5
9209 cat conftest.$ac_ext >&5
9211 eval "ac_cv_header_$ac_safe=no"
9214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9215 echo "$ac_t""yes" 1>&6
9216 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9217 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9218 echo "configure:9219: checking for Xaw3d/ThreeD.h" >&5
9220 cat > conftest.$ac_ext <<EOF
9221 #line 9222 "configure"
9222 #include "confdefs.h"
9223 #include <Xaw3d/ThreeD.h>
9225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9226 { (eval echo configure:9227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9227 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9228 if test -z "$ac_err"; then
9230 eval "ac_cv_header_$ac_safe=yes"
9233 echo "configure: failed program was:" >&5
9234 cat conftest.$ac_ext >&5
9236 eval "ac_cv_header_$ac_safe=no"
9239 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9240 echo "$ac_t""yes" 1>&6
9242 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9246 echo "$ac_t""no" 1>&6
9250 echo "$ac_t""no" 1>&6
9255 if test -z "$athena_h_path"; then
9256 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9257 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9258 echo "configure:9259: checking for X11/Xaw/ThreeD.h" >&5
9260 cat > conftest.$ac_ext <<EOF
9261 #line 9262 "configure"
9262 #include "confdefs.h"
9263 #include <X11/Xaw/ThreeD.h>
9265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9266 { (eval echo configure:9267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9268 if test -z "$ac_err"; then
9270 eval "ac_cv_header_$ac_safe=yes"
9273 echo "configure: failed program was:" >&5
9274 cat conftest.$ac_ext >&5
9276 eval "ac_cv_header_$ac_safe=no"
9279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9280 echo "$ac_t""yes" 1>&6
9282 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9283 athena_h_path=X11/Xaw
9286 echo "$ac_t""no" 1>&6
9287 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9293 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9302 if test "$with_x11" = "yes"; then
9303 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9304 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9305 echo "configure:9306: checking for Xm/Xm.h" >&5
9307 cat > conftest.$ac_ext <<EOF
9308 #line 9309 "configure"
9309 #include "confdefs.h"
9312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9313 { (eval echo configure:9314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9315 if test -z "$ac_err"; then
9317 eval "ac_cv_header_$ac_safe=yes"
9320 echo "configure: failed program was:" >&5
9321 cat conftest.$ac_ext >&5
9323 eval "ac_cv_header_$ac_safe=no"
9326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9327 echo "$ac_t""yes" 1>&6
9329 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9330 echo "configure:9331: checking for XmStringFree in -lXm" >&5
9331 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9333 xe_check_libs=" -lXm "
9334 cat > conftest.$ac_ext <<EOF
9335 #line 9336 "configure"
9336 #include "confdefs.h"
9337 /* Override any gcc2 internal prototype to avoid an error. */
9338 /* We use char because int might match the return type of a gcc2
9339 builtin and then its argument prototype would still apply. */
9340 char XmStringFree();
9346 if { (eval echo configure:9347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9348 eval "ac_cv_lib_$ac_lib_var=yes"
9350 echo "configure: failed program was:" >&5
9351 cat conftest.$ac_ext >&5
9353 eval "ac_cv_lib_$ac_lib_var=no"
9358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9359 echo "$ac_t""yes" 1>&6
9362 echo "$ac_t""no" 1>&6
9368 echo "$ac_t""no" 1>&6
9373 if test "$have_motif" = "yes"; then
9374 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9375 echo "configure:9376: checking for Lesstif" >&5
9376 cat > conftest.$ac_ext <<EOF
9377 #line 9378 "configure"
9378 #include "confdefs.h"
9380 #ifdef LESSTIF_VERSION
9385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9386 egrep "yes" >/dev/null 2>&1; then
9395 echo "$ac_t""$have_lesstif" 1>&6
9400 case "$with_menubars" in "" | "yes" | "athena" )
9401 with_menubars="lucid" ;;
9403 case "$with_dialogs" in "" | "yes" | "lucid" )
9404 if test "$have_motif" = "yes"; then with_dialogs="motif"
9405 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9406 else with_dialogs=no
9409 case "$with_scrollbars" in "" | "yes" )
9410 with_scrollbars="lucid" ;;
9412 case "$with_widgets" in "" | "yes" | "lucid")
9413 if test "$have_motif" = "yes"; then with_widgets="motif"
9414 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9415 else with_widgets=no
9419 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9421 case "$all_widgets" in
9423 if test "$have_xaw" != "yes"; then
9424 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9427 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9429 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9431 { test "$extra_verbose" = "yes" && cat << EOF
9432 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9434 cat >> confdefs.h <<EOF
9435 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9439 { test "$extra_verbose" = "yes" && cat << EOF
9440 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9442 cat >> confdefs.h <<EOF
9443 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9447 { test "$extra_verbose" = "yes" && cat << EOF
9448 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9450 cat >> confdefs.h <<EOF
9451 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9455 { test "$extra_verbose" = "yes" && cat << EOF
9456 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9458 cat >> confdefs.h <<EOF
9459 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9463 { test "$extra_verbose" = "yes" && cat << EOF
9464 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9466 cat >> confdefs.h <<EOF
9467 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9471 { test "$extra_verbose" = "yes" && cat << EOF
9472 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9474 cat >> confdefs.h <<EOF
9475 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9479 { test "$extra_verbose" = "yes" && cat << EOF
9480 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9482 cat >> confdefs.h <<EOF
9483 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9487 { test "$extra_verbose" = "yes" && cat << EOF
9488 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9490 cat >> confdefs.h <<EOF
9491 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9495 { test "$extra_verbose" = "yes" && cat << EOF
9496 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9498 cat >> confdefs.h <<EOF
9499 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9503 { test "$extra_verbose" = "yes" && cat << EOF
9504 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9506 cat >> confdefs.h <<EOF
9507 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9512 { test "$extra_verbose" = "yes" && cat << \EOF
9513 Defining LWLIB_USES_ATHENA
9515 cat >> confdefs.h <<\EOF
9516 #define LWLIB_USES_ATHENA 1
9520 { test "$extra_verbose" = "yes" && cat << \EOF
9521 Defining NEED_ATHENA
9523 cat >> confdefs.h <<\EOF
9524 #define NEED_ATHENA 1
9530 if test "$athena_3d" = "yes"; then
9531 { test "$extra_verbose" = "yes" && cat << \EOF
9532 Defining HAVE_ATHENA_3D
9534 cat >> confdefs.h <<\EOF
9535 #define HAVE_ATHENA_3D 1
9543 case "$all_widgets" in *motif* )
9544 { test "$extra_verbose" = "yes" && cat << \EOF
9545 Defining LWLIB_USES_MOTIF
9547 cat >> confdefs.h <<\EOF
9548 #define LWLIB_USES_MOTIF 1
9552 { test "$extra_verbose" = "yes" && cat << \EOF
9555 cat >> confdefs.h <<\EOF
9556 #define NEED_MOTIF 1
9560 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9564 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9565 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9566 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9567 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9568 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9569 case "$with_widgets" in athena* )
9570 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;;
9572 case "$all_widgets" in *lucid* )
9573 { test "$extra_verbose" = "yes" && cat << \EOF
9576 cat >> confdefs.h <<\EOF
9577 #define NEED_LUCID 1
9581 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9586 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9587 Defining LWLIB_SCROLLBARS_ATHENA
9589 cat >> confdefs.h <<\EOF
9590 #define LWLIB_SCROLLBARS_ATHENA 1
9594 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9595 Defining LWLIB_DIALOGS_ATHENA
9597 cat >> confdefs.h <<\EOF
9598 #define LWLIB_DIALOGS_ATHENA 1
9603 if test "$athena_3d" = "yes"; then
9604 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9605 Defining LWLIB_SCROLLBARS_ATHENA3D
9607 cat >> confdefs.h <<\EOF
9608 #define LWLIB_SCROLLBARS_ATHENA3D 1
9612 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9613 Defining LWLIB_DIALOGS_ATHENA3D
9615 cat >> confdefs.h <<\EOF
9616 #define LWLIB_DIALOGS_ATHENA3D 1
9622 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9623 Defining LWLIB_WIDGETS_ATHENA
9625 cat >> confdefs.h <<\EOF
9626 #define LWLIB_WIDGETS_ATHENA 1
9630 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9631 { test "$extra_verbose" = "yes" && cat << \EOF
9632 Defining LWLIB_TABS_LUCID
9634 cat >> confdefs.h <<\EOF
9635 #define LWLIB_TABS_LUCID 1
9640 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9641 Defining HAVE_MENUBARS
9643 cat >> confdefs.h <<\EOF
9644 #define HAVE_MENUBARS 1
9648 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9649 Defining HAVE_SCROLLBARS
9651 cat >> confdefs.h <<\EOF
9652 #define HAVE_SCROLLBARS 1
9656 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9657 Defining HAVE_DIALOGS
9659 cat >> confdefs.h <<\EOF
9660 #define HAVE_DIALOGS 1
9664 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9665 Defining HAVE_TOOLBARS
9667 cat >> confdefs.h <<\EOF
9668 #define HAVE_TOOLBARS 1
9672 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9673 Defining HAVE_WIDGETS
9675 cat >> confdefs.h <<\EOF
9676 #define HAVE_WIDGETS 1
9681 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9682 Defining LWLIB_MENUBARS_LUCID
9684 cat >> confdefs.h <<\EOF
9685 #define LWLIB_MENUBARS_LUCID 1
9689 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9690 Defining LWLIB_SCROLLBARS_LUCID
9692 cat >> confdefs.h <<\EOF
9693 #define LWLIB_SCROLLBARS_LUCID 1
9698 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9699 Defining LWLIB_MENUBARS_MOTIF
9701 cat >> confdefs.h <<\EOF
9702 #define LWLIB_MENUBARS_MOTIF 1
9706 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9707 Defining LWLIB_SCROLLBARS_MOTIF
9709 cat >> confdefs.h <<\EOF
9710 #define LWLIB_SCROLLBARS_MOTIF 1
9714 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9715 Defining LWLIB_DIALOGS_MOTIF
9717 cat >> confdefs.h <<\EOF
9718 #define LWLIB_DIALOGS_MOTIF 1
9722 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9723 Defining LWLIB_WIDGETS_MOTIF
9725 cat >> confdefs.h <<\EOF
9726 #define LWLIB_WIDGETS_MOTIF 1
9731 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9732 echo " xemacs will be linked with \"menubar.o\""
9734 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9735 echo " xemacs will be linked with \"scrollbar.o\""
9737 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9738 echo " xemacs will be linked with \"dialog.o\""
9740 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9741 echo " xemacs will be linked with \"toolbar.o\""
9744 if test "$with_gtk" = "yes"; then
9745 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9746 echo " xemacs will be linked with \"menubar-gtk.o\""
9748 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9749 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9751 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9752 echo " xemacs will be linked with \"dialog-gtk.o\""
9754 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9755 echo " xemacs will be linked with \"toolbar-gtk.o\""
9757 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9758 echo " xemacs will be linked with \"gui-gtk.o\""
9762 if test "$with_x11" = "yes"; then
9763 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9764 echo " xemacs will be linked with \"menubar-x.o\""
9766 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9767 echo " xemacs will be linked with \"scrollbar-x.o\""
9769 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9770 echo " xemacs will be linked with \"dialog-x.o\""
9772 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9773 echo " xemacs will be linked with \"toolbar-x.o\""
9775 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9776 echo " xemacs will be linked with \"gui-x.o\""
9781 test -z "$with_mule" && with_mule=no
9782 test -z "$with_file_coding" && with_file_coding=no
9785 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9786 { test "$extra_verbose" = "yes" && cat << \EOF
9787 Defining FILE_CODING
9789 cat >> confdefs.h <<\EOF
9790 #define FILE_CODING 1
9794 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9795 echo " xemacs will be linked with \"file-coding.o\""
9799 if test "$with_mule" = "yes" ; then
9800 echo "checking for Mule-related features" 1>&6
9801 echo "configure:9802: checking for Mule-related features" >&5
9802 { test "$extra_verbose" = "yes" && cat << \EOF
9805 cat >> confdefs.h <<\EOF
9810 { test "$extra_verbose" = "yes" && cat << \EOF
9811 Defining FILE_CODING
9813 cat >> confdefs.h <<\EOF
9814 #define FILE_CODING 1
9818 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
9819 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
9822 for ac_hdr in libintl.h
9824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9826 echo "configure:9827: checking for $ac_hdr" >&5
9828 cat > conftest.$ac_ext <<EOF
9829 #line 9830 "configure"
9830 #include "confdefs.h"
9833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9834 { (eval echo configure:9835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9836 if test -z "$ac_err"; then
9838 eval "ac_cv_header_$ac_safe=yes"
9841 echo "configure: failed program was:" >&5
9842 cat conftest.$ac_ext >&5
9844 eval "ac_cv_header_$ac_safe=no"
9847 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9848 echo "$ac_t""yes" 1>&6
9849 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9850 { test "$extra_verbose" = "yes" && cat << EOF
9853 cat >> confdefs.h <<EOF
9854 #define $ac_tr_hdr 1
9859 echo "$ac_t""no" 1>&6
9864 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9865 echo "configure:9866: checking for strerror in -lintl" >&5
9866 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9868 xe_check_libs=" -lintl "
9869 cat > conftest.$ac_ext <<EOF
9870 #line 9871 "configure"
9871 #include "confdefs.h"
9872 /* Override any gcc2 internal prototype to avoid an error. */
9873 /* We use char because int might match the return type of a gcc2
9874 builtin and then its argument prototype would still apply. */
9881 if { (eval echo configure:9882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9883 eval "ac_cv_lib_$ac_lib_var=yes"
9885 echo "configure: failed program was:" >&5
9886 cat conftest.$ac_ext >&5
9888 eval "ac_cv_lib_$ac_lib_var=no"
9893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9894 echo "$ac_t""yes" 1>&6
9895 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9896 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9897 { test "$extra_verbose" = "yes" && cat << EOF
9900 cat >> confdefs.h <<EOF
9901 #define $ac_tr_lib 1
9905 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9908 echo "$ac_t""no" 1>&6
9913 echo "checking for Mule input methods" 1>&6
9914 echo "configure:9915: checking for Mule input methods" >&5
9915 case "$with_xim" in "" | "yes" )
9916 echo "checking for XIM" 1>&6
9917 echo "configure:9918: checking for XIM" >&5
9919 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9920 echo "configure:9921: checking for XOpenIM in -lX11" >&5
9921 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9923 xe_check_libs=" -lX11 "
9924 cat > conftest.$ac_ext <<EOF
9925 #line 9926 "configure"
9926 #include "confdefs.h"
9927 /* Override any gcc2 internal prototype to avoid an error. */
9928 /* We use char because int might match the return type of a gcc2
9929 builtin and then its argument prototype would still apply. */
9936 if { (eval echo configure:9937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9938 eval "ac_cv_lib_$ac_lib_var=yes"
9940 echo "configure: failed program was:" >&5
9941 cat conftest.$ac_ext >&5
9943 eval "ac_cv_lib_$ac_lib_var=no"
9948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9949 echo "$ac_t""yes" 1>&6
9952 echo "$ac_t""no" 1>&6
9957 if test "$have_motif $have_lesstif" = "yes no"; then
9959 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9960 echo "configure:9961: checking for XmImMbLookupString in -lXm" >&5
9961 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9963 xe_check_libs=" -lXm "
9964 cat > conftest.$ac_ext <<EOF
9965 #line 9966 "configure"
9966 #include "confdefs.h"
9967 /* Override any gcc2 internal prototype to avoid an error. */
9968 /* We use char because int might match the return type of a gcc2
9969 builtin and then its argument prototype would still apply. */
9970 char XmImMbLookupString();
9973 XmImMbLookupString()
9976 if { (eval echo configure:9977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9978 eval "ac_cv_lib_$ac_lib_var=yes"
9980 echo "configure: failed program was:" >&5
9981 cat conftest.$ac_ext >&5
9983 eval "ac_cv_lib_$ac_lib_var=no"
9988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9989 echo "$ac_t""yes" 1>&6
9992 echo "$ac_t""no" 1>&6
9998 if test "$with_xim" != "no"; then
9999 { test "$extra_verbose" = "yes" && cat << \EOF
10002 cat >> confdefs.h <<\EOF
10007 if test "$with_xim" = "xlib"; then
10008 { test "$extra_verbose" = "yes" && cat << \EOF
10011 cat >> confdefs.h <<\EOF
10016 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10017 echo " xemacs will be linked with \"input-method-xlib.o\""
10020 if test "$with_xim" = "motif"; then
10021 { test "$extra_verbose" = "yes" && cat << \EOF
10024 cat >> confdefs.h <<\EOF
10025 #define XIM_MOTIF 1
10030 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10031 echo " xemacs will be linked with \"input-method-motif.o\""
10034 if test "$with_xim" = "motif"; then
10039 if test "$with_xfs" = "yes" ; then
10040 echo "checking for XFontSet" 1>&6
10041 echo "configure:10042: checking for XFontSet" >&5
10043 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10044 echo "configure:10045: checking for XmbDrawString in -lX11" >&5
10045 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10047 xe_check_libs=" -lX11 "
10048 cat > conftest.$ac_ext <<EOF
10049 #line 10050 "configure"
10050 #include "confdefs.h"
10051 /* Override any gcc2 internal prototype to avoid an error. */
10052 /* We use char because int might match the return type of a gcc2
10053 builtin and then its argument prototype would still apply. */
10054 char XmbDrawString();
10060 if { (eval echo configure:10061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10062 eval "ac_cv_lib_$ac_lib_var=yes"
10064 echo "configure: failed program was:" >&5
10065 cat conftest.$ac_ext >&5
10067 eval "ac_cv_lib_$ac_lib_var=no"
10072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10073 echo "$ac_t""yes" 1>&6
10076 echo "$ac_t""no" 1>&6
10081 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10082 { test "$extra_verbose" = "yes" && cat << \EOF
10083 Defining USE_XFONTSET
10085 cat >> confdefs.h <<\EOF
10086 #define USE_XFONTSET 1
10090 if test "$with_xim" = "no" ; then
10091 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10092 echo " xemacs will be linked with \"input-method-xlib.o\""
10097 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10098 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10099 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10100 echo "configure:10101: checking for wnn/jllib.h" >&5
10102 cat > conftest.$ac_ext <<EOF
10103 #line 10104 "configure"
10104 #include "confdefs.h"
10105 #include <wnn/jllib.h>
10107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10108 { (eval echo configure:10109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10110 if test -z "$ac_err"; then
10112 eval "ac_cv_header_$ac_safe=yes"
10115 echo "configure: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10118 eval "ac_cv_header_$ac_safe=no"
10121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10122 echo "$ac_t""yes" 1>&6
10125 echo "$ac_t""no" 1>&6
10129 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10130 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10131 echo "configure:10132: checking for wnn/commonhd.h" >&5
10133 cat > conftest.$ac_ext <<EOF
10134 #line 10135 "configure"
10135 #include "confdefs.h"
10136 #include <wnn/commonhd.h>
10138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10139 { (eval echo configure:10140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10141 if test -z "$ac_err"; then
10143 eval "ac_cv_header_$ac_safe=yes"
10146 echo "configure: failed program was:" >&5
10147 cat conftest.$ac_ext >&5
10149 eval "ac_cv_header_$ac_safe=no"
10152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10153 echo "$ac_t""yes" 1>&6
10156 echo "$ac_t""no" 1>&6
10160 if test "$with_wnn" != "no"; then
10161 for ac_func in crypt
10163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10164 echo "configure:10165: checking for $ac_func" >&5
10166 cat > conftest.$ac_ext <<EOF
10167 #line 10168 "configure"
10168 #include "confdefs.h"
10169 /* System header to define __stub macros and hopefully few prototypes,
10170 which can conflict with char $ac_func(); below. */
10171 #include <assert.h>
10172 /* Override any gcc2 internal prototype to avoid an error. */
10173 /* We use char because int might match the return type of a gcc2
10174 builtin and then its argument prototype would still apply. */
10179 /* The GNU C library defines this for functions which it implements
10180 to always fail with ENOSYS. Some functions are actually named
10181 something starting with __ and the normal name is an alias. */
10182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10190 if { (eval echo configure:10191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10192 eval "ac_cv_func_$ac_func=yes"
10194 echo "configure: failed program was:" >&5
10195 cat conftest.$ac_ext >&5
10197 eval "ac_cv_func_$ac_func=no"
10201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10202 echo "$ac_t""yes" 1>&6
10203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10204 { test "$extra_verbose" = "yes" && cat << EOF
10205 Defining $ac_tr_func
10207 cat >> confdefs.h <<EOF
10208 #define $ac_tr_func 1
10213 echo "$ac_t""no" 1>&6
10217 test "$ac_cv_func_crypt" != "yes" && {
10218 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10219 echo "configure:10220: checking for crypt in -lcrypt" >&5
10220 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10222 xe_check_libs=" -lcrypt "
10223 cat > conftest.$ac_ext <<EOF
10224 #line 10225 "configure"
10225 #include "confdefs.h"
10226 /* Override any gcc2 internal prototype to avoid an error. */
10227 /* We use char because int might match the return type of a gcc2
10228 builtin and then its argument prototype would still apply. */
10235 if { (eval echo configure:10236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10237 eval "ac_cv_lib_$ac_lib_var=yes"
10239 echo "configure: failed program was:" >&5
10240 cat conftest.$ac_ext >&5
10242 eval "ac_cv_lib_$ac_lib_var=no"
10247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10248 echo "$ac_t""yes" 1>&6
10249 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10250 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10251 { test "$extra_verbose" = "yes" && cat << EOF
10252 Defining $ac_tr_lib
10254 cat >> confdefs.h <<EOF
10255 #define $ac_tr_lib 1
10259 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10262 echo "$ac_t""no" 1>&6
10267 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10269 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10270 echo "configure:10271: checking for jl_dic_list_e in -lwnn" >&5
10271 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10273 xe_check_libs=" -lwnn "
10274 cat > conftest.$ac_ext <<EOF
10275 #line 10276 "configure"
10276 #include "confdefs.h"
10277 /* Override any gcc2 internal prototype to avoid an error. */
10278 /* We use char because int might match the return type of a gcc2
10279 builtin and then its argument prototype would still apply. */
10280 char jl_dic_list_e();
10286 if { (eval echo configure:10287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10288 eval "ac_cv_lib_$ac_lib_var=yes"
10290 echo "configure: failed program was:" >&5
10291 cat conftest.$ac_ext >&5
10293 eval "ac_cv_lib_$ac_lib_var=no"
10298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10299 echo "$ac_t""yes" 1>&6
10302 echo "$ac_t""no" 1>&6
10303 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10304 echo "configure:10305: checking for jl_dic_list_e in -lwnn4" >&5
10305 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10307 xe_check_libs=" -lwnn4 "
10308 cat > conftest.$ac_ext <<EOF
10309 #line 10310 "configure"
10310 #include "confdefs.h"
10311 /* Override any gcc2 internal prototype to avoid an error. */
10312 /* We use char because int might match the return type of a gcc2
10313 builtin and then its argument prototype would still apply. */
10314 char jl_dic_list_e();
10320 if { (eval echo configure:10321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10322 eval "ac_cv_lib_$ac_lib_var=yes"
10324 echo "configure: failed program was:" >&5
10325 cat conftest.$ac_ext >&5
10327 eval "ac_cv_lib_$ac_lib_var=no"
10332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10333 echo "$ac_t""yes" 1>&6
10336 echo "$ac_t""no" 1>&6
10337 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10338 echo "configure:10339: checking for jl_dic_list_e in -lwnn6" >&5
10339 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10341 xe_check_libs=" -lwnn6 "
10342 cat > conftest.$ac_ext <<EOF
10343 #line 10344 "configure"
10344 #include "confdefs.h"
10345 /* Override any gcc2 internal prototype to avoid an error. */
10346 /* We use char because int might match the return type of a gcc2
10347 builtin and then its argument prototype would still apply. */
10348 char jl_dic_list_e();
10354 if { (eval echo configure:10355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10356 eval "ac_cv_lib_$ac_lib_var=yes"
10358 echo "configure: failed program was:" >&5
10359 cat conftest.$ac_ext >&5
10361 eval "ac_cv_lib_$ac_lib_var=no"
10366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10367 echo "$ac_t""yes" 1>&6
10370 echo "$ac_t""no" 1>&6
10371 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10372 echo "configure:10373: checking for dic_list_e in -lwnn6_fromsrc" >&5
10373 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10375 xe_check_libs=" -lwnn6_fromsrc "
10376 cat > conftest.$ac_ext <<EOF
10377 #line 10378 "configure"
10378 #include "confdefs.h"
10379 /* Override any gcc2 internal prototype to avoid an error. */
10380 /* We use char because int might match the return type of a gcc2
10381 builtin and then its argument prototype would still apply. */
10388 if { (eval echo configure:10389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10390 eval "ac_cv_lib_$ac_lib_var=yes"
10392 echo "configure: failed program was:" >&5
10393 cat conftest.$ac_ext >&5
10395 eval "ac_cv_lib_$ac_lib_var=no"
10400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10401 echo "$ac_t""yes" 1>&6
10402 libwnn=wnn6_fromsrc
10404 echo "$ac_t""no" 1>&6
10419 test -z "$with_wnn" && with_wnn=yes
10420 if test "$with_wnn" = "yes"; then
10421 { test "$extra_verbose" = "yes" && cat << \EOF
10424 cat >> confdefs.h <<\EOF
10429 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10430 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10431 echo " xemacs will be linked with \"mule-wnnfns.o\""
10433 if test "$with_wnn6" != "no"; then
10435 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10436 echo "configure:10437: checking for jl_fi_dic_list in -l$libwnn" >&5
10437 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10439 xe_check_libs=" -l$libwnn "
10440 cat > conftest.$ac_ext <<EOF
10441 #line 10442 "configure"
10442 #include "confdefs.h"
10443 /* Override any gcc2 internal prototype to avoid an error. */
10444 /* We use char because int might match the return type of a gcc2
10445 builtin and then its argument prototype would still apply. */
10446 char jl_fi_dic_list();
10452 if { (eval echo configure:10453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10454 eval "ac_cv_lib_$ac_lib_var=yes"
10456 echo "configure: failed program was:" >&5
10457 cat conftest.$ac_ext >&5
10459 eval "ac_cv_lib_$ac_lib_var=no"
10464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10465 echo "$ac_t""yes" 1>&6
10468 echo "$ac_t""no" 1>&6
10472 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10475 cat >> confdefs.h <<\EOF
10483 canna_includes_found=no
10484 if test "$with_canna" != "no"; then
10485 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10486 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10487 echo "configure:10488: checking for canna/jrkanji.h" >&5
10489 cat > conftest.$ac_ext <<EOF
10490 #line 10491 "configure"
10491 #include "confdefs.h"
10492 #include <canna/jrkanji.h>
10494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10495 { (eval echo configure:10496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10497 if test -z "$ac_err"; then
10499 eval "ac_cv_header_$ac_safe=yes"
10502 echo "configure: failed program was:" >&5
10503 cat conftest.$ac_ext >&5
10505 eval "ac_cv_header_$ac_safe=no"
10508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10509 echo "$ac_t""yes" 1>&6
10510 canna_includes_found=yes
10512 echo "$ac_t""no" 1>&6
10516 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10517 -d "/usr/local/canna/include"; then
10518 save_c_switch_site="$c_switch_site"
10519 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10520 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10521 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10522 echo "configure:10523: checking for canna/jrkanji.h" >&5
10524 cat > conftest.$ac_ext <<EOF
10525 #line 10526 "configure"
10526 #include "confdefs.h"
10527 #include <canna/jrkanji.h>
10529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10530 { (eval echo configure:10531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10532 if test -z "$ac_err"; then
10534 eval "ac_cv_header_$ac_safe=yes"
10537 echo "configure: failed program was:" >&5
10538 cat conftest.$ac_ext >&5
10540 eval "ac_cv_header_$ac_safe=no"
10543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10544 echo "$ac_t""yes" 1>&6
10545 canna_includes_found=yes
10547 echo "$ac_t""no" 1>&6
10550 if test "$canna_includes_found" != "yes"; then
10551 c_switch_site="$save_c_switch_site"
10556 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10557 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10558 echo "configure:10559: checking for canna/RK.h" >&5
10560 cat > conftest.$ac_ext <<EOF
10561 #line 10562 "configure"
10562 #include "confdefs.h"
10563 #include <canna/RK.h>
10565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10566 { (eval echo configure:10567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10568 if test -z "$ac_err"; then
10570 eval "ac_cv_header_$ac_safe=yes"
10573 echo "configure: failed program was:" >&5
10574 cat conftest.$ac_ext >&5
10576 eval "ac_cv_header_$ac_safe=no"
10579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10580 echo "$ac_t""yes" 1>&6
10583 echo "$ac_t""no" 1>&6
10587 test -z "$with_canna" && {
10588 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10589 echo "configure:10590: checking for RkBgnBun in -lRKC" >&5
10590 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10592 xe_check_libs=" -lRKC "
10593 cat > conftest.$ac_ext <<EOF
10594 #line 10595 "configure"
10595 #include "confdefs.h"
10596 /* Override any gcc2 internal prototype to avoid an error. */
10597 /* We use char because int might match the return type of a gcc2
10598 builtin and then its argument prototype would still apply. */
10605 if { (eval echo configure:10606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10607 eval "ac_cv_lib_$ac_lib_var=yes"
10609 echo "configure: failed program was:" >&5
10610 cat conftest.$ac_ext >&5
10612 eval "ac_cv_lib_$ac_lib_var=no"
10617 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10618 echo "$ac_t""yes" 1>&6
10621 echo "$ac_t""no" 1>&6
10626 test -z "$with_canna" && {
10627 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10628 echo "configure:10629: checking for jrKanjiControl in -lcanna" >&5
10629 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10631 xe_check_libs=" -lcanna "
10632 cat > conftest.$ac_ext <<EOF
10633 #line 10634 "configure"
10634 #include "confdefs.h"
10635 /* Override any gcc2 internal prototype to avoid an error. */
10636 /* We use char because int might match the return type of a gcc2
10637 builtin and then its argument prototype would still apply. */
10638 char jrKanjiControl();
10644 if { (eval echo configure:10645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10646 eval "ac_cv_lib_$ac_lib_var=yes"
10648 echo "configure: failed program was:" >&5
10649 cat conftest.$ac_ext >&5
10651 eval "ac_cv_lib_$ac_lib_var=no"
10656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10657 echo "$ac_t""yes" 1>&6
10660 echo "$ac_t""no" 1>&6
10665 test -z "$with_canna" && with_canna=yes
10666 if test "$with_canna" = "yes"; then
10667 { test "$extra_verbose" = "yes" && cat << \EOF
10668 Defining HAVE_CANNA
10670 cat >> confdefs.h <<\EOF
10671 #define HAVE_CANNA 1
10675 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10676 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10677 echo " xemacs will be linked with \"mule-canna.o\""
10681 else for feature in xim canna wnn; do
10682 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10683 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10685 eval "with_${feature}=no"
10689 if test "$need_motif" = "yes" ; then
10690 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10692 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10693 echo "configure:10694: checking for layout_object_getvalue in -li18n" >&5
10694 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10696 xe_check_libs=" -li18n "
10697 cat > conftest.$ac_ext <<EOF
10698 #line 10699 "configure"
10699 #include "confdefs.h"
10700 /* Override any gcc2 internal prototype to avoid an error. */
10701 /* We use char because int might match the return type of a gcc2
10702 builtin and then its argument prototype would still apply. */
10703 char layout_object_getvalue();
10706 layout_object_getvalue()
10709 if { (eval echo configure:10710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10711 eval "ac_cv_lib_$ac_lib_var=yes"
10713 echo "configure: failed program was:" >&5
10714 cat conftest.$ac_ext >&5
10716 eval "ac_cv_lib_$ac_lib_var=no"
10721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10722 echo "$ac_t""yes" 1>&6
10723 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10725 echo "$ac_t""no" 1>&6
10730 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10731 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10732 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10734 runpath="" runpath_dirs=""
10735 if test -n "$LD_RUN_PATH"; then
10736 runpath="$LD_RUN_PATH"
10737 elif test "$GCC" = "yes"; then
10738 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10739 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10740 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10741 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10742 case "$arg" in P,* | -L* | -R* )
10743 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10745 xe_runpath_dir="$dir"
10746 test "$xe_runpath_dir" != "/lib" -a \
10747 "$xe_runpath_dir" != "/usr/lib" -a \
10748 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10749 eval "$xe_add_unique_runpath_dir"
10754 ld_switch_run="$ld_switch_run_save"
10757 for arg in $ld_switch_site $ld_switch_x_site; do
10758 case "$arg" in -L*) {
10759 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10760 test "$xe_runpath_dir" != "/lib" -a \
10761 "$xe_runpath_dir" != "/usr/lib" -a \
10762 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10763 eval "$xe_add_unique_runpath_dir"
10766 if test "$opsys $need_motif" = "sol2 yes"; then
10767 xe_runpath_dir="/opt/SUNWdt/lib";
10768 eval "$xe_add_unique_runpath_dir";
10771 if test -n "$runpath"; then
10772 ld_switch_run="${dash_r}${runpath}"
10774 if test "$GCC" = "yes"; then
10775 set x $ld_switch_run; shift; ld_switch_run=""
10776 while test -n "$1"; do
10778 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10779 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10781 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10786 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10792 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask
10794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10795 echo "configure:10796: checking for $ac_func" >&5
10797 cat > conftest.$ac_ext <<EOF
10798 #line 10799 "configure"
10799 #include "confdefs.h"
10800 /* System header to define __stub macros and hopefully few prototypes,
10801 which can conflict with char $ac_func(); below. */
10802 #include <assert.h>
10803 /* Override any gcc2 internal prototype to avoid an error. */
10804 /* We use char because int might match the return type of a gcc2
10805 builtin and then its argument prototype would still apply. */
10810 /* The GNU C library defines this for functions which it implements
10811 to always fail with ENOSYS. Some functions are actually named
10812 something starting with __ and the normal name is an alias. */
10813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10821 if { (eval echo configure:10822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10823 eval "ac_cv_func_$ac_func=yes"
10825 echo "configure: failed program was:" >&5
10826 cat conftest.$ac_ext >&5
10828 eval "ac_cv_func_$ac_func=no"
10832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10833 echo "$ac_t""yes" 1>&6
10834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10835 { test "$extra_verbose" = "yes" && cat << EOF
10836 Defining $ac_tr_func
10838 cat >> confdefs.h <<EOF
10839 #define $ac_tr_func 1
10844 echo "$ac_t""no" 1>&6
10850 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10853 echo "configure:10854: checking for $ac_func" >&5
10855 cat > conftest.$ac_ext <<EOF
10856 #line 10857 "configure"
10857 #include "confdefs.h"
10858 /* System header to define __stub macros and hopefully few prototypes,
10859 which can conflict with char $ac_func(); below. */
10860 #include <assert.h>
10861 /* Override any gcc2 internal prototype to avoid an error. */
10862 /* We use char because int might match the return type of a gcc2
10863 builtin and then its argument prototype would still apply. */
10868 /* The GNU C library defines this for functions which it implements
10869 to always fail with ENOSYS. Some functions are actually named
10870 something starting with __ and the normal name is an alias. */
10871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10879 if { (eval echo configure:10880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10881 eval "ac_cv_func_$ac_func=yes"
10883 echo "configure: failed program was:" >&5
10884 cat conftest.$ac_ext >&5
10886 eval "ac_cv_func_$ac_func=no"
10890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10891 echo "$ac_t""yes" 1>&6
10892 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10893 { test "$extra_verbose" = "yes" && cat << EOF
10894 Defining $ac_tr_func
10896 cat >> confdefs.h <<EOF
10897 #define $ac_tr_func 1
10902 echo "$ac_t""no" 1>&6
10907 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10908 echo "configure:10909: checking for openpty" >&5
10910 cat > conftest.$ac_ext <<EOF
10911 #line 10912 "configure"
10912 #include "confdefs.h"
10913 /* System header to define __stub macros and hopefully few prototypes,
10914 which can conflict with char openpty(); below. */
10915 #include <assert.h>
10916 /* Override any gcc2 internal prototype to avoid an error. */
10917 /* We use char because int might match the return type of a gcc2
10918 builtin and then its argument prototype would still apply. */
10923 /* The GNU C library defines this for functions which it implements
10924 to always fail with ENOSYS. Some functions are actually named
10925 something starting with __ and the normal name is an alias. */
10926 #if defined (__stub_openpty) || defined (__stub___openpty)
10934 if { (eval echo configure:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10936 eval "ac_cv_func_openpty=yes"
10938 echo "configure: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10941 eval "ac_cv_func_openpty=no"
10945 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
10946 echo "$ac_t""yes" 1>&6
10949 echo "$ac_t""no" 1>&6
10952 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10953 echo "configure:10954: checking for openpty in -lutil" >&5
10954 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10956 xe_check_libs=" -lutil "
10957 cat > conftest.$ac_ext <<EOF
10958 #line 10959 "configure"
10959 #include "confdefs.h"
10960 /* Override any gcc2 internal prototype to avoid an error. */
10961 /* We use char because int might match the return type of a gcc2
10962 builtin and then its argument prototype would still apply. */
10969 if { (eval echo configure:10970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10971 eval "ac_cv_lib_$ac_lib_var=yes"
10973 echo "configure: failed program was:" >&5
10974 cat conftest.$ac_ext >&5
10976 eval "ac_cv_lib_$ac_lib_var=no"
10981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10982 echo "$ac_t""yes" 1>&6
10983 have_openpty=yes need_libutil=yes
10985 echo "$ac_t""no" 1>&6
10991 if test "$have_openpty" = "yes"; then
10992 { test "$extra_verbose" = "yes" && cat << \EOF
10993 Defining HAVE_OPENPTY
10995 cat >> confdefs.h <<\EOF
10996 #define HAVE_OPENPTY 1
11000 for ac_hdr in pty.h libutil.h util.h
11002 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11003 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11004 echo "configure:11005: checking for $ac_hdr" >&5
11006 cat > conftest.$ac_ext <<EOF
11007 #line 11008 "configure"
11008 #include "confdefs.h"
11011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11012 { (eval echo configure:11013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11014 if test -z "$ac_err"; then
11016 eval "ac_cv_header_$ac_safe=yes"
11019 echo "configure: failed program was:" >&5
11020 cat conftest.$ac_ext >&5
11022 eval "ac_cv_header_$ac_safe=no"
11025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11026 echo "$ac_t""yes" 1>&6
11027 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11028 { test "$extra_verbose" = "yes" && cat << EOF
11029 Defining $ac_tr_hdr
11031 cat >> confdefs.h <<EOF
11032 #define $ac_tr_hdr 1
11037 echo "$ac_t""no" 1>&6
11041 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11044 for ac_hdr in stropts.h
11046 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11047 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11048 echo "configure:11049: checking for $ac_hdr" >&5
11050 cat > conftest.$ac_ext <<EOF
11051 #line 11052 "configure"
11052 #include "confdefs.h"
11055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11056 { (eval echo configure:11057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11058 if test -z "$ac_err"; then
11060 eval "ac_cv_header_$ac_safe=yes"
11063 echo "configure: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11066 eval "ac_cv_header_$ac_safe=no"
11069 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11070 echo "$ac_t""yes" 1>&6
11071 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11072 { test "$extra_verbose" = "yes" && cat << EOF
11073 Defining $ac_tr_hdr
11075 cat >> confdefs.h <<EOF
11076 #define $ac_tr_hdr 1
11081 echo "$ac_t""no" 1>&6
11085 if test "$ac_cv_header_stropts_h" = "yes"; then
11086 for ac_func in isastream
11088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11089 echo "configure:11090: checking for $ac_func" >&5
11091 cat > conftest.$ac_ext <<EOF
11092 #line 11093 "configure"
11093 #include "confdefs.h"
11094 /* System header to define __stub macros and hopefully few prototypes,
11095 which can conflict with char $ac_func(); below. */
11096 #include <assert.h>
11097 /* Override any gcc2 internal prototype to avoid an error. */
11098 /* We use char because int might match the return type of a gcc2
11099 builtin and then its argument prototype would still apply. */
11104 /* The GNU C library defines this for functions which it implements
11105 to always fail with ENOSYS. Some functions are actually named
11106 something starting with __ and the normal name is an alias. */
11107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11115 if { (eval echo configure:11116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11117 eval "ac_cv_func_$ac_func=yes"
11119 echo "configure: failed program was:" >&5
11120 cat conftest.$ac_ext >&5
11122 eval "ac_cv_func_$ac_func=no"
11126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11127 echo "$ac_t""yes" 1>&6
11128 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11129 { test "$extra_verbose" = "yes" && cat << EOF
11130 Defining $ac_tr_func
11132 cat >> confdefs.h <<EOF
11133 #define $ac_tr_func 1
11138 echo "$ac_t""no" 1>&6
11142 for ac_hdr in strtio.h
11144 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11145 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11146 echo "configure:11147: checking for $ac_hdr" >&5
11148 cat > conftest.$ac_ext <<EOF
11149 #line 11150 "configure"
11150 #include "confdefs.h"
11153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11154 { (eval echo configure:11155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11156 if test -z "$ac_err"; then
11158 eval "ac_cv_header_$ac_safe=yes"
11161 echo "configure: failed program was:" >&5
11162 cat conftest.$ac_ext >&5
11164 eval "ac_cv_header_$ac_safe=no"
11167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11168 echo "$ac_t""yes" 1>&6
11169 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11170 { test "$extra_verbose" = "yes" && cat << EOF
11171 Defining $ac_tr_hdr
11173 cat >> confdefs.h <<EOF
11174 #define $ac_tr_hdr 1
11179 echo "$ac_t""no" 1>&6
11184 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11185 echo " xemacs will be linked with \"realpath.o\""
11188 for ac_func in getloadavg
11190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11191 echo "configure:11192: checking for $ac_func" >&5
11193 cat > conftest.$ac_ext <<EOF
11194 #line 11195 "configure"
11195 #include "confdefs.h"
11196 /* System header to define __stub macros and hopefully few prototypes,
11197 which can conflict with char $ac_func(); below. */
11198 #include <assert.h>
11199 /* Override any gcc2 internal prototype to avoid an error. */
11200 /* We use char because int might match the return type of a gcc2
11201 builtin and then its argument prototype would still apply. */
11206 /* The GNU C library defines this for functions which it implements
11207 to always fail with ENOSYS. Some functions are actually named
11208 something starting with __ and the normal name is an alias. */
11209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11217 if { (eval echo configure:11218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11219 eval "ac_cv_func_$ac_func=yes"
11221 echo "configure: failed program was:" >&5
11222 cat conftest.$ac_ext >&5
11224 eval "ac_cv_func_$ac_func=no"
11228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11229 echo "$ac_t""yes" 1>&6
11230 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11231 { test "$extra_verbose" = "yes" && cat << EOF
11232 Defining $ac_tr_func
11234 cat >> confdefs.h <<EOF
11235 #define $ac_tr_func 1
11240 echo "$ac_t""no" 1>&6
11245 if test "$ac_cv_func_getloadavg" = "yes"; then
11246 for ac_hdr in sys/loadavg.h
11248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11250 echo "configure:11251: checking for $ac_hdr" >&5
11252 cat > conftest.$ac_ext <<EOF
11253 #line 11254 "configure"
11254 #include "confdefs.h"
11257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11258 { (eval echo configure:11259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11260 if test -z "$ac_err"; then
11262 eval "ac_cv_header_$ac_safe=yes"
11265 echo "configure: failed program was:" >&5
11266 cat conftest.$ac_ext >&5
11268 eval "ac_cv_header_$ac_safe=no"
11271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11272 echo "$ac_t""yes" 1>&6
11273 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11274 { test "$extra_verbose" = "yes" && cat << EOF
11275 Defining $ac_tr_hdr
11277 cat >> confdefs.h <<EOF
11278 #define $ac_tr_hdr 1
11283 echo "$ac_t""no" 1>&6
11288 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11289 echo " xemacs will be linked with \"getloadavg.o\""
11293 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11294 echo "configure:11295: checking for kstat_open in -lkstat" >&5
11295 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11297 xe_check_libs=" -lkstat "
11298 cat > conftest.$ac_ext <<EOF
11299 #line 11300 "configure"
11300 #include "confdefs.h"
11301 /* Override any gcc2 internal prototype to avoid an error. */
11302 /* We use char because int might match the return type of a gcc2
11303 builtin and then its argument prototype would still apply. */
11310 if { (eval echo configure:11311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11312 eval "ac_cv_lib_$ac_lib_var=yes"
11314 echo "configure: failed program was:" >&5
11315 cat conftest.$ac_ext >&5
11317 eval "ac_cv_lib_$ac_lib_var=no"
11322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11323 echo "$ac_t""yes" 1>&6
11324 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11325 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11326 { test "$extra_verbose" = "yes" && cat << EOF
11327 Defining $ac_tr_lib
11329 cat >> confdefs.h <<EOF
11330 #define $ac_tr_lib 1
11334 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11337 echo "$ac_t""no" 1>&6
11341 for ac_hdr in kstat.h
11343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11345 echo "configure:11346: checking for $ac_hdr" >&5
11347 cat > conftest.$ac_ext <<EOF
11348 #line 11349 "configure"
11349 #include "confdefs.h"
11352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11353 { (eval echo configure:11354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11355 if test -z "$ac_err"; then
11357 eval "ac_cv_header_$ac_safe=yes"
11360 echo "configure: failed program was:" >&5
11361 cat conftest.$ac_ext >&5
11363 eval "ac_cv_header_$ac_safe=no"
11366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11367 echo "$ac_t""yes" 1>&6
11368 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11369 { test "$extra_verbose" = "yes" && cat << EOF
11370 Defining $ac_tr_hdr
11372 cat >> confdefs.h <<EOF
11373 #define $ac_tr_hdr 1
11378 echo "$ac_t""no" 1>&6
11384 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11385 echo "configure:11386: checking for kvm_read in -lkvm" >&5
11386 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11388 xe_check_libs=" -lkvm "
11389 cat > conftest.$ac_ext <<EOF
11390 #line 11391 "configure"
11391 #include "confdefs.h"
11392 /* Override any gcc2 internal prototype to avoid an error. */
11393 /* We use char because int might match the return type of a gcc2
11394 builtin and then its argument prototype would still apply. */
11401 if { (eval echo configure:11402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11403 eval "ac_cv_lib_$ac_lib_var=yes"
11405 echo "configure: failed program was:" >&5
11406 cat conftest.$ac_ext >&5
11408 eval "ac_cv_lib_$ac_lib_var=no"
11413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11414 echo "$ac_t""yes" 1>&6
11415 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11416 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11417 { test "$extra_verbose" = "yes" && cat << EOF
11418 Defining $ac_tr_lib
11420 cat >> confdefs.h <<EOF
11421 #define $ac_tr_lib 1
11425 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11428 echo "$ac_t""no" 1>&6
11434 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11435 echo "configure:11436: checking whether netdb declares h_errno" >&5
11436 cat > conftest.$ac_ext <<EOF
11437 #line 11438 "configure"
11438 #include "confdefs.h"
11444 if { (eval echo configure:11445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11446 echo "$ac_t""yes" 1>&6
11447 { test "$extra_verbose" = "yes" && cat << \EOF
11448 Defining HAVE_H_ERRNO
11450 cat >> confdefs.h <<\EOF
11451 #define HAVE_H_ERRNO 1
11456 echo "configure: failed program was:" >&5
11457 cat conftest.$ac_ext >&5
11459 echo "$ac_t""no" 1>&6
11463 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11464 echo "configure:11465: checking for sigsetjmp" >&5
11465 cat > conftest.$ac_ext <<EOF
11466 #line 11467 "configure"
11467 #include "confdefs.h"
11468 #include <setjmp.h>
11470 sigjmp_buf bar; sigsetjmp (bar, 0);
11473 if { (eval echo configure:11474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11475 echo "$ac_t""yes" 1>&6
11476 { test "$extra_verbose" = "yes" && cat << \EOF
11477 Defining HAVE_SIGSETJMP
11479 cat >> confdefs.h <<\EOF
11480 #define HAVE_SIGSETJMP 1
11485 echo "configure: failed program was:" >&5
11486 cat conftest.$ac_ext >&5
11488 echo "$ac_t""no" 1>&6
11492 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11493 echo "configure:11494: checking whether localtime caches TZ" >&5
11495 if test "$ac_cv_func_tzset" = "yes"; then
11496 cat > conftest.$ac_ext <<EOF
11497 #line 11498 "configure"
11498 #include "confdefs.h"
11501 # include <stdlib.h>
11503 extern char **environ;
11507 for (to = from = environ; (*to = *from); from++)
11508 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11511 char TZ_GMT0[] = "TZ=GMT0";
11512 char TZ_PST8[] = "TZ=PST8";
11515 time_t now = time ((time_t *) 0);
11516 int hour_GMT0, hour_unset;
11517 if (putenv (TZ_GMT0) != 0)
11519 hour_GMT0 = localtime (&now)->tm_hour;
11521 hour_unset = localtime (&now)->tm_hour;
11522 if (putenv (TZ_PST8) != 0)
11524 if (localtime (&now)->tm_hour == hour_GMT0)
11527 if (localtime (&now)->tm_hour != hour_unset)
11532 if { (eval echo configure:11533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11534 emacs_cv_localtime_cache=no
11537 echo "configure: failed program was:" >&5
11538 cat conftest.$ac_ext >&5
11540 emacs_cv_localtime_cache=yes
11544 # If we lack tzset, report that localtime does not cache TZ,
11545 # since we can't invalidate the cache if we don't have tzset.
11546 emacs_cv_localtime_cache=no
11548 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11549 if test $emacs_cv_localtime_cache = yes; then
11550 { test "$extra_verbose" = "yes" && cat << \EOF
11551 Defining LOCALTIME_CACHE
11553 cat >> confdefs.h <<\EOF
11554 #define LOCALTIME_CACHE 1
11560 if test "$HAVE_TIMEVAL" = "yes"; then
11561 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11562 echo "configure:11563: checking whether gettimeofday accepts one or two arguments" >&5
11563 cat > conftest.$ac_ext <<EOF
11564 #line 11565 "configure"
11565 #include "confdefs.h"
11567 #ifdef TIME_WITH_SYS_TIME
11568 #include <sys/time.h>
11571 #ifdef HAVE_SYS_TIME_H
11572 #include <sys/time.h>
11580 struct timeval time;
11581 gettimeofday (&time, 0);
11585 if { (eval echo configure:11586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11587 echo "$ac_t""two" 1>&6
11589 echo "configure: failed program was:" >&5
11590 cat conftest.$ac_ext >&5
11592 echo "$ac_t""one" 1>&6
11593 { test "$extra_verbose" = "yes" && cat << \EOF
11594 Defining GETTIMEOFDAY_ONE_ARGUMENT
11596 cat >> confdefs.h <<\EOF
11597 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11606 echo $ac_n "checking for inline""... $ac_c" 1>&6
11607 echo "configure:11608: checking for inline" >&5
11610 for ac_kw in inline __inline__ __inline; do
11611 cat > conftest.$ac_ext <<EOF
11612 #line 11613 "configure"
11613 #include "confdefs.h"
11619 if { (eval echo configure:11620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11621 ac_cv_c_inline=$ac_kw; break
11623 echo "configure: failed program was:" >&5
11624 cat conftest.$ac_ext >&5
11630 echo "$ac_t""$ac_cv_c_inline" 1>&6
11631 case "$ac_cv_c_inline" in
11633 no) { test "$extra_verbose" = "yes" && cat << \EOF
11636 cat >> confdefs.h <<\EOF
11641 *) { test "$extra_verbose" = "yes" && cat << EOF
11642 Defining inline = $ac_cv_c_inline
11644 cat >> confdefs.h <<EOF
11645 #define inline $ac_cv_c_inline
11651 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11652 echo " xemacs will be linked with \"inline.o\""
11656 if test "$__DECC" != "yes"; then
11657 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11658 # for constant arguments. Useless!
11659 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11660 echo "configure:11661: checking for working alloca.h" >&5
11662 cat > conftest.$ac_ext <<EOF
11663 #line 11664 "configure"
11664 #include "confdefs.h"
11665 #include <alloca.h>
11667 char *p = alloca(2 * sizeof(int));
11670 if { (eval echo configure:11671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11672 ac_cv_header_alloca_h=yes
11674 echo "configure: failed program was:" >&5
11675 cat conftest.$ac_ext >&5
11677 ac_cv_header_alloca_h=no
11681 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11682 if test $ac_cv_header_alloca_h = yes; then
11683 { test "$extra_verbose" = "yes" && cat << \EOF
11684 Defining HAVE_ALLOCA_H
11686 cat >> confdefs.h <<\EOF
11687 #define HAVE_ALLOCA_H 1
11693 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11694 echo "configure:11695: checking for alloca" >&5
11696 cat > conftest.$ac_ext <<EOF
11697 #line 11698 "configure"
11698 #include "confdefs.h"
11701 # define alloca __builtin_alloca
11704 # include <malloc.h>
11705 # define alloca _alloca
11708 # include <alloca.h>
11713 # ifndef alloca /* predefined by HP cc +Olibcalls */
11722 char *p = (char *) alloca(1);
11725 if { (eval echo configure:11726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11727 ac_cv_func_alloca_works=yes
11729 echo "configure: failed program was:" >&5
11730 cat conftest.$ac_ext >&5
11732 ac_cv_func_alloca_works=no
11736 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11737 if test $ac_cv_func_alloca_works = yes; then
11738 { test "$extra_verbose" = "yes" && cat << \EOF
11739 Defining HAVE_ALLOCA
11741 cat >> confdefs.h <<\EOF
11742 #define HAVE_ALLOCA 1
11748 if test $ac_cv_func_alloca_works = no; then
11749 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11750 # that cause trouble. Some versions do not even contain alloca or
11751 # contain a buggy version. If you still want to use their alloca,
11752 # use ar to extract alloca.o from them instead of compiling alloca.c.
11753 ALLOCA=alloca.${ac_objext}
11754 { test "$extra_verbose" = "yes" && cat << \EOF
11757 cat >> confdefs.h <<\EOF
11763 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11764 echo "configure:11765: checking whether alloca needs Cray hooks" >&5
11766 cat > conftest.$ac_ext <<EOF
11767 #line 11768 "configure"
11768 #include "confdefs.h"
11769 #if defined(CRAY) && ! defined(CRAY2)
11776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11777 egrep "webecray" >/dev/null 2>&1; then
11787 echo "$ac_t""$ac_cv_os_cray" 1>&6
11788 if test $ac_cv_os_cray = yes; then
11789 for ac_func in _getb67 GETB67 getb67; do
11790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11791 echo "configure:11792: checking for $ac_func" >&5
11793 cat > conftest.$ac_ext <<EOF
11794 #line 11795 "configure"
11795 #include "confdefs.h"
11796 /* System header to define __stub macros and hopefully few prototypes,
11797 which can conflict with char $ac_func(); below. */
11798 #include <assert.h>
11799 /* Override any gcc2 internal prototype to avoid an error. */
11800 /* We use char because int might match the return type of a gcc2
11801 builtin and then its argument prototype would still apply. */
11806 /* The GNU C library defines this for functions which it implements
11807 to always fail with ENOSYS. Some functions are actually named
11808 something starting with __ and the normal name is an alias. */
11809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11817 if { (eval echo configure:11818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11819 eval "ac_cv_func_$ac_func=yes"
11821 echo "configure: failed program was:" >&5
11822 cat conftest.$ac_ext >&5
11824 eval "ac_cv_func_$ac_func=no"
11828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11829 echo "$ac_t""yes" 1>&6
11830 { test "$extra_verbose" = "yes" && cat << EOF
11831 Defining CRAY_STACKSEG_END = $ac_func
11833 cat >> confdefs.h <<EOF
11834 #define CRAY_STACKSEG_END $ac_func
11840 echo "$ac_t""no" 1>&6
11846 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11847 echo "configure:11848: checking stack direction for C alloca" >&5
11849 cat > conftest.$ac_ext <<EOF
11850 #line 11851 "configure"
11851 #include "confdefs.h"
11852 find_stack_direction ()
11854 static char *addr = 0;
11859 return find_stack_direction ();
11862 return (&dummy > addr) ? 1 : -1;
11866 exit (find_stack_direction() < 0);
11869 if { (eval echo configure:11870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11871 ac_cv_c_stack_direction=1
11874 echo "configure: failed program was:" >&5
11875 cat conftest.$ac_ext >&5
11877 ac_cv_c_stack_direction=-1
11881 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11882 { test "$extra_verbose" = "yes" && cat << EOF
11883 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11885 cat >> confdefs.h <<EOF
11886 #define STACK_DIRECTION $ac_cv_c_stack_direction
11892 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11893 echo " xemacs will be linked with \"$ALLOCA\""
11897 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11898 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11899 echo "configure:11900: checking for vfork.h" >&5
11901 cat > conftest.$ac_ext <<EOF
11902 #line 11903 "configure"
11903 #include "confdefs.h"
11906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11907 { (eval echo configure:11908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11909 if test -z "$ac_err"; then
11911 eval "ac_cv_header_$ac_safe=yes"
11914 echo "configure: failed program was:" >&5
11915 cat conftest.$ac_ext >&5
11917 eval "ac_cv_header_$ac_safe=no"
11920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11921 echo "$ac_t""yes" 1>&6
11922 { test "$extra_verbose" = "yes" && cat << \EOF
11923 Defining HAVE_VFORK_H
11925 cat >> confdefs.h <<\EOF
11926 #define HAVE_VFORK_H 1
11931 echo "$ac_t""no" 1>&6
11934 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11935 echo "configure:11936: checking for working vfork" >&5
11937 cat > conftest.$ac_ext <<EOF
11938 #line 11939 "configure"
11939 #include "confdefs.h"
11940 /* Thanks to Paul Eggert for this test. */
11942 #include <sys/types.h>
11943 #include <sys/stat.h>
11944 #ifdef HAVE_UNISTD_H
11945 #include <unistd.h>
11947 #ifdef HAVE_VFORK_H
11950 /* On some sparc systems, changes by the child to local and incoming
11951 argument registers are propagated back to the parent.
11952 The compiler is told about this with #include <vfork.h>,
11953 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
11954 Test for this by using a static variable whose address
11955 is put into a register that is clobbered by the vfork. */
11958 sparc_address_test (int arg)
11960 sparc_address_test (arg) int arg;
11963 static pid_t child;
11978 pid_t parent = getpid ();
11981 sparc_address_test ();
11986 /* Here is another test for sparc vfork register problems.
11987 This test uses lots of local variables, at least
11988 as many local variables as main has allocated so far
11989 including compiler temporaries. 4 locals are enough for
11990 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
11991 A buggy compiler should reuse the register of parent
11992 for one of the local variables, since it will think that
11993 parent can't possibly be used any more in this routine.
11994 Assigning to the local variable will thus munge parent
11995 in the parent process. */
11997 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11998 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11999 /* Convince the compiler that p..p7 are live; otherwise, it might
12000 use the same hardware register for all 8 local variables. */
12001 if (p != p1 || p != p2 || p != p3 || p != p4
12002 || p != p5 || p != p6 || p != p7)
12005 /* On some systems (e.g. IRIX 3.3),
12006 vfork doesn't separate parent from child file descriptors.
12007 If the child closes a descriptor before it execs or exits,
12008 this munges the parent's descriptor as well.
12009 Test for this by closing stdout in the child. */
12010 _exit(close(fileno(stdout)) != 0);
12015 while (wait(&status) != child)
12018 /* Was there some problem with vforking? */
12021 /* Did the child fail? (This shouldn't happen.) */
12024 /* Did the vfork/compiler bug occur? */
12025 || parent != getpid()
12027 /* Did the file descriptor bug occur? */
12028 || fstat(fileno(stdout), &st) != 0
12033 if { (eval echo configure:12034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12035 ac_cv_func_vfork_works=yes
12038 echo "configure: failed program was:" >&5
12039 cat conftest.$ac_ext >&5
12041 ac_cv_func_vfork_works=no
12045 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12046 if test $ac_cv_func_vfork_works = no; then
12047 { test "$extra_verbose" = "yes" && cat << \EOF
12048 Defining vfork = fork
12050 cat >> confdefs.h <<\EOF
12058 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12059 echo "configure:12060: checking for working strcoll" >&5
12061 cat > conftest.$ac_ext <<EOF
12062 #line 12063 "configure"
12063 #include "confdefs.h"
12064 #include <string.h>
12067 exit (strcoll ("abc", "def") >= 0 ||
12068 strcoll ("ABC", "DEF") >= 0 ||
12069 strcoll ("123", "456") >= 0);
12072 if { (eval echo configure:12073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12074 ac_cv_func_strcoll_works=yes
12077 echo "configure: failed program was:" >&5
12078 cat conftest.$ac_ext >&5
12080 ac_cv_func_strcoll_works=no
12084 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12085 if test $ac_cv_func_strcoll_works = yes; then
12086 { test "$extra_verbose" = "yes" && cat << \EOF
12087 Defining HAVE_STRCOLL
12089 cat >> confdefs.h <<\EOF
12090 #define HAVE_STRCOLL 1
12097 for ac_func in getpgrp
12099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12100 echo "configure:12101: checking for $ac_func" >&5
12102 cat > conftest.$ac_ext <<EOF
12103 #line 12104 "configure"
12104 #include "confdefs.h"
12105 /* System header to define __stub macros and hopefully few prototypes,
12106 which can conflict with char $ac_func(); below. */
12107 #include <assert.h>
12108 /* Override any gcc2 internal prototype to avoid an error. */
12109 /* We use char because int might match the return type of a gcc2
12110 builtin and then its argument prototype would still apply. */
12115 /* The GNU C library defines this for functions which it implements
12116 to always fail with ENOSYS. Some functions are actually named
12117 something starting with __ and the normal name is an alias. */
12118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12126 if { (eval echo configure:12127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12128 eval "ac_cv_func_$ac_func=yes"
12130 echo "configure: failed program was:" >&5
12131 cat conftest.$ac_ext >&5
12133 eval "ac_cv_func_$ac_func=no"
12137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12138 echo "$ac_t""yes" 1>&6
12139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12140 { test "$extra_verbose" = "yes" && cat << EOF
12141 Defining $ac_tr_func
12143 cat >> confdefs.h <<EOF
12144 #define $ac_tr_func 1
12149 echo "$ac_t""no" 1>&6
12153 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12154 echo "configure:12155: checking whether getpgrp takes no argument" >&5
12156 cat > conftest.$ac_ext <<EOF
12157 #line 12158 "configure"
12158 #include "confdefs.h"
12161 * If this system has a BSD-style getpgrp(),
12162 * which takes a pid argument, exit unsuccessfully.
12164 * Snarfed from Chet Ramey's bash pgrp.c test program
12167 #include <sys/types.h>
12170 int pg1, pg2, pg3, pg4;
12171 int ng, np, s, child;
12178 pg3 = getpgrp(pid);
12182 * If all of these values are the same, it's pretty sure that
12183 * we're on a system that ignores getpgrp's first argument.
12185 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12191 else if (child == 0) {
12194 * If this is Sys V, this will not work; pgrp will be
12195 * set to np because setpgrp just changes a pgrp to be
12196 * the same as the pid.
12199 ng = getpgrp(0); /* Same result for Sys V and BSD */
12212 if { (eval echo configure:12213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12214 ac_cv_func_getpgrp_void=yes
12217 echo "configure: failed program was:" >&5
12218 cat conftest.$ac_ext >&5
12220 ac_cv_func_getpgrp_void=no
12225 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12226 if test $ac_cv_func_getpgrp_void = yes; then
12227 { test "$extra_verbose" = "yes" && cat << \EOF
12228 Defining GETPGRP_VOID
12230 cat >> confdefs.h <<\EOF
12231 #define GETPGRP_VOID 1
12238 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12239 echo "configure:12240: checking for working mmap" >&5
12240 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12241 cat > conftest.$ac_ext <<EOF
12242 #line 12243 "configure"
12243 #include "confdefs.h"
12245 #include <unistd.h>
12247 #include <sys/mman.h>
12249 #ifndef MAP_VARIABLE
12250 #define MAP_VARIABLE 0
12254 #define MAP_FAILED -1
12257 int main (int argc, char *argv[])
12261 #ifndef MAP_ANONYMOUS
12262 fd = open ("/dev/zero", O_RDWR);
12265 #define MAP_ANONYMOUS 0
12267 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12268 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12269 fd, 0) != (void *) MAP_FAILED)
12271 perror ("conftest: mmap failed");
12275 if { (eval echo configure:12276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12280 echo "configure: failed program was:" >&5
12281 cat conftest.$ac_ext >&5
12285 rm -fr conftest* ;;
12287 echo "$ac_t""$have_mmap" 1>&6
12288 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12291 cat >> confdefs.h <<\EOF
12292 #define HAVE_MMAP 1
12297 case "$opsys" in cygwin*)
12298 test "$rel_alloc" = "default" && rel_alloc=no ;;
12300 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12301 if test "$rel_alloc $have_mmap" = "default yes"; then
12302 if test "$doug_lea_malloc" = "yes"; then
12303 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12304 echo "configure:12305: checking for M_MMAP_THRESHOLD" >&5
12305 cat > conftest.$ac_ext <<EOF
12306 #line 12307 "configure"
12307 #include "confdefs.h"
12308 #include <malloc.h>
12311 #ifndef M_MMAP_THRESHOLD
12312 #error No M_MMAP_THRESHOLD :-(
12313 !@+$%^&*_)(_ - unlikely to compile...
12318 if { (eval echo configure:12319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12320 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12322 echo "configure: failed program was:" >&5
12323 cat conftest.$ac_ext >&5
12325 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12332 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12335 cat >> confdefs.h <<\EOF
12336 #define REL_ALLOC 1
12341 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12342 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12343 echo "configure:12344: checking for termios.h" >&5
12345 cat > conftest.$ac_ext <<EOF
12346 #line 12347 "configure"
12347 #include "confdefs.h"
12348 #include <termios.h>
12350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12351 { (eval echo configure:12352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12353 if test -z "$ac_err"; then
12355 eval "ac_cv_header_$ac_safe=yes"
12358 echo "configure: failed program was:" >&5
12359 cat conftest.$ac_ext >&5
12361 eval "ac_cv_header_$ac_safe=no"
12364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12365 echo "$ac_t""yes" 1>&6
12366 { test "$extra_verbose" = "yes" && cat << \EOF
12367 Defining HAVE_TERMIOS
12369 cat >> confdefs.h <<\EOF
12370 #define HAVE_TERMIOS 1
12374 { test "$extra_verbose" = "yes" && cat << \EOF
12375 Defining SIGNALS_VIA_CHARACTERS
12377 cat >> confdefs.h <<\EOF
12378 #define SIGNALS_VIA_CHARACTERS 1
12382 { test "$extra_verbose" = "yes" && cat << \EOF
12385 cat >> confdefs.h <<\EOF
12386 #define NO_TERMIO 1
12391 echo "$ac_t""no" 1>&6
12392 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12393 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12394 echo "configure:12395: checking for termio.h" >&5
12396 cat > conftest.$ac_ext <<EOF
12397 #line 12398 "configure"
12398 #include "confdefs.h"
12399 #include <termio.h>
12401 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12402 { (eval echo configure:12403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12403 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12404 if test -z "$ac_err"; then
12406 eval "ac_cv_header_$ac_safe=yes"
12409 echo "configure: failed program was:" >&5
12410 cat conftest.$ac_ext >&5
12412 eval "ac_cv_header_$ac_safe=no"
12415 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12416 echo "$ac_t""yes" 1>&6
12417 { test "$extra_verbose" = "yes" && cat << \EOF
12418 Defining HAVE_TERMIO
12420 cat >> confdefs.h <<\EOF
12421 #define HAVE_TERMIO 1
12426 echo "$ac_t""no" 1>&6
12433 echo $ac_n "checking for socket""... $ac_c" 1>&6
12434 echo "configure:12435: checking for socket" >&5
12436 cat > conftest.$ac_ext <<EOF
12437 #line 12438 "configure"
12438 #include "confdefs.h"
12439 /* System header to define __stub macros and hopefully few prototypes,
12440 which can conflict with char socket(); below. */
12441 #include <assert.h>
12442 /* Override any gcc2 internal prototype to avoid an error. */
12443 /* We use char because int might match the return type of a gcc2
12444 builtin and then its argument prototype would still apply. */
12449 /* The GNU C library defines this for functions which it implements
12450 to always fail with ENOSYS. Some functions are actually named
12451 something starting with __ and the normal name is an alias. */
12452 #if defined (__stub_socket) || defined (__stub___socket)
12460 if { (eval echo configure:12461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12462 eval "ac_cv_func_socket=yes"
12464 echo "configure: failed program was:" >&5
12465 cat conftest.$ac_ext >&5
12467 eval "ac_cv_func_socket=no"
12471 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12472 echo "$ac_t""yes" 1>&6
12473 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12474 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12475 echo "configure:12476: checking for netinet/in.h" >&5
12477 cat > conftest.$ac_ext <<EOF
12478 #line 12479 "configure"
12479 #include "confdefs.h"
12480 #include <netinet/in.h>
12482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12483 { (eval echo configure:12484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12485 if test -z "$ac_err"; then
12487 eval "ac_cv_header_$ac_safe=yes"
12490 echo "configure: failed program was:" >&5
12491 cat conftest.$ac_ext >&5
12493 eval "ac_cv_header_$ac_safe=no"
12496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12497 echo "$ac_t""yes" 1>&6
12498 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12499 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12500 echo "configure:12501: checking for arpa/inet.h" >&5
12502 cat > conftest.$ac_ext <<EOF
12503 #line 12504 "configure"
12504 #include "confdefs.h"
12505 #include <arpa/inet.h>
12507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12508 { (eval echo configure:12509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12510 if test -z "$ac_err"; then
12512 eval "ac_cv_header_$ac_safe=yes"
12515 echo "configure: failed program was:" >&5
12516 cat conftest.$ac_ext >&5
12518 eval "ac_cv_header_$ac_safe=no"
12521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12522 echo "$ac_t""yes" 1>&6
12524 { test "$extra_verbose" = "yes" && cat << \EOF
12525 Defining HAVE_SOCKETS
12527 cat >> confdefs.h <<\EOF
12528 #define HAVE_SOCKETS 1
12532 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12533 echo "configure:12534: checking "for sun_len member in struct sockaddr_un"" >&5
12534 cat > conftest.$ac_ext <<EOF
12535 #line 12536 "configure"
12536 #include "confdefs.h"
12538 #include <sys/types.h>
12539 #include <sys/socket.h>
12540 #include <sys/un.h>
12543 static struct sockaddr_un x; x.sun_len = 1;
12546 if { (eval echo configure:12547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12548 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12549 Defining HAVE_SOCKADDR_SUN_LEN
12551 cat >> confdefs.h <<\EOF
12552 #define HAVE_SOCKADDR_SUN_LEN 1
12557 echo "configure: failed program was:" >&5
12558 cat conftest.$ac_ext >&5
12560 echo "$ac_t""no" 1>&6
12563 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12564 echo "configure:12565: checking "for ip_mreq struct in netinet/in.h"" >&5
12565 cat > conftest.$ac_ext <<EOF
12566 #line 12567 "configure"
12567 #include "confdefs.h"
12569 #include <sys/types.h>
12570 #include <netinet/in.h>
12573 static struct ip_mreq x;
12576 if { (eval echo configure:12577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12578 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12579 Defining HAVE_MULTICAST
12581 cat >> confdefs.h <<\EOF
12582 #define HAVE_MULTICAST 1
12587 echo "configure: failed program was:" >&5
12588 cat conftest.$ac_ext >&5
12590 echo "$ac_t""no" 1>&6
12594 echo "$ac_t""no" 1>&6
12598 echo "$ac_t""no" 1>&6
12602 echo "$ac_t""no" 1>&6
12606 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12607 echo "configure:12608: checking for msgget" >&5
12609 cat > conftest.$ac_ext <<EOF
12610 #line 12611 "configure"
12611 #include "confdefs.h"
12612 /* System header to define __stub macros and hopefully few prototypes,
12613 which can conflict with char msgget(); below. */
12614 #include <assert.h>
12615 /* Override any gcc2 internal prototype to avoid an error. */
12616 /* We use char because int might match the return type of a gcc2
12617 builtin and then its argument prototype would still apply. */
12622 /* The GNU C library defines this for functions which it implements
12623 to always fail with ENOSYS. Some functions are actually named
12624 something starting with __ and the normal name is an alias. */
12625 #if defined (__stub_msgget) || defined (__stub___msgget)
12633 if { (eval echo configure:12634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12635 eval "ac_cv_func_msgget=yes"
12637 echo "configure: failed program was:" >&5
12638 cat conftest.$ac_ext >&5
12640 eval "ac_cv_func_msgget=no"
12644 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12645 echo "$ac_t""yes" 1>&6
12646 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12647 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12648 echo "configure:12649: checking for sys/ipc.h" >&5
12650 cat > conftest.$ac_ext <<EOF
12651 #line 12652 "configure"
12652 #include "confdefs.h"
12653 #include <sys/ipc.h>
12655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12656 { (eval echo configure:12657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12658 if test -z "$ac_err"; then
12660 eval "ac_cv_header_$ac_safe=yes"
12663 echo "configure: failed program was:" >&5
12664 cat conftest.$ac_ext >&5
12666 eval "ac_cv_header_$ac_safe=no"
12669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12670 echo "$ac_t""yes" 1>&6
12671 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12672 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12673 echo "configure:12674: checking for sys/msg.h" >&5
12675 cat > conftest.$ac_ext <<EOF
12676 #line 12677 "configure"
12677 #include "confdefs.h"
12678 #include <sys/msg.h>
12680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12681 { (eval echo configure:12682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12683 if test -z "$ac_err"; then
12685 eval "ac_cv_header_$ac_safe=yes"
12688 echo "configure: failed program was:" >&5
12689 cat conftest.$ac_ext >&5
12691 eval "ac_cv_header_$ac_safe=no"
12694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12695 echo "$ac_t""yes" 1>&6
12696 { test "$extra_verbose" = "yes" && cat << \EOF
12697 Defining HAVE_SYSVIPC
12699 cat >> confdefs.h <<\EOF
12700 #define HAVE_SYSVIPC 1
12705 echo "$ac_t""no" 1>&6
12709 echo "$ac_t""no" 1>&6
12713 echo "$ac_t""no" 1>&6
12717 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12718 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12719 echo "configure:12720: checking for dirent.h" >&5
12721 cat > conftest.$ac_ext <<EOF
12722 #line 12723 "configure"
12723 #include "confdefs.h"
12724 #include <dirent.h>
12726 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12727 { (eval echo configure:12728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12728 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12729 if test -z "$ac_err"; then
12731 eval "ac_cv_header_$ac_safe=yes"
12734 echo "configure: failed program was:" >&5
12735 cat conftest.$ac_ext >&5
12737 eval "ac_cv_header_$ac_safe=no"
12740 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12741 echo "$ac_t""yes" 1>&6
12742 { test "$extra_verbose" = "yes" && cat << \EOF
12743 Defining SYSV_SYSTEM_DIR
12745 cat >> confdefs.h <<\EOF
12746 #define SYSV_SYSTEM_DIR 1
12751 echo "$ac_t""no" 1>&6
12752 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12753 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12754 echo "configure:12755: checking for sys/dir.h" >&5
12756 cat > conftest.$ac_ext <<EOF
12757 #line 12758 "configure"
12758 #include "confdefs.h"
12759 #include <sys/dir.h>
12761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12762 { (eval echo configure:12763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12764 if test -z "$ac_err"; then
12766 eval "ac_cv_header_$ac_safe=yes"
12769 echo "configure: failed program was:" >&5
12770 cat conftest.$ac_ext >&5
12772 eval "ac_cv_header_$ac_safe=no"
12775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12776 echo "$ac_t""yes" 1>&6
12779 echo "$ac_t""no" 1>&6
12780 { test "$extra_verbose" = "yes" && cat << \EOF
12781 Defining NONSYSTEM_DIR_LIBRARY
12783 cat >> confdefs.h <<\EOF
12784 #define NONSYSTEM_DIR_LIBRARY 1
12793 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12794 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12795 echo "configure:12796: checking for nlist.h" >&5
12797 cat > conftest.$ac_ext <<EOF
12798 #line 12799 "configure"
12799 #include "confdefs.h"
12802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12803 { (eval echo configure:12804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12805 if test -z "$ac_err"; then
12807 eval "ac_cv_header_$ac_safe=yes"
12810 echo "configure: failed program was:" >&5
12811 cat conftest.$ac_ext >&5
12813 eval "ac_cv_header_$ac_safe=no"
12816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12817 echo "$ac_t""yes" 1>&6
12818 { test "$extra_verbose" = "yes" && cat << \EOF
12819 Defining NLIST_STRUCT
12821 cat >> confdefs.h <<\EOF
12822 #define NLIST_STRUCT 1
12827 echo "$ac_t""no" 1>&6
12832 echo "checking "for sound support"" 1>&6
12833 echo "configure:12834: checking "for sound support"" >&5
12834 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12836 if test "$with_native_sound" != "no"; then
12837 if test -n "$native_sound_lib"; then
12838 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12839 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12840 echo "configure:12841: checking for multimedia/audio_device.h" >&5
12842 cat > conftest.$ac_ext <<EOF
12843 #line 12844 "configure"
12844 #include "confdefs.h"
12845 #include <multimedia/audio_device.h>
12847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12848 { (eval echo configure:12849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12850 if test -z "$ac_err"; then
12852 eval "ac_cv_header_$ac_safe=yes"
12855 echo "configure: failed program was:" >&5
12856 cat conftest.$ac_ext >&5
12858 eval "ac_cv_header_$ac_safe=no"
12861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12862 echo "$ac_t""yes" 1>&6
12863 sound_found=yes sound_cflags=""
12864 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12865 echo " xemacs will be linked with \"sunplay.o\""
12868 echo "$ac_t""no" 1>&6
12873 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12875 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12876 echo " xemacs will be linked with \"sunplay.o\""
12878 if test -d "/usr/demo/SOUND/include"
12879 then sound_cflags="-I/usr/demo/SOUND/include"
12880 else sound_cflags="-I/usr/demo/SOUND"
12882 if test -z "$native_sound_lib" ; then
12883 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12884 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12885 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12890 if test -z "$sound_found"; then
12891 case "$canonical" in
12893 if test -z "$native_sound_lib"; then
12895 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12896 echo "configure:12897: checking for ALopenport in -laudio" >&5
12897 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12899 xe_check_libs=" -laudio "
12900 cat > conftest.$ac_ext <<EOF
12901 #line 12902 "configure"
12902 #include "confdefs.h"
12903 /* Override any gcc2 internal prototype to avoid an error. */
12904 /* We use char because int might match the return type of a gcc2
12905 builtin and then its argument prototype would still apply. */
12912 if { (eval echo configure:12913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12914 eval "ac_cv_lib_$ac_lib_var=yes"
12916 echo "configure: failed program was:" >&5
12917 cat conftest.$ac_ext >&5
12919 eval "ac_cv_lib_$ac_lib_var=no"
12924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12925 echo "$ac_t""yes" 1>&6
12926 native_sound_lib="-laudio"
12928 echo "$ac_t""no" 1>&6
12933 if test -n "$native_sound_lib"; then
12934 sound_found=yes sound_cflags=""
12935 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
12936 echo " xemacs will be linked with \"sgiplay.o\""
12940 if test -z "$native_sound_lib"; then
12942 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12943 echo "configure:12944: checking for AOpenAudio in -lAlib" >&5
12944 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12946 xe_check_libs=" -lAlib "
12947 cat > conftest.$ac_ext <<EOF
12948 #line 12949 "configure"
12949 #include "confdefs.h"
12950 /* Override any gcc2 internal prototype to avoid an error. */
12951 /* We use char because int might match the return type of a gcc2
12952 builtin and then its argument prototype would still apply. */
12959 if { (eval echo configure:12960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12961 eval "ac_cv_lib_$ac_lib_var=yes"
12963 echo "configure: failed program was:" >&5
12964 cat conftest.$ac_ext >&5
12966 eval "ac_cv_lib_$ac_lib_var=no"
12971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12972 echo "$ac_t""yes" 1>&6
12973 native_sound_lib="-lAlib"
12975 echo "$ac_t""no" 1>&6
12980 if test -n "$native_sound_lib"; then
12982 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
12983 echo " xemacs will be linked with \"hpplay.o\""
12985 if test "$GCC" = "yes" # Kludge city
12986 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
12987 else sound_cflags="+e -I/usr/audio/examples"
12993 if test -z "$sound_found"; then
12994 if test "$with_msw" = "yes"; then
13000 if test -z "$sound_found"; then
13001 for dir in "machine" "sys" "linux"; do
13002 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13003 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13004 echo "configure:13005: checking for ${dir}/soundcard.h" >&5
13006 cat > conftest.$ac_ext <<EOF
13007 #line 13008 "configure"
13008 #include "confdefs.h"
13009 #include <${dir}/soundcard.h>
13011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13012 { (eval echo configure:13013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13014 if test -z "$ac_err"; then
13016 eval "ac_cv_header_$ac_safe=yes"
13019 echo "configure: failed program was:" >&5
13020 cat conftest.$ac_ext >&5
13022 eval "ac_cv_header_$ac_safe=no"
13025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13026 echo "$ac_t""yes" 1>&6
13029 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13030 echo " xemacs will be linked with \"linuxplay.o\""
13032 { test "$extra_verbose" = "yes" && cat << EOF
13033 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13035 cat >> confdefs.h <<EOF
13036 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13042 echo "$ac_t""no" 1>&6
13048 test "$sound_found" = "yes" && with_native_sound=yes
13051 if test "$with_native_sound" = "yes"; then
13052 { test "$extra_verbose" = "yes" && cat << \EOF
13053 Defining HAVE_NATIVE_SOUND
13055 cat >> confdefs.h <<\EOF
13056 #define HAVE_NATIVE_SOUND 1
13060 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13063 if test "$with_nas_sound" != "no"; then
13064 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13065 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13066 echo "configure:13067: checking for audio/audiolib.h" >&5
13068 cat > conftest.$ac_ext <<EOF
13069 #line 13070 "configure"
13070 #include "confdefs.h"
13071 #include <audio/audiolib.h>
13073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13074 { (eval echo configure:13075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13076 if test -z "$ac_err"; then
13078 eval "ac_cv_header_$ac_safe=yes"
13081 echo "configure: failed program was:" >&5
13082 cat conftest.$ac_ext >&5
13084 eval "ac_cv_header_$ac_safe=no"
13087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13088 echo "$ac_t""yes" 1>&6
13091 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13092 echo "configure:13093: checking for AuOpenServer in -laudio" >&5
13093 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13095 xe_check_libs=" -laudio "
13096 cat > conftest.$ac_ext <<EOF
13097 #line 13098 "configure"
13098 #include "confdefs.h"
13099 /* Override any gcc2 internal prototype to avoid an error. */
13100 /* We use char because int might match the return type of a gcc2
13101 builtin and then its argument prototype would still apply. */
13102 char AuOpenServer();
13108 if { (eval echo configure:13109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13110 eval "ac_cv_lib_$ac_lib_var=yes"
13112 echo "configure: failed program was:" >&5
13113 cat conftest.$ac_ext >&5
13115 eval "ac_cv_lib_$ac_lib_var=no"
13120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13121 echo "$ac_t""yes" 1>&6
13124 echo "$ac_t""no" 1>&6
13129 echo "$ac_t""no" 1>&6
13132 if test "$have_nas_sound" = "yes"; then
13134 { test "$extra_verbose" = "yes" && cat << \EOF
13135 Defining HAVE_NAS_SOUND
13137 cat >> confdefs.h <<\EOF
13138 #define HAVE_NAS_SOUND 1
13142 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13143 echo " xemacs will be linked with \"nas.o\""
13145 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13146 cat > conftest.$ac_ext <<EOF
13147 #line 13148 "configure"
13148 #include "confdefs.h"
13149 #include <audio/Xtutil.h>
13151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13152 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13156 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13157 Defining NAS_NO_ERROR_JUMP
13159 cat >> confdefs.h <<\EOF
13160 #define NAS_NO_ERROR_JUMP 1
13168 test "$with_nas_sound" = "yes" && \
13169 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13174 if test "$with_esd_sound" != "no"; then
13175 # Extract the first word of "esd-config", so it can be a program name with args.
13176 set dummy esd-config; ac_word=$2
13177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13178 echo "configure:13179: checking for $ac_word" >&5
13180 if test -n "$have_esd_config"; then
13181 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13185 for ac_dir in $ac_dummy; do
13186 test -z "$ac_dir" && ac_dir=.
13187 if test -f $ac_dir/$ac_word; then
13188 ac_cv_prog_have_esd_config="yes"
13193 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13195 have_esd_config="$ac_cv_prog_have_esd_config"
13196 if test -n "$have_esd_config"; then
13197 echo "$ac_t""$have_esd_config" 1>&6
13199 echo "$ac_t""no" 1>&6
13202 if test "$have_esd_config" = "yes"; then
13203 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13204 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
13205 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13206 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13207 echo "configure:13208: checking for esd_play_stream" >&5
13209 cat > conftest.$ac_ext <<EOF
13210 #line 13211 "configure"
13211 #include "confdefs.h"
13212 /* System header to define __stub macros and hopefully few prototypes,
13213 which can conflict with char esd_play_stream(); below. */
13214 #include <assert.h>
13215 /* Override any gcc2 internal prototype to avoid an error. */
13216 /* We use char because int might match the return type of a gcc2
13217 builtin and then its argument prototype would still apply. */
13218 char esd_play_stream();
13222 /* The GNU C library defines this for functions which it implements
13223 to always fail with ENOSYS. Some functions are actually named
13224 something starting with __ and the normal name is an alias. */
13225 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13233 if { (eval echo configure:13234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13235 eval "ac_cv_func_esd_play_stream=yes"
13237 echo "configure: failed program was:" >&5
13238 cat conftest.$ac_ext >&5
13240 eval "ac_cv_func_esd_play_stream=no"
13244 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13245 echo "$ac_t""yes" 1>&6
13248 echo "$ac_t""no" 1>&6
13249 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13254 if test "$have_esd_sound" = "yes"; then
13257 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13258 echo " xemacs will be linked with \"esd.o\""
13260 { test "$extra_verbose" = "yes" && cat << \EOF
13261 Defining HAVE_ESD_SOUND
13263 cat >> confdefs.h <<\EOF
13264 #define HAVE_ESD_SOUND 1
13269 test "$with_esd_sound" = "yes" && \
13270 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13275 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13276 echo " xemacs will be linked with \"miscplay.o\""
13280 test -z "$with_tty" && with_tty=yes
13282 if test "$with_tty" = "yes" ; then
13283 echo "checking for TTY-related features" 1>&6
13284 echo "configure:13285: checking for TTY-related features" >&5
13285 { test "$extra_verbose" = "yes" && cat << \EOF
13288 cat >> confdefs.h <<\EOF
13293 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
13294 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\""
13297 if test -z "$with_ncurses"; then
13299 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13300 echo "configure:13301: checking for tgetent in -lncurses" >&5
13301 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13303 xe_check_libs=" -lncurses "
13304 cat > conftest.$ac_ext <<EOF
13305 #line 13306 "configure"
13306 #include "confdefs.h"
13307 /* Override any gcc2 internal prototype to avoid an error. */
13308 /* We use char because int might match the return type of a gcc2
13309 builtin and then its argument prototype would still apply. */
13316 if { (eval echo configure:13317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13318 eval "ac_cv_lib_$ac_lib_var=yes"
13320 echo "configure: failed program was:" >&5
13321 cat conftest.$ac_ext >&5
13323 eval "ac_cv_lib_$ac_lib_var=no"
13328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13329 echo "$ac_t""yes" 1>&6
13332 echo "$ac_t""no" 1>&6
13338 if test "$with_ncurses" = "yes"; then
13339 { test "$extra_verbose" = "yes" && cat << \EOF
13340 Defining HAVE_NCURSES
13342 cat >> confdefs.h <<\EOF
13343 #define HAVE_NCURSES 1
13347 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13348 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13349 echo "configure:13350: checking for ncurses/curses.h" >&5
13351 cat > conftest.$ac_ext <<EOF
13352 #line 13353 "configure"
13353 #include "confdefs.h"
13354 #include <ncurses/curses.h>
13356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13357 { (eval echo configure:13358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13358 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13359 if test -z "$ac_err"; then
13361 eval "ac_cv_header_$ac_safe=yes"
13364 echo "configure: failed program was:" >&5
13365 cat conftest.$ac_ext >&5
13367 eval "ac_cv_header_$ac_safe=no"
13370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13371 echo "$ac_t""yes" 1>&6
13372 curses_h_file=ncurses/curses.h
13374 echo "$ac_t""no" 1>&6
13377 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13378 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13379 echo "configure:13380: checking for ncurses/term.h" >&5
13381 cat > conftest.$ac_ext <<EOF
13382 #line 13383 "configure"
13383 #include "confdefs.h"
13384 #include <ncurses/term.h>
13386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13387 { (eval echo configure:13388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13389 if test -z "$ac_err"; then
13391 eval "ac_cv_header_$ac_safe=yes"
13394 echo "configure: failed program was:" >&5
13395 cat conftest.$ac_ext >&5
13397 eval "ac_cv_header_$ac_safe=no"
13400 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13401 echo "$ac_t""yes" 1>&6
13402 term_h_file=ncurses/term.h
13404 echo "$ac_t""no" 1>&6
13407 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13408 echo " xemacs will be linked with \"terminfo.o\""
13410 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13412 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13413 save_c_switch_site="$c_switch_site"
13414 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13415 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13416 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13417 echo "configure:13418: checking for ncurses/curses.h" >&5
13419 cat > conftest.$ac_ext <<EOF
13420 #line 13421 "configure"
13421 #include "confdefs.h"
13422 #include <ncurses/curses.h>
13424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13425 { (eval echo configure:13426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13427 if test -z "$ac_err"; then
13429 eval "ac_cv_header_$ac_safe=yes"
13432 echo "configure: failed program was:" >&5
13433 cat conftest.$ac_ext >&5
13435 eval "ac_cv_header_$ac_safe=no"
13438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13439 echo "$ac_t""yes" 1>&6
13440 curses_h_file=ncurses/curses.h
13442 echo "$ac_t""no" 1>&6
13445 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13446 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13447 else c_switch_site="$save_c_switch_site"
13450 else if test "$have_terminfo" = "yes"; then
13451 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13452 echo " xemacs will be linked with \"terminfo.o\""
13454 if test -n "$libs_termcap"; then
13455 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13457 for lib in curses termlib termcap; do
13459 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13460 echo "configure:13461: checking for tgetent in -l$lib" >&5
13461 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13463 xe_check_libs=" -l$lib "
13464 cat > conftest.$ac_ext <<EOF
13465 #line 13466 "configure"
13466 #include "confdefs.h"
13467 /* Override any gcc2 internal prototype to avoid an error. */
13468 /* We use char because int might match the return type of a gcc2
13469 builtin and then its argument prototype would still apply. */
13476 if { (eval echo configure:13477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13478 eval "ac_cv_lib_$ac_lib_var=yes"
13480 echo "configure: failed program was:" >&5
13481 cat conftest.$ac_ext >&5
13483 eval "ac_cv_lib_$ac_lib_var=no"
13488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13489 echo "$ac_t""yes" 1>&6
13490 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13492 echo "$ac_t""no" 1>&6
13498 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13499 echo " xemacs will be linked with \"tparam.o\""
13501 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13502 if test -n "$libs_termcap"; then
13503 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13506 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13507 echo "configure:13508: checking for tgetent in -lcurses" >&5
13508 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13510 xe_check_libs=" -lcurses "
13511 cat > conftest.$ac_ext <<EOF
13512 #line 13513 "configure"
13513 #include "confdefs.h"
13514 /* Override any gcc2 internal prototype to avoid an error. */
13515 /* We use char because int might match the return type of a gcc2
13516 builtin and then its argument prototype would still apply. */
13523 if { (eval echo configure:13524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13525 eval "ac_cv_lib_$ac_lib_var=yes"
13527 echo "configure: failed program was:" >&5
13528 cat conftest.$ac_ext >&5
13530 eval "ac_cv_lib_$ac_lib_var=no"
13535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13536 echo "$ac_t""yes" 1>&6
13537 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13539 echo "$ac_t""no" 1>&6
13540 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13541 echo "configure:13542: checking for tgetent in -ltermcap" >&5
13542 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13544 xe_check_libs=" -ltermcap "
13545 cat > conftest.$ac_ext <<EOF
13546 #line 13547 "configure"
13547 #include "confdefs.h"
13548 /* Override any gcc2 internal prototype to avoid an error. */
13549 /* We use char because int might match the return type of a gcc2
13550 builtin and then its argument prototype would still apply. */
13557 if { (eval echo configure:13558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13559 eval "ac_cv_lib_$ac_lib_var=yes"
13561 echo "configure: failed program was:" >&5
13562 cat conftest.$ac_ext >&5
13564 eval "ac_cv_lib_$ac_lib_var=no"
13569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13570 echo "$ac_t""yes" 1>&6
13571 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13573 echo "$ac_t""no" 1>&6
13574 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13575 echo " xemacs will be linked with \"termcap.o\""
13586 { test "$extra_verbose" = "yes" && cat << EOF
13587 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13589 cat >> confdefs.h <<EOF
13590 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13594 { test "$extra_verbose" = "yes" && cat << EOF
13595 Defining TERM_H_FILE = "${term_h_file-term.h}"
13597 cat >> confdefs.h <<EOF
13598 #define TERM_H_FILE "${term_h_file-term.h}"
13603 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13604 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13605 echo "configure:13606: checking for gpm.h" >&5
13607 cat > conftest.$ac_ext <<EOF
13608 #line 13609 "configure"
13609 #include "confdefs.h"
13612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13613 { (eval echo configure:13614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13615 if test -z "$ac_err"; then
13617 eval "ac_cv_header_$ac_safe=yes"
13620 echo "configure: failed program was:" >&5
13621 cat conftest.$ac_ext >&5
13623 eval "ac_cv_header_$ac_safe=no"
13626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13627 echo "$ac_t""yes" 1>&6
13630 echo "$ac_t""no" 1>&6
13634 test -z "$with_gpm" && {
13635 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13636 echo "configure:13637: checking for Gpm_Open in -lgpm" >&5
13637 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13639 xe_check_libs=" -lgpm "
13640 cat > conftest.$ac_ext <<EOF
13641 #line 13642 "configure"
13642 #include "confdefs.h"
13643 /* Override any gcc2 internal prototype to avoid an error. */
13644 /* We use char because int might match the return type of a gcc2
13645 builtin and then its argument prototype would still apply. */
13652 if { (eval echo configure:13653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13654 eval "ac_cv_lib_$ac_lib_var=yes"
13656 echo "configure: failed program was:" >&5
13657 cat conftest.$ac_ext >&5
13659 eval "ac_cv_lib_$ac_lib_var=no"
13664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13665 echo "$ac_t""yes" 1>&6
13668 echo "$ac_t""no" 1>&6
13673 if test "$with_gpm" = "yes"; then
13674 { test "$extra_verbose" = "yes" && cat << \EOF
13677 cat >> confdefs.h <<\EOF
13682 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13683 echo " xemacs will be linked with \"gpmevent.o\""
13685 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13688 else for feature in ncurses gpm; do
13689 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13690 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13692 eval "with_${feature}=no"
13695 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13696 echo " xemacs will be linked with \"event-unixoid.o\""
13700 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13701 != "no no no" && echo "checking for database support" 1>&6
13702 echo "configure:13703: checking for database support" >&5
13704 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13705 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13706 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13707 echo "configure:13708: checking for ndbm.h" >&5
13709 cat > conftest.$ac_ext <<EOF
13710 #line 13711 "configure"
13711 #include "confdefs.h"
13714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13715 { (eval echo configure:13716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13717 if test -z "$ac_err"; then
13719 eval "ac_cv_header_$ac_safe=yes"
13722 echo "configure: failed program was:" >&5
13723 cat conftest.$ac_ext >&5
13725 eval "ac_cv_header_$ac_safe=no"
13728 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13729 echo "$ac_t""yes" 1>&6
13732 echo "$ac_t""no" 1>&6
13734 test "$with_database_gdbm" = "yes" -o \
13735 "$with_database_dbm" = "yes" && \
13736 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13737 with_database_gdbm=no with_database_dbm=no
13742 if test "$with_database_gdbm" != "no"; then
13744 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13745 echo "configure:13746: checking for dbm_open in -lgdbm" >&5
13746 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13748 xe_check_libs=" -lgdbm "
13749 cat > conftest.$ac_ext <<EOF
13750 #line 13751 "configure"
13751 #include "confdefs.h"
13752 /* Override any gcc2 internal prototype to avoid an error. */
13753 /* We use char because int might match the return type of a gcc2
13754 builtin and then its argument prototype would still apply. */
13761 if { (eval echo configure:13762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13763 eval "ac_cv_lib_$ac_lib_var=yes"
13765 echo "configure: failed program was:" >&5
13766 cat conftest.$ac_ext >&5
13768 eval "ac_cv_lib_$ac_lib_var=no"
13773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13774 echo "$ac_t""yes" 1>&6
13775 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13777 echo "$ac_t""no" 1>&6
13778 if test "$with_database_gdbm" = "yes"; then
13779 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13781 with_database_gdbm=no
13787 if test "$with_database_dbm" != "no"; then
13788 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13789 echo "configure:13790: checking for dbm_open" >&5
13791 cat > conftest.$ac_ext <<EOF
13792 #line 13793 "configure"
13793 #include "confdefs.h"
13794 /* System header to define __stub macros and hopefully few prototypes,
13795 which can conflict with char dbm_open(); below. */
13796 #include <assert.h>
13797 /* Override any gcc2 internal prototype to avoid an error. */
13798 /* We use char because int might match the return type of a gcc2
13799 builtin and then its argument prototype would still apply. */
13804 /* The GNU C library defines this for functions which it implements
13805 to always fail with ENOSYS. Some functions are actually named
13806 something starting with __ and the normal name is an alias. */
13807 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13815 if { (eval echo configure:13816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13817 eval "ac_cv_func_dbm_open=yes"
13819 echo "configure: failed program was:" >&5
13820 cat conftest.$ac_ext >&5
13822 eval "ac_cv_func_dbm_open=no"
13826 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13827 echo "$ac_t""yes" 1>&6
13828 with_database_dbm=yes libdbm=
13830 echo "$ac_t""no" 1>&6
13833 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13834 echo "configure:13835: checking for dbm_open in -ldbm" >&5
13835 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13837 xe_check_libs=" -ldbm "
13838 cat > conftest.$ac_ext <<EOF
13839 #line 13840 "configure"
13840 #include "confdefs.h"
13841 /* Override any gcc2 internal prototype to avoid an error. */
13842 /* We use char because int might match the return type of a gcc2
13843 builtin and then its argument prototype would still apply. */
13850 if { (eval echo configure:13851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13852 eval "ac_cv_lib_$ac_lib_var=yes"
13854 echo "configure: failed program was:" >&5
13855 cat conftest.$ac_ext >&5
13857 eval "ac_cv_lib_$ac_lib_var=no"
13862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13863 echo "$ac_t""yes" 1>&6
13864 with_database_dbm=yes libdbm=-ldbm
13866 echo "$ac_t""no" 1>&6
13867 test "$with_database_dbm" = "yes" && \
13868 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13869 with_database_dbm=no
13877 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13878 test "$with_database_gdbm" = "yes" -o \
13879 "$with_database_dbm" = "yes" && \
13880 { test "$extra_verbose" = "yes" && cat << \EOF
13883 cat >> confdefs.h <<\EOF
13889 if test "$with_database_berkdb" != "no"; then
13890 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13891 echo "configure:13892: checking for Berkeley db.h" >&5
13892 for header in "db/db.h" "db.h"; do
13893 cat > conftest.$ac_ext <<EOF
13894 #line 13895 "configure"
13895 #include "confdefs.h"
13897 #include <stdlib.h>
13898 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13899 #ifdef HAVE_INTTYPES_H
13900 #define __BIT_TYPES_DEFINED__
13901 #include <inttypes.h>
13902 typedef uint8_t u_int8_t;
13903 typedef uint16_t u_int16_t;
13904 typedef uint32_t u_int32_t;
13905 #ifdef WE_DONT_NEED_QUADS
13906 typedef uint64_t u_int64_t;
13916 if { (eval echo configure:13917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13918 db_h_file="$header"; break
13920 echo "configure: failed program was:" >&5
13921 cat conftest.$ac_ext >&5
13925 if test -z "$db_h_file"
13926 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13927 else echo "$ac_t""$db_h_file" 1>&6
13930 if test "$with_database_berkdb" != "no"; then
13931 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13932 echo "configure:13933: checking for Berkeley DB version" >&5
13933 cat > conftest.$ac_ext <<EOF
13934 #line 13935 "configure"
13935 #include "confdefs.h"
13936 #include <$db_h_file>
13937 #if DB_VERSION_MAJOR > 1
13942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13943 egrep "yes" >/dev/null 2>&1; then
13945 cat > conftest.$ac_ext <<EOF
13946 #line 13947 "configure"
13947 #include "confdefs.h"
13948 #include <$db_h_file>
13949 #if DB_VERSION_MAJOR > 2
13954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13955 egrep "yes" >/dev/null 2>&1; then
13957 echo "$ac_t""3" 1>&6; dbfunc=db_create
13961 echo "$ac_t""2" 1>&6; dbfunc=db_open
13968 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13972 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13973 echo "configure:13974: checking for $dbfunc" >&5
13975 cat > conftest.$ac_ext <<EOF
13976 #line 13977 "configure"
13977 #include "confdefs.h"
13978 /* System header to define __stub macros and hopefully few prototypes,
13979 which can conflict with char $dbfunc(); below. */
13980 #include <assert.h>
13981 /* Override any gcc2 internal prototype to avoid an error. */
13982 /* We use char because int might match the return type of a gcc2
13983 builtin and then its argument prototype would still apply. */
13988 /* The GNU C library defines this for functions which it implements
13989 to always fail with ENOSYS. Some functions are actually named
13990 something starting with __ and the normal name is an alias. */
13991 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
13999 if { (eval echo configure:14000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14001 eval "ac_cv_func_$dbfunc=yes"
14003 echo "configure: failed program was:" >&5
14004 cat conftest.$ac_ext >&5
14006 eval "ac_cv_func_$dbfunc=no"
14010 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
14011 echo "$ac_t""yes" 1>&6
14012 with_database_berkdb=yes need_libdb=no
14014 echo "$ac_t""no" 1>&6
14017 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14018 echo "configure:14019: checking for $dbfunc in -ldb" >&5
14019 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14021 xe_check_libs=" -ldb "
14022 cat > conftest.$ac_ext <<EOF
14023 #line 14024 "configure"
14024 #include "confdefs.h"
14025 /* Override any gcc2 internal prototype to avoid an error. */
14026 /* We use char because int might match the return type of a gcc2
14027 builtin and then its argument prototype would still apply. */
14034 if { (eval echo configure:14035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14036 eval "ac_cv_lib_$ac_lib_var=yes"
14038 echo "configure: failed program was:" >&5
14039 cat conftest.$ac_ext >&5
14041 eval "ac_cv_lib_$ac_lib_var=no"
14046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14047 echo "$ac_t""yes" 1>&6
14048 with_database_berkdb=yes need_libdb=yes
14050 echo "$ac_t""no" 1>&6
14058 if test "$with_database_berkdb" = "yes"; then
14059 { test "$extra_verbose" = "yes" && cat << EOF
14060 Defining DB_H_FILE = "$db_h_file"
14062 cat >> confdefs.h <<EOF
14063 #define DB_H_FILE "$db_h_file"
14067 { test "$extra_verbose" = "yes" && cat << \EOF
14068 Defining HAVE_BERKELEY_DB
14070 cat >> confdefs.h <<\EOF
14071 #define HAVE_BERKELEY_DB 1
14075 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14076 else with_database_berkdb=no
14080 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14081 != "no no no"; then
14082 { test "$extra_verbose" = "yes" && cat << \EOF
14083 Defining HAVE_DATABASE
14085 cat >> confdefs.h <<\EOF
14086 #define HAVE_DATABASE 1
14090 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14091 echo " xemacs will be linked with \"database.o\""
14095 if test "$with_socks" = "yes"; then
14097 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14098 echo "configure:14099: checking for SOCKSinit in -lsocks" >&5
14099 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14101 xe_check_libs=" -lsocks "
14102 cat > conftest.$ac_ext <<EOF
14103 #line 14104 "configure"
14104 #include "confdefs.h"
14105 /* Override any gcc2 internal prototype to avoid an error. */
14106 /* We use char because int might match the return type of a gcc2
14107 builtin and then its argument prototype would still apply. */
14114 if { (eval echo configure:14115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14116 eval "ac_cv_lib_$ac_lib_var=yes"
14118 echo "configure: failed program was:" >&5
14119 cat conftest.$ac_ext >&5
14121 eval "ac_cv_lib_$ac_lib_var=no"
14126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14127 echo "$ac_t""yes" 1>&6
14128 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14129 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14130 { test "$extra_verbose" = "yes" && cat << EOF
14131 Defining $ac_tr_lib
14133 cat >> confdefs.h <<EOF
14134 #define $ac_tr_lib 1
14138 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14141 echo "$ac_t""no" 1>&6
14145 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14146 Defining HAVE_SOCKS
14148 cat >> confdefs.h <<\EOF
14149 #define HAVE_SOCKS 1
14155 if test "$usage_tracking" = "yes"; then
14156 { test "$extra_verbose" = "yes" && cat << \EOF
14157 Defining USAGE_TRACKING
14159 cat >> confdefs.h <<\EOF
14160 #define USAGE_TRACKING 1
14164 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14167 if test "$with_modules" != "no"; then
14168 echo "checking for module support" 1>&6
14169 echo "configure:14170: checking for module support" >&5
14171 if test "$with_msw" = "yes"; then
14174 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14175 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14176 echo "configure:14177: checking for dlfcn.h" >&5
14178 cat > conftest.$ac_ext <<EOF
14179 #line 14180 "configure"
14180 #include "confdefs.h"
14183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14184 { (eval echo configure:14185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14186 if test -z "$ac_err"; then
14188 eval "ac_cv_header_$ac_safe=yes"
14191 echo "configure: failed program was:" >&5
14192 cat conftest.$ac_ext >&5
14194 eval "ac_cv_header_$ac_safe=no"
14197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14198 echo "$ac_t""yes" 1>&6
14200 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14201 echo "configure:14202: checking for dlopen in -lc" >&5
14202 cat > conftest.$ac_ext <<EOF
14203 #line 14204 "configure"
14204 #include "confdefs.h"
14210 if { (eval echo configure:14211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14214 echo "configure: failed program was:" >&5
14215 cat conftest.$ac_ext >&5
14218 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14219 echo "configure:14220: checking for dlopen in -ldl" >&5
14220 ac_save_LIBS="$LIBS"
14222 cat > conftest.$ac_ext <<EOF
14223 #line 14224 "configure"
14224 #include "confdefs.h"
14230 if { (eval echo configure:14231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14234 echo "configure: failed program was:" >&5
14235 cat conftest.$ac_ext >&5
14237 LIBS="$ac_save_LIBS"
14244 echo "$ac_t""no" 1>&6
14247 if test -n "$have_dl"; then
14248 { test "$extra_verbose" = "yes" && cat << \EOF
14249 Defining HAVE_DLOPEN
14251 cat >> confdefs.h <<\EOF
14252 #define HAVE_DLOPEN 1
14258 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14259 echo "configure:14260: checking for shl_load in -ldld" >&5
14260 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14262 xe_check_libs=" -ldld "
14263 cat > conftest.$ac_ext <<EOF
14264 #line 14265 "configure"
14265 #include "confdefs.h"
14266 /* Override any gcc2 internal prototype to avoid an error. */
14267 /* We use char because int might match the return type of a gcc2
14268 builtin and then its argument prototype would still apply. */
14275 if { (eval echo configure:14276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14277 eval "ac_cv_lib_$ac_lib_var=yes"
14279 echo "configure: failed program was:" >&5
14280 cat conftest.$ac_ext >&5
14282 eval "ac_cv_lib_$ac_lib_var=no"
14287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14288 echo "$ac_t""yes" 1>&6
14289 libdl=dld have_dl=yes;
14290 { test "$extra_verbose" = "yes" && cat << \EOF
14291 Defining HAVE_SHL_LOAD
14293 cat >> confdefs.h <<\EOF
14294 #define HAVE_SHL_LOAD 1
14299 echo "$ac_t""no" 1>&6
14301 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14302 echo "configure:14303: checking for dld_init in -ldld" >&5
14303 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14305 xe_check_libs=" -ldld "
14306 cat > conftest.$ac_ext <<EOF
14307 #line 14308 "configure"
14308 #include "confdefs.h"
14309 /* Override any gcc2 internal prototype to avoid an error. */
14310 /* We use char because int might match the return type of a gcc2
14311 builtin and then its argument prototype would still apply. */
14318 if { (eval echo configure:14319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14320 eval "ac_cv_lib_$ac_lib_var=yes"
14322 echo "configure: failed program was:" >&5
14323 cat conftest.$ac_ext >&5
14325 eval "ac_cv_lib_$ac_lib_var=no"
14330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14331 echo "$ac_t""yes" 1>&6
14332 libdl=dld have_dl=yes;
14333 { test "$extra_verbose" = "yes" && cat << \EOF
14334 Defining HAVE_DLD_INIT
14336 cat >> confdefs.h <<\EOF
14337 #define HAVE_DLD_INIT 1
14342 echo "$ac_t""no" 1>&6
14351 if test -n "$have_dl"; then
14358 ld_dynamic_link_flags=
14360 xealias=$internal_configuration
14362 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14363 echo "configure:14364: checking how to build dynamic libraries for ${xehost}" >&5
14364 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14367 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14370 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14371 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14372 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14374 case "$xehost_os" in
14376 # AIX sometimes has problems with the GCC collect2 program. For some
14377 # reason, if we set the COLLECT_NAMES environment variable, the problems
14378 # vanish in a puff of smoke.
14379 if test "${COLLECT_NAMES+set}" != set; then
14381 export COLLECT_NAMES
14386 # Now see if the compiler is really GCC.
14387 if test "$GCC" = "yes"; then
14390 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14391 echo "configure:14392: checking checking whether we are using GNU C" >&5
14392 cat > conftest.$ac_ext <<EOF
14393 #line 14394 "configure"
14394 #include "confdefs.h"
14401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14402 egrep "yes" >/dev/null 2>&1; then
14411 echo "$ac_t""${XEGCC}" 1>&6
14414 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14415 echo "configure:14416: checking how to produce PIC code" >&5
14418 can_build_shared=yes
14419 if test "$XEGCC" = yes; then
14422 case "$xehost_os" in
14423 aix[3-9]* | irix[5-9]* | osf[3-9])
14424 # PIC is the default for these OSes.
14428 # We can build DLLs from non-PIC.
14431 # FIXME: we need at least 68020 code to build shared libraries, but
14432 # adding the `-m68020' flag to GCC prevents building anything better,
14434 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14436 *cygwin* | *mingw* )
14437 # PIC is the default
14444 # PORTME Check for PIC flags for the system compiler.
14445 case "$xehost_os" in
14446 hpux9* | hpux1[0-9]*)
14447 # Is there a better link_static_flag that works with the bundled CC?
14454 # PIC (with -KPIC) is the default.
14458 # We can build DLLs from non-PIC.
14462 # All OSF/1 code is PIC.
14467 # All AIX code is PIC.
14472 dll_cflags='-belf -Kpic'
14506 can_build_shared=no
14511 if test -n "$dll_cflags"; then
14512 echo "$ac_t""${dll_cflags}" 1>&6
14514 # Check to make sure the dll_cflags actually works.
14515 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14516 echo "configure:14517: checking if PIC flag ${dll_cflags} really works" >&5
14517 save_CFLAGS="$CFLAGS"
14518 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14519 cat > conftest.$ac_ext <<EOF
14520 #line 14521 "configure"
14521 #include "confdefs.h"
14527 if { (eval echo configure:14528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14530 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14531 # reports no error. So, we need to grep stderr for (Bundled).
14532 if grep '(Bundled)' config.log >/dev/null; then
14533 echo "$ac_t""no" 1>&6
14534 can_build_shared=no
14537 echo "$ac_t""yes" 1>&6
14540 echo "configure: failed program was:" >&5
14541 cat conftest.$ac_ext >&5
14543 echo "$ac_t""no" 1>&6
14544 can_build_shared=no
14548 CFLAGS="$save_CFLAGS"
14550 echo "$ac_t""none" 1>&6
14553 if test "$can_build_shared" = "yes"; then
14557 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14558 echo "configure:14559: checking if C compiler can produce shared libraries" >&5
14559 if test "$XEGCC" = yes; then
14562 else # Not using GCC
14563 case "$xehost_os" in
14565 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14566 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14569 freebsd2* | netbsd* | openbsd*)
14571 xcldf="${wl}-Bshareable"
14580 xcldf="${wl}-b ${wl}+s"
14583 irix[5-9]* | osf[3-9]*)
14584 xcldf="${wl}-shared"
14588 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14594 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14595 xldf="-assert pure-text -Bstatic"
14598 fi # End if if we are using gcc
14600 if test -n "$xcldf"; then
14601 save_LDFLAGS=$LDFLAGS
14603 save_xe_libs=$xe_libs
14604 LDFLAGS="$xcldf $LDFLAGS"
14607 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14608 cat > conftest.$ac_ext <<EOF
14609 #line 14610 "configure"
14610 #include "confdefs.h"
14616 if { (eval echo configure:14617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14620 echo "configure: failed program was:" >&5
14621 cat conftest.$ac_ext >&5
14626 LDFLAGS=$save_LDFLAGS
14628 xe_libs=$save_xe_libs
14629 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14633 echo "$ac_t""${cc_produces_so}" 1>&6
14636 if test -z "$LTLD"; then
14638 if test "$XEGCC" = yes; then
14639 # Check if gcc -print-prog-name=ld gives a path.
14640 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14641 echo "configure:14642: checking for ld used by GCC" >&5
14642 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14644 # Accept absolute paths.
14646 if test -z "$LTLD"; then
14647 # case "$ac_prog" in
14648 # *gcc-lib*) LTLD="$CC"
14657 # If it fails, then pretend we aren't using GCC.
14661 # If it is relative, then search for the first ld in PATH.
14662 with_gnu_ld=unknown
14666 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14667 echo "configure:14668: checking for GNU ld" >&5
14670 if test -z "$LTLD"; then
14671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14672 for ac_dir in $PATH; do
14673 test -z "$ac_dir" && ac_dir=.
14674 if test -f "$ac_dir/$ac_prog"; then
14675 LTLD="$ac_dir/$ac_prog"
14676 # Check to see if the program is GNU ld. I'd rather use --version,
14677 # but apparently some GNU ld's only accept -v.
14678 # Break only if it was the GNU/non-GNU ld that we prefer.
14679 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14689 if test -n "$LTLD"; then
14690 echo "$ac_t""${LTLD}" 1>&6
14692 echo "$ac_t""no" 1>&6
14695 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14696 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14701 ld_dynamic_link_flags=
14703 # Check to see if it really is or isn't GNU ld.
14704 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14705 echo "configure:14706: checking if the linker is GNU ld" >&5
14706 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14707 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14712 echo "$ac_t""${xe_gnu_ld}" 1>&6
14714 case "$xehost_os" in
14715 amigaos* | sunos4*)
14716 # On these operating systems, we should treat GNU ld like the system ld.
14717 gnu_ld_acts_native=yes
14720 gnu_ld_acts_native=no
14724 if test "$cc_produces_so" = "yes"; then
14727 can_build_shared=yes
14730 # OK - only NOW do we futz about with ld.
14731 # See if the linker supports building shared libraries.
14732 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14733 echo "configure:14734: checking whether the linker supports shared libraries" >&5
14735 dll_ldflags=$LDFLAGS
14737 can_build_shared=yes
14738 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14739 # See if GNU ld supports shared libraries.
14740 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14742 dll_ldflags="-shared"
14748 # PORTME fill in a description of your system's linker (not GNU ld)
14749 case "$xehost_os" in
14759 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14760 # support. Future versions do this automatically, but an explicit c++rt0.o
14761 # doesn't break anything, and helps significantly (at the cost of a little
14766 dll_post="/usr/lib/c++rt0.o"
14769 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14772 dll_ldflags="-Bshareable"
14775 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14777 dll_ldflags="-shared"
14791 # Tested with NetBSD 1.2 ld
14806 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14807 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14810 *gcc*) dll_ldflags="-shared"
14813 *) dll_ldflags="-G"
14819 if test "$XEGCC" = yes; then
14839 can_build_shared=no
14843 echo "$ac_t""${ld_shlibs}" 1>&6
14844 if test "$ld_shlibs" = "no"; then
14845 can_build_shared=no
14847 fi # End of if cc_produces_so = no
14850 if test "$xe_gnu_ld" = yes; then
14851 if test "$ld_shlibs" = yes; then
14852 ld_dynamic_link_flags="${wl}-export-dynamic"
14856 if test -z "$ld_dynamic_link_flags"; then
14857 case "$xehost_os" in
14859 ld_dynamic_link_flags=
14863 ld_dynamic_link_flags=
14867 ld_dynamic_link_flags=
14871 ld_dynamic_link_flags=
14875 ld_dynamic_link_flags="${wl}-E"
14879 ld_dynamic_link_flags=
14883 ld_dynamic_link_flags=
14887 ld_dynamic_link_flags=
14891 ld_dynamic_link_flags=
14894 solaris2* | solaris7*)
14895 ld_dynamic_link_flags=
14898 sco3.2v5* | unixware* | sysv5* | sysv4*)
14899 ld_dynamic_link_flags="${wl}-Bexport"
14903 ld_dynamic_link_flags=
14907 ld_dynamic_link_flags=
14911 ld_dynamic_link_flags=
14915 fi # End of if -z ld_dynamic_link_flags
14916 fi # End of if test "$can_build_shared" = "yes"
14927 if test "$can_build_shared" = "yes"; then
14928 { test "$extra_verbose" = "yes" && cat << \EOF
14929 Defining HAVE_SHLIB
14931 cat >> confdefs.h <<\EOF
14932 #define HAVE_SHLIB 1
14936 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
14937 echo " xemacs will be linked with \"sysdll.o emodules.o\""
14939 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14940 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14941 for ac_func in dlerror _dlerror
14943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14944 echo "configure:14945: checking for $ac_func" >&5
14946 cat > conftest.$ac_ext <<EOF
14947 #line 14948 "configure"
14948 #include "confdefs.h"
14949 /* System header to define __stub macros and hopefully few prototypes,
14950 which can conflict with char $ac_func(); below. */
14951 #include <assert.h>
14952 /* Override any gcc2 internal prototype to avoid an error. */
14953 /* We use char because int might match the return type of a gcc2
14954 builtin and then its argument prototype would still apply. */
14959 /* The GNU C library defines this for functions which it implements
14960 to always fail with ENOSYS. Some functions are actually named
14961 something starting with __ and the normal name is an alias. */
14962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14970 if { (eval echo configure:14971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14972 eval "ac_cv_func_$ac_func=yes"
14974 echo "configure: failed program was:" >&5
14975 cat conftest.$ac_ext >&5
14977 eval "ac_cv_func_$ac_func=no"
14981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14982 echo "$ac_t""yes" 1>&6
14983 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14984 { test "$extra_verbose" = "yes" && cat << EOF
14985 Defining $ac_tr_func
14987 cat >> confdefs.h <<EOF
14988 #define $ac_tr_func 1
14993 echo "$ac_t""no" 1>&6
14999 if test "$with_modules" = "yes"; then
15000 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15002 echo "configure: warning: "Module support cannot be provided."" 1>&2
15008 cat > conftest.$ac_ext <<EOF
15009 #line 15010 "configure"
15010 #include "confdefs.h"
15011 int main(int c,char *v[]){return 0;}
15013 if { (eval echo configure:15014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15018 echo "configure: failed program was:" >&5
15019 cat conftest.$ac_ext >&5
15023 echo "*** PANIC *** The C compiler can no longer build working executables."
15024 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
15025 echo "*** PANIC *** The most likely reason for this problem is that configure"
15026 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
15027 echo "*** PANIC *** found at run time."
15028 echo "*** PANIC ***"
15029 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
15030 echo "*** PANIC *** On other systems, try telling configure where to find the"
15031 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
15032 echo "*** PANIC ***"
15033 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
15034 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
15035 echo "*** PANIC *** on your system. Don't do that."
15040 if test "$win32_processes" = "yes"; then
15041 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15042 echo " xemacs will be linked with \"process-nt.o\""
15045 { test "$extra_verbose" = "yes" && cat << \EOF
15046 Defining HAVE_UNIX_PROCESSES
15048 cat >> confdefs.h <<\EOF
15049 #define HAVE_UNIX_PROCESSES 1
15053 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15054 echo " xemacs will be linked with \"process-unix.o\""
15061 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15066 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15071 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
15072 c_switch_general="$T"
15076 for W in $c_switch_x_site $c_switch_gtk $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15077 c_switch_window_system="$T"
15081 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15086 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
15087 ld_switch_general="$T"
15091 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15092 ld_switch_window_system="$T"
15096 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15101 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15102 ld_libs_general="$T"
15106 for W in $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15107 ld_libs_window_system="$T"
15111 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15116 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15117 internal_makefile_list="Makefile.in"
15118 SUBDIR_MAKEFILES=''
15119 test -d lock || mkdir lock
15120 for dir in $MAKE_SUBDIR; do
15121 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15122 test -d "$d" || mkdir "$d"; cd "$d"
15124 * ) test -d "$dir" || mkdir "$dir" ;;
15128 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15129 SUBDIR_MAKEFILES="$T"
15133 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15134 internal_makefile_list="$T"
15141 for dir in src/s src/m; do
15142 if test ! -d "$dir" ; then
15143 echo Making symbolic link to "$srcdir/$dir"
15144 ${LN_S} "$srcdir/$dir" "$dir"
15148 if test "$extra_verbose" = "yes"; then
15150 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
15155 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15156 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15157 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15160 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15161 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15162 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15165 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15166 test "$extra_verbose" = "yes" && echo "creating TAGS"
15168 $srcdir/TAGS,include" > "TAGS"
15171 if test "$__SUNPRO_C" = "yes"; then
15172 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15173 ( echo "# For use with Sun WorkShop's Source browser."
15174 echo "# See sbquery(1) and sbinit(4) for more information"
15175 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15203 *\$* ) eval "PREFIX=$PREFIX" ;;
15211 EXEC_PREFIX=$exec_prefix
15213 case "$EXEC_PREFIX" in
15214 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15225 *\$* ) eval "INFODIR=$INFODIR" ;;
15235 case "$INFOPATH" in
15236 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15244 PACKAGE_PATH=$package_path
15246 case "$PACKAGE_PATH" in
15247 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15258 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15266 MODULEDIR=$moduledir
15268 case "$MODULEDIR" in
15269 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15277 SITELISPDIR=$sitelispdir
15279 case "$SITELISPDIR" in
15280 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15288 SITEMODULEDIR=$sitemoduledir
15290 case "$SITEMODULEDIR" in
15291 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15302 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15313 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15321 ARCHLIBDIR=$archlibdir
15323 case "$ARCHLIBDIR" in
15324 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15348 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15356 : ${XEMACS_CC:=$CC}
15359 if test "$with_prefix" = "yes"; then
15360 { test "$extra_verbose" = "yes" && cat << \EOF
15361 Defining PREFIX_USER_DEFINED
15363 cat >> confdefs.h <<\EOF
15364 #define PREFIX_USER_DEFINED 1
15370 if test "$with_site_lisp" = "no"; then
15371 { test "$extra_verbose" = "yes" && cat << \EOF
15372 Defining INHIBIT_SITE_LISP
15374 cat >> confdefs.h <<\EOF
15375 #define INHIBIT_SITE_LISP 1
15380 if test "$with_site_modules" = "no"; then
15381 { test "$extra_verbose" = "yes" && cat << \EOF
15382 Defining INHIBIT_SITE_MODULES
15384 cat >> confdefs.h <<\EOF
15385 #define INHIBIT_SITE_MODULES 1
15393 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15394 ac_configure_args="$T"
15396 { test "$extra_verbose" = "yes" && cat << EOF
15397 Defining EMACS_CONFIGURATION = "$configuration"
15399 cat >> confdefs.h <<EOF
15400 #define EMACS_CONFIGURATION "$configuration"
15404 { test "$extra_verbose" = "yes" && cat << EOF
15405 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15407 cat >> confdefs.h <<EOF
15408 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15415 { test "$extra_verbose" = "yes" && cat << EOF
15416 Defining LD_SWITCH_X_SITE = $null_string
15418 cat >> confdefs.h <<EOF
15419 #define LD_SWITCH_X_SITE $null_string
15423 { test "$extra_verbose" = "yes" && cat << EOF
15424 Defining LD_SWITCH_X_SITE_AUX = $null_string
15426 cat >> confdefs.h <<EOF
15427 #define LD_SWITCH_X_SITE_AUX $null_string
15431 { test "$extra_verbose" = "yes" && cat << EOF
15432 Defining C_SWITCH_X_SITE = $null_string
15434 cat >> confdefs.h <<EOF
15435 #define C_SWITCH_X_SITE $null_string
15439 { test "$extra_verbose" = "yes" && cat << EOF
15440 Defining LD_SWITCH_SITE = $null_string
15442 cat >> confdefs.h <<EOF
15443 #define LD_SWITCH_SITE $null_string
15447 { test "$extra_verbose" = "yes" && cat << EOF
15448 Defining C_SWITCH_SITE = $null_string
15450 cat >> confdefs.h <<EOF
15451 #define C_SWITCH_SITE $null_string
15457 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15458 Defining GNU_MALLOC
15460 cat >> confdefs.h <<\EOF
15461 #define GNU_MALLOC 1
15465 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15466 Defining USE_SYSTEM_MALLOC
15468 cat >> confdefs.h <<\EOF
15469 #define USE_SYSTEM_MALLOC 1
15473 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15474 Defining USE_DEBUG_MALLOC
15476 cat >> confdefs.h <<\EOF
15477 #define USE_DEBUG_MALLOC 1
15481 { test "$extra_verbose" = "yes" && cat << \EOF
15482 Defining USE_SYSTEM_MALLOC
15484 cat >> confdefs.h <<\EOF
15485 #define USE_SYSTEM_MALLOC 1
15490 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15493 cat >> confdefs.h <<\EOF
15498 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15501 cat >> confdefs.h <<\EOF
15506 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15507 Defining EXTERNAL_WIDGET
15509 cat >> confdefs.h <<\EOF
15510 #define EXTERNAL_WIDGET 1
15514 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15515 Defining QUICK_BUILD
15517 cat >> confdefs.h <<\EOF
15518 #define QUICK_BUILD 1
15522 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15525 cat >> confdefs.h <<\EOF
15530 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15533 cat >> confdefs.h <<\EOF
15538 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15539 Defining MAIL_USE_POP
15541 cat >> confdefs.h <<\EOF
15542 #define MAIL_USE_POP 1
15546 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15549 cat >> confdefs.h <<\EOF
15554 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15557 cat >> confdefs.h <<\EOF
15562 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15563 Defining USE_UNION_TYPE
15565 cat >> confdefs.h <<\EOF
15566 #define USE_UNION_TYPE 1
15570 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15573 cat >> confdefs.h <<\EOF
15578 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15579 Defining IPV6_CANONICALIZE
15581 cat >> confdefs.h <<\EOF
15582 #define IPV6_CANONICALIZE 1
15589 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15591 echo "uname -a: `uname -a`"
15594 echo "$0 $quoted_arguments"
15597 if test ! -z ${emacs_beta_version} ; then
15598 if test -z "${emacs_is_beta}" ; then
15599 xemacs_betaname=".${emacs_beta_version}"
15601 xemacs_betaname="-b${emacs_beta_version}"
15610 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15613 Compilation / Installation:"
15614 echo " Source code location: $srcdir"
15615 echo " Installation prefix: $prefix"
15616 if test -n "$site_includes"; then
15617 echo " Additional header files: $site_includes"
15619 if test -n "$site_libraries"; then
15620 echo " Additional libraries: $site_libraries"
15622 if test -n "$site_prefixes"; then
15623 echo " Additional prefixes: $site_prefixes"
15625 if test -n "$runpath"; then
15626 echo " Runtime library search path: $runpath"
15629 if test -n "$opsysfile"
15630 then echo " Operating system description file: \`$opsysfile'"
15631 else echo " Not using any operating system description file"
15633 if test -n "$machfile"
15634 then echo " Machine description file: \`$machfile'"
15635 else echo " Not using any machine description file"
15638 echo " Compiler: $CC $CFLAGS"
15639 echo " Relocating allocator for buffers: $rel_alloc"
15640 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15644 if test "$with_msw" = "yes"; then
15645 echo " Compiling in support for the Microsoft window system."
15647 if test "$with_x11" = "yes"; then
15648 echo " Compiling in support for the X window system:"
15649 echo " - X Windows headers location: $x_includes"
15650 echo " - X Windows libraries location: $x_libraries"
15651 if test "$with_xauth" != yes; then
15652 echo " - Xau (X authority) not available."
15654 if test "$with_xmu" != yes; then
15655 echo " - Xmu library not available; substituting equivalent routines."
15657 if test "$with_wmcommand" != no; then
15658 echo " - Handling WM_COMMAND properly."
15661 if test "$need_athena" = "yes"; then
15662 echo " Compiling in support for the Athena widget set:"
15663 echo " - Athena headers location: $athena_h_path"
15664 echo " - Athena library to link: $athena_lib"
15666 case "$with_menubars" in
15667 gtk ) echo " Using GTK menubars." ;;
15668 lucid ) echo " Using Lucid menubars." ;;
15669 motif ) echo " Using Motif menubars."
15670 echo " *WARNING* The Motif menubar implementation is currently buggy."
15671 echo " We recommend using the Lucid menubar instead."
15672 echo " Re-run configure with --with-menubars='lucid'." ;;
15673 msw ) echo " Using MS-Windows menubars." ;;
15675 case "$with_scrollbars" in
15676 gtk ) echo " Using GTK scrollbars." ;;
15677 lucid ) echo " Using Lucid scrollbars." ;;
15678 motif ) echo " Using Motif scrollbars." ;;
15679 athena ) echo " Using Athena scrollbars." ;;
15680 msw ) echo " Using MS-Windows scrollbars." ;;
15682 case "$with_dialogs" in
15683 gtk ) echo " Using GTK dialog boxes." ;;
15684 motif ) echo " Using Motif dialog boxes."
15685 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15686 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15687 echo " We recommend using the Athena dialog boxes instead."
15688 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15689 echo " Read the PROBLEMS file for more information."
15691 athena ) echo " Using Athena dialog boxes." ;;
15692 msw ) echo " Using MS-Windows dialog boxes." ;;
15694 case "$with_widgets" in
15695 gtk ) echo " Using GTK native widgets." ;;
15696 motif ) echo " Using Motif native widgets." ;;
15697 athena ) echo " Using Athena native widgets." ;;
15698 msw ) echo " Using MS-Windows native widgets." ;;
15700 if test "$with_dragndrop" = yes; then
15701 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15702 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15707 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15708 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15712 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15713 if test "$with_xpm" = yes; then
15714 echo " Compiling in support for XPM images."
15715 elif test "$with_x11" = yes; then
15716 echo " WARNING: -----------------------------------------------------------"
15717 echo " WARNING: Compiling without XPM image support."
15718 if test "$xpm_problem" != ""; then
15719 echo " Reason: $xpm_problem"
15721 echo " WARNING: You should strongly consider installing XPM."
15722 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15723 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15724 echo " WARNING: -----------------------------------------------------------"
15726 if test "$with_png" = yes; then
15727 echo " Compiling in support for PNG images."
15728 elif test "$window_system" != "none"; then
15729 echo " WARNING: -----------------------------------------------------------"
15730 echo " WARNING: Compiling without PNG image support."
15731 if test "$png_problem" != ""; then
15732 echo " Reason: $png_problem"
15734 echo " WARNING: You should strongly consider installing the PNG libraries."
15735 echo " WARNING: Otherwise certain images and glyphs may not display."
15736 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15737 echo " WARNING: -----------------------------------------------------------"
15739 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15740 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15741 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15745 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15746 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15747 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15748 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15752 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15753 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15754 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15755 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15756 if test "$with_postgresql" = yes; then
15757 echo " Compiling in support for PostgreSQL."
15758 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15759 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15763 Internationalization:"
15764 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15765 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15766 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15767 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15768 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15769 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15770 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15771 if test "$with_wnn" = yes; then
15772 echo " Compiling in support for the WNN input method on Mule."
15773 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15775 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15779 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15780 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15781 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15782 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15786 test "with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
15787 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15788 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15789 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15790 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15791 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15792 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15793 test "$pdump" = yes && echo " Using the new portable dumper."
15794 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15795 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15796 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15797 != "no no no no no no"; then
15798 echo " WARNING: ---------------------------------------------------------"
15799 echo " WARNING: Compiling in support for runtime error checking."
15800 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15801 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15802 echo " WARNING: ---------------------------------------------------------"
15805 ) | tee -a Installation
15809 # Remove any trailing slashes in these variables.
15810 test -n "$prefix" &&
15811 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15812 test -n "$exec_prefix" &&
15813 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15816 for file in $internal_makefile_list; do
15817 test "$file" = src/Makefile.in && \
15818 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15819 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15821 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15822 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
15826 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15828 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15829 # Let make expand exec_prefix.
15830 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15832 # Any assignment to VPATH causes Sun make to only execute
15833 # the first set of double-colon rules, so remove it if not needed.
15834 # If there is a colon in the path, we need to keep it.
15835 if test "x$srcdir" = x.; then
15836 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15839 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15841 DEFS=-DHAVE_CONFIG_H
15843 # Without the "./", some shells look in PATH for config.status.
15844 : ${CONFIG_STATUS=./config.status}
15846 echo creating $CONFIG_STATUS
15847 rm -f $CONFIG_STATUS
15848 cat > $CONFIG_STATUS <<EOF
15850 # Generated automatically by configure.
15851 # Run this file to recreate the current configuration.
15852 # This directory was configured as follows,
15853 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15855 # $0 $ac_configure_args
15857 # Compiler output produced by configure, useful for debugging
15858 # configure, is in ./config.log if it exists.
15860 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15863 case "\$ac_option" in
15864 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15865 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15866 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15867 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15868 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15870 -help | --help | --hel | --he | --h)
15871 echo "\$ac_cs_usage"; exit 0 ;;
15872 *) echo "\$ac_cs_usage"; exit 1 ;;
15876 ac_given_srcdir=$srcdir
15877 ac_given_INSTALL="$INSTALL"
15879 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15881 cat >> $CONFIG_STATUS <<EOF
15883 # Protect against being on the right side of a sed subst in config.status.
15884 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15885 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15889 s%@CFLAGS@%$CFLAGS%g
15890 s%@CPPFLAGS@%$CPPFLAGS%g
15891 s%@CXXFLAGS@%$CXXFLAGS%g
15892 s%@FFLAGS@%$FFLAGS%g
15894 s%@LDFLAGS@%$LDFLAGS%g
15896 s%@exec_prefix@%$exec_prefix%g
15897 s%@prefix@%$prefix%g
15898 s%@program_transform_name@%$program_transform_name%g
15899 s%@bindir@%$bindir%g
15900 s%@sbindir@%$sbindir%g
15901 s%@libexecdir@%$libexecdir%g
15902 s%@datadir@%$datadir%g
15903 s%@sysconfdir@%$sysconfdir%g
15904 s%@sharedstatedir@%$sharedstatedir%g
15905 s%@localstatedir@%$localstatedir%g
15906 s%@libdir@%$libdir%g
15907 s%@includedir@%$includedir%g
15908 s%@oldincludedir@%$oldincludedir%g
15909 s%@infodir@%$infodir%g
15910 s%@mandir@%$mandir%g
15912 s%@blddir@%$blddir%g
15915 s%@start_flags@%$start_flags%g
15916 s%@ld_switch_shared@%$ld_switch_shared%g
15917 s%@start_files@%$start_files%g
15919 s%@lib_gcc@%$lib_gcc%g
15920 s%@RANLIB@%$RANLIB%g
15921 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15922 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15923 s%@INSTALL_DATA@%$INSTALL_DATA%g
15925 s%@SET_MAKE@%$SET_MAKE%g
15926 s%@GTK_CONFIG@%$GTK_CONFIG%g
15927 s%@X_CFLAGS@%$X_CFLAGS%g
15928 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15929 s%@X_LIBS@%$X_LIBS%g
15930 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15931 s%@install_pp@%$install_pp%g
15932 s%@libs_xauth@%$libs_xauth%g
15933 s%@dnd_objs@%$dnd_objs%g
15934 s%@lwlib_objs@%$lwlib_objs%g
15935 s%@ALLOCA@%$ALLOCA%g
15936 s%@have_esd_config@%$have_esd_config%g
15937 s%@dll_ld@%$dll_ld%g
15938 s%@dll_cflags@%$dll_cflags%g
15939 s%@dll_ldflags@%$dll_ldflags%g
15940 s%@dll_post@%$dll_post%g
15941 s%@dll_ldo@%$dll_ldo%g
15942 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
15943 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
15944 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
15945 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
15946 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
15947 s%@PROGNAME@%$PROGNAME%g
15948 s%@version@%$version%g
15949 s%@configuration@%$configuration%g
15950 s%@canonical@%$canonical%g
15951 s%@inststaticdir@%$inststaticdir%g
15952 s%@instvardir@%$instvardir%g
15953 s%@srcdir@%$srcdir%g
15954 s%@pkgdir@%$pkgdir%g
15955 s%@statedir@%$statedir%g
15956 s%@extra_includes@%$extra_includes%g
15957 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
15958 s%@PREFIX@%$PREFIX%g
15959 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
15960 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
15961 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
15962 s%@INFODIR@%$INFODIR%g
15963 s%@infopath@%$infopath%g
15964 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
15965 s%@INFOPATH@%$INFOPATH%g
15966 s%@package_path@%$package_path%g
15967 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
15968 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
15969 s%@lispdir@%$lispdir%g
15970 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
15971 s%@LISPDIR@%$LISPDIR%g
15972 s%@moduledir@%$moduledir%g
15973 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
15974 s%@MODULEDIR@%$MODULEDIR%g
15975 s%@sitelispdir@%$sitelispdir%g
15976 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
15977 s%@SITELISPDIR@%$SITELISPDIR%g
15978 s%@sitemoduledir@%$sitemoduledir%g
15979 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
15980 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
15981 s%@etcdir@%$etcdir%g
15982 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
15983 s%@ETCDIR@%$ETCDIR%g
15984 s%@docdir@%$docdir%g
15985 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
15986 s%@DOCDIR@%$DOCDIR%g
15987 s%@archlibdir@%$archlibdir%g
15988 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
15989 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
15990 s%@bitmapdir@%$bitmapdir%g
15991 s%@extra_objs@%$extra_objs%g
15992 s%@machfile@%$machfile%g
15993 s%@opsysfile@%$opsysfile%g
15994 s%@c_switch_general@%$c_switch_general%g
15995 s%@c_switch_window_system@%$c_switch_window_system%g
15996 s%@c_switch_all@%$c_switch_all%g
15997 s%@ld_switch_general@%$ld_switch_general%g
15998 s%@ld_switch_window_system@%$ld_switch_window_system%g
15999 s%@ld_switch_all@%$ld_switch_all%g
16000 s%@ld_libs_general@%$ld_libs_general%g
16001 s%@ld_libs_window_system@%$ld_libs_window_system%g
16002 s%@ld_libs_all@%$ld_libs_all%g
16003 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
16004 s%@native_sound_lib@%$native_sound_lib%g
16005 s%@sound_cflags@%$sound_cflags%g
16006 s%@dynodump_arch@%$dynodump_arch%g
16007 s%@XEMACS_CC@%$XEMACS_CC%g
16008 s%@internal_makefile_list@%$internal_makefile_list%g
16013 cat >> $CONFIG_STATUS <<\EOF
16015 # Split the substitutions into bite-sized pieces for seds with
16016 # small command number limits, like on Digital OSF/1 and HP-UX.
16017 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16018 ac_file=1 # Number of current file.
16019 ac_beg=1 # First line for current file.
16020 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16023 while $ac_more_lines; do
16024 if test $ac_beg -gt 1; then
16025 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16027 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16029 if test ! -s conftest.s$ac_file; then
16030 ac_more_lines=false
16031 rm -f conftest.s$ac_file
16033 if test -z "$ac_sed_cmds"; then
16034 ac_sed_cmds="sed -f conftest.s$ac_file"
16036 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16038 ac_file=`expr $ac_file + 1`
16040 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16043 if test -z "$ac_sed_cmds"; then
16048 cat >> $CONFIG_STATUS <<EOF
16050 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16052 cat >> $CONFIG_STATUS <<\EOF
16053 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16054 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16056 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16057 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16058 *) ac_file_in="${ac_file}.in" ;;
16061 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16063 # Remove last slash and all that follows it. Not all systems have dirname.
16064 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16065 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16066 # The file is in a subdirectory.
16067 test ! -d "$ac_dir" && mkdir "$ac_dir"
16068 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16069 # A "../" for each directory in $ac_dir_suffix.
16070 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16072 ac_dir_suffix= ac_dots=
16075 case "$ac_given_srcdir" in
16077 if test -z "$ac_dots"; then top_srcdir=.
16078 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16079 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16080 *) # Relative path.
16081 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16082 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16085 case "$ac_given_INSTALL" in
16086 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16087 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16090 echo creating "$ac_file"
16092 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16094 *Makefile*) ac_comsub="1i\\
16095 # $configure_input" ;;
16099 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16101 s%@configure_input@%$configure_input%g
16102 s%@srcdir@%$srcdir%g
16103 s%@top_srcdir@%$top_srcdir%g
16104 s%@INSTALL@%$INSTALL%g
16105 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16109 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16110 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16112 # ac_d sets the value in "#define NAME VALUE" lines.
16113 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16114 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16117 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16118 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16119 ac_uB='\([ ]\)%\1#\2define\3'
16122 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16123 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16124 ac_eB='$%\1#\2define\3'
16128 if test "${CONFIG_HEADERS+set}" != set; then
16130 cat >> $CONFIG_STATUS <<EOF
16131 CONFIG_HEADERS="src/config.h lwlib/config.h"
16133 cat >> $CONFIG_STATUS <<\EOF
16135 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16136 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16138 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16139 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16140 *) ac_file_in="${ac_file}.in" ;;
16143 echo creating $ac_file
16145 rm -f conftest.frag conftest.in conftest.out
16146 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16147 cat $ac_file_inputs > conftest.in
16151 # Transform confdefs.h into a sed script conftest.vals that substitutes
16152 # the proper values into config.h.in to produce config.h. And first:
16153 # Protect against being on the right side of a sed subst in config.status.
16154 # Protect against being in an unquoted here document in config.status.
16155 rm -f conftest.vals
16156 cat > conftest.hdr <<\EOF
16159 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16163 sed -n -f conftest.hdr confdefs.h > conftest.vals
16166 # This sed command replaces #undef with comments. This is necessary, for
16167 # example, in the case of _POSIX_SOURCE, which is predefined and required
16168 # on some systems where configure will not decide to define it.
16169 cat >> conftest.vals <<\EOF
16170 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16173 # Break up conftest.vals because some shells have a limit on
16174 # the size of here documents, and old seds have small limits too.
16176 rm -f conftest.tail
16179 ac_lines=`grep -c . conftest.vals`
16180 # grep -c gives empty output for an empty file on some AIX systems.
16181 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16182 # Write a limited-size here document to conftest.frag.
16183 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16184 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16186 sed -f conftest.frag conftest.in > conftest.out
16188 mv conftest.out conftest.in
16189 ' >> $CONFIG_STATUS
16190 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16191 rm -f conftest.vals
16192 mv conftest.tail conftest.vals
16194 rm -f conftest.vals
16196 cat >> $CONFIG_STATUS <<\EOF
16197 rm -f conftest.frag conftest.h
16198 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16199 cat conftest.in >> conftest.h
16201 if cmp -s $ac_file conftest.h 2>/dev/null; then
16202 echo "$ac_file is unchanged"
16205 # Remove last slash and all that follows it. Not all systems have dirname.
16206 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16207 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16208 # The file is in a subdirectory.
16209 test ! -d "$ac_dir" && mkdir "$ac_dir"
16212 mv conftest.h $ac_file
16217 cat >> $CONFIG_STATUS <<EOF
16219 top_srcdir="$srcdir"
16220 MAKE_SUBDIR="$MAKE_SUBDIR"
16223 cat >> $CONFIG_STATUS <<\EOF
16224 for dir in . $MAKE_SUBDIR; do
16229 sed -e '/^# Generated/d' \
16230 -e 's%/\*\*/#.*%%' \
16245 echo creating $dir/Makefile
16246 $CPP -I. -I${top_srcdir}/src junk.c \
16247 | sed -e 's/^\#.*//' \
16248 -e 's/^[ ][ ]*$//'\
16256 chmod 444 Makefile.new
16257 mv -f Makefile.new Makefile
16259 echo creating $dir/GNUmakefile
16260 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16261 | sed -e 's/^\#.*//' \
16262 -e 's/^[ ][ ]*$//'\
16270 chmod 444 Makefile.new
16271 mv -f Makefile.new GNUmakefile
16277 sed < config.status >> lib-src/config.values \
16278 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16279 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16280 -e 's/^\([^ ]*\) $/\1 ""/' \
16286 chmod +x $CONFIG_STATUS
16287 rm -fr confdefs* $ac_clean_files
16288 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1