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.
19 ### Note: this script has not yet been ported to autoconf version 2.5x.
21 ### This file is part of XEmacs.
23 ### XEmacs is free software; you can redistribute it and/or modify it
24 ### under the terms of the GNU General Public License as published by
25 ### the Free Software Foundation; either version 2, or (at your
26 ### option) any later version.
28 ### XEmacs is distributed in the hope that it will be useful, but
29 ### WITHOUT ANY WARRANTY; without even the implied warranty of
30 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
31 ### General Public License for more details.
33 ### You should have received a copy of the GNU General Public License
34 ### along with XEmacs; see the file COPYING. If not, write to the Free
35 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
38 ### For usage, run `./configure --help'
39 ### For more detailed information on building and installing XEmacs,
40 ### read the file `INSTALL'.
42 ### If configure succeeds, it leaves its status in config.status.
43 ### A log of configuration tests can be found in config.log.
44 ### If configure fails after disturbing the status quo,
45 ### config.status is removed.
48 --with-x use the X Window System"
52 if test -n "$ZSH_VERSION"; then
53 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
54 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
55 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
56 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
57 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
58 elif test -n "$BASH_VERSION"; then
62 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
73 program_transform_name=s,x,x,
84 SHELL=${CONFIG_SHELL-/bin/sh}
87 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
89 # File descriptor usage:
92 # 2 errors and warnings
93 # 3 some systems may open it to /dev/tty
94 # 4 used on the Kubota Titan
95 # 6 checking for... messages and results
96 # 5 compiler messages saved in config.log
97 if test "$silent" = yes; then
105 This file contains any messages produced by compilers while
106 running configure, to aid debugging if configure makes a mistake.
109 # Strip out --no-create and --no-recursion so they do not pile up.
110 # Also quote any args containing shell metacharacters.
115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
116 | --no-cr | --no-c) ;;
117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
119 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
120 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
121 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
126 # Only set these to C if already set. These must not be set unconditionally
127 # because not all systems understand e.g. LANG=C (notably SCO).
128 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
129 # Non-C LC_CTYPE values break the ctype check.
130 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
131 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
132 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
133 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
136 rm -rf conftest* confdefs.h
137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
140 # A filename unique to this package, relative to the directory that
141 # configure is in, which we can look for to find out if srcdir is correct.
142 ac_unique_file=src/lisp.h
144 # Find the source files, if location was not specified.
145 if test -z "$srcdir"; then
146 ac_srcdir_defaulted=yes
147 # Try the directory containing this script, then its parent.
149 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
150 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
152 if test ! -r $srcdir/$ac_unique_file; then
156 ac_srcdir_defaulted=no
158 if test ! -r $srcdir/$ac_unique_file; then
159 if test "$ac_srcdir_defaulted" = yes; then
160 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
162 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
165 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
167 # Prefer explicitly selected file to automatically selected ones.
168 if test -z "$CONFIG_SITE"; then
169 if test "x$prefix" != xNONE; then
170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
175 for ac_site_file in $CONFIG_SITE; do
176 if test -r "$ac_site_file"; then
177 echo "loading site script $ac_site_file"
184 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
185 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
186 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'
187 ac_cpp='$CPP '"$xe_cppflags"
188 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
189 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
194 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
195 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
196 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
203 ac_n= ac_c='\c' ac_t=
207 progname="`echo $0 | sed 's:^\./\./:\./:'`"
210 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
211 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
214 exec_prefix='${prefix}'
215 bindir='${exec_prefix}/bin'
216 datadir='${prefix}/lib'
217 statedir='${prefix}/lib'
218 libdir='${exec_prefix}/lib'
219 mandir='${prefix}/man/man1'
220 inststaticdir='${PROGNAME}'
221 instvardir='${PROGNAME}-${version}'
222 infodir='${datadir}/${instvardir}/info'
225 lispdir='${datadir}/${instvardir}/lisp'
226 moduledir='${libdir}/${instvardir}/${configuration}/modules'
227 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
228 sitemoduledir='${libdir}/${inststaticdir}/site-modules'
229 pkgdir='${datadir}/${instvardir}/lisp'
231 etcdir='${datadir}/${instvardir}/etc'
232 archlibdir='${libdir}/${instvardir}/${configuration}'
233 docdir='${archlibdir}'
237 with_site_modules='yes'
243 cpp='' cppflags='' libs='' ldflags=''
249 with_system_malloc='default'
250 with_dlmalloc='default'
251 use_regex_malloc='yes'
270 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
275 | --no-cr | --no-c) ;;
276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
279 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
280 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
284 while test $# != 0; do
287 --no-create|--no-recursion) ;;
291 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
292 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
296 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
297 val="yes" valomitted=yes
302 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
304 case "${valomitted}-${opt}" in yes-without_* )
305 opt=`echo $opt | sed 's/without/with/'`
306 valomitted="no" val="no" ;;
313 with_site_modules | \
368 memory_usage_stats | \
369 with_clash_detection | \
373 y | ye | yes ) val=yes ;;
375 * ) (echo "$progname: Usage error:"
376 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
377 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
379 eval "$opt=\"$val\"" ;;
397 site_runtime_libraries )
398 if test "$valomitted" = "yes" ; then
399 if test "$#" = 0 ; then
400 (echo "$progname: Usage error:"
401 echo " " "The \`--$optname' option requires a value."
402 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
411 with_debug_malloc | use_debug_malloc | \
412 with_system_malloc | use_system_malloc )
414 y | ye | yes ) val=yes ;;
416 d | de | def | defa | defau | defaul | default ) val=default ;;
417 * ) (echo "$progname: Usage error:"
418 echo " " "The \`--$optname' option requires one of these values:
419 \`yes', \`no', or \`default'."
420 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
422 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
427 with_database_berkdb=no
429 with_database_gdbm=no
430 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
433 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
434 d | db | dbm ) with_database_dbm=yes ;;
435 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
436 * ) (echo "$progname: Usage error:"
437 echo " " "The \`--$optname' option value
438 must be either \`no' or a comma-separated list
439 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
440 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
443 if test "$with_database_dbm" = "yes" -a \
444 "$with_database_gdbm" = "yes"; then
445 (echo "$progname: Usage error:"
446 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
447 with the \`--$optname' option."
448 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
453 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
455 n | no | non | none ) new_sdefault=no ;;
456 a | al | all | both ) new_sdefault=yes ;;
458 native ) with_native_sound=yes ;;
459 nonative ) with_native_sound=no ;;
461 nas ) with_nas_sound=yes ;;
462 nonas ) with_nas_sound=no ;;
464 esd ) with_esd_sound=yes ;;
465 noesd ) with_esd_sound=no ;;
467 * ) bogus_sound=yes ;;
469 if test "$bogus_sound" -o \
470 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
471 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
472 (echo "$progname: Usage error:"
473 echo " " "Valid types for the \`--$optname' option are:
475 Option \`all' or \`none' must be first in the list.
476 The default is to autodetect native and NAS sound support."
477 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
478 elif test -n "$new_sdefault" ; then
479 with_native_sound=$new_sdefault
480 with_nas_sound=$new_sdefault
481 with_esd_sound=$new_sdefault
482 new_sdefault= # reset this
490 xa | xaw ) val=xaw ;;
491 3 | 3d | xaw3d ) val=3d ;;
492 ne | nex | next | naxtaw) val=next ;;
493 9 | 95 | xaw95 ) val=95 ;;
494 xp | xpm | xawxpm ) val=xpm ;;
495 * ) (echo "$progname: Usage error:"
496 echo " " "The \`--$optname' option must have one of these values:
497 \`xaw', \`3d', \`next', \`95', or \`xpm'."
498 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
505 y | ye | yes ) val=yes ;;
506 n | no | non | none ) val=no ;;
507 x | xl | xli | xlib ) val=xlib ;;
508 m | mo | mot | moti | motif ) val=motif ;;
509 * ) (echo "$progname: Usage error:"
510 echo " " "The \`--$optname' option must have one of these values:
511 \`motif', \`xlib', \`yes', or \`no'."
512 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
521 file | dot ) val=file ;;
522 locking ) val=locking ;;
523 * ) (echo "$progname: Usage error:"
524 echo " " "The \`--$optname' option must have one of these values:
525 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
526 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
533 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
535 n | no | non | none ) new_default=no ;;
536 a | al | all ) new_default=yes ;;
538 extents ) error_check_extents=yes ;;
539 noextents ) error_check_extents=no ;;
541 typecheck ) error_check_typecheck=yes ;;
542 notypecheck ) error_check_typecheck=no ;;
544 bufpos ) error_check_bufpos=yes ;;
545 nobufpos ) error_check_bufpos=no ;;
547 gc ) error_check_gc=yes ;;
548 nogc ) error_check_gc=no ;;
550 malloc ) error_check_malloc=yes ;;
551 nomalloc ) error_check_malloc=no ;;
553 byte_code ) error_check_byte_code=yes ;;
554 nobyte_code ) error_check_byte_code=no ;;
556 glyphs ) error_check_glyphs=yes ;;
557 noglyphs ) error_check_glyphs=no ;;
559 * ) bogus_error_check=yes ;;
561 if test "$bogus_error_check" -o \
562 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
563 if test "$error_check_default" = yes ; then
564 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
566 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
568 (echo "$progname: Usage error:"
569 echo " " "Valid types for the \`--$optname' option are:
571 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
572 elif test -n "$new_default" ; then
573 error_check_extents=$new_default
574 error_check_typecheck=$new_default
575 error_check_bufpos=$new_default
576 error_check_gc=$new_default
577 error_check_malloc=$new_default
578 error_check_byte_code=$new_default
579 error_check_glyphs=$new_default
580 new_default= # reset this
587 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
588 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
589 archlibdir | docdir | package_path | moduledir )
590 if test "$valomitted" = "yes"; then
591 if test "$#" = 0; then
592 (echo "$progname: Usage error:"
593 echo " " "The \`--$optname' option requires a value."
594 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
601 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
602 Defining EXEC_PREFIX_USER_DEFINED
604 cat >> confdefs.h <<\EOF
605 #define EXEC_PREFIX_USER_DEFINED 1
609 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
610 Defining LISPDIR_USER_DEFINED
612 cat >> confdefs.h <<\EOF
613 #define LISPDIR_USER_DEFINED 1
617 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
618 Defining SITELISPDIR_USER_DEFINED
620 cat >> confdefs.h <<\EOF
621 #define SITELISPDIR_USER_DEFINED 1
625 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
626 Defining MODULEDIR_USER_DEFINED
628 cat >> confdefs.h <<\EOF
629 #define MODULEDIR_USER_DEFINED 1
633 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
634 Defining ETCDIR_USER_DEFINED
636 cat >> confdefs.h <<\EOF
637 #define ETCDIR_USER_DEFINED 1
641 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
642 Defining INFODIR_USER_DEFINED
644 cat >> confdefs.h <<\EOF
645 #define INFODIR_USER_DEFINED 1
649 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
650 Defining INFOPATH_USER_DEFINED
652 cat >> confdefs.h <<\EOF
653 #define INFOPATH_USER_DEFINED 1
657 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
658 Defining PACKAGE_PATH_USER_DEFINED
660 cat >> confdefs.h <<\EOF
661 #define PACKAGE_PATH_USER_DEFINED 1
666 { test "$extra_verbose" = "yes" && cat << \EOF
667 Defining INFODIR_USER_DEFINED
669 cat >> confdefs.h <<\EOF
670 #define INFODIR_USER_DEFINED 1
674 { test "$extra_verbose" = "yes" && cat << \EOF
675 Defining LISPDIR_USER_DEFINED
677 cat >> confdefs.h <<\EOF
678 #define LISPDIR_USER_DEFINED 1
682 { test "$extra_verbose" = "yes" && cat << \EOF
683 Defining MODULEDIR_USER_DEFINED
685 cat >> confdefs.h <<\EOF
686 #define MODULEDIR_USER_DEFINED 1
690 { test "$extra_verbose" = "yes" && cat << \EOF
691 Defining ETCDIR_USER_DEFINED
693 cat >> confdefs.h <<\EOF
694 #define ETCDIR_USER_DEFINED 1
698 { test "$extra_verbose" = "yes" && cat << \EOF
699 Defining DOCDIR_USER_DEFINED
701 cat >> confdefs.h <<\EOF
702 #define DOCDIR_USER_DEFINED 1
706 { test "$extra_verbose" = "yes" && cat << \EOF
707 Defining ARCHLIBDIR_USER_DEFINED
709 cat >> confdefs.h <<\EOF
710 #define ARCHLIBDIR_USER_DEFINED 1
714 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
715 Defining DOCDIR_USER_DEFINED
717 cat >> confdefs.h <<\EOF
718 #define DOCDIR_USER_DEFINED 1
722 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
723 Defining ARCHLIBDIR_USER_DEFINED
725 cat >> confdefs.h <<\EOF
726 #define ARCHLIBDIR_USER_DEFINED 1
735 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
738 "with_scrollbars" | \
742 l | lu | luc | luci | lucid ) val=lucid ;;
743 mo | mot | moti | motif ) val=motif ;;
744 a | at | ath | athe | athen | athena ) val=athena ;;
745 n | no | non | none ) val=no ;;
746 y | ye | yes ) val=yes ;;
748 g | gt | gtk ) val=gtk ;;
749 ms | msw ) val=msw ;;
750 * ) (echo "$progname: Usage error:"
751 echo " " "The \`--$optname' option must have one of these values:
752 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
753 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
758 "use_minimal_tagbits" | \
759 "use_indexed_lrecord_implementation" | \
761 "const_is_losing" | \
763 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
766 * ) (echo "$progname: Usage error:"
767 echo " " "Unrecognized option: $arg"
768 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
773 *-*-*) configuration="$arg" ;;
775 *) (echo "$progname: Usage error:"
776 echo " " "Unrecognized argument: $arg"
777 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
783 test -n "$cpp" && CPP="$cpp"
784 test -n "$cppflags" && CPPFLAGS="$cppflags"
785 test -n "$libs" && LIBS="$libs"
786 test -n "$ldflags" && LDFLAGS="$ldflags"
788 eval set x "$quoted_arguments"; shift
790 test "$extra_verbose" = "yes" && verbose=yes
792 test -n "$with_x" && with_x11="$with_x"
794 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
795 test "$with_system_malloc" = "default" && with_system_malloc=yes
800 if test "$with_cde $with_tooltalk" = "yes no"; then
801 (echo "$progname: Usage error:"
802 echo " " "--with-cde requires --with-tooltalk"
803 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
804 elif test "$with_tooltalk" = "no" ; then with_cde=no
805 elif test "$with_cde" = "yes"; then with_tooltalk=yes
812 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
813 if test -f "$dir/src/lisp.h" -a \
814 -f "$dir/lisp/version.el" ; then
819 if test -z "$srcdir" ; then
820 (echo "$progname: Usage error:"
821 echo " " "Neither the current directory nor its parent seem to
822 contain the XEmacs sources. If you do not want to build XEmacs in its
823 source tree, you should run \`$progname' in the directory in which
824 you wish to build XEmacs, using the \`--srcdir' option to say where the
825 sources may be found."
826 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
831 if test ! -f "$srcdir/src/lisp.h" -o \
832 ! -f "$srcdir/lisp/version.el" ; then
833 (echo "$progname: Usage error:"
834 echo " " "The directory specified with the \`--srcdir' option,
835 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
836 either run the \`$progname' script at the top of the XEmacs source
837 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
838 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
843 if test -z "$configuration"; then
844 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
845 if test -z "$configuration"; then
846 (echo "$progname: Usage error:"
847 echo " " "XEmacs has not been ported to this host type.
848 Try explicitly specifying the CONFIGURATION when rerunning configure."
849 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
853 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
854 echo "configure:855: checking whether ln -s works" >&5
857 if ln -s X conftestdata 2>/dev/null
860 ac_cv_prog_LN_S="ln -s"
864 LN_S="$ac_cv_prog_LN_S"
865 if test "$ac_cv_prog_LN_S" = "ln -s"; then
866 echo "$ac_t""yes" 1>&6
868 echo "$ac_t""no" 1>&6
872 for dir in lisp etc man info tests; do
873 if test ! -d "$dir" ; then
874 echo Making symbolic link to "$srcdir/$dir"
875 ${LN_S} "$srcdir/$dir" "$dir"
880 absolute_pwd="`pwd`";
881 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
883 else blddir="$absolute_pwd"; if test -d "/net"; then
884 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
885 blddir=`echo "$blddir" | \
886 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
893 . ) srcdir="$blddir" ;;
894 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
895 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
896 srcdir=`echo "$srcdir" | \
897 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
901 if test `pwd` != `sh -c cd $srcdir && pwd` \
902 && test -f "$srcdir/src/config.h"; then
903 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
904 echo " as a build directory right now; it has been configured in its own"
905 echo " right. To configure in another directory as well, you MUST"
906 echo " use GNU make. If you do not have GNU make, then you must"
907 echo " now do \`make distclean' in $srcdir,"
908 echo " and then run $progname again.") >&2
909 extrasub='/^VPATH[ ]*=/c\
915 vpath %.in $(srcdir)'
918 . "$srcdir/version.sh" || exit 1;
919 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
920 : "${extra_verbose=$beta}"
921 version="${emacs_major_version}.${emacs_minor_version}"
922 { test "$extra_verbose" = "yes" && cat << EOF
923 Defining EMACS_MAJOR_VERSION = $emacs_major_version
925 cat >> confdefs.h <<EOF
926 #define EMACS_MAJOR_VERSION $emacs_major_version
930 { test "$extra_verbose" = "yes" && cat << EOF
931 Defining EMACS_MINOR_VERSION = $emacs_minor_version
933 cat >> confdefs.h <<EOF
934 #define EMACS_MINOR_VERSION $emacs_minor_version
938 if test -n "$emacs_beta_version" ; then
939 if test "$beta" = "yes"; then
940 version="${version}-b${emacs_beta_version}"
941 { test "$extra_verbose" = "yes" && cat << EOF
942 Defining EMACS_BETA_VERSION = $emacs_beta_version
944 cat >> confdefs.h <<EOF
945 #define EMACS_BETA_VERSION $emacs_beta_version
950 version="${version}.${emacs_beta_version}"
951 { test "$extra_verbose" = "yes" && cat << EOF
952 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
954 cat >> confdefs.h <<EOF
955 #define EMACS_PATCH_LEVEL $emacs_beta_version
961 { test "$extra_verbose" = "yes" && cat << EOF
962 Defining XEMACS_CODENAME = "$xemacs_codename"
964 cat >> confdefs.h <<EOF
965 #define XEMACS_CODENAME "$xemacs_codename"
969 { test "$extra_verbose" = "yes" && cat << EOF
970 Defining EMACS_VERSION = "$version"
972 cat >> confdefs.h <<EOF
973 #define EMACS_VERSION "$version"
978 if test "$with_infodock" = "yes"; then
979 if test ! -f ../../ID-INSTALL; then
980 echo "Cannot build InfoDock without InfoDock sources"
985 if test "$with_infodock" = "yes"; then
986 { test "$extra_verbose" = "yes" && cat << EOF
987 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
989 cat >> confdefs.h <<EOF
990 #define INFODOCK_MAJOR_VERSION $infodock_major_version
994 { test "$extra_verbose" = "yes" && cat << EOF
995 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
997 cat >> confdefs.h <<EOF
998 #define INFODOCK_MINOR_VERSION $infodock_minor_version
1002 { test "$extra_verbose" = "yes" && cat << EOF
1003 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
1005 cat >> confdefs.h <<EOF
1006 #define INFODOCK_BUILD_VERSION $infodock_build_version
1010 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
1012 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1017 { test "$extra_verbose" = "yes" && cat << EOF
1018 Defining EMACS_PROGNAME = "$PROGNAME"
1020 cat >> confdefs.h <<EOF
1021 #define EMACS_PROGNAME "$PROGNAME"
1026 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1027 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1028 Defining ERROR_CHECK_EXTENTS
1030 cat >> confdefs.h <<\EOF
1031 #define ERROR_CHECK_EXTENTS 1
1035 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1036 Defining ERROR_CHECK_TYPECHECK
1038 cat >> confdefs.h <<\EOF
1039 #define ERROR_CHECK_TYPECHECK 1
1043 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1044 Defining ERROR_CHECK_BUFPOS
1046 cat >> confdefs.h <<\EOF
1047 #define ERROR_CHECK_BUFPOS 1
1051 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1052 Defining ERROR_CHECK_GC
1054 cat >> confdefs.h <<\EOF
1055 #define ERROR_CHECK_GC 1
1059 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1060 Defining ERROR_CHECK_MALLOC
1062 cat >> confdefs.h <<\EOF
1063 #define ERROR_CHECK_MALLOC 1
1067 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1068 Defining ERROR_CHECK_BYTE_CODE
1070 cat >> confdefs.h <<\EOF
1071 #define ERROR_CHECK_BYTE_CODE 1
1075 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1076 Defining ERROR_CHECK_GLYPHS
1078 cat >> confdefs.h <<\EOF
1079 #define ERROR_CHECK_GLYPHS 1
1083 if test "${debug:=$beta}" = "yes"; then
1084 use_assertions=yes memory_usage_stats=yes
1085 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1086 echo " xemacs will be linked with \"debug.o\""
1088 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1089 echo " xemacs will be linked with \"tests.o\""
1091 { test "$extra_verbose" = "yes" && cat << \EOF
1092 Defining DEBUG_XEMACS
1094 cat >> confdefs.h <<\EOF
1095 #define DEBUG_XEMACS 1
1100 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1101 Defining USE_ASSERTIONS
1103 cat >> confdefs.h <<\EOF
1104 #define USE_ASSERTIONS 1
1108 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1109 Defining MEMORY_USAGE_STATS
1111 cat >> confdefs.h <<\EOF
1112 #define MEMORY_USAGE_STATS 1
1118 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1119 echo "configure:1120: checking "host system type"" >&5
1120 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1121 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1122 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1123 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1124 echo "$ac_t""$configuration" 1>&6
1132 case "$canonical" in
1133 sparc-*-* ) machine=sparc ;;
1134 alpha*-*-* ) machine=alpha ;;
1135 vax-*-* ) machine=vax ;;
1136 mips-dec-* ) machine=pmax ;;
1137 mips-sgi-irix6* ) machine=iris6d ;;
1138 mips-sgi-* ) machine=iris4d ;;
1139 mips*-linux ) machine=mips ;;
1140 romp-ibm-* ) machine=ibmrt ;;
1141 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1142 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1143 powerpc*-* ) machine=powerpc ;;
1144 hppa-*-* ) machine=hp800 ;;
1145 m88k-dg-* ) machine=aviion ;;
1146 m68*-sony-* ) machine=news ;;
1147 mips-sony-* ) machine=news-risc ;;
1148 clipper-* ) machine=clipper ;;
1149 arm* ) machine=arm ;;
1150 ns32k-* ) machine=ns32000 ;;
1153 case "$canonical" in
1154 *-*-linux* ) opsys=linux ;;
1155 *-*-netbsd* ) opsys=netbsd ;;
1156 *-*-openbsd* ) opsys=openbsd ;;
1157 *-*-nextstep* ) opsys=nextstep ;;
1158 *-*-vms ) opsys=vms ;;
1160 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1161 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1162 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1163 *-dec-osf3* ) opsys=decosf3-1 ;;
1164 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1166 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1167 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1168 *-*-ultrix* ) opsys=ultrix4-3 ;;
1170 *-*-aix3.1* ) opsys=aix3-1 ;;
1171 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1172 *-*-aix3* ) opsys=aix3-2 ;;
1173 *-*-aix4.0* ) opsys=aix4 ;;
1174 *-*-aix4.1* ) opsys=aix4-1 ;;
1175 *-*-aix[4-9]* ) opsys=aix4-2 ;;
1177 *-gnu* ) opsys=gnu ;;
1178 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1179 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1180 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1181 *-*-aos4.2 ) opsys=bsd4-2 ;;
1182 *-*-aos* ) opsys=bsd4-3 ;;
1183 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1184 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1185 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1186 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1187 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1188 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1189 if test -z "$NON_GNU_CPP" ; then
1190 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1191 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1195 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1196 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1199 case "$canonical" in
1202 case "$canonical" in
1203 i[3-9]86-*-netbsd*) machine=intel386 ;;
1204 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1205 machine=hp9000s300 ;;
1206 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1207 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1212 case "${canonical}" in
1213 i386-*-openbsd*) machine=intel386 ;;
1214 m68k-*-openbsd*) machine=hp9000s300 ;;
1215 mipsel-*-openbsd*) machine=pmax ;;
1219 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1220 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1222 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1223 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1225 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1227 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1229 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1231 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1233 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1235 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1236 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1237 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1240 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1242 *-convex-bsd* | *-convex-convexos* )
1243 machine=convex opsys=bsd4-3
1244 NON_GNU_CPP="cc -E -P"
1247 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1251 RANLIB="ranlib -c" ;;
1253 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1254 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1255 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1256 m88k-dg-dgux* ) opsys=dgux ;;
1258 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1259 m88k-motorola-sysv4* )
1260 machine=delta88k opsys=usg5-4-2
1262 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1264 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1265 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1267 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1269 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1270 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1271 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1274 case "`uname -r`" in
1275 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1276 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1278 NON_GNU_CPP="/lib/cpp"
1280 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1281 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1283 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1285 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1288 case "$canonical" in
1289 m68* ) machine=hp9000s300 ;;
1290 hppa* ) machine=hp800 ;;
1293 case "$canonical" in
1294 *-hp-hpux7* ) opsys=hpux ;;
1295 *-hp-hpux8* ) opsys=hpux8 ;;
1296 *-hp-hpux9* ) opsys=hpux9 ;;
1297 *-hp-hpux10* ) opsys=hpux10 ;;
1298 *-hp-hpux11* ) opsys=hpux11 ;;
1302 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1303 echo " xemacs will be linked with \"strcat.o\""
1306 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1307 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1308 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1310 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1313 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1314 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1316 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1317 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1318 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1319 romp-ibm-aos* ) opsys=bsd4-3 ;;
1320 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1321 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1323 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1324 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1326 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1328 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1330 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1332 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1334 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1336 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1338 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1340 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1342 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1344 mips-mips-usg* ) machine=mips4 ;;
1347 NON_GNU_CC="cc -systype bsd43"
1348 NON_GNU_CPP="cc -systype bsd43 -E"
1349 case "$canonical" in
1350 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1351 mips-mips-riscos5* ) opsys=riscos5 ;;
1354 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1355 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1357 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1359 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1361 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1362 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1364 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1366 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1368 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1370 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1372 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1373 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1375 mips-siemens-sysv* | mips-sni-sysv*)
1376 machine=mips-siemens opsys=usg5-4
1377 NON_GNU_CC=/usr/ccs/bin/cc
1378 NON_GNU_CPP=/usr/ccs/lib/cpp
1383 NON_GNU_CC=/usr/ccs/bin/cc
1384 NON_GNU_CPP=/usr/ccs/lib/cpp
1387 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1388 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1389 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1390 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1391 mips-sgi-irix6* ) opsys=irix6-0 ;;
1392 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1393 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1394 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1395 mips-sgi-irix* ) opsys=irix5-0 ;;
1397 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1398 *-sony-news* ) opsys=newsos5 ;;
1400 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1402 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1403 case "$canonical" in
1404 m68*-sunos1* ) machine=sun1 ;;
1405 m68*-sunos2* ) machine=sun2 ;;
1406 m68* ) machine=sun3 ;;
1407 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1408 i*86-*-* ) machine=intel386 ;;
1409 rs6000* ) machine=rs6000 ;;
1412 case "$canonical" in *-sunos5*)
1413 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1416 case "$canonical" in
1418 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1421 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1425 case "$canonical" in
1428 os_release_major=`uname -r | sed -e 's/^\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\1/'`
1429 os_release_minor=`uname -r | sed -e 's/^\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\2/'`
1430 case "$os_release_minor" in [0-9])
1431 os_release_minor="0${os_release_minor}";;
1433 os_release="${os_release_major}${os_release_minor}"
1434 { test "$extra_verbose" = "yes" && cat << EOF
1435 Defining OS_RELEASE = $os_release
1437 cat >> confdefs.h <<EOF
1438 #define OS_RELEASE $os_release
1443 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1444 *-sunos4.0* ) opsys=sunos4-0 ;;
1445 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1446 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1447 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1448 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1449 *-mach* ) opsys=mach-bsd4-3 ;;
1453 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1455 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1458 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1460 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1461 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1463 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1465 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1467 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1468 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1470 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1472 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1475 case "$canonical" in
1476 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1477 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1478 *-mach* ) opsys=mach-bsd4-3 ;;
1482 ns16k-whitechapel-* ) machine=mg1 ;;
1484 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1488 case "$canonical" in
1489 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1490 *-isc2.2* ) opsys=isc2-2 ;;
1491 *-isc4.0* ) opsys=isc4-0 ;;
1492 *-isc4.* ) opsys=isc4-1
1493 GCC_TEST_OPTIONS=-posix
1494 NON_GCC_TEST_OPTIONS=-Xp
1496 *-isc* ) opsys=isc3-0 ;;
1497 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1498 *-esix* ) opsys=esix ;;
1499 *-mach* ) opsys=mach-bsd4-3 ;;
1500 *-xenix* ) opsys=xenix ;;
1501 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1502 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1503 *-bsdi4* ) opsys=bsdos4 ;;
1504 *-bsdi3* ) opsys=bsdos3 ;;
1505 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1506 *-bsdi2* ) opsys=bsdos2 ;;
1507 *-sco3.2v5* ) opsys=sco5 ;;
1508 *-sysv5* ) opsys=sco7 ;;
1509 *-386bsd* ) opsys=386bsd ;;
1510 *-freebsd* ) opsys=freebsd ;;
1511 *-nextstep* ) opsys=nextstep ;;
1512 *-pc-cygwin* ) opsys=cygwin32 ;;
1513 *-pc-mingw* ) opsys=mingw32 ;
1514 test -z "$with_tty" && with_tty="no";;
1518 m68k-*-linux* ) machine=m68k opsys=linux ;;
1522 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1524 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
1526 if test -r "${srcdir}/src/m/${machine}.h"; then
1527 machfile="m/${machine}.h"
1528 { test "$extra_verbose" = "yes" && cat << EOF
1529 Defining config_machfile = "$machfile"
1531 cat >> confdefs.h <<EOF
1532 #define config_machfile "$machfile"
1537 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1538 echo "Using configure-time autodetection only."
1541 if test -r "${srcdir}/src/s/${opsys}.h"; then
1542 opsysfile="s/${opsys}.h"
1543 { test "$extra_verbose" = "yes" && cat << EOF
1544 Defining config_opsysfile = "$opsysfile"
1546 cat >> confdefs.h <<EOF
1547 #define config_opsysfile "$opsysfile"
1552 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1553 echo "Using configure-time autodetection only."
1557 if test -z "$pdump"; then
1559 linux* ) pdump=yes ;; darwin ) pdump=yes ;; *) pdump=no ;;
1563 if test -z "$dynamic"; then
1565 hpux* | sunos4* ) dynamic=no ;;
1569 if test "$dynamic" = "yes"; then
1571 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1572 decosf* ) ld_call_shared="-call_shared" ;;
1573 darwin ) { test "$extra_verbose" = "yes" && cat << \EOF
1574 Defining DLSYM_NEEDS_UNDERSCORE
1576 cat >> confdefs.h <<\EOF
1577 #define DLSYM_NEEDS_UNDERSCORE 1
1582 else case "$opsys" in
1584 echo "Static linking is not supported on Solaris 2."
1585 echo "Rerun configure without specifying --dynamic=no."
1587 linux ) ld_call_shared="-Bstatic" ;;
1588 decosf* ) ld_call_shared="-non_shared" ;;
1592 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1594 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1595 { test "$extra_verbose" = "yes" && cat << EOF
1596 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1598 cat >> confdefs.h <<EOF
1599 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1605 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1606 if test "$with_workshop $with_tooltalk" = "yes no"; then
1607 (echo "$progname: Usage error:"
1608 echo " " "--with-workshop requires --with-tooltalk"
1609 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1610 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1611 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1614 if test "$with_workshop" = "yes"; then
1615 { test "$extra_verbose" = "yes" && cat << \EOF
1618 cat >> confdefs.h <<\EOF
1623 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1624 echo " xemacs will be linked with \"sunpro.o\""
1628 if test "$with_clash_detection" != "no"; then
1629 { test "$extra_verbose" = "yes" && cat << \EOF
1630 Defining CLASH_DETECTION
1632 cat >> confdefs.h <<\EOF
1633 #define CLASH_DETECTION 1
1637 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1638 echo " xemacs will be linked with \"filelock.o\""
1642 test -n "$compiler" && CC="$compiler"
1643 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1646 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1647 if test "${CFLAGS-unset}" != unset
1648 then cflags_specified=yes;
1649 else cflags_specified=no;
1652 xe_save_CFLAGS="$CFLAGS"
1654 # Extract the first word of "gcc", so it can be a program name with args.
1655 set dummy gcc; 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=":"
1664 for ac_dir in $ac_dummy; do
1665 test -z "$ac_dir" && ac_dir=.
1666 if test -f $ac_dir/$ac_word; then
1674 if test -n "$CC"; then
1675 echo "$ac_t""$CC" 1>&6
1677 echo "$ac_t""no" 1>&6
1680 if test -z "$CC"; then
1681 # Extract the first word of "cc", so it can be a program name with args.
1682 set dummy cc; ac_word=$2
1683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1684 echo "configure:1685: checking for $ac_word" >&5
1686 if test -n "$CC"; then
1687 ac_cv_prog_CC="$CC" # Let the user override the test.
1689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1692 for ac_dir in $ac_dummy; do
1693 test -z "$ac_dir" && ac_dir=.
1694 if test -f $ac_dir/$ac_word; then
1695 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1696 ac_prog_rejected=yes
1704 if test $ac_prog_rejected = yes; then
1705 # We found a bogon in the path, so make sure we never use it.
1706 set dummy $ac_cv_prog_CC
1708 if test $# -gt 0; then
1709 # We chose a different compiler from the bogus one.
1710 # However, it has the same basename, so the bogon will be chosen
1711 # first if we set CC to just the basename; use the full file name.
1713 set dummy "$ac_dir/$ac_word" "$@"
1720 if test -n "$CC"; then
1721 echo "$ac_t""$CC" 1>&6
1723 echo "$ac_t""no" 1>&6
1726 if test -z "$CC"; then
1727 case "`uname -s`" in
1729 # Extract the first word of "cl", so it can be a program name with args.
1730 set dummy cl; ac_word=$2
1731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1732 echo "configure:1733: checking for $ac_word" >&5
1734 if test -n "$CC"; then
1735 ac_cv_prog_CC="$CC" # Let the user override the test.
1737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1739 for ac_dir in $ac_dummy; do
1740 test -z "$ac_dir" && ac_dir=.
1741 if test -f $ac_dir/$ac_word; then
1749 if test -n "$CC"; then
1750 echo "$ac_t""$CC" 1>&6
1752 echo "$ac_t""no" 1>&6
1757 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1760 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1761 echo "configure:1762: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1764 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1765 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1766 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'
1767 ac_cpp='$CPP '"$xe_cppflags"
1768 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1769 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1772 cat > conftest.$ac_ext << EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1779 if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1780 ac_cv_prog_cc_works=yes
1781 # If we can't run a trivial program, we are probably using a cross compiler.
1782 if (./conftest; exit) 2>/dev/null; then
1783 ac_cv_prog_cc_cross=no
1785 ac_cv_prog_cc_cross=yes
1788 echo "configure: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1790 ac_cv_prog_cc_works=no
1794 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1795 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1796 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'
1797 ac_cpp='$CPP '"$xe_cppflags"
1798 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1799 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1802 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1803 if test $ac_cv_prog_cc_works = no; then
1804 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1806 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1807 echo "configure:1808: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1808 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1809 cross_compiling=$ac_cv_prog_cc_cross
1811 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1812 echo "configure:1813: checking whether we are using GNU C" >&5
1814 cat > conftest.c <<EOF
1819 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1825 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1827 if test $ac_cv_prog_gcc = yes; then
1833 ac_test_CFLAGS="${CFLAGS+set}"
1834 ac_save_CFLAGS="$CFLAGS"
1836 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1837 echo "configure:1838: checking whether ${CC-cc} accepts -g" >&5
1839 echo 'void f(){}' > conftest.c
1840 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1848 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1849 if test "$ac_test_CFLAGS" = set; then
1850 CFLAGS="$ac_save_CFLAGS"
1851 elif test $ac_cv_prog_cc_g = yes; then
1852 if test "$GCC" = yes; then
1858 if test "$GCC" = yes; then
1865 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1867 # Extract the first word of "gcc", so it can be a program name with args.
1868 set dummy gcc; 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=":"
1877 for ac_dir in $ac_dummy; do
1878 test -z "$ac_dir" && ac_dir=.
1879 if test -f $ac_dir/$ac_word; then
1887 if test -n "$CC"; then
1888 echo "$ac_t""$CC" 1>&6
1890 echo "$ac_t""no" 1>&6
1893 if test -z "$CC"; then
1894 # Extract the first word of "cc", so it can be a program name with args.
1895 set dummy cc; ac_word=$2
1896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1897 echo "configure:1898: checking for $ac_word" >&5
1899 if test -n "$CC"; then
1900 ac_cv_prog_CC="$CC" # Let the user override the test.
1902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1905 for ac_dir in $ac_dummy; do
1906 test -z "$ac_dir" && ac_dir=.
1907 if test -f $ac_dir/$ac_word; then
1908 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1909 ac_prog_rejected=yes
1917 if test $ac_prog_rejected = yes; then
1918 # We found a bogon in the path, so make sure we never use it.
1919 set dummy $ac_cv_prog_CC
1921 if test $# -gt 0; then
1922 # We chose a different compiler from the bogus one.
1923 # However, it has the same basename, so the bogon will be chosen
1924 # first if we set CC to just the basename; use the full file name.
1926 set dummy "$ac_dir/$ac_word" "$@"
1933 if test -n "$CC"; then
1934 echo "$ac_t""$CC" 1>&6
1936 echo "$ac_t""no" 1>&6
1939 if test -z "$CC"; then
1940 case "`uname -s`" in
1942 # Extract the first word of "cl", so it can be a program name with args.
1943 set dummy cl; ac_word=$2
1944 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1945 echo "configure:1946: checking for $ac_word" >&5
1947 if test -n "$CC"; then
1948 ac_cv_prog_CC="$CC" # Let the user override the test.
1950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1952 for ac_dir in $ac_dummy; do
1953 test -z "$ac_dir" && ac_dir=.
1954 if test -f $ac_dir/$ac_word; then
1962 if test -n "$CC"; then
1963 echo "$ac_t""$CC" 1>&6
1965 echo "$ac_t""no" 1>&6
1970 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1973 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1974 echo "configure:1975: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1977 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1978 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1979 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'
1980 ac_cpp='$CPP '"$xe_cppflags"
1981 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1982 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1985 cat > conftest.$ac_ext << EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1992 if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1993 ac_cv_prog_cc_works=yes
1994 # If we can't run a trivial program, we are probably using a cross compiler.
1995 if (./conftest; exit) 2>/dev/null; then
1996 ac_cv_prog_cc_cross=no
1998 ac_cv_prog_cc_cross=yes
2001 echo "configure: failed program was:" >&5
2002 cat conftest.$ac_ext >&5
2003 ac_cv_prog_cc_works=no
2007 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2008 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2009 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'
2010 ac_cpp='$CPP '"$xe_cppflags"
2011 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2012 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2015 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2016 if test $ac_cv_prog_cc_works = no; then
2017 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2019 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2020 echo "configure:2021: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2021 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2022 cross_compiling=$ac_cv_prog_cc_cross
2024 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2025 echo "configure:2026: checking whether we are using GNU C" >&5
2027 cat > conftest.c <<EOF
2032 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2038 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2040 if test $ac_cv_prog_gcc = yes; then
2046 ac_test_CFLAGS="${CFLAGS+set}"
2047 ac_save_CFLAGS="$CFLAGS"
2049 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2050 echo "configure:2051: checking whether ${CC-cc} accepts -g" >&5
2052 echo 'void f(){}' > conftest.c
2053 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2061 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2062 if test "$ac_test_CFLAGS" = set; then
2063 CFLAGS="$ac_save_CFLAGS"
2064 elif test $ac_cv_prog_cc_g = yes; then
2065 if test "$GCC" = yes; then
2071 if test "$GCC" = yes; then
2078 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2080 # Extract the first word of "gcc", so it can be a program name with args.
2081 set dummy gcc; 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=":"
2090 for ac_dir in $ac_dummy; do
2091 test -z "$ac_dir" && ac_dir=.
2092 if test -f $ac_dir/$ac_word; then
2100 if test -n "$CC"; then
2101 echo "$ac_t""$CC" 1>&6
2103 echo "$ac_t""no" 1>&6
2106 if test -z "$CC"; then
2107 # Extract the first word of "cc", so it can be a program name with args.
2108 set dummy cc; ac_word=$2
2109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2110 echo "configure:2111: checking for $ac_word" >&5
2112 if test -n "$CC"; then
2113 ac_cv_prog_CC="$CC" # Let the user override the test.
2115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2118 for ac_dir in $ac_dummy; do
2119 test -z "$ac_dir" && ac_dir=.
2120 if test -f $ac_dir/$ac_word; then
2121 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2122 ac_prog_rejected=yes
2130 if test $ac_prog_rejected = yes; then
2131 # We found a bogon in the path, so make sure we never use it.
2132 set dummy $ac_cv_prog_CC
2134 if test $# -gt 0; then
2135 # We chose a different compiler from the bogus one.
2136 # However, it has the same basename, so the bogon will be chosen
2137 # first if we set CC to just the basename; use the full file name.
2139 set dummy "$ac_dir/$ac_word" "$@"
2146 if test -n "$CC"; then
2147 echo "$ac_t""$CC" 1>&6
2149 echo "$ac_t""no" 1>&6
2152 if test -z "$CC"; then
2153 case "`uname -s`" in
2155 # Extract the first word of "cl", so it can be a program name with args.
2156 set dummy cl; ac_word=$2
2157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2158 echo "configure:2159: checking for $ac_word" >&5
2160 if test -n "$CC"; then
2161 ac_cv_prog_CC="$CC" # Let the user override the test.
2163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2165 for ac_dir in $ac_dummy; do
2166 test -z "$ac_dir" && ac_dir=.
2167 if test -f $ac_dir/$ac_word; then
2175 if test -n "$CC"; then
2176 echo "$ac_t""$CC" 1>&6
2178 echo "$ac_t""no" 1>&6
2183 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2186 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2187 echo "configure:2188: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2190 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2191 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2192 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'
2193 ac_cpp='$CPP '"$xe_cppflags"
2194 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2195 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2198 cat > conftest.$ac_ext << EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2205 if { (eval echo configure:2206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2206 ac_cv_prog_cc_works=yes
2207 # If we can't run a trivial program, we are probably using a cross compiler.
2208 if (./conftest; exit) 2>/dev/null; then
2209 ac_cv_prog_cc_cross=no
2211 ac_cv_prog_cc_cross=yes
2214 echo "configure: failed program was:" >&5
2215 cat conftest.$ac_ext >&5
2216 ac_cv_prog_cc_works=no
2220 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2221 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2222 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'
2223 ac_cpp='$CPP '"$xe_cppflags"
2224 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2225 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2228 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2229 if test $ac_cv_prog_cc_works = no; then
2230 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2232 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2233 echo "configure:2234: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2234 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2235 cross_compiling=$ac_cv_prog_cc_cross
2237 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2238 echo "configure:2239: checking whether we are using GNU C" >&5
2240 cat > conftest.c <<EOF
2245 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2251 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2253 if test $ac_cv_prog_gcc = yes; then
2259 ac_test_CFLAGS="${CFLAGS+set}"
2260 ac_save_CFLAGS="$CFLAGS"
2262 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2263 echo "configure:2264: checking whether ${CC-cc} accepts -g" >&5
2265 echo 'void f(){}' > conftest.c
2266 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2274 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2275 if test "$ac_test_CFLAGS" = set; then
2276 CFLAGS="$ac_save_CFLAGS"
2277 elif test $ac_cv_prog_cc_g = yes; then
2278 if test "$GCC" = yes; then
2284 if test "$GCC" = yes; then
2292 CFLAGS="$xe_save_CFLAGS"
2295 test -n "$CPP" -a -d "$CPP" && CPP=
2297 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2299 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2300 echo "configure:2301: checking how to run the C preprocessor" >&5
2301 # On Suns, sometimes $CPP names a directory.
2302 if test -n "$CPP" && test -d "$CPP"; then
2305 if test -z "$CPP"; then
2307 # This must be in double quotes, not single quotes, because CPP may get
2308 # substituted into the Makefile and "${CC-cc}" will confuse make.
2310 # On the NeXT, cc -E runs the code through the compiler's parser,
2311 # not just through cpp.
2312 cat > conftest.$ac_ext <<EOF
2313 #line 2314 "configure"
2314 #include "confdefs.h"
2318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2319 { (eval echo configure:2320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2321 if test -z "$ac_err"; then
2325 echo "configure: failed program was:" >&5
2326 cat conftest.$ac_ext >&5
2328 CPP="${CC-cc} -E -traditional-cpp"
2329 cat > conftest.$ac_ext <<EOF
2330 #line 2331 "configure"
2331 #include "confdefs.h"
2335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2336 { (eval echo configure:2337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2338 if test -z "$ac_err"; then
2342 echo "configure: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2345 CPP="${CC-cc} -nologo -E"
2346 cat > conftest.$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2353 { (eval echo configure:2354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2355 if test -z "$ac_err"; then
2359 echo "configure: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2369 ac_cv_prog_CPP="$CPP"
2370 CPP="$ac_cv_prog_CPP"
2372 ac_cv_prog_CPP="$CPP"
2374 echo "$ac_t""$CPP" 1>&6
2378 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2379 echo "configure:2380: checking for AIX" >&5
2380 cat > conftest.$ac_ext <<EOF
2381 #line 2382 "configure"
2382 #include "confdefs.h"
2388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2389 egrep "yes" >/dev/null 2>&1; then
2391 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2392 Defining _ALL_SOURCE
2394 cat >> confdefs.h <<\EOF
2395 #define _ALL_SOURCE 1
2401 echo "$ac_t""no" 1>&6
2407 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2408 echo "configure:2409: checking for GNU libc" >&5
2409 cat > conftest.$ac_ext <<EOF
2410 #line 2411 "configure"
2411 #include "confdefs.h"
2412 #include <features.h>
2415 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2416 #error Not a GNU libc system :-(
2417 ******* ======= ******** &&&&&&&&
2422 if { (eval echo configure:2423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2426 echo "configure: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2432 echo "$ac_t""$have_glibc" 1>&6
2433 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2434 Defining _GNU_SOURCE
2436 cat >> confdefs.h <<\EOF
2437 #define _GNU_SOURCE 1
2444 { test "$extra_verbose" = "yes" && cat << \EOF
2445 Defining __EXTENSIONS__
2447 cat >> confdefs.h <<\EOF
2448 #define __EXTENSIONS__ 1
2452 if test "$os_release" -ge 505; then
2453 { test "$extra_verbose" = "yes" && cat << \EOF
2454 Defining _XOPEN_SOURCE = 500
2456 cat >> confdefs.h <<\EOF
2457 #define _XOPEN_SOURCE 500
2461 { test "$extra_verbose" = "yes" && cat << \EOF
2462 Defining _XOPEN_SOURCE_EXTENDED
2464 cat >> confdefs.h <<\EOF
2465 #define _XOPEN_SOURCE_EXTENDED 1
2471 { test "$extra_verbose" = "yes" && cat << \EOF
2472 Defining _POSIX_C_SOURCE = 199506L
2474 cat >> confdefs.h <<\EOF
2475 #define _POSIX_C_SOURCE 199506L
2479 { test "$extra_verbose" = "yes" && cat << \EOF
2480 Defining _XOPEN_SOURCE = 500
2482 cat >> confdefs.h <<\EOF
2483 #define _XOPEN_SOURCE 500
2487 { test "$extra_verbose" = "yes" && cat << \EOF
2488 Defining _XOPEN_SOURCE_EXTENDED
2490 cat >> confdefs.h <<\EOF
2491 #define _XOPEN_SOURCE_EXTENDED 1
2498 cat > conftest.$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2502 #if defined __SUNPRO_C
2504 #elif defined __DECC
2506 #elif defined __USLC__ && defined __SCO_VERSION__
2508 #elif defined __INTEL_COMPILER
2515 if { (eval echo configure:2516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2523 case "$conftest_rc" in
2524 11) echo "You appear to be using the SunPro C compiler." ; __SUNPRO_C=yes ;;
2525 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2526 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2527 14) echo "You appear to be using the Intel C++ compiler."; __ICC=yes
2536 echo "Extracting information from the machine- and system-dependent headers..."
2538 tempcname="conftest.c"
2542 cat > $tempcname < confdefs.h
2543 cat >> $tempcname <<EOF
2545 #define C_SWITCH_SITE
2546 #define C_SWITCH_X_SITE
2547 #define LD_SWITCH_SITE
2548 #define LD_SWITCH_X_SITE
2549 #define LD_SWITCH_X_SITE_AUX
2550 #define OS_RELEASE $os_release
2552 #ifdef config_opsysfile
2553 #include "$srcdir/src/$opsysfile"
2556 #ifdef config_machfile
2557 #include "$srcdir/src/$machfile"
2560 #ifndef LIBS_MACHINE
2561 #define LIBS_MACHINE
2563 configure___ libs_machine=LIBS_MACHINE
2568 configure___ libs_system=LIBS_SYSTEM
2570 #ifndef LIBS_TERMCAP
2571 #define LIBS_TERMCAP
2573 configure___ libs_termcap=LIBS_TERMCAP
2575 #ifndef LIB_STANDARD
2576 #define LIB_STANDARD
2578 configure___ libs_standard=LIB_STANDARD
2581 #ifndef OBJECTS_MACHINE
2582 #define OBJECTS_MACHINE
2584 configure___ objects_machine=OBJECTS_MACHINE
2586 #ifndef OBJECTS_SYSTEM
2587 #define OBJECTS_SYSTEM
2589 configure___ objects_system=OBJECTS_SYSTEM
2592 #ifndef C_SWITCH_MACHINE
2593 #define C_SWITCH_MACHINE
2595 configure___ c_switch_machine=C_SWITCH_MACHINE
2597 #ifndef C_SWITCH_SYSTEM
2598 #define C_SWITCH_SYSTEM
2600 configure___ c_switch_system=C_SWITCH_SYSTEM
2603 #ifndef LD_SWITCH_MACHINE
2604 #define LD_SWITCH_MACHINE
2606 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2608 #ifndef LD_SWITCH_SYSTEM
2609 #define LD_SWITCH_SYSTEM
2611 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2615 #define UNEXEC "unexec.o"
2617 configure___ unexec=UNEXEC
2620 #ifndef LD_SWITCH_SHARED
2621 #define LD_SWITCH_SHARED "-c"
2623 configure___ ld_switch_shared=LD_SWITCH_SHARED
2626 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2627 configure___ ordinary_ld=ORDINARY_LD
2629 #ifdef ORDINARY_LINK
2630 #define LD ORDINARY_LD
2631 #else /* no ORDINARY LINK */
2632 #ifdef COFF_ENCAPSULATE
2633 #define LD "\$(CC) -nostdlib"
2634 #else /* not COFF_ENCAPSULATE */
2637 #else /* ! defined (LINKER) */
2639 #endif /* ! defined (LINKER) */
2640 #endif /* ! defined (COFF_ENCAPSULATE) */
2641 #endif /* not ORDINARY_LINK */
2647 configure___ lib_gcc=LIB_GCC
2649 #ifndef LD_TEXT_START_ADDR
2650 #define LD_TEXT_START_ADDR
2652 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2655 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2657 #ifdef COFF_ENCAPSULATE
2658 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2659 #else /* ! defined (COFF_ENCAPSULATE) */
2660 #define START_FILES "pre-crt0.o /lib/crt0.o"
2661 #endif /* ! defined (COFF_ENCAPSULATE) */
2662 #else /* ! defined (NO_REMAP) */
2663 #define START_FILES "ecrt0.o"
2664 #endif /* ! defined (NO_REMAP) */
2665 #endif /* no ORDINARY_LINK */
2669 configure___ start_files=START_FILES
2671 #ifdef ORDINARY_LINK
2672 configure___ ordinary_link=yes
2674 configure___ ordinary_link=no
2677 #ifdef SYSTEM_MALLOC
2678 configure___ system_malloc=yes
2680 configure___ system_malloc=no
2684 configure___ have_terminfo=yes
2686 configure___ have_terminfo=no
2689 #ifdef MAIL_USE_FLOCK
2690 configure___ mail_use_flock=yes
2692 configure___ mail_use_flock=no
2695 #ifdef MAIL_USE_LOCKF
2696 configure___ mail_use_lockf=yes
2698 configure___ mail_use_lockf=no
2701 #ifdef MAIL_USE_LOCKING
2702 configure___ mail_use_locking=yes
2704 configure___ mail_use_locking=no
2707 #ifdef HAVE_WIN32_PROCESSES
2708 configure___ win32_processes=yes
2710 configure___ win32_processes=no
2715 CPP=`eval "echo $CPP $CPPFLAGS"`
2716 eval `$CPP -Isrc $tempcname \
2717 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2721 if test "$pdump" = "yes"; then
2730 test "$extra_verbose" = "yes" && \
2731 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 ""
2733 case "$opsys" in mingw* | cygwin*)
2734 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2735 cygwin_include=`eval "dirname $cygwin_include"` ;
2736 cygwin_include="-I$cygwin_include/../include" ;
2737 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2738 case "$opsys" in mingw*)
2739 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2744 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2747 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2749 if test "$__USLC__" = yes; then
2750 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2751 echo "configure:2752: checking for whether the -Kalloca compiler flag is needed" >&5
2753 cat > conftest.$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2758 void *x = alloca(4);
2761 if { (eval echo configure:2762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2765 echo "configure: failed program was:" >&5
2766 cat conftest.$ac_ext >&5
2769 xe_save_c_switch_system="$c_switch_system"
2770 c_switch_system="$c_switch_system -Kalloca"
2771 cat > conftest.$ac_ext <<EOF
2772 #line 2773 "configure"
2773 #include "confdefs.h"
2776 void *x = alloca(4);
2779 if { (eval echo configure:2780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2783 echo "configure: failed program was:" >&5
2784 cat conftest.$ac_ext >&5
2787 c_switch_system="$xe_save_c_switch_system"
2790 echo "$ac_t""$need_kalloca" 1>&6
2791 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
2794 if test "$cflags_specified" = "no"; then
2795 if test "$GCC" = "yes"; then
2796 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes"
2797 CFLAGS="$CFLAGS -Wsign-compare"
2798 case "`gcc -v --help 2>&1`" in
2799 *-fstrict-aliasing* ) CFLAGS="$CFLAGS -fno-strict-aliasing" ;;
2801 if test "$xemacs_compiler" != "g++"; then
2802 CFLAGS="$CFLAGS -Wshadow"
2804 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2805 elif test "$__SUNPRO_C" = "yes"; then
2807 sol2 ) CFLAGS="-v -xO4" ;;
2808 sunos4* ) CFLAGS="-xO2";;
2810 elif test "$__DECC" = "yes"; then
2812 elif test "$CC" = "xlc"; then
2813 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2814 elif test "$__ICC" = "yes"; then
2815 CFLAGS="-g -O3 -Ob2 -Wall -W1"
2820 if test "$GCC" = "yes"; then
2821 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2822 echo "configure:2823: checking for buggy gcc versions" >&5
2823 GCC_VERSION=`$CC --version`
2824 case `uname -s`:`uname -m`:$GCC_VERSION in
2825 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2829 *-fno-schedule-insns*) ;;
2831 echo "$ac_t""yes" 1>&6
2832 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2833 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2834 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2840 Linux:alpha:egcs-2.91.*)
2841 echo "$ac_t""yes" 1>&6
2842 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2843 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2844 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2849 case "$GCC_VERSION" in
2852 *-fno-strength-reduce*) ;;
2854 echo "$ac_t""yes" 1>&6
2855 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2856 echo "configure: warning: -fno-strength-reduce." 1>&2
2857 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2863 *-fno-caller-saves*) ;;
2865 echo "$ac_t""yes" 1>&6
2866 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2867 echo "configure: warning: -fno-caller-saves." 1>&2
2868 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2875 echo "$ac_t""no" 1>&6
2878 if test "$pdump" != "yes"; then
2879 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
2880 echo "configure:2881: checking for \"-z nocombreloc\" linker flag" >&5
2881 case "`ld --help 2>&1`" in
2882 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
2883 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
2884 *) echo "$ac_t""no" 1>&6 ;;
2890 if test "$GCC" = "yes"; then
2891 set x $ld_switch_system; shift; ld_switch_system=""
2892 while test -n "$1"; do
2894 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2895 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2897 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2903 if test "$GCC" = "yes"; then
2904 set x $ld_switch_machine; shift; ld_switch_machine=""
2905 while test -n "$1"; do
2907 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2908 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2910 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2916 if test "$GCC" = "yes"; then
2917 set x $ld_switch_site; shift; ld_switch_site=""
2918 while test -n "$1"; do
2920 -L | -l | -u ) ld_switch_site="$ld_switch_site $1 $2"; shift ;;
2921 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_site="$ld_switch_site $1" ;;
2923 * ) ld_switch_site="$ld_switch_site -Xlinker $1" ;;
2929 if test "$GCC" = "yes"; then
2930 set x $LDFLAGS; shift; LDFLAGS=""
2931 while test -n "$1"; do
2933 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2934 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2936 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2942 if test "$GCC" = "yes"; then
2943 set x $ld_call_shared; shift; ld_call_shared=""
2944 while test -n "$1"; do
2946 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2947 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2949 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2955 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2956 echo " xemacs will be linked with \"$objects_machine\""
2958 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2959 echo " xemacs will be linked with \"$objects_system\""
2961 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2962 echo " xemacs will be linked with \"$unexec\""
2964 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2965 echo " xemacs will be linked with \"dumper.o\""
2968 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2969 echo "configure:2970: checking for dynodump" >&5
2970 if test "$unexec" != "unexsol2.o"; then
2971 echo "$ac_t""no" 1>&6
2973 echo "$ac_t""yes" 1>&6
2974 { test "$extra_verbose" = "yes" && cat << \EOF
2977 cat >> confdefs.h <<\EOF
2982 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2983 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2985 sparc ) dynodump_arch=sparc ;;
2986 *86* ) dynodump_arch=i386 ;;
2987 powerpc ) dynodump_arch=ppc ;;
2989 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
2993 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2995 if test "$unexec" = "unexaix.o"; then
2996 if test "$dynamic" = "no"; then
2997 start_flags="-Wl,-bnso,-bnodelcsect"
2998 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2999 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
3000 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
3002 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
3003 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
3006 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
3007 echo "configure:3008: checking for terminateAndUnload in -lC" >&5
3008 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
3010 xe_check_libs=" -lC "
3011 cat > conftest.$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3014 /* Override any gcc2 internal prototype to avoid an error. */
3015 /* We use char because int might match the return type of a gcc2
3016 builtin and then its argument prototype would still apply. */
3017 char terminateAndUnload();
3020 terminateAndUnload()
3023 if { (eval echo configure:3024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3025 eval "ac_cv_lib_$ac_lib_var=yes"
3027 echo "configure: failed program was:" >&5
3028 cat conftest.$ac_ext >&5
3030 eval "ac_cv_lib_$ac_lib_var=no"
3035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
3036 echo "$ac_t""yes" 1>&6
3037 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
3039 echo "$ac_t""no" 1>&6
3044 elif test -n "$ld_text_start_addr"; then
3045 start_flags="-T $ld_text_start_addr -e __start"
3051 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
3052 test -z "$linker" && linker='$(CC) -nostdlib'
3053 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
3055 test "$GCC" != "yes" && lib_gcc=
3061 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3062 if test -n "$site_libraries"; then
3063 for arg in $site_libraries; do
3066 * ) test -d "$arg" || \
3067 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3070 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3074 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3075 if test -n "$site_includes"; then
3076 for arg in $site_includes; do
3079 * ) test -d "$arg" || \
3080 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3083 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3087 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3088 if test -n "$site_prefixes"; then
3089 for dir in $site_prefixes; do
3090 lib_dir="${dir}/lib"
3091 inc_dir="${dir}/include"
3092 if test ! -d "$dir"; then
3093 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3094 elif test ! -d "$lib_dir"; then
3095 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3097 if test -d "$inc_dir"; then
3098 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
3100 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
3106 for dir in "/usr/ccs/lib"; do
3107 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
3110 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3111 if test -n "$site_runtime_libraries"; then
3112 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3120 if test -n "$add_runtime_path"; then :;
3121 elif test "$dynamic" = "no"; then add_runtime_path=no
3122 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3123 else case "$opsys" in
3124 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3125 * ) add_runtime_path=no ;;
3129 if test "$add_runtime_path" = "yes"; then
3130 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3131 echo "configure:3132: checking "for runtime libraries flag"" >&5
3133 sol2 ) dash_r="-R" ;;
3134 decosf* | linux* | irix*) dash_r="-rpath " ;;
3137 for try_dash_r in "-R" "-R " "-rpath "; do
3138 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3140 if test "$GCC" = "yes"; then
3141 set x $xe_check_libs; shift; xe_check_libs=""
3142 while test -n "$1"; do
3144 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3145 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3147 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3152 cat > conftest.$ac_ext <<EOF
3153 #line 3154 "configure"
3154 #include "confdefs.h"
3160 if { (eval echo configure:3161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3162 dash_r="$try_dash_r"
3164 echo "configure: failed program was:" >&5
3165 cat conftest.$ac_ext >&5
3169 test -n "$dash_r" && break
3172 if test -n "$dash_r";
3173 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3174 else echo "$ac_t""NONE" 1>&6
3178 xe_add_unique_runpath_dir='
3180 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3182 if test "$xe_add_p" = "yes"; then
3183 test -n "$runpath" && runpath="${runpath}:"
3184 runpath="${runpath}${xe_runpath_dir}"
3185 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3191 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3192 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3193 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3195 runpath="" runpath_dirs=""
3196 if test -n "$LD_RUN_PATH"; then
3197 runpath="$LD_RUN_PATH"
3198 elif test "$GCC" = "yes"; then
3199 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3200 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3201 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3202 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3203 case "$arg" in P,* | -L* | -R* )
3204 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3206 xe_runpath_dir="$dir"
3207 test "$xe_runpath_dir" != "/lib" -a \
3208 "$xe_runpath_dir" != "/usr/lib" -a \
3209 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3210 eval "$xe_add_unique_runpath_dir"
3215 ld_switch_run="$ld_switch_run_save"
3218 for arg in $ld_switch_site $ld_switch_x_site; do
3219 case "$arg" in -L*) {
3220 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3221 test "$xe_runpath_dir" != "/lib" -a \
3222 "$xe_runpath_dir" != "/usr/lib" -a \
3223 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3224 eval "$xe_add_unique_runpath_dir"
3227 if test "$opsys $need_motif" = "sol2 yes"; then
3228 xe_runpath_dir="/opt/SUNWdt/lib";
3229 eval "$xe_add_unique_runpath_dir";
3232 if test -n "$runpath"; then
3233 ld_switch_run="${dash_r}${runpath}"
3235 if test "$GCC" = "yes"; then
3236 set x $ld_switch_run; shift; ld_switch_run=""
3237 while test -n "$1"; do
3239 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3240 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3242 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3247 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3254 if test "$with_dlmalloc" != "no"; then
3259 after_morecore_hook_exists=yes
3260 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3261 echo "configure:3262: checking for malloc_set_state" >&5
3263 cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3266 /* System header to define __stub macros and hopefully few prototypes,
3267 which can conflict with char malloc_set_state(); below. */
3269 /* Override any gcc2 internal prototype to avoid an error. */
3270 /* We use char because int might match the return type of a gcc2
3271 builtin and then its argument prototype would still apply. */
3272 char malloc_set_state();
3276 /* The GNU C library defines this for functions which it implements
3277 to always fail with ENOSYS. Some functions are actually named
3278 something starting with __ and the normal name is an alias. */
3279 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3287 if { (eval echo configure:3288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3289 eval "ac_cv_func_malloc_set_state=yes"
3291 echo "configure: failed program was:" >&5
3292 cat conftest.$ac_ext >&5
3294 eval "ac_cv_func_malloc_set_state=no"
3298 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3299 echo "$ac_t""yes" 1>&6
3302 echo "$ac_t""no" 1>&6
3306 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3307 echo "configure:3308: checking whether __after_morecore_hook exists" >&5
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3311 extern void (* __after_morecore_hook)();
3313 __after_morecore_hook = 0
3316 if { (eval echo configure:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3318 echo "$ac_t""yes" 1>&6
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3323 echo "$ac_t""no" 1>&6
3324 after_morecore_hook_exists=no
3327 if test "$system_malloc" = "yes" ; then
3330 - The GNU allocators don't work with this system configuration."
3331 elif test "$with_system_malloc" = "yes" ; then
3334 - User chose not to use GNU allocators."
3335 elif test "$with_debug_malloc" = "yes" ; then
3338 - User chose to use Debugging Malloc."
3341 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3343 - Using Doug Lea's new malloc from the GNU C Library."
3344 { test "$extra_verbose" = "yes" && cat << \EOF
3345 Defining DOUG_LEA_MALLOC
3347 cat >> confdefs.h <<\EOF
3348 #define DOUG_LEA_MALLOC 1
3352 if test "$after_morecore_hook_exists" = "no" ; then
3354 - Using Doug Lea's new malloc from the Linux C Library."
3355 { test "$extra_verbose" = "yes" && cat << \EOF
3356 Defining _NO_MALLOC_WARNING_
3358 cat >> confdefs.h <<\EOF
3359 #define _NO_MALLOC_WARNING_ 1
3369 # Extract the first word of "ranlib", so it can be a program name with args.
3370 set dummy ranlib; ac_word=$2
3371 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3372 echo "configure:3373: checking for $ac_word" >&5
3374 if test -n "$RANLIB"; then
3375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3379 for ac_dir in $ac_dummy; do
3380 test -z "$ac_dir" && ac_dir=.
3381 if test -f $ac_dir/$ac_word; then
3382 ac_cv_prog_RANLIB="ranlib"
3387 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3389 RANLIB="$ac_cv_prog_RANLIB"
3390 if test -n "$RANLIB"; then
3391 echo "$ac_t""$RANLIB" 1>&6
3393 echo "$ac_t""no" 1>&6
3397 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3398 if test -f $ac_dir/install-sh; then
3400 ac_install_sh="$ac_aux_dir/install-sh -c"
3402 elif test -f $ac_dir/install.sh; then
3404 ac_install_sh="$ac_aux_dir/install.sh -c"
3408 if test -z "$ac_aux_dir"; then
3409 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3411 ac_config_guess=$ac_aux_dir/config.guess
3412 ac_config_sub=$ac_aux_dir/config.sub
3413 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3415 # Find a good install program. We prefer a C program (faster),
3416 # so one script is as good as another. But avoid the broken or
3417 # incompatible versions:
3418 # SysV /etc/install, /usr/sbin/install
3419 # SunOS /usr/etc/install
3420 # IRIX /sbin/install
3422 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3423 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3424 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3425 # ./install, which can be erroneously created by make from ./install.sh.
3426 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3427 echo "configure:3428: checking for a BSD compatible install" >&5
3428 if test -z "$INSTALL"; then
3430 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3431 for ac_dir in $PATH; do
3432 # Account for people who put trailing slashes in PATH elements.
3434 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3436 # OSF1 and SCO ODT 3.0 have their own names for install.
3437 # Don't use installbsd from OSF since it installs stuff as root
3439 for ac_prog in ginstall scoinst install; do
3440 if test -f $ac_dir/$ac_prog; then
3441 if test $ac_prog = install &&
3442 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3443 # AIX install. It has an incompatible calling convention.
3446 ac_cv_path_install="$ac_dir/$ac_prog -c"
3456 if test "${ac_cv_path_install+set}" = set; then
3457 INSTALL="$ac_cv_path_install"
3459 # As a last resort, use the slow shell script. We don't cache a
3460 # path for INSTALL within a source directory, because that will
3461 # break other packages using the cache if that directory is
3462 # removed, or if the path is relative.
3463 INSTALL="$ac_install_sh"
3466 echo "$ac_t""$INSTALL" 1>&6
3468 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3469 # It thinks the first close brace ends the variable substitution.
3470 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3472 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3474 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3476 for ac_prog in 'bison -y' byacc
3478 # Extract the first word of "$ac_prog", so it can be a program name with args.
3479 set dummy $ac_prog; ac_word=$2
3480 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3481 echo "configure:3482: checking for $ac_word" >&5
3483 if test -n "$YACC"; then
3484 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3488 for ac_dir in $ac_dummy; do
3489 test -z "$ac_dir" && ac_dir=.
3490 if test -f $ac_dir/$ac_word; then
3491 ac_cv_prog_YACC="$ac_prog"
3497 YACC="$ac_cv_prog_YACC"
3498 if test -n "$YACC"; then
3499 echo "$ac_t""$YACC" 1>&6
3501 echo "$ac_t""no" 1>&6
3504 test -n "$YACC" && break
3506 test -n "$YACC" || YACC="yacc"
3509 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
3511 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3512 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3513 echo "configure:3514: checking for $ac_hdr" >&5
3515 cat > conftest.$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3521 { (eval echo configure:3522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3523 if test -z "$ac_err"; then
3525 eval "ac_cv_header_$ac_safe=yes"
3528 echo "configure: failed program was:" >&5
3529 cat conftest.$ac_ext >&5
3531 eval "ac_cv_header_$ac_safe=no"
3534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3535 echo "$ac_t""yes" 1>&6
3536 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3537 { test "$extra_verbose" = "yes" && cat << EOF
3540 cat >> confdefs.h <<EOF
3541 #define $ac_tr_hdr 1
3546 echo "$ac_t""no" 1>&6
3550 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3551 echo "configure:3552: checking for sys/wait.h that is POSIX.1 compatible" >&5
3553 cat > conftest.$ac_ext <<EOF
3554 #line 3555 "configure"
3555 #include "confdefs.h"
3556 #include <sys/types.h>
3557 #include <sys/wait.h>
3559 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3562 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3567 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3570 if { (eval echo configure:3571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3572 ac_cv_header_sys_wait_h=yes
3574 echo "configure: failed program was:" >&5
3575 cat conftest.$ac_ext >&5
3577 ac_cv_header_sys_wait_h=no
3581 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3582 if test $ac_cv_header_sys_wait_h = yes; then
3583 { test "$extra_verbose" = "yes" && cat << \EOF
3584 Defining HAVE_SYS_WAIT_H
3586 cat >> confdefs.h <<\EOF
3587 #define HAVE_SYS_WAIT_H 1
3593 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3594 echo "configure:3595: checking for ANSI C header files" >&5
3596 cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3605 { (eval echo configure:3606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3607 if test -z "$ac_err"; then
3609 ac_cv_header_stdc=yes
3612 echo "configure: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3615 ac_cv_header_stdc=no
3619 if test $ac_cv_header_stdc = yes; then
3620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3621 cat > conftest.$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3627 egrep "memchr" >/dev/null 2>&1; then
3631 ac_cv_header_stdc=no
3637 if test $ac_cv_header_stdc = yes; then
3638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3639 cat > conftest.$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3645 egrep "free" >/dev/null 2>&1; then
3649 ac_cv_header_stdc=no
3655 if test $ac_cv_header_stdc = yes; then
3656 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3657 cat > conftest.$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3661 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3662 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3664 int main () { int i; for (i = 0; i < 256; i++)
3665 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3669 if { (eval echo configure:3670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3674 echo "configure: failed program was:" >&5
3675 cat conftest.$ac_ext >&5
3677 ac_cv_header_stdc=no
3682 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3683 if test $ac_cv_header_stdc = yes; then
3684 { test "$extra_verbose" = "yes" && cat << \EOF
3685 Defining STDC_HEADERS
3687 cat >> confdefs.h <<\EOF
3688 #define STDC_HEADERS 1
3694 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3695 echo "configure:3696: checking whether time.h and sys/time.h may both be included" >&5
3697 cat > conftest.$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3700 #include <sys/types.h>
3701 #include <sys/time.h>
3707 if { (eval echo configure:3708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3709 ac_cv_header_time=yes
3711 echo "configure: failed program was:" >&5
3712 cat conftest.$ac_ext >&5
3714 ac_cv_header_time=no
3718 echo "$ac_t""$ac_cv_header_time" 1>&6
3719 if test $ac_cv_header_time = yes; then
3720 { test "$extra_verbose" = "yes" && cat << \EOF
3721 Defining TIME_WITH_SYS_TIME
3723 cat >> confdefs.h <<\EOF
3724 #define TIME_WITH_SYS_TIME 1
3730 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3731 echo "configure:3732: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3733 cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3736 #include <sys/types.h>
3738 /* NetBSD declares sys_siglist in unistd.h. */
3739 #ifdef HAVE_UNISTD_H
3743 char *msg = *(sys_siglist + 1);
3746 if { (eval echo configure:3747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3748 ac_cv_decl_sys_siglist=yes
3750 echo "configure: failed program was:" >&5
3751 cat conftest.$ac_ext >&5
3753 ac_cv_decl_sys_siglist=no
3757 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3758 if test $ac_cv_decl_sys_siglist = yes; then
3759 { test "$extra_verbose" = "yes" && cat << \EOF
3760 Defining SYS_SIGLIST_DECLARED
3762 cat >> confdefs.h <<\EOF
3763 #define SYS_SIGLIST_DECLARED 1
3771 echo $ac_n "checking for utime""... $ac_c" 1>&6
3772 echo "configure:3773: checking for utime" >&5
3773 cat > conftest.$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3776 #include <sys/types.h>
3779 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3782 if { (eval echo configure:3783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3784 echo "$ac_t""yes" 1>&6
3785 { test "$extra_verbose" = "yes" && cat << \EOF
3788 cat >> confdefs.h <<\EOF
3789 #define HAVE_UTIME 1
3794 echo "configure: failed program was:" >&5
3795 cat conftest.$ac_ext >&5
3797 echo "$ac_t""no" 1>&6
3798 for ac_func in utimes
3800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3801 echo "configure:3802: checking for $ac_func" >&5
3803 cat > conftest.$ac_ext <<EOF
3804 #line 3805 "configure"
3805 #include "confdefs.h"
3806 /* System header to define __stub macros and hopefully few prototypes,
3807 which can conflict with char $ac_func(); below. */
3809 /* Override any gcc2 internal prototype to avoid an error. */
3810 /* We use char because int might match the return type of a gcc2
3811 builtin and then its argument prototype would still apply. */
3816 /* The GNU C library defines this for functions which it implements
3817 to always fail with ENOSYS. Some functions are actually named
3818 something starting with __ and the normal name is an alias. */
3819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3829 eval "ac_cv_func_$ac_func=yes"
3831 echo "configure: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3834 eval "ac_cv_func_$ac_func=no"
3838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3839 echo "$ac_t""yes" 1>&6
3840 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3841 { test "$extra_verbose" = "yes" && cat << EOF
3842 Defining $ac_tr_func
3844 cat >> confdefs.h <<EOF
3845 #define $ac_tr_func 1
3850 echo "$ac_t""no" 1>&6
3858 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3859 echo "configure:3860: checking return type of signal handlers" >&5
3861 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure"
3863 #include "confdefs.h"
3864 #include <sys/types.h>
3870 extern "C" void (*signal (int, void (*)(int)))(int);
3872 void (*signal ()) ();
3879 if { (eval echo configure:3880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3881 ac_cv_type_signal=void
3883 echo "configure: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3886 ac_cv_type_signal=int
3890 echo "$ac_t""$ac_cv_type_signal" 1>&6
3891 { test "$extra_verbose" = "yes" && cat << EOF
3892 Defining RETSIGTYPE = $ac_cv_type_signal
3894 cat >> confdefs.h <<EOF
3895 #define RETSIGTYPE $ac_cv_type_signal
3900 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3901 echo "configure:3902: checking for size_t" >&5
3903 cat > conftest.$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3906 #include <sys/types.h>
3912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3913 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3915 ac_cv_type_size_t=yes
3918 ac_cv_type_size_t=no
3922 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3923 if test $ac_cv_type_size_t = no; then
3924 { test "$extra_verbose" = "yes" && cat << \EOF
3925 Defining size_t = unsigned
3927 cat >> confdefs.h <<\EOF
3928 #define size_t unsigned
3934 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3935 echo "configure:3936: checking for pid_t" >&5
3937 cat > conftest.$ac_ext <<EOF
3938 #line 3939 "configure"
3939 #include "confdefs.h"
3940 #include <sys/types.h>
3946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3949 ac_cv_type_pid_t=yes
3956 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3957 if test $ac_cv_type_pid_t = no; then
3958 { test "$extra_verbose" = "yes" && cat << \EOF
3959 Defining pid_t = int
3961 cat >> confdefs.h <<\EOF
3968 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3969 echo "configure:3970: checking for uid_t in sys/types.h" >&5
3971 cat > conftest.$ac_ext <<EOF
3972 #line 3973 "configure"
3973 #include "confdefs.h"
3974 #include <sys/types.h>
3976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3977 egrep "uid_t" >/dev/null 2>&1; then
3979 ac_cv_type_uid_t=yes
3987 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3988 if test $ac_cv_type_uid_t = no; then
3989 { test "$extra_verbose" = "yes" && cat << \EOF
3990 Defining uid_t = int
3992 cat >> confdefs.h <<\EOF
3997 { test "$extra_verbose" = "yes" && cat << \EOF
3998 Defining gid_t = int
4000 cat >> confdefs.h <<\EOF
4007 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4008 echo "configure:4009: checking for mode_t" >&5
4010 cat > conftest.$ac_ext <<EOF
4011 #line 4012 "configure"
4012 #include "confdefs.h"
4013 #include <sys/types.h>
4019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4020 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4022 ac_cv_type_mode_t=yes
4025 ac_cv_type_mode_t=no
4029 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4030 if test $ac_cv_type_mode_t = no; then
4031 { test "$extra_verbose" = "yes" && cat << \EOF
4032 Defining mode_t = int
4034 cat >> confdefs.h <<\EOF
4041 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4042 echo "configure:4043: checking for off_t" >&5
4044 cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 #include <sys/types.h>
4053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4054 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4056 ac_cv_type_off_t=yes
4063 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4064 if test $ac_cv_type_off_t = no; then
4065 { test "$extra_verbose" = "yes" && cat << \EOF
4066 Defining off_t = long
4068 cat >> confdefs.h <<\EOF
4075 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4076 echo "configure:4077: checking for ssize_t" >&5
4078 cat > conftest.$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4081 #include <sys/types.h>
4087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4088 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4090 ac_cv_type_ssize_t=yes
4093 ac_cv_type_ssize_t=no
4097 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4098 if test $ac_cv_type_ssize_t = no; then
4099 { test "$extra_verbose" = "yes" && cat << \EOF
4100 Defining ssize_t = int
4102 cat >> confdefs.h <<\EOF
4110 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4111 echo "configure:4112: checking for socklen_t" >&5
4112 cat > conftest.$ac_ext <<EOF
4113 #line 4114 "configure"
4114 #include "confdefs.h"
4115 #include <sys/types.h>
4116 #include <sys/socket.h>
4123 if { (eval echo configure:4124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4125 echo "$ac_t""yes" 1>&6
4127 echo "configure: failed program was:" >&5
4128 cat conftest.$ac_ext >&5
4131 cat > conftest.$ac_ext <<EOF
4132 #line 4133 "configure"
4133 #include "confdefs.h"
4134 #include <sys/types.h>
4135 #include <sys/socket.h>
4136 int accept (int, struct sockaddr *, size_t *);
4142 if { (eval echo configure:4143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4145 echo "$ac_t""size_t" 1>&6
4146 { test "$extra_verbose" = "yes" && cat << \EOF
4147 Defining socklen_t = size_t
4149 cat >> confdefs.h <<\EOF
4150 #define socklen_t size_t
4155 echo "configure: failed program was:" >&5
4156 cat conftest.$ac_ext >&5
4159 echo "$ac_t""int" 1>&6
4160 { test "$extra_verbose" = "yes" && cat << \EOF
4161 Defining socklen_t = int
4163 cat >> confdefs.h <<\EOF
4164 #define socklen_t int
4173 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4174 echo "configure:4175: checking for struct timeval" >&5
4175 cat > conftest.$ac_ext <<EOF
4176 #line 4177 "configure"
4177 #include "confdefs.h"
4178 #ifdef TIME_WITH_SYS_TIME
4179 #include <sys/time.h>
4182 #ifdef HAVE_SYS_TIME_H
4183 #include <sys/time.h>
4189 static struct timeval x; x.tv_sec = x.tv_usec;
4192 if { (eval echo configure:4193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4194 echo "$ac_t""yes" 1>&6
4196 { test "$extra_verbose" = "yes" && cat << \EOF
4197 Defining HAVE_TIMEVAL
4199 cat >> confdefs.h <<\EOF
4200 #define HAVE_TIMEVAL 1
4205 echo "configure: failed program was:" >&5
4206 cat conftest.$ac_ext >&5
4208 echo "$ac_t""no" 1>&6
4213 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4214 echo "configure:4215: checking whether struct tm is in sys/time.h or time.h" >&5
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4219 #include <sys/types.h>
4222 struct tm *tp; tp->tm_sec;
4225 if { (eval echo configure:4226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4227 ac_cv_struct_tm=time.h
4229 echo "configure: failed program was:" >&5
4230 cat conftest.$ac_ext >&5
4232 ac_cv_struct_tm=sys/time.h
4236 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4237 if test $ac_cv_struct_tm = sys/time.h; then
4238 { test "$extra_verbose" = "yes" && cat << \EOF
4239 Defining TM_IN_SYS_TIME
4241 cat >> confdefs.h <<\EOF
4242 #define TM_IN_SYS_TIME 1
4248 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4249 echo "configure:4250: checking for tm_zone in struct tm" >&5
4251 cat > conftest.$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4254 #include <sys/types.h>
4255 #include <$ac_cv_struct_tm>
4257 struct tm tm; tm.tm_zone;
4260 if { (eval echo configure:4261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4262 ac_cv_struct_tm_zone=yes
4264 echo "configure: failed program was:" >&5
4265 cat conftest.$ac_ext >&5
4267 ac_cv_struct_tm_zone=no
4271 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4272 if test "$ac_cv_struct_tm_zone" = yes; then
4273 { test "$extra_verbose" = "yes" && cat << \EOF
4274 Defining HAVE_TM_ZONE
4276 cat >> confdefs.h <<\EOF
4277 #define HAVE_TM_ZONE 1
4282 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4283 echo "configure:4284: checking for tzname" >&5
4285 cat > conftest.$ac_ext <<EOF
4286 #line 4287 "configure"
4287 #include "confdefs.h"
4289 #ifndef tzname /* For SGI. */
4290 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4296 if { (eval echo configure:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4298 ac_cv_var_tzname=yes
4300 echo "configure: failed program was:" >&5
4301 cat conftest.$ac_ext >&5
4307 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4308 if test $ac_cv_var_tzname = yes; then
4309 { test "$extra_verbose" = "yes" && cat << \EOF
4310 Defining HAVE_TZNAME
4312 cat >> confdefs.h <<\EOF
4313 #define HAVE_TZNAME 1
4321 echo $ac_n "checking for working const""... $ac_c" 1>&6
4322 echo "configure:4323: checking for working const" >&5
4324 cat > conftest.$ac_ext <<EOF
4325 #line 4326 "configure"
4326 #include "confdefs.h"
4330 /* Ultrix mips cc rejects this. */
4331 typedef int charset[2]; const charset x;
4332 /* SunOS 4.1.1 cc rejects this. */
4333 char const *const *ccp;
4335 /* NEC SVR4.0.2 mips cc rejects this. */
4336 struct point {int x, y;};
4337 static struct point const zero = {0,0};
4338 /* AIX XL C 1.02.0.0 rejects this.
4339 It does not let you subtract one const X* pointer from another in an arm
4340 of an if-expression whose if-part is not a constant expression */
4341 const char *g = "string";
4342 ccp = &g + (g ? g-g : 0);
4343 /* HPUX 7.0 cc rejects these. */
4346 ccp = (char const *const *) p;
4347 { /* SCO 3.2v4 cc rejects this. */
4349 char const *s = 0 ? (char *) 0 : (char const *) 0;
4353 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4355 const int *foo = &x[0];
4358 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4359 typedef const int *iptr;
4363 { /* AIX XL C 1.02.0.0 rejects this saying
4364 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4365 struct s { int j; const int *ap[3]; };
4366 struct s *b; b->j = 5;
4368 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4374 if { (eval echo configure:4375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4378 echo "configure: failed program was:" >&5
4379 cat conftest.$ac_ext >&5
4385 echo "$ac_t""$ac_cv_c_const" 1>&6
4386 if test $ac_cv_c_const = no; then
4387 { test "$extra_verbose" = "yes" && cat << \EOF
4390 cat >> confdefs.h <<\EOF
4398 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4399 echo "configure:4400: checking whether ${MAKE-make} sets \${MAKE}" >&5
4400 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4402 cat > conftestmake <<\EOF
4404 @echo 'ac_maketemp="${MAKE}"'
4406 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4407 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4408 if test -n "$ac_maketemp"; then
4409 eval ac_cv_prog_make_${ac_make}_set=yes
4411 eval ac_cv_prog_make_${ac_make}_set=no
4414 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4415 echo "$ac_t""yes" 1>&6
4418 echo "$ac_t""no" 1>&6
4419 SET_MAKE="MAKE=${MAKE-make}"
4423 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4424 echo "configure:4425: checking whether byte ordering is bigendian" >&5
4426 ac_cv_c_bigendian=unknown
4427 # See if sys/param.h defines the BYTE_ORDER macro.
4428 cat > conftest.$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4431 #include <sys/types.h>
4432 #include <sys/param.h>
4435 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4440 if { (eval echo configure:4441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4442 # It does; now see whether it defined to BIG_ENDIAN or not.
4443 cat > conftest.$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
4446 #include <sys/types.h>
4447 #include <sys/param.h>
4450 #if BYTE_ORDER != BIG_ENDIAN
4455 if { (eval echo configure:4456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4457 ac_cv_c_bigendian=yes
4459 echo "configure: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4462 ac_cv_c_bigendian=no
4466 echo "configure: failed program was:" >&5
4467 cat conftest.$ac_ext >&5
4470 if test $ac_cv_c_bigendian = unknown; then
4471 cat > conftest.$ac_ext <<EOF
4472 #line 4473 "configure"
4473 #include "confdefs.h"
4475 /* Are we little or big endian? From Harbison&Steele. */
4479 char c[sizeof (long)];
4482 exit (u.c[sizeof (long) - 1] == 1);
4485 if { (eval echo configure:4486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4487 ac_cv_c_bigendian=no
4490 echo "configure: failed program was:" >&5
4491 cat conftest.$ac_ext >&5
4493 ac_cv_c_bigendian=yes
4498 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4499 if test $ac_cv_c_bigendian = yes; then
4500 { test "$extra_verbose" = "yes" && cat << \EOF
4501 Defining WORDS_BIGENDIAN
4503 cat >> confdefs.h <<\EOF
4504 #define WORDS_BIGENDIAN 1
4511 echo $ac_n "checking size of short""... $ac_c" 1>&6
4512 echo "configure:4513: checking size of short" >&5
4514 cat > conftest.$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4520 FILE *f=fopen("conftestval", "w");
4522 fprintf(f, "%d\n", sizeof(short));
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4528 ac_cv_sizeof_short=`cat conftestval`
4531 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4534 ac_cv_sizeof_short=0
4537 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4538 { test "$extra_verbose" = "yes" && cat << EOF
4539 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4541 cat >> confdefs.h <<EOF
4542 #define SIZEOF_SHORT $ac_cv_sizeof_short
4547 if test "$ac_cv_sizeof_short" = 0; then
4549 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4550 echo "*** PANIC *** Please examine config.log for compilation errors."
4553 echo $ac_n "checking size of int""... $ac_c" 1>&6
4554 echo "configure:4555: checking size of int" >&5
4556 cat > conftest.$ac_ext <<EOF
4557 #line 4558 "configure"
4558 #include "confdefs.h"
4562 FILE *f=fopen("conftestval", "w");
4564 fprintf(f, "%d\n", sizeof(int));
4568 if { (eval echo configure:4569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4570 ac_cv_sizeof_int=`cat conftestval`
4573 echo "configure: failed program was:" >&5
4574 cat conftest.$ac_ext >&5
4579 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4580 { test "$extra_verbose" = "yes" && cat << EOF
4581 Defining SIZEOF_INT = $ac_cv_sizeof_int
4583 cat >> confdefs.h <<EOF
4584 #define SIZEOF_INT $ac_cv_sizeof_int
4589 echo $ac_n "checking size of long""... $ac_c" 1>&6
4590 echo "configure:4591: checking size of long" >&5
4592 cat > conftest.$ac_ext <<EOF
4593 #line 4594 "configure"
4594 #include "confdefs.h"
4598 FILE *f=fopen("conftestval", "w");
4600 fprintf(f, "%d\n", sizeof(long));
4604 if { (eval echo configure:4605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4606 ac_cv_sizeof_long=`cat conftestval`
4609 echo "configure: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4615 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4616 { test "$extra_verbose" = "yes" && cat << EOF
4617 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4619 cat >> confdefs.h <<EOF
4620 #define SIZEOF_LONG $ac_cv_sizeof_long
4625 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4626 echo "configure:4627: checking size of long long" >&5
4628 cat > conftest.$ac_ext <<EOF
4629 #line 4630 "configure"
4630 #include "confdefs.h"
4634 FILE *f=fopen("conftestval", "w");
4636 fprintf(f, "%d\n", sizeof(long long));
4640 if { (eval echo configure:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4642 ac_cv_sizeof_long_long=`cat conftestval`
4645 echo "configure: failed program was:" >&5
4646 cat conftest.$ac_ext >&5
4648 ac_cv_sizeof_long_long=0
4651 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4652 { test "$extra_verbose" = "yes" && cat << EOF
4653 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4655 cat >> confdefs.h <<EOF
4656 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4661 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4662 echo "configure:4663: checking size of void *" >&5
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4670 FILE *f=fopen("conftestval", "w");
4672 fprintf(f, "%d\n", sizeof(void *));
4676 if { (eval echo configure:4677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4678 ac_cv_sizeof_void_p=`cat conftestval`
4681 echo "configure: failed program was:" >&5
4682 cat conftest.$ac_ext >&5
4684 ac_cv_sizeof_void_p=0
4687 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4688 { test "$extra_verbose" = "yes" && cat << EOF
4689 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4691 cat >> confdefs.h <<EOF
4692 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4699 cygwin* ) cat > conftest.$ac_ext <<EOF
4700 #line 4701 "configure"
4701 #include "confdefs.h"
4702 #include <cygwin/types.h>
4704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4705 egrep "typedef.*intptr_t;" >/dev/null 2>&1; then
4707 echo "$ac_t""yes" 1>&6
4708 { test "$extra_verbose" = "yes" && cat << \EOF
4709 Defining INTPTR_T_IN_CYGWIN_TYPES_H = 1
4711 cat >> confdefs.h <<\EOF
4712 #define INTPTR_T_IN_CYGWIN_TYPES_H 1
4718 echo "$ac_t""no" 1>&6
4724 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4725 echo "configure:4726: checking for long file names" >&5
4727 ac_cv_sys_long_file_names=yes
4728 # Test for long file names in all the places we know might matter:
4729 # . the current directory, where building will happen
4730 # $prefix/lib where we will be installing things
4731 # $exec_prefix/lib likewise
4732 # eval it to expand exec_prefix.
4733 # $TMPDIR if set, where it might want to write temporary files
4734 # if $TMPDIR is not set:
4735 # /tmp where it might want to write temporary files
4738 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4739 ac_tmpdirs="$TMPDIR"
4741 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4743 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4744 test -d $ac_dir || continue
4745 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4746 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4747 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4748 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4749 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4750 ac_cv_sys_long_file_names=no
4751 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4754 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4757 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4758 if test $ac_cv_sys_long_file_names = yes; then
4759 { test "$extra_verbose" = "yes" && cat << \EOF
4760 Defining HAVE_LONG_FILE_NAMES
4762 cat >> confdefs.h <<\EOF
4763 #define HAVE_LONG_FILE_NAMES 1
4770 echo $ac_n "checking for sin""... $ac_c" 1>&6
4771 echo "configure:4772: checking for sin" >&5
4773 cat > conftest.$ac_ext <<EOF
4774 #line 4775 "configure"
4775 #include "confdefs.h"
4776 /* System header to define __stub macros and hopefully few prototypes,
4777 which can conflict with char sin(); below. */
4779 /* Override any gcc2 internal prototype to avoid an error. */
4780 /* We use char because int might match the return type of a gcc2
4781 builtin and then its argument prototype would still apply. */
4786 /* The GNU C library defines this for functions which it implements
4787 to always fail with ENOSYS. Some functions are actually named
4788 something starting with __ and the normal name is an alias. */
4789 #if defined (__stub_sin) || defined (__stub___sin)
4797 if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4799 eval "ac_cv_func_sin=yes"
4801 echo "configure: failed program was:" >&5
4802 cat conftest.$ac_ext >&5
4804 eval "ac_cv_func_sin=no"
4808 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4809 echo "$ac_t""yes" 1>&6
4812 echo "$ac_t""no" 1>&6
4814 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4815 echo "configure:4816: checking for sin in -lm" >&5
4816 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4818 xe_check_libs=" -lm "
4819 cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4822 /* Override any gcc2 internal prototype to avoid an error. */
4823 /* We use char because int might match the return type of a gcc2
4824 builtin and then its argument prototype would still apply. */
4831 if { (eval echo configure:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4833 eval "ac_cv_lib_$ac_lib_var=yes"
4835 echo "configure: failed program was:" >&5
4836 cat conftest.$ac_ext >&5
4838 eval "ac_cv_lib_$ac_lib_var=no"
4843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4844 echo "$ac_t""yes" 1>&6
4845 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4846 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4847 { test "$extra_verbose" = "yes" && cat << EOF
4850 cat >> confdefs.h <<EOF
4851 #define $ac_tr_lib 1
4855 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4858 echo "$ac_t""no" 1>&6
4865 { test "$extra_verbose" = "yes" && cat << \EOF
4866 Defining LISP_FLOAT_TYPE
4868 cat >> confdefs.h <<\EOF
4869 #define LISP_FLOAT_TYPE 1
4874 cat > conftest.$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4879 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4882 if { (eval echo configure:4883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4884 { test "$extra_verbose" = "yes" && cat << \EOF
4885 Defining HAVE_INVERSE_HYPERBOLIC
4887 cat >> confdefs.h <<\EOF
4888 #define HAVE_INVERSE_HYPERBOLIC 1
4893 echo "configure: failed program was:" >&5
4894 cat conftest.$ac_ext >&5
4898 echo "checking type of mail spool file locking" 1>&6
4899 echo "configure:4900: checking type of mail spool file locking" >&5
4900 for ac_func in lockf flock
4902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4903 echo "configure:4904: checking for $ac_func" >&5
4905 cat > conftest.$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4908 /* System header to define __stub macros and hopefully few prototypes,
4909 which can conflict with char $ac_func(); below. */
4911 /* Override any gcc2 internal prototype to avoid an error. */
4912 /* We use char because int might match the return type of a gcc2
4913 builtin and then its argument prototype would still apply. */
4918 /* The GNU C library defines this for functions which it implements
4919 to always fail with ENOSYS. Some functions are actually named
4920 something starting with __ and the normal name is an alias. */
4921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4929 if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4931 eval "ac_cv_func_$ac_func=yes"
4933 echo "configure: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4936 eval "ac_cv_func_$ac_func=no"
4940 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4941 echo "$ac_t""yes" 1>&6
4942 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4943 { test "$extra_verbose" = "yes" && cat << EOF
4944 Defining $ac_tr_func
4946 cat >> confdefs.h <<EOF
4947 #define $ac_tr_func 1
4952 echo "$ac_t""no" 1>&6
4956 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4957 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4958 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4959 if test -z "$mail_locking"; then
4960 case "$opsys" in cygwin* | mingw*)
4965 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4966 Defining MAIL_LOCK_LOCKF
4968 cat >> confdefs.h <<\EOF
4969 #define MAIL_LOCK_LOCKF 1
4973 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4974 Defining MAIL_LOCK_FLOCK
4976 cat >> confdefs.h <<\EOF
4977 #define MAIL_LOCK_FLOCK 1
4981 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4982 Defining MAIL_LOCK_LOCKING
4984 cat >> confdefs.h <<\EOF
4985 #define MAIL_LOCK_LOCKING 1
4989 elif test "$mail_locking" = "pop"; then
4992 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4993 Defining MAIL_LOCK_DOT
4995 cat >> confdefs.h <<\EOF
4996 #define MAIL_LOCK_DOT 1
5001 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
5002 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
5003 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
5004 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
5005 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
5006 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
5008 case "$opsys" in decosf*)
5010 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
5011 echo "configure:5012: checking for cma_open in -lpthreads" >&5
5012 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
5014 xe_check_libs=" -lpthreads "
5015 cat > conftest.$ac_ext <<EOF
5016 #line 5017 "configure"
5017 #include "confdefs.h"
5018 /* Override any gcc2 internal prototype to avoid an error. */
5019 /* We use char because int might match the return type of a gcc2
5020 builtin and then its argument prototype would still apply. */
5027 if { (eval echo configure:5028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5029 eval "ac_cv_lib_$ac_lib_var=yes"
5031 echo "configure: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5034 eval "ac_cv_lib_$ac_lib_var=no"
5039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5040 echo "$ac_t""yes" 1>&6
5041 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5042 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5043 { test "$extra_verbose" = "yes" && cat << EOF
5046 cat >> confdefs.h <<EOF
5047 #define $ac_tr_lib 1
5051 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
5054 echo "$ac_t""no" 1>&6
5058 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
5059 c_switch_site="$c_switch_site -threads" ;;
5063 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
5064 echo "configure:5065: checking whether the -xildoff compiler flag is required" >&5
5065 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
5066 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
5067 then echo "$ac_t""no" 1>&6;
5068 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
5070 else echo "$ac_t""no" 1>&6
5073 if test "$opsys" = "sol2"; then
5074 if test "$os_release" -ge 506; then
5075 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
5076 echo "configure:5077: checking for \"-z ignore\" linker flag" >&5
5077 case "`ld -h 2>&1`" in
5078 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
5079 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5080 *) echo "$ac_t""no" 1>&6 ;;
5086 echo "checking "for specified window system"" 1>&6
5087 echo "configure:5088: checking "for specified window system"" >&5
5093 if test "$with_gnome" != "no"; then
5094 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5095 echo "configure:5096: checking for GNOME configuration script" >&5
5096 for possible in gnome-config
5098 possible_version=`${possible} --version 2> /dev/null`
5099 if test "x${possible_version}" != "x"; then
5100 GNOME_CONFIG="${possible}"
5106 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5109 if test "${GNOME_CONFIG}" != "no"; then
5110 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5111 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5112 { test "$extra_verbose" = "yes" && cat << \EOF
5115 cat >> confdefs.h <<\EOF
5116 #define HAVE_GNOME 1
5120 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5121 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5124 if test "$with_gtk" != "no";then
5125 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5126 echo "configure:5127: checking for GTK configuration script" >&5
5127 for possible in gtk12-config gtk14-config gtk-config
5129 possible_version=`${possible} --version 2> /dev/null`
5130 if test "x${possible_version}" != "x"; then
5131 GTK_CONFIG="${possible}"
5133 case "${possible_version}" in
5134 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5135 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5140 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5143 echo "$ac_t""${GTK_CONFIG}" 1>&6
5146 if test "${GTK_CONFIG}" != "no"; then
5147 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5148 echo "configure:5149: checking gtk version" >&5
5149 GTK_VERSION=`${GTK_CONFIG} --version`
5150 echo "$ac_t""${GTK_VERSION}" 1>&6
5152 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5153 echo "configure:5154: checking gtk libs" >&5
5154 GTK_LIBS=`${GTK_CONFIG} --libs`
5155 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5156 echo "$ac_t""${GTK_LIBS}" 1>&6
5158 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5159 echo "configure:5160: checking gtk cflags" >&5
5160 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5161 if test "$GCC" = "yes"; then
5162 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
5164 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5165 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5168 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5169 echo "configure:5170: checking for main in -lgdk_imlib" >&5
5170 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5172 xe_check_libs=" -lgdk_imlib "
5173 cat > conftest.$ac_ext <<EOF
5174 #line 5175 "configure"
5175 #include "confdefs.h"
5181 if { (eval echo configure:5182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5183 eval "ac_cv_lib_$ac_lib_var=yes"
5185 echo "configure: failed program was:" >&5
5186 cat conftest.$ac_ext >&5
5188 eval "ac_cv_lib_$ac_lib_var=no"
5193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5194 echo "$ac_t""yes" 1>&6
5195 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5197 echo "$ac_t""no" 1>&6
5202 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5203 echo "configure:5204: checking for Imlib_init in -lImlib" >&5
5204 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5206 xe_check_libs=" -lImlib "
5207 cat > conftest.$ac_ext <<EOF
5208 #line 5209 "configure"
5209 #include "confdefs.h"
5210 /* Override any gcc2 internal prototype to avoid an error. */
5211 /* We use char because int might match the return type of a gcc2
5212 builtin and then its argument prototype would still apply. */
5219 if { (eval echo configure:5220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5221 eval "ac_cv_lib_$ac_lib_var=yes"
5223 echo "configure: failed program was:" >&5
5224 cat conftest.$ac_ext >&5
5226 eval "ac_cv_lib_$ac_lib_var=no"
5231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5232 echo "$ac_t""yes" 1>&6
5233 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5235 echo "$ac_t""no" 1>&6
5239 for ac_func in gdk_imlib_init
5241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5242 echo "configure:5243: checking for $ac_func" >&5
5244 cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5247 /* System header to define __stub macros and hopefully few prototypes,
5248 which can conflict with char $ac_func(); below. */
5250 /* Override any gcc2 internal prototype to avoid an error. */
5251 /* We use char because int might match the return type of a gcc2
5252 builtin and then its argument prototype would still apply. */
5257 /* The GNU C library defines this for functions which it implements
5258 to always fail with ENOSYS. Some functions are actually named
5259 something starting with __ and the normal name is an alias. */
5260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5268 if { (eval echo configure:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5270 eval "ac_cv_func_$ac_func=yes"
5272 echo "configure: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5275 eval "ac_cv_func_$ac_func=no"
5279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5280 echo "$ac_t""yes" 1>&6
5281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5282 { test "$extra_verbose" = "yes" && cat << EOF
5283 Defining $ac_tr_func
5285 cat >> confdefs.h <<EOF
5286 #define $ac_tr_func 1
5291 echo "$ac_t""no" 1>&6
5296 { test "$extra_verbose" = "yes" && cat << \EOF
5299 cat >> confdefs.h <<\EOF
5304 { test "$extra_verbose" = "yes" && cat << \EOF
5307 cat >> confdefs.h <<\EOF
5318 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5319 test "${with_toolbars}" != no && with_toolbars=gtk
5320 test "${with_menubars}" != "no" && with_menubars=gtk
5321 test "${with_dialogs}" != "no" && with_dialogs=gtk
5322 test "${with_widgets}" != "no" && with_widgets=gtk
5324 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5325 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5327 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5328 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5330 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5331 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5333 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5334 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5337 OLD_CFLAGS="${CFLAGS}"
5338 OLD_CPPFLAGS="${CPPFLAGS}"
5339 OLD_LDFLAGS="${LDFLAGS}"
5340 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5341 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5342 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5343 for ac_hdr in glade/glade.h glade.h
5345 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5346 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5347 echo "configure:5348: checking for $ac_hdr" >&5
5349 cat > conftest.$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5355 { (eval echo configure:5356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5357 if test -z "$ac_err"; then
5359 eval "ac_cv_header_$ac_safe=yes"
5362 echo "configure: failed program was:" >&5
5363 cat conftest.$ac_ext >&5
5365 eval "ac_cv_header_$ac_safe=no"
5368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5369 echo "$ac_t""yes" 1>&6
5370 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5371 { test "$extra_verbose" = "yes" && cat << EOF
5374 cat >> confdefs.h <<EOF
5375 #define $ac_tr_hdr 1
5380 echo "$ac_t""no" 1>&6
5385 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5386 echo "configure:5387: checking for main in -lxml" >&5
5387 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5389 xe_check_libs=" -lxml "
5390 cat > conftest.$ac_ext <<EOF
5391 #line 5392 "configure"
5392 #include "confdefs.h"
5398 if { (eval echo configure:5399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5400 eval "ac_cv_lib_$ac_lib_var=yes"
5402 echo "configure: failed program was:" >&5
5403 cat conftest.$ac_ext >&5
5405 eval "ac_cv_lib_$ac_lib_var=no"
5410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5411 echo "$ac_t""yes" 1>&6
5412 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5414 echo "$ac_t""no" 1>&6
5419 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5420 echo "configure:5421: checking for main in -lglade" >&5
5421 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5423 xe_check_libs=" -lglade "
5424 cat > conftest.$ac_ext <<EOF
5425 #line 5426 "configure"
5426 #include "confdefs.h"
5432 if { (eval echo configure:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5434 eval "ac_cv_lib_$ac_lib_var=yes"
5436 echo "configure: failed program was:" >&5
5437 cat conftest.$ac_ext >&5
5439 eval "ac_cv_lib_$ac_lib_var=no"
5444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5445 echo "$ac_t""yes" 1>&6
5446 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5448 echo "$ac_t""no" 1>&6
5453 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5454 echo "configure:5455: checking for main in -lglade-gnome" >&5
5455 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5457 xe_check_libs=" -lglade-gnome "
5458 cat > conftest.$ac_ext <<EOF
5459 #line 5460 "configure"
5460 #include "confdefs.h"
5466 if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5468 eval "ac_cv_lib_$ac_lib_var=yes"
5470 echo "configure: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5473 eval "ac_cv_lib_$ac_lib_var=no"
5478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5479 echo "$ac_t""yes" 1>&6
5480 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5482 echo "$ac_t""no" 1>&6
5486 cat > conftest.$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5489 #include <glade/glade-xml.h>
5491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5492 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5494 echo "$ac_t""yes" 1>&6
5495 { test "$extra_verbose" = "yes" && cat << \EOF
5496 Defining LIBGLADE_XML_TXTDOMAIN = 1
5498 cat >> confdefs.h <<\EOF
5499 #define LIBGLADE_XML_TXTDOMAIN 1
5505 echo "$ac_t""no" 1>&6
5509 CFLAGS="${OLD_CFLAGS}"
5510 CPPFLAGS="${OLD_CPPFLAGS}"
5511 LDFLAGS="${OLD_LDFLAGS}"
5515 if test "$with_x11" != "no"; then
5516 test "$x_includes $x_libraries" != "NONE NONE" && \
5517 window_system=x11 with_x11=yes
5520 if test "$x_includes $x_libraries" = "NONE NONE" \
5521 -a -n "$OPENWINHOME" \
5522 -a "$OPENWINHOME" != "/usr/openwin" \
5523 -a -d "$OPENWINHOME"; then
5524 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5525 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5526 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5529 if test "$x_includes" = "NONE"; then
5530 for dir in "/usr/X11" "/usr/X11R6"; do
5531 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5535 if test "$x_libraries" = "NONE"; then
5536 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5537 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5541 # If we find X, set shell vars x_includes and x_libraries to the
5542 # paths, otherwise set no_x=yes.
5543 # Uses ac_ vars as temps to allow command line to override cache and checks.
5544 # --without-x overrides everything else, but does not touch the cache.
5545 echo $ac_n "checking for X""... $ac_c" 1>&6
5546 echo "configure:5547: checking for X" >&5
5548 # Check whether --with-x or --without-x was given.
5549 if test "${with_x+set}" = set; then
5554 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5555 if test "x$with_x" = xno; then
5556 # The user explicitly disabled X.
5559 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5560 # Both variables are already set.
5564 # One or both of the vars are not set, and there is no cached value.
5565 ac_x_includes=NO ac_x_libraries=NO
5567 if mkdir conftestdir; then
5569 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5570 cat > Imakefile <<'EOF'
5572 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5574 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5575 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5576 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5577 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5578 for ac_extension in a so sl; do
5579 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5580 test -f $ac_im_libdir/libX11.$ac_extension; then
5581 ac_im_usrlibdir=$ac_im_libdir; break
5584 # Screen out bogus values from the imake configuration. They are
5585 # bogus both because they are the default anyway, and because
5586 # using them would break gcc on systems where it needs fixed includes.
5587 case "$ac_im_incroot" in
5589 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5591 case "$ac_im_usrlibdir" in
5593 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5600 if test "$ac_x_includes" = NO; then
5601 # Guess where to find include files, by looking for this one X11 .h file.
5602 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5604 # First, try using that file with no special directory specified.
5605 cat > conftest.$ac_ext <<EOF
5606 #line 5607 "configure"
5607 #include "confdefs.h"
5608 #include <$x_direct_test_include>
5610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5611 { (eval echo configure:5612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5613 if test -z "$ac_err"; then
5615 # We can compile using X headers with no special include directory.
5619 echo "configure: failed program was:" >&5
5620 cat conftest.$ac_ext >&5
5622 # Look for the header file in a standard set of common directories.
5623 # Check X11 before X11Rn because it is often a symlink to the current release.
5626 /usr/X11R6/include \
5627 /usr/X11R5/include \
5628 /usr/X11R4/include \
5631 /usr/include/X11R6 \
5632 /usr/include/X11R5 \
5633 /usr/include/X11R4 \
5635 /usr/local/X11/include \
5636 /usr/local/X11R6/include \
5637 /usr/local/X11R5/include \
5638 /usr/local/X11R4/include \
5640 /usr/local/include/X11 \
5641 /usr/local/include/X11R6 \
5642 /usr/local/include/X11R5 \
5643 /usr/local/include/X11R4 \
5647 /usr/XFree86/include/X11 \
5650 /usr/local/include \
5651 /usr/unsupported/include \
5652 /usr/athena/include \
5653 /usr/local/x11r5/include \
5654 /usr/lpp/Xamples/include \
5656 /usr/openwin/include \
5657 /usr/openwin/share/include \
5660 if test -r "$ac_dir/$x_direct_test_include"; then
5661 ac_x_includes=$ac_dir
5667 fi # $ac_x_includes = NO
5669 if test "$ac_x_libraries" = NO; then
5670 # Check for the libraries.
5672 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5673 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5675 # See if we find them without any special options.
5676 # Don't add to $LIBS permanently.
5677 ac_save_LIBS="$LIBS"
5678 LIBS="-l$x_direct_test_library $LIBS"
5679 cat > conftest.$ac_ext <<EOF
5680 #line 5681 "configure"
5681 #include "confdefs.h"
5684 ${x_direct_test_function}()
5687 if { (eval echo configure:5688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5689 LIBS="$ac_save_LIBS"
5690 # We can link X programs with no special library path.
5693 echo "configure: failed program was:" >&5
5694 cat conftest.$ac_ext >&5
5696 LIBS="$ac_save_LIBS"
5697 # First see if replacing the include by lib works.
5698 # Check X11 before X11Rn because it is often a symlink to the current release.
5699 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5710 /usr/local/X11/lib \
5711 /usr/local/X11R6/lib \
5712 /usr/local/X11R5/lib \
5713 /usr/local/X11R4/lib \
5715 /usr/local/lib/X11 \
5716 /usr/local/lib/X11R6 \
5717 /usr/local/lib/X11R5 \
5718 /usr/local/lib/X11R4 \
5722 /usr/XFree86/lib/X11 \
5726 /usr/unsupported/lib \
5728 /usr/local/x11r5/lib \
5729 /usr/lpp/Xamples/lib \
5733 /usr/openwin/share/lib \
5736 for ac_extension in a so sl; do
5737 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5738 ac_x_libraries=$ac_dir
5745 fi # $ac_x_libraries = NO
5747 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5748 # Didn't find X anywhere. Cache the known absence of X.
5749 ac_cv_have_x="have_x=no"
5751 # Record where we found X for the cache.
5752 ac_cv_have_x="have_x=yes \
5753 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5756 eval "$ac_cv_have_x"
5759 if test "$have_x" != yes; then
5760 echo "$ac_t""$have_x" 1>&6
5763 # If each of the values was on the command line, it overrides each guess.
5764 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5765 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5766 # Update the cache value to reflect the command line values.
5767 ac_cv_have_x="have_x=yes \
5768 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5769 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5772 if test "$no_x" = yes; then
5773 # Not all programs may use this symbol, but it does not hurt to define it.
5774 { test "$extra_verbose" = "yes" && cat << \EOF
5775 Defining X_DISPLAY_MISSING
5777 cat >> confdefs.h <<\EOF
5778 #define X_DISPLAY_MISSING 1
5782 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5784 if test -n "$x_includes"; then
5785 X_CFLAGS="$X_CFLAGS -I$x_includes"
5788 # It would also be nice to do this for all -L options, not just this one.
5789 if test -n "$x_libraries"; then
5790 X_LIBS="$X_LIBS -L$x_libraries"
5791 # For Solaris; some versions of Sun CC require a space after -R and
5792 # others require no space. Words are not sufficient . . . .
5793 case "`(uname -sr) 2>/dev/null`" in
5795 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5796 echo "configure:5797: checking whether -R must be followed by a space" >&5
5797 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5798 cat > conftest.$ac_ext <<EOF
5799 #line 5800 "configure"
5800 #include "confdefs.h"
5806 if { (eval echo configure:5807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5810 echo "configure: failed program was:" >&5
5811 cat conftest.$ac_ext >&5
5816 if test $ac_R_nospace = yes; then
5817 echo "$ac_t""no" 1>&6
5818 X_LIBS="$X_LIBS -R$x_libraries"
5820 LIBS="$ac_xsave_LIBS -R $x_libraries"
5821 cat > conftest.$ac_ext <<EOF
5822 #line 5823 "configure"
5823 #include "confdefs.h"
5829 if { (eval echo configure:5830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5833 echo "configure: failed program was:" >&5
5834 cat conftest.$ac_ext >&5
5839 if test $ac_R_space = yes; then
5840 echo "$ac_t""yes" 1>&6
5841 X_LIBS="$X_LIBS -R $x_libraries"
5843 echo "$ac_t""neither works" 1>&6
5846 LIBS="$ac_xsave_LIBS"
5850 # Check for system-dependent libraries X programs must link with.
5851 # Do this before checking for the system-independent R6 libraries
5852 # (-lICE), since we may need -lsocket or whatever for X linking.
5854 if test "$ISC" = yes; then
5855 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5857 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5858 # libraries were built with DECnet support. And karl@cs.umb.edu says
5859 # the Alpha needs dnet_stub (dnet does not exist).
5860 if test "$with_dnet" = "no" ; then
5861 ac_cv_lib_dnet_dnet_ntoa=no
5864 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5865 echo "configure:5866: checking for dnet_ntoa in -ldnet" >&5
5866 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5868 xe_check_libs=" -ldnet "
5869 cat > conftest.$ac_ext <<EOF
5870 #line 5871 "configure"
5871 #include "confdefs.h"
5872 /* Override any gcc2 internal prototype to avoid an error. */
5873 /* We use char because int might match the return type of a gcc2
5874 builtin and then its argument prototype would still apply. */
5881 if { (eval echo configure:5882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5883 eval "ac_cv_lib_$ac_lib_var=yes"
5885 echo "configure: failed program was:" >&5
5886 cat conftest.$ac_ext >&5
5888 eval "ac_cv_lib_$ac_lib_var=no"
5893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5894 echo "$ac_t""yes" 1>&6
5895 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5897 echo "$ac_t""no" 1>&6
5902 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5904 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5905 echo "configure:5906: checking for dnet_ntoa in -ldnet_stub" >&5
5906 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5908 xe_check_libs=" -ldnet_stub "
5909 cat > conftest.$ac_ext <<EOF
5910 #line 5911 "configure"
5911 #include "confdefs.h"
5912 /* Override any gcc2 internal prototype to avoid an error. */
5913 /* We use char because int might match the return type of a gcc2
5914 builtin and then its argument prototype would still apply. */
5921 if { (eval echo configure:5922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5923 eval "ac_cv_lib_$ac_lib_var=yes"
5925 echo "configure: failed program was:" >&5
5926 cat conftest.$ac_ext >&5
5928 eval "ac_cv_lib_$ac_lib_var=no"
5933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5934 echo "$ac_t""yes" 1>&6
5935 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5937 echo "$ac_t""no" 1>&6
5943 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5944 # to get the SysV transport functions.
5945 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5947 # The nsl library prevents programs from opening the X display
5948 # on Irix 5.2, according to dickey@clark.net.
5949 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5950 echo "configure:5951: checking for gethostbyname" >&5
5952 cat > conftest.$ac_ext <<EOF
5953 #line 5954 "configure"
5954 #include "confdefs.h"
5955 /* System header to define __stub macros and hopefully few prototypes,
5956 which can conflict with char gethostbyname(); below. */
5958 /* Override any gcc2 internal prototype to avoid an error. */
5959 /* We use char because int might match the return type of a gcc2
5960 builtin and then its argument prototype would still apply. */
5961 char gethostbyname();
5965 /* The GNU C library defines this for functions which it implements
5966 to always fail with ENOSYS. Some functions are actually named
5967 something starting with __ and the normal name is an alias. */
5968 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5976 if { (eval echo configure:5977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5978 eval "ac_cv_func_gethostbyname=yes"
5980 echo "configure: failed program was:" >&5
5981 cat conftest.$ac_ext >&5
5983 eval "ac_cv_func_gethostbyname=no"
5987 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5988 echo "$ac_t""yes" 1>&6
5991 echo "$ac_t""no" 1>&6
5994 if test $ac_cv_func_gethostbyname = no; then
5996 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5997 echo "configure:5998: checking for gethostbyname in -lnsl" >&5
5998 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6000 xe_check_libs=" -lnsl "
6001 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6004 /* Override any gcc2 internal prototype to avoid an error. */
6005 /* We use char because int might match the return type of a gcc2
6006 builtin and then its argument prototype would still apply. */
6007 char gethostbyname();
6013 if { (eval echo configure:6014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6015 eval "ac_cv_lib_$ac_lib_var=yes"
6017 echo "configure: failed program was:" >&5
6018 cat conftest.$ac_ext >&5
6020 eval "ac_cv_lib_$ac_lib_var=no"
6025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6026 echo "$ac_t""yes" 1>&6
6027 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6029 echo "$ac_t""no" 1>&6
6035 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6036 # socket/setsockopt and other routines are undefined under SCO ODT
6037 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6038 # on later versions), says simon@lia.di.epfl.ch: it contains
6039 # gethostby* variants that don't use the nameserver (or something).
6040 # -lsocket must be given before -lnsl if both are needed.
6041 # We assume that if connect needs -lnsl, so does gethostbyname.
6042 echo $ac_n "checking for connect""... $ac_c" 1>&6
6043 echo "configure:6044: checking for connect" >&5
6045 cat > conftest.$ac_ext <<EOF
6046 #line 6047 "configure"
6047 #include "confdefs.h"
6048 /* System header to define __stub macros and hopefully few prototypes,
6049 which can conflict with char connect(); below. */
6051 /* Override any gcc2 internal prototype to avoid an error. */
6052 /* We use char because int might match the return type of a gcc2
6053 builtin and then its argument prototype would still apply. */
6058 /* The GNU C library defines this for functions which it implements
6059 to always fail with ENOSYS. Some functions are actually named
6060 something starting with __ and the normal name is an alias. */
6061 #if defined (__stub_connect) || defined (__stub___connect)
6069 if { (eval echo configure:6070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6071 eval "ac_cv_func_connect=yes"
6073 echo "configure: failed program was:" >&5
6074 cat conftest.$ac_ext >&5
6076 eval "ac_cv_func_connect=no"
6080 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6081 echo "$ac_t""yes" 1>&6
6084 echo "$ac_t""no" 1>&6
6087 if test $ac_cv_func_connect = no; then
6089 xe_msg_checking="for connect in -lsocket"
6090 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6091 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6092 echo "configure:6093: checking "$xe_msg_checking"" >&5
6093 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6095 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6096 cat > conftest.$ac_ext <<EOF
6097 #line 6098 "configure"
6098 #include "confdefs.h"
6099 /* Override any gcc2 internal prototype to avoid an error. */
6100 /* We use char because int might match the return type of a gcc2
6101 builtin and then its argument prototype would still apply. */
6108 if { (eval echo configure:6109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6110 eval "ac_cv_lib_$ac_lib_var=yes"
6112 echo "configure: failed program was:" >&5
6113 cat conftest.$ac_ext >&5
6115 eval "ac_cv_lib_$ac_lib_var=no"
6120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6121 echo "$ac_t""yes" 1>&6
6122 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6124 echo "$ac_t""no" 1>&6
6130 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6131 echo $ac_n "checking for remove""... $ac_c" 1>&6
6132 echo "configure:6133: checking for remove" >&5
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6137 /* System header to define __stub macros and hopefully few prototypes,
6138 which can conflict with char remove(); below. */
6140 /* Override any gcc2 internal prototype to avoid an error. */
6141 /* We use char because int might match the return type of a gcc2
6142 builtin and then its argument prototype would still apply. */
6147 /* The GNU C library defines this for functions which it implements
6148 to always fail with ENOSYS. Some functions are actually named
6149 something starting with __ and the normal name is an alias. */
6150 #if defined (__stub_remove) || defined (__stub___remove)
6158 if { (eval echo configure:6159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6160 eval "ac_cv_func_remove=yes"
6162 echo "configure: failed program was:" >&5
6163 cat conftest.$ac_ext >&5
6165 eval "ac_cv_func_remove=no"
6169 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6170 echo "$ac_t""yes" 1>&6
6173 echo "$ac_t""no" 1>&6
6176 if test $ac_cv_func_remove = no; then
6178 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6179 echo "configure:6180: checking for remove in -lposix" >&5
6180 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6182 xe_check_libs=" -lposix "
6183 cat > conftest.$ac_ext <<EOF
6184 #line 6185 "configure"
6185 #include "confdefs.h"
6186 /* Override any gcc2 internal prototype to avoid an error. */
6187 /* We use char because int might match the return type of a gcc2
6188 builtin and then its argument prototype would still apply. */
6195 if { (eval echo configure:6196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6197 eval "ac_cv_lib_$ac_lib_var=yes"
6199 echo "configure: failed program was:" >&5
6200 cat conftest.$ac_ext >&5
6202 eval "ac_cv_lib_$ac_lib_var=no"
6207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6208 echo "$ac_t""yes" 1>&6
6209 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6211 echo "$ac_t""no" 1>&6
6217 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6218 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6219 echo "configure:6220: checking for shmat" >&5
6221 cat > conftest.$ac_ext <<EOF
6222 #line 6223 "configure"
6223 #include "confdefs.h"
6224 /* System header to define __stub macros and hopefully few prototypes,
6225 which can conflict with char shmat(); below. */
6227 /* Override any gcc2 internal prototype to avoid an error. */
6228 /* We use char because int might match the return type of a gcc2
6229 builtin and then its argument prototype would still apply. */
6234 /* The GNU C library defines this for functions which it implements
6235 to always fail with ENOSYS. Some functions are actually named
6236 something starting with __ and the normal name is an alias. */
6237 #if defined (__stub_shmat) || defined (__stub___shmat)
6245 if { (eval echo configure:6246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6247 eval "ac_cv_func_shmat=yes"
6249 echo "configure: failed program was:" >&5
6250 cat conftest.$ac_ext >&5
6252 eval "ac_cv_func_shmat=no"
6256 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6257 echo "$ac_t""yes" 1>&6
6260 echo "$ac_t""no" 1>&6
6263 if test $ac_cv_func_shmat = no; then
6265 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6266 echo "configure:6267: checking for shmat in -lipc" >&5
6267 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6269 xe_check_libs=" -lipc "
6270 cat > conftest.$ac_ext <<EOF
6271 #line 6272 "configure"
6272 #include "confdefs.h"
6273 /* Override any gcc2 internal prototype to avoid an error. */
6274 /* We use char because int might match the return type of a gcc2
6275 builtin and then its argument prototype would still apply. */
6282 if { (eval echo configure:6283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6284 eval "ac_cv_lib_$ac_lib_var=yes"
6286 echo "configure: failed program was:" >&5
6287 cat conftest.$ac_ext >&5
6289 eval "ac_cv_lib_$ac_lib_var=no"
6294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6295 echo "$ac_t""yes" 1>&6
6296 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6298 echo "$ac_t""no" 1>&6
6305 # Check for libraries that X11R6 Xt/Xaw programs need.
6306 ac_save_LDFLAGS="$LDFLAGS"
6307 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6308 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6309 # check for ICE first), but we must link in the order -lSM -lICE or
6310 # we get undefined symbols. So assume we have SM if we have ICE.
6311 # These have to be linked with before -lX11, unlike the other
6312 # libraries we check for below, so use a different variable.
6313 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6315 xe_msg_checking="for IceConnectionNumber in -lICE"
6316 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6317 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6318 echo "configure:6319: checking "$xe_msg_checking"" >&5
6319 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6321 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6322 cat > conftest.$ac_ext <<EOF
6323 #line 6324 "configure"
6324 #include "confdefs.h"
6325 /* Override any gcc2 internal prototype to avoid an error. */
6326 /* We use char because int might match the return type of a gcc2
6327 builtin and then its argument prototype would still apply. */
6328 char IceConnectionNumber();
6331 IceConnectionNumber()
6334 if { (eval echo configure:6335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6336 eval "ac_cv_lib_$ac_lib_var=yes"
6338 echo "configure: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6341 eval "ac_cv_lib_$ac_lib_var=no"
6346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6347 echo "$ac_t""yes" 1>&6
6348 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6350 echo "$ac_t""no" 1>&6
6354 LDFLAGS="$ac_save_LDFLAGS"
6357 # Autoconf claims to find X library and include dirs for us.
6358 if test "$no_x" = "yes"
6359 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6360 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6365 if test "$with_x11" = "yes"; then
6366 { test "$extra_verbose" = "yes" && cat << \EOF
6367 Defining HAVE_X_WINDOWS
6369 cat >> confdefs.h <<\EOF
6370 #define HAVE_X_WINDOWS 1
6374 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6375 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6378 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6379 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6380 echo "configure:6381: checking for Xm/Xm.h" >&5
6382 cat > conftest.$ac_ext <<EOF
6383 #line 6384 "configure"
6384 #include "confdefs.h"
6387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6388 { (eval echo configure:6389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6389 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6390 if test -z "$ac_err"; then
6392 eval "ac_cv_header_$ac_safe=yes"
6395 echo "configure: failed program was:" >&5
6396 cat conftest.$ac_ext >&5
6398 eval "ac_cv_header_$ac_safe=no"
6401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6402 echo "$ac_t""yes" 1>&6
6404 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6405 echo "configure:6406: checking for XmStringFree in -lXm" >&5
6406 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6408 xe_check_libs=" -lXm "
6409 cat > conftest.$ac_ext <<EOF
6410 #line 6411 "configure"
6411 #include "confdefs.h"
6412 /* Override any gcc2 internal prototype to avoid an error. */
6413 /* We use char because int might match the return type of a gcc2
6414 builtin and then its argument prototype would still apply. */
6415 char XmStringFree();
6421 if { (eval echo configure:6422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6423 eval "ac_cv_lib_$ac_lib_var=yes"
6425 echo "configure: failed program was:" >&5
6426 cat conftest.$ac_ext >&5
6428 eval "ac_cv_lib_$ac_lib_var=no"
6433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6434 echo "$ac_t""yes" 1>&6
6437 echo "$ac_t""no" 1>&6
6442 echo "$ac_t""no" 1>&6
6446 if test "$got_motif" != "yes"; then
6447 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" \
6448 "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6449 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6450 if test -d "$lib_dir" -a -d "$inc_dir"; then
6451 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6452 x_libraries="$lib_dir $x_libraries"
6453 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6455 case "$x_includes" in "$inc_dir"* ) ;; *)
6456 x_includes="$inc_dir $x_includes"
6457 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6463 for rel in "X11R6" "X11R5" "X11R4"; do
6464 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6465 if test -d "$lib_dir" -a -d "$inc_dir"; then
6466 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6467 x_libraries="$x_libraries $lib_dir"
6468 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6470 case "$x_includes" in "$inc_dir"* ) ;; *)
6471 x_includes="$x_includes $inc_dir"
6472 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6478 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 ;;
6481 ld_switch_x_site="$X_LIBS"
6484 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6485 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6486 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6488 runpath="" runpath_dirs=""
6489 if test -n "$LD_RUN_PATH"; then
6490 runpath="$LD_RUN_PATH"
6491 elif test "$GCC" = "yes"; then
6492 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6493 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6494 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6495 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6496 case "$arg" in P,* | -L* | -R* )
6497 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6499 xe_runpath_dir="$dir"
6500 test "$xe_runpath_dir" != "/lib" -a \
6501 "$xe_runpath_dir" != "/usr/lib" -a \
6502 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6503 eval "$xe_add_unique_runpath_dir"
6508 ld_switch_run="$ld_switch_run_save"
6511 for arg in $ld_switch_site $ld_switch_x_site; do
6512 case "$arg" in -L*) {
6513 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6514 test "$xe_runpath_dir" != "/lib" -a \
6515 "$xe_runpath_dir" != "/usr/lib" -a \
6516 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6517 eval "$xe_add_unique_runpath_dir"
6520 if test "$opsys $need_motif" = "sol2 yes"; then
6521 xe_runpath_dir="/opt/SUNWdt/lib";
6522 eval "$xe_add_unique_runpath_dir";
6525 if test -n "$runpath"; then
6526 ld_switch_run="${dash_r}${runpath}"
6528 if test "$GCC" = "yes"; then
6529 set x $ld_switch_run; shift; ld_switch_run=""
6530 while test -n "$1"; do
6532 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6533 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6535 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6540 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6545 if test "$extra_verbose" = "yes"; then
6546 echo; echo "X11 compilation variables:"
6547 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6552 if test "$x_includes" != NONE; then
6553 for i in $x_includes; do
6554 if test -d "$i/bitmaps"; then
6555 bitmapdirs="$i/bitmaps:$bitmapdirs"
6557 if test -d "$i/X11/bitmaps"; then
6558 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6561 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6563 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6564 Defining BITMAPDIR = "$bitmapdirs"
6566 cat >> confdefs.h <<EOF
6567 #define BITMAPDIR "$bitmapdirs"
6572 echo "checking for X defines extracted by xmkmf" 1>&6
6573 echo "configure:6574: checking for X defines extracted by xmkmf" >&5
6575 if mkdir conftestdir; then
6577 cat > Imakefile <<'EOF'
6579 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6581 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6582 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6583 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6587 for word in $xmkmf_defines; do
6591 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6593 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6596 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6597 if test "$val" = "1"
6598 then { test "$extra_verbose" = "yes" && cat << EOF
6601 cat >> confdefs.h <<EOF
6606 else { test "$extra_verbose" = "yes" && cat << EOF
6607 Defining $sym = $val
6609 cat >> confdefs.h <<EOF
6620 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6621 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6622 echo "configure:6623: checking for X11/Intrinsic.h" >&5
6624 cat > conftest.$ac_ext <<EOF
6625 #line 6626 "configure"
6626 #include "confdefs.h"
6627 #include <X11/Intrinsic.h>
6629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6630 { (eval echo configure:6631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6632 if test -z "$ac_err"; then
6634 eval "ac_cv_header_$ac_safe=yes"
6637 echo "configure: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6640 eval "ac_cv_header_$ac_safe=no"
6643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6644 echo "$ac_t""yes" 1>&6
6647 echo "$ac_t""no" 1>&6
6648 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6653 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6654 echo "configure:6655: checking for XOpenDisplay in -lX11" >&5
6655 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6657 xe_check_libs=" -lX11 "
6658 cat > conftest.$ac_ext <<EOF
6659 #line 6660 "configure"
6660 #include "confdefs.h"
6661 /* Override any gcc2 internal prototype to avoid an error. */
6662 /* We use char because int might match the return type of a gcc2
6663 builtin and then its argument prototype would still apply. */
6664 char XOpenDisplay();
6670 if { (eval echo configure:6671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6672 eval "ac_cv_lib_$ac_lib_var=yes"
6674 echo "configure: failed program was:" >&5
6675 cat conftest.$ac_ext >&5
6677 eval "ac_cv_lib_$ac_lib_var=no"
6682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6683 echo "$ac_t""yes" 1>&6
6686 echo "$ac_t""no" 1>&6
6690 if test "$have_lib_x11" != "yes"; then
6692 xe_msg_checking="for XGetFontProperty in -lX11"
6693 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6694 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6695 echo "configure:6696: checking "$xe_msg_checking"" >&5
6696 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6698 xe_check_libs=" -lX11 -b i486-linuxaout"
6699 cat > conftest.$ac_ext <<EOF
6700 #line 6701 "configure"
6701 #include "confdefs.h"
6702 /* Override any gcc2 internal prototype to avoid an error. */
6703 /* We use char because int might match the return type of a gcc2
6704 builtin and then its argument prototype would still apply. */
6705 char XGetFontProperty();
6711 if { (eval echo configure:6712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6713 eval "ac_cv_lib_$ac_lib_var=yes"
6715 echo "configure: failed program was:" >&5
6716 cat conftest.$ac_ext >&5
6718 eval "ac_cv_lib_$ac_lib_var=no"
6723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6724 echo "$ac_t""yes" 1>&6
6725 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6727 echo "$ac_t""no" 1>&6
6728 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6734 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6737 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6738 echo "configure:6739: checking for XShapeSelectInput in -lXext" >&5
6739 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6741 xe_check_libs=" -lXext "
6742 cat > conftest.$ac_ext <<EOF
6743 #line 6744 "configure"
6744 #include "confdefs.h"
6745 /* Override any gcc2 internal prototype to avoid an error. */
6746 /* We use char because int might match the return type of a gcc2
6747 builtin and then its argument prototype would still apply. */
6748 char XShapeSelectInput();
6754 if { (eval echo configure:6755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6756 eval "ac_cv_lib_$ac_lib_var=yes"
6758 echo "configure: failed program was:" >&5
6759 cat conftest.$ac_ext >&5
6761 eval "ac_cv_lib_$ac_lib_var=no"
6766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6767 echo "$ac_t""yes" 1>&6
6768 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6770 echo "$ac_t""no" 1>&6
6776 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6777 echo "configure:6778: checking for XtOpenDisplay in -lXt" >&5
6778 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6780 xe_check_libs=" -lXt "
6781 cat > conftest.$ac_ext <<EOF
6782 #line 6783 "configure"
6783 #include "confdefs.h"
6784 /* Override any gcc2 internal prototype to avoid an error. */
6785 /* We use char because int might match the return type of a gcc2
6786 builtin and then its argument prototype would still apply. */
6787 char XtOpenDisplay();
6793 if { (eval echo configure:6794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6795 eval "ac_cv_lib_$ac_lib_var=yes"
6797 echo "configure: failed program was:" >&5
6798 cat conftest.$ac_ext >&5
6800 eval "ac_cv_lib_$ac_lib_var=no"
6805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6806 echo "$ac_t""yes" 1>&6
6807 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6809 echo "$ac_t""no" 1>&6
6810 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6815 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6816 echo "configure:6817: checking the version of X11 being used" >&5
6817 cat > conftest.$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6820 #include <X11/Intrinsic.h>
6821 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6823 if { (eval echo configure:6824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6825 ./conftest foobar; x11_release=$?
6828 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6834 echo "$ac_t""R${x11_release}" 1>&6
6835 { test "$extra_verbose" = "yes" && cat << EOF
6836 Defining THIS_IS_X11R${x11_release}
6838 cat >> confdefs.h <<EOF
6839 #define THIS_IS_X11R${x11_release} 1
6844 if test "${x11_release}" = "4"; then
6845 case "$with_widgets" in
6846 "" | "no") with_widgets=no ;;
6847 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6851 for ac_func in XConvertCase
6853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6854 echo "configure:6855: checking for $ac_func" >&5
6856 cat > conftest.$ac_ext <<EOF
6857 #line 6858 "configure"
6858 #include "confdefs.h"
6859 /* System header to define __stub macros and hopefully few prototypes,
6860 which can conflict with char $ac_func(); below. */
6862 /* Override any gcc2 internal prototype to avoid an error. */
6863 /* We use char because int might match the return type of a gcc2
6864 builtin and then its argument prototype would still apply. */
6869 /* The GNU C library defines this for functions which it implements
6870 to always fail with ENOSYS. Some functions are actually named
6871 something starting with __ and the normal name is an alias. */
6872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6880 if { (eval echo configure:6881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6882 eval "ac_cv_func_$ac_func=yes"
6884 echo "configure: failed program was:" >&5
6885 cat conftest.$ac_ext >&5
6887 eval "ac_cv_func_$ac_func=no"
6891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6892 echo "$ac_t""yes" 1>&6
6893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6894 { test "$extra_verbose" = "yes" && cat << EOF
6895 Defining $ac_tr_func
6897 cat >> confdefs.h <<EOF
6898 #define $ac_tr_func 1
6903 echo "$ac_t""no" 1>&6
6908 for ac_hdr in X11/Xlocale.h
6910 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6912 echo "configure:6913: checking for $ac_hdr" >&5
6914 cat > conftest.$ac_ext <<EOF
6915 #line 6916 "configure"
6916 #include "confdefs.h"
6919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6920 { (eval echo configure:6921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6922 if test -z "$ac_err"; then
6924 eval "ac_cv_header_$ac_safe=yes"
6927 echo "configure: failed program was:" >&5
6928 cat conftest.$ac_ext >&5
6930 eval "ac_cv_header_$ac_safe=no"
6933 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6934 echo "$ac_t""yes" 1>&6
6935 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6936 { test "$extra_verbose" = "yes" && cat << EOF
6939 cat >> confdefs.h <<EOF
6940 #define $ac_tr_hdr 1
6945 echo "$ac_t""no" 1>&6
6950 for ac_func in XRegisterIMInstantiateCallback
6952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6953 echo "configure:6954: checking for $ac_func" >&5
6955 cat > conftest.$ac_ext <<EOF
6956 #line 6957 "configure"
6957 #include "confdefs.h"
6958 /* System header to define __stub macros and hopefully few prototypes,
6959 which can conflict with char $ac_func(); below. */
6961 /* Override any gcc2 internal prototype to avoid an error. */
6962 /* We use char because int might match the return type of a gcc2
6963 builtin and then its argument prototype would still apply. */
6968 /* The GNU C library defines this for functions which it implements
6969 to always fail with ENOSYS. Some functions are actually named
6970 something starting with __ and the normal name is an alias. */
6971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6979 if { (eval echo configure:6980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6981 eval "ac_cv_func_$ac_func=yes"
6983 echo "configure: failed program was:" >&5
6984 cat conftest.$ac_ext >&5
6986 eval "ac_cv_func_$ac_func=no"
6990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6991 echo "$ac_t""yes" 1>&6
6992 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6993 { test "$extra_verbose" = "yes" && cat << EOF
6994 Defining $ac_tr_func
6996 cat >> confdefs.h <<EOF
6997 #define $ac_tr_func 1
7002 echo "$ac_t""no" 1>&6
7006 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
7007 echo "configure:7008: checking for standard XRegisterIMInstantiateCallback prototype" >&5
7008 cat > conftest.$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7012 #define NeedFunctionPrototypes 1
7013 #include <X11/Xlib.h>
7014 extern Bool XRegisterIMInstantiateCallback(
7015 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
7021 if { (eval echo configure:7022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7023 echo "$ac_t""yes" 1>&6
7025 echo "configure: failed program was:" >&5
7026 cat conftest.$ac_ext >&5
7028 echo "$ac_t""no" 1>&6
7029 { test "$extra_verbose" = "yes" && cat << \EOF
7030 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
7032 cat >> confdefs.h <<\EOF
7033 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
7040 test -z "$with_xmu" && {
7041 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
7042 echo "configure:7043: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
7043 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
7045 xe_check_libs=" -lXmu "
7046 cat > conftest.$ac_ext <<EOF
7047 #line 7048 "configure"
7048 #include "confdefs.h"
7049 /* Override any gcc2 internal prototype to avoid an error. */
7050 /* We use char because int might match the return type of a gcc2
7051 builtin and then its argument prototype would still apply. */
7052 char XmuReadBitmapDataFromFile();
7055 XmuReadBitmapDataFromFile()
7058 if { (eval echo configure:7059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7060 eval "ac_cv_lib_$ac_lib_var=yes"
7062 echo "configure: failed program was:" >&5
7063 cat conftest.$ac_ext >&5
7065 eval "ac_cv_lib_$ac_lib_var=no"
7070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7071 echo "$ac_t""yes" 1>&6
7074 echo "$ac_t""no" 1>&6
7079 if test "$with_xmu" = "no"; then
7080 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
7081 echo " xemacs will be linked with \"xmu.o\""
7084 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
7085 { test "$extra_verbose" = "yes" && cat << \EOF
7088 cat >> confdefs.h <<\EOF
7096 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
7097 echo "configure:7098: checking for main in -lXbsd" >&5
7098 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
7100 xe_check_libs=" -lXbsd "
7101 cat > conftest.$ac_ext <<EOF
7102 #line 7103 "configure"
7103 #include "confdefs.h"
7109 if { (eval echo configure:7110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7111 eval "ac_cv_lib_$ac_lib_var=yes"
7113 echo "configure: failed program was:" >&5
7114 cat conftest.$ac_ext >&5
7116 eval "ac_cv_lib_$ac_lib_var=no"
7121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7122 echo "$ac_t""yes" 1>&6
7123 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
7125 echo "$ac_t""no" 1>&6
7130 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
7131 if test "$GCC" = "yes"; then
7132 echo $ac_n "checking for name of AIX gcc threads option""... $ac_c" 1>&6
7133 echo "configure:7134: checking for name of AIX gcc threads option" >&5
7134 case `$CC -v --help 2>&1` in
7135 *-mthreads*) aix_threads=-mthreads ;;
7136 *) aix_threads=-pthread ;;
7138 echo "$ac_t""$aix_threads" 1>&6
7139 X_CFLAGS="$aix_threads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$aix_threads\" to \$X_CFLAGS"; fi
7140 libs_x="$aix_threads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$aix_threads\" to \$libs_x"; fi
7142 case "$CC" in *_r) : ;;
7146 echo $ac_n "checking size of short""... $ac_c" 1>&6
7147 echo "configure:7148: checking size of short" >&5
7149 cat > conftest.$ac_ext <<EOF
7150 #line 7151 "configure"
7151 #include "confdefs.h"
7155 FILE *f=fopen("conftestval", "w");
7157 fprintf(f, "%d\n", sizeof(short));
7161 if { (eval echo configure:7162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7163 ac_cv_sizeof_short=`cat conftestval`
7166 echo "configure: failed program was:" >&5
7167 cat conftest.$ac_ext >&5
7169 ac_cv_sizeof_short=0
7172 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7173 { test "$extra_verbose" = "yes" && cat << EOF
7174 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
7176 cat >> confdefs.h <<EOF
7177 #define SIZEOF_SHORT $ac_cv_sizeof_short
7182 test "$ac_cv_sizeof_short" = 0 && CC="$xe_save_CC" ;;
7188 if test "$with_msw" != "no"; then
7189 echo "checking for MS-Windows" 1>&6
7190 echo "configure:7191: checking for MS-Windows" >&5
7192 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7193 echo "configure:7194: checking for main in -lgdi32" >&5
7194 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7196 xe_check_libs=" -lgdi32 "
7197 cat > conftest.$ac_ext <<EOF
7198 #line 7199 "configure"
7199 #include "confdefs.h"
7205 if { (eval echo configure:7206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7207 eval "ac_cv_lib_$ac_lib_var=yes"
7209 echo "configure: failed program was:" >&5
7210 cat conftest.$ac_ext >&5
7212 eval "ac_cv_lib_$ac_lib_var=no"
7217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7218 echo "$ac_t""yes" 1>&6
7221 echo "$ac_t""no" 1>&6
7225 if test "$with_msw" = "yes"; then
7226 { test "$extra_verbose" = "yes" && cat << \EOF
7227 Defining HAVE_MS_WINDOWS
7229 cat >> confdefs.h <<\EOF
7230 #define HAVE_MS_WINDOWS 1
7235 if test "$with_netinstall" = "yes"; then
7236 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7237 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7238 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7241 install_pp="$srcdir/lib-src/installexe.sh"
7242 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lkernel32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lkernel32 -lwinspool\" to \$libs_system"; fi
7243 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7244 if test "$window_system" != x11; then
7246 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7247 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7248 echo " xemacs will be linked with \"scrollbar-msw.o\""
7250 test "$with_menubars" != "no" && with_menubars=msw \
7251 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7252 echo " xemacs will be linked with \"menubar-msw.o\""
7254 test "$with_toolbars" != "no" && with_toolbars=msw \
7255 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7256 echo " xemacs will be linked with \"toolbar-msw.o\""
7258 test "$with_dialogs" != "no" && with_dialogs=msw \
7259 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7260 echo " xemacs will be linked with \"dialog-msw.o\""
7262 test "$with_widgets" != "no" && with_widgets=msw
7264 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7265 echo " xemacs will be linked with \"scrollbar-msw.o\""
7267 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7268 echo " xemacs will be linked with \"menubar-msw.o\""
7270 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7271 echo " xemacs will be linked with \"toolbar-msw.o\""
7273 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7274 echo " xemacs will be linked with \"dialog-msw.o\""
7277 cat > conftest.$ac_ext <<EOF
7278 #line 7279 "configure"
7279 #include "confdefs.h"
7281 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7283 if { (eval echo configure:7284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7285 need_event_unixoid=yes; { test "$extra_verbose" = "yes" && cat << \EOF
7286 Defining HAVE_MSG_SELECT
7288 cat >> confdefs.h <<\EOF
7289 #define HAVE_MSG_SELECT 1
7295 echo "configure: failed program was:" >&5
7296 cat conftest.$ac_ext >&5
7299 with_file_coding=yes
7300 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
7301 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\""
7308 test -z "$window_system" && window_system="none"
7310 if test "$window_system" = "none"; then
7311 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7313 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7314 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7316 eval "with_${feature}=no"
7319 test -z "$with_toolbars" && with_toolbars=yes
7322 if test "$with_msw" != "yes"; then
7323 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7325 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7326 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7328 eval "with_${feature}=no"
7334 if test "$with_x11" != "yes"; then
7335 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7337 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7338 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7340 eval "with_${feature}=no"
7344 if test "$with_x11" = "yes"; then
7345 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7346 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7347 echo "configure:7348: checking for X11/extensions/shape.h" >&5
7349 cat > conftest.$ac_ext <<EOF
7350 #line 7351 "configure"
7351 #include "confdefs.h"
7352 #include <X11/extensions/shape.h>
7354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7355 { (eval echo configure:7356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7357 if test -z "$ac_err"; then
7359 eval "ac_cv_header_$ac_safe=yes"
7362 echo "configure: failed program was:" >&5
7363 cat conftest.$ac_ext >&5
7365 eval "ac_cv_header_$ac_safe=no"
7368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7369 echo "$ac_t""yes" 1>&6
7371 { test "$extra_verbose" = "yes" && cat << \EOF
7372 Defining HAVE_BALLOON_HELP
7374 cat >> confdefs.h <<\EOF
7375 #define HAVE_BALLOON_HELP 1
7379 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7380 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7383 echo "$ac_t""no" 1>&6
7390 case "$window_system" in
7391 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7392 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7395 test "$with_gnome" = "yes" && echo " Using GNOME."
7396 test "$with_gnome" = "no" && echo " Using GTK."
7398 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7401 case "$x_libraries" in *X11R4* )
7402 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7403 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7406 echo "checking for WM_COMMAND option" 1>&6
7407 echo "configure:7408: checking for WM_COMMAND option" >&5;
7408 if test "$with_wmcommand" != "no"; then
7409 { test "$extra_verbose" = "yes" && cat << \EOF
7410 Defining HAVE_WMCOMMAND
7412 cat >> confdefs.h <<\EOF
7413 #define HAVE_WMCOMMAND 1
7419 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7420 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7421 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7422 echo "configure:7423: checking for X11/Xauth.h" >&5
7424 cat > conftest.$ac_ext <<EOF
7425 #line 7426 "configure"
7426 #include "confdefs.h"
7427 #include <X11/Xauth.h>
7429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7430 { (eval echo configure:7431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7432 if test -z "$ac_err"; then
7434 eval "ac_cv_header_$ac_safe=yes"
7437 echo "configure: failed program was:" >&5
7438 cat conftest.$ac_ext >&5
7440 eval "ac_cv_header_$ac_safe=no"
7443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7444 echo "$ac_t""yes" 1>&6
7447 echo "$ac_t""no" 1>&6
7451 test -z "$with_xauth" && {
7452 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7453 echo "configure:7454: checking for XauGetAuthByAddr in -lXau" >&5
7454 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7456 xe_check_libs=" -lXau "
7457 cat > conftest.$ac_ext <<EOF
7458 #line 7459 "configure"
7459 #include "confdefs.h"
7460 /* Override any gcc2 internal prototype to avoid an error. */
7461 /* We use char because int might match the return type of a gcc2
7462 builtin and then its argument prototype would still apply. */
7463 char XauGetAuthByAddr();
7469 if { (eval echo configure:7470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7471 eval "ac_cv_lib_$ac_lib_var=yes"
7473 echo "configure: failed program was:" >&5
7474 cat conftest.$ac_ext >&5
7476 eval "ac_cv_lib_$ac_lib_var=no"
7481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7482 echo "$ac_t""yes" 1>&6
7485 echo "$ac_t""no" 1>&6
7490 test -z "$with_xauth" && with_xauth=yes
7491 if test "$with_xauth" = "yes"; then
7492 { test "$extra_verbose" = "yes" && cat << \EOF
7495 cat >> confdefs.h <<\EOF
7496 #define HAVE_XAUTH 1
7502 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
7510 if test "$with_tooltalk" != "no" ; then
7511 for dir in "" "Tt/" "desktop/" ; do
7512 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7513 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7514 echo "configure:7515: checking for ${dir}tt_c.h" >&5
7516 cat > conftest.$ac_ext <<EOF
7517 #line 7518 "configure"
7518 #include "confdefs.h"
7519 #include <${dir}tt_c.h>
7521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7522 { (eval echo configure:7523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7524 if test -z "$ac_err"; then
7526 eval "ac_cv_header_$ac_safe=yes"
7529 echo "configure: failed program was:" >&5
7530 cat conftest.$ac_ext >&5
7532 eval "ac_cv_header_$ac_safe=no"
7535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7536 echo "$ac_t""yes" 1>&6
7537 tt_c_h_file="${dir}tt_c.h"; break
7539 echo "$ac_t""no" 1>&6
7543 if test -z "$tt_c_h_file"; then
7544 if test "$with_tooltalk" = "yes"; then
7545 (echo "$progname: Usage error:"
7546 echo " " "Unable to find required tooltalk header files."
7547 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7552 if test "$with_tooltalk" != "no" ; then
7553 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7555 xe_msg_checking="for tt_message_create in -ltt"
7556 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7557 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7558 echo "configure:7559: checking "$xe_msg_checking"" >&5
7559 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7561 xe_check_libs=" -ltt $extra_libs"
7562 cat > conftest.$ac_ext <<EOF
7563 #line 7564 "configure"
7564 #include "confdefs.h"
7565 /* Override any gcc2 internal prototype to avoid an error. */
7566 /* We use char because int might match the return type of a gcc2
7567 builtin and then its argument prototype would still apply. */
7568 char tt_message_create();
7574 if { (eval echo configure:7575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7576 eval "ac_cv_lib_$ac_lib_var=yes"
7578 echo "configure: failed program was:" >&5
7579 cat conftest.$ac_ext >&5
7581 eval "ac_cv_lib_$ac_lib_var=no"
7586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7587 echo "$ac_t""yes" 1>&6
7588 tt_libs="-ltt $extra_libs"; break
7590 echo "$ac_t""no" 1>&6
7596 if test -z "$tt_libs"; then
7597 if test "$with_tooltalk" = "yes"; then
7598 (echo "$progname: Usage error:"
7599 echo " " "Unable to find required tooltalk libraries."
7600 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7605 test -z "$with_tooltalk" && with_tooltalk=yes
7606 if test "$with_tooltalk" = "yes"; then
7607 { test "$extra_verbose" = "yes" && cat << \EOF
7610 cat >> confdefs.h <<\EOF
7615 { test "$extra_verbose" = "yes" && cat << EOF
7616 Defining TT_C_H_FILE = "$tt_c_h_file"
7618 cat >> confdefs.h <<EOF
7619 #define TT_C_H_FILE "$tt_c_h_file"
7623 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7624 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7625 echo " xemacs will be linked with \"tooltalk.o\""
7629 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7630 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7631 echo "configure:7632: checking for Dt/Dt.h" >&5
7633 cat > conftest.$ac_ext <<EOF
7634 #line 7635 "configure"
7635 #include "confdefs.h"
7638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7639 { (eval echo configure:7640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7641 if test -z "$ac_err"; then
7643 eval "ac_cv_header_$ac_safe=yes"
7646 echo "configure: failed program was:" >&5
7647 cat conftest.$ac_ext >&5
7649 eval "ac_cv_header_$ac_safe=no"
7652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7653 echo "$ac_t""yes" 1>&6
7656 echo "$ac_t""no" 1>&6
7660 test -z "$with_cde" && {
7661 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7662 echo "configure:7663: checking for DtDndDragStart in -lDtSvc" >&5
7663 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7665 xe_check_libs=" -lDtSvc "
7666 cat > conftest.$ac_ext <<EOF
7667 #line 7668 "configure"
7668 #include "confdefs.h"
7669 /* Override any gcc2 internal prototype to avoid an error. */
7670 /* We use char because int might match the return type of a gcc2
7671 builtin and then its argument prototype would still apply. */
7672 char DtDndDragStart();
7678 if { (eval echo configure:7679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7680 eval "ac_cv_lib_$ac_lib_var=yes"
7682 echo "configure: failed program was:" >&5
7683 cat conftest.$ac_ext >&5
7685 eval "ac_cv_lib_$ac_lib_var=no"
7690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7691 echo "$ac_t""yes" 1>&6
7694 echo "$ac_t""no" 1>&6
7699 test -z "$with_cde" && with_cde=yes
7700 if test "$with_dragndrop" = no; then
7701 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7704 if test "$with_cde" = "yes" ; then
7705 { test "$extra_verbose" = "yes" && cat << \EOF
7708 cat >> confdefs.h <<\EOF
7713 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7714 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7715 with_tooltalk=yes # CDE requires Tooltalk
7716 need_motif=yes # CDE requires Motif
7719 test "$window_system" != "x11" && with_offix=no
7720 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7721 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7724 if test "$with_dragndrop" = no; then
7725 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7728 if test "$with_cde" = yes; then
7729 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7732 test -z "$with_offix" && with_offix=no
7733 if test "$with_offix" = "yes"; then
7734 { test "$extra_verbose" = "yes" && cat << \EOF
7735 Defining HAVE_OFFIX_DND
7737 cat >> confdefs.h <<\EOF
7738 #define HAVE_OFFIX_DND 1
7742 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7743 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7745 if test "$with_gtk" = "yes"; then
7746 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7749 if test "$with_dragndrop" != "no" ; then
7750 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7751 echo "configure:7752: checking if drag and drop API is needed" >&5
7752 if test -n "$dragndrop_proto" ; then
7754 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7755 { test "$extra_verbose" = "yes" && cat << \EOF
7756 Defining HAVE_DRAGNDROP
7758 cat >> confdefs.h <<\EOF
7759 #define HAVE_DRAGNDROP 1
7763 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7766 echo "$ac_t""no" 1>&6
7770 echo "checking for LDAP" 1>&6
7771 echo "configure:7772: checking for LDAP" >&5
7772 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7773 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7774 echo "configure:7775: checking for ldap.h" >&5
7776 cat > conftest.$ac_ext <<EOF
7777 #line 7778 "configure"
7778 #include "confdefs.h"
7781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7782 { (eval echo configure:7783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7784 if test -z "$ac_err"; then
7786 eval "ac_cv_header_$ac_safe=yes"
7789 echo "configure: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7792 eval "ac_cv_header_$ac_safe=no"
7795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7796 echo "$ac_t""yes" 1>&6
7799 echo "$ac_t""no" 1>&6
7803 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7804 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7805 echo "configure:7806: checking for lber.h" >&5
7807 cat > conftest.$ac_ext <<EOF
7808 #line 7809 "configure"
7809 #include "confdefs.h"
7812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7813 { (eval echo configure:7814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7815 if test -z "$ac_err"; then
7817 eval "ac_cv_header_$ac_safe=yes"
7820 echo "configure: failed program was:" >&5
7821 cat conftest.$ac_ext >&5
7823 eval "ac_cv_header_$ac_safe=no"
7826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7827 echo "$ac_t""yes" 1>&6
7830 echo "$ac_t""no" 1>&6
7834 if test "$with_ldap" != "no"; then
7836 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7837 echo "configure:7838: checking for ldap_search in -lldap" >&5
7838 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7840 xe_check_libs=" -lldap "
7841 cat > conftest.$ac_ext <<EOF
7842 #line 7843 "configure"
7843 #include "confdefs.h"
7844 /* Override any gcc2 internal prototype to avoid an error. */
7845 /* We use char because int might match the return type of a gcc2
7846 builtin and then its argument prototype would still apply. */
7853 if { (eval echo configure:7854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7855 eval "ac_cv_lib_$ac_lib_var=yes"
7857 echo "configure: failed program was:" >&5
7858 cat conftest.$ac_ext >&5
7860 eval "ac_cv_lib_$ac_lib_var=no"
7865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7866 echo "$ac_t""yes" 1>&6
7867 with_ldap_nolber=yes
7869 echo "$ac_t""no" 1>&6
7874 test "$with_ldap_nolber" = "no" && {
7875 xe_msg_checking="for ldap_open in -lldap"
7876 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7877 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7878 echo "configure:7879: checking "$xe_msg_checking"" >&5
7879 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7881 xe_check_libs=" -lldap -llber"
7882 cat > conftest.$ac_ext <<EOF
7883 #line 7884 "configure"
7884 #include "confdefs.h"
7885 /* Override any gcc2 internal prototype to avoid an error. */
7886 /* We use char because int might match the return type of a gcc2
7887 builtin and then its argument prototype would still apply. */
7894 if { (eval echo configure:7895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7896 eval "ac_cv_lib_$ac_lib_var=yes"
7898 echo "configure: failed program was:" >&5
7899 cat conftest.$ac_ext >&5
7901 eval "ac_cv_lib_$ac_lib_var=no"
7906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7907 echo "$ac_t""yes" 1>&6
7910 echo "$ac_t""no" 1>&6
7915 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7916 xe_msg_checking="for ldap_open in -lldap"
7917 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7918 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7919 echo "configure:7920: checking "$xe_msg_checking"" >&5
7920 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7922 xe_check_libs=" -lldap -llber -lkrb"
7923 cat > conftest.$ac_ext <<EOF
7924 #line 7925 "configure"
7925 #include "confdefs.h"
7926 /* Override any gcc2 internal prototype to avoid an error. */
7927 /* We use char because int might match the return type of a gcc2
7928 builtin and then its argument prototype would still apply. */
7935 if { (eval echo configure:7936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7937 eval "ac_cv_lib_$ac_lib_var=yes"
7939 echo "configure: failed program was:" >&5
7940 cat conftest.$ac_ext >&5
7942 eval "ac_cv_lib_$ac_lib_var=no"
7947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7948 echo "$ac_t""yes" 1>&6
7951 echo "$ac_t""no" 1>&6
7956 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7957 xe_msg_checking="for ldap_open in -lldap"
7958 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7959 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7960 echo "configure:7961: checking "$xe_msg_checking"" >&5
7961 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7963 xe_check_libs=" -lldap -llber -lkrb -ldes"
7964 cat > conftest.$ac_ext <<EOF
7965 #line 7966 "configure"
7966 #include "confdefs.h"
7967 /* Override any gcc2 internal prototype to avoid an error. */
7968 /* We use char because int might match the return type of a gcc2
7969 builtin and then its argument prototype would still apply. */
7976 if { (eval echo configure:7977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7978 eval "ac_cv_lib_$ac_lib_var=yes"
7980 echo "configure: failed program was:" >&5
7981 cat conftest.$ac_ext >&5
7983 eval "ac_cv_lib_$ac_lib_var=no"
7988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7989 echo "$ac_t""yes" 1>&6
7990 with_ldap_krbdes=yes
7992 echo "$ac_t""no" 1>&6
7997 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
7999 if test "$with_ldap" = "yes"; then
8000 { test "$extra_verbose" = "yes" && cat << \EOF
8003 cat >> confdefs.h <<\EOF
8008 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
8009 echo " xemacs will be linked with \"eldap.o\""
8011 if test "$with_ldap_nolber" = "yes" ; then
8012 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
8014 if test "$with_ldap_krb" = "yes" ; then
8015 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
8017 if test "$with_ldap_krbdes" = "yes" ; then
8018 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
8019 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
8021 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
8022 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
8024 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
8026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8027 echo "configure:8028: checking for $ac_func" >&5
8029 cat > conftest.$ac_ext <<EOF
8030 #line 8031 "configure"
8031 #include "confdefs.h"
8032 /* System header to define __stub macros and hopefully few prototypes,
8033 which can conflict with char $ac_func(); below. */
8035 /* Override any gcc2 internal prototype to avoid an error. */
8036 /* We use char because int might match the return type of a gcc2
8037 builtin and then its argument prototype would still apply. */
8042 /* The GNU C library defines this for functions which it implements
8043 to always fail with ENOSYS. Some functions are actually named
8044 something starting with __ and the normal name is an alias. */
8045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8053 if { (eval echo configure:8054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8055 eval "ac_cv_func_$ac_func=yes"
8057 echo "configure: failed program was:" >&5
8058 cat conftest.$ac_ext >&5
8060 eval "ac_cv_func_$ac_func=no"
8064 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8065 echo "$ac_t""yes" 1>&6
8066 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8067 { test "$extra_verbose" = "yes" && cat << EOF
8068 Defining $ac_tr_func
8070 cat >> confdefs.h <<EOF
8071 #define $ac_tr_func 1
8076 echo "$ac_t""no" 1>&6
8082 if test "$with_postgresql" != "no"; then
8083 echo "checking for PostgreSQL" 1>&6
8084 echo "configure:8085: checking for PostgreSQL" >&5
8086 for header_dir in "" "pgsql/" "postgresql/"; do
8087 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
8088 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
8089 echo "configure:8090: checking for ${header_dir}libpq-fe.h" >&5
8091 cat > conftest.$ac_ext <<EOF
8092 #line 8093 "configure"
8093 #include "confdefs.h"
8094 #include <${header_dir}libpq-fe.h>
8096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8097 { (eval echo configure:8098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8099 if test -z "$ac_err"; then
8101 eval "ac_cv_header_$ac_safe=yes"
8104 echo "configure: failed program was:" >&5
8105 cat conftest.$ac_ext >&5
8107 eval "ac_cv_header_$ac_safe=no"
8110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8111 echo "$ac_t""yes" 1>&6
8112 libpq_fe_h_file=${header_dir}libpq-fe.h; break
8114 echo "$ac_t""no" 1>&6
8119 test -n "$libpq_fe_h_file" && {
8120 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
8121 echo "configure:8122: checking for PQconnectdb in -lpq" >&5
8122 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
8124 xe_check_libs=" -lpq "
8125 cat > conftest.$ac_ext <<EOF
8126 #line 8127 "configure"
8127 #include "confdefs.h"
8128 /* Override any gcc2 internal prototype to avoid an error. */
8129 /* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8137 if { (eval echo configure:8138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8139 eval "ac_cv_lib_$ac_lib_var=yes"
8141 echo "configure: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8144 eval "ac_cv_lib_$ac_lib_var=no"
8149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8150 echo "$ac_t""yes" 1>&6
8153 echo "$ac_t""no" 1>&6
8158 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
8160 { test "$extra_verbose" = "yes" && cat << \EOF
8161 Defining HAVE_POSTGRESQL
8163 cat >> confdefs.h <<\EOF
8164 #define HAVE_POSTGRESQL 1
8169 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
8170 echo "configure:8171: checking for PQconnectStart in -lpq" >&5
8171 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
8173 xe_check_libs=" -lpq "
8174 cat > conftest.$ac_ext <<EOF
8175 #line 8176 "configure"
8176 #include "confdefs.h"
8177 /* Override any gcc2 internal prototype to avoid an error. */
8178 /* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8180 char PQconnectStart();
8186 if { (eval echo configure:8187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8188 eval "ac_cv_lib_$ac_lib_var=yes"
8190 echo "configure: failed program was:" >&5
8191 cat conftest.$ac_ext >&5
8193 eval "ac_cv_lib_$ac_lib_var=no"
8198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8199 echo "$ac_t""yes" 1>&6
8200 with_postgresqlv7=yes;
8201 { test "$extra_verbose" = "yes" && cat << \EOF
8202 Defining HAVE_POSTGRESQLV7
8204 cat >> confdefs.h <<\EOF
8205 #define HAVE_POSTGRESQLV7 1
8210 echo "$ac_t""no" 1>&6
8214 { test "$extra_verbose" = "yes" && cat << EOF
8215 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8217 cat >> confdefs.h <<EOF
8218 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8222 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8223 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8224 echo " xemacs will be linked with \"postgresql.o\""
8226 elif test "$with_postgresql" = "yes"; then
8227 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8232 if test "$window_system" != "none"; then
8233 echo "checking for graphics libraries" 1>&6
8234 echo "configure:8235: checking for graphics libraries" >&5
8240 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
8241 cygwin_top=`eval "dirname ${cygwin_top}"`;
8242 cygwin_top="${cygwin_top}/..";
8243 case "$window_system" in
8245 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
8246 incpath_xpm="-I${cygwin_top}/include/noX"
8256 if test -z "$with_xpm"; then
8257 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8258 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8259 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8260 echo "configure:8261: checking for Xpm - no older than 3.4f" >&5
8262 cat > conftest.$ac_ext <<EOF
8263 #line 8264 "configure"
8264 #include "confdefs.h"
8266 #include <X11/xpm.h>
8267 int main(int c, char **v) {
8269 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8270 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8272 if { (eval echo configure:8273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8274 ./conftest dummy_arg; xpm_status=$?;
8275 if test "$xpm_status" = "0"; then
8279 if test "$xpm_status" = "1"; then
8280 xpm_problem="Xpm library version and header file version don't match!"
8281 elif test "$xpm_status" = "2"; then
8282 xpm_problem="Xpm library version is too old!"
8284 xpm_problem="Internal xpm detection logic error!"
8287 *** WARNING *** $xpm_problem
8288 I'm not touching that with a 10-foot pole!
8289 If you really want to use the installed version of Xpm, rerun
8290 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8294 echo "configure: failed program was:" >&5
8295 cat conftest.$ac_ext >&5
8301 echo "$ac_t""$with_xpm" 1>&6
8303 if test "$with_xpm" = "yes"; then
8304 { test "$extra_verbose" = "yes" && cat << \EOF
8307 cat >> confdefs.h <<\EOF
8312 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8313 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8314 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8315 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8316 echo "configure:8317: checking for \"FOR_MSW\" xpm" >&5
8318 cat > conftest.$ac_ext <<EOF
8319 #line 8320 "configure"
8320 #include "confdefs.h"
8323 XpmCreatePixmapFromData()
8326 if { (eval echo configure:8327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8330 echo "configure: failed program was:" >&5
8331 cat conftest.$ac_ext >&5
8337 echo "$ac_t""$xpm_for_msw" 1>&6
8338 if test "$xpm_for_msw" = "yes"; then
8339 { test "$extra_verbose" = "yes" && cat << \EOF
8342 cat >> confdefs.h <<\EOF
8350 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8351 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8352 echo "configure:8353: checking for compface.h" >&5
8354 cat > conftest.$ac_ext <<EOF
8355 #line 8356 "configure"
8356 #include "confdefs.h"
8357 #include <compface.h>
8359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8360 { (eval echo configure:8361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8362 if test -z "$ac_err"; then
8364 eval "ac_cv_header_$ac_safe=yes"
8367 echo "configure: failed program was:" >&5
8368 cat conftest.$ac_ext >&5
8370 eval "ac_cv_header_$ac_safe=no"
8373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8374 echo "$ac_t""yes" 1>&6
8377 echo "$ac_t""no" 1>&6
8381 test -z "$with_xface" && {
8382 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8383 echo "configure:8384: checking for UnGenFace in -lcompface" >&5
8384 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8386 xe_check_libs=" -lcompface "
8387 cat > conftest.$ac_ext <<EOF
8388 #line 8389 "configure"
8389 #include "confdefs.h"
8390 /* Override any gcc2 internal prototype to avoid an error. */
8391 /* We use char because int might match the return type of a gcc2
8392 builtin and then its argument prototype would still apply. */
8399 if { (eval echo configure:8400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8401 eval "ac_cv_lib_$ac_lib_var=yes"
8403 echo "configure: failed program was:" >&5
8404 cat conftest.$ac_ext >&5
8406 eval "ac_cv_lib_$ac_lib_var=no"
8411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8412 echo "$ac_t""yes" 1>&6
8415 echo "$ac_t""no" 1>&6
8420 test -z "$with_xface" && with_xface=yes
8421 if test "$with_xface" = "yes"; then
8422 { test "$extra_verbose" = "yes" && cat << \EOF
8425 cat >> confdefs.h <<\EOF
8426 #define HAVE_XFACE 1
8430 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8433 if test "$with_gif" != "no"; then
8435 { test "$extra_verbose" = "yes" && cat << \EOF
8438 cat >> confdefs.h <<\EOF
8443 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8444 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8448 if test "$with_png $with_tiff" != "no no"; then
8450 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8451 echo "configure:8452: checking for inflate in -lc" >&5
8452 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8454 xe_check_libs=" -lc "
8455 cat > conftest.$ac_ext <<EOF
8456 #line 8457 "configure"
8457 #include "confdefs.h"
8458 /* Override any gcc2 internal prototype to avoid an error. */
8459 /* We use char because int might match the return type of a gcc2
8460 builtin and then its argument prototype would still apply. */
8467 if { (eval echo configure:8468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8469 eval "ac_cv_lib_$ac_lib_var=yes"
8471 echo "configure: failed program was:" >&5
8472 cat conftest.$ac_ext >&5
8474 eval "ac_cv_lib_$ac_lib_var=no"
8479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8480 echo "$ac_t""yes" 1>&6
8483 echo "$ac_t""no" 1>&6
8485 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8486 echo "configure:8487: checking for inflate in -lz" >&5
8487 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8489 xe_check_libs=" -lz "
8490 cat > conftest.$ac_ext <<EOF
8491 #line 8492 "configure"
8492 #include "confdefs.h"
8493 /* Override any gcc2 internal prototype to avoid an error. */
8494 /* We use char because int might match the return type of a gcc2
8495 builtin and then its argument prototype would still apply. */
8502 if { (eval echo configure:8503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8504 eval "ac_cv_lib_$ac_lib_var=yes"
8506 echo "configure: failed program was:" >&5
8507 cat conftest.$ac_ext >&5
8509 eval "ac_cv_lib_$ac_lib_var=no"
8514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8515 echo "$ac_t""yes" 1>&6
8516 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8518 echo "$ac_t""no" 1>&6
8520 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8521 echo "configure:8522: checking for inflate in -lgz" >&5
8522 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8524 xe_check_libs=" -lgz "
8525 cat > conftest.$ac_ext <<EOF
8526 #line 8527 "configure"
8527 #include "confdefs.h"
8528 /* Override any gcc2 internal prototype to avoid an error. */
8529 /* We use char because int might match the return type of a gcc2
8530 builtin and then its argument prototype would still apply. */
8537 if { (eval echo configure:8538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8539 eval "ac_cv_lib_$ac_lib_var=yes"
8541 echo "configure: failed program was:" >&5
8542 cat conftest.$ac_ext >&5
8544 eval "ac_cv_lib_$ac_lib_var=no"
8549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8550 echo "$ac_t""yes" 1>&6
8551 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8553 echo "$ac_t""no" 1>&6
8565 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8566 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8567 echo "configure:8568: checking for jpeglib.h" >&5
8569 cat > conftest.$ac_ext <<EOF
8570 #line 8571 "configure"
8571 #include "confdefs.h"
8572 #include <jpeglib.h>
8574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8575 { (eval echo configure:8576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8577 if test -z "$ac_err"; then
8579 eval "ac_cv_header_$ac_safe=yes"
8582 echo "configure: failed program was:" >&5
8583 cat conftest.$ac_ext >&5
8585 eval "ac_cv_header_$ac_safe=no"
8588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8589 echo "$ac_t""yes" 1>&6
8592 echo "$ac_t""no" 1>&6
8596 test -z "$with_jpeg" && {
8597 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8598 echo "configure:8599: checking for jpeg_destroy_decompress in -ljpeg" >&5
8599 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8601 xe_check_libs=" -ljpeg "
8602 cat > conftest.$ac_ext <<EOF
8603 #line 8604 "configure"
8604 #include "confdefs.h"
8605 /* Override any gcc2 internal prototype to avoid an error. */
8606 /* We use char because int might match the return type of a gcc2
8607 builtin and then its argument prototype would still apply. */
8608 char jpeg_destroy_decompress();
8611 jpeg_destroy_decompress()
8614 if { (eval echo configure:8615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8616 eval "ac_cv_lib_$ac_lib_var=yes"
8618 echo "configure: failed program was:" >&5
8619 cat conftest.$ac_ext >&5
8621 eval "ac_cv_lib_$ac_lib_var=no"
8626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8627 echo "$ac_t""yes" 1>&6
8630 echo "$ac_t""no" 1>&6
8635 test -z "$with_jpeg" && with_jpeg=yes
8636 if test "$with_jpeg" = "yes"; then
8637 { test "$extra_verbose" = "yes" && cat << \EOF
8640 cat >> confdefs.h <<\EOF
8645 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8649 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8650 echo "configure:8651: checking for pow" >&5
8652 cat > conftest.$ac_ext <<EOF
8653 #line 8654 "configure"
8654 #include "confdefs.h"
8655 /* System header to define __stub macros and hopefully few prototypes,
8656 which can conflict with char pow(); below. */
8658 /* Override any gcc2 internal prototype to avoid an error. */
8659 /* We use char because int might match the return type of a gcc2
8660 builtin and then its argument prototype would still apply. */
8665 /* The GNU C library defines this for functions which it implements
8666 to always fail with ENOSYS. Some functions are actually named
8667 something starting with __ and the normal name is an alias. */
8668 #if defined (__stub_pow) || defined (__stub___pow)
8676 if { (eval echo configure:8677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8678 eval "ac_cv_func_pow=yes"
8680 echo "configure: failed program was:" >&5
8681 cat conftest.$ac_ext >&5
8683 eval "ac_cv_func_pow=no"
8687 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8688 echo "$ac_t""yes" 1>&6
8691 echo "$ac_t""no" 1>&6
8695 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8696 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8697 echo "configure:8698: checking for png.h" >&5
8699 cat > conftest.$ac_ext <<EOF
8700 #line 8701 "configure"
8701 #include "confdefs.h"
8704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8705 { (eval echo configure:8706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8707 if test -z "$ac_err"; then
8709 eval "ac_cv_header_$ac_safe=yes"
8712 echo "configure: failed program was:" >&5
8713 cat conftest.$ac_ext >&5
8715 eval "ac_cv_header_$ac_safe=no"
8718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8719 echo "$ac_t""yes" 1>&6
8722 echo "$ac_t""no" 1>&6
8726 test -z "$with_png" && {
8727 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8728 echo "configure:8729: checking for png_read_image in -lpng" >&5
8729 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8731 xe_check_libs=" -lpng "
8732 cat > conftest.$ac_ext <<EOF
8733 #line 8734 "configure"
8734 #include "confdefs.h"
8735 /* Override any gcc2 internal prototype to avoid an error. */
8736 /* We use char because int might match the return type of a gcc2
8737 builtin and then its argument prototype would still apply. */
8738 char png_read_image();
8744 if { (eval echo configure:8745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8746 eval "ac_cv_lib_$ac_lib_var=yes"
8748 echo "configure: failed program was:" >&5
8749 cat conftest.$ac_ext >&5
8751 eval "ac_cv_lib_$ac_lib_var=no"
8756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8757 echo "$ac_t""yes" 1>&6
8760 echo "$ac_t""no" 1>&6
8765 if test -z "$with_png"; then
8766 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8767 echo "configure:8768: checking for workable png version information" >&5
8768 xe_check_libs="-lpng -lz"
8769 cat > conftest.$ac_ext <<EOF
8770 #line 8771 "configure"
8771 #include "confdefs.h"
8773 int main(int c, char **v) {
8774 if (c == 1) return 0;
8775 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8776 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8778 if { (eval echo configure:8779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8780 ./conftest dummy_arg; png_status=$?;
8781 if test "$png_status" = "0"; then
8785 if test "$png_status" = "1"; then
8786 png_problem="PNG library version and header file don't match!"
8787 elif test "$png_status" = "2"; then
8788 png_problem="PNG library version too old (pre 1.0.2)!"
8791 *** WARNING *** $png_problem
8792 I'm not touching that with a 10-foot pole!
8793 If you really want to use the installed version of libPNG, rerun
8794 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8798 echo "configure: failed program was:" >&5
8799 cat conftest.$ac_ext >&5
8805 echo "$ac_t""$with_png" 1>&6
8807 if test "$with_png" = "yes"; then
8808 { test "$extra_verbose" = "yes" && cat << \EOF
8811 cat >> confdefs.h <<\EOF
8816 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8819 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8820 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8821 echo "configure:8822: checking for tiffio.h" >&5
8823 cat > conftest.$ac_ext <<EOF
8824 #line 8825 "configure"
8825 #include "confdefs.h"
8828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8829 { (eval echo configure:8830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8831 if test -z "$ac_err"; then
8833 eval "ac_cv_header_$ac_safe=yes"
8836 echo "configure: failed program was:" >&5
8837 cat conftest.$ac_ext >&5
8839 eval "ac_cv_header_$ac_safe=no"
8842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8843 echo "$ac_t""yes" 1>&6
8846 echo "$ac_t""no" 1>&6
8850 test -z "$with_tiff" && {
8851 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8852 echo "configure:8853: checking for TIFFClientOpen in -ltiff" >&5
8853 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8855 xe_check_libs=" -ltiff "
8856 cat > conftest.$ac_ext <<EOF
8857 #line 8858 "configure"
8858 #include "confdefs.h"
8859 /* Override any gcc2 internal prototype to avoid an error. */
8860 /* We use char because int might match the return type of a gcc2
8861 builtin and then its argument prototype would still apply. */
8862 char TIFFClientOpen();
8868 if { (eval echo configure:8869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8870 eval "ac_cv_lib_$ac_lib_var=yes"
8872 echo "configure: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8875 eval "ac_cv_lib_$ac_lib_var=no"
8880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8881 echo "$ac_t""yes" 1>&6
8884 echo "$ac_t""no" 1>&6
8889 test -z "$with_tiff" && with_tiff=yes
8890 if test "$with_tiff" = "yes"; then
8891 { test "$extra_verbose" = "yes" && cat << \EOF
8894 cat >> confdefs.h <<\EOF
8899 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8904 if test "$with_gtk" = "yes"; then
8905 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8906 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8907 echo "configure:8908: checking for compface.h" >&5
8909 cat > conftest.$ac_ext <<EOF
8910 #line 8911 "configure"
8911 #include "confdefs.h"
8912 #include <compface.h>
8914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8915 { (eval echo configure:8916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8917 if test -z "$ac_err"; then
8919 eval "ac_cv_header_$ac_safe=yes"
8922 echo "configure: failed program was:" >&5
8923 cat conftest.$ac_ext >&5
8925 eval "ac_cv_header_$ac_safe=no"
8928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8929 echo "$ac_t""yes" 1>&6
8932 echo "$ac_t""no" 1>&6
8936 test -z "$with_xface" && {
8937 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8938 echo "configure:8939: checking for UnGenFace in -lcompface" >&5
8939 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8941 xe_check_libs=" -lcompface "
8942 cat > conftest.$ac_ext <<EOF
8943 #line 8944 "configure"
8944 #include "confdefs.h"
8945 /* Override any gcc2 internal prototype to avoid an error. */
8946 /* We use char because int might match the return type of a gcc2
8947 builtin and then its argument prototype would still apply. */
8954 if { (eval echo configure:8955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8956 eval "ac_cv_lib_$ac_lib_var=yes"
8958 echo "configure: failed program was:" >&5
8959 cat conftest.$ac_ext >&5
8961 eval "ac_cv_lib_$ac_lib_var=no"
8966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8967 echo "$ac_t""yes" 1>&6
8970 echo "$ac_t""no" 1>&6
8975 test -z "$with_xface" && with_xface=yes
8976 if test "$with_xface" = "yes"; then
8977 { test "$extra_verbose" = "yes" && cat << \EOF
8980 cat >> confdefs.h <<\EOF
8981 #define HAVE_XFACE 1
8985 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8991 if test "$with_x11" = "yes"; then
8992 echo "checking for X11 graphics libraries" 1>&6
8993 echo "configure:8994: checking for X11 graphics libraries" >&5
8996 if test "$with_x11" = "yes"; then
8997 echo "checking for the Athena widgets" 1>&6
8998 echo "configure:8999: checking for the Athena widgets" >&5
9000 case "$with_athena" in
9001 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
9002 "3d") athena_variant=Xaw3d athena_3d=yes ;;
9003 "next") athena_variant=neXtaw athena_3d=yes ;;
9004 "95") athena_variant=Xaw95 athena_3d=yes ;;
9005 "xpm") athena_variant=XawXpm athena_3d=yes ;;
9006 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
9009 athena_3d_function=Xaw3dComputeBottomShadowRGB
9011 if test "$athena_3d" = "no"; then
9013 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
9014 echo "configure:9015: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
9015 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
9017 xe_check_libs=" -l$athena_variant "
9018 cat > conftest.$ac_ext <<EOF
9019 #line 9020 "configure"
9020 #include "confdefs.h"
9021 /* Override any gcc2 internal prototype to avoid an error. */
9022 /* We use char because int might match the return type of a gcc2
9023 builtin and then its argument prototype would still apply. */
9024 char XawScrollbarSetThumb();
9027 XawScrollbarSetThumb()
9030 if { (eval echo configure:9031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9032 eval "ac_cv_lib_$ac_lib_var=yes"
9034 echo "configure: failed program was:" >&5
9035 cat conftest.$ac_ext >&5
9037 eval "ac_cv_lib_$ac_lib_var=no"
9042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9043 echo "$ac_t""yes" 1>&6
9045 echo $ac_n "checking for $athena_3d_function in -l$athena_variant""... $ac_c" 1>&6
9046 echo "configure:9047: checking for $athena_3d_function in -l$athena_variant" >&5
9047 ac_lib_var=`echo $athena_variant'_'$athena_3d_function | sed 'y%./+-%__p_%'`
9049 xe_check_libs=" -l$athena_variant "
9050 cat > conftest.$ac_ext <<EOF
9051 #line 9052 "configure"
9052 #include "confdefs.h"
9053 /* Override any gcc2 internal prototype to avoid an error. */
9054 /* We use char because int might match the return type of a gcc2
9055 builtin and then its argument prototype would still apply. */
9056 char $athena_3d_function();
9059 $athena_3d_function()
9062 if { (eval echo configure:9063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9064 eval "ac_cv_lib_$ac_lib_var=yes"
9066 echo "configure: failed program was:" >&5
9067 cat conftest.$ac_ext >&5
9069 eval "ac_cv_lib_$ac_lib_var=no"
9074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9075 echo "$ac_t""yes" 1>&6
9076 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
9078 echo "$ac_t""no" 1>&6
9079 athena_lib=$athena_variant
9085 echo "$ac_t""no" 1>&6
9086 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
9092 echo $ac_n "checking for $athena_3d_function in -l$athena_variant""... $ac_c" 1>&6
9093 echo "configure:9094: checking for $athena_3d_function in -l$athena_variant" >&5
9094 ac_lib_var=`echo $athena_variant'_'$athena_3d_function | sed 'y%./+-%__p_%'`
9096 xe_check_libs=" -l$athena_variant "
9097 cat > conftest.$ac_ext <<EOF
9098 #line 9099 "configure"
9099 #include "confdefs.h"
9100 /* Override any gcc2 internal prototype to avoid an error. */
9101 /* We use char because int might match the return type of a gcc2
9102 builtin and then its argument prototype would still apply. */
9103 char $athena_3d_function();
9106 $athena_3d_function()
9109 if { (eval echo configure:9110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9111 eval "ac_cv_lib_$ac_lib_var=yes"
9113 echo "configure: failed program was:" >&5
9114 cat conftest.$ac_ext >&5
9116 eval "ac_cv_lib_$ac_lib_var=no"
9121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9122 echo "$ac_t""yes" 1>&6
9123 athena_lib=$athena_variant
9125 echo "$ac_t""no" 1>&6
9126 echo $ac_n "checking for $athena_3d_function in -lXaw""... $ac_c" 1>&6
9127 echo "configure:9128: checking for $athena_3d_function in -lXaw" >&5
9128 ac_lib_var=`echo Xaw'_'$athena_3d_function | sed 'y%./+-%__p_%'`
9130 xe_check_libs=" -lXaw "
9131 cat > conftest.$ac_ext <<EOF
9132 #line 9133 "configure"
9133 #include "confdefs.h"
9134 /* Override any gcc2 internal prototype to avoid an error. */
9135 /* We use char because int might match the return type of a gcc2
9136 builtin and then its argument prototype would still apply. */
9137 char $athena_3d_function();
9140 $athena_3d_function()
9143 if { (eval echo configure:9144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9145 eval "ac_cv_lib_$ac_lib_var=yes"
9147 echo "configure: failed program was:" >&5
9148 cat conftest.$ac_ext >&5
9150 eval "ac_cv_lib_$ac_lib_var=no"
9155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9156 echo "$ac_t""yes" 1>&6
9158 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
9161 echo "$ac_t""no" 1>&6
9162 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
9171 if test "$athena_3d" = "no"; then
9172 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9173 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9174 echo "configure:9175: checking for X11/Xaw/ThreeD.h" >&5
9176 cat > conftest.$ac_ext <<EOF
9177 #line 9178 "configure"
9178 #include "confdefs.h"
9179 #include <X11/Xaw/ThreeD.h>
9181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9182 { (eval echo configure:9183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9184 if test -z "$ac_err"; then
9186 eval "ac_cv_header_$ac_safe=yes"
9189 echo "configure: failed program was:" >&5
9190 cat conftest.$ac_ext >&5
9192 eval "ac_cv_header_$ac_safe=no"
9195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9196 echo "$ac_t""yes" 1>&6
9197 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9199 echo "$ac_t""no" 1>&6
9200 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
9201 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
9202 echo "configure:9203: checking for X11/Xaw/XawInit.h" >&5
9204 cat > conftest.$ac_ext <<EOF
9205 #line 9206 "configure"
9206 #include "confdefs.h"
9207 #include <X11/Xaw/XawInit.h>
9209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9210 { (eval echo configure:9211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9212 if test -z "$ac_err"; then
9214 eval "ac_cv_header_$ac_safe=yes"
9217 echo "configure: failed program was:" >&5
9218 cat conftest.$ac_ext >&5
9220 eval "ac_cv_header_$ac_safe=no"
9223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9224 echo "$ac_t""yes" 1>&6
9225 athena_h_path=X11/Xaw
9227 echo "$ac_t""no" 1>&6
9228 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9234 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9235 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
9236 echo "configure:9237: checking for X11/$athena_variant/XawInit.h" >&5
9238 cat > conftest.$ac_ext <<EOF
9239 #line 9240 "configure"
9240 #include "confdefs.h"
9241 #include <X11/$athena_variant/XawInit.h>
9243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9244 { (eval echo configure:9245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9246 if test -z "$ac_err"; then
9248 eval "ac_cv_header_$ac_safe=yes"
9251 echo "configure: failed program was:" >&5
9252 cat conftest.$ac_ext >&5
9254 eval "ac_cv_header_$ac_safe=no"
9257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9258 echo "$ac_t""yes" 1>&6
9259 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9260 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9261 echo "configure:9262: checking for X11/$athena_variant/ThreeD.h" >&5
9263 cat > conftest.$ac_ext <<EOF
9264 #line 9265 "configure"
9265 #include "confdefs.h"
9266 #include <X11/$athena_variant/ThreeD.h>
9268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9269 { (eval echo configure:9270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9271 if test -z "$ac_err"; then
9273 eval "ac_cv_header_$ac_safe=yes"
9276 echo "configure: failed program was:" >&5
9277 cat conftest.$ac_ext >&5
9279 eval "ac_cv_header_$ac_safe=no"
9282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9283 echo "$ac_t""yes" 1>&6
9284 athena_h_path=X11/$athena_variant
9286 echo "$ac_t""no" 1>&6
9290 echo "$ac_t""no" 1>&6
9294 if test -z "$athena_h_path"; then
9295 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9296 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9297 echo "configure:9298: checking for $athena_variant/XawInit.h" >&5
9299 cat > conftest.$ac_ext <<EOF
9300 #line 9301 "configure"
9301 #include "confdefs.h"
9302 #include <$athena_variant/XawInit.h>
9304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9305 { (eval echo configure:9306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9306 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9307 if test -z "$ac_err"; then
9309 eval "ac_cv_header_$ac_safe=yes"
9312 echo "configure: failed program was:" >&5
9313 cat conftest.$ac_ext >&5
9315 eval "ac_cv_header_$ac_safe=no"
9318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9319 echo "$ac_t""yes" 1>&6
9320 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9321 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9322 echo "configure:9323: checking for $athena_variant/ThreeD.h" >&5
9324 cat > conftest.$ac_ext <<EOF
9325 #line 9326 "configure"
9326 #include "confdefs.h"
9327 #include <$athena_variant/ThreeD.h>
9329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9330 { (eval echo configure:9331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9332 if test -z "$ac_err"; then
9334 eval "ac_cv_header_$ac_safe=yes"
9337 echo "configure: failed program was:" >&5
9338 cat conftest.$ac_ext >&5
9340 eval "ac_cv_header_$ac_safe=no"
9343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9344 echo "$ac_t""yes" 1>&6
9345 athena_h_path=$athena_variant
9347 echo "$ac_t""no" 1>&6
9351 echo "$ac_t""no" 1>&6
9356 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9357 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9358 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9359 echo "configure:9360: checking for X11/Xaw3d/XawInit.h" >&5
9361 cat > conftest.$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9364 #include <X11/Xaw3d/XawInit.h>
9366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9367 { (eval echo configure:9368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9369 if test -z "$ac_err"; then
9371 eval "ac_cv_header_$ac_safe=yes"
9374 echo "configure: failed program was:" >&5
9375 cat conftest.$ac_ext >&5
9377 eval "ac_cv_header_$ac_safe=no"
9380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9381 echo "$ac_t""yes" 1>&6
9382 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9383 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9384 echo "configure:9385: checking for X11/Xaw3d/ThreeD.h" >&5
9386 cat > conftest.$ac_ext <<EOF
9387 #line 9388 "configure"
9388 #include "confdefs.h"
9389 #include <X11/Xaw3d/ThreeD.h>
9391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9392 { (eval echo configure:9393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9394 if test -z "$ac_err"; then
9396 eval "ac_cv_header_$ac_safe=yes"
9399 echo "configure: failed program was:" >&5
9400 cat conftest.$ac_ext >&5
9402 eval "ac_cv_header_$ac_safe=no"
9405 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9406 echo "$ac_t""yes" 1>&6
9408 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9409 athena_h_path=X11/Xaw3d
9412 echo "$ac_t""no" 1>&6
9416 echo "$ac_t""no" 1>&6
9421 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9422 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9423 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9424 echo "configure:9425: checking for Xaw3d/XawInit.h" >&5
9426 cat > conftest.$ac_ext <<EOF
9427 #line 9428 "configure"
9428 #include "confdefs.h"
9429 #include <Xaw3d/XawInit.h>
9431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9432 { (eval echo configure:9433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9434 if test -z "$ac_err"; then
9436 eval "ac_cv_header_$ac_safe=yes"
9439 echo "configure: failed program was:" >&5
9440 cat conftest.$ac_ext >&5
9442 eval "ac_cv_header_$ac_safe=no"
9445 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9446 echo "$ac_t""yes" 1>&6
9447 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9448 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9449 echo "configure:9450: checking for Xaw3d/ThreeD.h" >&5
9451 cat > conftest.$ac_ext <<EOF
9452 #line 9453 "configure"
9453 #include "confdefs.h"
9454 #include <Xaw3d/ThreeD.h>
9456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9457 { (eval echo configure:9458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9459 if test -z "$ac_err"; then
9461 eval "ac_cv_header_$ac_safe=yes"
9464 echo "configure: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9467 eval "ac_cv_header_$ac_safe=no"
9470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9471 echo "$ac_t""yes" 1>&6
9473 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9477 echo "$ac_t""no" 1>&6
9481 echo "$ac_t""no" 1>&6
9486 if test -z "$athena_h_path"; then
9487 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9488 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9489 echo "configure:9490: checking for X11/Xaw/ThreeD.h" >&5
9491 cat > conftest.$ac_ext <<EOF
9492 #line 9493 "configure"
9493 #include "confdefs.h"
9494 #include <X11/Xaw/ThreeD.h>
9496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9497 { (eval echo configure:9498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9499 if test -z "$ac_err"; then
9501 eval "ac_cv_header_$ac_safe=yes"
9504 echo "configure: failed program was:" >&5
9505 cat conftest.$ac_ext >&5
9507 eval "ac_cv_header_$ac_safe=no"
9510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9511 echo "$ac_t""yes" 1>&6
9513 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9514 athena_h_path=X11/Xaw
9517 echo "$ac_t""no" 1>&6
9518 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9524 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9533 if test "$with_x11" = "yes"; then
9534 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9535 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9536 echo "configure:9537: checking for Xm/Xm.h" >&5
9538 cat > conftest.$ac_ext <<EOF
9539 #line 9540 "configure"
9540 #include "confdefs.h"
9543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9544 { (eval echo configure:9545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9546 if test -z "$ac_err"; then
9548 eval "ac_cv_header_$ac_safe=yes"
9551 echo "configure: failed program was:" >&5
9552 cat conftest.$ac_ext >&5
9554 eval "ac_cv_header_$ac_safe=no"
9557 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9558 echo "$ac_t""yes" 1>&6
9560 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9561 echo "configure:9562: checking for XmStringFree in -lXm" >&5
9562 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9564 xe_check_libs=" -lXm "
9565 cat > conftest.$ac_ext <<EOF
9566 #line 9567 "configure"
9567 #include "confdefs.h"
9568 /* Override any gcc2 internal prototype to avoid an error. */
9569 /* We use char because int might match the return type of a gcc2
9570 builtin and then its argument prototype would still apply. */
9571 char XmStringFree();
9577 if { (eval echo configure:9578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9579 eval "ac_cv_lib_$ac_lib_var=yes"
9581 echo "configure: failed program was:" >&5
9582 cat conftest.$ac_ext >&5
9584 eval "ac_cv_lib_$ac_lib_var=no"
9589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9590 echo "$ac_t""yes" 1>&6
9593 echo "$ac_t""no" 1>&6
9599 echo "$ac_t""no" 1>&6
9604 if test "$have_motif" = "yes"; then
9605 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9606 echo "configure:9607: checking for Lesstif" >&5
9607 cat > conftest.$ac_ext <<EOF
9608 #line 9609 "configure"
9609 #include "confdefs.h"
9611 #ifdef LESSTIF_VERSION
9616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9617 egrep "yes" >/dev/null 2>&1; then
9626 echo "$ac_t""$have_lesstif" 1>&6
9632 *linux* ) lucid_prefers_motif = "no" ;;
9633 * ) lucid_prefers_motif = "yes" ;;
9636 case "$with_menubars" in "" | "yes" | "athena" )
9637 with_menubars="lucid" ;;
9639 case "$with_dialogs" in "" | "yes" | "lucid" )
9640 if test "$lucid_prefers_motif" = "yes"; then
9641 if test "$have_motif" = "yes"; then with_dialogs="motif"
9642 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9643 else with_dialogs=no
9646 if test "$have_xaw" = "yes"; then with_dialogs="athena"
9647 elif test "$have_motif" = "yes"; then with_dialogs="motif"
9648 else with_dialogs=no
9652 case "$with_scrollbars" in "" | "yes" )
9653 with_scrollbars="lucid" ;;
9655 case "$with_widgets" in
9657 if test "$lucid_prefers_motif" = "yes"; then
9658 if test "$have_motif" = "yes"; then with_widgets="motif"
9659 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9660 else with_widgets=no
9663 if test "$have_xaw" = "yes"; then with_widgets="athena"
9664 elif test "$have_motif" = "yes"; then with_widgets="motif"
9665 else with_widgets=no
9672 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9674 case "$all_widgets" in
9676 if test "$have_xaw" != "yes"; then
9677 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9680 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9682 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9684 { test "$extra_verbose" = "yes" && cat << EOF
9685 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9687 cat >> confdefs.h <<EOF
9688 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9692 { test "$extra_verbose" = "yes" && cat << EOF
9693 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9695 cat >> confdefs.h <<EOF
9696 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9700 { test "$extra_verbose" = "yes" && cat << EOF
9701 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9703 cat >> confdefs.h <<EOF
9704 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9708 { test "$extra_verbose" = "yes" && cat << EOF
9709 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9711 cat >> confdefs.h <<EOF
9712 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9716 { test "$extra_verbose" = "yes" && cat << EOF
9717 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9719 cat >> confdefs.h <<EOF
9720 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9724 { test "$extra_verbose" = "yes" && cat << EOF
9725 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9727 cat >> confdefs.h <<EOF
9728 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9732 { test "$extra_verbose" = "yes" && cat << EOF
9733 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9735 cat >> confdefs.h <<EOF
9736 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9740 { test "$extra_verbose" = "yes" && cat << EOF
9741 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9743 cat >> confdefs.h <<EOF
9744 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9748 { test "$extra_verbose" = "yes" && cat << EOF
9749 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9751 cat >> confdefs.h <<EOF
9752 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9756 { test "$extra_verbose" = "yes" && cat << EOF
9757 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9759 cat >> confdefs.h <<EOF
9760 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9765 { test "$extra_verbose" = "yes" && cat << \EOF
9766 Defining LWLIB_USES_ATHENA
9768 cat >> confdefs.h <<\EOF
9769 #define LWLIB_USES_ATHENA 1
9773 { test "$extra_verbose" = "yes" && cat << \EOF
9774 Defining NEED_ATHENA
9776 cat >> confdefs.h <<\EOF
9777 #define NEED_ATHENA 1
9783 if test "$athena_3d" = "yes"; then
9784 { test "$extra_verbose" = "yes" && cat << \EOF
9785 Defining HAVE_ATHENA_3D
9787 cat >> confdefs.h <<\EOF
9788 #define HAVE_ATHENA_3D 1
9796 case "$all_widgets" in *motif* )
9797 { test "$extra_verbose" = "yes" && cat << \EOF
9798 Defining LWLIB_USES_MOTIF
9800 cat >> confdefs.h <<\EOF
9801 #define LWLIB_USES_MOTIF 1
9805 { test "$extra_verbose" = "yes" && cat << \EOF
9808 cat >> confdefs.h <<\EOF
9809 #define NEED_MOTIF 1
9813 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9817 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9818 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9819 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9820 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9821 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9822 case "$with_widgets" in athena* )
9823 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;;
9825 case "$all_widgets" in *lucid* )
9826 { test "$extra_verbose" = "yes" && cat << \EOF
9829 cat >> confdefs.h <<\EOF
9830 #define NEED_LUCID 1
9834 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9839 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9840 Defining LWLIB_SCROLLBARS_ATHENA
9842 cat >> confdefs.h <<\EOF
9843 #define LWLIB_SCROLLBARS_ATHENA 1
9847 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9848 Defining LWLIB_DIALOGS_ATHENA
9850 cat >> confdefs.h <<\EOF
9851 #define LWLIB_DIALOGS_ATHENA 1
9856 if test "$athena_3d" = "yes"; then
9857 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9858 Defining LWLIB_SCROLLBARS_ATHENA3D
9860 cat >> confdefs.h <<\EOF
9861 #define LWLIB_SCROLLBARS_ATHENA3D 1
9865 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9866 Defining LWLIB_DIALOGS_ATHENA3D
9868 cat >> confdefs.h <<\EOF
9869 #define LWLIB_DIALOGS_ATHENA3D 1
9875 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9876 Defining LWLIB_WIDGETS_ATHENA
9878 cat >> confdefs.h <<\EOF
9879 #define LWLIB_WIDGETS_ATHENA 1
9883 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9884 { test "$extra_verbose" = "yes" && cat << \EOF
9885 Defining LWLIB_TABS_LUCID
9887 cat >> confdefs.h <<\EOF
9888 #define LWLIB_TABS_LUCID 1
9893 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9894 Defining HAVE_MENUBARS
9896 cat >> confdefs.h <<\EOF
9897 #define HAVE_MENUBARS 1
9901 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9902 Defining HAVE_SCROLLBARS
9904 cat >> confdefs.h <<\EOF
9905 #define HAVE_SCROLLBARS 1
9909 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9910 Defining HAVE_DIALOGS
9912 cat >> confdefs.h <<\EOF
9913 #define HAVE_DIALOGS 1
9917 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9918 Defining HAVE_TOOLBARS
9920 cat >> confdefs.h <<\EOF
9921 #define HAVE_TOOLBARS 1
9925 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9926 Defining HAVE_WIDGETS
9928 cat >> confdefs.h <<\EOF
9929 #define HAVE_WIDGETS 1
9934 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9935 Defining LWLIB_MENUBARS_LUCID
9937 cat >> confdefs.h <<\EOF
9938 #define LWLIB_MENUBARS_LUCID 1
9942 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9943 Defining LWLIB_SCROLLBARS_LUCID
9945 cat >> confdefs.h <<\EOF
9946 #define LWLIB_SCROLLBARS_LUCID 1
9951 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9952 Defining LWLIB_MENUBARS_MOTIF
9954 cat >> confdefs.h <<\EOF
9955 #define LWLIB_MENUBARS_MOTIF 1
9959 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9960 Defining LWLIB_SCROLLBARS_MOTIF
9962 cat >> confdefs.h <<\EOF
9963 #define LWLIB_SCROLLBARS_MOTIF 1
9967 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9968 Defining LWLIB_DIALOGS_MOTIF
9970 cat >> confdefs.h <<\EOF
9971 #define LWLIB_DIALOGS_MOTIF 1
9975 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9976 Defining LWLIB_WIDGETS_MOTIF
9978 cat >> confdefs.h <<\EOF
9979 #define LWLIB_WIDGETS_MOTIF 1
9984 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9985 echo " xemacs will be linked with \"menubar.o\""
9987 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9988 echo " xemacs will be linked with \"scrollbar.o\""
9990 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9991 echo " xemacs will be linked with \"dialog.o\""
9993 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9994 echo " xemacs will be linked with \"toolbar.o\""
9997 if test "$with_gtk" = "yes"; then
9998 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9999 echo " xemacs will be linked with \"menubar-gtk.o\""
10001 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
10002 echo " xemacs will be linked with \"scrollbar-gtk.o\""
10004 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
10005 echo " xemacs will be linked with \"dialog-gtk.o\""
10007 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
10008 echo " xemacs will be linked with \"toolbar-gtk.o\""
10010 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
10011 echo " xemacs will be linked with \"gui-gtk.o\""
10015 if test "$with_x11" = "yes"; then
10016 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
10017 echo " xemacs will be linked with \"menubar-x.o\""
10019 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
10020 echo " xemacs will be linked with \"scrollbar-x.o\""
10022 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
10023 echo " xemacs will be linked with \"dialog-x.o\""
10025 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
10026 echo " xemacs will be linked with \"toolbar-x.o\""
10028 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
10029 echo " xemacs will be linked with \"gui-x.o\""
10034 test -z "$with_mule" && with_mule=no
10035 test -z "$with_file_coding" && with_file_coding=no
10038 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
10039 { test "$extra_verbose" = "yes" && cat << \EOF
10040 Defining FILE_CODING
10042 cat >> confdefs.h <<\EOF
10043 #define FILE_CODING 1
10047 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
10048 echo " xemacs will be linked with \"file-coding.o\""
10052 if test "$with_mule" = "yes" ; then
10053 echo "checking for Mule-related features" 1>&6
10054 echo "configure:10055: checking for Mule-related features" >&5
10055 { test "$extra_verbose" = "yes" && cat << \EOF
10058 cat >> confdefs.h <<\EOF
10063 { test "$extra_verbose" = "yes" && cat << \EOF
10064 Defining FILE_CODING
10066 cat >> confdefs.h <<\EOF
10067 #define FILE_CODING 1
10071 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
10072 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
10075 for ac_hdr in libintl.h
10077 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10078 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10079 echo "configure:10080: checking for $ac_hdr" >&5
10081 cat > conftest.$ac_ext <<EOF
10082 #line 10083 "configure"
10083 #include "confdefs.h"
10086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10087 { (eval echo configure:10088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10089 if test -z "$ac_err"; then
10091 eval "ac_cv_header_$ac_safe=yes"
10094 echo "configure: failed program was:" >&5
10095 cat conftest.$ac_ext >&5
10097 eval "ac_cv_header_$ac_safe=no"
10100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10101 echo "$ac_t""yes" 1>&6
10102 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10103 { test "$extra_verbose" = "yes" && cat << EOF
10104 Defining $ac_tr_hdr
10106 cat >> confdefs.h <<EOF
10107 #define $ac_tr_hdr 1
10112 echo "$ac_t""no" 1>&6
10117 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
10118 echo "configure:10119: checking for strerror in -lintl" >&5
10119 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
10121 xe_check_libs=" -lintl "
10122 cat > conftest.$ac_ext <<EOF
10123 #line 10124 "configure"
10124 #include "confdefs.h"
10125 /* Override any gcc2 internal prototype to avoid an error. */
10126 /* We use char because int might match the return type of a gcc2
10127 builtin and then its argument prototype would still apply. */
10134 if { (eval echo configure:10135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10136 eval "ac_cv_lib_$ac_lib_var=yes"
10138 echo "configure: failed program was:" >&5
10139 cat conftest.$ac_ext >&5
10141 eval "ac_cv_lib_$ac_lib_var=no"
10146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10147 echo "$ac_t""yes" 1>&6
10148 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10149 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10150 { test "$extra_verbose" = "yes" && cat << EOF
10151 Defining $ac_tr_lib
10153 cat >> confdefs.h <<EOF
10154 #define $ac_tr_lib 1
10158 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
10161 echo "$ac_t""no" 1>&6
10166 echo "checking for Mule input methods" 1>&6
10167 echo "configure:10168: checking for Mule input methods" >&5
10168 case "$with_xim" in "" | "yes" )
10169 echo "checking for XIM" 1>&6
10170 echo "configure:10171: checking for XIM" >&5
10172 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
10173 echo "configure:10174: checking for XOpenIM in -lX11" >&5
10174 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
10176 xe_check_libs=" -lX11 "
10177 cat > conftest.$ac_ext <<EOF
10178 #line 10179 "configure"
10179 #include "confdefs.h"
10180 /* Override any gcc2 internal prototype to avoid an error. */
10181 /* We use char because int might match the return type of a gcc2
10182 builtin and then its argument prototype would still apply. */
10189 if { (eval echo configure:10190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10191 eval "ac_cv_lib_$ac_lib_var=yes"
10193 echo "configure: failed program was:" >&5
10194 cat conftest.$ac_ext >&5
10196 eval "ac_cv_lib_$ac_lib_var=no"
10201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10202 echo "$ac_t""yes" 1>&6
10205 echo "$ac_t""no" 1>&6
10210 if test "$need_motif $have_lesstif" = "yes no"; then
10212 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10213 echo "configure:10214: checking for XmImMbLookupString in -lXm" >&5
10214 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10216 xe_check_libs=" -lXm "
10217 cat > conftest.$ac_ext <<EOF
10218 #line 10219 "configure"
10219 #include "confdefs.h"
10220 /* Override any gcc2 internal prototype to avoid an error. */
10221 /* We use char because int might match the return type of a gcc2
10222 builtin and then its argument prototype would still apply. */
10223 char XmImMbLookupString();
10226 XmImMbLookupString()
10229 if { (eval echo configure:10230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10231 eval "ac_cv_lib_$ac_lib_var=yes"
10233 echo "configure: failed program was:" >&5
10234 cat conftest.$ac_ext >&5
10236 eval "ac_cv_lib_$ac_lib_var=no"
10241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10242 echo "$ac_t""yes" 1>&6
10245 echo "$ac_t""no" 1>&6
10249 elif test "$have_motif $have_lesstif $with_xim" = "yes no no"; then
10251 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10252 echo "configure:10253: checking for XmImMbLookupString in -lXm" >&5
10253 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10255 xe_check_libs=" -lXm "
10256 cat > conftest.$ac_ext <<EOF
10257 #line 10258 "configure"
10258 #include "confdefs.h"
10259 /* Override any gcc2 internal prototype to avoid an error. */
10260 /* We use char because int might match the return type of a gcc2
10261 builtin and then its argument prototype would still apply. */
10262 char XmImMbLookupString();
10265 XmImMbLookupString()
10268 if { (eval echo configure:10269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10270 eval "ac_cv_lib_$ac_lib_var=yes"
10272 echo "configure: failed program was:" >&5
10273 cat conftest.$ac_ext >&5
10275 eval "ac_cv_lib_$ac_lib_var=no"
10280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10281 echo "$ac_t""yes" 1>&6
10284 echo "$ac_t""no" 1>&6
10290 if test "$with_xim" != "no"; then
10291 { test "$extra_verbose" = "yes" && cat << \EOF
10294 cat >> confdefs.h <<\EOF
10299 if test "$with_xim" = "xlib"; then
10300 { test "$extra_verbose" = "yes" && cat << \EOF
10303 cat >> confdefs.h <<\EOF
10308 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10309 echo " xemacs will be linked with \"input-method-xlib.o\""
10312 if test "$with_xim" = "motif"; then
10313 { test "$extra_verbose" = "yes" && cat << \EOF
10316 cat >> confdefs.h <<\EOF
10317 #define XIM_MOTIF 1
10322 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10323 echo " xemacs will be linked with \"input-method-motif.o\""
10326 if test "$with_xim" = "motif"; then
10331 if test "$with_xfs" = "yes" ; then
10332 echo "checking for XFontSet" 1>&6
10333 echo "configure:10334: checking for XFontSet" >&5
10335 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10336 echo "configure:10337: checking for XmbDrawString in -lX11" >&5
10337 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10339 xe_check_libs=" -lX11 "
10340 cat > conftest.$ac_ext <<EOF
10341 #line 10342 "configure"
10342 #include "confdefs.h"
10343 /* Override any gcc2 internal prototype to avoid an error. */
10344 /* We use char because int might match the return type of a gcc2
10345 builtin and then its argument prototype would still apply. */
10346 char XmbDrawString();
10352 if { (eval echo configure:10353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10354 eval "ac_cv_lib_$ac_lib_var=yes"
10356 echo "configure: failed program was:" >&5
10357 cat conftest.$ac_ext >&5
10359 eval "ac_cv_lib_$ac_lib_var=no"
10364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10365 echo "$ac_t""yes" 1>&6
10368 echo "$ac_t""no" 1>&6
10373 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10374 { test "$extra_verbose" = "yes" && cat << \EOF
10375 Defining USE_XFONTSET
10377 cat >> confdefs.h <<\EOF
10378 #define USE_XFONTSET 1
10382 if test "$with_xim" = "no" ; then
10383 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10384 echo " xemacs will be linked with \"input-method-xlib.o\""
10389 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10390 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10391 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10392 echo "configure:10393: checking for wnn/jllib.h" >&5
10394 cat > conftest.$ac_ext <<EOF
10395 #line 10396 "configure"
10396 #include "confdefs.h"
10397 #include <wnn/jllib.h>
10399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10400 { (eval echo configure:10401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10402 if test -z "$ac_err"; then
10404 eval "ac_cv_header_$ac_safe=yes"
10407 echo "configure: failed program was:" >&5
10408 cat conftest.$ac_ext >&5
10410 eval "ac_cv_header_$ac_safe=no"
10413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10414 echo "$ac_t""yes" 1>&6
10417 echo "$ac_t""no" 1>&6
10421 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10422 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10423 echo "configure:10424: checking for wnn/commonhd.h" >&5
10425 cat > conftest.$ac_ext <<EOF
10426 #line 10427 "configure"
10427 #include "confdefs.h"
10428 #include <wnn/commonhd.h>
10430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10431 { (eval echo configure:10432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10433 if test -z "$ac_err"; then
10435 eval "ac_cv_header_$ac_safe=yes"
10438 echo "configure: failed program was:" >&5
10439 cat conftest.$ac_ext >&5
10441 eval "ac_cv_header_$ac_safe=no"
10444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10445 echo "$ac_t""yes" 1>&6
10448 echo "$ac_t""no" 1>&6
10452 if test "$with_wnn" != "no"; then
10453 for ac_func in crypt
10455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10456 echo "configure:10457: checking for $ac_func" >&5
10458 cat > conftest.$ac_ext <<EOF
10459 #line 10460 "configure"
10460 #include "confdefs.h"
10461 /* System header to define __stub macros and hopefully few prototypes,
10462 which can conflict with char $ac_func(); below. */
10463 #include <assert.h>
10464 /* Override any gcc2 internal prototype to avoid an error. */
10465 /* We use char because int might match the return type of a gcc2
10466 builtin and then its argument prototype would still apply. */
10471 /* The GNU C library defines this for functions which it implements
10472 to always fail with ENOSYS. Some functions are actually named
10473 something starting with __ and the normal name is an alias. */
10474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10482 if { (eval echo configure:10483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10484 eval "ac_cv_func_$ac_func=yes"
10486 echo "configure: failed program was:" >&5
10487 cat conftest.$ac_ext >&5
10489 eval "ac_cv_func_$ac_func=no"
10493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10494 echo "$ac_t""yes" 1>&6
10495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10496 { test "$extra_verbose" = "yes" && cat << EOF
10497 Defining $ac_tr_func
10499 cat >> confdefs.h <<EOF
10500 #define $ac_tr_func 1
10505 echo "$ac_t""no" 1>&6
10509 test "$ac_cv_func_crypt" != "yes" && {
10510 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10511 echo "configure:10512: checking for crypt in -lcrypt" >&5
10512 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10514 xe_check_libs=" -lcrypt "
10515 cat > conftest.$ac_ext <<EOF
10516 #line 10517 "configure"
10517 #include "confdefs.h"
10518 /* Override any gcc2 internal prototype to avoid an error. */
10519 /* We use char because int might match the return type of a gcc2
10520 builtin and then its argument prototype would still apply. */
10527 if { (eval echo configure:10528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10529 eval "ac_cv_lib_$ac_lib_var=yes"
10531 echo "configure: failed program was:" >&5
10532 cat conftest.$ac_ext >&5
10534 eval "ac_cv_lib_$ac_lib_var=no"
10539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10540 echo "$ac_t""yes" 1>&6
10541 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10542 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10543 { test "$extra_verbose" = "yes" && cat << EOF
10544 Defining $ac_tr_lib
10546 cat >> confdefs.h <<EOF
10547 #define $ac_tr_lib 1
10551 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10554 echo "$ac_t""no" 1>&6
10559 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10561 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10562 echo "configure:10563: checking for jl_dic_list_e in -lwnn" >&5
10563 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10565 xe_check_libs=" -lwnn "
10566 cat > conftest.$ac_ext <<EOF
10567 #line 10568 "configure"
10568 #include "confdefs.h"
10569 /* Override any gcc2 internal prototype to avoid an error. */
10570 /* We use char because int might match the return type of a gcc2
10571 builtin and then its argument prototype would still apply. */
10572 char jl_dic_list_e();
10578 if { (eval echo configure:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10580 eval "ac_cv_lib_$ac_lib_var=yes"
10582 echo "configure: failed program was:" >&5
10583 cat conftest.$ac_ext >&5
10585 eval "ac_cv_lib_$ac_lib_var=no"
10590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10591 echo "$ac_t""yes" 1>&6
10594 echo "$ac_t""no" 1>&6
10595 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10596 echo "configure:10597: checking for jl_dic_list_e in -lwnn4" >&5
10597 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10599 xe_check_libs=" -lwnn4 "
10600 cat > conftest.$ac_ext <<EOF
10601 #line 10602 "configure"
10602 #include "confdefs.h"
10603 /* Override any gcc2 internal prototype to avoid an error. */
10604 /* We use char because int might match the return type of a gcc2
10605 builtin and then its argument prototype would still apply. */
10606 char jl_dic_list_e();
10612 if { (eval echo configure:10613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10614 eval "ac_cv_lib_$ac_lib_var=yes"
10616 echo "configure: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10619 eval "ac_cv_lib_$ac_lib_var=no"
10624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10625 echo "$ac_t""yes" 1>&6
10628 echo "$ac_t""no" 1>&6
10629 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10630 echo "configure:10631: checking for jl_dic_list_e in -lwnn6" >&5
10631 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10633 xe_check_libs=" -lwnn6 "
10634 cat > conftest.$ac_ext <<EOF
10635 #line 10636 "configure"
10636 #include "confdefs.h"
10637 /* Override any gcc2 internal prototype to avoid an error. */
10638 /* We use char because int might match the return type of a gcc2
10639 builtin and then its argument prototype would still apply. */
10640 char jl_dic_list_e();
10646 if { (eval echo configure:10647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10648 eval "ac_cv_lib_$ac_lib_var=yes"
10650 echo "configure: failed program was:" >&5
10651 cat conftest.$ac_ext >&5
10653 eval "ac_cv_lib_$ac_lib_var=no"
10658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10659 echo "$ac_t""yes" 1>&6
10662 echo "$ac_t""no" 1>&6
10663 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10664 echo "configure:10665: checking for dic_list_e in -lwnn6_fromsrc" >&5
10665 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10667 xe_check_libs=" -lwnn6_fromsrc "
10668 cat > conftest.$ac_ext <<EOF
10669 #line 10670 "configure"
10670 #include "confdefs.h"
10671 /* Override any gcc2 internal prototype to avoid an error. */
10672 /* We use char because int might match the return type of a gcc2
10673 builtin and then its argument prototype would still apply. */
10680 if { (eval echo configure:10681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10682 eval "ac_cv_lib_$ac_lib_var=yes"
10684 echo "configure: failed program was:" >&5
10685 cat conftest.$ac_ext >&5
10687 eval "ac_cv_lib_$ac_lib_var=no"
10692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10693 echo "$ac_t""yes" 1>&6
10694 libwnn=wnn6_fromsrc
10696 echo "$ac_t""no" 1>&6
10711 test -z "$with_wnn" && with_wnn=yes
10712 if test "$with_wnn" = "yes"; then
10713 { test "$extra_verbose" = "yes" && cat << \EOF
10716 cat >> confdefs.h <<\EOF
10721 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10722 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10723 echo " xemacs will be linked with \"mule-wnnfns.o\""
10725 if test "$with_wnn6" != "no"; then
10727 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10728 echo "configure:10729: checking for jl_fi_dic_list in -l$libwnn" >&5
10729 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10731 xe_check_libs=" -l$libwnn "
10732 cat > conftest.$ac_ext <<EOF
10733 #line 10734 "configure"
10734 #include "confdefs.h"
10735 /* Override any gcc2 internal prototype to avoid an error. */
10736 /* We use char because int might match the return type of a gcc2
10737 builtin and then its argument prototype would still apply. */
10738 char jl_fi_dic_list();
10744 if { (eval echo configure:10745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10746 eval "ac_cv_lib_$ac_lib_var=yes"
10748 echo "configure: failed program was:" >&5
10749 cat conftest.$ac_ext >&5
10751 eval "ac_cv_lib_$ac_lib_var=no"
10756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10757 echo "$ac_t""yes" 1>&6
10760 echo "$ac_t""no" 1>&6
10764 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10767 cat >> confdefs.h <<\EOF
10775 canna_includes_found=no
10776 if test "$with_canna" != "no"; then
10777 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10778 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10779 echo "configure:10780: checking for canna/jrkanji.h" >&5
10781 cat > conftest.$ac_ext <<EOF
10782 #line 10783 "configure"
10783 #include "confdefs.h"
10784 #include <canna/jrkanji.h>
10786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10787 { (eval echo configure:10788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10789 if test -z "$ac_err"; then
10791 eval "ac_cv_header_$ac_safe=yes"
10794 echo "configure: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10797 eval "ac_cv_header_$ac_safe=no"
10800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10801 echo "$ac_t""yes" 1>&6
10802 canna_includes_found=yes
10804 echo "$ac_t""no" 1>&6
10808 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10809 -d "/usr/local/canna/include"; then
10810 save_c_switch_site="$c_switch_site"
10811 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10812 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10813 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10814 echo "configure:10815: checking for canna/jrkanji.h" >&5
10816 cat > conftest.$ac_ext <<EOF
10817 #line 10818 "configure"
10818 #include "confdefs.h"
10819 #include <canna/jrkanji.h>
10821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10822 { (eval echo configure:10823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10824 if test -z "$ac_err"; then
10826 eval "ac_cv_header_$ac_safe=yes"
10829 echo "configure: failed program was:" >&5
10830 cat conftest.$ac_ext >&5
10832 eval "ac_cv_header_$ac_safe=no"
10835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10836 echo "$ac_t""yes" 1>&6
10837 canna_includes_found=yes
10839 echo "$ac_t""no" 1>&6
10842 if test "$canna_includes_found" != "yes"; then
10843 c_switch_site="$save_c_switch_site"
10848 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10849 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10850 echo "configure:10851: checking for canna/RK.h" >&5
10852 cat > conftest.$ac_ext <<EOF
10853 #line 10854 "configure"
10854 #include "confdefs.h"
10855 #include <canna/RK.h>
10857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10858 { (eval echo configure:10859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10860 if test -z "$ac_err"; then
10862 eval "ac_cv_header_$ac_safe=yes"
10865 echo "configure: failed program was:" >&5
10866 cat conftest.$ac_ext >&5
10868 eval "ac_cv_header_$ac_safe=no"
10871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10872 echo "$ac_t""yes" 1>&6
10875 echo "$ac_t""no" 1>&6
10879 test -z "$with_canna" && {
10880 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10881 echo "configure:10882: checking for RkBgnBun in -lRKC" >&5
10882 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10884 xe_check_libs=" -lRKC "
10885 cat > conftest.$ac_ext <<EOF
10886 #line 10887 "configure"
10887 #include "confdefs.h"
10888 /* Override any gcc2 internal prototype to avoid an error. */
10889 /* We use char because int might match the return type of a gcc2
10890 builtin and then its argument prototype would still apply. */
10897 if { (eval echo configure:10898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10899 eval "ac_cv_lib_$ac_lib_var=yes"
10901 echo "configure: failed program was:" >&5
10902 cat conftest.$ac_ext >&5
10904 eval "ac_cv_lib_$ac_lib_var=no"
10909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10910 echo "$ac_t""yes" 1>&6
10913 echo "$ac_t""no" 1>&6
10918 test -z "$with_canna" && {
10919 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10920 echo "configure:10921: checking for jrKanjiControl in -lcanna" >&5
10921 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10923 xe_check_libs=" -lcanna "
10924 cat > conftest.$ac_ext <<EOF
10925 #line 10926 "configure"
10926 #include "confdefs.h"
10927 /* Override any gcc2 internal prototype to avoid an error. */
10928 /* We use char because int might match the return type of a gcc2
10929 builtin and then its argument prototype would still apply. */
10930 char jrKanjiControl();
10936 if { (eval echo configure:10937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10938 eval "ac_cv_lib_$ac_lib_var=yes"
10940 echo "configure: failed program was:" >&5
10941 cat conftest.$ac_ext >&5
10943 eval "ac_cv_lib_$ac_lib_var=no"
10948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10949 echo "$ac_t""yes" 1>&6
10952 echo "$ac_t""no" 1>&6
10957 test -z "$with_canna" && with_canna=yes
10958 if test "$with_canna" = "yes"; then
10959 { test "$extra_verbose" = "yes" && cat << \EOF
10960 Defining HAVE_CANNA
10962 cat >> confdefs.h <<\EOF
10963 #define HAVE_CANNA 1
10967 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10968 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10969 echo " xemacs will be linked with \"mule-canna.o\""
10973 else for feature in xim canna wnn; do
10974 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10975 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10977 eval "with_${feature}=no"
10981 if test "$need_motif" = "yes" ; then
10982 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10984 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10985 echo "configure:10986: checking for layout_object_getvalue in -li18n" >&5
10986 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10988 xe_check_libs=" -li18n "
10989 cat > conftest.$ac_ext <<EOF
10990 #line 10991 "configure"
10991 #include "confdefs.h"
10992 /* Override any gcc2 internal prototype to avoid an error. */
10993 /* We use char because int might match the return type of a gcc2
10994 builtin and then its argument prototype would still apply. */
10995 char layout_object_getvalue();
10998 layout_object_getvalue()
11001 if { (eval echo configure:11002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11003 eval "ac_cv_lib_$ac_lib_var=yes"
11005 echo "configure: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11008 eval "ac_cv_lib_$ac_lib_var=no"
11013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11014 echo "$ac_t""yes" 1>&6
11015 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
11017 echo "$ac_t""no" 1>&6
11022 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
11023 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
11024 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
11026 runpath="" runpath_dirs=""
11027 if test -n "$LD_RUN_PATH"; then
11028 runpath="$LD_RUN_PATH"
11029 elif test "$GCC" = "yes"; then
11030 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
11031 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
11032 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
11033 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
11034 case "$arg" in P,* | -L* | -R* )
11035 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
11037 xe_runpath_dir="$dir"
11038 test "$xe_runpath_dir" != "/lib" -a \
11039 "$xe_runpath_dir" != "/usr/lib" -a \
11040 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
11041 eval "$xe_add_unique_runpath_dir"
11046 ld_switch_run="$ld_switch_run_save"
11049 for arg in $ld_switch_site $ld_switch_x_site; do
11050 case "$arg" in -L*) {
11051 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
11052 test "$xe_runpath_dir" != "/lib" -a \
11053 "$xe_runpath_dir" != "/usr/lib" -a \
11054 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
11055 eval "$xe_add_unique_runpath_dir"
11058 if test "$opsys $need_motif" = "sol2 yes"; then
11059 xe_runpath_dir="/opt/SUNWdt/lib";
11060 eval "$xe_add_unique_runpath_dir";
11063 if test -n "$runpath"; then
11064 ld_switch_run="${dash_r}${runpath}"
11066 if test "$GCC" = "yes"; then
11067 set x $ld_switch_run; shift; ld_switch_run=""
11068 while test -n "$1"; do
11070 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
11071 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
11073 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
11078 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
11085 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
11087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11088 echo "configure:11089: checking for $ac_func" >&5
11090 cat > conftest.$ac_ext <<EOF
11091 #line 11092 "configure"
11092 #include "confdefs.h"
11093 /* System header to define __stub macros and hopefully few prototypes,
11094 which can conflict with char $ac_func(); below. */
11095 #include <assert.h>
11096 /* Override any gcc2 internal prototype to avoid an error. */
11097 /* We use char because int might match the return type of a gcc2
11098 builtin and then its argument prototype would still apply. */
11103 /* The GNU C library defines this for functions which it implements
11104 to always fail with ENOSYS. Some functions are actually named
11105 something starting with __ and the normal name is an alias. */
11106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11114 if { (eval echo configure:11115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11116 eval "ac_cv_func_$ac_func=yes"
11118 echo "configure: failed program was:" >&5
11119 cat conftest.$ac_ext >&5
11121 eval "ac_cv_func_$ac_func=no"
11125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11126 echo "$ac_t""yes" 1>&6
11127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11128 { test "$extra_verbose" = "yes" && cat << EOF
11129 Defining $ac_tr_func
11131 cat >> confdefs.h <<EOF
11132 #define $ac_tr_func 1
11137 echo "$ac_t""no" 1>&6
11142 if test "$ac_cv_func_getaddrinfo" != "no" ; then
11145 echo "configure: warning: Use of getaddrinfo is disabled for HP-UX 11.XX." 1>&2
11146 ac_cv_func_getaddrinfo=no
11152 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
11154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11155 echo "configure:11156: checking for $ac_func" >&5
11157 cat > conftest.$ac_ext <<EOF
11158 #line 11159 "configure"
11159 #include "confdefs.h"
11160 /* System header to define __stub macros and hopefully few prototypes,
11161 which can conflict with char $ac_func(); below. */
11162 #include <assert.h>
11163 /* Override any gcc2 internal prototype to avoid an error. */
11164 /* We use char because int might match the return type of a gcc2
11165 builtin and then its argument prototype would still apply. */
11170 /* The GNU C library defines this for functions which it implements
11171 to always fail with ENOSYS. Some functions are actually named
11172 something starting with __ and the normal name is an alias. */
11173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11181 if { (eval echo configure:11182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11183 eval "ac_cv_func_$ac_func=yes"
11185 echo "configure: failed program was:" >&5
11186 cat conftest.$ac_ext >&5
11188 eval "ac_cv_func_$ac_func=no"
11192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11193 echo "$ac_t""yes" 1>&6
11194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11195 { test "$extra_verbose" = "yes" && cat << EOF
11196 Defining $ac_tr_func
11198 cat >> confdefs.h <<EOF
11199 #define $ac_tr_func 1
11204 echo "$ac_t""no" 1>&6
11209 echo $ac_n "checking for openpty""... $ac_c" 1>&6
11210 echo "configure:11211: checking for openpty" >&5
11212 cat > conftest.$ac_ext <<EOF
11213 #line 11214 "configure"
11214 #include "confdefs.h"
11215 /* System header to define __stub macros and hopefully few prototypes,
11216 which can conflict with char openpty(); below. */
11217 #include <assert.h>
11218 /* Override any gcc2 internal prototype to avoid an error. */
11219 /* We use char because int might match the return type of a gcc2
11220 builtin and then its argument prototype would still apply. */
11225 /* The GNU C library defines this for functions which it implements
11226 to always fail with ENOSYS. Some functions are actually named
11227 something starting with __ and the normal name is an alias. */
11228 #if defined (__stub_openpty) || defined (__stub___openpty)
11236 if { (eval echo configure:11237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11238 eval "ac_cv_func_openpty=yes"
11240 echo "configure: failed program was:" >&5
11241 cat conftest.$ac_ext >&5
11243 eval "ac_cv_func_openpty=no"
11247 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
11248 echo "$ac_t""yes" 1>&6
11251 echo "$ac_t""no" 1>&6
11254 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
11255 echo "configure:11256: checking for openpty in -lutil" >&5
11256 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
11258 xe_check_libs=" -lutil "
11259 cat > conftest.$ac_ext <<EOF
11260 #line 11261 "configure"
11261 #include "confdefs.h"
11262 /* Override any gcc2 internal prototype to avoid an error. */
11263 /* We use char because int might match the return type of a gcc2
11264 builtin and then its argument prototype would still apply. */
11271 if { (eval echo configure:11272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11273 eval "ac_cv_lib_$ac_lib_var=yes"
11275 echo "configure: failed program was:" >&5
11276 cat conftest.$ac_ext >&5
11278 eval "ac_cv_lib_$ac_lib_var=no"
11283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11284 echo "$ac_t""yes" 1>&6
11285 have_openpty=yes need_libutil=yes
11287 echo "$ac_t""no" 1>&6
11293 if test "$have_openpty" = "yes"; then
11294 { test "$extra_verbose" = "yes" && cat << \EOF
11295 Defining HAVE_OPENPTY
11297 cat >> confdefs.h <<\EOF
11298 #define HAVE_OPENPTY 1
11302 for ac_hdr in pty.h libutil.h util.h
11304 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11305 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11306 echo "configure:11307: checking for $ac_hdr" >&5
11308 cat > conftest.$ac_ext <<EOF
11309 #line 11310 "configure"
11310 #include "confdefs.h"
11313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11314 { (eval echo configure:11315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11316 if test -z "$ac_err"; then
11318 eval "ac_cv_header_$ac_safe=yes"
11321 echo "configure: failed program was:" >&5
11322 cat conftest.$ac_ext >&5
11324 eval "ac_cv_header_$ac_safe=no"
11327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11328 echo "$ac_t""yes" 1>&6
11329 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11330 { test "$extra_verbose" = "yes" && cat << EOF
11331 Defining $ac_tr_hdr
11333 cat >> confdefs.h <<EOF
11334 #define $ac_tr_hdr 1
11339 echo "$ac_t""no" 1>&6
11343 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11346 for ac_hdr in stropts.h
11348 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11349 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11350 echo "configure:11351: checking for $ac_hdr" >&5
11352 cat > conftest.$ac_ext <<EOF
11353 #line 11354 "configure"
11354 #include "confdefs.h"
11357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11358 { (eval echo configure:11359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11360 if test -z "$ac_err"; then
11362 eval "ac_cv_header_$ac_safe=yes"
11365 echo "configure: failed program was:" >&5
11366 cat conftest.$ac_ext >&5
11368 eval "ac_cv_header_$ac_safe=no"
11371 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11372 echo "$ac_t""yes" 1>&6
11373 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11374 { test "$extra_verbose" = "yes" && cat << EOF
11375 Defining $ac_tr_hdr
11377 cat >> confdefs.h <<EOF
11378 #define $ac_tr_hdr 1
11383 echo "$ac_t""no" 1>&6
11387 if test "$ac_cv_header_stropts_h" = "yes"; then
11388 for ac_func in isastream
11390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11391 echo "configure:11392: checking for $ac_func" >&5
11393 cat > conftest.$ac_ext <<EOF
11394 #line 11395 "configure"
11395 #include "confdefs.h"
11396 /* System header to define __stub macros and hopefully few prototypes,
11397 which can conflict with char $ac_func(); below. */
11398 #include <assert.h>
11399 /* Override any gcc2 internal prototype to avoid an error. */
11400 /* We use char because int might match the return type of a gcc2
11401 builtin and then its argument prototype would still apply. */
11406 /* The GNU C library defines this for functions which it implements
11407 to always fail with ENOSYS. Some functions are actually named
11408 something starting with __ and the normal name is an alias. */
11409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11417 if { (eval echo configure:11418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11419 eval "ac_cv_func_$ac_func=yes"
11421 echo "configure: failed program was:" >&5
11422 cat conftest.$ac_ext >&5
11424 eval "ac_cv_func_$ac_func=no"
11428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11429 echo "$ac_t""yes" 1>&6
11430 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11431 { test "$extra_verbose" = "yes" && cat << EOF
11432 Defining $ac_tr_func
11434 cat >> confdefs.h <<EOF
11435 #define $ac_tr_func 1
11440 echo "$ac_t""no" 1>&6
11444 for ac_hdr in strtio.h
11446 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11447 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11448 echo "configure:11449: checking for $ac_hdr" >&5
11450 cat > conftest.$ac_ext <<EOF
11451 #line 11452 "configure"
11452 #include "confdefs.h"
11455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11456 { (eval echo configure:11457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11458 if test -z "$ac_err"; then
11460 eval "ac_cv_header_$ac_safe=yes"
11463 echo "configure: failed program was:" >&5
11464 cat conftest.$ac_ext >&5
11466 eval "ac_cv_header_$ac_safe=no"
11469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11470 echo "$ac_t""yes" 1>&6
11471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11472 { test "$extra_verbose" = "yes" && cat << EOF
11473 Defining $ac_tr_hdr
11475 cat >> confdefs.h <<EOF
11476 #define $ac_tr_hdr 1
11481 echo "$ac_t""no" 1>&6
11486 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11487 echo " xemacs will be linked with \"realpath.o\""
11490 for ac_func in getloadavg
11492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11493 echo "configure:11494: checking for $ac_func" >&5
11495 cat > conftest.$ac_ext <<EOF
11496 #line 11497 "configure"
11497 #include "confdefs.h"
11498 /* System header to define __stub macros and hopefully few prototypes,
11499 which can conflict with char $ac_func(); below. */
11500 #include <assert.h>
11501 /* Override any gcc2 internal prototype to avoid an error. */
11502 /* We use char because int might match the return type of a gcc2
11503 builtin and then its argument prototype would still apply. */
11508 /* The GNU C library defines this for functions which it implements
11509 to always fail with ENOSYS. Some functions are actually named
11510 something starting with __ and the normal name is an alias. */
11511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11519 if { (eval echo configure:11520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11521 eval "ac_cv_func_$ac_func=yes"
11523 echo "configure: failed program was:" >&5
11524 cat conftest.$ac_ext >&5
11526 eval "ac_cv_func_$ac_func=no"
11530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11531 echo "$ac_t""yes" 1>&6
11532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11533 { test "$extra_verbose" = "yes" && cat << EOF
11534 Defining $ac_tr_func
11536 cat >> confdefs.h <<EOF
11537 #define $ac_tr_func 1
11542 echo "$ac_t""no" 1>&6
11547 if test "$ac_cv_func_getloadavg" = "yes"; then
11548 for ac_hdr in sys/loadavg.h
11550 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11551 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11552 echo "configure:11553: checking for $ac_hdr" >&5
11554 cat > conftest.$ac_ext <<EOF
11555 #line 11556 "configure"
11556 #include "confdefs.h"
11559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11560 { (eval echo configure:11561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11562 if test -z "$ac_err"; then
11564 eval "ac_cv_header_$ac_safe=yes"
11567 echo "configure: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11570 eval "ac_cv_header_$ac_safe=no"
11573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11574 echo "$ac_t""yes" 1>&6
11575 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11576 { test "$extra_verbose" = "yes" && cat << EOF
11577 Defining $ac_tr_hdr
11579 cat >> confdefs.h <<EOF
11580 #define $ac_tr_hdr 1
11585 echo "$ac_t""no" 1>&6
11590 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11591 echo " xemacs will be linked with \"getloadavg.o\""
11595 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11596 echo "configure:11597: checking for kstat_open in -lkstat" >&5
11597 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11599 xe_check_libs=" -lkstat "
11600 cat > conftest.$ac_ext <<EOF
11601 #line 11602 "configure"
11602 #include "confdefs.h"
11603 /* Override any gcc2 internal prototype to avoid an error. */
11604 /* We use char because int might match the return type of a gcc2
11605 builtin and then its argument prototype would still apply. */
11612 if { (eval echo configure:11613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11614 eval "ac_cv_lib_$ac_lib_var=yes"
11616 echo "configure: failed program was:" >&5
11617 cat conftest.$ac_ext >&5
11619 eval "ac_cv_lib_$ac_lib_var=no"
11624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11625 echo "$ac_t""yes" 1>&6
11626 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11627 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11628 { test "$extra_verbose" = "yes" && cat << EOF
11629 Defining $ac_tr_lib
11631 cat >> confdefs.h <<EOF
11632 #define $ac_tr_lib 1
11636 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11639 echo "$ac_t""no" 1>&6
11643 for ac_hdr in kstat.h
11645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11646 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11647 echo "configure:11648: checking for $ac_hdr" >&5
11649 cat > conftest.$ac_ext <<EOF
11650 #line 11651 "configure"
11651 #include "confdefs.h"
11654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11655 { (eval echo configure:11656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11657 if test -z "$ac_err"; then
11659 eval "ac_cv_header_$ac_safe=yes"
11662 echo "configure: failed program was:" >&5
11663 cat conftest.$ac_ext >&5
11665 eval "ac_cv_header_$ac_safe=no"
11668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11669 echo "$ac_t""yes" 1>&6
11670 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11671 { test "$extra_verbose" = "yes" && cat << EOF
11672 Defining $ac_tr_hdr
11674 cat >> confdefs.h <<EOF
11675 #define $ac_tr_hdr 1
11680 echo "$ac_t""no" 1>&6
11686 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11687 echo "configure:11688: checking for kvm_read in -lkvm" >&5
11688 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11690 xe_check_libs=" -lkvm "
11691 cat > conftest.$ac_ext <<EOF
11692 #line 11693 "configure"
11693 #include "confdefs.h"
11694 /* Override any gcc2 internal prototype to avoid an error. */
11695 /* We use char because int might match the return type of a gcc2
11696 builtin and then its argument prototype would still apply. */
11703 if { (eval echo configure:11704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11705 eval "ac_cv_lib_$ac_lib_var=yes"
11707 echo "configure: failed program was:" >&5
11708 cat conftest.$ac_ext >&5
11710 eval "ac_cv_lib_$ac_lib_var=no"
11715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11716 echo "$ac_t""yes" 1>&6
11717 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11718 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11719 { test "$extra_verbose" = "yes" && cat << EOF
11720 Defining $ac_tr_lib
11722 cat >> confdefs.h <<EOF
11723 #define $ac_tr_lib 1
11727 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11730 echo "$ac_t""no" 1>&6
11736 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11737 echo "configure:11738: checking whether netdb declares h_errno" >&5
11738 cat > conftest.$ac_ext <<EOF
11739 #line 11740 "configure"
11740 #include "confdefs.h"
11746 if { (eval echo configure:11747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11748 echo "$ac_t""yes" 1>&6
11749 { test "$extra_verbose" = "yes" && cat << \EOF
11750 Defining HAVE_H_ERRNO
11752 cat >> confdefs.h <<\EOF
11753 #define HAVE_H_ERRNO 1
11758 echo "configure: failed program was:" >&5
11759 cat conftest.$ac_ext >&5
11761 echo "$ac_t""no" 1>&6
11765 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11766 echo "configure:11767: checking for sigsetjmp" >&5
11767 cat > conftest.$ac_ext <<EOF
11768 #line 11769 "configure"
11769 #include "confdefs.h"
11770 #include <setjmp.h>
11772 sigjmp_buf bar; sigsetjmp (bar, 0);
11775 if { (eval echo configure:11776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11777 echo "$ac_t""yes" 1>&6
11778 { test "$extra_verbose" = "yes" && cat << \EOF
11779 Defining HAVE_SIGSETJMP
11781 cat >> confdefs.h <<\EOF
11782 #define HAVE_SIGSETJMP 1
11787 echo "configure: failed program was:" >&5
11788 cat conftest.$ac_ext >&5
11790 echo "$ac_t""no" 1>&6
11794 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11795 echo "configure:11796: checking whether localtime caches TZ" >&5
11797 if test "$ac_cv_func_tzset" = "yes"; then
11798 cat > conftest.$ac_ext <<EOF
11799 #line 11800 "configure"
11800 #include "confdefs.h"
11803 # include <stdlib.h>
11805 extern char **environ;
11809 for (to = from = environ; (*to = *from); from++)
11810 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11813 char TZ_GMT0[] = "TZ=GMT0";
11814 char TZ_PST8[] = "TZ=PST8";
11817 time_t now = time ((time_t *) 0);
11818 int hour_GMT0, hour_unset;
11819 if (putenv (TZ_GMT0) != 0)
11821 hour_GMT0 = localtime (&now)->tm_hour;
11823 hour_unset = localtime (&now)->tm_hour;
11824 if (putenv (TZ_PST8) != 0)
11826 if (localtime (&now)->tm_hour == hour_GMT0)
11829 if (localtime (&now)->tm_hour != hour_unset)
11834 if { (eval echo configure:11835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11836 emacs_cv_localtime_cache=no
11839 echo "configure: failed program was:" >&5
11840 cat conftest.$ac_ext >&5
11842 emacs_cv_localtime_cache=yes
11846 # If we lack tzset, report that localtime does not cache TZ,
11847 # since we can't invalidate the cache if we don't have tzset.
11848 emacs_cv_localtime_cache=no
11850 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11851 if test $emacs_cv_localtime_cache = yes; then
11852 { test "$extra_verbose" = "yes" && cat << \EOF
11853 Defining LOCALTIME_CACHE
11855 cat >> confdefs.h <<\EOF
11856 #define LOCALTIME_CACHE 1
11862 if test "$HAVE_TIMEVAL" = "yes"; then
11863 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11864 echo "configure:11865: checking whether gettimeofday accepts one or two arguments" >&5
11865 cat > conftest.$ac_ext <<EOF
11866 #line 11867 "configure"
11867 #include "confdefs.h"
11869 #ifdef TIME_WITH_SYS_TIME
11870 #include <sys/time.h>
11873 #ifdef HAVE_SYS_TIME_H
11874 #include <sys/time.h>
11882 struct timeval time;
11883 gettimeofday (&time, 0);
11887 if { (eval echo configure:11888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11889 echo "$ac_t""two" 1>&6
11891 echo "configure: failed program was:" >&5
11892 cat conftest.$ac_ext >&5
11894 echo "$ac_t""one" 1>&6
11895 { test "$extra_verbose" = "yes" && cat << \EOF
11896 Defining GETTIMEOFDAY_ONE_ARGUMENT
11898 cat >> confdefs.h <<\EOF
11899 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11908 echo $ac_n "checking for inline""... $ac_c" 1>&6
11909 echo "configure:11910: checking for inline" >&5
11912 for ac_kw in inline __inline__ __inline; do
11913 cat > conftest.$ac_ext <<EOF
11914 #line 11915 "configure"
11915 #include "confdefs.h"
11921 if { (eval echo configure:11922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11923 ac_cv_c_inline=$ac_kw; break
11925 echo "configure: failed program was:" >&5
11926 cat conftest.$ac_ext >&5
11932 echo "$ac_t""$ac_cv_c_inline" 1>&6
11933 case "$ac_cv_c_inline" in
11935 no) { test "$extra_verbose" = "yes" && cat << \EOF
11938 cat >> confdefs.h <<\EOF
11943 *) { test "$extra_verbose" = "yes" && cat << EOF
11944 Defining inline = $ac_cv_c_inline
11946 cat >> confdefs.h <<EOF
11947 #define inline $ac_cv_c_inline
11953 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11954 echo " xemacs will be linked with \"inline.o\""
11958 if test "$__DECC" != "yes"; then
11959 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11960 # for constant arguments. Useless!
11961 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11962 echo "configure:11963: checking for working alloca.h" >&5
11964 cat > conftest.$ac_ext <<EOF
11965 #line 11966 "configure"
11966 #include "confdefs.h"
11967 #include <alloca.h>
11969 char *p = alloca(2 * sizeof(int));
11972 if { (eval echo configure:11973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11974 ac_cv_header_alloca_h=yes
11976 echo "configure: failed program was:" >&5
11977 cat conftest.$ac_ext >&5
11979 ac_cv_header_alloca_h=no
11983 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11984 if test $ac_cv_header_alloca_h = yes; then
11985 { test "$extra_verbose" = "yes" && cat << \EOF
11986 Defining HAVE_ALLOCA_H
11988 cat >> confdefs.h <<\EOF
11989 #define HAVE_ALLOCA_H 1
11995 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11996 echo "configure:11997: checking for alloca" >&5
11998 cat > conftest.$ac_ext <<EOF
11999 #line 12000 "configure"
12000 #include "confdefs.h"
12003 # define alloca __builtin_alloca
12006 # include <malloc.h>
12007 # define alloca _alloca
12010 # include <alloca.h>
12015 # ifndef alloca /* predefined by HP cc +Olibcalls */
12024 char *p = (char *) alloca(1);
12027 if { (eval echo configure:12028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12029 ac_cv_func_alloca_works=yes
12031 echo "configure: failed program was:" >&5
12032 cat conftest.$ac_ext >&5
12034 ac_cv_func_alloca_works=no
12038 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
12039 if test $ac_cv_func_alloca_works = yes; then
12040 { test "$extra_verbose" = "yes" && cat << \EOF
12041 Defining HAVE_ALLOCA
12043 cat >> confdefs.h <<\EOF
12044 #define HAVE_ALLOCA 1
12050 if test $ac_cv_func_alloca_works = no; then
12051 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12052 # that cause trouble. Some versions do not even contain alloca or
12053 # contain a buggy version. If you still want to use their alloca,
12054 # use ar to extract alloca.o from them instead of compiling alloca.c.
12055 ALLOCA=alloca.${ac_objext}
12056 { test "$extra_verbose" = "yes" && cat << \EOF
12059 cat >> confdefs.h <<\EOF
12065 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
12066 echo "configure:12067: checking whether alloca needs Cray hooks" >&5
12068 cat > conftest.$ac_ext <<EOF
12069 #line 12070 "configure"
12070 #include "confdefs.h"
12071 #if defined(CRAY) && ! defined(CRAY2)
12078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12079 egrep "webecray" >/dev/null 2>&1; then
12089 echo "$ac_t""$ac_cv_os_cray" 1>&6
12090 if test $ac_cv_os_cray = yes; then
12091 for ac_func in _getb67 GETB67 getb67; do
12092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12093 echo "configure:12094: checking for $ac_func" >&5
12095 cat > conftest.$ac_ext <<EOF
12096 #line 12097 "configure"
12097 #include "confdefs.h"
12098 /* System header to define __stub macros and hopefully few prototypes,
12099 which can conflict with char $ac_func(); below. */
12100 #include <assert.h>
12101 /* Override any gcc2 internal prototype to avoid an error. */
12102 /* We use char because int might match the return type of a gcc2
12103 builtin and then its argument prototype would still apply. */
12108 /* The GNU C library defines this for functions which it implements
12109 to always fail with ENOSYS. Some functions are actually named
12110 something starting with __ and the normal name is an alias. */
12111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12119 if { (eval echo configure:12120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12121 eval "ac_cv_func_$ac_func=yes"
12123 echo "configure: failed program was:" >&5
12124 cat conftest.$ac_ext >&5
12126 eval "ac_cv_func_$ac_func=no"
12130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12131 echo "$ac_t""yes" 1>&6
12132 { test "$extra_verbose" = "yes" && cat << EOF
12133 Defining CRAY_STACKSEG_END = $ac_func
12135 cat >> confdefs.h <<EOF
12136 #define CRAY_STACKSEG_END $ac_func
12142 echo "$ac_t""no" 1>&6
12148 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
12149 echo "configure:12150: checking stack direction for C alloca" >&5
12151 cat > conftest.$ac_ext <<EOF
12152 #line 12153 "configure"
12153 #include "confdefs.h"
12154 find_stack_direction ()
12156 static char *addr = 0;
12161 return find_stack_direction ();
12164 return (&dummy > addr) ? 1 : -1;
12168 exit (find_stack_direction() < 0);
12171 if { (eval echo configure:12172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12173 ac_cv_c_stack_direction=1
12176 echo "configure: failed program was:" >&5
12177 cat conftest.$ac_ext >&5
12179 ac_cv_c_stack_direction=-1
12183 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
12184 { test "$extra_verbose" = "yes" && cat << EOF
12185 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
12187 cat >> confdefs.h <<EOF
12188 #define STACK_DIRECTION $ac_cv_c_stack_direction
12194 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
12195 echo " xemacs will be linked with \"$ALLOCA\""
12199 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
12200 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
12201 echo "configure:12202: checking for vfork.h" >&5
12203 cat > conftest.$ac_ext <<EOF
12204 #line 12205 "configure"
12205 #include "confdefs.h"
12208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12209 { (eval echo configure:12210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12211 if test -z "$ac_err"; then
12213 eval "ac_cv_header_$ac_safe=yes"
12216 echo "configure: failed program was:" >&5
12217 cat conftest.$ac_ext >&5
12219 eval "ac_cv_header_$ac_safe=no"
12222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12223 echo "$ac_t""yes" 1>&6
12224 { test "$extra_verbose" = "yes" && cat << \EOF
12225 Defining HAVE_VFORK_H
12227 cat >> confdefs.h <<\EOF
12228 #define HAVE_VFORK_H 1
12233 echo "$ac_t""no" 1>&6
12236 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
12237 echo "configure:12238: checking for working vfork" >&5
12239 cat > conftest.$ac_ext <<EOF
12240 #line 12241 "configure"
12241 #include "confdefs.h"
12242 /* Thanks to Paul Eggert for this test. */
12244 #include <sys/types.h>
12245 #include <sys/stat.h>
12246 #ifdef HAVE_UNISTD_H
12247 #include <unistd.h>
12249 #ifdef HAVE_VFORK_H
12252 /* On some sparc systems, changes by the child to local and incoming
12253 argument registers are propagated back to the parent.
12254 The compiler is told about this with #include <vfork.h>,
12255 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
12256 Test for this by using a static variable whose address
12257 is put into a register that is clobbered by the vfork. */
12260 sparc_address_test (int arg)
12262 sparc_address_test (arg) int arg;
12265 static pid_t child;
12280 pid_t parent = getpid ();
12283 sparc_address_test ();
12288 /* Here is another test for sparc vfork register problems.
12289 This test uses lots of local variables, at least
12290 as many local variables as main has allocated so far
12291 including compiler temporaries. 4 locals are enough for
12292 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
12293 A buggy compiler should reuse the register of parent
12294 for one of the local variables, since it will think that
12295 parent can't possibly be used any more in this routine.
12296 Assigning to the local variable will thus munge parent
12297 in the parent process. */
12299 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12300 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12301 /* Convince the compiler that p..p7 are live; otherwise, it might
12302 use the same hardware register for all 8 local variables. */
12303 if (p != p1 || p != p2 || p != p3 || p != p4
12304 || p != p5 || p != p6 || p != p7)
12307 /* On some systems (e.g. IRIX 3.3),
12308 vfork doesn't separate parent from child file descriptors.
12309 If the child closes a descriptor before it execs or exits,
12310 this munges the parent's descriptor as well.
12311 Test for this by closing stdout in the child. */
12312 _exit(close(fileno(stdout)) != 0);
12317 while (wait(&status) != child)
12320 /* Was there some problem with vforking? */
12323 /* Did the child fail? (This shouldn't happen.) */
12326 /* Did the vfork/compiler bug occur? */
12327 || parent != getpid()
12329 /* Did the file descriptor bug occur? */
12330 || fstat(fileno(stdout), &st) != 0
12335 if { (eval echo configure:12336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12337 ac_cv_func_vfork_works=yes
12340 echo "configure: failed program was:" >&5
12341 cat conftest.$ac_ext >&5
12343 ac_cv_func_vfork_works=no
12347 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12348 if test $ac_cv_func_vfork_works = no; then
12349 { test "$extra_verbose" = "yes" && cat << \EOF
12350 Defining vfork = fork
12352 cat >> confdefs.h <<\EOF
12360 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12361 echo "configure:12362: checking for working strcoll" >&5
12363 cat > conftest.$ac_ext <<EOF
12364 #line 12365 "configure"
12365 #include "confdefs.h"
12366 #include <string.h>
12369 exit (strcoll ("abc", "def") >= 0 ||
12370 strcoll ("ABC", "DEF") >= 0 ||
12371 strcoll ("123", "456") >= 0);
12374 if { (eval echo configure:12375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12376 ac_cv_func_strcoll_works=yes
12379 echo "configure: failed program was:" >&5
12380 cat conftest.$ac_ext >&5
12382 ac_cv_func_strcoll_works=no
12386 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12387 if test $ac_cv_func_strcoll_works = yes; then
12388 { test "$extra_verbose" = "yes" && cat << \EOF
12389 Defining HAVE_STRCOLL
12391 cat >> confdefs.h <<\EOF
12392 #define HAVE_STRCOLL 1
12399 for ac_func in getpgrp
12401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12402 echo "configure:12403: checking for $ac_func" >&5
12404 cat > conftest.$ac_ext <<EOF
12405 #line 12406 "configure"
12406 #include "confdefs.h"
12407 /* System header to define __stub macros and hopefully few prototypes,
12408 which can conflict with char $ac_func(); below. */
12409 #include <assert.h>
12410 /* Override any gcc2 internal prototype to avoid an error. */
12411 /* We use char because int might match the return type of a gcc2
12412 builtin and then its argument prototype would still apply. */
12417 /* The GNU C library defines this for functions which it implements
12418 to always fail with ENOSYS. Some functions are actually named
12419 something starting with __ and the normal name is an alias. */
12420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12428 if { (eval echo configure:12429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12430 eval "ac_cv_func_$ac_func=yes"
12432 echo "configure: failed program was:" >&5
12433 cat conftest.$ac_ext >&5
12435 eval "ac_cv_func_$ac_func=no"
12439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12440 echo "$ac_t""yes" 1>&6
12441 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12442 { test "$extra_verbose" = "yes" && cat << EOF
12443 Defining $ac_tr_func
12445 cat >> confdefs.h <<EOF
12446 #define $ac_tr_func 1
12451 echo "$ac_t""no" 1>&6
12455 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12456 echo "configure:12457: checking whether getpgrp takes no argument" >&5
12458 cat > conftest.$ac_ext <<EOF
12459 #line 12460 "configure"
12460 #include "confdefs.h"
12463 * If this system has a BSD-style getpgrp(),
12464 * which takes a pid argument, exit unsuccessfully.
12466 * Snarfed from Chet Ramey's bash pgrp.c test program
12469 #include <sys/types.h>
12472 int pg1, pg2, pg3, pg4;
12473 int ng, np, s, child;
12480 pg3 = getpgrp(pid);
12484 * If all of these values are the same, it's pretty sure that
12485 * we're on a system that ignores getpgrp's first argument.
12487 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12493 else if (child == 0) {
12496 * If this is Sys V, this will not work; pgrp will be
12497 * set to np because setpgrp just changes a pgrp to be
12498 * the same as the pid.
12501 ng = getpgrp(0); /* Same result for Sys V and BSD */
12514 if { (eval echo configure:12515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12516 ac_cv_func_getpgrp_void=yes
12519 echo "configure: failed program was:" >&5
12520 cat conftest.$ac_ext >&5
12522 ac_cv_func_getpgrp_void=no
12527 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12528 if test $ac_cv_func_getpgrp_void = yes; then
12529 { test "$extra_verbose" = "yes" && cat << \EOF
12530 Defining GETPGRP_VOID
12532 cat >> confdefs.h <<\EOF
12533 #define GETPGRP_VOID 1
12540 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12541 echo "configure:12542: checking for working mmap" >&5
12542 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12543 cat > conftest.$ac_ext <<EOF
12544 #line 12545 "configure"
12545 #include "confdefs.h"
12547 #include <unistd.h>
12549 #include <sys/mman.h>
12551 #ifndef MAP_VARIABLE
12552 #define MAP_VARIABLE 0
12556 #define MAP_FAILED -1
12559 int main (int argc, char *argv[])
12563 #ifndef MAP_ANONYMOUS
12564 fd = open ("/dev/zero", O_RDWR);
12567 #define MAP_ANONYMOUS 0
12569 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12570 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12571 fd, 0) != (void *) MAP_FAILED)
12573 perror ("conftest: mmap failed");
12577 if { (eval echo configure:12578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12582 echo "configure: failed program was:" >&5
12583 cat conftest.$ac_ext >&5
12587 rm -fr conftest* ;;
12589 echo "$ac_t""$have_mmap" 1>&6
12590 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12593 cat >> confdefs.h <<\EOF
12594 #define HAVE_MMAP 1
12599 case "$opsys" in cygwin*)
12600 test "$rel_alloc" = "default" && rel_alloc=no ;;
12602 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12603 if test "$rel_alloc $have_mmap" = "default yes"; then
12604 if test "$doug_lea_malloc" = "yes"; then
12605 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12606 echo "configure:12607: checking for M_MMAP_THRESHOLD" >&5
12607 cat > conftest.$ac_ext <<EOF
12608 #line 12609 "configure"
12609 #include "confdefs.h"
12610 #include <malloc.h>
12613 #ifndef M_MMAP_THRESHOLD
12614 #error No M_MMAP_THRESHOLD :-(
12615 !@+$%^&*_)(_ - unlikely to compile...
12620 if { (eval echo configure:12621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12622 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12624 echo "configure: failed program was:" >&5
12625 cat conftest.$ac_ext >&5
12627 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12634 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12637 cat >> confdefs.h <<\EOF
12638 #define REL_ALLOC 1
12643 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12644 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12645 echo "configure:12646: checking for termios.h" >&5
12647 cat > conftest.$ac_ext <<EOF
12648 #line 12649 "configure"
12649 #include "confdefs.h"
12650 #include <termios.h>
12652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12653 { (eval echo configure:12654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12655 if test -z "$ac_err"; then
12657 eval "ac_cv_header_$ac_safe=yes"
12660 echo "configure: failed program was:" >&5
12661 cat conftest.$ac_ext >&5
12663 eval "ac_cv_header_$ac_safe=no"
12666 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12667 echo "$ac_t""yes" 1>&6
12668 { test "$extra_verbose" = "yes" && cat << \EOF
12669 Defining HAVE_TERMIOS
12671 cat >> confdefs.h <<\EOF
12672 #define HAVE_TERMIOS 1
12676 { test "$extra_verbose" = "yes" && cat << \EOF
12677 Defining SIGNALS_VIA_CHARACTERS
12679 cat >> confdefs.h <<\EOF
12680 #define SIGNALS_VIA_CHARACTERS 1
12684 { test "$extra_verbose" = "yes" && cat << \EOF
12687 cat >> confdefs.h <<\EOF
12688 #define NO_TERMIO 1
12693 echo "$ac_t""no" 1>&6
12694 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12695 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12696 echo "configure:12697: checking for termio.h" >&5
12698 cat > conftest.$ac_ext <<EOF
12699 #line 12700 "configure"
12700 #include "confdefs.h"
12701 #include <termio.h>
12703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12704 { (eval echo configure:12705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12706 if test -z "$ac_err"; then
12708 eval "ac_cv_header_$ac_safe=yes"
12711 echo "configure: failed program was:" >&5
12712 cat conftest.$ac_ext >&5
12714 eval "ac_cv_header_$ac_safe=no"
12717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12718 echo "$ac_t""yes" 1>&6
12719 { test "$extra_verbose" = "yes" && cat << \EOF
12720 Defining HAVE_TERMIO
12722 cat >> confdefs.h <<\EOF
12723 #define HAVE_TERMIO 1
12728 echo "$ac_t""no" 1>&6
12735 echo $ac_n "checking for socket""... $ac_c" 1>&6
12736 echo "configure:12737: checking for socket" >&5
12738 cat > conftest.$ac_ext <<EOF
12739 #line 12740 "configure"
12740 #include "confdefs.h"
12741 /* System header to define __stub macros and hopefully few prototypes,
12742 which can conflict with char socket(); below. */
12743 #include <assert.h>
12744 /* Override any gcc2 internal prototype to avoid an error. */
12745 /* We use char because int might match the return type of a gcc2
12746 builtin and then its argument prototype would still apply. */
12751 /* The GNU C library defines this for functions which it implements
12752 to always fail with ENOSYS. Some functions are actually named
12753 something starting with __ and the normal name is an alias. */
12754 #if defined (__stub_socket) || defined (__stub___socket)
12762 if { (eval echo configure:12763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12764 eval "ac_cv_func_socket=yes"
12766 echo "configure: failed program was:" >&5
12767 cat conftest.$ac_ext >&5
12769 eval "ac_cv_func_socket=no"
12773 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12774 echo "$ac_t""yes" 1>&6
12775 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12776 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12777 echo "configure:12778: checking for netinet/in.h" >&5
12779 cat > conftest.$ac_ext <<EOF
12780 #line 12781 "configure"
12781 #include "confdefs.h"
12782 #include <netinet/in.h>
12784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12785 { (eval echo configure:12786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12787 if test -z "$ac_err"; then
12789 eval "ac_cv_header_$ac_safe=yes"
12792 echo "configure: failed program was:" >&5
12793 cat conftest.$ac_ext >&5
12795 eval "ac_cv_header_$ac_safe=no"
12798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12799 echo "$ac_t""yes" 1>&6
12800 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12801 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12802 echo "configure:12803: checking for arpa/inet.h" >&5
12804 cat > conftest.$ac_ext <<EOF
12805 #line 12806 "configure"
12806 #include "confdefs.h"
12807 #include <arpa/inet.h>
12809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12810 { (eval echo configure:12811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12812 if test -z "$ac_err"; then
12814 eval "ac_cv_header_$ac_safe=yes"
12817 echo "configure: failed program was:" >&5
12818 cat conftest.$ac_ext >&5
12820 eval "ac_cv_header_$ac_safe=no"
12823 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12824 echo "$ac_t""yes" 1>&6
12826 { test "$extra_verbose" = "yes" && cat << \EOF
12827 Defining HAVE_SOCKETS
12829 cat >> confdefs.h <<\EOF
12830 #define HAVE_SOCKETS 1
12834 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12835 echo "configure:12836: checking "for sun_len member in struct sockaddr_un"" >&5
12836 cat > conftest.$ac_ext <<EOF
12837 #line 12838 "configure"
12838 #include "confdefs.h"
12840 #include <sys/types.h>
12841 #include <sys/socket.h>
12842 #include <sys/un.h>
12845 static struct sockaddr_un x; x.sun_len = 1;
12848 if { (eval echo configure:12849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12850 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12851 Defining HAVE_SOCKADDR_SUN_LEN
12853 cat >> confdefs.h <<\EOF
12854 #define HAVE_SOCKADDR_SUN_LEN 1
12859 echo "configure: failed program was:" >&5
12860 cat conftest.$ac_ext >&5
12862 echo "$ac_t""no" 1>&6
12865 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12866 echo "configure:12867: checking "for ip_mreq struct in netinet/in.h"" >&5
12867 cat > conftest.$ac_ext <<EOF
12868 #line 12869 "configure"
12869 #include "confdefs.h"
12871 #include <sys/types.h>
12872 #include <netinet/in.h>
12875 static struct ip_mreq x;
12878 if { (eval echo configure:12879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12880 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12881 Defining HAVE_MULTICAST
12883 cat >> confdefs.h <<\EOF
12884 #define HAVE_MULTICAST 1
12889 echo "configure: failed program was:" >&5
12890 cat conftest.$ac_ext >&5
12892 echo "$ac_t""no" 1>&6
12896 echo "$ac_t""no" 1>&6
12900 echo "$ac_t""no" 1>&6
12904 echo "$ac_t""no" 1>&6
12908 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12909 echo "configure:12910: checking for msgget" >&5
12911 cat > conftest.$ac_ext <<EOF
12912 #line 12913 "configure"
12913 #include "confdefs.h"
12914 /* System header to define __stub macros and hopefully few prototypes,
12915 which can conflict with char msgget(); below. */
12916 #include <assert.h>
12917 /* Override any gcc2 internal prototype to avoid an error. */
12918 /* We use char because int might match the return type of a gcc2
12919 builtin and then its argument prototype would still apply. */
12924 /* The GNU C library defines this for functions which it implements
12925 to always fail with ENOSYS. Some functions are actually named
12926 something starting with __ and the normal name is an alias. */
12927 #if defined (__stub_msgget) || defined (__stub___msgget)
12935 if { (eval echo configure:12936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12937 eval "ac_cv_func_msgget=yes"
12939 echo "configure: failed program was:" >&5
12940 cat conftest.$ac_ext >&5
12942 eval "ac_cv_func_msgget=no"
12946 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12947 echo "$ac_t""yes" 1>&6
12948 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12949 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12950 echo "configure:12951: checking for sys/ipc.h" >&5
12952 cat > conftest.$ac_ext <<EOF
12953 #line 12954 "configure"
12954 #include "confdefs.h"
12955 #include <sys/ipc.h>
12957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12958 { (eval echo configure:12959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12960 if test -z "$ac_err"; then
12962 eval "ac_cv_header_$ac_safe=yes"
12965 echo "configure: failed program was:" >&5
12966 cat conftest.$ac_ext >&5
12968 eval "ac_cv_header_$ac_safe=no"
12971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12972 echo "$ac_t""yes" 1>&6
12973 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12974 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12975 echo "configure:12976: checking for sys/msg.h" >&5
12977 cat > conftest.$ac_ext <<EOF
12978 #line 12979 "configure"
12979 #include "confdefs.h"
12980 #include <sys/msg.h>
12982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12983 { (eval echo configure:12984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12985 if test -z "$ac_err"; then
12987 eval "ac_cv_header_$ac_safe=yes"
12990 echo "configure: failed program was:" >&5
12991 cat conftest.$ac_ext >&5
12993 eval "ac_cv_header_$ac_safe=no"
12996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12997 echo "$ac_t""yes" 1>&6
12998 { test "$extra_verbose" = "yes" && cat << \EOF
12999 Defining HAVE_SYSVIPC
13001 cat >> confdefs.h <<\EOF
13002 #define HAVE_SYSVIPC 1
13007 echo "$ac_t""no" 1>&6
13011 echo "$ac_t""no" 1>&6
13015 echo "$ac_t""no" 1>&6
13019 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
13020 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
13021 echo "configure:13022: checking for dirent.h" >&5
13023 cat > conftest.$ac_ext <<EOF
13024 #line 13025 "configure"
13025 #include "confdefs.h"
13026 #include <dirent.h>
13028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13029 { (eval echo configure:13030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13031 if test -z "$ac_err"; then
13033 eval "ac_cv_header_$ac_safe=yes"
13036 echo "configure: failed program was:" >&5
13037 cat conftest.$ac_ext >&5
13039 eval "ac_cv_header_$ac_safe=no"
13042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13043 echo "$ac_t""yes" 1>&6
13044 { test "$extra_verbose" = "yes" && cat << \EOF
13045 Defining SYSV_SYSTEM_DIR
13047 cat >> confdefs.h <<\EOF
13048 #define SYSV_SYSTEM_DIR 1
13053 echo "$ac_t""no" 1>&6
13054 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
13055 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
13056 echo "configure:13057: checking for sys/dir.h" >&5
13058 cat > conftest.$ac_ext <<EOF
13059 #line 13060 "configure"
13060 #include "confdefs.h"
13061 #include <sys/dir.h>
13063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13064 { (eval echo configure:13065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13066 if test -z "$ac_err"; then
13068 eval "ac_cv_header_$ac_safe=yes"
13071 echo "configure: failed program was:" >&5
13072 cat conftest.$ac_ext >&5
13074 eval "ac_cv_header_$ac_safe=no"
13077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13078 echo "$ac_t""yes" 1>&6
13081 echo "$ac_t""no" 1>&6
13082 { test "$extra_verbose" = "yes" && cat << \EOF
13083 Defining NONSYSTEM_DIR_LIBRARY
13085 cat >> confdefs.h <<\EOF
13086 #define NONSYSTEM_DIR_LIBRARY 1
13095 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
13096 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
13097 echo "configure:13098: checking for nlist.h" >&5
13099 cat > conftest.$ac_ext <<EOF
13100 #line 13101 "configure"
13101 #include "confdefs.h"
13104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13105 { (eval echo configure:13106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13107 if test -z "$ac_err"; then
13109 eval "ac_cv_header_$ac_safe=yes"
13112 echo "configure: failed program was:" >&5
13113 cat conftest.$ac_ext >&5
13115 eval "ac_cv_header_$ac_safe=no"
13118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13119 echo "$ac_t""yes" 1>&6
13120 { test "$extra_verbose" = "yes" && cat << \EOF
13121 Defining NLIST_STRUCT
13123 cat >> confdefs.h <<\EOF
13124 #define NLIST_STRUCT 1
13129 echo "$ac_t""no" 1>&6
13134 echo "checking "for sound support"" 1>&6
13135 echo "configure:13136: checking "for sound support"" >&5
13136 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
13138 if test "$with_native_sound" != "no"; then
13139 if test -n "$native_sound_lib"; then
13140 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
13141 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
13142 echo "configure:13143: checking for multimedia/audio_device.h" >&5
13144 cat > conftest.$ac_ext <<EOF
13145 #line 13146 "configure"
13146 #include "confdefs.h"
13147 #include <multimedia/audio_device.h>
13149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13150 { (eval echo configure:13151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13151 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13152 if test -z "$ac_err"; then
13154 eval "ac_cv_header_$ac_safe=yes"
13157 echo "configure: failed program was:" >&5
13158 cat conftest.$ac_ext >&5
13160 eval "ac_cv_header_$ac_safe=no"
13163 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13164 echo "$ac_t""yes" 1>&6
13165 sound_found=yes sound_cflags=""
13166 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
13167 echo " xemacs will be linked with \"sunplay.o\""
13170 echo "$ac_t""no" 1>&6
13175 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
13176 if test -d "/usr/demo/SOUND/include/multimedia"; then
13177 sun_sound_cflags="-I/usr/demo/SOUND/include"
13178 elif test -d "/usr/demo/SOUND/multimedia"; then
13179 sun_sound_cflags="-I/usr/demo/SOUND"
13182 if test -n "$native_sound_lib"; then
13183 sun_sound_lib="$native_sound_lib"
13184 elif test -r "/usr/demo/SOUND/lib/libaudio.a"; then
13185 sun_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
13186 elif test -r "/usr/demo/SOUND/libaudio.a"; then
13187 sun_sound_lib="/usr/demo/SOUND/libaudio.a"
13190 if test -n "$sun_sound_cflags" -a -n "$sun_sound_lib"; then
13191 native_sound_lib="$sun_sound_lib"
13192 sound_cflags="$sun_sound_cflags"
13194 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
13195 echo " xemacs will be linked with \"sunplay.o\""
13200 if test -z "$sound_found"; then
13201 case "$canonical" in
13203 if test -z "$native_sound_lib"; then
13205 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
13206 echo "configure:13207: checking for ALopenport in -laudio" >&5
13207 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
13209 xe_check_libs=" -laudio "
13210 cat > conftest.$ac_ext <<EOF
13211 #line 13212 "configure"
13212 #include "confdefs.h"
13213 /* Override any gcc2 internal prototype to avoid an error. */
13214 /* We use char because int might match the return type of a gcc2
13215 builtin and then its argument prototype would still apply. */
13222 if { (eval echo configure:13223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13224 eval "ac_cv_lib_$ac_lib_var=yes"
13226 echo "configure: failed program was:" >&5
13227 cat conftest.$ac_ext >&5
13229 eval "ac_cv_lib_$ac_lib_var=no"
13234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13235 echo "$ac_t""yes" 1>&6
13236 native_sound_lib="-laudio"
13238 echo "$ac_t""no" 1>&6
13243 if test -n "$native_sound_lib"; then
13244 sound_found=yes sound_cflags=""
13245 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
13246 echo " xemacs will be linked with \"sgiplay.o\""
13250 if test -z "$native_sound_lib"; then
13252 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
13253 echo "configure:13254: checking for AOpenAudio in -lAlib" >&5
13254 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
13256 xe_check_libs=" -lAlib "
13257 cat > conftest.$ac_ext <<EOF
13258 #line 13259 "configure"
13259 #include "confdefs.h"
13260 /* Override any gcc2 internal prototype to avoid an error. */
13261 /* We use char because int might match the return type of a gcc2
13262 builtin and then its argument prototype would still apply. */
13269 if { (eval echo configure:13270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13271 eval "ac_cv_lib_$ac_lib_var=yes"
13273 echo "configure: failed program was:" >&5
13274 cat conftest.$ac_ext >&5
13276 eval "ac_cv_lib_$ac_lib_var=no"
13281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13282 echo "$ac_t""yes" 1>&6
13283 native_sound_lib="-lAlib"
13285 echo "$ac_t""no" 1>&6
13290 if test -n "$native_sound_lib"; then
13292 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
13293 echo " xemacs will be linked with \"hpplay.o\""
13295 if test "$GCC" = "yes" # Kludge city
13296 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
13297 else sound_cflags="+e -I/usr/audio/examples"
13303 if test -z "$sound_found"; then
13304 if test "$with_msw" = "yes"; then
13310 if test -z "$sound_found"; then
13311 for dir in "machine" "sys" "linux"; do
13312 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13313 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13314 echo "configure:13315: checking for ${dir}/soundcard.h" >&5
13316 cat > conftest.$ac_ext <<EOF
13317 #line 13318 "configure"
13318 #include "confdefs.h"
13319 #include <${dir}/soundcard.h>
13321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13322 { (eval echo configure:13323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13324 if test -z "$ac_err"; then
13326 eval "ac_cv_header_$ac_safe=yes"
13329 echo "configure: failed program was:" >&5
13330 cat conftest.$ac_ext >&5
13332 eval "ac_cv_header_$ac_safe=no"
13335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13336 echo "$ac_t""yes" 1>&6
13339 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13340 echo " xemacs will be linked with \"linuxplay.o\""
13342 { test "$extra_verbose" = "yes" && cat << EOF
13343 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13345 cat >> confdefs.h <<EOF
13346 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13352 echo "$ac_t""no" 1>&6
13358 test "$sound_found" = "yes" && with_native_sound=yes
13361 if test "$with_native_sound" = "yes"; then
13362 { test "$extra_verbose" = "yes" && cat << \EOF
13363 Defining HAVE_NATIVE_SOUND
13365 cat >> confdefs.h <<\EOF
13366 #define HAVE_NATIVE_SOUND 1
13370 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13373 if test "$with_nas_sound" != "no"; then
13374 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13375 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13376 echo "configure:13377: checking for audio/audiolib.h" >&5
13378 cat > conftest.$ac_ext <<EOF
13379 #line 13380 "configure"
13380 #include "confdefs.h"
13381 #include <audio/audiolib.h>
13383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13384 { (eval echo configure:13385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13386 if test -z "$ac_err"; then
13388 eval "ac_cv_header_$ac_safe=yes"
13391 echo "configure: failed program was:" >&5
13392 cat conftest.$ac_ext >&5
13394 eval "ac_cv_header_$ac_safe=no"
13397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13398 echo "$ac_t""yes" 1>&6
13401 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13402 echo "configure:13403: checking for AuOpenServer in -laudio" >&5
13403 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13405 xe_check_libs=" -laudio "
13406 cat > conftest.$ac_ext <<EOF
13407 #line 13408 "configure"
13408 #include "confdefs.h"
13409 /* Override any gcc2 internal prototype to avoid an error. */
13410 /* We use char because int might match the return type of a gcc2
13411 builtin and then its argument prototype would still apply. */
13412 char AuOpenServer();
13418 if { (eval echo configure:13419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13420 eval "ac_cv_lib_$ac_lib_var=yes"
13422 echo "configure: failed program was:" >&5
13423 cat conftest.$ac_ext >&5
13425 eval "ac_cv_lib_$ac_lib_var=no"
13430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13431 echo "$ac_t""yes" 1>&6
13434 echo "$ac_t""no" 1>&6
13439 echo "$ac_t""no" 1>&6
13442 if test "$have_nas_sound" = "yes"; then
13444 { test "$extra_verbose" = "yes" && cat << \EOF
13445 Defining HAVE_NAS_SOUND
13447 cat >> confdefs.h <<\EOF
13448 #define HAVE_NAS_SOUND 1
13452 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13453 echo " xemacs will be linked with \"nas.o\""
13455 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13456 cat > conftest.$ac_ext <<EOF
13457 #line 13458 "configure"
13458 #include "confdefs.h"
13459 #include <audio/Xtutil.h>
13461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13462 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13466 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13467 Defining NAS_NO_ERROR_JUMP
13469 cat >> confdefs.h <<\EOF
13470 #define NAS_NO_ERROR_JUMP 1
13478 test "$with_nas_sound" = "yes" && \
13479 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13484 if test "$with_esd_sound" != "no"; then
13485 # Extract the first word of "esd-config", so it can be a program name with args.
13486 set dummy esd-config; ac_word=$2
13487 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13488 echo "configure:13489: checking for $ac_word" >&5
13490 if test -n "$have_esd_config"; then
13491 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13493 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13495 for ac_dir in $ac_dummy; do
13496 test -z "$ac_dir" && ac_dir=.
13497 if test -f $ac_dir/$ac_word; then
13498 ac_cv_prog_have_esd_config="yes"
13503 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13505 have_esd_config="$ac_cv_prog_have_esd_config"
13506 if test -n "$have_esd_config"; then
13507 echo "$ac_t""$have_esd_config" 1>&6
13509 echo "$ac_t""no" 1>&6
13512 if test "$have_esd_config" = "yes"; then
13513 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13514 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
13515 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13516 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13517 echo "configure:13518: checking for esd_play_stream" >&5
13519 cat > conftest.$ac_ext <<EOF
13520 #line 13521 "configure"
13521 #include "confdefs.h"
13522 /* System header to define __stub macros and hopefully few prototypes,
13523 which can conflict with char esd_play_stream(); below. */
13524 #include <assert.h>
13525 /* Override any gcc2 internal prototype to avoid an error. */
13526 /* We use char because int might match the return type of a gcc2
13527 builtin and then its argument prototype would still apply. */
13528 char esd_play_stream();
13532 /* The GNU C library defines this for functions which it implements
13533 to always fail with ENOSYS. Some functions are actually named
13534 something starting with __ and the normal name is an alias. */
13535 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13543 if { (eval echo configure:13544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13545 eval "ac_cv_func_esd_play_stream=yes"
13547 echo "configure: failed program was:" >&5
13548 cat conftest.$ac_ext >&5
13550 eval "ac_cv_func_esd_play_stream=no"
13554 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13555 echo "$ac_t""yes" 1>&6
13558 echo "$ac_t""no" 1>&6
13559 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13564 if test "$have_esd_sound" = "yes"; then
13567 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13568 echo " xemacs will be linked with \"esd.o\""
13570 { test "$extra_verbose" = "yes" && cat << \EOF
13571 Defining HAVE_ESD_SOUND
13573 cat >> confdefs.h <<\EOF
13574 #define HAVE_ESD_SOUND 1
13579 test "$with_esd_sound" = "yes" && \
13580 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13585 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13586 echo " xemacs will be linked with \"miscplay.o\""
13590 test -z "$with_tty" && with_tty=yes
13592 if test "$with_tty" = "yes" ; then
13593 echo "checking for TTY-related features" 1>&6
13594 echo "configure:13595: checking for TTY-related features" >&5
13595 { test "$extra_verbose" = "yes" && cat << \EOF
13598 cat >> confdefs.h <<\EOF
13603 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
13604 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\""
13607 if test -z "$with_ncurses"; then
13609 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13610 echo "configure:13611: checking for tgetent in -lncurses" >&5
13611 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13613 xe_check_libs=" -lncurses "
13614 cat > conftest.$ac_ext <<EOF
13615 #line 13616 "configure"
13616 #include "confdefs.h"
13617 /* Override any gcc2 internal prototype to avoid an error. */
13618 /* We use char because int might match the return type of a gcc2
13619 builtin and then its argument prototype would still apply. */
13626 if { (eval echo configure:13627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13628 eval "ac_cv_lib_$ac_lib_var=yes"
13630 echo "configure: failed program was:" >&5
13631 cat conftest.$ac_ext >&5
13633 eval "ac_cv_lib_$ac_lib_var=no"
13638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13639 echo "$ac_t""yes" 1>&6
13642 echo "$ac_t""no" 1>&6
13648 if test "$with_ncurses" = "yes"; then
13649 { test "$extra_verbose" = "yes" && cat << \EOF
13650 Defining HAVE_NCURSES
13652 cat >> confdefs.h <<\EOF
13653 #define HAVE_NCURSES 1
13657 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13658 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13659 echo "configure:13660: checking for ncurses/curses.h" >&5
13661 cat > conftest.$ac_ext <<EOF
13662 #line 13663 "configure"
13663 #include "confdefs.h"
13664 #include <ncurses/curses.h>
13666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13667 { (eval echo configure:13668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13669 if test -z "$ac_err"; then
13671 eval "ac_cv_header_$ac_safe=yes"
13674 echo "configure: failed program was:" >&5
13675 cat conftest.$ac_ext >&5
13677 eval "ac_cv_header_$ac_safe=no"
13680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13681 echo "$ac_t""yes" 1>&6
13682 curses_h_file=ncurses/curses.h
13684 echo "$ac_t""no" 1>&6
13687 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13688 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13689 echo "configure:13690: checking for ncurses/term.h" >&5
13691 cat > conftest.$ac_ext <<EOF
13692 #line 13693 "configure"
13693 #include "confdefs.h"
13694 #include <ncurses/term.h>
13696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13697 { (eval echo configure:13698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13699 if test -z "$ac_err"; then
13701 eval "ac_cv_header_$ac_safe=yes"
13704 echo "configure: failed program was:" >&5
13705 cat conftest.$ac_ext >&5
13707 eval "ac_cv_header_$ac_safe=no"
13710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13711 echo "$ac_t""yes" 1>&6
13712 term_h_file=ncurses/term.h
13714 echo "$ac_t""no" 1>&6
13717 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13718 echo " xemacs will be linked with \"terminfo.o\""
13720 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13722 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13723 save_c_switch_site="$c_switch_site"
13724 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13725 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13726 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13727 echo "configure:13728: checking for ncurses/curses.h" >&5
13729 cat > conftest.$ac_ext <<EOF
13730 #line 13731 "configure"
13731 #include "confdefs.h"
13732 #include <ncurses/curses.h>
13734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13735 { (eval echo configure:13736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13737 if test -z "$ac_err"; then
13739 eval "ac_cv_header_$ac_safe=yes"
13742 echo "configure: failed program was:" >&5
13743 cat conftest.$ac_ext >&5
13745 eval "ac_cv_header_$ac_safe=no"
13748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13749 echo "$ac_t""yes" 1>&6
13750 curses_h_file=ncurses/curses.h
13752 echo "$ac_t""no" 1>&6
13755 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13756 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13757 else c_switch_site="$save_c_switch_site"
13760 else if test "$have_terminfo" = "yes"; then
13761 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13762 echo " xemacs will be linked with \"terminfo.o\""
13764 if test -n "$libs_termcap"; then
13765 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13767 for lib in curses termlib termcap; do
13769 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13770 echo "configure:13771: checking for tgetent in -l$lib" >&5
13771 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13773 xe_check_libs=" -l$lib "
13774 cat > conftest.$ac_ext <<EOF
13775 #line 13776 "configure"
13776 #include "confdefs.h"
13777 /* Override any gcc2 internal prototype to avoid an error. */
13778 /* We use char because int might match the return type of a gcc2
13779 builtin and then its argument prototype would still apply. */
13786 if { (eval echo configure:13787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13788 eval "ac_cv_lib_$ac_lib_var=yes"
13790 echo "configure: failed program was:" >&5
13791 cat conftest.$ac_ext >&5
13793 eval "ac_cv_lib_$ac_lib_var=no"
13798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13799 echo "$ac_t""yes" 1>&6
13800 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13802 echo "$ac_t""no" 1>&6
13808 else if test -n "$libs_termcap" -a "$opsys" = "openbsd"; then
13810 echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6
13811 echo "configure:13812: checking for tgoto in -ltermcap" >&5
13812 ac_lib_var=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'`
13814 xe_check_libs=" -ltermcap "
13815 cat > conftest.$ac_ext <<EOF
13816 #line 13817 "configure"
13817 #include "confdefs.h"
13818 /* Override any gcc2 internal prototype to avoid an error. */
13819 /* We use char because int might match the return type of a gcc2
13820 builtin and then its argument prototype would still apply. */
13827 if { (eval echo configure:13828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13829 eval "ac_cv_lib_$ac_lib_var=yes"
13831 echo "configure: failed program was:" >&5
13832 cat conftest.$ac_ext >&5
13834 eval "ac_cv_lib_$ac_lib_var=no"
13839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13840 echo "$ac_t""yes" 1>&6
13841 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13842 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13843 { test "$extra_verbose" = "yes" && cat << EOF
13844 Defining $ac_tr_lib
13846 cat >> confdefs.h <<EOF
13847 #define $ac_tr_lib 1
13851 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13854 echo "$ac_t""no" 1>&6
13855 extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13856 echo " xemacs will be linked with \"tparam.o\""
13862 extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13863 echo " xemacs will be linked with \"tparam.o\""
13866 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13867 if test -n "$libs_termcap"; then
13868 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13871 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13872 echo "configure:13873: checking for tgetent in -lcurses" >&5
13873 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13875 xe_check_libs=" -lcurses "
13876 cat > conftest.$ac_ext <<EOF
13877 #line 13878 "configure"
13878 #include "confdefs.h"
13879 /* Override any gcc2 internal prototype to avoid an error. */
13880 /* We use char because int might match the return type of a gcc2
13881 builtin and then its argument prototype would still apply. */
13888 if { (eval echo configure:13889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13890 eval "ac_cv_lib_$ac_lib_var=yes"
13892 echo "configure: failed program was:" >&5
13893 cat conftest.$ac_ext >&5
13895 eval "ac_cv_lib_$ac_lib_var=no"
13900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13901 echo "$ac_t""yes" 1>&6
13902 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13904 echo "$ac_t""no" 1>&6
13905 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13906 echo "configure:13907: checking for tgetent in -ltermcap" >&5
13907 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13909 xe_check_libs=" -ltermcap "
13910 cat > conftest.$ac_ext <<EOF
13911 #line 13912 "configure"
13912 #include "confdefs.h"
13913 /* Override any gcc2 internal prototype to avoid an error. */
13914 /* We use char because int might match the return type of a gcc2
13915 builtin and then its argument prototype would still apply. */
13922 if { (eval echo configure:13923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13924 eval "ac_cv_lib_$ac_lib_var=yes"
13926 echo "configure: failed program was:" >&5
13927 cat conftest.$ac_ext >&5
13929 eval "ac_cv_lib_$ac_lib_var=no"
13934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13935 echo "$ac_t""yes" 1>&6
13936 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13938 echo "$ac_t""no" 1>&6
13939 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13940 echo " xemacs will be linked with \"termcap.o\""
13951 { test "$extra_verbose" = "yes" && cat << EOF
13952 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13954 cat >> confdefs.h <<EOF
13955 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13959 { test "$extra_verbose" = "yes" && cat << EOF
13960 Defining TERM_H_FILE = "${term_h_file-term.h}"
13962 cat >> confdefs.h <<EOF
13963 #define TERM_H_FILE "${term_h_file-term.h}"
13968 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13969 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13970 echo "configure:13971: checking for gpm.h" >&5
13972 cat > conftest.$ac_ext <<EOF
13973 #line 13974 "configure"
13974 #include "confdefs.h"
13977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13978 { (eval echo configure:13979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13980 if test -z "$ac_err"; then
13982 eval "ac_cv_header_$ac_safe=yes"
13985 echo "configure: failed program was:" >&5
13986 cat conftest.$ac_ext >&5
13988 eval "ac_cv_header_$ac_safe=no"
13991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13992 echo "$ac_t""yes" 1>&6
13995 echo "$ac_t""no" 1>&6
13999 test -z "$with_gpm" && {
14000 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
14001 echo "configure:14002: checking for Gpm_Open in -lgpm" >&5
14002 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
14004 xe_check_libs=" -lgpm "
14005 cat > conftest.$ac_ext <<EOF
14006 #line 14007 "configure"
14007 #include "confdefs.h"
14008 /* Override any gcc2 internal prototype to avoid an error. */
14009 /* We use char because int might match the return type of a gcc2
14010 builtin and then its argument prototype would still apply. */
14017 if { (eval echo configure:14018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14019 eval "ac_cv_lib_$ac_lib_var=yes"
14021 echo "configure: failed program was:" >&5
14022 cat conftest.$ac_ext >&5
14024 eval "ac_cv_lib_$ac_lib_var=no"
14029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14030 echo "$ac_t""yes" 1>&6
14033 echo "$ac_t""no" 1>&6
14038 if test "$with_gpm" = "yes"; then
14039 { test "$extra_verbose" = "yes" && cat << \EOF
14042 cat >> confdefs.h <<\EOF
14047 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
14048 echo " xemacs will be linked with \"gpmevent.o\""
14050 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
14053 else for feature in ncurses gpm; do
14054 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
14055 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
14057 eval "with_${feature}=no"
14060 test "$with_x11" = "yes" -o "$with_tty" = "yes" -o "$need_event_unixoid" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
14061 echo " xemacs will be linked with \"event-unixoid.o\""
14065 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14066 != "no no no" && echo "checking for database support" 1>&6
14067 echo "configure:14068: checking for database support" >&5
14069 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
14070 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
14071 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
14072 echo "configure:14073: checking for ndbm.h" >&5
14074 cat > conftest.$ac_ext <<EOF
14075 #line 14076 "configure"
14076 #include "confdefs.h"
14079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14080 { (eval echo configure:14081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14082 if test -z "$ac_err"; then
14084 eval "ac_cv_header_$ac_safe=yes"
14087 echo "configure: failed program was:" >&5
14088 cat conftest.$ac_ext >&5
14090 eval "ac_cv_header_$ac_safe=no"
14093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14094 echo "$ac_t""yes" 1>&6
14097 echo "$ac_t""no" 1>&6
14099 test "$with_database_gdbm" = "yes" -o \
14100 "$with_database_dbm" = "yes" && \
14101 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
14102 with_database_gdbm=no with_database_dbm=no
14107 if test "$with_database_gdbm" != "no"; then
14109 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
14110 echo "configure:14111: checking for dbm_open in -lgdbm" >&5
14111 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
14113 xe_check_libs=" -lgdbm "
14114 cat > conftest.$ac_ext <<EOF
14115 #line 14116 "configure"
14116 #include "confdefs.h"
14117 /* Override any gcc2 internal prototype to avoid an error. */
14118 /* We use char because int might match the return type of a gcc2
14119 builtin and then its argument prototype would still apply. */
14126 if { (eval echo configure:14127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14128 eval "ac_cv_lib_$ac_lib_var=yes"
14130 echo "configure: failed program was:" >&5
14131 cat conftest.$ac_ext >&5
14133 eval "ac_cv_lib_$ac_lib_var=no"
14138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14139 echo "$ac_t""yes" 1>&6
14140 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
14142 echo "$ac_t""no" 1>&6
14143 if test "$with_database_gdbm" = "yes"; then
14144 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
14146 with_database_gdbm=no
14152 if test "$with_database_dbm" != "no"; then
14153 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14154 echo "configure:14155: checking for dbm_open" >&5
14156 cat > conftest.$ac_ext <<EOF
14157 #line 14158 "configure"
14158 #include "confdefs.h"
14159 /* System header to define __stub macros and hopefully few prototypes,
14160 which can conflict with char dbm_open(); below. */
14161 #include <assert.h>
14162 /* Override any gcc2 internal prototype to avoid an error. */
14163 /* We use char because int might match the return type of a gcc2
14164 builtin and then its argument prototype would still apply. */
14169 /* The GNU C library defines this for functions which it implements
14170 to always fail with ENOSYS. Some functions are actually named
14171 something starting with __ and the normal name is an alias. */
14172 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
14180 if { (eval echo configure:14181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14182 eval "ac_cv_func_dbm_open=yes"
14184 echo "configure: failed program was:" >&5
14185 cat conftest.$ac_ext >&5
14187 eval "ac_cv_func_dbm_open=no"
14191 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
14192 echo "$ac_t""yes" 1>&6
14193 with_database_dbm=yes libdbm=
14195 echo "$ac_t""no" 1>&6
14198 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14199 echo "configure:14200: checking for dbm_open in -ldbm" >&5
14200 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
14202 xe_check_libs=" -ldbm "
14203 cat > conftest.$ac_ext <<EOF
14204 #line 14205 "configure"
14205 #include "confdefs.h"
14206 /* Override any gcc2 internal prototype to avoid an error. */
14207 /* We use char because int might match the return type of a gcc2
14208 builtin and then its argument prototype would still apply. */
14215 if { (eval echo configure:14216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14217 eval "ac_cv_lib_$ac_lib_var=yes"
14219 echo "configure: failed program was:" >&5
14220 cat conftest.$ac_ext >&5
14222 eval "ac_cv_lib_$ac_lib_var=no"
14227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14228 echo "$ac_t""yes" 1>&6
14229 with_database_dbm=yes libdbm=-ldbm
14231 echo "$ac_t""no" 1>&6
14232 test "$with_database_dbm" = "yes" && \
14233 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
14234 with_database_dbm=no
14242 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
14243 test "$with_database_gdbm" = "yes" -o \
14244 "$with_database_dbm" = "yes" && \
14245 { test "$extra_verbose" = "yes" && cat << \EOF
14248 cat >> confdefs.h <<\EOF
14254 if test "$with_database_berkdb" != "no"; then
14255 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
14256 echo "configure:14257: checking for Berkeley db.h" >&5
14257 for header in "db/db.h" "db.h"; do
14260 cat > conftest.$ac_ext <<EOF
14261 #line 14262 "configure"
14262 #include "confdefs.h"
14264 #include <stdlib.h>
14265 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14266 #ifdef HAVE_INTTYPES_H
14267 #define __BIT_TYPES_DEFINED__
14268 #include <inttypes.h>
14277 if { (eval echo configure:14278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14279 db_h_file="$header"; break
14281 echo "configure: failed program was:" >&5
14282 cat conftest.$ac_ext >&5
14287 cat > conftest.$ac_ext <<EOF
14288 #line 14289 "configure"
14289 #include "confdefs.h"
14291 #include <stdlib.h>
14292 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14293 #ifdef HAVE_INTTYPES_H
14294 #define __BIT_TYPES_DEFINED__
14295 #include <inttypes.h>
14296 typedef uint8_t u_int8_t;
14297 typedef uint16_t u_int16_t;
14298 typedef uint32_t u_int32_t;
14299 #ifdef WE_DONT_NEED_QUADS
14300 typedef uint64_t u_int64_t;
14310 if { (eval echo configure:14311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14312 db_h_file="$header"; break
14314 echo "configure: failed program was:" >&5
14315 cat conftest.$ac_ext >&5
14321 if test -z "$db_h_file"
14322 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
14323 else echo "$ac_t""$db_h_file" 1>&6
14326 if test "$with_database_berkdb" != "no"; then
14327 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
14328 echo "configure:14329: checking for Berkeley DB version" >&5
14329 cat > conftest.$ac_ext <<EOF
14330 #line 14331 "configure"
14331 #include "confdefs.h"
14332 #include <$db_h_file>
14333 #if DB_VERSION_MAJOR > 1
14338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14339 egrep "yes" >/dev/null 2>&1; then
14341 cat > conftest.$ac_ext <<EOF
14342 #line 14343 "configure"
14343 #include "confdefs.h"
14344 #include <$db_h_file>
14345 #if DB_VERSION_MAJOR > 2
14350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14351 egrep "yes" >/dev/null 2>&1; then
14353 echo "$ac_t""3" 1>&6; dbfunc=db_create
14357 echo "$ac_t""2" 1>&6; dbfunc=db_open
14364 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14368 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14369 echo "configure:14370: checking for $dbfunc" >&5
14371 cat > conftest.$ac_ext <<EOF
14372 #line 14373 "configure"
14373 #include "confdefs.h"
14374 /* System header to define __stub macros and hopefully few prototypes,
14375 which can conflict with char $dbfunc(); below. */
14376 #include <assert.h>
14377 /* Override any gcc2 internal prototype to avoid an error. */
14378 /* We use char because int might match the return type of a gcc2
14379 builtin and then its argument prototype would still apply. */
14384 /* The GNU C library defines this for functions which it implements
14385 to always fail with ENOSYS. Some functions are actually named
14386 something starting with __ and the normal name is an alias. */
14387 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
14395 if { (eval echo configure:14396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14397 eval "ac_cv_func_$dbfunc=yes"
14399 echo "configure: failed program was:" >&5
14400 cat conftest.$ac_ext >&5
14402 eval "ac_cv_func_$dbfunc=no"
14406 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
14407 echo "$ac_t""yes" 1>&6
14408 with_database_berkdb=yes need_libdb=no
14410 echo "$ac_t""no" 1>&6
14413 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14414 echo "configure:14415: checking for $dbfunc in -ldb" >&5
14415 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14417 xe_check_libs=" -ldb "
14418 cat > conftest.$ac_ext <<EOF
14419 #line 14420 "configure"
14420 #include "confdefs.h"
14421 /* Override any gcc2 internal prototype to avoid an error. */
14422 /* We use char because int might match the return type of a gcc2
14423 builtin and then its argument prototype would still apply. */
14430 if { (eval echo configure:14431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14432 eval "ac_cv_lib_$ac_lib_var=yes"
14434 echo "configure: failed program was:" >&5
14435 cat conftest.$ac_ext >&5
14437 eval "ac_cv_lib_$ac_lib_var=no"
14442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14443 echo "$ac_t""yes" 1>&6
14444 with_database_berkdb=yes need_libdb=yes
14446 echo "$ac_t""no" 1>&6
14454 if test "$with_database_berkdb" = "yes"; then
14455 { test "$extra_verbose" = "yes" && cat << EOF
14456 Defining DB_H_FILE = "$db_h_file"
14458 cat >> confdefs.h <<EOF
14459 #define DB_H_FILE "$db_h_file"
14463 { test "$extra_verbose" = "yes" && cat << \EOF
14464 Defining HAVE_BERKELEY_DB
14466 cat >> confdefs.h <<\EOF
14467 #define HAVE_BERKELEY_DB 1
14471 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14472 else with_database_berkdb=no
14476 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14477 != "no no no"; then
14478 { test "$extra_verbose" = "yes" && cat << \EOF
14479 Defining HAVE_DATABASE
14481 cat >> confdefs.h <<\EOF
14482 #define HAVE_DATABASE 1
14486 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14487 echo " xemacs will be linked with \"database.o\""
14491 if test "$with_socks" = "yes"; then
14493 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14494 echo "configure:14495: checking for SOCKSinit in -lsocks" >&5
14495 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14497 xe_check_libs=" -lsocks "
14498 cat > conftest.$ac_ext <<EOF
14499 #line 14500 "configure"
14500 #include "confdefs.h"
14501 /* Override any gcc2 internal prototype to avoid an error. */
14502 /* We use char because int might match the return type of a gcc2
14503 builtin and then its argument prototype would still apply. */
14510 if { (eval echo configure:14511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14512 eval "ac_cv_lib_$ac_lib_var=yes"
14514 echo "configure: failed program was:" >&5
14515 cat conftest.$ac_ext >&5
14517 eval "ac_cv_lib_$ac_lib_var=no"
14522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14523 echo "$ac_t""yes" 1>&6
14524 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14525 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14526 { test "$extra_verbose" = "yes" && cat << EOF
14527 Defining $ac_tr_lib
14529 cat >> confdefs.h <<EOF
14530 #define $ac_tr_lib 1
14534 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14537 echo "$ac_t""no" 1>&6
14541 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14542 Defining HAVE_SOCKS
14544 cat >> confdefs.h <<\EOF
14545 #define HAVE_SOCKS 1
14551 if test "$usage_tracking" = "yes"; then
14552 { test "$extra_verbose" = "yes" && cat << \EOF
14553 Defining USAGE_TRACKING
14555 cat >> confdefs.h <<\EOF
14556 #define USAGE_TRACKING 1
14560 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14563 if test "$with_modules" != "no"; then
14564 echo "checking for module support" 1>&6
14565 echo "configure:14566: checking for module support" >&5
14567 if test "$with_msw" = "yes"; then
14571 darwin) have_dl=yes; { test "$extra_verbose" = "yes" && cat << \EOF
14574 cat >> confdefs.h <<\EOF
14575 #define HAVE_DYLD 1
14579 *) ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14580 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14581 echo "configure:14582: checking for dlfcn.h" >&5
14583 cat > conftest.$ac_ext <<EOF
14584 #line 14585 "configure"
14585 #include "confdefs.h"
14588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14589 { (eval echo configure:14590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14591 if test -z "$ac_err"; then
14593 eval "ac_cv_header_$ac_safe=yes"
14596 echo "configure: failed program was:" >&5
14597 cat conftest.$ac_ext >&5
14599 eval "ac_cv_header_$ac_safe=no"
14602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14603 echo "$ac_t""yes" 1>&6
14605 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14606 echo "configure:14607: checking for dlopen in -lc" >&5
14607 cat > conftest.$ac_ext <<EOF
14608 #line 14609 "configure"
14609 #include "confdefs.h"
14615 if { (eval echo configure:14616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14619 echo "configure: failed program was:" >&5
14620 cat conftest.$ac_ext >&5
14623 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14624 echo "configure:14625: checking for dlopen in -ldl" >&5
14625 ac_save_LIBS="$LIBS"
14627 cat > conftest.$ac_ext <<EOF
14628 #line 14629 "configure"
14629 #include "confdefs.h"
14635 if { (eval echo configure:14636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14639 echo "configure: failed program was:" >&5
14640 cat conftest.$ac_ext >&5
14642 LIBS="$ac_save_LIBS"
14649 echo "$ac_t""no" 1>&6
14652 if test -n "$have_dl"; then
14653 { test "$extra_verbose" = "yes" && cat << \EOF
14654 Defining HAVE_DLOPEN
14656 cat >> confdefs.h <<\EOF
14657 #define HAVE_DLOPEN 1
14663 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14664 echo "configure:14665: checking for shl_load in -ldld" >&5
14665 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14667 xe_check_libs=" -ldld "
14668 cat > conftest.$ac_ext <<EOF
14669 #line 14670 "configure"
14670 #include "confdefs.h"
14671 /* Override any gcc2 internal prototype to avoid an error. */
14672 /* We use char because int might match the return type of a gcc2
14673 builtin and then its argument prototype would still apply. */
14680 if { (eval echo configure:14681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14682 eval "ac_cv_lib_$ac_lib_var=yes"
14684 echo "configure: failed program was:" >&5
14685 cat conftest.$ac_ext >&5
14687 eval "ac_cv_lib_$ac_lib_var=no"
14692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14693 echo "$ac_t""yes" 1>&6
14694 libdl=dld have_dl=yes;
14695 { test "$extra_verbose" = "yes" && cat << \EOF
14696 Defining HAVE_SHL_LOAD
14698 cat >> confdefs.h <<\EOF
14699 #define HAVE_SHL_LOAD 1
14704 echo "$ac_t""no" 1>&6
14706 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14707 echo "configure:14708: checking for dld_init in -ldld" >&5
14708 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14710 xe_check_libs=" -ldld "
14711 cat > conftest.$ac_ext <<EOF
14712 #line 14713 "configure"
14713 #include "confdefs.h"
14714 /* Override any gcc2 internal prototype to avoid an error. */
14715 /* We use char because int might match the return type of a gcc2
14716 builtin and then its argument prototype would still apply. */
14723 if { (eval echo configure:14724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14725 eval "ac_cv_lib_$ac_lib_var=yes"
14727 echo "configure: failed program was:" >&5
14728 cat conftest.$ac_ext >&5
14730 eval "ac_cv_lib_$ac_lib_var=no"
14735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14736 echo "$ac_t""yes" 1>&6
14737 libdl=dld have_dl=yes;
14738 { test "$extra_verbose" = "yes" && cat << \EOF
14739 Defining HAVE_DLD_INIT
14741 cat >> confdefs.h <<\EOF
14742 #define HAVE_DLD_INIT 1
14747 echo "$ac_t""no" 1>&6
14758 if test -n "$have_dl"; then
14765 ld_dynamic_link_flags=
14767 xealias=$internal_configuration
14769 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14770 echo "configure:14771: checking how to build dynamic libraries for ${xehost}" >&5
14771 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14774 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14777 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14778 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14779 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14781 case "$xehost_os" in
14783 # AIX sometimes has problems with the GCC collect2 program. For some
14784 # reason, if we set the COLLECT_NAMES environment variable, the problems
14785 # vanish in a puff of smoke.
14786 if test "${COLLECT_NAMES+set}" != set; then
14788 export COLLECT_NAMES
14793 # Now see if the compiler is really GCC.
14794 if test "$GCC" = "yes"; then
14797 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14798 echo "configure:14799: checking checking whether we are using GNU C" >&5
14799 cat > conftest.$ac_ext <<EOF
14800 #line 14801 "configure"
14801 #include "confdefs.h"
14808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14809 egrep "yes" >/dev/null 2>&1; then
14818 echo "$ac_t""${XEGCC}" 1>&6
14821 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14822 echo "configure:14823: checking how to produce PIC code" >&5
14825 can_build_shared=yes
14826 if test "$XEGCC" = yes -o "$__ICC" = yes; then
14829 case "$xehost_os" in
14830 aix[3-9]* | irix[5-9]* | osf[3-9])
14831 # PIC is the default for these OSes.
14835 # We can build DLLs from non-PIC.
14838 # FIXME: we need at least 68020 code to build shared libraries, but
14839 # adding the `-m68020' flag to GCC prevents building anything better,
14841 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14843 *cygwin* | *mingw* )
14844 # PIC is the default
14851 # PORTME Check for PIC flags for the system compiler.
14852 case "$xehost_os" in
14853 hpux9* | hpux1[0-9]*)
14854 # Is there a better link_static_flag that works with the bundled CC?
14861 # PIC (with -KPIC) is the default.
14865 # We can build DLLs from non-PIC.
14869 # All OSF/1 code is PIC.
14874 # All AIX code is PIC.
14879 dll_cflags='-belf -Kpic'
14913 can_build_shared=no
14918 if test -n "$dll_cflags"; then
14919 echo "$ac_t""${dll_cflags}" 1>&6
14921 # Check to make sure the dll_cflags actually works.
14922 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14923 echo "configure:14924: checking if PIC flag ${dll_cflags} really works" >&5
14924 save_CFLAGS="$CFLAGS"
14925 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14926 cat > conftest.$ac_ext <<EOF
14927 #line 14928 "configure"
14928 #include "confdefs.h"
14934 if { (eval echo configure:14935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14937 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14938 # reports no error. So, we need to grep stderr for (Bundled).
14939 if grep '(Bundled)' config.log >/dev/null; then
14940 echo "$ac_t""no" 1>&6
14941 can_build_shared=no
14944 echo "$ac_t""yes" 1>&6
14947 echo "configure: failed program was:" >&5
14948 cat conftest.$ac_ext >&5
14950 echo "$ac_t""no" 1>&6
14951 can_build_shared=no
14955 CFLAGS="$save_CFLAGS"
14957 echo "$ac_t""none" 1>&6
14960 if test "$can_build_shared" = "yes"; then
14964 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14965 echo "configure:14966: checking if C compiler can produce shared libraries" >&5
14966 if test "$XEGCC" = yes -o "$__ICC" = yes; then
14969 else # Not using GCC
14970 case "$xehost_os" in
14972 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14973 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14976 freebsd2* | netbsd* | openbsd*)
14978 xcldf="${wl}-Bshareable"
14987 xcldf="${wl}-b ${wl}+s"
14990 irix[5-9]* | osf[3-9]*)
14991 xcldf="${wl}-shared"
14995 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
15001 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
15002 xldf="-assert pure-text -Bstatic"
15005 fi # End if if we are using gcc
15007 if test -n "$xcldf"; then
15008 save_LDFLAGS=$LDFLAGS
15010 save_xe_libs=$xe_libs
15011 LDFLAGS="$xcldf $LDFLAGS"
15014 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
15015 cat > conftest.$ac_ext <<EOF
15016 #line 15017 "configure"
15017 #include "confdefs.h"
15023 if { (eval echo configure:15024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15027 echo "configure: failed program was:" >&5
15028 cat conftest.$ac_ext >&5
15033 LDFLAGS=$save_LDFLAGS
15035 xe_libs=$save_xe_libs
15036 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
15040 echo "$ac_t""${cc_produces_so}" 1>&6
15043 if test -z "$LTLD"; then
15045 if test "$XEGCC" = yes; then
15046 # Check if gcc -print-prog-name=ld gives a path.
15047 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
15048 echo "configure:15049: checking for ld used by GCC" >&5
15049 ac_prog=`($CC -print-prog-name=ld) 2>&5`
15051 # Accept absolute paths.
15053 if test -z "$LTLD"; then
15054 # case "$ac_prog" in
15055 # *gcc-lib*) LTLD="$CC"
15064 # If it fails, then pretend we aren't using GCC.
15068 # If it is relative, then search for the first ld in PATH.
15069 with_gnu_ld=unknown
15073 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
15074 echo "configure:15075: checking for GNU ld" >&5
15077 if test -z "$LTLD"; then
15078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15079 for ac_dir in $PATH; do
15080 test -z "$ac_dir" && ac_dir=.
15081 if test -f "$ac_dir/$ac_prog"; then
15082 LTLD="$ac_dir/$ac_prog"
15083 # Check to see if the program is GNU ld. I'd rather use --version,
15084 # but apparently some GNU ld's only accept -v.
15085 # Break only if it was the GNU/non-GNU ld that we prefer.
15086 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15096 if test -n "$LTLD"; then
15097 echo "$ac_t""${LTLD}" 1>&6
15099 echo "$ac_t""no" 1>&6
15102 if test -z "$LTLD" -a "$cc_produces_so" = no; then
15103 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
15108 ld_dynamic_link_flags=
15110 # Check to see if it really is or isn't GNU ld.
15111 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
15112 echo "configure:15113: checking if the linker is GNU ld" >&5
15113 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15114 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15119 echo "$ac_t""${xe_gnu_ld}" 1>&6
15121 case "$xehost_os" in
15122 amigaos* | sunos4*)
15123 # On these operating systems, we should treat GNU ld like the system ld.
15124 gnu_ld_acts_native=yes
15127 gnu_ld_acts_native=no
15131 if test "$cc_produces_so" = "yes"; then
15134 can_build_shared=yes
15137 # OK - only NOW do we futz about with ld.
15138 # See if the linker supports building shared libraries.
15139 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
15140 echo "configure:15141: checking whether the linker supports shared libraries" >&5
15142 dll_ldflags=$LDFLAGS
15144 can_build_shared=yes
15145 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
15146 # See if GNU ld supports shared libraries.
15147 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15149 dll_ldflags="-shared"
15155 # PORTME fill in a description of your system's linker (not GNU ld)
15156 case "$xehost_os" in
15166 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15167 # support. Future versions do this automatically, but an explicit c++rt0.o
15168 # doesn't break anything, and helps significantly (at the cost of a little
15173 dll_post="/usr/lib/c++rt0.o"
15176 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
15179 dll_ldflags="-Bshareable"
15182 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
15184 dll_ldflags="-shared"
15198 # Tested with NetBSD 1.2 ld
15213 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
15214 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
15217 *gcc*) dll_ldflags="-shared"
15220 *) dll_ldflags="-G"
15226 if test "$XEGCC" = yes; then
15246 can_build_shared=no
15250 echo "$ac_t""${ld_shlibs}" 1>&6
15251 if test "$ld_shlibs" = "no"; then
15252 can_build_shared=no
15254 fi # End of if cc_produces_so = no
15257 if test "$xe_gnu_ld" = yes; then
15258 if test "$ld_shlibs" = yes; then
15259 ld_dynamic_link_flags="${wl}-export-dynamic"
15263 if test -z "$ld_dynamic_link_flags"; then
15264 case "$xehost_os" in
15266 ld_dynamic_link_flags=
15270 ld_dynamic_link_flags=
15274 ld_dynamic_link_flags=
15278 ld_dynamic_link_flags=
15282 ld_dynamic_link_flags="${wl}-E"
15286 ld_dynamic_link_flags=
15290 ld_dynamic_link_flags=
15294 ld_dynamic_link_flags=
15298 ld_dynamic_link_flags=
15301 solaris2* | solaris7*)
15302 ld_dynamic_link_flags=
15305 sco3.2v5* | unixware* | sysv5* | sysv4*)
15306 ld_dynamic_link_flags="${wl}-Bexport"
15310 ld_dynamic_link_flags=
15314 ld_dynamic_link_flags=
15318 ld_dynamic_link_flags=
15322 fi # End of if -z ld_dynamic_link_flags
15323 fi # End of if test "$can_build_shared" = "yes"
15334 if test "$can_build_shared" = "yes"; then
15335 { test "$extra_verbose" = "yes" && cat << \EOF
15336 Defining HAVE_SHLIB
15338 cat >> confdefs.h <<\EOF
15339 #define HAVE_SHLIB 1
15343 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
15344 echo " xemacs will be linked with \"sysdll.o emodules.o\""
15346 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
15347 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
15348 for ac_func in dlerror _dlerror
15350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15351 echo "configure:15352: checking for $ac_func" >&5
15353 cat > conftest.$ac_ext <<EOF
15354 #line 15355 "configure"
15355 #include "confdefs.h"
15356 /* System header to define __stub macros and hopefully few prototypes,
15357 which can conflict with char $ac_func(); below. */
15358 #include <assert.h>
15359 /* Override any gcc2 internal prototype to avoid an error. */
15360 /* We use char because int might match the return type of a gcc2
15361 builtin and then its argument prototype would still apply. */
15366 /* The GNU C library defines this for functions which it implements
15367 to always fail with ENOSYS. Some functions are actually named
15368 something starting with __ and the normal name is an alias. */
15369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15377 if { (eval echo configure:15378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15379 eval "ac_cv_func_$ac_func=yes"
15381 echo "configure: failed program was:" >&5
15382 cat conftest.$ac_ext >&5
15384 eval "ac_cv_func_$ac_func=no"
15388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15389 echo "$ac_t""yes" 1>&6
15390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15391 { test "$extra_verbose" = "yes" && cat << EOF
15392 Defining $ac_tr_func
15394 cat >> confdefs.h <<EOF
15395 #define $ac_tr_func 1
15400 echo "$ac_t""no" 1>&6
15406 if test "$with_modules" = "yes"; then
15407 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15409 echo "configure: warning: "Module support cannot be provided."" 1>&2
15415 cat > conftest.$ac_ext <<EOF
15416 #line 15417 "configure"
15417 #include "confdefs.h"
15418 int main(int c,char *v[]){return 0;}
15420 if { (eval echo configure:15421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15425 echo "configure: failed program was:" >&5
15426 cat conftest.$ac_ext >&5
15430 echo "*** PANIC *** configure forgot how to build working executables!"
15432 echo "*** This is most commonly due to an unforeseen environment, causing"
15433 echo "*** configure to incorrectly compute the sequence of libraries to link."
15434 echo "*** Please examine the tail of config.log for runtime errors."
15435 echo "*** Pay special attention to the -l flags, and perhaps -I and -L."
15436 echo "*** Often adding or removing explicit options in the configure"
15437 echo "*** invocation can work around this kind of problem. If so, please"
15438 echo "*** report it as a bug to xemacs-beta@xemacs.org."
15440 echo "*** Other possible causes are inability to write to the file system"
15441 echo "*** (bogus permissions or disk full) or a misconfiguration of the dynamic"
15442 echo "*** linker. On Linux, check /etc/ld.conf and rerun ldconfig if"
15443 echo "*** necessary. On other systems, try telling configure where to find"
15444 echo "*** the shared libraries using the --site-runtime-libraries option."
15446 echo "*** Another way to shoot yourself in the foot is to specify"
15447 echo "*** --with-FEATURE when FEATURE is not actually installed on your"
15448 echo "*** system. Don't do that."
15453 if test "$win32_processes" = "yes"; then
15454 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15455 echo " xemacs will be linked with \"process-nt.o\""
15458 { test "$extra_verbose" = "yes" && cat << \EOF
15459 Defining HAVE_UNIX_PROCESSES
15461 cat >> confdefs.h <<\EOF
15462 #define HAVE_UNIX_PROCESSES 1
15466 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15467 echo " xemacs will be linked with \"process-unix.o\""
15474 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15479 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15484 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
15485 c_switch_general="$T"
15489 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
15490 c_switch_window_system="$T"
15494 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15499 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
15500 ld_switch_general="$T"
15504 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15505 ld_switch_window_system="$T"
15509 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15514 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15515 ld_libs_general="$T"
15519 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
15520 ld_libs_window_system="$T"
15524 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15529 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15530 internal_makefile_list="Makefile.in"
15531 SUBDIR_MAKEFILES=''
15532 test -d lock || mkdir lock
15533 for dir in $MAKE_SUBDIR; do
15534 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15535 test -d "$d" || mkdir "$d"; cd "$d"
15537 * ) test -d "$dir" || mkdir "$dir" ;;
15541 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15542 SUBDIR_MAKEFILES="$T"
15546 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15547 internal_makefile_list="$T"
15554 for dir in src/s src/m; do
15555 if test ! -d "$dir" ; then
15556 echo Making symbolic link to "$srcdir/$dir"
15557 ${LN_S} "$srcdir/$dir" "$dir"
15561 if test "$extra_verbose" = "yes"; then
15563 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
15568 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15569 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15570 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15573 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15574 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15575 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15578 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15579 test "$extra_verbose" = "yes" && echo "creating TAGS"
15581 $srcdir/TAGS,include" > "TAGS"
15584 if test "$__SUNPRO_C" = "yes"; then
15585 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15586 ( echo "# For use with Sun WorkShop's Source browser."
15587 echo "# See sbquery(1) and sbinit(4) for more information"
15588 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15616 *\$* ) eval "PREFIX=$PREFIX" ;;
15624 EXEC_PREFIX=$exec_prefix
15626 case "$EXEC_PREFIX" in
15627 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15638 *\$* ) eval "INFODIR=$INFODIR" ;;
15648 case "$INFOPATH" in
15649 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15657 PACKAGE_PATH=$package_path
15659 case "$PACKAGE_PATH" in
15660 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15671 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15679 MODULEDIR=$moduledir
15681 case "$MODULEDIR" in
15682 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15690 SITELISPDIR=$sitelispdir
15692 case "$SITELISPDIR" in
15693 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15701 SITEMODULEDIR=$sitemoduledir
15703 case "$SITEMODULEDIR" in
15704 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15715 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15726 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15734 ARCHLIBDIR=$archlibdir
15736 case "$ARCHLIBDIR" in
15737 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15761 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15769 : ${XEMACS_CC:=$CC}
15772 if test "$with_prefix" = "yes"; then
15773 { test "$extra_verbose" = "yes" && cat << \EOF
15774 Defining PREFIX_USER_DEFINED
15776 cat >> confdefs.h <<\EOF
15777 #define PREFIX_USER_DEFINED 1
15783 if test "$with_site_lisp" = "no"; then
15784 { test "$extra_verbose" = "yes" && cat << \EOF
15785 Defining INHIBIT_SITE_LISP
15787 cat >> confdefs.h <<\EOF
15788 #define INHIBIT_SITE_LISP 1
15793 if test "$with_site_modules" = "no"; then
15794 { test "$extra_verbose" = "yes" && cat << \EOF
15795 Defining INHIBIT_SITE_MODULES
15797 cat >> confdefs.h <<\EOF
15798 #define INHIBIT_SITE_MODULES 1
15806 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15807 ac_configure_args="$T"
15809 { test "$extra_verbose" = "yes" && cat << EOF
15810 Defining EMACS_CONFIGURATION = "$configuration"
15812 cat >> confdefs.h <<EOF
15813 #define EMACS_CONFIGURATION "$configuration"
15817 { test "$extra_verbose" = "yes" && cat << EOF
15818 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15820 cat >> confdefs.h <<EOF
15821 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15828 { test "$extra_verbose" = "yes" && cat << EOF
15829 Defining LD_SWITCH_X_SITE = $null_string
15831 cat >> confdefs.h <<EOF
15832 #define LD_SWITCH_X_SITE $null_string
15836 { test "$extra_verbose" = "yes" && cat << EOF
15837 Defining LD_SWITCH_X_SITE_AUX = $null_string
15839 cat >> confdefs.h <<EOF
15840 #define LD_SWITCH_X_SITE_AUX $null_string
15844 { test "$extra_verbose" = "yes" && cat << EOF
15845 Defining C_SWITCH_X_SITE = $null_string
15847 cat >> confdefs.h <<EOF
15848 #define C_SWITCH_X_SITE $null_string
15852 { test "$extra_verbose" = "yes" && cat << EOF
15853 Defining LD_SWITCH_SITE = $null_string
15855 cat >> confdefs.h <<EOF
15856 #define LD_SWITCH_SITE $null_string
15860 { test "$extra_verbose" = "yes" && cat << EOF
15861 Defining C_SWITCH_SITE = $null_string
15863 cat >> confdefs.h <<EOF
15864 #define C_SWITCH_SITE $null_string
15870 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15871 Defining GNU_MALLOC
15873 cat >> confdefs.h <<\EOF
15874 #define GNU_MALLOC 1
15878 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15879 Defining USE_SYSTEM_MALLOC
15881 cat >> confdefs.h <<\EOF
15882 #define USE_SYSTEM_MALLOC 1
15886 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15887 Defining USE_DEBUG_MALLOC
15889 cat >> confdefs.h <<\EOF
15890 #define USE_DEBUG_MALLOC 1
15894 { test "$extra_verbose" = "yes" && cat << \EOF
15895 Defining USE_SYSTEM_MALLOC
15897 cat >> confdefs.h <<\EOF
15898 #define USE_SYSTEM_MALLOC 1
15903 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15906 cat >> confdefs.h <<\EOF
15911 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15914 cat >> confdefs.h <<\EOF
15919 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15920 Defining EXTERNAL_WIDGET
15922 cat >> confdefs.h <<\EOF
15923 #define EXTERNAL_WIDGET 1
15927 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15928 Defining QUICK_BUILD
15930 cat >> confdefs.h <<\EOF
15931 #define QUICK_BUILD 1
15935 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15938 cat >> confdefs.h <<\EOF
15943 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15946 cat >> confdefs.h <<\EOF
15951 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15952 Defining MAIL_USE_POP
15954 cat >> confdefs.h <<\EOF
15955 #define MAIL_USE_POP 1
15959 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15962 cat >> confdefs.h <<\EOF
15967 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15970 cat >> confdefs.h <<\EOF
15975 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15976 Defining USE_UNION_TYPE
15978 cat >> confdefs.h <<\EOF
15979 #define USE_UNION_TYPE 1
15983 test "$use_regex_malloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15984 Defining REGEX_MALLOC
15986 cat >> confdefs.h <<\EOF
15987 #define REGEX_MALLOC 1
15991 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15994 cat >> confdefs.h <<\EOF
15999 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16000 Defining IPV6_CANONICALIZE
16002 cat >> confdefs.h <<\EOF
16003 #define IPV6_CANONICALIZE 1
16010 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
16012 echo "uname -a: `uname -a`"
16015 echo "$0 $quoted_arguments"
16018 if test ! -z ${emacs_beta_version} ; then
16019 if test -z "${emacs_is_beta}" ; then
16020 xemacs_betaname=".${emacs_beta_version}"
16022 xemacs_betaname="-b${emacs_beta_version}"
16031 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
16034 Compilation / Installation:"
16035 echo " Source code location: $srcdir"
16036 echo " Installation prefix: $prefix"
16037 if test -n "$site_includes"; then
16038 echo " Additional header files: $site_includes"
16040 if test -n "$site_libraries"; then
16041 echo " Additional libraries: $site_libraries"
16043 if test -n "$site_prefixes"; then
16044 echo " Additional prefixes: $site_prefixes"
16046 if test -n "$runpath"; then
16047 echo " Runtime library search path: $runpath"
16050 if test -n "$opsysfile"
16051 then echo " Operating system description file: \`$opsysfile'"
16052 else echo " Not using any operating system description file"
16054 if test -n "$machfile"
16055 then echo " Machine description file: \`$machfile'"
16056 else echo " Not using any machine description file"
16059 echo " Compiler: $CC $CFLAGS"
16061 gcc*) echo " Compiler version: `$CC --version | head -1`"
16062 echo " Compiler specs file: `$CC -v 2>&1 | sed 's/.* \([^ ]\)/\1/' | head -1`"
16064 *) case "$canonical" in
16067 if test -L $realcc ; then
16068 ccdir=`dirname $realcc`
16069 ccprog=`/bin/ls -l $realcc | sed 's/.* \([^ ]\)/\1/'`
16071 */*) realcc=$ccprog;;
16072 *) realcc=$ccdir/$ccprog;;
16075 lpp=`lslpp -wqc $realcc | cut -f2 -d:`
16076 if test ! -z "$lpp" ; then
16077 lppstr=`lslpp -Lqc $lpp`
16078 lpplev=`echo "$lppstr" | cut -f3 -d:`
16079 lppdesc=`echo "$lppstr" | cut -f8 -d:`
16081 if test ! -z "$lpplev" ; then
16082 echo " Compiler version: $lpp $lpplev - $lppdesc"
16084 echo " Compiler version: (unknown version)"
16089 ccvers=`$CC -V 2>&1 | head -1`
16090 if test ! -z "$ccvers" ; then
16091 echo " Compiler version: $ccvers"
16096 ccvers=`$CC -V | tr '\n' ' '`
16097 if test ! -z "$ccvers" ; then
16098 echo " Compiler version: $ccvers"
16103 ccvers=`$CC -version`
16104 if test ! -z "$ccvers" ; then
16105 echo " Compiler version: $ccvers"
16110 ccvers=`$CC -V 2>&1 | sed -n 's@^Intel.*Version @@'p`
16111 if test ! -z "$ccvers" ; then
16112 echo " Compiler version: $ccvers"
16116 *) echo " Compiler version: $CC on $canonical";;
16120 echo " Relocating allocator for buffers: $rel_alloc"
16121 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
16122 case "$ld_switch_site" in
16123 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
16124 - Consider configuring with --pdump." ;;
16127 case "$canonical" in
16129 if test -f /etc/redhat-release ; then
16130 echo " libc: `rpm -q glibc`";
16132 echo "Need to guess glibc1/2/etc here";
16137 echo " libc: bos.rte.libc `lslpp -Lqc bos.rte.libc | cut -f3 -d:`"
16141 libc=`pkginfo -l SUNWcsl | grep VERSION: | awk '{print $2}'`
16142 echo " libc: SUNWcsl $libc"
16147 echo " IRIX version: `uname -sRm`'"
16153 libc=` grep -h libc.so *.inv | awk '$9 == "f" {print $12}' | tr '\n' ','`
16154 echo " libc: $libc"
16159 *) echo " libc: system-provided libc on $canonical" ;;
16165 if test "$with_msw" = "yes"; then
16166 echo " Compiling in support for the Microsoft window system."
16168 if test "$with_x11" = "yes"; then
16169 echo " Compiling in support for the X window system:"
16170 echo " - X Windows headers location: $x_includes"
16171 echo " - X Windows libraries location: $x_libraries"
16172 if test "$with_xauth" != yes; then
16173 echo " - Xau (X authority) not available."
16175 if test "$with_xmu" != yes; then
16176 echo " - Xmu library not available; substituting equivalent routines."
16178 if test "$with_wmcommand" != no; then
16179 echo " - Handling WM_COMMAND properly."
16182 if test "$need_motif" = "yes" ; then
16183 echo " Compiling in support for Motif."
16184 if test "$have_lesstif" = "yes"; then
16185 echo " - Using LessTif implementation."
16187 echo " *WARNING* Many versions of Motif are buggy, requiring workarounds."
16188 echo " You are likely to experience slow redisplay."
16189 echo " You may need to install vendor patches to Motif."
16190 echo " See PROBLEMS for more information."
16192 if test "$need_athena" = "yes"; then
16193 echo " Compiling in support for the Athena widget set:"
16194 echo " - Athena headers location: $athena_h_path"
16195 echo " - Athena library to link: $athena_lib"
16197 case "$with_menubars" in
16198 gtk ) echo " Using GTK menubars." ;;
16199 lucid ) echo " Using Lucid menubars." ;;
16200 motif ) echo " Using Motif menubars."
16201 echo " *WARNING* The Motif menubar implementation is currently buggy."
16202 echo " We recommend using the Lucid menubar instead."
16203 echo " Re-run configure with --with-menubars='lucid'." ;;
16204 msw ) echo " Using MS-Windows menubars." ;;
16206 case "$with_scrollbars" in
16207 gtk ) echo " Using GTK scrollbars." ;;
16208 lucid ) echo " Using Lucid scrollbars." ;;
16209 motif ) echo " Using Motif scrollbars." ;;
16210 athena ) echo " Using Athena scrollbars." ;;
16211 msw ) echo " Using MS-Windows scrollbars." ;;
16213 case "$with_dialogs" in
16214 gtk ) echo " Using GTK dialog boxes." ;;
16215 motif ) echo " Using Motif dialog boxes."
16216 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
16217 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
16218 echo " We recommend using the Athena dialog boxes instead."
16219 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
16220 echo " Read the PROBLEMS file for more information."
16222 athena ) echo " Using Athena dialog boxes." ;;
16223 msw ) echo " Using MS-Windows dialog boxes." ;;
16225 case "$with_widgets" in
16226 gtk ) echo " Using GTK native widgets." ;;
16227 motif ) echo " Using Motif native widgets." ;;
16228 athena ) echo " Using Athena native widgets." ;;
16229 msw ) echo " Using MS-Windows native widgets." ;;
16231 if test "$with_dragndrop" = yes; then
16232 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
16233 echo " - Drag'n'Drop prototype: $dragndrop_proto."
16238 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
16239 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
16243 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
16244 if test "$with_xpm" = yes; then
16245 echo " Compiling in support for XPM images."
16246 elif test "$with_x11" = yes; then
16247 echo " WARNING: -----------------------------------------------------------"
16248 echo " WARNING: Compiling without XPM image support."
16249 if test "$xpm_problem" != ""; then
16250 echo " Reason: $xpm_problem"
16252 echo " WARNING: You should strongly consider installing XPM."
16253 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
16254 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
16255 echo " WARNING: -----------------------------------------------------------"
16257 if test "$with_png" = yes; then
16258 echo " Compiling in support for PNG images."
16259 elif test "$window_system" != "none"; then
16260 echo " WARNING: -----------------------------------------------------------"
16261 echo " WARNING: Compiling without PNG image support."
16262 if test "$png_problem" != ""; then
16263 echo " Reason: $png_problem"
16265 echo " WARNING: You should strongly consider installing the PNG libraries."
16266 echo " WARNING: Otherwise certain images and glyphs may not display."
16267 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
16268 echo " WARNING: -----------------------------------------------------------"
16270 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
16271 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
16272 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
16276 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
16277 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
16278 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
16279 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
16283 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
16284 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
16285 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
16286 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
16287 if test "$with_postgresql" = yes; then
16288 echo " Compiling in support for PostgreSQL."
16289 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
16290 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
16294 Internationalization:"
16295 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
16296 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
16297 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
16298 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
16299 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
16300 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
16301 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
16302 if test "$with_wnn" = yes; then
16303 echo " Compiling in support for the WNN input method on Mule."
16304 test "$with_wnn6" = yes && echo " - Using WNN version 6."
16306 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
16310 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
16311 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
16312 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
16313 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
16317 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
16318 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
16319 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
16320 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
16321 test "$with_dnet" = yes && echo " Compiling in support for DNET."
16322 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
16323 if test "$use_union_type" = yes; then
16324 echo " WARNING: ---------------------------------------------------------"
16325 echo " Using the union type for Lisp_Objects."
16326 echo " Union type has been implicated in hard-to-debug runtime crashes."
16327 echo " Do NOT use this build of XEmacs for ordinary work. See PROBLEMS."
16328 echo " WARNING: ---------------------------------------------------------"
16330 if test "$use_regex_malloc" = no; then
16331 echo " WARNING: -----------------------------------------------------------"
16332 echo " Using alloca to allocate the failure stack."
16333 echo " It may be impossible to detect stack exhaustion, and you will crash."
16334 echo " Do NOT use this build of XEmacs for ordinary work."
16335 echo " WARNING: -----------------------------------------------------------"
16337 test "$pdump" = yes && echo " Using the new portable dumper."
16338 test "$debug" = yes && echo " Compiling in support for extra debugging code."
16339 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
16340 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
16341 != "no no no no no no"; then
16342 echo " WARNING: ---------------------------------------------------------"
16343 echo " WARNING: Compiling in support for runtime error checking."
16344 echo " WARNING: XEmacs will run noticeably more slowly as a result."
16345 echo " WARNING: Error checking is on by default for XEmacs beta releases."
16346 echo " WARNING: ---------------------------------------------------------"
16349 ) | tee -a Installation
16353 # Remove any trailing slashes in these variables.
16354 test -n "$prefix" &&
16355 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
16356 test -n "$exec_prefix" &&
16357 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
16360 for file in $internal_makefile_list; do
16361 test "$file" = src/Makefile.in && \
16362 file="src/Makefile.in:src/Makefile.in.in:src/depend"
16363 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
16365 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
16366 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
16370 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16372 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16373 # Let make expand exec_prefix.
16374 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16376 # Any assignment to VPATH causes Sun make to only execute
16377 # the first set of double-colon rules, so remove it if not needed.
16378 # If there is a colon in the path, we need to keep it.
16379 if test "x$srcdir" = x.; then
16380 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16383 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16385 DEFS=-DHAVE_CONFIG_H
16387 # Without the "./", some shells look in PATH for config.status.
16388 : ${CONFIG_STATUS=./config.status}
16390 echo creating $CONFIG_STATUS
16391 rm -f $CONFIG_STATUS
16392 cat > $CONFIG_STATUS <<EOF
16394 # Generated automatically by configure.
16395 # Run this file to recreate the current configuration.
16396 # This directory was configured as follows,
16397 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16399 # $0 $ac_configure_args
16401 # Compiler output produced by configure, useful for debugging
16402 # configure, is in ./config.log if it exists.
16404 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16407 case "\$ac_option" in
16408 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16409 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16410 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16411 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16412 echo "$CONFIG_STATUS generated by autoconf version 2.13"
16414 -help | --help | --hel | --he | --h)
16415 echo "\$ac_cs_usage"; exit 0 ;;
16416 *) echo "\$ac_cs_usage"; exit 1 ;;
16420 ac_given_srcdir=$srcdir
16421 ac_given_INSTALL="$INSTALL"
16423 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16425 cat >> $CONFIG_STATUS <<EOF
16427 # Protect against being on the right side of a sed subst in config.status.
16428 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16429 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16433 s%@CFLAGS@%$CFLAGS%g
16434 s%@CPPFLAGS@%$CPPFLAGS%g
16435 s%@CXXFLAGS@%$CXXFLAGS%g
16436 s%@FFLAGS@%$FFLAGS%g
16438 s%@LDFLAGS@%$LDFLAGS%g
16440 s%@exec_prefix@%$exec_prefix%g
16441 s%@prefix@%$prefix%g
16442 s%@program_transform_name@%$program_transform_name%g
16443 s%@bindir@%$bindir%g
16444 s%@sbindir@%$sbindir%g
16445 s%@libexecdir@%$libexecdir%g
16446 s%@datadir@%$datadir%g
16447 s%@sysconfdir@%$sysconfdir%g
16448 s%@sharedstatedir@%$sharedstatedir%g
16449 s%@localstatedir@%$localstatedir%g
16450 s%@libdir@%$libdir%g
16451 s%@includedir@%$includedir%g
16452 s%@oldincludedir@%$oldincludedir%g
16453 s%@infodir@%$infodir%g
16454 s%@mandir@%$mandir%g
16456 s%@blddir@%$blddir%g
16459 s%@start_flags@%$start_flags%g
16460 s%@ld_switch_shared@%$ld_switch_shared%g
16461 s%@start_files@%$start_files%g
16463 s%@lib_gcc@%$lib_gcc%g
16464 s%@RANLIB@%$RANLIB%g
16465 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16466 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16467 s%@INSTALL_DATA@%$INSTALL_DATA%g
16469 s%@SET_MAKE@%$SET_MAKE%g
16470 s%@GTK_CONFIG@%$GTK_CONFIG%g
16471 s%@X_CFLAGS@%$X_CFLAGS%g
16472 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
16473 s%@X_LIBS@%$X_LIBS%g
16474 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
16475 s%@install_pp@%$install_pp%g
16476 s%@libs_xauth@%$libs_xauth%g
16477 s%@dnd_objs@%$dnd_objs%g
16478 s%@lwlib_objs@%$lwlib_objs%g
16479 s%@ALLOCA@%$ALLOCA%g
16480 s%@have_esd_config@%$have_esd_config%g
16481 s%@dll_ld@%$dll_ld%g
16482 s%@dll_cflags@%$dll_cflags%g
16483 s%@dll_ldflags@%$dll_ldflags%g
16484 s%@dll_post@%$dll_post%g
16485 s%@dll_ldo@%$dll_ldo%g
16486 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
16487 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
16488 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
16489 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
16490 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
16491 s%@PROGNAME@%$PROGNAME%g
16492 s%@version@%$version%g
16493 s%@configuration@%$configuration%g
16494 s%@canonical@%$canonical%g
16495 s%@inststaticdir@%$inststaticdir%g
16496 s%@instvardir@%$instvardir%g
16497 s%@srcdir@%$srcdir%g
16498 s%@pkgdir@%$pkgdir%g
16499 s%@statedir@%$statedir%g
16500 s%@extra_includes@%$extra_includes%g
16501 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
16502 s%@PREFIX@%$PREFIX%g
16503 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
16504 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
16505 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
16506 s%@INFODIR@%$INFODIR%g
16507 s%@infopath@%$infopath%g
16508 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
16509 s%@INFOPATH@%$INFOPATH%g
16510 s%@package_path@%$package_path%g
16511 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
16512 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
16513 s%@lispdir@%$lispdir%g
16514 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
16515 s%@LISPDIR@%$LISPDIR%g
16516 s%@moduledir@%$moduledir%g
16517 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
16518 s%@MODULEDIR@%$MODULEDIR%g
16519 s%@sitelispdir@%$sitelispdir%g
16520 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
16521 s%@SITELISPDIR@%$SITELISPDIR%g
16522 s%@sitemoduledir@%$sitemoduledir%g
16523 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
16524 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
16525 s%@etcdir@%$etcdir%g
16526 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
16527 s%@ETCDIR@%$ETCDIR%g
16528 s%@docdir@%$docdir%g
16529 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
16530 s%@DOCDIR@%$DOCDIR%g
16531 s%@archlibdir@%$archlibdir%g
16532 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
16533 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
16534 s%@bitmapdir@%$bitmapdir%g
16535 s%@extra_objs@%$extra_objs%g
16536 s%@machfile@%$machfile%g
16537 s%@opsysfile@%$opsysfile%g
16538 s%@c_switch_general@%$c_switch_general%g
16539 s%@c_switch_window_system@%$c_switch_window_system%g
16540 s%@c_switch_all@%$c_switch_all%g
16541 s%@ld_switch_general@%$ld_switch_general%g
16542 s%@ld_switch_window_system@%$ld_switch_window_system%g
16543 s%@ld_switch_all@%$ld_switch_all%g
16544 s%@ld_libs_general@%$ld_libs_general%g
16545 s%@ld_libs_window_system@%$ld_libs_window_system%g
16546 s%@ld_libs_all@%$ld_libs_all%g
16547 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
16548 s%@native_sound_lib@%$native_sound_lib%g
16549 s%@sound_cflags@%$sound_cflags%g
16550 s%@dynodump_arch@%$dynodump_arch%g
16551 s%@XEMACS_CC@%$XEMACS_CC%g
16552 s%@internal_makefile_list@%$internal_makefile_list%g
16557 cat >> $CONFIG_STATUS <<\EOF
16559 # Split the substitutions into bite-sized pieces for seds with
16560 # small command number limits, like on Digital OSF/1 and HP-UX.
16561 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16562 ac_file=1 # Number of current file.
16563 ac_beg=1 # First line for current file.
16564 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16567 while $ac_more_lines; do
16568 if test $ac_beg -gt 1; then
16569 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16571 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16573 if test ! -s conftest.s$ac_file; then
16574 ac_more_lines=false
16575 rm -f conftest.s$ac_file
16577 if test -z "$ac_sed_cmds"; then
16578 ac_sed_cmds="sed -f conftest.s$ac_file"
16580 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16582 ac_file=`expr $ac_file + 1`
16584 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16587 if test -z "$ac_sed_cmds"; then
16592 cat >> $CONFIG_STATUS <<EOF
16594 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16596 cat >> $CONFIG_STATUS <<\EOF
16597 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16598 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16600 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16601 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16602 *) ac_file_in="${ac_file}.in" ;;
16605 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16607 # Remove last slash and all that follows it. Not all systems have dirname.
16608 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16609 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16610 # The file is in a subdirectory.
16611 test ! -d "$ac_dir" && mkdir "$ac_dir"
16612 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16613 # A "../" for each directory in $ac_dir_suffix.
16614 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16616 ac_dir_suffix= ac_dots=
16619 case "$ac_given_srcdir" in
16621 if test -z "$ac_dots"; then top_srcdir=.
16622 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16623 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16624 *) # Relative path.
16625 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16626 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16629 case "$ac_given_INSTALL" in
16630 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16631 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16634 echo creating "$ac_file"
16636 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16638 *Makefile*) ac_comsub="1i\\
16639 # $configure_input" ;;
16643 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16645 s%@configure_input@%$configure_input%g
16646 s%@srcdir@%$srcdir%g
16647 s%@top_srcdir@%$top_srcdir%g
16648 s%@INSTALL@%$INSTALL%g
16649 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16653 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16654 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16656 # ac_d sets the value in "#define NAME VALUE" lines.
16657 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16658 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16661 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16662 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16663 ac_uB='\([ ]\)%\1#\2define\3'
16666 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16667 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16668 ac_eB='$%\1#\2define\3'
16672 if test "${CONFIG_HEADERS+set}" != set; then
16674 cat >> $CONFIG_STATUS <<EOF
16675 CONFIG_HEADERS="src/config.h lwlib/config.h"
16677 cat >> $CONFIG_STATUS <<\EOF
16679 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16680 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16682 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16683 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16684 *) ac_file_in="${ac_file}.in" ;;
16687 echo creating $ac_file
16689 rm -f conftest.frag conftest.in conftest.out
16690 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16691 cat $ac_file_inputs > conftest.in
16695 # Transform confdefs.h into a sed script conftest.vals that substitutes
16696 # the proper values into config.h.in to produce config.h. And first:
16697 # Protect against being on the right side of a sed subst in config.status.
16698 # Protect against being in an unquoted here document in config.status.
16699 rm -f conftest.vals
16700 cat > conftest.hdr <<\EOF
16703 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16707 sed -n -f conftest.hdr confdefs.h > conftest.vals
16710 # This sed command replaces #undef with comments. This is necessary, for
16711 # example, in the case of _POSIX_SOURCE, which is predefined and required
16712 # on some systems where configure will not decide to define it.
16713 cat >> conftest.vals <<\EOF
16714 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16717 # Break up conftest.vals because some shells have a limit on
16718 # the size of here documents, and old seds have small limits too.
16720 rm -f conftest.tail
16723 ac_lines=`grep -c . conftest.vals`
16724 # grep -c gives empty output for an empty file on some AIX systems.
16725 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16726 # Write a limited-size here document to conftest.frag.
16727 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16728 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16730 sed -f conftest.frag conftest.in > conftest.out
16732 mv conftest.out conftest.in
16733 ' >> $CONFIG_STATUS
16734 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16735 rm -f conftest.vals
16736 mv conftest.tail conftest.vals
16738 rm -f conftest.vals
16740 cat >> $CONFIG_STATUS <<\EOF
16741 rm -f conftest.frag conftest.h
16742 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16743 cat conftest.in >> conftest.h
16745 if cmp -s $ac_file conftest.h 2>/dev/null; then
16746 echo "$ac_file is unchanged"
16749 # Remove last slash and all that follows it. Not all systems have dirname.
16750 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16751 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16752 # The file is in a subdirectory.
16753 test ! -d "$ac_dir" && mkdir "$ac_dir"
16756 mv conftest.h $ac_file
16761 cat >> $CONFIG_STATUS <<EOF
16763 top_srcdir="$srcdir"
16764 MAKE_SUBDIR="$MAKE_SUBDIR"
16767 cat >> $CONFIG_STATUS <<\EOF
16768 for dir in . $MAKE_SUBDIR; do
16773 sed -e '/^# Generated/d' \
16774 -e 's%/\*\*/#.*%%' \
16789 echo creating $dir/Makefile
16790 $CPP -I. -I${top_srcdir}/src junk.c \
16791 | sed -e 's/^\#.*//' \
16792 -e 's/^[ ][ ]*$//'\
16800 chmod 444 Makefile.new
16801 mv -f Makefile.new Makefile
16803 echo creating $dir/GNUmakefile
16804 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16805 | sed -e 's/^\#.*//' \
16806 -e 's/^[ ][ ]*$//'\
16814 chmod 444 Makefile.new
16815 mv -f Makefile.new GNUmakefile
16821 sed < config.status >> lib-src/config.values \
16822 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16823 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16824 -e 's/^\([^ ]*\) $/\1 ""/' \
16830 chmod +x $CONFIG_STATUS
16831 rm -fr confdefs* $ac_clean_files
16832 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1